/* Command centre: layout, shell, pages and charts. Components are in /ds/ui.css, colours in /ds/tokens.css. */

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.side { position: sticky; top: 0; z-index: 30; display: flex; flex-direction: column; gap: 8px; height: 100vh; height: 100dvh; padding: 20px 12px 16px; background: var(--page); border-right: 1px solid var(--line); overflow-y: auto; }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 0 8px 12px 10px; }
.brandlink { display: inline-flex; align-items: center; gap: 10px; border-radius: var(--r-sm); color: var(--text); font-size: var(--fs-base); font-weight: 800; letter-spacing: -.01em; text-decoration: none; }
.side-x { display: none; }
.nav { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.nav-h { margin: 20px 12px 6px; color: var(--muted); font-size: var(--fs-xs); font-weight: 700; }
.nav-list { display: flex; flex-direction: column; gap: 2px; }
.nav-i { position: relative; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: var(--r-md); color: var(--muted); font-size: var(--fs-md); font-weight: 700; text-decoration: none; transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.nav-i:hover { color: var(--text); background: var(--panel); }
.nav-i[aria-current="page"] { color: var(--text); }
.nav-i[aria-current="page"]::before { content: ''; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 2px; border-radius: 0 2px 2px 0; background: var(--text); }
.side-foot { display: flex; flex-direction: column; gap: 12px; padding: 16px 4px 0; border-top: 1px solid var(--line); }
.me { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0 4px; }
.me-a { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--panel); font-size: var(--fs-sm); font-weight: 800; }
.me-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.me-n { overflow: hidden; font-size: var(--fs-md); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.me-r { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.side-theme { display: flex; flex-direction: column; gap: 6px; }
.side-cap { padding: 0 4px; color: var(--muted); font-size: var(--fs-xs); font-weight: 700; }
.side-out { justify-content: flex-start; padding: 0 8px; }
.mbar, .scrim { display: none; }

.main { min-width: 0; outline: none; }
.page { max-width: 1480px; margin: 0 auto; padding: 0 32px 56px; }
.pb-sentinel { height: 1px; }
.pagebar { position: sticky; top: 0; z-index: 15; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin: 0 -32px 8px; padding: 23px 32px 20px; background: var(--page); border-bottom: 1px solid transparent; transition: border-color var(--t-fast) var(--ease); }
.pagebar.is-stuck { border-bottom-color: var(--line); }
.pb-titles { min-width: 0; }
.pb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pb-title { font-size: var(--fs-xl); font-weight: 800; line-height: 1.25; letter-spacing: -.015em; outline: none; }
.pb-sub { min-height: 20px; margin-top: 4px; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.pb-side, .pb-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pb-rangebox { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pb-brand .input { width: auto; min-width: 150px; }
.pb-actions { display: flex; gap: 8px; }
.pb-actions:empty { display: none; }
.page-in.is-enter { animation: page-in var(--t-fast) var(--ease); }
@keyframes page-in { from { opacity: 0; } }
.is-stale { opacity: .5; pointer-events: none; transition: opacity var(--t-fast) var(--ease); }
.app--boot .pagebar { min-height: 96px; }
.login-host { display: grid; min-height: 100vh; min-height: 100dvh; }
.noscript { padding: 24px; }

@media (max-width: 1023.98px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .mbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 4px; height: 56px; padding: 0 16px 0 8px; background: var(--page); border-bottom: 1px solid var(--line); }
  .side { position: fixed; inset: 0 auto 0 0; z-index: 40; width: min(300px, 86vw); height: auto; visibility: hidden; transform: translateX(-100%); box-shadow: var(--shadow-layer); transition: transform var(--t-med) var(--ease), visibility 0s linear var(--t-med); }
  .side.is-open { visibility: visible; transform: none; transition: transform var(--t-med) var(--ease); }
  .side-x { display: inline-flex; }
  .scrim { position: fixed; inset: 0; z-index: 35; display: block; background: var(--scrim); }
  .pagebar { position: static; }
  .app--boot .side { display: none; }
}
@media (max-width: 719.98px) {
  .page { padding: 0 16px 40px; }
  .pagebar { margin: 0 -16px 4px; padding: 20px 16px 16px; }
  .pb-side, .pb-controls { width: 100%; }
  .pb-rangebox { width: 100%; }
  .pb-range { flex: 1; }
  .pb-range .seg-b { flex: 1; padding: 0 6px; }
  .pb-custom .btn-l { display: none; }
  .pb-custom { width: var(--h-control); padding: 0; }
  .pb-custom.is-on .btn-l { display: inline; }
  .pb-custom.is-on { width: auto; padding: 0 12px; }
  .card { --pad: 16px; padding: 16px var(--pad) 20px; }
}

/* ---------- grid ---------- */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.kpis--5, .kpis--10 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpis--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1279.98px) {
  .span-8, .span-4 { grid-column: span 12; }
  .kpis--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis--10 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis--12 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1099.98px) { .span-6 { grid-column: span 12; } .span-3 { grid-column: span 6; } }
@media (max-width: 899.98px) {
  .kpis, .kpis--5, .kpis--12 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .kpis > :last-child:nth-child(odd) { grid-column: span 2; }
}
@media (max-width: 719.98px) {
  .grid { gap: 16px; }
  .kpi { padding: 14px 16px; }
  .kpi-value { font-size: 26px; }
  .kpi-go { top: 14px; right: 12px; }
}

/* ---------- charts ---------- */
.chart { position: relative; width: 100%; }
.chart-svg { display: block; overflow: visible; font-family: var(--font); }
.chart-svg .gl { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart-svg .base { stroke: var(--line-strong); stroke-width: 1; shape-rendering: crispEdges; }
.chart-svg .axis { fill: var(--muted); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-svg .ln, .spark .ln { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark .ln--thin { stroke-width: 1.5; }
.chart-svg .dot { stroke: var(--panel); stroke-width: 2; }
.chart-svg .hl { fill: var(--panel-2); }
.chart-svg .hit { fill: transparent; outline: none; }
.chart-svg .hit[role="button"] { cursor: pointer; }
.chart-svg .hit:focus-visible { stroke: var(--focus); stroke-width: 2; }
.chart-svg .mk { stroke: var(--text); stroke-width: 1; shape-rendering: crispEdges; }
.chart-svg .mk-halo { stroke: var(--panel); stroke-width: 5; }
.chart-svg .mk-l, .chart-svg .end-l { fill: var(--text); font-size: 12px; font-weight: 700; }
.sf-1 { fill: var(--c1); } .sf-2 { fill: var(--c2); } .sf-3 { fill: var(--c3); } .sf-4 { fill: var(--c4); } .sf-5 { fill: var(--c5); } .sf-6 { fill: var(--c6); }
.ss-1 { stroke: var(--c1); } .ss-2 { stroke: var(--c2); } .ss-3 { stroke: var(--c3); } .ss-4 { stroke: var(--c4); } .ss-5 { stroke: var(--c5); } .ss-6 { stroke: var(--c6); }
.sk-1 { background: var(--c1); } .sk-2 { background: var(--c2); } .sk-3 { background: var(--c3); } .sk-4 { background: var(--c4); } .sk-5 { background: var(--c5); } .sk-6 { background: var(--c6); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -6px 0 14px; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend--sm { margin: 0; font-size: var(--fs-xs); }
.key { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 2px; }
.key--line { width: 16px; height: 2px; border-radius: 1px; }
.key--ghost { width: 2px; height: 12px; border-radius: 1px; background: var(--muted); }
.key--none { width: 10px; height: 2px; }
.legend-host:empty { display: none; }
.foot-note { margin-top: 14px; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }

/* Horizontal bars: label, bar, value. The previous period is a thin tick. */
.hb { display: flex; flex-direction: column; gap: 2px; margin: 0 -8px; }
.hb-row { display: grid; grid-template-columns: minmax(104px, 36%) minmax(0, 1fr) minmax(48px, auto); align-items: center; gap: 12px; width: 100%; min-height: 36px; padding: 4px 8px; border: 0; border-radius: var(--r-sm); background: none; color: var(--text); font-size: var(--fs-md); text-align: left; }
button.hb-row { transition: background-color var(--t-fast) var(--ease); }
button.hb-row:hover { background: var(--panel-2); }
.hb-l { font-weight: 600; line-height: 1.3; }
.hb-t { position: relative; height: 16px; }
.hb-b { position: absolute; left: 0; top: 3px; height: 10px; min-width: 2px; border-radius: 0 3px 3px 0; }
.hb-g { position: absolute; top: 0; width: 2px; height: 16px; margin-left: -1px; border-radius: 1px; background: var(--muted); }
.hb-v { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.split { display: inline-flex; flex: none; gap: 2px; width: 64px; height: 6px; overflow: hidden; border-radius: 3px; vertical-align: middle; }
.split-p { height: 100%; }
.split--lg { width: 100%; height: 10px; border-radius: 3px; }

/* Heatmap: one hue at stepped opacities. */
.hm { display: grid; grid-template-columns: 40px repeat(24, minmax(0, 1fr)); gap: 3px; }
.hm--v { grid-template-columns: 48px repeat(7, minmax(0, 1fr)); }
.hm-x { padding-bottom: 2px; color: var(--muted); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hm--v .hm-x { text-align: center; }
.hm-y { display: flex; align-items: center; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; font-variant-numeric: tabular-nums; }
.hm-c { position: relative; min-width: 0; height: 28px; padding: 0; border: 0; border-radius: 4px; background: var(--panel-2); cursor: pointer; }
.hm--v .hm-c { height: 24px; }
.hm-c::before, .hm-s::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--c2); opacity: var(--o, 0); }
.hm-c:hover { outline: 1px solid var(--text); outline-offset: 0; }
.hm-c:focus-visible { z-index: 1; outline: 2px solid var(--focus); outline-offset: 2px; }
.hm-c.l1, .hm-s.l1 { --o: .16; } .hm-c.l2, .hm-s.l2 { --o: .3; } .hm-c.l3, .hm-s.l3 { --o: .45; }
.hm-c.l4, .hm-s.l4 { --o: .62; } .hm-c.l5, .hm-s.l5 { --o: .8; } .hm-c.l6, .hm-s.l6 { --o: 1; }
.hm-key { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 16px; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.hm-steps { display: inline-flex; gap: 3px; }
.hm-s { position: relative; width: 16px; height: 12px; border-radius: 3px; background: var(--panel-2); }
.hm-note { margin-left: auto; }
@media (max-width: 719.98px) { .hm-note { flex-basis: 100%; margin-left: 0; } }

/* ---------- Live now ---------- */
.lc { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); }
.lc-l { color: var(--muted); font-size: var(--fs-sm); font-weight: 700; }
.lc-v { margin: 2px 0; font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lc-s { overflow: hidden; color: var(--muted); font-size: var(--fs-sm); text-overflow: ellipsis; white-space: nowrap; }
.ttl-n { display: inline-flex; align-items: center; gap: 8px; }
.live-st { display: inline-flex; align-items: center; gap: 8px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.live-dot[data-s="ok"] { background: var(--success); }
.live-dot[data-s="err"] { background: var(--warning); }
.lv-list, .ho-list { margin: 0 calc(-1 * var(--pad)) -8px; }
.lv-li { border-top: 1px solid var(--line); }
.lv-li:first-child { border-top-color: transparent; }
.lv-li.is-new { animation: row-in var(--t-med) var(--ease) both; }
.lv-li.is-leaving { overflow: hidden; opacity: 0; transition: opacity var(--t-med) var(--ease), height var(--t-fast) var(--ease) var(--t-med), border-color var(--t-fast) var(--ease) var(--t-med); }
.lv-li.is-gone { height: 0 !important; border-top-color: transparent; }
@keyframes row-in { from { opacity: 0; transform: translateY(8px); } }
.lv-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto 84px; align-items: center; gap: 16px; padding: 12px var(--pad); color: var(--text); text-decoration: none; transition: background-color var(--t-fast) var(--ease); }
a.lv-row:hover { background: var(--panel-2); }
.lv-row:focus-visible, .ho:focus-visible, .uh-i:focus-visible, .ci:focus-visible { outline-offset: -2px; }
.lv-row--skel { grid-template-columns: 24px minmax(0, 1fr); }
.lv-dev { display: grid; place-items: center; color: var(--muted); }
.lv-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lv-top { order: 2; display: flex; align-items: baseline; gap: 8px; min-width: 0; color: var(--muted); font-size: var(--fs-sm); }
.lv-page { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.lv-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-text { order: 1; overflow: hidden; font-size: var(--fs-md); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.lv-meta { display: flex; align-items: center; gap: 8px; }
.lv-time { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.lv-since { font-size: var(--fs-md); font-weight: 800; }
.lv-msgs { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }
.ho { display: flex; flex-direction: column; gap: 8px; padding: 14px var(--pad); color: var(--text); text-decoration: none; transition: background-color var(--t-fast) var(--ease); }
.ho:hover { background: var(--panel-2); }
.ho-top-in { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ho-time { color: var(--muted); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.ho-time strong { color: var(--text); font-weight: 800; }
.ho-sum > span { display: flex; flex-direction: column; gap: 2px; }
.ho-l1 { font-size: var(--fs-md); font-weight: 700; line-height: 1.4; }
.ho-l2 { color: var(--muted); font-size: var(--fs-sm); line-height: 1.4; }
.ho-tags-in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
@media (max-width: 719.98px) {
  .lc { padding: 14px 16px; }
  .lc-v { font-size: 32px; }
  .lc-s { white-space: normal; }
  .lv-row { grid-template-columns: 20px minmax(0, 1fr) auto; grid-template-areas: "dev main time" ". meta meta"; row-gap: 8px; column-gap: 12px; }
  .lv-dev { grid-area: dev; align-self: start; padding-top: 2px; }
  .lv-main { grid-area: main; }
  .lv-meta { grid-area: meta; }
  .lv-time { grid-area: time; align-self: start; }
}

/* ---------- History ---------- */
.after { display: flex; flex-direction: column; gap: 20px; }
.sub-h { margin-bottom: 10px; color: var(--muted); font-size: var(--fs-sm); font-weight: 700; }
.after-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.after-cols--one { grid-template-columns: minmax(0, 1fr); }
.dev { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.dev .split { width: 120px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.st { position: relative; display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: none; color: var(--text); text-align: left; }
.st--btn { transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.st--btn:hover { background: var(--panel-2); border-color: var(--line-strong); }
.st-l { color: var(--muted); font-size: var(--fs-sm); font-weight: 700; }
.st-v { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.st-s { color: var(--muted); font-size: var(--fs-sm); }
.st-go { position: absolute; top: 14px; right: 12px; color: var(--muted); }
.fb-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); }
.big-v { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.big-u { color: var(--muted); font-size: var(--fs-md); font-weight: 700; }
.big-s { flex-basis: 100%; color: var(--muted); font-size: var(--fs-sm); }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.thumb { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: none; color: var(--text); font-size: var(--fs-sm); font-weight: 700; font-variant-numeric: tabular-nums; }
.thumb:hover { background: var(--panel-2); }
.uh, .qa, .ua { margin: 0 calc(-1 * var(--pad)) -8px; }
.uh li + li, .qa li + li, .ua li + li { border-top: 1px solid var(--line); }
.uh-i { display: flex; flex-direction: column; gap: 4px; padding: 12px var(--pad); color: var(--text); text-decoration: none; }
.uh-i:hover, .qa-i:hover, .ua-i:hover { background: var(--panel-2); }
.uh-q { font-size: var(--fs-md); font-weight: 700; }
.uh-a { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: var(--fs-sm); -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.uh-m { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 2px; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.uh-src { display: inline-flex; align-items: center; gap: 4px; }
.chg { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-variant-numeric: tabular-nums; }
.share, .fe { display: inline-flex; align-items: center; gap: 10px; }
.td-spark { width: 128px; }
.qa-i, .ua-i { display: grid; align-items: center; gap: 16px; width: 100%; padding: 12px var(--pad); border: 0; background: none; color: var(--text); text-align: left; transition: background-color var(--t-fast) var(--ease); }
.qa-i { grid-template-columns: 22px minmax(0, 1fr) auto; }
.qa-r { color: var(--muted); font-size: var(--fs-sm); font-weight: 800; font-variant-numeric: tabular-nums; }
.qa-m, .ua-m { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.qa-t, .ua-t { font-size: var(--fs-md); font-weight: 700; }
.qa-x { display: flex; flex-wrap: wrap; gap: 2px 14px; color: var(--muted); font-size: var(--fs-sm); }
.qa-n, .ua-n { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-variant-numeric: tabular-nums; }
.qa-n strong, .ua-n strong { font-size: var(--fs-base); font-weight: 800; }
.qa-fe { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.ua-i { grid-template-columns: minmax(0, 1fr) auto 64px; }
.ua-t::before { content: '"'; } .ua-t::after { content: '"'; }
.ua-v { color: var(--muted); font-size: var(--fs-sm); }
.ua-tags { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 8px; }
.ua-last { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }
.ua-n { gap: 0; }
.ua-n span { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.lg-share { margin-bottom: 18px; }
.lg-cap { margin-top: 8px; color: var(--muted); font-size: var(--fs-sm); }
.lg-t td { width: 36%; }
.lg-b { display: flex; flex-direction: column; gap: 8px; width: calc(100% + 16px); margin: -6px -8px; padding: 6px 8px; border: 0; border-radius: var(--r-sm); background: none; color: var(--text); text-align: left; }
.lg-b:hover { background: var(--panel-2); }
.lg-v { display: flex; align-items: baseline; gap: 8px; font-size: var(--fs-base); font-weight: 800; font-variant-numeric: tabular-nums; }
.lg-s { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.lg-bar { position: relative; display: block; height: 6px; overflow: hidden; border-radius: 3px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.lg-f { position: absolute; inset: 0 auto 0 0; border-radius: 3px; }
@media (max-width: 899.98px) { .stats, .after-cols { grid-template-columns: minmax(0, 1fr); } .after-cols { gap: 20px; } }
@media (max-width: 719.98px) {
  .fb-top { grid-template-columns: minmax(0, 1fr); }
  .qa-i { grid-template-columns: 18px minmax(0, 1fr); }
  .qa-n { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
  .ua-i { grid-template-columns: minmax(0, 1fr) auto; }
  .ua-tags { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .hb-row { grid-template-columns: minmax(88px, 38%) minmax(0, 1fr) auto; gap: 10px; }
}

/* ---------- Help centre ---------- */
.hq, .art { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hq-t { font-weight: 700; }
.art-t { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 700; text-decoration: none; }
.art-t:hover { text-decoration: underline; text-underline-offset: 3px; }
.art-t svg { color: var(--muted); }
.votes { display: inline-flex; align-items: center; gap: 4px; }
.votes svg { color: var(--muted); }
.votes svg + svg, .votes :nth-child(3) { margin-left: 6px; }

/* ---------- Conversations ---------- */
.cv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.cv-search { flex: 1 1 260px; }
.cv-search input[type="search"] { font-size: var(--fs-md); }
.cv-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cv-filters .select-i { min-width: 136px; }
.cv-ho { display: flex; align-items: center; gap: 8px; margin-left: 4px; }
.cv-ho-l { color: var(--muted); font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; }
.cv-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.cv { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); align-items: start; gap: 24px; margin-top: 4px; }
.cv-listpane { overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); transition: opacity var(--t-fast) var(--ease); }
.cv-count { padding: 12px 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: var(--fs-sm); }
.cv-count strong { color: var(--text); font-weight: 800; }
.cv-list > li + li { border-top: 1px solid var(--line); }
.ci { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px 20px; color: var(--text); text-decoration: none; transition: background-color var(--t-fast) var(--ease); }
a.ci:hover { background: var(--panel-2); }
.ci[aria-current="true"] { background: var(--panel-2); }
.ci[aria-current="true"]::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 2px; background: var(--text); }
.ci--skel { gap: 10px; }
.ci-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.ci-time { font-variant-numeric: tabular-nums; }
.ci-fb { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.ci-v { display: inline-flex; color: var(--muted); }
.ci-p { display: -webkit-box; overflow: hidden; font-size: var(--fs-md); font-weight: 700; line-height: 1.45; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.ci-m { color: var(--muted); font-size: var(--fs-sm); }
.ci-m mark { background: none; color: var(--text); font-weight: 800; text-decoration: underline 2px var(--c2); text-underline-offset: 3px; }
.ci-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ci-topic { color: var(--muted); font-size: var(--fs-xs); font-weight: 700; }
.ci-ho { color: var(--muted); font-size: var(--fs-xs); }
.cv-more { width: calc(100% - 40px); margin: 12px 20px 16px; }
.cv-detail { position: sticky; top: calc(var(--pb-h, 0px) + 8px); max-height: calc(100vh - var(--pb-h, 0px) - 32px); overflow: auto; overscroll-behavior: contain; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); }
.tr-back { display: none; }
@media (max-width: 1099.98px) {
  .cv { grid-template-columns: minmax(0, 1fr); }
  .cv.has-open .cv-listpane, .cv-page.is-open .cv-bar, .cv-page.is-open .cv-chips { display: none; }
  .cv:not(.has-open) .cv-detail { display: none; }
  .cv-detail { position: static; max-height: none; overflow: visible; }
  .tr-back { display: inline-flex; }
}
@media (max-width: 719.98px) {
  .cv-filters { width: 100%; }
  .cv-filters .field--select { flex: 1 1 140px; }
  .cv-filters .select-i { min-width: 0; }
  .cv-ho { margin-left: 0; }
  .cv-export { width: 100%; }
  .ci, .cv-count { padding-left: 16px; padding-right: 16px; }
}

/* Transcript, styled like the chat widget */
.tr { display: flex; flex-direction: column; }
.tr-head { position: sticky; top: 0; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 24px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.tr-back { margin: -6px 0 2px -10px; }
.tr-title { font-size: var(--fs-lg); font-weight: 800; line-height: 1.35; outline: none; overflow-wrap: anywhere; }
.tr-meta { color: var(--muted); font-size: var(--fs-sm); }
.tr-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tr-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.tr-log { display: flex; flex-direction: column; gap: 16px; padding: 20px 24px 28px; }
.tr--skel { gap: 12px; padding: 24px; }
.tr--skel .tr-log { padding: 16px 0; }
.sk-u { align-self: flex-end; }
.m { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; max-width: 86%; }
.m--user { align-self: flex-end; align-items: flex-end; }
.m--sys { align-self: stretch; max-width: none; }
.m-name { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: var(--fs-xs); font-weight: 700; }
.bub { padding: 10px 14px; border-radius: 16px; font-size: var(--fs-md); line-height: 1.55; overflow-wrap: anywhere; }
.bub > * + * { margin-top: 8px; }
.bub ul { padding-left: 20px; list-style: disc; }
.bub ol { padding-left: 20px; list-style: decimal; }
.bub li + li { margin-top: 4px; }
.bub li::marker { color: var(--muted); }
.bub strong { font-weight: 800; }
.bub a { color: inherit; text-underline-offset: 2px; }
.m--user .bub { background: var(--text); color: var(--page); border-bottom-right-radius: 6px; }
.m--bot .bub { background: var(--field); border: 1px solid var(--line); border-top-left-radius: 6px; }
.m--agent .bub { background: var(--line); border-top-left-radius: 6px; }
.m--hand .bub { border-left: 3px solid var(--text); }
.m--greet .bub { color: var(--muted); }
.m-at { color: var(--muted); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.m-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.m-vote { display: inline-flex; align-items: center; gap: 4px; color: var(--text); font-weight: 700; }
.src { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.src-c { display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 7px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none; transition: border-color var(--t-fast) var(--ease); }
.src-c:hover { border-color: var(--line-strong); }
.src-i { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 6px; background: var(--page); color: var(--muted); }
.src-t { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.3; }
.src-t b { overflow: hidden; font-size: var(--fs-sm); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.src-t small { color: var(--muted); font-size: var(--fs-xs); }
.src-x { color: var(--muted); }
.sys { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: var(--fs-sm); }
.hob { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line-strong); border-left: 3px solid var(--text); border-radius: var(--r-lg); }
.hob-t { display: flex; align-items: center; gap: 8px; font-size: var(--fs-md); font-weight: 800; }
.hob-sum p:first-child { font-weight: 700; }
.hob-sum p + p { margin-top: 2px; color: var(--muted); font-size: var(--fs-sm); }
.hob-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hob-fb { color: var(--muted); font-size: var(--fs-sm); }
.tl { display: flex; flex-direction: column; }
.tl-i { position: relative; display: grid; grid-template-columns: 16px 44px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 28px; font-size: var(--fs-sm); }
.tl-i:not(:last-child)::before { content: ''; position: absolute; left: 7.5px; top: 18px; height: 20px; width: 1px; background: var(--line-strong); }
.tl-dot { justify-self: center; width: 9px; height: 9px; border: 2px solid var(--text); border-radius: 50%; background: var(--panel); }
.tl-i:last-child .tl-dot { background: var(--text); }
.tl-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-l { font-weight: 600; }
@media (max-width: 1099.98px) { .tr-head { position: static; } }
@media (max-width: 719.98px) {
  .tr-head { padding: 16px; }
  .tr-log { padding: 16px 16px 24px; }
  .m { max-width: 92%; }
}

/* ---------- sign in ---------- */
.login { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 48px 16px; outline: none; }
.login-card { width: min(420px, 100%); padding: 36px 32px 32px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); }
.login-mark { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--page); color: var(--text); }
.login-t { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.015em; text-align: center; }
.login-x { margin-top: 6px; color: var(--muted); font-size: var(--fs-md); text-align: center; overflow-wrap: anywhere; }
.login-form { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.login-form .btn--primary { margin-top: 8px; }
.login-alt { display: flex; justify-content: center; margin-top: 14px; }
.login-foot { color: var(--muted); font-size: var(--fs-sm); text-align: center; }
.field--code .input { height: 56px; padding: 0 12px 0 calc(12px + .45em); font-size: 26px; font-weight: 800; letter-spacing: .45em; text-align: center; font-variant-numeric: tabular-nums; }
.alert .mono { font-weight: 800; }
@media (max-width: 719.98px) { .login-card { padding: 28px 20px 24px; } }

/* ---------- custom range popover ---------- */
.custom { display: flex; flex-direction: column; gap: 14px; width: 300px; max-width: 100%; }
.custom-t { font-size: var(--fs-md); font-weight: 800; }
.custom-f { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.custom-a { display: flex; justify-content: flex-end; gap: 8px; }

/* Admin > Brands and connector: name and colours */
.colour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s3) var(--s4); }
.brand-look .field { position: relative; }
.brand-look .swatch { position: absolute; right: 10px; bottom: 11px; width: 18px; height: 18px; border-radius: 4px; border: 1px solid var(--line-strong); pointer-events: none; }
.brand-look .field:has(.field-err:not([hidden])) .swatch { bottom: auto; top: 34px; }

/* Admin > Users: a person's access. Presets as radio cards, then each part with its level. */
.dialog--wide { width: min(760px, calc(100vw - 32px)); }
.acc { display: grid; gap: var(--s5); }
.acc-who { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s3) var(--s4); }
.acc-set { display: grid; gap: var(--s3); min-width: 0; margin: 0; padding: 0; border: 0; }
.acc-set > legend { margin-bottom: var(--s3); padding: 0; }
.acc-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--s2); }
.acc-preset { position: relative; display: grid; gap: 2px; align-content: start; min-height: 44px; padding: 10px 12px 10px 40px; border: 1px solid var(--line-strong); border-radius: var(--r-md); cursor: pointer; }
.acc-preset input { position: absolute; left: 12px; top: 12px; width: 18px; height: 18px; margin: 0; accent-color: var(--text); cursor: pointer; }
.acc-preset:has(input:checked) { border-color: var(--text); background: var(--panel-2); }
.acc-preset:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
/* A preset the admin cannot give: a dashed border and a muted title, never faded text (faded text fails contrast). */
.acc-preset.is-off { cursor: not-allowed; border-style: dashed; }
.acc-preset.is-off .acc-preset-t { color: var(--muted); }
.acc-preset-t { font-size: var(--fs-md); font-weight: 800; }
.acc-preset-d { color: var(--muted); font-size: var(--fs-sm); }
.acc-custom:empty { display: none; }
.acc-custom { font-size: var(--fs-sm); }
.acc-rows { display: grid; }
.acc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 230px); gap: var(--s2) var(--s4); align-items: center; padding: var(--s3) 0; border-top: 1px solid var(--line); }
.acc-row:first-child { border-top: 0; padding-top: 0; }
.acc-row-t { display: grid; gap: 2px; min-width: 0; }
.acc-row-l { font-size: var(--fs-md); font-weight: 700; }
.acc-hint:empty { display: none; }
.acc-writer { font-size: var(--fs-sm); font-weight: 700; color: var(--warning); }
.acc-sum { padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r-md); font-size: var(--fs-md); }
.acc-cell { display: grid; gap: 2px; }
.acc-cell-l { font-weight: 700; }
.acc-cell-p { font-size: var(--fs-sm); }
@media (max-width: 559.98px) {
  .acc-row { grid-template-columns: minmax(0, 1fr); }
  .acc-preset { padding-right: 10px; }
}

/* Author profiles: My account and Admin > Users. */
.author-card { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); }
.author-card-photo, .author-thumb img { display: block; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-strong); background: var(--field); }
.author-thumb { display: grid; place-items: center; width: 96px; height: 96px; border: 1px dashed var(--line-strong); border-radius: 50%; font-size: var(--fs-sm); text-align: center; }
.author-thumb img { width: 96px; height: 96px; border: 0; }
.author-photo-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); }
.author-card-name { font-weight: 800; }

/* ---------- Publishers (pages/publishers.js) ---------- */
.pub-filters { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: flex-end; }
/* Hide blocked (1 Dec 2026): as tall as the fields, so the box sits on their line */
.pub-filters .pub-hide { min-height: var(--h-control); white-space: nowrap; }
.pub-dates { display: none; gap: var(--s3); flex: 2 1 300px; }
.pub-dates > * { flex: 1 1 140px; }
.pub-chips { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin-top: var(--s4); }
.pub-range { margin-right: var(--s2); font-size: var(--fs-sm); font-weight: 700; }
.pub-updated { align-self: center; font-size: var(--fs-sm); white-space: nowrap; }
.pub-more { margin-top: var(--s4); }

.pub-mark { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); color: var(--muted); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .01em; line-height: 1; white-space: nowrap; }
.pub-mark-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pub-mark--cut { color: var(--error); border-color: var(--error); background: color-mix(in srgb, var(--error) 12%, transparent); }
.pub-mark--watch { color: var(--warning); border-color: var(--warning); background: color-mix(in srgb, var(--warning) 12%, transparent); }
.pub-mark--grow { color: var(--success); border-color: var(--success); background: color-mix(in srgb, var(--success) 12%, transparent); }
.pub-mark--fine { color: var(--text); }
.pub-mark--early, .pub-mark--none { border-style: dashed; }
/* The block log (28 Nov 2026): blocked is quiet, a block that does not hold is red. */
.pub-mark--blocked { color: var(--muted); background: var(--panel-2); }
.pub-mark--leak { color: var(--error); border-color: var(--error); background: color-mix(in srgb, var(--error) 12%, transparent); }

.pub-zone { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; text-align: left; }
.pub-zone .pub-why { margin-top: 6px; max-width: 240px; }
.pub-zone-id { max-width: 240px; overflow: hidden; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pub-zone-net { color: var(--muted); font-size: var(--fs-xs); font-weight: 700; }
.pub-taps { white-space: nowrap; }
.pub-seen { display: inline-flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.pub-seen-sub { font-size: var(--fs-xs); }
/* Twelve columns on a 1440 px screen (28 Nov 2026): narrower gaps between the inner columns. */
.pub-tbl .tbl th:not(:first-child):not(:last-child), .pub-tbl .tbl td:not(:first-child):not(:last-child) { padding-left: 5px; padding-right: 5px; }
.pub-bad { color: var(--error); font-weight: 800; }
.pub-warn { color: var(--warning); font-weight: 800; }

.pub-why { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.pub-reason { display: inline-flex; align-items: center; padding: 3px 8px; border: 1px solid var(--line); border-left-width: 3px; border-radius: var(--r-sm); background: var(--panel-2); font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; }
.pub-reason--cut { border-left-color: var(--error); }
.pub-reason--watch { border-left-color: var(--warning); }
.pub-reason--grow { border-left-color: var(--success); }
.pub-reason--off { border-left-color: var(--line-strong); color: var(--muted); font-weight: 600; }
.pub-reason--wrap { white-space: normal; }
.pub-held { color: var(--muted); font-weight: 600; }

.kpi.pub-kpi-cut { border-color: var(--error); background: color-mix(in srgb, var(--error) 7%, var(--panel)); }
.kpi.pub-kpi-cut .kpi-value { color: var(--error); }
.kpi.pub-kpi-clear .kpi-value { color: var(--success); }
.kpis--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1279.98px) { .kpis--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899.98px) { .kpis--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }

.pub-note { padding: 14px 18px; border: 1px solid var(--warning); border-left-width: 4px; border-radius: var(--r-lg); background: color-mix(in srgb, var(--warning) 7%, var(--panel)); font-size: var(--fs-sm); line-height: 1.55; }
.pub-note--soft { border-color: var(--line-strong); background: var(--panel); }

.pub-cut { border-color: var(--error); border-top-width: 4px; }
.pub-cut--clear { border-color: var(--line); border-top-color: var(--success); }
.pub-clear { display: flex; align-items: center; gap: var(--s4); }
.pub-clear-ic { position: relative; flex: 0 0 auto; width: 36px; height: 36px; border: 2px solid var(--success); border-radius: 50%; }
.pub-clear-ic::after { content: ''; position: absolute; left: 12px; top: 6px; width: 8px; height: 15px; border: solid var(--success); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.pub-clear-t { font-weight: 800; }
.pub-cut-group + .pub-cut-group { margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--line); }
.pub-cut-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.pub-cut-acts { display: flex; flex-wrap: wrap; gap: var(--s2); }
.pub-cut-net { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--fs-base); font-weight: 800; }
.pub-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-pill); background: var(--error); color: #fff; font-size: var(--fs-xs); font-weight: 800; }
.pub-cut-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pub-cut-row { display: grid; grid-template-columns: minmax(140px, 260px) minmax(0, 1fr) auto; align-items: center; gap: var(--s4); padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel-2); }
.pub-cut-zone { min-width: 0; overflow: hidden; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-weight: 800; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; font-variant-numeric: tabular-nums; }
.pub-cut-zone:hover { text-decoration: underline; text-underline-offset: 3px; }
.pub-cut-nums { display: inline-flex; gap: var(--s4); color: var(--muted); font-size: var(--fs-sm); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pub-cut-nums b { color: var(--text); font-weight: 800; }
@media (max-width: 899.98px) {
  .pub-cut-row { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .pub-cut-nums { flex-wrap: wrap; gap: var(--s3); }
}

.pub-rules-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
.pub-rules-t { margin-bottom: var(--s2); font-size: var(--fs-sm); font-weight: 800; }
.pub-rules { display: grid; gap: 6px; margin: 0; padding-left: 22px; color: var(--muted); font-size: var(--fs-sm); line-height: 1.5; }
.pub-rules li::marker { color: var(--text); font-weight: 800; }
@media (max-width: 899.98px) { .pub-rules-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s4); } }

.dialog.pub-dialog { width: min(900px, calc(100vw - 32px)); }
.pub-d-sub { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.pub-d-reasons { display: grid; gap: 6px; margin: 0 0 var(--s4); padding: 0; list-style: none; }
.pub-d-reasons .pub-reason { display: block; white-space: normal; font-size: var(--fs-sm); font-weight: 600; }

/* Publishers: the Refresh button spins while a read runs (28 Nov 2026), still for reduced motion. */
@keyframes pub-spin { to { transform: rotate(360deg); } }
.btn[aria-busy="true"] svg { animation: pub-spin 0.9s linear infinite; }
@media (prefers-reduced-motion: reduce) { .btn[aria-busy="true"] svg { animation: none; } }

/* Publishers: bot signs and why (30 Nov 2026): a plain sentence under a publisher to cut, the rule's why in a
   publisher's window, and who visits it (browsers, internet providers, VPN tag). */
.pub-explain { grid-column: 1 / -1; margin: -2px 0 0; color: var(--muted); font-size: var(--fs-xs); line-height: 1.45; }
.pub-d-why { display: block; margin-top: 4px; color: var(--muted); font-weight: 500; }
.pub-d-why b { color: var(--text); font-weight: 700; }
.pub-who { margin: 0 0 var(--s4); padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel-2); }
/* the page sensor's table inside the box: its rows reach the box's edges, not past them (30 Nov 2026) */
.pub-who { --pad: var(--s4); }
.pub-who .tbl-wrap { margin-bottom: 0; }
.pub-who p { margin: 0 0 6px; font-size: var(--fs-sm); }
.pub-who-t { margin: 0 0 var(--s2); font-size: var(--fs-sm); font-weight: 800; }
.pub-who-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s3); }
.pub-who-cols h4 { margin: 0 0 4px; color: var(--muted); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.pub-who-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; font-size: var(--fs-sm); }
.pub-who-list li { display: flex; justify-content: space-between; gap: var(--s3); }
.pub-who-name { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pub-vpn-tag { padding: 0 5px; border-radius: var(--r-sm); background: var(--warning); color: #111; font-size: 10px; font-weight: 800; line-height: 16px; }
@media (max-width: 640px) { .pub-who-cols { grid-template-columns: minmax(0, 1fr); } }
