@font-face {
    font-family: Inter;
    src: url('/fonts/InterVariable.woff2') format('woff2');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --ci-ink: #071412;
    --ci-panel: #0c201d;
    --ci-panel-soft: #12302a;
    --ci-line: rgba(218, 239, 221, 0.16);
    --ci-text: #f5f8ef;
    --ci-muted: #a9bcb3;
    --ci-accent: #b8f071;
    --ci-gold: #e9c46a;
}

html, body {
    margin: 0;
    min-height: 100%;
    background: var(--ci-ink);
    color: var(--ci-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background:
        radial-gradient(circle at 82% 8%, rgba(71, 151, 115, 0.26), transparent 28rem),
        linear-gradient(150deg, #071412 0%, #091a17 58%, #06100f 100%);
}

.ci-shell {
    min-height: 100vh;
}

.ci-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 32px;
}

.ci-brand {
    display: flex;
    gap: 14px;
    align-items: center;
    color: var(--ci-text);
    text-decoration: none;
}

.ci-brand-mark {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex: none;
}

.ci-brand strong,
.ci-brand small {
    display: block;
}

.ci-brand strong {
    font-size: 0.98rem;
    letter-spacing: 0.02em;
}

.ci-brand small {
    margin-top: 3px;
    color: var(--ci-muted);
    font-size: 0.74rem;
}

.ci-environment,
.ci-updated {
    color: var(--ci-muted);
    font-size: 0.78rem;
}

.ci-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.7fr);
    gap: 80px;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    padding: 96px 32px 112px;
}

.ci-kicker,
.ci-status-eyebrow {
    color: var(--ci-accent);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.ci-hero h1 {
    max-width: 760px;
    margin: 18px 0 24px;
    color: var(--ci-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.6rem, 7vw, 6.6rem);
    font-weight: 500;
    letter-spacing: -0.065em;
    line-height: 0.91;
}

.ci-hero > div > p {
    max-width: 620px;
    margin: 0 0 34px;
    color: var(--ci-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.ci-hero .k-button-solid-primary {
    --kendo-color-primary: var(--ci-accent);
    --kendo-color-on-primary: #102217;
    border-radius: 999px;
    font-weight: 750;
}

.ci-action-confirmation {
    display: block;
    margin-top: 16px;
    color: var(--ci-accent);
    font-size: 0.82rem;
}

.ci-status-card,
.ci-grid-card,
.ci-capabilities article {
    border: 1px solid var(--ci-line);
    background: rgba(12, 32, 29, 0.82);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(16px);
}

.ci-status-card {
    padding: 34px;
    border-radius: 24px;
}

.ci-status-card > strong {
    display: block;
    margin: 9px 0 28px;
    color: var(--ci-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.85rem;
    font-weight: 500;
}

.ci-status-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
    border-top: 1px solid var(--ci-line);
    color: #dbe7df;
    font-size: 0.86rem;
}

.ci-status-row small {
    display: block;
    margin-top: 2px;
    color: var(--ci-muted);
}

.ci-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ca786b;
    box-shadow: 0 0 0 5px rgba(202, 120, 107, 0.1);
}

.ci-status-dot.is-healthy {
    background: var(--ci-accent);
    box-shadow: 0 0 0 5px rgba(184, 240, 113, 0.1);
}

.ci-content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px 100px;
}

.ci-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 22px;
}

