:root{--navy:#17243f;--blue:#315eea;--blue-dark:#2348a0;--ink:#17243f;--muted:#758198;--line:#e8ecf3;--surface:#fff;--bg:#f4f6fb;--radius:16px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:14px}.app-shell{min-height:100vh;display:flex}.sidebar{width:254px;position:fixed;inset:0 auto 0 0;background:#111d35;color:#fff;padding:22px 15px;display:flex;flex-direction:column;z-index:20;transition:transform .25s}.brand{display:flex;align-items:center;gap:12px;padding:4px 8px 26px;color:#fff;text-decoration:none}.brand b,.brand small{display:block}.brand b{font-size:14px;letter-spacing:.01em}.brand small{color:#a7b3ca;font-size:11px;margin-top:3px}.brand-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(140deg,#4c79ff,#3151d5);color:white;font-size:21px;flex-shrink:0}.nav-caption,.eyebrow{font-size:10px;font-weight:700;letter-spacing:.12em;color:#8591a9}.nav-caption{padding:10px 12px}.sidebar nav{display:grid;gap:5px}.sidebar .nav-link{color:#b8c2d5;border-radius:10px;display:flex;gap:12px;align-items:center;padding:11px 12px;font-size:13px;text-decoration:none}.sidebar .nav-link i{font-size:17px;width:20px}.sidebar .nav-link:hover,.sidebar .nav-link.active{background:#263757;color:white}.sidebar .nav-link.active{box-shadow:inset 3px 0 #7090ff}.sidebar-bottom{margin-top:auto;border-top:1px solid #293650;padding:16px 10px 4px;display:grid;gap:9px}.role-pill{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#b9c9ff}.sidebar-bottom .muted{color:#a7b3ca}.main-area{margin-left:254px;width:calc(100% - 254px);min-height:100vh;display:flex;flex-direction:column}.topbar{height:88px;padding:0 34px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:10}.topbar .eyebrow{color:#929cb0;font-size:9px}.topbar h1{font-size:20px;font-weight:700;margin:3px 0 0}.user-menu{display:flex;align-items:center;gap:10px}.avatar{width:37px;height:37px;border-radius:50%;display:grid;place-items:center;background:#e8edff;color:#315eea;font-weight:700}.user-copy{display:grid;line-height:1.35}.user-copy b{font-size:12px}.user-copy small{color:var(--muted);font-size:11px}.icon-btn{width:36px;height:36px;display:grid;place-items:center;color:#6d7890;border:1px solid transparent}.icon-btn:hover{background:#f4f6fb}.page-content{padding:28px 34px;flex:1;max-width:1600px;width:100%;margin:0 auto}.footer{padding:15px 34px;color:#8993a6;font-size:11px;border-top:1px solid var(--line);background:#fff}.footer span{float:right}.content-card,.stat-card,.welcome-card{background:var(--surface);border:1px solid #edf0f5;border-radius:var(--radius);box-shadow:0 5px 22px rgba(29,48,85,.035);padding:22px}.welcome-card{display:flex;justify-content:space-between;align-items:center;padding:26px 30px;background:linear-gradient(115deg,#18294c,#315eea);color:white;border:0;overflow:hidden}.welcome-card .eyebrow{color:#c1ceff}.welcome-card h2{font-size:23px;margin:9px 0 6px}.welcome-card p:last-child{margin:0;color:#d5ddf6}.welcome-card>i{font-size:86px;opacity:.22;margin-right:28px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:20px}.stat-card{display:flex;gap:14px;align-items:center;padding:18px}.stat-icon{width:45px;height:45px;border-radius:13px;display:grid;place-items:center;font-size:20px}.stat-icon.blue{color:#315eea;background:#edf1ff}.stat-icon.orange{color:#e29629;background:#fff5e7}.stat-icon.purple{color:#7854d4;background:#f3efff}.stat-icon.red{color:#e35165;background:#fff0f2}.stat-card span{display:block;color:var(--muted);font-size:11px;margin-bottom:4px}.stat-card strong{font-size:22px}.content-grid{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.7fr);gap:18px;align-items:start}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}.section-heading h2,.content-card h2{font-size:16px;font-weight:700;margin:0}.section-heading p{font-size:12px;color:var(--muted);margin:5px 0 0}.search-input{max-width:210px}.table{font-size:12px;margin:0;color:#33415c}.table thead th{background:#f8f9fc;color:#77839a;font-size:10px;text-transform:uppercase;letter-spacing:.05em;font-weight:700;white-space:nowrap;border-bottom:1px solid var(--line);padding:12px}.table td{padding:12px;border-color:#f0f2f6;vertical-align:middle}.form-label{font-size:12px;font-weight:600;color:#44516a}.form-control,.form-select{border-color:#e1e6ef;border-radius:9px;font-size:13px;padding:9px 11px}.form-control:focus,.form-select:focus{border-color:#93aaff;box-shadow:0 0 0 .2rem rgba(49,94,234,.12)}.btn{border-radius:9px;font-size:12px;font-weight:600}.btn-primary{background:var(--blue);border-color:var(--blue)}.btn-primary:hover{background:var(--blue-dark);border-color:var(--blue-dark)}.status{display:inline-flex;border-radius:20px;padding:5px 9px;font-size:10px;font-weight:700;white-space:nowrap}.status-success{background:#e8f8f0;color:#178757}.status-warning{background:#fff4df;color:#b77a14}.status-muted{background:#f0f2f6;color:#78849a}.status-danger{background:#ffedf0;color:#c64e61}.empty-inline{padding:26px;text-align:center;color:#8b96a9;font-size:12px}.empty-state{text-align:center;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:60px 20px}.empty-state>i{font-size:42px;color:#91a0b7}.empty-state h2{font-size:18px;margin:15px 0 5px}.live-pill{color:#178757;font-size:11px;background:#e8f8f0;border-radius:20px;padding:6px 10px}.live-pill i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#20aa70;margin-right:5px}.quick-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.quick-links a{display:flex;align-items:center;gap:10px;padding:14px;border:1px solid var(--line);border-radius:11px;text-decoration:none;color:#34425c}.quick-links a>i:first-child{color:#315eea;font-size:18px}.quick-links a>i:last-child{margin-left:auto;color:#a0a9b8}.journal-form{border:1px solid var(--line);border-radius:10px;padding:13px;margin:10px 0}.journal-form summary{font-weight:600;cursor:pointer}.selfie-input{display:flex;align-items:center;gap:8px;max-width:180px;position:relative;cursor:pointer}.selfie-input input{width:100%;font-size:10px}.selfie-input span{white-space:nowrap}.attendance-select{min-width:120px}.profile-card{max-width:800px}.avatar-large{width:62px;height:62px;font-size:24px;margin-bottom:15px}.profile-card h2{font-size:20px}.auth-page{min-height:100vh;background:radial-gradient(ellipse at top left,#e8edff,transparent 55%),#f4f6fb;display:grid;place-items:center;padding:24px}.auth-card{width:min(100%,440px);padding:34px;background:#fff;border:1px solid #e9edf4;border-radius:20px;box-shadow:0 20px 70px rgba(35,55,100,.10)}.auth-card .brand-mark{margin-bottom:20px}.auth-card .eyebrow{color:#7485bd}.auth-card h1{font-size:24px;font-weight:750;margin:8px 0}.auth-card .muted{color:var(--muted);font-size:13px;margin-bottom:23px}.auth-card .form-label{margin-bottom:6px}.alert{font-size:12px;border-radius:10px}.searchable-table tr[hidden]{display:none}
.dashboard-chart{height:250px!important}.honor-print-header{display:none}.mobile-bottom-nav{display:none}.avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.profile-grid{grid-template-columns:minmax(0,1.4fr) minmax(280px,.8fr)}.profile-summary{display:flex;align-items:center;gap:15px}.profile-avatar{width:74px;height:74px;overflow:hidden;font-size:28px;flex-shrink:0}.profile-summary h2{margin-bottom:5px}.profile-card{max-width:none}
.brand-logo{width:42px;height:42px;object-fit:contain;background:#fff;border-radius:10px;padding:3px}.qr-code-image{width:240px;height:240px;padding:10px;background:#fff}.qr-code-image img,.qr-code-image canvas{margin:auto}.qr-reader{max-width:480px;margin-left:auto;margin-right:auto}.qr-confirm-card{max-width:760px;margin:auto}.qr-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.qr-details>div{background:#f7f8fc;padding:14px;border-radius:10px}.qr-details dt{font-size:10px;text-transform:uppercase;color:var(--muted);letter-spacing:.07em}.qr-details dd{font-weight:700;margin:5px 0 0}.school-logo-preview{width:auto;height:auto;max-width:180px;max-height:120px;object-fit:contain;border:1px solid var(--line);border-radius:10px;padding:8px}.import-help{padding-left:20px;color:#66738a;font-size:12px;line-height:1.8}
@media(max-width:700px){.qr-details{grid-template-columns:1fr}}
.sidebar{overflow:hidden}.sidebar nav{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;align-content:start;grid-auto-rows:max-content;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#445575 transparent}.sidebar nav::-webkit-scrollbar{width:6px}.sidebar nav::-webkit-scrollbar-thumb{background:#445575;border-radius:8px}.sidebar-bottom{flex-shrink:0}
@media(max-width:1100px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.content-grid{grid-template-columns:1fr}.page-content{padding:24px}.topbar{padding:0 24px}}
@media(max-width:700px){.sidebar{transform:translateX(-100%);box-shadow:8px 0 30px #13203b30}.sidebar.open{transform:translateX(0)}.main-area{margin-left:0;width:100%}.topbar{height:74px;padding:0 15px}.topbar h1{font-size:17px}.topbar .eyebrow{display:none}.user-copy{display:none}.page-content{padding:17px 13px}.content-card{padding:16px}.welcome-card{padding:21px}.welcome-card h2{font-size:19px}.welcome-card>i{font-size:54px;margin-right:0}.stats-grid{gap:10px}.stat-card{padding:12px;gap:9px}.stat-card strong{font-size:19px}.stat-icon{width:38px;height:38px;font-size:17px}.quick-links{grid-template-columns:1fr 1fr}.section-heading{align-items:flex-start}.search-input{max-width:135px}.footer{padding:14px}.footer span{float:none;display:block;margin-top:3px}.auth-card{padding:25px 20px}}
@media(max-width:700px){.topbar .d-lg-none{display:none!important}.page-content{padding-bottom:calc(94px + env(safe-area-inset-bottom))}.mobile-bottom-nav{position:fixed;inset:auto 0 0;z-index:1030;display:grid;grid-template-columns:repeat(var(--mobile-nav-items),minmax(0,1fr));gap:2px;padding:8px 7px calc(8px + env(safe-area-inset-bottom));background:rgba(255,255,255,.96);border-top:1px solid var(--line);box-shadow:0 -8px 28px rgba(20,35,65,.1);backdrop-filter:blur(16px)}.mobile-nav-link{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:5px 2px;border:0;border-radius:12px;background:transparent;color:#73809a;text-decoration:none;font:inherit}.mobile-nav-link i{font-size:19px;line-height:1}.mobile-nav-link span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;font-weight:650}.mobile-nav-link.active{background:#edf1ff;color:var(--blue)}.mobile-more-menu{height:auto;max-height:78dvh;border:0;border-radius:22px 22px 0 0;box-shadow:0 -12px 40px rgba(20,35,65,.18)}.mobile-more-menu .offcanvas-header{padding:20px 20px 12px}.mobile-more-menu .offcanvas-title{font-size:17px;font-weight:700}.mobile-more-menu .offcanvas-body{padding:12px 20px calc(28px + env(safe-area-inset-bottom));overflow-y:auto}.mobile-more-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.mobile-more-link{min-height:84px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:10px;border:1px solid var(--line);border-radius:14px;color:#34425c;text-align:center;text-decoration:none;font-size:11px}.mobile-more-link i{font-size:21px;color:var(--blue)}.mobile-more-link.active{background:#edf1ff;border-color:#cdd8ff}}
@media print{body{background:#fff}.sidebar,.topbar,.footer,.no-print,.mobile-bottom-nav,.mobile-more-menu{display:none!important}.main-area{margin:0;width:100%}.page-content{padding:0;max-width:none}.content-card{box-shadow:none;border:0;padding:0}.print-area .section-heading{border-bottom:1px solid #333;padding-bottom:12px}.table{font-size:10px}body.page-honor .honor-controls{display:none!important}body.page-honor .honor-print-header{display:block!important;margin-bottom:18px}body.page-honor .honor-print-header h1{font-size:18px}body.page-honor .honor-print-header h2{font-size:15px}body.page-honor .honor-action-column{display:none!important}body.page-honor .honor-report{padding:0!important}}
@media(max-width:700px){body{background:linear-gradient(180deg,#edf2ff 0,#f6f7fb 240px);overscroll-behavior-x:none}.topbar{position:sticky;top:0;z-index:1020;height:68px;padding:0 15px;background:rgba(255,255,255,.88);border-bottom-color:rgba(221,227,239,.8);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.topbar h1{font-size:16px;letter-spacing:-.025em}.user-menu{gap:7px}.user-menu .avatar{width:34px;height:34px}.user-menu>.icon-btn,.user-menu form .icon-btn{width:32px;height:32px}.page-content{padding:16px 12px calc(118px + env(safe-area-inset-bottom));max-width:760px}.content-grid,.content-grid>*{min-width:0}.content-card,.stat-card,.welcome-card{border:1px solid rgba(226,231,242,.85);border-radius:20px;box-shadow:0 8px 26px rgba(38,57,99,.065)}.content-card{padding:17px;margin-bottom:14px}.section-heading{align-items:flex-start;flex-direction:column;gap:12px;margin-bottom:16px}.section-heading h2,.content-card h2{font-size:16px;letter-spacing:-.02em}.section-heading>form,.section-heading>.d-flex,.section-heading>.btn{width:100%;max-width:none}.section-heading>form .search-input{max-width:none;min-width:0}.search-input{max-width:none}.form-control,.form-select{min-height:42px;border-radius:12px}.btn{min-height:38px;border-radius:12px}.table-responsive{border:1px solid #edf0f6;border-radius:14px;background:#fff}.table{font-size:12px}.table thead th{padding:11px 10px}.table td{padding:11px 10px}.table .action-toolbar{align-items:center;gap:5px!important}.table .action-toolbar>.btn,.table .action-toolbar>form>.btn{width:38px;min-width:38px;height:38px;min-height:38px;padding:0;display:inline-flex;align-items:center;justify-content:center}.table .action-toolbar .action-label{display:none}.table .action-toolbar>.btn i,.table .action-toolbar>form>.btn i{font-size:16px;line-height:1}.table .action-toolbar>form{margin:0}.table .action-toolbar input.form-control{min-width:92px;width:92px;min-height:38px;padding:7px}.table td:last-child>.action-toolbar select{max-width:124px;min-width:104px}.table td:nth-last-child(2) form .btn[aria-label]{width:38px;min-width:38px;height:38px;min-height:38px;padding:0;font-size:0;display:inline-flex;align-items:center;justify-content:center}.table td:nth-last-child(2) form .btn[aria-label] i{font-size:16px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}.stat-card{min-width:0;padding:13px 11px;gap:9px}.stat-card span{line-height:1.35}.stat-card strong{font-size:18px}.quick-links{gap:8px}.quick-links a{min-height:66px;padding:11px;border-radius:14px;font-size:12px}.welcome-card{border:0;border-radius:22px;padding:22px 18px}.welcome-card h2{font-size:19px;line-height:1.25}.welcome-card p:last-child{font-size:12px;line-height:1.5}.alert{border-radius:14px}.mobile-bottom-nav{position:fixed!important;inset:auto 10px calc(9px + env(safe-area-inset-bottom))!important;z-index:1050;display:grid;grid-template-columns:repeat(var(--mobile-nav-items),minmax(0,1fr));gap:4px;padding:7px;background:rgba(255,255,255,.9);border:1px solid rgba(222,228,240,.9);border-radius:21px;box-shadow:0 12px 36px rgba(23,36,63,.18);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);transform:translateZ(0);will-change:transform}.mobile-nav-link{min-height:54px;gap:4px;padding:5px 2px;border-radius:15px;color:#7a849a;transition:background .18s ease,color .18s ease,transform .18s ease}.mobile-nav-link i{font-size:19px}.mobile-nav-link span{font-size:9px;letter-spacing:.005em}.mobile-nav-link.active{background:linear-gradient(145deg,#edf1ff,#e6ecff);color:#315eea}.mobile-nav-link:active{transform:scale(.94)}.mobile-more-menu{z-index:1070;max-height:78dvh;padding-bottom:env(safe-area-inset-bottom);border-radius:24px 24px 0 0}.offcanvas-backdrop{z-index:1060}.mobile-more-link{min-height:82px;border-radius:16px;background:rgba(255,255,255,.75)}.footer{padding:12px 16px}.qr-reader{max-width:100%;border-radius:16px;overflow:hidden}}
@media print{.mobile-bottom-nav{display:none!important}}
@media(max-width:700px){.profile-grid{grid-template-columns:1fr}.profile-avatar{width:64px;height:64px}}
@media(max-width:700px){.mobile-nav-attendance{position:relative;z-index:1;margin-top:-12px!important;overflow:visible!important}.mobile-nav-attendance i{width:44px;height:44px;display:grid;place-items:center;border:4px solid #fff;border-radius:50%;background:linear-gradient(145deg,#4774ff,#3151d5);box-shadow:0 6px 15px rgba(49,94,234,.32);color:#fff;font-size:20px!important}.mobile-nav-attendance span{margin-top:-2px;color:#315eea;font-size:9px!important;font-weight:750!important}.mobile-nav-attendance.active{background:transparent!important;color:#315eea}.mobile-nav-attendance:active{transform:translateY(-12px) scale(.96)!important}}
.schedule-list-grid{grid-template-columns:minmax(0,1fr)}

html, body {
    touch-action: pan-x pan-y;
    -webkit-text-size-adjust: 100%;
}