/* v25 (6 Oct 2026): IBM Plex Sans, self-hosted (SIL OFL 1.1, site/fonts/OFL.txt): one variable
   file for the upright weights, one for the italic. */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-var.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #0f1720;
  --muted: #596676;
  --line: #e3e5e9;
  --paper: #f7f7f5;
  --surface: #ffffff;
  --surface-even: #fbfbfc; /* opaque equivalent of the even-row tint, for sticky cells */
  --navy: #00223d;          /* v25 brand navy: the landing, the sidebar, the mark's tile */
  --navy-raised: #0b3155;   /* cards on navy */
  --navy-active: #163351;   /* the active sidebar item */
  --navy-line: #1d4060;     /* borders on navy */
  --accent: #b23f76;        /* buttons: the primary action */
  --accent-strong: #9c3466;
  --accent-icon: #c44e8a;   /* the flying wing */
  --accent-tint: #f7ecf2;
  --cyan: #42b8c8;          /* eyebrows and links on navy */
  --cream: #f3f4ef;         /* text on navy */
  --on-navy-muted: #afb8c7;
  --on-navy-label: #90a4ba;
  --steel: #596676;
  --blue: #1a7f8e;          /* links on light surfaces: the cyan, darkened to read on white */
  --aqua: #42b8c8;
  --gold: #b23f76;
  --amber: #d6a93f;
  --info: #2f6f9f;
  --risk: #a14d45;
  --shadow: 0 18px 55px rgba(0, 34, 61, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "IBM Plex Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

button, input {
  font: inherit;
}

.hidden { display: none !important; }

.login-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 28px 56px 26px;
  background: var(--navy);
  color: var(--cream);
}

.login-panel {
  width: min(420px, 100%);
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(255,255,255,0.38);
  box-shadow: var(--shadow);
  padding: 34px;
  border-radius: 8px;
}

.login-panel h1 {
  margin: 0 0 24px;
  font-size: 28px;
  letter-spacing: 0;
}

.login-panel label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin-top: 16px;
}

.login-panel input {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  background: #fbfcfd;
  color: var(--ink);
}

.login-panel button,
.logout-btn {
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  background: var(--navy);
  color: white;
  padding: 11px 16px;
  font-weight: 800;
}

.login-panel button {
  width: 100%;
  margin-top: 24px;
}

.login-error {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--risk);
  font-size: 13px;
}

.app-shell {
  min-height: 100vh;
}

.top-nav {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr auto;
  align-items: stretch;
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-right: 1px solid var(--line);
}

.brand-block strong {
  display: block;
  font-size: 16px;
  line-height: 1.1;
}

.brand-block span:not(.brand-dot) {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.position-tabs {
  display: flex;
  align-items: stretch;
  min-width: 0;
  overflow-x: auto;
}

.position-tab {
  min-width: 160px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #f1f3f5;
  color: var(--navy);
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.position-tab .pos-sub {
  font-weight: 600;
  font-size: 10.5px;
  color: rgba(32, 59, 90, 0.55);
  letter-spacing: 0.01em;
}

.position-tab.active .pos-sub { color: rgba(255, 255, 255, 0.60); }

.position-tab.active {
  background: var(--navy);
  color: white;
}

.logout-btn {
  align-self: center;
  margin: 0 16px;
  background: #eef1f4;
  color: var(--navy);
}

.hero-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;   /* one shared centerline: title, workflow steps, buttons */
  gap: 24px;
  padding: 26px 32px;
  background: var(--navy);
  color: #fff;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--cyan);   /* the brand cyan (v25), off the berry palette (QA-57) */
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 900;
}

.hero-strip h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
  letter-spacing: 0;
  color: #fff;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  min-width: min(520px, 52vw);
}

.hero-metrics div {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  padding: 14px 16px;
}

.hero-metrics span {
  display: block;
  font-size: 24px;
  font-weight: 900;
  color: #fff;
}

.hero-metrics small {
  color: rgba(255,255,255,0.66);
  font-weight: 700;
}

.workspace {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: calc(100vh - 170px);
}

.candidate-rail {
  background: #edf0f2;
  border-right: 1px solid var(--line);
  padding: 18px 12px;
}

.candidate-tab {
  width: 100%;
  display: block;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  text-align: left;
  padding: 11px 12px;
  margin-bottom: 6px;
  cursor: pointer;
  color: var(--navy);
  font-weight: 800;
}

.candidate-tab small {
  display: block;
  color: var(--muted);
  font-weight: 700;
  margin-top: 2px;
}

.candidate-tab.active {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 0 8px 22px rgba(18,31,48,0.08);
}

.content-panel {
  padding: 26px 30px 42px;
  min-width: 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.section-head h3 {
  margin: 0;
  font-size: 22px;
}

.filter-stack {
  display: flex;
  gap: 8px;
  align-items: center;
}

.candidate-id {
  font-weight: 900;
  color: var(--navy);
}

.score-pill,
.band-pill,
.route-pill {
  display: inline-flex;
  align-items: center;
  min-width: 58px;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 9px;
  font-weight: 900;
  background: #e8f1f4;
  color: var(--navy);
}

.band-pill {
  min-width: 118px;
  background: #F7ECF2;
  color: #A6397A;
}

.route-pill {
  min-width: 112px;
  background: #eef1f4;
  color: var(--steel);
}

.mini-bars {
  display: grid;
  gap: 5px;
  width: 130px;
}

.mini-bar {
  height: 7px;
  border-radius: 999px;
  background: #e4e9ed;
  overflow: hidden;
}

.mini-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--aqua));
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.4fr);
  gap: 22px;
  align-items: stretch;
}

.right-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.profile-card,
.detail-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile-card {
  padding: 24px;
}

.profile-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.profile-top h3 {
  margin: 0 0 6px;
  font-size: 28px;
}

.profile-top p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.gauge {
  width: 146px;
  height: 146px;
  border-radius: 50%;
  background: conic-gradient(var(--gauge-color, var(--steel)) calc(var(--rf) * 1%), #e5ebef 0);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.gauge.risk-low { --gauge-color: #2f8f6b; }
.gauge.risk-mid { --gauge-color: var(--info); }
.gauge.risk-elev { --gauge-color: var(--amber); }
.gauge.risk-high { --gauge-color: var(--risk); }

.gauge-inner {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  text-align: center;
  padding: 6px;
}

.gauge-num {
  display: block;
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
}

.gauge-cap {
  display: block;
  margin-top: 6px;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.summary-line {
  margin: 22px 0;
  font-size: 18px;
  line-height: 1.35;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat strong {
  display: block;
  margin-top: 5px;
  font-size: 21px;
}

.detail-card {
  padding: 22px;
}

.detail-card h4 {
  margin: 0 0 15px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--steel);
}

.bar-row {
  display: grid;
  grid-template-columns: 150px 1fr 44px;
  gap: 12px;
  align-items: center;
  margin-bottom: 13px;
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  background: #e3e8ed;
  overflow: hidden;
}

.bar-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--navy), var(--blue), var(--aqua));
}

.notes-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notes-list li {
  border-left: 4px solid var(--gold);
  background: #FBF6F9;
  padding: 12px 14px;
  border-radius: 0 8px 8px 0;
}

.watchout {
  border-left-color: var(--risk) !important;
}

/* --- Risk factor accents --- */
.risk-low { color: #2f8f6b; }
.risk-mid { color: var(--info); }
.risk-elev { color: #9b7b33; }
.risk-high { color: var(--risk); }

.section-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  max-width: 70ch;
}

.muted-line {
  color: var(--muted);
  font-weight: 700;
}

.candidate-tab small strong { font-weight: 900; }

.risk-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 13px;
  font-weight: 900;
  background: #eef1f4;
}
.risk-pill.risk-low { background: #e2f1ea; color: #2f7a5c; }
.risk-pill.risk-mid { background: #e6f0f6; color: #2c5f86; }
.risk-pill.risk-elev { background: #f4eedd; color: #8a6d2f; }
.risk-pill.risk-high { background: #f6e6e4; color: #9a443c; }

/* --- Traffic lights --- */

/* --- All view: traffic-light table --- */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--surface);
}

/* --- Individual view: capability profile --- */
.profile-lights { display: grid; gap: 2px; }
.profile-light-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
}
.profile-light-row:last-child { border-bottom: 0; }
.pl-name { font-size: 14px; font-weight: 700; }

/* --- Individual view: missing scorecard evidence --- */
.missing-items {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.missing-items-label {
  display: block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--steel);
  margin-bottom: 4px;
}

/* --- Individual view: strengths / risk factors --- */
.factor-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 22px;
}

.factor-empty { color: var(--muted); }

/* --- Recommended next check callout --- */
.next-check {
  margin: 20px 0 0;
  padding: 14px 16px;
  background: #f4f7fa;
  border: 1px solid #dce4ec;
  border-radius: 8px;
}
.next-check-label {
  display: block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--steel);
  margin-bottom: 5px;
}
.next-check p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}
.next-check-lead {
  font-weight: 700;
}
.next-check-list {
  margin: 10px 0 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
}
.next-check-list li {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}

.stat strong.stat-light {
  font-size: 14px;
  margin-top: 7px;
}