.ci-section-heading h2 {
    margin: 8px 0 0;
    color: var(--ci-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    letter-spacing: -0.035em;
}

.ci-grid-card {
    overflow: hidden;
    padding: 8px;
    border-radius: 20px;
}

.ci-grid-card .k-grid {
    border: 0;
    border-radius: 14px;
}

.ci-capabilities {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 18px;
}

.ci-capabilities article {
    padding: 28px;
    border-radius: 18px;
}

.ci-capabilities article > span {
    color: var(--ci-gold);
    font-size: 0.75rem;
    font-weight: 800;
}

.ci-capabilities h3 {
    margin: 18px 0 10px;
    color: var(--ci-text);
    font-size: 1.05rem;
}

.ci-capabilities p {
    margin: 0;
    color: var(--ci-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

@media (max-width: 840px) {
    .ci-hero {
        grid-template-columns: 1fr;
        gap: 46px;
        padding-top: 60px;
    }

    .ci-capabilities {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .ci-header,
    .ci-hero,
    .ci-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .ci-environment,
    .ci-updated {
        display: none;
    }

    .ci-hero {
        padding-top: 42px;
    }

    .ci-hero h1 {
        font-size: 3.7rem;
    }
}

h1:focus {
    outline: none;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* Authenticated application shell */
.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 246px minmax(0, 1fr);
    background: #f3f6f8;
    color: #14211e;
    font-size: .875rem;
    line-height: 1.5;
}

.app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px 15px;
    background: #081421;
    border-right: 1px solid #1f3a4c;
}

.app-brand {
    padding: 0 5px 22px;
}

.app-brand .ci-brand-mark { width: 38px; height: 38px; }
.app-brand strong { font-size: .86rem; }
.app-brand small { font-size: .68rem; }

.app-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.app-nav-heading {
    margin: 18px 10px 6px;
    color: #a8bfca;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .17em;
}

.app-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 10px;
    border-radius: 5px;
    color: #d0e1e9;
    text-decoration: none;
    font-size: .82rem;
    transition: .15s ease;
}

.app-nav a:hover,
.app-nav a.active {
    color: #f7fcff;
    background: #16384a;
}

.app-nav a.active {
    box-shadow: inset 3px 0 #49d4d1;
}

.sidebar-security {
    display: flex;
    gap: 11px;
    align-items: center;
    margin-top: auto;
    padding: 11px;
    border: 1px solid var(--ci-line);
    border-radius: 12px;
    color: #c6d9e2;
}

.sidebar-security strong,
.sidebar-security small {
    display: block;
}

.sidebar-security strong {
    color: #f4fafc;
    font-size: .78rem;
}

.sidebar-security small {
    margin-top: 2px;
    font-size: .68rem;
}

.app-main {
    min-width: 0;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 0 28px;
    background: #0a1928;
    color: #f3f8fb;
    border-bottom: 1px solid #264253;
    backdrop-filter: blur(16px);
}

.app-topbar > div:first-child strong {
    display: block;
    margin-top: 3px;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 1.02rem;
}

.app-user {
    display: flex;
    align-items: center;
    gap: 11px;
}

.app-user > span strong,
.app-user > span small {
    display: block;
}

.app-user > span strong {
    font-size: .82rem;
}

.app-user > span small {
    margin-top: 2px;
    color: #b8ced8;
    font-size: .7rem;
}

.app-user form {
    margin: 0 0 0 8px;
}

.user-avatar {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: #174655;
    color: #8bf0eb;
    font-size: .74rem;
    font-weight: 800;
}

.app-content {
    min-height: calc(100vh - 63px);
}

.app-shell .k-button { font-size: .82rem; }
.app-shell .k-grid { font-size: .84rem; }
.app-shell .k-grid th,
.app-shell .k-grid td { padding-block: .62rem; }
.projects-page .k-grid td:last-child { white-space: nowrap; }
.projects-page .k-grid td:last-child .k-button { padding-inline: .3rem; }

.app-topbar .ci-kicker { color: #49d4d1; }
.app-topbar .k-button { color: #e7f5f8; }
.app-topbar .k-button:hover { color: #fff; background: #1b3b4d; }

.dashboard-page {
    color: var(--ci-text);
    background:
        radial-gradient(circle at 82% 8%, rgba(71, 151, 115, .26), transparent 28rem),
        linear-gradient(150deg, #071412 0%, #091a17 58%, #06100f 100%);
}

.dashboard-page .ci-hero {
    padding-top: 76px;
}

/* Login and registration */
.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 1.05fr) minmax(480px, .95fr);
    background: #f2f5f2;
}

.auth-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 52px clamp(42px, 7vw, 110px);
    color: var(--ci-text);
    background:
        linear-gradient(150deg, rgba(7, 20, 18, .4), rgba(7, 20, 18, .9)),
        radial-gradient(circle at 75% 22%, rgba(108, 190, 143, .35), transparent 24rem),
        #071412;
}

.auth-brand {
    align-self: flex-start;
}

.auth-promise {
    max-width: 640px;
}

.auth-promise h1 {
    margin: 18px 0 25px;
    color: #f5f8ef;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.4rem, 6vw, 6.2rem);
    font-weight: 500;
    letter-spacing: -.06em;
    line-height: .93;
}

.auth-promise p {
    max-width: 510px;
    color: #aec0b8;
    font-size: 1.05rem;
    line-height: 1.65;
}

.auth-security {
    max-width: 500px;
    color: #82988e;
    line-height: 1.5;
}

.auth-form-panel {
    display: grid;
    place-items: center;
    padding: 42px;
}

.auth-card {
    width: min(100%, 440px);
    padding: 46px;
    border: 1px solid #dde6df;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 30px 70px rgba(17, 47, 38, .1);
    color: #14211e;
}

.auth-card h1,
.auth-card h2 {
    margin: 10px 0 9px;
    color: #10251f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.35rem;
    font-weight: 500;
}

.ci-muted {
    color: #64766f;
}

.auth-card > p {
    margin: 0 0 27px;
    line-height: 1.55;
}

.sso-button {
    margin-top: 2px;
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 6px;
    background: #34445b;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.sso-button:hover {
    background: #26364d;
    color: #fff;
}

.sso-button:focus-visible {
    outline: 3px solid #93d6c4;
    outline-offset: 3px;
}

.microsoft-logo {
    width: 21px;
    height: 21px;
    flex: none;
}

.auth-submit {
    width: 100%;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 24px 0;
    color: #7b8984;
    font-size: .72rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #dde4e0;
}

.auth-form,
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-form label,
.admin-form label {
    margin-top: 6px;
    color: #2c3f38;
    font-size: .78rem;
    font-weight: 750;
}

.auth-form .k-input {
    width: 100%;
}

.auth-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 24px;
    color: #6b7d76;
    font-size: .76rem;
}

.auth-links a,
.auth-back {
    color: #286a57;
    font-weight: 700;
    text-decoration: none;
}

.auth-alert,
.success-alert {
    margin: 15px 0;
    padding: 12px 14px;
    border: 1px solid #e9b3ad;
    border-radius: 9px;
    background: #fff0ee;
    color: #873a32;
    font-size: .82rem;
    line-height: 1.45;
}

.success-alert {
    border-color: #add9bd;
    background: #ecf9f0;
    color: #24643a;
}

.auth-page-compact {
    display: block;
}

.auth-page-compact .auth-form-panel {
    min-height: 100vh;
    box-sizing: border-box;
}

.auth-back {
    display: block;
    margin-bottom: 28px;
}

/* Administration and profile */
.admin-page {
    padding: 30px 38px 64px;
    color: #14211e;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    max-width: 1500px;
    margin: 0 auto 19px;
}

.page-heading h1 {
    margin: 5px 0 5px;
    color: #10251f;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 2rem;
    font-weight: 550;
    letter-spacing: -.045em;
}

.page-heading p {
    margin: 0;
    color: #64766f;
}

.admin-card {
    max-width: 1500px;
    margin: 0 auto;
    padding: 16px;
    border: 1px solid #dce4df;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 15px 45px rgba(23, 61, 52, .06);
}

.admin-card .k-grid {
    border: 0;
}

.admin-form {
    padding: 4px;
}

.admin-checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 8px 0;
}

.admin-checks label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.window-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .65fr);
    gap: 22px;
    max-width: 1000px;
    margin: 0 auto;
}

