/* NHO data landscape workshop, in the Daylight design (the ASVAB Prep design system).
   Every colour, size, radius and shadow comes from tokens.css; nothing here names a colour of its own.
   Sectors are the categories: each owns a hue (cat-N), a shape and its name, and the three always travel together.
   Status (draft, confirmed, disagree) is told by words, icons and line style, never by a sector's hue. */

/* ---------- base ---------- */
html.display { font-size: 20px; }
[hidden] { display: none !important; }
/* A sector's colour as a big soft field (with a cat-N class). Ink on a field is always --on-field. */
.hue { background: var(--s-field); color: var(--on-field); }
.hue :focus-visible, .hue:focus-visible { outline-color: var(--on-field); }
.mark__a { fill: var(--cat-1-field); } .mark__b { fill: var(--cat-2-field); } .mark__c { fill: var(--cat-3-field); } .mark__d { fill: var(--cat-4-field); }
p.meta, .meta { color: var(--muted); font-size: var(--t-small); line-height: 1.45; overflow-wrap: anywhere; }
.hint { display: block; font-weight: var(--w-text); color: var(--muted); font-size: var(--t-small); margin-top: 2px; }
.todo { color: var(--wrong-text); font-weight: 700; }
.done { color: var(--right-text); font-weight: 700; }
.row { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.two { display: grid; gap: 0 var(--sp-4); }
@media (min-width: 40rem) { .two { grid-template-columns: 1fr 1fr; } }
.stack > h2 { margin: var(--sp-3) 0 0; }
.h3 { font-size: var(--t-3); }
.back { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--tap); font-weight: 650; text-decoration: none; color: var(--ink); }
.back:hover { text-decoration: underline; }
.standalone { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 650; }

/* ---------- shell: rail on a laptop, a top line and a floating tab bar on a phone ---------- */
.app { min-height: 100vh; min-height: 100dvh; }
.side__top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-2) var(--sp-4); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.sync { min-height: 2.5rem; padding: 0 var(--sp-3); border-radius: var(--r-pill); border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: var(--t-small); font-weight: 700; white-space: nowrap; }
.sync.pending { background: var(--notice); border-color: var(--ink); }
.sync.offline { background: var(--wrong-soft); border-color: var(--wrong-text); color: var(--wrong-text); }
.side__note { display: none; }
.nav { position: fixed; left: var(--sp-3); right: var(--sp-3); bottom: calc(var(--sp-3) + var(--safe-b)); z-index: 30; max-width: 30rem; margin: 0 auto; background: var(--bar); color: var(--bar-ink); border-radius: 30px; padding: 6px; box-shadow: var(--e-2); }
.nav ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 3.5rem; padding: 4px 2px; border-radius: 24px; color: inherit; text-decoration: none; font-size: 0.8125rem; font-weight: 650; line-height: 1.2; text-align: center; transition: background-color var(--d-fast) var(--ease), transform var(--d) var(--spring); }
.nav a:active { transform: scale(0.94); }
.nav a[aria-current='page'] { background: var(--bar-ink); color: var(--bar); }
.nav a:focus-visible { outline-color: var(--bar-ink); outline-offset: -5px; border-radius: 24px; }
.nav__rail { display: none; }
.main { width: 100%; max-width: 46rem; margin: 0 auto; padding: var(--sp-2) var(--sp-4) calc(8rem + var(--safe-b)); }
.main--join { padding-top: var(--sp-7); }
.main--wide { max-width: none; }
html:not(.joined) .main { padding-bottom: var(--sp-7); }
@media (min-width: 62.5rem) {
  html.joined .app { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); }
  .side { position: sticky; top: 0; align-self: start; height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-5) var(--sp-4); background: var(--sunk); overflow-y: auto; }
  .side__top { flex-direction: column; align-items: flex-start; padding: 0 var(--sp-2); }
  .nav { position: static; max-width: none; margin: 0; background: none; color: inherit; box-shadow: none; padding: 0; border-radius: 0; flex: 1; }
  .nav ul { display: flex; flex-direction: column; gap: var(--sp-1); }
  .nav__rail { display: block; }
  .nav__rail--first { margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
  .nav a { flex-direction: row; justify-content: flex-start; gap: var(--sp-3); min-height: 3rem; padding: 0 var(--sp-4); border-radius: var(--r-pill); font-size: var(--t-body); font-weight: 600; text-align: left; }
  .nav a[aria-current='page'] { background: var(--ink); color: var(--bg); }
  .nav a:focus-visible { outline-color: var(--focus); outline-offset: 3px; }
  .side__note { display: grid; gap: var(--sp-2); margin: 0; font-size: var(--t-small); color: var(--muted); padding: var(--sp-4); border-radius: var(--r-m); background: var(--bg); line-height: 1.4; }
  .side__note b { color: var(--ink); }
  .main { max-width: 56rem; padding: var(--sp-5) var(--sp-7) var(--sp-8); }
  .main--wide { max-width: none; padding: var(--sp-5) var(--sp-6) var(--sp-7); }
  .main--home { max-width: 76rem; }
}
@media (min-width: 62.5rem) and (hover: hover) { .nav a:not([aria-current='page']):hover { background: var(--bg); } }

