/* Oxenham Talent Acquisition Tracker: portal styles (overhaul).
   Monochrome, dark-first, one navy accent. Colors are tokens switched by data-theme on <html>;
   with no data-theme the visitor's computer setting decides. Sizes sit on a 4px grid and no text
   is under 12px. */
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-wght-normal.260c81a4759b.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-latin-wght-normal.a15f9d568fb0.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --bg: #fafafa; --surface: #ffffff; --sunken: #f1f1f0; --line: #e3e3e1; --line-strong: #c9c9c6; --control-line: #8e8e8a;
  --text: #0b0c0e; --text-2: #4a4d55; --text-3: #5f636c;
  --accent: #1e2d51; --accent-ink: #ffffff; --accent-soft: #e6eaf3;
  --ok: #1f7a4d; --danger: #b42318; --warn: #8a5a00;
  --pop-shadow: 0 16px 40px -16px rgba(11, 12, 14, .28);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --r-control: 6px; --r-card: 10px;
  color-scheme: light;
}
/* The dark tokens appear twice (computer set to dark, and theme forced to dark). Keep both lists identical. */
/* Not used while the theme script runs (it always sets data-theme). Kept for browsers with scripts off. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08090a; --surface: #101113; --sunken: #050506; --line: #1f2124; --line-strong: #33363b; --control-line: #5d6168;
    --text: #f4f5f6; --text-2: #b3b7bf; --text-3: #8a8f98;
    --accent: #9db2e8; --accent-ink: #0b1220; --accent-soft: #16203a;
    --ok: #4cc38a; --danger: #ff8a7a; --warn: #e5b454;
    --pop-shadow: 0 0 0 1px var(--line-strong);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08090a; --surface: #101113; --sunken: #050506; --line: #1f2124; --line-strong: #33363b; --control-line: #5d6168;
  --text: #f4f5f6; --text-2: #b3b7bf; --text-3: #8a8f98;
  --accent: #9db2e8; --accent-ink: #0b1220; --accent-soft: #16203a;
  --ok: #4cc38a; --danger: #ff8a7a; --warn: #e5b454;
  --pop-shadow: 0 0 0 1px var(--line-strong);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-strong) transparent; }
body { margin: 0; font: 400 14px/1.55 var(--sans); color: var(--text); background: var(--bg); font-variant-numeric: tabular-nums; overflow-wrap: break-word; }
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1 { margin: 0; font: 600 28px/1.15 var(--sans); letter-spacing: -0.02em; text-wrap: balance; }
h2 { margin: 0 0 12px; font: 500 14px/1.4 var(--sans); color: var(--text); }
.mono { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.muted { color: var(--text-3); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.btn, .dp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-control); background: var(--surface); color: var(--text); cursor: pointer; font: 500 14px/1.2 var(--sans); text-decoration: none; transition: background-color .12s var(--ease), border-color .12s var(--ease), transform .12s var(--ease); }
.btn:hover, .dp-btn:hover { background: var(--sunken); border-color: var(--text-3); }
.btn:active, .dp-btn:active { transform: translateY(1px); }
.btn.primary, .dp-btn.is-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover, .dp-btn.is-primary:hover { filter: brightness(1.12); background: var(--accent); }
.dp-btn.is-danger { background: var(--danger); border-color: var(--danger); color: var(--bg); }
.link { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; text-decoration: underline; }

textarea, input, select { font: inherit; color: var(--text); padding: 8px 10px; border: 1px solid var(--control-line); border-radius: var(--r-control); background: var(--surface); caret-color: var(--accent); max-width: 100%; transition: border-color .12s var(--ease); }
textarea:hover, input:hover, select:hover { border-color: var(--text-3); }
textarea:focus, input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
textarea { width: 100%; resize: vertical; }
select { width: 100%; text-overflow: ellipsis; }
input[type="checkbox"], input[type="radio"] { width: auto; padding: 0; }
::placeholder { color: var(--text-3); opacity: 1; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; }
.badge { display: inline-block; padding: 2px 6px; border-radius: 4px; font: 500 12px/1.4 var(--mono); background: var(--accent-soft); color: var(--accent); }
.badge.hold { background: transparent; color: var(--text-3); box-shadow: inset 0 0 0 1px var(--line-strong); }
.flash { display: flex; gap: 10px; align-items: baseline; padding: 10px 14px; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-control); }
.flash.error { border-color: var(--danger); color: var(--danger); }

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

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.shell-bare { grid-template-columns: minmax(0, 1fr); }
main { min-width: 0; max-width: 1240px; width: 100%; padding: 32px; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 24px; padding: 20px 12px; background: var(--surface); border-right: 1px solid var(--line); }
.side-mark { display: grid; gap: 2px; padding: 4px 8px; font: 600 16px/1.2 var(--sans); letter-spacing: -0.01em; text-decoration: none; }
.side-mark span { font: 400 12px/1.4 var(--mono); color: var(--text-3); }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; gap: 8px; align-items: baseline; min-height: 32px; padding: 6px 8px; border-radius: var(--r-control); color: var(--text-2); text-decoration: none; transition: background-color .12s var(--ease), color .12s var(--ease); }
.side-nav a:hover { background: var(--sunken); color: var(--text); }
.side-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--text); font-weight: 500; }
.side-label { margin: 20px 0 4px; padding: 0 8px; font: 400 12px/1.4 var(--mono); color: var(--text-3); }
.side-empty { margin: 0; padding: 6px 8px; color: var(--text-3); }
.side-foot { margin-top: auto; display: grid; gap: 8px; padding: 12px 8px 0; border-top: 1px solid var(--line); }
.side-who { margin: 0; display: grid; font-weight: 500; }
.side-who span { font-weight: 400; color: var(--text-3); }
.side-link { color: var(--text-2); text-decoration: none; text-align: left; }
.side-link:hover { color: var(--text); text-decoration: underline; }
.theme-switch { display: inline-grid; grid-auto-flow: column; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--sunken); justify-self: start; }
.theme-switch button { min-height: 28px; padding: 4px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font: 500 12px/1 var(--sans); cursor: pointer; }
:root[data-theme="light"] .theme-switch [data-theme-choice="light"],
:root[data-theme="dark"] .theme-switch [data-theme-choice="dark"] { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--line-strong); }
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-nav { grid-auto-flow: column; overflow-x: auto; flex: 1 1 100%; order: 3; }
  .side-nav a { white-space: nowrap; min-height: 44px; }
  .side-label, .side-who, .side-empty { display: none; }
  .side-foot { margin: 0 0 0 auto; padding: 0; border: 0; grid-auto-flow: column; align-items: center; }
  .theme-switch button, .side-link { min-height: 44px; display: inline-flex; align-items: center; }
  main { padding: 16px; }
}

/* ---------- Home ----------
   The client's name and the date; a row of summary tiles (only the ones with something in them);
   then the open positions beside the recruiter card and recent activity. */
