/* ============================================================
   ProvnHR design system v3
   Type: lucide.dev's exact scale (Inter; sizes, weights, line
   heights and tracking measured from the live site).
   Colour: plain, after perplexity.ai — off-white paper, near-black
   ink, warm hairlines, no brand hue. Near-black is the only accent.
   Status colours (amber, red) appear only where meaning needs them,
   always with an icon and a word.
   Icons: Lucide (ISC), self-hosted in vendor/lucide.min.js.
   Research: docs/design-research.md
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Perplexity palette */
  --bg: #FCFCF9;            /* paper */
  --soft: #F3F3EE;          /* cards, tiles, search */
  --soft-2: #E9E8E2;        /* hover, secondary buttons */
  --divider: #E4E2DA;       /* warm hairline */
  --text: #1A1D20;          /* 16:1 on paper */
  --text-2: #64645F;        /* 5.8:1 on paper, 5.3:1 on --soft */
  --strong: #091717;        /* offblack: headings, primary buttons */
  --tile: #FFFFFF;
  --accent: #091717;        /* primary = offblack, paper text 17:1 */
  --accent-hover: #2A3434;
  --accent-text: #091717;
  --accent-soft: #E9E8E2;
  --on-accent: #FCFCF9;
  /* Status: met is ink, not green; amber and red only for warnings */
  --ok: #091717;   --ok-soft: #E9E8E2;
  --warn: #8A5A00; --warn-soft: #F7EED6;
  --bad: #B3261E;  --bad-soft: #FAE7E4;
  --info: #1A1D20; --info-soft: #F3F3EE;
  /* Products: one ink family; the icon tells them apart */
  --p-jobs: #091717; --p-hire: #091717; --p-bids: #091717; --p-verify: #091717; --p-people: #091717; --p-payroll: #091717;
  --font: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  --r-sm: 8px; --r: 12px; --r-lg: 12px;     /* lucide cards: 12px */
  --shadow-pop: 0 12px 32px rgba(9, 23, 23, .10), 0 2px 6px rgba(9, 23, 23, .05);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #191A1A; --soft: #202222; --soft-2: #2D2F2F; --divider: #2D2F2F; --tile: #262828;
  --text: #E8E8E6; --text-2: #A3A6A4; --strong: #FBFAF4;
  --accent: #FBFAF4; --accent-hover: #E4E3DC; --accent-text: #FBFAF4; --accent-soft: #2D2F2F; --on-accent: #091717;
  --ok: #FBFAF4; --ok-soft: #2D2F2F; --warn: #E3B341; --warn-soft: #33290F; --bad: #F28B82; --bad-soft: #3A1D1B; --info: #E8E8E6; --info-soft: #202222;
  --p-jobs: #FBFAF4; --p-hire: #FBFAF4; --p-bids: #FBFAF4; --p-verify: #FBFAF4; --p-people: #FBFAF4; --p-payroll: #FBFAF4;
  --shadow-pop: 0 12px 32px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* lucide.dev body: 16px / 24px Inter */
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/24px var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; color: var(--strong); font-weight: 600; }
/* lucide.dev doc headings */
h1 { font-size: 32px; line-height: 40px; letter-spacing: -0.64px; }
h2 { font-size: 24px; line-height: 32px; letter-spacing: -0.48px; }
h3 { font-size: 16px; line-height: 24px; letter-spacing: 0; }
p { margin: 0; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-2); }
.mono { font-family: var(--mono); font-size: .9em; }
.accent { color: var(--accent-text); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
svg.lucide { width: 18px; height: 18px; stroke-width: 1.75; flex: 0 0 auto; }
.i-sm svg.lucide, svg.lucide.i-sm { width: 16px; height: 16px; }
.i-lg svg.lucide, svg.lucide.i-lg { width: 22px; height: 22px; }

/* ── Header (lucide.dev) ────────────────────────────────── */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); }
.site-head .bar { display: flex; align-items: center; gap: 8px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--strong); font-weight: 600; font-size: 21px; line-height: 24px; text-decoration: none !important; }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.logo-mark svg.lucide { width: 18px; height: 18px; stroke-width: 2.5; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { color: var(--text); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--accent-text); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent-text); }
/* Buttons inside the nav keep button colours, not link colours */
.nav .btn-primary, .nav .btn-primary:hover { color: var(--on-accent); padding: 0 20px; border-radius: 20px; }
.vsep { width: 1px; height: 24px; background: var(--divider); margin: 0 8px; }

