@charset "UTF-8";
@import url('theme.php');

@media (max-width: 720px) {
    .hide-on-phone {
        display: none !important;
    }
}

:root {
    --bg: #b0a596;
    --bg-soft: #928678;
    --surface: rgba(0, 0, 0, 0.82);
    --surface-strong: rgba(255, 253, 248, 0);
    --surface-warm: rgba(255, 255, 255, 0.55);
    --text: #1f2020;
    --muted: #645a50;
    --primary: #18745b;
    --primary-dark: #125847;
    --accent: #d68b3d;
    --accent-dark: #b16c26;
    --line: rgba(67, 53, 39, 0.12);
    --line-strong: rgba(67, 53, 39, 0.2);
    --shadow: 0 24px 60px rgba(67, 44, 24, 0.14); 
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --dock-surface: rgba(206, 206, 206, 0.9);
    --dock-border: rgba(92, 92, 92, 0.9);
    --dock-shadow: 0 10px 24px rgba(91, 63, 34, 0.04);
    --dock-button-surface: rgba(247, 247, 247, 0.82);
    --dock-button-border: rgba(18, 95, 82, 0.18);
    --dock-button-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52);
    --dock-button-hover-surface: rgba(255, 255, 255, 0.94);
    --dock-button-hover-shadow: 0 8px 18px rgba(91, 63, 34, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.62);
    --dock-button-active-surface: linear-gradient(135deg, var(--accent), #e39a59);
    --dock-button-active-border: rgba(140, 77, 33, 0.42);
    --dock-button-active-shadow: 0 12px 24px rgba(217, 122, 67, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1a1b1e;
        --bg-soft: #2c2e33;
        --surface: rgba(37, 38, 43, 0.92);
        --text: #e8e6e3;
        --muted: #a19b91;
        --line: rgba(255, 255, 255, 0.1);
    }
}

* {
    box-sizing: border-box;
}
#parentRelationship::placeholder { color: #3e454179; }
#parentContactMatch::placeholder { color: #3e454179; }
#parentStudentCode::placeholder { color: #3e454179; }
img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: auto;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    background: url('background.php') center center / cover no-repeat;
}

body.app-page {
    padding: 24px 16px 36px;
}

body.auth-page {
    display: block;
    padding: 40px 16px 36px;
}

/* Page Backgrounds
   Swap image URLs or gradients here to change page backgrounds across the app. */
body.app-page {
    --page-background:
        radial-gradient(circle at top left, rgba(17, 116, 126, 0.14), transparent 34%),
        radial-gradient(circle at top right, rgba(206, 122, 51, 0.18), transparent 28%),
        linear-gradient(180deg, #fef9f4 0%, #f5efe7 52%, #f1e8dd 100%);
}

body.app-page.page-dashboard {
    --page-background:
        radial-gradient(circle at top left, rgba(217, 122, 67, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(18, 95, 82, 0.20), transparent 26%),
        linear-gradient(180deg, rgba(250, 245, 237, 0.78) 0%, rgba(240, 230, 216, 0.78) 100%),
}

body.app-page.page-hod {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(17, 116, 126, 0.14), transparent 34%),
        radial-gradient(circle at top right, rgba(206, 122, 51, 0.18), transparent 28%),
        linear-gradient(180deg, rgba(254, 249, 244, 0.58) 0%, rgba(245, 239, 231, 0.54) 52%, rgba(241, 232, 221, 0.5) 100%);
}

body.app-page.page-dashboard::before,
body.app-page.page-hod::before {
    content: '';
    position: sticky;
    inset: 0;
    background-image:
        linear-gradient(rgba(18, 95, 82, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 95, 82, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

body.app-page.page-hod .hero {
    background: linear-gradient(135deg, rgba(18, 95, 82, 0.96), rgba(14, 47, 43, 0.9));
    color: #fff8ef;
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow);
    margin-bottom: 22px;
    position: relative;
    overflow: hidden;
}

body.app-page.page-hod .hero::after {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    right: -70px;
    top: -80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 70%);
    pointer-events: none;
}

body.app-page.page-hod .hero-avatar {
    border: 1px solid rgba(255, 248, 239, 0.24);
    background: rgba(255, 248, 239, 0.14);
}

body.app-page.page-hod .hero-avatar::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(14, 47, 43, 0.34) 0%, rgba(14, 47, 43, 0.1) 18%, transparent 42%, transparent 76%, rgba(14, 47, 43, 0.2) 100%),
        linear-gradient(180deg, rgba(255, 248, 239, 0.08) 0%, transparent 16%, transparent 78%, rgba(14, 47, 43, 0.24) 100%);
}

body.app-page.page-hod .hero-avatar.profile-avatar-fallback {
    color: #fff8ef;
}

body.app-page.page-hod .hero h1 {
    color: #fffefb;
}

body.app-page.page-hod .eyebrow,
body.app-page.page-hod .role-pill,
body.app-page.page-hod .nav-link {
    border: 1px solid rgba(0, 0, 0, 0.62) !important;
    background: rgba(20, 20, 20, 0.24) !important;
    color: #fffefb;
    box-shadow: none !important;
}

body.app-page.page-hod .hero-links .nav-link:hover,
body.app-page.page-hod .nav-link:hover {
    color: #fffefb !important;
    background: rgba(0, 0, 0, 0.34) !important;
    border-color: rgba(0, 0, 0, 0.78) !important;
    box-shadow: none !important;
    transform: translateY(-1px);
}

body.app-page.page-hod .stat-card,
body.app-page.page-hod .panel,
body.app-page.page-hod .card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

body.app-page.page-hod .tab-bar {
    padding: 12px 14px;
    background: rgba(255, 250, 244, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 22px;
    box-shadow: 0 16px 34px rgba(91, 63, 34, 0.12);
    -webkit-backdrop-filter: blur(14px) saturate(135%);
    backdrop-filter: blur(14px) saturate(135%);
}

body.app-page.page-hod .tab-button {
    border: 1.5px solid rgba(60, 37, 37, 0.31);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.44);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

body.app-page.page-hod .tab-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.56);
    border-color: rgba(0, 0, 0, 0.54);
    color: var(--text);
}

body.app-page.page-hod .tab-button.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff8ef;
    border-color: rgba(0, 0, 0, 0.86);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

body.app-page.page-hod .action-link {
    border: 1.5px solid rgba(60, 37, 37, 0.31);
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(244, 236, 225, 0.92));
    color: var(--text);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.44);
    transition: transform 0.20s ease, box-shadow 0.20s ease, background 0.20s ease;
}

body.app-page.page-hod .action-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: rgba(0, 0, 0, 0.86);
    color: #fff8ef;
}

body.app-page.page-hod .flash-message.success {
    background: rgba(18, 95, 82, 0.12);
    color: #ffffff;
}

body.app-page.page-hod .flash-message.error {
    background: rgba(196, 73, 61, 0.12);
    color: #ffffff;
}

body.app-page.page-hod .table-wrapper {
    background: rgba(255,255,255,0.42);
}

body.app-page.page-hod th {
    background: linear-gradient(135deg, #193c37, #27574f);
    color: #fff8ef;
}

body.app-page.page-hod tr:nth-child(even) {
    background: rgba(255,255,255,0.34);
}

body.app-page.page-hod .pill {
    background: rgba(18, 95, 82, 0.12);
    color: var(--primary);
}

body.app-page.page-hod .pill.negative {
    background: rgba(196, 73, 61, 0.12);
    color: #ffd0d0;
}

body.app-page.page-hod .danger-button {
    background: #a43f2f;
    color: #fff8ef;
}

body.app-page.page-hod .danger-button:hover {
    background: #8c3326;
}

body.app-page.page-hod .approve-button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff8ef;
}

body.app-page.page-hod .management-banner {
    background: linear-gradient(135deg, rgba(15, 97, 81, 0.95), rgba(217, 122, 67, 0.86));
    color: #fff8ef;
    box-shadow: 0 22px 48px rgba(89, 61, 31, 0.15);
}

body.app-page.page-hod .management-banner h4 {
    color: #fffefb;
}

body.app-page.page-hod .management-banner p {
    color: rgba(255, 248, 239, 0.88);
}

body.app-page.page-hod .management-banner ul {
    color: rgba(255, 248, 239, 0.92);
}

body.app-page.page-hod .management-chip {
    background: rgba(255, 248, 239, 0.14);
    border: 1px solid rgba(255, 248, 239, 0.14);
}

body.app-page.page-hod .management-chip span {
    color: rgba(255, 248, 239, 0.8);
}

body.app-page.page-hod .management-chip strong {
    color: #fffefb;
}

body.app-page.page-hod .management-strip-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(240, 248, 245, 0.82));
    border: 1px solid rgba(70, 45, 18, 0.08);
    box-shadow: 0 12px 26px rgba(89, 61, 31, 0.07);
}

body.app-page.page-hod .management-strip-card span {
    color: #647870;
}

/* Keep the HOD dashboard background under local style.css control even when
   the app enhancer adds its own page-level body artwork. */
body.app-page.page-hod.db-app-enhanced {
    background:
        radial-gradient(circle at top left, rgba(17, 116, 126, 0.08), transparent 34%),
        radial-gradient(circle at top right, rgba(206, 122, 51, 0.1), transparent 28%),
        linear-gradient(180deg, rgba(254, 249, 244, 0.24) 0%, rgba(245, 239, 231, 0.2) 52%, rgba(241, 232, 221, 0.18) 100%) !important;
}

body.app-page.page-hod.db-app-enhanced::before {
    background-image:
        linear-gradient(rgba(18, 95, 82, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 95, 82, 0.03) 1px, transparent 1px) !important;
    background-size: 24px 24px !important;
}

body.app-page.page-hod.db-app-enhanced::after {
    background:
        radial-gradient(circle at top left, rgba(17, 116, 126, 0.06), transparent 34%),
        radial-gradient(circle at top right, rgba(206, 122, 51, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(255, 250, 244, 0.12) 0%, rgba(255, 250, 244, 0.12) 100%) !important;
}

body.app-page.page-workflow,
body.app-page.page-operations {
    --page-background:
        radial-gradient(circle at top left, rgba(134, 230, 210, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(255, 210, 127, 0.14), transparent 20%),
        linear-gradient(180deg, #06101a 0%, #0a1927 52%, #040c13 100%);
}

body.app-page.page-inventory {
    --page-background:
        radial-gradient(circle at top left, rgba(217, 122, 67, 0.14), transparent 22rem),
        radial-gradient(circle at bottom right, rgba(18, 95, 82, 0.14), transparent 22rem),
        linear-gradient(180deg, #fbf6ef 0%, #f1e8dc 100%);
}

body.auth-page.login-page {
    position: relative;
    background:
        linear-gradient(135deg, rgba(12, 28, 24, 0.62), rgba(26, 19, 12, 0.42)),
        linear-gradient(180deg, rgba(10, 17, 15, 0.2), rgba(10, 17, 15, 0.5)),
        url('background.php') center center / cover no-repeat;
}

body.auth-page.login-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 244, 214, 0.24), transparent 30%),
        radial-gradient(circle at bottom right, rgba(24, 116, 91, 0.2), transparent 34%);
    pointer-events: none;
    z-index: 0;
}

body.info-page,
body.info-page.db-app-enhanced {
    background:
        linear-gradient(135deg, rgba(12, 28, 24, 0.52), rgba(26, 19, 12, 0.34)),
        linear-gradient(180deg, rgba(10, 17, 15, 0.18), rgba(10, 17, 15, 0.42)),
        url('background.php') center center / cover no-repeat fixed;
}

body.info-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 244, 214, 0.2), transparent 30%),
        radial-gradient(circle at bottom right, rgba(24, 116, 91, 0.16), transparent 34%);
    pointer-events: none;
    z-index: 0;
}

/* Info page text colors for readability */
body.info-page h1,
body.info-page h2,
body.info-page h3,
body.info-page h4,
body.info-page h5,
body.info-page h6 {
    color: black;
    font-weight: bolder;
}

body.info-page p {
    color: rgb(0, 0, 0);
    font-weight:bold;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 10px;
    font-family: 'Manrope', sans-serif;
}

p {
    margin: 0 0 10px;
    line-height: 1.6;
    color: var(--muted);
}

.search-summary {
    margin: 0 0 14px;
    font-size: 0.95rem;
    color: var(--muted);
}

.search-highlight {
    padding: 0 0.18em;
    border-radius: 0.35em;
    background: rgba(214, 139, 61, 0.18);
    color: var(--text);
    font-weight: 700;
}

label {
    display: block;
    margin: 0 0 6px;
    font-weight: 700;
    color: var(--text);
}

input,
select,
textarea,
button {
    font: inherit;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(24, 116, 91, 0.28);
    box-shadow: 0 0 0 4px rgba(24, 116, 91, 0.1);
    background: rgba(255, 255, 255, 0.9);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.quiz-settings-group {
    display: grid;
    gap: 12px;
    margin: 10px 0 22px;
}

.quiz-setting-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.55));
    box-shadow: 0 16px 32px rgba(67, 44, 24, 0.08);
    cursor: pointer;
}

.quiz-setting-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.quiz-setting-option span {
    display: block;
    flex: 1;
}

.quiz-setting-option strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
}

.quiz-setting-option small {
    display: block;
    color: var(--muted);
    font-size: 0.92em;
    font-weight: 500;
    line-height: 1.5;
}

.quiz-question-list {
    display: grid;
    gap: 16px;
}

.quiz-question-card {
    margin: 0;
}

.quiz-question-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.quiz-question-header h5 {
    margin: 0;
}

.quiz-builder-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 16px 0 10px;
}

.remove-question-button {
    padding: 8px 12px;
    border-radius: 10px;
    box-shadow: none;
}

.quiz-select-compact {
    width: min(98vw, 100%);
}

button,
.button,
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid rgba(18, 95, 82, 0.34);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fffdf9;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

button:hover,
.button:hover,
.button-link:hover {
    transform: translateY(-1px);
    color: #fffdf9;
}

.button-secondary {
    background: var(--surface-warm);
    color: var(--primary);
    border: 1px solid rgba(18, 95, 82, 0.24);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.button-secondary:hover {
    color: var(--primary-dark);
}

.attendance-source-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}

.attendance-source-badge.qr {
    background: rgba(24, 116, 91, 0.16);
    color: var(--primary-dark);
    border-color: rgba(24, 116, 91, 0.24);
}

.attendance-source-badge.manual {
    background: rgba(100, 90, 80, 0.12);
    color: var(--muted);
    border-color: rgba(100, 90, 80, 0.18);
}

.attendance-filter-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
}

.attendance-filter-bar label {
    margin: 0;
    font-size: 0.92rem;
}

.attendance-filter-bar select {
    width: auto;
    min-width: 170px;
}

.attendance-filter-bar .button-secondary {
    white-space: nowrap;
}

.attendance-filter-bar [data-attendance-export] {
    padding: 12px 16px;
    border-radius: 999px;
    border: 1.5px solid rgba(60, 37, 37, 0.31);
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(244, 236, 225, 0.92));
    color: var(--text);
    box-shadow: var(--dock-button-shadow);
}

.attendance-filter-bar [data-attendance-export]:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: rgba(0, 0, 0, 0.86);
    box-shadow: var(--dock-button-active-shadow);
    color: #fffdf9;
}

