/* ═══════════════════════════════════════════════════════════════════════════
   HR Playbook — its own layout.
   Deliberately standalone: this app does not load the Strategic, M&A, or NPD
   stylesheets, so nothing here can be silently restyled by a rule written for a
   stage-gate board, and nothing here can break them.
   Colours come from /assets/css/visionone-brand.css (--vo-*).
   ═══════════════════════════════════════════════════════════════════════════ */

.hr-app {
  --hr-side: 248px;
  --hr-radius: 8px;
  --hr-gap: 16px;
  --hr-shadow: 0 1px 2px rgba(31, 42, 36, .05), 0 4px 14px rgba(31, 42, 36, .06);
  /* Tier colours, reused by the assessment and every legend. Fixed to the brand set so a
     tier badge means the same thing on every screen. */
  --hr-t1: var(--vo-blue);
  --hr-t2: var(--vo-green-dark);
  --hr-t3: var(--vo-purple);
  /* Semantic severity, kept separate from the four value-proposition colours: those appear
     only in alignment contexts, so red always means "attention" everywhere else. */
  --hr-crit: var(--vo-red);
  --hr-crit-bg: var(--vo-red-soft, #fbe9e7);
  --hr-warn: #9a6b04;
  --hr-warn-bg: #fdf8e6;
  --hr-good: var(--vo-green);
  --hr-good-bg: var(--vo-green-tint);
  margin: 0;
  background: var(--vo-canvas);
  color: var(--vo-ink);
  font-family: var(--vo-font-body);
  /* THE LAYOUT SPINE, and the part that is easy to get subtly wrong.
     topnav.js inserts its header as body's FIRST CHILD with position: relative, so it occupies
     about 80px of real layout height. Body is therefore the flex column: the topnav takes its
     natural height and .hr-shell takes precisely the remainder, with nothing guessing at the
     viewport.
     The height MUST be definite (height, not min-height). With min-height the box is free to
     grow, so there is no free space for a flex child to be constrained by — .hr-main grows to
     fit its content, .hr-scroll never becomes scrollable, and the document scrolls instead. That
     is exactly the "no scrollbar on the right" symptom: the pane was never a pane.
     overflow: hidden completes it — the document must not scroll, because the pane does. */
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;          /* dvh for mobile browsers whose 100vh lies; vh is the fallback */
  overflow: hidden;
}

/* The `hidden` attribute must beat these components' own `display` rules.
   `[hidden] { display: none }` comes from the UA stylesheet, so ANY author `display`
   declaration overrides it — and both .hr-boot and .hr-shell set `display: grid`. Without this
   rule the boot overlay stays on screen after loading and the shell renders underneath it,
   which reads as "stuck loading" even though the app is fully working. */
.hr-app [hidden] { display: none !important; }

/* ── Boot ─────────────────────────────────────────────────────────────── */
.hr-boot { min-height: 70vh; display: grid; place-items: center; }
.hr-boot-inner { text-align: center; color: var(--vo-ink-soft); }
.hr-spinner {
  width: 30px; height: 30px; margin: 0 auto 14px;
  border: 3px solid var(--vo-border); border-top-color: var(--vo-green);
  border-radius: 50%; animation: hr-spin .8s linear infinite;
}
@keyframes hr-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hr-spinner { animation-duration: 3s; } }

/* ── Shell ────────────────────────────────────────────────────────────── */
.hr-shell {
  display: grid; grid-template-columns: var(--hr-side) minmax(0, 1fr);
  flex: 1 1 auto;
  min-height: 0;           /* required, or the grid refuses to shrink below its content */
}
@media (max-width: 900px) { .hr-shell { grid-template-columns: 1fr; } }

.hr-side {
  background: var(--vo-surface); border-right: 1px solid var(--vo-border);
  display: flex; flex-direction: column; gap: 4px; padding: 16px 12px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--vo-green) var(--vo-green-tint);
}
.hr-side::-webkit-scrollbar { width: 10px; }
.hr-side::-webkit-scrollbar-track { background: var(--vo-green-tint); border-radius: 5px; }
.hr-side::-webkit-scrollbar-thumb {
  background: var(--vo-green); border-radius: 5px;
  border: 2px solid var(--vo-green-tint);
}
.hr-side::-webkit-scrollbar-thumb:hover { background: var(--vo-green-dark); }
@media (max-width: 900px) { .hr-side { overflow-y: visible; } }

.hr-brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 14px; }
.hr-brand-mark {
  width: 34px; height: 34px; border-radius: 7px; flex: none;
  background: var(--vo-green); color: #fff;
  font-family: var(--vo-font-heading); font-size: 14px; font-weight: 700;
  display: grid; place-items: center;
}
.hr-brand-name { font-family: var(--vo-font-heading); font-size: 15.5px; line-height: 1.2; }
.hr-brand-sub { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--vo-ink-soft); margin-top: 2px; }

.hr-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.hr-nav-btn {
  appearance: none; text-align: left; width: 100%; cursor: pointer;
  font-family: var(--vo-font-body); font-size: 13.5px; font-weight: 600;
  padding: 9px 11px; border: 0; border-radius: 6px;
  background: transparent; color: var(--vo-ink-soft);
}
.hr-nav-btn:hover:not(:disabled) { background: var(--vo-canvas); color: var(--vo-ink); }
.hr-nav-btn.is-active { background: var(--vo-green-tint); color: var(--vo-green-dark); }
.hr-nav-btn:disabled { opacity: .45; cursor: not-allowed; }
.hr-nav-btn:focus-visible, .hr-app button:focus-visible, .hr-app [tabindex]:focus-visible,
.hr-app input:focus-visible, .hr-app select:focus-visible, .hr-app textarea:focus-visible {
  outline: 2.5px solid var(--vo-green); outline-offset: 2px;
}

.hr-side-foot { margin-top: auto; padding: 12px 8px 4px; font-size: 11px; color: var(--vo-ink-soft); }
.hr-role { margin-bottom: 6px; }
.hr-vo { opacity: .7; }

/* ── Top bar + the scrolling pane ─────────────────────────────────────────
   .hr-main is a flex COLUMN that does not scroll. The top bar is a fixed-height row, and
   #hrScroll is the only scrolling box. That way the bar is permanently at the top of the pane
   and content scrolls past below it, never under it — a sticky bar lets content slide
   underneath, which reads as the bar covering what you were reading. */
