/* ==========================================================================
   Quinn — design system (brand reskin)
   Bold, warm, game-like chrome for the internal Quinn/Outreach/Radar screens:
   thick navy outlines, hard offset shadows, pill tabs and badges. Colour
   still carries meaning only:
     green  = cleared / available / ready
     orange = needs attention / verification
     red    = blocked / failed / urgent
     blue   = informational / Quinn AI activity
     yellow = Safe Mode / the loudest "pay attention" tone
     teal   = a secondary accent, used sparingly
   Values live as tokens in :root so a component never hardcodes a colour,
   border width or radius — school-facing pages (Candidate Passport,
   unsubscribe) and emails use a calmer variant of the same tokens; see
   public-pages.js and outreach-campaigns.js for those.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand fonts */
  --font-head: 'Fredoka', 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Surfaces */
  --bg: #DDEBE7;
  --surface: #FFFBF0;
  --surface-sunken: #FFF6DE;
  --surface-raised: #FFFFFF;
  --border: #1D2B3A;
  --border-strong: #1D2B3A;
  --line-w: 2.5px;

  /* Ink — also the brand outline colour */
  --ink: #1D2B3A;
  --ink-soft: #3E4E62;
  --ink-faint: #64758A;

  /* Semantics */
  --green: #3DB35A;
  --green-bg: #E3F5E7;
  --green-line: #1D2B3A;
  --amber: #F5962A;
  --amber-bg: #FEF0DE;
  --amber-line: #1D2B3A;
  --red: #D62F44;
  --red-bg: #FCE4E8;
  --red-line: #1D2B3A;
  --blue: #1F74B3;
  --blue-bg: #E3F0F8;
  --blue-line: #1D2B3A;
  --yellow: #F7C62F;
  --yellow-bg: #FEF6DC;
  --yellow-line: #1D2B3A;
  --teal: #19A99A;
  --teal-bg: #E1F4F1;
  --teal-line: #1D2B3A;
  --neutral-bg: #FFF6DE;

  /* Form */
  --radius-lg: 22px;
  --radius: 18px;
  --radius-sm: 14px;
  --shadow-xs: 0 3px 0 var(--ink);
  --shadow-sm: 0 3px 0 var(--ink);
  --shadow-md: 0 4px 0 var(--ink);
  --shadow-lg: 0 5px 0 var(--ink);

  --sidebar-w: 248px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Headings and figures use the display face; everything else stays Nunito. */
.greeting, .page-title, .section-title, .metric-value, .score-value, .kpi-value,
.profile-name, .brand-name, .req-school, .match-name, .empty-title, .modal-title,
.tl-title, .opp-title, .cell-main, h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
}

/* Figures always align in columns */
.num, .metric-value, .score-value, td.num { font-variant-numeric: tabular-nums; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

/* ── Shell ───────────────────────────────────────────────────── */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface);
  border-right: var(--line-w) solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand { padding: 22px 20px 18px; display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  border: var(--line-w) solid var(--ink); box-shadow: var(--shadow-xs);
  overflow: hidden; display: grid; place-items: center; background: var(--surface);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-name { font-size: 15.5px; font-weight: 640; letter-spacing: -.25px; }
.brand-sub { font-size: 11.5px; color: var(--ink-faint); margin-top: -2px; }

.nav { padding: 6px 12px; flex: 1; overflow-y: auto; }
.nav-label {
  font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em;
  color: var(--ink-faint); padding: 14px 10px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 500; color: var(--ink-soft);
  transition: background .15s var(--ease), color .15s var(--ease);
  margin-bottom: 1px; width: 100%; text-align: left;
}
.nav-item:hover { background: var(--surface-sunken); color: var(--ink); }
.nav-item.active {
  background: var(--yellow); color: var(--ink); font-weight: 700;
  border: var(--line-w) solid var(--ink); box-shadow: var(--shadow-xs);
  border-radius: 999px;
}
.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; stroke-width: 1.7; }
.nav-count {
  margin-left: auto; font-size: 11px; font-weight: 600;
  background: var(--neutral-bg); color: var(--ink-soft);
  padding: 1px 7px; border-radius: 20px; font-variant-numeric: tabular-nums;
}
.nav-item.active .nav-count { background: var(--surface); color: var(--ink); }
.nav-count.amber { background: var(--amber-bg); color: var(--amber); }
.nav-count.red { background: var(--red-bg); color: var(--red); }

