*{box-sizing:border-box}body{margin:0;background:#f6f8fa;color:#18324a;font-family:system-ui,sans-serif;font-size:15px;line-height:1.55}button,input,select{font:inherit}button,.button{cursor:pointer;border:1px solid #cedce3;border-radius:9px;padding:10px 17px;background:#fff;color:#284760;text-decoration:none;font-weight:600;display:inline-block}button:hover,.button:hover{background:#eef5f6}button:disabled{opacity:.5;cursor:wait}.primary{background:#007f94;color:white;border-color:#007f94}.primary:hover{background:#006d7f}.danger{color:#ac3652;border-color:#e9bbc6}input,select{width:100%;border:1px solid #cbdbe1;padding:11px 12px;border-radius:8px;background:#fff;color:#18324a;min-width:0}input:focus,select:focus,button:focus-visible{outline:3px solid #b6dce5;outline-offset:2px}label{display:block;font-size:.9rem;font-weight:600;margin-bottom:15px}label input,label select{display:block;margin-top:6px}.check{display:flex;align-items:center;gap:10px;font-weight:400}.check input{width:auto;margin:0}.topbar{display:flex;justify-content:space-between;align-items:center;background:white;border-bottom:1px solid #dbe5e8;padding:18px 4%;gap:16px}.brand{display:flex;gap:12px;align-items:center;text-decoration:none}.brand img{width:65px;height:47px;object-fit:contain}.brand strong{font-size:18px;letter-spacing:1px}.brand small{display:block;color:#647c88;font-size:12px}.header-actions{display:flex;align-items:center;gap:8px}.header-actions button{padding:7px 10px;font-size:12px}.header-actions .is-selected{background:#e6f2f2;border-color:#007f94}.preview-banner{padding:7px 18px;text-align:center;background:#fff1d4;color:#735e2d;font-size:12px}#notice{position:sticky;top:0;z-index:200;background:#e7f3ef;border-bottom:1px solid #b6d6c7;padding:13px 4%;white-space:pre-wrap}#notice.error{background:#ffedf0;color:#923448}#navigation{display:flex;gap:4px;padding:12px 4%;border-bottom:1px solid #dae5e9;background:white;overflow:auto}#navigation button{border:0;white-space:nowrap;font-size:14px;padding:9px 15px}#navigation .active{background:#e6f3f5;color:#00788c}.content{max-width:1280px;margin:0 auto;padding:28px 32px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:22px}h1{font-size:30px;font-weight:600;margin:3px 0 7px}h2{font-size:18px;margin:0 0 20px}p{margin:8px 0 18px;color:#607385}.eyebrow{font-size:11px;letter-spacing:1.8px;color:#008398;font-weight:700}.panel{padding:24px;border:1px solid #dde7eb;background:white;border-radius:15px;margin-bottom:22px;box-shadow:0 2px 7px #17344704}.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:22px}.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:0 15px}.times{grid-template-columns:repeat(3,minmax(0,1fr))}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:16px 0}.soft{background:#eef6f7;border-radius:9px;padding:14px;margin:17px 0;color:#476a75}.manual{display:flex;align-items:end;gap:10px;margin:20px 0}.manual label{flex:1;margin:0}.manual button{margin-bottom:0}#reader{min-height:170px;background:#f4f7f9;border:1px dashed #b9d0da;border-radius:12px;overflow:hidden}#reader:empty:before{content:'Camera preview';display:block;text-align:center;padding-top:70px;color:#8198a3}#scan-result.saved{background:#e2f3e7;color:#236b3b}#scan-result.error{background:#ffedf0;color:#923448}#scan-result.duplicate{background:#fff1d4;color:#7e6121}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px}th{text-align:left;color:#537481;font-weight:600;background:#f2f7f8;padding:11px 12px;white-space:nowrap}td{padding:11px 12px;border-bottom:1px solid #edf1f3;vertical-align:top;min-width:80px}tbody tr:hover{background:#fafcfd}.pagination{display:flex;gap:12px;align-items:center;justify-content:flex-end;margin-top:15px;font-size:12px}.list-item{padding:15px 0;border-bottom:1px solid #e5edef}.list-item strong{display:block}.list-item .actions{margin:8px 0}.list-item small{color:#607385}.login-card{max-width:430px;margin:65px auto;padding:35px}.login-card button[type=submit]{width:100%}.demo-login{font-size:12px;line-height:1.8;margin:22px 0 0;padding:15px;background:#f6f8fa;border-radius:9px}footer{text-align:center;color:#879aa3;font-size:12px;padding:20px}dialog{border:1px solid #d6e2e6;border-radius:16px;padding:28px;max-width:450px;box-shadow:0 12px 60px #18324a30}dialog::backdrop{background:#18324a66}#qr-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:18px}.student-qr-card{background:white;border:1px solid #dde7eb;border-radius:12px;overflow:hidden;text-align:center;break-inside:avoid;padding-bottom:22px}.student-qr-header{display:flex;align-items:center;justify-content:center;gap:12px;background:#e8f3f4;padding:14px;font-size:12px}.student-qr-header img{width:45px}.student-qr-image{margin:25px auto;width:180px;height:180px}.student-qr-name{font-size:17px;padding:8px}.student-qr-id{font-family:inherit}.student-qr-class{font-size:12px;color:#6a808e}#qr-export-status{font-size:13px}[hidden]{display:none!important}@media(max-width:700px){.topbar{padding:13px 16px;flex-wrap:wrap}.brand strong{font-size:16px}.brand img{width:48px}.header-actions{margin-left:auto}.content{padding:20px 14px}.split{grid-template-columns:1fr;gap:0}.panel{padding:18px}.page-heading{align-items:flex-start}h1{font-size:26px}.page-heading p{font-size:13px}.login-card{margin:35px 18px}.times{grid-template-columns:1fr}.manual{flex-wrap:wrap}#navigation{padding:8px}.header-actions #current-user{display:none}}@media print{body>*{display:none!important}#workspace,#workspace .content,[data-view=qr],#qr-cards{display:block!important}#workspace>nav,#workspace footer,[data-view=qr]>.page-heading,[data-view=qr]>.panel,.content>section:not([data-view=qr]){display:none!important}#qr-cards{display:grid!important;grid-template-columns:repeat(3,1fr)}.content{padding:0}.student-qr-card{break-inside:avoid}.student-qr-image{margin:15px auto}}

.app-credit{padding:20px 18px 24px;font-size:12px;line-height:1.65}.app-credit>div{max-width:760px;margin:0 auto}.app-credit .app-version{margin-top:5px;font-weight:600}

/* ---- v3.0.0 bottom navigation, More sheet and Overview cards ---- */
:root{--nav-hl:#ddf2f3;--nav-hl-ink:#006b7e;--nav-ink:#234879;--nav-idle:#52647b}
.content{padding-bottom:calc(120px + env(safe-area-inset-bottom))}
.topbar .header-actions{display:flex}
#bottom-nav{position:fixed;left:50%;bottom:calc(16px + env(safe-area-inset-bottom));z-index:40;transform:translateX(-50%);display:flex;align-items:center;gap:10px;width:min(calc(100% - 28px),560px)}
.nav-pill{flex:1;min-width:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;min-height:64px;padding:5px;border:1px solid #dce5efe8;border-radius:999px;background:#fffffff2;box-shadow:0 10px 30px #20395328,0 2px 8px #2039530c}
.nav-pill button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:54px;padding:3px 0;border:0;border-radius:999px;background:transparent;color:var(--nav-idle);font-size:.72rem;line-height:1.2}
.nav-pill button.active{background:var(--nav-hl);color:var(--nav-ink);font-weight:700}
.nav-pill button.active .nav-icon{color:var(--nav-hl-ink)}
.nav-icon{width:23px;height:23px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nav-scan{flex:none;display:grid;place-items:center;width:64px;height:64px;padding:0;border:0;border-radius:50%;background:linear-gradient(135deg,#0091aa,#2d60a5);color:#fff;box-shadow:0 10px 24px #2d60a55c}
.nav-scan .nav-icon{width:28px;height:28px}
.nav-scan.active{outline:3px solid #fff;box-shadow:0 0 0 3px #2d60a5,0 10px 24px #2d60a55c}
.nav-pill button:focus-visible,.nav-scan:focus-visible,.more-grid button:focus-visible,.more-actions button:focus-visible{outline:3px solid #8ab4e3;outline-offset:2px}
.more-sheet{position:fixed;inset:0;z-index:60}
.more-sheet[hidden]{display:none}
.more-backdrop{position:absolute;inset:0;background:#10213a66}
.more-panel{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,560px);max-height:85vh;overflow:auto;padding:10px 16px calc(24px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0;background:#fff;box-shadow:0 -12px 34px #0003}
.more-grab{width:40px;height:4px;margin:0 auto 12px;border-radius:4px;background:#d5dee8}
.more-panel h2{margin:0 0 12px;font-size:1rem;color:var(--nav-ink)}
.more-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.more-grid button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:84px;padding:10px 6px;border:1px solid #dce5ef;border-radius:16px;background:#fff;color:var(--nav-ink);font-size:.8rem;line-height:1.25;text-align:center}
.more-grid button[hidden]{display:none}
.more-grid button.active{background:var(--nav-hl);border-color:#bfe1e4}
.more-grid .nav-icon{color:#0a8a96}
.more-actions{display:grid;gap:8px;margin-top:14px;padding-top:14px;border-top:1px solid #e1e8f0}
.more-actions button{display:flex;align-items:center;justify-content:flex-start;gap:12px;min-height:48px;padding:0 14px;border:1px solid #dce5ef;border-radius:14px;background:#fff;color:var(--nav-ink)}
.more-actions button[hidden]{display:none}
.hero-card{display:flex;align-items:center;gap:16px;padding:18px;margin-bottom:12px;border-radius:24px;background:linear-gradient(145deg,#0a8a96,#2d60a5);color:#fff;box-shadow:0 10px 26px #2d60a533}
.hero-ring{flex:none;width:84px;height:84px}
.ring-track{fill:none;stroke:#ffffff44;stroke-width:4}
.ring-value{fill:none;stroke:#fff;stroke-width:4;stroke-linecap:round;transform:rotate(-90deg);transform-origin:50% 50%;transition:stroke-dasharray .4s ease}
.hero-ring text{fill:#fff;font-size:8.5px;font-weight:700}
.hero-copy{min-width:0;flex:1}
.hero-card h2{margin:0;font-size:.8rem;font-weight:600;opacity:.9;letter-spacing:.02em}
.hero-session{margin:2px 0 0;font-size:1.05rem;font-weight:700;line-height:1.3;overflow-wrap:anywhere}
.hero-sub{margin:2px 0 0;font-size:.85rem;opacity:.92}
.hero-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.hero-actions button{min-height:40px;padding:0 16px;border-radius:999px;border:1px solid transparent;font-weight:700}
.hero-primary{background:#fff;color:#234879}
.hero-secondary{background:transparent;color:#fff;border-color:#ffffff88!important}
.hero-actions button[hidden]{display:none}
.metric-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}
.metric-strip>div{padding:12px 8px;border:1px solid #dce5ef;border-radius:16px;background:#fff;text-align:center}
.metric-strip .metric-value{display:block;font-size:1.5rem;font-weight:800;color:#234879;line-height:1.2;font-variant-numeric:tabular-nums}
.metric-strip .metric-label{display:block;margin-top:2px;font-size:.78rem;color:#64788c}
@media(min-width:900px){.hero-card{padding:24px}.hero-ring{width:104px;height:104px}.hero-session{font-size:1.2rem}}
@media print{#bottom-nav,.more-sheet{display:none!important}}

.hero-card h2,.hero-card p,.hero-card .hero-session,.hero-card .hero-sub{color:#fff}
body .topbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:nowrap}
body .topbar .header-actions{display:flex;flex:0 1 auto;min-width:0;grid-column:auto}
body .topbar #current-user{display:block;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.8rem;color:#52647b}

/* v3.0.1 keep the credits clear of the floating bar */
.content{padding-bottom:24px}
#workspace>.app-credit{padding-bottom:calc(112px + env(safe-area-inset-bottom))}

.nowrap{white-space:nowrap}

/* v3.0.0 sign-in screen: compact, no coloured card edge */
.auth-page{background:linear-gradient(180deg,#eaf4f6 0,#f6f8fa 55%);place-items:start center;padding:max(16px,env(safe-area-inset-top)) 16px 24px}
.auth-shell{width:min(420px,100%)}
.auth-back{display:inline-flex;align-items:center;gap:4px;min-height:44px;padding:0 6px;color:#2d60a5;text-decoration:none;font-weight:600}
.auth-back svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.auth-shell .auth-brand{display:flex;align-items:center;gap:12px;margin:6px 0 18px;padding:0 6px}
.auth-shell .auth-brand .brand-faculty-logo{width:62px;height:44px;flex:0 0 62px}
.auth-shell .auth-brand .brand-copy{display:flex;flex-direction:column;line-height:1.25}
.auth-shell .auth-brand .brand-copy strong{font-size:15px;color:#2d60a5;letter-spacing:.05em}
.auth-shell .auth-brand .brand-copy small{font-size:12px;color:#0a7f8c}
.auth-shell .login-card{padding:24px 22px 22px;border:1px solid #dce5ef;border-top:1px solid #dce5ef;border-radius:24px;background:#fff;box-shadow:0 12px 32px #2039531f}
.auth-card h1{margin:0 0 4px;font-size:24px;color:#234879}
.auth-card>p{margin:0 0 18px;color:#64788c;font-size:14px}
.auth-card form{display:grid;gap:6px}
.auth-card label{font-size:13px;font-weight:600;color:#3f566d;margin-top:6px}
.auth-card input:not([type=checkbox]){min-height:48px;padding:0 14px;border:1px solid #cfdbe6;border-radius:14px;font-size:16px;background:#fbfdfe}
.auth-card input:focus-visible{outline:3px solid #8ab4e3;outline-offset:1px}
.login-password-control{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.login-password-control button{min-height:48px;padding:0 14px;border:1px solid #cfdbe6;border-radius:14px;background:#fff;color:#2d60a5;font-size:13px}
.auth-card .check{display:flex;align-items:center;gap:8px;margin-top:10px;font-weight:500}
.auth-card button[type=submit]{min-height:50px;margin-top:14px;border:0;border-radius:999px;background:linear-gradient(135deg,#0a8a96,#2d60a5);color:#fff;font-size:16px;font-weight:700;box-shadow:0 8px 18px #2d60a547}
.auth-card .demo-login{margin:14px 0 0;padding:10px 12px;border-radius:12px;background:#fff6e0;font-size:12px;color:#6b5a1e}
.auth-shell .app-credit-compact{margin-top:18px;text-align:center}
#login-view .auth-shell .auth-brand{justify-content:flex-start}
#login-view .auth-shell .auth-brand .brand-copy{text-align:left}
#login-view .auth-shell .login-card{border:1px solid #dce5ef;border-top:1px solid #dce5ef;border-radius:24px}

/* v3.0.0 account button and sheet */
body .topbar .header-actions{gap:0}
.account-button{display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid #cfe3e6;border-radius:50%;background:linear-gradient(135deg,#e4f3f4,#e8eff9);color:#234879;font-size:1.05rem;font-weight:800;box-shadow:0 3px 10px #2039531a}
.account-button:focus-visible{outline:3px solid #8ab4e3;outline-offset:2px}
.account-head{display:flex;align-items:center;gap:14px;margin-bottom:14px}
.account-avatar{display:grid;place-items:center;flex:none;width:52px;height:52px;border-radius:50%;background:linear-gradient(135deg,#0a8a96,#2d60a5);color:#fff;font-size:1.3rem;font-weight:800}
.account-id{min-width:0}
.account-id h2{margin:0;font-size:1.05rem;color:#234879;overflow-wrap:anywhere}
.account-id p{margin:2px 0 0;color:#64788c;font-size:.85rem;overflow-wrap:anywhere}
.account-storage{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #dce5ef;border-radius:16px;background:#f8fafc}
.account-storage .nav-icon{color:#0a8a96}
.account-storage div{flex:1;min-width:0}
.account-storage small{display:block;color:#64788c;font-size:.75rem}
.account-storage strong{color:#234879}
.account-storage button{min-height:36px;padding:0 14px;border:1px solid #cfdbe6;border-radius:999px;background:#fff;color:#2d60a5;font-size:.8rem}
.own-password{display:grid;gap:6px;padding:12px;border:1px solid #dce5ef;border-radius:16px;background:#f8fafc}
.own-password[hidden]{display:none}
.own-password label{font-size:.8rem;font-weight:600;color:#3f566d}
.own-password input{min-height:46px;padding:0 12px;border:1px solid #cfdbe6;border-radius:12px;font-size:16px;background:#fff}
.own-password-note{margin:2px 0 4px;font-size:.78rem;color:#64788c}
.own-password .primary{min-height:46px;border:0;border-radius:999px;background:linear-gradient(135deg,#0a8a96,#2d60a5);color:#fff;font-weight:700}

/* v3.0.0 notices sit above the floating bar and can be tapped away */
body #notice{bottom:calc(96px + env(safe-area-inset-bottom));cursor:pointer}

/* v3.0.0 illustrations: account avatar and empty states */
.account-button{overflow:hidden;background:#e8f1fa}
.account-button img{width:34px;height:34px;display:block}
.account-avatar{background:#e8f1fa;overflow:hidden;border:2px solid #fff;box-shadow:0 2px 8px #2039532a}
.account-avatar img{width:48px;height:48px;display:block}
.hero-empty{width:84px;height:84px;padding:6px;border-radius:20px;background:#ffffff2e;object-fit:contain}
.hero-empty[hidden]{display:none}
.empty-state{display:flex;flex-direction:column;align-items:center;gap:4px;padding:22px 16px;text-align:center;border:1px dashed #c9d7e4;border-radius:18px;background:#fff}
.empty-state img{width:88px;height:88px;object-fit:contain}
.empty-state strong{color:#234879}
.empty-state small{color:#64788c;font-size:.8rem}

svg.hero-ring[hidden]{display:none}
.empty-state img{width:72px;height:72px}
.empty-state{padding:18px 14px}

/* v3.0.1 iOS top edge: white header under the status bar, colour bar at its foot */
html{background:#fff}
body #workspace .topbar{padding-top:calc(env(safe-area-inset-top) + 12px)}
body #workspace .topbar::before{inset:auto 0 0;height:4px}
body #workspace .topbar{padding-bottom:18px}
.preview-banner{padding-top:max(8px,env(safe-area-inset-top))}
/* v3.0.1 never let layout squash the avatar: fixed square, no padding, no shrinking */
body .topbar .account-button{width:42px;height:42px;min-width:42px;padding:0;flex:none;display:grid;place-items:center;overflow:hidden}
body .topbar .account-button img,.account-avatar img{max-width:none;flex:none;object-fit:contain;aspect-ratio:1/1}
body .topbar .account-button img{width:34px;height:34px}
.account-avatar{width:52px;height:52px;min-width:52px;flex:none}

/* credits: each name on its own line; the year never wraps alone */
.credit-line{display:block}

/* v3.0.2 destructive actions: deliberate, double-checked */
.danger-button{min-height:46px;padding:0 18px;border:0;border-radius:999px;background:#c33553;color:#fff;font-weight:700}
.danger-button:disabled{background:#e3b6c0;color:#fff;cursor:not-allowed}
.danger-zone{border:1px solid #efc3cc;background:#fff7f8}
.danger-zone h2{color:#a02a44}
.danger-dialog{width:min(420px,calc(100% - 32px));padding:22px;border:0;border-radius:22px;box-shadow:0 20px 50px #0004}
.danger-dialog::backdrop{background:#10213a99}
.danger-dialog h2{margin:0 0 8px;color:#a02a44;font-size:1.1rem}
.danger-dialog p{margin:0 0 14px;color:#3f566d;font-size:.9rem;line-height:1.55}
.danger-dialog label{display:block;margin-bottom:6px;font-weight:600;font-size:.85rem;color:#3f566d}
.danger-dialog input{width:100%;min-height:46px;padding:0 12px;border:1px solid #cfdbe6;border-radius:12px;font-size:16px}
.danger-dialog .actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}

/* v3.0.3 the top bar stays in view; the page scrolls underneath it */
body #workspace .topbar{position:sticky;top:0;z-index:35}

/* v3.0.3 the app's own clock icon replaces the faculty logo in the teacher app */
body #workspace .topbar .brand img.app-logo,#login-view .auth-brand img.app-logo{width:44px;height:44px;flex:0 0 44px;object-fit:cover;clip-path:circle(36%);transform:scale(1.38);background:transparent}
body #workspace .topbar .brand{gap:12px}
#login-view .auth-brand{gap:14px}
