:root {
    /* Erteqa family tokens aligned toward Exam Engine while preserving SIS markup */
    --font-sans: "Inter", "Segoe UI", Tahoma, Arial, sans-serif;
    --color-navy-950: #0a1423;
    --color-navy-900: #0f1d33;
    --color-navy-800: #183250;
    --color-gold-500: #c7932a;
    --color-gold-100: #fbf2dc;
    --color-bg: #f4f6f9;
    --color-surface: #ffffff;
    --color-surface-soft: #f8fafc;
    --color-border: #d8e0ea;
    --color-border-strong: #c6d0dc;
    --color-text: #17212d;
    --color-muted: #667487;
    --color-success: #1f6a4f;
    --color-success-soft: #e8f5ef;
    --color-warning: #94651a;
    --color-warning-soft: #fff3df;
    --color-danger: #b4453d;
    --color-danger-soft: #fbeceb;
    --color-info: #275a8b;
    --color-info-soft: #e9f1fb;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-pill: 999px;
    --shadow-sm: 0 10px 24px rgba(15, 29, 51, 0.05);
    --shadow-md: 0 20px 44px rgba(15, 29, 51, 0.08);
    --shadow-card-hover: 0 22px 42px rgba(15, 29, 51, 0.12);
    --sidebar-width: 260px;
    --active-sidebar-width: var(--sidebar-width);

    /* Backward-compatible SIS aliases */
    --bg: var(--color-bg);
    --panel: var(--color-surface);
    --ink: var(--color-text);
    --muted: var(--color-muted);
    --line: var(--color-border);
    --accent: var(--color-navy-800);
    --accent-soft: var(--color-info-soft);
    --danger: var(--color-danger);
    --danger-soft: var(--color-danger-soft);
    --success: var(--color-success);
    --success-soft: var(--color-success-soft);
    --warning: var(--color-warning);
    --warning-soft: var(--color-warning-soft);
    --info: var(--color-info);
    --info-soft: var(--color-info-soft);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-sans); font-size: 0.89rem; background: linear-gradient(180deg, #f8fafd 0%, var(--bg) 100%); color: var(--ink); line-height: 1.5; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--color-navy-900); }
a:focus-visible,
.btn:focus-visible,
button:focus-visible,
.quick-link-card:focus-visible {
    outline: 3px solid rgba(39, 90, 139, 0.24);
    outline-offset: 2px;
}
h1, h2, h3, p { margin-top: 0; }
.page-header,
.panel,
.stat-card,
.btn,
.table tbody tr,
.field input,
.field select,
.field textarea,
.filter-bar input,
.filter-bar select,
.empty-state { transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease, color .18s ease; }
.layout { min-height: 100vh; overflow-x: clip; }
.app-shell { position: relative; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--active-sidebar-width); background: var(--color-navy-900); color: #f8fbff; border-right: 1px solid rgba(255,255,255,0.06); box-shadow: inset -1px 0 0 rgba(255,255,255,0.03); z-index: 30; overflow: hidden; transition: transform .18s ease, width .18s ease; }
.sidebar-inner { display: flex; flex-direction: column; gap: 1.15rem; height: 100vh; padding: 14px 12px 22px; overflow-y: auto; scrollbar-gutter: stable; }
.brand { padding: 0.4rem 0.4rem 1rem; margin-bottom: 0.25rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.brand-link { display: inline-flex; align-items: center; gap: 0.72rem; color: #fff; width: 100%; min-width: 0; }
.brand-link:hover { color: #fff; }
.brand-copy { display: grid; gap: 0.16rem; min-width: 0; align-content: center; }
.brand-copy strong { font-size: 1rem; letter-spacing: -0.02em; line-height: 1.1; }
.brand-copy small { color: rgba(255,255,255,0.58); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.brand-mark { width: 44px; height: 44px; border-radius: var(--radius-md); display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--color-gold-500), #b17e1f); color: #fff; font-weight: 800; box-shadow: inset 0 1px 0 rgba(255,255,255,0.22); flex: 0 0 44px; }
.brand-logo-wrap { width: 50px; height: 50px; border-radius: 15px; background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04)); border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 10px 22px rgba(0,0,0,0.18); overflow: hidden; flex: 0 0 50px; }
.brand-logo { width: 100%; height: 100%; object-fit: contain; display: block; padding: 4px; image-rendering: auto; }
.brand-mark-fallback { width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--color-gold-500), #b17e1f); }
.nav { display: grid; gap: 1rem; flex: 1 1 auto; align-content: start; }
.nav-group { display: grid; gap: 5px; }
.nav-label { color: rgba(255,255,255,0.45); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; padding: 0 10px 6px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav a { display: flex; align-items: center; min-height: 40px; color: rgba(255,255,255,0.74); padding: 9px 11px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease; font-size: 0.93rem; font-weight: 650; line-height: 1.25; }
.nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav a:focus-visible { outline: 3px solid rgba(199, 147, 42, 0.34); outline-offset: 2px; color: #fff; }
.nav a.active,
.nav a[aria-current="page"] { background: linear-gradient(180deg, rgba(199, 147, 42, 0.24), rgba(199, 147, 42, 0.15)); color: #fff; border-color: rgba(199, 147, 42, 0.28); box-shadow: inset 3px 0 0 rgba(199, 147, 42, 0.88), inset 0 0 0 1px rgba(255,255,255,0.03); }
.sidebar-account { display: grid; gap: 0.72rem; margin-top: auto; padding: 0.95rem 0.42rem 0.12rem; border-top: 1px solid rgba(255,255,255,0.08); }
.sidebar-account-copy { display: grid; gap: 0.16rem; padding: 0.1rem 0.4rem 0; }
.sidebar-account-copy strong { color: #fff; font-size: 0.88rem; }
.sidebar-account-copy span { color: rgba(255,255,255,0.58); font-size: 0.74rem; }
.sidebar-account .sidebar-logout,
.sidebar-account .sidebar-logout:visited {
    width: 100%;
    min-height: 36px;
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(199,147,42,0.14));
    border-color: rgba(199,147,42,0.34);
    color: #f8fbff;
    box-shadow: none;
}
.sidebar-account .sidebar-logout:hover,
.sidebar-account .sidebar-logout:focus-visible {
    background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(199,147,42,0.2));
    border-color: rgba(199,147,42,0.48);
    color: #fff;
}
.app-shell-backdrop { display: none; }
.app-resize-handle { position: fixed; top: 0; bottom: 0; left: calc(var(--active-sidebar-width) - 5px); width: 10px; z-index: 29; cursor: col-resize; background: transparent; border: 0; padding: 0; }
.app-resize-handle::before { content: ""; position: absolute; top: 50%; left: 4px; transform: translateY(-50%); width: 3px; height: 54px; border-radius: 999px; background: rgba(24, 50, 80, 0.14); transition: background-color .15s ease, box-shadow .15s ease, height .15s ease; }
.app-resize-handle:hover::before,
.app-resize-handle:focus-visible::before,
.app-resize-handle.is-active::before { height: 72px; background: rgba(199, 147, 42, 0.68); box-shadow: 0 0 0 4px rgba(199, 147, 42, 0.12); }
.app-resize-handle:focus-visible { outline: none; }
.main { margin-left: var(--active-sidebar-width); width: calc(100vw - var(--active-sidebar-width)); min-width: 0; max-width: none; padding: 0; display: grid; grid-template-rows: auto 1fr; transition: margin .18s ease, width .18s ease; }
.app-dir-rtl .sidebar { inset: 0 0 0 auto; border-right: 0; border-left: 1px solid rgba(255,255,255,0.06); box-shadow: inset 1px 0 0 rgba(255,255,255,0.03); }
.app-dir-rtl .app-resize-handle { left: auto; right: calc(var(--active-sidebar-width) - 5px); }
.app-dir-rtl .main { margin-left: 0; margin-right: var(--active-sidebar-width); }
.app-dir-rtl .brand-link,
.app-dir-rtl .sidebar-account-copy,
.app-dir-rtl .nav-label,
.app-dir-rtl .sidebar-link { text-align: right; }
.app-dir-rtl .nav a.active,
.app-dir-rtl .nav a[aria-current="page"] { box-shadow: inset -3px 0 0 rgba(199, 147, 42, 0.88), inset 0 0 0 1px rgba(255,255,255,0.03); }
.admin-shell.sidebar-collapsed .sidebar { transform: translateX(-100%); }
.app-dir-rtl .admin-shell.sidebar-collapsed .sidebar { transform: translateX(100%); }
.admin-shell.sidebar-collapsed .main,
.app-dir-rtl .admin-shell.sidebar-collapsed .main { margin-left: 0; margin-right: 0; width: 100%; }
.admin-shell.sidebar-collapsed .app-resize-handle { display: none; }
.topbar { position: sticky; top: 0; z-index: 10; display: block; margin-bottom: 0; border-bottom: 1px solid var(--line); background: rgba(244, 246, 249, 0.96); backdrop-filter: blur(8px); box-shadow: 0 4px 18px rgba(15, 29, 51, 0.04); }
.topbar-shell { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 0.9rem clamp(1.15rem, 2.2vw, 2rem) 0.85rem; min-width: 0; }
.topbar-leading { display: flex; align-items: flex-start; gap: 0.85rem; min-width: 0; flex: 1 1 auto; }
.topbar-header-wrap { min-width: 0; flex: 1 1 auto; }
.page-header { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; flex: 1; padding: 0.2rem 0; }
.page-header > :first-child { flex: 1 1 auto; min-width: 0; }
.page-header-actions { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: flex-end; }
.page-title { font-size: clamp(1.58rem, 1.9vw, 2rem); line-height: 1.08; margin-bottom: 0.38rem; letter-spacing: -0.03em; }
.page-subtitle { color: var(--muted); margin-bottom: 0; max-width: 760px; font-size: 0.89rem; line-height: 1.48; }
.breadcrumbs { display: flex; gap: 10px; align-items: center; margin-bottom: 0.56rem; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span:last-child { color: var(--color-gold-500); font-weight: 700; }
.pill, .badge { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 4px 10px; border-radius: var(--radius-pill); background: #edf2f7; color: var(--muted); font-size: 0.78rem; font-weight: 700; line-height: 1.2; max-width: 100%; white-space: nowrap; word-break: keep-all; overflow-wrap: normal; flex-shrink: 0; }
.badge-muted { background: #edf2f7; color: var(--muted); border: 1px solid rgba(102, 116, 135, 0.12); }
.badge-danger { background: var(--danger-soft); color: var(--danger); border: 1px solid rgba(180, 69, 61, 0.14); }
.badge-success { background: var(--success-soft); color: var(--success); border: 1px solid rgba(31, 106, 79, 0.14); }
.badge-warning { background: var(--warning-soft); color: var(--warning); border: 1px solid rgba(148, 101, 26, 0.16); }
.badge-info { background: var(--info-soft); color: var(--info); border: 1px solid rgba(39, 90, 139, 0.14); }
.btn { border: 1px solid transparent; background: var(--color-navy-900); color: #fff; padding: 0.46rem 0.72rem; min-height: 36px; border-radius: 11px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; font-weight: 700; font-size: 0.89rem; line-height: 1.2; letter-spacing: .01em; box-shadow: 0 8px 18px rgba(15, 29, 51, 0.08); }
.btn:hover { background: var(--color-navy-800); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 24px rgba(15, 29, 51, 0.12); }
.btn-primary { background: var(--color-navy-900); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--color-border-strong); color: var(--ink); }
.btn-outline:hover { background: var(--color-surface-soft); color: var(--ink); box-shadow: 0 10px 22px rgba(15, 29, 51, 0.08); }
.btn-subtle,
.btn-secondary { background: var(--color-surface); border: 1px solid var(--color-border-strong); color: var(--ink); box-shadow: none; }
.btn-subtle:hover,
.btn-secondary:hover { background: var(--color-surface-soft); color: var(--ink); }
.btn-danger { background: var(--danger); box-shadow: 0 8px 18px rgba(180, 69, 61, 0.14); }
.btn-danger:hover { background: #a33b33; }
.btn-sm { min-height: 32px; padding: 0.34rem 0.58rem; border-radius: 10px; font-size: 0.78rem; box-shadow: none; }
.btn:disabled,
button:disabled,
.btn.is-disabled,
.is-disabled {
    opacity: 0.62;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.topbar-actions, .inline-actions, .form-actions, .action-group { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.topbar-actions { flex: 0 0 auto; justify-content: flex-end; gap: 0.55rem; }
.portal-language-switcher { display: inline-flex; align-items: center; gap: 0.18rem; padding: 0.18rem; border: 1px solid var(--color-border-strong); border-radius: 999px; background: var(--color-surface); box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05); }
.portal-language-icon { color: var(--muted); font-size: 0.88rem; padding: 0 0.32rem; line-height: 1; }
.portal-language-switcher a { color: var(--muted); text-decoration: none; font-size: 0.76rem; font-weight: 800; line-height: 1; padding: 0.42rem 0.58rem; border-radius: 999px; white-space: nowrap; }
.portal-language-switcher a:hover { color: var(--ink); background: var(--color-surface-soft); }
.portal-language-switcher a.is-active { color: var(--color-navy-900); background: var(--color-gold-100); }
.topbar-identity { display: grid; gap: 0.08rem; min-width: 0; text-align: right; }
.topbar-user-name { color: var(--color-navy-900); font-weight: 800; font-size: 0.88rem; line-height: 1.2; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-user-role { color: var(--muted); font-size: 0.74rem; line-height: 1.2; font-weight: 700; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-user { background: var(--color-gold-100); color: var(--color-warning); }
.topbar-role { background: var(--color-surface); border: 1px solid var(--color-border-strong); color: var(--ink); }
.topbar-logout { min-width: 84px; color: var(--ink); background: var(--color-surface); border-color: var(--color-border-strong); }
.topbar-logout:hover { color: var(--ink); background: var(--color-surface-soft); }
.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; border: 1px solid transparent; }
.alert-info { background: var(--info-soft); color: var(--info); }
.alert-warning { background: var(--warning-soft); color: var(--warning); }
.alert-success { background: var(--success-soft); color: var(--success); }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.panel { background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, #ffffff 100%); border: 1px solid rgba(198, 208, 220, 0.92); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); margin-bottom: 18px; min-width: 0; }
.panel:hover { box-shadow: 0 16px 34px rgba(15, 29, 51, 0.08); }
.muted-panel { background: var(--color-surface-soft); }
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; padding-bottom: 0.2rem; flex-wrap: wrap; }
.panel-header h2 { margin-bottom: 0; font-size: 0.92rem; line-height: 1.25; letter-spacing: -0.01em; }
.panel-header p { margin: 6px 0 0; color: var(--muted); font-size: 0.79rem; line-height: 1.45; }
.card-grid,
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%); padding: 14px 15px 13px; border-radius: var(--radius-lg); border: 1px solid rgba(198, 208, 220, 0.88); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; min-width: 0; }
.stat-card::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 3px; background: linear-gradient(90deg, rgba(199, 147, 42, 0.92), rgba(24, 50, 80, 0.55)); opacity: 0.9; }
.stat-card:hover { box-shadow: 0 15px 32px rgba(15, 29, 51, 0.08); border-color: rgba(183, 194, 208, 0.96); }
.stat-card:has(a):hover { cursor: pointer; transform: translateY(-2px); box-shadow: var(--shadow-card-hover); border-color: rgba(199, 147, 42, 0.34); }
.stat-card span { color: var(--muted); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; display: block; margin-bottom: 0.5rem; }
.stat-card strong { display: block; font-size: clamp(1.22rem, 2.1vw, 1.7rem); line-height: 1.05; letter-spacing: -0.03em; color: var(--color-navy-900); }
.summary-card { background: linear-gradient(180deg, #ffffff 0%, var(--color-surface-soft) 100%); }
.summary-card small { display: block; color: var(--muted); margin-top: 0.45rem; font-size: 0.74rem; line-height: 1.4; }
.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.table { width: 100%; min-width: 0; border-collapse: separate; border-spacing: 0; table-layout: auto; }
.table-scroll { width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.table-scroll .table { min-width: 780px; }
.panel:has(table.table),
.panel:has(.table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.panel:has(table.table) .table,
.panel:has(.table) .table {
    min-width: 680px;
}
.table th, .table td { padding: 0.58rem 0.62rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { color: #556476; font-size: 0.68rem; text-transform: uppercase; letter-spacing: .08em; background: linear-gradient(180deg, #f9fbfd 0%, #f4f7fa 100%); white-space: nowrap; font-weight: 800; }
.table thead th:first-child { border-top-left-radius: 12px; }
.table thead th:last-child { border-top-right-radius: 12px; }
.table td { color: var(--ink); overflow-wrap: anywhere; word-break: normal; vertical-align: middle; line-height: 1.4; font-size: 0.84rem; }
.table td strong, .table td a { max-width: 100%; }
.table td span { max-width: 100%; }
.table tbody tr { background: transparent; }
.table tbody tr:hover { background: #f8fbfe; }
.table-actions { white-space: nowrap; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-start; min-width: 0; }
.table-actions form { margin: 0; }
.table-actions .btn { padding: 0.32rem 0.56rem; min-height: 30px; font-size: 0.78rem; border-radius: 10px; box-shadow: none; }
.table-actions a:not(.btn) { white-space: nowrap; display: inline-flex; align-items: center; min-height: 30px; padding: 0.28rem 0.5rem; border-radius: 9px; border: 1px solid var(--color-border-strong); background: var(--color-surface); font-weight: 700; }
.table-actions a:not(.btn):hover,
.table-actions a:not(.btn):focus-visible { background: var(--color-surface-soft); border-color: rgba(199, 147, 42, 0.42); color: var(--ink); }
.compact { white-space: nowrap; }
.muted { color: var(--muted); }
.soft-panel { background: var(--color-surface-soft); box-shadow: none; }
.compact-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.status-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.status-active { background: rgba(27, 122, 79, 0.1); color: var(--success); border: 1px solid rgba(27, 122, 79, 0.16); }
.status-muted { background: #edf2f7; color: var(--muted); border: 1px solid rgba(102, 116, 135, 0.12); }
.email-preview-body {
    margin: 12px 0 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    color: var(--ink);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font: 0.86rem/1.55 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.single-column { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field span { font-size: 0.8rem; color: var(--ink); font-weight: 700; letter-spacing: 0.01em; }
.field input, .field select, .field textarea, .filter-bar input, .filter-bar select { width: 100%; min-height: 40px; padding: 0.52rem 0.66rem; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); font: inherit; box-shadow: inset 0 1px 0 rgba(255,255,255,0.72); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover, .filter-bar input:hover, .filter-bar select:hover { border-color: var(--color-border-strong); }
.field input:focus, .field select:focus, .field textarea:focus, .filter-bar input:focus, .filter-bar select:focus { outline: none; border-color: rgba(24, 50, 80, 0.48); box-shadow: 0 0 0 4px rgba(24, 50, 80, 0.1), 0 10px 20px rgba(15, 29, 51, 0.06); }
.field-full { grid-column: 1 / -1; }
.filter-bar { display: grid; grid-template-columns: 2fr repeat(4, 1fr) auto; gap: 12px; margin-bottom: 16px; }
.definition-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.definition-list div { padding: 13px; border-radius: 12px; background: var(--color-surface-soft); border: 1px solid rgba(15, 29, 51, 0.04); }
.definition-list dt { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; margin-bottom: 6px; letter-spacing: .04em; }
.definition-list dd { margin: 0; font-weight: 600; }
.media-field-card { display: grid; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid rgba(198, 208, 220, 0.88); background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%); }
.media-thumb { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.media-thumb img { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.media-library-card h3 { margin-bottom: 0.25rem; }
.media-library-card code { display: block; max-width: 100%; overflow-wrap: anywhere; }
.profile-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.stack { display: grid; gap: 20px; }
.empty-state { padding: 22px 20px; border: 1px dashed rgba(198, 208, 220, 0.9); border-radius: 16px; background: linear-gradient(180deg, #fbfcfe 0%, var(--color-surface-soft) 100%); color: var(--muted); line-height: 1.55; }
.compact-empty-state { padding: 18px; min-height: 112px; }
.simple-list { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.simple-list li { padding: 12px 14px; border-radius: 14px; background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%); border: 1px solid rgba(198, 208, 220, 0.78); line-height: 1.55; }
.simple-list li a { font-weight: 600; }
.list-page-intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.list-page-intro h2 { margin-bottom: 0.35rem; color: var(--color-navy-900); font-size: clamp(1.18rem, 1.5vw, 1.48rem); line-height: 1.18; letter-spacing: -0.02em; }
.list-page-intro p { max-width: 840px; margin-bottom: 0; color: var(--muted); line-height: 1.55; }
.filter-bar-comfort { grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(150px, 1fr)) auto; align-items: end; padding: 14px; border: 1px solid rgba(198, 208, 220, 0.7); border-radius: 14px; background: var(--color-surface-soft); }
.form-grid-compact { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.table-scroll-comfort { border: 1px solid rgba(198, 208, 220, 0.82); border-radius: 14px; background: #fff; }
.table-scroll-comfort .table { min-width: 640px; }
.admin-table th { background: #f7fafc; color: #4b5d72; }
.admin-table td { padding-top: 0.72rem; padding-bottom: 0.72rem; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.empty-state-rich { display: flex; align-items: flex-start; gap: 14px; color: var(--color-text); }
.empty-state-rich strong { display: block; margin-bottom: 4px; color: var(--color-navy-900); font-size: 0.95rem; }
.empty-state-rich p { margin: 0 0 10px; color: var(--muted); }
.empty-state-icon { width: 34px; height: 34px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; background: var(--color-gold-100); color: var(--color-warning); font-weight: 900; font-size: 1.1rem; }
.record-card-list,
.mapping-card-list { display: grid; gap: 14px; }
.record-card { display: grid; gap: 14px; padding: 16px; border: 1px solid rgba(198, 208, 220, 0.86); border-radius: 14px; background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%); box-shadow: 0 10px 22px rgba(15, 29, 51, 0.04); }
.record-card-muted { opacity: 0.78; background: #f8fafc; }
.record-card-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.record-card-header h3 { margin-bottom: 0.24rem; color: var(--color-navy-900); font-size: 1rem; line-height: 1.25; }
.record-card-header p { margin-bottom: 0; color: var(--muted); font-size: 0.82rem; }
.record-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 10px; }
.record-card-grid > div { min-width: 0; padding: 10px 11px; border: 1px solid rgba(198, 208, 220, 0.66); border-radius: 12px; background: var(--color-surface-soft); }
.record-card-grid span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.record-card-grid strong { display: block; color: var(--ink); font-size: 0.9rem; line-height: 1.35; overflow-wrap: anywhere; }
.record-card-grid small { display: block; margin-top: 3px; color: var(--muted); line-height: 1.35; }
.mapping-form { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 10px; align-items: end; padding-top: 2px; }
.mapping-form .action-group { justify-content: flex-start; }
.field:has([required]) > span::after { content: " *"; color: var(--danger); font-weight: 900; }
.field .help-text,
.form-help { display: block; margin-top: 5px; color: var(--muted); font-size: 0.76rem; line-height: 1.35; }
.quick-links { display: grid; gap: 10px; }
.quick-links a { display: grid; gap: 3px; padding: 13px 14px; border-radius: 14px; border: 1px solid rgba(198, 208, 220, 0.92); background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%); color: var(--ink); box-shadow: 0 10px 20px rgba(15, 29, 51, 0.05); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease; }
.quick-links a:hover { color: var(--ink); transform: translateY(-1px); border-color: rgba(199, 147, 42, 0.34); box-shadow: 0 14px 26px rgba(15, 29, 51, 0.09); background: linear-gradient(180deg, #ffffff 0%, #fdf9f1 100%); }
.metric-list { display: grid; gap: 12px; }
.metric-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.metric-row:last-child { border-bottom: 0; }
.section-block + .section-block { margin-top: 22px; }
.section-heading { margin-bottom: 14px; }
.section-heading h3 { margin-bottom: 4px; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.section-heading p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.main-content { padding: 1.35rem clamp(1.15rem, 2.2vw, 2rem) 1.8rem; min-width: 0; }
.dashboard-shell { display: grid; gap: 24px; }
.dashboard-hero { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr); gap: 20px; align-items: stretch; }
.dashboard-hero-copy,
.dashboard-hero-side { margin-bottom: 0; }
.dashboard-hero-copy { background: linear-gradient(135deg, rgba(15, 29, 51, 0.98) 0%, rgba(24, 50, 80, 0.96) 62%, rgba(34, 66, 102, 0.94) 100%); color: #f6f8fb; border-color: rgba(24, 50, 80, 0.45); box-shadow: 0 24px 48px rgba(15, 29, 51, 0.18); position: relative; overflow: hidden; }
.dashboard-hero-copy::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at top right, rgba(199, 147, 42, 0.24), transparent 42%); pointer-events: none; }
.dashboard-overline { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 0.8rem; color: rgba(255,255,255,0.72); font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; }
.dashboard-overline::before { content: ""; width: 36px; height: 2px; border-radius: 999px; background: linear-gradient(90deg, var(--color-gold-500), rgba(255,255,255,0.18)); }
.dashboard-hero-copy h2 { position: relative; margin-bottom: 0.7rem; font-size: clamp(1.45rem, 2.2vw, 2rem); line-height: 1.12; letter-spacing: -0.03em; color: #fff; }
.dashboard-hero-copy p { position: relative; max-width: 780px; margin-bottom: 1.15rem; color: rgba(244, 248, 252, 0.78); font-size: 0.98rem; line-height: 1.65; }
.dashboard-highlight-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 12px; }
.dashboard-highlight { padding: 14px 15px; border-radius: 15px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.08); backdrop-filter: blur(6px); min-width: 0; }
.dashboard-highlight span { display: block; margin-bottom: 0.45rem; color: rgba(255,255,255,0.68); font-size: 0.73rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.dashboard-highlight strong { display: block; color: #fff; font-size: 1.16rem; line-height: 1.2; letter-spacing: -0.02em; }
.dashboard-highlight small { display: block; margin-top: 0.35rem; color: rgba(255,255,255,0.72); line-height: 1.45; }
.dashboard-hero-side .panel-header { margin-bottom: 14px; }
.dashboard-quick-links { display: grid; gap: 10px; }
.first-use-panel { margin-bottom: 0; }
.first-use-links { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.first-use-runbooks { margin: 0.85rem 0 0; font-size: 0.78rem; }
.first-use-guidance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 14px; }
.first-use-guidance-grid h3 { margin: 0 0 6px; color: var(--color-navy-900); font-size: 0.82rem; line-height: 1.25; }
.compact-list { gap: 6px; }
.compact-list li { padding: 8px 10px; font-size: 0.82rem; line-height: 1.42; }
.quick-link-card { display: grid; gap: 4px; padding: 13px 14px; border-radius: 14px; border: 1px solid rgba(198, 208, 220, 0.92); background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%); color: var(--ink); box-shadow: 0 10px 20px rgba(15, 29, 51, 0.05); cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease; }
.quick-link-card strong { color: var(--color-navy-900); font-size: 0.94rem; line-height: 1.3; }
.quick-link-card span { color: var(--muted); font-size: 0.84rem; line-height: 1.45; }
.quick-link-card:hover { color: var(--ink); transform: translateY(-1px); border-color: rgba(199, 147, 42, 0.34); box-shadow: 0 14px 26px rgba(15, 29, 51, 0.09); background: linear-gradient(180deg, #ffffff 0%, #fdf9f1 100%); }
.dashboard-section { display: grid; gap: 14px; }
.dashboard-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.dashboard-section-heading h2 { margin-bottom: 0.25rem; font-size: 1.14rem; line-height: 1.2; letter-spacing: -0.02em; color: var(--color-navy-900); }
.dashboard-section-heading p { margin-bottom: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.dashboard-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.dashboard-kpi-grid-tight { grid-template-columns: minmax(220px, 320px); }
.dashboard-panel-grid { align-items: start; }
.dashboard-academic-grid,
.dashboard-enrollment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.dashboard-academic-grid .panel,
.dashboard-enrollment-grid .panel { margin-bottom: 0; }
.dashboard-shell .metric-list { gap: 8px; }
.dashboard-shell .metric-row { padding: 12px 0; }
.dashboard-shell .table { margin-top: 2px; }
.dashboard-shell .table tbody tr:last-child td { border-bottom: 0; }
.command-dashboard { gap: 22px; max-width: 1520px; margin-inline: auto; }
.director-hero { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.72fr); }
.dashboard-help-card { display: grid; align-content: start; }
.compact-action-card { min-height: 86px; }
.attention-grid,
.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}
.attention-card {
    display: grid;
    gap: 0.4rem;
    min-height: 148px;
    padding: 16px;
    border: 1px solid rgba(198, 208, 220, 0.9);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}
.attention-card:hover,
.attention-card:focus-visible {
    color: var(--ink);
    transform: translateY(-2px);
    border-color: rgba(199, 147, 42, 0.42);
    box-shadow: var(--shadow-card-hover);
    background: linear-gradient(180deg, #ffffff 0%, #fdf9f1 100%);
}
.attention-card span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.25;
    text-transform: uppercase;
}
.attention-card strong {
    color: var(--color-navy-900);
    font-size: clamp(1.55rem, 2.5vw, 2.15rem);
    line-height: 1;
    letter-spacing: -0.03em;
}
.attention-card small { color: var(--muted); line-height: 1.45; }
.director-kpi-grid { grid-template-columns: repeat(6, minmax(150px, 1fr)); }
.operations-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}
.queue-panel { margin-bottom: 0; overflow: hidden; }
.queue-panel .panel-header { align-items: flex-start; }
.dashboard-list { display: grid; gap: 8px; min-width: 0; }
.dashboard-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid rgba(198, 208, 220, 0.72);
    border-radius: 13px;
    background: #fff;
    color: var(--ink);
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.dashboard-list-row:hover,
.dashboard-list-row:focus-visible {
    color: var(--ink);
    background: var(--color-surface-soft);
    border-color: rgba(199, 147, 42, 0.34);
    box-shadow: 0 10px 20px rgba(15, 29, 51, 0.06);
    transform: translateY(-1px);
}
.dashboard-list-row > span { display: grid; gap: 2px; min-width: 0; }
.dashboard-list-row strong,
.dashboard-list-row small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dashboard-list-row strong { color: var(--color-navy-900); font-size: 0.9rem; line-height: 1.28; }
.dashboard-list-row small { color: var(--muted); font-size: 0.76rem; line-height: 1.28; }
.dashboard-list-row .badge { flex: 0 0 auto; }
.dashboard-list-row em { font-style: normal; }
.dashboard-more-metrics { padding: 0; overflow: hidden; }
.dashboard-more-metrics summary {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    color: var(--color-navy-900);
    font-weight: 800;
    list-style: none;
}
.dashboard-more-metrics summary::-webkit-details-marker { display: none; }
.dashboard-more-metrics summary::after {
    content: "+";
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gold-100);
    color: var(--color-warning);
    font-weight: 900;
}
.dashboard-more-metrics[open] summary::after { content: "-"; }
.dashboard-more-metrics summary small {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.35;
}
.more-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 0 20px 20px;
}
.metric-list-panel {
    min-width: 0;
    padding: 15px;
    border-radius: 14px;
    background: var(--color-surface-soft);
    border: 1px solid rgba(198, 208, 220, 0.76);
}
.metric-list-panel h3 {
    margin-bottom: 10px;
    color: var(--color-navy-900);
    font-size: 0.9rem;
    line-height: 1.25;
}
.module-guidance-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-color: rgba(199, 147, 42, 0.2);
    background: linear-gradient(180deg, #fffdf8 0%, #fffaf0 100%);
    box-shadow: none;
}
.module-guidance-strip div:first-child { display: grid; gap: 2px; min-width: 0; }
.module-guidance-strip strong { color: var(--color-navy-900); font-size: 0.92rem; }
.module-guidance-strip span { color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.dashboard-guidance-strip { margin-bottom: 0; }
.module-shell { display: grid; gap: 22px; }
.module-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr); gap: 20px; align-items: stretch; }
.module-hero-main,
.module-hero-side { margin-bottom: 0; }
.module-hero-main { background: linear-gradient(135deg, rgba(15, 29, 51, 0.98) 0%, rgba(24, 50, 80, 0.96) 62%, rgba(34, 66, 102, 0.94) 100%); color: #f6f8fb; border-color: rgba(24, 50, 80, 0.45); box-shadow: 0 24px 48px rgba(15, 29, 51, 0.18); position: relative; overflow: hidden; }
.module-hero-main::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at top right, rgba(199, 147, 42, 0.22), transparent 44%); pointer-events: none; }
.module-overline { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 0.78rem; color: rgba(255,255,255,0.72); font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; }
.module-overline::before { content: ""; width: 34px; height: 2px; border-radius: 999px; background: linear-gradient(90deg, var(--color-gold-500), rgba(255,255,255,0.18)); }
.module-hero-main h2 { position: relative; margin-bottom: 0.7rem; color: #fff; font-size: clamp(1.4rem, 2vw, 1.95rem); line-height: 1.12; letter-spacing: -0.03em; }
.module-hero-main p { position: relative; margin-bottom: 1rem; color: rgba(244,248,252,0.78); line-height: 1.62; font-size: 0.96rem; }
.module-meta-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 12px; }
.module-meta-card { padding: 14px 15px; border-radius: 15px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.08); backdrop-filter: blur(6px); min-width: 0; }
.module-meta-card span { display: block; margin-bottom: 0.4rem; color: rgba(255,255,255,0.68); font-size: 0.73rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.module-meta-card strong { display: block; color: #fff; font-size: 1.12rem; line-height: 1.2; letter-spacing: -0.02em; }
.module-meta-card small { display: block; margin-top: 0.32rem; color: rgba(255,255,255,0.72); line-height: 1.45; }
.module-section { display: grid; gap: 14px; }
.module-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.module-section-heading h2 { margin-bottom: 0.25rem; font-size: 1.14rem; line-height: 1.2; letter-spacing: -0.02em; color: var(--color-navy-900); }
.module-section-heading p { margin-bottom: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.module-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 16px; }
.module-two-column { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.module-three-column { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.module-detail-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.app-dir-rtl .main-content { padding-left: clamp(1rem, 2vw, 1.75rem); padding-right: clamp(1rem, 2vw, 1.75rem); }
.app-dir-rtl .dashboard-shell,
.app-dir-rtl .module-shell { width: 100%; max-width: 1520px; margin-inline: auto; }
.app-dir-rtl .dashboard-hero,
.app-dir-rtl .module-hero,
.app-dir-rtl .module-detail-grid { direction: ltr; }
.app-dir-rtl .dashboard-hero > *,
.app-dir-rtl .module-hero > *,
.app-dir-rtl .module-detail-grid > * { direction: rtl; }
.module-callout { padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(199, 147, 42, 0.18); background: linear-gradient(180deg, #fffdf7 0%, #fbf6ea 100%); color: #5a4a26; line-height: 1.6; }
.module-callout strong { color: var(--color-navy-900); }
.form-shell,
.detail-shell { display: grid; gap: 22px; }
.form-shell > form:last-child,
.detail-shell > section:last-child,
.detail-shell > .panel:last-child { margin-bottom: 0; }
.form-section { display: grid; gap: 16px; }
.form-section-header { grid-column: 1 / -1; display: grid; gap: 4px; padding-top: 2px; }
.form-section-header h2,
.form-section-header h3 { margin-bottom: 0; font-size: 1rem; line-height: 1.25; letter-spacing: -0.01em; color: var(--color-navy-900); }
.form-section-header p { margin-bottom: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.55; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.detail-card,
.related-panel { margin-bottom: 0; }
.related-panel .quick-links,
.related-panel .simple-list { margin-top: 2px; }
.action-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.helper-note,
.warning-note,
.success-note,
.audit-note { padding: 14px 16px; border-radius: 15px; border: 1px solid rgba(198, 208, 220, 0.88); line-height: 1.55; }
.helper-note { background: linear-gradient(180deg, #fbfcfe 0%, #f7fafc 100%); color: var(--muted); }
.warning-note { background: linear-gradient(180deg, #fffaf0 0%, #fff3df 100%); border-color: rgba(199, 147, 42, 0.24); color: #6a531a; }
.success-note { background: linear-gradient(180deg, #f2fbf6 0%, #e8f5ef 100%); border-color: rgba(31, 106, 79, 0.18); color: var(--success); }
.audit-note { background: linear-gradient(180deg, #f7faff 0%, #e9f1fb 100%); border-color: rgba(39, 90, 139, 0.18); color: var(--info); }
.form-grid .helper-note,
.form-grid .warning-note,
.form-grid .success-note,
.form-grid .audit-note { grid-column: 1 / -1; }
.profile-hero { display: grid; gap: 18px; }
.profile-identity { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.profile-identity h2 { margin-bottom: 0.35rem; }
.profile-identity p { margin-bottom: 0; }
.profile-chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.portal-identity-strip,
.teacher-identity-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0 4px; color: var(--muted); }
.portal-identity-strip strong,
.teacher-identity-strip strong { display: block; color: var(--color-navy-900); font-size: 0.98rem; line-height: 1.25; }
.portal-identity-strip span:last-child,
.teacher-identity-strip span:last-child { font-size: 0.86rem; line-height: 1.35; }
.summary-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.summary-tile { padding: 14px 15px; border-radius: 14px; background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%); border: 1px solid rgba(198, 208, 220, 0.88); min-width: 0; }
.summary-tile span { display: block; color: var(--muted); font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.45rem; }
.summary-tile strong { display: block; color: var(--color-navy-900); font-size: 1rem; line-height: 1.35; }
.summary-tile small { display: block; margin-top: 0.32rem; color: var(--muted); line-height: 1.45; }
.learning-journey { display: grid; gap: 16px; }
.learning-progress-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.learning-progress-card { display: grid; gap: 11px; padding: 14px 15px; border-radius: 14px; border: 1px solid rgba(198, 208, 220, 0.88); background: #fff; min-width: 0; }
.learning-progress-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.learning-progress-head span { display: block; color: var(--muted); font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.32rem; }
.learning-progress-head strong { display: block; color: var(--color-navy-900); line-height: 1.35; }
.learning-progress-head b { color: var(--color-gold-500); font-size: 0.94rem; white-space: nowrap; }
.learning-progress-card p { margin: 0; color: var(--muted); line-height: 1.45; }
.progress-track { height: 10px; border-radius: 999px; background: rgba(198, 208, 220, 0.55); overflow: hidden; }
.progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--color-gold-500), var(--color-navy-800)); }
.progress-track-muted { background: rgba(198, 208, 220, 0.38); }
.progress-fill-muted { background: rgba(102, 116, 135, 0.42); }
.learning-progress-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 0.82rem; }
.learning-progress-meta span { padding: 0.28rem 0.5rem; border-radius: 999px; background: var(--color-surface-soft); border: 1px solid rgba(198, 208, 220, 0.64); }
.calendar-shell { display: grid; gap: 12px; }
.calendar-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.calendar-toolbar h3 { margin: 0 0 0.25rem; color: var(--color-navy-900); font-size: 1.02rem; }
.calendar-toolbar p { margin: 0; color: var(--muted); }
.calendar-meta { color: var(--muted); font-size: 0.84rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.calendar-weekday { color: var(--muted); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; padding: 0 2px; }
.calendar-day { min-height: 116px; min-width: 0; padding: 10px; border-radius: 12px; border: 1px solid rgba(198, 208, 220, 0.78); background: #fff; display: grid; align-content: start; gap: 7px; }
.calendar-day-teaching { border-color: rgba(39, 90, 139, 0.24); background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%); }
.calendar-day-teaching.is-current { border-color: rgba(199, 147, 42, 0.72); box-shadow: 0 0 0 3px rgba(199, 147, 42, 0.14); }
.calendar-day-teaching.is-completed { border-color: rgba(33, 130, 91, 0.34); }
.calendar-day-blocked { background: #f1f4f7; color: var(--muted); border-style: dashed; }
.calendar-day-outside { min-height: 64px; background: #f7f9fb; color: rgba(102, 116, 135, 0.55); }
.calendar-day-link,
.calendar-day-details summary { display: grid; gap: 4px; color: inherit; text-decoration: none; cursor: pointer; }
.calendar-day-link:hover strong,
.calendar-day-details summary:hover strong { color: var(--color-gold-500); text-decoration: underline; }
.calendar-date { color: var(--muted); font-size: 0.72rem; font-weight: 700; }
.calendar-day strong { color: var(--color-navy-900); line-height: 1.25; }
.calendar-day em { color: var(--ink); font-style: normal; font-size: 0.84rem; line-height: 1.35; overflow-wrap: anywhere; }
.calendar-status { width: fit-content; padding: 0.2rem 0.45rem; border-radius: 999px; background: var(--color-surface-soft); color: var(--muted); font-size: 0.72rem; font-weight: 700; }
.calendar-day-details { display: grid; gap: 8px; }
.calendar-day-details dl { display: grid; gap: 6px; margin: 0; padding-top: 8px; border-top: 1px solid rgba(198, 208, 220, 0.72); }
.calendar-day-details div { display: grid; gap: 2px; }
.calendar-day-details dt { color: var(--muted); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.calendar-day-details dd { margin: 0; color: var(--ink); font-size: 0.8rem; line-height: 1.35; overflow-wrap: anywhere; }
.calendar-empty { grid-column: 1 / -1; }
.teacher-quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.teacher-quick-card { padding: 16px; border-radius: 16px; border: 1px solid rgba(198, 208, 220, 0.88); background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%); display: grid; gap: 10px; }
.teacher-quick-label { color: var(--muted); font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.teacher-quick-card strong { color: var(--color-navy-900); font-size: 1.05rem; }
.teacher-quick-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.attendance-session-list { display: grid; gap: 12px; }
.attendance-session-card { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px; border-radius: 16px; border: 1px solid rgba(198, 208, 220, 0.88); background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%); }
.attendance-session-main { min-width: 0; display: grid; gap: 8px; }
.attendance-session-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.attendance-session-head h3 { margin: 0; color: var(--color-navy-900); font-size: 1rem; }
.attendance-session-meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 0.88rem; }
.attendance-session-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.attendance-roster-list { display: grid; gap: 14px; }
.attendance-roster-card { padding: 16px; border-radius: 16px; border: 1px solid rgba(198, 208, 220, 0.88); background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%); display: grid; gap: 12px; }
.attendance-roster-head h3 { margin: 0 0 0.18rem; color: var(--color-navy-900); font-size: 1rem; }
.attendance-roster-head p { margin: 0; color: var(--muted); }
.attendance-status-options { display: flex; gap: 10px; flex-wrap: wrap; }
.attendance-status-pill { position: relative; display: inline-flex; align-items: center; min-height: 36px; padding: 0.44rem 0.85rem; border-radius: 999px; border: 1px solid rgba(198, 208, 220, 0.92); background: #fff; color: var(--ink); font-weight: 700; cursor: pointer; }
.attendance-status-pill input { position: absolute; opacity: 0; pointer-events: none; }
.attendance-status-pill.selected,
.attendance-status-pill:has(input:checked) { border-color: rgba(24, 50, 80, 0.38); box-shadow: 0 0 0 3px rgba(24, 50, 80, 0.08); }
.attendance-option-present.selected,
.attendance-option-present:has(input:checked) { background: var(--success-soft); color: var(--success); border-color: rgba(31, 106, 79, 0.24); }
.attendance-option-absent.selected,
.attendance-option-absent:has(input:checked) { background: var(--danger-soft); color: var(--danger); border-color: rgba(180, 69, 61, 0.24); }
.attendance-option-late.selected,
.attendance-option-late:has(input:checked) { background: var(--warning-soft); color: var(--warning); border-color: rgba(148, 101, 26, 0.24); }
.attendance-option-excused.selected,
.attendance-option-excused:has(input:checked) { background: var(--info-soft); color: var(--info); border-color: rgba(39, 90, 139, 0.24); }
.attendance-status-pill.disabled { opacity: 0.72; cursor: default; }
.form-grid > .panel-header,
.form-grid > .form-actions,
.form-grid > .alert,
.form-grid > .empty-state { grid-column: 1 / -1; }
.form-section-intro { padding: 16px 18px; border-radius: 16px; background: linear-gradient(180deg, #fbfcfe 0%, #f7fafc 100%); border: 1px solid rgba(198, 208, 220, 0.88); }
.form-section-intro .section-heading { margin-bottom: 0; }
.calc-card { padding: 18px; border-radius: 16px; border: 1px solid rgba(198, 208, 220, 0.92); background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%); box-shadow: var(--shadow-sm); }
.calc-card-header { margin-bottom: 14px; }
.calc-card-header h3 { margin-bottom: 0.25rem; font-size: 1rem; line-height: 1.25; letter-spacing: -0.01em; color: var(--color-navy-900); }
.calc-card-header p { margin-bottom: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.calc-item { padding: 12px 13px; border-radius: 13px; background: var(--color-surface-soft); border: 1px solid rgba(198, 208, 220, 0.6); min-width: 0; }
.calc-item dt { color: var(--muted); font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.35rem; }
.calc-item dd { margin: 0; color: var(--color-navy-900); font-weight: 600; line-height: 1.45; }
.placeholder-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.permission-group + .permission-group { margin-top: 18px; }
.permission-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.permission-check { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 1px 0 rgba(255,255,255,0.75) inset; }
.permission-check input { margin-top: 3px; }
.checkbox-note-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.login-body { display: grid; place-items: center; min-height: 100vh; background:
    radial-gradient(circle at top left, rgba(199, 147, 42, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(24, 50, 80, 0.12), transparent 32%),
    linear-gradient(180deg, #eef3f9 0%, #f5f7fa 42%, #edf1f5 100%); padding: 1rem; }
.login-dir-rtl { direction: rtl; text-align: right; }
.login-dir-ltr { direction: ltr; text-align: left; }
.app-dir-rtl { direction: rtl; text-align: right; }
.app-dir-ltr { direction: ltr; text-align: left; }
.app-dir-rtl input[type="text"],
.app-dir-rtl input[type="email"],
.app-dir-rtl input[type="password"],
.app-dir-rtl input[type="number"],
.app-dir-rtl textarea { text-align: right; }
.app-dir-rtl input[name*="username"],
.app-dir-rtl input[name*="email"],
.app-dir-rtl input[type="password"],
.app-dir-rtl .code,
.app-dir-rtl code { direction: ltr; unicode-bidi: isolate; text-align: left; }
.ltr-text,
.code-text,
.number-text {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
    text-align: left;
}
.rtl-text {
    direction: rtl;
    unicode-bidi: isolate;
    display: inline-block;
    text-align: right;
}
.app-dir-rtl .panel-header,
.app-dir-rtl .profile-identity,
.app-dir-rtl .detail-list,
.app-dir-rtl .form-grid label,
.app-dir-rtl .field,
.app-dir-rtl .summary-tile,
.app-dir-rtl .module-callout,
.app-dir-rtl .empty-state { text-align: right; }
.app-dir-rtl .action-group { justify-content: flex-start; }
.app-dir-rtl .table th,
.app-dir-rtl .table td { text-align: right; }
.app-dir-rtl .code-text,
.app-dir-rtl .number-text,
.app-dir-rtl .ltr-text { text-align: left; }
.app-dir-rtl .table .code-text,
.app-dir-rtl .table .number-text,
.app-dir-rtl .table .ltr-text { direction: ltr; unicode-bidi: isolate; }
.field-hint { display: block; margin: 0.18rem 0 0.34rem; color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.file-picker-field { display: grid; gap: 0.36rem; }
.file-picker-shell { position: relative; display: flex; align-items: center; gap: 0.65rem; min-height: 44px; padding: 0.32rem 0.45rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,0.72); overflow: hidden; }
.file-picker-shell:hover { border-color: var(--color-border-strong); }
.file-picker-button { flex: 0 0 auto; pointer-events: none; }
.file-picker-text { min-width: 0; flex: 1 1 auto; color: var(--muted); font-size: 0.86rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-picker-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.app-dir-rtl .file-picker-shell { flex-direction: row-reverse; }
.login-shell { width: min(1180px, calc(100vw - 2rem)); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr); gap: 1rem; align-items: stretch; }
.login-panel { background: var(--color-surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-md); padding: 1.35rem 1.45rem; }
.login-panel-brand { background: linear-gradient(135deg, rgba(15, 29, 51, 0.98) 0%, rgba(24, 50, 80, 0.96) 62%, rgba(34, 66, 102, 0.94) 100%); border-color: rgba(24, 50, 80, 0.45); color: #f6f8fb; position: relative; overflow: hidden; }
.login-panel-brand::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at top right, rgba(199, 147, 42, 0.24), transparent 42%); pointer-events: none; }
.login-card-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.15rem; min-width: 0; }
.login-language-switcher { position: relative; display: inline-flex; flex: 0 0 auto; gap: 0.35rem; margin-bottom: 0; padding: 0.22rem; border: 1px solid rgba(255,255,255,0.14); border-radius: 999px; background: rgba(255,255,255,0.08); }
.login-language-switcher a { color: rgba(255,255,255,0.76); text-decoration: none; font-size: 0.76rem; font-weight: 800; padding: 0.32rem 0.58rem; border-radius: 999px; }
.login-language-switcher a.is-active { color: var(--color-navy-900); background: #fff; }
.login-brand-row { position: relative; display: flex; align-items: center; flex: 1 1 auto; min-width: 0; max-width: min(100%, 430px); gap: 0.8rem; margin-bottom: 0; }
.login-brand-logo-wrap { flex: 0 0 auto; width: 60px; height: 60px; }
.login-brand-copy { display: grid; min-width: 0; gap: 0.12rem; }
.login-brand-copy strong { color: #fff; font-size: 1.14rem; line-height: 1.18; letter-spacing: -0.02em; }
.login-brand-copy small { color: rgba(255,255,255,0.66); font-size: 0.78rem; line-height: 1.35; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.login-dir-rtl .login-card-top { direction: rtl; }
.login-dir-rtl .login-brand-row { direction: rtl; text-align: right; }
.login-dir-ltr .login-brand-row { direction: ltr; text-align: left; }
.login-dir-rtl .login-brand-copy strong { line-height: 1.35; letter-spacing: 0; }
.login-dir-rtl .login-brand-copy small { line-height: 1.5; text-transform: none; letter-spacing: 0; }
.login-intro,
.login-highlight,
.login-helper-list { position: relative; }
.login-chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0.3rem 0.7rem; border-radius: var(--radius-pill); background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.88); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.login-intro h1 { margin: 0.85rem 0 0.5rem; color: #fff; font-size: clamp(2rem, 3vw, 2.5rem); line-height: 1.08; letter-spacing: -0.03em; }
.login-intro p { margin-bottom: 0; color: rgba(244,248,252,0.78); font-size: 0.95rem; line-height: 1.65; max-width: 46ch; }
.login-highlight { margin-top: 1.15rem; padding: 1rem 1.05rem; border-radius: 18px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.08); backdrop-filter: blur(6px); }
.login-highlight-label { display: inline-flex; margin-bottom: 0.45rem; color: rgba(255,255,255,0.68); font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.login-highlight strong { display: block; color: #fff; font-size: 1rem; line-height: 1.45; }
.login-highlight p { margin: 0.45rem 0 0; color: rgba(244,248,252,0.74); font-size: 0.86rem; line-height: 1.55; }
.login-helper-list { list-style: none; display: grid; gap: 0.72rem; margin: 1.1rem 0 0; padding: 0; }
.login-helper-list li { display: grid; grid-template-columns: auto 1fr; gap: 0.72rem; align-items: start; padding: 0.9rem 0.95rem; border-radius: 16px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.08); }
.login-helper-index { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; background: rgba(199, 147, 42, 0.18); color: #fff; font-size: 0.82rem; font-weight: 800; }
.login-helper-list strong { color: #fff; display: block; margin-bottom: 0.18rem; }
.login-helper-list .muted { color: rgba(244,248,252,0.72); font-size: 0.84rem; line-height: 1.5; }
.login-panel-form { align-self: center; }
.login-form-head { display: flex; justify-content: space-between; gap: 0.75rem; align-items: flex-start; margin-bottom: 1rem; }
.login-section-kicker { display: inline-flex; margin-bottom: 0.4rem; color: var(--color-warning); font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.login-form-head h2 { margin-bottom: 0.32rem; font-size: 1.45rem; line-height: 1.1; letter-spacing: -0.02em; }
.login-form-head p { margin-bottom: 0; }
.login-credential-note { margin-bottom: 0.85rem; padding: 0.7rem 0.85rem; border-radius: 14px; background: linear-gradient(180deg, #fbfcfe 0%, #f7fafc 100%); border: 1px solid rgba(198, 208, 220, 0.88); color: var(--muted); }
.login-submit { width: 100%; min-height: 40px; }
.login-body input[dir="ltr"] { direction: ltr; text-align: left; unicode-bidi: isolate; }
code { background: #edf2f7; padding: 2px 6px; border-radius: 6px; }
.document-shell { display: grid; gap: 12px; }
.document-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.print-document { width: 100%; max-width: 820px; margin: 0 auto; padding: 24px 26px; border-radius: 20px; background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%); border: 1px solid rgba(198, 208, 220, 0.92); box-shadow: var(--shadow-md); }
.print-document-invalid { border-color: rgba(180, 69, 61, 0.28); }
.document-header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding-bottom: 16px; border-bottom: 2px solid rgba(15, 29, 51, 0.08); margin-bottom: 16px; }
.document-brand { display: flex; gap: 12px; align-items: center; }
.document-brand strong { display: block; color: var(--color-navy-900); font-size: 1.2rem; line-height: 1.1; }
.document-brand span { display: block; color: var(--muted); font-size: 0.84rem; }
.document-logo-wrap { width: 52px; height: 52px; border-radius: 16px; }
.document-title-block { text-align: right; display: grid; gap: 6px; justify-items: end; }
.document-kicker { color: var(--color-gold-500); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.document-title-block h1 { margin: 0; color: var(--color-navy-900); font-size: clamp(1.45rem, 1.9vw, 1.85rem); line-height: 1.06; letter-spacing: -0.03em; }
.document-stamp { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 0.24rem 0.74rem; border-radius: 999px; border: 1px solid transparent; font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.document-stamp-cancelled { background: var(--danger-soft); color: var(--danger); border-color: rgba(180, 69, 61, 0.2); }
.document-stamp-warning { background: var(--warning-soft); color: var(--warning); border-color: rgba(148, 101, 26, 0.22); }
.document-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.document-grid-compact { margin-bottom: 12px; }
.document-card { padding: 14px 16px; border-radius: 16px; background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%); border: 1px solid rgba(198, 208, 220, 0.82); }
.document-card h2 { margin-bottom: 10px; color: var(--color-navy-900); font-size: 0.92rem; line-height: 1.2; }
.document-meta { margin: 0; display: grid; gap: 9px; }
.document-meta div { display: grid; gap: 3px; }
.document-meta dt { color: var(--muted); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.document-meta dd { margin: 0; color: var(--ink); font-weight: 600; line-height: 1.36; }
.document-note { margin: 0; color: var(--ink); line-height: 1.52; }
.document-note + .document-note { margin-top: 8px; }
.document-table { margin-top: 0; }
.document-table th, .document-table td { padding-top: 0.42rem; padding-bottom: 0.42rem; }
.document-table td strong { display: block; margin-bottom: 2px; }
.document-alert { margin-bottom: 12px; padding: 10px 12px; }
.document-summary-card { min-height: 100%; }
.document-footer-block { display: grid; gap: 12px; margin-top: 8px; }
.document-signatures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.document-signature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.document-signature-card { padding: 12px 14px; border-radius: 16px; border: 1px solid rgba(198, 208, 220, 0.82); background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%); }
.document-signature-box { padding: 12px 14px; }
.document-signature-card span { display: block; color: var(--muted); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.document-signature-card strong { display: block; min-height: 1.2rem; color: var(--ink); font-size: 0.92rem; margin-bottom: 10px; }
.document-sign-line { height: 1px; background: rgba(15, 29, 51, 0.22); }
.document-sign-line-muted { background: rgba(102, 116, 135, 0.18); }
.document-signature-image-wrap { min-height: 34px; display: flex; align-items: flex-end; justify-content: flex-start; }
.document-signature-image-wrap-centered { justify-content: center; }
.document-signature-image { display: block; max-width: 100%; max-height: 34px; object-fit: contain; }
.document-stamp-card { text-align: center; }
.document-stamp-box { min-height: 52px; display: flex; align-items: center; justify-content: center; border: 1px dashed rgba(15, 29, 51, 0.26); border-radius: 12px; color: var(--muted); font-size: 0.84rem; }
.document-stamp-image { display: block; max-width: 100%; max-height: 50px; object-fit: contain; }
.document-system-footer { padding-top: 10px; border-top: 1px solid rgba(15, 29, 51, 0.12); display: grid; gap: 3px; text-align: center; }
.document-mode-note { color: var(--muted); font-size: 0.76rem; }
.document-system-note { color: var(--ink); font-size: 0.84rem; font-weight: 600; }
.document-system-contact { color: var(--muted); font-size: 0.8rem; }
.branding-asset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.branding-asset-card { padding: 14px; border-radius: 16px; border: 1px solid rgba(198, 208, 220, 0.88); background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%); display: grid; gap: 12px; }
.branding-asset-card h3 { margin-bottom: 0; color: var(--color-navy-900); font-size: 0.92rem; }
.branding-asset-card input[type="file"] { width: 100%; min-height: 40px; padding: 0.52rem 0.66rem; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); font: inherit; box-shadow: inset 0 1px 0 rgba(255,255,255,0.72); }
.branding-asset-card input[type="file"]:hover { border-color: var(--color-border-strong); }
.branding-asset-card input[type="file"]:focus { outline: none; border-color: rgba(24, 50, 80, 0.48); box-shadow: 0 0 0 4px rgba(24, 50, 80, 0.1), 0 10px 20px rgba(15, 29, 51, 0.06); }
.branding-preview { min-height: 128px; border-radius: 14px; border: 1px dashed rgba(15, 29, 51, 0.16); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 12px; }
.branding-preview-label { color: var(--muted); font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.branding-preview-image { display: block; max-width: 100%; max-height: 112px; object-fit: contain; }
.branding-preview-signature { max-height: 72px; }
.branding-preview-empty { color: var(--muted); text-align: center; font-size: 0.84rem; line-height: 1.45; }
.charge-payment-summary { display: grid; gap: 12px; }
.charge-payment-summary .panel-header { margin-bottom: 0; }
.charge-payment-summary-grid { margin: 0; }
.collection-warning-note { margin: 0; }
.report-shell { display: grid; gap: 18px; }
.report-toolbar { display: flex; gap: 10px; flex-wrap: wrap; }
.report-filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; align-items: end; }
.report-filter-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.report-note { margin-bottom: 0; }

@media print {
    @page { size: A4; margin: 11mm 10mm 10mm 10mm; }
    html, body { background: #fff; }
    body {
        font-size: 10pt;
        line-height: 1.35;
    }
    .sidebar,
    .sidebar *,
    .topbar,
    .topbar *,
    .app-resize-handle,
    .app-shell-backdrop,
    .document-actions,
    .page-header,
    .page-header-actions,
    .breadcrumbs,
    .sidebar-toggle,
    .topbar-actions,
    .inline-actions,
    .action-group form,
    .btn,
    .quick-links,
    nav { display: none !important; }
    .layout,
    .app-shell,
    .main,
    .main-content,
    .module-shell,
    .document-shell {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    .main { margin-left: 0 !important; margin-right: 0 !important; width: 100% !important; }
    .print-document {
        width: 100% !important;
        max-width: 185mm !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
        padding: 2mm 0 0 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #fff !important;
        box-shadow: none !important;
        font-size: inherit !important;
    }
    .print-document,
    .print-document * { box-shadow: none !important; }
    .print-document .document-header,
    .print-document .document-grid,
    .print-document .document-grid-compact,
    .print-document .document-card,
    .print-document .document-footer-block,
    .print-document .document-signatures,
    .print-document .document-signature-card,
    .print-document .document-table,
    .print-document .document-table thead,
    .print-document .document-table tbody,
    .print-document .document-table tr,
    .print-document .document-table th,
    .print-document .document-table td {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    .print-document .document-header {
        gap: 16px;
        margin-bottom: 14px;
        padding-bottom: 12px;
        align-items: flex-start;
    }
    .print-document .document-brand { gap: 12px; }
    .print-document .document-brand strong { font-size: 15pt; }
    .print-document .document-brand span { font-size: 9.5pt; }
    .print-document .document-logo-wrap {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }
    .print-document .document-kicker { font-size: 8pt; }
    .print-document .document-title-block {
        gap: 5px;
        min-width: 0;
        text-align: right;
    }
    .print-document .document-title-block h1 {
        font-size: 16pt;
        min-width: 0;
        overflow-wrap: normal;
        word-break: normal;
    }
    .print-document .document-stamp {
        min-height: 26px;
        padding: 0.18rem 0.62rem;
        font-size: 8pt;
    }
    .print-document .document-grid,
    .print-document .document-grid-compact {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 12px;
        margin-bottom: 12px;
    }
    .print-document .document-card {
        padding: 12px 14px;
        border: 1px solid rgba(15, 29, 51, 0.12) !important;
        border-radius: 12px;
        background: #fff !important;
    }
    .print-document .document-card h2 {
        margin-bottom: 8px;
        font-size: 10.5pt;
    }
    .print-document .document-meta { gap: 7px; }
    .print-document .document-meta div { gap: 2px; }
    .print-document .document-meta dt { font-size: 7.5pt; }
    .print-document .document-meta dd {
        font-size: 9.75pt;
        line-height: 1.3;
    }
    .print-document .document-note {
        font-size: 9.5pt;
        line-height: 1.38;
    }
    .print-document .document-note + .document-note { margin-top: 6px; }
    .print-document .document-alert {
        margin-bottom: 10px;
        padding: 8px 10px;
        font-size: 9.5pt;
    }
    .print-document .document-footer-block {
        gap: 10px;
        margin-top: 8px;
    }
    .print-document .document-signatures {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px;
    }
    .print-document .document-signature-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px;
    }
    .print-document .document-signature-card {
        padding: 12px 14px;
        border: 1px solid rgba(15, 29, 51, 0.12) !important;
        border-radius: 12px;
        background: #fff !important;
    }
    .print-document .document-signature-box { padding: 12px 14px; }
    .print-document .document-signature-card span {
        margin-bottom: 10px;
        font-size: 7.5pt;
    }
    .print-document .document-signature-card strong {
        margin-bottom: 8px;
        font-size: 9.5pt;
    }
    .print-document .document-signature-image-wrap {
        min-height: 34px;
    }
    .print-document .document-signature-image {
        max-height: 34px;
    }
    .print-document .document-stamp-box {
        min-height: 54px;
        font-size: 8.5pt;
    }
    .print-document .document-stamp-image {
        max-height: 52px;
    }
    .print-document .document-system-footer {
        padding-top: 8px;
        gap: 2px;
    }
    .print-document .document-mode-note { font-size: 7.25pt; }
    .print-document .document-system-note { font-size: 8.5pt; }
    .print-document .document-system-contact { font-size: 7.75pt; }
    .print-document .document-table {
        width: 100% !important;
        margin: 0 !important;
    }
    .print-document .document-table th,
    .print-document .document-table td {
        padding: 6px 7px !important;
        font-size: 9pt;
        line-height: 1.28;
    }
    .print-document .document-table th { font-size: 7.75pt; }
    .print-document .document-table td strong { margin-bottom: 2px; }
    .print-document .muted { font-size: 8.25pt; }
    .print-document a { color: inherit !important; text-decoration: none !important; }
}
@media (max-width: 1024px) {
    .app-shell-backdrop { position: fixed; inset: 0; border: 0; background: rgba(8, 14, 22, 0.42); z-index: 24; }
    .app-shell.sidebar-open .app-shell-backdrop { display: block; }
    .app-resize-handle { display: none; }
    .sidebar { transform: translateX(-100%); transition: transform .18s ease; width: min(290px, calc(100vw - 2.5rem)); z-index: 30; }
    .app-dir-rtl .sidebar { transform: translateX(100%); }
    .app-shell.sidebar-open .sidebar { transform: translateX(0); }
    .sidebar-inner { height: 100vh; padding-bottom: 18px; }
    .main,
    .app-dir-rtl .main { margin-left: 0; margin-right: 0; width: 100%; }
    .module-hero,
    .module-two-column,
    .module-three-column,
    .module-detail-grid,
    .detail-grid { grid-template-columns: 1fr; }
    .dashboard-hero,
    .dashboard-academic-grid,
    .dashboard-enrollment-grid,
    .operations-grid,
    .more-metrics-grid,
    .document-grid,
    .dashboard-kpi-grid-tight { grid-template-columns: 1fr; }
    .director-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topbar-shell, .page-header, .profile-grid, .login-shell { grid-template-columns: 1fr; display: grid; }
    .filter-bar, .form-grid { grid-template-columns: 1fr; }
    .learning-progress-grid { grid-template-columns: 1fr; }
    .agreement-family-header,
    .agreement-language-row,
    .agreement-admin-main,
    .agreement-admin-grid,
    .agreement-counts { grid-template-columns: 1fr; }
    .agreement-actions { justify-content: flex-start; }
    .table th, .table td { padding-left: 10px; padding-right: 10px; }
    .main-content { padding-top: 1rem; }
    .attendance-session-card { flex-direction: column; align-items: flex-start; }
    .attendance-session-actions { width: 100%; }
}
@media (max-width: 720px) {
    body { font-size: 0.86rem; }
    .topbar-shell { padding-left: 1rem; padding-right: 1rem; }
    .main-content { padding-left: 1rem; padding-right: 1rem; }
    .login-body { padding: 0.75rem; }
    .login-panel { padding: 1.1rem 1rem; }
    .login-card-top { align-items: flex-start; flex-direction: column; gap: 0.75rem; }
    .login-brand-row { max-width: 100%; }
    .login-brand-logo-wrap { width: 54px; height: 54px; }
    .login-language-switcher { max-width: 100%; overflow-x: auto; }
    .topbar-actions { justify-content: flex-start; width: 100%; }
    .topbar-identity { text-align: left; }
    .topbar-user-name,
    .topbar-user-role { max-width: calc(100vw - 2rem); }
    .director-kpi-grid,
    .attention-grid,
    .quick-action-grid { grid-template-columns: 1fr; }
    .attention-card { min-height: 126px; }
    .dashboard-list-row { align-items: flex-start; }
    .dashboard-list-row .badge { white-space: normal; text-align: center; }
    .module-guidance-strip { align-items: flex-start; flex-direction: column; }
    .module-guidance-strip .action-group { width: 100%; }
    .module-guidance-strip .btn { flex: 1 1 auto; }
    .dashboard-more-metrics summary { align-items: flex-start; }
}

.sidebar-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 0.42rem; min-height: 38px; padding: 0.38rem 0.68rem; border: 1px solid var(--color-border-strong); border-radius: 11px; background: var(--color-surface); color: var(--ink); box-shadow: 0 8px 18px rgba(15, 29, 51, 0.05); cursor: pointer; font-weight: 800; font-size: 0.82rem; line-height: 1.1; white-space: nowrap; }
.sidebar-toggle:hover { background: var(--color-surface-soft); color: var(--ink); border-color: rgba(199, 147, 42, 0.42); transform: translateY(-1px); }
.sidebar-toggle:focus-visible { outline: 3px solid rgba(199, 147, 42, 0.36); outline-offset: 2px; }
.sidebar-toggle[aria-expanded="false"] { border-color: rgba(199, 147, 42, 0.42); background: #fffaf0; color: var(--color-navy-900); }
.sidebar-toggle-icon { font-size: 1rem; line-height: 1; }
.app-shell:not(.admin-shell) .sidebar-toggle { display: none; }
.topbar-actions > * { min-width: 0; }
.topbar-identity strong,
.topbar-identity span,
.sidebar-account-copy strong,
.sidebar-account-copy span { overflow-wrap: anywhere; word-break: break-word; }
.sidebar-link,
.page-header,
.topbar-shell,
.panel,
.table,
.main-content { min-width: 0; }
.sidebar::-webkit-scrollbar,
.sidebar-inner::-webkit-scrollbar { width: 10px; }
.sidebar::-webkit-scrollbar-thumb,
.sidebar-inner::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.16); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
.sidebar::-webkit-scrollbar-track,
.sidebar-inner::-webkit-scrollbar-track { background: transparent; }
html.is-mobile-sidebar-locked,
body.is-mobile-sidebar-locked { overflow: hidden; }
body.is-mobile-sidebar-locked { position: fixed; width: 100%; }
body.is-resizing-sidebar { cursor: col-resize; user-select: none; }

.agreement-content {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #334155;
    line-height: 1.55;
    margin: 8px 0 16px;
    padding: 12px;
    white-space: pre-wrap;
}

.agreement-content-rtl,
.rtl-textarea,
.is-rtl-language {
    direction: rtl;
    text-align: right;
}

.rtl-textarea {
    line-height: 1.75;
}

.agreement-document-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    padding: 16px;
}

.agreement-document-draft {
    background: #fbfcfe;
}

.agreement-content-details > summary,
.agreement-draft-summary {
    cursor: pointer;
    font-weight: 700;
}

.agreement-content-details > summary {
    color: #1f4f7a;
    margin: 4px 0 8px;
}

.agreement-admin-list {
    display: grid;
    gap: 14px;
}

.agreement-family-list {
    display: grid;
    gap: 18px;
}

.agreement-family-card {
    background: #fff;
    border: 1px solid #d8e7f3;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    padding: 16px;
}

.agreement-family-header,
.agreement-language-row {
    align-items: start;
    display: grid;
    gap: 14px;
}

.agreement-family-header {
    grid-template-columns: minmax(0, 1fr) auto;
}

.agreement-language-list {
    display: grid;
    gap: 10px;
}

.agreement-language-row {
    border-top: 1px solid #e2e8f0;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.85fr) minmax(260px, auto);
    padding-top: 12px;
}

.agreement-language-main {
    min-width: 0;
}

.agreement-language-title {
    color: #1f2937;
    font-weight: 800;
    overflow-wrap: break-word;
}

.agreement-family-divider {
    background: #eef5fb;
    border: 1px solid #d8e7f3;
    border-radius: 8px;
    color: #244765;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 10px 12px;
}

.agreement-admin-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: grid;
    gap: 14px;
    padding: 16px;
}

.agreement-admin-main {
    align-items: start;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.agreement-code,
.agreement-source {
    overflow-wrap: break-word;
    word-break: normal;
}

.agreement-code {
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
}

.agreement-source {
    color: #64748b;
    font-size: 0.84rem;
}

.agreement-actions,
.agreement-meta-row,
.agreement-chip-wrap {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.agreement-actions {
    justify-content: flex-end;
}

.agreement-admin-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
}

.agreement-counts {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(64px, 1fr));
}

.compact-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.agreement-counts div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
}

.agreement-counts span {
    color: #64748b;
    display: block;
    font-size: 0.72rem;
}

.agreement-counts strong {
    color: #0f172a;
    display: block;
    font-size: 1rem;
}

@media (max-width: 1024px) {
    .sidebar-toggle { min-height: 38px; padding: 0.38rem 0.64rem; font-size: 0.8rem; }
    .app-shell:not(.admin-shell) .sidebar-toggle { display: inline-flex; }
    .topbar-actions { justify-content: flex-start; }
    .topbar-logout { display: none; }
    .list-page-intro,
    .record-card-header,
    .mapping-form { grid-template-columns: 1fr; }
    .list-page-intro { display: grid; }
    .filter-bar-comfort { grid-template-columns: 1fr; }
    .mapping-form .action-group { align-items: stretch; }
}
/* Website CMS editor states */
.field-warning {
    display: block;
    margin-top: 6px;
    color: #9a5a00;
    font-size: 0.82rem;
    font-weight: 700;
}
.social-editor-card {
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.social-editor-card:hover {
    transform: translateY(-2px);
    border-color: rgba(36, 91, 154, 0.36);
    box-shadow: 0 16px 34px rgba(20, 45, 82, 0.1);
}
:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid rgba(190, 139, 43, 0.7);
    outline-offset: 2px;
}
.translation-missing-row {
    background: #fff9eb;
}

.translation-missing-row input[name="labels"] {
    border-color: #d39a20;
    box-shadow: 0 0 0 2px rgba(211, 154, 32, 0.12);
}

.social-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.workflow-panel,
.related-links-panel {
    border-color: rgba(31, 79, 122, 0.16);
}

.workflow-panel-head {
    display: grid;
    gap: 8px;
}

.workflow-panel-head h2,
.workflow-next-panel strong,
.workflow-help strong {
    color: #173b5f;
}

.workflow-panel-head p,
.workflow-next-panel p,
.workflow-help p {
    color: #52677c;
    margin: 4px 0 0;
}

.workflow-step-strip {
    counter-reset: none;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

.workflow-step-strip li {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    min-height: 56px;
    padding: 10px 12px;
}

.workflow-step-strip li span {
    align-items: center;
    background: #e8eef5;
    border-radius: 999px;
    color: #1f4f7a;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 800;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.workflow-step-strip li strong {
    color: #24384d;
    font-size: 0.86rem;
    line-height: 1.25;
}

.workflow-step-strip li.is-current {
    background: #fff9ed;
    border-color: rgba(190, 139, 43, 0.45);
    box-shadow: inset 0 0 0 1px rgba(190, 139, 43, 0.08);
}

.workflow-step-strip li.is-current span {
    background: #be8b2b;
    color: #fff;
}

.workflow-step-strip li.is-done {
    background: #f2fbf7;
    border-color: rgba(21, 128, 61, 0.24);
}

.workflow-next-panel,
.workflow-help {
    border: 1px solid #d8e7f3;
    border-left: 4px solid #1f4f7a;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    margin-top: 12px;
    padding: 14px 16px;
}

.workflow-next-panel {
    align-items: start;
    background: #f7fbff;
    grid-template-columns: minmax(0, 1fr) auto;
}

.workflow-help {
    background: #fbfdff;
}

.workflow-help-warning {
    background: #fff9ed;
    border-color: rgba(190, 139, 43, 0.32);
    border-left-color: #be8b2b;
}

.workflow-help-danger {
    background: #fff5f5;
    border-color: rgba(185, 28, 28, 0.22);
    border-left-color: #b91c1c;
}

.workflow-link-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.workflow-action-groups {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 12px;
}

.workflow-action-group {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
}

.workflow-action-group.is-danger {
    background: #fff7f7;
    border-color: rgba(185, 28, 28, 0.2);
}

.workflow-action-group strong {
    color: #173b5f;
    display: block;
    margin-bottom: 4px;
}

@media (max-width: 760px) {
    .workflow-step-strip {
        grid-template-columns: 1fr;
    }

    .workflow-next-panel {
        grid-template-columns: 1fr;
    }

    .workflow-link-row {
        justify-content: flex-start;
    }
}

.hygiene-flag-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.hygiene-flag-badge {
    font-size: 0.72rem;
    white-space: nowrap;
}

.hygiene-summary-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.hygiene-summary-card {
    display: grid;
    gap: 6px;
    min-height: 112px;
}

.hygiene-summary-card span {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hygiene-summary-card strong {
    color: #173b5f;
    font-size: 1.8rem;
    line-height: 1;
}

.hygiene-summary-card small {
    color: #64748b;
    line-height: 1.35;
}

.hygiene-filter-bar {
    align-items: end;
}

.hygiene-review-section {
    display: grid;
    gap: 16px;
}

.hygiene-review-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.hygiene-review-card {
    background: #fff;
    border: 1px solid #dbe5ee;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    padding: 16px;
}

.hygiene-review-card-head {
    align-items: start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.hygiene-review-card-head h3 {
    font-size: 1rem;
    line-height: 1.25;
    margin: 0 0 4px;
}

.hygiene-review-card-head p {
    color: #64748b;
    font-size: 0.84rem;
    margin: 0;
}

.hygiene-reason-list {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hygiene-reason-list li {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: grid;
    gap: 6px;
    padding: 10px;
}

.hygiene-reason-list li > div {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hygiene-reason-list p {
    color: #334155;
    margin: 0;
}

.hygiene-reason-list small {
    color: #64748b;
    line-height: 1.35;
}

@media (max-width: 760px) {
    .hygiene-review-card-head {
        display: grid;
    }
}
