/* Ascailia Network 2.0: the shared kit (STYLE-GUIDE.md in the network-2.0 mockups). Every selector starts with .n2 (flat, no nesting), so only
   pages that wrap their content in <div class="n2"> get it and old pages look exactly as before. The portal's own tokens,
   fonts, reset and chrome (masthead, sidebar, phone bars) come from portal.css; this file adds only the 2.0 parts.
   Page-only rules stay in the page's own <style>. */
.n2 { --z-sticky: 10; --z-bar: 20; font-size: 1.0625rem; line-height: 1.55; }
.n2 *, .n2 *::before, .n2 *::after { box-sizing: border-box; }
/* no margin/padding reset here: portal.css already zeroes every element at zero specificity; repeating it under .n2 (0,1,0) used to beat
   every single-class spacing rule in portal.css, so the old settings forms drawn inside 2.0 pages lost their padding and gaps */
/* 2.0 headings set their own gaps; an old box's own heading rule (.admin-block h2) still wins */
.n2 :where(h1, h2, h3) { margin: 0; }
.n2 ::selection { background: var(--red); color: #fff; }
.n2 * { scrollbar-color: var(--rule-strong) transparent; scrollbar-width: thin; }
.n2 :focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.n2 a { color: var(--brass); text-underline-offset: .1875rem; text-decoration-thickness: 1px; }
.n2 a:hover { color: var(--ink); }
.n2 button { font: inherit; color: inherit; }
/* portal.css writes every label in Courier caps; 2.0 labels are sentence case Public Sans */
.n2 label { font: inherit; color: inherit; text-transform: none; letter-spacing: normal; }
.n2 button, .n2 a, .n2 label, .n2 input, .n2 select, .n2 summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.n2 .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.n2 .icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter; }
.n2 h1, .n2 h2, .n2 h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 1; letter-spacing: .01em; text-wrap: balance; }
.n2 p { max-width: 66ch; text-wrap: pretty; }
.n2 .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
/* ── page head ────────────────────────────────────────── */
.n2 .page-head { margin-bottom: 2rem; }
.n2 .page-head h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: .625rem; }
.n2 .page-head p { color: var(--ink-2); font-size: 1.125rem; max-width: 58ch; }
/* ── info toggletip ───────────────────────────────────── */
.n2 .info { position: relative; display: inline-grid; place-items: center; width: 1.625rem; height: 1.625rem; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--rule-strong); background: var(--sheet-2); color: var(--steel); cursor: pointer; vertical-align: middle; transition: color .15s, border-color .15s, transform .12s var(--ease-out); }
.n2 .info::before { content: ""; position: absolute; inset: -.5rem; }
/* 44px touch target */
.n2 .info svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.n2 .info:hover, .n2 .info[aria-expanded=true] { color: var(--ink); border-color: var(--steel); }
.n2 .info:active { transform: scale(.94); }
.n2 .tip { position: fixed; inset: auto; margin: 0; width: min(22rem, calc(100vw - 1.5rem)); padding: .875rem 1rem 1rem; background: var(--sheet-2); color: var(--ink); border: 1px solid var(--rule-strong); border-top: 2px solid var(--steel); box-shadow: 0 .75rem 2rem rgba(0,0,0,.55); font: 400 1rem/1.5 var(--sans);
  opacity: 0; transform: translateY(-.25rem) scale(.98); transition: opacity .15s var(--ease-out), transform .15s var(--ease-out), overlay .15s allow-discrete, display .15s allow-discrete; }