.sidebar-foot { padding: 14px 20px 18px; border-top: var(--line-w) solid var(--border); }
.quinn-pulse { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-faint); }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0; position: relative; }
.pulse-dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--green); opacity: .5; animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(.6); opacity: .6 } 100% { transform: scale(1.5); opacity: 0 } }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: var(--line-w) solid var(--border);
  padding: 12px 32px; display: flex; align-items: center; gap: 16px;
  position: sticky; top: 0; z-index: 20;
}
.topbar-title { font-size: 14.5px; font-weight: 600; letter-spacing: -.2px; }
.topbar-spacer { flex: 1; }
.menu-btn { display: none; padding: 7px; border-radius: var(--radius-sm); }
.menu-btn svg { width: 20px; height: 20px; display: block; }

.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-sunken); border: var(--line-w) solid var(--border);
  border-radius: 999px; padding: 7px 14px; min-width: 250px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.search:focus-within { background: #fff; border-color: var(--blue-line); box-shadow: 0 0 0 3px rgba(37, 87, 201, .10); }
.search svg { width: 15px; height: 15px; color: var(--ink-faint); flex-shrink: 0; }
.search input { border: none; background: none; outline: none; font-size: 13.5px; width: 100%; color: var(--ink); }
.search input::placeholder { color: var(--ink-faint); }

.content { padding: 30px 32px 72px; max-width: 1240px; width: 100%; }

/* ── Page header ─────────────────────────────────────────────── */
.page-head { margin-bottom: 26px; }
.greeting { font-size: 27px; font-weight: 650; letter-spacing: -.7px; line-height: 1.2; }
.greeting-sub { font-size: 14.5px; color: var(--ink-soft); margin-top: 5px; }
.page-title { font-size: 21px; font-weight: 640; letter-spacing: -.45px; }
.page-sub { font-size: 13.5px; color: var(--ink-soft); margin-top: 3px; }

.section { margin-bottom: 30px; }
.section-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 13px; }
.section-title { font-size: 15px; font-weight: 620; letter-spacing: -.2px; }
.section-note { font-size: 12.5px; color: var(--ink-faint); }
.section-head .spacer { flex: 1; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: var(--line-w) solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.card-pad { padding: 20px 22px; }

/* Metric cards */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.metric {
  background: var(--surface); border: var(--line-w) solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 20px 17px;
  box-shadow: var(--shadow-xs); display: block; position: relative;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
}
.metric:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.metric-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.metric-label { font-size: 12.5px; font-weight: 550; color: var(--ink-soft); }
.metric-value { font-size: 30px; font-weight: 650; letter-spacing: -1px; line-height: 1; }
.metric-note { font-size: 11.5px; color: var(--ink-faint); margin-top: 8px; line-height: 1.4; }
.metric-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.metric-dot.green { background: var(--green) } .metric-dot.amber { background: var(--amber) }
.metric-dot.red { background: var(--red) } .metric-dot.blue { background: var(--blue) }
.metric-dot.neutral { background: var(--border-strong) }

/* Solid-colour metric tiles: cream for neutral, a brand colour with white
   text otherwise. The tone can come from a class on .metric itself, or (a
   few older cards) from the tone of the dot inside it — either way needs no
   markup change. */
.metric.green, .metric:has(.metric-dot.green) { background: var(--green); }
.metric.amber, .metric:has(.metric-dot.amber) { background: var(--amber); }
.metric.red, .metric:has(.metric-dot.red) { background: var(--red); }
.metric.blue, .metric:has(.metric-dot.blue) { background: var(--blue); }
.metric.green .metric-value, .metric.green .metric-label, .metric.green .metric-note,
.metric.amber .metric-value, .metric.amber .metric-label, .metric.amber .metric-note,
.metric.red .metric-value, .metric.red .metric-label, .metric.red .metric-note,
.metric.blue .metric-value, .metric.blue .metric-label, .metric.blue .metric-note,
.metric:has(.metric-dot.green) .metric-value, .metric:has(.metric-dot.green) .metric-label, .metric:has(.metric-dot.green) .metric-note,
.metric:has(.metric-dot.amber) .metric-value, .metric:has(.metric-dot.amber) .metric-label, .metric:has(.metric-dot.amber) .metric-note,
.metric:has(.metric-dot.red) .metric-value, .metric:has(.metric-dot.red) .metric-label, .metric:has(.metric-dot.red) .metric-note,
.metric:has(.metric-dot.blue) .metric-value, .metric:has(.metric-dot.blue) .metric-label, .metric:has(.metric-dot.blue) .metric-note {
  color: #fff;
}
.metric.green .metric-dot, .metric.amber .metric-dot, .metric.red .metric-dot, .metric.blue .metric-dot { background: #fff; }

/* ── Pills & badges ──────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent; letter-spacing: .01em;
}
.pill.green { background: var(--green-bg); color: var(--green); border-color: var(--green-line) }
.pill.amber { background: var(--amber-bg); color: var(--amber); border-color: var(--amber-line) }
.pill.red { background: var(--red-bg); color: var(--red); border-color: var(--red-line) }
.pill.blue { background: var(--blue-bg); color: var(--blue); border-color: var(--blue-line) }
.pill.neutral { background: var(--neutral-bg); color: var(--ink-soft); border-color: var(--border) }
.pill.lg { font-size: 12px; padding: 5px 12px; }
.pill svg { width: 12px; height: 12px; }

.dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.dot.green { background: var(--green) } .dot.amber { background: var(--amber) }
.dot.red { background: var(--red) } .dot.blue { background: var(--blue) }
.dot.neutral { background: var(--border-strong) }

/* ── Quinn voice ─────────────────────────────────────────────── */
.quinn-note {
  display: flex; align-items: flex-start; gap: 9px;
  background: var(--blue-bg); border: 1px solid var(--blue-line);
  border-radius: var(--radius); padding: 11px 14px;
  font-size: 13px; color: #1B3F94; line-height: 1.5;
}
.quinn-note.amber { background: var(--amber-bg); border-color: var(--amber-line); color: #7A3A05 }
.quinn-note.green { background: var(--green-bg); border-color: var(--green-line); color: #05593C }
.quinn-note .qi { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.quinn-note strong { font-weight: 620; }
.quinn-inline { font-size: 12.5px; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; font-weight: 550; }

/* Attention list */
.attention { display: grid; gap: 11px; }
.attn {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: var(--line-w) solid var(--border);
  border-left: 3px solid var(--border-strong);
  border-radius: var(--radius); padding: 15px 18px; box-shadow: var(--shadow-xs);
  transition: box-shadow .18s var(--ease);
}
.attn:hover { box-shadow: var(--shadow-sm); }
.attn.red { border-left-color: var(--red) } .attn.amber { border-left-color: var(--amber) }
.attn.blue { border-left-color: var(--blue) } .attn.green { border-left-color: var(--green) }
.attn-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.attn-icon svg { width: 17px; height: 17px; }
.attn.red .attn-icon { background: var(--red-bg); color: var(--red) }
.attn.amber .attn-icon { background: var(--amber-bg); color: var(--amber) }
.attn.blue .attn-icon { background: var(--blue-bg); color: var(--blue) }
.attn-body { flex: 1; min-width: 0; }
.attn-title { font-size: 13.8px; font-weight: 600; letter-spacing: -.1px; }
.attn-detail { font-size: 13px; color: var(--ink-soft); margin-top: 3px; line-height: 1.5; }
.attn-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 9px; font-size: 11.5px; color: var(--ink-faint); }
.attn-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 550;
  border: var(--line-w) solid var(--border-strong); background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-xs);
  transition: background .15s, border-color .15s, transform .12s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--surface-sunken); border-color: #BFC5D1; }
.btn:active { transform: scale(.985); }
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: #22304A; border-color: #22304A; }
.btn-blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-blue:hover { background: #1E49AE; border-color: #1E49AE; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; }
.btn-ghost { border-color: transparent; box-shadow: none; background: none; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--surface-sunken); color: var(--ink); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Segmented control */
.segments { display: inline-flex; background: var(--neutral-bg); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.segment {
  padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 550;
  color: var(--ink-soft); transition: background .15s, color .15s;
}
.segment:hover { color: var(--ink); }
.segment.active { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-xs); }
.segment .c { font-variant-numeric: tabular-nums; opacity: .6; margin-left: 4px; }

/* ── Requirement cards ──────────────────────────────────────── */
.req {
  background: var(--surface); border: var(--line-w) solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
  padding: 20px 22px; margin-bottom: 13px;
  transition: box-shadow .18s var(--ease), border-color .18s;
}
.req:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.req-top { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.req-school { font-size: 16.5px; font-weight: 640; letter-spacing: -.3px; }
.req-role { font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; }
.req-pills { display: flex; gap: 7px; flex-wrap: wrap; margin-left: auto; }
.req-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 16px; margin: 18px 0 0; padding-top: 17px; border-top: var(--line-w) solid var(--border);
}
.fact-label { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); }
.fact-value { font-size: 14px; font-weight: 550; margin-top: 3px; font-variant-numeric: tabular-nums; }
.fact-value.soft { color: var(--ink-faint); font-weight: 450; }
.req-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: var(--line-w) solid var(--border); }
.req-foot .spacer { flex: 1; }

/* ── Match cards ─────────────────────────────────────────────── */
.matches { display: grid; gap: 13px; }
.match {
  background: var(--surface); border: var(--line-w) solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
  padding: 19px 22px; display: flex; gap: 19px; align-items: flex-start;
  transition: box-shadow .18s var(--ease), border-color .18s;
}
.match:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.match.is-blocked { background: linear-gradient(0deg, var(--surface-sunken), var(--surface-sunken)); }
.match.is-excluded { opacity: .72; }

/* Score ring. Deliberately never green unless compliance is cleared. */
.score { flex-shrink: 0; width: 66px; text-align: center; }
.score-ring {
  width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center;
  position: relative; background: conic-gradient(var(--ring) calc(var(--pct) * 1%), var(--neutral-bg) 0);
}
.score-ring::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); }
.score-inner { position: relative; z-index: 1; }
.score-value { font-size: 20px; font-weight: 660; letter-spacing: -.6px; line-height: 1; }
.score-cap { font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); margin-top: 7px; }
.score-ring.green { --ring: var(--green) } .score-ring.amber { --ring: var(--amber) }
.score-ring.red { --ring: var(--red) } .score-ring.neutral { --ring: var(--border-strong) }
.score-lock { display: inline-flex; align-items: center; gap: 3px; font-size: 9.5px; font-weight: 600; color: var(--amber); margin-top: 6px; }
.score-lock svg { width: 10px; height: 10px; }

