:root {
  --navy-950: #0a2539;
  --navy-900: #123b5d;
  --navy-800: #1b4f75;
  --navy-100: #dceaf3;
  --ink: #1d2b36;
  --muted: #6b7885;
  --line: #dce4ea;
  --surface: #ffffff;
  --canvas: #f4f7f9;
  --blue: #2675a9;
  --teal: #16817a;
  --amber: #c7851c;
  --coral: #c65449;
  --green-bg: #e8f6f0;
  --red-bg: #fbecea;
  --amber-bg: #fff4dc;
  --shadow: 0 12px 35px rgba(24, 51, 70, 0.08);
  font-family: Inter, Aptos, "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 20% 15%, #286489 0, transparent 28%), linear-gradient(145deg, #071f31, #123f5f 62%, #1f6680); }
.login-card { width: min(440px, 100%); padding: 34px; border: 1px solid rgba(255,255,255,.55); border-radius: 20px; background: rgba(255,255,255,.97); box-shadow: 0 35px 90px rgba(3,21,33,.34); }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 34px; }
.login-brand .brand-mark { color: #fff; background: var(--navy-900); }
.login-brand strong, .login-brand span { display: block; }
.login-brand strong { color: var(--navy-950); font-size: 18px; letter-spacing: .08em; }
.login-brand span { margin-top: 2px; color: var(--muted); font-size: 12px; }
.login-copy h1 { margin: 0; color: var(--navy-950); font-size: 31px; }
.login-copy > p:last-child { margin: 8px 0 24px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.login-form { display: grid; gap: 16px; }
.login-form label > span { display: block; margin-bottom: 6px; color: #52636e; font-size: 11px; font-weight: 750; }
.login-form .button { min-height: 45px; margin-top: 2px; }
.login-error { margin: -4px 0 0; padding: 10px 12px; border-radius: 8px; color: #933d35; background: var(--red-bg); font-size: 12px; }
.login-security { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 24px 0 0; color: var(--muted); font-size: 10px; }
.login-contact { margin: 12px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.login-recovery-link { justify-self: center; padding: 3px 7px; border: 0; color: var(--blue); background: transparent; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.login-recovery-link:hover { color: var(--navy-900); }

.decision-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 20% 15%, #286489 0, transparent 28%), linear-gradient(145deg, #071f31, #123f5f 62%, #1f6680); }
.decision-card { width: min(620px, 100%); padding: 32px; border: 1px solid rgba(255,255,255,.55); border-radius: 20px; background: rgba(255,255,255,.98); box-shadow: 0 35px 90px rgba(3,21,33,.34); }
.decision-card .login-brand { margin-bottom: 24px; }
.decision-card h1 { margin: 0; color: var(--navy-950); font-size: clamp(25px, 5vw, 34px); }
.decision-lead { margin: 10px 0 22px; color: #52636e; line-height: 1.55; }
.decision-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0 0 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.decision-summary > div { padding: 13px 14px; background: #fff; }
.decision-summary-wide { grid-column: 1 / -1; }
.decision-summary dt { margin-bottom: 4px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.decision-summary dd { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.decision-form { display: grid; gap: 15px; }
.decision-form label > span { display: block; margin-bottom: 6px; color: #52636e; font-size: 11px; font-weight: 750; }
.decision-form textarea { width: 100%; resize: vertical; padding: 11px 12px; border: 1px solid #cbd7df; border-radius: 9px; color: var(--ink); background: #fff; }
.decision-form .button { width: 100%; min-height: 46px; }
.decision-security { margin: 14px 0 0; color: var(--muted); font-size: 11px; text-align: center; }

@media (max-width: 520px) {
  .decision-card { padding: 24px 18px; }
  .decision-summary { grid-template-columns: 1fr; }
  .decision-summary-wide { grid-column: auto; }
}

.app-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 250px; z-index: 20; display: flex; flex-direction: column; padding: 28px 18px 20px; color: #fff; background: linear-gradient(170deg, var(--navy-950), var(--navy-900) 58%, #164e69); box-shadow: 8px 0 32px rgba(7, 31, 46, .12); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 30px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--navy-950); background: #fff; font-size: 22px; font-weight: 900; box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.brand strong, .brand span { display: block; }
.brand strong { font-size: 17px; letter-spacing: .08em; }
.brand span { margin-top: 2px; color: #b9cfdd; font-size: 12px; }
.main-nav { display: grid; gap: 6px; }
.nav-item { width: 100%; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; padding: 12px 13px; border: 0; border-radius: 10px; color: #c5d8e4; background: transparent; text-align: left; transition: .2s ease; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-item.is-active { color: #fff; background: rgba(255,255,255,.15); box-shadow: inset 3px 0 0 #7fc7e9; }
.nav-icon { display: grid; place-items: center; width: 23px; height: 23px; font-size: 18px; }
.nav-count { min-width: 23px; padding: 2px 7px; border-radius: 999px; color: #fff; background: rgba(255,255,255,.16); text-align: center; font-size: 11px; }
.sidebar-note { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.06); }
.sidebar-note strong, .sidebar-note span { display: block; }
.sidebar-note strong { font-size: 12px; }
.sidebar-note div > span { margin-top: 2px; color: #a9c4d4; font-size: 11px; }
.status-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 999px; background: #55d69b; box-shadow: 0 0 0 4px rgba(85,214,155,.13); }

.main-content { grid-column: 2; min-width: 0; padding: 0 42px 48px; }
.site-support-footer { margin-top: 32px; padding: 18px 0 0; display: flex; justify-content: center; gap: 6px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.login-contact a, .site-support-footer a { color: var(--blue); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.login-contact a:hover, .site-support-footer a:hover { color: var(--navy-900); }
.login-contact a:focus-visible, .site-support-footer a:focus-visible { border-radius: 3px; outline: 3px solid rgba(30, 111, 157, .2); outline-offset: 3px; }
.topbar { min-height: 106px; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); }
.topbar h1, .section-heading h2, .panel-header h2, .panel-header h3 { margin: 0; color: var(--navy-950); letter-spacing: -.02em; }
.topbar h1 { font-size: clamp(24px, 2vw, 31px); }
.eyebrow, .section-kicker { margin: 0 0 4px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.sync-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.menu-button { display: none; border: 0; color: var(--navy-950); background: transparent; font-size: 23px; }
.account-chip { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 7px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.account-avatar { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: var(--navy-900); font-size: 12px; font-weight: 800; }
.account-chip strong, .account-chip small { display: block; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-chip strong { color: var(--navy-950); font-size: 11px; }
.account-chip small { margin-top: 1px; color: var(--muted); font-size: 9px; }
.logout-button { border-color: var(--line); background: #fff; }
.pwa-install-button { border-color: #b8cfdd; color: var(--navy-900); background: #edf6fb; }
.pwa-install-button:hover { border-color: var(--navy-900); background: #dceef7; }
.push-button { border-color: #d2dce2; color: #617681; background: #f6f8f9; }
.push-button:hover { border-color: var(--navy-900); color: var(--navy-900); background: #edf6fb; }
.push-button.is-active { border-color: #8acbac; color: #12623d; background: #e7f6ee; }
.view { display: none; animation: enter .22s ease; }
.view.is-active { display: block; }
@keyframes enter { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 34px 0 20px; }
.section-heading h2 { font-size: 21px; }
.button-row { display: flex; gap: 10px; }
.compact-select { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 750; }
.compact-select select { width: auto; min-width: 145px; background: #fff; }
.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 15px; border: 1px solid transparent; border-radius: 9px; font-weight: 700; font-size: 13px; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--navy-900); box-shadow: 0 7px 16px rgba(18,59,93,.16); }
.button-primary:hover { background: var(--navy-800); }
.button-danger { color: #fff; background: var(--coral); box-shadow: 0 7px 16px rgba(198,84,73,.16); }
.button-danger:hover { background: #a9433a; }
.button-secondary { color: var(--navy-900); border-color: #bfd0db; background: #fff; }
.button-secondary:hover { border-color: var(--navy-900); }
.button-ghost { color: var(--muted); background: transparent; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.metric-card { min-height: 126px; display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.metric-icon { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; font-size: 20px; font-weight: 800; }
.metric-card span, .metric-card small { display: block; }
.metric-card span { color: var(--muted); font-size: 12px; font-weight: 650; }
.metric-card strong { display: block; margin: 3px 0 1px; color: var(--navy-950); font-size: 28px; line-height: 1.05; }
.metric-card small { color: #8a959e; font-size: 10px; }
.metric-blue .metric-icon { color: #226b9b; background: #e5f1f8; }
.metric-slate .metric-icon { color: #536d7b; background: #edf2f5; }
.metric-amber .metric-icon { color: #9a650e; background: var(--amber-bg); }
.metric-coral .metric-icon { color: #a54138; background: var(--red-bg); }

.panel { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.summary-panel { margin-top: 20px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.panel-header h2 { font-size: 19px; }
.panel-header h3 { font-size: 17px; }
.legend { display: flex; gap: 14px; color: var(--muted); font-size: 11px; }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend i { width: 8px; height: 8px; border-radius: 999px; }
.legend-positive { background: var(--teal); }
.legend-negative { background: var(--coral); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 11px 15px; color: #60707b; background: #f7f9fa; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: 12px 15px; border-bottom: 1px solid #e9eef1; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f9fbfc; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; }
.person-cell strong, .person-cell span { display: block; }
.person-cell span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.summary-person-button { width: 100%; padding: 0; border: 0; color: inherit; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.summary-person-button strong { color: var(--navy-900); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: .15s ease; }
.summary-person-button:hover strong, .summary-person-button:focus-visible strong { color: #176d9f; text-decoration-color: currentColor; }
.summary-person-button:focus-visible { outline: 2px solid #5fa4cb; outline-offset: 5px; border-radius: 3px; }
.person-cell .summary-person-action { margin-top: 5px; color: #176d9f; font-size: 10px; font-weight: 750; }
.summary-person-button:hover .summary-person-action { text-decoration: underline; text-underline-offset: 2px; }
.value-positive { color: var(--teal); font-weight: 750; }
.value-negative { color: var(--coral); font-weight: 750; }
.value-neutral { color: var(--muted); }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.badge-amber { color: #8c5b0a; background: var(--amber-bg); }
.badge-green { color: #157063; background: var(--green-bg); }
.badge-blue { color: #245d81; background: #e8f2f8; }
.badge-red { color: #9a4138; background: var(--red-bg); }
.badge-gray { color: #5f6e77; background: #edf1f3; }
.guidance-card { display: flex; gap: 14px; margin-top: 20px; padding: 18px 20px; border: 1px solid #cfe0e9; border-radius: 13px; color: #355264; background: #edf6fa; }
.guidance-icon { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: var(--blue); font-weight: 800; }
.guidance-card h3 { margin: 0 0 4px; color: var(--navy-900); font-size: 14px; }
.guidance-card p { margin: 0; font-size: 12px; line-height: 1.55; }

.filter-bar { display: flex; align-items: end; gap: 12px; margin-bottom: 15px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.filter-bar label { min-width: 180px; }
.filter-bar label > span { display: block; margin: 0 0 5px; color: var(--muted); font-size: 10px; font-weight: 700; }
.search-field { position: relative; min-width: 280px !important; flex: 1; }
.search-field > span { position: absolute; left: 12px; bottom: 8px; color: var(--muted); font-size: 18px !important; }
.search-field input { padding-left: 36px; }
input, select, textarea { width: 100%; border: 1px solid #cbd7de; border-radius: 8px; color: var(--ink); background: #fff; outline: none; transition: .15s ease; }
input, select { min-height: 39px; padding: 8px 10px; }
textarea { padding: 10px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(38,117,169,.12); }
.wide-table table { min-width: 1220px; }
.wide-table td { max-width: 230px; }
.wide-table td:nth-child(4) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actions-column { width: 94px; text-align: right; }
.row-actions { display: flex; justify-content: flex-end; gap: 5px; }
.icon-button { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 8px; color: #5b6d78; background: transparent; font-size: 17px; }
.icon-button:hover { border-color: var(--line); color: var(--navy-900); background: #f5f8f9; }
.icon-button.danger:hover { color: var(--coral); background: var(--red-bg); }
.empty-state { display: grid; place-items: center; gap: 4px; padding: 60px 20px; color: var(--muted); text-align: center; }
.empty-state strong { color: var(--navy-950); }

.request-guidance { margin: 0 0 18px; }
.request-employee-context { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 14px; padding: 12px 15px; border: 1px solid #bdd8e7; border-radius: 10px; background: #f0f7fb; }
.request-employee-context[hidden] { display: none; }
.request-employee-context span, .request-employee-context strong { display: block; }
.request-employee-context span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.request-employee-context strong { margin-top: 3px; color: var(--navy-950); font-size: 14px; }
.request-employee-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.meeting-summary { display: grid; grid-template-columns: minmax(190px, .75fr) minmax(0, 2.25fr); align-items: stretch; margin: 0 0 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.meeting-summary[hidden] { display: none; }
.meeting-summary-heading { display: flex; justify-content: center; flex-direction: column; padding: 16px 18px; color: #fff; background: var(--navy-900); }
.meeting-summary-heading span, .meeting-summary-heading strong { display: block; }
.meeting-summary-heading span { color: #bcd2df; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.meeting-summary-heading strong { margin-top: 5px; font-size: 15px; }
.meeting-summary-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.meeting-summary-metrics > div { display: flex; justify-content: center; flex-direction: column; min-height: 76px; padding: 12px 16px; border-left: 1px solid var(--line); }
.meeting-summary-metrics span, .meeting-summary-metrics strong { display: block; }
.meeting-summary-metrics span { color: var(--muted); font-size: 10px; font-weight: 700; }
.meeting-summary-metrics strong { margin-top: 5px; color: var(--navy-950); font-size: 20px; }
.meeting-summary-metrics strong.value-positive { color: var(--teal); }
.meeting-summary-metrics strong.value-negative { color: var(--coral); }
.meeting-reason-summary { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(190px, .75fr) minmax(0, 2.25fr); align-items: center; gap: 16px; padding: 13px 18px; border-top: 1px solid var(--line); background: #f7f9fa; }
.meeting-reason-summary > span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.meeting-reason-list { display: flex; flex-wrap: wrap; gap: 7px; }
.meeting-reason-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 10px; border: 1px solid #cddbe3; border-radius: 999px; color: #355264; background: #fff; font-size: 10px; font-weight: 700; }
.meeting-reason-chip strong { margin-right: 2px; color: var(--navy-950); font-size: 13px; }
.request-list-panel { overflow: hidden; }
.request-list-scroll { overflow-x: auto; }
.request-list-head, .request-row { min-width: 1080px; display: grid; grid-template-columns: minmax(120px,.85fr) minmax(180px,1.2fr) minmax(190px,1.45fr) minmax(170px,1.25fr) 90px 230px; align-items: center; gap: 14px; }
.request-list-head { padding: 11px 16px; color: var(--muted); background: #f3f6f8; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.request-row { min-height: 72px; padding: 12px 16px; border-top: 1px solid var(--line); background: #fff; }
.request-row:first-child { border-top: 0; }
.request-row:hover { background: #fbfcfd; }
.request-row > div { min-width: 0; }
.request-person strong, .request-event strong { display: block; color: var(--navy-950); font-size: 12px; }
.request-event span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.request-comment, .request-response { overflow: hidden; color: #465762; font-size: 11px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.request-response { color: var(--ink); }
.request-row-actions { display: flex; justify-content: flex-end; gap: 6px; }
.button-compact { min-height: 32px; padding: 7px 10px; border-radius: 7px; font-size: 10px; }
.danger-text { color: var(--coral); border-color: #e3b8b4; }

.audit-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.audit-summary-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.audit-summary-card span { color: var(--muted); font-size: 11px; font-weight: 700; }
.audit-summary-card strong { color: var(--navy-950); font-size: 23px; }
.audit-filter-bar { margin-bottom: 14px; }
.audit-table-wrap table { min-width: 1120px; }
.audit-user-agent { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.schedule-user-list { display: grid; gap: 12px; }
.schedule-user-item { overflow: hidden; }
.schedule-user-toggle { width: 100%; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto 26px; align-items: center; gap: 12px; padding: 16px 19px; border: 0; color: var(--ink); background: #fff; text-align: left; cursor: pointer; }
.schedule-user-toggle:hover { background: #f8fbfc; }
.schedule-user-item.is-expanded .schedule-user-toggle { background: #f2f7f9; }
.schedule-user-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: var(--navy-900); font-size: 15px; font-weight: 800; }
.schedule-user-identity strong, .schedule-user-identity small { display: block; }
.schedule-user-identity strong { color: var(--navy-950); font-size: 14px; }
.schedule-user-identity small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.schedule-user-chevron { color: var(--muted); font-size: 23px; line-height: 1; text-align: center; transition: transform .18s ease; }
.schedule-user-item.is-expanded .schedule-user-chevron { transform: rotate(180deg); }
.schedule-accordion-content { border-top: 1px solid var(--line); background: #fff; }
.schedule-accordion-content .schedule-summary { margin-bottom: 0; }
.schedule-accordion-content .schedule-section { margin-top: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.schedule-inline-empty { display: grid; gap: 5px; padding: 24px; color: var(--muted); background: #fafcfd; }
.schedule-inline-empty strong { color: var(--navy-950); font-size: 14px; }
.schedule-inline-empty span { font-size: 11px; }
.schedule-summary { margin-bottom: 22px; }
.schedule-summary-main { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 24px; }
.schedule-summary-main h3 { margin: 3px 0; color: var(--navy-950); font-size: 22px; }
.schedule-summary-main > div > span { color: var(--muted); font-size: 12px; }
.schedule-source { max-width: 48%; text-align: right; }
.schedule-source span, .schedule-source strong, .schedule-source small { display: block; }
.schedule-source span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.schedule-source strong { margin-top: 4px; color: var(--navy-900); font-size: 12px; overflow-wrap: anywhere; }
.schedule-source small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.schedule-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); background: #f8fafb; }
.schedule-metrics > div { padding: 15px 18px; border-right: 1px solid var(--line); }
.schedule-metrics > div:last-child { border-right: 0; }
.schedule-metrics span, .schedule-metrics strong { display: block; }
.schedule-metrics span { color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.schedule-metrics strong { margin-top: 5px; color: var(--navy-950); font-size: 15px; }
.schedule-section { margin-top: 24px; }
.schedule-section-title { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 13px; }
.schedule-section-title h3 { margin: 0; color: var(--navy-950); font-size: 18px; }
.schedule-section-title > span { color: var(--muted); font-size: 11px; }
.schedule-week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.schedule-week-card { min-height: 112px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #edf1f3; }
.schedule-week-card.is-work { border-color: #bad9e9; background: #fff; box-shadow: 0 7px 20px rgba(24, 51, 70, .06); }
.schedule-week-card h4 { margin: 0 0 10px; color: var(--navy-950); font-size: 12px; }
.schedule-week-card div { padding: 7px 0; border-top: 1px solid var(--line); }
.schedule-week-card div:first-of-type { border-top: 0; }
.schedule-week-card strong, .schedule-week-card span { display: block; }
.schedule-week-card strong { color: var(--navy-900); font-size: 11px; white-space: nowrap; }
.schedule-week-card span { margin-top: 2px; color: var(--muted); font-size: 9px; }
.schedule-week-card p { margin: 17px 0 0; color: var(--muted); font-size: 11px; }
.schedule-legend { display: flex; flex-wrap: wrap; gap: 7px; }
.schedule-legend span { padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 750; }
.schedule-month-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.schedule-month { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 7px 20px rgba(24, 51, 70, .05); }
.schedule-month h4 { margin: 0 0 10px; color: var(--navy-950); font-size: 13px; }
.schedule-weekdays, .schedule-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.schedule-weekdays { margin-bottom: 4px; color: var(--muted); font-size: 8px; font-weight: 800; text-align: center; }
.schedule-day { min-width: 0; min-height: 35px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 6px; color: #63727c; background: #f2f5f6; }
.schedule-day:is(button) { width: 100%; padding: 3px 1px; font: inherit; cursor: pointer; }
.schedule-day:is(button):hover { border-color: currentColor; filter: brightness(.98); }
.schedule-day.is-today { border-color: var(--navy-900); box-shadow: inset 0 0 0 1px var(--navy-900); }
.schedule-day strong { font-size: 9px; }
.schedule-day small { display: block; max-width: 100%; margin-top: 1px; overflow: hidden; color: inherit; font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
.schedule-day.is-blank { visibility: hidden; }
.schedule-work { color: #245d81 !important; background: #e8f2f8 !important; }
.schedule-cp { color: #157063 !important; background: var(--green-bg) !important; }
.schedule-j0 { color: #8c5b0a !important; background: var(--amber-bg) !important; }
.schedule-off { color: #6e7880 !important; background: #edf1f3 !important; }
.schedule-date-preview { margin: -3px 0 0; padding: 10px 12px; border-radius: 8px; color: #245d81; background: #e8f2f8; font-size: 11px; line-height: 1.45; }
.schedule-date-preview.is-neutral { color: var(--muted); background: #f1f4f5; }
.duration-entry { display: grid; gap: 7px; }
.duration-title { color: #52636e; font-size: 11px; font-weight: 750; }
.duration-parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.duration-parts label { position: relative; }
.duration-parts input { padding-right: 72px; }
.duration-parts small { position: absolute; right: 11px; top: 50%; color: var(--muted); font-size: 10px; font-weight: 700; transform: translateY(-50%); pointer-events: none; }
.agenda-section { margin-top: 24px; }
.agenda-toolbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.agenda-toolbar h3 { margin: 0; color: var(--navy-950); font-size: 18px; text-align: center; }
.agenda-navigation { display: flex; align-items: center; gap: 7px; }
.agenda-navigation .icon-button { border-color: var(--line); background: #fff; font-size: 25px; }
.agenda-navigation .button { min-height: 34px; padding: 7px 11px; font-size: 11px; }
.agenda-mode { justify-self: end; display: inline-flex; overflow: hidden; border: 1px solid #bfd0db; border-radius: 9px; background: #fff; }
.agenda-mode button { min-height: 34px; padding: 7px 13px; border: 0; border-right: 1px solid #dbe4e9; color: var(--muted); background: #fff; font-size: 11px; font-weight: 750; }
.agenda-mode button:last-child { border-right: 0; }
.agenda-mode button.is-active { color: #fff; background: var(--navy-900); }
.agenda-section > .schedule-legend { justify-content: flex-end; padding: 9px 16px; border-bottom: 1px solid var(--line); background: #f8fafb; }
.agenda-body { overflow-x: auto; background: #fff; }
.agenda-year-grid { padding: 18px; }
.agenda-weekday-row { min-width: 840px; display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--line); background: #f8fafb; }
.agenda-weekday-row span { padding: 9px; border-right: 1px solid var(--line); color: var(--muted); font-size: 9px; font-weight: 800; text-align: center; text-transform: uppercase; }
.agenda-weekday-row span:last-child { border-right: 0; }
.agenda-month-grid { min-width: 840px; display: grid; grid-template-columns: repeat(7, 1fr); }
.agenda-month-day { min-height: 112px; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 8px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); background: #fff; text-align: left; }
.agenda-month-day:nth-child(7n) { border-right: 0; }
.agenda-month-day:hover { background: #f6fafc; }
.agenda-month-day.is-outside { background: #fafbfc; opacity: .48; }
.agenda-month-day.is-today .agenda-day-number { color: #fff; background: var(--navy-900); }
.agenda-day-number { width: 25px; height: 25px; display: grid; place-items: center; align-self: flex-end; border-radius: 50%; color: #5c6b75; font-size: 11px; font-weight: 750; }
.agenda-event { display: grid; gap: 2px; padding: 7px 8px; border-left: 3px solid currentColor; border-radius: 6px; font-size: 9px; }
.agenda-event strong { font-size: 10px; }
.agenda-event span { line-height: 1.4; }
.agenda-empty { color: var(--muted); background: #f4f6f7; }
.agenda-adjustment { display: grid; gap: 2px; padding: 7px 8px; border-left: 3px solid currentColor; border-radius: 6px; background: #eef5f8; font-size: 9px; }
.agenda-adjustment strong { color: var(--navy-950); font-size: 10px; }
.agenda-adjustment span { font-weight: 800; }
.agenda-adjustment small { color: var(--muted); line-height: 1.4; }
.agenda-adjustment.is-positive { color: #167549; background: var(--green-bg); }
.agenda-adjustment.is-negative { color: #b05045; background: var(--red-bg); }
.agenda-adjustment.is-neutral { color: #246b98; background: #eaf4fa; }
.schedule-event-count { display: block; margin-top: 2px; color: #246b98; font-size: 7px; font-weight: 800; }
.agenda-week { min-width: 840px; display: grid; grid-template-columns: repeat(7, 1fr); min-height: 440px; }
.agenda-week-column { padding: 0 9px 16px; border-right: 1px solid var(--line); }
.agenda-week-column:last-child { border-right: 0; }
.agenda-week-column > button { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 13px 5px; border: 0; color: var(--muted); background: transparent; }
.agenda-week-column > button span { font-size: 9px; font-weight: 800; text-transform: uppercase; }
.agenda-week-column > button strong { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: var(--navy-950); font-size: 15px; }
.agenda-week-column.is-today > button strong { color: #fff; background: var(--navy-900); }
.agenda-week-column .agenda-event { margin-top: 10px; padding: 10px; }
.agenda-week-column .agenda-adjustment { margin-top: 8px; padding: 10px; }
.agenda-day-view { min-height: 430px; display: grid; grid-template-columns: 150px 1fr; }
.agenda-day-heading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 18px; border-right: 1px solid var(--line); color: var(--muted); text-align: center; }
.agenda-day-heading span { font-size: 11px; font-weight: 750; text-transform: capitalize; }
.agenda-day-heading strong { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--navy-900); font-size: 27px; }
.agenda-day-content { padding: 32px; }
.agenda-day-content .agenda-event { max-width: 460px; padding: 18px; gap: 7px; font-size: 12px; }
.agenda-day-content .agenda-event strong { font-size: 16px; }
.agenda-day-content .agenda-adjustment { max-width: 460px; margin-top: 12px; padding: 16px; gap: 5px; font-size: 12px; }
.agenda-day-content .agenda-adjustment strong { font-size: 15px; }
.schedule-import-results { display: grid; gap: 8px; max-height: 240px; overflow-y: auto; }
.schedule-import-running, .schedule-import-result { padding: 10px 12px; border-radius: 8px; font-size: 11px; }
.schedule-import-running { color: var(--muted); background: #f1f4f5; }
.schedule-import-result { display: grid; gap: 3px; border: 1px solid var(--line); }
.schedule-import-result strong { color: var(--navy-950); }
.schedule-import-result span { color: var(--muted); }
.schedule-import-result.is-success { border-color: #b9ded4; background: var(--green-bg); }
.schedule-import-result.is-error { border-color: #e3b8b4; background: var(--red-bg); }

.school-year-card { margin-bottom: 18px; overflow: hidden; }
.school-year-main { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 24px; }
.school-year-main h3 { margin: 3px 0 5px; color: var(--navy-950); font-size: 25px; }
.school-year-main p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.school-year-warning { display: flex; gap: 12px; padding: 13px 24px; border-top: 1px solid #eadcae; border-bottom: 1px solid #eadcae; color: #765b10; background: #fff9e8; font-size: 12px; line-height: 1.5; }
.school-year-warning strong { flex: 0 0 auto; }
.school-year-archives { padding: 18px 24px 22px; }
.school-year-archives h4 { margin: 3px 0 12px; color: var(--navy-950); font-size: 15px; }
#school-year-archive-list { display: grid; gap: 8px; }
.school-year-archive { display: grid; grid-template-columns: minmax(120px, 1fr) repeat(4, auto); align-items: center; gap: 18px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; background: #fafcfd; }
.school-year-archive strong, .school-year-archive span { display: block; }
.school-year-archive strong { color: var(--navy-950); font-size: 13px; }
.school-year-archive span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.school-year-archive small { color: var(--muted); font-size: 10px; white-space: nowrap; }
.school-year-no-archive { margin: 0; color: var(--muted); font-size: 12px; }
.settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.setting-list { min-height: 250px; margin: 0; padding: 8px 18px 14px; list-style: none; }
.setting-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 2px; border-bottom: 1px solid #edf1f3; font-size: 13px; }
.setting-form { display: flex; gap: 8px; padding: 15px 18px 18px; border-top: 1px solid var(--line); background: #fafcfd; }
.instructions-panel { margin-top: 18px; }
.instructions-panel ol { margin: 0; padding: 20px 30px 24px 44px; color: #465762; font-size: 13px; line-height: 1.75; }

.access-guidance { margin: 0 0 18px; }
.admin-recovery-card { display: grid; grid-template-columns: minmax(230px, 1fr) minmax(280px, 1.2fr) auto; align-items: end; gap: 20px; margin-bottom: 18px; padding: 20px 22px; }
.admin-recovery-card h3 { margin: 3px 0 4px; color: var(--navy-950); font-size: 17px; }
.admin-recovery-card p { margin: 0; color: var(--muted); font-size: 11px; }
.admin-recovery-card label > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 750; }
.access-role-section + .access-role-section { margin-top: 30px; }
.access-role-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 2px 13px; }
.access-role-header h3 { margin: 2px 0 0; color: var(--navy-950); font-size: 20px; }
.access-role-header > p { max-width: 520px; margin: 0; color: var(--muted); font-size: 12px; text-align: right; }
.access-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.access-card { overflow: hidden; }
.access-card.is-expanded { grid-column: 1 / -1; }
.access-card.is-inactive { opacity: .72; }
.access-list-item { overflow: hidden; }
.access-list-item.is-inactive { opacity: .72; }
.access-user-toggle { width: 100%; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto 26px; align-items: center; gap: 12px; padding: 16px 19px; border: 0; color: var(--ink); background: #fff; text-align: left; cursor: pointer; }
.access-user-toggle:hover { background: #f8fbfc; }
.access-list-item.is-expanded .access-user-toggle { background: #f2f7f9; }
.access-user-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: var(--navy-900); font-size: 15px; font-weight: 800; }
.access-user-identity strong, .access-user-identity small { display: block; }
.access-user-identity strong { color: var(--navy-950); font-size: 14px; }
.access-user-identity small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.access-user-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.access-user-chevron { color: var(--muted); font-size: 23px; line-height: 1; text-align: center; transition: transform .18s ease; }
.access-list-item.is-expanded .access-user-chevron { transform: rotate(180deg); }
.access-accordion-content { border-top: 1px solid var(--line); background: #fff; }
.access-detail-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 22px; border-bottom: 1px solid var(--line); background: #fafcfd; }
.access-detail-toolbar > div:first-child span, .access-detail-toolbar > div:first-child strong, .access-detail-toolbar > div:first-child small { display: block; }
.access-detail-toolbar > div:first-child span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.access-detail-toolbar > div:first-child strong { margin-top: 3px; color: var(--navy-950); font-size: 13px; }
.access-detail-toolbar > div:first-child small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.access-card-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.account-title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.access-card-header h3 { margin: 0; color: var(--navy-950); font-size: 18px; }
.access-card-header p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.access-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.access-actions .button { min-height: 34px; padding: 7px 10px; font-size: 10px; }
.access-email { display: block; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.access-email > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 750; }
.access-email a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.personal-file-inline { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 22px; border-bottom: 1px solid var(--line); background: #f2f7f9; }
.personal-file-inline span, .personal-file-inline strong, .personal-file-inline small { display: block; }
.personal-file-inline span { color: var(--muted); font-size: 10px; font-weight: 750; }
.personal-file-inline strong { margin-top: 3px; color: var(--navy-950); font-size: 13px; }
.personal-file-inline small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.assignment-summary { display: flex; justify-content: space-between; padding: 11px 22px; color: var(--muted); background: #f8fafb; border-bottom: 1px solid var(--line); font-size: 11px; }
.employee-checklist { max-height: 430px; overflow-y: auto; padding: 8px 14px 14px; }
.employee-checkbox { display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 8px; padding: 10px 8px; border-bottom: 1px solid #edf1f3; cursor: pointer; }
.employee-checkbox:hover { background: #f8fafb; }
.employee-checkbox input { width: 16px; min-height: 16px; height: 16px; accent-color: var(--navy-900); }
.employee-checkbox strong, .employee-checkbox span { display: block; }
.employee-checkbox strong { font-size: 12px; }
.employee-checkbox span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.access-card-footer { display: flex; justify-content: flex-end; padding: 14px 20px 18px; border-top: 1px solid var(--line); }
.employee-account-grid { display: grid; gap: 11px; }
.personal-account-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 20px; }
.personal-account-card.is-inactive { opacity: .72; }
.personal-account-main { display: flex; align-items: center; min-width: 0; gap: 13px; }
.personal-account-avatar { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; color: #fff; background: var(--navy-900); font-size: 16px; font-weight: 800; }
.personal-account-main h3 { margin: 0; color: var(--navy-950); font-size: 15px; }
.personal-account-main p, .personal-account-main > div > span { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.personal-account-main > div > span { display: block; }
.personal-account-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.access-empty-card { padding: 20px 22px; color: var(--muted); font-size: 12px; }

.modal { width: min(860px, calc(100vw - 28px)); max-height: calc(100vh - 28px); padding: 0; border: 0; border-radius: 16px; color: var(--ink); background: #fff; box-shadow: 0 30px 90px rgba(8,31,45,.28); }
.modal::backdrop { background: rgba(7,27,40,.55); backdrop-filter: blur(2px); }
.modal-small { width: min(530px, calc(100vw - 28px)); }
.recovery-intro { margin: 0; color: #465762; font-size: 13px; line-height: 1.55; }
.recovery-status { margin: 0; padding: 12px 14px; border: 1px solid #b9ded4; border-radius: 9px; color: #17685c; background: var(--green-bg); font-size: 12px; line-height: 1.5; }
.recovery-password-hint { margin: 0; padding: 0; line-height: 1.5; }
.account-form-help { margin: 0; padding: 11px 13px; border-radius: 9px; color: #355264; background: #edf6fa; font-size: 11px; line-height: 1.5; }
.modal > form { margin: 0; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 21px 24px 17px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; color: var(--navy-950); font-size: 21px; }
.modal-header .icon-button { font-size: 23px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; padding: 22px 24px 16px; }
.form-stack { display: grid; gap: 15px; padding: 22px 24px; }
.form-grid label > span, .form-stack label > span { display: block; margin-bottom: 6px; color: #52636e; font-size: 11px; font-weight: 750; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.calculation-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 3px 24px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--line); }
.calculation-preview > div { padding: 12px; background: #f8fafb; text-align: center; }
.calculation-preview span, .calculation-preview strong { display: block; }
.calculation-preview span { color: var(--muted); font-size: 10px; }
.calculation-preview strong { margin-top: 3px; color: var(--navy-950); font-size: 17px; }
.form-hint { margin: 8px 24px 0; color: var(--muted); font-size: 10px; }
.password-notice { margin: 20px 24px 0; padding: 12px 14px; border-radius: 9px; color: #765315; background: var(--amber-bg); font-size: 12px; line-height: 1.5; }
.password-hint { margin-bottom: 0; line-height: 1.5; }
.credential-content { padding: 22px 24px 6px; }
.credential-content p { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.credential-content code { display: block; padding: 14px; border: 1px dashed #8da4b2; border-radius: 9px; color: var(--navy-950); background: #f2f7f9; font-family: Consolas, monospace; font-size: 18px; font-weight: 750; text-align: center; user-select: all; word-break: break-all; }
.credential-list { display: grid; gap: 9px; max-height: 48vh; overflow-y: auto; }
.credential-row { display: grid; grid-template-columns: minmax(110px, .7fr) minmax(190px, 1fr); align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; }
.credential-row span strong, .credential-row span small { display: block; }
.credential-row span strong { color: var(--navy-950); font-size: 12px; }
.credential-row span small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.credential-row code { padding: 9px; font-size: 13px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 9px; padding: 18px 24px 22px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; max-width: 360px; padding: 13px 17px; border-radius: 10px; color: #fff; background: var(--navy-950); box-shadow: 0 15px 35px rgba(7,31,46,.24); font-size: 13px; font-weight: 650; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s ease; }
.toast.is-visible { opacity: 1; transform: none; }
.toast.is-error { background: #9b3d35; }
.loading-state { position: fixed; inset: 0 0 0 250px; z-index: 50; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); background: rgba(244,247,249,.88); backdrop-filter: blur(3px); }
.loading-state[hidden] { display: none; }
.spinner { width: 23px; height: 23px; border: 3px solid #cfdae0; border-top-color: var(--navy-900); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1150px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-grid { grid-template-columns: 1fr; }
  .access-grid { grid-template-columns: 1fr; }
  .schedule-week-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .schedule-month-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setting-list { min-height: auto; }
}

@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { transform: translateX(-100%); transition: .22s ease; }
  body.menu-open .sidebar { transform: none; }
  .main-content { padding: 0 18px 36px; }
  .topbar { min-height: 88px; }
  .menu-button { display: block; }
  .sync-status { display: none; }
  .account-chip { margin-left: auto; }
  .loading-state { inset-left: 0; }
  .filter-bar { align-items: stretch; flex-direction: column; }
  .filter-bar label, .search-field { min-width: 0 !important; width: 100%; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .span-2 { grid-column: span 2; }
  .span-3 { grid-column: span 2; }
  .calculation-preview { grid-template-columns: 1fr 1fr; }
  .request-list-scroll { overflow: visible; }
  .request-employee-context { align-items: stretch; flex-direction: column; }
  .request-employee-actions { justify-content: flex-start; }
  .meeting-summary { grid-template-columns: 1fr; }
  .meeting-summary-metrics > div:first-child { border-left: 0; }
  .meeting-reason-summary { grid-template-columns: 1fr; gap: 8px; }
  .request-list-head { display: none; }
  .request-row { min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 13px 18px; padding: 16px; }
  .request-row > div::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
  .request-comment, .request-response { overflow: visible; text-overflow: clip; white-space: normal; }
  .request-row-actions { grid-column: 1 / -1; justify-content: flex-start; padding-top: 4px; }
  .audit-summary { grid-template-columns: 1fr; }
  .credential-row { grid-template-columns: 1fr; }
  .admin-recovery-card { grid-template-columns: 1fr; align-items: stretch; }
  .access-role-header { align-items: flex-start; flex-direction: column; gap: 5px; }
  .access-role-header > p { text-align: left; }
  .schedule-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-metrics > div:nth-child(2) { border-right: 0; }
  .schedule-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .schedule-week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agenda-toolbar { grid-template-columns: 1fr auto; }
  .agenda-toolbar h3 { grid-column: 1 / -1; grid-row: 2; padding-top: 5px; }
  .school-year-main, .school-year-warning { align-items: stretch; flex-direction: column; }
  .school-year-archive { grid-template-columns: 1fr 1fr; gap: 9px 16px; }
}

@media (max-width: 560px) {
  .topbar-actions .button { display: none; }
  .account-chip span:last-child { display: none; }
  .account-chip { padding-right: 7px; }
  .login-card { padding: 27px 22px; }
  .topbar h1 { font-size: 22px; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .button-row { width: 100%; }
  .button-row > * { flex: 1; }
  .request-employee-actions > * { flex: 1; }
  .employee-heading-actions { flex-direction: column; }
  .compact-select { width: 100%; }
  .compact-select select { flex: 1; width: 100%; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 105px; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2, .span-3 { grid-column: span 1; }
  .calculation-preview { grid-template-columns: 1fr 1fr; }
  .request-row { grid-template-columns: 1fr; }
  .request-row-actions { grid-column: auto; }
  .request-row-actions .button { flex: 1; }
  .meeting-summary-metrics { grid-template-columns: 1fr 1fr; }
  .meeting-summary-metrics > div:nth-child(odd) { border-left: 0; }
  .meeting-summary-metrics > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .modal { max-height: calc(100vh - 12px); }
  .modal-header, .form-grid, .form-stack { padding-left: 17px; padding-right: 17px; }
  .calculation-preview { margin-left: 17px; margin-right: 17px; }
  .modal-footer { padding-left: 17px; padding-right: 17px; }
  .toast { right: 12px; bottom: 12px; left: 12px; max-width: none; }
  .access-card-header { align-items: flex-start; flex-direction: column; }
  .access-user-toggle { grid-template-columns: 38px minmax(0, 1fr) 24px; padding: 14px; }
  .access-user-badges { grid-column: 2; justify-content: flex-start; }
  .access-user-chevron { grid-column: 3; grid-row: 1 / span 2; }
  .access-detail-toolbar { align-items: flex-start; flex-direction: column; }
  .access-detail-toolbar .access-actions { width: 100%; justify-content: flex-start; }
  .schedule-user-toggle { grid-template-columns: 38px minmax(0, 1fr) 24px; padding: 14px; }
  .schedule-user-toggle .badge { grid-column: 2; justify-self: start; }
  .schedule-user-chevron { grid-column: 3; grid-row: 1 / span 2; }
  .personal-account-card { align-items: flex-start; flex-direction: column; }
  .personal-account-actions { width: 100%; }
  .personal-account-actions .button { flex: 1; }
  .schedule-summary-main, .schedule-section-title { align-items: flex-start; flex-direction: column; }
  .schedule-source { max-width: none; text-align: left; }
  .schedule-metrics { grid-template-columns: 1fr; }
  .schedule-metrics > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .schedule-metrics > div:last-child { border-bottom: 0; }
  .schedule-week-grid, .schedule-month-grid { grid-template-columns: 1fr; }
  .agenda-toolbar { display: flex; align-items: stretch; flex-direction: column; }
  .agenda-toolbar h3 { order: -1; text-align: left; }
  .agenda-mode { justify-self: stretch; }
  .agenda-mode button { flex: 1; }
  .agenda-navigation .button { flex: 1; }
  .agenda-day-view { min-height: 360px; grid-template-columns: 1fr; }
  .agenda-day-heading { flex-direction: row; justify-content: space-between; padding: 18px; border-right: 0; border-bottom: 1px solid var(--line); text-align: left; }
  .agenda-day-heading strong { width: 46px; height: 46px; font-size: 20px; }
  .agenda-day-content { padding: 20px; }
}
