:root {
    --accent: #2563eb;
    --accent-dark: #1d4ed8;
    --accent-light: #dbeafe;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #0c1445;
    --text: #111827;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
    --font: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font);
    color: var(--text);
    background: linear-gradient(160deg, #0c1445 0%, #1e3a8a 60%, #1e40af 100%);
    min-height: 100vh;
}

header {
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,.12);
    color: #fff;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

header img { width: 32px; height: 32px; }
header h1 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }

.app-footer {
    text-align: center;
    padding: 24px 20px 40px;
    font-size: 12px;
    color: rgba(255,255,255,.4);
}
.app-footer a { color: rgba(255,255,255,.6); text-decoration: none; font-size: 13px; }
.app-footer a:hover { color: #fff; }
.app-footer-version { margin-top: 4px; }

.update-banner {
    background: var(--accent);
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 14px;
    font-weight: 600;
}
.update-banner button {
    background: #fff;
    color: var(--accent-dark);
    border: none;
    padding: 6px 16px;
    border-radius: 8px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.install-banner {
    background: #6366f1;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}
.install-banner button {
    background: #fff;
    color: #4f46e5;
    border: none;
    padding: 6px 16px;
    border-radius: 8px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
}

main {
    max-width: 860px;
    margin: 0 auto;
    padding: 28px 20px 100px;
}

.panel {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
}

.panel h2 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text);
}

.collection-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.collection-row:first-child { padding-top: 0; }
.collection-row:last-child { border-bottom: none; padding-bottom: 0; }
.collection-info { min-width: 0; }
.collection-name { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text); }
/* Fixed-width icon slot (🎧 or the 50 / 150 badge), so the names and the line under them align */
.collection-icon { width: 32px; flex-shrink: 0; text-align: center; font-size: 18px; line-height: 1; }
.collection-badge {
    padding: 4px 0;
    border-radius: 6px;
    background: var(--accent-light);
    color: var(--accent-dark);
    font-size: 11px;
    font-weight: 700;
}
.collection-meta { font-size: 12px; color: #16a34a; margin-top: 2px; padding-left: 40px; }
.collection-meta-locked { color: var(--text-muted); }
/* "N tracks" opens the track list popup */
.collection-count-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
    cursor: pointer;
}
.collection-count-btn:hover { text-decoration-style: solid; }

/* Track list popup: verb headings stick to the top while scrolling */
.tracklist-modal { max-width: 560px; }
.modal-body .tracklist-verb {
    position: sticky;
    top: -24px;
    margin: 0 -24px;
    padding: 10px 24px 6px;
    background: var(--bg);
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
.tracklist-row { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--bg-alt); font-size: 13px; }
.tracklist-title { flex: 1; min-width: 0; color: var(--text); }
.tracklist-tags { flex-shrink: 0; color: var(--text-muted); font-size: 11px; }
.tracklist-row-locked .tracklist-title { color: var(--text-muted); }
/* Buy on each locked product, one Import row under the products. Same width,
   so the buttons line up on the right. */
.collection-import-text { font-size: 14px; font-weight: 600; color: var(--text); }

