:root {
    color-scheme: light;
    --md-sys-color-primary: #00639b;
    --md-sys-color-on-primary: #ffffff;
    --md-sys-color-primary-container: #cfe5ff;
    --md-sys-color-on-primary-container: #001d33;
    --md-sys-color-secondary-container: #d3e4f5;
    --md-sys-color-on-secondary-container: #101d2a;
    --md-sys-color-tertiary: #65558f;
    --md-sys-color-background: #f7f9ff;
    --md-sys-color-surface: #f7f9ff;
    --md-sys-color-surface-container-lowest: #ffffff;
    --md-sys-color-surface-container-low: #f1f3fa;
    --md-sys-color-surface-container: #ebedf4;
    --md-sys-color-surface-container-high: #e5e8ef;
    --md-sys-color-surface-container-highest: #dfe2e9;
    --md-sys-color-on-surface: #191c20;
    --md-sys-color-on-surface-variant: #41474e;
    --md-sys-color-outline: #72787f;
    --md-sys-color-outline-variant: #c2c7cf;
    --md-sys-color-error: #ba1a1a;
    --md-sys-shape-small: 12px;
    --md-sys-shape-medium: 16px;
    --md-sys-shape-large: 24px;
    --md-sys-motion-standard: cubic-bezier(0.2, 0, 0, 1);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        color-scheme: dark;
        --md-sys-color-primary: #93ccff;
        --md-sys-color-on-primary: #003353;
        --md-sys-color-primary-container: #004a75;
        --md-sys-color-on-primary-container: #cfe5ff;
        --md-sys-color-secondary-container: #394856;
        --md-sys-color-on-secondary-container: #d3e4f5;
        --md-sys-color-tertiary: #d0bcff;
        --md-sys-color-background: #101318;
        --md-sys-color-surface: #101318;
        --md-sys-color-surface-container-lowest: #0b0e12;
        --md-sys-color-surface-container-low: #191c20;
        --md-sys-color-surface-container: #1d2024;
        --md-sys-color-surface-container-high: #272a2f;
        --md-sys-color-surface-container-highest: #32353a;
        --md-sys-color-on-surface: #e1e2e8;
        --md-sys-color-on-surface-variant: #c1c7d0;
        --md-sys-color-outline: #8b9199;
        --md-sys-color-outline-variant: #41474e;
        --md-sys-color-error: #ffb4ab;
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --md-sys-color-primary: #93ccff;
    --md-sys-color-on-primary: #003353;
    --md-sys-color-primary-container: #004a75;
    --md-sys-color-on-primary-container: #cfe5ff;
    --md-sys-color-secondary-container: #394856;
    --md-sys-color-on-secondary-container: #d3e4f5;
    --md-sys-color-tertiary: #d0bcff;
    --md-sys-color-background: #101318;
    --md-sys-color-surface: #101318;
    --md-sys-color-surface-container-lowest: #0b0e12;
    --md-sys-color-surface-container-low: #191c20;
    --md-sys-color-surface-container: #1d2024;
    --md-sys-color-surface-container-high: #272a2f;
    --md-sys-color-surface-container-highest: #32353a;
    --md-sys-color-on-surface: #e1e2e8;
    --md-sys-color-on-surface-variant: #c1c7d0;
    --md-sys-color-outline: #8b9199;
    --md-sys-color-outline-variant: #41474e;
    --md-sys-color-error: #ffb4ab;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    color-scheme: light dark;
    scroll-behavior: smooth;
}

body {
    max-width: 100%;
    background: var(--md-sys-color-background);
    color: var(--md-sys-color-on-surface);
    font-family: 'Roboto', sans-serif;
}

body.text-slate-800 {
    color: var(--md-sys-color-on-surface);
}

button, input, textarea, select {
    max-width: 100%;
    font: inherit;
}

button {
    min-height: 48px;
    border-radius: 9999px;
    transition: color 200ms var(--md-sys-motion-standard), background-color 200ms var(--md-sys-motion-standard), transform 200ms var(--md-sys-motion-standard);
}

button:active {
    transform: scale(0.98);
}

input, textarea, select {
    min-height: 48px;
    border-radius: var(--md-sys-shape-small);
    color: var(--md-sys-color-on-surface);
    background-color: var(--md-sys-color-surface-container-lowest);
}

textarea {
    min-height: 96px;
}

::placeholder {
    color: var(--md-sys-color-on-surface-variant);
    opacity: 1;
}

