:root {
  --th-red: #C8102E;
  --th-red-dark: #A50D26;
  --th-red-soft: #FBE6EA;
  --th-brown: #6F4E37;
  --th-brown-soft: #EFE6DD;
  --th-cream: #F5EDE3;
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --ink: #1F1F1F;
  --ink-2: #3F3F46;
  --muted: #6B7280;
  --border: #E7E0D6;
  --ok: #2E7D32;
  --warn: #B26A00;
  --bad: #B71C1C;
  --info: #1565C0;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(31, 31, 31, 0.04), 0 8px 24px rgba(111, 78, 55, 0.06);
  --font: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
}

html, body { font-family: var(--font); background: var(--bg); color: var(--ink); }
h1, h2, h3, .page-title { letter-spacing: -0.01em; }

.wasm-loading { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 2000; background: rgba(200, 16, 46, 0.12); transition: opacity .3s; }
.wasm-loading-bar { height: 100%; width: var(--blazor-load-percentage, 10%); background: var(--th-red); transition: width .3s; }
.wasm-loading-done { opacity: 0; }

.console-appbar { background: var(--th-red) !important; color: #fff !important; }
.console-brand { display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.console-brand img { height: 30px; width: auto; }
.console-brand-sub { color: rgba(255,255,255,0.85); font-size: 0.82rem; padding-left: 12px; border-left: 1px solid rgba(255,255,255,0.35); font-weight: 500; }
.console-lang-form { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 3px 5px; border: 1px solid rgba(255,255,255,0.35); border-radius: 999px; }
.console-lang-btn { border: 0; background: transparent; color: rgba(255,255,255,0.85); font: inherit; font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; cursor: pointer; }
.console-lang-btn.selected { background: #fff; color: var(--th-red); }
.console-lang-btn:hover:not(.selected) { background: rgba(255,255,255,0.15); }
.console-user { display: inline-flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: inherit; cursor: pointer; font: inherit; margin-left: 10px; }
.console-user:hover, .console-user.is-open { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.3); }
.console-user-text { flex-direction: column; align-items: flex-start; line-height: 1.15; text-align: left; max-width: 200px; }
.console-user-name { font-weight: 600; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.console-user-role { font-size: .7rem; opacity: .85; white-space: nowrap; }
.console-avatar { font-weight: 700; font-size: 0.85rem; background: #fff !important; color: var(--th-red) !important; }
.console-user-menu-list { min-width: 250px; }
.console-user-card { display: flex; gap: 12px; align-items: center; padding: 14px 16px 10px; }
.console-user-card .console-avatar { background: var(--th-red) !important; color: #fff !important; }
.console-user-card-text { min-width: 0; display: flex; flex-direction: column; }
.console-user-card-text .mud-typography { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.console-drawer { background: var(--surface) !important; border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.console-drawer.mud-drawer--closed { visibility: hidden; }
.console-drawer-brand { padding: 18px 16px 8px 20px; display: flex; align-items: center; min-height: 60px; }
.console-drawer-brand img { max-height: 34px; max-width: 170px; object-fit: contain; }
.console-nav { padding: 8px 12px; flex: 1; }
.console-nav .mud-nav-link { border-radius: 10px; margin: 2px 0; color: var(--ink-2); font-size: 0.86rem; }
.console-nav .mud-nav-link .mud-icon-root { color: var(--muted); }
.console-nav .mud-nav-link:hover { background: var(--th-cream) !important; color: var(--ink); }
.console-nav .mud-nav-link.active { background: var(--th-red-soft) !important; color: var(--th-red) !important; font-weight: 600; box-shadow: inset 3px 0 0 var(--th-red); }
.console-nav .mud-nav-link.active .mud-icon-root { color: var(--th-red) !important; }
.console-nav-section { font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--th-brown); font-weight: 700; padding: 18px 14px 4px; }
.console-drawer-footer { padding: 12px 20px 14px; border-top: 1px solid var(--border); color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.console-drawer-footer .mud-typography { color: inherit; font-size: .7rem; }
.console-drawer-footer img { height: 16px; width: auto; align-self: flex-start; }

.console-main { background: var(--bg); min-height: 100vh; }
.console-container { padding-top: 24px; padding-bottom: 48px; }
.console-static-note { padding: 8px 16px; }

.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-overline { color: var(--th-red); }
.page-subtitle { color: var(--muted); margin-top: 4px; max-width: 760px; }
.page-header-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.mud-paper, .mud-card { border-radius: var(--radius) !important; }
.mud-paper-outlined, .mud-table.mud-table-outlined { border-color: var(--border) !important; box-shadow: var(--shadow); }
.mud-button-filled, .mud-button-outlined, .mud-button-text { border-radius: 10px !important; }
.mud-button-filled.mud-button-filled-primary { box-shadow: 0 5px 14px rgba(200, 16, 46, 0.22); }
.mud-table-head .mud-table-cell { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.mud-table-row:hover .mud-table-cell { background: rgba(111, 78, 55, 0.04); }
.mud-chip { border-radius: 999px !important; }
.mud-tabs-toolbar { border-bottom: 1px solid var(--border); }
.mud-dialog { border-radius: var(--radius) !important; }
.mud-dialog-title { border-bottom: 1px solid var(--border); font-weight: 700; }
.mud-dialog-actions { border-top: 1px solid var(--border); padding: 12px 20px !important; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.stat-icon { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.stat-icon-brand { background: var(--th-red-soft); color: var(--th-red); }
.stat-icon-brown { background: var(--th-brown-soft); color: var(--th-brown); }
.stat-icon-ok { background: #E3F4EA; color: var(--ok); }
.stat-icon-warn { background: #FBF0DA; color: var(--warn); }
.stat-icon-bad { background: #FBE4E0; color: var(--bad); }
.stat-icon-info { background: #E0EFF4; color: var(--info); }
.stat-icon-neutral { background: #EEEEEE; color: var(--muted); }
.stat-value { font-weight: 700; line-height: 1.1; }
.stat-label { color: var(--muted); }
.stat-hint { color: var(--muted); opacity: .85; }

.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 600; white-space: nowrap; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill-ok { background: #E1F1E8; color: var(--ok); }
.status-pill-warn { background: #FBF0DA; color: #8A5200; }
.status-pill-bad { background: #FBE4E0; color: var(--bad); }
.status-pill-neutral { background: #ECECEC; color: var(--muted); }
.status-pill-info { background: #E0EFF4; color: var(--info); }
.status-pill-brand { background: var(--th-red-soft); color: var(--th-red); }

.empty-state { text-align: center; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty-state-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--th-cream); color: var(--th-brown); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.empty-state-icon .mud-icon-root { font-size: 2rem; }
#blazor-error-ui .reload { margin-left: 12px; font-weight: 600; color: var(--th-red); }
#blazor-error-ui .dismiss { background: none; border: 0; font-size: 1.25rem; line-height: 1; color: inherit; }
.page-title:focus { outline: none; }
.store-pick-field { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; }
.store-pick-field__text { flex: 1; min-width: 140px; font-size: .9rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.empty-state--error .empty-state-icon { background: #fdecea; color: #b3261e; }

.cell-main b { display: block; font-size: 0.88rem; font-weight: 600; }
.cell-main span { display: block; color: var(--muted); font-size: 0.76rem; }
.text-nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.key-box { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--bg); border: 1px dashed var(--border); padding: 10px 12px; border-radius: 10px; word-break: break-all; font-size: .9rem; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.list-row:last-child { border-bottom: 0; }
.list-row-main { flex: 1; min-width: 0; }
.list-row-main b { display: block; font-size: 0.9rem; }
.list-row-main span { color: var(--muted); font-size: 0.8rem; }
.choice-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.choice-chip { padding: 7px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: 0.84rem; user-select: none; }
.choice-chip.selected { border-color: var(--th-red); background: var(--th-red-soft); color: var(--th-red); font-weight: 700; }
.choice-chip.disabled { opacity: .5; cursor: default; }
.section-title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.section-title .mud-icon-root { color: var(--th-red); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px; }
.form-grid > *, .form-grid-3 > * { min-width: 0; }
@media (max-width: 700px) { .form-grid, .form-grid-3 { grid-template-columns: 1fr; } }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.info-grid label { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.info-grid span { font-weight: 600; }

.nip-code { font-size: 44px; font-weight: 700; color: var(--th-red); letter-spacing: 12px; padding: 16px 32px; background: var(--th-cream); border: 3px dashed var(--th-red); border-radius: 12px; text-align: center; font-family: ui-monospace, Menlo, Consolas, monospace; user-select: none; }
.nip-input input { font-size: 24px !important; font-weight: 600; text-align: center; letter-spacing: 8px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.nip-input input::placeholder { letter-spacing: normal; font-size: 14px; font-weight: 400; font-family: var(--font); }

.player-list { max-height: 320px; overflow: auto; border: 1px solid var(--border); border-radius: 12px; padding: 0 12px; }
.player-row { cursor: pointer; }
.player-row.selected { background: var(--th-red-soft); margin: 0 -12px; padding-left: 12px; padding-right: 12px; }

.preview-wrap { display: flex; flex-direction: column; gap: 8px; }
.preview-screens { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: flex-start; }
.preview-screen { display: flex; flex-direction: column; align-items: center; gap: 6px; width: min(var(--pv-w, 216px), 100%); flex: 0 1 var(--pv-w, 216px); min-width: 0; }
.preview-tag { width: 22px; height: 22px; border-radius: 50%; background: var(--th-red); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.preview-frame { position: relative; width: 100%; aspect-ratio: 9 / 16; background: #111; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.14); }
.preview-frame iframe { position: absolute; left: 0; top: 0; width: 1080px; height: 1920px; border: 0; transform-origin: 0 0; transform: scale(var(--pv-scale, 0.2)); pointer-events: none; background: #000; }
.preview-frame .preview-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); font-size: 12px; background: rgba(0,0,0,.35); transition: opacity .3s; }
.preview-frame.is-rendered .preview-loading { opacity: 0; pointer-events: none; }
.preview-note { color: var(--muted); font-size: .76rem; text-align: center; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.media-card { display: flex; flex-direction: column; overflow: hidden; }
.media-thumb { position: relative; aspect-ratio: 4 / 3; background: #111; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); }
.media-thumb img, .media-thumb video { width: 100%; height: 100%; object-fit: contain; display: block; background: repeating-conic-gradient(#2a2a2a 0 25%, #1b1b1b 0 50%) 0 0 / 20px 20px; }
.media-thumb .media-kind { position: absolute; top: 8px; left: 8px; font-size: 0.68rem; font-weight: 700; background: rgba(255,255,255,0.92); color: var(--ink); padding: 2px 8px; border-radius: 999px; }
.media-body { padding: 10px 12px 10px; display: flex; flex-direction: column; gap: 4px; }
.media-name { font-size: 0.82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-meta { font-size: 0.72rem; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.media-actions { display: flex; justify-content: space-between; align-items: center; padding: 0 6px 6px; }
.media-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; max-height: 340px; overflow: auto; padding: 2px; }
.media-pick { border: 2px solid var(--border); border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--bg); display: flex; flex-direction: column; }
.media-pick img, .media-pick video { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: #111; }
.media-pick span { font-size: 0.7rem; color: var(--muted); padding: 4px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-pick.selected { border-color: var(--th-red); box-shadow: 0 0 0 3px var(--th-red-soft); }
.media-pick.none { align-items: center; justify-content: center; min-height: 120px; color: var(--muted); font-size: .8rem; }
.upload-dropzone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 28px 20px; text-align: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--surface); }
.upload-dropzone:hover { border-color: var(--th-red); background: var(--th-red-soft); }
.upload-drop-host { position: relative; }
.upload-drop-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.upload-drop-host:hover .upload-dropzone, .upload-drop-host.is-dragging .upload-dropzone, .upload-drop-host:focus-within .upload-dropzone { border-color: var(--th-red); background: var(--th-red-soft); }
.upload-drop-host:focus-within .upload-dropzone { outline: 2px solid var(--th-red); outline-offset: 2px; }

.takeover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.takeover-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.takeover-card.inactive { opacity: .7; }
.takeover-thumb { position: relative; height: 170px; background: #111; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); }
.takeover-thumb img, .takeover-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.takeover-thumb .takeover-kind { position: absolute; top: 10px; left: 10px; font-size: 0.7rem; font-weight: 700; background: rgba(255,255,255,0.92); color: var(--ink); padding: 2px 10px; border-radius: 999px; }
.takeover-thumb .takeover-badge { position: absolute; bottom: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; background: rgba(0,0,0,0.6); color: #fff; padding: 2px 8px; border-radius: 999px; }
.takeover-body { padding: 14px 16px 10px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.takeover-meta { display: flex; flex-direction: column; gap: 3px; color: var(--muted); font-size: 0.78rem; }
.takeover-meta span { display: inline-flex; align-items: center; gap: 6px; }
.takeover-stage { position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: 520px; margin: 0 auto; background: #111; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.takeover-stage.wall { aspect-ratio: 27 / 16; }
.takeover-stage img, .takeover-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.takeover-stage .price-overlay { position: absolute; transform: translate(-50%, -50%); font-weight: 800; white-space: nowrap; text-shadow: 0 2px 10px rgba(0,0,0,.45); line-height: 1; pointer-events: none; }
.takeover-stage .price-overlay.pulse { animation: th-pulse 1.6s ease-in-out infinite; }
@keyframes th-pulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.06); } }
.weekday-row { display: flex; gap: 6px; flex-wrap: wrap; }
.weekday { width: 40px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: .8rem; cursor: pointer; user-select: none; }
.weekday.selected { background: var(--th-red); color: #fff; border-color: var(--th-red); }

.scene-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .scene-layout { grid-template-columns: 1fr; } }
.scene-list { display: flex; flex-direction: column; gap: 10px; }
.scene-card { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 10px; border: 1px solid var(--border); border-radius: 12px; padding: 10px; background: var(--surface); cursor: pointer; }
.scene-card:hover { border-color: var(--th-brown); }
.scene-card.selected { border-color: var(--th-red); box-shadow: 0 0 0 3px var(--th-red-soft); }
.scene-card.inactive { opacity: .55; }
.scene-thumb { width: 60px; height: 106px; border-radius: 8px; background: #111; overflow: hidden; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); }
.scene-thumb img, .scene-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.scene-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.scene-name { font-weight: 600; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scene-meta { font-size: .72rem; color: var(--muted); display: flex; gap: 4px 8px; flex-wrap: wrap; align-items: center; }
.scene-meta .mud-icon-root { font-size: .9rem; }
.scene-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.scene-chip { font-size: .66rem; padding: 1px 8px; border-radius: 999px; background: var(--th-cream); color: var(--th-brown); font-weight: 600; white-space: nowrap; }
.scene-chip.cold { background: #E0EFF4; color: var(--info); }
.scene-chip.mild { background: #E1F1E8; color: var(--ok); }
.scene-chip.hot { background: #FBF0DA; color: #8A5200; }
.scene-actions { display: flex; align-items: center; gap: 2px; margin-top: 2px; flex-wrap: wrap; }
.scene-actions .mud-switch { margin-left: auto; margin-right: 0; }
.weather-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.weather-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: .78rem; font-weight: 600; cursor: pointer; user-select: none; color: var(--muted); }
.weather-chip .mud-icon-root { font-size: 1rem; }
.weather-chip.selected.cold { background: #E0EFF4; color: var(--info); border-color: var(--info); }
.weather-chip.selected.mild { background: #E1F1E8; color: var(--ok); border-color: var(--ok); }
.weather-chip.selected.hot { background: #FBF0DA; color: #8A5200; border-color: #B26A00; }
.weather-chip.selected.any { background: var(--th-brown-soft); color: var(--th-brown); border-color: var(--th-brown); }
.weather-chip.disabled { cursor: default; opacity: .7; }

.ov-layout { display: grid; grid-template-columns: minmax(240px, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .ov-layout { grid-template-columns: 1fr; } }
.ov-wrap { display: flex; flex-direction: column; gap: 8px; }
.ov-stage { position: relative; width: 100%; aspect-ratio: 9 / 16; background: #111; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); touch-action: none; user-select: none; box-shadow: 0 6px 18px rgba(0,0,0,.14); }
.ov-canvas { position: absolute; left: 0; top: 0; width: 1080px; height: 1920px; transform-origin: 0 0; transform: scale(var(--st-scale, .3)); background: var(--ov-bg, #111); }
.ov-canvas video, .ov-canvas img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ov-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: rgba(255,255,255,.55); font-size: 40px; }
.ov-empty .mud-icon-root { font-size: 160px; }
.ov-box { position: absolute; white-space: nowrap; font-weight: 800; line-height: 1; cursor: grab; padding: 8px 18px; border: 4px dashed transparent; border-radius: 14px; text-shadow: 0 3px 14px rgba(0,0,0,.5); transition: opacity .15s; box-sizing: border-box; }
.ov-box.ov-align-left { transform: translate(-18px, -50%); }
.ov-box.ov-align-center { transform: translate(-50%, -50%); }
.ov-box.ov-align-right { transform: translate(calc(-100% + 18px), -50%); }
.ov-box:hover { border-color: rgba(255,255,255,.55); }
.ov-box.selected { border-color: var(--th-red); background: rgba(200,16,46,.2); }
.ov-box.is-dragging { cursor: grabbing; }
.ov-box.is-out { opacity: .12; }
.ov-box.is-out.selected { opacity: .45; }
.ov-box .ov-label { font-weight: 600; font-size: .6em; margin-right: .35em; opacity: .9; }
.ov-stage[data-readonly="1"] .ov-box { cursor: default; }
.ov-transport { display: flex; align-items: center; gap: 8px; }
.ov-transport input[type=range] { flex: 1; accent-color: var(--th-red); min-width: 0; }
.ov-transport input[type=range]:disabled { opacity: .4; }
.ov-time { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .74rem; color: var(--muted); min-width: 110px; text-align: right; white-space: nowrap; }
.ov-play { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--th-red); padding: 0; flex: none; }
.ov-play:disabled { opacity: .4; cursor: default; }
.ov-play .ic-pause { display: none; }
.ov-wrap.is-playing .ov-play .ic-play { display: none; }
.ov-wrap.is-playing .ov-play .ic-pause { display: inline-flex; }
.ov-pos { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .72rem; color: var(--muted); text-align: center; min-height: 1em; }
.ov-list { display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow: auto; margin-bottom: 12px; }
.ov-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); cursor: pointer; font-size: .82rem; background: var(--surface); }
.ov-row:hover { background: var(--th-cream); }
.ov-row.selected { border-color: var(--th-red); background: var(--th-red-soft); }
.ov-row .swatch { width: 12px; height: 12px; border-radius: 3px; border: 1px solid rgba(0,0,0,.2); flex: none; }
.ov-row .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-row .code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .72rem; color: var(--muted); }
.ov-row .time { font-size: .7rem; color: var(--muted); white-space: nowrap; }
.ov-row.missing .code { color: var(--bad); }
.ov-props { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: var(--bg); }
.ov-time-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px; align-items: start; }
.color-field { display: flex; align-items: center; gap: 8px; }
.color-field input[type=color] { width: 40px; height: 38px; border: 1px solid var(--border); border-radius: 8px; padding: 0; background: none; cursor: pointer; flex: none; }
.weekday-row .weekday.disabled { cursor: default; opacity: .7; }

.weather-pill .mud-icon-root { font-size: .95rem; }
.weather-reading { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px dashed var(--border); border-radius: 10px; background: var(--bg); }
.weather-reading .muted { color: var(--muted); font-size: .78rem; }

.price-input input { text-align: right; font-weight: 600; }
.price-changed .mud-table-cell { background: #FFF6E5 !important; }
.store-chip-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.excel-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.excel-summary div { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px; text-align: center; }
.excel-summary strong { display: block; font-size: 1.3rem; }
.excel-summary span { font-size: .72rem; color: var(--muted); }
.error-list { margin: 6px 0 0; padding-left: 18px; font-size: .82rem; }
.onsign-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.onsign-card label { display: block; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin-bottom: 2px; }
.onsign-card span { font-weight: 600; font-size: .9rem; word-break: break-word; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar > .mud-input-control, .toolbar > .mud-select { min-width: 220px; }
.users-avatar { background: var(--th-brown-soft) !important; color: var(--th-brown) !important; font-weight: 700; }
.readonly-banner { margin-bottom: 16px; }
