/* Web panel additions on top of design.css: auth, dialogs, toasts, live map, charts, calendar, chat */
html,body{margin:0;background:#F4F6FA}
body{font-family:"Plus Jakarta Sans",system-ui,sans-serif;color:#0B1220}
.web{background-color:#F4F6FA;background-image:radial-gradient(#E1E6EF 1px,transparent 1.2px)}
:focus-visible{outline:3px solid #3B5BFD;outline-offset:2px;border-radius:10px}
[hidden]{display:none !important}
.side{align-self:flex-start}
.side .sl{text-decoration:none}
.main{gap:18px}
.wh{background:rgba(244,246,250,.86);-webkit-backdrop-filter:saturate(1.6) blur(14px);backdrop-filter:saturate(1.6) blur(14px);position:sticky;top:0}
.wh .sub{max-width:62ch}
.menu-btn{display:none}
@media (max-width:900px){
  .side.closed .side-rest{display:none}
  .menu-btn{display:inline-flex}
}
.loading{display:flex;align-items:center;justify-content:center;min-height:240px;color:#5A6478;font-weight:700;gap:10px}
.spin{width:22px;height:22px;border-radius:50%;border:3px solid #DCE2EB;border-top-color:#3B5BFD;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.spin{animation-duration:2.4s}}
.empty{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:18px;border-radius:18px;background:#F7F9FC;border:1px dashed #D3DAE6;color:#36415A;font-size:14px;font-weight:600}
.empty b{font-size:15px;color:#0B1220}
.errbox{padding:14px 16px;border-radius:16px;background:#FFF1F0;border:1px solid #FFC9C4;color:#8E1B13;font-weight:700}
.pro-lock{display:flex;align-items:center;gap:12px;padding:16px;border-radius:18px;background:linear-gradient(135deg,#FFF8E1,#FFF1C7);border:1px solid #F6E2A8;color:#5C3D00}
.pro-lock svg{color:#C98F00;flex-shrink:0}
.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
.split.wide-left{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}
.split.wide-right{grid-template-columns:minmax(0,1fr) minmax(0,1.6fr)}
@media (max-width:1100px){.split,.split.wide-left,.split.wide-right{grid-template-columns:minmax(0,1fr)}}
.stat{display:flex;flex-direction:column;gap:4px;padding:16px;border-radius:20px;background:#fff;border:1px solid #E2E7EF;box-shadow:0 1px 0 rgba(11,18,32,.03),0 14px 28px -20px rgba(11,18,32,.26);min-width:0}
.stat .big{font-size:30px;line-height:34px}
.stat .row{min-height:22px}
.up{color:#15803D}.down{color:#B42318}
.mono{font-variant-numeric:tabular-nums}
.tbl td.wrapcell{white-space:normal;min-width:180px}
.tbl .act{display:flex;gap:6px;justify-content:flex-end}
.tbl tr.sel td{background:#F2F5FF}
.tbl.click tbody tr{cursor:pointer}
.ok-t{color:#15803D;font-weight:800}.warn-t{color:#B45309;font-weight:800}.bad-t{color:#B42318;font-weight:800}
.sw{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #EEF1F6}
.sw:last-child{border-bottom:none}
.sw .grow{display:flex;flex-direction:column;gap:2px}
.pill-row{display:flex;gap:6px;flex-wrap:wrap}
.pickbtn{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 12px 0 6px;border-radius:12px;background:#fff;border:1px solid #E2E7EF;font-size:13px;font-weight:700;color:#36415A}
.pickbtn.on{background:#0B1220;border-color:#0B1220;color:#fff}
.pickbtn .av{width:28px;height:28px;border-radius:9px;font-size:11px}
.alert-row{display:flex;gap:12px;align-items:flex-start;width:100%;text-align:left;padding:12px;border-radius:16px;background:#fff;border:1px solid #E2E7EF;color:#0B1220}
.alert-row.unread{border-color:#B8C6FF;background:#FAFBFF}
.alert-row.on{border-color:#3B5BFD;box-shadow:0 0 0 3px rgba(59,91,253,.16)}
.dotnew{width:8px;height:8px;border-radius:50%;background:#3B5BFD;flex-shrink:0;margin-top:6px}
.sev{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:7px;font-size:11px;font-weight:800}
.sev.urgent{background:#FEE4E2;color:#B42318}.sev.high{background:#FFEDD5;color:#9A3412}.sev.heads_up{background:#FFF1C7;color:#8A5A00}.sev.info{background:#EDF1F7;color:#36415A}
.daygrp{font-size:11px;font-weight:800;letter-spacing:.8px;text-transform:uppercase;color:#5A6478;margin:10px 2px 2px}
/* dialogs */
.dlg-back{position:fixed;inset:0;background:rgba(11,18,32,.46);display:flex;align-items:flex-start;justify-content:center;padding:6vh 16px;z-index:50;overflow-y:auto}
.dlg{width:min(560px,100%);background:#fff;border-radius:26px;border:2px solid #0B1220;box-shadow:0 6px 0 #0B1220,0 30px 60px -20px rgba(11,18,32,.6);padding:22px;display:flex;flex-direction:column;gap:14px}
.dlg h2{margin:0;font-family:"Bricolage Grotesque","Plus Jakarta Sans",sans-serif;font-size:22px;font-weight:800;letter-spacing:-.5px}
.dlg .fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.dlg .fields .full{grid-column:1/-1}
@media (max-width:560px){.dlg .fields{grid-template-columns:minmax(0,1fr)}}
.field{display:flex;flex-direction:column;gap:6px;min-width:0}
.field>span{font-size:12px;font-weight:800;color:#36415A}
.field small{font-size:12px;font-weight:600;color:#5A6478}
.field input,.field select,.field textarea{height:46px;padding:0 12px;border-radius:13px;border:1px solid #DCE2EB;background:#fff;font-size:14px;font-weight:600;width:100%;box-shadow:inset 0 1px 2px rgba(11,18,32,.04)}
.field textarea{height:auto;min-height:90px;padding:10px 12px;resize:vertical;line-height:20px}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:#3B5BFD;box-shadow:0 0 0 3px rgba(59,91,253,.18)}
.field .chk{display:flex;flex-wrap:wrap;gap:6px}
.field .chk label{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 10px;border-radius:10px;border:1px solid #E2E7EF;font-size:13px;font-weight:700;cursor:pointer}
.field .chk input{width:auto;height:auto;box-shadow:none}
.dlg .err{color:#B42318;font-size:13px;font-weight:700}
.dlg-acts{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
/* toast */
.toasts{position:fixed;right:18px;bottom:18px;display:flex;flex-direction:column;gap:8px;z-index:60}
.toast{max-width:360px;padding:12px 14px;border-radius:14px;background:#0B1220;color:#fff;font-size:14px;font-weight:700;box-shadow:0 3px 0 #3B5BFD,0 16px 30px -12px rgba(11,18,32,.6);animation:tin .18s ease-out}
.toast.bad{box-shadow:0 3px 0 #E5372B,0 16px 30px -12px rgba(11,18,32,.6)}
@keyframes tin{from{transform:translateY(8px);opacity:0}}
/* live map (Leaflet) */
.lmap{height:420px;border-radius:18px;overflow:hidden;background:#E7EEF2;position:relative;z-index:0}
.lmap.tall{height:560px}
.leaflet-tile-pane{filter:saturate(.3) brightness(1.07) contrast(.9) hue-rotate(-8deg)}
.leaflet-container{font-family:"Plus Jakarta Sans",system-ui,sans-serif;background:#E7EEF2}
.tt-pin{position:relative}
.tt-pin .pin{position:absolute;left:0;top:0}
.tt-pin .pin.sm{width:30px;height:30px;border-radius:10px;font-size:12px}
.leaflet-div-icon{background:none;border:none}
.tt-label{padding:2px 8px;border-radius:999px;background:rgba(255,255,255,.95);font-size:10px;font-weight:800;white-space:nowrap;box-shadow:0 2px 8px rgba(11,18,32,.15);letter-spacing:.4px;text-transform:uppercase;display:inline-block}
.map-legend{position:absolute;left:12px;bottom:12px;z-index:500;display:flex;gap:6px;flex-wrap:wrap}
/* charts */
.chart-bars{display:flex;align-items:flex-end;gap:10px;height:170px;padding-top:8px}
.chart-bars .col{flex:1 1 0;align-items:center;gap:6px;height:100%;justify-content:flex-end;font-size:11px;font-weight:700;color:#5A6478;min-width:0}
.chart-bars .stack{display:flex;flex-direction:column-reverse;width:100%;max-width:46px;border-radius:9px 9px 5px 5px;overflow:hidden;background:#EEF1F6}
.chart-bars .stack>i{display:block;width:100%}
.chart-bars .stack>*+*{margin-left:0}
.chart-bars .v{font-size:11px;font-weight:800;color:#36415A}
.legend{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;font-weight:700;color:#36415A}
.legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;vertical-align:-1px}
.hbar{display:grid;grid-template-columns:110px minmax(0,1fr) 64px;align-items:center;gap:10px;font-size:13px;font-weight:700;padding:5px 0}
.hbar .tr{height:12px;border-radius:999px;background:#EEF1F6;overflow:hidden}
.hbar .tr>i{display:block;height:100%;border-radius:999px}
.sleepgrid{display:flex;flex-direction:column;gap:6px}
.sleepgrid .r{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:8px;font-size:11px;font-weight:800;color:#5A6478}
.sleepgrid .t{position:relative;height:18px;border-radius:6px;background:#F1F4F9}
.sleepgrid .t i{position:absolute;top:2px;bottom:2px;border-radius:4px;background:#8B5CF6}
.sleepgrid .t i.n{background:#312E81}
.sleepgrid .ax{display:flex;justify-content:space-between;margin-left:48px;font-size:10px;font-weight:800;color:#7D89A1}
.hourbars{display:grid;grid-template-columns:repeat(24,minmax(0,1fr));gap:2px;align-items:end;height:60px}
.hourbars i{display:block;border-radius:3px 3px 1px 1px;background:#3B5BFD;min-height:2px}
.hourbars i.z{background:#E6EBF2}
/* calendar */
.calw{overflow-x:auto}
.calg{display:grid;grid-template-columns:58px repeat(7,minmax(110px,1fr));position:relative;min-width:860px}
.calg .hd{padding:10px 8px;font-size:12px;font-weight:800;color:#36415A;background:#F7F9FC;border-bottom:1px solid #EEF1F6;border-left:1px solid #EEF1F6;position:sticky;top:0}
.calg .hd.today{background:#3B5BFD;color:#fff;border-radius:10px 10px 0 0}
.calg .hr{height:46px;border-bottom:1px solid #F1F4F9;font-size:10.5px;font-weight:800;color:#7D89A1;padding:2px 6px;text-align:right}
.calg .dc{position:relative;border-left:1px solid #EEF1F6}
.calg .dc .slot{height:46px;border-bottom:1px solid #F1F4F9}
.cev{position:absolute;left:4px;right:4px;border-radius:10px;padding:4px 7px;font-size:11.5px;font-weight:800;line-height:15px;overflow:hidden;border:1px solid rgba(11,18,32,.08);color:#0B1220;cursor:pointer;text-align:left}
.cev small{display:block;font-size:10.5px;font-weight:700;opacity:.75}
.cev.ov{background:repeating-linear-gradient(-45deg,#F1F4F9 0 6px,#E9EDF4 6px 12px);color:#36415A;cursor:default}
/* chat */
.chatw{display:grid;grid-template-columns:300px minmax(0,1fr) 280px;gap:16px;align-items:start}
@media (max-width:1300px){.chatw{grid-template-columns:260px minmax(0,1fr)}.chatw .chat-side{display:none}}
@media (max-width:820px){.chatw{grid-template-columns:minmax(0,1fr)}}
.chatlist{display:flex;flex-direction:column;gap:6px}
.chatlist button{display:flex;gap:10px;align-items:center;width:100%;text-align:left;padding:10px;border-radius:16px;background:#fff;border:1px solid #E2E7EF}
.chatlist button.on{border-color:#3B5BFD;box-shadow:0 0 0 3px rgba(59,91,253,.14)}
.msgs{display:flex;flex-direction:column;gap:10px;height:56vh;min-height:360px;overflow-y:auto;padding:6px 4px 10px}
.msg{display:flex;flex-direction:column;gap:3px;max-width:78%}
.msg.mine{align-self:flex-end;align-items:flex-end}
.msg .meta{font-size:11px;font-weight:700;color:#5A6478}
.msg .bub{max-width:100%;white-space:pre-wrap;word-wrap:break-word}
.msg .card{padding:12px;border-radius:18px}
.composer{display:flex;gap:8px;align-items:center;padding-top:10px;border-top:1px solid #EEF1F6}
.composer input{flex:1 1 auto;min-width:0;height:46px;border-radius:14px;border:1px solid #DCE2EB;padding:0 14px;font-size:14px;font-weight:600}
/* auth */
.teacher-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 24px;background:#0B1220;color:#fff}
.print-only{display:none}
@media print{.side,.wh .row,.toasts{display:none !important}.main{padding:0}.card{break-inside:avoid}}

/* checked at 1024 px: segmented controls shrink inside narrow cards instead of spilling out; the dark live table keeps its text readable on hover */
.seg{flex-shrink:1;min-width:0;max-width:100%}
.seg>*{min-width:0;overflow:hidden;text-overflow:ellipsis;padding:0 8px;display:block;line-height:32px;text-align:center}
.sh{flex-wrap:wrap;row-gap:8px}
.card.dark .tbl tr:hover td{background:rgba(255,255,255,.06)}
.card.dark .tbl td,.card.dark .tbl th{border-bottom-color:rgba(255,255,255,.08)}
/* a table wider than its card scrolls sideways: a soft shadow on the edge says there is more */
.card:not(.dark) .tblw{background:linear-gradient(90deg,#fff 30%,rgba(255,255,255,0)) 0 0/40px 100% no-repeat local,linear-gradient(270deg,#fff 30%,rgba(255,255,255,0)) 100% 0/40px 100% no-repeat local,
  radial-gradient(farthest-side at 0 50%,rgba(11,18,32,.14),transparent) 0 0/12px 100% no-repeat scroll,radial-gradient(farthest-side at 100% 50%,rgba(11,18,32,.14),transparent) 100% 0/12px 100% no-repeat scroll}

/* ───────────── sign in / sign up: the apps' look (ink outlines, hard drop shadows, dotted ground, splash navy) */
.auth{--ink:#0B1220;--blue:#3B5BFD;--blueSh:#1B2FA6;--sub:#5A6478;min-height:100vh;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);background:#F4F6FA radial-gradient(#E1E6EF 1.1px,transparent 1.4px) 0 0/18px 18px;color:var(--ink)}
.auth .art{position:relative;overflow:hidden;background:radial-gradient(60% 50% at 50% 40%,#fff,transparent 72%),radial-gradient(#C9D3FF 1.2px,transparent 1.5px) 0 0/18px 18px,linear-gradient(160deg,#EEF2FF,#DCE4FF);color:var(--ink);padding:36px 44px;display:flex;flex-direction:column;gap:22px;border-right:2px solid var(--ink)}
.auth .art-top{display:flex;align-items:center;gap:10px}
.auth .art-top .wm{font-size:22px;color:var(--ink)}.auth .art .wm>i{color:#3344E6}
.auth .art-hero{position:relative;flex:1;min-height:300px;display:grid;place-items:center}
.auth .ring{position:absolute;left:50%;top:50%;border-radius:50%;translate:-50% -50%;border:1.5px solid rgba(59,91,253,.16)}
.auth .ring.r1{width:330px;height:330px}
.auth .ring.r2{width:262px;height:262px;border-color:rgba(59,91,253,.24)}
.auth .ring.r3{width:194px;height:194px;border:1.5px dashed rgba(59,91,253,.4);animation:tt-spin 40s linear infinite}
.auth .ring.r1::before,.auth .ring.r1::after,.auth .ring.r2::before,.auth .ring.r2::after{content:"";position:absolute;width:10px;height:10px;border-radius:50%;box-shadow:0 0 0 6px var(--g)}
.auth .ring.r1{animation:tt-spin 60s linear infinite}.auth .ring.r2{animation:tt-spin 45s linear infinite reverse}
.auth .ring.r1::before{--g:rgba(14,165,233,.25);background:#0EA5E9;left:18px;top:62px}
.auth .ring.r1::after{--g:rgba(249,115,22,.25);background:#F97316;right:30px;bottom:44px}
.auth .ring.r2::before{--g:rgba(139,92,246,.25);background:#8B5CF6;right:2px;top:96px}
.auth .ring.r2::after{--g:rgba(236,72,153,.25);background:#EC4899;left:34px;bottom:22px}
@keyframes tt-spin{to{rotate:360deg}}
.auth .bigmark{position:relative;width:120px;height:120px;border-radius:27px;border:2px solid var(--ink);box-shadow:0 5px 0 var(--ink),0 24px 48px -14px rgba(59,91,253,.55)}
.auth .ping{position:absolute;display:flex;align-items:center;gap:10px;padding:10px 14px 10px 10px;border-radius:18px;background:#fff;color:var(--ink);border:2px solid var(--ink);box-shadow:0 4px 0 var(--ink);max-width:260px}
.auth .ping b{font-size:13.5px;font-weight:800;line-height:18px}.auth .ping small{font-size:12px;font-weight:600;color:var(--sub);line-height:16px}
.auth .ping.pa{left:4%;top:12%;rotate:-2deg}.auth .ping.pb{right:3%;bottom:10%;rotate:2deg}
.auth .pav,.auth .pic{flex:none;width:34px;height:34px;border-radius:11px;display:grid;place-items:center;font-weight:800;color:#fff;border:2px solid var(--ink);box-shadow:0 2px 0 var(--ink)}
.auth .pic{background:#8B5CF6}
.auth .art-copy{display:flex;flex-direction:column;gap:16px}
.auth .art h2{margin:0;font-family:"Bricolage Grotesque","Plus Jakarta Sans",sans-serif;font-size:36px;line-height:40px;font-weight:800;letter-spacing:-1px;max-width:15ch}
.auth .proof{margin:0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:8px}
.auth .proof li{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 14px;border-radius:999px;background:#fff;border:2px solid var(--ink);box-shadow:0 2px 0 var(--ink);font-size:13px;font-weight:800;color:var(--ink)}.auth .proof li svg{color:#3B5BFD}
.auth .art-foot{margin:0;display:flex;align-items:center;gap:7px;font-size:13px;font-weight:700;color:#36415A}
.auth .form{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:32px 20px}
.auth .card{width:min(440px,100%);background:#fff;border:2px solid var(--ink);border-radius:26px;box-shadow:0 5px 0 var(--ink);padding:28px}
.auth .box{display:flex;flex-direction:column;gap:14px}
.auth .hd{display:flex;flex-direction:column;gap:6px;margin-bottom:2px}
.auth h1{margin:0;font-family:"Bricolage Grotesque","Plus Jakarta Sans",sans-serif;font-size:30px;line-height:34px;font-weight:800;letter-spacing:-.8px}
.auth .hd p{margin:0;font-size:14.5px;line-height:21px;font-weight:600;color:var(--sub)}
.auth .tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border-radius:16px;background:#E9EDF4}
.auth .tabs button{height:42px;border:2px solid transparent;border-radius:12px;background:none;font:inherit;font-size:14px;font-weight:700;color:var(--sub);cursor:pointer}
.auth .tabs button.on{background:#fff;border-color:var(--ink);box-shadow:0 2px 0 var(--ink);color:var(--ink);font-weight:800}
.auth .fld{display:flex;flex-direction:column;gap:6px;min-width:0}
.auth .fl{font-size:13px;font-weight:800}
.auth .fi{position:relative;display:flex;align-items:center;gap:10px;height:54px;padding:0 14px;border-radius:16px;background:#fff;border:2px solid var(--ink);box-shadow:0 3px 0 var(--ink);color:var(--sub);transition:border-color .12s,box-shadow .12s}
.auth .fi>svg{flex:none}
.auth .fi input,.auth .fi select{flex:1;min-width:0;height:100%;border:0;background:none;outline:0;padding:0;font:inherit;font-size:16px;font-weight:600;color:var(--ink)}
.auth .fi input::placeholder{color:#9AA4B6;font-weight:600}
.auth .fi:focus-within{border-color:var(--blue);box-shadow:0 3px 0 var(--blueSh),0 0 0 4px rgba(59,91,253,.16);color:var(--blue)}
.auth .eye{flex:none;width:38px;height:38px;margin-right:-8px;border:0;border-radius:10px;background:none;color:var(--sub);display:grid;place-items:center;cursor:pointer}
.auth .eye:hover{background:#EDF1F7;color:var(--ink)}
.auth .fld.bad .fi{border-color:#E5372B;box-shadow:0 3px 0 #8E1B13;color:#E5372B}
.auth .fe{font-size:13px;font-weight:700;color:#B42318}.auth .fe:empty{display:none}
.auth .caps,.auth .hint{font-size:12.5px;font-weight:700;color:#9A6700}
.auth .under{margin-top:-6px}
.auth .link{border:0;background:none;padding:4px 0;font:inherit;font-size:14px;font-weight:800;color:var(--blue);cursor:pointer}
.auth .link:hover{text-decoration:underline}.auth .link:disabled{color:#9AA4B6;cursor:default;text-decoration:none}
.auth .go{height:56px;border-radius:16px;font-size:16px;box-shadow:0 4px 0 var(--blueSh),0 12px 24px -12px rgba(59,91,253,.7);margin-top:4px}
.auth .go:active{translate:0 2px;box-shadow:0 2px 0 var(--blueSh)}
.auth .go.busy span::before{content:"";display:inline-block;width:16px;height:16px;margin-right:10px;vertical-align:-3px;border-radius:50%;border:2.5px solid rgba(255,255,255,.35);border-top-color:#fff;animation:tt-spin .7s linear infinite}
.auth .alert{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:16px;background:#FEE4E2;border:2px solid #E5372B;color:#8E1B13;font-size:14px;font-weight:700;line-height:20px}
.auth .alert[hidden]{display:none}.auth .alert svg{flex:none;margin-top:1px}
.auth .alt{display:flex;align-items:center;gap:10px;color:#7D89A1;font-size:12px;font-weight:800}
.auth .alt::before,.auth .alt::after{content:"";flex:1;height:2px;border-radius:2px;background:#E2E7EF}
.auth .opts{display:flex;flex-direction:column;gap:12px}
.auth .opt{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px 12px 12px;border-radius:20px;background:var(--t,#E8EDFF);border:2px solid var(--ink);box-shadow:0 4px 0 var(--ink);text-align:left;font:inherit;color:var(--ink);cursor:pointer;transition:translate .08s,box-shadow .08s}
.auth .opt:hover{translate:0 -1px;box-shadow:0 5px 0 var(--ink)}.auth .opt:active{translate:0 3px;box-shadow:0 1px 0 var(--ink)}
.auth .opt .col{flex:1;min-width:0;gap:2px}.auth .opt b{font-size:15px;font-weight:800}.auth .opt small{font-size:12.5px;font-weight:600;color:#36415A;line-height:17px}
.auth .oi{flex:none;width:40px;height:40px;border-radius:13px;display:grid;place-items:center;background:var(--i,#3B5BFD);color:#fff;border:2px solid var(--ink);box-shadow:0 2px 0 var(--ink)}
.auth .opt.lav{--t:#E8EDFF;--i:#3B5BFD}.auth .opt.lemon{--t:#FFF1C7;--i:#FFC93C}.auth .opt.lemon .oi{color:var(--ink)}.auth .opt.mint{--t:#DCFCE7;--i:#22C55E}.auth .opt.sky{--t:#E0F2FE;--i:#0EA5E9}
.auth .meter{display:flex;align-items:center;gap:10px;margin-top:-4px}
.auth .meter .bars{flex:1;display:grid;grid-template-columns:repeat(4,1fr);gap:5px}
.auth .meter i{height:7px;border-radius:4px;background:#E6EBF2}
.auth .meter[data-s="1"] i:nth-child(-n+1){background:#E5372B}.auth .meter[data-s="2"] i:nth-child(-n+2){background:#F97316}
.auth .meter[data-s="3"] i:nth-child(-n+3){background:#3B5BFD}.auth .meter[data-s="4"] i{background:#22C55E}
.auth .meter .lvl{min-width:62px;text-align:right;font-size:12.5px;font-weight:800;color:var(--sub)}
.auth .rules{margin:-4px 0 0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:6px}
.auth .rules li{display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 10px;border-radius:999px;background:#EDF1F7;font-size:12.5px;font-weight:700;color:#7D89A1}
.auth .rules li svg{opacity:.35}.auth .rules li.ok{background:#DCFCE7;color:#14532D}.auth .rules li.ok svg{opacity:1;color:#16A34A}
.auth .legal{margin:0;text-align:center;font-size:12.5px;font-weight:600;line-height:18px;color:var(--sub)}
.auth .legal a,.auth .legal-links a{color:var(--blue);font-weight:800;text-decoration:none}
.auth .legal-links{display:flex;gap:18px;font-size:13px}.auth .legal-links a{color:var(--sub);font-weight:700}
.auth .otp{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.auth .otp input{height:62px;min-width:0;border-radius:16px;border:2px solid var(--ink);box-shadow:0 3px 0 var(--ink);background:#fff;text-align:center;font-family:"Bricolage Grotesque",sans-serif;font-size:28px;font-weight:800;color:var(--ink);outline:0;caret-color:var(--blue)}
.auth .otp input:focus{border-color:var(--blue);box-shadow:0 3px 0 var(--blueSh),0 0 0 4px rgba(59,91,253,.16)}
.auth .otp.bad input{border-color:#E5372B;box-shadow:0 3px 0 #8E1B13}
.auth .sent{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:#E8EDFF;color:var(--blue);border:2px solid var(--ink);box-shadow:0 3px 0 var(--ink)}
.auth .resend{margin:0;text-align:center;font-size:14px;font-weight:600;color:var(--sub)}.auth .resend .wait{font-weight:700}
.auth .back{align-self:center;color:var(--sub);gap:6px}.auth .back svg{rotate:180deg}
.auth .steps{margin:0 0 4px;padding:0;list-style:none;display:flex;gap:6px;flex-wrap:wrap}
.auth .steps li{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:700;color:#7D89A1}
.auth .steps li+li::before{content:"";width:16px;height:2px;border-radius:2px;background:#DCE2EB;margin-right:2px}
.auth .steps span{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:11.5px;font-weight:800;background:#E9EDF4;color:var(--sub)}
.auth .steps li.on{color:var(--ink)}.auth .steps li.on span{background:var(--blue);color:#fff;box-shadow:0 2px 0 var(--blueSh)}
.auth .steps li.done span{background:#22C55E;color:#fff}
@media (max-width:900px){
  .auth{grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr}
  .auth .art{padding:18px 20px 64px;gap:12px;border-right:0;border-bottom:2px solid var(--ink)}
  .auth .art-hero,.auth .proof,.auth .art-foot{display:none}
  .auth .art h2{font-size:22px;line-height:27px;max-width:none}
  .auth .form{position:relative;z-index:1;justify-content:flex-start;margin-top:-52px;padding:0 14px 28px}
  .auth .card{padding:22px 18px}
}
@media (max-width:380px){.auth .otp{gap:5px}.auth .otp input{height:54px;font-size:24px}}
@media (prefers-reduced-motion:reduce){.auth .ring{animation:none}}
.auth .art .logo{box-shadow:0 0 0 2px var(--ink),0 3px 0 2px var(--ink)}

/* ───────────── brighter shell (was navy): light sidebar and blue feature cards, in the apps' ink-outline style */
.side{background:#fff;background-image:none;color:#36415A;border:2px solid #0B1220;box-shadow:0 5px 0 #0B1220,0 18px 34px -18px rgba(11,18,32,.35)}
.side .brand{color:#0B1220}.side .wm>i{color:#3344E6}
.side .logo{box-shadow:0 0 0 2px #0B1220,0 3px 0 2px #0B1220}
.side .menu-btn{border-color:#0B1220 !important;color:#0B1220 !important}
.side .sl{color:#36415A}
.side .sl:hover{background:#EEF2FF;color:#0B1220}
.side .sl.on{color:#0B1220}
.side .sl .ct.b{background:#E9EDF4;color:#36415A}
.side .fam{background:#F4F6FA;border:2px solid #0B1220;box-shadow:0 2px 0 #0B1220;color:#0B1220}
.side .fam .ok{color:#16A34A}.side .fam .ok .dot{background:#22C55E}
.side .fam .av.w{border-color:#fff}
.side .nplus{border:2px solid #0B1220;box-shadow:0 3px 0 #0B1220}.side .nsos{border:2px solid #0B1220;box-shadow:0 3px 0 #0B1220}
.side .plan{background:#EEF2FF;border:2px solid #0B1220;color:#0B1220}.side .plan .sub{color:#36415A}
.side .plan svg{color:#3B5BFD}
.teacher-top{background:#EEF2FF;color:#0B1220;border-bottom:2px solid #0B1220}
.card.dark{background:#3B5BFD linear-gradient(135deg,#5B78FF,#3344E6);border:2px solid #0B1220;box-shadow:0 5px 0 #0B1220,0 18px 36px -18px rgba(51,68,230,.6)}
.card.dark .sub,.card.dark .tbl th{color:#DCE3FF}
.card.dark .tbl tr:hover td{background:rgba(255,255,255,.1)}
.card.dark .tbl td,.card.dark .tbl th{border-bottom-color:rgba(255,255,255,.18)}

/* cartoon avatars (js/avatar.js) */
.av.bdg{background:#DCE4FF;padding:0;overflow:hidden;color:inherit}
.av.bdg svg{display:block;width:100%;height:100%}
.avgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.avpick{appearance:none;border:3px solid transparent;background:none;border-radius:22px;padding:6px;cursor:pointer;aspect-ratio:1;position:relative;transition:transform .12s}
.avpick:hover{transform:translateY(-2px)}
.avpick:focus-visible{outline:3px solid #3344E6;outline-offset:2px}
.avpick.on{border-color:#3344E6;background:#EEF2FF}
.avpick.on::after{content:"";position:absolute;top:4px;right:4px;width:22px;height:22px;border-radius:50%;background:#3344E6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/14px no-repeat;border:2px solid #fff}
@media (max-width:640px){.avgrid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:640px){.prow{flex-wrap:wrap}.prow .pacts{flex-basis:100%}}

/* ───────── phones and small tablets */
@media (max-width:1200px){.chg{grid-template-columns:240px minmax(0,1fr) !important}.chg>:nth-child(3){grid-column:1/-1}}
@media (max-width:900px){.rg,.cpg,.chg{grid-template-columns:minmax(0,1fr) !important}}
@media (max-width:640px){
  /* page header: search, bell and account on one line; the page's own buttons or tabs on a full line below */
  .wh .whr{width:100%;flex-wrap:wrap}
  .wh .whr>.inp{flex:1 1 auto;width:auto !important;min-width:0}
  .wh .whx{order:2;width:100%}
  .wh .whx>.btn{flex:1 1 auto;justify-content:center}
  .wh .whx>.seg{width:100% !important}
  /* tabs that don't fit scroll sideways instead of squashing */
  .seg{overflow-x:auto;scrollbar-width:none}
  .seg::-webkit-scrollbar{display:none}
  .seg>*{flex:1 0 auto}
  /* status card on Safety: text first, buttons underneath */
  .hero2{grid-template-columns:minmax(0,1fr) !important}
  .hero2>.row{flex-wrap:wrap}
  /* calendar controls wrap; "+ Event" takes the spare room */
  .calctl{width:100%}
  .calctl>.seg{flex:1 1 auto;width:auto !important}
  .calctl>.btn{margin-left:auto}
  /* map replay bar: name and day on top, slider below */
  #replay{right:14px !important;flex-wrap:wrap;row-gap:8px}
  #replay>.grow{order:5;flex-basis:100%}
  #replay>.col{width:auto !important;flex:1 1 auto;min-width:0}
  #replay>input[type=date]{max-width:150px}
  /* data tables become one card per row, column names as labels (labels set in app.js) */
  .tblw:has(> .tbl.tstk){overflow:visible;background:none !important}
  .tbl.tstk,.tbl.tstk tbody,.tbl.tstk tr,.tbl.tstk td{display:block;width:100%}
  .tbl.tstk thead{display:none}
  .tbl.tstk tr{border:1px solid #E2E7EF;border-radius:16px;padding:4px 14px;margin:0 0 10px;background:#fff}
  .tbl.tstk tr:hover td,.tbl.tstk tr.sel td{background:none}
  .tbl.tstk tr.sel{border-color:#3344E6;background:#F2F5FF}
  .tbl.tstk td{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px dashed #E8ECF3;white-space:normal;text-align:right;min-width:0 !important}
  .tbl.tstk td>*{min-width:0}
  .tbl.tstk td:last-child{border-bottom:none}
  .tbl.tstk td::before{content:attr(data-label);flex-shrink:0;text-align:left;font-size:10.5px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:#5A6478}
  .tbl.tstk td:first-child{justify-content:flex-start;text-align:left;font-weight:800;font-size:15px}
  .tbl.tstk td:first-child::before,.tbl.tstk td[data-label=""]::before{display:none}
  .tbl.tstk td[data-label=""]{justify-content:flex-end}
  .tbl.tstk .act{justify-content:flex-end;flex-wrap:wrap}
  .card.dark .tbl.tstk tr{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.18)}
  .card.dark .tbl.tstk td{border-bottom-color:rgba(255,255,255,.14)}
  .card.dark .tbl.tstk td::before{color:#DCE3FF}
}
@media (max-width:1100px){.medg{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.medg{grid-template-columns:minmax(0,1fr)}}
/* source labels never spill out of a narrow card: they wrap instead */
.src{max-width:100%;height:auto;min-height:22px;white-space:normal;line-height:1.25;padding-top:3px;padding-bottom:3px}
/* live map: full-width map below 1200px, members and places side by side underneath (stacked on phones) */
@media (max-width:1200px){#mapg{grid-template-columns:minmax(0,1fr) !important}}
@media (min-width:641px) and (max-width:1200px){#mapg>:nth-child(2){display:grid !important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}}
/* with the sidebar open, a 1024px window leaves ~730px for content: let side-by-side layouts stack sooner */
@media (max-width:1200px){
  .wg2{grid-template-columns:minmax(0,1fr) !important}
  .wh .whr{width:100%;flex-wrap:wrap}
  .wh .whr>.inp{flex:1 1 auto;width:auto !important;min-width:0}
  .wh .whx{order:2;width:100%}
  .wh .whx>.seg{width:auto !important;flex:1 1 auto;max-width:560px}
}
@media (min-width:1001px) and (max-width:1200px){.wg3{grid-template-columns:repeat(2,minmax(0,1fr)) !important}}

/* Safety: calm status card */
.sstat{padding:20px 22px;display:flex;flex-direction:column;gap:16px}
.sst-top{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.sst-ic{width:54px;height:54px;flex-shrink:0;border-radius:17px;background:#22C55E;color:#fff;display:flex;align-items:center;justify-content:center;border:2px solid #0B1220;box-shadow:0 3px 0 #0B1220}
.sst-t{flex:1 1 240px;min-width:0;gap:3px}
.sst-t .h2{font-size:24px;line-height:29px;margin:0;color:#fff}
.sst-sub{font-size:14px;font-weight:600;line-height:20px;color:#E4E9FF}
.sst-acts{display:flex;gap:8px;flex-wrap:wrap}
.sst-ghost{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.45);color:#fff;box-shadow:none}
.sst-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}
.sst-f{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.22);color:#fff;min-width:0}
.sst-f svg{flex-shrink:0;opacity:.9}
.sst-f span{display:flex;flex-direction:column;min-width:0}
.sst-f small{font-size:11px;font-weight:700;line-height:14px;color:#C7D2FF}
.sst-f b{font-size:14px;font-weight:800;line-height:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:640px){
  .sstat{padding:18px}
  .sst-t .h2{font-size:22px;line-height:27px}
  .sst-acts{width:100%}
  .sst-acts>*{flex:1 1 0;justify-content:center}
  .sst-facts{grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:8px}
  .sst-f{padding:9px 10px}
  .sst-f svg{display:none}
  .sst-f b{font-size:13px;white-space:normal}
}

/* ───────── phones (2.5.1): one slim sticky app bar instead of the outlined sidebar card, and a lighter page header */
@media (max-width:900px){
  .side{position:sticky;top:0;z-index:40;flex-basis:100%;margin:0;padding:8px 12px 8px 14px;border:0;border-radius:0;
    background:rgba(255,255,255,.92);-webkit-backdrop-filter:saturate(1.6) blur(14px);backdrop-filter:saturate(1.6) blur(14px);
    box-shadow:0 1px 0 #E2E7EF,0 10px 24px -20px rgba(11,18,32,.5)}
  .side .brand{padding:0;min-height:44px;font-size:19px;gap:9px}
  .side .logo{width:32px;height:32px;border-radius:9px;box-shadow:0 0 0 2px #0B1220,0 2px 0 2px #0B1220}
  .side .menu-btn{width:42px;height:42px;border-radius:13px;border:2px solid #0B1220 !important;box-shadow:0 2px 0 #0B1220 !important}
  .side:not(.closed){max-height:100dvh;overflow-y:auto;border-radius:0 0 24px 24px;box-shadow:0 2px 0 #0B1220,0 24px 48px -12px rgba(11,18,32,.45)}
  .side:not(.closed) .side-rest{padding:12px 2px 6px}
  .wh{position:relative;top:auto;min-height:0;padding:16px 16px 6px;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}
  .wh h1{font-size:24px;line-height:29px;letter-spacing:-.6px}
  .wh .sub{font-size:13px !important;line-height:18px}
  .wh .whr>.inp{height:42px !important}
  .wh .ib{width:42px;height:42px}
}

/* ───────── Devices & setup: fleet summary and one card per phone */
.fsum{display:flex;align-items:center;gap:18px;padding:14px 16px;border-radius:18px;background:#F7F9FC;border:1px solid #E7ECF3}
.fsum-n{display:flex;align-items:center;gap:10px;flex-shrink:0}
.fsum-n b{font-family:"Bricolage Grotesque","Plus Jakarta Sans",sans-serif;font-size:40px;line-height:40px;font-weight:800;letter-spacing:-1.4px}
.fsum-n span{font-size:12.5px;font-weight:700;color:#5A6478;line-height:17px}
.fsum-r{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:8px}
.fsum-bar{display:flex;gap:4px;height:12px}
.fsum-bar i{border-radius:999px;min-width:12px}
.fsum-bar .ok,.fsum-leg .ok{background:#22C55E}.fsum-bar .warn,.fsum-leg .warn{background:#F59E0B}.fsum-bar .bad,.fsum-leg .bad{background:#EF4444}
.fsum-leg{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12.5px;font-weight:700;color:#36415A}
.fsum-leg span{display:inline-flex;align-items:center;gap:6px}.fsum-leg i{width:8px;height:8px;border-radius:50%}
.dvgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
.dvc{--st:#22C55E;position:relative;display:flex;flex-direction:column;gap:12px;padding:16px 16px 12px 20px;border-radius:20px;background:#fff;border:1px solid #E2E7EF;
  box-shadow:0 1px 0 rgba(11,18,32,.03),0 16px 30px -24px rgba(11,18,32,.4);overflow:hidden}
.dvc::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--st)}
.dvc.warn{--st:#F59E0B}.dvc.bad{--st:#EF4444;border-color:#FBC9C4}
.dvc-h{display:flex;align-items:center;gap:12px}
.dvc-av{position:relative;flex-shrink:0;display:inline-flex}
.dvc-av .pres{position:absolute;right:-3px;bottom:-3px;width:13px;height:13px;border-radius:50%;border:2.5px solid #fff;background:#A0AABB}
.dvc-av .pres.on{background:#22C55E;box-shadow:0 0 0 3px rgba(34,197,94,.22)}.dvc-av .pres.idle{background:#F59E0B}
.dvc-n{display:flex;align-items:center;gap:8px;font-size:15.5px;font-weight:800;line-height:20px}
.dvc-role{font-size:10.5px;font-weight:800;letter-spacing:.2px;padding:2px 7px;border-radius:999px;background:#EEF2FF;color:#2A45D8;white-space:nowrap}
.bat{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;font-size:13px;color:#0B1220;font-variant-numeric:tabular-nums}
.bat-b{position:relative;width:26px;height:13px;border-radius:4px;border:2px solid currentColor;padding:1px;box-sizing:border-box}
.bat-b::after{content:"";position:absolute;right:-5px;top:3px;width:2.5px;height:4px;border-radius:0 2px 2px 0;background:currentColor}
.bat-b i{display:block;height:100%;border-radius:1.5px;background:currentColor}
.bat.ok{color:#15803D}.bat.mid{color:#B45309}.bat.low{color:#DC2626}.bat.chg{color:#2A45D8}
.bat b{font-weight:800;color:#0B1220}
.dvc-iss{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.dvc-iss li{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border-radius:14px;font-size:12.5px;line-height:17px;font-weight:600}
.dvc-iss li svg{flex-shrink:0;margin-top:1px}
.dvc-iss li b{font-size:13.5px;line-height:18px;font-weight:800}
.dvc-iss .bad{background:#FFF1F0;color:#8E1B13}.dvc-iss .warn{background:#FFF7E6;color:#7A4A00}.dvc-iss .info{background:#EEF2FF;color:#1E3AB8}
.dvc-good{display:flex;align-items:center;gap:8px;padding:9px 12px;border-radius:14px;background:#EFFBF3;color:#166534;font-size:13px;font-weight:800}
.dvc-pp{display:flex;flex-wrap:wrap;gap:6px}
.pp{display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 9px 0 7px;border-radius:999px;font-size:12px;font-weight:800;border:1px solid}
.pp.ok{background:#F2FBF5;border-color:#BBEACB;color:#166534}.pp.off{background:#FFF4F2;border-color:#F9C9C2;color:#B42318}
.dvc-f{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding-top:10px;border-top:1px dashed #E2E7EF;font-size:12.5px;font-weight:700;color:#5A6478}
.dvc-f .dot-sep{width:3px;height:3px;border-radius:50%;background:#B9C2D1}
.dvc-rm{margin-left:auto;width:34px;height:34px;border-radius:11px}
.sig{display:inline-flex;align-items:flex-end;gap:2px;height:15px}
.sig i{width:4px;border-radius:2px;background:#D5DBE5}.sig i.on{background:#0B1220}
@media (max-width:640px){
  .fsum{flex-direction:column;align-items:stretch;gap:12px}
  .dvgrid{grid-template-columns:minmax(0,1fr)}
}

/* ───────── 2.5.1 shared components */
/* number tiles: the big number in the display face, no lone tile on its own row */
.kpis>*{position:relative;overflow:hidden;min-width:0}
.kpis .big,.kpis .t1{font-family:"Bricolage Grotesque","Plus Jakarta Sans",sans-serif;letter-spacing:-.8px;font-variant-numeric:tabular-nums}
.kpis>*::after{content:"";position:absolute;right:-36px;top:-36px;width:104px;height:104px;border-radius:50%;background:radial-gradient(circle,rgba(59,91,253,.09),rgba(59,91,253,0) 68%);pointer-events:none}
@media (min-width:1101px){.kpis:has(>:nth-child(5):last-child){grid-template-columns:repeat(5,minmax(0,1fr))}}
@media (min-width:641px) and (max-width:1100px){.kpis{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}}
@media (max-width:640px){
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .kpis>*{padding:13px !important;gap:6px !important;min-height:0 !important}
  .kpis>:last-child:nth-child(odd){grid-column:1/-1}
  .kpis .big{font-size:23px !important;line-height:27px !important}
  .kpis .t1{font-size:20px !important;line-height:25px !important}
  .kpis .sub{font-size:12px;line-height:16px}
  .kpis .src{font-size:10.5px}
  .kpis .ic{width:28px !important;height:28px !important;border-radius:9px !important}
}

/* phone tables: a compact card per row, the name across the top and the details in two columns */
@media (max-width:640px){
  .tbl.tstk tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px;padding:12px 14px 8px;border-radius:18px;
    box-shadow:0 1px 0 rgba(11,18,32,.03),0 12px 24px -22px rgba(11,18,32,.5)}
  .tbl.tstk td{flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:2px;padding:7px 0;border-bottom:none;text-align:left;font-size:13.5px}
  .tbl.tstk td::before{font-size:11px;font-weight:700;letter-spacing:0;text-transform:none;color:#7A8499}
  .tbl.tstk td:first-child{grid-column:1/-1;flex-direction:row;align-items:center;padding:0 0 10px;margin-bottom:4px;border-bottom:1px solid #EEF1F6;font-size:15px}
  .tbl.tstk td[data-label=""],.tbl.tstk td.wrapcell{grid-column:1/-1}
  .tbl.tstk td[data-label=""]{align-items:flex-end;padding-top:4px}
  .tbl.tstk td:last-child{border-bottom:none}
  .tbl.tstk td:empty{display:none}
}

/* empty states: a calm, centred note instead of a grey box */
.empty{align-items:center;text-align:center;gap:6px;padding:26px 18px;border-radius:20px;background:linear-gradient(180deg,#FBFCFE,#F4F6FA);border:1.5px dashed #D3DAE6}
.empty::before{content:"";width:46px;height:46px;border-radius:15px;margin-bottom:4px;background:#EEF2FF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233B5BFD' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13h4l2 3h4l2-3h4'/%3E%3Cpath d='M5.5 5h13L21 13v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5z'/%3E%3C/svg%3E") center/22px no-repeat;box-shadow:inset 0 0 0 1px #DCE3FF}
.empty b{font-size:15.5px}

/* section headers keep their action on the same line on phones */
@media (max-width:640px){
  .sh{gap:8px}
  .sh .ttl{font-size:16.5px}
  .sh .btn.sm{height:36px;padding:0 12px}
}

/* ───────── Overview: Right now */
.rn{display:flex;flex-direction:column;gap:16px;padding:20px;border-top:4px solid #3B5BFD}
.rn-h{display:flex;align-items:center;gap:16px}
.rn-h h2{margin:0;font-family:"Bricolage Grotesque","Plus Jakarta Sans",sans-serif;font-size:24px;line-height:28px;font-weight:800;letter-spacing:-.6px}
.rn-h .eyebrow{color:#3344E6}
.rn-h>.btn{flex-shrink:0}
.rn-ring{position:relative;flex-shrink:0;width:64px;height:64px;display:grid;place-items:center}
.rn-ring svg{position:absolute;inset:0}
.rn-ring b{font-family:"Bricolage Grotesque","Plus Jakarta Sans",sans-serif;font-size:21px;font-weight:800;letter-spacing:-.6px;font-variant-numeric:tabular-nums}
.rn-ring small{font-size:13px;color:#7A8499;font-weight:700}
.rn-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:10px}
.rn-row{--f:#A0AABB;all:unset;box-sizing:border-box;display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:18px;background:#F7F9FC;border:1px solid #E7ECF3;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}
.rn-row:hover{background:#fff;border-color:#C9D3F5;transform:translateY(-1px)}
.rn-row:focus-visible{outline:3px solid #3B5BFD;outline-offset:2px}
.rn-row.live,.rn-row.fresh{--f:#22C55E}.rn-row.recent{--f:#F59E0B}.rn-row.stale{--f:#A0AABB}.rn-row.none{--f:#CBD3DF}
.rn-av{position:relative;flex-shrink:0;display:inline-flex}
.rn-av i{position:absolute;right:-3px;bottom:-3px;width:13px;height:13px;border-radius:50%;background:var(--f);border:2.5px solid #F7F9FC}
.rn-row.live .rn-av i{box-shadow:0 0 0 3px rgba(34,197,94,.25)}
.rn-main{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
.rn-top{display:flex;align-items:baseline;gap:8px;min-width:0}
.rn-top b{font-size:14.5px;font-weight:800}
.rn-top span{font-size:12px;font-weight:700;color:#7A8499;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rn-where{font-size:15.5px;font-weight:800;line-height:20px;color:#0B1220;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rn-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin-top:3px;font-size:12px;font-weight:700;color:#5A6478}
.rn-meta .src{height:22px;font-size:11px}
.rn-age{display:inline-flex;align-items:center;gap:5px}
.rn-age::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--f)}
.rn-row.stale .rn-age,.rn-row.recent .rn-age{color:#B45309}
.rn-row .bat{align-self:center}
.rn-nobat{font-weight:800;color:#A0AABB;flex-shrink:0}
@media (max-width:640px){
  .rn{padding:16px}
  .rn-h{flex-wrap:wrap;gap:12px}
  .rn-h h2{font-size:20px;line-height:24px}
  .rn-h .sub{font-size:12.5px}
  .rn-h>.btn{width:100%;justify-content:center}
  .rn-ring{width:56px;height:56px}.rn-ring svg{width:56px;height:56px}
  .rn-list{grid-template-columns:minmax(0,1fr);gap:8px}
  .rn-row{padding:10px 12px;gap:10px}
  .rn-row .bat b{font-size:12px}
}

/* small avatar for inline lists */
.av.xs{width:20px;height:20px;border-radius:7px;font-size:9px}

/* ───────── Overview: agenda (Coming up) */
.ag{display:flex;flex-direction:column;gap:12px}
.ag-dn{display:block;font-size:12px;font-weight:800;color:#3344E6;margin:0 0 6px 2px}
.ag ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.ag-ev{--c:#3B5BFD;display:grid;grid-template-columns:64px 14px minmax(0,1fr);align-items:start;gap:0 8px;position:relative;padding:0 0 12px}
.ag-ev.rule{--c:#8B5CF6}
.ag-ev:not(:last-child)::after{content:"";position:absolute;left:78px;top:16px;bottom:0;width:2px;background:#E6EBF3;border-radius:2px}
.ag-t{font-size:12.5px;font-weight:800;color:#0B1220;white-space:nowrap;padding-top:1px;font-variant-numeric:tabular-nums}
.ag-dot{width:10px;height:10px;margin:4px 0 0 2px;border-radius:50%;background:#fff;border:3px solid var(--c);position:relative;z-index:1}
.ag-b{display:flex;flex-direction:column;gap:3px;min-width:0}
.ag-b b{font-size:14px;line-height:19px;font-weight:800}
.ag-s{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;font-size:12px;font-weight:700;color:#5A6478}
.ag-who{display:inline-flex;align-items:center;gap:4px}.ag-who .av{margin-right:-2px}
.ag-src{display:inline-flex;align-items:center;gap:4px;color:#7A8499}

/* ───────── Overview: who looked at what */
.lk{display:flex;flex-direction:column;gap:8px}
.lk-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"who b n" "who shown shown";align-items:center;gap:2px 12px;padding:10px 12px;border-radius:16px;background:#F7F9FC;border:1px solid #EEF1F6}
.lk-who{grid-area:who;display:inline-flex;align-items:center;gap:4px}
.lk-arrow{color:#A0AABB;display:inline-flex}
.lk-b{grid-area:b;display:flex;flex-direction:column;gap:5px;min-width:0}
.lk-b b{font-size:14px;font-weight:800}
.lk-times{display:flex;flex-wrap:wrap;gap:4px}
.lk-times i{font-style:normal;font-size:11px;font-weight:800;padding:2px 7px;border-radius:999px;background:#fff;border:1px solid #E2E7EF;color:#36415A;font-variant-numeric:tabular-nums}
.lk-n{grid-area:n;font-family:"Bricolage Grotesque","Plus Jakarta Sans",sans-serif;font-size:20px;font-weight:800;color:#3344E6;letter-spacing:-.5px}
.lk-shown{grid-area:shown;display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:700;color:#7A8499}
@media (max-width:640px){.g2-stack{grid-template-columns:minmax(0,1fr) !important}}
