:root{
  --ink:#242424;--muted:#626262;--brand:#eb0a1e;--brand-dark:#c90819;--mint:#fff0f1;
  --surface:#fff;--canvas:#f5f5f5;--line:#e2e2e2;--accent:#eb0a1e;--shadow:0 8px 24px rgba(0,0,0,.06);
  --sidebar-width:248px;--radius:12px;--icon-sm:18px;--icon-md:20px;--icon-lg:24px;
  --bs-primary:#eb0a1e;--bs-primary-rgb:235,10,30;--bs-body-color:var(--ink);--bs-secondary-color:var(--muted);--bs-secondary-rgb:98,98,98;
}
*{box-sizing:border-box}
html{scroll-padding-top:92px}
body{font-family:"Google Sans",system-ui,-apple-system,"Segoe UI",sans-serif;background:var(--canvas);color:var(--ink);font-optical-sizing:auto;font-weight:400;font-variation-settings:"GRAD" 0;line-height:1.6}
button,input,select,textarea{font-family:inherit}
button,a,input,select,textarea{touch-action:manipulation}
button{cursor:pointer}
button:disabled{cursor:not-allowed}
a{color:var(--brand-dark);text-underline-offset:3px}
::selection{background:#ffd8dc;color:#79000b}
input,textarea{caret-color:var(--brand)}
:focus-visible{outline:3px solid var(--brand);outline-offset:3px}
h1,h2,h3,h4,p{margin-top:0}
h1{font-size:1.75rem;line-height:1.4;font-weight:700;letter-spacing:-.025em;margin-bottom:0;text-wrap:balance}
h2{font-size:1.0625rem;line-height:1.5;font-weight:700;margin-bottom:.3rem}
h3{font-size:1rem;font-weight:700}
.ui-icon{display:inline-grid;place-items:center;width:var(--icon-md);height:var(--icon-md);flex-shrink:0;vertical-align:middle;line-height:0}
.ui-icon svg{display:block;width:100%;height:100%;align-self:center;justify-self:center;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.ui-icon-sm{width:var(--icon-sm);height:var(--icon-sm)}
.skip-link{position:fixed;z-index:1200;left:16px;top:-80px;padding:12px 20px;background:#fff;color:var(--ink);border:2px solid var(--brand);border-radius:8px}
.skip-link:focus{top:12px}
.app-sidebar{position:fixed;inset:0 auto 0 0;z-index:1040;width:var(--sidebar-width);display:flex;flex-direction:column;background:#171717;color:#fff;padding:26px 16px 20px;overflow-y:auto;overscroll-behavior:contain}
.sidebar-brand,.sidebar-nav,.sidebar-footer{flex-shrink:0}
.sidebar-brand{display:block;text-decoration:none;color:#fff;padding:0 12px 27px}
.sidebar-brand:hover{color:#fff}
.brand-logo{display:block;width:180px;max-width:100%;height:auto;aspect-ratio:4.24;object-fit:contain;background:#fff;border-radius:4px;padding:5px}
.brand-name{display:block;margin-top:17px;font-size:1.32rem;font-weight:700;letter-spacing:-.025em}
.brand-caption{display:block;color:#b6b6b6;font-size:.75rem;line-height:1.65;margin-top:3px}
.sidebar-section-label{font-size:.75rem;color:#a9a9a9;margin:0 14px 10px}
.sidebar-nav{display:flex;flex-direction:column;gap:6px}
.sidebar-link{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;border:0;border-radius:8px;padding:12px 14px;color:#c7c7c7;background:transparent;font-size:.9rem;font-weight:500;text-decoration:none;text-align:left}
.sidebar-link:hover{background:#292929;color:#fff}
.sidebar-link.active{background:var(--brand);color:#fff;font-weight:600}
.sidebar-link:focus-visible{outline-color:#fff}
.sidebar-link .nav-chevron{margin-left:auto;width:14px;height:14px;opacity:.7}
.sidebar-link:not(.active) .nav-chevron{visibility:hidden}
.sidebar-footer{margin-top:auto;padding-top:24px}
.sidebar-footer .sidebar-link{color:#d1d1d1}
.sidebar-footer-note{font-size:.75rem;color:#a9a9a9;border-top:1px solid #3b3b3b;margin:18px 12px 0;padding-top:18px;line-height:1.8}
.icon-button.sidebar-close{display:none}
.sidebar-scrim{position:fixed;inset:0;z-index:1030;border:0;background:rgba(0,0,0,.48)}
.sidebar-scrim[hidden]{display:none}
.app-workspace{margin-left:var(--sidebar-width);min-height:100vh;min-width:0}
.app-topbar{height:76px;padding:0 32px;display:flex;align-items:center;gap:16px;background:#fff;border-bottom:1px solid var(--line)}
.topbar-title{display:flex;align-items:center;gap:10px;font-size:.85rem;font-weight:500;color:#525252;min-width:0}
.topbar-title .ui-icon{color:#777}
.topbar-right{display:flex;align-items:center;gap:14px;margin-left:auto}
.user-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#f0f0f0;color:#343434;font-size:.83rem;font-weight:700}
.user-caption{display:grid;text-align:left;line-height:1.5;font-size:.82rem}
.user-caption strong{font-weight:600}
.user-caption span{font-size:.75rem;color:var(--muted)}
.icon-button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink)}
.icon-button:hover{background:#f1f1f1}
.sidebar-toggle{display:none}
.app-main{width:100%;max-width:1600px;margin:0 auto;padding:30px 32px 36px!important}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:26px}
.page-description{color:var(--muted);font-size:.85rem;margin:.35rem 0 0;max-width:70ch}
.term-select{min-width:175px;max-width:230px}
.term-filter{flex-shrink:0}
.term-filter label{white-space:nowrap}
.eyebrow{display:none}
.filter-bar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 16px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px;box-shadow:none}
.filter-bar>div{min-width:150px}
.form-label{font-weight:500;font-size:.82rem;margin-bottom:7px}
.filter-bar .form-label{color:var(--muted)}
.form-control,.form-select{min-height:44px;border:1px solid #c6c6c6;border-radius:7px;background-color:#fff;color:var(--ink);font-size:.875rem}
.form-control::placeholder{color:#6c6c6c;opacity:1}
.form-control:focus,.form-select:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(235,10,30,.12)}
.form-control-sm,.form-select-sm{font-size:.82rem}
.form-check-input:checked{background-color:var(--brand);border-color:var(--brand)}
.form-check-input:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(235,10,30,.12)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;border-radius:7px;font-size:.85rem;font-weight:600;line-height:1.4;transition:background-color .15s,border-color .15s,color .15s}
.btn-sm{min-height:36px;font-size:.78rem;padding:7px 12px}
.btn-lg{min-height:48px;font-size:.9rem;padding:13px 22px}
.btn-primary{--bs-btn-bg:var(--brand);--bs-btn-border-color:var(--brand);--bs-btn-hover-bg:var(--brand-dark);--bs-btn-hover-border-color:var(--brand-dark);--bs-btn-active-bg:#aa0616;--bs-btn-active-border-color:#aa0616;--bs-btn-disabled-bg:#ececec;--bs-btn-disabled-border-color:#dedede;--bs-btn-disabled-color:#626262;background:var(--brand);border-color:var(--brand);color:#fff}
.btn-primary:hover,.btn-primary:focus-visible{background:var(--brand-dark);border-color:var(--brand-dark)}
.btn-primary:disabled{background:#ececec;border-color:#dedede;color:#626262;opacity:1}
.btn-success{--bs-btn-hover-bg:#000;--bs-btn-hover-border-color:#000;--bs-btn-active-bg:#000;background:#242424;border-color:#242424;color:#fff}
.btn-outline-primary{--bs-btn-color:var(--brand-dark);--bs-btn-border-color:#f0a6ae;--bs-btn-hover-bg:var(--mint);--bs-btn-hover-color:var(--brand-dark);--bs-btn-hover-border-color:var(--brand);--bs-btn-active-bg:var(--mint);--bs-btn-active-color:var(--brand-dark);--bs-btn-active-border-color:var(--brand)}
.btn-outline-secondary{--bs-btn-color:#454545;--bs-btn-border-color:#c6c6c6;--bs-btn-hover-bg:#ededed;--bs-btn-hover-color:#202020;--bs-btn-hover-border-color:#999;--bs-btn-active-bg:#e2e2e2;--bs-btn-active-color:#202020}
.btn-light{--bs-btn-bg:#f4f4f4;--bs-btn-hover-bg:#e9e9e9;--bs-btn-border-color:#e2e2e2}
.btn-close{min-width:44px;min-height:44px}
.panel-card,.empty-card,.help-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px;box-shadow:none}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.section-heading p{color:var(--muted);font-size:.8rem;margin:0}
.app-table{--bs-table-bg:transparent;margin-bottom:0}
.app-table th{background:#f7f7f7;color:#616161;font-size:.75rem;font-weight:500;white-space:nowrap;padding:12px;border-bottom:1px solid var(--line)}
.app-table td{padding:16px 12px;font-size:.85rem;border-bottom-color:#ededed}
.app-table tbody tr:last-child td{border-bottom:0}
.room-attendance-summary{display:none}
.app-table tbody tr:hover{background:#fafafa}
.app-table td:not(:first-child),.report-table,.stat-card strong,.status-counter,.student-code{font-variant-numeric:tabular-nums}
.stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;background:#fff;border:1px solid var(--line);border-radius:var(--radius);margin-top:20px;padding:20px 0}
.stat-card{background:none;border:0;border-radius:0;box-shadow:none;padding:0 24px;position:relative}
.stat-card+.stat-card{border-left:1px solid var(--line)}
.stat-card>span{display:block;color:#626262;font-size:.81rem}
.stat-card>strong{display:block;color:var(--ink);font-size:2rem;font-weight:700;line-height:1.2;margin:7px 0;line-height:1.3}
.stat-card:nth-child(2)>strong{color:var(--brand-dark)}
.stat-card small{display:block;color:#737373;font-size:.76rem}
.stat-card .stat-total{display:inline;color:#737373;font-size:1rem;font-weight:400;margin-left:4px}
.badge{line-height:1.4;border-radius:5px;padding:6px 8px;font-size:.75rem;font-weight:500}
.text-bg-success{background:#ededed!important;color:#303030!important}
.text-bg-light{background:#f5f5f5!important;color:#555!important}
.text-bg-danger{background:#fff0f1!important;color:#b10818!important}
.text-bg-warning{background:#efefef!important;color:#555!important}
.text-success{color:#343434!important}
.badge-soft{background:var(--mint);color:var(--brand-dark)}
.room-status-list .list-group-item{border-color:#ededed;padding-top:17px;padding-bottom:17px;font-size:.84rem}
.empty-card{text-align:center;padding:48px 24px}
.empty-card h2{font-size:1.2rem}
.empty-card p,.empty-inline{color:var(--muted);font-size:.875rem;margin:0}
.empty-inline{background:#f6f6f6;border-radius:8px;padding:24px;text-align:center}
.attendance-shell{max-width:1300px;margin:auto}
.roster-heading{padding-bottom:18px;border-bottom:1px solid var(--line)}
.status-counter{white-space:nowrap;color:var(--muted);font-size:.85rem}
.status-counter span:first-child{font-size:1.2rem;font-weight:700;color:var(--brand-dark)}
.roster-list{display:grid;gap:0}
.student-row{display:grid;grid-template-columns:minmax(230px,1fr) minmax(320px,1fr);align-items:center;gap:14px 24px;background:#fff;border:0;border-bottom:1px solid #ededed;border-radius:0;padding:18px 0}
.student-row:last-child{border-bottom:0}
.student-identity{display:flex;align-items:center;gap:12px;min-width:0}
.student-number{width:34px;height:34px;display:grid;place-items:center;flex-shrink:0;border-radius:8px;background:#f0f0f0;color:#626262;font-size:.8rem;font-weight:600}
.student-name{font-size:.88rem;line-height:1.5;font-weight:600}
.student-code{font-size:.75rem;color:var(--muted);margin-top:2px}
.student-status{align-self:center;margin-left:auto;border-radius:5px;padding:4px 7px;font-size:.75rem;font-weight:500;white-space:nowrap;background:#f2f2f2;color:#626262}
.student-status.is-present{background:#ededed;color:#242424}
.student-status.is-late{background:#e9e9e9;color:#4a4a4a}
.student-status.is-absent{background:#fff0f1;color:#b10818}
.student-status.is-leave{background:#f4f4f4;color:#626262}
.student-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.status-btn{min-height:44px;border:1px solid #c6c6c6;border-radius:7px;background:#fff;color:#626262;font-size:.8rem;font-weight:500;transition:background-color .15s,border-color .15s}
.status-btn:hover{background:#f5f5f5;border-color:#777}
.status-btn.active[data-status="present"]{background:#242424;border-color:#242424;color:#fff}
.status-btn.active[data-status="late"]{background:#e8e8e8;border-color:#666;color:#242424}
.status-btn.active[data-status="absent"]{background:var(--mint);border-color:var(--brand);color:#b10818}
.status-btn.active[data-status="leave"]{background:#f1f1f1;border-color:#777;color:#333}
.student-note{grid-column:1/-1;margin-left:46px}
.student-note input{min-height:36px;font-size:.78rem;background:#fafafa;border-color:#e2e2e2}
.save-row{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line);padding-top:20px;margin-top:12px}
.save-row .btn{min-width:210px}
.help-card{background:#f0f0f0;border-color:transparent;height:100%}
.help-icon{display:grid;place-items:center;color:var(--brand);width:28px;height:28px;margin-bottom:18px}
.help-icon .ui-icon{width:24px;height:24px}
.help-card p{color:#626262;line-height:1.8;font-size:.85rem;max-width:65ch}
.callout{border:1px solid #d2d2d2;background:#fff;border-radius:7px;padding:14px;font-size:.8rem;line-height:1.7}
.alert{border-radius:8px;font-size:.84rem}
.alert-info{background:#f0f0f0;border-color:#dedede;color:#444}
.alert-success{background:#f0f0f0;border-color:#dedede;color:#343434}
.alert-warning{background:#f5f5f5;border-color:#ccc;color:#444}
.report-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0}
.report-toolbar>div:first-child{display:grid;gap:3px;font-size:.8rem}
.report-toolbar strong{font-size:.9rem;font-weight:600}
.report-page{background:#fff;border:1px solid var(--line);border-radius:8px;padding:28px;margin:20px auto;max-width:1150px;box-shadow:none}
.report-header{display:grid;grid-template-columns:minmax(0,190px) minmax(0,1fr);align-items:center;gap:24px;padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid var(--line);break-inside:avoid;page-break-inside:avoid}
.report-header>img{display:block;width:100%;max-width:190px;max-height:84px;object-fit:contain;margin-inline:auto}
.report-header>div{min-width:0}
.report-header h2{margin:0 0 8px;color:#18283e;font-size:1.2rem;font-weight:700;line-height:1.4}
.report-header p{margin:3px 0;color:#65748a;font-size:.82rem;line-height:1.5}
.report-approval-header{display:grid;grid-template-columns:minmax(0,2.8fr) repeat(4,minmax(0,1fr));gap:8px;margin-bottom:22px;break-inside:avoid;page-break-inside:avoid}
.report-title-panel,.report-signer{border:1px solid #53657c;border-radius:9px;min-height:164px;padding:14px 10px}
.report-title-panel{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.report-organization{font-size:.92rem;font-weight:600;color:#18283e;margin:0 0 8px}
.report-title-panel h2{font-size:1.24rem;color:#53657c;font-weight:600;line-height:1.45;margin:0 0 10px}
.report-context{font-size:.77rem;color:#65748a;margin:2px 0}
.report-signer{display:flex;flex-direction:column;align-items:center;text-align:center;color:#24364e}
.report-signer-role{font-size:.76rem;line-height:1.45;font-weight:500;min-height:2.9em;display:flex;align-items:flex-start;justify-content:center}
.report-signature-line{width:100%;height:42px;border-bottom:1px dotted #7b8797;margin-top:auto;margin-bottom:7px}
.report-signer-name{font-size:.72rem;line-height:1.35;min-height:1.35em;overflow-wrap:anywhere}
.report-signer-position{font-size:.68rem;line-height:1.35;color:#66758b;overflow-wrap:anywhere}
.report-signer-date{font-size:.63rem;line-height:1.4;color:#66758b;margin-top:5px;white-space:nowrap}
.report-table{font-size:.76rem;text-align:center;vertical-align:middle}
.report-table th{background:#f2f2f2;font-weight:600;white-space:nowrap}
.report-table td,.report-table th{padding:8px 6px}
.report-page .report-table:not(.individual-report-table){width:100%;table-layout:fixed}
.report-page .report-table:not(.individual-report-table) th:nth-child(1),.report-page .report-table:not(.individual-report-table) td:nth-child(1){width:5%}
.report-page .report-table:not(.individual-report-table) th:nth-child(2),.report-page .report-table:not(.individual-report-table) td:nth-child(2){width:13%}
.report-page .report-table:not(.individual-report-table) th:nth-child(3),.report-page .report-table:not(.individual-report-table) td:nth-child(3){width:20%}
.report-page .report-table:not(.individual-report-table) th:nth-child(n+4):nth-child(-n+10),.report-page .report-table:not(.individual-report-table) td:nth-child(n+4):nth-child(-n+10){width:8.857%;}
.report-table td:nth-child(3){text-align:left;min-width:140px}
.report-note{font-size:.75rem;color:var(--muted);margin:12px 0 24px}
.student-detail-link{color:inherit;text-decoration:none}
.student-detail-link:hover{color:var(--brand-dark);text-decoration:underline}
.talk-report-item{padding:16px 0;margin-bottom:18px;border:0;border-bottom:1px solid var(--line);border-radius:0;break-inside:avoid}
.talk-report-date{color:var(--brand-dark);font-size:.8rem;font-weight:600}
.talk-report-item h3{font-size:1rem;margin:6px 0 14px}
.report-label{font-size:.8rem;font-weight:600;margin:12px 0 5px}
.report-prose{font-size:.85rem;line-height:1.8;max-width:75ch}
.individual-detail{max-width:1150px;margin:24px auto}
.individual-student-code{font-size:.8rem;color:var(--muted);margin:-12px 0 12px}
.admin-tabs{display:flex;flex-wrap:wrap;gap:4px;border-bottom:1px solid var(--line);padding-bottom:12px}
.admin-tabs .nav-link{min-height:44px;border-radius:7px;color:#626262;font-size:.82rem;font-weight:500}
.admin-tabs .nav-link:hover{background:#e9e9e9}
.admin-tabs .nav-link.active{background:#242424;color:#fff}
.admin-form-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px;height:100%}
.admin-form-card h3{margin-bottom:18px}
.admin-data-table{font-size:.8rem}
.admin-data-table th{color:#626262;background:#f5f5f5;font-size:.75rem;white-space:nowrap;font-weight:500;padding:10px}
.admin-data-table td{padding:13px 10px;vertical-align:middle}
.admin-list-scroll{max-height:450px;overflow:auto}
.login-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:#ededed}
.login-card{width:min(100%,440px);background:#fff;border:0;border-radius:16px;padding:36px;box-shadow:0 12px 40px rgba(0,0,0,.07)!important}
.login-card h1{font-size:1.65rem;line-height:1.5;margin:22px 0 12px}
.college-logo{display:block;width:210px;max-width:100%;height:auto;object-fit:contain;margin:0 0 22px}
.login-card .form-control{font-size:1rem}
.login-card .btn{width:100%}
.flatpickr-calendar{border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.12);font-family:inherit}
.flatpickr-day.selected,.flatpickr-day.startRange,.flatpickr-day.endRange{background:var(--brand);border-color:var(--brand)}
.flatpickr-day.today{border-color:var(--brand)}
.flatpickr-months .flatpickr-prev-month:hover svg,.flatpickr-months .flatpickr-next-month:hover svg{fill:var(--brand)}
.swal2-popup{font-family:inherit;border-radius:14px}
.swal2-container{z-index:1200!important}
.swal2-popup.attendance-confirm-popup{width:min(460px,calc(100% - 32px));padding:24px 28px 22px;border:1px solid #e6ebf2;border-radius:18px;box-shadow:0 18px 56px rgba(25,42,67,.2)}
.attendance-confirm-popup .swal2-icon{margin:7px auto 12px}
.attendance-confirm-popup .swal2-title{padding:0;color:#243247;font-size:1.35rem;line-height:1.45}
.attendance-confirm-popup .swal2-html-container{margin:8px 0 0;color:#69788d;font-size:.95rem;line-height:1.6}
.attendance-confirm-popup .swal2-actions{gap:10px;margin:22px 0 0}
.attendance-confirm-popup .swal2-actions .swal2-styled{min-width:112px;margin:0}
.swal2-confirm.swal2-styled{background:var(--brand)!important;border-radius:7px!important;min-height:44px}
.swal2-cancel.swal2-styled{background:#555!important;border-radius:7px!important;min-height:44px}
.swal2-success [class^="swal2-success-line"]{background:#343434!important}
.swal2-success-ring{border-color:#dedede!important}
.preview-label{display:inline-flex;align-items:center;gap:7px;border:1px solid #e2e2e2;border-radius:5px;padding:5px 9px;color:#626262;font-size:.75rem;white-space:nowrap}
.preview-view{display:none}.preview-view.active{display:block}
.preview-footer{text-align:center;color:#626262;font-size:.75rem;padding:32px 0 0}
@media screen and (min-width:992px) and (max-width:1279px){.topbar-title{max-width:340px}.app-main{padding:26px 24px!important}.app-topbar{padding:0 24px}.student-row{grid-template-columns:1fr}.student-note{margin-left:46px}}
@media screen and (max-width:991px){
  :root{--sidebar-width:264px}
  .app-sidebar{transform:translateX(-100%);transition:transform .18s cubic-bezier(.2,.8,.2,1);padding-top:24px}
  .sidebar-is-open .app-sidebar{transform:translateX(0)}
  .sidebar-is-open{overflow:hidden}
  .app-workspace{margin-left:0}
  .app-topbar{height:68px;padding:0 20px}
  .sidebar-toggle{display:inline-flex}
  .icon-button.sidebar-close{display:flex;position:absolute;right:10px;top:10px;width:36px;height:36px;min-width:44px;min-height:44px;background:#292929;border:0;color:#fff}
  .sidebar-brand{padding-top:22px}
  .app-main{padding:24px 20px 30px!important}
  .topbar-title{font-size:.78rem}
  .user-caption{display:none}
  .page-heading{gap:16px}
  .student-row{grid-template-columns:minmax(220px,1fr) minmax(280px,1fr)}
}
@media screen and (max-width:767px){
  h1{font-size:1.45rem}
  .app-topbar{padding:0 16px;gap:12px}
  .topbar-title .ui-icon{display:none}
  .topbar-title{font-size:.75rem;line-height:1.5;max-width:160px}
  .topbar-right{gap:8px}
  .topbar-right .preview-label{display:none}
  .user-avatar{width:34px;height:34px}
  .app-main{padding:22px 16px 28px!important}
  .page-heading{align-items:flex-start;flex-direction:column;margin-bottom:20px;gap:16px}
  .page-description{font-size:.8rem}
  .term-filter{width:100%;justify-content:space-between}
  .term-select{min-width:0;max-width:220px}
  .filter-bar{gap:12px;padding:16px}
  .filter-bar>div{min-width:calc(50% - 6px);flex:1}
  .filter-bar>.btn{flex:1}
  .filter-bar>.ms-lg-auto{width:100%}
  .stat-grid{padding:16px 0;margin-top:16px}
  .stat-card{padding:0 12px}
  .stat-card>span{font-size:.75rem;min-height:34px}
  .stat-card>strong{font-size:1.6rem}
  .stat-card small{font-size:.75rem;line-height:1.6}
  .stat-card .stat-total{font-size:.82rem}
  .panel-card,.help-card{padding:18px 16px}
  .section-heading{align-items:flex-start;gap:12px}
  .section-heading .btn{flex-shrink:0;max-width:132px;font-size:.75rem}
  .app-table th{padding:10px 8px}
  .app-table th:nth-child(n+3):nth-child(-n+6),.app-table td:nth-child(n+3):nth-child(-n+6){display:none}
  .room-attendance-summary{display:block;color:#626262;font-size:.75rem;font-weight:400;line-height:1.8;white-space:normal;min-width:115px;max-width:135px;margin-top:4px}
  .app-table td:first-child{white-space:nowrap}
  .app-table td{padding:14px 8px}
  .student-row{grid-template-columns:1fr;gap:12px;padding:18px 0}
  .student-identity{gap:10px}
  .student-name{font-size:.82rem}
  .student-status{font-size:.75rem}
  .student-actions{grid-template-columns:repeat(4,minmax(0,1fr))}
  .student-note{margin:0}
  .save-row{align-items:stretch;flex-direction:column-reverse;gap:12px}
  .save-row .btn{width:100%}
  .roster-heading{gap:12px}
  .roster-heading h2{font-size:.98rem}
  .report-toolbar{align-items:stretch;flex-direction:column}
  .report-toolbar>.d-flex{flex-wrap:wrap}
  .report-toolbar>.d-flex>.btn{flex:1}
  .report-page{padding:20px 12px}
  .report-page .report-table:not(.individual-report-table){min-width:860px}
  .report-header{grid-template-columns:minmax(0,1fr);gap:12px;text-align:center;padding-bottom:16px;margin-bottom:16px}
  .report-header>img{width:160px;max-height:72px}
  .report-header h2{font-size:1.08rem}
  .report-approval-header{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .report-title-panel{grid-column:1/-1}
  .report-signer{min-height:150px}
  .report-table{font-size:.75rem}
  .admin-tabs{flex-wrap:nowrap!important;overflow:auto;margin-right:-16px;padding-right:16px;scrollbar-width:thin}
  .admin-tabs .nav-link{white-space:nowrap;font-size:.77rem}
  .admin-form-card{padding:18px 16px}
  .login-card{padding:28px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print{
  body{background:#fff!important;color:#111}
  .app-sidebar,.app-topbar,.sidebar-scrim,.page-heading,.no-print,.filter-bar,.preview-footer,.skip-link{display:none!important}
  .app-workspace{margin-left:0!important}
  .app-main{max-width:none!important;padding:0!important;margin:0!important}
}
