/* Lokale Brutal-Type-Schriften: Jeder Schnitt hat sein eigenes Gewicht. */
@font-face {
   font-family: 'Brutal Type';
   src: url('/fonts/BrutalType-Thin.ttf') format('truetype');
   font-style: normal;
   font-weight: 100;
   font-display: swap;
}

@font-face {
   font-family: 'Brutal Type';
   src: url('/fonts/BrutalType-ExtraLight.ttf') format('truetype');
   font-style: normal;
   font-weight: 200;
   font-display: swap;
}

@font-face {
   font-family: 'Brutal Type';
   src: url('/fonts/BrutalType-Light.ttf') format('truetype');
   font-style: normal;
   font-weight: 300;
   font-display: swap;
}

@font-face {
   font-family: 'Brutal Type';
   src: url('/fonts/BrutalType.ttf') format('truetype');
   font-style: normal;
   font-weight: 400;
   font-display: swap;
}

@font-face {
   font-family: 'Brutal Type';
   src: url('/fonts/BrutalType-Medium.ttf') format('truetype');
   font-style: normal;
   font-weight: 500;
   font-display: swap;
}

@font-face {
   font-family: 'Brutal Type';
   src: url('/fonts/BrutalType-Bold.ttf') format('truetype');
   font-style: normal;
   font-weight: 700;
   font-display: swap;
}

@font-face {
   font-family: 'Brutal Type';
   src: url('/fonts/BrutalType-ExtraBold.ttf') format('truetype');
   font-style: normal;
   font-weight: 800;
   font-display: swap;
}

@font-face {
   font-family: 'Brutal Type';
   src: url('/fonts/BrutalType-Black.ttf') format('truetype');
   font-style: normal;
   font-weight: 900;
   font-display: swap;
}