.collection-buy-btn,
.collection-import-btn {
    box-sizing: border-box;
    display: block;
    min-width: 110px;
    padding: 9px 22px;
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    font-family: var(--font);
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.collection-buy-btn { background: var(--accent); color: #fff; }
.collection-buy-btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.collection-import-btn { background: #fff; color: var(--accent); }
.collection-import-btn:hover { background: var(--accent-light); }
.collection-import-btn:disabled { border-color: var(--text-muted); color: var(--text-muted); background: #fff; cursor: not-allowed; }

#status { color: var(--text-muted); font-size: 13px; margin-top: 10px; }
#status:empty { display: none; }

.link-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    text-decoration: underline;
    text-decoration-style: dotted;
    cursor: pointer;
    padding: 0;
    margin-top: 10px;
    display: block;
    font-family: var(--font);
}
.link-btn:hover { color: var(--text); }

.filter-list {
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 4px;
}

.filter-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.filter-list input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer; flex-shrink: 0; }

.filter-list label span.item-text { cursor: pointer; }
.filter-list label span.item-text:hover { text-decoration: underline; text-decoration-style: dotted; }
.filter-list label.hidden { display: none; }

.player {
    position: relative;
    width: min(440px, calc(100% - 40px));
    aspect-ratio: 1 / 1;
    margin: 28px auto 4px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    backdrop-filter: blur(20px);
    color: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 64px rgba(0,0,0,.3);
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.dir-arrow { color: #93c5fd; font-size: 12px; }

.player-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 28px;
}

.player .word { font-size: 26px; font-weight: 800; line-height: 1.25; }
.player .meta { color: rgba(255,255,255,.5); font-size: 12px; margin-top: 10px; }

.player-waveform {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    height: 48px;
    width: 100%;
    margin-top: 22px;
}
.player-waveform .bar {
    flex: 1;
    max-width: 5px;
    background: linear-gradient(to top, rgba(37,99,235,.7), rgba(99,102,241,.9));
    border-radius: 2px;
    min-height: 8px;
    animation: wavePulse 1.5s ease-in-out infinite;
    animation-play-state: paused;
}
.player-waveform.playing .bar { animation-play-state: running; }
.player-waveform .bar:nth-child(odd) { animation-delay: .2s; }
.player-waveform .bar:nth-child(3n) { animation-delay: .4s; }
@keyframes wavePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; height: 40% !important; }
}

.controls { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 18px; width: 100%; }
.controls-top-row { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.player-counter {
    position: absolute;
    bottom: 16px;
    right: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #93c5fd;
}

.controls button {
    background: rgba(255,255,255,.12);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.controls button:hover { background: rgba(255,255,255,.22); }
.controls button.active { background: var(--accent); }
.controls button.active:hover { background: var(--accent-dark); }
#shuffleBtn, #sleepTimerBtn { width: 48px; height: 48px; font-size: 20px; }
.controls .play-pause { width: 68px; height: 68px; background: var(--accent); font-size: 24px; margin-top: 6px; }
.controls .play-pause:hover { background: var(--accent-dark); }
.playback-row { display: flex; align-items: center; gap: 20px; }
.controls .skip-btn { width: 52px; height: 52px; font-size: 20px; }

.sleep-timer { position: relative; display: flex; align-items: center; gap: 8px; }
.sleep-timer-remaining { font-size: 12px; font-weight: 600; color: #93c5fd; white-space: nowrap; }

.sleep-timer-popover {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    width: 190px;
    background: rgba(12,20,69,.96);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 12px;
    padding: 14px;
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 32px rgba(0,0,0,.4);
    display: none;
    flex-direction: column;
    gap: 12px;
    z-index: 5;
    text-align: left;
}
.sleep-timer-popover.open { display: flex; }
.sleep-timer-popover-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #93c5fd;
}
.sleep-timer-inputs { display: flex; align-items: center; gap: 6px; color: #fff; font-size: 13px; }
.sleep-timer-inputs input[type="number"] {
    width: 46px;
    font-family: var(--font);
    font-size: 14px;
    color: #fff;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 6px;
    padding: 4px 6px;
    text-align: center;
}
.sleep-timer-popover-actions { display: flex; gap: 8px; }
.sleep-timer-popover-actions button {
    flex: 1;
    border: none;
    font-family: var(--font);
    font-weight: 600;
    font-size: 12px;
    padding: 7px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s;
}
.sleep-timer-popover-actions .off-btn { background: rgba(255,255,255,.1); color: #fff; }
.sleep-timer-popover-actions .off-btn:hover { background: rgba(255,255,255,.2); }
.sleep-timer-popover-actions .start-btn { background: var(--accent); color: #fff; }
.sleep-timer-popover-actions .start-btn:hover { background: var(--accent-dark); }

.progress {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,.2);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}
.progress-fill { height: 100%; background: var(--accent); border-radius: 2px; width: 0%; }

/* ── PRACTICE ─────────────────────────────────── */
/* Four equal columns filling the row (auto-fill left an empty slot on wide screens),
   2 x 2 on phones; the gap grows with the room there is */
.practice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 2.5vw, 20px); }
@media (max-width: 560px) { .practice-grid { grid-template-columns: repeat(2, 1fr); } }
.practice-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    padding: 16px 14px;
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fff 0%, #f5f9ff 100%);
    box-shadow: 0 1px 2px rgba(37, 99, 235, .08);
    font-family: var(--font);
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
}
.practice-btn:hover:not(:disabled) {
    background: var(--accent-light);
    box-shadow: 0 4px 12px rgba(37, 99, 235, .15);
    transform: translateY(-1px);
}
.practice-btn:active:not(:disabled) { transform: translateY(0); box-shadow: 0 1px 2px rgba(37, 99, 235, .1); }
.practice-btn.active { border-color: var(--accent); background: var(--accent-light); color: var(--accent-dark); box-shadow: none; }
.practice-btn:disabled { cursor: not-allowed; border-color: var(--border); border-style: dashed; background: var(--bg-alt); color: var(--text-muted); box-shadow: none; }
.practice-locked-hint { margin-top: 10px; font-size: 13px; color: var(--text-muted); }
/* "Now practising" banner attached directly under the player card, so the card
   grows downwards instead of cramping its contents; Stop on the right. While
   practising the card's bottom corners go square to join the banner. */
.practice-banner {
    width: min(440px, calc(100% - 40px));
    margin: 0 auto 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px 12px 20px;
    border: 1px solid rgba(255,255,255,.15);
    border-top-color: rgba(255,255,255,.18);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    background: var(--bg-dark);   /* the dark navy, so the strip stands out from the glassy card */
    box-shadow: 0 24px 64px rgba(0,0,0,.3);
}
.player.practicing { margin-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom-color: transparent; }
.practice-status {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
.practice-stop-btn {
    flex-shrink: 0;
    padding: 5px 14px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.practice-stop-btn:hover { background: rgba(255,255,255,.25); }

.empty-state { color: var(--text-muted); font-size: 14px; text-align: center; padding: 30px 0; }

.control-panel {
    width: min(440px, calc(100% - 40px));
    margin: 0 auto 20px;
    padding: 12px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
}

.track-count-caption {
    width: min(440px, calc(100% - 40px));
    margin: -8px auto 20px;
    text-align: center;
    font-size: 12px;
    color: #93c5fd;
}
/* Main control panel: direction rows stacked in a column on the left, each
   in its own boxed frame, nested inside the frosted-glass frame above. */
.control-panel .direction-checkboxes {
    flex-direction: row;
    align-items: center;
    padding: 6px 10px;
    gap: 8px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    box-shadow: none;
}
.control-panel .direction-checkbox-stack { gap: 7px; }
.control-panel .direction-checkbox-row {
    font-size: 15px;
    gap: 7px;
    color: #fff;
}
.control-panel .direction-checkbox-row input[type="checkbox"] { width: 17px; height: 17px; }
.control-panel .direction-checkbox-row img { width: 20px; }
.control-panel .direction-checkbox-row .dir-arrow { font-size: 12px; }

/* Person / Tense quick-access — kept as compact icon buttons rather than
   inline checkbox rows so the control panel doesn't get crowded; the actual
   options live in a popover, sharing state with the main Filter panel below. */
.quick-filter { position: relative; }
.quick-filter-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    flex-shrink: 0;
}
.quick-filter-btn:hover { background: rgba(255,255,255,.22); }
.quick-filter-btn.active { background: var(--accent); }
.quick-filter-btn.active:hover { background: var(--accent-dark); }

.quick-filter-popover {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    background: rgba(12,20,69,.96);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 12px;
    padding: 14px;
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 32px rgba(0,0,0,.4);
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 5;
    text-align: left;
}
.quick-filter-popover.open { display: flex; }
.quick-filter-popover-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #93c5fd;
}
.quick-filter-popover-title .quick-filter-all {
    background: none;
    border: none;
    color: #dbeafe;
    font-size: 11px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    padding: 0;
}
.quick-filter-popover-title .quick-filter-all:hover { color: #fff; }
.quick-filter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
}
.quick-filter-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #fff;
    cursor: pointer;
    user-select: none;
}
.quick-filter-list input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; flex-shrink: 0; }
.quick-filter-list span.item-text { cursor: pointer; }
.quick-filter-list span.item-text:hover { text-decoration: underline; text-decoration-style: dotted; }
.quick-filter-list label.hidden { display: none; }