@media (max-width: 720px) {
    .attendance-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .attendance-filter-bar label,
    .attendance-filter-bar select,
    .attendance-filter-bar .button-secondary,
    .attendance-filter-bar [data-attendance-export] {
        width: 100%;
    }
}

@media (hover: none), (pointer: coarse) {
    .card:hover,
    .panel:hover {
        transform: none !important;
        box-shadow: inherit;
    }
}

.table-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid rgba(18, 95, 82, 0.28);
    background: rgba(255, 255, 255, 0.78);
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.46);
    transition: transform 0.20s ease, box-shadow 0.20s ease, background 0.20s ease, border-color 0.20s ease, color 0.20s ease;
}

.table-action-link:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(18, 95, 82, 0.28);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.2);
    color: var(--primary-dark);
}

.table-action-link:active {
    transform: translateY(0);
}



.hero {
    background: linear-gradient(135deg, rgba(18, 95, 82, 0.96), rgba(14, 47, 43, 0.9));
    color: #fff8ef;
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    right: -70px;
    top: -80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 70%);
    pointer-events: none;
}

.hero p,
.hero a {
    color: rgba(255,248,239,0.86);
}

.hero-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.hero-links a,
.hero-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 999px;
    background: rgba(255,248,239,0.1);
    border: 1px solid rgba(255,248,239,0.18);
    color: #fffefb;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.hero-links a:hover,
.hero-link:hover {
    color: #fffefb;
    background: rgba(255,248,239,0.18);
    border-color: rgba(255,248,239,0.26);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
    transform: translateY(-1px);
}

.hero-links a:active,
.hero-link:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(7, 24, 21, 0.12);
}

.tab,
.tab-bar,
.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    padding: 0;
    position: sticky;
    top: 10px;
    z-index: 3;
    background: transparent;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.tab button,
.tab-button,
.tab-buttons button {
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    border: 1px solid rgba(18, 95, 82, 0.26);
    border-radius: 999px;
    margin-right: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.44);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.tab button:hover,
.tab-button:hover,
.tab-buttons button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.56);
}

.tab button.active,
.tab-button.active,
.tab-buttons button.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fffdf9;
    border-color: rgba(13, 69, 59, 0.54);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.tabcontent,
.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(10px) scale(0.99);
    transform-origin: top center;
    transition: opacity 0.22s cubic-bezier(0.22, 1, 0.36, 1), transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.tabcontent.exiting {
    display: block;
    opacity: 0;
    transform: translateY(10px) scale(0.98);
}

.tabcontent.active,
.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: unifiedTabFadeIn 0.20s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes unifiedTabFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card,
.panel,
.compose-form,
.search-bar,
.auth-card {
    background: var(--surface);
    border: 1px solid rgba(18, 95, 82, 0.18);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.34);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.card,
.panel,
.compose-form,
.auth-card {
    padding: 22px;
}

.auth-card {
    display: block;
    width: 100%;
    max-width: 460px;
    margin: 24px auto 0;
    transform-origin: center center;
    transition: opacity 0.36s cubic-bezier(0.22, 1, 0.36, 1), transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

body.auth-page.login-page .auth-card {
    position: relative;
    z-index: 1;
    background:linear-gradient(135deg, rgba(15, 97, 81, 0.95), rgba(217, 122, 67, 0.86));
    border: 2px solid rgb(17, 135, 15);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body.auth-page.login-page .auth-title,
body.auth-page.login-page .auth-subtitle,
body.auth-page.login-page label,
body.auth-page.login-page .note,
body.auth-page.login-page .register-link,
body.auth-page.login-page .back-link {
    color: rgba(255, 248, 239, 0.92);
}

body.auth-page.login-page input[type="text"],
body.auth-page.login-page input[type="email"],
body.auth-page.login-page input[type="password"],
body.auth-page.login-page input[type="date"],
body.auth-page.login-page input[type="number"],
body.auth-page.login-page select,
body.auth-page.login-page textarea {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.14);
    color: #0f0b01;
}

body.auth-page.login-page input::placeholder,
body.auth-page.login-page textarea::placeholder {
    color: rgba(255, 248, 239, 0.62);
}

body.auth-page.login-page input:focus,
body.auth-page.login-page select:focus,
body.auth-page.login-page textarea:focus {
    border-color: rgba(134, 230, 210, 0.42);
    box-shadow: 0 0 0 4px rgba(134, 230, 210, 0.14);
    background: rgba(255, 255, 255, 0.16);
}

body.auth-page.login-page .message.error {
    color: #ffffff;
}
/* Login form */
.auth-card.form-visible {
    opacity: 1;
    transform: translateX(0) scale(1);
    display: block;
}

.auth-card.form-hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.auth-card.form-enter-right {
    display: block;
    opacity: 0;
    transform: translateX(44px) scale(0.985);
}

.auth-card.form-exit-left {
    opacity: 0;
    transform: translateX(-44px) scale(0.985);
}

.auth-card.form-enter-left {
    display: block;
    opacity: 0;
    transform: translateX(-44px) scale(0.985);
}

.auth-card.form-exit-right {
    opacity: 0;
    transform: translateX(44px) scale(0.985);
}

@media (max-width: 768px) {
    .auth-card {
        transition: opacity 0.28s ease, transform 0.28s ease;
        transform-origin: center top;
    }

    .auth-card.form-enter-right,
    .auth-card.form-exit-left,
    .auth-card.form-enter-left,
    .auth-card.form-exit-right {
        transform: translateY(8px) scale(0.99);
    }

}

.auth-title {
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    margin-bottom: 24px;
}

.logout-message {
    text-align: center;
    margin: 20px 0;
}

.logout-message p {
    margin: 16px 0 0 0;
    color: rgb(255, 255, 255);
}
.register-anchor {
    background: #ffff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: 0.3s;
}

.register-anchor:hover {
    -webkit-text-fill-color: #208b0f; /* hover color */
}
.logout-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--line);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-stack > * + * {
    margin-top: 16px;
}
.search-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
}

.search-bar {
    padding: 14px;
    margin-bottom: 18px;
}

.search-bar input {
    margin: 0;
}

.tab-buttons,
.tab {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tab-buttons button,
.tab button {
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    border: 1px solid rgba(18, 95, 82, 0.26);
    box-shadow: none;
}

.tab-buttons button.active,
.tab button.active {
    background: linear-gradient(135deg, var(--accent), #e39a59);
    color: #fffefb;
    box-shadow: 0 12px 24px rgba(217, 122, 67, 0.24);
}

.tab-content,
.tabcontent {
    display: none;
}

.tab-content.active,
.tabcontent.active {
    display: block;
}

@media (min-width: 900px) {
    .dashboard-tab-layout {
        display: grid;
        grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
        gap: 18px;
        align-items: start;
        margin-top: 18px;
    }

    .dashboard-tab-layout > .tab,
    .dashboard-tab-layout > .tab-bar,
    .dashboard-tab-layout > .tab-buttons {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 10px;
        margin: 0;
        max-height: calc(100vh - 36px);
        overflow: auto;
        top: 18px;
    }

    .dashboard-tab-layout > .tab button,
    .dashboard-tab-layout > .tab .tablinks,
    .dashboard-tab-layout > .tab-button,
    .dashboard-tab-layout > .tab-bar .tab-button,
    .dashboard-tab-layout > .tab-buttons button {
        width: 100%;
        border-radius: 14px;
        text-align: left;
    }

    .dashboard-tab-layout > .tabcontent,
    .dashboard-tab-layout > .tab-content {
        min-width: 0;
    }
}

.message-list,
.announcement-list {
    margin: 20px 0;
}

.message-item,
.announcement-item {
    margin-bottom: 12px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.message-item.unread {
    border-left: 4px solid var(--accent);
    background: rgba(214, 139, 61, 0.08);
}

.table-wrapper {
    overflow-x: auto;
    max-width: 100%;
    border-radius: 18px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

th,
td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1.2px solid var(--line);
    border-right: 1px solid rgba(26, 108, 89, 0.14);
    vertical-align: top;
}

th:last-child,
td:last-child {
    border-right: none;
}

th {
    background: linear-gradient(135deg, #1a6c59, #2f8c74);
    color: #ffffff;
    font-weight: 700;
    border-bottom: 1.8px solid rgba(26, 108, 89, 0.28);
}

tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.56);
}

.message {
    margin: 16px 0 20px;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    font-weight: 600;
    text-align: center;
}

.message.success {
    background: rgba(24, 116, 91, 0.14);
    border-color: rgba(24, 116, 91, 0.28);
    color: #ffffff;
}

.message.error {
    background: rgba(196, 73, 61, 0.14);
    border-color: rgba(196, 73, 61, 0.28);
    color: #8f241b;
}

.note,
.muted {
    color: var(--muted);
}

.auth-links,
.register-link,
.back-link {
    text-align: center;
    width: 100%;
    margin-top: 16px;
}

.auth-links a,
.register-link a,
.back-link a {
    font-weight: 700;
}

.section-spacer {
    margin-top: 18px;
}

.class-list-detail-row {
    background: #18745b;
    
}

.class-list-detail-panel {
    padding: 14px 6px 6px;
}

.class-list-detail-title {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
}

.class-list-detail-table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
}

.class-list-detail-head-row {
    background: none;
    border-bottom: 2px solid var(--primary);
}

.class-list-detail-head-cell {
    padding: 8px;
    text-align: left;
    color: var(--primary);
}

.class-list-detail-cell {
    padding: 8px;
}

.class-list-detail-empty {
    margin: 0;
}

@media (max-width: 720px) {
    body.app-page,
    body.auth-page {
        padding: 8px 2vw 18px;
      
    }

    .quiz-question-header,
    .quiz-builder-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .remove-question-button,
    #addQuizQuestionButton {
        width: 100%;
    }

    .hero,
    .card,
    .panel,
    .compose-form,
    .auth-card {
        padding: 18px;
    }

    .search-bar {
        grid-template-columns: 1fr;
    }

    .tab,
    .tab-bar,
    .tab-buttons {
        position: static;
        top: auto;
        padding: 10px;
    }

    .hero-links a,
    .hero-link,
    .tab-buttons button,
    .tab button,
    .search-bar .button,
    .search-bar .button-link,
    .search-bar button,
    .search-bar a {
        width: 100%;
    }

    .hero-links,
    .tab,
    .tab-bar,
    .tab-buttons {
        align-items: stretch;
    }

    th,
    td {
        padding: 10px 11px;
        font-size: 0.94rem;
    }
}