/* ── Buttons: pills; icon buttons with tooltips ─────────── */
/* lucide.dev buttons: 40px tall, radius 20, padding 0 20, 14px/600 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 20px; border: 0; font: 600 14px/1 var(--font); cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--on-accent); } .btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-soft { background: var(--soft-2); color: var(--strong); } .btn-soft:hover { background: var(--divider); color: var(--strong); }
.btn-lg { height: 44px; padding: 0 22px; border-radius: 22px; }
.icon-btn { position: relative; width: 36px; height: 36px; border-radius: 8px; border: 0; display: inline-grid; place-items: center; background: transparent; color: var(--text); cursor: pointer; text-decoration: none !important; }
.icon-btn:hover { background: var(--soft); color: var(--strong); }
.icon-btn.solid { background: var(--soft); } .icon-btn.solid:hover { background: var(--soft-2); }
.icon-btn.accent { background: var(--accent); color: var(--on-accent); } .icon-btn.accent:hover { background: var(--accent-hover); }
.icon-btn.danger:hover { background: var(--bad-soft); color: var(--bad); }
.icon-btn.ok:hover { background: var(--ok-soft); color: var(--ok); }
.icon-btn .badge { position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }
/* Tooltip from data-tip, on hover and keyboard focus */
[data-tip] { position: relative; }
[data-tip]::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); padding: 5px 9px; border-radius: 6px; background: var(--strong); color: var(--bg); font: 500 12px/1.2 var(--font); white-space: nowrap; pointer-events: none; z-index: 50; display: none; }
/* Rendered only while shown, so hidden tooltips never widen the page */
[data-tip]:hover::after, [data-tip]:focus-visible::after { display: block; }
[data-tip-pos="bottom"]::after { bottom: auto; top: calc(100% + 8px); }
.toggle { width: 40px; height: 22px; border-radius: 999px; background: var(--soft-2); border: 1px solid var(--divider); position: relative; cursor: pointer; padding: 0; }
.toggle::before { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
:root[data-theme="dark"] .toggle::before { transform: translateX(18px); }

/* ── Search bar with keyboard hint ──────────────────────── */
.searchbar { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 12px 0 16px; border-radius: var(--r); background: var(--soft); color: var(--text-2); border: 1px solid transparent; }
.searchbar:focus-within { border-color: var(--accent); background: var(--bg); }
.searchbar input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: var(--strong); }
kbd { font: 500 12px/1 var(--font); padding: 4px 6px; border-radius: 5px; background: var(--soft-2); color: var(--text-2); border: 0; }

/* ── Chips, evidence, deadlines, counts ─────────────────── */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; background: var(--soft); color: var(--strong); font-size: 14px; font-weight: 500; white-space: nowrap; }
.pill.accent { background: var(--accent-soft); color: var(--accent-text); }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--soft); color: var(--text); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.chip svg.lucide { width: 14px; height: 14px; }
.chip.ok { background: var(--ok-soft); color: var(--ok); } .chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); } .chip.info { background: var(--info-soft); color: var(--info); }
.chip.accent { background: var(--accent-soft); color: var(--accent-text); }
/* Evidence (FR-7.5): verified solid, declared outline, inferred dashed */
.ev { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: 6px; font: 500 11.5px/1 var(--mono); }
.ev svg.lucide { width: 13px; height: 13px; stroke-width: 2.2; }
.ev.verified { background: var(--accent); color: var(--on-accent); }
.ev.declared { box-shadow: inset 0 0 0 1px var(--divider); color: var(--text); }
.ev.inferred { outline: 1px dashed var(--text-2); outline-offset: -1px; color: var(--text-2); }
.ev.portfolio { background: var(--info-soft); color: var(--info); }
.deadline { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.deadline svg.lucide { width: 14px; height: 14px; }
.deadline.soon { background: var(--warn-soft); color: var(--warn); } .deadline.over { background: var(--bad-soft); color: var(--bad); }
.count { font: 500 12px/1 var(--mono); color: var(--text-2); }
.count.pill-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--soft-2); }

