/* Internium — one clear sans, deep navy ink, ultramarine for action, a little silver, and motion that responds. */

@font-face { font-family: 'Geist'; src: url('/fonts/geist-latin-variable.woff2') format('woff2-variations'), url('/fonts/geist-latin-variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f5f6f9;
  --surface: #ffffff;
  --ink: #0f1730;
  --ink-2: #3a4260;
  --muted: #646b86;
  --line: #e2e5ee;
  --silver: #c9ced9;
  --sapphire: #2f4bd6;
  --sapphire-ink: #2238b0;
  --sapphire-50: #eef1fd;
  --sapphire-100: #dde3fb;
  --gold: #9aa3b8;
  --gold-50: #f0f2f6;
  --gold-ink: #4a5270;
  --emerald: #2e7d5b;
  --emerald-50: #e4f0ea;
  --emerald-ink: #1d5a40;
  --ruby: #a23b3b;
  --ruby-50: #f5e5e4;
  --ruby-ink: #7e2828;
  --steel: #56688f;
  --platinum-50: #f0f2f6;
  --steel-ink: #3c4a6b;
  --pearl-2: #eef0f5;
  --brushed: linear-gradient(135deg, #fdfdfe 0%, #e6e8ee 38%, #f7f8fa 55%, #d8dce4 100%);
  --gilt: linear-gradient(135deg, #fbfcfd 0%, #cdd2dc 28%, #f3f4f7 50%, #a8afbe 76%, #e4e7ed 100%);
  --on-foil: #161c3a;
  --silver-hi: #d6dbe6;
  --royal-deep: radial-gradient(120% 140% at 85% 0%, #1d2c6b 0%, #0d1533 52%, #090f26 100%);
  --royal-edge: #2a3466;
  --royal-hover: #232c5c;
  --platinum: linear-gradient(135deg, #f8f9fb 0%, #dfe2e9 50%, #f1f2f6 100%);
  --display: 'Geist', 'Inter', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --sans: 'Geist', 'Inter', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --r-xl: 18px;
  --r-lg: 14px;
  --r: 12px;
  --r-sm: 8px;
  --shadow: 0 1px 2px rgba(18, 26, 62, 0.04), 0 8px 24px -16px rgba(18, 26, 62, 0.2);
  --shadow-lift: 0 2px 6px rgba(18, 26, 62, 0.06), 0 18px 36px -22px rgba(18, 26, 62, 0.32);
  --shadow-pop: 0 10px 24px -14px rgba(18, 26, 62, 0.45);
  --glide: cubic-bezier(0.25, 0.8, 0.3, 1);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --pad: clamp(16px, 3.4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 500 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: var(--sapphire-ink); }
img, svg { display: block; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--display); letter-spacing: -0.015em; }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.12; font-weight: 600; }
h2 { font-size: 1.4rem; line-height: 1.25; font-weight: 600; }
h3 { font-size: 1.1rem; line-height: 1.3; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--sapphire); outline-offset: 2px; border-radius: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 80; padding: 10px 14px; border-radius: 8px; background: var(--sapphire); color: #fff; }
.skip:focus { top: 12px; }
.fine { font-size: 0.86rem; color: var(--muted); font-weight: 500; }
.icon { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; }
.icon svg { width: 100%; height: 100%; }
.icon.flip { transform: scaleX(-1); }
.big-icon { width: 34px; height: 34px; }

/* ---- Buttons & controls ------------------------------------------------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border: 0; border-radius: 10px;
  background: var(--sapphire); color: #fff;
  font: 600 0.98rem/1.2 var(--sans); text-decoration: none;
  transition: transform 0.18s var(--glide), box-shadow 0.18s var(--ease), background 0.15s;
}
.button:hover:not(:disabled) { background: var(--sapphire-ink); transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.button:active:not(:disabled) { transform: scale(0.97); box-shadow: none; }
.button:disabled { opacity: 0.5; cursor: not-allowed; }
.button .icon { width: 18px; height: 18px; }
.button.ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.button.ghost:hover:not(:disabled) { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--sapphire), var(--shadow); color: var(--sapphire-ink); }
.button.light { background: #fff; color: var(--sapphire-ink); }
.button.light:hover:not(:disabled) { background: #fff; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.45); }
.button.small { padding: 8px 14px; border-radius: 8px; font-size: 0.88rem; }
.button.big { padding: 15px 24px; border-radius: 12px; font-size: 1.04rem; }
.button.danger, .link-button.danger { color: var(--ruby-ink); }
.button.is-busy { pointer-events: none; opacity: 0.8; }
.button.is-busy::after { content: ''; display: inline-block; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
.link-button { display: inline-flex; align-items: center; gap: 6px; padding: 4px 2px; border: 0; background: none; color: var(--sapphire-ink); font-weight: 600; text-decoration: none; }
.link-button:hover { text-decoration: underline; text-underline-offset: 3px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; color: var(--ink-2); }
input:not([type='checkbox']):not([type='file']):not([type='radio']), select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); font-weight: 500; font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder, textarea::placeholder { color: #9aa0b5; }
input:not([type='checkbox']):focus, select:focus, textarea:focus { outline: none; border-color: var(--sapphire); box-shadow: 0 0 0 4px var(--sapphire-50); }
textarea { resize: vertical; min-height: 96px; line-height: 1.55; }
input[type='checkbox'], input[type='radio'] { width: 20px; height: 20px; margin: 0; accent-color: var(--sapphire); flex: none; }
label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--ink); }
label.check input { margin-top: 2px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink-2); font-weight: 600; font-size: 0.9rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.2s var(--glide);
}
.chip:hover { border-color: var(--sapphire-100); color: var(--sapphire-ink); }
.chip:active { transform: scale(0.95); }
.chip[aria-pressed='true'] { background: var(--sapphire); border-color: var(--sapphire); color: #fff; }
.chip[aria-pressed='true']::before { content: ''; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translateY(-2px); }
.chip.small { padding: 6px 12px; font-size: 0.84rem; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--sapphire-50); color: var(--sapphire-ink); font: 600 0.76rem/1 var(--sans); }
.pro-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--gold); color: var(--ink); font: 700 0.68rem/1.4 var(--display); font-style: normal; letter-spacing: 0.02em; }
.eyebrow-line { display: flex; align-items: center; gap: 8px; color: var(--sapphire-ink); font: 600 0.9rem/1.2 var(--sans); }
.card-surface { background: var(--surface); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); }

/* ---- App shell ------------------------------------------------------------ */
.app-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); background: linear-gradient(90deg, var(--surface) 250px, var(--bg) 250px); }
.sidebar { align-self: start; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px;
  padding: 22px 16px; background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto;
}
.brand { display: inline-flex; align-items: center; gap: 10px; padding: 4px 8px; color: var(--ink); font: 700 1.32rem/1 var(--display); letter-spacing: -0.02em; text-decoration: none; }
.brand-mark { position: relative; flex: none; width: 34px; height: 34px; border-radius: 8px; background: var(--sapphire); box-shadow: var(--shadow-pop); transform: rotate(-6deg); transition: transform 0.3s var(--glide); }
.brand:hover .brand-mark { transform: rotate(6deg) scale(1.05); }
.brand-mark::before { content: ''; position: absolute; left: 9px; top: 9px; width: 16px; height: 16px; border-radius: 50% 50% 50% 4px; background: var(--gold); transform: rotate(-45deg); }
.brand-mark::after { content: ''; position: absolute; left: 14px; top: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--sapphire); }
.side-nav { display: grid; gap: 4px; }
.side-nav a {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px;
  color: var(--ink-2); font-weight: 600; text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.2s var(--glide);
}
.side-nav a:hover { background: var(--sapphire-50); color: var(--sapphire-ink); }
.side-nav a:active { transform: scale(0.97); }
.side-nav a[aria-current='page'] { background: var(--sapphire); color: #fff; box-shadow: var(--shadow-pop); }
.side-nav a[aria-current='page'] .count { background: rgba(255, 255, 255, 0.25); color: #fff; }
.side-nav .count, .side-nav .pro-badge { margin-left: auto; }
.side-foot { margin-top: auto; display: grid; gap: 10px; }
.me { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: var(--bg); color: var(--ink); text-decoration: none; transition: background 0.15s; }
.me:hover, .me[aria-current='page'] { background: var(--sapphire-50); }
.avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--gold); color: var(--ink); font: 700 1.05rem/1 var(--display); text-decoration: none; }
.me-text { display: grid; min-width: 0; }
.me-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.me-text small { color: var(--muted); font-weight: 600; }
.account-button { padding: 10px 14px; border: 0; border-radius: 10px; background: var(--sapphire-50); color: var(--sapphire-ink); font-weight: 600; }
.account-button:hover { background: var(--sapphire-100); }
.account-button.signed-in { background: none; color: var(--muted); padding: 6px 10px; justify-self: start; font-weight: 600; font-size: 0.9rem; }
.account-button.signed-in:hover { color: var(--sapphire-ink); background: var(--sapphire-50); }
.topbar, .tabbar { display: none; }
main { min-width: 0; }
.page { width: 100%; max-width: 1180px; margin: 0 auto; padding: 34px var(--pad) 80px; }
.page-head { display: grid; gap: 10px; margin-bottom: 26px; max-width: 780px; }
.page-head > p:not(.eyebrow-line) { color: var(--muted); font-size: 1.05rem; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.section-title { margin: 34px 0 14px; font-size: 1.3rem; }
.view:not([hidden]) { animation: view-in 0.35s var(--ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } }

/* ---- Home ------------------------------------------------------------------ */
.welcome {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, 1fr); gap: 24px; align-items: center;
  overflow: hidden; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-xl); background: var(--sapphire); color: #fff; box-shadow: var(--shadow-pop);
}
.welcome h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.welcome-date { font-weight: 600; opacity: 0.8; margin-bottom: 6px; }
#home-summary { max-width: 46ch; margin-top: 10px; font-size: 1.08rem; opacity: 0.92; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.welcome .button:not(.light) { background: var(--gold); color: var(--ink); }
.welcome .button:not(.light):hover { background: #ffd35f; }
.welcome-art { position: relative; height: 220px; }
.blob { position: absolute; border-radius: 50%; animation: float 7s ease-in-out infinite; }
.b1 { width: 160px; height: 160px; right: 6%; top: -10px; background: var(--gold); opacity: 0.95; }
.b2 { width: 90px; height: 90px; left: 6%; bottom: 0; background: var(--emerald); animation-delay: -2s; }
.b3 { width: 56px; height: 56px; right: 40%; top: 10px; background: var(--ruby); animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-10px) rotate(8deg); } }
.ring-card { position: absolute; right: 12%; bottom: 6px; display: grid; place-items: center; width: 168px; height: 168px; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: var(--shadow-lift); }
.ring { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--sapphire-50); stroke-width: 12; }
.ring-fill { fill: none; stroke: var(--sapphire); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease); }
.ring-label { position: relative; display: grid; text-align: center; }
.ring-label strong { font: 700 1.7rem/1 var(--display); }
.ring-label span { font-size: 0.78rem; color: var(--muted); font-weight: 600; }

