/* OMNIA TechCare — hoja de estilos (mobile-first, accesible, claro/oscuro) */
:root {
  color-scheme: light;
  --bg: #f4f6fa; --surface: #ffffff; --surface-2: #eef2f7; --border: #d9dfe8;
  --ink: #0f172a; --ink-2: #475569; --ink-3: #7b8794;
  --brand: #0b3d91; --brand-2: #2a78d6; --brand-soft: #e3edfb;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948;
  --ok: #0f8a4b; --ok-soft: #dff5e8; --warn: #b26a00; --warn-soft: #fff1d6; --bad: #c2362f; --bad-soft: #fde3e1; --info: #2a78d6; --info-soft: #e3edfb;
  --shadow: 0 1px 2px rgba(15,23,42,.06), 0 8px 24px -12px rgba(15,23,42,.18);
  --radius: 14px; --radius-s: 9px; --nav-h: 64px; --side-w: 248px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b1220; --surface: #121a2b; --surface-2: #192338; --border: #263247;
    --ink: #eef2f8; --ink-2: #b4bfd0; --ink-3: #7f8ca3;
    --brand: #8fb7f5; --brand-2: #3987e5; --brand-soft: #1a2a48;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #2f9e2f; --s7: #9085e9; --s8: #e66767;
    --ok: #3ccf7f; --ok-soft: #10301f; --warn: #f0b24a; --warn-soft: #34260b; --bad: #ff7b73; --bad-soft: #3b1512; --info: #6aa5f0; --info-soft: #152541;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -14px rgba(0,0,0,.7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220; --surface: #121a2b; --surface-2: #192338; --border: #263247;
  --ink: #eef2f8; --ink-2: #b4bfd0; --ink-3: #7f8ca3;
  --brand: #8fb7f5; --brand-2: #3987e5; --brand-soft: #1a2a48;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #2f9e2f; --s7: #9085e9; --s8: #e66767;
  --ok: #3ccf7f; --ok-soft: #10301f; --warn: #f0b24a; --warn-soft: #34260b; --bad: #ff7b73; --bad-soft: #3b1512; --info: #6aa5f0; --info-soft: #152541;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -14px rgba(0,0,0,.7);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); min-height: 100dvh; }
a { color: var(--brand-2); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .35rem; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
p { margin: .25rem 0 .75rem; }
.muted { color: var(--ink-2); } .small { font-size: .85rem; } .mono { font-family: var(--mono); }
.boot { padding: 2rem; text-align: center; color: var(--ink-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Layout ---------- */
.shell { display: grid; grid-template-rows: auto 1fr; min-height: 100dvh; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: .75rem; padding: .6rem 1rem; padding-top: calc(.6rem + env(safe-area-inset-top)); background: var(--surface); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand .logo { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--brand-2), #1baf7a); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .9rem; }
.brand small { display: block; font-weight: 500; color: var(--ink-2); font-size: .72rem; line-height: 1; }
.topbar .spacer { flex: 1; }
.iconbtn { border: 1px solid var(--border); background: var(--surface); border-radius: 10px; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.iconbtn:hover { background: var(--surface-2); }
.userchip { display: none; align-items: center; gap: .5rem; font-size: .85rem; color: var(--ink-2); }
.main { padding: 1rem 1rem calc(var(--nav-h) + 1.25rem + env(safe-area-inset-bottom)); max-width: 1280px; width: 100%; margin: 0 auto; }
.sidenav { display: none; }
.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-around; background: var(--surface); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); height: calc(var(--nav-h) + env(safe-area-inset-bottom)); }
.bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--ink-3); font-size: .68rem; font-weight: 600; min-width: 0; }
.bottomnav a svg { width: 22px; height: 22px; }
.bottomnav a.active { color: var(--brand-2); }
.navlabel { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

@media (min-width: 900px) {
  .shell { grid-template-columns: var(--side-w) 1fr; grid-template-rows: auto 1fr; }
  .topbar { grid-column: 1 / -1; }
  .sidenav { display: flex; flex-direction: column; gap: 2px; padding: 1rem .75rem; border-right: 1px solid var(--border); background: var(--surface); position: sticky; top: 61px; height: calc(100dvh - 61px); overflow: auto; }
  .sidenav a { display: flex; align-items: center; gap: .65rem; padding: .6rem .75rem; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .9rem; }
  .sidenav a svg { width: 20px; height: 20px; flex: 0 0 auto; }
  .sidenav a:hover { background: var(--surface-2); }
  .sidenav a.active { background: var(--brand-soft); color: var(--brand); }
  .sidenav .group { margin: .9rem .75rem .3rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; }
  .bottomnav { display: none; }
  .main { padding: 1.5rem 2rem 2.5rem; }
  .userchip { display: flex; }
}

/* ---------- Components ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.page-head p { margin: 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.card + .card { margin-top: 1rem; }
.card h2, .card h3 { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.grid > *, .kpis > *, .card, .main { min-width: 0; }
.main { overflow-x: clip; }
.card { overflow: hidden; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid-23 { grid-template-columns: 2fr 3fr; } .grid-32 { grid-template-columns: 3fr 2fr; } }
.kpis { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); margin-bottom: 1rem; }
@media (min-width: 700px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .kpis { grid-template-columns: repeat(6, 1fr); } }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .85rem .95rem; box-shadow: var(--shadow); min-width: 0; }
.kpi .label { font-size: .74rem; color: var(--ink-2); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.kpi .value { font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 800; letter-spacing: -.02em; margin-top: .15rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi .sub { font-size: .78rem; color: var(--ink-3); margin-top: .1rem; }
.kpi.ok .value { color: var(--ok); } .kpi.warn .value { color: var(--warn); } .kpi.bad .value { color: var(--bad); }

.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.b-ok { background: var(--ok-soft); color: var(--ok); } .b-warn { background: var(--warn-soft); color: var(--warn); } .b-bad { background: var(--bad-soft); color: var(--bad); } .b-info { background: var(--info-soft); color: var(--info); } .b-muted { background: var(--surface-2); color: var(--ink-2); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 1px solid var(--border); background: var(--surface); color: var(--ink); border-radius: var(--radius-s); padding: .6rem .95rem; font-weight: 600; cursor: pointer; min-height: 42px; text-decoration: none; transition: background .15s, transform .05s; }
.btn:hover { background: var(--surface-2); } .btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand-2); border-color: var(--brand-2); color: #fff; } .btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--bad); border-color: var(--bad); } .btn.sm { min-height: 34px; padding: .35rem .7rem; font-size: .85rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

.field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.field label { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: .74rem; color: var(--ink-3); }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-s); padding: .6rem .75rem; min-height: 42px; outline: none; }
.input:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea.input { min-height: 80px; resize: vertical; }
.form-grid { display: grid; gap: .8rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-grid { grid-template-columns: repeat(2, 1fr); } .form-grid .span-2 { grid-column: span 2; } }
@media (min-width: 1024px) { .form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .form-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.check { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem .6rem; border: 1px solid var(--border); border-radius: var(--radius-s); background: var(--surface); }
.check input { width: 20px; height: 20px; margin-top: .15rem; flex: 0 0 auto; accent-color: var(--brand-2); }
.check .ctl { font-size: .72rem; color: var(--ink-3); display: block; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius-s); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 560px; }
th, td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); background: var(--surface-2); position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
tbody tr.clickable { cursor: pointer; } tbody tr.clickable:hover { background: var(--surface-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Lista tipo tarjeta para móvil */
.cardlist { display: grid; gap: .6rem; }
.item { display: grid; grid-template-columns: 1fr auto; gap: .25rem .75rem; align-items: center; padding: .8rem .9rem; border: 1px solid var(--border); border-radius: var(--radius-s); background: var(--surface); cursor: pointer; }
.item:hover { background: var(--surface-2); }
.item .t { font-weight: 700; } .item .d { font-size: .8rem; color: var(--ink-2); grid-column: 1 / -1; }
.item .r { text-align: right; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .only-mobile { display: none !important; } }
@media (max-width: 899.98px) { .only-desktop { display: none !important; } }

.alert { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .8rem; border-radius: var(--radius-s); border: 1px solid var(--border); background: var(--surface); }
.alert .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: .4rem; flex: 0 0 auto; }
.alert.critico .dot, .alert.alto .dot { background: var(--bad); } .alert.medio .dot { background: var(--warn); } .alert.bajo .dot { background: var(--info); }
.alert .who { font-size: .75rem; color: var(--ink-3); font-weight: 600; }
.stack { display: grid; gap: .55rem; }

.rule { display: grid; grid-template-columns: auto 1fr; gap: .7rem; padding: .65rem .75rem; border-radius: var(--radius-s); border: 1px solid var(--border); }
.rule .ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: #fff; }
.rule.ok .ic { background: var(--ok); } .rule.aviso .ic { background: var(--warn); } .rule.fallo .ic { background: var(--bad); } .rule.pendiente .ic { background: var(--ink-3); }
.rule .rn { font-weight: 700; font-size: .85rem; } .rule .rm { font-size: .85rem; color: var(--ink-2); }

.verdict { padding: 1rem; border-radius: var(--radius); text-align: center; }
.verdict.compatible { background: var(--ok-soft); color: var(--ok); } .verdict.compatible_con_avisos { background: var(--warn-soft); color: var(--warn); } .verdict.incompatible { background: var(--bad-soft); color: var(--bad); }
.verdict .big { font-size: 1.6rem; font-weight: 800; }
.score { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }

.chart-box { position: relative; height: 240px; }
@media (min-width: 640px) { .chart-box { height: 280px; } }
.chart-box canvas { max-width: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .78rem; color: var(--ink-2); margin-top: .4rem; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .35rem; background: var(--c); vertical-align: -1px; }

.tabs { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 1px solid var(--border); margin-bottom: 1rem; scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: .6rem .9rem; font-weight: 600; color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap; cursor: pointer; }
.tabs button.active { color: var(--brand-2); border-color: var(--brand-2); }

.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 1rem + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: .7rem 1rem; border-radius: 10px; font-weight: 600; z-index: 60; box-shadow: var(--shadow); max-width: min(92vw, 480px); }
@media (min-width: 900px) { .toast { bottom: 1.5rem; } }
.toast.err { background: var(--bad); color: #fff; }

/* Drawer / modal */
.drawer { position: fixed; inset: 0; z-index: 50; display: grid; align-items: end; background: rgba(2,6,23,.55); }
.drawer .panel { background: var(--surface); border-radius: 18px 18px 0 0; max-height: 92dvh; overflow: auto; padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)); }
.drawer .panel .handle { width: 42px; height: 5px; border-radius: 3px; background: var(--border); margin: 0 auto .8rem; }
@media (min-width: 900px) { .drawer { align-items: center; justify-items: center; } .drawer .panel { width: min(900px, 94vw); border-radius: var(--radius); max-height: 88vh; padding: 1.5rem; } .drawer .panel .handle { display: none; } }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .8rem; }

