html[data-calot-theme="oscuro"] {
    color-scheme: dark;
    background-color: #141a22;
}

html[data-calot-theme="oscuro"] body {
    background-color: #141a22 !important;
    color: #e6ebf2 !important;
}

html[data-calot-theme="oscuro"] :is(input, select, textarea) {
    color-scheme: dark;
    background-color: #202a36 !important;
    color: #e6ebf2 !important;
    border-color: #526174 !important;
}

html[data-calot-theme="oscuro"] :is(input, textarea)::placeholder {
    color: #aeb9c8 !important;
    opacity: 1;
}

html[data-calot-theme="oscuro"] select option {
    background-color: #202a36;
    color: #e6ebf2;
}

html[data-calot-theme="oscuro"] :focus-visible {
    outline-color: #8bbcff;
}

#calot-theme-control {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 7px;
    max-width: calc(100vw - 28px);
    padding: 7px 9px;
    border: 1px solid #cbd2dc;
    border-radius: 9px;
    background: #ffffff;
    color: #243244;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
    font: 600 12px/1.2 Arial, Helvetica, sans-serif;
}

#calot-theme-control label {
    margin: 0;
    color: inherit;
    font: inherit;
    white-space: nowrap;
}

#calot-theme-control select {
    min-width: 90px;
    max-width: 120px;
    margin: 0;
    padding: 5px 7px;
    border: 1px solid #aeb8c5;
    border-radius: 6px;
    background: #ffffff;
    color: #1f2937;
    font: inherit;
}

html[data-calot-theme="oscuro"] #calot-theme-control {
    border-color: #465365;
    background: #1d2632;
    color: #e6ebf2;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
}

html[data-calot-theme="oscuro"] #calot-theme-control select {
    border-color: #566477;
    background: #111922;
    color: #e6ebf2;
}

@media (max-width: 480px) {
    #calot-theme-control {
        right: 10px;
        bottom: 10px;
        gap: 5px;
        padding: 6px 7px;
        font-size: 11px;
    }

    #calot-theme-control select {
        min-width: 82px;
        padding: 4px 6px;
    }
}
