/* Analytics panel engine styles (from painel.html): filter bar, tabs, charts, explorer, profiles.
   Shared components (buttons, cards, tiles, chips, seg, switch, badges, legends, progress) live in app.css. */

/* filter bar: sticks under the app topbar */
.bar { position: sticky; top: var(--topbar-h, 0px); z-index: 20; background: var(--page); border-bottom: 1px solid var(--grid); padding-block: 10px 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fq { height: var(--h-sm, 30px); width: min(240px, 100%); padding: 0 10px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-md, 8px); font-size: 14px; color: var(--ink); }
.fq:hover { border-color: var(--ink-2); }
.fq:focus { outline: 2px solid transparent; border-color: var(--accent); box-shadow: var(--ring); }
.bar .btn-ghost, .bar .btn { --bh: var(--h-sm, 30px); padding: 0 10px; font-size: 13px; }
.count { margin-left: auto; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ms { position: relative; }
.ms-btn { display: inline-flex; align-items: center; gap: 6px; height: var(--h-sm, 30px); padding: 0 10px; background: var(--surface); border: 1px solid color-mix(in oklab, var(--ink) 16%, transparent);
  border-radius: var(--r-md, 8px); font-size: 13px; color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: border-color var(--t-fast, .12s), background-color var(--t-fast, .12s); }
.ms-btn:hover { border-color: color-mix(in oklab, var(--ink) 32%, transparent); color: var(--ink); }
.ms-btn b { font-weight: 600; color: var(--ink); max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.ms-btn.on { border-color: var(--accent); background: var(--accent-wash); color: var(--ink); }
.ms-btn .car { font-size: 10px; color: var(--muted); }
.pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; display: grid; gap: 1px; min-width: 240px; max-height: min(380px, 60vh); overflow: auto; padding: 6px;
  background: var(--surface-3, var(--surface)); border: 1px solid var(--border); border-radius: var(--r-lg, 12px); box-shadow: var(--e-3, 0 10px 30px rgba(0,0,0,.18)); }
.pop-hd { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 2px 6px 6px; margin-bottom: 4px; border-bottom: 1px solid var(--grid); }
.opt { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 8px; padding: 6px; border-radius: var(--r-sm, 6px); font-size: 13.5px; cursor: pointer; }
.opt:hover { background: var(--accent-wash); }
.opt.dim { color: var(--muted); }
.opt small { color: var(--muted); font-variant-numeric: tabular-nums; }
.opt input { margin: 0; accent-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; align-items: center; }
.fchip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 2px 3px 2px 10px; border-radius: 999px; border: 1px solid transparent;
  background: var(--accent-wash); color: var(--ink); font-size: 12.5px; overflow-wrap: anywhere; }
.fchip.rule { border-color: var(--accent); }
.fchip small { color: var(--ink-2); }
.fchip button { padding: 1px 6px 2px; border: 0; border-radius: 50%; background: none; color: var(--ink-2); font-size: 15px; line-height: 1; cursor: pointer; }
.fchip button:hover { color: var(--ink); background: var(--surface); }
.rulebox { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md, 10px); }
.rulebox p { flex-basis: 100%; margin: 0; }
.rulebox select, .rulebox input, .ctl select, .ctl input[type=number], .ctl input[type=search] { max-width: 100%; height: var(--h-sm, 30px); padding: 0 8px; background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--r-md, 8px); font-size: 13.5px; color: var(--ink); }
.rulebox select:focus, .rulebox input:focus, .ctl select:focus, .ctl input:focus { outline: 2px solid transparent; border-color: var(--accent); box-shadow: var(--ring); }
.rulebox select, .ctl select { appearance: none; padding-right: 30px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.rulebox input[type=number] { width: 90px; }
.ctl .btn-ghost, .ctl .btn, .rulebox .btn, .rulebox .btn-ghost { --bh: var(--h-sm, 30px); padding: 0 10px; font-size: 13px; }
.tabs { display: flex; gap: 2px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; flex: none; padding: 8px 12px 10px; border: 0; border-bottom: 2px solid transparent; background: none; font-size: 14px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab:focus-visible { outline-offset: -3px; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 500; }

#main { padding-top: 16px; min-width: 0; }
.panel { display: grid; gap: 20px; }
.ctl { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 13px; color: var(--ink-2); }
.ctl label { display: inline-flex; align-items: center; gap: 6px; }

/* stacked bars */
.sb { display: grid; grid-template-columns: minmax(90px, max-content) minmax(0, 1fr); gap: 8px 12px; align-items: center; }
.sb-label { max-width: 240px; font-size: 13px; color: var(--ink-2); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-label.click { cursor: pointer; }
.sb-label.click:hover { color: var(--accent-ink, var(--accent)); text-decoration: underline; text-underline-offset: 2px; }
.sb-track { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
.sb-bar { display: flex; gap: 2px; height: 20px; width: calc((100% - var(--res, 64px)) * var(--w)); min-width: 3px; flex: none; }
.sb.wrap { grid-template-columns: minmax(90px, min(300px, 45%)) minmax(0, 1fr); }
.sb.wrap .sb-label { white-space: normal; max-width: none; overflow: visible; line-height: 1.3; }
.sb-seg { height: 100%; min-width: 3px; cursor: default; transition: filter var(--t-fast, .12s); }
.sb-seg.click { cursor: pointer; }
.sb-seg:last-child { border-radius: 0 4px 4px 0; }
.sb-seg:hover, .sb-seg:focus-visible { filter: brightness(1.12); }
.sb-val { font-size: 12.5px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sb-flag { font-size: 12px; color: var(--warn-ink); white-space: nowrap; }
.sb-flag.alto { color: var(--crit-ink, var(--crit)); font-weight: 500; } .sb-flag.medio { color: var(--warn-ink); } .sb-flag.ok { color: var(--good-ink, var(--good)); }

/* strip plot */
.strip { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 10px; }
.strip .yl { display: flex; align-items: center; justify-content: flex-end; font: 500 12.5px/1 var(--f-mono); color: var(--ink-2); }
.strip .lane { position: relative; border-bottom: 1px solid var(--grid); }
.strip .lane .g { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--grid); }
.strip .lane .g.z { width: 2px; background: var(--axis); }
.strip .xa { grid-column: 2; position: relative; height: 22px; }
.strip .xa span { position: absolute; top: 4px; transform: translateX(-50%); font: 12px var(--f-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--surface); transform: translate(-50%, -50%); cursor: pointer; }
.dot::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; }
.dot.hollow { border: 2px solid var(--ink-2); background: var(--surface) !important; }
/* V07: strip dots get an edge that holds 3:1 against the card in both themes, so "on target" (0%) dots never vanish */
.strip .dot:not(.hollow) { border: 1.5px solid color-mix(in oklab, var(--ink) 58%, var(--surface)); }
.card:has(.strip) .legend .dotsw { box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--ink) 58%, var(--surface)); }
.dot:hover { z-index: 2; box-shadow: 0 0 0 2px var(--ink); }

/* count matrix */
.cm { display: grid; gap: 2px; font-variant-numeric: tabular-nums; }
.cm .hd { align-self: end; padding-bottom: 4px; font-size: 12px; color: var(--muted); text-align: center; }
.cm .rh { align-self: center; padding-right: 8px; font-size: 13px; color: var(--ink-2); text-align: right; white-space: nowrap; }
.cm .c { display: flex; align-items: center; justify-content: center; height: 46px; border: 2px solid transparent; border-radius: 4px; font-weight: 600; font-size: 15px; cursor: pointer; }
.cm .c.on { border-color: var(--ink); }
.cm .c.zero { color: var(--muted); font-weight: 400; cursor: default; }

/* heatmap */
table.hm { border-collapse: separate; border-spacing: 2px; font-size: 12.5px; }
table.hm th { font-weight: 400; color: var(--ink-2); }
table.hm thead th.col { padding: 0 0 4px; writing-mode: vertical-rl; transform: rotate(180deg); text-align: left; vertical-align: bottom; white-space: nowrap; cursor: pointer; font-size: 12px; }
table.hm thead th.col:hover, table.hm thead th.col.sorted { color: var(--ink); font-weight: 600; }
table.hm thead th.grp { padding: 0 0 6px 2px; border-bottom: 1px solid var(--grid); font: 500 11px/1 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); text-align: left; }
table.hm td.nm { padding-right: 10px; white-space: nowrap; text-align: left; }
table.hm td.nm small { color: var(--muted); font: 11px var(--f-mono); }
table.hm td.k { width: 22px; min-width: 22px; height: 22px; border-radius: 3px; text-align: center; font-size: 10.5px; font-weight: 600; }
table.hm td.gap { width: 8px; }
table.hm tr.sep td { height: 8px; }
/* "no data" hatch: only heatmap, grid and explorer cells and profile bars (app tables use .dev.na / .zl.na) */
:is(table.hm, table.gt, table.pt) td.na, .sk .b.na { background: repeating-linear-gradient(135deg, transparent 0 3px, var(--grid) 3px 4.5px) !important; color: var(--muted) !important; }
.plink { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.plink:hover { color: var(--accent-ink, var(--accent)); }

/* grid table */
table.gt { border-collapse: separate; border-spacing: 2px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
table.gt th { padding: 2px 6px; font-weight: 400; color: var(--ink-2); }
table.gt thead th { font-size: 12px; vertical-align: bottom; text-align: center; }
table.gt thead th.v span { display: inline-block; max-height: 190px; overflow: hidden; text-overflow: ellipsis; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
table.gt th.rh { text-align: right; white-space: nowrap; }
table.gt th.rh small { display: block; color: var(--muted); font-size: 11px; line-height: 1.2; }
table.gt td { min-width: 42px; height: 30px; padding: 0 5px; border-radius: 4px; text-align: center; font-weight: 500; }
table.gt th.rh small { max-width: 150px; margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.gt td.click { cursor: pointer; }
table.gt td.click:hover, table.gt td.on { outline: 2px solid var(--ink); outline-offset: -2px; }
table.gt td.tot, table.gt th.tot { font-weight: 600; color: var(--ink); }
table.gt td.sel { background: var(--surface-2); }

/* initiatives and findings */
.ini { display: grid; gap: 0; }
.ini-row { display: grid; grid-template-columns: minmax(120px, 240px) minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--grid); align-items: start; }
.ini-row:first-child { border-top: 0; }
.ini-row .t { font-size: 13.5px; font-weight: 500; min-width: 0; }
.ini-row .t small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.finds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 14px 20px; }
.find { display: grid; gap: 4px; align-content: start; padding-top: 10px; border-top: 2px solid var(--ink); }
.find h3 { font-size: 14.5px; font-weight: 600; }
.find p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* explorer table */
.ptools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
table.pt { border-collapse: collapse; width: 100%; font-size: 13.5px; font-variant-numeric: tabular-nums; }
table.pt th { padding: 8px 10px; border-bottom: 1px solid var(--axis); text-align: left; vertical-align: bottom; white-space: nowrap; font-weight: 500; font-size: 12.5px; color: var(--ink-2); cursor: pointer; user-select: none; }
table.pt th:hover { color: var(--ink); }
table.pt th[aria-sort] { color: var(--ink); }
table.pt th.v { height: 130px; padding: 6px 3px; writing-mode: vertical-rl; transform: rotate(180deg); text-align: left; vertical-align: top; font-weight: 400; }
table.pt td { padding: 7px 10px; border-bottom: 1px solid var(--grid); white-space: nowrap; }
table.pt td.hc { min-width: 28px; padding: 4px 2px; border-bottom: 2px solid var(--surface); border-right: 2px solid var(--surface); text-align: center; font-size: 11.5px; font-weight: 600; }
table.pt td.cb, table.pt th.cb { width: 30px; padding-right: 0; cursor: default; }
table.pt tbody tr { cursor: pointer; }
table.pt tbody tr:hover > td:not(.hc) { background: var(--accent-wash); }
table.pt tbody tr.sel > td:not(.hc) { background: var(--accent-wash); }
table.pt tbody tr.sel > td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
table.pt tr.det td { white-space: normal; background: var(--surface-2); cursor: default; }
table.pt td.wrapc { white-space: normal; min-width: 260px; }
.ai { display: inline-flex; align-items: center; gap: 6px; }
.lvl { display: inline-flex; gap: 2px; vertical-align: middle; }
.lvl i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--h0); }
.lvl i.on { background: var(--l2); }