.profile-grid .admin-card {
    width: 100%;
    box-sizing: border-box;
}

.profile-facts h2 {
    margin: 2px 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
}

.profile-facts dl,
.profile-facts dl div {
    margin: 0;
}

.profile-facts dl div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-top: 1px solid #e4e9e6;
}

.profile-facts dt {
    color: #64766f;
}

.profile-facts dd {
    margin: 0;
    text-align: right;
    font-weight: 700;
}

@media (max-width: 980px) {
    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        min-height: 360px;
    }

    .auth-security {
        display: none;
    }

    .app-shell {
        display: block;
    }

    .app-sidebar {
        position: static;
        width: auto;
        height: auto;
        flex-direction: row;
        align-items: center;
        gap: 18px;
        overflow-x: auto;
        padding: 10px 18px;
    }

    .sidebar-security,
    .app-nav-heading {
        display: none;
    }

    .app-brand { flex: 0 0 auto; padding: 0; }
    .app-nav { flex-direction: row; flex: 0 0 auto; white-space: nowrap; }
    .app-nav a {
        justify-content: center;
        padding: 10px;
    }
}

@media (max-width: 680px) {
    .app-shell {
        display: block;
    }

    .app-sidebar {
        position: static;
        width: auto;
        height: auto;
        flex-direction: row;
        align-items: center;
        padding: 10px 14px;
    }

    .app-brand {
        margin-right: auto;
        padding: 0;
    }

    .app-nav {
        flex-direction: row;
    }

    .sidebar-security,
    .app-user > span:not(.user-avatar) {
        display: none;
    }

    .app-topbar,
    .admin-page {
        padding-inline: 18px;
    }

    .page-heading,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-form-panel {
        padding: 20px;
    }

    .auth-card {
        box-sizing: border-box;
        padding: 30px 24px;
    }
}