.hr-main {
  min-width: 0; display: flex; flex-direction: column;
  min-height: 0; overflow: hidden;
}
@media (max-width: 900px) {
  /* On a narrow screen the sidebar stacks above, so a fixed-height pane would push the content
     off the bottom. Release body and let the DOCUMENT scroll instead. */
  .hr-app { height: auto; overflow: visible; }
  /* Stacked layout: let the document scroll rather than a pane. */
  .hr-shell { flex: 0 0 auto; }
  .hr-main { overflow: visible; }
  .hr-scroll { overflow: visible !important; }
}
.hr-scroll {
  flex: 1 1 auto;
  min-height: 0;                 /* required, or a flex item refuses to shrink below content */
  overflow-y: scroll;            /* `scroll`, not `auto`: always reserve the track so the
                                    layout never shifts when content grows past the fold */
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: var(--vo-green) var(--vo-green-tint);
  /* Breathing room so the last section is not flush against the bottom edge. Set here rather
     than on .hr-views, whose `padding` shorthand appears later and would override it. */
  padding-bottom: 90px;
}
.hr-scroll::-webkit-scrollbar { width: 12px; }
.hr-scroll::-webkit-scrollbar-track { background: var(--vo-green-tint); border-radius: 6px; }
.hr-scroll::-webkit-scrollbar-thumb {
  background: var(--vo-green); border-radius: 6px;
  border: 2px solid var(--vo-green-tint);
}
.hr-scroll::-webkit-scrollbar-thumb:hover { background: var(--vo-green-dark); }
.hr-topbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px clamp(16px, 3vw, 30px); background: var(--vo-surface);
  border-bottom: 1px solid var(--vo-border);
  /* Static, not sticky: .hr-main does not scroll, so the bar cannot scroll away. */
  flex: 0 0 auto; position: static; z-index: 12;
}
.hr-topbar-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.hr-topbar-right { margin-left: auto; }
.hr-topbar h1 { font-family: var(--vo-font-heading); font-size: 19px; margin: 0; }
.hr-chip {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 4px; background: var(--vo-canvas);
  border: 1px solid var(--vo-border); color: var(--vo-ink-soft); white-space: nowrap;
}
.hr-chip-phase { background: var(--vo-blue-tint); border-color: var(--vo-blue); color: var(--vo-blue-dark); }
.hr-save { font-size: 12px; color: var(--vo-ink-soft); }
.hr-save.is-saving { color: var(--vo-blue-dark); }
.hr-save.is-saved { color: var(--vo-green-dark); }
.hr-save.is-error { color: var(--hr-crit); font-weight: 700; }

.hr-error {
  margin: 14px clamp(16px, 3vw, 30px) 0; padding: 12px 15px;
  background: var(--hr-crit-bg); border-left: 3px solid var(--hr-crit);
  border-radius: 0 5px 5px 0; font-size: 14px; color: var(--vo-ink);
}

.hr-views { padding: clamp(16px, 3vw, 30px); min-width: 0; }

/* ── Generic blocks ───────────────────────────────────────────────────── */
.hr-card {
  background: var(--vo-surface); border: 1px solid var(--vo-border);
  border-radius: var(--hr-radius); box-shadow: var(--hr-shadow); padding: 18px 20px 20px;
}
.hr-view > h2 {
  font-family: var(--vo-font-heading); font-size: 22px; margin: 0 0 4px;
}
.hr-view > .hr-lede { color: var(--vo-ink-soft); font-size: 15px; margin: 0 0 20px; max-width: 74ch; }
.hr-grid { display: grid; gap: var(--hr-gap); }
.hr-grid.cols { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.hr-sec-title {
  font-family: var(--vo-font-heading); font-size: 16px; margin: 26px 0 10px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.hr-muted { color: var(--vo-ink-soft); }
.hr-empty {
  padding: 26px; text-align: center; color: var(--vo-ink-soft);
  border: 1px dashed var(--vo-border); border-radius: var(--hr-radius); background: var(--vo-surface);
}

/* Stat tiles */
.hr-stats { display: grid; gap: var(--hr-gap); grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); }
.hr-stat { background: var(--vo-surface); border: 1px solid var(--vo-border); border-radius: var(--hr-radius); padding: 14px 16px 16px; }
.hr-stat .v { font-family: var(--vo-font-heading); font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.hr-stat .l { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--vo-ink-soft); margin-top: 6px; }
.hr-stat .d { font-size: 12px; color: var(--vo-ink-soft); margin-top: 5px; }
.hr-stat.is-crit { border-left: 3px solid var(--hr-crit); }
.hr-stat.is-good { border-left: 3px solid var(--hr-good); }

/* Maturity meter — a 1-5 ladder, not a percentage. Percentages imply a denominator
   that maturity does not have. */
.hr-meter { display: flex; gap: 3px; margin-top: 8px; }
.hr-meter i {
  height: 7px; flex: 1; border-radius: 2px; background: var(--vo-border); display: block;
}
.hr-meter i.on { background: var(--vo-green); }
.hr-meter i.target { box-shadow: inset 0 0 0 1.5px var(--vo-ink); }

/* Tables */
.hr-tablewrap { overflow-x: auto; border: 1px solid var(--vo-border); border-radius: var(--hr-radius); background: var(--vo-surface); }
.hr-app table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.hr-app th, .hr-app td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--vo-border); vertical-align: top; }
.hr-app thead th {
  font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--vo-ink-soft); background: var(--vo-canvas); position: sticky; top: 0;
}
.hr-app tbody tr:last-child td { border-bottom: 0; }
.hr-app td.n, .hr-app th.n { text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hr-prose { font-size: 12.8px; color: var(--vo-ink-soft); line-height: 1.5; max-width: 42ch; }

/* Buttons */
.hr-btn {
  appearance: none; cursor: pointer; font-family: var(--vo-font-body);
  font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 6px;
  border: 1px solid var(--vo-border); background: var(--vo-surface); color: var(--vo-ink);
}
.hr-btn:hover:not(:disabled) { border-color: var(--vo-ink-soft); }
.hr-btn:disabled { opacity: .5; cursor: not-allowed; }
.hr-btn.primary { background: var(--vo-green); border-color: var(--vo-green-dark); color: #fff; }
.hr-btn.primary:hover:not(:disabled) { background: var(--vo-green-dark); }
.hr-btn.small { font-size: 12px; padding: 5px 10px; }
.hr-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Tier + status badges */
.hr-tier {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 4px;
  font-size: 11.5px; font-weight: 700; color: #fff; flex: none;
  font-family: ui-monospace, Consolas, monospace;
}
.hr-tier.t1 { background: var(--hr-t1); }
.hr-tier.t2 { background: var(--hr-t2); }
.hr-tier.t3 { background: var(--hr-t3); }
.hr-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 3px; border: 1px solid currentColor; white-space: nowrap;
}
.hr-badge.crit { color: var(--hr-crit); background: var(--hr-crit-bg); }
.hr-badge.warn { color: var(--hr-warn); background: var(--hr-warn-bg); }
.hr-badge.good { color: var(--vo-green-dark); background: var(--hr-good-bg); }
.hr-badge.flat { color: var(--vo-ink-soft); background: var(--vo-canvas); border-color: var(--vo-border); }

/* ── Assessment runner ───────────────────────────────────────────────── */
.hr-ctl {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  padding: 12px 15px; background: var(--vo-surface); border: 1px solid var(--vo-border);
  border-radius: var(--hr-radius); position: sticky; top: 0; z-index: 10;
  box-shadow: var(--hr-shadow); margin-bottom: 16px;
}
.hr-ctl .lbl { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--vo-ink-soft); }
.hr-ctl select, .hr-ctl input[type=search] {
  font-family: var(--vo-font-body); font-size: 13px; padding: 6px 9px;
  border: 1px solid var(--vo-border); border-radius: 5px; background: var(--vo-surface); color: var(--vo-ink);
}
.hr-ctl .count { margin-left: auto; font-size: 12px; color: var(--vo-ink-soft); font-variant-numeric: tabular-nums; }
.hr-pill {
  appearance: none; cursor: pointer; font-family: var(--vo-font-body);
  font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 20px;
  border: 1px solid var(--vo-border); background: var(--vo-surface); color: var(--vo-ink-soft);
}
.hr-pill[aria-pressed=true] { background: var(--vo-ink); border-color: var(--vo-ink); color: var(--vo-canvas); }

