form, .create-panel {
    padding: clamp(16px, 4vw, 30px);
    border: 1px solid var(--line);
    border-radius: 21px;
    background: var(--panel);
}
form { scroll-margin: 12px; }
.step-track {
    display: flex;
    align-items: center;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}
.step-track li { display: flex; flex: 1; align-items: center; gap: 6px; margin-right: 6px; }
.step-track li:last-child { flex: 0; margin: 0; }
.step-track li:not(:last-child)::after { flex: 1; height: 3px; border-radius: 3px; background: #3d3441; content: ""; }
.step-track li.completed::after { background: #895aa5; }
.step-track span {
    display: grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    background: #2a252e;
    color: var(--muted);
    font-size: .875rem;
    font-weight: 790;
}
.step-track [aria-current] span, .step-track .completed span { background: #7344a6; color: #fff; }
.step-count { margin: 0 0 6px; color: var(--muted); font-size: .875rem; }
h1 { margin: 0 0 16px; font-size: clamp(25px, 5vw, 35px); line-height: 1.16; letter-spacing: -.025em; }
.wizard-step h1:focus { outline: none; }
.wizard-step p { margin: 0 0 13px; color: var(--muted); }

.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choices.genres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice {
    position: relative;
    display: flex;
    min-height: 76px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 9px 5px;
    border: 1px solid #433b47;
    border-radius: 14px;
    cursor: pointer;
    text-align: center;
    font-size: .92rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.choice:hover { border-color: #a183c4; background: #242028; }
.choice:has(:focus-visible) { outline: 3px solid var(--violet); outline-offset: 2px; }
.choice:has(:checked) { border-color: var(--violet); background: #2c2235; box-shadow: inset 0 0 0 1px var(--violet); font-weight: 750; }
.choice:has(:checked)::after {
    position: absolute;
    top: 5px;
    right: 5px;
    display: grid;
    width: 19px;
    height: 19px;
    place-items: center;
    border-radius: 50%;
    background: #7344a6;
    color: #fff;
    font-size: 12px;
    content: "✓";
}
.choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice-icon { font-size: 1.35rem; line-height: 1.1; }
.choice-other { grid-column: 1 / -1; flex-direction: row; gap: 9px; min-height: 48px; }
.custom-field { display: grid; gap: 5px; margin-top: 12px; font-weight: 650; }
input[type="text"], textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #534954;
    border-radius: 11px;
    background: #151317;
    color: var(--text);
}
textarea { display: block; min-height: 110px; resize: vertical; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset + fieldset { margin-top: 18px; }
legend { margin-bottom: 7px; padding: 0; font-weight: 780; }
.detail-hints { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.detail-hints button, .details-example summary {
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #252129;
    color: var(--violet);
    cursor: pointer;
    font-size: .85rem;
    font-weight: 700;
}
.details-example { margin-top: 12px; }
.details-example summary { width: fit-content; }
.details-example p { margin: 8px 0 0; }
.review { margin: 0; padding: 2px 15px; border: 1px solid var(--line); border-radius: 14px; background: #211d25; }
.review div { display: grid; gap: 2px; padding: 9px 0; }
.review div + div { border-top: 1px solid var(--line); }
.review dt { color: var(--muted); font-size: .85rem; }
.review dd { margin: 0; color: var(--text); font-weight: 720; white-space: pre-wrap; overflow-wrap: anywhere; }
#step-error { margin: 11px 0 0; color: var(--accent); font-weight: 680; }

.wizard-actions { display: grid; gap: 8px; margin-top: 17px; }
.primary, .secondary, #lyrics + div button:not(.receipt-dialog button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 760;
    text-align: center;
    text-decoration: none;
}
.primary, #lyrics + div button:not(.receipt-dialog button) { background: var(--gradient); color: #fff; }
.primary:hover, #lyrics + div button:not(.receipt-dialog button):hover { background: #8c409e; }
.secondary { border-color: var(--line); background: #252129; color: var(--violet); }
.secondary:hover { background: #322837; }
.wizard-actions .primary { min-height: 52px; }
button:disabled { opacity: .62; cursor: wait; }
.create-panel p { margin: 12px 0 0; color: var(--muted); }
#sign-in { margin-top: 15px; }
#lyrics {
    margin: 14px 0 18px;
    padding: clamp(12px, 3vw, 21px);
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #151317;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font: inherit;
}
.variant-picker { margin-bottom: 14px; }
.variant-picker .variant-label { margin: 0 0 7px; font-size: .875rem; font-weight: 680; }
.variant-choices { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.variant-choices button { padding-inline: 13px; font-size: .89rem; }
.variant-choices button[aria-pressed="true"] { border-color: #a183c4; background: #382a44; color: var(--text); }
.variant-choices .variant-add { border-style: dashed; }
.variant-progress { color: var(--muted); font-size: .85rem; }
@media (max-width: 420px) {
    .variant-choices button:not(.variant-add) { flex: 1 1 29%; }
    .variant-choices .variant-add { width: 100%; }
}
#lyrics + div > * { margin-bottom: 10px; }
#lyrics + div label { display: grid; gap: 5px; }
#status:not(:empty) { margin: 15px 0 0; padding: 10px 13px; border: 1px solid #5c4569; border-radius: 11px; background: #252129; }
#status:empty { display: none; }
#status.is-working { display: flex; align-items: center; gap: 10px; }
#status.is-working::before {
    flex: 0 0 13px;
    height: 13px;
    border: 2px solid #634d74;
    border-top-color: var(--violet);
    border-radius: 50%;
    content: "";
}
@media (prefers-reduced-motion: no-preference) {
    #status.is-working::before { animation: spin .9s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }
.order-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
@media (max-width: 420px) {
    form, .create-panel { padding: 13px; }
    .choices { gap: 6px; }
    .choices.genres .choice { font-size: .82rem; }
}

.song-checkout h2 { margin: 0; font-size: clamp(20px, 4vw, 24px); }
.song-checkout .balance-plans .package-button { width: 100%; }
