.control-grid {
  display: grid;
  grid-template-columns: minmax(480px, 540px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.top-actions { display: flex; align-items: center; gap: 9px; }
.mode-link { color: #dbe7ff; text-decoration: none; border: 1px solid #33445f; border-radius: 7px; padding: 7px 11px; font-size: 12px; }
.mode-link:hover { background: #172338; }
.mode-link.active { border-color: #4f73dc; background: #18336f; color: #fff; }
.schedule-page-head { align-items: center; }
.schedule-workspace { display: grid; grid-template-columns: minmax(290px,360px) minmax(0,1fr); gap: 18px; align-items: start; }
.schedule-source { position: sticky; top: 84px; display: grid; gap: 20px; }
.schedule-source h2,.schedule-preview h2,.schedule-library h2 { margin: 0; font: 700 20px SpaceGrotesk; }
.schedule-source > div > p,.schedule-preview-head p,.schedule-library-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.schedule-source form { display: grid; gap: 15px; }
.schedule-source form > div:not(.schedule-source-switch),.schedule-date-grid label,.schedule-commit-bar label,.schedule-sheet-head label { display: grid; gap: 6px; color: #c0cce0; font-size: 11px; font-weight: 650; }
.schedule-source input,.schedule-source select,.schedule-commit-bar input,.schedule-sheet-head select { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #34445d; border-radius: 7px; background: #080e19; color: #fff; }
.schedule-source input:focus,.schedule-commit-bar input:focus,.schedule-sheet-head select:focus { outline: 2px solid #6e8fff; outline-offset: 2px; border-color: transparent; }
.schedule-source-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid #2c3b51; border-radius: 9px; background: #090f1a; }
.schedule-source-switch label { cursor: pointer; }
.schedule-source-switch input { position: absolute; opacity: 0; pointer-events: none; }
.schedule-source-switch span { display: block; padding: 8px; border-radius: 6px; color: #8fa0b8; font-size: 11px; font-weight: 700; text-align: center; }
.schedule-source-switch input:checked + span { background: #244fda; color: #fff; }
.schedule-source [hidden] { display: none!important; }
.schedule-source .hint { margin: 1px 0 0; font-size: 10px; line-height: 1.45; }
.schedule-date-grid { grid-template-columns: 1fr; gap: 10px!important; }
.schedule-sheet-options { min-width: 0; margin: 2px 0 0; padding: 0; border: 0; }
.schedule-sheet-options legend { padding: 0; color: #dce7f8; font-size: 12px; font-weight: 750; }
.schedule-sheet-options > p { margin: 4px 0 9px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.schedule-sheet-option-list { display: grid; border-block: 1px solid #2b3a50; }
.schedule-sheet-option { display: grid; grid-template-columns: minmax(0,1fr) 94px; gap: 10px; align-items: center; padding: 10px 0; }
.schedule-sheet-option + .schedule-sheet-option { border-top: 1px solid #253349; }
.schedule-sheet-choice { display: flex; gap: 9px; align-items: flex-start; min-width: 0; cursor: pointer; }
.schedule-sheet-choice input { width: auto; flex: 0 0 auto; margin-top: 2px; }
.schedule-sheet-choice span { min-width: 0; }
.schedule-sheet-choice strong,.schedule-sheet-choice small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-sheet-choice strong { color: #e5edfa; font-size: 11px; }
.schedule-sheet-choice small { margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 500; }
.schedule-start-row { display: grid; gap: 4px; color: #9eacc0; font-size: 9px; font-weight: 700; }
.schedule-start-row input { padding: 7px 8px; text-align: right; }
.schedule-main { display: grid; gap: 14px; min-width: 0; }
.schedule-preview { min-height: 330px; padding: 0; overflow: hidden; }
.schedule-preview-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.preview-state { flex: 0 0 auto; padding: 5px 8px; border: 1px solid #42536d; border-radius: 6px; color: #b9c7da; font-size: 10px; font-weight: 750; }
.preview-state.ready { border-color: #28704f; background: #123425; color: #80e5ad; }
.preview-state.blocked { border-color: #84404a; background: #391923; color: #ff9ba8; }
.schedule-empty { display: grid; place-items: center; align-content: center; gap: 7px; min-height: 260px; padding: 34px; color: #d9e4f5; text-align: center; }
.schedule-empty span { max-width: 48ch; color: var(--muted); font-size: 12px; line-height: 1.5; }
.schedule-empty.compact { min-height: 120px; }
.schedule-notices { display: grid; gap: 7px; padding: 14px 20px 0; }
.schedule-notice { display: grid; grid-template-columns: 62px 1fr; gap: 9px; padding: 9px 10px; border: 1px solid #3c4a5e; border-radius: 8px; background: #0b121e; font-size: 11px; line-height: 1.45; }
.schedule-notice strong { color: #dce7f8; }
.schedule-notice.error { border-color: #713742; background: #27131a; }
.schedule-notice.warning { border-color: #6a552c; background: #251f13; }
.schedule-sheet { padding: 18px 20px; }
.schedule-sheet + .schedule-sheet { border-top: 1px solid var(--line); }
.schedule-sheet-head { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 12px; }
.schedule-sheet-head h3 { margin: 0; font: 700 16px SpaceGrotesk; }
.schedule-sheet-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.schedule-sheet-head label { min-width: 190px; }
.schedule-table-wrap { max-width: 100%; overflow: auto; border: 1px solid #2a3a52; border-radius: 8px; }
.schedule-table { width: 100%; min-width: 790px; border-collapse: collapse; font-size: 11px; }
.schedule-table th { position: sticky; top: 0; z-index: 1; padding: 8px 9px; background: #111b2b; color: #91a2ba; font-size: 9px; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.schedule-table td { padding: 9px; border-top: 1px solid #243249; color: #cbd7e8; vertical-align: top; }
.schedule-table td strong,.schedule-table td span { display: block; }
.schedule-table td > span:not(.segment-badge):not(.loop-match) { margin-top: 2px; color: var(--muted); }
.segment-badge { width: fit-content; padding: 3px 5px; border-radius: 4px; background: #18356d; color: #a9c2ff; font-size: 9px; font-weight: 750; }
.segment-badge.transition { background: #4b3517; color: #f5ca78; }
.loop-match { color: #78e2ab; font-family: SpaceMono; font-size: 10px; }
.schedule-table-note { margin: 8px 0 0; color: var(--muted); font-size: 10px; }
.schedule-commit-bar { display: flex; justify-content: space-between; gap: 18px; align-items: end; padding: 14px 16px; border: 1px solid #39528b; border-radius: 11px; background: #111c31; }
.schedule-commit-bar label { flex: 1; max-width: 440px; }
.schedule-commit-bar > div { display: flex; gap: 10px; align-items: center; }
.schedule-commit-bar span { color: var(--muted); font-size: 10px; }
.schedule-library { padding: 0; overflow: hidden; }
.schedule-library-head { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.schedule-library-list { display: grid; }
.schedule-version { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 14px 18px; }
.schedule-version + .schedule-version { border-top: 1px solid var(--line); }
.schedule-version-title { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.schedule-version-title strong { font: 700 14px SpaceGrotesk; }
.schedule-version-title span { color: #8fa0b8; font-size: 10px; }
.schedule-version-title .active-schedule { padding: 2px 5px; border-radius: 4px; background: #143a2a; color: #7be0a8; font-weight: 750; }
.schedule-version p { margin: 4px 0 2px; color: #b5c3d8; font-size: 11px; }
.schedule-version small { color: var(--muted); font-size: 10px; }
.schedule-version button:disabled { cursor: default; opacity: .65; }
.schedule-live { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 20px; align-items: center; margin-bottom: 16px; padding: 14px 17px; }
.schedule-live-main { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; align-items: center; min-width: 0; }
.schedule-live-main > div:first-child { min-width: 0; }
.schedule-live-heading { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.schedule-live-main strong { display: block; overflow: hidden; color: #eff5ff; font: 700 15px SpaceGrotesk; text-overflow: ellipsis; white-space: nowrap; }
.schedule-live-main small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; text-transform: capitalize; }
.schedule-mode { padding: 4px 7px; border: 1px solid #3d4c63; border-radius: 5px; background: #101827; color: #aebbd0; font-weight: 750; }
.schedule-mode.following { border-color: #2d7252; background: #123424; color: #7fe1ab; }
.schedule-mode.manual_override { border-color: #8a672d; background: #392911; color: #ffd17e; }
.schedule-mode.warning { border-color: #8a3c48; background: #34161d; color: #ff9ba8; }
.schedule-live-time { min-width: 128px; padding-left: 20px; border-left: 1px solid var(--line); text-align: right; }
.schedule-live-time span,.schedule-live-next > span { display: block; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.schedule-live-time strong { margin-top: 2px; font: 700 22px SpaceMono; }
.schedule-live-time small { text-transform: none; }
.schedule-live-next { display: grid; grid-template-columns: minmax(130px,1fr) auto; gap: 3px 12px; align-items: center; min-width: 270px; padding-left: 18px; border-left: 1px solid var(--line); }
.schedule-live-next > span { grid-column: 1; }
.schedule-live-next > strong { grid-column: 1; overflow: hidden; color: #dbe5f5; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.schedule-actions { grid-column: 2; grid-row: 1/3; display: flex; gap: 6px; align-items: center; }
.schedule-actions button { min-height: 34px; padding: 6px 10px; font-size: 11px; white-space: nowrap; }
.program-cue { margin-bottom: 16px; padding: 0; overflow: hidden; }
.program-lanes { display: grid; grid-template-columns: 1fr 1fr; }
.program-lane { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px 16px; min-width: 0; padding: 13px 16px; }
.program-lane + .program-lane { border-left: 1px solid var(--line); }
.program-lane.on-air { background: linear-gradient(110deg,#102319,#0d1622 72%); }
.program-lane.preview { background: #0c1420; }
.program-lane strong,.program-lane small { grid-column: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.program-lane strong { color: #eef5ff; font: 700 14px SpaceGrotesk; }
.program-lane small { color: var(--muted); font-size: 10px; }
.cue-label { grid-column: 1; display: flex; gap: 6px; align-items: center; color: #94a5bc; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.cue-label i { width: 7px; height: 7px; border-radius: 50%; background: #27dc82; box-shadow: 0 0 8px #27dc8280; }
.delay-badge,.preview-state { grid-column: 2; grid-row: 1/4; align-self: center; padding: 5px 7px; border: 1px solid #38516e; border-radius: 6px; color: #b8c8dc; font: 700 10px SpaceMono; white-space: nowrap; }
.delay-badge.late { border-color: #9a6b26; background: #35270f; color: #ffd17b; }
.delay-badge.ahead { border-color: #276d50; background: #102f23; color: #79dfa9; }
.program-cue-editor { display: grid; grid-template-columns: minmax(150px,.8fr) minmax(240px,1.7fr) auto auto; gap: 8px; align-items: end; padding: 12px 16px; border-top: 1px solid var(--line); }
.program-cue-editor label { display: grid; gap: 5px; min-width: 0; color: #9eacc0; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.program-cue-editor select,.program-cue-editor input { width: 100%; min-width: 0; height: 34px; padding: 7px 9px; border: 1px solid #34445d; border-radius: 7px; background: #080e19; color: #fff; }
.cue-position { display: grid; grid-template-columns: repeat(2,54px); gap: 5px; }
.program-cue-actions { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 12px; }
.program-cue-actions:empty { display: none; }
.program-cue-actions button { min-height: 32px; padding: 6px 11px; font-size: 11px; }
.cue-metadata { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0 16px 11px; color: #91a2b9; font-size: 10px; }
.cue-metadata span { position: relative; }
.cue-metadata span + span::before { position: absolute; left: -8px; color: #40516b; content: "·"; }
.program-cue-empty { padding: 15px 17px; }
.program-cue-empty strong,.program-cue-empty small { display: block; }
.program-cue-empty strong { margin-top: 5px; color: #e7eef9; font-size: 13px; }
.program-cue-empty small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.classic-control.schedule-locked .timer-control-section { background: linear-gradient(180deg,#15203566,#0b121e00); }
.classic-control.schedule-locked button:disabled,.classic-control.schedule-locked input:disabled { cursor: not-allowed; opacity: .48; }
.sidebar { position: relative; }
.sidebar-toggle { position: absolute; z-index: 4; top: 22px; right: -14px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border-radius: 50%; border-color: #415473; background: #172338; color: #cbd9f1; font-size: 19px; line-height: 1; box-shadow: 0 5px 18px #0008; }
.sidebar-toggle:hover { background: #24406c; }
.sidebar-collapsed .shell { grid-template-columns: 64px 1fr; }
.sidebar-collapsed .sidebar { padding-inline: 8px; }
.arena-nav a { align-items: center; gap: 8px; }
.arena-short { display: none; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px; background: #21304a; color: #b9caff; font: 700 11px SpaceMono; }
.arena-name { flex: 1; }
.sidebar-collapsed .sidebar-title span,.sidebar-collapsed .arena-name,.sidebar-collapsed .arena-arrow,.sidebar-collapsed #showCreateArena { display: none; }
.sidebar-collapsed .arena-short { display: grid; }
.sidebar-collapsed .sidebar-title { justify-content: center; }
.sidebar-collapsed .arena-nav a { justify-content: center; padding-inline: 8px; }
.eyebrow { margin-bottom: 7px; color: #7999ff; font-size: 11px; font-weight: 750; letter-spacing: .15em; }
.page-actions { display: flex; gap: 8px; }
.arena-page-head { align-items: end; margin-bottom: 18px; }
.arena-page-head h1 { font-size: 28px; }
.arena-page-head p { margin-top: 3px; }
.classic-control { padding: 0; overflow: hidden; position: sticky; top: 82px; }
.powered-strip {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 18px; background: linear-gradient(90deg,#0b2fff,#173fb7);
  font: 700 11px SpaceGrotesk; letter-spacing: .12em;
}
.powered-strip strong { font-size: 14px; letter-spacing: 0; }
.quick-outputs { display: grid; gap: 8px; padding: 16px 18px 6px; }
.quick-outputs a,.quick-outputs button { width: 100%; }
.control-section { padding: 13px 18px 15px; }
.control-section + .control-section { border-top: 1px solid var(--line); }
.control-section h2 { margin: 0; color: #edf4ff; font: 700 16px SpaceGrotesk; }
.section-heading { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; }
.section-heading span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; background: #1a2941; color: #83a1ff; font: 700 10px SpaceMono; }
.section-heading h2 { margin: 0; }
.section-heading small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 500; }
.numbers-v5 { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.score-field { min-width: 0; padding: 9px; border: 1px solid #2a3a52; border-radius: 9px; background: #0b1320; }
.score-field-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.score-field-head label { color: #dbe6f7; font-size: 12px; font-weight: 700; }
.score-field .clear-value { width: auto; min-height: 28px; padding: 2px 4px; border: 0; background: transparent; color: #9aabc2; font-size: 11px; }
.score-field .clear-value:hover { color: #cbd8eb; }
.score-stepper { display: grid; grid-template-columns: 34px minmax(0,1fr) 34px; gap: 5px; }
.score-stepper input { min-width: 0; padding: 8px 4px; text-align: center; color: #fff; font: 750 19px SpaceGrotesk; }
.score-stepper button { padding: 7px 0; color: #dce7fb; font-size: 17px; }
.timer-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.timer-heading .section-heading { margin-bottom: 5px; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border: 1px solid #2c3b51; border-radius: 8px; background: #0a111d; }
.mode-switch button { min-height: 32px; padding: 6px 9px; border: 0; background: transparent; color: #9aabc2; font-size: 11px; white-space: nowrap; }
.mode-switch button.active { background: #244fda; color: #fff; box-shadow: 0 2px 8px #0005; }
.classic-control .timer-display { margin: 1px 0 9px; font-size: clamp(60px,5vw,78px); line-height: 1; }
.timer-presets-panel { min-width: 0; margin-top: 8px; padding-top: 8px; border-top: 1px solid #2a3a52; }
.up-next { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; padding: 8px 10px; border: 1px solid #2787b7; border-radius: 8px; background: #10263d; }
.up-next > div:first-child { display: grid; gap: 2px; min-width: 0; }
.up-next span { color: #72d5ff; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.up-next strong { overflow: hidden; color: #e6f6ff; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.up-next small { color: #9fb4ca; font-size: 9px; }
.up-next.empty { display: grid; gap: 2px; border-style: dashed; border-color: #34445d; background: #0c1421; }
.up-next-actions { display: flex; flex: 0 0 auto; gap: 5px; }
.up-next-actions button { min-height: 29px; padding: 5px 8px; font-size: 10px; }
.timer-presets-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.timer-presets-head span { color: #dbe6f7; font-size: 10px; font-weight: 750; }
.timer-presets-head small { color: #91a2b9; font-size: 10px; }
.timer-preset-buttons { display: grid; grid-template-columns: repeat(auto-fill,minmax(105px,1fr)); gap: 6px; max-height: 150px; overflow-y: auto; padding: 2px; }
.timer-preset-item { display: grid; min-width: 0; }
.timer-preset { display: grid; gap: 1px; min-width: 0; padding: 6px 5px; border-width: 1px; text-align: center; }
.timer-preset small { overflow: hidden; font-size: 10px; font-weight: 800; letter-spacing: .04em; opacity: .9; text-overflow: ellipsis; white-space: nowrap; }
.timer-preset strong { font: 700 14px SpaceMono; letter-spacing: -.05em; }
.timer-preset.preset-up { border-color: #23734e; background: #103a29; color: #69e5a5; }
.timer-preset.preset-down { border-color: #8d3642; background: #421923; color: #ff8e9b; }
.timer-preset.preset-loop { border-color: #315faa; background: #142d58; color: #9fc1ff; }
.timer-preset.preset-break { border-color: #946a28; background: #493616; color: #ffd27a; }
.timer-preset.preset-up:hover { background: #155338; }
.timer-preset.preset-down:hover { background: #61232f; }
.timer-preset.preset-loop:hover { background: #1a3e7c; }
.timer-preset.preset-break:hover { background: #674b1d; }
.timer-preset.active,.timer-preset.active:hover { border-color: #facc15; box-shadow: 0 0 0 2px #facc1540,0 0 12px #facc1533; }
.timer-preset.queued,.timer-preset.queued:hover { border-color: #38bdf8; box-shadow: 0 0 0 2px #38bdf83d,0 0 12px #38bdf830; }
.timer-preset.queued small::after { content: " · NEXT"; }
.preset-dual { display: grid; gap: 1px; }
.preset-dual i { font: 700 10px SpaceMono; font-style: normal; letter-spacing: -.04em; }
.preset-delete { min-height: 28px; margin-top: 3px; padding: 4px 7px; border-color: #6c3944; background: #24141b; color: #efa9b3; font-size: 11px; }
.preset-delete:hover { background: #51202b; color: #fff; }
.preset-admin-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 3px; }
.preset-admin-actions button { min-height: 28px; padding: 4px 7px; font-size: 11px; }
.preset-admin-actions .preset-delete { margin-top: 0; }
.preset-empty { grid-column: 1/-1; padding: 10px 5px; border: 1px dashed #2a3a52; border-radius: 7px; color: #94a5bc; font-size: 11px; text-align: center; }
.timer-main-actions { display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 7px; }
.timer-main-actions button { min-height: 42px; font-weight: 700; }
.classic-control .adjust-actions { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 5px; margin-top: 7px; }
.classic-control .adjust-actions button { min-width: 0; min-height: 32px; padding: 6px 2px; color: #bdcbe0; font-size: 11px; }
.manual-time-details { margin-top: 8px; border-top: 1px solid #25344a; }
.manual-time-details summary { padding: 9px 2px 0; color: #93a5bd; font-size: 11px; cursor: pointer; user-select: none; }
.manual-time { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; margin-top: 9px; }
.manual-time input { padding-block: 8px; }
.preset-builder { display: grid; grid-template-columns: .8fr minmax(0,1fr) auto; gap: 8px; align-items: end; margin-top: 10px; padding-top: 10px; border-top: 1px solid #25344a; }
.preset-builder label { display: grid; gap: 5px; color: #aebbd0; font-size: 10px; }
.preset-builder input,.preset-builder select { width: 100%; min-width: 0; padding: 8px; border: 1px solid #34445d; border-radius: 7px; background: #080e19; color: #fff; }
.preset-builder button { white-space: nowrap; }
.preset-identity-fields { display: grid; grid-template-columns: 1fr 1fr; grid-column: 1/-1; gap: 8px; }
.preset-identity-fields input[readonly] { color: #8fa2bd; font-family: SpaceMono,monospace; }
.preset-builder-actions { display: flex; gap: 6px; align-items: end; }
.preset-builder-actions [hidden] { display: none!important; }
.preset-key-hint { margin: 7px 0 0; }
.preset-single-fields,.preset-loop-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.preset-loop-fields { grid-template-columns: repeat(4,minmax(0,1fr)); }
.preset-builder.loop-mode { grid-template-columns: minmax(0,1fr) auto; }
.preset-builder.loop-mode .preset-loop-fields { grid-column: 1/-1; }
.preset-builder [hidden] { display: none!important; }
.display-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.display-row label { display: grid; gap: 6px; color: #aebbd0; font-size: 12px; }
.display-row input { width: 100%; background: #080e19; border: 1px solid #34445d; color: #fff; border-radius: 7px; padding: 10px; }
.screens-column { min-width: 0; }
.side-panel { margin-top: 14px; }
.side-panel-head { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.side-panel-head h3 { margin: 3px 0 2px; font: 700 19px SpaceGrotesk; }
.side-panel-head p { margin: 0; color: var(--muted); font-size: 11px; }
.break-panel { border-color: #5f4922; background: linear-gradient(145deg,rgba(42,32,17,.98),rgba(15,20,31,.98)); }
.break-buttons { display: grid; grid-template-columns: repeat(auto-fill,minmax(120px,1fr)); gap: 8px; }
.break-buttons .timer-preset { min-height: 58px; }
.automation-panel { border-color: #2d466b; }
.trigger-list { display: grid; gap: 8px; }
.trigger-card { display: grid; grid-template-columns: minmax(180px,1fr) minmax(220px,1.4fr) auto; gap: 12px; align-items: center; padding: 11px; border: 1px solid #2d3d55; border-radius: 9px; background: #0a111d; }
.trigger-card.disabled { opacity: .58; }
.trigger-card-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.trigger-card-main strong,.trigger-card-main small { display: block; }
.trigger-card-main small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.trigger-target { display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; min-width: 0; }
.trigger-target span { grid-row: span 2; align-self: center; padding: 4px 6px; border-radius: 5px; background: #1d3559; color: #b8d3ff; font-size: 10px; font-weight: 800; }
.trigger-target.heat-action span { background: #173d2b; color: #8ff0bd; }
.trigger-target code { min-width: 0; overflow: hidden; color: #9aaac0; font: 10px SpaceMono; text-overflow: ellipsis; white-space: nowrap; }
.trigger-editor { margin-top: 12px; border-top: 1px solid #2b3b53; }
.trigger-editor summary { padding: 12px 2px 2px; color: #9ebcff; font-size: 11px; font-weight: 700; cursor: pointer; }
.trigger-form-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-top: 12px; }
.trigger-form-grid label { display: grid; gap: 5px; color: #aebbd0; font-size: 10px; }
.trigger-form-grid input,.trigger-form-grid select { width: 100%; min-width: 0; padding: 8px; border: 1px solid #34445d; border-radius: 7px; background: #080e19; color: #fff; }
.trigger-threshold { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.trigger-threshold[hidden] { display: none; }
.trigger-message { grid-column: span 2; }
.trigger-form-grid .check { align-self: end; min-height: 34px; }
.trigger-form-grid .check input { width: auto; }
.trigger-form-grid [hidden],.trigger-hint [hidden] { display: none!important; }
.trigger-hint { margin: 10px 0; }
.screens-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.screens-head h2 { margin: 0; font: 700 20px SpaceGrotesk; }
.screens-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.screen-card-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.screen-card-head h3 { margin: 2px 0 8px; }
.screen-kicker { color: #91aaff; font-size: 10px; font-weight: 750; letter-spacing: .14em; }
.screen-primary-actions { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 7px; padding: 9px 13px; color: #fff; text-decoration: none; }
.screen-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.screen-card-foot code { min-width: 0; overflow: hidden; color: #71839d; font: 11px SpaceMono; text-overflow: ellipsis; white-space: nowrap; }
.default-tag { color: #8ff0bd; border-color: #277454; background: #123c2c; }
.screens-column .primary-screen-grid { grid-template-columns: minmax(0,1fr); }
.screen-tab-bar { display:flex; align-items:flex-start; flex-wrap:wrap; gap:6px; margin:0 0 10px; padding-bottom:6px; border-bottom:1px solid var(--line); }
.screen-tabs { display:flex; flex-wrap:wrap; gap:4px; min-width:0; }
.add-screen-tab { min-width:38px; min-height:38px; padding:0 10px; font-size:21px; line-height:1; }
.screen-tabs button { max-width:100%; min-height:38px; padding:6px 12px; background:transparent; color:#b8c8dd; font-size:14px; overflow-wrap:anywhere; border-color:transparent; }
.screen-tabs button[aria-selected="true"] { color:#eef5ff; background:#1b2e50; border-color:#5778b1; }
.primary-preview { padding: 18px; }
.primary-preview .preview-box { height: clamp(165px,24vh,250px); margin: 15px 0 12px; }
.primary-preview .screen-card-head h3 { font-size: 24px; }
body:not(.admin-mode) .control-grid { grid-template-columns: minmax(480px,540px) minmax(480px,760px); justify-content: start; }
body:not(.admin-mode) .screens-column { width: min(100%,760px); }
.screen-dialog { width: min(980px,calc(100vw - 30px)); overflow-x: hidden; overflow-y: auto; }
.screen-dialog .dialog-form,.wide-dialog .dialog-form { width: 100%; min-width: 0; }
.screen-dialog .form-grid > *,.screen-dialog .element-editor,.screen-dialog .element-card { min-width: 0; }
.screen-dialog .form-grid.four { grid-template-columns: repeat(3,minmax(0,1fr)); }
.screen-dialog .form-grid.three { grid-template-columns: repeat(2,minmax(0,1fr)); }
.screen-dialog .inline-actions { display: grid; grid-template-columns: minmax(0,1fr) auto; }
.screen-dialog .file-info { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen-dialog input[type="file"] { min-width: 0; max-width: 100%; }
.editor-hint { margin: -5px 0 12px; }
.element-editor { display: grid; gap: 10px; }
.screen-boundary-warnings { margin: 10px 0; padding: 10px 12px; border: 1px solid #806628; border-radius: 8px; background: #2a2212; color: #f5d881; font-size: 11px; }
.screen-boundary-warnings strong { display: block; margin-bottom: 4px; }
.screen-boundary-warnings ul { margin: 0; padding-left: 18px; }
.screen-boundary-warnings[hidden] { display: none; }
.element-card { padding: 13px; border: 1px solid #2b3b54; border-radius: 10px; background: #0b1320; }
.element-card-head { display: grid; grid-template-columns: auto minmax(220px,1fr) auto; gap: 12px; align-items: end; margin-bottom: 11px; }
.element-card-head label,.element-fields label { display: grid; gap: 5px; color: #aebbd0; font-size: 11px; }
.element-enabled { display: flex!important; align-items: center; gap: 7px!important; align-self: center; padding-right: 5px; color: #dbe7f8!important; }
.element-enabled input { width: auto; }
.element-card input,.element-card select { width: 100%; min-width: 0; padding: 8px; background: #070d17; border: 1px solid #34445d; border-radius: 6px; color: #fff; }
.element-card .remove { width: auto; padding: 8px 10px; }
.element-fields { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.element-text-field { grid-column: span 2; }
.element-card [hidden] { display: none!important; }
.preview-box {
  height: 170px;
  background: repeating-conic-gradient(#0a101b 0 25%,#0d1522 0 50%) 50%/18px 18px;
}
.preview-canvas {
  position: absolute; left: 0; top: 0; overflow: hidden; transform-origin: 0 0;
  background-position: center; background-repeat: no-repeat;
}
.mini-element { position: absolute; white-space: nowrap; line-height: .9; font-weight: 700; }
.mini-anchor-left { transform: translateY(-50%); text-align: left; }
.mini-anchor-center { transform: translate(-50%,-50%); text-align: center; }
.mini-anchor-right { transform: translate(-100%,-50%); text-align: right; }
.mini-clock { font-family: inherit; letter-spacing: -.04em; }
.mini-element[data-font="matrixscreen"] { font-weight: 400; font-synthesis: none; }
.mini-element[data-font="matrixscreen"].mini-clock { letter-spacing: .03em; }
.mini-paused { letter-spacing: .18em; }
.mini-logo img { display: block; max-height: 1em; max-width: 12em; object-fit: contain; }
.mini-logo[data-fixed-width] img { width: 100%; height: auto; max-width: none; max-height: none; }
:where(a,button,input,select,summary):focus-visible { outline: 2px solid #86a2ff; outline-offset: 3px; }
select { font-size: .9375rem; font-weight: 500; min-width: 0; min-height: 38px; }
button:disabled { cursor: not-allowed; opacity: .55; }
@media(max-width:1180px) {
  .classic-control { position: static; }
  .control-grid { grid-template-columns: 1fr; }
  .screen-grid { grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); }
  body:not(.admin-mode) .control-grid { grid-template-columns: 1fr; }
  body:not(.admin-mode) .screens-column { width: 100%; }
  .element-fields { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .trigger-card { grid-template-columns: 1fr; }
  .schedule-workspace { grid-template-columns: 1fr; }
  .schedule-source { position: static; }
}
@media(max-width:900px) {
  .sidebar-toggle { top: 14px; right: 12px; }
  .schedule-live { grid-template-columns: 1fr; }
  .schedule-live-next { padding: 12px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .program-cue-editor { grid-template-columns: 1fr 1fr; }
  .cue-segment { grid-column: 1/-1; }
  body:not(.admin-mode) .control-grid { grid-template-columns: 1fr; }
  body:not(.admin-mode) .screens-column { width: 100%; }
  .screen-dialog .form-grid.four,.screen-dialog .form-grid.three { grid-template-columns: 1fr 1fr; }
  .trigger-form-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width:560px) {
  .topbar { min-height: 64px; height: auto; padding: 10px 12px; gap: 8px 10px; flex-wrap: wrap; }
  .brand { min-width: 0; }
  .brand small { display: none; }
  .top-actions { flex: 0 0 100%; width: 100%; min-width: 0; gap: 6px; }
  .mode-link,.status-pill { padding: 6px 8px; font-size: 11px; white-space: nowrap; }
  .status-pill { max-width: 132px; margin-left: auto; overflow: hidden; text-overflow: ellipsis; }
  .page-head,.arena-page-head { align-items: stretch; flex-direction: column; }
  .page-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .page-actions > * { min-width: 0; width: 100%; text-align: center; }
  .schedule-live-main { grid-template-columns: 1fr; }
  .schedule-live-time { padding: 10px 0 0; border-top: 1px solid var(--line); border-left: 0; text-align: left; }
  .schedule-live-next { grid-template-columns: 1fr; min-width: 0; }
  .schedule-actions { grid-column: 1; grid-row: auto; flex-wrap: wrap; margin-top: 8px; }
  .program-lanes { grid-template-columns: 1fr; }
  .program-lane + .program-lane { border-top: 1px solid var(--line); border-left: 0; }
  .program-cue-editor { grid-template-columns: 1fr; }
  .up-next { align-items: stretch; flex-direction: column; }
  .cue-segment { grid-column: auto; }
  .schedule-page-head,.schedule-preview-head,.schedule-sheet-head,.schedule-commit-bar,.schedule-library-head,.schedule-version { align-items: stretch; flex-direction: column; }
  .schedule-sheet-head label,.schedule-commit-bar label { min-width: 0; max-width: none; }
  .manual-time,.display-row { grid-template-columns: 1fr 1fr; }
  .manual-time button,.display-row button { grid-column: 1/-1; }
  .numbers-v5 { grid-template-columns: 1fr; }
  .timer-heading,.screen-card-head,.screen-card-foot { align-items: stretch; flex-direction: column; }
  .preset-builder { grid-template-columns: 1fr 1fr; }
  .preset-builder.loop-mode { grid-template-columns: 1fr; }
  .preset-identity-fields { grid-template-columns: 1fr; }
  .preset-loop-fields { grid-template-columns: 1fr 1fr; }
  .preset-builder-actions { grid-column: 1/-1; }
  .screen-primary-actions { flex-wrap: wrap; }
  .screen-primary-actions > * { flex: 1; }
  .classic-control .adjust-actions { grid-template-columns: repeat(3,1fr); }
  .screen-dialog .form-grid.four,.screen-dialog .form-grid.three,.element-fields { grid-template-columns: 1fr 1fr; }
  .element-card-head { grid-template-columns: 1fr auto; }
  .element-enabled { grid-column: 1/-1; }
  .screen-dialog .inline-actions { grid-template-columns: 1fr; }
  .trigger-form-grid { grid-template-columns: 1fr; }
  .trigger-message { grid-column: auto; }
  .screen-dialog .dialog-actions { flex-wrap: wrap; }
  .screen-dialog .dialog-actions .spacer { display: none; }
  .schedule-commit-bar > div { align-items: stretch; flex-direction: column; }
}
.cue-workspace { display:grid; gap:16px; max-width:960px; }
.cue-workspace > section { padding:20px; min-width:0; }
.cue-workspace h2 { margin:0 0 12px; }
.cue-workspace .schedule-date-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.cue-sheet-summary { padding:12px; cursor:pointer; }
.cue-sheet-summary span { display:block; margin:5px 0 0 15px; color:#b3c1d6; font-size:12px; }
.cue-workspace .schedule-commit-bar { display:grid; gap:8px; margin-top:16px; }
.cue-workspace .schedule-commit-bar button { justify-self:start; }
.cue-library ul { list-style:none; padding:0; margin:0 0 12px; max-height:260px; overflow:auto; }
.cue-library li { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:6px 16px; padding:9px 0; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.cue-library li span { color:var(--muted); font-size:12px; }
.cue-workspace details > summary { cursor:pointer; }
.cue-workspace .schedule-source summary h2 { display:inline; margin-right:10px; }
.cue-workspace .schedule-source summary span { color:var(--muted); font-size:12px; }
.cue-workspace .schedule-source form { margin-top:16px; }
.cue-workspace .schedule-source { position:static; }
.cue-workspace .schedule-preview-head { padding:0 0 12px; flex-wrap:wrap; }
.cue-workspace .schedule-table-wrap { max-width:100%; overflow:auto; }
.cue-workspace .schedule-commit-bar label { width:100%; }
.cue-workspace { width:100%; min-width:0; overflow-wrap:anywhere; }
@media(max-width:600px) {
  .top-actions { flex-wrap:wrap; }
  .shell:has(.cue-workspace) { grid-template-columns:minmax(0,1fr); }
  .shell:has(.cue-workspace) .sidebar { min-width:0; }
  .main:has(.cue-workspace) { min-width:0; }
  .main:has(.cue-workspace) .page-head { flex-wrap:wrap; }
}
.cue-overview { display:block; padding:0; overflow:hidden; }
.cue-overview .program-overview { display:grid; grid-template-columns:minmax(110px,.65fr) repeat(3,minmax(0,1fr)); gap:0; padding:0; }
.program-overview > div,.cue-editor-layout > div { min-width:0; padding:14px 16px; overflow-wrap:anywhere; }
.program-overview > div + div,.cue-editor-layout > div + div { border-left:1px solid var(--line); }
.cue-field-label,.cue-neighbors span,.cue-offset > span { display:block; color:#a9bbd2; font-size:.875rem; line-height:1.35; font-weight:650; margin-bottom:6px; }
.program-overview strong,.cue-preview-block strong { display:block; overflow:visible; white-space:normal; font-size:1.125rem; line-height:1.35; }
.program-overview small,.cue-preview-block small,.cue-neighbors small { color:#a9bbd2; display:block; font-size:.875rem; line-height:1.4; }
.cue-overview .schedule-actions { flex-wrap:wrap; padding:8px 16px; border-top:1px solid var(--line); }
.program-overview .delay-badge { display:inline-block; font-size:1rem; }
.program-overview button { display:block; margin-top:7px; }
.cue-clock,.cue-neighbors strong { color:#edf4ff; font-family:SpaceMono,monospace; font-variant-numeric:tabular-nums; }
.cue-clock { display:block; margin-top:3px; font-size:1.375rem; line-height:1.2; }
.cue-neighbors strong { font-size:1.125rem; }
.cue-builder .cue-editor-layout { grid-template-columns:minmax(0,.9fr) minmax(0,1.45fr) minmax(0,1fr); align-items:stretch; gap:0; padding:0; border:0; }
.cue-editor-layout label { font-size:.875rem; text-transform:none; }
.cue-editor-layout select,.cue-editor-layout input { min-height:40px; font-size:1rem; }
.cue-editor-layout [data-use-cue] { margin-top:8px; }
.cue-editor-layout [hidden] { display:none; }
.cue-neighbors { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; margin-top:10px; }
.cue-neighbors > div { border-top:1px solid var(--line); padding-top:6px; }
.cue-offset { display:flex; align-items:end; flex-wrap:wrap; gap:6px; margin-top:10px; }
.cue-offset input { max-width:64px; }
.cue-preview-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:12px; }
.cue-builder button,.cue-overview button,.cue-points-drawer button { min-height:40px; font-size:.875rem; padding:7px 11px; white-space:normal; }
.cue-editor-layout .cue-preview-block { display:flex; flex-direction:column; align-items:flex-start; gap:4px; border-radius:0; }
.cue-preview-block small { overflow:visible; white-space:normal; }
dialog.cue-points-drawer { position:fixed; inset:0 0 0 auto; margin:0; width:min(460px,100%); max-width:100%; height:100%; max-height:100%; border-radius:0; border-width:0 0 0 1px; background:#101827; padding:0; }
.cue-points-drawer[open] { display:flex; flex-direction:column; }
.cue-points-drawer::backdrop { background:rgba(4,8,15,.36); backdrop-filter:none; }
.cue-points-drawer header { display:flex; align-items:start; justify-content:space-between; gap:12px; padding:18px; border-bottom:1px solid var(--line); }
.cue-points-drawer h2,.cue-points-drawer p { margin:0; }
.cue-points-drawer p { color:#b0bfd4; margin-top:6px; font-size:.875rem; line-height:1.45; overflow-wrap:anywhere; }
.cue-points-list { overflow:auto; padding:8px 18px 18px; }
.cue-point { border-bottom:1px solid var(--line); padding:10px 8px; overflow-wrap:anywhere; }
.cue-point.current { background:#172a45; }
.cue-point summary { cursor:pointer; }
.cue-point summary span,.cue-point summary small { font-size:.875rem; color:#a8c2e8; }
.cue-point summary strong { display:block; margin:4px 0 0 14px; }
@media(max-width:950px) {
  .cue-overview .program-overview { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cue-builder .cue-editor-layout { grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); }
  .cue-preview-block { grid-column:1/-1; border-top:1px solid var(--line); }
  .program-overview > div:nth-child(n+3) { border-top:1px solid var(--line); }
}
@media(max-width:620px) {
  .cue-builder .cue-editor-layout { grid-template-columns:minmax(0,1fr); }
  .cue-editor-layout > div + div { border-left:0; border-top:1px solid var(--line); }
}
.debug-clock-button { position:fixed; z-index:6; bottom:12px; left:12px; display:flex; align-items:center; gap:8px; min-height:42px; padding:9px 10px; font-size:14px; }
.debug-clock-button.debug-active { border-color:#b18c4c; color:#ffdb9d; background:#322515; }
.debug-clock-icon { display:block; position:relative; width:19px; height:19px; border:2px solid currentColor; border-radius:50%; }
.debug-clock-icon::before { content:""; position:absolute; top:3px; left:6px; width:5px; height:5px; border-left:2px solid currentColor; border-bottom:2px solid currentColor; }
.debug-clock-dialog { width:min(510px,calc(100vw - 30px)); }
.debug-clock-dialog p { color:#c0cde0; line-height:1.45; }
.debug-clock-times { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.debug-clock-times span,.debug-clock-times time { display:block; overflow-wrap:anywhere; }
.debug-clock-times span { color:#a9bbd2; font-size:14px; margin-bottom:5px; }
.debug-clock-times time { font:700 15px SpaceMono,monospace; }
.debug-clock-dialog .dialog-actions { flex-wrap:wrap; justify-content:flex-end; }
.debug-clock-dialog .hint { display:block; margin-top:5px; }
