@font-face { font-family: Inter; src:url("/fonts/inter-400.ttf"); font-weight:400; font-display:swap; }
@font-face { font-family: Inter; src:url("/fonts/inter-500.ttf"); font-weight:500; font-display:swap; }
@font-face { font-family: Inter; src:url("/fonts/inter-600.ttf"); font-weight:600; font-display:swap; }
@font-face { font-family: Inter; src:url("/fonts/inter-700.ttf"); font-weight:700; font-display:swap; }
:root { font:15px/1.5 Inter,sans-serif; color:var(--ink); background:var(--canvas); color-scheme:light;
  --brand-ink:#1b2321; --brand-paper:#f9faf7; --canvas:#f0f3ef; --surface:#f9faf7; --surface-raised:#fff;
  --ink:#1b2321; --muted:#596f64; --line:#c9d7cf; --ash:#bcd0cb; --gray:#98b1ab; --lime:#d7ff74; --rose:#ff8086; --focus:#244f7c;
  --button-light:rgb(255 255 255 / 28%); --button-shade:rgb(9 20 16 / 16%); --gauge-track:#e5ece7; }
:root[data-theme="dark"] { color-scheme:dark; --ink:#edf3ef; --canvas:#121c18; --surface:#202c28; --surface-raised:#283730;
  --muted:#bdcdc5; --line:#4c6256; --focus:#d7ff74; --button-light:rgb(255 255 255 / 12%); --button-shade:rgb(0 0 0 / 32%); --gauge-track:#fff; }
* { box-sizing:border-box; }
.ups-root { margin-top:20px; }
.ups-summary { min-width:0; }
.ups-summary[data-ups-state="error"] .technical-heading strong,.ups-service-note[data-state="error"] { color:#df686e; }
.ups-summary[data-ups-state="warning"] .technical-heading strong,.ups-service-note[data-state="warning"] { color:light-dark(#886010,#edbd62); }
.ups-summary .technical-heading { flex-wrap:wrap; }
.ups-summary .technical-heading strong { min-width:0; }
.ups-capacity { color:var(--muted); font-size:12px; margin:10px 0 0; }
.ups-capacity strong { color:var(--ink); white-space:nowrap; }
.ups-gauges { display:grid; grid-template-columns:repeat(auto-fit,minmax(85px,1fr)); gap:16px 8px; margin:18px 0; }
.ups-gauge,.ups-runtime { display:flex; flex-direction:column; align-items:center; gap:9px; text-align:center; font-size:11px; color:var(--muted); min-width:0; }
.ups-ring { display:grid; place-items:center; width:80px; height:80px; border-radius:50%; background:conic-gradient(var(--ups-color) var(--ups-progress),var(--gauge-track) 0); }
.ups-ring strong { display:flex; flex-direction:column; justify-content:center; width:60px; height:60px; border-radius:50%; background:var(--surface-raised); color:var(--ink); font-size:17px; font-weight:600; }
.ups-ring small,.ups-runtime small { display:block; font-size:10px; font-weight:400; color:var(--muted); }
.ups-runtime>strong { display:flex; flex-direction:column; justify-content:center; height:80px; font-size:24px; font-weight:600; color:var(--ink); }
.ups-charge { margin:18px 0; }
.ups-charge>div:first-child { display:flex; justify-content:space-between; gap:8px; font-size:12px; margin-bottom:6px; }
.ups-charge-bar { height:9px; border-radius:3px; overflow:hidden; background:var(--line); }
.ups-charge-bar::before { content:''; display:block; height:100%; width:var(--ups-progress); background:var(--ups-color); }
.ups-service-note { margin:8px 0; font-weight:600; font-size:12px; }
.ups-diagnostics { color:var(--muted); font-size:11px; overflow-wrap:anywhere; }
.dash-widget .ups-summary .technical-heading>strong { font-size:12px; }
.dash-widget .ups-gauge,.dash-widget .ups-runtime { font-size:10px; }
.dash-widget .ups-runtime>strong { font-size:17px; line-height:1.25; }
.dash-widget .ups-ring strong { line-height:1.25; }
.dash-widget .ups-ring small,.dash-widget .ups-runtime small { font-size:9px; margin-top:3px; }
.dash-widget .ups-summary .technical-values dd { font-size:12px; font-weight:600; }
.dash-widget .ups-summary .technical-note { font-size:11px; }
.ups-ranges { display:flex; gap:8px; flex-wrap:wrap; margin:16px 0; }
.ups-ranges button[aria-pressed="true"] { background:var(--lime); color:var(--brand-ink); }
.ups-chart { display:block; width:100%; max-height:240px; margin:8px 0 20px; }
.ups-chart text { fill:var(--muted); stroke:none; font:11px Inter,sans-serif; }
body { margin:0; min-width:360px; }
button,select { font:inherit; color:inherit; border-radius:3px; }
button { cursor:pointer; background:var(--surface-raised); border:1px solid var(--line); padding:10px 14px;
  box-shadow:inset 1px 1px 3px var(--button-light),inset -1px -1px 3px var(--button-shade); touch-action:manipulation; }
button:hover { background:color-mix(in srgb,var(--surface-raised) 88%,var(--lime)); }
button:active,button.selected { box-shadow:inset 2px 2px 5px var(--button-shade),inset -1px -1px 4px var(--button-light); }
button:disabled { opacity:.55; cursor:default; }
button:focus-visible,select:focus-visible,a:focus-visible { outline:3px solid var(--focus); outline-offset:3px; }
a { color:inherit; }
.topbar { min-height:84px; padding:18px 28px; display:flex; align-items:center; justify-content:space-between; gap:20px;
  background:var(--brand-ink); color:var(--brand-paper); border-bottom:3px solid var(--lime); }
.brand { display:grid; gap:6px; text-decoration:none; }
.brand img { width:200px; display:block; }
.brand span { color:var(--ash); font-size:12px; }
#sidebar-toggle { display:flex; padding:9px; }
.sidebar-toggle-dock { position:fixed; bottom:0; left:0; width:258px; padding:12px 20px; background:var(--surface); border-right:1px solid var(--line); z-index:5; }
.sidebar-collapsed #sidebar-toggle svg { transform:rotate(180deg); }
.header-actions { display:flex; align-items:center; gap:22px; }
.header-settings,.header-account { display:flex; align-items:center; gap:12px; }
.header-actions [hidden] { display:none; }
.header-account { padding-left:20px; border-left:1px solid #4c6256; }
#theme-button { display:flex; align-items:center; gap:9px; background:#283730; color:#edf3ef; border-color:#4c6256; font-size:12px; }
svg { fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.symbols { position:absolute; width:0; height:0; overflow:hidden; }
main { display:grid; grid-template-columns:258px minmax(0,1fr); min-height:calc(100dvh - 94px); }
aside { position:sticky; top:0; height:calc(100dvh - 94px); min-height:500px; padding:30px 20px 20px;
  display:flex; flex-direction:column; background:var(--surface); border-right:1px solid var(--line); overflow-y:auto; padding-bottom:76px; }
.eyebrow { color:var(--muted); font-size:10px; font-weight:700; letter-spacing:.12em; }
#site-select { width:100%; margin-top:10px; padding:13px 10px; font-weight:700; font-size:17px; background:var(--surface-raised); border:1px solid var(--line); }
.site-description { margin:10px 1px 4px; font-size:12px; color:var(--muted); }
.site-reference { font-size:10px; color:var(--muted); letter-spacing:.07em; }
.menu-heading { margin:34px 10px 12px; }
nav { display:grid; gap:7px; }
nav button { text-align:left; display:flex; align-items:center; gap:12px; background:transparent; border-color:transparent; box-shadow:none; font-weight:500; }
nav button.selected { background:var(--lime); color:var(--brand-ink); border-color:var(--lime); font-weight:700; }
.nav-icon { width:22px; height:22px; flex-shrink:0; stroke-width:1.7; }
#workspace { width:100%; min-width:0; padding:32px; max-width:2560px; }
.site-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:28px; }
h1 { margin:4px 0 0; font-size:30px; line-height:1.2; letter-spacing:-.04em; }
h3 { margin:0; font-size:17px; }
.status { font-size:12px; padding:7px 12px; border-radius:3px; border:1px solid var(--line); background:var(--surface); }
.status::before { content:""; display:inline-block; margin-right:8px; width:6px; height:6px; border-radius:50%; background:var(--gray); }
.status[data-tone="active"]::before { background:var(--lime); }
.status[data-tone="error"]::before,.status[data-tone="danger"]::before { background:var(--rose); }
.overview-summary { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:24px; margin-bottom:24px;
  background:var(--surface); border:1px solid var(--line); border-radius:3px; }
.overview-summary h3 { margin:8px 0 3px; font-size:25px; letter-spacing:-.03em; }
.overview-summary p { margin:0; font-size:13px; color:var(--muted); }
.primary,.service-presets-all { background:var(--lime); color:var(--brand-ink); border-color:var(--lime); font-weight:700; }
.primary:hover,.service-presets-all:hover { background:#c5ef64; }
.empty-state { min-height:330px; padding:54px 24px; text-align:center; border:1px dashed var(--line); border-radius:3px; }
.empty-icon { display:block; font-size:40px; margin-bottom:15px; color:var(--gray); }
.empty-state p { margin:10px auto; max-width:500px; font-size:14px; }
.muted { color:var(--muted); }
.kiosk-row { margin-top:20px; }
.monitor-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.channel { min-width:0; border:1px solid var(--line); background:var(--surface); border-radius:3px; overflow:hidden; }
.channel-head { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:13px 16px; flex-wrap:wrap; }
.channel-head h3 { font-size:14px; }
.channel-head>span { font-size:9px; color:var(--muted); letter-spacing:.07em; }
.channel-actions { display:flex; gap:7px; margin-left:auto; }
.channel-actions button { padding:6px 9px; font-size:11px; }
.audio-toggle.active,.control-enabled .control-toggle { background:var(--lime); color:var(--brand-ink); }
.control-enabled { box-shadow:0 0 0 2px var(--lime); }
iframe { display:block; width:100%; aspect-ratio:16/9; border:0; background:#121c18; }
.operator-console { min-height:700px; height:calc(100dvh - 270px); aspect-ratio:auto; }
.viewport { position:relative; background:#121c18; overflow:hidden; }
.channel>a { display:block; padding:10px 16px; font-size:11px; color:var(--muted); text-decoration:none; }
.channel>a:hover { color:var(--ink); text-decoration:underline; }
.stream-placeholder { position:absolute; inset:0; z-index:2; display:flex; flex-direction:column; align-items:center; justify-content:center;
  background:radial-gradient(ellipse at 50% 40%,#283730,#121c18); color:#edf3ef; pointer-events:none; transition:opacity .2s; }
.stream-placeholder.hidden { opacity:0; }
.stream-placeholder-logo { display:flex; align-items:baseline; gap:10px; }
.stream-placeholder-logo strong { color:var(--lime); font-size:23px; letter-spacing:.05em; }
.stream-placeholder-logo span { font-size:10px; color:var(--ash); }
.stream-placeholder p { font-size:13px; margin:12px 0 4px; }
.stream-placeholder small { color:var(--ash); font-size:10px; }
.pointer-layer { position:absolute; inset:0; display:none; cursor:crosshair; }
.control-enabled .pointer-layer { display:block; }
.camera-service { margin-top:22px; padding-top:16px; border-top:1px solid var(--line); }
.camera-service summary { color:var(--muted); font-size:12px; font-weight:600; cursor:pointer; padding:8px 0; }
.camera-service summary:focus-visible { outline:3px solid var(--focus); outline-offset:3px; }
.camera-service-body { padding-top:8px; }
.service-presets-all { width:100%; padding:9px 7px; font-size:11px; }
.camera-preset-rows { display:grid; gap:7px; margin-top:12px; }
.camera-preset-row { display:grid; grid-template-columns:36px minmax(48px,1fr) auto; gap:6px; align-items:center; }
.camera-preset-row strong { font-size:11px; }
.camera-preset-row select { width:100%; min-width:0; background:var(--surface-raised); border:1px solid var(--line); padding:6px 3px; font-size:11px; }
.preset-call { padding:6px; font-size:11px; }
.preset-result { grid-column:1/-1; font-size:10px; color:var(--muted); }
.preset-result:empty { display:none; }
.preset-result.error { color:var(--rose); }
.playback-overlay { position:absolute; width:0; height:0; overflow:hidden; pointer-events:none; z-index:1; background:#000; }
.playback-overlay[hidden] { display:none; }
.playback-overlay iframe { max-width:none; aspect-ratio:auto; transform-origin:top left; }
.program-only .monitor-row { grid-template-columns:1fr; }
@media(min-width:1700px) { #workspace { padding:40px; } .operator-console { min-height:850px; } }
@media(max-width:1100px) { main { grid-template-columns:220px minmax(0,1fr); } .sidebar-toggle-dock { width:220px; } #workspace { padding:24px; } .monitor-row { grid-template-columns:1fr; } }
@media(max-width:700px) { .topbar { padding:16px; } .brand img { width:150px; } #theme-button span { display:none; }
  main { display:block; } aside { position:static; height:auto; min-height:0; padding:18px; border-bottom:1px solid var(--line); border-right:0; }
  #site-select { max-width:100%; } .site-description,.site-reference,.menu-heading { display:none; }
  nav { display:flex; overflow-x:auto; margin-top:14px; gap:6px; padding-bottom:4px; } nav button { white-space:nowrap; padding:8px 11px; font-size:12px; }
  .nav-icon { display:none; } .camera-service { margin-top:12px; padding-top:8px; } #workspace { padding:20px 16px; } h1 { font-size:26px; } .status { font-size:10px; } .overview-summary { padding:18px; flex-wrap:wrap; }
  .operator-console { min-height:780px; } .channel-head>span { font-size:8px; } }
@media(prefers-reduced-motion:reduce) { * { transition:none!important; } }

/* Režie keeps both monitor players and control surface visible together. */
.sidebar-collapsed main { grid-template-columns:48px minmax(0,1fr); }
.sidebar-collapsed aside { padding:0; border:0; min-width:0; visibility:hidden; }
.sidebar-collapsed .sidebar-toggle-dock { width:48px; padding:8px 4px; }
.regie .console-viewport { position:relative; overflow:hidden; flex:none; }
.regie .console-viewport .operator-console { position:absolute; left:0; top:0; max-width:none; min-height:0; transform-origin:top left; }
@media(max-width:700px) { .sidebar-collapsed aside { display:none; } .sidebar-toggle-dock { width:48px; padding:8px 4px; border:1px solid var(--line); border-bottom:0; border-left:0; border-radius:0 4px 0 0; } }
@media(min-width:1101px) {
  .regie #workspace { height:calc(100dvh - 86px); display:grid; grid-template-rows:58px minmax(190px,27%) minmax(390px,1fr); gap:16px; padding:24px 32px; overflow:auto; }
  .regie .site-heading { margin:0; }
  .regie .monitor-row,.regie .kiosk-row { min-height:0; margin:0; }
  .regie .channel { display:flex; flex-direction:column; height:100%; }
  .regie .channel-head { flex:none; padding:8px 12px; }
  .regie .channel>a { flex:none; padding:6px 12px; }
  .regie .viewport { flex:1; min-height:0; }
  .regie .monitor-row iframe.media-player { height:100%; aspect-ratio:auto; }
  .regie .operator-console { height:0; min-height:0; flex:1; aspect-ratio:auto; }
  .regie.native-kiosk #workspace { grid-template-rows:58px clamp(190px,27dvh,310px) auto; align-content:start; }
  .regie .web-console { height:auto; }
  .regie .interactive .viewport { flex:none; align-self:center; }
  .regie .interactive iframe.media-player { height:100%; aspect-ratio:auto; }
}