/* Words popover — wider, with a search box and an A-Z jump strip on top of
   the (potentially long) checkbox list. */
.quick-filter-popover-wide { width: 260px; }
.quick-filter-search {
    width: 100%;
    font-family: var(--font);
    font-size: 13px;
    color: #fff;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    padding: 7px 10px;
}
.quick-filter-search::placeholder { color: rgba(255,255,255,.4); }
.quick-filter-search:focus { outline: none; border-color: var(--accent); }

.quick-filter-alphabet {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.quick-filter-alphabet button {
    width: 21px;
    height: 21px;
    border-radius: 5px;
    border: none;
    background: rgba(255,255,255,.1);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}
.quick-filter-alphabet button:hover:not(:disabled) { background: rgba(255,255,255,.25); }
.quick-filter-alphabet button:disabled { opacity: .25; cursor: default; }

.direction-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 14px;
    box-shadow: var(--shadow);
}
.direction-checkbox-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.direction-checkbox-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    user-select: none;
}
.direction-checkbox-row input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; flex-shrink: 0; }
.direction-checkbox-row img { width: 18px; height: auto; border-radius: 2px; flex-shrink: 0; }

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100;
}
.modal {
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}
.modal-header h2 { font-size: 16px; font-weight: 700; }
.modal-close {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--text-muted);
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 8px;
}
.modal-close:hover { background: var(--bg-alt); }
.modal-body { padding: 24px; overflow-y: auto; }
.modal-body h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* ── PLAYLISTS ────────────────────────────────── */
.panel-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel-header-row h2 { margin-bottom: 0; }