.match-body { flex: 1; min-width: 0; }
.match-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.match-name { font-size: 16px; font-weight: 640; letter-spacing: -.3px; }
.match-sub { font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; }
.reasons { display: flex; flex-direction: column; gap: 5px; margin-top: 13px; }
.reason { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--ink-soft); line-height: 1.45; }
.reason .dot { margin-top: 6px; }
.reason.green { color: #1A5140 } .reason.amber { color: #7A3A05 } .reason.red { color: #8C2620 }
.match-stats { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.stat {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-sunken); border: var(--line-w) solid var(--border);
  border-radius: 8px; padding: 4px 9px; font-size: 11.8px; color: var(--ink-soft);
}
.stat b { font-weight: 620; color: var(--ink); font-variant-numeric: tabular-nums; }
.match-next {
  margin-top: 13px; padding-top: 13px; border-top: 1px dashed var(--border);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.match-next-text { font-size: 12.5px; color: var(--ink-soft); flex: 1; min-width: 180px; }

/* ── Tables ──────────────────────────────────────────────────── */
.table-wrap { background: var(--surface); border: var(--line-w) solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.2px; }
th {
  text-align: left; padding: 11px 16px; background: var(--surface-sunken);
  font-size: 10.5px; font-weight: 640; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-faint); border-bottom: var(--line-w) solid var(--border); white-space: nowrap;
}
td { padding: 13px 16px; border-bottom: var(--line-w) solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .12s; }
tbody tr.clickable { cursor: pointer; }
tbody tr.clickable:hover { background: var(--surface-sunken); }
.cell-main { font-weight: 570; }
.cell-sub { font-size: 11.8px; color: var(--ink-faint); margin-top: 1px; }
.t-right { text-align: right; }

.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 12px; font-weight: 640;
  background: var(--blue-bg); color: var(--blue); letter-spacing: -.2px;
}
.avatar.lg { width: 56px; height: 56px; font-size: 18px; }
.with-avatar { display: flex; align-items: center; gap: 11px; }