/* ── Fit ring: a single-value meter (FR-5.1, 5.2, 5.3) ───────
   SVG ring drawn by fit.js from data-score / data-band. The fill
   carries the band; the track is a lighter step of the same colour.
   Bands: strong (ink), fair (grey), missing = an essential not met
   (red, the only warning colour). The number is the primary read;
   the band also appears as a word and in the accessible label. */
.fit { --size: 52px; --w: 3.2; --fill: var(--strong); --track: var(--soft-2);
  position: relative; width: var(--size); height: var(--size); display: inline-grid; place-items: center; flex: 0 0 auto; }
.fit svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.fit circle { fill: none; stroke-width: var(--w); }
.fit .track { stroke: var(--track); }
.fit .value { stroke: var(--fill); stroke-linecap: round; transition: stroke-dasharray .5s cubic-bezier(.2, .7, .2, 1); }
.fit b { position: relative; font-weight: 600; font-size: calc(var(--size) * .32); line-height: 1; color: var(--strong); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fit small { position: relative; display: block; font-size: 11px; font-weight: 500; color: var(--text-2); margin-top: 2px; text-align: center; }
.fit .fit-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.fit.sm { --size: 40px; --w: 3.4; }          /* list rows: 3.4px stroke */
.fit.lg { --size: 88px; --w: 2.4; }          /* detail panel: ~5.3px stroke */
.fit[data-band="fair"] { --fill: var(--text-2); }
.fit[data-band="missing"] { --fill: var(--bad); --track: var(--bad-soft); }
.fit[data-band="missing"] b { color: var(--bad); }
@media (prefers-reduced-motion: reduce) { .fit .value { transition: none; } }
/* Ring + band word, for list rows */
.fitcell { display: inline-flex; align-items: center; gap: 10px; }
.fitcell .band { font-size: 12.5px; font-weight: 500; color: var(--text-2); line-height: 1.2; }
.fitcell .band strong { display: block; color: var(--strong); font-weight: 600; font-size: 13px; }
.fitcell[data-band="missing"] .band strong { color: var(--bad); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend svg.lucide { width: 14px; height: 14px; }
.legend .ok { color: var(--ok); } .legend .warn { color: var(--warn); } .legend .bad { color: var(--bad); }

/* ── Cards (soft, borderless) and icon tiles ────────────── */
.card { background: var(--soft); border-radius: var(--r-lg); }
.card.pad { padding: 22px 24px; }
.card.white { background: var(--bg); box-shadow: inset 0 0 0 1px var(--divider); }
.tile { width: 48px; height: 48px; border-radius: 10px; background: var(--tile); display: grid; place-items: center; color: var(--accent-text); }
.tile svg.lucide { width: 22px; height: 22px; }
.tile.prod { color: var(--on-accent); }
.tile.sm { width: 36px; height: 36px; border-radius: 9px; } .tile.sm svg.lucide { width: 18px; height: 18px; }
.org { display: flex; align-items: center; gap: 12px; min-width: 0; }
.org-logo { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: var(--on-accent); font-weight: 700; font-size: 13px; flex: 0 0 auto; }
.blind-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--soft-2); color: var(--strong); font: 600 12px/1 var(--mono); flex: 0 0 auto; }