@media (max-width: 480px) {
    body.app-page,
    body.auth-page {
        padding: 12px 10px 20px;
    }

    .hero,
    .card,
    .panel,
    .compose-form,
    .auth-card {
        padding: 16px;
        border-radius: 18px;
    }

    .hero-links,
    .tab,
    .tab-bar,
    .tab-buttons {
        gap: 8px;
    }
}
.hero-text::first-line {
    color: hsl(0, 0%, 100%); /* change this to any color you want */
    font-weight: bold; /* optional, you can style font, size, etc. */
}

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 767px) {
    body.app-page.mobile-bottom-nav-ready {
        padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
    }

    body.app-page.mobile-bottom-nav-ready .tab,
    body.app-page.mobile-bottom-nav-ready .tab-bar,
    body.app-page.mobile-bottom-nav-ready .staff-tabs,
    body.app-page.mobile-bottom-nav-ready .erp-tabbar,
    body.app-page.mobile-bottom-nav-ready .ops-tabbar,
    body.app-page.mobile-bottom-nav-ready .wa-tabbar,
    body.app-page.mobile-bottom-nav-ready .parent-tabs,
    body.app-page.mobile-bottom-nav-ready .master-workspace-tabs {
        display: none !important;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        z-index: 10020;
        display: block;
        padding: 8px;
        border: 1px solid rgba(24, 38, 33, 0.14);
        border-radius: 24px;
        background: rgba(255, 253, 248, 0.94);
        box-shadow: 0 16px 44px rgba(31, 32, 32, 0.24);
        -webkit-backdrop-filter: blur(18px) saturate(140%);
        backdrop-filter: blur(18px) saturate(140%);
    }

    .mobile-bottom-nav__items {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(68px, 1fr);
        gap: 4px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
    }

    .mobile-bottom-nav__items::-webkit-scrollbar {
        display: none;
    }

    .mobile-bottom-nav__item {
        appearance: none;
        border: 0;
        min-width: 68px;
        min-height: 58px;
        padding: 7px 6px 6px;
        border-radius: 18px;
        background: transparent;
        color: var(--muted, #645a50);
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        font: inherit;
        font-size: 0.72rem;
        font-weight: 800;
        line-height: 1.05;
        text-align: center;
        text-decoration: none;
        scroll-snap-align: center;
        transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    }

    .mobile-bottom-nav__item:focus-visible {
        outline: 3px solid rgba(214, 139, 61, 0.42);
        outline-offset: 2px;
    }

    .mobile-bottom-nav__item.is-active {
        background: linear-gradient(135deg, var(--primary, #18745b), var(--accent, #d68b3d));
        color: #fff8ef;
        box-shadow: 0 10px 22px rgba(24, 116, 91, 0.22);
    }

    .mobile-bottom-nav__item:active {
        transform: translateY(1px) scale(0.98);
    }

    .mobile-bottom-nav__icon {
        display: block;
        font-size: 1.12rem;
        line-height: 1;
    }

    .mobile-bottom-nav__label {
        display: block;
        max-width: 64px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    @media (prefers-color-scheme: dark) {
        .mobile-bottom-nav {
            border-color: rgba(255, 248, 239, 0.14);
            background: rgba(18, 29, 27, 0.94);
            box-shadow: 0 16px 44px rgba(0, 0, 0, 0.46);
        }

        .mobile-bottom-nav__item {
            color: rgba(255, 248, 239, 0.72);
        }
    }
}

/* Direct data tables used by leadership and school-management consoles. */
html body.app-page :is(.erp-table, .ops-table),
html body.app-page.stream-management-page table {
    border: 0.5px solid black !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.68) !important;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(67, 44, 24, 0.07);
}

html body.app-page :is(.erp-table, .ops-table) :is(th, td),
html body.app-page.stream-management-page table :is(th, td) {
    border-right: 1px solid color-mix(in srgb, var(--app-primary, #0f6151) 16%, transparent) !important;
    border-bottom: 1px solid color-mix(in srgb, var(--app-primary, #0f6151) 18%, transparent) !important;
}

html body.app-page :is(.erp-table, .ops-table) tr > :last-child,
html body.app-page.stream-management-page table tr > :last-child {
    border-right: 0 !important;
}

html body.app-page :is(.erp-table, .ops-table) tbody:last-child tr:last-child > td,
html body.app-page.stream-management-page table tbody:last-child tr:last-child > td {
    border-bottom: 0 !important;
}

html body.app-page :is(.erp-table, .ops-table) thead:first-child tr:first-child > :first-child,
html body.app-page.stream-management-page table thead:first-child tr:first-child > :first-child {
    border-top-left-radius: 14px;
}

html body.app-page :is(.erp-table, .ops-table) thead:first-child tr:first-child > :last-child,
html body.app-page.stream-management-page table thead:first-child tr:first-child > :last-child {
    border-top-right-radius: 14px;
}

html body.app-page :is(.erp-table, .ops-table) tbody:last-child tr:last-child > :first-child,
html body.app-page.stream-management-page table tbody:last-child tr:last-child > :first-child {
    border-bottom-left-radius: 14px;
}

html body.app-page :is(.erp-table, .ops-table) tbody:last-child tr:last-child > :last-child,
html body.app-page.stream-management-page table tbody:last-child tr:last-child > :last-child {
    border-bottom-right-radius: 14px;
}

/* Gender indicators */
.gender-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(18, 95, 82, 0.1);
    border: 1.5px solid rgba(18, 95, 82, 0.24);
    font-size: 1.1rem;
    vertical-align: middle;
    cursor: help;
    transition: all 0.2s ease;
}

.gender-badge:hover {
    background: rgba(18, 95, 82, 0.2);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(18, 95, 82, 0.2);
}

.gender-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
}

@media (max-width: 720px) {
    .gender-badge {
        width: 24px;
        height: 24px;
        font-size: 0.95rem;
    }
}

/* Master dashboard gradient polish */
body.master-dashboard {
    background:
        linear-gradient(135deg, rgba(10, 94, 82, 0.12), rgba(33, 91, 142, 0.08) 34%, rgba(244, 179, 80, 0.12) 100%),
        #f6f9fc !important;
    color: #142f35;
}

body.master-dashboard .dashboard-shell,
body.master-dashboard .page-shell {
    position: relative;
}


body.master-dashboard .page-header,
body.master-dashboard .page-shell > h1:first-child {
    position: relative;
    overflow: hidden;
    padding: 30px !important;
    border: 1px solid rgba(255, 255, 255, 0.72) !important;
    border-radius: 16px !important;
    background:
        linear-gradient(135deg, rgba(13, 98, 83, 0.96), rgba(22, 77, 119, 0.94) 58%, rgba(151, 87, 39, 0.9)),
        #0f6151 !important;
    box-shadow: 0 24px 70px rgba(12, 55, 72, 0.18) !important;
}

body.master-dashboard .hero-panel::after,
body.master-dashboard .page-header::after,
body.master-dashboard .page-shell > h1:first-child::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 5px;
    background: linear-gradient(90deg, #61d6b7, #78a8ff, #f3bd63, #ef7f72);
}

body.master-dashboard .hero-panel > *,
body.master-dashboard .page-header > * {
    position: relative;
    z-index: 1;
}

body.master-dashboard .hero-panel h1,
body.master-dashboard .page-header h1,
body.master-dashboard .page-shell > h1:first-child {
    color: #ffffff !important;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}

body.master-dashboard .hero-panel p,
body.master-dashboard .page-header p {
    color: rgba(255, 255, 255, 0.86) !important;
}

body.master-dashboard .hero-panel span,
body.master-dashboard .page-header span {
    color: #bff7e6 !important;
    letter-spacing: 0 !important;
}

body.master-dashboard .hero-actions,
body.master-dashboard .nav-links {
    align-items: center;
}

body.master-dashboard .hero-actions .action-link,
body.master-dashboard .hero-actions .action-button,
body.master-dashboard .nav-links a,
body.master-dashboard .button,
body.master-dashboard .form-grid .submit-button {
    min-height: 44px;
    border: 0 !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #12a37f, #2879c8) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 26px rgba(19, 102, 129, 0.24) !important;
    text-decoration: none !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease !important;
}

body.master-dashboard .hero-actions .action-link:nth-child(2),
body.master-dashboard .nav-links a:nth-child(2),
body.master-dashboard .button.secondary {
    background: linear-gradient(135deg, #2563b8, #6c63d9) !important;
}

body.master-dashboard .hero-actions .action-link:nth-child(3),
body.master-dashboard .nav-links a:nth-child(3) {
    background: linear-gradient(135deg, #d97706, #e14d72) !important;
}

body.master-dashboard .hero-actions .action-link:hover,
body.master-dashboard .hero-actions .action-button:hover,
body.master-dashboard .nav-links a:hover,
body.master-dashboard .button:hover,
body.master-dashboard .form-grid .submit-button:hover {
    transform: translateY(-2px);
    filter: saturate(1.08);
    box-shadow: 0 18px 34px rgba(19, 102, 129, 0.3) !important;
}

body.master-dashboard .button.danger {
    background: linear-gradient(135deg, #dc3f4f, #9f3f8f) !important;
}

body.master-dashboard .card,
body.master-dashboard .stat-card,
body.master-dashboard .metric-card,
body.master-dashboard .chart-panel,
body.master-dashboard .management-card,
body.master-dashboard .table-panel,
body.master-dashboard .activity-panel,
body.master-dashboard .form-panel,
body.master-dashboard .profile-panel {
    border: 1px solid rgba(255, 255, 255, 0.74) !important;
    border-radius: 12px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(249, 252, 255, 0.9)),
        #ffffff !important;
    box-shadow: 0 18px 48px rgba(23, 64, 86, 0.11) !important;
}

body.master-dashboard .table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body.master-dashboard .table-scroll table {
    min-width: 680px;
}

body.master-dashboard .stat-card,
body.master-dashboard .metric-card,
body.master-dashboard .status-pill {
    position: relative;
    overflow: hidden;
}

body.master-dashboard .stat-card::before,
body.master-dashboard .metric-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, #12a37f, #2879c8, #f0a93d);
}

body.master-dashboard .stat-card strong,
body.master-dashboard .metric-card strong,
body.master-dashboard .status-pill strong,
body.master-dashboard .table-panel th,
body.master-dashboard .detail-row strong {
    color: #0d5f72 !important;
}

body.master-dashboard .status-pill {
    border: 1px solid rgba(31, 112, 136, 0.12) !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, rgba(18, 163, 127, 0.12), rgba(40, 121, 200, 0.1)) !important;
}

body.master-dashboard .progress-bar {
    background: rgba(40, 121, 200, 0.12) !important;
}

body.master-dashboard .progress-bar span {
    background: linear-gradient(90deg, #12a37f, #2879c8, #f0a93d) !important;
}

body.master-dashboard input,
body.master-dashboard select,
body.master-dashboard textarea {
    border: 1px solid rgba(27, 105, 127, 0.2) !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.master-dashboard input:focus,
body.master-dashboard select:focus,
body.master-dashboard textarea:focus {
    border-color: rgba(40, 121, 200, 0.62) !important;
    box-shadow: 0 0 0 4px rgba(40, 121, 200, 0.12) !important;
    outline: none;
}

body.master-dashboard .alert-box {
    border-radius: 12px !important;
    background: linear-gradient(135deg, rgba(18, 163, 127, 0.14), rgba(40, 121, 200, 0.1)) !important;
}

body.master-dashboard .alert-box.error {
    background: linear-gradient(135deg, rgba(220, 63, 79, 0.12), rgba(217, 119, 6, 0.1)) !important;
}

body.master-dashboard .badge-active {
    background: linear-gradient(135deg, rgba(18, 163, 127, 0.18), rgba(40, 121, 200, 0.14)) !important;
    color: #0d5f51 !important;
}

body.master-dashboard .badge-suspended {
    background: linear-gradient(135deg, rgba(220, 63, 79, 0.14), rgba(217, 119, 6, 0.12)) !important;
    color: #9c2f39 !important;
}

@media (max-width: 760px) {
    body.master-dashboard .hero-panel,
    body.master-dashboard .page-header,
    body.master-dashboard .page-shell > h1:first-child {
        padding: 22px !important;
    }

    body.master-dashboard .hero-actions .action-link,
    body.master-dashboard .hero-actions .action-button,
    body.master-dashboard .nav-links a,
    body.master-dashboard .button,
    body.master-dashboard .form-grid .submit-button {
        width: 100%;
    }
}

/* Modern authentication flow */
html[data-auth-theme] {
    --auth-color-text: #101820;
    --auth-color-text-strong: #071018;
    --auth-color-muted: #334139;
    --auth-color-subtle: #526159;
    --auth-color-panel: rgba(255, 255, 255, 0.94);
    --auth-color-panel-solid: #ffffff;
    --auth-color-field: #ffffff;
    --auth-color-line: rgba(21, 47, 63, 0.18);
    --auth-color-line-strong: rgba(21, 47, 63, 0.28);
    --auth-color-primary: #12614f;
    --auth-color-primary-strong: #0b4c3e;
    --auth-color-accent: #255f83;
    --auth-color-accent-soft: rgba(37, 95, 131, 0.14);
    --auth-color-danger: #9f1d34;
    --auth-color-danger-strong: #7d1326;
    --auth-color-success: #12614f;
    --auth-color-info: #0b5682;
    --auth-gradient-page: linear-gradient(135deg, rgba(245, 248, 244, 0.9), rgba(238, 243, 249, 0.84));
    --auth-gradient-hero: linear-gradient(135deg, #0f614e, #255f83 56%, #c87935);
    --auth-gradient-button: linear-gradient(135deg, #12614f, #255f83);
    --auth-space-1: 4px;
    --auth-space-2: 8px;
    --auth-space-3: 12px;
    --auth-space-4: 16px;
    --auth-space-5: 20px;
    --auth-space-6: 24px;
    --auth-radius-sm: 8px;
    --auth-radius-pill: 999px;
    --auth-shadow-card: 0 22px 60px rgba(18, 35, 48, 0.14);
    --auth-shadow-soft: 0 12px 32px rgba(18, 35, 48, 0.14);
    --auth-shadow-focus: 0 0 0 4px var(--auth-color-accent-soft);
    --auth-transition: 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-auth-theme="light"] {
    color-scheme: light;
}

html[data-auth-theme="dark"] {
    color-scheme: dark;
    --auth-color-text: #f8fbff;
    --auth-color-text-strong: #ffffff;
    --auth-color-muted: #d6e2dc;
    --auth-color-subtle: #b4c2bc;
    --auth-color-panel: rgba(12, 19, 27, 0.96);
    --auth-color-panel-solid: #101b25;
    --auth-color-field: #071018;
    --auth-color-line: rgba(255, 255, 255, 0.13);
    --auth-color-line-strong: rgba(255, 255, 255, 0.24);
    --auth-color-primary: #28b391;
    --auth-color-primary-strong: #7edfc7;
    --auth-color-accent: #9fd4ff;
    --auth-color-accent-soft: rgba(159, 212, 255, 0.16);
    --auth-color-info: #9fd4ff;
    --auth-gradient-page: linear-gradient(135deg, rgba(6, 13, 19, 0.92), rgba(11, 28, 38, 0.9));
    --auth-gradient-hero: linear-gradient(135deg, #082821, #102f45 56%, #8d5528);
    --auth-gradient-button: linear-gradient(135deg, #16866c, #256d9c);
    --auth-shadow-card: 0 22px 60px rgba(0, 0, 0, 0.34);
    --auth-shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.34);
}

body.auth-page.login-page {
    height: 100vh;
    height: 100dvh;
    padding: var(--auth-space-6);
    overflow: hidden;
    color: var(--auth-color-text);
    background:
        var(--auth-gradient-page),
        url('background.php') center center / cover no-repeat fixed;
    transition: background var(--auth-transition), color var(--auth-transition);
    margin: 10px;
}

html[data-auth-theme="dark"] body.auth-page.login-page {
    color: var(--auth-color-text);
    background:
        var(--auth-gradient-page),
        url('background.php') center center / cover no-repeat fixed;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.auth-theme-toggle {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 20;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: var(--auth-space-2) var(--auth-space-3);
    border: 1px solid var(--auth-color-line);
    border-radius: var(--auth-radius-pill);
    background: color-mix(in srgb, var(--auth-color-panel-solid) 92%, transparent);
    color: var(--auth-color-text);
    font-weight: 900;
    box-shadow: var(--auth-shadow-soft);
    cursor: pointer;
    transition: transform var(--auth-transition), border-color var(--auth-transition), background var(--auth-transition), color var(--auth-transition), box-shadow var(--auth-transition);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.auth-theme-toggle__icon {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: var(--auth-radius-pill);
    background: #ffd166;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.82);
    overflow: hidden;
    transition: background var(--auth-transition), box-shadow var(--auth-transition), transform var(--auth-transition);
}

.auth-theme-toggle__icon::before,
.auth-theme-toggle__icon::after {
    content: '';
    position: absolute;
    transition: transform var(--auth-transition), opacity var(--auth-transition), background var(--auth-transition);
}

.auth-theme-toggle__icon::before {
    inset: 5px;
    border-radius: var(--auth-radius-pill);
    background: #fff7c2;
    opacity: 1;
}

.auth-theme-toggle__icon::after {
    width: 18px;
    height: 18px;
    top: 3px;
    left: 8px;
    border-radius: var(--auth-radius-pill);
    background: var(--auth-color-panel-solid);
    opacity: 0;
    transform: translateX(12px);
}

.auth-theme-toggle:hover,
.auth-theme-toggle:focus-visible {
    border-color: var(--auth-color-line-strong);
    box-shadow: var(--auth-shadow-focus), var(--auth-shadow-soft);
    outline: none;
    transform: translateY(-1px);
}

html[data-auth-theme="dark"] .auth-theme-toggle {
    border-color: var(--auth-color-line);
    background: color-mix(in srgb, var(--auth-color-panel-solid) 90%, transparent);
    color: var(--auth-color-text);
    box-shadow: var(--auth-shadow-soft);
}

html[data-auth-theme="dark"] .auth-theme-toggle__icon {
    background: #1d2d3a;
    box-shadow: inset 0 0 0 2px rgba(237, 245, 241, 0.34);
    transform: rotate(-12deg);
}

html[data-auth-theme="dark"] .auth-theme-toggle__icon::before {
    opacity: 0;
    transform: scale(0.55);
}

html[data-auth-theme="dark"] .auth-theme-toggle__icon::after {
    opacity: 1;
    transform: translateX(0);
}

.auth-shell {
    width: min(1120px, 100%);
    min-height: calc(100vh - 48px);
    min-height: calc(100dvh - 48px);
    margin: auto;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.75fr);
    align-items: stretch;
    align-content: center;
    gap: 28px;
    transition: gap var(--auth-transition);

}

.auth-shell--register {
    grid-template-columns: minmax(0, 0.8fr) minmax(460px, 0.95fr);
}

.auth-hero-panel {
    min-height: 0;
    height: auto;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 18px;
    padding: 44px;
    border-radius: 100px 0px 100px 0px;
    color: #ffffff;
    background:
        linear-gradient(180deg, rgba(10, 22, 33, 0.18), rgba(10, 22, 33, 0.82)),
        url('assets/pwa/source-logo.png') center 22% / 220px no-repeat,
        var(--auth-gradient-hero);
    box-shadow: var(--auth-shadow-card);
    overflow: hidden;
    transition: background var(--auth-transition), box-shadow var(--auth-transition), transform var(--auth-transition);
}

html[data-auth-theme="dark"] .auth-hero-panel {
    background:
        linear-gradient(180deg, rgba(5, 12, 18, 0.08), rgba(5, 12, 18, 0.9)),
        url('assets/pwa/source-logo.png') center 22% / 220px no-repeat,
        var(--auth-gradient-hero);
    box-shadow: var(--auth-shadow-card);
}

.auth-brand-mark {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border-radius: var(--auth-radius-sm);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--auth-shadow-soft);
}

.auth-brand-mark img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.auth-eyebrow {
    margin: 12px 0 0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.94);
}

.auth-hero-panel h1 {
    max-width: 620px;
    margin: 0;
    font-size: 3rem;
    line-height: 1.02;
    letter-spacing: 0;
}

.auth-hero-panel p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.96);
    line-height: 1.65;
}

.auth-proof-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.auth-proof-grid span {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-weight: 700;
}

.auth-card.auth-panel,
body.auth-page.login-page .auth-card.auth-panel {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 30px;
    max-height: 100%;
    overflow: hidden;
    align-self: stretch;
    border-radius: var(--auth-radius-sm);
    border: 1px solid var(--auth-color-line);
    background: var(--auth-color-panel);
    box-shadow: var(--auth-shadow-card);
    color: var(--auth-color-text);
    transition: background var(--auth-transition), border-color var(--auth-transition), color var(--auth-transition), box-shadow var(--auth-transition), transform var(--auth-transition);
}

html[data-auth-theme="dark"] .auth-card.auth-panel,
html[data-auth-theme="dark"] body.auth-page.login-page .auth-card.auth-panel {
    border-color: var(--auth-color-line);
    background: var(--auth-color-panel);
    box-shadow: var(--auth-shadow-card);
    color: var(--auth-color-text);
}

body.auth-page.login-page .auth-title,
body.auth-page.login-page .auth-subtitle,
body.auth-page.login-page label,
body.auth-page.login-page .note,
body.auth-page.login-page .register-link,
body.auth-page.login-page .back-link {
    color: var(--auth-color-text);
}

html[data-auth-theme="dark"] body.auth-page.login-page .auth-title,
html[data-auth-theme="dark"] body.auth-page.login-page .auth-subtitle,
html[data-auth-theme="dark"] body.auth-page.login-page label,
html[data-auth-theme="dark"] body.auth-page.login-page .note,
html[data-auth-theme="dark"] body.auth-page.login-page .register-link,
html[data-auth-theme="dark"] body.auth-page.login-page .back-link {
    color: var(--auth-color-text);
}

.auth-title {
    margin: 0 0 6px;
    text-align: left;
    font-size: 1.9rem;
    letter-spacing: 0;
}

.auth-subtitle {
    margin: 0 0 16px;
    text-align: left;
    color: var(--auth-color-muted);
    line-height: 1.55;
}

html[data-auth-theme="dark"] .auth-subtitle,
html[data-auth-theme="dark"] .auth-inline-note,
html[data-auth-theme="dark"] .auth-switch-link,
html[data-auth-theme="dark"] .auth-divider {
    color: var(--auth-color-muted);
}

.auth-social-grid,
.auth-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.auth-social-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--auth-color-line);
    border-radius: var(--auth-radius-sm);
    background: var(--auth-color-panel-solid);
    color: var(--auth-color-text);
    font-weight: 800;
    cursor: pointer;
    transition: transform var(--auth-transition), border-color var(--auth-transition), background var(--auth-transition), color var(--auth-transition), box-shadow var(--auth-transition), opacity var(--auth-transition);
}

html[data-auth-theme="dark"] .auth-social-button {
    border-color: var(--auth-color-line);
    background: var(--auth-color-panel-solid);
    color: var(--auth-color-text);
}

html[data-auth-theme="dark"] .auth-social-button span {
    background: #22313d;
}

.auth-social-button:hover,
.auth-social-button:focus-visible {
    border-color: var(--auth-color-line-strong);
    box-shadow: var(--auth-shadow-focus);
    transform: translateY(-1px);
}

.auth-social-button:active,
.auth-primary-button:active,
.password-toggle:active {
    transform: translateY(1px) scale(0.99);
}

.auth-social-button:disabled,
.auth-primary-button:disabled,
.password-toggle:disabled {
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
    box-shadow: none;
}

.auth-social-button span {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #f2f5f7;
    font-weight: 900;
}

.auth-inline-note {
    margin: 8px 0 0;
    color: var(--auth-color-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.auth-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
    color: var(--auth-color-muted);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    height: 1px;
    background: var(--auth-color-line);
}

html[data-auth-theme="dark"] .auth-divider::before,
html[data-auth-theme="dark"] .auth-divider::after {
    background: rgba(255, 255, 255, 0.14);
}

.field-group {
    display: grid;
    gap: 8px;
}

.field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.forgot-link,
.auth-switch-link a {
    color: var(--auth-color-info);
    font-weight: 800;
    text-decoration: none;
}

html[data-auth-theme="dark"] .forgot-link,
html[data-auth-theme="dark"] .auth-switch-link a {
    color: var(--auth-color-info);
}

.forgot-link:hover,
.forgot-link:focus-visible,
.auth-switch-link a:hover,
.auth-switch-link a:focus-visible {
    text-decoration: underline;
}

body.auth-page.login-page input[type="text"],
body.auth-page.login-page input[type="email"],
body.auth-page.login-page input[type="password"],
body.auth-page.login-page input[type="date"],
body.auth-page.login-page input[type="number"],
body.auth-page.login-page select,
body.auth-page.login-page textarea {
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--auth-color-line);
    border-radius: var(--auth-radius-sm);
    background: var(--auth-color-field);
    color: var(--auth-color-text);
    transition: border-color var(--auth-transition), background var(--auth-transition), color var(--auth-transition), box-shadow var(--auth-transition);
}

html[data-auth-theme="dark"] body.auth-page.login-page input[type="text"],
html[data-auth-theme="dark"] body.auth-page.login-page input[type="email"],
html[data-auth-theme="dark"] body.auth-page.login-page input[type="password"],
html[data-auth-theme="dark"] body.auth-page.login-page input[type="date"],
html[data-auth-theme="dark"] body.auth-page.login-page input[type="number"],
html[data-auth-theme="dark"] body.auth-page.login-page select,
html[data-auth-theme="dark"] body.auth-page.login-page textarea {
    border-color: var(--auth-color-line);
    background: var(--auth-color-field);
    color: var(--auth-color-text);
}

body.auth-page.login-page input::placeholder,
body.auth-page.login-page textarea::placeholder {
    color: var(--auth-color-subtle);
}

html[data-auth-theme="dark"] body.auth-page.login-page input::placeholder,
html[data-auth-theme="dark"] body.auth-page.login-page textarea::placeholder {
    color: var(--auth-color-subtle);
}

body.auth-page.login-page input:focus,
body.auth-page.login-page select:focus,
body.auth-page.login-page textarea:focus,
.password-toggle:focus-visible,
.auth-primary-button:focus-visible {
    outline: none;
    border-color: var(--auth-color-accent);
    box-shadow: var(--auth-shadow-focus);
}

body.auth-page.login-page input[aria-invalid="true"],
body.auth-page.login-page select[aria-invalid="true"] {
    border-color: var(--auth-color-danger);
    box-shadow: 0 0 0 4px rgba(180, 35, 58, 0.11);
}

.password-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
}

.password-control input {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.password-toggle {
    min-width: 72px;
    min-height: 48px;
    border: 1px solid var(--auth-color-line);
    border-left: 0;
    border-radius: 0 var(--auth-radius-sm) var(--auth-radius-sm) 0;
    background: #eef3f7;
    color: var(--auth-color-text);
    font-weight: 800;
    cursor: pointer;
}

html[data-auth-theme="dark"] .password-toggle {
    border-color: var(--auth-color-line);
    background: #1d2d3a;
    color: var(--auth-color-text);
}

.field-error {
    margin: 0;
    color: var(--auth-color-danger);
    font-size: 0.88rem;
    line-height: 1.35;
}

.field-error:empty {
    display: none;
}

.password-rules {
    display: grid;
    gap: 6px;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
    color: var(--auth-color-muted);
    font-size: 0.9rem;
}

html[data-auth-theme="dark"] .password-rules {
    color: var(--auth-color-muted);
}

.password-rules li::before {
    content: '--';
    display: inline-block;
    width: 28px;
    color: #6d7771;
    font-weight: 900;
}

.password-rules li.is-met {
    color: var(--auth-color-primary);
    font-weight: 800;
}

.password-rules li.is-met::before {
    content: 'OK';
    color: var(--auth-color-primary);
}

.auth-primary-button {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: var(--auth-radius-sm);
    background: var(--auth-gradient-button);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(18, 97, 79, 0.22);
    transition: transform var(--auth-transition), filter var(--auth-transition), box-shadow var(--auth-transition), opacity var(--auth-transition);
}

.auth-primary-button:hover {
    filter: brightness(1.04);
}

.auth-switch-link {
    margin: 14px 0 0;
    text-align: center;
    color: var(--auth-color-muted);
}

.auth-shell--register .auth-card.auth-panel {
    padding: clamp(14px, 2.2vh, 24px);
}

.auth-panel-register-active {
    padding: clamp(14px, 2.2vh, 24px) !important;
}

.auth-shell--register .auth-title,
.auth-panel-register-active .auth-title {
    font-size: clamp(1.35rem, 2.2vh, 1.75rem);
}

.auth-shell--register .auth-subtitle,
.auth-shell--register .auth-inline-note,
.auth-shell--register .auth-switch-link,
.auth-panel-register-active .auth-subtitle,
.auth-panel-register-active .auth-inline-note,
.auth-panel-register-active .auth-switch-link {
    font-size: 0.86rem;
    line-height: 1.35;
}

.auth-shell--register .form-stack > * + *,
.auth-panel-register-active .form-stack > * + * {
    margin-top: clamp(7px, 1.15vh, 12px);
}

.auth-shell--register .auth-divider,
.auth-panel-register-active .auth-divider {
    margin: clamp(7px, 1.2vh, 12px) 0;
}

.auth-shell--register .auth-social-button,
.auth-shell--register .auth-primary-button,
.auth-shell--register .password-toggle,
.auth-panel-register-active .auth-social-button,
.auth-panel-register-active .auth-primary-button,
.auth-panel-register-active .password-toggle {
    min-height: 40px;
}

body.auth-page.login-page .auth-shell--register input[type="text"],
body.auth-page.login-page .auth-shell--register input[type="email"],
body.auth-page.login-page .auth-shell--register input[type="password"],
body.auth-page.login-page .auth-shell--register select,
body.auth-page.login-page .auth-shell--register textarea,
body.auth-page.login-page .auth-panel-register-active input[type="text"],
body.auth-page.login-page .auth-panel-register-active input[type="email"],
body.auth-page.login-page .auth-panel-register-active input[type="password"],
body.auth-page.login-page .auth-panel-register-active select,
body.auth-page.login-page .auth-panel-register-active textarea {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 0.9rem;
}

.auth-shell--register .auth-social-button,
.auth-panel-register-active .auth-social-button {
    padding: 7px 9px;
    font-size: 0.85rem;
}

.auth-shell--register .auth-inline-note,
.auth-panel-register-active .auth-inline-note {
    display: none;
}

.auth-shell--register .field-group,
.auth-panel-register-active .field-group {
    gap: 5px;
}

.auth-shell--register label,
.auth-panel-register-active label {
    font-size: 0.88rem;
    line-height: 1.2;
}

.auth-shell--register #parentLinkFields:not([hidden]),
.auth-panel-register-active #parentLinkFields:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(7px, 1vh, 10px) 12px;
}

.auth-shell--register #parentLinkFields .field-group:last-child,
.auth-panel-register-active #parentLinkFields .field-group:last-child {
    grid-column: 1 / -1;
}

.auth-shell--register .password-rules,
.auth-panel-register-active .password-rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px 8px;
    font-size: 0.8rem;
}

.auth-shell--register .password-rules li::before,
.auth-panel-register-active .password-rules li::before {
    width: 23px;
}

.auth-shell--register .auth-switch-link,
.auth-panel-register-active .auth-switch-link {
    margin-top: 9px;
}


.conditional-fields {
    padding-top: 2px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--auth-transition), transform var(--auth-transition);
}

.conditional-fields[hidden] {
    display: none !important;
    opacity: 0;
    transform: translateY(-6px);
}

.auth-tabs {
    display: inline-flex;
    align-items: center;
    gap: var(--auth-space-1);
    padding: var(--auth-space-1);
    border: 1px solid var(--auth-color-line);
    border-radius: var(--auth-radius-pill);
    background: color-mix(in srgb, var(--auth-color-panel-solid) 84%, transparent);
    
}

.auth-tab {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--auth-space-4);
    border: 0;
    border-radius: var(--auth-radius-pill);
    background: transparent;
    color: var(--auth-color-muted);
    font-weight: 900;
    cursor: pointer;
    transition: background var(--auth-transition), color var(--auth-transition), box-shadow var(--auth-transition), transform var(--auth-transition);
}

.auth-tab:hover,
.auth-tab:focus-visible {
    color: var(--auth-color-text);
    outline: none;
}

.auth-tab.is-active,
.auth-tab[aria-selected="true"] {
    background: var(--auth-gradient-button);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(18, 97, 79, 0.18);
}

.auth-tab-panel {
    animation: authFadeIn var(--auth-transition) both;
}


body.auth-page.login-page .message.error,
.message.error {
    color: #ffffff;
    background: var(--auth-color-danger);
    border-color: rgba(159, 29, 52, 0.24);
}

.message.success {
    color: #ffffff;
    background: var(--auth-color-success);
}

.message.info {
    color: #ffffff;
    background: var(--auth-color-info);
}

body.auth-page.login-page .message {
    border-radius: var(--auth-radius-sm);
    animation: authMessageIn var(--auth-transition) both;
}

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

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

@media (max-width: 900px) {
    body.auth-page.login-page {
        padding: 16px;
    }
    .auth-tabs {
        position: sticky
    }
    .auth-shell,
    .auth-shell--register {
        grid-template-columns: 1fr;
        min-height: calc(100vh - 32px);
        min-height: calc(100dvh - 32px);
    }

    .auth-hero-panel {
        display: none;
    }

    .auth-card.auth-panel,
    body.auth-page.login-page .auth-card.auth-panel {
        align-self: center;
    }
}

@media (min-width: 1024px) {
    .auth-shell {
        grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.75fr);
    }

    .auth-shell--register {
        grid-template-columns: minmax(0, 0.8fr) minmax(460px, 0.95fr);
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .auth-shell,
    .auth-shell--register {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 480px) and (max-width: 639px) {
    .auth-title {
        font-size: 1.55rem;
    }

    .auth-subtitle {
        font-size: 0.94rem;
    }
}

@media (max-width: 560px) {
    body.auth-page.login-page {
        padding: 0;
    }

    .auth-shell,
    .auth-shell--register {
        min-height: 100vh;
        min-height: 100dvh;
        gap: 0;
    }

    .auth-hero-panel,
    .auth-card.auth-panel,
    body.auth-page.login-page .auth-card.auth-panel {
        border-radius: 0;
    }

    .auth-hero-panel {
        display: none;
    }

    .auth-card.auth-panel,
    body.auth-page.login-page .auth-card.auth-panel {
        padding: 14px;
        height: auto;
        max-height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        border-radius: 0;
    }

    .auth-social-grid,
    .auth-shell:not(.auth-shell--register) .auth-form-grid {
        grid-template-columns: 1fr;
    }

    .auth-shell--register .auth-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .field-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-theme-toggle {
        top: 10px;
        right: 10px;
        min-height: 44px;
        padding: 8px 10px;
    }
}

@media (max-width: 479px) {
    .auth-card.auth-panel,
    body.auth-page.login-page .auth-card.auth-panel {
        padding: 12px;
    }

    .auth-title {
        font-size: 1.42rem;
    }

    .auth-subtitle,
    .auth-switch-link,
    .auth-inline-note {
        font-size: 0.82rem;
    }

    .auth-theme-toggle__text {
        display: none;
    }

    .auth-theme-toggle {
        width: 44px;
        justify-content: center;
        padding: 8px;
    }
}

@media (max-height: 780px) {
    .auth-hero-panel {
        padding: 26px;
        gap: 10px;
    }

    .auth-brand-mark {
        width: 54px;
        height: 54px;
    }

    .auth-brand-mark img {
        width: 42px;
        height: 42px;
    }

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

    .auth-card.auth-panel,
    body.auth-page.login-page .auth-card.auth-panel {
        padding: 20px;
    }


    .auth-title {
        font-size: 1.55rem;
    }

    .auth-subtitle,
    .auth-inline-note {
        font-size: 0.86rem;
    }

    .auth-social-button,
    .auth-primary-button,
    .password-toggle,
    body.auth-page.login-page input[type="text"],
    body.auth-page.login-page input[type="email"],
    body.auth-page.login-page input[type="password"],
    body.auth-page.login-page select {
        min-height: 40px;
    }
}

@media (max-height: 680px) {
    .auth-proof-grid,
    .auth-inline-note,
    .auth-divider {
        display: none;
    }

    .auth-shell--register .auth-social-grid {
        display: none;
    }

    .auth-shell--register .auth-subtitle {
        margin-bottom: 8px;
    }

    .auth-shell--register .password-rules {
        font-size: 0.76rem;
    }

    .auth-shell--register label {
        font-size: 0.8rem;
    }

    .auth-shell--register .field-error {
        font-size: 0.78rem;
    }

    body.auth-page.login-page .auth-shell--register input[type="text"],
    body.auth-page.login-page .auth-shell--register input[type="email"],
    body.auth-page.login-page .auth-shell--register input[type="password"],
    body.auth-page.login-page .auth-shell--register select {
        min-height: 34px;
        padding: 6px 8px;
    }

    .auth-shell--register .password-toggle,
    .auth-shell--register .auth-primary-button {
        min-height: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-auth-theme],
    body.auth-page.login-page,
    .auth-theme-toggle,
    .auth-theme-toggle__icon,
    .auth-theme-toggle__icon::before,
    .auth-theme-toggle__icon::after,
    .auth-shell,
    .auth-hero-panel,
    .auth-card.auth-panel,
    .auth-social-button,
    .auth-primary-button,
    .password-toggle,
    .conditional-fields,
    .auth-tab,
    .auth-tab-panel,
    body.auth-page.login-page .message,
    body.auth-page.login-page input,
    body.auth-page.login-page select,
    body.auth-page.login-page textarea {
        animation: none !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Leadership and school-wide console gradient polish */
body.leadership-dashboard,
body.leadership-messages,
body.erp-console,
body.ops-console,
body.welfare-console,
body:has(.erp-shell),
body:has(.ops-shell),
body:has(.wa-shell) {
    background:
        linear-gradient(135deg, rgba(18, 104, 128, 0.11), rgba(40, 121, 200, 0.08) 42%, rgba(240, 169, 61, 0.11)),
        #f6f9fc !important;
}

.erp-shell,
.lm-shell,
.ops-shell,
.wa-shell {
    color: #142f35 !important;
}

.erp-topbar,
.lm-topbar,
.ops-topbar,
.wa-topbar {
    align-items: center !important;
    border: 1px solid rgba(255, 255, 255, 0.72) !important;
    border-radius: 12px !important;
    background:
        linear-gradient(135deg, rgba(13, 98, 83, 0.96), rgba(22, 77, 119, 0.94)),
        #0f6151 !important;
    box-shadow: 0 18px 42px rgba(12, 55, 72, 0.16) !important;
    color: #ffffff !important;
}

.erp-topbar strong,
.lm-topbar strong,
.ops-topbar strong,
.wa-topbar strong {
    color: #ffffff !important;
}

.erp-topbar nav,
.erp-nav,
.lm-nav,
.ops-topbar nav,
.wa-topbar nav {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

.erp-topbar a,
.erp-nav a,
.lm-nav a,
.ops-topbar a,
.wa-topbar a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    margin-left: 0 !important;
    padding: 9px 13px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18) !important;
    text-decoration: none !important;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease !important;
}

.erp-topbar a:hover,
.erp-nav a:hover,
.lm-nav a:hover,
.ops-topbar a:hover,
.wa-topbar a:hover {
    transform: translateY(-2px) !important;
    background: rgba(255, 255, 255, 0.23) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26), 0 12px 24px rgba(0, 0, 0, 0.14) !important;
}



body.page-operations .hero {
    position: relative !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.72) !important;
    border-radius: 16px !important;
    background:
        linear-gradient(135deg, rgba(15, 97, 81, 0.97), rgba(39, 108, 166, 0.94) 56%, rgba(217, 119, 6, 0.88)),
        #0f6151 !important;
    box-shadow: 0 24px 70px rgba(12, 55, 72, 0.18) !important;
}

.erp-hero::after,
.lm-hero::after,
.ops-hero::after,
.wa-hero::after,
body.page-operations .hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 5px;
    background: linear-gradient(90deg, #61d6b7, #78a8ff, #f3bd63, #ef7f72);
}

.erp-hero h1,
.lm-hero h1,
.ops-hero h1,
.wa-hero h1,
body.page-operations .hero h1 {
    color: #ffffff !important;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18) !important;
}

.erp-hero p,
.lm-hero p,
.ops-hero p,
.wa-hero p,
body.page-operations .hero p {
    color: rgba(255, 255, 255, 0.88) !important;
}

.erp-card,
.erp-section,
.erp-panel,
.lm-card,
.lm-message,
.ops-card,
.ops-panel,
.wa-card,
.wa-panel,
body.page-operations .section,
body.page-operations .status-card,
body.page-operations .system-card,
body.page-operations .focus-card,
body.page-operations .chart-panel,
body.page-operations .health-card {
    border: 1px solid rgba(255, 255, 255, 0.74) !important;
    border-radius: 12px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 252, 255, 0.9)),
        #ffffff !important;
    box-shadow: 0 18px 48px rgba(23, 64, 86, 0.11) !important;
}

