* {
    box-sizing: border-box;
}

:root {
    color-scheme: light;

    --bg: #cbd2da;
    --surface: #cbd2da;

    --text: #303741;
    --secondary: #697482;
    --muted: #87919d;

    --shadow-dark: #adb3ba;
    --shadow-light: #e9f1fa;

    --accent: #586bd8;
    --green: #398c68;
    --red: #c35f65;

    --radius: 28px;
    --small-radius: 18px;

    transition:
        background .35s ease,
        color .35s ease;
}

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

    --bg: #20242b;
    --surface: #20242b;

    --text: #e9edf3;
    --secondary: #969eaa;
    --muted: #6f7680;

    --shadow-dark: #171a20;
    --shadow-light: #292e36;

    --accent: #8294ff;
    --green: #70d9a4;
    --red: #ed8c8c;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100dvh;

    background: var(--bg);
    color: var(--text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        Inter,
        system-ui,
        sans-serif;

    transition:
        background .35s ease,
        color .35s ease;
}


/* APP */

.app {
    width: min(calc(100% - 32px), 540px);
    min-height: 100dvh;

    margin: auto;

    display: flex;
    flex-direction: column;

    padding:
        max(22px, env(safe-area-inset-top))
        0
        max(22px, env(safe-area-inset-bottom));
}


/* TOPBAR */

.topbar {
    min-height: 64px;

    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 36px;
}

.brand {
    display: flex;
    align-items: center;

    gap: 13px;

    margin-right: auto;
}

.brand-icon {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    border-radius: 15px;

    background: var(--surface);

    box-shadow:
        6px 6px 13px var(--shadow-dark),
        -6px -6px 13px var(--shadow-light);
}

.brand-icon span {
    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 0 5px color-mix(
            in srgb,
            var(--green) 13%,
            transparent
        );
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 15px;
}

.brand small {
    margin-top: 2px;

    color: var(--secondary);

    font-size: 12px;
}


/* THEME SWITCH */

.theme-button {
    appearance: none;

    padding: 0;

    border: 0;

    background: transparent;

    cursor: pointer;
}

.theme-track {
    position: relative;

    width: 88px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: space-around;

    border-radius: 22px;

    background: var(--surface);

    box-shadow:
        inset 3px 3px 7px var(--shadow-dark),
        inset -3px -3px 7px var(--shadow-light);

    transition: .35s ease;
}

.theme-icon {
    z-index: 2;

    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    color: var(--secondary);

    transition:
        color .35s ease,
        transform .35s ease;
}

.theme-icon svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-thumb {
    position: absolute;

    left: 5px;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    background: var(--surface);

    box-shadow:
        4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);

    transition:
        transform .35s cubic-bezier(.2,.8,.2,1),
        background .35s ease;
}

html[data-theme="dark"] .theme-thumb {
    transform: translateX(44px);
}

html:not([data-theme="dark"]) .sun {
    color: #d89b28;
}

html[data-theme="dark"] .moon {
    color: #aab8ff;
}


/* GENERIC NEOMORPHIC BUTTON */

.icon-button {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    border: 0;
    border-radius: 15px;

    color: var(--secondary);
    background: var(--surface);

    box-shadow:
        5px 5px 11px var(--shadow-dark),
        -5px -5px 11px var(--shadow-light);

    cursor: pointer;

    transition:
        transform .15s ease,
        box-shadow .15s ease;
}

.icon-button:active {
    transform: scale(.95);

    box-shadow:
        inset 3px 3px 7px var(--shadow-dark),
        inset -3px -3px 7px var(--shadow-light);
}

.icon-button svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* CARDS */

.glass {
    background: var(--surface);

    border: 0;

    box-shadow:
        12px 12px 26px var(--shadow-dark),
        -12px -12px 26px var(--shadow-light);

    transition:
        background .35s ease,
        box-shadow .35s ease;
}

.login-card,
.light-card {
    border-radius: var(--radius);
}

.login-card {
    margin: auto 0;

    padding: 32px;
}

.light-card {
    padding: 25px;
}


/* TYPO */

.eyebrow {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 12px;

    color: var(--secondary);

    font-size: 11px;
    font-weight: 650;

    letter-spacing: .08em;
    text-transform: uppercase;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #d9a84f;
}

