:root{--ink:#08070d;--panel:#121019;--violet:#7138e8;--violet-soft:#9b72f4;--yellow:#f5d20a;--white:#f7f6fb;--muted:#9895a5}*{box-sizing:border-box}body{margin:0;background:var(--ink);color:var(--white);font-family:Inter,Arial,sans-serif}button,input{font:inherit}button{cursor:pointer}.hidden{display:none!important}.login-page{min-height:100vh;display:grid;grid-template-columns:1.08fr .92fr;background:var(--ink)}.identity-panel{min-height:100vh;padding:54px 7vw;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden;background:radial-gradient(circle at 78% 16%,rgba(113,56,232,.34),transparent 27%),linear-gradient(145deg,#09070e 0%,#151020 70%,#0b0910 100%)}.identity-panel:after{content:"";position:absolute;right:-100px;bottom:12%;width:430px;height:18px;background:var(--yellow);transform:rotate(-14deg);box-shadow:0 55px 0 rgba(113,56,232,.7),0 110px 0 rgba(255,255,255,.12)}.brand-lockup{display:flex;align-items:center;gap:16px;position:relative;z-index:1}.brand-mark{width:62px;height:62px;border:3px solid var(--yellow);transform:skew(-6deg);display:grid;place-items:center;font-weight:950;letter-spacing:-3px;color:var(--yellow)}.brand-lockup h1{margin:3px 0 0;font-size:22px;letter-spacing:.04em}.brand-lockup.large h1{font-size:30px}.eyebrow,.card-label{margin:0;text-transform:uppercase;letter-spacing:.18em;font-size:11px;font-weight:800;color:var(--yellow)}.eyebrow.purple{color:var(--violet-soft)}.hero-copy{position:relative;z-index:1;max-width:650px}.edition-tag{display:inline-block;padding:7px 12px;border-left:4px solid var(--yellow);background:rgba(245,210,10,.08);font-size:12px;letter-spacing:.16em;font-weight:900}.hero-copy h2{margin:25px 0 20px;font-size:clamp(52px,6.2vw,92px);line-height:.92;letter-spacing:-.055em;text-transform:uppercase}.hero-copy h2 i{color:var(--yellow);font-style:normal}.hero-copy p{max-width:540px;color:#bdb9c7;font-size:17px;line-height:1.7}.system-note{position:relative;z-index:1;margin:0;color:#6f6b78;font-size:12px;letter-spacing:.12em;text-transform:uppercase}.login-panel{display:grid;place-items:center;padding:34px;background:linear-gradient(135deg,#131019,#08070d)}.login-card{width:min(440px,100%);padding:44px;border:1px solid #2b2635;background:rgba(20,17,27,.94);box-shadow:0 28px 90px rgba(0,0,0,.42)}.login-card h2{font-size:36px;margin:12px 0 8px;letter-spacing:-.04em}.muted{color:var(--muted);line-height:1.55}.login-card label{display:grid;gap:9px;margin-top:22px;font-size:13px;font-weight:750;color:#d3cfda}.login-card input{width:100%;border:1px solid #393342;background:#0d0b12;color:white;padding:15px 16px;outline:none;border-radius:3px}.login-card input:focus{border-color:var(--violet-soft);box-shadow:0 0 0 3px rgba(113,56,232,.14)}.primary-button{margin-top:20px;width:100%;border:0;padding:16px 18px;display:flex;justify-content:space-between;background:var(--yellow);color:#0d0b10;font-weight:950;text-transform:uppercase;letter-spacing:.08em}.primary-button:disabled{opacity:.6;cursor:wait}.error-message{min-height:18px;margin:14px 0 0;color:#ff6b6b;font-size:13px}.secure-note{margin:18px 0 0;text-align:center;color:#6e6a78;font-size:11px}.mobile-brand{display:none}.app-shell{min-height:100vh;background:radial-gradient(circle at 85% 0%,rgba(113,56,232,.18),transparent 28%),#09080d}.topbar{height:92px;padding:0 5vw;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #27232f;background:rgba(9,8,13,.88)}.ghost-button{border:1px solid #37313f;color:#bbb6c4;background:transparent;padding:10px 18px}.dashboard{width:min(1120px,90vw);margin:0 auto;padding:58px 0 80px}.status-row{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:30px}.status-row h2{margin:8px 0 4px;font-size:38px;letter-spacing:-.04em}.online-badge{padding:9px 13px;border:1px solid #244333;color:#7ce2a4;font-size:12px;font-weight:800}.online-badge span{display:inline-block;width:7px;height:7px;margin-right:7px;background:#3ee67a;border-radius:50%;box-shadow:0 0 10px #3ee67a}.event-card,.next-athlete{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 28px;background:#15121b;border:1px solid #2a2531}.event-card{border-left:5px solid var(--yellow)}.event-card h3,.next-athlete h3{margin:7px 0 0;font-size:24px}.event-meta{display:flex;gap:12px;align-items:center}.event-meta span,.event-meta strong{padding:8px 11px;font-size:12px;text-transform:uppercase}.event-meta span{color:#aaa5b2;border:1px solid #393342}.event-meta strong{color:var(--yellow);background:rgba(245,210,10,.08)}.role-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:22px 0}.role-card{min-height:190px;padding:28px;border:1px solid #302a38;color:white;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:22px;text-align:left;background:#15121b;transition:.2s ease}.role-card:hover{transform:translateY(-3px);border-color:#5b4b71}.role-number{width:76px;height:76px;display:grid;place-items:center;font-size:38px;font-weight:950;color:#0b0910}.difficulty .role-number{background:var(--yellow)}.execution .role-number{background:var(--violet-soft)}.role-card small{display:block;color:#8f8999;text-transform:uppercase;letter-spacing:.15em}.role-card strong{display:block;margin:5px 0 10px;font-size:26px}.role-card em{color:#8f8999;font-style:normal;line-height:1.45}.role-card b{font-size:24px;color:#777181}.notice{margin:22px 0;padding:20px;border:1px solid #6c5621;background:#211c10;color:#f4d86b}.next-athlete{justify-content:flex-start}.athlete-index{width:54px;height:54px;display:grid;place-items:center;background:#25202d;font-weight:900;color:#b8b1c3}.waiting{margin-left:auto;color:#8b8592;font-size:11px;letter-spacing:.12em}@media(max-width:820px){.login-page{grid-template-columns:1fr}.identity-panel{display:none}.login-panel{min-height:100vh;padding:22px}.login-card{padding:30px 24px}.mobile-brand{display:block;color:var(--yellow);font-weight:950;margin-bottom:36px}.topbar{height:74px;padding:0 20px}.topbar .eyebrow{display:none}.topbar .brand-mark{width:44px;height:44px;font-size:13px}.topbar h1{font-size:16px}.dashboard{width:min(92vw,1120px);padding:34px 0 60px}.status-row{gap:16px}.status-row h2{font-size:30px}.event-card,.next-athlete{align-items:flex-start;padding:20px}.event-meta{flex-direction:column;align-items:flex-end}.role-grid{grid-template-columns:1fr}.role-card{min-height:150px;padding:20px}.role-number{width:58px;height:58px;font-size:30px}.role-card strong{font-size:22px}.role-card em{font-size:13px}}
.admin-import {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px 24px;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.08);
}

