/* Newsroom — stile condiviso. Colori come variabili: tema chiaro, scuro (dal sistema o scelto a mano). */
:root {
  color-scheme: light;
  --bg: #F4F6FA;
  --surface: #FFFFFF;
  --surface-2: #F0F3F8;
  --ink: #0B1220;
  --muted: #4A5568;
  --line: #E2E7EF;
  --line-strong: #C9D2DF;
  --accent: #2457E6;
  --accent-hover: #1B44B8;
  --accent-ink: #FFFFFF;
  --accent-soft: #E7EDFE;
  --edge: #8592A6;
  --side: #0B1220;
  --side-hover: #172137;
  --side-text: #C5CEDB;
  --side-muted: #8A97AB;
  --ok-ink: #0F6B37; --ok-bg: #E2F5E9;
  --warn-ink: #8F4500; --warn-bg: #FFF0DE;
  --err-ink: #B42318; --err-bg: #FDE8E6;
  --info-ink: #1E3FAE; --info-bg: #E5ECFF;
  --neutral-ink: #3B4759; --neutral-bg: #EBEFF5;
  --focus: #F59E0B;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 1px rgba(15, 23, 42, .03);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, .16);
  --radius: 14px;
  --radius-sm: 10px;
  --chart: #2457E6;
  --s0: #2457E6; --s1: #C2410C; --s2: #0F766E; --s3: #7C3AED; --s4: #64748B;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0A0F1C; --surface: #111A2B; --surface-2: #172238; --ink: #E7ECF5; --muted: #A4AFC3;
    --line: #22304A; --line-strong: #31415F; --accent: #6F9BFF; --accent-hover: #93B4FF; --accent-ink: #0A0F1C;
    --accent-soft: #1A2A52; --edge: #5C6B85; --side: #070B15; --side-hover: #131C30; --side-text: #C5CEDB; --side-muted: #8390A6;
    --ok-ink: #7EE2A8; --ok-bg: #10291C; --warn-ink: #FDBA74; --warn-bg: #2E1C0A; --err-ink: #FDA4A4; --err-bg: #3A1515;
    --info-ink: #AFC6FF; --info-bg: #182650; --neutral-ink: #C6CFDC; --neutral-bg: #1D2840;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 12px 32px rgba(0, 0, 0, .5); --chart: #6F9BFF;
    --s0: #6F9BFF; --s1: #FB923C; --s2: #2DD4BF; --s3: #C4B5FD; --s4: #94A3B8;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A0F1C; --surface: #111A2B; --surface-2: #172238; --ink: #E7ECF5; --muted: #A4AFC3;
  --line: #22304A; --line-strong: #31415F; --accent: #6F9BFF; --accent-hover: #93B4FF; --accent-ink: #0A0F1C;
  --accent-soft: #1A2A52; --edge: #5C6B85; --side: #070B15; --side-hover: #131C30; --side-text: #C5CEDB; --side-muted: #8390A6;
  --ok-ink: #7EE2A8; --ok-bg: #10291C; --warn-ink: #FDBA74; --warn-bg: #2E1C0A; --err-ink: #FDA4A4; --err-bg: #3A1515;
  --info-ink: #AFC6FF; --info-bg: #182650; --neutral-ink: #C6CFDC; --neutral-bg: #1D2840;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 12px 32px rgba(0, 0, 0, .5); --chart: #6F9BFF;
    --s0: #6F9BFF; --s1: #FB923C; --s2: #2DD4BF; --s3: #C4B5FD; --s4: #94A3B8;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }  /* vale anche sugli elementi con display impostato dallo stile */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1 { margin: 0; font-size: 26px; line-height: 1.2; letter-spacing: -.02em; }
h2 { margin: 0; font-size: 16px; letter-spacing: -.01em; }
h3 { margin: 0; font-size: 15px; }
p { margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num, .kpi .value, td.num, .tabular { font-variant-numeric: tabular-nums; }
td.num { white-space: nowrap; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* struttura */
.app { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 1 1 232px; max-width: 280px; background: var(--side); color: var(--side-text); padding: 20px 14px;
  display: flex; flex-direction: column; gap: 20px; position: sticky; top: 0; align-self: flex-start; min-height: 100vh;
  max-height: 100vh; overflow-y: auto; }
.side .brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 18px; font-weight: 700;
  text-decoration: none; padding: 4px 10px; letter-spacing: -.01em; }
.side .brand .mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; }
.side .brand .mark .icon { stroke: #fff; width: 16px; height: 16px; }
.side .group-title { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--side-muted); padding: 0 10px 6px; font-weight: 600; }
.side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.side a, .side .soon { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; font-size: 14px;
  color: var(--side-text); text-decoration: none; min-height: 44px; }
.side a:hover { background: var(--side-hover); color: #fff; }
.side a[aria-current="page"] { background: #fff; color: #0B1220; font-weight: 600; }
.side a[aria-current="page"] .icon { stroke: #2457E6; }
.side .soon { color: var(--side-muted); }
.side .soon small { white-space: nowrap; font-size: 11px; border: 1px solid #3A4A63; border-radius: 999px; padding: 1px 7px; margin-left: auto; }
.side-job { margin: 0 6px; padding: 12px; border-radius: 10px; background: var(--side-hover); font-size: 13px; color: #E2E8F0; display: flex; gap: 10px; align-items: flex-start; }
.side-job a { display: inline; padding: 0; min-height: 0; color: #BFD3FF; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.side-foot button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px;
  font-size: 14px; color: var(--side-text); cursor: pointer; min-height: 44px; }
.side-foot button:hover { background: var(--side-hover); color: #fff; }
.side-version { margin: 6px 10px 0; font-size: 12px; color: var(--side-muted); }
.side-version a { color: inherit; text-decoration: none; }
.side-version a:hover { text-decoration: underline; }
.changes { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.release { border-top: 1px solid var(--line); padding-top: 12px; }
.release h3 { margin: 0 0 4px; font-size: 16px; }
.side-foot button:focus-visible { outline: 3px solid var(--focus); }
main { flex: 999 1 560px; min-width: 0; padding: 28px 32px 48px; display: flex; flex-direction: column; gap: 18px; max-width: 1360px; }
.page-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; justify-content: space-between; }
.page-head .lead { color: var(--muted); margin-top: 6px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) {
  .side { flex-basis: 100%; max-width: none; min-height: 0; max-height: none; position: static; padding: 10px; gap: 6px; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .side .group { display: contents; }
  .side .group-title, .side .soon, .side .brand span { display: none; }
  .side ul { flex-direction: row; flex-wrap: wrap; }
  .side-foot { margin: 0; flex-direction: row; }
  .side-job { flex-basis: 100%; }
  main { padding: 18px 16px 40px; }
}

/* blocchi */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.card-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.row.between { justify-content: space-between; align-items: center; }
.row.center { align-items: center; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid-2 { display: flex; flex-wrap: wrap; gap: 18px; }
.grid-2 > * { flex: 1 1 340px; min-width: 0; }
.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 13px; }

/* moduli */
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 200px; min-width: 0; }
.field.wide { flex: 3 1 280px; }
.field.narrow { flex: 0 0 200px; }
.stack > .field, dialog .field { flex: none; }  /* in colonna la base di 200px diventerebbe un'altezza */
label, .label { font-size: 13px; font-weight: 600; }
input[type=text], input[type=number], input[type=search], input[type=password], input[type=url], input[type=time], input[type=email], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius-sm);
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--accent); }
textarea { min-height: 96px; resize: vertical; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 400; }
.check input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--accent); }
.counter { font-size: 13px; color: var(--muted); }
.counter.over { color: var(--err-ink); font-weight: 600; }
.search-field { position: relative; }
.search-field .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field input { padding-left: 40px; }

/* pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--surface-2); color: var(--ink); border-color: var(--edge); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn.small { min-height: 44px; padding: 0 12px; font-size: 13px; }
.btn.danger { color: var(--err-ink); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* schede (filtri a segmenti) */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; width: fit-content; max-width: 100%; }
.tab { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.tab:hover { color: var(--ink); }
.tab[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.tab:focus-visible { outline: 3px solid var(--focus); }
.tab .count { font-size: 12px; font-variant-numeric: tabular-nums; padding: 1px 7px; border-radius: 999px; background: var(--line); color: var(--ink); }

/* indicatori */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); min-width: 0; }
.kpi .label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kpi .value { display: block; font-size: 30px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.kpi .note { font-size: 13px; color: var(--muted); }
.card .kpi { background: var(--surface-2); border: 0; box-shadow: none; }
.delta { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.delta.up { color: var(--ok-ink); }
.delta.down { color: var(--err-ink); }
.delta.flat { color: var(--muted); }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--ok-ink); background: var(--ok-bg); }
.badge.warn { color: var(--warn-ink); background: var(--warn-bg); }
.badge.info { color: var(--info-ink); background: var(--info-bg); }
.badge.neutral { color: var(--neutral-ink); background: var(--neutral-bg); }
.badge.err { color: var(--err-ink); background: var(--err-bg); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #34D399; flex: 0 0 auto; margin-top: 5px; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

/* da fare */
.todo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.todo li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.todo li:first-child { border-top: 0; padding-top: 0; }
.todo .what { display: flex; gap: 10px; align-items: flex-start; flex: 1 1 280px; }
.todo .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: 0 0 auto; background: var(--neutral-ink); }
.todo .dot.warn { background: var(--warn-ink); }
.todo .dot.info { background: var(--accent); }
.done-note { display: flex; gap: 10px; align-items: center; color: var(--ok-ink); font-weight: 600; }

/* tabelle */
.scroll { overflow-x: auto; position: relative; } /* trattiene anche le etichette nascoste delle tabelle */
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); border-bottom-color: var(--line-strong); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
tbody th { font-size: 14px; color: var(--ink); text-transform: none; letter-spacing: 0; border-bottom-color: var(--line); }
th button.sort { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; min-height: 32px; }
th button.sort:focus-visible { outline: 3px solid var(--focus); }
tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
td .title { font-weight: 600; overflow-wrap: anywhere; color: var(--ink); text-decoration: none; }
td a.title:hover { color: var(--accent); text-decoration: underline; }
td .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
td.url-cell { min-width: 140px; max-width: 200px; }
td.site-cell { min-width: 120px; max-width: 180px; overflow-wrap: anywhere; }
td .url { font-size: 13px; color: var(--accent); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
td.url-cell .btn { align-self: flex-start; }
td .wp { margin-top: 8px; padding: 8px 10px; font-size: 13px; color: var(--muted); background: var(--surface-2); border-radius: 8px; }
td .wp b { color: var(--ink); font-weight: 600; }
td .wp .wp-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
td.select, th.select { width: 36px; padding-right: 8px; }
td.select input, th.select input { width: 20px; height: 20px; accent-color: var(--accent); margin: 2px 0 0; }
tr.dimmed td { color: var(--muted); }
tr.dimmed .title { text-decoration: line-through; color: var(--muted); }
tr.selected td { background: var(--accent-soft); }
.empty { padding: 28px 0; color: var(--muted); text-align: center; }

.bulkbar { position: sticky; bottom: 12px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px;
  background: var(--ink); color: var(--bg); border-radius: 12px; box-shadow: var(--shadow-lg); }
.bulkbar .btn { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 30%, transparent); }
.bulkbar .btn:hover { background: color-mix(in srgb, var(--bg) 12%, transparent); color: var(--bg); }