.status-dot.online {
    background: var(--green);

    box-shadow:
        0 0 0 5px
        color-mix(
            in srgb,
            var(--green) 10%,
            transparent
        );
}

h1 {
    margin: 0;

    color: var(--text);

    font-size: clamp(36px, 9vw, 50px);

    font-weight: 680;

    letter-spacing: -.05em;
    line-height: 1;
}

p {
    margin: 11px 0 0;

    color: var(--secondary);

    line-height: 1.5;
}


/* LOGIN */

.card-header {
    margin-bottom: 30px;
}

.login-card label {
    display: block;

    margin: 0 0 10px 4px;

    color: var(--secondary);

    font-size: 12px;
    font-weight: 600;
}

.password-wrapper {
    position: relative;
}

input {
    width: 100%;
    height: 58px;

    padding: 0 54px 0 19px;

    border: 0;
    border-radius: var(--small-radius);

    outline: none;

    background: var(--surface);
    color: var(--text);

    font: inherit;
    font-size: 16px;

    box-shadow:
        inset 5px 5px 10px var(--shadow-dark),
        inset -5px -5px 10px var(--shadow-light);

    transition:
        box-shadow .2s ease,
        color .35s ease,
        background .35s ease;
}

input:focus {
    box-shadow:
        inset 5px 5px 10px var(--shadow-dark),
        inset -5px -5px 10px var(--shadow-light),
        0 0 0 3px
        color-mix(
            in srgb,
            var(--accent) 15%,
            transparent
        );
}

input::placeholder {
    color: var(--muted);
}

.password-toggle {
    position: absolute;

    top: 7px;
    right: 8px;

    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    border: 0;

    background: transparent;
    color: var(--secondary);

    cursor: pointer;
}

.password-toggle svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.7;
}

.primary-button {
    width: 100%;
    height: 58px;

    margin-top: 17px;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border: 0;
    border-radius: var(--small-radius);

    background: var(--surface);
    color: var(--accent);

    font: inherit;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        7px 7px 14px var(--shadow-dark),
        -7px -7px 14px var(--shadow-light);

    transition:
        transform .15s ease,
        box-shadow .15s ease;
}

.primary-button:active {
    transform: scale(.985);

    box-shadow:
        inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light);
}

.primary-button svg {
    width: 19px;

    fill: none;
    stroke: currentColor;

    stroke-width: 2;
}

.message {
    min-height: 20px;

    margin-top: 14px;

    font-size: 13px;
}

.message.error {
    color: var(--red);
}


/* HERO */

.hero {
    margin:
        22px
        5px
        30px;
}

.hero p {
    font-size: 14px;
}


/* LIGHT HEADER */

.light-card-header {
    display: flex;
    align-items: center;

    gap: 15px;

    margin-bottom: 25px;
}

.light-icon {
    width: 50px;
    height: 50px;

    display: grid;
    place-items: center;

    flex: 0 0 50px;

    border-radius: 16px;

    color: var(--accent);

    background: var(--surface);

    box-shadow:
        inset 3px 3px 7px var(--shadow-dark),
        inset -3px -3px 7px var(--shadow-light);
}

.light-icon svg {
    width: 23px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.light-card-header strong,
.light-card-header span {
    display: block;
}

.light-card-header strong {
    font-size: 16px;
}

.light-card-header span {
    margin-top: 3px;

    color: var(--secondary);

    font-size: 12px;
}


/* POWER */

.power-controls {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 17px;
}

.power-button {
    min-height: 165px;

    padding: 18px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border: 0;
    border-radius: 23px;

    text-align: left;

    background: var(--surface);
    color: var(--text);

    font: inherit;

    cursor: pointer;

    box-shadow:
        8px 8px 16px var(--shadow-dark),
        -8px -8px 16px var(--shadow-light);

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        color .2s ease;
}

.power-button:hover:not(:disabled) {
    transform: translateY(-2px);
}

.power-button:active:not(:disabled) {
    transform: scale(.97);

    box-shadow:
        inset 5px 5px 10px var(--shadow-dark),
        inset -5px -5px 10px var(--shadow-light);
}

.power-button:disabled {
    opacity: .45;

    cursor: progress;
}

.power-symbol {
    width: 47px;
    height: 47px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--surface);

    box-shadow:
        4px 4px 9px var(--shadow-dark),
        -4px -4px 9px var(--shadow-light);
}

