/* IOG family brand standards v1 (C:\Users\cooper\Downloads\IOG-Brand-Standards.pdf) in the Walmart PSR's
   layout (navy rail + top bar + content column; flat, square, thin rules, faint blueprint grid).
   Colour: IOG blue #002FA7 is the family colour, red is the accent, grey #D1D3D4, ink #231F20.
   Type: Archivo 700/800 uppercase letter-spaced for headlines/labels; Source Sans 3 for body. */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800&family=Source+Sans+3:wght@400;600;700&display=swap');
[hidden] { display:none !important; }
:root {
  --canvas:#f2f5fb; --card:#ffffff; --ink:#231f20; --ink-2:#3e4557; --ink-3:#5e667c;
  --line:#d9dee7; --line-2:#b9c1cf; --rule:#231f20;
  --accent:#002fa7; --accent-deep:#00217a; --accent-soft:#e6ecfa; --on-accent:#fff;
  --red:#e4180a; --red-soft:#fdeae8; --brand-red:#ff0000; --brand-grey:#d1d3d4;
  --rail:#090e1c; --rail-2:#1d2638; --rail-ink:#c3cbdd; --rail-dim:#8e9ab5; --rail-accent:#4d8cff;
  --grid:rgba(0,47,167,.045);
  --font-head:"Archivo","Segoe UI",system-ui,sans-serif;
  --font-body:"Source Sans 3","Segoe UI",system-ui,sans-serif;
  /* Rating colours (+ / +/- / -): IOG blue, brand grey, red, stepped for marks on white and
     validated with the dataviz palette check. Grey is the neutral midpoint (under 3:1 by design),
     so every bar has a tooltip and the tables carry the same counts. */
  --r-plus:#2a5bd7; --r-mid:#a9abad; --r-minus:#e4180a; --surface:#fff;
  /* Tints for rating boxes; text on them stays dark ink. */
  --plus:#00217a; --plusbg:#e6ecfa; --plusline:#9fb3e8;
  --mid:#3e4557; --midbg:#eceef0; --midline:#c4c7ca;
  --minus:#a3150a; --minusbg:#fdeae8; --minusline:#f2aaa4;
  color-scheme:light;
}
* { box-sizing:border-box; }
html, body { margin:0; }
body {
  background-color:var(--canvas);
  background-image:linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size:28px 28px;
  color:var(--ink); font:400 16px/1.34 var(--font-body); font-variant-numeric:tabular-nums;
  -webkit-font-smoothing:antialiased;
}
button, input, select, textarea { font:inherit; color:inherit; }
:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
a { color:var(--accent); }