img, video, canvas, svg {
    max-width: 100%;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 3px solid var(--md-sys-color-primary);
    outline-offset: 3px;
}

.material3-topbar {
    height: 64px;
    min-height: 64px;
    background: var(--md-sys-color-surface);
    color: var(--md-sys-color-on-surface);
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    box-shadow: 0 1px 3px rgba(25, 28, 32, 0.12);
}

.material3-topbar a:not(.material3-primary) {
    color: inherit;
}

.material3-topbar .brand-mark {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--md-sys-shape-small);
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
}

.material3-icon-button {
    display: inline-flex;
    width: 48px;
    min-width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    background: transparent;
    color: var(--md-sys-color-on-surface);
    cursor: pointer;
}

.material3-icon-button:hover {
    background: var(--md-sys-color-surface-container-high);
}

.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    font-feature-settings: 'liga';
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

#menuToggle {
    display: inline-flex;
    width: 48px;
    min-width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    cursor: pointer;
}

#sidebar {
    background: var(--md-sys-color-surface-container-low);
    border-color: var(--md-sys-color-outline-variant);
    box-shadow: 0 2px 8px rgba(25, 28, 32, 0.12);
}

#sidebar > ul {
    background: var(--md-sys-color-surface-container-low);
}

#sidebar a {
    min-height: 48px;
    border-radius: var(--md-sys-shape-small);
}

main [class*="bg-white"][class*="border"] {
    border-color: var(--md-sys-color-outline-variant);
    border-radius: var(--md-sys-shape-medium);
}

.fluent-shadow {
    box-shadow: 0 1px 3px rgba(25, 28, 32, 0.12);
}

[class~="bg-[#24a1de]"] {
    background-color: var(--md-sys-color-primary);
}

[class*="bg-[#24a1de]/"] {
    background-color: color-mix(in srgb, var(--md-sys-color-primary) 10%, transparent);
}

[class*="text-[#24a1de]"],
[class*="text-[#168ac1]"] {
    color: var(--md-sys-color-primary);
}

[class*="border-[#24a1de]"] {
    border-color: var(--md-sys-color-outline-variant);
}

[class~="bg-[#24a1de]"][class*="text-white"] {
    color: var(--md-sys-color-on-primary);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--md-sys-color-surface-container-low);
}

::-webkit-scrollbar-thumb {
    background: var(--md-sys-color-outline);
    border: 2px solid var(--md-sys-color-surface-container-low);
    border-radius: 9999px;
}

[data-theme="dark"] .bg-white,
[data-theme="dark"] [class*="bg-slate-50"],
[data-theme="dark"] .bg-slate-100 {
    background-color: var(--md-sys-color-surface-container-low);
}

[data-theme="dark"] .bg-slate-200 {
    background-color: var(--md-sys-color-surface-container-highest);
}

[data-theme="dark"] [class*="text-slate-900"],
[data-theme="dark"] [class*="text-slate-800"],
[data-theme="dark"] [class*="text-slate-700"] {
    color: var(--md-sys-color-on-surface);
}

[data-theme="dark"] [class*="text-slate-600"],
[data-theme="dark"] [class*="text-slate-500"],
[data-theme="dark"] [class*="text-slate-400"] {
    color: var(--md-sys-color-on-surface-variant);
}

[data-theme="dark"] [class*="border-slate-"] {
    border-color: var(--md-sys-color-outline-variant);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) body .bg-white,
    :root:not([data-theme]) body [class*="bg-slate-50"],
    :root:not([data-theme]) body .bg-slate-100 {
        background-color: var(--md-sys-color-surface-container-low);
    }

    :root:not([data-theme]) body .bg-slate-200 {
        background-color: var(--md-sys-color-surface-container-highest);
    }

    :root:not([data-theme]) body [class*="text-slate-900"],
    :root:not([data-theme]) body [class*="text-slate-800"],
    :root:not([data-theme]) body [class*="text-slate-700"] {
        color: var(--md-sys-color-on-surface);
    }

    :root:not([data-theme]) body [class*="text-slate-600"],
    :root:not([data-theme]) body [class*="text-slate-500"],
    :root:not([data-theme]) body [class*="text-slate-400"] {
        color: var(--md-sys-color-on-surface-variant);
    }

    :root:not([data-theme]) body [class*="border-slate-"] {
        border-color: var(--md-sys-color-outline-variant);
    }
}

@media (max-width: 767px) {
    .material3-topbar {
        padding-left: 16px;
        padding-right: 16px;
    }

    #sidebar {
        width: min(288px, calc(100vw - 56px));
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