/* Arbeitsoberfl?che: Schwarz, Wei? und Gelb. Keine dekorativen Seitenabschnitte. */
:root { color-scheme: dark; --bg: #000; --text: #fff; --highlight: #ffed00; --line: rgb(255 255 255 / 25%); font-family: 'Brutal Type', Arial, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; }
[hidden] { display: none !important; }
button, input, select { font: inherit; border-radius: 0; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--highlight); outline-offset: 3px; }
h1 { font-size: 24px; margin: 0 0 24px; font-weight: 700; }
p { margin: 0; }
label { display: block; margin-bottom: 6px; }
input, select { width: 100%; background: #000; color: #fff; border: 1px solid #fff; padding: 9px 10px; margin-bottom: 20px; }
.button { padding: 9px 16px; min-height: 40px; border: 1px solid var(--highlight); background: var(--highlight); color: #000; font-weight: 700; }
.button:hover { background: #fff; border-color: #fff; }
.button:disabled { opacity: .5; cursor: wait; }
.button-secondary { background: #000; color: var(--highlight); }
.button-secondary:hover { background: var(--highlight); color: #000; border-color: var(--highlight); }
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.login form { width: min(100%, 320px); }
.login h1 { margin-bottom: 32px; }
.message { margin-top: 16px; min-height: 1.5em; white-space: pre-wrap; }
.app { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { border-right: 1px solid var(--line); padding: 24px 16px; display: flex; flex-direction: column; gap: 28px; }
.brand { color: #fff; text-decoration: none; font-size: 20px; font-weight: 700; padding-inline: 10px; }
.nav-group { display: grid; gap: 4px; }
.nav-group + .nav-group { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; }
.nav-link { text-align: left; padding: 10px; border: 0; background: #000; color: #fff; text-decoration: none; }
.nav-link:hover { text-decoration: underline; }
.nav-link[aria-current='page'] { color: #000; background: var(--highlight); }
.account { margin-top: auto; padding-top: 24px; font-size: 12px; overflow-wrap: anywhere; }
.account button { margin-top: 12px; }
.content { padding: 32px; min-width: 0; }
.empty { font-size: 14px; }
.token-form, [data-token-result] { max-width: 680px; }
.token-form small { font-weight: 400; }
[data-token-result] { padding-block: 16px; }
[data-token-value], [data-token-header] { font-family: monospace; font-size: 13px; }
#token-panel .proto-table td button { margin-right: 8px; }
/* Prototype work area: dense tables; controls stay mounted during live updates. */
.proto-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.proto-toolbar input, .proto-toolbar select { width: auto; min-width: 130px; max-width: 360px; margin: 0; }
.proto-toolbar [data-filter] { min-width: 260px; }
.race-strip { width: 100%; min-width: 0; margin-bottom: 14px; }
.race-strip-track { display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 8px; overscroll-behavior-x: contain; scrollbar-color: #ffed00 #000; }
.race-strip-item { flex: 0 0 calc((100% - 20px) / 2.65); min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 62px; padding: 10px 14px; background: #000; color: #fff; border: 1px solid var(--line); text-align: left; cursor: pointer; user-select: none; touch-action: none; }
.race-strip-item > span:last-child { min-width: 0; }
.race-strip-item strong, .race-strip-item small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.race-strip-item strong { font-size: 15px; }
.race-strip-item small { font-size: 11px; margin-top: 4px; }
.race-strip-item:hover { border-color: #ffed00; }
.race-strip-item[aria-pressed="true"] { background: #ffed00; color: #000; border-color: #ffed00; }
.race-strip-item:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.race-strip-grip { flex-shrink: 0; font-size: 20px; opacity: .6; cursor: grab; }
.race-strip[data-can-reorder="false"] .race-strip-item { touch-action: auto; }
.race-strip-item.is-dragging { opacity: .45; cursor: grabbing; }
.race-strip.is-reordering .race-strip-item { cursor: grabbing; }
.race-strip[aria-busy="true"] .race-strip-track { pointer-events: none; opacity: .65; }
.race-strip-toggle { display: block; margin-left: auto; padding: 3px 0; border: 0; background: #000; color: #ffed00; font-size: 11px; cursor: pointer; }
.race-strip.is-expanded .race-strip-track { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); overflow: visible; }
.race-strip.is-expanded .race-strip-item { width: 100%; }
@media (max-width: 600px) { .race-strip-item { flex-basis: calc((100% - 10px) / 2.15); padding: 8px; gap: 6px; } }
.proto-toolbar a { color: var(--highlight); font-size: 12px; }
.start-bar { margin-top: 20px; padding-block: 12px; border-block: 1px solid var(--line); }
.start-bar label { margin: 0; font-size: 12px; }
.start-bar label input:not([type="checkbox"]) { display: block; margin-top: 4px; }
.start-bar .event-toggle { align-self: end; margin-bottom: 4px; }
.race-clock { font-variant-numeric: tabular-nums; font-size: 22px; margin-left: auto; white-space: nowrap; }
.proto-tabs { display: flex; gap: 20px; margin-block: 16px; }
.proto-tabs button { background: #000; border: 0; border-bottom: 2px solid transparent; padding: 6px 0; color: #fff; }
.proto-tabs button.is-active { border-bottom-color: var(--highlight); color: var(--highlight); }
.proto-tabs[data-view-tabs] { display: grid; grid-template-columns: repeat(5, minmax(100px, 1fr)); gap: 0; margin-block: 20px 16px; border: 1px solid #666; overflow-x: auto; }
.proto-tabs[data-view-tabs] button { min-height: 48px; padding: 12px 16px; border: 0; border-right: 1px solid #666; font: inherit; font-size: 14px; font-weight: 700; text-align: center; cursor: pointer; white-space: nowrap; }
.proto-tabs[data-view-tabs] button:last-child { border-right: 0; }
.proto-tabs[data-view-tabs] button:hover { background: #fff; color: #000; }
.proto-tabs[data-view-tabs] button.is-active { background: var(--highlight); color: #000; }
.proto-tabs[data-view-tabs] button:focus-visible { outline: 2px solid #fff; outline-offset: -5px; }
.proto-summary { margin-bottom: 12px; font-size: 12px; }
.proto-table-wrap { overflow: auto; max-height: 66dvh; margin-block: 12px; }
.proto-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; text-align: left; }
.proto-table th { position: sticky; top: 0; background: #000; z-index: 1; font-size: 11px; text-transform: uppercase; }
.proto-table th, .proto-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.proto-table tr:hover td { background: rgb(255 255 255 / 5%); }
.proto-table .rank-cell, .proto-table .lpc-cell { color: var(--highlight); font-weight: 700; }
.mono { font-variant-numeric: tabular-nums; white-space: nowrap; }
.id-cell { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.event-feed { min-width: 1150px; }
.event-feed th button { display: inline-flex; gap: 4px; align-items: center; border: 0; padding: 0; background: transparent; color: #fff; font: inherit; text-transform: inherit; text-align: left; cursor: pointer; }
.event-feed th[aria-sort="ascending"] button, .event-feed th[aria-sort="descending"] button { color: #ffed00; }
.row-actions { white-space: nowrap; }
.proto-table button, .text-button { border: 1px solid var(--line); background: #000; color: #fff; padding: 4px 8px; }
.proto-table .text-button { border: 0; padding: 0; text-align: left; }
.proto-table button:hover { color: var(--highlight); }
.review-row td:first-child { border-left: 2px solid var(--highlight); }
.emulator-form { max-width: 540px; margin-top: 24px; }
.emulator-form label { margin-bottom: 20px; }
.emulator-form input[type="range"] { padding: 0; margin-block: 8px; accent-color: var(--highlight); }
.emulator-form output { color: var(--highlight); float: right; }
.emulator-form small { font-size: 12px; }
.edit-dialog { background: #000; color: #fff; border: 1px solid var(--line); width: min(520px, 92vw); max-height: 90dvh; padding: 24px; }
.edit-dialog::backdrop { background: rgb(0 0 0 / 75%); }
.search-picker { position: relative; margin-bottom: 16px; }
.picker-input { position: relative; }
.picker-input input { width: 100%; padding-right: 42px; margin-bottom: 0; }
.picker-input > button { position: absolute; right: 1px; top: 1px; bottom: 1px; width: 38px; padding: 0; border: 0; background: transparent; color: #ffed00; display: grid; place-items: center; }
.picker-options { position: absolute; left: 0; right: 0; top: 100%; z-index: 10; max-height: 200px; overflow-y: auto; background: #000; border: 1px solid #ffed00; }
.picker-options > button { display: block; width: 100%; padding: 8px 10px; text-align: left; color: #fff; background: #000; border: 0; border-bottom: 1px solid #333; font: inherit; }
.picker-options > button:hover, .picker-options > button[aria-selected="true"] { color: #000; background: #ffed00; }
.picker-options small { display: block; font-size: 11px; opacity: .75; overflow-wrap: anywhere; }
.picker-options p { margin: 8px 10px; font-size: 13px; }
.edit-dialog h2 { font-size: 20px; margin-top: 0; }
.compact-heading { font-size: 14px; margin: 18px 0 8px; }
.athlete-name-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.athlete-name-fields label { min-width: 0; }
.meeting-list { max-height: 260px; overflow-y: auto; margin-bottom: 16px; border-block: 1px solid var(--line); }
.meeting-list button { display: block; width: 100%; padding: 8px; background: #000; color: #fff; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; }
.meeting-list button:hover, .meeting-list button:focus { background: #ffed00; color: #000; }
.meeting-list small, .mika-participations td > small { display: block; font-size: 11px; }
.mika-participations td { vertical-align: top; }
.mika-participations .search-picker { min-width: 220px; max-width: 380px; margin-bottom: 6px; }
.mika-participations .picker-options { position: relative; top: auto; max-height: 160px; }
.mika-participations input[type="checkbox"] { width: 24px; height: 24px; accent-color: #ffed00; }
.mika-participations details { max-width: 380px; }
.mika-participations summary { cursor: pointer; font-size: 12px; margin: 8px 0; }
.source-switches label { margin: 0; }
.tutorial { max-width: 760px; }
.tutorial h2 { font-size: 22px; }
.tutorial p, .tutorial li { line-height: 1.55; }
.tutorial .proto-toolbar { margin: 20px 0; }
.tutorial-progress { color: #ffed00; font-variant-numeric: tabular-nums; }
.tutorial-dock { position: fixed; bottom: 16px; right: 16px; z-index: 30; width: min(400px, calc(100vw - 32px)); max-height: 55dvh; overflow-y: auto; padding: 16px; border: 1px solid #ffed00; background: #000; box-shadow: 0 8px 30px #000; font-size: 13px; }
.tutorial-dock h2 { font-size: 18px; margin-block: 8px; }
.tutorial-dock .proto-toolbar { gap: 8px; margin-bottom: 0; }
.participant-assignment { display: grid; grid-template-columns: 1fr 1fr 1fr 24px; gap: 8px; align-items: end; margin-bottom: 8px; }
.participant-assignment label { min-width: 0; margin: 0; font-size: 11px; }
.participant-assignment input { margin: 4px 0 0; padding: 7px; }
.participant-assignment button { background: transparent; border: 0; color: #fff; height: 34px; font-size: 20px; cursor: pointer; }
.edit-dialog textarea { display: block; width: 100%; background: #000; color: #fff; border: 1px solid #fff; font: inherit; margin-block: 6px 16px; padding: 10px; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tab { background: #000; color: #fff; border: 0; padding: 10px 0; border-bottom: 2px solid transparent; }
.tab[aria-current="page"] { color: var(--highlight); border-bottom-color: var(--highlight); }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.editor-toolbar input { width: 180px; margin: 0; }
.editor-toolbar .event-search { margin-left: auto; width: min(100%, 320px); }
.editor-status { margin: 16px 0 4px; white-space: pre-wrap; }
.editor-help { font-size: 12px; margin-bottom: 16px; }
.bulk-editor { margin: 16px 0; }
.bulk-editor summary { cursor: pointer; }
.event-select-all { display: flex; align-items: center; gap: 12px; margin: 24px 0 16px; cursor: pointer; }
.event-select-all input, .event-toggle input { width: 24px; height: 24px; margin: 0; accent-color: var(--highlight); cursor: pointer; flex-shrink: 0; }
.event-cards { display: grid; gap: 8px; max-width: 880px; }
.event-card { position: relative; border: 1px solid var(--line); padding: 10px 12px 10px 40px; border-radius: 4px; min-width: 0; }
.event-card.is-selected { border-color: var(--highlight); }
.event-card-header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.event-toggle { display: flex; align-items: center; gap: 6px; margin: 0; cursor: pointer; min-height: 32px; font-size: 12px; }
.event-position { display: flex; align-items: center; gap: 10px; margin: 0; }
.event-position input { width: 64px; margin: 0; padding: 4px 6px; background: var(--highlight); color: #000; border-color: var(--highlight); font-weight: 700; font-variant-numeric: tabular-nums; color-scheme: light; }
.event-id { font-size: 10px; overflow-wrap: anywhere; max-width: 170px; }
.drag-handle { position: absolute; left: 0; top: 0; bottom: 0; background: transparent; color: #fff; border: 0; width: 32px; height: 100%; padding: 0; display: grid; place-items: center; cursor: grab; }
.drag-handle svg { pointer-events: none; }
.drag-handle:active { cursor: grabbing; }
.event-card-actions { display: flex; gap: 8px; margin-left: auto; }
.event-card-actions button { background: #000; color: #fff; border: 1px solid var(--line); padding: 4px 8px; min-width: 32px; min-height: 32px; font-size: 12px; }
.event-card-actions button:hover, .drag-handle:hover { color: var(--highlight); border-color: var(--highlight); }
.event-card-actions button:disabled { opacity: .4; cursor: default; }
.event-card-fields { display: grid; grid-template-columns: 80px 120px minmax(120px, 1fr); gap: 6px 10px; align-items: start; }
.event-field { font-size: 12px; margin: 0; min-width: 0; }
.event-field input, .event-field textarea { display: block; margin: 2px 0 0; padding: 5px 8px; background: #000; color: #fff; border: 1px solid var(--line); width: 100%; font: inherit; font-size: 13px; border-radius: 0; }
.event-field-lpc input, .event-field-split input { background: var(--highlight); color: #000; border-color: var(--highlight); font-weight: 700; }
.event-field-notes { grid-column: auto; }
.event-field textarea { min-height: 30px; resize: none; overflow-y: hidden; line-height: 18px; }
.event-field small { display: block; margin-top: 4px; font-size: 11px; }
.event-card.is-dragging { opacity: .45; }
.event-card.drop-before { box-shadow: 0 -4px 0 var(--highlight); }
.event-card.drop-after { box-shadow: 0 4px 0 var(--highlight); }
@media (max-width: 750px) { .event-card-fields { grid-template-columns: 70px minmax(0, 1fr); } .event-field-notes { grid-column: 1 / -1; } .event-card-actions { margin-left: 0; } }
.event-table-wrap { overflow: auto; max-height: 68dvh; border-bottom: 1px solid var(--line); }
.event-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 900px; font-size: 13px; }
.event-table th { position: sticky; top: 0; background: #000; z-index: 1; text-align: left; }
.event-table th, .event-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.event-table input, .event-table textarea { margin: 0; padding: 6px 8px; font: inherit; width: 100%; background: #000; color: #fff; border: 1px solid var(--line); border-radius: 0; }
.event-table input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--highlight); }
.event-table th:nth-child(4) { width: 130px; }
.event-table th:nth-child(5) { width: 240px; }
.event-table th:nth-child(6) { width: 30%; }
.event-table textarea { min-height: 34px; resize: vertical; }
.event-table small { display: block; max-width: 40ch; margin-top: 6px; }
.event-table td:last-child { white-space: nowrap; }
.event-table td button { background: #000; color: #fff; border: 1px solid var(--line); padding: 6px; margin-right: 4px; }
.event-table td button:hover { border-color: var(--highlight); color: var(--highlight); }
.event-table td button:disabled { opacity: .4; cursor: default; }
@media (max-width: 600px) { .app { grid-template-columns: 145px minmax(0, 1fr); } .sidebar { padding: 16px 8px; } .content { padding: 24px 16px; } }
/* Race matrix: sticky identity columns, paired workout cells and compact source labels. */
.poll-interval { display:flex; align-items:center; gap:8px; font-size:.8rem; }
.poll-interval input { width:76px; }
.live-grid-scroll { max-height:65dvh; }
.live-grid { border-collapse:separate; border-spacing:0; width:100%; min-width:1700px; font-size:12px; font-variant-numeric:tabular-nums; }
.live-grid th, .live-grid td { padding:9px 8px; border-bottom:1px solid #333; text-align:center; white-space:nowrap; background:#000; }
.live-grid th { position:sticky; top:0; z-index:3; height:34px; background:#161616; text-transform:uppercase; font-size:11px; }
.live-grid thead tr:nth-child(2) th { top:34px; }
.live-grid .grid-rank { position:sticky; left:0; width:44px; min-width:44px; z-index:4; font-weight:700; }
.live-grid .grid-team { position:sticky; left:44px; width:230px; min-width:230px; max-width:230px; text-align:left; z-index:4; border-right:1px solid #555; }
.live-grid thead .grid-team, .live-grid thead .grid-rank { z-index:6; background:#161616; }
.live-grid .grid-team button { display:block; padding:0; border:0; background:transparent; color:#fff; font-weight:700; max-width:212px; overflow:hidden; text-overflow:ellipsis; text-align:left; cursor:pointer; }
.live-grid small { display:block; font-size:9px; color:#aaa; line-height:1.5; }
.live-grid .grid-team small { overflow:hidden; text-overflow:ellipsis; }
.live-grid .workout-end { border-right:1px solid #555; }
.live-grid th button { border:0; background:transparent; color:inherit; font:inherit; text-transform:inherit; padding:0; cursor:pointer; }
.live-grid th[aria-sort="ascending"], .live-grid th[aria-sort="descending"] { color:#ffed00; }
.live-grid td.grid-latest { background:#ffed00; color:#000; font-weight:700; }
.live-grid td.grid-latest small { color:#000; }
.grid-progress { height:3px; background:#333; margin-top:5px; }
.grid-progress span { height:100%; display:block; background:#ffed00; }
.live-grid tbody tr:hover .grid-team { box-shadow:inset 3px 0 #ffed00; }
.live-grid tbody td:not(.grid-team):not(.grid-rank) { min-width:78px; }
/* Checkbox and caption are one target; toolbar input minimum widths must not apply. */
label:has(> input[type="checkbox"]) {
  display:inline-flex; flex-direction:row; align-items:center; justify-content:flex-start;
  gap:6px; width:fit-content; max-width:100%; min-height:32px; padding:6px 9px;
  margin:0; border:1px solid #555; border-radius:3px; background:#111; color:#fff;
  opacity:.55; font-size:12px; line-height:1.2; cursor:pointer; user-select:none;
}
label:has(> input[type="checkbox"]:checked) { background:#ffed00; border-color:#ffed00; color:#000; opacity:1; }
label:has(> input[type="checkbox"]):hover { opacity:1; }
label:has(> input[type="checkbox"]:focus-visible) { outline:2px solid #fff; outline-offset:2px; }
label:has(> input[type="checkbox"]:disabled) { opacity:.35; cursor:default; }
input[type="checkbox"] {
  appearance:none; -webkit-appearance:none; display:inline-block; position:relative;
  width:16px !important; height:16px !important; min-width:16px !important; max-width:16px !important;
  flex:0 0 16px; margin:0 !important; padding:0 !important; border:1.5px solid currentColor;
  border-radius:2px; background:transparent; color:inherit; vertical-align:middle; cursor:pointer;
}
input[type="checkbox"]:checked::after { content:""; position:absolute; left:4px; top:1px; width:4px; height:8px; border:solid currentColor; border-width:0 2px 2px 0; transform:rotate(45deg); }
input[type="checkbox"]:indeterminate::after { content:""; position:absolute; left:3px; top:6px; width:8px; height:2px; background:currentColor; }
input[type="checkbox"]:disabled { cursor:default; }
.live-grid { min-width:2400px; }
.live-grid .grid-run { border-right:1px solid #555; }
.live-grid .grid-team > strong { display:block; max-width:212px; overflow:hidden; text-overflow:ellipsis; }
#users-panel [data-invite] label { display:grid; gap:4px; font-size:12px; }
#users-panel [data-invite] { align-items:end; }
#users-panel [data-invite-link] input { flex:1; max-width:none; min-width:220px; }
#users-panel td button { background:#000; color:#fff; border:1px solid #555; padding:5px 8px; cursor:pointer; }
#users-panel td button:hover { border-color:#ffed00; }
.floor-assignments { max-width:700px; }
.floor-row { display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid #333; }
.floor-row > div { flex:1; min-width:0; }
.floor-row small { display:block; font-size:11px; color:#aaa; }
.floor-row label { font-size:11px; margin:0; }
.floor-row input { display:block; width:68px; padding:8px; font-size:18px; }
.floor-row button { padding:8px; }
#users-panel [data-user-name] { width:160px; padding:6px; }

.password-form { display:grid; gap:14px; max-width:360px; }
.password-form label { display:grid; gap:5px; }
.password-form input { width:100%; }

/* Visible while the event snapshot is held during inspection. */
[data-events] { position: relative; }
.event-freeze { position: sticky; top: 8px; z-index: 5; width: fit-content; margin: 8px auto; display: flex; align-items: center; gap: 12px; padding: 6px 8px 6px 12px; background: #000; border: 1px solid #ffed00; box-shadow: 0 4px 16px #000; color: #ffed00; font-size: 13px; }
.event-freeze[hidden] { display: none; }
.event-freeze .button { padding: 6px 10px; font-size: 12px; }
.event-warning { color: #ffed00; font-weight: 700; }
.event-feed .review-row { background: #ffed000d; }
.event-feed .muted-event td { color: #888; }
.event-feed .muted-event .lpc-cell { color: #888; background: transparent; }

.excluded-lineup td { color: #888; }
.excluded-lineup td button { color: inherit; }

[data-expansions], [data-live-expansions] { border: 1px solid var(--line); padding: 10px; margin-bottom: 12px; }
.expansion-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.expansion-toolbar strong { color:#ffed00; margin-right:4px; }
.expansion-toolbar select { max-width:260px; }
.expansion-toolbar .button { padding:7px 12px; font-size:12px; }
.expansion-toolbar small { color:#aaa; }
.expansion-items { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,400px),1fr)); gap:6px; }
.expansion-item { display:flex; align-items:center; gap:8px; margin-top:8px; padding:6px; border:1px solid var(--line); flex-wrap:wrap; }
.expansion-item > span { flex:1; min-width:100px; font-size:13px; }
.expansion-item select { width:150px; }
.expansion-item input { flex-basis:100%; order:2; }
.expansion-item input, .expansion-item select, .expansion-toolbar select { margin:0; padding:6px 8px; background:#000; color:#fff; border:1px solid #666; font:inherit; font-size:13px; }

.progress-bar-controls { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.progress-bar-controls .event-toggle { margin:0; font-size:12px; }