/* barre */
.bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--chart); border-radius: 999px; min-width: 2px; }
.band { display: flex; flex-direction: column; gap: 6px; }
.band .row { justify-content: space-between; align-items: baseline; font-size: 14px; }

/* scansione */
progress { width: 100%; height: 10px; appearance: none; border: 0; border-radius: 999px; background: var(--line); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--line); border-radius: 999px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 999px; transition: width .3s; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 999px; }
.log { list-style: none; margin: 0; padding: 12px 14px; max-height: 300px; overflow-y: auto; background: #070B15; color: #DCE3EE;
  border-radius: 10px; font: 12.5px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; border: 1px solid #1B2438; }
.log li { display: flex; gap: 10px; }
.log time { color: #7D8AA0; flex: 0 0 auto; }
.log .lvl { flex: 0 0 auto; width: 1.2em; text-align: center; }
.log .ok .lvl { color: #86EFAC; }
.log .avviso .lvl { color: #FDBA74; }
.log .errore .lvl, .log .errore span:last-child { color: #FCA5A5; }

/* finestre e notifiche */
dialog { border: 1px solid var(--line); border-radius: var(--radius); padding: 0; width: min(640px, calc(100vw - 32px));
  color: var(--ink); background: var(--surface); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(5, 10, 20, .55); }
dialog form { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
dialog .counter { margin-top: -4px; }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--ink); color: var(--bg);
  box-shadow: var(--shadow-lg); font-size: 14px; animation: rise .2s ease-out; }
.toast.err { background: #B42318; color: #fff; }  /* fisso: 6,6:1 in entrambi i temi */
.toast button { all: unset; cursor: pointer; margin-left: auto; padding: 0 4px; opacity: .8; font-size: 18px; line-height: 1; }
.toast button:focus-visible { outline: 3px solid var(--focus); }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* grafico */
.chart svg { width: 100%; height: auto; display: block; }
.chart .axis { fill: var(--muted); font-size: 11px; }
.chart .grid { stroke: var(--line); }
.chart rect.b { fill: var(--chart); }
.chart .line { fill: none; stroke: var(--chart); stroke-width: 2.5; stroke-linejoin: round; }
.chart .dot { fill: var(--surface); stroke: var(--chart); stroke-width: 2; }
.chart .s0, .swatch.s0 { fill: var(--s0); background: var(--s0); }
.chart .s1, .swatch.s1 { fill: var(--s1); background: var(--s1); }
.chart .s2, .swatch.s2 { fill: var(--s2); background: var(--s2); }
.chart .s3, .swatch.s3 { fill: var(--s3); background: var(--s3); }
.chart .s4, .swatch.s4 { fill: var(--s4); background: var(--s4); }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; flex: 0 0 auto; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
details > summary { cursor: pointer; font-size: 14px; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
ol.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
code { font: 12.5px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.outlets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.outlets li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; font-size: 14px; }
.outlets li .bar { grid-column: 1 / -1; }
.bar > span.tone-positivo { background: var(--ok-ink); }
.bar > span.tone-neutro { background: var(--edge); }
.bar > span.tone-negativo { background: var(--err-ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Pagine pubbliche dei destinatari (disiscrizione) */
main.public { max-width: 520px; margin: 12vh auto; padding: 16px; }
main.public h1 { font-size: 24px; }
/* Anteprima del comunicato */
.mail-preview { white-space: pre-wrap; font-family: inherit; background: var(--surface-2); border-radius: 8px; padding: 12px 14px; margin: 0; font-size: 14px; max-height: 420px; overflow: auto; }
.check-row { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.check-row .record { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.check-row code { overflow-wrap: anywhere; background: var(--surface-2); padding: 4px 8px; border-radius: 6px; font-size: 13px; }
.err-text { color: var(--err-ink); margin: 0; }
.err-text:empty { display: none; }
.todo .dot.ok { background: var(--ok-ink); }
.todo .dot.err { background: var(--err-ink); }
.check-row > .badge { align-self: start; justify-self: start; white-space: nowrap; }

/* Intestazioni ordinabili (tablesort.js) */
th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
th.sortable:hover { color: var(--ink); }
th.sortable:focus-visible { outline: 3px solid var(--focus, var(--accent)); outline-offset: -3px; }
th.sortable::after { content: "↕"; opacity: .35; margin-left: 6px; font-size: 11px; }
th.sortable[aria-sort="ascending"]::after { content: "▲"; opacity: 1; }
th.sortable[aria-sort="descending"]::after { content: "▼"; opacity: 1; }

/* Logo nella pagina di accesso (kit del marchio: docs/marchio) */
.login-logo { margin: 0 0 14px; line-height: 0; }
.login-logo img { height: 44px; width: auto; max-width: 100%; }
