:root {
    --green: #123e2b;
    --green-dark: #123e2b;
    --green-deep: #092819;
    --cream: #f7f2e8;
    --paper: #fffdf7;
    --yellow: #f3c64e;
    --red: #a92e38;
    --blue: #245bb4;
    --ink: #18241e;
    --muted: #526157;
    --line: #d9ddd4;
    --shadow: 0 8px 28px rgba(18,62,43,.04);
    --radius: 14px;
    --display: "Nimbus Sans Narrow", "Arial Narrow", Impact, Haettenschweiler, sans-serif;
    --body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
    min-width: 320px;
    margin: 0;
    color: var(--ink);
    background-color: var(--cream);
    background-image: radial-gradient(rgba(7, 59, 36, .06) .7px, transparent .7px), linear-gradient(90deg, transparent 49.8%, rgba(14, 122, 61, .035) 50%, transparent 50.2%);
    background-size: 6px 6px, 100% 100%;
    font-family: var(--body);
    line-height: 1.5;
}
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--display); font-stretch: condensed; text-transform: uppercase; letter-spacing: -.025em; }
h1 { margin-bottom: .35rem; font-size: clamp(2.7rem, 8vw, 5.5rem); line-height: .88; }
h2 { margin-bottom: .65rem; font-size: clamp(1.45rem, 3vw, 2.1rem); line-height: 1; }
.muted, .fine-print { color: var(--muted); }
.eyebrow { margin-bottom: .55rem; color: var(--green); font-size: .76rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }

.site-header { position: sticky; z-index: 50; top: 0; color: white; background: var(--green-dark); border-bottom: 4px solid var(--yellow); }
.site-header::after { position: absolute; right: 0; bottom: -4px; left: 0; height: 4px; content: ""; background: repeating-linear-gradient(90deg, var(--yellow) 0 28px, transparent 28px 36px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; width: min(1180px, 100%); min-height: 68px; margin: auto; padding: .65rem clamp(1rem, 4vw, 2rem); }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: white; text-decoration: none; }
.brand-ball { display: grid; width: 42px; height: 42px; place-items: center; color: var(--ink); background: var(--yellow); border: 2px solid white; border-radius: 50%; }
.brand span:last-child { display: grid; font-family: var(--display); font-size: 1.2rem; line-height: .85; text-transform: uppercase; }
.brand em { color: var(--yellow); font-style: normal; letter-spacing: .07em; }
.main-nav { display: flex; align-items: center; gap: .25rem; }
.main-nav a, .nav-logout { padding: .7rem .82rem; color: white; background: transparent; border: 0; border-radius: 8px; font-size: .9rem; font-weight: 800; text-decoration: none; cursor: pointer; }
.main-nav a:hover, .nav-logout:hover { color: var(--yellow); background: rgba(255,255,255,.08); }
.main-nav form { margin: 0; }
.nav-toggle { display: none; min-height: 44px; padding: .5rem .8rem; color: white; background: transparent; border: 2px solid rgba(255,255,255,.5); border-radius: 8px; font-weight: 800; }