.erp-card,
.lm-message,
.ops-card,
.wa-card,
body.page-operations .status-card,
body.page-operations .system-card,
body.page-operations .focus-card,
body.page-operations .health-card {
    position: relative !important;
    overflow: hidden !important;
}

.erp-card::before,
.lm-message::before,
.ops-card::before,
.wa-card::before,
body.page-operations .status-card::before,
body.page-operations .system-card::before,
body.page-operations .focus-card::before,
body.page-operations .health-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, #12a37f, #2879c8, #f0a93d);
}

.erp-card strong,
.lm-card h2,
.lm-subject,
.ops-card strong,
.wa-card strong,
body.page-operations .status-card strong,
body.page-operations .system-card strong,
body.page-operations .focus-card strong,
body.page-operations .health-card strong,
body.page-operations .system-card h3,
body.page-operations .focus-card h3 {
    color: #0d5f72 !important;
}

.erp-form button,
.erp-action,
.lm-button,
.lm-tabs a,
.ops-form button,
.wa-form button,
body.page-operations .hero-link,
body.page-operations .focus-link {
    min-height: 42px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #12a37f, #2879c8) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 26px rgba(19, 102, 129, 0.24) !important;
    text-decoration: none !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease !important;
}

.erp-form button:hover,
.erp-action:hover,
.lm-button:hover,
.lm-tabs a:hover,
.ops-form button:hover,
.wa-form button:hover,
body.page-operations .hero-link:hover,
body.page-operations .focus-link:hover {
    transform: translateY(-2px) !important;
    filter: saturate(1.08) !important;
    box-shadow: 0 18px 34px rgba(19, 102, 129, 0.3) !important;
}