.hm { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
/* The photo is a backdrop behind most of the screen, like the sign-in page; the heading and the
   cards sit lower and float over its bottom, where it fades evenly into the page. The recruiter card
   and recent activity float in the photo's upper right, ending where the cloud bank (dark) starts.
   Dark: the lake. Light: the sunset. */
main:has(.hm) { max-width: none; }
.hm > :not(.hm-photo) { max-width: 1176px; }
.hm > .hm-body { max-width: none; padding-right: clamp(0px, 3vw, 48px); }
.hm-main { max-width: 820px; }
.hm-photo { position: fixed; z-index: 0; top: 0; left: 248px; right: 0; height: max(520px, 90vh); isolation: isolate; overflow-x: clip; overflow-y: visible; background: transparent; pointer-events: none; }
.hm-body { position: relative; z-index: 1; margin-top: clamp(260px, 46vh, 560px); }
.hm-photo::before { content: ""; position: absolute; inset: 0; }
.hm-photo::before { z-index: -2; background: var(--sunken) url("img/home.e3e418339b35.jpg") center 100% / cover no-repeat; filter: saturate(.5) brightness(.76) contrast(1.06); bottom: -7vh; -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent 93%); mask-image: linear-gradient(to bottom, #000 84%, transparent 93%); }
:root[data-theme="light"] .hm-photo::before { bottom: 0; background-image: url("img/home-light.e3974256f0ad.jpg"); background-position: center 50%; filter: none; -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); }
/* The photo stays put while the cards scroll over it, and slowly pushes in as you scroll (browsers
   that support scroll-linked animation; everyone else sees it still). */
@media (prefers-reduced-motion: no-preference) and (min-width: 901px) {
  @supports (animation-timeline: scroll()) {
    .hm-photo::before { transform-origin: 50% 70%; animation: hm-push linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes hm-push { to { transform: scale(1.12); } }
  }
}
.hm-head { display: grid; gap: 4px; }
/* Text that sits straight on the photo gets a soft halo in the page color so it stays readable. */
.hm-head h1, .hm-head p, #hm-positions { text-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 0 18px rgba(0, 0, 0, .6); }
.hm-head p { color: var(--text-2); }
:root[data-theme="light"] .hm-head h1, :root[data-theme="light"] .hm-head p, :root[data-theme="light"] #hm-positions { text-shadow: 0 0 2px rgba(255, 255, 255, .9), 0 0 18px rgba(255, 255, 255, .85); }
:root[data-theme="light"] .hm-head p { color: var(--text); font-weight: 600; text-shadow: 0 0 3px #fff, 0 0 10px rgba(255, 255, 255, .95); }
#hm-activity-title { margin-top: 0; }
.hm-head h1 { font-size: 28px; letter-spacing: -0.02em; }
.hm-head p { margin: 0; }
.hm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.hm-tile { display: grid; align-content: start; gap: 4px; }
.hm-tile p { margin: 0; }
.hm-count { font: 600 32px/1 var(--sans); letter-spacing: -0.02em; }
.hm-tile-label { color: var(--text-2); }
.hm-tile ul { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.hm-tile li { display: grid; gap: 2px; }
.hm-tile li a { font-weight: 500; text-decoration: none; }
.hm-tile li a:hover { text-decoration: underline; }
.hm-more { margin-top: 8px; }
.hm-clear { margin: 0; color: var(--text-2); }
.hm-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 32px; align-items: start; }
.hm-main { display: grid; gap: 32px; min-width: 0; }
.hm-positions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.hm-positions a { display: grid; gap: 8px; text-decoration: none; transition: border-color .12s var(--ease); }
.hm-positions a:hover { border-color: var(--text-3); }
.hm-pos-title { font: 500 16px/1.3 var(--sans); }
.hm-side { display: grid; gap: 16px; min-width: 0; margin-top: calc(clamp(40px, 9vh, 96px) - clamp(260px, 46vh, 560px)); }
.hm-recruiter { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: start; }
.hm-recruiter h2 { margin: 0; font: 600 16px/1.3 var(--sans); color: var(--text); }
.hm-recruiter p { margin: 0; }
.hm-initials { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 600 16px/1 var(--sans); }
.hm-recruiter .hm-contact { display: grid; gap: 4px; margin-top: 10px; }
.hm-contact .mono { display: inline-block; min-width: 64px; }
.hm-contact a { color: var(--text-2); overflow-wrap: anywhere; }
.hm-activity { list-style: none; margin: 0; padding: 0; }
.hm-activity li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hm-activity li a { font-weight: 500; text-decoration: none; }
.hm-activity li a:hover { text-decoration: underline; }
.hm-activity li span { grid-column: 1; color: var(--text-2); }
.hm-activity time { grid-column: 2; grid-row: 1; }
@media (max-width: 900px) {
  .hm-photo { position: absolute; top: -16px; left: -16px; right: -16px; height: max(380px, 70vh); }
  .hm-body { margin-top: clamp(180px, 34vh, 320px); }
  .hm-body { grid-template-columns: minmax(0, 1fr); }
  .hm-side { margin-top: 0; }
}

/* ---------- Sign-in ----------
   Joe's own photos fill the screen as shot (no fade, no filter). The form sits on a solid card whose
   shadow makes it float above the photo. Dark: the tern, with the card just below and to the right of where it is looking.
   The page looks the same in light mode: the tern, the same card, the dark colors. */
.auth { --bg: #08090a; --surface: #101113; --sunken: #050506; --line: #1f2124; --line-strong: #33363b; --control-line: #5d6168; --text: #f4f5f6; --text-2: #b3b7bf; --text-3: #8a8f98; --accent: #9db2e8; --accent-ink: #0b1220; --accent-soft: #16203a; --danger: #ff8a7a; color-scheme: dark; position: fixed; inset: 0; z-index: 10; display: grid; overflow-y: auto; padding: clamp(24px, 6vh, 72px) clamp(16px, 4vw, 64px) clamp(32px, 10vh, 120px) max(16px, 46vw); place-items: end start; background: #0b0d0c url("img/signin-dark.002149d5bd77.jpg") 30% 40% / cover no-repeat; }
.auth-card { position: absolute; left: calc(30vw + 0.095 * max(100vw, 154.37vh)); top: calc(40vh - 0.11 * max(64.78vw, 100vh)); width: min(calc(100vw - 32px), clamp(400px, 26vw, 470px)); display: grid; gap: 20px; padding: clamp(28px, 2.2vw, 40px); background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 2px 6px rgba(0, 0, 0, .25), 0 32px 80px -24px rgba(0, 0, 0, .6); }
.auth-mark { margin: 0; font: 400 13px/1.4 var(--mono); color: var(--text-3); }
.auth-title { margin: 0; font-size: clamp(32px, 2.2vw, 40px); letter-spacing: -0.02em; }
.auth-form { display: grid; gap: 16px; }
.auth-field { display: grid; gap: 6px; }
.auth-field label { font-size: 14px; font-weight: 500; color: var(--text-2); }
.auth-field input { width: 100%; height: 50px; padding: 0 16px; font-size: 16px; background: var(--sunken); border: 1px solid var(--control-line); border-radius: 8px; transition: border-color .12s var(--ease), box-shadow .12s var(--ease); }
.auth-field input:hover { border-color: var(--text-3); }
.auth-field input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 18%, transparent); }
.auth-secret { position: relative; }
.auth-secret input { padding-right: 76px; }
.auth-show { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); min-height: 36px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--text-2); font: 500 13px/1 var(--sans); cursor: pointer; transition: background-color .12s var(--ease), color .12s var(--ease); }
.auth-show:hover { background: var(--line); color: var(--text); }
.auth-field .errorlist { margin: 0; padding: 0; list-style: none; color: var(--danger); font-size: 13px; }
.auth .flash p { margin: 0; }
.auth-submit { height: 50px; margin-top: 4px; border: 0; border-radius: 8px; background: var(--text); color: var(--bg); font: 600 16px/1 var(--sans); cursor: pointer; transition: opacity .12s var(--ease), transform .12s var(--ease); }
.auth-submit:hover { opacity: .88; }
.auth-submit:active { transform: translateY(1px); }
.auth-help { margin: 0; font-size: 14px; color: var(--text-3); }
@media (max-width: 720px) {
  /* The photo still fills the screen; the card becomes a sheet along the bottom. */
  .auth { place-items: end stretch; padding: 0; background-size: cover; }
  .auth { background-position: 34% center; }
  .auth-card { position: static; width: 100%; border-radius: 16px 16px 0 0; border-bottom: 0; padding: 28px 20px 32px; }
}