.power-symbol svg {
    width: 22px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
}

.power-on .power-symbol {
    color: var(--green);
}

.power-off .power-symbol {
    color: var(--red);
}

.power-button strong,
.power-button span {
    display: block;
}

.power-button strong {
    margin-bottom: 5px;

    font-size: 17px;
}

.power-button span {
    color: var(--secondary);

    font-size: 12px;
}


/* STATUS */

.operation-status {
    min-height: 48px;

    margin-top: 20px;
    padding: 0 17px;

    display: flex;
    align-items: center;

    gap: 10px;

    border-radius: 16px;

    color: var(--secondary);

    font-size: 12px;

    background: var(--surface);

    box-shadow:
        inset 3px 3px 7px var(--shadow-dark),
        inset -3px -3px 7px var(--shadow-light);
}

.operation-dot {
    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background: var(--muted);
}

.operation-status.loading .operation-dot {
    background: var(--accent);

    animation: pulse .8s infinite alternate;
}

.operation-status.success {
    color: var(--green);
}

.operation-status.success .operation-dot {
    background: var(--green);
}

.operation-status.error {
    color: var(--red);
}

.operation-status.error .operation-dot {
    background: var(--red);
}

@keyframes pulse {
    to {
        opacity: .25;
        transform: scale(.65);
    }
}


/* FOOTER */

footer {
    margin-top: auto;

    padding-top: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    color: var(--muted);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: .1em;
    text-transform: uppercase;
}

.footer-dot {
    width: 3px;
    height: 3px;

    border-radius: 50%;

    background: currentColor;
}


[hidden] {
    display: none !important;
}


/* MOBILE */

@media (max-width: 480px) {

    .app {
        width: calc(100% - 24px);
    }

    .topbar {
        margin-bottom: 20px;
    }

    .login-card {
        padding: 25px;
    }

    .light-card {
        padding: 20px;
    }

    .power-button {
        min-height: 150px;
    }
}

@media (max-width: 350px) {

    .theme-track {
        width: 76px;
    }

    html[data-theme="dark"] .theme-thumb {
        transform: translateX(32px);
    }

    .power-controls {
        grid-template-columns: 1fr;
    }

    .power-button {
        min-height: 120px;
    }
}

/* =========================
   RGB LIGHTS
   ========================= */

.lights-grid {
    display: grid;
    gap: 22px;
}

.device-card {
    position: relative;
    overflow: hidden;

    padding: 25px;

    border-radius: 30px;

    background: var(--surface);

    box-shadow:
        11px 11px 23px var(--shadow-dark),
        -11px -11px 23px var(--shadow-light);

    transition:
        background .35s ease,
        box-shadow .35s ease,
        transform .18s ease;
}

.device-top {
    position: relative;
    z-index: 1;

    display: flex;
    justify-content: space-between;
    align-items: center;
}


.lamp-visual {
    position: relative;

    width: 70px;
    height: 70px;

    display: grid;
    place-items: center;

    border-radius: 23px;

    color: var(--secondary);
    background: var(--surface);

    box-shadow:
        inset 5px 5px 10px var(--shadow-dark),
        inset -5px -5px 10px var(--shadow-light);

    overflow: hidden;

    isolation: isolate;

    transition:
        color .3s ease;
}


.lamp-visual svg {
    position: relative;
    z-index: 2;

    width: 30px;
    height: 30px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.device-card.is-on
.lamp-visual {
    color: var(--lamp-color);
}


.device-power {
    width: 56px;
    height: 56px;

    display: grid;
    place-items: center;

    border: 0;
    border-radius: 50%;

    background: var(--surface);
    color: var(--secondary);

    box-shadow:
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);

    cursor: pointer;

    transition:
        transform .15s ease,
        color .25s ease,
        box-shadow .15s ease;
}


.device-power svg {
    width: 23px;
    height: 23px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
}


.device-power:active {
    transform: scale(.94);

    box-shadow:
        inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light);
}


.device-card.is-on
.device-power {
    color: var(--lamp-color);

    box-shadow:
        inset 3px 3px 7px var(--shadow-dark),
        inset -3px -3px 7px var(--shadow-light);
}


