:root { color-scheme: dark; font-family: "DM Sans", sans-serif; background: #101915; color: #f7f7f1; }
* { box-sizing: border-box; }
body { min-height: 100svh; margin: 0; background: #101915; }
button, input, select { font: inherit; }
.operator-app { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; }
header { position: sticky; z-index: 10; top: 0; min-height: 64px; padding: max(14px, env(safe-area-inset-top)) 18px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #344039; background: #101915; }
header > div:first-child { font: 800 23px/1 "Barlow Condensed", sans-serif; letter-spacing: -.02em; text-transform: uppercase; }
header > div:first-child span { color: #fff; }
header > div:first-child strong { color: #d9ff43; }
.connection { color: #aab3ae; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.connection::before { content: ""; width: 7px; height: 7px; margin-right: 7px; display: inline-block; border-radius: 50%; background: #edb33e; }
.connection[data-state="online"]::before { background: #d9ff43; }
.connection[data-state="offline"]::before, .connection[data-state="sync-error"]::before { background: #ff654e; }
.operator-status { display: grid; justify-items: end; gap: 5px; margin-left: auto; }
.pending-sync { color: #ffc35a; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pending-sync[data-failed="true"] { color: #ff806c; }
.operator-help-link { min-height: 38px; padding: 0 10px; display: inline-flex; align-items: center; border: 1px solid #647169; color: #d9ff43; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.operator-help-link:focus-visible { outline: 3px solid rgba(217,255,67,.35); outline-offset: 2px; }
.operator-workspace { width: min(100%, 620px); margin: 0 auto; padding: 34px 18px; align-self: start; }
.race-name { margin: 0 0 6px; color: #d9ff43; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0 0 30px; font: 800 clamp(38px, 12vw, 62px)/.88 "Barlow Condensed", sans-serif; letter-spacing: -.025em; text-transform: uppercase; }
.checkpoint-field, form > label { display: block; margin-bottom: 8px; color: #b9c2bd; font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
select { width: 100%; height: 62px; margin: 0 0 30px; padding: 0 16px; border: 2px solid #536159; border-radius: 0; background: #18231e; color: #fff; font-size: 19px; font-weight: 700; }
select:focus { border-color: #d9ff43; outline: 3px solid rgba(217,255,67,.2); }
.mobile-close-checkpoint { width: 100%; min-height: 48px; margin: -16px 0 28px; border: 1px solid #ff654e; background: transparent; color: #ff806c; cursor: pointer; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.mobile-close-checkpoint:active { background: #ff654e; color: #fff; }
.mobile-close-checkpoint:disabled { cursor: wait; opacity: .5; }
.mobile-bib-wrap { height: min(30vw, 142px); min-height: 112px; display: flex; align-items: center; border: 4px solid #d9ff43; background: #f9faf4; color: #101915; }
.mobile-bib-wrap:focus-within { box-shadow: 0 0 0 5px rgba(217,255,67,.25); }
.mobile-bib-wrap span { padding-left: 18px; color: #7d867f; font: 800 clamp(44px, 15vw, 82px)/1 "Barlow Condensed", sans-serif; }
#mobile-bib { width: 100%; min-width: 0; height: 100%; padding: 0 16px 4px 5px; border: 0; outline: 0; background: transparent; color: #101915; font: 800 clamp(58px, 21vw, 108px)/1 "Barlow Condensed", sans-serif; letter-spacing: .01em; }
#mobile-bib:disabled { opacity: .35; }
.mobile-enter-button { width: 100%; min-height: 72px; margin-top: 14px; border: 0; border-radius: 0; background: #d9ff43; color: #101915; cursor: pointer; font: 800 30px/1 "Barlow Condensed", sans-serif; letter-spacing: .08em; text-transform: uppercase; touch-action: manipulation; }
.mobile-enter-button:active { background: #fff; transform: translateY(1px); }
.mobile-enter-button:focus-visible { outline: 4px solid rgba(217,255,67,.3); outline-offset: 3px; }
.entry-hint { margin: 10px 0 24px; color: #9da8a2; font-size: 12px; text-align: center; }
.mobile-feedback { min-height: 92px; padding: 18px; display: flex; flex-direction: column; justify-content: center; border-left: 7px solid #58635d; background: #1b2721; }
.mobile-feedback strong { font: 800 26px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.mobile-feedback span { margin-top: 7px; color: #b9c2bd; font-size: 12px; }
.mobile-feedback.success { border-color: #d9ff43; background: #26351b; }
.mobile-feedback.success strong { color: #d9ff43; }
.mobile-feedback.warning { border-color: #ffc35a; }
.mobile-feedback.warning strong { color: #ffc35a; }
.mobile-feedback.error { border-color: #ff654e; }
.mobile-feedback.error strong { color: #ff806c; }
.close-checkpoint-dialog { width: min(440px, calc(100% - 32px)); padding: 0; border: 1px solid #536159; background: #18231e; color: #fff; box-shadow: 0 25px 80px rgba(0,0,0,.55); }
.close-checkpoint-dialog::backdrop { background: rgba(4,9,6,.82); backdrop-filter: blur(3px); }
.close-checkpoint-dialog form { padding: 28px 24px; }
.close-checkpoint-dialog form > p:first-child { margin: 0 0 8px; color: #ff806c; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.close-checkpoint-dialog h2 { margin: 0; font: 800 36px/.95 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.close-checkpoint-dialog #close-checkpoint-warning { margin: 18px 0 24px; color: #b9c2bd; font-size: 13px; line-height: 1.5; }
.close-checkpoint-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.close-checkpoint-actions button { min-height: 48px; border: 1px solid #536159; background: transparent; color: #fff; cursor: pointer; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
#confirm-close-checkpoint { border-color: #ff654e; background: #ff654e; }
.close-checkpoint-actions button:disabled { cursor: wait; opacity: .5; }
#close-checkpoint-message { min-height: 17px; margin-top: 12px; display: block; color: #ff806c; font-size: 11px; }
footer { min-height: 58px; padding: 10px 18px max(10px, env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px 14px; border-top: 1px solid #344039; }
footer > a { margin-right: auto; color: #d9ff43; font-size: 11px; }
.operator-diagnostics-open { flex: 0 0 auto; min-height: 40px; padding: 0 10px; border: 2px solid #d9ff43; background: #d9ff43; color: #101915; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; touch-action: manipulation; }
.operator-diagnostics-open[hidden], .operator-diagnostics-footer[hidden] { display: none; }
.operator-diagnostics-open:active { background: #fff; transform: translateY(1px); }
.operator-diagnostics-footer { min-height: 36px; padding: 0 10px; border: 1px solid #d9ff43; background: transparent; color: #d9ff43; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; touch-action: manipulation; }
.operator-diagnostics { position: fixed; z-index: 20; inset: 0; overflow: auto; padding: max(20px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); background: #101915; color: #f7f7f1; }
.operator-diagnostics[hidden] { display: none; }
.operator-diagnostics-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.operator-diagnostics-heading p { margin: 0 0 4px; color: #d9ff43; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.operator-diagnostics h2 { margin: 0; font: 800 34px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.operator-diagnostics h3 { margin: 24px 0 8px; color: #b9c2bd; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.operator-diagnostics button { min-height: 40px; padding: 0 14px; border: 1px solid #647169; background: #18231e; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.operator-diagnostics-note { margin: 18px 0; color: #b9c2bd; font-size: 12px; line-height: 1.5; }
.operator-diagnostics-actions { display: flex; gap: 8px; }
.operator-diagnostics-copy-status { min-height: 16px; margin: 8px 0 0; color: #d9ff43; font-size: 11px; }
.operator-diagnostics pre { margin: 0; padding: 14px; overflow-wrap: anywhere; white-space: pre-wrap; border: 1px solid #344039; background: #0a100d; color: #e8ece9; font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
@media (min-width: 700px) { .operator-workspace { padding-top: 60px; } }
@media (max-width: 420px) { .operator-help-link { padding: 0 7px; } }