.login { min-height: 100dvh; display: grid; place-items: center; padding: 1.5rem; background: radial-gradient(1200px 600px at 10% -10%, var(--brand-soft), transparent), var(--bg); }
.login .card { width: min(440px, 100%); }
.login .hero { text-align: center; margin-bottom: 1rem; }
.login .hero .logo { margin: 0 auto .6rem; width: 56px; height: 56px; font-size: 1.3rem; }
.demo { background: var(--surface-2); border-radius: var(--radius-s); padding: .6rem .8rem; font-size: .8rem; color: var(--ink-2); }

.timeline { display: grid; gap: .5rem; }
.timeline .ev { display: grid; grid-template-columns: 90px 1fr; gap: .6rem; font-size: .88rem; }
.timeline .ev .when { color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: .8rem; }

.poe .phase { margin-bottom: .8rem; }
.poe ol { margin: .3rem 0 0; padding-left: 1.2rem; } .poe li { margin: .2rem 0; }
.hashbox { font-family: var(--mono); font-size: .78rem; word-break: break-all; overflow-wrap: anywhere; background: var(--surface-2); padding: .5rem .6rem; border-radius: 8px; }
.progress { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; } .progress i { display: block; height: 100%; background: var(--s1); border-radius: 4px; }
.map-table td:first-child { font-weight: 700; white-space: nowrap; }
.empty { text-align: center; color: var(--ink-3); padding: 2rem 1rem; }
@media print { .topbar, .bottomnav, .sidenav, .btn { display: none !important; } .main { padding: 0; } .card { box-shadow: none; break-inside: avoid; } }