/* ---------- Page head (board, role, candidate, compare) ---------- */
.pg-head { display: grid; gap: 8px; padding-bottom: 24px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.pg-head h1 { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -0.03em; }
.pg-sub { margin: 0; color: var(--text-2); }
.pg-back { color: var(--text-3); text-decoration: none; }
.pg-back:hover { color: var(--text); text-decoration: underline; }
.pg-stats { display: flex; gap: 32px; margin: 16px 0 0; }
.pg-stats dt { font: 400 12px/1.4 var(--mono); color: var(--text-3); }
.pg-stats dd { margin: 0; font: 600 28px/1.1 var(--sans); letter-spacing: -0.02em; }

/* ---------- Board ---------- */
.bd-section-title { display: flex; align-items: baseline; gap: 8px; }
.bd-section-title span { font: 400 12px/1 var(--mono); color: var(--text-3); }
.bd-whats-new { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 32px; padding: 10px 14px; background: var(--accent-soft); border-radius: var(--r-control); }
.bd-whats-new-label { font-weight: 500; color: var(--accent); }
.bd-new-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 12px; }
.bd-pipeline { margin-top: 48px; }
.bd-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--stages, 5), minmax(0, 1fr)); gap: 12px; }
.bd-stage { padding: 12px; background: var(--sunken); border: 1px solid var(--line); border-radius: var(--r-card); min-width: 0; }
.bd-waypoint { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: baseline; margin-bottom: 12px; }
.bd-stage-name { font-weight: 500; }
.bd-stage:not(.has-cards) .bd-stage-name { color: var(--text-3); font-weight: 400; }
.bd-cards { display: grid; gap: 8px; }
.bd-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); transition: border-color .12s var(--ease); }
.bd-card:hover, .bd-card:has(:focus-visible) { border-color: var(--text-3); }
.bd-card:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.bd-card-link { display: grid; gap: 4px; padding: 14px 44px 14px 14px; text-decoration: none; }
.bd-card-link:focus-visible { outline-offset: -2px; border-radius: var(--r-card); }
.bd-pick { position: absolute; top: 4px; right: 4px; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
.bd-pick input { width: 16px; height: 16px; padding: 0; accent-color: var(--accent); }
.bd-card.is-held .bd-card-name { color: var(--text-3); }
.bd-card-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.bd-card-name { font: 500 16px/1.25 var(--sans); letter-spacing: -0.01em; }
.bd-card-meta { color: var(--text-3); }
.bd-card-writeup { color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-days { margin-top: 4px; font: 400 12px/1.4 var(--mono); color: var(--text-3); }
.card-days.stale { color: var(--warn); }
.bd-empty { margin: 0; color: var(--text-3); }
.bd-compare-bar { position: sticky; bottom: 16px; display: none; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding: 10px 10px 10px 16px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-card); box-shadow: var(--pop-shadow); }
.bd-compare-form:has(input[name="c"]:checked) .bd-compare-bar { display: flex; }
.bd-iv { display: grid; gap: 2px; margin-top: 8px; padding: 8px 10px; background: var(--accent-soft); border-radius: var(--r-control); }
.bd-iv-label, .bd-iv-meta { font: 400 12px/1.4 var(--mono); color: var(--text-3); }
.bd-iv-when { font-weight: 500; }
.bd-iv-notes { font-size: 13px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bd-closed { margin-top: 48px; }
.bd-closed-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); overflow: hidden; }
.bd-closed-list li + li { border-top: 1px solid var(--line); }
.bd-closed-list a { display: grid; grid-template-columns: minmax(160px, 1.2fr) 110px 2fr 80px; gap: 16px; align-items: baseline; min-height: 44px; padding: 10px 14px; text-decoration: none; }
.bd-closed-list a:hover { background: var(--sunken); }
.bd-closed-name { font-weight: 500; }
.bd-outcome, .bd-closed-reason, .bd-closed-list time { color: var(--text-3); }
.bd-closed-list time { font: 400 12px/1.4 var(--mono); text-align: right; }
@media (max-width: 900px) {
  .bd-stages { grid-template-columns: minmax(0, 1fr); }
  .bd-stage:not(.has-cards) .bd-cards { display: none; }
  .bd-stage:not(.has-cards) .bd-waypoint { margin-bottom: 0; }
  .pg-stats { gap: 20px; }
  .bd-closed-list a { grid-template-columns: 1fr auto; }
  .bd-closed-reason { grid-column: 1 / -1; }
}