.shell { width: min(1040px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(2rem, 5vw, 4.5rem) 0 8rem; }
.shell-auth { display: grid; min-height: 100svh; padding: 2rem 0; place-items: center; }
.notice { margin-bottom: 1.2rem; padding: 1rem 1.2rem; background: var(--paper); border: 2px solid var(--ink); border-left: 8px solid var(--blue); border-radius: 10px; }
.notice ul { margin-bottom: 0; padding-left: 1.2rem; }
.notice-success { border-left-color: var(--green); }
.notice-error { border-left-color: var(--red); }
.notice-warning { border-left-color: var(--yellow); }

.login-card { position: relative; width: min(460px, 100%); padding: clamp(1.6rem, 5vw, 2.5rem); overflow: hidden; background: var(--paper); border: 4px solid var(--ink); border-radius: 28px 6px 28px 6px; box-shadow: 12px 12px 0 var(--green-dark); }
.login-card::before { position: absolute; top: -55px; right: -55px; width: 170px; height: 170px; content: ""; border: 20px solid rgba(14, 122, 61, .1); border-radius: 50%; }
.login-mark { display: grid; width: 54px; height: 54px; margin-bottom: .85rem; place-items: center; background: var(--yellow); border: 3px solid var(--ink); border-radius: 50%; font-size: 1.65rem; transform: rotate(-7deg); }
.login-card h1 { max-width: 100%; font-size: clamp(3rem, 11vw, 4.25rem); overflow-wrap: normal; }
.lede { max-width: 28ch; color: var(--muted); font-size: 1.05rem; }
.fine-print { margin: 1.2rem 0 0; text-align: center; font-size: .78rem; }

.stack { display: grid; gap: .8rem; }
label { display: grid; gap: .4rem; color: var(--green-dark); font-size: .8rem; font-weight: 900; letter-spacing: .025em; }
label small { color: var(--muted); font-weight: 500; }
input, select { width: 100%; min-height: 48px; padding: .72rem .85rem; color: var(--ink); background: white; border: 2px solid var(--ink); border-radius: 9px; }
input[readonly] { color: var(--muted); background: #eee8dc; }
.check-label { display: flex; align-items: center; min-height: 48px; gap: .65rem; }
.check-label input { width: 22px; min-height: 22px; accent-color: var(--green); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1rem; border: 2px solid var(--ink); border-radius: 10px; box-shadow: 0 4px 0 var(--ink); font-weight: 900; text-align: center; text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s; }
.button:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.button:disabled { color: #716d63; background: #d9d2c4; cursor: not-allowed; transform: none; box-shadow: 0 2px 0 #716d63; }
.button-primary { color: var(--ink); background: var(--yellow); }
.button-secondary { color: white; background: var(--green); }
.button-ghost { background: transparent; }
.button-danger { color: white; background: var(--red); }
.button-wide { width: 100%; }
.text-link { color: var(--green-dark); font-weight: 900; }
.text-danger { padding: .5rem; color: #a5191f; background: none; border: 0; font-weight: 800; text-decoration: underline; cursor: pointer; }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2rem; gap: 1.5rem; }
.page-heading > p { max-width: 36ch; margin-bottom: .3rem; color: var(--muted); }
.page-heading h1 { margin-bottom: 0; }
.jornada-hero { display: flex; align-items: start; justify-content: space-between; margin-bottom: 1.5rem; gap: 1rem; }
.deadline { margin: .7rem 0 0; color: var(--green-dark); font-weight: 800; }
.status-badge { display: inline-flex; align-items: center; width: max-content; padding: .35rem .65rem; color: white; background: var(--muted); border: 2px solid var(--ink); border-radius: 999px; font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.status-open, .status-committed, .status-scored { background: var(--green); }
.status-draft, .status-preview, .status-validated { color: var(--ink); background: var(--yellow); }
.status-locked { background: var(--red); }
.status-archived { background: #555; }

.progress-card { margin-bottom: 1.5rem; padding: 1rem 1.2rem; color: white; background: var(--green-dark); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 6px 6px 0 var(--yellow); }
.progress-copy, .progress-copy div { display: flex; justify-content: space-between; gap: 1rem; }
.progress-copy { align-items: center; font-size: .8rem; }
.progress-copy div { flex: 1; align-items: baseline; font-size: .92rem; }
.progress-copy strong { color: var(--yellow); font-size: 1.2rem; }
.progress-track { display: block; width: 100%; height: 10px; margin-top: .65rem; overflow: hidden; appearance: none; background: rgba(255,255,255,.16); border: 0; border-radius: 99px; }
.progress-track::-webkit-progress-bar { background: rgba(255,255,255,.16); border-radius: 99px; }
.progress-track::-webkit-progress-value { background: var(--yellow); border-radius: 99px; transition: width .2s; }
.progress-track::-moz-progress-bar { background: var(--yellow); border-radius: 99px; transition: width .2s; }
.match-list { display: grid; gap: 1.15rem; }
.match-card { position: relative; padding: clamp(1rem, 3vw, 1.5rem); background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.match-card.has-pick { border-color: var(--green-dark); }
.match-meta { display: flex; flex-wrap: wrap; gap: .4rem .8rem; justify-content: space-between; margin-bottom: .8rem; color: var(--muted); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.match-stadium { flex-basis: 100%; order: 1; }
.match-number { color: var(--green); }
.fixture { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-bottom: 1rem; gap: .8rem; text-align: center; }
.fixture strong { font-family: var(--display); font-size: clamp(1.3rem, 4vw, 2rem); line-height: 1; text-transform: uppercase; }
.fixture span, .versus { color: var(--red); font-size: .72rem; font-weight: 1000; }
.pick-form { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .6rem; }
.pick-button { position: relative; display: grid; min-width: 0; min-height: 68px; padding: .55rem; place-content: center; color: var(--green-dark); background: white; border: 2px solid var(--green-dark); border-radius: 10px; cursor: pointer; transition: .14s; }
.pick-button:hover { background: #eef8f1; transform: translateY(-2px); }
.pick-button:active { transform: translateY(1px) scale(.99); }
.pick-button small { color: var(--muted); font-size: .63rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.pick-button span { overflow: hidden; font-weight: 900; text-overflow: ellipsis; }
.pick-button.is-selected { color: white; background: var(--green); box-shadow: inset 0 0 0 2px white; }
.pick-button.is-selected small { color: var(--yellow); }
.pick-button:disabled { cursor: default; opacity: .72; transform: none; }
.save-state { grid-column: 1 / -1; min-height: 1.2em; color: var(--muted); font-size: .72rem; font-weight: 800; text-align: right; }
.save-state.is-saving { color: var(--blue); }
.save-state.is-saved { color: var(--green); }
.save-state.is-error { color: var(--red); }
.result-line { padding: .55rem; color: white; background: var(--green-dark); border-radius: 7px; text-align: center; }
.barrio-picks { margin-top: .7rem; padding-top: .7rem; border-top: 1px dashed var(--line); }
.barrio-picks summary { color: var(--green-dark); font-size: .82rem; font-weight: 900; cursor: pointer; }
.barrio-picks ul { display: grid; margin: .6rem 0 0; padding: 0; list-style: none; gap: .3rem; }
.barrio-picks li { display: flex; justify-content: space-between; font-size: .82rem; }
.sticky-action { position: fixed; z-index: 40; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: space-between; padding: .85rem max(1rem, calc((100% - 1040px) / 2)); color: white; background: rgba(7,59,36,.97); border-top: 4px solid var(--yellow); gap: 1rem; backdrop-filter: blur(10px); }
.sticky-action > div { display: grid; }
.sticky-action span { color: #cce1d4; font-size: .75rem; }

.scoreboard-heading { padding-bottom: 1.3rem; border-bottom: 6px double var(--green-dark); }
.scoreboard-label { display: grid; padding: .7rem 1rem; color: var(--yellow); background: var(--green-dark); border: 3px solid var(--ink); text-align: right; }
.scoreboard-label span { color: white; font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.leaderboard { overflow: hidden; background: var(--green-dark); border: 4px solid var(--ink); border-radius: 14px; box-shadow: 10px 10px 0 var(--yellow); }
.leaderboard-head, .leader-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 90px 90px; align-items: center; }
.leaderboard-head { padding: .75rem 1rem; color: #b9d6c6; font-size: .66rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.leaderboard-head span:nth-last-child(-n+2) { text-align: right; }
.leader-row { position: relative; min-height: 88px; padding: .8rem 1rem; color: white; border-top: 1px solid rgba(255,255,255,.14); }
.leader-row.rank-1 { color: var(--ink); background: var(--yellow); }
.rank { display: flex; align-items: center; gap: .3rem; font-size: 1.1rem; }
.rank b { font-family: var(--display); font-size: 2rem; }
.player-name { display: grid; min-width: 0; }
.player-name strong { overflow: hidden; font-size: 1.03rem; text-overflow: ellipsis; white-space: nowrap; }
.player-name span, .row-details { font-size: .7rem; opacity: .72; }
.mini-stat, .points { text-align: right; }
.mini-stat small, .points small { margin-left: .15rem; font-size: .65rem; opacity: .7; }
.points { color: var(--yellow); font-family: var(--display); font-size: 1.8rem; }
.rank-1 .points { color: var(--green-dark); }
.row-details { display: none; grid-column: 2 / -1; gap: 1rem; }
.page-actions { display: flex; flex-wrap: wrap; margin-top: 1.5rem; gap: .75rem; }

.history-list, .admin-list, .fixture-admin-list { display: grid; gap: 1rem; }
.history-card { display: grid; grid-template-columns: 70px 1fr 48px; align-items: center; padding: 1rem; background: var(--paper); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 5px 5px 0 rgba(14,122,61,.22); gap: 1rem; }
.history-card h2, .history-card p { margin-bottom: .2rem; }
.history-number { display: grid; width: 58px; height: 58px; place-items: center; color: var(--yellow); background: var(--green-dark); border-radius: 50%; font-family: var(--display); font-size: 1.4rem; }
.circle-link { display: grid; width: 44px; height: 44px; place-items: center; color: white; background: var(--green); border: 2px solid var(--ink); border-radius: 50%; font-size: 1.3rem; text-decoration: none; }
.empty-state { max-width: 640px; margin: 3rem auto; padding: 3rem 1.5rem; text-align: center; }
.empty-state.compact { margin: 1rem auto; padding: 2rem 1rem; background: rgba(255,250,240,.55); border: 2px dashed var(--green); border-radius: var(--radius); }
.empty-icon { display: block; margin-bottom: 1rem; font-size: 3rem; }
.error-state { background: var(--paper); border: 4px solid var(--red); border-radius: var(--radius); }

.panel { margin-bottom: 1.5rem; padding: clamp(1.2rem, 4vw, 2rem); background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.narrow-panel { max-width: 620px; }
.section-block { margin-top: 2.5rem; }
.section-title, .admin-row-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 1rem; gap: 1rem; }
.section-title h2 { margin-bottom: 0; }
.section-title > span { color: var(--muted); font-size: .78rem; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 1rem; }
.form-grid .button { align-self: end; }
.compact-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-row { padding: 1.2rem; background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; }
.admin-row-head h2 { margin: .45rem 0 0; }
.admin-row-head a { color: var(--green); font-weight: 900; }
.row-actions { display: flex; justify-content: flex-end; margin-top: 1rem; gap: .6rem; }
.inline-reset { display: flex; align-items: end; justify-content: flex-end; margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line); gap: .7rem; }
.admin-overview { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; }
.panel.featured-panel, .featured-panel { margin: 0; color: white; background: var(--green-dark); }
.panel.featured-panel .eyebrow, .featured-panel .eyebrow { color: var(--yellow); }
.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 1.5rem 0; gap: .6rem; }
.kpi-grid div { display: grid; padding: .8rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 8px; }
.kpi-grid strong { overflow: hidden; color: var(--yellow); font-family: var(--display); font-size: 1.5rem; text-overflow: ellipsis; text-transform: uppercase; }
.kpi-grid span { color: #cce1d4; font-size: .68rem; text-transform: uppercase; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.admin-grid a { display: grid; min-height: 130px; padding: 1rem; align-content: end; background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 rgba(14,122,61,.2); text-decoration: none; transition: .14s; }
.admin-grid a:hover { color: var(--green); transform: translateY(-2px); box-shadow: 6px 6px 0 var(--yellow); }
.admin-grid a span { margin-bottom: auto; font-size: 1.5rem; }
.admin-grid a small { color: var(--muted); }

.match-edit { display: grid; grid-template-columns: 75px 1fr auto 1fr minmax(170px,.8fr) auto; align-items: end; gap: .7rem; }
.delete-form { margin-top: .4rem; text-align: right; }
.upload-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1rem; }
.file-drop { position: relative; display: grid; min-height: 130px; padding: 1rem; place-content: center; color: var(--green-dark); background: #edf7ef; border: 3px dashed var(--green); border-radius: 12px; text-align: center; cursor: pointer; }
.file-drop span { font-size: 2rem; }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.table-scroll { overflow-x: auto; border: 2px solid var(--ink); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; background: var(--paper); }
th, td { padding: .8rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: white; background: var(--green-dark); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }
.score-cell { font-family: var(--display); font-size: 1.25rem; text-align: center; }
.confirm-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; padding: 1rem; color: white; background: var(--green-dark); border-radius: 10px; gap: 1rem; }
.confirm-bar p { display: grid; margin: 0; }
.confirm-bar span { color: #cce1d4; font-size: .76rem; }
.simple-list > div { display: flex; align-items: center; justify-content: space-between; padding: .85rem 0; border-bottom: 1px solid var(--line); gap: 1rem; }
.simple-list span:first-child { display: grid; min-width: 0; }
.simple-list b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.simple-list small { color: var(--muted); }
.audit-list { position: relative; margin: 0; padding: 0; list-style: none; }
.audit-list::before { position: absolute; top: 12px; bottom: 12px; left: 8px; width: 3px; content: ""; background: var(--green); }
.audit-list li { position: relative; display: grid; grid-template-columns: 20px 1fr; margin-bottom: 1rem; gap: 1rem; }
.audit-dot { z-index: 1; width: 19px; height: 19px; margin-top: 1rem; background: var(--yellow); border: 3px solid var(--green-dark); border-radius: 50%; }
.audit-list li > div { padding: 1rem; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; }
.audit-list header { display: flex; justify-content: space-between; gap: 1rem; }
.audit-list time, .audit-list small { color: var(--muted); font-size: .72rem; }
.audit-list p { margin: .35rem 0; font-weight: 800; }
.toast { position: fixed; z-index: 100; right: 1rem; bottom: 6.5rem; max-width: min(380px, calc(100% - 2rem)); padding: .85rem 1rem; color: white; background: var(--green-dark); border: 3px solid var(--yellow); border-radius: 10px; box-shadow: 5px 5px 0 var(--ink); font-weight: 800; }
.toast.is-error { border-color: var(--red); }

@media (max-width: 800px) {
    .nav-toggle { display: block; }
    .main-nav { position: absolute; top: calc(100% + 4px); right: 1rem; display: none; width: min(280px, calc(100% - 2rem)); padding: .6rem; align-items: stretch; flex-direction: column; background: var(--green-dark); border: 2px solid var(--yellow); border-radius: 0 0 10px 10px; box-shadow: 8px 8px 0 rgba(0,0,0,.18); }
    .main-nav.is-open { display: flex; }
    .main-nav a, .nav-logout { display: block; width: 100%; min-height: 44px; text-align: left; }
    .admin-overview { grid-template-columns: 1fr; }
    .match-edit { grid-template-columns: 70px 1fr 1fr; }
    .match-edit .versus { display: none; }
    .match-edit label:nth-of-type(4) { grid-column: 1 / 3; }
    .compact-form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .shell { width: min(100% - 1.1rem, 1040px); padding-top: 2rem; }
    .page-heading, .jornada-hero { align-items: start; flex-direction: column; }
    .page-heading > p { max-width: none; }
    .progress-copy > span { display: none; }
    .fixture { gap: .4rem; }
    .fixture strong { font-size: 1.32rem; overflow-wrap: anywhere; }
    .pick-form { grid-template-columns: 1fr; }
    .pick-button { grid-template-columns: 72px 1fr; min-height: 58px; padding: .7rem .8rem; align-items: center; justify-content: initial; text-align: left; }
    .pick-button small { text-align: left; }
    .save-state { grid-column: 1; }
    .sticky-action { padding: .75rem .7rem calc(.75rem + env(safe-area-inset-bottom)); }
    .sticky-action > div span { display: none; }
    .sticky-action .button { min-height: 46px; }
    .leaderboard-head, .leader-row { grid-template-columns: 48px minmax(0,1fr) 60px; }
    .leaderboard-head span:nth-child(3), .leader-row .mini-stat { display: none; }
    .leaderboard-head span:nth-child(4) { grid-column: 3; }
    .points { grid-column: 3; }
    .row-details { display: flex; }
    .history-card { grid-template-columns: 55px 1fr 44px; gap: .65rem; }
    .history-number { width: 48px; height: 48px; font-size: 1.1rem; }
    .form-grid, .compact-form, .upload-form { grid-template-columns: 1fr; }
    .inline-reset, .confirm-bar { align-items: stretch; flex-direction: column; }
    .admin-grid { grid-template-columns: 1fr 1fr; }
    .admin-grid a { min-height: 115px; }
    .match-edit { grid-template-columns: 62px 1fr; }
    .match-edit label:nth-of-type(4) { grid-column: 1 / -1; }
    .match-edit .button { grid-column: 1 / -1; }
    .kpi-grid { grid-template-columns: 1fr; }
    .section-title { align-items: start; flex-direction: column; }
    .table-scroll { margin-right: -.5rem; margin-left: -.5rem; border-right: 0; border-left: 0; border-radius: 0; }
    .login-card h1 { font-size: clamp(2.8rem, 18vw, 4rem); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation: none !important; }
}

/* Shared editorial shell. Identity and the playing action stay visible at every width. */
body { background-image: none; }
h1,h2 { text-wrap: balance; }
button,a,input,select { touch-action: manipulation; }
.skip-link { position: absolute; top: .5rem; left: 1rem; z-index: 110; padding: .8rem 1rem; color: var(--ink); background: var(--yellow); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.site-header { position: relative; border-bottom: 0; }
.site-header::after { display: none; }
.header-inner { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem 2rem; max-width: 1184px; padding-block: 1.2rem 0; }
.brand-ball { border: 1px solid rgba(255,255,255,.25); background: transparent; color: var(--yellow); font-family: Georgia,serif; font-size: 1.8rem; width: 48px; height: 48px; }
.brand span:last-child { font-size: 1.4rem; line-height: .92; }
.brand em { letter-spacing: .025em; }
.header-person { display:flex; align-items:center; justify-content:flex-end; gap:1.5rem; min-width:0; }
.identity { display:grid; color:white; text-decoration:none; min-width:0; }
.identity span { color:#c7d9ce; font-size:.7rem; letter-spacing:.08em; text-transform:uppercase; }
.identity strong { font-size:1rem; font-weight:600; overflow-wrap:anywhere; }
.main-nav { grid-column:1/-1; justify-content:flex-start; border-top:1px solid rgba(255,255,255,.18); padding-block:.2rem; gap:.4rem; }
.main-nav a,.nav-logout { min-height:48px; display:flex; align-items:center; font-weight:500; border-radius:0; }
.main-nav [aria-current=page] { color:var(--yellow); box-shadow:inset 0 -2px var(--yellow); }
.main-nav form { margin-left:auto; }
.shell { width:min(1120px,calc(100% - 3rem)); padding-top:2.5rem; }
.button { border:1px solid transparent; box-shadow:none; font-weight:650; transition:transform 150ms cubic-bezier(.2,.8,.2,1),opacity 150ms; }
.button:hover { transform:translateY(-1px); box-shadow:none; opacity:.92; }
.button:active { transform:translateY(1px); box-shadow:none; }
.button-ghost { border-color:var(--line); }
.button:disabled { box-shadow:none; }
.panel,.match-card,.admin-row,.history-card,.admin-grid a { border:1px solid var(--line); box-shadow:none; }
.progress-card { border:0; box-shadow:none; }
input,select { border:1px solid #84938a; }
.notice { border-width:1px; border-left-width:4px; }
.site-footer { width:min(1120px,calc(100% - 3rem)); margin:0 auto; padding:1.5rem 0 6rem; border-top:1px solid var(--line); color:var(--muted); display:flex; justify-content:space-between; font-size:.8rem; gap:1rem; }
.site-footer p { margin:0; }
@media(max-width:800px) {
 .header-inner { grid-template-columns:1fr auto; gap:1rem; padding:1rem; }
 .nav-toggle { display:block; min-height:48px; border-width:1px; }
 .header-person { grid-column:1/-1; justify-content:space-between; align-items:center; gap:.8rem; }
 .identity { flex:1; }
 .entry-action { max-width:60%; font-size:.82rem; }
 .main-nav { position:static; width:100%; padding:.4rem 0 0; border:0; border-top:1px solid rgba(255,255,255,.18); box-shadow:none; border-radius:0; }
 .main-nav form { margin:0; }
 .shell { width:calc(100% - 2rem); padding-top:1.6rem; }
 .site-footer { width:calc(100% - 2rem); flex-direction:column; gap:.3rem; }
}

/* Personal entry: every visible state reflects a server-confirmed choice. */
.sharing-note { margin:.65rem 0 0; color:var(--muted); font-size:.9rem; }
.personal-result { display:flex; flex-wrap:wrap; gap:.35rem 1.25rem; margin:.9rem 0 .2rem; color:var(--muted); font-size:.82rem; }
.personal-result p { margin:0; }
.personal-result b { color:var(--ink); }
.pick-button.is-attempted { border-style:dashed; border-color:var(--red); background:#fff4f2; }
.save-feedback { grid-column:1 / -1; display:flex; align-items:center; flex-wrap:wrap; gap:.5rem .8rem; min-height:1.5rem; }
.save-state { grid-column:auto; }
.save-retry,.save-action { min-height:36px; padding:.35rem .65rem; border:1px solid currentColor; border-radius:8px; color:var(--green-dark); background:transparent; font:inherit; font-size:.8rem; font-weight:700; text-decoration:none; cursor:pointer; }
.save-state.is-error { color:var(--red); }
.sticky-action { pointer-events:none; }
.sticky-action > div { width:100%; }
@media(max-width:600px) {
 .match-list { padding-bottom:1rem; }
 .personal-result { display:grid; }
 .save-feedback { grid-column:1; }
 .sticky-action { left:.55rem; right:.55rem; bottom:.55rem; border-radius:12px; }
}
/* Group dashboard: editorial hierarchy, honest state summaries, and compact shared data. */
.dashboard-empty { max-width: 720px; margin: clamp(2rem,8vw,7rem) auto; padding: clamp(2rem,6vw,4rem); background:var(--paper); border:1px solid var(--line); text-align:center; }
.dashboard-empty h1 { max-width:11ch; margin-inline:auto; }
.dashboard-empty > p:not(.eyebrow) { max-width:52ch; margin:1rem auto 0; color:var(--muted); }
.dashboard-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:.7rem; margin-top:1.5rem; }

.dashboard-hero { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:2rem; padding:clamp(1rem,3vw,2rem) 0 1.75rem; border-bottom:1px solid var(--green-dark); }
.dashboard-hero h1 { max-width:9ch; margin:0; font-size:clamp(4.2rem,10vw,8rem); line-height:.78; }
.dashboard-jornada-name { max-width:30ch; margin:1.15rem 0 0; color:var(--green-dark); font-family:var(--display); font-size:clamp(1.35rem,3vw,2.1rem); line-height:1; text-transform:uppercase; overflow-wrap:anywhere; }
.dashboard-state { display:grid; justify-items:end; gap:.7rem; padding-bottom:.25rem; color:var(--muted); font-size:.85rem; font-weight:650; }
.dashboard-state .status-badge { border:0; }

.dashboard-personal { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:2rem; margin:1.25rem 0; padding:clamp(1.25rem,3vw,2rem); color:white; background:var(--green-dark); border-radius:var(--radius); }
.dashboard-personal .eyebrow { color:var(--yellow); }
.dashboard-personal h2 { max-width:28ch; margin-bottom:.45rem; font-size:clamp(1.65rem,3.2vw,2.5rem); overflow-wrap:anywhere; }
.dashboard-personal-count { margin:0 0 .3rem; color:white; font-size:.86rem; }
.dashboard-personal-count strong { color:var(--yellow); font-size:1rem; }
.dashboard-personal p:last-child { margin:0; color:#c7d9ce; }
.dashboard-primary-action { min-width:min(100%,240px); }

.dashboard-toolbar { display:flex; align-items:end; justify-content:space-between; gap:1rem; padding:1rem 0 1.35rem; }
.dashboard-selector { display:grid; grid-template-columns:minmax(180px,300px) auto; align-items:end; gap:.65rem; }
.dashboard-selector label { grid-column:1 / -1; }
.dashboard-selector select { min-height:44px; }
.dashboard-selector .button { min-height:44px; }
.dashboard-refresh { display:grid; justify-items:end; gap:.15rem; color:var(--muted); font-size:.76rem; }
.dashboard-refresh a { color:var(--green-dark); font-size:.85rem; font-weight:750; }

.dashboard-summary { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:1rem; margin-bottom:2rem; padding:1rem 1.15rem; background:#eee8d9; border-left:4px solid var(--yellow); }
.dashboard-summary strong { font-size:1rem; overflow-wrap:anywhere; }
.dashboard-summary span { color:var(--muted); font-size:.82rem; text-align:right; }

.dashboard-grid { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(300px,.85fr); align-items:start; gap:clamp(1.25rem,3vw,2.5rem); }
.dashboard-section-heading { display:flex; align-items:end; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
.dashboard-section-heading h2 { margin:0; }
.dashboard-section-heading > span { color:var(--muted); font-size:.76rem; }
.dashboard-section-heading .eyebrow { margin-bottom:.35rem; }
.dashboard-match-list { display:grid; gap:.8rem; }
.dashboard-match { padding:1rem 1.1rem; background:var(--paper); border:1px solid var(--line); border-radius:12px; }
.dashboard-match > header { display:flex; justify-content:space-between; gap:1rem; color:var(--muted); font-size:.68rem; font-weight:750; letter-spacing:.08em; text-transform:uppercase; }
.dashboard-fixture { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:.7rem; margin:.85rem 0 .55rem; }
.dashboard-fixture strong { font-family:var(--display); font-size:clamp(1.2rem,2.4vw,1.75rem); line-height:.95; text-transform:uppercase; overflow-wrap:anywhere; }
.dashboard-fixture strong:last-child { text-align:right; }
.dashboard-fixture > span { min-width:38px; color:var(--red); font-weight:850; text-align:center; }
.dashboard-stadium { margin:0 0 .75rem; color:var(--muted); font-size:.76rem; }
.dashboard-choice-counts { display:flex; flex-wrap:wrap; gap:.35rem; }
.dashboard-choice-counts span { padding:.28rem .5rem; color:var(--green-dark); background:#eef2eb; border-radius:999px; font-size:.7rem; font-weight:700; }
.dashboard-choice-counts .choice-missing { color:var(--muted); background:transparent; border:1px solid var(--line); }
.dashboard-inline-empty { padding:1.5rem; color:var(--muted); background:var(--paper); border:1px dashed var(--line); text-align:center; }
.dashboard-inline-empty p { margin:0; }

.dashboard-side { display:grid; gap:1rem; }
.dashboard-people,.dashboard-standings { padding:1.15rem; background:var(--paper); border:1px solid var(--line); border-radius:12px; }
.dashboard-people-list,.dashboard-standings-list { display:grid; margin:0; padding:0; list-style:none; }
.dashboard-people-list li { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:.75rem; padding:.7rem 0; border-top:1px solid var(--line); }
.dashboard-person-name { min-width:0; font-weight:700; overflow-wrap:anywhere; }
.dashboard-person-name b { display:inline-block; margin-left:.3rem; padding:.08rem .35rem; color:var(--green-dark); background:var(--yellow); border-radius:999px; font-size:.62rem; text-transform:uppercase; }
.dashboard-entry-state { color:var(--muted); font-size:.72rem; text-align:right; }
.dashboard-entry-state.state-complete { color:var(--green); font-weight:750; }
.dashboard-standings { color:white; background:var(--green-dark); border-color:var(--green-dark); }
.dashboard-standings .eyebrow,.dashboard-standings .text-link { color:var(--yellow); }
.dashboard-standings .dashboard-section-heading { color:white; }
.dashboard-standings > p:last-child { margin-bottom:0; color:#c7d9ce; }
.dashboard-standings-list { margin-bottom:1rem; }
.dashboard-standings-list li { display:grid; grid-template-columns:28px minmax(0,1fr) auto; align-items:center; gap:.65rem; padding:.62rem 0; border-top:1px solid rgba(255,255,255,.14); }
.dashboard-standings-list li > b { color:var(--yellow); font-family:var(--display); font-size:1.35rem; }
.dashboard-standings-list li span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-standings-list li strong { font-size:.78rem; }

@media(max-width:800px) {
 .dashboard-hero { grid-template-columns:1fr; gap:1rem; }
 .dashboard-hero h1 { font-size:clamp(4rem,16vw,6.5rem); }
 .dashboard-state { justify-items:start; }
 .dashboard-personal { grid-template-columns:1fr; gap:1rem; }
 .dashboard-primary-action { width:100%; }
 .dashboard-toolbar { align-items:stretch; flex-direction:column; }
 .dashboard-selector { grid-template-columns:minmax(0,1fr) auto; }
 .dashboard-refresh { justify-items:start; }
 .dashboard-summary { grid-template-columns:1fr; }
 .dashboard-summary span { text-align:left; }
 .dashboard-grid { display:flex; flex-direction:column; }
 .dashboard-side { order:1; width:100%; }
 .dashboard-matches { order:2; width:100%; }
}

@media(max-width:520px) {
 .dashboard-hero { padding-top:.5rem; }
 .dashboard-personal { margin-inline:-.35rem; border-radius:10px; }
 .dashboard-selector { grid-template-columns:1fr; }
 .dashboard-selector label { grid-column:auto; }
 .dashboard-selector .button { width:100%; }
 .dashboard-fixture { grid-template-columns:1fr; gap:.35rem; text-align:left; }
 .dashboard-fixture strong:last-child { text-align:left; }
 .dashboard-fixture > span { min-width:0; text-align:left; }
 .dashboard-people-list li { grid-template-columns:1fr; gap:.2rem; }
 .dashboard-entry-state { text-align:left; }
}

/* Read-only group comparisons. Wide data stays inside its own scroll region. */
.comparison-hero { margin-bottom:1.25rem; padding-bottom:1.5rem; border-bottom:1px solid var(--line); }
.comparison-hero h1 { margin-bottom:.35rem; }
.comparison-hero h1 small,.match-comparison-hero h1 small { color:var(--red); font-size:.35em; text-transform:uppercase; }
.comparison-title { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; }
.comparison-title p,.comparison-hero > p { color:var(--muted); }
.self-mark { display:inline-flex; width:max-content; padding:.18rem .45rem; vertical-align:middle; color:var(--green-dark); background:var(--yellow); border-radius:999px; font-family:var(--body); font-size:.65rem; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.comparison-summary { display:flex; flex-wrap:wrap; gap:.65rem; margin-top:1rem; }
.comparison-summary > span { padding:.7rem .85rem; background:var(--paper); border:1px solid var(--line); border-radius:10px; }
.comparison-summary b { font-size:1.2rem; }
.comparison-summary small { display:block; color:var(--muted); }
.comparison-nav,.comparison-switch { display:flex; align-items:center; flex-wrap:wrap; gap:.65rem; margin:0 0 1.5rem; }
.comparison-nav > a:not(.button),.comparison-switch a { min-height:44px; display:inline-flex; align-items:center; padding:.55rem .8rem; color:var(--green-dark); border:1px solid var(--line); border-radius:9px; font-weight:750; text-decoration:none; }
.comparison-card-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.comparison-card { padding:1rem; background:var(--paper); border:1px solid var(--line); border-left:5px solid var(--muted); border-radius:12px; }
.comparison-card.assessment-correct { border-left-color:var(--green); }
.comparison-card.assessment-incorrect { border-left-color:var(--red); }
.comparison-card.assessment-pending { border-left-color:var(--yellow); }
.comparison-card header,.choice-group header { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; }
.comparison-card header { color:var(--muted); font-size:.72rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.comparison-card h3 { margin:.85rem 0; font-size:1.15rem; }
.comparison-card h3 small { color:var(--red); font-size:.65rem; text-transform:uppercase; }
.assessment-label { color:var(--ink); letter-spacing:0; text-transform:none; }
.comparison-card dl { display:grid; gap:.55rem; margin:0 0 .8rem; }
.comparison-card dl div { display:grid; grid-template-columns:120px minmax(0,1fr); gap:.75rem; }
.comparison-card dt { color:var(--muted); font-size:.75rem; }
.comparison-card dd { margin:0; font-weight:750; }
.inline-link { color:var(--green-dark); font-size:.82rem; font-weight:800; }
.official-result { width:max-content; max-width:100%; margin-top:1rem; padding:.65rem .8rem; background:var(--paper); border:1px solid var(--line); border-radius:9px; }
.choice-groups { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.choice-group { min-width:0; padding:1rem; background:var(--paper); border:1px solid var(--line); border-top:5px solid var(--green); border-radius:12px; }
.choice-group.choice-empate { border-top-color:var(--yellow); }
.choice-group.choice-missing { grid-column:1/-1; border-top-color:var(--muted); }
.choice-group header span { color:var(--muted); font-size:.7rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }
.choice-group h3 { margin:.2rem 0 0; }
.choice-group header > strong { white-space:nowrap; color:var(--green-dark); }
.choice-group ul { display:grid; gap:.4rem; margin:.9rem 0 0; padding:0; list-style:none; }
.choice-group li a { display:flex; justify-content:space-between; gap:.5rem; padding:.6rem .7rem; color:var(--ink); background:#f7f5ed; border-radius:8px; font-weight:700; text-decoration:none; }
.empty-choice { margin:.9rem 0 0; color:var(--muted); font-size:.85rem; }
.comparison-section { scroll-margin-top:1rem; }
.comparison-matrix { margin-top:1.25rem; }
.comparison-matrix > summary { width:max-content; cursor:pointer; color:var(--green-dark); font-weight:800; }
.matrix-legend { display:flex; flex-wrap:wrap; gap:.75rem; margin:.75rem 0; color:var(--muted); font-size:.78rem; }
.comparison-scroll { max-width:100%; overflow:auto; overscroll-behavior-inline:contain; border:1px solid var(--line); border-radius:10px; }
.comparison-table { width:max-content; min-width:100%; border-collapse:separate; border-spacing:0; }
.comparison-table th,.comparison-table td { min-width:58px; padding:.6rem; border-right:1px solid rgba(255,255,255,.16); border-bottom:1px solid var(--line); text-align:center; }
.comparison-table thead th { position:sticky; top:0; z-index:2; max-width:120px; color:white; background:var(--green-dark); font-size:.7rem; }
.comparison-table tbody th { position:sticky; left:0; z-index:1; min-width:180px; color:var(--ink); background:var(--paper); text-align:left; }
.comparison-table tr.is-self th { box-shadow:inset 4px 0 var(--yellow); }
.comparison-cell { font-weight:850; }
.comparison-cell.is-correct { color:var(--green); }
.comparison-cell.is-incorrect { color:var(--red); }
.comparison-cell.is-pending { color:#7a5b00; }
@media(max-width:800px) {
 .comparison-title { display:grid; }
 .comparison-card-list,.choice-groups { grid-template-columns:1fr; }
 .choice-group.choice-missing { grid-column:auto; }
 .comparison-matrix { display:none; }
}
@media(max-width:480px) {
 .comparison-card dl div { grid-template-columns:1fr; gap:.1rem; }
 .comparison-nav > a,.comparison-switch a { flex:1 1 auto; justify-content:center; }
}
/* Competition: results carry authority, predictions remain personal. */
.competition-panel{padding:clamp(20px,4vw,40px)}
.competition-honors{border-block:1px solid var(--line);padding:20px 0;margin-block:16px}
.competition-honors.is-final{background:#f5e5b4;border:0;border-radius:12px;padding:24px;color:var(--ink)}
.competition-honors h2{font-size:clamp(1.5rem,3vw,2.25rem);margin-bottom:16px}
.competition-honors p{display:flex;gap:16px;justify-content:space-between;align-items:baseline;flex-wrap:wrap}
.competition-honors p strong{font-size:1.25rem;overflow-wrap:anywhere}
.standings-table{table-layout:fixed;width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.standings-table th,.standings-table td{text-align:left;padding:14px 8px;border-bottom:1px solid var(--line)}
.standings-table thead{font-size:.8rem;color:var(--muted)}
.standings-table thead th{white-space:normal;padding-left:6px;padding-right:6px}
.standings-table tbody th{font-weight:650;overflow-wrap:anywhere;white-space:normal;background:transparent;color:var(--ink);font-family:inherit;text-transform:none}
.standings-table tbody th small{display:block;font-weight:400;color:var(--muted)}
.standings-table tbody a{display:inline-flex;align-items:center;min-height:48px}
.standings-table .is-self{background:#e8eee7}
.standings-table td:last-child{text-align:right;font-size:1.4rem}
.standings-table-wrap{position:relative;max-width:100%;overflow-x:auto}
.standings-table-wrap table{width:100%}
.history-card{grid-template-columns:minmax(0,1fr) auto;gap:24px}
.history-winner{margin:6px 0}.history-card .button{min-height:48px}
@media(max-width:600px){.history-card{grid-template-columns:1fr}.history-card .button{justify-self:start}.competition-honors.is-final{padding:18px}}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.standings-table thead th{background:transparent;color:var(--muted);white-space:normal}
.standings-table th:first-child{width:54px}.standings-table th:last-child{min-width:72px}

/* Final interaction and reading refinements. */
.pick-form{grid-template-columns:repeat(3,minmax(0,1fr))}
.pick-button{display:flex;align-items:center;justify-content:center;min-height:56px;padding:.55rem;font-size:1rem;text-align:center;transition:transform 150ms,opacity 150ms}
.pick-button span{overflow:visible;text-overflow:clip;font-weight:650}
.pick-button:disabled{opacity:1}
.save-feedback{grid-column:1/-1;min-height:32px}
.save-retry,.save-action{min-height:48px;display:inline-flex;align-items:center;font-size:.875rem}
.save-retry[hidden],.save-action[hidden]{display:none}
.save-state{font-size:.8rem;font-weight:550;text-align:left}
.match-meta{font-weight:550;letter-spacing:.025em;text-transform:none;font-size:.8rem}
.dashboard-standings{color:var(--ink);background:var(--paper);border-color:var(--line)}
.dashboard-standings .eyebrow,.dashboard-standings .text-link{color:var(--green)}
.dashboard-standings > p:last-child{color:var(--muted)}
.site-header :focus-visible{outline-color:var(--yellow)}
.identity{min-height:48px;align-content:center}
.dashboard-refresh a,.comparison-nav a,.inline-link,.text-link,.dashboard-person-name,.barrio-picks summary{min-height:48px;display:inline-flex;align-items:center;gap:.35rem}
.dashboard-person-name{flex-wrap:wrap}
.comparison-card h3{line-height:1.2;overflow-wrap:anywhere}
.dashboard-fixture{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:.65rem}
.dashboard-fixture strong:last-child{text-align:right}
.dashboard-fixture>span{text-align:center}
.match-card{scroll-margin-block:24px 110px}
html{scroll-padding-bottom:110px}
.login-card{border:1px solid var(--line);box-shadow:none}
@media(max-width:600px){.progress-copy{flex-wrap:wrap}.progress-copy>span{display:block;flex-basis:100%;line-height:1.55}.save-feedback{grid-column:1/-1}.dashboard-hero h1{font-size:clamp(3.6rem,15vw,5rem)}}

/* Boleto de cancha — gate banner (needs a confirmed ticket to play) */
.boleto-gate-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1.25rem;
    padding: 1rem 1.15rem;
    background: var(--paper);
    border: 3px solid var(--ink);
    border-left: 8px solid var(--yellow);
    border-radius: var(--radius);
    box-shadow: 6px 6px 0 var(--green-dark);
}
.boleto-gate-banner.is-pendiente { border-left-color: var(--blue); }
.boleto-gate-banner.is-rechazado { border-left-color: var(--red); }
.boleto-gate-copy { flex: 1 1 240px; min-width: 0; }
.boleto-gate-copy strong { display: block; font-family: var(--display); font-stretch: condensed; text-transform: uppercase; letter-spacing: -.02em; font-size: 1.35rem; color: var(--green-dark); }
.boleto-gate-copy p { margin: .3rem 0 0; color: var(--muted); }
.boleto-gate-banner .button { flex: 0 0 auto; min-height: 44px; }
@media (max-width: 480px) {
    .boleto-gate-banner { flex-direction: column; align-items: stretch; }
    .boleto-gate-banner .button { width: 100%; }
}

/* Admin pending-review badge (taquilla signal) */
.admin-pending-badge {
    display: inline-block;
    min-width: 1.3em;
    padding: 1px 7px;
    margin-left: 6px;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--green-dark);
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.5;
    text-align: center;
    vertical-align: middle;
}

.error-reassurance {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 8px;
    color: #10b981;
    font-size: 0.9rem;
}
.error-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}
