:root {
    --ink: #202c42;
    --muted: #758198;
    --paper: #f4f6fb;
    --line: #e1e7f1;
    --green: #456bb1;
    --green-dark: #314f8a;
    --orange: #cc7145;
}
body { background: var(--paper); color: var(--ink); font-family: "Source Sans Pro", "Segoe UI", sans-serif; }
a { color: inherit; }
.bg-highlight { background-color: var(--green) !important; }
.color-highlight { color: var(--green) !important; }
.app-header { height: 72px; padding: 0 max(22px, calc((100vw - 1120px) / 2)); display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-size: 18px; font-weight: 900; line-height: 1; }
.brand:hover { color: var(--ink); }
.brand-logo { width: 40px; height: 40px; display: block; flex: 0 0 40px; border-radius: 12px; object-fit: cover; }
.brand-accent { color: var(--green); }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.header-account { display: flex; align-items: center; gap: 18px; }
.header-account form { margin: 0; }
.pwa-install-button { min-height: 38px; padding: 8px 12px; border: 1px solid var(--green); border-radius: 6px; background: #fff; color: var(--green-dark); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.pwa-install-button:hover, .pwa-install-button:focus-visible { background: #edf2fb; }
.pwa-install-button[hidden] { display: none; }
.pwa-install-button i { margin-right: 5px; }
.pwa-login-install { width: 100%; min-height: 48px; margin-top: 10px; border-color: #dbe4ef; background: #fff; color: #30465e; }
.pwa-login-install:hover, .pwa-login-install:focus-visible { background: #f3f6fa; }
.account-name { font-size: 13px; font-weight: 700; }
.account-name small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; text-align: right; }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: white; }
.app-content { width: min(1120px, calc(100% - 40px)); min-height: calc(100vh - 120px); margin: 0 auto; padding: 42px 0 72px; }
.app-footer { padding: 18px; color: var(--muted); text-align: center; font-size: 12px; }
.app-footer span { margin: 0 7px; color: var(--green); }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 3px 0 30px; }
.heading-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.page-heading h1 { margin: 8px 0 4px; color: var(--ink); font-size: 32px; font-weight: 700; }
.page-heading p { margin: 0; color: var(--muted); font-size: 15px; }
.eyebrow { display: block; color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: 1.3px; }
.content-section, .stat-panel { margin: 0 0 20px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.section-heading h2 { margin: 5px 0 0; font-size: 20px; font-weight: 700; }
.section-symbol { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #edf2fb; color: var(--green); font-size: 17px; }
.stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-panel { position: relative; min-height: 145px; margin: 0; padding: 23px; overflow: hidden; }
.stat-label { display: block; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.stat-panel strong { display: inline-block; margin-top: 10px; font-size: 34px; line-height: 1; }
.stat-panel small { margin-left: 8px; color: var(--muted); }
.stat-icon { position: absolute; top: 20px; right: 22px; color: #c1cfeb; font-size: 24px; }
.stat-orange .stat-icon { color: #edc2a8; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: end; }
.form-grid-wide { min-width: 0; grid-column: 1 / -1; }
.form-grid-wide > label { display: block; margin-bottom: 7px; color: #43534c; font-size: 13px; font-weight: 700; }
.login-switch { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; color: var(--green-dark); font-size: 13px; font-weight: 700; }
.login-switch:hover { color: var(--green); }
.student-login-aside { background: #263d68; }
.student-login-aside .brand-accent { color: #f0c69f; }
.student-login-aside .aside-copy .eyebrow { color: #e5be98; }
.unplaced-shortcut { padding: 9px 12px; border: 1px solid #e7cfb4; border-radius: 4px; background: #fff7ed; color: #9d6132; }
.section-caption { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.unplaced-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #fff2e6; color: #ba7544; }
.bulk-assign-toolbar { display: flex; align-items: end; gap: 16px; margin-bottom: 12px; }
.bulk-class-field { min-width: 220px; flex: 1; color: #43534c; font-size: 12px; font-weight: 700; }
.bulk-class-field .form-control { margin-top: 5px; }
.bulk-assign-toolbar .btn { min-height: 42px; padding: 11px 15px; background: var(--green); color: #fff; white-space: nowrap; }
.bulk-assign-toolbar .btn-outline-danger { border: 1px solid #e4b7b1; background: #fff; color: #a14338; }
.unplaced-list { max-height: 350px; overflow-y: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.unplaced-select-all, .unplaced-student { min-height: 44px; display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 10px; border-bottom: 1px solid var(--line); cursor: pointer; }
.unplaced-select-all { position: sticky; top: 0; z-index: 1; background: #f7f9f7; color: var(--ink); font-size: 12px; font-weight: 700; }
.unplaced-select-all small { margin-left: auto; color: var(--muted); font-weight: 400; }
.unplaced-student:last-child { border-bottom: 0; }
.unplaced-student input, .unplaced-select-all input { accent-color: var(--green); }
.student-pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; }
.pagination-links { display: flex; align-items: center; gap: 6px; }
.pagination-links a, .pagination-links button { min-width: 34px; height: 34px; display: grid; place-items: center; padding: 0 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--green-dark); background: #fff; text-decoration: none; cursor: pointer; }
.pagination-links a.is-current { border-color: var(--green); background: var(--green); color: #fff; }
.pagination-links button:disabled { opacity: .45; cursor: not-allowed; }
.direct-scan-toggle-form { display: grid; gap: 12px; margin: 14px 0; }
.direct-scan-toggle { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--ink); font-size: 13px; font-weight: 700; }
.direct-scan-toggle input[type="checkbox"],
.direct-scan-toggle input[type="checkbox"]:hover,
.direct-scan-toggle input[type="checkbox"]:focus,
.direct-scan-toggle input[type="checkbox"]:active {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px;
    margin: 0;
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    opacity: 1 !important;
    visibility: visible !important;
    accent-color: var(--green);
    outline: 2px solid transparent !important;
}
.direct-scan-toggle-form .btn { justify-self: start; }
.unplaced-student input[type="checkbox"],
.unplaced-select-all input[type="checkbox"],
.filter-unplaced input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 0 2px 0 0;
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    accent-color: var(--green);
    opacity: 1 !important;
    visibility: visible !important;
    cursor: pointer;
}
.unplaced-student input[type="checkbox"]:hover,
.unplaced-select-all input[type="checkbox"]:hover,
.filter-unplaced input[type="checkbox"]:hover {
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    accent-color: var(--green-dark);
    filter: none !important;
    box-shadow: 0 0 0 4px #456bb120 !important;
}
.unplaced-student input[type="checkbox"]:focus-visible,
.unplaced-select-all input[type="checkbox"]:focus-visible,
.filter-unplaced input[type="checkbox"]:focus-visible {
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    outline: 2px solid var(--green) !important;
    outline-offset: 3px !important;
}
.unplaced-student input[type="checkbox"]:checked,
.unplaced-select-all input[type="checkbox"]:checked,
.filter-unplaced input[type="checkbox"]:checked {
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    accent-color: var(--green);
    opacity: 1 !important;
}
.unplaced-student span { min-width: 0; }
.unplaced-student strong, .unplaced-student small { display: block; }
.unplaced-student strong { color: var(--ink); font-size: 13px; }
.unplaced-student small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.ms-parent { min-height: 42px; }
.ms-parent .ms-choice { min-height: 42px; padding: 8px 12px; border-color: #dfe6e0; border-radius: 4px; box-shadow: none; color: var(--ink); }
.ms-parent .ms-choice > span { top: 9px; padding-right: 26px; font-family: "Source Sans Pro", "Segoe UI", sans-serif; font-size: 13px; }
.ms-parent .ms-choice > div { top: 10px; right: 10px; }
.ms-parent .ms-drop { z-index: 20; width: 100%; min-width: 100%; max-width: 100%; box-sizing: border-box; border-color: #dfe6e0; border-radius: 4px; box-shadow: 0 8px 24px #18382d18; }
.ms-parent .ms-choice:focus { border-color: var(--green); outline: 2px solid #456bb120; }
.ms-parent .ms-drop ul > li label { overflow: hidden; padding: 8px 10px 8px 34px; color: var(--ink); font-size: 12px; text-overflow: ellipsis; }
.ms-parent .ms-drop input[type="checkbox"] { appearance: auto !important; -webkit-appearance: checkbox !important; opacity: 1 !important; visibility: visible !important; accent-color: var(--green); }
.ms-parent .ms-drop input[type="radio"] { appearance: auto !important; -webkit-appearance: radio !important; opacity: 1 !important; visibility: visible !important; accent-color: var(--green); }
.ms-parent .ms-search input { min-height: 36px; border-color: #dfe6e0; }
.ms-parent .ms-select-all { border-bottom: 1px solid var(--line); }
.filter-bar { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; padding: 14px; background: #f7f9f7; border: 1px solid var(--line); border-radius: 4px; }
.filter-bar label, .import-class-field { min-width: 150px; flex: 1; margin: 0; color: #43534c; font-size: 11px; font-weight: 700; }
.filter-bar .form-control, .import-class-field .form-control { min-height: 38px; margin-top: 5px; font-size: 12px; }
.filter-bar .btn { min-height: 38px; padding: 9px 14px; background: var(--green); color: white; }
.filter-reset { padding: 10px 5px; color: var(--muted); font-size: 12px; }
.field-help { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 400; }
.report-table { min-width: 800px; }
.report-table thead th { padding: 12px 10px; border: 1px solid #d5e4dc; color: #fff; background: #27624f; font-size: 11px; font-weight: 800; letter-spacing: .45px; text-align: center; vertical-align: middle; }
.report-table thead tr:first-child th { min-height: 48px; }
.report-table thead tr:nth-child(2) th { color: #294d3f; background: #e8f1eb; font-size: 10px; }
.report-table .report-sort-link { justify-content: center; color: inherit; }
.report-table .report-sort-link:hover, .report-table .report-sort-link:focus { color: #d7eddf; }
.report-table tbody td { min-width: 78px; padding: 11px 10px; border-color: #e4ebe6; text-align: center; vertical-align: middle; }
.report-table tbody td:nth-child(2), .report-table tbody td:nth-child(3), .report-table tbody td:nth-child(5) { text-align: left; }
.report-table tbody tr:nth-child(even) { background: #f7faf8; }
.attendance-badge { display: inline-flex; min-width: 80px; justify-content: center; align-items: center; padding: 5px 9px; border: 1px solid transparent; border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.attendance-present { border-color: #c5e5ce; color: #246b43; background: #e7f5eb; }
.attendance-absent { border-color: #f0c9c5; color: #a13e37; background: #fff0ee; }
.profile-form { max-width: 620px; }
.class-fields { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
.class-student-count { align-self: end; padding: 10px; color: var(--muted); font-size: 12px; }
.class-student-count strong { color: var(--green-dark); }
.import-class-field { max-width: 190px; }
.form-grid label, .login-form label { display: block; margin: 0 0 7px; color: #43534c; font-size: 13px; font-weight: 700; }
.form-control { min-height: 44px; border: 1px solid #dfe6e0; border-radius: 4px; color: var(--ink); box-shadow: none; }
.form-control:focus { border-color: var(--green); box-shadow: 0 0 0 3px #456bb120; }
.form-action { display: flex; align-items: end; }
.form-action .btn, .page-heading > .btn, .import-form > .btn, .scanner-section > .btn { min-height: 44px; padding: 12px 18px; background: var(--green); color: #fff; }
.form-action .btn:hover, .page-heading > .btn:hover, .import-form > .btn:hover, .scanner-section > .btn:hover { background: var(--green-dark); color: #fff; }
.count-label { color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.data-list, .session-list, .attendance-list { border-top: 1px solid var(--line); }
.data-row, .session-row, .attendance-row { min-height: 68px; display: flex; align-items: center; gap: 14px; padding: 10px 3px; border-bottom: 1px solid var(--line); }
.session-row { color: inherit; text-decoration: none; }
a.session-row:hover { color: var(--green-dark); background: #f8fbf8; }
.row-main { min-width: 0; flex: 1; }
.row-main strong, .row-main small { display: block; overflow: hidden; text-overflow: ellipsis; }
.row-main strong { color: var(--ink); font-size: 14px; }
.row-main small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.avatar, .attendance-index { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 50%; background: #fff0e7; color: var(--orange); }
.role-tag, .status-tag { padding: 6px 10px; border-radius: 3px; background: #edf5ef; color: var(--green-dark); font-size: 11px; font-weight: 700; white-space: nowrap; }
.status-closed { background: #f0f1ef; color: #6e7973; }
.status-waiting { background: #fff2e9; color: #a45732; }
.session-date { width: 44px; height: 48px; flex: 0 0 44px; display: grid; place-content: center; border-radius: 5px; background: #fff2e9; color: var(--orange); text-align: center; }
.session-date strong { font-size: 18px; line-height: 1; }
.session-date small { margin-top: 3px; font-size: 10px; text-transform: uppercase; }
.session-date-green { background: #edf2fb; color: var(--green); font-size: 17px; }
.attendance-count { min-width: 48px; text-align: center; }
.attendance-count strong, .attendance-count small { display: block; }
.attendance-count strong { color: var(--green-dark); font-size: 16px; }
.attendance-count small { color: var(--muted); font-size: 10px; }
.empty-state { padding: 28px 10px; margin: 0; color: var(--muted); text-align: center; font-size: 14px; }
.notice { margin: 0 0 18px; padding: 12px 15px; border-radius: 4px; font-size: 14px; }
.notice-error { border-left: 3px solid #c65143; background: #fff1ef; color: #87372e; }
.notice-success { border-left: 3px solid var(--green); background: #edf7f0; color: var(--green-dark); }
.back-link { display: inline-block; margin-bottom: 14px; color: var(--green); font-size: 13px; font-weight: 700; }
.back-link i { margin-right: 6px; }
.import-form { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.import-form input[type=file] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.file-picker { min-width: 230px; flex: 1; min-height: 58px; display: flex; align-items: center; gap: 13px; padding: 9px 13px; border: 1px dashed #b8c9be; border-radius: 4px; cursor: pointer; }
.file-picker > i { color: var(--green); font-size: 22px; }
.file-picker strong, .file-picker small { display: block; }
.file-picker strong { font-size: 13px; }
.file-picker small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.import-result { margin-top: 18px; padding: 14px; background: #f6f8f6; border-radius: 4px; font-size: 13px; }
.import-result > strong { color: var(--green-dark); }
.import-result > span { margin-left: 14px; color: #a45732; }
.import-result ul { margin: 10px 0 0; padding-left: 20px; color: #815b4a; }
.table-scroll { overflow-x: auto; }
.app-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.app-table th, .app-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.app-table th { color: var(--muted); font-size: 10px; letter-spacing: .5px; text-transform: uppercase; }
.report-sort-link { display: inline-flex; align-items: center; gap: 4px; color: inherit; text-decoration: none; white-space: nowrap; }
.report-sort-link:hover, .report-sort-link:focus { color: var(--green-dark); text-decoration: underline; }
.app-table td .form-control { min-width: 100px; min-height: 38px; padding: 7px 9px; font-size: 12px; }
.table-actions { display: flex; align-items: center; gap: 5px; }
.table-actions form { margin: 0; }
.table-subtext { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.history-scan-link { display: inline-block; text-decoration: none; }
.class-management-row .management-fields { align-items: end; }
.class-management-row .management-fields .class-student-count { grid-column: 1 / -1; }
.management-list { border-top: 1px solid var(--line); }
.management-row { display: flex; align-items: center; gap: 14px; padding: 16px 3px; border-bottom: 1px solid var(--line); }
.management-fields { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); flex: 1; gap: 10px; }
.management-fields label { margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; }
.management-fields label small { font-weight: 400; }
.management-fields .form-control { margin-top: 5px; }
.management-actions { display: flex; align-items: center; gap: 5px; }
.management-actions form { margin: 0; }
.action-save { color: var(--green); }
.action-delete { color: #a14338; }
.delete-session-form { margin-top: 15px; }
.mono { font-family: Consolas, monospace; }
.session-detail-grid { display: grid; grid-template-columns: minmax(250px, .78fr) minmax(0, 1.4fr); gap: 18px; align-items: start; }
.session-qr { width: min(280px, 100%); display: block; margin: 4px auto 12px; image-rendering: pixelated; }
.qr-section { text-align: center; }
.qr-section .section-heading { text-align: left; }
.qr-caption { color: var(--muted); font-size: 12px; }
.qr-section .btn-outline-danger { border: 1px solid #e4b7b1; color: #a14338; }
.flyer-builder-grid { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(320px, 1fr); align-items: start; gap: 24px; }
.flyer-controls { display: grid; gap: 12px; }
.flyer-controls label { display: grid; gap: 5px; margin: 0; color: #43534c; font-size: 12px; font-weight: 700; }
.flyer-controls textarea { min-height: 76px; resize: vertical; }
.flyer-action-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.flyer-controls .btn { justify-self: start; min-height: 42px; padding: 11px 16px; background: var(--green); color: #fff; }
.flyer-controls .btn:disabled { cursor: wait; opacity: .7; }
.flyer-time-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.session-flyer {
    --flyer-bg: #d7edce;
    --flyer-ink: #123b2f;
    --flyer-card: #f8fbf2;
    --flyer-accent: #123b2f;
    --flyer-note: #123b2f;
    --flyer-note-text: #f8fbf2;
    --flyer-line: #b9d1b4;
    --flyer-highlight: #eab342;
    --flyer-muted: rgba(18, 59, 47, .7);
    --flyer-footer: rgba(18, 59, 47, .78);
    --flyer-decoration-soft: rgba(185, 209, 180, .32);
    --flyer-decoration-faint: rgba(185, 209, 180, .2);
    position: relative;
    isolation: isolate;
    width: min(100%, 440px);
    min-height: 620px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
    box-sizing: border-box;
    margin: 0 auto;
    padding: clamp(24px, 6vw, 42px);
    overflow: hidden;
    border-radius: 22px;
    background: var(--flyer-bg);
    color: var(--flyer-ink);
    box-shadow: 0 16px 42px #18382d1c;
    font-family: "Source Sans Pro", "Segoe UI", sans-serif;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
.flyer-decoration { position: absolute; z-index: 0; top: -155px; right: -205px; width: 350px; height: 350px; pointer-events: none; }
.flyer-decoration-ring { position: absolute; top: 50%; left: 50%; display: block; border-radius: 50%; transform: translate(-50%, -50%); }
.flyer-decoration-ring-outer { width: 348px; height: 348px; background: var(--flyer-decoration-faint); }
.flyer-decoration-ring-middle { width: 280px; height: 280px; background: var(--flyer-decoration-soft); }
.flyer-decoration-ring-inner { width: 218px; height: 218px; border: 1px solid var(--flyer-line); background: var(--flyer-bg); }
.flyer-heading { position: relative; z-index: 1; display: grid; justify-items: start; gap: 13px; padding-top: 5px; }
.flyer-kicker { display: flex; align-items: center; gap: 9px; color: var(--flyer-accent); font-size: 11px; font-weight: 900; letter-spacing: 3px; }
.flyer-kicker::before { width: 28px; height: 3px; background: var(--flyer-accent); content: ""; }
.flyer-heading h2 { max-width: 100%; margin: 4px 0 0; color: var(--flyer-ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 5vw, 45px); font-weight: 700; line-height: 1.04; overflow-wrap: anywhere; }
.flyer-audience { display: inline-flex; max-width: 100%; padding: 9px 16px; border-radius: 999px; background: var(--flyer-accent); color: var(--flyer-card); font-size: 15px; font-weight: 800; overflow-wrap: anywhere; }
.flyer-details { position: relative; z-index: 1; display: grid; gap: 0; padding: 13px 22px; border-radius: 20px; background: var(--flyer-card); }
.flyer-detail { display: grid; gap: 5px; padding: 14px 0; border-bottom: 1px solid var(--flyer-line); }
.flyer-detail:last-child { border-bottom: 0; }
.flyer-detail small { color: var(--flyer-muted); font-size: 10px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; }
.flyer-detail strong { color: var(--flyer-ink); font-size: clamp(15px, 2.8vw, 20px); font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.flyer-note { position: relative; z-index: 1; display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 16px; padding: 18px; border-radius: 19px; background: var(--flyer-note); color: var(--flyer-note-text); }
.flyer-note-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 17px; background: var(--flyer-highlight); color: var(--flyer-ink); font-size: 25px; }
.flyer-note small { display: block; margin-bottom: 4px; color: var(--flyer-highlight); font-size: 10px; font-weight: 900; letter-spacing: 2px; }
.flyer-note strong { display: block; color: var(--flyer-note-text); font-size: clamp(15px, 2.6vw, 19px); font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.flyer-footer { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: end; gap: 14px; color: var(--flyer-footer); }
.flyer-footer p { max-width: 72%; margin: 0; font-size: 12px; line-height: 1.45; }
.flyer-footer strong { flex: 0 0 auto; font-size: 10px; font-weight: 900; white-space: nowrap; }
.place-flyer-page { width: min(900px, calc(100% - 32px)); margin: 32px auto; }
.place-flyer-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.place-flyer-toolbar p { margin: 0; color: var(--muted); font-size: 13px; }
.place-flyer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.place-flyer-status { margin: 0 0 14px; color: var(--green-dark); font-size: 13px; }
.place-flyer-status[hidden] { display: none; }
.place-flyer-actions .btn:disabled { cursor: wait; opacity: .7; }
.place-flyer-code-wrap { position: relative; z-index: 1; padding: 14px; border: 1px solid var(--flyer-line); border-radius: 18px; background: #fff; text-align: center; }
.place-flyer-code { width: min(260px, 100%); height: auto; display: block; margin: 0 auto; image-rendering: pixelated; }
.place-flyer-scan-label { margin: 10px 0 0; color: var(--flyer-accent); font-size: 11px; font-weight: 900; letter-spacing: 1.5px; }
.qr-print-sheet { display: none; }
.attendance-section .section-heading { margin-bottom: 13px; }
.attendance-section .section-heading h2 { display: flex; align-items: center; gap: 10px; }
.live-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #4ca57c; box-shadow: 0 0 0 4px #4ca57c20; }
.attendance-row { min-height: 58px; }
.attendance-index { width: 30px; height: 30px; flex-basis: 30px; background: #eef4ef; color: var(--green); font-size: 12px; }
.attendance-row time { color: var(--muted); font-size: 12px; }
.scanner-section { width: min(560px, 100%); margin-right: auto; margin-left: auto; text-align: center; }
#qr-reader { width: min(100%, 420px); margin: 0 auto; border: 0 !important; }
#qr-reader video { border-radius: 5px; }
#qr-reader__dashboard_section_csr button { margin: 7px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); }
.scan-status { margin: 15px 0; color: var(--muted); font-size: 13px; }
.login-page { min-height: 100vh; background: #101a2d; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(300px, .94fr) minmax(380px, 1.06fr); }
.login-aside { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 36px; overflow: hidden; background: #263d68; color: #fff; }
.login-aside::after { position: absolute; right: -110px; bottom: 85px; width: 360px; height: 360px; border: 1px solid #ffffff19; border-radius: 50%; box-shadow: 0 0 0 42px #ffffff0a, 0 0 0 92px #ffffff08; content: ""; }
.brand-light { position: relative; z-index: 1; color: #fff; }
.brand-light:hover { color: #fff; }
.brand-light .brand-mark { background: #d98554; }
.brand-light .brand-accent { color: #c1d0f0; }
.brand-light small { color: #c1cde3; }
.aside-copy { position: relative; z-index: 1; max-width: 470px; padding: 70px 0; }
.aside-copy .eyebrow { color: #c1d0f0; }
.aside-copy h1 { margin: 18px 0; color: #fff; font-family: Georgia, serif; font-size: clamp(38px, 4.5vw, 60px); font-weight: 400; line-height: 1.08; }
.aside-copy p { max-width: 390px; color: #d3dced; font-size: 16px; line-height: 1.6; }
.aside-stamp { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; color: #fff; font-size: 13px; font-weight: 700; }
.aside-stamp > i { width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid #8195bd; border-radius: 50%; color: #c1d0f0; }
.aside-stamp small { display: block; margin-top: 4px; color: #c1cde3; font-size: 11px; font-weight: 400; }
.login-form-wrap { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; padding: 35px; background: #101a2d; }
.login-form { --login-accent: #6688d0; --login-accent-rgb: 102, 136, 208; width: min(574px, 100%); padding: 36px; border: 1px solid #34435f; border-radius: 28px; background: #141d30; color: #e9eef5; }
.pwa-install-banner { width: min(574px, 100%); min-height: 122px; display: grid; grid-template-columns: 60px minmax(0, 1fr) 154px 48px; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid #355447; border-radius: 24px; background: #1d283b; color: #e9eef5; }
.pwa-install-banner[hidden] { display: none; }
.pwa-install-icon { width: 60px; height: 60px; display: grid; place-items: center; border: 1px solid #39785f; border-radius: 18px; background: #29483f; color: #4ad39a; font-size: 24px; }
.pwa-install-copy { min-width: 0; }
.pwa-install-copy h2 { margin: 0 0 5px; color: #f2f5fa; font-size: 17px; font-weight: 800; line-height: 1.35; }
.pwa-badge { display: inline-block; margin-left: 5px; padding: 3px 8px; border-radius: 9px; background: #315a50; color: #80dfb3; font-size: 11px; vertical-align: 2px; }
.pwa-install-copy p { margin: 0; color: #9aa8bd; font-size: 14px; line-height: 1.5; }
.pwa-install-cta { min-height: 72px; padding: 10px 15px; border: 0; border-radius: 20px; background: #456bb1; color: #fff; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.pwa-install-cta:hover, .pwa-install-cta:focus-visible { background: #314f8a; }
.pwa-install-cta i { margin-right: 5px; font-size: 12px; }
.pwa-install-help { width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #2a374c; color: #80dfb3; font-size: 17px; cursor: pointer; }
.pwa-install-help:hover, .pwa-install-help:focus-visible { background: #35465e; }
.pwa-install-cta:focus-visible, .pwa-install-help:focus-visible { outline: 2px solid #c1d0f0; outline-offset: 3px; }
.pwa-guide-dialog { width: min(748px, calc(100% - 24px)); max-height: min(94vh, 980px); padding: 0; overflow: auto; border: 1px solid #244a42; border-radius: 32px; background: #101a2c; color: #e9eef5; box-shadow: 0 24px 80px #0009; }
.pwa-guide-dialog::backdrop { background: #020916c9; backdrop-filter: blur(4px); }
.pwa-guide-content { padding: 28px 34px 32px; }
.pwa-guide-header { display: grid; grid-template-columns: 70px minmax(0, 1fr) 48px; align-items: center; gap: 16px; margin-bottom: 24px; }
.pwa-guide-header img { border-radius: 16px; object-fit: cover; }
.pwa-guide-header h2 { margin: 0 0 4px; color: #f2f5fa; font-size: 21px; font-weight: 800; }
.pwa-guide-header p { margin: 0; color: #a6bcf0; font-size: 14px; }
.pwa-guide-close { width: 48px; height: 48px; border: 0; border-radius: 17px; background: #202c40; color: #9aa8bd; font-size: 19px; cursor: pointer; }
.pwa-guide-warning, .pwa-guide-step { margin-bottom: 18px; padding: 20px 22px; border: 1px solid #2d3a50; border-radius: 23px; background: #1d283b; }
.pwa-guide-warning { border-color: #69501e; background: #332f29; }
.pwa-guide-warning h3, .pwa-guide-step h3 { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px; color: #f2f5fa; font-size: 17px; font-weight: 800; line-height: 1.45; }
.pwa-guide-warning h3 { color: #ffd34e; }
.pwa-guide-warning h3 i { margin-top: 3px; color: #ffbd00; }
.pwa-guide-warning p, .pwa-guide-step p, .pwa-guide-step li { margin: 0; color: #bdc7d7; font-size: 14px; line-height: 1.7; }
.pwa-guide-step h3 > span { width: 29px; height: 29px; flex: 0 0 29px; display: grid; place-items: center; border-radius: 50%; background: #456bb1; color: #fff; font-size: 14px; }
.pwa-guide-step ol { display: grid; gap: 10px; margin: 0; padding-left: 22px; }
.pwa-guide-step li { padding-left: 2px; }
.pwa-guide-step strong { color: #e2e9f3; }
.pwa-guide-cache { border-color: #285347; }
.pwa-guide-clear-cache { width: 100%; min-height: 52px; margin-top: 14px; border: 1px solid #44536c; border-radius: 17px; background: #35435b; color: #f2f5fa; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.pwa-guide-clear-cache:hover, .pwa-guide-clear-cache:focus-visible { background: #40516d; }
.pwa-guide-clear-cache i { margin-right: 8px; color: #4ad39a; }
.pwa-guide-clear-cache:disabled { cursor: wait; opacity: .7; }
.pwa-guide-status { margin-top: 8px !important; color: #80dfb3 !important; }
.pwa-guide-done { width: 100%; min-height: 52px; border: 0; border-radius: 17px; background: #456bb1; color: #fff; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.pwa-guide-done:hover, .pwa-guide-done:focus-visible { background: #3aa879; }
.pwa-guide-close:focus-visible, .pwa-guide-clear-cache:focus-visible, .pwa-guide-done:focus-visible { outline: 2px solid #c1d0f0; outline-offset: 3px; }
.login-form[data-login-role="guru"] { --login-accent: #d98554; --login-accent-rgb: 217, 133, 84; }
.login-form[data-login-role="admin"] { --login-accent: #6688e8; --login-accent-rgb: 102, 136, 232; }
.login-form h2 { margin: 9px 0 3px; color: #f2f5fa; font-size: 28px; font-weight: 700; }
.login-form > .eyebrow, .login-field label { color: #a6bcf0; }
.login-form[data-login-role="guru"] > .eyebrow, .login-form[data-login-role="guru"] .login-field label { color: #f0b58e; }
.login-form[data-login-role="admin"] > .eyebrow, .login-form[data-login-role="admin"] .login-field label { color: #9bb3ff; }
.muted { margin-bottom: 26px; color: #98a5ba; font-size: 14px; }
.login-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 35px; padding: 9px; border: 1px solid #303d52; border-radius: 23px; background: #1d283b; }
.login-tab { min-height: 54px; display: flex; justify-content: center; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 17px; color: #9aa8bd; font-size: 14px; font-weight: 700; text-align: center; transition: background-color .18s ease, color .18s ease; }
.login-tab:hover, .login-tab:focus-visible { color: #fff; text-decoration: none; }
.login-tab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.login-tab-student.is-active { background: #5279c2; color: #fff; }
.login-tab-staff.is-active { background: #5878d4; color: #fff; }
.login-tab-student:not(.is-active):hover { background: #5279c226; color: #a6bcf0; }
.login-tab-staff:not(.is-active):hover { background: #6688e826; color: #9bb3ff; }
.login-field { margin-bottom: 18px; }
.login-field label { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.login-input { position: relative; }
.login-input > i { position: absolute; top: 50%; left: 17px; z-index: 1; color: var(--login-accent); transform: translateY(-50%); }
.login-form .login-input .form-control { height: 58px; margin: 0; padding: 12px 16px 12px 48px; border: 1px solid #35435a; border-radius: 17px; background: #1d283b; color: #edf2f8; box-shadow: none; }
.login-form .login-input .form-control::placeholder { color: #728099; }
.login-form .login-input .form-control:focus { border-color: var(--login-accent); box-shadow: 0 0 0 3px rgba(var(--login-accent-rgb), .18); }
.login-submit { width: 100%; min-height: 58px; margin-top: 6px; border: 0; border-radius: 17px; background: var(--login-accent); color: #fff; font-size: 16px; }
.login-submit:hover, .login-submit:focus { background: var(--login-accent); color: #fff; filter: brightness(1.08); }
.login-footnote { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid #263349; color: #8190a7; text-align: center; font-size: 12px; }
.login-footnote i { margin-right: 5px; color: var(--login-accent); }
.login-form .notice { margin-bottom: 18px; }
.qr-swal-popup { border-radius: 8px !important; padding: 24px !important; font-family: "Source Sans Pro", "Segoe UI", sans-serif !important; }
.qr-swal-title { color: var(--ink) !important; font-size: 22px !important; }
.qr-swal-actions { gap: 9px !important; }
.qr-swal-confirm, .qr-swal-cancel {
    min-height: 40px;
    padding: 9px 16px;
    border: 0;
    border-radius: 4px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.qr-swal-confirm { background: var(--green); color: #fff; }
.qr-swal-confirm:hover, .qr-swal-confirm:focus-visible { background: var(--green-dark); color: #fff; }
.qr-swal-cancel { background: #edf1ed; color: var(--ink); }
.qr-swal-cancel:hover, .qr-swal-cancel:focus-visible { background: #dfe7e0; color: var(--ink); }
.qr-swal-confirm:focus-visible, .qr-swal-cancel:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
@page { size: A4 portrait; margin: 0; }
@media print {
    html, body, #page { width: 210mm; min-height: 297mm; margin: 0; padding: 0; background: #fff; }
    body * { visibility: hidden !important; }
    body:not([data-print-target="flyer"]) .qr-print-sheet,
    body:not([data-print-target="flyer"]) .qr-print-sheet * { visibility: visible !important; }
    body[data-print-target="flyer"] #session-flyer,
    body[data-print-target="flyer"] #session-flyer * { visibility: visible !important; }
    body[data-print-target="flyer"] .qr-print-sheet { display: none !important; }
    body[data-print-target="flyer"] #session-flyer {
        position: absolute;
        inset: 0 auto auto 0;
        width: 210mm;
        height: 297mm;
        min-height: 0;
        aspect-ratio: auto;
        margin: 0;
        padding: 18mm;
        border-radius: 0;
        box-shadow: none;
        gap: 8mm;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    body[data-print-target="flyer"] .place-flyer-page { width: auto; margin: 0; }
    body[data-print-target="flyer"] .place-flyer-toolbar { display: none; }
    body[data-print-target="flyer"] .place-flyer-code-wrap { padding: 5mm; border: 1px solid #dce8df; border-radius: 5mm; box-shadow: 0 2mm 8mm #18382d12; }
    body[data-print-target="flyer"] .place-flyer-code { width: 82mm; height: 82mm; }
    body[data-print-target="flyer"] .place-flyer-scan-label { margin: 3mm 0 0; font-size: 9pt; }
    body[data-print-target="flyer"] .flyer-heading { gap: 7mm; }
    body[data-print-target="flyer"] .flyer-kicker { font-size: 11pt; }
    body[data-print-target="flyer"] .flyer-heading h2 { font-size: 36pt; }
    body[data-print-target="flyer"] .flyer-audience { padding: 3mm 6mm; font-size: 14pt; }
    body[data-print-target="flyer"] .flyer-details { padding: 5mm 9mm; border-radius: 8mm; }
    body[data-print-target="flyer"] .flyer-detail { gap: 2mm; padding: 5mm 0; }
    body[data-print-target="flyer"] .flyer-detail small { font-size: 9pt; }
    body[data-print-target="flyer"] .flyer-detail strong { font-size: 16pt; }
    body[data-print-target="flyer"] .flyer-note { grid-template-columns: 22mm 1fr; gap: 6mm; padding: 7mm; border-radius: 7mm; }
    body[data-print-target="flyer"] .flyer-note-icon { width: 22mm; height: 22mm; border-radius: 6mm; font-size: 24pt; }
    body[data-print-target="flyer"] .flyer-note small { font-size: 9pt; }
    body[data-print-target="flyer"] .flyer-note strong { font-size: 16pt; }
    body[data-print-target="flyer"] .flyer-footer p { font-size: 11pt; }
    body[data-print-target="flyer"] .flyer-footer strong { font-size: 9pt; }
    .qr-print-sheet {
        position: absolute;
        inset: 0 auto auto 0;
        width: 210mm;
        height: 297mm;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        overflow: hidden;
        padding: 16mm;
        background: #fff;
        color: #1e302b;
        font-family: "Source Sans Pro", "Segoe UI", sans-serif;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .qr-print-frame {
        position: relative;
        display: flex;
        flex: 1;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        overflow: hidden;
        padding: 12mm 13mm;
        border: 2px solid #456bb1;
        outline: 1px solid #c9dfd2;
        outline-offset: -5mm;
        text-align: center;
    }
    .qr-print-frame::before, .qr-print-frame::after {
        position: absolute;
        width: 24mm;
        height: 24mm;
        border: 1px solid #d8e9df;
        border-radius: 50%;
        content: "";
    }
    .qr-print-frame::before { top: -12mm; left: -12mm; }
    .qr-print-frame::after { right: -12mm; bottom: -12mm; }
    .qr-print-brand { display: flex; align-items: center; gap: 4mm; color: #314f8a; }
    .qr-print-brand-icon { width: 16mm; height: 16mm; display: grid; place-items: center; border-radius: 5mm; background: #456bb1; color: #fff; font-size: 23pt; }
    .qr-print-brand-name { font-size: 19pt; font-weight: 800; line-height: 1.1; text-align: left; }
    .qr-print-brand-name small { display: block; margin-top: 1.5mm; color: #76847d; font-size: 7pt; letter-spacing: 1.2pt; }
    .qr-print-heading { margin-top: 8mm; }
    .qr-print-kicker { color: #456bb1; font-size: 9pt; font-weight: 800; letter-spacing: 2pt; }
    .qr-print-heading h1 { margin: 3mm 0 2mm; font-size: 25pt; line-height: 1.15; }
    .qr-print-heading p { margin: 0; color: #64756c; font-size: 11pt; }
    .qr-print-code-wrap { padding: 5mm; border: 1px solid #dce8df; border-radius: 5mm; background: #fff; box-shadow: 0 2mm 8mm #18382d12; }
    .qr-print-code { width: 82mm; height: 82mm; display: block; image-rendering: pixelated; }
    .qr-print-scan-label { margin: 3mm 0 0; color: #314f8a; font-size: 9pt; font-weight: 800; letter-spacing: 1.2pt; }
    .qr-print-details { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 3mm; text-align: left; }
    .qr-print-detail { min-height: 20mm; box-sizing: border-box; padding: 3mm 4mm; border-left: 1mm solid #456bb1; background: #f3f6fb; }
    .qr-print-detail small { display: block; margin-bottom: 1.5mm; color: #76847d; font-size: 7pt; font-weight: 800; letter-spacing: 1pt; text-transform: uppercase; }
    .qr-print-detail strong { display: block; font-size: 11pt; line-height: 1.25; overflow-wrap: anywhere; }
    .qr-print-footer { width: 100%; display: flex; justify-content: space-between; gap: 8mm; padding-top: 4mm; border-top: 1px solid #dce8df; color: #64756c; font-size: 8pt; text-align: left; }
    .qr-print-footer strong { color: #314f8a; }
}
@media (max-width: 900px) {
    .pwa-install-banner { grid-template-columns: 48px minmax(0, 1fr) 116px 40px; gap: 10px; min-height: 104px; padding: 12px; border-radius: 20px; }
    .pwa-install-icon { width: 48px; height: 52px; border-radius: 15px; font-size: 20px; }
    .pwa-install-copy h2 { font-size: 13px; }
    .pwa-install-copy p { font-size: 11px; }
    .pwa-badge { margin-left: 2px; padding: 2px 5px; font-size: 9px; }
    .pwa-install-cta { min-height: 58px; padding: 8px 5px; border-radius: 15px; font-size: 12px; }
    .pwa-install-help { width: 36px; height: 36px; font-size: 14px; }
    .flyer-builder-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .pwa-guide-dialog { max-height: 96vh; border-radius: 25px; }
    .pwa-guide-content { padding: 18px 16px 20px; }
    .pwa-guide-header { grid-template-columns: 52px minmax(0, 1fr) 38px; gap: 10px; margin-bottom: 17px; }
    .pwa-guide-header img { width: 50px; height: 50px; border-radius: 13px; }
    .pwa-guide-header h2 { font-size: 15px; }
    .pwa-guide-header p { font-size: 11px; }
    .pwa-guide-close { width: 38px; height: 38px; border-radius: 13px; font-size: 16px; }
    .pwa-guide-warning, .pwa-guide-step { margin-bottom: 12px; padding: 15px; border-radius: 19px; }
    .pwa-guide-warning h3, .pwa-guide-step h3 { gap: 8px; margin-bottom: 9px; font-size: 14px; }
    .pwa-guide-warning p, .pwa-guide-step p, .pwa-guide-step li { font-size: 12px; }
    .pwa-guide-step h3 > span { width: 25px; height: 25px; flex-basis: 25px; font-size: 12px; }
    .pwa-guide-step ol { gap: 8px; padding-left: 18px; }
    .pwa-guide-clear-cache, .pwa-guide-done { min-height: 46px; border-radius: 14px; font-size: 12px; }
}
@media (max-width: 760px) {
    .login-shell { grid-template-columns: 1fr; }
    .login-aside { min-height: 280px; padding: 24px; }
    .aside-copy { padding: 30px 0; }
    .aside-copy h1 { font-size: 40px; }
    .aside-copy p { max-width: 420px; margin-bottom: 0; font-size: 14px; }
    .aside-stamp { display: none; }
    .login-form-wrap { padding: 38px 24px; }
    .login-form { padding: 28px 22px; border-radius: 22px; }
    .pwa-install-banner { grid-template-columns: 48px minmax(0, 1fr) 105px 36px; }
    .login-tabs { gap: 3px; margin-bottom: 28px; padding: 6px; }
    .login-tab { min-height: 48px; flex-direction: column; gap: 3px; padding: 6px 4px; font-size: 12px; }
    .app-content { width: min(100% - 28px, 600px); padding-top: 27px; }
    .app-header { height: 62px; padding: 0 15px; }
    .app-header > .pwa-install-button { width: 36px; min-height: 34px; padding: 7px 8px; font-size: 0; }
    .app-header > .pwa-install-button i { margin: 0; font-size: 14px; }
    .page-heading { align-items: start; flex-direction: column; gap: 14px; margin-bottom: 23px; }
    .heading-actions { width: 100%; }
    .heading-actions .btn { flex: 1; padding: 10px 8px; font-size: 10px; text-align: center; }
    .admin-dashboard-actions { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
    .admin-dashboard-actions .btn:nth-child(-n+3) { grid-column: span 2; }
    .admin-dashboard-actions .btn:nth-child(n+4) { grid-column: span 3; }
    .page-heading h1 { font-size: 27px; }
    .page-heading > .btn { align-self: stretch; text-align: center; }
    .content-section { padding: 18px; }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .stat-panel { min-height: 128px; padding: 17px; }
    .stat-panel strong { font-size: 29px; }
    .form-grid { grid-template-columns: 1fr; gap: 13px; }
    .form-grid-wide { grid-column: auto; }
    .filter-bar { align-items: stretch; flex-direction: column; gap: 9px; }
    .filter-bar label, .import-class-field { min-width: 100%; max-width: none; }
    .filter-bar .btn { width: 100%; }
    .filter-reset { text-align: center; }
    .form-action .btn { width: 100%; }
    .session-detail-grid { grid-template-columns: 1fr; gap: 0; }
    .session-row { gap: 9px; }
    .status-tag { padding: 5px 7px; font-size: 10px; }
    .attendance-count { display: none; }
    .file-picker { min-width: 100%; }
    .bulk-assign-toolbar { align-items: stretch; flex-direction: column; gap: 10px; }
    .bulk-class-field { min-width: 100%; }
    .bulk-assign-toolbar .btn { width: 100%; }
    .student-pagination { align-items: stretch; flex-direction: column; gap: 10px; }
    .pagination-links { flex-wrap: wrap; }
    .direct-scan-toggle-form .btn { width: 100%; }
    .import-form > .btn { width: 100%; }
    .management-row { align-items: start; flex-wrap: wrap; }
    .management-fields { grid-template-columns: 1fr; flex-basis: calc(100% - 56px); }
    .management-actions { margin-left: 52px; }
    .history-table { min-width: 680px; }
}