@font-face {
  font-family: Inter;
  src: url("assets/inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* Solar v0.8.0 · https://www.utiliza.me/solar/components/cards.md */
:root {
  --blue: #003da6;
  --blue-mid: #0056ca;
  --ink: #0b1b3d;
  --slate: #475569;
  --line: #d7dde8;
  --line-strong: #b7c2d6;
  --bg: #f6f8fc;
  --paper: #fff;
  --blue-soft: #edf4ff;
  --success: #216b1a;
  --success-soft: #f3faf2;
  --success-line: #b1dfaa;
  --warning: #984508;
  --warning-soft: #fffbeb;
  --warning-line: #fcd34d;
  --radius: 15px;
  --shadow: 0 1px 4px rgb(11 27 61 / 6%);
  color-scheme: light;
  --control: var(--paper);
  --bar: var(--ink);
  --fill: var(--blue);
  --fill-hover: var(--blue-mid);
  --on-fill: #fff;
  --sent-bg: #e2f3df;
}

/* Solar · modo oscuro: fondo, superficie, capa y acento tienen funciones distintas. */
:root.dark {
  color-scheme: dark;
  --paper: #131a2a;
  --bg: #1c2436;
  --control: #273045;
  --bar: #131a2a;
  --ink: #eceef4;
  --slate: #ccd4e6;
  --line: #566075;
  --line-strong: #79849a;
  --blue: #a9d4ff;
  --blue-soft: #243449;
  --fill: #0056ca;
  --fill-hover: #003da6;
  --on-fill: #eceef4;
  --success: #8fe781;
  --success-soft: rgb(47 135 33 / 10%);
  --sent-bg: rgb(47 135 33 / 20%);
  --success-line: rgb(143 231 129 / 35%);
  --warning: #ffca53;
  --warning-soft: rgb(187 90 8 / 10%);
  --warning-line: rgb(255 202 83 / 35%);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 Inter, system-ui, sans-serif; }
body:has(dialog[open]) { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 3px;
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 650; line-height: 1.08; letter-spacing: -.04em; }
h2 { font-size: 22px; font-weight: 680; line-height: 1.25; letter-spacing: -.025em; }
h3 { font-size: 16px; line-height: 1.35; font-weight: 680; }
.wrap { width: min(1140px, calc(100% - 56px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 10; padding: 8px 16px; background: var(--control); }
.muted { color: var(--slate); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }

.topbar { background: var(--bar); color: white; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; font-size: 18px; letter-spacing: -.035em; font-weight: 730; white-space: nowrap; }
.brand img { width: 48px; height: auto; padding-right: 1px; display: block; }

.account-bar { display: flex; align-items: center; gap: 15px; }
.account-bar[hidden] { display: none; }
.account { display: flex; gap: 8px; min-height: 44px; align-items: center; border: 0; padding: 4px 0 4px 4px; background: none; color: var(--ink); font-size: 14px; font-weight: 620; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--blue); background: var(--blue-soft); font-weight: 700; font-size: 12px; flex: none; }
.access-layout { display: grid; grid-template-columns: .84fr 1fr; gap: 24px; width: min(100%, 835px); margin: clamp(32px, 8vh, 82px) auto; align-items: stretch; }
.access-context { display: grid; align-content: end; gap: 11px; min-height: 340px; padding: 30px; }
.access-context h2 { font-size: clamp(27px, 4vw, 39px); line-height: 1.08; letter-spacing: -.037em; }
.access-context p { color: var(--slate); }
.access-card { display: grid; gap: 13px; align-content: start; padding: clamp(19px, 4vw, 32px); }
.access-card h1 { font-size: clamp(25px, 4vw, 36px); }
.access-card .editor { margin-top: 4px; }
.access-card .editor input { min-height: 52px; font-size: 16px; }
.otp-control { position: relative; width: 100%; max-width: 340px; }
.otp-control input { position: absolute; inset: 0; height: 100%; margin: 0; opacity: 0; cursor: text; direction: ltr; }
.otp-digits { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(4px, 1.6vw, 8px); }
.otp-digits span { display: grid; place-items: center; height: 52px; background: var(--control); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 8px; font-size: 18px; }
.otp-control:focus-within { outline: 2px solid var(--fill); outline-offset: 3px; border-radius: 8px; }
.access-card .editor .button { min-height: 52px; }
.access-card .editor .text-button { justify-self: center; }
.access-card strong { overflow-wrap: anywhere; }
.demo-access { display: grid; gap: 9px; margin-top: 3px; padding-top: 13px; border-top: 1px solid var(--line); }
.demo-access h2 { color: var(--slate); font-size: 14px; letter-spacing: 0; }
.intro { display: flex; justify-content: space-between; align-items: end; gap: 14px; padding: 34px 0 24px; }
.intro p { margin-top: 5px; }
.grid { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(0, 1.75fr); gap: 22px; align-items: start; }
.side, .evaluate, .stack { display: grid; min-width: 0; gap: 14px; }
.card { background: var(--bg); border: 0; border-radius: var(--radius); }
.card-pad { padding: 20px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tag { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; min-height: 24px; padding: 2px 10px; font: 500 12px/16px Inter, system-ui, sans-serif; color: var(--blue); background: var(--blue-soft); white-space: nowrap; }
.tag.live { color: var(--slate); background: var(--bg); }
.tag.live .dot { color: var(--blue); }
.tag.green { color: var(--success); background: var(--success-soft); }
.card .tag.neutral { background: var(--paper); color: var(--slate); }
.tag.neutral { background: var(--bg); color: var(--slate); }
.dot { width: 7px; height: 7px; background: currentColor; border-radius: 50%; }
.progress-line { display: flex; align-items: baseline; gap: 7px; margin-top: 12px; }
.progress-line strong { color: var(--blue); font-size: 33px; line-height: 1; letter-spacing: -.045em; }
progress { width: 100%; height: 8px; display: block; margin-top: 14px; appearance: none; border: 0; border-radius: 999px; background: var(--blue-soft); }
progress::-webkit-progress-bar { background: var(--blue-soft); border-radius: 999px; }
progress::-webkit-progress-value { background: var(--blue); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--blue); border-radius: 999px; }
.jury-agenda { position: sticky; top: 0; z-index: 3; margin: 0; padding: 8px 12px 4px; min-width: 0; }
.jury-agenda h2 { font-size: 15px; }
.agenda-progress { font-size: 11px; white-space: nowrap; }
.agenda { display: flex; gap: 5px; list-style: none; margin: 0; padding: 4px 2px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.agenda li { flex: none; }
.turn { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--slate); background: var(--bg); font-weight: 700; font-variant-numeric: tabular-nums; }
.turn.current { display: inline-flex; align-items: center; gap: 8px; padding-inline: 10px; color: var(--on-fill); background: var(--fill); border: 2px solid var(--fill); }
.turn.sent { color: var(--success); background: var(--sent-bg); border: 1px solid var(--success-line); }
.turn.locked { color: var(--warning); background: var(--warning-soft); border: 2px dotted var(--warning); }
.turn:focus-visible { outline-offset: -3px; }
.turn.current:focus-visible { outline-color: white; }
.participant-notes { margin-top: 16px; }
body:has(.jury-agenda) :is(.dimension, .rating input, #feedback) { scroll-margin-top: 90px; }
.order { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 8px; font-size: 13px; font-weight: 650; color: var(--slate); background: var(--bg); }
.hero h2 { font-size: clamp(26px, 4vw, 34px); margin-top: 10px; overflow-wrap: anywhere; }
.hero p { margin-top: 2px; color: var(--slate); }
.score-list { margin: 0; padding: 0; display: grid; gap: 12px; }
.dimension { min-inline-size: 0; margin: 0; padding: 12px 17px 11px; }
.dimension legend { padding: 0; float: left; width: 100%; }
.dimension-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dimension-title { font-size: 18px; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; }
.dimension .help { clear: both; font-size: 13px; line-height: 1.4; color: var(--slate); margin: 4px 0 12px; }
.rating { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.rating label { position: relative; min-width: 0; -webkit-tap-highlight-color: transparent; }
.rating input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rating label span { display: grid; place-items: center; min-height: 59px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--control); color: var(--ink); font-size: 25px; line-height: 1; font-weight: 690; cursor: pointer; }
@media (hover: hover) {
  .rating label:hover input:not(:checked) + span { border-color: var(--blue); }
}
.rating input:checked + span { background: var(--fill); border-color: var(--fill); color: var(--on-fill); box-shadow: var(--shadow); }
.rating input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }
.rating-key { display: flex; justify-content: space-between; color: var(--slate); font-size: 11px; margin-top: 4px; }
.feedback-field { display: grid; gap: 7px; padding: 13px 17px; }
.feedback-field label { font-weight: 650; }
.feedback-field label span { margin-left: 5px; font-weight: 450; }
.feedback-field textarea { display: block; width: 100%; min-height: 92px; padding: 9px 11px; resize: vertical; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--control); color: var(--ink); scroll-margin-bottom: 100px; }
.feedback-field textarea::placeholder { color: var(--slate); }
.feedback-copy { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; }
.feedback-copy p { margin-top: 4px; overflow-wrap: anywhere; white-space: pre-wrap; }
.submit-bar { position: sticky; z-index: 2; bottom: 0; display: flex; gap: 13px; align-items: center; justify-content: space-between; margin-top: 0; padding: 10px 13px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 -3px 20px rgb(11 27 61 / 6%); }
.submit-bar strong { display: block; font-size: 14px; }
.submit-bar p { font-size: 12px; }
.submit-bar .button { flex-shrink: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 16px; border-radius: var(--radius); border: 1px solid var(--fill); background: var(--fill); color: var(--on-fill); line-height: 1.25; font-weight: 650; text-align: center; }
.button:hover { background: var(--fill-hover); }
.button.outline { border-color: var(--line-strong); background: var(--control); color: var(--ink); }
.button.outline:hover { border-color: var(--blue); color: var(--blue); }
.button.compact { min-height: 44px; padding: 7px 12px; font-size: 13px; }
.button:disabled { background: rgb(0 61 166 / 40%); border-color: transparent; color: white; }
@media (prefers-reduced-motion: no-preference) {
  .button:enabled:active { transform: scale(.95); }
}
.text-button { border: 0; background: none; color: var(--blue); min-height: 44px; padding: 4px 0; text-align: left; font-size: 13px; font-weight: 650; }
.text-button:hover { text-decoration: underline; }
.alert { padding: 15px 17px; border-radius: var(--radius); background: var(--success-soft); color: var(--success); }
.alert p { margin-top: 3px; }
.alert.warning { background: var(--warning-soft); color: var(--warning); }
.alert.info { background: var(--blue-soft); color: var(--blue); }
.icon { display: inline-block; width: 20px; height: 20px; flex: none; vertical-align: -.2em; }
.note-list { list-style: none; padding: 0; margin: 10px 0 0; }
.note-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.admin-panel { padding: 16px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
th, td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
thead th { color: var(--slate); font-size: 12px; font-weight: 620; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
.admin-rows { margin-top: 10px; }
.drag-help { margin-top: 4px; }
.admin-rows > div { display: flex; position: relative; gap: 10px; align-items: center; padding: 10px 5px; border-bottom: 1px solid var(--line); }
.admin-rows > div:last-child { border-bottom: 0; }
.admin-rows > .active-row { background: var(--blue-soft); border-radius: 9px; }
.admin-rows > .dragging { opacity: .48; }
.admin-rows > .drop-before::before, .admin-rows > .drop-after::after { position: absolute; content: ""; left: 0; right: 0; height: 3px; background: var(--blue); border-radius: 2px; }
.admin-rows > .drop-before::before { top: 0; }
.admin-rows > .drop-after::after { bottom: 0; }
.drag-handle, .handle-space { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; }
.drag-handle { border: 1px solid var(--line-strong); border-radius: 9px; background: var(--control); color: var(--blue); cursor: grab; touch-action: none; user-select: none; }
.drag-handle:active { cursor: grabbing; }
.drag-handle span { width: 13px; height: 19px; background: radial-gradient(circle, currentColor 1.35px, transparent 1.6px) 0 0 / 6px 6px; pointer-events: none; }
.grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--blue); background: var(--control); }
.icon-button:disabled { color: #7787a0; border-color: var(--line); background: var(--bg); }
.editor { display: grid; gap: 12px; }
.editor label { display: grid; gap: 4px; color: var(--slate); font-weight: 600; font-size: 13px; }
.editor input, .editor textarea, .select { min-width: 0; min-height: 44px; width: 100%; background: var(--control); border: 1px solid var(--line-strong); border-radius: 9px; padding: 6px 10px; color: var(--ink); }
.editor input[type="file"] { padding: 9px; }
.editor textarea { resize: vertical; font-family: ui-monospace, monospace; font-size: 13px; }
.form-message { color: var(--warning); font-size: 13px; }
.form-message:empty, #import-result:empty { display: none; }
.setup-shell { max-width: 860px; margin-inline: auto; }
.setup-header, .section-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.setup-links { display: grid; margin-top: 8px; }
.setup-links button { min-height: 51px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 650; }
.setup-links button:hover { color: var(--blue); }
.setup-links button:last-child { border: 0; }
.setup-links button span + span { color: var(--blue); white-space: nowrap; }
.setup-nav { display: flex; flex-wrap: wrap; gap: 4px 8px; border-bottom: 1px solid var(--line); padding-top: 8px; margin-bottom: 15px; }
.setup-nav button { min-height: 46px; padding: 5px 9px; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--slate); font-size: 14px; font-weight: 650; }
.setup-nav button[aria-pressed="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.setup-nav button span { color: inherit; background: var(--bg); padding: 2px 5px; border-radius: 5px; }
.section-header h3 { font-size: 19px; }
.setup-shell .alert { margin-top: 10px; }
.entry-list { margin: 12px 0 0; padding: 0; list-style: none; }
.entry-list li { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-top: 1px solid var(--line); }
.entry-list small { display: block; color: var(--slate); }
.empty-entry { margin-top: 14px; border: 1px dashed var(--line-strong); border-radius: 10px; padding: 16px; }
.import-links { margin-block: 10px 13px; }
.import-links a { color: var(--blue); padding: 7px 7px 7px 0; font-size: 14px; font-weight: 650; }
#import-result ul { margin: 6px 0 0; padding-left: 20px; overflow-wrap: anywhere; }
.import-actions .button { white-space: nowrap; }
.footer { min-height: 65px; margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--slate); font-size: 12px; }
dialog {
  --inset: clamp(16px, 4vw, 24px);
  position: fixed; inset: 0; margin: auto; width: min(28rem, calc(100% - 32px));
  max-height: calc(100dvh - max(32px, env(safe-area-inset-top) * 2, env(safe-area-inset-bottom) * 2));
  padding: 0; border: 0; border-radius: var(--radius); overflow: hidden;
  color: var(--ink); background: var(--paper); box-shadow: 1px 3px 20px -2px rgb(0 0 0 / 15%);
}
dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
dialog:has([data-form="import"]) { width: min(36rem, calc(100% - 32px)); }
dialog::backdrop { background: rgb(11 27 61 / 60%); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--inset) 8px; }
.dialog-head h2 { min-width: 0; overflow-wrap: anywhere; font-size: 20px; line-height: 1.35; }
.dialog-head h2:focus { outline: none; }
.dialog-close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--slate); background: transparent; }
.dialog-close .icon { width: 24px; height: 24px; }
.dialog-close:hover { color: var(--ink); background: var(--bg); }
.dialog-body { min-height: 0; overflow: auto; overflow-wrap: anywhere; overscroll-behavior: contain; padding: 0 var(--inset) var(--inset); }
.dialog-body > p { color: var(--slate); }
.dialog-body p + p, .dialog-body p + .editor { margin-top: 8px; }
.dialog-body .actions:not(.import-links) { justify-content: flex-end; gap: 8px; margin-top: 20px; }
.dialog-body .editor { gap: 16px; }
.dialog-body .editor input { max-width: 100%; }
.dialog-body .editor .actions { margin-top: 0; }
.dialog-body .note-list { margin-top: 16px; }
.dialog-body .note-list li { align-items: baseline; padding-block: 12px; }
.dialog-body .note-list .num { flex: none; }
@media (max-width: 420px) {
  .dialog-body .actions:not(.import-links) { display: grid; grid-template-columns: 1fr; }
}
[hidden] { display: none !important; }
.desktop-only { display: none; }
.wrap { width: min(1140px, calc(100% - 24px)); }
.topbar-inner { min-height: 56px; gap: 5px; }
.brand { gap: 6px; font-size: 15px; }
.brand img { width: 29px; }

