:root[data-diariofm-appearance="dark"] {
    color-scheme: dark;
    --dfm-ink: #f1f3f5;
    --dfm-muted: #c1c8ce;
    --dfm-line: #47515b;
    --dfm-paper: #191d21;
    --dfm-soft: #262c32;
    --dfm-card: #22282e;
    --dfm-topbar: #0d1115;
    --dfm-topbar-text: #f5f6f7;
    --dfm-header: #142438;
    --dfm-header-text: #fff;
    --dfm-menu: #101d2b;
    --dfm-menu-text: #fff;
    --dfm-menu-divider: rgb(255 255 255 / 32%);
    --dfm-footer: #142438;
    --dfm-footer-text: #fff;
    --dfm-footer-bottom: #0d1115;
    --dfm-apps-bg: #101d2b;
    --dfm-apps-text: #fff;
    --dfm-accent: #ff9297;
    --dfm-focus: #ffe078;
    --dfm-field: #12171b;
    --dfm-field-text: #fff;
    --dfm-video-panel: #0c1116;
}
:root[data-diariofm-appearance="contrast"] {
    color-scheme: dark;
    --dfm-ink: #fff;
    --dfm-muted: #fff;
    --dfm-line: #fff;
    --dfm-paper: #000;
    --dfm-soft: #000;
    --dfm-card: #000;
    --dfm-topbar: #000;
    --dfm-topbar-text: #fff;
    --dfm-header: #000;
    --dfm-header-text: #fff;
    --dfm-menu: #000;
    --dfm-menu-text: #fff;
    --dfm-menu-divider: #ffef00;
    --dfm-footer: #000;
    --dfm-footer-text: #fff;
    --dfm-footer-bottom: #000;
    --dfm-apps-bg: #000;
    --dfm-apps-text: #fff;
    --dfm-accent: #ffef00;
    --dfm-focus: #00ffff;
    --dfm-field: #000;
    --dfm-field-text: #fff;
    --dfm-video-panel: #000;
}
.appearance-controls {
    display: inline-flex;
    align-items: center;
    gap: .1rem;
    padding: .15rem;
    border: 1px solid color-mix(in srgb, var(--dfm-topbar-text) 55%, transparent);
    border-radius: 999px;
}
.appearance-controls button {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    padding: .35rem;
    border: 0;
    border-radius: 50%;
    color: var(--dfm-topbar-text);
    background: transparent;
}
.appearance-controls button[aria-pressed="true"] { color: var(--dfm-topbar); background: var(--dfm-topbar-text); }
.appearance-controls svg { display: block; width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.appearance-controls [data-diariofm-appearance-choice="contrast"] svg path { fill: currentColor; stroke: none; }
:root[data-diariofm-appearance="dark"] .brand-logo--light,
:root[data-diariofm-appearance="contrast"] .brand-logo--light { display: none !important; }
.brand-logo--dark { display: none !important; }
:root[data-diariofm-appearance="dark"] .brand-logo--dark,
:root[data-diariofm-appearance="contrast"] .brand-logo--dark { display: block !important; }
:root[data-diariofm-appearance="dark"] .site-header { border-bottom: 0; box-shadow: none; }
:root[data-diariofm-appearance="contrast"] .site-header { border-bottom: 2px solid var(--dfm-accent); box-shadow: none; }
:root[data-diariofm-appearance="contrast"] a { text-decoration: underline; }
:root[data-diariofm-appearance="contrast"] button,
:root[data-diariofm-appearance="contrast"] input,
:root[data-diariofm-appearance="contrast"] .apps-radio { border-width: 2px; }