/* ---------- buttons: one dark pill per screen; everything else quiet ---------- */
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: var(--tap); padding: var(--sp-2) var(--sp-5); border-radius: var(--r-pill); border: 2px solid var(--ink);
  background: transparent; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; line-height: 1.15; text-decoration: none; text-align: center;
  transition: transform var(--d) var(--spring), box-shadow var(--d-fast) var(--ease), background-color var(--d-fast) var(--ease);
}
button:active, .btn:active { transform: scale(0.96); }
.btn, button.primary, .btn.primary, .btn--primary { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.btn--big { min-height: 3.75rem; padding: var(--sp-2) var(--sp-6); font-size: 1.25rem; }
.btn--small, button.small, .btn.small { min-height: 2.75rem; padding: var(--sp-1) var(--sp-4); font-size: 0.9375rem; border-width: 1.5px; }
button.quiet { background: var(--sunk); border-color: transparent; color: var(--ink); font-weight: 650; }
button.good { border-color: var(--right-text); color: var(--right-text); }
button.good[aria-pressed='true'] { background: var(--right-text); border-color: var(--right-text); color: var(--bg); }
button.danger { border-color: var(--wrong-text); color: var(--wrong-text); }
button[aria-pressed='true']:not(.good) { background: var(--ink); border-color: var(--ink); color: var(--bg); }
button[disabled], .btn[aria-disabled='true'] { opacity: 0.45; cursor: not-allowed; transform: none; }
.linkbtn { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--tap); padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink); font-family: var(--font-text); font-weight: 650; font-size: var(--t-body); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.2em; }
.linkbtn:active { transform: none; }
.hue .btn--primary, .hue .btn { background: var(--on-field); border-color: var(--on-field); color: #fdfcf9; }
@media (hover: hover) {
  button:not([disabled]):hover, .btn:hover { transform: scale(1.02); box-shadow: var(--e-1); }
  button.quiet:not([disabled]):hover { background: var(--line); box-shadow: none; }
  .linkbtn:hover { transform: none; box-shadow: none; text-decoration-color: currentColor; }
}
.actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }

/* ---------- forms ---------- */
label { display: block; font-weight: 700; margin: var(--sp-4) 0 var(--sp-1); }
input[type=text], input[type=search], input[type=password], input[type=date], select, textarea {
  font: inherit; width: 100%; min-height: 3.25rem; padding: var(--sp-2) var(--sp-3); border: 2px solid var(--line-strong); border-radius: var(--r-s); background: var(--surface); color: var(--ink);
}
textarea { min-height: 5.5rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--ink); border-radius: var(--r-s); }
input[type=search] { border-radius: var(--r-pill); padding-left: var(--sp-4); }
.searchrow { margin: var(--sp-3) 0; }
.check { display: flex; align-items: flex-start; gap: var(--sp-3); padding: var(--sp-3); border: 2px solid var(--line-strong); border-radius: var(--r-s); margin: var(--sp-2) 0; font-weight: 600; background: var(--surface); cursor: pointer; min-height: var(--tap); }
.check:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.check input { width: 1.4rem; height: 1.4rem; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
.check small { display: block; color: var(--muted); font-weight: var(--w-text); font-size: var(--t-small); }
fieldset { border: 0; padding: 0; margin: var(--sp-4) 0 0; min-width: 0; }
legend { font-weight: 700; padding: 0; margin-bottom: var(--sp-2); }
details > summary { cursor: pointer; display: flex; align-items: center; min-height: var(--tap); font-weight: 700; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: ''; flex: none; width: 0.5rem; height: 0.5rem; margin: 0 var(--sp-3) 0 var(--sp-1); border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform var(--d-fast) var(--ease); }
details[open] > summary::before { transform: rotate(45deg); }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: var(--sp-4); margin: 0 0 var(--sp-3); }
.card--sunk { background: var(--sunk); border-color: transparent; }
.card h3 { margin: 0 0 var(--sp-1); font-size: var(--t-3); overflow-wrap: anywhere; }
.card .actions, .card .row.actions { margin-top: var(--sp-3); }
.card.draft { border-style: dashed; border-color: var(--line-strong); }
.panelbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: var(--sp-4) var(--sp-5); margin: var(--sp-5) 0; }
.panelbox.flush { padding: 0; overflow: hidden; }
.panelbox > h2 { margin-top: 0; font-size: var(--t-3); }
.lead { margin-top: 0; }
.note { background: var(--sunk); border-radius: var(--r-m); padding: var(--sp-3) var(--sp-4); margin: var(--sp-3) 0; }
.note.warn, .notice { display: block; border-left: 4px solid var(--ink); background: var(--notice); color: var(--ink); border-radius: 0 var(--r-s) var(--r-s) 0; padding: var(--sp-3) var(--sp-4); margin: var(--sp-3) 0; text-decoration: none; }
a.notice:hover { text-decoration: underline; }
.banner { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; padding: var(--sp-2) var(--sp-4); font-size: var(--t-small); border-bottom: 1px solid var(--line); background: var(--sunk); }
.banner.warn { background: var(--notice); }
.banner.bad { background: var(--wrong-soft); }
.similar { background: var(--notice); border-left: 4px solid var(--ink); border-radius: 0 var(--r-s) var(--r-s) 0; padding: var(--sp-3) var(--sp-4); margin-top: var(--sp-2); }
.similar button { margin: var(--sp-1) var(--sp-1) 0 0; }
.empty { display: grid; justify-items: start; gap: var(--sp-2); padding: var(--sp-5) var(--sp-4); border-radius: var(--r-l); border: 2px dashed var(--line-strong); margin: var(--sp-3) 0; color: var(--ink); font-style: normal; }
.empty > * { margin: 0; }
.empty__title { font-family: var(--font-display); font-weight: 700; font-size: var(--t-3); }
p.empty { display: block; padding: var(--sp-3) var(--sp-4); }
.toast { position: fixed; left: 50%; bottom: calc(6.5rem + var(--safe-b)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: var(--sp-3) var(--sp-5); border-radius: var(--r-pill); z-index: 60; max-width: 92vw; box-shadow: var(--e-2); font-weight: 650; }
@media (min-width: 62.5rem) { .toast { bottom: var(--sp-5); } }
.docref { font-size: var(--t-small); color: var(--ink); background: var(--sunk); border-radius: var(--r-s); padding: var(--sp-2) var(--sp-3); margin: var(--sp-2) 0; overflow-wrap: anywhere; }

/* ---------- chips, badges, marks ---------- */
.tag { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 2rem; margin: 0; padding: 2px var(--sp-3) 2px 8px; border-radius: var(--r-pill); background: var(--s-soft); color: var(--ink); font-size: 0.875rem; font-weight: 650; line-height: 1.2; }
.tag .glyph { color: var(--s-text); }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8125rem; font-weight: 700; padding: 1px var(--sp-2); border-radius: var(--r-pill); border: 1.5px solid currentColor; vertical-align: middle; white-space: nowrap; font-family: var(--font-text); letter-spacing: 0; line-height: 1.5; }
.badge.draft { color: var(--muted); border-style: dashed; }
.badge.confirmed, .badge.new { color: var(--right-text); background: var(--right-soft); border-color: transparent; }
.badge.disputed { color: var(--ink); background: var(--notice); border-color: transparent; }
.badge.rejected, .badge.flag { color: var(--wrong-text); background: var(--wrong-soft); border-color: transparent; }
.badge.pending { color: var(--ink); background: var(--notice); border-color: transparent; }
.badge.assigned { color: var(--muted); border-color: var(--line-strong); }
.badge.assigned.mine { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.pill { display: inline-block; font-size: 0.8125rem; font-weight: 700; padding: 1px var(--sp-3); border-radius: var(--r-pill); background: var(--sunk); color: var(--ink); white-space: nowrap; }
.pill.good, .pill.o-agreed { background: var(--right-soft); color: var(--right-text); }
.pill.bad { background: var(--wrong-soft); color: var(--wrong-text); }
.pill.warn, .pill.o-steering { background: var(--notice); }
.pill.o-open { background: var(--sunk); color: var(--muted); }
.tchip, .tbadge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.6rem; height: 1.6rem; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 0.8125rem; font-weight: 800; padding: 0 0.35rem; font-family: var(--font-display); }
.tbadge { min-width: 2.25rem; height: 2.25rem; font-size: 1rem; border-radius: 12px; }
.tbls { display: inline-flex; gap: 3px; flex-wrap: wrap; justify-content: flex-end; }
.sq { flex: none; display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 14px; background: var(--s-field); color: var(--on-field); }