/* --- Salary chart --- */
.chart-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.chart-wrap { position: relative; width: 100%; margin-top: 10px; flex: 1 1 auto; min-height: 180px; }
.salary-chart { width: 100%; height: 100%; display: block; overflow: visible; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-axis { fill: var(--muted); font-size: 11px; font-weight: 700; }
.chart-area { stroke: none; }
.chart-line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.chart-dot {
  fill: var(--surface);
  stroke: var(--blue);
  stroke-width: 2.5;
  cursor: pointer;
  transition: r 0.1s ease;
}
.chart-dot.active { fill: var(--gold); stroke: var(--navy); r: 6.5; }

.chart-tip {
  position: absolute;
  transform: translate(-50%, calc(-100% - 14px));
  background: var(--navy);
  color: #fff;
  padding: 9px 12px;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(18,31,48,0.28);
  pointer-events: none;
  white-space: nowrap;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.chart-tip strong { font-size: 15px; font-weight: 900; }
.chart-tip span { font-size: 12px; color: rgba(255,255,255,0.82); font-weight: 600; }
.chart-tip .tip-co { color: #E38FBC; font-weight: 700; }
.chart-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--navy);
}

/* --- Add tabs --- */
.position-tab.add-tab {
  min-width: 130px;
  background: #EEF2F7;
  color: var(--blue);
  font-weight: 900;
}
.position-tab.add-tab:hover { background: #E2E9F1; }

.candidate-tab.add-tab {
  border: 1px dashed var(--line);
  color: var(--blue);
  text-align: center;
  margin-top: 4px;
}
.candidate-tab.add-tab:hover { background: var(--surface); }

/* --- Empty state --- */
.empty-state {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 48px 24px;
  text-align: center;
  max-width: 520px;
  margin: 40px auto;
}
.empty-state h3 { margin: 0 0 8px; }
.empty-state .section-sub { margin: 0 auto 20px; }

/* --- Buttons --- */
.btn-primary {
  border: 0;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  padding: 11px 18px;
  font-weight: 800;
  cursor: pointer;
}
.btn-secondary {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--navy);
  padding: 11px 18px;
  font-weight: 800;
  cursor: pointer;
}

/* --- Modal --- */
.modal-root.hidden { display: none; }
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18,31,48,0.55);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 20px;
}
.modal-box {
  position: relative;
  width: min(480px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 30px;
}
.modal-box h3 { margin: 0 0 8px; font-size: 20px; }
.modal-box:focus { outline: none; }   /* the box takes focus only as the trap's anchor */
.modal-close {
  position: sticky;
  top: 0;
  float: right;
  margin: -16px -16px 0 0;
  z-index: 5;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}
.modal-form { margin-top: 18px; display: grid; gap: 14px; }
.modal-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.modal-form input,
.modal-form select,
.modal-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fbfcfd;
  color: var(--ink);
  font-family: inherit;
}
.modal-form textarea { resize: vertical; }
.modal-form .field-note { margin: -6px 0 0; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-form textarea.field-ignored { opacity: 0.55; }

/* Document-type picker (scorecard modal): existing scorecard / job description */
.doc-kind-row {
  border: 0;
  margin: 0;
  padding: 0;
}
.doc-kind-row legend {
  padding: 0;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.modal-form .doc-kind-row .dk-opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 16px;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
}
.modal-form .doc-kind-row input[type="radio"] {
  display: inline-block;
  width: auto;
  margin: 0;
  padding: 0;
  accent-color: var(--steel);
}
.modal-error {
  min-height: 18px;
  margin: 0;
  color: var(--risk);
  font-size: 13px;
  font-weight: 700;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}
.modal-processing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px 0 6px;
  color: var(--muted);
  font-weight: 700;
}
.spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--blue);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.transcript-placeholder p { margin: 0 0 10px; line-height: 1.5; }

/* --- Transcript viewer --- */
.modal-box-wide { width: min(760px, 100%); }
.transcript-view { margin-top: 14px; }
.transcript-file {
  display: inline-block;
  margin-bottom: 8px;
  border-radius: 999px;
  padding: 4px 12px;
  background: #eef1f4;
  color: var(--steel);
  font-size: 12px;
  font-weight: 800;
}
.transcript-text {
  margin: 0;
  max-height: 55vh;
  overflow: auto;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink);
}