/* ---- shell ---- */
.shell { display:grid; grid-template-columns:232px minmax(0,1fr); min-height:100vh; }
.rail {
  background:linear-gradient(180deg, var(--rail), var(--rail-2) 140%); color:var(--rail-ink);
  display:flex; flex-direction:column; gap:4px; padding:22px 14px; position:sticky; top:0; height:100vh;
}
.rail .brand { display:grid; gap:10px; padding:0 10px 22px; color:#fff; text-decoration:none; border-bottom:1px solid rgba(195,203,221,.14); margin-bottom:12px; }
.rail .brand img { height:40px; width:auto; display:block; }
.rail .brand b { font:700 12px var(--font-head); letter-spacing:.14em; text-transform:uppercase; color:#fff; }
.rail nav { display:flex; flex-direction:column; gap:2px; }
.rail nav a {
  display:block; color:var(--rail-ink); text-decoration:none; font:600 15px var(--font-head);
  padding:9px 12px; border-left:2px solid transparent;
}
.rail nav a:hover { color:#fff; background:rgba(255,255,255,.05); }
.rail nav a[aria-current="page"] { color:#fff; background:rgba(77,140,255,.12); border-left-color:var(--rail-accent); }
.maincol { min-width:0; display:flex; flex-direction:column; }
.topbar { display:flex; align-items:center; gap:12px 16px; flex-wrap:wrap; padding:12px 32px; border-bottom:1px solid var(--line); background:var(--card); min-height:62px; }
.topbar .who { margin-left:auto; color:var(--ink-3); font-weight:600; }
.topbar form { margin:0; }
.tag { font:700 11px var(--font-head); letter-spacing:.12em; text-transform:uppercase; color:#8a6a12; border:1px dashed #c8a226; background:#fbf2d9; padding:4px 8px; }
.content { padding:30px 32px 48px; display:flex; flex-direction:column; gap:18px; max-width:1640px; width:100%; }
@media (max-width:900px) {
  .shell { grid-template-columns:minmax(0,1fr); grid-template-rows:auto 1fr; }
  .rail { position:static; height:auto; flex-direction:row; flex-wrap:wrap; align-items:center; gap:8px 14px; padding:12px 16px; }
  .rail .brand { padding:0; margin:0; border:0; grid-auto-flow:column; align-items:center; }
  .rail .brand img { height:28px; }
  .rail nav { flex-direction:row; }
  .rail nav a { border-left:0; border-bottom:2px solid transparent; padding:7px 10px; }
  .rail nav a[aria-current="page"] { border-bottom-color:var(--rail-accent); }
  .topbar, .content { padding-left:16px; padding-right:16px; }
}

/* ---- type ---- */
.eyebrow { font:700 11.5px var(--font-head); letter-spacing:.14em; text-transform:uppercase; color:var(--brand-red); margin:0; }
.greet { display:grid; gap:8px; padding-bottom:16px; border-bottom:2px solid var(--rule); }
h1 { margin:0; font:800 40px/1.04 var(--font-head); letter-spacing:-.03em; }
h2 { margin:14px 0 0; font:700 13px var(--font-head); letter-spacing:.12em; text-transform:uppercase; color:var(--ink); }
.sub, .muted { color:var(--ink-3); margin:0; }
.narrow { max-width:520px; }

/* ---- controls ---- */
.btn, button {
  font:700 13px var(--font-head); letter-spacing:.06em; text-transform:uppercase;
  padding:9px 14px; border:1px solid var(--line-2); border-radius:0; background:var(--card); color:var(--ink);
  cursor:pointer; text-decoration:none; display:inline-block;
}
.btn:hover, button:hover { border-color:var(--accent); }
.btn.primary, button.primary { background:var(--accent); border-color:var(--accent); color:var(--on-accent); }
.btn.primary:hover, button.primary:hover { background:var(--accent-deep); }
button:disabled { opacity:.5; cursor:default; }
input[type=text], input[type=email], select, textarea { padding:9px 12px; border:1px solid var(--line-2); border-radius:0; background:var(--card); }
input:focus, select:focus, textarea:focus { outline:none; border-color:var(--accent); }
textarea { width:100%; min-height:120px; }
.row { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.status { font-size:14px; color:var(--ink-3); min-height:18px; margin:0; }
.error { color:var(--red); }

/* ---- panels & tables ---- */
.card { background:var(--card); border:1px solid var(--line); }
.pad { padding:18px; display:grid; gap:12px; }
.scroll { overflow-x:auto; }
table { border-collapse:collapse; width:100%; }
th, td { border-bottom:1px solid var(--line); padding:9px 10px; text-align:center; }
th { font:700 11px var(--font-head); letter-spacing:.1em; text-transform:uppercase; color:var(--ink-3); vertical-align:bottom; background:#f7f9fc; }
th.l, td.l { text-align:left; }
tbody tr:last-child td { border-bottom:0; }
.gwc { background:#f4f6fb; }
th.gwc { background:#eef2f9; }
table.grid { min-width:900px; }
.cell[data-v="+"] { background:var(--plusbg); color:var(--plus); }
.cell[data-v="+/-"] { background:var(--midbg); color:var(--mid); }
.cell[data-v="-"], .cell[data-v="N"] { background:var(--minusbg); color:var(--minus); }
.cell[data-v="Y"] { background:var(--plusbg); color:var(--plus); }
.cell[data-v="Y"], .cell[data-v="N"] { font-size:13px; }
.cell { font:800 15px var(--font-head); }
.done { color:var(--accent); font:700 12px var(--font-head); letter-spacing:.08em; text-transform:uppercase; white-space:nowrap; }
.todo { color:var(--ink-3); font:600 12px var(--font-head); letter-spacing:.08em; text-transform:uppercase; white-space:nowrap; }
.tabs { display:flex; gap:0; border-bottom:1px solid var(--line-2); flex-wrap:wrap; }
.tabs button { border:none; border-bottom:3px solid transparent; background:none; padding:11px 16px; color:var(--ink-3); }
.tabs button[aria-selected=true] { color:var(--ink); border-bottom-color:var(--accent); }
.checklist { columns:3 220px; margin:4px 0; }
.checklist label { display:block; padding:4px 0; break-inside:avoid; }
.person h3 { margin:0; padding:12px 16px; font:700 16px var(--font-head); border-bottom:1px solid var(--line); }
.person h3 span { color:var(--ink-3); font:400 14px var(--font-body); }
tr.sum td { font-size:13px; color:var(--ink-3); background:#f7f9fc; }
.pill { display:inline-block; padding:2px 8px; font:700 11px var(--font-head); letter-spacing:.08em; text-transform:uppercase; background:#eef1f5; color:var(--ink-3); }
.pill.on { background:var(--accent); color:#fff; }
.stack { display:grid; gap:12px; grid-template-columns:minmax(0,1fr); }
/* Wide tables scroll inside their own panel; the page itself never scrolls sideways. */
.content > *, .stack > * { min-width:0; }

/* =====================================================================
   "One hexagon": the brand's shared shape carries the interaction.
   ===================================================================== */
:root { --hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }

/* Rating chips: hexagons with a 1.5px edge (outer hex = edge colour, ::before = fill). */
button.r {
  --edge: var(--line-2); --fill: #fff; --txt: #9aa2b3;
  position: relative; isolation: isolate; width: 46px; height: 52px; padding: 0; border: 0;
  background: var(--edge); clip-path: var(--hex); color: var(--txt);
  font: 800 15px var(--font-head); letter-spacing: 0; text-transform: none;
  transition: transform .12s ease, background-color .15s ease;
}
button.r::before { content: ''; position: absolute; inset: 1.5px; clip-path: var(--hex); background: var(--fill); z-index: -1; transition: background-color .15s ease; }
button.r:hover { --edge: var(--accent); transform: translateY(-1px); }
button.r:focus-visible { outline: none; --edge: var(--accent); }
button.r:focus-visible::before { inset: 3px; }
button.r[data-v="+"]   { --edge: var(--r-plus);  --fill: var(--r-plus);  --txt: #fff; }
button.r[data-v="+/-"] { --edge: var(--r-mid);   --fill: var(--r-mid);   --txt: var(--ink); }
button.r[data-v="-"]   { --edge: var(--r-minus); --fill: var(--r-minus); --txt: #fff; }
button.r[data-v="Y"]   { --edge: var(--r-plus);  --fill: var(--r-plus);  --txt: #fff; font-size: 12px; }
button.r[data-v="N"]   { --edge: var(--r-minus); --fill: var(--r-minus); --txt: #fff; font-size: 12px; }
button.r.pop { animation: snap .26s cubic-bezier(.3,1.6,.5,1); }
@keyframes snap { 0% { transform: scale(.78) rotate(-30deg); } 100% { transform: none; } }
table.rate td { padding-block: 8px; }
table.rate tbody tr { transition: background-color .2s ease; }
table.rate tr.is-done td.who-cell { box-shadow: inset 4px 0 0 var(--accent); }
table.rate tr.is-done { background: #fafbfe; }

/* Inline mini hex used in the instructions. */
.chip-mini { display: inline-grid; place-items: center; width: 24px; height: 27px; clip-path: var(--hex); font: 800 11px var(--font-head); vertical-align: middle; margin: 0 1px; }
.chip-mini[data-v="+"] { background: var(--r-plus); color: #fff; }
.chip-mini[data-v="+/-"] { background: var(--r-mid); color: var(--ink); font-size: 9px; }
.chip-mini[data-v="-"] { background: var(--r-minus); color: #fff; }
.chip-mini[data-v="Y"] { background: var(--r-plus); color: #fff; font-size: 8.5px; width: 28px; height: 31px; }
.chip-mini[data-v="N"] { background: var(--r-minus); color: #fff; font-size: 9px; width: 28px; height: 31px; }

/* Progress hero: the one big number on the page. */
.hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px 36px; align-items: center; padding: 20px 26px; border-top: 3px solid var(--accent); }
.hero-num { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: baseline; column-gap: 10px; }
/* Names stay in view while the hexagons scroll sideways on narrow screens. */
table.rate th:first-child, table.rate td.who-cell { position: sticky; left: 0; z-index: 1; background: var(--card); min-width: 150px; }
table.rate th:first-child { background: #f7f9fc; }
table.rate tr.is-done td.who-cell { background: #fafbfe; }
.hero-num .big { font: 800 76px/0.9 var(--font-head); letter-spacing: -.04em; color: var(--accent); font-stretch: 112%; }
.hero-num .of { font: 700 22px var(--font-head); color: var(--ink-3); }
.hero-num .lbl { grid-column: 1 / -1; font: 700 11.5px var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; }
.hero-side { display: grid; gap: 12px; min-width: 0; }
.meter { display: flex; flex-wrap: wrap; gap: 4px; }
.meter i { width: 22px; height: 25px; clip-path: var(--hex); background: var(--line); transition: background-color .3s ease; }
.meter i.on { background: var(--accent); }
.hero.all-done { border-top-color: var(--brand-red); }
.hero.all-done .big { color: var(--ink); }
.hero .how { margin: 0; color: var(--ink-2); line-height: 1.9; }
@media (max-width: 640px) { .hero { grid-template-columns: 1fr; } .hero-num .big { font-size: 60px; } }

/* Numbered sections, as in the brand standards ("01 The system"). */
.stack { counter-reset: sec; }
.stack > h2 { display: flex; align-items: baseline; gap: 12px; padding-top: 14px; border-top: 2px solid var(--rule); margin-top: 10px; }
.stack > h2::before { counter-increment: sec; content: counter(sec, decimal-leading-zero); color: var(--brand-red); font: 800 12px var(--font-head); letter-spacing: .06em; }

/* Rail: a faint field of outline hexagons behind the menu. */
.rail { background-image:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cg fill='none' stroke='%234d8cff' stroke-opacity='.09' stroke-width='1'%3E%3Cpath d='M28 1 54 16v31L28 62 2 47V16z'/%3E%3Cpath d='M0 64 2 63l26 15v31M56 64l-2-1-26 15'/%3E%3C/g%3E%3C/svg%3E"),
  linear-gradient(180deg, var(--rail), var(--rail-2) 140%);
  background-size: 56px 97px, auto; background-position: 0 100%, 0 0; }

/* Load: one staggered reveal, then still. */
@media (prefers-reduced-motion: no-preference) {
  .content > * { animation: rise .45s cubic-bezier(.2,.7,.2,1) both; }
  .content > *:nth-child(2) { animation-delay: .06s; }
  .content > *:nth-child(3) { animation-delay: .12s; }
  .content > *:nth-child(n+4) { animation-delay: .18s; }
  table.rate tbody tr { animation: rise .4s cubic-bezier(.2,.7,.2,1) both; }
  table.rate tbody tr:nth-child(1) { animation-delay: .18s; }
  table.rate tbody tr:nth-child(2) { animation-delay: .23s; }
  table.rate tbody tr:nth-child(3) { animation-delay: .28s; }
  table.rate tbody tr:nth-child(4) { animation-delay: .33s; }
  table.rate tbody tr:nth-child(n+5) { animation-delay: .38s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { button.r.pop { animation: none; } * { transition: none !important; } }

ul.plain { margin:0; padding-left:20px; display:grid; gap:4px; }
/* Quick-pick buttons (offices / companies) and the add-someone search. */
.chipbtn { padding:6px 10px; font-size:11.5px; border-color:var(--line-2); }
.chipbtn:hover { background:var(--accent-soft); }
.linkbtn { border:0; background:none; padding:0; color:var(--accent); font:600 13px var(--font-body); text-transform:none; letter-spacing:0; text-decoration:underline; }
.addsome { border-top:3px solid var(--line-2); }
.addsome h2 { margin:0; }
.addsome input { max-width:420px; width:100%; }
.picks { display:flex; flex-wrap:wrap; gap:8px; }
.pick { text-transform:none; letter-spacing:0; font:600 15px var(--font-body); padding:8px 12px; }
.pick b { color:var(--accent); font-family:var(--font-head); }

/* Submit box, the "already submitted" banner, and the thank-you page. */
.submitbox { border-top:3px solid var(--accent); }
.submitbox h2 { margin:0; }
.submit-btn { padding:14px 26px; font-size:14px; }
.warn { margin:0; padding:10px 14px; background:#fbf2d9; border-left:3px solid #c8a226; color:var(--ink); }
.banner { margin:0; padding:10px 14px; background:var(--accent-soft); border-left:3px solid var(--accent); color:var(--ink); font-weight:600; }
.thanks {
  position:relative; overflow:hidden; display:grid; gap:12px; justify-items:start;
  padding:clamp(28px,5vw,56px) clamp(24px,5vw,64px); border-top:4px solid var(--accent); max-width:760px;
}
.thanks h1 { font-size:clamp(36px,5vw,56px); }
.thanks .lead { margin:0; font-size:20px; color:var(--ink); }
.thanks .row { margin-top:10px; }
.thanks-mark {
  display:grid; place-items:center; width:64px; height:72px; clip-path:var(--hex);
  background:var(--accent); color:#fff; font:800 30px var(--font-head); margin-bottom:6px;
  animation:thanks-in .45s cubic-bezier(.2,.9,.3,1.3) both;
}
/* Faint red hexagon outline in the corner, echoing the sign-in screen. */
.thanks::after {
  content:''; position:absolute; right:-40px; top:-30px; width:180px; height:206px; clip-path:var(--hex);
  background:var(--brand-red); opacity:.08; pointer-events:none;
}
@keyframes thanks-in { from { transform:scale(.4) rotate(-30deg); opacity:0; } to { transform:none; opacity:1; } }
@media (prefers-reduced-motion: reduce) { .thanks-mark { animation:none; } }
.pick:hover { background:var(--accent-soft); }

/* =====================================================================
   Sign-in gate: values on navy (left), sign-in on white (right).
   ===================================================================== */
body.signin .rail, body.signin .topbar { display:none; }
body.signin .shell { display:block; }
body.signin .content { padding:0; max-width:none; }
.gate { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); min-height:100vh; }
.gate-values {
  position:relative; overflow:hidden; color:#fff; padding:44px clamp(28px,6vw,88px);
  display:flex; flex-direction:column; gap:22px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cg fill='none' stroke='%234d8cff' stroke-opacity='.11' stroke-width='1'%3E%3Cpath d='M28 1 54 16v31L28 62 2 47V16z'/%3E%3Cpath d='M0 64 2 63l26 15v31M56 64l-2-1-26 15'/%3E%3C/g%3E%3C/svg%3E") 0 0/56px 97px,
    radial-gradient(120% 80% at 100% 100%, rgba(0,47,167,.55), transparent 60%),
    linear-gradient(160deg, var(--rail), var(--rail-2));
}
/* One big brand-blue hexagon bleeding off the corner, red edge on top. */
.gate-values::after {
  content:''; position:absolute; right:-140px; bottom:-170px; width:420px; height:485px;
  clip-path:var(--hex); background:var(--accent); opacity:.55; pointer-events:none;
}
/* Red hexagon outline offset from the blue one. */
.gate-values::before {
  content:''; position:absolute; right:56px; top:40px; width:86px; height:100px; pointer-events:none; z-index:1;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 139'%3E%3Cpath d='M60 2 118 35.5v68L60 137 2 103.5v-68z' fill='none' stroke='%23ff0000' stroke-width='3'/%3E%3C/svg%3E") center/contain no-repeat;
}
.gate-logo { height:52px; width:auto; align-self:flex-start; position:relative; z-index:2; }
.gate-eyebrow { margin:auto 0 0; font:700 12px var(--font-head); letter-spacing:.16em; text-transform:uppercase; color:#ff4d4d; position:relative; z-index:2; }
.gate-list { list-style:none; margin:0; padding:0; display:grid; gap:4px; position:relative; z-index:2; }
.gate-list li { display:grid; grid-template-columns:44px 1fr; align-items:baseline; border-top:1px solid rgba(195,203,221,.16); padding:10px 0 6px; }
.gate-list .n { font:800 13px var(--font-head); color:var(--rail-dim); letter-spacing:.06em; }
.gate-list .t { font:800 clamp(28px,3.6vw,50px)/1.02 var(--font-head); letter-spacing:-.025em; text-wrap:balance; }
.gate-cos { margin:18px 0 0; display:flex; align-items:center; gap:12px; flex-wrap:wrap; font:700 12px var(--font-head); letter-spacing:.14em; text-transform:uppercase; color:var(--rail-ink); position:relative; z-index:2; }
.gate-cos i { width:9px; height:10px; clip-path:var(--hex); background:var(--brand-red); display:inline-block; }
.gate-form { background:var(--card); display:grid; align-items:center; padding:44px clamp(24px,5vw,72px); border-left:4px solid var(--accent); }
.gate-inner { display:grid; gap:14px; max-width:420px; }
.gate-inner h1 { font-size:clamp(34px,3.4vw,46px); }
.gate-inner .sub { font-size:17px; }
.gate-btn { display:inline-flex; align-items:center; gap:12px; justify-content:center; padding:15px 20px; font-size:14px; margin-top:8px; }
.ms { display:grid; grid-template-columns:8px 8px; gap:2px; }
.ms i { width:8px; height:8px; background:#fff; }
.gate-note { margin:0; color:var(--ink-3); font-size:14px; }
.gate-dev { margin-top:18px; padding-top:16px; border-top:1px dashed var(--line-2); display:grid; gap:8px; }
@media (prefers-reduced-motion: no-preference) {
  .gate-list li { animation: rise .55s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(.12s + var(--i) * .08s); }
  .gate-inner > * { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; animation-delay:.35s; }
  .gate-values::after { animation: drift 1.2s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes drift { from { transform: translate(60px,60px) rotate(8deg); opacity:0; } to { transform:none; opacity:.55; } }
@media (max-width:860px) {
  .gate { grid-template-columns:1fr; }
  .gate-values { padding:28px 20px 30px; }
  .gate-eyebrow { margin-top:12px; }
  .gate-values::after { width:240px; height:277px; right:-90px; bottom:-120px; }
  .gate-values::before { display:none; }
  .gate-form { border-left:0; border-top:4px solid var(--accent); padding:30px 20px 40px; }
}

.chipbtn[aria-pressed="true"] { background:var(--accent); border-color:var(--accent); color:#fff; }

@media print {
  .rail, .topbar, .tabs, .no-print { display:none !important; }
  .shell { display:block; }
  body { background:#fff; }
  .person { break-inside:avoid; }
}

/* =====================================================================
   Setup: names on a list as chips, plus the quick picker's buttons.
   ===================================================================== */
.tochips { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.tochip { display:inline-flex; align-items:center; gap:6px; background:var(--accent-soft); border:1px solid var(--plusline); padding:4px 3px 4px 10px; font:600 14px var(--font-body); color:var(--ink); }
.tochip.auto { background:#eceef0; border-color:var(--midline); color:var(--ink-2); padding-right:10px; }
.tochip.theirs { background:#fff; border:1px dashed var(--accent); }
.tochip.warn { background:var(--red-soft); border-color:var(--red); }
.tochip .tk { font:700 10.5px var(--font-head); color:var(--accent); }
.tochip button { border:0; background:none; padding:0 6px; font:400 19px/1 var(--font-body); color:var(--ink-3); letter-spacing:0; }
.tochip button:hover { color:var(--red); }
.pick.top { border-color:var(--accent); box-shadow:inset 0 -2px 0 var(--accent); }
.pick.all { background:var(--accent); border-color:var(--accent); color:#fff; }
.pick.all:hover { background:var(--accent-deep); }

/* Leadership tabs carry a step number in a small hexagon. */
.tabn { display:inline-grid; place-items:center; width:20px; height:23px; margin-right:8px; clip-path:var(--hex); background:var(--line-2); color:#fff; font:800 11px var(--font-head); vertical-align:-5px; }
.tabs button[aria-selected=true] .tabn { background:var(--accent); }

/* Where the review stands: one sentence and the one button that moves it on. */
.stage { display:flex; gap:16px 28px; align-items:center; justify-content:space-between; flex-wrap:wrap; padding:18px 22px; border-top:3px solid var(--brand-red); }
.stage.live { border-top-color:var(--accent); }
.stage > div:first-child { display:grid; gap:4px; min-width:0; }
.stage-h { margin:0; font:800 24px/1.15 var(--font-head); letter-spacing:-.01em; }
.stage-act { display:grid; gap:6px; justify-items:end; max-width:360px; }
.stage-act .status { text-align:right; }
.stage-act button { padding:13px 22px; }
.stage-act button.linkbtn { padding:0; }
.confirm-row { display:flex; gap:8px; align-items:stretch; flex-wrap:wrap; justify-content:flex-end; }
.confirm-row input { width:96px; font:700 18px var(--font-head); text-align:center; letter-spacing:.06em; }
@media (max-width:640px) { .stage-act { justify-items:start; } .stage-act .status { text-align:left; } }

/* Setup list: one row per person, office headings between. */
.legend2 { display:flex; gap:8px; flex-wrap:wrap; }
.legend2 .tochip { padding-right:10px; font-size:13px; }
.plist2 { padding:0; }
.office-h { margin:0; padding:9px 16px; font:700 11px var(--font-head); letter-spacing:.12em; text-transform:uppercase; color:var(--ink-3); background:#f7f9fc; border-bottom:1px solid var(--line); border-top:2px solid var(--rule); }
.office-h:first-child { border-top:0; }
.prow { display:grid; grid-template-columns:220px minmax(0,1fr); gap:8px 18px; padding:12px 16px; border-bottom:1px solid var(--line); align-items:start; }
.prow:last-child { border-bottom:0; }
.prow.open { background:var(--accent-soft); box-shadow:inset 4px 0 0 var(--accent); }
.prow-who { display:flex; flex-wrap:wrap; gap:2px 8px; align-items:baseline; padding-top:4px; }
.prow-who strong { flex-basis:100%; font-size:16px; }
.prow-who .muted { font-size:13px; }
.prow-list { display:grid; gap:12px; min-width:0; }
.addbtn { padding:5px 12px; font-size:11px; border-style:dashed; border-color:var(--accent); color:var(--accent); background:#fff; }
.addbtn.on { border-style:solid; background:var(--accent); color:#fff; }
.picker { display:grid; gap:8px; padding:14px; background:#fff; border:1px solid var(--line-2); }
.picker input { width:100%; font-size:16px; padding:10px 12px; }
.lbl { margin:0; font:700 11px var(--font-head); letter-spacing:.12em; text-transform:uppercase; color:var(--ink-3); }
@media (max-width:760px) { .prow { grid-template-columns:1fr; } }

/* People & roles: folded away until needed. */
.people-box summary { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:16px 18px; cursor:pointer; font:700 13px var(--font-head); letter-spacing:.12em; text-transform:uppercase; list-style:none; }
.people-box summary::-webkit-details-marker { display:none; }
.people-box summary::before { content:'+'; font:800 18px var(--font-head); color:var(--accent); margin-right:4px; }
.people-box[open] summary::before { content:'–'; }
.people-box summary > span:first-child { margin-right:auto; }
.people-box[open] summary { border-bottom:1px solid var(--line); }
.people-box textarea { width:100%; }
.people-box tr.off td { color:var(--ink-3); }
.people-box td .muted { font-size:13px; }

/* Review list: whole rows open a person. */
table.clicky tbody tr { cursor:pointer; }
table.clicky tbody tr:hover td { background:var(--accent-soft); }
h2.inline { margin:0; }
.push { margin-left:auto; }
.small { font-size:12px; }
.copybox { width:100%; max-width:640px; font-size:13px; }

/* =====================================================================
   Results: average row, and the printed page for each person.
   ===================================================================== */
.print-only { display:none; }
tr.selfrow td { background:#f7f9fc; border-bottom:2px solid var(--rule); }
tr.selfrow td.l { font:700 12px var(--font-head); letter-spacing:.1em; text-transform:uppercase; }
tr.avg td { border-top:2px solid var(--rule); font-weight:800; }
tr.avg td.l { font:700 12px var(--font-head); letter-spacing:.1em; text-transform:uppercase; background:var(--card); }
tr.avg .cell { font-size:18px; }
.avg-d { font:600 11px var(--font-body); color:var(--ink-3); letter-spacing:0; }
.person h3 { display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; }
.one-btn { margin-left:auto; padding:6px 10px; font-size:11px; }
@media print {
  @page { margin:14mm; }
  body { background:#fff !important; font-size:13px; }
  * { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  .content { padding:0 !important; max-width:none; gap:0; }
  .content > .greet, .content > .tabs { display:none !important; }
  .screen-only { display:none !important; }
  tbody.print-only { display:table-row-group; }
  span.print-only { display:inline; }
  p.print-only, div.print-only { display:block; }
  /* "Print everyone": only the sheets made for printing, nothing else on the page. */
  body.printing-all .content > :not(.print-all) { display:none !important; }
  .person { border:0; break-after:page; page-break-after:always; break-inside:avoid; margin:0; }
  .person:last-child { break-after:auto; page-break-after:auto; }
  .person h3 { font-size:24px; padding:0 0 10px; border-bottom:3px solid var(--rule); }
  .pr-meta { margin-left:auto; font:700 11px var(--font-head); letter-spacing:.12em; text-transform:uppercase; color:var(--brand-red); }
  .pr-foot { margin:14px 0 0; font-size:11px; color:var(--ink-3); }
  .person .scroll { overflow:visible; }
  table.grid { min-width:0; }
  body.print-one .person:not(.print-me) { display:none !important; }
  body.print-one .person.print-me { break-after:auto; page-break-after:auto; }
  .stack > h2 { display:none; }
}

tr.unrated td { color:var(--ink-3); }
tr.unrated td.l::after { content:" · not started"; font-size:12px; }