/* ---------- Candidate and role pages ---------- */
.dp-links, .dp-contact { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0 0; color: var(--text-2); }
.dp-links a, .dp-contact a { overflow-wrap: anywhere; }
.dp-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.dp-facts.ro-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dp-fact { padding: 14px 16px; min-width: 0; }
.dp-fact + .dp-fact { border-left: 1px solid var(--line); }
.dp-fact dt { font: 400 12px/1.4 var(--mono); color: var(--text-3); }
.dp-fact-value { margin: 4px 0 0; font: 500 16px/1.3 var(--sans); }
.dp-fact-value.is-empty { font-weight: 400; color: var(--text-3); }
.dp-fact-rule { margin: 2px 0 0; font-size: 13px; color: var(--text-3); }
.dp-check { margin-right: 4px; color: var(--ok); }
.dp-fact.is-miss .dp-fact-rule { color: var(--danger); font-weight: 500; }
.dp-call { position: sticky; top: 0; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 -8px 32px; padding: 12px 8px; background: var(--bg); border-bottom: 1px solid var(--line); }
.dp-call-label { margin: 0; display: grid; }
.dp-call-who { font: 400 12px/1.4 var(--mono); color: var(--text-3); }
.dp-call-where { font: 500 16px/1.3 var(--sans); }
.dp-days { margin-left: 8px; font: 400 12px/1 var(--mono); color: var(--text-3); }
.dp-days.is-stale { color: var(--warn); }
.dp-call-actions, .dp-call-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.dp-reject { position: relative; }
.dp-reject summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 36px; padding: 0 8px; color: var(--text-3); text-decoration: underline; }
.dp-reject summary::-webkit-details-marker { display: none; }
.dp-reject summary:hover, .dp-reject[open] summary { color: var(--danger); }
.dp-interview > summary.dp-btn { color: var(--text); text-decoration: none; padding: 8px 14px; }
.dp-when-open, .dp-reject[open] .dp-when-closed { display: none; }
.dp-reject[open] .dp-when-open { display: inline; }
.dp-reject-form { position: absolute; z-index: 5; top: calc(100% + 8px); right: 0; width: min(380px, 88vw); max-height: min(76vh, 720px); overflow-y: auto; display: grid; gap: 14px; padding: 20px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-card); box-shadow: var(--pop-shadow); }
.dp-reject-form label { display: grid; gap: 4px; font-weight: 500; }
.dp-reject-form select, .dp-reject-form input, .dp-reject-form textarea { width: 100%; font-weight: 400; }
.dp-optional, .dp-reject-note, .dp-interview-help, .dp-note-help { font-weight: 400; color: var(--text-3); font-size: 13px; margin: 0; }
.dp-body, .ro-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 48px; align-items: start; }
.dp-label { margin: 0 0 12px; font: 500 14px/1.4 var(--sans); }
.dp-overview p { margin: 0 0 14px; max-width: 68ch; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.dp-overview p:first-child { color: var(--text); font-size: 18px; line-height: 1.5; letter-spacing: -0.01em; }
.dp-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.dp-resume { margin-top: 40px; }
.dp-open, .dp-toggle { font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.dp-frame { display: block; width: 100%; height: min(78vh, 1000px); border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; }
.dp-empty { margin: 0; padding: 14px; border: 1px dashed var(--line-strong); border-radius: var(--r-card); color: var(--text-3); }
.dp-files { list-style: none; margin: 0; padding: 0; }
.dp-files a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; overflow-wrap: anywhere; }
.dp-files span { margin-right: 8px; font: 400 12px/1.4 var(--mono); color: var(--text-3); }
.dp-side { display: grid; gap: 32px; min-width: 0; }
.dp-passage { list-style: none; margin: 0; padding: 0; }
.dp-point { position: relative; padding: 0 0 20px 24px; }
.dp-point::before { content: ""; position: absolute; top: 14px; bottom: 0; left: 4px; width: 1px; background: var(--line-strong); }
.dp-point::after { content: ""; position: absolute; top: 5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--text); }
.dp-point:last-child::before { display: none; }
.dp-point.is-current::after { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.dp-point.is-ahead::after { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-strong); }
.dp-point.is-rejected::after { background: var(--danger); }
.dp-point-name { display: block; font-weight: 500; }
.dp-point.is-ahead .dp-point-name { color: var(--text-3); font-weight: 400; }
.dp-point-meta, .dp-asides li { display: block; font: 400 12px/1.5 var(--mono); color: var(--text-3); }
.dp-point-reason { display: block; margin-top: 4px; }
.dp-point-now { font: 500 12px/1.5 var(--mono); color: var(--accent); }
.dp-asides { list-style: none; margin: 4px 0 0; padding: 0; }
.dp-notes, .ro-chat { min-width: 0; }
.dp-note, .ro-msg { padding: 12px 14px; margin-bottom: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.dp-note.is-internal, .ro-msg.is-oxenham { background: var(--accent-soft); border-color: transparent; }
.dp-note-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 4px; }
.dp-note-author { font-weight: 500; }
.dp-note time, .dp-note-doc, .dp-note-edited, .ro-msg-org, .ro-msg-time { font: 400 12px/1.5 var(--mono); color: var(--text-3); margin: 0; }
.dp-note p:last-child, .ro-msg-body { margin: 0; }
.dp-note-form { display: grid; gap: 8px; margin-top: 12px; min-width: 0; justify-items: start; }
.dp-note-form textarea, .dp-note-form select { justify-self: stretch; }
.dp-note-tools { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; }
.dp-note-tool { flex: 1 1 100%; }
.dp-note-tool:not([open]) { flex: 0 0 auto; }
.dp-note-tool summary { cursor: pointer; font-size: 13px; color: var(--text-3); text-decoration: underline; list-style: none; }
.dp-note-tool summary::-webkit-details-marker { display: none; }
.dp-note-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.ro-chat-intro { margin: -4px 0 12px; color: var(--text-3); font-size: 13px; }
.ro-chat-list { list-style: none; margin: 0; padding: 0; }
.sg, .iv { margin-bottom: 40px; }
.sg-score { margin: 0; font: 400 12px/1.4 var(--mono); color: var(--text-3); }
.sg-bar { display: flex; gap: 3px; height: 6px; margin: 8px 0 12px; }
.sg-seg { flex: 1 1 0; border-radius: 2px; background: var(--line); }
.sg-seg.is-strong { background: var(--text); } .sg-seg.is-meets { background: var(--text-3); } .sg-seg.is-partial { background: var(--warn); } .sg-seg.is-gap { background: var(--danger); }
.sg-list { list-style: none; margin: 0; padding: 0; }
.sg-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sg-mark { display: none; }
.sg-level { font: 500 12px/1.6 var(--mono); color: var(--text-3); }
.is-strong .sg-level { color: var(--text); } .is-gap .sg-level { color: var(--danger); } .is-partial .sg-level { color: var(--warn); }
.sg-skill { font-weight: 500; }
.sg-evidence { grid-column: 2; color: var(--text-2); }
.iv { padding: 16px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-card); }
.iv-status { padding: 2px 6px; border-radius: 4px; font: 500 12px/1.4 var(--mono); background: var(--accent-soft); color: var(--accent); }
.iv-lead, .iv-when-label { margin: 0 0 8px; color: var(--text-3); }
.iv-when { margin: 0 0 12px; font: 600 20px/1.3 var(--sans); letter-spacing: -0.01em; }
.iv-when span { margin-left: 8px; font: 400 12px/1 var(--mono); color: var(--text-3); }
.iv-slots { list-style: none; margin: 0; padding: 0; }
.iv-slots li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.iv-slots time { font-weight: 500; }
.iv-slots form { margin: 0; }
.iv-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 12px 0 0; }
.iv-facts div { display: contents; }
.iv-facts dt { font: 400 12px/1.8 var(--mono); color: var(--text-3); }
.iv-facts dd { margin: 0; overflow-wrap: anywhere; }
.iv-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 12px 0 0; }
.iv-past { margin: -24px 0 40px; color: var(--text-3); }
.iv-past ul { list-style: none; margin: 0; padding: 0; }
.form-card { max-width: 440px; margin: 48px auto; }
.form-card h1 { margin-bottom: 16px; }
.form-card form p { display: grid; gap: 4px; margin: 0 0 16px; }
.form-card form label { font-weight: 500; }
.form-card form input { width: 100%; }
.form-card .helptext, .form-card form ul { font-size: 13px; color: var(--text-3); margin: 0; }
.form-card form ul { padding-left: 18px; }
.form-card .errorlist { list-style: none; padding: 0; color: var(--danger); }