.erp-form input,
.erp-form select,
.erp-form textarea,
.lm-form input,
.lm-form select,
.lm-form textarea,
.ops-form input,
.ops-form select,
.ops-form textarea,
.wa-form input,
.wa-form select,
.wa-form textarea {
    border: 1px solid rgba(27, 105, 127, 0.2) !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.92) !important;
}

.erp-form input:focus,
.erp-form select:focus,
.erp-form textarea:focus,
.lm-form input:focus,
.lm-form select:focus,
.lm-form textarea:focus,
.ops-form input:focus,
.ops-form select:focus,
.ops-form textarea:focus,
.wa-form input:focus,
.wa-form select:focus,
.wa-form textarea:focus {
    border-color: rgba(40, 121, 200, 0.62) !important;
    box-shadow: 0 0 0 4px rgba(40, 121, 200, 0.12) !important;
    outline: none !important;
}

.erp-table th,
.ops-table th,
.wa-table th {
    background: linear-gradient(135deg, rgba(18, 163, 127, 0.12), rgba(40, 121, 200, 0.1)) !important;
    color: #0d5f72 !important;
}

.erp-flash,
.lm-flash,
.ops-flash,
.wa-flash {
    border-radius: 12px !important;
    background: linear-gradient(135deg, rgba(18, 163, 127, 0.14), rgba(40, 121, 200, 0.1)) !important;
}

.erp-flash.error,
.lm-flash.error,
.ops-flash.error,
.wa-flash.error {
    background: linear-gradient(135deg, rgba(220, 63, 79, 0.12), rgba(217, 119, 6, 0.1)) !important;
}

.wa-token {
    border-color: rgba(40, 121, 200, 0.18) !important;
    background: linear-gradient(135deg, rgba(18, 163, 127, 0.08), rgba(40, 121, 200, 0.08)) !important;
}

/* Shared console dashboard styling */
.erp-shell,
.ops-shell,
.wa-shell,
.lm-shell {
    width: min(1240px, calc(100% - 28px));
    margin: 0 auto;
    padding: 0 0 52px;
    position: relative;
    z-index: 1;
    color: #142f35 !important;
}

.lm-shell {
    width: min(1180px, calc(100% - 28px));
}

.erp-hero,
.ops-hero,
.wa-hero,
.lm-hero {
    background: rgba(255, 253, 248, 0.86);
    border: 1px solid rgba(67, 53, 39, 0.12);
    border-radius: var(--radius-lg, 20px);
    box-shadow: 0 16px 32px rgba(91, 63, 34, 0.08), inset 0 0 0 1px rgba(255,255,255,0.34);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    backdrop-filter: blur(16px) saturate(130%);
    padding: 24px;
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
}

.erp-hero h1,
.ops-hero h1,
.wa-hero h1,
.lm-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(1.7rem, 3vw, 2.8rem);
    letter-spacing: 0;
}

body.leadership-messages .lm-hero h1 {
    font-size: clamp(1.9rem, 3vw, 3rem);
}

.erp-hero p,
.ops-hero p,
.wa-hero p,
.lm-hero p {
    margin: 0;
    max-width: 900px;
    color: #667085;
    line-height: 1.55;
}

.erp-hero-nav,
.ops-hero-nav,
.wa-hero-nav,
.lm-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    position: relative;
    z-index: 1;
}

.erp-hero-nav a,
.ops-hero-nav a,
.wa-hero-nav a,
.lm-nav a,
.lm-tabs a,
.lm-button {
    border-radius: 999px;
    border: 1px solid rgba(60, 37, 37, 0.24);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.44);
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
}

.lm-nav a,
.lm-tabs a,
.lm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.lm-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 18px;
}

.lm-tabs a {
    background: #eef6f4;
    color: #0f6151;
}

.lm-tabs a.is-active,
body.erp-console .erp-tabbar button.active,
body.erp-console .erp-tabbar button[aria-selected="true"],
body.ops-console .ops-tabbar button.active,
body.ops-console .ops-tabbar button[aria-selected="true"] {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff8ef;
    border-color: rgba(0, 0, 0, 0.22);
}

.lm-hero-kicker {
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 248, 239, 0.78);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.8rem;
    position: relative;
    z-index: 1;
}

.erp-grid,
.ops-grid,
.wa-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.ops-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
    margin-bottom: 16px;
}

body.ops-console .ops-tabpanel.active {
    align-items: start;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.ops-console .ops-tabpanel.active > h2,
body.ops-console .ops-tabpanel.active > .ops-cards {
    grid-column: 1 / -1;
}

body.ops-console .ops-tabpanel.active > .ops-table,
body.ops-console .ops-tabpanel.active > hr {
    grid-column: 1 / -1;
}

.wa-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

body.welfare-console .wa-tabpanel.active > .wa-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.lm-grid {
    display: grid;
    grid-template-columns: 1fr .75fr;
    gap: 18px;
    align-items: start;
}

.erp-tabs,
.ops-tabs {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.erp-tabs > .erp-tabbar {
    grid-column: 1;
    grid-row: 1;
}

.erp-tabs > .erp-tabpanel {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

.ops-tabs > .ops-tabbar {
    grid-column: 1;
    grid-row: 1;
}

.ops-tabs > .ops-tabpanel {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

.wa-tabs {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.erp-tabbar,
.ops-tabbar,
.wa-tabbar {
    display: grid;
    gap: 10px;
    position: sticky;
    top: 14px;
}

.erp-tabbar button,
.ops-tabbar button,
.wa-tabbar button {
    border: 1px solid rgba(23, 32, 42, 0.14);
    border-radius: 14px;
    background: #fff;
    color: #344054;
    cursor: pointer;
    font-weight: 800;
    padding: 12px 14px;
    text-align: left;
}

.wa-tabbar button.active,
.wa-tabbar button[aria-selected="true"] {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
    color: #fff8ef;
}

.wa-tab-content {
    min-width: 0;
}

.wa-tabpanel {
    display: none;
}

.wa-tabpanel.active {
    display: block;
}

.erp-form,
.ops-form,
.wa-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.lm-form {
    display: grid;
    gap: 13px;
}

.erp-form label,
.ops-form label,
.wa-form label,
.lm-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #344054;
    font-size: .92rem;
    font-weight: 700;
}

.erp-form input,
.erp-form select,
.erp-form textarea,
.ops-form input,
.ops-form select,
.ops-form textarea,
.wa-form input,
.wa-form select,
.wa-form textarea,
.lm-form input,
.lm-form select,
.lm-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 11px;
    border: 1px solid rgba(23, 32, 42, 0.18);
    border-radius: 8px;
    background: #fff;
    color: #17202a;
}

.erp-form textarea,
.ops-form textarea,
.wa-form textarea,
.lm-form textarea {
    min-height: 120px;
    resize: vertical;
}

.erp-form .full,
.ops-form .full,
.wa-form .full {
    grid-column: 1 / -1;
}

.erp-panel,
.ops-panel,
.wa-panel,
.lm-card,
.lm-message,
.ops-card,
.wa-card {
    background: #fff;
    border: 1px solid rgba(23, 32, 42, 0.12);
    border-radius: 12px;
    box-shadow: 0 16px 32px rgba(91, 63, 34, 0.08), inset 0 0 0 1px rgba(255,255,255,0.34);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    backdrop-filter: blur(16px) saturate(130%);
    padding: 18px;
    margin-bottom: 16px;
    min-width: 0;
}

.ops-card,
.wa-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 88px;
}

.ops-card strong,
.wa-card strong {
    font-size: 1.45rem;
}

.lm-card h2,
.wa-panel h2,
.ops-panel h2,
.erp-panel h2 {
    margin: 0 0 14px;
    font-size: 1.1rem;
}

.lm-message {
    padding: 16px;
    margin-bottom: 12px;
}

.lm-message.unread {
    border-left: 5px solid #0f6151;
}

.lm-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: #667085;
    font-size: .9rem;
    margin-bottom: 8px;
}

.lm-subject {
    margin: 0 0 8px;
    color: #102f32;
    font-size: 1.04rem;
}

.lm-body {
    margin: 0;
    color: #344054;
    line-height: 1.55;
    white-space: pre-wrap;
}

.erp-table,
.ops-table,
.wa-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    font-size: .92rem;
}

