@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    color-scheme: light;
    --red: #a71920;
    --red-dark: #74151a;
    --red-soft: #faeeee;
    --gold: #e9ad24;
    --ink: #202a35;
    --muted: #75808a;
    --line: #e8e8e5;
    --paper: #fff;
    --canvas: #f5f4f1;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; font-family: 'DM Sans', Arial, sans-serif; color: var(--ink); }
a { color: inherit; }

/* Login */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 38px; background: radial-gradient(ellipse at 8% 4%, #f5e8e4 0, transparent 45%), #f5f4f1; }
.login-shell { width: min(1100px, 100%); min-height: 650px; display: grid; grid-template-columns: .93fr 1.07fr; overflow: hidden; border-radius: 22px; background: var(--paper); box-shadow: 0 28px 80px rgba(56,34,27,.15), 0 4px 14px rgba(56,34,27,.05); }
.brand-panel { position: relative; display: flex; flex-direction: column; justify-content: space-between; isolation: isolate; overflow: hidden; padding: 54px 52px 36px; color: white; background: linear-gradient(145deg, #bd272c 0%, var(--red) 53%, var(--red-dark) 100%); }
.brand-panel::before { position: absolute; z-index: -1; right: -190px; bottom: -205px; width: 550px; height: 550px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; content: ''; box-shadow: 0 0 0 38px rgba(255,255,255,.035), 0 0 0 82px rgba(255,255,255,.025); }
.brand-orbit { position: absolute; z-index: -1; border: 1px solid rgba(255,205,101,.3); border-radius: 50%; transform: rotate(-28deg); }
.orbit-one { width: 520px; height: 210px; right: -250px; top: 90px; }
.orbit-two { width: 420px; height: 170px; right: -198px; top: 117px; border-color: rgba(255,255,255,.15); }
.brand-content { position: relative; margin-top: 24px; }
.school-logo { display: block; width: 132px; height: 132px; object-fit: contain; padding: 7px; border-radius: 50%; background: white; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.eyebrow { margin: 0; font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.brand-content .eyebrow { margin-top: 39px; color: #ffda87; }
.brand-content h1 { margin: 13px 0 15px; font: 800 clamp(42px, 5vw, 60px)/1.08 'Manrope', sans-serif; letter-spacing: -.055em; }
.brand-copy { margin: 0; color: rgba(255,255,255,.76); font-size: 15px; }
.brand-footer { display: flex; align-items: center; gap: 11px; color: rgba(255,255,255,.72); font-size: 12px; }
.footer-mark { display: inline-block; width: 22px; height: 2px; background: #ffd36d; }
.form-panel { display: grid; place-items: center; padding: 62px 64px 40px; }
.form-inner { width: min(100%, 390px); }
.mobile-logo-wrap { display: none; }
.form-eyebrow { color: #ae7510; }
.form-inner h2 { margin: 17px 0 7px; font: 800 31px/1.2 'Manrope', sans-serif; letter-spacing: -.04em; color: #401e20; }
.form-intro { margin: 0 0 34px; color: var(--muted); font-size: 14px; }
.alert { margin: -14px 0 22px; padding: 12px 14px; border: 1px solid #f0d5cf; border-radius: 9px; color: #993d32; background: #fff6f3; font-size: 13px; line-height: 1.5; }
.login-form label { display: block; margin-bottom: 9px; color: #39434d; font-size: 13px; font-weight: 700; }
.input-wrap { position: relative; display: flex; align-items: center; margin-bottom: 22px; }
.input-wrap input { width: 100%; height: 51px; padding: 0 16px 0 45px; outline: none; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fbfbfa; font: inherit; font-size: 14px; transition: border-color .2s, box-shadow .2s, background .2s; }
.input-wrap input::placeholder { color: #aab0b4; }
.input-wrap input:focus { border-color: #ba6568; background: white; box-shadow: 0 0 0 3px rgba(167,25,32,.1); }
.input-icon { position: absolute; left: 16px; top: 50%; z-index: 1; transform: translateY(-53%); color: #8d969d; font-size: 19px; line-height: 1; }
.lock-icon { font-size: 21px; }
.password-label-row { display: flex; justify-content: space-between; align-items: center; }
.password-label-row label { margin-bottom: 9px; }
.submit-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; margin-top: 9px; padding: 0 18px 0 20px; border: 0; border-radius: 9px; color: #371b1d; background: #efbd4c; box-shadow: 0 5px 12px rgba(205,153,43,.19); cursor: pointer; font: 700 14px 'DM Sans', sans-serif; text-decoration: none; transition: background .2s, transform .2s, box-shadow .2s; }
.submit-button span { font-size: 20px; font-weight: 400; transition: transform .2s; }
.submit-button:hover { background: #f4ca68; box-shadow: 0 8px 20px rgba(205,153,43,.24); transform: translateY(-1px); }
.submit-button:hover span { transform: translateX(3px); }
.submit-button:focus-visible, .module-card:focus-visible, .logout-button:focus-visible, .back-button:focus-visible { outline: 3px solid rgba(167,25,32,.35); outline-offset: 3px; }
.help-text { margin: 23px 0 48px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.form-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 17px; border-top: 1px solid #edf0f2; color: #929da6; font-size: 11px; }
.secure-note { display: inline-flex; align-items: center; gap: 6px; }
.secure-dot, .online-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #53a57e; }

/* Dashboard */
.dashboard-page { min-height: 100vh; padding: 0 30px; background: var(--canvas); }
.dashboard-shell { width: min(1120px, 100%); margin: 0 auto; }
.dashboard-header { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e5e2dc; }
.school-brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.school-brand img { width: 56px; height: 56px; object-fit: contain; border-radius: 50%; }
.school-brand span { display: grid; gap: 4px; }
.school-brand strong { color: #29282a; font: 800 13px 'Manrope', sans-serif; letter-spacing: .075em; }
.school-brand small { color: #86817c; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.account-area { display: flex; align-items: center; gap: 15px; }
.account-copy { display: grid; justify-items: end; gap: 3px; }
.account-copy .signed-in { color: #99928b; font-size: 8px; font-weight: 700; letter-spacing: .15em; }
.account-copy strong { color: #302d2c; font-size: 13px; }
.account-copy small { color: #8c8680; font-size: 10px; }
.role-badge { padding: 6px 9px; border-radius: 20px; font-size: 10px; font-weight: 700; }
.role-admin { color: #876000; background: #fff1ca; }
.role-standard { color: #8e252a; background: #f7e4e3; }
.logout-button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid #e1deda; border-radius: 8px; color: #5d5550; background: rgba(255,255,255,.65); cursor: pointer; font: 600 11px 'DM Sans', sans-serif; }
.logout-button:hover { border-color: #d3a1a1; color: var(--red); background: white; }
.welcome-intro { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 52px 0 34px; }
.welcome-intro .eyebrow { display: flex; align-items: center; gap: 10px; color: #a27a36; }
.eyebrow-dash { width: 23px; height: 1px; background: #d3ae68; }
.welcome-intro h1 { margin: 12px 0 8px; color: #312728; font: 800 clamp(34px, 5vw, 48px)/1.05 'Manrope', sans-serif; letter-spacing: -.05em; }
.welcome-intro h1 span { color: var(--red); }
.welcome-subtitle { margin: 0; color: #827c77; font-size: 14px; }
.welcome-status { display: flex; align-items: stretch; gap: 10px; }
.login-info-card { display: flex; align-items: center; gap: 10px; min-width: 208px; padding: 10px 13px; border: 1px solid #e8e4de; border-radius: 12px; background: rgba(255,255,255,.82); }
.login-avatar { display: grid; flex: 0 0 36px; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--red); background: #faeeee; font-size: 19px; }
.login-info-copy { display: grid; gap: 3px; min-width: 0; }
.login-info-copy small { color: #92857d; font-size: 8px; font-weight: 700; letter-spacing: .09em; }
.login-info-copy strong { overflow-wrap: anywhere; color: #403536; font-size: 12px; }
.session-card { display: flex; align-items: center; gap: 12px; min-width: 186px; padding: 12px 16px; border: 1px solid #ead8d6; border-radius: 12px; background: #fffaf9; }
.session-admin { border-color: #eddfbd; background: #fffaf0; }
.session-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--red); background: #f8e8e6; font-size: 22px; }
.session-admin .session-icon { color: #9c741d; background: #fbefcf; }
.session-card > span:last-child { display: grid; gap: 4px; }
.session-card small { color: #92857d; font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.session-card strong { color: #4b3030; font: 700 18px 'Manrope', sans-serif; font-variant-numeric: tabular-nums; }
.module-section { padding: 22px 0 38px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 17px; }
.section-heading .eyebrow { color: #a27a36; }
.section-heading h2 { margin: 6px 0 0; color: #322d2b; font: 800 23px 'Manrope', sans-serif; letter-spacing: -.035em; }
.module-count { color: #a71920; font: 800 17px 'Manrope', sans-serif; }
.module-count i { margin-left: 4px; color: #a09a94; font: 700 8px 'DM Sans', sans-serif; letter-spacing: .12em; font-style: normal; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.module-card { position: relative; min-height: 126px; display: flex; align-items: flex-start; gap: 14px; padding: 19px 18px; overflow: hidden; border: 1px solid #e8e4de; border-radius: 13px; color: inherit; background: rgba(255,255,255,.88); text-decoration: none; transition: transform .18s, border-color .18s, box-shadow .18s; }
.module-card::after { position: absolute; right: -32px; bottom: -62px; width: 112px; height: 112px; border: 1px solid rgba(167,25,32,.06); border-radius: 50%; content: ''; }
.module-card:hover { z-index: 1; transform: translateY(-3px); border-color: #d9b4ae; box-shadow: 0 10px 24px rgba(68,39,30,.08); }
.module-icon { display: grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #a71920; background: #faeeee; font-size: 21px; }
.module-card:nth-child(2) .module-icon, .module-card:nth-child(5) .module-icon { color: #9b7118; background: #fff5d9; }
.module-card:nth-child(3) .module-icon, .module-card:nth-child(6) .module-icon { color: #446c68; background: #eaf3ef; }
.module-text { display: grid; gap: 7px; padding-top: 2px; }
.module-text strong { max-width: 230px; color: #393331; font: 800 12px/1.35 'Manrope', sans-serif; letter-spacing: .015em; }
.module-text small { color: #8b8580; font-size: 10px; line-height: 1.5; }
.module-arrow { position: absolute; top: 18px; right: 17px; color: #a9a29c; font-size: 15px; transition: transform .18s, color .18s; }
.module-card:hover .module-arrow { transform: translate(2px,-2px); color: var(--red); }
.school-note { position: relative; display: flex; align-items: center; gap: 20px; min-height: 132px; margin: 3px 0 25px; padding: 20px 27px; overflow: hidden; border-radius: 15px; color: white; background: linear-gradient(100deg, #8f171c, #aa2026 66%, #89181d); }
.school-note::after { position: absolute; top: -80px; right: 65px; width: 260px; height: 260px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; content: ''; box-shadow: 0 0 0 28px rgba(255,255,255,.025), 0 0 0 57px rgba(255,255,255,.02); }
.note-emblem { position: relative; z-index: 1; display: grid; flex: 0 0 65px; place-items: center; width: 65px; height: 65px; border: 1px solid rgba(255,255,255,.43); border-radius: 50%; color: #fff2cf; font: 800 31px 'Manrope', sans-serif; }
.note-emblem i { position: absolute; margin: 12px 0 0 22px; color: #f2bd40; font-size: 23px; font-style: normal; }
.school-note > div:nth-child(2) { position: relative; z-index: 1; }
.school-note .eyebrow { color: #ffd97d; font-size: 9px; }
.school-note h2 { margin: 7px 0 4px; font: 800 19px 'Manrope', sans-serif; letter-spacing: -.025em; }
.school-note p:last-child { margin: 0; color: rgba(255,255,255,.72); font-size: 11px; }
.note-spark { position: absolute; z-index: 1; top: 23px; right: 28px; color: rgba(255,218,125,.82); font-size: 28px; }
.dashboard-footer { display: flex; justify-content: space-between; gap: 12px; padding: 15px 0 22px; border-top: 1px solid #e5e2dc; color: #96908a; font-size: 10px; }
.dashboard-footer span:last-child { display: inline-flex; align-items: center; gap: 7px; }

/* Tracking records */
.tracking-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 34px 0 24px; }
.tracking-back { display: inline-block; margin-bottom: 19px; color: #857d77; font-size: 11px; font-weight: 700; text-decoration: none; }
.tracking-back:hover { color: var(--red); }
.tracking-heading .eyebrow { display: flex; align-items: center; gap: 10px; color: #a27a36; }
.tracking-heading h1 { margin: 11px 0 7px; color: #312728; font: 800 clamp(32px, 4vw, 43px)/1.05 'Manrope', sans-serif; letter-spacing: -.05em; }
.tracking-heading h1 span { color: var(--red); }
.tracking-session { display: flex; align-items: stretch; gap: 9px; }
.tracking-user { min-width: 165px; display: grid; align-content: center; gap: 4px; padding: 10px 14px; border: 1px solid #e8e4de; border-radius: 12px; background: rgba(255,255,255,.82); }
.tracking-user small { color: #92857d; font-size: 8px; font-weight: 700; letter-spacing: .09em; }
.tracking-user strong { overflow-wrap: anywhere; color: #403536; font-size: 12px; }
.tracking-session .session-card { min-width: 170px; padding: 10px 12px; }
.filter-panel, .records-panel { border: 1px solid #e8e4de; border-radius: 15px; background: rgba(255,255,255,.92); box-shadow: 0 8px 22px rgba(68,39,30,.035); }
.filter-panel { padding: 21px 22px 18px; }
.filter-title-row { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 17px; }
.filter-title-row .eyebrow, .records-heading .eyebrow { color: #a27a36; }
.filter-title-row h2, .records-heading h2 { margin: 5px 0 0; color: #322d2b; font: 800 20px 'Manrope', sans-serif; letter-spacing: -.035em; }
.filter-hint { color: #8f7772; font-size: 10px; }
.tracking-filters { display: grid; grid-template-columns: minmax(195px, 1.8fr) minmax(160px, 1.35fr) minmax(95px, .7fr) minmax(140px, 1fr) minmax(140px, 1fr) auto; align-items: end; gap: 11px; }
.filter-field { display: grid; min-width: 0; gap: 7px; }
.filter-field > span { color: #56504c; font-size: 10px; font-weight: 700; }
.filter-field input, .filter-field select { width: 100%; height: 41px; min-width: 0; padding: 0 10px; border: 1px solid #e3dfda; border-radius: 8px; outline: none; color: #393331; background: #fdfcfb; font: 500 11px 'DM Sans', sans-serif; }
.filter-field input:focus, .filter-field select:focus { border-color: #be7779; box-shadow: 0 0 0 3px rgba(167,25,32,.08); }
.filter-field input::placeholder { color: #aaa39c; }
.filter-actions { display: flex; align-items: center; gap: 9px; }
.filter-submit { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 41px; padding: 0 14px; border: 0; border-radius: 8px; color: white; background: var(--red); cursor: pointer; font: 700 11px 'DM Sans', sans-serif; white-space: nowrap; }
.filter-submit:hover { background: var(--red-dark); }
.filter-submit span { font-size: 17px; }
.filter-reset { color: #817872; font-size: 10px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.filter-reset:hover { color: var(--red); }
.filter-explainer { margin: 14px 0 0; color: #918a84; font-size: 10px; line-height: 1.6; }
.records-panel { margin-top: 17px; padding: 19px 20px 20px; }
.records-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; padding-bottom: 14px; }
.records-heading h2 span { display: inline-grid; min-width: 25px; height: 25px; place-items: center; margin-left: 5px; padding: 0 6px; border-radius: 12px; color: var(--red); background: #faeeee; font: 700 11px 'DM Sans', sans-serif; vertical-align: 2px; }
.export-button { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 13px; border: 1px solid #e4d9c4; border-radius: 8px; color: #765719; background: #fff9eb; font-size: 10px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.export-button:hover { border-color: #d7b86f; background: #fff3d6; }
.export-button span { font-size: 16px; }
.table-meta { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 9px; color: #918a84; font-size: 9px; }
.table-scroll { max-width: 100%; max-height: 62vh; overflow: auto; border: 1px solid #e9e5df; border-radius: 9px; }
.tracking-table { width: 100%; min-width: 1430px; border-collapse: separate; border-spacing: 0; color: #4b4540; font-size: 10px; }
.tracking-table th { position: sticky; top: 0; z-index: 1; padding: 11px 10px; border-bottom: 1px solid #e5ddd5; color: #6f453f; background: #fbf4f0; font-size: 9px; font-weight: 800; text-align: left; white-space: nowrap; }
.tracking-table td { padding: 10px; border-bottom: 1px solid #f0ede9; background: #fff; white-space: nowrap; }
.tracking-table tbody tr:nth-child(even) td { background: #fdfbf9; }
.tracking-table tbody tr:hover td { background: #fff8e9; }
.tracking-table tbody tr:last-child td { border-bottom: 0; }
.tracking-table .status-cell { color: #766144; font-variant-numeric: tabular-nums; }
.empty-value { color: #b9b2ab; }
.tracking-alert { padding: 15px; border: 1px solid #f0d5cf; border-radius: 9px; color: #993d32; background: #fff6f3; font-size: 12px; }
.empty-records { display: grid; justify-items: center; gap: 7px; padding: 50px 16px; border: 1px dashed #e5ddd5; border-radius: 10px; background: #fdfbf9; text-align: center; }
.empty-records > span { display: grid; width: 40px; height: 40px; place-items: center; margin-bottom: 5px; border-radius: 50%; color: #a71920; background: #faeeee; font-size: 21px; }
.empty-records strong { color: #504843; font-size: 12px; }
.empty-records small { color: #928a84; font-size: 10px; }

/* Protected module placeholders */
.back-button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid #e1deda; border-radius: 8px; color: #665b55; background: white; font-size: 12px; font-weight: 700; text-decoration: none; }
.module-placeholder { min-height: min(650px, calc(100vh - 150px)); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 44px 18px; text-align: center; }
.placeholder-icon { display: grid; place-items: center; width: 74px; height: 74px; margin-bottom: 22px; border-radius: 22px; color: var(--red); background: #faeaea; font-size: 34px; }
.module-placeholder .eyebrow { color: #a27a36; }
.module-placeholder h1 { margin: 12px 0 8px; color: #322728; font: 800 clamp(28px, 5vw, 42px)/1.15 'Manrope', sans-serif; letter-spacing: -.04em; }
.module-placeholder > p:not(.eyebrow) { margin: 0; color: #827c77; font-size: 14px; }
.coming-soon { margin: 22px 0 6px; padding: 7px 12px; border-radius: 20px; color: #8d681c; background: #fff1ca; font-size: 11px; font-weight: 700; }
.placeholder-back { width: min(270px, 100%); margin-top: 16px; }

/* Student and staff information settings */
.student-account { display: flex; align-items: center; gap: 12px; }
.student-account form { margin: 0; }
.student-page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 28px 0 23px; }
.student-page-heading .tracking-back { margin-bottom: 14px; }
.student-page-heading .eyebrow { display: flex; align-items: center; gap: 10px; color: #a27a36; }
.student-page-heading h1 { margin: 10px 0 0; color: #312728; font: 800 clamp(28px, 4vw, 40px)/1.12 'Manrope', sans-serif; letter-spacing: -.045em; }
.student-page-status { display: flex; align-items: stretch; gap: 9px; }
.student-account-copy { min-width: 155px; display: grid; align-content: center; gap: 3px; padding: 9px 12px; border: 1px solid #e8e4de; border-radius: 12px; background: rgba(255,255,255,.82); }
.student-account-copy small { color: #92857d; font-size: 8px; font-weight: 700; letter-spacing: .09em; }
.student-account-copy strong { max-width: 170px; overflow-wrap: anywhere; color: #403536; font-size: 12px; }
.student-page-status .session-card { min-width: 160px; padding: 9px 12px; }
.unauthorized-card { display: flex; align-items: flex-start; gap: 17px; max-width: 720px; margin: 24px auto 80px; padding: 27px; border: 1px solid #edc6c3; border-radius: 15px; background: #fff7f5; box-shadow: 0 10px 26px rgba(68,39,30,.05); }
.unauthorized-icon { display: grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: white; background: var(--red); font: 800 22px 'Manrope', sans-serif; }
.unauthorized-card .eyebrow { color: #a27a36; }
.unauthorized-card h2 { margin: 6px 0 8px; color: #622326; font: 800 22px 'Manrope', sans-serif; }
.unauthorized-card p:not(.eyebrow) { margin: 0 0 18px; color: #776965; font-size: 13px; line-height: 1.6; }
.student-notice { margin: 0 0 16px; padding: 12px 15px; border: 1px solid #d8e8d9; border-radius: 9px; color: #336a3c; background: #f3faf3; font-size: 12px; line-height: 1.55; }
.notice-error { border-color: #f0d5cf; color: #993d32; background: #fff6f3; }
.notice-warning { border-color: #eddfbd; color: #80621f; background: #fff9e9; }
.notice-info { border-color: #d9e5ee; color: #446478; background: #f4f9fc; }
.student-menu-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; padding: 4px 0 28px; }
.settings-menu-grid { max-width: 760px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.student-action-card { position: relative; display: flex; min-height: 150px; flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; overflow: hidden; border: 1px solid #e8e4de; border-radius: 13px; color: inherit; background: rgba(255,255,255,.9); text-decoration: none; transition: transform .18s, border-color .18s, box-shadow .18s; }
.student-action-card::after { position: absolute; right: -32px; bottom: -58px; width: 105px; height: 105px; border: 1px solid rgba(167,25,32,.06); border-radius: 50%; content: ''; }
.student-action-card:hover { z-index: 1; transform: translateY(-3px); border-color: #d9b4ae; box-shadow: 0 10px 24px rgba(68,39,30,.08); }
.student-action-icon { display: grid; flex: 0 0 40px; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--red); background: #faeeee; font: 600 22px 'DM Sans', sans-serif; }
.student-action-copy { display: grid; gap: 7px; }
.student-action-copy strong { max-width: 245px; color: #393331; font: 800 11px/1.4 'Manrope', sans-serif; letter-spacing: .015em; }
.student-action-copy small { color: #8b8580; font-size: 10px; line-height: 1.5; }
.student-action-card .module-arrow { top: 19px; right: 17px; }
.student-action-red .student-action-icon { color: #fff; background: var(--red); }
.student-action-soft .student-action-icon { color: #9a6b20; background: #fff4dc; }
.student-action-muted { background: #fbfaf8; }
.student-action-muted .student-action-icon { color: #8b8178; background: #f0eeea; }
.student-action-muted .student-action-copy strong { color: #5e5751; }
.student-note { margin-top: 2px; }
.student-work-panel { margin: 2px 0 26px; padding: 24px; border: 1px solid #e8e4de; border-radius: 15px; background: rgba(255,255,255,.94); box-shadow: 0 8px 22px rgba(68,39,30,.035); }
.student-work-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 21px; }
.student-work-heading .student-action-icon { flex-basis: 44px; width: 44px; height: 44px; }
.student-work-heading .eyebrow, .student-list-heading .eyebrow { color: #a27a36; }
.student-work-heading h2, .student-list-heading h2 { margin: 5px 0 6px; color: #322d2b; font: 800 20px 'Manrope', sans-serif; letter-spacing: -.03em; }
.student-work-heading p:not(.eyebrow) { max-width: 750px; margin: 0; color: #827c77; font-size: 11px; line-height: 1.65; }
.csv-guide { display: grid; gap: 8px; margin-bottom: 19px; padding: 15px; border: 1px solid #eee4d3; border-radius: 10px; background: #fffbf2; }
.csv-guide strong { color: #57472e; font-size: 11px; }
.csv-guide code { overflow-wrap: anywhere; color: #7d3635; font: 600 11px/1.6 Consolas, monospace; }
.csv-guide small { color: #8a8075; font-size: 10px; line-height: 1.6; }
.student-form { display: grid; gap: 16px; }
.student-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.student-fields .filter-field small { color: #8b8580; font-size: 9px; line-height: 1.4; }
.student-form input[type="file"] { height: auto; min-height: 43px; padding: 8px; background: #fff; }
.student-form-actions { display: flex; align-items: center; gap: 15px; margin-top: 3px; }
.student-form-actions .filter-submit { min-width: 190px; min-height: 43px; }
.student-form-actions .filter-reset { padding: 8px 0; }
.student-list-panel { margin-top: 18px; }
.student-list-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.student-search-form { display: flex; align-items: end; gap: 11px; max-width: 700px; margin-bottom: 16px; }
.student-search-form .filter-field { flex: 1; }
.student-search-form .filter-submit { min-width: 82px; height: 41px; }
.student-search-form .filter-reset { padding-bottom: 12px; }
.student-table { min-width: 1120px; }
.student-table td { vertical-align: middle; }
.student-row-action form { margin: 0; }
.row-edit-button, .row-delete-button { display: inline-grid; min-height: 30px; place-items: center; padding: 0 10px; border: 1px solid #e4d9c4; border-radius: 7px; color: #765719; background: #fff9eb; cursor: pointer; font: 700 10px 'DM Sans', sans-serif; text-decoration: none; }
.row-delete-button { border-color: #edcfcb; color: #9a3437; background: #fff5f3; }
.row-edit-button:hover { background: #fff1ce; }
.row-delete-button:hover { background: #fde8e5; }
.personnel-placeholder { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.personnel-placeholder h2 { margin: 4px 0 8px; color: #322728; font: 800 23px 'Manrope', sans-serif; }
.personnel-placeholder > p:not(.eyebrow) { color: #827c77; font-size: 13px; }
.personnel-placeholder .eyebrow { margin-top: 14px; color: #a27a36; }
.user-create-form { max-width: 520px; }
.user-role-note { display: flex; align-items: center; justify-content: space-between; max-width: 520px; padding: 12px 13px; border: 1px solid #e8e4de; border-radius: 9px; color: #62574c; background: #fbfaf8; font-size: 11px; }
.user-role-note span { padding: 5px 9px; border-radius: 15px; color: #8e252a; background: #f7e4e3; font-size: 10px; font-weight: 700; }
.logs-table { min-width: 830px; }
.logs-table td:last-child { min-width: 300px; white-space: normal; line-height: 1.5; }
.log-pagination { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 17px 0 2px; color: #817872; font-size: 11px; }
.log-pagination a { color: #8f2428; font-weight: 700; text-decoration: none; }
.log-pagination a:hover { text-decoration: underline; }

@media (max-width: 820px) {
    .login-page { padding: 24px; }
    .login-shell { min-height: 600px; grid-template-columns: .82fr 1.18fr; }
    .brand-panel { padding: 42px 34px 30px; }
    .school-logo { width: 108px; height: 108px; }
    .form-panel { padding: 45px 38px 30px; }
    .dashboard-page { padding: 0 22px; }
    .module-card { min-height: 135px; padding: 17px 14px; gap: 11px; }
    .module-text strong { padding-right: 6px; }
    .tracking-heading { align-items: flex-start; flex-direction: column; gap: 16px; padding-top: 28px; }
    .tracking-session { width: 100%; }
    .tracking-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .student-field { grid-column: span 2; }
    .filter-actions { grid-column: 1 / -1; }
    .student-menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .settings-menu-grid { max-width: none; }
    .student-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .student-page-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
    .student-page-status { width: 100%; }
    .student-account-copy, .student-page-status .session-card { flex: 1; }
}
@media (max-width: 620px) {
    .login-page { display: block; padding: 0; background: white; }
    .login-shell { min-height: 100vh; display: block; border-radius: 0; box-shadow: none; }
    .brand-panel { display: none; }
    .form-panel { display: block; min-height: 100vh; padding: 32px 25px 22px; }
    .form-inner { width: min(100%, 420px); min-height: calc(100vh - 54px); margin: 0 auto; display: flex; flex-direction: column; justify-content: center; }
    .mobile-logo-wrap { display: block; margin-bottom: 26px; }
    .mobile-logo { width: 76px; height: 76px; object-fit: contain; padding: 4px; border: 1px solid #e8e4de; border-radius: 50%; background: white; }
    .form-inner h2 { font-size: 28px; }
    .form-intro { margin-bottom: 27px; }
    .help-text { margin-bottom: 34px; }
    .form-bottom { font-size: 10px; }
    .dashboard-page { padding: 0 17px; }
    .dashboard-header { min-height: 78px; }
    .school-brand { gap: 8px; }
    .school-brand img { width: 45px; height: 45px; }
    .school-brand strong { font-size: 11px; }
    .school-brand small { font-size: 8px; }
    .account-area { gap: 8px; }
    .account-copy { display: none; }
    .role-badge { padding: 6px 8px; font-size: 9px; }
    .logout-button { gap: 5px; padding: 8px 9px; font-size: 10px; }
    .welcome-intro { align-items: flex-start; flex-direction: column; gap: 18px; padding: 35px 0 24px; }
    .welcome-intro h1 { font-size: 37px; }
    .welcome-subtitle { font-size: 12px; }
    .welcome-status { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
    .login-info-card { min-width: 0; gap: 8px; padding: 9px; }
    .login-avatar { flex-basis: 30px; width: 30px; height: 30px; font-size: 16px; }
    .login-info-copy small { font-size: 7px; letter-spacing: .04em; }
    .login-info-copy strong { font-size: 10px; }
    .session-card { min-width: 165px; padding: 9px 12px; }
    .session-icon { width: 34px; height: 34px; }
    .session-card strong { font-size: 16px; }
    .module-section { padding: 17px 0 27px; }
    .section-heading h2 { font-size: 21px; }
    .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .module-card { min-height: 143px; flex-direction: column; gap: 10px; padding: 13px 12px; }
    .module-icon { flex-basis: 36px; width: 36px; height: 36px; border-radius: 10px; font-size: 19px; }
    .module-text { gap: 4px; }
    .module-text strong { font-size: 10px; }
    .module-text small { font-size: 9px; }
    .module-arrow { top: 12px; right: 12px; }
    .school-note { min-height: 118px; gap: 14px; padding: 17px; }
    .note-emblem { flex-basis: 52px; width: 52px; height: 52px; font-size: 26px; }
    .note-emblem i { margin: 10px 0 0 17px; font-size: 19px; }
    .school-note h2 { font-size: 15px; }
    .school-note p:last-child { max-width: 230px; font-size: 10px; line-height: 1.5; }
    .note-spark { top: 13px; right: 15px; font-size: 20px; }
    .dashboard-footer { font-size: 9px; }
    .module-placeholder { min-height: calc(100vh - 135px); }
    .filter-panel { padding: 16px 14px; }
    .filter-title-row { align-items: flex-start; flex-direction: column; gap: 6px; }
    .tracking-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .student-field, .filter-actions { grid-column: 1 / -1; }
    .filter-field input, .filter-field select { height: 42px; font-size: 10px; }
    .filter-actions { justify-content: flex-start; }
    .filter-submit { flex: 1; }
    .records-panel { padding: 16px 12px; }
    .records-heading { align-items: flex-start; }
    .records-heading h2 { font-size: 18px; }
    .export-button { min-height: 35px; padding: 0 9px; font-size: 9px; }
    .table-meta { font-size: 8px; }
    .tracking-session .session-card { min-width: 0; flex: 1; }
    .tracking-user { min-width: 0; flex: 1; }
    .student-account { gap: 7px; }
    .student-page-heading { padding: 23px 0 17px; }
    .student-page-heading h1 { font-size: 27px; }
    .student-page-status { gap: 7px; }
    .student-account-copy { min-width: 0; padding: 8px; }
    .student-account-copy small { font-size: 7px; }
    .student-account-copy strong { font-size: 10px; }
    .student-page-status .session-card { min-width: 0; padding: 7px; }
    .student-page-status .session-card .session-icon { flex-basis: 30px; width: 30px; height: 30px; font-size: 18px; }
    .student-page-status .session-card small { font-size: 7px; }
    .student-page-status .session-card strong { font-size: 13px; }
    .student-menu-grid { gap: 9px; padding-bottom: 20px; }
    .student-action-card { min-height: 146px; gap: 10px; padding: 13px; }
    .student-action-icon { flex-basis: 35px; width: 35px; height: 35px; border-radius: 10px; font-size: 19px; }
    .student-action-copy strong { font-size: 9px; }
    .student-action-copy small { font-size: 9px; }
    .student-work-panel { padding: 17px 14px; }
    .student-work-heading h2, .student-list-heading h2 { font-size: 17px; }
    .student-fields { grid-template-columns: 1fr; }
    .student-form-actions { align-items: stretch; flex-direction: column; gap: 6px; }
    .student-form-actions .filter-submit { width: 100%; }
    .student-search-form { flex-wrap: wrap; }
    .student-search-form .filter-field { flex-basis: 100%; }
    .student-search-form .filter-submit { flex: 1; }
    .student-list-heading { align-items: flex-start; flex-direction: column; }
    .student-row-action .row-edit-button, .student-row-action .row-delete-button { min-height: 34px; }
    .unauthorized-card { gap: 12px; margin: 16px auto 50px; padding: 18px; }
}
@media (max-width: 360px) {
    .form-panel { padding-right: 20px; padding-left: 20px; }
    .form-bottom { flex-direction: column; }
    .module-grid { grid-template-columns: 1fr; }
    .module-card { min-height: 100px; flex-direction: row; align-items: center; padding: 14px; }
    .module-text strong { font-size: 11px; }
    .welcome-status { grid-template-columns: 1fr; }
    .student-menu-grid { grid-template-columns: 1fr; }
    .student-action-card { min-height: 105px; flex-direction: row; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