/* ---------- Compare ---------- */
.cp-grid { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 12px; align-items: start; }
.cp-name { margin: 0; font: 600 20px/1.2 var(--sans); letter-spacing: -0.01em; }
.cp-name a { text-decoration: none; } .cp-name a:hover { text-decoration: underline; }
.cp-facts { margin: 16px 0; }
.cp-facts div { padding: 10px 0; border-top: 1px solid var(--line); min-height: 72px; }
.cp-facts dt, .cp-sub .mono { font: 400 12px/1.4 var(--mono); color: var(--text-3); }
.cp-facts dd { margin: 2px 0 0; font-weight: 500; }
.cp-rule { display: block; font-weight: 400; font-size: 13px; color: var(--text-3); }
.cp-facts .is-miss .cp-rule { color: var(--danger); }
.cp-sub { margin: 16px 0 4px; font: 500 14px/1.4 var(--sans); display: flex; justify-content: space-between; gap: 8px; }
.cp-skills { list-style: none; margin: 0; padding: 0; }
.cp-skills li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.cp-skills .is-gap .mono { color: var(--danger); } .cp-skills .is-partial .mono { color: var(--warn); }

@media (max-width: 1000px) { .dp-body, .ro-body { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
@media (max-width: 720px) {
  .dp-facts, .dp-facts.ro-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dp-fact:nth-child(odd) { border-left: 0; }
  .dp-fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .dp-call { position: static; flex-direction: column; align-items: stretch; }
  .dp-call-actions, .dp-call-form { flex-direction: column; align-items: stretch; }
  .dp-reject summary { justify-content: center; display: flex; }
  .dp-reject-form { position: static; width: auto; margin-top: 8px; }
  .dp-frame { display: none; }
  .cp-grid { grid-template-columns: minmax(0, 1fr); }
  .sg-row { grid-template-columns: minmax(0, 1fr); } .sg-evidence { grid-column: 1; }
}

/* ---------- Assistant preview (not connected to any AI) ---------- */
.as-mock summary { list-style: none; width: 100%; }
.as-mock summary::-webkit-details-marker { display: none; }
.as-panel { margin-top: 8px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: var(--r-card); display: grid; gap: 8px; justify-items: start; }
.as-panel p { margin: 0; }
.as-examples { margin: 0; padding-left: 18px; color: var(--text-2); }
