:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#243e38;background:#f5f6f0;font-synthesis:none;--ink:#173e39;--muted:#697a73;--line:#dde3d8;--lime:#e6f2b1}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:1px solid var(--line);border-radius:9px;background:#fff;padding:11px 16px;color:var(--ink);font-weight:600}button:hover{background:#edf2e5}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid #74873c;outline-offset:3px}a{color:var(--ink);text-underline-offset:4px}h1,h2,h3,p{margin-top:0}h1{font-size:38px;letter-spacing:-1.6px;font-weight:600;line-height:1.18;margin-bottom:12px}h2{font-size:21px;letter-spacing:-.5px;font-weight:600}h3{font-size:17px;font-weight:650;margin-bottom:6px}p{line-height:1.6}small,.small{font-size:12px;line-height:1.6}.muted{color:var(--muted)}.brand{font-size:36px;font-weight:900;letter-spacing:-2px;line-height:1}.brand-dot{color:#a8c757}.eyebrow{display:block;font-size:10px;letter-spacing:1.7px;font-weight:750;margin-bottom:14px}.primary{color:white;background:var(--ink);border-color:var(--ink)}.primary:hover{background:#2e554b}.wide{width:100%;display:flex;justify-content:space-between;align-items:center}.quiet{background:transparent;border:0;font-size:12px;padding:8px}.entry{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.entry-story{background:var(--ink);color:#f3f5e7;padding:60px;display:flex;flex-direction:column;justify-content:space-between;min-height:650px}.entry-story h1{font-size:clamp(40px,4.7vw,72px);letter-spacing:-2px}.entry-story p{color:#cad9c4}.entry-story .eyebrow{color:var(--lime)}.entry-form{display:grid;place-items:center;padding:40px}.form-wrap{max-width:370px;width:100%}.form-wrap h2{font-size:32px}.form-wrap>p{margin:16px 0 28px}.device-link{display:block;margin-top:44px;font-size:13px}label{display:block;font-size:12px;font-weight:600;margin-bottom:17px}input,textarea,select{display:block;width:100%;padding:12px;border:1px solid #cad3c5;border-radius:8px;background:#fcfdf8;color:var(--ink);margin-top:8px;font-size:14px}input:focus,textarea:focus,select:focus{outline:2px solid #9bad74;outline-offset:1px}textarea{resize:vertical;min-height:105px}fieldset{border:0;padding:0;margin:0 0 18px}legend{font-size:12px;font-weight:600;margin-bottom:9px}.layout{display:grid;grid-template-columns:230px 1fr;min-height:100vh}aside{background:var(--ink);color:#e9efdb;padding:36px 26px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.school-name{margin-top:44px;font-size:13px;font-weight:600;line-height:1.5}.school-name span{display:block;font-size:11px;color:#b5c9ba;font-weight:400;margin-top:5px}nav{margin-top:35px;display:grid;gap:8px}nav button{display:flex;align-items:center;gap:13px;text-align:left;background:transparent;color:#cbdaca;border:0;padding:13px 12px;font-size:13px}nav button:hover,nav button.active{background:#31554a;color:#f6ffe4}nav button.active{box-shadow:inset 3px 0 var(--lime)}.sidebar-bottom{margin-top:auto;padding-top:30px;font-size:12px;color:#b7cbbf}.sidebar-bottom a{color:#e6f2b1}.pilot-label{font-size:9px;letter-spacing:1.3px;border-top:1px solid #416055;margin-top:30px;padding-top:24px;margin-bottom:12px}.workspace{min-width:0}header{height:82px;display:flex;align-items:center;justify-content:space-between;padding:0 40px;border-bottom:1px solid var(--line);gap:12px}.connection{font-size:11px;color:var(--muted)}.connection:before{content:' ';display:inline-block;width:6px;height:6px;background:#718b43;border-radius:50%;margin-right:8px}.connection.offline{color:#a04627}.connection.offline:before{background:#c16a33}.account{display:flex;align-items:center;gap:12px;font-size:12px}#content{max-width:1350px;margin:auto;padding:38px 40px}.page-title{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:25px}.page-title p{color:var(--muted);font-size:13px;margin:0}.date{color:var(--muted);font-size:11px;white-space:nowrap}.card{background:#fffefa;border:1px solid var(--line);border-radius:14px;padding:25px}.stats{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);border-radius:14px;background:#ecf0e4;margin:27px 0 34px;padding:22px 0}.stats>div{padding:0 26px;border-right:1px solid #d4ddcb}.stats>div:last-child{border:0}.stats span{display:block;color:#627461;font-size:11px;margin-bottom:9px}.stats strong{display:block;font-size:31px;line-height:1;font-weight:600}.stats small{font-weight:400;font-size:12px;color:#697a63}.main-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:26px;align-items:start}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:17px}.section-heading h2{margin:0}.child-card{display:flex;align-items:center;gap:15px;margin-bottom:12px;padding:20px}.avatar{border-radius:50%;background:#e5ebd3;width:43px;height:43px;display:grid;place-items:center;font-size:18px;flex-shrink:0}.child-details{flex:1}.child-details p{margin:0;color:var(--muted);font-size:12px}.device-status{text-align:right;font-size:11px;color:#877858}.device-status small{display:block;color:var(--muted);font-size:9px;margin-top:6px}.device-status.online{color:#4c7242}.compose{padding:27px}.compose h2{margin-bottom:25px}.type-options{display:flex;gap:10px}.type-options label{flex:1;display:flex;align-items:center;gap:9px;border:1px solid var(--line);padding:11px;border-radius:8px;margin:0;font-size:12px}.type-options label:has(input:checked){background:#edf2df;border-color:#a6b688}.type-options input{width:auto;margin:0;accent-color:var(--ink)}.type-options small{display:block;font-size:10px;color:var(--muted);font-weight:400;margin-top:3px}.compose-meta{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin:-7px 0 20px}.compose>p{margin:15px 0 0;font-size:11px}.history{margin-top:28px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:12px}th{text-align:left;font-weight:500;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.8px;padding:14px 10px;border-bottom:1px solid var(--line)}td{padding:19px 10px;border-bottom:1px solid #e9ecdf;vertical-align:top}td:first-child{min-width:120px}td small{display:block;color:var(--muted);font-size:10px;margin-top:6px}td p{margin:6px 0}.message-type{font-size:9px;letter-spacing:.6px;color:#71835c}.badge{display:inline-block;border-radius:20px;padding:6px 10px;background:#f0f1ea;font-size:10px;white-space:nowrap}.badge.success{background:#e5eed9;color:#476333}.badge.pending{background:#f7edcf;color:#8c6c22}.empty{padding:28px 20px;text-align:center;color:var(--muted);font-size:13px}.empty p{margin-bottom:0}.alert{background:#fbebdd;border:1px solid #e6b48f;border-radius:12px;padding:22px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px;color:#7b3b1d}.alert h2{margin-bottom:8px}.alert p{margin-bottom:0;font-size:12px}.alert .eyebrow{margin-bottom:8px}.alert-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;font-size:12px}.alert-actions button{font-size:11px;border-color:#e5b492}.setup-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.setup-grid h2{font-size:19px}.pair-row{padding:15px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:13px}.pair-row button{font-size:12px}.credential-box{padding:18px;margin:20px 0;background:#edf2df;border-radius:10px;font-size:12px;overflow-wrap:anywhere}.credential-box code{display:block;font-size:22px;margin:12px 0;user-select:all}.credential-box p{margin:0}footer{padding:20px 40px 30px;color:#8b9584;font-size:10px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:90vw;background:#173e39;color:white;border-radius:10px;padding:15px 22px;box-shadow:0 8px 30px #0002;font-size:13px;z-index:10;display:none}#toast.show{display:block}.narrow{max-width:440px;margin:70px auto;padding:25px}.narrow h1{margin-top:50px}.device-page{min-height:100vh;text-align:center;padding:32px 35px;background:#e9eddf}.device-page-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.device-page-head>span:not(.brand){font-size:10px;letter-spacing:1.4px}.device-page-head a{font-size:12px}.device-intro{margin:45px 0 25px}.device-intro h1{font-size:36px}.device-intro p{font-size:13px;color:var(--muted)}.tag-hardware{max-width:365px;margin:0 auto;background:#d9dccb;border-radius:34px;padding:20px 23px 16px;box-shadow:0 16px 30px #27381e25,inset 0 2px 3px #fff,inset 0 -4px 4px #a0a88e;border:1px solid #b8c0a6}.hardware-top{display:flex;justify-content:space-between;font-size:11px;font-weight:750;letter-spacing:1px;margin:0 6px 16px;color:#606b53}.hardware-top span:last-child{font-size:8px}.eink{min-height:275px;background:#f3f3e8;border:2px solid #7e8771;border-radius:10px;padding:20px 16px 13px;text-align:left;color:#272d24;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;box-shadow:inset 1px 2px 6px #39483017;display:flex;flex-direction:column}.screen-name{font-size:11px;border-bottom:1px solid #b8bcae;padding-bottom:10px;margin-bottom:20px}.screen-kind{font-size:8px;letter-spacing:1px}.screen-message{font-size:19px;font-weight:700;line-height:1.5;padding:14px 0 22px;overflow-wrap:anywhere;flex:1}.screen-labels{display:flex;justify-content:space-between;font-size:12px;padding-top:10px;border-top:1px solid #c4c7b8}.screen-idle{padding:15px 0 24px;text-align:center;flex:1}.screen-idle>span{display:block;font-size:32px;margin-bottom:15px}.screen-idle h2{font-size:18px}.screen-idle p{font-size:12px}.physical-buttons{display:flex;justify-content:space-between;padding:20px 20px 10px}.physical-buttons button{border-radius:50%;width:64px;height:64px;background:#edf0de;border:1px solid #a5af92;box-shadow:0 4px 0 #98a185;font-size:14px;touch-action:none;user-select:none;-webkit-user-select:none}.physical-buttons button:active{transform:translateY(2px);box-shadow:0 2px 0 #98a185}.physical-buttons button.holding{animation:hold 3s linear forwards}.physical-buttons button:disabled{opacity:.55}.hardware-bottom{font-size:7px;letter-spacing:2px;color:#6e775f;margin-top:9px}.help-sent{font-size:10px;background:#e1e4d4;margin-top:14px;padding:10px;line-height:1.5}.device-instructions{font-size:12px;margin:16px 0 0;color:#5c6e51}.device-feedback{font-size:12px;min-height:20px;margin-top:20px}.device-note{font-size:10px;margin:14px 0 25px}#pair-form{max-width:365px;margin:auto;text-align:left}@keyframes hold{from{background:#edf0de}to{background:#e5aa74;box-shadow:0 0 0 8px #c9865144}}@media(max-width:1100px){.layout{grid-template-columns:190px 1fr}aside{padding:32px 20px}#content{padding:30px 25px}header{padding:0 25px}.main-grid{grid-template-columns:1fr}.setup-grid{grid-template-columns:1fr 1fr}.date{display:none}.entry-story{padding:40px}.device-status small{max-width:125px}}@media(max-width:700px){.entry{grid-template-columns:1fr}.entry-story{min-height:260px;padding:30px;gap:25px}.entry-story h1{font-size:37px;margin:0}.entry-story p,.entry-story small,.entry-story .eyebrow{display:none}.entry-form{padding:34px 25px}.layout{display:block}aside{position:static;height:auto;padding:20px 20px 0;display:block}.brand{font-size:30px}.school-name{display:inline-block;margin:0 0 0 20px;vertical-align:middle;font-size:11px}.school-name span{margin:0;font-size:10px}nav{display:flex;margin-top:22px;gap:6px;padding-bottom:12px}nav button{font-size:11px;padding:10px;gap:6px;flex:1;justify-content:center;white-space:nowrap}.sidebar-bottom{display:none}header{height:auto;min-height:68px;padding:12px 20px;flex-wrap:wrap;gap:10px}.account{gap:8px;margin-left:auto;font-size:11px}.connection{font-size:10px}#content{padding:27px 18px}.page-title h1{font-size:29px}.page-title p{font-size:12px}.stats{margin:22px 0;padding:18px 0}.stats>div{padding:0 13px}.stats span{font-size:9px;min-height:24px}.stats strong{font-size:27px}.stats small{display:block;margin-top:7px;font-size:10px}.card{padding:20px}.child-card{padding:16px;gap:10px}.avatar{width:35px;height:35px}.child-details h3{font-size:15px}.device-status{font-size:10px}.device-status small{font-size:8px}.setup-grid{grid-template-columns:1fr}.alert{display:block}.alert-actions{margin-top:15px}.pair-row{align-items:flex-start;flex-direction:column}.date{display:none}.section-heading .small{font-size:10px}.history{padding:17px 12px}.history h2{font-size:18px}footer{padding:10px 20px 25px}.device-page{padding:24px 18px}.device-page-head>span:not(.brand){display:none}.device-intro{margin-top:35px}.tag-hardware{padding:18px 20px}.narrow{margin:25px auto}}@media(prefers-reduced-motion:reduce){.physical-buttons button.holding{animation:none;background:#e5aa74}}
/* School day */
.school-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:26px;align-items:start}
.chips{display:flex;flex-wrap:wrap;gap:7px}.chip{font-size:12px;padding:8px 12px;border-radius:20px;font-weight:600}.chip small{color:var(--muted);font-weight:500;margin-left:3px}.chip.on{background:var(--ink);color:#fff;border-color:var(--ink)}.chip.on small{color:#cfe0c7}
.inline-check{display:flex;align-items:center;gap:9px;font-weight:500}.inline-check input{width:auto;margin:0;accent-color:var(--ink)}
.bcast{padding:18px 20px;margin-bottom:12px}.bcast-head{display:flex;justify-content:space-between;gap:10px;align-items:baseline}.bcast-head small{color:var(--muted);font-size:10px;text-align:right}.bcast-body{font-weight:600;margin:8px 0 12px}
.tally-bar{height:10px;border-radius:10px;background:#e7eadf;display:flex;overflow:hidden}.tally-bar i{display:block;height:100%;transition:width .8s ease}.tally-bar .ok{background:#5d8a4a}.tally-bar .seen{background:#d8c27a}
.tally-nums{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:12px;margin-top:10px;color:#44574d}.tally-nums strong{font-size:15px;font-variant-numeric:tabular-nums}
.row-actions{display:flex;gap:8px;align-items:center}.stats.compact{margin:6px 0 18px;padding:14px 0}.stats.compact strong{font-size:24px}
.small-code{font-size:11px!important;word-break:break-all}.qr-small{display:block;margin-top:12px;border-radius:6px}
.inline-form{display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap;margin:10px 0 16px}.inline-form input,.inline-form select{margin:0;flex:1;min-width:150px}.inline-form label{flex:1;margin:0}
.group-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px}.group-row{display:flex;justify-content:space-between;align-items:center;border:1px solid var(--line);border-radius:10px;padding:10px 12px;font-size:13px}.group-row small{display:block;color:var(--muted);font-size:10px}
.member-form{margin-top:16px}.member-list{max-height:320px;overflow:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:2px 12px;margin:12px 0 16px}.member-list label{display:flex;gap:8px;align-items:center;margin:0;font-weight:500;padding:5px 0}.member-list input{width:auto;margin:0}.member-list small{color:var(--muted)}
.pair-card{margin-bottom:26px}.pair-card details{margin:14px 0 4px}.scan-video{width:100%;max-width:360px;border-radius:12px;margin:14px 0 6px;background:#000}
.screen-qr{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.screen-qr img{width:190px;height:190px;image-rendering:pixelated}.screen-qr p{font-size:11px;margin:10px 0 0}
.device-status [data-handback]{margin-top:4px;font-size:11px}
@media(max-width:1100px){.school-grid{grid-template-columns:1fr}}
