:root {
    color-scheme: light;

    --ot-bg: #f8fafc;
    --ot-surface: #ffffff;
    --ot-surface-alt: #edf4fb;
    --ot-text: #17243b;
    --ot-muted: #526078;
    --ot-border: #e2e8f0;
    --ot-border-strong: #cbd5e1;
    --ot-link: #1751a0;
    --ot-brand-oti: #12376a;
    --ot-brand-mora: #087c43;
    --ot-primary: #12376a;
    --ot-primary-text: #ffffff;
    --ot-focus: #2563eb;
    --ot-hover: #edf2f7;
    --ot-danger: #b91c1c;
    --ot-success: #087c43;
    --ot-shadow: 0 8px 28px rgba(15, 23, 42, .08);
}

:root[data-theme="dark"] {
    color-scheme: dark;

    --ot-bg: #0f172a;
    --ot-surface: #1e293b;
    --ot-surface-alt: #172840;
    --ot-text: #f1f5f9;
    --ot-muted: #a8b7cc;
    --ot-border: #334155;
    --ot-border-strong: #475569;
    --ot-link: #93c5fd;
    --ot-brand-oti: #7db4ff;
    --ot-brand-mora: #4ade80;
    --ot-primary: #2563eb;
    --ot-primary-text: #ffffff;
    --ot-focus: #60a5fa;
    --ot-hover: #29364b;
    --ot-danger: #fca5a5;
    --ot-success: #4ade80;
    --ot-shadow: 0 8px 28px rgba(0, 0, 0, .25);
}

html {
    background: var(--ot-bg);
}

body {
    background: var(--ot-bg);
    color: var(--ot-text);
}

.ot-theme-toggle {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--ot-border);
    border-radius: 50%;
    background: var(--ot-surface);
    color: var(--ot-text);
    cursor: pointer;
}

.ot-theme-toggle:hover {
    background: var(--ot-hover);
}

.ot-theme-toggle:focus-visible {
    outline: 3px solid var(--ot-focus);
    outline-offset: 3px;
}

.ot-theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ot-theme-toggle .ot-sun {
    display: none;
}

:root[data-theme="dark"] .ot-theme-toggle .ot-sun {
    display: block;
}

:root[data-theme="dark"] .ot-theme-toggle .ot-moon {
    display: none;
}

.ot-header-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.ot-auth-theme {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 10;
}

@media (max-width: 600px) {
    .ot-header-actions {
        gap: 12px;
    }
}