/* Legacy candidate photograph. The initials stay in the box underneath, so
   they cover the load and survive an expired signed link. */
.avatar.has-photo { position: relative; overflow: hidden; }
.avatar-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top; display: block;
}

/* ── Compliance ──────────────────────────────────────────────── */
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 10px; }
.check {
  border: var(--line-w) solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; background: var(--surface);
}
.check-top { display: flex; align-items: center; gap: 8px; }
.check-name { font-size: 12.8px; font-weight: 570; flex: 1; min-width: 0; }
.check-state { font-size: 11.5px; font-weight: 600; margin-top: 6px; }
.check-meta { font-size: 11px; color: var(--ink-faint); margin-top: 4px; line-height: 1.4; }
.check.green { background: var(--green-bg); border-color: var(--green-line) }
.check.amber { background: var(--amber-bg); border-color: var(--amber-line) }
.check.red { background: var(--red-bg); border-color: var(--red-line) }
.check.neutral { background: var(--surface-sunken) }
.check.green .check-state { color: var(--green) }
.check.amber .check-state { color: var(--amber) }
.check.red .check-state { color: var(--red) }
.check.neutral .check-state { color: var(--ink-faint) }
.check-blocks { font-size: 10px; font-weight: 620; text-transform: uppercase; letter-spacing: .05em; color: var(--red); }

