html.font-sans,
html body,
html .font-sans,
html button,
html input,
html select,
html textarea,
html .leaflet-container {
    font-family: var(--rqeem-font-ui);
}

html body,
html body.font-medium {
    background-color: var(--rqeem-canvas);
    color: var(--rqeem-text);
    line-height: 1.6;
    font-weight: var(--rqeem-weight-body);
}

html h1,
html h2,
html h3,
html h4,
html h5,
html h6 {
    color: var(--rqeem-text);
    font-weight: var(--rqeem-weight-heading);
}

html .font-normal {
    font-weight: var(--rqeem-weight-body);
}

html .font-medium {
    font-weight: var(--rqeem-weight-label);
}

html .font-semibold {
    font-weight: var(--rqeem-weight-heading);
}

html .font-bold,
html .font-extrabold,
html .font-black,
html b,
html strong {
    font-weight: var(--rqeem-weight-emphasis);
}

html body .value-card h2 {
    font-weight: var(--rqeem-weight-body);
}

html body .value-card .text-4xl,
html .rqeem-metric-value,
html .dashboard-indicator-unit {
    font-weight: var(--rqeem-weight-metric);
}

html body .bg-white,
html body .bg-white.dark\:bg-gray-800 {
    background-color: var(--rqeem-surface);
}

html body .bg-gray-100,
html body .bg-gray-100.dark\:bg-gray-900 {
    background-color: var(--rqeem-canvas);
}

html body .bg-gray-50 {
    background-color: var(--rqeem-surface-muted);
}

html body .text-gray-400 {
    color: var(--rqeem-text-muted);
}

html body .text-gray-500,
html body .text-gray-600 {
    color: var(--rqeem-text-secondary);
}

html body .text-gray-700,
html body .text-gray-800,
html body .text-gray-900 {
    color: var(--rqeem-text);
}

html body label {
    color: var(--rqeem-text);
}

html body .bg-primary-500,
html body .bg-primary-600 {
    background-color: var(--rqeem-primary);
    background-image: var(--rqeem-primary-background);
    color: var(--rqeem-on-primary);
}

html body .enabled\:hover\:bg-primary-400:enabled:hover,
html body .hover\:bg-primary-400:hover,
html body .hover\:bg-primary-600:hover {
    background-color: var(--rqeem-primary-hover);
    background-image: none;
    color: var(--rqeem-on-primary);
}

html body .text-primary-500 {
    color: var(--rqeem-primary);
}

html body .bg-primary-500 .text-white,
html body .bg-primary-600 .text-white {
    color: var(--rqeem-on-primary);
}

html input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
html select,
html textarea {
    border-color: var(--rqeem-control-border);
}

html input::placeholder,
html textarea::placeholder {
    color: var(--rqeem-text-muted);
    opacity: 1;
}

html :is(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 2px solid var(--rqeem-primary);
    outline-offset: 2px;
}

html .form-input-bordered,
html .form-select-bordered {
    background-color: var(--rqeem-surface);
    color: var(--rqeem-text);
}

html button.rounded,
html a.rounded,
html .form-input,
html .form-select,
html .form-input-bordered,
html .form-select-bordered {
    border-radius: 8px;
}

html .rounded-lg {
    border-radius: 8px;
}

.rqeem-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: var(--rqeem-weight-label);
    white-space: nowrap;
}

.rqeem-badge-success {
    color: var(--rqeem-success);
    background-color: var(--rqeem-success-background);
}

.rqeem-badge-warning {
    color: var(--rqeem-warning);
    background-color: var(--rqeem-warning-background);
}

.rqeem-badge-danger {
    color: var(--rqeem-danger);
    background-color: var(--rqeem-danger-background);
}

/* Keep the dark shell separate from dropdown, dialog, and form surfaces. */
#nova header:has(> .shrink-0) {
    background: var(--rqeem-header-background);
    color: var(--rqeem-header-text);
    border-color: var(--rqeem-shell-border);
    min-height: 76px;
}

#nova header:has(> .shrink-0) > button,
#nova header:has(> .shrink-0) button[aria-expanded],
#nova header:has(> .shrink-0) .text-gray-500,
#nova header:has(> .shrink-0) .text-gray-600 {
    color: var(--rqeem-header-muted);
}