.hr-domain { margin: 22px 0; }
.hr-domain-head {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px;
}
.hr-domain-head h3 { font-family: var(--vo-font-heading); font-size: 17px; margin: 0; }
.hr-domain-head .lens { font-size: 12.8px; color: var(--vo-ink-soft); flex: 1 1 260px; }
.hr-domain-head .score { font-family: var(--vo-font-heading); font-size: 19px; font-variant-numeric: tabular-nums; }

.hr-subhead {
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--vo-green-dark); background: var(--vo-green-tint);
  padding: 6px 12px; border-top: 1px solid var(--vo-border);
}
.hr-item {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px;
  padding: 12px; border-top: 1px solid var(--vo-border); align-items: start;
}
.hr-item.is-crit { background: linear-gradient(90deg, var(--hr-crit-bg) 0 3px, transparent 3px); }
.hr-item .q { min-width: 0; }
.hr-item .stmt { font-size: 13.8px; }
.hr-item .probe { font-size: 12.8px; color: var(--vo-ink-soft); margin-top: 5px; }
.hr-item .ev { font-size: 12.2px; color: var(--vo-ink-soft); margin-top: 5px; opacity: .9; }
.hr-item .qk {
  display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--vo-ink-soft); opacity: .8;
}
.hr-item .note {
  width: 100%; margin-top: 8px; font-family: var(--vo-font-body); font-size: 13px;
  padding: 7px 9px; border: 1px solid var(--vo-border); border-radius: 5px;
  background: var(--vo-canvas); color: var(--vo-ink); resize: vertical; min-height: 34px;
}

/* The score control — 1-5 radio group rendered as a segmented scale. Radios rather than a
   select so a consultant can score with the keyboard while talking, and so the whole scale
   is visible: a dropdown hides the anchors, which are the reason the score means anything. */
.hr-scale { display: flex; gap: 3px; align-items: center; }
.hr-scale button {
  appearance: none; cursor: pointer; width: 30px; height: 30px; border-radius: 5px;
  border: 1px solid var(--vo-border); background: var(--vo-surface); color: var(--vo-ink-soft);
  font-family: ui-monospace, Consolas, monospace; font-size: 13px; font-weight: 700;
}
.hr-scale button:hover { border-color: var(--vo-ink-soft); }
.hr-scale button[aria-pressed=true] { background: var(--vo-green); border-color: var(--vo-green-dark); color: #fff; }
.hr-scale .clear { width: auto; padding: 0 7px; font-size: 11px; font-family: var(--vo-font-body); font-weight: 600; }
.hr-scale-wrap { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.hr-scale-hint { font-size: 10.5px; color: var(--vo-ink-soft); }
@media (max-width: 700px) {
  .hr-item { grid-template-columns: 26px minmax(0, 1fr); }
  .hr-scale-wrap { grid-column: 2; align-items: flex-start; }
}

/* Maturity anchor reference, shown inline while scoring a domain */
.hr-anchors { margin: 8px 0 4px; }
.hr-anchors summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--vo-blue-dark); }
.hr-anchors ol { list-style: none; margin: 10px 0 0; padding: 0; }
.hr-anchors li {
  display: grid; grid-template-columns: 22px 96px minmax(0, 1fr); gap: 10px;
  padding: 6px 0; border-top: 1px solid var(--vo-border); font-size: 12.8px; align-items: baseline;
}
.hr-anchors .lv { font-family: ui-monospace, Consolas, monospace; font-weight: 700; color: var(--vo-green-dark); text-align: center; }
.hr-anchors .ln { font-weight: 700; font-size: 12px; }
.hr-anchors .lt { color: var(--vo-ink-soft); line-height: 1.45; }
@media (max-width: 620px) { .hr-anchors li { grid-template-columns: 22px minmax(0, 1fr); } .hr-anchors .lt { grid-column: 2; } }

