body {
    -webkit-font-smoothing: antialiased;
}

#app-sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s ease;
}

#app-sidebar.is-open {
    transform: none;
}

#sidebar-overlay.is-open {
    display: block;
}

body.sidebar-open {
    overflow: hidden;
}

@media (min-width: 1024px) {
    #app-sidebar {
        transform: none;
    }

    #sidebar-overlay {
        display: none !important;
    }

    body.sidebar-open {
        overflow: auto;
    }
}

code {
    font-size: 0.85em;
}

#app-toast {
    animation: toast-in 0.28s ease-out;
}

#app-toast.toast-hide {
    animation: toast-out 0.28s ease-in forwards;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-12px);
    }
}

.score-slider {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 10px;
    margin: 0;
    cursor: pointer;
    background: linear-gradient(
        to right,
        #059669 0%,
        #059669 var(--score-pct, 0%),
        #e2e8f0 var(--score-pct, 0%),
        #e2e8f0 100%
    );
    border-radius: 999px;
    outline: none;
}

.score-slider:focus-visible {
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.25);
}

.score-slider:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.score-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #059669;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.28);
    cursor: grab;
}

.score-slider:active::-webkit-slider-thumb {
    cursor: grabbing;
}

.score-slider::-moz-range-track {
    height: 10px;
    background: transparent;
    border: none;
}

.score-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #059669;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.28);
    cursor: grab;
}