.actions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.action-tile, .tool-tile {
  position: relative; display: grid; gap: 4px; align-content: start; padding: 20px; border: 0; border-radius: var(--r-lg);
  color: var(--ink); text-align: left; text-decoration: none; transition: transform 0.25s var(--glide), box-shadow 0.25s var(--ease);
}
.action-tile:hover, .tool-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.action-tile:active, .tool-tile:active { transform: scale(0.98); }
.action-tile > .icon, .tool-tile > .icon { width: 46px; height: 46px; padding: 11px; margin-bottom: 10px; border-radius: 10px; background: #fff; }
.action-tile strong, .tool-tile strong { font: 700 1.08rem/1.25 var(--display); }
.action-tile span:not(.icon):not(.pro-badge), .tool-tile span:not(.icon):not(.pro-badge) { color: var(--ink-2); font-size: 0.92rem; }
.action-tile .pro-badge, .tool-tile .pro-badge { position: absolute; top: 18px; right: 18px; }
.violet { background: var(--sapphire-50); } .violet > .icon { color: var(--sapphire); }
.sky { background: var(--platinum-50); } .sky > .icon { color: var(--steel-ink); }
.sun { background: var(--gold-50); } .sun > .icon { color: var(--gold-ink); }
.mint { background: var(--emerald-50); } .mint > .icon { color: var(--emerald-ink); }
.coral { background: var(--ruby-50); } .coral > .icon { color: var(--ruby-ink); }
.lilac { background: var(--pearl-2); } .lilac > .icon { color: var(--sapphire-ink); }
.tool-tile.ink, .tool-head.ink { background: var(--ink); }
.tool-tile.ink strong, .tool-head.ink h1, .tool-head.ink .back-link { color: #fff; }
.tool-tile.ink span:not(.icon):not(.pro-badge), .tool-head.ink > p { color: #c3c9da; }
.tool-tile.ink > .icon, .tool-head.ink .tool-icon { background: var(--gold); color: var(--ink); }

.home-grid { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; gap: 16px; margin-top: 30px; align-items: start; }
.panel { padding: 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.panel-head h2 { display: flex; align-items: center; gap: 10px; font-size: 1.12rem; }
.panel-head h2 .icon { color: var(--sapphire); }
.deadline-list, .steps-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.deadline-list li { display: flex; align-items: center; gap: 12px; }
.day-badge { flex: none; min-width: 64px; padding: 8px 10px; border-radius: 8px; background: var(--bg); text-align: center; font: 700 0.84rem/1.1 var(--display); }
.day-badge.warm { background: var(--gold-50); color: var(--gold-ink); }
.day-badge.hot { background: var(--ruby-50); color: var(--ruby-ink); }
.deadline-text { display: grid; min-width: 0; }
.deadline-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deadline-text small { color: var(--muted); }
.empty-line { color: var(--muted); }
.step { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; transition: transform 0.2s var(--glide); }
.step:hover { transform: translateX(4px); }
.step .go-arrow { margin-left: auto; opacity: 0.6; transition: transform 0.2s var(--glide); }
.step:hover .go-arrow { transform: translateX(3px); opacity: 1; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { display: grid; gap: 2px; padding: 14px; border-radius: 12px; background: var(--bg); }
.stat .icon { color: var(--sapphire); }
.stat strong { font: 700 1.7rem/1.1 var(--display); }
.stat span:not(.icon) { color: var(--muted); font-size: 0.86rem; font-weight: 600; }

/* ---- Discover --------------------------------------------------------------- */
.discover { width: 100%; max-width: 1180px; margin: 0 auto; padding: 34px var(--pad) 40px; }
.hero { padding: clamp(22px, 4vw, 36px); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow); }
.hero-title { margin: 8px 0 18px; max-width: 20ch; }
.sentence { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 600 clamp(1.25rem, 2.4vw, 1.75rem)/1.6 var(--display); color: var(--ink-2); letter-spacing: -0.01em; }
.word { white-space: nowrap; }
.slot {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 14px; border: 0; border-radius: 10px;
  background: var(--sapphire-50); color: var(--sapphire-ink); font: inherit;
  transition: background 0.15s, transform 0.2s var(--glide);
}
.slot:hover, .slot[aria-expanded='true'] { background: var(--sapphire-100); }
.slot:active { transform: scale(0.97); }
.slot::after { content: ''; width: 7px; height: 7px; margin-left: 2px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: 0.7; }
.slot-field { display: inline-flex; }
.slot-field input:not([type='checkbox']) { width: 12ch; max-width: 100%; padding: 2px 14px; border: 2px dashed var(--sapphire-100); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; letter-spacing: inherit; }
.slot-field input:focus { border-style: solid; background: #fff; }
.slot-field input::placeholder { color: #a7a2c4; transition: opacity 0.2s; }
.slot-field input.swap::placeholder { opacity: 0; }
.go { display: inline-flex; flex-direction: row-reverse; align-items: center; gap: 8px; margin-left: 4px; padding: 13px 22px; border: 0; border-radius: 12px; background: var(--sapphire); color: #fff; font: 600 1.02rem/1 var(--sans); transition: transform 0.2s var(--glide), box-shadow 0.2s; }
.go:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.go .icon { transition: transform 0.2s var(--glide); }
.go:hover .icon { transform: translateX(3px); }
.go:disabled { opacity: 0.6; cursor: progress; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.quick-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; }
.access { max-width: 280px; margin-top: 16px; }
.notice { margin: 18px 0 0; padding: 14px 18px; border-radius: 12px; background: var(--gold-50); color: var(--gold-ink); font-weight: 600; }

.picker { position: absolute; z-index: 40; width: 330px; display: grid; gap: 12px; padding: 18px; border-radius: var(--r-lg); background: #fff; box-shadow: 0 30px 60px -20px rgba(27, 24, 52, 0.45), 0 0 0 1px var(--line); animation: pop 0.22s var(--glide); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.96); } }
.picker-title { font: 700 1rem/1.2 var(--display); }
.picker-options { display: grid; gap: 4px; }
.picker-option { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border: 0; border-radius: 8px; background: none; text-align: left; font: 600 1.02rem/1.3 var(--sans); color: var(--ink); }
.picker-option:hover { background: var(--bg); }
.picker-option[aria-pressed='true'] { background: var(--sapphire-50); color: var(--sapphire-ink); }
.picker-option[aria-pressed='true']::after { content: '✓'; font-weight: 600; }
.radius { display: flex; flex-wrap: wrap; gap: 6px; }
.picker-actions { display: flex; align-items: center; gap: 14px; }

.results { padding-top: 30px; scroll-margin-top: 20px; }
.results-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 18px; }
.status { margin-top: 6px; color: var(--muted); }
.results-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.refine { display: flex; flex-wrap: wrap; gap: 6px; }
.sort { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.sort select { width: auto; padding: 8px 12px; font-size: 0.9rem; border-radius: 8px; }
.warnings { margin: -6px 0 16px; color: var(--muted); font-size: 0.92rem; }
.warnings:empty { display: none; }
.starters { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 12px; }
.starters button { position: relative; padding: 18px 48px 18px 18px; border: 0; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); text-align: left; color: var(--ink-2); font: 600 1.02rem/1.45 var(--sans); transition: transform 0.22s var(--glide), box-shadow 0.2s; }
.starters button:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.starters button::after { content: ''; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; border-top: 2.5px solid var(--sapphire); border-right: 2.5px solid var(--sapphire); transform: translateY(-50%) rotate(45deg); }
.starters em { font-style: normal; color: var(--sapphire-ink); font-weight: 600; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; align-items: start; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px;
  border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow);
  transition: transform 0.25s var(--glide), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card.enter { animation: card-in 0.45s var(--glide) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(16px) scale(0.97); } }
.card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 30px; padding-right: 44px; font-size: 0.82rem; }
.kind { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--emerald-50); color: var(--emerald-ink); font-weight: 600; white-space: nowrap; }
.kind-research .kind { background: var(--sapphire-50); color: var(--sapphire-ink); }
.kind-internship .kind { background: var(--platinum-50); color: var(--steel-ink); }
.kind-lab .kind { background: var(--gold-50); color: var(--gold-ink); }
.host { min-width: 0; color: var(--muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.season { padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.pick { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-weight: 600; font-size: 0.84rem; }
.pick input { width: 18px; height: 18px; }
.card h3 { font: 700 1.14rem/1.3 var(--display); }
.card h3 a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.card h3 a:hover { color: var(--sapphire-ink); }
.snippet { color: var(--ink-2); font-size: 0.95rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.signal { font-size: 0.86rem; font-weight: 600; }
.signal mark { padding: 3px 10px; border-radius: 999px; }
.signal.open mark { background: var(--emerald-50); color: var(--emerald-ink); }
.signal.closed mark { background: var(--ruby-50); color: var(--ruby-ink); }
.signal.unknown mark { background: none; padding: 0; color: var(--muted); font-weight: 600; }
.ribbon { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 38px; height: 38px; padding: 9px; border: 0; border-radius: 9px; background: var(--bg); transition: background 0.15s, transform 0.2s var(--glide); }
.ribbon:hover { background: var(--sapphire-50); transform: scale(1.06); }
.ribbon svg { width: 16px; height: 20px; }
.ribbon path { fill: none; stroke: var(--ink-2); stroke-width: 2.2; stroke-linejoin: round; transition: fill 0.15s; }
.ribbon[aria-pressed='true'] { background: var(--gold-50); }
.ribbon[aria-pressed='true'] path { fill: var(--gold); stroke: var(--gold-ink); }
.ribbon.drop { animation: bounce 0.5s var(--glide); }
@keyframes bounce { 40% { transform: scale(1.3) rotate(-8deg); } }
.evidence summary { width: fit-content; color: var(--sapphire-ink); font-weight: 600; font-size: 0.9rem; cursor: pointer; list-style: none; }
.evidence summary::-webkit-details-marker { display: none; }
.evidence summary::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform 0.2s; }
.evidence[open] summary::after { transform: translateY(0) rotate(-135deg); }
.evidence dl { display: grid; gap: 4px; margin: 12px 0 8px; padding: 14px; border-radius: 10px; background: var(--bg); font-size: 0.9rem; animation: pop 0.2s var(--ease); }
.evidence dt { font-weight: 600; color: var(--ink); }
.evidence dd { margin: 0 0 8px; color: var(--ink-2); }
.evidence dd.missing { color: var(--muted); }
.card-link { width: fit-content; font-size: 0.88rem; font-weight: 600; text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }
.pro-action { width: fit-content; }
.pro-action .pro-badge { margin-left: 2px; }
.skeleton { min-height: 220px; gap: 12px; }
.skeleton span { height: 14px; border-radius: 8px; background: linear-gradient(90deg, var(--bg) 0%, var(--line) 50%, var(--bg) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.skeleton span:nth-child(1) { width: 35%; height: 24px; border-radius: 999px; }
.skeleton span:nth-child(2) { width: 85%; height: 22px; }
.skeleton span:nth-child(3) { width: 95%; height: 54px; }
.skeleton span:nth-child(4) { width: 45%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.group-head { grid-column: 1 / -1; display: grid; gap: 4px; margin-top: 18px; }
.group-head:first-child { margin-top: 0; }
.group-head h3 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; }
.group-head .fine { max-width: 72ch; }
.show-more { grid-column: 1 / -1; justify-self: start; }
.empty { max-width: 560px; margin: 26px 0; display: grid; gap: 8px; justify-items: start; }
.empty .button { margin-top: 8px; }
.web-more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 26px; padding: 18px 20px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.search-details { margin-top: 30px; color: var(--muted); font-size: 0.88rem; }
.search-details summary { cursor: pointer; font-weight: 600; }

/* ---- Saved, compare, applications ------------------------------------------- */
.compare-tray { position: fixed; left: 50%; bottom: 24px; z-index: 30; display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 22px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lift); transform: translateX(-50%); animation: tray-in 0.35s var(--glide); }
@keyframes tray-in { from { transform: translate(-50%, 40px); opacity: 0; } }
.compare-tray .button { background: var(--gold); color: var(--ink); }
.compare-tray .link-button { color: #fff; }
.compare-grid { display: grid; grid-template-columns: 120px repeat(var(--cols), minmax(180px, 1fr)); margin-top: 18px; overflow-x: auto; font-size: 0.92rem; border-radius: 12px; background: var(--bg); }
.compare-grid > div { padding: 12px; border-bottom: 1px solid var(--line); }
.compare-title { display: grid; gap: 4px; font: 600 1rem/1.3 var(--display); }
.compare-label { font-weight: 600; }
.compare-cell.missing { color: var(--muted); }
.board { display: grid; grid-template-columns: repeat(6, minmax(190px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x proximity; }
.column { display: flex; flex-direction: column; min-height: 320px; padding: 14px; border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 0 0 1.5px var(--line); scroll-snap-align: start; transition: background 0.15s, box-shadow 0.15s; }
.column.over { background: var(--sapphire-50); box-shadow: inset 0 0 0 2px var(--sapphire); }
.column h3 { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 12px; font-size: 1.02rem; }
.column h3 > span:first-child::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: var(--sapphire); }
.column[data-stage='Preparing'] h3 > span:first-child::before { background: var(--gold); }
.column[data-stage='Applied'] h3 > span:first-child::before { background: var(--steel); }
.column[data-stage='Interview'] h3 > span:first-child::before { background: var(--ruby); }
.column[data-stage='Offer'] h3 > span:first-child::before { background: var(--emerald); }
.column[data-stage='Closed'] h3 > span:first-child::before { background: var(--muted); }
.column-list { display: grid; gap: 10px; align-content: start; flex: 1; }
.column-empty { padding: 18px 8px; text-align: center; color: var(--muted); font-size: 0.88rem; }
.app-card { display: grid; gap: 8px; padding: 14px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); cursor: grab; transition: transform 0.2s var(--glide), box-shadow 0.2s; }
.app-card:hover { box-shadow: var(--shadow-lift); }
.app-card.dragging { opacity: 0.45; transform: rotate(-3deg) scale(0.98); }
.app-top { display: grid; gap: 6px; }
.app-card h4 { font: 600 0.98rem/1.3 var(--display); overflow-wrap: anywhere; }
.app-link { font-size: 0.86rem; font-weight: 600; }
.due { width: fit-content; padding: 3px 9px; border-radius: 999px; font-size: 0.76rem; font-weight: 600; }
.due.later { background: var(--bg); color: var(--ink-2); }
.due.soon { background: var(--gold-50); color: var(--gold-ink); }
.due.past { background: var(--ruby-50); color: var(--ruby-ink); }
.app-more summary { font-size: 0.86rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.app-more[open] { display: grid; gap: 10px; }
.app-more label { font-size: 0.82rem; }
.app-more input:not([type='checkbox']), .app-more select, .app-more textarea { padding: 8px 10px; font-size: 0.9rem; border-radius: 7px; }
.app-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.checklist { display: grid; gap: 10px; margin: 18px 0 22px; padding: 0; list-style: none; }
.checklist input:checked + span { text-decoration: line-through; color: var(--muted); }

/* ---- Plans & profile --------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; max-width: 920px; }
.plan { display: grid; gap: 14px; align-content: start; padding: 28px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow); }
.plan h3 { display: flex; align-items: center; gap: 10px; font-size: 1.6rem; }
.plan-price { color: var(--muted); font-weight: 600; }
.plan ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.plan li { position: relative; padding-left: 30px; }
.plan li::before { content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 7px; background: var(--emerald-50); }
.plan li::after { content: ''; position: absolute; left: 6px; top: 7px; width: 8px; height: 4px; border-left: 2px solid var(--emerald-ink); border-bottom: 2px solid var(--emerald-ink); transform: rotate(-45deg); }
.plan-pro { background: var(--sapphire); color: #fff; box-shadow: var(--shadow-pop); }
.plan-pro h3, .plan-pro .plan-price { color: #fff; }
.plan-pro li::before { background: rgba(255, 255, 255, 0.18); }
.plan-pro li::after { border-color: var(--gold); }
.plan-pro .fine { color: #e5dfff; }
.plan-pro .button { background: var(--gold); color: var(--ink); }
.plan-pro .button.ghost { background: rgba(255, 255, 255, 0.14); color: #fff; box-shadow: none; }
.plan-pro .link-button, .plan-pro a { color: #fff; }
.tag { padding: 4px 10px; border-radius: 999px; background: var(--gold); color: var(--ink); font: 700 0.74rem/1.3 var(--display); }
.plan .button { width: fit-content; }
.profile-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; max-width: 820px; padding: 28px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow); }
.profile-form .full { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; font-weight: 600; }
.stack { display: grid; gap: 14px; margin-top: 18px; }
.form-error { color: var(--ruby-ink); font-weight: 600; }

/* ---- AI Studio ------------------------------------------------------------------- */
.studio-plan { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.plan-chip { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-weight: 600; font-size: 0.88rem; }
.plan-chip.on { background: var(--emerald-50); color: var(--emerald-ink); box-shadow: none; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.tool-tile { padding: 24px; min-height: 190px; }
.tool-head { display: grid; gap: 10px; padding: 24px 26px; border-radius: var(--r-xl); margin-bottom: 20px; }
.tool-head > p { max-width: 62ch; color: var(--ink-2); font-size: 1.02rem; }
.back-link { display: inline-flex; align-items: center; gap: 6px; width: fit-content; color: var(--ink-2); font-weight: 600; text-decoration: none; }
.back-link:hover { color: var(--sapphire-ink); }
.back-link .icon { width: 18px; height: 18px; }
.tool-title { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.tool-title .tool-icon, .tool-title > .icon { width: 52px; height: 52px; padding: 12px; border-radius: 12px; background: #fff; }
.chip-slot:empty { display: none; }
.left-chip { display: inline-block; width: fit-content; padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; font-size: 0.85rem; }
.tool-body.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: start; }
.tool-body.stack-col { display: grid; gap: 18px; }
.tool-form { display: grid; gap: 14px; align-content: start; }
.field { display: grid; gap: 6px; }
.field-label { font-weight: 600; color: var(--ink); }
.inline-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.word-count { margin-left: auto; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.field .word-count { justify-self: end; }
.word-count.over { color: var(--ruby-ink); }
.drop-zone { display: grid; justify-items: center; gap: 6px; padding: 24px; border: 2px dashed var(--sapphire-100); border-radius: 14px; background: var(--pearl-2); color: var(--sapphire-ink); text-align: center; cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.2s var(--glide); }
.drop-zone:hover, .drop-zone.over { border-color: var(--sapphire); background: var(--sapphire-50); transform: scale(1.01); }
.drop-zone.is-busy { animation: breathe 1.2s ease-in-out infinite; }
.drop-zone input[type='file'] { position: absolute; width: 1px; height: 1px; opacity: 0; }
@keyframes breathe { 50% { opacity: 0.6; } }
.paste-toggle summary { cursor: pointer; font-weight: 600; color: var(--sapphire-ink); margin-bottom: 10px; }
.tool-result { display: grid; gap: 16px; align-content: start; min-width: 0; }
.empty-result { display: grid; justify-items: center; gap: 8px; padding: 44px 26px; border: 2px dashed var(--line); border-radius: var(--r-xl); text-align: center; color: var(--muted); }
.empty-result .icon { color: var(--sapphire); }
.empty-result h3 { color: var(--ink); }
.loading-card { display: grid; justify-items: center; gap: 14px; padding: 40px 24px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow); text-align: center; color: var(--ink-2); font-weight: 600; }
.dots { position: relative; display: inline-block; width: 10px; height: 10px; margin: 6px 18px; border-radius: 50%; background: var(--sapphire); animation: hop 0.9s var(--ease) infinite 0.15s; }
.dots::before, .dots::after { content: ''; position: absolute; top: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--sapphire); animation: hop 0.9s var(--ease) infinite; }
.dots::before { left: -16px; }
.dots::after { left: 16px; animation-delay: 0.3s; }
@keyframes hop { 30% { transform: translateY(-7px); } 60% { transform: none; } }
.error-box { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--ruby-50); color: var(--ruby-ink); font-weight: 600; }
.result-section { display: grid; gap: 10px; padding: 20px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); animation: card-in 0.4s var(--glide) both; }
.result-section h3 { display: flex; align-items: center; gap: 8px; }
.result-section h3 .icon { color: var(--sapphire); }
.review-head { display: flex; align-items: center; gap: 22px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); animation: card-in 0.4s var(--glide) both; }
.review-head h2 { margin: 4px 0 10px; font-size: 1.3rem; }
.score-ring { position: relative; flex: none; display: grid; place-items: center; width: 120px; height: 120px; }
.score-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring .ring-fill { transition: stroke-dashoffset 1.3s var(--ease); }
.score-ring.mint .ring-fill { stroke: var(--emerald); }
.score-ring.sun .ring-fill { stroke: var(--gold); }
.score-ring.coral .ring-fill { stroke: var(--ruby); }
.score-ring.mint, .score-ring.sun, .score-ring.coral { background: none; }
.score-text { position: relative; display: grid; text-align: center; }
.score-text strong { font: 700 2rem/1 var(--display); }
.score-text span { color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.good-chip { padding: 6px 12px; border-radius: 8px; background: var(--emerald-50); color: var(--emerald-ink); font-weight: 600; font-size: 0.88rem; }
.fixes { display: grid; gap: 12px; }
.fix { display: flex; gap: 12px; padding: 14px; border-radius: 12px; background: var(--bg); transition: opacity 0.3s; }
.fix.applied { opacity: 0.55; }
.fix-num { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--sapphire); color: #fff; font: 700 0.85rem/1 var(--display); }
.fix-body { display: grid; gap: 8px; min-width: 0; }
.before, .after { padding: 10px 12px; border-radius: 8px; overflow-wrap: anywhere; white-space: pre-wrap; }
.before { background: var(--ruby-50); color: var(--ink-2); }
.after { background: var(--emerald-50); color: var(--ink); }
.before small, .after small { display: block; margin-bottom: 2px; font-weight: 600; font-size: 0.74rem; }
.before small { color: var(--ruby-ink); }
.after small { color: var(--emerald-ink); }
.why { color: var(--muted); font-size: 0.9rem; }
.nice-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nice-list li { position: relative; padding-left: 22px; }
.nice-list li::before { content: ''; position: absolute; left: 4px; top: 0.55em; width: 9px; height: 9px; border-radius: 50%; background: var(--sapphire); }
.nice-list.sun, .nice-list.sky, .nice-list.mint, .nice-list.coral { background: none; }
.nice-list.sun li::before { background: var(--gold); }
.nice-list.sky li::before { background: var(--steel); }
.nice-list.mint li::before { background: var(--emerald); }
.nice-list.coral li::before { background: var(--ruby); }
.revised { display: grid; gap: 10px; }
.revised-text { padding: 16px; border-radius: 10px; background: var(--bg); white-space: pre-wrap; line-height: 1.65; }
blockquote { margin: 4px 0 0; padding: 10px 14px; border-left: 4px solid var(--sapphire-100); border-radius: 0 12px 12px 0; background: var(--pearl-2); color: var(--ink-2); }
.lead { font-weight: 600; }
.app-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; animation: card-in 0.4s var(--glide) both; }
.app-head h2 { margin: 4px 0 10px; }
.verdict, .due-chip { display: inline-block; padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: 0.86rem; background: var(--bg); }
.verdict.likely { background: var(--emerald-50); color: var(--emerald-ink); }
.verdict.unlikely { background: var(--ruby-50); color: var(--ruby-ink); }
.verdict.unclear { background: var(--gold-50); color: var(--gold-ink); }
.due-chip.hot { background: var(--ruby-50); color: var(--ruby-ink); }
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; align-items: start; }
.check-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.check-list label { padding: 10px; border-radius: 8px; transition: background 0.15s; }
.check-list label:hover { background: var(--bg); }
.check-list input:checked + span { color: var(--muted); text-decoration: line-through; }
.progress-line { font-weight: 600; color: var(--emerald-ink); }
.answers { display: grid; gap: 14px; }
.answer-card { display: grid; gap: 10px; background: var(--bg); box-shadow: none; }
.answer-card textarea { background: #fff; }
.timeline { position: relative; display: grid; gap: 14px; margin: 0; padding: 0 0 0 26px; list-style: none; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--sapphire-100); }
.timeline li { position: relative; display: grid; gap: 2px; }
.timeline li::before { content: ''; position: absolute; left: -25px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px var(--sapphire); }
.timeline strong { color: var(--sapphire-ink); }
.interview { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.interview-stage { display: grid; gap: 16px; }
.question-card { display: grid; gap: 12px; animation: card-in 0.4s var(--glide) both; }
.question-card h2 { font-size: 1.35rem; line-height: 1.35; }
.progress-dots { display: flex; gap: 6px; }
.progress-dots span { width: 28px; height: 8px; border-radius: 999px; background: var(--line); transition: background 0.3s, width 0.3s var(--glide); }
.progress-dots .done { background: var(--emerald); }
.progress-dots .now { width: 44px; background: var(--sapphire); }
.score-dots { display: flex; gap: 6px; }
.score-dots span { width: 16px; height: 16px; border-radius: 50%; background: var(--line); }
.score-dots .on { background: var(--gold); animation: pop 0.3s var(--glide) both; }
.score-dots .on:nth-child(2) { animation-delay: 0.05s; }
.score-dots .on:nth-child(3) { animation-delay: 0.1s; }
.score-dots .on:nth-child(4) { animation-delay: 0.15s; }
.score-dots .on:nth-child(5) { animation-delay: 0.2s; }
.feedback { display: grid; gap: 12px; animation: card-in 0.4s var(--glide) both; }
.summary { display: grid; justify-items: center; gap: 14px; text-align: center; }
.summary-list { display: grid; gap: 10px; width: 100%; margin: 0; padding: 0; list-style: none; text-align: left; }
.summary-list li { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 8px; background: var(--bg); }
.button.recording, .button.ghost.recording:hover:not(:disabled) { background: var(--ruby); color: #fff; animation: ring-pulse 1.4s infinite; }
@keyframes ring-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 107, 91, 0.6); } 70% { box-shadow: 0 0 0 12px rgba(255, 107, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 107, 91, 0); } }
.coach { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; gap: 12px; height: calc(100vh - 290px); min-height: 460px; padding: 16px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow); }
.chat-log { display: flex; flex-direction: column; gap: 12px; overflow-y: auto; padding: 8px; scroll-behavior: smooth; }
.bubble { max-width: min(78%, 680px); padding: 12px 16px; border-radius: 14px; line-height: 1.6; animation: card-in 0.3s var(--glide) both; overflow-wrap: anywhere; }
.bubble.user { align-self: flex-end; background: var(--sapphire); color: #fff; border-bottom-right-radius: 6px; white-space: pre-wrap; }
.bubble.assistant { align-self: flex-start; background: var(--bg); border-bottom-left-radius: 6px; }
.bubble.assistant p + p, .bubble.assistant p + ul, .bubble.assistant ul + p, .bubble.assistant ol + p, .bubble.assistant p + ol { margin-top: 8px; }
.bubble.assistant ul, .bubble.assistant ol { margin: 6px 0; padding-left: 20px; }
.bubble.assistant li + li { margin-top: 4px; }
.bubble.assistant h4 { margin: 6px 0 2px; }
.bubble.typing { padding: 16px 22px; }
.coach-empty { display: grid; justify-items: center; gap: 8px; margin: auto; padding: 20px; text-align: center; color: var(--muted); }
.coach-empty .icon { color: var(--sapphire); }
.coach-empty h3 { color: var(--ink); font-size: 1.4rem; }
.suggestions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; width: 100%; max-width: 720px; margin-top: 14px; }
.suggestion { padding: 14px 16px; border: 0; border-radius: 12px; background: var(--pearl-2); color: var(--ink); text-align: left; font-weight: 600; transition: transform 0.2s var(--glide), background 0.15s; }
.suggestion:hover { background: var(--sapphire-50); transform: translateY(-2px); }
.chat-form { display: flex; align-items: flex-end; gap: 10px; padding: 8px; border-radius: 14px; background: var(--bg); }
.chat-form textarea { min-height: 48px; max-height: 180px; border: 0; background: transparent; resize: none; }
.chat-form textarea:focus { box-shadow: none; }
.chat-form .send { border-radius: 10px; }
.chat-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 0 6px; }
.mail-card, .brag { display: grid; gap: 12px; background: var(--bg); box-shadow: none; }
.brag h4 { margin-top: 4px; }

/* Lab briefing dialog (Pro outreach) */
.brief { display: grid; gap: 16px; margin-top: 16px; }
.brief > .button { width: fit-content; }
.brief-section h3 { margin-bottom: 4px; font-size: 1.08rem; }
.brief-section ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.brief-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.9rem; font-weight: 600; }
.mail { display: grid; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1.5px solid var(--line); }
.mail:empty { display: none; }
.email-body { line-height: 1.6; }
.sent-row { padding-top: 6px; }
.notice-inline { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--gold-50); color: var(--gold-ink); font-weight: 600; font-size: 0.92rem; }
.loading-line::before { content: ''; display: inline-block; width: 14px; height: 14px; margin-right: 10px; border: 2.5px solid var(--sapphire); border-right-color: transparent; border-radius: 50%; vertical-align: -2px; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Dialogs, drawer, toast, confetti ----------------------------------------- */
.dialog, .drawer { border: 0; background: var(--surface); color: var(--ink); padding: 28px; box-shadow: 0 40px 80px -30px rgba(27, 24, 52, 0.55); }
.dialog { width: min(580px, calc(100vw - 24px)); max-height: calc(100vh - 32px); border-radius: var(--r-xl); }
.dialog.wide { width: min(1000px, calc(100vw - 24px)); }
.dialog[open] { animation: pop 0.25s var(--glide); }
.dialog h2, .drawer h2 { padding-right: 40px; font-size: 1.5rem; }
.dialog p { margin-top: 10px; }
.dialog::backdrop, .drawer::backdrop { background: rgba(27, 24, 52, 0.38); backdrop-filter: blur(4px); }
.close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 8px; background: var(--bg); color: var(--ink); font-size: 1.4rem; line-height: 1; }
.close:hover { background: var(--sapphire-50); color: var(--sapphire-ink); }
.drawer { position: fixed; inset: 0 0 0 auto; width: min(420px, 100vw); height: 100vh; max-height: none; margin: 0; border-radius: var(--r-xl) 0 0 var(--r-xl); display: none; flex-direction: column; gap: 16px; }
.drawer[open] { display: flex; animation: drawer-in 0.3s var(--glide); }
@keyframes drawer-in { from { transform: translateX(60px); opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 90; max-width: min(460px, calc(100vw - 32px)); padding: 13px 20px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; box-shadow: var(--shadow-lift); transform: translateX(-50%); }
.toast.show { animation: toast-in 0.35s var(--glide); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 20px) scale(0.95); } }
#confetti { position: fixed; inset: 0; z-index: 100; width: 100vw; height: 100vh; pointer-events: none; display: none; }
#confetti.on { display: block; }

/* ---- Policy & checkout pages ----------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; padding: 14px var(--pad); background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .brand { font-size: 1.3rem; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-header nav a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.site-header nav a:hover { color: var(--sapphire-ink); }
.site-header .account { margin-left: auto; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 22px var(--pad); color: var(--muted); font-size: 0.9rem; }
.site-footer span { margin-right: auto; }
.legal { max-width: 72ch; margin: 0 auto; padding: 46px var(--pad) 80px; }
.legal h1 { margin-bottom: 6px; }
.legal h2 { margin: 32px 0 10px; font-size: 1.3rem; }
.legal p, .legal li { margin: 0 0 14px; line-height: 1.7; color: var(--ink-2); }
.upgrade { max-width: 1000px; margin: 0 auto; padding: 46px var(--pad) 80px; }
.upgrade .plans { margin-top: 20px; }
.upgrade-fine { margin-top: 20px; }

/* ---- Smaller screens ------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .home-grid { grid-template-columns: 1fr 1fr; }
  .home-grid > :last-child { grid-column: 1 / -1; }
  .home-grid > :last-child .stats { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .app-body { display: block; padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .sidebar { display: none; }
  .topbar { position: sticky; top: 0; z-index: 25; display: flex; align-items: center; justify-content: space-between; padding: 12px var(--pad); background: rgba(244, 243, 250, 0.88); backdrop-filter: blur(12px); }
  .topbar .avatar { width: 38px; height: 38px; }
  .tabbar {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30;
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 8px; border-radius: 16px; background: #fff; box-shadow: 0 20px 40px -18px rgba(27, 24, 52, 0.5), 0 0 0 1px var(--line);
  }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 8px 0; border-radius: 12px; color: var(--muted); font-size: 0.72rem; font-weight: 600; text-decoration: none; transition: background 0.15s, color 0.15s, transform 0.2s var(--glide); }
  .tabbar a .icon { width: 22px; height: 22px; }
  .tabbar a[aria-current='page'] { background: var(--sapphire-50); color: var(--sapphire-ink); }
  .tabbar a:active { transform: scale(0.92); }
  .page, .discover { padding-top: 12px; }
  .welcome { grid-template-columns: 1fr; }
  .welcome-art { height: 150px; }
  .ring-card { width: 130px; height: 130px; right: 6%; border-radius: 18px; }
  .home-grid, .tool-body.two-col, .interview { grid-template-columns: 1fr; }
  .home-grid > :last-child .stats { grid-template-columns: repeat(2, 1fr); }
  .app-body { background: var(--bg); }
  .coach { height: calc(100dvh - 230px); min-height: 380px; padding: 10px; }
  .tool-head { padding: 16px 18px; gap: 8px; margin-bottom: 14px; border-radius: 14px; }
  .tool-head h1 { font-size: 1.6rem; }
  .tool-title .tool-icon, .tool-title > .icon { width: 42px; height: 42px; padding: 10px; border-radius: 10px; }
  .tool-head > p { font-size: 0.95rem; }
  #studio-tool:has(.coach) .tool-head > p { display: none; }
  .compare-tray { bottom: calc(100px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(100px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .sentence { font-size: 1.25rem; }
  .go { width: 100%; justify-content: center; margin: 10px 0 0; }
  .quick { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(-1 * var(--pad)); padding-right: var(--pad); padding-bottom: 4px; scrollbar-width: none; }
  .quick > * { flex: none; }
  .picker { position: fixed; left: 0 !important; right: 0; bottom: 0; top: auto !important; width: 100%; border-radius: 12px 16px 0 0; padding: 22px 20px 30px; animation: sheet-in 0.3s var(--glide); }
  .profile-form { grid-template-columns: 1fr; padding: 20px; }
  .board { grid-template-columns: repeat(6, 82vw); }
  .review-head { flex-direction: column; align-items: flex-start; }
  .bubble { max-width: 90%; }
  .compare-tray { width: calc(100vw - 24px); justify-content: space-between; }
  .dialog { padding: 22px; }
}
@keyframes sheet-in { from { transform: translateY(60px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
.feedback .result-section { padding: 6px 0 0; border-radius: 0; box-shadow: none; animation: none; }
.feedback .result-section + .result-section { border-top: 1.5px solid var(--line); padding-top: 14px; }
.brag > .button, .mail-card .row-actions .button { justify-self: start; }
.voice-hint { margin-top: -2px; }
.voice-hint.error { color: var(--ruby-ink); font-weight: 600; }
textarea[readonly] { background: var(--pearl-2); border-color: var(--sapphire-100); }

/* ---- Pearl & silver layer ----------------------------------------------------------------
   Serif headings, ink buttons, brushed-silver surfaces, gold reserved for Gold and top matches. */
body { font-weight: 400; font-size: 16.5px; letter-spacing: 0.005em; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: 0; }
h1 { font-size: clamp(2.3rem, 4vw, 3.2rem); line-height: 1.05; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
strong, b { font-weight: 500; }
:focus-visible { outline-color: var(--sapphire); }
::selection { background: var(--gold-50); color: var(--ink); }

.button { background: var(--ink); font-weight: 500; letter-spacing: 0.02em; }
.button:hover:not(:disabled) { background: var(--royal-hover); transform: translateY(-1px); box-shadow: var(--shadow-pop); }
.button.ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--silver); }
.button.ghost:hover:not(:disabled) { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--ink), var(--shadow); }
.button.gold, .plan-gold .button:not(.ghost), .compare-tray .button { background: var(--gilt); color: var(--on-foil); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.button.gold:hover:not(:disabled), .plan-gold .button:not(.ghost):hover:not(:disabled) { background: var(--gilt); filter: brightness(1.05); box-shadow: 0 10px 24px -14px rgba(120, 132, 165, 0.7); }
.link-button, a { color: var(--sapphire); }
.chip { border-width: 1px; border-color: var(--silver); font-weight: 500; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); }
input:not([type='checkbox']):not([type='file']):not([type='radio']), select, textarea { border-width: 1px; border-color: var(--silver); }
input:not([type='checkbox']):focus, select:focus, textarea:focus { border-color: var(--sapphire); box-shadow: 0 0 0 3px var(--sapphire-50); }
input[type='checkbox'], input[type='radio'] { accent-color: var(--ink); }
.eyebrow-line { color: var(--gold-ink); font-weight: 500; letter-spacing: 0.04em; }
.eyebrow-line::before { content: ''; width: 22px; height: 1px; background: var(--gold); }
.count { background: var(--pearl-2); color: var(--ink-2); font-weight: 500; }
.pro-badge { background: var(--gilt); color: var(--on-foil); font: 600 0.68rem/1.5 var(--sans); letter-spacing: 0.06em; padding: 1px 9px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.card-surface, .panel, .card, .result-section, .review-head, .loading-card, .plan, .profile-form, .hero, .coach, .web-more, .starters button { box-shadow: 0 0 0 1px var(--line), var(--shadow); }

/* Brand */
.brand { font: 600 1.7rem/1 var(--display); letter-spacing: 0.01em; }
.brand-mark { background: var(--ink); transform: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); border-radius: 10px; }
.brand:hover .brand-mark { transform: none; }
.brand-mark::before { background: var(--gilt); }
.brand-mark::after { background: var(--ink); }

