:root {
  --bg: #0d0e10; --panel: #131417; --raise: #191a1e; --line: #25272c; --line2: #33363c; --tx: #ebecee; --mut: #8d919a; --dim: #5d616a;
  --brand: #ece9e2; --ok: #62c996; --err: #ef6f62; --amb: #e6b04a; --info: #8fb4e8;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace; --sans: 'Geist', system-ui, 'Segoe UI', sans-serif;
  --r: 12px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--tx); font: 400 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; font-feature-settings: 'tnum'; }
button, select, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
#app { height: 100%; display: flex; flex-direction: column; }
#main { flex: 1; min-height: 0; position: relative; }
.view { position: absolute; inset: 0; overflow: auto; }
#v-editor { overflow: hidden; }

/* barra superior */
.top { height: 56px; display: flex; align-items: center; gap: 24px; padding: 0 20px; border-bottom: 1px solid var(--line); background: var(--bg); flex: none; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--brand); text-decoration: none; }
.logo { width: 28px; height: 28px; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand b { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.brand small { font-size: 11px; color: var(--mut); letter-spacing: 0.04em; }
.wf { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--mut); }
.wf .sl { color: var(--dim); }
.wf h1 { font-size: 14px; font-weight: 500; color: var(--tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabs-top { display: flex; gap: 4px; margin-left: auto; }
.tabs-top a { color: var(--mut); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; min-height: 36px; display: flex; align-items: center; }
.tabs-top a:hover { color: var(--tx); background: var(--raise); }
.tabs-top a[aria-current="page"] { color: var(--tx); background: var(--raise); box-shadow: inset 0 0 0 1px var(--line2); }
.sw { display: flex; align-items: center; gap: 10px; background: none; border: 1px solid var(--line2); border-radius: 999px; padding: 4px 12px 4px 4px; height: 36px; }
.sw .knob { width: 28px; height: 20px; border-radius: 999px; background: var(--ok); position: relative; transition: background 0.2s; }
.sw .knob::after { content: ''; position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; background: #0d0e10; transition: transform 0.2s; }
.sw[aria-checked="false"] .knob { background: var(--line2); }
.sw[aria-checked="false"] .knob::after { transform: translateX(-8px); background: var(--mut); }
.sw .lbl { font-size: 13px; font-weight: 500; }

/* botones y campos */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--line2); background: var(--raise); border-radius: 8px; font-weight: 500; font-size: 13px; transition: background 0.15s, border-color 0.15s; white-space: nowrap; }
.btn:hover { background: #202228; border-color: #444850; }
.btn.pri { background: var(--brand); color: #0d0e10; border-color: var(--brand); }
.btn.pri:hover { background: #fff; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12px; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn.busy svg { display: none; }
.btn.busy::before { content: ''; width: 14px; height: 14px; border: 2px solid #0d0e1055; border-top-color: #0d0e10; border-radius: 50%; animation: sp 0.7s linear infinite; }
.fld { display: flex; flex-direction: column; gap: 2px; }
.fld span { font-size: 11px; color: var(--mut); letter-spacing: 0.02em; }
select { height: 36px; background: var(--raise); border: 1px solid var(--line2); border-radius: 8px; padding: 0 28px 0 10px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238d919a' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; min-width: 150px; }
.seg { display: inline-flex; background: var(--raise); border: 1px solid var(--line); border-radius: 8px; padding: 2px; gap: 2px; }
.seg button { border: 0; background: none; padding: 0 10px; height: 28px; border-radius: 6px; color: var(--mut); font-size: 12px; font-weight: 500; white-space: nowrap; }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: #2a2c32; color: var(--tx); }
.seg button span { color: var(--dim); margin-left: 4px; font-family: var(--mono); font-size: 11px; }

/* chips */
.chip { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--raise); border: 1px solid var(--line2); color: var(--mut); margin-right: 6px; }
.chip .d, .runchip .d { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
.chip.ok { color: var(--ok); border-color: #2c5a44; background: #12231b; } .chip.ok .d { background: var(--ok); }
.chip.error { color: var(--err); border-color: #6a322c; background: #251512; } .chip.error .d { background: var(--err); }
.chip.retry, .chip.amber { color: var(--amb); border-color: #62501f; background: #231d0f; } .chip.retry .d { background: var(--amb); }
.chip.mono { font-family: var(--mono); font-size: 11.5px; }
.chip.skipped { color: var(--mut); }
.runchip { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 500; border: 1px solid transparent; }
.runchip:empty { display: none; }
.runchip em { font-style: normal; font-family: var(--mono); font-size: 12px; opacity: 0.75; }
.runchip.ok { color: var(--ok); background: #12231b; border-color: #2c5a44; } .runchip.ok .d { background: var(--ok); }
.runchip.recuperada { color: var(--amb); background: #231d0f; border-color: #62501f; } .runchip.recuperada .d { background: var(--amb); }
.runchip.error { color: var(--err); background: #251512; border-color: #6a322c; } .runchip.error .d { background: var(--err); }
.runchip.live { color: var(--tx); background: var(--raise); border-color: var(--line2); }
.spin { width: 13px; height: 13px; border: 2px solid #ffffff33; border-top-color: var(--brand); border-radius: 50%; display: inline-block; animation: sp 0.7s linear infinite; }
.spin.amber { border-top-color: var(--amb); border-color: #e6b04a33; border-top-color: var(--amb); }
@keyframes sp { to { transform: rotate(360deg); } }

/* editor */
.ed { display: flex; height: 100%; }
.cv-col { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cv-bar { display: flex; align-items: flex-end; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex: none; flex-wrap: wrap; }
.cv-bar .btn.pri { height: 36px; }
.canvas { flex: 1; position: relative; overflow: hidden; touch-action: none; cursor: grab; background-color: #0b0c0e; background-image: radial-gradient(#23252a 1px, transparent 1.2px); background-size: 24px 24px; outline: none; }
.canvas.grab { cursor: grabbing; }
.layer { position: absolute; left: 0; top: 0; transform-origin: 0 0; width: 2200px; height: 760px; }
.edges { position: absolute; left: 0; top: 0; width: 2200px; height: 760px; overflow: visible; pointer-events: none; }
.edges .ed { fill: none; stroke: #3b3e45; stroke-width: 1.6; transition: stroke 0.25s; }
.edges .ed.err { stroke-dasharray: 5 5; stroke: #5a3430; }
.edges .ed.retry { stroke-dasharray: 5 5; stroke: #5a4a22; }
.edges .ed.on { stroke: var(--ok); stroke-width: 2; }
.edges .ed.err.on { stroke: var(--err); } .edges .ed.retry.on { stroke: var(--amb); }
.edges .ed.live { stroke: var(--brand); stroke-dasharray: 6 6; animation: dash 0.5s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -12; } }
.edges .el { font: 500 11px var(--sans); fill: var(--dim); } .edges .el.on { fill: var(--mut); }
#nodes { position: absolute; inset: 0; }
.nd { position: absolute; width: 208px; height: 76px; background: var(--panel); border: 1px solid var(--line2); border-radius: var(--r); padding: 12px 28px 12px 12px; display: flex; gap: 10px; align-items: flex-start; cursor: pointer; user-select: none; transition: border-color 0.2s, box-shadow 0.2s, opacity 0.2s; }
.nd:hover { border-color: #4a4e56; }
.nd .ic { width: 32px; height: 32px; border-radius: 9px; background: var(--raise); display: grid; place-items: center; flex: none; color: var(--tx); border: 1px solid var(--line); }
.nd .ic svg { width: 18px; height: 18px; }
.nd .tx b, .nd .tx small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd .tx { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.nd .tx b { font-size: 13px; font-weight: 600; line-height: 1.25; letter-spacing: -0.005em; }
.nd .tx small { font-size: 11.5px; color: var(--mut); line-height: 1.3; }
.nd .bd { position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; display: grid; place-items: center; }
.nd .bd svg { width: 14px; height: 14px; stroke-width: 2.4; }
.nd .ms { position: absolute; right: 10px; bottom: 8px; font: 400 11px var(--mono); color: var(--dim); }
.nd[data-s="ok"] { border-color: #2c5a44; } .nd[data-s="ok"] .bd { color: var(--ok); }
.nd[data-s="error"] { border-color: #7b362f; background: #1b1312; } .nd[data-s="error"] .bd { color: var(--err); }
.nd[data-s="running"], .nd[data-s="retry"] { border-color: var(--brand); box-shadow: 0 0 0 4px #ece9e214; }
.nd[data-s="retry"] { border-color: var(--amb); box-shadow: 0 0 0 4px #e6b04a1c; }
.nd[data-s="skipped"] { opacity: 0.42; } .nd[data-s="skipped"] .bd { color: var(--dim); }
.nd[data-sel="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--brand); }
.pt { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid #4a4e56; }
.pt.in { left: -6px; top: 33px; } .pt.out { right: -6px; top: 33px; } .pt.out.a { top: 19px; } .pt.out.b { top: 47px; }
.pt.er { left: 73px; bottom: -6px; top: auto; border-color: #7b362f; }
.nd[data-s="ok"] .pt.out { border-color: var(--ok); }
.bub { position: absolute; right: -10px; top: 7px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ok); color: #08140e; font: 600 11px/18px var(--mono); text-align: center; z-index: 2;  }
.zoom { position: absolute; right: 12px; bottom: 12px; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; }
.zoom button { width: 36px; height: 36px; background: none; border: 0; display: grid; place-items: center; color: var(--mut); }
.zoom button:hover { background: var(--raise); color: var(--tx); }
.zoom button + button { border-top: 1px solid var(--line); }
.hint { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); background: var(--panel); border: 1px solid var(--line2); border-radius: 999px; padding: 8px 16px; color: var(--mut); font-size: 13px; white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; }
.hint b { color: var(--tx); font-weight: 500; }

/* registro */
.logp { flex: none; border-top: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; height: 44px; }
.logp.open { height: 216px; }
.lh { display: flex; align-items: center; gap: 12px; padding: 0 12px; height: 44px; flex: none; }
.lt { display: flex; align-items: center; gap: 8px; background: none; border: 0; height: 44px; color: var(--mut); padding: 0 4px; }
.lt b { white-space: nowrap; color: var(--tx); font-weight: 500; font-size: 13px; }
.lt .n { background: var(--raise); border: 1px solid var(--line2); border-radius: 999px; font: 500 11px var(--mono); padding: 1px 7px; color: var(--mut); }
.lt .cv { transition: transform 0.2s; } .logp.open .lt .cv { transform: rotate(180deg); }
.lh .seg { margin-left: auto; }
.lb { flex: 1; overflow: auto; font: 400 12.5px/1.6 var(--mono); padding: 0 12px 10px; }
.ln { display: grid; grid-template-columns: 100px 54px 190px 1fr; gap: 10px; padding: 2px 6px; border-radius: 6px; cursor: pointer; align-items: baseline; }
.ln:hover { background: var(--raise); }
.ln time { color: var(--dim); } .ln .lv { font-weight: 500; font-size: 11px; letter-spacing: 0.04em; } .ln .nm { color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--sans); }
.ln .ms { color: var(--tx); overflow-wrap: anywhere; }
.ln.info .lv { color: var(--info); } .ln.warn .lv { color: var(--amb); } .ln.error .lv { color: var(--err); } .ln.error .ms { color: #ffb0a7; }
.lempty { color: var(--mut); font: 400 13px var(--sans); padding: 18px 6px; }

/* inspector */
.insp { width: 420px; flex: none; border-left: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; min-height: 0; }
.ih { display: flex; align-items: center; gap: 12px; padding: 16px 20px 14px; }
.ih .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--raise); border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.ih .ic svg { width: 20px; height: 20px; }
.ih h2 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.ih p { display: flex; flex-wrap: wrap; gap: 4px 0; }
.back { display: none; }
.errbox { margin: 0 20px 12px; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: #251512; border: 1px solid #6a322c; color: #ffb0a7; border-radius: 8px; font-size: 13px; }
.tabs { display: flex; gap: 20px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.tabs button { background: none; border: 0; height: 40px; color: var(--mut); font-weight: 500; position: relative; padding: 0; }
.tabs button[aria-selected="true"] { color: var(--tx); }
.tabs button[aria-selected="true"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand); }
.ib { flex: 1; min-height: 0; overflow: auto; padding: 14px 20px 20px; display: flex; flex-direction: column; }
.dbar { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.srch { flex: 1; min-width: 110px; position: relative; display: block; }
.srch svg { position: absolute; left: 9px; top: 9px; color: var(--dim); }
.srch input { width: 100%; height: 30px; background: var(--raise); border: 1px solid var(--line2); border-radius: 8px; padding: 0 8px 0 30px; font-size: 12.5px; }
.mcount { font-size: 12px; color: var(--mut); margin-bottom: 8px; }
.dbody { flex: 1; min-height: 0; }
pre.json { margin: 0; font: 400 12.5px/1.6 var(--mono); background: #0b0c0e; border: 1px solid var(--line); border-radius: 10px; padding: 14px; white-space: pre-wrap; overflow-wrap: anywhere; color: #c8cad0; }
.j-k { color: #9fb5d6; } .j-s { color: #a9d9b9; } .j-v { color: #e6b04a; } .j-b { color: #d58ab0; } .j-n { color: var(--dim); font-style: normal; }
mark { background: #e6b04a44; color: #fff; border-radius: 3px; padding: 0 1px; }
table.kv { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.kv th, table.kv td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.kv th { font: 400 12px var(--mono); color: var(--mut); width: 42%; padding-right: 12px; overflow-wrap: anywhere; }
table.kv td { font-family: var(--mono); overflow-wrap: anywhere; }
.set { margin: 0; display: grid; gap: 0; }
.set div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.set div.full { grid-template-columns: 1fr; gap: 6px; }
.set dt { color: var(--mut); font-size: 12.5px; } .set dd { margin: 0; overflow-wrap: anywhere; }
.set blockquote { margin: 0; padding: 12px 14px; background: #0b0c0e; border: 1px solid var(--line); border-radius: 10px; font: 400 12.5px/1.6 var(--mono); color: #c8cad0; }
.nlog { list-style: none; margin: 0; padding: 0; font: 400 12.5px/1.6 var(--mono); }
.nlog li { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.nlog time { color: var(--dim); } .nlog .error span { color: #ffb0a7; } .nlog .warn span { color: var(--amb); }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 36px 20px; color: var(--mut); }
.empty b { color: var(--tx); font-weight: 500; font-size: 14px; } .empty p { max-width: 320px; font-size: 13px; }
.empty.big { padding: 80px 24px; flex: 1; justify-content: center; }
.eico { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line2); display: grid; place-items: center; margin-bottom: 6px; color: var(--mut); background: var(--raise); }
.empty .btn { margin-top: 10px; }
.empty.sm { padding: 24px; }
.edform { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.help { color: var(--mut); font-size: 13px; }
.edform textarea { width: 100%; min-height: 240px; flex: 1; background: #0b0c0e; border: 1px solid var(--line2); border-radius: 10px; padding: 12px; font: 400 12.5px/1.6 var(--mono); resize: vertical; color: #c8cad0; }
.edform textarea.bad { border-color: var(--err); }
.ferr { color: #ffb0a7; font-size: 12.5px; min-height: 0; }
.ferr:empty { display: none; }
.edform .row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ejecuciones */
.ex { max-width: 1120px; margin: 0 auto; padding: 32px 24px 48px; }
.exh { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.exh h1 { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 4px; }
.exh p { color: var(--mut); }
.ext { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; font-weight: 500; color: var(--mut); padding: 12px 16px; border-bottom: 1px solid var(--line); letter-spacing: 0.02em; }
.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { cursor: pointer; } .tbl tbody tr:hover { background: var(--raise); }
.tbl td b { font-weight: 500; display: block; } .tbl td small { color: var(--mut); font-size: 12.5px; font-family: var(--mono); }
.tbl .num { text-align: right; font-family: var(--mono); font-size: 13px; } .tbl th.num { text-align: right; } .tbl .a { text-align: right; width: 64px; }
.skel { padding: 8px 16px; } .skel i { display: block; height: 52px; margin: 8px 0; border-radius: 8px; background: linear-gradient(90deg, var(--raise), #202228, var(--raise)); background-size: 200% 100%; animation: sh 1.2s infinite; }
@keyframes sh { to { background-position: -200% 0; } }

/* resultados */
.rs { max-width: 1120px; margin: 0 auto; padding: 40px 24px 72px; display: flex; flex-direction: column; gap: 56px; }
.hero { display: grid; grid-template-columns: 1.08fr 1fr; gap: 48px; align-items: center; }
.eyebrow { font: 500 12px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--mut); margin-bottom: 16px; }
.hero h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 600; margin-bottom: 20px; }
.lead { color: #b4b7be; font-size: 17px; line-height: 1.55; max-width: 520px; }
.ctl { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; max-width: 460px; }
.ctl label { display: flex; justify-content: space-between; font-size: 13px; color: var(--mut); }
.ctl output { color: var(--tx); font: 500 14px var(--mono); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; --p: 38%; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--brand) var(--p), var(--line2) var(--p)); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line2); } input[type=range]::-moz-range-progress { height: 4px; background: var(--brand); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--brand); margin-top: -9px; }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--brand); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--brand); }
.hp { margin: 0; position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4/4.2; border: 1px solid var(--line2); }
.hp img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.9); }
.hp::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, #0d0e10cc); }
.hp figcaption { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.hp figcaption b { font: 500 12px var(--mono); letter-spacing: 0.04em; color: var(--brand); } .hp figcaption span { color: #b4b7be; font-size: 13px; }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.big { padding: 24px 24px 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.big:last-child { border-right: 0; }
.big span { color: var(--mut); font-size: 13px; }
.big b { font-size: 44px; line-height: 1; letter-spacing: -0.03em; font-weight: 600; white-space: nowrap; }
.big b small { font-size: 18px; color: var(--mut); font-weight: 500; letter-spacing: 0; }
.big p { color: var(--mut); font-size: 12.5px; }
.ch h2 { font-size: 24px; letter-spacing: -0.02em; font-weight: 600; margin-bottom: 6px; } .ch p { color: var(--mut); margin-bottom: 20px; }
.tb { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); overflow: hidden; }
.tr { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; padding: 14px 24px; border-bottom: 1px solid var(--line); align-items: center; }
.tr.th { font-size: 12px; color: var(--mut); padding-top: 12px; padding-bottom: 12px; } .tr:last-child { border-bottom: 0; }
.tr .c { text-align: left; } .tr .pn { font-size: 14px; }
.bar { display: flex; align-items: center; gap: 12px; position: relative; }
.bar i { display: block; height: 8px; border-radius: 4px; width: var(--w); min-width: 0; background: var(--line2); flex: none; max-width: 60%; }
.bar em { font: 400 12.5px var(--mono); font-style: normal; color: var(--mut); white-space: nowrap; }
.bar.af i { background: var(--ok); } .bar.af em { color: var(--tx); }
.tr.tt { background: var(--raise); font-weight: 600; } .tr.tt .c { font-family: var(--mono); font-weight: 500; }
.chart { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: 20px 16px 8px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid line { stroke: var(--line); } .chart text { fill: var(--mut); font: 400 11px var(--mono); }
.chart .area { fill: #62c99614; } .chart .ln { fill: none; stroke: var(--ok); stroke-width: 2; stroke-linejoin: round; }
.chart circle { fill: var(--panel); stroke: var(--ok); stroke-width: 1.6; } .chart circle.last { fill: var(--ok); }
.chart .lab { fill: var(--tx); font: 500 13px var(--mono); }
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; border-top: 1px solid var(--line); padding-top: 32px; }
.notes h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.notes ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; color: #b4b7be; }
.notes li { padding-left: 18px; position: relative; } .notes li::before { content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 1px; background: var(--mut); }

/* pausa y foto */
body.paused .btn.pri#btnRun { opacity: 0.9; }
body.foto * { animation-duration: 0s !important; transition: none !important; }

/* celular */
@media (max-width: 1100px) { .insp { width: 400px; } .hero { grid-template-columns: 1fr; gap: 32px; } .hp { aspect-ratio: 16/10; } .nums { grid-template-columns: repeat(2, 1fr); } .big:nth-child(2) { border-right: 0; } .big:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .notes { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 760px) {
  body { font-size: 14px; }
  .top { height: auto; flex-wrap: wrap; gap: 8px 12px; padding: 10px 16px 0; }
  .wf { display: none; }
  .tabs-top { order: 4; width: 100%; margin: 0; border-top: 1px solid var(--line); margin-top: 2px; } .tabs-top a { flex: 1; justify-content: center; border-radius: 0; min-height: 44px; }
  .tabs-top a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brand); background: none; }
  .sw { margin-left: auto; height: 44px; }
  .brand { min-height: 44px; }
  .cv-bar { padding: 10px 16px; gap: 8px; flex-wrap: nowrap; } .cv-bar .fld { flex: 1 1 50%; min-width: 0; } .fld span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .cv-bar select { width: 100%; min-width: 0; height: 44px; }
  .cv-bar .btn.pri { position: absolute; left: 16px; right: 76px; bottom: 56px; height: 48px; z-index: 5; box-shadow: 0 8px 24px #000a; }
  .runchip { position: absolute; left: 16px; top: 66px; z-index: 5; margin: 0; background: #131417ee; }
  .zoom { bottom: 56px; } .zoom button { width: 44px; height: 44px; }
  .logp { height: 44px; } .logp.open { height: 168px; }
  .lh { padding: 0 8px; } .lh .seg button { padding: 0 8px; }
  .lh .seg button:nth-child(2) { display: none; }
  .ln { grid-template-columns: 1fr; gap: 0; padding: 6px; } .ln time, .ln .nm { display: none; } .ln .lv { display: inline-block; margin-right: 8px; } .ln { display: block; }
  .insp { position: fixed; left: 0; right: 0; bottom: 0; width: auto; height: 78vh; border-left: 0; border-top: 1px solid var(--line2); border-radius: 16px 16px 0 0; transform: translateY(105%); transition: transform 0.25s; z-index: 30; box-shadow: 0 -20px 60px #000a; }
  body.insp-open .insp { transform: none; }
  body.foto .insp { transition: none; }
  .back { display: grid; place-items: center; position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border-radius: 10px; border: 0; background: none; color: var(--mut); z-index: 2; }
  .ih { padding-right: 64px; } .tabs button { height: 44px; } .tabs { gap: 16px; }
  .set div { grid-template-columns: 1fr; gap: 2px; }
  .ex { padding: 24px 16px 40px; } .exh h1 { font-size: 24px; }
  .hm, .tbl th:nth-child(4), .tbl td:nth-child(4), .tbl .a { display: none; } .tbl th, .tbl td { padding: 12px; } #exF { max-width: 100%; overflow-x: auto; } .exh .seg { max-width: 100%; }
  .rs { padding: 28px 16px 56px; gap: 40px; } .lead { font-size: 16px; }
  .hero h1 { font-size: 34px; }
  .nums { grid-template-columns: 1fr; } .big { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 20px; } .big:last-child { border-bottom: 0; }
  .big b { font-size: 38px; }
  .tr { grid-template-columns: 1fr; gap: 6px; padding: 14px 16px; } .tr.th { display: none; }
  .tr .c.bar::before { content: 'Antes'; width: 56px; font-size: 12px; color: var(--dim); } .tr .c.bar.af::before { content: 'Después'; }
  .tr.tt { grid-template-columns: 1fr 1fr 1fr; gap: 8px; font-size: 13px; }
  .chart { padding: 14px 8px 4px; }
  .seg button { height: 36px; }
}
