:root {
    --surface: #e9eef3;
    --surface-soft: #f0f4f8;
    --surface-deep: #dfe6ed;
    --surface-white: #f8fafc;
    --ink: #334155;
    --ink-strong: #283747;
    --muted: #748293;
    --blue: #1687e8;
    --blue-dark: #0b67b6;
    --green: #168b64;
    --green-dark: #117151;
    --warning: #a97111;
    --danger: #c84e58;
    --line: rgba(125, 142, 159, .16);
    --shadow-raised: -10px -10px 22px rgba(255,255,255,.92), 10px 10px 22px rgba(151,166,181,.31);
    --shadow-raised-sm: -5px -5px 11px rgba(255,255,255,.9), 5px 5px 11px rgba(151,166,181,.25);
    --shadow-inset: inset 5px 5px 10px rgba(166,177,189,.28), inset -5px -5px 10px rgba(255,255,255,.92);
    --shadow-inset-sm: inset 3px 3px 6px rgba(166,177,189,.24), inset -3px -3px 6px rgba(255,255,255,.92);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--surface); }
body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    font: 15px/1.5 "Segoe UI", "DM Sans", Arial, sans-serif;
}
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { margin-top: 0; color: var(--ink-strong); font-family: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif; font-weight: 800; letter-spacing: -.035em; }

.app-orb { position: fixed; z-index: 0; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-raised); pointer-events: none; }
.orb-one { width: 190px; height: 190px; top: 16%; left: -82px; }
.orb-two { width: 220px; height: 220px; right: -88px; bottom: 8%; }
.orb-three { width: 60px; height: 60px; top: 13%; right: 14%; }
.glass-panel { border: 1px solid rgba(255,255,255,.64); background: rgba(240,244,248,.9); box-shadow: var(--shadow-raised); }

/* Shell and navigation */
.app-shell { position: relative; z-index: 1; display: flex; width: min(1580px, calc(100% - 36px)); min-height: 100vh; margin: 0 auto; }
.sidebar { position: sticky; top: 18px; align-self: flex-start; display: flex; flex-direction: column; width: 278px; min-height: calc(100vh - 36px); margin: 18px 0; padding: 18px 14px; border: 0; border-radius: 28px; background: var(--surface-soft); box-shadow: var(--shadow-raised); }
.brand { display: flex; align-items: center; gap: 11px; padding: 7px 7px 18px; color: var(--ink); }
.brand img { width: 52px; height: 52px; padding: 5px; border-radius: 14px; object-fit: contain; background: var(--surface); box-shadow: var(--shadow-inset); }
.brand span { display: flex; flex-direction: column; line-height: 1.05; }
.brand strong { color: var(--ink-strong); font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.24rem; letter-spacing: .01em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.profile-chip { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 12px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-inset); }
.profile-initial { display: grid; width: 38px; height: 38px; flex: none; place-items: center; border-radius: 13px; color: var(--blue-dark); background: var(--surface-soft); box-shadow: var(--shadow-raised-sm); font-weight: 800; }
.profile-chip div:last-child { min-width: 0; }.profile-chip strong, .profile-chip small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.profile-chip strong { color: var(--ink); font-size: .82rem; }.profile-chip small { color: var(--muted); font-size: .72rem; }
.app-nav { gap: 4px; }.app-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 13px; color: #5d6a7a; font-size: .9rem; font-weight: 700; transition: color .16s ease, box-shadow .16s ease; }.app-nav a i { width: 20px; font-size: 1.08rem; text-align: center; }.app-nav a:hover, .app-nav a.active { color: var(--blue-dark); background: var(--surface); box-shadow: var(--shadow-inset); }.nav-caption { margin: 18px 10px 5px; color: #8a97a5; font-size: .63rem; font-weight: 800; letter-spacing: .11em; }.logout-link { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 11px 12px; border-radius: 13px; color: var(--danger); font-size: .88rem; font-weight: 700; }.logout-link:hover { background: var(--surface); box-shadow: var(--shadow-inset); color: #b33f49; }
.main-content { min-width: 0; flex: 1; padding: 30px 34px 44px; }.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }.topbar h1 { margin: 0; font-size: 1.72rem; }.eyebrow { margin: 0; color: var(--blue-dark); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }.topbar-date { display: flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 12px; color: var(--muted); background: var(--surface-soft); box-shadow: var(--shadow-raised-sm); font-size: .8rem; font-weight: 700; }.topbar-date i { color: var(--blue); font-size: 1rem; }.sidebar-toggle { border: 0; border-radius: 12px; color: var(--blue-dark); background: var(--surface-soft); box-shadow: var(--shadow-raised-sm); padding: 8px 10px; }.sidebar-backdrop { display: none; }