/* Sidebar and tab bar */
.sidebar { background: var(--surface); border-right-color: var(--line); }
.app-body { background: linear-gradient(90deg, var(--surface) 250px, var(--bg) 250px); }
.side-nav a { font-weight: 500; }
.side-nav a:hover { background: var(--bg); color: var(--ink); }
.side-nav a[aria-current='page'] { background: var(--bg); color: var(--ink); box-shadow: inset 3px 0 0 var(--gold); }
.side-nav a[aria-current='page'] .count { background: var(--surface); color: var(--ink); }
.me { background: var(--bg); }
.me:hover, .me[aria-current='page'] { background: var(--pearl-2); }
.avatar { background: var(--brushed); color: var(--ink); font: 600 1.25rem/1 var(--display); box-shadow: inset 0 0 0 1px var(--silver); }
.account-button { background: var(--bg); color: var(--ink); font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); }
.account-button:hover { background: var(--pearl-2); }

/* Home */
.welcome { background: var(--brushed); color: var(--ink); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.welcome h1 { color: var(--ink); font-size: clamp(2.6rem, 5vw, 3.8rem); }
.welcome-date { color: var(--gold-ink); opacity: 1; font-weight: 500; letter-spacing: 0.04em; }
#home-summary { opacity: 1; color: var(--ink-2); }
.welcome .button:not(.light) { background: var(--ink); color: #fff; }
.welcome .button:not(.light):hover { background: var(--royal-hover); }
.welcome .button.light { background: rgba(255, 255, 255, 0.7); color: var(--ink); box-shadow: inset 0 0 0 1px var(--silver); }
.blob { animation-duration: 14s; }
.b1 { background: var(--gilt); opacity: 0.9; box-shadow: inset -12px -14px 30px rgba(110, 80, 20, 0.25); }
.b2 { background: radial-gradient(circle at 35% 30%, #5d86c4, var(--sapphire) 60%, #10284a); }
.b3 { background: var(--platinum); box-shadow: inset 0 0 0 1px var(--silver); }
.ring-card { box-shadow: 0 0 0 1px var(--line), var(--shadow-lift); border-radius: 20px; }
.ring-fill { stroke: var(--gold); }
.ring-track { stroke: var(--pearl-2); }
.ring-label strong, .stat strong { font-weight: 600; font-size: 2.2rem; }
.action-tile strong, .tool-tile strong { font: 600 1.4rem/1.15 var(--display); }
.action-tile, .tool-tile { box-shadow: 0 0 0 1px rgba(18, 26, 62, 0.05); }
.action-tile > .icon, .tool-tile > .icon { box-shadow: 0 0 0 1px var(--line); }
.violet { background: var(--sapphire-50); }
.sky { background: var(--platinum-50); }
.sun { background: var(--gold-50); }
.mint { background: var(--emerald-50); }
.coral { background: var(--ruby-50); }
.lilac { background: var(--pearl-2); }
.lilac > .icon { color: var(--ink); }
.tool-tile.ink, .tool-head.ink { background: var(--royal-deep); }
.tool-tile.ink > .icon, .tool-head.ink .tool-icon { background: var(--gilt); color: var(--on-foil); }
.panel-head h2 .icon, .stat .icon, .result-section h3 .icon, .empty-result .icon, .coach-empty .icon { color: var(--gold); }
.panel-head h2 { font-size: 1.45rem; }
.step { font-weight: 500; }
.day-badge { font: 600 1rem/1.1 var(--display); }

/* Discover */
.sentence { font: 500 clamp(1.5rem, 2.8vw, 2.1rem)/1.55 var(--display); }
.slot { background: transparent; color: var(--sapphire); border-bottom: 1px solid var(--sapphire-100); border-radius: 0; padding: 0 4px; font-style: italic; }
.slot:hover, .slot[aria-expanded='true'] { background: var(--sapphire-50); border-radius: 6px 6px 0 0; }
.slot-field input:not([type='checkbox']) { border: 0; border-bottom: 1px dashed var(--silver); border-radius: 0; background: transparent; font-style: italic; padding: 0 4px; }
.slot-field input:focus { border-bottom: 1px solid var(--sapphire); box-shadow: none; }
.go { background: var(--ink); font-weight: 500; letter-spacing: 0.02em; }
.go:hover { box-shadow: var(--shadow-pop); }
.card h3 { font: 600 1.45rem/1.2 var(--display); }
.kind { font-weight: 500; }
.kind-research .kind, .kind-lab .kind { background: var(--sapphire-50); color: var(--sapphire-ink); }
.kind-internship .kind { background: var(--platinum-50); color: var(--steel-ink); }
.match { flex: none; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.02em; white-space: nowrap; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(18, 26, 62, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6); cursor: help; }
.match-platinum { background: var(--platinum); }
.match-platinum::before { content: '◇ '; color: var(--steel-ink); }
.match-gold { background: var(--gilt); color: var(--on-foil); }
.match-gold::before { content: '✦ '; }
.match-silver { background: var(--brushed); color: var(--ink-2); }
.ribbon[aria-pressed='true'] { background: var(--gold-50); }
.ribbon[aria-pressed='true'] path { fill: var(--gold); stroke: var(--gold-ink); }
.signal mark { font-weight: 500; }
.picker-option[aria-pressed='true'] { color: var(--ink); background: var(--bg); box-shadow: inset 3px 0 0 var(--gold); }
.compare-tray { background: var(--ink); }

/* Plans */
.plan h3 { font-size: 2.2rem; }
.plan-silver { background: var(--brushed); }
.plan-gold, .plan-pro { background: var(--royal-deep); color: #eef0f6; box-shadow: 0 0 0 1px var(--royal-edge), var(--shadow-lift); }
.plan-gold h3 { color: var(--silver-hi); }
.plan-gold .plan-price { color: #cfd4e0; }
.plan-gold .fine { color: #aab1c4; }
.plan-gold li::before { background: rgba(214, 219, 230, 0.14); }
.plan-gold li::after { border-color: var(--silver-hi); }
.plan-silver li::before { background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 0 0 1px var(--silver); }
.plan-silver li::after { border-color: var(--ink); }
.plan-gold .link-button, .plan-gold a:not(.button) { color: var(--silver-hi); }
.tag { background: var(--gilt); color: var(--on-foil); font: 600 0.72rem/1.4 var(--sans); letter-spacing: 0.04em; }
.plan-chip { font-weight: 500; }
.plan-chip.on { background: var(--gilt); color: var(--on-foil); }

/* AI Studio details */
.tool-title .tool-icon, .tool-title > .icon { box-shadow: 0 0 0 1px var(--line); }
.left-chip { font-weight: 500; box-shadow: 0 0 0 1px var(--line); }
.score-text strong { font: 600 2.6rem/1 var(--display); }
.fix-num { background: var(--ink); font: 600 1rem/1 var(--display); }
.bubble.user { background: var(--ink); }
.bubble.assistant { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.suggestion { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; }
.suggestion:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--ink); }
.drop-zone { border: 1px dashed var(--silver); background: var(--bg); color: var(--ink-2); }
.drop-zone:hover, .drop-zone.over { border-color: var(--ink); background: var(--surface); }
.progress-dots .now { background: var(--ink); }
.progress-dots .done { background: var(--gold); }
.score-dots .on { background: var(--gilt); }
.timeline::before { background: var(--line); }
.timeline li::before { box-shadow: inset 0 0 0 2px var(--gold); }
.timeline strong { color: var(--gold-ink); font-weight: 500; }
.nice-list li::before { background: var(--gold); width: 7px; height: 7px; transform: rotate(45deg); border-radius: 1px; }
.dots, .dots::before, .dots::after { background: var(--gold); }
.loading-line::before { border-color: var(--gold); border-right-color: transparent; }
blockquote { border-left-color: var(--gold); background: var(--bg); font-family: var(--display); font-size: 1.2rem; font-style: italic; }
textarea[readonly] { background: var(--bg); border-color: var(--line); }
.toast { background: var(--ink); font-weight: 500; }
.dialog::backdrop, .drawer::backdrop { background: rgba(18, 26, 62, 0.35); }

@media (max-width: 900px) {
  .app-body { background: var(--bg); }
  .tabbar { box-shadow: 0 18px 36px -18px rgba(18, 26, 62, 0.45), 0 0 0 1px var(--line); }
  .tabbar a { font-weight: 500; }
  .tabbar a[aria-current='page'] { background: var(--bg); color: var(--ink); box-shadow: inset 0 -2px 0 var(--gold); }
  .welcome h1 { font-size: 2.6rem; }
}
.ring-label strong, .stat strong, .score-text strong, .day-badge, .fix-num, .welcome-date, .plan-price { font-variant-numeric: lining-nums; }
h1, h2, h3 { font-variant-numeric: lining-nums; }

/* Why Pro, calendar */
.why-pro { max-width: 920px; margin-top: 44px; display: grid; gap: 18px; }
.why-pro h2 { font-size: 2rem; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 14px; }
.why-grid article { display: grid; gap: 6px; align-content: start; padding: 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.why-grid h3 { font-size: 1.45rem; }
.why-grid h3::before { content: ''; display: block; width: 26px; height: 2px; margin-bottom: 12px; background: var(--gilt); }
.why-grid p { color: var(--ink-2); }
.calendar-button { margin-top: 14px; }
.app-more .button.small { justify-self: start; }

/* ---- Local Scout ------------------------------------------------------------------- */
.tool-body.scout { display: grid; grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.4fr); gap: 20px; align-items: start; }
.scout-form { position: sticky; top: 20px; }
.scout-note { margin-top: -4px; }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); width: fit-content; }
.seg { padding: 7px 14px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font-weight: 500; transition: background 0.15s, color 0.15s, box-shadow 0.15s; }
.seg:hover { color: var(--ink); }
.seg[aria-checked='true'] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(18, 26, 62, 0.12), 0 0 0 1px var(--line); }
.switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--silver); transition: background 0.2s; flex: none; }
.switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: transform 0.2s var(--glide); }
.switch input:checked + .switch-track { background: var(--ink); }
.switch input:checked + .switch-track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--sapphire); outline-offset: 2px; }
.scout-progress { display: grid; gap: 14px; }
.progress-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.step-item { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 500; transition: color 0.2s; }
.step-dot { position: relative; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--silver); flex: none; }
.step-item.now { color: var(--ink); }
.step-item.now .step-dot { box-shadow: inset 0 0 0 2px var(--gold); }
.step-item.now .step-dot::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--gold); animation: breathe 1.2s ease-in-out infinite; }
.step-item.done { color: var(--ink-2); }
.step-item.done .step-dot { background: var(--ink); box-shadow: none; }
.step-item.done .step-dot::after { content: ''; position: absolute; left: 5px; top: 6px; width: 7px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.scout-summary { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.scout-summary h2 { margin: 4px 0 6px; font-size: 1.9rem; }
.scout-list { display: grid; gap: 14px; }
.scout-card { display: grid; gap: 12px; animation: card-in 0.4s var(--glide) both; animation-delay: calc(var(--i, 0) * 50ms); }
.scout-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.scout-employer { color: var(--muted); font-weight: 500; font-size: 0.92rem; }
.scout-heading h3 { font-size: 1.5rem; line-height: 1.2; overflow-wrap: anywhere; }
.fit-badge { display: grid; place-items: center; flex: none; width: 58px; height: 58px; border-radius: 16px; text-align: center; box-shadow: inset 0 0 0 1px rgba(18, 26, 62, 0.12); }
.fit-badge strong { font: 600 1.6rem/1 var(--display); font-variant-numeric: lining-nums; }
.fit-badge small { margin-top: -6px; font-size: 0.7rem; color: var(--ink-2); }
.fit-badge.high { background: var(--gilt); color: var(--on-foil); }
.fit-badge.mid { background: var(--platinum); }
.fit-badge.low { background: var(--brushed); color: var(--ink-2); }
.meta-chip { padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--ink-2); font-size: 0.82rem; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); }
.meta-chip.ok { background: var(--emerald-50); color: var(--emerald-ink); box-shadow: none; }
.meta-chip.pay { background: var(--gold-50); color: var(--gold-ink); box-shadow: none; }
.meta-chip.hot { background: var(--ruby-50); color: var(--ruby-ink); box-shadow: none; }
.scout-why { color: var(--ink); }
.scout-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--bg); font-size: 0.92rem; }
.scout-facts dt { color: var(--muted); font-weight: 500; }
.scout-facts dd { margin: 0; color: var(--ink-2); }
.contacts { display: grid; gap: 10px; }
.contact-card { display: grid; gap: 6px; padding: 14px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.contact-card > .button { justify-self: start; margin-top: 4px; }
.contact-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.contact-head h4 { font-size: 1.25rem; }
.contact-email { font-size: 0.9rem; color: var(--emerald-ink); font-weight: 500; }
.scout-tile { grid-column: span 2; }
.web-more .button .pro-badge { margin-left: 4px; }
@media (max-width: 1000px) {
  .tool-body.scout { grid-template-columns: 1fr; }
  .scout-form { position: static; }
}
@media (max-width: 640px) {
  .scout-tile { grid-column: auto; }
  .scout-facts { grid-template-columns: 1fr; }
  .scout-facts dd { margin-bottom: 6px; }
}
.free-badge { display: inline-block; padding: 1px 9px; border-radius: 999px; background: var(--emerald-50); color: var(--emerald-ink); font: 600 0.68rem/1.5 var(--sans); font-style: normal; letter-spacing: 0.04em; box-shadow: inset 0 0 0 1px rgba(29, 90, 64, 0.15); }
.action-tile .free-badge, .tool-tile .free-badge { position: absolute; top: 18px; right: 18px; }
.tool-tile.ink .free-badge { background: rgba(255, 255, 255, 0.12); color: #cfe9dc; box-shadow: none; }
.web-more .button .free-badge { margin-left: 4px; }
.lite-upsell { display: grid; gap: 8px; justify-items: start; background: var(--royal-deep); color: #eef0f6; box-shadow: 0 0 0 1px var(--royal-edge), var(--shadow); }
.lite-upsell h3 { color: var(--silver-hi); }
.lite-upsell .fine { color: #b9c0d3; }

/* Local Scout on Home and Discover */
.home-scout { display: grid; gap: 10px; margin-top: 22px; padding: clamp(20px, 3vw, 28px); border-radius: var(--r-xl); background: var(--royal-deep); color: #eef0f6; box-shadow: 0 0 0 1px var(--royal-edge), var(--shadow-lift); }
.home-scout-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.home-scout-title { display: flex; align-items: center; gap: 12px; color: #fff; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.home-scout-title .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--gilt); color: var(--on-foil); }
.home-scout-lead { max-width: 70ch; color: #b9c0d3; }
.home-scout .free-badge { background: rgba(255, 255, 255, 0.12); color: #cfe9dc; box-shadow: none; }
.home-scout-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1.1fr) auto; gap: 12px; align-items: end; margin-top: 6px; }
.home-scout-form .field-label { color: #cfd4e0; font-weight: 500; }
.home-scout-form input, .home-scout-form select { background: #fff; border-color: transparent !important; }
.home-scout-form .button { padding: 12px 22px; }
.scout-band { position: relative; display: grid; gap: 14px; margin-top: 22px; padding: clamp(20px, 3vw, 28px); border-radius: var(--r-xl); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); overflow: hidden; }
.scout-band::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--gilt); }
.scout-band-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; }
.scout-band-title { display: flex; align-items: center; gap: 12px; font-size: 2rem; }
.scout-band-title .icon { width: 38px; height: 38px; padding: 8px; border-radius: 12px; background: var(--ink); color: var(--silver-hi); }
.scout-band-lead { margin-top: 6px; max-width: 72ch; color: var(--ink-2); }
.scout-band-form { display: grid; gap: 10px; }
.scout-band-row { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(150px, 1.2fr) auto auto; gap: 12px; align-items: end; }
.scout-band-row .segmented { flex-wrap: nowrap; }
.scout-band-row .seg { padding: 9px 10px; }
.scout-band-row .button { padding: 12px 20px; }
.scout-more summary { width: fit-content; cursor: pointer; color: var(--sapphire); font-weight: 500; }
.scout-more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; align-items: end; margin-top: 12px; }
.scout-band-results { display: grid; gap: 14px; }
.scout-band-results:empty { display: none; }
.scout-band-results .scout-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); align-items: start; }
.scout-band-results .scout-summary, .scout-band-results .scout-progress, .scout-band-results .scout-card, .scout-band-results .result-section, .scout-band-results .lite-upsell { box-shadow: 0 0 0 1px var(--line); }
.scout-band-results .link-button { justify-self: start; }
@media (max-width: 1100px) {
  .scout-band-row { grid-template-columns: 1fr 1fr; }
  .scout-band-row > :first-child { grid-column: 1 / -1; }
  .scout-band-row .button { justify-self: start; }
}
@media (max-width: 760px) {
  .home-scout-form { grid-template-columns: 1fr 1fr; }
  .home-scout-form > :first-child { grid-column: 1 / -1; }
  .home-scout-form .button { grid-column: 1 / -1; justify-content: center; }
  .scout-band-row { grid-template-columns: 1fr 1fr; }
  .scout-band-row .button { grid-column: 1 / -1; justify-self: stretch; justify-content: center; }
}
.seg { white-space: nowrap; }
@media (max-width: 760px) {
  .scout-band-row > :nth-child(4) { grid-column: 1 / -1; }
}

/* ---- Sign-in ------------------------------------------------------------ */
.google-button {
  width: 100%;
  margin-top: 8px;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.google-button:hover:not(:disabled) { background: #fff; box-shadow: inset 0 0 0 1.5px var(--steel, #8a93a3), var(--shadow); }
.google-button svg { flex: none; }
.or-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 6px;
  color: var(--muted);
  font-size: 0.86rem;
}
.or-rule::before,
.or-rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.signin-nudge {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  max-width: 340px;
  padding: 16px 18px;
  display: grid;
  gap: 12px;
  animation: nudge-in 0.35s ease-out;
}
.signin-nudge p { margin: 0; font-size: 0.94rem; line-height: 1.45; }
@keyframes nudge-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .signin-nudge { animation: none; } }
@media (max-width: 640px) { .signin-nudge { left: 12px; right: 12px; bottom: 76px; max-width: none; } }

/* ---- For Schools page ------------------------------------------------------ */
.schools-page main { max-width: 1160px; margin: 0 auto; padding: 0 var(--pad) 40px; }
.schools-page h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.1; }
.schools-page h3 { font-size: 1.45rem; }
.sch-sub { margin: 10px 0 0; color: var(--ink-2); font-size: 1.05rem; max-width: 52ch; }
.sch-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.sch-kicker { margin: 0 0 14px; color: var(--gold-ink); font-weight: 500; letter-spacing: 0.02em; }
.sch-hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1.04; max-width: 17ch; }
.sch-lead { margin: 20px 0 0; font-size: 1.1rem; line-height: 1.65; color: var(--ink-2); max-width: 54ch; }
.sch-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.sch-sample { margin: 0; padding: 22px; border-radius: var(--r-xl); background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -36px rgba(18, 26, 62, 0.45); display: grid; gap: 16px; }
.sch-sample-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sch-sample-head strong { font: 600 1.35rem/1.1 var(--display); }
.sch-sample-tag { padding: 2px 10px; border-radius: 999px; background: var(--pearl-2); color: var(--muted); font-size: 0.8rem; }
.sch-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.sch-stats div { padding: 12px; border-radius: var(--r); background: var(--bg); }
.sch-stats dt { font-size: 0.78rem; color: var(--muted); line-height: 1.3; }
.sch-stats dd { margin: 6px 0 0; font: 600 1.7rem/1 var(--display); font-variant-numeric: lining-nums; }
.sch-stats div:last-child dd { color: var(--gold-ink); }
.sch-weeks { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 92px; padding: 0 2px; border-bottom: 1px solid var(--line); }
.sch-weeks span { display: block; height: var(--h); border-radius: 4px 4px 0 0; background: var(--silver); }
.sch-weeks span:last-child { background: var(--gilt); }
.sch-weeks span:nth-child(1) { --h: 34%; } .sch-weeks span:nth-child(2) { --h: 41%; } .sch-weeks span:nth-child(3) { --h: 38%; }
.sch-weeks span:nth-child(4) { --h: 52%; } .sch-weeks span:nth-child(5) { --h: 61%; } .sch-weeks span:nth-child(6) { --h: 57%; }
.sch-weeks span:nth-child(7) { --h: 70%; } .sch-weeks span:nth-child(8) { --h: 66%; } .sch-weeks span:nth-child(9) { --h: 79%; }
.sch-weeks span:nth-child(10) { --h: 88%; } .sch-weeks span:nth-child(11) { --h: 84%; } .sch-weeks span:nth-child(12) { --h: 96%; }
.sch-weeks-label { margin: -8px 0 0; font-size: 0.82rem; color: var(--muted); }
.sch-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; font-variant-numeric: tabular-nums lining-nums; }
.sch-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 0.8rem; padding: 0 0 6px; }
.sch-table th:not(:first-child), .sch-table td:not(:first-child) { text-align: right; }
.sch-table td { padding: 8px 0; border-top: 1px solid var(--line); }
.sch-folded td { color: var(--muted); font-style: italic; }