#nova header:has(> .shrink-0) .shadow-lg :is(.text-gray-500, .text-gray-600, button[aria-expanded]) {
    color: var(--rqeem-text-secondary);
}

#nova header:has(> .shrink-0) input[type="search"] {
    background: var(--rqeem-shell-start);
    color: var(--rqeem-shell-text);
    border: 1px solid var(--rqeem-shell-border);
    border-radius: 8px;
}

#nova header:has(> .shrink-0) input[type="search"]::placeholder {
    color: var(--rqeem-shell-muted);
}

#nova header:has(> .shrink-0) :is(a, button, input):focus-visible {
    outline-color: var(--rqeem-shell-text);
}

#nova [dusk="content"] > .space-y-8 {
    padding: 22px 24px;
    min-width: 0;
}

html body #nova .rounded-lg.bg-white {
    border: 1px solid var(--rqeem-border);
    box-shadow: 0 2px 9px color-mix(in srgb, var(--rqeem-text) 6%, transparent);
}

html body #nova table th {
    background: var(--rqeem-surface-muted);
    color: var(--rqeem-text);
    font-size: 12px;
    text-align: start;
}

html body #nova table :is(th, td) {
    padding-block: 11px;
    border-color: var(--rqeem-border);
}

html body #nova table tbody tr:hover td {
    background-color: color-mix(in srgb, var(--rqeem-selected) 35%, var(--rqeem-surface));
}

html body .title-card.dashboard-filter-bar {
    background: var(--rqeem-header-background);
    color: var(--rqeem-header-text);
    border: 1px solid var(--rqeem-shell-border);
    border-radius: 8px;
    padding: 17px 24px;
    gap: 16px;
}

html body .dashboard-intro-eyebrow {
    color: var(--rqeem-header-muted);
    background: transparent;
    padding: 0;
    margin-bottom: 5px;
    font-size: 12px;
}

html body .dashboard-intro-heading {
    color: var(--rqeem-header-text);
    font-size: 22px;
}

html body .dashboard-intro-description {
    color: var(--rqeem-header-text);
    font-size: 16px;
    margin-top: 0;
}

html body .dashboard-subscription-summary {
    color: var(--rqeem-header-muted);
}

html body .dashboard-filter-actions > .dashboard-filter-button {
    background: var(--rqeem-shell-middle);
    color: var(--rqeem-header-text);
    border-color: var(--rqeem-shell-border);
    font-size: 12px;
    font-weight: 700;
    border-radius: 7px;
}

html body .dashboard-filter-actions > .dashboard-filter-button:hover {
    background: var(--rqeem-shell-start);
}

html body .dashboard-filter-actions > .dashboard-filter-button:focus-visible {
    outline-color: var(--rqeem-header-text);
}

html body .dashboard-filter-apply {
    background: var(--rqeem-primary-background);
    color: var(--rqeem-on-primary);
}

html body .dashboard-filter-apply:hover {
    background: var(--rqeem-primary-hover);
}

html body .value-card {
    border: 1px solid var(--rqeem-border);
    border-radius: 10px;
    box-shadow: 0 2px 9px color-mix(in srgb, var(--rqeem-text) 6%, transparent);
}

html body .value-card > div {
    text-align: start;
    padding: 16px 18px;
}

html body .value-card .text-4xl {
    font-size: 24px;
    line-height: 1.4;
}

html body .value-card h2 {
    font-size: 13px;
    letter-spacing: normal;
    margin-top: 7px;
}

@media (max-width: 700px) {
    #nova [dusk="content"] > .space-y-8 {
        padding: 12px;
    }

    html body .title-card.dashboard-filter-bar {
        padding: 14px;
    }
}

@media print {
    #nova header:has(> .shrink-0),
    .rqeem-navigation {
        display: none !important;
    }

    #nova [dusk="content"] > .space-y-8 {
        margin: 0 !important;
        padding: 0;
    }

    html body .title-card.dashboard-filter-bar {
        background: var(--rqeem-surface);
        border-color: var(--rqeem-border);
    }

    html body .dashboard-intro :is(p, h2) {
        color: var(--rqeem-text);
    }
    html body .dashboard-subscription-summary {
        color: var(--rqeem-text-secondary);
    }
}