.mini-btn {
    background: var(--accent-light);
    color: var(--accent-dark);
    border: none;
    padding: 7px 14px;
    border-radius: 8px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}
.mini-btn:hover { background: #c7dcfb; }

.playlist-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.playlist-row:last-of-type { border-bottom: none; }
.playlist-row .playlist-name { font-weight: 600; font-size: 14px; }
.playlist-row .playlist-count { color: var(--text-muted); font-size: 12px; flex: 1; }
.playlist-row button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.playlist-row .playlist-play { background: var(--accent); color: #fff; }
.playlist-row .playlist-play:hover { background: var(--accent-dark); }
.playlist-row .playlist-edit { color: var(--text-muted); }
.playlist-row .playlist-edit:hover { background: var(--bg-alt); color: var(--accent); }
.playlist-row .playlist-delete { color: var(--text-muted); }
.playlist-row .playlist-delete:hover { background: var(--bg-alt); color: #dc2626; }

/* ── CREATE PLAYLIST WIZARD ──────────────────────── */
.wizard-modal { max-width: 560px; max-height: 88vh; }

.wizard-count {
    text-align: center;
    padding: 14px 24px;
    background: var(--accent-light);
    color: var(--accent-dark);
    font-weight: 700;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.wizard-body { padding: 24px; overflow-y: auto; flex: 1; }
.wizard-body h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
}
.wizard-body .filter-list { max-height: 320px; }

.wizard-name-input {
    width: 100%;
    font-family: var(--font);
    font-size: 15px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.wizard-name-input:focus { outline: none; border-color: var(--accent); }

.wizard-summary {
    margin-top: 18px;
    padding: 14px 16px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}
.wizard-summary strong { color: var(--text); }

.wizard-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}
.wizard-btn-ghost, .wizard-btn-primary {
    border: none;
    font-family: var(--font);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: var(--radius);
    cursor: pointer;
}
.wizard-btn-ghost { background: none; color: var(--text-muted); }
.wizard-btn-ghost:hover { background: var(--bg-alt); }
.wizard-btn-ghost:disabled { visibility: hidden; }
.wizard-btn-primary { background: var(--accent); color: #fff; }
.wizard-btn-primary:hover { background: var(--accent-dark); }
.wizard-btn-primary:disabled { background: var(--text-muted); cursor: not-allowed; }

.wizard-dots { display: flex; gap: 8px; }
.wizard-dots .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    padding: 0;
    cursor: default;
}
.wizard-dots .dot.current { background: var(--accent); width: 22px; border-radius: 5px; }
.wizard-dots .dot.completed { background: var(--accent); cursor: pointer; }
.wizard-dots .dot.completed:hover { background: var(--accent-dark); }