.provenance { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 620; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 5px; }
.provenance.historic { background: #EFE7DC; color: #7A5A2E; }
.provenance.quinn { background: var(--green-bg); color: var(--green); }
.provenance.none { background: var(--neutral-bg); color: var(--ink-faint); }

/* ── Tabs ────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 6px; border-bottom: none; overflow-x: auto; margin-bottom: 22px; padding-bottom: 4px; }
.tab {
  padding: 8px 16px; font-size: 13.3px; font-weight: 600; color: var(--ink-soft);
  white-space: nowrap; border-radius: 999px; border: var(--line-w) solid transparent;
  transition: color .15s, background .15s, border-color .15s;
}
.tab:hover { color: var(--ink); background: var(--surface-sunken); }
.tab.active { color: var(--ink); background: var(--yellow); border-color: var(--ink); box-shadow: var(--shadow-xs); font-weight: 700; }
.tab .c { font-size: 11px; opacity: .65; margin-left: 5px; font-variant-numeric: tabular-nums; }

/* ── Profile header ─────────────────────────────────────────── */
.profile-head { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 22px; }
.profile-id { flex: 1; min-width: 240px; }
.profile-name { font-size: 24px; font-weight: 650; letter-spacing: -.6px; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 7px; font-size: 13px; color: var(--ink-soft); }
.profile-meta span { display: inline-flex; align-items: center; gap: 6px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; margin-bottom: 24px; }
.kpi { background: var(--surface); border: var(--line-w) solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.kpi-label { font-size: 10.5px; font-weight: 620; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); }
.kpi-value { font-size: 21px; font-weight: 650; letter-spacing: -.5px; margin-top: 5px; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: 11px; color: var(--ink-faint); margin-top: 2px; }

/* Definition rows */
.defs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 15px 22px; }
.def-label { font-size: 10.5px; font-weight: 620; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); }
.def-value { font-size: 13.8px; margin-top: 2px; }
.def-value.soft { color: var(--ink-faint); }

/* Availability strip */
.avail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 9px; }
.avail-day { border: var(--line-w) solid var(--border); border-radius: var(--radius); padding: 10px 12px; background: var(--surface); }
.avail-date { font-size: 11.5px; color: var(--ink-faint); font-weight: 550; }
.avail-state { font-size: 12.8px; font-weight: 600; margin-top: 3px; }
.avail-day.green { background: var(--green-bg); border-color: var(--green-line) } .avail-day.green .avail-state { color: var(--green) }
.avail-day.red { background: var(--red-bg); border-color: var(--red-line) } .avail-day.red .avail-state { color: var(--red) }
.avail-day.neutral .avail-state { color: var(--ink-faint) }