.account-bar { gap: 8px; }
.account { padding: 0; }
.avatar { width: 30px; height: 30px; }
#account-label { display: none; }
.access-layout { grid-template-columns: minmax(0, 1fr); margin: 20px auto; gap: 12px; }
.access-card .demo-access .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.access-card .demo-access .button { min-height: 48px; }
.intro { align-items: start; padding: 14px 0 10px; gap: 8px; }
.intro h1 { font-size: clamp(23px, 6.3vw, 33px); overflow-wrap: anywhere; }
.intro p { margin-top: 2px; font-size: 13px; }
.admin-intro { display: grid; }
.admin-intro .event-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card-pad { padding: 16px; }
.grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.jury-tools { display: contents; }
.jury-grid .side { display: none; }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; background: var(--blue-soft); }
.hero h2 { font-size: clamp(28px, 7vw, 36px); line-height: 1.04; margin: 5px 0; }
.hero p { font-size: 13px; line-height: 1.45; }
.evaluate { gap: 16px; }
.score-heading h2 { font-size: 18px; }
.dimension { padding: 16px 12px 12px; }
.rating { gap: 6px; }
.rating label span { min-height: 60px; }
.feedback-field textarea { font-size: 16px; }
body:has(.submit-bar) { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
.submit-bar { position: fixed; inset: auto 0 0; gap: 9px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); border-radius: 0; border-width: 1px 0 0; }
.submit-context { min-width: 0; }
.submit-context span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.submit-bar strong { font-size: 13px; }
.submit-bar .button { font-size: 14px; }
.admin-grid { display: grid; grid-template-areas: "state" "order" "config" "ranking"; gap: 16px; }
.admin-grid.is-draft { grid-template-areas: "state" "config" "order"; }
.admin-state { grid-area: state; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 12px; }
.admin-state > .row { grid-column: 1 / -1; }
.admin-state .progress-line { grid-area: 2 / 1; margin-top: 3px; }
.admin-state progress { grid-area: 3 / 1; margin-top: 3px; }
.admin-state .event-action { grid-area: 2 / 2 / span 2; }
.admin-state .small, .missing-votes { grid-column: 1 / -1; }
.admin-config { grid-area: config; }
.admin-order { grid-area: order; }
.admin-ranking { grid-area: ranking; min-width: 0; }
.admin-rows > div { display: grid; grid-template-columns: 44px 28px minmax(0, 1fr) auto; gap: 8px; }
.admin-rows .drag-handle, .admin-rows .handle-space { grid-area: 1 / 1 / span 2 / 2; }
.admin-rows .order { grid-area: 1 / 2; }
.admin-rows .grow { grid-area: 1 / 3 / 2 / -1; }
.admin-rows .actions, .admin-rows .text-button { grid-area: 2 / 2 / 3 / 4; }
.admin-rows > div > .button, .admin-rows > div > .tag { grid-area: 2 / 4; justify-self: end; }
.setup-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.setup-nav button { min-height: 49px; padding-inline: 2px; font-size: 12px; }
.setup-links button { min-height: 54px; }
dialog .editor input, dialog .editor textarea { font-size: 16px; }
dialog .actions > .button { min-height: 48px; }

