/* © 2026 Sello Soluciones Tecnológicas. Todos los derechos reservados. Prohibida su copia, modificación o uso sin autorización escrita. */

:root {
  --bg: #edf1f6;            
  --surface: #ffffff;       
  --surface-2: #f4f7fb;     
  --ink: #0f1b2d;           
  --muted: #5b6b80;         
  --line: #dfe6ef;          
  --court: #1f5fbf;         
  --court-ink: #ffffff;     
  --court-soft: #e4edfb;    
  --night: #0b1f3f;         
  --ball: #d4f01c;          
  --ball-ink: #1b2400;
  --ok: #17824f; --ok-soft: #e1f4ea;
  --warn: #a96500; --warn-soft: #fcf0d9;
  --bad: #c03636; --bad-soft: #fbe5e5;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 6px 20px rgba(15, 27, 45, .06);
  --shadow-up: 0 2px 4px rgba(15, 27, 45, .08), 0 14px 34px rgba(15, 27, 45, .12);
  --f-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Barlow", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --r: 12px;                
  --r-sm: 8px;              
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #080f1c; --surface: #101a2b; --surface-2: #162236; --ink: #e7edf6; --muted: #93a3b9; --line: #22314a;
  --court: #4d8dff; --court-ink: #ffffff; --court-soft: #142a4d; --night: #0a1a35;
  --ball: #d4f01c; --ball-ink: #1b2400;
  --ok: #4fd08f; --ok-soft: #10301f; --warn: #f0b04a; --warn-soft: #33260e; --bad: #ff7b7b; --bad-soft: #3a1717;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-up: 0 2px 6px rgba(0, 0, 0, .4), 0 16px 40px rgba(0, 0, 0, .35);
  color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #080f1c; --surface: #101a2b; --surface-2: #162236; --ink: #e7edf6; --muted: #93a3b9; --line: #22314a;
  --court: #4d8dff; --court-ink: #ffffff; --court-soft: #142a4d; --night: #0a1a35;
  --ball: #d4f01c; --ball-ink: #1b2400;
  --ok: #4fd08f; --ok-soft: #10301f; --warn: #f0b04a; --warn-soft: #33260e; --bad: #ff7b7b; --bad-soft: #3a1717;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-up: 0 2px 6px rgba(0, 0, 0, .4), 0 16px 40px rgba(0, 0, 0, .35);
  color-scheme: dark }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; letter-spacing: .01em; margin: 0; text-wrap: balance; line-height: 1.05; }