/* Shared components */
.content-card { padding: 24px; border-radius: 23px; background: var(--surface-soft); box-shadow: var(--shadow-raised); }.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }.section-heading h2, .section-heading h3 { margin: 5px 0 0; font-size: 1.2rem; }.app-alert { display: flex; align-items: center; gap: 9px; border: 0; border-radius: 14px; box-shadow: var(--shadow-inset); }.alert-success { color: #136548; background: #dff4eb; }.alert-danger { color: #a63f46; background: #fae5e6; }.alert-warning { color: #8b5e11; background: #fff3d9; }.alert-info { color: #1d628a; background: #e2f4ff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: .55rem .92rem; border: 0 !important; border-radius: 12px; color: var(--blue-dark); background: var(--surface-soft); box-shadow: var(--shadow-raised-sm); font-weight: 750; transition: transform .16s ease, box-shadow .16s ease; }.btn:hover { transform: translateY(-2px); color: var(--blue-dark); background: var(--surface-soft); }.btn:active { transform: translateY(1px); box-shadow: var(--shadow-inset); }.btn:focus-visible { outline: 3px solid rgba(22,135,232,.27); outline-offset: 2px; }.btn-lg { min-height: 48px; border-radius: 14px; padding: .72rem 1.08rem; }.btn-success { color: var(--green-dark); }.btn-outline-primary, .btn-outline-light { color: var(--blue-dark); }.btn-sm { min-height: 34px; padding: .42rem .68rem; }
.status-pill { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 6px 9px; border-radius: 999px; box-shadow: var(--shadow-inset-sm); font-size: .68rem; font-weight: 800; white-space: nowrap; }.status-pill.success { color: #137052; background: #ddf3e9; }.status-pill.warning { color: #8b5e11; background: #fff3d9; }.status-pill.blue { color: var(--blue-dark); background: #e2f4ff; }.status-pill.muted { color: #697686; background: #e4e9ee; }
.form-label { color: #5e6c7c; font-size: .78rem; font-weight: 750; }.form-control, .form-select { min-height: 44px; border: 0; border-radius: 11px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow-inset); }.form-control:focus, .form-select:focus { border: 0; color: var(--ink); background: var(--surface); box-shadow: inset 4px 4px 9px rgba(166,177,189,.25), inset -4px -4px 9px rgba(255,255,255,.95), 0 0 0 3px rgba(22,135,232,.12); }.input-group-text { border: 0; border-radius: 11px 0 0 11px; color: var(--blue); background: var(--surface); box-shadow: var(--shadow-inset); }.input-group .btn { border-radius: 0 11px 11px 0; }.field-note, .filter-helper { color: var(--muted); font-size: .74rem; }.field-note i, .filter-helper i { color: var(--blue); }.soft-icon { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 12px; color: var(--blue); background: var(--surface); box-shadow: var(--shadow-raised-sm); font-size: 1.15rem; }

/* Dashboard */
.hero-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 150px; padding: 30px 34px; border-radius: 25px; color: var(--ink); background: var(--surface-soft); box-shadow: var(--shadow-raised); }.hero-panel h2 { margin: 7px 0; font-size: 1.45rem; }.hero-panel p:not(.eyebrow) { max-width: 700px; margin: 0; color: var(--muted); }.hero-panel.compact { min-height: 130px; }.hero-date { display: flex; min-width: 100px; flex-direction: column; align-items: center; padding: 13px 18px; border-radius: 20px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow-inset); }.hero-date span, .hero-date small { color: var(--muted); font-size: .67rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }.hero-date strong { color: var(--ink-strong); font-family: "Plus Jakarta Sans", sans-serif; font-size: 2.5rem; line-height: 1.1; }.hero-symbol { display: grid; width: 78px; height: 78px; flex: none; place-items: center; border-radius: 24px; color: var(--blue); background: var(--surface); box-shadow: var(--shadow-inset); font-size: 2.3rem; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }.metric-card { display: flex; align-items: center; gap: 13px; padding: 18px; border-radius: 20px; background: var(--surface-soft); box-shadow: var(--shadow-raised); }.metric-icon { display: grid; width: 45px; height: 45px; flex: none; place-items: center; border-radius: 15px; background: var(--surface); box-shadow: var(--shadow-inset); font-size: 1.35rem; }.metric-icon.blue { color: var(--blue); }.metric-icon.green { color: var(--green); }.metric-icon.amber { color: var(--warning); }.metric-icon.violet { color: #6a58a8; }.metric-card small { display: block; color: var(--muted); font-size: .72rem; font-weight: 700; }.metric-card strong { display: block; margin-top: 2px; color: var(--ink-strong); font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.38rem; line-height: 1; }.metric-card em { color: var(--muted); font-family: inherit; font-size: .68rem; font-style: normal; font-weight: 600; }
.scan-cta { color: var(--ink); background: var(--surface-soft); box-shadow: var(--shadow-raised); }.scan-cta h3 { margin: 8px 0; }.scan-cta p:not(.eyebrow) { color: var(--muted); }.scan-icon { display: grid; width: 53px; height: 53px; place-items: center; margin-bottom: 18px; border-radius: 18px; color: var(--blue); background: var(--surface); box-shadow: var(--shadow-inset); font-size: 1.75rem; }.activity-list { display: flex; flex-direction: column; }.activity-row { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--line); }.activity-row:last-child { border-bottom: 0; }.activity-row > div { min-width: 0; flex: 1; }.activity-row strong, .activity-row small { display: block; }.activity-row strong { color: var(--ink); font-size: .88rem; }.activity-row small { margin-top: 3px; color: var(--muted); font-size: .72rem; }.activity-icon { display: grid; width: 37px; height: 37px; flex: none; place-items: center; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-inset); font-size: 1.05rem; }.activity-icon.blue { color: var(--blue); }.activity-icon.green { color: var(--green); }.activity-icon.amber { color: var(--warning); }.quick-actions { display: flex; flex-direction: column; gap: 9px; }.quick-action { display: flex; align-items: center; gap: 11px; padding: 11px; border-radius: 14px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow-inset); transition: transform .16s ease; }.quick-action:hover { transform: translateX(3px); color: var(--blue-dark); }.quick-action > i:first-child { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 12px; color: var(--blue); background: var(--surface-soft); box-shadow: var(--shadow-raised-sm); }.quick-action span { flex: 1; }.quick-action strong, .quick-action small { display: block; }.quick-action strong { font-size: .84rem; }.quick-action small { color: var(--muted); font-size: .7rem; }.empty-state { display: flex; min-height: 200px; flex-direction: column; align-items: center; justify-content: center; padding: 20px; color: var(--muted); text-align: center; }.empty-state > i { margin-bottom: 9px; color: #9aa8b8; font-size: 2.2rem; }.empty-state p { margin: 0 0 3px; color: var(--ink); font-weight: 700; }.empty-state span { font-size: .8rem; }

/* Scan and forms */
.scanner-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 20px; }.scanner-card, .scan-guide { border-radius: 24px; }.scanner-intro { max-width: 690px; margin: 0 0 20px; color: var(--muted); }.scan-live { display: inline-flex; align-items: center; gap: 6px; color: var(--green-dark); font-size: .72rem; font-weight: 800; }.scan-live span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px #dff4eb; }.camera-frame { position: relative; display: grid; min-height: 335px; place-items: center; overflow: hidden; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-inset); }.camera-frame video { width: 100% !important; height: auto !important; border-radius: 18px; object-fit: cover; }.camera-frame #qr-reader__dashboard { padding: 8px; background: var(--surface); text-align: center; }.camera-frame #qr-reader__dashboard_section_csr button { border: 0; border-radius: 9px; color: var(--blue-dark); background: var(--surface-soft); box-shadow: var(--shadow-raised-sm); padding: 5px 8px; }.camera-placeholder { display: flex; flex-direction: column; align-items: center; gap: 7px; color: var(--muted); }.camera-placeholder i { color: var(--blue); font-size: 3rem; }.camera-placeholder strong { color: var(--ink); }.camera-placeholder span { font-size: .77rem; }.scanner-actions { display: flex; gap: 10px; margin: 14px 0; }.scanner-divider { display: flex; align-items: center; gap: 10px; margin: 20px 0; color: var(--muted); font-size: .75rem; }.scanner-divider::before, .scanner-divider::after { height: 1px; flex: 1; background: var(--surface-deep); content: ""; }.scan-guide { display: flex; flex-direction: column; gap: 8px; }.scan-guide h3 { margin: 0; font-size: .97rem; }.scan-guide p { margin: 0 0 11px; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.manual-scan-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(185px,.75fr) auto; align-items: end; gap: 12px; }.manual-scan-grid .btn { min-height: 44px; white-space: nowrap; }.warning-note { color: var(--warning); }.embossed-modal { border: 0; border-radius: 23px; color: var(--ink); background: var(--surface-soft); box-shadow: var(--shadow-raised); }.embossed-modal .modal-header { align-items: flex-start; border: 0; padding: 24px 24px 10px; }.embossed-modal .modal-title { margin: 4px 0 0; font-size: 1.3rem; }.embossed-modal .btn-close { margin: 2px 0 0; border-radius: 10px; background-color: var(--surface); box-shadow: var(--shadow-inset-sm); opacity: .72; }.embossed-modal .modal-body { padding: 14px 24px 8px; }.modal-copy { margin: 0 0 4px; color: var(--muted); font-size: .8rem; }.scanned-class-name { display: block; padding: 11px 13px; border-radius: 13px; color: var(--ink-strong); background: var(--surface); box-shadow: var(--shadow-inset); }.embossed-modal .modal-footer { justify-content: flex-end; gap: 8px; border: 0; padding: 16px 24px 24px; }.embossed-modal .modal-footer > * { margin: 0; }