.n2 .tip:popover-open { opacity: 1; transform: none; }
.n2 .tip b { display: block; font: 800 1.125rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; margin-bottom: .375rem; color: var(--steel); }
/* ── form controls ────────────────────────────────────── */
.n2 input, .n2 select, .n2 textarea { background: var(--well); border: 1px solid var(--rule-strong); border-radius: 2px; color: var(--ink); padding: .6875rem .875rem; font: 400 1.0625rem/1.4 var(--sans); width: 100%; }
.n2 input::placeholder, .n2 textarea::placeholder { color: var(--ink-3); }
.n2 input:focus, .n2 select:focus, .n2 textarea:focus { outline: 2px solid var(--brass); outline-offset: 0; border-color: var(--brass); }
.n2 input[type=checkbox], .n2 input[type=radio] { width: 1.25rem; height: 1.25rem; flex-shrink: 0; accent-color: var(--red); padding: 0; }
.n2 .field-label { display: flex; align-items: center; gap: .625rem; font: 600 1.0625rem/1.3 var(--sans); text-transform: none; letter-spacing: normal; color: var(--ink); margin-bottom: .5rem; }
.n2 .field-label small { font-weight: 400; color: var(--ink-3); font-size: .9375rem; }
.n2 .btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.25rem; border: 1px solid transparent; border-radius: 2px; cursor: pointer; font: 700 .9375rem/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; transition: background-color .15s, border-color .15s, transform .12s var(--ease-out); }
.n2 .btn:active { transform: scale(.97); }
.n2 .btn-primary { background: var(--red); color: #fff; }
.n2 .btn-primary:hover { background: var(--red-deep); }
.n2 .btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.n2 .btn-ghost:hover { background: var(--sheet-2); }
.n2 .btn-big { width: 100%; padding: 1rem 1.25rem; font-size: 1.0625rem; }
/* ── steps ────────────────────────────────────────────── */
.n2 .step { border: 0; padding: 0 0 2.25rem; margin: 0 0 2.25rem; border-bottom: 1px dashed var(--rule); min-width: 0; }
.n2 .step-head { display: flex; align-items: center; gap: .875rem; margin-bottom: .375rem; }
.n2 .step-no { font: 800 1.75rem/1 var(--stencil); color: var(--red-ink); letter-spacing: .04em; min-width: 2.5rem; }
.n2 .step-head h2 { font-size: 1.875rem; }
.n2 .step-help { color: var(--ink-2); margin: 0 0 1.25rem 3.375rem; }
.n2 .step-body { margin-left: 3.375rem; }
/* step 1: a rate card you pick a row from */
.n2 .rates { border: 1px solid var(--rule); background: var(--sheet); }
.n2 .rates-head, .n2 .rate { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) repeat(3, 7.5rem); align-items: center; gap: 0 .75rem; padding: 0 1rem; }
.n2 .rates-head { padding-block: .625rem; border-bottom: 1px solid var(--rule-strong); font: 700 .875rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.n2 .rates-head span:nth-child(n+3) { text-align: right; }
.n2 .rate { padding-block: .875rem; border-top: 1px solid var(--rule); cursor: pointer; position: relative; }
.n2 .rate:first-of-type { border-top: 0; }
.n2 .rate:hover { background: var(--sheet-2); }
.n2 .rate:has(input:checked) { background: var(--sheet-2); box-shadow: inset 0 0 0 1px var(--brass); }
.n2 .rate:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: -2px; }
.n2 .rate-name { display: grid; gap: .25rem; }
.n2 .rate-name b { font-weight: 600; font-size: 1.125rem; }
.n2 .rate-name small { color: var(--ink-2); font-size: .9375rem; line-height: 1.4; }
.n2 .rate-name small em { font-style: normal; color: var(--brass); }
.n2 .tag { display: inline-block; margin-left: .5rem; padding: .125rem .375rem; border: 1px solid currentColor; font: 700 .75rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; vertical-align: .15em; }
.n2 .tag-steel { color: var(--steel); }
.n2 .tag-field { color: var(--field); }
.n2 .pts { text-align: right; font: 700 1.25rem/1 var(--mono); font-variant-numeric: tabular-nums; }
.n2 .pts .k { display: none; }
.n2 .pts.zero { color: var(--ink-3); }
.n2 .picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .5rem; margin-top: .75rem; max-height: 13rem; overflow-y: auto; padding: 2px; }
.n2 .chip { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .75rem; border: 1px solid var(--rule-strong); background: var(--sheet); cursor: pointer; font-size: 1rem; }
.n2 .chip:hover { border-color: var(--ink-3); }
.n2 .chip:has(input:checked) { border-color: var(--brass); background: var(--sheet-2); }
.n2 .chip:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.n2 .chip small { color: var(--ink-3); font-size: .875rem; }
/* step 3 */
.n2 .tools-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1rem; }
.n2 .search { position: relative; flex: 1 1 18rem; max-width: 26rem; }
.n2 .search .icon { position: absolute; left: .75rem; top: 50%; translate: 0 -50%; color: var(--ink-3); }
.n2 .search input { padding-left: 2.5rem; }
.n2 .count { margin-left: auto; font: 700 1rem/1 var(--mono); color: var(--ink-2); }
.n2 .count b { color: var(--ink); font-size: 1.375rem; }
.n2 .paste { border: 1px solid var(--rule); background: var(--sheet); margin-bottom: 1rem; }
.n2 .paste summary { list-style: none; display: flex; align-items: center; gap: .625rem; padding: .75rem 1rem; cursor: pointer; font-weight: 600; }
.n2 .paste summary::-webkit-details-marker { display: none; }
.n2 .paste summary .icon { color: var(--brass); }
.n2 .paste summary:hover { background: var(--sheet-2); }
.n2 .paste summary .open-word { margin-left: auto; font: 700 .875rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.n2 .paste[open] summary { border-bottom: 1px dashed var(--rule); }
.n2 .paste-body { padding: 1rem; display: grid; gap: .75rem; }
.n2 .paste-body textarea { font-family: var(--mono); font-size: 1rem; min-height: 6.5rem; resize: vertical; }
.n2 .paste-body .row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.n2 .paste-result { color: var(--ink-2); }
.n2 .paste-result .miss { color: var(--red-ink); }
.n2 .roster { list-style: none; border: 1px solid var(--rule); background: var(--sheet); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 34rem; overflow-y: auto; }
.n2 .member { display: flex; align-items: center; gap: .25rem; padding: .25rem .5rem .25rem 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.n2 .member:nth-child(odd) { border-right: 1px solid var(--rule); }
.n2 .member.is-on { background: var(--sheet-2); }
.n2 .member[hidden] { display: none; }
.n2 .who { flex: 1; min-width: 0; display: flex; align-items: center; gap: .75rem; padding: .5rem .5rem .5rem .875rem; cursor: pointer; }
.n2 .who-text { min-width: 0; display: grid; }
.n2 .who-text b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n2 .who-text small { color: var(--ink-3); font-size: .9375rem; }
.n2 .member.is-lead .who { cursor: default; }
.n2 .member.is-lead .who-text small { color: var(--brass); }
.n2 .empty-search { padding: 1.25rem 1rem; color: var(--ink-2); grid-column: 1 / -1; }
/* step 4: the closed drawer */
.n2 .drawer { border: 1px solid var(--rule); background: var(--sheet); }
.n2 .drawer > summary { list-style: none; display: flex; align-items: center; gap: .875rem; padding: 1rem 1.125rem; cursor: pointer; }
.n2 .drawer > summary::-webkit-details-marker { display: none; }
.n2 .drawer > summary:hover { background: var(--sheet-2); }
.n2 .drawer > summary > .icon { color: var(--brass); }
.n2 .drawer > summary span { display: grid; gap: .125rem; }
.n2 .drawer > summary b { font: 800 1.375rem/1 var(--display); text-transform: uppercase; }
.n2 .drawer > summary small { color: var(--ink-2); font-size: 1rem; }
.n2 .drawer > summary .open-word { margin-left: auto; font: 700 .875rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.n2 .drawer[open] > summary { border-bottom: 1px dashed var(--rule); }
.n2 .drawer[open] .open-word::after, .n2 .paste[open] .open-word::after { content: "Close"; }
.n2 .drawer:not([open]) .open-word::after, .n2 .paste:not([open]) .open-word::after { content: "Open"; }
.n2 .drawer-body { padding: 1.25rem 1.125rem 1.5rem; display: grid; gap: 1.25rem; }
.n2 .check-row { display: flex; align-items: center; gap: .75rem; font-weight: 600; cursor: pointer; }
.n2 .usual { display: block; margin-top: .375rem; color: var(--ink-3); font-size: .9375rem; }
/* ── points slip ──────────────────────────────────────── */
.n2 .slip-card { background: var(--sheet); border: 1px solid var(--rule-strong); }
.n2 .slip-head { padding: 1.125rem 1.25rem 1rem; border-bottom: 1px dashed var(--rule-strong); }
.n2 .slip-head .top { display: flex; align-items: center; gap: .625rem; }
.n2 .slip-head h2 { font-size: 1.625rem; }
.n2 .slip-type { margin-top: .5rem; font-size: 1.125rem; font-weight: 600; }
.n2 .slip-type small { display: block; font-weight: 400; color: var(--ink-2); font-size: 1rem; }
.n2 .slip-note { margin-top: .625rem; padding: .5rem .75rem; border: 1px solid var(--rule); color: var(--ink-2); font-size: .9375rem; }
.n2 .slip-note.big { color: var(--field); border-color: color-mix(in srgb, var(--field) 45%, var(--rule)); }
.n2 .slip-list { list-style: none; max-height: max(14rem, calc(100dvh - 27rem)); overflow-y: auto; padding: .25rem 0; }
.n2 .slip-list li { display: flex; align-items: baseline; gap: .75rem; padding: .5rem 1.25rem; }
.n2 .slip-list li + li { border-top: 1px solid var(--rule); }
.n2 .slip-list .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.n2 .slip-list .r { color: var(--ink-3); font-size: .9375rem; }
.n2 .slip-list .p { font: 700 1.125rem/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--field); min-width: 3.5rem; text-align: right; }
.n2 .slip-list .why { display: block; color: var(--ink-3); font-size: .875rem; }
.n2 .slip-empty { padding: 1rem 1.25rem; color: var(--ink-2); }
.n2 .slip-total { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-top: 1px solid var(--rule-strong); }
.n2 .slip-total span { color: var(--ink-2); }
.n2 .slip-total b { font: 700 1.625rem/1 var(--mono); font-variant-numeric: tabular-nums; }
.n2 .slip-foot { padding: 0 1.25rem 1.25rem; display: grid; gap: .75rem; }
.n2 .slip-foot p { color: var(--ink-2); font-size: .9375rem; }
.n2 .slip-error { color: var(--red-ink); font-weight: 600; }
.n2 .confirm { display: grid; gap: .75rem; padding: 1rem; border: 1px solid var(--red); background: var(--red-wash); }
.n2 .confirm p { color: var(--ink); font-size: 1.0625rem; }
.n2 .confirm .row { display: grid; grid-template-columns: 1fr 1fr; gap: .625rem; }
.n2 .confirm[hidden], .n2 .slip-error[hidden] { display: none; }
/* ── recently logged ──────────────────────────────────── */
.n2 .log { list-style: none; border-top: 1px solid var(--rule-strong); }
.n2 .log li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; gap: .25rem 1.25rem; align-items: baseline; padding: .875rem 0; border-bottom: 1px solid var(--rule); }
.n2 .log time { font: 400 .9375rem/1.4 var(--mono); color: var(--ink-3); }
.n2 .log b { font-weight: 600; font-size: 1.0625rem; }
.n2 .log p { color: var(--ink-2); font-size: 1rem; }
.n2 .nm { white-space: nowrap; }
.n2 .log .att { font: 700 1.125rem/1 var(--mono); text-align: right; white-space: nowrap; }
.n2 .log .att small { font: 400 .875rem/1 var(--sans); color: var(--ink-3); display: block; margin-top: .25rem; }
.n2 .stamp { display: inline-block; margin-left: .625rem; font: 800 .9375rem/1 var(--stencil); letter-spacing: .12em; text-transform: uppercase; color: var(--field); border: 2px solid currentColor; padding: .3125rem .5rem .25rem; transform: rotate(-4deg); vertical-align: .1em; }
.n2 .stamp.press { animation: n2-press .55s var(--ease-out) both; }
/* ── flash + whole-page states ────────────────────────── */
.n2 .flash { display: flex; gap: .75rem; align-items: flex-start; padding: .875rem 1.125rem; margin-bottom: 1.75rem; border: 1px solid var(--rule-strong); background: var(--sheet); font-size: 1.0625rem; max-width: 60rem; }
.n2 .flash .icon { margin-top: .125rem; }
.n2 .flash-ok { border-color: color-mix(in srgb, var(--field) 50%, var(--rule)); }
.n2 .flash-ok .icon { color: var(--field); }
.n2 .flash-error { background: var(--red-wash); border-color: var(--red); }
.n2 .flash-error .icon { color: var(--red-ink); }
.n2 .flash[hidden] { display: none; }
.n2 .state-panel { max-width: 44rem; padding: 2rem; border: 1px solid var(--rule-strong); background: var(--sheet); margin-bottom: 3rem; }
.n2 .state-panel h2 { font-size: 1.875rem; margin-bottom: .75rem; }
.n2 .state-panel p { color: var(--ink-2); margin-bottom: 1.25rem; }
.n2 .redact { display: inline-block; width: 9rem; height: 1em; background: var(--ink-3); vertical-align: -.1em; }
.n2 [data-view][hidden] { display: none; }
/* ── phone chrome (hidden on desktop) ─────────────────── */
.n2 .mini-slip { display: none; }
/* ── two-column page: work on the left, live slip on the right ── */
.n2 .split { display: grid; grid-template-columns: minmax(0, 1fr) 25rem; gap: 0 2.5rem; align-items: start; }
.n2 .slip { position: sticky; top: 1.5rem; }
@media (max-width: 1180px) {
  .n2 .split { grid-template-columns: minmax(0, 1fr); }
  .n2 .slip { position: static; margin-bottom: 3rem; max-width: 40rem; }
  .n2 .step-body, .n2 .step-help { margin-left: 0; }
}
@media (max-width: 760px) {
  .n2 .phone-dock { position: sticky; bottom: var(--tabbar-safe, 0px); z-index: var(--z-bar); margin: 0 -1rem; }
  .n2 .mini-slip { display: flex; align-items: center; gap: .75rem; padding: .625rem 1rem; background: var(--sheet-2); border-top: 1px solid var(--rule-strong); }
  .n2 .mini-slip span { flex: 1; font-size: 1rem; color: var(--ink-2); }
  .n2 .mini-slip b { color: var(--ink); font-family: var(--mono); }
  .n2 .mini-slip .btn { padding: .75rem 1rem; }
  .n2 .page-head h1 { font-size: 2.75rem; }
  .n2 .step-head h2 { font-size: 1.625rem; }
  .n2 .step-no { min-width: 0; font-size: 1.5rem; }
  .n2 .rates-head { display: none; }
  .n2 .rate { grid-template-columns: 1.75rem repeat(3, minmax(0, 1fr)); grid-template-areas: "dot name name name" ". a b c"; gap: .625rem .5rem; padding: 1rem .875rem; }
  .n2 .rate input { grid-area: dot; }
  .n2 .rate .pts:nth-child(3) { grid-area: a; }
  .n2 .rate .pts:nth-child(4) { grid-area: b; }
  .n2 .rate .pts:nth-child(5) { grid-area: c; }
  .n2 .rate-name { grid-area: name; }
  .n2 .pts { text-align: left; font-size: 1.125rem; display: grid; gap: .25rem; }
  .n2 .pts .k { display: block; font: 400 .8125rem/1 var(--sans); color: var(--ink-3); }
  .n2 .roster { grid-template-columns: 1fr; max-height: none; }
  .n2 .member:nth-child(odd) { border-right: 0; }
  .n2 .count { margin-left: 0; }
  .n2 .log li { grid-template-columns: minmax(0, 1fr) auto; }
  .n2 .log time { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .n2 .stamp.press { animation: none; }
  .n2 .tip { transition: opacity .1s; transform: none; }
}
/* ══ 2.0 additions (Settings). New classes only, nothing above changes. ══ */
.n2 .tag-brass { color: var(--brass); }
.n2 .tag-muted { color: var(--ink-3); }
.n2 .tag-red { color: var(--red-ink); }
.n2 .crumbs { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1.25rem; color: var(--ink-3); font-size: 1rem; }
.n2 .crumbs a { color: var(--ink-2); }
/* whole-job switch: square, like the rest of the sheet */
.n2 .switch { display: inline-flex; align-items: center; gap: .75rem; cursor: pointer; font-weight: 600; font-size: 1.0625rem; }
.n2 .switch input[type=checkbox] { appearance: none; -webkit-appearance: none; position: relative; width: 3rem; height: 1.625rem; margin: 0; border: 1px solid var(--rule-strong); border-radius: 2px; background: var(--well); cursor: pointer; transition: background-color .15s, border-color .15s; }
.n2 .switch input[type=checkbox]::after { content: ""; position: absolute; top: 2px; left: 2px; width: 1.25rem; height: calc(100% - 4px); border-radius: 1px; background: var(--ink-3); transition: transform .18s var(--ease-out), background-color .15s; }
.n2 .switch input[type=checkbox]:checked { background: var(--red); border-color: var(--red); }
.n2 .switch input[type=checkbox]:checked::after { transform: translateX(1.25rem); background: #fff; }
.n2 .switch input[type=checkbox]:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.n2 .switch input[type=checkbox]:disabled { opacity: .5; cursor: not-allowed; }
/* the job's state, right under the page head */
.n2 .status { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; padding: 1rem 1.25rem; margin-bottom: 2.5rem; border: 1px solid var(--rule-strong); background: var(--sheet); }
.n2 .status p { flex: 1 1 22rem; color: var(--ink-2); }
.n2 .status p b { color: var(--ink); font-weight: 600; }
.n2 .status.is-off { border-style: dashed; }
.n2 .status .confirm { flex: 1 1 100%; }
/* fields: a label row (with the info button), the control, then one quiet line */
.n2 .fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1.75rem 2rem; }
.n2 .stack > * + * { margin-top: 1.75rem; }
.n2 .field { min-width: 0; }
.n2 .field-wide { grid-column: 1 / -1; }
.n2 .field select, .n2 .field > input:not([type=checkbox]) { max-width: 26rem; }
.n2 .field textarea { max-width: 44rem; }
.n2 .field-note { display: block; margin-top: .375rem; color: var(--ink-3); font-size: .9375rem; max-width: 60ch; }
.n2 .field-note.warn { color: var(--red-ink); font-weight: 600; }
.n2 .unit-input { display: flex; max-width: 17rem; }
.n2 .unit-input input { font: 700 1.25rem/1 var(--mono); font-variant-numeric: tabular-nums; min-width: 0; flex: 1 1 5.5rem; border-radius: 2px 0 0 2px; }
.n2 .unit-input span { display: flex; align-items: center; padding: 0 .875rem; border: 1px solid var(--rule-strong); border-left: 0; background: var(--sheet-2); color: var(--ink-2); white-space: nowrap; font-size: 1rem; }
.n2 .is-changed .unit-input input, .n2 .is-changed > input, .n2 .is-changed > select { border-color: var(--brass); background: #17140e; }
.n2 .is-changed .usual { color: var(--brass); }
.n2 .is-missing select, .n2 .is-missing > input { border-color: var(--red); border-style: dashed; }
.n2 .sub { font: 600 1.125rem/1.3 var(--sans); color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: .625rem; margin-bottom: .75rem; }
.n2 .sub small { font-weight: 400; color: var(--ink-3); font-size: .9375rem; }
/* yes/no settings as one list */
.n2 .ticks { list-style: none; border: 1px solid var(--rule); background: var(--sheet); }
.n2 .ticks li { display: flex; align-items: flex-start; gap: .75rem; padding: .875rem 1rem; }
.n2 .ticks li + li { border-top: 1px solid var(--rule); }
.n2 .ticks .check-row { flex: 1; align-items: flex-start; font-weight: 500; }
.n2 .ticks .check-row input { margin-top: .125rem; }
.n2 .ticks .check-row small { display: block; color: var(--ink-3); font-weight: 400; font-size: .9375rem; margin-top: .125rem; }
/* role chips: the co-host chip from Events, in a shorter box */
.n2 .picks.roles { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); max-height: 12.5rem; margin-top: .5rem; }
.n2 .dot { display: inline-block; width: .625rem; height: .625rem; border-radius: 50%; flex-shrink: 0; background: var(--rc, var(--ink-3)); }
.n2 .role-find { max-width: 26rem; }
.n2 .picked { display: flex; flex-wrap: wrap; gap: .375rem; }
.n2 .pick { display: inline-flex; align-items: center; gap: .5rem; padding: .375rem .625rem; border: 1px solid var(--rule-strong); background: var(--sheet); font-size: 1rem; }
.n2 .pick.none { border-style: dashed; color: var(--ink-3); }
.n2 .role-drawer { margin-top: .5rem; }
.n2 .role-drawer > summary { list-style: none; display: inline-flex; align-items: center; min-height: 2.75rem; cursor: pointer; color: var(--brass); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .1875rem; }
.n2 .role-drawer > summary::-webkit-details-marker { display: none; }
.n2 .role-drawer > summary:hover { color: var(--ink); }
.n2 .role-drawer .open-word { display: none; }
.n2 .role-drawer[open] > summary { color: var(--ink-2); }
.n2 .role-drawer-body { padding: .875rem; border: 1px solid var(--rule); background: var(--sheet); }
/* a list you add rows to (requirements, groups, target rows) */
.n2 .rows { list-style: none; border: 1px solid var(--rule); background: var(--sheet); counter-reset: row; }
.n2 .rows-head, .n2 .row-item { display: grid; grid-template-columns: var(--row-cols, 2.25rem minmax(0, 1fr) minmax(0, 1fr) auto); gap: .5rem .75rem; align-items: center; padding: .625rem 1rem; }
.n2 .rows-head { border-bottom: 1px solid var(--rule-strong); font: 600 .9375rem/1.2 var(--sans); color: var(--ink-3); }
.n2 .row-item + .row-item { border-top: 1px solid var(--rule); }
.n2 .row-item .n { counter-increment: row; font: 800 1.375rem/1 var(--stencil); color: var(--red-ink); }
.n2 .row-item .n::before { content: counter(row); }
.n2 .row-item input:not([type=checkbox]), .n2 .row-item select { padding: .5625rem .75rem; }
.n2 .row-say { grid-column: 2 / -1; color: var(--ink-2); font-size: .9375rem; }
.n2 .row-tools { display: flex; gap: .25rem; justify-content: flex-end; }
.n2 .icon-btn { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid transparent; border-radius: 2px; background: none; color: var(--ink-3); cursor: pointer; transition: color .15s, border-color .15s, transform .12s var(--ease-out); }
.n2 .icon-btn:hover { color: var(--ink); border-color: var(--rule-strong); }
.n2 .icon-btn:active { transform: scale(.94); }
.n2 .icon-btn:disabled { opacity: .35; cursor: default; }
.n2 .icon-btn.danger:hover { color: var(--red-ink); border-color: var(--red); }
.n2 .rows-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding: .75rem 1rem; border-top: 1px dashed var(--rule); }
.n2 .rows-foot small { color: var(--ink-3); font-size: .9375rem; }
.n2 .rows-empty { padding: 1rem; color: var(--ink-2); }
.n2 .btn-small { padding: .5625rem .875rem; font-size: .875rem; }
/* a step that doesn't apply: says why, keeps the page short */
.n2 .skipped { display: flex; align-items: center; gap: .75rem; padding: .875rem 1rem; border: 1px dashed var(--rule-strong); color: var(--ink-2); }
.n2 .skipped .icon { color: var(--ink-3); }
.n2 .skipped[hidden], .n2 [data-when][hidden] { display: none; }
/* the settings slip: what the settings will do, in sentences */
.n2 .say { list-style: none; padding: .25rem 0; max-height: max(16rem, calc(100dvh - 17rem)); overflow-y: auto; }
.n2 .say li { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: .5rem; padding: .75rem 1.25rem; font-size: 1rem; line-height: 1.5; }
.n2 .say li + li { border-top: 1px solid var(--rule); }
.n2 .say .k { font: 800 1.125rem/1.35 var(--stencil); color: var(--ink-3); }
.n2 .say b { font-weight: 600; color: var(--ink); }
.n2 .say .chg { color: var(--brass); }
.n2 .say .gap { color: var(--red-ink); font-weight: 600; }
.n2 .say li.is-gap .k { color: var(--red-ink); }
.n2 .say li.is-off { color: var(--ink-3); }
.n2 .slip-note.gap { color: var(--red-ink); border-color: var(--red); font-weight: 600; }
.n2 .unsaved { color: var(--brass); font-weight: 600; }
.n2 .unsaved[hidden] { display: none; }
/* settings home: the job list */
.n2 .jobs-group + .jobs-group { margin-top: 2.25rem; }
.n2 .jobs-group > summary { list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: .375rem 1rem; cursor: pointer; padding: .25rem 0 .375rem; }
.n2 .jobs-group > summary::-webkit-details-marker { display: none; }
.n2 .jobs-group > summary h2 { font-size: 1.875rem; }
.n2 .jobs-group > summary .open-word { margin-left: auto; font: 700 .875rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.n2 .jobs-group[open] .open-word::after { content: "Close"; }
.n2 .jobs-group:not([open]) .open-word::after { content: "Open"; }
@media (hover: hover) {
  .n2 .jobs-group > summary:hover .open-word { color: var(--ink); }
}
.n2 .jg-sum { color: var(--ink-2); font-size: 1rem; }
.n2 .jobs-group:not([open]) { border-bottom: 1px dashed var(--rule); padding-bottom: .875rem; }
.n2 .jobs-group > p { color: var(--ink-2); margin-bottom: 1rem; }
.n2 .jobs { list-style: none; border-top: 1px solid var(--rule-strong); }
.n2 .job { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) 8rem 5rem; gap: .375rem 1.25rem; align-items: center; padding: 1.125rem .75rem 1.125rem 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
@media (hover: hover) {
  .n2 .job:hover { background: var(--sheet); color: var(--ink); }
  .n2 .job:hover .go { color: var(--ink); }
}
.n2 .job .state { justify-self: start; margin-left: .75rem; display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: 1rem; }
.n2 .job .state::before { content: ""; width: .625rem; height: .625rem; background: currentColor; }
.n2 .state.is-ready { color: var(--field); }
.n2 .state.is-half { color: var(--brass); }
.n2 .state.is-off { color: var(--ink-3); }
.n2 .state.is-off::before { background: none; border: 1px solid currentColor; }
.n2 .job-name { display: grid; gap: .25rem; min-width: 0; }
.n2 .job-name b { font-weight: 600; font-size: 1.1875rem; }
.n2 .job-name span { color: var(--ink-2); font-size: 1rem; }
.n2 .job-name .todo { color: var(--brass); }
.n2 .job .go { justify-self: end; display: inline-flex; align-items: center; gap: .375rem; color: var(--ink-3); font-weight: 600; font-size: 1rem; }
.n2 .meter { display: block; height: .5rem; background: var(--well); border: 1px solid var(--rule); }
.n2 .meter i { display: block; height: 100%; background: var(--field); }
.n2 .job-meter { display: grid; gap: .375rem; font: 400 .9375rem/1 var(--mono); color: var(--ink-3); }
.n2 .next { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: center; padding: 1.5rem; margin-bottom: 3rem; border: 1px solid var(--rule-strong); background: var(--sheet); }
.n2 .next h2 { font-size: 1.75rem; margin-bottom: .5rem; }
.n2 .next p { color: var(--ink-2); }
.n2 .find { position: relative; max-width: 34rem; margin-bottom: 2.5rem; }
.n2 .find .search { max-width: none; }
.n2 .hits { list-style: none; position: absolute; left: 0; right: 0; top: calc(100% + .25rem); z-index: var(--z-bar); border: 1px solid var(--rule-strong); background: var(--sheet-2); box-shadow: 0 .75rem 2rem rgba(0,0,0,.55); }
.n2 .hits a { display: grid; gap: .125rem; padding: .75rem 1rem; color: var(--ink); text-decoration: none; }
.n2 .hits a:hover, .n2 .hits a:focus-visible { background: var(--sheet); }
.n2 .hits small { color: var(--ink-3); font-size: .9375rem; }
.n2 .hits li + li { border-top: 1px solid var(--rule); }
.n2 .hits[hidden] { display: none; }
.n2 .side-list { list-style: none; }
.n2 .side-list li { padding: .75rem 1.25rem; }
.n2 .side-list li + li { border-top: 1px solid var(--rule); }
.n2 .side-list a { font-weight: 600; }
.n2 .side-list small { display: block; color: var(--ink-2); font-size: .9375rem; }
/* collapsing: every § step folds; a folded step shows one line of what's set */
.n2 .fold-all { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; margin-bottom: 1rem; }
.n2 .step[data-fold] .step-head { position: relative; }
.n2 .step[data-fold] .step-no { white-space: nowrap; }
.n2 .fold-btn { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; }
.n2 .fold-btn::after { content: ""; position: absolute; inset: -.625rem 0; }
.n2 .fold-btn:focus-visible { outline: none; }
.n2 .step-head:has(.fold-btn:focus-visible) { outline: 2px solid var(--brass); outline-offset: .5rem; }
.n2 .step-head .info { position: relative; z-index: 1; }
.n2 .fold-word { margin-left: auto; display: inline-flex; align-items: center; gap: .375rem; font: 700 .875rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); pointer-events: none; }
.n2 .fold-word svg { width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .18s var(--ease-out); }
.n2 .step.is-closed .fold-word svg { transform: rotate(-90deg); }
@media (hover: hover) {
  .n2 .step[data-fold] .step-head:hover .fold-word, .n2 .step[data-fold] .step-head:hover h2 { color: var(--ink); }
}
.n2 .fold-sum { display: none; margin: .375rem 0 0 3.375rem; color: var(--ink-2); font-size: 1rem; }
.n2 .fold-sum .gap { color: var(--red-ink); font-weight: 600; }
.n2 .fold-sum .ok { color: var(--field); font-weight: 600; }
.n2 .step.is-closed .fold-sum { display: block; }
.n2 .step.is-closed { padding-bottom: 1.375rem; margin-bottom: 1.375rem; }
.n2 .fold-body[hidden] { display: none; }
.n2 .fold-body { padding-top: .375rem; }
/* a sub-block inside a step folds natively */
.n2 .subfold { border: 1px solid var(--rule); background: var(--sheet); }
.n2 .subfold > summary { list-style: none; display: flex; align-items: center; gap: .875rem; padding: .875rem 1rem; cursor: pointer; }
.n2 .subfold > summary::-webkit-details-marker { display: none; }
@media (hover: hover) {
  .n2 .subfold > summary:hover { background: var(--sheet-2); }
}
.n2 .subfold > summary > span { display: grid; gap: .125rem; min-width: 0; }
.n2 .subfold > summary b { font-weight: 600; font-size: 1.0625rem; }
.n2 .subfold > summary small { color: var(--ink-2); font-size: .9375rem; }
.n2 .subfold > summary .open-word { margin-left: auto; font: 700 .875rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.n2 .subfold[open] > summary { border-bottom: 1px dashed var(--rule); }
.n2 .subfold[open] .open-word::after { content: "Close"; }
.n2 .subfold:not([open]) .open-word::after { content: "Open"; }
.n2 .subfold-body { padding: 1.25rem 1rem 1.5rem; }
@media (max-width: 1180px) {
  .n2 .fold-sum { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .n2 .fold-word svg { transition: none; }
}
@media (max-width: 760px) {
  .n2 .fold-word span { display: none; }
  .n2 .say { max-height: none; }
  .n2 .fold-all { justify-content: flex-start; }
  .n2 .job { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "state go" "name name" "meter meter"; padding: 1rem 0; }
  .n2 .job .state { grid-area: state; margin-left: 0; }
  .n2 .job-name { grid-area: name; }
  .n2 .job-meter { grid-area: meter; }
  .n2 .job .go { grid-area: go; }
  .n2 .next { grid-template-columns: 1fr; padding: 1.25rem 1rem; }
  .n2 .next .btn { width: 100%; }
  .n2 .rows-head { display: none; }
  .n2 .row-item { grid-template-columns: 2rem minmax(0, 1fr) auto; }
  .n2 .row-item > :not(.n):not(.row-tools):not(.row-say) { grid-column: 2 / 3; }
  .n2 .row-item > .row-tools { grid-row: 1; grid-column: 3; }
  .n2 .row-say { grid-column: 2 / -1; }
  .n2 .status { padding: 1rem; }
  .n2 .unit-input { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .n2 .switch input[type=checkbox]::after { transition: none; }
}
/* ── Settings 2.0 job pages (STYLE-GUIDE §3, "Job page parts") ─────────────── */
/* a row folded to its sentence (was quota-only; quota.html keeps its own copy) */
.n2 .t-edit { min-width: 0; }
.n2 .t-edit > summary { list-style: none; display: flex; align-items: baseline; gap: 1rem; cursor: pointer; padding: .375rem 0; }
.n2 .t-edit > summary::-webkit-details-marker { display: none; }
.n2 .t-edit-word { margin-left: auto; color: var(--brass); font-weight: 600; font-size: .9375rem; text-decoration: underline; text-underline-offset: .1875rem; white-space: nowrap; }
.n2 .t-edit-word::after { content: "Edit"; }
.n2 .t-edit[open] .t-edit-word::after { content: "Done"; }
@media (hover: hover) {
  .n2 .t-edit > summary:hover .t-edit-word { color: var(--ink); }
}
.n2 .t-edit[open] > summary { margin-bottom: .75rem; }
.n2 .t-edit .row-say { color: var(--ink); font-size: 1rem; }
.n2 .t-edit .row-say b { font-weight: 600; }
.n2 .t-body { display: grid; gap: 1rem; min-width: 0; }
.n2 .rows.folded { --row-cols: 2.25rem minmax(0, 1fr) auto; }
.n2 .rows.folded .row-item { align-items: start; }
.n2 .rows.folded .row-item .n { padding-top: .25rem; }
.n2 .row-item.is-asking { background: var(--red-wash); }
.n2 .row-ask { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.n2 .row-ask p { flex: 1 1 18rem; }
.n2 .row-item.is-retired .row-say { color: var(--ink-3); }
/* a switch for one part of a job, at the top of its step */
.n2 .part-switch { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--rule); }
.n2 .part-switch p { color: var(--ink-2); font-size: 1rem; flex: 1 1 18rem; }
.n2 .part-switch .confirm { flex: 1 1 100%; }
.n2 .step.is-dim .part-switch ~ * { opacity: .5; }
/* colour picker: a square swatch and its hex code */
.n2 .swatch { display: inline-flex; align-items: center; gap: .75rem; }
.n2 .swatch input[type=color] { appearance: none; -webkit-appearance: none; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--rule-strong); border-radius: 2px; background: none; cursor: pointer; }
.n2 .swatch input[type=color]::-webkit-color-swatch-wrapper { padding: 3px; }
.n2 .swatch input[type=color]::-webkit-color-swatch { border: 0; border-radius: 1px; }
.n2 .swatch code { font: 700 1.0625rem/1 var(--mono); color: var(--ink-2); }
/* the channel map: every channel the bot uses, one ruled list, each row says where it's changed */
.n2 .chan-map { list-style: none; border-top: 1px solid var(--rule-strong); }
.n2 .chan-map li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, 16rem) 11rem; gap: .375rem 1.25rem; align-items: center; padding: .875rem 0; border-bottom: 1px solid var(--rule); }
.n2 .chan-map .what b { display: block; font-weight: 600; }
.n2 .chan-map .what small { color: var(--ink-2); font-size: .9375rem; }
.n2 .chan-map .chan { font: 700 1.0625rem/1.3 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.n2 .chan-map .chan.is-none { font-family: var(--sans); font-weight: 600; color: var(--red-ink); }
.n2 .chan-map .chan.is-off { font-family: var(--sans); font-weight: 400; color: var(--ink-3); }
.n2 .chan-map .where { font-size: .9375rem; justify-self: end; text-align: right; }
.n2 .chan-map .where span { color: var(--ink-3); }
.n2 .chan-map h3 { font: 600 1.0625rem/1.3 var(--sans); text-transform: none; color: var(--ink-3); padding: 1.25rem 0 .375rem; letter-spacing: 0; }
.n2 .chan-map li.head { display: block; border-bottom: 0; padding: 0; }
/* a tick grid: rows of things, columns of who. Scrolls inside itself on a phone, never the page */
.n2 .matrix-wrap { overflow-x: auto; border: 1px solid var(--rule-strong); }
.n2 .matrix { width: 100%; border-collapse: collapse; font-size: 1rem; }
.n2 .matrix th, .n2 .matrix td { padding: .625rem .875rem; border-bottom: 1px solid var(--rule); text-align: center; white-space: nowrap; }
.n2 .matrix thead th { font-weight: 600; color: var(--ink-2); background: var(--sheet); border-bottom-color: var(--rule-strong); vertical-align: bottom; }
.n2 .matrix tbody th { text-align: left; font-weight: 600; position: sticky; left: 0; background: var(--ground); }
.n2 .matrix tbody th small { display: block; font-weight: 400; color: var(--ink-3); font-size: .9375rem; }
.n2 .matrix tr:last-child > * { border-bottom: 0; }
.n2 .matrix .fixed { color: var(--field); }
.n2 .matrix .fixed svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; vertical-align: middle; }
.n2 .matrix .no { color: var(--ink-3); }
.n2 .matrix input[type=checkbox] { width: 1.25rem; height: 1.25rem; }
.n2 .matrix td label { display: inline-grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; cursor: pointer; }
/* a read-only list of what a level may do */
.n2 .can-list { list-style: none; columns: 2 16rem; column-gap: 2rem; }
.n2 .can-list li { break-inside: avoid; padding: .25rem 0 .25rem 1.5rem; position: relative; font-size: 1rem; }
.n2 .can-list li::before { content: ""; position: absolute; left: .125rem; top: .8rem; width: .5rem; height: .5rem; background: var(--field); }
.n2 .can-list li.not { color: var(--ink-3); }
.n2 .can-list li.not::before { background: none; border: 1px solid var(--ink-3); }
/* what a Discord message from the bot will look like; the square before the name shows the accent colour */
.n2 .dc-post { display: grid; gap: .375rem; max-width: 34rem; padding: .875rem 1rem; background: var(--well); border: 1px solid var(--rule); font-size: 1rem; }
.n2 .dc-post .dc-by { display: flex; align-items: center; gap: .5rem; font-weight: 700; }
.n2 .dc-post .dc-by::before { content: ""; width: .875rem; height: .875rem; background: var(--accent, var(--ink-3)); flex-shrink: 0; }
.n2 .dc-post .dc-by small { font: 400 .875rem/1 var(--sans); color: var(--ink-3); }
.n2 .dc-post .dc-title { font-weight: 700; }
.n2 .dc-post p { color: var(--ink-2); max-width: none; }
.n2 .dc-post .dc-rows { display: grid; gap: .25rem; }
.n2 .dc-post .dc-rows b { font-weight: 600; color: var(--ink); }
.n2 .dc-post pre { font: 400 .9375rem/1.45 var(--mono); color: var(--ink-2); white-space: pre-wrap; }
@media (max-width: 760px) {
  .n2 .chan-map li { grid-template-columns: minmax(0, 1fr); padding: 1rem 0; }
  .n2 .chan-map .where { justify-self: start; text-align: left; }
  .n2 .rows.folded .row-item { grid-template-columns: 2rem minmax(0, 1fr) auto; }
  .n2 .t-edit > summary { flex-wrap: wrap; gap: .25rem 1rem; }
}
.n2 .subfold summary .gap, .n2 .row-say .gap, .n2 .chan-map .gap { color: var(--red-ink); font-weight: 600; }
.n2 .field.is-dim { opacity: .5; }
/* ══ Command kit (STYLE-GUIDE §3, "Command kit"). New classes only, nothing above changes. ══ */
/* sub-view tabs: links, the current one has aria-current; a count that waits on you is red-ink */
.n2 .views { display: flex; gap: .25rem; margin-bottom: 2rem; border-bottom: 1px solid var(--rule-strong); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.n2 .views a { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .5rem .875rem; color: var(--ink-2); font-weight: 600; text-decoration: none; white-space: nowrap; box-shadow: inset 0 -2px transparent; transition: color .15s, box-shadow .15s; }
@media (hover: hover) {
  .n2 .views a:hover { color: var(--ink); background: var(--sheet); }
}
.n2 .views a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px var(--ink); }
.n2 .views .n { font: 700 1rem/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink-3); }
.n2 .views .n.is-waiting { color: var(--red-ink); }
.n2 [data-subview][hidden], .n2 [data-can][hidden] { display: none !important; }
.n2 .btn[aria-disabled] { opacity: .5; pointer-events: none; }
.n2 .btn:disabled { opacity: .5; cursor: not-allowed; }
/* filter bar: search, small selects, chips with counts. A GET form, applies on submit */
.n2 .filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.n2 .filter-bar select { width: auto; min-width: 11rem; }
.n2 .filter-chips { display: flex; flex-wrap: wrap; gap: .375rem; flex-basis: 100%; }
.n2 .filter-chips .chip { position: relative; padding: .4375rem .75rem; }
.n2 .filter-chips .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.n2 .filter-chips .chip:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 2px; }
.n2 .filter-chips .chip .num { font-size: .9375rem; color: var(--ink-3); }
.n2 .filter-chips .chip.is-waiting .num { color: var(--red-ink); }
/* record list of people: a ruled list, not a table, so it stacks on a phone. Columns through --cols */
.n2 .people { list-style: none; border-top: 1px solid var(--rule-strong); }
.n2 .people-head, .n2 .person { display: grid; grid-template-columns: var(--cols, minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto); gap: .375rem 1.25rem; align-items: center; padding: .75rem; }
.n2 .people-head { font: 600 .9375rem/1.2 var(--sans); color: var(--ink-3); border-bottom: 1px solid var(--rule-strong); }
.n2 .person { border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
@media (hover: hover) {
  .n2 a.person:hover { background: var(--sheet); color: var(--ink); }
}
.n2 .person .meta { color: var(--ink-2); font-size: 1rem; }
/* member line: face, name, one quiet line. In queue rows, people rows and the member finder */
.n2 .mline { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.n2 .mline > span:last-child { display: grid; min-width: 0; }
.n2 .mline b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.n2 .mline small { color: var(--ink-3); font-size: .9375rem; }
/* queue rows: who, what, since when, then two ghost buttons. The risky one asks in place */
.n2 .queue { list-style: none; border-top: 1px solid var(--rule-strong); }
.n2 .q-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .625rem 1.25rem; align-items: center; padding: 1rem .75rem; border-bottom: 1px solid var(--rule); }
.n2 .q-row p { color: var(--ink-2); font-size: 1rem; }
.n2 .q-acts { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.n2 .q-note { grid-column: 1 / -1; max-width: 34rem; }
.n2 .q-row.is-asking { background: var(--red-wash); }
.n2 .q-row .confirm { grid-column: 1 / -1; }
/* confirm in place for a ghost button: N2.asks() swaps the button for this box */
.n2 .confirm.is-inline { max-width: 34rem; }
.n2 .confirm.is-inline .row { grid-template-columns: auto auto; justify-content: start; }
/* pager */
.n2 .pager { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding: 1rem 0; }
.n2 .pager p { color: var(--ink-2); font-size: 1rem; margin-right: auto; }
.n2 .pager .num { color: var(--ink); }
.n2 .pager [aria-disabled=true] { opacity: .45; pointer-events: none; }
/* member finder: one person picked from a search, face and rank shown */
.n2 .member-find { position: relative; max-width: 26rem; }
.n2 .member-find .search { max-width: none; }
.n2 .member-find .hits button { display: flex; width: 100%; padding: .625rem 1rem; background: none; border: 0; text-align: left; cursor: pointer; }
.n2 .member-find .hits button:hover, .n2 .member-find .hits button:focus-visible { background: var(--sheet); outline: none; }
.n2 .member-find .hits .none { padding: .75rem 1rem; color: var(--ink-2); }
.n2 .picked-member { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .625rem .75rem .625rem 1rem; border: 1px solid var(--brass); background: var(--sheet-2); }
.n2 .picked-member[hidden], .n2 .member-find .search[hidden] { display: none; }
/* the member file's head */
.n2 .file-head { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: .5rem 1.5rem; align-items: center; margin-bottom: 2rem; }
.n2 .file-head > .face { width: 5.5rem; height: 5.5rem; font-size: 1.375rem; }
.n2 .file-head h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: .375rem; }
.n2 .file-head p { color: var(--ink-2); font-size: 1.125rem; }
.n2 .file-head .tags { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .625rem; }
.n2 .file-head .tags .tag { margin: 0; }
.n2 .file-links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; align-self: start; }
/* a section that is a record, not a step: the same fold, no § number */
.n2 .step.rec .step-head h2 { font-size: 1.625rem; }
.n2 .step.rec .step-help, .n2 .step.rec .step-body, .n2 .step.rec .fold-sum { margin-left: 0; }
.n2 .step.rec .fold-body { padding-top: .75rem; }
.n2 .link-row { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; }
.n2 .link-row a { font-weight: 600; min-height: 2.75rem; display: inline-flex; align-items: center; }
.n2 .link-row .k { color: var(--ink-3); font-size: 1rem; }
/* record entries: when, what, a value on the right. Pardoned or ended ones go grey */
.n2 .record { list-style: none; border: 0; border-top: 1px solid var(--rule-strong); background: none; padding: 0; margin-bottom: 1rem; }
.n2 .record > li { display: grid; grid-template-columns: 8rem minmax(0, 1fr) auto; gap: .25rem 1.25rem; align-items: baseline; padding: .875rem 0; border-bottom: 1px solid var(--rule); }
.n2 .record time { font: 400 .9375rem/1.4 var(--mono); color: var(--ink-3); }
.n2 .record b { font-weight: 600; }
.n2 .record p { color: var(--ink-2); font-size: 1rem; }
.n2 .record .v { font: 700 1.125rem/1 var(--mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.n2 .record .v small { display: block; margin-top: .25rem; font: 400 .875rem/1 var(--sans); color: var(--ink-3); }
.n2 .record > li.is-void b, .n2 .record > li.is-void p, .n2 .record > li.is-void .v { color: var(--ink-3); }
.n2 .record .void { margin-left: .5rem; font-weight: 600; font-size: .9375rem; color: var(--ink-3); }
.n2 .record .row-tools { grid-column: 2 / -1; justify-content: flex-start; flex-wrap: wrap; gap: .5rem; }
.n2 .record > li.is-asking { background: var(--red-wash); }
.n2 .record .confirm { grid-column: 2 / -1; }
/* quota parts: label, meter, "2 of 3 events" */
.n2 .parts { list-style: none; display: grid; gap: .75rem; max-width: 44rem; }
.n2 .parts li { display: grid; grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr) 9rem; gap: 1rem; align-items: center; }
.n2 .parts .n { font: 700 1.0625rem/1 var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.n2 .parts li.is-short .n { color: var(--red-ink); }
.n2 .parts li.is-done .n { color: var(--field); }
/* old → new */
.n2 .diff { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .625rem; font: 400 1rem/1.45 var(--mono); }
.n2 .diff del { color: var(--red-ink); text-decoration-thickness: 1px; }
.n2 .diff ins { color: var(--field); text-decoration: none; }
.n2 .diff .to { color: var(--ink-3); }
.n2 .diff del:empty::before, .n2 .diff ins:empty::before { content: "empty"; font: italic 400 .9375rem/1 var(--sans); }
/* text to copy, like the R&A blacklist format */
.n2 .copy-box { border: 1px solid var(--rule); background: var(--well); max-width: 44rem; }
.n2 .copy-box pre { padding: .875rem 1rem; font: 400 1rem/1.5 var(--mono); color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.n2 .copy-box .row { display: flex; align-items: center; gap: .75rem; padding: .625rem 1rem; border-top: 1px dashed var(--rule); }
.n2 .copy-box [role=status] { color: var(--field); font-weight: 600; }
/* a time left, in Courier; the real time sits in title */
.n2 .countdown { font: 700 1em/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.n2 .countdown.is-soon { color: var(--red-ink); }
/* background check: its fields as one sheet */
.n2 .check-sheet { display: grid; grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr); border: 1px solid var(--rule); background: var(--sheet); max-width: 52rem; }
.n2 .check-sheet dt, .n2 .check-sheet dd { padding: .625rem 1rem; border-top: 1px solid var(--rule); }
.n2 .check-sheet dt:first-of-type, .n2 .check-sheet dt:first-of-type + dd { border-top: 0; }
.n2 .check-sheet dt { color: var(--ink-3); font-size: .9375rem; }
.n2 .check-sheet dd { overflow-wrap: anywhere; }
.n2 .check-sheet img { max-width: 100%; height: auto; display: block; }
@media (max-width: 760px) {
  .n2 .views { margin-inline: -1rem; padding-inline: 1rem; }
  .n2 .filter-bar select { flex: 1 1 10rem; min-width: 0; }
  .n2 .filter-chips { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; margin-inline: -1rem; padding: 2px 1rem; }
  .n2 .filter-chips .chip { flex-shrink: 0; }
  .n2 .people-head { display: none; }
  .n2 .person { grid-template-columns: minmax(0, 1fr); padding: .875rem 0; }
  .n2 .q-row { grid-template-columns: minmax(0, 1fr); padding: 1rem 0; }
  .n2 .q-acts { justify-content: flex-start; }
  .n2 .file-head { grid-template-columns: 4rem minmax(0, 1fr); }
  .n2 .file-head > .face { width: 4rem; height: 4rem; font-size: 1rem; align-self: start; }
  .n2 .file-head h1 { font-size: 2.5rem; }
  .n2 .file-links { grid-column: 1 / -1; justify-content: flex-start; }
  .n2 .record > li { grid-template-columns: minmax(0, 1fr) auto; }
  .n2 .record time, .n2 .record .row-tools, .n2 .record .confirm { grid-column: 1 / -1; }
  .n2 .parts li { grid-template-columns: minmax(0, 1fr) auto; gap: .375rem 1rem; }
  .n2 .parts .meter { grid-column: 1 / -1; grid-row: 2; }
  .n2 .check-sheet { grid-template-columns: minmax(0, 1fr); }
  .n2 .check-sheet dt + dd { border-top: 0; padding-top: 0; }
  .n2 .confirm.is-inline .row { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .n2 .views a { transition: none; }
}
/* ══ Unit kit (STYLE-GUIDE §3, "Unit kit", PLAN-unit.md § 5.2 and 5.3). New classes only, nothing above changes. ══ */
/* an emblem: a square with the unit's or division's short code, until a real emblem image is set */
.n2 .emb { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; flex-shrink: 0; border: 1px solid var(--rule-strong); background: var(--sheet-2); font: 700 .75rem/1 var(--mono); color: var(--ink-2); letter-spacing: .02em; }
.n2 .emb.is-big { width: 4rem; height: 4rem; font-size: 1.125rem; }
/* the sidebar head as a switcher between the unit and the reader's divisions. A details, no dropdown script */
.n2 .scope-switch { margin: 0 0 .25rem; border: 1px solid var(--rule); background: var(--sheet); }
.n2 .scope-switch > summary { list-style: none; display: flex; align-items: center; gap: .625rem; padding: .625rem .625rem .625rem .5rem; cursor: pointer; min-height: 3.25rem; }
.n2 .scope-switch > summary::-webkit-details-marker { display: none; }
@media (hover: hover) {
  .n2 .scope-switch > summary:hover { background: var(--sheet-2); }
}
.n2 .scope-switch > summary > span:nth-child(2) { display: grid; min-width: 0; flex: 1; }
.n2 .scope-switch > summary b { font: 800 1.375rem/1.05 var(--display); text-transform: uppercase; }
.n2 .scope-switch > summary small { color: var(--ink-3); font-size: .875rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.n2 .scope-switch > summary > svg { width: 1.125rem; height: 1.125rem; fill: none; stroke: var(--ink-3); stroke-width: 1.6; transition: transform .18s var(--ease-out); }
.n2 .scope-switch[open] > summary > svg { transform: rotate(180deg); }
.n2 .scope-switch[open] > summary { border-bottom: 1px dashed var(--rule); }
.n2 .scope-list { list-style: none; padding: .25rem 0; }
.n2 .scope-list a { display: flex; align-items: center; gap: .625rem; padding: .5rem .625rem .5rem .5rem; color: var(--ink); text-decoration: none; min-height: 2.75rem; }
.n2 .scope-list a > span:last-child { display: grid; min-width: 0; }
.n2 .scope-list b { font-weight: 600; font-size: 1rem; }
.n2 .scope-list small { color: var(--ink-3); font-size: .875rem; }
.n2 .scope-list small.todo { color: var(--brass); }
.n2 .scope-list a[aria-current] { background: var(--sheet-2); box-shadow: inset 0 0 0 1px var(--brass); }
@media (hover: hover) {
  .n2 .scope-list a:hover { background: var(--sheet-2); }
}
.n2 .scope-list .emb { width: 1.75rem; height: 1.75rem; font-size: .6875rem; }
/* "Part of SRM": the way back from a division to its unit (PLAN-unit answer 9) */
.n2 .part-of { display: inline-flex; align-items: center; gap: .375rem; margin: .375rem .75rem 0; min-height: 2rem; color: var(--brass); font-size: .9375rem; font-weight: 600; text-decoration: none; }
.n2 .part-of:hover { color: var(--ink); text-decoration: underline; }
.n2 .part-of .icon { width: 1rem; height: 1rem; }
/* "From the unit": the label on anything a division inherits */
.n2 .from-unit { color: var(--ink-3); font-size: .9375rem; }
.n2 .from-unit a { font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  .n2 .scope-switch > summary > svg { transition: none; }
}
@keyframes n2-press { 0% { transform: rotate(-9deg) scale(1.4); opacity: 0; } 50% { opacity: 1; transform: rotate(-3deg) scale(.95); } 100% { transform: rotate(-4deg) scale(1); } }
@starting-style { .n2 .tip:popover-open { opacity: 0; transform: translateY(-.25rem) scale(.98); } }
/* ── spacing scale for old pieces inside 2.0 pages ─────────────────────
   Settings job steps draw the old settings pages bare (settings/_bare.html), and the 2.0 pages reuse old boxes (.lv-card,
   .tools, .admin-form, .roster-filters). One scale for all of them, from the STYLE-GUIDE rem steps:
   inside a box 1rem 1.125rem; between a field and the next 1rem; label to field .5rem; text to the next box 1.25rem;
   a heading 2.25rem above, .75rem below. Courier only for numbers and meta words: prose in these boxes is Public Sans. */
.n2 { --n2-gap: 1rem; --n2-flow: 1.25rem; --n2-section: 2.25rem; --n2-control-h: calc(1.0625rem * 1.4 + 1.375rem + 2px); }
/* flow: whatever follows text or a box in a bare page body keeps a clear gap */
.n2 :where(.job-body > * + *, .lv-body > form + *) { margin-top: var(--n2-flow); }
.n2 .job-body > .admin-block:not(:first-child) { margin-top: var(--n2-section); }
/* headings in a bare body: a section gap above, a small one below; a count next to one reads as a count */
.n2 .job-body > h2, .n2 .job-body > h3 { margin: var(--n2-section) 0 .75rem; }
.n2 .job-body > h2:first-child, .n2 .job-body > h3:first-child { margin-top: 0; }
.n2 .job-body :is(h2, h3) > b { font: 700 1.125rem/1 var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; margin-left: .25rem; vertical-align: .15em; }
.n2 .job-body :is(h2, h3) > b::before { content: "· "; color: var(--ink-3); }
/* the old admin sheet: inside a step the step already indents and frames it, so it lays its fields out flat */
.n2 .job-body .admin-form { padding: 0; background: none; border-top: 0; gap: var(--n2-gap); }
/* one padded box per level: a box drawn inside a fold or card drops its own frame, the fold already pads it */
.n2 :is(.tools-body, .lv-body) > .control { border: 0; background: none; padding: 0; }
/* fields: clear gaps between a field, its label, its help and the next field; units stay inside the cell */
.n2 .form-grid { row-gap: var(--n2-gap); column-gap: 1.5rem; }
.n2 .form-grid > .form-group, .n2 .lv-body > .form-group { margin-bottom: 0; }
.n2 .form-group { gap: .5rem; }
.n2 .form-group > small, .n2 .form-group > .muted { line-height: 1.45; }
.n2 .form-grid > .check { padding-block: .25rem; }
.n2 .num-field { display: flex; min-width: 0; }
.n2 .num-field input { flex: 0 1 12rem; width: auto; min-width: 5rem; }
/* boxes: padded inside, a gap to whatever comes next; the head keeps title, chip and Open/Close on one line, the sentence under it */
.n2 .lv-card > summary, .n2 .tools > summary { padding: .875rem 1.125rem; gap: .5rem .875rem; flex-wrap: wrap; }
.n2 .lv-card > summary::after, .n2 .tools > summary::after { order: 1; }
.n2 .lv-sum, .n2 .tools > summary span { order: 2; flex-basis: 100%; font: 400 .9375rem/1.45 var(--sans); color: var(--ink-2); }
.n2 .lv-card + :not(.lv-card), .n2 .tools + * { margin-top: var(--n2-flow); }
/* Courier is for numbers: who holds a level and a table's row names read as words */
.n2 .acc-auto { font-family: var(--sans); font-size: .9375rem; }
.n2 tbody th[scope=row] { font: 600 1rem/1.3 var(--sans); text-transform: none; letter-spacing: normal; color: var(--ink); }
/* a select in a table cell keeps room for its words */
.n2 td > select:not([multiple]) { width: auto; min-width: 9rem; max-width: 100%; }
/* inline form rows: the input and its button share a height and a baseline; the line under the row keeps a gap */
.n2 :is(.roster-filters, .add-row, .tools-row, .acc-check-form) > .btn { min-height: var(--n2-control-h); }
.n2 .roster-filters { align-items: end; margin-bottom: var(--n2-flow); }
/* button groups keep away from the boxes around them */
.n2 .fold-all { margin-top: var(--n2-gap); }
.n2 .lv-body > form:has(> .btn), .n2 .lv-body > .btn { justify-self: start; }
@media (max-width: 760px) {
  .n2 .lv-body, .n2 .tools-body { padding: .875rem; }
  .n2 .lv-card > summary, .n2 .tools > summary { padding: .75rem .875rem; }
  .n2 .roster-filters { grid-template-columns: minmax(0, 1fr) auto; }
}

/* Spreadsheet sync: sharing help, Check my sheet and Your column names (settings/sheet_sync.html) */
.n2 .sheet-onb { display: grid; gap: 2.25rem; margin: 2.25rem 0; }
.n2 .onb-part { display: grid; gap: 1rem; max-width: 52rem; }
.n2 .onb-part h2 { margin: 0; font-size: 1.375rem; }
.n2 .onb-part > p { margin: 0; }
.n2 .onb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.n2 .onb-ok { margin: 0; display: flex; align-items: center; gap: .75rem; }
.n2 .onb-ok .tag, .n2 .onb-cols .tag, .n2 .onb-tab .tag { margin-left: 0; }
.n2 .onb-tabs { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rule-strong); background: var(--sheet); }
.n2 .onb-tabs > li { display: grid; gap: .75rem; padding: 1.25rem 1.25rem 1.5rem; }
.n2 .onb-tabs > li + li { border-top: 1px dashed var(--rule); }
.n2 .onb-tab { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .75rem; }
.n2 .onb-tab b { font-size: 1.125rem; }
.n2 .onb-cols { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.n2 .onb-cols li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; }
.n2 .onb-cols .tag { min-width: 6.5rem; text-align: center; }
.n2 .onb-sample-head { margin: .5rem 0 0; color: var(--ink-3); font-size: .9375rem; }
.n2 .onb-samples { list-style: none; margin: 0; padding: .75rem 1rem; display: grid; gap: .375rem; border: 1px solid var(--rule); background: var(--well); overflow-wrap: anywhere; }
.n2 .onb-samples .num { margin-right: .75rem; color: var(--ink-3); font: 700 .875rem/1.4 var(--mono); }
.n2 .onb-columns { margin: 2rem 0 1.5rem; }
.n2 .onb-columns .subfold-body { display: grid; gap: 1.25rem; }
.n2 .onb-intro { margin: 0; max-width: 60ch; }
.n2 .onb-group { margin: .75rem 0 0; padding-top: 1.25rem; border-top: 1px dashed var(--rule); font-weight: 600; }
.n2 .onb-columns .onb-group:first-of-type { border-top: 0; padding-top: 0; }
