/* Zakladny vzhlad je optimalizovany pre mobilny hovor a tmave prostredie. */
:root {
    color-scheme: dark;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0c1220;
    color: #edf2f7;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: linear-gradient(145deg, #0c1220, #15233b); }
main { width: min(960px, 100%); margin: 0 auto; padding: 24px 16px 48px; }
h1 { margin: 0 0 20px; font-size: clamp(1.6rem, 5vw, 2.4rem); }
h2 { font-size: 1.15rem; }
.card { background: rgba(18, 29, 49, .94); border: 1px solid #2a3b59; border-radius: 14px; padding: 18px; margin-bottom: 16px; box-shadow: 0 12px 35px rgba(0,0,0,.22); }
label { display: block; margin-bottom: 6px; color: #b8c6dc; }
input { width: 100%; padding: 12px; margin-bottom: 14px; border: 1px solid #415473; border-radius: 9px; background: #0e192b; color: white; font-size: 16px; }
/* Admin prepinac ostane kompaktny a skryty pre technika. */
.check-option { display: flex; gap: 9px; align-items: center; margin-bottom: 14px; }
.check-option[hidden] { display: none; }
.check-option input { width: auto; margin: 0; }
button, .button { display: inline-block; border: 0; border-radius: 9px; padding: 11px 15px; background: #2f80ed; color: white; font-weight: 700; text-decoration: none; cursor: pointer; font-size: 15px; }
button.secondary { background: #334763; }
button.danger { background: #c33c4a; }
button:disabled { opacity: .55; cursor: wait; }
.customer-start[hidden] { display: none; }
.customer-start { width: 100%; min-height: 58px; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.grow { flex: 1; }
.rooms { display: grid; gap: 12px; }
.room { border: 1px solid #314563; border-radius: 10px; padding: 14px; }
.room h3 { margin: 0 0 9px; }
.muted, #status { color: #a9b8ce; }
.error { color: #ff9b9b; }
.presence { padding: 12px; border-radius: 9px; font-weight: 800; text-align: center; }
.presence.waiting { background: #59491e; color: #ffe59b; }
.presence.connecting { background: #173f63; color: #a8d9ff; }
.presence.connected { background: #164b36; color: #9af0c5; }
.presence.disconnected { background: #632936; color: #ffc0c8; }
.diagnostics { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 0; }
.diagnostics div { padding: 10px; border-radius: 8px; background: #0e192b; }
.diagnostics dt { color: #93a6c1; font-size: .82rem; }
.diagnostics dd { margin: 4px 0 0; font-weight: 700; }
.video-grid { display: grid; gap: 12px; }
video { width: 100%; max-height: 70vh; border-radius: 12px; background: #03060b; object-fit: contain; }
.local-video { max-height: 55vh; }
@media (min-width: 760px) { .video-grid.two { grid-template-columns: 2fr 1fr; } }