/* ── Tables ─────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; position: relative; }   /* contains .sr-only cells */
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-size: 12.5px; font-weight: 500; color: var(--text-2); padding: 10px 16px; border-bottom: 1px solid var(--divider); white-space: nowrap; }
.t td { padding: 12px 16px; border-bottom: 1px solid var(--divider); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover { background: var(--soft); }
.row-actions { display: flex; gap: 2px; justify-content: flex-end; opacity: .85; }
tr:hover .row-actions, .row:hover .row-actions { opacity: 1; }

/* ── App shell (lucide.dev icons page) ──────────────────── */
.app { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 16px 16px 24px; border-right: 1px solid var(--divider); display: flex; flex-direction: column; gap: 20px; }
.side .logo { padding: 4px 8px 12px; border-bottom: 1px solid var(--divider); }
/* lucide.dev sidebar: group titles 14/700, items 14/500, 24px lines */
.side h4 { font-size: 14px; line-height: 24px; font-weight: 700; color: var(--strong); padding: 0 8px; margin-bottom: 2px; }
.side nav { display: flex; flex-direction: column; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 4px 8px; border-radius: 8px; color: var(--text-2); font-size: 14px; line-height: 24px; font-weight: 500; }
.side nav a:hover { background: var(--soft); text-decoration: none; color: var(--strong); }
.side nav a[aria-current="page"] { color: var(--accent-text); font-weight: 600; }
.side nav a .count { margin-left: auto; }
.side .box { padding: 16px; border-radius: var(--r); background: var(--soft); }
.content { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 8px; padding: 12px 28px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--divider); }
.topbar .searchbar { flex: 1; max-width: 640px; height: 42px; min-width: 0; }
.main { padding: 28px 28px 64px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-head h1 { font-size: 32px; line-height: 40px; }
.toolbar { display: flex; align-items: center; gap: 4px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 12px; font-weight: 600; }

/* ── Product switcher ───────────────────────────────────── */
.switcher { position: relative; }
.switcher-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 10px; border: 0; background: var(--soft); color: var(--strong); font: 600 14px/1.2 var(--font); cursor: pointer; text-align: left; }
.switcher-btn:hover { background: var(--soft-2); }
.switcher-btn small { display: block; font-weight: 400; color: var(--text-2); font-size: 12px; }
.switcher-menu { position: absolute; top: calc(100% + 6px); left: 0; width: 300px; padding: 6px; border-radius: var(--r); background: var(--bg); box-shadow: var(--shadow-pop), inset 0 0 0 1px var(--divider); z-index: 40; }
.switcher-menu a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; color: var(--strong); font-size: 14px; font-weight: 500; }
.switcher-menu a:hover { background: var(--soft); text-decoration: none; }
.switcher-menu a small { display: block; color: var(--text-2); font-weight: 400; font-size: 12px; }
.switcher-menu a.soon { opacity: .55; pointer-events: none; }
.switcher-menu a .check { margin-left: auto; color: var(--accent-text); }
.switcher-menu .sep { height: 1px; background: var(--divider); margin: 6px 4px; }

/* ── Forms ──────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--strong); }
.input { height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid transparent; background: var(--soft); font: inherit; color: var(--strong); width: 100%; }
.input:focus { outline: 0; border-color: var(--accent); background: var(--bg); }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--soft); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg button, .seg a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 8px; border: 0; background: transparent; color: var(--text); font: 500 14px/1 var(--font); cursor: pointer; text-decoration: none !important; }
.seg [aria-pressed="true"], .seg [aria-current="page"] { background: var(--bg); color: var(--strong); box-shadow: 0 1px 2px rgba(0,0,0,.08); }


@media (max-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .topbar, .main { padding-inline: 16px; }
  .nav a.hide-sm { display: none; }
  .topbar kbd { display: none; }
  .topbar > span[style*="flex:1"] { display: none; }
}

/* Theme toggle shows the icon for the theme you'd switch to */
:root[data-theme="dark"] .when-light, :root:not([data-theme="dark"]) .when-dark { display: none; }

/* ============================================================
   App shell (public/app.html). Mockups don't use these.
   ============================================================ */
