:root {
    color-scheme: light;
    --bg: #f7f7f7;
    --surface: #fff;
    --soft: #f5f5f5;
    --border: #e6e6e6;
    --hover: #f2f2f2;
    --text: #171717;
    --secondary: #555;
    --muted: #6b6b6b;
    --signal: #5f5f5f;
    --signal-soft: #f2f2f2;
    --sidebar-width: 190px;
    --radius: 17px;
    --ease: cubic-bezier(.2,.7,.3,1);
    --font: "Segoe UI Variable Text","Segoe UI",system-ui,sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 14px/1.43 var(--font); }
h1,h2,h3,p { margin: 0; }
svg { display: block; }
a { color: inherit; }
::selection { color: #fff; background: #222; }
:focus-visible { outline: 2px solid #4b4b4b; outline-offset: 2px; }
.ic { flex: 0 0 auto; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.number, time, .score, .match-health, .data-table .numeric, .summary-chip strong { font-variant-numeric: tabular-nums; }
.numeric { white-space: nowrap; }

button,input,select { color: inherit; font: inherit; }
button,.quiet-link { border: 1px solid var(--border); background: var(--surface); border-radius: 9px; padding: 7px 12px; min-height: 36px; cursor: pointer;
    transition: border-color .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease); }
button:enabled:hover,.quiet-link:hover { background: var(--hover); border-color: #d1d1d1; }
button:enabled:active { transform: translateY(1px); }
button:disabled { opacity: .5; cursor: default; }
button[aria-pressed=true]:not(.pick) { background: #eaeaea; border-color: #dedede; color: #1b1b1b; }
.primary { color: #fff; background: #202020; border-color: #202020; font-weight: 590; }
.primary:enabled:hover { color: #fff; background: #373737; border-color: #373737; box-shadow: 0 3px 10px #0002; }
.compact,.panel-actions,.head-label { display: inline-flex; align-items: center; gap: 7px; }
.panel-actions { flex-shrink: 0; }
.icon-only,.quiet-link { display: inline-grid; place-items: center; width: 34px; height: 34px; min-height: 34px; min-width: 34px; padding: 0; color: #505050; text-decoration: none; }
.icon-only .ic,.quiet-link .ic { width: 16px; height: 16px; }
input, select { width: 100%; min-width: 0; border: 1px solid #dcdcdc; border-radius: 10px; background: #fff; padding: 9px 10px; }
input::placeholder { color: #737373; opacity: 1; }
input:focus,select:focus { border-color: #919191; }

.boot,.access { min-height: 100svh; display: grid; place-items: center; }
.boot img { animation: appear .25s var(--ease) both; }
.access { padding: 28px 16px; background: #f5f5f5; }
.access-form { width: min(100%, 432px); padding: 26px 32px 24px; background: #fff; border: 1px solid #e4e4e4; border-radius: 23px;
    box-shadow: 0 4px 10px #00000006, 0 18px 55px #23232312; animation: appear .28s var(--ease) both; }
.auth-brand { display: grid; justify-items: center; gap: 2px; margin: 0 0 15px; }
.auth-mark { display: grid; place-items: center; width: 80px; height: 80px; margin-bottom: 3px; }
.auth-mark svg { width: 100%; height: auto; }
.auth-logo { width: 134px; height: 30px; }
.auth-body h1 { text-align: center; font-size: 27px; font-weight: 600; letter-spacing: -.036em; line-height: 1.16; }
.auth-body > p { margin: 7px 0 21px; color: var(--muted); text-align: center; font-size: 13px; text-wrap: balance; }
.auth-body form,.dialog-body { display: grid; gap: 14px; }
.auth-body label,.dialog-body label { display: grid; gap: 6px; font-size: 13px; font-weight: 550; }
.auth-body input { min-height: 44px; padding-inline: 12px; font-weight: 400; }
.password-field { position: relative; }
.password-field input { padding-right: 45px; }
.password-toggle { position: absolute; right: 6px; top: 5px; border-color: transparent; }
.auth-submit { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 43px; margin-top: 2px; padding-inline: 13px; }
.auth-submit span { grid-column: 2; }
.auth-submit .ic { justify-self: end; }
.auth-footer { display: flex; justify-content: center; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; margin-top: 22px; }
.auth-footer .ic { width: 14px; height: 14px; }
.form-error { padding: 9px 11px; color: #222; background: #f1f1f1; border: 1px solid #dedede; border-radius: 9px; font-size: 13px; }

.workspace { min-height: 100svh; display: grid; grid-template-columns: var(--sidebar-width) minmax(0,1fr); }
.shell { min-width: 0; }
.sidebar { position: sticky; top: 0; height: 100svh; align-self: start; display: flex;
    flex-direction: column; padding: 18px 12px 12px; overflow: auto; background: #ededed; }
.top-brand { display: flex; align-items: center; align-self: start; gap: 5px; padding: 0 5px; width: fit-content; min-height: 36px; border-radius: 8px; }
.sidebar-mark { width: 34px; height: 34px; }
.sidebar-wordmark { width: 100px; height: 25px; }
.rail-nav,.account { display: flex; align-items: center; min-width: 0; }
.rail-nav { margin-top: 23px; align-items: stretch; flex-direction: column; gap: 6px; }
.rail-link { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 7px 10px; border-radius: 9px; text-decoration: none;
    white-space: nowrap; color: #555; font-size: 13px; transition: background .15s var(--ease), color .15s var(--ease); }
.rail-link:hover,.rail-link[aria-current=page] { color: #171717; background: #f7f7f7; }
.rail-link[aria-current=page] { font-weight: 600; background: #fff; box-shadow: 0 1px 3px #00000011; }
.rail-link[aria-current=page] .ic { color: var(--signal); }
.rail-link .ic { width: 16px; height: 16px; }
.rail-footer { display: grid; gap: 3px; margin-top: auto; padding-top: 16px; }
.account { gap: 8px; min-height: 42px; padding: 4px 6px; font-size: 12px; font-weight: 580; color: #3a3a3a; }
#identity { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-mark { display: grid; flex: 0 0 29px; height: 29px; place-items: center; border-radius: 9px; background: #fff; }
.account-mark .ic { width: 15px; height: 15px; }
.rail-footer .sign-out { justify-content: start; background: transparent; border-color: transparent; }
.rail-footer .sign-out:hover { background: #fff; }
.status-dot { display: inline-block; flex: 0 0 7px; width: 7px; height: 7px; border: 1px solid #767676; border-radius: 50%; }
[data-state=connected] .status-dot,[data-state=live] .status-dot,[data-state=enabled] .status-dot,
[data-state=open] .status-dot,[data-state=reopened] .status-dot { background: #242424; border-color: #242424; }
.match-table [data-state=live] .status-dot {
    background: var(--signal); border-color: var(--signal);
}
[data-state=blocked] .status-dot,[data-state=disabled] .status-dot,[data-state=removed] .status-dot,
[data-state=closed] .status-dot,[data-state=unavailable] .status-dot { border-radius: 2px; background: #787878; border-color: #787878; }
[data-state=suspended] .status-dot,[data-state=halftime] .status-dot,[data-state=relisted] .status-dot { border-radius: 1px; transform: rotate(45deg); }
[data-state=reconnecting] .status-dot,[data-state=stale] .status-dot { border-style: dashed; animation: pulse 1s ease-in-out infinite alternate; }

.content { max-width: 1512px; margin: auto; padding: 22px 26px 42px; }
.view:not([hidden]),.admin-section:not([hidden]) { animation: appear .17s var(--ease) both; }
.pagehead { display: flex; align-items: center; justify-content: space-between; min-width: 0; min-height: 44px; gap: 12px; margin-bottom: 15px; }
.page-title { display: flex; align-items: center; flex-wrap: wrap; min-width: 0; gap: 8px 12px; }
.pagehead h1 { color: #1d1d1d; font-size: clamp(24px,2.35vw,32px); font-weight: 600; letter-spacing: -.041em; line-height: 1.15; }
.monitor-banner {
    position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
    min-height: 154px; padding: 17px clamp(16px,2vw,29px); margin-bottom: 15px;
    background: #f0f0f0; border: 1px solid #dddddd; border-radius: var(--radius);
    box-shadow: 0 2px 4px #00000004;
}
.monitor-banner::before {
    content: ""; position: absolute; z-index: -2; inset: 0; background: url("/assets/arena-banner.webp") center right / cover no-repeat;
}
.monitor-banner::after {
    content: ""; position: absolute; z-index: -1; inset: 0;
    background: linear-gradient(90deg,#f4f4f4 4%,#f4f4f4f5 35%,#f4f4f442 67%,transparent 83%);
}
.banner-copy { display: grid; justify-items: start; gap: 7px; width: min(100%,440px); }
.banner-copy h2 { font-size: clamp(22px,2.4vw,33px); line-height: 1.08; font-weight: 640; letter-spacing: -.044em; text-wrap: balance; }
.banner-copy p { color: #515151; font-size: 13px; }
.banner-link {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 3px; padding: 5px 8px; color: #383838;
    border: 1px solid #d4d4d4; background: #fafafa; border-radius: 7px; text-decoration: none; font-size: 12px; font-weight: 570;
}
.banner-link .ic { width: 13px; height: 13px; }
.banner-link:hover { border-color: #adadad; }
.sport-tag { display: inline-flex; align-items: center; gap: 5px; color: #555; background: #f0f0f0; padding: 4px 8px; border-radius: 8px; white-space: nowrap; font-size: 11px; }
.sport-tag .ic { width: 13px; height: 13px; }
.quick-matches { display: flex; gap: 6px; flex-shrink: 1; min-width: 0; max-width: 58%; padding: 3px; overflow: auto; scrollbar-width: thin; }
.quick-match { max-width: min(320px,40vw); flex: 0 0 auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.watch-grid { display: grid; grid-template-columns: minmax(0,1.9fr) minmax(320px,1fr); align-items: start; gap: 15px; }
.watch-main,.watch-side { display: grid; align-content: start; gap: 14px; min-width: 0; }
.panel { min-width: 0; padding: 0 14px 9px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
    box-shadow: 0 1px 2px #00000004; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 54px; }
.head-label { min-width: 0; }
.head-label .ic { color: #575757; }
.panel h2,dialog h2 { font-size: 15px; font-weight: 620; letter-spacing: -.018em; }
.tag { flex: 0 0 auto; border-radius: 7px; background: #f2f2f2; color: #4d4d4d; padding: 4px 7px; font-size: 11px; line-height: 1.25; }
.watch-head .tag { max-width: 49%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-tag {
    display: inline-flex; align-items: center; gap: 4px; border-radius: 6px; padding: 3px 6px;
    color: var(--signal); background: var(--signal-soft); font-size: 9px; font-weight: 700; letter-spacing: .055em; white-space: nowrap;
}
.live-tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.match-panel { padding-bottom: 12px; }
.scoregrid { display: grid; grid-template-columns: minmax(0,1fr) minmax(65px,auto) minmax(0,1fr); gap: 7px; align-items: center; text-align: center; min-height: 78px; }
.team-side { display: grid; gap: 4px; justify-items: center; min-width: 0; }
.team-side span { color: #6b6b6b; font-size: 9px; letter-spacing: .03em; }
.team-side strong { font-size: clamp(12px,1.15vw,16px); font-weight: 580; overflow-wrap: anywhere; line-height: 1.22; }
.score { font-size: clamp(26px,2.75vw,43px); line-height: 1; font-weight: 620; white-space: nowrap; letter-spacing: -.067em; }
.score-time { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 3px 6px; margin-top: 5px; }
#period { color: #626262; font-size: 11px; }
#clock { color: #2c2c2c; font-size: 11px; font-variant-numeric: tabular-nums; }
.pitch { position: relative; margin: 7px 0 8px; }
.pitch > svg { width: 100%; height: auto; max-height: 182px; margin: auto; }
.pitch-ground { fill: #f4f4f4; }
.pitch-lines { fill: none; stroke: #acacac; stroke-width: 1.2; }
.pitch-dot { fill: #999; stroke: none; }
.pitch-action { fill: none; stroke: var(--signal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pitch-event { position: absolute; bottom: 10%; left: 50%; transform: translateX(-50%); padding: 4px 8px; width: max-content; max-width: 85%; text-align: center;
    color: #fff; background: #252525; border-radius: 8px; font-size: 11px; }
.pitch-event[data-team=HOME],.pitch-event[data-team=AWAY] { background: var(--signal); }
.match-health { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 10px; min-height: 27px; padding: 3px 0; color: #626262; font-size: 11px; }
#matchHealth { color: #303030; font-weight: 550; }
#matchHealth.warning { color: #707070; }
#delivery { margin-left: auto; }
.goal-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 10px; }
.goal-tools .select-field { padding-right: 4px; font-size: 12px; }
.goal-leader { font-size: 12px; font-weight: 650; }
.goal-table { margin-top: 5px; }
.goal-table td { vertical-align: top; font-size: 12px; }
.goal-table th,.goal-table td { padding-inline: clamp(4px, .7vw, 9px); }
.goal-table td:first-child { width: 28%; }
.goal-table td:nth-child(2) { width: 31%; }
.goal-book { display: grid; gap: 2px; font-weight: 640; }
.goal-book small { font-weight: 450; }
.goal-number { font-variant-numeric: tabular-nums; font-weight: 620; }
.goal-markets summary { cursor: pointer; }
.goal-markets ul { display: grid; gap: 7px; max-height: 240px; overflow: auto; padding: 5px 0; margin: 3px 0 0; list-style: none; }
.goal-markets li { display: grid; gap: 2px; overflow-wrap: anywhere; }
.goal-note { margin: 8px 0 3px; }
.reaction-picker { min-width: 0; max-width: 100%; }
.reaction-picker select { min-width: 0; max-width: 100%; text-overflow: ellipsis; }
.reaction-books { display: grid; gap: 6px; margin-top: 10px; }
.reaction-book { border: 1px solid var(--border, #e3e3e3); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.reaction-book > header { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.reaction-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin: 7px 0; }
.reaction-metrics div { min-width: 0; padding: 6px 7px; border-radius: 7px; background: #f6f6f6; }
.reaction-metrics dt,.reaction-metrics dd { display: flex; align-items: start; gap: 4px; font-size: 11px; color: #565656; }
.reaction-metrics .ic { width: 12px; height: 12px; flex: 0 0 12px; }
.reaction-metrics dd { margin: 3px 0 0; font-variant-numeric: tabular-nums; }
.reaction-metrics [data-observed=true] { background: #f3f3f3; }
.reaction-metrics [data-observed=true] dd { color: #3e3e3e; font-weight: 650; }
.reaction-analytics { margin-top: 14px; scroll-margin-top: 16px; }
.watch-side .reaction-analytics { margin-top: 0; }
.reaction-analytics-scroll { max-height: 460px; }
.reaction-analytics-scroll table { min-width: 820px; }
.reaction-analytics-scroll th { font-size: 11px; }
.book-stats-table td:not(:first-child) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.catalog-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 7px; padding: 1px 0 10px; }
.segments,.filter-options,.select-field,.search-field { display: inline-flex; align-items: center; min-width: 0; gap: 5px; }
.segments { padding: 3px; background: #f4f4f4; border-radius: 10px; }
.segments button { min-height: 29px; padding: 3px 7px; border: 1px solid transparent; background: transparent; border-radius: 7px; color: #555; white-space: nowrap; font-size: 12px; }
.segments button[aria-pressed=true] { background: #fff; border-color: #e5e5e5; }
.search-field,.select-field { min-height: 34px; padding-left: 8px; border: 1px solid #dedede; border-radius: 9px; background: white; color: #616161; }
.search-field:focus-within,.select-field:focus-within { border-color: #909090; }
.search-field input,.select-field select { border: 0; background: white; padding: 5px 6px; border-radius: 8px; font-size: 12px; }
.search-field input { width: clamp(105px,13vw,176px); }
.select-field select { width: auto; }
.search-field .ic,.select-field .ic { width: 14px; height: 14px; }
.table-scroll { overflow: auto; scrollbar-width: thin; scrollbar-color: #c5c5c5 transparent; }
.catalog-scroll { max-height: 470px; min-height: 90px; }
.coverage-strip { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; margin-top: 5px; }
.coverage-chip { display: grid; gap: 2px; min-width: 0; padding: 5px 8px; border: 1px solid #e7e7e7;
    border-radius: 8px; background: #f8f8f8; text-align: left; font-size: 11px; }
.coverage-chip small { color: #666; font-size: 10px; line-height: 1.3; }
.coverage-chip[data-linked=true] { background: #fff; }
.coverage-chip[data-linked=true] small { color: var(--signal); }
button.coverage-chip:hover { border-color: #aaa; }
#catalogView .table-scroll { position: relative; }
.combined-table { min-width: 690px; }
.combined-table td { vertical-align: top; }
.combined-name { display: grid; gap: 3px; min-width: 155px; }
.combined-name .row-button { text-align: left; }
.compact-coverage { margin: 0; width: min(100%, 500px); grid-template-columns: repeat(4,minmax(73px,1fr)); }
.catalog-paging { display: flex; justify-content: end; align-items: center; gap: 8px; margin-top: 8px; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0 1px; text-align: left; font-size: 13px; }
.data-table th { color: #5e5e5e; background: #fff; padding: 8px 9px; font-size: 11px; font-weight: 590; white-space: nowrap; }
.data-table th:first-child,.data-table tbody td:first-child { border-radius: 8px 0 0 8px; }
.data-table th:last-child,.data-table tbody td:last-child { border-radius: 0 8px 8px 0; }
.data-table td { padding: 7px 9px; vertical-align: middle; }
.catalog-scroll th,.line-scroll th { position: sticky; top: 0; z-index: 1; }
.data-table tbody tr:hover td { background: #f6f6f6; }
.match-table { table-layout: fixed; }
.match-table td { padding-block: 4px; }
.match-table tr.is-selected td { background: #ededed; }
.match-table tr.is-selected:has([data-state=live]) td { background: var(--signal-soft); }
.match-table th:nth-child(2) { width: 59px; }
.match-table th:nth-child(3) { width: 100px; }
.match-table th:last-child { width: 68px; }
.match-table td:last-child { text-align: right; }
.match-table .pick { grid-template-columns: minmax(0,1fr); }
.pick,.row-button { display: grid; gap: 1px; width: 100%; min-height: 31px; justify-items: start; border: 0; padding: 3px 1px; border-radius: 5px;
    background: transparent; text-align: left; font-weight: 570; }
.pick:enabled:hover,.row-button:enabled:hover { background: transparent; color: #000; }
.pick:disabled { opacity: 1; color: #505050; }
.match-name,.meta { max-width: 100%; overflow-wrap: anywhere; }
.meta,.row-meta { color: #686868; font-size: 11px; font-weight: 400; }
.actions { display: flex; justify-content: end; align-items: center; gap: 4px; }
.actions .icon-only { width: 26px; height: 26px; min-width: 26px; min-height: 26px; border-radius: 7px; }
.actions .icon-only .ic { width: 14px; height: 14px; }
.status { display: inline-flex; align-items: center; gap: 6px; color: #595959; white-space: nowrap; font-size: 11px; }
.status[data-state=connected],.status[data-state=live] { color: #242424; }
.status .status-dot { width: 6px; height: 6px; flex-basis: 6px; }
.empty { min-height: 55px; padding: 13px 9px; font-size: 13px; color: #626262; }
.book-overview { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; min-height: 43px; }
.book-row { display: grid; align-items: start; grid-template-columns: minmax(0,1fr); gap: 3px; padding: 8px; background: #f6f6f6; border-radius: 10px; }
.book-row .status { white-space: normal; }
.book-title { font-weight: 590; }
.book-markets { color: #686868; font-size: 11px; font-variant-numeric: tabular-nums; }
.incidents,.stats { max-height: 227px; overflow: auto; scrollbar-width: thin; }
.incident { display: grid; grid-template-columns: 25px minmax(0,1fr) auto; gap: 7px; align-items: center; min-height: 38px; padding: 4px 3px; border-radius: 8px; }
.incident:hover,.stat:hover { background: var(--soft); }
.incident[data-new] { animation: appear .23s var(--ease); }
.incident-glyph { display: grid; width: 24px; height: 24px; place-items: center; background: #f0f0f0; border-radius: 7px; color: #505050; }
.incident-glyph .ic { width: 13px; height: 13px; }
.incident.important .incident-glyph { color: var(--signal); background: var(--signal-soft); }
.incident strong { display: block; font-size: 12px; font-weight: 580; }
.incident small,.incident time { color: #656565; font-size: 11px; }
.stat { display: grid; grid-template-columns: minmax(28px,1fr) minmax(85px,2.7fr) minmax(28px,1fr); align-items: center; gap: 4px;
    min-height: 27px; padding: 3px 5px; text-align: center; font-size: 12px; border-radius: 6px; }
.stat span:nth-child(2) { color: #626262; }
.stat span:first-child,.stat span:last-child { font-variant-numeric: tabular-nums; }

.source-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-bottom: 14px; }
.source-choice { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 5px; min-height: 51px; border-radius: 12px; text-align: left; }
.source-choice[aria-pressed=true] { background: #ececec; border-color: #bdbdbd; }
.source-choice strong { font-weight: 600; }
.line-scroll { max-height: min(65svh,720px); }
.line-scroll .data-table { min-width: 545px; }
.line-scroll .row-button { min-width: 145px; }
.fixture-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 5px 13px 11px; }
.fixture-summary strong { flex: 1 1 180px; }
.fixture-details { padding: 0 10px 9px; }
.fixture-details .table-scroll { max-height: 60svh; }
.fixture-details .data-table { min-width: 510px; }
.fixture-details .data-table td:nth-child(3) { white-space: nowrap; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 13px; }
.admin-tabs .tab { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.admin-tabs .ic { width: 15px; height: 15px; }
.summary-strip { display: flex; align-items: center; flex-wrap: wrap; min-height: 38px; gap: 6px; padding: 0 0 8px; }
.summary-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; color: #535353; background: #f3f3f3; border-radius: 7px; font-size: 11px; }
.summary-chip strong { color: #242424; font-weight: 620; }
.users-table { min-width: 605px; }
.user-actions { display: flex; align-items: center; gap: 5px; }
.user-actions input { width: 57px; min-height: 30px; padding: 4px 6px; }
.user-actions button { min-height: 30px; padding: 4px 8px; font-size: 12px; }
.user-name { font-weight: 585; overflow-wrap: anywhere; }
.admin-section .table-scroll { max-height: 64svh; }
.connections-table { min-width: 535px; }
.connection-note { color: #585858; overflow-wrap: anywhere; }
.diagnostics h3 { font-size: 13px; font-weight: 600; margin: 11px 0 6px; }
.matching-groups { max-height: 59svh; overflow: auto; scrollbar-width: thin; }
.matching-item { border-radius: 9px; margin-bottom: 2px; }
.matching-item summary { display: flex; align-items: center; gap: 6px; min-height: 42px; padding: 7px 8px; border-radius: 9px; cursor: pointer; list-style: none; }
.matching-item summary::-webkit-details-marker { display: none; }
.matching-item summary:hover,.matching-item[open] { background: #f5f5f5; }
.matching-item summary .ic { width: 14px; height: 14px; color: #606060; transition: transform .15s var(--ease); }
.matching-item[open] summary .ic { transform: rotate(180deg); }
.match-summary { min-width: 0; display: grid; gap: 1px; margin-right: auto; }
.match-title { font-weight: 570; overflow-wrap: anywhere; }
.matching-detail { padding: 4px 8px 8px; }
.matching-detail .data-table { min-width: 490px; }
.match-proof { display: grid; gap: 3px; padding: 8px 0 3px; color: #535353; font-size: 12px; }
.attribution { padding: 9px 0 2px; color: #626262; font-size: 11px; }
.attribution a { text-underline-offset: 2px; }

dialog { padding: 0; width: min(415px,calc(100vw - 24px)); max-height: 88svh; color: #171717; border: 1px solid #ddd; border-radius: 18px; background: #fff; box-shadow: 0 12px 44px #0002; }
dialog[open] { animation: appear .18s var(--ease); }
dialog::backdrop { background: #0005; }
dialog.fixture-dialog { width: min(690px,calc(100vw - 24px)); }
dialog .panel-head { padding-inline: 14px; }
.dialog-body { padding: 2px 14px 14px; }
#issuedCredentials {
    resize: vertical; width: 100%; padding: 9px 11px; border: 1px solid #dedede;
    border-radius: 9px; background: #f7f7f7; color: #171717; font: inherit; font-size: 16px;
}
.toast { position: fixed; z-index: 40; bottom: 16px; right: 16px; padding: 9px 13px; max-width: min(410px, calc(100vw - 32px)); border: 1px solid #dedede;
    border-radius: 11px; background: #fff; box-shadow: 0 3px 22px #0002; animation: appear .18s var(--ease); }
.skeleton { width: min(55%,220px); height: 10px; margin: 9px; background: #e9e9e9; border-radius: 5px; animation: pulse .8s ease-in-out infinite alternate; }
@keyframes appear { from { opacity: .42; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { to { opacity: .48; } }

@media (max-width: 1130px) {
    :root { --sidebar-width: 161px; }
    .content { padding-inline: 18px; }
    .watch-grid { grid-template-columns: minmax(0,1.65fr) minmax(285px,1fr); gap: 10px; }
    .watch-main,.watch-side { gap: 10px; }
    .panel { padding-inline: 10px; }
}
@media (max-width: 850px) {
    :root { --sidebar-width: 60px; }
    .sidebar { padding: 12px 7px; }
    .top-brand { justify-content: center; padding: 0; width: 100%; }
    .sidebar-wordmark,.rail-link span,#identity { display: none; }
    .account,.rail-footer .sign-out { justify-content: center; padding-inline: 0; }
    .rail-link { justify-content: center; padding: 7px; }
}
@media (max-width: 720px) {
    :root { --sidebar-width: 47px; }
    .sidebar { padding-inline: 5px; }
    .sidebar-mark { width: 30px; height: 30px; }
    .content { padding: 14px 11px 24px; }
    .pagehead { align-items: start; flex-wrap: wrap; min-height: 0; gap: 5px; margin-bottom: 11px; }
    .monitor-banner { min-height: 136px; padding: 13px 12px; margin-bottom: 10px; }
    .monitor-banner::before { background-position: right center; }
    .monitor-banner::after { background: linear-gradient(90deg,#f4f4f4 0%,#f4f4f4ed 45%,#f4f4f46e 100%); }
    .banner-copy { gap: 5px; }
    .banner-copy h2 { font-size: 20px; max-width: 210px; }
    .banner-copy p { font-size: 12px; max-width: 225px; }
    .quick-matches { max-width: 100%; }
    .quick-match { max-width: 82vw; }
    .watch-grid { grid-template-columns: minmax(0,1fr); }
    .watch-main,.watch-side { display: contents; }
    .match-panel { grid-row: 1; }
    .catalog { grid-row: 2; }
    .goal-panel { grid-row: 3; }
    .combined-table { display: block; min-width: 0; }
    .combined-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .combined-table tbody { display: grid; gap: 6px; }
    .combined-table tbody tr { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1px 3px;
        padding: 5px; background: #f8f8f8; border-radius: 9px; }
    .combined-table td { display: block; min-width: 0; padding: 3px 4px; }
    .combined-table td:nth-child(2) { grid-column: 2; grid-row: 1; text-align: right; white-space: nowrap; font-weight: 620; }
    .combined-table td:nth-child(3) { grid-column: 1; grid-row: 2; }
    .combined-table td:nth-child(4) { grid-column: 1 / -1; grid-row: 3; }
    .combined-table td:last-child { grid-column: 2; grid-row: 2; }
    .combined-name { min-width: 0; }
    .compact-coverage { grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; }
    .scoregrid { min-height: 67px; }
    .pitch > svg { max-height: 146px; }
    .source-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 440px) {
    .access-form { padding-inline: 22px; }
    .page-title { gap: 5px; }
    .pagehead h1 { font-size: 24px; }
    .filter-options { width: 100%; }
    .filter-options .search-field { flex: 1; }
    .search-field input { width: 100%; }
    .segments button { padding-inline: 5px; font-size: 11px; }
    .match-table th,.match-table td { padding-inline: 5px; }
    .match-table th:nth-child(2) { width: 45px; }
    .match-table th:nth-child(3) { width: 87px; }
    .match-table th:last-child { width: 28px; }
    .match-table .status { white-space: normal; }
    .actions .icon-only { min-width: 22px; width: 22px; height: 25px; }
    .actions { gap: 2px; }
    .match-table .actions { flex-wrap: wrap; }
    .admin-tabs .tab { padding-inline: 6px; font-size: 12px; }
    .admin-tabs .tab .ic { width: 12px; height: 12px; }
    #delivery { margin-left: 0; }
    .matching-item summary .status { white-space: normal; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    *,*::before,*::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
    button:enabled:active { transform: none; }
}

.monitor-state { padding: 9px 13px; margin: 0 0 12px; border: 1px solid #e4e4e4; background: #f3f3f3;
    color: #454545; border-radius: 10px; font-size: 12px; }
.watch-grid { grid-template-columns: minmax(335px,.9fr) minmax(0,1.6fr); }
.watch-main .catalog-tools { flex-wrap: wrap; }
.watch-main .filter-options { flex-wrap: wrap; }
.match-panel { --signal: #b2b2b2; color: #f6f6f6; background:
    radial-gradient(ellipse at 88% 0%,#343434,transparent 56%), linear-gradient(160deg,#212121,#181818);
    border-color: #353535; padding: 0 16px 12px; }
.match-panel .score { font-size: clamp(32px,4.1vw,60px); }
.match-panel .schedule-icon { width: 28px; height: 28px; margin: 6px auto; color: #b8b8b8; }
.match-panel .head-label .ic { color: #b9b9b9; }
.match-panel .team-side span,.match-panel #period,.match-panel #clock,.match-panel .match-health,
.match-panel #matchHealth { color: #c8c8c8; }
.match-panel .tag { background: #363636; color: #f4f4f4; }
.match-panel .live-tag { background: #323232; color: #c7c7c7; }
.match-panel .pitch-ground { fill: #282828; }
.match-panel .pitch-lines { stroke: #6b6b6b; }
.match-panel .pitch-dot { fill: #8d8d8d; }
.match-panel .pitch-event[data-team] { background: #3f3f3f; color: #f5f5f5; }
.match-panel .coverage-chip { border-color: #424242; background: #272727; color: #e8e8e8; }
.match-panel .coverage-chip[data-linked=true] small { color: #bebebe; }
.match-panel .coverage-chip[data-linked=false] small { color: #c0c0c0; }
.event-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding-bottom: 5px; }
.event-column { border: 1px solid #e8e8e8; background: #f8f8f8; border-radius: 11px; padding: 7px 8px; min-width: 0; }
.event-column h3 { padding: 2px 4px 6px; font-size: 13px; font-weight: 650; }
.event-column h3,.match-meta { display: flex; align-items: center; gap: 5px; }
.event-column h3 .ic { width: 14px; height: 14px; color: #626262; }
.team-crest,.match-emblem { display: grid; place-items: center; position: relative; }
.team-crest { width: 40px; height: 40px; margin: 0 auto 5px; border-radius: 10px; background: #f2f2f2; color: #4f4f4f; }
.match-emblem { flex: 0 0 15px; height: 15px; border-radius: 3px; color: #5c5c5c; }
.match-emblem .ic { width: 12px; height: 12px; }
.match-emblem img,.team-crest img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; object-fit: contain; }
.match-emblem img:only-child,.team-crest img:only-child { opacity: 1; }
.team-crest img { padding: 5px; }
.match-meta { margin-top: 3px; min-width: 0; max-width: 100%; }
.match-meta .meta { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-side .team-crest { display: grid; }
.event-rows { display: grid; gap: 5px; max-height: 165px; overflow: auto; scrollbar-width: thin; }
.event-rows .empty { padding: 8px 4px; }
.key-event { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 6px;
    text-align: left; padding: 6px 8px; font-size: 11px; min-height: 33px; border-color: #eaeaea; }
button.key-event[aria-pressed=true] { color: #383838; border-color: #cecece; background: #f1f1f1; }
.key-event strong { display: inline-flex; gap: 4px; align-items: center; }
.key-event strong .ic { width: 12px; height: 12px; color: #626262; }
.event-measurement { color: #505050; font-size: 11px; font-variant-numeric: tabular-nums; }
.selected-event-title { font-size: 13px; font-weight: 620; }
.supplemental:not([open]) { padding-bottom: 0; }
.supplemental > summary { cursor: pointer; font-weight: 620; list-style: none; min-height: 43px; }
.supplemental > summary::-webkit-details-marker { display: none; }
.supplemental > summary::after { content: '+'; font-size: 17px; color: var(--muted); }
.supplemental[open] > summary::after { content: '−'; }
.statistics-block + .statistics-block { border-top: 1px solid var(--border); margin-top: 8px; }
@media (min-width: 1050px) {
    .goal-panel .reaction-books { grid-template-columns: repeat(auto-fit,minmax(min(100%,200px),1fr)); }
}
@media (max-width: 930px) {
    .watch-grid { grid-template-columns: minmax(0,1fr); }
    .watch-main,.watch-side { display: contents; }
    .catalog { grid-row: 1; }
    .match-panel { grid-row: 2; }
    .key-events { grid-row: 3; }
    .goal-panel { grid-row: 4; }
    #otherEvents { grid-row: 5; }
    #matchStatistics { grid-row: 6; }
    #reactionAnalytics { grid-row: 7; }
    .books-panel { grid-row: 8; }
    .catalog-scroll { max-height: 185px; }
    .watch-main > .panel:not(.catalog) { order: 2; }
}
@media (max-width: 420px) {
    .event-columns { gap: 6px; }
    .event-column { padding-inline: 5px; }
    .match-panel { padding-inline: 9px; }
    .team-crest { width: 32px; height: 32px; }
}