@media (min-width: 721px) {
  .mobile-only { display: none; }
  .desktop-only { display: inline; }
  .button.desktop-only { display: inline-flex; }
  .wrap { width: min(1140px, calc(100% - 56px)); }
  .topbar-inner { min-height: 70px; gap: 20px; }
  .brand { gap: 14px; font-size: 18px; }
  .brand img { width: 48px; }

  .account-bar { gap: 15px; }
  .avatar { width: 36px; height: 36px; }
  #account-label { display: inline; }
  .access-layout { grid-template-columns: .84fr 1fr; margin: clamp(32px, 8vh, 82px) auto; gap: 24px; }
  .access-context.desktop-only { display: grid; }
  .access-card .demo-access .actions { display: flex; }
  .intro { display: flex; justify-content: space-between; align-items: end; padding: 34px 0 24px; gap: 14px; }
  .intro h1 { font-size: clamp(33px, 4vw, 42px); }
  .intro p { margin-top: 5px; font-size: 16px; }
  .admin-intro .event-tools { display: flex; }
  .card-pad { padding: 20px; }
  .grid { grid-template-columns: minmax(190px, .8fr) minmax(0, 1.75fr); gap: 20px; }
  .jury-tools { display: grid; gap: 12px; position: sticky; top: 16px; min-width: 0; }
  .jury-grid .side { display: grid; }
  .jury-tools .jury-agenda { position: static; }
  .hero { padding: 18px 21px; }
  .hero h2 { font-size: 40px; }
  .hero p { font-size: 15px; }
  .evaluate { gap: 16px; }
  .score-heading h2 { font-size: 22px; }
  .dimension { padding: 16px 20px; }
  .rating { gap: 8px; }
  body:has(.submit-bar) { padding-bottom: 0; }
  .submit-bar { position: sticky; display: flex; justify-content: space-between; padding: 10px 13px; border-radius: var(--radius); border-width: 1px; }
  .submit-context { display: block; }
  .admin-grid { grid-template-columns: minmax(200px, .8fr) minmax(0, 1.75fr); grid-template-areas: "state order" "config order" "config ranking"; align-items: start; gap: 14px 20px; }
  .admin-grid.is-draft { grid-template-areas: "state order" "config order"; }
  .setup-nav { display: flex; }
  .setup-nav button { padding-inline: 9px; font-size: 14px; }
}

