:root{color-scheme:dark;--bg:#091724;--surface:#122737;--alt:#10222f;--active:#1d394c;--border:#264555;--text:#fff;--muted:#a9bdca;--bronze:#b87333;--cyan:#67e1d4;font-family:"Segoe UI",system-ui,sans-serif;font-size:17px}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:var(--bg);color:var(--text)}.brand,main,footer{max-width:1060px;margin:auto;padding:24px}.brand{display:flex;align-items:center;gap:14px;border-bottom:1px solid var(--border)}.brand h1{margin:0;font-size:27px}.brand p{margin:4px 0 0;color:var(--muted);font-size:15px}.brand #logout{margin-left:auto}h2{font-size:24px;margin:0 0 12px}h3{margin:0 0 10px}p{line-height:1.5}button,input{font:inherit;border:1px solid var(--border);border-radius:8px;min-height:48px;background:var(--active);color:var(--text);padding:10px 16px}button{cursor:pointer;font-weight:600}button:hover{border-color:var(--cyan)}button:focus-visible,input:focus-visible{outline:3px solid var(--cyan);outline-offset:3px}button:disabled{opacity:.6;cursor:wait}.primary{background:var(--bronze);color:#fff}.panel{border:1px solid var(--border);border-radius:14px;padding:24px;background:var(--surface)}#login{max-width:520px;margin:32px auto}form{display:grid;gap:14px}label{font-weight:600}input{min-width:0;width:100%;background:var(--alt)}nav{display:flex;gap:8px;margin-bottom:28px}nav button{flex:1;min-height:56px}nav .selected{border:2px solid var(--bronze);background:var(--surface)}.section-title{display:flex;gap:12px;align-items:center;justify-content:space-between}.section-title p{margin:0;color:var(--muted)}.clock-note{font-size:14px;color:var(--muted);margin:20px 0 8px}.visits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:24px}.visit{border:1px solid var(--border);background:var(--surface);border-radius:14px;overflow:hidden}.preview{width:100%;aspect-ratio:16/9;background:var(--alt);display:grid;place-items:center;padding:0;border:0;border-radius:0;position:relative}.preview img{height:100%;width:100%;object-fit:cover}.preview .placeholder{color:var(--muted);font-size:15px;padding:20px}.play-mark{position:absolute;background:var(--surface);border:1px solid var(--border);width:52px;height:52px;border-radius:50%;display:grid;place-items:center;font-size:24px;color:var(--cyan);padding-left:4px}.visit-body{padding:18px}.visit-heading{display:flex;gap:12px;justify-content:space-between;align-items:flex-start}.visit h3{font-size:20px;margin:0 0 4px}.meta{margin:0 0 14px;color:var(--muted);font-size:15px}.badge{color:var(--cyan);font-size:14px;white-space:nowrap}.actions{display:flex;flex-wrap:wrap;gap:8px}.actions button{flex:1;min-width:110px}.visit-status{font-size:14px;min-height:21px;margin:12px 0 0;color:var(--muted)}.live-placeholder{text-align:center;max-width:660px;margin:24px auto}.live-placeholder img{margin:20px}dialog{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:14px;width:min(900px,calc(100% - 24px));padding:24px;max-height:95dvh}dialog::backdrop{background:#000b}dialog video{display:block;width:100%;max-height:60dvh;border-radius:8px;background:#000}dialog .close{float:right;width:48px;padding:0}.player-actions{display:flex;gap:12px;margin-top:18px}.player-actions button{flex:1}.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);max-width:90%;padding:16px 20px;border:1px solid var(--border);border-radius:8px;background:var(--active);box-shadow:0 8px 32px #0006;z-index:5}footer{text-align:center;color:var(--muted);font-size:13px}@media(max-width:620px){.brand,main{padding:18px 16px}.brand p{font-size:13px}.brand #logout{font-size:13px;padding:8px}.visits{grid-template-columns:1fr;gap:18px}nav{position:sticky;top:0;background:var(--bg);padding:8px 0;z-index:2}dialog{padding:18px}.section-title h2{font-size:22px}}@media(prefers-color-scheme:light){:root{color-scheme:light;--bg:#f3f5f7;--surface:#fff;--alt:#eef2f5;--active:#e5edf2;--border:#c7d0d8;--text:#17212b;--muted:#64727f;--cyan:#087f7b}}
.live-panel{padding:20px}.live-frame{display:grid;place-items:center;min-height:180px;background:var(--alt);border:1px solid var(--border);border-radius:14px;overflow:hidden}.live-frame img{display:block;width:100%;height:auto;max-height:70vh;object-fit:contain}.live-frame span{padding:24px;color:var(--muted);text-align:center}
.brand #login-button{margin-left:auto}