/* person profile */
.prof { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px 28px; }
.prof h3 { margin-bottom: 8px; font: 500 12px/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.prof .who { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.prof .who strong { margin-right: 4px; font-size: 22px; font-weight: 600; overflow-wrap: anywhere; }
.sk { display: grid; grid-template-columns: minmax(90px, 1.5fr) minmax(48px, 1fr) auto; gap: 5px 10px; font-size: 13px; align-items: center; }
.sk > span { line-height: 1.25; min-width: 0; }
.sk .b { height: 8px; border-radius: 0 3px 3px 0; background: var(--l2); }
.sk .b.na { width: 100%; height: 8px; border-radius: 3px; }
.sk small { color: var(--muted); font-variant-numeric: tabular-nums; }
.gen { margin: 28px 0 0; font-size: 12px; color: var(--muted); }

/* scatter */
.sc { display: grid; grid-template-columns: 46px minmax(0, 1fr); grid-template-rows: 300px 24px auto; gap: 0 8px; }
.sc-y { position: relative; }
.sc-y span { position: absolute; right: 0; transform: translateY(-50%); font: 12px var(--f-mono); color: var(--muted); white-space: nowrap; }
.sc-plot { position: relative; border-left: 1px solid var(--axis); border-bottom: 1px solid var(--axis); }
.sc-plot .gx { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--grid); }
.sc-plot .gy { position: absolute; left: 0; right: 0; height: 1px; background: var(--grid); }
.sc-plot .diag { position: absolute; inset: 0; pointer-events: none; }
.sc-plot .diag svg { display: block; width: 100%; height: 100%; overflow: visible; }
.sc-x { grid-column: 2; position: relative; }
.sc-x span { position: absolute; top: 5px; transform: translateX(-50%); font: 12px var(--f-mono); color: var(--muted); white-space: nowrap; }
.sc-lab { grid-column: 2; padding-top: 2px; text-align: center; font-size: 12.5px; color: var(--ink-2); }

/* comparison */
table.cmp { border-collapse: separate; border-spacing: 2px; font-size: 12.5px; }
table.cmp th { padding: 4px 8px; text-align: left; white-space: nowrap; font-weight: 500; }
table.cmp thead th { font-size: 13px; color: var(--ink); }
table.cmp td { min-width: 96px; padding: 4px 8px; border-radius: 4px; text-align: center; font-variant-numeric: tabular-nums; }
table.cmp tr.sec th { padding-top: 14px; font: 500 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* facets */
.facets { display: grid; gap: 8px; }
.facet { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; }
.facet > span { min-width: 88px; color: var(--muted); }
.tog { padding: 3px 10px; border: 1px solid color-mix(in oklab, var(--ink) 16%, transparent); border-radius: 999px; background: var(--surface); font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.tog:hover { border-color: color-mix(in oklab, var(--ink) 32%, transparent); color: var(--ink); }
.tog[aria-pressed="true"] { background: var(--accent-wash); border-color: var(--accent); color: var(--ink); }
.tog small { margin-left: 4px; color: var(--muted); }
.tog:disabled { opacity: .45; cursor: default; }

/* tooltip */
#tip { position: fixed; z-index: 40; max-width: 340px; padding: 8px 10px; pointer-events: none; background: var(--surface-3, var(--surface)); color: var(--ink);
  border: 1px solid var(--border); border-radius: var(--r-md, 8px); box-shadow: var(--e-3, 0 6px 20px rgba(0,0,0,.16)); font-size: 12.5px; }
#tip .tv { font-weight: 600; font-size: 14px; }
#tip .tr { color: var(--ink-2); }

@media (max-width: 640px) {
  .sb-label, .sb.wrap .sb-label { max-width: 130px; }
  .ini-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .fq { width: 100%; }
}
@media print { .bar { position: static; } #tip { display: none; }
  /* V15: nothing prints mid-transition (nine-box cells were caught between the dark and the light colors) */
  *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ==== panel: P2 shell (header, compact sticky bar, hero KPIs, drawer, ranking, print) ==== */
.pn-head { margin-bottom: var(--s-2); }
.pn-head .lede { max-width: 92ch; }
.pn-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pn-badges .chip { font-size: var(--fs-xs); }
.pn-acts .pn-ic svg, .pn-acts svg { width: 16px; height: 16px; }
.pn-ic { display: inline-flex; }
.pn-ic svg { width: 16px; height: 16px; }

/* filter row: scrolls away with the page; on phones it becomes a bottom sheet */
.pn-filters { padding-bottom: 10px; }
.fmore { display: contents; }
.fmore-hd { display: none; }

/* compact sticky bar: tabs + "Mostrando X de Y" + Filtros (n) + chips on one line + Limpar */
.bar { padding: 0; border-bottom: 1px solid var(--grid); transition: box-shadow var(--t-fast, .12s); }
.bar.stuck { box-shadow: 0 8px 14px -12px color-mix(in oklab, var(--ink) 45%, transparent); }
.bar .tabs { position: relative; margin-top: 0; }
/* PN-R3/V04: every tab is reachable at desktop widths (the sidebar leaves ~970–1130px at 1280–1440): the strip wraps onto a
   second row instead of hiding tabs behind a fade; phones keep the single swipeable row with the edge fade */
@media (min-width: 641px) {
  .bar .tabs { flex-wrap: wrap; row-gap: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; animation: none; }
  .bar .tab { padding-inline: 10px; }
}
.pn-status { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 6px 0; border-top: 1px solid var(--grid); }
.pn-status .count { flex: none; width: auto; margin: 0; font-size: 13px; color: var(--ink-2); }
.pn-fbtn { flex: none; display: none; align-items: center; gap: 6px; height: var(--h-sm, 30px); padding: 0 10px; border: 1px solid var(--border-strong); border-radius: var(--r-md, 8px);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.pn-fbtn:hover { border-color: var(--ink-2); }
.pn-fbtn svg { width: 14px; height: 14px; }
.pn-fbtn b:not(:empty) { min-width: 18px; padding: 0 5px; border-radius: var(--r-pill, 999px); background: var(--accent); color: var(--on-accent); font-size: 11px; line-height: 18px; text-align: center; }
.bar.stuck .pn-fbtn { display: inline-flex; }
.bar .chips { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; overflow-x: auto; padding: 2px 2px; scrollbar-width: none; }
.bar .chips::-webkit-scrollbar { display: none; }
.bar .fchip { flex: none; max-width: min(360px, 70vw); white-space: nowrap; }
.fchip .fct { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fchip button { min-width: 24px; min-height: 24px; }
.pn-hint { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.pn-clear { flex: none; }

/* hero KPIs (3–4 per tab, change vs the previous cycle) and the clickable secondary strip */
button.tile { appearance: none; width: 100%; font: inherit; text-align: left; cursor: pointer; }
.pn-kb { transition: border-color var(--t-fast, .12s), box-shadow var(--t-fast, .12s); }
.pn-kb:hover { border-color: color-mix(in oklab, var(--ink) 24%, transparent); box-shadow: var(--e-2); }
.pn-kb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pn-hero .tile .val { font-size: 34px; }
.tile.pn-tg { box-shadow: inset 3px 0 0 var(--good), var(--e-1); }
.tile.pn-tc { box-shadow: inset 3px 0 0 var(--crit), var(--e-1); }
.tile.pn-kb.pn-tg:hover { box-shadow: inset 3px 0 0 var(--good), var(--e-2); }
.tile.pn-kb.pn-tc:hover { box-shadow: inset 3px 0 0 var(--crit), var(--e-2); }
/* V16: the change reads as one line of text that wraps between the value and "vs …", never as three narrow columns */
.pn-delta { display: inline; font: 500 12px/1.35 var(--f-sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.pn-delta > span:first-child { font-size: 10px; color: var(--ink-2); }
.pn-delta .pn-dl { color: var(--muted); font-weight: 400; }
/* PN-R9: a KPI tile or strip item whose filter is on looks pressed, like the legend buttons */
.tile.pn-kb.on { border-color: var(--accent); background: var(--accent-wash); }
.pn-s.on { border-color: var(--accent); background: var(--accent-wash); color: var(--ink); }
.pn-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -8px; }
.pn-s { display: inline-flex; align-items: baseline; gap: 6px; min-height: 32px; padding: 5px 12px; border: 1px solid var(--border); border-radius: var(--r-pill, 999px); background: var(--surface);
  font: inherit; font-size: 13px; color: var(--ink-2); text-align: left; }
button.pn-s { cursor: pointer; }
button.pn-s:hover { border-color: var(--accent); color: var(--ink); }
button.pn-s:focus-visible, .pn-j:focus-visible, .pn-lg:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pn-s b { color: var(--ink); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pn-s small { color: var(--muted); font-size: 12px; }

/* jump links on long tabs */
.pn-jump { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pn-jl { margin-right: 4px; font: 500 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pn-j { padding: 4px 10px; border: 0; border-radius: var(--r-pill, 999px); background: var(--surface-2); color: var(--ink-2); font: inherit; font-size: 12.5px; cursor: pointer; }
.pn-j:hover { background: var(--accent-wash); color: var(--ink); }
#main .card, #main .row2 { scroll-margin-top: calc(var(--topbar-h, 56px) + var(--pn-bar-h, 90px) + 12px); }
#main .card > h2:focus { outline: none; }

/* clickable legends */
.pn-lg { display: inline-flex; align-items: center; gap: 6px; margin: -3px -5px; padding: 2px 8px 2px 5px; border: 1px solid transparent; border-radius: var(--r-pill, 999px);
  background: none; font: inherit; font-size: var(--fs-sm, 13px); color: var(--ink-2); cursor: pointer; }
.pn-lg:hover { border-color: var(--border-strong); color: var(--ink); }
.pn-lg.on { border-color: var(--accent); background: var(--accent-wash); color: var(--ink); }
.pn-lg small { color: var(--muted); font-variant-numeric: tabular-nums; }
.legend:has(.pn-lg) { gap: 6px 16px; }

/* status tags (prévia, inativo, resultado não liberado, declarado, sugerido) */
.pn-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 6px; vertical-align: middle; }
.pn-tag { display: inline-block; padding: 0 6px; border: 1px dashed var(--axis); border-radius: var(--r-xs, 4px); color: var(--ink-2); font: 500 11px/1.5 var(--f-sans); white-space: nowrap; }
.pn-tag.sug { border-color: var(--ink-2); }
.pn-prv { display: inline-flex; align-items: center; gap: 6px; }

/* long names never widen the page (CR6) */
.names .chip { min-width: 0; }
.names .chip b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ini-row .t { overflow-wrap: anywhere; }

/* ranking: top and bottom side by side, full list on demand */
.pn-rk2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 12px 32px; }
table.pn-rk caption { padding: 0 10px 6px; text-align: left; font: 500 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
table.pn-rk th { cursor: default; }
table.pn-rk tbody tr:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
table.pn-rk .num { text-align: right; font-variant-numeric: tabular-nums; }
table.pn-rk td.pn-nm { max-width: 240px; }
.pn-nm .ai { max-width: 100%; }
.pn-pf { display: block; padding-left: 16px; color: var(--muted); font-size: 12px; line-height: 1.3; }
table.pn-rk td { padding-block: 6px; }
.pn-nmt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-dcw { display: inline-flex; align-items: center; gap: 8px; }
.pn-dcw b { min-width: 54px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.pn-zl { position: relative; display: inline-block; flex: none; width: 92px; height: 12px; background: linear-gradient(var(--axis), var(--axis)) center / 1px 100% no-repeat; }
.pn-zl i { position: absolute; top: 2px; bottom: 2px; border-radius: 2px; }

/* scrollers: a fade shows there are more columns; the Pessoas table keeps its header and name column in place */
.pn-more { --pl: 0px; --pr: 0px; -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--pl), #000 calc(100% - var(--pr)), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--pl), #000 calc(100% - var(--pr)), transparent); }
.pn-more:not(.pn-end) { --pr: 36px; }
.pn-more.pn-start:not(.pn-tall) { --pl: 20px; }
.tscroll.pn-tall { max-height: calc(100dvh - var(--topbar-h, 56px) - var(--pn-bar-h, 90px) - 28px); overflow: auto; }
.pn-tall thead th { position: sticky; top: 0; z-index: 2; background: var(--surface); }
table.pn-people td.cb, table.pn-people th.cb { position: sticky; left: 0; z-index: 1; box-sizing: border-box; width: 36px; min-width: 36px; padding: 7px 0 7px 10px; background: var(--surface); }
table.pn-people .pn-st { position: sticky; left: 36px; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--grid); }
table.pn-people td.pn-st { min-width: 180px; max-width: 280px; white-space: normal; }
table.pn-people thead th.cb, table.pn-people thead th.pn-st { z-index: 3; }
table.pn-people thead th { cursor: pointer; }
table.pn-people thead th:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
table.pn-people tbody tr:hover > td.pn-st, table.pn-people tbody tr:hover > td.cb, table.pn-people tbody tr.sel > td.pn-st, table.pn-people tbody tr.sel > td.cb {
  background: linear-gradient(var(--accent-wash), var(--accent-wash)), var(--surface); }

/* person drawer (PN14): right-side sheet, full screen on phones */
dialog.pn-drawer { position: fixed; inset: 0 0 0 auto; width: min(800px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0;
  border: 0; border-left: 1px solid var(--border); border-radius: var(--r-xl, 16px) 0 0 var(--r-xl, 16px); background: var(--surface); color: var(--ink);
  overflow-y: auto; overscroll-behavior: contain; box-shadow: var(--e-3); }
dialog.pn-drawer[open] { animation: pn-in var(--t-slow, .36s) var(--ease, ease); }
@keyframes pn-in { from { opacity: 0; transform: translateX(48px); } }
html.pn-noscroll { overflow: hidden; }
.pd { display: grid; align-content: start; min-height: 100%; }
.pd-top { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 14px 8px 12px;
  background: color-mix(in oklab, var(--surface) 94%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-bottom: 1px solid var(--grid); }
.pd-nav { display: flex; align-items: center; gap: 2px; min-width: 0; }
.pd-pos { margin-left: 8px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-top svg { width: 18px; height: 18px; }
.pd-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 16px; padding: 20px 24px 18px; border-bottom: 1px solid var(--grid); }
.pd-av { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--surface-2); color: var(--ink); font: 600 18px/1 var(--f-sans); }
.pd-id { min-width: 0; }
.pd-id h2 { margin: 0; padding: 0; font-size: var(--fs-xl, 20px); line-height: 1.2; overflow-wrap: anywhere; }
/* PN-R4: the confirmed criterion under a calculated suggestion that differs from it */
.pd-conf { display: block; color: var(--ink-2); font-size: 11.5px; }
.pd-id h2:focus { outline: none; }
.pd-id h2:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.pd-sub { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.pd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pd-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pd-acts svg { width: 16px; height: 16px; }
.pd-body { display: grid; gap: 22px; padding: 20px 24px 48px; }
.pd-res { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pd-r { display: grid; gap: 6px; align-content: start; min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: var(--r-lg, 12px); background: var(--surface); }
.pd-r .big { font-size: 32px; }
.pd-r .big small { font-size: 15px; }
.pd-l { font: 500 11px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pd-m { font-size: 12.5px; line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; }
.pd-m .pn-delta { margin-left: 4px; }
.pd-nb[role="button"] { cursor: pointer; transition: border-color var(--t-fast, .12s), box-shadow var(--t-fast, .12s); }
.pd-nb[role="button"]:hover { border-color: color-mix(in oklab, var(--ink) 24%, transparent); box-shadow: var(--e-2); }
.pd-nb:focus-visible, .pd .gb[role="button"]:focus-visible, .pd .sk .b[role="button"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pd-nbw { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.pd-nbw > div:last-child { display: grid; gap: 3px; min-width: 0; }
.pd-nbv { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pd-nbv b { font-size: 15px; line-height: 1.25; }
.pn-mnb { flex: none; display: grid; grid-template-columns: repeat(3, 18px); grid-auto-rows: 18px; gap: 2px; }
.pn-mnb span { display: grid; place-items: center; border-radius: 3px; color: var(--ink-2); font: 600 9.5px/1 var(--f-mono); }
.pn-mnb span.on { color: var(--ink); outline: 2px solid var(--ink); outline-offset: 0; }
.pn-mnb span.on.sug { outline-style: dashed; }
.pn-mnb span.pv { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.pd-sec { min-width: 0; }
.pd-sec h3 { margin: 0 0 10px; font: 500 12px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pd-sec h4 { margin: 14px 0 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.pd-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; }
.pd .sk { grid-template-columns: minmax(96px, 1.2fr) minmax(64px, 2fr) auto; }
.pd .gb { cursor: default; }
.pd .gb[role="button"], .pd .sk .b[role="button"] { cursor: pointer; }
.pd .gb.miss { background: color-mix(in oklab, var(--warn) 40%, transparent); }
.pd .gb u.pv { position: absolute; top: 50%; width: 9px; height: 9px; border: 2px solid var(--ink-2); border-radius: 50%; background: var(--surface); transform: translate(-50%, -50%); }
.pd-lg { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin: -4px 0 10px; }
.pd-lg .sw { width: 10px; height: 10px; border-radius: 2px; }
.pd-tick { display: inline-block; width: 2px; height: 12px; background: var(--ink); }
.pd-ring { display: inline-block; width: 9px; height: 9px; border: 2px solid var(--ink-2); border-radius: 50%; }
.pd-pj { gap: 6px; }
.pd-pj small { color: var(--muted); }
.pd table.gt td { min-width: 34px; height: 26px; }

/* phones: sticky compact bar stays, filters live in a bottom sheet, popovers never run off-screen (PN10) */
@media (max-width: 640px) {
  .phead .pn-acts #pn-print, .pn-hint { display: none; }
  .pn-fbtn { display: inline-flex; }
  .pn-status { flex-wrap: wrap; row-gap: 4px; min-height: 0; }
  .pn-status .count { font-size: 12.5px; }
  .bar .chips { order: 3; flex-basis: 100%; }
  .pn-clear { margin-left: auto; }
  .pn-filters { padding-bottom: 8px; }
  .fmore { display: none; }
  .fmore.open { display: grid; gap: 8px; position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; max-height: 82dvh; overflow: auto; padding: 0 16px calc(16px + env(safe-area-inset-bottom));
    background: var(--surface-3); border-radius: var(--r-xl, 16px) var(--r-xl, 16px) 0 0; box-shadow: 0 0 0 100vmax var(--scrim), var(--e-3); }
  .fmore.open .fmore-hd { display: flex; position: sticky; top: 0; z-index: 2; justify-content: space-between; align-items: center; padding: 14px 0 8px; background: var(--surface-3); }
  .fmore.open .ms-btn { width: 100%; height: 42px; justify-content: space-between; }
  .fmore.open .ms-btn b { margin-left: auto; }
  .fmore.open .pop { position: static; min-width: 0; max-height: none; margin-top: 4px; box-shadow: none; }
  .fmore.open > .btn-ghost { height: 42px; }
  .pop { max-width: calc(100vw - 32px); }
  .pn-strip { margin-top: -6px; }
  .pn-jump { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .pn-jump::-webkit-scrollbar { display: none; }
  .pn-j, .pn-jl { flex: none; }
  .pn-hero .tile .val { font-size: 28px; }
  dialog.pn-drawer { width: 100vw; border-left: 0; border-radius: 0; }
  .pd-head { padding: 16px 16px 14px; gap: 10px 12px; }
  .pd-av { width: 42px; height: 42px; font-size: 15px; }
  .pd-body { padding: 16px 16px 40px; gap: 18px; }
  .pd-res { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-res .pd-nb { grid-column: 1 / -1; }
  .pd-2 { grid-template-columns: minmax(0, 1fr); }
  .pd-r .big { font-size: 26px; }
  table.pn-people td.pn-st { min-width: 140px; max-width: 180px; }
}

/* print: the current tab with its filter context; with the drawer open, only the profile */
.pn-print { display: none; }
@media print {
  .pn-filters, .pn-acts, .pn-jump, .pn-hint, .pn-strip button::after { display: none !important; }
  .pn-print { display: block; margin: 0 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--grid); font-size: 11px; color: var(--ink-2); }
  .tscroll.pn-tall { max-height: none; overflow: visible; }
  .pn-more { -webkit-mask-image: none; mask-image: none; }
  html:has(dialog.pn-drawer[open]) .shell { display: none; }
  dialog.pn-drawer { position: static; width: auto; height: auto; max-height: none; overflow: visible; border: 0; border-radius: 0; box-shadow: none; }
  .pd-top, .pd-acts, .pn-head .lede, .pn-badges { display: none; }
  dialog.pn-drawer::backdrop { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ==== panel: ninebox ==== */
/* Nine Box tab (track P7, tools/panel_ninebox.js). Tones .nb-b1…9 set --nb (cell tint), --nbs (badge fill) and --nbo
   (badge text): the diagonal ramp of V0's .vz-nb-cell and N0, AA with --ink / --ink-2 in both themes. */
.nb-b1 { --nb: color-mix(in oklab, var(--crit) 34%, var(--surface)); --nbs: var(--crit); --nbo: var(--on-crit); }
.nb-b2, .nb-b4 { --nb: color-mix(in oklab, var(--crit) 16%, var(--surface)); --nbs: color-mix(in oklab, var(--crit) 42%, var(--surface)); --nbo: var(--ink); }
.nb-b3, .nb-b5, .nb-b7 { --nb: var(--surface-2); --nbs: var(--none); --nbo: var(--ink); }
.nb-b6, .nb-b8 { --nb: color-mix(in oklab, var(--good) 16%, var(--surface)); --nbs: color-mix(in oklab, var(--good) 42%, var(--surface)); --nbo: var(--ink); }
.nb-b9 { --nb: color-mix(in oklab, var(--good) 34%, var(--surface)); --nbs: var(--good); --nbo: var(--on-good); }
.nb-n { flex: none; display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: var(--r-xs, 4px); background: var(--nbs); color: var(--nbo); font: 600 12.5px/1 var(--f-mono); }
.nb-tot { font: 500 11px/1.2 var(--f-mono); color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nb-num { text-align: right; font-variant-numeric: tabular-nums; }

/* toolbar, tiles, selection */
.nb-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.nb-bar .grow { flex: 1 1 0; }
.nb-tile[role="button"] { cursor: pointer; transition: border-color var(--t-fast, .12s), box-shadow var(--t-fast, .12s); }
.nb-tile[role="button"]:hover { border-color: color-mix(in oklab, var(--ink) 24%, transparent); box-shadow: var(--e-2); }
.nb-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nb-sel { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 10px 14px; border: 1px solid var(--accent); border-radius: var(--r-lg, 12px); background: var(--accent-wash); font-size: var(--fs-sm, 13px); color: var(--ink); }
.nb-sel .lnk { margin-left: auto; }
.nb-card { gap: 14px; }
.nb-hint { margin: 0; padding: 8px 12px; border: 1px solid color-mix(in oklab, var(--warn) 50%, transparent); border-radius: var(--r-md, 8px); background: color-mix(in oklab, var(--warn) 12%, var(--surface)); font-size: var(--fs-sm, 13px); line-height: 1.45; color: var(--ink); }
.nb-lg { align-items: center; gap: 8px 18px; }
.nb-lg .nb-p.sample { min-height: 22px; font-size: 11.5px; }
.nb-ramp { gap: 3px; font-size: 12px; }
.nb-ramp i { width: 15px; height: 12px; border-radius: 3px; background: var(--nb); border: 1px solid color-mix(in oklab, var(--ink) 14%, transparent); }
.nb-ramp i:first-child { margin-left: 3px; }
.nb-ramp i:last-of-type { margin-right: 3px; }

/* people: the matrix */
.nb-mx { display: grid; grid-template-columns: minmax(112px, 156px) repeat(3, minmax(0, 1fr)); gap: 6px; }
.nb-yt { grid-column: 1 / -1; font: 500 11px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nb-corner { align-self: start; padding: 8px 10px 0 0; text-align: right; font: 500 10.5px/1.2 var(--f-mono); color: var(--muted); }
.nb-xt { grid-column: 2 / -1; padding-top: 2px; text-align: center; font: 500 11px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nb-yl, .nb-xl { display: grid; gap: 3px; align-content: center; min-width: 0; padding: 8px 10px; border: 0; border-radius: var(--r-md, 8px); background: none; font: inherit; color: var(--ink-2); text-align: right; cursor: pointer;
  transition: background-color var(--t-fast, .12s); }
.nb-xl { align-content: start; justify-items: center; text-align: center; padding: 6px 8px; }
.nb-yl b, .nb-xl b { font-size: var(--fs-md, 14px); font-weight: 600; color: var(--ink); }
.nb-yl small, .nb-xl small { font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.nb-yl:hover, .nb-xl:hover { background: color-mix(in oklab, var(--ink) 5%, transparent); }
.nb-yl.on, .nb-xl.on { background: var(--accent-wash); box-shadow: inset 0 0 0 1.5px var(--accent); }
.nb-yl:focus-visible, .nb-xl:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.nb-c { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 172px; padding: 10px 12px 12px; border-radius: var(--r-lg, 12px); background: var(--nb);
  border: 1px solid color-mix(in oklab, var(--ink) 9%, transparent); transition: box-shadow var(--t-fast, .12s), border-color var(--t-fast, .12s), background-color var(--t-med, .2s); }
.nb-c:not(.is-empty) { cursor: pointer; }
.nb-c:not(.is-empty):hover { border-color: color-mix(in oklab, var(--ink) 26%, transparent); box-shadow: var(--e-2); }
.nb-c.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--e-2); }
.nb-c.off { background: color-mix(in oklab, var(--nb) 38%, var(--surface)); border-style: dashed; }
.nb-ch { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: start; margin: -4px -6px 0; padding: 4px 6px; border: 0; border-radius: var(--r-md, 8px); background: none;
  font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.nb-ch[aria-disabled="true"] { cursor: default; }
.nb-ch:not([aria-disabled]):hover .nb-nm { text-decoration: underline; text-underline-offset: 3px; }
.nb-ch:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.nb-nm { align-self: center; min-width: 0; font-size: var(--fs-md, 14px); font-weight: 600; line-height: 1.2; overflow-wrap: break-word; hyphens: auto; }
.nb-k { display: grid; justify-items: end; gap: 3px; line-height: 1; }
.nb-k b { font-size: 28px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.nb-k small { font: 500 11.5px/1 var(--f-mono); color: var(--ink-2); }
.nb-c.is-empty .nb-k b { color: var(--ink-2); font-weight: 500; }
.nb-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 11.5px; color: var(--ink-2); }
.nb-meta span { display: inline-flex; align-items: center; gap: 5px; }
.nb-ring { flex: none; width: 10px; height: 10px; border: 1.5px dashed var(--ink-2); border-radius: 50%; }
.nb-ps { display: flex; flex-wrap: wrap; gap: 4px; align-content: flex-start; min-width: 0; }
.nb-none { margin: 0; font-size: var(--fs-sm, 13px); color: var(--ink-2); }
.nb-act { margin: auto 0 0; padding-top: 8px; border-top: 1px solid color-mix(in oklab, var(--ink) 12%, transparent); font-size: 12px; line-height: 1.4; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nb-dots, .nb-list { display: none; }

/* person chip (matrix, lists) and the box badge (nbBadge) */
.nb-p { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; min-height: 26px; padding: 2px 9px 2px 7px; border: 1px solid color-mix(in oklab, var(--ink) 14%, transparent); border-radius: var(--r-pill, 999px);
  background: var(--surface); font: inherit; font-size: 12.5px; line-height: 1.2; color: var(--ink); text-align: left; cursor: pointer; transition: border-color var(--t-fast, .12s), box-shadow var(--t-fast, .12s); }
.nb-p:hover { border-color: var(--accent); box-shadow: var(--e-1); }
.nb-p:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.nb-p.sug { border: 1.5px dashed var(--ink-2); background: color-mix(in oklab, var(--surface) 55%, transparent); }
.nb-p.off { border-color: transparent; background: transparent; color: var(--ink-2); box-shadow: none; }
.nb-p.off .nb-pd { opacity: .45; }
.nb-p.sample { cursor: default; pointer-events: none; }
.nb-pd { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.nb-p.sug .nb-pd { background: transparent; box-shadow: inset 0 0 0 2px var(--c); }
.nb-pn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.nb-mv { flex: none; font: 500 11px/1 var(--f-mono); color: var(--ink-2); white-space: nowrap; }
.nb-pv { flex: none; padding: 2px 4px; border-radius: 3px; background: color-mix(in oklab, var(--warn) 30%, transparent); font-size: 10.5px; line-height: 1; color: var(--ink); }
.nb-more { min-height: 26px; padding: 2px 10px; border: 1px solid var(--border-strong); border-radius: var(--r-pill, 999px); background: var(--surface); font: 600 12px/1.2 var(--f-sans); color: var(--ink-2); cursor: pointer; }
.nb-more:hover { color: var(--ink); border-color: var(--accent); }
.nb-badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 2px 2px; border-radius: var(--r-sm, 6px); background: var(--nb); font-size: var(--fs-sm, 13px); font-weight: 500; color: var(--ink); white-space: nowrap; }
.nb-badge b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--r-xs, 4px); background: var(--nbs); color: var(--nbo); font: 600 11.5px/1 var(--f-mono); }
.nb-badge.sug { outline: 1.5px dashed var(--ink-2); outline-offset: -1.5px; }
.nb-badge small { font: 500 11px/1 var(--f-mono); color: var(--ink-2); }
.nb-badge.out { padding: 2px 8px; border: 1px dashed var(--axis); background: none; color: var(--ink-2); }

/* people: out of the matrix */
.nb-out { display: grid; gap: 16px; }
.nb-og { display: grid; gap: 6px; }
.nb-oh { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 2px 8px 2px 0; border: 0; border-radius: var(--r-sm, 6px); background: none; font: inherit; font-size: var(--fs-md, 14px); color: var(--ink); }
button.nb-oh { cursor: pointer; }
button.nb-oh:hover b { text-decoration: underline; text-underline-offset: 3px; }
.nb-oh .nb-tot { padding: 3px 8px; border-radius: var(--r-pill, 999px); background: var(--surface-2); }
.nb-oh.on .nb-tot { background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent); }

/* people: movement since the previous cycle */
.nb-msum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.nb-ms { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-md, 8px); background: var(--surface);
  font: inherit; color: var(--ink); text-align: left; cursor: pointer; transition: border-color var(--t-fast, .12s), box-shadow var(--t-fast, .12s); }
.nb-ms:hover { border-color: color-mix(in oklab, var(--ink) 26%, transparent); box-shadow: var(--e-1); }
.nb-ms.on { border-color: var(--accent); background: var(--accent-wash); box-shadow: 0 0 0 1px var(--accent); }
.nb-ms:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nb-msg { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); font-size: 18px; font-weight: 600; color: var(--ink); }
.nb-ms-up .nb-msg { background: color-mix(in oklab, var(--o3) 22%, var(--surface)); }
.nb-ms-down .nb-msg { background: color-mix(in oklab, var(--a2) 26%, var(--surface)); }
.nb-mt { font-size: var(--fs-sm, 13px); color: var(--ink-2); }
.nb-mt b { margin-right: 2px; font-size: 22px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.nb-ms small { font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.nb-mrow { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px 32px; align-items: start; }
.nb-mlists { display: grid; gap: 14px; min-width: 0; }
.nb-mlists > *, .nb-out .nb-og { min-width: 0; }   /* a very long name ellipsizes in its chip instead of widening the page */
.nb-flw { display: grid; gap: 8px; min-width: 0; }
/* alluvial: previous box → box now */
.nb-skh { display: flex; justify-content: space-between; font: 500 10.5px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nb-sko { position: relative; display: grid; grid-template-columns: minmax(96px, 30%) minmax(48px, 1fr) minmax(96px, 30%); }
.nb-skc { position: relative; min-width: 0; }
.nb-skn { position: absolute; left: 0; right: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; align-items: center; min-height: 24px; padding: 0 8px 0 2px; border: 0; border-radius: var(--r-sm, 6px);
  background: none; font: inherit; font-size: 12.5px; color: var(--ink); text-align: left; transform: translateY(-50%); cursor: pointer; }
.nb-skc.r .nb-skn { grid-template-columns: auto minmax(0, 1fr) auto; padding: 0 2px 0 8px; }
.nb-skn::after { content: ""; position: absolute; top: 50%; width: 6px; height: max(var(--h), 6px); border-radius: 2px; background: var(--nbs); transform: translateY(-50%); }
.nb-skc.l .nb-skn::after { right: -6px; }
.nb-skc.r .nb-skn::after { left: -6px; }
.nb-skn .nb-n { min-width: 20px; height: 20px; padding: 0 4px; font-size: 11px; }
.nb-skt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.nb-skn:hover .nb-skt { text-decoration: underline; text-underline-offset: 2px; }
.nb-skn.on { background: var(--accent-wash); box-shadow: inset 0 0 0 1.5px var(--accent); }
.nb-skn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.nb-sk { display: block; width: 100%; overflow: visible; }
.nb-fa { cursor: pointer; outline: none; }
.nb-fa path { fill: var(--dot-muted); fill-opacity: .5; transition: fill-opacity var(--t-fast, .12s); }
.nb-fa.up path { fill: var(--o3); fill-opacity: .55; }
.nb-fa.down path { fill: var(--a2); fill-opacity: .6; }
.nb-fa.same path { fill: var(--ink-2); fill-opacity: .3; }
.nb-fa:hover path, .nb-fa:focus-visible path { fill-opacity: .9; stroke: var(--ink); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.nb-fa.on path { fill-opacity: .85; stroke: var(--ink); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.nb-fa.off path { fill-opacity: .14; }
.nb-flgd { font-size: 12px; }
.nb-fsw { display: inline-block; width: 16px; height: 10px; border-radius: 2px; background: color-mix(in oklab, var(--dot-muted) 60%, transparent); }
.nb-fsw.up { background: color-mix(in oklab, var(--o3) 60%, transparent); }
.nb-fsw.down { background: color-mix(in oklab, var(--a2) 65%, transparent); }
.nb-fsw.same { background: color-mix(in oklab, var(--ink-2) 35%, transparent); }

/* teams: bubbles */
.nb-row { align-items: start; }
.nb-bw { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 6px; }
.nb-byl { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); }
.nb-byl span { display: grid; place-items: center; writing-mode: vertical-rl; transform: rotate(180deg); font: 500 11.5px/1 var(--f-mono); color: var(--ink-2); }
.nb-bf { position: relative; aspect-ratio: 4 / 3; min-height: 250px; }
.nb-bg { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 3px; }
.nb-bgc { position: relative; border-radius: var(--r-md, 8px); background: var(--nb); }
/* box titles stay legible above bubbles and labels (V01): a tinted chip, clicks pass through to the bubble */
.nb-bgc span { position: absolute; z-index: 2; top: 5px; left: 6px; max-width: calc(100% - 12px); padding: 1px 4px; border-radius: var(--r-xs, 4px); background: color-mix(in oklab, var(--nb) 88%, transparent);
  font-size: 11px; line-height: 1.2; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.nb-bgc b { font: 600 11px/1 var(--f-mono); color: var(--ink); }
.nb-bgc em { font-style: normal; }
.nb-bxl { grid-column: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; text-align: center; font: 500 11.5px/1.3 var(--f-mono); color: var(--ink-2); }
.nb-bxl small { display: block; font: 10.5px/1.3 var(--f-sans); color: var(--muted); }
.nb-xt2 { text-align: center; }
.nb-trail { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.nb-trail line { stroke-width: 2px; stroke-dasharray: 3 3; stroke-linecap: round; }
.nb-bp { position: absolute; width: 10px; height: 10px; border: 2px solid var(--c); border-radius: 50%; background: var(--surface); transform: translate(-50%, -50%); pointer-events: none; }
.nb-bub { position: absolute; display: grid; place-items: center; width: var(--d); height: var(--d); padding: 0; border: 2px solid var(--surface); border-radius: 50%; background: var(--c); color: var(--o);
  font: 600 12px/1 var(--f-sans); font-variant-numeric: tabular-nums; transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))); cursor: pointer; box-shadow: var(--e-1); transition: box-shadow var(--t-fast, .12s); }
.nb-bub.sug { outline: 1.5px dashed var(--ink-2); outline-offset: 2px; }
.nb-bub:hover { z-index: 3; box-shadow: 0 0 0 2px var(--ink), var(--e-2); }
.nb-bub:focus-visible { z-index: 3; outline: 2px solid var(--accent); outline-offset: 3px; }
.nb-bub.on { z-index: 2; box-shadow: 0 0 0 3px var(--ink), var(--e-2); }
.nb-bub.off { background: color-mix(in oklab, var(--c) 30%, var(--surface)); color: var(--ink); box-shadow: none; }
.nb-bl { position: absolute; z-index: 1; left: calc(var(--x) + var(--dx, 0px) + var(--r) + 6px); top: calc(var(--y) + var(--dy, 0px)); max-width: 48%; padding: 1px 5px; border-radius: var(--r-xs, 4px); transform: translateY(-50%);
  background: color-mix(in oklab, var(--surface) 84%, transparent); font-size: 12px; font-weight: 500; line-height: 1.3; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.nb-bl.flip { left: auto; right: calc(100% - var(--x) - var(--dx, 0px) + var(--r) + 6px); }
.nb-avg { position: absolute; z-index: 1; width: 12px; height: 12px; border: 2px solid var(--ink); background: var(--surface); transform: translate(-50%, -50%) rotate(45deg); }
.nb-bl.up { left: calc(var(--x) + var(--dx, 0px)); top: calc(var(--y) + var(--dy, 0px) - var(--r) - 3px); transform: translate(-50%, -100%); }
.nb-bl.dn { left: calc(var(--x) + var(--dx, 0px)); top: calc(var(--y) + var(--dy, 0px) + var(--r) + 3px); transform: translate(-50%, 0); }
.nb-avg.nb-key, .nb-ksug, .nb-ktr { position: static; display: inline-block; flex: none; transform: rotate(45deg); width: 9px; height: 9px; }
.nb-ksug { transform: none; width: 12px; height: 12px; border: 1.5px dashed var(--ink-2); border-radius: 50%; }
.nb-ktr { transform: none; width: 16px; height: 0; border-top: 2px dashed var(--ink-2); }
.nb-blg { font-size: 12px; }
.nb-bl.hide { display: none; }
/* L3: a label placed away from its bubble (px left/top set by nbFixLabels) with a leader line; .sm when only a smaller one fits */
.nb-bl::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: var(--c, var(--ink-2)); vertical-align: 1px; }
.nb-bl.far { right: auto; transform: none; }
.nb-bl.sm { font-size: 10.5px; padding: 0 4px; }
.nb-lead { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.nb-lead line { stroke: var(--ink-2); stroke-width: 1.25px; opacity: .9; }
.nb-lead line.off { opacity: .3; }
.nb-hidn { grid-column: 2; margin: 2px 0 0; }
.nb-bl.off { color: var(--ink-2); }
.nb-bl.on { font-weight: 600; }
.nb-tlg { display: flex; flex-wrap: wrap; gap: 6px; }
.nb-tl { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 2px 10px; border: 1px solid var(--border); border-radius: var(--r-pill, 999px); background: var(--surface); font: inherit; font-size: var(--fs-sm, 13px); color: var(--ink); cursor: pointer; }
.nb-tl:hover { border-color: var(--accent); }
.nb-tl.on { border-color: var(--accent); background: var(--accent-wash); }
.nb-tl.none { border-style: dashed; color: var(--ink-2); }
.nb-tl small { font: 500 11px/1 var(--f-mono); color: var(--ink-2); }
/* long team names ellipsize inside the pill instead of wrapping it into a tall capsule (V17) */
.nb-tl { max-width: 100%; min-width: 0; }
.nb-tln { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* teams: top × bottom */
.nb-dv { display: grid; grid-template-columns: minmax(80px, max-content) minmax(0, 1fr); gap: 7px 12px; align-items: center; }
.nb-dvh { display: contents; }
.nb-dvh > div { display: flex; justify-content: space-between; gap: 8px; font: 500 10.5px/1.2 var(--f-mono); letter-spacing: .03em; color: var(--muted); }
.nb-dv > .note { grid-column: 1 / -1; margin-top: 4px; }
.nb-dl { max-width: 200px; padding: 2px 0; border: 0; background: none; font: inherit; font-size: var(--fs-sm, 13px); color: var(--ink-2); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.nb-dl:hover, .nb-dl.on { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.nb-dl.on { font-weight: 600; }
.nb-dt { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); height: 26px; }
.nb-dt::before { content: ""; position: absolute; top: -4px; bottom: -4px; left: 50%; width: 2px; margin-left: -1px; background: var(--axis); }
.nb-dh { position: relative; display: flex; align-items: center; gap: 6px; min-width: 0; }
.nb-dh.bot { justify-content: flex-end; padding-right: 2px; }
.nb-dh.top { padding-left: 2px; }
.nb-dh::after { content: ""; position: absolute; top: 1px; bottom: 1px; border-left: 1.5px dashed var(--ink-2); pointer-events: none; }
.nb-dh.bot::after { right: calc(2px + (100% - 46px) * var(--ref)); }
.nb-dh.top::after { left: calc(2px + (100% - 46px) * var(--ref)); }
.nb-dvb { flex: none; width: calc((100% - 46px) * var(--w)); height: 18px; padding: 0; border: 0; cursor: pointer; transition: filter var(--t-fast, .12s); }
.nb-dvb.bot { border-radius: 4px 0 0 4px; background: color-mix(in oklab, var(--crit) 64%, var(--surface)); }
.nb-dvb.top { border-radius: 0 4px 4px 0; background: color-mix(in oklab, var(--good) 64%, var(--surface)); }
.nb-dvb:disabled { cursor: default; }
.nb-dvb:not(:disabled):hover { filter: brightness(1.1); }
.nb-dvb.on { box-shadow: 0 0 0 2px var(--ink); }
.nb-dvb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* the value sits on a surface chip so the dashed mean line never runs through it (V17) */
.nb-dvv { position: relative; z-index: 1; flex: none; padding: 1px 3px; border-radius: 3px; background: var(--surface); font: 500 11.5px/1 var(--f-mono); color: var(--ink-2); }
.nb-dt.off .nb-dvb { opacity: .35; }

/* teams: team × box table */
.nb-tw { overflow-x: auto; }
table.nb-hm { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: var(--fs-sm, 13px); font-variant-numeric: tabular-nums; }
.nb-hm th { font-weight: 500; color: var(--ink-2); }
.nb-hm thead th { padding: 0 2px 4px; vertical-align: bottom; }
.nb-hm th.nb-grp { padding: 0 4px 5px; border-bottom: 2px solid var(--grid); font: 500 10.5px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: center; }
.nb-hm .nb-tc { position: sticky; left: 0; z-index: 1; min-width: 132px; padding-right: 10px; background: var(--surface); text-align: left; }
.nb-hb { display: grid; justify-items: center; gap: 3px; width: 100%; min-width: 56px; padding: 4px 2px; border: 0; border-radius: var(--r-sm, 6px); background: none; font: inherit; font-size: 11px; line-height: 1.15;
  color: var(--ink-2); text-align: center; overflow-wrap: break-word; hyphens: auto; cursor: pointer; }
.nb-hb .nb-n { min-width: 22px; height: 22px; font-size: 11.5px; }
.nb-hb:hover { background: color-mix(in oklab, var(--ink) 5%, transparent); color: var(--ink); }
.nb-hb.on { background: var(--accent-wash); box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--ink); }
.nb-hb:focus-visible, .nb-rn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.nb-rn { display: inline-flex; align-items: center; gap: 7px; max-width: 220px; padding: 4px 6px 4px 0; border: 0; background: none; font: inherit; font-weight: 500; color: var(--ink); text-align: left; cursor: pointer; }
.nb-rn:hover { text-decoration: underline; text-underline-offset: 2px; }
.nb-hm tr.on .nb-rn { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; }
.nb-hm td { border-radius: var(--r-sm, 6px); text-align: center; }
.nb-hm td.nb-num { padding: 4px 8px; text-align: right; white-space: nowrap; }
.nb-hm td.nb-num b, .nb-hc b { display: block; font-size: var(--fs-md, 14px); font-weight: 600; line-height: 1.15; }
.nb-hm td small { display: block; font: 10.5px/1.2 var(--f-mono); }
.nb-hm td.nb-num small { color: var(--ink-2); }
.nb-hc { min-width: 56px; height: 44px; padding: 3px 4px; cursor: pointer; }
.nb-hc.zero { background: var(--surface-2); color: var(--muted); cursor: default; }
.nb-hc.zero.col { box-shadow: inset 0 0 0 1.5px var(--accent); }
.nb-hc:not(.zero):hover { outline: 2px solid var(--ink); outline-offset: -2px; }
.nb-hc.on { outline: 3px solid var(--ink); outline-offset: -3px; }
.nb-hc:focus-visible, .nb-sh:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.nb-sh { cursor: pointer; }
.nb-sh.top { background: color-mix(in oklab, var(--good) calc(var(--s) * .46), var(--surface)); }
.nb-sh.bot { background: color-mix(in oklab, var(--crit) calc(var(--s) * .46), var(--surface)); }
.nb-hm td.nb-z { color: var(--muted); }
.nb-hm tfoot th, .nb-hm tfoot td { border-top: 2px solid var(--grid); }
.nb-hm tfoot .nb-tc b { color: var(--ink); }

/* guide */
.nb-howg { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px 24px; margin-bottom: 14px; }
.nb-howg h3 { margin-bottom: 6px; font: 500 12px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nb-howg p, .nb-ul { margin: 0 0 6px; font-size: var(--fs-sm, 13px); line-height: 1.5; color: var(--ink-2); }
.nb-ul { padding-left: 18px; }
.nb-gt tr[role="button"] { cursor: pointer; }
.nb-gt tr[role="button"]:hover td { background: var(--accent-wash); }
.nb-gt tr:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

@media (max-width: 1100px) {
  .nb-mrow { grid-template-columns: minmax(0, 1fr); }
  .nb-flw { max-width: 620px; }
  .nb-mx { grid-template-columns: minmax(96px, 120px) repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) { .nb-msum { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .nb-mx { grid-template-columns: 22px repeat(3, minmax(0, 1fr)); gap: 4px; }
  .nb-yl { padding: 0; writing-mode: vertical-rl; transform: rotate(180deg); justify-items: center; text-align: center; }
  .nb-yl small, .nb-yl .nb-tot, .nb-xl .nb-tot { display: none; }
  .nb-corner { visibility: hidden; padding: 0; }
  .nb-xl { padding: 4px 2px; }
  .nb-xl small { font-size: 10.5px; }
  .nb-c { min-height: 0; gap: 6px; padding: 7px 6px 8px; border-radius: var(--r-md, 8px); }
  .nb-ch { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "n k" "nm nm"; gap: 5px 6px; margin: -3px; padding: 3px; }
  .nb-ch .nb-n { grid-area: n; min-width: 20px; height: 20px; padding: 0 4px; font-size: 11px; }
  .nb-nm { grid-area: nm; font-size: 11.5px; hyphens: manual; }
  .nb-ch .nb-k { grid-area: k; display: flex; align-items: baseline; justify-content: flex-end; gap: 4px; }
  .nb-k b { font-size: 22px; }
  .nb-sko { grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr); }
  .nb-c .nb-ps, .nb-c .nb-act, .nb-c .nb-meta, .nb-c .nb-none { display: none; }
  .nb-dots { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; }
  .nb-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
  .nb-dots i.sug { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c); }
  .nb-dots span { font: 500 10px/1 var(--f-mono); color: var(--ink-2); }
  .nb-list { display: grid; gap: 10px; }
  .nb-ls { display: grid; gap: 8px; padding: 10px; border-radius: var(--r-md, 8px); background: var(--nb); }
  .nb-lh { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; }
  .nb-ls .nb-act { padding: 0; border: 0; -webkit-line-clamp: 3; }
  .nb-msum { gap: 6px; }
  .nb-ms { grid-template-columns: 28px minmax(0, 1fr); padding: 8px 10px; }
  .nb-msg { width: 28px; height: 28px; font-size: 15px; }
  .nb-bf { aspect-ratio: 1; min-height: 0; }
  .nb-bgc em { display: none; }
  .nb-bl { font-size: 11px; }
  .nb-bxl small { display: none; }
  .nb-dv { grid-template-columns: minmax(64px, 96px) minmax(0, 1fr); }
  .nb-dl { max-width: 96px; }
  .nb-hm .nb-tc { min-width: 104px; }
  .nb-rn { max-width: 120px; }
}
@media print {
  .nb-bar, .nb-more, .nb-sel .lnk { display: none; }
  .nb-c, .nb-ls, .nb-ms { break-inside: avoid; }
}