/* Speedrun V12 */
.role-card.speed { border-color: rgba(0, 221, 174, 0.35); }
.role-card.speed .role-number { background: #00ddae; color: #07110f; }
.speed-badge { color: #00ddae; border-color: #00ddae; }
.speed-filters { align-items: end; }
.speed-expected { min-width: 180px; padding: 12px 16px; border: 1px solid #302a38; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.speed-expected small { color: var(--muted); font-size: .65rem; letter-spacing: .08em; }
.speed-expected strong { color: #00ddae; font-size: 1.4rem; }
.speed-results-panel { margin-top: 28px; }
.speed-scoring-shell { max-width: 960px; }
.speed-form { display: grid; gap: 22px; }
.speed-status-field { display: grid; grid-template-columns: minmax(240px, 360px) 1fr; gap: 20px; align-items: end; }
.speed-status-field label, .speed-calculation label { display: grid; gap: 8px; font-weight: 700; }
.speed-status-field select, .speed-calculation input { width: 100%; border: 1px solid #393342; background: #0b0910; color: var(--white); padding: 13px 14px; font: inherit; }
.speed-timer-card { border: 1px solid #302a38; background: rgba(8, 7, 12, .72); padding: clamp(22px, 5vw, 44px); text-align: center; }
.speed-timer { display: block; margin: 14px 0 26px; color: #00ddae; font-variant-numeric: tabular-nums; font-size: clamp(3rem, 10vw, 7rem); line-height: 1; letter-spacing: -.05em; }
.speed-timer-controls { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.speed-timer-controls button { min-width: 150px; }
.disabled-controls { opacity: .45; }
.speed-calculation { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(160px, auto) minmax(250px, auto); gap: 16px; align-items: stretch; }
.speed-calculation > div { border: 1px solid #302a38; padding: 14px 18px; display: grid; gap: 7px; align-content: center; }
.speed-calculation small { color: var(--muted); font-size: .65rem; letter-spacing: .08em; }
.speed-calculation strong { font-variant-numeric: tabular-nums; font-size: 1.35rem; }
.speed-calculation .speed-final { border-color: rgba(0, 221, 174, .45); }
.speed-calculation .speed-final strong { color: #00ddae; font-size: 1.65rem; }
.result-state.special { color: #ffcd38; border-color: rgba(255, 205, 56, .45); }

@media (max-width: 760px) {
  .speed-status-field, .speed-calculation { grid-template-columns: 1fr; }
  .speed-timer { font-size: clamp(2.7rem, 15vw, 4.6rem); }
  .speed-timer-controls button { width: 100%; }
}

.import-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 7, 12, 0.42);
}

.admin-import h3 {
  margin: 4px 0 8px;
}

.import-button {
  width: auto;
  min-width: 210px;
}

.import-status {
  min-height: 20px;
  margin: 0;
}

.manual-athlete-panel {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(245, 210, 10, .4);
  background: rgba(245, 210, 10, .045);
}

.manual-athlete-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.manual-athlete-heading h3 { margin: 5px 0; }
.manual-athlete-heading .muted { margin: 0; }

.automatic-id {
  min-width: 132px;
  padding: 12px 14px;
  background: #f5d20a;
  color: #0b0910;
  text-align: right;
}

.automatic-id small,
.automatic-id strong { display: block; }
.automatic-id strong { margin-top: 3px; font-size: 18px; }

.manual-athlete-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.35fr auto;
  align-items: end;
  gap: 12px;
}

.manual-athlete-form > label {
  display: grid;
  gap: 7px;
  color: #aaa5b2;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.manual-athlete-form input[type="text"],
.manual-athlete-form select {
  width: 100%;
  padding: 11px;
  border: 1px solid #3b3444;
  background: #0d0b12;
  color: #f7f6fb;
}

.manual-modalities {
  display: flex;
  gap: 9px;
  min-height: 39px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #3b3444;
}

.manual-modalities legend {
  padding: 0 4px;
  color: #aaa5b2;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.manual-modalities label { font-size: 11px; font-weight: 800; }
.manual-modalities input { accent-color: #f5d20a; }
.manual-athlete-form .primary-button { width: auto; min-width: 165px; margin: 0; }

.file-picker {
  display: block;
  padding: 13px 16px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  color: #f4f1fb;
  cursor: pointer;
}

.file-picker input {
  display: none;
}

.athletes-panel {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
}

.athletes-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.athletes-heading h3 {
  margin: 4px 0 0;
}

.athlete-count {
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffd900;
  color: #0b0910;
}

.athlete-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
}

.fiscal-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.fiscal-controls label {
  display: grid;
  gap: 7px;
  color: #aaa5b2;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.fiscal-controls select {
  width: 100%;
  padding: 12px;
  border: 1px solid #393342;
  background: #0d0b12;
  color: #f7f6fb;
}

.active-athlete-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding: 18px;
  border-left: 4px solid #3ee67a;
  background: rgba(62, 230, 122, .08);
}

.active-athlete-control h3 {
  margin: 5px 0 0;
}

.athlete-row {
  display: grid;
  grid-template-columns: 90px 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.045);
}

.send-athlete-button {
  border: 1px solid #f5d20a;
  padding: 10px 14px;
  background: transparent;
  color: #f5d20a;
  font-weight: 900;
  text-transform: uppercase;
}

.athlete-actions { display: flex; gap: 7px; }

.admin-menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.admin-menu button {
  min-height: 150px;
  padding: 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  gap: 7px 14px;
  border: 1px solid #342d3e;
  background: #15121b;
  color: #f7f6fb;
  text-align: left;
}

.admin-menu button:hover { border-color: #9b72f4; transform: translateY(-2px); }
.admin-menu button > span { grid-row: 1 / 3; color: #f5d20a; font-size: 28px; font-weight: 950; }
.admin-menu button strong { font-size: 18px; }
.admin-menu button small { color: #9895a5; line-height: 1.4; }

.admin-section-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 24px 0 0;
  padding: 16px 0;
  border-bottom: 1px solid #302a38;
}

.admin-section-heading h3 { margin: 4px 0 0; font-size: 26px; }

.registered-athlete-list { display: grid; gap: 12px; max-height: 560px; overflow: auto; }

.registered-category { border: 1px solid #302a38; background: #100e15; }
.registered-category-heading { display: flex; justify-content: space-between; padding: 10px 14px; background: #211a31; color: #f5d20a; }
.registered-category article { display: grid; grid-template-columns: 100px 1fr auto; gap: 14px; padding: 11px 14px; border-top: 1px solid #282230; }
.registered-category article > span { color: #9b72f4; font-weight: 800; }
.registered-category article small { color: #9895a5; }

.athlete-row.judged { border-left: 4px solid #3ee67a; }
.athlete-judge-state { padding: 6px 8px; font-size: 10px; font-weight: 900; letter-spacing: .06em; }
.athlete-judge-state.registered { color: #79e6a5; background: rgba(62,230,122,.1); }
.athlete-judge-state.pending { color: #f5d20a; background: rgba(245,210,10,.08); }

.future-panel { margin-top: 24px; padding: 24px; border: 1px solid #3b2b5c; background: #100d17; }
.future-panel h3 { margin: 7px 0; font-size: 28px; }

.catalog-sync-block { margin-top: 10px; padding-top: 16px; border-top: 1px solid #393342; }
.catalog-sync-block .muted { margin: 8px 0 12px; font-size: 12px; }
.catalog-sync-button { width: 100%; color: #f5d20a; border-color: #6c5621; font-weight: 900; text-transform: uppercase; }
.catalog-sync-button:disabled { opacity: .65; cursor: default; }

.delete-athlete-button {
  border: 1px solid #6e3340;
  padding: 10px 12px;
  background: transparent;
  color: #ff8798;
  font-weight: 800;
  text-transform: uppercase;
}

.waiting.active {
  color: #3ee67a;
}

.athlete-meta {
  margin: 5px 0 0;
}

.scoring-shell {
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 38px 0 80px;
}

.scoring-athlete {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-left: 5px solid #3ee67a;
  background: #15121b;
}

.scoring-athlete h2 {
  margin: 5px 0 0;
}

.scoring-type-badge {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-left: auto;
  color: #0b0910;
  font-size: 28px;
  font-weight: 950;
}

.difficulty-badge { background: #f5d20a; }
.execution-badge { background: #9b72f4; }

.score-form {
  margin-top: 20px;
  padding: 26px;
  border: 1px solid #302a38;
  background: #100e15;
}

.score-form-heading,
.execution-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.score-form-heading h2 {
  margin: 7px 0 0;
}

.final-score {
  min-width: 132px;
  padding: 15px 18px;
  text-align: right;
  color: #0b0910;
}

.difficulty-final { background: #f5d20a; }
.execution-final { background: #9b72f4; }

.final-score small,
.final-score strong {
  display: block;
}

.final-score strong {
  margin-top: 3px;
  font-size: 30px;
}

.difficulty-tricks {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.trick-card {
  display: grid;
  grid-template-columns: 48px minmax(150px, .7fr) minmax(230px, 1.3fr) 90px;
  gap: 14px;
  align-items: end;
  padding: 18px;
  border: 1px solid #2f2937;
  background: #17131d;
}

.trick-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  align-self: center;
  background: #f5d20a;
  color: #0b0910;
  font-size: 20px;
  font-weight: 950;
}

.trick-card label,
.bonus-field {
  display: grid;
  gap: 7px;
  color: #aaa5b2;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.trick-card select,
.bonus-field select,
.deduction-add select {
  width: 100%;
  padding: 11px;
  border: 1px solid #3b3444;
  background: #0d0b12;
  color: #f7f6fb;
}

.base-value,
.trick-subtotal {
  padding: 10px;
  text-align: right;
  background: rgba(255, 255, 255, .045);
}

.base-value small,
.base-value strong,
.trick-subtotal small,
.trick-subtotal strong {
  display: block;
}

.base-value strong,
.trick-subtotal strong {
  margin-top: 4px;
  font-size: 20px;
}

.scale-grid {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.trick-subtotal {
  grid-column: 4;
}

.save-score-button {
  max-width: 360px;
  margin-left: auto;
}

.score-status {
  min-height: 20px;
  margin: 12px 0 0;
  text-align: right;
}

.score-status.success { color: #79e6a5; }

.execution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.execution-card {
  padding: 20px;
  border: 1px solid #312a3a;
  background: #17131d;
}

.execution-card-head h3 {
  margin: 0;
  font-size: 24px;
}

.execution-card-head strong {
  font-size: 28px;
}

.deduction-grid {
  margin: 16px 0;
}

.deduction-add {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.deduction-add button,
.deduction-row button {
  border: 0;
  background: #f5d20a;
  color: #0b0910;
  font-weight: 950;
}

.deduction-add button { padding: 0 16px; }

.active-deductions {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  max-height: 245px;
  overflow: auto;
}

.deduction-row {
  display: grid;
  grid-template-columns: 1fr 36px 38px 36px;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, .045);
}

.deduction-row span { text-align: center; }
.deduction-row button { height: 32px; }

.bonus-field {
  margin-top: 16px;
}

.reset-score-button {
  display: block;
  margin: 16px 0 0 auto;
}

.results-button {
  width: 100%;
  margin: 0 0 22px;
  padding: 18px 22px;
  border: 1px solid rgba(245, 210, 10, .55);
  background: rgba(245, 210, 10, .07);
  color: #f7f6fb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.results-button small,
.results-button strong {
  display: block;
}

.results-button small {
  margin-bottom: 4px;
  color: #f5d20a;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.results-button strong { font-size: 22px; }
.results-button b { color: #f5d20a; font-size: 24px; }

.role-card .note-state {
  width: fit-content;
  margin-top: 9px;
  padding: 5px 8px;
  border: 1px solid rgba(62, 230, 122, .45);
  background: rgba(62, 230, 122, .1);
  color: #79e6a5;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .06em;
}

.judge-management {
  margin: 0 0 22px;
  padding: 24px;
  border: 1px solid #3b2b5c;
  background: #100d17;
}

.judge-management-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.judge-management-heading h3 {
  margin: 7px 0 3px;
  font-size: 24px;
}

.judge-management-heading .muted { margin: 0; }

.expected-notes-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
}

.expected-notes-summary span,
.expected-notes-summary small {
  padding: 8px 10px;
  border: 1px solid #393342;
  color: #c5c0cc;
  font-size: 11px;
}

.expected-notes-summary strong { color: #f5d20a; }

.judge-list {
  display: grid;
  gap: 9px;
}

.judge-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(330px, auto) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid #2e2837;
  background: #17131d;
}

.judge-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.judge-identity > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: #9b72f4;
  color: #0b0910;
  font-weight: 950;
}

.judge-identity strong,
.judge-identity small { display: block; }

.judge-identity small {
  margin-top: 4px;
  color: #8f8999;
  font-size: 9px;
  letter-spacing: .08em;
}

.judge-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.judge-options label {
  padding: 8px 10px;
  border: 1px solid #393342;
  color: #c5c0cc;
  font-size: 11px;
  font-weight: 800;
}

.judge-options input { accent-color: #f5d20a; }

.save-judge-button {
  border: 0;
  padding: 11px 16px;
  background: #f5d20a;
  color: #0b0910;
  font-weight: 900;
  text-transform: uppercase;
}

.save-judge-button:disabled { opacity: .55; }

.result-state.review {
  border-color: rgba(255, 174, 66, .55);
  background: rgba(255, 174, 66, .12);
  color: #ffbd66;
}

.results-shell {
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 42px 0 80px;
}

.results-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.results-heading h2 {
  margin: 8px 0 4px;
  font-size: 38px;
}

.results-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
}

.results-filters label {
  display: grid;
  gap: 7px;
  color: #aaa5b2;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.results-filters select {
  padding: 11px;
  border: 1px solid #3b3444;
  background: #0d0b12;
  color: #f7f6fb;
}

.podium-panel,
.results-table-panel {
  margin-top: 16px;
  padding: 22px;
  border: 1px solid #302a38;
  background: #100e15;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-title > strong {
  padding: 7px 10px;
  background: #f5d20a;
  color: #0b0910;
  font-size: 12px;
}

.podium-list {
  display: grid;
  gap: 8px;
}

.podium-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, .045);
}

.podium-row > span {
  color: #f5d20a;
  font-size: 20px;
  font-weight: 950;
}

.podium-row small,
.results-table small {
  display: block;
  margin-top: 3px;
  color: #8f8999;
}

.podium-row > b { font-size: 22px; }

.results-table-wrap { overflow-x: auto; }

.results-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.results-table th,
.results-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #2a2531;
  text-align: left;
}

.results-table th {
  color: #9b95a4;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.rank-number { color: #f5d20a; }
.total-score { font-size: 18px; }

.result-state {
  display: inline-block;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

.result-state.complete {
  background: rgba(62, 230, 122, .12);
  color: #79e6a5;
}

.result-state.pending {
  background: rgba(245, 210, 10, .1);
  color: #f5d20a;
}

.athlete-row > span:first-child {
  color: #a77cff;
  font-weight: 800;
}

.athlete-row strong,
.athlete-row small {
  display: block;
}

.athlete-row small {
  margin-top: 3px;
  color: #9b96a8;
}

.import-status.success {
  color: #79e6a5;
}

@media (max-width: 700px) {
  .admin-menu { grid-template-columns: 1fr; }
  .admin-section-heading { align-items: flex-start; flex-direction: column; }
  .admin-import {
    grid-template-columns: 1fr;
  }

  .manual-athlete-heading { flex-direction: column; }

  .manual-athlete-form {
    grid-template-columns: 1fr;
  }

  .manual-athlete-form .primary-button { width: 100%; }

  .import-button {
    width: 100%;
  }

  .fiscal-controls {
    grid-template-columns: 1fr;
  }

  .athlete-row {
    grid-template-columns: 70px 1fr;
  }

  .athlete-judge-state { justify-self: start; }

  .send-athlete-button {
    grid-column: 1 / -1;
  }

  .athlete-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .registered-category article { grid-template-columns: 76px 1fr; }
  .registered-category article small { grid-column: 2; }

  .scoring-shell {
    width: 94vw;
    padding-top: 20px;
  }

  .score-form {
    padding: 18px;
  }

  .score-form-heading,
  .scoring-athlete {
    align-items: flex-start;
  }

  .trick-card {
    grid-template-columns: 44px 1fr;
  }

  .trick-name-field,
  .base-value,
  .scale-grid,
  .trick-subtotal {
    grid-column: 1 / -1;
  }

  .scale-grid,
  .execution-grid {
    grid-template-columns: 1fr;
  }

  .save-score-button {
    max-width: none;
  }

  .results-shell {
    width: 94vw;
    padding-top: 24px;
  }

  .results-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .results-heading h2 { font-size: 30px; }

  .results-filters {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .judge-row {
    grid-template-columns: 1fr;
  }

  .judge-options {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* V21 · All Around */
.allaround-admin-panel { margin-top:18px; padding:26px; border:1px solid transparent; border-radius:7px; background:linear-gradient(145deg,rgba(23,19,32,.98),rgba(8,8,14,.98)) padding-box,linear-gradient(115deg,#f5d20a,#9c52ee 52%,#31d9ef) border-box; box-shadow:0 20px 60px rgba(0,0,0,.36); }
.allaround-heading,.allaround-toggle-row { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.allaround-heading h3 { margin:4px 0; font-size:30px; }
.allaround-state { padding:9px 13px; border:1px solid; font-size:11px; font-weight:900; letter-spacing:.08em; }
.allaround-state.on { color:#58eea5; border-color:#28c97c; background:rgba(24,111,72,.22); }
.allaround-state.off { color:#aaa4b1; border-color:#504958; background:rgba(34,30,40,.7); }
.allaround-toggle-row { margin:24px 0 16px; padding:18px; border:1px solid #3a3344; background:linear-gradient(120deg,rgba(29,25,39,.9),rgba(12,11,17,.9)); }
.allaround-toggle-row small,.allaround-modes small { display:block; margin-top:5px; color:#918b98; }
.switch input { position:absolute; opacity:0; }
.switch > span { display:block; width:58px; height:30px; padding:3px; border:1px solid #5a5264; border-radius:20px; background:#17131d; transition:.2s; }
.switch > span::after { content:""; display:block; width:22px; height:22px; border-radius:50%; background:#77717e; transition:.2s; }
.switch input:checked + span { border-color:#32da8c; background:rgba(26,119,78,.28); }
.switch input:checked + span::after { transform:translateX(27px); background:#43eda0; box-shadow:0 0 13px rgba(67,237,160,.42); }
.allaround-modes { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:0; padding:18px; border:1px solid #3a3344; }
.allaround-modes legend { padding:0 8px; color:#f5d20a; font-size:11px; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }
.allaround-modes label { display:flex; gap:10px; padding:15px; border:1px solid #453b51; background:linear-gradient(145deg,#191520,#0d0b12); }
.allaround-modes:disabled { opacity:.48; }
.allaround-points { margin:20px 0; }
.allaround-points > div { display:grid; grid-template-columns:repeat(8,1fr); gap:7px; margin-top:10px; }
.allaround-points span { display:grid; justify-items:center; gap:5px; padding:11px 5px; border:1px solid #42384e; background:#100e15; }
.allaround-points b { color:#f5d20a; font-size:18px; }.allaround-points strong,.pkaa-value { color:#c997ff; }.allaround-save { width:min(460px,100%); margin-left:auto; }
.pkaa-total { color:#f5d20a; font-size:16px; }.allaround-results-block { border-color:#6d4a8f; }.allaround-podium-panel { border-color:#8e62bb; }
@media(max-width:700px){.allaround-admin-panel{padding:18px 13px}.allaround-heading,.allaround-toggle-row{align-items:flex-start}.allaround-modes{grid-template-columns:1fr}.allaround-points>div{grid-template-columns:repeat(4,1fr)}}

/* Menú de modalidades del juez · V14 */
.judge-modality-menu {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.judge-modality-menu button:nth-child(1) { border-top: 3px solid var(--yellow); }
.judge-modality-menu button:nth-child(2) { border-top: 3px solid #00ddae; }
.judge-modality-menu button:nth-child(3) { border-top: 3px solid var(--violet-soft); }

.judge-modality-menu .modality-unassigned {
  opacity: .62;
}

.judge-modality-menu .modality-unassigned small::after {
  content: " · SIN PERMISO";
  color: #ff8b8b;
}

.judge-modality-menu .menu-record-state {
  display: block;
  margin-top: 8px;
  color: #79eacb;
  font-style: normal;
  font-weight: 800;
}

#judgeSkillsPanel {
  margin-top: 24px;
}

#judgeSkillsPanel .ghost-button {
  margin-bottom: 26px;
}

@media (max-width: 820px) {
  .judge-modality-menu { grid-template-columns: 1fr; }
}

/* Controles y paneles oficiales · V14 */
.judge-refresh-box,
.speed-refresh-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.judge-refresh-box small,
.speed-refresh-bar small {
  color: #aaa5b2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
}

.speed-refresh-bar {
  justify-content: flex-end;
  margin-bottom: 14px;
}

.registration-filters {
  grid-template-columns: repeat(2, minmax(160px, 1fr)) minmax(150px, auto);
}

.registration-summary,
.speed-expected {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 10px 16px;
  border: 1px solid #393342;
  background: #17131d;
}

.registration-summary small,
.speed-expected small { color: #918b9b; font-size: 9px; letter-spacing: .1em; }
.registration-summary strong,
.speed-expected strong { color: var(--yellow); font-size: 25px; }

.athlete-actions { display: flex; gap: 8px; }
.dns-athlete-button {
  border: 1px solid #ff6578;
  padding: 10px 13px;
  background: rgba(255, 63, 88, .12);
  color: #ff8292;
  font-weight: 950;
  cursor: pointer;
}
.dns-athlete-button.undo { border-color: #8f8999; background: transparent; color: #b8b2c0; }
.athlete-row.judged .athlete-judge-state.special,
.result-state.special { background: rgba(255, 63, 88, .12); color: #ff8292; }

.speed-timer-controls { display: grid; margin-top: 20px; }
.speed-stop-button {
  min-height: 92px;
  border: 3px solid #ffcb5c;
  background: #e63337;
  color: white;
  font-size: 27px;
  font-weight: 1000;
  letter-spacing: .12em;
  box-shadow: 0 0 0 5px rgba(230, 51, 55, .16);
  cursor: pointer;
}
.speed-stop-button:disabled { opacity: .55; cursor: not-allowed; }
.speed-start-button { min-height: 58px; }
.speed-reset-button {
  justify-self: end;
  min-width: 0 !important;
  min-height: 40px;
  padding: 9px 14px;
  color: #fff;
  border: 1px solid transparent;
  background: linear-gradient(145deg, #2a2206, #0c0a08) padding-box, linear-gradient(120deg, #ffde22, #b88900) border-box;
  box-shadow: inset 0 1px rgba(255,255,255,.05), 0 0 13px rgba(255,214,22,.14);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.speed-reset-button:disabled { opacity: .4; cursor: not-allowed; }
.speed-status-field select:disabled,
.speed-calculation input:disabled { opacity: .58; cursor: not-allowed; }

.multi-results-shell { width: min(1260px, 94vw); }
.modality-results-block { margin-bottom: 24px; }
.modality-result-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 16px;
}
.modality-result-heading h3 { margin: 4px 0; font-size: 27px; }
.modality-result-heading > div > small { color: #918b9b; }
.pending-module-block { opacity: .72; }
.tie-resolve-button {
  margin-left: 8px;
  border: 1px solid #ffbd66;
  background: rgba(255, 174, 66, .12);
  color: #ffbd66;
  padding: 5px 8px;
  font-weight: 900;
}

.medals-panel { border-color: rgba(245, 210, 10, .38); }
.medal-row { min-height: 76px; }
.medal-row .medal-icon { font-size: 34px; }
.export-selection-button { margin-top: 18px; }

.export-filters { grid-template-columns: repeat(3, minmax(145px, 1fr)); }
.export-preview { display: grid; gap: 7px; }
.export-preview article {
  display: grid;
  grid-template-columns: 55px minmax(160px, 1fr) auto 150px;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, .045);
}
.export-preview article > span { color: var(--yellow); font-weight: 950; }
.export-preview article > b { font-size: 18px; }
.export-preview article > small { color: #aaa5b2; text-align: right; }
.export-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.export-actions .primary-button { width: 100%; }
.export-actions .png-button { background: #8d5cf0; color: white; }

/* V15 · Sistema visual definitivo Simios Urbanos */
:root {
  --su-yellow: #f5d20a;
  --su-violet: #8e54ef;
  --su-cyan: #42dff2;
  --su-green: #21df85;
  --su-red: #f34757;
  --su-surface: #11101a;
  --su-line: #403451;
}

body { background: #07070d; }
.app-shell { background: radial-gradient(circle at 88% 10%, rgba(95, 43, 178, .18), transparent 31%), #08080e; }
.topbar {
  height: 94px;
  padding: 0 max(3vw, 34px);
  border: 1px solid #352a48;
  background: linear-gradient(100deg, rgba(7, 7, 13, .98), rgba(13, 10, 22, .96));
}
.topbar .brand-mark { width: 62px; height: 62px; color: var(--su-yellow); border-color: var(--su-yellow); letter-spacing: 0; }
.topbar .brand-lockup h1 { font-size: 22px; letter-spacing: .035em; }
.topbar .eyebrow { display: block; }

.ghost-button,
.primary-button,
.admin-menu button,
.send-athlete-button,
.save-judge-button,
.dns-athlete-button,
.delete-athlete-button,
.speed-stop-button,
.speed-reset-button,
.deduction-add button,
.deduction-row button,
.results-button {
  position: relative;
  overflow: hidden;
  color: #fff;
  border: 1px solid transparent;
  background:
    linear-gradient(145deg, rgba(22, 18, 31, .98), rgba(8, 8, 14, .98)) padding-box,
    linear-gradient(120deg, #9c52ee, #f5d20a) border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 5px 15px rgba(0,0,0,.3), 0 0 13px rgba(128,69,210,.08);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.ghost-button:hover,
.primary-button:hover,
.admin-menu button:hover,
.send-athlete-button:hover,
.save-judge-button:hover { transform: translateY(-2px); filter: brightness(1.12); }
.primary-button { color: #fff; }
.primary-button:disabled { opacity: .52; }
.dns-athlete-button,
.speed-stop-button {
  color: #fff;
  background: linear-gradient(145deg, #2c0b13, #0b090f) padding-box, linear-gradient(120deg, #ff6c73, #c5142c) border-box;
  box-shadow: inset 0 1px rgba(255,255,255,.05), 0 0 13px rgba(243,71,87,.19);
}
.send-athlete-button[data-speed-modify="true"],
.send-athlete-button[data-modify-athlete="true"] {
  background: linear-gradient(145deg, #09271a, #090d0c) padding-box, linear-gradient(120deg, #31ef91, #168e5a) border-box;
  box-shadow: inset 0 1px rgba(255,255,255,.05), 0 0 13px rgba(33,223,133,.18);
}
.delete-athlete-button {
  color: #ff6877;
  background: linear-gradient(145deg, rgba(38,10,17,.25), #09080e) padding-box, linear-gradient(120deg, #7f2434, #ef4056) border-box;
}
.speed-start-button {
  background: linear-gradient(145deg, #09291a, #080d0b) padding-box, linear-gradient(120deg, #19e481, #087f4a) border-box;
  box-shadow: 0 0 20px rgba(25,228,129,.2);
}
.speed-timer-controls .speed-reset-button {
  color: #fff;
  background: linear-gradient(145deg, #2a2206, #0c0a08) padding-box, linear-gradient(120deg, #ffde22, #b88900) border-box;
  box-shadow: inset 0 1px rgba(255,255,255,.05), 0 0 13px rgba(255,214,22,.14);
}

@media (max-width: 680px) {
  .speed-reset-button { width: auto !important; justify-self: end; min-height: 42px !important; }
}

.dashboard { width: min(1420px, 92vw); padding: 60px 0 80px; }
.dashboard.section-active .status-row { display: none; }
.status-row h2 { font-size: 42px; }
#roleLabel:empty { display: none; }
.event-card,
.competition-banner {
  min-height: 144px;
  margin: 0 auto 26px;
  padding: 30px 54px;
  display: flex;
  align-items: center;
  border: 1px solid transparent;
  border-left: 4px solid var(--su-yellow);
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(13,11,20,.98) 0%, rgba(13,10,20,.91) 42%, rgba(13,9,20,.24) 67%, rgba(50,18,90,.55) 100%) padding-box,
    url("./SimiosUrbanos.png") right 27% center / 660px auto no-repeat padding-box,
    linear-gradient(120deg, #f5d20a, #8e54ef) border-box;
  box-shadow: 0 14px 35px rgba(0,0,0,.26), inset 0 1px rgba(255,255,255,.03);
}
.event-card h3,
.competition-banner h3 { font-size: 34px; letter-spacing: .02em; }
.event-card .event-meta { display: none; }
.competition-banner { width: min(1420px, 92vw); margin-top: 18px; }
.competition-banner > div { position: relative; z-index: 1; }
.standalone-context {
  width: min(1420px, 92vw);
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.standalone-context h2 { margin: 0; font-size: 38px; letter-spacing: -.035em; }
.standalone-context .ghost-button { flex: 0 0 auto; }

.admin-menu { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 26px; }
.admin-menu button {
  min-height: 130px;
  padding: 27px 30px;
  grid-template-columns: 44px 1fr;
  border-radius: 6px;
  text-align: left;
}
.admin-menu button > span { grid-row: 1 / 3; width: 40px; color: var(--su-yellow); font-size: 30px; letter-spacing: 0; }
.admin-menu button strong { font-size: 24px; letter-spacing: -.02em; }
.admin-menu button small { font-size: 14px; }
.judge-modality-menu { grid-template-columns: repeat(3, 1fr); }
.judge-modality-menu button { min-height: 210px; grid-template-columns: 115px 1fr; }
.judge-modality-menu button > span { width: 100px; font-size: 64px; text-align: center; color: transparent; background: linear-gradient(140deg, #f5d20a, #8e54ef); background-clip: text; }

.admin-section-heading { margin: 10px 0 24px; align-items: center; }
.admin-section-heading > div > .card-label { display: none; }
.admin-section-heading h3 { font-size: 38px; }
.manual-athlete-panel,
.athletes-panel,
.admin-import,
.judge-management,
.future-panel,
.score-form,
.results-table-panel,
.podium-panel {
  border-radius: 7px;
  border-color: #3d3249;
  background: linear-gradient(145deg, rgba(19,17,27,.97), rgba(10,10,17,.98));
  box-shadow: 0 14px 30px rgba(0,0,0,.18), inset 0 1px rgba(255,255,255,.025);
}
.manual-athlete-panel > .manual-athlete-heading .card-label,
.registered-athlete-list + * { color: var(--su-yellow); }
#manualAthletePanel .card-label,
#registeredAthletesPanel .card-label { color: var(--su-yellow); font-size: 15px; }
#manualAthletePanel .manual-athlete-heading h3 { font-size: 19px; color: #d9d5df; }
#registeredAthletesPanel .athletes-heading h3 { color: var(--su-yellow); }
.athlete-row > span:first-child,
.registered-athlete-list article span,
.results-table td small { color: #8e8a98 !important; }

.trick-subtotal {
  border: 1px solid #9458ed;
  background: linear-gradient(145deg, rgba(132,66,225,.72), rgba(32,17,53,.95));
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 0 13px rgba(142,84,239,.15);
}
.deduction-add button,
.deduction-row button { min-width: 36px; color: #fff; }
.speed-timer-card > .card-label { color: #8f8b99; }
.speed-timer,
.speed-final strong,
#speedJudgeFinal { color: var(--su-cyan); text-shadow: 0 0 20px rgba(66,223,242,.18); }
.speed-manual-time {
  width: min(430px, 90%);
  margin: 12px auto 22px;
  display: grid;
  gap: 9px;
  color: #aaa5b2;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  font-weight: 800;
}
.speed-manual-time input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--su-cyan);
  border-radius: 5px;
  outline: 0;
  color: var(--su-cyan);
  background: #090a11;
  text-align: center;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: .04em;
  box-shadow: 0 0 18px rgba(66,223,242,.12);
}
.export-actions .primary-button { color: var(--su-yellow); }
.export-actions .png-button {
  color: #bc8cff;
  background: linear-gradient(145deg, #17101f, #09080e) padding-box, linear-gradient(120deg, #9c52ee, #f5d20a) border-box;
}

@media (max-width: 1050px) {
  .admin-menu { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .judge-modality-menu { grid-template-columns: 1fr; }
  .event-card,.competition-banner { background-size: 520px auto, auto; background-position: right -20px center, center; }
}
@media (max-width: 700px) {
  .topbar { height: 78px; padding: 0 14px; }
  .topbar .brand-mark { width: 48px; height: 48px; }
  .topbar .brand-lockup h1 { font-size: 15px; }
  .dashboard { width: 94vw; padding-top: 22px; }
  .admin-menu { grid-template-columns: 1fr; }
  .event-card,.competition-banner { width: 94vw; min-height: 122px; padding: 22px; background-size: 390px auto, auto; background-position: right -120px center, center; }
  .event-card h3,.competition-banner h3 { font-size: 25px; }
  .standalone-context { width: 94vw; flex-wrap: wrap; }
  .standalone-context h2 { font-size: 31px; }
  .admin-section-heading { flex-wrap: wrap; }
  .admin-section-heading h3 { font-size: 30px; }
  .judge-modality-menu button { min-height: 155px; grid-template-columns: 80px 1fr; }
  .judge-modality-menu button > span { width: 70px; font-size: 48px; }
}

@media (max-width: 820px) {
  .judge-refresh-box,
  .modality-result-heading { align-items: stretch; flex-direction: column; }
  .registration-filters,
  .export-filters { grid-template-columns: 1fr; }
  .export-preview article { grid-template-columns: 42px 1fr auto; }
  .export-preview article > small { grid-column: 2 / -1; text-align: left; }
  .export-actions { grid-template-columns: 1fr; }
}

/* V16 · iconografía oficial */
.admin-menu button > .menu-icon,
.judge-modality-menu button > .menu-icon {
  grid-row: 1 / 3;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  color: inherit;
  background: none;
  background-clip: initial;
}
.menu-icon img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 0 9px rgba(142,84,239,.2)); }
.judge-modality-menu button > .menu-icon { width: 106px; height: 106px; }
.admin-menu button { grid-template-columns: 82px minmax(0,1fr); }
.judge-modality-menu button { grid-template-columns: 118px minmax(0,1fr); }

/* V16 · editor del padrón */
.registered-athlete-list article { grid-template-columns: 92px minmax(180px,1fr) minmax(120px,.5fr) auto; }
.registered-edit-button { min-width: 88px; }
.athlete-edit-dialog {
  width: min(720px, 92vw);
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #f7f5fb;
  background: linear-gradient(145deg,#17131f,#09080e) padding-box, linear-gradient(120deg,#9c52ee,#f5d20a) border-box;
  box-shadow: 0 28px 80px rgba(0,0,0,.72), 0 0 26px rgba(142,84,239,.16);
}
.athlete-edit-dialog::backdrop { background: rgba(2,2,7,.82); backdrop-filter: blur(5px); }
.athlete-edit-dialog form { padding: 28px; display: grid; gap: 20px; }
.athlete-edit-heading,.athlete-edit-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.athlete-edit-heading h3 { margin: 3px 0 0; font-size: 26px; }
.athlete-edit-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.athlete-edit-grid label { display: grid; gap: 7px; color: #aaa6b4; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.athlete-edit-grid input,.athlete-edit-grid select { width: 100%; }
.athlete-edit-modalities { margin: 0; }
.athlete-edit-actions .primary-button { min-width: 230px; }

/* V16 · diferenciación de escalados, deducciones y bonificaciones */
.scale-grid label,
.deduction-add select,
.deduction-row strong,
.deduction-row span,
.execution-column > label,
.bonus-field { color: #bd91ff !important; }
.scale-grid select,
.bonus-field select { color: #cfb0ff; }

/* V16 · adaptación para teléfonos */
@media (max-width: 700px) {
  html,body { max-width: 100%; overflow-x: hidden; }
  .topbar { min-height: 78px; height: auto; gap: 10px; }
  .topbar .brand-lockup { min-width: 0; gap: 10px; }
  .topbar .brand-lockup > div:last-child { min-width: 0; }
  .topbar .eyebrow { font-size: 9px; }
  .topbar .brand-lockup h1 { font-size: 14px; overflow-wrap: anywhere; }
  .topbar > .ghost-button { padding: 11px 14px; }
  .dashboard,.scoring-shell,.results-shell { width: 94vw; }
  .status-row { align-items: flex-start; gap: 14px; }
  .status-row h2 { font-size: 30px; }
  .online-badge { padding: 9px 11px; font-size: 11px; }
  .event-card,.competition-banner {
    background-position: right -150px center, center;
    background-size: 420px auto, auto;
  }
  .standalone-context { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 14px; }
  .standalone-context h2 { min-width: 0; font-size: 29px; overflow-wrap: anywhere; }
  .admin-section-heading { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 14px; }
  .admin-section-heading > .judge-refresh-box { grid-column: 1 / -1; width: 100%; }
  .admin-section-heading h3 { font-size: 29px; overflow-wrap: anywhere; }
  .admin-menu button { grid-template-columns: 74px minmax(0,1fr); padding: 22px; }
  .admin-menu button > .menu-icon { width: 66px; height: 66px; }
  .judge-modality-menu button { grid-template-columns: 86px minmax(0,1fr); }
  .judge-modality-menu button > .menu-icon { width: 78px; height: 78px; }
  .admin-menu button strong { font-size: 21px; }
  .admin-menu button small { overflow-wrap: anywhere; }
  .role-grid { grid-template-columns: 1fr; gap: 15px; }
  .role-card { grid-template-columns: 76px minmax(0,1fr) 22px; gap: 14px; padding: 22px 18px; }
  .role-card > span:nth-child(2) { min-width: 0; }
  .role-card strong { font-size: 24px; }
  .role-card em { line-height: 1.5; overflow-wrap: anywhere; }
  .role-card .note-state { max-width: 100%; display: inline-block; white-space: normal; overflow-wrap: anywhere; font-size: 10px; }
  .next-athlete,.scoring-athlete {
    display: grid;
    grid-template-columns: 76px minmax(0,1fr) auto;
    align-items: start;
    gap: 14px;
    padding: 22px 16px;
  }
  .next-athlete > div:nth-child(2),.scoring-athlete > div:nth-child(2) { min-width: 0; }
  .athlete-index { width: 76px; min-width: 76px; max-width: 76px; padding: 12px 5px; font-size: 13px; overflow: hidden; text-align: center; }
  .next-athlete h3,.scoring-athlete h2 { font-size: 25px; line-height: 1.12; overflow-wrap: anywhere; }
  .athlete-meta,.scoring-athlete .muted { overflow-wrap: anywhere; }
  .waiting { margin: 0; align-self: start; font-size: 10px; }
  .scoring-type-badge { width: 55px; height: 55px; font-size: 24px; }
  .score-form { padding: 20px 15px; }
  .score-form-heading { align-items: flex-start; gap: 12px; }
  .score-form-heading h2 { font-size: 28px; }
  .final-score { min-width: 112px; padding: 15px; }
  .trick-card { grid-template-columns: 42px minmax(0,1fr); }
  .trick-card > label,.trick-name-field,.scale-grid,.trick-subtotal,.base-value { grid-column: 2; min-width: 0; }
  .scale-grid { grid-template-columns: 1fr; }
  .execution-grid,.speed-calculation,.speed-status-field { grid-template-columns: 1fr; }
  .speed-status-field p { margin: 0; }
  .speed-timer { font-size: clamp(48px,15vw,72px); letter-spacing: .015em; }
  .speed-timer-controls button { width: 100%; min-height: 58px; }
  .speed-calculation > * { min-width: 0; }
  .manual-athlete-form,.fiscal-controls { grid-template-columns: 1fr; }
  .registered-athlete-list article { grid-template-columns: 82px minmax(0,1fr) auto; gap: 8px 10px; }
  .registered-athlete-list article small { grid-column: 2; }
  .registered-edit-button { grid-column: 3; grid-row: 1 / 3; align-self: center; min-width: 70px; padding: 10px 8px; }
  .athlete-edit-grid { grid-template-columns: 1fr; }
  .athlete-edit-actions { align-items: stretch; flex-direction: column-reverse; }
  .athlete-edit-actions .primary-button { min-width: 0; width: 100%; }
  .results-table-wrap { max-width: 100%; overflow-x: auto; }
}

/* V17 · Skills */
.skills-admin-panel,
.skills-judge-panel {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: linear-gradient(145deg,rgba(22,18,31,.98),rgba(8,8,14,.98)) padding-box,
    linear-gradient(115deg,#f5d20a,#9c52ee 48%,#332943) border-box;
  box-shadow: 0 18px 52px rgba(0,0,0,.34), inset 0 1px rgba(255,255,255,.025);
}
.skills-panel-heading,
.skills-admin-roster-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.skills-panel-heading h3,
.skills-admin-roster-heading h3 { margin: 4px 0 0; font-size: 27px; }
.skills-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.skills-admin-config {
  display: grid;
  grid-template-columns: minmax(190px,1fr) minmax(180px,.8fr) minmax(190px,.65fr);
  gap: 14px;
  margin: 22px 0 28px;
  padding: 18px;
  border: 1px solid #3c344a;
  background: linear-gradient(145deg,rgba(23,19,32,.9),rgba(11,10,17,.9));
}
.skills-admin-config > label { display: grid; gap: 7px; color: #aaa6b4; font-size: 11px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.skills-admin-config select { width: 100%; }
.skills-count-control { display: grid; align-content: center; justify-items: center; gap: 7px; }
.skills-count-control small { color: #aaa6b4; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.skills-count-control > div { display: grid; grid-template-columns: 42px 58px 42px; align-items: center; gap: 8px; }
.skills-count-control button,
.skills-attempts button {
  min-height: 38px;
  border: 1px solid transparent;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(#14111d,#0b0a10) padding-box,
    linear-gradient(120deg,#a44fec,#f5d20a) border-box;
  box-shadow: 0 5px 14px rgba(0,0,0,.34), 0 0 12px rgba(156,82,238,.09);
}
.skills-count-control strong { color: #f5d20a; font-size: 28px; text-align: center; }
.skills-count-control em { color: #797381; font-size: 10px; font-style: normal; text-transform: uppercase; }
.skills-config-warning { grid-column: 1 / -1; margin: 0; color: #a9a4b2; font-size: 12px; }
.skills-admin-athlete-list { display: grid; gap: 7px; margin-top: 15px; }
.skills-admin-athlete-row {
  display: grid;
  grid-template-columns: 36px 92px minmax(180px,1fr) minmax(130px,.5fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 58px;
  padding: 10px 13px;
  border: 1px solid #302a39;
  background: linear-gradient(100deg,rgba(31,26,42,.84),rgba(12,11,17,.86));
}
.skills-admin-athlete-row > span { color: #f5d20a; font-weight: 900; text-align: center; }
.skills-admin-athlete-row small { color: #77727f; font-weight: 800; }
.skills-admin-athlete-row strong { color: #f5f2f8; }
.skills-admin-athlete-row em { color: #9a94a1; font-size: 11px; font-style: normal; text-transform: uppercase; }
.skills-send-button { width: min(520px,100%); margin: 24px auto 0; }
.skills-judge-actions { display: grid; grid-template-columns: minmax(170px,.45fr) minmax(260px,1fr); gap: 12px; width: min(720px,100%); margin: 24px auto 0; }
.skills-save-button { width: 100%; margin: 0; }
.skills-clear-button { width: 100%; color: #fff; }
.skills-course-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 18px 0;
  padding: 11px 15px;
  border: 1px solid #1d9d64;
  color: #55e59c;
  background: linear-gradient(120deg,rgba(21,112,75,.19),rgba(6,30,23,.12));
  box-shadow: 0 0 18px rgba(31,220,132,.08);
}
.skills-course-badge > span { width: 9px; height: 9px; border-radius: 50%; background: #22e88b; box-shadow: 0 0 12px #22e88b; }
.admin-course-badge { margin-inline: auto; }
.skills-waiting { padding: 30px 20px; border: 1px solid #342d3e; text-align: center; }
.skills-roster-scroll { max-width: 100%; overflow-x: auto; border: 1px solid #393143; scrollbar-color: #7c7187 #17131d; }
.skills-judge-table { width: 100%; min-width: 1100px; border-collapse: collapse; }
.skills-judge-table th { padding: 13px 10px; color: #f5d20a; background: #16121e; font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.skills-judge-table td { padding: 10px; border-top: 1px solid #322b3c; background: rgba(15,13,21,.75); vertical-align: middle; }
.skills-judge-table tbody tr:nth-child(even) td { background: rgba(27,23,36,.74); }
.skills-judge-table th:first-child,
.skills-judge-table td:first-child { position: sticky; left: 0; z-index: 2; min-width: 170px; text-align: left; box-shadow: 8px 0 18px rgba(0,0,0,.18); }
.skills-judge-table td:first-child strong { display: block; color: #fff; }
.skills-judge-table td:first-child small { display: block; margin-top: 4px; color: #77727f; font-weight: 800; }
.skills-cell { display: grid; gap: 8px; min-width: 122px; }
.skills-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.skills-choice button {
  min-height: 32px;
  border: 1px solid #585260;
  color: #fff;
  background: linear-gradient(145deg,#17141d,#0d0c12);
  font-size: 10px;
  font-weight: 900;
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.skills-choice button span { color: inherit; }
.skills-choice button.selected-yes { border-color: #24d984; color: #5ef0a6; background: linear-gradient(145deg,rgba(22,105,70,.48),rgba(7,34,25,.9)); box-shadow: 0 0 13px rgba(36,217,132,.17); }
.skills-choice button.selected-no { border-color: #e74051; color: #ff6f79; background: linear-gradient(145deg,rgba(111,26,39,.5),rgba(38,8,14,.9)); box-shadow: 0 0 13px rgba(231,64,81,.17); }
.skills-attempts { display: grid; grid-template-columns: 30px 32px 30px; align-items: center; justify-content: center; gap: 5px; }
.skills-attempts button { min-height: 28px; font-size: 15px; }
.skills-attempts strong { color: #fff; text-align: center; }
.skills-percentage { display: grid; gap: 8px; min-width: 112px; }
.skills-percentage > strong { color: #5ef0a6; text-align: center; }
.skills-percentage > div,
.skills-result-percentage > span { height: 8px; overflow: hidden; border: 1px solid #35413c; background: #0b100e; }
.skills-percentage > div > span,
.skills-result-percentage > span > i { display: block; height: 100%; background: linear-gradient(90deg,#188e5a,#39ee95); box-shadow: 0 0 11px rgba(57,238,149,.32); }
.skills-time-input { width: 112px; color: #bd91ff; font-weight: 900; text-align: center; border-color: #5c3d80; background: #07060b; box-shadow: inset 0 0 12px rgba(0,0,0,.45); }
.skills-results-table { min-width: 800px; }
.skills-result-percentage { display: grid; grid-template-columns: 55px minmax(80px,1fr); align-items: center; gap: 9px; }
.skills-result-percentage strong { color: #5ef0a6; }
.skills-result-time { color: #bd91ff; }

@media (max-width: 700px) {
  .skills-admin-panel,.skills-judge-panel { padding: 18px 12px; }
  .skills-panel-heading,.skills-admin-roster-heading { display: grid; gap: 14px; }
  .skills-heading-actions { justify-content: stretch; }
  .skills-heading-actions button { flex: 1; }
  .skills-judge-actions { grid-template-columns: 1fr; }
  .skills-admin-config { grid-template-columns: 1fr; padding: 14px; }
  .skills-config-warning { grid-column: auto; }
  .skills-admin-athlete-row { grid-template-columns: 32px 78px minmax(0,1fr) auto; gap: 8px; }
  .skills-admin-athlete-row em { grid-column: 3; }
  .skills-admin-athlete-row .delete-athlete-button { grid-column: 4; grid-row: 1 / 3; }
  .skills-judge-table th:first-child,.skills-judge-table td:first-child { min-width: 150px; }
}

/* V18 · iconografía transparente, proporcional y responsiva */
.admin-menu button > .menu-icon,
.judge-modality-menu button > .menu-icon {
  flex: none;
  width: 54px;
  height: 54px;
}
.admin-menu button {
  grid-template-columns: 62px minmax(0,1fr);
}
.judge-modality-menu button {
  grid-template-columns: 78px minmax(0,1fr);
}
.judge-modality-menu button > .menu-icon {
  width: 70px;
  height: 70px;
}
.menu-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.export-actions .primary-button {
  min-height: 68px;
  align-items: center;
}
.export-button-label {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}
.export-button-label img {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(142,84,239,.16));
}

@media (max-width: 700px) {
  .admin-menu button {
    grid-template-columns: 54px minmax(0,1fr);
  }
  .admin-menu button > .menu-icon {
    width: 46px;
    height: 46px;
  }
  .judge-modality-menu button {
    grid-template-columns: 64px minmax(0,1fr);
  }
  .judge-modality-menu button > .menu-icon {
    width: 56px;
    height: 56px;
  }
  .export-actions .primary-button {
    min-height: 62px;
  }
  .export-button-label {
    gap: 10px;
  }
  .export-button-label img {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
}