.erp-table th,
.erp-table td,
.ops-table th,
.ops-table td,
.wa-table th,
.wa-table td {
    border-bottom: 1px solid rgba(23, 32, 42, 0.1);
    padding: 10px 8px;
    text-align: left;
    vertical-align: top;
}

.erp-table th,
.ops-table th,
.wa-table th {
    background: #f4f7f6;
    color: #17202a;
}

.lm-flash,
.erp-flash,
.ops-flash,
.wa-flash {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
    background: #e8f6ef;
    color: #14543f;
    border: 1px solid rgba(20, 84, 63, 0.18);
}

.lm-flash.error,
.erp-flash.error,
.ops-flash.error,
.wa-flash.error {
    background: #fff1f0;
    color: #9f1d1d;
    border-color: rgba(159, 29, 29, 0.18);
}

.wa-token-card {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    background: #e8f6ef;
    color: #14543f;
    border: 1px solid rgba(20, 84, 63, .18);
}

.wa-token {
    font-family: monospace;
    overflow-wrap: anywhere;
    background: #f4f7f6;
    border: 1px solid rgba(23, 32, 42, .12);
    border-radius: 8px;
    padding: 12px;
}

body.erp-console .erp-hero,
body.ops-console .ops-hero,
body.welfare-console .wa-hero,
body.leadership-messages .lm-hero {
    background: linear-gradient(135deg, rgba(18, 95, 82, 0.96), rgba(14, 47, 43, 0.9));
    color: #fff8ef;
    border-color: rgba(255, 248, 239, 0.18);
    border-radius: var(--radius-xl, 28px);
    box-shadow: var(--shadow);
}

body.erp-console .erp-hero::after,
body.ops-console .ops-hero::after,
body.welfare-console .wa-hero::after,
body.leadership-messages .lm-hero::after {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    right: -70px;
    top: -80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 70%);
}

body.erp-console .erp-hero-nav a,
body.ops-console .ops-hero-nav a,
body.welfare-console .wa-hero-nav a,
body.leadership-messages .lm-nav a {
    color: #fffefb;
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,248,239,0.28);
}

body.erp-console .erp-form button,
body.ops-console .ops-form button,
body.welfare-console .wa-form button,
body.leadership-messages .lm-button,
body.ops-console .ops-table button {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff8ef;
    border-color: rgba(0, 0, 0, 0.34);
}

body.erp-console .erp-tabbar button,
body.ops-console .ops-tabbar button {
    background: rgba(255,255,255,0.72);
    border-color: var(--line);
    color: var(--text);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.34);
}

body.erp-console .erp-panel h2,
body.ops-console .ops-panel h2,
body.welfare-console .wa-panel h2,
body.leadership-messages .lm-card h2,
body.leadership-messages .lm-subject {
    color: var(--primary);
}

body.erp-console .erp-card strong,
body.ops-console .ops-card strong,
body.welfare-console .wa-card strong {
    color: var(--primary);
}

body.erp-console .erp-card span,
body.ops-console .ops-card span,
body.welfare-console .wa-card span,
body.welfare-console .wa-card small {
    color: var(--muted);
}

body.erp-console .erp-table th,
body.ops-console .ops-table th,
body.welfare-console .wa-table th {
    background: rgba(255,248,239,0.78);
}

body.erp-console .erp-table th,
body.erp-console .erp-table td,
body.ops-console .ops-table th,
body.ops-console .ops-table td,
body.welfare-console .wa-table th,
body.welfare-console .wa-table td,
body.leadership-messages .lm-form input,
body.leadership-messages .lm-form select,
body.leadership-messages .lm-form textarea {
    border-bottom: 1px solid var(--line);
}

body.erp-console .erp-form label,
body.ops-console .ops-form label,
body.welfare-console .wa-form label,
body.leadership-messages .lm-form label {
    color: var(--text);
}

body.erp-console .erp-form input,
body.erp-console .erp-form select,
body.erp-console .erp-form textarea,
body.ops-console .ops-form input,
body.ops-console .ops-form select,
body.ops-console .ops-form textarea,
body.welfare-console .wa-form input,
body.welfare-console .wa-form select,
body.welfare-console .wa-form textarea,
body.leadership-messages .lm-form input,
body.leadership-messages .lm-form select,
body.leadership-messages .lm-form textarea {
    background: rgba(255,255,255,0.82);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 12px;
}

body.welfare-console .wa-search-status {
    color: var(--muted);
}

body.erp-console .erp-flash,
body.ops-console .ops-flash,
body.welfare-console .wa-flash,
body.leadership-messages .lm-flash {
    border-radius: var(--radius-md, 14px);
}

body.page-operations .section-pill,
body.page-operations .mini-tag {
    border-radius: 10px !important;
    background: linear-gradient(135deg, rgba(18, 163, 127, 0.16), rgba(40, 121, 200, 0.12)) !important;
    color: #0d5f72 !important;
}

