:root{--primary:#2563eb;--primary-dark:#1d4ed8;--ink:#0f172a;--muted:#475569;--line:#dce6f5;--canvas:#f6f9fe;--white:#fff;--soft:#eaf2ff}
*{box-sizing:border-box}body{margin:0;color:var(--ink);font-family:var(--ui-font-family,'Poppins',system-ui,sans-serif);font-size:var(--ui-type-body,14px);line-height:var(--ui-line-body,1.65)}a{color:inherit;text-decoration:none}button,input{font:inherit}button{cursor:pointer}button,a,input,[tabindex="0"]{outline-offset:4px}:focus-visible{outline:3px solid var(--primary)}[hidden]{display:none!important}.icon{width:22px;height:22px;flex-shrink:0}.muted{color:var(--muted)}p,h1,h2,h3{margin:0}h1{font-size:30px;font-weight:600;line-height:1.3;letter-spacing:-.025em}h2{font-size:17px;font-weight:600;line-height:1.5}h3{font-size:14px;font-weight:600;line-height:1.5}small{font-size:12px}.skip-link{position:fixed;top:-80px;left:16px;z-index:100;background:var(--white);padding:12px 20px;border:2px solid var(--primary);border-radius:8px}.skip-link:focus{top:12px}.brand{display:flex;align-items:center;gap:12px}.brand-mark{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:var(--primary);color:white;box-shadow:0 4px 12px #2563eb26}.brand-mark .icon{width:28px;height:28px}.brand strong{display:block;font-weight:800;letter-spacing:-.5px;font-size:16px}.brand small{display:block;color:var(--muted);letter-spacing:1.3px;font-size:12px}.badge{display:inline-flex;align-items:center;white-space:nowrap;background:var(--soft);color:var(--primary-dark);border:1px solid #c7dcff;padding:6px 12px;border-radius:30px;font-size:12px;font-weight:700}.neutral{background:#eef2f7;color:#475569;border-color:#d8e1ec}.icon-button{width:38px;height:38px;border:1px solid var(--line);border-radius:10px;background:white;display:grid;place-items:center;color:var(--ink)}
.login-page{background:radial-gradient(ellipse at 0 0,#e5efff 0,transparent 48%),radial-gradient(ellipse at 100% 100%,#e0ebff 0,transparent 46%),#f6f9fe;min-height:100vh}.login-shell{max-width:1320px;min-height:100vh;margin:auto;padding:36px 48px 20px;display:flex;flex-direction:column}.login-header{display:flex;align-items:center;justify-content:space-between;gap:20px}.login-main{display:grid;grid-template-columns:1.25fr 1fr;gap:72px;align-items:center;flex:1;padding:70px 0}.eyebrow{display:inline-flex;align-items:center;gap:9px;color:var(--primary-dark);font-size:12px;font-weight:700;background:#fff;padding:7px 14px;border:1px solid #c9ddff;border-radius:30px}.small-dot{width:6px;height:6px;background:var(--primary);border-radius:50%}.login-intro h1{font-size:clamp(36px,4vw,54px);font-weight:800;letter-spacing:-.025em;line-height:1.18;margin:24px 0}.login-intro h1 span{color:var(--primary)}.login-intro>p{font-size:16px;color:var(--muted);max-width:520px;line-height:1.9}.intro-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:28px}.intro-tags span{background:white;border:1px solid var(--line);border-radius:8px;padding:6px 10px;font-size:12px;font-weight:600}.school-values{display:flex;gap:20px;border-top:1px solid #dce6f5;margin-top:38px;padding-top:20px;font-size:12px;color:var(--muted)}.login-card{background:white;border:1px solid #dce6f5;border-radius:24px;padding:34px;box-shadow:0 20px 65px -30px #2563eb26}.card-symbol{display:grid;place-items:center;background:var(--soft);color:var(--primary);width:44px;height:44px;border-radius:12px;margin-bottom:20px}.login-card h2{font-size:25px;letter-spacing:-.6px}.login-card>p{font-size:12px;margin-top:6px}.notice{display:flex;align-items:flex-start;gap:10px;background:#eff6ff;border:1px solid #cde0ff;border-radius:12px;padding:12px;margin:22px 0;color:#1e40af;font-size:12px}.notice .icon{width:18px;height:18px}.notice strong{display:block;font-size:12px}.login-card label{display:block;font-weight:600;font-size:12px;margin:17px 0 8px}.input-wrap{display:flex;align-items:center;gap:10px;border:1px solid #cbd7eb;border-radius:12px;padding:0 14px;background:#f8fafe}.input-wrap .icon{color:#64748b;width:19px;height:19px}.input-wrap:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px #2563eb1a;background:#eaf2ff}.input-wrap input{width:100%;min-width:0;border:0;background:transparent;padding:14px 0;outline:none;font-size:13px;color:var(--ink)}.input-wrap:has(input:focus-visible){outline:2px solid var(--primary)}input::placeholder{color:var(--ui-supporting,#475569);opacity:1}.primary-button{display:flex;justify-content:center;align-items:center;gap:10px;width:100%;padding:12px 20px;border:0;border-radius:10px;background:var(--primary);color:white;font-weight:600;margin-top:25px;box-shadow:0 1px 2px rgba(37,99,235,.18)}.primary-button:hover{background:var(--primary-dark)}.primary-button .icon{width:18px}.login-card .login-footnote{margin-top:18px;text-align:center;font-size:12px;color:var(--muted)}.field-error{font-size:12px;color:#b32323;margin-top:6px}.form-feedback{padding:10px 12px;border-radius:8px;background:#fff6e6;color:#765214;font-size:12px;margin-bottom:14px}.login-footer{border-top:1px solid #dce6f5;padding-top:16px;display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:12px}
.dashboard-page{background:var(--canvas)}.sidebar{position:fixed;top:0;bottom:0;left:0;width:264px;background:linear-gradient(180deg,#eef4ff 0%,#e5efff 100%);border-right:1px solid #d5e2f7;padding:24px 16px;display:flex;flex-direction:column;z-index:30;overflow-y:auto}.sidebar-brand{display:flex;align-items:center;gap:10px;padding:0 6px 24px}.sidebar .brand-mark{width:38px;height:38px;border-radius:11px}.sidebar .brand strong{font-size:14px}.sidebar .brand small{font-size:12px}.nav-label{color:#475569;font-size:12px;letter-spacing:1.5px;font-weight:700;margin:14px 12px 12px}.nav-item{display:flex;align-items:center;gap:12px;border-radius:10px;padding:11px 12px;color:#1e293b;font-size:12px;font-weight:600;margin-bottom:4px;line-height:1.5}.nav-item .icon{width:18px;height:18px}.nav-item.active{background:#fff;color:var(--primary-dark);box-shadow:0 3px 10px -4px #2563eb26}.nav-item.unavailable{color:#64748b;cursor:default}.sidebar-note{margin-top:auto;padding:18px 12px 0;border-top:1px solid #d5e2f7;display:flex;gap:9px;color:#475569;font-size:12px}.sidebar-note .icon{width:17px}.sidebar-note strong{display:block;color:#0f172a;margin-bottom:3px}.dashboard-shell{margin-left:264px}.topbar{height:74px;background:white;border-bottom:1px solid #e2eaf6;padding:0 32px;display:flex;justify-content:space-between;align-items:center;gap:15px}.topbar-title{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:12px}.topbar-title strong{color:#0f172a;font-weight:600}.breadcrumb-divider{color:#94a3b8;margin:0 10px}.user-header{display:flex;align-items:center;gap:12px}.avatar{display:grid;place-items:center;background:#eaf2ff;color:#2563eb;width:36px;height:36px;border-radius:50%}.avatar .icon{width:18px}.user-caption strong{display:block;font-size:12px;font-weight:600}.user-caption small{color:var(--muted);font-size:12px}.dashboard-content{max-width:1600px;margin:auto;padding:30px 32px 20px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.overline{font-size:12px;color:var(--primary);letter-spacing:1.4px;font-weight:700}.page-heading h1{margin:7px 0 8px}.page-heading p{font-size:12px}.period-label{display:flex;align-items:center;gap:8px;background:white;border:1px solid var(--line);padding:9px 12px;border-radius:10px;font-size:12px;color:var(--muted);white-space:nowrap}.period-label .icon{width:16px;height:16px}.preview-notice{display:flex;align-items:center;gap:12px;padding:13px 16px;background:#eff6ff;border:1px solid #cde0ff;border-radius:12px;color:#1e40af;margin-bottom:24px;font-size:12px}.preview-notice strong{color:#1e3a8a}.preview-notice .icon{width:19px;height:19px}.summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.summary-card{background:white;border:1px solid #e2eaf6;border-radius:16px;padding:20px;box-shadow:0 1px 3px rgba(15,23,42,.04)}.metric-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;margin-bottom:14px;background:#f8fbff;border:1px solid #dce6f5;color:#2563eb}.blue,.green,.amber,.purple{background:#f8fbff;border:1px solid #dce6f5;color:#2563eb}.summary-card h2{font-size:12px;color:var(--muted);font-weight:500}.metric-empty{font-size:17px;letter-spacing:-.5px;font-weight:700;margin:7px 0}.summary-card>p.muted{font-size:12px;line-height:1.6}.content-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:22px;margin-bottom:24px}.panel{background:white;border:1px solid #e2eaf6;border-radius:16px;min-width:0;overflow:hidden;box-shadow:0 1px 3px rgba(15,23,42,.04)}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:22px 22px 18px}.panel-heading h2{font-size:14px}.panel-heading p{font-size:12px;margin-top:4px}.panel-heading .badge{font-size:12px;padding:5px 9px}.compact{width:34px;height:34px;margin:0}.compact .icon{width:18px}.table-scroll{overflow-x:auto}.table-scroll table{width:100%;border-collapse:collapse;min-width:420px}th{text-align:left;background:#f6f9fe;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px 18px;color:#334155;font-size:12px;font-weight:600}td{padding:0}.empty-state{text-align:center;padding:36px 20px;max-width:400px;margin:auto}.empty-icon{display:grid;place-items:center;width:36px;height:36px;background:transparent;border:0;color:#94a3b8;margin:0 auto 10px}.empty-state h3{font-size:12px;color:#334155}.empty-state p{font-size:12px;color:#64748b;line-height:1.8;max-width:300px;margin:7px auto 0}.learning-empty{display:flex;align-items:center;gap:18px;border-top:1px solid var(--line);padding:24px}.learning-empty .empty-icon{margin:0;flex-shrink:0}.learning-empty h3{font-size:12px;color:#334155}.learning-empty p{font-size:12px;margin-top:5px}.dashboard-footer{display:flex;justify-content:space-between;gap:12px;color:#64748b;font-size:12px;padding-top:26px}.open-menu,.close-menu{display:none}.sidebar-backdrop{position:fixed;inset:0;border:0;background:#0f172a80;z-index:20}.menu-open{overflow:hidden}
@media(min-width:901px) and (max-width:1150px){.sidebar{width:240px}.dashboard-shell{margin-left:240px}.topbar{padding:0 24px}.dashboard-content{padding:24px}.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.content-grid{grid-template-columns:1fr}.user-caption{display:none}}
@media(max-width:1000px){.login-shell{padding:28px 30px 18px}.login-main{gap:32px}.login-card{padding:28px}.login-intro h1{font-size:38px}.login-intro>p{font-size:14px}}
@media (min-width: 641px) and (max-width: 900px) {.sidebar{transform:translateX(-100%);transition:transform .18s ease;width:280px;max-width:calc(100vw - 36px)}.sidebar.is-open{transform:translateX(0)}.dashboard-shell{margin-left:0}.open-menu,.close-menu{display:grid}.sidebar-brand{justify-content:space-between;gap:6px}.sidebar-brand .brand{gap:8px}.close-menu{width:30px;height:30px;flex-shrink:0}.topbar{padding:0 20px;height:72px}.user-caption{display:none}.dashboard-content{padding:26px 20px}.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.content-grid{grid-template-columns:1fr}.login-header>.badge{display:none}.login-main{grid-template-columns:1fr;gap:34px;padding:42px 0;max-width:580px;margin:auto}.login-intro h1{font-size:40px}.login-intro h1 br:nth-of-type(2){display:none}.school-values{margin-top:24px}.login-card{width:100%}.login-footer{font-size:12px}}
@media (max-width: 640px) {.sidebar{transform:translateX(-100%);transition:transform .18s ease;width:280px;max-width:calc(100vw - 36px)}.sidebar.is-open{transform:translateX(0)}.dashboard-shell{margin-left:0}.open-menu,.close-menu{display:grid}.sidebar-brand{justify-content:space-between;gap:6px}.sidebar-brand .brand{gap:8px}.close-menu{width:30px;height:30px;flex-shrink:0}.topbar{padding:0 20px;height:72px}.user-caption{display:none}.dashboard-content{padding:26px 20px}.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.content-grid{grid-template-columns:1fr}.login-header>.badge{display:none}.login-main{grid-template-columns:1fr;gap:34px;padding:42px 0;max-width:580px;margin:auto}.login-intro h1{font-size:40px}.login-intro h1 br:nth-of-type(2){display:none}.school-values{margin-top:24px}.login-card{width:100%}.login-footer{font-size:12px}}
@media(max-width:480px){.login-shell{padding:22px 20px 18px}.login-intro h1{font-size:34px;letter-spacing:-.025em;margin:20px 0}.login-intro>p{font-size:13px}.eyebrow{font-size:12px}.school-values{gap:16px;font-size:12px}.login-card{padding:24px;border-radius:20px}.login-footer{flex-direction:column;gap:4px}.topbar{padding:0 16px}.topbar-title{font-size:12px}.breadcrumb-divider{margin:0 5px}.user-header{gap:8px}.user-header .badge{font-size:12px;padding:5px 8px}.avatar{width:30px;height:30px}.dashboard-content{padding:24px 16px}.page-heading{align-items:flex-start;flex-direction:column;gap:14px;margin-bottom:18px}.page-heading h1{font-size:28px}.preview-notice{align-items:flex-start;padding:12px;font-size:12px}.summary-grid{gap:12px;margin-bottom:18px}.summary-card{padding:16px}.metric-empty{font-size:15px}.metric-icon{width:34px;height:34px;margin-bottom:12px}.summary-card>p.muted{font-size:12px}.content-grid{gap:18px;margin-bottom:18px}.panel-heading{padding:18px 16px}.panel-heading h2{font-size:13px}.panel-heading p{font-size:12px}.learning-empty{padding:20px 16px;align-items:flex-start;gap:12px}.dashboard-footer{flex-direction:column;gap:3px}}
.database-status{position:fixed;right:16px;bottom:16px;z-index:15;display:flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid;border-radius:12px;font-size:12px;font-weight:600;box-shadow:0 4px 16px #131b2e12;max-width:calc(100vw - 32px)}.database-status.is-connected{color:#176342;background:#f0fcf5;border-color:#bce7cf}.database-status.is-disconnected{color:#a12828;background:#fff4f4;border-color:#f3c8c8}.database-status-dot{width:7px;height:7px;border-radius:50%;background:currentColor;flex-shrink:0}.login-footer,.dashboard-footer{padding-bottom:54px}
.input-help{font-size:12px;color:var(--muted);margin-top:6px}.secondary-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid #cbd7eb;background:white;border-radius:10px;padding:8px 12px;font-size:12px;font-weight:600;color:var(--ink);white-space:nowrap}.secondary-button:hover{background:#eff5ff;border-color:#7eaaf7;color:var(--primary-dark)}.inline-button{width:auto;margin:0;display:inline-flex;font-size:12px}.account-form-panel{padding:24px;max-width:780px}.account-form>label{display:block;margin:18px 0 8px;font-weight:600;font-size:12px}.account-form>input,.account-form>select{width:100%;border:1px solid var(--line);padding:12px;border-radius:10px;color:var(--ink);background:#fbfcff;font:inherit}.account-form fieldset{margin:24px 0;border:1px solid var(--line);border-radius:12px;padding:16px}.account-form legend{padding:0 6px;font-size:12px;font-weight:600}.role-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}.role-option{display:flex;align-items:center;gap:8px;font-size:12px}.role-option input{accent-color:var(--primary);width:16px;height:16px}.form-actions{display:flex;gap:12px}.account-pagination{padding:16px}.pagination{display:flex;justify-content:space-between;gap:14px;font-size:12px}.pagination a,.table-link{color:var(--primary-dark);font-weight:600}.role-badge{margin:3px}.accounts-panel td{padding:14px 18px;border-bottom:1px solid var(--line);font-size:12px}.user-caption{max-width:280px}.user-caption small{display:block;overflow-wrap:anywhere}.user-header{min-width:0}.user-header form{flex-shrink:0}@media(max-width:480px){.role-options{grid-template-columns:1fr}.account-form-panel{padding:18px}.pagination{font-size:12px;gap:8px}}
.user-caption strong,.user-caption small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.master-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}.selected-tab,.master-tabs>a[aria-current="page"]{background:var(--soft);color:var(--primary-dark);border-color:var(--primary)}
nav.master-tabs:has(> a + a){display:inline-flex;flex-wrap:wrap;gap:4px;max-width:100%;box-sizing:border-box;padding:4px;background:#eef4ff;border:1px solid #dce6f5;border-radius:12px;margin-bottom:20px}
nav.master-tabs:has(> a + a)>a{border:0;background:transparent;color:#475569;border-radius:9px;padding:8px 14px;font-weight:600;box-shadow:none}
nav.master-tabs:has(> a + a)>a:hover{background:rgba(255,255,255,.72);color:#0f172a;border:0}
nav.master-tabs:has(> a + a)>a.selected-tab,nav.master-tabs:has(> a + a)>a[aria-current="page"]{background:#fff;color:#1d4ed8;font-weight:700;border:0;box-shadow:0 1px 3px rgba(15,23,42,.08)}
.attendance-tabs-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.attendance-tabs-row>nav.master-tabs{margin-bottom:0}
.attendance-kiosk-shortcut{width:auto;margin:0;min-height:42px;padding:8px 14px;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.list-filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin:20px 0}.list-filters label{display:block;font-size:12px;font-weight:600;margin-bottom:6px}.list-filters input,.list-filters select{max-width:100%;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:white;font:inherit}.list-filters>div{max-width:100%}.table-action{display:inline-block;margin:4px 0 4px 8px}.form-actions{margin-top:24px}.detail-list dt{font-weight:600;font-size:12px;margin-top:16px}.detail-list dd{margin:6px 0 18px;overflow-wrap:anywhere}.account-form fieldset{max-height:420px;overflow:auto}.accounts-panel td{overflow-wrap:break-word;word-break:normal}.dashboard-content{padding-bottom:80px}select{font:inherit;outline-offset:4px}

/* Shared table scrolling & multi-column sizing: fit cleanly on desktop without horizontal scrollbars while allowing matrix sheets to scroll. */
.table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.table-scroll:focus-visible{outline:2px solid var(--primary);outline-offset:-3px}
.table-scroll > table{width:100%;min-width:0}
:where(.dashboard-content) .table-scroll > table th{vertical-align:middle;line-height:1.45;overflow-wrap:normal;word-break:normal}
:where(.dashboard-content) .table-scroll > table td{vertical-align:middle;line-height:1.5;overflow-wrap:break-word;word-break:normal}
:where(.dashboard-content) .table-scroll > table .table-sort-control,
main table thead th,
main table thead th .table-sort-control,
[class*="-kpi-label"],
.sm-online-card-label,
.report-metrics dt,
.eskul-report-metrics dt,
.attendance-recap-kpi dt,
.portal-split-metrics dt,
.hr-mobile-stats span{overflow-wrap:normal;word-break:normal}
:where(.dashboard-content) .table-scroll > table :is(.table-link, .badge, .primary-button, .secondary-button, button){word-break:normal;overflow-wrap:normal}
:where(.dashboard-content) .accounts-panel :is(th, td){padding:12px 10px}
@media(min-width:1400px){:where(.dashboard-content) .accounts-panel :is(th, td){padding:14px 14px}}
@media(max-width:600px){:where(.dashboard-content) .accounts-panel :is(th, td){padding:12px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.attendance-manual-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.attendance-manual-actions .primary-button{margin-top:0;width:auto;padding:10px 16px}.attendance-manual-actions button:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}
.page-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.announcement-body-input{display:block;width:100%;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fbfcff;color:var(--ink);font:inherit;resize:vertical}.announcement-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.account-form-panel+.account-form-panel{margin-top:20px}.form-actions{flex-wrap:wrap}

/* Demo login */
.login-feedback { margin-top: 18px; }
.demo-login { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.demo-login-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.demo-login-heading h3 { font-size: 15px; }
.demo-login-heading .badge { font-size: 12px; padding: 4px 9px; }
.demo-login > p { font-size: 12px; line-height: 1.7; }
.demo-login-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.demo-login-button { display: flex; align-items: center; gap: 10px; text-align: left; min-height: 66px; min-width: 0; padding: 12px; border: 1px solid #cbd7eb; border-radius: 12px; background: #f8fbff; color: var(--ink); transition: background .15s ease, border-color .15s ease; }
.demo-role-icon { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 9px; background: var(--soft); color: var(--primary-dark); }
.demo-role-icon .icon { width: 17px; height: 17px; }
.demo-role-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.demo-role-copy strong { font-size: 12px; font-weight: 600; line-height: 1.4; }
.demo-role-copy small { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.demo-role-arrow.icon { width: 14px; height: 14px; color: #8994aa; }
.demo-login-button:hover { border-color: var(--primary); background: var(--soft); }
.demo-login-button:hover .demo-role-arrow { color: var(--primary-dark); }
.demo-login-button:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.demo-login .demo-login-note { display: flex; align-items: flex-start; gap: 7px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.demo-login-note .icon { width: 14px; height: 14px; margin-top: 2px; }
@media (min-width: 901px) { .login-main { grid-template-columns: minmax(0, 1.1fr) minmax(420px, 1fr); gap: 48px; padding: 42px 0; } }
@media (max-width: 480px) { .demo-login-grid { grid-template-columns: 1fr; gap: 8px; } .demo-login-button { padding: 10px; gap: 8px; } .demo-role-arrow { display: none; } .demo-role-icon { width: 28px; height: 28px; } }


.login-page .database-status { position: static; width: fit-content; margin: 0; justify-self: end; }
.login-page .login-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px; padding-bottom: 16px; }
.login-credit { text-align: center; line-height: 1.7; }
@media (min-width: 641px) and (max-width: 900px) {
    .login-page .login-footer { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .login-page .database-status { justify-self: end; }
}
@media (max-width: 640px) {
    .login-page .login-footer { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .login-page .database-status { justify-self: end; }
}
@media (max-width: 480px) {
    .login-page .login-footer { gap: 8px; font-size: 12px; }
    .login-page .database-status { padding: 8px; gap: 5px; font-size: 12px; max-width: 100%; }
}


/* Learning monitoring */
.dashboard-page .dashboard-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px; padding-bottom: 16px; font-size: 12px; }
.dashboard-footer .database-status { position: static; margin: 0; justify-self: end; width: fit-content; }
@media (max-width: 600px) {
    .dashboard-page .dashboard-footer { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .dashboard-footer .database-status { padding: 8px; gap: 5px; font-size: 12px; max-width: 100%; }
}
.monitoring-filters { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; align-items: end; gap: 16px; padding: 20px; margin-bottom: 20px; }
.monitoring-filters > div { min-width: 0; }
.student-portal-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.student-portal-table { width: 100%; min-width: 0 !important; }
.dashboard-context { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 20px; margin-bottom: 20px; }
.dashboard-context label { font-size: 12px; font-weight: 600; }
.dashboard-context select { min-width: 0; max-width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.dashboard-context p { flex-basis: 100%; margin: 0; font-size: 12px; }
.dashboard-metric { font-weight: 700; font-size: 18px; margin: 12px 0; overflow-wrap: break-word; }
.dashboard-section { margin-bottom: 24px; scroll-margin-top: 20px; }
.dashboard-finance { padding: 20px; }
.dashboard-finance .summary-grid { margin-bottom: 0; }
.dashboard-filters { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media(max-width:600px) { .dashboard-context select { width: 100%; } .dashboard-filters { grid-template-columns: 1fr; } }
.parent-child-selector { padding: 20px; margin-bottom: 20px; }
.parent-child-selector h2 { margin-bottom: 12px; }
.parent-child-selector .student-portal-tabs a { white-space: normal; text-align: left; overflow-wrap: anywhere; max-width: 100%; }
.monitoring-filters label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 7px; }
.monitoring-filters select, .monitoring-filters input { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fbfcff; color: var(--ink); font-size: 12px; }
.monitoring-filter-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.monitoring-filter-actions .primary-button { padding: 10px 16px; }
.monitoring-table { min-width: 980px !important; }
.monitoring-table td { vertical-align: top; }
.monitoring-table .badge { margin-top: 6px; font-size: 12px; }
.monitoring-summary .table-link { display: inline-block; margin-top: 10px; font-size: 12px; }
@media (max-width: 1200px) { .monitoring-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .monitoring-filters { grid-template-columns: 1fr; padding: 16px; gap: 14px; } }


.monitoring-scroll-hint { display: none; font-size: 12px; padding: 0 16px 12px; }
@media (max-width: 1200px) { .monitoring-scroll-hint { display: block; } }


.backup-safety{margin-top:20px}.backup-safety .panel-heading p{margin-top:6px}.backup-safety .panel-heading{align-items:flex-start}

/* Language selector: ID / EN */
/* Backup schedule controls */
.backup-schedule-form label{display:block;margin:18px 0 8px;font-weight:600;font-size:12px}.backup-schedule-form input,.backup-schedule-form select{display:block;width:100%;max-width:100%;min-width:0;border:1px solid var(--line);padding:12px;border-radius:10px;color:var(--ink);background:#fbfcff;font:inherit}#saved-backups .panel-heading{flex-wrap:wrap}#saved-backups .panel-heading>div{flex:1 1 280px}#saved-backups .panel-heading>form{flex:0 0 auto}#saved-backups+.account-form-panel{margin-top:20px}
.language-switch{display:inline-flex;flex-shrink:0;align-items:center;border:1px solid #2563eb;border-radius:999px;overflow:hidden;background:#fff;height:34px}.language-switch form{display:flex;margin:0}.language-switch button{border:0;background:transparent;color:#2563eb;font-size:12px;font-weight:700;padding:0;width:38px;height:32px}.language-switch button.is-active{background:#2563eb;color:#fff}.language-switch button:hover{background:#eaf2ff}.language-switch button.is-active:hover{background:#1d4ed8}.language-switch button:focus-visible{outline-offset:-3px}.login-header-actions{display:flex;align-items:center;gap:16px}.topbar>.language-switch{order:3}.topbar-title{min-width:0;flex:1}.topbar-title>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (min-width: 641px) and (max-width: 900px) {.login-header-actions>.badge{display:none}}
@media (max-width: 640px) {.login-header-actions>.badge{display:none}}
@media(max-width:480px){.login-header{gap:10px}.login-header .brand{gap:8px}.login-header .brand-mark{width:38px;height:38px}.login-header .brand strong{font-size:14px}.login-header .brand small{font-size:12px}.topbar{gap:8px}.topbar .user-header .avatar{display:none}.topbar .secondary-button{padding:8px}.topbar-title{gap:6px}.topbar .language-switch button{width:34px}}

/* Keep login and dashboard content readable on narrow screens. */
.tap-dashboard-shortcut { margin-bottom: 24px; }
.tap-dashboard-shortcut .primary-button { white-space: normal; text-align: center; }
.employee-address { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; resize: vertical; }
.data-management-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.data-management-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.data-management-card h2 { font-size: 15px; }
.data-management-card > p { font-size: 12px; line-height: 1.7; text-align: justify; }
.data-management-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 10px; margin-top: auto; padding-top: 6px; }
.data-management-actions form { display: flex; margin: 0; }
.data-management-actions .primary-button, .data-management-actions .secondary-button { width: 100%; min-height: 52px; margin: 0; padding: 10px 12px; font-size: 12px; white-space: normal; text-align: center; }
.data-management-actions .data-danger-action { grid-column: 1 / -1; }
.data-management-actions .data-danger-action { color: #a12828; border-color: #f0cccc; background: #fff8f8; }
@media (min-width: 1201px) { .data-management-actions { min-height: 120px; grid-auto-rows: 52px; } }
@media (max-width: 1200px) { .data-management-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
    .data-management-card { padding: 16px; }
    .data-management-actions { display: grid; grid-template-columns: 1fr; }
    .data-management-actions a, .data-management-actions form, .data-management-actions button { width: 100%; }
}
.login-page .login-intro { text-align: center; }
.login-page .login-intro > p { margin-inline: auto; }
.login-page .intro-tags, .login-page .school-values { justify-content: center; }
.login-footer > *, .dashboard-footer > * { min-width: 0; overflow-wrap: anywhere; }
.login-main > *, .period-label { min-width: 0; overflow-wrap: anywhere; }
.summary-card, .summary-card > * { min-width: 0; overflow-wrap: break-word; }
.login-page .database-status > span:last-child, .dashboard-footer .database-status > span:last-child { min-width: 0; }
@media (max-width: 600px) {
    .dashboard-page .dashboard-content { padding-bottom: 24px; }
    .dashboard-page .dashboard-announcements-table { min-width: 0 !important; table-layout: fixed; }
    .dashboard-page .dashboard-announcements-table th,
    .dashboard-page .dashboard-announcements-table td { padding: 12px 10px; overflow-wrap: break-word; word-break: normal; }
    .dashboard-page .summary-card h3 { font-size: 13px; }
    .dashboard-page .dashboard-metric { font-size: 17px; }
    .period-label { flex-wrap: wrap; }
    .school-values { flex-wrap: wrap; }
}
@media (max-width: 360px) {
    .login-shell { padding-right: 16px; padding-left: 16px; }
    .login-card { padding: 18px; }
    .dashboard-page .summary-grid { grid-template-columns: 1fr; }
    .dashboard-page .topbar { padding-right: 10px; padding-left: 10px; gap: 6px; }
    .dashboard-page .topbar-title { gap: 4px; }
}

.dcc-page-heading { margin-bottom: 18px; }
.dcc-intro { margin-top: 10px; color: #526079; max-width: 70ch; line-height: 1.7; }
.dcc-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 24px; }
.dcc-toolbar a { margin: 0; }
.dcc-environment .panel { padding: clamp(18px, 3vw, 28px); }
.dcc-environment h2 { margin: 6px 0 12px; }
.dcc-environment p { color: #526079; font-size: 13px; line-height: 1.8; }
.dcc-environment p + p { margin-top: 8px; }
.server-readiness-panel { padding: clamp(18px, 3vw, 28px); overflow-wrap: anywhere; }
.dcc-section-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.dcc-section-heading h2 { font-size: 21px; letter-spacing: -.35px; }
.dcc-refresh { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.dcc-refresh button { margin: 0; }
.dcc-refresh [data-loading] { color: #526079; font-size: 13px; }
.dcc-context { margin-top: 14px; color: #526079; font-size: 13px; line-height: 1.75; }
.dcc-snapshot-note { margin-top: 18px; padding: 14px 16px; border: 1px solid #dce3f2; border-radius: 12px; background: #f7f9fd; color: #43516a; font-size: 13px; line-height: 1.75; }
.dcc-snapshot-note p + p { margin-top: 5px; }
.dcc-snapshot-note time { font-weight: 600; font-variant-numeric: tabular-nums; }
.server-readiness-panel .dcc-check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; margin-top: 24px; }
.server-readiness-panel .dcc-check-card { display: flex; flex-direction: column; padding: 20px; border: 1px solid #dce3f2; border-radius: 14px; box-shadow: none; background: #fff; }
.server-readiness-panel .dcc-check-card h3 { font-size: 14px; font-weight: 700; line-height: 1.55; color: #17253e; }
.dcc-status-row { margin-top: 12px; }
.dcc-status { display: inline-block; max-width: 100%; padding: 4px 10px; border: 1px solid #d9e1eb; border-radius: 8px; color: #43516a; background: #f3f6fa; font-size: 12px; line-height: 1.6; font-weight: 700; }
.dcc-check-card[data-status="healthy"] .dcc-status { color: #176045; border-color: #b6ddca; background: #edf8f1; }
.dcc-check-card[data-status="unknown"] .dcc-status { color: #795015; border-color: #e8d4a9; background: #fff8e9; }
.dcc-check-card[data-status="error"] .dcc-status, .dcc-check-card[data-status="blocked"] .dcc-status { color: #9b303a; border-color: #ecc3c8; background: #fff1f2; }
.dcc-check-card[data-stale="true"] .dcc-status { color: #526079; border-color: #d9e1eb; background: #f3f6fa; }
.server-readiness-panel .dcc-check-message { margin-top: 12px; margin-bottom: 18px; font-size: 13px; line-height: 1.8; color: #43516a; }
.dcc-check-time { display: block; margin-top: auto; padding-top: 12px; border-top: 1px solid #e7ecf4; color: #59677c; font-size: 12px; line-height: 1.7; }
.dcc-check-time time { display: block; margin-top: 3px; font-size: 12px; font-variant-numeric: tabular-nums; }
.dcc-detail-panel > h2 { margin-bottom: 16px; }
.dcc-detail-panel > p + p { margin-top: 10px; }
.dcc-detail-panel > a { margin-top: 16px; margin-right: 8px; }
.server-readiness-panel ul { padding-left: 22px; }
.server-readiness-panel li + li { margin-top: 8px; }
.server-readiness-panel button:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
@media (max-width: 600px) {
    .dcc-toolbar { display: grid; grid-template-columns: 1fr; }
    .dcc-toolbar a { width: 100%; text-align: center; }
    .server-readiness-panel .dcc-check-grid { grid-template-columns: minmax(0, 1fr); }
    .dcc-section-heading { align-items: flex-start; }
    .dcc-check-time time { font-size: 12px; }
}

/* Sidebar: calm soft ice-blue surface with compact desktop density so many navigation items fit at once. */
.sidebar{padding:12px 12px 10px;overflow:hidden;background:linear-gradient(180deg,#eef4ff 0%,#e5efff 100%);border-right:1px solid #d5e2f7;box-shadow:none}
.sidebar .sidebar-brand{flex-shrink:0;align-items:center;gap:8px;padding:7px 10px;margin:0 0 10px;border:1px solid #dce6f5;border-radius:12px;background:#fff;box-shadow:0 2px 8px -2px rgba(15,23,42,.06)}
.sidebar .sidebar-brand .brand{flex:1;min-width:0;min-height:36px;gap:9px;border-radius:8px}
.sidebar .sidebar-brand .brand-mark{flex:0 0 32px;width:32px;height:32px;border:0;border-radius:9px;background:linear-gradient(145deg,#3b82f6,#2563eb);box-shadow:0 2px 8px #2563eb24}
.sidebar .sidebar-brand .brand-mark .icon{width:18px;height:18px}
.sidebar .sidebar-brand-text{display:flex;flex-direction:column;min-width:0;gap:1px}
.sidebar .sidebar-brand-text strong{font-size:13px;line-height:1.25;font-weight:800;letter-spacing:-.2px;color:#0f172a;text-transform:none}
.sidebar .sidebar-brand-text small{font-size:11px;line-height:1.3;font-weight:600;letter-spacing:0;color:#2563eb;text-transform:none}
.sidebar .sidebar-brand .close-menu{background:#f6f9fe;border-color:#cbd7eb;border-radius:10px;color:#0f172a}
.sidebar>nav{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;margin:0 -4px 6px;padding:2px 6px 6px;scrollbar-width:thin;scrollbar-color:#c2d4ef transparent}
.sidebar .nav-label{flex-shrink:0;margin:0 8px 4px;font-size:11px;line-height:1.35;font-weight:700;letter-spacing:1px;color:#475569;text-transform:uppercase}
.sidebar .nav-item{color:#334155;text-transform:none}
.sidebar .nav-item.unavailable{color:#64748b}
.sidebar>nav>.nav-item{min-height:34px;padding:6px 10px;gap:9px;font-size:13px;font-weight:500;line-height:1.35;margin-bottom:1px;border:0;border-radius:9px;background:transparent;box-shadow:none}
.sidebar>nav>.nav-item>.icon{flex:0 0 16px;width:16px;height:16px;padding:0;background:transparent;border:0;border-radius:0;color:#475569}
.sidebar>nav>.nav-item:hover{background:rgba(255,255,255,.72);color:#0f172a}
.sidebar>nav>.nav-item:hover>.icon{color:#2563eb}
.sidebar>nav>.nav-item.active{background:#2563eb;border:0;box-shadow:0 2px 8px -2px rgba(37,99,235,.3);color:#fff;font-weight:600}
.sidebar>nav>.nav-item.active>.icon{background:transparent;border:0;color:#fff}
.sidebar>nav>.nav-item+.nav-group{margin-top:6px;padding-top:6px;border-top:1px solid #d5e2f7}
.sidebar .nav-group{margin:1px 0;border:0;border-radius:0;background:transparent;box-shadow:none}
.sidebar .nav-group-heading{display:flex;align-items:center;gap:9px;list-style:none;cursor:pointer;min-height:34px;padding:6px 10px;color:#334155;font-size:13px;font-weight:500;border:0;border-radius:9px;line-height:1.35;transition:background .15s,color .15s}
.sidebar .nav-group-heading::-webkit-details-marker{display:none}
.sidebar .nav-group-heading::marker{content:""}
.sidebar .nav-group-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 16px;width:16px;height:16px;background:transparent;color:#475569;border:0;border-radius:0}
.sidebar .nav-group-icon .icon{width:16px;height:16px}
.sidebar .nav-group-title{flex:1;min-width:0;text-transform:none}
.sidebar .nav-group-heading::after{content:"";width:6px;height:6px;border-right:1.75px solid currentColor;border-bottom:1.75px solid currentColor;transform:rotate(-45deg);flex-shrink:0;margin:0 2px;opacity:.75;transition:transform .15s}
.sidebar .nav-group[open]>.nav-group-heading::after{transform:rotate(45deg)}
.sidebar .nav-group-heading:hover{background:rgba(255,255,255,.72);color:#0f172a}
.sidebar .nav-group-heading:hover .nav-group-icon{color:#2563eb}
.sidebar .nav-group-heading:focus-visible{outline:2px solid #1d4ed8;outline-offset:2px}
.sidebar .nav-group[open]{margin:1px 0 4px;background:transparent;border:0;box-shadow:none}
.sidebar .nav-group[open]>.nav-group-heading{background:rgba(255,255,255,.55);color:#0f172a;font-weight:600;border:0}
.sidebar .nav-group.has-active{border:0;background:transparent}
.sidebar .nav-group.has-active>.nav-group-heading{background:rgba(37,99,235,.09);color:#1e40af;font-weight:600;border:0}
.sidebar .nav-group.has-active .nav-group-icon{color:#1e40af;background:transparent;border:0}
.sidebar .nav-group-items{margin:2px 0 3px 17px;padding:1px 0 1px 8px;border-left:1.5px solid #cbdcf7}
.sidebar .nav-group-items .nav-item{gap:8px;font-size:12.5px;font-weight:500;padding:5px 8px;margin-bottom:1px;min-height:32px;line-height:1.35;border-radius:8px;border:0;color:#334155}
.sidebar .nav-group-items .nav-item .icon{width:15px;height:15px;flex-shrink:0;color:#475569}
.sidebar .nav-group-items .nav-item:hover{background:rgba(255,255,255,.78);color:#1d4ed8}
.sidebar .nav-group-items .nav-item:hover .icon{color:#1d4ed8}
.sidebar .nav-group-items .nav-item.active{color:#fff;background:#2563eb;border:0;box-shadow:0 2px 8px -2px rgba(37,99,235,.3);font-weight:600}
.sidebar .nav-group-items .nav-item.active .icon{color:#fff}
.sidebar .nav-item:focus-visible{outline:2px solid #1d4ed8;outline-offset:2px}
.sidebar .sidebar-brand :is(a,button):focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.sidebar .sidebar-note{display:flex;flex-shrink:0;align-items:flex-start;gap:7px;margin:10px 4px 2px;padding:10px 6px 2px;border:0;border-top:1px solid #d5e2f7;border-radius:0;background:transparent;font-size:11.5px;line-height:1.45;color:#64748b;text-transform:none}
.sidebar .sidebar-note>.icon{flex:0 0 14px;width:14px;height:14px;margin-top:2px;color:#2563eb}
.sidebar .sidebar-note>div{min-width:0}
.sidebar .sidebar-note strong{margin:0;color:#334155;font-size:11.5px;line-height:1.4;text-transform:none}
.sidebar .sidebar-note p{margin:2px 0 0;overflow-wrap:break-word;text-transform:none}
.sidebar .sidebar-whatsapp-bar{flex-shrink:0;padding:6px 0 0;border-top:1px solid #d5e2f7}
.sidebar .sidebar-whatsapp-bar:empty{display:none}
.sidebar .sidebar-whatsapp-bar .sidebar-whatsapp-link{min-height:34px;padding:6px 10px;margin:0;gap:8px;font-size:12px;font-weight:600;line-height:1.3;border-radius:9px;background:rgba(255,255,255,.78);color:#0f172a;white-space:nowrap;overflow:hidden}
.sidebar .sidebar-whatsapp-bar .sidebar-whatsapp-link:hover{background:#fff;color:#1d4ed8}
.sidebar .sidebar-whatsapp-bar .sidebar-whatsapp-link .icon{flex:0 0 15px;width:15px;height:15px;color:#16a34a}
.sidebar .sidebar-whatsapp-bar .sidebar-whatsapp-link span{overflow:hidden;text-overflow:ellipsis}
@media(prefers-reduced-motion:reduce){.sidebar .nav-group-heading,.sidebar .nav-group-heading::after{transition:none}}

/* Login: authentic school campus backdrop with soft sky-azure scrim and clean right form panel. */
.login-page{background:#f6f9fe}
.login-shell{max-width:1280px;padding:30px 44px 22px}
.login-main{grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr);gap:64px;padding:52px 0;align-items:center}
.login-kicker{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#2563eb;margin:0 0 12px}
.login-intro h1{font-size:clamp(34px,3.6vw,46px);line-height:1.18;letter-spacing:-.025em;margin:0 0 16px}
.login-intro>p:not(.login-kicker){font-size:15px;line-height:1.85;color:#475569;max-width:460px}
.login-intro .eyebrow{font-size:12px;background:#fff;border-color:#c9ddff;color:#1d4ed8}
.login-card{border-color:#dce6f5;border-radius:20px;padding:34px;box-shadow:0 12px 32px -20px #0f172a1a}
.login-form-kicker{font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#2563eb;margin:0 0 6px}
.login-card h2{font-size:28px;font-weight:800;color:#0f172a;letter-spacing:-.025em}
.login-card>p.muted{font-size:13px;color:#475569;line-height:1.75}
.login-card label{font-size:13px;color:#0f172a;margin-top:20px}
.login-card .input-wrap{background:#f8fafe;border-color:#cbd7eb;min-height:50px}
.login-card .input-wrap:focus-within{background:#eaf2ff;border-color:var(--primary)}
.login-card .input-wrap input{font-size:14px;padding:14px 0}
.login-card .input-help{font-size:12px;color:#475569;line-height:1.65;margin-top:6px}
.login-card .primary-button{min-height:48px;font-size:14px;border-radius:12px;margin-top:24px}
.login-card .login-footnote{font-size:12px;line-height:1.75;color:#475569;margin-top:12px}
.login-card .login-footnote a{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;padding:10px 14px;border:1px solid #cbd7eb;border-radius:12px;color:#0f172a;font-size:13px;font-weight:600;background:#fff}
.login-card .login-footnote a:hover{background:#eff5ff;border-color:#93b4f5;color:#1d4ed8}
.login-footer{align-items:center;font-size:12px;color:#475569;line-height:1.8}
@media(min-width:901px){
    .login-page:has(.login-main){position:relative;background:#fff}
    .login-page:has(.login-main)::before{content:"";position:fixed;inset:0 auto 0 0;width:46%;background:linear-gradient(180deg,rgba(59,130,246,.34) 0%,rgba(37,99,235,.74) 55%,rgba(29,78,216,.88) 100%),url('images/campus-hero.webp') center/cover no-repeat;pointer-events:none;z-index:0}
    .login-page:has(.login-main) .login-shell{position:relative;z-index:1;max-width:none;width:100%;min-height:100vh;padding:0;display:grid;grid-template-rows:auto 1fr auto}
    .login-page:has(.login-main) .login-header{display:grid;grid-template-columns:46% 54%;align-items:start;gap:0}
    .login-page:has(.login-main) .login-header>.brand{justify-self:start;margin:0 0 0 36px;padding:14px 20px;border-radius:0 0 18px 18px;background:#fff;box-shadow:0 8px 24px #1d4ed826}
    .login-page:has(.login-main) .login-header>.login-header-actions{grid-column:2;justify-self:end;padding:24px 44px 0 24px}
    .login-page:has(.login-main) .login-main{grid-template-columns:46% 54%;gap:0;padding:24px 0 36px;align-items:start;width:100%}
    .login-page:has(.login-main) .login-intro{position:sticky;top:24vh;width:min(100%,520px);justify-self:center;padding:24px 40px 32px;text-align:left}
    .login-page:has(.login-main) .login-intro .login-kicker{color:rgba(255,255,255,.92)}
    .login-page:has(.login-main) .login-intro .eyebrow{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.35);color:#fff}
    .login-page:has(.login-main) .login-intro h1{color:#fff;text-shadow:0 2px 14px rgba(15,23,42,.22)}
    .login-page:has(.login-main) .login-intro>p:not(.login-kicker){color:rgba(255,255,255,.95);margin-inline:0}
    .login-page:has(.login-main) .login-card{width:min(calc(100% - 72px),460px);margin:0 auto;padding:12px 0 24px;border:0;border-radius:0;box-shadow:none;background:transparent}
    .login-page:has(.login-main) .login-footer{width:54%;margin-left:46%;padding:16px 40px 24px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 18px;border-top:1px solid #e6edf7}
}
@media(max-width:1000px) and (min-width:901px){.login-page:has(.login-main) .login-intro{padding:24px 28px 36px}.login-page:has(.login-main) .login-header>.brand{margin-left:24px}.login-page:has(.login-main) .login-header>.login-header-actions{padding-right:28px}.login-page:has(.login-main) .login-card{width:min(calc(100% - 48px),440px)}}
@media (min-width: 641px) and (max-width: 900px) {.login-shell{padding:22px 24px}.login-main{display:flex;flex-direction:column;gap:24px;max-width:560px;width:100%;padding:20px 0}.login-card{order:1;padding:28px;width:100%}.login-intro{order:0;width:100%;text-align:left;padding:28px 22px;border-radius:20px;background:linear-gradient(180deg,rgba(59,130,246,.38) 0%,rgba(29,78,216,.86) 100%),url('images/campus-hero.webp') center/cover no-repeat;color:#fff;box-shadow:0 12px 28px -16px #2563eb44}.login-intro .login-kicker{color:rgba(255,255,255,.92)}.login-intro .eyebrow{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.35);color:#fff}.login-intro h1{font-size:32px;margin:0 0 12px;letter-spacing:-.025em;color:#fff}.login-intro>p:not(.login-kicker){font-size:14px;max-width:none;color:rgba(255,255,255,.95);margin-inline:0}.login-footer{flex-wrap:wrap;justify-content:center;text-align:center;gap:14px;padding-top:20px}.login-footer>span:first-child{width:100%}}
@media (max-width: 640px) {.login-shell{padding:22px 24px}.login-main{display:flex;flex-direction:column;gap:24px;max-width:560px;width:100%;padding:20px 0}.login-card{order:1;padding:28px;width:100%}.login-intro{order:0;width:100%;text-align:left;padding:28px 22px;border-radius:20px;background:linear-gradient(180deg,rgba(59,130,246,.38) 0%,rgba(29,78,216,.86) 100%),url('images/campus-hero.webp') center/cover no-repeat;color:#fff;box-shadow:0 12px 28px -16px #2563eb44}.login-intro .login-kicker{color:rgba(255,255,255,.92)}.login-intro .eyebrow{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.35);color:#fff}.login-intro h1{font-size:32px;margin:0 0 12px;letter-spacing:-.025em;color:#fff}.login-intro>p:not(.login-kicker){font-size:14px;max-width:none;color:rgba(255,255,255,.95);margin-inline:0}.login-footer{flex-wrap:wrap;justify-content:center;text-align:center;gap:14px;padding-top:20px}.login-footer>span:first-child{width:100%}}
@media(max-width:480px){.login-shell{padding:18px 16px}.login-header{gap:12px}.login-header .brand{gap:9px}.login-header .brand strong{font-size:14px}.login-header .brand small{font-size:12px}.login-header .brand-mark{width:40px;height:40px}.login-card{padding:24px 20px;border-radius:18px}.login-card h2{font-size:24px}.login-intro{padding:24px 18px;border-radius:18px}.login-intro h1{font-size:28px}}
/* Student identity form: grouped fields without nested scrolling. */
.master-identity-form fieldset{max-height:none;overflow:visible}.master-identity-form .student-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.master-identity-form label{display:block;margin:12px 0 8px;font-weight:600;font-size:12px}.master-identity-form input,.master-identity-form select,.master-identity-form textarea{display:block;box-sizing:border-box;width:100%;min-width:0;border:1px solid var(--line);padding:12px;border-radius:10px;background:#fbfcff;color:var(--ink);font:inherit}.master-identity-form textarea{resize:vertical}.student-field-wide{grid-column:1/-1}.master-identity-form [aria-invalid=true]{border-color:#c62828}.master-identity-form .input-help{line-height:1.6}@media(max-width:600px){.master-identity-form .student-fields{grid-template-columns:1fr}}

.master-identity-form label.role-option{display:flex;align-items:flex-start;gap:10px}.master-identity-form .role-option input{width:16px;min-width:16px;height:16px;padding:0;margin-top:2px}.family-link-card{border:1px solid var(--line);border-radius:12px;padding:18px;margin:18px 0}.family-link-card h3{margin-top:0}.family-link-card .form-actions{margin:16px 0}
.import-preview-entry{margin-top:20px}.import-preview-entry h2{overflow-wrap:anywhere}.import-preview-entry table{width:100%;border-collapse:collapse;margin:16px 0}.import-preview-entry th,.import-preview-entry td{text-align:left;padding:10px;border-bottom:1px solid var(--line);overflow-wrap:anywhere;font-size:12px}.import-preview-entry summary{margin-top:18px;cursor:pointer;font-weight:600}.import-target-search{display:flex;gap:8px;align-items:center}.import-target-search input{flex:1}.import-preview-entry .input-help li{margin:6px 0}

/* Password visibility controls */
.account-password-wrap{position:relative}.account-password-wrap>input{width:100%;border:1px solid var(--line);padding:12px 54px 12px 12px;border-radius:10px;color:var(--ink);background:#ffffff;font:inherit}.password-toggle{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;padding:0;border:0;border-radius:8px;background:transparent;color:#475569;cursor:pointer}.account-password-wrap>.password-toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%)}.password-toggle:hover{background:#eaf2ff;color:var(--primary)}.password-toggle:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.password-toggle [hidden]{display:none}

.application-author { display: inline-block; white-space: nowrap; font-size: 14px; font-weight: 500; color: #1d4ed8; text-decoration: underline; text-underline-offset: 3px; }
.application-author:hover { text-decoration-thickness: 2px; }
.application-author:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }

/* Keep release credits centered and readable on compact screens. */
@media (min-width: 641px) and (max-width: 900px) {
    .login-page .login-footer,
    .dashboard-page .dashboard-footer {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        text-align: center;
        gap: 14px;
    }
    .login-page .login-footer .database-status,
    .dashboard-page .dashboard-footer .database-status { justify-self: center; }
}
@media (max-width: 640px) {
    .login-page .login-footer,
    .dashboard-page .dashboard-footer {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        text-align: center;
        gap: 14px;
    }
    .login-page .login-footer .database-status,
    .dashboard-page .dashboard-footer .database-status { justify-self: center; }
}

/* Account role review: scoped to account administration. */
.account-context{margin-bottom:20px}.account-context h2,.account-change-summary h2{font-size:17px;margin:0 0 12px}.account-context h3{font-size:14px;margin:20px 0 8px}.account-context p,.account-context dd,.account-change-summary p{font-size:13px;line-height:1.65;overflow-wrap:anywhere}.account-context dt{font-size:12px;font-weight:600}.account-context dd{margin:6px 0 14px}.account-change-summary{margin:22px 0;padding:18px;background:#f5f8ff;border:1px solid var(--line);border-radius:12px}.account-form .role-option[hidden]{display:none}.account-form input:focus-visible,.account-form select:focus-visible{outline:2px solid var(--primary);outline-offset:3px}

/* Kesiswaan: scoped to module content; existing screens keep their styles. */
.student-affairs{min-width:0;line-height:1.65}.student-affairs h1{font-size:27px;font-weight:500}.student-affairs h2{font-size:19px;font-weight:500;margin-bottom:12px}.student-affairs h3{font-size:15px;font-weight:500;margin:16px 0 8px}.student-affairs .panel{padding:22px;margin:18px 0}.student-affairs .panel>article+article{border-top:1px solid var(--line);margin-top:18px;padding-top:16px}.student-affairs .list-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end}.student-affairs .list-filters>div{min-width:0}.student-affairs .list-filters input,.student-affairs .list-filters select{width:100%;min-width:0}.student-affairs .account-form textarea{display:block;min-height:110px;resize:vertical;width:100%;padding:12px;border:1px solid var(--line);border-radius:10px;font:inherit;background:#fbfcff;color:var(--ink)}.student-affairs .account-form label,.student-affairs dt{font-weight:500}.student-affairs dd{margin:6px 0 16px;overflow-wrap:anywhere;white-space:pre-wrap}.student-affairs details{margin:14px 0;padding:12px;border:1px solid var(--line);border-radius:10px}.student-affairs summary{cursor:pointer;font-weight:500}.student-affairs td{padding:12px 16px;vertical-align:top;border-bottom:1px solid var(--line);font-size:12px;overflow-wrap:break-word;word-break:normal}.student-affairs th{font-size:12px;font-weight:500}.student-affairs .checkbox-row{display:flex;gap:10px;align-items:flex-start}.student-affairs .checkbox-row input{margin-top:4px;flex-shrink:0}.student-affairs a:focus-visible,.student-affairs button:focus-visible,.student-affairs input:focus-visible,.student-affairs select:focus-visible,.student-affairs textarea:focus-visible,.student-affairs summary:focus-visible,.student-affairs .table-scroll:focus-visible{outline:2px solid var(--primary);outline-offset:3px}.wk-totals{display:flex;gap:24px;flex-wrap:wrap;margin:12px 0}.wk-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}.student-affairs .wk-count{padding:16px;border:1px solid var(--line);border-radius:12px;background:#f6f9ff;min-width:0;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center}.student-affairs .wk-count h3{margin:0;font-size:13px;width:100%;text-align:center!important}.wk-count p{font-size:26px;font-weight:500;margin-top:8px;width:100%;text-align:center!important;text-align-last:center!important;font-variant-numeric:tabular-nums}.student-affairs .wk-count-cancelled{background:#f7f7f8;color:#526078}@media (min-width: 641px) and (max-width: 1024px) {.student-affairs .list-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.wk-counts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 640px) {.student-affairs .list-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.wk-counts{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.student-affairs .panel{padding:18px}.student-affairs .list-filters{grid-template-columns:1fr}.student-affairs h1{font-size:25px}.wk-counts{gap:10px}.wk-totals{gap:12px}.student-affairs .secondary-button,.student-affairs .primary-button{white-space:normal;text-align:center;max-width:100%}}

.panel.student-affairs{padding:22px;margin:18px 0}.panel.student-affairs>article+article{border-top:1px solid var(--line);margin-top:18px;padding-top:16px}@media(max-width:600px){.panel.student-affairs{padding:18px}}

/* Keep Kesiswaan actions reachable above the fixed attendance reminder. */
.dashboard-content>.student-affairs{margin-bottom:130px}
.student-affairs button,.student-affairs .form-actions{scroll-margin-bottom:130px}

/* Keep student identifiers and actions readable on narrow screens. */
.student-list-panel .table-scroll table{min-width:900px}
.student-list-panel th,.student-list-panel td{vertical-align:top}
.student-list-panel td{overflow-wrap:normal;word-break:normal}
.student-list-panel th:first-child,.student-list-panel td:first-child{width:56px;white-space:nowrap}
.student-list-panel td:nth-child(2),.student-list-panel td:nth-child(3){white-space:nowrap}
.student-list-panel th:nth-child(4),.student-list-panel td:nth-child(4){min-width:220px;max-width:320px;overflow-wrap:break-word}
.student-list-panel td:last-child,.student-list-panel td:last-child a{white-space:nowrap}
.student-list-panel td:last-child a+a{margin-left:12px}
.student-list-panel .table-scroll:focus-visible{outline:2px solid var(--primary);outline-offset:-3px}
.student-table-help{margin-bottom:10px}
@media(max-width:700px){
.student-list-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}
.student-list-filters>div{min-width:0}
.student-list-filters>div:first-child{grid-column:1/-1}
.student-list-filters input,.student-list-filters select{width:100%;min-width:0}
.student-list-panel th,.student-list-panel td{padding:12px}
.student-list-panel .account-pagination{padding:12px}
.student-list-panel .pagination{flex-wrap:wrap;align-items:center}
}
@media(max-width:380px){.student-list-filters{grid-template-columns:1fr}}

/* Student detail: readable identity summary and grouped information. */
.student-profile-detail{max-width:1160px;margin-inline:auto;min-width:0}
.student-profile-detail .page-heading{align-items:flex-start}
.student-profile-detail .page-heading h1{font-size:28px;font-weight:600}
.student-profile-summary{display:flex;align-items:center;gap:24px;padding:26px;margin-bottom:20px}
.student-profile-photo{object-fit:cover;border-radius:14px;flex-shrink:0;border:1px solid var(--line)}
.student-profile-avatar{width:80px;height:80px;flex-shrink:0;border-radius:20px;background:var(--soft);color:var(--primary-dark);display:grid;place-items:center}
.student-profile-avatar .icon{width:34px;height:34px}
.student-profile-intro{min-width:0;flex:1}
.student-profile-intro h2{font-size:23px;font-weight:600;line-height:1.4;margin:5px 0 10px;overflow-wrap:anywhere}
.student-profile-identifiers{display:flex;flex-wrap:wrap;gap:20px 40px;margin-top:18px}
.student-profile-identifiers dt,.student-profile-fields dt{font-size:12px;font-weight:500;color:var(--muted);margin-bottom:6px}
.student-profile-identifiers dd,.student-profile-fields dd{font-size:13px;line-height:1.7;margin:0;overflow-wrap:anywhere}
.student-profile-identifiers dd{font-variant-numeric:tabular-nums}
.student-profile-context{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.student-profile-section{padding:24px;margin-bottom:20px}
.student-profile-section>h2{font-size:16px;font-weight:600;margin:0 0 20px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.student-profile-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 32px}
.student-profile-fields>div{min-width:0}
.student-profile-field-wide{grid-column:1/-1}
.student-profile-field-wide dd{white-space:pre-line}
.student-profile-context .student-profile-fields{grid-template-columns:1fr}
.student-membership+ .student-membership{border-top:1px solid var(--line);margin-top:14px;padding-top:14px}
.student-membership h3{font-size:14px;font-weight:500;margin-bottom:5px}
.student-membership p{font-size:12px;line-height:1.8}
@media(max-width:700px){.student-profile-context{grid-template-columns:1fr;gap:0}.student-profile-summary{padding:20px;gap:16px}.student-profile-section{padding:20px}.student-profile-intro h2{font-size:20px}.student-profile-detail .page-heading{flex-direction:column}.student-profile-detail .page-actions{width:100%}.student-profile-detail .page-actions a{white-space:normal;text-align:center}.student-profile-identifiers{gap:12px 24px}}
@media(max-width:420px){.student-profile-summary{align-items:flex-start;flex-direction:column}.student-profile-fields{grid-template-columns:1fr}.student-profile-identifiers{flex-direction:column;gap:12px}.student-profile-detail .page-heading h1{font-size:25px}}

/* Own-profile form uses grouped fields rather than inline labels. */
.self-profile-panel{max-width:1100px;padding:28px}
.self-profile-panel>.notice{display:block;line-height:1.75;margin-top:18px}
.self-profile-panel>.notice strong{display:block;margin-bottom:6px;font-weight:600}
.self-profile-panel>.notice p+p{margin-top:8px}
.self-profile-form .self-profile-fields{border:0;padding:0;margin:0;min-width:0;max-height:none;overflow:visible}
.self-profile-group{margin-top:26px}
.self-profile-group>h2{font-size:17px;font-weight:600;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:18px}
.self-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 24px}
.self-profile-field{min-width:0}
.self-profile-field>label{display:block;font-size:12px;font-weight:500;margin-bottom:8px}
.self-profile-field>input,.self-profile-field>select,.self-profile-field>textarea{display:block;box-sizing:border-box;width:100%;min-width:0;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:#fbfcff;color:var(--ink);font:inherit;line-height:1.5}
.self-profile-field>textarea{resize:vertical;min-height:100px}
.self-profile-field>input[readonly]{background:#f0f3f8;color:#657188;cursor:default}
.self-profile-field>input:focus-visible,.self-profile-field>select:focus-visible,.self-profile-field>textarea:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.self-profile-wide{grid-column:1/-1}
.self-profile-panel .form-actions{margin-top:26px;padding-top:20px;border-top:1px solid var(--line)}
@media(max-width:600px){.self-profile-panel{padding:20px}.self-profile-grid{grid-template-columns:1fr;gap:18px}.self-profile-panel .form-actions{flex-direction:column}.self-profile-panel .form-actions a,.self-profile-panel .form-actions button{width:100%;white-space:normal;text-align:center}}

/* Attendance overview: scoped typography and summary spacing. */
.attendance-overview{font-size:14px;line-height:1.6}
.attendance-overview .panel{margin-top:20px;overflow:hidden}
.attendance-overview .panel>h2{margin:0;padding:20px 22px 14px;font-size:17px;font-weight:600;line-height:1.4}
.attendance-overview .attendance-summary{padding:22px}
.attendance-overview .attendance-summary>h2{padding:0;margin:0 0 6px}
.attendance-summary p{margin:0;font-size:13px}
.attendance-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}
.attendance-metrics>div{padding:14px 16px;background:#f7f9fd;border:1px solid var(--line);border-radius:12px}
.attendance-metrics dt{font-size:13px;color:var(--muted);font-weight:400}
.attendance-metrics dd{margin:6px 0 0;font-size:24px;font-weight:600;line-height:1.3;font-variant-numeric:tabular-nums}
.attendance-overview table th{font-size:12px;font-weight:600;padding:12px 18px;white-space:nowrap}
.attendance-overview table td{font-size:13px;line-height:1.6}
.attendance-overview .table-scroll table{min-width:640px}
.attendance-overview .empty-state h3{font-size:14px;font-weight:500}
.attendance-overview .empty-state p{font-size:13px}
@media(max-width:600px){.attendance-metrics{grid-template-columns:1fr;gap:10px}.attendance-metrics>div{display:flex;align-items:center;justify-content:space-between}.attendance-metrics dd{margin:0;font-size:22px}.attendance-overview .attendance-summary{padding:18px}.attendance-overview .panel>h2{padding:18px}}

/* Billing list typography and balance summary. */
.spp-overview{font-size:14px;line-height:1.6}
.spp-overview .panel{margin-top:20px;overflow:hidden}
.spp-overview .spp-summary{padding:22px}
.spp-summary h2{margin:0 0 6px;font-size:17px;font-weight:600;line-height:1.4}
.spp-summary p{margin:0;font-size:13px}
.spp-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0 0}
.spp-metrics>div{padding:16px;background:#f7f9fd;border:1px solid var(--line);border-radius:12px;min-width:0}
.spp-metrics dt{font-size:13px;font-weight:400;color:var(--muted)}
.spp-metrics dd{margin:8px 0 0;font-size:20px;font-weight:600;line-height:1.4;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.spp-overview table{width:100%;min-width:0}
.spp-overview table th{font-size:12px;font-weight:600;padding:14px 18px;white-space:nowrap}
.spp-overview table td{font-size:13px;line-height:1.6}
@media (min-width: 641px) and (max-width: 900px) {.spp-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 640px) {.spp-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.spp-overview .spp-summary{padding:18px}.spp-metrics{grid-template-columns:1fr;gap:10px}.spp-metrics>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.spp-metrics dd{margin:0;font-size:18px}}

/* Moodle connection: readable status and consistent section spacing. */
.moodle-overview{max-width:1100px;font-size:14px;line-height:1.7}
@media (min-width: 1025px) {
    .moodle-overview,
    .academic-grade-detail { max-width: 100%; }
}
.moodle-overview .account-form-panel{max-width:none;margin-top:20px;padding:24px}
.moodle-overview .panel h2{margin:0 0 12px;font-size:17px;line-height:1.4;font-weight:600}
.moodle-overview .panel p{margin:10px 0;font-size:14px}
.moodle-overview .panel p:last-child{margin-bottom:0}
.moodle-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:12px}
.moodle-overview .moodle-section-heading h2{margin:0}
.moodle-section-heading .badge{font-size:12px;font-weight:500;white-space:normal}
.moodle-status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px;margin:20px 0 0}
.moodle-status-grid>div{padding:14px 0;border-top:1px solid var(--line);min-width:0}
.moodle-status-grid dt{font-size:12px;color:var(--muted);font-weight:400}
.moodle-status-grid dd{margin:5px 0 0;font-size:14px;font-weight:500;overflow-wrap:anywhere}
.moodle-overview .panel form:not(.account-form){margin:18px 0}
.moodle-overview .panel ol{padding-left:22px;font-size:14px}
.moodle-overview .panel li+li{margin-top:10px}
@media(max-width:600px){.moodle-overview .account-form-panel{padding:20px}.moodle-status-grid{grid-template-columns:1fr}.moodle-section-heading{align-items:flex-start;flex-direction:column;gap:10px}}

/* Student workspace: responsive controls, content and readable scrollable tables. */
.student-workspace .dashboard-content{min-width:0}
.student-workspace .page-heading>div{min-width:0}
.student-workspace .page-heading h1,.student-workspace .announcement-text,.student-workspace .detail-list dd{overflow-wrap:anywhere}
.student-workspace .table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.student-workspace .table-scroll table{min-width:620px}
.student-workspace .table-scroll th,.student-workspace .table-scroll td{word-break:normal}
.student-workspace .dashboard-content img,.student-workspace .dashboard-content video{max-width:100%;height:auto}
.student-workspace .dashboard-content iframe{max-width:100%}
.student-workspace .form-actions{flex-wrap:wrap}
@media(max-width:600px){
.student-workspace .page-heading{align-items:flex-start;flex-direction:column;gap:12px}
.student-workspace .page-heading h1{font-size:26px;line-height:1.3}
.student-workspace .list-filters{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.student-workspace .list-filters>div{width:100%;min-width:0}
.student-workspace .list-filters input,.student-workspace .list-filters select{width:100%;min-width:0}
.student-workspace .dashboard-content input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.student-workspace .dashboard-content select,.student-workspace .dashboard-content textarea{font-size:16px;max-width:100%;min-height:44px}
.student-workspace .dashboard-content .secondary-button,.student-workspace .dashboard-content .primary-button{min-height:44px;white-space:normal;text-align:center}
.student-workspace .master-tabs,.student-workspace .student-portal-tabs{gap:8px;flex-wrap:wrap}
.student-workspace .master-tabs>a,.student-workspace .student-portal-tabs>a{max-width:100%;white-space:normal}
.student-workspace .account-form-panel{max-width:100%;padding:18px}
.student-workspace .account-pagination .pagination{flex-wrap:wrap;gap:12px}
}

.family-profile-panel{margin-top:22px;max-width:1100px}.family-profile-panel>h2{font-size:18px;font-weight:600;margin-bottom:20px}.family-profile-panel .self-profile-field>label{display:block;font-size:12px;font-weight:500;margin:0 0 8px}.family-profile-panel input,.family-profile-panel select{width:100%;min-width:0;font:inherit;border:1px solid var(--line);border-radius:10px;padding:11px 12px;background:#fbfcff}.family-profile-panel input[readonly]{background:#f2f4f8;color:var(--muted)}
@media(max-width:600px){.family-profile-panel .self-profile-grid{grid-template-columns:1fr}.family-profile-panel input,.family-profile-panel select{font-size:16px;min-height:44px}}

/* Administrator parent details: grouped identity and family relationships. */
.parent-profile-detail{max-width:1160px;font-size:14px;line-height:1.7}
.parent-profile-detail .page-heading>div{min-width:0}
.parent-profile-detail .page-heading h1{overflow-wrap:anywhere}
.parent-profile-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.parent-profile-actions .primary-button{margin-top:0}
.parent-profile-detail .account-form-panel{max-width:none;margin-top:22px;padding:24px}
.parent-profile-detail .panel>h2{font-size:18px;font-weight:600;margin-bottom:18px}
.parent-identity-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 32px;margin:0}
.parent-identity-grid>div{min-width:0;padding-bottom:14px;border-bottom:1px solid var(--line)}
.parent-identity-grid dt{margin:0;font-size:12px;font-weight:500;color:var(--muted)}
.parent-identity-grid dd{margin:7px 0 0;font-size:14px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.parent-account-summary{padding:16px 18px;background:#f7f9fd;border:1px solid var(--line);border-radius:12px;margin:22px 0 0}
.parent-account-summary dt{margin-top:0}.parent-account-summary dd{margin-bottom:0}
.parent-profile-detail .family-link-card{padding:20px;margin:18px 0;border:1px solid var(--line);border-radius:12px;background:#fbfcff}
.parent-profile-detail .family-link-card h3{font-size:15px;font-weight:600;margin-bottom:6px}
.parent-profile-detail .family-link-card p{margin:6px 0;font-size:13px}
.parent-link-heading{font-size:16px;font-weight:600;margin-top:26px;padding-top:22px;border-top:1px solid var(--line)}
.parent-profile-detail .form-actions{flex-wrap:wrap}
@media(max-width:650px){.parent-profile-detail .page-heading{align-items:flex-start;flex-direction:column}.parent-identity-grid{grid-template-columns:1fr;gap:16px}.parent-profile-detail .account-form-panel{padding:20px}.parent-profile-detail .family-link-card{padding:16px}.parent-profile-detail input:not([type=checkbox]):not([type=radio]),.parent-profile-detail select{font-size:16px;max-width:100%;min-width:0}.parent-profile-actions a{white-space:normal;text-align:center}.parent-profile-detail .page-heading h1{font-size:26px}}

.family-record{max-width:1100px}.family-account-header{padding-bottom:20px;margin-bottom:4px;border-bottom:1px solid var(--line)}.family-account-header h2{font-size:17px;font-weight:600;margin-bottom:8px}.family-account-header p{margin-top:6px;overflow-wrap:anywhere}.family-person-section{padding:24px 0;border-bottom:1px solid var(--line)}.family-person-section>h2{font-size:17px;font-weight:600;margin-bottom:20px}.family-person-section .self-profile-grid+.self-profile-grid{margin-top:22px}.family-record .account-form-panel{max-width:none}.family-record .page-heading>div{min-width:0}.family-record .page-heading p{overflow-wrap:anywhere}
@media(max-width:600px){.family-record .page-heading{flex-direction:column;align-items:flex-start}.family-record .page-heading h1{font-size:26px}.family-record .self-profile-grid{grid-template-columns:1fr}}

.parent-children-details{max-width:1160px;display:flex;flex-direction:column;gap:32px}.parent-child-profile{min-width:0}.parent-child-profile+.parent-child-profile{border-top:1px solid var(--line);padding-top:30px}.parent-child-profile .student-profile-context{grid-template-columns:1fr}.parent-child-profile .student-profile-section{margin-bottom:0}

.family-profile-panel .family-wa-option{display:flex;align-items:flex-start;gap:10px;margin:12px 0 0;font-size:12px;font-weight:400;line-height:1.6;cursor:pointer}.family-profile-panel .family-wa-option input{width:18px;height:18px;min-height:18px;flex:0 0 18px;padding:0;margin:2px 0 0;accent-color:var(--primary)}

.account-list-filters>div{flex:1 1 190px;min-width:0}.account-list-filters input,.account-list-filters select{width:100%;min-width:0}.account-list-filters>button{min-height:42px}@media(max-width:600px){.account-list-filters>div{flex-basis:100%}.account-list-filters input,.account-list-filters select{font-size:16px;min-height:44px}}

/* Teacher self-service profile: scoped to preserve other profile layouts. */
.teacher-self-profile{line-height:1.6}
.teacher-profile-header{display:flex;align-items:center;gap:16px;padding-bottom:24px;border-bottom:1px solid var(--line)}
.teacher-profile-header>div:last-child{min-width:0}.teacher-profile-header h2{font-size:22px;font-weight:600;line-height:1.35;margin:4px 0 6px;overflow-wrap:anywhere}.teacher-profile-header p{font-size:12px;overflow-wrap:anywhere}
.teacher-profile-avatar{display:flex;align-items:center;justify-content:center;width:60px;height:60px;flex-shrink:0;border-radius:16px;background:#eaf2ff;color:var(--primary);font-size:26px;font-weight:600}
.teacher-official{margin-top:24px;padding:20px;border:1px solid var(--line);border-radius:12px;background:#f8faff}.teacher-section-heading h2{font-size:15px;font-weight:600;margin-bottom:4px}.teacher-section-heading p{font-size:12px}
.teacher-official-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:18px 0 0}.teacher-official-grid>div{min-width:0}.teacher-official-grid dt{font-size:12px;font-weight:500;color:var(--muted)}.teacher-official-grid dd{margin:5px 0 0;font-size:14px;font-weight:500;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.teacher-self-profile .self-profile-group{margin-top:28px}.teacher-self-profile .self-profile-group>h2{font-size:16px}.teacher-self-profile .self-profile-field>input,.teacher-self-profile .self-profile-field>select,.teacher-self-profile .self-profile-field>textarea{font-size:14px;min-height:44px}
@media(max-width:600px){.teacher-profile-header{align-items:flex-start;gap:12px}.teacher-profile-avatar{width:46px;height:46px;border-radius:12px;font-size:22px}.teacher-profile-header h2{font-size:19px}.teacher-official{padding:16px}.teacher-official-grid{grid-template-columns:1fr;gap:14px}.teacher-self-profile .self-profile-field>input,.teacher-self-profile .self-profile-field>select,.teacher-self-profile .self-profile-field>textarea{font-size:16px}}

/* Read-only staff identity details. */
.staff-detail-page{max-width:100%;min-width:0;line-height:1.6}.staff-detail-page .page-heading>div{min-width:0}.staff-detail-page .page-heading h1{overflow-wrap:anywhere}.staff-detail-page .panel{margin-top:20px}
.staff-profile-summary{display:flex;align-items:center;gap:20px;padding:24px}.staff-profile-photo{object-fit:cover;border-radius:12px;flex-shrink:0}.staff-profile-initial{width:64px;height:64px;display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:16px;background:#eaf2ff;color:var(--primary);font-size:28px;font-weight:600}.staff-profile-summary-text{min-width:0}.staff-profile-summary-text h2{font-size:20px;line-height:1.4;font-weight:600;overflow-wrap:anywhere}.staff-profile-summary-text p{font-size:13px;margin:4px 0 10px;overflow-wrap:anywhere}
.staff-detail-sections{display:grid;gap:20px;margin-top:20px}.staff-detail-section{padding:24px;background:#fff;border:1px solid var(--line);border-radius:16px;min-width:0}.staff-detail-section>h2{font-size:16px;font-weight:600;margin:0 0 20px;padding-bottom:14px;border-bottom:1px solid var(--line)}.staff-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 28px;margin:0}.staff-detail-field{min-width:0}.staff-detail-field dt{font-size:12px;color:var(--muted);font-weight:500;margin:0 0 6px}.staff-detail-field dd{font-size:14px;line-height:1.65;color:var(--ink);margin:0;overflow-wrap:anywhere;white-space:pre-wrap;font-variant-numeric:tabular-nums}.staff-detail-wide{grid-column:1/-1}.staff-detail-actions{margin-top:24px}
@media(max-width:1000px){.staff-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.staff-detail-page .page-heading{flex-direction:column;align-items:stretch;gap:16px}.staff-detail-page .page-heading>a{text-align:center}.staff-profile-summary{padding:18px;gap:14px}.staff-profile-summary-text h2{font-size:18px}.staff-detail-section{padding:18px}.staff-detail-grid{grid-template-columns:1fr;gap:18px}.staff-detail-actions>a{width:100%;text-align:center}}

.master-delete-link,.master-delete-button{color:#b42318}.master-delete-button{border-color:#f4b4ad;background:#fff5f4}.master-delete-confirm{display:flex;align-items:flex-start;gap:10px;margin-top:20px;font-size:14px}.master-delete-confirm input{width:18px;height:18px;flex-shrink:0;margin-top:3px}

.master-row-actions{display:flex;align-items:center;flex-wrap:nowrap;gap:8px;width:max-content;max-width:none}.master-row-actions .master-action{flex:0 0 auto}.master-row-actions .master-action{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:7px 12px;border:1px solid transparent;border-radius:8px;font-size:12px;font-weight:600;line-height:1.4;text-decoration:none;white-space:nowrap}.master-row-actions .master-action-view{color:#175cd3;background:#eff8ff;border-color:#b2ddff}.master-row-actions .master-action-edit{color:#854a0e;background:#fffaeb;border-color:#fedf89}.master-row-actions .master-action-delete{color:#b42318;background:#fff1f0;border-color:#fecdca}.master-row-actions .master-action-view:hover{background:#d1e9ff}.master-row-actions .master-action-edit:hover{background:#fef0c7}.master-row-actions .master-action-delete:hover{background:#fee4e2}.master-row-actions .master-action:focus-visible{outline:2px solid var(--primary);outline-offset:3px}@media(max-width:600px){.master-row-actions .master-action{min-height:44px;padding:10px 12px}}

.employee-list-panel{min-width:0;max-width:100%}.employee-list-panel .table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}.employee-list-panel .table-scroll table{min-width:920px}.employee-list-panel th,.employee-list-panel td{vertical-align:middle}.employee-list-panel td:first-child,.employee-list-panel td:nth-child(5),.employee-list-panel td:nth-child(6){white-space:nowrap;overflow-wrap:normal}.employee-list-panel td:last-child{width:1%;white-space:nowrap}.employee-list-panel td:nth-child(2){min-width:160px}@media(max-width:600px){.employee-list-panel .table-scroll table{min-width:920px}}

.account-form .employee-account-fields{max-height:none;overflow:visible}.employee-role-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.account-form .employee-role-option{display:flex;gap:10px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fbfcff;font-size:13px;margin:0;min-width:0}.account-form .employee-role-option input{width:18px;height:18px;flex:0 0 auto;margin:0;padding:0}.employee-list-panel .table-scroll table{min-width:1120px}@media(max-width:800px){.employee-role-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.employee-role-grid{grid-template-columns:1fr}.employee-account-fields select{font-size:16px;min-height:44px}}

/* Backup and restore: scoped presentation, existing operations unchanged. */
.backup-workspace{max-width:100%;min-width:0;line-height:1.65}.backup-workspace .account-form-panel{max-width:none}.backup-workspace>.panel{margin-top:22px;padding:24px}.backup-workspace h2{font-size:18px;font-weight:600;line-height:1.4}.backup-workspace .panel>p{font-size:13px;margin-top:10px}.backup-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.backup-section-heading>div{min-width:0}.backup-section-heading p{font-size:13px;margin-top:6px}.backup-section-heading>.badge{flex-shrink:0;margin-top:2px}
.backup-status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:22px 0}.backup-status-grid>div{min-width:0;border:1px solid var(--line);border-radius:12px;background:#f8faff;padding:16px}.backup-status-grid dt{font-size:12px;font-weight:500;color:var(--muted);margin:0 0 8px}.backup-status-grid dd{margin:0;font-size:14px;font-weight:600;overflow-wrap:anywhere}.backup-workspace .notice{font-size:12px;line-height:1.7;padding:14px 16px}
.backup-workspace .backup-schedule-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 22px;margin-top:22px}.backup-workspace .backup-schedule-form>div{min-width:0}.backup-workspace .backup-schedule-form label{margin:0 0 8px;font-size:12px;font-weight:500}.backup-workspace .backup-schedule-form input,.backup-workspace .backup-schedule-form select{box-sizing:border-box;min-height:44px;font-size:14px}.backup-workspace .backup-schedule-form .form-actions{grid-column:1/-1;margin:0;padding-top:4px}.backup-workspace #backup-schedule>form+form{margin-top:14px}.backup-workspace .form-actions{margin-top:20px;gap:10px}.backup-workspace .backup-reset-panel{border-color:#fecaca;background:#fffafa}.backup-reset-panel .secondary-button{color:#b42318;border-color:#fecaca;margin-top:16px}.backup-workspace .panel-heading{gap:16px}.backup-workspace .table-scroll{max-width:100%;overflow-x:auto}.backup-workspace .table-scroll table{min-width:540px}.backup-workspace th,.backup-workspace td{font-size:12px;vertical-align:middle}.backup-workspace input[type=file]{box-sizing:border-box;max-width:100%;font-size:13px}.backup-workspace .panel>form:not(.backup-schedule-form){margin-top:16px}
@media(max-width:800px){.backup-status-grid{grid-template-columns:1fr;gap:10px}.backup-status-grid>div{padding:14px 16px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:center}.backup-status-grid dt{margin:0}}
@media(max-width:600px){.backup-workspace>.panel{padding:18px;margin-top:18px}.backup-workspace h2{font-size:17px}.backup-workspace .backup-schedule-form{grid-template-columns:1fr;gap:16px}.backup-workspace .backup-schedule-form input,.backup-workspace .backup-schedule-form select{font-size:16px}.backup-status-grid>div{display:block}.backup-status-grid dt{margin-bottom:6px}.backup-workspace .panel-heading{flex-direction:column;align-items:stretch}.backup-workspace #saved-backups .panel-heading>div,.backup-workspace #saved-backups .panel-heading>form{flex:0 1 auto}.backup-workspace .primary-button,.backup-workspace .secondary-button{max-width:100%;min-height:44px;white-space:normal;text-align:center}.backup-workspace .form-actions{flex-direction:column;align-items:stretch}.backup-workspace .form-actions>button{width:100%}}

.master-setup-grid{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:700px){.master-setup-grid{grid-template-columns:1fr}}

/* Wali Kelas management: responsive summaries, filters and row actions. */
.homeroom-management .page-actions,.homeroom-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.homeroom-management .page-actions a,.homeroom-actions a{white-space:nowrap}
.homeroom-management .panel-heading{padding:20px 22px 12px}
.homeroom-management .panel-heading h2{font-size:17px;margin:0 0 8px}
.homeroom-management .panel-heading p{margin:0;font-size:12px;line-height:1.6}
.homeroom-management .accounts-panel{margin-bottom:22px}
.homeroom-management .summary-card{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:4px}
.homeroom-management .summary-card h2{font-size:13px;line-height:1.5}
.homeroom-management .summary-card .dashboard-metric{font-size:28px;font-weight:700;margin:6px 0;font-variant-numeric:tabular-nums}
.homeroom-management td{vertical-align:top}
@media(max-width:760px){.homeroom-management .page-heading{align-items:flex-start;flex-direction:column}.homeroom-management .page-actions{width:100%}.homeroom-management .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.homeroom-management .list-filters>div{width:100%;min-width:0}.homeroom-management .list-filters input,.homeroom-management .list-filters select{width:100%;min-width:0;max-width:100%}.homeroom-management .summary-card{padding:16px}.homeroom-management .table-scroll{max-width:100%}}
@media(max-width:380px){.homeroom-management .summary-grid{grid-template-columns:1fr}.homeroom-management .page-actions a{width:100%;text-align:center;white-space:normal}}

/* Account editor: scoped layout, preserving role and password behavior. */
.account-editor{max-width:1100px;min-width:0}.account-editor .account-form-panel{max-width:none;padding:26px}.account-editor .account-section-heading{margin-bottom:22px}.account-editor .account-section-heading h2{font-size:18px;margin:0 0 8px}.account-editor .account-section-heading p{font-size:13px;line-height:1.7;margin:0}
.account-editor .account-context-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.account-editor .account-context-block{min-width:0;padding:18px;border:1px solid var(--line);border-radius:12px;background:#fbfcff}.account-editor .account-context-block h3{font-size:13px;margin:0 0 16px}.account-editor .account-field-caption{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}.account-editor .account-profile-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.account-editor .account-profile-row>div{min-width:0}.account-editor .account-profile-row strong{display:block;font-size:14px;overflow-wrap:anywhere}.account-editor .account-profile-row a{flex-shrink:0}.account-editor .account-current-roles{padding-top:14px;border-top:1px solid var(--line)}.account-editor .role-badge{margin:0 6px 6px 0}.account-editor .account-duty-list{padding-left:18px;margin:0;display:grid;gap:10px;font-size:13px;line-height:1.7}.account-editor .account-duty-empty strong{font-size:13px;font-weight:600}.account-editor .account-duty-empty p{font-size:12px;margin:6px 0 0}.account-editor .account-context-note{font-size:12px;color:var(--muted);margin:18px 0 0;padding-top:16px;border-top:1px solid var(--line)}
.account-editor .account-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.account-editor .account-field{min-width:0}.account-editor .account-field-wide{grid-column:1/-1}.account-editor .account-field>label{display:block;font-size:12px;font-weight:600;margin:0 0 8px}.account-editor .account-field>input,.account-editor .account-field>select{width:100%;min-width:0;border:1px solid var(--line);padding:12px;border-radius:10px;background:#fbfcff;color:var(--ink);font:inherit;min-height:46px}.account-editor .account-field .input-help{font-size:12px;line-height:1.65;margin:7px 0 0}.account-editor .account-password-wrap{width:100%;min-width:0}.account-editor .account-form fieldset{margin:26px 0;padding:18px}.account-editor .role-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.account-editor .role-option{padding:12px;border:1px solid var(--line);border-radius:10px;background:#fbfcff;line-height:1.5;min-height:46px}.account-editor .role-option input{flex-shrink:0;margin:0}.account-editor .role-option:has(input:checked){background:var(--soft);border-color:var(--primary)}.account-editor .account-change-summary{margin:22px 0}.account-editor .account-change-summary p{font-size:12px;margin:8px 0}.account-editor .account-change-summary [data-role-summary]{font-weight:600;color:var(--primary-dark)}.account-editor .form-actions{padding-top:18px;border-top:1px solid var(--line)}
@media(max-width:800px){.account-editor .role-options{grid-template-columns:repeat(2,minmax(0,1fr))}.account-editor .account-context-grid{grid-template-columns:1fr}}
@media(max-width:540px){.account-editor .account-form-panel{padding:18px}.account-editor .account-settings-grid{grid-template-columns:1fr;gap:20px}.account-editor .account-field-wide{grid-column:auto}.account-editor .account-profile-row{align-items:flex-start;flex-direction:column;gap:10px}.account-editor .role-options{grid-template-columns:1fr}.account-editor .account-field input,.account-editor .account-field select{font-size:16px}.account-editor .account-context-block{padding:15px}.account-editor .form-actions>*{flex:1 1 auto;justify-content:center}.account-editor .account-section-heading h2{font-size:17px}}

/* Readable live account review before saving. */
.account-editor .account-review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:20px 0}.account-editor .account-review-grid>div{min-width:0}.account-editor .account-review-grid dt{font-size:12px;color:var(--muted);font-weight:600;margin-bottom:8px}.account-editor .account-review-grid dd{margin:0;font-size:14px;font-weight:600;overflow-wrap:anywhere}.account-editor .account-review-roles{grid-column:1/-1}.account-editor [data-role-summary]{display:flex;flex-wrap:wrap;gap:8px}.account-editor .account-change-summary .account-review-note{border-top:1px solid var(--line);padding-top:14px;margin:0;line-height:1.7;color:var(--muted)}.account-editor .account-change-summary .account-review-intro{color:var(--muted);margin:0;line-height:1.7}
@media(max-width:540px){.account-editor .account-review-grid{grid-template-columns:1fr;gap:18px}.account-editor .account-review-roles{grid-column:auto}}

/* Guided curriculum setup. */
.academic-setup-flow{padding:24px;margin:22px 0;line-height:1.7}.academic-flow-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.academic-flow-heading h2{font-size:18px;margin:0 0 8px}.academic-flow-heading p,.academic-flow-context,.academic-flow-footer{font-size:12px;color:var(--muted)}.academic-flow-context{margin:12px 0 18px}.academic-flow-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.academic-flow-step{display:flex;gap:12px;padding:18px;border:1px solid var(--line);border-radius:12px;min-width:0;background:#fbfcff}.academic-flow-next{border-color:var(--primary);background:#eaf2ff}.academic-flow-number{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--soft);color:var(--primary-dark);font-size:13px;font-weight:700;flex-shrink:0}.academic-flow-content{min-width:0;flex:1}.academic-flow-step-title{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.academic-flow-step h3{font-size:14px;line-height:1.6;margin:0}.academic-flow-step p{font-size:12px;margin:10px 0;overflow-wrap:anywhere}.academic-flow-next-label{font-size:12px;color:var(--primary-dark);font-weight:600}.academic-flow-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:14px}.academic-flow-footer{border-top:1px solid var(--line);padding-top:16px;margin:20px 0 0}
@media (min-width: 641px) and (max-width: 900px) {.academic-flow-steps{grid-template-columns:1fr}}
@media (max-width: 640px) {.academic-flow-steps{grid-template-columns:1fr}}@media(max-width:540px){.academic-setup-flow{padding:18px}.academic-flow-heading{flex-direction:column}.academic-flow-step{padding:14px;gap:10px}.academic-flow-actions a{white-space:normal}.academic-flow-heading>.badge{white-space:normal;text-align:left}}

/* Persistent, searchable teacher selector; native select remains the no-JS fallback. */
.teacher-picker{position:relative;width:100%;min-width:0}.teacher-picker-control{display:flex;border:1px solid var(--line);border-radius:10px;background:#fbfcff;overflow:hidden}.teacher-picker-control:focus-within{outline:2px solid var(--primary);outline-offset:2px}.teacher-picker-control>input{width:100%;min-width:0;border:0;background:transparent;padding:12px;color:var(--ink);font:inherit;min-height:46px;outline:none}.teacher-picker-control>input:focus-visible{outline:none}.teacher-picker-toggle{flex:0 0 44px;border:0;border-left:1px solid var(--line);background:transparent;color:var(--ink);cursor:pointer;font-size:18px}.teacher-picker-toggle:focus-visible{outline:2px solid var(--primary);outline-offset:-3px}.teacher-picker-popup{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:20;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 28px #14244320;overflow:hidden}.teacher-picker-popup[hidden],.teacher-picker-empty[hidden]{display:none}.teacher-picker-list{max-height:280px;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}.teacher-picker-option{padding:12px 14px;font-size:13px;line-height:1.6;cursor:pointer;overflow-wrap:anywhere;min-height:44px;border-bottom:1px solid #f1f3f8}.teacher-picker-option:hover,.teacher-picker-option.is-active{background:var(--soft);color:var(--primary-dark)}.teacher-picker-option[aria-selected=true]{font-weight:600}.teacher-picker-empty{padding:14px;color:var(--muted);font-size:12px;margin:0}@media(max-width:540px){.teacher-picker-control>input{font-size:16px}.teacher-picker-list{max-height:220px}}

/* Monitoring adapts to its available panel width, including the sidebar. */
.learning-monitoring{min-width:0;max-width:100%}.learning-monitoring .page-heading>div{min-width:0}.learning-monitoring h1{overflow-wrap:anywhere}.learning-monitoring .monitoring-filters{grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr))}.learning-monitoring .monitoring-filter-actions{min-height:40px}.learning-monitoring .monitoring-filter-actions>*{min-height:40px}.learning-monitoring .monitoring-results{container:learning-results / inline-size;min-width:0}.learning-monitoring .table-scroll{max-width:100%;min-width:0}.learning-monitoring .monitoring-table{min-width:0!important;width:100%;table-layout:fixed}.learning-monitoring .monitoring-table th,.learning-monitoring .monitoring-table td{white-space:normal;overflow-wrap:break-word;word-break:normal;padding:14px 12px}.learning-monitoring .monitoring-table .badge{white-space:normal;max-width:100%;text-align:left}.learning-monitoring .monitoring-row-actions{display:flex;flex-direction:column;gap:8px}.learning-monitoring .table-link{white-space:normal}.learning-monitoring .monitoring-scroll-hint{display:none}.learning-monitoring .panel-heading{padding:22px;min-width:0}.learning-monitoring .panel-heading h2{font-size:16px;line-height:1.6;margin:0 0 6px}.learning-monitoring .panel-heading p{line-height:1.7}
@container learning-results (max-width:880px){
.learning-monitoring .monitoring-table,.learning-monitoring .monitoring-table tbody{display:block;width:100%}
.learning-monitoring .monitoring-table thead{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.learning-monitoring .monitoring-table tbody{display:grid;gap:16px;padding:16px}
.learning-monitoring .monitoring-table tbody tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}
.learning-monitoring .monitoring-table tbody td{display:block;min-width:0;padding:14px;border:0;border-bottom:1px solid var(--line);font-size:13px}
.learning-monitoring .monitoring-table tbody td::before{content:attr(data-label);display:block;font-size:12px;color:var(--muted);font-weight:600;line-height:1.5;margin-bottom:8px}
.learning-monitoring .monitoring-table tbody td:first-child{grid-column:1/-1;background:#f8faff}
.learning-monitoring .monitoring-table tbody td:last-child{grid-column:1/-1;border-bottom:0}
.learning-monitoring .monitoring-row-actions{flex-direction:row;flex-wrap:wrap;gap:10px 18px}
}
@container learning-results (max-width:540px){.learning-monitoring .monitoring-table tbody tr{grid-template-columns:repeat(2,minmax(0,1fr))}.learning-monitoring .monitoring-table tbody{padding:12px;gap:12px}.learning-monitoring .monitoring-table tbody td{padding:12px}}
@media(max-width:600px){.learning-monitoring .page-heading{flex-direction:column;align-items:flex-start}.learning-monitoring .monitoring-filters{grid-template-columns:1fr}.learning-monitoring .monitoring-filters select{font-size:16px;min-height:44px}.learning-monitoring .monitoring-filter-actions>*{flex:1;justify-content:center}.learning-monitoring .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.learning-monitoring .preview-notice{align-items:flex-start}.learning-monitoring .panel-heading{padding:18px}}
@supports not (container-type:inline-size){@media(max-width:1200px){
.learning-monitoring .monitoring-table,.learning-monitoring .monitoring-table tbody{display:block;width:100%}
.learning-monitoring .monitoring-table thead{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.learning-monitoring .monitoring-table tbody{display:grid;gap:16px;padding:16px}
.learning-monitoring .monitoring-table tbody tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}
.learning-monitoring .monitoring-table tbody td{display:block;min-width:0;padding:14px;border:0;border-bottom:1px solid var(--line);font-size:13px}
.learning-monitoring .monitoring-table tbody td::before{content:attr(data-label);display:block;font-size:12px;color:var(--muted);font-weight:600;line-height:1.5;margin-bottom:8px}
.learning-monitoring .monitoring-table tbody td:first-child{grid-column:1/-1;background:#f8faff}
.learning-monitoring .monitoring-table tbody td:last-child{grid-column:1/-1;border-bottom:0}
.learning-monitoring .monitoring-row-actions{flex-direction:row;flex-wrap:wrap;gap:10px 18px}
}}

@supports not (container-type:inline-size){@media(max-width:540px){.learning-monitoring .monitoring-table tbody tr{grid-template-columns:repeat(2,minmax(0,1fr))}}}

/* Extracurricular catalog: aligned setup cards and consistent controls. */
.extracurricular-workspace{min-width:0;max-width:100%}.extracurricular-workspace .page-heading{align-items:flex-start;gap:22px}.extracurricular-workspace .page-heading>div:first-child{min-width:0;flex:1}.extracurricular-workspace .page-heading p{line-height:1.7;max-width:100%}.extracurricular-workspace .page-heading>.form-actions{flex:0 1 auto;justify-content:flex-end;align-items:center;gap:10px}.extracurricular-workspace .page-heading>.form-actions a{white-space:normal;text-align:center}
.extracurricular-workspace>.list-filters{padding:20px;background:#fff;border:1px solid var(--line);border-radius:14px;gap:14px;align-items:flex-end;margin-bottom:22px}.extracurricular-workspace>.list-filters>div{flex:1 1 180px;min-width:0}.extracurricular-workspace>.list-filters input,.extracurricular-workspace>.list-filters select{width:100%;min-width:0;max-width:100%;min-height:44px}
.extracurricular-workspace .data-management-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:18px;align-items:start;margin:0 0 26px}.extracurricular-workspace .data-management-grid>.account-form-panel{margin:0;max-width:none;width:100%;min-width:0;padding:22px}.extracurricular-workspace .data-management-grid h2{font-size:17px;line-height:1.5;margin:0 0 8px}.extracurricular-workspace .data-management-grid h2+.muted{font-size:13px;line-height:1.7;min-height:68px;margin:0 0 18px}.extracurricular-workspace .data-management-grid h3{font-size:14px;line-height:1.6}.extracurricular-workspace .account-form>label{font-size:12px;line-height:1.6;margin:16px 0 8px}.extracurricular-workspace .account-form>label:first-of-type{margin-top:0}
.extracurricular-workspace .account-form input:not([type=hidden]):not([type=checkbox]),.extracurricular-workspace .account-form select,.extracurricular-workspace .account-form textarea{display:block;width:100%;min-width:0;max-width:100%;padding:12px;border:1px solid var(--line);border-radius:10px;color:var(--ink);background:#fbfcff;font:inherit;min-height:44px}.extracurricular-workspace .account-form textarea{min-height:100px;resize:vertical;line-height:1.7}.extracurricular-workspace .account-form textarea:not(:first-child){margin-top:8px}.extracurricular-workspace .account-form>button{margin-top:16px;min-height:44px;white-space:normal;text-align:center}.extracurricular-workspace .account-form>select+select,.extracurricular-workspace .account-form>select+input,.extracurricular-workspace .account-form>input+textarea{margin-top:12px}.extracurricular-workspace .account-form input:focus-visible,.extracurricular-workspace .account-form select:focus-visible,.extracurricular-workspace .account-form textarea:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
@media(max-width:760px){.extracurricular-workspace .page-heading{flex-direction:column}.extracurricular-workspace .page-heading>.form-actions{width:100%;justify-content:flex-start}.extracurricular-workspace .data-management-grid{grid-template-columns:1fr}.extracurricular-workspace .data-management-grid h2+.muted{min-height:0}.extracurricular-workspace .data-management-grid>.account-form-panel{padding:20px}.extracurricular-workspace>.list-filters>div{flex-basis:100%}.extracurricular-workspace .account-form input:not([type=hidden]),.extracurricular-workspace .account-form select,.extracurricular-workspace .account-form textarea{font-size:16px}}
@media(max-width:420px){.extracurricular-workspace .page-heading>.form-actions a{flex:1 1 100%}.extracurricular-workspace>.list-filters{padding:16px}.extracurricular-workspace .account-form>button{width:100%}}

/* Finance report: clear section hierarchy, metrics and responsive records. */
.finance-workspace{max-width:100%;min-width:0;line-height:1.65}.finance-workspace .page-heading{align-items:flex-start;gap:20px}.finance-workspace .page-heading>div{min-width:0;flex:1}.finance-workspace .page-heading p{max-width:100%;font-size:13px;line-height:1.7}.finance-workspace .page-heading>a{flex-shrink:0}.finance-workspace>.list-filters{padding:18px 20px;background:#fff;border:1px solid var(--line);border-radius:14px;align-items:flex-end;gap:14px;margin:22px 0}.finance-workspace>.list-filters input{min-height:44px}.finance-workspace>.list-filters>button{min-height:44px}.finance-workspace>.accounts-panel{margin:0 0 24px;min-width:0;overflow:hidden}.finance-workspace>.accounts-panel>h2{padding:22px 22px 0;margin:0;font-size:17px;line-height:1.6;font-weight:600}.finance-workspace>.accounts-panel>p{padding:0 22px;margin:8px 0 18px;font-size:13px;line-height:1.7;color:var(--muted)}.finance-workspace>.accounts-panel>h2+.table-scroll{margin-top:18px}
.finance-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));gap:12px;margin:0;padding:0 22px 22px}.finance-metric{padding:16px;border:1px solid var(--line);border-radius:12px;background:#fafbfe;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:4px}.finance-metric dt{font-size:12px;line-height:1.5;color:var(--muted);font-weight:600;margin:0}.finance-metric dd{margin:4px 0 0;font-size:20px;line-height:1.4;font-weight:700;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.finance-metric-income{background:#edf8f3;border-color:#d3eade}.finance-metric-expense{background:#fff7f3;border-color:#f0ded6}.finance-metric-net{background:var(--soft)}
.finance-workspace .table-scroll{max-width:100%;min-width:0}.finance-workspace .finance-table{width:100%;table-layout:auto;min-width:0!important}.finance-workspace .finance-table th,.finance-workspace .finance-table td{padding:12px 10px;white-space:normal;overflow-wrap:break-word;word-break:normal;vertical-align:middle;font-size:12px;line-height:1.65}
@media(min-width:1400px){.finance-workspace .finance-table th,.finance-workspace .finance-table td{padding:14px 14px}}.finance-workspace .finance-table th{font-size:12px}.finance-workspace .finance-empty{padding:28px 22px!important;text-align:center;color:var(--muted)}.finance-workspace .account-pagination:has(.pagination){border-top:1px solid var(--line)}.finance-workspace .master-tabs{gap:10px;flex-wrap:wrap}
@media(max-width:800px){.finance-workspace .finance-table,.finance-workspace .finance-table tbody{display:block;width:100%;min-width:0!important}.finance-workspace .finance-table thead{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.finance-workspace .finance-table tbody{padding:14px;display:grid;gap:14px}.finance-workspace .finance-data-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--line);border-radius:12px;overflow:hidden}.finance-workspace .finance-data-row td{display:block;min-width:0;padding:12px;border:0;border-bottom:1px solid var(--line)}.finance-workspace .finance-data-row td::before{content:attr(data-label);display:block;color:var(--muted);font-size:12px;font-weight:600;margin-bottom:6px}.finance-workspace .finance-data-row td:last-child{grid-column:1/-1;border-bottom:0;background:#f8faff}.finance-workspace .finance-empty{display:block;border:0}}
@media(max-width:540px){.finance-workspace .page-heading{flex-direction:column;align-items:flex-start}.finance-workspace .page-heading h1{font-size:26px}.finance-workspace>.accounts-panel>h2{padding:18px 18px 0;font-size:16px}.finance-workspace>.accounts-panel>p{padding:0 18px;font-size:12px}.finance-metrics{padding:0 18px 18px;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.finance-metric{padding:14px}.finance-metric dd{font-size:18px}.finance-workspace>.list-filters{padding:16px;flex-wrap:wrap}.finance-workspace>.list-filters>div{width:100%;min-width:0}.finance-workspace>.list-filters input{width:100%;max-width:100%;min-width:0;font-size:16px}}
@media(max-width:360px){.finance-metrics{grid-template-columns:1fr}.finance-workspace .finance-data-row{grid-template-columns:1fr}}

/* SPP create/correction form uses nested field wrappers. */
.spp-bill-editor{max-width:1050px;min-width:0;line-height:1.65}.spp-bill-editor .page-heading{align-items:flex-start;gap:18px}.spp-bill-editor .page-heading>div{min-width:0}.spp-bill-editor .page-heading p{font-size:13px;line-height:1.7}.spp-bill-panel{padding:26px;min-width:0}.spp-bill-panel>h2{margin:0 0 22px;font-size:17px;line-height:1.5}.spp-bill-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.spp-bill-field{min-width:0}.spp-bill-field-wide{grid-column:1/-1}.spp-bill-field>label{display:block;margin:0 0 8px;font-size:12px;line-height:1.6;font-weight:600}.spp-bill-field>input,.spp-bill-field>select,.spp-bill-field>textarea{display:block;width:100%;max-width:100%;min-width:0;border:1px solid var(--line);border-radius:10px;padding:12px;background:#fbfcff;color:var(--ink);font:inherit;min-height:46px}.spp-bill-field>textarea{min-height:110px;resize:vertical}.spp-bill-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;border-top:1px solid var(--line);padding-top:20px;margin-top:26px}.spp-bill-actions>*{min-height:44px}.spp-bill-field>textarea:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
@media(max-width:600px){.spp-bill-panel{padding:20px}.spp-bill-grid{grid-template-columns:1fr;gap:20px}.spp-bill-field-wide{grid-column:auto}.spp-bill-field>input,.spp-bill-field>select,.spp-bill-field>textarea{font-size:16px}.spp-bill-editor .page-heading{flex-direction:column}.spp-bill-actions>*{flex:1;justify-content:center}.spp-bill-editor .master-tabs{flex-wrap:wrap;gap:8px}}

.spp-bill-grid>[hidden]{display:none!important}.spp-bill-editor .spp-batch-classes{padding:16px;margin:0;min-width:0}.spp-batch-class-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.spp-batch-class-grid>label{display:flex;align-items:flex-start;gap:10px;padding:12px;background:#fbfcff;border:1px solid var(--line);border-radius:10px;font-size:13px;line-height:1.6;min-width:0}.spp-batch-class-grid input,.spp-batch-confirm input{flex:0 0 auto;width:18px;height:18px;margin-top:3px;accent-color:var(--primary)}.spp-batch-class-grid small{display:block;color:var(--muted)}.spp-batch-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:0}.spp-batch-summary>div{min-width:0}.spp-batch-summary dt{font-size:12px;color:var(--muted);margin-bottom:6px}.spp-batch-summary dd{margin:0;font-size:14px;overflow-wrap:anywhere}.spp-batch-roster{margin:22px 0}.spp-batch-roster .panel-heading{padding:20px}.spp-batch-roster h2{font-size:17px;margin:0}.spp-batch-confirm{display:flex;align-items:flex-start;gap:12px;font-size:13px;line-height:1.7}
@media(max-width:700px){.spp-batch-class-grid,.spp-batch-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:450px){.spp-batch-class-grid,.spp-batch-summary{grid-template-columns:1fr}}

/* Role-based user guides: all assigned roles receive their own readable chapter. */
.role-guide-workspace{max-width:100%;min-width:0;line-height:1.75}.role-guide-workspace .page-heading{align-items:flex-start}.role-guide-workspace .page-heading>div{min-width:0}.role-guide-panel{padding:26px;margin-bottom:24px;scroll-margin-top:24px}.role-guide-panel h2{font-size:20px;line-height:1.5;margin:0 0 8px}.role-guide-panel p{font-size:13px;line-height:1.8;margin:8px 0 0;overflow-wrap:anywhere}.role-guide-toc{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.role-guide-toc a{font-size:12px;min-height:42px;white-space:normal}.role-guide-panel .role-guide-note{padding-top:16px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.role-guide-section-heading{display:flex;align-items:flex-start;gap:14px}.role-guide-section-heading>div{min-width:0}.role-guide-number{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--soft);color:var(--primary-dark);font-weight:700;flex-shrink:0}.role-guide-steps{padding-left:24px;margin:24px 0;display:grid;gap:18px}.role-guide-steps li{padding-left:6px;font-size:13px}.role-guide-steps li::marker{color:var(--primary-dark);font-weight:700}.role-guide-steps h3{font-size:14px;margin:0;line-height:1.6}.role-guide-steps p{margin:5px 0 0}.role-guide-limits{padding:18px;background:#f7f9fd;border:1px solid var(--line);border-radius:12px;margin-top:22px}.role-guide-limits h3{font-size:13px;margin:0 0 10px}.role-guide-limits ul{padding-left:20px;font-size:12px;margin:0}.role-guide-limits li+li{margin-top:8px}.role-guide-top{display:inline-block;font-size:12px;margin-top:18px}
@media(max-width:600px){.role-guide-panel{padding:20px}.role-guide-panel h2{font-size:18px}.role-guide-workspace .page-heading{flex-direction:column;gap:12px}.role-guide-toc a{flex:1 1 140px;text-align:center}.role-guide-section-heading{gap:12px}.role-guide-steps{padding-left:20px}.role-guide-limits{padding:15px}}

/* Exam eligibility: compact, scannable verification table with quick inline decisions and bulk bar. */
.exam-access-workspace{min-width:0;max-width: 100%;line-height:1.5}.exam-access-head{margin-bottom:14px}.exam-access-workspace input[type=checkbox]{width:17px;height:17px;flex-shrink:0;accent-color:var(--primary);cursor:pointer}
.exam-config-drawer{margin:0 0 14px;border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}.exam-config-summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:11px 16px;font-size:13px}.exam-config-summary::-webkit-details-marker{display:none}.exam-config-badges{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.exam-config-toggle{font-size:12px;font-weight:700;color:var(--primary)}.exam-config-drawer[open] .exam-config-summary{border-bottom:1px solid var(--line);background:#f8fbff}.exam-config-body{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:18px;padding:16px}.exam-config-col h3{margin:0 0 6px;font-size:14px}.exam-config-col p{margin:0 0 10px;font-size:12.5px;line-height:1.55}.exam-config-col-sep{border-left:1px solid var(--line);padding-left:18px}.exam-req-form{display:flex;flex-direction:column;gap:8px}.exam-req-form label{display:flex;align-items:center;gap:8px;font-size:13px;cursor:pointer}.exam-access-workspace .exam-req-form .primary-button{align-self:flex-start;width:auto;min-height:36px;padding:7px 14px;font-size:12.5px;margin-top:4px}
.exam-kpi-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0 0 14px}.exam-kpi-chip{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 14px;border:1px solid var(--line);border-radius:12px;background:#fff;text-decoration:none;color:var(--ink);transition:border-color .15s,background .15s,box-shadow .15s}.exam-kpi-chip:hover{border-color:#93c5fd;background:#f8fbff}.exam-kpi-chip.is-active{border-color:#2563eb;background:#eff6ff;box-shadow:0 2px 8px -2px rgba(37,99,235,.2)}.exam-kpi-label{font-size:12px;font-weight:600;color:var(--muted)}.exam-kpi-value{font-size:20px;font-weight:800;line-height:1}.exam-kpi-chip.tone-emerald .exam-kpi-value{color:#059669}.exam-kpi-chip.tone-rose .exam-kpi-value{color:#dc2626}.exam-kpi-chip.tone-amber .exam-kpi-value{color:#d97706}.exam-kpi-chip.tone-blue .exam-kpi-value{color:#2563eb}
.exam-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;padding:12px 14px;border:1px solid var(--line);background:#fff;border-radius:12px;margin:0 0 12px}.exam-filters .filter-field{flex:1 1 160px;min-width:140px}.exam-filters .filter-field-search{flex:1.8 1 220px}.exam-filters .filter-field-narrow{flex:0 1 135px;min-width:120px}.exam-filters .filter-field label{display:block;font-size:11.5px;font-weight:600;margin-bottom:4px;color:var(--muted)}.exam-filters .filter-field input,.exam-filters .filter-field select{width:100%;min-height:36px;padding:6px 10px;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:13px}.exam-filters .filter-actions{display:flex;align-items:center;gap:10px}.exam-access-workspace .exam-filters .filter-actions .secondary-button{width:auto;min-height:36px;padding:6px 14px;font-size:12.5px}
.exam-bulk-panel{padding:11px 14px;margin:0 0 12px;background:#f8fbff;border:1px solid #cfe0fc;border-radius:12px}.exam-bulk-form{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.exam-bulk-form .bulk-field{flex:0 1 165px;min-width:130px}.exam-bulk-form .bulk-field-counter{flex:none;min-width:auto}.exam-bulk-form .bulk-field-date{flex:0 1 145px;min-width:135px}.exam-bulk-form .bulk-field-wide{flex:1 1 220px;min-width:180px}.exam-bulk-form .bulk-field-submit{flex:none;min-width:auto}.exam-bulk-form select,.exam-bulk-form input{width:100%;min-height:36px;padding:6px 10px;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:12.5px}.exam-access-workspace .exam-bulk-form button{width:auto;min-height:36px;padding:6px 14px;font-size:12.5px;margin:0;white-space:nowrap}.bulk-counter-badge{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;background:#e2e8f0;color:#334155;font-size:12px;font-weight:700;white-space:nowrap}.bulk-counter-badge.is-active{background:#2563eb;color:#fff}.exam-preset-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:8px;font-size:11.5px}.exam-preset-chip{border:1px solid #cbdcf7;background:#fff;color:#1e40af;border-radius:999px;padding:3px 9px;font:inherit;font-size:11.5px;font-weight:600;cursor:pointer}.exam-preset-chip:hover{background:#eff6ff;border-color:#2563eb}
.exam-students-panel{padding:0;overflow:hidden}.exam-students-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 16px;border-bottom:1px solid var(--line)}.exam-students-bar h2{margin:0;font-size:15px}.exam-students-bar p{margin:2px 0 0;font-size:12px}.exam-table-hint{font-size:12px}
.exam-verify-table{width:100%;border-collapse:collapse;min-width:820px}.exam-verify-table th{padding:9px 10px;font-size:11.5px;text-transform:uppercase;letter-spacing:.04em;color:#475569;background:#f8fbff;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}.exam-verify-table td{padding:9px 10px;border-bottom:1px solid #eef2f9;vertical-align:middle;font-size:12.5px}.exam-verify-row:hover td{background:#fafcff}.exam-col-check{width:36px;text-align:center}.exam-col-student{min-width:175px}.exam-col-spp{width:124px;white-space:nowrap}.exam-col-status{min-width:175px}.exam-col-action{width:1%;min-width:405px;white-space:nowrap}
.exam-cell-title{display:flex;align-items:center;gap:6px;flex-wrap:wrap;line-height:1.3}.exam-cell-title strong{font-size:13px;color:var(--ink)}.exam-class-badge{font-size:11px;padding:2px 7px}.exam-cell-meta{font-size:11.5px;margin-top:2px;display:flex;align-items:center;gap:5px;flex-wrap:wrap}.exam-cell-warn{font-size:11.5px;color:#b45309;font-weight:600;margin-top:2px}
.exam-pill{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;font-size:11.5px;font-weight:700}.exam-pill.is-ok{background:#dcfce7;color:#166534}.exam-pill.is-warn{background:#fef3c7;color:#92400e}.exam-pill.is-muted{background:#f1f5f9;color:#475569}
.exam-status-stack{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.exam-status-stack .badge{font-size:11px;padding:3px 8px}.exam-approval-text{font-size:11.5px;font-weight:600}.exam-approval-text.is-ok{color:#059669}.exam-last-note{font-size:11px;margin-top:3px;max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.exam-inline-form{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}.exam-inline-select{width:98px;flex:0 0 auto;min-height:34px;height:34px;padding:4px 7px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font:inherit;font-size:12px}.exam-inline-date{width:128px;flex:0 0 auto;min-height:34px;height:34px;padding:4px 7px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font:inherit;font-size:12px}.exam-inline-reason{width:150px;flex:1 1 135px;min-width:115px;min-height:34px;height:34px;padding:4px 9px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font:inherit;font-size:12px}.exam-access-workspace .exam-inline-save{width:auto;flex:0 0 auto;min-height:34px;height:34px;padding:0 12px;font-size:12px;line-height:1;margin:0;white-space:nowrap}
.exam-students-panel .account-pagination{padding:12px 16px}
@media(max-width:1100px){.exam-kpi-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.exam-config-col-sep{border-left:0;border-top:1px solid var(--line);padding-left:0;padding-top:14px}}
@media(max-width:650px){.exam-kpi-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.exam-filters,.exam-bulk-form{flex-direction:column;align-items:stretch}.exam-filters .filter-field,.exam-filters .filter-field-search,.exam-filters .filter-field-narrow,.exam-bulk-form .bulk-field,.exam-bulk-form .bulk-field-date,.exam-bulk-form .bulk-field-wide{flex:1 1 auto;width:100%;min-width:0}.exam-filters input,.exam-filters select,.exam-bulk-form input,.exam-bulk-form select{font-size:16px;min-height:42px}.exam-access-workspace .exam-bulk-form .bulk-field-submit button{width:100%}}

/* Keep interactive controls comfortable on narrow and touch-sized layouts. */
.login-card .login-footnote>a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;white-space:normal;text-align:center}
@media(max-width:1000px){
.dashboard-shell main .secondary-button,.dashboard-shell main .primary-button,.topbar .secondary-button{min-height:44px}
.dashboard-shell main .secondary-button{white-space:normal;text-align:center}
}
@media(max-width:1000px){
.dashboard-content>details.panel>summary{min-height:44px;box-sizing:border-box;padding-block:11px;cursor:pointer}
.dashboard-content>details.panel>summary:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
}
@media (min-width: 641px) and (max-width: 900px) {
.open-menu,.close-menu{min-width:44px;min-height:44px;flex-shrink:0}
}
@media (max-width: 640px) {
.open-menu,.close-menu{min-width:44px;min-height:44px;flex-shrink:0}
}
@media (min-width: 641px) and (max-width: 900px) {
.dashboard-content .monitoring-filters input:not([type=checkbox]):not([type=radio]),.dashboard-content .monitoring-filters select{font-size:16px;min-height:44px;min-width:0;max-width:100%}
}
@media (max-width: 640px) {
.dashboard-content .monitoring-filters input:not([type=checkbox]):not([type=radio]),.dashboard-content .monitoring-filters select{font-size:16px;min-height:44px;min-width:0;max-width:100%}
}
@media (min-width: 641px) and (max-width: 900px) {
.dashboard-content .account-form input:not([type=checkbox]):not([type=radio]),.dashboard-content .account-form select,.dashboard-content .account-form textarea{font-size:16px}
}
@media (max-width: 640px) {
.dashboard-content .account-form input:not([type=checkbox]):not([type=radio]),.dashboard-content .account-form select,.dashboard-content .account-form textarea{font-size:16px}
}

/* System dashboard: shared edges, consistent spacing and aligned actions. */
.server-environment-panel,.system-management-panel{padding:28px;min-width:0;line-height:1.75}
.server-environment-panel{background:linear-gradient(120deg,#f8faff,#fff);border-color:#dfe6f4}
.server-environment-panel>.overline{display:block;margin-bottom:10px;font-size:12px;letter-spacing:1.2px}
.server-environment-panel>h2,.system-management-panel>h2{font-size:20px;line-height:1.4;font-weight:700;margin:0 0 12px;color:var(--ink)}
.server-environment-panel>p,.system-management-panel>p{font-size:13px;line-height:1.85;margin:10px 0 0;overflow-wrap:anywhere}
.server-environment-panel>p{color:#52627c}
.system-management-panel>.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:24px 0 0;align-items:stretch}
.system-management-panel .summary-card{display:flex;flex-direction:column;align-items:stretch;min-width:0;padding:22px;box-shadow:none;background:#fbfcff}
.system-management-panel .summary-card>h3{font-size:15px;line-height:1.5;margin:0 0 10px;color:var(--ink)}
.system-management-panel .summary-card>p{font-size:13px;line-height:1.8;color:var(--muted);margin:0 0 22px}
.system-management-panel .summary-card>a{margin-top:auto;width:100%;min-height:44px;white-space:normal;text-align:center;box-sizing:border-box}
@media(min-width:1450px){.system-management-panel>.summary-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){.server-environment-panel,.system-management-panel{padding:20px}.server-environment-panel>h2,.system-management-panel>h2{font-size:18px}.system-management-panel>.summary-grid{grid-template-columns:1fr;gap:14px;margin-top:20px}.system-management-panel .summary-card{padding:20px}}

/* Shared reading rhythm at every screen size; controls keep their alignment. */
:where(.dashboard-content,.ppdb-public,.login-intro,.login-card) p{
    text-wrap:pretty;
}
:where(.dashboard-content,.ppdb-public) :where(.page-heading,.ppdb-heading,header)>div{
    min-width:0;
}
:where(.dashboard-content,.ppdb-public,.login-intro,.login-card) p:not(.eyebrow):not(.overline):not(.ppdb-number):not(.field-error):not(.finance-empty):not(.login-footnote),
:where(.dashboard-content,.ppdb-public) :where(.role-guide-steps,.ppdb-flow-steps,.ppdb-flow-next,.hubin .flow)>li{
    text-align:justify;
    text-align-last:left;
    text-justify:inter-word;
    hyphens:manual;
}
:where(.dashboard-content,.ppdb-public) :where(td,th,dt,dd,.stats,.form-actions,.ppdb-actions,.form-feedback) p{
    text-align:start;
    hyphens:manual;
}

/* Prose notices and form guidance also follow the shared paragraph alignment. */
:where(.dashboard-content,.ppdb-public) :where(.notice,.form-help,.help-text,.account-form-help){
    text-align:justify;
    text-align-last:left;
    text-justify:inter-word;
    hyphens:manual;
}

/* Keep empty-state messages genuinely centered, including inside panels and table cells. */
.dashboard-content .empty-state,
.dashboard-content .empty-state h2,
.dashboard-content .empty-state h3,
.dashboard-content .empty-state p,
.dashboard-content p.empty-state,
.dashboard-content .request-center-empty,
.dashboard-content .request-center-empty h2,
.dashboard-content .request-center-empty h3,
.dashboard-content .request-center-empty p,
.dashboard-content .hubin-student-empty,
.dashboard-content .hubin-student-empty h2,
.dashboard-content .hubin-student-empty p,
.dashboard-content .student-home-empty,
.dashboard-content .finance-empty,
.dashboard-content td[colspan],
.dashboard-content td[colspan] p {
    text-align:center;
    text-align-last:center;
}
.dashboard-content .empty-state:not(.panel) {
    width:100%;
    max-width:440px;
    margin-inline:auto;
}
.dashboard-content .panel.empty-state {
    width:100%;
    max-width:none;
}
.dashboard-content .empty-state p,
.dashboard-content .request-center-empty p,
.dashboard-content .hubin-student-empty p {
    margin-inline:auto;
}

/* Center max-width workspace containers symmetrically on desktop and tablet screens. */
.dashboard-content :is(
    .lesson-meeting-page,
    .request-center-page,
    .report-history-page,
    .self-attendance-page,
    .quran-page,
    .school-rules-page,
    .moodle-overview,
    .parent-profile-detail,
    .staff-detail-page,
    .backup-workspace,
    .account-editor,
    .spp-bill-editor,
    .exam-access-workspace,
    .academic-grade-detail
) {
    margin-inline:auto;
}

/* Account worksheet: explicit per-row saves with the existing account policy. */
.account-sheet table{min-width:1000px}.account-sheet td{vertical-align:top}
.account-sheet input:not([type=checkbox]):not([type=hidden]),.account-sheet select{width:100%;min-width:160px;padding:10px;border:1px solid var(--line);border-radius:8px;background:#fff;font:inherit;min-height:44px}
.account-sheet details{min-width:230px}.account-sheet summary{cursor:pointer;min-height:44px;padding:8px 0}
.sheet-role-options{display:grid;gap:8px;margin:8px 0}.sheet-role-options label{display:flex;gap:8px;align-items:center;min-height:32px}.sheet-role-options input{width:18px;height:18px}
.sheet-current-roles{display:flex;flex-wrap:wrap;gap:5px;max-width:280px}.sheet-dirty{background:#fffbee}
.account-sheet .sheet-feedback{text-align:start;font-size:12px;max-width:250px;margin-top:10px;white-space:normal}
.account-sheet .secondary-button{min-height:44px;white-space:nowrap}.account-sheet :disabled{opacity:.65}

.teacher-sheet td:has([name=name]),.teacher-sheet th:nth-child(3){position:sticky;left:0;background:#fff;z-index:1;min-width:240px}
.teacher-sheet textarea{min-width:240px;padding:10px;border:1px solid var(--line);border-radius:8px;font:inherit;resize:vertical}
.teacher-sheet .sheet-dirty td:has([name=name]){background:#fffbee}

.teacher-sheet th:last-child,.teacher-sheet td:last-child{position:sticky;right:0;background:#fff;z-index:2;min-width:180px;border-inline-start:1px solid var(--line)}
.teacher-sheet .sheet-dirty td:last-child{background:#fffbee}

.sheet-shared-confirm{display:flex;align-items:flex-start;gap:8px;min-width:240px;max-width:300px;font-size:12px}.sheet-shared-confirm input{flex-shrink:0;width:18px;height:18px}

/* Attendance navigation: consistent controls without affecting other modules. */
.attendance-tabs{align-items:stretch;gap:10px;margin-block:20px}
.attendance-tabs>a{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;max-width:100%;padding:10px 16px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font-size:12px;font-weight:500;line-height:1.5;text-align:center;text-decoration:none;white-space:normal;transition:background .15s,border-color .15s}
.attendance-tabs>a:hover{background:var(--soft);border-color:var(--primary)}
.attendance-tabs>a[aria-current=page]{background:var(--soft);border-color:var(--primary);color:var(--primary-dark);font-weight:600}
.attendance-tabs>a:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
.attendance-filter-actions{display:flex;align-items:stretch;gap:10px}
.attendance-filter-actions>.secondary-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;box-sizing:border-box;margin:0;text-decoration:none}
@media(max-width:600px){.attendance-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.attendance-tabs>.attendance-tap-link{grid-column:1/-1}.attendance-tabs>a{min-width:0;padding:10px 12px}.attendance-filter-actions{width:100%}.attendance-filter-actions>.secondary-button{flex:1}}
@media(max-width:340px){.attendance-tabs{grid-template-columns:minmax(0,1fr)}}

/* Card assignment controls are nested in fields, so scope their layout explicitly. */
.attendance-card-panel{padding:24px;margin-block:22px;min-width:0}
.attendance-card-panel>h2{margin:0 0 22px;font-size:18px;line-height:1.4}
.attendance-card-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start}
.attendance-card-form>div{min-width:0}
.attendance-card-form label{display:block;margin-bottom:8px;font-size:12px;font-weight:600}
.attendance-card-form input,.attendance-card-form select{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:46px;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:#fbfcff;color:var(--ink);font:inherit}
.attendance-card-form .muted{margin:8px 0 0;font-size:12px;line-height:1.7}
.attendance-card-form>.primary-button{grid-column:1/-1;justify-self:start;width:auto;min-height:44px;margin:0;padding:12px 22px}
.attendance-card-filters{gap:14px;align-items:flex-end;padding:20px;border:1px solid var(--line);border-radius:14px;background:#fff}
.attendance-card-filters>div{flex:1 1 200px;min-width:0}
.attendance-card-filters input,.attendance-card-filters select{box-sizing:border-box;width:100%;min-width:0;min-height:44px}
.attendance-card-filters>button{min-height:44px}
@media(max-width:650px){.attendance-card-panel{padding:20px}.attendance-card-form{grid-template-columns:minmax(0,1fr);gap:20px}.attendance-card-form input,.attendance-card-form select{font-size:16px}.attendance-card-form>.primary-button{width:100%;justify-self:stretch}.attendance-card-filters{padding:16px}.attendance-card-filters>div{flex-basis:100%}.attendance-card-filters>button{width:100%}}

.attendance-card-form .teacher-picker-control>input{border:0;background:transparent;border-radius:0;outline:none}
.attendance-card-form select[hidden]{display:none}

/* Attendance hours and date overrides share a responsive field layout. */
.attendance-settings-panel{padding:24px;margin-block:22px;min-width:0}
.attendance-settings-panel>h2{margin:0 0 22px;font-size:18px;line-height:1.4}
.attendance-settings-panel>.table-scroll{margin-top:20px}
.attendance-settings-panel>.account-form:not(.attendance-settings-form)>.primary-button{width:auto;min-height:44px;margin-top:16px;padding:12px 22px}
.attendance-settings-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.attendance-settings-form>div{min-width:0}
.attendance-settings-form label{display:block;margin-bottom:8px;font-size:12px;font-weight:600;line-height:1.5}
.attendance-settings-form input:not([type=checkbox]):not([type=radio]),.attendance-settings-form select{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:46px;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:#fbfcff;color:var(--ink);font:inherit}
.attendance-settings-form .attendance-settings-help{grid-column:1/-1;margin:0;font-size:13px;line-height:1.75}
.attendance-settings-form>.primary-button{grid-column:1/-1;justify-self:start;box-sizing:border-box;min-height:44px;width:auto;max-width:100%;margin:0;padding:12px 22px;white-space:normal}
.trial-reset-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:0 0 20px}
.trial-reset-metrics>div{padding:12px 14px;border:1px solid #bfdbfe;border-radius:12px;background:#eff6ff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:4px;min-width:0}
html[data-theme="dark"] .trial-reset-metrics>div{background:rgba(30,58,138,.25);border-color:#1e40af}
.trial-reset-metrics dt{font-size:12px;font-weight:600;color:var(--muted);line-height:1.35}
.trial-reset-metrics dd{margin:0;font-size:20px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums;line-height:1.2}
.trial-reset-confirm{grid-column:1/-1;min-width:0}
.attendance-settings-form label.trial-reset-checkbox{display:flex;align-items:flex-start;gap:10px;margin:0;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#f8fafc;font-size:13px;font-weight:600;line-height:1.55;cursor:pointer}
html[data-theme="dark"] .attendance-settings-form label.trial-reset-checkbox{background:#0f172a;border-color:#334155}
.trial-reset-checkbox input[type=checkbox]{flex:0 0 18px;width:18px;height:18px;min-height:18px;margin:2px 0 0;padding:0;accent-color:var(--primary);cursor:pointer}
.attendance-activation-intro{margin:-10px 0 18px;font-size:13px;line-height:1.7}
.attendance-activation-form{display:grid;gap:18px}
.attendance-activation-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;align-items:stretch}
.attendance-activation-card{min-width:0;padding:18px;border:1px solid var(--line);border-radius:12px;background:#fbfcff;display:flex;flex-direction:column}
.attendance-activation-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:14px}
.attendance-activation-head h3{margin:0;font-size:15px;line-height:1.4;color:var(--ink)}
.attendance-activation-badge{flex:none;display:inline-flex;align-items:center;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:700;line-height:1.4}
.attendance-activation-badge[data-active="1"]{background:#ecfdf5;color:#047857;border:1px solid #a7f3d0}
.attendance-activation-badge[data-active="0"]{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}
.attendance-activation-card label{display:block;margin:12px 0 6px;font-size:12px;font-weight:600;line-height:1.5}
.attendance-activation-card input,.attendance-activation-card select{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:46px;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font:inherit}
.attendance-activation-card .input-help{margin:10px 0 0;font-size:12px;line-height:1.65;color:var(--muted)}
.attendance-activation-form>.primary-button{justify-self:start;box-sizing:border-box;width:auto;max-width:100%;min-height:44px;margin:0;padding:12px 22px;white-space:normal}
@media(max-width:1100px){.trial-reset-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.attendance-activation-grid{grid-template-columns:minmax(0,1fr)}.attendance-activation-card input,.attendance-activation-card select{font-size:16px}.attendance-activation-form>.primary-button{width:100%;justify-self:stretch}}
@media(max-width:650px){.attendance-settings-panel{padding:18px}.attendance-settings-form{grid-template-columns:minmax(0,1fr)}.attendance-settings-form input:not([type=checkbox]):not([type=radio]),.attendance-settings-form select{font-size:16px}.attendance-settings-form>.primary-button,.attendance-settings-panel>.account-form:not(.attendance-settings-form)>.primary-button{width:100%;justify-self:stretch}.trial-reset-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

.self-profile-form .primary-button:disabled{opacity:.65;cursor:not-allowed;box-shadow:none}

.student-review-back{display:inline-flex;gap:9px;min-height:44px;box-sizing:border-box;margin:0 0 16px;padding:10px 16px;font-size:13px;font-weight:600;color:var(--primary-dark);border-color:var(--primary);background:var(--soft);text-decoration:none;white-space:normal}
.student-review-back:hover{background:#dceaff}
.student-review-back:focus-visible{outline:2px solid var(--primary);outline-offset:3px}

/* Verification state uses both text and colour, including a distinct review note. */
.student-review-notice{--review-ink:#1e40af;--review-line:#93b4f5;--review-bg:#eff6ff;padding:18px 20px;border:1px solid var(--review-line);border-inline-start:5px solid var(--review-ink);background:var(--review-bg);color:var(--review-ink);line-height:1.75}
.student-review-notice--returned{--review-ink:#991b1b;--review-line:#f3a6a6;--review-bg:#fff1f2}
.student-review-notice--pending{--review-ink:#854d0e;--review-line:#e7c663;--review-bg:#fffbeb}
.student-review-notice--approved{--review-ink:#166534;--review-line:#86c99d;--review-bg:#f0fdf4}
.student-review-notice--incomplete{--review-ink:#9a3412;--review-line:#f5b77c;--review-bg:#fff7ed}
.student-review-status{display:block;font-size:15px;line-height:1.5;margin-bottom:10px}
.student-review-notice p{color:inherit;font-size:13px;line-height:1.75}
.student-review-notice .student-review-note{display:flex;flex-direction:column;gap:5px;margin-block:16px;padding:12px 14px;border:1px solid var(--review-line);border-radius:8px;background:#fff;color:var(--review-ink);overflow-wrap:anywhere}
@media(max-width:600px){.student-review-notice{padding:16px}.student-review-notice .student-review-note{padding:12px}}

/* Administrator review information is stacked rather than a flex notification row. */
.student-review-admin{min-width:0;max-width:100%}
.student-review-admin .notice{display:block;margin-block:20px;padding:18px 20px;line-height:1.75;overflow-wrap:anywhere}
.student-review-admin .notice>strong{display:block;margin-bottom:8px;font-size:13px}
.student-review-admin .notice ul{margin:0;padding-inline-start:22px}
.student-review-admin .notice li+li{margin-top:6px}
.student-review-empty{padding:24px;margin-block:22px}
.student-review-empty p{margin:0 0 14px;line-height:1.75;font-size:14px}
.student-review-empty .secondary-button{min-height:44px;box-sizing:border-box;margin-top:6px;color:var(--primary-dark);font-size:13px;font-weight:600}
.student-review-decision{margin-block:22px}
.student-review-decision>p{line-height:1.75;margin:0 0 20px}
.student-review-decision textarea{display:block;box-sizing:border-box;width:100%;min-height:110px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fbfcff;font:inherit;resize:vertical}
.student-review-decision .form-actions{align-items:stretch;flex-wrap:wrap;gap:12px}
.student-review-decision .form-actions>button{min-height:44px;white-space:normal;box-sizing:border-box;margin:0}
@media(max-width:600px){.student-review-admin .notice,.student-review-empty{padding:18px}.student-review-decision .form-actions>button{width:100%}}

/* Shared pagination: readable navigation for every full and simple list. */
.pagination.list-pagination{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:14px;padding:18px 20px;margin:12px 0 0;border-top:1px solid var(--line);font-size:13px;line-height:1.5}
.list-pagination .pagination-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;min-height:44px;max-width:100%;padding:10px 16px;border:1px solid #bcc8e2;border-radius:10px;background:#fff;color:var(--primary-dark);font-size:13px;font-weight:600;text-align:center;text-decoration:none;white-space:normal}
.list-pagination .pagination-previous{justify-self:start}.list-pagination .pagination-next{justify-self:end}
.list-pagination .pagination-position{color:var(--ink);font-size:13px;font-weight:600;text-align:center}
.list-pagination a.pagination-button:hover{background:var(--soft);border-color:var(--primary)}
.list-pagination a.pagination-button:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
.list-pagination .pagination-button[aria-disabled=true]{background:#f1f4f9;color:#64748b;border-color:#d9e0ec;cursor:default}
.account-pagination:has(.list-pagination){padding:0}
@media(max-width:540px){.pagination.list-pagination{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px}.list-pagination .pagination-position{grid-column:1/-1;grid-row:1}.list-pagination .pagination-previous,.list-pagination .pagination-next{justify-self:stretch}.list-pagination .pagination-button{padding:10px 8px}}

/* Student dashboard filters stay discoverable when collapsed. */
.student-period-filter{margin:0 0 24px;border:1px solid #c7d6ef;border-radius:14px;background:#fff;min-width:0}
.student-period-filter>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;list-style:none;padding:16px 20px!important;min-height:60px!important;color:var(--ink);font-size:15px;font-weight:600;cursor:pointer;border-radius:14px;background:#edf4ff}
.student-period-filter>summary::-webkit-details-marker{display:none}
.student-filter-title,.student-filter-toggle{display:inline-flex;align-items:center;gap:10px}
.student-filter-title svg{width:20px;height:20px;flex-shrink:0;color:var(--primary-dark)}
.student-filter-toggle{flex-shrink:0;padding:7px 12px;border:1px solid #bad0f5;border-radius:8px;background:#fff;color:var(--primary-dark);font-size:12px}
.student-filter-close{display:none}.student-period-filter[open] .student-filter-open{display:none}.student-period-filter[open] .student-filter-close{display:inline}
.student-filter-chevron{font-size:18px;line-height:1}.student-period-filter[open] .student-filter-chevron{transform:rotate(180deg)}
.student-period-filter .dashboard-filters{margin:0;padding:20px;border:0;border-top:1px solid var(--line);border-radius:0 0 14px 14px;box-shadow:none}
.student-dashboard-intro{margin:0 0 18px;font-size:14px;line-height:1.75;color:#52627b}
@media(max-width:540px){.student-period-filter>summary{padding:14px 16px!important;gap:10px;font-size:14px}.student-filter-toggle{padding:7px 10px}.student-period-filter .dashboard-filters{padding:16px}.student-filter-title{gap:8px}}

.dashboard-filter-heading{grid-column:1/-1;display:flex;align-items:center;gap:10px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.dashboard-filter-heading h2{margin:0;font-size:15px;font-weight:600;line-height:1.5}
.dashboard-filter-heading svg{width:20px;height:20px;color:var(--primary-dark);flex-shrink:0}
.dashboard-filters label{display:block;margin-bottom:8px;font-weight:600;font-size:12px}
.dashboard-filters input:not([type=hidden]),.dashboard-filters select{box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:44px}
.dashboard-filters .primary-button{min-height:44px}

.extracurricular-workspace .teacher-picker-popup{position:static;margin-top:6px;min-width:0}
.extracurricular-workspace .teacher-picker-control>input{border:0;border-radius:0;background:transparent;margin:0;outline:none}
.extracurricular-workspace select[data-search-enhanced][hidden]{display:none}

/* User guide remains readable across narrow panels and multi-role accounts. */
.role-guide-workspace{width:100%;max-width:1150px;margin-inline:auto;box-sizing:border-box}
.role-guide-workspace .page-heading{gap:16px;flex-wrap:wrap}
.role-guide-workspace .page-heading h1{font-size:clamp(24px,3.2vw,32px);line-height:1.3;overflow-wrap:anywhere}
.role-guide-workspace .page-heading>.badge{flex-shrink:0;max-width:100%;white-space:normal}
.role-guide-panel{padding:clamp(18px,3vw,28px);min-width:0;box-sizing:border-box}
.role-guide-panel h2{overflow-wrap:anywhere}
.role-guide-panel p{font-size:14px;line-height:1.85}
.role-guide-toc{align-items:stretch;gap:12px;margin-block:22px}
.role-guide-toc a{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;min-width:min(100%,160px);max-width:100%;padding:10px 16px;font-size:13px;font-weight:600;line-height:1.6;overflow-wrap:anywhere;text-decoration:none}
.role-guide-toc a:focus-visible,.role-guide-top:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
.role-guide-steps{gap:24px;padding-inline-start:24px}
.role-guide-steps>li{min-width:0;overflow-wrap:anywhere;font-size:14px}
.role-guide-steps h3{font-size:15px;line-height:1.6}
.role-guide-panel .role-guide-note,.role-guide-limits ul{font-size:13px;line-height:1.85}
.role-guide-top{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;margin-top:20px;padding:10px 16px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:13px;font-weight:600;line-height:1.5;text-decoration:none}
.role-guide-top:hover{background:var(--soft);border-color:var(--primary)}
@media(max-width:600px){.role-guide-toc{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.role-guide-toc>a{width:100%;min-width:0}.role-guide-toc>a:only-child{grid-column:1/-1}.role-guide-section-heading{gap:10px}.role-guide-number{width:32px;height:32px;border-radius:10px}.role-guide-section-heading h2{font-size:18px}.role-guide-steps{padding-inline-start:20px}.role-guide-steps>li{padding-inline-start:2px}.role-guide-limits{padding:16px}.role-guide-top{width:100%}}
@media(max-width:360px){.role-guide-toc{grid-template-columns:minmax(0,1fr)}.role-guide-section-heading{flex-wrap:wrap}.role-guide-section-heading>div{flex:1 1 180px}}
@media(max-width:600px){.role-guide-section-heading{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:center}.role-guide-section-heading>div{display:contents}.role-guide-section-heading h2{grid-column:2;grid-row:1;margin:0}.role-guide-section-heading p{grid-column:1/-1;margin-top:2px}}

/* Student review table: readable sortable headers, no desktop overflow, and mobile card-row. */
.student-review-list .table-scroll{max-width:100%}
.student-review-list table{width:100%;min-width:0;table-layout:auto}
.student-review-list .review-row-number,
.student-review-list .review-row-number-column{width:52px;min-width:48px;text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap}
.student-review-list th{padding:10px 12px;background:#f5f7fc;font-size:13px;font-weight:600;color:#43516a;vertical-align:middle}
.student-review-list td{padding:12px;font-size:13px;vertical-align:middle;overflow-wrap:anywhere;word-break:normal}
.student-review-list th:last-child,.student-review-list td:last-child{text-align:center;white-space:nowrap;width:1%}
.student-review-list .table-link{display:inline-flex;align-items:center;justify-content:center;padding:6px 14px;border-radius:999px;border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8;font-size:12.5px;font-weight:600;text-decoration:none;min-height:34px;transition:background-color .15s ease,border-color .15s ease}
.student-review-list .table-link:hover{background:#dbeafe;border-color:#93c5fd;text-decoration:none}
html[data-theme="dark"] .student-review-list .table-link{background:rgba(37,99,235,.22);border-color:#1d4ed8;color:#93c5fd}
html[data-theme="dark"] .student-review-list .table-link:hover{background:rgba(37,99,235,.35)}
html[data-theme="dark"] .student-review-decision textarea{background:#0f172a;border-color:#334155;color:#f1f5f9}
.student-review-sort{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;width:100%;color:inherit;text-decoration:none;white-space:normal;line-height:1.35;overflow-wrap:break-word;border-radius:8px}
.student-review-sort-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:28px;border:1px solid #d7deeb;border-radius:7px;background:#fff;color:#586780;font-size:16px;line-height:1}
.student-review-sort.is-active{color:#1d4ed8}
.student-review-sort.is-active .student-review-sort-icon{background:#2563eb;border-color:#2563eb;color:#fff}
.student-review-sort:hover{color:#1d4ed8}
.student-review-sort:hover .student-review-sort-icon{border-color:#2563eb}
.student-review-sort:focus-visible{outline:2px solid #2563eb;outline-offset:3px}
@media (min-width: 641px) and (max-width: 768px) {
    .student-review-list .table-scroll{overflow:visible}
    .student-review-list thead{display:none}
    .student-review-list table,.student-review-list tbody,.student-review-list tr,.student-review-list td{display:block;width:100%;box-sizing:border-box}
    .student-review-list tbody{display:grid;gap:10px;padding:10px}
    .student-review-list tbody tr{border:1px solid var(--line);border-radius:12px;background:var(--surface,#fff);overflow:hidden;box-shadow:0 1px 2px rgba(15,23,42,.04)}
    .student-review-list tbody tr:not(:has(td[colspan])){display:grid;grid-template-columns:1fr auto;grid-template-areas:"no status" "name name" "nipd nipd" "rombel rombel" "date date" "action action"}
    .student-review-list tbody td{border:0;border-bottom:1px solid var(--line);padding:8px 12px;text-align:left !important;width:100% !important;white-space:normal !important}
    .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(1){grid-area:no;display:flex;align-items:center;padding:7px 12px;background:var(--canvas,#f8fafc);font-size:12.5px;font-weight:800;color:#1d4ed8;font-variant-numeric:tabular-nums}
    .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(1)::before{content:"#";display:inline;margin:0 1px 0 0;font-size:inherit;font-weight:800;color:inherit}
    .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(5){grid-area:status;display:flex;align-items:center;justify-content:flex-end;padding:6px 12px;background:var(--canvas,#f8fafc);text-align:right !important}
    .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(5)::before{display:none}
    .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(2){grid-area:name;padding:10px 12px 8px;font-size:15px;font-weight:700;color:var(--ink,#0f172a);line-height:1.35}
    .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(2)::before{display:none}
    .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(3){grid-area:nipd}
    .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(4){grid-area:rombel}
    .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(6){grid-area:date}
    .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(3),
    .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(4),
    .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(6){display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 12px;font-size:13px;text-align:right !important;font-variant-numeric:tabular-nums}
    .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(3)::before,
    .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(4)::before,
    .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(6)::before{content:attr(data-label);display:inline;margin:0;flex:0 0 auto;font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.03em;text-align:left}
    .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(7){grid-area:action;padding:9px 12px;border-bottom:0}
    .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(7)::before{display:none}
    .student-review-list tbody td[colspan]{border-bottom:0;padding:16px 12px;text-align:center !important}
    .student-review-list tbody td[colspan]::before{display:none}
    .student-review-list .table-link{width:100%;min-height:44px}
    .student-review-decision textarea{font-size:16px}
    .student-review-back{width:100%;min-height:44px;justify-content:center;text-align:center;box-sizing:border-box}
    .student-review-compare thead,
    .student-review-compare caption.table-sort-caption{display:none}
    .student-review-compare table,.student-review-compare tbody,.student-review-compare tr,.student-review-compare th,.student-review-compare td{display:block;width:100%;box-sizing:border-box}
    .student-review-compare tbody{display:grid;gap:10px;padding:10px}
    .student-review-compare tbody tr{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"no field" "saved saved" "proposed proposed";border:1px solid var(--line);border-radius:12px;background:var(--surface,#fff);overflow:hidden;box-shadow:0 1px 2px rgba(15,23,42,.04)}
    .student-review-compare tbody td.auto-no-cell{grid-area:no;display:flex;align-items:center;padding:7px 8px 7px 12px;border:0;border-bottom:1px solid var(--line);background:var(--canvas,#f8fafc);font-size:12.5px;font-weight:800;color:#1d4ed8;font-variant-numeric:tabular-nums;width:auto !important}
    .student-review-compare tbody td.auto-no-cell::before{content:"#";display:inline;margin:0 1px 0 0;font-size:inherit;font-weight:800;color:inherit}
    .student-review-compare tbody th[scope="row"]{grid-area:field;display:flex;align-items:center;justify-content:flex-end;text-align:right !important;padding:7px 12px 7px 6px;border:0;border-bottom:1px solid var(--line);background:var(--canvas,#f8fafc);font-size:13px;font-weight:700;color:var(--ink,#0f172a)}
    .student-review-compare tbody th[scope="row"]::before{display:none}
    .student-review-compare tbody td:nth-child(3){grid-area:saved}
    .student-review-compare tbody td:nth-child(4){grid-area:proposed;border-bottom:0;font-weight:600}
    .student-review-compare tbody td:nth-child(3),
    .student-review-compare tbody td:nth-child(4){display:flex;align-items:baseline;justify-content:space-between;gap:12px;border:0;border-bottom:1px solid var(--line);padding:8px 12px;text-align:right !important;font-size:13px;overflow-wrap:break-word;word-break:normal}
    .student-review-compare tbody td:nth-child(4){border-bottom:0}
    .student-review-compare tbody td:nth-child(3)::before,
    .student-review-compare tbody td:nth-child(4)::before{content:attr(data-label);display:inline;flex:0 0 auto;max-width:44%;margin:0;font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.03em;text-align:left;overflow-wrap:normal;word-break:normal}
    html[data-theme="dark"] .student-review-list tbody tr,
    html[data-theme="dark"] .student-review-compare tbody tr{background:#0f172a;border-color:#334155}
    html[data-theme="dark"] .student-review-compare tbody td.auto-no-cell,
    html[data-theme="dark"] .student-review-compare tbody th[scope="row"]{background:rgba(30,41,59,.75)}
    html[data-theme="dark"] .student-review-compare tbody td.auto-no-cell{color:#93c5fd}
    html[data-theme="dark"] .student-review-compare tbody th[scope="row"]{color:#f1f5f9}
    html[data-theme="dark"] .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(1),
    html[data-theme="dark"] .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(5){background:rgba(30,41,59,.75)}
    html[data-theme="dark"] .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(1){color:#93c5fd}
    html[data-theme="dark"] .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(2){color:#f1f5f9}
}
@media (max-width: 640px) {
    .student-review-list .table-scroll{overflow:visible}
    .student-review-list thead{display:none}
    .student-review-list table,.student-review-list tbody,.student-review-list tr,.student-review-list td{display:block;width:100%;box-sizing:border-box}
    .student-review-list tbody{display:grid;gap:10px;padding:10px}
    .student-review-list tbody tr{border:1px solid var(--line);border-radius:12px;background:var(--surface,#fff);overflow:hidden;box-shadow:0 1px 2px rgba(15,23,42,.04)}
    .student-review-list tbody tr:not(:has(td[colspan])){display:grid;grid-template-columns:1fr auto;grid-template-areas:"no status" "name name" "nipd nipd" "rombel rombel" "date date" "action action"}
    .student-review-list tbody td{border:0;border-bottom:1px solid var(--line);padding:8px 12px;text-align:left !important;width:100% !important;white-space:normal !important}
    .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(1){grid-area:no;display:flex;align-items:center;padding:7px 12px;background:var(--canvas,#f8fafc);font-size:12.5px;font-weight:800;color:#1d4ed8;font-variant-numeric:tabular-nums}
    .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(1)::before{content:"#";display:inline;margin:0 1px 0 0;font-size:inherit;font-weight:800;color:inherit}
    .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(5){grid-area:status;display:flex;align-items:center;justify-content:flex-end;padding:6px 12px;background:var(--canvas,#f8fafc);text-align:right !important}
    .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(5)::before{display:none}
    .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(2){grid-area:name;padding:10px 12px 8px;font-size:15px;font-weight:700;color:var(--ink,#0f172a);line-height:1.35}
    .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(2)::before{display:none}
    .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(3){grid-area:nipd}
    .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(4){grid-area:rombel}
    .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(6){grid-area:date}
    .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(3),
    .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(4),
    .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(6){display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 12px;font-size:13px;text-align:right !important;font-variant-numeric:tabular-nums}
    .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(3)::before,
    .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(4)::before,
    .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(6)::before{content:attr(data-label);display:inline;margin:0;flex:0 0 auto;font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.03em;text-align:left}
    .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(7){grid-area:action;padding:9px 12px;border-bottom:0}
    .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(7)::before{display:none}
    .student-review-list tbody td[colspan]{border-bottom:0;padding:16px 12px;text-align:center !important}
    .student-review-list tbody td[colspan]::before{display:none}
    .student-review-list .table-link{width:100%;min-height:44px}
    .student-review-decision textarea{font-size:16px}
    .student-review-back{width:100%;min-height:44px;justify-content:center;text-align:center;box-sizing:border-box}
    .student-review-compare thead,
    .student-review-compare caption.table-sort-caption{display:none}
    .student-review-compare table,.student-review-compare tbody,.student-review-compare tr,.student-review-compare th,.student-review-compare td{display:block;width:100%;box-sizing:border-box}
    .student-review-compare tbody{display:grid;gap:10px;padding:10px}
    .student-review-compare tbody tr{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"no field" "saved saved" "proposed proposed";border:1px solid var(--line);border-radius:12px;background:var(--surface,#fff);overflow:hidden;box-shadow:0 1px 2px rgba(15,23,42,.04)}
    .student-review-compare tbody td.auto-no-cell{grid-area:no;display:flex;align-items:center;padding:7px 8px 7px 12px;border:0;border-bottom:1px solid var(--line);background:var(--canvas,#f8fafc);font-size:12.5px;font-weight:800;color:#1d4ed8;font-variant-numeric:tabular-nums;width:auto !important}
    .student-review-compare tbody td.auto-no-cell::before{content:"#";display:inline;margin:0 1px 0 0;font-size:inherit;font-weight:800;color:inherit}
    .student-review-compare tbody th[scope="row"]{grid-area:field;display:flex;align-items:center;justify-content:flex-end;text-align:right !important;padding:7px 12px 7px 6px;border:0;border-bottom:1px solid var(--line);background:var(--canvas,#f8fafc);font-size:13px;font-weight:700;color:var(--ink,#0f172a)}
    .student-review-compare tbody th[scope="row"]::before{display:none}
    .student-review-compare tbody td:nth-child(3){grid-area:saved}
    .student-review-compare tbody td:nth-child(4){grid-area:proposed;border-bottom:0;font-weight:600}
    .student-review-compare tbody td:nth-child(3),
    .student-review-compare tbody td:nth-child(4){display:flex;align-items:baseline;justify-content:space-between;gap:12px;border:0;border-bottom:1px solid var(--line);padding:8px 12px;text-align:right !important;font-size:13px;overflow-wrap:break-word;word-break:normal}
    .student-review-compare tbody td:nth-child(4){border-bottom:0}
    .student-review-compare tbody td:nth-child(3)::before,
    .student-review-compare tbody td:nth-child(4)::before{content:attr(data-label);display:inline;flex:0 0 auto;max-width:44%;margin:0;font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.03em;text-align:left;overflow-wrap:normal;word-break:normal}
    html[data-theme="dark"] .student-review-list tbody tr,
    html[data-theme="dark"] .student-review-compare tbody tr{background:#0f172a;border-color:#334155}
    html[data-theme="dark"] .student-review-compare tbody td.auto-no-cell,
    html[data-theme="dark"] .student-review-compare tbody th[scope="row"]{background:rgba(30,41,59,.75)}
    html[data-theme="dark"] .student-review-compare tbody td.auto-no-cell{color:#93c5fd}
    html[data-theme="dark"] .student-review-compare tbody th[scope="row"]{color:#f1f5f9}
    html[data-theme="dark"] .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(1),
    html[data-theme="dark"] .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(5){background:rgba(30,41,59,.75)}
    html[data-theme="dark"] .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(1){color:#93c5fd}
    html[data-theme="dark"] .student-review-list tbody tr:not(:has(td[colspan])) td:nth-child(2){color:#f1f5f9}
}

/* Teacher directory shares the readable sorting controls. */
/* Teacher, Student, Family & Employee directories: unified standard — no desktop horizontal scroll, pill actions, mobile card-row. */
.teacher-list-panel .table-scroll,
.student-list-panel .table-scroll,
.family-list-panel .table-scroll,
.employee-list-panel .table-scroll{max-width:100%}
.teacher-list-panel table,
.student-list-panel .table-scroll table,
.family-list-panel table,
.employee-list-panel .table-scroll table{width:100%;min-width:0 !important;table-layout:auto}
.teacher-list-panel th,
.student-list-panel th,
.family-list-panel th,
.employee-list-panel th{padding:10px 10px;background:#f5f7fc;font-size:12.5px;font-weight:600;color:#43516a;vertical-align:middle}
.teacher-list-panel td,
.student-list-panel td,
.family-list-panel td,
.employee-list-panel td{padding:12px 10px;font-size:13px;vertical-align:middle;overflow-wrap:anywhere;word-break:normal}
.teacher-list-panel th:first-child,.teacher-list-panel td:first-child,
.student-list-panel th:first-child,.student-list-panel td:first-child,
.family-list-panel th:first-child,.family-list-panel td:first-child,
.employee-list-panel th:first-child,.employee-list-panel td:first-child,
.employee-list-panel .employee-row-number{width:46px;min-width:44px;text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap}
.teacher-list-panel th:last-child,.teacher-list-panel td:last-child,
.student-list-panel th:last-child,.student-list-panel td:last-child,
.family-list-panel th:last-child,.family-list-panel td:last-child,
.employee-list-panel th:last-child,.employee-list-panel td:last-child{width:1%;text-align:center;white-space:nowrap}
.teacher-list-panel td:last-child .master-row-actions,
.student-list-panel td:last-child .master-row-actions,
.family-list-panel td:last-child .master-row-actions,
.employee-list-panel td:last-child .master-row-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:6px}
.student-list-panel td:last-child a+a{margin-left:0}
.teacher-list-panel .table-link,
.student-list-panel .table-link,
.family-list-panel .table-link,
.employee-list-panel .table-link{display:inline-flex;align-items:center;justify-content:center;padding:5px 12px;border-radius:999px;border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8;font-size:12px;font-weight:600;text-decoration:none;min-height:32px;transition:background-color .15s ease,border-color .15s ease}
.teacher-list-panel .table-link:hover,
.student-list-panel .table-link:hover,
.family-list-panel .table-link:hover,
.employee-list-panel .table-link:hover{background:#dbeafe;border-color:#93c5fd;text-decoration:none}
html[data-theme="dark"] .teacher-list-panel .table-link,
html[data-theme="dark"] .student-list-panel .table-link,
html[data-theme="dark"] .family-list-panel .table-link,
html[data-theme="dark"] .employee-list-panel .table-link{background:rgba(37,99,235,.22);border-color:#1d4ed8;color:#93c5fd}
html[data-theme="dark"] .teacher-list-panel .table-link:hover,
html[data-theme="dark"] .student-list-panel .table-link:hover,
html[data-theme="dark"] .family-list-panel .table-link:hover,
html[data-theme="dark"] .employee-list-panel .table-link:hover{background:rgba(37,99,235,.35)}
.employee-list-panel .role-badge{white-space:normal;margin:2px 3px 2px 0}
.teacher-list-panel .table-scroll:focus-visible,
.student-list-panel .table-scroll:focus-visible,
.family-list-panel .table-scroll:focus-visible,
.employee-list-panel .table-scroll:focus-visible{outline:2px solid #2563eb;outline-offset:-2px}
@media(max-width:1100px){
    .teacher-list-panel th,.teacher-list-panel td,
    .student-list-panel th,.student-list-panel td,
    .family-list-panel th,.family-list-panel td,
    .employee-list-panel th,.employee-list-panel td{padding:9px 7px;font-size:12.5px}
}

.teacher-sheet .teacher-row-number{width:56px;min-width:56px;text-align:center;white-space:nowrap;font-size:13px;font-variant-numeric:tabular-nums}
.teacher-list-panel td:first-child{font-variant-numeric:tabular-nums;font-size:13px}

.student-review-list .review-row-number{text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums}

/* Accounts and roles share the master-directory header treatment. */
.account-directory-panel .table-scroll{max-width:100%}
.account-directory-panel table{width:100%;min-width:0;table-layout:auto}
.account-directory-panel th{padding:10px 10px;background:#f5f7fc;font-size:12.5px;font-weight:600;color:#43516a;vertical-align:middle}
.account-directory-panel td{padding:12px 10px;font-size:13px;vertical-align:middle;overflow-wrap:anywhere;word-break:normal}
.account-directory-panel th:first-child,.account-directory-panel td:first-child{width:46px;min-width:44px;text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap}
.account-directory-panel th:nth-child(2),.account-directory-panel td:nth-child(2){width:13%;font-variant-numeric:tabular-nums}
.account-directory-panel th:nth-child(3),.account-directory-panel td:nth-child(3){width:21%}
.account-directory-panel th:nth-child(4),.account-directory-panel td:nth-child(4){width:11%;white-space:nowrap}
.account-directory-panel th:nth-child(5),.account-directory-panel td:nth-child(5){width:17%}
.account-directory-panel th:nth-child(6),.account-directory-panel td:nth-child(6){width:18%}
.account-directory-panel th:nth-child(7),.account-directory-panel td:nth-child(7){width:9%;text-align:center;white-space:nowrap}
.account-directory-panel th:last-child,.account-directory-panel td:last-child{width:1%;text-align:center;white-space:nowrap}
.account-directory-panel .table-link{display:inline-flex;align-items:center;justify-content:center;padding:6px 14px;border-radius:999px;border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8;font-size:12.5px;font-weight:600;text-decoration:none;min-height:34px;transition:background-color .15s ease,border-color .15s ease}
.account-directory-panel .table-link:hover{background:#dbeafe;border-color:#93c5fd;text-decoration:none}
html[data-theme="dark"] .account-directory-panel .table-link{background:rgba(37,99,235,.22);border-color:#1d4ed8;color:#93c5fd}
html[data-theme="dark"] .account-directory-panel .table-link:hover{background:rgba(37,99,235,.35)}
.account-directory-panel .role-badge{white-space:normal;margin:2px 3px 2px 0}
.account-directory-panel .table-scroll:focus-visible{outline:2px solid #2563eb;outline-offset:-2px}
@media(max-width:1100px){
    .account-directory-panel th,.account-directory-panel td{padding:9px 7px;font-size:12.5px}
    .account-directory-panel th:nth-child(4),.account-directory-panel td:nth-child(4){white-space:normal}
}
@media (min-width: 641px) and (max-width: 768px) {
    .account-directory-panel .table-scroll{overflow:visible}
    .account-directory-panel thead{display:none}
    .account-directory-panel table,.account-directory-panel tbody,.account-directory-panel tr,.account-directory-panel td{display:block;width:100%;box-sizing:border-box}
    .account-directory-panel tbody{display:grid;gap:10px;padding:10px}
    .account-directory-panel tbody tr{border:1px solid var(--line);border-radius:12px;background:var(--surface,#fff);overflow:hidden;box-shadow:0 1px 2px rgba(15,23,42,.04)}
    .account-directory-panel tbody td{border:0;border-bottom:1px solid var(--line);padding:8px 12px;text-align:left !important;width:100% !important;white-space:normal !important}
    .account-directory-panel tbody td:last-child{border-bottom:0}
    .account-directory-panel tbody td::before{content:attr(data-label);display:block;font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.03em;margin-bottom:3px}
    .account-directory-panel tbody td[data-ui-card="no"]{display:flex !important;align-items:center;justify-content:space-between;gap:8px;padding:6px 12px !important;background:var(--canvas,#f8fafc);font-size:12.5px;font-weight:800;color:#1d4ed8;font-variant-numeric:tabular-nums}
    .account-directory-panel tbody td[data-ui-card="no"]::before{margin-bottom:0;flex:0 0 auto;font-size:10.5px}
    .account-directory-panel tbody td[data-ui-card="inline"]{display:flex !important;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px !important;text-align:right !important;font-variant-numeric:tabular-nums}
    .account-directory-panel tbody td[data-ui-card="inline"]::before{margin-bottom:0;flex:0 0 auto;max-width:46%;text-align:left}
    .account-directory-panel tbody td:last-child:has(.table-link)::before{display:none}
    .account-directory-panel tbody td[colspan]::before{display:none}
    .account-directory-panel .table-link{width:100%;min-height:44px}
    html[data-theme="dark"] .account-directory-panel tbody tr{background:#0f172a;border-color:#334155}
    html[data-theme="dark"] .account-directory-panel tbody td[data-ui-card="no"]{background:rgba(30,41,59,.75);color:#93c5fd}
}
@media (max-width: 640px) {
    .account-directory-panel .table-scroll{overflow:visible}
    .account-directory-panel thead{display:none}
    .account-directory-panel table,.account-directory-panel tbody,.account-directory-panel tr,.account-directory-panel td{display:block;width:100%;box-sizing:border-box}
    .account-directory-panel tbody{display:grid;gap:10px;padding:10px}
    .account-directory-panel tbody tr{border:1px solid var(--line);border-radius:12px;background:var(--surface,#fff);overflow:hidden;box-shadow:0 1px 2px rgba(15,23,42,.04)}
    .account-directory-panel tbody td{border:0;border-bottom:1px solid var(--line);padding:8px 12px;text-align:left !important;width:100% !important;white-space:normal !important}
    .account-directory-panel tbody td:last-child{border-bottom:0}
    .account-directory-panel tbody td::before{content:attr(data-label);display:block;font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.03em;margin-bottom:3px}
    .account-directory-panel tbody td[data-ui-card="no"]{display:flex !important;align-items:center;justify-content:space-between;gap:8px;padding:6px 12px !important;background:var(--canvas,#f8fafc);font-size:12.5px;font-weight:800;color:#1d4ed8;font-variant-numeric:tabular-nums}
    .account-directory-panel tbody td[data-ui-card="no"]::before{margin-bottom:0;flex:0 0 auto;font-size:10.5px}
    .account-directory-panel tbody td[data-ui-card="inline"]{display:flex !important;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px !important;text-align:right !important;font-variant-numeric:tabular-nums}
    .account-directory-panel tbody td[data-ui-card="inline"]::before{margin-bottom:0;flex:0 0 auto;max-width:46%;text-align:left}
    .account-directory-panel tbody td:last-child:has(.table-link)::before{display:none}
    .account-directory-panel tbody td[colspan]::before{display:none}
    .account-directory-panel .table-link{width:100%;min-height:44px}
    html[data-theme="dark"] .account-directory-panel tbody tr{background:#0f172a;border-color:#334155}
    html[data-theme="dark"] .account-directory-panel tbody td[data-ui-card="no"]{background:rgba(30,41,59,.75);color:#93c5fd}
}
/* Student extracurricular applications and scoped reviewer controls. */
.eskul-enrollment h2{font-size:20px;margin:22px 0 8px}.eskul-enrollment>.muted{font-size:14px;line-height:1.8}
.eskul-choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:18px;margin:20px 0}
.eskul-choice{padding:22px;display:flex;flex-direction:column;gap:12px;min-width:0}.eskul-choice h3{font-size:19px;overflow-wrap:anywhere}.eskul-choice p{font-size:14px;line-height:1.8;overflow-wrap:anywhere}.eskul-choice form{margin-top:auto}.eskul-choice .primary-button{width:auto;min-height:44px}.eskul-choice .badge{align-self:flex-start;white-space:normal}
.eskul-application-history{margin-block:24px}.eskul-application-history table{width:100%;min-width:0}.eskul-application-history th,.eskul-application-history td{font-size:13px;vertical-align:top}.eskul-application-history .table-scroll{max-width:100%}.eskul-application-history .panel-heading p{font-size:13px;line-height:1.8}
.eskul-review-actions{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-width:230px}.eskul-review-actions button{width:auto;min-height:44px}.eskul-review-actions summary{min-height:44px;padding:10px 12px;border:1px solid #fecaca;border-radius:9px;color:#9f1239;cursor:pointer}.eskul-review-actions details{width:100%}.eskul-review-actions textarea{display:block;box-sizing:border-box;width:100%;border:1px solid var(--line);border-radius:8px;padding:12px;font:inherit;margin-block:8px}.eskul-review-actions label{display:block;font-size:13px;margin-top:12px}
.eskul-pending-summary{padding:22px;margin-bottom:22px;border-color:#f4d18a;background:#fffbeb}.eskul-pending-summary h2{font-size:17px;color:#854d0e}.eskul-pending-summary ul{padding-inline-start:22px;margin:12px 0}.eskul-pending-summary p,.eskul-pending-summary li{font-size:14px;line-height:1.8}
@media(max-width:600px){.eskul-enrollment .page-heading>a{width:100%;box-sizing:border-box;text-align:center}.eskul-choice{padding:18px}.eskul-choice .primary-button{width:100%}.eskul-review-actions textarea{font-size:16px}}
/* Simple extracurricular management overview and one-form setup. */
.eskul-management .page-heading{align-items:flex-start;gap:16px}.eskul-management .page-heading>div:first-child{flex:1 1 280px;min-width:0}.eskul-management .page-heading p,.eskul-quick-setup .page-heading p{max-width:720px;font-size:14px;line-height:1.8;text-align:justify;text-align-last:left}.eskul-management .page-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;flex:0 1 auto}.eskul-management .page-actions>*{min-height:44px;margin:0!important;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
.eskul-management-filters{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;gap:14px;align-items:flex-end}.eskul-management-filters>div{min-width:0;flex:1 1 190px}.eskul-management-filters .eskul-filter-actions{flex:0 0 auto;display:flex;gap:8px;align-items:center}.eskul-management-filters .eskul-filter-actions>*{min-height:44px;margin:0!important;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}.eskul-management-filters input,.eskul-management-filters select{width:100%;box-sizing:border-box;min-height:44px}
.eskul-management-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:18px;margin:18px 0}.eskul-management-card{padding:20px;min-width:0;display:flex;flex-direction:column;gap:12px}.eskul-management-card h2{font-size:20px;line-height:1.35;margin:2px 0;overflow-wrap:anywhere}.eskul-management-card p{font-size:13.5px;line-height:1.55;margin:0;overflow-wrap:anywhere;text-align:justify;text-align-last:left}.eskul-management-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.eskul-management-card-heading>div{min-width:0}.eskul-management-card-heading .badge{flex-shrink:0}.eskul-management-staff{margin:0;min-height:0}.eskul-management-counts{display:flex;flex-wrap:wrap;gap:8px;margin:0;font-size:13px}.eskul-management-counts>span{background:#f5f7fc;border-radius:8px;padding:6px 10px}.eskul-management-counts .eskul-pending-count{background:#fff5d8;color:#854d0e}.eskul-management-actions{display:flex;gap:8px;flex-wrap:wrap;padding-top:14px;margin-top:auto;border-top:1px solid var(--line)}.eskul-management-actions>a{min-height:40px;margin:0!important;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;white-space:nowrap}
html[data-theme="dark"] .eskul-management-filters{background:#0f172a;border-color:#334155}
html[data-theme="dark"] .eskul-management-counts>span{background:rgba(255,255,255,.06)}
@media(max-width:640px){.eskul-management-filters .eskul-filter-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.eskul-management-filters .eskul-filter-actions>*{width:100%}.eskul-management-filters input,.eskul-management-filters select{font-size:16px}.eskul-management-actions>a{min-height:44px}.rp-pub-actions>a{min-height:44px}}
.eskul-quick-setup{max-width:1000px;margin-inline:auto}.eskul-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.eskul-quick-grid>div{min-width:0}.eskul-quick-setup .input-help{line-height:1.7;text-align:start}.eskul-quick-setup .form-actions{margin-top:22px;flex-wrap:wrap;gap:12px}.eskul-quick-setup .teacher-picker{max-width:100%}
@media(max-width:700px){.eskul-quick-grid{grid-template-columns:1fr}.eskul-quick-setup .page-heading{align-items:flex-start;flex-direction:column}.eskul-management .page-actions{justify-content:flex-start}.eskul-management .page-heading{flex-direction:column;align-items:flex-start}.eskul-management-filters>div{flex-basis:100%}.eskul-management-card{padding:18px}.eskul-management-actions>a{flex:1 1 130px}.eskul-quick-setup select,.eskul-quick-setup input{font-size:16px}}
.eskul-quick-setup .teacher-picker-popup{position:static;margin-top:6px;min-width:0}
.eskul-quick-grid>div>label{display:block;margin:0 0 8px;font-size:13px;font-weight:600}
.eskul-quick-grid>div>input,.eskul-quick-grid>div>select:not([hidden]){display:block;box-sizing:border-box;width:100%;min-width:0;min-height:46px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fbfcff;color:var(--ink);font:inherit;font-size:14px}
.eskul-quick-setup .input-help{font-size:13px;margin-top:8px}
@media(max-width:700px){.eskul-quick-grid>div>input,.eskul-quick-grid>div>select:not([hidden]){font-size:16px}}
/* Extracurricular report: readable metrics instead of a compressed wide table. */
.eskul-report{min-width:0}.eskul-report p{text-align:justify;text-align-last:left}.eskul-report .page-heading{align-items:flex-start}.eskul-report .page-heading p{font-size:14px;line-height:1.8}
.eskul-report-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:14px;padding:18px;border:1px solid var(--line);border-radius:14px;background:#fff}.eskul-report-filters>div{flex:1 1 190px;min-width:0}.eskul-report-filters select{width:100%;min-width:0;min-height:44px;box-sizing:border-box}
.eskul-report-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:20px;margin-block:22px}.eskul-report-card{padding:22px;min-width:0}.eskul-report-card p{font-size:14px;line-height:1.8;overflow-wrap:anywhere}.eskul-report-card-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}.eskul-report-card-heading>div{min-width:0}.eskul-report-card h2{font-size:22px;line-height:1.5;margin:4px 0;overflow-wrap:anywhere}.eskul-report-card-heading .badge{flex-shrink:0}
.eskul-report-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.eskul-report-metrics>div{background:#f6f8fc;border:1px solid #e7ebf4;border-radius:12px;padding:16px;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.eskul-report-metrics dt{font-size:13px;color:#586780;line-height:1.6}.eskul-report-metrics dd{margin:8px 0 0;font-size:26px;font-weight:700;line-height:1.4;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.eskul-report-metrics dd>span{font-size:15px;font-weight:500}.eskul-report-metrics dd>.eskul-report-empty-metric{font-size:14px}.eskul-report-metrics p{margin-top:4px;font-size:12px}
.eskul-report-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.eskul-report-actions>a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;box-sizing:border-box}.eskul-report-details{border-top:1px solid var(--line);margin-top:20px;padding-top:8px}.eskul-report-details summary,.eskul-report-guide summary{cursor:pointer;min-height:44px;padding:10px 0;font-size:13px;font-weight:600}.eskul-report-details dl{display:grid;gap:10px;margin-block:10px 16px}.eskul-report-details dt{font-size:13px;color:#586780}.eskul-report-details dd{margin:5px 0 0;font-size:14px;line-height:1.8;overflow-wrap:anywhere}.eskul-report-detail-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line)}.eskul-report-detail-row dd{margin:0;font-weight:700;font-variant-numeric:tabular-nums}.eskul-report-coach-block{padding:8px 0 12px;border-bottom:1px solid var(--line)}.eskul-report-coach-chips{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:8px!important}.eskul-report-coach-chip{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:8px 6px;border:1px solid #e2eaf6;border-radius:10px;background:#f6f8fc;min-width:0;line-height:1.3}.eskul-report-coach-chip span{font-size:11.5px;color:#586780;font-weight:600}.eskul-report-coach-chip strong{margin-top:3px;font-size:16px;font-weight:700;color:var(--ink,#0f172a);font-variant-numeric:tabular-nums}html[data-theme="dark"] .eskul-report-coach-chip{background:#1e293b;border-color:#334155}html[data-theme="dark"] .eskul-report-coach-chip span{color:#94a3b8}html[data-theme="dark"] .eskul-report-coach-chip strong{color:#f1f5f9}.eskul-report-guide{margin-block:20px;padding:12px 18px;border:1px solid var(--line);border-radius:12px;background:#fff}.eskul-report-guide p{font-size:13px;line-height:1.8}
@media(max-width:600px){.eskul-report .page-heading{flex-direction:column}.eskul-report .page-heading>a{min-height:44px}.eskul-report-filters>div{flex-basis:100%}.eskul-report-filters select{font-size:16px}.eskul-report-card{padding:18px}.eskul-report-metrics>div{padding:12px}.eskul-report-actions>a{flex:1 1 125px}}

.dashboard-module-context{padding:24px}.dashboard-module-context h2{font-size:22px;margin-bottom:12px}.dashboard-module-context p{font-size:14px;line-height:1.8;text-align:justify;text-align-last:left;margin-bottom:16px}.dashboard-module-context .page-actions{justify-content:flex-start;flex-wrap:wrap;gap:12px}
/* Student class requests and scoped bulk review. */
.class-join-page{max-width:100%;margin-inline:auto;min-width:0}.class-join-page>h2{font-size:20px;margin:24px 0 14px}.class-join-page p{text-align:justify;text-align-last:left;font-size:14px;line-height:1.8}.class-join-card{padding:22px;margin-bottom:16px;min-width:0;overflow-wrap:anywhere}.class-join-card h2,.class-join-card h3{font-size:19px;margin-bottom:10px}.class-join-card p{margin-block:10px}.class-join-form{display:grid;gap:12px}.class-join-form>label{font-size:13px;font-weight:600}.class-join-form>select,.class-join-form>textarea{box-sizing:border-box;width:100%;min-width:0;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font:inherit}.class-join-form>select{min-height:46px}.class-join-form>button{justify-self:start}.class-join-status{display:inline-flex;align-items:center;padding:7px 12px;border-radius:10px;font-size:13px;font-weight:600}.class-join-status.pending{background:#fff4d1;color:#805600}.class-join-status.approved{background:#dcfce7;color:#166534}.class-join-status.rejected{background:#fee2e2;color:#991b1b}.class-join-review-title{display:flex;gap:12px;align-items:center}.class-join-review-title>input{width:22px;height:22px;flex-shrink:0}.class-join-review-title>label{min-height:44px;display:flex;align-items:center;font-weight:600}.class-join-card .page-actions{justify-content:flex-start;flex-wrap:wrap;gap:12px}
@media(max-width:600px){.class-join-card{padding:18px}.class-join-form>select,.class-join-form>textarea{font-size:16px}.class-join-form .page-actions>button{flex:1 1 140px}.class-join-page .list-filters>div{width:100%}}
/* Multi-row teacher timetable requests. */
.teaching-page{min-width:0;max-width:1400px;margin-inline:auto}.teaching-page p{text-align:justify;text-align-last:left;font-size:14px;line-height:1.8}.teaching-page>p:not(.muted):not(:has(a)){display:flex;align-items:center;justify-content:center;width:100%;margin:0 0 14px;padding:10px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface,#fff);font-size:13px;font-weight:600;color:var(--muted);text-align:center;box-sizing:border-box}html[data-theme="dark"] .teaching-page>p:not(.muted):not(:has(a)){background:#0f172a;border-color:#334155;color:#cbd5e1}.teaching-page>h2{font-size:21px;margin:24px 0 16px}.teaching-card{padding:22px;margin-bottom:18px;min-width:0;overflow-wrap:anywhere}.teaching-card h2,.teaching-card h3{font-size:19px;margin-bottom:10px}.teaching-card p{margin-block:10px}.teaching-identity{display:flex;gap:12px 36px;flex-wrap:wrap;margin-bottom:16px}.teaching-row{display:grid;grid-template-columns:minmax(150px,2fr) minmax(130px,1.5fr) minmax(100px,1fr) minmax(125px,1fr) minmax(125px,1fr) auto;align-items:end;gap:12px;padding:18px 0;border-top:1px solid var(--line)}.teaching-row>div{min-width:0}.teaching-row label,.teaching-settings-form label{display:block;font-size:13px;font-weight:600;margin-bottom:8px}.teaching-row select,.teaching-settings-form input,.teaching-settings-form select,.teaching-settings-form textarea{box-sizing:border-box;width:100%;min-width:0;min-height:46px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font:inherit;font-size:14px}.teaching-row>button{min-height:46px}.teaching-time-help{grid-column:1/-1;margin:0!important}.teaching-time-help:empty{display:none}.teaching-combined-option{grid-column:1/-1;display:inline-flex!important;align-items:center;gap:8px;font-size:13px;font-weight:600;margin:4px 0 0!important;cursor:pointer}.teaching-combined-option input[type="checkbox"]{width:18px!important;height:18px!important;min-height:18px!important;margin:0;flex:0 0 auto;accent-color:var(--primary,#1d4ed8)}.teaching-card .page-actions{justify-content:flex-start;flex-wrap:wrap;gap:12px;margin-top:16px}.teaching-settings-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.teaching-settings-form>button{width:auto;margin-top:12px}.teaching-check{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14px;margin-bottom:12px}.teaching-check input{width:22px;height:22px}.teaching-period-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:10px;width:100%}.teaching-period-list p{background:#f5f7fc;padding:10px 14px;border-radius:8px}
@media(max-width:1200px){.teaching-row{grid-template-columns:repeat(3,minmax(0,1fr))}.teaching-row>button{justify-self:start}}
@media(max-width:700px){.teaching-row{grid-template-columns:repeat(2,minmax(0,1fr));padding-block:20px}.teaching-row>div:first-child,.teaching-row>div:nth-child(2){grid-column:1/-1}.teaching-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.teaching-card{padding:18px}.teaching-row select,.teaching-settings-form input,.teaching-settings-form select,.teaching-settings-form textarea{font-size:16px}.teaching-card .page-actions>button{flex:1 1 150px}.teaching-identity{gap:0}.teaching-page .page-heading{flex-direction:column;align-items:flex-start}}
/* Private SPP transfer confirmations and accessible payment dialogs. */
.spp-confirmations-page{max-width:1100px;margin-inline:auto;min-width:0}.spp-confirmations-page p,.spp-confirmation-card p,.spp-dialog p{text-align:justify;text-align-last:left;font-size:14px;line-height:1.8}.spp-confirmation-card{padding:22px;margin-block:20px;min-width:0;overflow-wrap:anywhere}.spp-confirmation-card h2{font-size:21px;margin-bottom:10px}.spp-confirmation-card h3{font-size:18px;margin-block:12px}.spp-confirmation-card p{margin-block:10px}.spp-confirmation-card .page-actions{justify-content:flex-start;flex-wrap:wrap;gap:12px;margin-top:14px}.spp-confirmation-form{display:grid;gap:16px;margin-top:20px}.spp-confirmation-form>div>label{display:block;font-size:13px;font-weight:600;margin-bottom:8px}.spp-confirmation-form input:not([type=checkbox]):not([type=hidden]),.spp-confirmation-form textarea,.spp-confirmation-form select{box-sizing:border-box;min-width:0;width:100%;min-height:46px;border:1px solid var(--line);padding:12px;border-radius:10px;background:#fff;color:var(--ink);font:inherit}.spp-confirmation-form>button{justify-self:start}.spp-verified{display:flex;gap:12px;align-items:flex-start;font-size:14px;line-height:1.7;min-height:44px}.spp-verified input{width:22px;height:22px;flex-shrink:0;margin-top:2px}.spp-confirmation-history{border-top:1px solid var(--line);margin-top:18px;padding-top:12px}.spp-dialog{box-sizing:border-box;width:min(600px,calc(100vw - 32px));max-height:85dvh;overflow:auto;border:1px solid var(--line);padding:24px;border-radius:18px;color:var(--ink);background:#fff;box-shadow:0 24px 70px #13244744}.spp-dialog::backdrop{background:#13244788}.spp-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.spp-dialog h2{font-size:22px;line-height:1.4}.spp-dialog li{font-size:14px;line-height:1.8;margin-block:10px;overflow-wrap:anywhere}.spp-dialog ul{padding-inline-start:20px;margin-bottom:20px}.spp-alert-launcher{position:fixed;right:20px;bottom:82px;z-index:35;border:0;border-radius:12px;background:#2563eb;color:#fff;padding:12px 16px;min-height:44px;font:inherit;font-size:13px;font-weight:700;box-shadow:0 6px 24px #2563eb2e;cursor:pointer}.spp-alert-launcher strong{display:inline-block;background:#fff;color:#1d4ed8;border-radius:12px;padding:2px 8px;margin-left:6px}
@media(max-width:600px){.spp-confirmation-card{padding:18px}.spp-dialog{padding:18px}.spp-dialog h2{font-size:20px}.spp-dialog>header{gap:10px}.spp-confirmation-form input:not([type=checkbox]):not([type=hidden]),.spp-confirmation-form textarea,.spp-confirmation-form select{font-size:16px}.spp-confirmation-card .page-actions>button{flex:1 1 180px}.spp-alert-launcher{right:12px;bottom:112px;max-width:calc(100vw - 24px)}.spp-confirmations-page .list-filters>div{width:100%}}

.account-avatar-link{overflow:hidden;flex-shrink:0}.account-avatar-link img{width:100%;height:100%;object-fit:cover;display:block}.account-avatar-link:focus-visible{outline:3px solid var(--primary);outline-offset:3px}.account-photo-page{max-width:640px;margin-inline:auto}.account-photo-panel{padding:24px}.account-photo-preview{width:160px;height:160px;max-width:100%;margin:0 auto 24px;overflow:hidden;border-radius:16px;background:var(--soft);display:grid;place-items:center}.account-photo-preview img{display:block;width:100%;height:100%;object-fit:cover}.account-photo-preview [hidden]{display:none}.account-photo-preview .icon{width:72px;height:72px;color:var(--primary)}.account-photo-panel .page-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.account-photo-panel .notice{text-align:justify;text-align-last:left}.account-photo-panel .primary-button{margin-top:0}

.login-features{margin-block-start:24px;min-width:0;container-type:inline-size}.login-features h2{text-align:start;font-size:14px;line-height:1.5;letter-spacing:0;margin:0 0 12px;color:var(--ink)}.login-features-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;gap:8px;list-style:none;margin:0;padding:0}.login-features-list li{display:flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere;background:#fff;border:1px solid var(--line);border-radius:9px;padding:8px 11px;font-size:12px;line-height:1.5;color:#344563;text-align:center}.login-intro .login-features>p.input-help{font-size:12px;line-height:1.7;text-align:start;margin-block:12px 0}.login-intro:has(.login-features){min-width:0}

@container (min-width:420px){.login-features-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@container (min-width:560px){.login-features-list{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Shared form readability on touch layouts; retain desktop sizing. */
.homeroom-management .table-scroll table{width:100%;min-width:0}
.homeroom-management .homeroom-actions{display:flex;flex-wrap:wrap;gap:8px;min-width:160px}
.homeroom-management .homeroom-actions .secondary-button{min-width:120px;min-height:44px;white-space:normal;word-break:normal;overflow-wrap:normal}
@media(max-width:1000px){
.dashboard-page .dashboard-content :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea){font-size:16px;min-height:44px;min-width:0;max-width:100%;box-sizing:border-box}
}
@media(max-width:1000px){.login-page .login-card .input-wrap input{font-size:16px}}
@media(max-width:1000px){.language-switch{height:40px}.language-switch button{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:38px;min-height:38px;line-height:1;box-sizing:border-box}}

.class-join-period{border-color:#c9ddff;background:#f4f8ff}
.class-join-period[data-period-status="ambiguous"],.class-join-period[data-period-status="unavailable"],.class-join-period[data-period-status="sole_active"]{border-color:#f2c97d;background:#fffbeb}
.class-join-period .overline{margin-top:0;color:#475569}
.class-join-period .secondary-button{max-width:100%;white-space:normal;min-height:44px}

/* Request center: scoped, mobile-first cards without wide tables. */
.request-center-page { max-width: 100%; min-width: 0; container-type: inline-size; container-name: request-center; }
.request-center-page p, .request-center-page h3 { overflow-wrap: anywhere; }
.request-center-tabs, .request-center-page .page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 16px; }
.request-center-page a.secondary-button, .request-center-page a.primary-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.request-center-filters { display: grid; gap: 16px; padding: 20px; margin-block: 20px; }
.request-center-filters > div { min-width: 0; }
.request-center-filters label { display: block; font-weight: 600; font-size: 12px; margin-bottom: 8px; }
.request-center-filters input, .request-center-filters select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); font: inherit; }
.request-center-filters .page-actions { margin: 0; align-items: end; }
.request-center-counts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.request-center-counts > div { padding: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; }
.request-center-counts strong { font-size: 1.5rem; }
.request-center-list { display: grid; gap: 10px; }
.request-center-card, .request-center-detail { padding: 16px 18px; min-width: 0; margin-block: 0; }
.request-center-card { display: grid; gap: 12px; align-items: center; }
.request-center-card > div { min-width: 0; }
.request-center-card-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.request-center-card-main h3 { margin: 0; font-size: 15.5px; line-height: 1.3; }
.request-center-card-main p { margin: 0; font-size: 13.5px; line-height: 1.4; }
.request-center-card-main .request-center-actor { font-weight: 600; }
.request-center-card-main .request-center-sub { font-size: 12.5px; }
.request-center-card-side { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.request-center-card .request-center-detail-btn { margin-top: 0 !important; min-height: 40px; padding: 0 14px; white-space: nowrap; }
.request-center-note { margin: 0; font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.request-center-history { padding-inline-start: 22px; }
.request-history-panel .request-center-history { margin-block: 0; }
.request-history-panel .request-center-history p { margin-block: 4px; }
.request-history-older { margin-block-start: 16px; }
.request-history-older > summary { cursor: pointer; min-height: 44px; padding: 12px; border: 1px solid var(--border, #dfe5f1); border-radius: 10px; overflow-wrap: anywhere; }
.request-history-older > summary:focus-visible, .request-history-scroll:focus-visible { outline: 2px solid var(--primary, #2563eb); outline-offset: 3px; }
.request-history-scroll { max-height: 24rem; overflow: auto; overscroll-behavior: contain; padding-inline-end: 8px; margin-block-start: 8px; }
@media print { .request-history-older > summary { display: none; } .request-history-older::details-content { content-visibility: visible; } .request-history-scroll { max-height: none; overflow: visible; } }

.request-center-history li { padding-block: 12px; border-bottom: 1px solid var(--border, #dfe5f1); overflow-wrap: anywhere; }
@container request-center (min-width: 760px) {
    .request-center-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .request-center-card { grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
    .request-center-card-side { align-items: flex-end; text-align: right; max-width: 300px; }
}
@media (max-width: 640px) {
    .request-center-card .request-center-detail-btn { width: 100%; min-height: 44px; }
}
.rc-mengajar-detail { display: flex; flex-direction: column; gap: 16px; padding: 20px 22px; }
.rc-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--border, #e2e8f0); }
.rc-detail-title { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 280px; }
.rc-detail-title h2 { margin: 0; font-size: 18px; line-height: 1.3; }
.rc-detail-title h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; }
.rc-detail-title p { margin: 0; font-size: 13.5px; }
.rc-detail-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rc-period-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rc-period-chip { flex: 1 1 155px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--border, #e2e8f0); background: var(--surface-subtle, #f8fafc); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: center; box-sizing: border-box; }
.rc-detail-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.rc-detail-meta-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border, #e2e8f0); background: var(--surface-subtle, #f8fafc); }
.rc-detail-meta-item span { font-size: 11.5px; font-weight: 600; color: var(--muted, #64748b); text-transform: uppercase; letter-spacing: 0.03em; }
.rc-detail-meta-item strong { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.rc-detail-note { margin: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border, #e2e8f0); background: var(--surface-subtle, #f8fafc); font-size: 13.5px; }
.rc-detail-actions,
.teaching-card .rc-detail-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 !important; padding-top: 14px; border-top: 1px solid var(--border, #e2e8f0); }
.rc-detail-actions-left, .rc-detail-actions-right { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rc-detail-actions-right form { margin: 0; }
html[data-theme="dark"] .rc-detail-head,
html[data-theme="dark"] .rc-detail-actions { border-color: #1e293b; }
html[data-theme="dark"] .rc-period-chip,
html[data-theme="dark"] .rc-detail-meta-item,
html[data-theme="dark"] .rc-detail-note { background: rgba(255, 255, 255, 0.04); border-color: #334155; }
@media (max-width: 640px) {
    .rc-mengajar-detail { padding: 16px; }
    .rc-period-chip { flex: 1 1 140px; font-size: 12px; padding: 6px 8px; }
    .rc-detail-actions-left, .rc-detail-actions-right,
    .rc-detail-actions-left > *, .rc-detail-actions-right > *,
    .rc-detail-actions-right form, .rc-detail-actions-right button { width: 100%; min-height: 44px; justify-content: center; text-align: center; box-sizing: border-box; }
}

/* Report Publications (Rapor Digital) — 3-Mode Responsive + Light/Dark */
.rp-page { display: flex; flex-direction: column; gap: 16px; }
.rp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin: 0; }
.rp-head-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rp-head-actions > * { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; margin: 0 !important; }
.rp-list-panel { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.rp-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--border, #e2e8f0); }
.rp-section-head h2 { margin: 4px 0 0; }
.rp-pub-card { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--border, #e2e8f0); border-radius: 12px; background: var(--surface-subtle, #f8fafc); }
.rp-pub-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 280px; }
.rp-pub-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rp-pub-title h3 { margin: 0; font-size: 15.5px; }
.rp-pub-title h3 a { text-decoration: none; color: inherit; }
.rp-pub-main p { margin: 0; font-size: 13px; }
.rp-pub-actions > a { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.rp-empty-box { border: 1px dashed var(--border, #cbd5e1); border-radius: 14px; padding: 22px 20px; background: var(--surface-subtle, rgba(15, 23, 42, 0.02)); display: flex; flex-direction: column; gap: 14px; }
.rp-empty-box h3 { margin: 0; font-size: 16.5px; }
.rp-empty-box > p { margin: 0; font-size: 13.5px; }
.rp-steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rp-step-card { border: 1px solid var(--border, #e2e8f0); border-radius: 12px; padding: 14px; background: var(--surface, #ffffff); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rp-step-num { width: 26px; height: 26px; border-radius: 999px; background: rgba(37, 99, 235, 0.12); color: #1d4ed8; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.rp-step-card strong { font-size: 13.5px; }
.rp-step-card p { margin: 0; font-size: 12.5px; line-height: 1.45; }
.rp-empty-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.rp-empty-actions > * { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; margin: 0 !important; }
.rp-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 12px; align-items: end; padding-bottom: 14px; border-bottom: 1px solid var(--border, #e2e8f0); }
.rp-filter-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rp-filter-field label { font-size: 12px; font-weight: 600; color: var(--muted, #64748b); margin: 0; }
.rp-filter-field select, .rp-filter-field input { width: 100%; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border, #cbd5e1); background: var(--surface, #ffffff); color: inherit; font: inherit; font-size: 14px; }
.rp-filter-actions { display: flex; gap: 8px; align-items: center; }
.rp-filter-actions > * { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; margin: 0 !important; white-space: nowrap; }
html[data-theme="dark"] .rp-filter-grid { border-bottom-color: #1e293b; }
html[data-theme="dark"] .rp-filter-field select,
html[data-theme="dark"] .rp-filter-field input { background: #0f172a; border-color: #334155; color: #f8fafc; }
html[data-theme="dark"] .rp-section-head { border-bottom-color: #1e293b; }
html[data-theme="dark"] .rp-pub-card,
html[data-theme="dark"] .rp-step-card { background: #0f172a; border-color: #334155; }
html[data-theme="dark"] .rp-empty-box { background: rgba(255, 255, 255, 0.02); border-color: #334155; }
html[data-theme="dark"] .rp-step-num { background: rgba(59, 130, 246, 0.22); color: #93c5fd; }
@media (min-width: 641px) and (max-width: 1024px) {
    .rp-steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rp-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rp-filter-actions { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .rp-steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rp-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rp-filter-actions { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .rp-list-panel { padding: 16px; }
    .rp-steps-grid, .rp-filter-grid { grid-template-columns: 1fr; }
    .rp-filter-field select, .rp-filter-field input { font-size: 16px; }
    .rp-filter-actions, .rp-filter-actions > *,
    .rp-head-actions, .rp-head-actions > *,
    .rp-pub-actions, .rp-pub-actions > a,
    .rp-empty-actions, .rp-empty-actions > * { width: 100%; }
}

/* Request listings share spacing, responsive status cards and empty states. */
.request-center-list-page { width: 100%; }
.request-center-toolbar { padding: 14px 18px; margin-block: 14px 18px; display: flex; flex-direction: column; gap: 12px; }
.request-center-toolbar-mode { display: contents; }
.request-center-toolbar .request-center-tabs { margin-block: 0; }
.request-center-toolbar .request-center-mode-note { flex: 1 0 100%; width: 100%; margin: 2px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.55; }
.request-center-list-page .request-center-tabs > a { max-width: 100%; white-space: normal; text-align: center; }
.request-center-list-page .request-center-filters .page-actions { grid-column: 1 / -1; flex-wrap: wrap; gap: 10px; padding-block-start: 4px; }
.request-center-list-page .request-center-filters .page-actions > * { min-height: 44px; }
.request-center-list-page .request-center-counts { grid-template-columns: minmax(0, 1fr); }
.request-center-list-page .request-center-counts > .panel { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 18px; }
.request-center-list-page .request-center-counts .class-join-status { justify-self: start; max-width: 100%; white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
.request-center-list-page .request-center-counts strong { font-variant-numeric: tabular-nums; line-height: 1.2; }
.request-center-list-page .request-center-count-note { font-size: 12px; line-height: 1.6; margin-block: 10px 24px; }
.request-center-list-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-block-end: 14px; }
.request-center-list-page .request-center-empty { padding: clamp(20px, 4vw, 32px); border-style: dashed; text-align: center; }
.request-center-empty h3 { margin-block-end: 8px; }
.request-center-empty p { max-width: 56ch; margin-inline: auto; font-size: 13px; line-height: 1.7; }
@container request-center (min-width: 560px) {
    .request-center-list-page .request-center-counts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .request-center-list-page .request-center-counts > .panel { grid-template-columns: minmax(0, 1fr); align-content: space-between; }
    .request-center-list-page .request-center-counts strong { font-size: 1.75rem; }
}
@container request-center (min-width: 920px) {
    .request-center-filters.request-center-filters--three { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; }
    .request-center-filters.request-center-filters--three .page-actions { grid-column: auto; padding-block-start: 0; flex-wrap: nowrap; }
}
/* 3 Zona Saling Lepas — Pusat Pengajuan: PC (>=1025px), Tablet (641-1024px), Handphone (<=640px) */
@media (min-width: 1025px) {
    .request-center-list-page .page-heading > .primary-button,
    .request-center-list-page .page-heading > .secondary-button { flex-shrink: 0; white-space: nowrap; }
    .request-center-toolbar-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
    .request-center-toolbar-primary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; min-width: 0; }
    .request-center-toolbar .request-center-type-tabs { padding-inline-start: 14px; border-inline-start: 1px solid var(--line); }
    .request-center-toolbar .request-center-toolbar-primary > .request-center-type-tabs:first-child { padding-inline-start: 0; border-inline-start: 0; }
}
@media (min-width: 641px) and (max-width: 1024px) {
    .request-center-list-page .page-heading > .primary-button,
    .request-center-list-page .page-heading > .secondary-button { flex-shrink: 0; white-space: nowrap; }
    .request-center-toolbar { padding: 14px 16px; }
    .request-center-toolbar-row,
    .request-center-toolbar-primary { display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: 100%; min-width: 0; }
    .request-center-toolbar .request-center-type-tabs { padding-inline-start: 0; border-inline-start: 0; }
    .request-center-toolbar .request-center-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; margin-block: 0; }
    .request-center-toolbar .request-center-tabs > a { width: 100%; min-width: 0; }
    .request-center-toolbar .request-center-tabs > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .request-center-toolbar { padding: 14px; }
    .request-center-toolbar-row,
    .request-center-toolbar-primary { display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: 100%; min-width: 0; }
    .request-center-toolbar .request-center-type-tabs { padding-inline-start: 0; border-inline-start: 0; }
}

/* Next actions follow account authority, not dashboard summary filters. */
.dashboard-next-actions { container: dashboard-actions / inline-size; margin-block: 20px; min-width: 0; }
.dashboard-next-actions > h2 { margin-bottom: 12px; }
.dashboard-next-action { display: grid; gap: 16px; padding: 20px; border: 1px solid var(--line); }
.dashboard-next-action > div { min-width: 0; }
.dashboard-next-action h3 { font-size: 16px; margin-bottom: 6px; }
.dashboard-next-action p { margin-top: 6px; overflow-wrap: anywhere; }
.dashboard-action-note { white-space: pre-wrap; }
.dashboard-action-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dashboard-action-links > a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; max-width: 100%; white-space: normal; text-align: center; }
.dashboard-next-action[data-next-action="rejected"], .dashboard-next-action[data-next-action="period_unavailable"] { border-color: #f2c97d; background: #fffdf7; }
.dashboard-next-action[data-next-action="placed"], .dashboard-next-action[data-next-action="approved"] { border-color: #9ddcb7; background: #f8fdf9; }
@container dashboard-actions (min-width: 560px) {
    .dashboard-next-action { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
    .dashboard-action-links { max-width: 320px; justify-content: flex-end; }
}
@container dashboard-actions (max-width: 559px) {
    .dashboard-action-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
    .dashboard-action-links > a,
    .dashboard-action-links > button { width: 100%; min-height: 44px; justify-content: center; text-align: center; box-sizing: border-box; }
    .dashboard-action-links > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

.request-center-page .request-center-reject { border-color: #b91c1c; color: #b91c1c; min-height: 44px; white-space: normal; }
.request-center-detail .class-join-form textarea { width: 100%; min-width: 0; max-width: 100%; resize: vertical; }
.request-center-detail .page-actions > button { min-height: 44px; max-width: 100%; white-space: normal; }

.dashboard-next-action + .dashboard-next-action { margin-top: 12px; }

/* Payment notifications keep each item and read action reachable on small screens. */
.spp-dialog li a { display: block; min-height: 44px; padding-block: 8px; overflow-wrap: anywhere; }
.spp-dialog .page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.spp-dialog .page-actions > * { min-height: 44px; white-space: normal; }

.request-center-page .batch-review-reject { background: #b91c1c; color: #fff; }

/* Each period exposes a visible, keyboard-accessible edit action. */
.teaching-period-item{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:10px;width:100%;box-sizing:border-box;padding:10px 14px;border:1px solid var(--line);border-radius:10px;min-width:0;font-variant-numeric:tabular-nums}
.teaching-period-item p{margin:0;background:transparent;padding:0;display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.teaching-period-item .secondary-button,.teaching-settings-form .secondary-button{min-height:44px;display:inline-flex;align-items:center;flex-shrink:0}
.teaching-settings-form input[readonly],.teaching-settings-form select:disabled{background:#f5f7fc;color:var(--ink);opacity:1}
#period-form{scroll-margin-top:20px}

/* Sort controls retain full hit targets inside horizontally scrollable tables. */
.table-sort-control{display:inline-flex;align-items:center;justify-content:flex-start;gap:6px;min-height:44px;width:100%;text-align:start;background:transparent;border:0;color:inherit;font:inherit;font-weight:600;white-space:normal;cursor:pointer;text-decoration:none;padding:6px 0}
.table-sort-control:focus-visible{outline:2px solid var(--primary);outline-offset:2px;border-radius:4px}
th[aria-sort="ascending"] .table-sort-control,th[aria-sort="descending"] .table-sort-control{color:#1d4ed8}
.table-sort-symbol{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:28px;height:28px;border:1px solid var(--line);border-radius:7px;color:#475569;background:#fff}
th[aria-sort="ascending"] .table-sort-symbol,th[aria-sort="descending"] .table-sort-symbol{background:#2563eb;color:#fff;border-color:#2563eb}
.table-sort-caption{caption-side:top;text-align:start;font-size:12px;color:var(--muted);padding:8px 12px}

/* Verification requests: color is always paired with a visible status label. */
.verification-button[data-state] { white-space: normal; text-align: center; min-height: 44px; border: 1px solid transparent; }
.verification-button[data-state="ready"] { background: #2563eb; color: #fff; }
.verification-button[data-state="ready"]:hover { background: #1d4ed8; }
.verification-button[data-state="pending"], .verification-button[data-state="sending"] { background: #fef3c7; color: #78350f; border-color: #d97706; }
.verification-button[data-state="approved"] { background: #dcfce7; color: #166534; border-color: #16a34a; }
.verification-button[data-state="rejected"] { background: #fee2e2; color: #991b1b; border-color: #dc2626; }
.verification-button[data-state]:disabled { opacity: 1; box-shadow: none; cursor: default; }
.verification-button[data-state="sending"]:disabled { cursor: wait; }

/* Shared interface typography. Preserve natural sentence casing across labels and copy. */
body { text-transform: none; }
button, input, select, textarea { font-family: inherit; }

/* Mobile filters: full-width fields and comfortable touch targets. */
@media (max-width: 600px) {
    .list-filters > div { flex: 1 1 100%; width: 100%; min-width: 0; }
    .list-filters :where(input:not([type="checkbox"]):not([type="radio"]), select) {
        width: 100%; min-width: 0; min-height: 44px; font-size: 16px;
    }
    .list-filters > .table-link {
        display: inline-flex; align-items: center; min-width: 44px; min-height: 44px;
    }
}

/* Academic grade detail: separate identity, result and editable references. */
.academic-grade-detail { width: 100%; max-width: 1120px; min-width: 0; }
.academic-grade-detail .page-heading { align-items: flex-start; }
.academic-grade-detail .page-heading > div { min-width: 0; }
.academic-grade-detail .page-heading > a { flex-shrink: 0; }
.academic-grade-detail .grade-student-name { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.academic-grade-detail .panel { padding: clamp(18px, 3vw, 26px); margin-block: 18px; min-width: 0; }
.grade-context dl { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 0; }
.grade-context dl > div { min-width: 0; }
.grade-context dt { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.grade-context dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.grade-summary { display: grid; gap: 20px; }
.academic-grade-detail h2 { font-size: 17px; line-height: 1.5; margin: 0 0 12px; }
.grade-score-summary h2 { font-size: 13px; color: var(--muted); }
.grade-score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 0 0 12px; }
.grade-score strong { font-size: clamp(24px, 3vw, 32px); line-height: 1.3; }
.grade-score > span { color: var(--muted); font-size: 14px; }
.grade-summary > p { line-height: 1.8; margin: 0; }
.grade-score-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.grade-score-field input { box-sizing: border-box; display: block; width: 100%; max-width: 300px; min-width: 0; min-height: 46px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcff; font: inherit; font-size: 16px; color: var(--ink); }
.grade-references { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.grade-source-list { display: grid; gap: 12px; }
.grade-source-row { display: grid; gap: 10px; padding: 14px 16px; background: var(--canvas); border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.grade-source-row > label { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; margin: 0; cursor: pointer; }
.grade-source-row input[type="checkbox"] { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0; accent-color: var(--primary); }
.grade-source-row span { overflow-wrap: anywhere; min-width: 0; }
.grade-source-meta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.grade-source-meta .table-link { display: inline-flex; align-items: center; min-height: 44px; }
.grade-empty { margin: 0; padding: 16px; background: var(--canvas); border-radius: 10px; line-height: 1.7; }
.grade-save-actions { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.grade-save-actions .primary-button { margin-top: 0; min-height: 44px; }
@media (min-width: 600px) {
    .grade-context dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grade-summary { grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr); align-items: center; gap: 32px; }
    .grade-source-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
    .grade-source-row > label { align-items: center; }
}
@media (min-width: 1100px) { .grade-context dl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.2fr); } }
@media (max-width: 599px) {
    .academic-grade-detail .page-heading { flex-direction: column; gap: 12px; }
    .academic-grade-detail .page-heading h1 { font-size: 26px; }
    .academic-grade-detail .page-heading > a { min-height: 44px; }
    .grade-score-field input { max-width: none; }
    .grade-save-actions .primary-button { width: 100%; }
}

/* Scheduled lesson meetings: scoped mobile-first forms and participant cards. */
.lesson-meeting-page{max-width:100%;min-width:0}.lesson-meeting-page .page-heading{align-items:flex-start}.lesson-meeting-page .page-heading>div{min-width:0}.lesson-meeting-page .page-heading p{overflow-wrap:anywhere}.lesson-section{padding:clamp(18px,3vw,26px);margin-block:18px;min-width:0}.lesson-section h2{font-size:18px;margin:0 0 14px;line-height:1.5}.lesson-section p{line-height:1.7}.lesson-context{display:grid;grid-template-columns:1fr;gap:18px;margin:0}.lesson-context>div{min-width:0}.lesson-context dt{font-size:12px;color:var(--muted);margin-bottom:6px}.lesson-context dd{margin:0;overflow-wrap:anywhere}.lesson-form{display:grid;gap:18px;margin-top:18px}.lesson-inline-form{display:flex;align-items:flex-end;flex-wrap:wrap;gap:14px;margin-block:18px}.lesson-inline-form>div{flex:1 1 230px;max-width:400px;min-width:0}.lesson-section label{display:block;font-size:13px;font-weight:600;margin-bottom:8px}.lesson-section :where(input:not([type=hidden]),select,textarea){width:100%;min-width:0;box-sizing:border-box;border:1px solid var(--line);padding:12px;border-radius:10px;font:inherit;font-size:16px;min-height:46px;background:#fbfcff;color:var(--ink)}.lesson-section textarea{resize:vertical}.lesson-section :where(.primary-button,.secondary-button){min-height:44px;margin-top:0}.lesson-date-result{display:flex;gap:18px;align-items:center;justify-content:space-between;flex-wrap:wrap}.lesson-reason{border-top:1px solid var(--line);padding-top:16px;margin-bottom:0;overflow-wrap:anywhere}.lesson-started{font-weight:600;color:#15724e;background:#eaf8ef;padding:14px;border-radius:10px}.lesson-journal{white-space:pre-wrap;overflow-wrap:anywhere}.lesson-roster{list-style:none;padding:0;display:grid;gap:10px}.lesson-roster li{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px;border:1px solid var(--line);border-radius:10px;min-width:0}.lesson-roster li>div{min-width:0;overflow-wrap:anywhere}.lesson-roster small{display:block;color:var(--muted);margin-top:4px}.lesson-roster .badge{white-space:normal;max-width:45%;text-align:center;flex-shrink:0}@media(min-width:700px){.lesson-context{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:599px){.lesson-meeting-page .page-heading{flex-direction:column;gap:12px}.lesson-meeting-page .page-heading h1{font-size:26px}.lesson-inline-form>div{flex-basis:100%;max-width:none}.lesson-inline-form>button,.lesson-form button,.lesson-date-result>a{width:100%}.lesson-roster li{align-items:flex-start}.lesson-meeting-page .page-heading>a{min-height:44px}}

/* Lesson attendance review stays scoped to the meeting page. */
.lesson-review-form .lesson-select{display:flex;align-items:center;gap:12px;min-height:44px;margin:0;cursor:pointer}.lesson-review-form input[type=checkbox]{width:22px;height:22px;min-height:22px;padding:0;flex:0 0 22px;accent-color:var(--primary)}.lesson-history{list-style:none;padding:0;margin:0;display:grid;gap:12px}.lesson-history>li{padding:12px 14px;border:1px solid var(--line);border-radius:10px;overflow-wrap:anywhere}.lesson-history small{display:block;color:var(--muted);margin-top:4px}.lesson-history p{margin:6px 0 0;font-size:13.5px}.lesson-history-section{padding:clamp(14px,2.5vw,20px)}.lesson-history-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;min-height:44px}.lesson-history-summary::-webkit-details-marker{display:none}.lesson-history-summary-main{min-width:0;display:grid;gap:3px}.lesson-history-title-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.lesson-history-title-row h2{margin:0;font-size:17px;line-height:1.35}.lesson-history-latest{margin:0;font-size:12.5px;line-height:1.45}.lesson-history-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 12px;border:1px solid var(--line);border-radius:999px;background:#f8fafc;color:#1d4ed8;font-size:12.5px;font-weight:700;white-space:nowrap;flex-shrink:0}.lesson-history-drawer[open] .lesson-history-toggle .when-closed,.lesson-history-drawer:not([open]) .lesson-history-toggle .when-open{display:none}.lesson-history-body{margin-top:14px;padding-top:14px;border-top:1px solid var(--line);display:grid;gap:12px}.lesson-history-retention{margin:0;font-size:12.5px;line-height:1.5}.lesson-history-item-head{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 12px}.lesson-history-chips{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:8px}.lesson-history-chip-lead{font-size:12.5px;font-weight:600;color:var(--muted)}.lesson-history-participants{margin-top:8px}.lesson-history-participants summary{cursor:pointer;display:inline-flex;align-items:center;min-height:36px;font-size:12.5px;font-weight:700;color:#1d4ed8}.lesson-history-list-compact{list-style:none;padding:8px 0 0;margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:6px 14px;font-size:13px}.lesson-history-list-compact li{padding:5px 9px;border:1px solid var(--line);border-radius:8px;background:#f8fafc;overflow-wrap:anywhere}html[data-theme="dark"] .lesson-history-toggle,html[data-theme="dark"] .lesson-history-list-compact li{background:#1e293b;border-color:#334155;color:#93c5fd}html[data-theme="dark"] .lesson-history-list-compact li{color:#e2e8f0}html[data-theme="dark"] .lesson-history-participants summary{color:#93c5fd}.lesson-section .lesson-form>a{justify-self:start}@media(max-width:599px){.lesson-review-form .lesson-form button{width:100%}.lesson-history-summary{flex-direction:column;align-items:stretch}.lesson-history-toggle{width:100%;min-height:44px}.lesson-history-participants summary{min-height:44px}.lesson-history-list-compact{grid-template-columns:1fr}}

/* Teaching delivery review and filters. */
.lesson-review-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:18px;align-items:end}.lesson-review-filters>div{min-width:0}.lesson-review-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.lesson-review-filters .lesson-review-actions{grid-column:1 / -1}.lesson-teaching-list{display:grid;gap:18px}.lesson-teaching-list .lesson-section{margin:0}.lesson-teaching-list .lesson-section p{overflow-wrap:anywhere}.lesson-review-actions .primary-button,.lesson-review-actions .secondary-button{width:auto;margin:0;min-height:44px;box-sizing:border-box}@media (min-width: 641px) and (max-width: 1024px) {.lesson-review-filters .lesson-review-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%}.lesson-review-filters .lesson-review-actions>*{width:100%;min-height:44px;justify-content:center;text-align:center;box-sizing:border-box}.lesson-review-filters .lesson-review-actions>:last-child:nth-child(odd){grid-column:1 / -1}}
@media (max-width: 640px) {.lesson-review-filters .lesson-review-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%}.lesson-review-filters .lesson-review-actions>*{width:100%;min-height:44px;justify-content:center;text-align:center;box-sizing:border-box}.lesson-review-filters .lesson-review-actions>:last-child:nth-child(odd){grid-column:1 / -1}}@media(max-width:599px){.lesson-review-actions>*{width:100%;justify-content:center}}

/* Live lesson activity notices; no automatic popup or background polling. */
.lesson-alert{display:flex;flex:none}.lesson-alert-launcher{min-width:44px;min-height:44px;box-sizing:border-box}.lesson-alert-launcher[data-state=sending]{background:#fef3c7}.lesson-alert-dialog{width:min(680px,calc(100vw - 28px));max-height:85dvh;box-sizing:border-box;overflow:auto;border:1px solid var(--line);border-radius:16px;padding:clamp(18px,3vw,26px);color:var(--ink);font-size:14px;text-align:start;box-shadow:0 20px 70px #131b2e33}.lesson-alert-dialog::backdrop{background:#131b2e66}.lesson-alert-dialog header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.lesson-alert-dialog h2{font-size:21px;line-height:1.4;margin:0}.lesson-alert-dialog p{line-height:1.7;overflow-wrap:anywhere}.lesson-alert-dialog ul{list-style:none;padding:0;display:grid;gap:14px}.lesson-alert-dialog li{padding:14px;border:1px solid var(--line);border-radius:10px;min-width:0;overflow-wrap:anywhere}.lesson-alert-dialog li p{margin:8px 0}.lesson-alert-dialog small{display:block;color:var(--muted)}.lesson-alert-dialog :where(button,a){min-height:44px;box-sizing:border-box}.lesson-alert-dialog li a{display:inline-flex;align-items:center;justify-content:center}@media(max-width:599px){.lesson-alert-dialog .lesson-review-actions>*{width:100%}.lesson-alert-dialog h2{font-size:19px}.lesson-alert-dialog{max-height:88dvh}}

/* Lesson report cards keep historical labels within narrow screens. */
.lesson-report-page .lesson-section :where(h2,p,span){overflow-wrap:anywhere}.lesson-report-page .lesson-section h3{font-size:16px;margin-top:20px}.lesson-report-page .lesson-inline-form>a{display:inline-flex;align-items:center;min-height:44px}

/* Edit tabel Penugasan Guru */
.academic-table-workspace{min-width:0;line-height:1.65}
.academic-table-workspace .page-heading{align-items:flex-start;gap:20px}
.academic-table-workspace .page-heading>div{min-width:0}
.academic-table-workspace .page-heading p{max-width:100%}
.academic-table-workspace .page-heading>.secondary-button{flex-shrink:0}
.academic-table-workspace .academic-table-note{margin:0 0 22px;padding:16px 20px;font-size:13px}
.academic-table-note p{margin:5px 0 0}
.academic-table-workspace .panel-heading{gap:18px;align-items:flex-start;padding:22px 24px}
.academic-table-workspace .panel-heading h2{font-size:17px;font-weight:600;margin:0}
.academic-table-workspace .panel-heading p{font-size:12px;line-height:1.65;margin:6px 0 0;color:var(--muted)}
.academic-table-workspace .panel-heading .badge{flex-shrink:0;font-size:12px;white-space:nowrap}
.academic-table-panel .table-scroll{max-width:100%;overflow-x:auto}
.academic-table-panel table{min-width:0;width:100%}
.academic-table-panel th,.academic-table-panel td{padding:16px 20px;vertical-align:middle}
.academic-table-panel th{font-size:12px;text-align:left}
.academic-table-panel td{font-size:13px;line-height:1.6}
.academic-table-panel .academic-table-id{width:60px;color:var(--muted)}
.academic-table-caption{display:block;margin-top:3px}
.academic-table-panel td small{font-size:12px}
.academic-table-teacher{width:36%;min-width:270px}
.academic-table-teacher select{display:block;width:100%;min-width:230px;min-height:44px;padding:10px 36px 10px 12px;border:1px solid var(--line);border-radius:10px;background:#fbfcff;color:var(--ink);font:inherit}
.academic-table-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px;background:#fbfcff}
.academic-table-actions p{font-size:12px;margin:0}
.academic-table-workspace .primary-button{width:auto;min-height:44px;margin:0;padding:11px 22px;font:inherit;font-size:13px;font-weight:600}
.academic-table-workspace .secondary-button{min-height:44px}
.academic-table-workspace .academic-import-panel{margin-top:24px;scroll-margin-top:24px}
.academic-import-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:28px;padding:0 24px 24px}
.academic-import-grid>*,.academic-reference-grid>*{min-width:0}
.academic-table-workspace h3{font-size:13px;font-weight:600;margin:0 0 12px}
.academic-import-guide ul{margin:0;padding-left:18px;font-size:13px}
.academic-import-guide li+li{margin-top:10px}
.academic-import-guide>p{font-size:12px;margin:14px 0 0}
.academic-import-form{align-self:start;padding:20px;border:1px solid var(--line);border-radius:12px;background:#f8faff}
.academic-import-form label{display:block;margin:0 0 10px;font-size:12px;font-weight:600}
.academic-import-form input[type=file]{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:44px;padding:8px;border:1px solid var(--line);border-radius:10px;background:white;color:var(--ink);font:inherit;font-size:12px}
.academic-import-form input::file-selector-button{padding:8px 12px;margin-right:10px;border:0;border-radius:7px;background:var(--soft);color:var(--primary-dark);font:inherit;cursor:pointer}
.academic-import-form .input-help{margin:10px 0 18px;font-size:12px;line-height:1.6;color:var(--muted)}
.academic-import-reference{border-top:1px solid var(--line);padding:18px 24px}
.academic-import-reference summary{cursor:pointer;font-size:13px;font-weight:600;color:var(--primary-dark)}
.academic-reference-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:20px}
.academic-reference-grid ul{list-style:none;padding:0;margin:0;max-height:340px;overflow:auto}
.academic-reference-grid li{display:flex;gap:12px;align-items:flex-start;padding:10px 0;border-bottom:1px solid var(--line);font-size:12px;overflow-wrap:anywhere}
.academic-reference-id{flex:0 0 36px;font-weight:600;color:var(--muted)}
.academic-table-workspace :is(select,input,summary,button,a):focus-visible{outline:2px solid var(--primary);outline-offset:3px}
@media(max-width:760px){.academic-import-grid,.academic-reference-grid{grid-template-columns:1fr}.academic-table-workspace .panel-heading{flex-wrap:wrap}.academic-import-grid{gap:20px}.academic-table-workspace .panel-heading,.academic-table-actions,.academic-import-reference{padding:18px}.academic-import-grid{padding:0 18px 18px}}
@media(max-width:480px){.academic-table-workspace .page-heading{flex-direction:column;gap:14px}.academic-table-workspace .page-heading h1{font-size:25px}.academic-table-actions{align-items:stretch;flex-direction:column}.academic-table-actions .primary-button,.academic-import-form .primary-button{width:100%}.academic-table-teacher select{font-size:16px}.academic-import-form{padding:16px}.academic-import-form input[type=file]{font-size:14px}}

/* Kontrol bersama untuk ketiga editor akademik. */
.academic-table-panel select,.academic-table-panel input:not([type=hidden]){display:block;box-sizing:border-box;width:100%;min-width:130px;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fbfcff;color:var(--ink);font:inherit}
.class-subject-editor table{min-width:960px;table-layout:fixed}
.class-subject-editor th:first-child{width:60px}
.class-subject-editor th:nth-child(2){width:38%}
.lesson-schedule-editor table{min-width:1180px;table-layout:fixed}
.lesson-schedule-editor th:first-child{width:60px}
.lesson-schedule-editor th:nth-child(2){width:470px}
.lesson-schedule-editor th:nth-child(3){width:140px}
.lesson-schedule-editor select{min-width:0;text-overflow:ellipsis}
.academic-rate-limit{padding:24px;max-width:720px}
.academic-rate-limit h2{font-size:18px;margin:0 0 12px}
.academic-rate-limit p{font-size:14px;margin:0 0 20px}
@media(max-width:480px){.academic-table-panel select,.academic-table-panel input:not([type=hidden]){font-size:16px}}

/* Inline topbar breadcrumb links without boxed pill chrome. */
.topbar-title>.breadcrumb-trail{display:flex;align-items:center;gap:4px;min-width:0;overflow-x:auto;white-space:nowrap;padding:3px 0;scrollbar-width:none;-ms-overflow-style:none}
.topbar-title>.breadcrumb-trail::-webkit-scrollbar{display:none}
.breadcrumb-trail>a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:6px 10px;border:0;border-radius:8px;background:transparent;color:#475569;font-weight:600;text-decoration:none;flex-shrink:0;cursor:pointer;line-height:1.5;transition:background .15s,color .15s}
.breadcrumb-trail>a strong{color:#0f172a;font-weight:700}
.breadcrumb-trail>a:hover{background:#eff5ff;color:#1d4ed8;text-decoration:underline;text-underline-offset:3px}
.breadcrumb-trail>a:focus-visible{outline:2px solid #2563eb;outline-offset:-3px;background:#eff5ff}
.breadcrumb-trail>a:active{background:#dceaff}
.breadcrumb-trail>.breadcrumb-divider{margin:0 2px;color:#94a3b8;flex-shrink:0}
@media(max-width:480px){.breadcrumb-trail>a{padding:8px;min-height:44px}.topbar-title>.breadcrumb-trail{gap:3px}}

/* Keep the searchable rombel list inside its card without clipping results. */
.class-join-form .teacher-picker{min-width:0;max-width:100%}
.class-join-form .teacher-picker-popup{position:static;margin-top:6px;min-width:0}

.grades-course-filter .teacher-picker{min-width:0;max-width:100%;margin-top:8px}
.grades-course-filter .teacher-picker-popup{position:static;margin-top:6px;min-width:0}
.grades-course-filter .teacher-picker-control>input{border:0;border-radius:0;background:transparent;margin:0;outline:none}
.grades-course-filter .input-help{line-height:1.8;margin:10px 0 14px}
.grades-course-filter select:disabled,.grades-course-filter button:disabled{background:#f3f5f9;color:#657188;cursor:not-allowed}

.student-identity-form .teacher-picker{min-width:0;max-width:100%}
.student-identity-form .teacher-picker-popup{position:static;margin-top:6px;min-width:0}
.student-identity-form .teacher-picker-control>input{border:0;border-radius:0;background:transparent;margin:0;outline:none}

/* Shared closure table on attendance and homeroom pages. */
.daily-closure-panel .table-scroll .daily-closure-table{width:100%;min-width:0;table-layout:auto}
.daily-closure-panel .daily-closure-table th,
.daily-closure-panel .daily-closure-table td{padding:11px 10px;line-height:1.55;word-break:normal;overflow-wrap:anywhere;white-space:normal;vertical-align:middle}
.daily-closure-panel .daily-closure-table thead th{overflow-wrap:normal;word-break:normal;white-space:nowrap}
.daily-closure-panel .daily-closure-table .closure-date{white-space:nowrap}
.daily-closure-panel .daily-closure-table .closure-student{min-width:0}
.daily-closure-panel .daily-closure-table .closure-class{white-space:nowrap}
.daily-closure-panel .daily-closure-table .closure-morning{white-space:nowrap}
.daily-closure-panel .daily-closure-table .closure-window{min-width:0}
.daily-closure-panel .daily-closure-table .closure-departure{min-width:0}
.daily-closure-panel .daily-closure-table .closure-result{white-space:nowrap}
.daily-closure-panel .daily-closure-table .closure-result strong{display:inline-block;white-space:nowrap;word-break:normal;overflow-wrap:normal}
.daily-closure-panel .daily-closure-table .table-sort-control{gap:6px}
@media(max-width:600px){
 .daily-closure-panel .table-scroll .daily-closure-table:has(tbody>tr:only-child>td[colspan]){min-width:0}
}


/* Keep the existing mobile sidebar trigger visible and easy to recognize. */
@media (min-width: 641px) and (max-width: 900px) {
    .dashboard-page .topbar {
        position: sticky;
        top: 0;
        z-index: 15;
    }
    .dashboard-page .topbar .open-menu {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        box-sizing: border-box;
        width: 48px;
        min-width: 48px;
        height: 52px;
        padding: 5px;
        border: 1px solid var(--primary);
        border-radius: 10px;
        background: var(--primary);
        color: #fff;
        cursor: pointer;
    }
    .dashboard-page .open-menu > span:first-child {
        display: flex;
        align-items: center;
    }
    .dashboard-page .mobile-menu-label {
        font-size: 12px;
        font-weight: 600;
        line-height: 1.2;
    }
    .dashboard-page .open-menu:focus-visible,
    .dashboard-page .close-menu:focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: 3px;
    }
    .dashboard-page .sidebar .close-menu {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
}
@media (max-width: 640px) {
    .dashboard-page .topbar {
        position: sticky;
        top: 0;
        z-index: 15;
    }
    .dashboard-page .topbar .open-menu {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        box-sizing: border-box;
        width: 48px;
        min-width: 48px;
        height: 52px;
        padding: 5px;
        border: 1px solid var(--primary);
        border-radius: 10px;
        background: var(--primary);
        color: #fff;
        cursor: pointer;
    }
    .dashboard-page .open-menu > span:first-child {
        display: flex;
        align-items: center;
    }
    .dashboard-page .mobile-menu-label {
        font-size: 12px;
        font-weight: 600;
        line-height: 1.2;
    }
    .dashboard-page .open-menu:focus-visible,
    .dashboard-page .close-menu:focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: 3px;
    }
    .dashboard-page .sidebar .close-menu {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
}

/* Correction form only; keep the original multirow teaching form unchanged. */
.teaching-correction-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:16px}
.teaching-correction-fields>div{min-width:0}
.teaching-correction-fields input,.teaching-correction-fields select{min-width:0;width:100%;min-height:44px}

/* Empty-state collapse & shared action layout on top of base table rules. */
.dashboard-content .table-scroll > table:has(> tbody > tr:only-child > td[colspan]) { min-width: 0 !important; }
.table-row-actions,
.academics-row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.table-row-actions .table-action,
.page-actions .table-action { margin: 0; }
.table-action-danger { color: #b42318; background: #fff1f0; border-color: #fecdca; }
.table-action-danger:hover { background: #fee4e2; }
.table-row-actions :is(.table-link, a),
.academics-row-actions .table-link { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
@media (max-width: 600px) { .table-action-danger { min-height: 44px; } }
.time-range { white-space: nowrap; }
.academics-list-panel .academics-time-col { min-width: 112px; white-space: nowrap; }
.academics-list-panel .academics-status-col { min-width: 100px; white-space: nowrap; }
.academics-list-panel .academics-status-col .badge-combined,
.lesson-context .badge-combined,
.teacher-today-meta .badge-combined { white-space: normal; text-align: left; line-height: 1.4; max-width: 100%; }
.academics-list-panel .academics-status-col p.muted { margin-top: 6px; font-size: 12px; line-height: 1.5; white-space: normal; min-width: 150px; }
.academics-list-panel .academics-actions-col { min-width: 116px; white-space: nowrap; }

/* Shared Rich Text Editor & examples across multi-line content forms. */
.rte-field { min-width: 0; width: 100%; }
.rte-root { position: relative; border: 1px solid var(--ui-border, var(--line)); border-radius: 10px; background: #ffffff; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.rte-root:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px #2563eb1a; background: #fff; }
.rte-root.is-invalid { border-color: #c93b3b; box-shadow: 0 0 0 3px #c93b3b18; }
.rte-root.is-disabled { opacity: .68; background: #f2f4f9; }
.rte-root:not(.is-rte-ready) .rte-surface { display: none; }
.dashboard-content .rte-root.is-rte-ready .rte-source,
.bmw-page .rte-root.is-rte-ready .rte-source,
.ppdb .rte-root.is-rte-ready .rte-source,
.lesson-section .rte-root.is-rte-ready .rte-source,
.rte-root.is-rte-ready .rte-source {
    position: absolute; width: 1px; height: 1px; min-height: 0; margin: 0; padding: 0;
    border: 0; opacity: 0; overflow: hidden; pointer-events: none; resize: none;
}
.rte-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; padding: 7px 10px; border-bottom: 1px solid var(--ui-border, var(--line)); background: #f6f9fe; }
.rte-toolbar-group { display: flex; align-items: center; flex-wrap: wrap; gap: 3px; }
.rte-sep { display: inline-block; width: 1px; height: 18px; margin: 0 3px; background: #cbd7eb; }
.dashboard-content .rte-toolbar .rte-btn,
.rte-toolbar .rte-btn {
    display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: 32px; height: 32px; min-height: 32px;
    padding: 0 7px; margin: 0; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--ui-text, var(--ink));
    font-size: 13px; line-height: 1; font-weight: 600; box-shadow: none;
}
.rte-toolbar .rte-btn:hover:not(:disabled) { background: #e4eeff; border-color: #bad2ff; color: var(--primary-dark); }
.rte-toolbar .rte-btn[aria-pressed="true"] { background: #d8e8ff; border-color: #93b4f5; color: var(--primary-dark); }
.rte-toolbar .rte-btn:disabled { opacity: .45; cursor: not-allowed; }
.rte-toolbar .rte-btn svg { width: 15px; height: 15px; display: block; }
.rte-counter { font-size: 11px; color: var(--ui-supporting, var(--muted)); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rte-counter.is-near-limit { color: #9a5b13; font-weight: 600; }
.rte-counter.is-over-limit { color: #b42318; font-weight: 700; }
.rte-surface {
    position: relative; min-height: var(--rte-min-height, 140px); max-height: 460px; overflow-y: auto;
    padding: 12px 14px; font-family: inherit; font-size: 14px; line-height: 1.65; color: var(--ui-text, var(--ink));
    outline: none; overflow-wrap: anywhere; word-break: normal; text-transform: none;
}
.rte-surface:empty::before { content: attr(data-placeholder); color: var(--ui-supporting, #475569); opacity: .82; pointer-events: none; }
.rte-surface p, .rich-text-content p { margin: 0 0 10px; white-space: normal; }
.rte-surface p:last-child, .rich-text-content p:last-child { margin-bottom: 0; }
.rte-surface ul, .rte-surface ol, .rich-text-content ul, .rich-text-content ol { margin: 6px 0 12px; padding-left: 22px; }
.rte-surface li, .rich-text-content li { margin: 3px 0; }
.rte-surface blockquote, .rich-text-content blockquote { margin: 8px 0 12px; padding: 8px 12px; border-inline-start: 3px solid var(--primary); background: #eef4ff; border-radius: 0 8px 8px 0; color: #1e293b; }
.rich-text-content { white-space: normal; overflow-wrap: anywhere; line-height: 1.75; text-transform: none; }
.rich-text-content--plain, .rich-text-plain { white-space: pre-wrap; }
.bmw-detail-section .rich-text-content { font-size: 14px; }
.announcement-text.rich-text-content { white-space: normal; line-height: 1.75; }
.rte-example {
    margin-top: 8px; padding: 11px 14px; border: 1px solid #cfe0ff; border-radius: 10px; background: #f4f8ff;
    font-size: 12px; line-height: 1.65; color: #334155; overflow-wrap: anywhere; text-transform: none;
}
.rte-example-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.rte-example-title { font-size: 12px; font-weight: 700; color: var(--primary-dark); }
.dashboard-content .rte-example-insert,
.rte-example-insert {
    display: inline-flex; align-items: center; justify-content: center; width: auto; min-height: 28px;
    margin: 0; padding: 4px 10px; border: 1px solid #bad2ff; border-radius: 999px; background: #fff;
    color: var(--primary-dark); font-size: 11.5px; font-weight: 600; box-shadow: none; white-space: nowrap;
}
.rte-example-insert:hover:not(:disabled) { background: #eaf2ff; border-color: var(--primary); }
.rte-example-insert:disabled { opacity: .5; cursor: not-allowed; }
.rte-example-text { margin: 0; color: #435069; }
.rte-example-list { margin: 5px 0 0; padding-left: 18px; }
.rte-example-list li { margin: 2px 0; }
@media (max-width: 700px) {
    .rte-surface { font-size: 16px; }
    .dashboard-content .rte-toolbar .rte-btn,
    .rte-toolbar .rte-btn { width: auto; min-width: 40px; height: 40px; min-height: 40px; }
    .dashboard-content .rte-example-insert,
    .rte-example-insert { min-height: 36px; width: auto; }
}
/* Account recovery email & verified password reset screens. */
.login-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 20px 0 8px; }
.login-card .login-label-row label { margin: 0; }
.login-forgot-row { display: flex; justify-content: flex-end; margin: 8px 0 -8px; }
.login-forgot-link { display: inline-flex; align-items: center; padding: 4px 8px; margin-right: -8px; border-radius: 7px; font-size: 12.5px; font-weight: 500; color: #475569; text-decoration: none; white-space: nowrap; transition: color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.login-forgot-link:hover { color: #1d4ed8; background: #eff6ff; }
.login-forgot-link:focus-visible { outline: none; color: #1d4ed8; background: #eff6ff; box-shadow: 0 0 0 2px rgba(37, 99, 235, .28); }
.auth-standalone-shell { justify-content: space-between; }
.auth-standalone-main { display: flex; align-items: center; justify-content: center; flex: 1; padding: 32px 0; }
.auth-standalone-card { width: 100%; max-width: 480px; }
.auth-standalone-card h1 { font-size: 26px; font-weight: 800; letter-spacing: -.025em; color: var(--ink); margin-bottom: 6px; }
.auth-standalone-card > p.muted { font-size: 13px; color: var(--muted); line-height: 1.75; }
.auth-standalone-card .account-password-wrap > input { background: #f8fafe; border-color: #cbd7eb; min-height: 50px; border-radius: 12px; font-size: 14px; }
.auth-standalone-card .account-password-wrap > input:focus { background: #eaf2ff; border-color: var(--primary); outline: none; }
.account-recovery-panel { margin-top: 20px; }
.account-recovery-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.account-recovery-header h2 { font-size: 17px; margin-bottom: 4px; }
.account-recovery-header p { font-size: 13px; line-height: 1.65; max-width: 48ch; }
.account-recovery-resend { display: grid; gap: 10px; justify-items: start; margin-bottom: 18px; padding: 14px 16px; border: 1px solid #f2dfae; border-radius: 12px; background: #fffbf0; }
.account-recovery-resend .input-help { margin: 0; color: #795015; }
.account-recovery-panel .account-form { display: grid; gap: 16px; }
.account-recovery-panel .account-form label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 8px; }
.account-recovery-panel .account-form input:not([type=hidden]) { box-sizing: border-box; width: 100%; min-width: 0; min-height: 46px; padding: 12px 14px; border: 1px solid var(--ui-field-border, #7888a0); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; }
.account-recovery-panel .account-form .account-password-wrap input { padding-right: 54px; }
.badge-verified { background: #edf8f1; border-color: #b6ddca; color: #176045; }
.badge-pending { background: #fff8e9; border-color: #e8d4a9; color: #795015; }
@media (max-width: 600px) { .auth-standalone-card .account-password-wrap > input, .account-recovery-panel .account-form input:not([type=hidden]) { font-size: 16px; } }
@media print { .dashboard-shared-footer, .rte-toolbar, .rte-example { display: none !important; } }

/* Production deployment readiness, stepper, and live progress indicators */
.dcc-update-banner { margin-bottom: 20px; border-left: 5px solid var(--primary); }
.dcc-update-banner[data-tone="ready"], .dcc-update-banner[data-tone="up_to_date"] { border-left-color: #16a34a; background: linear-gradient(180deg, #f5fcf7 0%, #fff 100%); }
.dcc-update-banner[data-tone="waiting"] { border-left-color: #2563eb; background: linear-gradient(180deg, #f4f8ff 0%, #fff 100%); }
.dcc-update-banner[data-tone="warning"] { border-left-color: #d97706; background: linear-gradient(180deg, #fffbf0 0%, #fff 100%); }
.dcc-update-banner[data-tone="blocked"] { border-left-color: #dc2626; background: linear-gradient(180deg, #fff5f5 0%, #fff 100%); }
.dcc-update-banner-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.dcc-update-banner-head h2 { margin: 8px 0 0; font-size: 19px; line-height: 1.4; color: var(--ink); }
.dcc-update-actions-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dcc-update-actions-inline form { margin: 0; }
.dcc-update-actions-inline .secondary-button { margin: 0; }
.dcc-update-pill { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid #d9e1eb; background: #f3f6fa; color: #334155; }
.dcc-update-pill[data-tone="ready"], .dcc-update-pill[data-tone="up_to_date"] { background: #dcfce7; border-color: #86efac; color: #166534; }
.dcc-update-pill[data-tone="waiting"] { background: #dbeafe; border-color: #93c5fd; color: #1d4ed8; }
.dcc-update-pill[data-tone="warning"] { background: #fef3c7; border-color: #fcd34d; color: #92400e; }
.dcc-update-pill[data-tone="blocked"] { background: #fee2e2; border-color: #fca5a5; color: #991b1b; }
.dcc-update-summary { margin-top: 12px; font-size: 14px; line-height: 1.7; color: var(--ink); max-width: 78ch; }
.dcc-update-blockers { margin-top: 14px; padding: 14px 16px; border: 1px solid #fecaca; border-radius: 12px; background: #fff1f2; color: #991b1b; font-size: 13px; line-height: 1.65; }
.dcc-update-blockers h3 { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: #7f1d1d; }
.dcc-update-blockers ul { margin: 6px 0 0; padding-left: 20px; }
.dcc-update-next { margin-top: 14px; padding: 12px 16px; border: 1px solid #cde0ff; border-radius: 12px; background: #eff6ff; color: #1e3a8a; font-size: 13px; line-height: 1.65; display: flex; flex-wrap: wrap; gap: 6px; }
.dcc-update-meta-bar { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 12px; color: var(--muted); }
.dcc-update-alert { margin-top: 14px; }
.dcc-stepper-panel { margin-bottom: 20px; }
.dcc-stepper { list-style: none; margin: 18px 0 0; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.dcc-step { margin: 0 !important; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcff; display: flex; flex-direction: column; gap: 8px; }
.dcc-step[data-state="done"] { border-color: #b6ddca; background: #f3fbf6; }
.dcc-step[data-state="active"] { border-color: #93c5fd; background: #eff6ff; }
.dcc-step[data-state="warning"] { border-color: #f3d189; background: #fffbf0; }
.dcc-step[data-state="blocked"] { border-color: #f5b7be; background: #fff5f6; }
.dcc-step-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dcc-step-head h3 { margin: 0; font-size: 13px; font-weight: 700; color: var(--ink); flex: 1 1 110px; line-height: 1.4; }
.dcc-step-num { width: 24px; height: 24px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; background: #e2e8f0; color: #334155; flex: none; }
.dcc-step[data-state="done"] .dcc-step-num { background: #16a34a; color: #fff; }
.dcc-step[data-state="active"] .dcc-step-num { background: #2563eb; color: #fff; }
.dcc-step[data-state="warning"] .dcc-step-num { background: #d97706; color: #fff; }
.dcc-step[data-state="blocked"] .dcc-step-num { background: #dc2626; color: #fff; }
.dcc-step-badge { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #e2e8f0; color: #475569; white-space: nowrap; }
.dcc-step-badge[data-state="done"] { background: #dcfce7; color: #166534; }
.dcc-step-badge[data-state="active"] { background: #dbeafe; color: #1d4ed8; }
.dcc-step-badge[data-state="warning"] { background: #fef3c7; color: #92400e; }
.dcc-step-badge[data-state="blocked"] { background: #fee2e2; color: #991b1b; }
.dcc-step-detail { margin: 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.dcc-update-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; margin: 16px 0; }
.dcc-update-grid > div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafd; min-width: 0; }
.dcc-update-grid dt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 4px; }
.dcc-update-grid dd { margin: 0; font-size: 13px; color: var(--ink); line-height: 1.5; overflow-wrap: anywhere; }
.dcc-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; }
.dcc-change-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.dcc-change-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #f8fafc; font-size: 12px; color: var(--ink); }
.dcc-change-pill.is-migration { background: #fef3c7; border-color: #f59e0b; color: #92400e; font-weight: 600; }
.dcc-collapsible { margin: 14px 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.dcc-collapsible > summary { padding: 12px 16px; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; user-select: none; }
.dcc-collapsible[open] > summary { border-bottom: 1px solid var(--line); background: #f8fafc; border-radius: 12px 12px 0 0; }
.dcc-collapsible > ul { margin: 0; padding: 12px 16px 14px 34px; max-height: 360px; overflow-y: auto; font-size: 13px; line-height: 1.6; }
.dcc-action-box { margin-top: 20px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafd; }
.dcc-action-box[data-tone="ready"] { border-color: #86efac; background: #f0fdf4; }
.dcc-action-box[data-tone="blocked"] { border-color: #fecaca; background: #fff5f5; }
.dcc-action-box[data-tone="warning"] { border-color: #fcd34d; background: #fffbeb; }
.dcc-action-reason { margin: 8px 0 14px; font-size: 13px; line-height: 1.65; color: var(--muted); }
.dcc-action-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.dcc-action-row form { margin: 0; }
.dcc-action-row .primary-button, .dcc-action-row .secondary-button { margin: 0; }
.dcc-monitor-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafd; }
.dcc-monitor-bar[data-state="active"] { border-color: #93c5fd; background: #eff6ff; }
.dcc-monitor-bar[data-state="done"] { border-color: #86efac; background: #f0fdf4; }
.dcc-monitor-bar[data-state="warning"] { border-color: #fcd34d; background: #fffbeb; }
.dcc-monitor-bar[data-state="blocked"] { border-color: #fecaca; background: #fff5f5; }
.dcc-monitor-status-group { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; min-width: 0; }
.dcc-monitor-bar p { margin: 0; font-weight: 600; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.dcc-monitor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dcc-monitor-elapsed { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; font-weight: 700; white-space: nowrap; }
.dcc-monitor-bar button { margin: 0; min-height: 44px; }
.dcc-monitor-handoff { margin: 0 0 16px; padding: 16px 18px; border-radius: 14px; border: 1px solid #86efac; background: #f0fdf4; color: #14532d; }
.dcc-monitor-handoff[hidden] { display: none; }
.dcc-monitor-handoff h2 { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: #14532d; }
.dcc-monitor-handoff p { margin: 0; font-size: 13px; line-height: 1.6; color: #166534; }
.dcc-monitor-handoff .primary-button { min-height: 44px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.dcc-monitor-summary { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: #f8fafd; margin-bottom: 16px; }
.dcc-monitor-summary[data-state="done"] { border-color: #86efac; background: #f0fdf4; }
.dcc-monitor-summary[data-state="active"] { border-color: #93c5fd; background: #eff6ff; }
.dcc-monitor-summary[data-state="blocked"] { border-color: #fecaca; background: #fff5f5; }
.dcc-monitor-headline { font-size: 15px; font-weight: 700; margin: 0 0 6px; }
.dcc-monitor-meta { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); overflow-wrap: anywhere; }
.dcc-monitor-activity { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(37, 99, 235, .18); background: rgba(255, 255, 255, .72); font-size: 13px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.dcc-monitor-progress-track { width: 100%; height: 10px; border-radius: 999px; background: #e2e8f0; overflow: hidden; margin: 10px 0 12px; }
.dcc-monitor-progress-fill { height: 100%; width: 0%; border-radius: 999px; background: #2563eb; transition: width .35s ease; }
.dcc-monitor-progress-fill[data-state="active"] { background-image: linear-gradient(90deg, #2563eb 0%, #3b82f6 50%, #2563eb 100%); background-size: 200% 100%; animation: dcc-progress-shimmer 1.8s linear infinite; }
.dcc-monitor-progress-fill[data-state="done"] { background: #16a34a; }
.dcc-monitor-progress-fill[data-state="blocked"] { background: #dc2626; }
.dcc-monitor-progress-fill[data-state="warning"] { background: #d97706; }
@keyframes dcc-progress-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.dcc-monitor-success-note { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: #166534; }
.dcc-monitor-list { margin: 8px 0 18px; padding-left: 20px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.dcc-submit-banner { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid #93c5fd; border-radius: 12px; background: #eff6ff; color: #1e3a8a; font-size: 13px; line-height: 1.55; margin: 12px 0; }
.dcc-submit-banner[hidden] { display: none; }
.dcc-submit-banner p { margin: 4px 0 0; color: #1e40af; }
.dcc-submit-elapsed { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; font-weight: 700; }
.dcc-spinner { width: 20px; height: 20px; flex: none; margin-top: 2px; border: 3px solid #bfdbfe; border-top-color: #2563eb; border-radius: 999px; animation: dcc-spin .85s linear infinite; }
.dcc-spinner[hidden] { display: none; }
@keyframes dcc-spin { to { transform: rotate(360deg); } }
.dcc-monitor-stepper { margin-bottom: 20px; }
@media (prefers-reduced-motion: reduce) {
    .dcc-monitor-progress-fill[data-state="active"], .dcc-spinner { animation: none; }
}
html[data-theme="dark"] .dcc-update-banner[data-tone="ready"], html[data-theme="dark"] .dcc-update-banner[data-tone="up_to_date"] { background: rgba(22, 163, 74, .12); }
html[data-theme="dark"] .dcc-update-banner[data-tone="waiting"] { background: rgba(37, 99, 235, .14); }
html[data-theme="dark"] .dcc-update-banner[data-tone="warning"] { background: rgba(217, 119, 6, .14); }
html[data-theme="dark"] .dcc-update-banner[data-tone="blocked"] { background: rgba(220, 38, 38, .14); }
html[data-theme="dark"] .dcc-update-blockers { background: rgba(127, 29, 29, .28); border-color: #991b1b; color: #fecaca; }
html[data-theme="dark"] .dcc-update-blockers h3 { color: #fca5a5; }
html[data-theme="dark"] .dcc-update-next { background: rgba(30, 58, 138, .28); border-color: #1e40af; color: #dbeafe; }
html[data-theme="dark"] .dcc-step, html[data-theme="dark"] .dcc-update-grid > div, html[data-theme="dark"] .dcc-collapsible, html[data-theme="dark"] .dcc-action-box, html[data-theme="dark"] .dcc-monitor-bar, html[data-theme="dark"] .dcc-monitor-summary { background: #0f172a; border-color: #334155; }
html[data-theme="dark"] .dcc-collapsible[open] > summary { background: #1e293b; border-color: #334155; }
html[data-theme="dark"] .dcc-change-pill { background: #1e293b; border-color: #334155; color: #e2e8f0; }
html[data-theme="dark"] .dcc-change-pill.is-migration { background: rgba(217, 119, 6, .25); border-color: #d97706; color: #fde68a; }
html[data-theme="dark"] .dcc-monitor-progress-track { background: #1e293b; }
html[data-theme="dark"] .dcc-monitor-elapsed { background: #1e293b; border-color: #334155; color: #e2e8f0; }
html[data-theme="dark"] .dcc-monitor-activity { background: rgba(15, 23, 42, .72); border-color: rgba(96, 165, 250, .3); color: #e2e8f0; }
html[data-theme="dark"] .dcc-monitor-handoff { background: rgba(22, 163, 74, .16); border-color: #15803d; color: #dcfce7; }
html[data-theme="dark"] .dcc-monitor-handoff h2 { color: #bbf7d0; }
html[data-theme="dark"] .dcc-monitor-handoff p { color: #dcfce7; }
html[data-theme="dark"] .dcc-monitor-bar[data-state="active"] { background: rgba(30, 58, 138, .22); border-color: #1d4ed8; }
html[data-theme="dark"] .dcc-monitor-bar[data-state="done"] { background: rgba(22, 163, 74, .16); border-color: #15803d; }
html[data-theme="dark"] .dcc-monitor-bar[data-state="warning"] { background: rgba(217, 119, 6, .18); border-color: #d97706; }
html[data-theme="dark"] .dcc-monitor-success-note { color: #86efac; }
html[data-theme="dark"] .dcc-submit-banner { background: rgba(30, 58, 138, .28); border-color: #1e40af; color: #dbeafe; }
html[data-theme="dark"] .dcc-submit-banner p { color: #bfdbfe; }
html[data-theme="dark"] .dcc-spinner { border-color: rgba(147, 197, 253, .3); border-top-color: #60a5fa; }
@media (max-width: 650px) {
    .dcc-update-actions-inline, .dcc-action-row, .dcc-monitor-actions { flex-direction: column; align-items: stretch; width: 100%; }
    .dcc-update-actions-inline form, .dcc-update-actions-inline button, .dcc-update-actions-inline a, .dcc-action-row form, .dcc-action-row button, .dcc-action-row a, .dcc-monitor-actions button, .dcc-monitor-actions .dcc-monitor-elapsed { width: 100%; text-align: center; justify-content: center; min-height: 44px; }
    #deployment-password { font-size: 16px; min-height: 44px; }
}
.rfid-panel-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.rfid-panel-heading > h2 { margin: 0; font-size: 18px; line-height: 1.4; }
.rfid-unassigned-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; }
.rfid-unassigned-switch .secondary-button { min-height: 36px; padding: 6px 12px; font-size: 12px; margin: 0; text-decoration: none; }
.rfid-uid-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.rfid-uid-tools .secondary-button { min-height: 38px; padding: 8px 14px; font-size: 12px; margin: 0; }
.rfid-uid-tools .secondary-button.is-listening { border-color: #16a34a; background: #f0fdf4; color: #166534; font-weight: 700; }
.rfid-feedback-ok { color: #15803d !important; font-weight: 600; }
.rfid-feedback-warn { color: #b91c1c !important; font-weight: 600; }
.rfid-device-panel > p { margin: 0 0 16px; line-height: 1.65; }
.rfid-device-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rfid-device-item { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafd; min-width: 0; }
.rfid-device-item-full { grid-column: 1 / -1; }
.rfid-device-label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.rfid-device-value-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rfid-device-value-row code { flex: 1 1 220px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 12px; word-break: break-all; }
.rfid-device-value-row .secondary-button { min-height: 36px; padding: 6px 12px; font-size: 12px; margin: 0; }
.rfid-device-item .muted { margin: 8px 0 0; font-size: 12px; line-height: 1.6; }
.rfid-rotate-form { margin-top: 14px; }
.rfid-edit-panel { border-color: #93c5fd; background: #f8fbff; }
.rfid-edit-panel > p { margin: 0 0 16px; font-size: 13px; line-height: 1.6; }
.rfid-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rfid-card-actions form { margin: 0; }
.rfid-card-actions .secondary-button { min-height: 34px; padding: 6px 10px; font-size: 12px; margin: 0; text-decoration: none; }
.rfid-danger-btn { border-color: #fca5a5 !important; color: #b91c1c !important; }
.rfid-device-registry { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.rfid-device-registry > h3 { margin: 0 0 6px; font-size: 15px; }
.rfid-device-registry > p { margin: 0 0 12px; font-size: 12px; line-height: 1.6; }
.rfid-status-pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.rfid-status-pill.is-online { background: #dcfce7; color: #166534; }
.rfid-status-pill.is-offline { background: #f1f5f9; color: #475569; }
html[data-theme="dark"] .rfid-status-pill.is-online { background: rgba(22, 163, 74, .25); color: #86efac; }
html[data-theme="dark"] .rfid-status-pill.is-offline { background: #1e293b; color: #94a3b8; }
html[data-theme="dark"] .rfid-edit-panel { background: #0f172a; border-color: #2563eb; }
html[data-theme="dark"] .rfid-danger-btn { border-color: #991b1b !important; color: #fca5a5 !important; }
html[data-theme="dark"] .rfid-device-item { background: #0f172a; border-color: #334155; }
html[data-theme="dark"] .rfid-device-value-row code { background: #1e293b; border-color: #334155; color: #e2e8f0; }
html[data-theme="dark"] .rfid-uid-tools .secondary-button.is-listening { background: rgba(22, 163, 74, .2); border-color: #22c55e; color: #bbf7d0; }
html[data-theme="dark"] .rfid-feedback-ok { color: #86efac !important; }
html[data-theme="dark"] .rfid-feedback-warn { color: #fca5a5 !important; }
@media (max-width: 650px) { .rfid-device-grid { grid-template-columns: minmax(0, 1fr); } .rfid-uid-tools .secondary-button, .rfid-rotate-form .secondary-button, .rfid-unassigned-switch .secondary-button { width: 100%; text-align: center; } }
.bulk-mode-panel { padding: 18px 20px; margin-bottom: 18px; }
.bulk-mode-header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.bulk-mode-header h2 { margin: 0 0 4px; font-size: 16px; line-height: 1.4; }
.bulk-mode-header p { margin: 0; font-size: 12px; line-height: 1.6; }
.bulk-mode-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.bulk-mode-form > div { flex: 1 1 220px; min-width: 0; }
.bulk-mode-form label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.bulk-mode-form select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcff; color: var(--ink); font: inherit; }
.bulk-mode-submit { flex: 0 0 auto !important; }
.bulk-mode-submit .primary-button { margin: 0; min-height: 44px; white-space: nowrap; }
.bulk-mode-badge-warn { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
html[data-theme="dark"] .bulk-mode-form select { background: #0f172a; border-color: #334155; color: #e2e8f0; }
html[data-theme="dark"] .bulk-mode-badge-warn { background: rgba(217, 119, 6, .25); color: #fde68a; border-color: #d97706; }
@media (max-width: 650px) { .bulk-mode-form > div, .bulk-mode-submit, .bulk-mode-submit .primary-button { flex: 1 1 100% !important; width: 100%; } }
.staff-att-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.staff-att-head-actions .primary-button { margin: 0; white-space: nowrap; }
.staff-kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.staff-kpi-card { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; min-width: 0; }
.staff-kpi-card.is-ok { border-color: #bbf7d0; background: #f0fdf4; }
.staff-kpi-card.is-warn { border-color: #fde68a; background: #fffbeb; }
.staff-kpi-card.is-info { border-color: #bfdbfe; background: #eff6ff; }
.staff-kpi-card.is-neutral { border-color: var(--line); background: #f8fafc; }
.staff-kpi-label { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .3px; }
.staff-kpi-value { font-size: 24px; font-weight: 700; line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; }
.staff-kpi-card-uid { font-size: 18px; }
.staff-kpi-sub { font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.staff-badge-ok { background: #dcfce7; color: #166534; border-color: #86efac; }
.staff-badge-warn { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.staff-badge-info { background: #dbeafe; color: #1d4ed8; border-color: #93c5fd; }
.staff-badge-neutral { background: #eef2f7; color: #475569; border-color: #d8e1ec; }
.staff-row-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.staff-manual-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.staff-manual-grid .panel { margin: 0; }
.staff-manual-grid h2 { margin: 0 0 6px; font-size: 16px; }
.staff-manual-grid .panel > p { margin: 0 0 14px; font-size: 12px; }
.staff-settings-subhead { margin: 22px 0 10px !important; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; }
html[data-theme="dark"] .staff-kpi-card { background: #0f172a; border-color: #334155; }
html[data-theme="dark"] .staff-kpi-card.is-ok { background: rgba(22, 163, 74, .16); border-color: #15803d; }
html[data-theme="dark"] .staff-kpi-card.is-warn { background: rgba(217, 119, 6, .16); border-color: #b45309; }
html[data-theme="dark"] .staff-kpi-card.is-info { background: rgba(37, 99, 235, .16); border-color: #1d4ed8; }
html[data-theme="dark"] .staff-kpi-card.is-neutral { background: #1e293b; border-color: #334155; }
html[data-theme="dark"] .staff-badge-ok { background: rgba(22, 163, 74, .25); color: #86efac; border-color: #15803d; }
html[data-theme="dark"] .staff-badge-warn { background: rgba(217, 119, 6, .25); color: #fde68a; border-color: #d97706; }
html[data-theme="dark"] .staff-badge-info { background: rgba(37, 99, 235, .25); color: #93c5fd; border-color: #2563eb; }
html[data-theme="dark"] .staff-badge-neutral { background: #1e293b; color: #94a3b8; border-color: #334155; }
@media (max-width: 1100px) { .staff-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .staff-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .staff-manual-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 500px) { .staff-kpi-grid { grid-template-columns: minmax(0, 1fr); } .staff-att-head-actions, .staff-att-head-actions .primary-button { width: 100%; text-align: center; } }
.schedule-view-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.schedule-view-switch { display: flex; flex-wrap: wrap; gap: 8px; }
.schedule-daily-panel { display: grid; gap: 18px; }
.schedule-daily-header { display: flex; flex-direction: column; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.schedule-daily-summary { margin: 0; font-size: 14px; line-height: 1.6; }
.schedule-day-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.schedule-day-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fbfcff; color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; transition: border-color .15s ease, background-color .15s ease; }
.schedule-day-pill:hover { border-color: #93c5fd; background: #f0f7ff; }
.schedule-day-pill.is-active { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.schedule-day-pill.is-today:not(.is-active) { border-color: #93c5fd; background: #eff6ff; color: #1d4ed8; }
.schedule-today-dot { width: 7px; height: 7px; border-radius: 999px; background: currentColor; display: inline-block; }
.schedule-pill-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 700; background: rgba(15, 23, 42, .08); }
.schedule-day-pill.is-active .schedule-pill-count { background: rgba(255, 255, 255, .22); color: #fff; }
.schedule-day-group { display: grid; gap: 12px; }
.schedule-day-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 8px 12px; border-radius: 10px; background: #f8fafc; border: 1px solid var(--line); }
.schedule-day-group.is-today-group .schedule-day-heading { background: #eff6ff; border-color: #bfdbfe; }
.schedule-day-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.schedule-day-title-row h2 { margin: 0; font-size: 16px; line-height: 1.4; }
.schedule-day-date { font-size: 13px; }
.schedule-daily-list { display: grid; gap: 10px; }
.schedule-daily-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcff; min-width: 0; }
.schedule-daily-card.is-today-card { border-color: #93c5fd; background: #f5f9ff; }
.schedule-daily-main { min-width: 0; flex: 1 1 auto; display: grid; gap: 4px; }
.schedule-daily-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 2px; }
.schedule-daily-time { font-weight: 700; font-size: 14px; color: #1d4ed8; white-space: nowrap; }
.schedule-daily-title { margin: 0; font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.schedule-daily-sub { margin: 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.schedule-daily-meta .badge-combined { white-space: normal; text-align: left; line-height: 1.4; max-width: 100%; }
.schedule-badge-ok { background: #dcfce7; color: #166534; border-color: #86efac; }
.schedule-badge-warn { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.schedule-slot-details { margin-top: 6px; font-size: 13px; }
.schedule-slot-details summary { cursor: pointer; font-weight: 600; color: #1d4ed8; }
.schedule-slot-list { list-style: none; padding: 8px 0 0; margin: 0; display: grid; gap: 6px; }
.schedule-slot-list li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 13px; }
.schedule-slot-links { display: inline-flex; gap: 10px; }
.schedule-daily-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
html[data-theme="dark"] .schedule-day-pill { background: #0f172a; border-color: #334155; color: #e2e8f0; }
html[data-theme="dark"] .schedule-day-pill:hover { background: #1e293b; border-color: #3b82f6; }
html[data-theme="dark"] .schedule-day-pill.is-today:not(.is-active) { background: #172554; border-color: #3b82f6; color: #93c5fd; }
html[data-theme="dark"] .schedule-day-pill.is-active { background: #2563eb; border-color: #2563eb; color: #fff; }
html[data-theme="dark"] .schedule-pill-count { background: rgba(255, 255, 255, .12); }
html[data-theme="dark"] .schedule-day-heading { background: #0f172a; border-color: #334155; }
html[data-theme="dark"] .schedule-day-group.is-today-group .schedule-day-heading { background: #172554; border-color: #2563eb; }
html[data-theme="dark"] .schedule-daily-card { background: #0f172a; border-color: #334155; }
html[data-theme="dark"] .schedule-daily-card.is-today-card { background: #132145; border-color: #3b82f6; }
html[data-theme="dark"] .schedule-daily-time, html[data-theme="dark"] .schedule-slot-details summary { color: #93c5fd; }
html[data-theme="dark"] .schedule-slot-list li { background: #1e293b; border-color: #334155; }
html[data-theme="dark"] .schedule-badge-ok { background: rgba(22, 163, 74, .25); color: #86efac; border-color: #15803d; }
html[data-theme="dark"] .schedule-badge-warn { background: rgba(217, 119, 6, .25); color: #fde68a; border-color: #d97706; }
.schedule-merge-callout { margin-top: 8px; padding: 10px 12px; border: 1px solid #fcd34d; border-radius: 10px; background: #fffbeb; display: grid; gap: 8px; }
.schedule-merge-callout p { margin: 0; font-size: 12.5px; line-height: 1.5; color: #78350f; overflow-wrap: anywhere; }
.schedule-merge-callout form { margin: 0; }
.schedule-merge-btn { width: auto; min-height: 38px; padding: 6px 12px; font-size: 12.5px; font-weight: 700; }
html[data-theme="dark"] .schedule-merge-callout { background: rgba(120, 53, 15, .24); border-color: #b45309; }
html[data-theme="dark"] .schedule-merge-callout p { color: #fde68a; }
@media (min-width: 641px) and (max-width: 1024px) {
    .schedule-daily-card { flex-direction: column; align-items: stretch; }
    .schedule-daily-meta { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; margin-bottom: 6px; }
    .schedule-daily-meta > .schedule-daily-time { flex: 1 0 100%; margin-bottom: 2px; }
    .schedule-daily-meta > .badge { flex: 1 1 135px; justify-content: center; text-align: center; box-sizing: border-box; white-space: normal; line-height: 1.3; padding: 6px 10px; }
    .schedule-daily-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; padding-top: 10px; border-top: 1px solid var(--line); }
    .schedule-daily-actions > a,
    .schedule-daily-actions > button { width: 100%; justify-content: center; text-align: center; min-height: 44px; box-sizing: border-box; }
    .schedule-daily-actions > form { display: contents; }
    .schedule-daily-actions > form > button { width: 100%; justify-content: center; text-align: center; min-height: 44px; box-sizing: border-box; }
    .schedule-daily-actions > :last-child:nth-child(odd) { grid-column: 1 / -1; }
    .schedule-merge-btn { width: 100%; min-height: 44px; }
}
@media (max-width: 640px) {
    .schedule-daily-card { flex-direction: column; align-items: stretch; }
    .schedule-daily-meta { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; margin-bottom: 6px; }
    .schedule-daily-meta > .schedule-daily-time { flex: 1 0 100%; margin-bottom: 2px; }
    .schedule-daily-meta > .badge { flex: 1 1 135px; justify-content: center; text-align: center; box-sizing: border-box; white-space: normal; line-height: 1.3; padding: 6px 10px; }
    .schedule-daily-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; padding-top: 10px; border-top: 1px solid var(--line); }
    .schedule-daily-actions > a,
    .schedule-daily-actions > button { width: 100%; justify-content: center; text-align: center; min-height: 44px; box-sizing: border-box; }
    .schedule-daily-actions > form { display: contents; }
    .schedule-daily-actions > form > button { width: 100%; justify-content: center; text-align: center; min-height: 44px; box-sizing: border-box; }
    .schedule-daily-actions > :last-child:nth-child(odd) { grid-column: 1 / -1; }
    .schedule-merge-btn { width: 100%; min-height: 44px; }
}
@media (max-width: 640px) {
    .schedule-daily-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; width: 100%; margin-bottom: 6px; }
    .schedule-daily-meta > .schedule-daily-time { grid-column: 1 / -1; margin-bottom: 2px; }
    .schedule-daily-meta > .badge { width: 100%; justify-content: center; text-align: center; box-sizing: border-box; white-space: normal; line-height: 1.3; padding: 5px 8px; }
    .schedule-daily-meta > .badge:last-child:nth-child(even) { grid-column: 1 / -1; }
}

/* Class Transfer (Pindah Rombel) — 3-Mode Responsive & Light/Dark */
.transfer-divider { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.transfer-active-box { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafc; display: grid; gap: 10px; }
.transfer-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.transfer-detail-head h2 { margin: 0 0 4px; overflow-wrap: anywhere; }
.transfer-stepper { list-style: none; margin: 14px 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.transfer-step { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcff; min-width: 0; }
.transfer-step-num { width: 28px; height: 28px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; background: #e2e8f0; color: #334155; }
.transfer-step-body { display: grid; gap: 2px; min-width: 0; }
.transfer-step-body strong { font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.transfer-step-sub { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.transfer-step-state { font-size: 12px; font-weight: 600; color: var(--muted); }
.transfer-step.is-done { border-color: #86efac; background: #f0fdf4; }
.transfer-step.is-done .transfer-step-num { background: #16a34a; color: #fff; }
.transfer-step.is-done .transfer-step-state { color: #166534; }
.transfer-step.is-current { border-color: #93c5fd; background: #eff6ff; }
.transfer-step.is-current .transfer-step-num { background: #1d4ed8; color: #fff; }
.transfer-step.is-current .transfer-step-state { color: #1d4ed8; }
.transfer-step.is-rejected { border-color: #fca5a5; background: #fef2f2; }
.transfer-step.is-rejected .transfer-step-num { background: #dc2626; color: #fff; }
.transfer-step.is-rejected .transfer-step-state { color: #991b1b; }
.transfer-meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.transfer-meta-grid > div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcff; min-width: 0; }
.transfer-meta-grid dt { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; }
.transfer-meta-grid dd { margin: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.transfer-meta-wide { grid-column: 1 / -1; }
.transfer-warning-box { margin: 12px 0; padding: 12px 14px; border: 1px solid #fcd34d; border-radius: 10px; background: #fffbeb; color: #78350f; font-size: 13.5px; line-height: 1.5; }
.transfer-summary-box { margin: 12px 0; padding: 14px 16px; border: 1px solid #86efac; border-radius: 12px; background: #f0fdf4; display: grid; gap: 6px; }
.transfer-summary-box h3 { margin: 0; font-size: 15px; color: #166534; }
.transfer-summary-box ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13.5px; color: #14532d; }
.transfer-audit-list { display: grid; gap: 10px; }
.transfer-audit-item { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcff; display: grid; gap: 4px; }
.transfer-audit-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
html[data-theme="dark"] .transfer-active-box,
html[data-theme="dark"] .transfer-step,
html[data-theme="dark"] .transfer-meta-grid > div,
html[data-theme="dark"] .transfer-audit-item { background: #0f172a; border-color: #334155; }
html[data-theme="dark"] .transfer-step-num { background: #334155; color: #e2e8f0; }
html[data-theme="dark"] .transfer-step.is-done { background: rgba(22, 163, 74, .18); border-color: #15803d; }
html[data-theme="dark"] .transfer-step.is-done .transfer-step-state { color: #86efac; }
html[data-theme="dark"] .transfer-step.is-current { background: rgba(37, 99, 235, .2); border-color: #3b82f6; }
html[data-theme="dark"] .transfer-step.is-current .transfer-step-state { color: #93c5fd; }
html[data-theme="dark"] .transfer-step.is-rejected { background: rgba(220, 38, 38, .2); border-color: #ef4444; }
html[data-theme="dark"] .transfer-step.is-rejected .transfer-step-state { color: #fca5a5; }
html[data-theme="dark"] .transfer-warning-box { background: rgba(120, 53, 15, .24); border-color: #b45309; color: #fde68a; }
html[data-theme="dark"] .transfer-summary-box { background: rgba(22, 163, 74, .18); border-color: #15803d; }
html[data-theme="dark"] .transfer-summary-box h3,
html[data-theme="dark"] .transfer-summary-box ul { color: #bbf7d0; }
.ui-card-val { display: contents; }
@media (min-width: 641px) and (max-width: 768px) {
    .transfer-stepper { grid-template-columns: minmax(0, 1fr); }
    .transfer-meta-grid { grid-template-columns: minmax(0, 1fr); }
    .class-join-form textarea,
    .class-join-form select,
    .class-join-form input { font-size: 16px; min-height: 44px; }
    .class-join-form button,
    .request-center-detail .page-actions > a,
    .request-center-detail .page-actions > button { min-height: 44px; width: 100%; justify-content: center; text-align: center; }
}
@media (max-width: 640px) {
    .transfer-stepper { grid-template-columns: minmax(0, 1fr); }
    .transfer-meta-grid { grid-template-columns: minmax(0, 1fr); }
    .class-join-form textarea,
    .class-join-form select,
    .class-join-form input { font-size: 16px; min-height: 44px; }
    .class-join-form button,
    .request-center-detail .page-actions > a,
    .request-center-detail .page-actions > button { min-height: 44px; width: 100%; justify-content: center; text-align: center; }
}

/* Global auto row number column (No.) */
.auto-no-col { width: 48px; min-width: 44px; text-align: center !important; vertical-align: middle; white-space: nowrap; }
.auto-no-cell { width: 48px; text-align: center !important; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; white-space: nowrap; }
table thead th { overflow-wrap: normal; word-break: normal; hyphens: none; }
caption.table-sort-caption { padding: 8px 16px 10px; text-align: left; }

/* Operational guidance banner on student manual placement form */
.placement-guidance { margin-top: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.placement-guidance > div { flex: 1 1 300px; min-width: 0; display: grid; gap: 4px; }
.placement-guidance strong { font-size: 13.5px; line-height: 1.35; }
.placement-guidance p { margin: 0; font-size: 13px; line-height: 1.5; }
.placement-guidance > a { margin: 0; flex-shrink: 0; }
.placement-guidance.is-info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.placement-guidance.is-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
html[data-theme="dark"] .placement-guidance.is-info { background: rgba(37, 99, 235, .18); border-color: #1d4ed8; color: #bfdbfe; }
html[data-theme="dark"] .placement-guidance.is-warning { background: rgba(180, 83, 9, .22); border-color: #b45309; color: #fde68a; }
.ui-card-val { display: contents; }
@media (min-width: 641px) and (max-width: 768px) {
    .placement-guidance > a { width: 100%; min-height: 44px; justify-content: center; text-align: center; }
    /* Global unified mobile card-row for all standard list tables across every role (Light & Dark Mode) */
    .table-scroll:has(> table.ui-card-table),
    .table-wrap:has(> table.ui-card-table),
    .ppdb-table:has(> table.ui-card-table) { overflow: visible; }
    table.ui-card-table { width: 100% !important; min-width: 0 !important; display: block; }
    table.ui-card-table thead { display: none; }
    table.ui-card-table > caption.table-sort-caption,
    #learning-details .monitoring-table > caption.table-sort-caption,
    table.exam-sheet-table > caption.table-sort-caption,
    table.exam-events-list-table > caption.table-sort-caption,
    table.exam-proctor-matrix-table > caption.table-sort-caption,
    table.exam-cards-list-table > caption.table-sort-caption,
    .hm-index-table > caption.table-sort-caption,
    .hm-roster-table > caption.table-sort-caption,
    .student-review-list caption.table-sort-caption,
    .account-directory-panel caption.table-sort-caption,
    .hr-card-table > caption.table-sort-caption,
    .student-finance-report caption.table-sort-caption,
    .homeroom-alert-table caption.table-sort-caption,
    .hubin .placements > caption.table-sort-caption { display: none; }
    caption.table-sort-caption { width: 100%; max-width: 100%; box-sizing: border-box; }
    main table, main table tbody, main table tr, main table td, main table th { box-sizing: border-box; }
    table.ui-card-table tbody,
    table.ui-card-table tr,
    table.ui-card-table td,
    table.ui-card-table th { display: block; width: 100% !important; min-width: 0 !important; max-width: none !important; box-sizing: border-box; }
    table.ui-card-table tbody { display: grid; gap: 10px; padding: 10px; }
    table.ui-card-table tbody tr { border: 1px solid var(--line); border-radius: 12px; background: var(--surface, #fff); overflow: hidden; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); }
    table.ui-card-table tbody td,
    table.ui-card-table tbody th { border: 0; border-bottom: 1px solid var(--line); padding: 8px 12px !important; text-align: left !important; white-space: normal !important; overflow-wrap: break-word; word-break: normal; }
    main table:has(> tbody > tr:only-child > td[colspan]) > thead,
    main table:has(> tbody > tr:only-child > td[colspan]) > caption.table-sort-caption { display: none; }
    table.ui-card-table tbody tr > :last-child { border-bottom: 0; }
    table.ui-card-table tbody td[data-label]::before,
    table.ui-card-table tbody th[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 3px; overflow-wrap: normal; word-break: normal; }
    table.ui-card-table:not(.sm-proc-table) tbody td[data-ui-card="no"],
    table.ui-card-table:not(.sm-proc-table) tbody th[data-ui-card="no"] { display: flex !important; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px !important; background: var(--canvas, #f8fafc); font-size: 12.5px; font-weight: 800; color: #1d4ed8; font-variant-numeric: tabular-nums; }
    table.ui-card-table:not(.sm-proc-table) tbody td[data-ui-card="no"]::before,
    table.ui-card-table:not(.sm-proc-table) tbody th[data-ui-card="no"]::before { margin-bottom: 0; flex: 0 0 auto; font-size: 10.5px; }
    table.ui-card-table:not(.sm-proc-table) tbody td[data-ui-card="inline"],
    table.ui-card-table:not(.sm-proc-table) tbody th[data-ui-card="inline"] { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px !important; text-align: right !important; font-variant-numeric: tabular-nums; }
    table.ui-card-table:not(.sm-proc-table) tbody td[data-ui-card="inline"]::before,
    table.ui-card-table:not(.sm-proc-table) tbody th[data-ui-card="inline"]::before { margin-bottom: 0; flex: 0 0 auto; max-width: 46%; text-align: left; }
    table.ui-card-table:not(.sm-proc-table) tbody td[data-ui-card="inline"] > :is(.recap-count, .cur-badge, .sa-badge, .badge) { display: inline-flex; align-items: center; justify-content: center; padding: 2px 8px; margin-right: -8px; font-variant-numeric: tabular-nums; }
    table.ui-card-table:not(.sm-proc-table) tbody td[data-ui-card="inline-stack"],
    table.ui-card-table:not(.sm-proc-table) tbody th[data-ui-card="inline-stack"] { display: flex !important; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 8px 12px !important; text-align: right !important; font-variant-numeric: tabular-nums; }
    table.ui-card-table:not(.sm-proc-table) tbody td[data-ui-card="inline-stack"]::before,
    table.ui-card-table:not(.sm-proc-table) tbody th[data-ui-card="inline-stack"]::before { margin-bottom: 0; flex: 0 0 auto; max-width: 44%; text-align: left; padding-top: 2px; }
    table.ui-card-table:not(.sm-proc-table) tbody td[data-ui-card="inline-stack"] > .ui-card-val,
    table.ui-card-table:not(.sm-proc-table) tbody th[data-ui-card="inline-stack"] > .ui-card-val { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 1 1 auto; min-width: 0; text-align: right; }
    table.ui-card-table:not(.sm-proc-table) tbody td[data-ui-card="inline-stack"] > .ui-card-val > * { max-width: 100%; text-align: right; }
    table.ui-card-table tbody td[colspan]::before { display: none; }
    table.ui-card-table tbody td :is(.table-link, .primary-button, .secondary-button, button) { min-height: 44px; }
    table.ui-card-table tbody :is(.master-row-actions, .staff-row-actions, .academics-row-actions, .monitoring-row-actions, .hm-row-actions, .hm-student-row-actions, .hr-row-actions, .course-row-actions, .table-row-actions, .row-actions) { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; box-sizing: border-box; align-items: stretch; }
    table.ui-card-table tbody :is(.master-row-actions, .staff-row-actions, .academics-row-actions, .monitoring-row-actions, .hm-row-actions, .hm-student-row-actions, .hr-row-actions, .course-row-actions, .table-row-actions, .row-actions) > a,
    table.ui-card-table tbody :is(.master-row-actions, .staff-row-actions, .academics-row-actions, .monitoring-row-actions, .hm-row-actions, .hm-student-row-actions, .hr-row-actions, .course-row-actions, .table-row-actions, .row-actions) > button { width: 100%; min-width: 0; max-width: none; min-height: 44px; justify-content: center; text-align: center; box-sizing: border-box; margin: 0; }
    table.ui-card-table tbody :is(.master-row-actions, .staff-row-actions, .academics-row-actions, .monitoring-row-actions, .hm-row-actions, .hm-student-row-actions, .hr-row-actions, .course-row-actions, .table-row-actions, .row-actions) > form { display: flex; width: 100%; min-width: 0; margin: 0; }
    table.ui-card-table tbody :is(.master-row-actions, .staff-row-actions, .academics-row-actions, .monitoring-row-actions, .hm-row-actions, .hm-student-row-actions, .hr-row-actions, .course-row-actions, .table-row-actions, .row-actions) > form > button { width: 100%; min-width: 0; max-width: none; min-height: 44px; justify-content: center; text-align: center; box-sizing: border-box; margin: 0; }
    table.ui-card-table tbody :is(.master-row-actions, .staff-row-actions, .academics-row-actions, .monitoring-row-actions, .hm-row-actions, .hm-student-row-actions, .hr-row-actions, .course-row-actions, .table-row-actions, .row-actions) > a.table-link { display: inline-flex; align-items: center; padding: 8px 12px; border: 1px solid #bfdbfe; border-radius: 10px; background: #eff6ff; color: #1d4ed8; font-weight: 600; text-decoration: none; }
    html[data-theme="dark"] table.ui-card-table tbody :is(.master-row-actions, .staff-row-actions, .academics-row-actions, .monitoring-row-actions, .hm-row-actions, .hm-student-row-actions, .hr-row-actions, .course-row-actions, .table-row-actions, .row-actions) > a.table-link { background: rgba(37, 99, 235, 0.18); border-color: #1d4ed8; color: #93c5fd; }
    table.ui-card-table tbody :is(.master-row-actions, .staff-row-actions, .academics-row-actions, .monitoring-row-actions, .hm-row-actions, .hm-student-row-actions, .hr-row-actions, .course-row-actions, .table-row-actions, .row-actions) > :last-child:nth-child(odd) { grid-column: 1 / -1; }
    html[data-theme="dark"] table.ui-card-table tbody tr { background: #0f172a; border-color: #334155; }
    html[data-theme="dark"] table.ui-card-table:not(.sm-proc-table) tbody td[data-ui-card="no"],
    html[data-theme="dark"] table.ui-card-table:not(.sm-proc-table) tbody th[data-ui-card="no"] { background: rgba(30, 41, 59, 0.75); color: #93c5fd; }
}
@media (max-width: 640px) {
    .placement-guidance > a { width: 100%; min-height: 44px; justify-content: center; text-align: center; }
    /* Global unified mobile card-row for all standard list tables across every role (Light & Dark Mode) */
    .table-scroll:has(> table.ui-card-table),
    .table-wrap:has(> table.ui-card-table),
    .ppdb-table:has(> table.ui-card-table) { overflow: visible; }
    table.ui-card-table { width: 100% !important; min-width: 0 !important; display: block; }
    table.ui-card-table thead { display: none; }
    table.ui-card-table > caption.table-sort-caption,
    #learning-details .monitoring-table > caption.table-sort-caption,
    table.exam-sheet-table > caption.table-sort-caption,
    table.exam-events-list-table > caption.table-sort-caption,
    table.exam-proctor-matrix-table > caption.table-sort-caption,
    table.exam-cards-list-table > caption.table-sort-caption,
    .hm-index-table > caption.table-sort-caption,
    .hm-roster-table > caption.table-sort-caption,
    .student-review-list caption.table-sort-caption,
    .account-directory-panel caption.table-sort-caption,
    .hr-card-table > caption.table-sort-caption,
    .student-finance-report caption.table-sort-caption,
    .homeroom-alert-table caption.table-sort-caption,
    .hubin .placements > caption.table-sort-caption { display: none; }
    caption.table-sort-caption { width: 100%; max-width: 100%; box-sizing: border-box; }
    main table, main table tbody, main table tr, main table td, main table th { box-sizing: border-box; }
    table.ui-card-table tbody,
    table.ui-card-table tr,
    table.ui-card-table td,
    table.ui-card-table th { display: block; width: 100% !important; min-width: 0 !important; max-width: none !important; box-sizing: border-box; }
    table.ui-card-table tbody { display: grid; gap: 10px; padding: 10px; }
    table.ui-card-table tbody tr { border: 1px solid var(--line); border-radius: 12px; background: var(--surface, #fff); overflow: hidden; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); }
    table.ui-card-table tbody td,
    table.ui-card-table tbody th { border: 0; border-bottom: 1px solid var(--line); padding: 8px 12px !important; text-align: left !important; white-space: normal !important; overflow-wrap: break-word; word-break: normal; }
    main table:has(> tbody > tr:only-child > td[colspan]) > thead,
    main table:has(> tbody > tr:only-child > td[colspan]) > caption.table-sort-caption { display: none; }
    table.ui-card-table tbody tr > :last-child { border-bottom: 0; }
    table.ui-card-table tbody td[data-label]::before,
    table.ui-card-table tbody th[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 3px; overflow-wrap: normal; word-break: normal; }
    table.ui-card-table:not(.sm-proc-table) tbody td[data-ui-card="no"],
    table.ui-card-table:not(.sm-proc-table) tbody th[data-ui-card="no"] { display: flex !important; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px !important; background: var(--canvas, #f8fafc); font-size: 12.5px; font-weight: 800; color: #1d4ed8; font-variant-numeric: tabular-nums; }
    table.ui-card-table:not(.sm-proc-table) tbody td[data-ui-card="no"]::before,
    table.ui-card-table:not(.sm-proc-table) tbody th[data-ui-card="no"]::before { margin-bottom: 0; flex: 0 0 auto; font-size: 10.5px; }
    table.ui-card-table:not(.sm-proc-table) tbody td[data-ui-card="inline"],
    table.ui-card-table:not(.sm-proc-table) tbody th[data-ui-card="inline"] { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px !important; text-align: right !important; font-variant-numeric: tabular-nums; }
    table.ui-card-table:not(.sm-proc-table) tbody td[data-ui-card="inline"]::before,
    table.ui-card-table:not(.sm-proc-table) tbody th[data-ui-card="inline"]::before { margin-bottom: 0; flex: 0 0 auto; max-width: 46%; text-align: left; }
    table.ui-card-table:not(.sm-proc-table) tbody td[data-ui-card="inline"] > :is(.recap-count, .cur-badge, .sa-badge, .badge) { display: inline-flex; align-items: center; justify-content: center; padding: 2px 8px; margin-right: -8px; font-variant-numeric: tabular-nums; }
    table.ui-card-table:not(.sm-proc-table) tbody td[data-ui-card="inline-stack"],
    table.ui-card-table:not(.sm-proc-table) tbody th[data-ui-card="inline-stack"] { display: flex !important; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 8px 12px !important; text-align: right !important; font-variant-numeric: tabular-nums; }
    table.ui-card-table:not(.sm-proc-table) tbody td[data-ui-card="inline-stack"]::before,
    table.ui-card-table:not(.sm-proc-table) tbody th[data-ui-card="inline-stack"]::before { margin-bottom: 0; flex: 0 0 auto; max-width: 44%; text-align: left; padding-top: 2px; }
    table.ui-card-table:not(.sm-proc-table) tbody td[data-ui-card="inline-stack"] > .ui-card-val,
    table.ui-card-table:not(.sm-proc-table) tbody th[data-ui-card="inline-stack"] > .ui-card-val { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 1 1 auto; min-width: 0; text-align: right; }
    table.ui-card-table:not(.sm-proc-table) tbody td[data-ui-card="inline-stack"] > .ui-card-val > * { max-width: 100%; text-align: right; }
    table.ui-card-table tbody td[colspan]::before { display: none; }
    table.ui-card-table tbody td :is(.table-link, .primary-button, .secondary-button, button) { min-height: 44px; }
    table.ui-card-table tbody :is(.master-row-actions, .staff-row-actions, .academics-row-actions, .monitoring-row-actions, .hm-row-actions, .hm-student-row-actions, .hr-row-actions, .course-row-actions, .table-row-actions, .row-actions) { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; box-sizing: border-box; align-items: stretch; }
    table.ui-card-table tbody :is(.master-row-actions, .staff-row-actions, .academics-row-actions, .monitoring-row-actions, .hm-row-actions, .hm-student-row-actions, .hr-row-actions, .course-row-actions, .table-row-actions, .row-actions) > a,
    table.ui-card-table tbody :is(.master-row-actions, .staff-row-actions, .academics-row-actions, .monitoring-row-actions, .hm-row-actions, .hm-student-row-actions, .hr-row-actions, .course-row-actions, .table-row-actions, .row-actions) > button { width: 100%; min-width: 0; max-width: none; min-height: 44px; justify-content: center; text-align: center; box-sizing: border-box; margin: 0; }
    table.ui-card-table tbody :is(.master-row-actions, .staff-row-actions, .academics-row-actions, .monitoring-row-actions, .hm-row-actions, .hm-student-row-actions, .hr-row-actions, .course-row-actions, .table-row-actions, .row-actions) > form { display: flex; width: 100%; min-width: 0; margin: 0; }
    table.ui-card-table tbody :is(.master-row-actions, .staff-row-actions, .academics-row-actions, .monitoring-row-actions, .hm-row-actions, .hm-student-row-actions, .hr-row-actions, .course-row-actions, .table-row-actions, .row-actions) > form > button { width: 100%; min-width: 0; max-width: none; min-height: 44px; justify-content: center; text-align: center; box-sizing: border-box; margin: 0; }
    table.ui-card-table tbody :is(.master-row-actions, .staff-row-actions, .academics-row-actions, .monitoring-row-actions, .hm-row-actions, .hm-student-row-actions, .hr-row-actions, .course-row-actions, .table-row-actions, .row-actions) > a.table-link { display: inline-flex; align-items: center; padding: 8px 12px; border: 1px solid #bfdbfe; border-radius: 10px; background: #eff6ff; color: #1d4ed8; font-weight: 600; text-decoration: none; }
    html[data-theme="dark"] table.ui-card-table tbody :is(.master-row-actions, .staff-row-actions, .academics-row-actions, .monitoring-row-actions, .hm-row-actions, .hm-student-row-actions, .hr-row-actions, .course-row-actions, .table-row-actions, .row-actions) > a.table-link { background: rgba(37, 99, 235, 0.18); border-color: #1d4ed8; color: #93c5fd; }
    table.ui-card-table tbody :is(.master-row-actions, .staff-row-actions, .academics-row-actions, .monitoring-row-actions, .hm-row-actions, .hm-student-row-actions, .hr-row-actions, .course-row-actions, .table-row-actions, .row-actions) > :last-child:nth-child(odd) { grid-column: 1 / -1; }
    html[data-theme="dark"] table.ui-card-table tbody tr { background: #0f172a; border-color: #334155; }
    html[data-theme="dark"] table.ui-card-table:not(.sm-proc-table) tbody td[data-ui-card="no"],
    html[data-theme="dark"] table.ui-card-table:not(.sm-proc-table) tbody th[data-ui-card="no"] { background: rgba(30, 41, 59, 0.75); color: #93c5fd; }
}

/* 4 UX Enhancements: Today Focus, What's New Banner, Quick Search Dialog & Submit Feedback Toast */
.today-focus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); gap: 14px; margin-bottom: 18px; }
.today-focus-card { padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; border-left: 4px solid #2563eb; min-width: 0; }
.today-focus-card.is-indigo { border-left-color: #4f46e5; }
.today-focus-card.is-green { border-left-color: #16a34a; }
.today-focus-card.is-amber { border-left-color: #d97706; }
.today-focus-copy { display: grid; gap: 4px; min-width: 0; }
.today-focus-copy h2 { margin: 0; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.today-focus-copy p { margin: 0; font-size: 13px; line-height: 1.5; }
.today-focus-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.today-focus-actions:has(.today-focus-chip) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: stretch; width: 100%; }
.today-focus-actions:has(> .today-focus-chip:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.today-focus-actions:has(> .today-focus-chip:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.today-focus-actions form { margin: 0; }
.today-focus-actions .primary-button { margin: 0; min-height: 44px; }
.today-focus-chip { display: inline-flex; align-items: center; justify-content: center; text-align: center; width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 1px solid #bfdbfe; background: #eff6ff; color: #1d4ed8; font-size: 12.5px; font-weight: 600; line-height: 1.3; text-decoration: none; transition: background-color .15s ease, border-color .15s ease; }
.today-focus-chip:hover { background: #dbeafe; border-color: #93c5fd; text-decoration: none; }
html[data-theme="dark"] .today-focus-chip { background: rgba(37, 99, 235, .2); border-color: #1d4ed8; color: #93c5fd; }
html[data-theme="dark"] .today-focus-chip:hover { background: rgba(37, 99, 235, .32); }
@media (max-width: 640px) {
    .today-focus-actions:has(.today-focus-chip) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .today-focus-actions:has(.today-focus-chip) > .today-focus-chip:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .today-focus-actions > form,
    .today-focus-actions > .primary-button,
    .today-focus-actions > form > .primary-button { width: 100%; justify-content: center; text-align: center; }
}

.whats-new-banner { padding: 13px 16px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #f0f7ff; border-color: #bfdbfe; }
.whats-new-body { display: flex; align-items: center; gap: 12px; flex: 1 1 320px; min-width: 0; flex-wrap: wrap; }
.whats-new-pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: #2563eb; color: #fff; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.whats-new-copy { display: grid; gap: 2px; font-size: 13px; line-height: 1.45; min-width: 0; color: var(--ink); }
.whats-new-dismiss { min-height: 40px; margin: 0; flex-shrink: 0; }
html[data-theme="dark"] .whats-new-banner { background: rgba(30, 58, 138, .25); border-color: #1e40af; }

.quick-search-trigger { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 11px; font-size: 12.5px; }
.quick-search-trigger kbd { font: inherit; font-size: 11px; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); background: var(--canvas, #f8fafc); color: var(--muted); }
.quick-search-dialog { width: min(620px, calc(100vw - 24px)); max-height: 82dvh; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface, #fff); color: var(--ink); box-shadow: 0 24px 64px rgba(15, 23, 42, .28); }
.quick-search-dialog::backdrop { background: rgba(15, 23, 42, .5); backdrop-filter: blur(2px); }
.quick-search-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.quick-search-head h2 { margin: 0; font-size: 17px; }
.quick-search-input-wrap input { width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas, #f8fafc); color: var(--ink); font: inherit; font-size: 15px; }
.quick-search-results { margin-top: 12px; max-height: 52dvh; overflow-y: auto; display: grid; gap: 12px; }
.quick-search-hint { margin: 6px 2px; font-size: 13px; }
.quick-search-group { display: grid; gap: 6px; }
.quick-search-group h3 { margin: 0; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.quick-search-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas, #f8fafc); }
.quick-search-main { display: grid; gap: 2px; text-decoration: none; color: var(--ink); min-width: 0; flex: 1 1 200px; }
.quick-search-main strong { font-size: 13.5px; overflow-wrap: anywhere; }
.quick-search-main small { font-size: 12px; color: var(--muted); }
.quick-search-links { display: flex; flex-wrap: wrap; gap: 6px; }
.quick-search-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 4px 10px; border-radius: 999px; border: 1px solid #bfdbfe; background: #eff6ff; color: #1d4ed8; font-size: 12px; font-weight: 600; text-decoration: none; }
html[data-theme="dark"] .quick-search-dialog { background: #111b2e; border-color: #24344f; color: #edf3fc; }
html[data-theme="dark"] .quick-search-input-wrap input,
html[data-theme="dark"] .quick-search-item { background: #0b1220; border-color: #24344f; color: #edf3fc; }
html[data-theme="dark"] .quick-search-pill { background: rgba(37, 99, 235, .22); border-color: #1d4ed8; color: #93c5fd; }

button.is-submitting { opacity: .72; cursor: wait; }
.ssms-flash-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 45; max-width: min(460px, calc(100vw - 32px)); padding: 10px 18px; border-radius: 999px; background: rgba(15, 23, 42, .94); color: #f8fafc; font-size: 13px; font-weight: 600; text-align: center; box-shadow: 0 10px 28px rgba(15, 23, 42, .28); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.ssms-flash-toast.is-leaving { opacity: 0; transform: translate(-50%, 8px); }
html[data-theme="dark"] .ssms-flash-toast { background: rgba(30, 41, 59, .96); border: 1px solid #475569; }
.family-self-slot { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: var(--canvas, #f8fafc); }
.family-self-slot > summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; min-height: 36px; list-style: none; }
.family-self-slot > summary::-webkit-details-marker { display: none; }
html[data-theme="dark"] .family-self-slot { background: #0b1220; border-color: #24344f; }
@media (min-width: 641px) and (max-width: 900px) {
    .quick-search-trigger kbd { display: none; }
    .quick-search-input-wrap input { font-size: 16px; }
    .quick-search-pill, .today-focus-chip, .whats-new-dismiss { min-height: 44px; }
    .whats-new-dismiss { width: 100%; }
    .ssms-flash-toast { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 640px) {
    .quick-search-trigger kbd { display: none; }
    .quick-search-input-wrap input { font-size: 16px; }
    .quick-search-pill, .today-focus-chip, .whats-new-dismiss { min-height: 44px; }
    .whats-new-dismiss { width: 100%; }
    .ssms-flash-toast { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 640px) {
    .page-heading {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .page-heading > a,
    .page-heading > button,
    .page-heading > form,
    .page-heading > form > button {
        width: 100%;
        min-height: 44px;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
        white-space: normal;
    }
    .student-portal-tabs,
    .master-tabs,
    .attendance-tabs-row,
    .request-center-tabs,
    .schedule-view-switch,
    .schedule-day-pills,
    .daily-session-links,
    .fa-switcher,
    .fa-tabs,
    .role-guide-toc,
    .page-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }
    .student-portal-tabs > a,
    .student-portal-tabs > button,
    .master-tabs > a,
    .master-tabs > button,
    .attendance-tabs-row > a,
    .attendance-tabs-row > button,
    .request-center-tabs > a,
    .request-center-tabs > button,
    .schedule-view-switch > a,
    .schedule-view-switch > button,
    .schedule-day-pills > a,
    .schedule-day-pills > button,
    .daily-session-links > a,
    .fa-switcher > a,
    .fa-tabs > a,
    .role-guide-toc > a,
    .page-actions > a,
    .page-actions > button {
        width: 100%;
        min-height: 44px;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
        white-space: normal;
        line-height: 1.3;
    }
    .schedule-day-pills > .schedule-day-pill {
        justify-content: space-between;
        text-align: left;
        border-radius: 12px;
        padding: 8px 12px;
    }
    .schedule-day-pills .schedule-pill-count {
        flex-shrink: 0;
    }
    .page-actions > form { display: contents; }
    .page-actions > form > button {
        width: 100%;
        min-height: 44px;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
    }
    .student-portal-tabs > :last-child:nth-child(odd),
    .master-tabs > :last-child:nth-child(odd),
    .attendance-tabs-row > :last-child:nth-child(odd),
    .request-center-tabs > :last-child:nth-child(odd),
    .schedule-view-switch > :last-child:nth-child(odd),
    .schedule-day-pills > :last-child:nth-child(odd),
    .daily-session-links > :last-child:nth-child(odd),
    .fa-switcher > :last-child:nth-child(odd),
    .fa-tabs > :last-child:nth-child(odd),
    .role-guide-toc > :last-child:nth-child(odd),
    .page-actions > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
    dl.self-profile-grid,
    dl.student-profile-fields,
    dl.staff-detail-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    dl.self-profile-grid > div,
    dl.student-profile-fields > div,
    dl.staff-detail-grid > div {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        padding: 9px 0;
        border-bottom: 1px solid var(--line);
    }
    dl.self-profile-grid > div:last-child,
    dl.student-profile-fields > div:last-child,
    dl.staff-detail-grid > div:last-child {
        border-bottom: 0;
    }
    dl.self-profile-grid dt,
    dl.student-profile-fields dt,
    dl.staff-detail-grid dt {
        flex: 0 0 auto;
        max-width: 44%;
        margin: 0;
        font-size: 12px;
        font-weight: 600;
        color: var(--muted);
        text-align: left;
        line-height: 1.4;
    }
    dl.self-profile-grid dd,
    dl.student-profile-fields dd,
    dl.staff-detail-grid dd {
        flex: 1 1 auto;
        margin: 0;
        font-size: 13.5px;
        font-weight: 600;
        color: var(--ink);
        text-align: right;
        line-height: 1.45;
        font-variant-numeric: tabular-nums;
        overflow-wrap: anywhere;
    }
    /* Mobile UX Polish (Paket A): typography, safe bottom clearance, iOS 16px inputs, filters, form-actions & thumb-friendly pagination */
    .dashboard-content {
        padding: 16px 12px calc(88px + env(safe-area-inset-bottom, 0px));
    }
    .page-heading h1 {
        font-size: clamp(20px, 5.4vw, 24px);
        line-height: 1.28;
    }
    main :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]), select, textarea) {
        font-size: 16px;
    }
    form.list-filters {
        padding: 14px;
        gap: 10px;
    }
    form.list-filters > div {
        flex: 1 1 100%;
        width: 100%;
    }
    form.list-filters > :where(button, a.secondary-button, a.primary-button) {
        width: 100%;
        min-height: 44px;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
    }
    .form-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }
    .form-actions > form { display: contents; }
    .form-actions > a,
    .form-actions > button,
    .form-actions > form > button {
        width: 100%;
        min-height: 44px;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
        margin: 0;
    }
    .form-actions > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
    nav.pagination.list-pagination {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "pos pos"
            "prev next";
        gap: 8px;
        padding: 12px 10px;
        width: 100%;
        box-sizing: border-box;
    }
    nav.pagination.list-pagination .pagination-position {
        grid-area: pos;
        text-align: center;
        font-size: 12.5px;
        font-weight: 600;
        color: var(--muted);
        font-variant-numeric: tabular-nums;
    }
    nav.pagination.list-pagination .pagination-previous { grid-area: prev; justify-self: stretch; }
    nav.pagination.list-pagination .pagination-next { grid-area: next; justify-self: stretch; }
    nav.pagination.list-pagination .pagination-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 100%;
        min-height: 44px;
        padding: 8px 12px;
        border-radius: 10px;
        border: 1px solid var(--line);
        background: var(--surface, #fff);
        font-size: 13px;
        font-weight: 600;
        text-align: center;
        text-decoration: none;
        box-sizing: border-box;
    }
    nav.pagination.list-pagination .pagination-button[aria-disabled="true"] {
        opacity: 0.48;
        cursor: default;
    }
    html[data-theme="dark"] nav.pagination.list-pagination .pagination-button {
        background: #0f172a;
        border-color: #334155;
        color: #93c5fd;
    }
    html[data-theme="dark"] nav.pagination.list-pagination .pagination-button[aria-disabled="true"] {
        color: #64748b;
    }
}

/* Consolidated Tablet (641px-1024px) edge-to-edge alignment & <=900px topbar anti-overflow */
@media (min-width: 641px) and (max-width: 900px) {
    .dashboard-page .topbar {
        padding: 0 12px;
        gap: 8px;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }
    .dashboard-page .topbar-title {
        min-width: 0;
        flex: 1 1 0;
        overflow: hidden;
        gap: 6px;
    }
    .dashboard-page .topbar .user-header {
        gap: 8px;
        flex-shrink: 0;
    }
    .dashboard-page .topbar .secondary-button {
        padding: 8px 10px;
    }
    .dashboard-page .topbar .language-switch button {
        width: 34px;
        min-width: 34px;
    }
    .dashboard-page .topbar .open-menu {
        width: 44px;
        min-width: 44px;
        height: 44px;
    }
}
@media (max-width: 640px) {
    .dashboard-page .topbar {
        padding: 0 12px;
        gap: 8px;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }
    .dashboard-page .topbar-title {
        min-width: 0;
        flex: 1 1 0;
        overflow: hidden;
        gap: 6px;
    }
    .dashboard-page .topbar .user-header {
        gap: 8px;
        flex-shrink: 0;
    }
    .dashboard-page .topbar .secondary-button {
        padding: 8px 10px;
    }
    .dashboard-page .topbar .language-switch button {
        width: 34px;
        min-width: 34px;
    }
    .dashboard-page .topbar .open-menu {
        width: 44px;
        min-width: 44px;
        height: 44px;
    }
}
@media (min-width: 641px) and (max-width: 1024px) {
    .student-portal-tabs,
    .master-tabs,
    nav.master-tabs:has(> a + a),
    .attendance-tabs-row,
    .request-center-tabs,
    .schedule-view-switch,
    .schedule-day-pills,
    .daily-session-links,
    .fa-switcher,
    .fa-tabs,
    .role-guide-toc {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .student-portal-tabs > a,
    .student-portal-tabs > button,
    .master-tabs > a,
    .master-tabs > button,
    .attendance-tabs-row > a,
    .attendance-tabs-row > button,
    .request-center-tabs > a,
    .request-center-tabs > button,
    .schedule-view-switch > a,
    .schedule-view-switch > button,
    .daily-session-links > a,
    .fa-switcher > a,
    .fa-tabs > a,
    .role-guide-toc > a {
        flex: 1 1 140px;
        min-width: 0;
        min-height: 44px;
        justify-content: center;
        text-align: center;
        white-space: normal;
        box-sizing: border-box;
    }
    .schedule-day-pills > .schedule-day-pill {
        flex: 1 1 150px;
        min-width: 0;
        min-height: 44px;
        justify-content: space-between;
        text-align: left;
        border-radius: 12px;
        padding: 8px 12px;
        box-sizing: border-box;
    }
    .teaching-card .page-actions:not(.rc-detail-actions),
    .rp-head-actions {
        width: 100%;
        box-sizing: border-box;
    }
    .teaching-card .page-actions:not(.rc-detail-actions) > button,
    .teaching-card .page-actions:not(.rc-detail-actions) > a,
    .rp-head-actions > a,
    .rp-head-actions > button {
        flex: 1 1 180px;
        min-height: 44px;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
    }
    .teaching-card .rc-detail-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }
    .teaching-card .rc-detail-actions > :only-child {
        grid-column: 1 / -1;
    }
    .teaching-card .rc-detail-actions .rc-detail-actions-left,
    .teaching-card .rc-detail-actions .rc-detail-actions-right,
    .teaching-card .rc-detail-actions .rc-detail-actions-left > *,
    .teaching-card .rc-detail-actions .rc-detail-actions-right > *,
    .teaching-card .rc-detail-actions .rc-detail-actions-right form,
    .teaching-card .rc-detail-actions .rc-detail-actions-right button {
        width: 100%;
        min-height: 44px;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
    }
}

/* Tablet (641px-1024px) remaining module action rows */
@media (min-width: 641px) and (max-width: 1024px) {
    .staff-att-head-actions,
    .spp-bill-actions,
    .eskul-management-actions,
    .eskul-report-actions,
    .rfid-unassigned-switch,
    .monitoring-filter-actions,
    .dcc-toolbar,
    .dcc-monitor-actions,
    .dcc-change-pills {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
    }
    .staff-att-head-actions > a,
    .staff-att-head-actions > button,
    .spp-bill-actions > a,
    .spp-bill-actions > button,
    .eskul-management-actions > a,
    .eskul-management-actions > button,
    .eskul-report-actions > a,
    .eskul-report-actions > button,
    .rfid-unassigned-switch > a,
    .rfid-unassigned-switch > button,
    .monitoring-filter-actions > a,
    .monitoring-filter-actions > button,
    .dcc-toolbar > a,
    .dcc-toolbar > button,
    .dcc-monitor-actions > a,
    .dcc-monitor-actions > button {
        flex: 1 1 170px;
        min-width: 0;
        min-height: 44px;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
    }
    .dcc-change-pills > * {
        flex: 1 1 150px;
        min-height: 38px;
        justify-content: center;
        text-align: center;
        border-radius: 10px;
        box-sizing: border-box;
    }
}

/* Mobile (<=640px) remaining module actions & chips edge-to-edge */
@media (max-width: 640px) {
    .attendance-manual-actions,
    .rfid-card-actions,
    .lesson-history-chips,
    .dcc-change-pills,
    .quick-search-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        align-items: stretch;
        box-sizing: border-box;
    }
    .attendance-manual-actions > a,
    .attendance-manual-actions > button,
    .rfid-card-actions > a,
    .rfid-card-actions > button,
    .quick-search-links > a,
    .quick-search-links > button {
        width: 100%;
        min-height: 44px;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
    }
    .attendance-manual-actions > form,
    .rfid-card-actions > form {
        width: 100%;
        display: flex;
        margin: 0;
    }
    .attendance-manual-actions > form > button,
    .rfid-card-actions > form > button {
        width: 100%;
        min-height: 44px;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
    }
    .lesson-history-chips > *,
    .dcc-change-pills > * {
        width: 100%;
        min-height: 36px;
        justify-content: center;
        text-align: center;
        border-radius: 10px;
        box-sizing: border-box;
    }
    .attendance-manual-actions > :last-child:nth-child(odd),
    .rfid-card-actions > :last-child:nth-child(odd),
    .lesson-history-chips > :last-child:nth-child(odd),
    .dcc-change-pills > :last-child:nth-child(odd),
    .quick-search-links > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

/* Mobile (<=640px) topbar compact anti-overflow (iPhone/Android) & full-width iOS Safari date inputs */
@media (max-width: 640px) {
    .dashboard-page .topbar {
        padding: 0 8px;
        gap: 6px;
        overflow: hidden;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }
    .dashboard-page .topbar .open-menu {
        width: 40px;
        min-width: 40px;
        height: 40px;
        padding: 4px;
    }
    .dashboard-page .topbar .user-header,
    .dashboard-page .topbar .topbar-utilities {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }
    .dashboard-page .topbar .lesson-alert-launcher {
        width: 40px;
        min-width: 40px;
        height: 40px;
        min-height: 40px;
        padding: 0;
        justify-content: center;
    }
    .dashboard-page .topbar .secondary-button {
        padding: 6px 8px;
        min-height: 40px;
        font-size: 12px;
        white-space: nowrap;
    }
    .dashboard-page .topbar .quick-search-trigger {
        width: 40px;
        min-width: 40px;
        height: 40px;
        min-height: 40px;
        padding: 0;
        justify-content: center;
        font-size: 18px;
    }
    .dashboard-page .topbar .quick-search-trigger .quick-search-label,
    .dashboard-page .topbar .quick-search-trigger > span:nth-of-type(2),
    .dashboard-page .topbar .quick-search-trigger kbd {
        display: none;
    }
    .dashboard-page .topbar .language-switch {
        height: 36px;
    }
    .dashboard-page .topbar .language-switch button {
        width: 32px;
        min-width: 32px;
        height: 34px;
        min-height: 34px;
    }
    main input[type="date"],
    main input[type="time"],
    main input[type="month"] {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        -webkit-appearance: none;
        appearance: none;
    }
}

/* Mobile (<=640px) global ID & EN bilingual balance, anti-nowrap overflow & equal-height rows */
@media (max-width: 640px) {
    .dashboard-page,
    .dashboard-shell,
    .dashboard-content {
        max-width: 100%;
        overflow-x: clip;
    }
    .dashboard-page .dashboard-content .page-heading > a.primary-button,
    .dashboard-page .dashboard-content .page-heading > a.secondary-button,
    .dashboard-page .dashboard-content .page-heading > button.primary-button,
    .dashboard-page .dashboard-content .page-heading > button.secondary-button {
        width: 100% !important;
        min-height: 44px;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
        margin: 0;
    }
    .dashboard-page .dashboard-content .page-heading > div:has(> a, > button, > form):not(:has(h1, h2)) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
        align-items: stretch;
    }
    .dashboard-page .dashboard-content .page-heading > div:has(> a, > button, > form):not(:has(h1, h2)) > a,
    .dashboard-page .dashboard-content .page-heading > div:has(> a, > button, > form):not(:has(h1, h2)) > button {
        width: 100% !important;
        min-height: 44px;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
        margin: 0;
    }
    .dashboard-page .dashboard-content .page-heading > div:has(> a, > button, > form):not(:has(h1, h2)) > form {
        display: flex;
        width: 100%;
        margin: 0;
    }
    .dashboard-page .dashboard-content .page-heading > div:has(> a, > button, > form):not(:has(h1, h2)) > form > button {
        width: 100% !important;
        min-height: 44px;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
        margin: 0;
    }
    .dashboard-page .dashboard-content .page-heading > div:has(> a, > button, > form):not(:has(h1, h2)) > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
    .dashboard-page .dashboard-content .panel-heading p,
    .dashboard-page .dashboard-content .page-heading p,
    .dashboard-page .dashboard-content .panel > p.muted,
    .dashboard-page .dashboard-content .request-center-count-note {
        text-align: justify;
        text-align-last: left;
        text-justify: inter-word;
    }
    .request-center-list-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        margin: 14px 0;
        box-sizing: border-box;
    }
    .dashboard-content .request-center-empty,
    .dashboard-content .request-center-empty h2,
    .dashboard-content .request-center-empty h3,
    .dashboard-content .request-center-empty p {
        text-align: center !important;
        text-align-last: center !important;
        margin-inline: auto;
    }
    .backup-status-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .backup-status-grid > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 12px 10px;
    }
    .backup-status-grid > div:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
    .backup-status-grid dd {
        font-variant-numeric: tabular-nums;
    }
    main :is(
        .primary-button,
        .secondary-button,
        .cur-pill,
        .sa-queue-pill,
        .recap-quick-chip,
        .hm-subnav-pill,
        .hm-filter-pill,
        .hm-tab-bar label,
        .exam-schedule-subtab,
        .today-focus-chip,
        .dashboard-action-pill,
        .master-tabs > a,
        .student-portal-tabs > a,
        .request-center-tabs > a,
        .fa-tabs > a,
        .role-guide-toc > a
    ) {
        white-space: normal !important;
        overflow-wrap: break-word;
        word-break: normal;
        line-height: 1.3;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
    main :is(
        .summary-grid,
        .cur-pills,
        .sa-queue-pills,
        .recap-quick-chips,
        .hm-subnav,
        .hm-verification-actions,
        .today-focus-actions,
        .master-tabs,
        .student-portal-tabs,
        .request-center-tabs,
        .attendance-recap-banner-actions,
        .role-guide-toc
    ) {
        align-items: stretch;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Global KPI card text-center & action-row button vertical alignment safeguard */
main :is(
    .attendance-recap-kpi,
    .cur-kpi,
    .exam-kpi-card,
    .finance-metric,
    .hm-agenda-kpi,
    .hr-kpi-card,
    .ppdb-stat,
    .sa-kpi-card,
    .sm-kpi-card,
    .staff-kpi-card,
    .student-mini-stat,
    .wk-count,
    .hm-card,
    .hm-priority-card
) :is(p, h2, h3, dt, dd) {
    text-align: center !important;
    text-align-last: center !important;
}
main :is(
    .page-actions,
    .form-actions,
    .list-filters,
    .attendance-filter-actions,
    .monitoring-filter-actions,
    .sa-filter-actions,
    .ppdb-actions,
    .bmw-heading-actions,
    .bmw-card-actions,
    .bmw-detail-actions,
    .cur-actions,
    .lm-quick-actions,
    .hr-hero-actions,
    .exam-intro-actions
) > :is(.primary-button, .secondary-button) {
    margin-top: 0;
    margin-bottom: 0;
}

/* Zona PC (>=1025px): Seluruh kotak KPI & ringkasan angka rata tengah horizontal & vertikal (0% dampak ke Tablet & HP) */
@media (min-width: 1025px) {
    .spp-metrics > div,
    .attendance-metrics > div,
    #student-late-report .attendance-metrics > div,
    .request-center-counts > div,
    .request-center-list-page .request-center-counts > .panel,
    .eskul-report-metrics > div,
    .report-metrics > div,
    .trial-reset-metrics > div,
    .exam-settings-kpi,
    .exam-kpi-card,
    .exam-att-stat,
    .cur-kpi,
    .sa-kpi-card,
    .wk-count,
    .staff-kpi-card,
    .sm-kpi-card,
    .hm-priority-card,
    .attendance-recap-kpi,
    .backup-status-grid > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-variant-numeric: tabular-nums;
    }

    .request-center-list-page .request-center-counts .class-join-status {
        justify-self: center;
        align-self: center;
    }

    .spp-metrics > div dt,
    .spp-metrics > div dd,
    .attendance-metrics > div dt,
    .attendance-metrics > div dd,
    .request-center-counts > div strong,
    .eskul-report-metrics > div dt,
    .eskul-report-metrics > div dd,
    .report-metrics > div dt,
    .report-metrics > div dd,
    .trial-reset-metrics > div dt,
    .trial-reset-metrics > div dd,
    .exam-settings-kpi-top {
        text-align: center;
        justify-content: center;
        font-variant-numeric: tabular-nums;
    }
}

/* Zona Tablet (641px-1024px): Seluruh 19 kotak KPI & ringkasan angka rata tengah horizontal & vertikal */
@media (min-width: 641px) and (max-width: 1024px) {
    .spp-metrics > div,
    .attendance-metrics > div,
    #student-late-report .attendance-metrics > div,
    .request-center-counts > div,
    .request-center-list-page .request-center-counts > .panel,
    .eskul-report-metrics > div,
    .report-metrics > div,
    .trial-reset-metrics > div,
    .exam-settings-kpi,
    .exam-kpi-card,
    .exam-att-stat,
    .cur-kpi,
    .sa-kpi-card,
    .wk-count,
    .staff-kpi-card,
    .sm-kpi-card,
    .hm-priority-card,
    .attendance-recap-kpi,
    .backup-status-grid > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-variant-numeric: tabular-nums;
    }

    .request-center-list-page .request-center-counts .class-join-status {
        justify-self: center;
        align-self: center;
    }

    .spp-metrics > div dt,
    .spp-metrics > div dd,
    .attendance-metrics > div dt,
    .attendance-metrics > div dd,
    .request-center-counts > div strong,
    .eskul-report-metrics > div dt,
    .eskul-report-metrics > div dd,
    .report-metrics > div dt,
    .report-metrics > div dd,
    .trial-reset-metrics > div dt,
    .trial-reset-metrics > div dd,
    .exam-settings-kpi-top {
        text-align: center;
        justify-content: center;
        font-variant-numeric: tabular-nums;
    }
}

/* Zona Handphone (<=640px): Seluruh 19 kotak KPI & ringkasan angka rata tengah + grid 2x2 kompak */
@media (max-width: 640px) {
    .spp-metrics {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .spp-metrics > div,
    .attendance-metrics > div,
    #student-late-report .attendance-metrics > div,
    .request-center-counts > div,
    .request-center-list-page .request-center-counts > .panel,
    .eskul-report-metrics > div,
    .report-metrics > div,
    .trial-reset-metrics > div,
    .exam-settings-kpi,
    .exam-kpi-card,
    .exam-att-stat,
    .cur-kpi,
    .sa-kpi-card,
    .wk-count,
    .staff-kpi-card,
    .sm-kpi-card,
    .hm-priority-card,
    .attendance-recap-kpi,
    .backup-status-grid > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-variant-numeric: tabular-nums;
    }

    .request-center-list-page .request-center-counts .class-join-status {
        justify-self: center;
        align-self: center;
    }

    .spp-metrics > div dt,
    .spp-metrics > div dd,
    .attendance-metrics > div dt,
    .attendance-metrics > div dd,
    .request-center-counts > div strong,
    .eskul-report-metrics > div dt,
    .eskul-report-metrics > div dd,
    .report-metrics > div dt,
    .report-metrics > div dd,
    .trial-reset-metrics > div dt,
    .trial-reset-metrics > div dd,
    .exam-settings-kpi-top {
        text-align: center;
        justify-content: center;
        font-variant-numeric: tabular-nums;
    }
}

/* Global banner/callout/notice prose justify (ID & EN, all viewports) */
.notice,
.form-feedback,
.form-feedback p,
.hr-info-banner,
.cur-alert-box,
.daily-merge-callout,
.hm-verification-callout,
.student-review-notice,
.schedule-merge-callout,
.student-exam-banner,
.monitoring-scroll-hint {
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
    box-sizing: border-box;
}

/* Mobile (<=640px) global ID & EN prose/banner/button wrap guard (isolated zone) */
@media (max-width: 640px) {
    .notice,
    .form-feedback,
    .hr-info-banner,
    .cur-alert-box,
    .daily-merge-callout,
    .hm-verification-callout,
    .student-review-notice,
    .schedule-merge-callout,
    .student-exam-banner,
    .monitoring-scroll-hint {
        max-width: 100%;
        min-width: 0;
        overflow-wrap: break-word;
        word-break: normal;
        text-align: justify;
        text-align-last: left;
        text-justify: inter-word;
    }

    main .primary-button,
    main .secondary-button,
    main .hr-btn,
    main .hr-pill-btn {
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
        text-align: center;
    }

    .student-exp-greeting-meta,
    .student-exp-salutation-meta,
    .student-exp-hero-sub {
        text-align: left !important;
        text-align-last: left !important;
    }

    a.student-exp-pill,
    .summary-card .table-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .eskul-report-coach-chips {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eskul-report-coach-chip:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .eskul-report-no-photo {
        width: 100%;
        text-align: center !important;
        text-align-last: center !important;
        margin: 4px 0 0;
    }

    /* /lms/exam-access card-row layout (Handphone <= 640px only, zero impact on Tablet/PC) */
    .exam-students-panel .table-scroll {
        overflow-x: visible;
    }
    .exam-verify-table {
        display: block;
        width: 100%;
        min-width: 0 !important;
    }
    .exam-verify-table thead {
        display: none;
    }
    .exam-verify-table tbody {
        display: grid;
        gap: 12px;
        padding: 10px 12px 14px;
        box-sizing: border-box;
    }
    .exam-verify-table tr.exam-verify-row {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 10px;
        padding: 14px;
        border: 1px solid var(--line, #dce6f5);
        border-radius: 14px;
        background: var(--white, #ffffff);
        box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
        box-sizing: border-box;
    }
    .exam-verify-table tr.exam-verify-row td {
        display: block;
        width: 100%;
        min-width: 0 !important;
        max-width: none !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-sizing: border-box;
    }
    .exam-verify-table tr.exam-verify-row td.exam-col-check {
        grid-column: 1 / 2;
        display: flex;
        align-items: center;
        padding-bottom: 8px !important;
        border-bottom: 1px solid var(--line, #e2eaf6) !important;
    }
    .exam-verify-table tr.exam-verify-row td.auto-no-cell {
        grid-column: 2 / 3;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
        padding-bottom: 8px !important;
        border-bottom: 1px solid var(--line, #e2eaf6) !important;
        font-size: 12.5px;
        font-weight: 700;
        color: var(--muted, #64748b);
        font-variant-numeric: tabular-nums;
    }
    .exam-verify-table tr.exam-verify-row td.auto-no-cell::before {
        content: attr(data-label);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .04em;
        font-size: 11px;
    }
    .exam-verify-table tr.exam-verify-row td.exam-col-student,
    .exam-verify-table tr.exam-verify-row td.exam-col-spp,
    .exam-verify-table tr.exam-verify-row td.exam-col-status,
    .exam-verify-table tr.exam-verify-row td.exam-col-action {
        grid-column: 1 / -1;
    }
    .exam-verify-table tr.exam-verify-row td.exam-col-spp {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 6px 10px;
        padding-top: 8px !important;
        border-top: 1px solid var(--line, #e2eaf6) !important;
    }
    .exam-verify-table tr.exam-verify-row td.exam-col-spp::before {
        content: attr(data-label);
        font-size: 11.5px;
        font-weight: 700;
        color: var(--muted, #64748b);
        text-transform: uppercase;
        letter-spacing: .04em;
        margin-right: auto;
    }
    .exam-verify-table tr.exam-verify-row td.exam-col-spp .exam-cell-meta {
        margin: 0;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
    }
    .exam-verify-table tr.exam-verify-row td.exam-col-status {
        padding-top: 8px !important;
        border-top: 1px solid var(--line, #e2eaf6) !important;
    }
    .exam-verify-table tr.exam-verify-row td.exam-col-status::before,
    .exam-verify-table tr.exam-verify-row td.exam-col-action::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 6px;
        font-size: 11.5px;
        font-weight: 700;
        color: var(--muted, #64748b);
        text-transform: uppercase;
        letter-spacing: .04em;
    }
    .exam-verify-table .exam-last-note {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: break-word;
    }
    .exam-verify-table tr.exam-verify-row td.exam-col-action {
        padding-top: 8px !important;
        border-top: 1px solid var(--line, #e2eaf6) !important;
    }
    .exam-verify-table .exam-inline-form {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }
    .exam-verify-table .exam-inline-select,
    .exam-verify-table .exam-inline-date,
    .exam-verify-table .exam-inline-reason {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        height: 44px;
        font-size: 16px;
        padding: 8px 10px;
        box-sizing: border-box;
    }
    .exam-verify-table .exam-inline-reason,
    .exam-verify-table .exam-inline-save {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 44px;
        height: 44px;
        font-size: 14px;
        justify-content: center;
    }
    html[data-theme="dark"] .exam-verify-table tr.exam-verify-row {
        background: #0f172a;
        border-color: #334155;
    }
    html[data-theme="dark"] .exam-verify-table tr.exam-verify-row td.exam-col-check,
    html[data-theme="dark"] .exam-verify-table tr.exam-verify-row td.auto-no-cell,
    html[data-theme="dark"] .exam-verify-table tr.exam-verify-row td.exam-col-spp,
    html[data-theme="dark"] .exam-verify-table tr.exam-verify-row td.exam-col-status,
    html[data-theme="dark"] .exam-verify-table tr.exam-verify-row td.exam-col-action {
        border-color: #1e293b !important;
    }
}

/* Tablet (641px-1024px) global ID & EN prose/banner/button wrap guard (isolated zone) */
@media (min-width: 641px) and (max-width: 1024px) {
    main thead th,
    main .table-sort-control {
        overflow-wrap: normal;
        word-break: normal;
    }

    .notice,
    .form-feedback,
    .hr-info-banner,
    .cur-alert-box,
    .daily-merge-callout,
    .hm-verification-callout,
    .student-review-notice,
    .schedule-merge-callout,
    .student-exam-banner,
    .monitoring-scroll-hint {
        max-width: 100%;
        min-width: 0;
        overflow-wrap: break-word;
        word-break: normal;
        text-align: justify;
        text-align-last: left;
        text-justify: inter-word;
    }

    main .primary-button,
    main .secondary-button,
    main .hr-btn,
    main .hr-pill-btn {
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
        text-align: center;
    }

    a.student-exp-pill,
    .summary-card .table-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .eskul-report-coach-chips {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    /* Tablet (641px-1024px): anti-overflow topbar, header aksi multi-tombol, filter & tabel daftar siswa */
    .dashboard-page .dashboard-shell,
    .dashboard-page .dashboard-content {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .dashboard-page .topbar {
        padding: 0 14px;
        gap: 8px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .dashboard-page .topbar-title {
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
    }

    .dashboard-page .topbar-title > .breadcrumb-trail {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dashboard-page .topbar .user-header,
    .dashboard-page .topbar .topbar-utilities {
        gap: 6px;
        flex-shrink: 0;
    }

    .dashboard-page .topbar .quick-search-trigger {
        width: 38px;
        min-width: 38px;
        height: 38px;
        min-height: 38px;
        padding: 0;
        justify-content: center;
    }

    .dashboard-page .topbar .quick-search-trigger .quick-search-label,
    .dashboard-page .topbar .quick-search-trigger kbd {
        display: none;
    }

    .dashboard-page .dashboard-content .page-heading {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .dashboard-page .dashboard-content .page-heading > div:not(.page-actions):not(.form-actions) {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
    }

    .dashboard-page .dashboard-content .page-heading > :is(.page-actions, .form-actions) {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
        justify-content: flex-start;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        margin-top: 0;
    }

    .dashboard-page .dashboard-content .page-heading > .page-actions:has(> :nth-child(4)) > :is(a, button) {
        flex: 1 1 165px;
        min-height: 44px;
        padding: 8px 10px;
        font-size: 13px;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
    }

    .dashboard-page .dashboard-content form.list-filters.student-list-filters {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: end;
        gap: 12px;
    }

    .dashboard-page .dashboard-content form.list-filters.student-list-filters:has(> div:nth-of-type(5)) > div:first-of-type {
        grid-column: 1 / -1;
    }

    .dashboard-page .dashboard-content form.list-filters.student-list-filters > :is(button, a.table-link) {
        width: 100%;
        min-height: 44px;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
    }

    .student-list-panel td p {
        text-align: left !important;
        text-align-last: left !important;
        margin: 0;
        line-height: 1.45;
    }
}

/* Tablet tabular sub-zone (769px-1024px): keep 7-column student table free of horizontal scroll without affecting 641px-768px card-rows */
@media (min-width: 769px) and (max-width: 1024px) {
    .student-table-help {
        display: none;
    }

    .student-list-panel th,
    .student-list-panel td {
        padding: 8px 6px;
        font-size: 12px;
        vertical-align: middle;
    }

    .student-list-panel th:first-child,
    .student-list-panel td:first-child {
        width: 38px;
        min-width: 36px;
    }

    .student-list-panel td:nth-child(2),
    .student-list-panel td:nth-child(3),
    .student-list-panel td:nth-child(6) {
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
        font-variant-numeric: tabular-nums;
    }

    .student-list-panel th:nth-child(4),
    .student-list-panel td:nth-child(4) {
        min-width: 112px;
        max-width: 175px;
        overflow-wrap: break-word;
    }

    .student-list-panel td:nth-child(4) .badge {
        white-space: normal;
        text-align: center;
        line-height: 1.25;
        font-size: 11px;
        padding: 3px 7px;
    }

    .student-list-panel th:last-child,
    .student-list-panel td:last-child {
        width: auto;
        white-space: normal;
    }

    .student-list-panel td:last-child .master-row-actions {
        max-width: 132px;
        margin-inline: auto;
        justify-content: center;
        gap: 4px;
    }

    .student-list-panel td:last-child .table-link {
        padding: 5px 9px;
        font-size: 11.5px;
        min-height: 32px;
    }
}

/* PC / Desktop (>=1025px) global ID & EN full-width & anti-word-break guard (isolated zone) */
@media (min-width: 1025px) {
    .dashboard-page .dashboard-shell,
    .dashboard-page .dashboard-content {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .dashboard-page .topbar {
        max-width: 100%;
        box-sizing: border-box;
    }

    .dashboard-page .topbar-title {
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
    }

    .dashboard-page .topbar-title > .breadcrumb-trail {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dashboard-page .topbar .user-header,
    .dashboard-page .topbar .topbar-utilities {
        flex-shrink: 0;
    }

    .dashboard-page .dashboard-content .page-heading > .page-actions:has(> :nth-child(4)) {
        gap: 6px;
    }

    .dashboard-page .dashboard-content .page-heading > .page-actions:has(> :nth-child(4)) > :is(a, button) {
        white-space: nowrap;
        min-height: 38px;
        padding: 7px 10px;
        font-size: 12.5px;
    }

    .dashboard-page .dashboard-content form.list-filters.student-list-filters {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
        gap: 10px 12px;
    }

    .dashboard-page .dashboard-content form.list-filters.student-list-filters > div:first-of-type {
        flex: 2 1 210px;
        min-width: 195px;
    }

    .dashboard-page .dashboard-content form.list-filters.student-list-filters > div:not(:first-of-type) {
        flex: 1 1 130px;
        min-width: 115px;
    }

    .dashboard-page .dashboard-content form.list-filters.student-list-filters:has(> div:nth-of-type(5)) {
        display: grid;
        grid-template-columns: minmax(200px, 1.9fr) minmax(105px, 0.92fr) minmax(110px, 1fr) minmax(130px, 1.15fr) minmax(94px, 0.72fr) auto auto;
        align-items: end;
        gap: 10px;
    }

    .dashboard-page .dashboard-content form.list-filters.student-list-filters:has(> div:nth-of-type(5)) > div {
        min-width: 0;
    }

    .dashboard-page .dashboard-content form.list-filters.student-list-filters label {
        font-size: 12.5px;
    }

    .dashboard-page .dashboard-content form.list-filters.student-list-filters > :is(button, a.table-link) {
        flex: 0 0 auto;
        min-height: 44px;
        white-space: nowrap;
    }

    .student-table-help {
        display: none;
    }

    .student-list-panel th,
    .student-list-panel td {
        vertical-align: middle;
    }

    .student-list-panel td p {
        text-align: left !important;
        text-align-last: left !important;
        margin: 0;
        line-height: 1.45;
    }

    .student-list-panel th:nth-child(4),
    .student-list-panel td:nth-child(4) {
        min-width: 145px;
        max-width: 260px;
        overflow-wrap: break-word;
    }

    .student-list-panel td:nth-child(2),
    .student-list-panel td:nth-child(3) {
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }

    .spp-confirmations-page {
        max-width: 100%;
    }

    main thead th,
    main .table-sort-control {
        overflow-wrap: normal;
        word-break: normal;
    }

    .notice,
    .form-feedback,
    .hr-info-banner,
    .cur-alert-box,
    .daily-merge-callout,
    .hm-verification-callout,
    .student-review-notice,
    .schedule-merge-callout,
    .student-exam-banner,
    .monitoring-scroll-hint {
        max-width: 100%;
        min-width: 0;
        text-align: justify;
        text-align-last: left;
        text-justify: inter-word;
    }
}

/* Compact PC sub-zone (1025px-1279px): strictly inside PC zone (>=1025px), keeps topbar, filters & 7-column student table clean without clipping or orphan Reset */
@media (min-width: 1025px) and (max-width: 1279px) {
    .dashboard-page .topbar {
        padding: 0 18px;
        gap: 10px;
    }

    .dashboard-page .topbar .user-header,
    .dashboard-page .topbar .topbar-utilities {
        gap: 8px;
    }

    .dashboard-page .topbar .user-caption {
        max-width: 124px;
        overflow: hidden;
    }

    .dashboard-page .topbar .user-caption strong,
    .dashboard-page .topbar .user-caption small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dashboard-page .topbar .quick-search-trigger {
        width: 38px;
        min-width: 38px;
        height: 38px;
        min-height: 38px;
        padding: 0;
        justify-content: center;
    }

    .dashboard-page .topbar .quick-search-trigger .quick-search-label,
    .dashboard-page .topbar .quick-search-trigger kbd {
        display: none;
    }

    .dashboard-page .dashboard-content .page-heading > .page-actions:has(> :nth-child(4)) {
        gap: 8px;
    }

    .dashboard-page .dashboard-content .page-heading > .page-actions:has(> :nth-child(4)) > :is(a, button) {
        flex: 1 1 175px;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
    }

    .dashboard-page .dashboard-content form.list-filters.student-list-filters:has(> div:nth-of-type(5)) {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 10px 12px;
    }

    .dashboard-page .dashboard-content form.list-filters.student-list-filters:has(> div:nth-of-type(5)) > div {
        grid-column: span 2;
    }

    .dashboard-page .dashboard-content form.list-filters.student-list-filters:has(> div:nth-of-type(5)) > :is(button, a.table-link) {
        grid-column: span 1;
        width: 100%;
        padding-inline: 10px;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
    }

    .student-list-panel th,
    .student-list-panel td {
        padding: 9px 7px;
        font-size: 12.5px;
    }

    .student-list-panel td:nth-child(2),
    .student-list-panel td:nth-child(3),
    .student-list-panel td:nth-child(6) {
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
        font-variant-numeric: tabular-nums;
    }

    .student-list-panel th:nth-child(4),
    .student-list-panel td:nth-child(4) {
        min-width: 120px;
        max-width: 190px;
    }

    .student-list-panel td:nth-child(4) .badge {
        white-space: normal;
        text-align: center;
        line-height: 1.25;
        font-size: 11.5px;
        padding: 3px 8px;
    }

    .student-list-panel th:last-child,
    .student-list-panel td:last-child {
        width: auto;
        white-space: normal;
    }

    .student-list-panel td:last-child .master-row-actions {
        max-width: 132px;
        margin-inline: auto;
        justify-content: center;
        gap: 4px;
    }

    .student-list-panel td:last-child .table-link {
        padding: 4px 9px;
        font-size: 11.5px;
        min-height: 30px;
    }
}

/* Gentle highlight for recently updated row upon returning to paginated list */
tr.is-just-updated > td {
    background-color: #eff6ff !important;
    transition: background-color 1.2s ease;
}
html[data-theme="dark"] tr.is-just-updated > td {
    background-color: rgba(37, 99, 235, 0.22) !important;
}

/* Konsistensi teks pengantar & heading rata kanan-kiri pada Tablet & Handphone (0% dampak ke PC) */
@media (min-width: 641px) and (max-width: 1024px) {
    .page-heading,
    .page-heading > div {
        min-width: 0;
        max-width: 100%;
    }
    .page-heading h1 {
        overflow-wrap: break-word;
        word-break: normal;
    }
    .page-heading p,
    .panel-heading p,
    .exam-section-heading p,
    .report-role-head p,
    .today-focus-copy p {
        text-align: justify;
        text-align-last: left;
        text-justify: inter-word;
        overflow-wrap: break-word;
    }
}
@media (max-width: 640px) {
    .page-heading,
    .page-heading > div {
        min-width: 0;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    .page-heading h1 {
        font-size: 22px;
        line-height: 1.28;
        overflow-wrap: break-word;
        word-break: normal;
    }
    .page-heading p,
    .panel-heading p,
    .exam-section-heading p,
    .report-role-head p,
    .today-focus-copy p {
        text-align: justify;
        text-align-last: left;
        text-justify: inter-word;
        overflow-wrap: break-word;
    }
    .report-action-row,
    .hr-hero-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
    }
    .report-action-row > a,
    .report-action-row > button,
    .hr-hero-actions > a,
    .hr-hero-actions > button {
        width: 100%;
        min-height: 44px;
        justify-content: center;
        text-align: center;
        white-space: normal;
        box-sizing: border-box;
        margin: 0;
    }
    .report-action-row > :last-child:nth-child(odd),
    .hr-hero-actions > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}