/* The saved choice applies to the shell, pages, and Telerik controls. */
html[data-theme="dark"] {
    color-scheme: dark;
    --kendo-color-app-surface: #0b1d2b;
    --kendo-color-surface: #102434;
    --kendo-color-surface-alt: #172d3c;
    --kendo-color-base: #183346;
    --kendo-color-on-app-surface: #eff7fa;
    --kendo-color-on-base: #eff7fa;
    --kendo-color-base-on-surface: #eff7fa;
    --kendo-color-subtle: #bfd1db;
    --kendo-color-border: #456173;
    --kendo-color-border-alt: #587587;
    --kendo-color-primary: #246c75;
    --kendo-color-primary-hover: #1d5961;
    --kendo-color-primary-active: #174c53;
    --kendo-color-on-primary: #fff;
}

html[data-theme="light"] {
    color-scheme: light;
    --ci-ink: #edf4f4;
    --ci-panel: #fff;
    --ci-panel-soft: #e8f3f1;
    --ci-line: #cfdddf;
    --ci-text: #132b35;
    --ci-muted: #405d67;
    --ci-accent: #086e70;
    --ci-gold: #875c12;
}

html[data-theme="light"] body {
    background: #edf4f4;
}

html[data-theme="light"] .auth-brand-panel .ci-brand,
html[data-theme="light"] .auth-brand-panel .ci-brand strong {
    color: #f5f8ef;
}

html[data-theme="light"] .auth-brand-panel .ci-brand small {
    color: #aec0b8;
}

html[data-theme="light"] .auth-brand-panel .ci-kicker {
    color: #b8f071;
}

html[data-theme="dark"] .app-shell {
    background: #071421;
    color: #eff7fa;
}

html[data-theme="light"] .app-shell {
    background: #edf4f4;
    color: #18323b;
}

html[data-theme="light"] .app-sidebar {
    background: #e3eeee;
    border-right-color: #c7d9db;
}

html[data-theme="light"] .app-sidebar .ci-brand,
html[data-theme="light"] .app-sidebar .ci-brand strong {
    color: #14323c;
}

html[data-theme="light"] .app-sidebar .ci-brand small,
html[data-theme="light"] .app-nav-heading {
    color: #496671;
}

html[data-theme="light"] .app-nav a {
    color: #24434d;
}

html[data-theme="light"] .app-nav a:hover,
html[data-theme="light"] .app-nav a.active {
    background: #c8e4e3;
    color: #113b42;
}

html[data-theme="light"] .sidebar-security {
    color: #375661;
    border-color: #b7cfd0;
}

html[data-theme="light"] .sidebar-security strong {
    color: #193943;
}

html[data-theme="light"] .app-topbar {
    background: #fff;
    color: #18323b;
    border-bottom-color: #cfdddf;
}

html[data-theme="light"] .app-topbar .ci-kicker {
    color: #086e70;
}

html[data-theme="light"] .app-topbar .k-button {
    color: #24434d;
}

html[data-theme="light"] .app-topbar .k-button:hover {
    color: #0c313b;
    background: #deeeee;
}

html[data-theme="light"] .app-user > span small {
    color: #506a74;
}