body[data-layout="auth"] .side, body[data-layout="auth"] .topbar { display: none; }
body[data-layout="app"] .authbar { display: none; }
body[data-layout="auth"] .app { grid-template-columns: minmax(0, 1fr); }
.authbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.auth-main { min-height: calc(100vh - 72px); display: grid; place-items: start center; padding: 24px 16px 64px; }
.auth-panel { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 20px; padding-top: 4vh; }
.auth-panel.wide { max-width: 680px; padding-top: 0; }
.auth-panel h1 { font-size: 32px; line-height: 40px; }
.auth-panel .seg { width: 100%; } .auth-panel .seg a, .auth-panel .seg button { flex: 1; justify-content: center; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--divider); }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--soft); font-size: 14px; line-height: 22px; }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 22px; background: var(--bad-soft); color: var(--bad); }
.alert.ok { background: var(--soft); color: var(--strong); }
.row2 { display: flex; flex-wrap: wrap; gap: 14px; } .row2 > .field { flex: 1 1 200px; }
.hint { font-size: 13px; line-height: 20px; color: var(--text-2); }
.section { display: flex; flex-direction: column; gap: 16px; padding: 22px 24px; }
.section h2 { font-size: 16px; line-height: 24px; letter-spacing: 0; display: flex; align-items: center; gap: 10px; }
.section h2 .step { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--bg); font-size: 12px; font-weight: 600; }
.sub { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 12px; background: var(--bg); }
.sub h3 { font-size: 14px; line-height: 22px; display: flex; align-items: center; gap: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 22px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--accent); }
.input-prefix { display: flex; align-items: center; height: 44px; border-radius: 10px; background: var(--soft); border: 1px solid transparent; overflow: hidden; }
.input-prefix:focus-within { border-color: var(--accent); background: var(--bg); }
.input-prefix span { padding: 0 12px; color: var(--text-2); font-weight: 500; border-right: 1px solid var(--divider); }
.input-prefix input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 12px; font: inherit; color: var(--strong); }
.code-input { height: 56px; text-align: center; font-size: 24px; letter-spacing: .4em; font-variant-numeric: tabular-nums; }
.secret { font-family: var(--mono); font-size: 16px; letter-spacing: .08em; word-break: break-all; padding: 12px 14px; border-radius: 10px; background: var(--soft); color: var(--strong); }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 14px; border-radius: 10px; background: var(--soft); font-family: var(--mono); font-size: 14px; color: var(--strong); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--strong); text-decoration: underline; cursor: pointer; min-height: 32px; }
/* "I'm looking for" multi-select */
.lf { position: relative; }
.lf-trigger { width: 100%; min-height: 48px; padding: 6px 12px; display: flex; align-items: center; gap: 8px; border-radius: 10px; border: 1px solid transparent; background: var(--bg); cursor: pointer; text-align: left; font: inherit; color: var(--strong); }
.lf-trigger[aria-expanded="true"] { border-color: var(--accent); }
.lf-chips { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.lf-panel { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; margin: 0; padding: 6px; border: 0; border-radius: 12px; background: var(--bg); box-shadow: var(--shadow-pop), inset 0 0 0 1px var(--divider); }
.lf-opt { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 8px; cursor: pointer; }
.lf-opt:hover { background: var(--soft); }
.lf-opt input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); }
/* Product home: launcher of the product's screens */
.launcher { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.launch { padding: 20px; display: flex; flex-direction: column; gap: 12px; color: var(--text); }
.launch:hover { background: var(--soft-2); text-decoration: none; }
.launch h3 { font-size: 16px; line-height: 24px; display: flex; align-items: center; gap: 8px; }
.launch p { font-size: 14px; line-height: 24px; font-weight: 500; color: var(--text-2); }
.empty { padding: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.empty p { color: var(--text-2); max-width: 560px; }
.reqs { display: flex; flex-wrap: wrap; gap: 6px; }
/* Account menu */
.account { position: relative; }
.account-btn { border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; }
.account-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 240px; padding: 6px; border-radius: 12px; background: var(--bg); box-shadow: var(--shadow-pop), inset 0 0 0 1px var(--divider); z-index: 40; }
.account-menu .who { padding: 10px; border-bottom: 1px solid var(--divider); margin-bottom: 4px; }
.account-menu .who strong { display: block; color: var(--strong); font-size: 14px; }
.account-menu .who span { font-size: 13px; color: var(--text-2); word-break: break-all; }
.account-menu button, .account-menu a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; font: 500 14px/1.4 var(--font); color: var(--strong); cursor: pointer; text-align: left; }
.account-menu button:hover, .account-menu a:hover { background: var(--soft); text-decoration: none; }
/* The router focuses #content after navigation for screen readers; no ring for that. */
#content:focus { outline: none; }
/* Inputs contrast with the surface they sit on */
.card .input, .card .input-prefix, .card .lf-trigger { background: var(--bg); }
.card .sub .input { background: var(--soft); }
/* Switcher menu fits the sidebar instead of being clipped by it */
.side .switcher-menu { left: 0; right: 0; width: auto; }
/* Chips and pills on soft cards use the page background */
.card .chip, .card .pill { background: var(--bg); }
.card .chip.warn { background: var(--warn-soft); } .card .chip.bad { background: var(--bad-soft); }

