:root{--emerald:#075f4d;--emerald2:#0a7c61;--deep:#063d35;--ink:#15362f;--muted:#6e817c;--line:#dce7e3;--bg:#f3f7f5;--gold:#d6a84a;--danger:#c95245;--shadow:0 18px 55px #123e3212}*{box-sizing:border-box}html{font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--bg)}body{margin:0;font-size:16px;line-height:1.5}a{text-decoration:none;color:inherit}button,input,select,textarea{font:inherit}button{cursor:pointer}svg{width:1.25rem;height:1.25rem;fill:currentColor}.brand-gem{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(145deg,#29b591,#075f4d);box-shadow:inset 0 1px #ffffff66,0 8px 20px #002d2450;color:#fff;font-weight:900}.brand-lockup{display:flex;align-items:center;gap:12px}.brand-lockup>div{display:grid}.brand-lockup b{font-size:1.1rem;letter-spacing:.08em}.brand-lockup small{font-size:.68rem;letter-spacing:.08em;color:var(--muted)}.brand-lockup.light{color:white}.brand-lockup.light small{color:#b7d8cf}.btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:12px;padding:11px 17px;font-weight:750;min-height:44px}.btn.primary{background:linear-gradient(135deg,var(--emerald2),var(--emerald));color:#fff;box-shadow:0 8px 20px #075f4d28}.btn.secondary{background:#fff;border-color:var(--line);color:var(--ink)}.full-btn{width:100%}.alert{padding:14px 17px;border-radius:13px;background:#e4f6ef;color:#12654f;margin:0 0 18px}.alert.error{background:#fff0eb;color:#9d4034}.sidebar{position:fixed;inset:0 auto 0 0;width:250px;background:linear-gradient(180deg,#063f36,#052f2b);color:#c7dfd8;padding:20px 14px;display:flex;flex-direction:column;z-index:50}.side-brand{display:flex;align-items:center;gap:11px;padding:5px 8px 24px;color:#fff}.side-brand>span:last-child{display:grid}.side-brand small{color:#7fb2a5;font-size:.62rem;letter-spacing:.12em}.sidebar nav{display:grid;gap:5px}.sidebar nav a{display:flex;align-items:center;gap:13px;padding:12px 14px;border-radius:12px;color:#9fc3ba;font-weight:650}.sidebar nav a:hover,.sidebar nav a.active{background:#ffffff12;color:#fff;box-shadow:inset 3px 0 #45c6a2}.side-user{margin-top:auto;border-top:1px solid #ffffff17;padding:18px 8px 2px;display:grid;grid-template-columns:39px 1fr auto;gap:10px;align-items:center}.side-user>span{width:39px;height:39px;border-radius:12px;background:#ffffff12;display:grid;place-items:center;font-weight:800}.side-user div{display:grid}.side-user small,.side-user>a{font-size:.7rem;color:#83aa9f}.topbar{position:sticky;top:0;margin-left:250px;height:72px;background:#ffffffed;backdrop-filter:blur(14px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 30px;z-index:30}.topbar>button{display:none;border:0;background:none;font-size:1.3rem}.topbar>div{display:grid}.topbar small{font-size:.75rem;color:var(--muted)}.kiosk-link{font-weight:700;color:var(--emerald)}.main-content{margin-left:250px;padding:30px;max-width:1600px}.hero-panel{background:linear-gradient(125deg,#075f4d,#0b8065);color:white;border-radius:22px;padding:28px 32px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 20px 55px #075f4d2b;position:relative;overflow:hidden}.hero-panel:after{content:"";position:absolute;width:300px;height:300px;border:1px solid #ffffff22;border-radius:50%;right:-100px;top:-130px;box-shadow:0 0 0 45px #ffffff08,0 0 0 90px #ffffff06}.eyebrow{font-size:.72rem;letter-spacing:.15em;font-weight:850;color:#45b997}.hero-panel .eyebrow{color:#9fe4d0}.hero-panel h1{font-size:2rem;margin:5px 0}.hero-panel p{margin:0;color:#c6e5dc}.hero-time{display:grid;text-align:right;position:relative;z-index:2}.hero-time strong{font-size:2.6rem;line-height:1}.hero-time span{color:#bde0d6}.stat-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:13px;margin:18px 0}.stat{background:#fff;border:1px solid var(--line);border-radius:17px;padding:18px;box-shadow:var(--shadow)}.stat span,.stat small{display:block;color:var(--muted);font-size:.75rem}.stat strong{display:block;font-size:1.9rem;margin:4px 0}.stat.emerald{background:linear-gradient(145deg,#0a765e,#075345);color:#fff;border:0}.stat.emerald span,.stat.emerald small{color:#c5e9df}.stat.danger strong{color:var(--danger)}.stat.gold strong{color:#ac7619}.dashboard-grid,.parent-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(290px,.8fr);gap:17px}.panel,.form-card,.permit-card{background:#fff;border:1px solid var(--line);border-radius:19px;box-shadow:var(--shadow)}.panel-head{display:flex;justify-content:space-between;align-items:center;padding:19px 21px;border-bottom:1px solid #e7efec}.panel-head h2{font-size:1rem;margin:0}.panel-head p{font-size:.75rem;color:var(--muted);margin:3px 0 0}.live-pill{font-size:.7rem;font-weight:800;color:#15926f;background:#e5f6f0;border-radius:99px;padding:6px 10px}.activity-list{padding:7px 20px}.activity-item{display:grid;grid-template-columns:42px 1fr auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #edf2f0}.activity-item:last-child{border:0}.activity-icon{width:42px;height:42px;border-radius:13px;background:#e3f5ef;color:var(--emerald);display:grid;place-items:center}.activity-icon.unknown,.activity-icon.inactive,.activity-icon.duplicate_or_schedule{background:#fff0eb;color:var(--danger)}.activity-item>div{display:grid}.activity-item small,.activity-item time{font-size:.75rem;color:var(--muted)}.schedule-card dl{padding:5px 20px;margin:0}.schedule-card dl div{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid #edf2f0}.schedule-card dt{color:var(--muted)}.schedule-card dd{font-weight:800}.schedule-card>.btn{margin:10px 20px 20px;width:calc(100% - 40px)}.page-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:20px}.page-head h1{font-size:1.9rem;margin:2px 0}.page-head p{color:var(--muted);margin:0}.filter-bar{display:flex;gap:10px;background:#fff;padding:13px;border:1px solid var(--line);border-radius:15px;margin-bottom:14px}.filter-bar input,.filter-bar select{min-width:180px}.form-card{padding:25px;max-width:820px}.form-card.wide{max-width:1050px}.form-card h2{font-size:1.05rem;margin:3px 0 16px;padding-bottom:10px;border-bottom:1px solid var(--line)}label{display:grid;gap:7px;font-weight:700;font-size:.85rem}input,select,textarea{width:100%;border:1px solid #cbdad5;border-radius:11px;padding:11px 12px;color:var(--ink);background:#fff;min-height:44px}textarea{min-height:100px;resize:vertical}label small{font-weight:400;color:var(--muted)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.form-grid.three{grid-template-columns:repeat(3,1fr)}.form-grid .full{grid-column:1/-1}.check{display:flex;grid-column:1/-1;align-items:center}.check input{width:auto;min-height:0}.form-actions{display:flex;justify-content:flex-end;margin-top:20px}.table-panel{overflow:hidden}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;min-width:760px}th{text-align:left;background:#f7faf9;color:#70847e;font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;padding:12px 16px}td{border-top:1px solid #edf2f0;padding:13px 16px}td small{display:block;color:var(--muted)}.class-chip,.badge{display:inline-flex;border-radius:99px;padding:5px 9px;font-size:.72rem;font-weight:750;background:#edf3f1}.badge.success,.badge.present,.badge.approved,.badge.ontime{background:#dff4eb;color:#087153}.badge.late,.badge.rejected,.badge.absent{background:#ffebe6;color:#a44337}.badge.tolerance,.badge.pending,.badge.permit{background:#fff4d8;color:#89600d}.text-link{color:var(--emerald);font-weight:750}.pagination{padding:14px 18px;display:flex;gap:6px;align-items:center}.pagination span{margin-right:auto;color:var(--muted)}.pagination a{width:32px;height:32px;border-radius:9px;display:grid;place-items:center}.pagination a.active{background:var(--emerald);color:#fff}.tabs{display:flex;gap:7px;margin-bottom:16px}.tabs a{padding:9px 14px;border-radius:99px;background:#e8efec;color:#60756f;font-weight:700}.tabs a.active{background:var(--emerald);color:#fff}.permit-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.permit-card{padding:20px}.permit-head{display:flex;justify-content:space-between}.permit-head>div{display:grid}.permit-head small,.permit-card>small{color:var(--muted)}.permit-card h3{margin:18px 0 4px}.evidence{display:inline-block;color:var(--emerald);font-weight:750;margin:7px 0 12px}.decision-form{margin-top:15px}.decision-form>div{display:flex;gap:8px;justify-content:flex-end;margin-top:8px}.danger-text{color:var(--danger)!important}.days{display:flex;gap:8px;margin-bottom:18px}.days input{display:none}.days span{display:grid;place-items:center;width:45px;height:40px;border:1px solid var(--line);border-radius:10px}.days input:checked+span{background:var(--emerald);color:#fff}.student-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.student-qr-card{background:linear-gradient(145deg,var(--card-color),#063e35);color:#fff;border-radius:20px;padding:22px;min-height:250px;position:relative;overflow:hidden}.student-qr-card:after{content:"";position:absolute;inset:-90px -60px auto auto;width:240px;height:240px;border:1px solid #ffffff26;border-radius:50%;box-shadow:0 0 0 35px #ffffff08,0 0 0 70px #ffffff06}.card-brand,.card-body{display:flex;justify-content:space-between;align-items:center;position:relative;z-index:2}.card-brand{justify-content:flex-start;gap:10px}.card-brand>div{display:grid}.card-brand small{color:#bde0d6}.card-body{margin:24px 0}.card-body h2{margin:4px 0;font-size:1.35rem}.card-body p{margin:0;color:#c6e5dc}.card-body canvas{background:#fff;padding:8px;border-radius:12px}.student-qr-card footer{font-size:.72rem;color:#bde0d6}.auth-page{min-height:100vh;display:grid;grid-template-columns:1.1fr .9fr;background:#fff}.auth-visual{background:linear-gradient(135deg,#06473d,#08705a);color:#fff;padding:8vw;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.auth-visual h1{font-size:3.4rem;line-height:1.08;margin:70px 0 20px}.auth-visual p{max-width:540px;color:#bedfd5;font-size:1.1rem}.visual-orbit{position:absolute;width:520px;height:520px;border:1px solid #ffffff18;border-radius:50%;right:-180px;bottom:-200px;box-shadow:0 0 0 65px #ffffff08,0 0 0 130px #ffffff05}.auth-card{align-self:center;width:min(460px,calc(100% - 40px));margin:auto;padding:40px}.auth-card h1{font-size:2rem;margin:8px 0}.auth-card>p{color:var(--muted);margin:0 0 22px}.auth-card label{margin-top:15px}.auth-card .btn{margin-top:20px}.auth-link{display:block;text-align:center;color:var(--emerald);font-weight:700;margin-top:18px}.install-card{grid-column:1/-1;background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);width:min(800px,calc(100% - 30px));padding:32px}.otp-input{text-align:center;letter-spacing:.55em;font-size:1.5rem}.parent-page{background:#eff5f2;min-height:100vh}.parent-head{height:76px;background:linear-gradient(110deg,#06493d,#08735c);display:flex;align-items:center;justify-content:space-between;padding:0 max(22px,calc((100% - 1120px)/2));color:#fff}.parent-main{max-width:1120px;margin:auto;padding:30px 20px 70px}.parent-main.narrow{max-width:700px}.parent-welcome h1{font-size:2.1rem;margin:5px 0}.parent-welcome p{color:var(--muted)}.parent-welcome select{max-width:360px}.child-card{margin:20px 0;background:linear-gradient(135deg,#08705a,#06463c);color:#fff;border-radius:23px;padding:28px;position:relative;box-shadow:0 20px 50px #063d3526}.child-card h2{font-size:1.8rem;margin:5px 0}.child-card p{color:#c3e4da}.status-orb{position:absolute;right:25px;top:25px;padding:8px 13px;border-radius:99px;background:#ffffff16}.status-orb.present{background:#d9f6ea;color:#07674f}.attendance-times{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:25px;border-top:1px solid #ffffff25;padding-top:18px}.attendance-times>div{display:grid}.attendance-times span,.attendance-times small{color:#bce0d6}.attendance-times strong{font-size:1.8rem}.parent-actions a{background:#fff;border:1px solid var(--line);border-radius:16px;padding:17px;display:flex;gap:14px;align-items:center;margin-bottom:17px}.parent-actions svg{width:30px;height:30px;color:var(--emerald)}.parent-actions span{display:grid}.parent-actions small{color:var(--muted)}.history-list{padding:5px 20px}.history-list>div{display:grid;grid-template-columns:70px 90px 1fr;gap:10px;padding:12px 0;border-bottom:1px solid #edf2f0}.history-list small{color:var(--muted)}.monthly>div:last-child{display:flex;justify-content:space-around;padding:30px 20px}.monthly span{display:grid;text-align:center;color:var(--muted)}.monthly b{font-size:2rem;color:var(--ink)}.mobile-dock{display:none}.empty{padding:35px;text-align:center;color:var(--muted)}
.kiosk{height:100dvh;background:radial-gradient(circle at 10% 0,#0c8066 0,transparent 32%),linear-gradient(135deg,#032f2a,#061f1d);color:#fff;overflow:hidden;display:grid;grid-template-rows:82px 1fr 50px}.kiosk-head{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 32px;border-bottom:1px solid #ffffff18}.kiosk-clock{text-align:center;display:grid}.kiosk-clock strong{font-size:1.7rem}.kiosk-clock span{font-size:.72rem;color:#a9d1c6}.connection{justify-self:end;font-size:.72rem;font-weight:800;color:#a9d1c6}.connection i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#4ce0ad;box-shadow:0 0 14px #4ce0ad;margin-right:6px}.kiosk-main{display:grid;grid-template-columns:minmax(420px,1.15fr) 1fr;gap:6vw;align-items:center;padding:3vh 6vw;min-height:0}.scanner-shell{height:min(62vh,620px);border-radius:28px;background:#021c19;position:relative;overflow:hidden;box-shadow:0 30px 90px #0008;border:1px solid #ffffff1d}.scanner-shell video{width:100%;height:100%;object-fit:cover}.camera-empty{position:absolute;inset:0;display:grid;place-content:center;text-align:center;color:#80ac9f;gap:8px}.camera-empty svg{width:70px;height:70px;margin:auto;color:#2e806c}.scan-frame{position:absolute;inset:14%;pointer-events:none}.scan-frame i{position:absolute;width:48px;height:48px;border-color:#57e7ba;border-style:solid}.scan-frame i:nth-child(1){left:0;top:0;border-width:4px 0 0 4px}.scan-frame i:nth-child(2){right:0;top:0;border-width:4px 4px 0 0}.scan-frame i:nth-child(3){left:0;bottom:0;border-width:0 0 4px 4px}.scan-frame i:nth-child(4){right:0;bottom:0;border-width:0 4px 4px 0}.scan-line{position:absolute;left:6%;right:6%;height:2px;background:#57e7ba;box-shadow:0 0 14px #57e7ba;animation:scan 2.5s ease-in-out infinite}@keyframes scan{0%,100%{top:10%}50%{top:90%}}.camera-button{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);border:1px solid #ffffff3d;background:#052f2bcf;color:#fff;border-radius:99px;padding:10px 17px}.kiosk-copy h1{font-size:clamp(2.5rem,5vw,5rem);line-height:1.02;margin:10px 0 20px}.kiosk-copy p{font-size:1.05rem;color:#a8ccc2;max-width:560px}.kiosk-steps{display:flex;gap:10px;margin-top:30px}.kiosk-steps span{background:#ffffff0e;border:1px solid #ffffff18;border-radius:12px;padding:10px 13px;font-size:.8rem}.kiosk-steps b{color:#55d7b1;margin-right:5px}.kiosk-foot{display:flex;justify-content:space-between;padding:0 32px;color:#789d94;font-size:.75rem}.scan-result{position:fixed;inset:0;background:#052d28f2;backdrop-filter:blur(18px);z-index:100;display:grid;place-content:center;text-align:center;padding:25px}.scan-result[hidden]{display:none}.result-icon{width:110px;height:110px;border-radius:34px;background:#3ed4a3;color:#063c31;display:grid;place-items:center;margin:0 auto 22px;box-shadow:0 0 0 18px #3ed4a319}.result-icon svg{width:62px;height:62px}.scan-result.error .result-icon{background:#f07868;color:#551c17}.scan-result span{letter-spacing:.18em;font-size:.8rem;color:#8ad9c2}.scan-result h2{font-size:clamp(2rem,5vw,4.5rem);margin:8px 0}.scan-result p{font-size:1.1rem;color:#b9d9d0}.scan-result strong{font-size:1.7rem;color:#4be0b1}
@media(max-width:1150px){.stat-grid{grid-template-columns:repeat(3,1fr)}.permit-grid{grid-template-columns:1fr 1fr}.kiosk-main{gap:4vw;padding:3vh 4vw}}
@media(max-width:780px){body{font-size:15px}.sidebar{transform:translateX(-100%);transition:.2s}.sidebar.open{transform:none}.topbar{margin-left:0;padding:0 18px}.topbar>button{display:block}.main-content{margin-left:0;padding:18px 15px 95px}.kiosk-link{display:none}.hero-panel{padding:22px;align-items:flex-start}.hero-panel h1{font-size:1.6rem}.hero-time strong{font-size:2rem}.stat-grid{grid-template-columns:1fr 1fr}.dashboard-grid,.parent-grid{grid-template-columns:1fr}.page-head{align-items:flex-start}.page-head .btn{margin-left:10px}.filter-bar{overflow:auto}.filter-bar input,.filter-bar select{min-width:150px}.form-grid,.form-grid.three{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.permit-grid,.student-cards{grid-template-columns:1fr}.mobile-dock{position:fixed;z-index:40;display:grid;grid-template-columns:repeat(5,1fr);left:8px;right:8px;bottom:8px;background:#fffffff2;backdrop-filter:blur(15px);border:1px solid var(--line);border-radius:18px;box-shadow:0 15px 40px #123e3230;padding:7px}.mobile-dock a{display:grid;place-items:center;font-size:.65rem;color:#647a73}.mobile-dock .dock-primary{width:58px;height:58px;border-radius:18px;background:var(--emerald);color:#fff;justify-self:center;margin-top:-25px;box-shadow:0 8px 24px #075f4d55}.auth-page{grid-template-columns:1fr}.auth-visual{display:none}.auth-card{padding:25px 5px}.parent-head{padding:0 17px}.parent-main{padding:22px 14px 60px}.child-card{padding:22px}.attendance-times strong{font-size:1.45rem}.kiosk{grid-template-rows:66px 1fr 36px;overflow:hidden}.kiosk-head{grid-template-columns:1fr auto;padding:0 14px}.kiosk-head .brand-gem{width:34px;height:34px}.kiosk-head .brand-lockup b{font-size:.85rem}.kiosk-clock{justify-self:end}.connection{display:none}.kiosk-main{display:grid;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;padding:12px;gap:12px}.scanner-shell{height:auto;min-height:0;border-radius:20px}.kiosk-copy{text-align:center}.kiosk-copy h1{font-size:1.5rem;margin:3px 0}.kiosk-copy p,.kiosk-steps{display:none}.kiosk-foot{padding:0 15px}.kiosk-foot span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.scan-result h2{font-size:2.1rem}.history-list>div{grid-template-columns:55px 80px 1fr}}
@media print{.sidebar,.topbar,.mobile-dock,.no-print{display:none!important}.main-content{margin:0;padding:0}.student-cards{grid-template-columns:1fr 1fr;gap:8mm}.student-qr-card{break-inside:avoid;box-shadow:none}.student-qr-card footer{color:#d5ebe5}}
.live-pill.offline{color:#9d4034;background:#fff0eb}

/* Cobalt Motion production design · 2026-11-21 */
:root{--emerald:#0873c9;--emerald2:#0a91df;--deep:#0a326c;--ink:#0b2d55;--muted:#667f99;--line:#d8e5f2;--bg:#f1f6fc;--gold:#ff9a48;--danger:#d95260;--shadow:0 15px 42px #174a7c12}
html{background:var(--bg)}body{letter-spacing:-.005em}.brand-gem{background:linear-gradient(145deg,#30c2e2 0 38%,#0873cb 39%);border-radius:14px;box-shadow:inset 0 1px #fff9,0 9px 22px #0870c53c;font-size:0;position:relative}.brand-gem:after{content:"";width:20px;height:20px;border:4px solid #fff;border-left-color:#ffd05d;border-radius:4px;transform:rotate(45deg)}
.sidebar{width:264px;background:linear-gradient(180deg,#fff,#fbfdff);color:#5d7792;border-right:1px solid #dbe7f3;padding:22px 16px}.side-brand{color:#0b3869;padding:3px 10px 25px;border-bottom:1px solid #e2ebf4}.side-brand b{font-style:italic;font-size:18px;letter-spacing:-.04em}.side-brand small{color:#7890a8}.sidebar nav{gap:6px;margin-top:20px}.sidebar nav a{min-height:48px;padding:7px 10px;border-radius:14px;color:#5f7892;font-size:14px}.sidebar nav a:hover,.sidebar nav a.active{background:linear-gradient(90deg,#e6f3ff,#f5faff);color:#0868bc;box-shadow:inset 4px 0 #0878d1,0 7px 18px #0b6ec112}.sidebar nav a svg{width:20px;height:20px;padding:0;color:#0870c6}.sidebar nav a:nth-child(2) svg{color:#087762}.sidebar nav a:nth-child(3) svg{color:#4e60b7}.sidebar nav a:nth-child(4) svg{color:#b86413}.sidebar nav a:nth-child(5) svg{color:#6748b5}.sidebar nav a:nth-child(6) svg{color:#50657c}.side-user{border-color:#e2ebf4}.side-user>span{background:linear-gradient(145deg,#e9f5ff,#cce6ff);color:#0869bd}.side-user small,.side-user>a{color:#7289a1}
.topbar{margin-left:264px;height:76px;padding:0 clamp(24px,2.3vw,36px);background:#fffffff2;border-color:#dce7f2;box-shadow:0 7px 24px #143e6b08}.topbar small{color:#7188a0}.kiosk-link{background:#e9f4ff;color:#0871c7;padding:9px 14px;border-radius:11px}.main-content{margin-left:264px;padding:30px clamp(24px,2.3vw,36px) 45px;max-width:1600px}.panel,.form-card,.permit-card,.stat{border-color:#d9e5f1;border-radius:20px;box-shadow:0 14px 40px #164b7c0e}.panel-head{min-height:68px;padding:18px 21px;border-color:#e5edf5}.panel-head h2{font-size:16px}.panel-head p{font-size:12px}.live-pill{background:#e2f6ef;color:#08735b}.btn{border-radius:12px}.btn.primary{background:linear-gradient(135deg,#0a83d5,#0864b8);box-shadow:0 8px 20px #076bbd35}.btn.secondary{background:#eef5fc;border-color:#d8e6f3;color:#0868ba}
.page-head{min-height:75px;gap:22px}.page-head h1{font-size:30px;color:#0b2d55}.page-head p{color:#6c8299}.filter-bar{border-radius:16px;padding:13px;gap:11px;border-color:#d9e5f1}.form-card{padding:26px}.form-card h2{border-color:#e4edf5}.form-grid{gap:18px}input,select,textarea{border-color:#cbd9e7;border-radius:11px;background:#fff;color:#0b2d55}input:focus,select:focus,textarea:focus{outline:none;border-color:#1685d2;box-shadow:0 0 0 3px #1685d218}table{background:#fff}th{background:#f6f9fc;color:#6c8299}td{border-color:#e8eff6}.badge.success,.badge.present,.badge.approved,.badge.ontime{background:#def5ec;color:#08715a}.badge.tolerance,.badge.pending,.badge.permit{background:#fff0d6;color:#95600f}.badge.late,.badge.rejected,.badge.absent{background:#ffe6e5;color:#ad3f45}.text-link,.evidence{color:#0870c5}
.parent-page{background:#f1f6fb}.parent-head{height:76px;background:#fff;color:#0b3869;border-bottom:1px solid #dbe7f3}.parent-head .brand-lockup.light{color:#0b3869}.parent-head .brand-lockup.light small{color:#7088a1}.parent-main{max-width:1120px;padding-top:30px}.parent-welcome h1{font-size:31px;color:#0b2d55}.parent-welcome p{color:#6b8299}.child-card{background:linear-gradient(145deg,#123675,#1767c3 70%,#248edc);border-radius:24px;box-shadow:0 22px 48px #143d7b35;padding:28px;overflow:hidden}.child-card:after{content:"";position:absolute;width:200px;height:200px;border:1px solid #ffffff25;border-radius:50%;right:-70px;top:-110px;box-shadow:0 0 0 30px #ffffff0a}.child-card>*{position:relative;z-index:1}.parent-actions a{border-color:#d9e5f1;border-radius:17px;box-shadow:0 10px 28px #174a7c0b}.parent-actions svg{color:#0871c6}
.kiosk{background:radial-gradient(circle at 10% 0,#147fd3 0,transparent 34%),linear-gradient(135deg,#052653,#06152f)}.kiosk-head{background:#ffffff08}.scanner-shell{background:#03172f;border-color:#ffffff2b;border-radius:28px}.scan-frame i{border-color:#35d6ed}.scan-line{background:#35d6ed;box-shadow:0 0 16px #35d6ed}.connection i{background:#4de0bd}.camera-button{background:#092f61dc}.kiosk-copy .eyebrow{color:#47d4e6}.kiosk-copy h1{letter-spacing:-1.8px}.kiosk-steps b{color:#46d4e8}.scan-result{background:#082452f2}.result-icon{background:#43d4ae;color:#073c33}.scan-result span{color:#8dddea}.scan-result strong{color:#48dcb1}
.student-qr-card{background:linear-gradient(145deg,#123675,#1768c4 72%,#248edc);box-shadow:0 18px 42px #143d7b2c}.student-qr-card footer,.student-qr-card p,.card-brand small{color:#d2e7ff}

/* Dashboard command center production */
.command-hero{min-height:225px;border-radius:27px;background:linear-gradient(116deg,#075bb2,#087bd0 51%,#1cb6d9);color:#fff;padding:31px 34px 62px;position:relative;overflow:hidden;box-shadow:0 24px 58px #0871c33c;display:grid;grid-template-columns:1.3fr .7fr;align-items:center;gap:25px}.command-hero:after{content:"";position:absolute;width:330px;height:330px;border:1px solid #ffffff25;border-radius:50%;right:-100px;top:-185px;box-shadow:0 0 0 48px #ffffff0a,0 0 0 96px #ffffff08}.command-copy,.attendance-orbit{position:relative;z-index:2}.command-copy .eyebrow{color:#bcecff}.command-copy h1{font-size:34px;margin:7px 0 4px}.command-copy p{color:#d9f1ff}.hero-actions{display:flex;gap:9px;margin-top:21px}.hero-actions a{min-height:42px;border-radius:12px;padding:10px 14px;font-weight:750}.hero-primary{background:#fff;color:#0868bb}.hero-ghost{background:#ffffff16;color:#fff;border:1px solid #ffffff32}.attendance-orbit{display:flex;align-items:center;justify-content:flex-end;gap:18px}.orbit-ring{width:124px;height:124px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#fff 0 var(--rate),#ffffff2a var(--rate) 100%)}.orbit-ring:before{content:"";position:absolute;width:98px;height:98px;border-radius:50%;background:#0878ca}.orbit-ring span{position:relative;text-align:center}.orbit-ring b,.orbit-ring small{display:block}.orbit-ring b{font-size:25px}.orbit-ring small{font-size:8px;color:#d9efff}.orbit-meta small{color:#c9e8fa}.hero-live{position:absolute;z-index:3;left:0;right:0;bottom:0;height:48px;background:#062f6a4f;border-top:1px solid #ffffff1f;display:grid;grid-template-columns:10px 1fr auto;align-items:center;gap:10px;padding:0 34px}.hero-live>i{width:9px;height:9px;border-radius:50%;background:#4ee0b5;box-shadow:0 0 13px #4ee0b5}.hero-live span{display:grid}.hero-live span small{font-size:9px;color:#c3e1f5}.hero-live strong{font-size:20px}
.metric-row{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:18px 0}.metric{min-height:112px;background:#fff;border:1px solid #d9e5f1;border-radius:19px;padding:16px;display:grid;grid-template-columns:46px 1fr;gap:12px;align-items:center}.metric.cobalt{background:linear-gradient(145deg,#112f6b,#185eb7 72%,#2489da);color:#fff;border:0}.metric-icon{width:46px;height:46px;border-radius:15px;background:#dceeff;color:#0870c4;display:grid;place-items:center}.metric-icon.violet{background:#eee8ff;color:#6248b1}.metric-icon.orange{background:#fff1dd;color:#b96313}.metric-icon.mint{background:#e0f9f3;color:#08745e}.metric-icon svg{width:22px;height:22px}.metric>div{display:grid}.metric small{font-size:9px;color:#7288a0}.metric b{font-size:27px}.metric em{font-size:10px;color:#71879e;font-style:normal}.metric.cobalt small,.metric.cobalt em{color:#cfe5fb}.command-grid{display:grid;grid-template-columns:1.35fr .85fr;gap:17px}.scan-feed{padding:6px 20px}.scan-feed>div{display:grid;grid-template-columns:42px 1fr auto;gap:12px;align-items:center;padding:11px 0;border-bottom:1px solid #e9f0f6}.scan-feed>div>span:nth-child(2){display:grid}.scan-feed small,.scan-feed time{font-size:11px;color:#71879e}.scan-avatar{width:42px;height:42px;border-radius:13px;background:#dceeff;color:#0871c5;display:grid;place-items:center}.scan-avatar.error{background:#ffecdf;color:#bf5d1d}.schedule-track{padding:5px 21px}.schedule-track>div{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid #e9f0f6}.schedule-track dt{color:#71879e}.schedule-track dd{font-weight:800}.quick-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:11px;margin-top:17px}.quick-actions a{background:#fff;border:1px solid #d9e5f1;border-radius:16px;padding:15px;display:flex;align-items:center;gap:11px;box-shadow:0 10px 30px #174a7c0b}.quick-actions span{display:grid}.quick-actions small{color:#71879e;font-size:11px}.quick-icon{width:42px;height:42px;border-radius:13px;background:#dceeff;color:#0871c5;display:grid;place-items:center;flex:0 0 auto}.quick-actions a:nth-child(2) .quick-icon{background:#fff0dd;color:#b96313}.quick-actions a:nth-child(3) .quick-icon{background:#eee8ff;color:#6248b1}.quick-actions a:nth-child(4) .quick-icon{background:#e0f9f3;color:#08745e}
@media(max-width:1150px){.metric-row{grid-template-columns:1fr 1fr}.command-grid{grid-template-columns:1fr}.quick-actions{grid-template-columns:1fr 1fr}}
@media(max-width:780px){.sidebar{width:264px}.topbar{margin-left:0}.main-content{margin-left:0;padding:18px 14px 98px}.command-hero{min-height:260px;display:block;padding:24px 19px 62px}.command-copy h1{font-size:25px;max-width:230px}.hero-ghost{display:none}.attendance-orbit{position:absolute;right:17px;top:23px}.orbit-ring{width:76px;height:76px}.orbit-ring:before{width:61px;height:61px}.orbit-ring b{font-size:15px}.orbit-meta{display:none}.hero-live{padding:0 18px}.metric-row{gap:9px;margin-top:-24px;position:relative;z-index:4}.metric{min-height:118px;display:block;padding:13px}.metric-icon{width:36px;height:36px;margin-bottom:7px}.metric b{font-size:23px}.quick-actions{grid-template-columns:1fr 1fr}.quick-actions a{display:grid;padding:12px}.scan-feed>div{grid-template-columns:38px 1fr auto}.parent-main{padding-inline:14px}.parent-grid{grid-template-columns:1fr}.child-card{padding:23px}.kiosk-copy h1{letter-spacing:-.5px}}

/* Mobile refinement · dashboard and all operator modules */
@media(max-width:780px){
 html,body{width:100%;max-width:100%;overflow-x:hidden;background:#edf3fa}body{font-size:14px}
 .topbar{height:72px;position:sticky;top:0;z-index:45;padding:0 17px;background:#fffffff7;box-shadow:0 5px 20px #123d6b0d}.topbar>button{display:grid;width:40px;height:40px;place-items:center;border-radius:12px;background:#eef5fc;color:#0a5fae}.topbar>button svg{width:20px;height:20px}.topbar>div{margin:auto;text-align:center}.topbar>div b{font-size:15px}.topbar>div small{font-size:11px}.main-content{padding:18px 14px 116px}
 .command-hero{min-height:286px;border-radius:24px;padding:25px 18px 70px;box-shadow:0 18px 42px #0871c32e}.command-hero:after{width:250px;height:250px;right:-110px;top:-130px}.command-copy .eyebrow{max-width:200px;font-size:9px;letter-spacing:.1em}.command-copy h1{font-size:25px;line-height:1.25;max-width:225px;margin:12px 0 7px}.command-copy p{max-width:235px;font-size:13px;line-height:1.55}.hero-actions{margin-top:18px}.hero-actions a{min-height:42px;padding:10px 14px}.attendance-orbit{right:15px;top:19px}.orbit-ring{width:76px;height:76px}.orbit-ring:before{width:58px;height:58px}.orbit-ring b{font-size:14px}.orbit-ring small{font-size:6px}.hero-live{height:56px;padding:0 18px;grid-template-columns:9px 1fr auto}.hero-live span b{font-size:11px}.hero-live span small{font-size:8px;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hero-live strong{font-size:18px}
 .metric-row{grid-template-columns:1fr 1fr;gap:10px;margin:14px 0 18px;z-index:auto}.metric{min-height:128px;border-radius:18px;padding:14px;display:flex;flex-direction:column;align-items:flex-start;gap:9px}.metric.cobalt{box-shadow:0 14px 32px #174e9a29}.metric-icon{width:38px;height:38px;border-radius:12px;margin:0}.metric-icon svg{width:19px;height:19px}.metric>div{width:100%}.metric small{font-size:8px;letter-spacing:.04em}.metric b{font-size:24px;margin:2px 0}.metric em{font-size:9px;line-height:1.3}
 .command-grid{display:block}.command-grid>.panel{margin-bottom:14px}.command-grid>.panel:last-child{display:none}.panel{border-radius:19px}.panel-head{min-height:64px;padding:16px 17px;align-items:flex-start}.panel-head h2{font-size:16px}.panel-head p{font-size:10px;margin-top:3px}.live-pill{font-size:8px;padding:5px 7px;white-space:nowrap}.scan-feed{padding:3px 16px}.scan-feed>div{grid-template-columns:40px minmax(0,1fr) auto;gap:10px;padding:12px 0}.scan-avatar{width:40px;height:40px;border-radius:12px}.scan-feed>div>span:nth-child(2){min-width:0}.scan-feed b,.scan-feed small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.scan-feed b{font-size:11px}.scan-feed small,.scan-feed time{font-size:9px}
 .quick-actions{grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.quick-actions a{min-height:105px;border-radius:18px;padding:14px;display:flex;flex-direction:column;align-items:flex-start;gap:10px}.quick-icon{width:40px;height:40px;border-radius:13px}.quick-actions b{font-size:12px}.quick-actions small{font-size:9px;line-height:1.35}
 .mobile-dock{left:9px;right:9px;bottom:9px;min-height:68px;border-radius:22px;padding:8px 5px calc(8px + env(safe-area-inset-bottom));border-color:#d5e2ef;box-shadow:0 14px 42px #143d6c30}.mobile-dock a{font-size:9px;gap:2px}.mobile-dock a svg{width:20px;height:20px}.mobile-dock .dock-primary{width:62px;height:62px;border-radius:20px;border:4px solid #fff;margin-top:-30px;background:linear-gradient(145deg,#159be3,#075eb5);box-shadow:0 10px 28px #0865b860}.mobile-dock .dock-primary svg{width:24px;height:24px}.mobile-dock .dock-primary span{font-size:8px}
 .page-head{display:grid;gap:12px;align-items:start;margin-bottom:17px}.page-head h1{font-size:25px;margin-bottom:5px}.page-head p{font-size:12px}.page-head .btn{justify-self:start}.filter-bar{display:grid;grid-template-columns:1fr 1fr;overflow:visible}.filter-bar>*{width:100%;min-width:0!important}.filter-bar>*:first-child{grid-column:1/-1}.form-card{padding:19px 16px}.form-grid,.form-grid.three{gap:13px}.table-panel{border-radius:18px}.pagination{min-width:520px}.permit-grid{gap:11px}.permit-card{padding:17px}.student-cards{gap:12px}.student-qr-card{min-height:220px;padding:18px}
}
@media(max-width:380px){.main-content{padding-inline:10px}.command-hero{padding-inline:16px}.metric-row{gap:8px}.metric{padding:12px}.quick-actions{gap:8px}.topbar{padding-inline:12px}}
