/* Shared sidebar backdrop + panel */
.ks-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: auto;
    cursor: pointer;
}

.ks-sidebar-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: var(--ks-sidebar-width);
    background: linear-gradient(180deg, rgba(49, 38, 28, 0.98), rgba(33, 26, 18, 0.98));
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    overflow-y: auto;
    padding: 1.25rem 1.5rem 5rem;
    box-shadow: -24px 0 50px rgba(0, 0, 0, 0.24);
}

[data-testid="dance-detail-backdrop"] { z-index: 200; }
[data-testid="dance-detail"] {
    z-index: 202;
    transform: translateX(0);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-testid="lesson-sidebar-backdrop"] { z-index: 210; }
[data-testid="lesson-sidebar"] { z-index: 211; }

[data-testid="dance-create-backdrop"] { z-index: 212; }
[data-testid="dance-create-sidebar"] { z-index: 213; }

[data-testid="user-settings-sidebar-backdrop"] { z-index: 197; }
[data-testid="user-settings-sidebar"] { z-index: 198; }

.ks-fade-in { transition: opacity 0.3s ease; }
.ks-fade-out { transition: opacity 0.2s ease; }
.ks-fade-from { opacity: 0; }
.ks-fade-to { opacity: 1; }
.ks-sidebar-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.ks-sidebar-close {
    flex-shrink: 0;
    font-size: 1.25rem;
    width: 36px;
    height: 36px;
}

.ks-sidebar-fields {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

/* Shared input base */
.ks-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--ks-text-primary);
    border-radius: 18px;
    padding: 0.8rem 0.95rem;
    font-size: 0.92rem;
    width: 100%;
    margin: 0;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.ks-input:focus {
    border-color: rgba(255, 185, 92, 0.9);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(255, 185, 92, 0.14);
}

.ks-sidebar-fields .ks-input {
    font-family: 'Literata', Georgia, serif;
}

.ks-section-title {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ks-text-muted);
    margin: 1rem 0 0.4rem;
    font-family: var(--md-ref-typeface-plain);
    font-weight: 600;
}