/* ── Document pages (terms, privacy, notices): lucide.dev doc layout ── */
.doc-wrap { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 48px; justify-content: center; padding: 32px 24px 80px; }
.doc-toc { position: sticky; top: 88px; align-self: start; display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 24px; }
.doc-toc strong { color: var(--strong); font-weight: 700; padding: 4px 8px; }
.doc-toc a { color: var(--text-2); padding: 4px 8px; border-radius: 8px; font-weight: 500; }
.doc-toc a:hover { background: var(--soft); color: var(--strong); text-decoration: none; }
.doc { min-width: 0; }
.doc h1 { font-size: 32px; line-height: 40px; letter-spacing: -0.64px; }
.doc h2 { font-size: 24px; line-height: 32px; letter-spacing: -0.48px; padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--divider); scroll-margin-top: 80px; }
.doc h3 { font-size: 16px; line-height: 24px; margin-top: 20px; }
.doc p, .doc li { font-size: 16px; line-height: 28px; color: var(--text); }
.doc p { margin: 16px 0 0; }
.doc ul, .doc ol { margin: 12px 0 0; padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc .meta { color: var(--text-2); font-size: 14px; line-height: 24px; margin-top: 8px; }
.doc .draft { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: 14px; line-height: 22px; }
.doc .summary { margin-top: 20px; padding: 18px 20px; border-radius: 12px; background: var(--soft); }
.doc .summary li { font-size: 15px; line-height: 26px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14px; line-height: 22px; }
.doc th { text-align: left; font-weight: 600; color: var(--strong); padding: 10px 12px; border-bottom: 1px solid var(--divider); }
.doc td { padding: 10px 12px; border-bottom: 1px solid var(--divider); vertical-align: top; }
.doc .ph { background: var(--soft-2); padding: 0 4px; border-radius: 4px; font-family: var(--mono); font-size: .88em; }
@media (max-width: 900px) { .doc-wrap { grid-template-columns: minmax(0, 1fr); } .doc-toc { display: none; } }
/* Wide tables in documents scroll inside their own box on narrow screens */
.doc table { display: block; overflow-x: auto; max-width: 100%; }
.doc table td, .doc table th { min-width: 140px; }
/* Links inside running text must look like links (WCAG 1.4.1), since the accent is ink */
.doc a, .note a, .check a, .hint a, .alert a, p a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.doc a:hover, .note a:hover, .check a:hover, .hint a:hover, p a:hover { text-decoration-thickness: 2px; }

/* ============================================================
   Profile screen (public/profile-ui.js)
   ============================================================ */
.profile { display: flex; flex-direction: column; gap: 16px; max-width: 880px; }
.profile form { display: flex; flex-direction: column; gap: 16px; }
.rep-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rep-head h3 { min-width: 0; overflow-wrap: anywhere; }
.rep { display: flex; flex-direction: column; gap: 12px; }
.rep-row { display: grid; gap: 10px; align-items: end; }
.rep-skill { grid-template-columns: minmax(0, 1fr) 96px 40px; }
.rep-edu { grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) 96px 40px; }
.rep-row .icon-btn { margin-bottom: 2px; }
.card .sub .input-prefix { background: var(--soft); }
textarea.input { height: auto; min-height: 88px; padding: 10px 14px; line-height: 22px; resize: vertical; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; font-size: 13.5px; font-weight: 600; color: var(--strong); }
.choice-list { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 18px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--divider); font-size: 14px; font-weight: 500; cursor: pointer; }
.choice:has(input:checked) { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.choice input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.choice:has(input:checked) input { accent-color: var(--on-accent); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.dropzone { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: 12px; background: var(--bg); border: 1.5px dashed var(--divider); cursor: pointer; color: var(--strong); }
.dropzone:hover, .dropzone.over { border-color: var(--accent); }
.dropzone:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.dropzone[aria-busy="true"] { opacity: .6; pointer-events: none; }
.dropzone > svg.lucide { flex: 0 0 auto; }
.review { box-shadow: inset 0 0 0 1.5px var(--accent); scroll-margin-top: 88px; }
.savebar { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to bottom, transparent, var(--bg) 30%); }
.btn-danger { background: var(--bad); color: var(--bg); } .btn-danger:hover { filter: brightness(.92); }
.danger h2 { color: var(--bad); }
@media (max-width: 560px) {
  .rep-edu { grid-template-columns: minmax(0, 1fr) 40px; }
  .rep-edu > .field:nth-child(1) { grid-column: 1 / -1; }
  .rep-edu > .field:nth-child(2) { grid-column: 1 / -1; }
  .rep-edu > .field:nth-child(3) { grid-column: 1; }
}