/* --- Profile completeness / meta --- */
.profile-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 16px 0 0;
}
.completeness {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 160px;
  min-width: 140px;
}
.completeness-track {
  width: 90px;
  height: 8px;
  border-radius: 999px;
  background: #e4e9ed;
  overflow: hidden;
}
.completeness-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--aqua));
}
.completeness-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  white-space: nowrap;
}
.profile-meta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.meta-link,
.meta-btn {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--navy);
  cursor: pointer;
}
.meta-link { color: var(--blue); border-color: #CBD9E8; background: #EEF3F8; }
.meta-btn-action { color: #A6397A; border-color: #E3BBD2; background: #F7ECF2; }

/* --- Extraction API banner --- */
.api-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 20px;
  background: #faf6ea;
  border-bottom: 1px solid #ecdfb8;
  color: #8a6d2f;
  font-size: 13.5px;
  font-weight: 700;
}
.api-banner-close {
  border: 0;
  background: transparent;
  color: #8a6d2f;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

/* --- Board: category signal-ball columns --- */

/* Slate accessibility (BF-25): sortable headers are real buttons, rows take keyboard
   focus, and every signal dot carries hidden text plus a faint glyph so colour is
   not the only carrier. */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Slate amber: #b07d14 reads 3.6:1 against white and carries the white glyph at
   3.6:1 — the palette's #d6a93f is 2.2:1, below WCAG 1.4.11 for a status dot. */
.board-table .cat-dot.tl-mid { background: #b07d14; }

/* Styled hover popup for category column headers */

.rail-running {
  color: #2c5f86;
  font-weight: 800;
  animation: chip-pulse 1.2s ease-in-out infinite;
}

/* --- Run-backed profile card --- */
.profile-grid-single { grid-template-columns: 1fr; }
.profile-grid-single .profile-card .profile-top { align-items: center; }

/* --- Extraction area (candidate page) --- */
.extraction-section { margin-top: 22px; }
.extraction-card { padding: 22px; }

.extraction-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 34px 24px;
  text-align: center;
}
.extraction-empty h3 { margin: 0 0 8px; }
.extraction-empty .section-sub { margin: 0 auto 18px; }

.ext-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 14px;
}
.ext-head h4 { margin: 0 0 6px; }
.ext-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
}
.ext-timer-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 10px 16px;
  min-width: 160px;
  text-align: right;
  flex: 0 0 auto;
}
.ext-timer-tile span {
  display: block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.ext-timer-tile strong {
  display: block;
  margin-top: 3px;
  font-size: 22px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}
.ext-timer-tile.ext-timer-done { background: #e6f0f6; border-color: #cfe0ea; }
.ext-timer-tile.ext-timer-done strong { color: #2c5f86; }
.ext-timer-tile.ext-timer-stalled { background: #f6e6e4; border-color: #e6cfcb; }
.ext-timer-tile.ext-timer-stalled strong { color: #9a443c; }

.ext-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.book-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.bs-pending { background: #eef1f4; color: var(--muted); }
.bs-running { background: #e6f0f6; color: #2c5f86; animation: chip-pulse 1.2s ease-in-out infinite; }
.bs-ok { background: #e2f1ea; color: #2f7a5c; }
.bs-failed { background: #f6e6e4; color: #9a443c; }
.bs-truncated { background: #f4eedd; color: #8a6d2f; }
@keyframes chip-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.ext-stats {
  margin: 0 0 14px;
  padding: 10px 14px;
  background: #f4f7fa;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  color: var(--steel);
  font-size: 13px;
  font-weight: 700;
}

/* Narrative prose being written after the board completes */
.category-elaborating {
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(90deg, #8a94a0 30%, #cdd4db 50%, #8a94a0 70%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: elaborate-shimmer 1.6s linear infinite;
}
@keyframes elaborate-shimmer {
  to { background-position: -200% 0; }
}

.family-note {
  margin: 4px 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.family-note-running { color: #2c5f86; animation: chip-pulse 1.2s ease-in-out infinite; }
.family-note-error { color: #9a443c; }
.family-note-warn { color: #8a6d2f; }

.coverage-block {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 6px;
}

.cov-chip {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 800;
  margin: 2px 6px 2px 0;
}
.cov-on { background: #e2f1ea; color: #2f7a5c; }
.cov-off { background: #eef1f4; color: var(--muted); }

@media (max-width: 920px) {
  .top-nav { grid-template-columns: 1fr; position: relative; }
  .brand-block { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 64px; }
  /* stacked header: pin the chip + menu to the top-right corner, on the brand row */
  .nav-right { position: absolute; top: 12px; right: 12px; }
  .nav-right .menu-wrap { margin: 0 0 0 10px; }
  .hero-strip { align-items: stretch; flex-direction: column; padding: 24px 18px; }
  .hero-metrics { min-width: 0; width: 100%; }
  .workspace { grid-template-columns: 1fr; }
  .candidate-rail { border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; white-space: nowrap; }
  .candidate-tab { display: inline-block; width: auto; min-width: 120px; margin-right: 6px; }
  .content-panel { padding: 20px 14px 32px; overflow-x: auto; }
  .profile-grid { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .factor-columns { grid-template-columns: 1fr; }
  .ext-head { flex-direction: column; }
  .ext-timer-tile { text-align: left; }
  
}

/* ---- six-outcome lights + strengths / watch-outs (v2.1 five-run mode) ---- */

.outcome-note { font-size: 11.5px; color: var(--muted); margin: 8px 0 0; }

/* ---- AI scorecard pre-process (step gate + scorecard views) ---- */
.scorecard-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sc-steps {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.sc-step {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 240px;
}

.sc-step strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
}

.sc-step small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  margin-top: 2px;
}

/* Per-step detail line under the step label (workflow strip). */
.sc-step .sc-step-detail {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  margin-top: 2px;
}

.sc-step-num {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--paper);
  margin-top: 1px;
}

.sc-step-done .sc-step-num { background: #e2f1ea; border-color: #bcdccd; color: #2f7a5c; }
.sc-step-active .sc-step-num { background: var(--navy); border-color: var(--navy); color: #fff; }
.sc-step-failed .sc-step-num { background: #f6e6e4; border-color: #e0b9b4; color: #9a443c; }
.sc-step-locked { opacity: 0.62; }

.sc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-small { padding: 7px 12px; font-size: 12.5px; }

.sc-done-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  margin: 4px 0 14px;
}

.sc-summary-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.sc-summary-head strong { font-size: 15px; }
.sc-summary-head span { color: var(--muted); font-size: 12.5px; }

.sc-outcome-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.sc-outcome {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--paper);
}

.sc-outcome strong { font-size: 13px; }

.sc-outcome p {
  margin: 5px 0 8px;
  font-size: 12.5px;
  color: var(--steel);
  line-height: 1.4;
}

.sc-outcome ul {
  margin: 0;
  padding-left: 17px;
}

.sc-outcome li {
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 3px;
  color: var(--ink);
}

.sc-fineprint {
  color: var(--muted);
  font-size: 11.5px;
  margin: 12px 0 0;
}

/* ---- Elaborating status: visible motion (pulse + travelling dots) ---- */
.category-elaborating { animation: elab-pulse 1.6s ease-in-out infinite; }

@keyframes elab-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.elab-dots { display: inline-block; margin-left: 2px; }

.elab-dots i {
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-left: 3px;
  border-radius: 50%;
  background: currentColor;
  animation: elab-dot 1.2s ease-in-out infinite;
}

.elab-dots i:nth-child(2) { animation-delay: 0.2s; }
.elab-dots i:nth-child(3) { animation-delay: 0.4s; }

@keyframes elab-dot {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

/* ---- In-flight per-family results: skeleton cards ---- */

.skeleton-line {
  height: 10px;
  border-radius: 4px;
  margin-top: 10px;
  background: linear-gradient(90deg, #e8ecf0 25%, #f4f6f8 45%, #e8ecf0 65%);
  background-size: 200% 100%;
  animation: skeleton-sweep 1.4s linear infinite;
}

.skeleton-short { width: 55%; }

@keyframes skeleton-sweep {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Source note: the scorecard was built from the client's own scorecard document */
.sc-source-note {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--steel);
}

/* ---- Skill ranking (must-have / nice-to-have + required CL) ---- */
.sc-req-line {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--steel);
}

.rk-must { background: var(--navy); color: #F1F1F1; }
.rk-nice { background: #e6eaee; color: #526a7c; }

.sc-ranking { margin-top: 16px; }

.sc-ranking h5 { margin: 0 0 8px; font-size: 13px; }

.sc-ranking-sub { font-weight: 400; color: var(--muted); font-size: 11.5px; margin-left: 6px; }

.rk-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.rk-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}

.rk-item:last-child { border-bottom: none; }

.rk-item > div { flex: 1; }

.rk-item small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }

.rk-rank {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--steel);
  font-size: 10.5px;
  font-weight: 600;
  display: grid;
  place-items: center;
  margin-top: 1px;
}

/* ---- Scorecard match tile (candidate page) ---- */
.match-block {
  margin: 14px 0 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.match-grid {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}

.match-verdict {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
}

.match-row { font-size: 12px; }

.match-row span { display: block; color: var(--muted); font-size: 11px; }

.match-row strong { font-size: 15px; font-variant-numeric: tabular-nums; }

.match-row small { display: block; color: var(--muted); font-size: 10.5px; }

.match-row small.match-neg { color: var(--risk); }
.match-row small.match-pos { color: #2f7a5c; }

/* ---- UX pass ---- */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

button:disabled { opacity: 0.45; cursor: not-allowed; }

.position-tabs { overflow-x: auto; scrollbar-width: thin; }

.hero-metrics span { font-variant-numeric: tabular-nums; }

.candidate-rail { max-height: calc(100vh - 210px); overflow-y: auto; scrollbar-width: thin; }

.rail-count {
  display: inline-block;
  min-width: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #e6eaee;
  color: var(--steel);
  font-size: 10.5px;
  text-align: center;
  margin-left: 4px;
}

.candidate-tab.active .rail-count { background: rgba(255, 255, 255, 0.22); color: #fff; }

/* The even-row tint above is translucent and outranks .sticky-name, so the sticky
   name column showed the cells scrolling underneath it. Keep it opaque (and keep
   the hover shade winning) with equally specific rules. */

/* ---- Scorecard editor ---- */
.ed-outcome {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: var(--paper);
}

.ed-outcome-head { display: flex; gap: 8px; align-items: center; }

.ed-outcome-head .ed-out-name { flex: 1; font-weight: 600; }

.ed-outcome input, .ed-activity input {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 12.5px;
  background: var(--surface);
  width: 100%;
}

.ed-out-desc { margin-top: 8px; }

.ed-acts { margin-top: 10px; display: grid; gap: 6px; }

.ed-activity { display: flex; gap: 6px; align-items: center; }

.ed-activity .ed-act-text { flex: 1; }

.ed-activity select {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 4px;
  font-size: 12px;
  background: var(--surface);
  color: var(--ink);
}

.ed-remove {
  flex: none;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.ed-remove:hover { color: var(--risk); border-color: var(--risk); }

.ed-add-activity { margin-top: 10px; }

#edOutcomes { margin-bottom: 10px; }

.sc-edited-flag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  vertical-align: 3px;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 9px;
  background: #eee7d8;
  color: #7a6231;
}

/* ---- Unified in-flight/final results layout ---- */

/* ---- Live activity feed on the stats dashboard (2026-09-01) ---- */
.activity-list { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; }

.activity-row {
  display: grid;
  grid-template-columns: 110px 110px 210px 1fr;
  gap: 10px;
  padding: 6px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  align-items: baseline;
}

.activity-row:last-child { border-bottom: none; }

.act-time { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.act-org { color: var(--steel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.act-user { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.act-action { color: var(--ink); }

.activity-pulse {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #2f7a5c; margin-left: 6px; vertical-align: middle;
  animation: actpulse 2s ease-in-out infinite;
}

@keyframes actpulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---- Top-line strip at the head of the analysis (2026-08-30) ---- */

/* ---- Per-skill match table (book_skills) ---- */

/* Collapsed per-outcome signal summary (2026-08-30): one line per scorecard
   outcome; per-skill rows no longer render client-side. */

td.match-neg { color: var(--risk); }
td.match-pos { color: #2f7a5c; }

/* ---- Skill scorecard lights + outcome boxes (H/M/L + drivers) ---- */

.skl-skeleton { max-width: 560px; }

/* ---- Slate alignment + skill column labels ---- */

/* .slate-table td (type+class) outranks .cat-cell — match its specificity */

/* ---- Archive (roles + candidates) ---- */
.tab-archived { opacity: 0.55; }

.rail-archived-toggle {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 6px 8px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 11px;
  text-align: left;
  cursor: pointer;
  border-radius: 6px;
}

.rail-archived-toggle:hover { background: #eceff2; color: var(--steel); }

.rail-archived-toggle.on { color: var(--blue); }

/* ---- Archive browser ---- */
.archive-tab { opacity: 0.75; }

.arch-head {
  margin: 14px 0 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.arch-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 8px; }

.arch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.arch-row:last-child { border-bottom: none; }

.arch-row small { display: block; color: var(--muted); font-size: 11px; }

/* ---- Danger actions (candidate deletion, member deactivation) ---- */
.btn-danger {
  border: 0;
  border-radius: 6px;
  background: #9a443c;
  color: #fff;
  padding: 11px 18px;
  font-weight: 800;
  cursor: pointer;
}
.btn-danger:hover { background: #83362f; }
.meta-btn-danger { color: #9a443c; border-color: #e0b9b4; background: #f6e6e4; }

/* ---- People panel (org admin) ---- */
.people-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}
.people-confirm { color: #9a443c; font-size: 11.5px; max-width: 250px; text-align: right; }

/* ---- Top-right menu + profile ---- */
.menu-wrap { position: relative; }

.menu-btn {
  width: 40px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.menu-btn:hover { background: var(--paper); }

.menu-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 150px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 50;
  padding: 6px;
}

.menu-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: none;
  background: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink);
}

.menu-dropdown button:hover { background: var(--paper); }

.prof-account { margin-bottom: 4px; }

.prof-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  font-size: 13px;
}

.prof-row span { color: var(--muted); min-width: 90px; }

.prof-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin: 6px 0 4px;
}

.prof-stats div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.prof-stats strong { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }

.prof-stats span { font-size: 11px; color: var(--muted); }

.prof-billing-row { display: flex; gap: 10px; }

.prof-billing-row label { flex: 1; }

.bill-note-flash { color: var(--gold) !important; font-weight: 600; }

/* ---- Header alignment: pin the menu centered in the corner at all widths ---- */
.menu-wrap {
  align-self: center;
  justify-self: end;
  margin: 0 16px;
}

/* stacked header (narrow): chip + menu pinned to the brand row's corner — must
   come after the base rules so the cascade resolves in their favor */
@media (max-width: 920px) {
  .nav-right { position: absolute; top: 12px; right: 12px; }
  .nav-right .menu-wrap { margin: 0 0 0 10px; }
}

/* ---- Accounts + credit (sign-up, chip, billing) ------------------------------------------- */
.login-alt {
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--muted);
  text-align: center;
}
.login-alt a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}
.login-alt a:hover { text-decoration: underline; }
.login-note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}

.credit-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.credit-chip:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 14px rgba(18, 31, 48, 0.10);
}
.credit-chip-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.credit-chip.credit-low {
  border-color: rgba(161, 77, 69, 0.55);
  background: #fdf3f1;
  color: var(--risk);
}
.credit-chip.credit-low .credit-chip-label { color: var(--risk); }

.amt-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: -4px 0 4px;
}
.amt-chip {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 5px 12px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--steel);
  cursor: pointer;
}
.amt-chip:hover {
  border-color: var(--gold);
  color: var(--ink);
}

.bill-gate-note {
  margin: 4px 0 12px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(185, 149, 88, 0.5);
  background: #fbf6ec;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.5;
}

.bill-success {
  text-align: center;
  padding: 18px 6px 6px;
}
.bill-check {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #e7f0e7;
  color: #3f7048;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bill-success p {
  font-size: 0.95rem;
  color: var(--ink);
}
.bill-success .modal-actions { justify-content: center; }

.prof-ledger-wrap {
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.prof-ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.prof-ledger th {
  position: sticky;
  top: 0;
  background: var(--paper);
  text-align: left;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}
.prof-ledger td {
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.prof-ledger tbody tr:last-child td { border-bottom: none; }
.prof-ledger .led-neg { color: var(--risk); font-weight: 600; white-space: nowrap; }
.prof-ledger .led-pos { color: #3f7048; font-weight: 600; white-space: nowrap; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.88rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 300;
  max-width: min(480px, 90vw);
}
.toast.toast-in {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Right side of the header: credit chip + menu as one grid item */
.nav-right {
  display: flex;
  align-items: center;
  align-self: center;
  justify-self: end;
}

/* ===== 2026-08-20: workflow strip in the navy band, guide/feedback, hwtw layout ===== */

.hero-strip { align-items: center; }
.hero-title { flex: none; max-width: 300px; }
.hero-workflow { flex: 1 1 auto; min-width: 0; }

.hero-workflow .scorecard-panel.hero-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  margin-bottom: 0;
  padding: 10px 14px;
}
.hero-panel .sc-steps { gap: 16px; }
.hero-panel .sc-step { max-width: 200px; }
.hero-panel .sc-step strong { color: #fff; font-size: 12px; }
.hero-panel .sc-step small { color: rgba(255, 255, 255, 0.62); font-size: 10.5px; }
.hero-panel .sc-step-num {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.85);
  width: 20px; height: 20px; font-size: 10.5px;
}
.hero-panel .sc-step-done .sc-step-num { background: #2f7a5c; border-color: #2f7a5c; color: #fff; }
.hero-panel .sc-step-active .sc-step-num { background: var(--accent); border-color: var(--accent); color: #fff; }
.hero-panel .sc-step-failed .sc-step-num { background: #9a443c; border-color: #9a443c; color: #fff; }
.hero-panel .sc-step-locked { opacity: 0.5; }
.hero-panel .btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.hero-panel .btn-secondary:hover { background: rgba(255, 255, 255, 0.12); }
.hero-strip :focus-visible { outline-color: #fff; }
.hero-panel .btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }

@media (max-width: 1100px) {
  .hero-strip { flex-wrap: wrap; }
  .hero-workflow { order: 3; width: 100%; flex-basis: 100%; }
}

/* Candidate chips (data quality, coverage, interviews) */
.cand-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 14px; }

/* Interview strip on multi-transcript candidates */
.iv-strip { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 2px; }
.iv-chip {
  font-size: 11.5px; border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 10px; background: var(--paper); color: var(--muted);
}
.iv-chip.iv-done { color: #2f7a5c; border-color: #bcdccd; }
.iv-chip.iv-running { color: #2c5f86; border-color: #cfe0ea; animation: chip-pulse 1.2s ease-in-out infinite; }
.iv-chip.iv-failed { color: #9a443c; border-color: #e0b9b4; }

/* Tailwinds / Headwinds */

/* Outcome signals */

/* Guide + feedback modals */
.guide-scroll { max-height: 62vh; overflow-y: auto; padding-right: 8px; margin-top: 6px; }
.guide-h { margin: 18px 0 8px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.guide-summary { font-style: italic; font-size: 13.5px; margin: 6px 0 4px; }

.guide-activity { margin: 3px 0 6px; font-size: 12px; color: var(--muted); }
.guide-qs { margin: 4px 0 0; padding: 0; list-style: none; }
.guide-q { position: relative; padding: 2.5px 0 2.5px 18px; font-size: 12.5px; line-height: 1.5; }
.guide-q::before {
  content: ""; position: absolute; left: 4px; top: 9px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--navy);
}

.look-for { color: var(--muted); font-style: italic; font-weight: 400; font-size: 0.92em; }

.fb-tabs { display: flex; gap: 6px; margin: 4px 0 6px; }
.fb-tab {
  border: 1px solid var(--line); background: var(--paper); border-radius: 999px;
  padding: 5px 13px; font-size: 12px; cursor: pointer;
}
.fb-tab:hover { border-color: var(--navy); }
.fb-tab.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Candidate guide coverage list */
.cg-list { margin: 0; padding: 0; list-style: none; }
.cg-item { display: flex; align-items: center; gap: 9px; padding: 4.5px 0; font-size: 12.5px; border-bottom: 1px dashed var(--line); }

.cg-label { flex: 1 1 auto; }

/* ===== 2026-08-20 (later): unboxed strip, archive block, analysis progress, chips ===== */

/* The workflow steps stand on their own in the navy band — no box. */
.hero-workflow .scorecard-panel.hero-panel {
  background: none;
  border: none;
  padding: 0;
}
.hero-panel .sc-actions { margin-top: 8px; }

/* Archive-role block sits with the metrics. */
.hero-metrics { grid-template-columns: repeat(3, auto); min-width: 0; }

/* Generic analysis progress (replaces the internal pass chips). */
.ana-progress { margin: 6px 0 4px; }
.ana-bar {
  height: 6px; border-radius: 999px; background: var(--paper);
  border: 1px solid var(--line); overflow: hidden;
}
.ana-bar span { display: block; height: 100%; background: var(--navy); transition: width 0.6s ease; border-radius: 999px; }
.ana-progress small { color: var(--muted); font-size: 11.5px; display: block; margin-top: 4px; }

/* Clickable data-quality chip. */

/* ===== 2026-08-20 (night): archive pill, progress elements, driver bullets ===== */

.cand-chip .cat-dot { flex: none; }

.sc-modal-bar { width: 260px; margin: 10px auto 2px; }

/* ===== Top risks block (replaces the outcome-signal cards) ===== */

.risk-outcomes { margin: 6px 0 0; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: #9a443c; font-weight: 700; }

/* ===== Unread signal: soft gold pulse on ready-but-unopened documents ===== */
.unread-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold, #A6397A); margin-left: 7px; vertical-align: middle;
  animation: unread-pulse 2.4s ease-in-out infinite;
}
@keyframes unread-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(166, 57, 122, 0.45); }
  50% { box-shadow: 0 0 0 4px rgba(166, 57, 122, 0); }
}
.candidate-tab .unread-dot { margin-left: 5px; }

/* ===== hero metrics never shrink below content (the workflow column wraps instead) ===== */
.hero-metrics { flex: none; }
.hero-title { flex: none; max-width: 340px; min-width: 0; }
/* Long role titles wrap inside their column and scale down — they must never
   paint over the workflow strip (2026-08-25 fix). */
.hero-title h2 { white-space: normal; overflow-wrap: break-word; line-height: 1.06; }
.hero-title h2.hero-title-long { font-size: clamp(20px, 2.2vw, 30px); }

/* ===== document popups: prominent, easy-to-hit close ===== */
.modal-close {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 22px; line-height: 1;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
  margin: -8px -8px 0 8px;
  cursor: pointer;
}
.modal-close:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ===== Archive tile: identical chrome to the metric tiles beside it ===== */
.hero-metrics div.hero-metric-action { padding: 0; }
.hero-metric-action button {
  display: block; width: 100%; height: 100%;
  background: none; border: 0; padding: 14px 16px;
  font: inherit; text-align: left; cursor: pointer; border-radius: 8px;
}
.hero-metric-action button:hover { background: rgba(255, 255, 255, 0.06); }
.hero-metric-action button span {
  display: block; font-size: 24px; font-weight: 900; color: #fff;
}
.hero-metric-action button small { color: rgba(255, 255, 255, 0.66); font-weight: 700; }

/* ===== Analyzing tile: centered ===== */
.ext-timer-tile { text-align: center; }

/* ===== Skill-column headers: uniform alignment regardless of title length ===== */

/* ===== Full-width analysis progress bar under the title ===== */
.ana-full-bar { margin: 10px 0 14px; height: 5px; }
.ext-timer-tile .ana-live-step {
  display: block; margin-top: 3px; font-size: 10px; color: var(--muted);
  text-transform: none; letter-spacing: 0;
}

/* ===== Rename candidate ===== */
.rename-btn {
  border: none; background: none; cursor: pointer; font-size: 15px;
  color: var(--muted); margin-left: 6px; padding: 2px 6px; border-radius: 6px;
  vertical-align: 2px;
}
.rename-btn:hover { color: var(--navy); background: var(--paper); }

/* ===== Steps: label vertically centered on the check mark (subtitles are gone) ===== */
.hero-panel .sc-step { align-items: center; }
.hero-panel .sc-step-num { margin-top: 0; }

/* ===== Analysis tabs (Aggregated / Transcript #N) ===== */
.ana-tabs { display: flex; gap: 6px; margin: 0 0 12px; flex-wrap: wrap; }
.tx-block { margin-bottom: 14px; }

/* ===== Transcript tabs above the candidate card, role-tab style ===== */
.ana-tabs { display: none; }
.cand-doc-tabs { display: flex; gap: 4px; padding: 0 0 0 2px; position: relative; z-index: 2; }
.cand-doc-tab {
  border: 1px solid var(--line); border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: var(--paper); color: var(--muted);
  font: inherit; font-size: 12.5px; font-weight: 600;
  padding: 9px 18px 8px; cursor: pointer;
  margin-bottom: -1px;
}
.cand-doc-tab:hover { color: var(--ink); }
.cand-doc-tab.active {
  background: var(--surface); color: var(--ink);
  border-bottom: 1px solid var(--surface);
}
.cand-doc-tabs + .profile-grid .profile-card { border-top-left-radius: 0; }
.iv-strip { display: none; }

/* ===== Aggregating card + transcript accordion ===== */
.ana-indeterminate span {
  display: block; height: 100%; width: 30%; border-radius: 999px;
  background: var(--navy); animation: ana-slide 1.4s ease-in-out infinite;
}
@keyframes ana-slide { 0% { margin-left: 0; } 50% { margin-left: 70%; } 100% { margin-left: 0; } }
.tx-acc { border: 1px solid var(--line); border-radius: 8px; margin: 8px 0; background: var(--surface); }
.tx-acc summary {
  cursor: pointer; padding: 11px 14px; font-weight: 600; font-size: 13px;
  list-style-position: inside;
}
.tx-acc summary:hover { color: var(--navy); }
.tx-acc[open] summary { border-bottom: 1px solid var(--line); }
.tx-acc .transcript-text, .tx-acc .family-note { margin: 10px 14px; }

/* ===== + Add transcript tab, styled like + New role ===== */
.cand-doc-tab.cand-doc-add {
  color: var(--blue, #336BA9); background: none; border-color: transparent;
  font-weight: 700;
}
.cand-doc-tab.cand-doc-add:hover { color: var(--navy); background: var(--paper); border-color: var(--line); }

/* ===== 2026-08-24 revision round: content tabs, data-quality tab, T&C gate ===== */

.profile-top-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.profile-top-right .btn-small { white-space: nowrap; }
.meta-btn-quiet { font-size: 12px; padding: 6px 10px; opacity: 0.85; }
.tx-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.content-tabs {
  display: flex;
  gap: 0;
  margin-top: 14px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.content-tab {
  border: 0;
  background: transparent;
  color: var(--navy);
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.content-tab.active { border-bottom-color: var(--gold, #A6397A); }
.content-tab:disabled { opacity: 0.45; cursor: default; }
.content-tab:hover:not(:disabled):not(.active) { border-bottom-color: var(--line); }

/* Data-quality tab */

.dq-grid-wrap { display: flex; align-items: center; gap: 10px; max-width: 560px; margin: 6px 0 10px; }
.dq-ylab { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12px; font-weight: 700; color: #6a7686; }
.dq-xlab { display: none; }
.dq-grid { display: grid; grid-template-columns: 64px repeat(3, 1fr); gap: 3px; flex: 1; }
.dq-grid::after { content: "Depth"; grid-column: 2 / 5; text-align: center; font-size: 12px; font-weight: 700; color: #6a7686; padding-top: 6px; }
.dq-collab, .dq-rowlab { font-size: 11.5px; font-weight: 700; color: #6a7686; align-self: center; }
.dq-collab { text-align: center; padding-bottom: 4px; }
.dq-rowlab { text-align: right; padding-right: 8px; }
.dq-cell {
  position: relative;
  border-radius: 5px;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15.5px;
  cursor: default;
}
.dq-cell-you {
  outline: 3px solid #E38FBC;
  outline-offset: 1.5px;
  box-shadow: 0 0 0 6px rgba(227, 143, 188, 0.55);
  z-index: 1;
}
.dq-you-chip {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #E38FBC;
  color: #203B5A;
  font-size: 9.5px;
  font-weight: 800;
  border-radius: 4px;
  padding: 1px 7px;
  white-space: nowrap;
}
.dq-mini { font-size: 12px; color: #445263; margin-left: 12px; }
/* Breadth-only marker (depth not measured): a band along the breadth row across
   every depth column, overlaying the explicitly placed cells; never a cell. */
.dq-band {
  position: relative;
  z-index: 2;
  pointer-events: none;
  border-radius: 6px;
  outline: 3px solid #E38FBC;
  outline-offset: -1px;
  box-shadow: 0 0 0 6px rgba(227, 143, 188, 0.45);
  background: rgba(227, 143, 188, 0.14);
}
.dq-state { margin: 6px 0 0; font-size: 12.5px; font-weight: 700; color: #445263; }
.dq-admin { margin: 6px 0 0; font-size: 11.5px; color: #6a7686; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* T&C gate */
.tc-shell { max-width: 660px; }
.tc-scroll {
  max-height: 46vh;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #2c3a4d;
  background: #fafbfc;
  white-space: pre-wrap;
}
.tc-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.tc-row label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }

/* outcomes-first skill table */

/* Content tabs + panel share one white block (2026-08-24 item 3) */
.extraction-section { margin-top: 14px; }
.content-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.content-shell .content-tabs {
  margin-top: 0;
  padding: 6px 18px 0;
  background: var(--surface);
}
.content-shell .detail-card,
.content-shell .extraction-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}
#contentBody > .skl-skeleton, #contentBody > p.family-note { padding: 18px 22px; margin: 0; }
.tx-meta-row { display: flex; gap: 14px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tx-meta-row .tx-meta-date { color: #6a7686; font-size: 12px; }

/* Transcript viewer (2026-09-08: stored transcripts are shown and downloadable) */
.tx-block { margin-bottom: 14px; }
.tx-block .tx-meta-row { border-bottom: none; }
.tx-meta-row .tx-actions { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tx-erase-btn { color: #9a443c; border-color: #e0b9b4; }
.tx-erase-btn:hover { background: #f6e6e4; }
/* Inline confirmation for erasing one transcript (the analysis stays) */
.tx-confirm {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 6px 0 8px;
  padding: 8px 12px;
  border: 1px solid #e0b9b4;
  border-radius: 8px;
  background: #f6e6e4;
  color: #5a2d28;
  font-size: 12.5px;
  line-height: 1.45;
}
.tx-confirm-actions { margin-left: auto; display: flex; gap: 6px; }
.tx-confirm .modal-error:empty { display: none; }
.tx-confirm .modal-error { flex-basis: 100%; min-height: 0; }
.tx-confirm .btn-danger, .rt-row .btn-danger { padding: 7px 12px; font-size: 12.5px; }
/* Delete-candidate dialog: the explicit transcript-erasure request */
.del-tx-opt { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; font-size: 13px; line-height: 1.45; cursor: pointer; }
.del-tx-opt input { margin: 3px 0 0; flex: none; }
.del-tx-note { margin: 4px 0 0 24px; color: var(--muted); font-size: 12px; line-height: 1.45; max-width: 70ch; }
/* Retained transcripts list (menu › Transcripts) */
.rt-row .rt-pos { color: var(--muted); font-size: 12px; }
.rt-row small { line-height: 1.45; }
.tx-text {
  max-height: 46vh;
  overflow-y: auto;
  margin: 4px 0 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfc;
  color: #2c3a4d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tx-block .family-note { margin: 8px 0 4px; }

/* Mobile: transcript tab row wraps instead of running off-screen (2026-08-24) */
@media (max-width: 700px) {
  .cand-doc-tabs { flex-wrap: wrap; row-gap: 4px; }
  .cand-doc-tab { border-radius: 8px; border-bottom: 1px solid var(--line); margin-bottom: 0; }
  .content-tabs { flex-wrap: wrap; }
}
.ext-head-actions { display: flex; gap: 8px; align-items: center; }

/* ---- Email identity: add-email banner, invite/reset copyable links (2026-08-30) ---- */
.email-banner {
  background: #eef3f8;
  border-bottom: 1px solid #cbd9e8;
  color: var(--blue, #203b5a);
}
.email-banner-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.email-banner-form input {
  padding: 6px 10px;
  border: 1px solid #cbd9e8;
  border-radius: 7px;
  font: inherit;
  font-weight: 500;
  min-width: 210px;
}
.copy-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.copy-link-row input {
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid var(--line, #dde5ec);
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--muted, #5b6b7b);
  background: #f8fafb;
}
.invite-status {
  font-size: 0.86rem;
  color: var(--muted, #5b6b7b);
  line-height: 1.45;
}
.invite-status:empty { display: none; }

/* ---- Platform stats dashboard (internal user_stats account) ---- */
.stats-shell {
  max-width: 1180px;
  width: 100%;
  margin: 26px auto;
  padding: 0 26px;
  display: grid;
  gap: 18px;
}

.stats-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.stats-controls label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.stats-controls input[type="date"] {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
  background: var(--surface);
  color: var(--ink);
}

.stats-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.stats-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

@media (max-width: 980px) {
  .stats-cols { grid-template-columns: 1fr; }
}

/* Platform statistics table (admin stats page): the generic table rules the slate used to carry. */
.stats-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 8px;
  overflow: hidden;
}

.stats-table th,
.stats-table td {
  padding: 14px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.stats-table th {
  color: var(--muted);
  background: #f7f8f9;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stats-table tr:last-child td { border-bottom: 0; }
.stats-table tbody tr { cursor: pointer; }
.stats-table tbody tr:hover { background: #f8fafb; }
.stats-table { box-shadow: none; }
.stats-table tbody tr { cursor: default; }
.stats-table th,
.stats-table td { padding: 10px 11px; }

/* ---- Live recordings (Recall notetaker) ---------------------------------- */
.cand-mode-toggle {
  display: flex;
  gap: 6px;
  margin: 2px 0 14px;
  padding: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.cand-mode-btn {
  flex: 1;
  padding: 8px 10px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.cand-mode-btn.active {
  background: var(--surface);
  color: var(--navy);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(18, 31, 48, 0.10);
}

/* ---- Product identity (D2): name stacked over an italic tagline, no logo ---- */
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
  display: block;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--ink);
  white-space: nowrap;
}
.brand-tagline { font-style: italic; }
.login-panel h1.brand-name { margin: 0; font-size: 26px; white-space: normal; }
.login-panel .brand-tagline { margin: 2px 0 22px; font-size: 14px; color: var(--muted); }
.login-panel .login-brand {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Hero tile whose value is a phrase ("Pilot access") rather than a number */
.hero-metrics span.hero-metric-text { font-size: 16px; line-height: 1.25; padding-top: 4px; }
/* A longer phrase (the first-run unlock copy, the zero state; item 7) wraps inside the tile */
.hero-metrics span.hero-metric-text.hero-metric-long { font-size: 13px; font-weight: 600; max-width: 240px; white-space: normal; }
/* Checkbox rows: the Profile notification setting (item 34) and the invite dialog's role list (item 8) */
.prof-check { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 4px 0; cursor: pointer; }
.prof-check input { width: auto; margin: 0; }
.invite-roles { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin: 0 0 12px; }
.invite-roles legend { font-size: 13px; font-weight: 600; padding: 0 4px; }

/* Add candidate: first / last name side by side; retention wording behind "Learn more" */
.modal-form .name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.learn-more-note {
  margin: -4px 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.5;
}
.modal-form .field-intro { margin: 4px 0 -4px; }
.org-invite-head { margin-top: 20px; }

/* ---- Mobile (<=640px): overlap fixes — keep LAST so cascade order wins ---- */
@media (max-width: 640px) {
  /* the pinned credit chip + menu overlay the brand row's right side;
     the tagline runs under them — hide it on phones */
  .brand-block span:not(.brand-dot) { display: none; }
  .nav-right { top: 10px; right: 10px; }
  .login-shell { padding: 16px; }
  .login-panel { padding: 26px 20px; }
  .hero-strip { padding: 20px 14px; }
  /* overrides the late repeat(3, auto) rule that beats the 920px block */
  .hero-metrics { grid-template-columns: repeat(2, 1fr); width: 100%; }
}

/* ===== 2026-09-22 site step 2: three tabs (Early Read / Data Quality & Sample Questions /
   Interviewer Feedback), candidate list instead of the slate, generating state ===== */

/* The "All" rail item: a plain candidate list, newest first (L1). */
.cand-list { list-style: none; margin: 10px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.cand-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.cand-row:last-child { border-bottom: none; }
.cand-row:hover, .cand-row:focus-visible { background: #f8fafb; outline: none; }
.cand-row:focus-visible { box-shadow: inset 0 0 0 2px var(--navy); }
.cand-row .muted-line { display: block; margin-top: 3px; }
.cand-row-right { display: flex; align-items: center; gap: 12px; flex: none; }
.cand-row-pending { cursor: default; }
.cand-row-pending:hover { background: var(--surface); }

/* Early Read sections (Tab 1): bullets only. */
.er-section { margin-top: 18px; }
.er-section:first-child { margin-top: 6px; }
.er-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.er-item { position: relative; padding-left: 18px; font-size: 13px; line-height: 1.5; }
.er-item::before { content: ""; position: absolute; left: 3px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--navy); }
.er-item strong { display: block; font-size: 13.5px; color: var(--ink); }
.er-item p { margin: 2px 0 0; color: #2c3a4d; }
.er-legend { margin: 10px 0 0; font-size: 11.5px; color: var(--muted); }
.er-note { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.er-sub { margin: 14px 0 6px; font-size: 13px; font-weight: 700; color: var(--ink); }

/* Early Read cards (v20 series, item 1 of 25 Sep): two columns of cards, positive
   case left and risk signals right, then the numbered Top Risks to Probe Next strip. */
.er-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 6px; }
@media (max-width: 900px) { .er-grid { grid-template-columns: 1fr; } }
.er-col { min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; background: var(--surface); }
.er-col-positive { border-top: 3px solid var(--navy); }
.er-col-risk { border-top: 3px solid var(--risk); }
.er-col > .guide-h { margin-top: 0; }
.er-cards { display: grid; gap: 10px; }
.er-card { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; background: var(--surface-even); }
.er-card-title { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.er-card p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; color: #2c3a4d; }
.er-top-risks { margin-top: 18px; }
.er-rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.er-rank-item { display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; background: var(--surface); }
.er-rank-no { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--risk); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.er-rank-body { min-width: 0; }
.er-rank-body strong { display: block; font-size: 13px; color: var(--ink); }
.er-rank-body p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.5; color: #2c3a4d; }
.er-rank-qs { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 3px; }
.er-rank-qs li { font-size: 12.5px; line-height: 1.5; color: #2c3a4d; }

/* Data quality grid: colour only, with a Low to High legend (Q3). */
.dq-cell { min-height: 48px; }
.dq-legend { display: flex; align-items: center; gap: 8px; margin: 2px 0 6px 74px; font-size: 11.5px; font-weight: 700; color: #6a7686; }
.dq-legend-bar { flex: 0 0 180px; height: 10px; border-radius: 5px; background: linear-gradient(90deg, #9ab1cd, #5178a6, #1c436d, #000615); }

/* Absence of data (Tab 2b): two plain groups, the state word inline, skills muted. */
.ab-group + .ab-group { margin-top: 10px; }
.ab-item strong { display: inline; font-size: 13px; }
.ab-skills { color: var(--muted); }

/* Sample question sets (Tab 2c): one card per set, topic, why, numbered sequence, look-for. */
.sq-set { margin: 14px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.sq-set strong { display: block; font-size: 13.5px; color: var(--ink); }
.sq-why { margin: 3px 0 4px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.sq-seq { margin: 4px 0 0; padding: 0 0 0 22px; }
.sq-seq li { padding: 2.5px 0; font-size: 12.5px; line-height: 1.5; color: #2c3a4d; }
.sq-look { margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; }

/* Generating state with elapsed timer (C5). */
.gen-wait { margin-top: 10px; max-width: 620px; }
.gen-wait-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 8px; font-size: 13px; color: #2c3a4d; }
.gen-elapsed { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--navy); }

/* Interviewer feedback items (Tab 3): area, why, paraphrased moments, questions. */
.fb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fb-item { position: relative; padding-left: 18px; }
.fb-item::before { content: ""; position: absolute; left: 3px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--navy); }
.fb-item strong { display: block; font-size: 13.5px; color: var(--ink); }
.fb-item p { margin: 3px 0 0; font-size: 13px; line-height: 1.5; color: #2c3a4d; }
.fb-item .fb-moment { margin: 3px 0 0 12px; font-size: 12.5px; color: #4a5768; font-style: normal; }
.fb-item .guide-qs { margin-top: 6px; }

/* ===== 2026-09-23 QA v17 fixes (UI lane): hero tiles, mobile, accents ===== */

/* QA-11: the metric row wraps instead of pushing the Invite / Archive tile out of
   the navy band, and the action tile lays its two buttons side by side. */
.hero-metrics { display: flex; flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; gap: 12px; min-width: 0; max-width: 100%; }
.hero-metrics > div { flex: 0 1 auto; min-width: 150px; }
.hero-metrics div.hero-metric-action { display: flex; gap: 0; padding: 0; min-width: 0; }
.hero-metric-action button { width: auto; height: auto; flex: 1 1 auto; min-width: 104px; }
.hero-metric-action button + button { border-left: 1px solid rgba(255, 255, 255, 0.16); border-radius: 0 8px 8px 0; }
.hero-metric-action button:first-child:not(:last-child) { border-radius: 8px 0 0 8px; }
.hero-metric-action button small { display: block; }

@media (max-width: 1100px) {
  .hero-metrics { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .hero-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .hero-metrics > div { min-width: 0; }
  .hero-metrics div.hero-metric-action { grid-column: 1 / -1; }
  /* QA-47: the tagline stays on phones, smaller, under the product name */
  .brand-block span:not(.brand-dot) { display: block; font-size: 10.5px; margin-top: 1px; }
  .brand-block { padding-right: 72px; }
  /* QA-11: the candidate header stacks; name and meta take the full width */
  .profile-top { flex-wrap: wrap; }
  .profile-top > div:first-child { flex: 1 1 100%; min-width: 0; }
  .profile-top-right { width: 100%; justify-content: flex-start; }
  .profile-top h3 { font-size: 22px; }
}

/* QA-47: tap targets of at least 44px on touch devices and phones */
@media (pointer: coarse), (max-width: 640px) {
  .btn-small, .candidate-tab, .content-tab, .cand-doc-tab, .fb-tab, .meta-btn, .rename-btn,
  .menu-dropdown button, .position-tab, .api-banner-close, .cand-mode-btn { min-height: 44px; }
  .rename-btn, .api-banner-close { min-width: 44px; }
  .login-alt a, .tx-link, #candLearnMore { display: inline-block; padding: 12px 4px; margin: -12px -4px; }
}

/* QA-59: the grid marker chip wraps inside its cell instead of clipping */
.dq-you-chip { white-space: normal; max-width: calc(100% - 6px); text-align: center; line-height: 1.25; }

/* ===== Scorecard editor: validation next to the field, the saving state (item 2, 25 Sep 2026) ===== */
.ed-field-error { margin: 4px 0 0; font-size: 12px; font-weight: 600; color: var(--risk); }
.ed-field-error[hidden] { display: none; }
.ed-outcome input.ed-invalid, .ed-activity input.ed-invalid, .ed-add-activity.ed-invalid { border-color: var(--risk); }
.ed-saving { opacity: 0.55; pointer-events: none; }
#edSaving { margin: 6px 0 10px; }
#edSaving[hidden] { display: none; }
.modal-close:disabled { opacity: 0.35; cursor: not-allowed; }
.modal-close:disabled:hover { background: var(--paper); border-color: var(--line); color: var(--ink); }

/* ===== Scorecard confirmation dialog (item 3, 25 Sep 2026) ===== */
.sc-gaps-h { margin: 16px 0 6px; font-size: 14px; }
.sc-gaps { margin: 0 0 12px; padding-left: 20px; font-size: 13px; }
.sc-gaps li { margin-bottom: 4px; }
.sc-gaps-none { margin: 14px 0 12px; font-size: 13px; color: var(--muted); }
.sc-confirm-ack { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 14px; font-size: 13px; cursor: pointer; }
.sc-confirm-ack input { margin-top: 3px; accent-color: var(--steel); }

/* the hero's review button after a save lands (item 2): three soft pulses */
.btn-attention { animation: btn-attention 1.6s ease-in-out 3; }
@keyframes btn-attention {
  0%, 100% { box-shadow: 0 0 0 0 rgba(166, 57, 122, 0.45); }
  50% { box-shadow: 0 0 0 7px rgba(166, 57, 122, 0); }
}

/* leaving the page never cancels a run (item 4, 25 Sep 2026) */
.ana-leave-note { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
/* ---- Home (v20 series, item 6): the Home tab, the role cards, the three-step strip, the invite ---- */
.position-tab.home-tab { min-width: 96px; font-weight: 900; }
.home-view {
  padding: 30px 32px 48px;
  min-height: calc(100vh - 60px);
}
.home-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.home-head h2 { margin: 0; font-size: 26px; color: var(--navy); }
.home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.home-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--steel);
  font-size: 13px;
  font-weight: 700;
}
.home-step-num {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 11.5px;
  font-weight: 900;
  flex: none;
}
.home-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.home-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 184px;
}
.home-card-title { margin: 0; font-size: 17px; color: var(--navy); line-height: 1.2; overflow-wrap: anywhere; }
.home-card-meta { color: var(--muted); font-size: 11.5px; font-weight: 700; }
.home-card-count { margin: 4px 0 0; color: var(--ink); font-size: 13px; font-weight: 700; flex: 1; }
.home-card-new {
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line);
  background: #EEF2F7;
  color: var(--blue);
  cursor: pointer;
  font: inherit;
}
.home-card-new:hover { background: #E2E9F1; }
.home-card-plus { font-size: 30px; font-weight: 900; line-height: 1; }
.home-empty {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 26px 24px;
  margin-bottom: 20px;
  max-width: 640px;
}
.home-empty h3 { margin: 0 0 6px; }
.home-empty .section-sub { margin: 0 0 14px; }
.home-invite {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.home-invite strong { color: var(--navy); }
.home-invite .section-sub { margin-top: 4px; }
/* item 39: the product line under the name on the sign-in and sign-up cards, the optional hint */
.login-panel .brand-line { margin: 6px 0 0; font-size: 13.5px; color: var(--steel); line-height: 1.4; }
.login-panel .login-brand + .brand-line { margin-top: -6px; }
.login-panel .brand-line + .brand-tagline { margin-top: 4px; }
.login-panel .brand-line + h1 { margin-top: 14px; }
.label-hint { font-weight: 500; color: var(--muted); margin-left: 4px; }
@media (max-width: 920px) {
  .home-view { padding: 22px 16px 40px; }
  .home-cards { grid-template-columns: 1fr; }
}

/* Contact Us (v24): the honeypot field sits off-screen, invisible to people and screen readers */
.contact-form .contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
/* The zero-state link on the "assessments remaining" hero tile */
.hero-request-more { color: var(--cyan); font-weight: 700; text-decoration: none; }
.hero-request-more:hover { text-decoration: underline; }
.request-more .modal-actions { margin-top: 22px; }

/* ===== v25 (6 Oct 2026): the brand pass. Navy #00223d, the magenta accent, cyan eyebrows,
   IBM Plex Sans, the flying-wing mark; the landing in two columns; the app shell as a left
   sidebar (roles as entries, the account block at its foot). Report semantics untouched. ===== */

/* --- the mark --- */
.wing { display: inline-block; width: 22px; height: 22px; color: var(--accent-icon); flex: none; }

/* --- buttons: the accent is the primary action everywhere --- */
.btn-primary { background: var(--accent); border-radius: 8px; font-weight: 600; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-secondary { border-radius: 8px; font-weight: 600; }
.btn-secondary:hover { border-color: var(--navy); }
.btn-small { border-radius: 7px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* --- chips --- */
.bs-ok { background: #e3f2eb; color: #1b7c4d; }

/* --- modals --- */
.modal-overlay { background: rgba(0, 34, 61, 0.62); }
.modal-box { border-radius: 12px; }
.modal-box h3 { color: var(--navy); }

/* --- the landing: wordmark, two columns (the headline, the card), the footer line --- */
.login-top { display: flex; align-items: center; }
.lockup { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; }
.lockup-wordmark { font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.login-body {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 480px);
  gap: 56px;
  align-items: center;
  padding: 56px 0 40px;
}
.login-hero { max-width: 680px; }
.login-eyebrow, .card-eyebrow {
  margin: 0;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.login-eyebrow { margin-bottom: 26px; }
.login-headline {
  margin: 0 0 24px;
  font-size: clamp(46px, 6.4vw, 88px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.login-sub { margin: 0; max-width: 540px; font-size: clamp(20px, 2vw, 28px); line-height: 1.3; color: var(--on-navy-muted); }
.login-panel {
  width: 100%;
  background: var(--navy-raised);
  border: 1px solid var(--navy-line);
  border-radius: 12px;
  box-shadow: none;
  padding: 34px 40px 30px;
  color: var(--cream);
}
.card-eyebrow { font-size: 11.5px; letter-spacing: 0.26em; margin-bottom: 8px; }
.login-panel .card-title { margin: 0 0 14px; font-size: 24px; font-weight: 700; color: var(--cream); }
.login-panel label { color: var(--on-navy-label); font-weight: 500; font-size: 13px; }
.login-panel input {
  background: var(--navy);
  border: 1px solid var(--navy-line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--cream);
}
.login-panel input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(66, 184, 200, 0.22); }
.login-panel button { background: var(--accent); border-radius: 8px; padding: 13px 16px; font-weight: 600; }
.login-panel button:hover { background: var(--accent-strong); }
.login-error { color: #f3a6a6; }
.login-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 13px; }
.login-links a, .login-alt a { color: var(--cyan); font-weight: 500; text-decoration: none; }
.login-links a:hover { text-decoration: underline; }
.login-alt, .login-note { color: var(--on-navy-muted); }
.login-alt { text-align: left; }
.login-foot { display: flex; flex-wrap: wrap; gap: 12px 40px; color: var(--on-navy-label); font-size: 13px; }

/* --- the app shell: the sidebar on the left, everything else in the main column --- */
.app-shell { display: flex; align-items: stretch; }
.app-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.top-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 272px;
  flex: none;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 22px 16px 16px;
  background: var(--navy);
  color: var(--cream);
}
.brand-block { padding: 0 8px; border: 0; }
.brand-block .wing { width: 26px; height: 26px; }
.brand-block .brand-name { color: var(--cream); font-size: 17px; font-weight: 700; white-space: normal; }
.brand-block .brand-tagline, .brand-block span:not(.brand-dot) { color: var(--on-navy-muted); font-size: 12px; }
.nav-toggle { display: none; }
.position-tabs { flex-direction: column; gap: 4px; overflow: visible; }
.position-tab {
  min-width: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--on-navy-muted);
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  align-items: flex-start;
}
.position-tab:hover { background: rgba(255, 255, 255, 0.06); color: var(--cream); }
.position-tab.active { background: var(--navy-active); color: var(--cream); font-weight: 600; }
.position-tab.home-tab { min-width: 0; font-weight: 600; }
.position-tab .pos-sub { display: none; }
.position-tab.add-tab { background: transparent; color: var(--cyan); font-weight: 600; }
.position-tab.add-tab:hover { background: rgba(66, 184, 200, 0.10); }
.nav-right { margin-top: auto; align-self: stretch; justify-self: auto; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.10); }
.menu-wrap { width: 100%; }
.menu-btn {
  width: 100%;
  height: auto;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  flex-direction: row;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  color: var(--cream);
}
.menu-btn:hover { background: rgba(255, 255, 255, 0.06); }
.menu-who { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.menu-who strong { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-who small { color: var(--on-navy-muted); font-size: 11.5px; }
.menu-dots { font-size: 18px; line-height: 1; letter-spacing: 0.05em; color: var(--on-navy-muted); }
.menu-dropdown { left: 0; right: 0; top: auto; bottom: calc(100% + 6px); min-width: 0; }

/* the stats shell keeps a plain top bar */
#statsApp.app-shell { flex-direction: column; }
.top-nav.stats-nav { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; height: auto; padding: 12px 20px; }
.top-nav.stats-nav .nav-right { margin-top: 0; padding-top: 0; border-top: 0; }
.top-nav.stats-nav .logout-btn { background: rgba(255, 255, 255, 0.10); color: var(--cream); }

/* --- the role band sits in the main column, one shade up from the sidebar --- */
.hero-strip { background: var(--navy-raised); }

/* --- Home --- */
.home-view { padding: 34px 40px 48px; }
.home-head { margin-bottom: 28px; }
.home-head h2 { font-size: 30px; font-weight: 700; }
.home-step { color: var(--muted); font-size: 13.5px; font-weight: 500; }
.home-step-num { width: auto; height: auto; background: transparent; color: var(--navy); font-size: 14px; font-weight: 700; }
.home-cards { gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.home-card { border-radius: 12px; padding: 22px 22px 20px; gap: 10px; min-height: 196px; }
.home-card-title { color: var(--ink); font-weight: 600; }
.home-card-meta { font-weight: 500; font-size: 12.5px; }
.home-card-count { font-weight: 400; font-size: 14px; color: var(--muted); }
.home-card-new { background: transparent; border: 1px dashed #c9cacc; color: var(--accent); }
.home-card-new:hover { background: var(--accent-tint); }
.home-card-new strong { font-weight: 600; }
.home-invite { border-radius: 12px; padding: 20px 24px; }
.home-invite strong { color: var(--ink); font-size: 16px; }
.home-invite .btn-secondary { border-color: var(--accent); color: var(--accent); }
.home-invite .btn-secondary:hover { background: var(--accent-tint); }
.home-empty { border-radius: 12px; }

/* --- narrow screens: the landing stacks; the sidebar becomes a top bar with a drawer --- */
@media (max-width: 980px) {
  .login-shell { padding: 20px 22px 22px; }
  .login-body { grid-template-columns: 1fr; gap: 30px; padding: 30px 0 28px; }
  .login-panel { padding: 28px 24px 26px; }
  .login-headline { font-size: clamp(40px, 10vw, 64px); }
}
@media (max-width: 920px) {
  .app-shell { flex-direction: column; }
  .top-nav {
    position: sticky;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    overflow: visible;
  }
  .brand-block { flex: 1 1 auto; display: flex; align-items: center; gap: 10px; border: 0; padding: 0; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 40px;
    height: 36px;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
  }
  .nav-toggle span { display: block; width: 16px; height: 2px; border-radius: 1px; background: var(--cream); }
  .top-nav .position-tabs, .top-nav .nav-right { display: none; width: 100%; }
  .top-nav.nav-open .position-tabs, .top-nav.nav-open .nav-right { display: flex; }
  .nav-right { position: static; margin-top: 0; padding-top: 8px; }
  .menu-dropdown { bottom: auto; top: calc(100% + 6px); }
  .top-nav.stats-nav .nav-right { display: flex; width: auto; }
  .home-view { padding: 22px 16px 40px; }
}

/* Stealth View feedback (Oct 2026): sub-points under a feedback header are smaller bullets. */
.fb-sub { margin: 4px 0 0 18px; padding: 0; list-style: disc; }
.fb-sub li.fb-moment { margin: 2px 0; font-size: 0.92em; }

.fb-retry { margin: 8px 0 0; }

/* v34 (12 Oct 2026): blocks of the role-level Interview Guide modal */
.guide-block { margin: 0.6rem 0 0.9rem; padding-left: 0.2rem; }
.guide-block > strong { display: inline-block; margin-bottom: 0.15rem; }
.guide-block .book-chip { margin-left: 0.4rem; vertical-align: middle; }

/* ===== v36 (14 Oct 2026): the landing per the colleague's concept deck (board 1): the eyebrow
   with the product line, the headline on two lines, the "Who is Meet Stealth?" link, STEALTH MODE
   as the card eyebrow, the footer line with the beta window, the one-liner, the address and
   Contact us; the app shell's brand block as Candidate Fit Intelligence / Stealth Mode. ===== */
.login-shell { padding: 36px 64px 30px; }
.login-body { padding: 48px 0 40px; gap: 64px; }
.login-hero { max-width: 600px; }
.login-top { padding-top: 44px; }
.login-eyebrow { margin-bottom: 0; letter-spacing: 0.3em; }
.login-headline { font-size: clamp(52px, 7.2vw, 108px); line-height: 0.98; margin-bottom: 28px; }
.login-sub { max-width: 560px; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.3; }
.login-who { margin: 40px 0 0; font-size: 16px; }
.login-who a { color: var(--accent-icon); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.login-who a:hover { color: #d66aa3; }
.login-panel { padding: 36px 42px 32px; }
.card-eyebrow { margin-bottom: 10px; }
.login-panel .card-title { margin-bottom: 18px; }
.login-links { margin-top: 18px; }
.login-foot { border-top: 1px solid var(--navy-line); padding-top: 22px; gap: 12px 56px; align-items: center; }
.login-foot-dates { color: var(--cyan); }
.login-foot a { color: var(--cyan); text-decoration: none; margin-left: auto; }
.login-foot a:hover { text-decoration: underline; }
.who-modal .who-eyebrow { color: var(--accent); margin-bottom: 6px; }
.who-modal h3 { margin-top: 0; }
.who-list { margin: 8px 0 16px; padding-left: 20px; color: var(--ink); line-height: 1.6; }
.who-list li::marker { color: var(--accent); }
.who-modal .section-sub a { color: var(--blue); font-weight: 600; }
@media (max-width: 720px) {
  .login-shell { padding: 20px 22px 22px; }
  .login-body { gap: 30px; padding: 24px 0 24px; }
  .login-top { padding-top: 16px; }
  .login-who { margin-top: 24px; }
  .login-panel { padding: 28px 24px 26px; }
  .login-foot { gap: 10px 24px; padding-top: 16px; }
  .login-foot a { margin-left: 0; }
}

/* ===== v37 (15 Oct 2026): the colleague's review of 14 Oct. The Data Quality tab's paragraphs
   run wider; the Absence of Data legend and state groups; the Scorecard Ready line; the role
   actions on the Role Scorecard tab; the landing footer down to Contact us. ===== */
.extraction-card .section-sub, .extraction-card .family-note, .extraction-card .ext-meta { max-width: 96ch; }
.ab-legend { margin: 6px 0 8px; }
.ab-state { margin: 12px 0 2px; font-size: 13px; font-weight: 700; color: var(--ink); }
.ab-group { margin-top: 2px; }
.sc-done-note { margin-top: 8px; }
.login-foot { justify-content: flex-end; }
.login-foot a { margin-left: 0; }

/* ===== v38 (15 Oct 2026): the "What is Meet Stealth?" dialog per Peyton's design: navy card, cyan
   eyebrow, the two sections, Sign Up (cyan) and Login (outlined). ===== */
.modal-box.who-modal { width: min(940px, 100%); background: var(--navy-raised); border: 1px solid var(--navy-line); color: var(--cream); padding: 48px 70px 56px; }
.who-modal .who-eyebrow { color: var(--cyan); margin: 14px 0 18px; }
.who-modal .who-title { margin: 0 0 16px; font-size: 30px; font-weight: 700; color: #fff; }
.who-modal .who-title em { font-style: italic; }
.who-modal .who-sub { margin: 28px 0 12px; font-size: 26px; font-weight: 700; color: #fff; }
.who-modal .who-text { margin: 0 0 10px; font-size: 18px; line-height: 1.6; color: var(--on-navy-muted); }
.who-modal .who-strong { margin: 20px 0 30px; font-size: 18px; font-weight: 700; color: #fff; }
.who-modal .who-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.who-modal .who-signup, .who-modal .who-login { border-radius: 8px; padding: 14px 26px; font-size: 17px; font-weight: 700; cursor: pointer; }
.who-modal .who-signup { background: var(--cyan); border: 1px solid var(--cyan); color: var(--navy); }
.who-modal .who-signup:hover { background: #5cc5d3; }
.who-modal .who-login { background: transparent; border: 1px solid var(--cyan); color: var(--cyan); }
.who-modal .who-login:hover { background: rgba(66, 184, 200, 0.12); }
.who-modal .modal-close { background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid var(--navy-line); }
@media (max-width: 720px) {
  .modal-box.who-modal { padding: 32px 22px 30px; }
  .who-modal .who-title { font-size: 24px; }
  .who-modal .who-sub { font-size: 21px; }
  .who-modal .who-text, .who-modal .who-strong { font-size: 16px; }
}

/* ===== v39 (15 Oct 2026): Next Questions tab. The top-risk sets share the follow-up sets' card
   (sq-set); a numbered badge marks the risk's rank from the Stealth Read. ===== */
.nq-risk strong { display: flex; align-items: center; gap: 8px; }
.nq-no { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--risk); color: #fff; font-size: 11px; font-weight: 700; }
.er-top-risks { margin-top: 0; }
.er-top-risks .sq-set:first-child { margin-top: 10px; }
.sq-set + .guide-h { margin-top: 26px; }
.ab-legend li { font-size: 13px; line-height: 1.45; color: var(--muted); }

/* ===== v40 (16 Oct 2026): the tab headers' PDF buttons stay on one line. ===== */
.ext-head > .btn-small, .ext-head .ext-head-actions .btn-small { white-space: nowrap; flex: none; }
