:root {
    --bg: #f1f1f1;
    --surface: #fbfbfb;
    --soft: #efefef;
    --hover: #eeeeee;
    --border: #e1e1e1;
    --text: #232323;
    --secondary: #4d4d4d;
    --muted: #5f5f5f;
    --signal: #5c5c5c;
    --signal-soft: #eeeeee;
    --sidebar-width: 204px;
    --radius: 17px;
    --shell-gutter: clamp(13px, 1.55vw, 24px);
    --arena-shadow: 0 2px 5px #31313110, 0 8px 28px #3131310c, inset 0 1px #ffffffc9;
}

body {
    background: radial-gradient(ellipse at 38% 0%, #fbfbfb 0%, transparent 63%), var(--bg);
}

:focus-visible { outline-color: #626262; }

.sidebar {
    position: sticky; isolation: isolate; padding: 28px 13px 13px;
    background: #fff; border-right: 1px solid #e1e1e1; box-shadow: 3px 0 20px #00000006;
}

.top-brand {
    width: 100%; flex-direction: column; justify-content: center; align-items: center;
    align-self: center; gap: 9px; padding: 3px 0 2px;
}
.brand-definitions { position: absolute; overflow: hidden; pointer-events: none; }
.sidebar-mark { width: 103px; height: 103px; }
.sidebar-mark,.auth-emblem { flex: 0 0 auto; transition: transform .3s var(--ease); }
.top-brand:is(:hover,:focus-visible) .sidebar-mark,.auth-brand:hover .auth-emblem { transform: scale(1.08); }
.brand-glint {
    fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; pointer-events: none;
    animation: logo-glint 4.1s linear infinite;
}
.brand-orbit { stroke-width: 10px; stroke-dasharray: 11 89; opacity: .94; }
.brand-ticks { stroke-width: 7px; stroke-dasharray: 10 90; opacity: .62; animation-delay: -1.65s; }
.brand-letter { stroke-width: 9px; stroke-dasharray: 16 84; opacity: .91; animation-duration: 3.2s; }
.brand-letter-h { animation-delay: -1.47s; }
.brand-name { display: block; width: 100%; aspect-ratio: 1164 / 121; }
.brand-word-glint { pointer-events: none; animation: brand-name-glint 4.1s linear infinite; }
.sidebar-wordmark {
    display: grid; justify-items: center; gap: 5px; width: min(163px,100%);
}
.brand-tagline {
    display: block; color: #333; font-size: 7px; font-weight: 720; line-height: 1.2;
    letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.auth-brand { gap: 6px; margin-bottom: 20px; }
.auth-emblem { width: 121px; aspect-ratio: 1; margin-bottom: 3px; }
.auth-brand .brand-name { width: min(265px,100%); }
.auth-brand .brand-tagline { font-size: 9px; letter-spacing: .16em; }
.rail-nav { gap: 8px; margin-top: 28px; }
.rail-link {
    gap: 10px; min-height: 45px; padding: 8px 10px; border: 1px solid #e4e4e4;
    border-radius: 12px; color: #353535; background: linear-gradient(145deg,#fafafa,#f0f0f0);
    box-shadow: inset 0 1px #fff; font-weight: 600;
    transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.rail-link .ic {
    width: 20px; height: 20px; color: #555;
}
.rail-link:hover,.rail-link[aria-current=page],.rail-footer .sign-out:hover {
    color: #111; background: linear-gradient(143deg,#ebebeb,#dadada); border-color: #cfcfcf;
    box-shadow: inset 0 1px #fff, 0 3px 7px #00000010;
}
.rail-link:hover .ic,.rail-link[aria-current=page] .ic {
    color: #181818;
}
.rail-footer { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 7px; }
.account { min-height: 0; padding: 0; }
.account-mark {
    width: 43px; height: 43px; flex-basis: 43px; border-radius: 12px;
    color: #4b4b4b; background: #f2f2f2; border: 1px solid #e4e4e4;
}
.account-mark .ic { width: 21px; height: 21px; }
.rail-footer .sign-out {
    min-height: 43px; background: #f6f6f6; border-color: #e4e4e4;
}

.content { max-width: 1710px; margin-inline: 0; padding: 17px var(--shell-gutter) 40px; }
.pagehead { margin-bottom: 13px; }
.pagehead h1 { color: #242424; font-weight: 700; }
.monitor-tools { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 73%; }
.monitor-tools .quick-matches { max-width: none; }
.quick-match { flex-shrink: 0; border-radius: 10px; }
.quick-match[aria-pressed=true]:not(.pick) { background: #ececec; border-color: #cfcfcf; color: #424242; }
.match-picker-button,.match-picker-button:enabled:hover {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; gap: 8px;
    min-height: 43px; color: #fafafa; border-color: #4d4d4d; border-radius: 12px;
    background: linear-gradient(140deg, #4b4b4b, #252525 95%); font-weight: 650;
    box-shadow: 0 4px 13px #3f3f3f28, inset 0 1px #e7e7e73b;
}
.match-picker-button { position: relative; overflow: hidden; isolation: isolate; }
.match-picker-button::before,.match-panel::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
    background: linear-gradient(112deg,transparent 38%,#ffd78c24 44%,#fff3d9c2 50%,#ffd78c24 56%,transparent 62%)
        -100% 0 / 235% 100% no-repeat;
}
.match-picker-button::before { z-index: -1; }
.match-panel::after {
    padding: 1.5px; z-index: 2;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}
.match-picker-button:is(:hover,:focus-visible)::before,.match-panel:is(:hover,:focus-within)::after {
    animation: frame-glint .85s var(--ease) both;
}
.match-picker-button:enabled:hover { background: linear-gradient(140deg, #636363, #3b3b3b); }
.match-picker-button .ic { width: 19px; height: 19px; color: #e5e5e5; }
.match-picker-button .match-picker-chevron { width: 14px; height: 14px; }
.picker-label-short { display: none; }

.watch-grid {
    grid-template-columns: minmax(0, 1fr) minmax(350px,1.16fr);
    grid-template-areas: 'main events';
    gap: 13px;
}
.watch-grid > .watch-side { grid-area: events; }
.watch-grid > .watch-main { grid-area: main; }
.watch-main,.watch-side { display: grid; align-content: start; gap: 11px; }
.panel { background: #fcfcfc; border-color: #e2e2e2; box-shadow: var(--arena-shadow); }
.panel h2,dialog h2 { font-size: 16px; font-weight: 680; }
#monitorView .panel-head { min-height: 51px; }
#monitorView .head-label { gap: 10px; }
#monitorView .head-label > .ic,.match-picker .head-label > .ic {
    box-sizing: content-box; width: 20px; height: 20px; padding: 6px; border-radius: 10px;
    color: #565656; background: linear-gradient(145deg,#f8f8f8,#e8e8e8);
    box-shadow: 0 2px 5px #39393913, inset 0 1px #ffffff;
}
.tag { border-radius: 7px; padding: 5px 7px; background: #eeeeee; color: #4f4f4f; }

.match-panel {
    isolation: isolate; position: relative; overflow: hidden; padding: 0 clamp(10px,1.1vw,17px) 12px;
    --signal: #333; color: #202020; border-color: #e1e1e1;
    background: #fff; box-shadow: var(--arena-shadow);
}
#monitorView .match-panel > .panel-head { min-height: 46px; }
#monitorView .match-panel .head-label > .ic {
    color: #282828; background: linear-gradient(135deg,#f7f7f7,#e4e4e4);
    box-shadow: inset 0 1px #fff, 0 2px 5px #00000010;
}
.match-panel .tag {
    background: #f0f0f0; color: #404040; border: 1px solid #e9e9e9;
}
.watch-head-controls { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.watch-head-controls .tag { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#sound {
    display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; min-height: 30px;
    color: #454545; background: #f3f3f3; border: 1px solid #e1e1e1; border-radius: 8px;
    font-size: 11px; font-weight: 650;
}
#sound .ic { width: 15px; height: 15px; }
#sound[aria-pressed="true"] { color: #fff; background: #252525; border-color: #252525; }
#soundSettings { flex: 0 0 30px; width: 30px; min-height: 30px; border-radius: 8px; }
#soundSettings .ic { width: 15px; height: 15px; }
.voice-grid { display: grid; gap: 5px; margin-bottom: 12px; }
.voice-row { display: flex; align-items: center; gap: 8px; padding: 3px 6px; border-bottom: 1px solid #ebebeb; }
.voice-row label { flex: 1; }
.voice-preview { flex: 0 0 32px; width: 32px; min-height: 32px; }
.voice-preview .ic { width: 15px; height: 15px; }
.voice-option { display: flex; align-items: center; gap: 7px; min-height: 32px; font-size: 12px; cursor: pointer; }
.voice-option input { margin: 0; flex: 0 0 auto; accent-color: #252525; width: 16px; height: 16px; }
.match-panel .live-tag {
    gap: 6px; padding: 5px 8px; border-radius: 8px; color: #202020;
    background: #fff; border: 1px solid #d6d6d6;
}
.match-panel .live-tag::before {
    width: 7px; height: 7px; background: #d12c3a; box-shadow: 0 0 0 2px #d12c3a22;
    animation: live-beacon 1.8s ease-out infinite;
}
.scoregrid { min-height: 82px; margin: 0 2px 4px; grid-template-columns: minmax(0,1fr) minmax(81px,auto) minmax(0,1fr); }
.match-panel .score {
    font-size: clamp(32px,3.65vw,53px); font-weight: 690; color: #191919; line-height: 1;
}
.score-time { margin-top: 8px; gap: 4px 6px; }
.match-panel #clock {
    padding: 3px 7px; border-radius: 6px; color: #222; background: #eaeaea;
    border: 1px solid #ddd; font-size: 12px; font-weight: 650;
}
.match-panel #period {
    color: #505050;
}
.match-panel .team-side span {
    color: #595959; font-weight: 620; letter-spacing: .08em;
}
.match-panel .team-side strong { font-weight: 640; line-height: 1.22; }
.match-panel .team-crest {
    width: clamp(32px,3.5vw,45px); height: clamp(32px,3.5vw,45px); margin-bottom: 4px;
    color: #747474; border-radius: 11px; background: #f5f5f5; border: 1px solid #eaeaea;
}
.match-panel .team-crest img {
    inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); padding: 1px;
}
.match-panel .team-crest .crest-small { inset: 0; margin: auto; max-width: 32px; max-height: 32px; }
.pitch-layout {
    display: grid; grid-template-columns: minmax(0, 404px) minmax(146px, 162px);
    justify-content: center; align-items: center; gap: 8px; margin: 5px 0 6px;
}
.pitch {
    min-width: 0; margin: 0; border: 1px solid #dedede; border-radius: 13px;
    padding: 1px; background: #eeeeee; box-shadow: inset 0 1px #fff, 0 2px 5px #0000000b;
}
.pitch > svg { width: 100%; height: auto; max-height: none; }
.pitch-bed {
    fill: #292929; stroke: #b8b8b8; stroke-width: 1;
}
.match-panel .pitch-ground {
    fill: #234d37;
}
.pitch-grass { opacity: .8; }
.match-panel .pitch-lines {
    stroke: #f4f4f4; stroke-opacity: .70; stroke-width: 1.4;
}
.match-panel .pitch-dot {
    fill: #f2f2f2;
}
.goal-net { fill: url(#pitchNet); }
.pitch-action-home {
    stroke: #fff;
}
.pitch-action-away {
    stroke: #ddd;
}
.pitch-action .action-trail { stroke-width: 3.6; }
.pitch-action-home .action-trail { stroke: url(#homeTrail); }
.pitch-action-away .action-trail { stroke: url(#awayTrail); }
.pitch-action:not([hidden]) { animation: signal-glow 1.7s ease-in-out infinite; }
.pitch-action {
    filter: drop-shadow(0 0 6px #ffffffa0);
}
.pitch-event {
    border: 1px solid #ffffff70; font-weight: 650; background: #262626; color: #fafafa;
    box-shadow: 0 3px 10px #0009; border-radius: 8px; padding: 4px 10px;
}
.pitch-event:not([hidden]) { animation: signal-glow 2.2s ease-in-out infinite; }
.pitch-flash { pointer-events: none; opacity: 0; fill: #ffba68; }
.pitch-flash[data-kind="corner"] { fill: #377cfd; }
.pitch-flash[data-kind="goal"] { fill: #ff3649; }
.pitch-signal {
    position: absolute; z-index: 1; inset: 7% 6% auto; display: grid;
    justify-items: center; pointer-events: none;
}
.pitch-signal-card {
    --event-accent: #ad1425;
    display: flex; align-items: center; justify-content: center; gap: 9px;
    width: fit-content; max-width: 100%; padding: 8px clamp(8px, 1.1vw, 15px);
    border: 1px solid #ffffff80; border-radius: 11px; color: #fff;
    background: var(--event-accent); box-shadow: 0 0 0 2px var(--event-accent), 0 6px 17px #0008;
}
.pitch-signal-card:not([data-kind="goal"]) { --event-accent: #69451e; }
.pitch-signal-card[data-kind="corner"] { --event-accent: #104bce; }
.pitch-signal-card:is([data-kind="score"],[data-kind="review"]) { --event-accent: #74262f; }
.pitch-signal-icon .ic { display: block; width: clamp(17px, 2vw, 25px); height: clamp(17px, 2vw, 25px); }
.pitch-signal-card strong { display: block; font-size: clamp(14px, 1.6vw, 24px); line-height: 1.05; }
.pitch-signal-card:is([data-kind="score"],[data-kind="review"]) strong { font-size: clamp(12px, 1.15vw, 17px); }
#pitchSignalDetail { display: block; font-size: 11px; line-height: 1.2; margin-top: 3px; overflow-wrap: anywhere; }
.pitch-stats {
    --pitch-stat-columns: 28px minmax(0,1fr) 28px;
    min-width: 0; padding: 5px; background: #f6f6f6; border: 1px solid #e6e6e6; border-radius: 10px;
}
.pitch-stat-head,.pitch-stat {
    display: grid; grid-template-columns: var(--pitch-stat-columns); column-gap: 4px; align-items: center;
}
.pitch-stat-head { padding: 3px 1px; font-size: 10px; text-align: center; color: #555; }
.pitch-stat-head > :last-child { grid-column: 3; }
.pitch-stat {
    min-height: 32px; border-radius: 6px; padding: 3px 1px; text-align: center;
    color: #272727; font-weight: 650; font-variant-numeric: tabular-nums;
}
.pitch-stat > span { overflow-wrap: anywhere; }
.pitch-stat > .counter-changed {
    background: #23262c; color: #fff; border-radius: 4px; font-weight: 800;
    text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px;
}
.pitch-stat-label {
    display: flex; align-items: center; gap: 4px; text-align: start; font-size: 10px; line-height: 1.15;
}
.pitch-stat-label .ic { flex: 0 0 12px; width: 12px; height: 12px; }
#pitchCorners { background: #ececec; }
.match-panel .match-health,.match-panel #matchHealth {
    color: #505050;
}
.match-panel #matchHealth.warning {
    color: #222;
}
.match-health { gap: 5px 6px; }
.match-health > span {
    padding: 3px 6px; border-radius: 6px; background: #f3f3f3;
}

.key-events { padding-bottom: 11px; }
.event-columns { gap: 8px; padding-bottom: 0; }
.event-column {
    padding: 0; min-width: 0; border-color: #e1e2e4; border-radius: 13px;
    overflow: hidden; background: #f7f7f8;
}
.event-goals { --header-art: url('/assets/arena/goals-night.webp'); }
.event-corners { --header-art: url('/assets/arena/corners-night.webp'); }
.goal-panel { --header-art: url('/assets/arena/reaction-night.webp'); }
.event-column h3,#monitorView .goal-panel > .panel-head {
    position: relative; isolation: isolate; overflow: hidden; background: #1c2026; color: #f8f9fc;
}
.event-column h3::before,#monitorView .goal-panel > .panel-head::before {
    content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none;
    background:
        linear-gradient(90deg,#1c2026 3%,#1c2026d6 31%,#1c202630 61%,#1012170a),
        var(--header-art) center / cover no-repeat;
}
.event-column h3 {
    min-height: 51px; padding: 7px 9px; gap: 8px; margin: 0; font-size: 14px;
}
.event-column h3 .ic,#monitorView .goal-panel .head-label > .ic {
    box-sizing: content-box; width: 19px; height: 19px; padding: 5px; color: #e3e4e6; border-radius: 8px;
    background: linear-gradient(145deg,#535557,#343638); box-shadow: inset 0 1px #ffffff25, 0 2px 7px #0004;
}
.event-rows { min-height: 58px; max-height: 132px; padding: 5px; gap: 4px; }
.event-rows .empty { color: #5f5f5f; }
.key-event { border-radius: 8px; min-height: 38px; padding: 5px 6px; background: #fdfdfd; border-color: #e6e6e6; }
.key-event strong .ic { width: 15px; height: 15px; }
button.key-event[aria-pressed=true] {
    background: #e9edf0; border-color: #c4cbd2; color: #303841;
}
.event-column .key-event strong .ic { color: #626262; }
.key-event:hover { border-color: #bebebe; }
.event-measurement { font-size: 11px; font-weight: 620; color: #515151; }

.goal-panel { overflow: hidden; }
#monitorView .goal-panel > .panel-head {
    min-height: 55px; margin-inline: -14px; padding-inline: 14px;
}
#monitorView .goal-panel > .panel-head::before {
    inset-inline: auto clamp(46px,14%,100px); width: min(64%,390px);
    background-image: linear-gradient(90deg,#1c2026 0%,#1c202654 36%,#10121714 77%,#1c2026 100%), var(--header-art);
}
.goal-panel > .panel-head .tag { color: #f2f2f2; background: #2e3239ee; border: 1px solid #b2b8c055; }
.goal-panel .selected-event-title { font-size: 13px; font-weight: 690; margin-top: 11px; }
.goal-panel .reaction-books { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; margin-top: 7px; }
.reaction-book { padding: 7px; border-color: #e3e3e3; border-radius: 11px; background: #fafafa; box-shadow: inset 0 1px white; }
.reaction-book > header { align-items: center; justify-content: start; gap: 6px; }
.reaction-line-state { min-width: 0; color: #535353; font-weight: 530; font-size: 10px; }
.reaction-metrics { grid-template-columns: repeat(auto-fit,minmax(min(100%,99px),1fr)); }
.reaction-metrics [data-observed=true] { background: linear-gradient(140deg, #f2f2f2, #eaeaea); }
.reaction-metrics .ic { width: 15px; height: 15px; flex-basis: 15px; }
.reaction-metrics dd { font-size: 12px; }
.goal-markets { margin-top: 3px; }
.goal-note { padding: 7px 0 4px; }

.book-overview {
    grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px;
}
.book-row { gap: 4px; padding: 6px; background: linear-gradient(153deg,#f8f8f8,#f0f0f0); border: 1px solid #e4e4e4; }
.book-badge {
    flex-shrink: 0; display: inline-grid; place-items: center;
    width: min(100%,108px); height: 24px; min-width: 0; position: relative;
    font-size: 12px; line-height: 1.1; font-weight: 700; color: #252525;
}
.book-badge img {
    position: absolute; width: 100%; height: 100%; inset: 0; object-fit: contain;
}
.coverage-chip .book-badge { width: min(100%,76px); height: 24px; border-radius: 5px; }
.reaction-book .book-badge { width: min(45%,79px); height: 28px; border-radius: 6px; }
.source-choice .book-badge { width: 92px; height: 34px; }
.book-row .status { justify-self: start; }

.data-table .status,.book-row .status {
    --chip-ink: #555555; --chip-fill: #ececec; --chip-dot: #8e8e8e;
    gap: 6px; border-radius: 8px; padding: 4px 6px; color: var(--chip-ink); background: var(--chip-fill);
    font-size: 10px; font-weight: 630; font-variant-numeric: tabular-nums;
}
.data-table .status-dot,.book-row .status-dot { background: var(--chip-dot); border-color: var(--chip-dot); }
.status:is([data-state=live],[data-state=enabled],[data-state=connected],[data-state=open]) { --chip-dot: #666666; --chip-ink: #474747; --chip-fill: #ececec; }
.status:is([data-state=halftime],[data-state=suspended],[data-state=reconnecting],[data-state=stale]) { --chip-dot: #7a7a7a; --chip-ink: #565656; --chip-fill: #eeeeee; }
.status:is([data-state=blocked],[data-state=disabled],[data-state=unavailable]) { --chip-dot: #666666; --chip-ink: #525252; --chip-fill: #ececec; }
.data-table [data-state=live] .status-dot { background: var(--chip-dot); border-color: var(--chip-dot); box-shadow: 0 0 0 2px #66666632; }
.book-overview .book-row .status[data-state=connected] .status-dot {
    background: #188451; border-color: #188451; box-shadow: 0 0 0 2px #18845129;
    animation: online-beacon 1.8s ease-out infinite;
}
.match-picker-content .panel-actions .tag { font-variant-numeric: tabular-nums; }

dialog.match-picker {
    width: min(670px, calc(100vw - var(--sidebar-width) - var(--shell-gutter) * 2));
    overflow: hidden; margin: 72px auto auto calc(var(--sidebar-width) + var(--shell-gutter));
    color: var(--text); border: 1px solid #c9c9c9; border-radius: 18px; background: #fbfbfb;
    box-shadow: 0 16px 66px #28282861, inset 0 1px white;
}
dialog.match-picker[open] { animation: drawer-in .25s var(--ease) both; }
dialog.match-picker::backdrop { background: #1f1f1f66; backdrop-filter: blur(3px); }
.match-picker-content { padding: 0 13px 11px; }
.match-picker-content .panel-head { padding-inline: 0; }
.match-picker-content .catalog-tools { justify-content: start; }
.match-picker-content .filter-options { flex-wrap: wrap; }
.match-picker-content .catalog-scroll { max-height: min(53svh, 550px); }
.match-picker-content .match-table th:nth-child(3) { width: 108px; }
.match-picker-content .match-table tbody tr:hover td { background: #f2f2f2; }
.match-picker-content .match-table tbody tr.is-selected td { background: #ebebeb; }
.match-picker-content .select-field,.match-picker-content .search-field { border-color: #dfdfdf; }
.match-picker-content .segments { background: #eeeeee; }

.supplemental > summary::after { content: '⌄'; color: #636363; font-size: 19px; }
.supplemental[open] > summary::after { content: '⌃'; }
.supplemental > summary:hover { color: #4c4c4c; }
.reaction-analytics { margin-top: 11px; }
.access-form { background: #fcfcfc; border-color: #dedede; box-shadow: 0 18px 53px #24242428, inset 0 1px #ffffff; }
.auth-mark { border-radius: 21px; padding: 11px; background: linear-gradient(146deg, #ffffff, #eaeaea);
    box-shadow: 0 4px 17px #33333320, inset 0 1px #ffffff; }
.auth-submit { background: #353535; border-color: #353535; }
.auth-submit:enabled:hover { background: #4e4e4e; border-color: #4e4e4e; }
.admin-tabs .tab[aria-pressed=true],.segments button[aria-pressed=true] { background-color: #ececec; border-color: #cdcdcd; color: #454545; }

@keyframes signal-glow { 50% { opacity: .77; } }
@keyframes live-beacon {
    0%, 80%, 100% { opacity: 1; box-shadow: 0 0 0 2px #d12c3a22; }
    42% { opacity: .55; box-shadow: 0 0 0 5px #d12c3a0c; }
}
@keyframes online-beacon {
    0%, 75%, 100% { opacity: 1; box-shadow: 0 0 0 2px #18845129; }
    42% { opacity: .68; box-shadow: 0 0 0 5px #18845114; }
}
@keyframes logo-glint {
    to { stroke-dashoffset: -100; }
}
@keyframes brand-name-glint {
    to { transform: translateX(1570px); }
}
@keyframes frame-glint {
    0% { opacity: 0; background-position: 100% 0; }
    22%, 75% { opacity: 1; }
    100% { opacity: 0; background-position: 0 0; }
}
@keyframes drawer-in { from { opacity: .24; transform: translateY(-9px) scale(.985); } to { opacity: 1; transform: none; } }

@media (max-width: 1130px) {
    :root { --sidebar-width: 172px; }
    .sidebar { padding-inline: 10px; }
    .sidebar-mark { width: 86px; height: 86px; }
    .sidebar-wordmark { width: min(146px,100%); }
    .watch-grid { gap: 10px; grid-template-columns: minmax(0, 1.2fr) minmax(315px,1fr); }
    #monitorView .goal-panel > .panel-head { margin-inline: -10px; padding-inline: 10px; }
    .book-overview { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 935px) {
    .watch-grid { grid-template-columns: minmax(0,1fr); grid-template-areas: 'pitch' 'other' 'support' 'events'; grid-template-rows: auto; }
    .watch-grid > .watch-main { display: contents; }
    .watch-grid > .watch-side { display: grid; }
    .watch-main > .match-panel { grid-area: pitch; }
    .watch-main > #otherEvents { grid-area: other; }
    .watch-main > .books-panel { grid-area: support; }
    .book-overview { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 935px), (pointer: coarse) {
    #loginForm input,.match-picker input,.match-picker select { font-size: 16px; }
}
@media (max-width: 850px) {
    :root { --sidebar-width: 62px; }
    .sidebar { padding: 13px 7px; }
    .sidebar-mark { width: 40px; height: 40px; }
    .sidebar-wordmark { display: none; }
    .rail-nav { margin-top: 19px; }
    .rail-footer { grid-template-columns: 1fr; }
    .rail-link { padding: 7px; }
    .account-mark { width: 38px; height: 38px; flex-basis: 38px; }
}
@media (max-width: 580px) {
    :root { --sidebar-width: 47px; --shell-gutter: 9px; }
    .sidebar { padding-inline: 5px; }
    .sidebar-mark { width: 33px; height: 33px; }
    .rail-link { min-height: 40px; }
    .account-mark { width: 35px; height: 35px; flex-basis: 35px; }
    .content { padding-top: 11px; padding-bottom: 25px; }
    #monitorView > .pagehead { flex-wrap: nowrap; align-items: center; gap: 6px; }
    .monitor-tools { max-width: 100%; flex-shrink: 0; }
    .monitor-tools .quick-matches,.picker-label-wide { display: none; }
    .picker-label-short { display: inline; }
    .match-picker-button,.match-picker-button:enabled:hover { min-height: 37px; padding: 5px 8px; }
    .match-panel { display: grid; grid-template-columns: minmax(0,1fr); }
    .match-panel > .pitch-layout { grid-row: 2; grid-template-columns: minmax(0, 1fr); gap: 5px; }
    .pitch-stats {
        --pitch-stat-columns: 22px minmax(0,1fr) 22px;
        display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 3px;
    }
    .pitch-stat-head { display: none; }
    .pitch-stat { min-height: 29px; column-gap: 3px; }
    .pitch-stat .ic { display: none; }
    .watch-head-controls .tag { max-width: min(20vw, 90px); }
    #sound { padding-inline: 6px; }
    .match-panel .scoregrid { min-height: 73px; grid-template-columns: minmax(0,1fr) minmax(66px,auto) minmax(0,1fr); }
    #monitorView .panel-head { min-height: 43px; }
    #monitorView .head-label { gap: 6px; }
    #monitorView .head-label > .ic { width: 16px; height: 16px; padding: 5px; border-radius: 7px; }
    #monitorView .panel h2 { font-size: 14px; }
    .match-panel .team-side strong { font-size: 12px; }
    .book-overview { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .key-events { padding: 6px; }
    #monitorView .key-events > .panel-head { display: none; }
    .event-column h3 { min-height: 43px; padding: 4px 6px; gap: 5px; }
    .event-column h3 .ic,#monitorView .goal-panel .head-label > .ic { width: 16px; height: 16px; }
    #monitorView .goal-panel > .panel-head::before {
        inset-inline-end: clamp(86px, 26vw, 115px); width: 57%;
    }
    .event-rows { max-height: 91px; }
    .goal-panel .reaction-books { gap: 5px; }
    .reaction-book > header { flex-wrap: wrap; }
    .reaction-book .book-badge { width: 78px; max-width: 100%; }
    dialog.match-picker { width: calc(100vw - 16px); margin: 62px auto auto; }
    .match-picker-content { padding-inline: 9px; }
    .match-picker-content .panel-actions .tag { font-size: 9px; padding-inline: 4px; }
    .match-picker-content .panel-actions { gap: 3px; }
    .match-picker-content .match-table th:nth-child(3) { width: 72px; }
    .match-picker-content .match-table .status { white-space: normal; }
}
@media (max-width: 480px) {
    .pitch-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

.match-book-logos { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px;
    align-items: center; justify-items: center; margin-top: 8px; padding: 2px 3px; }
.match-book-mark,.match-book-mark:enabled:hover { display: grid; place-items: center; padding: 5px 4px;
    min-height: 34px; width: min(100%,132px); background: transparent; border: 0; }
.match-book-mark:enabled:hover .book-badge { opacity: .7; }
.match-book-mark .book-badge { width: min(100%,108px); height: 23px; }
.match-panel .pitch-event[data-team] { background: #262626; color: #fafafa; }
.match-panel .schedule-icon { color: #595959; }
.compact-coverage { grid-template-columns: repeat(3,minmax(73px,1fr)); }
.coverage-chip .book-badge { width: min(100%,81px); height: 19px; }
.reaction-book .book-badge { width: min(48%,92px); height: 23px; }
.reaction-book .reaction-line-state { line-height: 1.25; }
.access { background: radial-gradient(ellipse at 50% 28%,white,#ebebeb); }
@media (max-width: 720px) { .compact-coverage { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 580px) {
    .match-book-logos { margin-top: 5px; }
    .match-book-mark .book-badge { height: 20px; }
    .reaction-book .book-badge { width: min(100%,86px); height: 21px; }
}
@media (prefers-reduced-motion: reduce) {
    .sidebar-mark,.auth-emblem { transition: none; }
    .top-brand:is(:hover,:focus-visible) .sidebar-mark,.auth-brand:hover .auth-emblem { transform: none; }
    .brand-glint,.brand-word-glint { display: none; animation: none; }
    .match-picker-button:is(:hover,:focus-visible)::before,.match-panel:is(:hover,:focus-within)::after,
    .book-overview .book-row .status[data-state=connected] .status-dot,.match-panel .live-tag::before { animation: none; }
}