/* Timeline */
.timeline { display: grid; gap: 2px; }
.tl { display: flex; gap: 13px; padding: 13px 0; border-bottom: var(--line-w) solid var(--border); }
.tl:last-child { border-bottom: none; }
.tl-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; background: var(--neutral-bg); color: var(--ink-soft); font-size: 13px; }
.tl-body { flex: 1; min-width: 0; }
.tl-top { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.tl-title { font-size: 13.3px; font-weight: 570; }
.tl-time { font-size: 11.5px; color: var(--ink-faint); margin-left: auto; white-space: nowrap; }
.tl-text { font-size: 12.8px; color: var(--ink-soft); margin-top: 3px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ── States ──────────────────────────────────────────────────── */
.empty { text-align: center; padding: 52px 24px; }
.empty-mark { width: 46px; height: 46px; border-radius: 13px; background: var(--neutral-bg); color: var(--ink-faint); display: grid; place-items: center; margin: 0 auto 14px; }
.empty-mark svg { width: 21px; height: 21px; }
.empty-title { font-size: 14.5px; font-weight: 600; }
.empty-text { font-size: 13px; color: var(--ink-soft); margin-top: 5px; max-width: 420px; margin-inline: auto; line-height: 1.55; }
.empty.in-card { padding: 38px 20px; }

.skeleton { background: linear-gradient(90deg, #EDEFF3 25%, #F5F6F9 37%, #EDEFF3 63%); background-size: 400% 100%; animation: shimmer 1.3s ease-in-out infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 50% } 100% { background-position: 0 50% } }
.sk-card { height: 104px; border-radius: var(--radius-lg); }
.sk-row { height: 74px; border-radius: var(--radius); margin-bottom: 11px; }
.sk-line { height: 12px; margin-bottom: 8px; }

.error-box { background: var(--red-bg); border: 1px solid var(--red-line); color: #8C2620; border-radius: var(--radius); padding: 14px 16px; font-size: 13px; }

.load-more { display: grid; place-items: center; padding: 18px 0 4px; }

/* Filter bar */
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.filters .spacer { flex: 1; }
select.input, input.input {
  border: var(--line-w) solid var(--border); background: var(--surface); color: var(--ink);
  border-radius: var(--radius-sm); padding: 7px 11px; font-size: 13px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
select.input:focus, input.input:focus { border-color: var(--blue-line); box-shadow: 0 0 0 3px rgba(37, 87, 201, .10); }

/* ── Responsive ──────────────────────────────────────────────── */
.scrim { display: none; position: fixed; inset: 0; background: rgba(16, 24, 40, .34); z-index: 29; }

@media (max-width: 1000px) {
  .sidebar {
    position: fixed; left: 0; top: 0; z-index: 30; transform: translateX(-100%);
    transition: transform .24s var(--ease); box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: none; }
  .scrim.open { display: block; }
  .menu-btn { display: inline-flex; }
  .content { padding: 22px 18px 64px; }
  .topbar { padding: 11px 18px; }
  .search { min-width: 0; flex: 1; }
}

@media (max-width: 620px) {
  .greeting { font-size: 23px; }
  .metrics { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 11px; }
  .metric-value { font-size: 25px; }
  .match { flex-direction: column; gap: 14px; }
  .score { display: flex; align-items: center; gap: 12px; width: auto; text-align: left; }
  .score-cap { margin-top: 0; }
  .req-pills { margin-left: 0; width: 100%; }
  .topbar-title { display: none; }
}

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

/* Provisional clearance — legacy-approved but not yet Quinn-verified.
   Deliberately distinct from the green Quinn-verified treatment. */
.pill.provisional {
  background: repeating-linear-gradient(135deg, #F4F1E8, #F4F1E8 6px, #EFEADC 6px, #EFEADC 12px);
  color: #6F5A2A; border: 1px dashed #C9B68A;
}
.check.provisional { background: #F7F4EC; border-color: #DCCFA9; border-style: dashed; }
.check.provisional .check-state { color: #6F5A2A; }

/* ── Opportunity Radar ──────────────────────────────────────────
   Radar reuses Quinn's cards, pills, buttons, .defs and .match rows.
   Only the pieces Quinn did not already have live here: the unlock
   panel, a dialog, form grids, and the source registry rows. */

.radar-lock { max-width: 460px; margin: 6vh auto; text-align: center; }
.radar-lock .empty-mark { margin: 0 auto 14px; }
.radar-lock form { display: flex; gap: 8px; margin-top: 18px; }
.radar-lock input { flex: 1; }

.radar-head { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 18px; }
.radar-head .spacer { flex: 1; }

.radar-run { font-size: 12.8px; color: var(--ink-soft); margin-top: 6px; line-height: 1.5; }
.radar-run.bad { color: var(--red); }

.opp {
  width: 100%; text-align: left; display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: var(--line-w) solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
  padding: 16px 19px; margin-bottom: 11px;
  transition: box-shadow .18s var(--ease), border-color .18s;
}
.opp:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.opp-body { flex: 1; min-width: 0; }
.opp-title { font-size: 15px; font-weight: 640; letter-spacing: -.25px; }
.opp-sub { font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; }
.opp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.opp-side { text-align: right; font-size: 12.5px; color: var(--ink-soft); flex-shrink: 0; }
@media (max-width: 620px) {
  .opp { flex-wrap: wrap; }
  .opp-side { text-align: left; }
}

.advert {
  white-space: pre-wrap; font-size: 13px; line-height: 1.55; color: var(--ink-soft);
  background: var(--surface-sunken); border: var(--line-w) solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px; max-height: 300px; overflow: auto;
}

.src-row { background: var(--surface); border: var(--line-w) solid var(--border); border-radius: var(--radius); padding: 13px 16px; margin-bottom: 8px; }
.src-row.off { opacity: .6; }
.src-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.src-meta { font-size: 12.3px; color: var(--ink-faint); margin-top: 5px; overflow-wrap: anywhere; }
.src-meta a { color: var(--blue); }

/* Dialog */
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(16, 24, 40, .45); display: none; overflow: auto; padding: 5vh 14px; }
.modal.open { display: block; }
.modal-box {
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  max-width: 660px; margin: 0 auto; padding: 24px 26px;
}
.modal-title { font-size: 18px; font-weight: 650; letter-spacing: -.35px; margin-bottom: 4px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: block; font-size: 10.5px; font-weight: 620; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); margin-bottom: 4px; }
.form-grid .input, .form-grid textarea { width: 100%; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

textarea.input { border: var(--line-w) solid var(--border); background: var(--surface); color: var(--ink);
  border-radius: var(--radius-sm); padding: 9px 11px; font: inherit; font-size: 13px; outline: none;
  min-height: 190px; resize: vertical; transition: border-color .15s, box-shadow .15s; }
textarea.input:focus { border-color: var(--blue-line); box-shadow: 0 0 0 3px rgba(37, 87, 201, .10); }

.radar-msg { font-size: 12.8px; color: var(--ink-soft); }
.radar-msg.bad { color: var(--red); }

/* Review screen: vacancy detail beside shortlist and outreach. */
.radar-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .radar-cols { grid-template-columns: 1fr; } }

/* ── Availability Board ─────────────────────────────────────────
   Not-confirmed cells use the same cream neutral surface the rest of the
   app uses for a zero/unknown value (see metricTone in app.js). */
.avail-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.avail-filters .btn .c { margin-left: 4px; font-weight: 700; }
.avail-filters .btn.active { border-color: var(--blue-line); background: var(--blue-bg); color: var(--blue); }

.avail-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.avail-table th, .avail-table td { padding: 8px 6px; text-align: center; border-bottom: 1px solid var(--border); }
.avail-name-col { text-align: left !important; min-width: 180px; position: sticky; left: 0; background: var(--surface); }
.avail-role { font-size: 11.5px; color: var(--ink-faint); margin-top: 2px; }
.avail-week-label { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); background: var(--surface-sunken); }
.avail-day-head { line-height: 1.3; }
.avail-day-name { font-weight: 650; font-size: 12px; }
.avail-day-date { font-size: 11px; color: var(--ink-faint); }
.avail-day-head.today .avail-day-name { color: var(--blue); }

.avail-cell { cursor: pointer; font-weight: 700; border-left: 1px solid var(--border); transition: filter .1s; width: 44px; }
.avail-cell:hover { filter: brightness(0.96); }
.avail-cell.green { background: var(--green-bg); color: var(--green); }
.avail-cell.red { background: var(--red-bg); color: var(--red); }
.avail-cell.neutral { background: var(--surface); color: var(--ink-faint); font-weight: 400; }