@media (min-width: 1000px) {
  .admin-rows > div { display: flex; gap: 10px; }
}

/* Identidad y navegación del evento */
.brand { gap: 7px; }
.brand strong { color: white; font-size: 26px; line-height: 1; letter-spacing: -.045em; }
.brand img { box-sizing: content-box; width: 36px; border-left: 1px solid #566075; padding-left: 9px; filter: brightness(0) invert(1); }
.pulse-mark { display: flex; align-items: center; gap: 2px; height: 27px; }
.pulse-mark i { display: block; width: 4px; height: 10px; border-radius: 4px; background: #8fe781; transform: skew(-9deg); }
.pulse-mark i:nth-child(2) { height: 23px; }
.pulse-mark i:nth-child(3) { height: 16px; }
.pulse-mark i:last-child { height: 8px; }
.topbar .account, .topbar .text-button { color: white; }
.topbar .tag { background: #273045; color: #eceef4; }
.topbar :focus-visible { outline-color: white; }
.event-heading { min-width: 0; }
.event-meta { font-size: 12px; font-weight: 600; color: var(--slate); }
.event-title { display: inline-flex; align-items: center; gap: 8px; position: relative; max-width: 100%; }
.event-title:has(select) { min-height: 44px; }
.event-title select { position: absolute; inset: 0; cursor: pointer; width: 100%; height: 100%; opacity: 0; font-size: 16px; }
.event-title:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.event-caret { color: var(--blue); }
.jury-intro .event-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 0 9px; }
.jury-intro .event-title h1 { font-size: clamp(17px, 3vw, 25px); line-height: 1.22; letter-spacing: -.02em; }
.stage-copy { min-width: 0; }
.stage-state { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 650; font-size: 13px; }
.turn-display { flex: none; text-align: center; padding-inline: 12px 0; border-left: 1px solid var(--line-strong); color: var(--ink); }
.turn-display span { color: var(--slate); display: block; font-size: 12px; font-weight: 600; }
.turn-display strong { font-size: clamp(34px, 6vw, 52px); line-height: 1; letter-spacing: -.055em; }
.score-heading { margin: 4px 0 0; }
.turn.sent { position: relative; }
.turn.sent::after { content: '✓'; position: absolute; top: 0; right: 3px; font-size: 10px; }
.ballot-progress { position: absolute; inset: -1px 0 auto; width: 100%; margin: 0; height: 3px; }
.missing-list li { display: grid; gap: 2px; }
.missing-list li span { color: var(--slate); }
.admin-rows .active-row .order { background: var(--fill); color: var(--on-fill); }
@media (max-width: 720px) {
  .admin-rows > div:not([data-movable="true"]) { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .admin-rows > div:not([data-movable="true"]) .handle-space { display: none; }
  .admin-rows > div:not([data-movable="true"]) .order { grid-area: 1 / 1; }
  .admin-rows > div:not([data-movable="true"]) .grow { grid-area: 1 / 2 / 2 / -1; }
  .admin-rows > div:not([data-movable="true"]) .text-button { grid-area: 2 / 2; }
  .admin-rows > div:not([data-movable="true"]) > :is(.button,.tag) { grid-area: 2 / 3; }
  .admin-intro .event-tools { grid-template-columns: auto auto; }
}
@media (max-width: 370px) {
  .account-bar .avatar { display: none; }
}


.theme-toggle { margin-left: auto; display: grid; place-items: center; flex: none; min-width: 44px; min-height: 44px; border: 0; border-radius: 50%; background: transparent; color: #eceef4; }
.theme-toggle:is(:hover, [aria-pressed="true"]) { color: #a9d4ff; background: #273045; }
.dark .button:disabled { color: var(--line-strong); background: var(--control); }
.dark dialog, .dark .submit-bar { background: var(--bg); border: 1px solid var(--line); }
.dark dialog::backdrop { background: rgb(0 0 0 / 65%); }
.dark .card .tag.neutral, .dark .dialog-close:hover { background: var(--control); }
.dark .turn.current { border-color: var(--blue); }
.turn-caption { font-size: 12px; font-weight: 600; white-space: nowrap; }
.turn-signal { height: 22px; display: inline-flex; align-items: center; gap: 2px; }
.turn-signal i { width: 3px; height: 16px; border-radius: 3px; background: currentColor; }
.turn-signal i:nth-child(2) { height: 22px; }
.turn-signal i:last-child { height: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .turn-signal i { animation: turn-pulse 1.2s ease-in-out infinite alternate; }
  .turn-signal i:nth-child(2) { animation-delay: -.8s; }
  .turn-signal i:last-child { animation-delay: -1.4s; }
  @keyframes turn-pulse { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
}
@media (max-width: 440px) {
  .account-bar .account { display: none; }
  .topbar-inner { column-gap: 4px; }
  .theme-toggle { border-radius: var(--radius); }
}
@media (max-width: 355px) {
  .account-bar .tag { padding-inline: 5px; }
  .brand strong { font-size: 22px; }
  .brand img { width: 28px; padding-left: 4px; }
  .brand { gap: 3px; }
  .account-bar { gap: 3px; }
}