/* ---------- home: the hero field, quiet rows, a progress card ---------- */
.home { display: grid; gap: var(--sp-5); }
@media (min-width: 62.5rem) { .home { grid-template-columns: minmax(0, 1fr) 21rem; align-items: start; } .home__side { position: sticky; top: var(--sp-5); } }
.hero { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl); padding: var(--sp-5); display: grid; gap: var(--sp-3); }
.hero > * { margin: 0; min-width: 0; }
.hero .eyebrow { font-weight: 700; }
.hero__title { font-size: var(--t-hero); font-weight: 800; letter-spacing: -0.035em; line-height: 1.0; max-width: 13em; overflow-wrap: anywhere; hyphens: auto; }
.hero__lead { font-size: 1.125rem; line-height: 1.5; max-width: 34rem; font-weight: 500; }
.hero__art { position: absolute; z-index: -1; right: -3rem; top: -3.5rem; color: var(--s-deep); }
.hero__art .glyph { width: 15rem; height: 15rem; }
.hero__squares { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; padding: 0; }
.hsq { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 14px; border: 2px solid var(--on-field); color: var(--on-field); }
.hsq.is-done { background: var(--on-field); color: var(--s-field); }
.hero__after { font-weight: 650; }
@media (min-width: 62.5rem) { .hero { padding: var(--sp-6); } .hero__art { right: -4rem; top: -5rem; } .hero__art .glyph { width: 22rem; height: 22rem; } }
.rowcard { display: flex; align-items: center; gap: var(--sp-4); min-height: 4.75rem; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-l); background: var(--sunk); color: var(--ink); text-decoration: none; transition: transform var(--d) var(--spring); }
.rowcard:active { transform: scale(0.98); }
.rowcard__icon { flex: none; width: 3rem; height: 3rem; border-radius: 16px; display: grid; place-items: center; background: var(--surface); }
.rowcard__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.rowcard__title { font-family: var(--font-display); font-weight: 700; font-size: var(--t-3); line-height: 1.15; letter-spacing: -0.01em; }
.rowcard__text { font-size: var(--t-small); color: var(--muted); line-height: 1.4; }
.rowcard__count { font-weight: 700; font-size: var(--t-small); white-space: nowrap; }
.rowcard > .icon:last-child { color: var(--muted); }
@media (hover: hover) { .rowcard:hover { transform: scale(1.01); } }
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); margin: var(--sp-3) 0; }
.figs b { font-family: var(--font-display); font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.figs small { display: block; color: var(--muted); font-size: 0.875rem; line-height: 1.3; margin-top: 2px; }
.sectorlist { list-style: none; margin: var(--sp-2) 0 0; padding: 0; display: grid; gap: var(--sp-2); }
.sectorlist li { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); }
.intro { margin: 0; }
.intro summary { font-family: var(--font-display); font-size: var(--t-3); }
.intro .steps { margin: var(--sp-2) 0 var(--sp-3); padding-left: 1.3rem; display: grid; gap: var(--sp-2); }

