/* Cool blue-white surfaces separate the page, white cards and inset content.
   Navy is text, the rail and the dark card. Green is the active rail tile, Strong fit and the one action a screen asks for (dark card, sign-in forms), as in the original. Type hues are small dots. */
:root {
  --navy: #102131;
  --navy-card: #1d3b54;
  --on-navy: #c5d0d8;
  --green: #5df476;
  --green-tint: #e6fbe8;
  --fit-good-bg: #c6e2f7;
  --fit-stretch-bg: #ffe2a8;
  --ink: #102131;
  --muted: #52626f;
  --line: #d6e2ee;
  --line-strong: #adc2d5;
  --bg: #f3f7fb;
  --well: #e7eff8;
  --hover: #dae7f4;
  --press: #dae7f4;
  --field-line: #7f8a93;
  --surface: #ffffff;
  --sunk: #f5f8fc;
  --control: var(--surface);
  --shadow: 0 8px 28px rgba(16, 33, 49, .14);
  --amber: #8a5a00;
  --amber-tint: #fff4d9;
  --red: #b3261e;
  --t-job: #6652e8;
  --t-apprenticeship: #67af91;
  --t-experience: #feb273;
  --t-training: #5aa9e6;
  --t-event: #e58fb1;
  --r-xs: 6px;
  --r-s: 8px;
  --r-m: 10px;
  --r-l: 16px;
  --proto: 0px;
  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
}
[data-type='job'] { --t: var(--t-job); }
[data-type='apprenticeship'] { --t: var(--t-apprenticeship); }
[data-type='experience'] { --t: var(--t-experience); }
[data-type='training'] { --t: var(--t-training); }
[data-type='event'] { --t: var(--t-event); }
body.has-proto { --proto: 34px; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; }
.i { flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 4px; }
#proto :focus-visible { outline-color: var(--green); }
.next-card:not(.quiet) :focus-visible, .rail :focus-visible, .auth-panel :focus-visible, #toast :focus-visible { outline-color: #fff; }
.rail .menu :focus-visible { outline-color: var(--navy); }
h1:focus { outline: none; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 80; padding: 10px 14px; background: var(--surface); color: var(--ink); border-radius: var(--r-s); font-weight: 600; }
.skip:focus { top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Type from the Homerun copy: Archivo throughout, heavy and wide for page titles, banners and the sign-in claim; Fraunces only on the guides.
   Panel titles and card titles stay at the body width, so the content still carries the page */
.display { font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
h1.display { font-size: 26px; }
h2.display { font-size: 20px; }
h1.display, .next-title, .auth-claim { font-weight: 850; font-stretch: 112%; letter-spacing: -.015em; }
h2.display.next-title { font-size: 23px; line-height: 1.15; }
.guide-title, .guide-head { font-family: 'Fraunces', Georgia, serif; font-weight: 500; letter-spacing: -.005em; }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.4; }
.strong { font-weight: 600; }

/* Prototype strip: not part of the design */
#proto { position: sticky; top: 0; z-index: 60; height: var(--proto); display: none; align-items: center; gap: 12px; padding: 0 14px; background: #000; color: #fff; font-size: 12.5px; white-space: nowrap; overflow-x: auto; }
body.has-proto #proto { display: flex; }
#proto b { font-weight: 600; color: #fff; }
#proto button { color: #fff; padding: 3px 9px; border-radius: 6px; font-size: 12.5px; }
#proto button[aria-pressed='true'] { background: #fff; color: #000; }
#proto .proto-note { margin-left: auto; color: #c5d0d8; }
#proto .proto-x { padding: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-s); font-weight: 600; white-space: nowrap; text-decoration: none; transition: transform .12s ease, background .12s ease, border-color .12s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-card); }
.btn-secondary { background: var(--btn, var(--control)); }
.btn-secondary:hover { background: var(--btn-hover, var(--line)); }
.btn-quiet { padding: 0 10px; color: var(--ink); }
.btn-quiet:hover { background: var(--hover); }
.btn-danger { color: var(--red); background: var(--btn, var(--control)); }
.btn-danger:hover { background: var(--btn-hover, var(--line)); }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r-s); color: var(--ink); flex: none; }
.icon-btn:hover { background: var(--hover); }
.link { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.link:hover { text-decoration-thickness: 2px; }

/* Shell */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: calc(100vh - var(--proto)); }
.rail { position: sticky; top: var(--proto); height: calc(100vh - var(--proto)); background: var(--navy); color: #fff; display: flex; flex-direction: column; padding: 20px 12px 12px; z-index: 20; }
.rail nav { display: grid; gap: 2px; }
.rail-logo { display: block; padding: 0 8px; margin-bottom: 24px; }
.rail-logo img { width: 136px; height: auto; }
.rail-logo .rail-mark { display: none; }
.rail-cta { margin-top: 16px; min-height: 40px; background: rgba(255, 255, 255, .1); color: #fff; }
.rail-cta:hover { background: rgba(255, 255, 255, .16); }
.nav-item { position: relative; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: var(--r-m); text-decoration: none; font-weight: 500; color: var(--on-navy); white-space: nowrap; }
.nav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-item[aria-current='page'] { color: #fff; font-weight: 600; }
.nav-item[aria-current='page'] > .i { width: 30px; height: 30px; margin: 0 -5px; padding: 5px; background: var(--green); color: var(--navy); border-radius: var(--r-s); }
.nav-count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 700; line-height: 22px; text-align: center; }
.rail .nav-count { background: rgba(255, 255, 255, .14); color: #fff; }
.rail-foot { margin-top: auto; display: flex; align-items: center; gap: 4px; position: relative; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .14); }
.account { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 6px; border-radius: var(--r-s); color: #fff; }
.account:hover { background: rgba(255, 255, 255, .07); }
.account-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--control); color: var(--navy); font-size: 13px; font-weight: 600; }
/* A photo fills the same circle as the initials */
.avatar.has-photo { overflow: hidden; padding: 0; background: var(--well); }
.avatar.has-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rail .avatar { background: rgba(255, 255, 255, .14); color: #fff; }
.rail .icon-btn { position: relative; color: var(--on-navy); }
.rail .icon-btn:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.dot { position: absolute; top: 7px; right: 7px; width: 13px; height: 13px; border-radius: 50%; background: var(--amber); border: 2px solid var(--surface); }
.rail .dot { background: #fff; border-color: var(--navy); }

.main { --gutter: max(44px, calc((100% - 1232px) / 2)); padding: 0 0 72px; min-width: 0; }
.main > * { margin-left: var(--gutter); margin-right: var(--gutter); }
.main > :first-child { margin-top: 36px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-sub { margin-top: 6px; color: var(--muted); text-wrap: pretty; }

/* Popovers */
.menu { position: absolute; z-index: 40; min-width: 240px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); border-radius: var(--r-m); padding: 6px; }
.menu[hidden] { display: none; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: var(--r-xs); font-size: 14px; text-decoration: none; }
.menu-item:hover { background: var(--line); }
.menu-sep { height: 1px; background: var(--line); margin: 6px 0; }
.menu-note { display: block; padding: 10px; border-radius: var(--r-xs); text-decoration: none; font-size: 14px; line-height: 1.35; }
.menu-note:hover { background: var(--line); }
.menu-note small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.rail-foot .menu { left: 0; bottom: calc(100% + 6px); width: 280px; }

/* Mobile bars (hidden on desktop) */
.topbar, .tabbar { display: none; }

/* Fields */
.field { display: block; margin-bottom: 18px; }
.field > span, .label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.input, .select, textarea.input { width: 100%; min-height: 48px; padding: 11px 14px; background-color: var(--surface); border: 1px solid var(--field-line); border-radius: var(--r-m); outline-offset: 0; }
textarea.input { min-height: 130px; resize: vertical; line-height: 1.5; }
.input::placeholder { color: var(--muted); }
.input:hover, .select:hover { border-color: var(--ink); }
.input.has-error { border-color: var(--red); }
.error { display: block; margin-top: 6px; color: var(--red); font-size: 13px; }
.hint { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23102131' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pw { position: relative; }
.pw .icon-btn { position: absolute; right: 4px; top: 4px; }
.pw .input { padding-right: 48px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); margin: 0; }

/* Choice chips */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { min-height: 38px; padding: 8px 14px; background: var(--btn, var(--control)); border-radius: var(--r-m); font-size: 14px; }
.choice:hover { background: var(--btn-hover, var(--line)); }
.choice[aria-pressed='true'] { background: var(--navy); color: #fff; font-weight: 600; }

/* Auth */
/* The sign-in panel is a poster: a navy card floating on the page, a bold claim and two real-looking matches that drift a little, like the product's own cards */
.auth { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: calc(100vh - var(--proto)); background: var(--surface); }
.auth-panel { position: sticky; top: calc(var(--proto) + 8px); height: calc(100vh - var(--proto) - 16px); margin: 8px 0 8px 8px; overflow: hidden; display: flex; flex-direction: column; padding: 32px 40px 40px; background: var(--navy); color: #fff; border-radius: var(--r-l); }
.auth-logo { align-self: flex-start; }
.auth-logo img { width: 172px; height: auto; }
.auth-claim { margin-top: auto; font-size: clamp(28px, 2.6vw, 42px); line-height: 1.08; text-wrap: balance; }
.auth-samples { display: grid; gap: 10px; margin-top: 32px; }
.auth-sample { --control: var(--sunk); display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); color: var(--ink); border-radius: var(--r-m); box-shadow: 0 10px 30px rgba(0, 0, 0, .22); rotate: -1.4deg; }
.auth-sample:nth-child(2) { rotate: 1.1deg; margin-left: 12px; margin-right: -4px; }
/* On the sign-in panel the samples drift slowly, and rise in on the first visit only */
.auth-samples .auth-sample { animation: sample-drift 7s ease-in-out 1s infinite alternate; }
.auth-samples .auth-sample:nth-child(2) { animation-duration: 8.5s; animation-delay: 1.6s; }
.auth-samples.fresh .auth-sample { animation: sample-in .7s cubic-bezier(.2, .8, .2, 1) .1s both, sample-drift 7s ease-in-out 1s infinite alternate; }
.auth-samples.fresh .auth-sample:nth-child(2) { animation-delay: .24s, 1.6s; animation-duration: .7s, 8.5s; }
@keyframes sample-in { from { opacity: 0; transform: translateY(32px); } }
@keyframes sample-drift { to { translate: 0 -6px; } }
.auth-sample > div { min-width: 0; }
.auth-sample strong { display: block; font-weight: 600; }
/* Only the line under a card title: the icon square, initials and logo keep their own layout */
.auth-sample strong + span { display: block; color: var(--muted); font-size: 13.5px; }
.auth-sample .fit-mini { margin-left: auto; padding: 2px 8px; border-radius: var(--r-xs); background: var(--sunk); color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
.auth-sample .fit-mini.on { background: var(--green); color: var(--navy); }
.auth-sample .fit-mini.good { background: var(--fit-good-bg); color: var(--navy); }
/* Registration: the student's own profile in place of the samples */
.preview-label { margin-bottom: 10px; color: var(--on-navy); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.auth-sample.preview-card { display: block; padding: 18px; rotate: -1deg; }
.preview-top { display: flex; align-items: center; gap: 14px; }
.preview-top .avatar { width: 44px; height: 44px; font-size: 15px; }
.preview-top strong { font-size: 17px; }
.preview-top .ghost { color: var(--muted); font-weight: 500; }
.auth-sample .preview-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; }
.auth-sample .preview-row span { display: inline; color: var(--ink); font-size: 14px; }
.auth-sample .preview-row .i { color: var(--muted); }
.preview-skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.preview-skills .tag { font-weight: 500; }
.auth-main { display: flex; flex-direction: column; padding: 36px 44px 32px; min-width: 0; background: var(--surface); }
.auth-form { width: 100%; max-width: 440px; margin: auto; padding: 24px 0; }
.auth-form h1 { margin-bottom: 8px; }
.auth-form .btn-primary { background: var(--green); color: var(--navy); }
.auth-form .btn-primary:hover { background: var(--navy); color: #fff; }
.auth-form .lead { color: var(--muted); margin-bottom: 28px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 22px; }
.auth-alt { margin-top: 22px; text-align: center; }
.auth-help { margin-top: auto; text-align: center; font-size: 14px; color: var(--muted); }
.role { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; background: var(--sunk); border-radius: var(--r-l); transition: transform .14s ease; }
.role + .role { margin-top: 10px; }
.role:hover { transform: translateX(3px); }
.role-ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: var(--r-m); background: var(--surface); color: var(--navy); }
.role strong { display: block; font-size: 17px; font-weight: 600; }
.role span.small { display: block; color: var(--muted); font-size: 14px; }
.role > .i:last-child { margin-left: auto; color: var(--muted); }
.steps { display: flex; gap: 6px; margin-bottom: 20px; }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.steps i.on { background: var(--navy); }
.step-count { margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.why { display: flex; gap: 10px; padding: 12px 14px; margin-bottom: 22px; background: var(--sunk); border-radius: var(--r-m); font-size: 14px; line-height: 1.45; }
.why .i { color: var(--navy); margin-top: 1px; }
.match-list { display: grid; gap: 10px; }
.match-list .opp-title { margin-top: 10px; }
.field-link { margin: -8px 0 18px; font-size: 14px; }
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.form-actions .btn-primary { flex: 1; }

/* Tabs */
.tabs { display: flex; gap: 8px; padding: 2px 0; margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs.more { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
.tab:focus-visible { outline-offset: -2px; }
.tab[aria-selected='true']:focus-visible { outline-color: #fff; }
.thread-list .thread-btn:focus-visible { outline-offset: -2px; }
.tab { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: var(--r-m); color: var(--muted); font-weight: 500; white-space: nowrap; }
.tab:hover { background: var(--hover); color: var(--ink); }
.tab[aria-selected='true'] { background: var(--navy); color: #fff; font-weight: 600; }
.tab[aria-selected='true'] .tab-count { color: var(--on-navy); }
.tab-count { font-size: 13px; color: inherit; font-weight: 400; }

/* Search */
.searchbar { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); background: var(--surface); border-radius: var(--r-m); margin-bottom: 14px; }
.searchbar.one { grid-template-columns: minmax(0, 1fr); }
a[data-plain] { text-decoration: none; }
.sb-field { display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 54px; min-width: 0; }
.sb-field + .sb-field { border-left: 1px solid var(--line); }
.sb-field input, .sb-field select { width: 100%; min-width: 0; height: 52px; border: 0; background: transparent; outline: 0; }
.sb-field:focus-within { outline: 2px solid var(--navy); outline-offset: -2px; border-radius: var(--r-m); }
.sb-field .i { color: var(--muted); }
.tabs-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.tabs-row .tabs { flex: 1; min-width: 0; margin: 0; }
.tabs-row .toggle { flex: none; }
.toggle { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; background: var(--btn, var(--control)); border-radius: var(--r-m); font-size: 14px; }
.toggle[aria-pressed='true'] { background: var(--navy); color: #fff; font-weight: 600; }
.toggle:not([aria-pressed='true']):hover { background: var(--btn-hover, var(--line)); }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.results-count { display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; min-width: 0; }
.results-count .link { font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }

/* Opportunity card */
.card { background: var(--surface); border-radius: var(--r-l); }
.auth-main .card { background: var(--sunk); }
/* Inset controls use a cool tint; controls on tinted surfaces turn white. */
.card, .hint-bar, .next-card.quiet, .drawer, .auth-main, .topbar { --control: var(--sunk); --hover: var(--line); --btn: var(--well); --btn-hover: var(--press); }
.auth-main .card, .col, .why, .skill-gap, .exp, .cohort-app, .thread, .switch, .thread-btn[aria-current='true'] { --control: var(--surface); }
.opp { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 18px; cursor: pointer; transition: transform .14s ease; }
/* Type colour only where a list mixes types, and only as a small dot */
.opp[data-label]::before { content: attr(data-label); margin-bottom: 12px; padding-left: 14px; background: radial-gradient(circle at 4px 50%, var(--t) 4px, transparent 4.5px); color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 18px; }
.opp:hover { transform: translateY(-2px); }
.opp:has(.opp-save:hover) { transform: none; }
.opp-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.opp-org { min-width: 0; font-size: 13.5px; line-height: 1.3; }
.opp-org b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opp-org span { color: var(--muted); }
.opp-save { margin: -6px -8px -6px auto; }
[data-act='save'][aria-pressed='true'] svg { fill: var(--navy); }
.opp-title { display: block; width: 100%; margin-top: 14px; font-size: 18px; }
.opp-meta { margin-top: 6px; }
.opp-meta b { font-weight: 600; }
.opp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; font-size: 13.5px; }
.opp-requirements { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.closing { color: var(--muted); white-space: nowrap; }
.closing.soon { color: var(--amber); font-weight: 600; }
.applied-tag { display: inline-flex; align-items: center; gap: 5px; color: var(--navy); font-weight: 600; white-space: nowrap; }

/* Fit: 1 signal instead of 4 rings */
.fit { font-weight: 500; }
.fit b { font-weight: 600; padding: 1px 6px; border-radius: var(--r-xs); }
.fit.strong b { background: var(--green); color: var(--navy); }
.fit.good b { background: var(--fit-good-bg); color: var(--navy); }
.fit.weak b { background: var(--fit-stretch-bg); color: var(--navy); }
.skills-fit-note { margin: 8px 0; }
.pay-range-error { margin: -10px 0 18px; }
.pay-range-error[hidden] { display: none; }
[data-filter-results]:disabled { opacity: .5; cursor: not-allowed; }

/* Logo marks */
.logo { display: inline-flex; flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; }
.logo svg { width: 100%; height: 100%; }
.logo-lg { width: 72px; height: 72px; }

/* Drawer */
#layer { position: fixed; inset: var(--proto) 0 0 0; z-index: 50; display: none; }
#layer.open { display: block; }
.scrim { position: absolute; inset: 0; background: rgba(16, 33, 49, .28); animation: fade .16s ease; }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); display: flex; flex-direction: column; background: var(--surface); box-shadow: var(--shadow); animation: slide .2s ease; }
.drawer-scroll { flex: 1; overflow-y: auto; padding: 22px 28px 28px; }
form.drawer-scroll { display: block; }
.drawer-scroll > h2.display { margin-bottom: 16px; }
.drawer-scroll > h2.display.tight { margin-bottom: 6px; }
.drawer .cand-note, .drawer .meter { font-size: 14px; }
.meter + .meter-note { margin-top: 4px; }
.meter-note + .meter { margin-top: 12px; }
.meter-guide { margin-top: 10px; }
.lead-s { margin-bottom: 18px; }
.cand-move-to { margin-top: 18px; }
.cand-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.skills.gap-s { margin-top: 8px; }
.skills.gap-m { margin-top: 14px; }
.drawer-close { position: absolute; top: 14px; right: 14px; z-index: 2; background: var(--surface); }
.drawer-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 28px; border-top: 1px solid var(--line); background: var(--surface); }
.drawer-foot .btn-primary { flex: 1; }
.drawer-foot .foot-status { margin-left: auto; }
.drawer h2 { padding-right: 40px; }
.drawer h2.display { font-size: 24px; }
.drawer-org { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding-right: 40px; font-size: 14px; }
.section-h { margin: 22px 0 10px; font-size: 16px; font-weight: 600; }
.section-h.first { margin-top: 0; }
.opp-facts { margin: 8px 0 20px; }
.opp-facts b { font-weight: 600; }
.opp-facts span { display: block; margin-top: 2px; color: var(--muted); }
.match-row { display: flex; gap: 10px; padding: 10px 0; }
.match-row + .match-row { border-top: 1px solid var(--line); }
.match-row b { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.skill-gap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; margin-top: 8px; background: var(--sunk); border-radius: var(--r-m); font-size: 14px; }
.hint-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 8px 8px 14px; margin-bottom: 16px; background: var(--surface); border-radius: var(--r-m); font-size: 14px; }
.hint-bar p { flex: 1; min-width: 200px; }
.hint-bar b { font-weight: 600; }
.hint-bar .icon-btn { width: 36px; height: 36px; }
.hint-actions { display: flex; gap: 8px; }
.queue-bar { display: flex; align-items: center; gap: 12px; padding-right: 44px; margin-bottom: 16px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.queue-bar .progress { flex: 1; height: 6px; margin: 0; }
.done-state { padding-top: 28px; display: grid; gap: 10px; justify-items: start; }
.done-check { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: #fff; }
.skill-gap strong { font-weight: 600; margin-right: auto; }
#layer.still .scrim, #layer.still .drawer { animation: none; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(32px); opacity: 0; } }

/* Skills */
.skills { display: flex; flex-wrap: wrap; gap: 6px; }
.skill { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 3px 10px; background: var(--control); border-radius: var(--r-xs); font-size: 14px; }
.skill.have { background: var(--green-tint); color: #0f4f20; font-weight: 500; }
.skill.miss { background: transparent; border: 1px dashed var(--line-strong); color: var(--muted); }
.skill button { display: inline-flex; color: var(--muted); }
.skill button:hover { color: var(--red); }

/* Companies */
.co-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.co { display: flex; align-items: center; gap: 12px; padding: 14px; cursor: pointer; transition: transform .14s ease; }
.co:hover { transform: translateY(-2px); }
.co-body { flex: 1; min-width: 0; }
.co-name { display: block; font-size: 16px; font-weight: 600; }
.co-sub { display: block; font-size: 13.5px; color: var(--muted); }
.co-live { display: block; font-size: 13.5px; font-weight: 500; margin-top: 2px; }
.btn-follow { min-width: 104px; min-height: 44px; background: var(--navy); color: var(--surface); }
.btn-follow:hover { background: var(--navy-card); }
.btn-follow[aria-pressed='true'] { background: var(--well); color: var(--navy); }
.btn-follow[aria-pressed='true']:hover { background: var(--press); }
.more-row { display: flex; justify-content: center; margin-top: 18px; }

.co-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.co-head-body { flex: 1; min-width: 220px; }
.co-head-actions { display: flex; align-items: center; gap: 8px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.co-page { row-gap: 12px; grid-template-areas: 'title .' 'list about'; }
.co-page-title { grid-area: title; }
.co-page > section { grid-area: list; }
.co-page > aside { grid-area: about; }
.panel { padding: 20px; }
.panel + .panel { margin-top: 14px; }
.two-col > .panel + .panel { margin-top: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.panel-head h2 { font-size: 16px; font-weight: 600; }
.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--lines, 6); overflow: hidden; }
.clamp.open { display: block; }
.readmore { margin-top: 6px; }
.stack { display: grid; gap: 12px; }
.dl { display: grid; gap: 12px; }
.dl dt { font-size: 13px; color: var(--muted); }
.dl dd { font-weight: 500; overflow-wrap: anywhere; }

/* Profile */
.profile-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.profile-card { position: sticky; top: calc(var(--proto) + 20px); padding: 20px; }
.avatar-lg { width: 64px; height: 64px; font-size: 22px; }
.profile-card .panel-head { align-items: flex-start; margin-bottom: 0; }
.display-s, .profile-card h1.display { font-size: 22px; }
.profile-card h1.display { margin: 12px 0 2px; }
.profile-card .dl { margin: 14px 0 16px; }
.progress { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin: 6px 0 8px; }
.progress i { display: block; height: 100%; border-radius: 4px; background: var(--navy); }
.todo { display: grid; gap: 6px; margin-top: 8px; font-size: 14px; }
.completion { padding-top: 14px; margin-bottom: 16px; border-top: 1px solid var(--line); }
.exp { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--sunk); border-radius: var(--r-m); }
.exp + .exp { margin-top: 6px; }
.exp strong { display: block; font-weight: 600; }
.exp .t-actions { margin: -6px -6px -6px 0; }
.add-skill { display: flex; gap: 8px; margin-top: 12px; }
.add-skill .input { min-height: 40px; padding: 8px 12px; }
.soon-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: var(--r-xs); background: var(--control); font-size: 12.5px; font-weight: 600; white-space: nowrap; }

/* Applications */
/* The action sits under the role on the left; the stages and what they mean sit on the right */
.app-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; grid-template-areas: 'main status chev' 'next status chev'; align-items: center; gap: 4px 22px; padding: 16px 18px; cursor: pointer; transition: transform .14s ease; }
.app-row > .app-main { grid-area: main; align-self: end; }
.app-row > .app-status { grid-area: status; }
.app-row > .app-next { grid-area: next; align-self: start; margin-top: 4px; padding-left: 52px; }
.app-row > .i { grid-area: chev; }
.app-row:not(:has(> .app-next)) > .app-main { grid-row: 1 / 3; align-self: center; }
.app-row:hover { transform: translateY(-2px); }
.cohort-app { padding: 12px 14px; background: var(--sunk); border-radius: var(--r-m); }
.cohort-app + .cohort-app { margin-top: 6px; }
.cohort-app strong { display: block; font-weight: 600; }
.cohort-app .track { margin-top: 10px; }
.app-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.app-title { display: block; font-size: 16px; font-weight: 600; }
.track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.track li { font-size: 12.5px; color: var(--muted); }
/* The stage name sits above its bar, so the bar separates the stages from the status line under them */
.track li::after { content: ''; display: block; height: 4px; border-radius: 2px; background: var(--line); margin-top: 5px; }
.track li.done::after { background: var(--navy); }
.track li.now { color: var(--ink); font-weight: 600; }
.track-closed { font-size: 12.5px; color: var(--muted); }
.track-closed::after { content: ''; display: block; height: 4px; border-radius: 2px; background: var(--line-strong); margin-top: 5px; }
.app-note { margin-top: 6px; font-size: 13.5px; }
.note-now { font-weight: 600; }
.app-note.no { color: var(--muted); }
.app-note.late { color: var(--amber); font-weight: 600; }
.app-next { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 8px; font-size: 13.5px; }

/* Messages */
.msgs { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 8px; padding: 8px; min-height: 520px; height: calc(100vh - var(--proto) - 117px); overflow: hidden; }
.thread-list { display: grid; align-content: start; gap: 4px; overflow-y: auto; }
.thread-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px; border-radius: var(--r-m); }
.thread-btn:hover { background: var(--line); }
/* The one thin dark outline in the product: the item you are on */
.thread-btn[aria-current='true'] { background: var(--sunk); box-shadow: inset 0 0 0 1px var(--ink); }
.thread-btn strong { display: block; font-weight: 600; }
.thread-btn span.small { display: block; color: var(--muted); }
.thread-btn .nav-count { flex: none; }
.thread { display: flex; flex-direction: column; min-width: 0; background: var(--sunk); border-radius: var(--r-m); overflow: hidden; }
.thread-head { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.thread-head { display: flex; align-items: center; gap: 8px; }
.thread-head > div:first-of-type { flex: 1; min-width: 0; }
.thread-head strong { display: block; font-size: 16px; font-weight: 600; }
.thread-head .t-actions .menu { min-width: 240px; }
.dl + .switch { margin-top: 12px; }
.thread-note { padding: 8px 18px; border-bottom: 1px solid var(--line); }
.composer-off { display: block; }
.bubbles { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.bubble { max-width: 74%; padding: 10px 13px; background: var(--surface); border-radius: var(--r-m); }
.bubble.me { align-self: flex-end; background: var(--navy); color: #fff; }
.bubble .link { display: block; margin-top: 6px; }
.bubble time { display: block; margin-top: 3px; font-size: 12px; opacity: .75; }
.composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.thread-back { display: none; }

/* Candidates */
.next-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 112px; padding: 18px 20px; margin-bottom: 18px; background: var(--navy-card); color: #fff; border-radius: var(--r-l); }
.next-card > div { flex: 1; min-width: 0; }
.next-sub { margin-top: 6px; color: var(--on-navy); }
.next-card .btn { flex: none; }
.next-card:not(.quiet) .btn-primary { background: var(--green); color: var(--navy); }
.next-card:not(.quiet) .btn-primary:hover { background: #fff; }
.next-card.quiet { min-height: 0; background: var(--surface); color: var(--ink); }
.board-pick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.board-job { width: auto; max-width: 100%; min-height: 38px; height: 38px; padding: 0 34px 0 14px; background-color: var(--surface); border: 0; border-radius: var(--r-m); font-size: 14px; font-weight: 600; }
.board-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.board-scroll { overflow-x: auto; padding-bottom: 6px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(216px, 1fr); gap: 10px; align-items: start; }
.col { min-height: 360px; padding: 10px; background: var(--well); border-radius: var(--r-l); transition: box-shadow .12s ease; }
.col.over { box-shadow: inset 0 0 0 2px var(--navy); }
.col-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 10px; font-weight: 600; }
.col-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--surface); font-size: 12.5px; font-weight: 500; line-height: 22px; text-align: center; }
.col-empty { padding: 14px 4px; color: var(--muted); font-size: 13.5px; text-align: center; }
.cand { --control: var(--sunk); display: block; width: 100%; padding: 12px; background: var(--surface); border-radius: var(--r-m); cursor: pointer; transition: transform .14s ease; }
.cand + .cand { margin-top: 8px; }
.cand:hover { transform: translateY(-2px); }
.cand.dragging { opacity: .45; }
.cand-fit { display: flex; flex-wrap: wrap; gap: 0 10px; margin-top: 8px; font-size: 12.5px; }
.cand-fit span { white-space: normal; }
.board-order { margin-bottom: 12px; }
.cand-name { display: block; font-weight: 600; }
.cand-sub { display: block; font-size: 13px; color: var(--muted); }
.cand-note { display: flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.cand-note.warn { color: var(--amber); font-weight: 600; }
.cand-note.urgent { color: var(--red); font-weight: 600; }
.meter { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; margin-top: 8px; font-size: 12.5px; }
.meter b { font-weight: 600; font-variant-numeric: tabular-nums; }
.meter i { grid-column: 1 / -1; height: 4px; margin-top: 3px; border-radius: 2px; background: var(--line); overflow: hidden; display: block; }
.meter i::after { content: ''; display: block; height: 100%; width: var(--v); background: var(--navy); border-radius: 2px; }

/* Opportunities table */
.table-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.t-row { --control: var(--sunk); display: grid; grid-template-columns: minmax(0, 1fr) 56px 46px 82px 72px 46px 138px 40px; align-items: center; gap: 12px; padding: 12px 10px 12px 18px; background: var(--surface); border-radius: var(--r-m); cursor: pointer; transition: transform .14s ease; }
.t-draft { grid-template-columns: minmax(0, 1fr) 280px 40px; }
.t-row + .t-row { margin-top: 6px; }
.t-row:not(.t-head):hover { transform: translateY(-2px); }
.t-head { padding-top: 10px; padding-bottom: 6px; background: transparent; font-size: 13px; color: var(--muted); cursor: default; transition: none; }
.t-head + .t-row { margin-top: 0; }
.t-title { display: block; font-size: 16px; font-weight: 600; }
.t-num { font-variant-numeric: tabular-nums; }
.badge-new { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: var(--r-xs); background: var(--navy); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.t-actions { position: relative; }
.t-actions .menu { right: 0; top: 42px; min-width: 170px; }
.t-label { display: none; }
.m-only { display: none; }
.op-show { width: auto; min-height: 38px; height: 38px; padding: 0 34px 0 14px; background-color: var(--surface); border: 0; border-radius: var(--r-m); font-size: 14px; margin-bottom: 18px; }

/* Settings */
.settings { max-width: 720px; }
.key-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0 6px; }
.key { flex: 1; min-width: 200px; padding: 10px 12px; background: var(--control); border-radius: var(--r-m); font-family: ui-monospace, Menlo, monospace; font-size: 13.5px; overflow-wrap: anywhere; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; background: var(--sunk); border-radius: var(--r-m); }
.switch + .switch { margin-top: 6px; }
.switch input { appearance: none; -webkit-appearance: none; position: relative; width: 44px; height: 24px; margin: 0; flex: none; border-radius: 12px; background: var(--field-line); cursor: pointer; transition: background .14s ease; }
.switch input::before { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .14s ease; }
.switch input:checked { background: var(--navy); }
.switch input:checked::before { transform: translateX(20px); }
.switch input:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.confirm { padding: 12px 14px; margin-top: 10px; background: var(--amber-tint); border-radius: var(--r-m); font-size: 14px; }
.confirm-actions { display: flex; gap: 8px; margin-top: 10px; }

/* Toast */
#toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translateX(-50%); display: none; gap: 14px; max-width: calc(100vw - 32px); max-height: 40vh; overflow-y: auto; padding: 12px 16px; background: var(--navy); color: #fff; box-shadow: var(--shadow); border-radius: var(--r-m); font-size: 14px; }
#toast.show { display: flex; flex-direction: column; align-items: stretch; }
.toast-item { display: flex; align-items: center; gap: 14px; }
.toast-item > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
#toast button { color: var(--green); font-weight: 600; flex: none; }
.drawer:has(#toast.show) { animation: none; }
/* With a panel open the message sits beside it from 1000 px, and above its buttons on narrower screens */
@media (min-width: 1000px) { body:has(#layer .drawer) #toast { left: calc((100vw - 560px) / 2); max-width: calc(100vw - 592px); } }
@media (max-width: 999px) {
  body:has(#layer .drawer) #toast { bottom: calc(var(--panel-foot, 72px) + 16px); }
  /* Once a message has been up over a panel, the panel has room at the end of its scroll area, so its last control scrolls clear of the message */
  #layer .drawer.roomy .drawer-scroll { padding-bottom: calc(var(--panel-toast, 80px) + 32px); }
}
/* A long unbroken name wraps instead of pushing the page sideways */
h1.display, h2.display, .display-s, .next-title, .cand-name, .cand-sub, .cand-job, .app-title, .t-title, .co-name, .opp-title, .thread-btn strong, .thread-head strong, .drawer-org .strong, .w-main, .chip-title { overflow-wrap: anywhere; }
.elsewhere { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* Find keeps one stable search shell; only supporting content below results changes. */
.home-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.find-focused > .next-card.next-student, .find-focused > .home-block, .find-focused > .home-grid,
.find-focused > .find-home-tip, .find-focused > .find-home-note { display: none; }
.next-card.next-student, .find-home-tip, .find-home-note { margin-top: 28px; }

/* Compact category tabs keep their size when selection or counts change. */
.covers-row { align-items: flex-start; }
.tabs.covers { display: flex; gap: 10px; padding: 4px; margin: -4px; }
.tab.cover-tab { display: flex; flex: 1 0 auto; align-items: stretch; justify-content: center; height: 48px; min-width: 0; padding: 12px 16px; border-radius: var(--r-m); background: var(--surface); color: var(--ink); font-weight: 600; white-space: nowrap; }
.tab.cover-tab:hover { background: var(--well); color: var(--ink); }
.cover-label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.cover-label .tab-count { flex: none; inline-size: 3ch; text-align: center; }
.cover-label > .i { margin-left: auto; opacity: 0; }
.tab.cover-tab[aria-selected='true'] { background: var(--navy); color: #fff; font-weight: 600; }
.tab.cover-tab[aria-selected='true']:hover { background: var(--navy-card); color: #fff; }
.tab.cover-tab[aria-selected='true'] .cover-label, .tab.cover-tab[aria-selected='true'] .tab-count { color: var(--on-navy); }
.tab.cover-tab[aria-selected='true'] .cover-label > .i { opacity: 1; color: var(--green); }
.tab.cover-tab:focus-visible, .tab.cover-tab[aria-selected='true']:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

/* Search bars with the where buttons give them their own width; Find adds Filters at the end of the same bar */
.searchbar:has(.sb-where) { grid-template-columns: minmax(0, 1fr) auto; }
.searchbar.with-filters { grid-template-columns: minmax(0, 1fr) auto auto; }
.sb-filters { display: flex; align-items: center; padding: 0 8px 0 4px; }
.sb-filters .toggle { gap: 8px; height: 46px; padding: 0 14px; background: var(--sunk); }
.sb-filters .toggle:not([aria-pressed='true']):hover { background: var(--line); }
.sb-filters .toggle[aria-pressed='true'] { background: var(--navy); color: #fff; }
.f-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--green); color: var(--navy); font-size: 12px; font-weight: 700; }
/* Where: 3 buttons in the search bar, as in the Contra copy */
.sb-where { gap: 10px; }
.segment { display: flex; gap: 4px; min-width: 0; padding: 4px; background: var(--sunk); border-radius: var(--r-m); }
.segment button { flex: 1 1 auto; min-height: 38px; padding: 0 12px; border-radius: var(--r-s); color: var(--muted); font-size: 14px; font-weight: 500; text-align: center; white-space: nowrap; }
.segment button:hover { color: var(--ink); background: var(--line); }
.segment button[aria-pressed='true'] { background: var(--navy); color: #fff; font-weight: 600; }
.segment button:focus-visible { outline-offset: -2px; }
.segment button[aria-pressed='true']:focus-visible { outline-color: #fff; }

/* Profile completion, as in the Contra copy: a segment per step, then every step */
.completion-head { display: flex; justify-content: space-between; font-size: 14px; }
.segments { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 8px 0 12px; }
.segments i { height: 6px; border-radius: 3px; background: var(--line); }
.segments i.on { background: var(--navy); }
.checklist { display: grid; gap: 2px; font-size: 14px; }
.check-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 6px 8px; margin: 0 -8px; border-radius: var(--r-s); color: var(--ink); }
.checklist .done .check-row { color: var(--muted); }
button.check-row { width: calc(100% + 16px); font-weight: 500; }
button.check-row:hover { background: var(--sunk); }
button.check-row .i { margin-left: auto; color: var(--muted); }
.tick { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--field-line); }
.done .tick { background: var(--green); color: var(--navy); box-shadow: none; }

/* Find as the student's home: what to pick up again, what is coming up, what to do, short reads */
.home-block { min-width: 0; margin-top: 32px; }
.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; align-items: start; }
.home-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 16px; font-weight: 600; }
.home-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--surface); font-size: 12.5px; font-weight: 500; line-height: 22px; text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-card { --control: var(--well); display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; min-height: 48px; padding: 8px 12px 8px 10px; background: var(--surface); border-radius: var(--r-m); font-size: 14px; font-weight: 500; }
.chip-card:hover { background: var(--sunk); }
.chip-title { min-width: 0; }
.logo-xs { width: 26px; height: 26px; }
.widget { padding: 6px 0; overflow: hidden; }
.w-row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 18px; color: var(--ink); font-size: 14px; text-decoration: none; cursor: pointer; }
.w-row:hover { background: var(--sunk); }
.w-row .i { color: var(--muted); }
.w-row:focus-visible { outline-offset: -2px; }
.w-main { flex: 1; min-width: 0; font-weight: 500; }
.w-side { flex: none; color: var(--muted); font-size: 13px; }
.w-more { display: block; width: 100%; min-height: 44px; margin-top: 6px; padding: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; text-align: center; }
.w-more:hover { color: var(--ink); background: var(--sunk); }
.widget-empty { padding: 24px 18px; color: var(--muted); font-size: 14px; text-align: center; }
.guides-sub { margin: -6px 0 12px; color: var(--muted); font-size: 14px; }
.guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.guide { display: flex; flex-direction: column; min-width: 0; min-height: 268px; padding: 20px; border-radius: var(--r-l); transition: transform .14s ease; }
.guide:hover { transform: translateY(-2px); }
.guide svg { flex: none; width: 100%; height: 124px; margin-bottom: 16px; }
.guide-title { margin-top: auto; font-size: 24px; line-height: 1.15; text-wrap: balance; }
.guide-meta { margin-top: 6px; font-size: 14px; }
.guide.g1, .guide-hero.g1 { background: var(--navy-card); color: #fff; }
.guide.g1 .guide-meta { color: var(--on-navy); }
.guide.g2, .guide-hero.g2 { background: var(--green-tint); color: var(--ink); }
.guide.g3, .guide-hero.g3 { background: var(--surface); color: var(--ink); }
.guide.g2 .guide-meta, .guide.g3 .guide-meta { color: var(--muted); }
.guide-hero { display: flex; align-items: center; justify-content: center; height: 168px; margin: 36px 0 16px; padding-top: 14px; border-radius: var(--r-m); }
.guide-hero.g3 { background: var(--sunk); }
.guide-hero svg { width: 100%; height: 124px; }
.guide-lead { margin-top: 4px; color: var(--muted); }
.guide-list { display: grid; gap: 6px; padding-left: 18px; list-style: disc; }

/* Teacher's cohort board: the company's candidate card, with the student's most advanced application */
.cand-job { display: block; margin-top: 8px; font-size: 13px; font-weight: 500; }
.cand .app-note { font-size: 13px; }

@media (max-width: 1180px) {
  .main { --gutter: max(24px, calc((100% - 1232px) / 2)); }
}

/* The rail narrows to icons, so the 4 board columns (894 px at least) still fit */
@media (max-width: 1220px) {
  .shell { grid-template-columns: 72px minmax(0, 1fr); }
  .rail { padding: 16px 12px 12px; }
  .rail-logo { padding: 0; margin-bottom: 20px; }
  .rail-logo .rail-word { display: none; }
  .rail-logo .rail-mark { display: block; width: 36px; margin: 0 auto; }
  .rail-cta { width: 48px; padding: 0; gap: 0; font-size: 0; }
  .nav-item { justify-content: center; width: 48px; height: 48px; padding: 0; }
  .nav-item > span:not(.nav-count) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .rail .nav-count { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 4px; background: #fff; color: var(--navy); box-shadow: 0 0 0 2px var(--navy); font-size: 11px; line-height: 18px; }
  .rail-foot { flex-direction: column; }
  .account { flex: none; }
  .account-name { display: none; }
}

/* Tablet */
@media (max-width: 1080px) {
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .co-page { grid-template-areas: 'about' 'title' 'list'; }
  .co-page > aside { margin-bottom: 12px; }
  .profile-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-card { position: static; }
  .app-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'main chev' 'status status' 'next next'; row-gap: 12px; }
  .app-row > .app-main, .app-row:not(:has(> .app-next)) > .app-main { grid-row: auto; align-self: center; }
  .app-row > .app-next { margin-top: -4px; padding-left: 0; }
}

/* Phone and small tablet: the rail becomes a top bar and tabs */
@media (max-width: 860px) {
  .shell { display: block; padding-bottom: 72px; }
  .rail { display: none; }
  .topbar { display: flex; align-items: center; gap: 4px; position: sticky; top: var(--proto); z-index: 30; height: 56px; padding: 0 8px 0 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
  .topbar-logo { margin-right: auto; }
  .topbar-logo img { width: 124px; height: auto; }
  .topbar .icon-btn { position: relative; }
  .topbar .menu { right: 8px; top: 52px; width: min(300px, calc(100vw - 16px)); }
  .topbar .account-trigger { display: inline-flex; padding: 3px; border-radius: 50%; }
  html { scroll-padding: 72px 0 76px; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 60px; color: var(--muted); font-size: 11.5px; font-weight: 500; text-decoration: none; }
  .tabbar a[aria-current='page'] { color: var(--ink); font-weight: 600; }
  .tabbar a[aria-current='page']::before { content: ''; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; border-radius: 0 0 3px 3px; background: var(--navy); }
  .tabbar .nav-count { position: absolute; top: 5px; left: calc(50% + 6px); margin: 0; min-width: 18px; height: 18px; line-height: 18px; font-size: 11px; padding: 0 4px; }
  .main { --gutter: 16px; padding: 0 0 36px; }
  .main > :first-child { margin-top: 22px; }
  h1.display { font-size: 24px; }
  .page-head, .co-head { margin-bottom: 16px; }

  .auth { display: block; }
  .auth-panel { position: static; height: auto; margin: 0; padding: 14px 16px; border-radius: 0; }
  .auth-logo img { width: 132px; }
  .auth-claim, .auth-samples { display: none; }
  .auth-main { padding: 12px 16px 24px; min-height: calc(100vh - var(--proto) - 58px); }
  .auth-form { margin: 0 auto auto; }

  .searchbar { grid-template-columns: minmax(0, 1fr); }
  .sb-field + .sb-field { border-left: 0; border-top: 1px solid var(--line); }
  .main > .tabs, .main > .board-scroll { margin-left: 0; margin-right: 0; }
  .tabs { margin-left: -16px; margin-right: -16px; padding: 2px 16px; }
  .tabs-row .tabs { margin: 0 0 0 -16px; padding: 2px 0 2px 16px; }
  .board-head .btn-quiet { padding-left: 0; }
  .grid, .co-grid { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .home-block { margin-top: 28px; }
  .home-grid, .guides { grid-template-columns: minmax(0, 1fr); }
  .guide { min-height: 0; padding: 18px; }
  .guide-title { font-size: 21px; }
  h2.display.next-title { font-size: 21px; }
  .guide svg { height: 104px; }

  .drawer { width: 100%; top: 0; animation-name: rise; }
  .drawer-scroll { padding: 18px 16px 22px; }
  .drawer-foot { padding: 12px 16px; }
  .drawer-foot .applied-tag:has(~ .btn-danger) { flex-basis: 100%; }
  .drawer-foot .applied-tag:has(~ .btn-danger) ~ .foot-status { margin-left: 0; }
  @keyframes rise { from { transform: translateY(32px); opacity: 0; } }

  .co { flex-wrap: wrap; }
  .co-body { flex: 1 1 calc(100% - 52px); }
  .btn-follow { width: 100%; }
  .co-head-actions { width: 100%; }
  .co-head-actions .btn-follow { flex: 1; }

  .app-row { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'main' 'status' 'next'; gap: 14px; }
  .app-row > .i { display: none; }

  .msgs { grid-template-columns: minmax(0, 1fr); height: calc(100vh - var(--proto) - 205px); min-height: 420px; }
  .msgs.show-list .thread { display: none; }
  .msgs.show-thread .thread-list { display: none; }
  .thread-back { display: inline-flex; }
  .thread-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; }

  .board-scroll { margin: 0 -16px; padding: 0 16px 6px; scroll-padding-inline: 16px; scroll-snap-type: x mandatory; }
  .board { grid-auto-columns: 82vw; }
  .col { scroll-snap-align: center; min-height: 280px; }
  .hint-bar p { flex: 1 1 0; min-width: 0; }
  .hint-bar .icon-btn { order: 2; margin: -4px 0; }
  .hint-actions { order: 3; flex-basis: 100%; padding: 0 6px 6px 28px; }
  .next-card { min-height: 0; padding: 14px 16px; gap: 10px; margin-bottom: 14px; }
  .next-card:not(.quiet) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .next-card:not(.quiet) > div { display: contents; }
  .next-card h2.next-title { grid-column: 1 / -1; font-size: 19px; font-stretch: 100%; }
  .next-card .next-sub { grid-column: 1; margin: 0; font-size: 13px; line-height: 1.4; }
  .next-card > .btn { grid-column: 2; grid-row: 2; width: auto; max-width: 132px; min-height: 44px; padding: 8px 12px; font-size: 14px; line-height: 1.2; white-space: normal; text-align: center; }
  .sb-field { min-height: 48px; }
  .sb-field input, .sb-field select { height: 46px; }
  .page-head:has(+ .next-card) { margin-bottom: 12px; }
  .tabs-row { margin-bottom: 10px; }
  .results-head { margin-bottom: 8px; }

  .t-head { display: none; }
  .t-row { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 14px; row-gap: 10px; column-gap: 8px; }
  .t-row > .t-first { grid-column: 1 / 4; grid-row: 1; }
  .t-row > .t-actions { grid-column: 4; grid-row: 1; justify-self: end; margin: -8px -6px 0 0; }
  .t-row > .t-views { display: none; }
  .m-only { display: inline; }
  .t-label { display: block; font-size: 12.5px; color: var(--muted); }
  .t-row > .t-closes { grid-column: 1 / -1; }
  .table-tools { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; }
  .table-tools .tabs { flex: none !important; }
  .op-show { width: 100%; margin-bottom: 14px; }

  #toast { bottom: 76px; width: calc(100vw - 32px); justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Leave room for the focus ring without changing the category-row geometry. */
@media (min-width: 861px) {
  .tabs.covers { padding: 6px; margin: -6px; }
}
/* Tablet boards show two stages rather than stretching one card across the screen. */
@media (min-width: 641px) and (max-width: 860px) {
  .board { grid-auto-columns: 320px; }
  .col { scroll-snap-align: start; }
}
/* Phone: the same compact tabs scroll; reminders stay below the results. */
@media (max-width: 860px) {
  .home-head { flex-wrap: nowrap; gap: 10px; margin-bottom: 12px; }
  .home-head h1.display { font-size: 22px; }
  .pay-range { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .covers-row { align-items: center; }
  .tabs-row .tabs.covers { display: flex; gap: 8px; margin: 0 0 0 -16px; padding: 5px 6px 5px 16px; }
  .tab.cover-tab { flex: none; width: auto; min-width: 0; height: 44px; padding: 10px 12px; }
  .cover-label { font-size: 13px; white-space: nowrap; }
  .searchbar.with-filters, .searchbar:has(.sb-where) { grid-template-columns: minmax(0, 1fr) auto; }
  .searchbar > .sb-field:first-child { grid-column: 1 / -1; }
  .sb-filters { padding: 4px 6px 4px 0; border-top: 1px solid var(--line); }
  .sb-filters .toggle { height: 40px; padding: 0 11px; }
  .sb-filters .f-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .segment button { min-width: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
  .sb-where { min-height: 0; padding: 4px 6px; }
  .sb-where > .i { display: none; }
  .segment { flex: 1; }
  .segment { padding: 3px; }
  .segment button { min-height: 34px; padding: 0 8px; }
}

@media (max-width: 380px) {
  .searchbar.with-filters > .sb-field:first-child { grid-column: 1; }
  .searchbar.with-filters .sb-filters { grid-column: 2; grid-row: 1; border-top: 0; }
  .searchbar.with-filters .sb-where { grid-column: 1 / -1; }
}

/* ---------- Company overview (portfolio version) ----------
   Navy and green as the 2 large blocks, Archivo at full width for the one big number.
   Bars are the people waiting, warmer the longer they wait. */
.ov .ov-head { align-items: flex-end; margin-bottom: 30px; }
.ov .ov-head h1.display { font-size: 38px; line-height: 1.05; }
.ov-date { margin-bottom: 8px; font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ov-head .muted { margin-top: 8px; }

.ov-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 22px; margin-bottom: 22px; }

.ov-hero { grid-row: span 2; display: flex; flex-direction: column; gap: 22px; min-width: 0; padding: 32px 34px 30px; background: var(--navy); color: #fff; border-radius: var(--r-l); }
.ov-hero :focus-visible { outline-color: #fff; }
.ov-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--on-navy); }
.ov-big { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 18px; margin: 0; font-weight: 600; }
.ov-num[data-digits="3"] { font-size: clamp(80px, 8vw, 124px); }
.ov-num[data-digits="4"], .ov-num[data-digits="5"] { font-size: clamp(64px, 6.5vw, 100px); }
.ov-num { flex: none; font-size: clamp(96px, 10vw, 150px); line-height: .76; font-weight: 850; font-stretch: 125%; letter-spacing: -.045em; color: var(--green); }
.ov-big-text { flex: 1 1 150px; min-width: 0; max-width: 14ch; font-size: 23px; line-height: 1.2; font-stretch: 112%; color: #fff; }
.ov-calm-note { color: var(--on-navy); }
.ov-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.ov-urgent-key { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--on-navy); }
.ov-urgent-key span { width: 10px; height: 10px; border-radius: 3px; background: #ff7a5c; }

/* The queue: name and opportunity, skills matched, days waited. Light bars, vivid coral from 5 days */
.ov-queue { display: flex; flex-direction: column; margin: 2px -12px 0; padding: 0; list-style: none; }
.ov-queue li + li { border-top: 1px solid rgba(255, 255, 255, .1); }
.ov-q { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.2fr) 18px; align-items: center; gap: 20px; width: 100%; min-height: 62px; padding: 10px 12px; background: none; border: 0; border-radius: var(--r-m); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ov-q:hover { background: rgba(255, 255, 255, .07); }
.ov-q:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.ov-q > .i { color: var(--on-navy); }
.ov-q-who { display: flex; flex-direction: column; min-width: 0; }
.ov-q-who strong { font-size: 15px; font-weight: 600; }
.ov-q-who span { font-size: 13px; line-height: 1.35; color: var(--on-navy); }
.ov-q-skills { display: flex; align-items: center; gap: 10px; font-size: 13px; white-space: nowrap; }
.ov-pips { display: flex; gap: 3px; min-width: 47px; }
.ov-pips i { width: 7px; height: 14px; border-radius: 2px; background: rgba(255, 255, 255, .2); }
.ov-pips i.on { background: var(--green); }
.ov-q-wait { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ov-q-track { flex: 1; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.ov-q-fill { display: block; width: calc(var(--h) * 100%); height: 100%; border-radius: 999px; background: #c5d0d8; transform-origin: left; }
.ov-q.urgent .ov-q-fill { background: #ff7a5c; }
.ov-q-days { flex: none; min-width: 52px; font-size: 14px; font-weight: 600; text-align: right; }
.ov-q.urgent .ov-q-days { color: #ff7a5c; }


.ov-hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.ov-hero-foot p { color: var(--on-navy); }
.ov-hero .btn-primary { background: var(--green); color: var(--navy); }
.ov-hero .btn-primary:hover { background: #fff; }

.ov-tile { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 28px 28px 18px; background: var(--surface); border-radius: var(--r-l); }
.ov-green { background: var(--green); color: var(--navy); }
.ov-tile-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ov-tile-head h2 { font-size: 16px; font-weight: 600; }
.ov-mid { margin: 6px 0 12px; font-size: 44px; line-height: 1; font-weight: 600; letter-spacing: -.02em; }
.ov-people { margin: 0 -10px; padding: 0; list-style: none; }
.ov-person { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 7px 10px; background: none; border: 0; border-radius: var(--r-m); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ov-person:hover { background: var(--well); }
.ov-green .ov-person:hover { background: rgba(255, 255, 255, .45); }
.ov-person .avatar { background: var(--well); }
.ov-green .ov-person .avatar { background: #fff; }
.ov-person-text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.ov-person-text strong { font-size: 15px; }
.ov-person-text span { font-size: 13px; line-height: 1.35; color: var(--muted); }
.ov-green .ov-person-text span { color: rgba(16, 33, 49, .8); }
.ov-empty { padding-bottom: 10px; font-size: 14px; color: var(--muted); }
.ov-more { align-self: flex-start; margin: 4px 0 8px; font-size: 14px; font-weight: 600; color: inherit; text-underline-offset: 3px; }
.ov-pipe-sub { margin-top: 4px; font-size: 13px; color: var(--muted); }

.ov-pipe { padding: 30px 32px 22px; }
.ov-pipe-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ov-pipe-head h2 { font-size: 21px; font-weight: 850; font-stretch: 112%; letter-spacing: -.01em; }
.ov-stats { display: flex; gap: 32px; margin: 0; }
.ov-stats div { display: flex; flex-direction: column-reverse; }
.ov-stats dt { font-size: 13px; color: var(--muted); }
.ov-stats dd { margin: 0; font-size: 26px; line-height: 1.1; font-weight: 600; letter-spacing: -.01em; }
.ov-key { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.ov .s-new { background: var(--green); color: var(--navy); }
.ov .s-shortlisted { background: var(--t-training); color: #fff; }
.ov .s-interview { background: var(--navy-card); color: #fff; }
.ov .s-offer { background: var(--navy); color: #fff; }
.ov-rows { margin: 10px 0 0; padding: 0; list-style: none; }
.ov-row { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(0, 1.7fr) 132px 18px; align-items: center; gap: 28px; padding: 18px 12px; border-top: 1px solid var(--line); border-radius: var(--r-s); color: inherit; text-decoration: none; }
.ov-rows li:first-child .ov-row { border-top-color: transparent; }
.ov-row:hover { background: var(--sunk); }
.ov-row:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.ov-row > .i { color: var(--muted); }
.ov-row-title { display: flex; flex-direction: column; min-width: 0; }
.ov-row-title strong { font-size: 15px; }
.ov-row-title span { font-size: 13px; color: var(--muted); }
.ov-row-title span::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--t); }
.ov-flow { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ov-stack { display: flex; gap: 2px; width: max(calc(var(--w) * 100%), 24px); height: 10px; border-radius: 999px; overflow: hidden; }
.ov-seg { min-width: 6px; }
.ov-stack-empty { width: 100%; background: var(--well); }
.ov-counts { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--muted); }
.ov-counts span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ov-row-close { display: flex; flex-direction: column; font-size: 13px; text-align: right; }
.ov-row-close .tnum { color: var(--muted); }

.ov-animate .ov-q-fill { animation: ov-grow-x .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 70ms + 150ms); }
.ov-animate .ov-queue li { animation: ov-fade .35s ease both; animation-delay: calc(var(--i) * 50ms); }
.ov-animate .ov-seg { animation: ov-grow-x .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: 300ms; transform-origin: left; }
@keyframes ov-grow { from { transform: scaleY(0); } }
@keyframes ov-grow-x { from { transform: scaleX(0); } }
@keyframes ov-fade { from { opacity: 0; } }

@media (max-width: 1080px) {
  .ov-row { grid-template-columns: minmax(150px, 1fr) minmax(0, 1.4fr) 120px; gap: 16px; }
  .ov-row > .i { display: none; }
}
@media (max-width: 860px) {
  .ov .ov-head h1.display { font-size: 30px; }
  .ov-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ov-hero { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 640px) {
  .ov-grid { grid-template-columns: minmax(0, 1fr); }
  .ov-hero { padding: 22px 20px 20px; }
  .ov-big { gap: 14px; }
  .ov-big-text { font-size: 19px; }
  .ov-q { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 18px; grid-template-areas: 'who who chev' 'skills wait chev'; gap: 8px 14px; }
  .ov-q-who { grid-area: who; }
  .ov-q-skills { grid-area: skills; }
  .ov-q-wait { grid-area: wait; }
  .ov-q > .i { grid-area: chev; }
  .ov-hero-foot .btn { width: 100%; }
  .ov-pipe { padding: 22px 18px 16px; }
  .ov-tile { padding: 24px 22px 14px; }
  .ov-stats { gap: 24px; }
  .ov-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'title close' 'stack stack'; gap: 10px 12px; padding: 14px 6px; }
  .ov-row-title { grid-area: title; }
  .ov-row-close { grid-area: close; }
  .ov-flow { grid-area: stack; }
}
@media (prefers-reduced-motion: reduce) {
  .ov-animate .ov-q-fill, .ov-animate .ov-queue li, .ov-animate .ov-seg { animation: none; }
}

/* ---------- Portfolio refresh: the other screens take the Overview's language ----------
   Bigger page titles, navy banners with the count in green, more air in cards, skill pips. One big number stays on the Overview only. */
.main .page-head:not(.ov-head) h1.display { font-size: 34px; line-height: 1.1; }
.next-card:not(.quiet) { min-height: 124px; padding: 26px 30px; margin-bottom: 24px; background: var(--navy); }
.next-card:not(.quiet) h2.display.next-title { font-size: 27px; }
.next-card .hl { color: var(--green); }
.panel { padding: 26px; }
.panel + .panel { margin-top: 18px; }
.panel-head h2 { font-size: 17px; }
.board { gap: 12px; }
.col { padding: 12px; }
.cand { padding: 14px; }
.cand + .cand { margin-top: 10px; }
.cand-skills { display: inline-flex; align-items: center; gap: 8px; }
.pips { display: inline-flex; flex: none; gap: 2px; }
.pips i { width: 6px; height: 12px; border-radius: 2px; background: var(--line-strong); }
.pips i.on { background: var(--navy); }
.badge-new { background: var(--green); color: var(--navy); }
.t-row { padding-top: 15px; padding-bottom: 15px; }
.t-row + .t-row { margin-top: 8px; }
.t-head { padding-top: 10px; padding-bottom: 6px; }
@media (max-width: 860px) {
  .main .page-head:not(.ov-head) h1.display { font-size: 28px; }
  .next-card:not(.quiet) { padding: 22px 20px; }
  .next-card:not(.quiet) h2.display.next-title { font-size: 22px; }
  .panel { padding: 20px; }
}
@media (max-width: 640px) {
  .next-card:not(.quiet) h2.display.next-title { font-size: 20px; }
}

/* ---------- Student and teacher overviews (portfolio version) ---------- */
.ov-q-meta { display: flex; flex-direction: column; min-width: 0; font-size: 13px; line-height: 1.4; color: var(--on-navy); }
.ov-q-meta span:first-child { color: #fff; font-weight: 600; }
.ov-q-meta .soon { color: #ff7a5c; font-weight: 600; }
.ov-q.ov-q-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) 18px; }
.ov-q-note { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; line-height: 1.4; color: var(--on-navy); }
.ov-q-shared { color: var(--green); }
.ov-when { margin-top: 6px; font-size: 27px; line-height: 1.15; font-weight: 650; letter-spacing: -.01em; }
.ov-tile-sub { margin-top: 6px; font-weight: 600; }
.ov-prep { margin-top: 6px; font-size: 14px; line-height: 1.45; color: rgba(16, 33, 49, .8); }
.ov-tile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: auto; padding: 16px 0 8px; }
.ov-tile-actions .ov-more { margin: 0; }
.ov-mid-label { margin-left: 10px; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.ov-person .logo-xs { width: 34px; height: 34px; }
.ov-person-text span.late { color: var(--amber); font-weight: 600; }
.ov-gap { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(0, 1.4fr) auto; align-items: center; gap: 28px; padding: 18px 12px; border-top: 1px solid var(--line); }
.ov-rows .ov-gap:first-child { border-top-color: transparent; }
.ov-gap-sub { font-size: 13px; color: var(--muted); }
.ov-gap .ov-row-title span.ov-gap-sub::before { content: none; }
.ov-gap-bar { height: 10px; border-radius: 999px; background: var(--well); overflow: hidden; }
.ov-gap-bar span { display: block; height: 100%; border-radius: 999px; background: var(--navy); transform-origin: left; }
.ov-animate .ov-gap-bar span { animation: ov-grow-x .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: 300ms; }
.ov-gap-acts { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.ov-cohort-flow { margin-top: 18px; }
.ov-cohort-flow .ov-stack { width: 100%; height: 12px; }
.ov .s-nudge { background: #ff7a5c; }
.ov .s-waiting { background: var(--t-training); }
.ov-sub-h { margin: 28px 0 0; font-size: 15px; font-weight: 600; }
button.ov-row { width: 100%; background: none; border: 0; border-top: 1px solid var(--line); font: inherit; text-align: left; cursor: pointer; }
.ov-row.ov-row-2 { grid-template-columns: minmax(0, 1fr) 150px 18px; }
@media (max-width: 1080px) {
  .ov-row.ov-row-2 { grid-template-columns: minmax(0, 1fr) 140px; }
}
@media (max-width: 640px) {
  .ov-q-meta { grid-area: wait; }
  .ov-q.ov-q-3 { grid-template-columns: minmax(0, 1fr) 18px; grid-template-areas: 'who chev' 'note chev'; }
  .ov-q-3 .ov-q-note { grid-area: note; }
  .ov-gap { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px 6px; }
  .ov-gap-acts { flex-wrap: wrap; }
  .ov-row.ov-row-2 { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'title close'; }
  .ov-when { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .ov-animate .ov-gap-bar span { animation: none; }
}
/* The student's tab bar has 6 tabs with the Overview: narrower letters keep every label apart down to 320 px */
.tabbar:has(> a:nth-child(6)) > a > span:not(.nav-count) { font-stretch: 75%; letter-spacing: -.005em; }

/* Photos on avatars: the queue rows, board cards and drawers show the person, not only their initials */
.ov-q-who:has(> .avatar), .ov-q-who:has(> .logo) { flex-direction: row; align-items: center; gap: 12px; }
.ov-q-txt { display: flex; flex-direction: column; min-width: 0; }
.ov-q-who > .avatar { width: 38px; height: 38px; }
.ov-q-who > .logo { width: 36px; height: 36px; }
.cand-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cand-top > .avatar { width: 34px; height: 34px; font-size: 12px; }
.cand-id { display: block; min-width: 0; }
.drawer-person { display: flex; align-items: center; gap: 14px; }
.drawer-person h2.display { margin: 0; }