.device-title {
    position: relative;
    z-index: 1;

    margin-top: 24px;
}


.device-title strong {
    display: block;

    font-size: 19px;
    font-weight: 680;

    letter-spacing: -.025em;
}


.device-state {
    display: block;

    margin-top: 5px;

    color: var(--secondary);

    font-size: 12px;
}


.color-zone {
    position: relative;
    z-index: 1;

    margin-top: 23px;
    padding-top: 22px;

    border-top:
        1px solid
        color-mix(
            in srgb,
            var(--secondary) 12%,
            transparent
        );
}


.color-picker {
    height: 58px;

    display: flex;
    align-items: center;

    padding: 0 15px;

    gap: 13px;

    border-radius: 19px;

    cursor: pointer;

    background: var(--surface);

    box-shadow:
        inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light);
}


.color-picker input {
    position: absolute;

    opacity: 0;
    pointer-events: none;
}


.color-preview {
    width: 28px;
    height: 28px;

    flex: 0 0 28px;

    border-radius: 50%;

    background: var(--lamp-color);

    box-shadow:
        0 0 16px
        color-mix(
            in srgb,
            var(--lamp-color) 40%,
            transparent
        );

    transition: background .2s ease;
}


.color-label {
    color: var(--secondary);

    font-size: 13px;
    font-weight: 600;
}


.presets {
    display: flex;

    margin-top: 18px;

    justify-content: space-between;

    gap: 10px;
}


.preset {
    width: 38px;
    height: 38px;

    border: 0;
    border-radius: 50%;

    background: var(--preset);

    cursor: pointer;

    box-shadow:
        4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);

    transition:
        transform .15s ease,
        box-shadow .15s ease;
}


.preset:hover {
    transform: scale(1.08);
}


.preset:active {
    transform: scale(.9);
}


.device-card.busy {
    opacity: .68;
}


.device-card.busy
.device-power,
.device-card.busy
.preset,
.device-card.busy
.color-picker {
    pointer-events: none;
}


/* Couleurs verrouillées quand la lampe est éteinte */
.device-card.colors-disabled .color-zone {
    opacity: .3;
    filter: grayscale(1);
    pointer-events: none;
}

.device-card.colors-disabled .color-picker,
.device-card.colors-disabled .preset {
    cursor: default;
}


@media (min-width: 760px) {

    .app {
        width: min(
            calc(100% - 48px),
            760px
        );
    }

    .lights-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   BROWSER / AUTOFILL NORMALIZATION
   ========================================================= */

/* Safari / Chrome autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--text) !important;

    /* Écrase le fond jaune/bleu imposé par Safari */
    -webkit-box-shadow:
        0 0 0 1000px var(--surface) inset,
        inset 5px 5px 10px var(--shadow-dark),
        inset -5px -5px 10px var(--shadow-light)
        !important;

    box-shadow:
        0 0 0 1000px var(--surface) inset,
        inset 5px 5px 10px var(--shadow-dark),
        inset -5px -5px 10px var(--shadow-light)
        !important;

    caret-color: var(--text);

    border-radius: var(--small-radius);

    transition:
        background-color 9999s ease-out 0s;
}


/* Autofill standard pour les navigateurs qui le supportent */
input:autofill {
    color: var(--text);
    background: var(--surface);
}


/* Safari aime aussi modifier l'apparence native */
input,
button {
    -webkit-appearance: none;
    appearance: none;
}


/* Évite le contour bleu Safari sur les boutons */
button:focus {
    outline: none;
}


/* Mais on garde une indication clavier propre */
button:focus-visible,
input:focus-visible {
    outline: none;

    box-shadow:
        inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light),
        0 0 0 3px
        color-mix(
            in srgb,
            var(--accent) 20%,
            transparent
        );
}


/* Safari iOS : empêche le zoom automatique au focus */
input {
    font-size: 16px;
}


/* Supprime quelques décorations natives */
input::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
}

/* ============================================================
   RF 433 MHz — Bandeau COB
   ============================================================ */

.rf-section {
    margin-top: 2rem;
}

.rf-card {
    padding: 1.25rem;
    border-radius: 1.5rem;
}