/* ---------- lists of systems ---------- */
.sechead { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); }
.sechead h1 { margin: var(--sp-2) 0; }
.chiprow { margin: var(--sp-3) 0 var(--sp-4); }
.chiprow button { border-radius: var(--r-pill); }
.secgroup { margin: 0 0 var(--sp-5); }
.sectitle { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--t-3); margin: var(--sp-5) 0 var(--sp-3); padding-bottom: var(--sp-2); border-bottom: 1px solid var(--line); }
.sectitle .sq { width: 2.25rem; height: 2.25rem; border-radius: 11px; }
.sectitle .count { margin-left: auto; font-size: var(--t-small); color: var(--muted); font-family: var(--font-text); }
.syscard { border-left: 6px solid var(--s-field); }
.syscard.draft { border-left: 6px solid var(--s-field); }
.syscard__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.syscard__rec { font-size: var(--t-small); margin: var(--sp-2) 0 0; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- your table's systems, and the guided page per system ---------- */
.progressline { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; margin: var(--sp-4) 0; }
.progressline .bar { flex: 1 1 14rem; height: 2.25rem; }
.progressline .bar span { line-height: 2.25rem; font-size: var(--t-small); }
.worklist { display: grid; gap: var(--sp-2); }
.workrow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: var(--sp-3) var(--sp-4); text-decoration: none; color: var(--ink); transition: transform var(--d) var(--spring); }
.workrow.done { background: var(--sunk); border-color: transparent; }
@media (hover: hover) { .workrow:hover { transform: scale(1.01); } }
.workrow .wt { flex: 1 1 14rem; min-width: 0; display: grid; }
.workrow .wt b { font-family: var(--font-display); font-size: var(--t-3); line-height: 1.2; }
.workrow .wt small { color: var(--muted); font-size: var(--t-small); }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.stepchip { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8125rem; font-weight: 700; padding: 2px var(--sp-3); border-radius: var(--r-pill); border: 1.5px dashed var(--line-strong); color: var(--muted); white-space: nowrap; }
.stepchip.on { border: 1.5px solid var(--ink); background: var(--ink); color: var(--bg); }
.stepchip.skip { border-style: dotted; opacity: 0.7; }
.stepper { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-3) 0; }
.stepper .stepchip { font-size: var(--t-small); padding: var(--sp-1) var(--sp-3); }
.subjhead { position: relative; overflow: hidden; isolation: isolate; display: grid; gap: var(--sp-2); padding: var(--sp-5); border-radius: var(--r-xl); margin: var(--sp-2) 0 var(--sp-3); }
.subjhead > * { margin: 0; min-width: 0; }
.subjhead h1 { font-size: var(--t-1); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; max-width: 16em; overflow-wrap: anywhere; }
.subjhead__art { position: absolute; z-index: -1; right: -2.5rem; top: -2.5rem; color: var(--s-deep); }
.subjhead__art .glyph { width: 11rem; height: 11rem; }
.subjhead .tag { background: var(--on-field); color: #fdfcf9; justify-self: start; }
.subjhead .tag .glyph { color: var(--s-field); }
.subjhead__meta { font-weight: 600; }
.subjhead .badge { color: var(--on-field); border-color: var(--on-field); background: transparent; }
@media (min-width: 62.5rem) { .subjhead { padding: var(--sp-6); } .subjhead__art { right: -3rem; top: -4rem; } .subjhead__art .glyph { width: 16rem; height: 16rem; } }
.stepbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: var(--sp-4) var(--sp-5); margin: var(--sp-3) 0; }
.stepbox.active { border: 2px solid var(--ink); }
.stepbox.ok { background: var(--sunk); border-color: transparent; }
.stepbox > h2 { display: flex; align-items: center; gap: var(--sp-3); margin: 0 0 var(--sp-3); font-size: var(--t-2); }
.stepbox .sn { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 2px solid var(--ink); display: inline-grid; place-items: center; font-size: 1.0625rem; }
.stepbox.active .sn, .stepbox.ok .sn { background: var(--ink); color: var(--bg); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: var(--sp-1) var(--sp-4); margin: 0 0 var(--sp-3); }
.facts dt { margin: 0; font-weight: 700; color: var(--muted); font-size: var(--t-small); }
.facts dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
@media (max-width: 30rem) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: var(--sp-2); } }
.quick { border-top: 1px solid var(--line); margin-top: var(--sp-4); padding-top: var(--sp-2); }
.quick h3 { font-size: var(--t-body); font-family: var(--font-text); }
.quickq { margin: var(--sp-3) 0; }
.quickq .qq { font-weight: 700; margin-bottom: var(--sp-2); }
.quickq .qq small { display: block; font-weight: var(--w-text); color: var(--muted); font-size: var(--t-small); }
.opts { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.opts .opt { font-family: var(--font-text); font-weight: 600; border-color: var(--line-strong); }
.flowline { border: 1px solid var(--line); border-radius: var(--r-m); padding: var(--sp-3) var(--sp-4); margin: var(--sp-2) 0; background: var(--surface); }
.flowline.rejected { opacity: 0.55; }
.flowline.rejected .fl-main b { text-decoration: line-through; }
.flowline .fl-main { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.flowline .dir { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

/* ---------- dialogs ---------- */
dialog { border: 0; border-radius: var(--r-l); padding: 0; width: min(42rem, 100vw - 1rem); max-height: calc(100vh - 1rem); background: var(--bg); color: var(--ink); box-shadow: var(--e-2); }
dialog::backdrop { background: rgb(16 12 40 / 0.5); }
dialog .dhead { position: sticky; top: 0; background: var(--bg); padding: var(--sp-3) var(--sp-5); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: var(--sp-3); z-index: 2; }
dialog .dhead h2 { margin: 0; flex: 1; font-size: var(--t-3); }
dialog .dbody { padding: var(--sp-2) var(--sp-5) var(--sp-5); }
dialog .dfoot { position: sticky; bottom: 0; background: var(--bg); padding: var(--sp-3) var(--sp-5); border-top: 1px solid var(--line); display: flex; gap: var(--sp-2); justify-content: flex-end; flex-wrap: wrap; }

/* ---------- tables ---------- */
table.t { border-collapse: collapse; width: 100%; font-variant-numeric: lining-nums tabular-nums; }
table.t th, table.t td { text-align: left; vertical-align: top; padding: var(--sp-3); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
table.t thead th { font-size: var(--t-small); color: var(--muted); border-bottom: 2px solid var(--line-strong); vertical-align: bottom; background: var(--bg); }
table.t td.num, table.t th.num { text-align: center; }
table.t.clean td, table.t.clean th { vertical-align: middle; }
table.t.clean tbody th { font-weight: 700; }
.scroll { overflow-x: auto; }
td.zero { color: var(--line-strong); }
.bar { position: relative; height: 1.6rem; min-width: 8rem; background: var(--sunk); border-radius: var(--r-pill); overflow: hidden; }
.bar i { position: absolute; top: 0; bottom: 0; left: 0; background: var(--line-strong); border-radius: var(--r-pill); transition: width var(--d) var(--ease); }
.bar.done i { background: var(--ink); }
.bar span { position: relative; display: block; text-align: center; font-size: 0.8125rem; font-weight: 800; line-height: 1.6rem; color: var(--ink); }
.bar.done span { color: var(--bg); }

/* ---------- shared screens ---------- */
.viewtabs { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; margin-bottom: var(--sp-3); }
.viewtabs a { display: inline-flex; align-items: center; gap: var(--sp-2); padding: var(--sp-1) var(--sp-4); min-height: 2.75rem; border-radius: var(--r-pill); background: var(--sunk); text-decoration: none; font-weight: 650; color: var(--ink); }
.viewtabs a[aria-current='page'] { background: var(--ink); color: var(--bg); }
.viewtabs a.back { background: none; padding-left: 0; }
.viewhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--sp-5); }
.viewhead h1 { margin: var(--sp-1) 0; }
.viewhead p { margin: 0; flex: 1 1 26rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: var(--sp-2); margin: var(--sp-3) 0 var(--sp-4); }
.kpi { background: var(--sunk); border-radius: var(--r-m); padding: var(--sp-3) var(--sp-4); display: flex; flex-direction: column; }
.kpi b { font-family: var(--font-display); font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.kpi span { color: var(--muted); font-size: var(--t-small); line-height: 1.3; }
.kpi.bad b { color: var(--wrong-text); }
.kpi.zero { opacity: 0.6; }
.viewbar { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; margin-bottom: var(--sp-3); }
.viewbar select, .viewbar input[type=search] { width: auto; min-width: 10rem; flex: 1 1 10rem; max-width: 20rem; min-height: 2.75rem; }
.viewbar .chip { border-radius: var(--r-pill); }
.mapstage { display: grid; gap: var(--sp-3); }
.mapwrap { position: relative; }
#cy { width: 100%; height: 70vh; min-height: 26rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-l); }
.zoombar { position: absolute; right: var(--sp-3); top: var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-2); }
.zoombar .zb { min-height: 2.75rem; min-width: 2.75rem; padding: 0; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1.15rem; box-shadow: var(--e-1); }
.zoombar .zb.wide { font-size: 0.75rem; padding: 0 var(--sp-2); font-family: var(--font-text); }
.mappanel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: var(--sp-4); overflow: auto; }
.mappanel .ph h2 { margin: var(--sp-2) 0 var(--sp-1); font-size: var(--t-3); }
.mappanel h3 { font-size: 0.8125rem; margin: var(--sp-4) 0 var(--sp-2); color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--font-text); }
.mappanel .rec { font-size: var(--t-small); margin: var(--sp-3) 0; }
.mappanel ul.links { list-style: none; padding: 0; margin: 0; }
.mappanel ul.links li { padding: var(--sp-2) 0; border-top: 1px solid var(--line); }
.mappanel ul.links a { font-weight: 650; margin-right: var(--sp-2); }
.mappanel .psum ul { padding-left: 1.1rem; margin: var(--sp-1) 0; }
.mchip { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 0 var(--sp-2); border-radius: var(--r-pill); background: var(--sunk); color: var(--ink); vertical-align: middle; }
.mchip.m-manual { background: var(--wrong-soft); color: var(--wrong-text); }
.legend { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-6); font-size: var(--t-small); margin: var(--sp-3) 0; }
.legend .lg { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); align-items: center; }
.legend b { text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.06em; color: var(--muted); }
.legend span.i { display: inline-flex; align-items: center; gap: var(--sp-2); }
.sw { width: 1.75rem; height: 1.1rem; border-radius: 6px; border: 2px solid var(--ink); background: var(--surface); display: inline-block; }
.sw.solid { border-width: 3px; }
.sw.dashed { border-style: dashed; background: var(--sunk); }
.sw.dispute { border: 4px double var(--ink); }
.sw.noowner { border: 3px dotted var(--wrong-text); }
.sw.proj { background: var(--cat-8-field); border-color: transparent; }
.ln { width: 2.25rem; height: 0; border-top: 3px solid var(--ink); display: inline-block; }
.ln.m-file { border-top-style: dashed; border-color: var(--muted); }
.ln.m-manual { border-top: 5px dashed var(--wrong-text); }
.ln.m-report { border-top-style: dotted; border-color: var(--muted); }
.ln.m-unsure { border-top-color: var(--line-strong); }
@media (min-width: 100rem) { .mapstage { grid-template-columns: minmax(0, 1fr) 21rem; } .mappanel { max-height: 70vh; } }

