/* Dashboard v2 (2026-10-25, audit/dashboard_v2_plan.md). Nate's approved
   mockup v2. Everything is scoped under .hm except the recommendation modal
   and the banners, which keep their old class names. The dashboard has no
   tool colour of its own: it uses the brand gradient (#2563eb -> #6c4dff), or
   the school's colour for a school account (set in the template). */
:root{
  --hm:#4f46e5; --hm-ink:#4338ca; --hm-soft:#eef0ff; --hm-line:#dcdffa;
  --hm-grad:linear-gradient(120deg,#2563eb,#7c3aed);
  --hm-ring-in:#4a46e0; --hm-glow:rgba(124,58,237,.9);
}
.hm{
  --ink:#0f172a; --muted:#5b6475; --faint:#8a93a3; --line:#e6e8ef;
  --resume:#2563eb; --resume-soft:#eff6ff; --cl:#13aa1f; --cl-ink:#0e8118; --cl-soft:#eefcef;
  --li:#0a66c2; --li-soft:#eaf3fc; --iv:#c2410c; --iv-soft:#fff4ec; --jobs:#087c74; --jobs-soft:#effbfa;
  --cp:#5b4ce6; --cp-soft:#f0eeff; --rm:#0e7490; --rm-soft:#ecfaff; --col:#be185d; --col-soft:#fdf2f8;
  --gold:#a16207; --gold-soft:#fef3c7; --ok:#15803d; --ok-soft:#ecfdf3;
  font-family:Inter,system-ui,sans-serif;color:var(--ink);
  container:hm/inline-size;
}
.hm *{box-sizing:border-box}
.hm [data-c=resume]{--c:var(--resume);--cs:var(--resume-soft);--ci:var(--resume)}
.hm [data-c=cl]{--c:var(--cl);--cs:var(--cl-soft);--ci:var(--cl-ink)}
.hm [data-c=li]{--c:var(--li);--cs:var(--li-soft);--ci:var(--li)}
.hm [data-c=iv]{--c:var(--iv);--cs:var(--iv-soft);--ci:var(--iv)}
.hm [data-c=jobs]{--c:var(--jobs);--cs:var(--jobs-soft);--ci:var(--jobs)}
.hm [data-c=cp]{--c:var(--cp);--cs:var(--cp-soft);--ci:var(--cp)}
.hm [data-c=rm]{--c:var(--rm);--cs:var(--rm-soft);--ci:var(--rm)}
.hm [data-c=hm]{--c:var(--hm);--cs:var(--hm-soft);--ci:var(--hm-ink)}
.hm [data-c=col]{--c:var(--col);--cs:var(--col-soft);--ci:var(--col)}

.app-content{background:linear-gradient(180deg,color-mix(in srgb,var(--hm) 11%,#fff) 0,color-mix(in srgb,var(--hm) 5%,#f5f6fc) 380px,#f5f6fc 100%)}

/* ── header ── */
.hm-head{display:flex;align-items:center;gap:6px 18px;flex-wrap:wrap;padding:12px 24px;min-height:72px;background:#fff;border-bottom:3px solid transparent;border-image:var(--hm-grad) 1}
.hm-title{display:flex;align-items:center;gap:10px;margin:0;font-size:22px;font-weight:800;letter-spacing:-.02em;color:var(--hm-ink)}
.hm-title-ic{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:var(--hm-grad);color:#fff}
.hm-title-ic svg{width:20px;height:20px}
.hm-meta{margin:0;font-size:14px;color:var(--muted)} .hm-meta b{color:var(--ink)}
.hm-school{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:800;padding:3px 10px;border-radius:999px;background:var(--hm-soft);color:var(--hm-ink)}
.hm-head-act{margin-left:auto;display:flex;gap:10px;align-items:center}
.hm .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:0 16px;border-radius:10px;font:inherit;font-size:14px;font-weight:750;text-decoration:none;cursor:pointer;border:1px solid transparent;white-space:nowrap;line-height:1.2}
.hm .btn svg{width:16px;height:16px;flex:0 0 auto}
.hm .btn-pri{background:var(--hm-grad);color:#fff;box-shadow:0 6px 14px rgba(51,70,211,.22)}
.hm .btn-out{background:#fff;color:var(--hm-ink);border-color:var(--hm-line)}
.hm .btn-tool{background:var(--c);color:#fff}
.hm .btn:focus-visible,.hm a:focus-visible,.hm button:focus-visible,.hm input:focus-visible{outline:3px solid var(--hm);outline-offset:2px}

/* ── layout ── */
.hm-banners{max-width:1280px;margin:0 auto;padding:16px 28px 0}
.hm-banners:empty{display:none}
.hm-body{max-width:1320px;margin:0 auto;padding:20px 28px 56px;display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:20px;align-items:start}
.hm-col{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;min-width:0}
.hm-rail{position:sticky;top:16px}
.hm .card{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 2px 6px rgba(15,23,42,.03)}
.hm .pad{padding:16px 18px}
.hm .sec-h{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px;flex-wrap:wrap}
.hm .sec-h h2{margin:0;font-size:16px;font-weight:800;letter-spacing:-.01em;color:var(--ink)}
.hm .sec-h h2 span{color:var(--faint);font-weight:700}
.hm .sec-h a,.hm .sec-h .aside,.hm .sec-h button.linkish{font-size:13px;font-weight:700;color:var(--hm-ink);text-decoration:none}
.hm .sec-h .aside{color:var(--faint);font-weight:600}
.hm .linkish{border:0;background:none;padding:0;font:inherit;cursor:pointer}
.hm .muted{color:var(--muted)} .hm .faint{color:var(--faint)}
.hm .small{font-size:12px;color:var(--faint);line-height:1.5;margin:0}
.hm .small a{color:var(--hm-ink)}

/* ── hero ── */
.hm .hero{border-radius:20px;overflow:hidden;background:var(--hm-grad);color:#fff;box-shadow:0 12px 28px rgba(51,70,211,.22);display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
.hm .hero-l{padding:22px 22px 20px;display:flex;flex-direction:column;gap:14px;min-width:0}
.hm .hero-l h2{margin:0;font-size:24px;font-weight:800;letter-spacing:-.02em;color:#fff}
.hm .hero-l p{margin:4px 0 0;opacity:.92;font-size:14px;color:#fff}
.hm .goal{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:12px;background:rgba(255,255,255,.14);min-width:0}
.hm .goal-ic{width:34px;height:34px;border-radius:9px;background:rgba(255,255,255,.22);display:grid;place-items:center;flex:0 0 auto}
.hm .goal-ic svg{width:18px;height:18px}
.hm .goal>div{min-width:0}
.hm .goal small{display:block;font-size:11px;font-weight:800;letter-spacing:.08em;opacity:.85;text-transform:uppercase}
.hm .goal b{font-size:15px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hm .goal a{margin-left:auto;color:#fff;font-size:13px;font-weight:700;opacity:.95;flex:0 0 auto}
.hm .ready{display:flex;align-items:center;gap:14px;color:#fff;text-decoration:none}
.hm .ring{--p:0;width:58px;height:58px;border-radius:50%;background:conic-gradient(#fff calc(var(--p)*1%),rgba(255,255,255,.25) 0);display:grid;place-items:center;flex:0 0 auto}
.hm .ring b{width:44px;height:44px;border-radius:50%;background:var(--hm-ring-in);display:grid;place-items:center;font-size:14px}
.hm .ready strong{display:block;font-size:15px} .hm .ready span{font-size:13px;opacity:.9}
.hm .hero-r{background:#fff;color:var(--ink);margin:10px;border-radius:15px;padding:18px 20px;display:flex;flex-direction:column;gap:10px;min-width:0}
.hm .tag{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;background:#fff1e8;color:#c2410c}
.hm .tag:before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.hm .hero-r h3{margin:0;font-size:20px;font-weight:800;letter-spacing:-.01em;color:var(--ink)}
.hm .hero-r p{margin:0;color:var(--muted);font-size:14px;line-height:1.5}
.hm .hero-r .row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.hm .due{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:#c2410c}
.hm .due svg{width:15px;height:15px}
.hm .alts{border-top:1px dashed var(--line);padding-top:10px;display:grid;gap:6px}
.hm .alts small{font-size:12px;color:var(--faint);font-weight:700}
.hm .alt{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--ink);text-decoration:none;padding:7px 8px;border-radius:9px;background:#f8fafc;min-height:40px}
.hm .alt:hover{background:var(--cs)}
.hm .alt i{width:22px;height:22px;border-radius:6px;display:grid;place-items:center;background:var(--cs);color:var(--c);flex:0 0 auto}
.hm .alt i svg{width:13px;height:13px}
.hm .alt em{margin-left:auto;font-style:normal;color:var(--c);font-weight:700;font-size:12px;white-space:nowrap}

/* ── 2-minute actions ── */
.hm .wins{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.hm .qw{display:flex;align-items:center;gap:10px;padding:12px;border-radius:12px;border:1px solid var(--line);background:#fff;text-decoration:none;color:var(--ink);min-width:0}
.hm .qw:hover{border-color:var(--c)}
.hm .qw i{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;background:var(--cs);color:var(--c);flex:0 0 auto}
.hm .qw i svg{width:18px;height:18px}
.hm .qw b{display:block;font-size:13.5px} .hm .qw span{font-size:12px;color:var(--faint)}

/* ── checklist ── */
.hm .kitgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.hm .tool{position:relative;display:flex;flex-direction:column;gap:7px;padding:14px 14px 12px;border-radius:14px;background:#fff;border:1px solid var(--line);text-decoration:none;color:var(--ink);overflow:hidden;min-height:138px;min-width:0}
.hm .tool:before{content:"";position:absolute;inset:0 0 auto 0;height:4px;background:var(--c)}
.hm .tool:hover{box-shadow:0 8px 18px rgba(15,23,42,.07)}
.hm .tool-h{display:flex;align-items:center;gap:9px;min-width:0}
.hm .tool-ic{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;background:var(--cs);color:var(--c);flex:0 0 auto}
.hm .tool-ic svg{width:17px;height:17px}
.hm .tool-n{font-size:14px;font-weight:800;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hm .chk{margin-left:auto;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;flex:0 0 auto;border:2px solid #d5dbe5;color:transparent}
.hm .chk svg{width:12px;height:12px}
.hm .tool.done .chk{background:var(--ok);border-color:var(--ok);color:#fff}
.hm .tool-big{font-size:22px;font-weight:800;letter-spacing:-.02em;color:var(--ci)}
.hm .tool-big small{font-size:13px;color:var(--faint);font-weight:700}
.hm .tool-d{font-size:13px;color:var(--muted);line-height:1.4;overflow-wrap:anywhere}
.hm .tool-go{margin-top:auto;font-size:13px;font-weight:750;color:var(--ci)}
.hm .tool.locked{background:#fafbfc}
.hm .tool.locked:before{background:#cbd5e1}
.hm .tool.locked .tool-ic{background:#f1f5f9;color:#94a3b8}
.hm .tool.locked .tool-n{color:var(--muted)}
.hm .tool.locked .tool-go{color:var(--gold)}
.hm .lock{font-size:10.5px;font-weight:800;padding:2px 7px;border-radius:999px;background:var(--gold-soft);color:var(--gold);margin-left:auto;flex:0 0 auto;white-space:nowrap}
.hm .bar{height:6px;border-radius:999px;background:#eef1f6;overflow:hidden}
.hm .bar i{display:block;height:100%;background:var(--c);border-radius:999px}
.hm .how{margin:0 0 12px;padding:12px 14px;border-radius:12px;background:#fff;border:1px solid var(--hm-line);font-size:13px;color:var(--muted)}
.hm .how[hidden]{display:none}
.hm .how ul{margin:6px 0 0;padding-left:18px;display:grid;gap:3px}

/* ── wins + roadmap ── */
.hm .two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}
.hm .fi{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 0;border-top:1px solid var(--line);font-size:13.5px}
.hm .fi:first-child{border-top:0}
.hm .fi i{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--cs);color:var(--c)}
.hm .fi i svg{width:15px;height:15px}
.hm .fi b{font-weight:750} .hm .fi em{font-style:normal;font-size:12px;color:var(--faint);white-space:nowrap}
.hm .empty{font-size:13.5px;color:var(--muted);margin:0;line-height:1.5}
.hm .rm-top{display:flex;align-items:center;gap:14px}
.hm .ring2{--p:0;width:60px;height:60px;border-radius:50%;background:conic-gradient(var(--rm) calc(var(--p)*1%),#e6eef3 0);display:grid;place-items:center;flex:0 0 auto}
.hm .ring2 b{width:46px;height:46px;border-radius:50%;background:#fff;display:grid;place-items:center;font-size:14px;color:var(--rm)}
.hm .steps{list-style:none;margin:12px 0 0;padding:0}
.hm .steps li{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:10px;align-items:start;padding:7px 0;font-size:13.5px}
.hm .dot{width:16px;height:16px;border-radius:50%;border:2px solid #cbd5e1;background:#fff;margin-top:1px}
.hm .s-done .dot{background:var(--rm);border-color:var(--rm)} .hm .s-done .st{color:var(--faint);text-decoration:line-through}
.hm .s-now .dot{border-color:var(--rm);box-shadow:0 0 0 4px var(--rm-soft)} .hm .s-now .st{font-weight:800}
.hm .steps em{font-style:normal;font-size:12px;color:var(--faint)}
.hm .agt{font-size:13.5px;font-weight:700} .hm .ags{font-size:12px;color:var(--muted)}
.hm .college{display:flex;align-items:center;gap:10px;margin-top:12px;padding:10px 12px;border-radius:10px;background:var(--col-soft);color:var(--col);text-decoration:none;font-size:13px;font-weight:700}
.hm .college span{color:var(--muted);font-weight:600;margin-left:auto;white-space:nowrap}

/* ── kits ── */
.hm .kit-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:14px;align-items:center;padding:12px 0;border-top:1px solid var(--line);position:relative}
.hm .kit-row:first-of-type{border-top:0}
.hm .kit-t{font-size:14px;font-weight:750;overflow-wrap:anywhere} .hm .kit-s{font-size:12px;color:var(--faint)}
.hm .chip{font-size:12px;font-weight:800;padding:3px 8px;border-radius:999px;background:var(--hm-soft);color:var(--hm-ink);white-space:nowrap}
.hm .chip.cur{background:var(--ok-soft);color:var(--ok)}
.hm .chip.gold{background:var(--gold-soft);color:var(--gold)}
.hm .lnk{font-size:13px;font-weight:750;color:var(--hm-ink);text-decoration:none;white-space:nowrap;padding:6px 2px}
.hm .more{border:0;background:none;color:var(--muted);font-size:18px;line-height:1;padding:6px 8px;border-radius:8px;cursor:pointer;min-width:36px;min-height:36px}
.hm .more:hover{background:#f1f5f9}
.hm .kit-menu{position:absolute;right:0;top:calc(100% - 6px);z-index:20;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 28px rgba(15,23,42,.14);padding:6px;display:grid;min-width:180px}
.hm .kit-menu[hidden]{display:none}
.hm .kit-menu a,.hm .kit-menu button{display:block;text-align:left;padding:9px 10px;border-radius:8px;font:inherit;font-size:13.5px;font-weight:600;color:var(--ink);text-decoration:none;background:none;border:0;cursor:pointer}
.hm .kit-menu a:hover,.hm .kit-menu button:hover{background:#f1f5f9}
.hm .kit-menu .danger{color:#b91c1c}
/* Delete kit asks inside the menu, not with a browser pop-up (kit test pass F6). */
.hm .kit-confirm{margin:4px 2px 2px;padding:10px;border-radius:10px;background:#fef2f2;border:1px solid #fecaca;max-width:240px}
.hm .kit-confirm p{margin:0 0 8px;font-size:13px;line-height:1.4;color:#7f1d1d}
.hm .kit-confirm-acts{display:flex;gap:6px;flex-wrap:wrap}
.hm .kit-menu .kit-confirm-acts button{flex:1 1 auto;text-align:center;padding:8px 10px;border-radius:8px;font-weight:750}
.hm .kit-menu .kit-confirm-acts .kit-del-yes{background:#b91c1c;color:#fff}
.hm .kit-menu .kit-confirm-acts .kit-del-yes:hover{background:#991b1b}
.hm .kit-menu .kit-confirm-acts .kit-del-no{background:#fff;border:1px solid var(--line)}

/* ── portfolio (keeps the old form classes the tests and s1 use) ── */
.hm .pf-url{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#f8fafc;font-size:13px;color:var(--muted);min-width:0}
.hm .pf-url svg{width:15px;height:15px;flex:0 0 auto}
.hm .pf-url b{color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:1;font-weight:700}
.hm .hub-toggle-form{display:flex;align-items:center;gap:10px;margin:12px 0 8px;flex-wrap:wrap}
.hm .hub-toggle-form label{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:700;cursor:pointer}
.hm .hub-toggle-form input{appearance:none;-webkit-appearance:none;width:42px;height:24px;border-radius:999px;background:#cbd5e1;position:relative;cursor:pointer;margin:0;flex:0 0 auto;transition:background .15s}
.hm .hub-toggle-form input:after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:left .15s}
.hm .hub-toggle-form input:checked{background:#16a34a}
.hm .hub-toggle-form input:checked:after{left:21px}
.hm .hub-toggle-form button{margin-left:auto;min-height:34px;padding:0 14px;border-radius:9px;border:1px solid var(--hm-line);background:#fff;color:var(--hm-ink);font:inherit;font-size:13px;font-weight:750;cursor:pointer}
.hm .hub-addr{margin-top:8px;font-size:13px}
.hm .hub-addr summary{cursor:pointer;color:var(--hm-ink);font-weight:700;min-height:32px;display:flex;align-items:center}
.hm .hub-addr form{display:grid;gap:8px;margin-top:6px}
.hm .hub-addr label{font-size:12px;font-weight:700;color:var(--muted)}
.hm .hub-addr-row{display:flex;align-items:center;gap:4px;border:1px solid var(--line);border-radius:9px;padding:6px 8px;font-size:12.5px;color:var(--faint);min-width:0}
.hm .hub-addr-row input{flex:1;min-width:0;border:0;outline:0;font:inherit;font-size:13.5px;color:var(--ink);padding:4px 2px}
.hm .hub-addr p{margin:0;font-size:12px;color:var(--faint);line-height:1.5}
.hm .hub-addr button{justify-self:start;min-height:34px;padding:0 14px;border-radius:9px;border:0;background:var(--hm-grad);color:#fff;font:inherit;font-size:13px;font-weight:750;cursor:pointer}
.hm .hub-addr-msg{margin:6px 0 0;font-size:12.5px;font-weight:700;color:var(--ok)}
.hm .hub-addr-err{color:#b91c1c}

/* ── right rail ── */
.hm .week-days{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin:4px 0 10px}
.hm .wd{display:grid;gap:4px;justify-items:center;font-size:11px;color:var(--faint);font-weight:700}
.hm .wd i{width:30px;height:30px;border-radius:9px;background:#eef1f6;display:grid;place-items:center;color:#fff}
.hm .wd i svg{width:14px;height:14px;display:none}
.hm .wd.on i{background:var(--hm-grad)} .hm .wd.on i svg{display:block}
.hm .wd.today i{outline:2px solid var(--hm);outline-offset:2px}
.hm .wd.today{color:var(--hm-ink)}
.hm .goalbar{display:flex;align-items:center;justify-content:space-between;font-size:13px}
.hm .goalbar b{color:var(--hm-ink)}
.hm .streak{display:flex;align-items:center;gap:8px;margin-top:10px;padding:9px 11px;border-radius:10px;background:var(--hm-soft);font-size:13px;color:var(--hm-ink);font-weight:700}
.hm .ag{display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px;align-items:center;padding:9px 0;border-top:1px solid var(--line);text-decoration:none;color:var(--ink)}
.hm .ag:first-of-type{border-top:0}
.hm .agd{text-align:center;border-radius:9px;padding:5px 0;background:var(--cs);color:var(--c)}
.hm .agd b{display:block;font-size:15px;line-height:1.1} .hm .agd span{font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.hm .ag.overdue .agd{background:#fef2f2;color:#b91c1c}
.hm .use{display:grid;gap:10px}
.hm .use-row{display:grid;gap:5px;font-size:13px}
.hm .use-row div{display:flex;justify-content:space-between;gap:8px} .hm .use-row b{font-weight:800}
.hm .use .bar i{background:var(--hm-grad)}
.hm .ask{display:flex;align-items:center;gap:8px;padding:6px 6px 6px 12px;border:1px solid var(--hm-line);border-radius:12px;background:#fff}
.hm .ask input{flex:1;border:0;outline:0;font:inherit;font-size:14px;min-width:0;background:transparent;color:var(--ink);min-height:34px}
.hm .ask button{width:36px;height:36px;border-radius:9px;border:0;background:var(--hm-grad);color:#fff;cursor:pointer;display:grid;place-items:center;flex:0 0 auto}
.hm .ask button svg{width:16px;height:16px}
.hm .sugg{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.hm .sugg button{font:inherit;font-size:12px;padding:6px 10px;border-radius:999px;background:#f1f5f9;color:#334155;font-weight:600;border:0;cursor:pointer}
.hm .sugg button:hover{background:var(--hm-soft);color:var(--hm-ink)}

/* ── first visit ── */
.hm .first{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}
.hm .first .hero-l{gap:16px}
.hm .first ol{margin:0;padding:0;list-style:none;display:grid;gap:10px}
.hm .first li{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.45}
.hm .first li b{width:24px;height:24px;border-radius:50%;background:rgba(255,255,255,.22);display:grid;place-items:center;font-size:12px;flex:0 0 auto}
.hm .first .btn-white{background:#fff;color:var(--hm-ink);align-self:flex-start}

@container hm (max-width:1100px){
  .hm-body{grid-template-columns:minmax(0,1fr)}
  .hm-rail{position:static}
  .hm-rail>.hm-col{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hm .kitgrid{gap:12px}
}
@container hm (max-width:760px){
  .hm-head{display:block;min-height:0;padding:10px 16px}
  .hm-title{font-size:18px}.hm-title-ic{display:none}
  .hm-meta{margin-top:2px;font-size:13px}
  .hm-head-act{display:flex;margin:8px 0 2px;gap:8px}
  .hm-head-act .btn{flex:1;min-height:38px;font-size:13px;padding:0 10px}
  .hm-banners{padding:12px 14px 0}
  .hm-body{padding:14px 14px 100px;gap:14px}
  .hm-col{gap:14px}
  .hm .hero,.hm .first{grid-template-columns:minmax(0,1fr)}
  .hm .hero-l{padding:16px 16px 12px;gap:12px}.hm .hero-l h2{font-size:21px}
  .hm .hero-r{margin:0 8px 8px;padding:16px}
  .hm .hero-r .row .btn{flex:1}
  .hm .wins{grid-template-columns:minmax(0,1fr);gap:8px}
  .hm .kitgrid{gap:10px}
  .hm .tool{min-height:122px;padding:12px}
  .hm .tool-big{font-size:19px}
  .hm .tool-n{white-space:normal;overflow:visible;font-size:13.5px;line-height:1.2}
  .hm .tool.locked .lock{display:none}
  .hm .two{grid-template-columns:minmax(0,1fr)}
  .hm .kit-row{display:flex;flex-wrap:wrap;gap:6px 12px}.hm .kit-row>div:first-child{flex:1 1 100%}.hm .kit-row .more{margin-left:auto}
  .hm-col,.hm-rail,.hm-rail>.hm-col{display:contents}
  .hm .o1{order:1}.hm .o2{order:2}.hm .o3{order:3}.hm .o4{order:4}.hm .o5{order:5}.hm .o6{order:6}.hm .o7{order:7}.hm .o8{order:8}.hm .o9{order:9}
  .hm-body>*{min-width:0}
}


/* ── Design pass A (2026-10-29, audit/design_pass_a_plan.md): Nate's approved
   new look. Depth (lifting cards, solid icon tiles, gradient buttons), titles
   that wrap instead of being cut, and grids that rearrange by the page's own
   width (container queries) so work laptops with display scaling fit. ── */
.hm-title{background:var(--hm-grad);-webkit-background-clip:text;background-clip:text;color:transparent;font-weight:850}
.hm-title-ic{width:40px;height:40px;border-radius:12px;background:var(--hm-grad);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 6px 14px -6px color-mix(in srgb,var(--hm) 80%,transparent)}
.hm-title-ic svg{width:21px;height:21px}
.hm-title-ic svg .duo{opacity:.35}
.hm-head{position:relative;border-bottom:0;border-image:none}
.hm-head::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--hm-grad)}
.hm .btn{border-radius:12px;transition:transform .15s,box-shadow .15s,border-color .15s}
.hm .btn-pri{background:var(--hm-grad);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 1px rgba(15,23,42,.08),0 8px 16px -8px rgba(91,33,182,.7)}
.hm .btn-pri:hover{transform:translateY(-1px);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 12px 20px -8px rgba(91,33,182,.75)}
.hm .btn-out{background:linear-gradient(#fff,#f8fafc);box-shadow:0 1px 2px rgba(15,23,42,.06),inset 0 1px 0 #fff}
.hm .btn-out:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--hm) 40%,#fff);box-shadow:0 6px 14px -8px rgba(15,23,42,.25)}
.hm .btn-sm{min-height:34px;padding:0 12px;font-size:13px;border-radius:10px}
.hm .btn-sm svg{width:15px;height:15px}
.hm .btn-tool{background:linear-gradient(180deg,color-mix(in srgb,var(--c) 82%,#fff),var(--c));box-shadow:inset 0 1px 0 rgba(255,255,255,.28),0 6px 14px -7px var(--c)}
.hm .card{border-color:#e4e6f4;border-radius:18px;box-shadow:0 1px 2px rgba(15,23,42,.05),0 2px 8px -2px rgba(15,23,42,.06)}
.hm .sec-h h2{display:flex;align-items:center;gap:10px}
/* welcome card: a soft glow, the next step as a lifted white panel */
.hm .hero{position:relative;background:radial-gradient(120% 140% at 100% 0%,var(--hm-glow) 0%,transparent 55%),var(--hm-grad);box-shadow:0 18px 34px -20px rgba(37,99,235,.9)}
.hm .hero-r{box-shadow:0 14px 30px -16px rgba(15,23,42,.55)}
.hm .goal{border:1px solid rgba(255,255,255,.22)}
/* two-minute actions */
.hm .wins{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
.hm .qw{padding:14px;border-radius:16px;box-shadow:0 1px 2px rgba(15,23,42,.05),0 2px 8px -2px rgba(15,23,42,.06);transition:transform .18s,box-shadow .18s,border-color .18s}
.hm .qw:hover{transform:translateY(-2px);box-shadow:0 12px 24px -12px rgba(15,23,42,.25);border-color:color-mix(in srgb,var(--c) 30%,var(--line))}
.hm .qw i.dp-tile{width:44px;height:44px;border-radius:13px}
.hm .qw i.dp-tile svg{width:22px;height:22px}
.hm .qw>div{flex:1;min-width:0}
.hm .qw b{font-size:14px}.hm .qw span{font-size:12.5px;color:var(--muted)}
.hm .qw-go{width:32px;height:32px;border-radius:50%;flex:none;display:grid;place-items:center;background:var(--cs);color:var(--c);transition:transform .18s,background .18s,color .18s}
.hm .qw-go svg{width:15px;height:15px}
.hm .qw:hover .qw-go{transform:translateX(3px);background:var(--c);color:#fff}
/* checklist */
/* 8 cards: 4 + 4 when there's room, otherwise 2 + 2 + 2 + 2 (never 5 + 3) */
.hm #checklist{container:ck/inline-size}
.hm .kitgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
@container ck (min-width:740px){.hm .kitgrid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@container ck (max-width:330px){.hm .kitgrid{grid-template-columns:minmax(0,1fr)}}
.hm .tool{border-radius:16px;gap:9px;min-height:150px;box-shadow:0 1px 2px rgba(15,23,42,.05),0 2px 8px -2px rgba(15,23,42,.06);transition:transform .18s,box-shadow .18s,border-color .18s}
.hm .tool:before{background:linear-gradient(90deg,var(--c),color-mix(in srgb,var(--c) 45%,#fff))}
.hm .tool:hover{transform:translateY(-2px);box-shadow:0 12px 24px -12px rgba(15,23,42,.25);border-color:color-mix(in srgb,var(--c) 30%,var(--line))}
.hm .tool-ic.dp-tile{width:34px;height:34px;border-radius:10px;--t:var(--c)}
.hm .tool-ic.dp-tile svg{width:18px;height:18px}
.hm .tool-n{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.25;overflow-wrap:normal;word-break:normal}
.hm .tool.done .chk{background:linear-gradient(160deg,#22c55e,#15803d);border-color:transparent;box-shadow:0 3px 8px -3px rgba(21,128,61,.7)}
.hm .tool-go{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;padding:6px 11px;border-radius:10px;background:var(--cs);font-size:12.5px}
.hm .tool-go svg{width:14px;height:14px}
.hm .tool.locked .tool-ic.dp-tile{--t:#94a3b8}
.hm .tool.locked .tool-go{background:var(--gold-soft)}
.hm .bar{height:7px}
.hm .bar i{background:linear-gradient(90deg,color-mix(in srgb,var(--c) 55%,#fff),var(--c))}
.hm .two{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}
/* kits: real buttons on the kit's row */
.hm .kit-row{grid-template-columns:minmax(0,1fr) auto auto}
.hm .kit-acts{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.hm .kit-acts .chip.cur{display:inline-flex;align-items:center;gap:5px;padding:7px 11px;border-radius:10px}
.hm .kit-acts .chip.cur svg{width:14px;height:14px}
.hm .kit-t{overflow-wrap:normal;word-break:normal}
/* right column */
.hm .wd.on i{background:var(--hm-grad);box-shadow:0 4px 10px -4px color-mix(in srgb,var(--hm) 80%,transparent)}
.hm .wd i svg{color:#fff}
.hm .pf-card h2 .dp-tile{width:32px;height:32px;border-radius:10px}
.hm .pf-card h2 .dp-tile svg{width:17px;height:17px}
.hm .pf-url .btn{margin-left:auto;flex:none}
@container hm (max-width:760px){
  .hm .o10{order:10}
  .hm .kit-row{display:flex;flex-wrap:wrap;gap:8px 10px}
  .hm .kit-row>div:first-child{flex:1 1 180px}
  .hm .kit-acts .btn,.hm .kit-acts .chip{min-height:36px}
  .hm-head-act .btn .lbl{display:inline}
}
@media (prefers-reduced-motion: reduce){.hm .tool,.hm .qw,.hm .btn{transition:none}.hm .tool:hover,.hm .qw:hover,.hm .btn:hover{transform:none}}

/* ── banners (unchanged from the old dashboard) ── */
.transfer-banner{background:linear-gradient(135deg,#fffbeb,#fef3c7);border:1px solid #fcd34d;border-radius:16px;padding:1rem 1.4rem;margin-bottom:14px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem}

/* ── recommendation modal (unchanged from the old dashboard) ── */
.recommendation-modal-overlay{position:fixed;inset:0;background:rgba(15,23,42,0.68);z-index:10000;display:none;align-items:center;justify-content:center;padding:1rem}
.recommendation-modal-overlay.open{display:flex}
.recommendation-modal-card{background:#fff;border-radius:18px;padding:1.5rem;width:min(760px,100%);max-height:90vh;overflow-y:auto;box-shadow:0 24px 80px rgba(15,23,42,0.3);box-sizing:border-box}
.recommendation-modal-header{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;margin-bottom:1rem}
.recommendation-modal-header h2{font-size:1.15rem;font-weight:800;color:#0f172a;margin:0}
.recommendation-modal-header p{color:#5b6475;font-size:.9rem;margin-top:.35rem;line-height:1.6}
.recommendation-modal-close{border:none;background:#f1f5f9;color:#5b6475;font-size:1.1rem;width:2.2rem;height:2.2rem;border-radius:999px;cursor:pointer;flex:0 0 auto}
.recommendation-form-grid{display:grid;grid-template-columns:1fr;gap:1rem}
@media (min-width:720px){.recommendation-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.recommendation-form-field{display:flex;flex-direction:column;gap:.45rem;min-width:0}
.recommendation-form-field.full{grid-column:1/-1}
.recommendation-form-field label{font-size:.82rem;font-weight:700;color:#0f172a}
.recommendation-form-field input,.recommendation-form-field textarea{box-sizing:border-box;width:100%;border:1.5px solid #e2e8f0;border-radius:10px;padding:.8rem .9rem;font:inherit;color:#0f172a;background:#fff;resize:vertical}
.recommendation-form-field textarea{min-height:110px}
.recommendation-actions{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:1.1rem;align-items:center}
.rec-letter-btn{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;background:var(--hm-grad);color:#fff;border-radius:8px;padding:.75rem 1.25rem;font-weight:700;text-decoration:none;border:none;cursor:pointer;min-height:44px;font:inherit;font-weight:700}
.rec-letter-btn.secondary{background:#fff;color:var(--hm-ink);border:1.5px solid #d8d8e8}
.recommendation-output{margin-top:1rem;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:1rem}
.recommendation-output textarea{box-sizing:border-box;width:100%;min-height:240px;border:1px solid #e2e8f0;border-radius:10px;padding:.9rem 1rem;font-family:"SFMono-Regular",Consolas,monospace;font-size:.9rem;color:#0f172a;resize:vertical;background:#fff}
.recommendation-status{font-size:.85rem;color:#5b6475;min-height:1.2rem}
.recommendation-generating{display:inline-flex;gap:.5rem;align-items:center;color:var(--hm-ink);font-weight:600}
.recommendation-generating::before{content:"";width:14px;height:14px;border-radius:999px;border:2px solid #e2e8f0;border-top-color:var(--hm-ink);animation:hm-spin .9s linear infinite}
@keyframes hm-spin{to{transform:rotate(360deg)}}
.hm-school svg{width:15px;height:15px;flex:none}

/* Recommendation-letter dialog with colour (design pass C, Nate round 4) */
.recommendation-modal-card{padding:0;overflow:hidden auto}
.recommendation-modal-header{margin:0;padding:1.25rem 1.5rem;align-items:center;background:linear-gradient(120deg,color-mix(in srgb,var(--hm,#4f46e5) 12%,#fff),color-mix(in srgb,#7c3aed 10%,#fff));border-bottom:1px solid color-mix(in srgb,var(--hm,#4f46e5) 16%,#fff)}
.recommendation-modal-header>div{flex:1;min-width:0}
.recommendation-modal-header .rec-ic{--t:var(--hm,#4f46e5);flex:none}
.recommendation-modal-close{background:#fff}
#recommendation-form{padding:1.25rem 1.5rem 1.5rem}
.recommendation-form-field label{color:var(--hm-ink,#3730a3)}
.recommendation-form-field input,.recommendation-form-field textarea{background:color-mix(in srgb,var(--hm,#4f46e5) 3%,#fff);border-color:color-mix(in srgb,var(--hm,#4f46e5) 16%,#e2e8f0)}
.recommendation-form-field input:focus,.recommendation-form-field textarea:focus{outline:3px solid color-mix(in srgb,var(--hm,#4f46e5) 25%,transparent);border-color:var(--hm,#4f46e5)}
.recommendation-actions .rec-letter-btn:not(.secondary){background:var(--hm-grad,linear-gradient(135deg,#2563eb,#6d28d9));color:#fff;border:0;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 8px 16px -8px rgba(91,33,182,.6)}

/* Full-kit PDF in the kit ⋯ menu (audit/kit_pdf_redownload_plan.md) */
.hm .kit-menu .kit-dl-msg{margin:4px 10px 6px;font-size:13px;font-weight:600;color:#b91c1c;max-width:240px;line-height:1.35}
.hm .kit-menu button:disabled{opacity:.7;cursor:progress}