h2 { font-size: 2rem; text-transform: uppercase; font-style: italic; font-weight: 800; }
h3 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .03em; }
.mono, .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
::selection { background: var(--ball); color: var(--ball-ink); }
.court-bg {
  background-color: var(--night);
  background-image:
    radial-gradient(120% 140% at 85% -20%, rgba(77, 141, 255, .45), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300' viewBox='0 0 600 300' fill='none' stroke='white' stroke-opacity='.10' stroke-width='2'%3E%3Crect x='20' y='20' width='560' height='260'/%3E%3Cline x1='300' y1='20' x2='300' y2='280' stroke-dasharray='6 6'/%3E%3Cline x1='120' y1='20' x2='120' y2='280'/%3E%3Cline x1='480' y1='20' x2='480' y2='280'/%3E%3Cline x1='120' y1='150' x2='480' y2='150'/%3E%3C/svg%3E");
  background-size: auto, 600px 300px;
  background-position: 0 0, right -60px center;
  background-repeat: no-repeat, repeat-x;
}
.score { color: #fff; padding-block: 18px 0; position: relative; }
.score { background-color: var(--night); }
.score::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(110% 160% at 90% -30%, color-mix(in srgb, var(--court) 70%, transparent), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300' viewBox='0 0 600 300' fill='none' stroke='white' stroke-opacity='.09' stroke-width='2'%3E%3Crect x='20' y='20' width='560' height='260'/%3E%3Cline x1='300' y1='20' x2='300' y2='280' stroke-dasharray='6 6'/%3E%3Cline x1='120' y1='20' x2='120' y2='280'/%3E%3Cline x1='480' y1='20' x2='480' y2='280'/%3E%3Cline x1='120' y1='150' x2='480' y2='150'/%3E%3C/svg%3E") right -80px center / 600px 300px repeat-x; }
.score > * { position: relative; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 20px; }
@media (max-width: 560px) { .wrap { padding-inline: 16px; } }
.score:has(#tabs[hidden]) { padding-bottom: 26px; }
.score-top { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: space-between; }
.score h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); text-transform: uppercase; font-style: italic; font-weight: 800; letter-spacing: .005em; }
.score .sub { font-size: .9rem; color: rgba(255, 255, 255, .78); margin-top: 6px; }
.save { font-size: .78rem; color: var(--ball); }
.brand { display: flex; gap: 14px; align-items: center; min-width: 0; }
.logo-mini { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .18); }
.back { background: none; border: 0; color: rgba(255, 255, 255, .75); font: 600 .78rem var(--f-body); text-transform: uppercase; letter-spacing: .1em; cursor: pointer; padding: 0; margin-bottom: 6px; }
.back:hover { color: #fff; }
.stats { display: flex; flex-wrap: wrap; gap: 8px; }
.stat { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; padding: 7px 14px 6px; min-width: 76px; backdrop-filter: blur(4px); }
.stat b { display: block; font: 800 italic 1.6rem/1 var(--f-display); color: #fff; letter-spacing: .02em; }
.stat span { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, .7); }
.stat.alert { background: var(--ball); border-color: var(--ball); }
.stat.alert b, .stat.alert span { color: var(--ball-ink); }
.userbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .85rem; color: rgba(255, 255, 255, .85); }
.userbar .btn { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .22); box-shadow: none; }
.userbar .btn:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); }
.tabs { display: flex; gap: 2px; overflow-x: auto; margin-top: 18px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { background: transparent; color: rgba(255, 255, 255, .72); border: 0; font: 700 .98rem var(--f-display); text-transform: uppercase; letter-spacing: .07em;
  padding: 12px 14px 14px; cursor: pointer; white-space: nowrap; position: relative; transition: color .15s; }
.tabs button:hover { color: #fff; }
.tabs button[aria-selected="true"] { color: #fff; }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 4px; border-radius: 4px 4px 0 0; background: var(--ball); }
.tabs button:focus-visible { outline: 2px solid var(--ball); outline-offset: -4px; border-radius: 6px; }
@media (min-width: 701px) {
  .score:has(#tabs:not([hidden])) { position: sticky; top: var(--fijo, 0px); z-index: 10; box-shadow: 0 8px 24px rgba(4, 10, 24, .35); }
}
.pub-hero + .score { position: sticky; top: 0; z-index: 10; box-shadow: 0 8px 24px rgba(4, 10, 24, .35); }
@media (max-width: 700px) { .pub-hero + .score .tabs { padding-top: 10px; } }
main { min-height: 60vh; }
.section-head { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.section-head p { margin: 6px 0 0; max-width: 68ch; }
.section-head h2::after { content: ""; display: block; width: 44px; height: 4px; border-radius: 4px; background: var(--ball); margin-top: 8px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.grid.ancha { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
@media (max-width: 400px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.cols { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.cols.side { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
.cols.wide { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 820px) { .cols, .cols.side, .cols.wide { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; min-width: 0; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.panel-head { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.panel h3 { display: flex; align-items: center; gap: 8px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row > .grow { flex: 1 1 170px; min-width: 0; }
.f label.row { text-transform: none; letter-spacing: 0; font-size: .9rem; font-weight: 500; color: var(--ink); justify-content: flex-start; }
label.f, div.f { display: flex; flex-direction: column; gap: 6px; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
input, select, textarea { font: inherit; font-weight: 400; letter-spacing: normal; text-transform: none; font-size: .95rem; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 11px; min-width: 0; transition: border-color .15s, box-shadow .15s, background .15s; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--court) 40%, var(--line)); }
input:focus, select:focus, textarea:focus { outline: none; background: var(--surface); border-color: var(--court); box-shadow: 0 0 0 3px color-mix(in srgb, var(--court) 22%, transparent); }
input[type="number"] { width: 7em; }
input[type="time"], input[type="date"] { font-family: var(--f-mono); font-size: .85rem; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--court); padding: 0; }
input[type="color"] { width: 56px; height: 40px; padding: 3px; cursor: pointer; }
input[type="file"] { padding: 7px; font-size: .85rem; }
textarea { width: 100%; min-height: 140px; font-family: var(--f-mono); font-size: .8rem; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--court); outline-offset: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 .9rem var(--f-body); border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: var(--r-sm); padding: 8px 14px; cursor: pointer; white-space: nowrap; text-decoration: none; box-shadow: 0 1px 2px rgba(15, 27, 45, .06); transition: transform .08s, background .15s, border-color .15s, box-shadow .15s; }
.btn:hover { border-color: var(--court); color: var(--court); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--court); color: var(--court-ink); border-color: var(--court); box-shadow: 0 4px 14px color-mix(in srgb, var(--court) 35%, transparent); }
.btn.primary:hover { color: var(--court-ink); filter: brightness(1.08); }
.btn.ball { background: var(--ball); color: var(--ball-ink); border-color: var(--ball); font-weight: 700; box-shadow: 0 4px 16px color-mix(in srgb, var(--ball) 40%, transparent); }
.btn.ball:hover { color: var(--ball-ink); filter: brightness(1.05); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); }
.btn.sm { padding: 5px 10px; font-size: .8rem; }
.btn.icon { padding: 5px 9px; font-family: var(--f-mono); min-width: 32px; }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th { text-align: left; font: 600 .68rem var(--f-body); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
td.n, th.n { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }   
.scroll { overflow-x: auto; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list li { display: flex; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.seed { font: 800 italic 1rem var(--f-display); color: var(--muted); min-width: 1.8em; display: inline-block; }
.pair-names { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pair-names input { flex: 1 1 130px; padding: 6px 9px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.chip.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.chip.court { background: var(--court-soft); color: var(--court); border-color: transparent; }
button.chip { font-family: var(--f-body); }
button.chip:hover { filter: brightness(.96); }
.notice { border-radius: var(--r); padding: 14px 16px; background: var(--court-soft); color: var(--ink); font-size: .92rem; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; border: 1px solid color-mix(in srgb, var(--court) 20%, transparent); }
.notice.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.notice.bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.steps { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 4px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters .btn { border-radius: 999px; }
.filters .btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: none; }
.filters .btn[aria-pressed="true"] .mono { color: var(--ball); }
.avail { border-collapse: separate; border-spacing: 4px; width: auto; }
.avail th { border: 0; padding: 2px 4px; text-align: center; font-family: var(--f-mono); font-size: .72rem; letter-spacing: 0; }
.avail th.day { text-align: left; font-family: var(--f-body); white-space: nowrap; padding-right: 10px; }
.avail td { border: 0; padding: 0; background: transparent !important; }
.cell { width: 44px; height: 34px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; background: var(--ok-soft); color: var(--ok); font: 600 .72rem var(--f-mono); transition: transform .08s, background .15s; }
.cell.no { background: var(--bad); color: #fff; }
.cell:hover { transform: scale(1.06); border-color: var(--ink); }
.plist { max-height: 520px; overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.plist button { width: 100%; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 10px; padding: 10px 10px; color: var(--ink); font: inherit; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plist button:hover { background: var(--surface-2); }
.plist button[aria-current="true"] { background: var(--court-soft); border-color: color-mix(in srgb, var(--court) 30%, transparent); font-weight: 600; }
.planilla th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
.planilla td { padding: 6px 8px; }
.planilla .pn-cell { white-space: nowrap; font-weight: 600; min-width: 190px; }
.planilla tr.todas td { background: var(--surface-2); border-bottom: 2px solid var(--line); }
.planilla tr.sel td { background: var(--court-soft); }
.psel { padding: 6px 8px; font-size: .84rem; min-width: 128px; font-weight: 600; cursor: pointer; }
.psel.p-todo { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.psel.p-no { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.psel.p-parcial { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.ptxt { width: 100%; min-width: 125px; padding: 7px 10px; font: 600 .88rem var(--f-mono); }
.ptxt::placeholder { color: var(--ok); opacity: .9; font-family: var(--f-body); }
.ptxt.p-todo { background: var(--ok-soft); border-color: transparent; }
.ptxt.p-no { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.ptxt.p-parcial { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.ptxt.p-error { border-color: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 25%, transparent); }
.planilla tr.todas .ptxt { background: var(--surface); }
.planilla tr.todas .ptxt::placeholder { color: var(--muted); }
.pnota { width: 100%; min-width: 170px; padding: 7px 10px; font-size: .85rem; font-style: italic; }
.pnota:not(:placeholder-shown) { background: var(--court-soft); border-color: color-mix(in srgb, var(--court) 30%, transparent); font-style: normal; }
.av-nota { font-size: .86rem; background: var(--court-soft); border-radius: var(--r-sm); padding: 6px 10px; }
.wrap.ancho { max-width: 1500px; }
.disp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.disp-main { min-width: 0; }
.guia { position: sticky; top: 72px;    background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--ball); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; font-size: .88rem; max-height: calc(100vh - 88px); overflow: auto; }
.guia h3 { font: 800 italic 1.25rem var(--f-display); text-transform: uppercase; margin-bottom: 10px; }
.guia h4 { font: 700 .78rem var(--f-body); text-transform: uppercase; letter-spacing: .1em; color: var(--court); margin: 16px 0 6px; }
.guia-pasos { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 5px; }
.guia-lista { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
.guia-ej { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.guia-ej li { display: flex; flex-direction: column; gap: 3px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.guia-ej li:last-child { border-bottom: 0; padding-bottom: 0; }
.guia-ej li code { align-self: flex-start; }
.guia-ej li span:last-child { font-size: .84rem; color: var(--muted); }
.guia code { font: 600 .8rem var(--f-mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--ink); white-space: nowrap; }
.guia kbd { font: 700 .75rem var(--f-mono); background: var(--surface-2); border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 6px; padding: 0 6px; }
.guia-colores { display: flex; flex-wrap: wrap; gap: 6px; }
.guia-colores .ptxt { width: auto; min-width: 0; padding: 4px 9px; border-radius: var(--r-sm); font-size: .76rem; border: 1px solid transparent; }
@media (max-width: 1400px) {   
  .disp-layout { grid-template-columns: minmax(0, 1fr); }
  .guia { position: static; max-height: none; order: -1; }   
}
.ayuda-franjas { font-size: .86rem; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-sm); padding: 10px 12px; margin-bottom: 14px; line-height: 1.7; }
.ayuda-franjas code { font: 600 .82rem var(--f-mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--ink); white-space: nowrap; }
.avail { touch-action: none; user-select: none; }
.avisos { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.av { padding: 12px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.av-head { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.av-head b { font: 800 italic 1.05rem var(--f-display); text-transform: uppercase; color: var(--court); }
.av-motivo { margin: 0; color: var(--bad); font-size: .9rem; }
.av-general { margin: 4px 0 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--bad-soft); color: var(--ink); font-size: .92rem; line-height: 1.45; }
.av-general b { color: var(--bad); }
.av-ops { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.av-ops li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); flex-wrap: wrap; }
.av-ops li > div { flex: 1 1 260px; min-width: 0; }
.av-ops li.op-mover { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.av-ops li.op-ajuste { background: transparent; border-style: dashed; color: var(--muted); }
.ok-t { color: var(--ok); } .warn-t { color: var(--warn); }
.zone { padding-top: 0; overflow: hidden; }
.zone .panel-head { margin-inline: -20px; padding: 14px 20px; background: linear-gradient(135deg, var(--night), color-mix(in srgb, var(--court) 60%, var(--night))); }
.zone h3 input { font: 800 italic 1.4rem var(--f-display); text-transform: uppercase; color: #fff; border-color: transparent; background: transparent; padding: 2px 4px; width: 100%; }
.zone h3 input:hover, .zone h3 input:focus { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); box-shadow: none; }
.zone .panel-head .chip { background: rgba(255, 255, 255, .14); color: #fff; border-color: transparent; }
.zone .panel-head .chip.ok { background: var(--ball); color: var(--ball-ink); }
select.mini { width: 46px; padding: 5px 4px; text-align: center; }
.zone table td { padding: 9px 6px; }
.mini-match { display: grid; grid-template-columns: minmax(0, 1fr) 7.5em; gap: 6px; align-items: center; padding: 8px 0; border-top: 1px dashed var(--line); font-size: .86rem; }
.mini-match .vs { color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.mini-match input { width: 100%; padding: 4px 6px; font-family: var(--f-mono); font-size: .8rem; }
.win { font-weight: 700; }
.win::after { content: " ●"; color: var(--ball); font-size: .7em; vertical-align: middle; text-shadow: 0 0 0 var(--ink); }
.bracket { display: flex; gap: 26px; overflow-x: auto; padding: 4px 2px 12px; align-items: stretch; }
.round { display: flex; flex-direction: column; gap: 14px; min-width: 260px; justify-content: space-around; }
.round h3 { font: 800 italic 1.1rem var(--f-display); color: var(--court); text-transform: uppercase; }
.bm { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; font-size: .9rem; box-shadow: var(--shadow); position: relative; }
.bm::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--court); }
.bm .side { display: flex; justify-content: space-between; gap: 6px; padding: 4px 0; }
.bm .side + .side { border-top: 1px solid var(--line); }
.bm .side.tbd { color: var(--muted); font-style: italic; }
.bm .meta { display: flex; justify-content: space-between; gap: 6px; font-size: .74rem; color: var(--muted); }
.bm input { width: 100%; padding: 3px 6px; font-family: var(--f-mono); font-size: .8rem; }
.cuadro { position: relative; overflow: hidden; border-radius: 18px; color: #fff; padding: 22px 0 18px;
  background: linear-gradient(115deg, #0a1f7a 0%, #0d47c9 38%, #1a8cff 55%, #0d47c9 72%, #0a1f7a 100%); box-shadow: var(--shadow-up); }
.cuadro::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(60deg, transparent 40%, rgba(255, 255, 255, .10) 40%, rgba(255, 255, 255, .10) 55%, transparent 55%),
              linear-gradient(-60deg, transparent 45%, rgba(255, 255, 255, .07) 45%, rgba(255, 255, 255, .07) 62%, transparent 62%); }
.cuadro > * { position: relative; }
.cuadro-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding: 0 24px 6px; }
.cuadro-sup { font: 700 .8rem var(--f-display); letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.cuadro-head h3 { font: 800 italic clamp(1.8rem, 4vw, 2.6rem)/1 var(--f-display); text-transform: uppercase; color: #fff; }
.cuadro-torneo { text-align: right; font: 700 1rem var(--f-display); text-transform: uppercase; letter-spacing: .06em; }
.cuadro-torneo small { display: block; font: 500 .8rem var(--f-body); text-transform: none; letter-spacing: 0; opacity: .8; }
.cuadro-scroll { overflow-x: auto; padding: 0 16px 6px; }
.cuadro-lienzo { position: relative; }
.cm-ronda { position: absolute; top: 14px; font: 800 1rem var(--f-display); text-transform: uppercase; letter-spacing: .08em; color: #fff; }
.cm-ronda small { display: block; font: 800 .82rem var(--f-display); letter-spacing: .08em; color: var(--ball); }
.cm-lineas { position: absolute; left: 0; top: 0; fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: 1.5; }
.cm { position: absolute; display: flex; flex-direction: column; gap: 2px; }
.cm-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; height: 26px; background: #0b1233; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.cm-nm { font: 700 .8rem/26px var(--f-display); text-transform: uppercase; letter-spacing: .04em; padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.cm-info { min-width: 74px; background: #fff; color: #0b1233; font: 700 .62rem var(--f-body); text-transform: uppercase; letter-spacing: .02em; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 6px; white-space: nowrap; }
.cm-info b { font: 800 .9rem var(--f-display); min-width: .7em; text-align: center; }
.cm-seed { position: absolute; left: -32px; top: 0; width: 28px; text-align: right; font: 800 .85rem/26px var(--f-display); color: #fff; }
.cm-row.tbd .cm-nm { color: rgba(255, 255, 255, .55); font-style: italic; }
.cm-row.bye .cm-nm { color: rgba(255, 255, 255, .35); }
.cm-row.bye .cm-info { background: rgba(255, 255, 255, .85); }
.cm-row::after, .cm-row.win::after { content: none; }   
.cm-row.win .cm-nm { color: var(--ball); }
.cm-row.win .cm-info { background: var(--ball); color: var(--ball-ink); }
.cm-row.out .cm-nm { color: rgba(255, 255, 255, .55); }
.cm-campeon { position: absolute; width: 200px; min-height: 68px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(255, 255, 255, .12); border: 2px solid rgba(255, 255, 255, .5); font: 800 1rem/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .03em; }
.cm-campeon.listo { background: var(--ball); color: var(--ball-ink); border-color: var(--ball); box-shadow: 0 0 30px rgba(212, 240, 28, .45); }
.cm-copa { font-size: 1.6rem; }
.tm select, .tm input { padding: 5px 7px; font-size: .82rem; }
.tm td { white-space: nowrap; }
.tm td.pairs select { max-width: 190px; }
.tm td:first-child { white-space: normal; min-width: 120px; max-width: 170px; }
.tm .issues.vacia { min-width: 0; }
.tm tr.conf td { background: var(--bad-soft) !important; }
.tm .res { width: 8.5em; font-family: var(--f-mono); }
.issues { white-space: normal !important; font-size: .78rem; color: var(--bad); min-width: 180px; }
.day-block { display: flex; flex-direction: column; gap: 10px; }
.day-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.day-title h3 { font: 800 italic 1.6rem var(--f-display); text-transform: uppercase; }
.sched { border-collapse: separate; border-spacing: 6px; table-layout: fixed; min-width: 560px; }
.sched th { border: 0; text-align: center; color: var(--court); }
.sched td { border: 0; padding: 0; vertical-align: top; background: transparent !important; }
.sched th:first-child, .sched td.t { width: 70px; }
.sched td.t { font: 600 .9rem var(--f-mono); color: var(--muted); padding-top: 10px; }
.slot { border-radius: var(--r); padding: 10px 12px; min-height: 72px; background: var(--surface); border: 1px solid var(--line); font-size: .84rem; display: flex; flex-direction: column; gap: 3px; box-shadow: var(--shadow); }
.slot.empty { background: transparent; border-style: dashed; color: var(--muted); justify-content: center; align-items: center; font-size: .75rem; box-shadow: none; }
.slot.llave { border-color: var(--court); background: linear-gradient(180deg, var(--court-soft), var(--surface) 70%); }
.slot.mine { outline: 3px solid var(--ball); outline-offset: -1px; }
.slot.bad { border-color: var(--bad); background: var(--bad-soft); }
.slot .lbl { font: 700 .78rem var(--f-display); text-transform: uppercase; letter-spacing: .06em; color: var(--court); display: flex; justify-content: space-between; gap: 6px; }
.slot .p { line-height: 1.25; }
.slot .vs { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }
.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--night); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: .9rem; width: max-content; max-width: min(560px, calc(100% - 32px)); line-height: 1.4; z-index: 20; box-shadow: var(--shadow-up); border: 1px solid rgba(255, 255, 255, .12); animation: subir .2s ease-out; }
.toast::before { content: "● "; color: var(--ball); }
@keyframes subir { from { transform: translate(-50%, 8px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.modal-bg { position: fixed; inset: 0; background: rgba(8, 15, 28, .55); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; z-index: 30; }
.modal { background: var(--surface); border-radius: 16px; padding: 24px; max-width: 440px; width: 100%; display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-up); }
.modal h3 { font-size: 1.4rem; font-style: italic; font-weight: 800; }
.modal p { margin: 0; color: var(--muted); }
#modal-msg { display: flex; flex-direction: column; gap: 10px; }   
.modal .row { justify-content: flex-end; }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background-color: var(--night);
  background-image:
    radial-gradient(90% 80% at 80% 0%, rgba(77, 141, 255, .5), transparent 60%),
    radial-gradient(60% 60% at 0% 100%, rgba(212, 240, 28, .12), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300' viewBox='0 0 600 300' fill='none' stroke='white' stroke-opacity='.10' stroke-width='2'%3E%3Crect x='20' y='20' width='560' height='260'/%3E%3Cline x1='300' y1='20' x2='300' y2='280' stroke-dasharray='6 6'/%3E%3Cline x1='120' y1='20' x2='120' y2='280'/%3E%3Cline x1='480' y1='20' x2='480' y2='280'/%3E%3Cline x1='120' y1='150' x2='480' y2='150'/%3E%3C/svg%3E");
  background-size: auto, auto, min(1400px, 180vw) auto; background-position: 0 0, 0 0, center; background-repeat: no-repeat; }
.auth > p { color: rgba(255, 255, 255, .8); }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border-radius: 20px; padding: 30px 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); border: 1px solid var(--line); position: relative; }
.auth-card::before { content: ""; position: absolute; top: -26px; right: 26px; width: 52px; height: 52px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f2ff8a, var(--ball) 55%, #a6bd00); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.auth-card::after { content: ""; position: absolute; top: -26px; right: 26px; width: 52px; height: 52px; border-radius: 50%;
  background: radial-gradient(circle at 50% -40%, transparent 58%, rgba(255, 255, 255, .85) 60%, transparent 63%), radial-gradient(circle at 50% 140%, transparent 58%, rgba(255, 255, 255, .85) 60%, transparent 63%); }
.auth-card h1 { font-size: 2.4rem; text-transform: uppercase; font-style: italic; font-weight: 800; color: var(--ink); line-height: .95; }
.auth-card h1::after { content: ""; display: block; width: 52px; height: 5px; border-radius: 5px; background: var(--ball); margin-top: 10px; }
.auth-card input { width: 100%; padding: 11px 12px; }
.auth-card .btn { width: 100%; padding: 12px; font-size: 1rem; }
.err { color: var(--bad); font-size: .88rem; min-height: 1.2em; }
.modo-prueba { background: var(--warn-soft); color: var(--warn); font-size: .82rem; padding: 10px 12px; border-radius: var(--r-sm); }
.linkbtn { background: none; border: 0; color: var(--court); font: inherit; font-size: .88rem; cursor: pointer; padding: 0; text-decoration: underline; }
.tcard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); overflow: hidden; padding: 0 0 18px; transition: transform .15s, box-shadow .15s; }
.tcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); }
.tcard h3 { font: 800 italic 1.7rem/1 var(--f-display); text-transform: uppercase; color: #fff; padding: 46px 18px 16px; margin: 0;
  background: linear-gradient(135deg, var(--night), color-mix(in srgb, var(--court) 70%, var(--night)));
  background-image: linear-gradient(135deg, rgba(11, 31, 63, .2), rgba(11, 31, 63, .1)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='150' viewBox='0 0 600 300' fill='none' stroke='white' stroke-opacity='.18' stroke-width='3'%3E%3Crect x='20' y='20' width='560' height='260'/%3E%3Cline x1='300' y1='20' x2='300' y2='280' stroke-dasharray='8 8'/%3E%3Cline x1='120' y1='20' x2='120' y2='280'/%3E%3Cline x1='480' y1='20' x2='480' y2='280'/%3E%3Cline x1='120' y1='150' x2='480' y2='150'/%3E%3C/svg%3E"), linear-gradient(135deg, var(--night), color-mix(in srgb, var(--court) 70%, var(--night)));
  background-size: auto, 300px 150px, auto; background-position: 0 0, right -40px center, 0 0; background-repeat: no-repeat; }
.tcard h3 small { display: block; font: 500 .85rem var(--f-body); text-transform: none; color: rgba(255, 255, 255, .78); margin-top: 6px; letter-spacing: 0; }
.progreso { height: 5px; background: var(--surface-2); margin-top: -12px; }
.progreso span { display: block; height: 100%; background: var(--ball); border-radius: 0 3px 3px 0; }
.tcard .meta, .tcard .acc, .tcard > .small { padding-inline: 18px; }
.tcard .meta { display: flex; gap: 6px; flex-wrap: wrap; }
.tcard .acc { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.rcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rhead { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.rhead .lbl { font: 800 italic 1.05rem var(--f-display); text-transform: uppercase; color: var(--court); letter-spacing: .02em; }
.board { background: var(--night); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.brow { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 46px); gap: 6px; align-items: center; }
.brow.hd span { font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .55); text-align: center; }
.pname { color: #fff; font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow.gana .pname { color: var(--ball); }
.brow.gana .pname::before { content: "● "; font-size: .7em; vertical-align: middle; }
.brow input { width: 46px; height: 40px; text-align: center; padding: 0; font: 700 1.15rem var(--f-mono); background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .16); }
.brow input:focus { background: rgba(255, 255, 255, .14); border-color: var(--ball); box-shadow: 0 0 0 3px rgba(212, 240, 28, .25); }
.rcard .acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rcard .acts select { flex: 1 1 120px; min-width: 0; }
.logo-prev { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; border: 1px solid var(--line); background: var(--surface-2); }
.canchas-list { display: flex; flex-direction: column; gap: 6px; }
.canchas-list .row span { font: 800 italic 1rem var(--f-display); color: var(--court); min-width: 2.5em; }
.linkbox { font-family: var(--f-mono); font-size: .8rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; word-break: break-all; }
.pub-hero { color: #fff; padding-block: 30px; background-color: var(--night); position: relative; }
.pub-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(110% 160% at 90% -30%, color-mix(in srgb, var(--court) 70%, transparent), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300' viewBox='0 0 600 300' fill='none' stroke='white' stroke-opacity='.09' stroke-width='2'%3E%3Crect x='20' y='20' width='560' height='260'/%3E%3Cline x1='300' y1='20' x2='300' y2='280' stroke-dasharray='6 6'/%3E%3Cline x1='120' y1='20' x2='120' y2='280'/%3E%3Cline x1='480' y1='20' x2='480' y2='280'/%3E%3Cline x1='120' y1='150' x2='480' y2='150'/%3E%3C/svg%3E") right -80px center / 600px 300px repeat-x; }
.pub-hero .wrap { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; position: relative; }
.pub-hero img { width: 80px; height: 80px; border-radius: 18px; object-fit: cover; background: #fff; }
.pub-hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); text-transform: uppercase; font-style: italic; font-weight: 800; line-height: .95; }
.pub-info { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .92rem; color: rgba(255, 255, 255, .85); margin-top: 8px; }
.guia > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.guia > summary::-webkit-details-marker { display: none; }
.guia > summary::after { content: "Ocultar ▲"; font: 600 .74rem var(--f-body); color: var(--muted); white-space: nowrap; }
.guia:not([open]) > summary::after { content: "Ver ▼"; }
.guia:not([open]) > summary h3 { margin-bottom: 0; }
.crono-lista { display: none; flex-direction: column; gap: 8px; }
.crono-dia { font: 800 italic 1.3rem var(--f-display); text-transform: uppercase; margin-top: 10px; }
.solo-movil { display: none; }
@media (max-width: 700px) {
  body { font-size: 15px; }
  .wrap { padding-inline: 14px; }
  h2 { font-size: 1.6rem; }
  .score { padding-top: 12px; }
  .score h1 { font-size: 1.7rem; }
  .score .sub { font-size: .8rem; }
  .score-top { gap: 10px; }
  .stats { flex-wrap: nowrap; overflow-x: auto; gap: 6px; width: calc(100% + 14px); margin-right: -14px; padding-right: 14px; scrollbar-width: none; }
  .stats::-webkit-scrollbar { display: none; }
  .stat { flex: none; min-width: 0; padding: 5px 9px 4px; border-radius: 10px; }
  .stat.alert { order: -1; }   
  .stat b { font-size: 1.15rem; }
  .stat span { font-size: .56rem; letter-spacing: .06em; white-space: nowrap; }
  .userbar { width: 100%; font-size: .8rem; gap: 6px; }
  .userbar > span { flex: 1 1 100%; }
  .tabs { flex-wrap: wrap; overflow: visible; gap: 5px; margin-top: 10px; padding-bottom: 10px; }
  .tabs button { flex: 1 1 calc(33.333% - 5px); padding: 7px 4px; min-height: 36px; font-size: .82rem; letter-spacing: .04em; border-radius: 10px;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); white-space: normal; line-height: 1.1; }
  .tabs button[aria-selected="true"] { background: var(--ball); color: var(--ball-ink); border-color: var(--ball); }
  .tabs button[aria-selected="true"]::after { display: none; }
  .section-head { margin-bottom: 14px; }
  .section-head > .row, .section-head > div > .row { width: 100%; }
  .section-head .row > select, .section-head .row > .btn { flex: 1 1 auto; }
  .panel { padding: 16px; border-radius: 12px; }
  .row > input:not([type="checkbox"]):not([type="color"]), .row > select { flex: 1 1 140px; }
  .planilla .pn-cell { justify-content: flex-start !important; gap: 8px; }
  .rt, .rt tbody, .rt tr, .rt td { display: block; width: 100%; }
  .rt thead { display: none; }
  .rt tr { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; box-shadow: var(--shadow); }
  .rt td { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 0 !important; padding: 5px 0; background: transparent !important; white-space: normal !important; }
  .rt td[data-label]::before { content: attr(data-label); flex: 0 0 34%; font: 600 .7rem var(--f-body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
  .rt td > input, .rt td > select { flex: 1 1 auto; min-width: 0 !important; width: auto; max-width: none !important; }
  .rt td.vacia { display: none; }
  .rt td:first-child:not([data-label]) { font-weight: 700; font-size: 1rem; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line) !important; }
  .rt td.n { justify-content: space-between; }
  .rt td:last-child:not([data-label]) { justify-content: flex-end; padding-top: 8px; }
  .scroll:has(> .rt) { overflow: visible; }
  .panel[style*="padding:0"]:has(.rt) { background: transparent; border: 0; box-shadow: none; }
  .rt tr.conf { border-color: var(--bad); background: var(--bad-soft); }
  .rt .issues { color: var(--bad); }
  .planilla tr.todas { background: var(--surface-2); border-style: dashed; box-shadow: none; }
  .planilla tr.todas td:first-child { border-bottom: 0 !important; font-weight: 600; }
  .planilla tr.sel { outline: 2px solid var(--court); }
  .planilla .pn-cell { min-width: 0; }
  .ptxt, .pnota { min-width: 0; }
  .list li { flex-wrap: wrap; row-gap: 8px; }
  .list li .pair-names { flex: 1 1 calc(100% - 80px); min-width: 0; }
  .list li .pair-names > span { flex: 1 1 100% !important; min-width: 0; }
  .list li .pair-names input { min-width: 0; flex: 1 1 auto; }
  .list li > .btn.icon:not([data-act="cabeza"]) { flex: 0 0 auto; }
  .list li > .btn[data-act="mover-pareja"]:first-of-type { margin-left: auto; }
  .disp-layout { grid-template-columns: minmax(0, 1fr); }
  .guia { position: static; max-height: none; order: -1; }
  .crono-grilla { display: none; }
  .crono-lista { display: flex; }
  .solo-movil { display: block; margin: 0 0 8px; }
  .av-ops li { flex-direction: column; align-items: stretch; }
  .av-ops li .btn { width: 100%; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .brow { grid-template-columns: minmax(0, 1fr) repeat(3, 42px); }
  .brow input { width: 42px; }
  .cuadro-head { padding: 0 16px 6px; }
  .modal { padding: 18px; }
  .toast { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.res { font-family: var(--f-mono); white-space: nowrap; }
sup.tb { font-size: .68em; margin-left: 1px; opacity: .85; vertical-align: super; }
.stbm { font-size: .82em; padding: 1px 5px; border-radius: 6px; background: var(--court-soft); color: var(--court); margin-left: 2px; }
.ret { font-size: .8em; color: var(--bad); margin-left: 3px; }
.brow { grid-template-columns: minmax(0, 1fr) repeat(3, minmax(46px, auto)); }
.scell { display: flex; align-items: flex-start; gap: 3px; }
.brow input.tbin { width: 32px; height: 26px; font-size: .78rem; border-radius: 6px; background: rgba(212, 240, 28, .16); border-color: rgba(212, 240, 28, .5); }
.brow input:disabled { opacity: .3; }
.rmsg { margin: 0; color: var(--muted); min-height: 1em; }
.rcard .acts .est-sel { flex: 1 1 160px; }
.cm-edit { cursor: pointer; }
.cm-edit:hover, .cm-edit:focus-visible { outline: 2px solid var(--ball); outline-offset: 2px; }
.cm-info sup.tb { color: inherit; font-size: .62rem; margin-left: 1px; }
.cm-info b.stb { color: var(--court); }
.cm-row.win .cm-info b.stb { color: var(--ball-ink); }
.cm-info .ret { font-size: .58rem; }
.chip.mod-americano { background: #fde7d2; color: #a14b00; border-color: transparent; }
.chip.mod-rankeable { background: #e4dcfb; color: #5b34c7; border-color: transparent; }
.chip.mod-normal { background: var(--court-soft); color: var(--court); border-color: transparent; }
.am-board .brow { grid-template-columns: minmax(0, 1fr) 70px; }
.am-board .brow input { width: 70px; }
.pub-vivo { margin-top: 8px; opacity: .85; }
.pub-vivo::first-letter { color: var(--ball); }
tr.clasif td:first-child { box-shadow: inset 3px 0 0 var(--ball); }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
@media (max-width: 700px) {
  .brow { grid-template-columns: minmax(0, 1fr) repeat(3, minmax(42px, auto)); }
  .brow input.tbin { width: 28px; }
}
.firma { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 16px calc(22px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; text-align: left; }
.firma img { width: 56px; height: 56px; border-radius: 12px; flex: none; box-shadow: var(--shadow); }
.firma b { color: var(--ink); font-weight: 600; }
.firma-soporte { display: block; margin-top: 2px; }
.firma-soporte a { color: var(--court); font-weight: 600; white-space: nowrap; }
body:has(main > .auth) { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body:has(main > .auth) main { flex: 1; display: flex; flex-direction: column; min-height: 0; }
body:has(main > .auth) .auth { flex: 1; min-height: 0; }
body:has(main > .auth) .firma { gap: 8px; padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--night); border-top-color: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .7); font-size: .8rem; flex-wrap: wrap; text-align: center; }
body:has(main > .auth) .firma img { width: 28px; height: 28px; border-radius: 7px; }
body:has(main > .auth) .firma b { color: #fff; }
body:has(main > .auth) .firma-soporte { display: inline; margin: 0; }
body:has(main > .auth) .firma-soporte::before { content: "·"; margin: 0 6px; opacity: .6; }
body:has(main > .auth) .firma-soporte a { color: var(--ball); }
@media (max-width: 560px) {   
  body:has(main > .auth) .firma { flex-wrap: nowrap; text-align: left; }
  body:has(main > .auth) .firma-soporte { display: block; }
  body:has(main > .auth) .firma-soporte::before { content: none; }
}
.demo-franja { background: var(--warn-soft); border-bottom: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); color: var(--ink); font-size: .9rem; }
.demo-franja .wrap { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; padding-block: 10px; }
.demo-franja b { color: var(--warn); }
@media (max-width: 560px) {   
  .demo-franja { font-size: .85rem; }
  .demo-franja .btn { flex: 1 1 100%; }
}
.insc-wrap { max-width: 640px; }
.insc-form h2 { font-size: 1.7rem; }
.insc-dos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.insc-dias { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.insc-dias legend { font: 700 1.05rem var(--f-display); text-transform: uppercase; letter-spacing: .03em; padding: 0; margin-bottom: 4px; }
.insc-dia { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--surface-2); border-radius: var(--r-sm); padding: 10px 12px; }
.insc-dia > span { display: flex; flex-direction: column; gap: 2px; }
.insc-dia select { flex: 0 1 200px; min-width: 0; }
.insc-dia .ptxt { flex: 1 1 200px; width: auto; }
.insc-lee { flex: 1 1 100%; color: var(--muted); }
.insc-cierre { margin: 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--warn-soft); font-size: .9rem; line-height: 1.45; }
.insc-lee-error { color: var(--bad); font-weight: 600; }
.insc-guia { background: var(--court-soft); border-radius: var(--r-sm); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; font-size: .9rem; }
.insc-guia ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.insc-guia li { display: flex; gap: 10px; align-items: baseline; }
.insc-guia li > :first-child { flex: 0 0 118px; }
.insc-guia code { font: 600 .82rem var(--f-mono); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.insc-guia p code { white-space: normal; }
.insc-dia .ptxt.p-error { background: var(--bad-soft); color: var(--bad); }
.insc-form textarea { font-family: var(--f-body); font-size: .92rem; min-height: 80px; }
.insc-enviar { width: 100%; padding: 13px; font-size: 1.05rem; }
.insc-listo { gap: 12px; }
.insc-resumen { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 4px; }
.insc-panel { border-left: 4px solid var(--ball); }
.insc-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.insc-item { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.insc-cab { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.insc-horas { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.insc-chip, .chip.insc-chip { background: var(--ball); color: var(--ball-ink); border-color: transparent; }
.insc-aviso { background: color-mix(in srgb, var(--ball) 18%, var(--surface)); border-color: color-mix(in srgb, var(--ball) 55%, transparent); }
@media (max-width: 560px) {
  .insc-dos { grid-template-columns: minmax(0, 1fr); }
  .insc-dia select { flex: 1 1 100%; }
  .insc-item .row .btn, .insc-panel > .row .btn { flex: 1 1 auto; }
}
.pub-dia { margin: 22px 0 10px; }
.pub-grilla { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.pub-grilla .slot { margin: 0; }
.pub-info { gap: 4px 10px; }
.pub-info span + span::before { content: "·"; margin-right: 10px; opacity: .6; }
@media (max-width: 560px) {
  .pub-info { flex-direction: column; gap: 2px; }
  .pub-info span + span::before { content: none; }
}
