/* Paleta cálida: crema, terracota y ámbar */
:root {
  --bg: #faf5ed;
  --bg-glow: radial-gradient(900px 400px at 10% -90px, #f7dfc3 0%, transparent 70%);
  --surface: #fffcf7;
  --surface-2: #f5ebdd;
  --text: #2d2118;
  --muted: #7b6a5a;
  --line: #eadccb;
  --accent: #b9532a;
  --accent-2: #d99425;
  --accent-soft: #fbe6d6;
  --accent-ink: #ffffff;
  --ok: #4b7a33;
  --ok-soft: #e5efd9;
  --warn: #a86a0a;
  --warn-soft: #fbebc8;
  --bad: #b32f2f;
  --bad-soft: #f9ddd8;
  --info: #3a7a86;
  --info-soft: #dcedef;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(80, 46, 20, .06), 0 6px 18px -8px rgba(80, 46, 20, .16);
  --shadow-lg: 0 2px 4px rgba(80, 46, 20, .08), 0 14px 30px -12px rgba(80, 46, 20, .28);
}
:root[data-theme="dark"] {
  --bg: #1b1411;
  --bg-glow: radial-gradient(900px 400px at 10% -90px, #3b2418 0%, transparent 70%);
  --surface: #251c17;
  --surface-2: #30241d;
  --text: #f4e9dc;
  --muted: #b6a493;
  --line: #3d2f26;
  --accent: #f19062;
  --accent-2: #f3bb4f;
  --accent-soft: #43281b;
  --accent-ink: #1b1411;
  --ok: #9ccf7a;
  --ok-soft: #26351a;
  --warn: #f0b24f;
  --warn-soft: #3f2e12;
  --bad: #f58a80;
  --bad-soft: #44211e;
  --info: #7cc3cf;
  --info-soft: #1b3236;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 22px -10px rgba(0, 0, 0, .55);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 16px 34px -12px rgba(0, 0, 0, .65);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1411;
    --bg-glow: radial-gradient(900px 400px at 10% -90px, #3b2418 0%, transparent 70%);
    --surface: #251c17;
    --surface-2: #30241d;
    --text: #f4e9dc;
    --muted: #b6a493;
    --line: #3d2f26;
    --accent: #f19062;
    --accent-2: #f3bb4f;
    --accent-soft: #43281b;
    --accent-ink: #1b1411;
    --ok: #9ccf7a;
    --ok-soft: #26351a;
    --warn: #f0b24f;
    --warn-soft: #3f2e12;
    --bad: #f58a80;
    --bad-soft: #44211e;
    --info: #7cc3cf;
    --info-soft: #1b3236;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 22px -10px rgba(0, 0, 0, .55);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 16px 34px -12px rgba(0, 0, 0, .65);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light dark; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg) var(--bg-glow) no-repeat;
  color: var(--text);
  font: 16px/1.55 "Source Sans 3", "Source Sans Pro", -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.2; font-family: "Fraunces", "Iowan Old Style", Georgia, serif; font-optical-sizing: auto; }
h1 { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: 26px; font-weight: 600; letter-spacing: -.015em; }
h3 { font-size: 18px; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }

/* ── Encabezado ── */
.top { background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-inner { max-width: 1240px; margin: 0 auto; padding: 12px 20px; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 6px 14px -6px var(--accent); }
.brand-mark svg { width: 19px; height: 19px; }
.top-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.sync { white-space: nowrap; }
.sync-warn { color: var(--bad); font-weight: 600; }
.auto-sel { padding: 5px 8px; font-size: 13px; border-radius: 10px; background: var(--surface-2); }
.filters { max-width: 1240px; margin: 0 auto; padding: 0 20px 12px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.field { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px 4px 3px 12px; }
.field select { border: 0; background: transparent; font-weight: 600; text-transform: none; letter-spacing: 0; padding: 6px 8px; max-width: 280px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
select, input[type="text"], input[type="search"], textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 12px; max-width: 100%;
}
select option { background: var(--surface); color: var(--text); }
textarea { width: 100%; resize: vertical; }
select:focus, input:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn {
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--accent-2)));
  color: var(--accent-ink); padding: 8px 16px; border-radius: 10px; box-shadow: 0 6px 14px -8px var(--accent);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: none; }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.small { padding: 5px 12px; font-size: 13px; }
.btn.icon { padding: 8px 10px; line-height: 1; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }

.tabs { max-width: 1240px; margin: 0 auto; padding: 0 20px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs button {
  font: inherit; font-weight: 600; font-size: 15px; background: none; border: 0; color: var(--muted);
  padding: 10px 14px; cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; border-radius: 8px 8px 0 0;
  transition: color .12s, background .12s;
}
.tabs button:hover { color: var(--text); background: var(--surface-2); }
.tabs button[aria-current="true"] { color: var(--accent); border-bottom-color: var(--accent); }

main { max-width: 1240px; margin: 0 auto; padding: 24px 20px 70px; animation: rise .28s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { main { animation: none; } .btn { transition: none; } }
.section { margin-top: 28px; }
.head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.head h2 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 14px; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.kpi { position: relative; overflow: hidden; padding-top: 20px; }
.kpi::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--k, var(--accent)); opacity: .9; }
.kpi.t-ok { --k: var(--ok); } .kpi.t-warn { --k: var(--warn); } .kpi.t-bad { --k: var(--bad); } .kpi.t-info { --k: var(--info); }
.kpi .label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.kpi .value { font-family: "Fraunces", Georgia, serif; font-size: 36px; font-weight: 600; margin-top: 4px; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: lining-nums tabular-nums; }
.kpi.t-ok .value { color: var(--ok); } .kpi.t-warn .value { color: var(--warn); } .kpi.t-bad .value { color: var(--bad); }
.kpi .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.two { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.callout { border-left: 4px solid var(--info); background: var(--info-soft); padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.callout.bad { border-color: var(--bad); background: var(--bad-soft); }
.callout.warn { border-color: var(--warn); background: var(--warn-soft); }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.muted { background: var(--surface-2); color: var(--muted); }
h2 .badge, .head .badge.plain { font-size: 12px; }

/* ── Tablas ── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 15px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); white-space: nowrap; position: sticky; top: 0; }
tbody tr { transition: background .1s; }
tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 38%, transparent); }
tr:last-child td { border-bottom: 0; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover td { background: var(--accent-soft); }
td.r, th.r { text-align: right; }
.title-cell { font-weight: 600; min-width: 150px; }

.risk-line { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; padding: 5px 8px; margin: 2px -8px; border-radius: 8px; cursor: pointer; }
.risk-line:hover { background: var(--accent-soft); }
.risk-line b { font-weight: 600; }

/* ── Mapa de calor ── */
.heat-wrap { max-height: 76vh; }
table.heat { width: max-content; min-width: 0; border-spacing: 2px; border-collapse: separate; font-size: 12.5px; }
.heat th, .heat td { padding: 0; border: 0; background: none; }
.heat tbody tr:nth-child(even) td.avg, .heat tbody tr:nth-child(even) td.cell.none { background: none; }
.heat thead th { position: sticky; top: 0; z-index: 2; background: var(--surface); }
.heat thead tr.grp th { top: 0; }
.heat thead tr:nth-child(2) th { top: 24px; }
.heat .gh { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--accent); text-align: center; padding: 4px 0; border-bottom: 2px solid var(--accent); height: 24px; }
.heat th.vh { height: 150px; width: 34px; min-width: 34px; vertical-align: bottom; cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 12px; color: var(--text); }
.heat th.vh span { display: block; writing-mode: vertical-rl; transform: rotate(180deg); max-height: 142px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0 auto 6px; }
.heat th.vh:hover { color: var(--accent); }
.heat th.sticky { position: sticky; left: 0; z-index: 3; background: var(--surface); text-align: left; padding: 0 12px 0 10px; min-width: 170px; max-width: 220px; text-transform: none; letter-spacing: 0; font-size: 13px; }
.heat thead th.sticky { z-index: 4; }
.heat th.name { font-weight: 600; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heat th.name:hover { color: var(--accent); }
.heat td.cell { width: 34px; min-width: 34px; height: 30px; text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; border-radius: 6px; cursor: pointer;
  background: hsl(var(--h, 0) 58% 38%); color: #fff; transition: transform .1s, box-shadow .1s; }
.heat td.cell:hover { transform: scale(1.14); box-shadow: 0 4px 12px -2px rgba(0, 0, 0, .45); position: relative; z-index: 1; }
.heat td.cell sup { font-size: 8px; margin-left: 1px; opacity: .85; }
.heat td.cell.none { background: transparent; cursor: default; }
.heat td.cell.miss { background: var(--bad-soft); color: var(--bad); box-shadow: inset 0 0 0 1.5px var(--bad); }
.heat td.cell.turn { background: var(--info-soft); color: var(--info); }
.heat td.cell.draft { background: var(--warn-soft); color: var(--warn); }
.heat td.cell.pend { background: var(--surface-2); color: var(--muted); }
.heat td.avg { text-align: center; font-weight: 750; font-variant-numeric: tabular-nums; padding: 0 10px; min-width: 52px; }
.heat td.avg.ok { color: var(--ok); } .heat td.avg.warn { color: var(--warn); } .heat td.avg.bad { color: var(--bad); }
.heat tfoot td, .heat tfoot th { position: sticky; bottom: 0; background: var(--surface); height: 32px; border-top: 2px solid var(--line); }
.heat tfoot th.sticky { z-index: 3; }
.heat-legend { align-items: center; margin: 0 0 10px; }
.lg-scale { display: inline-flex; align-items: center; gap: 6px; }
.lg-scale::before { display: none; }
.lg-scale i { display: inline-block; width: 110px; height: 10px; border-radius: 5px; background: linear-gradient(90deg, hsl(0 58% 38%), hsl(62 58% 38%), hsl(125 58% 38%)); }

/* ── Barras ── */
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 210px) 1fr 54px; gap: 12px; align-items: center; font-size: 13px; }
.bar-row .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 12px; background: var(--surface-2); border-radius: 7px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 7px; transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.bar i.ok { background: linear-gradient(90deg, var(--ok), color-mix(in srgb, var(--ok) 60%, #fff)); }
.bar i.warn { background: linear-gradient(90deg, var(--warn), color-mix(in srgb, var(--warn) 60%, #fff)); }
.bar i.bad { background: linear-gradient(90deg, var(--bad), color-mix(in srgb, var(--bad) 60%, #fff)); }
.bar-row b { text-align: right; font-variant-numeric: tabular-nums; }
.stack { display: flex; height: 12px; border-radius: 7px; overflow: hidden; background: var(--surface-2); gap: 1px; }
.stack i { display: block; height: 100%; }
.s-returned { background: var(--ok); } .s-draft { background: var(--warn); } .s-turnedin { background: var(--info); }
.s-pending { background: var(--line); } .s-missing { background: var(--bad); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); margin-top: 12px; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; background: var(--c); vertical-align: -1px; }

.action-list { display: grid; gap: 8px; }
.action-item { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--surface); box-shadow: var(--shadow);
  transition: transform .12s, background .12s; }
.action-item:hover { background: var(--accent-soft); transform: translateX(3px); }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.toolbar input[type="search"] { min-width: 240px; }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; font-weight: 600; padding: 0; }
.link:hover { text-decoration: underline; }
a.link { text-decoration: none; }

/* ── Bienvenida ── */
.welcome { max-width: 780px; margin: 28px auto 0; display: grid; gap: 18px; }
.hero { padding: 34px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), color-mix(in srgb, var(--accent-2) 12%, var(--surface))); }
.hero h2 { font-size: 34px; letter-spacing: -.02em; font-weight: 600; }
.hero p { font-size: 18px; max-width: 54ch; }
.welcome ol { padding-left: 20px; margin: 10px 0 0; display: grid; gap: 7px; }
.welcome code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row input[type="text"] { flex: 1 1 280px; }
.spinner { padding: 70px 0; text-align: center; color: var(--muted); }
.spinner::before { content: ""; display: block; width: 30px; height: 30px; margin: 0 auto 14px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { padding: 32px; text-align: center; color: var(--muted); }

@media (max-width: 700px) {
  .top-inner, .filters, .tabs, main { padding-left: 14px; padding-right: 14px; }
  .top-actions { margin-left: 0; }
  .bar-row { grid-template-columns: 90px 1fr 46px; }
  .kpi .value { font-size: 25px; }
  .field select { max-width: 200px; }
  .hero { padding: 22px; } .hero h2 { font-size: 23px; }
}

/* ── Gráficas ── */
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font-size: 11px; font-family: inherit; }
.pos { color: var(--ok); font-weight: 650; } .neg { color: var(--bad); font-weight: 650; }

/* ── Informes imprimibles ── */
#report { display: none; }
.rep-page { page-break-after: always; break-after: page; padding: 0; color: #222; font-size: 12.5px; }
.rep-page:last-child { page-break-after: auto; break-after: auto; }
.rep-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 3px solid var(--accent); padding-bottom: 10px; margin-bottom: 14px; }
.rep-brand { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.rep-head h1 { font-size: 26px; margin: 2px 0; }
.rep-head p { margin: 0; color: #555; }
.rep-date { color: #555; font-size: 12px; white-space: nowrap; }
.rep-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 12px; }
.rep-kpi { border: 1px solid #ddd; border-radius: 8px; padding: 8px 10px; }
.rep-kpi .l { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: #666; }
.rep-kpi .v { font-family: "Fraunces", Georgia, serif; font-size: 22px; font-weight: 600; line-height: 1.2; }
.rep-kpi .s { font-size: 10.5px; color: #777; min-height: 1em; }
.rep-alert { background: #fbebc8; border-left: 4px solid #a86a0a; padding: 7px 10px; border-radius: 6px; margin-bottom: 10px; }
.rep-page h3 { margin: 14px 0 6px; font-size: 15px; }
.rep-table { width: 100%; border-collapse: collapse; font-size: 11.5px; margin-bottom: 6px; }
.rep-table th, .rep-table td { padding: 4px 7px; border-bottom: 1px solid #e3dccf; text-align: left; position: static; background: none; text-transform: none; letter-spacing: 0; color: #222; }
.rep-table th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: #666; border-bottom: 2px solid #d8cdbb; white-space: normal; }
.rep-table th.r, .rep-table td.r { text-align: right; }
.rep-table tr { break-inside: avoid; }
.rep-foot { margin-top: 14px; padding-top: 8px; border-top: 1px solid #ddd; font-size: 10.5px; color: #777; }
.rep-page .chart text { fill: #666; }

@media print {
  @page { margin: 14mm; }
  :root, :root[data-theme="dark"], :root:not([data-theme="light"]) {
    --bg: #fff; --bg-glow: none; --surface: #fff; --surface-2: #f4efe6; --text: #222; --muted: #666; --line: #e0d8c9;
    --accent: #b9532a; --accent-2: #d99425; --ok: #4b7a33; --warn: #a86a0a; --bad: #b32f2f; --info: #3a7a86;
  }
  body { background: #fff; color: #222; }
  body > *:not(#report) { display: none !important; }
  #report { display: block; }
}
@media (max-width: 700px) { .rep-kpis { grid-template-columns: repeat(2, 1fr); } }

/* ── Panel de inicio ── */
.kpi.click { cursor: pointer; transition: transform .12s, box-shadow .12s; }
.kpi.click:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.dash-list { display: grid; }
.dash-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 6px; border-top: 1px solid var(--line); border-radius: 8px; }
.dash-item:first-child { border-top: 0; }
.dash-item[data-act] { cursor: pointer; }
.dash-item[data-act]:hover { background: var(--accent-soft); }
.di-main { min-width: 0; }
.di-main b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.di-right { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; flex-shrink: 0; max-width: 55%; }
.level-head { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.tile { position: relative; cursor: pointer; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow);
  transition: transform .12s, box-shadow .12s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tile.ok { border-left-color: var(--ok); } .tile.warn { border-left-color: var(--warn); } .tile.bad { border-left-color: var(--bad); }
.t-name { font-weight: 650; font-size: 14px; }
.t-avg { font-family: "Fraunces", Georgia, serif; font-size: 28px; font-weight: 600; line-height: 1.1; margin: 2px 0; }
.t-avg small { font-size: 14px; margin-left: 1px; opacity: .7; }
.tile.ok .t-avg { color: var(--ok); } .tile.warn .t-avg { color: var(--warn); } .tile.bad .t-avg { color: var(--bad); }
.t-meta { font-size: 11.5px; color: var(--muted); }
.t-risk { position: absolute; top: 8px; right: 8px; min-width: 22px; height: 22px; border-radius: 11px; padding: 0 6px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; }
.t-risk.bad { background: var(--bad); } .t-risk.warn { background: var(--warn); }

tr.sel td { background: var(--accent-soft) !important; }
.tile.sel { outline: 2px solid var(--accent); outline-offset: 1px; }