.sch-band, .sch-privacy { padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.sch-split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); }
.sch-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.sch-list li { padding-left: 22px; position: relative; line-height: 1.6; color: var(--ink-2); }
.sch-list li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.sch-list strong { color: var(--ink); font-weight: 600; }

.sch-office { padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.sch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 28px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.sch-grid article { padding: 26px; background: var(--surface); display: grid; gap: 8px; align-content: start; }
.sch-grid p { margin: 0; color: var(--ink-2); line-height: 1.6; }

.sch-privacy { background: linear-gradient(180deg, transparent, var(--pearl-2)); margin: 0 calc(var(--pad) * -1); padding-left: var(--pad); padding-right: var(--pad); }

.sch-plans { padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.sch-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; align-items: stretch; }
.sch-plan { display: grid; align-content: start; gap: 12px; padding: 26px; border-radius: var(--r-xl); background: var(--brushed); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.sch-plan h3 { font-size: 1.9rem; }
.sch-price { margin: 0; color: var(--ink-2); }
.sch-price span { font: 600 2.4rem/1 var(--display); color: var(--ink); margin-right: 4px; font-variant-numeric: lining-nums; }
.sch-plan ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.sch-plan li { padding-left: 18px; position: relative; }
.sch-plan li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.sch-plan .fine { margin: 6px 0 0; }
.sch-plan-main { background: var(--royal-deep); color: #eef0f6; box-shadow: 0 0 0 1px var(--royal-edge), var(--shadow-lift); }
.sch-plan-main h3, .sch-plan-main .sch-price span { color: var(--silver-hi); }
.sch-plan-main .sch-price, .sch-plan-main .fine { color: #b9c0d3; }
.sch-plan-main li::before { background: var(--silver-hi); }
.sch-note { margin: 20px 0 0; max-width: 78ch; color: var(--ink-2); line-height: 1.65; }

.sch-how, .sch-faq { padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.sch-steps { list-style: none; counter-reset: step; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.sch-steps li { counter-increment: step; display: grid; gap: 6px; align-content: start; color: var(--ink-2); line-height: 1.55; padding-top: 14px; border-top: 2px solid var(--ink); }
.sch-steps li::before { content: counter(step); font: 600 2rem/1 var(--display); color: var(--gold-ink); font-variant-numeric: lining-nums; }
.sch-steps strong { color: var(--ink); font-weight: 600; }
.sch-faq { max-width: 78ch; }
.sch-faq details { border-bottom: 1px solid var(--line); }
.sch-faq summary { cursor: pointer; padding: 18px 0; font: 600 1.25rem/1.3 var(--display); list-style-position: outside; }
.sch-faq details p { margin: 0 0 18px; color: var(--ink-2); line-height: 1.65; }

.sch-pilot { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); margin: clamp(40px, 6vw, 72px) 0 20px; padding: clamp(24px, 4vw, 44px); border-radius: var(--r-xl); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-lift); scroll-margin-top: 90px; }
.sch-pilot-text p { color: var(--ink-2); line-height: 1.6; }
.sch-email a { font-weight: 500; }
.sch-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.sch-wide { grid-column: 1 / -1; }
.sch-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.sch-submit .fine { margin: 0; }
.sch-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sch-done { display: grid; gap: 8px; align-content: center; }

@media (max-width: 900px) {
  .sch-hero, .sch-split, .sch-pilot { grid-template-columns: 1fr; }
  .sch-plan-grid { grid-template-columns: 1fr; }
  .sch-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .sch-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sch-grid, .sch-form, .sch-steps { grid-template-columns: 1fr; }
}

/* ---- Campus ----------------------------------------------------------------------- */
.campus-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 18px; }
.campus-head h1 { font-size: clamp(2.2rem, 4vw, 3rem); }
.campus-lead { margin: 8px 0 0; color: var(--ink-2); max-width: 66ch; line-height: 1.6; }
.campus-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 22px; border-bottom: 1px solid var(--line); }
.campus-tabs a { padding: 10px 14px; color: var(--ink-2); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.campus-tabs a:hover { color: var(--ink); }
.campus-tabs a[aria-current='page'] { color: var(--ink); border-bottom-color: var(--gold); }
.campus-body { display: grid; gap: 22px; }
.campus-empty { display: grid; gap: 12px; justify-items: start; padding: 32px; max-width: 640px; }
.campus-empty p { color: var(--ink-2); margin: 0; }
.campus-loading { margin: 12px 0; }

.campus-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.campus-filter input[type='search'] { flex: 1 1 260px; max-width: 420px; }
.campus-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.campus-post { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.campus-post.closed { opacity: 0.72; }
.campus-post h3 { font: 600 1.45rem/1.2 var(--display); margin: 0; }
.campus-org { margin: -4px 0 0; color: var(--ink-2); font-weight: 500; }
.campus-desc { margin: 0; color: var(--ink-2); line-height: 1.6; white-space: pre-line; }
.campus-facts { display: grid; gap: 8px; margin: 0; padding: 12px 14px; border-radius: var(--r); background: var(--bg); }
.campus-facts div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; }
.campus-facts dt { color: var(--muted); font-size: 0.88rem; }
.campus-facts dd { margin: 0; font-size: 0.94rem; }
.campus-post .row-actions { align-items: center; }
.campus-interest { color: var(--muted); font-size: 0.88rem; margin-left: auto; }
.kind-program .kind, .kind.kind-program { background: var(--gold-50); color: var(--gold-ink); }
.kind.kind-research { background: var(--sapphire-50); color: var(--sapphire-ink); }
.kind.kind-internship { background: var(--platinum-50); color: var(--steel-ink); }
.kind.kind-staff { background: var(--ink); color: #fff; }
.kind.kind-faculty { background: var(--sapphire-50); color: var(--sapphire-ink); }
.tag-closed { padding: 3px 10px; border-radius: 999px; background: var(--pearl-2); color: var(--muted); font-size: 0.8rem; }
.campus-post .due, .campus-strip .due { padding: 3px 10px; border-radius: 999px; background: var(--bg); color: var(--ink-2); font-size: 0.8rem; font-weight: 500; }
.campus-post .due.soon { background: var(--ruby-50); color: var(--ruby-ink); }
.button.danger:hover:not(:disabled) { color: var(--ruby-ink); box-shadow: inset 0 0 0 1px var(--ruby); }
.campus-form .inline-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.campus-form textarea { resize: vertical; }

.campus-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.campus-controls select { width: auto; }
.campus-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.campus-tile { display: grid; gap: 4px; padding: 18px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.campus-tile span { color: var(--muted); font-size: 0.9rem; }
.campus-tile strong { font: 600 2.4rem/1.05 var(--display); font-variant-numeric: lining-nums; }
.campus-tile small { color: var(--ink-2); font-size: 0.86rem; }
.campus-tile.gold { background: var(--brushed); }
.campus-tile.gold strong { color: var(--gold-ink); }

.campus-chart { position: relative; padding: 20px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 10px; }
.campus-chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.campus-chart-head h3 { margin: 0; font-size: 1.35rem; }
.campus-chart-head select { width: auto; }
.campus-plot { position: relative; }
.campus-plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.campus-plot .grid { stroke: var(--line); stroke-width: 1; }
.campus-plot .axis { fill: var(--muted); font: 400 11px var(--sans); font-variant-numeric: tabular-nums; }
.campus-plot .bar { fill: var(--steel); transition: fill 0.15s; }
.campus-plot .bar.last { fill: var(--gold); }
.campus-plot .bar.on { fill: var(--ink); }
.campus-plot .hit { fill: transparent; cursor: default; outline: none; }
.campus-plot .hit:focus-visible { stroke: var(--sapphire); stroke-width: 2; }
.campus-tip { position: absolute; z-index: 2; transform: translate(-50%, -100%); display: grid; gap: 2px; padding: 8px 12px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 0.82rem; white-space: nowrap; pointer-events: none; box-shadow: var(--shadow-pop); }
.campus-tip strong { font: 600 1.2rem/1 var(--display); font-variant-numeric: lining-nums; }
.campus-tip span { color: #c9cdd3; }
.campus-chart-table summary { cursor: pointer; color: var(--sapphire); font-size: 0.9rem; }

.campus-usage { display: grid; gap: 8px; padding: 20px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.campus-usage h3 { margin: 0; font-size: 1.35rem; }
.campus-usage .fine { margin: 0; }
.campus-meter { height: 10px; border-radius: 999px; background: var(--pearl-2); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.campus-meter span { display: block; height: 100%; border-radius: 999px; background: var(--gilt); }
.campus-tables { display: grid; grid-template-columns: 1fr; gap: 16px; }
.campus-group { display: grid; gap: 10px; align-content: start; padding: 20px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); min-width: 0; }
.campus-group h3 { margin: 0; font-size: 1.35rem; }
.table-scroll { overflow-x: auto; }
.campus-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; font-variant-numeric: tabular-nums lining-nums; }
.campus-table th, .campus-table td { padding: 8px 10px 8px 0; border-top: 1px solid var(--line); text-align: right; white-space: nowrap; }
.campus-table thead th { border-top: 0; color: var(--muted); font-weight: 500; font-size: 0.8rem; }
.campus-table th:first-child, .campus-table td:first-child { text-align: left; }
.campus-table tbody th { font-weight: 500; }
.campus-table tr.folded th, .campus-table tr.folded td, .campus-table td.muted { color: var(--muted); font-style: italic; }
.campus-table.employers td:nth-child(2), .campus-table.employers thead th:nth-child(2) { text-align: left; }
.campus-table.employers td:nth-child(2) { color: var(--ink-2); }
.campus-table .reach { min-width: 140px; }
.campus-table .reach div { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.campus-table .reach span { height: 8px; border-radius: 4px; background: var(--steel); min-width: 4px; }
.campus-table .reach em { font-style: normal; min-width: 2ch; }
.campus-privacy { margin: 0; }

.campus-add { display: flex; flex-wrap: wrap; gap: 10px; }
.campus-add input { flex: 1 1 260px; max-width: 380px; }
.campus-add select { width: auto; }
.campus-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--line); max-width: 760px; }
.campus-people li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--surface); }
.campus-people li > div { display: grid; gap: 2px; flex: 1; min-width: 0; }
.campus-people strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }

.campus-strip { display: grid; gap: 12px; padding: 18px 20px; margin: 0 0 18px; border-radius: var(--r-lg); background: var(--brushed); box-shadow: 0 0 0 1px var(--line); }
.campus-strip-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.campus-strip-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.3rem; }
.campus-strip-head .icon { color: var(--gold-ink); }
.campus-strip-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.campus-strip-list li { display: grid; gap: 8px; align-content: space-between; padding: 14px; border-radius: var(--r); background: rgba(255, 255, 255, 0.8); box-shadow: 0 0 0 1px var(--line); }
.campus-strip-list a { display: grid; gap: 2px; color: var(--ink); text-decoration: none; }
.campus-strip-list a:hover strong { color: var(--sapphire-ink); }
.campus-strip-list strong { font: 600 1.15rem/1.2 var(--display); }
.campus-strip-list a span { color: var(--ink-2); font-size: 0.88rem; }
.campus-strip-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.campus-strip-tags .kind { padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 500; }
.home-campus { margin: 0; }

@media (max-width: 900px) {
  .campus-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .campus-form .inline-fields { grid-template-columns: 1fr; }
  .campus-facts div { grid-template-columns: 1fr; gap: 2px; }
  .campus-tile strong { font-size: 2rem; }
  .campus-head .button { width: 100%; justify-content: center; }
}

.tabbar a[hidden] { display: none; }

.sch-college { padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.sch-college-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; margin-top: 30px; }
.sch-college-grid article { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 2px solid var(--gold); }
.sch-college-grid p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.sch-college-grid .sch-cite { font-size: 0.82rem; color: var(--muted); }
.sch-lead + .sch-lead { margin-top: 12px; color: var(--ink); font-weight: 500; }
@media (max-width: 900px) { .sch-college-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sch-college-grid { grid-template-columns: 1fr; } }

/* For Schools: credit bundles and the plan builder */
.sch-bundles { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 32px; align-items: center; margin-top: 24px; padding: 20px 24px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.sch-bundles h3 { margin: 0; font-size: 1.35rem; }
.sch-bundles p { margin: 0; color: var(--ink-2); grid-column: 1; }
.sch-bundles dl { grid-column: 2; grid-row: 1 / span 2; display: grid; gap: 6px; margin: 0; }
.sch-bundles dl div { display: flex; justify-content: space-between; gap: 24px; }
.sch-bundles dt { color: var(--ink-2); }
.sch-bundles dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }

.sch-custom { padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.sch-builder { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 24px; margin-top: 28px; align-items: start; }
.sch-builder-controls { display: grid; gap: 18px; }
.sch-builder fieldset { margin: 0; padding: 20px 22px; border: 0; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 12px; }
.sch-builder legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; font: 600 1.3rem/1.2 var(--display); }
.sch-builder legend + * { clear: both; }
.sch-builder .fine { margin: 0; }
.sch-students-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 16px; align-items: center; }
.sch-students-row input[type='number'] { text-align: right; font-variant-numeric: tabular-nums; }
.sch-students input[type='range'] { --fill: 50%; appearance: none; -webkit-appearance: none; width: 100%; height: 28px; background: transparent; padding: 0; border: 0; box-shadow: none; }
.sch-students input[type='range']::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--gold) var(--fill), var(--pearl-2) var(--fill)); box-shadow: inset 0 0 0 1px var(--line); }
.sch-students input[type='range']::-moz-range-track { height: 6px; border-radius: 999px; background: var(--pearl-2); }
.sch-students input[type='range']::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--gold); }
.sch-students input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 2px var(--ink), var(--shadow); cursor: grab; }
.sch-students input[type='range']::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 2px var(--ink), var(--shadow); cursor: grab; }
.sch-students input[type='range']:focus-visible { outline: none; }
.sch-students input[type='range']:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--ink), 0 0 0 6px var(--sapphire-100); }
.sch-term { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sch-term legend { grid-column: 1 / -1; }
.sch-choice { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: var(--r); background: var(--bg); cursor: pointer; box-shadow: inset 0 0 0 1px transparent; }
.sch-choice:has(input:checked) { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink); }
.sch-choice span, .sch-check span, .sch-stepper > span { display: grid; gap: 2px; color: var(--ink-2); font-size: 0.92rem; line-height: 1.45; }
.sch-choice strong, .sch-check strong, .sch-stepper strong { color: var(--ink); font-size: 1rem; font-weight: 600; }
.sch-choice input, .sch-check input { margin-top: 4px; }
.sch-stepper { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sch-step { display: inline-flex; align-items: center; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--silver); }
.sch-step button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.2rem; cursor: pointer; }
.sch-step button:hover { background: var(--bg); }
.sch-step output { min-width: 2ch; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.sch-check { display: flex; gap: 10px; align-items: flex-start; padding-top: 6px; cursor: pointer; }

.sch-quote { position: sticky; top: 24px; display: grid; gap: 10px; padding: 26px; border-radius: var(--r-xl); background: var(--royal-deep); color: #eef0f6; box-shadow: 0 0 0 1px var(--royal-edge), var(--shadow-lift); }
.sch-quote-label { margin: 0; color: var(--silver-hi); font-weight: 500; }
.sch-quote-price { margin: 0; color: #b9c0d3; }
.sch-quote-price span { font: 600 3rem/1 var(--display); color: #fff; margin-right: 6px; font-variant-numeric: lining-nums; }
.sch-quote .fine { margin: 0; color: #aab1c4; }
.sch-quote-lines { list-style: none; margin: 6px 0 0; padding: 12px 0 0; border-top: 1px solid var(--royal-edge); display: grid; gap: 8px; font-size: 0.92rem; }
.sch-quote-lines li { display: flex; justify-content: space-between; gap: 16px; }
.sch-quote-lines li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sch-quote-lines li.discount { color: var(--silver-hi); }
.sch-quote-pool { margin: 0; padding-top: 10px; border-top: 1px solid var(--royal-edge); font-size: 0.92rem; }
.sch-quote .button { justify-content: center; margin-top: 6px; }

@media (max-width: 900px) {
  .sch-builder { grid-template-columns: 1fr; }
  .sch-quote { position: static; }
  .sch-bundles { grid-template-columns: 1fr; }
  .sch-bundles dl { grid-column: 1; grid-row: auto; }
}
@media (max-width: 560px) {
  .sch-term { grid-template-columns: 1fr; }
  .sch-students-row { grid-template-columns: 1fr 96px; gap: 10px; }
}

/* ---- Student access code prompt and staff code card ------------------------------------ */
.school-invite { display: grid; gap: 10px; padding: 22px 24px; border-radius: var(--r-lg); background: var(--brushed); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.school-invite h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.5rem; }
.school-invite h2 .icon { color: var(--gold-ink); flex: none; }
.school-invite p { margin: 0; color: var(--ink-2); }
.school-invite-form { display: flex; flex-wrap: wrap; gap: 10px; }
.school-invite-form input { flex: 0 1 240px; font-variant-numeric: tabular-nums; letter-spacing: 0.08em; text-transform: uppercase; }
.school-invite .form-error:empty { display: none; }
.campus-code { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; padding: 20px 22px; border-radius: var(--r-lg); background: var(--brushed); box-shadow: 0 0 0 1px var(--line); max-width: 760px; }
.campus-code h3 { margin: 0; font-size: 1.3rem; }
.campus-code .fine { margin: 4px 0 0; }
.campus-code-value { font: 600 1.6rem/1 var(--sans); letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }
.campus-code .row-actions { grid-column: 1 / -1; }

/* ---- Admin ------------------------------------------------------------------------------ */
.admin-page .site-header { gap: 14px; }
.adm-tag { padding: 3px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 0.78rem; font-weight: 500; margin-right: auto; }
.adm { max-width: 1160px; margin: 0 auto; padding: 32px var(--pad) 80px; display: grid; gap: 22px; }
.adm-head h1 { font-size: clamp(2rem, 3.5vw, 2.6rem); }
.adm-message { display: grid; gap: 12px; justify-items: start; padding: 32px; max-width: 560px; }
.adm-message p { margin: 0; color: var(--ink-2); }
.adm-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.adm-stat { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.adm-stat span { color: var(--muted); font-size: 0.86rem; }
.adm-stat strong { font: 600 2rem/1.1 var(--display); font-variant-numeric: lining-nums; }
.adm-stat small { color: var(--ink-2); font-size: 0.82rem; }
.adm-body { display: grid; gap: 16px; }
.adm-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.adm-toggle { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.adm-empty { color: var(--ink-2); padding: 24px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); margin: 0; }
.adm-list { display: grid; gap: 14px; }
.adm-card { display: grid; gap: 12px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.adm-card.status-signed { box-shadow: 0 0 0 1.5px var(--gold), var(--shadow); }
.adm-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.adm-card-top h3 { margin: 0; font: 600 1.45rem/1.2 var(--display); }
.adm-card-top select { width: auto; }
.adm-sub { margin: 4px 0 0; color: var(--ink-2); font-size: 0.94rem; }
.adm-chip { flex: none; padding: 4px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 500; background: var(--pearl-2); color: var(--ink-2); }
.adm-chip.sent { background: var(--sapphire-50); color: var(--sapphire-ink); }
.adm-chip.signed { background: var(--gilt); color: var(--on-foil); }
.adm-chip.active { background: var(--emerald-50); color: var(--emerald-ink); }
.adm-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 20px; margin: 0; }
.adm-facts div { display: grid; gap: 2px; }
.adm-facts dt { color: var(--muted); font-size: 0.8rem; }
.adm-facts dd { margin: 0; overflow-wrap: anywhere; }
.adm-code-inline { font-weight: 600; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.adm-quote { margin: 0; font-size: 1.05rem; }
.adm-card textarea { width: 100%; resize: vertical; }
.adm-meters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.adm-meter { display: grid; gap: 6px; font-size: 0.88rem; color: var(--ink-2); }
.adm-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.adm-form .field.wide, .adm-form-title, .adm-form-actions, .adm-quote-box { grid-column: 1 / -1; }
.adm-form .field[hidden] { display: none; }
.adm-form-title { margin: 10px 0 0; font-size: 1.2rem; }
.adm-form input[type='checkbox'] { justify-self: start; width: 20px; height: 20px; }
.adm-quote-box { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--royal-deep); color: #eef0f6; }
.adm-quote-box .adm-sub { margin: 0; color: var(--silver-hi); }
.adm-quote-box strong { font: 600 2rem/1.1 var(--display); color: #fff; }
.adm-quote-box .fine { margin: 0; color: #b9c0d3; }
.adm-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.adm-form-actions .form-error { margin: 0; }
.adm-link { width: 100%; margin: 8px 0 14px; font-size: 0.9rem; }
.adm-code { margin: 12px 0 16px; font: 600 2.4rem/1 var(--sans); letter-spacing: 0.14em; text-align: center; padding: 20px; border-radius: var(--r-lg); background: var(--brushed); box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 900px) { .adm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .adm-meters, .adm-form { grid-template-columns: 1fr; } }

/* ---- Contract ---------------------------------------------------------------------------- */
.ct { max-width: 820px; margin: 0 auto; padding: 40px var(--pad) 80px; }
.ct-head { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.ct-kicker { margin: 0 0 10px; color: var(--gold-ink); font-weight: 500; }
.ct-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.ct-lead { margin: 12px 0 0; color: var(--ink-2); font-size: 1.05rem; line-height: 1.6; }
.ct-section { padding: 22px 0; border-bottom: 1px solid var(--line); }
.ct-section h2 { font-size: 1.4rem; margin: 0 0 10px; }
.ct-section p { margin: 0; color: var(--ink-2); line-height: 1.7; }
.ct-order { display: grid; gap: 0; margin: 0; }
.ct-order div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.ct-order div:first-child { border-top: 0; }
.ct-order dt { color: var(--muted); }
.ct-order dd { margin: 0; }
.ct-sign { margin-top: 28px; padding: 26px; border-radius: var(--r-xl); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-lift); }
.ct-sign h2 { font-size: 1.6rem; margin: 0 0 14px; }
.ct-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
.ct-agree { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); line-height: 1.5; }
.ct-agree input { margin-top: 4px; }
.ct-form .button { justify-self: start; }
.ct-form .form-error { grid-column: 1 / -1; margin: 0; }
.ct-form .form-error:empty { display: none; }
@media (max-width: 640px) { .ct-form { grid-template-columns: 1fr; } .ct-order div { grid-template-columns: 1fr; gap: 2px; } }
@media print {
  .no-print, .site-header, .ct-form { display: none !important; }
  body { background: #fff; }
  .ct { padding: 0; max-width: none; }
  .ct-sign { box-shadow: none; padding: 0; }
  .ct-section { break-inside: avoid; }
}
#school-invite { margin: 18px 0; }
.school-invite-form input::placeholder { text-transform: none; letter-spacing: normal; }

/* ---- Roadmap ---------------------------------------------------------------------------- */
.rm-setup { display: grid; gap: 14px; max-width: 760px; padding: clamp(22px, 4vw, 36px); }
.rm-setup h1 { font-size: clamp(2.1rem, 4vw, 2.8rem); }
.rm-lead { margin: 0; color: var(--ink-2); line-height: 1.6; max-width: 62ch; }
.rm-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-top: 6px; }
.rm-goals { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 0; padding: 0; border: 0; }
.rm-goals legend { width: 100%; margin-bottom: 6px; font-weight: 500; }
.rm-goal { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: var(--bg); cursor: pointer; }
.rm-goal:has(input:checked) { background: var(--ink); color: #fff; }
.rm-goal input { accent-color: var(--gold); }
.rm-form .button { justify-self: start; }
.rm-form .form-error { grid-column: 1 / -1; margin: 0; }
.rm-form .form-error:empty { display: none; }
.rm { display: grid; gap: 22px; max-width: 900px; }
.rm-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 12px 28px; align-items: end; }
.rm-head h1 { font-size: clamp(2.2rem, 4vw, 3rem); }
.rm-head .row-actions { grid-column: 1 / -1; }
.rm-progress { display: grid; gap: 8px; }
.rm-progress strong { font-weight: 500; }
.rm-meter { height: 10px; border-radius: 999px; background: var(--pearl-2); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.rm-meter span { display: block; height: 100%; border-radius: 999px; background: var(--gilt); }
.rm-phase { display: grid; gap: 10px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.rm-phase.current { box-shadow: 0 0 0 1.5px var(--gold), var(--shadow); }
.rm-phase-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.rm-phase-head h2 { margin: 0; font-size: 1.5rem; }
.rm-phase-head .fine { margin: 0; }
.rm-steps { list-style: none; margin: 0; padding: 0; display: grid; }
.rm-step { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.rm-step:first-child { border-top: 0; }
.rm-step input[type='checkbox'] { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--ink); }
.rm-step-body { display: grid; gap: 4px; }
.rm-step-body h3 { margin: 0; font: 600 1.2rem/1.25 var(--display); }
.rm-step-body p { margin: 0; color: var(--ink-2); font-size: 0.94rem; line-height: 1.5; }
.rm-step-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.rm-due, .rm-count { padding: 2px 10px; border-radius: 999px; background: var(--bg); color: var(--ink-2); font-size: 0.8rem; font-weight: 500; }
.rm-due.soon { background: var(--gold-50); color: var(--gold-ink); }
.rm-count { background: var(--sapphire-50); color: var(--sapphire-ink); }
.rm-step.done .rm-step-body h3 { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--silver); }
.rm-step.done .rm-due { background: var(--emerald-50); color: var(--emerald-ink); }
.rm-note { margin: 0; }
.home-roadmap { margin: 18px 0; padding: 20px 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.home-roadmap:empty { display: none; }
.rm-home-empty { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.rm-home-empty > .icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--gold-50); color: var(--gold-ink); }
.rm-home-empty h2 { margin: 0; font-size: 1.5rem; }
.rm-home-empty p { margin: 4px 0 0; color: var(--ink-2); }
.rm-home-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rm-home-head h2 { margin: 0; font-size: 1.5rem; }
.rm-home-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; }
.rm-home-list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.rm-home-list li > div { display: grid; gap: 2px; }
.rm-home-list strong { font-weight: 500; }
.rm-home-list .fine { margin: 0; }
@media (max-width: 640px) {
  .rm-form, .rm-head { grid-template-columns: 1fr; }
  .rm-step { grid-template-columns: auto minmax(0, 1fr); }
  .rm-step > .button { grid-column: 2; justify-self: start; }
  .rm-home-empty { grid-template-columns: 1fr; }
  .rm-home-list li { flex-direction: column; align-items: flex-start; }
}

/* ---- Messages from the school (student) ---------------------------------------------------- */
.home-nudges { display: grid; gap: 12px; margin: 18px 0; }
.nudge { display: grid; gap: 8px; justify-items: start; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 4px 0 0 var(--gold), 0 0 0 1px var(--line), var(--shadow); }
.nudge-top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nudge-from { color: var(--gold-ink); font-size: 0.86rem; font-weight: 500; }
.nudge-close { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.nudge-close:hover { background: var(--bg); color: var(--ink); }
.nudge h3 { margin: 0; font-size: 1.35rem; }
.nudge p { margin: 0; color: var(--ink-2); line-height: 1.55; white-space: pre-line; }

/* ---- Messages (staff composer) ------------------------------------------------------------- */
.campus-compose { display: grid; gap: 14px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); max-width: 900px; }
.campus-compose h3 { margin: 6px 0 0; font-size: 1.35rem; }
.compose-who, .compose-what { display: grid; gap: 12px; }
.compose-what { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.compose-what .field:nth-child(1), .compose-what .field:nth-child(2) { grid-column: 1 / -1; }
.compose-what textarea { resize: vertical; }
.compose-chips { margin: 0; padding: 0; border: 0; }
.compose-chips legend { margin-bottom: 8px; font-weight: 500; }
.compose-chips .fine { margin: 6px 0 0; }
.compose-count { margin: 0; padding: 10px 14px; border-radius: var(--r); background: var(--emerald-50); color: var(--emerald-ink); font-weight: 500; justify-self: start; }
.compose-count.warn { background: var(--ruby-50); color: var(--ruby-ink); }
.compose-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.compose-actions .form-error { margin: 0; }
.compose-actions .form-error:empty { display: none; }
.campus-sent { display: grid; gap: 10px; max-width: 900px; }
.campus-sent h3 { margin: 10px 0 0; font-size: 1.35rem; }
.sent-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.sent-row > div { display: grid; gap: 2px; }
.sent-row .fine { margin: 0; }
.sent-stats { display: flex; gap: 18px; margin: 0; }
.sent-stats div { display: grid; gap: 2px; text-align: right; }
.sent-stats dt { color: var(--muted); font-size: 0.78rem; }
.sent-stats dd { margin: 0; font: 600 1.25rem/1 var(--display); font-variant-numeric: lining-nums; }
@media (max-width: 640px) { .compose-what { grid-template-columns: 1fr; } .sent-row { grid-template-columns: 1fr; } .sent-stats div { text-align: left; } }

/* ---- Modern ------------------------------------------------------------------------------------
   One sans (Geist) at every size, deep navy ink, ultramarine for actions, silver only for
   the Pro card and earned offers. Motion answers the pointer: the nav marker slides, cards catch a light,
   numbers count, and Home's scanner sweeps the city. */
html { font-synthesis-style: none; }
body { font: 430 15.5px/1.6 var(--sans); letter-spacing: -0.006em; font-feature-settings: 'tnum' 0; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 620; letter-spacing: -0.022em; line-height: 1.2; }
h1 { font-size: clamp(2rem, 3.5vw, 2.85rem); font-weight: 660; letter-spacing: -0.035em; line-height: 1.06; }
h2 { font-size: 1.32rem; }
h3 { font-size: 1.06rem; }
h4 { font-size: 0.98rem; }
strong, b { font-weight: 600; }
.fine { font-weight: 430; }
.page-head > p:not(.eyebrow-line) { font-size: 1rem; }
.section-title { font-size: 1.15rem; margin: 36px 0 14px; }
.eyebrow-line { color: var(--sapphire); font: 600 0.82rem/1.2 var(--sans); letter-spacing: 0; }
.eyebrow-line::before { width: 18px; background: currentColor; opacity: 0.5; }
::selection { background: var(--sapphire-100); color: var(--ink); }
:focus-visible { outline: 2px solid var(--sapphire); outline-offset: 2px; }
.ring-label strong, .stat strong, .score-text strong, .day-badge, .fix-num, .plan-price, .count, .ws-num { font-variant-numeric: tabular-nums; }
blockquote { font-family: var(--sans); font-style: normal; font-size: 0.95rem; border-left: 2px solid var(--sapphire-100); background: var(--bg); color: var(--ink-2); }

/* Buttons */
.button { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: 10px; font-weight: 560; letter-spacing: -0.005em; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 2px rgba(15, 23, 48, 0.25); }
.button:hover:not(:disabled) { background: #1c2647; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 20px -10px rgba(15, 23, 48, 0.6); }
.button.ghost { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(15, 23, 48, 0.05); }
.button.ghost:hover:not(:disabled) { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--silver), 0 6px 16px -10px rgba(15, 23, 48, 0.35); }
.button.foil, .button.gold { background: var(--sapphire); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(34, 56, 176, 0.4); }
.button.foil:hover:not(:disabled), .button.gold:hover:not(:disabled) { background: var(--sapphire-ink); filter: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 24px -10px rgba(47, 75, 214, 0.75); }
.button.foil::after, .button.gold::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.7s var(--ease); pointer-events: none; }
.button.foil:hover::after, .button.gold:hover::after { transform: translateX(120%); }
.link-button, a { color: var(--sapphire); }
.chip { border: 1px solid var(--line); font-weight: 500; }
.chip:hover { border-color: var(--silver); color: var(--ink); }
.chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
input:not([type='checkbox']):not([type='file']):not([type='radio']), select, textarea { border: 1px solid var(--line); border-radius: 10px; font-weight: 430; box-shadow: 0 1px 2px rgba(15, 23, 48, 0.04); }
input:not([type='checkbox']):focus, select:focus, textarea:focus { border-color: var(--sapphire); box-shadow: 0 0 0 3px var(--sapphire-50); }
input[type='checkbox'], input[type='radio'] { accent-color: var(--sapphire); }
.pro-badge { background: linear-gradient(120deg, #2f4bd6, #6d4fe0); color: #fff; font: 650 0.66rem/1.55 var(--sans); letter-spacing: 0.04em; padding: 1px 8px; box-shadow: none; }
.count { background: var(--pearl-2); color: var(--ink-2); font-weight: 550; }
.avatar { border-radius: 50%; background: var(--ink); color: #fff; font: 600 0.95rem/1 var(--sans); box-shadow: none; }
.toast { background: var(--ink); border-radius: 12px; font-weight: 500; box-shadow: 0 18px 40px -16px rgba(15, 23, 48, 0.6); }

/* Surfaces: one hairline, a quiet shadow, a light that follows the pointer. */
.card-surface, .panel, .card, .result-section, .review-head, .loading-card, .plan, .profile-form, .hero, .coach, .web-more, .starters button, .scout-band, .why-grid article, .ws-intro {
  border-radius: 16px; box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(15, 23, 48, 0.04), 0 12px 32px -24px rgba(15, 23, 48, 0.25);
}
.spot, .card, .tool-tile, .scout-card, .panel { position: relative; isolation: isolate; }
.spot::before, .card::before, .tool-tile::before, .scout-card::before, .panel::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.35s var(--ease);
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(47, 75, 214, 0.075), transparent 65%);
}
.spot:hover::before, .card:hover::before, .tool-tile:hover::before, .scout-card:hover::before, .panel:hover::before { opacity: 1; }
.card { transition: box-shadow 0.25s var(--ease), transform 0.25s var(--glide); }
.card:hover { box-shadow: 0 0 0 1px var(--silver), 0 16px 36px -22px rgba(15, 23, 48, 0.4); }
.card h3 { font: 600 1.1rem/1.3 var(--sans); letter-spacing: -0.015em; }

/* Top bar (desktop): the sidebar becomes a glass bar with a sliding marker. */
.brand { gap: 10px; color: var(--ink); font: 660 1.1rem/1 var(--sans); letter-spacing: -0.025em; text-decoration: none; }
.brand-mark { position: relative; display: inline-grid; width: 30px; height: 30px; border-radius: 9px; background: none; box-shadow: 0 4px 12px -5px rgba(15, 23, 48, 0.55); transform: none; filter: none; }
.brand-mark::before, .brand-mark::after { content: none; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.mark-door { transform-box: fill-box; transform-origin: 0% 50%; transition: transform 0.5s var(--glide); }
.mark-light { transition: filter 0.5s var(--ease); }
.brand:hover .mark-door { transform: scaleX(0.6); }
.brand:hover .mark-light { filter: brightness(1.12); }
.brand-mark.swing .mark-door { animation: door-swing 1s var(--glide); }
@keyframes door-swing { 0% { transform: none; } 40% { transform: scaleX(0.45); } 100% { transform: none; } }

@media (min-width: 901px) {
  .app-body { display: block; background: var(--bg); }
  .sidebar {
    position: sticky; top: 0; z-index: 40; height: 64px; width: 100%; flex-direction: row; align-items: center; gap: 26px; overflow: visible;
    padding: 0 max(var(--pad), calc((100vw - 1180px) / 2 + var(--pad))); background: rgba(245, 246, 249, 0.78); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
    border-right: 0; border-bottom: 1px solid rgba(15, 23, 48, 0.07); color: var(--ink);
  }
  .sidebar .brand { padding: 0; color: var(--ink); }
  .side-nav { position: relative; display: flex; align-items: center; gap: 2px; }
  .side-nav a { position: relative; z-index: 1; gap: 6px; padding: 7px 12px; border-radius: 9px; background: none; color: var(--ink-2); font-size: 0.9rem; font-weight: 500; white-space: nowrap; box-shadow: none; transition: color 0.2s; }
  .side-nav a .icon { display: none; }
  .side-nav a:hover { background: none; color: var(--ink); }
  .side-nav a:active { transform: none; }
  .side-nav a[aria-current='page'] { background: none; color: var(--ink); font-weight: 600; box-shadow: none; }
  .side-nav .count, .side-nav .pro-badge { margin-left: 2px; }
  .side-nav .count { min-width: 20px; height: 20px; font-size: 0.72rem; }
  .side-nav a[aria-current='page'] .count { background: var(--pearl-2); color: var(--ink-2); }
  .nav-marker { position: absolute; left: 0; top: 0; z-index: 0; height: 100%; border-radius: 9px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 2px 6px -2px rgba(15, 23, 48, 0.12); transition: transform 0.5s var(--glide), width 0.5s var(--glide); }
  .side-foot { flex-direction: row; align-items: center; gap: 8px; margin: 0 0 0 auto; }
  .sidebar .me { gap: 8px; padding: 3px 12px 3px 3px; border-radius: 999px; background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
  .sidebar .me:hover, .sidebar .me[aria-current='page'] { background: var(--surface); box-shadow: 0 0 0 1px var(--silver); }
  .sidebar .me .avatar { width: 30px; height: 30px; font-size: 0.85rem; }
  .sidebar .me-text { display: flex; align-items: baseline; gap: 6px; }
  .sidebar .me-text strong { max-width: 120px; font-size: 0.88rem; font-weight: 550; }
  .sidebar .me-text small { color: var(--muted); font-size: 0.78rem; font-weight: 500; }
  .sidebar .account-button { padding: 7px 12px; border-radius: 9px; background: none; color: var(--ink-2); font-size: 0.88rem; font-weight: 500; box-shadow: none; }
  .sidebar .account-button:hover { background: rgba(15, 23, 48, 0.05); color: var(--ink); }
  .sidebar .account-button:not(.signed-in) { background: var(--ink); color: #fff; }
  .page { padding-top: 30px; }
}
@media (min-width: 901px) {
  .side-foot { display: flex; flex-wrap: nowrap; }
  .sidebar .account-button { white-space: nowrap; }
  .sidebar .me-text { white-space: nowrap; }
  .sidebar .me-text strong { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
  .side-nav { flex: 0 1 auto; min-width: 0; }
}
@media (min-width: 901px) and (max-width: 1279px) {
  .sidebar { gap: 16px; }
  .side-nav a { padding: 7px 10px; font-size: 0.87rem; }
  .sidebar .me-text small { display: none; }
}
@media (min-width: 901px) and (max-width: 1179px) {
  .sidebar .me-text { display: none; }
  .sidebar .me { padding: 3px; }
}
/* Narrow desktops and tablets in landscape: icons only, names on hover. */
@media (min-width: 901px) and (max-width: 1099px) {
  .sidebar { gap: 12px; }
  .side-nav a { gap: 0; padding: 8px 10px; font-size: 0; }
  .side-nav a .icon { display: inline-grid; width: 20px; height: 20px; }
  .side-nav a .pro-badge { display: none; }
  .side-nav .count { margin-left: 4px; font-size: 0.7rem; }
}

/* Home hero: dark, alive, and about internships. */
.welcome {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr); gap: clamp(20px, 3vw, 44px); align-items: center;
  padding: clamp(26px, 4vw, 48px); border-radius: 24px; background: #0b1230; color: #e8ecf8; box-shadow: 0 30px 60px -36px rgba(9, 15, 38, 0.8);
}
.welcome::before {
  content: ''; position: absolute; inset: -30%; z-index: -2;
  background: radial-gradient(35% 45% at 25% 30%, rgba(47, 75, 214, 0.45), transparent 70%), radial-gradient(30% 40% at 80% 70%, rgba(95, 120, 255, 0.28), transparent 70%), radial-gradient(40% 50% at 60% 10%, rgba(30, 45, 120, 0.6), transparent 70%);
  animation: aurora 22s ease-in-out infinite alternate; filter: blur(10px);
}
.welcome::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(70% 90% at 75% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(70% 90% at 75% 40%, #000 20%, transparent 75%);
}
@keyframes aurora { 0% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(4%, -3%) rotate(6deg); } 100% { transform: translate(-3%, 4%) rotate(-4deg); } }
.welcome > * { position: relative; }
.welcome h1 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.welcome-date { margin-bottom: 8px; color: #8f9bc4; font-weight: 500; font-size: 0.92rem; letter-spacing: 0; opacity: 1; }
#home-summary { max-width: 52ch; margin-top: 12px; color: #b9c2de; font-size: 1.04rem; opacity: 1; }
.welcome-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 18px; }
.welcome-links .link-button { color: #cdd5f2; font-weight: 500; }
.welcome-links .link-button:hover { color: #fff; }
.welcome-links .link-button .icon { width: 18px; height: 18px; color: #8f9bc4; }
.ready-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 12px; border-radius: 999px; color: #b9c2de; font-size: 0.86rem; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); transition: background 0.2s; }
.ready-chip strong { color: #fff; font-variant-numeric: tabular-nums; }
.ready-chip:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.welcome :focus-visible { outline-color: #9db0ff; }

.home-scout { display: grid; gap: 10px; margin-top: 24px; padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.045); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09); color: #e8ecf8; backdrop-filter: blur(6px); }
.home-scout-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.home-scout-title { display: flex; align-items: center; gap: 8px; color: #fff; font: 600 0.92rem/1.2 var(--sans); }
.home-scout-title .icon { width: 20px; height: 20px; padding: 0; border-radius: 0; background: none; color: #9db0ff; }
.home-scout-lead { color: #98a3c6; font-size: 0.9rem; }
.home-scout .free-badge { background: rgba(157, 176, 255, 0.14); color: #c7d2ff; box-shadow: none; }
.home-scout-form { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.1fr) minmax(0, 1fr) auto; }
.home-scout-form .field-label { color: #aab4d4; font-size: 0.84rem; font-weight: 500; }
.home-scout-form input, .home-scout-form select { background: rgba(255, 255, 255, 0.07) !important; border: 1px solid rgba(255, 255, 255, 0.13) !important; color: #fff; box-shadow: none; }
.home-scout-form input::placeholder { color: rgba(255, 255, 255, 0.62); opacity: 1; }
.home-scout-form input:focus, .home-scout-form select:focus { border-color: #8ea2ff !important; box-shadow: 0 0 0 3px rgba(142, 162, 255, 0.2) !important; }
.home-scout-form select option { color: var(--ink); background: #fff; }
.welcome .button.foil { background: var(--sapphire); color: #fff; }

.welcome-art { position: relative; display: grid; place-items: center; height: auto; perspective: none; }
.scan { position: relative; display: grid; gap: 12px; justify-items: center; width: min(100%, 380px); margin: 0; }
.scan-canvas { width: 100%; aspect-ratio: 1; cursor: crosshair; touch-action: pan-y; }
.scan-tip { position: absolute; left: 0; top: 0; translate: -50% calc(-100% - 14px); padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.95); color: var(--ink); font-size: 0.8rem; font-weight: 550; white-space: nowrap; pointer-events: none; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.5); }
.scan-legend { display: flex; gap: 18px; color: #98a3c6; font-size: 0.85rem; }
.scan-legend strong { color: #fff; font-variant-numeric: tabular-nums; }
.scan-legend .open::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #e9eeff; box-shadow: 0 0 10px rgba(130, 160, 255, 0.9); }

/* Home tiles and panels */
.actions-grid { gap: 12px; }
.action-tile, .tool-tile { gap: 3px; padding: 18px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(15, 23, 48, 0.04); transition: transform 0.3s var(--glide), box-shadow 0.3s var(--ease); }
.action-tile:hover, .tool-tile:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--silver), 0 18px 36px -24px rgba(15, 23, 48, 0.45); }
.action-tile > .icon, .tool-tile > .icon { width: 40px; height: 40px; padding: 10px; margin-bottom: 12px; border-radius: 11px; background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); transition: background 0.3s, color 0.3s; }
.action-tile:hover > .icon, .tool-tile:hover > .icon { background: var(--sapphire); color: #fff; box-shadow: none; }
.action-tile strong, .tool-tile strong { font: 600 1.02rem/1.3 var(--sans); letter-spacing: -0.015em; }
.action-tile span:not(.icon):not(.pro-badge), .tool-tile span:not(.icon):not(.pro-badge) { color: var(--muted); font-size: 0.88rem; }
.action-tile .pro-badge, .tool-tile .pro-badge { top: 16px; right: 16px; }
.violet, .sky, .sun, .mint, .coral, .lilac { background: var(--surface); }
.tool-tile.violet > .icon, .tool-tile.sky > .icon, .tool-tile.sun > .icon, .tool-tile.mint > .icon, .tool-tile.coral > .icon, .tool-tile.lilac > .icon { color: var(--ink); }
.tool-tile.ink, .tool-head.ink { background: #0b1230; }
.tool-tile.ink > .icon, .tool-head.ink .tool-icon { background: var(--sapphire); color: #fff; box-shadow: none; }
.home-grid { gap: 14px; margin-top: 28px; }
.panel { padding: 20px; }
.panel-head h2 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.panel-head h2 .icon, .stat .icon, .result-section h3 .icon, .empty-result .icon, .coach-empty .icon { color: var(--sapphire); }
.stat { border-radius: 12px; background: var(--bg); transition: transform 0.25s var(--glide); }
.stat:hover { transform: translateY(-2px); }
.stat strong { font: 650 1.75rem/1.1 var(--sans); letter-spacing: -0.03em; }
.stat span:not(.icon) { font-weight: 500; }
.steps-list .step { background: var(--bg); font-weight: 500; }
.steps-list .step .icon:first-child { color: var(--sapphire); }
.day-badge { font: 600 0.82rem/1.1 var(--sans); }

/* Discover */
.sentence { font: 520 clamp(1.35rem, 2.4vw, 1.85rem)/1.55 var(--sans); letter-spacing: -0.025em; }
.slot { font-style: normal; color: var(--sapphire); border-bottom: 2px solid var(--sapphire-100); border-radius: 0; transition: border-color 0.2s, background 0.2s; }
.slot:hover, .slot[aria-expanded='true'] { border-bottom-color: var(--sapphire); background: var(--sapphire-50); border-radius: 6px 6px 0 0; }
.slot-field input:not([type='checkbox']) { font-style: normal; border-bottom: 2px dashed var(--line); }
.go { background: var(--sapphire); }
.match-gold { background: var(--sapphire-50); color: var(--sapphire-ink); box-shadow: inset 0 0 0 1px var(--sapphire-100); }
.match-gold::before { content: '● '; }

/* Plans */
.plan h3 { font-size: 1.5rem; }
.plan-silver { background: var(--surface); }
.plan-gold, .plan-pro, .lite-upsell { background: #0b1230; color: #e8ecf8; box-shadow: 0 30px 60px -36px rgba(9, 15, 38, 0.8); }
.plan-gold h3, .lite-upsell h3, .plan-gold .link-button, .plan-gold a:not(.button) { color: #fff; }
.plan-gold li::after { border-color: #9db0ff; }
.plan-gold li::before { background: rgba(157, 176, 255, 0.14); }
.plan-chip.on, .tag { background: var(--sapphire); color: #fff; }
.home-scout-form input, .home-scout-form select { border-color: rgba(255, 255, 255, 0.13); }

/* Applications workspace on the new palette */
.ws-head { background: #0b1230; }
.ws-step.done .ws-num { background: var(--sapphire); color: #fff; box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  .welcome::before { animation: none; }
  .mark-door { animation: none !important; transition: none; }
  .nav-marker { transition: none; }
}
@media (max-width: 900px) {
  .app-body { background: var(--bg); }
  .topbar { background: rgba(245, 246, 249, 0.86); border-bottom: 1px solid rgba(15, 23, 48, 0.07); }
  .topbar .brand { color: var(--ink); }
  .tabbar { border-radius: 18px; }
  .tabbar a[aria-current='page'] { background: var(--ink); color: #fff; box-shadow: none; }
  .welcome { grid-template-columns: 1fr; border-radius: 20px; }
  .welcome-art { order: 2; }
  .scan { width: min(100%, 300px); }
  .home-scout-form { grid-template-columns: 1fr 1fr; }
  .home-scout-form > label:first-child, .home-scout-form .button { grid-column: 1 / -1; }
  .welcome h1 { font-size: 2.3rem; }
}
@media (max-width: 560px) {
  .welcome-art { display: none; }
}

/* ---- Applications: next step on each card, and the workspace ------------------------------ */
.app-open { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 0.86rem; font-weight: 600; text-decoration: none; transition: background 0.15s; }
.app-open:hover { background: var(--royal-hover); }
.app-open .go-arrow { margin-left: auto; width: 16px; height: 16px; }
.app-open.quiet { background: var(--bg); color: var(--ink); }
.app-open.quiet:hover { background: var(--pearl-2); }
.toast-action { color: #fff; text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; white-space: nowrap; }

.workspace { display: grid; gap: 18px; max-width: 900px; }
.ws-head { display: grid; gap: 18px; padding: clamp(20px, 3vw, 30px); border-radius: var(--r-xl); background: var(--royal-deep); color: #eef0f6; box-shadow: 0 0 0 1px var(--royal-edge), var(--shadow-lift); }
.ws-head h1 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); overflow-wrap: anywhere; }
.ws-head .eyebrow-line { color: #aab2c8; }
.ws-title { display: grid; gap: 10px; }
.ws-head .chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ws-head .link-button { color: #dfe3ec; }
.ws-head .due-chip { background: rgba(255, 255, 255, 0.1); color: #fff; }
.stage-select { width: auto !important; padding: 7px 34px 7px 12px !important; border-radius: 999px !important; font-size: 0.88rem !important; font-weight: 600 !important; }

.ws-intro { display: grid; gap: 8px; justify-items: start; padding: 20px 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.ws-intro h2 { font-size: 1.35rem; }
.ws-step { display: grid; gap: 14px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); scroll-margin-top: 20px; }
.ws-step.now { box-shadow: 0 0 0 1.5px var(--ink), var(--shadow-lift); }
.ws-step.done { background: linear-gradient(var(--surface), var(--surface)) padding-box; }
.ws-step-head { display: flex; gap: 14px; align-items: flex-start; }
.ws-step-head h2 { font-size: 1.45rem; }
.ws-num { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--bg); color: var(--ink); font: 700 1.05rem/1 var(--display); box-shadow: inset 0 0 0 1px var(--silver); font-variant-numeric: lining-nums; }
.ws-step.now .ws-num { background: var(--ink); color: #fff; box-shadow: none; }
.ws-step.done .ws-num { background: var(--gilt); color: var(--on-foil); box-shadow: inset 0 0 0 1px rgba(122, 132, 160, 0.5); }
.ws-num .icon { width: 18px; height: 18px; }
.ws-step h3 { font-size: 1.1rem; }
.ws-sub { margin-top: 4px; color: var(--ink-2); }
.ai-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ai-row .pro-badge { margin-left: 4px; }
.cost-chip { padding: 3px 10px; border-radius: 999px; background: var(--bg); color: var(--muted); font-size: 0.8rem; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.guide-list { display: grid; gap: 6px; margin: 0; padding-left: 20px; color: var(--ink-2); }
.guide-list li::marker { color: var(--silver); }
.with-pro { padding: 12px 14px; border-radius: 10px; background: var(--bg); color: var(--ink-2); font-size: 0.92rem; box-shadow: inset 3px 0 0 var(--silver); }
.with-pro strong { color: var(--ink); }
.ws-verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ws-checks, .ws-how, .ws-kit { display: grid; gap: 10px; }
.ws-how .segmented { margin-top: 2px; }
.seg[aria-pressed='true'] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--silver), var(--shadow); }
.ws-score { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.ws-score strong { font: 700 2.4rem/1 var(--display); font-variant-numeric: lining-nums; }
.ws-fixes { display: grid; gap: 12px; margin: 0; padding-left: 20px; }
.ws-fixes li { display: grid; gap: 4px; }
.ws-fixes del { color: var(--muted); text-decoration-color: var(--ruby); }
.ws-fixes ins { text-decoration: none; color: var(--ink); font-weight: 500; }
.ws-fixes small { color: var(--muted); }
.ws-email { display: grid; gap: 8px; padding: 16px; border-radius: 12px; background: var(--bg); }
.ws-email-subject { font-weight: 600; }
.copy-text { white-space: pre-wrap; color: var(--ink-2); }
.copy-block { display: grid; gap: 6px; padding: 12px 14px; border-radius: 10px; background: var(--bg); }
.copy-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ws-done-line { font-weight: 600; color: var(--emerald-ink); }
.answer-card { display: grid; gap: 8px; }
.answer-card .button { justify-self: start; }
.ws-step > .button, .ws-step > .link-button, .ws-step > a.button { justify-self: start; }
.ws-lab { display: grid; gap: 18px; }

/* One editor for every email */
.mail-editor { display: grid; gap: 12px; }
.gmail-send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 4px; }
.attach { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; color: var(--ink); font-weight: 500; font-size: 0.9rem; cursor: pointer; box-shadow: inset 0 0 0 1px var(--silver); }
.attach:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.attach:focus-within { outline: 3px solid var(--sapphire); outline-offset: 2px; }
.sent-row .link-button { font-weight: 500; }

@media (max-width: 700px) {
  .ws-rail { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ws-rail a { font-size: 0; gap: 0; }
  .ws-step { padding: 18px; }
}
@media (min-width: 901px) { .actions-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.home-scout-form { align-items: end; }
.home-scout-form .field { align-content: end; }

/* Filled-in application form */
.form-fill { display: grid; gap: 18px; }
.ff-head { display: grid; gap: 8px; }
.ff-tally { display: flex; flex-wrap: wrap; gap: 8px; }
.ff-tally span { padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--ink-2); font-size: 0.82rem; font-weight: 550; box-shadow: inset 0 0 0 1px var(--line); }
.ff-tally .ok { background: var(--sapphire-50); color: var(--sapphire-ink); box-shadow: none; }
.ff-tally .you { background: #fff6e5; color: #7a4b00; box-shadow: none; }
.ff-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: ff; }
.ff-field { counter-increment: ff; display: grid; gap: 8px; padding: 14px 14px 14px 48px; position: relative; border-radius: 12px; background: var(--bg); transition: background 0.2s, box-shadow 0.2s; }
.ff-field::before { content: counter(ff); position: absolute; left: 14px; top: 14px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); color: var(--muted); font-size: 0.74rem; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); font-variant-numeric: tabular-nums; }
.ff-field:focus-within { background: var(--surface); box-shadow: 0 0 0 1px var(--sapphire-100), 0 8px 20px -14px rgba(15, 23, 48, 0.4); }
.ff-field.you { background: #fffaf0; box-shadow: inset 3px 0 0 #f0b44c; }
.ff-field.file { background: transparent; box-shadow: inset 0 0 0 1px dashed var(--line); border: 1px dashed var(--silver); }
.ff-label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ff-label strong { font-size: 0.94rem; font-weight: 600; }
.ff-label .req { color: var(--ruby); }
.ff-badge { padding: 2px 8px; border-radius: 999px; background: #fdeccb; color: #7a4b00; font-size: 0.72rem; font-weight: 650; }
.ff-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.ff-input .button { align-self: start; }
.ff-cover, .ff-how { display: grid; gap: 10px; }
.ff-steps { display: grid; gap: 6px; margin: 0; padding-left: 22px; color: var(--ink-2); }
.ff-steps li::marker { color: var(--sapphire); font-weight: 600; }
@media (max-width: 640px) {
  .ff-input { grid-template-columns: 1fr; }
  .ff-field { padding-left: 14px; padding-top: 44px; }
}

/* ---- Guided steps ---------------------------------------------------------------------------- */
.ws-bar { position: sticky; top: 64px; z-index: 20; display: grid; gap: 8px; margin: 0 -8px; padding: 12px 8px; background: rgba(245, 246, 249, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ws-rail { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; }
.ws-rail::before { content: ''; position: absolute; left: 10%; right: 10%; top: 15px; height: 2px; border-radius: 2px; background: var(--line); }
.ws-rail-fill { position: absolute; left: 10%; top: 15px; height: 2px; max-width: 80%; border-radius: 2px; background: var(--sapphire); transition: width 0.6s var(--glide); }
.ws-dot { position: relative; display: grid; justify-items: center; gap: 6px; padding: 0 4px; border: 0; background: none; color: var(--muted); font: 500 0.8rem/1.25 var(--sans); text-align: center; cursor: pointer; }
.ws-dot-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 1px var(--line); transition: transform 0.25s var(--glide), background 0.2s, box-shadow 0.2s; }
.ws-dot-n .icon { width: 16px; height: 16px; }
.ws-dot:hover .ws-dot-n { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--silver), 0 6px 14px -8px rgba(15, 23, 48, 0.4); }
.ws-dot.done .ws-dot-n { background: var(--sapphire); color: #fff; box-shadow: none; }
.ws-dot.open { color: var(--ink); font-weight: 650; }
.ws-dot.open .ws-dot-n { box-shadow: 0 0 0 2px var(--ink), 0 0 0 6px rgba(47, 75, 214, 0.12); }
.ws-dot.done.open .ws-dot-n { box-shadow: 0 0 0 2px var(--sapphire-ink), 0 0 0 6px rgba(47, 75, 214, 0.15); }
.ws-status { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 6px; color: var(--muted); font-size: 0.86rem; }
.ws-status strong { color: var(--ink); }
.ws-pro-link { margin-left: 10px; font-weight: 600; }

.ws-step { gap: 0; padding: 0; overflow: hidden; transition: box-shadow 0.3s var(--ease); }
.ws-step-head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px 20px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.ws-step-head:hover { background: rgba(15, 23, 48, 0.02); }
.ws-step-title { display: grid; gap: 2px; min-width: 0; flex: 1; }
.ws-h { font-size: 1.12rem; font-weight: 640; letter-spacing: -0.02em; color: var(--ink); }
.ws-step.closed .ws-h { font-size: 1rem; font-weight: 600; }
.ws-step.closed { box-shadow: 0 0 0 1px var(--line); }
.ws-step.closed .ws-num { width: 30px; height: 30px; font-size: 0.9rem; }
.ws-step.closed .fine { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-chev { flex: none; width: 18px; height: 18px; color: var(--muted); transform: rotate(90deg); transition: transform 0.3s var(--glide); }
.ws-chev.up { transform: rotate(-90deg); }
.ws-step-body { display: grid; gap: 14px; padding: 0 20px 20px 70px; animation: step-open 0.35s var(--ease); }
@keyframes step-open { from { opacity: 0; transform: translateY(-6px); } }
.ws-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.ws-foot .button .icon { order: 2; }
.ws-step.now .ws-num { background: var(--ink); color: #fff; box-shadow: none; }
.ws-step.done.now .ws-num { background: var(--sapphire); }

.ws-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 16px; margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--bg); }
.ws-facts dt { color: var(--muted); font-size: 0.88rem; font-weight: 550; padding-top: 2px; }
.ws-facts dd { display: grid; gap: 8px; margin: 0; justify-items: start; }
.ws-none { color: var(--ink-2); font-size: 0.92rem; }
.ws-email-found { font-weight: 600; }
.ws-pick { width: auto !important; max-width: 100%; padding: 6px 10px !important; font-size: 0.85rem !important; }
.ws-manual { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; width: 100%; }
.ws-manual > .fine { grid-column: 1 / -1; }
.ws-manual input { padding: 9px 12px !important; }

.resume-file { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 14px 16px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.resume-file.has { box-shadow: 0 0 0 1px var(--sapphire-100); background: linear-gradient(180deg, #fff, var(--sapphire-50)); }
.rf-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.resume-file.has .rf-icon { background: var(--sapphire); color: #fff; box-shadow: none; }
.rf-text { display: grid; gap: 1px; flex: 1; min-width: 160px; }
.rf-text strong { overflow-wrap: anywhere; }
.rf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.resume-file label.button { cursor: pointer; }
.resume-file-slot { display: grid; gap: 6px; }
.field-title { font-weight: 600; font-size: 0.92rem; color: var(--ink-2); }
.ws-resume-text { display: grid; gap: 10px; }
.ws-resume-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.ws-resume-editor { display: grid; gap: 10px; }
.ws-applied { color: var(--emerald-ink); font-size: 0.85rem; font-weight: 600; }
.ws-fixes li .button { justify-self: start; margin-top: 2px; }

@media (max-width: 900px) {
  .ws-bar { top: 62px; }
}
@media (max-width: 700px) {
  .ws-dot-label { display: none; }
  .ws-step-body { padding: 0 16px 18px; }
  .ws-step-head { padding: 16px; }
  .ws-facts { grid-template-columns: 1fr; }
}
.workspace { margin: 0 auto; }
.ws-link-found { font-weight: 600; overflow-wrap: anywhere; }

/* ---- Color on result cards ------------------------------------------------------------------- */
.card { border-top: 0; }
.card::after { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--kind-color, var(--line)); transition: top 0.3s var(--glide), bottom 0.3s var(--glide); }
.card:hover::after { top: 0; bottom: 0; border-radius: 16px 0 0 16px; }
.kind-research { --kind-color: #6d4fe0; --kind-bg: #f1edfd; --kind-ink: #4b2fb8; }
.kind-internship { --kind-color: #0f9a7a; --kind-bg: #e2f6f0; --kind-ink: #0a6b55; }
.kind-lab { --kind-color: #2f4bd6; --kind-bg: #e9eeff; --kind-ink: #2238b0; }
.kind-other, .kind-program { --kind-color: #d4890f; --kind-bg: #fff3dc; --kind-ink: #8a5600; }
.card .kind { background: var(--kind-bg, var(--bg)); color: var(--kind-ink, var(--ink-2)); font-weight: 600; }
.card .season { background: #e6f4fc; color: #0b6596; font-weight: 600; }
.match { font-weight: 600; letter-spacing: 0; box-shadow: none; }
.match-platinum { background: linear-gradient(120deg, #2f4bd6, #6d4fe0); color: #fff; }
.match-platinum::before { content: '◆ '; color: #cdd6ff; }
.match-gold { background: linear-gradient(120deg, #f7cd6b, #e7a73a); color: #4a3000; box-shadow: none; }
.match-gold::before { content: '★ '; }
.match-silver { background: #eef0f5; color: var(--ink-2); }
.signal.open mark { position: relative; padding-left: 22px; background: #e2f6ec; color: #0b6b44; }
.signal.open mark::before { content: ''; position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #13a463; box-shadow: 0 0 0 0 rgba(19, 164, 99, 0.5); animation: live 2s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(19, 164, 99, 0.5); } 70%, 100% { box-shadow: 0 0 0 7px rgba(19, 164, 99, 0); } }
.signal.closed mark { background: #fdeaea; color: #a12a2a; }
.meta-chip { transition: transform 0.2s var(--glide); }
.meta-chip.ok { background: #e2f6ec; color: #0b6b44; box-shadow: none; }
.meta-chip.pay { background: #fff3dc; color: #8a5600; }
.meta-chip.hot { background: #fdeaea; color: #a12a2a; box-shadow: none; }
.scout-card { border-left: 3px solid #0f9a7a; }
.fit-badge.high { background: linear-gradient(135deg, #0f9a7a, #13b38c); color: #fff; }
.fit-badge.mid { background: #e9eeff; color: #2238b0; }

/* ---- Entrances ---------------------------------------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(0.985); } }
.view:not([hidden]) :is(.actions-grid, .home-grid, .tool-grid, .board, .scout-list, .why-grid, .plans) > *,
.cards > .card { animation: rise 0.55s var(--glide) both; }
:is(.actions-grid, .home-grid, .tool-grid, .board, .scout-list, .why-grid, .plans, .cards) > :nth-child(2) { animation-delay: 0.05s; }
:is(.actions-grid, .home-grid, .tool-grid, .board, .scout-list, .why-grid, .plans, .cards) > :nth-child(3) { animation-delay: 0.1s; }
:is(.actions-grid, .home-grid, .tool-grid, .board, .scout-list, .why-grid, .plans, .cards) > :nth-child(4) { animation-delay: 0.15s; }
:is(.actions-grid, .home-grid, .tool-grid, .board, .scout-list, .why-grid, .plans, .cards) > :nth-child(5) { animation-delay: 0.2s; }
:is(.actions-grid, .home-grid, .tool-grid, .board, .scout-list, .why-grid, .plans, .cards) > :nth-child(6) { animation-delay: 0.25s; }
:is(.actions-grid, .home-grid, .tool-grid, .board, .scout-list, .why-grid, .plans, .cards) > :nth-child(n + 7) { animation-delay: 0.3s; }
.ws-step { animation: rise 0.45s var(--glide) both; }
.ws-step:nth-of-type(2) { animation-delay: 0.04s; }
.ws-step:nth-of-type(3) { animation-delay: 0.08s; }
.ws-step:nth-of-type(4) { animation-delay: 0.12s; }
.ws-step:nth-of-type(5) { animation-delay: 0.16s; }
/* Page changes slide and fade (browsers with view transitions). */
::view-transition-old(root) { animation: 0.22s var(--ease) both vt-out; }
::view-transition-new(root) { animation: 0.38s var(--glide) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
.sidebar { view-transition-name: topbar; }
.tabbar { view-transition-name: tabbar; }

/* ---- Things you can play with ------------------------------------------------------------------ */
.tilt { transform-style: preserve-3d; transition: transform 0.35s var(--glide), box-shadow 0.3s var(--ease); }
.tilt.tilting { transition: transform 0.08s linear, box-shadow 0.3s var(--ease); transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-3px); }
.welcome::after { transform: translate(var(--px, 0px), var(--py, 0px)); transition: transform 0.6s var(--ease); }
.scan-hint { padding: 4px 10px; border-radius: 999px; background: rgba(157, 176, 255, 0.12); color: #c7d2ff; font-size: 0.8rem; font-weight: 550; animation: hint 2.4s ease-in-out infinite; }
@keyframes hint { 50% { opacity: 0.55; } }
.scan-city { color: #fff; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .view:not([hidden]) :is(.actions-grid, .home-grid, .tool-grid, .board, .scout-list, .why-grid, .plans) > *, .cards > .card, .ws-step, .ws-step-body { animation: none; }
  .signal.open mark::before, .scan-hint { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .tilt.tilting { transform: none; }
}
@media (min-width: 901px) {
  .sidebar { padding: 0 max(var(--pad), calc((100vw - 1320px) / 2)); }
  .side-nav { flex: none; }
}
@media (min-width: 901px) and (max-width: 1399px) { .sidebar .me-text small { display: none; } }
.home-scout-form input, .home-scout-form select { color: #fff !important; }
.ws-step-body { grid-template-columns: minmax(0, 1fr); }
.ws-step-body > *, .ws-facts dd, .ws-how { min-width: 0; }
.ws-pick { width: 100% !important; }
@media (max-width: 700px) { .ws-bar { background: rgba(245, 246, 249, 0.97); } }

/* ---- Silver, where it means something -------------------------------------------------------
   The Pro plan is a brushed-metal membership card, members get a silver ring on their avatar,
   and an offer on your board turns silver. A light follows the pointer across the metal. */
:root {
  --metal: radial-gradient(420px circle at var(--mx, 75%) var(--my, -10%), rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 45%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, rgba(20, 30, 60, 0.025) 1px 3px),
    linear-gradient(135deg, #f6f7f9 0%, #d3d8e1 28%, #f1f3f6 50%, #b9c0cd 76%, #e5e8ee 100%);
}
.plans .plan-pro, .plans .plan-gold {
  background: var(--metal); color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 0 0 1px rgba(110, 120, 150, 0.35), 0 34px 60px -34px rgba(15, 23, 48, 0.55);
}
.plans .plan-pro h3, .plans .plan-pro .plan-price { color: var(--ink); }
.plans .plan-pro li { color: var(--ink-2); }
.plans .plan-pro .fine { color: #4d5573; }
.plans .plan-pro li::before { background: rgba(15, 23, 48, 0.07); }
.plans .plan-pro li::after { border-color: var(--ink); }
.plans .plan-pro .link-button, .plans .plan-pro a:not(.button) { color: var(--sapphire-ink); }
.plans .plan-pro .button:not(.ghost) { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -14px rgba(15, 23, 48, 0.8); }
.plans .plan-pro::after {
  content: 'PRO'; position: absolute; top: 22px; right: 24px; font: 800 0.8rem/1 var(--sans); letter-spacing: 0.32em;
  color: rgba(70, 80, 110, 0.55); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}
.plans .plan-pro { position: relative; }
.avatar.member { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px #c3c9d5, 0 0 0 5px rgba(110, 120, 150, 0.35); }
.app-card.earned {
  background: var(--metal); color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 0 0 1px rgba(110, 120, 150, 0.35), 0 16px 30px -20px rgba(15, 23, 48, 0.55);
}
.app-card.earned .app-open { background: var(--ink); }
.home-scout-form input, .home-scout-form select { height: 50px; }

/* ---- Pricing (public /pricing and in-app Plans) ------------------------------------------- */

.pricing { max-width: 1120px; }
.pricing-head { display: grid; gap: 14px; justify-items: center; margin: 18px auto 34px; max-width: 760px; text-align: center; }
.pricing-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.pricing-head p { color: var(--ink-2); font-size: 1.08rem; }
.cycle-toggle { display: inline-flex; gap: 4px; padding: 4px; margin: 6px 0 22px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(15, 23, 48, 0.05); }
.pricing-head .cycle-toggle { margin: 8px 0 0; }
.cycle-toggle button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 560 0.92rem/1 var(--sans); cursor: pointer; transition: background 0.25s var(--ease), color 0.25s; }
.cycle-toggle button[aria-pressed='true'] { background: var(--ink); color: #fff; }
.cycle-toggle .save { padding: 3px 8px; border-radius: 999px; background: #e2f6ec; color: #0b6b44; font-size: 0.74rem; font-weight: 650; }
.cycle-toggle button[aria-pressed='true'] .save { background: rgba(255, 255, 255, 0.16); color: #c9f2dc; }
.price-plans { max-width: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: stretch; }
.price-plans.two { max-width: 900px; }
.price-plans .plan { gap: 16px; padding: 28px; border-radius: 20px; }
.price-plans .plan h3 { font-size: 1.15rem; font-weight: 640; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 0; }
.price strong { font: 680 2.8rem/1 var(--sans); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); font-weight: 500; }
.plans .plan-pro .price span { color: #4d5573; }
.plan-lead { color: var(--ink-2); font-weight: 500; }
.price-plans .plan ul { flex: 1; }
.price-plans .plan > .button, .price-plans .plan .form-actions { margin-top: auto; }
.price-plans .plan > .button { justify-self: stretch; text-align: center; justify-content: center; }
.plan-free, .plan-school { background: var(--surface); }
.plan-school li::before { background: var(--sapphire-50); }
.plan-school li::after { border-color: var(--sapphire); }
.plans .plan-pro .tag { background: var(--ink); color: #fff; }
.price-plans .plan-pro { transform-origin: center; }
@media (min-width: 980px) { .price-plans:not(.two) .plan-pro { margin: -10px 0; padding: 36px 28px; } }

.pricing-section { display: grid; gap: 18px; margin-top: 64px; }
.pricing-section h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.03em; }
.section-copy { display: grid; gap: 6px; }
.section-copy p { color: var(--ink-2); }

.credit-calc { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 28px; align-items: start; padding: 26px; border-radius: 20px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 12px 32px -24px rgba(15, 23, 48, 0.25); }
.cc-head { position: sticky; top: 90px; display: grid; gap: 14px; }
.cc-total { color: var(--muted); font-weight: 500; }
.cc-total strong { display: block; color: var(--ink); font: 700 3.4rem/1 var(--sans); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.cc-bar { position: relative; height: 12px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.cc-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, #2f4bd6, #6d4fe0); transition: width 0.5s var(--glide), background 0.3s; }
.cc-bar.over .cc-fill { background: linear-gradient(90deg, #e7a73a, #d9534f); }
.cc-note { color: var(--ink-2); font-size: 0.92rem; }
.cc-list { display: grid; gap: 4px; }
.cc-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; grid-template-areas: 'name count' 'range range' 'cost cost'; gap: 2px 10px; padding: 10px 12px; border-radius: 12px; cursor: pointer; transition: background 0.2s; }
.cc-row:hover, .cc-row:focus-within { background: var(--bg); }
.cc-name { grid-area: name; font-weight: 560; }
.cc-count { grid-area: count; justify-self: end; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--sapphire-ink); }
.cc-cost { grid-area: cost; color: var(--muted); font-size: 0.8rem; }
.credit-calc .cc-row input[type='range'] { grid-area: range; width: 100%; height: 22px; margin: 4px 0 0; padding: 0; border: 0; background: none; box-shadow: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.cc-row input[type='range']::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--sapphire) var(--pct, 0%), var(--line) var(--pct, 0%)); }
.cc-row input[type='range']::-moz-range-track { height: 6px; border-radius: 999px; background: var(--line); }
.cc-row input[type='range']::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--sapphire); }
.cc-row input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--sapphire), 0 2px 6px rgba(15, 23, 48, 0.25); transition: transform 0.15s var(--glide); }
.cc-row input[type='range']::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--sapphire), 0 2px 6px rgba(15, 23, 48, 0.25); }
.cc-row input[type='range']:active::-webkit-slider-thumb { transform: scale(1.2); }
.cc-row input[type='range']:focus-visible { outline: none; }
.cc-row input[type='range']:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--sapphire), 0 0 0 6px var(--sapphire-100); }
@media (max-width: 760px) { .credit-calc { grid-template-columns: 1fr; padding: 18px; } .cc-head { position: static; } }

.compare-wrap { overflow-x: auto; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.compare th, .compare td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.compare tbody th { font-weight: 520; }
.compare td:last-child { color: var(--sapphire-ink); font-weight: 600; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare tbody tr { transition: background 0.2s; }
.compare tbody tr:hover { background: var(--bg); }

.faq { gap: 8px; max-width: 820px; }
.faq h2 { margin-bottom: 8px; }
.faq details { padding: 16px 20px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: box-shadow 0.2s; }
.faq details[open] { box-shadow: 0 0 0 1px var(--silver), 0 10px 24px -18px rgba(15, 23, 48, 0.4); }
.faq summary { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--sapphire); font-size: 1.3rem; line-height: 1; transition: transform 0.25s var(--glide); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 10px; color: var(--ink-2); }
.pricing-cta { display: grid; gap: 12px; justify-items: center; margin: 72px 0 24px; padding: 48px 24px; border-radius: 24px; background: #0b1230; color: #e8ecf8; text-align: center; }
.pricing-cta h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.pricing-cta p { color: #b9c2de; }
.pricing-cta .button.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.pricing-cta .button:not(.ghost) { background: var(--sapphire); }

.billing-banner { display: flex; align-items: center; gap: 12px; max-width: 900px; margin-bottom: 18px; padding: 14px 18px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.billing-banner.ok { background: #e9f8f0; box-shadow: 0 0 0 1px #bfe7d2; color: #0b4f33; }
.billing-banner.wait { background: var(--sapphire-50); box-shadow: 0 0 0 1px var(--sapphire-100); }
.billing-banner.wait p::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 10px; border: 2px solid var(--sapphire); border-right-color: transparent; border-radius: 50%; vertical-align: -1px; animation: spin 0.8s linear infinite; }
.billing-banner.warn { background: #fff6e5; box-shadow: 0 0 0 1px #f3d9a8; color: #6b4300; }
@keyframes spin { to { transform: rotate(360deg); } }
#view-plans .faq, #view-plans .pricing-section { max-width: 900px; }

/* ---- Standalone pages: same glass top bar as the app ---------------------------------------- */
.site-page { background: var(--bg); }
.site-header { gap: 26px; height: 64px; padding: 0 max(var(--pad), calc((100vw - 1180px) / 2)); background: rgba(245, 246, 249, 0.8); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); border-bottom: 1px solid rgba(15, 23, 48, 0.07); }
.site-header .brand { font-size: 1.1rem; }
.site-header nav { gap: 4px; }
.site-header nav a { padding: 7px 12px; border-radius: 9px; color: var(--ink-2); font-weight: 500; font-size: 0.92rem; }
.site-header nav a:hover { color: var(--ink); background: rgba(15, 23, 48, 0.04); }
.site-header nav a[aria-current='page'] { color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-weight: 600; }
.site-footer { justify-content: flex-start; padding: 28px max(var(--pad), calc((100vw - 1180px) / 2)); border-top: 1px solid var(--line); }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--sapphire); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }
.not-found { display: grid; gap: 16px; justify-items: start; max-width: 640px; padding-top: 12vh; padding-bottom: 14vh; }
.not-found h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.not-found p { color: var(--ink-2); font-size: 1.08rem; }
@media (max-width: 640px) {
  .site-header { gap: 10px; }
  .site-header nav a { padding: 7px 8px; font-size: 0.86rem; }
  .site-header .brand > span:last-child { display: none; }
}

.price.when-season { display: none; }
[data-cycle='season'] .price.when-season { display: flex; }
[data-cycle='season'] .price.when-monthly { display: none; }
.credit-calc .cc-row input[type='range']:focus { border: 0; box-shadow: none; }

/* ---- Account and profile photo ------------------------------------------------------------ */
.avatar { overflow: hidden; }
.avatar.has-photo { background: var(--surface); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.account-card { display: flex; align-items: center; gap: 14px; max-width: 820px; margin: 0 0 18px; padding: 16px 20px; border-radius: var(--r-xl); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.account-card .avatar { width: 44px; height: 44px; font-size: 1.05rem; }
.account-text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.account-text strong { font-weight: 600; }
.account-text small { color: var(--muted); overflow-wrap: anywhere; }
.photo-field { display: flex; align-items: center; gap: 18px; }
.photo-field .avatar { width: 84px; height: 84px; font-size: 2rem; }
.photo-text { display: grid; gap: 6px; }
.photo-text .optional { margin-left: 6px; font-weight: 500; font-size: 0.8rem; color: var(--muted); }
.photo-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-field.busy .avatar { opacity: 0.5; }
.danger-zone { max-width: 820px; margin: 28px 0 0; padding: 20px 24px; border-radius: var(--r-xl); background: var(--surface); box-shadow: 0 0 0 1px var(--ruby-50); }
.danger-zone h2 { margin: 0 0 6px; font-size: 1.05rem; color: var(--ruby-ink); }
.danger-zone p { margin: 0 0 14px; max-width: 64ch; color: var(--muted); }
.confirm-delete { display: grid; gap: 12px; }
.confirm-delete input { text-transform: uppercase; letter-spacing: 0.08em; }
@media (max-width: 640px) {
  .account-card { flex-wrap: wrap; padding: 14px 16px; }
  .account-card .button { width: 100%; }
  .photo-field { align-items: flex-start; }
  .photo-field .avatar { width: 68px; height: 68px; }
}
.confirm-delete { margin-top: 6px; }
.confirm-delete .button.danger { background: var(--ruby); color: #fff; box-shadow: none; }
.confirm-delete .button.danger:disabled { background: var(--ruby-50); color: var(--ruby-ink); opacity: 1; cursor: not-allowed; }
/* Policy pages opened from the phone app: just the page. */
.from-app .site-header nav, .from-app .site-header .account, .from-app .site-footer { display: none; }

/* ---- Email accounts (sign-in dialog) ------------------------------------- */
.auth-panel { margin-top: 6px; }
.auth-form { margin-top: 10px; }
.auth-lead { margin: 0; color: var(--ink-2); }
.auth-field { display: grid; gap: 6px; font-weight: 600; }
.auth-field .fine { font-weight: 400; color: var(--muted); }
.password-box { position: relative; display: block; }
.password-box input { width: 100%; padding-right: 64px; }
.password-box .show-password { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 0.86rem; }
.code-input { letter-spacing: 0.5em; font-size: 1.3rem; text-align: center; font-variant-numeric: tabular-nums; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 0.92rem; }
.auth-links .link-button:disabled { color: var(--muted); text-decoration: none; cursor: default; }

/* ---- Voice search ---------------------------------------------------------- */
.voice-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; min-width: 46px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 600 0.95rem/1 var(--sans); cursor: pointer;
  transition: transform 0.2s var(--glide), box-shadow 0.2s, background 0.2s;
}
.voice-button .icon { width: 19px; height: 19px; }
.voice-button:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(47, 75, 214, 0.22); }
.voice-button:focus-visible { outline: 3px solid rgba(47, 75, 214, 0.45); outline-offset: 2px; }
.voice-button.on-dark { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22); color: #fff; }
.voice-button.on-dark:hover { background: rgba(255, 255, 255, 0.16); box-shadow: 0 0 0 6px rgba(120, 146, 255, 0.14); }
.voice-button.big { position: relative; }
.voice-button.big::after {
  content: ""; position: absolute; inset: -5px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 1.5px rgba(150, 170, 255, 0.45); animation: voice-invite 2.8s ease-out infinite;
}
.voice-button.used { opacity: 0.6; }
.sentence-voice { height: 48px; margin-left: 4px; font-size: 0.95rem; letter-spacing: 0; }
.scout-go { display: flex; gap: 10px; align-items: end; }
.scout-go .button { flex: 1; justify-content: center; }
@keyframes voice-invite { 0% { opacity: 0.9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.18); } }

.voice-overlay {
  position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  display: grid; grid-template-rows: auto 1fr auto; color: #fff;
  background:
    radial-gradient(60% 55% at 50% 42%, rgba(70, 104, 255, 0.32), transparent 70%),
    radial-gradient(90% 80% at 50% 110%, rgba(47, 75, 214, 0.35), transparent 60%),
    linear-gradient(180deg, #0b1438 0%, #070d27 55%, #050919 100%);
  animation: voice-in 0.35s var(--glide, ease) both;
}
.voice-overlay::backdrop { background: #050919; }
html.voice-open { overflow: hidden; }
@keyframes voice-in { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }
.voice-close {
  justify-self: end; margin: 18px 20px 0 0; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.06); color: #fff; display: grid; place-items: center; cursor: pointer;
}
.voice-close:hover { background: rgba(255, 255, 255, 0.14); }
.voice-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 0 24px; text-align: center; }
.voice-kicker { margin: 18px 0 0; color: #9fb0ff; font: 600 0.82rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
.voice-question { margin: 0; max-width: 18ch; font: 600 clamp(1.7rem, 4.2vw, 2.7rem)/1.15 var(--sans); letter-spacing: -0.03em; color: #fff; }
.voice-heard { min-height: 1.6em; max-width: 46ch; margin: 4px 0 0; color: #dfe5ff; font-size: 1.12rem; line-height: 1.5; }
.voice-hint { margin: 0; color: #8f9cc9; font-size: 0.95rem; }
.voice-foot { margin: 0 0 22px; text-align: center; color: #7f8bb8; font-size: 0.86rem; }
.voice-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.voice-overlay .voice-primary { background: #fff; color: #0b1438; box-shadow: none; }
.voice-overlay .voice-primary:hover:not(:disabled) { background: #eef1ff; }
.voice-overlay .voice-ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); background: transparent; }
.voice-overlay .voice-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); }
.voice-result { display: grid; gap: 12px; justify-items: center; }
.voice-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0; padding: 0; list-style: none; max-width: 640px; }
.voice-chips li { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); font-weight: 600; animation: chip-in 0.4s var(--glide, ease) both; }
.voice-chips li:nth-child(2) { animation-delay: 0.05s; } .voice-chips li:nth-child(3) { animation-delay: 0.1s; } .voice-chips li:nth-child(4) { animation-delay: 0.15s; } .voice-chips li:nth-child(n+5) { animation-delay: 0.2s; }
@keyframes chip-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.voice-reminder { max-width: 52ch; margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(255, 209, 102, 0.12); border: 1px solid rgba(255, 209, 102, 0.35); color: #ffe7ad; font-size: 0.95rem; }

/* The orb: breathes while Internium speaks, ripples while it listens, spins while it thinks. */
.voice-orb { position: relative; width: 168px; height: 168px; display: grid; place-items: center; }
.voice-core {
  position: relative; z-index: 2; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #7f9bff, #2f4bd6 58%, #1c2f99);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset, 0 18px 50px rgba(47, 75, 214, 0.55);
  transition: transform 0.25s var(--glide, ease);
}
.voice-core .icon { width: 38px; height: 38px; color: #fff; }
.voice-ring { position: absolute; inset: 36px; border-radius: 50%; border: 2px solid rgba(140, 164, 255, 0.55); opacity: 0; }
.voice-orb[data-state="speaking"] .voice-core { animation: voice-breathe 2.4s ease-in-out infinite; }
.voice-orb[data-state="listening"] .voice-ring { animation: voice-ripple 2.1s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; }
.voice-orb[data-state="listening"] .voice-ring:nth-child(2) { animation-delay: 0.7s; }
.voice-orb[data-state="listening"] .voice-ring:nth-child(3) { animation-delay: 1.4s; }
.voice-orb.hearing .voice-core { transform: scale(1.08); }
.voice-orb.blip .voice-core { animation: voice-blip 0.32s ease-out; }
.voice-orb[data-state="thinking"] .voice-ring:first-child {
  opacity: 1; inset: 22px; border-color: transparent; border-top-color: #9fb0ff; border-right-color: rgba(159, 176, 255, 0.4); animation: voice-spin 0.9s linear infinite;
}
.voice-orb[data-state="done"] .voice-core { background: radial-gradient(circle at 35% 30%, #8ff0c8, #1f9e72 60%, #13704f); box-shadow: 0 18px 50px rgba(31, 158, 114, 0.45); }
.voice-orb[data-state="error"] .voice-core { background: radial-gradient(circle at 35% 30%, #9aa6d6, #3a4573 60%, #273055); box-shadow: none; }
@keyframes voice-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes voice-ripple { 0% { opacity: 0.85; transform: scale(1); } 100% { opacity: 0; transform: scale(2.1); } }
@keyframes voice-blip { 0% { transform: scale(1.08); } 45% { transform: scale(1.15); } 100% { transform: scale(1.08); } }
@keyframes voice-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .voice-overlay, .voice-chips li, .voice-button.big::after { animation: none; }
  .voice-orb .voice-core, .voice-orb .voice-ring { animation: none !important; }
  .voice-orb[data-state="listening"] .voice-ring:first-child { opacity: 0.8; transform: scale(1.35); }
}

/* ---- Local Scout: more than one city (Pro) -------------------------------------- */
.scout-places { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.scout-places-label { color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.place-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 6px 5px 12px; border-radius: 999px; background: rgba(47, 75, 214, 0.1); color: var(--sapphire-ink, #22349c); font-weight: 600; font-size: 0.9rem; }
.place-chip-x { display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.place-chip-x:hover { background: rgba(47, 75, 214, 0.16); }
.place-chip-x .icon { width: 13px; height: 13px; }
.add-city .pro-tag { margin-left: 4px; padding: 2px 7px; border-radius: 999px; background: linear-gradient(135deg, #e9ecf3, #c9d0de); color: #303a55; font-style: normal; font-size: 0.72rem; letter-spacing: 0.04em; }
.scout-add-city { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; width: 100%; }
.scout-add-city input { flex: 1 1 160px; }
.scout-add-city select { flex: 0 1 170px; }
@media (max-width: 760px) {
  .scout-go { grid-column: 1 / -1; }
  .sentence-voice { margin: 10px 0 0; }
}
.home-scout-say { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 4px 0 2px; }
.home-scout-say .voice-button { height: 48px; padding: 0 22px; font-size: 1rem; }
.home-scout-say-text { color: #aab4d4; font-size: 0.92rem; }
.scout-band-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
@media (max-width: 760px) {
  .home-scout-say .voice-button { width: 100%; }
  .scout-band-side { align-items: stretch; }
}

/* ---- Apply with AI (application workspace) --------------------------------------- */
.ai-apply {
  position: relative; display: grid; gap: 16px; margin: 18px 0; padding: clamp(18px, 3vw, 26px);
  border-radius: var(--r-xl); color: #eef1ff;
  background: radial-gradient(120% 140% at 0% 0%, rgba(80, 110, 255, 0.28), transparent 55%), linear-gradient(160deg, #0f1a4a, #0a1233 70%);
  box-shadow: 0 0 0 1px rgba(120, 146, 255, 0.22), var(--shadow-lift, var(--shadow));
}
.ai-apply h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.35rem; color: #fff; }
.ai-apply h2 .icon { color: #a9b8ff; }
.ai-apply .fine { color: #b9c2e6; }
.ai-apply-head p { margin: 6px 0 0; }
.ai-plan { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: ai; }
.ai-task { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.ai-dot { width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(169, 184, 255, 0.55); counter-increment: ai; }
.ai-dot::before { content: counter(ai); font: 600 0.78rem/1 var(--sans); color: #c9d2ff; }
.ai-task.done .ai-dot { background: #2fb37e; box-shadow: none; }
.ai-task.done .ai-dot::before { content: none; }
.ai-task.done .ai-dot .icon { width: 14px; height: 14px; color: #fff; }
.ai-task.busy .ai-dot { box-shadow: inset 0 0 0 2px rgba(169, 184, 255, 0.25); border-top: 2px solid #a9b8ff; animation: voice-spin 0.9s linear infinite; }
.ai-task.busy .ai-dot::before { content: none; }
.ai-task.busy { background: rgba(120, 146, 255, 0.12); }
.ai-task.stuck .ai-dot { box-shadow: inset 0 0 0 1.5px #ffcf70; }
.ai-task.stuck .ai-dot::before { content: "!"; color: #ffcf70; }
.ai-task.waiting .ai-dot { opacity: 0.6; }
.ai-task-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ai-task-top strong { color: #fff; }
.ai-task-text p { margin: 3px 0 0; }
.ai-stuck { color: #ffe0a3 !important; }
.ai-apply .cost-chip { background: rgba(255, 255, 255, 0.1); color: #dfe5ff; }
.ai-before { display: grid; gap: 12px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); }
.ai-before h3 { margin: 0; font-size: 1rem; color: #fff; }
.ai-need { display: grid; gap: 8px; }
.ai-need h4 { margin: 0; color: #fff; }
.ai-need label { display: grid; gap: 4px; color: #dfe5ff; font-weight: 600; font-size: 0.92rem; }
.ai-need input, .ai-need textarea { background: #fff; color: var(--ink); }
.ai-need .button { justify-self: start; }
.ai-options { display: grid; gap: 6px; }
.ai-options .check { color: #eef1ff; }
.ai-options .paste-toggle summary { color: #c9d2ff; }
.ai-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.ai-foot .button:disabled { opacity: 0.55; cursor: not-allowed; }
.ai-done { display: grid; gap: 10px; }
.ai-done .button.ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); background: transparent; }
.ai-done .link-button { color: #c9d2ff; justify-self: start; }
.ai-apply.teaser { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.ai-apply.teaser h2 { color: var(--ink); }
.ai-apply.teaser h2 .icon { color: var(--sapphire); }
.ai-apply.teaser .fine { color: var(--muted); }
.ai-apply.teaser .ai-task { background: var(--bg); }
.ai-apply.teaser .ai-task-top strong, .ai-apply.teaser .ai-task strong { color: var(--ink); }
.ai-apply.teaser .ai-dot { box-shadow: inset 0 0 0 1.5px var(--line); }
.ai-apply.teaser .ai-dot::before { color: var(--muted); }
.ai-apply.teaser .button { justify-self: start; }

/* ---- Add an application / builder lists ------------------------------------------- */
.add-tabs, .builder-tabs { margin: 6px 0 14px; }
.add-tabs .seg[aria-selected="true"], .builder-tabs .seg[aria-pressed="true"] { background: var(--surface); box-shadow: 0 1px 3px rgba(15, 23, 48, 0.12); color: var(--ink); }
.add-saved { display: grid; gap: 10px; }
.add-list, .builder-items { display: grid; gap: 8px; max-height: min(52vh, 440px); overflow: auto; margin: 0; padding: 2px; list-style: none; }
.add-row, .builder-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.add-row-text, .builder-item-text { display: grid; gap: 2px; min-width: 0; }
.add-row-text strong, .builder-item-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.add-row-text small, .builder-item-text small { color: var(--muted); }
.add-row.added { background: rgba(47, 179, 126, 0.08); }
.added-tag { color: #1f8a5f; font-weight: 600; font-size: 0.9rem; }
.add-row .button, .builder-item .button { flex: none; }
.builder-list, .builder-other { display: grid; gap: 12px; }

/* ---- Discover: the two ways to search ---------------------------------------------- */
.search-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.search-mode { width: 100%; border: 0; text-align: left; cursor: pointer; font: inherit; display: grid; gap: 6px; align-content: start; padding: 16px 18px; border-radius: var(--r-xl); background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--ink-2); text-decoration: none; font-size: 0.93rem; line-height: 1.5; transition: box-shadow 0.2s, transform 0.2s var(--glide); }
.search-mode:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.search-mode strong { color: var(--ink); font-size: 1.05rem; }
.search-mode-tag { justify-self: start; padding: 3px 10px; border-radius: 999px; background: rgba(47, 75, 214, 0.08); color: var(--sapphire-ink, #22349c); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.03em; }
.search-mode.scout { background: linear-gradient(160deg, #0f1a4a, #0a1233 75%); color: #c9d2ff; box-shadow: 0 0 0 1px rgba(120, 146, 255, 0.25); }
.search-mode.scout strong { color: #fff; }
.search-mode.scout .search-mode-tag { background: rgba(255, 255, 255, 0.12); color: #fff; }
@media (max-width: 760px) { .search-modes { grid-template-columns: 1fr; } }

/* ---- Talk with the coach -------------------------------------------------------- */
.chat-form .talk-button { flex: none; height: 44px; }
.coach-empty .talk-start {
  display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 6px; padding: 12px 20px; border-radius: 999px;
  background: linear-gradient(135deg, #1c2f99, #2f4bd6); color: #fff; box-shadow: 0 10px 26px rgba(47, 75, 214, 0.28);
}
.coach-empty .talk-start .icon { color: #fff; width: 18px; height: 18px; }
.coach-empty .talk-start:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(47, 75, 214, 0.34); }
/* In a conversation the coach's answer replaces the question, so it reads as text, not a headline. */
.voice-overlay.talk .voice-question { max-width: 38ch; font: 500 clamp(1.15rem, 2.3vw, 1.5rem)/1.5 var(--sans); letter-spacing: -0.01em; }
.voice-overlay.talk .voice-stage { overflow-y: auto; padding-bottom: 12px; }
@media (max-width: 560px) {
  .chat-form .talk-button { width: 44px; min-width: 44px; padding: 0; }
  .chat-form .talk-button .voice-button-text { display: none; }
}
