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

:root {
    --ink: #17233c;
    --ink-soft: #52617a;
    --muted: #8490a5;
    --line: #e8edf5;
    --surface: #ffffff;
    --background: #f6f8fc;
    --primary: #4263eb;
    --primary-dark: #304dcc;
    --purple: #7655d8;
    --success: #139b73;
    --warning: #e59a32;
    --danger: #e05d6f;
    --shadow: 0 12px 35px rgba(32, 53, 93, .07);
    --shadow-hover: 0 18px 42px rgba(38, 59, 103, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--background);
    color: var(--ink);
    font-family: 'Cairo', Tahoma, Arial, sans-serif;
    line-height: 1.65;
    margin: 0;
}
body, button, input, select { font-size: 14px; }
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }
button { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.page-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }

/* Navigation */
.sidebar {
    background: linear-gradient(180deg, #17233f 0%, #202f52 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 28px 18px 22px;
    position: sticky;
    inset-inline-end: 0;
    top: 0;
    z-index: 4;
}
.sidebar-brand { align-items: center; display: flex; gap: 12px; padding: 0 9px 38px; }
.sidebar-brand strong { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.sidebar-brand small { color: #aab7d0; display: block; font-size: 11px; margin-top: 1px; }
.brand-mark {
    align-items: center;
    background: var(--ink);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(42, 185, 215, .22);
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 21px;
    font-weight: 800;
    height: 43px;
    justify-content: center;
    width: 43px;
}
.sidebar-nav { display: grid; gap: 7px; }
.nav-label { color: #8190af; font-size: 10px; font-weight: 700; letter-spacing: .9px; margin: 0 10px 8px; }
.nav-item {
    align-items: center;
    border-radius: 12px;
    color: #b4c0d7;
    display: flex;
    gap: 12px;
    padding: 12px 13px;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; transform: translateX(-2px); }
.nav-item.is-active { background: linear-gradient(90deg, rgba(104, 129, 255, .3), rgba(104, 129, 255, .12)); color: #fff; }
.nav-icon { align-items: center; color: #9daeff; display: inline-flex; font-size: 19px; height: 20px; justify-content: center; width: 20px; }
.sidebar-footer { border-top: 1px solid rgba(255,255,255,.1); margin-top: auto; padding: 20px 9px 0; }
.system-status { align-items: center; color: #aebbd2; display: flex; font-size: 11px; gap: 8px; margin-bottom: 18px; }
.system-status i, .live-indicator i { background: #42d6a5; border-radius: 50%; box-shadow: 0 0 0 4px rgba(66,214,165,.13); display: inline-block; height: 7px; width: 7px; }
.logout-link { align-items: center; color: #b4c0d7; display: flex; font-size: 12px; justify-content: space-between; }
.logout-link:hover { color: #fff; }

/* Header */
.main-shell { min-width: 0; }
.topbar {
    align-items: center;
    background: rgba(255,255,255,.84);
    border-bottom: 1px solid rgba(224,231,243,.8);
    display: flex;
    justify-content: space-between;
    min-height: 86px;
    padding: 17px clamp(20px, 4vw, 55px);
    position: sticky;
    top: 0;
    backdrop-filter: blur(14px);
    z-index: 3;
}
.topbar-kicker { color: var(--muted); font-size: 11px; margin: 0 0 1px; }
.topbar h1 { font-size: 18px; font-weight: 700; letter-spacing: -.3px; margin: 0; }
.topbar-brand { min-width: 0; }
.user-actions { align-items: center; display: flex; gap: 17px; }
.header-clock { border-inline-start: 1px solid var(--line); display: grid; gap: 0; padding-inline-start: 16px; text-align: start; }
.header-clock strong { color: var(--ink); font-size: 17px; font-variant-numeric: tabular-nums; letter-spacing: .3px; line-height: 1.2; }
.header-clock span { color: var(--muted); font-size: 9px; line-height: 1.5; white-space: nowrap; }
.user-name { color: var(--ink-soft); font-size: 12px; }
.sync-time { color: var(--muted); font-size: 10px; white-space: nowrap; }
.sync-time strong { color: var(--ink-soft); font-weight: 700; }
.live-indicator { align-items: center; color: var(--success); display: flex; font-size: 11px; font-weight: 700; gap: 8px; }
.profile-chip { align-items: center; display: flex; gap: 9px; }
.profile-avatar {
    align-items: center;
    background: #e8edff;
    border: 2px solid #fff;
    border-radius: 50%;
    color: var(--primary);
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    height: 33px;
    justify-content: center;
    width: 33px;
}
.refresh-symbol { font-size: 17px; line-height: 0; }

/* Main layout */
.container { margin: 0 auto; max-width: 1540px; padding: 36px clamp(20px, 4vw, 55px) 45px; }
.page-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 27px; }
.school-identity { align-items: center; display: flex; gap: 10px; margin-bottom: 17px; }
.school-identity-mark { align-items: center; background: var(--ink); border-radius: 10px; color: #fff; display: inline-flex; flex: 0 0 auto; font-size: 16px; font-weight: 800; height: 34px; justify-content: center; width: 34px; }
.school-identity strong { color: var(--ink); display: block; font-size: 15px; font-weight: 800; line-height: 1.3; }
.school-identity small { color: var(--muted); display: block; font-size: 10px; margin-top: 1px; }
.section-kicker { color: var(--primary); display: block; font-size: 11px; font-weight: 800; margin-bottom: 4px; }
.page-heading h2 { font-size: clamp(25px, 3vw, 34px); font-weight: 800; letter-spacing: -1px; line-height: 1.3; margin: 0 0 3px; }
.muted { color: var(--muted); margin: 0; }
.date-summary { border-inline-end: 2px solid #dce4fb; padding: 2px 13px 2px 0; text-align: right; }
.date-summary span { color: var(--muted); display: block; font-size: 10px; }
.date-summary strong { color: var(--primary); display: block; font-size: 13px; }
.filter-bar, .card {
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(226,232,243,.9);
    border-radius: 17px;
    box-shadow: var(--shadow);
}
.filter-bar {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
    padding: 16px 18px;
}
.filter-title { align-items: center; display: flex; flex: 1 1 230px; gap: 11px; }
.filter-title strong { display: block; font-size: 13px; }
.filter-title small { color: var(--muted); display: block; font-size: 10px; }
.filter-icon {
    align-items: center;
    background: #edf1ff;
    border-radius: 10px;
    color: var(--primary);
    display: inline-flex;
    font-size: 21px;
    height: 39px;
    justify-content: center;
    width: 39px;
}
.filter-field { display: grid; gap: 4px; min-width: 170px; }
label { color: var(--ink-soft); font-size: 11px; font-weight: 700; }
input, select {
    background: #fbfcff;
    border: 1px solid #dfe5f0;
    border-radius: 10px;
    color: var(--ink);
    min-height: 40px;
    outline: none;
    padding: 7px 11px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(66,99,235,.12); }
.button {
    align-items: center;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    gap: 6px;
    justify-content: center;
    min-height: 40px;
    padding: 8px 15px;
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.button:hover { box-shadow: 0 8px 16px rgba(37,65,130,.12); transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:disabled { cursor: wait; opacity: .6; }
.button-primary { background: var(--primary); box-shadow: 0 5px 12px rgba(66,99,235,.2); color: #fff; }
.button-primary:hover { background: var(--primary-dark); }
.button-light { background: #eef2fb; color: var(--ink-soft); }
.button-light:hover { background: #e4eafa; color: var(--ink); }
.notification-button span { align-items: center; background: #fdecef; border-radius: 50%; color: var(--danger); display: inline-flex; font-size: 9px; height: 17px; justify-content: center; min-width: 17px; padding: 0 3px; }
.button-small { font-size: 11px; min-height: 33px; padding: 5px 10px; }
.button-block { width: 100%; }
.notification-button { align-items: center; background: #f5f7fb; border: 1px solid var(--line); border-radius: 9px; color: var(--ink-soft); cursor: pointer; display: inline-flex; height: 33px; justify-content: center; padding: 0; position: relative; width: 34px; }
.notification-button:hover { background: #edf1ff; color: var(--primary); }
.notification-bell { fill: none; height: 17px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; width: 17px; }
.notification-count { align-items: center; background: var(--danger); border: 2px solid var(--surface); border-radius: 999px; color: #fff; display: inline-flex; font-size: 8px; font-weight: 800; height: 17px; justify-content: center; min-width: 17px; padding: 0 3px; position: absolute; right: -7px; top: -7px; }
.notice { border-radius: 12px; font-size: 12px; margin-bottom: 20px; padding: 12px 15px; }
.notice-warning { background: #fff7e8; border: 1px solid #f6e3b8; color: #8d671e; }
.notice-error { align-items: center; background: #fff0f2; border: 1px solid #f5ccd4; color: var(--danger); display: flex; gap: 12px; justify-content: space-between; }
code { background: rgba(0,0,0,.05); border-radius: 4px; padding: 1px 4px; }
.sr-only { clip: rect(0, 0, 0, 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
.period-tag { background: #f3f5fb; border-radius: 6px; color: var(--primary); display: inline-block; font-size: 10px; padding: 3px 6px; white-space: nowrap; }

/* Summary cards */
.summary-grid { display: grid; gap: 15px; grid-template-columns: repeat(4, 1fr); margin-bottom: 22px; }
.summary-card { display: grid; grid-template-columns: 35px 1fr; grid-template-rows: auto auto auto; column-gap: 11px; min-height: 112px; overflow: hidden; padding: 16px 18px; position: relative; transition: box-shadow .25s ease, transform .25s ease; }
.summary-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.summary-card::after { display: none; }
.summary-icon {
    align-items: center;
    border-radius: 11px;
    display: flex;
    font-size: 17px;
    font-weight: 800;
    height: 35px;
    justify-content: center;
    grid-row: 1 / span 3;
    margin-bottom: 0;
    width: 35px;
}
.summary-icon svg, .card-icon svg { fill: none; height: 19px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 19px; }
.icon-sections { background: #edf1ff; color: var(--primary); }
.icon-portal { background: #e7f8f1; color: var(--success); }
.icon-desktop { background: #fff2df; color: var(--warning); }
.icon-free { background: #f2edff; color: var(--purple); }
.summary-label { color: var(--ink-soft); display: block; font-size: 11px; font-weight: 600; }
.summary-card strong { display: block; font-size: 28px; font-weight: 800; line-height: 1.35; }
.summary-caption { color: var(--muted); display: block; font-size: 10px; }
.accent-blue { color: var(--primary); }
.accent-green { color: var(--success); }
.accent-orange { color: var(--warning); }
.accent-red { color: var(--purple); }

/* Data cards */
.dashboard-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.55fr) minmax(330px, 1fr); }
.card { min-width: 0; overflow: hidden; }
.card-header { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; min-height: 78px; padding: 15px 19px; }
.card-heading { align-items: center; display: flex; gap: 11px; min-width: 0; }
.card-heading h3 { font-size: 14px; font-weight: 800; margin: 0 0 1px; }
.card-heading .muted { font-size: 10px; white-space: nowrap; }
.card-header-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.card-icon { align-items: center; border-radius: 10px; display: inline-flex; flex: 0 0 auto; font-size: 17px; height: 36px; justify-content: center; width: 36px; }
.avatar { align-items: center; background: #edf1ff; border-radius: 50%; color: var(--primary); display: inline-flex; font-weight: 800; justify-content: center; margin-inline-end: 7px; vertical-align: middle; }
.avatar-sm { font-size: 9px; height: 24px; width: 24px; }
.card-icon-blue { background: #edf1ff; color: var(--primary); }
.card-icon-purple { background: #f2edff; color: var(--purple); }
.card-icon-orange { background: #fff2df; color: var(--warning); }
.card-icon-green { background: #e7f8f1; color: var(--success); }
.table-count { background: #f5f7fb; border-radius: 999px; color: var(--muted); font-size: 10px; padding: 4px 9px; white-space: nowrap; }
.attendance-owner { color: var(--ink-soft); display: inline-block; font-size: 10px; font-weight: 700; max-width: 170px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; white-space: nowrap; }
.section-symbol { display: inline-block; min-width: 18px; text-align: center; }
.relative-time, .exact-time { display: block; white-space: nowrap; }
.relative-time { color: var(--ink-soft); font-size: 10px; }
.exact-time { color: var(--muted); font-size: 9px; margin-top: 1px; }
.card-body { padding: 0 19px 17px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; min-width: 640px; width: 100%; }
th, td { border-bottom: 1px solid #edf0f6; padding: 12px 7px; text-align: right; vertical-align: middle; }
th { color: var(--muted); font-size: 10px; font-weight: 700; white-space: nowrap; }
td { color: var(--ink-soft); font-size: 12px; }
tbody tr { transition: background .2s ease; }
tbody tr:hover { background: #fafbff; }
tr:last-child td { border-bottom: 0; }
td strong { color: var(--ink); font-size: 12px; font-weight: 700; }
.status { border-radius: 999px; display: inline-block; font-size: 9px; font-weight: 800; padding: 3px 9px; white-space: nowrap; }
.status-success { background: #e5f8f0; color: var(--success); }
.status-warning { background: #fff2dd; color: #bb7618; }
.status-neutral { background: #f0f3f8; color: var(--muted); }
.status-danger { background: #fdecef; color: var(--danger); }
.location { color: var(--muted); font-size: 10px; }
.is-refreshing .table-wrap tbody { opacity: .55; transition: opacity .2s ease; }
.table-wrap thead th { background: var(--surface); position: sticky; top: 0; z-index: 1; }
.empty-state { color: var(--muted); padding: 32px 10px; text-align: center; }
.page-footer { color: #9aa5b8; font-size: 10px; padding: 19px 0 0; text-align: center; }
.page-footer span { color: #ccd3df; padding: 0 4px; }

/* Final product pass: light workspace navigation, restrained surfaces, and
   a drawer-based detail flow for an intentional SaaS feel. */
.sidebar {
    background: #fff;
    border-inline-end: 1px solid var(--line);
    box-shadow: none;
    color: var(--ink);
    padding: 24px 16px 20px;
}
.sidebar-brand { padding: 0 8px 38px; }
.sidebar-brand strong { color: var(--ink); }
.sidebar-brand small { color: var(--muted); }
.sidebar-nav { gap: 5px; }
.nav-label { color: #a1aabc; }
.nav-item { color: var(--ink-soft); }
.nav-item:hover { background: #f5f7fb; color: var(--ink); transform: none; }
.nav-item.is-active { background: #edf1ff; color: var(--primary); }
.nav-icon { color: inherit; }
.sidebar-footer { border-top-color: var(--line); }
.system-status, .logout-link { color: var(--ink-soft); }
.logout-link:hover { color: var(--primary); }
.system-status i { box-shadow: none; }
.topbar { background: rgba(255,255,255,.92); }
.page-shell { display: block; }
.sidebar { padding-inline: 10px; }
.sidebar-brand { gap: 8px; padding-inline: 4px; }
.nav-item { gap: 8px; padding-inline: 9px; }
.card, .filter-bar { box-shadow: 0 4px 18px rgba(32, 53, 93, .045); }
.card { border-radius: 13px; }
.summary-card { border-radius: 13px; }
.summary-card:hover { box-shadow: 0 9px 25px rgba(38, 59, 103, .08); }
.dashboard-grid { grid-template-columns: minmax(0, 1.9fr) minmax(300px, 1fr); }
.side-column { display: grid; gap: 20px; min-width: 0; }
.teacher-overview { align-items: center; background: #f8faff; border-bottom: 1px solid var(--line); display: grid; gap: 15px; grid-template-columns: .72fr 1.28fr; padding: 15px 19px; }
.teacher-overview-stat > span, .teacher-overview-meter .meter-label span { color: var(--muted); display: block; font-size: 10px; }
.teacher-overview-stat strong { color: var(--success); display: inline-block; font-size: 26px; line-height: 1.15; margin-inline-end: 5px; }
.teacher-overview-stat small, .teacher-overview-meter > small { color: var(--muted); font-size: 9px; }
.teacher-overview-stat small b { color: var(--ink-soft); }
.meter-label { align-items: center; display: flex; justify-content: space-between; margin-bottom: 6px; }
.meter-label strong { color: var(--ink); font-size: 14px; }
.availability-track { background: #e4eaf4; border-radius: 99px; height: 7px; overflow: hidden; }
.availability-track i { background: var(--success); border-radius: inherit; display: block; height: 100%; transition: width .35s ease; }
.attendance-panel-filters { align-items: end; border-bottom: 1px solid var(--line); display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 13px 19px; }
.attendance-panel-filters .filter-field { min-width: 0; }
.attendance-panel-filters .filter-search-field { grid-column: span 1; }
.attendance-panel-filters input, .attendance-panel-filters select { width: 100%; }
#attendance-section table, #sections-modal table { min-width: 780px; }
.full-attendance-page .filter-bar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.full-attendance-page .filter-field { min-width: 0; }
.full-attendance-page .filter-bar .button { width: 100%; }
.legacy-teacher-card, .legacy-available-card { display: none; }
.teacher-list { padding: 4px 19px 7px; }
.teacher-row { align-items: center; border-bottom: 1px solid #edf0f6; display: flex; gap: 9px; min-height: 67px; }
.teacher-row:last-child { border-bottom: 0; }
.teacher-row .avatar { flex: 0 0 auto; height: 31px; margin: 0; width: 31px; }
.avatar-available { background: #e6f7f1; color: var(--success); }
.teacher-details { min-width: 0; }
.teacher-details strong { color: var(--ink); display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.teacher-details small { color: var(--muted); display: block; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.teacher-state { align-items: center; display: inline-flex; font-size: 10px; gap: 5px; margin-inline-start: auto; white-space: nowrap; }
.teacher-state i { background: currentColor; border-radius: 50%; display: inline-block; height: 6px; width: 6px; }
.state-available { color: var(--success); }
.state-busy { color: var(--warning); }
.panel-footer { align-items: center; border-top: 1px solid var(--line); display: flex; justify-content: space-between; padding: 12px 19px 14px; }
.panel-footer .text-action { font-size: 10px; }
.full-attendance-page .filter-bar { margin-bottom: 22px; }
.full-table-card table { min-width: 1080px; }
.pagination-bar { align-items: center; display: flex; gap: 12px; justify-content: center; padding-top: 18px; }
.table-footer { align-items: center; border-top: 1px solid var(--line); display: flex; justify-content: space-between; margin-top: 7px; padding-top: 14px; }
.table-footer-hint { color: var(--muted); font-size: 10px; }
.text-action { background: transparent; border: 0; color: var(--primary); cursor: pointer; font-family: inherit; font-size: 11px; font-weight: 800; padding: 4px 0; }
.text-action:hover { color: var(--primary-dark); }
.alerts-panel { margin: 0 auto; max-width: 1540px; padding: 0 clamp(20px, 4vw, 55px); }
.alerts-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 12px; }
.alerts-heading h3 { font-size: 15px; margin: 0; }
.alerts-list { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; display: grid; gap: 0; grid-template-columns: repeat(3, 1fr); overflow: hidden; }
.alert-item { align-items: center; border-inline-start: 1px solid var(--line); display: flex; gap: 11px; min-height: 72px; padding: 12px 15px; }
.alert-item:first-child { border-inline-start: 0; }
.alert-item strong { color: var(--ink); display: block; font-size: 11px; font-weight: 700; }
.alert-item small { color: var(--muted); display: block; font-size: 10px; margin-top: 2px; }
.alert-dot { background: var(--muted); border-radius: 50%; flex: 0 0 auto; height: 8px; width: 8px; }
.alert-dot-success { background: var(--success); }
.alert-dot-warning { background: var(--warning); }
.alert-dot-danger { background: var(--danger); }
.notifications-popover { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 45px rgba(32,53,93,.16); max-width: 360px; padding: 15px; position: absolute; top: calc(100% + 9px); inset-inline-end: clamp(20px, 4vw, 55px); width: min(360px, calc(100% - 40px)); z-index: 8; }
.notifications-heading { align-items: flex-end; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding-bottom: 11px; }
.notifications-heading strong { color: var(--ink); display: block; font-size: 14px; margin-top: 2px; }
.notifications-heading .muted { font-size: 9px; white-space: nowrap; }
.notifications-list { display: grid; gap: 7px; padding-top: 10px; }
.notification-item { align-items: flex-start; background: transparent; border: 0; border-radius: 10px; cursor: pointer; display: flex; gap: 9px; padding: 9px 7px; text-align: right; width: 100%; }
.notification-item:hover { background: #f7f9fd; }
.notification-item > span { min-width: 0; }
.notification-item strong, .notification-item small, .notification-item em { display: block; }
.notification-item strong { color: var(--ink); font-size: 11px; }
.notification-item small { color: var(--ink-soft); font-size: 10px; line-height: 1.7; margin-top: 1px; }
.notification-item em { color: var(--primary); font-size: 9px; font-style: normal; font-weight: 800; margin-top: 4px; }
.notification-dot { background: var(--warning); border-radius: 50%; flex: 0 0 auto; height: 8px; margin-top: 6px; width: 8px; }
.notification-danger .notification-dot { background: var(--danger); }
.notification-warning .notification-dot { background: var(--warning); }
.analytics-panel, .conflicts-panel { margin-top: 20px; }
.analytics-rate { background: #e6f7f1; border-radius: 999px; color: var(--success); font-size: 12px; font-weight: 800; padding: 5px 11px; }
.analytics-body { padding: 17px 19px 19px; }
.analytics-stat-grid { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.analytics-stat { background: #f8faff; border: 1px solid #edf0f6; border-radius: 10px; padding: 10px 12px; }
.analytics-stat span { color: var(--muted); display: block; font-size: 10px; }
.analytics-stat strong { color: var(--ink); display: block; font-size: 21px; line-height: 1.3; margin-top: 3px; }
.analytics-stat.stat-present strong { color: var(--success); }
.analytics-stat.stat-absent strong { color: var(--danger); }
.analytics-stat.stat-late strong { color: var(--warning); }
.attendance-trend { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; }
.trend-heading { align-items: center; display: flex; justify-content: space-between; }
.trend-heading strong { color: var(--ink-soft); font-size: 11px; }
.trend-legend { align-items: center; color: var(--muted); display: flex; font-size: 9px; gap: 4px; }
.trend-legend i { border-radius: 50%; display: inline-block; height: 7px; width: 7px; }
.trend-legend .legend-absent { background: var(--danger); margin-inline-start: 8px; }
.trend-legend .legend-late { background: var(--warning); }
.trend-chart { align-items: end; display: grid; gap: 8px; grid-template-columns: repeat(7, minmax(0, 1fr)); min-height: 116px; padding-top: 13px; }
.trend-column { align-items: center; display: flex; flex-direction: column; min-width: 0; }
.trend-bars { align-items: flex-end; display: flex; gap: 4px; height: 72px; justify-content: center; }
.trend-bar { border-radius: 4px 4px 2px 2px; display: block; min-height: 0; width: 9px; }
.trend-bar-absent { background: var(--danger); }
.trend-bar-late { background: var(--warning); }
.trend-column strong { color: var(--ink-soft); font-size: 9px; line-height: 1; margin-top: 7px; }
.trend-column span { color: var(--muted); font-size: 9px; margin-top: 4px; white-space: nowrap; }
.conflicts-list { display: grid; gap: 9px; padding: 14px 19px 17px; }
.conflict-item { background: #fffaf2; border: 1px solid #f5e6c9; border-radius: 11px; padding: 11px 12px; }
.conflict-heading { align-items: center; display: flex; gap: 8px; }
.conflict-heading .avatar { background: #fff0d6; color: var(--warning); height: 30px; margin: 0; width: 30px; }
.conflict-heading strong, .conflict-heading small { display: block; }
.conflict-heading strong { color: var(--ink); font-size: 11px; }
.conflict-heading small { color: var(--muted); font-size: 9px; margin-top: 1px; }
.conflict-slots { display: grid; gap: 8px; margin-top: 10px; }
.conflict-slot { background: rgba(255,255,255,.68); border: 1px solid #f3e5cc; border-radius: 8px; padding: 7px; }
.conflict-slot-heading { align-items: center; color: var(--ink-soft); display: flex; font-size: 9px; justify-content: space-between; }
.conflict-slot-heading strong { color: var(--ink); font-size: 9px; }
.conflict-slot-heading span { color: var(--muted); font-size: 8px; }
.conflict-assignments { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.conflict-assignment { background: var(--surface); border: 1px solid #f3e5cc; border-radius: 7px; color: var(--ink-soft); font-size: 9px; padding: 5px 7px; }
.conflict-assignment .section-symbol { color: var(--ink); font-weight: 700; }
.conflict-empty { padding: 22px 10px; }
.mobile-menu-button { align-items: center; background: #f0f3fb; border: 0; border-radius: 9px; color: var(--ink-soft); cursor: pointer; display: none; font-size: 18px; height: 34px; justify-content: center; width: 34px; }
.mobile-menu-overlay { background: rgba(17,29,53,.35); inset: 0; position: fixed; z-index: 15; }
.modal-backdrop { align-items: stretch; justify-content: flex-start; }
.modal {
    border-radius: 16px 0 0 16px;
    height: 100%;
    inset-block: 0;
    inset-inline-end: 0;
    max-height: none;
    position: absolute;
    transform: translateX(105%);
    transition: transform .22s ease;
}
.modal-backdrop.is-open .modal { transform: translateX(0); }
#teachers-modal { align-items: center; justify-content: center; padding: 20px; }
#teachers-modal .modal { border-radius: 16px; height: min(820px, calc(100vh - 40px)); inset: auto; max-width: 1120px; position: relative; transform: translateY(18px) scale(.985); width: 100%; }
#teachers-modal.is-open .modal { transform: translateY(0) scale(1); }
#teachers-modal .teacher-modal-list { display: grid; gap: 10px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
#teachers-modal .teacher-modal-list .teacher-row { padding-inline: 4px; }
#attendance-modal { align-items: center; justify-content: center; padding: 20px; }
#attendance-modal .modal { border-radius: 16px; height: min(820px, calc(100vh - 40px)); inset: auto; max-width: 900px; position: relative; transform: translateY(18px) scale(.985); width: 100%; }
#attendance-modal.is-open .modal { transform: translateY(0) scale(1); }
#sections-modal { align-items: center; justify-content: center; padding: 20px; }
#sections-modal .modal { border-radius: 16px; height: min(820px, calc(100vh - 40px)); inset: auto; max-width: 1120px; position: relative; transform: translateY(18px) scale(.985); width: 100%; }
#sections-modal.is-open .modal { transform: translateY(0) scale(1); }
#sections-modal .sections-modal-filters { align-items: end; background: var(--surface); border-bottom: 1px solid var(--line); display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 -19px 12px; padding: 14px 19px; position: sticky; top: 78px; z-index: 2; }
#sections-modal .sections-modal-filters .filter-field { min-width: 0; }
#sections-modal .sections-modal-filters input, #sections-modal .sections-modal-filters select { width: 100%; }
#sections-modal .sections-modal-table-wrap { max-height: none; }

/* Modal and authentication */
.modal-backdrop { align-items: center; background: rgba(17,29,53,.56); display: none; inset: 0; justify-content: center; padding: 18px; position: fixed; z-index: 10; }
.modal-backdrop.is-open { display: flex; }
.modal { background: var(--surface); border-radius: 16px 0 0 16px; box-shadow: 0 25px 80px rgba(18,31,61,.24); height: 100%; inset-block: 0; inset-inline-end: 0; max-height: none; max-width: 480px; overflow: auto; position: absolute; transform: translateX(105%); transition: transform .22s ease; width: 100%; }
.modal-backdrop.is-open .modal { transform: translateX(0); }
.modal .card-header { background: var(--surface); box-shadow: 0 1px 0 var(--line); position: sticky; top: 0; z-index: 1; }
.modal-meta { align-items: center; display: flex; gap: 12px; }
.modal-close { background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 23px; line-height: 1; }
.attendance-teachers { background: #f8faff; border: 1px solid var(--line); border-radius: 11px; margin-bottom: 14px; padding: 11px 12px; }
.attendance-teachers-heading { align-items: center; display: flex; gap: 9px; }
.attendance-teachers-icon { align-items: center; background: #e7f8f1; border-radius: 7px; color: var(--success); display: inline-flex; flex: 0 0 auto; font-size: 12px; font-weight: 800; height: 25px; justify-content: center; width: 25px; }
.attendance-teachers-heading strong, .attendance-teachers-heading small { display: block; }
.attendance-teachers-heading strong { color: var(--ink); font-size: 11px; }
.attendance-teachers-heading small { color: var(--muted); font-size: 9px; }
.attendance-teachers-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.attendance-teacher { align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; display: flex; gap: 7px; min-width: 150px; padding: 6px 8px; }
.attendance-teacher .avatar { font-size: 10px; height: 27px; margin: 0; width: 27px; }
.attendance-teacher strong, .attendance-teacher small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attendance-teacher strong { color: var(--ink); font-size: 10px; }
.attendance-teacher small { color: var(--muted); font-size: 9px; margin-top: 1px; }
.student-filters { align-items: end; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 5px 12px rgba(32, 53, 93, .05); display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) minmax(145px, .38fr); margin: 0 -19px; padding: 13px 19px; position: sticky; top: 78px; z-index: 2; }
.student-filters .filter-field { min-width: 0; }
.student-search-label { display: block; margin: 0 0 5px; }
.student-search { margin: 0; width: 100%; }
.student-results-count { color: var(--muted); font-size: 10px; padding: 10px 0 2px; }
.student-list { display: grid; gap: 0; }
.student-row { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 10px; min-height: 64px; }
.student-row:last-child { border-bottom: 0; }
.student-row .avatar { flex: 0 0 auto; height: 32px; margin: 0; width: 32px; }
.student-details { flex: 1; min-width: 0; }
.student-details strong, .student-details small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.student-details strong { color: var(--ink); font-size: 12px; }
.student-details small { color: var(--muted); font-size: 10px; margin-top: 1px; }
.teacher-modal-filters { background: var(--surface); border-bottom: 1px solid var(--line); display: grid; gap: 5px; grid-template-columns: auto minmax(0, 1fr) auto minmax(120px, .55fr); margin: 0 -19px 9px; padding: 14px 19px 12px; position: sticky; top: 78px; z-index: 2; }
.teacher-modal-filters label { align-self: center; }
.teacher-modal-filters input, .teacher-modal-filters select { min-height: 36px; }
.teacher-modal-list { padding: 0; }
.teacher-modal-list .teacher-row { min-height: 78px; }
.teacher-modal-list .teacher-details small { line-height: 1.65; white-space: normal; }
.teacher-list { display: grid; gap: 10px; padding: 14px 19px 12px; }
.teacher-row { background: #fbfcff; border: 1px solid #edf0f6; border-radius: 12px; min-height: 74px; padding: 10px 11px; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.teacher-row:hover { border-color: #dce4f5; box-shadow: 0 6px 16px rgba(32,53,93,.06); transform: translateY(-1px); }
.teacher-row:last-child { border-bottom: 1px solid #edf0f6; }
.teacher-list .teacher-details small { line-height: 1.55; white-space: normal; }
.teacher-card { display: block; }
.teacher-card-head { align-items: center; display: flex; gap: 9px; }
.teacher-card-head .teacher-details { flex: 1; }
.teacher-meta-grid { border-top: 1px solid #edf0f6; display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 10px; padding-top: 9px; }
.teacher-meta-grid span { color: var(--ink-soft); display: grid; font-size: 10px; gap: 1px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.teacher-meta-grid b { color: var(--muted); font-size: 9px; font-weight: 600; }
.teacher-meta-item { column-gap: 7px; grid-template-columns: 17px minmax(0, 1fr); grid-template-rows: auto auto; }
.teacher-meta-item .meta-icon { align-items: center; background: #f0ecff; border-radius: 6px; display: flex; grid-row: 1 / span 2; height: 17px; justify-content: center; width: 17px; }
.teacher-meta-item .meta-icon svg { fill: none; height: 11px; stroke: var(--purple); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; width: 11px; }
.teacher-meta-item b, .teacher-meta-item strong { grid-column: 2; }
.teacher-meta-item strong { color: var(--ink); font-size: 10px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.teacher-state { border-radius: 999px; padding: 4px 7px; }
.state-available { background: #e6f7f1; }
.state-busy { background: #fff3df; }
.teacher-modal-list .teacher-row { min-height: 86px; }
.loading { color: var(--primary); opacity: .7; }
.login-page { align-items: center; display: flex; justify-content: center; min-height: 100vh; overflow: hidden; padding: 22px; position: relative; }
.login-page::before, .login-page::after { border-radius: 50%; content: ''; position: absolute; }
.login-page::before { background: #e9edff; height: 430px; inset-inline-end: -180px; top: -150px; width: 430px; }
.login-page::after { background: #e1f7f3; bottom: -220px; height: 480px; inset-inline-start: -170px; width: 480px; }
.login-card { background: rgba(255,255,255,.94); border: 1px solid rgba(226,232,243,.9); border-radius: 23px; box-shadow: 0 24px 65px rgba(43,61,102,.13); max-width: 430px; padding: 40px; position: relative; width: 100%; z-index: 1; }
.login-layout { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 70px rgba(43,61,102,.1); display: grid; grid-template-columns: 1.05fr 1fr; max-width: 970px; min-height: 575px; overflow: hidden; position: relative; width: 100%; z-index: 1; }
.login-visual { background: #17233f; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 50px; position: relative; }
.login-visual::before { border: 1px solid rgba(255,255,255,.1); border-radius: 50%; content: ''; height: 410px; inset-inline-end: -130px; position: absolute; top: -160px; width: 410px; }
.login-visual-grid { inset: 0; opacity: .55; position: absolute; }
.login-visual-brand { align-items: center; display: flex; gap: 11px; margin-bottom: 58px; position: relative; }
.login-visual-brand .brand-mark { background: #fff; color: var(--ink); }
.login-visual-brand strong { display: block; font-size: 16px; }
.login-visual-brand small { color: #aab7d0; display: block; font-size: 10px; margin-top: 1px; }
.login-visual-kicker { color: #98a9ff; font-size: 10px; font-weight: 700; letter-spacing: 1.7px; margin-bottom: auto; position: relative; }
.login-visual h1 { font-size: 35px; font-weight: 500; letter-spacing: -1px; line-height: 1.35; margin: 0 0 15px; position: relative; }
.login-visual h1 strong { color: #aab7ff; font-weight: 800; }
.login-visual p { color: #b3bfd5; font-size: 13px; line-height: 2; margin: 0 0 25px; max-width: 355px; position: relative; }
.login-feature-list { color: #d0d9ed; display: grid; font-size: 11px; gap: 10px; list-style: none; margin: 0 0 28px; padding: 0; position: relative; }
.login-feature-list li { align-items: center; display: flex; gap: 9px; }
.login-feature-list i { align-items: center; background: rgba(66,214,165,.14); border: 1px solid rgba(66,214,165,.3); border-radius: 50%; color: #62e1b5; display: inline-flex; font-size: 9px; font-style: normal; height: 19px; justify-content: center; width: 19px; }
.login-visual-status { align-items: center; color: #d0d9ed; display: flex; font-size: 11px; gap: 9px; position: relative; }
.login-visual-status i { background: #42d6a5; border-radius: 50%; height: 7px; width: 7px; }
.login-panel { display: flex; flex-direction: column; justify-content: center; padding: 55px clamp(30px, 5vw, 75px); }
.login-brand { align-items: center; display: flex; gap: 10px; margin-bottom: 55px; }
.login-brand strong { display: block; font-size: 15px; }
.login-brand small { color: var(--muted); display: block; font-size: 10px; }
.login-panel h2 { font-size: 29px; letter-spacing: -.8px; margin: 3px 0 4px; }
.login-panel .muted { font-size: 12px; }
.login-footnote { color: var(--muted); font-size: 10px; margin-top: 20px; text-align: center; }
.login-panel form { display: grid; gap: 7px; margin-top: 25px; }
.login-panel form label:not(:first-of-type) { margin-top: 9px; }
.login-panel form button[type="submit"] { margin-top: 14px; min-height: 47px; }
.login-input-wrap { align-items: center; background: #fbfcff; border: 1px solid #dfe5f0; border-radius: 11px; display: flex; gap: 9px; min-height: 48px; padding: 0 12px; transition: border-color .2s ease, box-shadow .2s ease; }
.login-input-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(66,99,235,.12); }
.login-input-wrap > svg { fill: none; flex: 0 0 auto; height: 18px; stroke: var(--muted); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; width: 18px; }
.login-input-wrap input { background: transparent; border: 0; box-shadow: none; flex: 1; min-width: 0; padding-inline: 0; }
.login-input-wrap input:focus { border: 0; box-shadow: none; }
.password-toggle { background: transparent; border: 0; color: var(--primary); cursor: pointer; font-size: 10px; font-weight: 700; padding: 5px 0; }
.login-card .brand-mark { margin-bottom: 17px; }
.login-card .eyebrow { color: var(--primary); font-size: 11px; font-weight: 800; margin: 0; }
.login-card h1 { font-size: 27px; font-weight: 800; letter-spacing: -.7px; margin: 3px 0; }
.login-card .muted { font-size: 12px; }
.login-card form { display: grid; gap: 7px; margin-top: 25px; }
.login-card form label:not(:first-of-type) { margin-top: 9px; }
.login-card form button { margin-top: 14px; min-height: 45px; }
.login-card input { min-height: 45px; }
.alert { border-radius: 10px; margin: 15px 0; padding: 10px 12px; }
.alert-danger { background: #fdecef; color: var(--danger); }

@media (max-width: 1120px) {
    .summary-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .full-attendance-page .filter-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) and (min-width: 761px) {
    .page-shell { grid-template-columns: 180px minmax(0, 1fr); }
    .sidebar { padding-inline: 12px; }
    .sidebar-brand { padding-inline: 4px; }
    .user-actions { gap: 9px; }
    .sync-time { display: none; }
}
@media (max-width: 760px) {
    .page-shell { display: block; }
    .sidebar { bottom: auto; height: 100vh; inset-inline-end: 0; min-height: 0; padding: 22px 16px; position: fixed; top: 0; transform: translateX(105%); transition: transform .22s ease; width: min(280px, 84vw); z-index: 20; }
    .sidebar.is-open { transform: translateX(0); }
    .sidebar-brand { display: flex; padding-bottom: 30px; }
    .sidebar-nav { display: grid; gap: 5px; overflow: visible; }
    .nav-label, .sidebar-footer { display: block; }
    .nav-item { flex: initial; max-width: none; padding: 11px 12px; }
    .nav-item span:last-child { font-size: 12px; }
    .topbar { min-height: 75px; padding: 14px 20px; position: static; }
    .user-actions { gap: 10px; }
    .live-indicator, .sync-time, .profile-chip .user-name { display: none; }
    .header-clock { padding-inline-start: 0; border-inline-start: 0; }
    .header-clock span { display: none; }
    .header-clock strong { font-size: 14px; }
    .container { padding-top: 27px; }
    .mobile-menu-button { display: inline-flex; margin-inline-end: 10px; }
    .login-layout { display: block; max-width: 440px; min-height: auto; }
    .login-visual { display: none; }
    .login-panel { padding: 34px 27px; }
    .login-brand { margin-bottom: 38px; }
}
@media (max-width: 520px) {
    .page-heading { align-items: flex-start; flex-direction: column; gap: 13px; }
    .date-summary { padding-inline-end: 9px; }
    .filter-field, .filter-title, .filter-bar .button { min-width: 100%; width: 100%; }
    .summary-card { min-height: 112px; padding: 15px; }
    .summary-card strong { font-size: 24px; }
    .teacher-overview { grid-template-columns: 1fr; }
    .card-header { align-items: flex-start; gap: 9px; }
    .card-heading .muted { white-space: normal; }
    .login-card { padding: 29px 22px; }
    .alerts-panel { padding-inline: 20px; }
    .alerts-list { grid-template-columns: 1fr; }
    .alert-item { border-bottom: 1px solid var(--line); border-inline-start: 0; }
    .alert-item:last-child { border-bottom: 0; }
    .teacher-modal-filters { grid-template-columns: auto minmax(0, 1fr); }
    .student-filters { grid-template-columns: 1fr; }
    .attendance-panel-filters { grid-template-columns: 1fr 1fr; }
    .attendance-panel-filters .filter-search-field { grid-column: span 2; }
    .full-attendance-page .filter-bar { grid-template-columns: 1fr; }
    #teachers-modal { padding: 0; }
    #teachers-modal .modal { border-radius: 0; height: 100%; max-height: none; }
    #teachers-modal .teacher-modal-list { grid-template-columns: 1fr; }
    #attendance-modal { padding: 0; }
    #attendance-modal .modal { border-radius: 0; height: 100%; max-height: none; }
    #sections-modal { padding: 0; }
    #sections-modal .modal { border-radius: 0; height: 100%; max-height: none; }
    #sections-modal .sections-modal-filters { grid-template-columns: 1fr 1fr; }
    #sections-modal .sections-modal-table-wrap { max-height: none; }
    .modal { border-radius: 16px 16px 0 0; inset-block-end: 0; inset-block-start: auto; max-width: none; transform: translateY(105%); }
    .modal-backdrop.is-open .modal { transform: translateY(0); }
}

/* Login layout: tablet and mobile */
@media (max-width: 900px) and (min-width: 761px) {
    .login-page {
        align-items: center;
        align-items: safe center;
        min-height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 28px;
    }
    .login-layout {
        display: grid;
        grid-template-columns: 1fr;
        max-width: 680px;
        min-height: auto;
    }
    .login-visual {
        min-height: 245px;
        padding: 30px 40px;
    }
    .login-visual-brand {
        margin-bottom: 25px;
    }
    .login-visual-kicker {
        margin-bottom: 9px;
    }
    .login-visual h1 {
        font-size: 29px;
        margin-bottom: 8px;
    }
    .login-visual p {
        margin-bottom: 14px;
        max-width: 520px;
    }
    .login-feature-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 28px;
        margin-bottom: 17px;
    }
    .login-panel {
        align-items: center;
        padding: 40px clamp(48px, 10vw, 90px) 42px;
    }
    .login-panel > * {
        max-width: 500px;
        width: 100%;
    }
    .login-brand {
        margin-bottom: 32px;
    }
}

@media (max-width: 760px) {
    .login-page {
        align-items: flex-start;
        min-height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    }
    .login-layout {
        border-radius: 16px;
        max-width: 540px;
        min-height: auto;
    }
    .login-panel {
        min-height: min(680px, calc(100dvh - 28px));
        padding: clamp(27px, 7vw, 40px) clamp(20px, 7vw, 36px) 28px;
    }
    .login-brand {
        gap: 9px;
        margin-bottom: clamp(30px, 9vw, 44px);
    }
    .login-brand strong {
        font-size: clamp(13px, 3.6vw, 15px);
    }
    .login-panel h2 {
        font-size: clamp(25px, 7vw, 29px);
    }
    .login-panel .muted {
        line-height: 1.9;
    }
    .login-panel form {
        margin-top: 22px;
    }
    .login-input-wrap {
        min-height: 52px;
    }
    .login-input-wrap input {
        font-size: 16px;
    }
    .login-panel form button[type="submit"] {
        min-height: 52px;
    }
    .password-toggle {
        min-height: 34px;
        min-width: 42px;
    }
}

@media (max-width: 380px) {
    .login-page {
        padding-inline: 10px;
    }
    .login-panel {
        padding-inline: 18px;
    }
    .login-brand .brand-mark {
        height: 38px;
        width: 38px;
    }
    .login-panel form label {
        font-size: 12px;
    }
}

@media (max-width: 760px) {
    html {
        overflow-x: hidden;
    }
    body.login-page {
        max-width: 100%;
        overflow-x: hidden;
        width: 100%;
    }
    body.login-page .login-layout,
    body.login-page .login-panel {
        max-width: 100%;
        min-width: 0;
    }
    body.login-page .login-brand,
    body.login-page .login-brand > div {
        min-width: 0;
    }
    body.login-page .login-brand strong,
    body.login-page .login-brand small {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 520px) {
    .analytics-body {
        padding-inline: 14px;
    }
    .analytics-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .trend-chart {
        gap: 4px;
    }
    .trend-bar {
        width: 7px;
    }
    .notifications-popover {
        inset-inline-end: 14px;
        width: calc(100% - 28px);
    }
}