body.page-operations .chart-fill {
    background: linear-gradient(90deg, #12a37f, #2879c8, #f0a93d) !important;
}

body.leadership-messages {
    --lm-ink: var(--text, #1f2020);
    --lm-muted: var(--muted, #645a50);
    --lm-line: var(--line, rgba(67, 53, 39, 0.12));
    --lm-panel: rgba(255, 253, 248, 0.9);
    --lm-accent: var(--primary, #18745b);
    --lm-card-radius: 18px;
    color: var(--lm-ink) !important;
}

body.leadership-messages .lm-hero,
body.leadership-messages .lm-card,
body.leadership-messages .lm-message {
    background: var(--lm-panel) !important;
    border: 1px solid var(--lm-line) !important;
    border-radius: var(--lm-card-radius) !important;
    box-shadow: 0 18px 42px rgba(67, 44, 24, 0.12) !important;
}

body.leadership-messages .lm-hero {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto 18px !important;
    padding: 26px !important;
    color: #fff8ef !important;
    background: linear-gradient(135deg, rgba(18, 95, 82, 0.96), rgba(14, 47, 43, 0.9)) !important;
    border-color: rgba(255, 248, 239, 0.18) !important;
}

body.leadership-messages .lm-hero h1 {
    margin: 0 0 8px !important;
    color: #fff8ef !important;
    font-size: clamp(1.8rem, 3vw, 2.8rem) !important;
    letter-spacing: 0 !important;
    text-shadow: none !important;
}

body.leadership-messages .lm-hero p {
    color: rgba(255, 248, 239, 0.86) !important;
    line-height: 1.55 !important;
}

body.leadership-messages .lm-hero-kicker {
    color: rgba(255, 248, 239, 0.76) !important;
    font-weight: 800 !important;
}

body.leadership-messages .lm-nav a,
body.leadership-messages .lm-tabs a,
body.leadership-messages .lm-button {
    min-height: 40px !important;
    border: 1px solid var(--lm-accent) !important;
    border-radius: 999px !important;
    background: var(--lm-accent) !important;
    color: #fff !important;
    box-shadow: none !important;
    padding: 10px 14px !important;
    font-weight: 800 !important;
}

body.leadership-messages .lm-hero .lm-nav a {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 248, 239, 0.32) !important;
    color: #fffefb !important;
}

body.leadership-messages .lm-tabs,
body.leadership-messages .lm-grid {
    width: min(1180px, calc(100% - 28px));
    margin-left: auto !important;
    margin-right: auto !important;
}

body.leadership-messages .lm-tabs a {
    background: rgba(255, 253, 248, 0.9) !important;
    border-color: var(--lm-line) !important;
    color: var(--lm-ink) !important;
}

body.leadership-messages .lm-tabs a.is-active {
    background: var(--lm-accent) !important;
    border-color: var(--lm-accent) !important;
    color: #fff !important;
}

body.leadership-messages .lm-card h2,
body.leadership-messages .lm-subject {
    color: var(--lm-ink) !important;
}

body.leadership-messages .lm-message {
    position: relative !important;
    overflow: hidden !important;
}

body.leadership-messages .lm-message::before {
    background: var(--lm-accent) !important;
    width: 4px !important;
}

body.leadership-messages .lm-message.unread {
    border-left: 1px solid var(--lm-line) !important;
}

body.leadership-messages .lm-meta,
body.leadership-messages .lm-body,
body.leadership-messages .lm-empty {
    color: var(--lm-muted) !important;
}

body.leadership-messages .lm-form label {
    color: var(--lm-muted) !important;
    font-weight: 700 !important;
}

body.leadership-messages .lm-form input,
body.leadership-messages .lm-form select,
body.leadership-messages .lm-form textarea {
    border: 1px solid var(--lm-line) !important;
    border-radius: 10px !important;
    background: rgba(255,255,255,0.82) !important;
    color: var(--lm-ink) !important;
}

body.erp-console {
    --console-ink: var(--text, #1f2020);
    --console-muted: var(--muted, #645a50);
    --console-line: var(--line, rgba(67, 53, 39, 0.12));
    --console-panel: rgba(255, 253, 248, 0.9);
    --console-accent: var(--primary, #18745b);
    --console-card-radius: 18px;
    color: var(--console-ink) !important;
}

body.erp-console .erp-hero,
body.erp-console .erp-panel,
body.erp-console .erp-card,
body.erp-console .erp-management-strip {
    background: var(--console-panel) !important;
    border: 1px solid var(--console-line) !important;
    border-radius: var(--console-card-radius) !important;
    box-shadow: 0 18px 42px rgba(67, 44, 24, 0.12) !important;
}

body.erp-console .erp-hero {
    padding: 26px !important;
    color: #fff8ef !important;
    background: linear-gradient(135deg, rgba(18, 95, 82, 0.96), rgba(14, 47, 43, 0.9)) !important;
    border-color: rgba(255, 248, 239, 0.18) !important;
    margin-bottom: 18px !important;
}

body.erp-console .erp-hero h1 {
    margin: 0 0 8px !important;
    color: #fff8ef !important;
    font-size: clamp(1.8rem, 3vw, 2.8rem) !important;
    letter-spacing: 0 !important;
    text-shadow: none !important;
}

body.erp-console .erp-hero p {
    color: rgba(255, 248, 239, 0.86) !important;
    line-height: 1.55 !important;
}

body.erp-console .erp-hero-nav a {
    min-height: 40px !important;
    border: 1px solid rgba(255, 248, 239, 0.32) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.18) !important;
    color: #fffefb !important;
    box-shadow: none !important;
    padding: 10px 14px !important;
    font-weight: 800 !important;
}

body.erp-console .erp-tabbar button {
    border: 1px solid var(--console-line) !important;
    border-radius: 14px !important;
    background: rgba(255, 253, 248, 0.9) !important;
    color: var(--console-ink) !important;
    box-shadow: none !important;
}

body.erp-console .erp-tabbar button.active,
body.erp-console .erp-tabbar button[aria-selected="true"] {
    background: var(--console-accent) !important;
    border-color: var(--console-accent) !important;
    color: #fff !important;
}

body.erp-console .erp-panel h2,
body.erp-console .erp-card strong {
    color: var(--console-ink) !important;
}

body.erp-console .erp-card span,
body.erp-console .erp-card small,
body.erp-console .erp-table td,
body.erp-console .erp-management-strip p {
    color: var(--console-muted) !important;
}

body.erp-console .erp-form label,
body.erp-console .erp-inline-form label {
    color: var(--console-muted) !important;
    font-weight: 700 !important;
}

body.erp-console .erp-form input,
body.erp-console .erp-form select,
body.erp-console .erp-form textarea,
body.erp-console .erp-inline-form input,
body.erp-console .erp-inline-form select,
body.erp-console .erp-inline-form textarea {
    border: 1px solid var(--console-line) !important;
    border-radius: 10px !important;
    background: rgba(255,255,255,0.82) !important;
    color: var(--console-ink) !important;
}

body.erp-console .erp-form button,
body.erp-console .erp-inline-form button,
body.erp-console .erp-link-button {
    min-height: 40px !important;
    border: 1px solid var(--console-accent) !important;
    border-radius: 999px !important;
    background: var(--console-accent) !important;
    color: #fff !important;
    box-shadow: none !important;
    padding: 10px 14px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

body.erp-console .erp-table th {
    background: transparent !important;
    color: var(--console-muted) !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
}

body.erp-console .erp-table th,
body.erp-console .erp-table td {
    border-color: var(--console-line) !important;
}

body.welfare-console {
    --welfare-ink: var(--text, #1f2020);
    --welfare-muted: var(--muted, #645a50);
    --welfare-line: var(--line, rgba(67, 53, 39, 0.12));
    --welfare-panel: rgba(255, 253, 248, 0.9);
    --welfare-accent: var(--primary, #18745b);
    --welfare-card-radius: 18px;
    color: var(--welfare-ink) !important;
}

body.welfare-console .wa-hero,
body.welfare-console .wa-card,
body.welfare-console .wa-panel,
body.welfare-console .wa-token-card {
    background: var(--welfare-panel) !important;
    border: 1px solid var(--welfare-line) !important;
    border-radius: var(--welfare-card-radius) !important;
    box-shadow: 0 18px 42px rgba(67, 44, 24, 0.12) !important;
}

body.welfare-console .wa-hero {
    padding: 26px !important;
    color: #fff8ef !important;
    background: linear-gradient(135deg, rgba(18, 95, 82, 0.96), rgba(14, 47, 43, 0.9)) !important;
    border-color: rgba(255, 248, 239, 0.18) !important;
    margin-bottom: 18px !important;
}

body.welfare-console .wa-hero h1 {
    margin: 0 0 8px !important;
    color: #fff8ef !important;
    font-size: clamp(1.8rem, 3vw, 2.8rem) !important;
    letter-spacing: 0 !important;
    text-shadow: none !important;
}

body.welfare-console .wa-hero p {
    color: rgba(255, 248, 239, 0.86) !important;
    line-height: 1.55 !important;
}

body.welfare-console .wa-hero-nav a {
    min-height: 40px !important;
    border: 1px solid rgba(255, 248, 239, 0.32) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.18) !important;
    color: #fffefb !important;
    box-shadow: none !important;
    padding: 10px 14px !important;
    font-weight: 800 !important;
}

body.welfare-console .wa-tabbar button {
    border: 1px solid var(--welfare-line) !important;
    border-radius: 14px !important;
    background: rgba(255, 253, 248, 0.9) !important;
    color: var(--welfare-ink) !important;
    box-shadow: none !important;
}

body.welfare-console .wa-tabbar button.active,
body.welfare-console .wa-tabbar button[aria-selected="true"] {
    background: var(--welfare-accent) !important;
    border-color: var(--welfare-accent) !important;
    color: #fff !important;
}

body.welfare-console .wa-panel h2,
body.welfare-console .wa-card strong {
    color: var(--welfare-ink) !important;
}

body.welfare-console .wa-card span,
body.welfare-console .wa-card small,
body.welfare-console .wa-table td,
body.welfare-console .wa-token-card,
body.welfare-console .wa-token {
    color: var(--welfare-muted) !important;
}

body.welfare-console .wa-form label {
    color: var(--welfare-muted) !important;
    font-weight: 700 !important;
}

body.welfare-console .wa-form input,
body.welfare-console .wa-form select,
body.welfare-console .wa-form textarea {
    border: 1px solid var(--welfare-line) !important;
    border-radius: 10px !important;
    background: rgba(255,255,255,0.82) !important;
    color: var(--welfare-ink) !important;
}

body.welfare-console .wa-form button {
    min-height: 40px !important;
    border: 1px solid var(--welfare-accent) !important;
    border-radius: 999px !important;
    background: var(--welfare-accent) !important;
    color: #fff !important;
    box-shadow: none !important;
    padding: 10px 14px !important;
    font-weight: 800 !important;
}

body.welfare-console .wa-table th {
    background: transparent !important;
    color: var(--welfare-muted) !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
}

body.welfare-console .wa-table th,
body.welfare-console .wa-table td {
    border-color: var(--welfare-line) !important;
}

body.welfare-console .wa-token {
    border: 1px solid var(--welfare-line) !important;
    border-radius: 10px !important;
    background: rgba(255,255,255,0.82) !important;
}

body.ops-console {
    --ops-ink: var(--text, #1f2020);
    --ops-muted: var(--muted, #645a50);
    --ops-line: var(--line, rgba(67, 53, 39, 0.12));
    --ops-panel: rgba(255, 253, 248, 0.9);
    --ops-accent: var(--primary, #18745b);
    --ops-card-radius: 18px;
    color: var(--ops-ink) !important;
}

body.ops-console .ops-hero,
body.ops-console .ops-panel,
body.ops-console .ops-card {
    background: var(--ops-panel) !important;
    border: 1px solid var(--ops-line) !important;
    border-radius: var(--ops-card-radius) !important;
    box-shadow: 0 18px 42px rgba(67, 44, 24, 0.12) !important;
}

body.ops-console .ops-hero {
    padding: 26px !important;
    color: #fff8ef !important;
    background: linear-gradient(135deg, rgba(18, 95, 82, 0.96), rgba(14, 47, 43, 0.9)) !important;
    border-color: rgba(255, 248, 239, 0.18) !important;
    margin-bottom: 18px !important;
}

body.ops-console .ops-hero h1 {
    margin: 0 0 8px !important;
    color: #fff8ef !important;
    font-size: clamp(1.8rem, 3vw, 2.8rem) !important;
    letter-spacing: 0 !important;
    text-shadow: none !important;
}

body.ops-console .ops-hero p {
    color: rgba(255, 248, 239, 0.86) !important;
    line-height: 1.55 !important;
}

body.ops-console .ops-hero-nav a {
    min-height: 40px !important;
    border: 1px solid rgba(255, 248, 239, 0.32) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.18) !important;
    color: #fffefb !important;
    box-shadow: none !important;
    padding: 10px 14px !important;
    font-weight: 800 !important;
}

body.ops-console .ops-tabbar button {
    border: 1px solid var(--ops-line) !important;
    border-radius: 14px !important;
    background: rgba(255, 253, 248, 0.9) !important;
    color: var(--ops-ink) !important;
    box-shadow: none !important;
}

body.ops-console .ops-tabbar button.active,
body.ops-console .ops-tabbar button[aria-selected="true"] {
    background: var(--ops-accent) !important;
    border-color: var(--ops-accent) !important;
    color: #fff !important;
}

body.ops-console .ops-panel h2,
body.ops-console .ops-card strong {
    color: var(--ops-ink) !important;
}

body.ops-console .ops-card span,
body.ops-console .ops-card small,
body.ops-console .ops-table td {
    color: var(--ops-muted) !important;
}

body.ops-console .ops-form label {
    color: var(--ops-muted) !important;
    font-weight: 700 !important;
}

body.ops-console .ops-form input,
body.ops-console .ops-form select,
body.ops-console .ops-form textarea {
    border: 1px solid var(--ops-line) !important;
    border-radius: 10px !important;
    background: rgba(255,255,255,0.82) !important;
    color: var(--ops-ink) !important;
}

body.ops-console .ops-form button,
body.ops-console .ops-table button {
    min-height: 40px !important;
    border: 1px solid var(--ops-accent) !important;
    border-radius: 999px !important;
    background: var(--ops-accent) !important;
    color: #fff !important;
    box-shadow: none !important;
    padding: 10px 14px !important;
    font-weight: 800 !important;
}

body.ops-console .ops-table th {
    background: transparent !important;
    color: var(--ops-muted) !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
}

body.ops-console .ops-table th,
body.ops-console .ops-table td {
    border-color: var(--ops-line) !important;
}

body.leadership-messages .lm-nav a:hover,
body.leadership-messages .lm-nav a:focus-visible,
body.leadership-messages .lm-tabs a:hover,
body.leadership-messages .lm-tabs a:focus-visible,
body.leadership-messages .lm-button:hover,
body.leadership-messages .lm-button:focus-visible,
body.erp-console .erp-hero-nav a:hover,
body.erp-console .erp-hero-nav a:focus-visible,
body.erp-console .erp-form button:hover,
body.erp-console .erp-form button:focus-visible,
body.erp-console .erp-inline-form button:hover,
body.erp-console .erp-inline-form button:focus-visible,
body.erp-console .erp-link-button:hover,
body.erp-console .erp-link-button:focus-visible,
body.welfare-console .wa-hero-nav a:hover,
body.welfare-console .wa-hero-nav a:focus-visible,
body.welfare-console .wa-form button:hover,
body.welfare-console .wa-form button:focus-visible,
body.ops-console .ops-hero-nav a:hover,
body.ops-console .ops-hero-nav a:focus-visible,
body.ops-console .ops-form button:hover,
body.ops-console .ops-form button:focus-visible,
body.ops-console .ops-table button:hover,
body.ops-console .ops-table button:focus-visible {
    transform: translateY(-1px) !important;
    filter: saturate(1.04) brightness(1.03) !important;
    box-shadow: 0 10px 22px rgba(18, 95, 82, 0.18) !important;
    outline: none !important;
}

body.leadership-messages .lm-hero .lm-nav a:hover,
body.leadership-messages .lm-hero .lm-nav a:focus-visible,
body.erp-console .erp-hero-nav a:hover,
body.erp-console .erp-hero-nav a:focus-visible,
body.welfare-console .wa-hero-nav a:hover,
body.welfare-console .wa-hero-nav a:focus-visible,
body.ops-console .ops-hero-nav a:hover,
body.ops-console .ops-hero-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.27) !important;
    border-color: rgba(255, 248, 239, 0.52) !important;
    box-shadow: 0 10px 22px rgba(7, 24, 21, 0.18) !important;
}

body.leadership-messages .lm-tabs a:hover,
body.leadership-messages .lm-tabs a:focus-visible,
body.erp-console .erp-tabbar button:hover,
body.erp-console .erp-tabbar button:focus-visible,
body.welfare-console .wa-tabbar button:hover,
body.welfare-console .wa-tabbar button:focus-visible,
body.ops-console .ops-tabbar button:hover,
body.ops-console .ops-tabbar button:focus-visible {
    transform: translateY(-1px) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: color-mix(in srgb, var(--primary, #18745b) 42%, transparent) !important;
    box-shadow: 0 10px 22px rgba(67, 44, 24, 0.12) !important;
    outline: none !important;
}

body.leadership-messages .lm-tabs a.is-active:hover,
body.leadership-messages .lm-tabs a.is-active:focus-visible,
body.erp-console .erp-tabbar button.active:hover,
body.erp-console .erp-tabbar button.active:focus-visible,
body.erp-console .erp-tabbar button[aria-selected="true"]:hover,
body.erp-console .erp-tabbar button[aria-selected="true"]:focus-visible,
body.welfare-console .wa-tabbar button.active:hover,
body.welfare-console .wa-tabbar button.active:focus-visible,
body.welfare-console .wa-tabbar button[aria-selected="true"]:hover,
body.welfare-console .wa-tabbar button[aria-selected="true"]:focus-visible,
body.ops-console .ops-tabbar button.active:hover,
body.ops-console .ops-tabbar button.active:focus-visible,
body.ops-console .ops-tabbar button[aria-selected="true"]:hover,
body.ops-console .ops-tabbar button[aria-selected="true"]:focus-visible {
    background: color-mix(in srgb, var(--primary, #18745b) 88%, #ffffff 12%) !important;
    border-color: color-mix(in srgb, var(--primary, #18745b) 88%, #ffffff 12%) !important;
    color: #fff !important;
}

@media (max-width: 760px) {
    body.erp-console .erp-shell {
        width: min(100% - 12px, 1240px);
        padding-bottom: 72px;
    }

    body.erp-console .erp-hero {
        padding: 20px !important;
        border-radius: 20px !important;
    }

    body.erp-console .erp-hero h1 {
        font-size: clamp(1.65rem, 8.5vw, 2.25rem) !important;
    }

    body.erp-console .erp-hero-nav {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .erp-tabs {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .erp-tabs > .erp-tabbar,
    .erp-tabs > .erp-tabpanel {
        grid-column: 1;
        grid-row: auto;
    }

    body.erp-console .erp-tabs > .erp-tabbar {
        grid-auto-flow: column;
        grid-auto-columns: minmax(132px, 44vw);
        grid-template-columns: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 6px 0 10px;
        position: sticky;
        top: 0;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    body.erp-console .erp-tabs > .erp-tabbar::-webkit-scrollbar {
        display: none;
    }

    body.erp-console .erp-tabbar button {
        min-height: 44px;
        padding: 9px 10px !important;
        text-align: center;
        white-space: normal;
        width: auto;
    }

    body.erp-console .erp-panel {
        border-radius: 16px !important;
        overflow-x: auto;
        padding: 16px;
        -webkit-overflow-scrolling: touch;
    }

    body.erp-console .erp-form {
        grid-template-columns: 1fr;
    }

    body.erp-console .erp-form input,
    body.erp-console .erp-form select,
    body.erp-console .erp-form textarea,
    body.erp-console .erp-inline-form input,
    body.erp-console .erp-inline-form select,
    body.erp-console .erp-inline-form textarea {
        min-width: 0;
    }

    body.erp-console .erp-form button,
    body.erp-console .erp-inline-form button,
    body.erp-console .erp-link-button,
    body.erp-console .erp-hero-nav a {
        width: 100% !important;
    }

    body.erp-console .erp-inline-form {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    body.erp-console .erp-table {
        min-width: 580px;
        font-size: 0.88rem;
    }

    body.erp-console .erp-table th,
    body.erp-console .erp-table td {
        padding: 9px 10px !important;
    }

    .ops-cards,
    body.ops-console .ops-tabpanel.active {
        grid-template-columns: 1fr;
    }

    .wa-cards,
    body.welfare-console .wa-tabpanel.active > .wa-grid {
        grid-template-columns: 1fr;
    }

    .wa-tabs {
        grid-template-columns: 1fr;
    }

    .wa-tabbar {
        position: static;
    }

    .erp-topbar nav,
    .erp-nav,
    .lm-nav,
    .ops-topbar nav,
    .wa-topbar nav {
        width: 100% !important;
    }

    .erp-topbar a,
    .erp-nav a,
    .lm-nav a,
    .ops-topbar a,
    .wa-topbar a,
    .erp-form button,
    .erp-action,
    .lm-button,
    .lm-tabs a,
    .ops-form button,
    .wa-form button,
    body.page-operations .hero-link,
    body.page-operations .focus-link {
        width: 100% !important;
    }
}

/* Keep navigation controls flat across dashboards and utility pages. */
html body.app-page nav[class] :is(a, button),
html body.app-page :is(.tab, .tab-bar, .tab-buttons, .staff-tabs, .erp-tabbar, .ops-tabbar, .wa-tabbar, .parent-tabs, .master-workspace-tabs) :is(a, button),
html body.app-page :is(.hero-links, .staff-links, .erp-nav, .lm-nav, .library-nav, .help-nav, .support-nav, .appearance-nav, .nav-links) :is(a, button, .nav-link),
html body.app-page .mobile-bottom-nav__item,
html body.app-page .nav-link {
    box-shadow: none !important;
    filter: none !important;
}

html body.app-page nav[class] :is(a, button):is(:hover, :active, :focus-visible),
html body.app-page :is(.tab, .tab-bar, .tab-buttons, .staff-tabs, .erp-tabbar, .ops-tabbar, .wa-tabbar, .parent-tabs, .master-workspace-tabs) :is(a, button):is(:hover, :active, :focus-visible),
html body.app-page :is(.hero-links, .staff-links, .erp-nav, .lm-nav, .library-nav, .help-nav, .support-nav, .appearance-nav, .nav-links) :is(a, button, .nav-link):is(:hover, :active, :focus-visible),
html body.app-page .mobile-bottom-nav__item:is(:hover, :active, :focus-visible),
html body.app-page .nav-link:is(:hover, :active, :focus-visible) {
    box-shadow: none !important;
    filter: none !important;
}

html body.app-page nav[class] :is(a, button):focus-visible,
html body.app-page :is(.tab, .tab-bar, .tab-buttons, .staff-tabs, .erp-tabbar, .ops-tabbar, .wa-tabbar, .parent-tabs, .master-workspace-tabs) :is(a, button):focus-visible,
html body.app-page .mobile-bottom-nav__item:focus-visible {
    outline: 2px solid currentColor !important;
    outline-offset: 2px !important;
}

/* --------------------------------------------------------------------------
   Shared librarian-inspired application skin
   Keeps each workspace's layout and behavior, while giving dashboards and
   supporting app pages one consistent visual language.
   -------------------------------------------------------------------------- */

body.app-page {
    --app-glass: rgba(255, 253, 248, 0.92);
    --app-glass-soft: rgba(255, 255, 255, 0.72);
    --app-border: var(--line, rgba(67, 53, 39, 0.12));
    --app-radius: var(--radius-lg, 20px);
    --app-shadow: var(--shadow, 0 24px 60px rgba(67, 44, 24, 0.14));
    --app-primary: var(--school-primary, var(--primary, #0f6151));
    --app-secondary: var(--school-secondary, var(--primary-dark, #17202a));
    font-family: "Instrument Sans", "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.app-page :is(
    .hero,
    .staff-hero,
    .erp-hero,
    .ops-hero,
    .wa-hero,
    .parent-hero,
    .teacher-hero,
    .student-hero,
    .help-hero,
    .support-hero,
    .workflow-hero,
    .appearance-hero,
    .app-home-hero,
    .lm-hero
) {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid rgba(255, 248, 239, 0.18);
    border-radius: var(--app-radius);
    color: #fff8ef;
    background: linear-gradient(
        135deg,
        rgba(18, 95, 82, 0.96),
        rgba(14, 47, 43, 0.90)
    ) !important;
    box-shadow: var(--app-shadow);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    backdrop-filter: blur(16px) saturate(130%);
}

/* Page-local dashboard styles are loaded after style.css on some screens.
   These higher-specificity rules keep the hero palette canonical everywhere. */
html body.app-page :is(
    .hero,
    .staff-hero,
    .erp-hero,
    .ops-hero,
    .wa-hero,
    .parent-hero,
    .teacher-hero,
    .student-hero,
    .help-hero,
    .support-hero,
    .workflow-hero,
    .appearance-hero,
    .app-home-hero,
    .lm-hero
) {
    background: linear-gradient(
        135deg,
        rgba(18, 95, 82, 0.96),
        rgba(14, 47, 43, 0.90)
    ) !important;
}

html body.app-page.page-hod .hero {
    background: linear-gradient(
        135deg,
        rgba(18, 95, 82, 0.96),
        rgba(14, 47, 43, 0.90)
    ) !important;
}

body.app-page :is(
    .hero,
    .staff-hero,
    .erp-hero,
    .ops-hero,
    .wa-hero,
    .parent-hero,
    .teacher-hero,
    .student-hero,
    .help-hero,
    .support-hero,
    .workflow-hero,
    .appearance-hero,
    .app-home-hero,
    .lm-hero
)::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    top: -80px;
    right: -70px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 70%);
    pointer-events: none;
}

body.app-page :is(
    .hero,
    .staff-hero,
    .erp-hero,
    .ops-hero,
    .wa-hero,
    .parent-hero,
    .teacher-hero,
    .student-hero,
    .help-hero,
    .support-hero,
    .workflow-hero,
    .appearance-hero,
    .app-home-hero,
    .lm-hero
) > * {
    position: relative;
    z-index: 1;
}

body.app-page :is(
    .hero,
    .staff-hero,
    .erp-hero,
    .ops-hero,
    .wa-hero,
    .parent-hero,
    .teacher-hero,
    .student-hero,
    .help-hero,
    .support-hero,
    .workflow-hero,
    .appearance-hero,
    .app-home-hero,
    .lm-hero
) :is(h1, h2) {
    color: #fffefb !important;
    letter-spacing: 0;
    line-height: 1.05;
}

body.app-page :is(
    .hero,
    .staff-hero,
    .erp-hero,
    .ops-hero,
    .wa-hero,
    .parent-hero,
    .teacher-hero,
    .student-hero,
    .help-hero,
    .support-hero,
    .workflow-hero,
    .appearance-hero,
    .app-home-hero,
    .lm-hero
) p {
    color: rgba(255, 248, 239, 0.86) !important;
    line-height: 1.6;
}

body.app-page :is(
    .card,
    .panel,
    .stat-card,
    .staff-card,
    .staff-section,
    .erp-card,
    .erp-panel,
    .ops-card,
    .ops-panel,
    .wa-card,
    .wa-panel,
    .parent-card,
    .teacher-panel,
    .library-panel,
    .library-stat-card,
    .appearance-card,
    .lm-card,
    .metric-card,
    .status-card,
    .chart-panel,
    .table-panel,
    .form-panel,
    .profile-panel,
    .management-card,
    .management-strip-card,
    .section-insight-card,
    .essay-card,
    .workflow-card,
    .support-panel,
    .table-card,
    .notice-card,
    .health-card,
    .focus-card,
    .system-card,
    .requirement-card,
    .role-card,
    .module-card,
    .flow-card,
    .profile-hero-card,
    .school-access-countdown-banner,
    .unified-search-shell
) {
    border: 1px solid var(--app-border) !important;
    border-radius: var(--app-radius) !important;
    background: var(--app-glass) !important;
    box-shadow: var(--app-shadow) !important;
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    backdrop-filter: blur(16px) saturate(130%);
}

body.app-page :is(.stat-card, .staff-card, .metric-card, .library-stat-card) strong {
    color: var(--app-primary);
}

body.app-page :is(.stat-card, .staff-card, .metric-card, .library-stat-card) :is(span, small),
body.app-page :is(.panel, .card, .staff-section, .erp-panel, .ops-panel, .wa-panel, .parent-card) p {
    color: var(--muted, #645a50);
}

body.app-page :is(
    input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
    select,
    textarea
) {
    min-height: 44px;
    max-width: 100%;
    border: 1px solid var(--app-border) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.82) !important;
    color: var(--text, #1f2020) !important;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

body.app-page :is(
    input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
    select,
    textarea
):focus {
    border-color: color-mix(in srgb, var(--app-primary) 70%, white 30%) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--app-primary) 16%, transparent) !important;
    background: rgba(255, 255, 255, 0.94) !important;
}

body.app-page :is(button, .button, .action-link, .button-link, .hero-link, .nav-link) {
    min-height: 40px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

body.app-page :is(button, .button, .action-link, .button-link, .hero-link, .nav-link):hover {
    transform: translateY(-1px);
}

body.app-page :is(
    button[type="submit"]:not(.danger-button),
    .submit-button,
    .approve-button,
    .primary-button,
    .button.primary,
    .action-link.primary,
    .erp-action,
    .lm-button
) {
    border-color: color-mix(in srgb, var(--app-primary) 88%, black 12%);
    background: linear-gradient(
        135deg,
        var(--app-primary),
        color-mix(in srgb, var(--app-primary) 70%, #111 30%)
    );
    color: #fffefb;
}

body.app-page :is(.danger-button, .button.danger, button.danger, .delete-button) {
    background: #9d2b2b !important;
    border-color: #812323 !important;
    color: #fff !important;
}

body.app-page :is(.table-wrapper, .table-scroll, .parent-table-wrapper, .essay-table-wrapper) {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--app-border) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.56) !important;
    -webkit-overflow-scrolling: touch;
}

body.app-page table {
    width: 100%;
    border-collapse: collapse;
}

body.app-page table :is(th, td) {
    padding: 13px 14px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--app-border);
}

body.app-page table th {
    color: var(--text, #1f2020) !important;
    background: color-mix(in srgb, var(--app-primary) 8%, transparent) !important;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.app-page table tbody tr {
    transition: background 0.16s ease;
}

body.app-page table tbody tr:hover {
    background: color-mix(in srgb, var(--app-primary) 4.5%, transparent);
}

body.app-page :is(.badge, .pill, .status-pill, .library-status, .teacher-badge, .section-pill, .role-pill) {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--app-primary) 10%, transparent);
    color: var(--app-primary);
    font-size: 0.86rem;
    font-weight: 800;
}

body.app-page :is(.flash-message, .message.success, .alert-success) {
    border: 1px solid rgba(15, 97, 81, 0.20);
    border-radius: 16px;
    background: rgba(240, 253, 244, 0.92);
    color: #14532d;
}

body.app-page :is(.flash-message.error, .message.error, .alert-error) {
    border-color: rgba(157, 43, 43, 0.25);
    background: rgba(254, 242, 242, 0.94);
    color: #7f1d1d;
}

@media (max-width: 900px) {
    body.app-page :is(.hero, .staff-hero, .erp-hero, .ops-hero, .wa-hero, .parent-hero, .teacher-hero) {
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    body.app-page :is(
        .hero,
        .staff-hero,
        .erp-hero,
        .ops-hero,
        .wa-hero,
        .parent-hero,
        .teacher-hero,
        .student-hero,
        .help-hero,
        .support-hero,
        .workflow-hero,
        .appearance-hero,
        .app-home-hero,
        .lm-hero,
        .card,
        .panel,
        .staff-section,
        .erp-panel,
        .ops-panel,
        .wa-panel,
        .parent-card,
        .teacher-panel,
        .appearance-card
    ) {
        padding: 18px;
        border-radius: 16px !important;
    }

    body.app-page :is(
        .hero-links,
        .staff-links,
        .erp-hero-nav,
        .ops-hero-nav,
        .wa-hero-nav,
        .teacher-nav,
        .student-hero__links,
        .help-nav,
        .support-nav,
        .appearance-nav,
        .lm-nav
    ) {
        display: grid;
        grid-template-columns: 1fr;
    }

    body.app-page :is(
        .hero-links,
        .staff-links,
        .erp-hero-nav,
        .ops-hero-nav,
        .wa-hero-nav,
        .teacher-nav,
        .student-hero__links,
        .help-nav,
        .support-nav,
        .appearance-nav,
        .lm-nav
    ) :is(a, button) {
        width: 100%;
    }

    body.app-page table {
        font-size: 0.9rem;
    }

    body.app-page table :is(th, td) {
        padding: 10px;
    }
}

/* Phone data surfaces: cards stay anchored while wide tables scroll inside. */
@media (max-width: 767px) {
    html body.app-page :is(
        .stats-grid,
        .staff-grid,
        .library-stats,
        .stat-grid,
        .metrics-grid,
        .summary-grid,
        .status-grid,
        .ops-cards,
        .wa-cards,
        .student-hero__stats,
        .inline-metrics,
        .erp-grid[aria-label="School metrics"]
    ) {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        align-items: stretch;
    }

    html body.app-page :is(
        .stats-grid,
        .staff-grid,
        .library-stats,
        .stat-grid,
        .metrics-grid,
        .summary-grid,
        .status-grid,
        .ops-cards,
        .wa-cards,
        .student-hero__stats,
        .inline-metrics,
        .erp-grid[aria-label="School metrics"]
    ) > :is(
        .stat,
        .stat-card,
        .staff-card,
        .library-stat-card,
        .metric-card,
        .summary-card,
        .status-card,
        .ops-card,
        .wa-card,
        .student-hero__stat,
        .inline-metric,
        .erp-card
    ) {
        width: 100%;
        min-width: 0;
        min-height: 104px;
        margin: 0;
    }

    body.app-page :is(
        .stat,
        .card,
        .panel,
        .stat-card,
        .staff-card,
        .staff-section,
        .erp-card,
        .erp-panel,
        .ops-card,
        .ops-panel,
        .wa-card,
        .wa-panel,
        .parent-card,
        .teacher-panel,
        .library-panel,
        .library-stat-card,
        .appearance-card,
        .lm-card,
        .metric-card,
        .status-card,
        .chart-panel,
        .table-panel,
        .form-panel,
        .profile-panel,
        .management-card,
        .section-insight-card,
        .essay-card,
        .workflow-card,
        .support-panel,
        .table-card,
        .notice-card,
        .health-card,
        .focus-card,
        .system-card
    ) {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden !important;
        translate: none !important;
        transform: none !important;
        animation: none !important;
    }

    body.app-page :is(
        .stat,
        .card,
        .panel,
        .stat-card,
        .staff-card,
        .staff-section,
        .erp-card,
        .erp-panel,
        .ops-card,
        .ops-panel,
        .wa-card,
        .wa-panel,
        .parent-card,
        .teacher-panel,
        .library-panel,
        .library-stat-card,
        .appearance-card,
        .lm-card,
        .metric-card,
        .status-card,
        .chart-panel,
        .table-panel,
        .form-panel,
        .profile-panel,
        .management-card,
        .section-insight-card,
        .essay-card,
        .workflow-card,
        .support-panel,
        .table-card,
        .notice-card,
        .health-card,
        .focus-card,
        .system-card
    ):hover {
        translate: none !important;
        transform: none !important;
    }

    body.app-page :is(
        .table-wrapper,
        .table-scroll,
        .parent-table-wrapper,
        .essay-table-wrapper
    ) {
        width: 100%;
        max-width: 100%;
        overflow-x: auto !important;
        overflow-y: visible;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
    }

    body.app-page :is(
        .table-wrapper,
        .table-scroll,
        .parent-table-wrapper,
        .essay-table-wrapper
    ) table {
        width: 100%;
        min-width: 0;
    }

    /* The card never becomes the scroll container. The table owns its own
       horizontal viewport, including on pages that omit a wrapper element. */
    html body.app-page table {
        display: block;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        table-layout: auto !important;
        white-space: nowrap;
        overflow-x: auto !important;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
    }

    html body.app-page table :is(th, td) {
        min-width: max-content;
        white-space: nowrap !important;
    }
}

/* Operations Overview: align the legacy analytics layout with app dashboards. */
html body.app-page.page-operations {
    margin: 0 !important;
    color: var(--text, #1f2020) !important;
    font-family: "Instrument Sans", "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

html body.app-page.page-operations .ops-shell {
    width: min(1180px, calc(100% - 28px)) !important;
    margin: 0 auto !important;
    padding: 24px 0 56px !important;
    position: relative;
    z-index: 1;
}

html body.app-page.page-operations .section {
    padding: 22px !important;
    margin-bottom: 22px;
    border: 1px solid var(--app-border, rgba(67, 53, 39, 0.12)) !important;
    border-radius: var(--app-radius, 20px) !important;
    background: var(--app-glass, rgba(255, 253, 248, 0.92)) !important;
    color: var(--text, #1f2020) !important;
    box-shadow: var(--app-shadow, 0 24px 60px rgba(67, 44, 24, 0.14)) !important;
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    backdrop-filter: blur(16px) saturate(130%);
}

html body.app-page.page-operations .section :is(h2, h3),
html body.app-page.page-operations :is(.status-card, .system-card, .focus-card, .chart-panel, .health-card) h3 {
    color: var(--text, #1f2020) !important;
}

html body.app-page.page-operations .section p,
html body.app-page.page-operations :is(.status-card, .system-card, .focus-card, .chart-panel, .health-card) p,
html body.app-page.page-operations :is(.chart-label, .chart-value) {
    color: var(--muted, #645a50) !important;
}

html body.app-page.page-operations :is(.status-card, .system-card, .focus-card, .chart-panel, .health-card) {
    border: 1px solid var(--app-border, rgba(67, 53, 39, 0.12)) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.72) !important;
    color: var(--text, #1f2020) !important;
    box-shadow: 0 16px 32px rgba(91, 63, 34, 0.08) !important;
    -webkit-backdrop-filter: blur(12px) saturate(125%);
    backdrop-filter: blur(12px) saturate(125%);
}

html body.app-page.page-operations :is(.status-card, .system-card, .focus-card, .health-card)::before {
    background: var(--app-primary, #0f6151) !important;
}

html body.app-page.page-operations :is(.status-card, .system-card, .focus-card, .health-card) strong {
    color: var(--app-primary, #0f6151) !important;
}

html body.app-page.page-operations :is(.section-pill, .mini-tag) {
    border: 1px solid color-mix(in srgb, var(--app-primary, #0f6151) 20%, transparent) !important;
    border-radius: 999px !important;
    background: color-mix(in srgb, var(--app-primary, #0f6151) 10%, transparent) !important;
    color: var(--app-primary, #0f6151) !important;
}

html body.app-page.page-operations :is(.hero-link, .focus-link) {
    border-radius: 999px !important;
    background: linear-gradient(
        135deg,
        var(--app-primary, #0f6151),
        color-mix(in srgb, var(--app-primary, #0f6151) 70%, #111 30%)
    ) !important;
    color: #fffefb !important;
    box-shadow: none !important;
}

html body.app-page.page-operations .chart-track {
    background: color-mix(in srgb, var(--app-primary, #0f6151) 9%, transparent) !important;
}

html body.app-page.page-operations .chart-fill {
    background: linear-gradient(90deg, var(--app-primary, #0f6151), var(--accent, #d68b3d)) !important;
}

@media (max-width: 767px) {
    html body.app-page.page-operations .ops-shell {
        width: min(100% - 12px, 1180px) !important;
        padding: 10px 0 72px !important;
    }

    html body.app-page.page-operations :is(.system-grid, .focus-grid, .health-grid) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    html body.app-page.page-operations .chart-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    html body.app-page.page-operations .section {
        padding: 18px !important;
        border-radius: 16px !important;
    }

    html body.app-page.page-operations .section-head {
        align-items: flex-start;
    }
}
