:root {
  --bg: #f5f3ee; --card: #ffffff; --ink: #1f2a27; --muted: #6b7773; --line: #e4e0d6;
  --accent: #2f7d6d; --accent-ink: #ffffff; --accent-soft: #e0efeb;
  --side-bg: #1f3b35; --side-ink: #d8e8e3;
  --warn: #b7791f; --warn-soft: #fbf0d9; --bad: #b4443a; --bad-soft: #f8e1de; --ok: #2f7d4f; --ok-soft: #dff0e5;
  --male: #3b6ea5; --female: #b5588a;
  --radius: 12px; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 14px rgba(0,0,0,.05);
}
:root:not([data-theme="light"]) { color-scheme: light dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15201d; --card: #1d2b27; --ink: #e8efec; --muted: #93a39d; --line: #2d3f39;
    --accent: #4fb39e; --accent-ink: #0d1d19; --accent-soft: #23433b;
    --side-bg: #0f1a17; --side-ink: #bcd0ca;
    --warn: #e2b04e; --warn-soft: #3d3220; --bad: #e27d72; --bad-soft: #402522; --ok: #6cc690; --ok-soft: #1f3a2a;
    --male: #7aa9de; --female: #de8fbb; --shadow: 0 1px 2px rgba(0,0,0,.4);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 "Segoe UI", system-ui, sans-serif; }
.app { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.side { background: var(--side-bg); color: var(--side-ink); padding: 22px 14px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; flex-direction: column; gap: 6px; align-items: stretch; padding: 0 6px 22px; color: #fff; }
.brand .wordmark { display: block; line-height: 0; }
.brand .wordmark img { width: 100%; height: auto; border-radius: 12px; display: block; }
.brand small { padding-left: 4px; }
@media (max-width: 980px) { .brand { flex-direction: row; align-items: center; } .brand .wordmark img { width: 150px; } }
.brand b { display: block; font-size: 16px; } .brand small { color: var(--side-ink); opacity: .8; }
.side nav { display: flex; flex-direction: column; gap: 4px; }
.side nav a { color: var(--side-ink); text-decoration: none; padding: 10px 12px; border-radius: 9px; font-weight: 500; }
.side nav a:hover { background: rgba(255,255,255,.08); }
.side nav a.on { background: var(--accent); color: var(--accent-ink); }
.side-foot { margin-top: auto; padding: 8px; font-size: 12px; display: flex; flex-direction: column; gap: 8px; }
.side-foot #clock { opacity: .7; }
.acct { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.acct[hidden] { display: none; }
.acct .plan { flex: none; text-decoration: none; }
.acct .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .85; }
.acct a, .acct .btn.link { color: var(--side-ink); }
.login-card { max-width: 440px; margin: 0; width: 100%; }
.landing { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; max-width: 980px; margin: 5vh auto; }
.landing.single { grid-template-columns: minmax(0, 640px); }
@media (max-width: 860px) { .landing { grid-template-columns: minmax(0, 1fr); margin-top: 16px; } .landing .pitch { order: 2; } }
.pitch h2 { margin: 10px 0 6px; font-size: 22px; line-height: 1.25; }
.ticks { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 26px; line-height: 1.4; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
.price { display: flex; align-items: center; gap: 14px; background: var(--bg); border: 1px solid var(--line, #e4e0d6); border-radius: 12px; padding: 12px 16px; margin: 16px 0; }
.price .big { font-size: 34px; font-weight: 800; color: var(--accent); line-height: 1; }
.lang-sel { width: 100%; padding: 6px 8px; border-radius: 8px; font-size: 13px; background: rgba(255,255,255,.1); color: var(--side-ink); border: 1px solid rgba(255,255,255,.22); cursor: pointer; }
.lang-sel option { color: #1f2a27; background: #fff; }
.main { padding: 28px 34px 60px; max-width: 1180px; width: 100%; outline: none; }
h1 { font-size: 26px; margin: 0 0 4px; letter-spacing: -.01em; }
h2 { font-size: 17px; margin: 0 0 12px; }
.sub { color: var(--muted); margin: 0 0 20px; }
.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 18px; }
.grid { display: grid; gap: 18px; } .g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 980px) { .g2,.g3,.g4 { grid-template-columns: 1fr 1fr; } .app { grid-template-columns: 1fr; } .side { position: static; height: auto; flex-direction: row; align-items: center; gap: 14px; flex-wrap: wrap; } .side nav { flex-direction: row; } .side-foot { display: none; } .brand { padding: 0; } }
@media (max-width: 640px) { .g2,.g3,.g4 { grid-template-columns: 1fr; } .main { padding: 18px 14px 50px; } }
.stat b { display: block; font-size: 30px; line-height: 1.1; } .stat span { color: var(--muted); font-size: 13px; }
.btn { font: inherit; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 8px 14px; border-radius: 9px; cursor: pointer; font-weight: 500; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--bad); } .btn.danger:hover { border-color: var(--bad); }
.btn.small { padding: 4px 10px; font-size: 13px; }
.btn.link { border: none; background: none; color: var(--accent); padding: 2px 4px; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; width: 100%; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.field { margin-bottom: 12px; } .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 3px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; } .filters > * { width: auto; min-width: 130px; } .filters input[type=search] { flex: 1; min-width: 220px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
th.chk, td.chk { width: 38px; text-align: center; padding-left: 8px; padding-right: 4px; cursor: pointer; }
td.chk input, th.chk input { width: 17px; height: 17px; padding: 0; accent-color: var(--accent); cursor: pointer; }
tbody tr.marked td { background: color-mix(in srgb, var(--accent) 24%, var(--card)); }
tbody tr.marked:hover td { background: color-mix(in srgb, var(--accent) 32%, var(--card)); }
tbody tr.marked td.chk { box-shadow: inset 4px 0 0 var(--accent); }
th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
th.sortable:hover { color: var(--ink); }
th.sortable .arrow { margin-left: 5px; font-size: 10px; opacity: .45; }
th.sortable[aria-sort="ascending"] .arrow, th.sortable[aria-sort="descending"] .arrow { opacity: 1; color: var(--accent); }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr.click { cursor: pointer; } tbody tr.click:hover { background: var(--accent-soft); }
td input, td select { padding: 4px 8px; font-size: 14px; }
.tablewrap { overflow-x: auto; }
a { color: var(--accent); } .name { font-weight: 600; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.badge.warn { background: var(--warn-soft); color: var(--warn); } .badge.bad { background: var(--bad-soft); color: var(--bad); } .badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.gray { background: var(--line); color: var(--muted); }
[class^="sex-"] { white-space: nowrap; }
.sex-macho { color: var(--male); font-weight: 600; } .sex-hembra { color: var(--female); font-weight: 600; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; margin: 0; } .kv dt { color: var(--muted); } .kv dd { margin: 0; }
.empty { color: var(--muted); text-align: center; padding: 28px 10px; }
.tabs { display: inline-flex; background: var(--line); border-radius: 10px; padding: 3px; gap: 2px; margin-bottom: 14px; }
.tabs button { border: none; background: none; font: inherit; padding: 6px 14px; border-radius: 8px; cursor: pointer; color: var(--muted); font-weight: 600; }
.tabs button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.pairhead { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.parent { border: 1px solid var(--line); border-left: 4px solid var(--male); border-radius: 10px; padding: 10px 14px; text-decoration: none; color: var(--ink); display: block; }
.parent.f { border-left-color: var(--female); } .parent:hover { background: var(--accent-soft); } .parent small { color: var(--muted); display: block; }
.clutch { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; background: color-mix(in srgb, var(--card) 70%, var(--bg)); }
.clutch h3 { margin: 0 0 8px; font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
/* ---------- calculadora genética (compacta) ---------- */
.calc-title { margin-bottom: 10px; } .calc-title h1 { font-size: 22px; } .calc-title .sub { margin-bottom: 0; font-size: 13px; }
.calc-pars { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.cpar { padding: 10px 14px 8px; margin-bottom: 0; }
.cpar-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; } .cpar-head h2 { margin: 0; font-size: 16px; }
.mini-check { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 500; color: var(--muted); margin: 0; cursor: pointer; } .mini-check input { width: auto; padding: 0; }
.cpick { display: grid; grid-template-columns: 38% 1fr; gap: 6px; margin-bottom: 6px; } .cpick input, .cpick select { padding: 4px 8px; font-size: 13px; }
.cbody { display: flex; gap: 10px; align-items: flex-start; }
.cimg { flex: none; width: 92px; height: 92px; background: color-mix(in srgb, var(--accent-soft) 55%, var(--card)); border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; overflow: hidden; } .cimg img { display: block; }
.noimg { color: var(--muted); font-size: 11px; text-align: center; padding: 4px; } .noimg.sm { width: 64px; height: 64px; display: grid; place-items: center; }
.ctable { flex: 1; min-width: 0; border-collapse: collapse; } .ctable th, .ctable td { padding: 2px 3px; border: none; font-size: 12.5px; }
.ctable thead th { font-size: 10.5px; padding: 0 3px 2px; } .ctable tbody th { text-transform: none; letter-spacing: 0; font-size: 12.5px; color: var(--ink); white-space: nowrap; cursor: help; } .ctable th small { color: var(--muted); font-weight: 500; }
.ctable select { padding: 2px 4px; font-size: 12.5px; border-radius: 7px; }
.cdesc { font-size: 12px; color: var(--muted); margin: 5px 0 2px; line-height: 1.3; min-height: 16px; } .cnotes { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; min-height: 22px; } .cnotes .btn.link { font-size: 12px; padding: 0 4px; }
.cres-save { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; font-size: 12.5px; }
.pred-card { margin-top: 18px; } .pred-card .cres-cols { margin-top: 6px; } .pred-card h3 { margin: 0 0 6px; font-size: 14px; } .pred-card h3 small { color: var(--muted); font-weight: 500; }
.calc-warn { background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); border-radius: 12px; padding: 8px 14px; margin-bottom: 12px; font-size: 13px; line-height: 1.35; }
.calc-warn ul { margin: 3px 0 4px; padding-left: 20px; } .warn-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.cres { padding: 10px 14px 12px; margin-bottom: 0; } .cres-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.cres-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .cres h3 { margin: 0 0 6px; font-size: 14px; } .cres h3 small { color: var(--muted); font-weight: 500; }
.cgrid { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; min-height: 130px; overflow-y: auto; padding-right: 2px; }
.cm { width: 108px; text-align: center; background: color-mix(in srgb, var(--accent-soft) 40%, var(--card)); border: 1px solid var(--line); border-radius: 10px; padding: 4px 3px 5px; }
.cm img { display: block; margin: 0 auto; } .cm b { display: block; font-size: 14px; line-height: 1.15; } .cm span { display: block; font-size: 10.5px; color: var(--muted); line-height: 1.2; } .cm small { display: block; font-size: 10px; color: var(--warn); line-height: 1.15; }
@media (max-width: 900px) { .calc-pars, .cres-cols { grid-template-columns: 1fr; } }
.thumb { object-fit: contain; border-radius: 7px; background: color-mix(in srgb, var(--accent-soft) 60%, var(--card)); vertical-align: middle; margin-right: 6px; flex: none; }
.app > * { min-width: 0; } .main { min-width: 0; }
.vline { display: inline-flex; align-items: center; gap: 6px; } .vline .thumb { margin: 0; border-radius: 5px; }
.vcell { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; min-width: 96px; } .vcell .thumb { margin: 0; }
.pairhead > * { min-width: 0; }
.parent { display: flex; align-items: center; justify-content: space-between; gap: 10px; } .parent .pinfo { min-width: 0; overflow-wrap: anywhere; } .parent .pinfo > * { display: block; }
.parent .thumb { margin: 0 0 0 4px; border: 1px solid var(--line); }
.datos-wrap { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-start; } .datos-wrap .kv { flex: 1 1 230px; min-width: 0; grid-template-columns: 110px 1fr; }
.bird-pics { display: flex; flex-direction: column; gap: 8px; }
.bird-pic { margin: 0; width: 150px; flex: none; text-align: center; background: color-mix(in srgb, var(--accent-soft) 55%, var(--card)); border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 4px; }
.bird-pic img { width: 100%; height: auto; display: block; border-radius: 8px; }
.bird-pic figcaption { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.25; }
.bird-pic.nopic { padding: 12px 8px; } .bird-pics .bird-pic { width: 130px; }
@media (max-width: 640px) { .datos-wrap { flex-direction: column; } }
.ring { display: inline-block; font-size: 12px; font-weight: 600; padding: 0 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; vertical-align: baseline; }
.clutch td { padding: 7px 6px; font-size: 14px; } .clutch th { padding: 6px; }
.clutch td input[type=date] { padding: 4px 6px; } .clutch td .name { word-break: normal; }
.clutch-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 2px 0 10px; padding: 8px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 9px; }
.clutch-sum .lbl { font-weight: 700; margin-right: 4px; } .clutch-sum .sexes { margin-left: auto; display: flex; gap: 12px; }
.addegg { display: flex; gap: 8px; align-items: center; margin-top: 10px; } .addegg input { width: 170px; }
.tree { display: flex; align-items: center; overflow-x: auto; padding: 6px 2px; }
.tn { display: flex; align-items: center; } .tn-par { display: flex; flex-direction: column; gap: 10px; margin-left: 26px; position: relative; }
.tn-par::before { content: ""; position: absolute; left: -14px; top: 22px; bottom: 22px; border-left: 2px solid var(--line); }
.tn-par > .tn { position: relative; } .tn-par > .tn::before { content: ""; position: absolute; left: -14px; width: 14px; top: 50%; border-top: 2px solid var(--line); }
.tn + .tn-par { }
.node { border: 1px solid var(--line); border-radius: 9px; padding: 6px 10px; min-width: 150px; background: var(--card); font-size: 13px; text-decoration: none; color: var(--ink); display: block; position: relative; }
.node.m { border-left: 4px solid var(--male); } .node.f { border-left: 4px solid var(--female); } .node.self { background: var(--accent-soft); border-color: var(--accent); font-weight: 700; }
.node.unk { color: var(--muted); border-style: dashed; background: transparent; } a.node:hover { border-color: var(--accent); }
.node small { display: block; color: var(--muted); }
#modalRoot .back { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 14px; overflow: auto; z-index: 20; }
.modal { background: var(--card); border-radius: 14px; padding: 22px 24px; width: 100%; max-width: 560px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.modal h2 { font-size: 19px; } .modal .btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
#toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 30; }
.toast { background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; max-width: 380px; box-shadow: var(--shadow); }
.toast.err { background: var(--bad); color: #fff; }
.list { list-style: none; margin: 0; padding: 0; } .list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: center; } .list li:last-child { border-bottom: none; }
.vars { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chip { background: var(--accent-soft); color: var(--accent); border-radius: 99px; padding: 2px 4px 2px 11px; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.chip button { border: none; background: none; cursor: pointer; color: inherit; font-size: 15px; line-height: 1; padding: 0 5px; border-radius: 50%; }
.hidden { display: none !important; }

/* ---------- estadísticas ---------- */
:root { --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s8: #e34948; --gray: #898781; --vgrid: #e1e0d9; --vaxis: #c3c2b7; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s8: #e66767; --vgrid: #2c2c2a; --vaxis: #383835; }
}
.stat-top { grid-template-columns: minmax(240px, 1fr) 2fr; margin-bottom: 18px; align-items: stretch; }
.stat-top .card, .tiles + .grid .card { margin-bottom: 0; }
.hero { display: flex; flex-direction: column; justify-content: center; background: linear-gradient(160deg, var(--card), color-mix(in srgb, var(--s1) 10%, var(--card))); }
.hero-l { color: var(--muted); font-weight: 600; }
.hero-n { font-size: 64px; line-height: 1.05; letter-spacing: -.02em; color: var(--ink); margin: 6px 0 0; }
.hero-s { font-size: 17px; font-weight: 600; }
.hero-p { color: var(--muted); margin-top: 10px; }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.tile span { color: var(--muted); font-size: 13px; font-weight: 600; }
.tile b { font-size: 28px; line-height: 1.2; }
.tile small { color: var(--muted); font-size: 12px; }
@media (max-width: 980px) { .stat-top { grid-template-columns: 1fr; } .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fn-row { display: grid; grid-template-columns: 150px 1fr 190px; gap: 12px; align-items: center; margin-bottom: 10px; }
.fn-label { font-weight: 600; }
.fn-track { height: 22px; background: color-mix(in srgb, var(--line) 55%, var(--card)); border-radius: 4px; overflow: hidden; }
.fn-bar { height: 100%; border-radius: 0 4px 4px 0; min-width: 2px; transition: width .45s ease; }
.fn-val { display: flex; flex-direction: column; line-height: 1.2; } .fn-val b { font-size: 18px; } .fn-val .muted { font-size: 12px; }
@media (max-width: 640px) { .fn-row { grid-template-columns: 1fr; gap: 4px; } }
.muted { color: var(--muted); } .num { text-align: right; font-variant-numeric: tabular-nums; } th.num { text-align: right; }
.key { display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-right: 8px; vertical-align: middle; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.legend-table { width: auto; min-width: 260px; font-size: 14px; } .legend-table td { padding: 5px 12px 5px 0; border: none; }
.donut-wrap { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.viz-svg { display: block; max-width: 100%; }
.viz-svg .grid { stroke: var(--vgrid); stroke-width: 1; } .viz-svg .axis { stroke: var(--vaxis); stroke-width: 1; }
.viz-svg .tick { fill: var(--muted); font-size: 11px; } .viz-svg .tick-sel { fill: var(--ink); font-weight: 700; }
.viz-svg .val { fill: var(--ink); font-size: 11px; font-weight: 700; }
.viz-svg .donut-n { fill: var(--ink); font-size: 26px; font-weight: 700; }
.viz-svg .hit { cursor: pointer; outline: none; } .viz-svg .hit-bg { fill: transparent; } .viz-svg .hit:hover .hit-bg, .viz-svg .hit:focus-visible .hit-bg { fill: color-mix(in srgb, var(--ink) 6%, transparent); }
.viz-svg .sel-bg { fill: color-mix(in srgb, var(--s1) 10%, transparent); }
.viz-svg .arc { transition: stroke-width .15s; outline: none; } .viz-svg .arc:hover, .viz-svg .arc:focus-visible { stroke-width: 26; }
.scrollx { overflow-x: auto; }
.stack { display: flex; gap: 2px; height: 30px; } .stack .seg { min-width: 3px; border-radius: 4px; outline: none; transition: filter .15s; } .stack .seg:first-child { border-radius: 4px 0 0 4px; } .stack .seg:last-child { border-radius: 0 4px 4px 0; } .stack .seg:only-child { border-radius: 4px; }
.stack .seg:hover, .stack .seg:focus-visible, .fn-row:hover .fn-bar { filter: brightness(1.12); }
.tabla-datos { margin-top: 10px; } .tabla-datos summary { cursor: pointer; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.viz-tip { position: fixed; z-index: 40; pointer-events: none; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; box-shadow: 0 6px 24px rgba(0,0,0,.2); font-size: 13px; min-width: 150px; }
.viz-tip .tt { font-weight: 700; margin-bottom: 5px; } .viz-tip .tr { display: flex; align-items: center; gap: 8px; } .viz-tip .tr i { width: 10px; height: 3px; border-radius: 2px; flex: none; } .viz-tip .tr b { min-width: 44px; text-align: right; white-space: nowrap; } .viz-tip .tr span { white-space: nowrap; } .viz-tip .tr span { color: var(--muted); }
#statsBody { transition: opacity .15s; }
