@media screen {
    :root {
        color-scheme: only light;
        --light-canvas: #f1f6f2;
        --light-paper: #ffffff;
        --light-wash: #e9f3ee;
        --light-field: #f8fbf9;
        --light-ink: #183b3c;
        --light-muted: #48645f;
        --light-edge: #d3e3db;
        --light-edge-strong: #92b1a6;
        --light-accent: #10656c;
        --light-accent-hover: #10454a;
        --light-focus: #8b621a;
        --light-gold-ink: #694914;
        --light-gold-bg: #f5ead1;
        --light-hero: radial-gradient(ellipse at 90% 7%, #d9ede4, transparent 58%), radial-gradient(ellipse at 0 100%, #f4ead7, transparent 56%), #fdfefc;
        --light-panel: linear-gradient(155deg, #fffffffa, #f8fcf9f0);
        --light-float: #ffffffed;
        --light-shadow: 0 2px 5px #17483f08, 0 13px 32px #17483f0e;
        --light-shadow-float: 0 2px 7px #17483f08, 0 14px 37px #17483f16;

        --surface: var(--light-canvas);
        --sidebar-bg: var(--light-paper);
        --panel: var(--light-paper);
        --raised: var(--light-wash);
        --field-bg: var(--light-field);
        --line: var(--light-edge);
        --line-strong: var(--light-edge-strong);
        --ink: var(--light-ink);
        --soft: #30584f;
        --muted: var(--light-muted);
        --teal: var(--light-accent);
        --deep: var(--light-accent-hover);
        --gold: var(--light-focus);
        --mint-bg: var(--light-wash);
        --gold-bg: var(--light-gold-bg);
        --blue-bg: #e7f0fa;
        --green-bg: #e1f1e8;
        --red-bg: #f9ebe8;
        --negative: #863c35;
        --metric-mint: #176459;
        --metric-gold: #78551d;
        --metric-blue: #315b83;
        --metric-green: #29624b;
        --metric-red: #863c35;
        --metric-track: #dce9e3;
    }

    body {
        background: radial-gradient(ellipse at 94% 2%, #e1eee6, transparent 55%), radial-gradient(ellipse at 0 30%, #f5eddf, transparent 57%), var(--surface);
        color: var(--ink);
    }

    .portal-admin-shell .main-shell,
    .edura-staff-shell .main-shell,
    .app-shell .main-shell:has(.calendar-panel),
    .portal-staff-shell .main-shell {
        color-scheme: only light;
        --surface: var(--light-canvas);
        --panel: var(--light-paper);
        --raised: var(--light-wash);
        --field-bg: var(--light-field);
        --ink: var(--light-ink);
        --soft: #30584f;
        --muted: var(--light-muted);
        --teal: var(--light-accent);
        --deep: var(--light-accent-hover);
        --gold: var(--light-focus);
        --line: var(--light-edge);
        --line-strong: var(--light-edge-strong);
        color: var(--ink);
        background: transparent;
    }

    .app-shell > .main-shell { padding-block-start: 13px; }
    .app-shell .topbar,
    .portal-staff-shell .main-shell .topbar,
    .app-shell .main-shell:has(.calendar-panel) .topbar {
        top: 12px;
        height: auto;
        min-height: 61px;
        margin-inline: clamp(14px, 3vw, 40px);
        padding: 8px clamp(12px, 1.8vw, 24px);
        background: var(--light-float);
        border: 1px solid var(--light-edge);
        border-radius: 18px;
        box-shadow: var(--light-shadow-float);
        backdrop-filter: blur(8px);
    }
    .app-shell .topbar .breadcrumb strong { color: var(--light-ink); }
    .app-shell .topbar .role-label { color: var(--light-accent-hover); background: var(--light-wash); }
    .app-shell .topbar .quick-nav,
    .portal-staff-shell .topbar .quick-nav {
        background: var(--light-field);
        border-color: var(--light-edge);
        border-radius: 11px;
        color: var(--light-ink);
    }
    .app-shell .topbar .quick-nav:hover { border-color: var(--light-edge-strong); background: var(--light-wash); }

    .app-shell > .sidebar {
        color-scheme: only light;
        --ink: var(--light-ink);
        --muted: var(--light-muted);
        --raised: var(--light-wash);
        --line: var(--light-edge);
        --line-strong: var(--light-edge-strong);
        --teal: var(--light-accent);
        color: var(--ink);
        background: linear-gradient(180deg, #fffffffa, #f5faf7fa);
        border: 1px solid var(--line);
        border-radius: 22px;
        box-shadow: var(--light-shadow-float);
    }
    .app-shell .sidebar .nav-item { color: #30544e; }
    .app-shell .sidebar .nav-item .icon { color: var(--light-accent); }
    .app-shell .sidebar .nav-item:hover,
    .app-shell .sidebar .account-chip:hover { color: var(--light-ink); background: var(--light-wash); }
    .app-shell .sidebar .nav-item.active {
        color: var(--light-accent-hover);
        background: #e1f1e9;
        border-color: #b9d5c7;
    }
    .app-shell .sidebar .nav-item.active::after { background: #b58d45; }
    .app-shell .sidebar .account-chip .avatar { color: var(--light-gold-ink); background: #f4ead4; }
    .app-shell .sidebar .sidebar-bottom { border-color: var(--light-edge); }

    @media (min-width: 761px) {
        .app-shell > .sidebar {
            inset-block: 13px;
            inset-inline-start: 13px;
            width: calc(var(--sidebar) - 15px);
        }
    }

    .navigation-dialog {
        background: var(--light-panel);
        color: var(--light-ink);
        border-color: var(--light-edge-strong);
        border-radius: 23px;
        box-shadow: var(--light-shadow-float);
    }
    .navigation-dialog::backdrop { background: #27474151; }
    .navigation-dialog .navigation-search { background: var(--light-field); border-color: var(--light-edge-strong); }

    .edura-login-header,
    .ec-public-nav {
        color: var(--light-ink);
        background: var(--light-paper);
        border-block-end: 1px solid var(--light-edge);
        box-shadow: none;
    }
    .edura-login-brand { color: var(--light-ink); }
    .edura-login-brand small { color: var(--light-muted); }
    .edura-pin-login .pin-brand {
        background: radial-gradient(ellipse at 18% 84%, #dceee4, transparent 60%), linear-gradient(150deg, #f9fcf8, #e7f3ed);
        color: var(--light-ink);
        border-inline-end: 1px solid var(--light-edge);
    }
    .edura-pin-login .pin-brand::before {
        background-image: linear-gradient(#10656c16 1px, transparent 1px), linear-gradient(90deg, #10656c16 1px, transparent 1px);
    }
    .edura-pin-login .pin-brand::after,
    .portal-dashboard .portal-hero::after {
        border-color: #ad86413e;
        box-shadow: 0 0 0 32px #ad864118, 0 0 0 75px #ad86410c, 0 0 0 118px #ad864106;
    }
    .edura-pin-login .pin-brand img {
        border: 1px solid var(--light-edge);
        box-shadow: var(--light-shadow);
    }
    .edura-pin-login .pin-stage {
        background: radial-gradient(ellipse at 78% 16%, #f8f4e8, transparent 66%), #f8fbf9;
    }
    .edura-pin-login .pin-card-new {
        background: var(--light-panel);
        border: 1px solid var(--light-edge);
        box-shadow: var(--light-shadow);
    }
    .edura-pin-login .edura-login-intro p { color: var(--light-muted); }
    .enterprise-login-tabs,
    .enterprise-preview-entry .btn {
        color: var(--light-accent-hover);
        background: var(--light-wash);
        border-color: var(--light-edge);
    }
    .enterprise-preview-entry .btn:hover { background: #deeee5; border-color: var(--light-edge-strong); }
    .signin-page { background: var(--light-hero); }
    .signin-panel { background: var(--light-paper); border-color: var(--light-edge); box-shadow: var(--light-shadow); }

    .enterprise-desk-hero,
    .portal-dashboard .portal-hero,
    .portal-admin .portal-hero,
    .dashboard-welcome,
    .student-hero,
    .crm-hero,
    .ec-hero,
    .ec-directory-hero,
    .ec-explorer-hero {
        background: var(--light-hero);
        color: var(--light-ink);
        border: 1px solid var(--light-edge);
        box-shadow: var(--light-shadow-float);
    }
    .enterprise-desk-intro h1,
    .portal-dashboard .portal-hero h1,
    .ec-hero h1 {
        color: var(--light-ink);
        letter-spacing: normal;
    }
    .enterprise-desk-role,
    .portal-dashboard .portal-hero > div > small,
    .edura-login-intro > small,
    .student-hero p {
        color: var(--light-gold-ink);
    }
    .enterprise-desk-intro > p,
    .portal-dashboard .portal-hero p,
    .dashboard-welcome time,
    .student-hero bdi,
    .crm-hero p,
    .crm-detail-label,
    .ec-hero p { color: var(--light-muted); }
    .enterprise-desk-hero::before {
        border-color: #ae843e36;
        box-shadow: 0 0 0 31px #ae843e18, 0 0 0 70px #ae843e0e, 0 0 0 112px #ae843e08;
    }
    .enterprise-desk-actions .portal-light,
    .portal-dashboard .portal-hero .portal-light {
        background: var(--light-gold-bg);
        color: var(--light-gold-ink);
        border-color: #d8bd83;
    }
    .enterprise-desk-actions .portal-light:hover,
    .portal-dashboard .portal-hero .portal-light:hover { background: #efdfbe; }
    .enterprise-desk-actions .enterprise-ghost,
    .dashboard-welcome .secondary,
    .student-hero .btn.secondary {
        color: var(--light-accent-hover);
        background: var(--light-paper);
        border-color: var(--light-edge-strong);
    }
    .enterprise-desk-actions .enterprise-ghost:hover,
    .dashboard-welcome .secondary:hover,
    .student-hero .btn.secondary:hover { background: var(--light-wash); }
    .enterprise-desk-find {
        background: var(--light-float);
        border-color: var(--light-edge);
        box-shadow: 0 7px 19px #17483f0a;
    }
    .enterprise-desk-find label,
    .portal-admin .enterprise-desk-main > header h2 { color: var(--light-ink); }
    .enterprise-desk-find input {
        background: var(--light-field);
        color: var(--light-ink);
        border: 1px solid var(--light-edge-strong);
    }
    .enterprise-desk-find input::placeholder { color: var(--light-muted); }
    .enterprise-desk-find .btn.primary { background: var(--light-accent); color: #fff; border-color: var(--light-accent); }

    .enterprise-desk,
    .portal-admin .enterprise-desk-panel,
    .portal-admin .enterprise-desk-module,
    .portal-admin .enterprise-desk-metrics > a {
        --desk-ink: var(--light-ink);
        --desk-muted: var(--light-muted);
        --desk-edge: var(--light-edge);
        --desk-surface: var(--light-panel);
        --desk-accent: var(--light-accent);
        --desk-icon-bg: var(--light-wash);
    }
    .portal-admin .portal-tile,
    .portal-dashboard .portal-tile {
        background: linear-gradient(145deg, #fff, #f8fbf9);
        color: var(--light-ink);
        border-color: var(--light-edge);
    }
    :is(.enterprise-desk-metrics > a, .portal-metrics > a):hover {
        background: var(--light-field);
        border-color: var(--light-edge-strong);
    }
    .enterprise-desk-module:nth-child(3n + 2) .enterprise-desk-icon,
    .enterprise-desk-metrics > a:nth-child(even) .enterprise-desk-icon {
        color: var(--light-gold-ink);
        background: var(--light-gold-bg);
    }
    .enterprise-desk-module,
    .enterprise-desk-panel,
    .enterprise-desk-metrics > a,
    .crm-card,
    .crm-filters,
    .student-workspace-card {
        border-radius: 19px;
        box-shadow: var(--light-shadow);
    }

    .crm-workbench,
    .portal-admin-shell .crm-workbench {
        --crm-paper: var(--light-paper);
        --crm-ink: var(--light-ink);
        --crm-muted: var(--light-muted);
        --crm-line: var(--light-edge);
        --crm-accent: var(--light-accent);
        --crm-tint: var(--light-wash);
    }
    .crm-hero .btn:not(.whatsapp) {
        color: var(--light-accent-hover);
        background: var(--light-paper);
        border-color: var(--light-edge-strong);
    }
    .crm-hero .btn.primary:not(.whatsapp) {
        color: var(--light-gold-ink);
        background: var(--light-gold-bg);
        border-color: #d8bd83;
    }

    .ec-wrap,
    .ec-public,
    .portal-admin-shell .ec-wrap {
        --ec-paper: var(--light-paper);
        --ec-ink: var(--light-ink);
        --ec-muted: var(--light-muted);
        --ec-accent: var(--light-accent);
        --ec-line: var(--light-edge);
        --ec-wash: var(--light-wash);
        --ec-focus: var(--light-focus);
    }
    .ec-hero-actions a {
        color: var(--light-accent-hover);
        background: var(--light-paper);
        border-color: var(--light-edge-strong);
    }
    .ec-hero-actions a:first-child {
        color: var(--light-gold-ink);
        background: var(--light-gold-bg);
        border-color: #d8bd83;
    }
    .ec-hero-actions a:hover { border-color: var(--light-accent); }
    .ec-hero-visual::after { display: none; }
    .ec-hero-visual {
        margin: 11px;
        border: 1px solid #ffffffb8;
        border-radius: clamp(13px, 1.6vw, 21px);
        box-shadow: var(--light-shadow);
    }
    .ec-hero-visual small {
        padding: .32rem .55rem;
        background: #fff;
        color: var(--light-ink);
        border-radius: 7px;
    }
    .ec-campus-hero {
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        align-items: stretch;
    }
    .ec-campus-hero::after { display: none; }
    .ec-campus-hero .ec-campus-cover {
        position: static;
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        min-height: 0;
        width: calc(100% - 22px);
        height: calc(100% - 22px);
        margin: 11px;
        border: 1px solid #ffffffb8;
        border-radius: clamp(13px, 1.6vw, 21px);
        box-shadow: var(--light-shadow);
    }
    .ec-campus-hero .ec-hero-copy {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
        min-width: 0;
    }
    .ec-program,
    .ec-university-card,
    .ec-campus-program,
    .ec-filter,
    .ec-program-search { box-shadow: var(--light-shadow); }
    .ec-campus-photo { margin: 7px 7px 0; border-radius: 13px 13px 4px 4px; }
    .ec-campus-location { background: var(--light-panel); box-shadow: var(--light-shadow); }
    .ec-gallery-grid a { box-shadow: var(--light-shadow); border: 1px solid var(--light-edge); }

    .app-shell .field :is(input:not([type="checkbox"], [type="radio"], [type="file"]), select, textarea),
    .app-shell .search-form input,
    .app-shell .calendar-day-picker select,
    .ec-field :is(input, select) {
        min-height: 44px;
        background: var(--light-field);
        border: 1px solid var(--light-edge-strong);
        border-radius: 11px;
        color: var(--light-ink);
    }
    .app-shell .field :is(input, select, textarea):hover,
    .ec-field :is(input, select):hover { border-color: var(--light-accent); }
    :is(.app-shell, .ec-public) input:is([type="checkbox"], [type="radio"]) { accent-color: var(--light-accent); }

    .calendar-panel .calendar-toolbar > [role="navigation"] {
        padding: 4px;
        border: 1px solid var(--light-edge);
        background: var(--light-wash);
        border-radius: 12px;
    }
    .app-shell .calendar-toolbar .btn[aria-current="page"] {
        background: var(--light-paper);
        color: var(--light-accent-hover);
        border-color: var(--light-edge-strong);
        box-shadow: 0 2px 5px #17483f12;
    }

    .btn.primary,
    .app-shell .btn.primary,
    .signin-page .btn.primary {
        color: #fff;
        background: var(--light-accent);
        border-color: var(--light-accent);
    }
    .btn.primary:hover,
    .app-shell .btn.primary:hover,
    .signin-page .btn.primary:hover,
    .enterprise-desk-find .btn.primary:hover {
        color: #fff;
        background: var(--light-accent-hover);
        border-color: var(--light-accent-hover);
    }
    .app-shell .btn.secondary,
    .signin-page .btn.secondary { background: var(--light-paper); color: var(--ink); }
    .btn.secondary:hover,
    .app-shell .btn.secondary:hover,
    .signin-page .btn.secondary:hover { background: var(--light-wash); border-color: var(--light-edge-strong); }
    .app-shell .btn.text:hover { color: var(--light-accent-hover); }
    .alert,
    .app-shell .alert { color: #27543f; background: #e5f2e9; border-color: #b9d5c5; }
    .alert.error,
    .app-shell .alert.error { color: #743934; background: #fbeeea; border-color: #e6c5bc; }
    .app-shell .table-wrap tbody tr:hover { background: #eff8f2; }
    .app-shell .panel,
    .simple-card { box-shadow: var(--light-shadow); }
    .app-shell .calendar-slot.available {
        color: #235450;
        border-color: #afcbbd;
        background: #eef8f0;
    }
    .app-shell .calendar-slot.owned { color: #16443c; background: #e3f1ea; border-color: #9bbfb0; }
    .app-shell .calendar-slot.reserved { color: #48625e; background: #edf3f0; border-color: #c6d7cf; }
    .app-shell .calendar-slot.blocked { color: #6b4c16; background: #f8efd9; border-color: #d8c397; }
    .app-shell .calendar-slot.past {
        color: var(--light-muted);
        background: repeating-linear-gradient(-45deg, #edf3ef, #edf3ef 8px, #f7faf8 8px, #f7faf8 16px);
    }
    .appointment-export { background: var(--light-canvas); }

    @media (max-width: 760px) {
        .app-shell > .main-shell { padding-block-start: 8px; }
        .app-shell .topbar,
        .portal-staff-shell .main-shell .topbar,
        .app-shell .main-shell:has(.calendar-panel) .topbar {
            top: 8px;
            min-height: 54px;
            margin-inline: 10px;
            padding: 4px 10px;
            border-radius: 14px;
        }
        .app-shell[data-mobile-ready] .mobile-dock {
            inset: auto 9px max(8px, env(safe-area-inset-bottom));
            padding: 4px;
            background: var(--light-float);
            color: var(--light-ink);
            border: 1px solid var(--light-edge);
            border-radius: 17px;
            box-shadow: var(--light-shadow-float);
            backdrop-filter: blur(8px);
        }
        .app-shell .mobile-dock :is(a, button) { color: var(--light-muted); }
        .app-shell .mobile-dock :is(a:hover, button:hover, [aria-current="page"]) {
            color: var(--light-accent-hover);
            background: var(--light-wash);
        }
        .app-shell[data-mobile-ready] > .sidebar {
            inset-block: 9px max(9px, env(safe-area-inset-bottom));
            inset-inline-start: 9px;
            height: auto;
        }
        .menu-open [data-mobile-ready] .sidebar { box-shadow: -18px 0 42px #19403938; }
        .menu-open .nav-backdrop { background: #27474151; }
    }
    @media (max-width: 700px) {
        .edura-pin-login .pin-brand { border-inline-end: 0; border-block-end: 1px solid var(--light-edge); }
    }
    @media (max-width: 570px) {
        .ec-campus-hero {
            grid-template-columns: minmax(0, 1fr);
            min-height: 0;
        }
        .ec-campus-hero .ec-campus-cover {
            grid-column: 1;
            grid-row: 1;
            min-height: 0;
            height: clamp(150px, 47vw, 218px);
        }
        .ec-campus-hero .ec-hero-copy { grid-row: 2; }
    }
}