/* Schedule, reports and QR */
.filter-panel { border-radius: 20px; }.app-table { --bs-table-bg: transparent; --bs-table-color: var(--ink); margin: 0; }.app-table th { border-bottom-color: var(--line); color: #5d6a79; background: rgba(224,231,238,.58); font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }.app-table td { border-bottom-color: var(--line); color: var(--ink); font-size: .84rem; }.app-table td strong, .app-table td small { display: block; }.app-table td strong { color: var(--ink); font-size: .84rem; }.app-table td small { margin-top: 2px; color: var(--muted); font-size: .7rem; }.app-table tbody tr:last-child td { border-bottom: 0; }.report-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: .78rem; font-weight: 700; }.report-presets a { padding: 6px 10px; border-radius: 999px; color: var(--blue-dark); background: var(--surface-soft); box-shadow: var(--shadow-raised-sm); }.report-presets a:hover { box-shadow: var(--shadow-inset); }.schedule-day { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }.schedule-day:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }.schedule-day-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }.schedule-day-title strong { color: var(--ink); font-family: "Plus Jakarta Sans", sans-serif; font-size: .95rem; }.schedule-day-title span { color: var(--muted); font-size: .72rem; font-weight: 700; }.schedule-slots { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }.schedule-slot { display: flex; align-items: center; gap: 9px; padding: 9px; border-radius: 13px; background: var(--surface); box-shadow: var(--shadow-inset); }.period-number { display: grid; width: 30px; height: 30px; flex: none; place-items: center; border-radius: 10px; color: var(--blue-dark); background: var(--surface-soft); box-shadow: var(--shadow-raised-sm); font-size: .8rem; font-weight: 800; }.schedule-slot > div { min-width: 0; flex: 1; }.schedule-slot strong, .schedule-slot small { display: block; }.schedule-slot strong { color: var(--ink); font-size: .76rem; }.schedule-slot small { margin-top: 2px; color: var(--muted); font-size: .7rem; }.btn-icon-danger { border: 0; border-radius: 8px; color: var(--danger); background: var(--surface); box-shadow: var(--shadow-raised-sm); padding: 5px 7px; }.btn-icon-danger:hover { box-shadow: var(--shadow-inset); }.empty-inline { padding: 16px; border-radius: 12px; color: var(--muted); background: var(--surface); box-shadow: var(--shadow-inset); font-size: .82rem; }.sticky-xl-top { top: 18px; }
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(210px,1fr)); gap: 18px; }.qr-card { padding: 18px; border-radius: 22px; background: var(--surface-soft); box-shadow: var(--shadow-raised); text-align: center; }.qr-preview { display: grid; aspect-ratio: 1; place-items: center; margin-bottom: 14px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-inset); }.qr-preview img { width: 88%; height: 88%; object-fit: contain; mix-blend-mode: multiply; }.qr-card h3 { margin: 5px 0; font-size: 1.02rem; }.qr-card p:not(.eyebrow) { min-height: 28px; margin: 4px 0 14px; color: var(--muted); font-size: .69rem; }.qr-card code { border-radius: 4px; color: #46647e; background: var(--surface); box-shadow: var(--shadow-inset-sm); padding: 2px 4px; }.print-sheet { max-width: 600px; margin: 10px auto; padding: 34px; border-radius: 24px; text-align: center; }.print-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 22px; }.print-brand img { width: 48px; height: 48px; object-fit: contain; }.print-brand div { display: flex; flex-direction: column; text-align: left; line-height: 1.1; }.print-brand strong { color: var(--ink); font-size: 1.15rem; }.print-brand span, .print-instruction { color: var(--muted); font-size: .7rem; font-weight: 700; }.print-sheet h2 { margin: 5px 0 18px; font-size: 1.85rem; }.print-qr { display: inline-grid; place-items: center; padding: 14px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-inset); }.print-qr img { width: 270px; max-width: 70vw; }.print-instruction { max-width: 370px; margin: 18px auto 20px; font-size: .85rem; font-weight: 400; }

/* Class monitoring */
.monitor-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 3px 19px; }.monitor-heading h2 { margin: 5px 0 0; font-size: 1.3rem; }.class-monitor-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(310px,1fr)); gap: 18px; }.class-monitor-card { overflow: hidden; border-radius: 22px; background: var(--surface-soft); box-shadow: var(--shadow-raised); transition: transform .18s ease, box-shadow .18s ease; }.class-monitor-card:hover { transform: translateY(-3px); }.class-monitor-card.empty { background: #f3edef; }.class-monitor-card.late { background: #f5f0e7; }.class-card-toggle { display: grid; width: 100%; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 13px; border: 0; color: inherit; background: transparent; cursor: pointer; padding: 19px; text-align: left; }.class-card-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 15px; color: var(--blue); background: var(--surface); box-shadow: var(--shadow-inset); font-size: 1.25rem; }.class-monitor-card.empty .class-card-icon { color: #aa6670; background: #f6edef; }.class-monitor-card.late .class-card-icon { color: var(--warning); background: #fbf4e8; }.class-card-content, .class-card-title, .class-card-teacher, .class-card-status { display: flex; min-width: 0; flex-direction: column; }.class-card-title strong, .class-card-teacher strong { overflow: hidden; color: var(--ink); font-size: .93rem; text-overflow: ellipsis; white-space: nowrap; }.class-card-title small, .class-card-teacher small { color: var(--muted); font-size: .68rem; font-weight: 700; }.class-card-teacher { margin-top: 12px; }.class-card-teacher em { overflow: hidden; margin-top: 3px; color: #6f7e8f; font-size: .7rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }.class-card-status { align-self: stretch; align-items: flex-end; justify-content: space-between; gap: 13px; }.class-card-chevron { color: #8492a1; transition: transform .18s ease; }.class-monitor-card.expanded .class-card-chevron { transform: rotate(180deg); }.class-history { padding: 0 19px 19px; }.class-history-heading { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-top: 1px solid var(--line); color: var(--ink); font-size: .78rem; }.class-history-heading span { color: var(--muted); font-size: .68rem; font-weight: 700; }.class-history-list { display: flex; flex-direction: column; gap: 1px; }.class-history-row { display: grid; grid-template-columns: 38px 14px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }.class-history-row:last-child { border-bottom: 0; }.history-time { color: #6b7a8b; font-size: .7rem; font-weight: 800; }.history-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px #dff4eb; }.history-dot.late { background: var(--warning); box-shadow: 0 0 0 4px #fff3d9; }.history-teacher { min-width: 0; }.history-teacher strong, .history-teacher small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.history-teacher strong { color: var(--ink); font-size: .76rem; }.history-teacher small { margin-top: 2px; color: var(--muted); font-size: .66rem; }.class-history-empty { display: flex; align-items: center; gap: 8px; padding: 13px; border-radius: 13px; color: var(--muted); background: var(--surface); box-shadow: var(--shadow-inset); font-size: .73rem; }.class-history-empty i { color: #aa6670; font-size: 1rem; }

/* Login and error */
.login-body { display: grid; color: var(--ink); background: var(--surface); }.login-layout { position: relative; z-index: 1; display: grid; width: min(1110px,calc(100% - 40px)); grid-template-columns: 1.1fr minmax(370px,.75fr); align-items: center; gap: min(8vw,112px); margin: auto; }.login-intro { padding: 24px 0; }.login-logo { width: min(335px,80%); max-height: 205px; object-fit: contain; object-position: left center; filter: drop-shadow(9px 9px 14px rgba(151,166,181,.28)); }.login-intro h1 { margin: 10px 0 14px; font-size: clamp(2rem,4vw,3.3rem); line-height: 1.12; }.login-intro h1 span { color: var(--blue-dark); }.login-copy { max-width: 540px; color: var(--muted); font-size: 1.02rem; line-height: 1.75; }.security-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 13px; border-radius: 12px; color: #5e6c7c; background: var(--surface); box-shadow: var(--shadow-inset); font-size: .78rem; }.security-note i { color: var(--green); font-size: 1rem; }.login-card { padding: 30px; border: 0; border-radius: 27px; color: var(--ink); background: var(--surface-soft); box-shadow: var(--shadow-raised); }.login-card-heading { display: flex; align-items: center; gap: 12px; }.login-card-heading .soft-icon { width: 45px; height: 45px; }.login-card h2 { margin: 0; font-size: 1.35rem; }.login-subtitle { margin: 13px 0 18px; color: var(--muted); }.login-card .form-label { color: #5e6c7c; }.login-card .form-control { color: var(--ink); }.password-toggle { color: var(--blue-dark); }.login-footer { margin: 18px 0 0; color: var(--muted); font-size: .74rem; text-align: center; }.login-footer i { color: var(--green); }.error-card { max-width: 600px; margin: 8vh auto; text-align: center; }.error-icon { display: grid; width: 64px; height: 64px; place-items: center; margin: 0 auto 18px; border-radius: 22px; color: var(--warning); background: var(--surface); box-shadow: var(--shadow-inset); font-size: 1.9rem; }.error-card p:not(.eyebrow) { color: var(--muted); }

@media (max-width:1100px) { .sidebar { width: 244px; }.main-content { padding: 28px 22px 36px; }.metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.scanner-layout { grid-template-columns: 1fr; }.scan-guide { display: grid; grid-template-columns: 42px 1fr; align-items: center; column-gap: 12px; }.scan-guide h3 { margin: 0; }.scan-guide p { grid-column: 2; margin-top: -10px; }.login-layout { gap: 45px; } }
@media (max-width:820px) { .app-shell { display: block; z-index: auto; width: 100%; }.sidebar { position: fixed; z-index: 1001; top: 10px; bottom: 10px; left: 10px; width: min(285px,calc(100vw - 30px)); min-height: 0; margin: 0; pointer-events: auto; transform: translateX(calc(-100% - 25px)); transition: transform .22s ease; }.sidebar.open { transform: translateX(0); }.sidebar-backdrop { position: fixed; z-index: 1000; inset: 0; background: rgba(40,55,71,.22); backdrop-filter: blur(2px); }.sidebar-backdrop.show { display: block; }.main-content { padding: 22px 16px 30px; }.topbar { margin-bottom: 20px; }.topbar h1 { font-size: 1.4rem; }.topbar-date { display: none; }.hero-panel { min-height: 145px; padding: 23px; }.hero-panel h2 { font-size: 1.2rem; }.hero-date { min-width: 77px; padding: 10px; }.hero-date strong { font-size: 2rem; }.schedule-slots { grid-template-columns: 1fr; }.login-layout { width: min(540px,calc(100% - 32px)); grid-template-columns: 1fr; gap: 10px; padding: 25px 0; }.login-intro { text-align: center; }.login-logo { object-position: center; }.login-copy { margin-right: auto; margin-left: auto; }.security-note { text-align: left; } }
@media (max-width:720px) { .manual-scan-grid { grid-template-columns: 1fr; }.manual-scan-grid .btn { width: 100%; } }
@media (max-width:530px) { .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }.metric-card { gap: 8px; padding: 13px; }.metric-icon { width: 35px; height: 35px; border-radius: 11px; font-size: 1rem; }.metric-card strong { font-size: 1.12rem; }.metric-card small { font-size: .65rem; }.hero-panel { align-items: flex-start; }.hero-date { display: none; }.content-card { padding: 17px; }.activity-row { align-items: flex-start; flex-wrap: wrap; }.activity-row .status-pill { margin-left: 48px; }.scanner-actions { flex-wrap: wrap; }.scanner-actions .btn { flex: 1; white-space: nowrap; }.camera-frame { min-height: 270px; }.qr-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }.qr-card { padding: 11px; }.qr-card h3 { font-size: .84rem; }.qr-card .btn { padding: .55rem .35rem; font-size: .7rem; }.app-table { min-width: 620px; }.login-intro h1 { font-size: 2rem; }.login-card { padding: 20px; }.print-sheet { padding: 24px 15px; }.class-monitor-grid { grid-template-columns: 1fr; gap: 13px; }.class-card-toggle { grid-template-columns: 42px minmax(0,1fr) auto; gap: 10px; padding: 16px; }.class-card-icon { width: 42px; height: 42px; }.class-history { padding: 0 16px 16px; }.class-history-row { grid-template-columns: 34px 12px minmax(0,1fr); }.class-history-row .status-pill { grid-column: 3; justify-self: start; }.monitor-heading { align-items: flex-start; flex-direction: column; } }
@media print { body { background: #fff !important; } body::before, .app-orb, .sidebar, .topbar, .sidebar-backdrop, .no-print, .app-alert { display: none !important; }.app-shell, .main-content { display: block !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; }.glass-panel, .content-card, .class-monitor-card { border: 0 !important; background: #fff !important; box-shadow: none !important; }.class-history { display: block !important; }.class-card-chevron { display: none !important; }.filter-panel, .metric-grid { display: none !important; } }
