html {
    font-size: var(--user-font-scale, 100%);
}

html[data-reduce-motion="true"],
html[data-reduce-motion="true"] *,
html[data-reduce-motion="true"] *::before,
html[data-reduce-motion="true"] *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
}

html[data-reduce-motion="true"] .reveal,
html[data-reduce-motion="true"] .reveal.is-revealed {
    opacity: 1 !important;
    transform: none !important;
    will-change: auto !important;
}

html[data-density="compact"] .card-body {
    gap: .65rem;
    padding: 1rem;
}

html[data-density="compact"] .space-y-6 > :not(:first-child) {
    margin-top: 1rem;
}

html[data-contrast="high"] {
    --neo-text-soft: #334155;
    --neo-border: 2px;
}

html[data-contrast="high"] .card,
html[data-contrast="high"] .btn,
html[data-contrast="high"] input,
html[data-contrast="high"] select,
html[data-contrast="high"] textarea {
    border-color: #1f2937;
    border-width: 2px;
}

html[data-contrast="high"] [class~="text-base-content/50"],
html[data-contrast="high"] [class~="text-base-content/60"],
html[data-contrast="high"] [class~="text-base-content/70"] {
    color: #1f2937 !important;
    opacity: 1;
}

html[data-theme="dark"][data-contrast="high"] {
    --neo-text-soft: #e2e8f0;
}

html[data-theme="dark"][data-contrast="high"] .card,
html[data-theme="dark"][data-contrast="high"] .btn,
html[data-theme="dark"][data-contrast="high"] input,
html[data-theme="dark"][data-contrast="high"] select,
html[data-theme="dark"][data-contrast="high"] textarea {
    border-color: #e2e8f0;
}

html[data-theme="dark"][data-contrast="high"] [class~="text-base-content/50"],
html[data-theme="dark"][data-contrast="high"] [class~="text-base-content/60"],
html[data-theme="dark"][data-contrast="high"] [class~="text-base-content/70"] {
    color: #f8fafc !important;
}

html[data-contrast="high"] :focus-visible {
    outline: 3px solid #1d4ed8 !important;
    outline-offset: 2px;
}

html[data-theme="dark"][data-contrast="high"] :focus-visible {
    outline-color: #93c5fd !important;
}

[data-dashboard-section][hidden] {
    display: none !important;
}