/* ── Alignment matrix ─────────────────────────────────────────────────── */
.hr-align td.delta { font-variant-numeric: tabular-nums; text-align: center; font-weight: 700; }
.hr-status-aligned { color: var(--vo-green-dark); }
.hr-status-gap { color: var(--hr-warn); }
.hr-status-critical-gap { color: var(--hr-crit); }
.hr-status-over-invested { color: var(--vo-purple); }
.hr-status-not-assessed { color: var(--vo-ink-soft); }
.hr-align tr.row-critical-gap { background: var(--hr-crit-bg); }
.hr-align tr.row-over-invested { background: var(--vo-purple-soft, #efe9f5); }

/* Tier bars — the say-do / provability read */
.hr-tiers3 { display: flex; flex-direction: column; gap: 4px; min-width: 130px; }
.hr-tbar { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--vo-ink-soft); }
.hr-tbar .k { width: 34px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; flex: none; }
.hr-tbar .t { height: 8px; border-radius: 2px; flex: none; min-width: 2px; }
.hr-tbar .v { font-variant-numeric: tabular-nums; }
.hr-tbar.t1 .t { background: var(--hr-t1); }
.hr-tbar.t2 .t { background: var(--hr-t2); }
.hr-tbar.t3 .t { background: var(--hr-t3); }

/* Findings */
.hr-finding {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 13px;
  padding: 14px 16px; border-top: 1px solid var(--vo-border);
}
.hr-finding:first-child { border-top: 0; }
.hr-finding .kind { align-self: start; }
.hr-finding .f { font-size: 14px; }
.hr-finding .w { font-size: 12.8px; color: var(--vo-ink-soft); margin-top: 4px; max-width: 72ch; }
.hr-finding .route { font-size: 11.5px; color: var(--vo-blue-dark); margin-top: 6px; }
.hr-finding.p1 { background: var(--hr-crit-bg); }

/* ── Group roll-up ────────────────────────────────────────────────────── */
.hr-floor {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  padding: 15px 18px; border-radius: var(--hr-radius);
  background: var(--hr-crit-bg); border-left: 3px solid var(--hr-crit);
}
.hr-floor .big { font-family: var(--vo-font-heading); font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.hr-floor .t { font-size: 13.5px; max-width: 70ch; }
.hr-spread { display: flex; align-items: center; gap: 7px; min-width: 130px; }
.hr-spread .track { position: relative; height: 8px; flex: 1; background: var(--vo-border); border-radius: 2px; }
.hr-spread .span { position: absolute; height: 8px; background: var(--vo-blue); border-radius: 2px; }
.hr-spread .lo, .hr-spread .hi { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--vo-ink-soft); }

.hr-playbook-group { margin: 20px 0; }
.hr-playbook-group > h3 {
  font-family: var(--vo-font-heading); font-size: 16px; margin: 0 0 8px;
  display: flex; align-items: center; gap: 10px;
}
.hr-sec {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start;
  padding: 12px 14px; border-top: 1px solid var(--vo-border);
}
.hr-sec .name { font-size: 14px; font-weight: 700; }
.hr-sec .hint { font-size: 12.6px; color: var(--vo-ink-soft); margin-top: 3px; max-width: 74ch; }
.hr-sec select {
  font-family: var(--vo-font-body); font-size: 12px; padding: 4px 7px;
  border: 1px solid var(--vo-border); border-radius: 5px; background: var(--vo-surface); color: var(--vo-ink);
}

@media print {
  .hr-side, .hr-ctl, .hr-topbar-right { display: none; }
  .hr-shell { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Dictation
   ═══════════════════════════════════════════════════════════════════════════ */
/* The dictate control sits BELOW its field, aligned to the right edge — not floating over the
   field's top-right corner, where it crowded the first line of text and, multiplied across a page
   of note boxes, read as clutter. A column with a small gap, so it is a control rather than an
   overlay. */
.hr-mic-field { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.hr-mic-field.inline { width: 100%; }
.hr-mic {
  align-self: flex-end;
  appearance: none; cursor: pointer; padding: 2px 8px 2px 6px;
  display: inline-flex; align-items: center; gap: 4px;
  font: 500 10.5px/1 var(--vo-font, inherit); letter-spacing: .02em;
  border: 1px solid var(--vo-border); border-radius: 999px;
  background: var(--vo-surface); color: var(--vo-ink-soft);
  opacity: .6; transition: opacity .12s, border-color .12s, color .12s;
}
/* Reveal on hover ANYWHERE in the field group, and on keyboard focus — never opacity alone as
   the only affordance, or a keyboard user never finds it. */
.hr-mic-field:hover .hr-mic, .hr-mic:focus-visible,
.hr-mic-field:focus-within .hr-mic { opacity: 1; }
.hr-mic:hover { border-color: var(--vo-green); color: var(--vo-green-dark); }
/* Listening is a state that must be unmistakable — a consultant needs to know at a glance
   whether the mic is still live while they are talking to a client. */
.hr-mic.listening {
  opacity: 1; background: var(--vo-red); border-color: var(--vo-red); color: #fff;
  animation: hr-pulse 1.4s ease-in-out infinite;
}
@keyframes hr-pulse { 50% { box-shadow: 0 0 0 5px rgba(199, 49, 39, .22); } }
@media (prefers-reduced-motion: reduce) { .hr-mic.listening { animation: none; box-shadow: 0 0 0 3px rgba(199, 49, 39, .3); } }
/* No right-hand gutter needed any more — the control is below the field, so the full width of
   every note box is usable text again. */

/* ═══════════════════════════════════════════════════════════════════════════
   AI assist
   ═══════════════════════════════════════════════════════════════════════════ */
.hr-assist {
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--vo-border);
}
.hr-assist-head { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.hr-assist-tag {
  font-size: 9.5px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: var(--vo-purple); background: var(--vo-purple-soft, #efe9f5);
  border: 1px solid var(--vo-purple); border-radius: 3px; padding: 2px 6px;
}
.hr-assist-out {
  margin-top: 11px; padding: 13px 15px; border-radius: 6px;
  background: var(--vo-canvas); border: 1px solid var(--vo-border); font-size: 13.4px;
}
.hr-assist-out.is-err { background: var(--hr-crit-bg); border-color: var(--hr-crit); }
.hr-assist-out.is-draft { border-left: 3px solid var(--vo-purple); }
.hr-assist-out ul { margin: 5px 0 10px; padding-left: 19px; }
.hr-assist-out li { margin: 3px 0; max-width: 76ch; }
.hr-assist-out p { margin: 5px 0 10px; max-width: 76ch; }
.hr-assist-h {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--vo-ink-soft); margin: 9px 0 3px;
}
.hr-assist-h.warn, .hr-assist-out ul.warn li { color: var(--hr-warn); }
.hr-assist-note {
  font-size: 11.8px; color: var(--vo-ink-soft); margin-top: 9px;
  padding-top: 8px; border-top: 1px solid var(--vo-border); max-width: 76ch;
}
.hr-draft-text {
  width: 100%; font-family: var(--vo-font-body); font-size: 13.4px;
  padding: 9px 11px; border: 1px solid var(--vo-border); border-radius: 6px;
  background: var(--vo-surface); color: var(--vo-ink); resize: vertical;
}
.hr-example { padding: 10px 0; border-top: 1px solid var(--vo-border); }
.hr-example:first-of-type { border-top: 0; }
.hr-example-h { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.hr-example-b { font-size: 13.2px; color: var(--vo-ink-soft); margin-bottom: 7px; max-width: 76ch; white-space: pre-wrap; }
.hr-badge.ai { color: var(--vo-purple); background: var(--vo-purple-soft, #efe9f5); }

/* ═══════════════════════════════════════════════════════════════════════════
   Deeper-inquiry (probe) panel
   ═══════════════════════════════════════════════════════════════════════════ */
.hr-probe {
  margin: 10px 0 0; border: 1px solid var(--vo-border); border-radius: 6px;
  background: var(--vo-surface);
}
/* A triggered escalation is a finding in its own right, so it gets a severity stripe rather
   than sitting quietly like a collapsed helper. */
.hr-probe.has-rules { border-left: 3px solid var(--hr-warn); }
.hr-probe-head {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 9px 13px; background: var(--vo-canvas); border-radius: 5px 5px 0 0;
}
.hr-probe-tag {
  font-size: 9.5px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: var(--vo-ink-soft);
}
.hr-probe-body { padding: 12px 15px; border-top: 1px solid var(--vo-border); }
.hr-probe-rule, .hr-probe-ai { padding: 10px 0; border-top: 1px solid var(--vo-border); }
.hr-probe-rule:first-child, .hr-probe-ai:first-child { border-top: 0; padding-top: 2px; }
.hr-probe-rule-h { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; font-size: 13px; font-weight: 700; }
.hr-probe-why { font-size: 12.4px; color: var(--vo-ink-soft); margin: 5px 0; max-width: 76ch; }
.hr-probe-q { font-size: 13.8px; margin: 6px 0 4px; max-width: 76ch; }
.hr-probe-rule ul { margin: 6px 0 0; padding-left: 19px; }
.hr-probe-rule li { font-size: 13.2px; margin: 4px 0; max-width: 76ch; }
.hr-probe-verdict {
  font-size: 13.4px; font-style: italic; color: var(--vo-ink);
  padding-bottom: 9px; margin-bottom: 4px; border-bottom: 1px solid var(--vo-border); max-width: 76ch;
}
.hr-probe-answer {
  width: 100%; margin-top: 7px; font-family: var(--vo-font-body); font-size: 13px;
  padding: 7px 9px; border: 1px solid var(--vo-border); border-radius: 5px;
  background: var(--vo-canvas); color: var(--vo-ink); resize: vertical;
}

/* Per-subdomain scoring guidance. Sits with the heading, not behind a disclosure: it is what the
   consultant scores against, and guidance you have to go and find is guidance nobody reads
   mid-interview. */
.hr-moves {
  padding: 8px 13px 9px; font-size: 12.6px; line-height: 1.5;
  color: var(--vo-ink-soft); background: var(--vo-blue-tint);
  border-bottom: 1px solid var(--vo-border); max-width: none;
}
.hr-moves-k {
  display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--vo-blue-dark); margin-bottom: 3px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Builder — structured fields and the design header
   ═══════════════════════════════════════════════════════════════════════════ */
.hr-k {
  display: block; font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--vo-ink-soft); margin-bottom: 4px;
}
.hr-fields { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin: 12px 0 4px; }
/* Long-form fields take the full width — a paragraph in a 280px column is unreadable. */
.hr-field:has(textarea) { grid-column: 1 / -1; }
.hr-field input, .hr-field textarea {
  width: 100%; font-family: var(--vo-font-body); font-size: 13.4px;
  padding: 8px 10px; border: 1px solid var(--vo-border); border-radius: 6px;
  background: var(--vo-canvas); color: var(--vo-ink); resize: vertical;
}
.hr-field input[readonly], .hr-field textarea[readonly] { opacity: .7; cursor: default; }

/* The design header: what this section is being designed against. */
.hr-design-head {
  margin: 12px 0; padding: 14px 16px; border-radius: 7px;
  background: var(--vo-green-tint); border-left: 3px solid var(--vo-green);
}
.hr-design-nums { display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap; }
.hr-design-v { font-family: var(--vo-font-heading); font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.hr-design-arrow { font-size: 20px; color: var(--vo-ink-soft); padding-bottom: 2px; }
.hr-design-req, .hr-design-fail {
  margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--vo-border);
  font-size: 13px; max-width: 78ch;
}
.hr-design-fail { color: var(--hr-crit); }
.hr-design-warn {
  margin-top: 10px; padding: 8px 11px; border-radius: 5px;
  background: var(--hr-crit-bg); color: var(--hr-crit); font-size: 12.8px; font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Data room
   ═══════════════════════════════════════════════════════════════════════════ */
.hr-drop {
  display: flex; flex-direction: column; gap: 5px; align-items: center; justify-content: center;
  padding: 22px 18px; cursor: pointer; text-align: center;
  border: 2px dashed var(--vo-border); border-radius: 8px; background: var(--vo-canvas);
  font-size: 14px; color: var(--vo-ink);
}
.hr-drop:hover { border-color: var(--vo-green); background: var(--vo-green-tint); }
.hr-drop.is-busy { opacity: .6; cursor: progress; }
.hr-drop-sub { font-size: 12.2px; color: var(--vo-ink-soft); max-width: 62ch; }

/* One evidence request: what was asked for, and whether it arrived. */
.hr-req {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px;
  padding: 12px 15px; border-top: 1px solid var(--vo-border); align-items: start;
}
.hr-req:first-child { border-top: 0; }
.hr-req.is-crit { background: linear-gradient(90deg, var(--hr-crit-bg) 0 3px, transparent 3px); }
.hr-req-ask { font-size: 13.8px; }
.hr-req-meta { font-size: 11.8px; color: var(--vo-ink-soft); margin-top: 4px; }
.hr-req-meta code { font-size: 11px; }
.hr-req-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hr-file {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.2px;
  padding: 3px 8px; border-radius: 4px;
  background: var(--vo-green-tint); border: 1px solid var(--vo-green);
}
.hr-x {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font-size: 15px; line-height: 1; color: var(--vo-ink-soft); padding: 0 2px;
}
.hr-x:hover { color: var(--hr-crit); }

/* ═══════════════════════════════════════════════════════════════════════════
   Per-domain matrices
   ═══════════════════════════════════════════════════════════════════════════ */
.hr-mx { border: 1px solid var(--vo-border); border-radius: 7px; background: var(--vo-surface); margin: 10px 0; }
.hr-mx-head {
  appearance: none; width: 100%; cursor: pointer; text-align: left;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 13px 16px; border: 0; background: transparent;
  font-family: var(--vo-font-body); font-size: 15px; color: var(--vo-ink);
}
.hr-mx-head:hover { background: var(--vo-canvas); }
.hr-mx-num {
  display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none;
  border-radius: 5px; background: var(--vo-ink); color: var(--vo-canvas);
  font-family: ui-monospace, Consolas, monospace; font-size: 12px; font-weight: 700;
}
.hr-mx-name { font-family: var(--vo-font-heading); font-size: 16px; }
.hr-mx-nums { margin-left: auto; display: flex; gap: 6px; }
.hr-mx-chev { font-family: ui-monospace, Consolas, monospace; color: var(--vo-ink-soft); font-size: 16px; }
.hr-mx-body { padding: 4px 16px 18px; border-top: 1px solid var(--vo-border); }

/* The value-proposition matrix. Column tint identifies the quadrant; "yours" is emphasised. */
table.hr-vpmx th[scope=row] { background: var(--vo-canvas); font-family: var(--vo-font-body); font-size: 13px; }
table.hr-vpmx thead th { text-align: left; font-size: 12px; text-transform: none; letter-spacing: 0; }
table.hr-vpmx thead th.vp-pl { box-shadow: inset 0 -3px 0 var(--vo-purple); }
table.hr-vpmx thead th.vp-plat { box-shadow: inset 0 -3px 0 var(--vo-red); }
table.hr-vpmx thead th.vp-cs { box-shadow: inset 0 -3px 0 var(--vo-green); }
table.hr-vpmx thead th.vp-ltc { box-shadow: inset 0 -3px 0 var(--vo-blue); }
table.hr-vpmx th.is-mine, table.hr-vpmx td.is-mine { background: var(--vo-green-tint); }
table.hr-vpmx td.is-mine { color: var(--vo-ink); }
.hr-mine {
  font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--vo-green-dark); margin-top: 3px;
}
.hr-vpsub { font-size: 10.5px; font-weight: 400; color: var(--vo-ink-soft); margin-top: 3px; }

/* The maturity matrix. */
.hr-lvl {
  display: inline-grid; place-items: center; width: 26px; height: 26px;
  border-radius: 5px; background: var(--vo-canvas); border: 1px solid var(--vo-border);
  font-family: ui-monospace, Consolas, monospace; font-size: 13px; font-weight: 700;
}
table.hr-matmx tr.is-now { background: var(--hr-warn-bg); }
table.hr-matmx tr.is-target { box-shadow: inset 3px 0 0 var(--vo-green); }
table.hr-matmx tr.is-now.is-target { background: var(--vo-green-tint); }

/* Scrollbars are restored in assets/css/playbook-scope.css, which all five playbooks load —
   topnav.js hides them globally with !important on a universal selector. Kept there rather than
   here so the five apps cannot drift apart on it. */

/* ── Resource library ────────────────────────────────────────────────────── */
.hr-res {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px;
  padding: 12px 15px; border-top: 1px solid var(--vo-border); align-items: start;
}
.hr-res:first-child { border-top: 0; }
.hr-res.is-hidden { opacity: .55; }
.hr-res-name { font-size: 14px; font-weight: 600; }
.hr-res-name a { color: var(--vo-green-dark); }
.hr-res-meta { font-size: 11.8px; color: var(--vo-ink-soft); margin-top: 5px; display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.hr-res-note { font-size: 12.8px; color: var(--vo-ink-soft); margin-top: 6px; max-width: 78ch; line-height: 1.5; }
a.hr-btn { text-decoration: none; display: inline-block; }

/* Belt and braces for the floating tool stack. window.VO_HIDE_FABS stops topnav.js loading the
   scripts; this hides anything another shared script injects later, so the reading pane stays
   clear whatever else arrives. */
.hr-app .wt-ask-ai-fab, .hr-app .wt-improve-fab, .hr-app .wt-notes-fab,
.hr-app .wt-coach-fab, .hr-app .wt-bookmark-fab, .hr-app .wt-bookmark-add-fab,
.hr-app .wt-edit-fab-panel, .hr-app [data-wt-ask-ai-btn], .hr-app .wt-fab-stack,
.hr-app .wt-ideas-fab, .hr-app .wt-voice-history-fab {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THE ALIGN VIEW — choosing how the company wins

   Two columns: the model on the left, a full description of whichever quadrant you are looking at
   on the right. Reading and choosing are separate acts, and the layout says so — you can move
   around the grid freely and nothing changes until you press a button that names the choice.
   ═══════════════════════════════════════════════════════════════════════════ */

/* The current choice, stated in words above the diagram. A diagram alone makes a leader infer
   their own strategy from a shaded box. */
.hr-choice-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px;
  margin: 18px 0 4px; padding: 13px 16px;
  border: 1px solid var(--vo-border); border-radius: 10px;
  background: var(--vo-surface-2, var(--vo-surface));
}
.hr-choice { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hr-choice .k {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--vo-ink-soft);
}
.hr-choice .v {
  font-family: var(--vo-font-heading); font-size: 16px; font-weight: 600; color: var(--vp, var(--vo-ink));
  display: flex; align-items: baseline; gap: 8px;
}
.hr-choice .v.none { color: var(--vo-ink-soft); font-weight: 400; font-style: italic; font-size: 14px; }
.hr-choice-actions { margin-left: auto; }

/* A button that reads as text. For a reversible, low-stakes action like removing an optional
   second strategy, a full button gives it more weight than it deserves. */
.hr-linkbtn {
  appearance: none; background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: 11.5px; color: var(--vo-ink-soft); text-decoration: underline;
  text-underline-offset: 2px;
}
.hr-linkbtn:hover { color: var(--hr-crit, var(--vo-red)); }

/* An explanatory paragraph beside a control. Distinct from .hr-lede, which introduces a screen. */
.hr-note {
  font-size: 12.8px; line-height: 1.62; color: var(--vo-ink-soft);
  max-width: 76ch; margin: 10px 0 14px;
}

.hr-oa-split {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 24px; align-items: start; margin-top: 16px;
}
@media (max-width: 900px) { .hr-oa-split { grid-template-columns: 1fr; } }

.hr-oa-model {
  border: 1px solid var(--vo-border); border-radius: 10px;
  background: var(--vo-surface); padding: 16px 16px 12px;
}
.hr-oa-svg { width: 100%; height: auto; display: block; }
.hr-oa-axis {
  font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  fill: var(--vo-ink-soft);
}
.hr-oa-name { font-family: var(--vo-font-heading); font-size: 12.5px; font-weight: 600; }
.hr-oa-sub { font-size: 9.5px; fill: var(--vo-ink-soft); }
.hr-oa-tag { font-size: 8.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* The whole quadrant is the control, so it has to look like one. */
.hr-oa-box { cursor: pointer; }
.hr-oa-box rect:first-of-type { transition: filter .12s; }
.hr-oa-box:hover rect:first-of-type { filter: brightness(.985); }
.hr-oa-box.is-focus rect:first-of-type { stroke-width: 2.5; }
/* Focus ring drawn on the rect itself — an outline on the group traces the text nodes too and
   renders as a ragged box. */
.hr-oa-box:focus { outline: none; }
.hr-oa-box:focus-visible rect:first-of-type { stroke: var(--vo-ink); stroke-width: 2.5; }

.hr-oa-legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px;
  margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--vo-border);
  font-size: 11px; color: var(--vo-ink-soft);
}
.hr-oa-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hr-oa-legend .hint { margin-left: auto; font-style: italic; }
.hr-oa-legend .sw {
  width: 15px; height: 11px; border-radius: 2px; border: 1.5px solid var(--vo-ink-soft);
  display: inline-block;
}
.hr-oa-legend .sw.solid { background: color-mix(in srgb, var(--vo-ink-soft) 16%, transparent); }
.hr-oa-legend .sw.hatch {
  border-style: dashed;
  background: repeating-linear-gradient(45deg,
    color-mix(in srgb, var(--vo-ink-soft) 32%, transparent) 0 2px, transparent 2px 5px);
}

/* The description panel. Sticky, so a leader comparing quadrants keeps the text beside the diagram
   instead of scrolling between them. */
.hr-oa-detail {
  border: 1px solid var(--vo-border); border-left: 3px solid var(--vp, var(--vo-border));
  border-radius: 10px; background: var(--vo-surface); padding: 20px 22px;
  position: sticky; top: 12px;
}
@media (max-width: 900px) { .hr-oa-detail { position: static; } }
.hr-oa-detail-head .eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: var(--vp, var(--vo-ink-soft));
}
.hr-oa-detail-head h3 {
  font-family: var(--vo-font-heading); font-size: 21px; font-weight: 600;
  margin: 5px 0 0; color: var(--vo-ink); text-wrap: balance;
}
.hr-oa-detail-head .tag {
  font-size: 13.4px; line-height: 1.55; color: var(--vo-ink-soft); margin: 7px 0 0; max-width: 46ch;
}

.hr-deflist { margin: 18px 0 0; }
.hr-deflist dt {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--vo-ink-soft); margin-top: 14px;
}
.hr-deflist dt:first-child { margin-top: 0; }
.hr-deflist dd { margin: 4px 0 0; font-size: 13.4px; line-height: 1.6; color: var(--vo-ink); }

.hr-oa-headline {
  margin-top: 18px; padding: 12px 14px; border-radius: 8px;
  background: color-mix(in srgb, var(--vp) 8%, transparent);
  font-family: var(--vo-font-heading); font-size: 13.6px; line-height: 1.5;
  color: var(--vo-ink); font-style: italic;
}
.hr-oa-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--vo-border);
}

/* The Gap column is read at a glance, so the word under the number carries the meaning. */
.hr-delta-label {
  font-size: 10px; font-weight: 400; text-transform: uppercase; letter-spacing: .06em;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THE GUIDED FINDER

   One question per screen, full-width answers. Sized so a question and its four answers fit
   without scrolling on a laptop — scrolling to see option D is how option D stops getting picked.
   ═══════════════════════════════════════════════════════════════════════════ */
.hr-finder { max-width: 720px; margin: 0 auto; }
.hr-finder-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 14px; border-bottom: 1px solid var(--vo-border);
}
.hr-finder-kicker {
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--vo-ink-soft);
}

.hr-finder-progress { display: flex; align-items: center; gap: 6px; margin: 18px 0 26px; }
.hr-finder-progress i {
  width: 100%; max-width: 34px; height: 3px; border-radius: 2px;
  background: var(--vo-border); transition: background .15s;
}
.hr-finder-progress i.done { background: var(--vo-green); }
.hr-finder-progress i.now { background: var(--vo-ink); }
/* The three that do not count are visibly a different kind of question before you answer them. */
.hr-finder-progress i[data-unscored] { opacity: .55; }
.hr-finder-progress .c {
  margin-left: 10px; flex: none; font-size: 11px; color: var(--vo-ink-soft);
  font-variant-numeric: tabular-nums;
}

.hr-finder-banner {
  padding: 12px 15px; border-radius: 8px; margin-bottom: 20px;
  background: color-mix(in srgb, var(--vo-blue) 8%, transparent);
  border-left: 3px solid var(--vo-blue);
  font-size: 12.8px; line-height: 1.6; color: var(--vo-ink);
}
.hr-finder-banner.warn {
  background: color-mix(in srgb, var(--vo-amber, #b8860b) 10%, transparent);
  border-left-color: var(--vo-amber, #b8860b);
}

.hr-finder-q h2 {
  font-family: var(--vo-font-heading); font-size: 23px; font-weight: 600; line-height: 1.3;
  margin: 0; color: var(--vo-ink); text-wrap: balance;
}
.hr-finder-help { font-size: 13px; color: var(--vo-ink-soft); margin: 9px 0 0; max-width: 56ch; }

.hr-finder-options { display: flex; flex-direction: column; gap: 9px; margin: 24px 0 0; }
.hr-finder-opt {
  appearance: none; cursor: pointer; text-align: left; width: 100%;
  display: flex; align-items: flex-start; gap: 13px; padding: 14px 16px;
  border: 1px solid var(--vo-border); border-radius: 9px;
  background: var(--vo-surface); color: var(--vo-ink);
  font: inherit; font-size: 14.2px; line-height: 1.5;
  transition: border-color .12s, background .12s, transform .08s;
}
.hr-finder-opt:hover { border-color: var(--vo-ink-soft); background: var(--vo-surface-2, var(--vo-surface)); }
.hr-finder-opt:active { transform: translateY(1px); }
.hr-finder-opt.on {
  border-color: var(--vo-green); background: color-mix(in srgb, var(--vo-green) 7%, transparent);
  box-shadow: inset 0 0 0 1px var(--vo-green);
}
.hr-finder-opt .ltr {
  flex: none; width: 22px; height: 22px; border-radius: 5px;
  display: grid; place-items: center;
  background: var(--vo-border); color: var(--vo-ink-soft);
  font-size: 11px; font-weight: 700;
}
.hr-finder-opt.on .ltr { background: var(--vo-green); color: #fff; }
.hr-finder-opt .txt { min-width: 0; }

.hr-finder-nav {
  display: flex; align-items: center; gap: 10px;
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--vo-border);
}
.hr-finder-nav .sp { flex: 1; }

.hr-finder-result {
  text-align: center; padding: 30px 20px 26px; margin: 22px 0 0;
  border: 1px solid var(--vo-border); border-top: 3px solid var(--vp, var(--vo-border));
  border-radius: 10px; background: var(--vo-surface);
}
.hr-finder-result .eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--vo-ink-soft);
}
.hr-finder-result h2 {
  font-family: var(--vo-font-heading); font-size: 30px; font-weight: 600;
  margin: 7px 0 0; color: var(--vp, var(--vo-ink)); text-wrap: balance;
}
.hr-finder-result .tag {
  font-size: 14px; color: var(--vo-ink-soft); margin: 9px auto 0; max-width: 48ch; line-height: 1.55;
}
.hr-finder-conf {
  display: inline-block; margin-top: 16px; padding: 5px 12px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
  background: var(--vo-border); color: var(--vo-ink-soft);
}
.hr-finder-conf.high { background: color-mix(in srgb, var(--vo-green) 15%, transparent); color: var(--vo-green-dark); }
.hr-finder-conf.medium { background: color-mix(in srgb, var(--vo-blue) 14%, transparent); color: var(--vo-blue); }

/* The tally, shown rather than hidden. Someone who disagrees with the result can see exactly which
   answers produced it, which is usually enough to spot the one question they rushed. */
.hr-finder-tally { margin: 22px 0 0; display: flex; flex-direction: column; gap: 7px; }
.hr-finder-tally .row { display: grid; grid-template-columns: 15em 1fr 2em; align-items: center; gap: 12px; }
.hr-finder-tally .n { font-size: 12.6px; color: var(--vo-ink); }
.hr-finder-tally .bar { height: 7px; border-radius: 4px; background: var(--vo-border); overflow: hidden; }
.hr-finder-tally .bar i { display: block; height: 100%; border-radius: 4px; }
.hr-finder-tally .v {
  font-size: 12.6px; font-weight: 600; text-align: right; color: var(--vo-ink-soft);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 620px) { .hr-finder-tally .row { grid-template-columns: 9em 1fr 2em; } }

.hr-finder-second, .hr-finder-gap {
  margin-top: 20px; padding: 16px 18px; border-radius: 9px;
  border: 1px solid var(--vo-border); background: var(--vo-surface);
}
.hr-finder-second .eyebrow, .hr-finder-gap .eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: var(--vo-ink-soft); margin-bottom: 5px;
}
.hr-finder-second strong { font-family: var(--vo-font-heading); font-size: 16.5px; }
.hr-finder-second p, .hr-finder-gap p {
  font-size: 13.2px; line-height: 1.6; color: var(--vo-ink); margin: 7px 0 0; max-width: 64ch;
}
.hr-finder-gap { border-left: 3px solid var(--vo-amber, #b8860b); }

/* ═══════════════════════════════════════════════════════════════════════════
   THE ENGAGEMENT PHASE CARD

   The phase used to be a chip in the header that changed nothing. It now answers "what now", so it
   gets the weight of an answer: the four phases as a journey rather than four equal pills, then
   the instruction, then the one button that acts on it.
   ═══════════════════════════════════════════════════════════════════════════ */
.hr-phase-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, auto);
  grid-template-areas: "steps steps" "body actions";
  gap: 14px 24px; align-items: start;
  padding: 18px 20px; margin-bottom: 18px;
  border: 1px solid var(--vo-border); border-left: 3px solid var(--vo-green);
  border-radius: 10px; background: var(--vo-surface);
}
@media (max-width: 760px) {
  .hr-phase-card { grid-template-columns: 1fr; grid-template-areas: "steps" "body" "actions"; }
}

.hr-phase-steps {
  grid-area: steps; display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.hr-phase-step {
  position: relative; padding: 3px 11px 3px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: .03em;
  background: var(--vo-canvas); color: var(--vo-ink-soft);
  border: 1px solid var(--vo-border);
}
/* Completed phases read as behind you; the current one is the only filled pill on the card. */
.hr-phase-step.done { color: var(--vo-green-dark); border-color: var(--vo-green); opacity: .75; }
.hr-phase-step.now {
  background: var(--vo-green); border-color: var(--vo-green); color: #fff;
}

.hr-phase-body { grid-area: body; min-width: 0; }
.hr-phase-body h3 {
  font-family: var(--vo-font-heading); font-size: 18px; font-weight: 600;
  margin: 0; color: var(--vo-ink); text-wrap: balance;
}
.hr-phase-body p {
  font-size: 13.4px; line-height: 1.6; color: var(--vo-ink-soft);
  margin: 7px 0 0; max-width: 66ch;
}
.hr-phase-done .k {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--vo-ink-soft); margin-right: 6px;
}

.hr-phase-actions {
  grid-area: actions; display: flex; flex-direction: column; align-items: stretch; gap: 10px;
}
.hr-phase-prog { font-size: 11.5px; color: var(--vo-ink-soft); }
.hr-phase-prog .bar {
  height: 5px; border-radius: 3px; background: var(--vo-border);
  overflow: hidden; margin-bottom: 5px;
}
.hr-phase-prog .bar i { display: block; height: 100%; background: var(--vo-green); border-radius: 3px; }

/* ── What the assessment mode is doing, on the assessment itself ────────── */
.hr-modebar {
  padding: 11px 15px; margin-bottom: 16px;
  border: 1px solid var(--vo-border); border-radius: 9px;
  background: var(--vo-surface-2, var(--vo-surface));
}
.hr-modebar-main {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px;
  font-size: 13.4px; color: var(--vo-ink);
}
.hr-modebar-main .k {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--vo-ink-soft);
}
.hr-modebar-count {
  margin-left: auto; font-size: 12px; color: var(--vo-ink-soft);
  font-variant-numeric: tabular-nums;
}
.hr-modebar-note {
  font-size: 12.2px; line-height: 1.55; color: var(--vo-ink-soft);
  margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--vo-border);
  max-width: 92ch;
}
.hr-modebar-note.warn { color: var(--hr-warn, #9a6b04); }

/* ── A setting that explains itself ─────────────────────────────────────── */
.hr-setting { padding: 2px 0 14px; }
.hr-setting + .hr-setting {
  padding-top: 14px; border-top: 1px solid var(--vo-border);
}
.hr-setting:last-child { padding-bottom: 2px; }
.hr-setting-note {
  font-size: 12.4px; line-height: 1.58; color: var(--vo-ink-soft);
  margin: 9px 0 0; max-width: 88ch;
}

/* ── The export screen: what is in each report, and the template panel ──── */
.hr-toc { margin: 10px 0 0; padding-left: 1.25em; }
.hr-toc li {
  font-size: 12.4px; line-height: 1.5; color: var(--vo-ink); margin-bottom: 3px;
}
.hr-tplcard code, .hr-tpl-help code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px; padding: 1px 5px; border-radius: 4px;
  background: var(--vo-green-tint); color: var(--vo-green-dark);
}
.hr-tpl-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--vo-border);
}
.hr-tpl-help { margin-top: 14px; }
.hr-tpl-help summary {
  cursor: pointer; font-size: 12.6px; font-weight: 600; color: var(--vo-green-dark);
  padding: 6px 0;
}
.hr-tpl-help summary:hover { text-decoration: underline; }
.hr-tpl-help table { margin-top: 8px; }

/* The level name is also the way into the shared maturity guide, so it has to read as pressable
   without becoming another loud button in a column that already has seven.
   See assets/js/vo-maturity-guide.js — shared with the Sales Playbook. */
button.hr-guide-open {
  appearance: none; cursor: pointer; border: 1px dashed var(--vo-border);
  background: transparent; font-family: inherit; line-height: 1.35;
  padding: 3px 8px; border-radius: 6px; max-width: 100%; text-align: right;
}
button.hr-guide-open:hover {
  border-color: var(--vo-blue); color: var(--vo-blue-dark); border-style: solid;
  background: var(--vo-blue-tint);
}
button.hr-guide-open:focus-visible { outline: 2px solid var(--vo-blue); outline-offset: 1px; }