html[data-theme="light"] .user-avatar {
    background: #cde9e7;
    color: #07575b;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 7px;
    border: 1px solid #577487;
    border-radius: 8px;
    background: transparent;
    color: #f3f8fb;
    font: inherit;
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.theme-toggle:hover {
    background: #234354;
}

.theme-toggle:focus-visible {
    outline: 3px solid #72e6df;
    outline-offset: 2px;
}

.theme-icon {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.theme-icon-moon,
html[data-theme="light"] .theme-icon-sun {
    display: none;
}

html[data-theme="light"] .theme-icon-moon {
    display: inline;
}

html[data-theme="light"] .theme-toggle {
    border-color: #a5c0c5;
    color: #173842;
}

html[data-theme="light"] .theme-toggle:hover {
    background: #deeeee;
}

html[data-theme="dark"] .admin-page:not(.project-page):not(.projects-page),
html[data-theme="dark"] .auth-page {
    background: #071421;
    color: #eff7fa;
}

html[data-theme="dark"] .admin-page .page-heading h1,
html[data-theme="dark"] .profile-facts h2 {
    color: #f3f8fb;
}

html[data-theme="dark"] .admin-page .page-heading p,
html[data-theme="dark"] .profile-facts dt {
    color: #bfd1db;
}

html[data-theme="dark"] .admin-card,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .project-page .drop-zone {
    background: #102434;
    border-color: #395568;
    color: #eff7fa;
}

html[data-theme="dark"] .project-page .admin-card,
html[data-theme="dark"] .projects-page .admin-card,
html[data-theme="dark"] .project-page .admin-card h2,
html[data-theme="dark"] .project-page .admin-card p {
    color: #eff7fa;
}

html[data-theme="dark"] .auth-card h1,
html[data-theme="dark"] .auth-card h2,
html[data-theme="dark"] .auth-form label,
html[data-theme="dark"] .admin-form label,
html[data-theme="dark"] .library-title,
html[data-theme="dark"] .drop-zone h2 {
    color: #f3f8fb;
}

html[data-theme="dark"] .ci-muted,
html[data-theme="dark"] .auth-links,
html[data-theme="dark"] .auth-divider {
    color: #bfd1db;
}

html[data-theme="dark"] .auth-links a,
html[data-theme="dark"] .auth-back {
    color: #75dcd7;
}

html[data-theme="dark"] .profile-facts dl div,
html[data-theme="dark"] .upload-row {
    border-color: #395568;
}

html[data-theme="dark"] .auth-alert {
    background: #442b2d;
    border-color: #ac6567;
    color: #ffe3df;
}

html[data-theme="dark"] .success-alert {
    background: #163b32;
    border-color: #4f9e79;
    color: #d7f8e2;
}

html[data-theme="dark"] .project-page .area-nav .k-button-outline,
html[data-theme="dark"] .project-page .page-heading .k-button-flat,
html[data-theme="dark"] .project-page .review-card .k-button-outline {
    color: #e9f5f8;
    border-color: #83aebd;
}

html[data-theme="dark"] .project-page .area-nav .k-button-outline:hover,
html[data-theme="dark"] .project-page .page-heading .k-button-flat:hover,
html[data-theme="dark"] .project-page .review-card .k-button-outline:hover {
    background: #a8e4e2;
    border-color: #a8e4e2;
    color: #081b26;
}

html[data-theme="dark"] .projects-page .project-link {
    color: #83e5df;
}

html[data-theme="dark"] .projects-page .project-link:hover,
html[data-theme="dark"] .projects-page .project-link:focus-visible {
    color: #b6f7ed;
}

html[data-theme="dark"] .k-pager-numbers .k-selected {
    background: #99e4df;
    color: #082a32;
}

html[data-theme="light"] .workspace-home,
html[data-theme="light"] .projects-page,
html[data-theme="light"] .project-page {
    background: #edf4f4;
    color: #18323b;
}

html[data-theme="light"] .home-intro h1,
html[data-theme="light"] .home-section-heading h2,
html[data-theme="light"] .projects-page .page-heading h1,
html[data-theme="light"] .project-page .page-heading h1 {
    color: #102c36;
}

html[data-theme="light"] .home-eyebrow,
html[data-theme="light"] .home-card-label,
html[data-theme="light"] .home-step,
html[data-theme="light"] .projects-page .ci-kicker,
html[data-theme="light"] .project-page .ci-kicker,
html[data-theme="light"] .project-label {
    color: #086e70;
}

html[data-theme="light"] .home-intro h1 span {
    color: #08797b;
}

html[data-theme="light"] .home-intro p,
html[data-theme="light"] .home-count,
html[data-theme="light"] .home-project-card p,
html[data-theme="light"] .home-journey p,
html[data-theme="light"] .projects-page .page-heading p,
html[data-theme="light"] .project-page .page-heading p,
html[data-theme="light"] .coverage-line {
    color: #415e68;
}

html[data-theme="light"] .home-state,
html[data-theme="light"] .home-project-card,
html[data-theme="light"] .home-journey > div,
html[data-theme="light"] .project-banner,
html[data-theme="light"] .project-metric,
html[data-theme="light"] .review-card,
html[data-theme="light"] .project-facts div {
    border-color: #cfdddf;
    background: #fff;
    color: #18323b;
}

html[data-theme="light"] .home-state h3,
html[data-theme="light"] .home-project-card,
html[data-theme="light"] .home-project-card:hover,
html[data-theme="light"] .home-journey h3,
html[data-theme="light"] .project-banner h2,
html[data-theme="light"] .project-metric strong,
html[data-theme="light"] .review-card h2,
html[data-theme="light"] .report-path strong,
html[data-theme="light"] .project-facts dd {
    color: #102c36;
}

html[data-theme="light"] .home-state a {
    color: #086e70;
}

html[data-theme="light"] .home-project-facts span,
html[data-theme="light"] .project-banner p,
html[data-theme="light"] .project-metric span,
html[data-theme="light"] .project-metric small,
html[data-theme="light"] .review-card p,
html[data-theme="light"] .report-path small,
html[data-theme="light"] .project-facts dt {
    color: #405d67;
}

html[data-theme="light"] .home-project-facts span,
html[data-theme="light"] .report-path li {
    border-color: #cfdddf;
}

html[data-theme="light"] .review-card .k-button-outline,
html[data-theme="light"] .project-page .area-nav .k-button-outline {
    color: #174852;
    border-color: #527983;
}

html[data-theme="light"] .review-card .k-button-outline:hover,
html[data-theme="light"] .project-page .area-nav .k-button-outline:hover {
    background: #c8e9e8;
    border-color: #08797b;
    color: #10343d;
}

html[data-theme="light"] .project-page .page-heading .k-button-flat {
    color: #174852;
}

html[data-theme="light"] .project-page .page-heading .k-button-flat:hover {
    background: #d6e9e8;
}

html[data-theme="light"] .home-project-card:hover,
html[data-theme="light"] .home-project-card:focus-visible {
    border-color: #08797b;
}

html[data-theme="light"] .conversation-card,
html[data-theme="light"] .ask-card {
    background: #fff;
    border-color: #cfdddf;
    color: #18323b;
}

html[data-theme="light"] .conversation-heading h2,
html[data-theme="light"] .ask-card h2,
html[data-theme="light"] .ask-empty h3 {
    color: #102c36;
}

html[data-theme="light"] .conversation-card p,
html[data-theme="light"] .ask-card-heading p,
html[data-theme="light"] .ask-empty p,
html[data-theme="light"] .ask-form label,
html[data-theme="light"] .ask-form-footer small {
    color: #405d67;
}

html[data-theme="light"] .ask-status {
    background: #e8f3f1;
    border-color: #cfdddf;
    color: #24434d;
}

html[data-theme="light"] .ask-empty { border-color: #cfdddf; }
html[data-theme="light"] .ask-suggestions span { background: #f1f7f7; border-color: #bad1d3; color: #24434d; }
html[data-theme="light"] .ask-form select,
html[data-theme="light"] .ask-form textarea { background: #f9fcfc; border-color: #bad1d3; color: #24434d; }
html[data-theme="light"] .ask-form textarea::placeholder { color: #56717c; }

@media (max-width: 680px) {
    .app-topbar { flex-wrap: wrap; gap: 8px 12px; padding-block: 10px; }
    .app-topbar > div:first-child strong { font-size: 1rem; }
    .app-user { gap: 7px; }
    .theme-toggle { padding-inline: 9px; }
}