html.display .mapstage { grid-template-columns: minmax(0, 1fr) 17rem; }

/* overlap board */
.board { display: grid; gap: var(--sp-3); }
@media (min-width: 48rem) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 90rem) { .board { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lane { background: var(--sunk); border-radius: var(--r-l); padding: var(--sp-4); min-width: 0; }
.lane header h2 { margin: 0; display: flex; align-items: center; gap: var(--sp-2); font-size: var(--t-3); }
.lane header h2 .n { margin-left: auto; background: var(--ink); color: var(--bg); border-radius: var(--r-pill); padding: 0 var(--sp-3); font-size: var(--t-small); font-family: var(--font-text); }
.lane header p { margin: var(--sp-1) 0 var(--sp-3); }
.items { display: grid; gap: var(--sp-2); }
.items.cols { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.oitem { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: var(--sp-3) var(--sp-4); }
.oitem.o-agreed { border-left: 5px solid var(--right-text); }
.oitem.o-steering { border-left: 5px solid var(--ink); }
.oitem .ohead { display: flex; gap: var(--sp-2); align-items: flex-start; justify-content: space-between; }
.oitem .what { font-weight: 700; overflow-wrap: anywhere; }
.oitem .sub { font-size: var(--t-small); margin: var(--sp-1) 0; }
.oitem .sub.bad { color: var(--wrong-text); font-weight: 650; }
.oitem .q { font-style: italic; margin: var(--sp-1) 0; font-size: var(--t-small); }
.oitem .res { background: var(--right-soft); border-radius: var(--r-s); padding: var(--sp-2) var(--sp-3); margin-top: var(--sp-2); font-size: var(--t-small); }
.oitem .res.steering { background: var(--notice); }
.answers { list-style: none; padding: 0; margin: var(--sp-2) 0 0; }
.answers li, .ansline { display: flex; justify-content: space-between; gap: var(--sp-2); align-items: center; padding: 2px 0; }

/* projects x functions */
.gridkey { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); font-size: var(--t-small); margin: 0 0 var(--sp-3); }
.gridkey span { display: inline-flex; align-items: center; gap: var(--sp-2); }
.dot { display: inline-block; width: 1.15rem; height: 1.15rem; border-radius: 50%; vertical-align: middle; }
.dot.l1 { border: 2px solid var(--ink); }
.dot.l2 { background: var(--ink); }
.dot.l3 { background: var(--wrong-text); box-shadow: 0 0 0 3px var(--wrong-soft); }
table.t.matrix th.fn { text-align: center; min-width: 7.5rem; }
table.t.matrix th.fn small { display: block; font-weight: var(--w-text); color: var(--muted); font-size: 0.75rem; line-height: 1.25; margin-top: 2px; }
table.t.matrix td.cell, table.t.matrix th.cell { text-align: center; vertical-align: middle; }
table.t.matrix .sticky { position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 15rem; }
table.t.matrix thead .sticky { background: var(--bg); }
table.t.matrix tr.tot th { background: var(--sunk); }

/* facilitator tools */
.qr { background: #fff; padding: var(--sp-3); display: inline-block; border-radius: var(--r-m); border: 1px solid var(--line); }
.qr svg { display: block; width: min(60vw, 18rem); height: auto; }
.bigcode { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; letter-spacing: 0.06em; }
pre.out { background: var(--sunk); color: var(--ink); padding: var(--sp-3); border-radius: var(--r-m); overflow: auto; max-height: 40vh; font-size: 0.8125rem; white-space: pre-wrap; }
.item { border-top: 1px solid var(--line); padding: var(--sp-3) 0; }

/* ---------- big screen for the projector: no menu, larger type ---------- */
html.display .side, html.display .hide-display { display: none !important; }
html.display .app { display: block; }
html.display .main { max-width: none; padding: var(--sp-3) var(--sp-5); }
html.display .kpi b { font-size: 1.6rem; }

/* ---------- small screens, large text, print ---------- */
@media (max-width: 20rem) {
  .nav a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .hero, .subjhead { padding: var(--sp-4); border-radius: var(--r-l); }
  .hero__art, .subjhead__art { display: none; }
  button, .btn { padding: var(--sp-2) var(--sp-3); }
}
@media print { .side, .nav, .viewtabs, .viewbar, .zoombar, button { display: none !important; } .main { padding: 0; } }
@media (forced-colors: active) { .nav a[aria-current='page'] { border: 2px solid CanvasText; } .sq, .hsq { border: 2px solid CanvasText; } }
/* a quiet button on a quiet panel takes the raised surface, so it never disappears into it */
.card--sunk button.quiet, .stepbox.ok button.quiet, .lane button.quiet, .note button.quiet, .rowcard button.quiet, .kpi button.quiet { background: var(--surface); border-color: var(--line-strong); }
.join { max-width: 32rem; margin: 0 auto; }
.joinmark { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.join .eyebrow { color: var(--muted); }
.join form { margin-top: var(--sp-4); }

/* ---------- participants: no menu, a slim bar at the top of every page (laptop and phone alike) ---------- */
html.simple .app { display: block !important; }
html.simple .side { position: sticky; top: 0; z-index: 20; height: auto; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-4); padding: var(--sp-2) var(--sp-4); background: var(--bg); border-bottom: 1px solid var(--line); overflow: visible; }
html.simple .side__top { flex-direction: row; align-items: center; padding: 0; gap: var(--sp-3); }
html.simple .nav { display: none; }
html.simple .side__note { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--sp-4); padding: 0; background: none; border-radius: 0; font-size: var(--t-small); }
html.simple .side__note > div { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
html.simple .side__note > div > b::after { content: ' ·'; font-weight: 400; color: var(--muted); }
html.simple .main { padding-bottom: var(--sp-7); max-width: 56rem; }
html.simple .main--home { max-width: 76rem; }
html.simple .main--wide { max-width: none; }
html.simple .toast { bottom: var(--sp-5); }
@media (max-width: 40rem) { html.simple .side__note > div > b { display: none; } html.simple .side { padding: var(--sp-1) var(--sp-3); } }
@media (min-width: 62.5rem) { html.simple .main { padding-top: var(--sp-5); } }

/* ---------- the participant start page: an overview, the table's own systems first ---------- */
.homehead > * { margin: 0; }
.homehead h1 { font-size: var(--t-hero); letter-spacing: -0.035em; margin: var(--sp-1) 0 var(--sp-2); }
.homehead .eyebrow { color: var(--muted); }
.bigrow { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-5); border-radius: var(--r-xl); background: var(--ink); color: var(--bg); text-decoration: none; transition: transform var(--d) var(--spring); }
.bigrow:active { transform: scale(0.98); }
.bigrow__body { flex: 1; min-width: 0; display: grid; gap: var(--sp-2); }
.bigrow .eyebrow { opacity: 0.8; }
.bigrow__title { font-family: var(--font-display); font-weight: 800; font-size: var(--t-1); letter-spacing: -0.03em; line-height: 1.05; }
.bigrow__text { font-size: 1.0625rem; line-height: 1.45; max-width: 36rem; }
.bigrow__count { font-weight: 700; }
.bigrow .hero__squares { margin: var(--sp-1) 0; }
.bigrow .hsq { border-color: var(--bg); color: var(--bg); width: 2.25rem; height: 2.25rem; border-radius: 11px; }
.bigrow .hsq.is-done { background: var(--bg); color: var(--ink); }
.bigrow:focus-visible { outline-offset: 4px; border-radius: var(--r-xl); }
@media (hover: hover) { .bigrow:hover { transform: scale(1.01); box-shadow: var(--e-1); } }

/* stacks: the spacing between blocks on the start pages */
.stack { display: grid; gap: var(--sp-4); }
.stack--s { display: grid; gap: var(--sp-2); }
.stack > *, .stack--s > * { min-width: 0; margin-top: 0; margin-bottom: 0; }
.banner.info { background: var(--cat-2-soft); }
/* the table's name beside its letter on the Progress screen */
.prog th .tname { display: block; margin-top: 0.3rem; max-width: 11rem; font-size: 0.6875rem; font-weight: 600; line-height: 1.25; color: var(--muted); white-space: normal; overflow-wrap: normal; word-break: normal; }
.prog thead th { word-break: normal; overflow-wrap: normal; hyphens: none; }
