:root {
    /* ════════════════════════════════════════════════════════════════════════════════════ */
    /* AURRA DESIGN SYSTEM v2.0 - UNIVERSAL TOKENS                                         */
    /* ════════════════════════════════════════════════════════════════════════════════════ */

    /* ── BRAND COLOR PALETTE ── */
    --aurra-primary: #1f8a84;           /* Teal - Primary actions, links, active states */
    --aurra-primary-hover: #176f6a;    /* Teal dark - Hover states */
    --aurra-primary-light: #e0f2f0;    /* Teal light - Backgrounds, focus rings */

    /* ── SECONDARY COLORS ── */
    --aurra-blue: #448fc6;             /* Info, secondary actions */
    --aurra-blue-light: #eff6ff;       /* Blue light - Backgrounds */
    --aurra-green: #2f8f83;            /* Success, positive indicators */
    --aurra-green-light: #ecfdf5;      /* Green light - Backgrounds */
    --aurra-red: #e45d55;              /* Error, danger, alerts */
    --aurra-red-light: #fef2f2;        /* Red light - Backgrounds */
    --aurra-amber: #eda52b;            /* Warning, highlights */
    --aurra-amber-light: #fffbeb;      /* Amber light - Backgrounds */
    --aurra-violet: #765fc4;           /* Accent, special elements */
    --aurra-violet-light: #faf5ff;     /* Violet light - Backgrounds */

    /* ── NEUTRAL PALETTE (Light Mode) ── */
    --aurra-bg: #e4ebf1;               /* Page background */
    --aurra-bg-soft: #f3f7fa;          /* Soft background */
    --aurra-panel: #ffffff;            /* Card/panel background */
    --aurra-panel-soft: #f9fbfc;       /* Soft panel background */
    --aurra-ink: #17212b;              /* Primary text */
    --aurra-ink-soft: #273544;         /* Secondary text variants */
    --aurra-text: #475569;             /* Secondary text */
    --aurra-muted: #657483;            /* Tertiary text (labels, hints) */
    --aurra-muted-2: #84919f;          /* Additional muted variant */
    --aurra-line: #cbd7e1;             /* Borders, dividers */
    --aurra-line-soft: #e1e9ef;        /* Subtle borders, hairlines */
    --aurra-blue-border-light: #bfdbfe; /* Light blue borders */
    --aurra-primary-border-light: #a5e4de; /* Light teal borders */

    /* ── SIDEBAR COLORS (Dark Mode) ── */
    --aurra-sidebar-bg: #172436;       /* Sidebar gradient start */
    --aurra-sidebar-bg-end: #101827;   /* Sidebar gradient end */
    --aurra-sidebar-text: #e2e8f0;     /* Sidebar text */
    --aurra-side: #172436;             /* Legacy alias */
    --aurra-side-deep: #101827;        /* Legacy alias */

    /* ── COMMAND CENTER THEME ── */
    --aurra-command-bg: #132235;
    --aurra-command-accent: #8bd8cf;
    --aurra-command-panel: rgba(255, 255, 255, 0.08);
    --aurra-command-line: rgba(255, 255, 255, 0.12);

    /* ── TABLE COLORS ── */
    --aurra-table-head: #eef3f6;
    --aurra-table-row: #edf2f6;
    --aurra-table-hover: #edf8f6;

    /* ── FOCUS & INTERACTION ── */
    --aurra-focus-ring: 0 0 0 0.18rem rgba(31, 138, 132, 0.12);

    /* ── SHADOWS ── */
    --aurra-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
    --aurra-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --aurra-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.1);
    --aurra-shadow: 0 16px 34px rgba(23, 33, 43, 0.07);
    --aurra-shadow-soft: 0 8px 22px rgba(23, 33, 43, 0.05);
    --aurra-shadow-lg: 0 8px 22px rgba(15, 23, 42, 0.1);
    --aurra-shadow-xl: 0 16px 34px rgba(15, 23, 42, 0.1);

    /* ── BORDER RADIUS SCALE ── */
    --aurra-radius-sm: 4px;            /* Small elements (inputs, badges) */
    --aurra-radius: 8px;               /* Default (cards, panels) */
    --aurra-radius-md: 8px;            /* Medium (cards) */
    --aurra-radius-lg: 12px;           /* Large (large components) */
    --aurra-radius-full: 999px;        /* Full (pills, avatars, badges) */

    /* ── TYPOGRAPHY SCALE ── */
    --aurra-font-xs:   0.75rem;        /* 12px — labels, badges, eyebrows */
    --aurra-font-sm:   0.875rem;       /* 14px — table cells, secondary text */
    --aurra-font-base: 1rem;           /* 16px — body copy */
    --aurra-font-lg:   1.125rem;       /* 18px — card titles */
    --aurra-font-xl:   1.25rem;        /* 20px — page titles */
    --aurra-font-2xl:  1.5rem;         /* 24px — section headings */
    --aurra-font-3xl:  1.875rem;       /* 30px — hero numbers */
    --aurra-font-4xl:  2.25rem;        /* 36px — page hero title */

    /* Alternative naming for flexibility */
    --text-xs: var(--aurra-font-xs);
    --text-sm: var(--aurra-font-sm);
    --text-base: var(--aurra-font-base);
    --text-lg: var(--aurra-font-lg);
    --text-xl: var(--aurra-font-xl);
    --text-2xl: var(--aurra-font-2xl);
    --text-3xl: var(--aurra-font-3xl);
    --text-4xl: var(--aurra-font-4xl);

    /* ── FONT FAMILY & WEIGHTS ── */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
    --font-urdu: "Noto Nastaliq Urdu", serif;
    --font-normal: 400;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    --font-black: 900;

    /* ── LINE HEIGHT SCALE ── */
    --leading-tight: 1.1;
    --leading-normal: 1.5;
    --leading-loose: 1.65;

    /* ── SPACING SCALE ── */
    --aurra-space-1: 0.25rem;          /* 4px */
    --aurra-space-2: 0.5rem;           /* 8px */
    --aurra-space-3: 0.75rem;          /* 12px */
    --aurra-space-4: 1rem;             /* 16px */
    --aurra-space-6: 1.5rem;           /* 24px */
    --aurra-space-8: 2rem;             /* 32px */

    /* Alternative spacing naming */
    --space-xs: 0.25rem;               /* 4px */
    --space-sm: 0.5rem;                /* 8px */
    --space-md: 1rem;                  /* 16px */
    --space-lg: 1.5rem;                /* 24px */
    --space-xl: 2rem;                  /* 32px */
    --space-2xl: 3rem;                 /* 48px */

    /* ── LEGACY ALIASES (Bootstrap compatibility) ── */
    --app-bg: var(--aurra-bg);
    --panel: var(--aurra-panel);
    --ink: var(--aurra-ink);
    --muted: var(--aurra-muted);
    --line: var(--aurra-line);
    --primary: var(--aurra-primary);
    --primary-2: var(--aurra-primary-hover);
    --sidebar: var(--aurra-sidebar-bg);
    --sidebar-2: var(--aurra-sidebar-bg-end);
    --radius: var(--aurra-radius);
    --shadow-sm: var(--aurra-shadow-soft);
    --shadow-md: var(--aurra-shadow);

    /* ── BOOTSTRAP OVERRIDES ── */
    --bs-primary: #1f8a84;
    --bs-primary-rgb: 31, 138, 132;
    --bs-link-color: #1f8a84;
    --bs-link-color-rgb: 31, 138, 132;
    --bs-link-hover-color: #176f6a;
    --success: var(--aurra-green);
    --accent: var(--aurra-amber);
    --danger: var(--aurra-red);
    --warning: #b7791f;
}

/* ════════════════════════════════════════════════════════════════════════════════════ */
/* DARK MODE OVERRIDES                                                                  */
/* ════════════════════════════════════════════════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
    :root {
        /* Dark Mode Neutral Palette */
        --aurra-bg: #0f172a;            /* Dark page background */
        --aurra-bg-soft: #1a2332;       /* Dark soft background */
        --aurra-panel: #1a2332;         /* Dark card/panel background */
        --aurra-panel-soft: #232d3a;    /* Dark soft panel background */
        --aurra-ink: #f1f5f9;           /* Light text */
        --aurra-ink-soft: #e2e8f0;      /* Light secondary text */
        --aurra-text: #cbd5e1;          /* Light secondary text */
        --aurra-muted: #94a3b8;         /* Light tertiary text */
        --aurra-muted-2: #78829f;       /* Light muted variant */
        --aurra-line: #334155;          /* Dark borders */
        --aurra-line-soft: #1e293b;     /* Dark subtle borders */

        /* Dark Mode Shadows (darker, more subtle) */
        --aurra-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
        --aurra-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
        --aurra-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
        --aurra-shadow: 0 16px 34px rgba(0, 0, 0, 0.6);
        --aurra-shadow-soft: 0 8px 22px rgba(0, 0, 0, 0.5);
        --aurra-shadow-lg: 0 8px 22px rgba(0, 0, 0, 0.6);
        --aurra-shadow-xl: 0 16px 34px rgba(0, 0, 0, 0.7);
    }
}

/* Support for explicit dark mode attribute (data-theme="dark") */
[data-theme="dark"] {
    color-scheme: dark;
}

[data-theme="dark"] {
    --aurra-bg: #0f172a;
    --aurra-bg-soft: #1a2332;
    --aurra-panel: #1a2332;
    --aurra-panel-soft: #232d3a;
    --aurra-ink: #f1f5f9;
    --aurra-ink-soft: #e2e8f0;
    --aurra-text: #cbd5e1;
    --aurra-muted: #94a3b8;
    --aurra-muted-2: #78829f;
    --aurra-line: #334155;
    --aurra-line-soft: #1e293b;
    --aurra-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --aurra-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --aurra-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --aurra-shadow: 0 16px 34px rgba(0, 0, 0, 0.6);
    --aurra-shadow-soft: 0 8px 22px rgba(0, 0, 0, 0.5);
    --aurra-shadow-lg: 0 8px 22px rgba(0, 0, 0, 0.6);
    --aurra-shadow-xl: 0 16px 34px rgba(0, 0, 0, 0.7);
}

[data-map-frame] {
    pointer-events: none;
}

[data-map-shell].is-map-active [data-map-frame] {
    pointer-events: auto;
}

.parent-portal-shell {
    display: grid;
    gap: 1.25rem;
}

.parent-hero-card,
.parent-panel,
.parent-metric-card {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.parent-hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.88)), #0f172a;
    color: #ffffff;
}

.parent-hero-identity {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-width: 0;
}

.parent-avatar {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    color: #ffffff;
    font-size: 2rem;
    font-weight: var(--font-black);
    box-shadow: 0 18px 30px rgba(37, 99, 235, 0.25);
}

.parent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.parent-hero-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1;
    font-weight: var(--font-black);
    letter-spacing: 0;
}

.parent-hero-subtitle {
    margin: 0.55rem 0 0;
    color: rgba(226, 232, 240, 0.86);
    font-weight: var(--font-bold);
}

.parent-chip-row,
.parent-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.parent-chip-row {
    margin-top: 0.8rem;
}

.parent-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: var(--aurra-radius-full);
    background: rgba(248, 250, 252, 0.8);
    color: var(--aurra-text);
    font-size: 0.78rem;
    font-weight: var(--font-extrabold);
}

.parent-hero-card .parent-chip {
    background: rgba(255, 255, 255, 0.12);
    color: #dbeafe;
}

.parent-chip-success {
    border-color: rgba(34, 197, 94, 0.28);
    background: #dcfce7;
    color: #15803d;
}

.parent-chip-danger {
    border-color: rgba(244, 63, 94, 0.28);
    background: #ffe4e6;
    color: #be123c;
}

.parent-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-md);
}

.parent-metric-card {
    display: grid;
    gap: 0.45rem;
    padding: 1.1rem;
    color: #0f172a;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.parent-metric-card:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 22px 45px rgba(37, 99, 235, 0.13);
}

.parent-metric-label {
    color: var(--aurra-muted);
    font-size: 0.75rem;
    font-weight: var(--font-black);
    text-transform: uppercase;
}

.parent-metric-card strong {
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    line-height: 1;
    font-weight: var(--font-black);
}

.parent-metric-card small {
    color: var(--aurra-muted);
    font-weight: var(--font-bold);
}

.parent-metric-card.is-green {
    background: linear-gradient(135deg, #ffffff, #ecfdf5);
}

.parent-metric-card.is-blue {
    background: linear-gradient(135deg, #ffffff, #eff6ff);
}

.parent-metric-card.is-red {
    background: linear-gradient(135deg, #ffffff, #fff1f2);
}

.parent-metric-card.is-amber {
    background: linear-gradient(135deg, #ffffff, #fffbeb);
}

.parent-section-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: var(--space-md);
}

.parent-panel {
    padding: 1.2rem;
    scroll-margin-top: 110px;
}

.parent-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: 1rem;
}

.parent-panel-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: var(--font-black);
}

.parent-profile-list,
.parent-snapshot-list {
    display: grid;
    gap: 0.75rem;
}

.parent-profile-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.parent-profile-list div,
.parent-snapshot-list div {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    background: var(--aurra-panel-soft);
    padding: 0.85rem;
}

.parent-profile-list span,
.parent-snapshot-list span {
    display: block;
    color: var(--aurra-muted);
    font-size: 0.75rem;
    font-weight: var(--font-black);
    text-transform: uppercase;
}

.parent-profile-list strong,
.parent-snapshot-list strong {
    display: block;
    color: #0f172a;
    font-weight: var(--font-black);
}

.parent-snapshot-list small {
    color: var(--aurra-muted);
    font-weight: var(--font-bold);
}

.parent-table-panel {
    padding-bottom: 0.4rem;
}

.parent-compact-table {
    margin-bottom: 0;
}

.parent-compact-table thead th {
    border-bottom: 0;
    background: var(--aurra-panel-soft);
    color: var(--aurra-text);
    font-size: 0.76rem;
    font-weight: var(--font-black);
    text-transform: uppercase;
}

.parent-compact-table tbody td {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    border-color: rgba(148, 163, 184, 0.18);
}

.parent-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: var(--aurra-radius-full);
    background: #e2e8f0;
    color: #334155;
    font-size: 0.76rem;
    font-weight: var(--font-black);
}

.parent-status-pill::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: var(--aurra-radius-full);
    background: currentColor;
}

.parent-status-pill.status-present,
.parent-status-pill.status-paid {
    background: #dcfce7;
    color: #15803d;
}

.parent-status-pill.status-late {
    background: #e0f2fe;
    color: #0369a1;
}

.parent-status-pill.status-half_day {
    background: #dbeafe;
    color: #1d4ed8;
}

.parent-status-pill.status-absent,
.parent-status-pill.status-unpaid {
    background: #ffe4e6;
    color: #be123c;
}

.parent-status-pill.status-leave,
.parent-status-pill.status-partial {
    background: #fef3c7;
    color: #b45309;
}

@media (max-width: 1199.98px) {
    .parent-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .parent-section-grid {
        grid-template-columns: 1fr;
    }
}

.academic-setup-hero {
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #14515a 100%);
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 1.25rem;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
    color: #ffffff;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    padding: 1.4rem;
}

.academic-setup-hero .page-eyebrow,
.academic-setup-hero p {
    color: rgba(255, 255, 255, 0.76);
}

.academic-setup-hero h2 {
    font-size: 1.45rem;
    font-weight: var(--font-black);
    margin: 0 0 0.35rem;
}

.academic-setup-hero p {
    margin: 0;
    max-width: 52rem;
}

.academic-setup-stats {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(3, minmax(5.5rem, 1fr));
}

.academic-setup-stats span {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.9rem;
    color: rgba(255, 255, 255, 0.78);
    padding: 0.85rem;
    text-align: center;
}

.academic-setup-stats strong {
    color: #ffffff;
    display: block;
    font-size: 1.35rem;
    line-height: 1;
}

.academic-level-grid {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.academic-level-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #dbeafe;
    border-radius: 1rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    padding: var(--space-md);
}

.academic-level-card h2 {
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: var(--font-black);
    margin: 0;
}

.academic-level-badge {
    background: #dff7f4;
    border: 1px solid #b7ebe4;
    border-radius: var(--aurra-radius-full);
    color: #0f766e;
    font-size: 0.75rem;
    font-weight: var(--font-black);
    padding: 0.35rem 0.6rem;
    white-space: nowrap;
}

.academic-level-list {
    display: grid;
    gap: 0.7rem;
    margin: 1rem 0 0;
}

.academic-level-list div {
    border-top: 1px solid #e2e8f0;
    padding-top: 0.7rem;
}

.academic-level-list dt {
    color: var(--aurra-muted);
    font-size: 0.72rem;
    font-weight: var(--font-black);
    text-transform: uppercase;
}

.academic-level-list dd {
    color: #0f172a;
    font-weight: var(--font-bold);
    margin: 0.1rem 0 0;
}

.academic-config-grid {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.academic-config-panel {
    background: var(--aurra-panel-soft);
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: var(--space-md);
}

.academic-config-panel h3 {
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: var(--font-black);
    margin: 0 0 0.8rem;
}

.academic-check-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.academic-check {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: var(--aurra-radius-full);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: var(--font-extrabold);
    gap: 0.4rem;
    padding: 0.45rem 0.7rem;
}

.academic-check input {
    accent-color: #0f766e;
}

.admission-academic-preview,
.exam-academic-track {
    background: var(--aurra-panel-soft);
    border: 1px solid #dbeafe;
    border-radius: 1rem;
    padding: 0.9rem;
}

.admission-academic-preview {
    align-items: center;
    display: flex;
    gap: var(--space-md);
    justify-content: space-between;
}

.admission-academic-preview strong,
.exam-academic-track strong {
    color: #0f172a;
    display: block;
    font-weight: var(--font-black);
}

.admission-academic-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}

.admission-academic-chip-row span,
.exam-academic-track div {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--aurra-radius-full);
    color: #334155;
    font-size: 0.78rem;
    font-weight: var(--font-extrabold);
    padding: 0.32rem 0.6rem;
}

.exam-academic-track {
    margin-top: 0.65rem;
}

.exam-academic-track > span {
    color: var(--aurra-muted);
    display: block;
    font-size: 0.72rem;
    font-weight: var(--font-black);
    text-transform: uppercase;
}

.exam-academic-track div {
    display: inline-flex;
    margin-top: 0.45rem;
}

.academic-subject-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    max-width: 44rem;
}

.academic-subject-chips span {
    background: var(--aurra-panel-soft);
    border: 1px solid #e2e8f0;
    border-radius: var(--aurra-radius-full);
    color: #334155;
    font-size: 0.78rem;
    font-weight: var(--font-extrabold);
    padding: 0.28rem 0.55rem;
}

@media (max-width: 767.98px) {
    .academic-setup-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .academic-setup-stats {
        grid-template-columns: 1fr;
    }

    .admission-academic-preview {
        align-items: flex-start;
        flex-direction: column;
    }

    .admission-academic-chip-row {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .parent-hero-card {
        align-items: flex-start;
        flex-direction: column;
        border-radius: 22px;
        padding: 1.1rem;
    }

    .parent-hero-identity {
        align-items: flex-start;
    }

    .parent-avatar {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
        border-radius: 18px;
        font-size: 1.4rem;
    }

    .parent-hero-actions,
    .parent-hero-actions .btn {
        width: 100%;
    }

    .parent-metric-grid,
    .parent-profile-list {
        grid-template-columns: 1fr;
    }
}

.bg-purple {
    background-color: #6f42c1 !important;
}

.bg-indigo {
    background-color: #4f46e5 !important;
}

.bg-orange {
    background-color: #f97316 !important;
}

.bg-teal {
    background-color: #0f766e !important;
}

.date-sheet-class-col {
    min-width: 90px;
}

.date-sheet-input {
    min-width: 132px;
}

.date-sheet-subtabs {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--aurra-radius-md);
    box-shadow: var(--shadow-sm);
    gap: var(--space-sm);
    padding: 0.55rem;
}

.date-sheet-subtabs .nav-item {
    border-radius: 0;
    color: inherit;
    font-weight: inherit;
    padding: 0;
}

.date-sheet-subtabs .nav-link {
    border-radius: var(--aurra-radius-md);
    color: var(--ink);
    font-weight: var(--font-black);
    padding: 0.75rem 1rem;
}

.date-sheet-subtabs .nav-link.active {
    background: var(--primary);
    color: #ffffff;
}

.date-sheet-actions {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}

.date-sheet-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: flex-end;
}

.date-sheet-actions form,
.date-sheet-toolbar form {
    display: inline-flex;
    margin: 0;
}

.date-sheet-action-btn {
    align-items: center;
    border-radius: var(--aurra-radius-full);
    display: inline-flex;
    font-weight: var(--font-extrabold);
    justify-content: center;
    line-height: 1.1;
    min-height: 34px;
    padding: 0.45rem 0.8rem;
    white-space: nowrap;
}

.date-sheet-pdf-btn {
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.14);
}

.date-sheet-class-toggle {
    cursor: pointer;
}

.date-sheet-class-toggle:hover {
    background: #f4f9ff;
}

.date-sheet-class-icon {
    align-items: center;
    background: #e8f2ff;
    border: 1px solid var(--aurra-blue-border-light);
    border-radius: var(--aurra-radius-full);
    color: var(--primary);
    display: inline-flex;
    font-size: 0.85rem;
    font-weight: var(--font-extrabold);
    height: 1.35rem;
    justify-content: center;
    margin-right: 0.45rem;
    width: 1.35rem;
}

.date-sheet-detail-row > td {
    border-top: 0;
}

.btn,
.form-control,
.form-select,
.alert,
.panel-card,
.metric-card {
    border-radius: var(--aurra-radius-md);
}

.btn {
    align-items: center;
    display: inline-flex;
    font-weight: var(--font-extrabold);
    justify-content: center;
    min-height: 40px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border: 0;
    box-shadow: 0 10px 22px rgba(31, 138, 132, 0.16);
}

.btn-outline-primary {
    border-color: rgba(31, 138, 132, 0.35);
    color: var(--primary);
}

.panel-card,
.metric-card {
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line);
    box-shadow: var(--shadow-md);
}

.table-card .table {
    margin-bottom: 0;
}

.table thead th {
    background: #f6f9fa;
    color: var(--aurra-muted);
    font-size: 0.75rem;
    letter-spacing: 0;
    text-transform: uppercase;
}

.partial-pay-input {
    min-width: 86px;
    width: 86px;
}

.form-control,
.form-select {
    border-color: var(--aurra-line);
    color: var(--ink);
    font-weight: 650;
    min-height: 42px;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(31, 138, 132, 0.58);
    box-shadow: 0 0 0 0.2rem rgba(31, 138, 132, 0.12);
}

.form-label {
    color: var(--aurra-ink);
    font-size: 0.84rem;
    font-weight: 850;
    margin-bottom: 0.35rem;
}

.icon-button {
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: var(--aurra-radius-md);
    min-height: 42px;
    padding: 0;
    width: 42px;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
    background: var(--ink);
    border-radius: var(--aurra-radius-full);
    display: block;
    height: 2px;
    width: 18px;
}

.menu-bars {
    position: relative;
}

.menu-bars::before,
.menu-bars::after {
    content: "";
    left: 0;
    position: absolute;
}

.menu-bars::before {
    top: -6px;
}

.menu-bars::after {
    top: 6px;
}

.btn:focus-visible,
.nav-item:focus-visible,
.topbar-quick-link:focus-visible,
.school-switcher:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(20, 84, 212, 0.18);
    outline: 0;
}

* {
    box-sizing: border-box;
}

body {
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    text-decoration: none;
}

.app-body {
    background: linear-gradient(180deg, #f8fbff 0, var(--app-bg) 24rem);
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
}

.app-layout {
    display: grid;
    grid-template-columns: 256px minmax(0, 1fr);
    height: 100vh;
    min-height: 0;
    overflow: hidden;
}

.sidebar {
    background: #ffffff;
    border-right: 1px solid var(--line);
    color: var(--ink);
    flex-direction: column;
    gap: 1.25rem;
    height: 100vh;
    min-height: 0;
    overflow-y: auto;
    padding: var(--space-md);
    overscroll-behavior: contain;
}

.brand-block {
    align-items: center;
    border-bottom: 1px solid var(--aurra-line);
    display: flex;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-sm) var(--space-md);
}

.brand-mark {
    align-items: center;
    background: linear-gradient(135deg, #f59e0b, #14b8a6);
    border-radius: var(--aurra-radius-md);
    display: inline-flex;
    font-weight: var(--font-black);
    height: 44px;
    justify-content: center;
    width: 44px;
    flex-shrink: 0;
}

.brand-logo {
    border-radius: var(--aurra-radius-full);
    flex: 0 0 44px;
    overflow: hidden;
}

.brand-logo img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.brand-title {
    display: -webkit-box;
    font-size: 0.98rem;
    font-weight: var(--font-extrabold);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.1;
    max-width: 185px;
    overflow: hidden;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 0.78rem;
}

.sidebar-nav {
    display: grid;
    gap: 0.25rem;
}

.sidebar-section-label {
    color: var(--aurra-muted);
    font-size: 0.74rem;
    font-weight: var(--font-extrabold);
    padding: 0.4rem 0.85rem 0.2rem;
    text-transform: uppercase;
}

/* ── Collapsible sidebar groups ── */
.sidebar-group {
    display: flex;
    flex-direction: column;
}

.sidebar-group-toggle {
    align-items: center;
    background: none;
    border: none;
    border-radius: var(--aurra-radius-md);
    color: var(--aurra-text);
    cursor: pointer;
    display: flex;
    font-size: inherit;
    font-weight: var(--font-bold);
    gap: 0;
    min-height: 40px;
    padding: 0.55rem 0.85rem;
    text-align: left;
    transition: background-color 160ms ease, color 160ms ease;
    width: 100%;
}

.sidebar-group-toggle:hover,
.sidebar-group-toggle.active {
    background: var(--aurra-blue-light);
    color: var(--primary);
}

.sidebar-group-toggle .nav-icon {
    flex-shrink: 0;
}

.sidebar-group-toggle span:not(.nav-icon):not(.sidebar-group-arrow) {
    flex: 1;
}

.sidebar-group-arrow {
    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
    flex-shrink: 0;
    height: 7px;
    margin-left: auto;
    opacity: 0.5;
    transform: rotate(135deg);
    transition: transform 200ms ease;
    width: 7px;
}

.sidebar-group-toggle[aria-expanded="true"] .sidebar-group-arrow {
    transform: rotate(-45deg);
}

.sidebar-group-body {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding-bottom: 4px;
    padding-left: 0.5rem;
}

.nav-item-child {
    border-radius: var(--aurra-radius-md);
    color: var(--aurra-muted);
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    gap: 0.6rem;
    min-height: 34px;
    padding: 0.4rem 0.75rem;
    transition: background-color 160ms ease, color 160ms ease;
}

.nav-item-child:hover,
.nav-item-child.active {
    background: var(--aurra-blue-light);
    color: var(--primary);
}

.nav-item-child.active {
    box-shadow: inset 3px 0 0 var(--primary);
}

.nav-child-dot {
    background: currentColor;
    border-radius: 50%;
    flex-shrink: 0;
    height: 5px;
    opacity: 0.35;
    width: 5px;
}

.nav-item-child.active .nav-child-dot {
    opacity: 1;
}

.sidebar-divider {
    border-top: 1px solid #f1f5f9;
    margin: 0.35rem 0.85rem;
}

.nav-item {
    align-items: center;
    border-left: 3px solid transparent;
    border-radius: var(--aurra-radius-md);
    color: var(--aurra-text);
    display: flex;
    font-weight: var(--font-bold);
    min-height: 42px;
    padding: 0.68rem 0.85rem;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.nav-item:hover {
    background: var(--aurra-blue-light);
    color: var(--primary);
}

.nav-item.active {
    background: var(--aurra-blue-light);
    border-left-color: var(--primary);
    color: var(--primary);
    font-weight: var(--font-extrabold);
}

.sidebar-footer {
    background: var(--aurra-panel-soft);
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
    margin-top: auto;
    padding: var(--space-md);
}

.role-chip {
    background: var(--aurra-blue-light);
    border: 1px solid var(--aurra-blue-border-light);
    border-radius: var(--aurra-radius-full);
    color: var(--aurra-primary);
    display: inline-flex;
    font-size: var(--text-xs);
    font-weight: var(--font-extrabold);
    margin-top: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    align-items: center;
}

.app-main {
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 0;
    min-width: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.topbar {
    align-items: center;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--aurra-line);
    display: flex;
    gap: var(--space-md);
    min-height: 64px;
    padding: 0 var(--space-lg);
    position: sticky;
    top: 0;
    z-index: 20;
    transition: all 160ms ease;
}

.topbar-title {
    font-size: 0.95rem;
    font-weight: var(--font-black);
}

.topbar-subtitle {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.topbar-emis {
    color: var(--aurra-muted);
    font-size: 0.76rem;
    font-weight: var(--font-black);
    letter-spacing: 0;
    margin-top: 0.12rem;
    text-transform: uppercase;
}

.school-avatar {
    align-items: center;
    background: linear-gradient(135deg, #22c55e, #38bdf8);
    border-radius: var(--aurra-radius-full);
    color: #ffffff;
    display: inline-flex;
    flex: 0 0 24px;
    font-size: 0.7rem;
    font-weight: var(--font-black);
    height: 24px;
    justify-content: center;
    overflow: hidden;
    width: 24px;
}

.user-menu-btn {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--aurra-radius-full);
    display: inline-flex;
    gap: 0.4rem;
    min-height: 36px;
    padding: 0.25rem 0.3rem 0.25rem 0.25rem;
}

.user-menu-copy {
    justify-items: start;
    line-height: 1.1;
}

.user-menu-copy strong {
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: var(--font-extrabold);
}

.user-menu-copy small {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: var(--font-bold);
}

.user-menu-dropdown {
    border: 1px solid var(--line);
    border-radius: var(--aurra-radius-md);
    min-width: 220px;
    padding: 0.45rem;
}

.dropdown-item-form {
    margin: 0;
}

.dropdown-item-form .dropdown-item {
    background: transparent;
    border: 0;
    text-align: left;
    width: 100%;
}

.school-avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.school-dropdown-menu {
    border: 1px solid var(--line);
    border-radius: var(--aurra-radius-md);
    min-width: 270px;
    padding: 0.55rem;
}

.school-dropdown-menu .dropdown-header {
    white-space: normal;
}

.school-dropdown-menu .dropdown-item {
    border-radius: var(--aurra-radius-md);
    font-weight: var(--font-extrabold);
    padding: 0.65rem 0.75rem;
}

.logout-topbar-btn {
    min-height: 42px;
}

.skip-link {
    background: #0f172a;
    border-radius: 0 0 var(--radius) 0;
    color: #ffffff;
    font-weight: var(--font-black);
    left: 0;
    padding: 0.75rem 1rem;
    position: fixed;
    text-decoration: none;
    top: 0;
    transform: translateY(-120%);
    transition: transform 0.16s ease;
    z-index: 2000;
}

.skip-link:focus {
    color: #ffffff;
    transform: translateY(0);
}

.topbar-quick-actions {
    align-items: center;
    background: var(--aurra-panel-soft);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: var(--aurra-radius-md);
    gap: 0.35rem;
    min-height: 46px;
    padding: 0.25rem;
}

.topbar-quick-label {
    color: var(--aurra-muted);
    font-size: 0.68rem;
    font-weight: var(--font-black);
    padding: 0 0.45rem;
    text-transform: uppercase;
}

.topbar-quick-link {
    align-items: center;
    border-radius: var(--aurra-radius-md);
    display: inline-flex;
    font-weight: var(--font-black);
    min-height: 36px;
    padding-inline: 0.8rem;
}

.topbar-quick-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.completion-alert {
    border-color: #fde68a;
    border-radius: var(--aurra-radius-md);
    box-shadow: var(--shadow-sm);
    margin: 0 !important;
    max-width: 100% !important;
    padding: 0.875rem 1rem !important;
    width: 100%;
}

.profile-progress-chip {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: var(--aurra-radius-full);
    color: #0f172a;
    display: inline-flex;
    gap: 0.65rem;
    min-height: 46px;
    padding: 0.32rem 0.85rem 0.32rem 0.38rem;
    text-decoration: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.profile-progress-chip:hover,
.profile-progress-chip:focus-visible {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.12);
    color: #0f172a;
    transform: translateY(-1px);
}

.profile-progress-ring {
    --profile-progress: 0;
    align-items: center;
    background:
        radial-gradient(circle at center, #ffffff 57%, transparent 58%),
        conic-gradient(#16a34a calc(var(--profile-progress) * 1%), #e2e8f0 0);
    border-radius: var(--aurra-radius-full);
    display: inline-flex;
    flex: 0 0 38px;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.profile-progress-ring span {
    color: #0f172a;
    font-size: 0.68rem;
    font-weight: var(--font-black);
}

.profile-progress-copy {
    display: grid;
    line-height: 1.08;
}

.profile-progress-copy strong {
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: var(--font-black);
}

.profile-progress-copy small {
    color: var(--aurra-muted);
    font-size: 0.7rem;
    font-weight: var(--font-bold);
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.content-shell {
    margin: 0;
    max-width: none;
    padding: clamp(var(--space-lg), 3vw, var(--space-xl)) clamp(var(--space-lg), 3vw, var(--space-xl));
    width: 100%;
}

.page-header {
    align-items: flex-end;
    background: transparent;
    border: 0;
    box-shadow: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    padding: var(--space-xs) 0;
}

.page-eyebrow {
    color: var(--aurra-primary-hover);
    font-size: var(--text-xs);
    font-weight: var(--font-black);
    letter-spacing: 0.3px;
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
}

.page-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-black);
    margin: 0;
    line-height: var(--leading-tight);
}

.page-subtitle {
    color: var(--aurra-muted);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    margin: var(--space-sm) 0 0;
    line-height: var(--leading-normal);
}

.panel-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--aurra-radius-md);
    box-shadow: var(--shadow-md);
}

.metric-card-saas {
    min-height: 140px;
}

.metric-card {
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line-soft);
    border-left: 4px solid var(--aurra-primary);
    border-radius: var(--aurra-radius-md);
    box-shadow: var(--aurra-shadow-sm);
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr;
    gap: var(--space-sm) var(--space-md);
    min-height: 110px;
    overflow: hidden;
    padding: var(--space-md);
    position: relative;
    transition: all 160ms ease;
}

.metric-card:hover {
    box-shadow: var(--aurra-shadow-md);
    transform: translateY(-2px);
}

/* Colored border variants */
.metric-card.metric-card-teal {
    border-left-color: var(--aurra-primary);
}

.metric-card.metric-card-blue {
    border-left-color: var(--aurra-blue);
}

.metric-card.metric-card-green {
    border-left-color: var(--aurra-green);
}

.metric-card.metric-card-red {
    border-left-color: var(--aurra-red);
}

.metric-card.metric-card-amber {
    border-left-color: #eda52b;
}

.metric-card::after {
    display: none;
}

.metric-label {
    color: var(--aurra-muted);
    font-size: var(--text-xs);
    font-weight: var(--font-black);
    letter-spacing: 0.3px;
    line-height: var(--leading-tight);
    text-transform: uppercase;
    grid-column: 2;
    grid-row: 1;
}

.metric-value {
    color: var(--aurra-ink);
    display: block;
    font-size: var(--text-2xl);
    font-weight: var(--font-black);
    line-height: var(--leading-tight);
    grid-column: 2;
    grid-row: 2;
    align-self: end;
}

.metric-detail {
    color: var(--aurra-muted);
    display: block;
    font-size: var(--text-xs);
    font-weight: var(--font-normal);
    grid-column: 2;
    margin-top: 0;
    line-height: var(--leading-tight);
}

/* Icon styling */
.metric-icon {
    position: absolute;
    right: 0.6rem;
    top: 0.6rem;
    opacity: 0.1;
    width: 2rem;
    height: 2rem;
}

/* Sparkline/Canvas - MAIN FOCUS */
.metric-card canvas,
.sparkline {
    grid-column: 1;
    grid-row: 1 / 3;
    height: 100%;
    width: 100%;
    margin: -0.5rem -0.5rem -0.5rem 0;
    opacity: 0.9;
}

.summary-export-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: flex-end;
}

.summary-export-actions form {
    display: inline-flex;
    margin: 0;
}

.summary-action-btn {
    align-items: center;
    border-radius: var(--aurra-radius-md);
    display: inline-flex;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.55rem 0.95rem;
    white-space: nowrap;
}

.summary-action-icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--aurra-radius-full);
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: var(--font-black);
    height: 24px;
    justify-content: center;
    min-width: 24px;
    padding: 0 0.35rem;
}

.btn-outline-primary .summary-action-icon {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.2);
}

.report-card {
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line);
    border-radius: var(--aurra-radius-md);
    box-shadow: var(--aurra-shadow-sm);
    display: flex;
    flex-direction: column;
    min-height: 250px;
    padding: var(--space-lg);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.report-card:hover {
    box-shadow: var(--aurra-shadow-lg);
    transform: translateY(-2px);
}

.quick-actions-grid {
    display: grid;
    gap: var(--space-lg);
}

.quick-action-card {
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line);
    border-radius: var(--aurra-radius-md);
    box-shadow: var(--aurra-shadow-sm);
    color: var(--aurra-ink);
    display: grid;
    gap: var(--space-sm);
    padding: var(--space-md);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.quick-action-card:hover {
    border-color: var(--aurra-primary);
    box-shadow: var(--aurra-shadow-md);
    transform: translateY(-1px);
}

.quick-action-label {
    color: var(--aurra-primary);
    font-size: var(--text-xs);
    font-weight: var(--font-extrabold);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.quick-action-card strong {
    color: var(--ink);
    font-size: 0.96rem;
    font-weight: var(--font-extrabold);
}

.dashboard-mini-stats,
.dashboard-health-grid {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-mini-stat,
.dashboard-health-card {
    background: var(--aurra-panel-soft);
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
    padding: var(--space-md);
}

.dashboard-mini-stat span,
.dashboard-health-card span {
    color: var(--aurra-muted);
    display: block;
    font-size: var(--text-xs);
    font-weight: var(--font-extrabold);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dashboard-mini-stat strong,
.dashboard-health-card strong {
    color: var(--aurra-ink);
    display: block;
    font-size: var(--text-lg);
    font-weight: var(--font-black);
    margin-top: var(--space-sm);
    line-height: var(--leading-tight);
}

.report-icon {
    align-items: center;
    border-radius: var(--aurra-radius-md);
    display: inline-flex;
    font-size: 1.55rem;
    height: 52px;
    justify-content: center;
    width: 52px;
}

.report-icon-primary {
    background: #dbeafe;
}

.report-icon-success {
    background: #dcfce7;
}

.report-icon-danger {
    background: #ffe4e6;
}

.report-icon-warning {
    background: #fef3c7;
}

.report-icon-info {
    background: #cffafe;
}

.report-icon-secondary {
    background: #eef2ff;
}

.chart-box {
    min-height: 320px;
    position: relative;
}

.attendance-donut {
    align-items: center;
    background:
        radial-gradient(circle closest-side, #ffffff 68%, transparent 69%),
        conic-gradient(var(--success) calc(var(--value) * 1%), #e7eef8 0);
    border-radius: var(--aurra-radius-full);
    display: inline-flex;
    flex: 0 0 auto;
    height: 138px;
    justify-content: center;
    width: 138px;
}

.attendance-donut span {
    color: var(--ink);
    font-size: 1.45rem;
    font-weight: var(--font-black);
}

.chart-bars {
    display: grid;
    gap: var(--space-md);
}

.chart-row .progress {
    background: #edf3fb;
    border-radius: var(--aurra-radius-full);
    height: 10px;
}

.chart-row .progress-bar {
    border-radius: var(--aurra-radius-full);
}

.activity-list {
    display: grid;
    gap: 0.9rem;
}

.activity-item {
    align-items: flex-start;
    display: grid;
    gap: 0.8rem;
    grid-template-columns: 12px minmax(0, 1fr);
    position: relative;
}

.activity-item:not(:last-child)::before {
    background: #d9e7f5;
    content: "";
    height: calc(100% + 0.9rem);
    left: 5px;
    position: absolute;
    top: 12px;
    width: 2px;
}

.activity-dot {
    background: var(--primary);
    border: 3px solid #dbeafe;
    border-radius: var(--aurra-radius-full);
    height: 12px;
    margin-top: 0.35rem;
    position: relative;
    width: 12px;
    z-index: 1;
}

.activity-title {
    color: var(--ink);
    font-weight: var(--font-black);
    margin-top: 0.35rem;
}

.activity-detail,
.activity-time {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.table-card {
    overflow: hidden;
}

.app-tabs {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--aurra-radius-md);
    box-shadow: var(--shadow-sm);
    gap: 0.4rem;
    padding: 0.55rem;
}

.app-tabs .nav-item {
    border-radius: 0;
    color: inherit;
    font-weight: inherit;
    padding: 0;
}

.app-tabs .nav-link {
    border: 0;
    border-radius: var(--aurra-radius-md);
    color: var(--ink);
    font-weight: var(--font-black);
    padding: 0.72rem 1rem;
}

.app-tabs .nav-link.active {
    background: var(--primary);
    color: #ffffff;
}

.student-stats-bar {
    display: block;
    padding: var(--space-md);
}

.student-stat-card {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 1.4rem;
    display: flex;
    justify-content: space-between;
    min-height: 118px;
    padding: 1.25rem;
}

.student-stat-card span {
    display: block;
    font-size: 0.76rem;
    font-weight: var(--font-black);
    letter-spacing: 0;
    text-transform: uppercase;
}

.student-stat-card strong {
    display: block;
    font-size: 2.25rem;
    font-weight: var(--font-black);
    line-height: 1;
    margin-top: 0.35rem;
}

.student-stat-card small {
    color: rgba(15, 23, 42, 0.56);
    display: block;
    font-size: 0.82rem;
    font-weight: 750;
    margin-top: 0.45rem;
}

.student-stat-card svg {
    height: 42px;
    opacity: 0.78;
    width: 42px;
}

.student-stat-card.stat-total {
    background: var(--aurra-blue-light);
    border-color: var(--aurra-blue-border-light);
    color: #1d4ed8;
}

.student-stat-card.stat-boys {
    background: #ecfeff;
    border-color: #a5f3fc;
    color: #0f766e;
}

.student-stat-card.stat-girls {
    background: #fdf2f8;
    border-color: #fbcfe8;
    color: #be185d;
}

.student-stat-card.stat-active {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #15803d;
}

.student-stat-card.stat-withdrawn {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}

.table-card .table {
    margin: 0;
}

.premium-student-table {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.premium-student-table thead th {
    background: #0f172a;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0;
    padding-bottom: 0.95rem;
    padding-top: 0.95rem;
    text-transform: uppercase;
}

.premium-student-table tbody tr:nth-child(even) td {
    background: var(--aurra-panel-soft);
}

.premium-student-table tbody td {
    border-top: 1px solid rgba(226, 232, 240, 0.7);
    padding-bottom: 0.95rem;
    padding-top: 0.95rem;
}

.premium-sort-link {
    color: #ffffff;
    text-decoration: none;
}

.premium-sort-link:hover {
    color: #dbeafe;
}

.student-name-cell {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    min-width: 220px;
}

.student-name-link {
    color: #0f172a;
    font-weight: 850;
    text-decoration: none;
}

.student-name-link:hover {
    color: var(--primary);
}

.student-thumbnail {
    border: 2px solid #dbe6f3;
    border-radius: var(--aurra-radius-full);
    display: inline-flex;
    height: 40px;
    object-fit: cover;
    overflow: hidden;
    vertical-align: middle;
    width: 40px;
}

.status-pill {
    border-radius: var(--aurra-radius-full);
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 850;
    line-height: 1;
    padding: 0.48rem 0.72rem;
    white-space: nowrap;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-muted {
    background: #e5e7eb;
    color: var(--aurra-text);
}

.status-warning {
    background: #fef3c7;
    color: #92400e;
}

.status-danger {
    background: #ffe4e6;
    color: #be123c;
}

.document-status {
    align-items: center;
    border-radius: var(--aurra-radius-full);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: var(--font-black);
    height: 1.55rem;
    justify-content: center;
    width: 1.55rem;
}

.document-status-ok {
    background: #dcfce7;
    color: #15803d;
}

.document-status-missing {
    background: #fee2e2;
    color: #b91c1c;
}

.student-kebab-btn {
    align-items: center;
    background: var(--aurra-panel-soft);
    border: 1px solid #dbeafe;
    border-radius: var(--aurra-radius-full);
    display: inline-flex;
    gap: 0.18rem;
    height: 2rem;
    justify-content: center;
    transition: box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
    width: 2.35rem;
}

.student-kebab-btn span {
    background: #2563eb;
    border-radius: var(--aurra-radius-full);
    display: block;
    height: 0.23rem;
    width: 0.23rem;
}

.student-kebab-btn:hover {
    background: var(--aurra-blue-light);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.16);
    transform: translateY(-1px);
}

.student-action-btn {
    align-items: center;
    border: 1px solid transparent;
    border-radius: var(--aurra-radius-full);
    display: inline-flex;
    height: 34px;
    justify-content: center;
    padding: 0;
    transition: opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease;
    width: 34px;
}

.student-action-btn svg {
    height: 17px;
    width: 17px;
}

.student-action-btn:hover {
    opacity: 0.92;
    transform: scale(1.08);
}

.action-view {
    background: var(--aurra-blue-light);
    color: #1d4ed8;
}

.action-edit {
    background: var(--aurra-panel-soft);
    border-color: #cbd5e1;
    color: #334155;
}

.action-delete {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}

.action-whatsapp {
    background: #25D366;
    box-shadow: 0 8px 18px rgba(37, 211, 102, 0.22);
    color: #ffffff;
}

.student-thumbnail-placeholder {
    align-items: center;
    background: var(--aurra-blue-light);
    color: #2563eb;
    justify-content: center;
}

.student-thumbnail-placeholder svg {
    height: 22px;
    width: 22px;
}

.teacher-initial-avatar {
    align-items: center;
    border-color: rgba(255, 255, 255, 0.85);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: var(--font-black);
    justify-content: center;
}

.teacher-filter-badge {
    color: #173153;
    font-size: 0.78rem;
    padding: 0.45rem 0.65rem;
}

.teacher-table-text {
    max-width: 220px;
    overflow-wrap: anywhere;
    white-space: normal;
}

.staff-register-table {
    min-width: 1320px;
}

.staff-register-table th,
.staff-register-table td {
    font-size: 0.82rem;
    white-space: normal;
}

.staff-strength-input {
    max-width: 120px;
}

.teacher-profile-card {
    padding: 1.25rem;
}

.teacher-profile-hero {
    align-items: center;
    background: linear-gradient(135deg, #f8fbff, #f0fdf4);
    border: 1px solid var(--line);
    border-radius: var(--aurra-radius-md);
    display: grid;
    gap: var(--space-md);
    grid-template-columns: auto minmax(0, 1fr) minmax(240px, auto);
    padding: var(--space-md);
}

.teacher-profile-avatar-lg {
    align-items: center;
    border: 3px solid #ffffff;
    border-radius: var(--aurra-radius-full);
    box-shadow: 0 12px 26px rgba(15, 39, 72, 0.12);
    color: #ffffff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.35rem;
    font-weight: var(--font-black);
    height: 80px;
    justify-content: center;
    overflow: hidden;
    width: 80px;
}

.teacher-profile-avatar-lg img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.teacher-profile-side {
    display: grid;
    gap: 0.65rem;
    justify-items: end;
}

.profile-mini-field {
    text-align: right;
}

.profile-mini-field span {
    color: var(--muted);
    display: block;
    font-size: 0.72rem;
    font-weight: var(--font-black);
    letter-spacing: 0;
    text-transform: uppercase;
}

.profile-mini-field strong {
    color: var(--ink);
    font-weight: var(--font-black);
}

.text-preline {
    white-space: pre-line;
}

.student-profile-avatar {
    align-items: center;
    color: var(--aurra-muted);
    display: inline-flex;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.student-profile-avatar svg {
    height: 58px;
    width: 58px;
}

.table thead th {
    background: var(--aurra-panel-soft);
    color: #52657f;
    font-size: 0.76rem;
    letter-spacing: 0;
    padding: var(--space-md);
    position: sticky;
    top: 0;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 2;
}

.table tbody td {
    color: #173153;
    padding: var(--space-md);
    vertical-align: middle;
}

.table tbody tr:hover td {
    background: #f7fbff;
}

.timetable-grid {
    table-layout: fixed;
}

.timetable-grid th,
.timetable-grid td {
    min-width: 148px;
    vertical-align: top;
}

.timetable-grid thead th:first-child,
.timetable-grid tbody th {
    min-width: 112px;
    width: 112px;
}

.timetable-grid tbody th {
    background: var(--aurra-panel-soft);
    color: var(--ink);
    font-weight: var(--font-black);
    position: sticky;
    left: 0;
    z-index: 1;
}

.timetable-period {
    background: linear-gradient(135deg, #f0fdf4, #eff6ff);
    border: 1px solid #bbf7d0;
    border-left: 4px solid var(--success);
    border-radius: var(--aurra-radius-md);
    display: grid;
    gap: 0.15rem;
    margin-bottom: 0.45rem;
    padding: 0.55rem 0.65rem;
}

.timetable-period:last-child {
    margin-bottom: 0;
}

.timetable-period strong {
    color: var(--ink);
    font-size: 0.88rem;
}

.timetable-period span,
.timetable-period small {
    color: var(--muted);
    font-weight: var(--font-bold);
}

.empty-state {
    color: var(--muted);
    font-weight: var(--font-bold);
    padding: 2rem;
    text-align: center;
}

.form-card {
    padding: 1.25rem;
}

.form-section-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--aurra-radius-md);
    padding: var(--space-md);
}

.form-section-card legend {
    color: var(--success);
    float: none;
    font-size: 0.78rem;
    font-weight: var(--font-black);
    letter-spacing: 0;
    margin-bottom: 0.85rem;
    padding: 0 0.35rem;
    text-transform: uppercase;
    width: auto;
}

.admission-register-wrap {
    max-height: 62vh;
    overflow-x: auto;
    overflow-y: auto;
}

.admission-register-table {
    font-size: 0.86rem;
    min-width: 0;
    table-layout: fixed;
    width: 100%;
}

.aurra-register-compact {
    min-width: 920px;
    table-layout: auto;
}

.admission-register-table th,
.admission-register-table td {
    overflow-wrap: anywhere;
    padding: 0.72rem 0.65rem;
    white-space: normal;
    word-break: break-word;
}

.aurra-register-compact th,
.aurra-register-compact td {
    font-size: 0.78rem;
    padding: 0.55rem 0.75rem;
}

.aurra-register-compact thead th {
    background: #eef2ff;
    position: sticky;
    top: 0;
    z-index: 3;
}

.aurra-register-compact tbody tr:nth-child(even) td {
    background: rgba(238, 242, 255, 0.3);
}

.sticky-register-col {
    background: #fff;
    left: 0;
    min-width: 120px;
    position: sticky;
    z-index: 2;
}

.sticky-register-name {
    left: 120px;
    min-width: 190px;
}

.aurra-register-compact thead .sticky-register-col {
    background: #eef2ff;
    z-index: 4;
}

.aurra-register-compact tbody tr:nth-child(even) td.sticky-register-col {
    background: #f8faff;
}

.register-address {
    max-width: none;
    min-width: 0;
    white-space: normal;
}

.student-profile-card {
    padding: 1.25rem;
}

.student-profile-hero {
    align-items: center;
    background: linear-gradient(135deg, #f8fbff, #f0fdf4);
    border: 1px solid var(--line);
    border-radius: var(--aurra-radius-md);
    display: flex;
    gap: var(--space-md);
    margin-bottom: 1rem;
    padding: var(--space-md);
}

.student-profile-photo {
    height: 160px;
    width: 124px;
}

.profile-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-field {
    background: var(--aurra-panel-soft);
    border: 1px solid var(--line);
    border-radius: var(--aurra-radius-md);
    padding: 0.95rem;
}

.profile-field span {
    color: var(--muted);
    display: block;
    font-size: 0.75rem;
    font-weight: var(--font-black);
    letter-spacing: 0;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.profile-field strong {
    color: var(--ink);
    display: block;
    overflow-wrap: anywhere;
}

.profile-field-wide {
    grid-column: 1 / -1;
}

.photo-upload-card {
    align-items: center;
    background: linear-gradient(135deg, #f8fbff, #f0fdf4);
    border: 1px solid var(--line);
    border-radius: var(--aurra-radius-md);
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
}

.teacher-photo-upload {
    cursor: pointer;
}

.teacher-form-accordion .accordion-item {
    border-color: var(--line);
    overflow: hidden;
}

.teacher-form-accordion .accordion-button {
    color: var(--ink);
    font-weight: var(--font-black);
}

.teacher-form-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #eef6ff, #effdf6);
    color: var(--ink);
    box-shadow: none;
}

.teacher-form-accordion .accordion-body {
    background: #ffffff;
}

.teacher-assignment-intro {
    align-items: center;
    background: var(--aurra-panel-soft);
    border: 1px solid #dbe7f5;
    border-radius: 12px;
    display: flex;
    gap: var(--space-md);
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: var(--space-md);
}

.assignment-kicker {
    color: var(--primary);
    display: block;
    font-size: 0.76rem;
    font-weight: var(--font-black);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.teacher-assignment-intro strong {
    color: var(--ink);
    display: block;
    font-size: 1rem;
}

.teacher-assignment-intro p {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: var(--font-bold);
    margin: 0.25rem 0 0;
}

.assignment-pill {
    background: #dcfce7;
    border: 1px solid #86efac;
    border-radius: var(--aurra-radius-full);
    color: #166534;
    flex: 0 0 auto;
    font-size: 0.82rem;
    font-weight: var(--font-black);
    padding: 0.45rem 0.8rem;
}

.teacher-assignment-list {
    display: grid;
    gap: 0.85rem;
}

.teacher-assignment-row {
    align-items: end;
    background: #ffffff;
    border: 1px solid #dbe7f5;
    border-radius: 12px;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: 42px minmax(140px, 1fr) minmax(180px, 1.2fr) minmax(150px, 1fr) minmax(130px, auto);
    padding: 0.9rem;
}

.assignment-row-number {
    align-items: center;
    align-self: center;
    background: #eaf2ff;
    border-radius: var(--aurra-radius-full);
    color: var(--primary);
    display: flex;
    font-weight: var(--font-black);
    height: 34px;
    justify-content: center;
    width: 34px;
}

.assignment-check {
    align-items: center;
    border: 1px solid #dbe7f5;
    border-radius: 10px;
    color: var(--ink);
    display: flex;
    font-size: 0.9rem;
    font-weight: var(--font-black);
    gap: var(--space-sm);
    min-height: 48px;
    padding: 0.55rem 0.75rem;
}

.teacher-assignment-cell {
    min-width: 280px;
}

.teacher-assignment-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.teacher-assignment-chip,
.teacher-assignment-more {
    background: #eef6ff;
    border: 1px solid var(--aurra-blue-border-light);
    border-radius: var(--aurra-radius-full);
    color: #1d4ed8;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: var(--font-black);
    line-height: 1.2;
    padding: 0.35rem 0.6rem;
}

.teacher-assignment-chip.is-owner {
    background: #ecfdf5;
    border-color: #86efac;
    color: #166534;
}

.teacher-assignment-more {
    background: var(--aurra-panel-soft);
    border-color: #dbe7f5;
    color: var(--muted);
}

.teacher-assignment-profile-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.teacher-assignment-summary-card,
.teacher-profile-assignment-card {
    background: #ffffff;
    border: 1px solid #dbe7f5;
    border-radius: 12px;
    padding: var(--space-md);
}

.teacher-assignment-summary-card span {
    color: var(--muted);
    display: block;
    font-size: 0.78rem;
    font-weight: var(--font-black);
    text-transform: uppercase;
}

.teacher-assignment-summary-card strong {
    color: var(--ink);
    display: block;
    font-size: 1.8rem;
    font-weight: var(--font-black);
    margin-top: 0.25rem;
}

.teacher-profile-assignment-list {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.teacher-profile-assignment-card {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.teacher-profile-assignment-card strong {
    color: var(--ink);
    display: block;
    font-size: 1rem;
    font-weight: var(--font-black);
}

.staff-link-status {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: var(--aurra-radius-full);
    color: #9a3412;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: var(--font-black);
    padding: 0.35rem 0.6rem;
}

.staff-link-status.is-linked {
    background: #ecfdf5;
    border-color: #86efac;
    color: #166534;
}

.staff-user-profile-select {
    min-width: 180px;
}

.passport-photo-box {
    align-items: center;
    background: #ffffff;
    border: 2px dashed #b9cbe0;
    border-radius: var(--aurra-radius-md);
    color: var(--muted);
    display: flex;
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: var(--font-black);
    height: 144px;
    justify-content: center;
    overflow: hidden;
    position: relative;
    text-align: center;
    width: 112px;
}

.passport-photo-box img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.form-label {
    color: #173153;
    font-size: 0.88rem;
    font-weight: var(--font-extrabold);
}

.designation-check-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.designation-check {
    min-width: 84px;
}

.form-control,
.form-select {
    border-color: var(--line);
    border-radius: var(--aurra-radius-md);
    min-height: 42px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}

.btn {
    border-radius: var(--aurra-radius-md);
    font-weight: var(--font-extrabold);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-success {
    background: var(--success);
    border-color: var(--success);
}

.whatsapp-direct-btn {
    align-items: center;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    padding: 0;
    width: 34px;
}

.whatsapp-direct-btn svg {
    height: 17px;
    width: 17px;
}

.toast-stack {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
    position: sticky;
    top: 92px;
    z-index: 15;
}

.toast-stack .alert {
    animation: toastSlideIn 220ms ease;
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
    margin: 0;
    transition: opacity 220ms ease, transform 220ms ease;
}

.toast-stack .alert.is-dismissing {
    opacity: 0;
    transform: translateY(-4px);
}

.developer-credit {
    align-items: center;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(219, 230, 243, 0.95);
    border-radius: var(--aurra-radius-md);
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.82rem;
    font-weight: var(--font-bold);
    gap: 0.8rem 1.25rem;
    justify-content: space-between;
    line-height: 1.35;
    margin-top: 1.25rem;
    padding: 0.8rem 1rem;
}

.developer-credit strong {
    color: var(--ink);
    font-weight: var(--font-black);
}

.developer-credit-main,
.developer-credit-contact {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
}

.developer-credit-location {
    color: #52657f;
}

.developer-credit-contact span {
    color: var(--success);
    font-size: 0.72rem;
    font-weight: var(--font-black);
    letter-spacing: 0;
    text-transform: uppercase;
}

.developer-credit-contact a {
    color: #173153;
    font-weight: var(--font-black);
}

.developer-credit-contact a:hover {
    color: var(--primary);
}

.auth-shell .developer-credit {
    max-width: 1080px;
    width: 100%;
}

.mobile-sidebar {
    background: #ffffff;
    color: var(--ink);
}

.auth-body {
    background: linear-gradient(135deg, #eef6ff, #f8fafc);
    min-height: 100vh;
}

.auth-shell {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    min-height: 100vh;
    padding: 1.5rem;
}

.auth-layout {
    align-items: stretch;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 470px);
    margin: 0 auto;
    max-width: 1180px;
    width: 100%;
}

.auth-panel,
.auth-card {
    border-radius: var(--aurra-radius-md);
    box-shadow: 0 24px 60px rgba(15, 39, 72, 0.12);
    padding: 2rem;
}

.auth-panel {
    background: linear-gradient(135deg, #0b1f3a, #0f7a45);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 680px;
    overflow: hidden;
    position: relative;
}

.auth-panel p {
    color: rgba(255, 255, 255, 0.78);
}

.auth-panel-inner,
.auth-card {
    position: relative;
    z-index: 1;
}

.auth-panel-backdrop {
    background:
        linear-gradient(135deg, rgba(11, 31, 58, 0.3), rgba(7, 18, 33, 0.72)),
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 28%),
        radial-gradient(circle at bottom left, rgba(34, 197, 94, 0.16), transparent 30%);
    inset: 0;
    position: absolute;
}

.auth-panel-photo {
    background:
        linear-gradient(135deg, rgba(7, 18, 33, 0.18), rgba(7, 18, 33, 0.7)),
        url("https://images.unsplash.com/photo-1519452575417-564c1401ecc0?auto=format&fit=crop&w=1400&q=80") center/cover no-repeat;
    filter: blur(0.5px);
    inset: 0;
    opacity: 0.38;
    position: absolute;
    transform: scale(1.04);
    transition: transform 900ms ease, filter 900ms ease;
}

.auth-panel-photo.is-zooming {
    filter: blur(0.5px) saturate(1.08);
    transform: scale(1.075);
}

.auth-panel-orbit {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--aurra-radius-full);
    position: absolute;
}

.auth-panel-orbit-one {
    animation: authFloat 9s ease-in-out infinite;
    height: 320px;
    right: -70px;
    top: -80px;
    width: 320px;
}

.auth-panel-orbit-two {
    animation: authFloat 11s ease-in-out infinite reverse;
    bottom: -90px;
    height: 220px;
    left: -70px;
    width: 220px;
}

.auth-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.auth-trust-pill {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--aurra-radius-full);
    color: #eff6ff;
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: var(--font-black);
    min-height: 32px;
    padding: 0.45rem 0.8rem;
}

.auth-layout-login {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 480px);
}

.auth-panel-login {
    min-height: 720px;
}

.auth-card-login {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    justify-content: center;
    min-height: 720px;
}

.auth-card-aurra {
    background: rgba(255, 255, 255, 0.98);
}

.auth-card-header {
    margin-bottom: 0.25rem;
}

.auth-card-brand,
.auth-panel-brand {
    align-items: center;
    display: inline-flex;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}

.auth-card-logo,
.auth-panel-logo {
    align-items: center;
    border-radius: 18px;
    display: inline-flex;
    flex: 0 0 52px;
    font-family: Montserrat, Inter, system-ui, sans-serif;
    font-size: 1.45rem;
    font-weight: var(--font-black);
    height: 52px;
    justify-content: center;
    width: 52px;
}

.auth-card-logo {
    background: linear-gradient(135deg, #1454d4, #0f2554);
    color: #ffffff;
    box-shadow: 0 14px 26px rgba(20, 84, 212, 0.22);
}

.auth-panel-logo {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.auth-card-brand-copy,
.auth-panel-brand-copy {
    display: grid;
    gap: 0.1rem;
}

.auth-card-brand-copy strong,
.auth-panel-brand-copy strong {
    font-family: Montserrat, Inter, system-ui, sans-serif;
    font-size: 1.1rem;
    font-weight: var(--font-extrabold);
    letter-spacing: 0.04em;
}

.auth-card-brand-copy small {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: var(--font-bold);
}

.auth-panel-brand-copy small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
    font-weight: var(--font-bold);
}

.auth-login-title {
    color: var(--ink);
    font-size: 2.2rem;
    font-weight: var(--font-black);
    line-height: 1.08;
    margin: 0.2rem 0 0.35rem;
}

.auth-login-subtitle {
    color: var(--muted);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.auth-hero-title {
    font-size: clamp(2.45rem, 4vw, 3.9rem);
    line-height: 1.06;
    max-width: 620px;
}

.auth-hero-copy {
    font-size: 1.02rem;
    max-width: 650px;
}

.auth-quote-card {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    margin: 1.35rem 0 0;
    max-width: 560px;
    padding: 1rem 1.1rem;
}

.auth-quote-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.7;
    margin: 0;
}

.auth-mini-metrics {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 1.15rem;
}

.auth-mini-metric {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--aurra-radius-md);
    padding: 0.85rem 0.9rem;
}

.auth-mini-metric span {
    color: rgba(255, 255, 255, 0.74);
    display: block;
    font-size: 0.72rem;
    font-weight: var(--font-black);
    text-transform: uppercase;
}

.auth-mini-metric strong {
    color: #ffffff;
    display: block;
    font-size: 0.9rem;
    font-weight: var(--font-black);
    line-height: 1.35;
    margin-top: 0.35rem;
}

.auth-benefit-list {
    display: grid;
    gap: 0.95rem;
    margin-top: 1.5rem;
    max-width: 560px;
}

.auth-benefit-item {
    align-items: center;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    display: flex;
    gap: 0.8rem;
    min-height: 64px;
    opacity: 0.78;
    padding: 0.95rem 1rem;
    transition: opacity 220ms ease, transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.auth-benefit-item.is-active {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(187, 247, 208, 0.34);
    opacity: 1;
    transform: translateX(4px);
}

.auth-benefit-item strong {
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 850;
}

.auth-benefit-check {
    align-items: center;
    background: rgba(187, 247, 208, 0.15);
    border: 1px solid rgba(187, 247, 208, 0.24);
    border-radius: var(--aurra-radius-full);
    color: #bbf7d0;
    display: inline-flex;
    flex: 0 0 28px;
    font-size: 1rem;
    font-weight: var(--font-black);
    height: 28px;
    justify-content: center;
    width: 28px;
}

.auth-field-group {
    display: grid;
    gap: 0.35rem;
}

.auth-inline-alert {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 14px;
    color: #b42318;
    font-size: 0.9rem;
    font-weight: var(--font-bold);
    padding: 0.85rem 0.95rem;
}

.auth-inline-alert-rich {
    align-items: flex-start;
    display: grid;
    gap: 0.8rem;
    grid-template-columns: auto 1fr;
}

.auth-inline-alert-icon {
    align-items: center;
    background: #fee4e2;
    border-radius: var(--aurra-radius-full);
    color: #b42318;
    display: inline-flex;
    flex: 0 0 28px;
    font-size: 0.92rem;
    font-weight: var(--font-black);
    height: 28px;
    justify-content: center;
    width: 28px;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    align-items: center;
    color: var(--aurra-muted);
    display: inline-flex;
    height: 100%;
    justify-content: center;
    left: 0.95rem;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 20px;
    z-index: 1;
}

.auth-input-icon svg {
    height: 18px;
    width: 18px;
}

.auth-form-control {
    min-height: 56px;
    padding-left: 3rem;
}

.auth-inline-error {
    color: #c2410c;
    font-size: 0.8rem;
    font-weight: var(--font-bold);
    min-height: 1.1rem;
}

.auth-captcha-wrap {
    margin-top: 1rem;
    overflow-x: auto;
    padding-bottom: 0.1rem;
}

.auth-captcha-wrap .g-recaptcha {
    min-height: 78px;
}

.auth-captcha-note {
    background: var(--aurra-panel-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: var(--font-extrabold);
    padding: 0.85rem 1rem;
}

.auth-password-wrap {
    position: relative;
}

.auth-password-wrap .form-control {
    padding-right: 5.2rem;
}

.auth-password-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--primary);
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: var(--font-extrabold);
    gap: 0.35rem;
    height: 100%;
    justify-content: center;
    min-width: 76px;
    padding: 0 0.9rem;
    position: absolute;
    right: 0;
    top: 0;
    transition: color 160ms ease, transform 160ms ease;
}

.auth-password-toggle:hover,
.auth-password-toggle.is-active {
    color: #0f172a;
    transform: translateY(-1px);
}

.auth-password-toggle-icon {
    height: 16px;
    width: 16px;
}

.auth-caps-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--aurra-radius-full);
    color: #92400e;
    font-size: 0.68rem;
    font-weight: var(--font-black);
    opacity: 0;
    padding: 0.2rem 0.45rem;
    pointer-events: none;
    position: absolute;
    right: 5.1rem;
    top: 50%;
    transform: translateY(-50%) scale(0.96);
    transition: opacity 160ms ease, transform 160ms ease;
}

.auth-caps-warning.is-visible {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.auth-password-policy {
    color: #b45309;
    font-size: 0.78rem;
    font-weight: var(--font-extrabold);
    min-height: 1rem;
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.auth-password-policy.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.auth-row {
    align-items: center;
    display: flex;
    gap: var(--space-md);
    justify-content: space-between;
}

.auth-security-note {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: var(--font-bold);
}

.auth-submit-btn {
    box-shadow: 0 16px 30px rgba(29, 78, 216, 0.18);
    gap: 0.55rem;
    min-height: 56px;
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease, filter 180ms ease;
}

.auth-submit-btn:hover {
    box-shadow: 0 18px 34px rgba(29, 78, 216, 0.22);
    filter: saturate(1.03);
    transform: translateY(-1px);
}

/* Generic loading state for all submit buttons */
button.is-loading,
.btn.is-loading {
    cursor: not-allowed !important;
    opacity: 0.78;
    pointer-events: none;
}

.auth-submit-btn.is-loading {
    opacity: 0.92;
    pointer-events: none;
}

.auth-submit-spinner {
    animation: authSpin 720ms linear infinite;
    border: 2px solid rgba(255, 255, 255, 0.32);
    border-radius: var(--aurra-radius-full);
    border-top-color: #ffffff;
    display: none;
    flex: 0 0 16px;
    height: 16px;
    width: 16px;
}

.auth-submit-btn.is-loading .auth-submit-spinner {
    display: inline-flex;
}

.auth-links-row {
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
}

.auth-links-row a {
    color: var(--primary);
    font-size: 0.92rem;
    font-weight: var(--font-extrabold);
}

.auth-demo-card {
    background: linear-gradient(180deg, #fbfdff, #f8fbff);
    border: 1px solid #dce6f2;
    border-radius: 16px;
    display: grid;
    gap: 0.8rem;
    padding: var(--space-md);
}

.auth-demo-copy {
    display: grid;
    gap: 0.18rem;
}

.auth-demo-copy strong {
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 850;
}

.auth-demo-copy span {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 600;
}

.auth-demo-actions {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-demo-btn {
    min-height: 44px;
}

.form-control.is-invalid {
    border-color: rgba(220, 38, 38, 0.62);
}

.auth-role-grid {
    display: grid;
    gap: 0.85rem;
    max-width: 100%;
}

.auth-role-actions {
    display: grid;
    gap: 0.6rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auth-role-action {
    background: #f8fbff;
    border: 1px solid #cfe0f5;
    border-radius: var(--aurra-radius-md);
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: var(--font-black);
    min-height: 46px;
    padding: 0.7rem 0.8rem;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.auth-role-action:hover,
.auth-role-action.is-active {
    background: linear-gradient(135deg, #1454d4, #0f2554);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-1px);
}

.auth-role-helper {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--aurra-radius-md);
    color: #166534;
    font-size: 0.9rem;
    font-weight: var(--font-bold);
    line-height: 1.45;
    padding: 0.8rem 0.95rem;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.auth-role-helper.is-animating {
    animation: authFadeLift 280ms ease;
}

.auth-role-card {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--aurra-radius-md);
    min-height: 95px;
    padding: 0.9rem 1rem;
    transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.auth-role-card span {
    color: #bbf7d0;
    display: block;
    font-size: 0.78rem;
    font-weight: var(--font-black);
    letter-spacing: 0;
    text-transform: uppercase;
}

.auth-role-card strong {
    color: #ffffff;
    display: block;
    font-size: 1rem;
    margin-top: 0.2rem;
}

.auth-role-card small {
    color: rgba(255, 255, 255, 0.74);
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
    margin-top: 0.45rem;
}

.auth-role-card.is-featured,
.auth-role-card.is-highlighted {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(187, 247, 208, 0.35);
    box-shadow: 0 18px 32px rgba(4, 17, 35, 0.18);
    transform: translateY(-2px);
}

.auth-card {
    background: #ffffff;
    border: 1px solid var(--line);
    position: relative;
}

.auth-card::before {
    background: linear-gradient(90deg, rgba(20, 84, 212, 0.95), rgba(15, 118, 110, 0.85));
    border-radius: var(--radius) var(--radius) 0 0;
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.auth-portal-spotlight {
    background: linear-gradient(135deg, #f8fbff, #eefbf7);
    border: 1px solid #d5e8df;
    border-radius: var(--aurra-radius-md);
    box-shadow: 0 14px 30px rgba(15, 39, 72, 0.05);
    display: grid;
    gap: 0.3rem;
    padding: 0.9rem 1rem;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.auth-portal-spotlight-label {
    color: var(--primary-2);
    font-size: 0.72rem;
    font-weight: var(--font-black);
    text-transform: uppercase;
}

.auth-portal-spotlight strong {
    color: var(--ink);
    font-size: 1rem;
    font-weight: var(--font-black);
}

.auth-portal-spotlight span {
    color: #4b5f79;
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.45;
}

.auth-access-note {
    background: var(--aurra-blue-light);
    border: 1px solid var(--aurra-blue-border-light);
    border-radius: var(--aurra-radius-md);
    color: #173153;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.45;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
}

.password-requirements-help {
    color: var(--aurra-muted);
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.35;
    margin-top: 0.4rem;
}

.auth-alerts {
    animation: authSlideDown 320ms ease;
    left: 50%;
    max-width: 560px;
    position: fixed;
    top: 1rem;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    z-index: 30;
}

.auth-return-overlay {
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border-radius: var(--aurra-radius-md);
    color: #0f172a;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    inset: 0;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transform: scale(0.99);
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: 4;
}

.auth-return-overlay.is-visible {
    opacity: 1;
    transform: scale(1);
}

.auth-return-spinner {
    animation: authSpin 720ms linear infinite;
    border: 3px solid #dbeafe;
    border-radius: var(--aurra-radius-full);
    border-top-color: #2563eb;
    height: 34px;
    width: 34px;
}

.table-tools {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.table-tools-search {
    max-width: 280px;
}

.table-pagination {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.85rem;
}

.table-responsive {
    scrollbar-width: thin;
}

.table-card .table tbody tr {
    transition: background-color 160ms ease;
}

.table-card .table tbody tr:hover td {
    background: #f8fbff;
}

.empty-state {
    background: var(--aurra-panel-soft);
    border: 1px dashed #cbd5e1;
    border-radius: var(--aurra-radius-md);
    color: var(--muted);
    font-weight: var(--font-bold);
    padding: 1.4rem;
    text-align: center;
}

.min-w-0 {
    min-width: 0;
}

@keyframes authFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, 14px, 0);
    }
}

@keyframes authSlideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -12px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes authFadeLift {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes authCarouselFade {
    from {
        opacity: 0.86;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-panel-inner.is-carousel-animating .auth-hero-title,
.auth-panel-inner.is-carousel-animating .auth-hero-copy {
    animation: authCarouselFade 420ms ease;
}

@keyframes authSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .app-body {
        height: auto;
        min-height: 100vh;
        overflow: auto;
    }

    .app-layout {
        display: block;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .app-main {
        display: block;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .content-shell {
        padding: var(--space-md);
    }

    .auth-mini-metrics {
        grid-template-columns: 1fr;
    }

    .auth-layout-login {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .dashboard-mini-stats,
    .dashboard-health-grid {
        grid-template-columns: 1fr 1fr;
    }

    .teacher-assignment-row {
        grid-template-columns: 34px 1fr 1fr;
    }

    .teacher-assignment-row .assignment-check {
        grid-column: 2 / -1;
    }

    .teacher-assignment-profile-grid,
    .teacher-profile-assignment-list,
    .teacher-profile-assignment-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .topbar {
        padding: 0.85rem 1rem;
    }

    .page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-panel {
        display: none;
    }

    .auth-role-actions {
        grid-template-columns: 1fr;
    }

    .auth-hero-title {
        font-size: 2.2rem;
    }

    .auth-login-title {
        font-size: 1.9rem;
    }

    .auth-row,
    .auth-links-row,
    .auth-demo-actions {
        grid-template-columns: 1fr;
        display: grid;
    }

    .auth-security-note {
        display: none;
    }

    .dashboard-mini-stats,
    .dashboard-health-grid,
    .table-tools {
        grid-template-columns: 1fr;
        display: grid;
    }

    .table-tools-search {
        max-width: none;
    }

    .photo-upload-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .teacher-assignment-intro {
        align-items: flex-start;
        flex-direction: column;
    }

    .teacher-assignment-row {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .teacher-assignment-row .assignment-check {
        grid-column: auto;
    }

    .student-profile-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .teacher-profile-hero {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .teacher-profile-side {
        justify-items: start;
        width: 100%;
    }

    .profile-mini-field {
        text-align: left;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .student-stats-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.metric-card.compact {
    min-height: 92px;
    padding: 0.9rem;
}

.metric-card.compact .metric-value {
    font-size: 1.7rem;
}

.metric-success::after {
    background: rgba(15, 122, 69, 0.1);
}

.metric-danger::after {
    background: rgba(220, 38, 38, 0.1);
}

.metric-warning::after {
    background: rgba(217, 119, 6, 0.12);
}

.aurra-pg12-panel {
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.04), rgba(47, 143, 131, 0.09)),
        #ffffff;
    overflow: hidden;
}

.aurra-pg12-count {
    align-items: center;
    background: #0f766e;
    border-radius: var(--aurra-radius-full);
    color: #ffffff;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: var(--font-black);
    min-height: 2rem;
    padding: 0 0.9rem;
    text-align: center;
    white-space: nowrap;
}

.aurra-pg12-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.aurra-pg12-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 1.15rem;
    color: #0f172a;
    display: grid;
    gap: 0.25rem;
    min-height: 7.25rem;
    padding: var(--space-md);
    position: relative;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.aurra-pg12-card::after {
    background: linear-gradient(180deg, #0f766e, #38bdf8);
    border-radius: var(--aurra-radius-full);
    content: "";
    height: calc(100% - 2rem);
    position: absolute;
    right: 0.85rem;
    top: 1rem;
    width: 0.22rem;
}

.aurra-pg12-card:hover {
    border-color: rgba(47, 143, 131, 0.5);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
    color: #0f172a;
    transform: translateY(-2px);
}

.aurra-pg12-card .aurra-pg12-label,
.admission-pg12-note strong {
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: var(--font-black);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.aurra-pg12-card strong {
    font-size: 2rem;
    font-weight: 950;
    line-height: 1;
}

.aurra-pg12-card small,
.aurra-pg12-card em,
.admission-pg12-copy span {
    color: var(--aurra-muted);
    font-size: 0.82rem;
    font-weight: var(--font-bold);
    line-height: 1.4;
}

.aurra-pg12-card em {
    color: #0f766e;
    font-style: normal;
    font-weight: 850;
}

.admission-pg12-note {
    align-items: center;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(59, 130, 246, 0.08));
    border: 1px solid rgba(125, 211, 252, 0.45);
    border-radius: 1.2rem;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
}

.admission-pg12-icon {
    align-items: center;
    background: #0f766e;
    border-radius: 0.9rem;
    color: #ffffff;
    display: inline-flex;
    flex: 0 0 2.5rem;
    font-size: 0.9rem;
    font-weight: 950;
    height: 2.5rem;
    justify-content: center;
}

.admission-pg12-copy {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

@media (max-width: 1199.98px) {
    .aurra-pg12-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .aurra-pg12-grid {
        grid-template-columns: 1fr;
    }

    .admission-pg12-note {
        align-items: flex-start;
        justify-content: flex-start;
    }
}

@media print {
    @page {
        margin: 10mm;
        size: A4 landscape;
    }

    body,
    .app-body {
        background: #ffffff !important;
        height: auto !important;
        overflow: visible !important;
    }

    .sidebar,
    .topbar,
    .print-hide,
    .developer-credit,
    .toast-stack,
    .mobile-sidebar {
        display: none !important;
    }

    .app-layout {
        display: block;
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .app-main {
        display: block;
        height: auto;
        overflow: visible;
    }

    .content-shell {
        max-width: none;
        padding: 0;
    }

    .panel-card,
    .table-card {
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .timetable-print-header {
        border: 1px solid #0f7a45 !important;
        border-bottom: 0 !important;
        text-align: center;
    }

    .timetable-grid {
        border: 1px solid #0f7a45;
        font-size: 0.68rem;
        table-layout: fixed;
        width: 100%;
    }

    .timetable-grid th,
    .timetable-grid td {
        border-color: #b8c7d8 !important;
        min-width: 0;
        padding: 0.35rem !important;
    }

    .timetable-grid tbody th {
        position: static;
    }

    .timetable-period {
        background: #ffffff !important;
        border-color: #9fd5b8;
        box-shadow: none;
        padding: 0.28rem 0.35rem;
    }
}

.marketing-body {
    background: var(--aurra-panel-soft);
    color: var(--ink);
    min-height: 100vh;
}

.marketing-header {
    backdrop-filter: blur(18px);
    background: rgba(248, 250, 252, 0.68);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    position: sticky;
    top: 0;
    z-index: 30;
}

.marketing-nav {
    align-items: center;
    display: flex;
    gap: var(--space-md);
    justify-content: space-between;
    min-height: 84px;
}

.marketing-brand {
    align-items: center;
    color: var(--ink);
    display: inline-flex;
    gap: 0.8rem;
}

.marketing-brand strong {
    display: block;
    font-family: Montserrat, Inter, system-ui, sans-serif;
    font-size: 1.45rem;
    font-weight: var(--font-extrabold);
    letter-spacing: 0.02em;
}

.marketing-brand small {
    color: var(--muted);
    display: block;
    font-size: 0.8rem;
    font-weight: var(--font-bold);
}

.marketing-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
}

.marketing-links a {
    color: var(--aurra-text);
    font-weight: var(--font-bold);
}

.marketing-links > a:not(.marketing-login-btn):not(.marketing-primary-btn) {
    position: relative;
}

.marketing-links > a:not(.marketing-login-btn):not(.marketing-primary-btn)::after {
    background: #0f172a;
    border-radius: var(--aurra-radius-full);
    bottom: -0.35rem;
    content: "";
    height: 2px;
    left: 0;
    opacity: 0;
    position: absolute;
    transform: scaleX(0.4);
    transform-origin: left;
    transition: opacity 180ms ease, transform 180ms ease;
    width: 100%;
}

.marketing-links > a:not(.marketing-login-btn):not(.marketing-primary-btn):hover::after,
.marketing-links > a:not(.marketing-login-btn):not(.marketing-primary-btn):focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
}

.marketing-login-btn,
.marketing-primary-btn {
    align-items: center;
    border-radius: 14px;
    display: inline-flex;
    font-weight: var(--font-extrabold);
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 1.15rem;
}

.marketing-login-btn {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(37, 99, 235, 0.24);
    color: #0f172a;
}

.marketing-login-btn:hover,
.marketing-login-btn:focus-visible {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(37, 99, 235, 0.36);
    color: #0f172a;
}

.marketing-primary-btn {
    background: #142c63;
    border: 1px solid #142c63;
    box-shadow: 0 12px 24px rgba(20, 44, 99, 0.16);
    color: #ffffff;
}

.marketing-primary-btn:hover,
.marketing-primary-btn:focus-visible {
    background: #0f2554;
    border-color: #0f2554;
    color: #ffffff;
}

.marketing-main {
    padding-bottom: 3rem;
}

.marketing-flashes {
    margin-top: 1rem;
}

.marketing-hero,
.marketing-page-hero {
    padding: 4.5rem 0 3rem;
}

.marketing-hero-title,
.marketing-page-title {
    font-size: clamp(2.4rem, 4.5vw, 4.2rem);
    font-weight: var(--font-black);
    letter-spacing: 0;
    line-height: 1.02;
    margin: 0.4rem 0 1rem;
    max-width: 860px;
}

.marketing-page-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.marketing-hero-copy,
.marketing-page-copy {
    color: var(--aurra-text);
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.7;
    max-width: 760px;
}

.marketing-kicker {
    color: var(--primary);
    display: inline-block;
    font-size: 0.8rem;
    font-weight: var(--font-black);
    text-transform: uppercase;
}

.marketing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.marketing-proof {
    color: var(--aurra-text);
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 1rem;
}

.marketing-showcase,
.marketing-card,
.marketing-price-card,
.marketing-testimonial,
.marketing-form-card,
.marketing-compare-table,
.marketing-screenshot-placeholder {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.marketing-showcase {
    padding: 1.2rem;
}

.marketing-showcase-top {
    color: var(--muted);
    display: flex;
    font-size: 0.82rem;
    font-weight: var(--font-extrabold);
    justify-content: space-between;
    margin-bottom: 1rem;
}

.marketing-metric-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.marketing-metric-card {
    background: var(--aurra-panel-soft);
    border: 1px solid #dbe6f3;
    border-radius: 14px;
    padding: var(--space-md);
}

.marketing-metric-card small {
    color: var(--muted);
    display: block;
    font-size: 0.76rem;
    font-weight: var(--font-extrabold);
    text-transform: uppercase;
}

.marketing-metric-card strong {
    color: var(--ink);
    display: block;
    font-size: 1.2rem;
    font-weight: var(--font-black);
    margin-top: 0.35rem;
}

.marketing-highlight-grid {
    display: grid;
    gap: 0.85rem;
}

.marketing-highlight-item {
    align-items: flex-start;
    background: var(--aurra-panel-soft);
    border: 1px solid #dbe6f3;
    border-radius: 14px;
    display: grid;
    gap: 0.9rem;
    grid-template-columns: auto 1fr;
    padding: var(--space-md);
}

.marketing-highlight-item p {
    color: var(--muted);
    margin: 0.3rem 0 0;
}

.marketing-highlight-icon {
    align-items: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    color: var(--primary);
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: var(--font-extrabold);
    height: 2.5rem;
    justify-content: center;
    min-width: 2.5rem;
}

.marketing-section {
    padding: 1.5rem 0 3rem;
}

.marketing-section-alt {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.03), rgba(255, 255, 255, 0));
}

.marketing-section-heading {
    margin-bottom: 1.5rem;
    max-width: 760px;
}

.marketing-section-heading h2 {
    font-size: 2rem;
    font-weight: var(--font-black);
    margin-bottom: 0.65rem;
}

.marketing-section-heading p {
    color: var(--aurra-text);
    font-weight: 600;
}

.marketing-card,
.marketing-testimonial,
.marketing-form-card {
    padding: 1.4rem;
}

.marketing-price-card {
    padding: 1.35rem;
}

.marketing-price-card.is-featured {
    border-color: #93c5fd;
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.1);
}

.marketing-price {
    font-size: 2rem;
    font-weight: var(--font-black);
    line-height: 1;
}

.marketing-price-note {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: var(--font-bold);
}

.marketing-list {
    color: var(--aurra-text);
    display: grid;
    gap: 0.6rem;
    margin: 0;
    padding-left: 1.1rem;
}

.marketing-testimonial p {
    color: #334155;
    font-weight: 600;
    line-height: 1.7;
}

.marketing-cta-band {
    padding-bottom: 4rem;
}

.marketing-feature-row + .marketing-feature-row {
    margin-top: 1rem;
}

.marketing-screenshot-placeholder {
    align-items: center;
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    justify-content: center;
    min-height: 280px;
    padding: 2rem;
    text-align: center;
}

.marketing-screenshot-placeholder span {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: var(--font-black);
    text-transform: uppercase;
}

.marketing-screenshot-placeholder strong {
    font-size: 1.15rem;
    font-weight: var(--font-black);
}

.marketing-feature-copy h2 {
    font-size: 1.75rem;
    font-weight: var(--font-black);
    margin-bottom: 0.7rem;
}

.marketing-feature-copy p {
    color: var(--aurra-text);
    font-weight: 600;
}

.marketing-compare-table table th,
.marketing-compare-table table td {
    padding: var(--space-md);
}

.marketing-compare-table thead th {
    background: var(--aurra-panel-soft);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: var(--font-black);
}

.marketing-footer {
    border-top: 1px solid var(--line);
    padding: 1.5rem 0 2rem;
}

.marketing-footer a {
    color: var(--primary);
    font-weight: var(--font-bold);
}

@media (max-width: 991.98px) {
    .marketing-nav {
        align-items: flex-start;
        flex-direction: column;
        padding: 1rem 0;
    }
}

@media (max-width: 767.98px) {
    .marketing-links,
    .marketing-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .marketing-metric-grid {
        grid-template-columns: 1fr;
    }

    .marketing-hero,
    .marketing-page-hero {
        padding-top: 3rem;
    }
}

/* Aurra marketing brand refresh */
.marketing-body {
    --aurra-navy: #102a56;
    --aurra-navy-2: #173b73;
    --aurra-blue: #2563eb;
    --aurra-teal: #0f766e;
    --aurra-ink: #172033;
    --aurra-muted: #5b677a;
    --aurra-line: #dce4f2;
    --aurra-soft: #f6f8fc;
    background:
        linear-gradient(180deg, #ffffff 0, #f6f8fc 34rem, #ffffff 100%);
    color: var(--aurra-ink);
}

.marketing-logo-mark {
    align-items: center;
    background: linear-gradient(135deg, var(--aurra-navy), var(--aurra-blue));
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(16, 42, 86, 0.2);
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-weight: var(--font-black);
    height: 44px;
    justify-content: center;
    width: 44px;
}

.marketing-main {
    padding-bottom: 0;
}

.marketing-hero,
.marketing-page-hero {
    padding: 5.2rem 0 3.4rem;
}

.aurra-hero {
    background:
        radial-gradient(circle at 8% 14%, rgba(37, 99, 235, 0.12), transparent 28rem),
        linear-gradient(180deg, #ffffff, #f6f8fc);
}

.aurra-page-hero {
    background: linear-gradient(180deg, #ffffff, #f6f8fc);
}

.marketing-kicker {
    color: var(--aurra-blue);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
}

.marketing-hero-title,
.marketing-page-title {
    color: var(--aurra-ink);
    font-size: clamp(2.55rem, 5.4vw, 4.85rem);
    line-height: 1;
    max-width: 880px;
}

.marketing-page-title {
    font-size: clamp(2.35rem, 4.4vw, 4.2rem);
}

.marketing-hero-copy,
.marketing-page-copy {
    color: var(--aurra-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 720px;
}

.aurra-btn-primary,
.marketing-hero-actions .btn-primary {
    background: var(--aurra-blue);
    border-color: var(--aurra-blue);
    border-radius: 12px;
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.22);
    font-weight: 850;
    min-height: 52px;
    padding-inline: 1.25rem;
}

.aurra-btn-primary:hover,
.marketing-hero-actions .btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.aurra-btn-secondary,
.marketing-hero-actions .btn-outline-primary {
    border-color: #a9bff7;
    border-radius: 12px;
    color: var(--aurra-blue);
    font-weight: 850;
    min-height: 52px;
    padding-inline: 1.25rem;
}

.aurra-btn-secondary:hover,
.marketing-hero-actions .btn-outline-primary:hover {
    background: #eff5ff;
    border-color: var(--aurra-blue);
    color: var(--aurra-blue);
}

.aurra-btn-link {
    color: var(--aurra-navy);
    font-weight: 850;
    text-decoration: none;
}

.aurra-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.aurra-trust-row span {
    background: #fff;
    border: 1px solid var(--aurra-line);
    border-radius: var(--aurra-radius-full);
    color: var(--aurra-muted);
    font-size: 0.82rem;
    font-weight: var(--font-extrabold);
    padding: 0.5rem 0.8rem;
}

.aurra-product-card {
    background: #ffffff;
    border: 1px solid var(--aurra-line);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(16, 42, 86, 0.12);
    padding: 1.1rem;
}

.aurra-product-top {
    align-items: center;
    background: linear-gradient(135deg, var(--aurra-navy), var(--aurra-navy-2));
    border-radius: 14px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    padding: var(--space-md);
}

.aurra-product-top span {
    color: #b9d5ff;
    display: block;
    font-size: 0.72rem;
    font-weight: var(--font-black);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.aurra-product-top strong {
    display: block;
    font-size: 1.2rem;
    margin-top: 0.25rem;
}

.aurra-pill {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: var(--aurra-radius-full);
    color: var(--aurra-blue);
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: var(--font-black);
    padding: 0.35rem 0.65rem;
}

.aurra-product-top .aurra-pill {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.aurra-dashboard-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0.9rem 0;
}

.aurra-dashboard-grid article,
.aurra-workflow-panel {
    background: var(--aurra-soft);
    border: 1px solid var(--aurra-line);
    border-radius: 14px;
    padding: var(--space-md);
}

.aurra-dashboard-grid span,
.aurra-dashboard-grid small {
    color: var(--aurra-muted);
    display: block;
    font-size: 0.78rem;
    font-weight: var(--font-extrabold);
}

.aurra-dashboard-grid strong {
    color: var(--aurra-ink);
    display: block;
    font-size: 1.75rem;
    line-height: 1.1;
    margin: 0.35rem 0;
}

.aurra-workflow-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.aurra-workflow-head strong {
    color: var(--aurra-ink);
}

.aurra-workflow-head span {
    color: var(--aurra-muted);
    font-size: 0.85rem;
    font-weight: var(--font-bold);
}

.aurra-progress {
    background: #dbe5f4;
    border-radius: var(--aurra-radius-full);
    height: 10px;
    overflow: hidden;
}

.aurra-progress span {
    background: linear-gradient(90deg, var(--aurra-blue), var(--aurra-teal));
    display: block;
    height: 100%;
}

.aurra-module-list {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
}

.aurra-module-list div {
    align-items: center;
    background: #fff;
    border: 1px solid var(--aurra-line);
    border-radius: 12px;
    color: var(--aurra-ink);
    display: flex;
    font-weight: var(--font-extrabold);
    gap: 0.7rem;
    padding: 0.75rem;
}

.aurra-module-list span {
    color: var(--aurra-teal);
    font-size: 0.78rem;
}

.aurra-trust-band {
    background: var(--aurra-navy);
    color: #dbeafe;
    padding: 1rem 0;
}

.aurra-trust-band p {
    font-weight: var(--font-extrabold);
    margin: 0;
    text-align: center;
}

.marketing-section {
    padding: 3.4rem 0;
}

.marketing-section-heading h2,
.aurra-value-section h2,
.aurra-final-cta h2 {
    color: var(--aurra-ink);
    font-size: clamp(1.85rem, 3.2vw, 3rem);
    line-height: 1.12;
}

.marketing-section-heading p,
.aurra-value-section p,
.aurra-final-cta p {
    color: var(--aurra-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.aurra-feature-grid {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.aurra-feature-card,
.marketing-price-card,
.marketing-testimonial,
.marketing-compare-table {
    border: 1px solid var(--aurra-line);
    border-radius: 14px;
    box-shadow: 0 16px 34px rgba(16, 42, 86, 0.07);
}

.aurra-feature-card {
    background: #fff;
    padding: 1.25rem;
}

.aurra-feature-card h3 {
    color: var(--aurra-ink);
    font-size: 1.05rem;
    font-weight: var(--font-black);
    margin: 0.9rem 0 0.45rem;
}

.aurra-feature-card p {
    color: var(--aurra-muted);
    font-weight: 600;
    line-height: 1.6;
    margin: 0;
}

.aurra-icon {
    align-items: center;
    background: #edf5ff;
    border-radius: 12px;
    color: var(--aurra-blue);
    display: inline-flex;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.aurra-icon svg {
    height: 22px;
    width: 22px;
}

.aurra-value-section {
    background: #ffffff;
}

.aurra-value-grid {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aurra-value-grid div {
    background: var(--aurra-soft);
    border: 1px solid var(--aurra-line);
    border-radius: 14px;
    padding: 1.15rem;
}

.aurra-value-grid strong,
.aurra-value-grid span {
    display: block;
}

.aurra-value-grid strong {
    color: var(--aurra-ink);
    font-weight: var(--font-black);
    margin-bottom: 0.35rem;
}

.aurra-value-grid span {
    color: var(--aurra-muted);
    font-weight: 600;
    line-height: 1.55;
}

.aurra-plan-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.35rem;
}

.aurra-plan-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 34px;
}

.aurra-plan-head h3,
.aurra-plan-head h2 {
    color: var(--aurra-ink);
    font-weight: var(--font-black);
}

.marketing-price {
    color: var(--aurra-ink);
}

.marketing-price-card.is-featured {
    border-color: rgba(37, 99, 235, 0.42);
    box-shadow: 0 22px 45px rgba(37, 99, 235, 0.14);
}

.marketing-list {
    color: var(--aurra-muted);
    font-weight: 600;
}

.aurra-plan-cta {
    align-items: center;
    background: var(--aurra-navy);
    border-radius: 12px;
    color: #fff;
    display: inline-flex;
    font-weight: var(--font-black);
    justify-content: center;
    margin-top: auto;
    min-height: 44px;
    text-decoration: none;
}

.aurra-plan-cta:hover {
    background: var(--aurra-blue);
    color: #fff;
}

.aurra-testimonial {
    background: #fff;
    min-height: 100%;
}

.aurra-testimonial p {
    color: var(--aurra-ink);
}

.aurra-final-cta {
    background: linear-gradient(135deg, #f7fbff, #eef6ff);
    border-top: 1px solid var(--aurra-line);
}

.aurra-compare-table {
    overflow: hidden;
}

.marketing-compare-table thead th {
    background: var(--aurra-navy);
    color: #fff;
}

.marketing-compare-table tbody th {
    color: var(--aurra-ink);
}

@media (max-width: 991.98px) {
    .aurra-feature-grid,
    .aurra-value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .marketing-hero,
    .marketing-page-hero {
        padding: 3.4rem 0 2.4rem;
    }

    .aurra-feature-grid,
    .aurra-value-grid,
    .aurra-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .marketing-hero-title,
    .marketing-page-title {
        font-size: clamp(2.1rem, 12vw, 3.15rem);
    }
}

/* Aurra premium workspace shell */
.app-body {
    background:
        radial-gradient(circle at top left, rgba(31, 138, 132, 0.12), transparent 22rem),
        linear-gradient(180deg, #edf3f7 0, var(--aurra-bg) 24rem);
}

.sidebar {
    background: linear-gradient(180deg, var(--aurra-side), var(--aurra-side-deep));
    border-right: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 16px 0 34px rgba(16, 24, 39, 0.18);
    color: #e2e8f0;
    padding: 1.15rem 1rem 1rem;
    width: 280px;
}

.brand-block {
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    padding-bottom: 1.1rem;
}

.aurra-brand-mark,
.topbar-brand-mark {
    align-items: center;
    background: linear-gradient(135deg, var(--aurra-amber), var(--aurra-teal));
    border-radius: var(--aurra-radius);
    box-shadow: 0 12px 24px rgba(31, 138, 132, 0.22);
    color: #ffffff;
    display: inline-flex;
    font-weight: var(--font-black);
    justify-content: center;
    overflow: hidden;
}

.aurra-brand-mark.has-school-logo,
.topbar-brand-mark.has-school-logo,
.school-avatar.has-school-logo {
    background: #ffffff;
    border: 1px solid rgba(219, 230, 243, 0.9);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.aurra-brand-mark img,
.topbar-brand-mark img,
.school-avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.aurra-brand-mark {
    flex: 0 0 46px;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 1.3rem;
    height: 46px;
    width: 46px;
}

.topbar-brand-mark {
    flex: 0 0 40px;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 1.1rem;
    height: 40px;
    width: 40px;
}

.brand-title {
    color: #f8fafc;
    font-size: 1.05rem;
    font-weight: var(--font-extrabold);
    max-width: 180px;
}

.brand-subtitle {
    color: rgba(226, 232, 240, 0.68);
    font-size: 0.8rem;
}

.sidebar-section-label {
    color: rgba(148, 163, 184, 0.72);
    letter-spacing: 0;
    padding-inline: 0.85rem;
}

.nav-item {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--aurra-radius);
    color: #cbd5e1;
    gap: 0.8rem;
    min-height: 42px;
    padding: 0.68rem 0.85rem;
    position: relative;
}

.nav-item::before {
    background: linear-gradient(180deg, var(--aurra-amber), var(--aurra-teal));
    border-radius: var(--aurra-radius-full);
    content: "";
    height: calc(100% - 16px);
    left: -1px;
    opacity: 0;
    position: absolute;
    top: 8px;
    transition: opacity 180ms ease;
    width: 3px;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(139, 199, 163, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 28px rgba(15, 23, 42, 0.16);
    color: #ffffff;
}

.nav-item.active::before,
.nav-item:hover::before {
    opacity: 1;
}

.nav-item.active {
    box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.12), 0 18px 34px rgba(15, 23, 42, 0.22);
}

.nav-icon {
    align-items: center;
    color: rgba(191, 219, 254, 0.96);
    display: inline-flex;
    flex: 0 0 18px;
    height: 18px;
    justify-content: center;
    width: 18px;
}

.nav-icon svg {
    height: 18px;
    width: 18px;
}

.sidebar-footer {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: #e2e8f0;
    margin-top: 1rem;
}

.sidebar-footer-card {
    display: grid;
    gap: 0.1rem;
}

.sidebar-footer-card small {
    color: rgba(191, 219, 254, 0.66);
}

.sidebar-signature {
    color: rgba(148, 163, 184, 0.72);
    display: block;
    font-size: 0.74rem;
    font-weight: var(--font-bold);
    margin-top: 0.65rem;
}

.role-chip {
    background: rgba(31, 138, 132, 0.14);
    border-color: rgba(139, 199, 163, 0.24);
    color: #d6f4ea;
}

.topbar {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(101, 116, 131, 0.18);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
    min-height: 78px;
    padding: 1rem 1.5rem;
}

.topbar-brand {
    align-items: center;
    display: flex;
    gap: 0.85rem;
    min-width: 240px;
}

.topbar-brand-copy {
    min-width: 0;
}

.topbar-kicker {
    color: var(--aurra-teal);
    display: block;
    font-size: 0.72rem;
    font-weight: var(--font-black);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.topbar-school-name {
    color: var(--aurra-ink);
    display: block;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.18rem;
    font-weight: var(--font-bold);
    line-height: 1.15;
}

.topbar-subtitle {
    color: var(--aurra-muted);
    font-size: 0.84rem;
}

.topbar-search-wrap {
    flex: 1 1 auto;
    max-width: 520px;
}

.topbar-search {
    align-items: center;
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line);
    border-radius: var(--aurra-radius);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    display: flex;
    gap: var(--space-sm);
    min-height: 36px;
    padding: 0.25rem 0.3rem 0.25rem 0.65rem;
}

.topbar-search-icon {
    color: var(--aurra-muted);
    display: inline-flex;
    flex: 0 0 auto;
}

.topbar-search-input {
    background: transparent;
    border: 0;
    color: var(--aurra-ink);
    flex: 1 1 auto;
    font-size: 0.875rem;
    font-weight: 600;
    min-width: 0;
    outline: none;
}

.topbar-search-input::placeholder {
    color: var(--aurra-muted);
}

.topbar-search-shortcut {
    background: #eef4f3;
    border: 1px solid #d5e5e2;
    border-radius: var(--aurra-radius);
    color: var(--aurra-muted);
    font-size: 0.72rem;
    font-weight: var(--font-black);
    letter-spacing: 0.04em;
    min-width: 56px;
    padding: 0.38rem 0.65rem;
    text-align: center;
}

.school-avatar-lg {
    flex: 0 0 36px;
    font-size: 0.9rem;
    height: 36px;
    width: 36px;
}

.content-shell {
    padding: 1.5rem;
}

.aurra-dashboard-shell {
    display: grid;
    gap: 1.15rem;
}

.aurra-command-center {
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line);
    border-radius: var(--aurra-radius);
    box-shadow: var(--aurra-shadow);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
    overflow: hidden;
}

.aurra-command-main {
    background: linear-gradient(135deg, #07101f 0%, var(--aurra-side) 54%, #1b2f50 100%);
    color: #ffffff;
    display: grid;
    gap: 2rem;
    min-height: 310px;
    padding: clamp(1.5rem, 3vw, 2.2rem);
}

.aurra-command-main .page-eyebrow {
    color: #7dded6;
}

.aurra-command-main .aurra-dashboard-title,
.aurra-command-main .aurra-dashboard-subtitle {
    color: #ffffff;
}

.aurra-command-main .aurra-dashboard-title {
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    font-weight: 950;
    letter-spacing: 0;
    max-width: 840px;
}

.aurra-command-main .aurra-dashboard-subtitle {
    color: rgba(255, 255, 255, 0.82);
    max-width: 760px;
}

.aurra-command-metrics {
    align-items: stretch;
    display: grid;
    gap: var(--space-md);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.aurra-command-metric {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.54);
    border-radius: var(--aurra-radius);
    color: #ffffff;
    display: grid;
    min-height: 128px;
    padding: 1.15rem;
}

.aurra-command-metric:hover,
.aurra-command-metric:focus-visible {
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
}

.aurra-command-metric span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
    font-weight: var(--font-black);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.aurra-command-metric strong {
    color: #ffffff;
    font-size: clamp(2rem, 3vw, 2.55rem);
    font-weight: 950;
    line-height: 1;
    margin-top: 0.8rem;
}

.aurra-command-metric small {
    align-self: end;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.92rem;
    font-weight: var(--font-bold);
}

.aurra-command-actions {
    align-content: center;
    background: #f7fafb;
    display: grid;
    gap: var(--space-md);
    padding: clamp(1.25rem, 2.4vw, 1.9rem);
}

.aurra-command-actions h2 {
    color: var(--aurra-ink);
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
    font-weight: 950;
    letter-spacing: 0;
    margin: 0 0 1rem;
}

.aurra-command-actions .aurra-action-btn {
    justify-content: space-between;
    min-height: 58px;
    padding-inline: 1.1rem;
    width: 100%;
}

.aurra-action-btn-primary {
    background: var(--aurra-blue);
    box-shadow: 0 16px 30px rgba(68, 143, 198, 0.2);
}

.aurra-dashboard-header {
    align-items: center;
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line);
    border-radius: var(--aurra-radius);
    display: flex;
    gap: 1.25rem;
    justify-content: space-between;
    padding: 1rem 1.15rem;
}

.aurra-dashboard-copy {
    max-width: 720px;
}

.aurra-dashboard-title {
    color: var(--aurra-ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: var(--font-bold);
    line-height: 1.04;
    margin: 0;
}

.aurra-dashboard-subtitle {
    color: var(--aurra-muted);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.55;
    margin: 0.45rem 0 0;
}

.aurra-quick-actions {
    align-items: center;
    background: #f6f9fa;
    border: 1px solid var(--aurra-line);
    border-radius: var(--aurra-radius);
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: flex-end;
    padding: 0.55rem;
}

.aurra-actions-label {
    color: var(--aurra-muted);
    font-size: 0.72rem;
    font-weight: var(--font-black);
    padding: 0 0.45rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.aurra-action-btn {
    border-radius: var(--aurra-radius);
    min-height: 40px;
    padding: 0.48rem 0.85rem;
}

.aurra-action-btn-muted {
    background: #f5f8fa;
    border-color: var(--aurra-line);
    color: var(--aurra-ink);
}

.aurra-action-btn-muted:hover,
.aurra-action-btn-muted:focus-visible {
    background: #e8eef8;
    border-color: #c9d8eb;
    color: #0f172a;
}

.aurra-demo-banner {
    background: linear-gradient(135deg, #eef7f5, #f8fafc);
    border: 1px solid #c7dfda;
    border-radius: var(--aurra-radius);
    box-shadow: var(--shadow-sm);
    color: #173153;
    font-weight: var(--font-bold);
    padding: 1rem 1.15rem;
}

.aurra-stat-row {
    align-items: stretch;
}

.aurra-stat-card {
    align-items: center;
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line);
    border-radius: var(--aurra-radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 0.9rem;
    height: 100%;
    justify-content: flex-start;
    min-height: 112px;
    padding: var(--space-md);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.aurra-stat-card:hover {
    border-color: rgba(31, 138, 132, 0.28);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
    color: currentColor;
    transform: translateY(-2px);
}

.aurra-stat-top {
    align-items: flex-start;
    display: flex;
    gap: var(--space-md);
    justify-content: space-between;
}

.aurra-stat-label {
    color: rgba(15, 23, 42, 0.62);
    font-size: 0.75rem;
    font-weight: var(--font-black);
    letter-spacing: 0;
    text-transform: uppercase;
}

.aurra-stat-value {
    color: currentColor;
    display: block;
    font-size: clamp(1.85rem, 2.6vw, 2.3rem);
    font-weight: var(--font-black);
    line-height: 1.05;
    margin-top: 0.45rem;
}

.aurra-stat-copy {
    min-width: 0;
}

.aurra-stat-note {
    color: rgba(15, 23, 42, 0.58);
    display: block;
    font-size: 0.82rem;
    font-weight: var(--font-bold);
    margin-top: 0.45rem;
}

.aurra-stat-icon {
    align-items: center;
    border-radius: 0.9rem;
    display: inline-flex;
    flex: 0 0 auto;
    height: 2.8rem;
    justify-content: center;
    width: 2.8rem;
}

.aurra-stat-icon svg {
    height: 1.45rem;
    opacity: 0.86;
    width: 1.45rem;
}

.aurra-stat-blue {
    color: var(--aurra-blue);
}

.aurra-stat-blue .aurra-stat-icon {
    background: #e3f0f8;
}

.aurra-stat-green {
    color: var(--aurra-green);
}

.aurra-stat-green .aurra-stat-icon {
    background: #e3f3ed;
}

.aurra-stat-red {
    color: var(--aurra-red);
}

.aurra-stat-red .aurra-stat-icon {
    background: #ffe4e6;
}

.aurra-stat-indigo {
    background: #f1eef8;
    border-color: #ded6ef;
    color: var(--aurra-violet);
}

.aurra-stat-indigo .aurra-stat-icon {
    background: #e0e7ff;
}

.aurra-stat-amber {
    color: #b7791f;
}

.aurra-stat-amber .aurra-stat-icon {
    background: #fef3c7;
}

.aurra-stat-trend {
    align-items: center;
    background: var(--aurra-panel-soft);
    border: 1px solid #dbe6f3;
    border-radius: var(--aurra-radius-full);
    color: rgba(15, 23, 42, 0.72);
    display: inline-flex;
    font-size: 0.73rem;
    font-weight: var(--font-black);
    margin-top: 0.65rem;
    padding: 0.22rem 0.55rem;
}

.aurra-widget-card {
    border-radius: 20px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.07);
}

.aurra-widget-head {
    align-items: flex-start;
    display: flex;
    gap: var(--space-md);
    justify-content: space-between;
    margin-bottom: 1rem;
}

.aurra-widget-title {
    color: #0f172a;
    font-size: 1.45rem;
    font-weight: var(--font-black);
    margin: 0.2rem 0 0.35rem;
}

.aurra-attendance-layout {
    align-items: center;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 158px minmax(0, 1fr);
}

.attendance-donut-thick {
    background:
        radial-gradient(circle closest-side, #ffffff 58%, transparent 59%),
        conic-gradient(#16a34a 0 68%, #ef4444 68% 85%, #f59e0b 85% 100%);
    box-shadow: inset 0 0 0 1px rgba(219, 230, 243, 0.85);
    height: 132px;
    width: 132px;
}

.attendance-donut-thick span {
    font-size: 1.4rem;
}

.aurra-attendance-donut-wrap {
    display: grid;
    justify-items: center;
}

.aurra-donut-caption {
    color: var(--aurra-muted);
    font-size: 0.84rem;
    font-weight: var(--font-bold);
    margin-top: 0.8rem;
}

.aurra-attendance-breakdown {
    display: grid;
    gap: 0.7rem;
}

.aurra-legend-row {
    align-items: center;
    background: var(--aurra-panel-soft);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    display: grid;
    gap: 0.55rem;
    grid-template-columns: auto 1fr auto auto;
    padding: 0.62rem 0.75rem;
}

.aurra-legend-bar {
    background: #e2e8f0;
    border-radius: var(--aurra-radius-full);
    display: block;
    grid-column: 2 / -1;
    height: 6px;
    overflow: hidden;
    position: relative;
}

.aurra-legend-bar::after {
    background: #2563eb;
    border-radius: inherit;
    content: "";
    display: block;
    height: 100%;
    width: var(--bar-value);
}

.aurra-legend-dot {
    border-radius: var(--aurra-radius-full);
    height: 12px;
    width: 12px;
}

.aurra-legend-dot-success {
    background: #16a34a;
}

.aurra-legend-dot-danger {
    background: #ef4444;
}

.aurra-legend-dot-warning {
    background: #f59e0b;
}

.aurra-legend-label {
    color: #334155;
    font-weight: var(--font-bold);
}

.aurra-legend-row strong,
.aurra-legend-row small {
    color: #0f172a;
    font-weight: var(--font-extrabold);
}

.aurra-ledger-grid {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.aurra-ledger-tile {
    background: var(--aurra-panel-soft);
    border: 1px solid #dbe6f3;
    border-radius: 14px;
    display: grid;
    gap: 0.32rem;
    min-width: 0;
    padding: 0.85rem;
}

.aurra-ledger-tile span {
    color: var(--aurra-muted);
    font-size: 0.72rem;
    font-weight: var(--font-black);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.aurra-ledger-tile strong {
    color: #0f172a;
    font-size: 1.12rem;
    font-weight: var(--font-black);
    overflow-wrap: anywhere;
}

.aurra-ledger-tile small {
    color: var(--aurra-muted);
    font-size: 0.83rem;
    font-weight: 600;
    line-height: 1.45;
}

.aurra-health-card {
    background: var(--aurra-panel-soft);
    border: 1px solid #dbe6f3;
    border-radius: 16px;
    display: grid;
    gap: 0.25rem;
    margin-top: 0.85rem;
    padding: 0.85rem 0.95rem;
}

.aurra-health-card.is-warning {
    background: linear-gradient(180deg, #fff7ed, #fffbeb);
    border-color: #fcd34d;
}

.aurra-health-card strong {
    color: #0f172a;
    font-size: 1rem;
    font-weight: var(--font-black);
}

.aurra-health-card p {
    color: var(--aurra-text);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.aurra-timeline {
    display: grid;
    gap: var(--space-md);
}

.aurra-timeline-item {
    display: grid;
    gap: 0.95rem;
    grid-template-columns: auto minmax(0, 1fr);
}

.aurra-timeline-icon {
    align-items: center;
    border-radius: 14px;
    display: inline-flex;
    font-size: 0.86rem;
    font-weight: var(--font-black);
    height: 38px;
    justify-content: center;
    width: 38px;
}

.aurra-timeline-icon-green {
    background: #dcfce7;
    color: #15803d;
}

.aurra-timeline-icon-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.aurra-timeline-content {
    background: var(--aurra-panel-soft);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 0.9rem 1rem;
}

.aurra-timeline-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 0.45rem;
}

.aurra-timeline-meta small {
    color: var(--aurra-muted);
    font-weight: var(--font-bold);
}

.aurra-timeline-content strong {
    color: #0f172a;
    display: block;
    font-size: 1rem;
    font-weight: var(--font-black);
}

.aurra-timeline-content p {
    color: var(--aurra-text);
    font-weight: 600;
    margin: 0.35rem 0 0;
}

.aurra-activity-table-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    max-height: 320px;
    overflow: auto;
}

.aurra-activity-table {
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    width: 100%;
}

.aurra-activity-table th {
    background: #eef2ff;
    color: #334155;
    font-size: 0.72rem;
    font-weight: var(--font-black);
    letter-spacing: 0.03em;
    padding: 0.72rem 0.8rem;
    position: sticky;
    text-transform: uppercase;
    top: 0;
    z-index: 2;
}

.aurra-activity-table th:nth-child(1) {
    width: 96px;
}

.aurra-activity-table th:nth-child(4) {
    width: 78px;
}

.aurra-activity-table th:nth-child(5) {
    width: 70px;
}

.aurra-activity-table td {
    border-top: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 650;
    overflow-wrap: anywhere;
    padding: 0.72rem 0.8rem;
    vertical-align: middle;
}

.aurra-activity-table tbody tr:nth-child(even) td {
    background: rgba(238, 242, 255, 0.32);
}

.aurra-activity-table td strong {
    color: #0f172a;
    display: block;
    font-weight: var(--font-black);
}

.aurra-table-detail {
    color: #64748b !important;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap !important;
}

.aurra-table-date {
    color: #64748b !important;
    white-space: nowrap !important;
}

.aurra-table-chip {
    border-radius: var(--aurra-radius-full);
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: var(--font-black);
    padding: 0.28rem 0.55rem;
}

.aurra-table-chip-green {
    background: #dcfce7;
    color: #15803d;
}

.aurra-table-chip-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.aurra-table-chip-cyan {
    background: #cffafe;
    color: #0e7490;
}

.aurra-kebab-btn {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dbe6f3;
    border-radius: var(--aurra-radius-full);
    display: inline-flex;
    gap: 0.18rem;
    height: 34px;
    justify-content: center;
    width: 42px;
}

.aurra-kebab-btn span {
    background: #64748b;
    border-radius: var(--aurra-radius-full);
    display: block;
    height: 4px;
    width: 4px;
}

.aurra-shortcut-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aurra-shortcut-tile {
    align-content: start;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.96));
    border: 1px solid #dbe6f3;
    border-radius: 16px;
    box-shadow: none;
    color: #0f172a;
    display: grid;
    gap: 0.45rem;
    min-height: 126px;
    padding: 0.9rem;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.aurra-shortcut-tile:hover {
    border-color: #93c5fd;
    box-shadow: 0 20px 38px rgba(37, 99, 235, 0.12);
    color: #0f172a;
    transform: translateY(-3px);
}

.aurra-shortcut-tile strong {
    font-size: 1.03rem;
    font-weight: var(--font-black);
}

.aurra-shortcut-tile small {
    color: var(--aurra-muted);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.45;
}

.aurra-shortcut-tile.is-locked {
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}

.aurra-shortcut-icon {
    align-items: center;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 12px;
    color: #2563eb;
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: var(--font-black);
    height: 38px;
    justify-content: center;
    width: 38px;
}

.developer-credit {
    align-items: center;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(219, 230, 243, 0.85);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 0.8rem 1rem;
}

.developer-credit-main,
.developer-credit-contact {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.8rem;
}

.developer-credit,
.developer-credit a {
    color: var(--aurra-muted);
    font-size: 0.78rem;
    font-weight: var(--font-bold);
}

.developer-credit strong {
    color: #0f172a;
}

.developer-credit-contact span {
    color: #0f766e;
    font-size: 0.73rem;
    font-weight: var(--font-black);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mobile-sidebar .offcanvas-body,
.mobile-sidebar .offcanvas-header {
    background: linear-gradient(180deg, #0f172a, #0b1220);
    color: #e2e8f0;
}

.mobile-sidebar .offcanvas-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.mobile-sidebar .offcanvas-title {
    color: #ffffff;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 1.15rem;
    font-weight: var(--font-bold);
}

.mobile-sidebar .nav-item {
    color: #cbd5e1;
}

.mobile-sidebar .btn-close {
    filter: invert(1);
}

@media (max-width: 991.98px) {
    .topbar-search-wrap {
        display: none !important;
    }

    .profile-progress-copy {
        display: none;
    }

    .profile-progress-chip {
        padding-right: 0.38rem;
    }

    .aurra-command-center,
    .aurra-dashboard-header,
    .aurra-widget-head,
    .developer-credit {
        align-items: stretch;
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .aurra-command-main {
        min-height: auto;
    }

    .aurra-command-metrics {
        grid-template-columns: 1fr;
    }

    .aurra-quick-actions,
    .developer-credit-main,
    .developer-credit-contact {
        justify-content: flex-start;
    }

    .aurra-attendance-layout,
    .aurra-ledger-grid,
    .aurra-shortcut-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .topbar-brand {
        min-width: 0;
    }

    .topbar-school-name {
        font-size: 1rem;
    }

    .aurra-dashboard-title {
        font-size: 1.8rem;
    }

    .aurra-command-main,
    .aurra-command-actions {
        padding: var(--space-md);
    }

    .aurra-stat-top {
        flex-direction: column;
    }

    .aurra-stat-trend {
        align-self: flex-start;
    }

    .aurra-quick-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .aurra-attendance-layout,
    .aurra-shortcut-grid {
        grid-template-columns: 1fr;
    }
}

/* Final dashboard polish */
.aurra-widget-card {
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.aurra-timeline {
    gap: 1.15rem;
}

.aurra-timeline-item {
    align-items: stretch;
    gap: var(--space-md);
}

.aurra-timeline-icon {
    border-radius: var(--aurra-radius-full);
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.92);
    height: 44px;
    margin-top: 0.2rem;
    position: relative;
    width: 44px;
}

.aurra-timeline-icon::after {
    background: currentColor;
    border-radius: var(--aurra-radius-full);
    content: "";
    height: 12px;
    width: 12px;
}

.aurra-timeline-icon-green {
    background: #dcfce7;
    color: #16a34a;
}

.aurra-timeline-icon-blue {
    background: #dbeafe;
    color: #2563eb;
}

.aurra-timeline-icon-cyan {
    background: #ecfeff;
    color: #0891b2;
}

.aurra-timeline-glyph {
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    display: inline-block;
    height: 10px;
    position: absolute;
    transform: rotate(45deg);
    width: 6px;
}

.aurra-timeline-glyph-plus,
.aurra-timeline-glyph-currency {
    border: 0;
    font-size: 0.78rem;
    font-weight: var(--font-black);
    height: auto;
    line-height: 1;
    transform: none;
    width: auto;
}

.aurra-timeline-content {
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    padding: 1.05rem 1.1rem;
}

.aurra-shortcut-tile {
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    gap: 0.55rem;
}

.aurra-shortcut-tile:hover {
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.1);
    transform: translateY(-4px);
}

.aurra-shortcut-tile strong {
    font-weight: var(--font-extrabold);
    letter-spacing: 0.01em;
}

.aurra-shortcut-icon {
    box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.35);
    height: 46px;
    width: 46px;
}

.aurra-shortcut-icon svg {
    height: 20px;
    stroke-linecap: round;
    stroke-linejoin: round;
    width: 20px;
}

/* Step 6: admin dashboard lower-section alignment */
.aurra-dashboard-shell .panel-card,
.aurra-dashboard-shell .aurra-widget-card,
.aurra-dashboard-shell .aurra-pg12-card,
.aurra-dashboard-shell .aurra-ledger-tile,
.aurra-dashboard-shell .aurra-health-card,
.aurra-dashboard-shell .aurra-legend-row,
.aurra-dashboard-shell .aurra-activity-table-wrap,
.aurra-dashboard-shell .aurra-shortcut-tile {
    border-radius: var(--aurra-radius);
}

.aurra-dashboard-shell .aurra-widget-card {
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line);
    box-shadow: var(--aurra-shadow);
}

.aurra-pg12-panel {
    background:
        linear-gradient(135deg, rgba(31, 138, 132, 0.08), rgba(68, 143, 198, 0.08)),
        var(--aurra-panel);
    border-color: rgba(31, 138, 132, 0.2);
}

.aurra-pg12-count {
    background: var(--aurra-teal);
}

.aurra-pg12-card {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(203, 215, 225, 0.95);
    box-shadow: none;
    min-height: 7rem;
}

.aurra-pg12-card::after {
    background: linear-gradient(180deg, var(--aurra-teal), var(--aurra-amber));
    right: 0.75rem;
}

.aurra-pg12-card:hover {
    border-color: rgba(31, 138, 132, 0.45);
    box-shadow: 0 16px 32px rgba(23, 33, 43, 0.09);
}

.aurra-pg12-card .aurra-pg12-label,
.aurra-pg12-card em {
    color: var(--aurra-teal);
}

.attendance-donut-thick {
    background:
        radial-gradient(circle closest-side, var(--aurra-panel) 58%, transparent 59%),
        conic-gradient(var(--aurra-green) 0 var(--value), #e6edf2 var(--value) 100%);
    border: 1px solid var(--aurra-line);
    box-shadow: 0 14px 30px rgba(23, 33, 43, 0.08);
}

.aurra-donut-caption,
.aurra-legend-label,
.aurra-ledger-tile span,
.aurra-ledger-tile small,
.aurra-health-card p,
.aurra-table-detail,
.aurra-table-date,
.aurra-shortcut-tile small {
    color: var(--aurra-muted) !important;
}

.aurra-legend-row,
.aurra-ledger-tile,
.aurra-health-card,
.aurra-timeline-content,
.aurra-shortcut-tile {
    background: #f8fbfb;
    border: 1px solid var(--aurra-line);
}

.aurra-legend-bar {
    background: #e6edf2;
}

.aurra-legend-bar::after {
    background: var(--aurra-teal);
}

.aurra-legend-dot-success {
    background: var(--aurra-green);
}

.aurra-legend-dot-danger {
    background: var(--aurra-red);
}

.aurra-legend-dot-warning {
    background: var(--aurra-amber);
}

.aurra-ledger-tile strong,
.aurra-health-card strong,
.aurra-activity-table td strong,
.aurra-shortcut-tile strong {
    color: var(--aurra-ink);
}

.aurra-health-card.is-warning {
    background: linear-gradient(180deg, #fff9ed, #fffdf7);
    border-color: rgba(237, 165, 43, 0.55);
}

.aurra-activity-table-wrap {
    border-color: var(--aurra-line);
    max-height: 340px;
}

.aurra-activity-table th {
    background: #eef4f3;
    color: var(--aurra-muted);
    letter-spacing: 0;
}

.aurra-activity-table td {
    border-top-color: var(--aurra-line);
}

.aurra-activity-table tbody tr:nth-child(even) td {
    background: rgba(238, 244, 243, 0.55);
}

.aurra-table-chip {
    border-radius: var(--aurra-radius);
}

.aurra-table-chip-green {
    background: #e3f3ed;
    color: var(--aurra-green);
}

.aurra-table-chip-blue {
    background: #e3f0f8;
    color: var(--aurra-blue);
}

.aurra-table-chip-cyan {
    background: #e4f4f2;
    color: var(--aurra-teal);
}

.aurra-kebab-btn {
    border-color: var(--aurra-line);
    border-radius: var(--aurra-radius);
}

.aurra-kebab-btn:hover,
.aurra-kebab-btn:focus-visible {
    border-color: rgba(31, 138, 132, 0.38);
}

.aurra-shortcut-tile {
    min-height: 118px;
}

.aurra-shortcut-tile:hover {
    border-color: rgba(31, 138, 132, 0.34);
    box-shadow: 0 16px 30px rgba(23, 33, 43, 0.09);
    transform: translateY(-2px);
}

.aurra-shortcut-icon {
    background: linear-gradient(135deg, #eef7f5, #e3f3ed);
    box-shadow: inset 0 0 0 1px rgba(31, 138, 132, 0.22);
    color: var(--aurra-teal);
}

/* Step 7: admissions and student module alignment */
.aurra-student-command {
    background: #ffffff;
    border: 1px solid var(--aurra-line);
    border-radius: var(--aurra-radius);
    box-shadow: var(--aurra-shadow);
    display: grid;
    gap: var(--space-md);
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    margin-bottom: 1rem;
    overflow: hidden;
}

.aurra-student-command-main {
    background: linear-gradient(135deg, #071123 0%, #132a55 100%);
    color: #ffffff;
    padding: 1.5rem;
}

.aurra-student-command-main .page-eyebrow {
    color: #67e8f9;
}

.aurra-student-command-main h2 {
    color: #ffffff;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    font-weight: var(--font-black);
    line-height: 1.05;
    margin: 0.55rem 0;
}

.aurra-student-command-main p {
    color: #dbeafe;
    font-weight: var(--font-bold);
    margin: 0;
    max-width: 760px;
}

.aurra-student-command-metrics,
.admission-readiness-grid,
.student-family-readiness {
    display: grid;
    gap: 0.75rem;
}

.aurra-student-command-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.25rem;
}

.aurra-student-command-metrics > div {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: var(--aurra-radius);
    padding: 0.9rem;
}

.aurra-student-command-metrics span,
.admission-readiness-grid span,
.student-family-readiness span {
    color: var(--aurra-muted);
    display: block;
    font-size: 0.72rem;
    font-weight: var(--font-black);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.aurra-student-command-metrics span {
    color: #bfdbfe;
}

.aurra-student-command-metrics strong {
    color: #ffffff;
    display: block;
    font-size: 1.75rem;
    font-weight: 950;
    line-height: 1;
    margin-top: 0.35rem;
}

.aurra-student-command-metrics small {
    color: #cbd5e1;
    display: block;
    font-weight: var(--font-bold);
    margin-top: 0.3rem;
}

.aurra-student-command-rail {
    align-content: start;
    display: grid;
    gap: 0.75rem;
    padding: 1.25rem;
}

.aurra-student-rail-label {
    color: var(--aurra-muted);
    font-size: 0.74rem;
    font-weight: var(--font-black);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.aurra-student-rail-note {
    background: var(--aurra-bg-soft);
    border: 1px solid var(--aurra-line);
    border-radius: var(--aurra-radius);
    padding: 0.9rem;
}

.aurra-student-rail-note strong {
    color: var(--aurra-ink);
    display: block;
    font-weight: var(--font-black);
}

.aurra-student-rail-note span {
    color: var(--aurra-muted);
    display: block;
    font-weight: var(--font-bold);
    margin-top: 0.25rem;
}

.admission-form-shell,
.admission-card,
.student-detail-panel,
.student-profile-card,
.student-filter-advanced {
    border-radius: var(--aurra-radius);
}

.admission-workflow-hero {
    background: #071123;
    border-radius: var(--aurra-radius);
    color: #ffffff;
    display: grid;
    gap: var(--space-md);
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    margin-bottom: 1rem;
    padding: 1.25rem;
}

.admission-workflow-hero .page-eyebrow {
    color: #67e8f9;
}

.admission-workflow-hero h2 {
    color: #ffffff;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    font-weight: var(--font-black);
    line-height: 1.08;
    margin: 0.45rem 0;
}

.admission-workflow-hero p {
    color: #dbeafe;
    font-weight: var(--font-bold);
    margin: 0;
}

.admission-readiness-grid {
    grid-template-columns: 1fr;
}

.admission-readiness-grid > div,
.student-family-readiness > div {
    background: #ffffff;
    border: 1px solid var(--aurra-line);
    border-radius: var(--aurra-radius);
    padding: 0.85rem;
}

.admission-readiness-grid > div {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
}

.admission-readiness-grid span {
    color: #bfdbfe;
}

.admission-readiness-grid strong {
    color: #ffffff;
    display: block;
    font-weight: var(--font-black);
    margin-top: 0.25rem;
}

.student-family-readiness {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.student-family-readiness strong {
    color: var(--aurra-ink);
    display: block;
    font-weight: var(--font-black);
    margin-top: 0.2rem;
}

.student-family-readiness-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Step 8: fees and accounts module alignment */
.aurra-finance-command,
.aurra-defaulter-command {
    background: #ffffff;
    border: 1px solid var(--aurra-line);
    border-radius: var(--aurra-radius);
    box-shadow: var(--aurra-shadow);
    display: grid;
    gap: var(--space-md);
    margin-bottom: 1rem;
    overflow: hidden;
}

.aurra-finance-command {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
}

.aurra-finance-command-main,
.aurra-defaulter-command {
    background: linear-gradient(135deg, #071123 0%, #123d49 100%);
    color: #ffffff;
    padding: 1.5rem;
}

.aurra-finance-command-main .page-eyebrow,
.aurra-defaulter-command .page-eyebrow {
    color: #67e8f9;
}

.aurra-finance-command-main h2,
.aurra-defaulter-command h2 {
    color: #ffffff;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    font-weight: var(--font-black);
    line-height: 1.05;
    margin: 0.55rem 0;
}

.aurra-finance-command-main p,
.aurra-defaulter-command p {
    color: #dbeafe;
    font-weight: var(--font-bold);
    margin: 0;
    max-width: 760px;
}

.aurra-finance-command-metrics,
.aurra-defaulter-command-metrics,
.aurra-ledger-summary {
    display: grid;
    gap: 0.75rem;
}

.aurra-finance-command-metrics,
.aurra-defaulter-command-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.25rem;
}

.aurra-finance-command-metrics > div,
.aurra-defaulter-command-metrics > div {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: var(--aurra-radius);
    padding: 0.9rem;
}

.aurra-finance-command-metrics span,
.aurra-defaulter-command-metrics span,
.aurra-ledger-summary span {
    color: #bfdbfe;
    display: block;
    font-size: 0.72rem;
    font-weight: var(--font-black);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.aurra-finance-command-metrics strong,
.aurra-defaulter-command-metrics strong {
    color: #ffffff;
    display: block;
    font-size: 1.5rem;
    font-weight: 950;
    line-height: 1.1;
    margin-top: 0.35rem;
}

.aurra-finance-command-metrics small {
    color: #cbd5e1;
    display: block;
    font-weight: var(--font-bold);
    margin-top: 0.3rem;
}

.aurra-finance-command-rail {
    align-content: start;
    display: grid;
    gap: 0.75rem;
    padding: 1.25rem;
}

.aurra-finance-rail-label {
    color: var(--aurra-muted);
    font-size: 0.74rem;
    font-weight: var(--font-black);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.aurra-finance-rail-note {
    background: var(--aurra-bg-soft);
    border: 1px solid var(--aurra-line);
    border-radius: var(--aurra-radius);
    padding: 0.9rem;
}

.aurra-finance-rail-note strong {
    color: var(--aurra-ink);
    display: block;
    font-weight: var(--font-black);
}

.aurra-finance-rail-note span {
    color: var(--aurra-muted);
    display: block;
    font-weight: var(--font-bold);
    margin-top: 0.25rem;
}

.aurra-ledger-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.aurra-ledger-summary article {
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line);
    border-radius: var(--aurra-radius);
    box-shadow: var(--aurra-shadow);
    padding: var(--space-md);
}

.aurra-ledger-summary span {
    color: var(--aurra-muted);
}

.aurra-ledger-summary strong {
    color: var(--aurra-ink);
    display: block;
    font-size: 1.35rem;
    font-weight: 950;
    margin-top: 0.25rem;
}

.aurra-ledger-summary article.is-danger strong {
    color: var(--aurra-red);
}

/* Step 9/10: attendance, exams, results, certificates alignment */
.aurra-attendance-command,
.aurra-exam-command {
    background: #ffffff;
    border: 1px solid var(--aurra-line);
    border-radius: var(--aurra-radius);
    box-shadow: var(--aurra-shadow);
    display: grid;
    gap: var(--space-md);
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    margin-bottom: 1rem;
    overflow: hidden;
}

.aurra-attendance-command-main,
.aurra-exam-command-main,
.aurra-result-command,
.aurra-certificate-command {
    background: linear-gradient(135deg, #071123 0%, #132a55 100%);
    color: #ffffff;
    padding: 1.5rem;
}

.aurra-attendance-command-main .page-eyebrow,
.aurra-exam-command-main .page-eyebrow,
.aurra-result-command .page-eyebrow,
.aurra-certificate-command .page-eyebrow {
    color: #67e8f9;
}

.aurra-attendance-command-main h2,
.aurra-exam-command-main h2,
.aurra-result-command h2,
.aurra-certificate-command h2 {
    color: #ffffff;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: var(--font-black);
    line-height: 1.06;
    margin: 0.55rem 0;
}

.aurra-attendance-command-main p,
.aurra-exam-command-main p,
.aurra-result-command p,
.aurra-certificate-command p {
    color: #dbeafe;
    font-weight: var(--font-bold);
    margin: 0;
    max-width: 760px;
}

.aurra-attendance-command-metrics,
.aurra-exam-command-metrics,
.aurra-result-command-metrics,
.aurra-certificate-command-metrics {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.25rem;
}

.aurra-attendance-command-metrics > div,
.aurra-exam-command-metrics > div,
.aurra-result-command-metrics > div,
.aurra-certificate-command-metrics > div {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: var(--aurra-radius);
    padding: 0.9rem;
}

.aurra-attendance-command-metrics span,
.aurra-exam-command-metrics span,
.aurra-result-command-metrics span,
.aurra-certificate-command-metrics span {
    color: #bfdbfe;
    display: block;
    font-size: 0.72rem;
    font-weight: var(--font-black);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.aurra-attendance-command-metrics strong,
.aurra-exam-command-metrics strong,
.aurra-result-command-metrics strong,
.aurra-certificate-command-metrics strong {
    color: #ffffff;
    display: block;
    font-size: 1.45rem;
    font-weight: 950;
    line-height: 1.1;
    margin-top: 0.35rem;
    overflow-wrap: anywhere;
}

.aurra-attendance-command-metrics small,
.aurra-exam-command-metrics small {
    color: #cbd5e1;
    display: block;
    font-weight: var(--font-bold);
    margin-top: 0.3rem;
}

.aurra-attendance-command-rail,
.aurra-exam-command-rail {
    align-content: start;
    display: grid;
    gap: 0.75rem;
    padding: 1.25rem;
}

.aurra-attendance-rail-label,
.aurra-exam-rail-label {
    color: var(--aurra-muted);
    font-size: 0.74rem;
    font-weight: var(--font-black);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.aurra-attendance-rail-note,
.aurra-exam-rail-note {
    background: var(--aurra-bg-soft);
    border: 1px solid var(--aurra-line);
    border-radius: var(--aurra-radius);
    padding: 0.9rem;
}

.aurra-attendance-rail-note strong,
.aurra-exam-rail-note strong {
    color: var(--aurra-ink);
    display: block;
    font-weight: var(--font-black);
}

.aurra-attendance-rail-note span,
.aurra-exam-rail-note span {
    color: var(--aurra-muted);
    display: block;
    font-weight: var(--font-bold);
    margin-top: 0.25rem;
}

.aurra-result-command,
.aurra-certificate-command {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--aurra-radius);
    box-shadow: var(--aurra-shadow);
    display: grid;
    gap: var(--space-md);
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    margin-bottom: 1rem;
}

/* Step 11: communications alignment */
.aurra-communications-command {
    background: #ffffff;
    border: 1px solid var(--aurra-line);
    border-radius: var(--aurra-radius);
    box-shadow: var(--aurra-shadow);
    display: grid;
    gap: var(--space-md);
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    margin-bottom: 1rem;
    overflow: hidden;
}

.aurra-communications-command-main {
    background: linear-gradient(135deg, #071123 0%, #123047 100%);
    color: #ffffff;
    padding: 1.5rem;
}

.aurra-communications-command-main .page-eyebrow {
    color: #5eead4;
}

.aurra-communications-command-main h2 {
    color: #ffffff;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: var(--font-black);
    line-height: 1.06;
    margin: 0.55rem 0;
}

.aurra-communications-command-main p {
    color: #dbeafe;
    font-weight: var(--font-bold);
    margin: 0;
    max-width: 760px;
}

.aurra-communications-command-metrics {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 1.25rem;
}

.aurra-communications-command-metrics > div {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: var(--aurra-radius);
    padding: 0.9rem;
}

.aurra-communications-command-metrics span {
    color: #bfdbfe;
    display: block;
    font-size: 0.72rem;
    font-weight: var(--font-black);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.aurra-communications-command-metrics strong {
    color: #ffffff;
    display: block;
    font-size: 1.45rem;
    font-weight: 950;
    line-height: 1.1;
    margin-top: 0.35rem;
    overflow-wrap: anywhere;
}

.aurra-communications-command-metrics small {
    color: #cbd5e1;
    display: block;
    font-weight: var(--font-bold);
    margin-top: 0.3rem;
}

.aurra-communications-command-rail {
    align-content: start;
    display: grid;
    gap: 0.75rem;
    padding: 1.25rem;
}

.aurra-communications-rail-label {
    color: var(--aurra-muted);
    font-size: 0.74rem;
    font-weight: var(--font-black);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.aurra-communications-rail-note {
    background: var(--aurra-bg-soft);
    border: 1px solid var(--aurra-line);
    border-radius: var(--aurra-radius);
    padding: 0.9rem;
}

.aurra-communications-rail-note strong {
    color: var(--aurra-ink);
    display: block;
    font-weight: var(--font-black);
}

.aurra-communications-rail-note span {
    color: var(--aurra-muted);
    display: block;
    font-weight: var(--font-bold);
    margin-top: 0.25rem;
}

.aurra-communications-composer .section-heading,
.aurra-communications-preview .section-heading {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.aurra-communications-composer .section-heading h2,
.aurra-communications-preview .section-heading h2 {
    color: var(--aurra-ink);
    font-size: 1.05rem;
    font-weight: var(--font-black);
    margin: 0.15rem 0 0;
}

@media (max-width: 980px) {
    .aurra-student-command,
    .admission-workflow-hero,
    .aurra-finance-command,
    .aurra-attendance-command,
    .aurra-exam-command,
    .aurra-result-command,
    .aurra-certificate-command,
    .aurra-communications-command {
        grid-template-columns: 1fr;
    }

    .aurra-student-command-metrics,
    .student-family-readiness,
    .student-family-readiness-compact,
    .aurra-finance-command-metrics,
    .aurra-defaulter-command-metrics,
    .aurra-ledger-summary,
    .aurra-attendance-command-metrics,
    .aurra-exam-command-metrics,
    .aurra-result-command-metrics,
    .aurra-certificate-command-metrics,
    .aurra-communications-command-metrics {
        grid-template-columns: 1fr;
    }
}

.developer-credit {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--aurra-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.72rem;
    font-weight: 600;
    gap: 0.35rem 1rem;
    justify-content: space-between;
    line-height: 1.4;
    margin-top: 0.9rem;
    padding: 0;
}

.developer-credit-main,
.developer-credit-contact {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.85rem;
}

.developer-credit,
.developer-credit a,
.developer-credit strong,
.developer-credit-contact span {
    color: var(--aurra-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.developer-credit a:hover {
    color: var(--aurra-muted);
}

.student-detail-page {
    display: grid;
    gap: 1.35rem;
}

.student-detail-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
}

.student-quick-search {
    display: flex;
    gap: var(--space-sm);
    min-width: min(100%, 360px);
}

.student-quick-search .form-control {
    min-width: 220px;
}

.student-header-card {
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 58%, #eef6ff 100%);
    border-radius: 1.35rem;
    display: grid;
    gap: 1.2rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 1.25rem;
}

.student-header-photo {
    align-items: center;
    background: #eaf2ff;
    border: 1px solid #d6e6ff;
    border-radius: 1.1rem;
    color: #2563eb;
    display: flex;
    font-size: 2rem;
    font-weight: var(--font-black);
    height: 96px;
    justify-content: center;
    overflow: hidden;
    width: 80px;
}

.student-header-photo img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.student-header-main h2 {
    color: #0f172a;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: var(--font-black);
    line-height: 1.05;
    margin: 0;
}

.student-header-main p {
    color: var(--aurra-muted);
    font-size: 1rem;
    font-weight: var(--font-bold);
    margin: 0.45rem 0 0;
}

.student-chip {
    background: var(--aurra-panel-soft);
    border: 1px solid #dbe6f3;
    border-radius: var(--aurra-radius-full);
    color: var(--aurra-text);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: var(--font-extrabold);
    padding: 0.4rem 0.7rem;
}

.student-header-metrics {
    display: grid;
    gap: 0.75rem;
    min-width: 190px;
}

.student-header-metrics div {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #dbe6f3;
    border-radius: 1rem;
    padding: 0.8rem 0.95rem;
}

.student-header-metrics span,
.student-detail-grid span,
.student-result-summary span {
    color: var(--aurra-muted);
    display: block;
    font-size: 0.74rem;
    font-weight: var(--font-extrabold);
    text-transform: uppercase;
}

.student-header-metrics strong {
    color: #0f172a;
    display: block;
    font-size: 1.35rem;
    font-weight: var(--font-black);
    line-height: 1.1;
    margin-top: 0.2rem;
}

.student-detail-tabs {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #dbe6f3;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    gap: 0.35rem;
    padding: 0.35rem;
    width: fit-content;
}

.student-detail-tabs .nav-link {
    border-radius: 0.75rem;
    color: var(--aurra-text);
    font-weight: var(--font-extrabold);
}

.student-detail-tabs .nav-link.active {
    background: #17366f;
    color: #ffffff;
}

.student-detail-tab-content {
    min-height: 420px;
}

.student-detail-panel {
    border-radius: 1.25rem;
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
}

.student-section-heading {
    align-items: center;
    display: flex;
    gap: var(--space-md);
    justify-content: space-between;
    margin-bottom: 1rem;
}

.student-section-heading h2 {
    color: #0f172a;
    font-size: 1.28rem;
    font-weight: var(--font-black);
    margin: 0;
}

.student-whatsapp-link {
    align-items: center;
    background: #dcfce7;
    border: 1px solid #86efac;
    border-radius: var(--aurra-radius-full);
    color: #166534;
    display: inline-flex;
    font-weight: var(--font-black);
    gap: 0.45rem;
    padding: 0.55rem 0.75rem;
    text-decoration: none;
}

.student-whatsapp-link span {
    align-items: center;
    background: #22c55e;
    border-radius: 50%;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.7rem;
    height: 1.45rem;
    justify-content: center;
    width: 1.45rem;
}

.student-whatsapp-link:hover {
    color: #14532d;
    transform: translateY(-1px);
}

.student-detail-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.student-detail-grid > div,
.student-result-summary > div {
    background: var(--aurra-panel-soft);
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 0.85rem 0.95rem;
}

.student-detail-grid strong,
.student-result-summary strong {
    color: #0f172a;
    display: block;
    font-size: 0.98rem;
    font-weight: var(--font-black);
    margin-top: 0.25rem;
    overflow-wrap: anywhere;
}

.student-detail-wide {
    grid-column: 1 / -1;
}

.student-result-summary {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.student-detail-table thead th {
    background: #0f172a;
    color: #ffffff;
    font-size: 0.75rem;
    letter-spacing: 0;
    text-transform: uppercase;
}

.student-fee-dot {
    border-radius: var(--aurra-radius-full);
    display: inline-block;
    height: 0.7rem;
    margin-right: 0.45rem;
    width: 0.7rem;
}

.student-fee-dot.is-paid {
    background: #16a34a;
}

.student-fee-dot.is-partial {
    background: #eab308;
}

.student-fee-dot.is-unpaid {
    background: #ef4444;
}

.student-document-list {
    display: grid;
    gap: 0.75rem;
}

.student-document-list a {
    background: var(--aurra-panel-soft);
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    color: #0f172a;
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem 1rem;
    text-decoration: none;
}

.student-document-list a:hover {
    border-color: #93c5fd;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.student-document-list span,
.student-document-list small {
    color: var(--aurra-muted);
    font-weight: var(--font-extrabold);
}

.student-timeline {
    display: grid;
    gap: 0.85rem;
}

.student-timeline-item {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: auto minmax(0, 1fr);
}

.student-timeline-dot {
    background: #64748b;
    border: 5px solid #f1f5f9;
    border-radius: var(--aurra-radius-full);
    box-shadow: 0 0 0 1px #dbe6f3;
    height: 1.3rem;
    margin-top: 0.15rem;
    width: 1.3rem;
}

.student-timeline-dot.is-green {
    background: #22c55e;
}

.student-timeline-dot.is-blue {
    background: #2563eb;
}

.student-timeline-dot.is-red {
    background: #ef4444;
}

.student-timeline-item strong {
    color: #0f172a;
    display: block;
    font-weight: 850;
}

.student-timeline-item small {
    color: var(--aurra-muted);
    display: block;
    font-weight: var(--font-bold);
    margin-top: 0.15rem;
}

.admission-form-shell {
    background: #f1f5f9;
    border-radius: 1.75rem;
    padding: 1.15rem;
}

.admission-section-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.admission-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
}

.admission-card-vital {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 44%, #ffffff 100%);
    border-color: var(--aurra-blue-border-light);
}

.fee-structure-strip {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.fee-structure-strip span {
    background: var(--aurra-panel-soft);
    border: 1px solid #dbeafe;
    border-radius: var(--aurra-radius-full);
    color: #334155;
    font-size: 0.82rem;
    padding: 0.45rem 0.75rem;
}

.fee-preview-card {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fee-preview-card > div {
    background: linear-gradient(135deg, #ffffff, #eff6ff);
    border: 1px solid #dbeafe;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-sm);
    padding: var(--space-md);
}

.fee-preview-card span {
    color: var(--aurra-muted);
    display: block;
    font-size: 0.78rem;
    font-weight: var(--font-extrabold);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.fee-preview-card strong {
    color: #0f172a;
    display: block;
    font-size: 1.65rem;
}

.voucher-print-grid {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.voucher-copy {
    background: #fff;
    border: 1px dashed #94a3b8;
    border-radius: 1rem;
    padding: var(--space-md);
}

.voucher-lines {
    margin: 0;
}

.voucher-lines div {
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    padding: 0.42rem 0;
}

.voucher-lines dt {
    color: var(--aurra-muted);
    font-size: 0.78rem;
    font-weight: var(--font-extrabold);
}

.voucher-lines dd {
    color: #0f172a;
    font-weight: var(--font-extrabold);
    margin: 0;
    text-align: right;
}

.voucher-total {
    background: var(--aurra-blue-light);
    margin-top: 0.5rem;
    padding-inline: 0.5rem !important;
}

.voucher-signatures {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.voucher-signatures span {
    border-top: 1px solid #94a3b8;
    color: var(--aurra-muted);
    font-size: 0.75rem;
    padding-top: 0.35rem;
    width: 42%;
}

@media (max-width: 900px) {
    .fee-preview-card,
    .voucher-print-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    .print-hide,
    .app-sidebar,
    .app-topbar,
    .sidebar,
    .topbar {
        display: none !important;
    }

    .app-main,
    .content,
    main {
        margin: 0 !important;
        padding: 0 !important;
    }

    .voucher-print-grid {
        gap: 0.4rem;
        grid-template-columns: repeat(3, 1fr);
    }

    .voucher-copy {
        border-radius: 0;
        box-shadow: none;
        page-break-inside: avoid;
    }
}

.admission-card-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.admission-card-title {
    align-items: center;
    display: flex;
    gap: 0.85rem;
}

.admission-card-icon {
    align-items: center;
    background: var(--aurra-blue-light);
    border: 1px solid var(--aurra-blue-border-light);
    border-radius: 1rem;
    color: #2563eb;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.admission-card-icon svg {
    height: 22px;
    width: 22px;
}

.admission-card-title > div > span {
    color: #2563eb;
    display: block;
    font-size: 0.72rem;
    font-weight: var(--font-black);
    text-transform: uppercase;
}

.admission-card-head h2 {
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: var(--font-black);
    margin: 0.15rem 0 0;
}

.admission-card-fields {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admission-card-fields-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admission-field-wide {
    grid-column: 1 / -1;
}

.admission-identity-layout {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: 190px minmax(0, 1fr);
    position: relative;
}

.student-photo-dropzone {
    align-items: center;
    align-self: start;
    background: linear-gradient(180deg, #f8fafc, #ffffff);
    border: 1px dashed #93c5fd;
    border-radius: 1.5rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-height: 210px;
    justify-content: center;
    padding: var(--space-md);
    position: relative;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.student-photo-dropzone:hover,
.student-photo-dropzone.is-dragging {
    border-color: #2563eb;
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.13);
    transform: translateY(-2px);
}

.student-photo-preview {
    align-items: center;
    background: var(--aurra-blue-light);
    border: 1px solid var(--aurra-blue-border-light);
    border-radius: var(--aurra-radius-full);
    color: #2563eb;
    display: inline-flex;
    height: 112px;
    justify-content: center;
    overflow: hidden;
    width: 112px;
}

.student-photo-preview svg {
    height: 48px;
    width: 48px;
}

.student-photo-preview img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.profile-logo-upload {
    align-items: center;
    display: flex;
    gap: var(--space-md);
}

.profile-logo-preview {
    align-items: center;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: var(--aurra-radius-full);
    color: #15803d;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 92px;
    height: 92px;
    justify-content: center;
    overflow: hidden;
    position: relative;
    width: 92px;
}

.profile-logo-preview img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.photo-upload-action {
    align-items: center;
    background: #2563eb;
    border: 2px solid #ffffff;
    border-radius: var(--aurra-radius-full);
    bottom: 0.35rem;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
    color: #ffffff;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    position: absolute;
    right: 0.35rem;
    width: 34px;
}

[data-photo-dropzone].is-ready-to-save .photo-upload-action {
    background: #16a34a;
    box-shadow: 0 8px 18px rgba(22, 163, 74, 0.28);
}

[data-photo-dropzone].is-ready-to-save .photo-upload-action::after {
    background: #ffffff;
    border-radius: var(--aurra-radius-full);
    content: "";
    height: 6px;
    position: absolute;
    right: 5px;
    top: 5px;
    width: 6px;
}

.student-photo-dropzone .photo-upload-action {
    bottom: 4.55rem;
    right: 2.1rem;
}

.passport-photo-box .photo-upload-action {
    bottom: 0.35rem;
    right: 0.35rem;
}

.photo-upload-action svg,
.photo-upload-choose svg {
    height: 18px;
    width: 18px;
}

.photo-upload-choose {
    align-items: center;
    display: inline-flex;
    gap: 0.45rem;
    margin-right: 0.55rem;
}

.photo-upload-filename {
    color: var(--aurra-muted);
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 750;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.student-photo-copy {
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 850;
}

.student-photo-hint {
    color: var(--aurra-muted);
    font-size: 0.78rem;
    font-weight: var(--font-bold);
}

.student-photo-remove {
    background: #ffffff;
    border: 1px solid #dbe6f3;
    border-radius: var(--aurra-radius-full);
    color: var(--aurra-muted);
    font-size: 0.78rem;
    font-weight: 850;
    left: 1rem;
    padding: 0.35rem 0.75rem;
    position: absolute;
    top: 1rem;
}

.student-photo-remove:hover {
    color: #dc2626;
}

.calculated-age {
    background: var(--aurra-panel-soft);
    border: 1px solid #e2e8f0;
    border-radius: var(--aurra-radius-full);
    color: var(--aurra-muted);
    font-size: 0.74rem;
    font-weight: 850;
    padding: 0.18rem 0.5rem;
    white-space: nowrap;
}

.admission-confirm-btn.is-loading [data-submit-spinner] {
    display: inline-block !important;
}

.admission-switch {
    background: var(--aurra-panel-soft);
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 0.8rem 0.95rem 0.8rem 2.8rem;
}

.admission-switch .form-check-label {
    color: #334155;
    font-weight: var(--font-extrabold);
}

.admission-accordion {
    border-top: 1px solid #e2e8f0;
    margin-top: 1rem;
    padding-top: 1rem;
}

.admission-accordion-toggle {
    align-items: center;
    background: var(--aurra-panel-soft);
    border: 1px solid #dbe6f3;
    border-radius: 1rem;
    color: #0f172a;
    display: flex;
    font-weight: var(--font-black);
    gap: 0.75rem;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    width: 100%;
}

.admission-accordion-toggle:hover,
.admission-accordion-toggle[aria-expanded="true"] {
    background: var(--aurra-blue-light);
    border-color: var(--aurra-blue-border-light);
}

.admission-accordion-toggle svg {
    color: #2563eb;
    height: 20px;
    transition: transform 0.2s ease;
    width: 20px;
}

.admission-accordion-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.admission-accordion-panel {
    padding-top: 1rem;
}

.admission-submit-bar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
    padding-top: 1rem;
}

.student-filter-shell {
    padding: var(--space-md);
}

.student-filter-primary {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.student-filter-primary > .form-select {
    flex: 0 1 190px;
}

.student-search-control {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dbe6f3;
    border-radius: 0.95rem;
    display: flex;
    flex: 1 1 300px;
    gap: 0.65rem;
    padding: 0 0.85rem;
}

.student-search-control svg {
    color: var(--aurra-muted);
    flex: 0 0 auto;
    height: 1.2rem;
    width: 1.2rem;
}

.student-search-control .form-control {
    border: 0;
    box-shadow: none;
    padding-left: 0;
}

.student-filter-advanced {
    background: var(--aurra-panel-soft);
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 0.9rem;
    padding: 0.9rem;
}

.student-filter-actions {
    align-items: end;
    display: flex;
    gap: var(--space-sm);
}

.student-filter-footer {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    margin-top: 0.85rem;
}

.premium-student-table tbody tr.student-row-alt td {
    background: var(--aurra-panel-soft);
}

.student-initial {
    align-items: center;
    border-radius: var(--aurra-radius-full);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1rem;
    font-weight: var(--font-black);
    height: 42px;
    justify-content: center;
    width: 42px;
}

.student-initial-0 {
    background: #dbeafe;
    color: #1d4ed8;
}

.student-initial-1 {
    background: #dcfce7;
    color: #15803d;
}

.student-initial-2 {
    background: #fef3c7;
    color: #b45309;
}

.student-initial-3 {
    background: #fce7f3;
    color: #be185d;
}

.student-initial-4 {
    background: #ede9fe;
    color: #6d28d9;
}

.student-phone-line {
    align-items: center;
    color: var(--aurra-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.82rem;
    font-weight: var(--font-bold);
    gap: 0.35rem;
}

.student-phone-whatsapp {
    align-items: center;
    background: #dcfce7;
    border-radius: var(--aurra-radius-full);
    color: #16a34a;
    display: inline-flex;
    height: 1.45rem;
    justify-content: center;
    width: 1.45rem;
}

.student-phone-whatsapp svg {
    height: 1rem;
    width: 1rem;
}

.student-phone-whatsapp:hover {
    background: #22c55e;
    color: #ffffff;
}

.status-withdrawn {
    background: #fee2e2;
    color: #b91c1c;
}

.compact-analytics-strip,
.fee-progress-strip,
.expense-analytics-header,
.staff-overview-strip {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    padding: var(--space-lg);
}

.compact-analytics-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.analytics-mini-card,
.fee-progress-strip,
.expense-analytics-header,
.student-performance-header {
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius-lg);
    box-shadow: var(--aurra-shadow-sm);
}

.staff-overview-strip {
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius-lg);
    box-shadow: var(--aurra-shadow-sm);
}

.analytics-mini-card {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    min-height: 76px;
    padding: 0.8rem 0.95rem;
}

.analytics-mini-card span:not(.analytics-icon),
.fee-progress-metric span,
.expense-analytics-header article span,
.staff-overview-strip article span {
    color: var(--aurra-muted);
    display: block;
    font-size: var(--text-xs);
    font-weight: var(--font-extrabold);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.analytics-mini-card strong,
.fee-progress-metric strong,
.expense-analytics-header article strong,
.staff-overview-strip article strong {
    color: var(--aurra-ink);
    display: block;
    font-size: var(--text-2xl);
    font-weight: var(--font-black);
    line-height: var(--leading-tight);
    margin-top: var(--space-xs);
}

.analytics-icon {
    align-items: center;
    border-radius: 1rem;
    display: inline-flex;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem;
}

.analytics-icon svg {
    height: 1.25rem;
    width: 1.25rem;
}

.analytics-blue {
    background: #dbeafe;
    color: #2563eb;
}

.analytics-indigo {
    background: #e0e7ff;
    color: #4f46e5;
}

.analytics-green {
    background: #dcfce7;
    color: #16a34a;
}

.analytics-amber {
    background: #fef3c7;
    color: #d97706;
}

.fee-progress-strip {
    grid-template-columns: minmax(260px, 1.7fr) repeat(3, minmax(150px, 1fr));
    padding: var(--space-md);
}

.fee-progress-main,
.fee-progress-metric,
.expense-analytics-header article,
.staff-overview-strip article {
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
    padding: var(--space-md);
}

/* Colored left borders for staff overview cards */
.staff-overview-strip article {
    border-left: 4px solid transparent;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.staff-overview-strip article:nth-child(1) {
    border-left-color: var(--aurra-primary);
}

.staff-overview-strip article:nth-child(2) {
    border-left-color: var(--aurra-blue);
}

.staff-overview-strip article:nth-child(3) {
    border-left-color: var(--aurra-amber);
}

.staff-overview-strip article:nth-child(4) {
    border-left-color: var(--aurra-red);
}

.staff-overview-strip article:hover {
    box-shadow: var(--aurra-shadow-md);
    transform: translateY(-2px);
}

.financial-progress-shell {
    background: #f1f5f9;
    border-radius: var(--aurra-radius-full);
    height: 0.72rem;
    overflow: hidden;
}

.financial-progress-fill {
    background: linear-gradient(90deg, #16a34a, #f59e0b);
    border-radius: inherit;
    display: block;
    height: 100%;
}

.fee-progress-caption {
    color: var(--aurra-muted);
    display: flex;
    font-size: 0.8rem;
    font-weight: var(--font-extrabold);
    justify-content: space-between;
    margin-top: 0.55rem;
}

.student-performance-header {
    align-items: center;
    display: grid;
    gap: var(--space-md);
    grid-template-columns: 1.2fr auto minmax(150px, 0.5fr);
    margin-bottom: 1rem;
    padding: var(--space-md);
}

.student-performance-header h2 {
    font-size: 1.2rem;
    font-weight: 950;
    margin-bottom: 0.2rem;
}

.performance-ring-row {
    display: flex;
    gap: 0.75rem;
}

.performance-ring-row article {
    align-items: center;
    display: grid;
    gap: 0.4rem;
    justify-items: center;
    min-width: 82px;
}

.performance-ring-row strong {
    color: var(--aurra-text);
    font-size: 0.72rem;
    text-align: center;
}

.performance-ring {
    align-items: center;
    background: conic-gradient(#2563eb calc(var(--value) * 1%), #e2e8f0 0);
    border-radius: 50%;
    display: inline-flex;
    height: 68px;
    justify-content: center;
    position: relative;
    width: 68px;
}

.performance-ring::after {
    background: #ffffff;
    border-radius: 50%;
    content: "";
    height: 50px;
    position: absolute;
    width: 50px;
}

.performance-ring span {
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 950;
    position: relative;
    z-index: 1;
}

.ring-indigo {
    background: conic-gradient(#4f46e5 calc(var(--value) * 1%), #e2e8f0 0);
}

.ring-green {
    background: conic-gradient(#16a34a calc(var(--value) * 1%), #e2e8f0 0);
}

.performance-sparkline span {
    color: var(--aurra-muted);
    display: block;
    font-size: 0.72rem;
    font-weight: var(--font-black);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.performance-sparkline div {
    align-items: end;
    background: var(--aurra-panel-soft);
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    display: flex;
    gap: 0.35rem;
    height: 64px;
    padding: 0.45rem;
}

.performance-sparkline i {
    background: linear-gradient(180deg, #2563eb, #93c5fd);
    border-radius: 999px 999px 0 0;
    display: block;
    flex: 1 1 0;
    min-height: 8px;
}

.performance-sparkline em {
    align-self: center;
    color: var(--aurra-muted);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: var(--font-extrabold);
}

.expense-analytics-header {
    align-items: center;
    grid-template-columns: 1.4fr repeat(3, minmax(150px, 1fr));
    padding: var(--space-md);
}

.expense-donut-wrap {
    align-items: center;
    display: flex;
    gap: 0.9rem;
}

.expense-donut {
    background: conic-gradient(#4f46e5 0 var(--salary-angle), #64748b var(--salary-angle) var(--bill-angle), #cbd5e1 var(--bill-angle) 360deg);
    border: 8px solid #f8fafc;
    border-radius: 50%;
    box-shadow: inset 0 0 0 12px #ffffff;
    height: 82px;
    width: 82px;
}

.staff-overview-strip {
    align-items: stretch;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    padding: var(--space-md);
}

.staff-attendance-cta {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-width: 150px;
}

.fee-filter-row,
.fee-filter-controls,
.fee-action-cell,
.fee-student-cell {
    align-items: center;
    display: flex;
    gap: 0.6rem;
}

.fee-filter-row {
    justify-content: space-between;
}

.fee-filter-controls {
    flex: 1 1 auto;
    flex-wrap: wrap;
}

.fee-filter-controls .form-select {
    flex: 1 1 180px;
    min-width: 160px;
}

.fee-ledger-table {
    font-size: 0.88rem;
}

.fee-ledger-table thead th {
    color: var(--aurra-text);
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.fee-ledger-table tbody td {
    padding-bottom: 0.8rem;
    padding-top: 0.8rem;
    vertical-align: middle;
}

.fee-ledger-table tbody tr:nth-child(even) td {
    background: rgba(238, 242, 255, 0.35);
}

.fee-student-cell {
    justify-content: space-between;
    min-width: 190px;
}

.fee-whatsapp-dot {
    align-items: center;
    background: #dcfce7;
    border: 0;
    border-radius: var(--aurra-radius-full);
    color: #15803d;
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 950;
    height: 2rem;
    justify-content: center;
    transition: transform 0.15s ease, background 0.15s ease;
    width: 2rem;
}

.fee-whatsapp-dot:hover {
    background: #22c55e;
    color: #ffffff;
    transform: translateY(-1px);
}

.fee-money-sm {
    color: #334155;
    font-size: 0.8rem;
    font-weight: 850;
    white-space: nowrap;
}

.fee-net-amount {
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 950;
    white-space: nowrap;
}

.fee-status-badge {
    align-items: center;
    border-radius: var(--aurra-radius-full);
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: var(--font-black);
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    white-space: nowrap;
}

.fee-status-badge i {
    border-radius: var(--aurra-radius-full);
    display: inline-block;
    height: 0.45rem;
    width: 0.45rem;
}

.fee-status-badge.status-paid {
    background: #d1fae5;
    color: #047857;
}

.fee-status-badge.status-paid i {
    background: #10b981;
}

.fee-status-badge.status-partial {
    background: #fef3c7;
    color: #b45309;
}

.fee-status-badge.status-partial i {
    background: #f59e0b;
}

.fee-status-badge.status-unpaid {
    background: #fee2e2;
    color: #b91c1c;
}

.fee-status-badge.status-unpaid i {
    background: #ef4444;
}

.attendance-health-strip {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr));
}

.attendance-health-strip article,
.attendance-donut-card {
    background: #ffffff;
    border: 1px solid #dbe6f3;
    border-radius: 1rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    padding: 0.9rem;
}

.attendance-donut-card {
    align-items: center;
    display: flex;
    gap: 0.8rem;
}

.attendance-health-strip span,
.attendance-donut-card span {
    color: var(--aurra-muted);
    display: block;
    font-size: 0.72rem;
    font-weight: var(--font-black);
    text-transform: uppercase;
}

.attendance-health-strip strong,
.attendance-donut-card strong {
    color: #0f172a;
    display: block;
    font-size: 1.45rem;
    font-weight: 950;
    line-height: 1.1;
    margin-top: 0.15rem;
}

.attendance-health-strip .is-present strong {
    color: #15803d;
}

.attendance-health-strip .is-absent strong {
    color: #b91c1c;
}

.attendance-donut {
    background: conic-gradient(#22c55e calc(var(--present) * 1%), #fecaca 0);
    border-radius: 50%;
    height: 58px;
    position: relative;
    width: 58px;
}

.attendance-donut::after {
    background: #ffffff;
    border-radius: 50%;
    content: "";
    height: 38px;
    inset: 10px;
    position: absolute;
    width: 38px;
}

.attendance-mark-table {
    font-size: 0.9rem;
}

.attendance-mark-table thead th {
    background: var(--aurra-panel-soft);
    box-shadow: inset 0 -1px 0 #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 2;
}

.attendance-student-cell {
    align-items: center;
    display: flex;
    gap: 0.7rem;
    min-width: 230px;
}

.attendance-student-cell img,
.attendance-student-cell > span {
    border-radius: var(--aurra-radius-full);
    height: 42px;
    width: 42px;
}

.attendance-student-cell > span {
    align-items: center;
    background: #dbeafe;
    color: #2563eb;
    display: inline-flex;
    font-weight: 950;
    justify-content: center;
}

.attendance-student-cell small {
    color: var(--aurra-muted);
    display: block;
    font-size: 0.78rem;
    font-weight: 750;
}

.attendance-status-toggle {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: var(--aurra-radius-full);
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.25rem;
}

.attendance-status-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.attendance-status-toggle label {
    align-items: center;
    border-radius: var(--aurra-radius-full);
    cursor: pointer;
    display: inline-flex;
    font-weight: 950;
    height: 2rem;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
    width: 2rem;
}

.attendance-status-toggle input:checked + .status-present {
    background: #22c55e;
    color: #ffffff;
}

.attendance-status-toggle input:checked + .status-late {
    background: #0ea5e9;
    color: #ffffff;
}

.attendance-status-toggle input:checked + .status-half_day {
    background: #2563eb;
    color: #ffffff;
}

.attendance-status-toggle input:checked + .status-absent {
    background: #ef4444;
    color: #ffffff;
}

.attendance-status-toggle input:checked + .status-leave {
    background: #f59e0b;
    color: #ffffff;
}

.attendance-status-toggle label:hover {
    transform: translateY(-1px);
}

.attendance-submit-bar {
    align-items: center;
    background: var(--aurra-panel-soft);
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 0.85rem;
}

.attendance-submit-bar .form-check {
    margin-right: auto;
}

.attendance-sheets-table {
    font-size: 0.88rem;
}

.attendance-percent-pill {
    background: #e0f2fe;
    border-radius: var(--aurra-radius-full);
    color: #0369a1;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 950;
    padding: 0.3rem 0.65rem;
}

.js-native-date-picker {
    cursor: pointer;
}

.js-native-date-picker::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

.accounts-mini-panel {
    min-width: min(320px, 100%);
}

.account-entry-shell {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 32%),
        #f1f5f9;
    border: 1px solid #dbe6f3;
    border-radius: 2rem;
    padding: 1.15rem;
}

.account-entry-summary {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.account-entry-summary > div {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 1.25rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
    padding: 0.85rem 1rem;
}

.account-entry-summary strong {
    color: #0f172a;
    display: block;
    font-size: 1.2rem;
    font-weight: var(--font-black);
}

.account-entry-summary small {
    color: var(--aurra-muted);
    font-weight: var(--font-bold);
}

.account-entry-grid {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-entry-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #e2e8f0;
    border-radius: 1.75rem;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
    padding: 1.15rem;
}

.account-entry-card-head {
    align-items: center;
    display: flex;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.account-entry-card-head h2 {
    font-size: 1.1rem;
    font-weight: var(--font-black);
    margin: 0;
}

.account-entry-icon {
    align-items: center;
    background: var(--aurra-blue-light);
    border: 1px solid var(--aurra-blue-border-light);
    border-radius: 1rem;
    color: #2563eb;
    display: inline-flex;
    flex: 0 0 auto;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.account-entry-icon-soft {
    background: var(--aurra-panel-soft);
    color: #0f172a;
}

.account-entry-icon-inventory {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #047857;
}

.account-entry-icon svg {
    height: 22px;
    width: 22px;
}

.account-entry-fields {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-entry-fields-4 {
    grid-template-columns: 1.35fr 0.7fr 0.7fr 1fr;
}

.account-entry-wide {
    grid-column: 1 / -1;
}

.account-inventory-card {
    margin-top: 1rem;
}

.account-entry-hint {
    color: var(--aurra-muted);
    font-size: 0.9rem;
    font-weight: var(--font-bold);
    margin: 1rem 0 0;
}

.account-submit-bar {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1rem 0.25rem 0;
}

.account-upload-required .form-label {
    color: #b91c1c;
}

.aurra-landing-chatbot {
    bottom: 1.25rem;
    position: fixed;
    right: 1.25rem;
    z-index: 70;
}

.aurra-chatbot-toggle {
    align-items: center;
    background: #0f2554;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--aurra-radius-full);
    box-shadow: 0 22px 54px rgba(15, 37, 84, 0.26);
    color: #fff;
    display: inline-flex;
    gap: 0.75rem;
    min-height: 3.65rem;
    padding: 0.62rem 0.95rem 0.62rem 0.65rem;
    text-align: left;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.aurra-chatbot-toggle:hover,
.aurra-chatbot-toggle:focus-visible {
    background: #142c63;
    box-shadow: 0 26px 62px rgba(15, 37, 84, 0.34);
    transform: translateY(-2px);
}

.aurra-chatbot-toggle-icon {
    align-items: center;
    background: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    height: 2.7rem;
    justify-content: center;
    overflow: hidden;
    width: 2.7rem;
}

.aurra-chatbot-toggle-icon svg,
.aurra-chatbot-close svg,
.aurra-chatbot-form button svg {
    height: 1.15rem;
    width: 1.15rem;
}

.aurra-chatbot-toggle-copy {
    display: grid;
    line-height: 1.1;
}

.aurra-chatbot-toggle-copy strong {
    font-size: 0.96rem;
    font-weight: var(--font-extrabold);
}

.aurra-chatbot-toggle-copy small {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.76rem;
    font-weight: var(--font-bold);
}

.aurra-chatbot-panel {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 1.25rem;
    bottom: 4.8rem;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
    display: grid;
    max-height: min(31rem, calc(100vh - 6rem));
    overflow: hidden;
    position: absolute;
    right: 0;
    width: min(22rem, calc(100vw - 2rem));
}

.aurra-chatbot-header {
    align-items: center;
    background: #0f2554;
    color: #fff;
    display: flex;
    justify-content: space-between;
    padding: 0.9rem 1rem;
}

.aurra-chatbot-header-main {
    align-items: center;
    display: flex;
    gap: 0.7rem;
    min-width: 0;
}

.aurra-chatbot-avatar {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 auto;
    height: 2.8rem;
    justify-content: center;
    overflow: hidden;
    width: 2.8rem;
}

.aurra-chatbot-avatar.is-small {
    background: #ffffff;
    border-color: #dbe7ff;
    box-shadow: 0 8px 18px rgba(15, 37, 84, 0.12);
    height: 2rem;
    width: 2rem;
}

.aurra-chatbot-avatar svg,
.aurra-chatbot-toggle-icon svg {
    height: 100%;
    width: 100%;
}

.aurra-chatbot-header span {
    color: rgba(255, 255, 255, 0.72);
    display: block;
    font-size: 0.72rem;
    font-weight: var(--font-extrabold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.aurra-chatbot-header strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 850;
    margin-top: 0.15rem;
}

.aurra-chatbot-close {
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.aurra-chatbot-messages {
    background: linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%);
    display: grid;
    gap: 0.65rem;
    max-height: 14.5rem;
    overflow-y: auto;
    padding: 0.85rem 0.95rem;
}

.aurra-message-row {
    align-items: flex-start;
    display: flex;
    gap: 0.55rem;
}

.aurra-message-row.is-bot {
    justify-self: start;
    max-width: 96%;
}

.aurra-message-row .aurra-chatbot-actions {
    margin-top: 0.45rem;
}

.aurra-chatbot-message {
    border-radius: 0.95rem;
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.45;
    max-width: 90%;
    padding: 0.58rem 0.7rem;
}

.aurra-chatbot-message.is-bot {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
    justify-self: start;
}

.aurra-chatbot-message.is-user {
    background: #0f2554;
    color: #ffffff;
    justify-self: end;
    box-shadow: 0 8px 22px rgba(15, 37, 84, 0.16);
}

.aurra-chatbot-suggestions {
    background: #fff;
    border-top: 1px solid #dbe7f5;
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
    padding: 0.7rem 0.95rem 0;
}

.aurra-chatbot-suggestions button {
    background: #eef2ff;
    border: 1px solid #dbe4ff;
    border-radius: var(--aurra-radius-full);
    color: #1f3a72;
    font-size: 0.73rem;
    font-weight: var(--font-extrabold);
    padding: 0.38rem 0.58rem;
    transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.aurra-chatbot-suggestions button:hover {
    background: #0f2554;
    color: #fff;
    transform: translateY(-1px);
}

.aurra-chatbot-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    max-width: 92%;
}

.aurra-chatbot-actions a,
.aurra-chatbot-actions button {
    background: #0f2554;
    border: 0;
    border-radius: var(--aurra-radius-full);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 850;
    box-shadow: 0 10px 24px rgba(15, 37, 84, 0.14);
    padding: 0.48rem 0.7rem;
    text-decoration: none;
}

.aurra-chatbot-actions a:hover,
.aurra-chatbot-actions button:hover {
    background: #1f3a72;
    color: #fff;
}

.aurra-chatbot-lead-card {
    background: #ffffff;
    border: 1px solid #c7d2fe;
    border-radius: 1rem;
    color: #334155;
    display: grid;
    font-size: 0.78rem;
    font-weight: var(--font-bold);
    gap: 0.2rem;
    justify-self: start;
    max-width: 92%;
    padding: 0.7rem 0.8rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.aurra-chatbot-lead-card strong {
    color: #0f2554;
    font-size: 0.82rem;
    font-weight: var(--font-black);
}

.aurra-chatbot-typing {
    background: #eaf0ff;
    border-radius: var(--aurra-radius-full);
    color: #1f3a72;
    font-size: 0.75rem;
    font-weight: 850;
    justify-self: start;
    padding: 0.4rem 0.65rem;
}

.aurra-chatbot-form {
    align-items: center;
    background: #fff;
    display: flex;
    gap: 0.45rem;
    padding: 0.7rem 0.95rem 0.85rem;
}

.aurra-chatbot-form input {
    border: 1px solid #cbd5e1;
    border-radius: var(--aurra-radius-full);
    color: #0f172a;
    flex: 1;
    font-size: 0.82rem;
    font-weight: 650;
    min-height: 2.45rem;
    min-width: 0;
    padding: 0.65rem 0.9rem;
}

.aurra-chatbot-form input:focus {
    border-color: #1f3a72;
    box-shadow: 0 0 0 0.18rem rgba(31, 58, 114, 0.16);
    outline: none;
}

.aurra-chatbot-form button {
    align-items: center;
    background: #0f2554;
    border: 0;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    height: 2.45rem;
    justify-content: center;
    width: 2.45rem;
}

@media (max-width: 991.98px) {
    .account-entry-summary,
    .account-entry-grid,
    .account-entry-fields,
    .account-entry-fields-4 {
        grid-template-columns: 1fr;
    }

    .developer-credit {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.2rem;
    }

    .student-header-card {
        grid-template-columns: 1fr;
    }

    .student-header-metrics,
    .student-detail-tabs {
        width: 100%;
    }

    .student-detail-actions,
    .student-quick-search {
        justify-content: stretch;
        width: 100%;
    }

    .student-quick-search .form-control,
    .student-quick-search .btn,
    .student-detail-actions > .btn {
        flex: 1 1 auto;
    }

    .student-detail-grid,
    .student-result-summary,
    .admission-card-fields,
    .admission-card-fields-three,
    .admission-identity-layout,
    .student-filter-advanced,
    .compact-analytics-strip,
    .fee-progress-strip,
    .expense-analytics-header,
    .staff-overview-strip,
    .student-performance-header {
        grid-template-columns: 1fr;
    }

    .performance-ring-row,
    .fee-filter-row {
        flex-wrap: wrap;
    }

    .fee-filter-row > .btn,
    .fee-filter-controls .btn,
    .attendance-health-strip {
        flex: 1 1 100%;
    }

    .attendance-health-strip {
        grid-template-columns: 1fr;
    }

    .student-filter-primary > .form-select,
    .student-filter-primary > .btn,
    .student-search-control,
    .student-filter-actions,
    .student-filter-actions .btn {
        flex: 1 1 100%;
    }

    .aurra-landing-chatbot {
        bottom: 0.9rem;
        left: 0.9rem;
        right: 0.9rem;
    }

    .aurra-chatbot-toggle {
        justify-content: center;
        width: 100%;
    }

    .aurra-chatbot-panel {
        bottom: 5rem;
        left: 0;
        right: 0;
        width: 100%;
    }
}

@media print {
    @page student-profile {
        margin: 12mm;
        size: A4 portrait;
    }

    .student-detail-page {
        page: student-profile;
    }

    .student-detail-page .print-hide,
    .student-detail-page .student-print-exclude,
    .student-detail-page .student-detail-tabs {
        display: none !important;
    }

    .student-detail-page .tab-pane {
        display: block !important;
        opacity: 1 !important;
    }

    .student-header-card,
    .student-detail-panel {
        border: 1px solid #cbd5e1 !important;
        box-shadow: none !important;
        break-inside: avoid;
    }

    .student-header-card {
        grid-template-columns: auto 1fr;
    }

    .student-header-metrics {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, 1fr);
    }

    .student-detail-tab-content {
        min-height: 0;
    }
}

/* Prototype-to-live shell enforcement */
body.app-body {
    background:
        radial-gradient(circle at 18% 0%, rgba(68, 143, 198, 0.12), transparent 24rem),
        linear-gradient(180deg, #dde5ec 0%, #e7edf2 38%, #dde5ec 100%) !important;
    color: var(--aurra-ink);
}

.app-layout {
    background: transparent;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    background: linear-gradient(180deg, #172436 0%, #101827 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    color: #eef8f5;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    padding: 1.25rem 1rem;
    position: sticky;
    top: 0;
    width: 280px;
}

.brand-block {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    gap: 0.75rem;
    padding: 0.45rem 0.5rem 1.25rem;
}

.aurra-brand-mark,
.topbar-brand-mark {
    background: #eda52b !important;
    border-radius: var(--aurra-radius-md);
    box-shadow: none;
    color: #102f2d;
}

.brand-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: var(--font-black);
    line-height: 1.05;
}

.brand-subtitle {
    color: #a7c8c2;
    font-size: 0.78rem;
    font-weight: var(--font-bold);
    line-height: 1.35;
    max-width: 176px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-nav {
    display: grid;
    gap: 0.25rem;
    padding: 1rem 0 0;
}

.sidebar-section-label {
    color: #91b8b2;
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.02em;
    margin: 1rem 0.65rem 0.35rem;
    padding: 0;
    text-transform: uppercase;
}

.nav-item {
    align-items: center;
    border: 0;
    border-radius: var(--aurra-radius-md);
    color: #dcefeb;
    display: flex;
    font-size: 0.92rem;
    font-weight: var(--font-extrabold);
    gap: 0.75rem;
    min-height: 42px;
    padding: 0.64rem 0.75rem;
}

.nav-item::before {
    display: none;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
    color: #ffffff;
}

.nav-icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: #dcefeb;
    display: inline-flex;
    flex: 0 0 22px;
    height: 22px;
    justify-content: center;
    width: 22px;
}

.nav-icon svg {
    height: 15px;
    width: 15px;
}

.sidebar-footer {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--aurra-radius-md);
    margin-top: auto;
    padding: 0.85rem;
}

.role-chip {
    background: rgba(31, 138, 132, 0.24);
    border: 1px solid rgba(167, 200, 194, 0.22);
    border-radius: var(--aurra-radius-full);
    color: #dcefeb;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: var(--font-black);
    margin-top: 0.35rem;
    padding: 0.22rem 0.55rem;
    text-transform: uppercase;
}

.app-main {
    background: transparent;
    min-width: 0;
}

.topbar {
    background: transparent !important;
    border: 0;
    box-shadow: none;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.2fr) auto auto;
    margin: 0;
    min-height: auto;
    padding: 1.35rem 1.4rem 0;
}

.topbar-brand,
.topbar-search,
.topbar-quick-actions,
.profile-progress-chip,
.user-menu-btn {
    background: #ffffff;
    border: 1px solid var(--aurra-line);
    border-radius: var(--aurra-radius-md);
    box-shadow: 0 1px 0 rgba(23, 33, 43, 0.04);
    min-height: 46px;
}

.topbar-brand {
    gap: 0.75rem;
    padding: 0.35rem 0.75rem;
}

.topbar-kicker {
    color: var(--aurra-teal);
    font-size: 0.67rem;
    font-weight: 950;
    letter-spacing: 0.08em;
}

.topbar-school-name {
    color: var(--aurra-ink);
    font-size: 1rem;
    font-weight: var(--font-black);
}

.topbar-subtitle {
    color: var(--aurra-muted);
    font-size: 0.78rem;
    font-weight: var(--font-bold);
}

.topbar-search {
    min-height: 46px;
}

.topbar-quick-actions {
    align-items: center;
    display: flex;
    gap: 0.35rem;
    padding: 0.25rem;
}

.topbar-quick-link {
    border: 0 !important;
    border-radius: var(--aurra-radius-md);
    color: var(--aurra-ink);
    min-height: 36px;
}

.topbar-quick-link.active,
.topbar-quick-link:hover {
    background: #e3f5ef;
    color: #0b665f;
}

.profile-progress-chip,
.user-menu-btn {
    align-items: center;
    display: inline-flex;
    gap: 0.65rem;
    padding: 0.35rem 0.7rem;
}

.content-shell {
    padding: 1.1rem 1.4rem 1.6rem;
}

.content-card,
.panel-card,
.metric-card,
.aurra-widget-card,
.aurra-dashboard-header,
.student-header-card,
.student-profile-card {
    border: 1px solid var(--aurra-line);
    border-radius: 8px !important;
    box-shadow: var(--aurra-shadow);
}

.content-card,
.panel-card,
.metric-card,
.aurra-widget-card {
    background: #ffffff;
}

.page-title,
.aurra-dashboard-title,
.aurra-widget-title,
.content-card h2,
.panel-card h2 {
    color: var(--aurra-ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 950;
    letter-spacing: 0;
}

.page-eyebrow {
    color: var(--aurra-teal);
    font-weight: 950;
    letter-spacing: 0.12em;
}

.btn,
.form-control,
.form-select,
.dropdown-menu,
.alert {
    border-radius: var(--aurra-radius-md);
}

.btn-primary {
    background: var(--aurra-teal);
    box-shadow: 0 8px 18px rgba(23, 33, 43, 0.12);
}

.btn-outline-primary {
    border-color: rgba(31, 138, 132, 0.45);
    color: #0b665f;
}

.table thead th {
    background: #eef3f6;
    color: var(--aurra-muted);
    font-weight: 950;
}

.developer-credit {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #657483;
    padding-inline: 0;
}

@media (max-width: 1199.98px) {
    .topbar {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .topbar-search-wrap,
    .topbar-quick-actions {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .app-layout {
        display: block;
    }

    .sidebar {
        display: none;
    }

    .topbar {
        grid-template-columns: auto minmax(0, 1fr) auto;
        padding: 0.9rem 0.9rem 0;
    }

    .content-shell {
        padding: 0.9rem;
    }

    .topbar-brand {
        min-width: 0;
    }
}

@media (max-width: 575.98px) {
    .topbar {
        gap: var(--space-sm);
    }

    .user-menu-copy,
    .profile-progress-chip {
        display: none !important;
    }

    .content-shell {
        padding: 0.7rem;
    }
}

/* Step 63: premium admin dashboard refinement */
.aurra-step63-dashboard {
    gap: var(--space-md);
}

.aurra-step63-dashboard .aurra-step63-header {
    align-items: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    display: flex;
    gap: var(--space-md);
    justify-content: space-between;
    order: 1;
    padding: 0.2rem 0 0.1rem;
}

.aurra-step63-header .page-eyebrow {
    color: var(--aurra-teal-deep);
    margin-bottom: 0.25rem;
}

.aurra-step63-header h1 {
    color: var(--aurra-ink);
    font-size: clamp(1.85rem, 3vw, 2.75rem);
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1.02;
    margin: 0;
}

.aurra-step63-header p {
    color: var(--aurra-muted);
    font-size: 0.98rem;
    font-weight: var(--font-bold);
    margin: 0.5rem 0 0;
    max-width: 760px;
}

.aurra-step63-header .aurra-prototype-tenant-chip {
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line-soft);
    box-shadow: var(--aurra-shadow-soft);
    color: var(--aurra-ink-soft);
}

.aurra-step63-status-strip {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    order: 2;
}

.aurra-step63-status-strip a {
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius);
    box-shadow: var(--aurra-shadow-soft);
    color: var(--aurra-ink);
    display: grid;
    gap: 0.25rem;
    min-height: 104px;
    padding: 0.95rem;
    position: relative;
    text-decoration: none;
}

.aurra-step63-status-strip a::before {
    background: var(--aurra-teal);
    border-radius: var(--aurra-radius-full);
    content: "";
    height: 3px;
    left: 0.95rem;
    position: absolute;
    right: 0.95rem;
    top: 0;
}

.aurra-step63-status-strip span {
    color: var(--aurra-muted);
    font-size: 0.72rem;
    font-weight: var(--font-black);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.aurra-step63-status-strip strong {
    color: var(--aurra-ink);
    font-size: clamp(1.65rem, 2.6vw, 2.2rem);
    font-weight: 950;
    line-height: 1;
}

.aurra-step63-status-strip small {
    color: var(--aurra-muted);
    font-weight: 750;
}

.aurra-step63-dashboard .aurra-command-center {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    order: 3;
}

.aurra-step63-dashboard .aurra-command-main {
    background: #132235;
    gap: 1.2rem;
    min-height: 270px;
    padding: clamp(1.25rem, 2.4vw, 1.8rem);
}

.aurra-step63-dashboard .aurra-command-main .page-eyebrow {
    color: #8bd8cf;
}

.aurra-step63-dashboard .aurra-command-main .aurra-dashboard-title {
    font-size: clamp(1.9rem, 3.8vw, 3rem);
    max-width: 760px;
}

.aurra-step63-dashboard .aurra-command-main .aurra-dashboard-subtitle {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.98rem;
}

.aurra-step63-dashboard .aurra-command-metrics {
    gap: 0.75rem;
}

.aurra-step63-dashboard .aurra-command-metric {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    min-height: 108px;
}

.aurra-step63-dashboard .aurra-command-actions {
    background: var(--aurra-panel);
    border-left: 1px solid var(--aurra-line-soft);
}

.aurra-step63-dashboard .aurra-step63-quick {
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius);
    box-shadow: var(--aurra-shadow-soft);
    gap: 0.55rem;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    order: 4;
    padding: 0.75rem;
}

.aurra-step63-dashboard .aurra-step63-quick a {
    background: #f4f8fb;
    border: 1px solid var(--aurra-line-soft);
    box-shadow: none;
    color: var(--aurra-ink-soft);
    min-height: 42px;
}

.aurra-step63-dashboard .aurra-step63-quick a:hover,
.aurra-step63-dashboard .aurra-step63-quick a:focus-visible {
    background: #e8f5f3;
    border-color: rgba(31, 138, 132, 0.28);
    color: var(--aurra-teal-deep);
}

.aurra-step63-dashboard .aurra-erp-tile-grid {
    gap: 0.75rem;
    order: 5;
}

.aurra-step63-dashboard .aurra-erp-tile {
    background: var(--aurra-panel) !important;
    border: 1px solid var(--aurra-line-soft);
    box-shadow: var(--aurra-shadow-soft);
    color: var(--aurra-ink) !important;
}

.aurra-step63-dashboard .aurra-erp-tile::after {
    background: var(--aurra-teal);
    bottom: auto;
    height: 3px;
    left: 0.8rem;
    opacity: 0.72;
    right: 0.8rem;
    top: 0;
    width: auto;
}

.aurra-step63-dashboard .aurra-erp-tile small {
    color: var(--aurra-muted);
}

.aurra-step63-dashboard .aurra-erp-tile.is-red strong {
    color: var(--aurra-red);
}

.aurra-step63-dashboard .aurra-erp-tile.is-amber strong,
.aurra-step63-dashboard .aurra-erp-tile.is-orange strong {
    color: #a76614;
}

.aurra-step63-dashboard .aurra-erp-tile.is-blue strong,
.aurra-step63-dashboard .aurra-erp-tile.is-cyan strong,
.aurra-step63-dashboard .aurra-erp-tile.is-sky strong {
    color: #216f9f;
}

.aurra-step63-dashboard .aurra-erp-tile.is-green strong,
.aurra-step63-dashboard .aurra-erp-tile.is-teal strong {
    color: var(--aurra-green);
}

.aurra-step63-dashboard .aurra-erp-panel-grid {
    order: 6;
}

.aurra-step63-dashboard .aurra-erp-class-table-card {
    order: 7;
}

.aurra-step63-dashboard .aurra-demo-banner {
    order: 8;
}

.aurra-step63-dashboard .aurra-stat-row {
    order: 9;
}

.aurra-step63-dashboard .aurra-pg12-panel,
.aurra-step63-dashboard .row {
    order: 10;
}

.aurra-step63-dashboard .aurra-widget-card {
    border-color: var(--aurra-line-soft);
}

@media (max-width: 1199.98px) {
    .aurra-step63-status-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aurra-step63-dashboard .aurra-step63-quick {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .aurra-step63-dashboard .aurra-step63-header {
        align-items: flex-start;
        display: grid;
    }

    .aurra-step63-dashboard .aurra-command-center {
        grid-template-columns: 1fr;
    }

    .aurra-step63-dashboard .aurra-command-actions {
        border-left: 0;
        border-top: 1px solid var(--aurra-line-soft);
    }
}

@media (max-width: 767.98px) {
    .aurra-step63-status-strip,
    .aurra-step63-dashboard .aurra-step63-quick {
        grid-template-columns: 1fr;
    }

    .aurra-step63-status-strip a {
        min-height: 88px;
    }
}

/* Step 64: students and admissions UX refinement */
.aurra-step64-page-header {
    align-items: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    margin-bottom: 1rem;
    padding: 0.2rem 0 0;
}

.aurra-step64-page-header .page-title {
    color: var(--aurra-ink);
    letter-spacing: 0;
}

.aurra-step64-page-header .page-subtitle {
    color: var(--aurra-muted);
    max-width: 760px;
}

.aurra-step64-student-command {
    background: #132235;
    border: 1px solid rgba(167, 200, 194, 0.18);
    border-radius: var(--aurra-radius-md);
    box-shadow: var(--aurra-shadow-soft);
    color: #ffffff;
    overflow: hidden;
}

.aurra-step64-student-command .aurra-student-command-main {
    background: transparent;
}

.aurra-step64-student-command .page-eyebrow,
.aurra-step64-student-command .aurra-student-rail-label {
    color: #8bd8cf;
}

.aurra-step64-student-command h2 {
    color: #ffffff;
    font-size: clamp(1.65rem, 2.8vw, 2.45rem);
    letter-spacing: 0;
    max-width: 820px;
}

.aurra-step64-student-command p {
    color: rgba(255, 255, 255, 0.76);
    max-width: 780px;
}

.aurra-step64-student-command .aurra-student-command-metrics > div {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--aurra-radius-md);
}

.aurra-step64-student-command .aurra-student-command-metrics span,
.aurra-step64-student-command .aurra-student-command-metrics small {
    color: rgba(255, 255, 255, 0.72);
}

.aurra-step64-student-command .aurra-student-command-metrics strong {
    color: #ffffff;
}

.aurra-step64-student-command .aurra-student-command-rail {
    background: rgba(255, 255, 255, 0.06);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.aurra-step64-student-command .aurra-student-rail-note {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--aurra-radius-md);
    color: rgba(255, 255, 255, 0.76);
}

.aurra-step64-student-command .aurra-student-rail-note strong {
    color: #ffffff;
}

.aurra-step64-intake-strip {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 1rem 0;
}

.aurra-step64-intake-strip a {
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
    box-shadow: var(--aurra-shadow-soft);
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-height: 112px;
    padding: var(--space-md);
    position: relative;
    text-decoration: none;
}

.aurra-step64-intake-strip a::before {
    background: var(--aurra-teal);
    border-radius: var(--aurra-radius-full);
    content: "";
    height: 3px;
    left: 1rem;
    position: absolute;
    right: 1rem;
    top: 0.75rem;
}

.aurra-step64-intake-strip span {
    color: var(--aurra-muted);
    font-size: 0.72rem;
    font-weight: var(--font-black);
    letter-spacing: 0.07em;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

.aurra-step64-intake-strip strong {
    color: var(--aurra-ink);
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    line-height: 1;
}

.aurra-step64-intake-strip small {
    color: var(--aurra-muted);
    font-weight: 750;
    line-height: 1.35;
}

.aurra-step64-intake-strip a:hover,
.aurra-step64-intake-strip a:focus-visible {
    border-color: rgba(31, 138, 132, 0.3);
    transform: translateY(-1px);
}

.aurra-step64-tabs {
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
    box-shadow: var(--aurra-shadow-soft);
    gap: 0.35rem;
    padding: 0.35rem;
}

.aurra-step64-tabs .nav-link {
    border-radius: 6px;
    color: var(--aurra-muted);
    font-weight: 850;
}

.aurra-step64-tabs .nav-link.active {
    background: #e7f4f2;
    color: var(--aurra-teal-deep);
}

.aurra-step64-table-card {
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
    box-shadow: var(--aurra-shadow-soft);
    overflow: hidden;
}

.aurra-step64-filter {
    background: #f7fafc;
    padding: var(--space-md);
}

.aurra-step64-filter .student-filter-primary {
    align-items: center;
    gap: 0.65rem;
}

.aurra-step64-filter .student-search-control,
.aurra-step64-filter .form-control,
.aurra-step64-filter .form-select {
    background-color: #ffffff;
    border-color: var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
    min-height: 42px;
}

.aurra-step64-filter .student-search-control:focus-within,
.aurra-step64-filter .form-control:focus,
.aurra-step64-filter .form-select:focus {
    border-color: rgba(31, 138, 132, 0.42);
    box-shadow: 0 0 0 0.18rem rgba(31, 138, 132, 0.12);
}

.aurra-step64-filter .student-filter-advanced {
    background: #ffffff;
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
    margin-top: 0.85rem;
}

.aurra-step64-filter .student-filter-footer {
    align-items: center;
    background: transparent;
    border-top: 1px solid var(--aurra-line-soft);
    margin-top: 1rem;
    padding-top: 0.9rem;
}

.aurra-step64-table-card .premium-student-table {
    margin: 0;
}

.aurra-step64-table-card .premium-student-table thead th {
    background: #eef3f6;
    border-bottom: 1px solid var(--aurra-line-soft);
    color: var(--aurra-muted);
}

.aurra-step64-table-card .premium-student-table tbody td {
    background: #ffffff;
    border-top: 1px solid #edf2f6;
    padding-bottom: 0.92rem;
    padding-top: 0.92rem;
}

.aurra-step64-table-card .premium-student-table tbody tr.student-row-alt td {
    background: #f9fbfc;
}

.aurra-step64-table-card .premium-student-table tbody tr:hover td {
    background: #edf8f6;
}

.aurra-step64-table-card .student-name-cell {
    align-items: center;
    gap: 0.75rem;
}

.aurra-step64-table-card .student-thumbnail,
.aurra-step64-table-card .student-initial {
    border: 1px solid var(--aurra-line-soft);
    box-shadow: none;
}

.aurra-step64-table-card .student-name-link {
    color: var(--aurra-ink);
    font-weight: var(--font-black);
}

.aurra-step64-table-card .student-phone-line {
    color: var(--aurra-muted);
}

.aurra-step64-table-card .document-status,
.aurra-step64-table-card .student-kebab-btn {
    border-radius: var(--aurra-radius-md);
}

.aurra-step64-table-card .student-kebab-btn {
    background: #ffffff;
    border: 1px solid var(--aurra-line-soft);
    box-shadow: none;
    height: 34px;
    width: 38px;
}

.aurra-step64-table-card .student-kebab-btn:hover,
.aurra-step64-table-card .student-kebab-btn:focus-visible {
    background: #e7f4f2;
    border-color: rgba(31, 138, 132, 0.28);
}

.admission-form-shell.aurra-step64-admission-form {
    background: #eef3f6;
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
    box-shadow: var(--aurra-shadow-soft);
    padding: clamp(1rem, 2vw, 1.35rem);
}

.aurra-step64-admission-form .admission-workflow-hero {
    background: #132235;
    border: 1px solid rgba(167, 200, 194, 0.18);
    border-radius: var(--aurra-radius-md);
    box-shadow: none;
    color: #ffffff;
}

.aurra-step64-admission-form .admission-workflow-hero .page-eyebrow {
    color: #8bd8cf;
}

.aurra-step64-admission-form .admission-workflow-hero h2 {
    color: #ffffff;
    letter-spacing: 0;
}

.aurra-step64-admission-form .admission-workflow-hero p {
    color: rgba(255, 255, 255, 0.76);
}

.aurra-step64-admission-rail {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: 1rem;
}

.aurra-step64-admission-rail span {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--aurra-radius-full);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.76rem;
    font-weight: 850;
    padding: 0.38rem 0.7rem;
}

.aurra-step64-admission-form .admission-readiness-grid > div,
.aurra-step64-admission-form .admission-card,
.aurra-step64-admission-form .admission-submit-bar {
    border-radius: var(--aurra-radius-md);
    box-shadow: none;
}

.aurra-step64-admission-form .admission-card {
    background: #ffffff;
    border: 1px solid var(--aurra-line-soft);
}

.aurra-step64-admission-form .admission-card-icon {
    background: #e7f4f2;
    color: var(--aurra-teal-deep);
}

.aurra-step64-admission-form .admission-card-title span {
    color: var(--aurra-muted);
}

.aurra-step64-admission-form .admission-card-title h2 {
    color: var(--aurra-ink);
    letter-spacing: 0;
}

.aurra-step64-admission-form .student-photo-dropzone {
    background: #f7fafc;
    border: 1px dashed rgba(31, 138, 132, 0.32);
    border-radius: var(--aurra-radius-md);
}

.aurra-step64-admission-form .form-control,
.aurra-step64-admission-form .form-select {
    background-color: #ffffff;
    border-color: var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
    min-height: 42px;
}

.aurra-step64-admission-form textarea.form-control {
    min-height: 96px;
}

.aurra-step64-admission-form .form-control:focus,
.aurra-step64-admission-form .form-select:focus {
    border-color: rgba(31, 138, 132, 0.42);
    box-shadow: 0 0 0 0.18rem rgba(31, 138, 132, 0.12);
}

.aurra-step64-admission-form .admission-accordion-toggle,
.aurra-step64-admission-form .admission-accordion-panel,
.aurra-step64-admission-form .admission-pg12-note,
.aurra-step64-admission-form .academic-track-preview,
.aurra-step64-admission-form .admission-submit-bar {
    border-color: var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
}

.aurra-step64-admission-form .admission-submit-bar {
    background: #ffffff;
    bottom: 0.75rem;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
    margin-top: 1rem;
}

@media (max-width: 1199.98px) {
    .aurra-step64-intake-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .aurra-step64-student-command,
    .aurra-step64-admission-form .admission-workflow-hero {
        grid-template-columns: 1fr;
    }

    .aurra-step64-student-command .aurra-student-command-rail {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }
}

@media (max-width: 767.98px) {
    .aurra-step64-page-header {
        align-items: flex-start;
    }

    .aurra-step64-intake-strip {
        grid-template-columns: 1fr;
    }

    .aurra-step64-intake-strip a {
        min-height: 88px;
    }

    .aurra-step64-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }

    .aurra-step64-filter .student-filter-primary,
    .aurra-step64-filter .student-filter-footer,
    .aurra-step64-admission-form .admission-submit-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .aurra-step64-filter .student-filter-primary > *,
    .aurra-step64-admission-form .admission-submit-bar .btn {
        width: 100%;
    }
}

/* Step 61: shared premium SaaS foundation */
html {
    text-rendering: optimizeLegibility;
}

body {
    color: var(--aurra-ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.app-body {
    background:
        radial-gradient(circle at 16% 0%, rgba(68, 143, 198, 0.1), transparent 23rem),
        linear-gradient(180deg, var(--aurra-bg) 0%, var(--aurra-bg-soft) 42%, var(--aurra-bg) 100%) !important;
}

.content-shell,
.app-main,
.page-header,
.content-card,
.panel-card,
.metric-card,
.aurra-widget-card,
.table-card,
.form-card {
    min-width: 0;
}

.page-header,
.content-card,
.panel-card,
.metric-card,
.aurra-widget-card,
.table-card,
.form-card,
.student-header-card,
.student-profile-card,
.parent-panel,
.parent-metric-card,
.aurra-ops-metric,
.aurra-role-card,
.aurra-erp-panel,
.aurra-erp-class-table-card {
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius) !important;
    box-shadow: var(--aurra-shadow-soft);
}

.page-header {
    align-items: flex-start;
    gap: var(--space-md);
    padding: 1.15rem;
}

.page-title,
.aurra-dashboard-title,
.aurra-widget-title,
.content-card h1,
.content-card h2,
.panel-card h1,
.panel-card h2,
.form-card h1,
.form-card h2 {
    color: var(--aurra-ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: var(--font-black);
    letter-spacing: 0;
}

.page-title {
    font-size: clamp(1.55rem, 2.4vw, 2.2rem);
    line-height: 1.08;
}

.page-subtitle,
.metric-note,
.aurra-stat-note,
.aurra-table-detail,
.aurra-table-date,
.empty-state,
.text-muted,
.text-secondary {
    color: var(--aurra-muted) !important;
}

.page-eyebrow,
.metric-label,
.aurra-stat-label,
.sidebar-section-label,
.topbar-kicker {
    letter-spacing: 0.08em;
}

.btn {
    border-radius: var(--aurra-radius);
    font-weight: var(--font-extrabold);
    letter-spacing: 0;
    min-height: 40px;
    text-wrap: balance;
}

.btn-primary,
.aurra-btn-primary {
    background: var(--aurra-teal) !important;
    border-color: var(--aurra-teal) !important;
    box-shadow: 0 8px 18px rgba(31, 138, 132, 0.16);
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus-visible,
.aurra-btn-primary:hover,
.aurra-btn-primary:focus-visible {
    background: var(--aurra-teal-deep) !important;
    border-color: var(--aurra-teal-deep) !important;
}

.btn-outline-primary {
    border-color: rgba(31, 138, 132, 0.38);
    color: var(--aurra-teal-deep);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus-visible {
    background: rgba(31, 138, 132, 0.08);
    border-color: var(--aurra-teal);
    color: var(--aurra-teal-deep);
}

.btn-light,
.btn-outline-secondary,
.btn-outline-dark {
    border-color: var(--aurra-line-soft) !important;
}

.form-control,
.form-select,
.input-group-text,
.dropdown-menu,
.alert {
    border-radius: var(--aurra-radius);
}

.form-control,
.form-select {
    background-color: #ffffff;
    border-color: var(--aurra-line);
    color: var(--aurra-ink);
    font-weight: 650;
    min-height: 42px;
}

.form-control::placeholder {
    color: var(--aurra-muted-2);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(31, 138, 132, 0.62);
    box-shadow: 0 0 0 0.2rem rgba(31, 138, 132, 0.12);
}

.form-label {
    color: var(--aurra-ink-soft);
    font-size: 0.84rem;
    font-weight: 850;
}

.table-responsive {
    border-radius: var(--aurra-radius);
}

.table {
    color: var(--aurra-ink);
}

.table thead th {
    background: #eef3f6;
    border-bottom: 1px solid var(--aurra-line-soft);
    color: var(--aurra-muted);
    font-size: 0.74rem;
    font-weight: var(--font-black);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.table tbody td {
    border-color: var(--aurra-line-soft);
    vertical-align: middle;
}

/* Override Bootstrap table-hover blue with aurra teal; aurra-table.table-hover target
   matches Bootstrap's own specificity to ensure teal wins */
.table.aurra-table tbody tr:hover > td,
.table.aurra-table.table-hover > tbody > tr:hover > * {
    --bs-table-color-state: var(--aurra-ink);
    --bs-table-bg-state: rgba(31, 138, 132, 0.035);
    background: rgba(31, 138, 132, 0.035);
}

.badge,
.role-chip,
.parent-chip,
.parent-status-pill,
.aurra-table-chip,
.aurra-pill {
    letter-spacing: 0;
}

.alert {
    border-color: transparent;
    box-shadow: var(--aurra-shadow-soft);
    font-weight: var(--font-bold);
}

.alert-primary {
    background: #e9f5f4;
    color: #0b665f;
}

.alert-success {
    background: #eaf7f3;
    color: #1e6f66;
}

.alert-warning {
    background: #fff6e5;
    color: #8a5b13;
}

.alert-danger {
    background: #fff0ef;
    color: #b33a34;
}

.sidebar,
.mobile-sidebar {
    background: linear-gradient(180deg, var(--aurra-side) 0%, var(--aurra-side-deep) 100%) !important;
}

.topbar-brand,
.topbar-search,
.topbar-quick-actions,
.profile-progress-chip,
.user-menu-btn {
    border-color: var(--aurra-line-soft);
    box-shadow: var(--aurra-shadow-soft);
}

.aurra-command-center,
.aurra-student-command,
.aurra-finance-command,
.aurra-defaulter-command,
.aurra-attendance-command,
.aurra-exam-command,
.aurra-result-command,
.aurra-certificate-command,
.aurra-communications-command,
.aurra-teacher-command,
.aurra-parent-command,
.aurra-ops-command {
    border-radius: var(--aurra-radius) !important;
}

@media (max-width: 767.98px) {
    .page-header {
        padding: 0.95rem;
    }

    .btn {
        min-height: 38px;
        white-space: normal;
    }

    .table thead th,
    .table tbody td {
        white-space: nowrap;
    }
}

/* Dashboard pixel-match migration */
.aurra-prototype-dashboard {
    gap: 0.9rem;
}

.aurra-prototype-dashboard > * {
    min-width: 0;
}

.aurra-prototype-header {
    align-items: end;
    display: flex;
    gap: var(--space-md);
    justify-content: space-between;
    order: 1;
}

.aurra-prototype-header h1 {
    color: var(--aurra-ink);
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 950;
    line-height: 1;
    margin: 0;
}

.aurra-prototype-header p {
    color: var(--aurra-muted);
    font-weight: 750;
    margin: 0.45rem 0 0;
}

.aurra-prototype-tenant-chip {
    align-items: center;
    background: #e3f5ef;
    border-radius: var(--aurra-radius-md);
    color: #0b665f;
    display: inline-flex;
    font-weight: 950;
    min-height: 42px;
    padding: 0 0.9rem;
    white-space: nowrap;
}

.aurra-prototype-quick {
    display: grid;
    gap: var(--space-sm);
    grid-template-columns: repeat(10, minmax(50px, 1fr));
    order: 2;
}

.aurra-prototype-quick a {
    align-items: center;
    border-radius: var(--aurra-radius-md);
    box-shadow: 0 8px 18px rgba(23, 33, 43, 0.12);
    color: #ffffff;
    display: inline-flex;
    font-size: 0.86rem;
    font-weight: 950;
    justify-content: center;
    min-height: 44px;
    padding: 0.5rem 0.55rem;
    text-align: center;
}

.aurra-prototype-quick a:hover,
.aurra-prototype-quick a:focus-visible {
    color: #ffffff;
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.aurra-prototype-quick .teal {
    background: var(--aurra-teal);
}

.aurra-prototype-quick .green {
    background: var(--aurra-green);
}

.aurra-prototype-quick .coral {
    background: var(--aurra-red);
}

.aurra-prototype-quick .amber {
    background: var(--aurra-amber);
    color: #17212b;
}

.aurra-prototype-quick .amber:hover,
.aurra-prototype-quick .amber:focus-visible {
    color: #17212b;
}

.aurra-prototype-quick .blue {
    background: var(--aurra-blue);
}

.aurra-prototype-quick .violet {
    background: var(--aurra-violet);
}

.aurra-prototype-quick .dark {
    background: #263744;
}

.aurra-prototype-dashboard .aurra-command-center {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    order: 8;
}

.aurra-prototype-dashboard .aurra-command-main {
    gap: var(--space-md);
    min-height: auto;
    padding: 1.15rem 1.25rem;
}

.aurra-prototype-dashboard .aurra-command-main .aurra-dashboard-title {
    font-size: clamp(1.55rem, 2.4vw, 2.05rem);
    max-width: 640px;
}

.aurra-prototype-dashboard .aurra-command-main .aurra-dashboard-subtitle {
    font-size: 0.92rem;
}

.aurra-prototype-dashboard .aurra-command-metrics {
    gap: 0.6rem;
}

.aurra-prototype-dashboard .aurra-command-metric {
    min-height: 104px;
    padding: 0.85rem;
}

.aurra-prototype-dashboard .aurra-command-metric strong {
    font-size: clamp(1.7rem, 2.6vw, 2.1rem);
    margin-top: 0.5rem;
}

.aurra-prototype-dashboard .aurra-command-actions {
    gap: 0.65rem;
    padding: var(--space-md);
}

.aurra-prototype-dashboard .aurra-command-actions h2 {
    font-size: 1.45rem;
    margin-bottom: 0.4rem;
}

.aurra-prototype-dashboard .aurra-command-actions .aurra-action-btn {
    min-height: 46px;
}

.aurra-prototype-dashboard .aurra-stat-row {
    order: 6;
}

.aurra-prototype-dashboard .aurra-stat-row .col-12 {
    display: flex;
}

.aurra-prototype-dashboard .aurra-stat-card {
    align-items: flex-start;
    display: grid;
    gap: 0.8rem;
    min-height: 122px;
    overflow: hidden;
    padding: var(--space-md);
    position: relative;
    width: 100%;
}

.aurra-prototype-dashboard .aurra-stat-card::after {
    background: currentColor;
    border-radius: var(--aurra-radius-full);
    bottom: -34px;
    content: "";
    height: 96px;
    opacity: 0.12;
    position: absolute;
    right: -28px;
    width: 96px;
}

.aurra-prototype-dashboard .aurra-stat-icon {
    border-radius: var(--aurra-radius-md);
    height: 42px;
    width: 42px;
}

.aurra-prototype-dashboard .aurra-stat-value {
    font-size: 1.9rem;
    margin-top: 0.4rem;
}

.aurra-prototype-dashboard .aurra-stat-trend {
    border-radius: var(--aurra-radius-full);
    width: fit-content;
}

.aurra-prototype-dashboard .aurra-pg12-panel,
.aurra-prototype-dashboard .row {
    order: 7;
}

.aurra-prototype-dashboard .aurra-widget-card {
    border-radius: 8px !important;
}

@media (max-width: 1180px) {
    .aurra-prototype-quick {
        grid-template-columns: repeat(5, minmax(50px, 1fr));
    }
}

@media (max-width: 980px) {
    .aurra-prototype-header {
        align-items: flex-start;
        display: grid;
    }

    .aurra-prototype-tenant-chip {
        justify-content: center;
        width: fit-content;
    }

    .aurra-prototype-dashboard .aurra-command-center {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .aurra-prototype-quick {
        grid-template-columns: repeat(2, minmax(50px, 1fr));
    }

    .aurra-prototype-tenant-chip {
        white-space: normal;
    }
}

/* Modern classic ERP dashboard, inspired by the reference video */
.aurra-erp-tile-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    order: 3;
}

.aurra-erp-tile {
    border-radius: var(--aurra-radius-md);
    box-shadow: 0 14px 28px rgba(23, 33, 43, 0.12);
    color: #ffffff;
    display: grid;
    gap: 0.25rem;
    min-height: 96px;
    overflow: hidden;
    padding: 0.8rem;
    position: relative;
}

.aurra-erp-tile::after {
    background: rgba(255, 255, 255, 0.16);
    border-radius: var(--aurra-radius-full);
    bottom: -28px;
    content: "";
    height: 88px;
    position: absolute;
    right: -28px;
    width: 88px;
}

.aurra-erp-tile:hover,
.aurra-erp-tile:focus-visible {
    color: #ffffff;
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.aurra-erp-tile strong {
    color: inherit;
    font-size: 1.42rem;
    font-weight: 950;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.aurra-erp-tile span {
    color: inherit;
    font-size: 0.86rem;
    font-weight: 850;
}

.aurra-erp-tile small {
    align-self: end;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.75rem;
    font-weight: var(--font-extrabold);
}

.aurra-erp-tile.is-red {
    background: linear-gradient(135deg, #ef4444, #d63b4d);
}

.aurra-erp-tile.is-amber,
.aurra-erp-tile.is-orange {
    background: linear-gradient(135deg, #f59e0b, #e58a12);
}

.aurra-erp-tile.is-blue {
    background: linear-gradient(135deg, #0ea5e9, #0369a1);
}

.aurra-erp-tile.is-slate {
    background: linear-gradient(135deg, #64748b, #475569);
}

.aurra-erp-tile.is-cyan,
.aurra-erp-tile.is-sky {
    background: linear-gradient(135deg, #06b6d4, #0284c7);
}

.aurra-erp-tile.is-green,
.aurra-erp-tile.is-teal {
    background: linear-gradient(135deg, #22c55e, #059669);
}

.aurra-erp-panel-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr) minmax(260px, 0.9fr);
    order: 4;
}

.aurra-erp-panel,
.aurra-erp-class-table-card {
    background: #ffffff;
    border: 1px solid var(--aurra-line);
    border-radius: var(--aurra-radius-md);
    box-shadow: var(--aurra-shadow);
    overflow: hidden;
}

.aurra-erp-class-table-card {
    order: 5;
}

.aurra-erp-panel-head {
    align-items: center;
    background: #073c75;
    color: #ffffff;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    min-height: 42px;
    padding: 0.6rem 0.8rem;
}

.aurra-erp-panel-head h2 {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 950;
    margin: 0;
}

.aurra-erp-panel-head small {
    color: rgba(255, 255, 255, 0.82);
    font-weight: var(--font-extrabold);
}

.aurra-erp-chart {
    align-items: end;
    background:
        linear-gradient(#e7eef5 1px, transparent 1px) 0 20px / 100% 46px,
        #ffffff;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    min-height: 230px;
    padding: var(--space-md);
}

.aurra-erp-chart-bar {
    align-items: end;
    display: grid;
    gap: 0.3rem;
    height: 190px;
    min-width: 0;
}

.aurra-erp-chart-bar i,
.aurra-erp-chart-bar b {
    border-radius: 6px 6px 2px 2px;
    display: block;
    height: var(--h);
}

.aurra-erp-chart-bar i {
    background: rgba(68, 143, 198, 0.46);
    border: 1px solid rgba(68, 143, 198, 0.5);
}

.aurra-erp-chart-bar b {
    background: rgba(237, 165, 43, 0.42);
    border: 1px solid rgba(237, 165, 43, 0.55);
}

.aurra-erp-chart-bar span {
    color: var(--aurra-muted);
    font-size: 0.72rem;
    font-weight: var(--font-black);
    text-align: center;
}

.aurra-erp-admission-list {
    display: grid;
    gap: 0.65rem;
    padding: 0.85rem;
}

.aurra-erp-admission-list a {
    align-items: center;
    background: #f8fbfb;
    border: 1px solid var(--aurra-line);
    border-radius: var(--aurra-radius-md);
    display: grid;
    gap: 0.2rem 0.65rem;
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 0.65rem;
}

.aurra-erp-admission-list a > span {
    align-items: center;
    background: #dff7f4;
    border-radius: var(--aurra-radius-full);
    color: #0b665f;
    display: inline-flex;
    font-size: 1.1rem;
    font-weight: 950;
    grid-row: span 2;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.aurra-erp-admission-list strong {
    color: var(--aurra-ink);
    font-weight: 950;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aurra-erp-admission-list small {
    color: var(--aurra-muted);
    font-weight: var(--font-extrabold);
}

.aurra-erp-attendance-grid {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0.85rem;
}

.aurra-erp-attendance-grid a {
    align-content: center;
    border-radius: var(--aurra-radius-md);
    color: #ffffff;
    display: grid;
    min-height: 92px;
    padding: 0.8rem;
    text-align: center;
}

.aurra-erp-attendance-grid strong {
    color: inherit;
    font-size: 1.65rem;
    font-weight: 950;
}

.aurra-erp-attendance-grid span {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 850;
}

.aurra-erp-attendance-grid .is-green {
    background: #35b85f;
}

.aurra-erp-attendance-grid .is-red {
    background: #ef4444;
}

.aurra-erp-attendance-grid .is-amber {
    background: #f59e0b;
}

.aurra-erp-attendance-grid .is-blue {
    background: #3b82f6;
}

.aurra-erp-class-table {
    margin: 0;
    min-width: 900px;
    width: 100%;
}

.aurra-erp-class-table th,
.aurra-erp-class-table td {
    border-bottom: 1px solid var(--aurra-line);
    color: var(--aurra-ink);
    font-size: 0.86rem;
    font-weight: 750;
    padding: 0.58rem 0.65rem;
    vertical-align: middle;
}

.aurra-erp-class-table th {
    background: #eef3f6;
    color: #334155;
    font-size: 0.76rem;
    font-weight: 950;
}

.erp-pill {
    border-radius: var(--aurra-radius-full);
    color: #ffffff;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 950;
    justify-content: center;
    min-width: 54px;
    padding: 0.24rem 0.5rem;
}

.erp-pill.is-muted {
    background: #94a3b8;
}

.erp-pill.is-green {
    background: #22c55e;
}

.erp-pill.is-blue {
    background: #2563eb;
}

.erp-pill.is-amber {
    background: #f59e0b;
}

.erp-pill.is-red {
    background: #ef4444;
}

@media (max-width: 1280px) {
    .aurra-erp-tile-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .aurra-erp-panel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aurra-erp-panel.is-wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .aurra-erp-tile-grid,
    .aurra-erp-panel-grid,
    .aurra-erp-attendance-grid {
        grid-template-columns: 1fr;
    }
}

/* Aurra face recognition attendance */
.auto-face-command,
.auto-camera-card,
.auto-face-decision-card {
    border: 1px solid rgba(126, 151, 176, 0.26);
    border-radius: var(--aurra-radius-md);
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(18, 34, 53, 0.08);
}

.auto-face-command {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
    padding: 1.35rem;
    background: linear-gradient(135deg, #0d1a2d 0%, #152b47 100%);
    color: #f8fafc;
}

.auto-face-command h2 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.4rem, 2vw, 2.2rem);
    font-weight: var(--font-black);
}

.auto-face-command p {
    max-width: 780px;
    margin: 0;
    color: rgba(248, 250, 252, 0.78);
    font-weight: 650;
}

.auto-face-command-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
}

.auto-face-chip-status,
.auto-camera-status,
.auto-face-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0.45rem 0.72rem;
    border-radius: var(--aurra-radius-full);
    border: 1px solid rgba(126, 151, 176, 0.28);
    background: var(--aurra-panel-soft);
    color: #344256;
    font-size: 0.78rem;
    font-weight: 850;
}

.auto-face-chip-status.is-ready,
.auto-camera-status[data-state="ready"],
.auto-camera-status[data-state="marked"] {
    background: rgba(20, 184, 166, 0.14);
    color: #0f766e;
    border-color: rgba(20, 184, 166, 0.35);
}

.auto-face-chip-status.is-blocked,
.auto-camera-status[data-state="error"] {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.28);
}

.auto-camera-status[data-state="busy"] {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.auto-face-note {
    min-height: 48px;
    padding: 0.72rem 0.9rem;
    border-radius: var(--aurra-radius-md);
    background: #eef6f5;
    color: #31515a;
    font-weight: 750;
}

.auto-face-readiness-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-md);
    border: 1px solid rgba(245, 158, 11, 0.34);
    border-radius: var(--aurra-radius-md);
    background: #fff7ed;
    color: #7c2d12;
}

.auto-face-readiness-alert strong,
.auto-face-readiness-alert span {
    display: block;
}

.auto-face-readiness-alert code {
    padding: 0.58rem 0.75rem;
    border-radius: var(--aurra-radius-md);
    background: #111827;
    color: #d1fae5;
    white-space: nowrap;
}

.auto-face-runtime-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.auto-face-runtime-grid span {
    padding: 0.68rem 0.75rem;
    border-radius: var(--aurra-radius-md);
    background: var(--aurra-panel-soft);
    color: #667085;
    font-weight: var(--font-extrabold);
}

.auto-face-runtime-grid strong {
    color: #182230;
}

.auto-face-decision-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.85rem;
}

.auto-face-ops-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.auto-face-ops-card {
    padding: var(--space-md);
    border: 1px solid rgba(126, 151, 176, 0.24);
    border-radius: var(--aurra-radius-md);
    background: var(--aurra-panel-soft);
}

.auto-face-ops-card strong {
    display: block;
    color: #182230;
    font-size: 1.35rem;
    font-weight: 950;
}

.auto-face-ops-card span {
    display: block;
    color: #667085;
    font-weight: 750;
}

.auto-face-decision-card {
    padding: var(--space-md);
}

.auto-face-decision-card span,
.auto-face-decision-card small {
    display: block;
    color: #667085;
    font-weight: 750;
}

.auto-face-decision-card strong {
    display: block;
    margin: 0.2rem 0;
    color: #182230;
    font-size: 2rem;
    font-weight: 950;
}

.auto-camera-card {
    min-height: 100%;
    padding: var(--space-md);
}

.camera-preview-shell {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    border-radius: var(--aurra-radius-md);
    border: 1px solid rgba(126, 151, 176, 0.28);
    background: #0b1220;
}

.camera-preview-shell video,
.camera-preview-shell canvas {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.camera-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 0.35rem;
    padding: var(--space-md);
    color: #dbeafe;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(13, 26, 45, 0.94), rgba(21, 43, 71, 0.92)),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 22px);
}

.camera-placeholder span {
    max-width: 480px;
    color: rgba(219, 234, 254, 0.76);
    font-weight: 650;
}

.auto-decision-state {
    border-radius: var(--aurra-radius-md);
    background: #f1f5f9;
    color: #344256;
    font-weight: 850;
    padding: var(--space-md);
}

.auto-attendance-results {
    display: grid;
    gap: 0.7rem;
    margin-top: 0.85rem;
}

.auto-face-result {
    border-left: 4px solid #64748b;
    border-radius: var(--aurra-radius-md);
    background: var(--aurra-panel-soft);
    padding: 0.82rem 0.9rem;
}

.auto-face-result strong,
.auto-face-result span,
.auto-face-result small {
    display: block;
}

.auto-face-result strong {
    color: #182230;
}

.auto-face-result span,
.auto-face-result small {
    color: #667085;
    font-weight: var(--font-bold);
}

.auto-face-result.is-marked {
    border-left-color: #14b8a6;
}

.auto-face-result.is-needs_review,
.auto-face-result.is-wrong_class {
    border-left-color: #f59e0b;
}

.auto-face-result.is-error {
    border-left-color: #ef4444;
}

.auto-review-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.52rem;
    border-radius: var(--aurra-radius-full);
    background: #e2e8f0;
    color: #334155;
    font-size: 0.72rem;
    font-weight: var(--font-black);
}

.auto-review-pill.is-marked,
.auto-review-pill.is-review-approved {
    background: rgba(20, 184, 166, 0.14);
    color: #0f766e;
}

.auto-review-pill.is-needs-review,
.auto-review-pill.is-wrong-class,
.auto-review-pill.is-unknown-face {
    background: rgba(245, 158, 11, 0.16);
    color: #92400e;
}

.auto-review-pill.is-already-marked,
.auto-review-pill.is-review-dismissed {
    background: rgba(100, 116, 139, 0.14);
    color: var(--aurra-text);
}

.auto-face-progress {
    width: min(180px, 100%);
    height: 8px;
    overflow: hidden;
    border-radius: var(--aurra-radius-full);
    background: #e2e8f0;
}

.auto-face-progress span {
    display: block;
    width: calc(var(--face-progress, 0) * 1%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #14b8a6, #2563eb);
}

.face-sample-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.85rem;
}

.face-sample-slot {
    display: grid;
    gap: 0.45rem;
    padding: 0.75rem;
    border: 1px dashed rgba(100, 116, 139, 0.5);
    border-radius: var(--aurra-radius-md);
    background: var(--aurra-panel-soft);
}

.face-sample-slot span {
    color: #344256;
    font-weight: 850;
}

.face-sample-slot small {
    color: #667085;
    font-weight: var(--font-extrabold);
}

.auto-sampling-rules,
.auto-sample-guidance {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.auto-sampling-rules span,
.auto-sample-guidance span {
    display: inline-flex;
    align-items: center;
    min-height: 1.65rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--aurra-radius-full);
    border: 1px solid rgba(126, 151, 176, 0.28);
    background: var(--aurra-panel-soft);
    color: var(--aurra-text);
    font-size: 0.74rem;
    font-weight: 850;
}

.auto-sample-health {
    display: inline-flex;
    align-items: center;
    min-height: 1.7rem;
    padding: 0.25rem 0.62rem;
    border-radius: var(--aurra-radius-full);
    font-size: 0.78rem;
    font-weight: var(--font-black);
}

.auto-sample-health.is-ready {
    background: rgba(20, 184, 166, 0.14);
    color: #0f766e;
    border: 1px solid rgba(20, 184, 166, 0.35);
}

.auto-sample-health.is-warning {
    background: rgba(245, 158, 11, 0.16);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.auto-sample-health.is-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #b42318;
    border: 1px solid rgba(239, 68, 68, 0.28);
}

.face-sample-slot img,
.live-camera-capture + video {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--aurra-radius-md);
    border: 1px solid rgba(126, 151, 176, 0.28);
}

.live-camera-capture {
    width: 100%;
}

.face-consent-box {
    border: 1px solid rgba(20, 184, 166, 0.28);
    border-radius: var(--aurra-radius-md);
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(255, 255, 255, 0.96));
    padding: 0.9rem;
}

.auto-consent-pill {
    display: inline-flex;
    align-items: center;
    min-height: 1.7rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--aurra-radius-full);
    font-size: 0.78rem;
    font-weight: var(--font-extrabold);
}

.auto-consent-pill.is-confirmed {
    background: rgba(20, 184, 166, 0.14);
    color: #0f766e;
    border: 1px solid rgba(20, 184, 166, 0.35);
}

.auto-consent-pill.is-needed {
    background: rgba(245, 158, 11, 0.16);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.auto-consent-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.auto-consent-summary span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2rem;
    padding: 0.35rem 0.7rem;
    border-radius: var(--aurra-radius-md);
    border: 1px solid rgba(126, 151, 176, 0.28);
    background: var(--aurra-panel-soft);
    color: var(--aurra-text);
    font-weight: 750;
}

.auto-consent-summary strong {
    color: #0f766e;
    font-size: 1rem;
}

.auto-health-panel {
    display: grid;
    grid-template-columns: minmax(16rem, 1fr) minmax(18rem, 1.15fr);
    gap: var(--space-md);
    padding: var(--space-md);
    border: 1px solid rgba(126, 151, 176, 0.32);
    border-radius: var(--aurra-radius-md);
    background: linear-gradient(135deg, #ffffff, #f4f8fb);
}

.auto-health-panel h3 {
    margin: 0;
    color: #102033;
    font-weight: var(--font-black);
}

.auto-health-panel p {
    margin: 0.35rem 0 0;
    color: var(--aurra-muted);
    font-weight: 650;
}

.auto-health-grid,
.auto-health-actions,
.auto-camera-safety {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.auto-health-grid span,
.auto-health-actions span,
.auto-camera-safety span {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.35rem 0.7rem;
    border-radius: var(--aurra-radius-md);
    border: 1px solid rgba(126, 151, 176, 0.28);
    background: var(--aurra-panel-soft);
    color: var(--aurra-text);
    font-weight: var(--font-extrabold);
}

.auto-health-chip.is-ready {
    background: rgba(20, 184, 166, 0.14);
    color: #0f766e;
    border-color: rgba(20, 184, 166, 0.35);
}

.auto-health-chip.is-attention {
    background: rgba(245, 158, 11, 0.16);
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.35);
}

.auto-health-actions {
    grid-column: 1 / -1;
}

.auto-privacy-reset-form {
    display: inline-grid;
    grid-template-columns: minmax(10rem, 12rem) auto;
    gap: 0.4rem;
    align-items: center;
    justify-content: end;
}

.auto-privacy-reset-form .form-select {
    min-height: 2rem;
    font-size: 0.78rem;
    font-weight: 750;
}

@media (max-width: 991.98px) {
    .auto-face-command {
        display: grid;
    }

    .auto-face-command-actions {
        justify-content: flex-start;
    }

    .auto-face-decision-grid,
    .auto-face-ops-grid,
    .face-sample-grid,
    .auto-face-runtime-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .auto-face-decision-grid,
    .auto-face-ops-grid,
    .auto-health-panel,
    .face-sample-grid,
    .auto-face-runtime-grid {
        grid-template-columns: 1fr;
    }

    .auto-face-readiness-alert {
        display: grid;
    }

    .auto-face-readiness-alert code {
        white-space: normal;
    }

    .camera-preview-shell,
    .camera-preview-shell video,
    .camera-preview-shell canvas {
        min-height: 260px;
        height: 260px;
    }
}

/* Step 61 final foundation guard */
body.app-body {
    background:
        radial-gradient(circle at 16% 0%, rgba(68, 143, 198, 0.1), transparent 23rem),
        linear-gradient(180deg, var(--aurra-bg) 0%, var(--aurra-bg-soft) 42%, var(--aurra-bg) 100%) !important;
}

.page-header,
.content-card,
.panel-card,
.metric-card,
.aurra-widget-card,
.table-card,
.form-card,
.student-header-card,
.student-profile-card,
.parent-panel,
.parent-metric-card,
.aurra-ops-metric,
.aurra-role-card,
.aurra-erp-panel,
.aurra-erp-class-table-card {
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius) !important;
    box-shadow: var(--aurra-shadow-soft);
}

.btn,
.form-control,
.form-select,
.input-group-text,
.dropdown-menu,
.alert,
.table-responsive,
.aurra-command-center,
.aurra-student-command,
.aurra-finance-command,
.aurra-defaulter-command,
.aurra-attendance-command,
.aurra-exam-command,
.aurra-result-command,
.aurra-certificate-command,
.aurra-communications-command,
.aurra-teacher-command,
.aurra-parent-command,
.aurra-ops-command {
    border-radius: var(--aurra-radius) !important;
}

.btn-primary,
.aurra-btn-primary {
    background: var(--aurra-teal) !important;
    border-color: var(--aurra-teal) !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus-visible,
.aurra-btn-primary:hover,
.aurra-btn-primary:focus-visible {
    background: var(--aurra-teal-deep) !important;
    border-color: var(--aurra-teal-deep) !important;
}

.table thead th {
    background: #eef3f6;
    border-bottom: 1px solid var(--aurra-line-soft);
    color: var(--aurra-muted);
    font-weight: var(--font-black);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Step 62: app shell and navigation refinement */
.app-layout {
    grid-template-columns: 272px minmax(0, 1fr);
}

.sidebar {
    scrollbar-color: rgba(167, 200, 194, 0.34) transparent;
    scrollbar-width: thin;
    width: 272px;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(167, 200, 194, 0.28);
    border-radius: var(--aurra-radius-full);
}

.brand-block {
    min-height: 70px;
}

.brand-title {
    letter-spacing: 0;
}

.sidebar-nav {
    gap: 0.18rem;
    padding-bottom: 1rem;
}

.sidebar-section-label {
    color: rgba(220, 239, 235, 0.62);
    letter-spacing: 0.08em;
}

.nav-item {
    border: 1px solid transparent;
    isolation: isolate;
    overflow: hidden;
    position: relative;
    text-decoration: none;
}

.nav-item span:not(.nav-icon) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-item::after {
    background: var(--aurra-teal);
    border-radius: var(--aurra-radius-full);
    content: "";
    height: calc(100% - 16px);
    left: 0;
    opacity: 0;
    position: absolute;
    top: 8px;
    width: 3px;
}

.nav-item:hover,
.nav-item.active,
.nav-item[aria-current="page"] {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(167, 200, 194, 0.18);
}

.nav-item.active::after,
.nav-item[aria-current="page"]::after {
    opacity: 1;
}

.nav-item.active .nav-icon,
.nav-item[aria-current="page"] .nav-icon {
    background: rgba(31, 138, 132, 0.24);
    color: #bdf5ee;
}

.topbar {
    align-items: stretch;
    grid-template-columns: minmax(240px, 0.95fr) minmax(280px, 1.1fr) auto minmax(0, auto);
}

.topbar-brand,
.topbar-search,
.topbar-quick-actions,
.profile-progress-chip,
.user-menu-btn {
    min-width: 0;
}

.topbar-brand {
    max-width: 100%;
}

.topbar-subtitle {
    max-width: 100%;
}

.topbar-actions {
    justify-content: flex-end;
    min-width: 0;
}

.user-menu-btn {
    max-width: 240px;
}

.user-menu-copy {
    min-width: 0;
}

.user-menu-copy strong,
.user-menu-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-menu-btn {
    background: #ffffff;
    box-shadow: var(--aurra-shadow-soft);
}

.mobile-sidebar {
    border-right: 0;
    color: #ffffff;
}

.mobile-sidebar .offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-sidebar-title {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    min-width: 0;
}

.mobile-sidebar-title .offcanvas-title {
    color: #ffffff;
    font-weight: var(--font-black);
    line-height: 1.05;
    margin: 0;
}

.mobile-sidebar-title span {
    color: rgba(220, 239, 235, 0.72);
    display: block;
    font-size: 0.78rem;
    font-weight: var(--font-extrabold);
    margin-top: 0.15rem;
}

.mobile-sidebar .offcanvas-body {
    padding-top: 0.65rem;
}

.mobile-sidebar .sidebar-nav {
    padding-top: 0;
}

@media (max-width: 1399.98px) {
    .topbar {
        grid-template-columns: minmax(220px, 1fr) minmax(260px, 1fr) auto;
    }

    .topbar-quick-actions {
        display: none !important;
    }
}

@media (max-width: 1199.98px) {
    .topbar {
        grid-template-columns: minmax(220px, 1fr) auto;
    }

    .topbar-search-wrap {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .topbar {
        align-items: center;
        background: rgba(228, 235, 241, 0.92) !important;
        border-bottom: 1px solid var(--aurra-line-soft);
        grid-template-columns: auto minmax(0, 1fr) auto;
        padding-bottom: 0.85rem;
        position: sticky;
        top: 0;
        z-index: 1020;
    }

    .topbar-actions {
        flex: 0 0 auto;
    }

    .user-menu-btn {
        max-width: 56px;
        padding-inline: 0.35rem;
    }
}

@media (max-width: 575.98px) {
    .topbar {
        gap: 0.45rem;
        padding-inline: 0.7rem;
    }

    .topbar-brand {
        padding-inline: 0.55rem;
    }

    .topbar-brand-mark {
        flex: 0 0 34px;
        height: 34px;
        width: 34px;
    }

    .topbar-kicker {
        display: none;
    }

    .topbar-school-name {
        font-size: 0.92rem;
    }

    .topbar-subtitle {
        font-size: 0.72rem;
    }

    .topbar-actions form .btn {
        min-width: 42px;
        padding-inline: 0.6rem;
    }
}

/* Step 65: fees and finance UX refinement */
.aurra-step65-page-header {
    align-items: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    margin-bottom: 1rem;
    padding: 0.2rem 0 0;
}

.aurra-step65-page-header .page-title {
    color: var(--aurra-ink);
    letter-spacing: 0;
}

.aurra-step65-page-header .page-subtitle {
    color: var(--aurra-muted);
    max-width: 760px;
}

.aurra-step65-finance-command,
.aurra-step65-defaulter-command {
    background: #132235;
    border: 1px solid rgba(167, 200, 194, 0.18);
    border-radius: var(--aurra-radius-md);
    box-shadow: var(--aurra-shadow-soft);
    color: #ffffff;
    overflow: hidden;
}

.aurra-step65-finance-command .aurra-finance-command-main,
.aurra-step65-defaulter-command {
    background: #132235;
}

.aurra-step65-finance-command .page-eyebrow,
.aurra-step65-defaulter-command .page-eyebrow,
.aurra-step65-finance-command .aurra-finance-rail-label {
    color: #8bd8cf;
}

.aurra-step65-finance-command h2,
.aurra-step65-defaulter-command h2 {
    color: #ffffff;
    font-size: clamp(1.65rem, 2.8vw, 2.45rem);
    letter-spacing: 0;
}

.aurra-step65-finance-command p,
.aurra-step65-defaulter-command p {
    color: rgba(255, 255, 255, 0.76);
}

.aurra-step65-finance-command .aurra-finance-command-metrics > div,
.aurra-step65-defaulter-command .aurra-defaulter-command-metrics > div {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--aurra-radius-md);
}

.aurra-step65-finance-command .aurra-finance-command-metrics span,
.aurra-step65-finance-command .aurra-finance-command-metrics small,
.aurra-step65-defaulter-command .aurra-defaulter-command-metrics span {
    color: rgba(255, 255, 255, 0.72);
}

.aurra-step65-finance-command .aurra-finance-command-metrics strong,
.aurra-step65-defaulter-command .aurra-defaulter-command-metrics strong {
    color: #ffffff;
}

.aurra-step65-finance-command .aurra-finance-command-rail {
    background: rgba(255, 255, 255, 0.06);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.aurra-step65-finance-command .aurra-finance-rail-note {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--aurra-radius-md);
    color: rgba(255, 255, 255, 0.76);
}

.aurra-step65-finance-command .aurra-finance-rail-note strong {
    color: #ffffff;
}

.aurra-step65-recovery-strip {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 1rem 0 1.25rem;
}

.aurra-step65-recovery-strip a {
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
    box-shadow: var(--aurra-shadow-soft);
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
    min-height: 112px;
    padding: var(--space-md);
    position: relative;
    text-decoration: none;
}

.aurra-step65-recovery-strip a::before {
    background: var(--aurra-teal);
    border-radius: var(--aurra-radius-full);
    content: "";
    height: 3px;
    left: 1rem;
    position: absolute;
    right: 1rem;
    top: 0.75rem;
}

.aurra-step65-recovery-strip a:nth-child(2)::before {
    background: var(--aurra-green);
}

.aurra-step65-recovery-strip a:nth-child(3)::before,
.aurra-step65-recovery-strip a:nth-child(4)::before {
    background: var(--aurra-amber);
}

.aurra-step65-recovery-strip span {
    color: var(--aurra-muted);
    font-size: 0.72rem;
    font-weight: var(--font-black);
    letter-spacing: 0.07em;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

.aurra-step65-recovery-strip strong {
    color: var(--aurra-ink);
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    line-height: 1.1;
}

.aurra-step65-recovery-strip small {
    color: var(--aurra-muted);
    font-weight: 750;
    line-height: 1.35;
}

.aurra-step65-recovery-strip a:hover,
.aurra-step65-recovery-strip a:focus-visible {
    border-color: rgba(31, 138, 132, 0.3);
    transform: translateY(-1px);
}

.aurra-step65-alert-row .alert {
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line-soft);
    border-left-width: 4px;
    box-shadow: var(--aurra-shadow-soft);
    color: var(--aurra-ink);
}

.aurra-step65-alert-row .alert-danger {
    border-left-color: var(--aurra-red);
}

.aurra-step65-alert-row .alert-warning {
    border-left-color: var(--aurra-amber);
}

.aurra-step65-metric-row .metric-card {
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line-soft);
    border-radius: 8px !important;
    box-shadow: var(--aurra-shadow-soft);
}

.aurra-step65-finance-panel,
.aurra-step65-fee-table-card,
.aurra-step65-receipt-card {
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line-soft);
    border-radius: 8px !important;
    box-shadow: var(--aurra-shadow-soft);
}

.aurra-step65-finance-panel {
    padding: clamp(1rem, 2vw, 1.25rem);
}

.aurra-step65-finance-panel .page-eyebrow,
.aurra-step65-fee-table-card .page-eyebrow {
    color: var(--aurra-teal-deep);
}

.aurra-step65-finance-panel h2,
.aurra-step65-fee-table-card h2 {
    color: var(--aurra-ink);
    letter-spacing: 0;
}

.aurra-step65-finance-panel .form-control,
.aurra-step65-finance-panel .form-select,
.aurra-step65-defaulter-filter .form-control,
.aurra-step65-defaulter-filter .form-select,
.aurra-step65-fee-filter .form-control,
.aurra-step65-fee-filter .form-select {
    background-color: #ffffff;
    border-color: var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
    min-height: 42px;
}

.aurra-step65-finance-panel .form-control:focus,
.aurra-step65-finance-panel .form-select:focus,
.aurra-step65-defaulter-filter .form-control:focus,
.aurra-step65-defaulter-filter .form-select:focus,
.aurra-step65-fee-filter .form-control:focus,
.aurra-step65-fee-filter .form-select:focus {
    border-color: rgba(31, 138, 132, 0.42);
    box-shadow: 0 0 0 0.18rem rgba(31, 138, 132, 0.12);
}

.aurra-step65-finance-panel .fee-structure-strip span,
.aurra-step65-finance-panel .fee-preview-card > div {
    background: #f7fafc;
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
}

.aurra-step65-finance-panel .fee-preview-card {
    background: #f7fafc;
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
    gap: 0.75rem;
}

.aurra-step65-finance-panel .fee-preview-card span {
    color: var(--aurra-muted);
}

.aurra-step65-finance-panel .fee-preview-card strong {
    color: var(--aurra-ink);
}

.aurra-step65-fee-filter {
    align-items: center;
    background: #f7fafc;
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
    gap: 0.75rem;
    padding: 0.85rem;
}

.aurra-step65-fee-filter .fee-filter-controls {
    gap: 0.65rem;
}

.aurra-step65-fee-table-card {
    overflow: hidden;
}

.aurra-step65-fee-table-card .table {
    margin: 0;
}

.aurra-step65-fee-table-card .table thead th {
    background: #eef3f6;
    border-bottom: 1px solid var(--aurra-line-soft);
    color: var(--aurra-muted);
}

.aurra-step65-fee-table-card .table tbody td {
    background: #ffffff;
    border-top: 1px solid #edf2f6;
    padding-bottom: 0.92rem;
    padding-top: 0.92rem;
}

.aurra-step65-fee-table-card .table tbody tr:hover td {
    background: #edf8f6;
}

.aurra-step65-fee-table-card .fee-student-cell {
    align-items: center;
    gap: 0.75rem;
}

.aurra-step65-fee-table-card .fee-net-amount,
.aurra-step65-fee-table-card .fee-money-sm,
.aurra-step65-ledger-summary strong {
    color: var(--aurra-ink);
}

.aurra-step65-fee-table-card .fee-status-badge {
    border-radius: var(--aurra-radius-full);
    font-weight: 850;
    min-height: 28px;
}

.aurra-step65-fee-table-card .status-paid {
    background: rgba(47, 143, 131, 0.13);
    color: var(--aurra-green);
}

.aurra-step65-fee-table-card .status-partial {
    background: rgba(237, 165, 43, 0.15);
    color: #9b6816;
}

.aurra-step65-fee-table-card .status-unpaid {
    background: rgba(228, 93, 85, 0.12);
    color: #b93d36;
}

.aurra-step65-fee-table-card .fee-whatsapp-dot,
.aurra-step65-fee-table-card .student-kebab-btn {
    border-radius: var(--aurra-radius-md);
    box-shadow: none;
}

.aurra-step65-fee-table-card .fee-action-cell {
    align-items: center;
    gap: 0.45rem;
    justify-content: flex-end;
}

.aurra-step65-ledger-summary {
    gap: 0.75rem;
}

.aurra-step65-ledger-summary article {
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
    box-shadow: var(--aurra-shadow-soft);
}

.aurra-step65-ledger-summary article.is-danger strong {
    color: var(--aurra-red);
}

.aurra-step65-receipt-card {
    background:
        linear-gradient(180deg, rgba(31, 138, 132, 0.06), transparent 9rem),
        var(--aurra-panel);
}

.aurra-step65-receipt-card > .d-flex:first-child {
    border-color: var(--aurra-line-soft) !important;
}

.aurra-step65-receipt-grid > div {
    background: #f7fafc;
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
    padding: 0.85rem;
}

.voucher-print-grid .voucher-copy {
    border-radius: var(--aurra-radius-md);
}

.voucher-print-grid .voucher-lines div {
    border-color: var(--aurra-line-soft);
}

@media (max-width: 1199.98px) {
    .aurra-step65-recovery-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .aurra-step65-finance-command {
        grid-template-columns: 1fr;
    }

    .aurra-step65-finance-command .aurra-finance-command-rail {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .aurra-step65-fee-filter,
    .aurra-step65-fee-filter .fee-filter-controls {
        align-items: stretch;
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .aurra-step65-page-header {
        align-items: flex-start;
    }

    .aurra-step65-recovery-strip,
    .aurra-step65-ledger-summary {
        grid-template-columns: 1fr;
    }

    .aurra-step65-recovery-strip a {
        min-height: 88px;
    }

    .aurra-step65-fee-table-card .fee-action-cell {
        justify-content: flex-start;
    }
}

/* Step 66: attendance and face recognition UX refinement */
.aurra-step66-page-header {
    align-items: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    margin-bottom: 1rem;
    padding: 0.2rem 0 0;
}

.aurra-step66-page-header .page-title {
    color: var(--aurra-ink);
    letter-spacing: 0;
}

.aurra-step66-page-header .page-subtitle {
    color: var(--aurra-muted);
    max-width: 760px;
}

.aurra-step66-attendance-command,
.aurra-step66-biometric-command {
    background: #132235;
    border: 1px solid rgba(167, 200, 194, 0.18);
    border-radius: var(--aurra-radius-md);
    box-shadow: var(--aurra-shadow-soft);
    color: #ffffff;
    overflow: hidden;
}

.aurra-step66-attendance-command .aurra-attendance-command-main,
.aurra-step66-biometric-command .aurra-ops-command-main {
    background: transparent;
}

.aurra-step66-attendance-command .page-eyebrow,
.aurra-step66-biometric-command .page-eyebrow,
.aurra-step66-attendance-command .aurra-attendance-rail-label {
    color: #8bd8cf;
}

.aurra-step66-attendance-command h2,
.aurra-step66-biometric-command h1 {
    color: #ffffff;
    font-size: clamp(1.65rem, 2.8vw, 2.45rem);
    letter-spacing: 0;
}

.aurra-step66-attendance-command p,
.aurra-step66-biometric-command p {
    color: rgba(255, 255, 255, 0.76);
}

.aurra-step66-attendance-command .aurra-attendance-command-metrics > div,
.aurra-step66-biometric-command .aurra-ops-command-metrics > div {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--aurra-radius-md);
}

.aurra-step66-attendance-command .aurra-attendance-command-metrics span,
.aurra-step66-attendance-command .aurra-attendance-command-metrics small,
.aurra-step66-biometric-command .aurra-ops-command-metrics span,
.aurra-step66-biometric-command .aurra-ops-command-metrics small {
    color: rgba(255, 255, 255, 0.72);
}

.aurra-step66-attendance-command .aurra-attendance-command-metrics strong,
.aurra-step66-biometric-command .aurra-ops-command-metrics strong {
    color: #ffffff;
}

.aurra-step66-attendance-command .aurra-attendance-command-rail,
.aurra-step66-biometric-command .aurra-ops-command-rail {
    background: rgba(255, 255, 255, 0.06);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.aurra-step66-attendance-command .aurra-attendance-rail-note,
.aurra-step66-biometric-command .aurra-ops-command-rail {
    color: rgba(255, 255, 255, 0.76);
}

.aurra-step66-attendance-command .aurra-attendance-rail-note strong,
.aurra-step66-biometric-command .aurra-ops-command-rail strong {
    color: #ffffff;
}

.aurra-step66-attendance-strip {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 1rem 0 1.25rem;
}

.aurra-step66-attendance-strip a {
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
    box-shadow: var(--aurra-shadow-soft);
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
    min-height: 112px;
    padding: var(--space-md);
    position: relative;
    text-decoration: none;
}

.aurra-step66-attendance-strip a::before {
    background: var(--aurra-teal);
    border-radius: var(--aurra-radius-full);
    content: "";
    height: 3px;
    left: 1rem;
    position: absolute;
    right: 1rem;
    top: 0.75rem;
}

.aurra-step66-attendance-strip a:nth-child(2)::before {
    background: var(--aurra-green);
}

.aurra-step66-attendance-strip a:nth-child(4)::before {
    background: var(--aurra-violet);
}

.aurra-step66-attendance-strip span {
    color: var(--aurra-muted);
    font-size: 0.72rem;
    font-weight: var(--font-black);
    letter-spacing: 0.07em;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

.aurra-step66-attendance-strip strong {
    color: var(--aurra-ink);
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    line-height: 1.1;
}

.aurra-step66-attendance-strip small {
    color: var(--aurra-muted);
    font-weight: 750;
    line-height: 1.35;
}

.aurra-step66-attendance-shell,
.aurra-step66-biometric-card {
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line-soft);
    border-radius: 8px !important;
    box-shadow: var(--aurra-shadow-soft);
    overflow: hidden;
}

.aurra-step66-tabs {
    background: #f7fafc;
    border-bottom: 1px solid var(--aurra-line-soft);
    gap: 0.35rem;
}

.aurra-step66-tabs .nav-link {
    border-radius: 6px;
    color: var(--aurra-muted);
    font-weight: 850;
}

.aurra-step66-tabs .nav-link.active {
    background: #e7f4f2;
    color: var(--aurra-teal-deep);
}

.aurra-step66-filter-panel {
    background: #f7fafc;
}

.aurra-step66-filter-panel .form-control,
.aurra-step66-filter-panel .form-select,
.aurra-step66-biometric-card .form-control,
.aurra-step66-biometric-card .form-select {
    background-color: #ffffff;
    border-color: var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
    min-height: 42px;
}

.aurra-step66-filter-panel .form-control:focus,
.aurra-step66-filter-panel .form-select:focus,
.aurra-step66-biometric-card .form-control:focus,
.aurra-step66-biometric-card .form-select:focus {
    border-color: rgba(31, 138, 132, 0.42);
    box-shadow: 0 0 0 0.18rem rgba(31, 138, 132, 0.12);
}

.aurra-step66-health-strip {
    gap: 0.75rem;
}

.aurra-step66-health-strip article,
.aurra-step66-health-strip .attendance-donut-card {
    background: #ffffff;
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
    box-shadow: none;
}

.aurra-step66-health-strip span {
    color: var(--aurra-muted);
}

.aurra-step66-health-strip strong {
    color: var(--aurra-ink);
}

.aurra-step66-attendance-table {
    margin: 0;
}

.aurra-step66-attendance-table thead th {
    background: #eef3f6;
    border-bottom: 1px solid var(--aurra-line-soft);
    color: var(--aurra-muted);
}

.aurra-step66-attendance-table tbody td {
    background: #ffffff;
    border-top: 1px solid #edf2f6;
    padding-bottom: 0.92rem;
    padding-top: 0.92rem;
}

.aurra-step66-attendance-table tbody tr:hover td {
    background: #edf8f6;
}

.aurra-step66-attendance-table .attendance-student-cell img,
.aurra-step66-attendance-table .attendance-student-cell > span {
    border: 1px solid var(--aurra-line-soft);
    box-shadow: none;
}

.aurra-step66-attendance-table .attendance-status-toggle {
    background: #f7fafc;
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
}

.aurra-step66-attendance-table .attendance-status-toggle label {
    border-radius: 6px;
    font-weight: var(--font-black);
}

.aurra-step66-submit-bar {
    background: #f7fafc;
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
    box-shadow: none;
}

.aurra-step66-face-command,
.aurra-step66-auto-health,
.aurra-step66-camera-card {
    background: #ffffff;
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
    box-shadow: var(--aurra-shadow-soft);
}

.aurra-step66-face-command {
    padding: var(--space-md);
}

.aurra-step66-face-command h2,
.aurra-step66-camera-card h3,
.aurra-step66-auto-health h3 {
    color: var(--aurra-ink);
    letter-spacing: 0;
}

.aurra-step66-face-command p,
.aurra-step66-camera-card p,
.aurra-step66-auto-health p {
    color: var(--aurra-muted);
}

.aurra-step66-face-grid {
    gap: 0.75rem;
}

.aurra-step66-face-grid .auto-face-decision-card,
.aurra-step66-face-grid .auto-face-ops-card {
    background: #ffffff;
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
    box-shadow: var(--aurra-shadow-soft);
}

.aurra-step66-face-grid .auto-face-decision-card strong,
.aurra-step66-face-grid .auto-face-ops-card strong {
    color: var(--aurra-ink);
}

.aurra-step66-face-grid .auto-face-decision-card span,
.aurra-step66-face-grid .auto-face-decision-card small,
.aurra-step66-face-grid .auto-face-ops-card span {
    color: var(--aurra-muted);
}

.aurra-step66-camera-card {
    padding: var(--space-md);
}

.aurra-step66-camera-card .camera-preview-shell {
    background: #101827;
    border: 1px solid rgba(167, 200, 194, 0.18);
    border-radius: var(--aurra-radius-md);
    box-shadow: none;
}

.aurra-step66-camera-card .auto-camera-status,
.aurra-step66-camera-card .auto-review-pill,
.aurra-step66-camera-card .auto-consent-pill,
.aurra-step66-camera-card .auto-sample-health {
    border-radius: var(--aurra-radius-full);
    font-weight: 850;
}

.aurra-step66-camera-card .auto-face-runtime-grid span,
.aurra-step66-camera-card .auto-consent-summary span,
.aurra-step66-camera-card .auto-camera-safety span,
.aurra-step66-auto-health .auto-health-grid span,
.aurra-step66-auto-health .auto-health-actions span {
    background: #f7fafc;
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
}

.aurra-step66-saved-summary {
    background: #f7fafc;
}

.aurra-step66-saved-summary .metric-card {
    background: #ffffff;
    border: 1px solid var(--aurra-line-soft);
    border-radius: 8px !important;
    box-shadow: none;
}

.aurra-step66-biometric-card {
    padding: clamp(1rem, 2vw, 1.25rem);
}

.aurra-step66-biometric-card pre {
    background: #f7fafc !important;
    border-color: var(--aurra-line-soft) !important;
    border-radius: 8px !important;
}

.aurra-step66-biometric-card .aurra-review-item {
    background: #f7fafc;
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
}

.aurra-step66-biometric-table .table {
    margin: 0;
}

.aurra-step66-biometric-table .table thead th {
    background: #eef3f6;
    color: var(--aurra-muted);
}

.aurra-step66-biometric-table .table tbody td {
    border-top: 1px solid #edf2f6;
}

@media (max-width: 1199.98px) {
    .aurra-step66-attendance-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .aurra-step66-attendance-command,
    .aurra-step66-biometric-command {
        grid-template-columns: 1fr;
    }

    .aurra-step66-attendance-command .aurra-attendance-command-rail,
    .aurra-step66-biometric-command .aurra-ops-command-rail {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }
}

@media (max-width: 767.98px) {
    .aurra-step66-page-header {
        align-items: flex-start;
    }

    .aurra-step66-attendance-strip,
    .aurra-step66-health-strip,
    .aurra-step66-face-grid {
        grid-template-columns: 1fr;
    }

    .aurra-step66-attendance-strip a {
        min-height: 88px;
    }

    .aurra-step66-submit-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .aurra-step66-submit-bar .btn {
        width: 100%;
    }
}

/* Step 67: accounts, payroll, and HR UX refinement */
.aurra-step67-page-header {
    align-items: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    margin-bottom: 1rem;
    padding: 0.2rem 0 0;
}

.aurra-step67-page-header .page-title {
    color: var(--aurra-ink);
    letter-spacing: 0;
}

.aurra-step67-page-header .page-subtitle {
    color: var(--aurra-muted);
    max-width: 760px;
}

.aurra-step67-accounts-command,
.aurra-step67-hr-command {
    background: #132235;
    border: 1px solid rgba(167, 200, 194, 0.18);
    border-radius: 8px !important;
    box-shadow: var(--aurra-shadow-soft);
    color: #ffffff;
    overflow: hidden;
}

.aurra-step67-accounts-command .page-eyebrow,
.aurra-step67-hr-command .page-eyebrow,
.aurra-step67-hr-command .aurra-local-review-rail-label {
    color: #8bd8cf;
}

.aurra-step67-accounts-command h2,
.aurra-step67-hr-command h2 {
    color: #ffffff;
    font-size: clamp(1.5rem, 2.6vw, 2.25rem);
    letter-spacing: 0;
}

.aurra-step67-accounts-command .page-subtitle,
.aurra-step67-hr-command p,
.aurra-step67-hr-command .aurra-local-review-rail-note span {
    color: rgba(255, 255, 255, 0.76);
}

.aurra-step67-accounts-command .row > [class*="col-"] > div,
.aurra-step67-hr-command .aurra-ops-command-metrics > div,
.aurra-step67-hr-command .aurra-ops-command-rail {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    color: #ffffff;
}

.aurra-step67-accounts-command .row .small,
.aurra-step67-hr-command .aurra-ops-command-metrics span,
.aurra-step67-hr-command .aurra-ops-command-metrics small {
    color: rgba(255, 255, 255, 0.72) !important;
}

.aurra-step67-accounts-command .h3,
.aurra-step67-hr-command .aurra-ops-command-metrics strong,
.aurra-step67-hr-command .aurra-local-review-rail-note strong {
    color: #ffffff;
}

.aurra-step67-accounts-command .progress {
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--aurra-radius-full);
}

.aurra-step67-accounts-command .accounts-mini-panel {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
}

.aurra-step67-metric-row .metric-card,
.aurra-step67-panel,
.aurra-step67-table-card,
.aurra-step67-slip-card,
.aurra-step67-account-entry {
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line-soft);
    border-radius: 8px !important;
    box-shadow: var(--aurra-shadow-soft);
}

.aurra-step67-panel,
.aurra-step67-table-card,
.aurra-step67-slip-card {
    padding: clamp(1rem, 2vw, 1.25rem);
}

.aurra-step67-panel .section-heading,
.aurra-step67-table-card .section-heading {
    align-items: center;
    margin-bottom: 1rem;
}

.aurra-step67-panel .page-eyebrow,
.aurra-step67-table-card .page-eyebrow,
.aurra-step67-slip-card .page-eyebrow {
    color: var(--aurra-teal-deep);
}

.aurra-step67-panel h2,
.aurra-step67-table-card h2,
.aurra-step67-slip-card h2 {
    color: var(--aurra-ink);
    letter-spacing: 0;
}

.aurra-step67-form-panel .form-control,
.aurra-step67-form-panel .form-select,
.aurra-step67-panel .form-control,
.aurra-step67-panel .form-select,
.aurra-step67-account-entry .form-control,
.aurra-step67-account-entry .form-select {
    background-color: #ffffff;
    border-color: var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
    min-height: 42px;
}

.aurra-step67-form-panel .form-control:focus,
.aurra-step67-form-panel .form-select:focus,
.aurra-step67-panel .form-control:focus,
.aurra-step67-panel .form-select:focus,
.aurra-step67-account-entry .form-control:focus,
.aurra-step67-account-entry .form-select:focus {
    border-color: rgba(31, 138, 132, 0.42);
    box-shadow: 0 0 0 0.18rem rgba(31, 138, 132, 0.12);
}

.aurra-step67-table-card {
    overflow: hidden;
}

.aurra-step67-table-card .table {
    margin: 0;
}

.aurra-step67-table-card .table thead th,
.aurra-step67-slip-card .table th {
    background: #eef3f6;
    border-bottom: 1px solid var(--aurra-line-soft);
    color: var(--aurra-muted);
}

.aurra-step67-table-card .table tbody td,
.aurra-step67-slip-card .table td,
.aurra-step67-slip-card .table th {
    border-top: 1px solid #edf2f6;
    padding-bottom: 0.9rem;
    padding-top: 0.9rem;
}

.aurra-step67-table-card .table tbody tr:hover td {
    background: #edf8f6;
}

.aurra-step67-table-card .badge,
.aurra-step67-slip-card .badge {
    border-radius: var(--aurra-radius-full);
    font-weight: 850;
}

.aurra-step67-panel .mini-stat {
    background: #f7fafc;
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
    box-shadow: none;
}

.aurra-step67-panel .mini-stat span {
    color: var(--aurra-muted);
}

.aurra-step67-panel .mini-stat strong {
    color: var(--aurra-ink);
}

.aurra-step67-account-entry {
    padding: clamp(1rem, 2vw, 1.25rem);
}

.aurra-step67-account-entry .account-entry-summary > div,
.aurra-step67-account-entry .account-entry-card,
.aurra-step67-account-entry .account-submit-bar {
    background: #ffffff;
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
    box-shadow: none;
}

.aurra-step67-account-entry .account-entry-summary strong,
.aurra-step67-account-entry .account-entry-card h2 {
    color: var(--aurra-ink);
}

.aurra-step67-account-entry .account-entry-summary small,
.aurra-step67-account-entry .account-entry-hint {
    color: var(--aurra-muted);
}

.aurra-step67-account-entry .account-entry-icon {
    background: #e7f4f2;
    color: var(--aurra-teal-deep);
}

.aurra-step67-account-entry .account-entry-icon-soft {
    background: rgba(68, 143, 198, 0.12);
    color: #216f9f;
}

.aurra-step67-account-entry .account-entry-icon-inventory {
    background: rgba(237, 165, 43, 0.14);
    color: #9b6816;
}

.aurra-step67-slip-card {
    max-width: 860px;
    margin-inline: auto;
}

.aurra-step67-slip-card > .d-flex:first-child {
    border-color: var(--aurra-line-soft) !important;
}

.aurra-step67-summary-card .summary-export-actions {
    gap: var(--space-sm);
}

.aurra-step67-summary-card .summary-action-btn {
    border-radius: var(--aurra-radius-md);
}

@media (max-width: 991.98px) {
    .aurra-step67-hr-command {
        grid-template-columns: 1fr;
    }

    .aurra-step67-hr-command .aurra-ops-command-rail {
        border-left: 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    }
}

@media (max-width: 767.98px) {
    .aurra-step67-page-header {
        align-items: flex-start;
    }

    .aurra-step67-panel .section-heading,
    .aurra-step67-table-card .section-heading,
    .aurra-step67-summary-card .summary-export-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .aurra-step67-summary-card .summary-action-btn,
    .aurra-step67-account-entry .account-submit-bar .btn {
        width: 100%;
    }
}

/* Step 68 - Academic UX foundation */
.aurra-step68-page-header {
    gap: var(--space-md);
}

.aurra-step68-page-header .page-title {
    color: var(--aurra-ink);
    letter-spacing: 0;
}

.aurra-step68-page-header .page-subtitle {
    color: var(--aurra-muted);
    max-width: 790px;
}

.aurra-step68-exam-command,
.aurra-step68-result-command,
.aurra-step68-academic-hero {
    background: #132235;
    border: 1px solid rgba(167, 200, 194, 0.18);
    border-radius: 8px !important;
    box-shadow: var(--aurra-shadow-soft);
    color: #ffffff;
}

.aurra-step68-exam-command .page-eyebrow,
.aurra-step68-result-command .page-eyebrow,
.aurra-step68-academic-hero .page-eyebrow {
    color: #8bd8cf;
}

.aurra-step68-exam-command h2,
.aurra-step68-result-command h2,
.aurra-step68-academic-hero h2 {
    color: #ffffff;
    letter-spacing: 0;
}

.aurra-step68-exam-command p,
.aurra-step68-result-command p,
.aurra-step68-academic-hero p,
.aurra-step68-exam-command .aurra-exam-rail-note span {
    color: rgba(255, 255, 255, 0.76);
}

.aurra-step68-exam-command .aurra-exam-command-metrics > div,
.aurra-step68-result-command .aurra-result-command-metrics > div,
.aurra-step68-academic-hero .academic-setup-stats span,
.aurra-step68-exam-command .aurra-exam-command-rail {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    color: #ffffff;
}

.aurra-step68-exam-command .aurra-exam-command-metrics span,
.aurra-step68-exam-command .aurra-exam-command-metrics small,
.aurra-step68-result-command .aurra-result-command-metrics span {
    color: rgba(255, 255, 255, 0.7) !important;
}

.aurra-step68-exam-command .aurra-exam-command-metrics strong,
.aurra-step68-result-command .aurra-result-command-metrics strong,
.aurra-step68-academic-hero .academic-setup-stats strong {
    color: #ffffff;
}

.aurra-step68-academic-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0 0 1rem;
}

.aurra-step68-academic-strip a {
    align-items: flex-start;
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
    box-shadow: var(--aurra-shadow-soft);
    color: var(--aurra-ink);
    display: flex;
    flex-direction: column;
    min-height: 98px;
    padding: 0.95rem 1rem;
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.aurra-step68-academic-strip a:hover {
    border-color: rgba(31, 138, 132, 0.32);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.aurra-step68-academic-strip span {
    color: var(--aurra-teal-deep);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.aurra-step68-academic-strip strong {
    color: var(--aurra-ink);
    font-size: 1.9rem;
    line-height: 1.05;
    margin-top: 0.35rem;
}

.aurra-step68-academic-strip small {
    color: var(--aurra-muted);
    font-weight: var(--font-bold);
    margin-top: auto;
}

.aurra-step68-command-grid .exam-command-card,
.aurra-step68-panel,
.aurra-step68-table-card,
.aurra-step68-report-tabs,
.aurra-step68-exam-shell,
.aurra-step68-level-grid .academic-level-card {
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line-soft);
    border-radius: 8px !important;
    box-shadow: var(--aurra-shadow-soft);
}

.aurra-step68-command-grid .exam-command-card {
    padding: var(--space-md);
}

.aurra-step68-command-grid .exam-command-card:hover {
    border-color: rgba(68, 143, 198, 0.3);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.aurra-step68-command-grid .exam-command-icon {
    background: #e8f2f7;
    border-radius: var(--aurra-radius-md);
    color: #216f9f;
}

.aurra-step68-exam-shell {
    overflow: hidden;
}

.aurra-step68-exam-shell > .p-3.border-bottom,
.aurra-step68-report-tabs > .p-3.border-bottom,
.aurra-step68-table-card > .p-3.border-bottom {
    background: #f7fafc;
    border-color: var(--aurra-line-soft) !important;
}

.aurra-step68-tabs,
.aurra-step68-subtabs,
.aurra-step68-report-tabs .nav {
    gap: 0.4rem !important;
}

.aurra-step68-tabs .nav-link,
.aurra-step68-subtabs .nav-link,
.aurra-step68-report-tabs .nav-link {
    border-radius: 8px !important;
    color: var(--aurra-muted);
    font-weight: 850;
}

.aurra-step68-tabs .nav-link.active,
.aurra-step68-subtabs .nav-link.active,
.aurra-step68-report-tabs .nav-link.active {
    background: var(--aurra-teal-deep) !important;
    border-color: var(--aurra-teal-deep) !important;
    box-shadow: 0 10px 22px rgba(31, 138, 132, 0.18);
    color: #ffffff !important;
}

.aurra-step68-exam-shell .exam-step-card,
.aurra-step68-exam-shell .exam-register-card,
.aurra-step68-exam-shell .date-sheet-summary-card,
.aurra-step68-exam-shell .date-sheet-subject-card,
.aurra-step68-exam-shell .panel-card,
.aurra-step68-panel {
    background: #ffffff;
    border: 1px solid var(--aurra-line-soft);
    border-radius: 8px !important;
    box-shadow: none;
}

.aurra-step68-exam-shell .exam-step-number {
    background: #132235;
    box-shadow: 0 0 0 5px #edf8f6;
}

.aurra-step68-exam-shell .exam-lifecycle-dot {
    background: var(--aurra-teal-deep);
    box-shadow: 0 0 0 4px #dff2ee;
}

.aurra-step68-exam-shell .exam-academic-track,
.aurra-step68-exam-shell .date-sheet-preview-box,
.aurra-step68-exam-shell .date-sheet-summary-item,
.aurra-step68-exam-shell .form-check.bg-light,
.aurra-step68-panel .form-control,
.aurra-step68-panel .form-select {
    background-color: #f7fafc !important;
    border-color: var(--aurra-line-soft) !important;
    border-radius: 8px !important;
}

.aurra-step68-exam-shell .form-control,
.aurra-step68-exam-shell .form-select,
.aurra-step68-panel .form-control,
.aurra-step68-panel .form-select {
    min-height: 42px;
}

.aurra-step68-exam-shell .form-control:focus,
.aurra-step68-exam-shell .form-select:focus,
.aurra-step68-panel .form-control:focus,
.aurra-step68-panel .form-select:focus {
    border-color: rgba(31, 138, 132, 0.42) !important;
    box-shadow: 0 0 0 0.18rem rgba(31, 138, 132, 0.12) !important;
}

.aurra-step68-table-card {
    overflow: hidden;
}

.aurra-step68-table-card .table,
.aurra-step68-exam-shell .table {
    margin: 0;
}

.aurra-step68-table-card .table thead th,
.aurra-step68-exam-shell .table thead th {
    background: #eef3f6;
    border-bottom: 1px solid var(--aurra-line-soft);
    color: var(--aurra-muted);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.aurra-step68-table-card .table tbody td,
.aurra-step68-exam-shell .table tbody td {
    border-top: 1px solid #edf2f6;
    padding-bottom: 0.9rem;
    padding-top: 0.9rem;
}

.aurra-step68-table-card .table tbody tr:hover td,
.aurra-step68-exam-shell .table tbody tr:hover td {
    background: #edf8f6;
}

.aurra-step68-metric-row .metric-card {
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line-soft);
    border-radius: 8px !important;
    box-shadow: var(--aurra-shadow-soft);
}

.aurra-step68-metric-row .metric-value,
.aurra-step68-command-grid .display-6,
.aurra-step68-level-grid .academic-level-card h2 {
    color: var(--aurra-ink);
    letter-spacing: 0;
}

.aurra-step68-level-grid .academic-level-card {
    padding: 1.15rem;
}

.aurra-step68-level-grid .academic-level-badge {
    background: #e7f4f2;
    border: 1px solid rgba(31, 138, 132, 0.16);
    border-radius: var(--aurra-radius-full);
    color: var(--aurra-teal-deep);
}

.aurra-step68-level-grid .academic-level-list div,
.aurra-step68-panel .academic-config-panel {
    background: #f7fafc;
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
}

.aurra-step68-panel .academic-check {
    background: #ffffff;
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
}

.aurra-step68-panel .academic-check:has(input:checked) {
    background: #edf8f6;
    border-color: rgba(31, 138, 132, 0.28);
    color: var(--aurra-teal-deep);
}

.aurra-step68-table-card .academic-subject-chips span {
    background: #f0f7fb;
    border: 1px solid #dbe8ef;
    border-radius: var(--aurra-radius-full);
    color: #216f9f;
    font-weight: 750;
}

.aurra-step68-table-card .badge,
.aurra-step68-exam-shell .badge {
    border-radius: var(--aurra-radius-full);
    font-weight: 850;
}

@media (max-width: 991.98px) {
    .aurra-step68-academic-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .aurra-step68-page-header {
        align-items: flex-start;
    }

    .aurra-step68-academic-strip {
        grid-template-columns: 1fr;
    }

    .aurra-step68-page-header .btn,
    .aurra-step68-panel .btn,
    .aurra-step68-exam-shell .btn {
        width: 100%;
    }

    .aurra-step68-tabs,
    .aurra-step68-subtabs,
    .aurra-step68-report-tabs .nav {
        align-items: stretch;
    }
}

/* Step 69 - Operations modules UX */
.aurra-step69-page-header {
    gap: var(--space-md);
}

.aurra-step69-page-header .page-title {
    color: var(--aurra-ink);
    letter-spacing: 0;
}

.aurra-step69-page-header .page-subtitle {
    color: var(--aurra-muted);
    max-width: 820px;
}

.aurra-step69-command {
    background: #132235;
    border: 1px solid rgba(167, 200, 194, 0.18);
    border-radius: 8px !important;
    box-shadow: var(--aurra-shadow-soft);
    color: #ffffff;
    overflow: hidden;
}

.aurra-step69-command .page-eyebrow,
.aurra-step69-command .aurra-local-review-rail-label,
.aurra-step69-command .aurra-communications-rail-label {
    color: #8bd8cf;
}

.aurra-step69-command h1,
.aurra-step69-command h2 {
    color: #ffffff;
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
    letter-spacing: 0;
}

.aurra-step69-command p,
.aurra-step69-command small,
.aurra-step69-command .aurra-local-review-rail-note span,
.aurra-step69-command .aurra-communications-rail-note span {
    color: rgba(255, 255, 255, 0.76);
}

.aurra-step69-command .aurra-ops-command-metrics > div,
.aurra-step69-command .aurra-communications-command-metrics > div,
.aurra-step69-command .aurra-ops-command-rail,
.aurra-step69-command .aurra-communications-command-rail {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    color: #ffffff;
}

.aurra-step69-command .aurra-ops-command-metrics span,
.aurra-step69-command .aurra-ops-command-metrics small,
.aurra-step69-command .aurra-communications-command-metrics span,
.aurra-step69-command .aurra-communications-command-metrics small,
.aurra-step69-command .aurra-ops-command-rail > span {
    color: rgba(255, 255, 255, 0.7) !important;
}

.aurra-step69-command .aurra-ops-command-metrics strong,
.aurra-step69-command .aurra-communications-command-metrics strong,
.aurra-step69-command .aurra-ops-command-rail strong,
.aurra-step69-command .aurra-local-review-rail-note strong,
.aurra-step69-command .aurra-communications-rail-note strong {
    color: #ffffff;
}

.aurra-step69-form-grid,
.aurra-step69-register-grid {
    align-items: stretch;
}

.aurra-step69-panel,
.aurra-step69-filter-panel,
.aurra-step69-table-card,
.aurra-step69-document-panel {
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line-soft) !important;
    border-radius: 8px !important;
    box-shadow: var(--aurra-shadow-soft) !important;
}

.aurra-step69-panel,
.aurra-step69-filter-panel,
.aurra-step69-table-card {
    overflow: hidden;
}

.aurra-step69-panel,
.aurra-step69-filter-panel {
    padding: clamp(1rem, 2vw, 1.25rem);
}

.aurra-step69-panel .section-heading,
.aurra-step69-table-card .section-heading,
.aurra-step69-document-panel .card-body > .d-flex:first-child {
    align-items: center;
    border-bottom: 1px solid var(--aurra-line-soft);
    margin: calc(clamp(1rem, 2vw, 1.25rem) * -1) calc(clamp(1rem, 2vw, 1.25rem) * -1) 1rem;
    padding: 1rem clamp(1rem, 2vw, 1.25rem);
}

.aurra-step69-panel .page-eyebrow,
.aurra-step69-table-card .page-eyebrow,
.aurra-step69-document-panel .page-eyebrow {
    color: var(--aurra-teal-deep);
}

.aurra-step69-panel h2,
.aurra-step69-table-card h2,
.aurra-step69-document-panel h2 {
    color: var(--aurra-ink);
    letter-spacing: 0;
}

.aurra-step69-panel .form-control,
.aurra-step69-panel .form-select,
.aurra-step69-panel textarea.form-control,
.aurra-step69-filter-panel .form-control,
.aurra-step69-filter-panel .form-select,
.aurra-step69-table-card .form-control,
.aurra-step69-table-card .form-select,
.aurra-step69-document-panel .form-control,
.aurra-step69-document-panel .form-select {
    background-color: #ffffff;
    border-color: var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
    min-height: 42px;
}

.aurra-step69-panel .form-control:focus,
.aurra-step69-panel .form-select:focus,
.aurra-step69-filter-panel .form-control:focus,
.aurra-step69-filter-panel .form-select:focus,
.aurra-step69-table-card .form-control:focus,
.aurra-step69-table-card .form-select:focus,
.aurra-step69-document-panel .form-control:focus,
.aurra-step69-document-panel .form-select:focus {
    border-color: rgba(31, 138, 132, 0.42);
    box-shadow: 0 0 0 0.18rem rgba(31, 138, 132, 0.12);
}

.aurra-step69-panel .form-check,
.aurra-step69-filter-panel .form-check {
    background: #f7fafc;
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
    margin-left: 0 !important;
    padding: 0.75rem 0.9rem 0.75rem 2.35rem;
}

.aurra-step69-table-card .table,
.aurra-step69-document-panel .table {
    margin: 0;
}

.aurra-step69-table-card .table thead th,
.aurra-step69-document-panel .table thead th {
    background: #eef3f6;
    border-bottom: 1px solid var(--aurra-line-soft);
    color: var(--aurra-muted);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.aurra-step69-table-card .table tbody td,
.aurra-step69-document-panel .table tbody td {
    border-top: 1px solid #edf2f6;
    padding-bottom: 0.9rem;
    padding-top: 0.9rem;
    vertical-align: middle;
}

.aurra-step69-table-card .table tbody tr:hover td,
.aurra-step69-document-panel .table tbody tr:hover td {
    background: #edf8f6;
}

.aurra-step69-table-card .badge,
.aurra-step69-document-panel .badge {
    border-radius: var(--aurra-radius-full);
    font-weight: 850;
}

.aurra-step69-table-card .empty-state,
.aurra-step69-document-panel .empty-state {
    background: #f7fafc;
    border: 1px dashed var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
    color: var(--aurra-muted);
    font-weight: 750;
}

.aurra-step69-communications-command {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.32fr);
}

.aurra-step69-communications-command .btn-outline-primary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.aurra-step69-document-panel .card-body {
    padding: clamp(1rem, 2vw, 1.25rem);
}

.aurra-step69-document-panel .document-upload-form {
    background: #f7fafc;
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
    padding: var(--space-md);
}

@media (max-width: 991.98px) {
    .aurra-step69-communications-command {
        grid-template-columns: 1fr;
    }

    .aurra-step69-command .aurra-ops-command-rail,
    .aurra-step69-command .aurra-communications-command-rail {
        border-left: 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    }
}

@media (max-width: 767.98px) {
    .aurra-step69-page-header {
        align-items: flex-start;
    }

    .aurra-step69-panel .section-heading,
    .aurra-step69-table-card .section-heading,
    .aurra-step69-document-panel .card-body > .d-flex:first-child {
        align-items: flex-start;
        flex-direction: column;
    }

    .aurra-step69-page-header .btn,
    .aurra-step69-panel .btn,
    .aurra-step69-filter-panel .btn,
    .aurra-step69-table-card .btn,
    .aurra-step69-document-panel .btn {
        width: 100%;
    }

    .aurra-step69-table-card td .d-flex,
    .aurra-step69-document-panel td .d-flex {
        align-items: stretch !important;
        flex-direction: column;
    }
}

/* Step 70 - Role portals UX */
.aurra-step70-portal-shell {
    gap: 1.05rem;
}

.aurra-step70-command {
    background: #132235;
    border: 1px solid rgba(167, 200, 194, 0.18);
    border-radius: 8px !important;
    box-shadow: var(--aurra-shadow-soft);
    color: #ffffff;
    overflow: hidden;
}

.aurra-step70-command .page-eyebrow,
.aurra-step70-command .parent-rail-label {
    color: #8bd8cf;
}

.aurra-step70-command .parent-hero-title {
    color: #ffffff;
    font-size: clamp(1.7rem, 3vw, 2.55rem);
    letter-spacing: 0;
}

.aurra-step70-command .parent-hero-subtitle,
.aurra-step70-command .parent-hero-actions small {
    color: rgba(255, 255, 255, 0.76);
}

.aurra-step70-command .parent-avatar {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--aurra-radius-md);
    box-shadow: none;
}

.aurra-step70-command .parent-chip,
.aurra-step70-command .parent-hero-actions {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    color: #ffffff;
}

.aurra-step70-command .parent-chip-success {
    background: rgba(74, 163, 143, 0.22) !important;
    border-color: rgba(139, 216, 207, 0.28) !important;
}

.aurra-step70-command .parent-hero-actions strong {
    color: #ffffff;
}

.aurra-step70-command .parent-hero-actions .btn-outline-primary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.aurra-step70-portal-nav {
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
    box-shadow: var(--aurra-shadow-soft);
    padding: 0.4rem;
}

.aurra-step70-portal-nav a {
    border-radius: var(--aurra-radius-md);
    color: var(--aurra-muted);
    font-weight: 850;
}

.aurra-step70-portal-nav a:hover {
    background: #edf8f6;
    color: var(--aurra-teal-deep);
}

.aurra-step70-metric-grid .parent-metric-card,
.aurra-step70-section-grid .parent-panel,
.aurra-step70-table-panel,
.aurra-step70-lms-panel {
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line-soft);
    border-radius: 8px !important;
    box-shadow: var(--aurra-shadow-soft);
}

.aurra-step70-metric-grid .parent-metric-card {
    min-height: 128px;
    overflow: hidden;
    padding: var(--space-md);
}

.aurra-step70-metric-grid .parent-metric-card::before {
    border-radius: var(--aurra-radius-full);
    height: 0.24rem;
}

.aurra-step70-metric-grid .parent-metric-card strong {
    color: var(--aurra-ink);
    letter-spacing: 0;
}

.aurra-step70-metric-grid .parent-metric-card small,
.aurra-step70-section-grid .parent-snapshot-list small,
.aurra-step70-section-grid .parent-profile-list span {
    color: var(--aurra-muted);
}

.aurra-step70-section-grid .parent-panel,
.aurra-step70-table-panel {
    overflow: hidden;
}

.aurra-step70-section-grid .parent-panel-head,
.aurra-step70-table-panel .parent-panel-head {
    background: #f7fafc;
    border-bottom: 1px solid var(--aurra-line-soft);
    margin: -1rem -1rem 1rem;
    padding: var(--space-md);
}

.aurra-step70-section-grid .parent-panel-head h2,
.aurra-step70-table-panel .parent-panel-head h2 {
    color: var(--aurra-ink);
    letter-spacing: 0;
}

.aurra-step70-section-grid .parent-profile-list div,
.aurra-step70-section-grid .parent-snapshot-list > div {
    background: #f7fafc;
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
}

.aurra-step70-section-grid .parent-profile-list strong,
.aurra-step70-section-grid .parent-snapshot-list strong {
    color: var(--aurra-ink);
}

.aurra-step70-table-panel .parent-compact-table {
    margin: 0;
}

.aurra-step70-table-panel .table thead th,
.aurra-step70-lms-panel .table thead th {
    background: #eef3f6;
    border-bottom: 1px solid var(--aurra-line-soft);
    color: var(--aurra-muted);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.aurra-step70-table-panel .table tbody td,
.aurra-step70-lms-panel .table tbody td {
    border-top: 1px solid #edf2f6;
    padding-bottom: 0.9rem;
    padding-top: 0.9rem;
    vertical-align: middle;
}

.aurra-step70-table-panel .table tbody tr:hover td,
.aurra-step70-lms-panel .table tbody tr:hover td {
    background: #edf8f6;
}

.aurra-step70-table-panel .parent-status-pill {
    border-radius: var(--aurra-radius-full);
    font-weight: 850;
}

.aurra-step70-table-panel .form-control,
.aurra-step70-table-panel .form-select,
.aurra-step70-section-grid .form-control,
.aurra-step70-section-grid .form-select,
.aurra-step70-lms-panel .form-control,
.aurra-step70-lms-panel .form-select {
    background-color: #ffffff;
    border-color: var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
    min-height: 42px;
}

.aurra-step70-table-panel .form-control:focus,
.aurra-step70-table-panel .form-select:focus,
.aurra-step70-section-grid .form-control:focus,
.aurra-step70-section-grid .form-select:focus,
.aurra-step70-lms-panel .form-control:focus,
.aurra-step70-lms-panel .form-select:focus {
    border-color: rgba(31, 138, 132, 0.42);
    box-shadow: 0 0 0 0.18rem rgba(31, 138, 132, 0.12);
}

.aurra-step70-section-grid .form-check {
    background: #f7fafc;
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
    padding: 0.75rem 0.9rem;
}

.aurra-step70-lms-command {
    background: #132235;
    border: 1px solid rgba(167, 200, 194, 0.18);
    border-radius: 8px !important;
    box-shadow: var(--aurra-shadow-soft);
    color: #ffffff;
}

.aurra-step70-lms-command .page-eyebrow {
    color: #8bd8cf;
}

.aurra-step70-lms-command h1,
.aurra-step70-lms-command p,
.aurra-step70-lms-command small,
.aurra-step70-lms-command .aurra-ops-command-rail span {
    color: #ffffff;
}

.aurra-step70-lms-command p,
.aurra-step70-lms-command small {
    opacity: 0.76;
}

.aurra-step70-lms-command .aurra-ops-command-metrics > div,
.aurra-step70-lms-command .aurra-ops-command-rail {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    color: #ffffff;
}

.aurra-step70-lms-metrics .aurra-ops-metric {
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
    box-shadow: var(--aurra-shadow-soft);
}

.aurra-step70-lms-panel {
    padding: clamp(1rem, 2vw, 1.25rem);
}

.aurra-step70-lms-panel .page-eyebrow {
    color: var(--aurra-teal-deep);
}

.aurra-step70-lms-panel h2 {
    color: var(--aurra-ink);
    letter-spacing: 0;
}

@media (max-width: 767.98px) {
    .aurra-step70-command {
        align-items: stretch;
    }

    .aurra-step70-command .parent-hero-identity,
    .aurra-step70-command .parent-hero-actions {
        align-items: flex-start;
    }

    .aurra-step70-section-grid .parent-panel-head,
    .aurra-step70-table-panel .parent-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .aurra-step70-table-panel .btn,
    .aurra-step70-section-grid .btn,
    .aurra-step70-lms-panel .btn {
        width: 100%;
    }
}

/* Step 71 - SaaS, admin, and settings UX */
.aurra-step71-page-header {
    gap: var(--space-md);
}

.aurra-step71-page-header .page-title {
    color: var(--aurra-ink);
    letter-spacing: 0;
}

.aurra-step71-page-header .page-subtitle {
    color: var(--aurra-muted);
    max-width: 820px;
}

.aurra-step71-command {
    background: #132235;
    border: 1px solid rgba(167, 200, 194, 0.18);
    border-radius: 8px !important;
    box-shadow: var(--aurra-shadow-soft);
    color: #ffffff;
    overflow: hidden;
}

.aurra-step71-command .page-eyebrow,
.aurra-step71-command .aurra-local-review-rail-label {
    color: #8bd8cf;
}

.aurra-step71-command h1,
.aurra-step71-command h2 {
    color: #ffffff;
    font-size: clamp(1.55rem, 2.7vw, 2.3rem);
    letter-spacing: 0;
}

.aurra-step71-command p,
.aurra-step71-command small,
.aurra-step71-command .aurra-local-review-rail-note span {
    color: rgba(255, 255, 255, 0.76);
}

.aurra-step71-command .aurra-ops-command-metrics > div,
.aurra-step71-command .aurra-ops-command-rail {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    color: #ffffff;
}

.aurra-step71-command .aurra-ops-command-metrics span,
.aurra-step71-command .aurra-ops-command-metrics small,
.aurra-step71-command .aurra-ops-command-rail > span {
    color: rgba(255, 255, 255, 0.7) !important;
}

.aurra-step71-command .aurra-ops-command-metrics strong,
.aurra-step71-command .aurra-ops-command-rail strong,
.aurra-step71-command .aurra-local-review-rail-note strong {
    color: #ffffff;
}

.aurra-step71-metric-grid .aurra-ops-metric,
.aurra-step71-card-grid .aurra-role-card,
.aurra-step71-panel,
.aurra-step71-table-card {
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line-soft) !important;
    border-radius: 8px !important;
    box-shadow: var(--aurra-shadow-soft) !important;
}

.aurra-step71-panel,
.aurra-step71-table-card {
    overflow: hidden;
}

.aurra-step71-panel .page-eyebrow,
.aurra-step71-table-card .page-eyebrow,
.aurra-step71-card-grid .page-eyebrow {
    color: var(--aurra-teal-deep);
}

.aurra-step71-panel h2,
.aurra-step71-table-card h2,
.aurra-step71-card-grid h2,
.aurra-step71-metric-grid strong {
    color: var(--aurra-ink);
    letter-spacing: 0;
}

.aurra-step71-grid .content-card,
.aurra-step71-card-grid .aurra-role-card {
    padding: clamp(1rem, 2vw, 1.25rem);
}

.aurra-step71-panel .aurra-ops-action,
.aurra-step71-table-card .aurra-ops-action,
.aurra-step71-panel .aurra-review-item,
.aurra-step71-table-card .aurra-review-item,
.aurra-step71-settings-panel .border.rounded-3,
.aurra-step71-panel .profile-field {
    background: #f7fafc;
    border: 1px solid var(--aurra-line-soft) !important;
    border-radius: 8px !important;
}

.aurra-step71-settings-panel .border.rounded-3 {
    padding: 1rem !important;
}

.aurra-step71-panel .form-control,
.aurra-step71-panel .form-select,
.aurra-step71-table-card .form-control,
.aurra-step71-table-card .form-select,
.aurra-step71-settings-panel .form-control,
.aurra-step71-settings-panel .form-select {
    background-color: #ffffff;
    border-color: var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
    min-height: 42px;
}

.aurra-step71-panel .form-control:focus,
.aurra-step71-panel .form-select:focus,
.aurra-step71-table-card .form-control:focus,
.aurra-step71-table-card .form-select:focus,
.aurra-step71-settings-panel .form-control:focus,
.aurra-step71-settings-panel .form-select:focus {
    border-color: rgba(31, 138, 132, 0.42);
    box-shadow: 0 0 0 0.18rem rgba(31, 138, 132, 0.12);
}

.aurra-step71-table-card .table {
    margin: 0;
}

.aurra-step71-table-card .table thead th,
.aurra-step71-panel .table thead th {
    background: #eef3f6;
    border-bottom: 1px solid var(--aurra-line-soft);
    color: var(--aurra-muted);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.aurra-step71-table-card .table tbody td,
.aurra-step71-panel .table tbody td {
    border-top: 1px solid #edf2f6;
    padding-bottom: 0.9rem;
    padding-top: 0.9rem;
    vertical-align: middle;
}

.aurra-step71-table-card .table tbody tr:hover td,
.aurra-step71-panel .table tbody tr:hover td {
    background: #edf8f6;
}

.aurra-step71-panel .badge,
.aurra-step71-table-card .badge,
.aurra-step71-card-grid .badge {
    border-radius: var(--aurra-radius-full);
    font-weight: 850;
}

.aurra-step71-panel .progress,
.aurra-step71-table-card .progress {
    background: #eef3f6;
    border-radius: var(--aurra-radius-full);
    min-height: 0.7rem;
}

.aurra-step71-panel .progress-bar,
.aurra-step71-table-card .progress-bar {
    background: var(--aurra-teal-deep);
}

.aurra-step71-panel .rounded-circle {
    border-radius: 8px !important;
}

@media (max-width: 991.98px) {
    .aurra-step71-command .aurra-ops-command-rail {
        border-left: 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    }
}

@media (max-width: 767.98px) {
    .aurra-step71-page-header {
        align-items: flex-start;
    }

    .aurra-step71-page-header .btn,
    .aurra-step71-panel .btn,
    .aurra-step71-table-card .btn {
        width: 100%;
    }

    .aurra-step71-panel .d-flex,
    .aurra-step71-table-card .d-flex {
        align-items: flex-start !important;
    }
}

/* Step 72 - Shared component cleanup and compatibility layer */
:where(
    .aurra-step64-page-header,
    .aurra-step65-page-header,
    .aurra-step66-page-header,
    .aurra-step67-page-header,
    .aurra-step68-page-header,
    .aurra-step69-page-header,
    .aurra-step71-page-header
) {
    gap: var(--space-md);
}

:where(
    .aurra-step64-page-header,
    .aurra-step65-page-header,
    .aurra-step66-page-header,
    .aurra-step67-page-header,
    .aurra-step68-page-header,
    .aurra-step69-page-header,
    .aurra-step71-page-header
) .page-title {
    color: var(--aurra-ink);
    letter-spacing: 0;
}

:where(
    .aurra-step64-page-header,
    .aurra-step65-page-header,
    .aurra-step66-page-header,
    .aurra-step67-page-header,
    .aurra-step68-page-header,
    .aurra-step69-page-header,
    .aurra-step71-page-header
) .page-subtitle {
    color: var(--aurra-muted);
    max-width: 820px;
}

:where(
    .aurra-step69-command,
    .aurra-step70-command,
    .aurra-step70-lms-command,
    .aurra-step71-command
) {
    background: var(--aurra-command-bg);
    border: 1px solid rgba(167, 200, 194, 0.18);
    border-radius: var(--aurra-radius) !important;
    box-shadow: var(--aurra-shadow-soft);
    color: #ffffff;
    overflow: hidden;
}

:where(
    .aurra-step69-command,
    .aurra-step70-command,
    .aurra-step70-lms-command,
    .aurra-step71-command
) :where(.page-eyebrow, .parent-rail-label, .aurra-local-review-rail-label, .aurra-communications-rail-label) {
    color: var(--aurra-command-accent);
}

:where(
    .aurra-step69-command,
    .aurra-step70-command,
    .aurra-step70-lms-command,
    .aurra-step71-command
) :where(h1, h2, strong) {
    color: #ffffff;
    letter-spacing: 0;
}

:where(
    .aurra-step69-command,
    .aurra-step70-command,
    .aurra-step70-lms-command,
    .aurra-step71-command
) :where(p, small, .parent-hero-subtitle, .aurra-local-review-rail-note span, .aurra-communications-rail-note span) {
    color: rgba(255, 255, 255, 0.76);
}

:where(
    .aurra-step69-command,
    .aurra-step70-command,
    .aurra-step70-lms-command,
    .aurra-step71-command
) :where(
    .aurra-ops-command-metrics > div,
    .aurra-communications-command-metrics > div,
    .aurra-ops-command-rail,
    .aurra-communications-command-rail,
    .parent-hero-actions,
    .parent-chip
) {
    background: var(--aurra-command-panel) !important;
    border: 1px solid var(--aurra-command-line) !important;
    border-radius: var(--aurra-radius) !important;
    color: #ffffff;
}

:where(
    .aurra-step67-panel,
    .aurra-step67-table-card,
    .aurra-step68-panel,
    .aurra-step68-table-card,
    .aurra-step69-panel,
    .aurra-step69-filter-panel,
    .aurra-step69-table-card,
    .aurra-step69-document-panel,
    .aurra-step70-table-panel,
    .aurra-step70-lms-panel,
    .aurra-step71-panel,
    .aurra-step71-table-card
) {
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line-soft) !important;
    border-radius: var(--aurra-radius) !important;
    box-shadow: var(--aurra-shadow-soft) !important;
}

:where(
    .aurra-step67-panel,
    .aurra-step67-table-card,
    .aurra-step68-panel,
    .aurra-step68-table-card,
    .aurra-step69-panel,
    .aurra-step69-filter-panel,
    .aurra-step69-table-card,
    .aurra-step70-table-panel,
    .aurra-step70-lms-panel,
    .aurra-step71-panel,
    .aurra-step71-table-card
) :where(.page-eyebrow) {
    color: var(--aurra-teal-deep);
}

:where(
    .aurra-step67-panel,
    .aurra-step67-table-card,
    .aurra-step68-panel,
    .aurra-step68-table-card,
    .aurra-step69-panel,
    .aurra-step69-filter-panel,
    .aurra-step69-table-card,
    .aurra-step70-table-panel,
    .aurra-step70-lms-panel,
    .aurra-step71-panel,
    .aurra-step71-table-card
) :where(h2, h3) {
    color: var(--aurra-ink);
    letter-spacing: 0;
}

:where(
    .aurra-step67-panel,
    .aurra-step67-table-card,
    .aurra-step68-panel,
    .aurra-step68-table-card,
    .aurra-step69-panel,
    .aurra-step69-filter-panel,
    .aurra-step69-table-card,
    .aurra-step69-document-panel,
    .aurra-step70-table-panel,
    .aurra-step70-section-grid,
    .aurra-step70-lms-panel,
    .aurra-step71-panel,
    .aurra-step71-table-card,
    .aurra-step71-settings-panel
) :where(.form-control, .form-select, textarea.form-control) {
    background-color: #ffffff;
    border-color: var(--aurra-line-soft);
    border-radius: var(--aurra-radius);
    min-height: 42px;
}

:where(
    .aurra-step67-panel,
    .aurra-step67-table-card,
    .aurra-step68-panel,
    .aurra-step68-table-card,
    .aurra-step69-panel,
    .aurra-step69-filter-panel,
    .aurra-step69-table-card,
    .aurra-step69-document-panel,
    .aurra-step70-table-panel,
    .aurra-step70-section-grid,
    .aurra-step70-lms-panel,
    .aurra-step71-panel,
    .aurra-step71-table-card,
    .aurra-step71-settings-panel
) :where(.form-control, .form-select, textarea.form-control):focus {
    border-color: rgba(31, 138, 132, 0.42);
    box-shadow: var(--aurra-focus-ring);
}

:where(
    .aurra-step67-table-card,
    .aurra-step68-table-card,
    .aurra-step68-exam-shell,
    .aurra-step69-table-card,
    .aurra-step69-document-panel,
    .aurra-step70-table-panel,
    .aurra-step70-lms-panel,
    .aurra-step71-table-card,
    .aurra-step71-panel
) .table {
    margin: 0;
}

:where(
    .aurra-step67-table-card,
    .aurra-step68-table-card,
    .aurra-step68-exam-shell,
    .aurra-step69-table-card,
    .aurra-step69-document-panel,
    .aurra-step70-table-panel,
    .aurra-step70-lms-panel,
    .aurra-step71-table-card,
    .aurra-step71-panel
) .table thead th {
    background: var(--aurra-table-head);
    border-bottom: 1px solid var(--aurra-line-soft);
    color: var(--aurra-muted);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

:where(
    .aurra-step67-table-card,
    .aurra-step68-table-card,
    .aurra-step68-exam-shell,
    .aurra-step69-table-card,
    .aurra-step69-document-panel,
    .aurra-step70-table-panel,
    .aurra-step70-lms-panel,
    .aurra-step71-table-card,
    .aurra-step71-panel
) .table tbody td {
    border-top: 1px solid var(--aurra-table-row);
    padding-bottom: 0.9rem;
    padding-top: 0.9rem;
    vertical-align: middle;
}

:where(
    .aurra-step67-table-card,
    .aurra-step68-table-card,
    .aurra-step68-exam-shell,
    .aurra-step69-table-card,
    .aurra-step69-document-panel,
    .aurra-step70-table-panel,
    .aurra-step70-lms-panel,
    .aurra-step71-table-card,
    .aurra-step71-panel
) .table tbody tr:hover td {
    background: var(--aurra-table-hover);
}

:where(
    .aurra-step67-table-card,
    .aurra-step67-slip-card,
    .aurra-step68-table-card,
    .aurra-step68-exam-shell,
    .aurra-step69-table-card,
    .aurra-step69-document-panel,
    .aurra-step70-table-panel,
    .aurra-step71-panel,
    .aurra-step71-table-card,
    .aurra-step71-card-grid
) :where(.badge, .parent-status-pill) {
    border-radius: var(--aurra-radius-full);
    font-weight: 850;
}

@media (max-width: 767.98px) {
    :where(
        .aurra-step64-page-header,
        .aurra-step65-page-header,
        .aurra-step66-page-header,
        .aurra-step67-page-header,
        .aurra-step68-page-header,
        .aurra-step69-page-header,
        .aurra-step71-page-header
    ) {
        align-items: flex-start;
    }

    :where(
        .aurra-step67-panel,
        .aurra-step67-table-card,
        .aurra-step68-panel,
        .aurra-step68-exam-shell,
        .aurra-step69-panel,
        .aurra-step69-filter-panel,
        .aurra-step69-table-card,
        .aurra-step70-table-panel,
        .aurra-step70-section-grid,
        .aurra-step70-lms-panel,
        .aurra-step71-panel,
        .aurra-step71-table-card
    ) .btn {
        width: 100%;
    }
}

/* Step 73 - Responsive and browser QA guardrails */
html,
body.app-body {
    max-width: 100%;
}

body.app-body {
    overflow-x: hidden;
}

.app-layout,
.app-main,
.content-shell,
.topbar,
.topbar-brand,
.topbar-actions,
.table-responsive,
.content-card,
.panel-card,
.table-card,
.form-card {
    min-width: 0;
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
}

:where(
    .aurra-command-metrics,
    .aurra-ops-command-metrics,
    .aurra-communications-command-metrics,
    .aurra-step63-status-strip,
    .aurra-step65-metric-row,
    .aurra-step67-metric-row,
    .aurra-step70-metric-grid,
    .aurra-step71-metric-grid
) {
    min-width: 0;
}

:where(
    .aurra-command-metric,
    .aurra-ops-command-metrics > div,
    .aurra-communications-command-metrics > div,
    .parent-metric-card,
    .aurra-ops-metric,
    .metric-card
) {
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 991.98px) {
    .app-layout {
        display: block;
    }

    .content-shell {
        padding-inline: clamp(0.75rem, 2.4vw, 1.25rem);
    }

    :where(
        .aurra-command-metrics,
        .aurra-ops-command-metrics,
        .aurra-communications-command-metrics,
        .aurra-step63-status-strip,
        .parent-metric-grid
    ) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    :where(
        .page-header,
        .aurra-step64-page-header,
        .aurra-step65-page-header,
        .aurra-step66-page-header,
        .aurra-step67-page-header,
        .aurra-step68-page-header,
        .aurra-step69-page-header,
        .aurra-step71-page-header
    ) {
        flex-wrap: wrap;
    }
}

@media (max-width: 575.98px) {
    .content-shell {
        padding-inline: 0.75rem;
    }

    .topbar-actions {
        gap: 0.35rem !important;
    }

    :where(
        .aurra-command-metrics,
        .aurra-ops-command-metrics,
        .aurra-communications-command-metrics,
        .aurra-step63-status-strip,
        .parent-metric-grid,
        .aurra-step70-metric-grid,
        .aurra-step71-metric-grid
    ) {
        grid-template-columns: 1fr;
    }

    :where(
        .page-header,
        .aurra-step64-page-header,
        .aurra-step65-page-header,
        .aurra-step66-page-header,
        .aurra-step67-page-header,
        .aurra-step68-page-header,
        .aurra-step69-page-header,
        .aurra-step71-page-header
    ) {
        align-items: stretch !important;
    }

    :where(
        .page-header,
        .aurra-step64-page-header,
        .aurra-step65-page-header,
        .aurra-step66-page-header,
        .aurra-step67-page-header,
        .aurra-step68-page-header,
        .aurra-step69-page-header,
        .aurra-step71-page-header
    ) > :where(.btn, .d-flex, div:last-child) {
        min-width: 0;
    }

    .table-responsive {
        margin-inline: -0.1rem;
        max-width: calc(100vw - 1.5rem);
    }

    .developer-credit {
        align-items: flex-start;
        gap: 0.35rem;
    }
}

/* Step 82: cross-role preview and dashboard visual QA polish */
.aurra-dashboard-shell .table-responsive {
    border-color: var(--aurra-line-soft);
    scrollbar-color: rgba(31, 138, 132, 0.35) transparent;
    scrollbar-width: thin;
}

.aurra-dashboard-shell .table-responsive::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.aurra-dashboard-shell .table-responsive::-webkit-scrollbar-thumb {
    background: rgba(31, 138, 132, 0.28);
    border-radius: var(--aurra-radius-full);
}

.aurra-dashboard-shell .table-responsive > table {
    margin-bottom: 0;
}

.aurra-dashboard-shell .table-responsive > .table,
.aurra-dashboard-shell .table-responsive > .aurra-activity-table,
.aurra-dashboard-shell .table-responsive > .aurra-erp-class-table {
    min-width: 680px;
}

.aurra-activity-table-wrap {
    background: #ffffff;
}

.aurra-activity-table th,
.aurra-activity-table td {
    white-space: normal;
}

.aurra-activity-table th:nth-child(1) {
    width: 112px;
}

.aurra-activity-table th:nth-child(2) {
    width: 160px;
}

.aurra-activity-table th:nth-child(4) {
    width: 92px;
}

.aurra-activity-table th:nth-child(5) {
    width: 86px;
}

.aurra-teacher-command-actions a,
.aurra-prototype-quick a,
.aurra-shortcut-tile {
    min-width: 0;
}

.aurra-teacher-command-actions a,
.aurra-prototype-quick a {
    overflow-wrap: anywhere;
}

.aurra-dashboard-shell .aurra-widget-head {
    min-width: 0;
}

.aurra-dashboard-shell .aurra-widget-head > div {
    min-width: 0;
}

.aurra-dashboard-shell .aurra-widget-title,
.aurra-dashboard-shell .page-subtitle {
    overflow-wrap: anywhere;
}

@media (max-width: 991.98px) {
    .aurra-dashboard-shell .aurra-widget-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.8rem;
    }

    .aurra-dashboard-shell .aurra-widget-head .btn {
        width: auto;
    }
}

@media (max-width: 767.98px) {
    .aurra-dashboard-shell .table-responsive > .table,
    .aurra-dashboard-shell .table-responsive > .aurra-activity-table,
    .aurra-dashboard-shell .table-responsive > .aurra-erp-class-table {
        min-width: 620px;
    }

    .aurra-activity-table th,
    .aurra-activity-table td {
        padding: 0.62rem 0.7rem;
    }
}

@media (max-width: 575.98px) {
    .aurra-dashboard-shell .table-responsive {
        max-width: calc(100vw - 1.5rem);
    }

    .aurra-dashboard-shell .aurra-widget-head .btn {
        width: 100%;
    }
}

/* Step 83: admin core module consistency and visual QA polish */
:where(
    .aurra-step64-page-header,
    .aurra-step65-page-header,
    .aurra-step66-page-header,
    .aurra-step68-page-header,
    .page-header
) {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius);
    box-shadow: var(--aurra-shadow-soft);
}

:where(
    .aurra-student-command,
    .aurra-finance-command,
    .aurra-defaulter-command,
    .aurra-attendance-command,
    .aurra-exam-command,
    .aurra-result-command,
    .aurra-certificate-command
) {
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

:where(
    .aurra-student-command-main,
    .aurra-finance-command-main,
    .aurra-attendance-command-main,
    .aurra-exam-command-main
) {
    min-width: 0;
}

:where(
    .aurra-student-command-main,
    .aurra-finance-command-main,
    .aurra-attendance-command-main,
    .aurra-exam-command-main
) h2,
:where(
    .aurra-student-command-main,
    .aurra-finance-command-main,
    .aurra-attendance-command-main,
    .aurra-exam-command-main
) p {
    overflow-wrap: anywhere;
}

:where(
    .aurra-student-command-rail,
    .aurra-finance-command-rail,
    .aurra-attendance-command-rail,
    .aurra-exam-command-rail
) {
    min-width: 0;
}

:where(
    .aurra-student-command-rail,
    .aurra-finance-command-rail,
    .aurra-attendance-command-rail,
    .aurra-exam-command-rail
) .btn,
:where(
    .aurra-student-command-rail,
    .aurra-finance-command-rail,
    .aurra-attendance-command-rail,
    .aurra-exam-command-rail
) a {
    min-height: 40px;
    white-space: normal;
}

:where(
    .aurra-step64-table-card,
    .aurra-step65-fee-table-card,
    .aurra-step66-attendance-shell,
    .aurra-step68-table-card,
    .table-card,
    .form-card
) {
    border-color: var(--aurra-line-soft);
    box-shadow: var(--aurra-shadow-soft);
}

:where(.table-card, .aurra-step64-table-card, .aurra-step65-fee-table-card, .aurra-step68-table-card) .table-responsive {
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius);
    scrollbar-color: rgba(31, 138, 132, 0.35) transparent;
    scrollbar-width: thin;
}

:where(.table-card, .aurra-step64-table-card, .aurra-step65-fee-table-card, .aurra-step68-table-card) .table-responsive::-webkit-scrollbar {
    height: 8px;
}

:where(.table-card, .aurra-step64-table-card, .aurra-step65-fee-table-card, .aurra-step68-table-card) .table-responsive::-webkit-scrollbar-thumb {
    background: rgba(31, 138, 132, 0.28);
    border-radius: var(--aurra-radius-full);
}

:where(.table-card, .aurra-step64-table-card, .aurra-step65-fee-table-card, .aurra-step68-table-card) .table-responsive > .table {
    margin-bottom: 0;
    min-width: 760px;
}

:where(.table-card, .aurra-step64-table-card, .aurra-step65-fee-table-card, .aurra-step68-table-card) .table thead th {
    white-space: nowrap;
}

:where(.table-card, .aurra-step64-table-card, .aurra-step65-fee-table-card, .aurra-step68-table-card) .table td {
    vertical-align: middle;
}

.aurra-step68-exam-shell .nav-tabs {
    border-bottom-color: var(--aurra-line-soft);
    gap: 0.35rem;
}

.aurra-step68-exam-shell .nav-tabs .nav-link {
    border-radius: 8px 8px 0 0;
    color: var(--aurra-muted);
    font-weight: 850;
    min-height: 40px;
}

.aurra-step68-exam-shell .nav-tabs .nav-link.active {
    background: #ffffff;
    border-color: var(--aurra-line-soft) var(--aurra-line-soft) #ffffff;
    color: var(--aurra-teal);
}

.date-sheet-card-grid,
.exam-command-grid {
    min-width: 0;
}

.date-sheet-subject-card,
.exam-command-card,
.exam-step-card,
.exam-register-card {
    overflow: hidden;
}

.metric-card.compact,
.aurra-step65-finance-panel .metric-card,
.aurra-step68-panel .metric-card {
    min-height: 104px;
}

.form-card .form-label,
.content-card .form-label,
.panel-card .form-label {
    color: var(--aurra-muted);
    font-size: 0.8rem;
    font-weight: 850;
}

.form-card .form-control,
.form-card .form-select,
.content-card .form-control,
.content-card .form-select,
.panel-card .form-control,
.panel-card .form-select {
    border-color: var(--aurra-line-soft);
}

@media (max-width: 991.98px) {
    :where(
        .aurra-student-command,
        .aurra-finance-command,
        .aurra-attendance-command,
        .aurra-exam-command
    ) {
        grid-template-columns: 1fr;
    }

    :where(
        .aurra-student-command-rail,
        .aurra-finance-command-rail,
        .aurra-attendance-command-rail,
        .aurra-exam-command-rail
    ) {
        align-items: stretch;
    }
}

@media (max-width: 767.98px) {
    .aurra-step68-exam-shell .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .aurra-step68-exam-shell .nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .aurra-step68-exam-shell .nav-tabs .nav-link {
        white-space: nowrap;
    }

    :where(.table-card, .aurra-step64-table-card, .aurra-step65-fee-table-card, .aurra-step68-table-card) .table-responsive > .table {
        min-width: 680px;
    }
}

@media (max-width: 575.98px) {
    :where(
        .aurra-student-command-rail,
        .aurra-finance-command-rail,
        .aurra-attendance-command-rail,
        .aurra-exam-command-rail
    ) .btn,
    :where(
        .aurra-student-command-rail,
        .aurra-finance-command-rail,
        .aurra-attendance-command-rail,
        .aurra-exam-command-rail
    ) a {
        width: 100%;
    }

    :where(.table-card, .aurra-step64-table-card, .aurra-step65-fee-table-card, .aurra-step68-table-card) .table-responsive > .table {
        min-width: 620px;
    }
}

/* Step 84: investor demo and readiness surface polish */
.aurra-demo-banner {
    align-items: flex-start;
    background:
        linear-gradient(135deg, rgba(31, 138, 132, 0.12), rgba(68, 143, 198, 0.08)),
        #ffffff;
    border-color: rgba(31, 138, 132, 0.25);
    box-shadow: var(--aurra-shadow-soft);
    display: flex;
    gap: 0.65rem;
}

.aurra-demo-banner::before {
    background: var(--aurra-teal);
    border-radius: var(--aurra-radius-full);
    content: "";
    flex: 0 0 auto;
    height: 0.72rem;
    margin-top: 0.35rem;
    width: 0.72rem;
}

:where(.aurra-step71-command, .aurra-local-review-command, .aurra-qa-command) {
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
}

:where(.aurra-step71-card-grid, .aurra-review-role-grid) {
    align-items: stretch;
}

:where(.aurra-step71-card-grid, .aurra-review-role-grid) > * {
    min-width: 0;
}

.aurra-review-track,
.aurra-step71-panel,
.aurra-role-card {
    overflow: hidden;
}

.aurra-review-item {
    align-items: flex-start;
    background: var(--aurra-panel-soft);
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius-md);
    gap: 0.85rem;
    min-width: 0;
}

.aurra-review-item > div {
    min-width: 0;
}

.aurra-review-item a.fw-bold,
.aurra-review-item strong,
.aurra-signoff-list li,
.aurra-step71-panel code {
    overflow-wrap: anywhere;
}

.aurra-review-item .btn {
    flex: 0 0 auto;
}

.aurra-step71-panel code,
.aurra-review-track code {
    background: #eef4f3;
    border: 1px solid rgba(31, 138, 132, 0.16);
    border-radius: 6px;
    color: #0f5753;
    display: inline-block;
    padding: 0.16rem 0.38rem;
    white-space: normal;
}

.aurra-role-card .badge,
.aurra-step71-panel .badge {
    white-space: normal;
}

@media (max-width: 767.98px) {
    .aurra-review-item {
        flex-direction: column;
    }

    .aurra-review-item .btn {
        width: 100%;
    }

    .aurra-demo-banner {
        padding: 0.85rem;
    }
}

/* Step 87: screenshot-led marketing demo whitespace fix */
.aurra-demo-page-hero {
    padding-top: 2.4rem;
    padding-bottom: 1.35rem;
}

.aurra-demo-tour-section {
    margin-top: -2.6rem;
    padding-top: 1.35rem;
}

.aurra-demo-tour-section .marketing-card,
.aurra-demo-tour-section .marketing-form-card {
    border-radius: 14px;
}

.aurra-demo-tour-section form {
    background: #ffffff;
}

@media (max-width: 767.98px) {
    .aurra-demo-page-hero {
        padding-top: 1.45rem;
        padding-bottom: 0.9rem;
    }

    .aurra-demo-tour-section {
        margin-top: -1.4rem;
        padding-top: 0.9rem;
    }
}

/* Step 88: final mobile and print/PDF rehearsal polish */
.aurra-print-actions {
    flex-wrap: wrap;
}

.aurra-print-report-card .table-responsive {
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius);
}

.aurra-print-report-card .table {
    margin-bottom: 0;
    min-width: 760px;
}

.aurra-print-report-card td,
.aurra-print-report-card th {
    vertical-align: middle;
}

.aurra-step65-receipt-card,
.voucher-copy,
.aurra-print-report-card {
    overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
    .aurra-print-receipt-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .aurra-print-actions .btn {
        flex: 1 1 100%;
    }

    .voucher-print-grid {
        gap: 0.85rem;
    }

    .voucher-copy {
        padding: var(--space-md);
    }

    .voucher-copy > .d-flex:first-child {
        flex-direction: column;
    }

    .aurra-print-report-card .table-responsive {
        max-width: calc(100vw - 1.5rem);
    }
}

@media print {
    @page {
        margin: 10mm;
        size: A4 portrait;
    }

    body,
    body.app-body,
    .app-body,
    .app-main,
    .content-shell,
    .content {
        background: #ffffff !important;
        color: #111827 !important;
        height: auto !important;
        overflow: visible !important;
    }

    .app-layout,
    .main-content,
    .app-main {
        display: block !important;
        margin: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .sidebar,
    .topbar,
    .print-hide,
    .aurra-chatbot,
    .aurra-landing-chatbot {
        display: none !important;
    }

    .panel-card,
    .content-card,
    .table-card,
    .aurra-step65-receipt-card,
    .voucher-copy,
    .aurra-print-report-card {
        background: #ffffff !important;
        border-color: #cbd5e1 !important;
        box-shadow: none !important;
    }

    .aurra-step65-receipt-card {
        margin: 0 auto !important;
        max-width: 180mm !important;
        padding: 8mm !important;
    }

    .aurra-print-receipt-head {
        align-items: flex-start !important;
        break-inside: avoid;
    }

    .aurra-step65-receipt-grid > div {
        break-inside: avoid;
    }

    .voucher-print-grid {
        display: grid !important;
        gap: 4mm !important;
        grid-template-columns: 1fr !important;
    }

    .voucher-copy {
        break-inside: avoid;
        min-height: 78mm;
        padding: 7mm !important;
    }

    .voucher-lines {
        gap: 3mm;
    }

    .voucher-lines div {
        break-inside: avoid;
    }

    .aurra-print-report-card .table-responsive,
    .table-responsive {
        border: 0 !important;
        overflow: visible !important;
    }

    .aurra-print-report-card .table,
    .table-responsive > .table {
        font-size: 10.5pt;
        min-width: 0 !important;
        width: 100% !important;
    }

    .aurra-print-report-card th,
    .aurra-print-report-card td,
    .table-responsive > .table th,
    .table-responsive > .table td {
        padding: 5pt 6pt !important;
        white-space: normal !important;
    }

    .aurra-print-report-card .btn,
    .aurra-print-report-card .badge {
        border: 1px solid #cbd5e1 !important;
        color: #111827 !important;
        white-space: normal !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   AURRA UI REDESIGN — Modern SaaS Component Library
   Sprint 4 — 2026-05-14
   ═══════════════════════════════════════════════════════════════ */

/* ── Panel / Card base (unifies panel-card, form-card, table-card) ── */
.panel-card,
.form-card,
.table-card {
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line-soft);
    border-radius: var(--aurra-radius);
    box-shadow: var(--aurra-shadow-soft);
}

/* ── Command Header (replaces Tailwind gradient on admin_dashboard) ── */
.aurra-command-header {
    background: linear-gradient(135deg, var(--aurra-side-deep) 0%, var(--aurra-side) 60%, #0d2040 100%);
    border-radius: var(--aurra-radius);
    color: #fff;
    padding: var(--aurra-space-8);
}

/* ── Glass Card (dark overlay panels in command zones) ── */
.aurra-glass-card {
    background: var(--aurra-command-panel);
    border: 1px solid var(--aurra-command-line);
    border-radius: calc(var(--aurra-radius) * 2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: var(--space-md);
}

/* ── Page Header (standard top-of-page header for all list/index pages) ── */
.aurra-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--aurra-space-4);
    padding: var(--aurra-space-6) 0 var(--aurra-space-4);
    flex-wrap: wrap;
}

.aurra-page-header-main {
    min-width: 0;
}

.aurra-page-header-actions {
    display: flex;
    gap: var(--aurra-space-2);
    align-items: center;
    flex-shrink: 0;
}

/* ── Command Strip (unified dark metric bar, replaces module-specific classes) ── */
.aurra-command-strip {
    background: var(--aurra-command-bg);
    border-radius: var(--aurra-radius);
    color: #fff;
    display: flex;
    gap: var(--aurra-space-6);
    padding: var(--aurra-space-6);
    margin-bottom: var(--aurra-space-4);
    align-items: flex-start;
}

.aurra-command-strip-main {
    flex: 1;
    min-width: 0;
}

.aurra-command-strip-rail {
    flex: 0 0 220px;
    border-left: 1px solid var(--aurra-command-line);
    padding-left: var(--aurra-space-6);
}

.aurra-command-strip-metrics {
    display: flex;
    gap: var(--aurra-space-6);
    margin-top: var(--aurra-space-4);
    flex-wrap: wrap;
}

.aurra-command-metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.aurra-command-metric .metric-label {
    color: var(--aurra-command-accent);
    font-size: var(--aurra-font-xs);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.aurra-command-metric .metric-value {
    color: #fff;
    font-size: var(--aurra-font-2xl);
    font-weight: var(--font-extrabold);
    line-height: 1;
}

.aurra-command-metric .metric-sub {
    color: rgba(255, 255, 255, 0.55);
    font-size: var(--aurra-font-xs);
}

/* ── Sidebar Active State ── */
.sidebar .nav-item.active,
.sidebar a.nav-item.active {
    background: rgba(31, 138, 132, 0.14);
    border-left: 3px solid var(--aurra-teal);
    color: var(--aurra-teal) !important;
    font-weight: 600;
}

.sidebar .sidebar-group-toggle:hover,
.sidebar .sidebar-group-toggle.active {
    background: rgba(31, 138, 132, 0.16);
    color: var(--aurra-teal);
}

/* ── Topbar Avatar chip ── */
.topbar-avatar-chip {
    align-items: center;
    background: var(--aurra-teal);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-shrink: 0;
    font-size: var(--aurra-font-xs);
    font-weight: var(--font-bold);
    height: 34px;
    justify-content: center;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    width: 34px;
    border: 2px solid rgba(255,255,255,0.15);
    transition: opacity 150ms ease;
}

.topbar-avatar-chip:hover {
    opacity: 0.85;
}

/* ── Topbar Notification button ── */
.topbar-notify-btn {
    align-items: center;
    background: none;
    border: 1px solid var(--aurra-line-soft);
    border-radius: 50%;
    color: var(--aurra-muted);
    cursor: pointer;
    display: flex;
    height: 36px;
    justify-content: center;
    padding: 0;
    transition: border-color 150ms ease, color 150ms ease;
    width: 36px;
}

.topbar-notify-btn:hover {
    border-color: var(--aurra-teal);
    color: var(--aurra-teal);
}

.topbar-notify-btn svg {
    height: 18px;
    width: 18px;
}

/* ── Aurra Table (unified data table style) ── */
.aurra-table thead th {
    background: var(--aurra-table-head);
    color: var(--aurra-ink-soft);
    font-size: var(--aurra-font-xs);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--aurra-line);
    white-space: nowrap;
    padding: 0.65rem 0.85rem;
}

.aurra-table tbody tr:hover td {
    background: var(--aurra-table-hover);
}

.aurra-table td {
    vertical-align: middle;
    font-size: var(--aurra-font-sm);
    border-color: var(--aurra-line-soft);
    color: var(--aurra-ink);
    padding: 0.65rem 0.85rem;
}

/* ── Aurra Badge System ── */
.aurra-badge {
    align-items: center;
    border-radius: var(--aurra-radius-full);
    display: inline-flex;
    font-size: var(--aurra-font-xs);
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 2px 10px;
    white-space: nowrap;
}

.aurra-badge-success { background: #d1fae5; color: #065f46; }
.aurra-badge-danger  { background: #fee2e2; color: #991b1b; }
.aurra-badge-warning { background: #fef3c7; color: #92400e; }
.aurra-badge-info    { background: #dbeafe; color: #1e40af; }
.aurra-badge-neutral { background: var(--aurra-line-soft); color: var(--aurra-muted); }
.aurra-badge-teal    { background: rgba(31, 138, 132, 0.12); color: var(--aurra-teal); }

/* ── Form & Input Polish ── */
.form-label {
    color: var(--aurra-ink-soft);
    font-size: var(--aurra-font-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.form-control,
.form-select {
    border-color: var(--aurra-line);
    border-radius: 6px;
    color: var(--aurra-ink);
    font-size: var(--aurra-font-sm);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--aurra-teal);
    box-shadow: var(--aurra-focus-ring);
    outline: none;
}

/* ── Responsive: Mobile stack ── */
@media (max-width: 767.98px) {
    .aurra-command-strip {
        flex-direction: column;
    }

    .aurra-command-strip-rail {
        border-left: none;
        border-top: 1px solid var(--aurra-command-line);
        flex: none;
        padding-left: 0;
        padding-top: var(--aurra-space-4);
        width: 100%;
    }

    .aurra-page-header {
        flex-direction: column;
    }

    .aurra-page-header-actions {
        width: 100%;
    }

    .aurra-page-header-actions .btn {
        flex: 1;
        justify-content: center;
    }
}

/* ── Admin Dashboard — action buttons ── */
.dash-action-btn {
    align-items: center;
    border-radius: calc(var(--aurra-radius) * 1.5);
    display: flex;
    font-size: var(--aurra-font-sm);
    font-weight: var(--font-extrabold);
    justify-content: space-between;
    padding: 0.9rem 1.25rem;
    text-decoration: none;
    transition: transform 140ms ease, box-shadow 140ms ease;
    border: 1px solid transparent;
}

.dash-action-btn:hover {
    transform: translateY(-2px);
}

.dash-action-btn-primary {
    background: var(--aurra-teal);
    border-color: var(--aurra-teal-deep);
    box-shadow: 0 8px 22px rgba(31, 138, 132, 0.25);
    color: #fff;
}

.dash-action-btn-primary:hover {
    background: var(--aurra-teal-deep);
    color: #fff;
}

.dash-action-btn-outline-primary {
    background: #fff;
    border-color: rgba(31, 138, 132, 0.3);
    color: var(--aurra-teal);
}

.dash-action-btn-outline-primary:hover {
    border-color: var(--aurra-teal);
    color: var(--aurra-teal);
}

.dash-action-btn-outline {
    background: #fff;
    border-color: var(--aurra-line);
    color: var(--aurra-ink);
}

.dash-action-btn-outline:hover {
    border-color: var(--aurra-line);
    color: var(--aurra-ink);
}

/* ── Admin Dashboard — metric cards ── */
.dash-metric-card {
    background: var(--aurra-panel);
    border: 1px solid var(--aurra-line-soft);
    border-radius: calc(var(--aurra-radius) * 1.5);
    color: inherit;
    padding: 1.25rem;
    transition: transform 150ms ease, box-shadow 150ms ease;
    height: 100%;
}

.dash-metric-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--aurra-shadow);
}

.dash-metric-card-success { border-color: rgba(47, 143, 131, 0.2); }
.dash-metric-card-success:hover { border-color: rgba(47, 143, 131, 0.4); }

.dash-metric-card-danger { background: #fff5f5; border-color: rgba(228, 93, 85, 0.2); }
.dash-metric-card-danger:hover { border-color: rgba(228, 93, 85, 0.4); }

.dash-metric-card-info { border-color: rgba(68, 143, 198, 0.2); }
.dash-metric-card-info:hover { border-color: rgba(68, 143, 198, 0.4); }

.dash-metric-value {
    color: var(--aurra-ink);
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: var(--font-black);
    line-height: 1;
}

.dash-metric-sub {
    color: var(--aurra-muted);
    font-size: var(--aurra-font-sm);
    font-weight: 500;
}

.dash-metric-hint {
    color: var(--aurra-muted-2);
    font-size: var(--aurra-font-xs);
    font-weight: var(--font-bold);
}

/* ── Admin Dashboard — signal cards (action feed) ── */
.dash-signal-card {
    align-items: center;
    border-radius: calc(var(--aurra-radius) * 1.5);
    border: 1px solid transparent;
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
}

.dash-signal-card-danger  { background: #fff1f0; border-color: rgba(228,93,85,0.15); }
.dash-signal-card-warning { background: #fffbeb; border-color: rgba(237,165,43,0.2); }
.dash-signal-card-success { background: #f0faf8; border-color: rgba(47,143,131,0.15); }
.dash-signal-card-info    { background: #eff6ff; border-color: rgba(68,143,198,0.15); }
.dash-signal-card-neutral { background: var(--aurra-bg-soft); border-color: var(--aurra-line-soft); }

.dash-signal-dot {
    border-radius: 50%;
    flex-shrink: 0;
    height: 10px;
    width: 10px;
}

.dash-signal-dot-danger  { background: var(--aurra-red); box-shadow: 0 4px 10px rgba(228,93,85,0.3); }
.dash-signal-dot-warning { background: var(--aurra-amber); box-shadow: 0 4px 10px rgba(237,165,43,0.3); }
.dash-signal-dot-success { background: var(--aurra-green); box-shadow: 0 4px 10px rgba(47,143,131,0.3); }
.dash-signal-dot-info    { background: var(--aurra-blue); box-shadow: 0 4px 10px rgba(68,143,198,0.3); }

/* ── Chart legend overlay ── */
.aurra-glass-chart-legend {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    border: 1px solid var(--aurra-line-soft);
    border-radius: calc(var(--aurra-radius) * 1.25);
    box-shadow: var(--aurra-shadow-soft);
    padding: 4px 10px;
    z-index: 10;
    font-weight: var(--font-bold);
    font-size: var(--aurra-font-xs);
    color: var(--aurra-ink);
}

.chart-dot {
    border-radius: 50%;
    display: inline-block;
    height: 8px;
    width: 8px;
}

/* ── content-card standalone padding fallback ── */
/* When content-card is used outside a step-grid (e.g. aurra-step71-panel), give it padding */
.content-card.aurra-step71-panel,
.aurra-review-track.content-card {
    padding: clamp(1rem, 2vw, 1.25rem);
}

/* ── Command section color alignment (override hardcoded gradients with tokens) ── */
.aurra-student-command-main,
.aurra-finance-command-main,
.aurra-defaulter-command {
    background: linear-gradient(135deg, var(--aurra-side-deep) 0%, var(--aurra-side) 60%, #0d2040 100%);
}

.aurra-student-command-main .page-eyebrow {
    color: var(--aurra-command-accent) !important;
}

.aurra-finance-command-main .page-eyebrow,
.aurra-defaulter-command .page-eyebrow {
    color: var(--aurra-command-accent) !important;
}

/* ── Mobile: collapse command strip columns ── */
@media (max-width: 991.98px) {
    .aurra-student-command,
    .aurra-finance-command {
        grid-template-columns: 1fr;
    }
}


/* ── Bootstrap .badge compatibility layer ──────────────────────────────────
   Dynamic Jinja badges use Bootstrap .badge + computed color utilities.
   These overrides align them to aurra-badge aesthetics automatically.         */
.badge {
    border-radius: var(--aurra-radius-full);
    font-size: var(--aurra-font-xs);
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 2px 8px;
}

.badge.bg-success-subtle, .badge.text-bg-success {
    background-color: #d1fae5 !important;
    color: #065f46 !important;
}
.badge.bg-danger-subtle, .badge.text-bg-danger {
    background-color: #fee2e2 !important;
    color: #991b1b !important;
}
.badge.bg-warning-subtle, .badge.text-bg-warning {
    background-color: #fef3c7 !important;
    color: #92400e !important;
}
.badge.bg-info-subtle, .badge.text-bg-info {
    background-color: #dbeafe !important;
    color: #1e40af !important;
}
.badge.bg-primary-subtle, .badge.text-bg-primary {
    background-color: #ccfbf1 !important;
    color: #115e59 !important;
}
.badge.bg-secondary-subtle, .badge.text-bg-secondary, .badge.bg-secondary {
    background-color: var(--aurra-line-soft) !important;
    color: var(--aurra-muted) !important;
}
.badge.bg-light, .badge.text-bg-light {
    background-color: var(--aurra-table-head) !important;
    color: var(--aurra-ink-soft) !important;
}

/* Strip Bootstrap border utilities from badge - aurra-badge handles its own borders */
.aurra-badge.border { border: none !important; }

/* ── Final Polish Pass — Sprint 4 ──────────────────────────────────────────
   Smooth interactions, consistent hover lifts, and card padding defaults.    */

/* Smooth table row hover transition */
.aurra-table tbody tr {
    transition: background 120ms ease;
}

/* Card padding hint — module-specific rules or Bootstrap p-* utilities override this */
/* This is intentionally low in the file so module rules defined earlier take precedence */

/* Empty state in table — centered and styled */
td.empty-state,
tr.empty-state td {
    color: var(--aurra-muted);
    font-size: var(--aurra-font-sm);
    font-weight: 600;
    padding: 2.5rem 1rem;
    text-align: center;
}

/* Metric card number accent */
.metric-card strong.metric-value,
.metric-card .metric-value {
    color: var(--aurra-ink);
}

/* Button: remove double outline on focus-visible */
.btn:focus-visible {
    box-shadow: var(--aurra-focus-ring);
    outline: none;
}

/* Form control: smooth border transition */
.form-control,
.form-select {
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

/* Panel card — padding is set by inline p-* utilities in templates */

/* Section heading inside cards */
.section-heading {
    border-bottom: 1px solid var(--aurra-line-soft);
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
}

.section-heading h2,
.section-heading h3 {
    font-size: var(--aurra-font-lg);
    font-weight: var(--font-bold);
    margin: 0;
    color: var(--aurra-ink);
}

/* Link: subtle teal hover on table action links */
.aurra-table td a:not(.btn) {
    color: var(--aurra-ink);
    font-weight: 600;
    text-decoration: none;
}

.aurra-table td a:not(.btn):hover {
    color: var(--aurra-teal);
    text-decoration: underline;
}

/* Responsive: squeeze table cells on small screens */
@media (max-width: 767.98px) {
    .aurra-table thead th,
    .aurra-table td {
        padding: 0.5rem 0.6rem;
    }

    .aurra-page-header,
    .page-header {
        flex-direction: column;
    }

    .aurra-page-header-actions {
        width: 100%;
    }
}

/* ── Sprint 4 Micro-Interaction Polish ──────────────────────────────────────
   Subtle lift/hover effects on cards, improved command-strip mobile stack,
   and metric item transitions for a refined SaaS feel.                       */

/* Card lift on hover — applies to all Aurra card variants */
.panel-card,
.content-card,
.metric-card {
    transition: box-shadow 180ms ease, transform 180ms ease;
    will-change: transform;
}

.panel-card:hover,
.content-card:hover {
    box-shadow: var(--aurra-shadow) !important;
    transform: translateY(-1px);
}

/* Metric cards get a slightly more pronounced lift */
.metric-card:hover {
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.09) !important;
    transform: translateY(-2px);
}

/* Ops metric grid items — smooth entry on hover */
.aurra-ops-metric {
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.aurra-ops-metric:hover {
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

/* Command-strip mobile stacking */
@media (max-width: 991.98px) {
    .aurra-ops-command {
        flex-direction: column !important;
    }

    .aurra-ops-command-rail {
        border-left: none !important;
        border-top: 1px solid var(--aurra-command-line, rgba(255,255,255,0.12));
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: var(--space-sm);
        padding-top: 1rem !important;
    }

    .aurra-ops-command-metrics {
        flex-wrap: wrap;
    }
}

/* Sidebar nav-item active state — teal left-border accent */
.nav-item.active,
.sidebar .nav-link.active {
    background: rgba(31, 138, 132, 0.14) !important;
    border-left: 3px solid var(--aurra-teal) !important;
    color: var(--aurra-teal) !important;
    font-weight: 600;
}

/* Role portal chips — consistent teal active state */
.auth-role-action.is-active {
    background: var(--aurra-teal) !important;
    border-color: var(--aurra-teal) !important;
    color: #fff !important;
}

/* Print: suppress hover lifts in print mode */
@media print {
    .panel-card,
    .content-card,
    .metric-card,
    .aurra-ops-metric {
        box-shadow: none !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ── WhatsApp Reminder Center ──────────────────────────────────── */
.aurra-wa-command {
    background: linear-gradient(135deg, #064e3b 0%, #0f4c3a 60%, #065f46 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--aurra-radius);
    box-shadow: var(--aurra-shadow);
    color: #ffffff;
    margin-bottom: 1rem;
    overflow: hidden;
    padding: 1.5rem;
}

.aurra-wa-command .page-eyebrow {
    color: #6ee7b7;
    font-size: .72rem;
    font-weight: var(--font-black);
    letter-spacing: .1em;
    text-transform: uppercase;
}

.aurra-wa-command-main h2 {
    color: #ffffff;
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: var(--font-black);
    line-height: 1.1;
    margin: .45rem 0 .35rem;
}

.aurra-wa-command-main p {
    color: #a7f3d0;
    font-size: .88rem;
    font-weight: 600;
    margin: 0;
}

.aurra-wa-metrics {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 1.25rem;
}

.aurra-wa-metrics > div {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: var(--aurra-radius);
    padding: .85rem;
}

.aurra-wa-metrics span {
    color: #a7f3d0;
    display: block;
    font-size: .70rem;
    font-weight: var(--font-black);
    letter-spacing: .07em;
    text-transform: uppercase;
}

.aurra-wa-metrics strong {
    color: #ffffff;
    display: block;
    font-size: 1.55rem;
    font-weight: 950;
    line-height: 1.1;
    margin-top: .25rem;
}

.aurra-wa-metrics small {
    color: #6ee7b7;
    display: block;
    font-size: .75rem;
    font-weight: var(--font-bold);
    margin-top: .2rem;
}

/* Sent row dim */
.wa-row-sent > td {
    opacity: .45;
}
.wa-row-sent > td:first-child {
    opacity: 1;
}
.wa-row-missing {
    background: var(--aurra-table-hover, rgba(241,245,249,.5));
}

/* Highlight flash on "Next Unsent" */
@keyframes wa-row-flash {
    0%   { background: rgba(31,138,132,.18); }
    60%  { background: rgba(31,138,132,.10); }
    100% { background: transparent; }
}
.wa-row-highlight {
    animation: wa-row-flash 2.2s ease forwards;
}

@media (max-width: 767.98px) {
    .aurra-wa-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ────────────────────────────────────────────────────────────────────────────
   Step 73 - MODERN DASHBOARD 2026
   Clean, functional design with modern icons and mini trend charts
   Namespace: .modern-dashboard and variants
──────────────────────────────────────────────────────────────────────────────── */

.modern-dashboard {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.9rem 1.25rem;
}

/* Header */
.modern-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0;
    position: relative;
    z-index: 1;
}

.modern-dashboard-header > div:first-child {
    min-width: 0;
}

.modern-dashboard-header .page-eyebrow {
    color: var(--aurra-teal);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.modern-dashboard-header h1 {
    font-size: 1.55rem;
    font-weight: var(--font-bold);
    color: #0f172a;
    line-height: 1.15;
    margin-bottom: 0.15rem;
    letter-spacing: -0.02em;
}

.modern-dashboard-header p {
    font-size: 0.8rem;
    color: var(--aurra-muted);
    margin-bottom: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 420px;
}

.modern-dashboard-tenant-chip {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    background: #1e293b;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: none;
    white-space: nowrap;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

/* SECTION 1: KEY METRICS GRID (4 cards) */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
    margin-bottom: 0;
    grid-column: 1 / -1;
    margin-top: 0;
}

.metrics-row .metric-card:nth-child(4) {
    grid-column: auto;
    margin-top: 0;
}

.metric-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.35rem 1.25rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 220ms ease, transform 220ms ease, border-color 220ms ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Colored top accent bar */
.metric-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 14px 14px 0 0;
    background: #e2e8f0;
}
.metric-card-teal::before  { background: #0d9488; }
.metric-card-blue::before  { background: #3b82f6; }
.metric-card-green::before { background: #22c55e; }
.metric-card-red::before   { background: #ef4444; }

.metric-card:hover {
    border-color: #0d9488;
    box-shadow: 0 6px 24px rgba(13, 148, 136, 0.13);
    transform: translateY(-2px);
}

/* Standard icon (circle shape) */
.metric-icon {
    width: 2.6rem;
    height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 0.35rem;
    flex-shrink: 0;
    position: relative;
}

.metric-icon svg {
    width: 1.3rem;
    height: 1.3rem;
    stroke-width: 2.3;
    position: relative;
    z-index: 1;
}

/* Color variants — standard */
.metric-card-teal .metric-icon {
    background: rgba(13, 148, 136, 0.1);
    color: #0d9488;
}
.metric-card-blue .metric-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}
.metric-card-green .metric-icon {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}
.metric-card-red .metric-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Donut ring for percentage metric cards */
.metric-card-ring {
    --ring-color: #0d9488;
    --pct: 0;
}
.metric-card.metric-card-ring .metric-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: conic-gradient(
        var(--ring-color) calc(var(--pct) * 1%),
        #eef2f7 calc(var(--pct) * 1%)
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.metric-card.metric-card-ring .metric-icon::after {
    content: '';
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: #fff;
}
.metric-card.metric-card-ring .metric-icon svg {
    position: relative;
    z-index: 1;
    width: 1.1rem;
    height: 1.1rem;
    stroke: var(--ring-color);
    stroke-width: 2.2;
}
.metric-card-blue.metric-card-ring  { --ring-color: #3b82f6; }
.metric-card-teal.metric-card-ring  { --ring-color: #0d9488; }
.metric-card-green.metric-card-ring { --ring-color: #22c55e; }
.metric-card-red.metric-card-ring   { --ring-color: #ef4444; }

.metric-value {
    font-size: 2rem;
    font-weight: var(--font-bold);
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.03em;
}

.metric-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--aurra-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-detail {
    font-size: 0.75rem;
    color: var(--aurra-muted);
}

/* Sparkline canvas (mini chart) */
.sparkline {
    display: block;
    width: 100% !important;
    height: 28px !important;
    max-height: 28px !important;
    margin-top: 0.6rem;
    max-width: 100%;
    opacity: 0.85;
}

/* SECTION 2: QUICK ACTIONS STRIP */
.actions-strip {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    margin-bottom: 0;
    padding: 0.45rem 0.6rem;
    background: var(--aurra-panel-soft);
    border-radius: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    align-items: center;
}
.actions-strip::-webkit-scrollbar { display: none; }

.action-btn {
    border: none;
    color: #ffffff;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    padding: 0.55rem 0.2rem;
    border-radius: 8px;
    font-size: 0.58rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    cursor: pointer;
    transition: box-shadow 200ms ease, transform 200ms ease, filter 200ms ease;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-shadow: 0 2px 6px rgba(0,0,0,0.14);
    line-height: 1;
}

.action-btn svg {
    width: 1.1rem;
    height: 1.1rem;
    stroke-width: 2.2;
    flex-shrink: 0;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    filter: brightness(1.08);
    color: #ffffff;
}

/* Per-button gradients via nth-child */
.actions-strip .action-btn:nth-child(1)  { background: linear-gradient(135deg, #0d9488, #059669); } /* Admission   — teal→emerald  */
.actions-strip .action-btn:nth-child(2)  { background: linear-gradient(135deg, #3b82f6, #6366f1); } /* Collect Fee — blue→indigo   */
.actions-strip .action-btn:nth-child(3)  { background: linear-gradient(135deg, #8b5cf6, #a855f7); } /* Voucher     — violet→purple */
.actions-strip .action-btn:nth-child(4)  { background: linear-gradient(135deg, #f59e0b, #ef4444); } /* Attendance  — amber→red     */
.actions-strip .action-btn:nth-child(5)  { background: linear-gradient(135deg, #06b6d4, #3b82f6); } /* Result      — cyan→blue     */
.actions-strip .action-btn:nth-child(6)  { background: linear-gradient(135deg, #ec4899, #f43f5e); } /* Certificate — pink→rose     */
.actions-strip .action-btn:nth-child(7)  { background: linear-gradient(135deg, #22c55e, #10b981); } /* WhatsApp    — green→emerald */
.actions-strip .action-btn:nth-child(8)  { background: linear-gradient(135deg, #f97316, #ef4444); } /* Teacher     — orange→red    */
.actions-strip .action-btn:nth-child(9)  { background: linear-gradient(135deg, #ef4444, #b91c1c); } /* Defaulters  — red→crimson   */
.actions-strip .action-btn:nth-child(10) { background: linear-gradient(135deg, #64748b, #334155); } /* Reports     — slate         */

.action-btn-primary { background: linear-gradient(135deg, #0d9488, #059669); }

/* SECTION 3: FINANCE CARDS (4-column grid for balanced layout) */
.section-finance {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
    margin-bottom: 0;
}

/* SECTION 4: OPERATIONS CARDS (3-column grid) */
.section-operations {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

/* INFO CARD (used in finance and operations sections) */
.info-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.125rem;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    text-decoration: none;
    color: inherit;
    transition: all 300ms ease;
    cursor: pointer;
}

.info-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.info-card-icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--aurra-radius-md);
    margin-bottom: 0.25rem;
}

.info-card-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2.5;
}

/* Color variants for info cards */
.info-card-blue {
    border-left-color: #3b82f6;
}

.info-card-blue .info-card-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.info-card-blue:hover {
    border-left-color: #2563eb;
}

.info-card-red {
    border-left-color: #ef4444;
}

.info-card-red .info-card-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.info-card-red:hover {
    border-left-color: #dc2626;
}

.info-card-green {
    border-left-color: #22c55e;
}

.info-card-green .info-card-icon {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.info-card-green:hover {
    border-left-color: #16a34a;
}

.info-card-teal {
    border-left-color: #0d9488;
}
.info-card-teal .info-card-icon {
    background: rgba(13, 148, 136, 0.1);
    color: #0d9488;
}
.info-card-teal:hover { border-left-color: #0f766e; }

.info-card-amber {
    border-left-color: #f59e0b;
}
.info-card-amber .info-card-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}
.info-card-amber:hover { border-left-color: #d97706; }

.info-card-neutral {
    border-left-color: #cbd5e1;
}
.info-card-neutral .info-card-icon {
    background: #f1f5f9;
    color: var(--aurra-muted);
}
.info-card-neutral:hover { border-left-color: #94a3b8; }

.info-card-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-card-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--aurra-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.info-card-value {
    font-size: 1.375rem;
    font-weight: var(--font-bold);
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 0.1rem;
}

.info-card-detail {
    font-size: 0.75rem;
    color: var(--aurra-muted);
    margin-top: 0.25rem;
}

.info-card-chart {
    display: block;
    width: 100% !important;
    height: 38px !important;
    max-height: 38px !important;
    margin-top: 0.5rem;
    max-width: 100%;
}

/* RESPONSIVE DESIGN */

/* Tablet (768px - 1200px) */
@media (max-width: 1200px) {
    .metrics-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .section-finance {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .section-operations {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 1024px) {
    .section-operations {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile (<768px) */
@media (max-width: 767.98px) {
    .modern-dashboard {
        padding: var(--space-md);
        gap: 1.5rem;
    }

    .modern-dashboard-header {
        flex-direction: column;
        gap: var(--space-md);
    }

    .modern-dashboard-header h1 {
        font-size: 1.75rem;
    }

    .modern-dashboard-tenant-chip {
        width: 100%;
        text-align: center;
    }

    .metrics-row {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .actions-strip {
        padding: 0.75rem;
        gap: var(--space-sm);
    }

    .action-btn {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }

    .section-finance {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .section-operations {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .info-card {
        padding: 1.25rem;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    .info-card-value {
        font-size: 1.25rem;
    }
}

/* ════════════════════════════════════════════════════════════════════════════ */
/* TABLE RESPONSIVENESS — Sticky headers and column hiding for mobile          */
/* ════════════════════════════════════════════════════════════════════════════ */

/* Table wrapper for horizontal scrolling */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.75rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--aurra-radius-md);
}

/* Sticky table headers */
.table-wrapper table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--aurra-panel-soft);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.table-wrapper th {
    white-space: nowrap;
    padding: var(--space-md);
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    text-align: left;
    color: #17212b;
}

.table-wrapper td {
    padding: 0.875rem 1rem;
    border: 1px solid #e2e8f0;
}

/* Hide columns on tablet/mobile */
@media (max-width: 1024px) {
    /* Hide "Expected" and "Generated" columns on tablets */
    .class-operational-table th:nth-child(7),
    .class-operational-table th:nth-child(8),
    .class-operational-table td:nth-child(7),
    .class-operational-table td:nth-child(8) {
        display: none;
    }
}

@media (max-width: 767.98px) {
    /* On mobile, hide all but essential columns */
    .class-operational-table th:nth-child(n+5),
    .class-operational-table td:nth-child(n+5) {
        display: none;
    }

    /* Show only: Class, Strength, Present %, Paid % columns */
    .activity-table th:nth-child(3),
    .activity-table td:nth-child(3) {
        display: none; /* Hide Date */
    }
}

/* ════════════════════════════════════════════════════════════════════════════ */
/* LOGIN PAGE — .lp-* namespace (Aurra School Login)                           */
/* ════════════════════════════════════════════════════════════════════════════ */

.lp-root {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ── LEFT PANEL (Branding) ─────────────────────────────────────────────────── */
.lp-panel {
    position: relative;
    background: linear-gradient(135deg, #0f2342 0%, #1a3a52 100%);
    color: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lp-panel-noise {
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" result="noise"/><feColorMatrix in="noise" type="saturate" values="0.3"/></filter><rect width="400" height="400" fill="rgb(15,35,66)" filter="url(%23noise)" opacity="0.05"/></svg>');
    pointer-events: none;
    z-index: 1;
}

.lp-blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    mix-blend-mode: overlay;
    animation: float 8s ease-in-out infinite;
    filter: blur(40px);
}

.lp-blob-1 {
    width: 350px;
    height: 350px;
    top: -50px;
    right: -100px;
    background: #00ff88;
    animation-delay: 0s;
}

.lp-blob-2 {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: -50px;
    background: #00d9ff;
    animation-delay: 2s;
}

.lp-blob-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    right: 10%;
    background: #ff00ff;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.1; }
    50% { transform: translateY(30px) scale(1.1); opacity: 0.15; }
}

.lp-panel-body {
    position: relative;
    z-index: 2;
    max-width: 450px;
    animation: fadeInUp 800ms ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lp-panel-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: 2.5rem;
}

.lp-panel-logo {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00d9ff, #00ff88);
    border-radius: var(--aurra-radius-md);
    font-weight: var(--font-black);
    font-size: 1.5rem;
    color: #0f2342;
}

.lp-panel-appname {
    display: block;
    font-size: 1.5rem;
    font-weight: var(--font-bold);
    margin-bottom: 0.25rem;
}

.lp-panel-apptag {
    display: block;
    font-size: 0.875rem;
    opacity: 0.8;
    font-weight: 500;
}

.lp-panel-hero h1 {
    font-size: 2.75rem;
    font-weight: var(--font-black);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}

.lp-panel-hero h1 em {
    font-style: italic;
    background: linear-gradient(135deg, #00d9ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.lp-panel-hero p {
    font-size: 1.05rem;
    opacity: 0.95;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

/* Feature Carousel */
.lp-feature-carousel {
    position: relative;
    margin: 2.5rem 0;
    height: 140px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.lp-carousel-item {
    position: absolute;
    inset: 0;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    opacity: 0;
    transform: translateX(20px);
    transition: all 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.lp-carousel-item.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.lp-carousel-item.is-exiting {
    opacity: 0;
    transform: translateX(-20px);
}

.lp-carousel-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: iconPulse 2s ease-in-out infinite;
}

.lp-carousel-item:nth-child(2) .lp-carousel-icon { animation-delay: 0.5s; }
.lp-carousel-item:nth-child(3) .lp-carousel-icon { animation-delay: 1s; }
.lp-carousel-item:nth-child(4) .lp-carousel-icon { animation-delay: 1.5s; }

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.lp-carousel-content {
    flex: 1;
}

.lp-carousel-content strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    font-weight: var(--font-bold);
}

.lp-carousel-content span {
    display: block;
    font-size: 0.9rem;
    opacity: 0.85;
    line-height: 1.5;
}

.lp-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lp-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: 1rem 0;
    font-size: 1rem;
    opacity: 0.95;
    transition: all 200ms ease;
}

.lp-features li:hover {
    transform: translateX(5px);
    opacity: 1;
}

.lp-feat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d9ff, #00ff88);
    flex-shrink: 0;
    margin-top: 0.375rem;
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.4);
}

/* ── RIGHT PANEL (Form) ────────────────────────────────────────────────────── */
.lp-form {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    position: relative;
    animation: slideInRight 600ms ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.lp-form-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.lp-form-body > div,
.lp-form-body > button {
    animation: fadeInUp 600ms ease-out backwards;
}

.lp-form-body > div:nth-child(1) { animation-delay: 100ms; }
.lp-form-body > div:nth-child(2) { animation-delay: 150ms; }
.lp-form-body > div:nth-child(3) { animation-delay: 200ms; }
.lp-form-body > div:nth-child(4) { animation-delay: 250ms; }
.lp-form-body > div:nth-child(5) { animation-delay: 300ms; }
.lp-form-body > button { animation-delay: 400ms; }

.lp-form-header {
    margin-bottom: 1rem;
}

.lp-form-logo {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 6px;
    font-weight: var(--font-black);
    font-size: 1.25rem;
    color: white;
    margin-bottom: 1rem;
}

.lp-form-title {
    font-size: 1.75rem;
    font-weight: var(--font-bold);
    color: #0f2342;
    margin: 0 0 0.25rem 0;
}

.lp-form-sub {
    font-size: 0.95rem;
    color: #657483;
    margin: 0;
}

.lp-error-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: var(--aurra-radius-md);
    color: #b91c1c;
    font-size: 0.9rem;
}

.lp-error-banner svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.lp-error-banner strong {
    display: block;
    margin-bottom: 0.25rem;
}

/* ── Role Selector ────────────────────────────────────────────────────────── */
.lp-roles {
    margin: 1rem 0;
}

.lp-role-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.lp-role-btn {
    background: #f9fbfc;
    border: 2px solid #cbd7e1;
    border-radius: var(--aurra-radius-md);
    padding: 0.875rem;
    cursor: pointer;
    transition: all 200ms ease;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: #657483;
}

.lp-role-btn:hover {
    border-color: #a6b8ca;
    background: #f3f7fa;
}

.lp-role-btn.is-active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    color: white;
}

.lp-role-emoji {
    font-size: 1.5rem;
}

.lp-role-lbl {
    display: block;
}

.lp-role-desc {
    font-size: 0.85rem;
    color: #657483;
    margin: 0;
}

/* ── Form Fields ──────────────────────────────────────────────────────────── */
.lp-field {
    position: relative;
    margin: 0;
}

.lp-field-wrap {
    position: relative;
}

.lp-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.5rem;
    border: 2px solid #cbd7e1;
    border-radius: var(--aurra-radius-md);
    font-size: 1rem;
    font-family: inherit;
    background: #ffffff;
    color: #0f2342;
    transition: all 200ms ease;
}

.lp-input::placeholder {
    color: transparent;
}

.lp-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #ffffff;
}

.lp-input-label {
    position: absolute;
    left: 2.5rem;
    top: 0.875rem;
    font-size: 1rem;
    color: #657483;
    pointer-events: none;
    transition: all 200ms ease;
    transform-origin: left center;
    font-weight: 500;
}

.lp-input:not(:placeholder-shown) ~ .lp-input-label,
.lp-input:focus ~ .lp-input-label {
    transform: translateY(-1.625rem) scale(0.85);
    color: #667eea;
    font-weight: 600;
}

.lp-input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd7e1;
    pointer-events: none;
}

.lp-input:focus ~ .lp-input-icon {
    color: #667eea;
}

.lp-field--err .lp-input {
    border-color: #dc2626;
}

.lp-field--err .lp-input:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.lp-field-hint {
    display: block;
    font-size: 0.8rem;
    color: #a6b8ca;
    margin-top: 0.375rem;
}

.lp-field-msg {
    display: block;
    font-size: 0.8rem;
    color: #dc2626;
    margin-top: 0.375rem;
}

/* Password field specific */
.lp-input--pwd {
    padding-right: 2.75rem;
}

.lp-pwd-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #667eea;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.375rem 0.5rem;
    transition: all 200ms ease;
}

.lp-pwd-toggle:hover {
    color: #764ba2;
}

.lp-pwd-eye {
    width: 18px;
    height: 18px;
}

.lp-pwd-toggle-lbl {
    display: inline;
}

.lp-caps-warn {
    display: none;
    font-size: 0.8rem;
    color: #ea580c;
    margin-top: 0.375rem;
}

.lp-caps-warn.is-visible {
    display: block;
}

.lp-pwd-policy {
    display: block;
    font-size: 0.8rem;
    color: #657483;
    margin-top: 0.375rem;
}

/* Remember + Forgot */
.lp-foot-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin: 0.5rem 0;
}

.lp-remember {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 0.95rem;
    color: #0f2342;
    font-weight: 500;
    user-select: none;
}

.lp-remember-chk {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #cbd7e1;
    border-radius: 4px;
    cursor: pointer;
    transition: all 200ms ease;
    flex-shrink: 0;
}

.lp-remember-chk:hover {
    border-color: #667eea;
}

.lp-remember-chk:checked {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="white"><path d="M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z"/></svg>');
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.lp-forgot-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 200ms ease;
}

.lp-forgot-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* reCAPTCHA */
.lp-captcha-wrap {
    margin: 0.5rem 0;
}

.lp-captcha-note {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8rem;
    color: #a6b8ca;
    margin: 0;
}

/* Submit Button */
.lp-submit-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: var(--aurra-radius-md);
    padding: var(--space-md);
    font-size: 1rem;
    font-weight: var(--font-bold);
    cursor: pointer;
    transition: all 300ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    position: relative;
    overflow: hidden;
    margin: 1rem 0 0.5rem 0;
}

.lp-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.4);
}

.lp-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.lp-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.lp-submit-spin {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 600ms linear infinite;
}

.lp-submit-btn.is-loading .lp-submit-spin {
    display: block;
}

.lp-submit-arrow {
    width: 20px;
    height: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer Links */
.lp-bottom-links {
    text-align: center;
    font-size: 0.9rem;
    color: #657483;
    padding-top: 0.5rem;
}

.lp-bottom-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 200ms ease;
}

.lp-bottom-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.lp-bottom-links span {
    color: #cbd7e1;
    margin: 0 0.5rem;
}

/* ════════════════════════════════════════════════════════════════════════════ */
/* RESPONSIVE DESIGN                                                           */
/* ════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 991.98px) {
    .lp-root {
        grid-template-columns: 1fr;
    }

    .lp-panel {
        display: none;
    }

    .lp-form {
        padding: 2rem;
        min-height: 100vh;
        justify-content: flex-start;
        padding-top: 3rem;
    }
}

@media (max-width: 767.98px) {
    .lp-form {
        padding: 1.5rem;
    }

    .lp-form-title {
        font-size: 1.5rem;
    }

    .lp-role-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .lp-foot-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* ── Dark mode topbar ── must be last to beat cascade ── */
@media (prefers-color-scheme: dark) {
    .topbar {
        background: rgba(26, 35, 50, 0.97) !important;
        border-bottom-color: #334155 !important;
    }
    .topbar-title { color: #f1f5f9; }
    .topbar-subtitle { color: #94a3b8; }
}

[data-theme="dark"] .topbar {
    background: rgba(26, 35, 50, 0.97) !important;
    border-bottom-color: #334155 !important;
}

[data-theme="dark"] .topbar-title { color: #f1f5f9; }
[data-theme="dark"] .topbar-subtitle { color: #94a3b8; }