.rf-card-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.rf-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rf-icon {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 1rem;
    box-shadow:
        inset 3px 3px 7px rgba(0, 0, 0, .18),
        inset -3px -3px 7px rgba(255, 255, 255, .05);
}

.rf-icon svg {
    width: 1.55rem;
    height: 1.55rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rf-title {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.rf-title span {
    opacity: .65;
    font-size: .85rem;
}

.rf-power {
    width: 3.2rem;
    height: 3.2rem;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: inherit;
    background: transparent;
    box-shadow:
        6px 6px 14px rgba(0, 0, 0, .22),
        -6px -6px 14px rgba(255, 255, 255, .04);
}

.rf-power svg {
    width: 1.45rem;
    height: 1.45rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rf-card.is-on .rf-power {
    box-shadow:
        inset 4px 4px 9px rgba(0, 0, 0, .28),
        inset -4px -4px 9px rgba(255, 255, 255, .04);
}

.rf-card.busy {
    pointer-events: none;
    opacity: .72;
}

.rf-level {
    /*
       Important : le CSS global applique padding: 0 54px 0 19px
       à TOUS les input. On neutralise ça pour le range, sinon ses
       quatre positions physiques ne correspondent jamais aux labels.
    */
    --rf-thumb-size: 24px;
    margin-top: 1.35rem;
    transition:
        opacity .2s ease,
        filter .2s ease;
}

.rf-level input[type="range"] {
    width: 100%;
    height: 58px;
    margin: 0;
    padding: 0 !important;
    border: 0;
    border-radius: var(--small-radius);
    background: var(--surface);
    box-shadow:
        inset 5px 5px 10px var(--shadow-dark),
        inset -5px -5px 10px var(--shadow-light);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

/* WebKit / Safari / Chrome */
.rf-level input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 999px;
    background:
        color-mix(in srgb, var(--secondary) 18%, transparent);
}

.rf-level input[type="range"]::-webkit-slider-thumb {
    width: var(--rf-thumb-size);
    height: var(--rf-thumb-size);
    margin-top: calc((6px - var(--rf-thumb-size)) / 2);
    border: 0;
    border-radius: 50%;
    background: var(--text);
    box-shadow:
        3px 3px 7px var(--shadow-dark),
        -3px -3px 7px var(--shadow-light);
    appearance: none;
    -webkit-appearance: none;
}

/* Firefox */
.rf-level input[type="range"]::-moz-range-track {
    height: 6px;
    border: 0;
    border-radius: 999px;
    background:
        color-mix(in srgb, var(--secondary) 18%, transparent);
}

.rf-level input[type="range"]::-moz-range-thumb {
    width: var(--rf-thumb-size);
    height: var(--rf-thumb-size);
    border: 0;
    border-radius: 50%;
    background: var(--text);
    box-shadow:
        3px 3px 7px var(--shadow-dark),
        -3px -3px 7px var(--shadow-light);
}

/*
   Les centres possibles du thumb vont de rayon à largeur-rayon.
   Même inset pour les labels => 10 / 25 / 50 / 100 tombent
   exactement sous les quatre crans.
*/
.rf-labels {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    margin-top: .55rem;
    padding-inline: calc(var(--rf-thumb-size) / 2);
    font-size: .78rem;
    opacity: .65;
}

.rf-labels span {
    text-align: center;
}

.rf-labels span:first-child {
    justify-self: start;
    transform: translateX(-50%);
}

.rf-labels span:nth-child(2) {
    transform: translateX(-16.6667%);
}

.rf-labels span:nth-child(3) {
    transform: translateX(16.6667%);
}

.rf-labels span:last-child {
    justify-self: end;
    transform: translateX(50%);
}

/* Verrouillage de la luminosité quand le bandeau est OFF. */
.rf-card.level-disabled .rf-level {
    opacity: .30;
    filter: grayscale(1);
}

.rf-card.level-disabled .rf-level input[type="range"],
.rf-level input[type="range"]:disabled {
    cursor: default;
    pointer-events: none;
}

.rf-level input[type="range"]:disabled::-webkit-slider-thumb {
    opacity: .55;
}

.rf-level input[type="range"]:disabled::-moz-range-thumb {
    opacity: .55;
}

