/* =====================================================================
   Identidad visual Quantum Service Technology (Manual de marca)
   Azul brillante #057AC7 (principal) · Gris oscuro profundo #16172B (secundario)
   Apoyo: Celeste claro #78D7FF · Azul medio #15509E · Azul oscuro #053259 · Gris azulado #444B5E
   Tipografia web: Montserrat (SIL OFL). Verde/ambar/rojo solo para estados de monitoreo.
   ===================================================================== */
@font-face {
  font-family: "Montserrat";
  src: url("/static/fonts/montserrat-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --q-blue: #057AC7;
  --q-navy: #16172B;
  --q-sky: #78D7FF;
  --q-mid: #15509E;
  --q-deep: #053259;
  --q-slate: #444B5E;

  --bg: #0e0f1f;
  --panel: #16172B;
  --panel-2: #1d1f38;
  --line: #2b2e4a;
  --text: #eef2f8;
  --muted: #9aa3b8;
  --accent: #057AC7;
  --accent-ink: #ffffff;
  --link: #78D7FF;
  --ok: #34c77b;
  --info: #78D7FF;
  --warning: #f2a93b;
  --critical: #ef5350;
  --side-bg: #11122a;
  --side-text: #e6ebf5;
  --side-muted: #8a93ad;
  --side-hover: rgba(120, 215, 255, .08);
  --side-active-bg: rgba(5, 122, 199, .28);
  --side-active: #78D7FF;
  --radius: 10px;
  --font: "Montserrat", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --topbar: rgba(14, 15, 31, .88);
  --flash-ok: #9fe6bf; --flash-warning: #f6cd8d; --flash-critical: #f6a5a3; --flash-info: #b9ebff;
  --log-bg: #090a17; --log-text: #b9c4da;
  --input-bg: #0e0f1f;
  --hover: rgba(120, 215, 255, .035);
  color-scheme: dark;
}

/* ---------- Tema claro (Configuracion > Apariencia) ---------- */
html[data-theme="light"] {
  --bg: #f2f6fb;
  --panel: #ffffff;
  --panel-2: #eef4fa;
  --line: #d8e2ed;
  --text: #16172B;
  --muted: #444B5E;
  --accent: #057AC7;
  --accent-ink: #ffffff;
  --link: #15509E;
  --ok: #15803d;
  --info: #057AC7;
  --warning: #b45309;
  --critical: #dc2626;
  --topbar: rgba(255, 255, 255, .92);
  --flash-ok: #166534; --flash-warning: #92400e; --flash-critical: #991b1b; --flash-info: #053259;
  --log-bg: #16172B; --log-text: #cfd6e6;
  --input-bg: #ffffff;
  --hover: rgba(5, 122, 199, .04);
  color-scheme: light;
}
html[data-theme="light"] .panel, html[data-theme="light"] .kpi { box-shadow: 0 1px 2px rgba(22, 23, 43, .06); }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 13.5px/1.45 var(--font); -webkit-text-size-adjust: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 20px; margin: 0; font-weight: 700; letter-spacing: -.015em; }
h2 { font-size: 15px; margin: 0 0 10px; font-weight: 700; }
h3 { font-size: 13px; margin: 0 0 8px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
p { margin: 0 0 10px; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* ---------- Layout ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { display: flex; flex-direction: column; background: var(--side-bg); color: var(--side-text); border-right: 1px solid rgba(255, 255, 255, .04); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 20px; }
.brand-iso { width: 32px; height: auto; flex: 0 0 32px; display: block; }
.brand-name { font-weight: 700; letter-spacing: .01em; font-size: 15px; line-height: 1.2; }
.brand-name small { display: block; color: var(--side-muted); font-weight: 600; font-size: 8.6px; letter-spacing: .05em; margin-top: 3px; white-space: nowrap; }
.nav-group { margin: 16px 0 4px; padding: 0 10px; color: var(--side-muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--side-text); opacity: .86; font-weight: 500; }
.nav a:hover { background: var(--side-hover); text-decoration: none; opacity: 1; }
.nav a.active { background: var(--side-active-bg); color: var(--side-active); opacity: 1; font-weight: 600; box-shadow: inset 3px 0 0 var(--q-sky); }
.main { min-width: 0; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 24px; border-bottom: 1px solid var(--line); background: var(--topbar); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(6px); }
.top-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tenant-logo { height: 34px; max-width: 140px; object-fit: contain; background: #fff; border-radius: 6px; padding: 3px 6px; }
.tenant-name { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-right { display: flex; align-items: center; gap: 14px; }
.user-chip { text-align: right; line-height: 1.2; }
.user-chip small { color: var(--muted); display: block; font-size: 11px; }
.content { padding: 18px 24px 40px; max-width: 1400px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.page-head p { color: var(--muted); margin: 3px 0 0; font-size: 13px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- Panels & grids ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; }
.panel.flush { padding: 0; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); gap: 12px; }
.panel-head h2 { margin: 0; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 12px; border-top: 3px solid var(--line); }
.kpi .label { color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.kpi .value { font-size: 21px; font-weight: 700; letter-spacing: -.01em; margin-top: 2px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpi.ok { border-top-color: var(--ok); } .kpi.ok .value { color: var(--ok); }
.kpi.warning { border-top-color: var(--warning); } .kpi.warning .value { color: var(--warning); }
.kpi.critical { border-top-color: var(--critical); } .kpi.critical .value { color: var(--critical); }
.kpi.info { border-top-color: var(--info); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--panel-2); white-space: nowrap; }
td { padding: 7px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--hover); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.empty { text-align: center; color: var(--muted); padding: 20px; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--ok); background: rgba(47, 191, 113, .12); }
.badge.info { color: var(--info); background: rgba(5, 122, 199, .16); }
.badge.warning { color: var(--warning); background: rgba(242, 169, 59, .14); }
.badge.critical { color: var(--critical); background: rgba(239, 83, 80, .14); }
.badge.muted { color: var(--muted); background: rgba(142, 160, 188, .12); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 5px; font-size: 12px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 5px; }
.help { color: var(--muted); font-size: 12px; margin-top: 4px; font-weight: 400; }
.field { margin-bottom: 12px; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=time], select, textarea {
  width: 100%; padding: 8px 10px; background: var(--input-bg); color: var(--text); border: 1px solid var(--line); border-radius: 8px; font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(5, 122, 199, .35); border-color: var(--accent); }
textarea { min-height: 80px; resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; margin-bottom: 6px; }
.check input { margin-top: 3px; accent-color: var(--accent); }
.check-list { max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--input-bg); }
.form-actions { display: flex; gap: 10px; margin-top: 6px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 18px; }
legend { padding: 0 6px; font-weight: 700; color: var(--link); }
.inline { display: inline; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 13px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { background: var(--q-mid); border-color: var(--q-mid); }
.btn.danger { color: var(--critical); }
.btn.danger:hover { border-color: var(--critical); }
.btn.sm { padding: 4px 10px; font-size: 12.5px; }
.btn.ghost { background: transparent; }
.link-btn { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0; }

/* ---------- Alerts ---------- */
.flash { padding: 9px 12px; border-radius: 8px; margin-bottom: 12px; border: 1px solid; font-weight: 500; }
.flash.ok { border-color: rgba(47, 191, 113, .5); background: rgba(47, 191, 113, .08); color: var(--flash-ok); }
.flash.warning { border-color: rgba(242, 169, 59, .5); background: rgba(242, 169, 59, .08); color: var(--flash-warning); }
.flash.critical { border-color: rgba(239, 83, 80, .5); background: rgba(239, 83, 80, .08); color: var(--flash-critical); }
.flash.info { border-color: rgba(75, 139, 245, .5); background: rgba(75, 139, 245, .08); color: var(--flash-info); }
.callout { border-left: 3px solid var(--accent); background: var(--panel-2); padding: 10px 12px; border-radius: 0 8px 8px 0; margin-bottom: 14px; }
.callout.warning { border-left-color: var(--warning); }
.secret-box { font-family: var(--mono); font-size: 14px; background: var(--input-bg); border: 1px dashed var(--warning); padding: 12px 14px; border-radius: 8px; word-break: break-all; }
pre.log { background: var(--log-bg); border: 1px solid var(--line); border-radius: 8px; padding: 14px; overflow: auto; max-height: 520px; font: 12px/1.5 var(--mono); color: var(--log-text); white-space: pre-wrap; word-break: break-word; }
iframe.report { display: block; width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }

/* ---------- Login ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(900px 500px at 85% -10%, rgba(5, 122, 199, .22), transparent), radial-gradient(700px 400px at 0% 110%, rgba(120, 215, 255, .10), transparent), var(--bg); }
.auth-card { width: 100%; max-width: 380px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.auth-card .brand { justify-content: center; padding-bottom: 22px; }
.auth-logo { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 6px 0 22px; }
.auth-logo img { width: 132px; height: auto; display: block; }
.auth-logo .product { font-weight: 700; font-size: 15px; letter-spacing: .02em; color: var(--text); text-align: center; }
.auth-logo .product small { display: block; text-align: center; font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: .06em; margin-top: 2px; }
.auth-card .btn { width: 100%; padding: 10px; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(47, 191, 113, .2); }
.dot.off { background: var(--critical); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mt { margin-top: 14px; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 12px 18px; }
.hidden { display: none !important; }
.qr svg { width: 200px; height: 200px; background: #fff; border-radius: 8px; padding: 8px; }

/* ---------- Boton de tema (sol / luna) ---------- */
.nav { flex: 1 1 auto; }
.side-foot { padding: 14px 4px 2px; border-top: 1px solid rgba(255, 255, 255, .07); margin-top: 14px; }
.theme-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 10px; background: rgba(255, 255, 255, .05); }
.tt-btn { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 6px; border: 0; border-radius: 7px; background: transparent; color: var(--side-muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.tt-btn:hover { color: var(--side-text); background: rgba(255, 255, 255, .06); }
.tt-btn.on { background: var(--q-blue); color: #fff; }
.tt-btn:focus-visible { outline: 2px solid var(--q-sky); outline-offset: 1px; }
html { transition: none; }
html.theme-anim, html.theme-anim * { transition: background-color .25s ease, color .25s ease, border-color .25s ease !important; }

/* ---------- Activacion de cuenta ---------- */
.auth-card.wide { max-width: 440px; }
.mb { margin-bottom: 14px; }
.kv.small { grid-template-columns: 90px 1fr; gap: 4px 12px; font-size: 13px; }

/* ---------- Verificacion en vivo de formularios ---------- */
.pw-rules { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 3px 12px; font-size: 12px; }
.pw-rules li { color: var(--muted); display: flex; align-items: center; gap: 6px; }
.pw-rules li::before { content: "○"; font-size: 11px; width: 12px; text-align: center; }
.pw-rules li.met { color: var(--ok); }
.pw-rules li.met::before { content: "✓"; font-weight: 700; }
.pw-rules.touched li:not(.met) { color: var(--critical); }
.pw-rules.touched li:not(.met)::before { content: "✗"; }
.live-msg:empty { display: none; }
.live-msg.ok { color: var(--ok); }
.live-msg.bad { color: var(--critical); }
input.is-bad { border-color: var(--critical); }
input.is-ok { border-color: var(--ok); }
.err-list { margin: 6px 0 0; padding-left: 18px; font-weight: 400; }

/* ---------- Logos ---------- */
.logo-row { display: flex; align-items: center; gap: 14px; }
.tenant-cell { display: flex; align-items: center; gap: 12px; }
.logo-box { width: 76px; flex: 0 0 76px; display: flex; justify-content: center; }
.tenant-logo.sm { height: 30px; max-width: 72px; padding: 2px 4px; }
.logo-ph { width: 34px; height: 30px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); }

/* ---------- Selector de tema ---------- */
.theme-picker { display: flex; gap: 14px; flex-wrap: wrap; }
.theme-card { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 10px; border: 2px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.theme-card.selected { border-color: var(--accent); }
.theme-swatch { width: 180px; height: 96px; border-radius: 7px; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: 18px 1fr; gap: 6px; padding: 8px; overflow: hidden; }
.theme-swatch i { grid-row: 1 / 3; border-radius: 4px; }
.theme-swatch b { border-radius: 4px; }
.theme-dark { background: #0e0f1f; } .theme-dark i { background: #11122a; } .theme-dark b { background: #16172B; }
.theme-light { background: #f2f6fb; border: 1px solid #d8e2ed; } .theme-light i { background: #16172B; } .theme-light b { background: #fff; }

/* ---------- Menu del celular (oculto en pantallas grandes) ---------- */
.menu-btn, .top-brand, .nav-backdrop, .user-ini { display: none; }

@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .content, .top { padding-left: 14px; padding-right: 14px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { margin-top: 6px; font-size: 12px; }
}

/* ---------- Celular y tablet: menu deslizable ---------- */
@media (max-width: 1024px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 30; top: 0; left: 0; bottom: 0; width: 264px; height: 100%; padding-top: 14px;
    transform: translateX(-102%); transition: transform .22s ease; box-shadow: 8px 0 30px rgba(0, 0, 0, .35); }
  body.nav-open .side { transform: none; }
  .nav-backdrop { position: fixed; inset: 0; z-index: 25; background: rgba(5, 8, 20, .55); }
  body.nav-open .nav-backdrop { display: block; }
  body.nav-open { overflow: hidden; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: 0 0 38px;
    border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); cursor: pointer; padding: 0; }
  .top-brand { display: block; width: 26px; height: auto; flex: 0 0 26px; }
  .top { padding-top: 8px; padding-bottom: 8px; gap: 8px; }
  .top-left { gap: 8px; flex: 1 1 auto; }
  .top-left form, .top-left select { min-width: 0; flex: 1 1 auto; }
  .top-left select { padding: 7px 8px; font-size: 13px; }
  .tenant-logo { height: 28px; max-width: 80px; }
}

@media (max-width: 640px) {
  html, body { font-size: 13px; }
  h1 { font-size: 18px; }
  .content { padding: 12px 10px 28px; }
  .top { padding-left: 10px; padding-right: 10px; }
  .top-right { gap: 6px; }
  .user-chip { display: none; }
  .user-ini { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent);
    color: #fff; font-weight: 700; font-size: 12.5px; text-decoration: none !important; }
  .tenant-logo { display: none; }
  .page-head { margin-bottom: 10px; }
  .page-head .actions { width: 100%; }
  .panel { padding: 12px; margin-bottom: 10px; border-radius: 9px; }
  .panel-head { padding: 9px 12px; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
  .kpi { padding: 7px 8px; border-top-width: 2px; border-radius: 8px; }
  .kpi .label { font-size: 9px; letter-spacing: .03em; line-height: 1.25; }
  .kpi .value { font-size: 17px; }
  .btn { padding: 7px 11px; }
  .btn.sm { padding: 4px 8px; font-size: 12px; }
  .flash { font-size: 12.5px; }
  iframe.report { height: 75vh; border-radius: 8px; }
  pre.log { font-size: 11px; padding: 10px; max-height: 360px; }

  /* Tablas como tarjetas: cada fila es una tarjeta y cada celda muestra su titulo (data-label, lo pone app.js) */
  table.cards thead { display: none; }
  table.cards, table.cards tbody, table.cards tr, table.cards td { display: block; width: 100%; }
  table.cards tr { padding: 9px 12px; border-bottom: 1px solid var(--line); }
  table.cards tr:last-child { border-bottom: 0; }
  table.cards td { border: 0; padding: 2px 0; text-align: right; overflow: hidden; min-height: 0; }
  table.cards td::before { content: attr(data-label); float: left; margin-right: 12px; color: var(--muted); font-size: 10.5px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em; text-align: left; line-height: 1.9; max-width: 45%; }
  table.cards td[data-label=""]::before { display: none; }
  table.cards td.card-title { text-align: left; font-weight: 600; font-size: 13.5px; padding-bottom: 4px; }
  table.cards td.card-title::before { display: none; }
  table.cards td[data-label="#"] { float: right; width: auto; padding: 1px 0 0 8px; font-size: 12px; color: var(--muted); }
  table.cards td[data-label="#"]::before { content: "#"; float: none; margin: 0; font-size: 12px; text-transform: none; line-height: inherit; }
  table.cards td.right, table.cards td.card-actions { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 6px; padding-top: 6px; white-space: normal; text-align: left; }
  table.cards td.right::before, table.cards td.card-actions::before { display: none; }
  table.cards td.empty { text-align: center; }
  table.cards td.empty::before { display: none; }
  table.cards td.num { text-align: right; }
}
/* Pasos numerados (instalacion del colector) */
ol.steps { margin: 0 0 12px; padding-left: 20px; line-height: 1.7; }
ol.steps li { margin-bottom: 6px; }
details > summary { cursor: pointer; color: var(--muted); }

/* ---------- Analisis de programacion ---------- */
.an-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.an-stats { display: flex; gap: 18px; }
.an-stats div { text-align: center; line-height: 1.15; }
.an-stats b { display: block; font-size: 19px; font-variant-numeric: tabular-nums; }
.an-stats span { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.an-stats b.ok, .panel .ok { color: var(--ok); } .an-stats b.warning, td .warning { color: var(--warning); } .an-stats b.critical, td .critical { color: var(--critical); }
.an-hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; height: 70px; align-items: end; padding: 6px 8px 0; background: var(--panel-2); border-radius: 8px; }
.an-h { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; position: relative; padding-bottom: 14px; }
.an-h i { display: block; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 0; }
.an-h i.warning { background: var(--warning); } .an-h i.critical { background: var(--critical); }
.an-h span { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: 9.5px; color: var(--muted); }
.an-notes { margin: 4px 0 0; padding-left: 16px; }
.an-notes li { margin-bottom: 2px; }
.an-sug { margin-top: 4px; padding: 5px 8px; border-radius: 6px; background: rgba(5, 122, 199, .12); color: var(--link); font-weight: 600; }
@media (max-width: 640px) {
  .an-stats { gap: 12px; width: 100%; justify-content: space-between; }
  .an-hours { height: 56px; gap: 2px; padding: 4px 4px 0; }
  table.cards td .an-notes { text-align: left; }
}
