:root{--yellow:#ffd900;--yellow2:#ffea68;--green:#b8d653;--green2:#97bd2f;--ink:#25303b;--muted:#7b8490;--line:#edf0e8;--card:#fff;--bg:#fbfcf7;--danger:#d84b4b;--shadow:0 24px 70px rgba(74,83,38,.14)}*{box-sizing:border-box}body{margin:0;font-family:Inter,"Noto Sans Georgian",system-ui,-apple-system,Segoe UI,sans-serif;color:var(--ink);background:radial-gradient(circle at 10% 10%,rgba(255,217,0,.18),transparent 30%),radial-gradient(circle at 90% 15%,rgba(184,214,83,.18),transparent 25%),var(--bg);min-height:100vh}button,input,select,textarea{font:inherit}.hidden{display:none!important}.shell{min-height:100vh;display:grid;place-items:center;padding:28px}.auth-card{width:min(1020px,100%);min-height:650px;background:#fff;border-radius:34px;box-shadow:var(--shadow);overflow:hidden;display:grid;grid-template-columns:1.05fr .95fr;border:1px solid rgba(184,214,83,.22)}.brand-pane{position:relative;padding:54px;background:linear-gradient(145deg,#fffbe9,#f8ffe9);display:flex;flex-direction:column;justify-content:space-between;overflow:hidden}.brand-pane:before,.brand-pane:after{content:"";position:absolute;border-radius:999px}.brand-pane:before{width:340px;height:340px;background:rgba(255,217,0,.14);right:-120px;top:-80px}.brand-pane:after{width:220px;height:220px;background:rgba(184,214,83,.14);left:-90px;bottom:-70px}.brand-logo{width:170px;height:170px;object-fit:cover;border-radius:50%;box-shadow:0 14px 32px rgba(98,113,34,.12);position:relative;z-index:1}.brand-pane h1{font-size:48px;line-height:1.05;margin:24px 0 10px;max-width:450px}.brand-pane p{font-size:18px;color:#66705c;max-width:460px;line-height:1.7}.brand-badge{display:inline-flex;align-items:center;gap:9px;padding:10px 14px;background:#fff;border:1px solid #eef2df;border-radius:999px;width:max-content;font-weight:700;font-size:14px}.login-pane{padding:56px;display:flex;flex-direction:column;justify-content:center}.mini-logo{width:72px;height:72px;border-radius:50%;object-fit:cover;margin-bottom:18px}.eyebrow{font-size:13px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#8da632}.login-pane h2{font-size:32px;margin:7px 0 8px}.sub{color:var(--muted);line-height:1.6;margin-bottom:26px}.field{display:grid;gap:8px;margin:14px 0}.field label{font-size:14px;font-weight:750}.field input,.field select,.field textarea{width:100%;border:1px solid #dfe5d9;border-radius:15px;padding:14px 15px;outline:0;background:#fff;transition:.2s}.field textarea{min-height:110px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:#b7cf51;box-shadow:0 0 0 4px rgba(184,214,83,.13)}.btn{border:0;border-radius:15px;padding:14px 18px;font-weight:800;cursor:pointer;transition:.18s}.btn:hover{transform:translateY(-1px)}.btn-primary{background:linear-gradient(135deg,var(--yellow),#ffe85c);color:#242b18;box-shadow:0 10px 24px rgba(255,217,0,.28)}.btn-secondary{background:#f3f6eb;color:#59652d}.btn-danger{background:#fff0f0;color:#b83a3a}.btn-dark{background:#263023;color:#fff}.full{width:100%}.links{display:flex;justify-content:space-between;gap:15px;margin-top:18px;flex-wrap:wrap}.links a{color:#708721;text-decoration:none;font-weight:750}.msg{min-height:22px;margin-top:12px;color:#b03b3b;font-size:14px}.msg.ok{color:#64801e}.topbar{height:86px;background:#fff;border-bottom:1px solid #ecefe6;display:flex;align-items:center;justify-content:space-between;padding:0 max(22px,calc((100vw - 1400px)/2));position:sticky;top:0;z-index:20}.topbrand{display:flex;align-items:center;gap:14px;font-weight:900}.topbrand img{width:54px;height:54px;border-radius:50%;object-fit:cover}.top-actions{display:flex;align-items:center;gap:10px}.container{width:min(1400px,calc(100% - 36px));margin:28px auto 50px}.welcome{background:linear-gradient(135deg,#fff8c8,#f0ffd6);padding:26px 30px;border-radius:25px;border:1px solid #eef0d7;display:flex;justify-content:space-between;align-items:center;gap:20px}.welcome h1{margin:0;font-size:30px}.welcome p{margin:8px 0 0;color:#6e7766}.profile-grid{display:grid;grid-template-columns:1.2fr 2fr;gap:22px;margin-top:22px}.card{background:#fff;border:1px solid #edf0e8;border-radius:23px;padding:22px;box-shadow:0 10px 30px rgba(47,56,33,.05)}.card h3{margin:0 0 16px}.profile-row{display:grid;grid-template-columns:50px 1fr;gap:14px;align-items:center;padding:13px 0;border-bottom:1px solid #f0f2ed}.avatar{width:50px;height:50px;border-radius:15px;background:linear-gradient(135deg,var(--yellow),var(--green));display:grid;place-items:center;font-weight:900;font-size:20px}.muted{color:var(--muted);font-size:13px}.camera-layout{display:grid;grid-template-columns:250px 1fr;gap:18px}.channel-list{display:grid;gap:10px;align-content:start}.channel-btn{border:1px solid #e6eadf;background:#fff;border-radius:15px;padding:13px 14px;text-align:left;cursor:pointer;font-weight:800;display:flex;align-items:center;gap:9px}.channel-btn.active{border-color:#b6d24b;background:#f8ffe5}.dot{width:9px;height:9px;border-radius:50%;background:var(--green)}.player-wrap{aspect-ratio:16/9;background:#172018;border-radius:19px;overflow:hidden;display:grid;place-items:center;position:relative}.player-wrap video,.player-wrap iframe{width:100%;height:100%;border:0;background:#111}.player-empty{color:#dbe6d2;text-align:center;padding:24px}.admin-wrap{display:grid;grid-template-columns:250px 1fr;min-height:calc(100vh - 86px)}.sidebar{background:#fff;border-right:1px solid #ecefe6;padding:22px}.navbtn{width:100%;border:0;background:transparent;border-radius:13px;padding:13px 14px;text-align:left;font-weight:800;cursor:pointer;margin-bottom:6px}.navbtn.active{background:#f6f9ec;color:#718a1e}.admin-main{padding:28px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.section-head h1{margin:0;font-size:30px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:22px}.stat{background:#fff;border:1px solid #edf0e8;border-radius:19px;padding:18px}.stat b{font-size:28px;display:block;margin-top:6px}.table-card{background:#fff;border:1px solid #edf0e8;border-radius:20px;overflow:hidden}.record{display:grid;grid-template-columns:1.2fr 1fr .8fr auto;gap:14px;align-items:center;padding:15px 18px;border-bottom:1px solid #f0f2ed}.record:last-child{border-bottom:0}.pill{padding:6px 9px;border-radius:999px;font-size:12px;font-weight:800;width:max-content}.pill.on{background:#eff8d9;color:#68801f}.pill.off{background:#fff0f0;color:#b23f3f}.action{border:0;background:#f4f6ef;border-radius:10px;padding:8px 10px;cursor:pointer}.modal{position:fixed;inset:0;background:rgba(24,31,22,.45);display:grid;place-items:center;padding:20px;z-index:50}.modal-card{width:min(720px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:24px;padding:25px;box-shadow:var(--shadow)}.modal-head{display:flex;justify-content:space-between;align-items:center}.modal-head h2{margin:0}.close{border:0;background:#f3f5ef;border-radius:11px;width:38px;height:38px;cursor:pointer}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.span2{grid-column:1/-1}.check-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.check{display:flex;gap:9px;align-items:center;padding:10px;border:1px solid #e8ebdf;border-radius:12px}.empty{padding:34px;text-align:center;color:var(--muted)}.notice{padding:13px 15px;border-radius:13px;background:#fff9d9;border:1px solid #f3e699;color:#665f24;font-size:14px}.danger-note{background:#fff3f3;border-color:#ffd4d4;color:#9c4141}.toolbar{display:flex;gap:10px;align-items:center}.small{font-size:13px}.footer-note{text-align:center;color:#8b9286;font-size:13px;padding:18px}@media(max-width:900px){.auth-card{grid-template-columns:1fr}.brand-pane{display:none}.login-pane{padding:38px 26px}.profile-grid{grid-template-columns:1fr}.camera-layout{grid-template-columns:1fr}.admin-wrap{grid-template-columns:1fr}.sidebar{display:flex;overflow:auto;border-right:0;border-bottom:1px solid #ecefe6}.navbtn{min-width:max-content}.stats{grid-template-columns:1fr 1fr}.record{grid-template-columns:1fr auto}.record .hide-mobile{display:none}.form-grid{grid-template-columns:1fr}.span2{grid-column:auto}.check-grid{grid-template-columns:1fr}.topbar{padding:0 18px}}@media(max-width:520px){.shell{padding:12px}.auth-card{border-radius:23px}.login-pane{padding:28px 20px}.stats{grid-template-columns:1fr}.welcome{align-items:flex-start;flex-direction:column}.topbrand span{display:none}.container{width:min(100% - 20px,1400px)}}
.search-input{min-width:240px;max-width:420px;padding:12px 14px;border:1px solid #e6e9e3;border-radius:14px;background:#fff;font:inherit}.channel-btn small{display:block;font-weight:600;opacity:.65;margin-top:3px}.sidebar{position:sticky;top:84px;align-self:start}.record .toolbar{justify-content:flex-end}.table-card .record{transition:.18s ease}.table-card .record:hover{background:#fbfcf7}@media(max-width:760px){.search-input{min-width:100%;max-width:100%}.sidebar{position:static;display:flex;overflow:auto;gap:8px;padding-bottom:8px}.sidebar .navbtn{white-space:nowrap}.admin-wrap{display:block}.record{grid-template-columns:1fr auto}.record .hide-mobile{display:none}}
.search-input{border:1px solid #dfe5d9;border-radius:12px;padding:10px 12px;background:#fff;outline:0}.camera-filters{flex-wrap:wrap}.camera-group+.camera-group{border-top:8px solid #f6f8f1}.camera-group-title{padding:13px 18px;background:#f6f9ec;font-weight:900;color:#657a27;display:flex;justify-content:space-between}.camera-group-title span{font-size:12px;color:var(--muted)}.camera-readonly{background:#f8ffe9}.child-avatar{font-size:12px}.channel-group-title{font-size:12px;font-weight:900;color:#718a1e;text-transform:uppercase;letter-spacing:.05em;padding:8px 4px 2px;margin-top:4px}

.child-editor{background:#fbfcf7}.child-editor .check-grid{max-height:220px;overflow:auto}.simple-profile{grid-template-columns:1fr}.topbrand{min-height:54px}.brand-pane{justify-content:center}.brand-pane h1{margin-top:0}
