/* redesign-app.css — Pulpit C logged-in command center: dark band, card grid, inline detail, interview-prep kit. Part 3/3 of the former redesign.css; load base→landing→app. */

/* ============================================================
   Pulpit C — logged-in "command center" (design_handoff_pulpit_c)
   Dark command band + composer, card grid with inline detail,
   rows view for many matches.
   ============================================================ */

:root {
  --rd-dark: oklch(0.22 0.02 240);
  --rd-dark-2: oklch(0.27 0.02 240);
  --rd-dark-line: oklch(0.32 0.02 240);
  --rd-dark-line-2: oklch(0.36 0.02 240);
  --rd-dark-text: oklch(0.75 0.02 240);
  --rd-dark-muted: oklch(0.6 0.02 240);
  --rd-dark-muted-2: oklch(0.65 0.02 240);
  --rd-accent-on-dark: oklch(0.78 0.12 155);
  --rd-dot-on-dark: oklch(0.72 0.14 155);
}

/* In-app mode: the dark band carries its own header (logo / credits / avatar),
   so the shared site-header is hidden while the logged-in app is on screen. */
body.in-app .site-header { display: none !important; }

/* ── Dark command band ───────────────────────────────────── */
.rd-band { background: var(--rd-dark); color: #fff; font-family: var(--rd-sans); width: 100%; }
.rd-band a { cursor: pointer; }
.rd-band-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 32px; border-bottom: 1px solid var(--rd-dark-line); }
.rd-band-brand { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.rd-band-brand .rd-logo-mark { width: 24px; height: 24px; border-radius: 12px; }
.rd-band-word { font-family: var(--rd-display); font-weight: 600; font-size: 16px; letter-spacing: -0.3px; color: #fff; }
.rd-band-word .rd-tld { color: var(--rd-accent-on-dark); }
.rd-band-right { display: flex; align-items: center; gap: 14px; }
.rd-band-credits { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--rd-dark-text); }
.rd-band-credits .rd-spill-dot { background: var(--rd-dot-on-dark); }
.rd-band-credits.is-out { color: oklch(0.78 0.12 55); }
.rd-band-credits.is-out .rd-spill-dot { background: var(--rd-warn); }

/* avatar + dropdown menu (carries the old header file-menu functions) */
.rd-avatar-wrap { position: relative; }
.rd-avatar { width: 28px; height: 28px; border-radius: 14px; background: var(--rd-dark-2); border: 1px solid var(--rd-dark-line-2); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; font-family: var(--rd-display); cursor: pointer; flex-shrink: 0; padding: 0; }
.rd-avatar:hover { border-color: var(--rd-dark-muted); }
.rd-avatar-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px; background: var(--rd-surface); color: var(--rd-ink); border: 1px solid var(--rd-line); border-radius: 12px; box-shadow: 0 1px 2px rgba(20,30,50,0.06), 0 18px 40px -16px rgba(20,30,50,0.25); padding: 6px; display: none; z-index: 60; }
.rd-avatar-wrap.is-open .rd-avatar-menu { display: block; }
.rd-amenu-info { padding: 7px 10px; font-size: 12px; color: var(--rd-ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-amenu-item { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--rd-ink); background: none; border: none; cursor: pointer; font-family: inherit; text-decoration: none; box-sizing: border-box; }
.rd-amenu-item:hover { background: var(--rd-surface-alt); }
.rd-amenu-item.is-danger { color: var(--rd-danger); }
.rd-amenu-div { height: 1px; background: var(--rd-line-soft); margin: 5px 4px; }
.rd-amenu-lang { display: flex; gap: 4px; padding: 4px 10px 6px; }
.rd-amenu-lang button { flex: 1; border: 1px solid var(--rd-line); background: var(--rd-surface); border-radius: 7px; font-size: 11px; font-weight: 600; letter-spacing: 0.4px; color: var(--rd-ink-muted); padding: 5px 0; cursor: pointer; text-transform: uppercase; font-family: inherit; }
.rd-amenu-lang button.is-active { background: var(--rd-ink); border-color: var(--rd-ink); color: var(--rd-surface); }

/* band content: full (greeting + composer) vs slim (composer only) */
.rd-band-inner { max-width: 816px; margin: 0 auto; padding: 34px 28px; text-align: center; box-sizing: border-box; }
.rd-band.is-slim .rd-band-inner { max-width: 936px; padding: 20px 28px 24px; }
.rd-band-greet { font-family: var(--rd-display); font-size: 26px; font-weight: 500; letter-spacing: -0.6px; margin: 0 0 18px; color: #fff; line-height: 1.25; }
.rd-band-greet .rd-band-q { color: var(--rd-dark-muted-2); }

.rd-composer { display: flex; gap: 0; background: var(--rd-dark-2); border: 1px solid var(--rd-dark-line-2); border-radius: 13px; padding: 6px; box-shadow: 0 12px 32px -12px rgba(0,0,0,0.5); }
.rd-band.is-slim .rd-composer { border-radius: 12px; padding: 5px; }
.rd-composer-field { flex: 1; display: flex; align-items: center; gap: 11px; padding: 0 14px; min-width: 0; }
.rd-band.is-slim .rd-composer-field { padding: 0 13px; }
.rd-composer-icon { color: var(--rd-dark-muted); display: flex; flex-shrink: 0; }
.rd-composer input { flex: 1; min-width: 0; background: transparent; border: none; outline: none; font-family: var(--rd-mono); font-size: 13.5px; color: #fff; padding: 0; }
.rd-band.is-slim .rd-composer input { font-size: 13px; }
.rd-composer input::placeholder { color: var(--rd-dark-muted); }
.rd-composer-btn { background: var(--rd-accent); color: #fff; border: none; cursor: pointer; font-family: var(--rd-sans); font-weight: 600; font-size: 14px; padding: 12px 22px; border-radius: 9px; white-space: nowrap; }
.rd-band.is-slim .rd-composer-btn { font-size: 13.5px; padding: 10px 19px; border-radius: 8px; }
.rd-composer-btn:hover:not(:disabled) { background: var(--rd-accent-hover); }
.rd-composer-btn:disabled { background: var(--rd-dark-line-2); color: var(--rd-dark-muted); cursor: not-allowed; }

.rd-band-sub { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 13px; font-size: 12px; color: var(--rd-dark-muted); flex-wrap: wrap; }
.rd-band.is-slim .rd-band-sub { gap: 14px; margin-top: 10px; font-size: 11.5px; white-space: nowrap; }
.rd-band-sub a { color: var(--rd-dark-text); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.rd-band-sub .rd-band-cv { display: inline-flex; align-items: center; gap: 6px; }
.rd-band-sub .rd-band-cv svg { flex-shrink: 0; }

/* out of credits bar (under the composer) */
.rd-nocredits { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 14px; border-radius: 10px; background: oklch(0.3 0.04 55 / 0.4); border: 1px solid oklch(0.45 0.08 55); flex-wrap: wrap; justify-content: center; }
.rd-nocredits-msg { font-size: 12.5px; color: oklch(0.85 0.06 55); font-weight: 500; }
.rd-nocredits .rd-btn { font-size: 12px; padding: 6px 11px; border-radius: 7px; font-weight: 600; }
.rd-nocredits .rd-btn-white { background: #fff; color: oklch(0.2 0.02 240); border: none; }
.rd-nocredits .rd-btn-white:hover { background: oklch(0.93 0.005 240); }
.rd-nocredits .rd-btn-outline { background: transparent; color: oklch(0.85 0.06 55); border: 1px solid oklch(0.45 0.08 55); }

/* Persistent URL-fetch error banner (below the composer, dark band). */
.rd-url-error { display: inline-flex; align-items: center; gap: 12px; margin-top: 14px; padding: 9px 14px; border-radius: 10px; background: oklch(0.3 0.06 25 / 0.4); border: 1px solid oklch(0.45 0.1 25); flex-wrap: wrap; justify-content: center; }
.rd-url-error-msg { font-size: 12.5px; color: oklch(0.85 0.07 25); font-weight: 500; }
.rd-url-retry { background: transparent; color: oklch(0.88 0.07 25); border: 1px solid oklch(0.5 0.1 25); border-radius: 7px; font-family: var(--rd-sans); font-weight: 600; font-size: 12px; padding: 5px 11px; cursor: pointer; }
.rd-url-retry:hover { background: oklch(0.4 0.08 25 / 0.5); }

/* ── Light body / section ────────────────────────────────── */
.rd-cmain { max-width: 1076px; width: 100%; margin: 0 auto; padding: 26px 28px 40px; box-sizing: border-box; }
.rd-csec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rd-csec-title { font-family: var(--rd-display); font-size: 17px; font-weight: 600; letter-spacing: -0.3px; color: var(--rd-ink); white-space: nowrap; }
.rd-csec-meta { font-size: 12.5px; color: var(--rd-ink-muted); white-space: nowrap; }

/* ── Card grid ───────────────────────────────────────────── */
.rd-cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* company logo placeholder (2 letters) */
.rd-clogo { width: 36px; height: 36px; border-radius: 9px; background: var(--rd-surface-alt); border: 1px solid var(--rd-line); display: flex; align-items: center; justify-content: center; font-family: var(--rd-display); font-weight: 600; font-size: 12px; color: var(--rd-ink-soft); flex-shrink: 0; }
.rd-clogo.is-lg { width: 42px; height: 42px; border-radius: 10px; font-size: 13.5px; }
.rd-clogo.is-sm { width: 32px; height: 32px; border-radius: 8px; font-size: 11px; }

/* score pair: before (struck) → after */
.rd-scorepair { display: inline-flex; align-items: center; gap: 7px; font-family: var(--rd-display); font-weight: 600; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.rd-sp-before { color: var(--rd-ink-muted); text-decoration: line-through; text-decoration-color: var(--rd-line-strong); font-weight: 500; }
.rd-sp-arrow { color: var(--rd-ink-muted); display: inline-flex; }
.rd-sp-after { color: var(--rd-accent-ink); }

/* status pill */
.rd-spill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
.rd-spill-dot { width: 6px; height: 6px; border-radius: 3px; flex-shrink: 0; }
.rd-spill.is-new { background: var(--rd-accent-soft); color: var(--rd-accent-ink); }
.rd-spill.is-new .rd-spill-dot { background: var(--rd-accent); }
.rd-spill.is-dl { background: var(--rd-surface-alt); color: var(--rd-ink-muted); }
.rd-spill.is-review { background: var(--rd-warn-soft); color: var(--rd-warn); }
.rd-spill.is-tailoring { background: var(--rd-surface-alt); color: var(--rd-ink-muted); }
.rd-spill.is-error { background: var(--rd-danger-soft); color: var(--rd-danger); }

/* match card (overrides legacy .match-card look) */
.match-card.rd-ccard { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; flex-wrap: nowrap; gap: 13px; padding: 18px; background: var(--rd-surface); border: 1px solid var(--rd-line); border-radius: 12px; box-shadow: none; animation: none; cursor: pointer; margin: 0; }
.match-card.rd-ccard:hover { border-color: var(--rd-line-strong); }
.rd-ccard-top { display: flex; align-items: center; gap: 11px; min-width: 0; }
.rd-ccard-main { flex: 1; min-width: 0; }
.rd-ccard-title { font-size: 14px; font-weight: 600; color: var(--rd-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-ccard-co { font-size: 12px; color: var(--rd-ink-muted); margin-top: 1px; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; }
.rd-extlink { display: inline-flex; align-items: center; gap: 3px; color: var(--rd-ink-soft); cursor: pointer; text-decoration: none; flex-shrink: 0; }
.rd-extlink:hover { color: var(--rd-ink); }
.rd-ccard-ats { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.rd-ccard-ats-label { font-size: 11.5px; color: var(--rd-ink-muted); font-weight: 500; }
.rd-deltabar { position: relative; height: 6px; border-radius: 3px; background: var(--rd-line-soft); overflow: hidden; }
.rd-deltabar-after { position: absolute; left: 0; top: 0; bottom: 0; background: var(--rd-accent-soft); border-radius: 3px; }
.rd-deltabar-before { position: absolute; left: 0; top: 0; bottom: 0; background: var(--rd-accent); border-radius: 3px; }
.rd-ccard-btns { display: flex; gap: 8px; margin-top: 2px; }
.rd-cbtn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--rd-sans); font-size: 12px; font-weight: 600; padding: 7px 11px; border-radius: 7px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.rd-cbtn-primary { background: var(--rd-accent); color: #fff; }
.rd-cbtn-primary:hover:not(:disabled) { background: var(--rd-accent-hover); }
.rd-cbtn-ghost { background: var(--rd-surface); border-color: var(--rd-line); color: var(--rd-ink); font-weight: 500; }
.rd-cbtn-ghost:hover:not(:disabled) { background: var(--rd-surface-alt); }
.rd-cbtn:disabled { background: var(--rd-surface-alt); color: var(--rd-ink-muted); cursor: not-allowed; border-color: transparent; }

/* in-flight tailoring state inside a card */
.rd-ccard-progressrow { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--rd-ink-muted); min-width: 0; }
.rd-ccard-progressrow .rd-mono-label { font-family: var(--rd-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.rd-cprog { flex: 1; height: 6px; border-radius: 3px; background: var(--rd-line-soft); overflow: hidden; }
.rd-cprog-fill { width: 5%; height: 100%; background: var(--rd-accent); transition: width .3s; }
.match-card.rd-ccard.loading-card { cursor: default; pointer-events: auto; }

/* ── Rows view (many matches) ────────────────────────────── */
.rd-crows { display: flex; flex-direction: column; gap: 10px; }
.rd-crowcard { background: var(--rd-surface); border: 1px solid var(--rd-line); border-radius: 12px; overflow: hidden; }
.match-card.rd-crow { display: flex; align-items: center; flex-wrap: nowrap; justify-content: flex-start; gap: 13px; padding: 12px 18px; background: var(--rd-surface); border: none; border-bottom: 1px solid var(--rd-line-soft); border-radius: 0; box-shadow: none; animation: none; cursor: pointer; margin: 0; }
.match-card.rd-crow:last-child { border-bottom: none; }
.match-card.rd-crow:hover { background: var(--rd-surface-alt); }
.rd-crow-main { flex: 1; min-width: 0; }
.rd-crow-title { font-size: 13.5px; font-weight: 600; color: var(--rd-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-crow-co { font-size: 12px; color: var(--rd-ink-muted); margin-top: 1px; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; }
.rd-crow-pillcol { width: 158px; display: flex; justify-content: flex-start; flex-shrink: 0; }
.rd-crow-acts { display: flex; gap: 5px; flex-shrink: 0; }
.rd-crow-act { width: 30px; height: 30px; padding: 0; border-radius: 7px; border: 1px solid var(--rd-line); background: var(--rd-surface); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--rd-ink-muted); }
.rd-crow-act:hover:not(:disabled) { background: var(--rd-surface-alt); }
.rd-crow-act.is-accent { color: var(--rd-accent-ink); }
.rd-crow-act:disabled { color: var(--rd-line); cursor: not-allowed; }
.rd-crow-prog { width: 110px; height: 4px; border-radius: 2px; background: var(--rd-line-soft); overflow: hidden; flex-shrink: 0; }
.rd-crow-prog .rd-cprog-fill { height: 100%; }

/* ── Expanded detail tile ────────────────────────────────── */
.rd-cexp { grid-column: 1 / -1; background: var(--rd-surface); border: 1px solid var(--rd-exp-border); border-radius: 12px; padding: 20px 22px; box-shadow: 0 1px 2px rgba(20,30,50,0.04), 0 18px 40px -24px rgba(20,30,50,0.14); display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; flex-wrap: nowrap; gap: 0; margin: 0; animation: rd-expand .2s ease; }
@keyframes rd-expand { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.rd-cexp-head { display: flex; align-items: center; gap: 13px; min-width: 0; }
.rd-cexp-main { flex: 1; min-width: 0; }
.rd-cexp-titlerow { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rd-cexp-title { font-family: var(--rd-display); font-size: 16.5px; font-weight: 600; letter-spacing: -0.2px; color: var(--rd-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-cexp-co { font-size: 12.5px; color: var(--rd-ink-muted); margin-top: 2px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rd-cexp-posting { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--rd-ink-soft); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.rd-cexp-collapse { width: 32px; height: 32px; padding: 0; border-radius: 8px; border: 1px solid var(--rd-line); background: var(--rd-surface); color: var(--rd-ink-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.rd-cexp-collapse:hover { background: var(--rd-surface-alt); }
.rd-cexp-collapse svg { transform: rotate(-90deg); }

/* review body */
.rd-cexp-body { margin-top: 16px; }
.rd-cexp-revhead { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.rd-cexp-eyebrow { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 600; white-space: nowrap; color: var(--rd-ink-muted); }
.rd-cexp-eyebrow.is-accent { color: var(--rd-accent-ink); }
.rd-cexp-prog { flex: 1; height: 4px; border-radius: 2px; background: var(--rd-line-soft); overflow: hidden; }
.rd-cexp-prog-fill { height: 100%; background: var(--rd-accent); border-radius: 2px; transition: width .25s ease-out; }
.rd-cexp-count { font-size: 12px; font-weight: 600; color: var(--rd-ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }

.rd-prop { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--rd-line-soft); }
.rd-prop-main { flex: 1; min-width: 0; }
.rd-prop-text { font-size: 13px; line-height: 1.5; color: var(--rd-ink); }
.rd-prop.is-decided .rd-prop-text { color: var(--rd-ink-soft); }
.rd-prop.is-rejected .rd-prop-text { text-decoration: line-through; text-decoration-color: color-mix(in oklch, var(--rd-danger) 45%, transparent); }
.rd-prop-plus { font-family: var(--rd-mono); color: var(--rd-accent-ink); font-weight: 600; margin-right: 6px; }
.rd-prop-basis { font-size: 11.5px; color: var(--rd-ink-muted); margin-top: 3px; }
.rd-prop-acts { display: flex; gap: 6px; flex-shrink: 0; }
.rd-prop-btn { width: 32px; height: 32px; padding: 0; border-radius: 8px; border: 1px solid transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.rd-prop-btn.is-yes { background: var(--rd-accent); color: #fff; }
.rd-prop-btn.is-yes:hover { background: var(--rd-accent-hover); }
.rd-prop-btn.is-no { background: var(--rd-surface); border-color: var(--rd-line); color: var(--rd-ink-soft); }
.rd-prop-btn.is-no:hover { background: var(--rd-surface-alt); }
.rd-prop-decided { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.rd-prop-mark { font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.rd-prop-mark.is-kept { color: var(--rd-accent-ink); }
.rd-prop-mark.is-dropped { color: var(--rd-ink-muted); }
.rd-prop-undo { background: var(--rd-surface); border: 1px solid var(--rd-line); border-radius: 7px; font-size: 12px; padding: 5px 10px; color: var(--rd-ink-muted); cursor: pointer; font-family: inherit; }
.rd-prop-undo:hover { background: var(--rd-surface-alt); color: var(--rd-ink); }

/* post-review body */
.rd-cexp-changes { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.rd-cexp-changes li { display: flex; gap: 9px; font-size: 13px; line-height: 1.5; color: var(--rd-ink-soft); }
.rd-cexp-changes li .rd-li-check { color: var(--rd-accent-ink); display: flex; margin-top: 3px; flex-shrink: 0; }
.rd-cexp .rd-chips { margin-top: 13px; }
.rd-cexp .rd-chip { border-radius: 6px; padding: 4px 9px; font-weight: 500; font-size: 11.5px; }
.rd-cexp .rd-chip-add { background: var(--rd-accent-soft); color: var(--rd-accent-ink); }
.rd-cexp .rd-chip-kept { background: var(--rd-surface-alt); color: var(--rd-ink-soft); border: none; }
.rd-cexp .rd-chip-gap { background: var(--rd-warn-soft); color: var(--rd-warn); }
/* Soft-claim keyword: approved-but-unbacked — accent-tinted, distinct from the ⚠ gap chip. */
.rd-chip-soft { background: var(--rd-accent-soft); color: var(--rd-accent-ink); }
.rd-cexp .rd-chip-soft { background: var(--rd-accent-soft); color: var(--rd-accent-ink); }
.rd-cexp-gapline { font-size: 12px; color: var(--rd-ink-soft); line-height: 1.55; margin-top: 10px; }
.rd-cexp-softline { color: var(--rd-accent-ink); }

/* foot */
.rd-cexp-foot { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rd-line-soft); flex-wrap: wrap; }
.rd-cexp-foot .rd-cbtn { flex: 0 0 auto; font-size: 13px; padding: 9px 18px; border-radius: 9px; }
.rd-cexp-hint { font-size: 11.5px; color: var(--rd-ink-muted); margin-left: auto; text-align: right; }

/* ── Empty state: first match in 3 steps ─────────────────── */
.rd-howhead { text-align: center; margin: 10px 0 18px; font-family: var(--rd-display); font-size: 17px; font-weight: 600; letter-spacing: -0.3px; color: var(--rd-ink); }
.rd-howsteps { display: flex; gap: 14px; }
.rd-howstep { flex: 1; background: var(--rd-surface); border: 1px solid var(--rd-line); border-radius: 12px; padding: 18px; }
.rd-howstep-num { width: 28px; height: 28px; border-radius: 14px; background: var(--rd-accent-soft); color: var(--rd-accent-ink); display: flex; align-items: center; justify-content: center; font-family: var(--rd-display); font-weight: 600; font-size: 13px; margin-bottom: 12px; }
.rd-howstep-title { font-size: 13.5px; font-weight: 600; color: var(--rd-ink); margin-bottom: 4px; }
.rd-howstep-sub { font-size: 12.5px; color: var(--rd-ink-soft); line-height: 1.5; }

/* error / mismatch cards rendered by app.js inside the grid */
.rd-cgrid .match-card:not(.rd-ccard):not(.rd-crow), .rd-crows .match-card:not(.rd-ccard):not(.rd-crow) { grid-column: 1 / -1; background: var(--rd-surface); border: 1px solid var(--rd-line); border-radius: 12px; box-shadow: none; animation: none; margin: 0; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .rd-band-header { padding: 12px 18px; }
  .rd-band-inner { padding: 26px 18px; }
  .rd-band.is-slim .rd-band-inner { padding: 16px 18px 20px; }
  .rd-cmain { padding: 20px 18px 36px; }
  .rd-cgrid { grid-template-columns: 1fr; }
  .rd-howsteps { flex-direction: column; }
  .rd-crow-pillcol { width: auto; }
  .rd-composer { flex-direction: column; gap: 6px; }
  .rd-composer-field { padding: 10px 12px 4px; }
  .rd-composer-btn { width: 100%; }
  .rd-cexp-head { flex-wrap: wrap; }
  .rd-cexp-foot { flex-direction: column; align-items: stretch; }
  .rd-cexp-hint { margin-left: 0; text-align: left; }
}

/* Very narrow (≈390px): give the expanded-card header room so the status pill
   and the score pair never collide — score drops to its own full-width row,
   the pill wraps under the title. */
@media (max-width: 440px) {
  .rd-cexp-head { flex-wrap: wrap; row-gap: 10px; align-items: flex-start; }
  .rd-cexp-main { flex: 1 1 calc(100% - 90px); }
  .rd-cexp-titlerow { flex-wrap: wrap; row-gap: 6px; }
  .rd-cexp-title { white-space: normal; }
  .rd-cexp-head > .rd-scorepair { order: 3; flex-basis: 100%; }
  /* Rows list: wrap so the score + status pill drop to a second line instead of
     colliding with the title / action buttons. */
  .match-card.rd-crow { flex-wrap: wrap; row-gap: 6px; }
  .rd-crow-main { order: 1; }
  .rd-crow-acts { order: 2; margin-left: auto; }
  .rd-crow > .rd-scorepair { order: 3; }
  .rd-crow-pillcol { order: 4; width: auto; margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .rd-cexp { animation: none; }
  .rd-cexp-prog-fill, .rd-cprog-fill { transition: none; }
}

/* ============================================================
   Guest band nav — back-to-landing + language toggle rendered
   by AppUI.renderBand() for guests inside the dark band.
   ============================================================ */
.rd-band .rd-lang { background: var(--rd-dark-2); border-color: var(--rd-dark-line-2); }
.rd-band .rd-lang button { color: var(--rd-dark-muted-2); }
.rd-band .rd-lang button.is-active { background: oklch(0.93 0.005 240); color: oklch(0.22 0.02 240); }

.rd-band-backlink {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; border: 1px solid var(--rd-dark-line-2);
  color: var(--rd-dark-text); font-family: var(--rd-sans); font-size: 12.5px; font-weight: 500;
  padding: 6px 12px; border-radius: 8px; cursor: pointer;
  text-decoration: none; white-space: nowrap;
}
.rd-band-backlink:hover { background: var(--rd-dark-line); color: #fff; }

/* Link-styled <button> (a11y replacement for clickable <a> without href) —
   inherits the surrounding text color, e.g. band sub-links. */
.rd-linklike {
  background: none; border: none; padding: 0; margin: 0;
  font: inherit; color: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
.rd-band-sub .rd-linklike { color: var(--rd-dark-text); }
.rd-band-sub .rd-linklike:hover { color: #fff; }

/* ============================================================
   Interview-prep kit — collapsible section in the expanded
   match detail tile (app-ui-detail.js).
   ============================================================ */
.rd-cexp-prep { margin-top: 16px; border-top: 1px solid var(--rd-line-soft); }
.rd-prep-toggle {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 14px 0 0; background: none; border: none; cursor: pointer;
  font-family: inherit; text-align: left; color: var(--rd-ink);
}
.rd-prep-toggle .rd-cexp-eyebrow { color: var(--rd-accent-ink); }
.rd-prep-toggle svg { margin-left: auto; color: var(--rd-ink-muted); flex-shrink: 0; transition: transform .15s; }
.rd-prep-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.rd-prep-toggle:hover .rd-cexp-eyebrow { color: var(--rd-accent); }
.rd-prep-count { font-size: 12px; font-weight: 600; color: var(--rd-ink-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

.rd-prep-body { padding: 14px 0 4px; display: flex; flex-direction: column; gap: 20px; }
.rd-prep-body[hidden] { display: none; }
.rd-prep-sec p { font-size: 13px; line-height: 1.55; color: var(--rd-ink-soft); margin: 0 0 8px; }
.rd-prep-sec p:last-child { margin-bottom: 0; }
.rd-prep-sec-title {
  font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase;
  font-weight: 600; color: var(--rd-ink-soft); margin-bottom: 9px;
}
.rd-prep-sec-title.is-sub { font-size: 11px; letter-spacing: 1px; color: var(--rd-ink-muted); margin: 12px 0 7px; }
.rd-prep-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rd-prep-q { font-size: 13px; line-height: 1.5; color: var(--rd-ink); padding: 9px 12px; background: var(--rd-surface-alt); border-radius: 8px; }

/* STAR pointer nested under a matched question (or standalone) */
.rd-prep-star {
  margin-top: 9px; padding: 11px 12px;
  background: var(--rd-surface); border: 1px solid var(--rd-line); border-radius: 8px;
  display: flex; flex-direction: column; gap: 6px;
}
.rd-prep-star-row { display: flex; gap: 10px; font-size: 12.5px; line-height: 1.5; color: var(--rd-ink-soft); }
.rd-prep-star-label {
  flex-shrink: 0; min-width: 68px; padding-top: 2px;
  font-size: 10.5px; letter-spacing: 0.8px; text-transform: uppercase;
  font-weight: 600; color: var(--rd-accent-ink);
}
.rd-prep-source {
  font-size: 11.5px; font-style: italic; color: var(--rd-ink-muted);
  border-top: 1px dashed var(--rd-line); padding-top: 7px; margin-top: 3px;
}

/* ============================================================
   Passkey management list (settings modal, app-ui.js)
   ============================================================ */
.rd-pk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rd-pk-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--rd-surface); border: 1px solid var(--rd-line); border-radius: 10px;
}
.rd-pk-row svg { color: var(--rd-ink-muted); flex-shrink: 0; }
.rd-pk-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--rd-ink); }
.rd-pk-meta .rd-muted { font-size: 12px; }
.rd-pk-actions { display: flex; gap: 6px; flex-shrink: 0; }
.rd-pk-actions .rd-btn-ghost:hover { color: var(--rd-danger); border-color: color-mix(in oklch, var(--rd-danger) 45%, transparent); background: var(--rd-danger-soft); }
/* empty / error state inside the passkey list */
.rd-pk-empty { padding: 18px 14px; text-align: center; font-size: 13px; color: var(--rd-ink-muted); background: var(--rd-surface-alt); border-radius: 10px; }

/* ============================================================
   Legal / long-form static pages (privacy_policy.html)
   ============================================================ */
.rd-legal { max-width: 800px; margin: 0 auto; padding: 40px 0 72px; }
.rd-legal h1 { font-family: var(--rd-display); font-size: 40px; font-weight: 500; letter-spacing: -1.2px; line-height: 1.1; color: var(--rd-ink); margin: 0 0 10px; }
.rd-legal h2 { font-family: var(--rd-display); font-size: 24px; font-weight: 500; letter-spacing: -0.5px; color: var(--rd-ink); margin: 40px 0 12px; }
.rd-legal h3 { font-size: 17px; font-weight: 600; color: var(--rd-ink); margin: 24px 0 8px; }
.rd-legal p, .rd-legal li { font-size: 15px; line-height: 1.65; color: var(--rd-ink-soft); }
.rd-legal p { margin: 0 0 14px; }
.rd-legal ul, .rd-legal ol { margin: 0 0 14px; padding-left: 22px; }
.rd-legal li { margin-bottom: 6px; }
.rd-legal strong { color: var(--rd-ink); }
.rd-legal a { color: var(--rd-accent-ink); }
.rd-legal .rd-legal-updated { font-size: 13px; color: var(--rd-ink-muted); margin-bottom: 32px; }
.rd-legal .rd-legal-summary {
  background: var(--rd-accent-soft); border: 1px solid color-mix(in oklch, var(--rd-accent) 35%, transparent);
  border-radius: 12px; padding: 18px 20px; margin: 24px 0 8px;
}
.rd-legal .rd-legal-summary p, .rd-legal .rd-legal-summary li { color: var(--rd-ink); }
.rd-legal .rd-legal-table-wrap { overflow-x: auto; margin: 14px 0 20px; }
.rd-legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.rd-legal th, .rd-legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rd-line-soft); vertical-align: top; line-height: 1.5; }
.rd-legal th { color: var(--rd-ink-muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.rd-legal td { color: var(--rd-ink-soft); }
@media (max-width: 640px) {
  .rd-legal { padding: 24px 0 56px; }
  .rd-legal h1 { font-size: 30px; }
  .rd-legal h2 { font-size: 20px; }
}

/* ============================================================
   Keyboard focus visibility (a11y) — scoped to redesign +
   modal surfaces so embedded/legacy widgets keep native rings.
   ============================================================ */
.rd-landing :focus-visible,
.rd-band :focus-visible,
.rd-view :focus-visible,
.overlay :focus-visible,
.modal :focus-visible {
  outline: 2px solid var(--rd-accent);
  outline-offset: 2px;
}
.rd-band :focus-visible { outline-color: var(--rd-accent-on-dark); }