/* ===== Tablero renovado ===== */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 currentColor; } 50% { box-shadow: 0 0 0 5px transparent; } }
.dash-hero { --hc: var(--ok); position: relative; display: grid; gap: 1.1rem; padding: 1.2rem; margin-bottom: 1rem; border-radius: calc(var(--radius) + 4px); color: #fff; overflow: hidden;
  background: radial-gradient(500px 240px at 90% -20%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, #1d4fa0 0%, #2a78d6 55%, #1baf7a 120%); box-shadow: var(--shadow); animation: rise .45s ease both; }
.dash-hero.warn { background: radial-gradient(500px 240px at 90% -20%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, #1d4fa0 0%, #2a78d6 60%, #eda100 130%); }
.dash-hero.bad { background: radial-gradient(500px 240px at 90% -20%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, #1d4fa0 0%, #5b4fc4 60%, #e34948 130%); }
@media (min-width: 800px) { .dash-hero { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 1.5rem 1.8rem; } }
.dh-left h1 { margin: .5rem 0 .25rem; font-size: clamp(1.4rem, 4vw, 2rem); color: #fff; }
.dh-left p { margin: 0; opacity: .9; font-size: .92rem; }
.chip-live { display: inline-flex; align-items: center; gap: .45rem; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); padding: .25rem .7rem; border-radius: 99px; font-size: .78rem; font-weight: 600; backdrop-filter: blur(4px); }
.chip-live i { width: 8px; height: 8px; border-radius: 50%; background: #7dffb4; color: #7dffb4; animation: pulse 1.8s infinite; }
.dash-hero.warn .chip-live i { background: #ffd36a; color: #ffd36a; } .dash-hero.bad .chip-live i { background: #ff9c95; color: #ff9c95; }
.dh-right { display: flex; align-items: center; gap: 1.1rem; }
.gauge-wrap { position: relative; width: 150px; height: 150px; flex: 0 0 auto; }
.gauge-wrap canvas { width: 100% !important; height: 100% !important; }
.gauge-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge-center b { font-size: 1.15rem; line-height: 1.1; } .gauge-center span { font-size: .68rem; opacity: .85; text-transform: uppercase; letter-spacing: .05em; }
.dh-meta { display: grid; gap: .55rem; font-size: .85rem; min-width: 0; }
.dh-meta div { display: flex; flex-direction: column; } .dh-meta span { opacity: .8; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.dh-meta b.g { color: #7dffb4; } .dh-meta b.r { color: #ffb4ae; }
@media (max-width: 420px) { .gauge-wrap { width: 120px; height: 120px; } .dh-right { gap: .8rem; } }

.tiles { display: grid; gap: .8rem; grid-template-columns: 1fr; margin-bottom: 1rem; }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { --tc: var(--s1); position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); overflow: hidden; transition: transform .18s, box-shadow .18s; animation: rise .5s ease both; }
.tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tc); }
.tile:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(10,20,40,.14); }
.tile:nth-child(2) { animation-delay: .05s; } .tile:nth-child(3) { animation-delay: .1s; } .tile:nth-child(4) { animation-delay: .15s; } .tile:nth-child(5) { animation-delay: .2s; } .tile:nth-child(6) { animation-delay: .25s; }
.tile.blue { --tc: var(--s1); } .tile.teal { --tc: var(--s3); } .tile.violet { --tc: var(--s7); } .tile.amber { --tc: var(--s4); } .tile.red { --tc: var(--s8); }
.tile-top { display: flex; align-items: center; gap: .6rem; }
.tile-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--tc); background: color-mix(in srgb, var(--tc) 15%, transparent); flex: 0 0 auto; }
.tile-ic svg { width: 20px; height: 20px; }
.tile-label { font-size: .8rem; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.tile-value { font-size: clamp(1.7rem, 4.5vw, 2.1rem); font-weight: 800; line-height: 1.15; margin: .55rem 0 .3rem; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tile-value small { font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.tile-bar { height: 6px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin: .1rem 0 .55rem; }
.tile-bar i { display: block; height: 100%; background: var(--tc); border-radius: 4px; transition: width 1s ease; }
.tile-sub { font-size: .82rem; color: var(--ink-2); line-height: 1.45; }
.tile-sub b.g { color: var(--ok); } .tile-sub b.y { color: var(--warn); } .tile-sub b.r { color: var(--bad); }

.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; }
.card-head h2 { margin: 0; font-size: 1.02rem; }
.pill { display: inline-block; padding: .22rem .65rem; border-radius: 99px; font-size: .74rem; font-weight: 600; background: var(--surface-2); color: var(--ink-2); text-decoration: none; }
.pill.g { background: var(--ok-soft); color: var(--ok); } .pill.r { background: var(--bad-soft); color: var(--bad); } .pill.b { background: var(--info-soft); color: var(--info); } .pill.link:hover { background: var(--info-soft); color: var(--info); }
.grid-32, .grid-23 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.grid-32 > .card, .grid-23 > .card { margin-top: 0 !important; animation: rise .55s ease both; }
.small { font-size: .82rem; } .muted { color: var(--ink-2); }

.feed { display: grid; gap: .55rem; max-height: 440px; overflow-y: auto; }
.fitem { display: flex; gap: .7rem; align-items: flex-start; padding: .65rem .7rem; border-radius: 12px; background: var(--surface-2); border-left: 4px solid var(--info); cursor: pointer; transition: background .15s, transform .15s; }
.fitem:hover { transform: translateX(3px); }
.fitem.critico, .fitem.alto { border-left-color: var(--bad); background: var(--bad-soft); } .fitem.medio { border-left-color: var(--s4); background: var(--warn-soft); }
.fav { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); font-weight: 700; font-size: .78rem; color: var(--ink-2); flex: 0 0 auto; }
.fbody { min-width: 0; flex: 1; } .fhead { display: flex; flex-wrap: wrap; gap: .1rem .5rem; align-items: center; font-size: .85rem; }
.fhead span:not(.badge) { color: var(--ink-2); } .fhead .badge { margin-left: auto; }
.ftext { font-size: .84rem; margin-top: .15rem; color: var(--ink); overflow-wrap: anywhere; }
.empty { text-align: center; padding: 1.6rem 1rem; color: var(--ink-2); }
.meter { height: 6px; width: 90px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin-bottom: .2rem; }
.meter i { display: block; height: 100%; background: var(--s3); border-radius: 4px; } .meter i.r { background: var(--s8); }
.legend span::before { background: var(--c); }
@media (prefers-reduced-motion: reduce) { .dash-hero, .tile, .grid-32 > .card, .grid-23 > .card, .chip-live i { animation: none; } }
@media (min-width: 1024px) { .grid-32 { grid-template-columns: 3fr 2fr; } .grid-23 { grid-template-columns: 3fr 2fr; } }
.grid-23, .grid-32 { align-items: start; }
.gauge-center b { font-size: 1.05rem; } .gauge-center span { font-size: .6rem; }
@media (max-width: 420px) { .gauge-center b { font-size: .9rem; } .gauge-center span { font-size: .52rem; } .tile { padding: .8rem .9rem; } .tile-value { margin: .35rem 0 .2rem; } }

.tile-name { font-size: .78rem; color: var(--ink-3); margin: .15rem 0 0 2.1rem; font-weight: 500; }
