:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, sans-serif; background: #101218; color: #eef0f7; --line: #323747; --muted: #a6aec2; --accent: #a5b4fc; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; padding: 28px; }
main { max-width: 1120px; margin: 0 auto; }
header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
main > header { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--accent); font-size: 11px; letter-spacing: .14em; font-weight: 700; text-transform: uppercase; }
h1, h2 { letter-spacing: -.045em; line-height: 1.15; font-weight: 600; margin: 14px 0; }
h1 { font-size: clamp(32px, 5vw, 48px); }
h2 { font-size: clamp(28px, 4vw, 38px); }
h3 { font-size: 20px; }
p { color: var(--muted); line-height: 1.65; }
a { color: var(--accent); text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; }
button { border: 1px solid var(--line); border-radius: 9px; background: #272d3d; color: #eef0f7; padding: 11px 18px; cursor: pointer; font-size: 14px; font-weight: 600; margin: 6px 8px 6px 0; }
button:hover:not(:disabled) { background: #39425a; }
button:disabled { opacity: .5; cursor: default; }
.primary, button[type="submit"], .release-confirm, .btn-approve { background: var(--accent); color: #182044; border-color: transparent; }
.primary:hover:not(:disabled), button[type="submit"]:hover:not(:disabled), .release-confirm:hover:not(:disabled), .btn-approve:hover:not(:disabled) { background: #c7d2fe; }
#logout, #cancel-import { background: transparent; color: var(--muted); }
label { display: block; margin: 18px 0 7px; color: #d5daea; font-size: 13px; font-weight: 550; }
input, select, textarea { width: 100%; min-width: 0; border: 1px solid #424b63; border-radius: 8px; background: #131722; color: #eef0f7; padding: 12px 14px; margin: 0 0 8px; line-height: 1.5; }
input::placeholder { color: #8a93ab; }
textarea { resize: vertical; min-height: 160px; }
input[type="checkbox"] { width: auto; margin-right: 8px; accent-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px 24px; margin: 28px 0; min-width: 0; }
legend { padding: 0 8px; font-size: 13px; font-weight: 600; color: #d5daea; }
.steps { list-style: none; display: flex; justify-content: center; gap: 48px; padding: 30px 0; margin: 0 0 20px; }
.steps li { display: flex; align-items: center; gap: 10px; color: #929cb4; font-size: 13px; }
.steps span { display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; width: 28px; height: 28px; font-size: 12px; }
.steps [aria-current] { color: #eef0f7; }
.steps [aria-current] span { background: var(--accent); border-color: var(--accent); color: #182044; }
.steps .complete { color: var(--accent); }
.steps .complete span { border-color: #6978b7; }
.wizard-page, .release-panel, .review-panel { border: 1px solid var(--line); border-radius: 18px; background: #1b2030; padding: clamp(24px, 4vw, 46px); margin: 0 auto 24px; }
#input-page, .release-panel, #progress-page, #done-page { max-width: 780px; }
#input-page fieldset { border: 0; padding: 0; margin: 24px 0 0; }
#input-page legend { display: none; }
#input-page button[type="submit"] { margin-top: 24px; }
.intro { max-width: 560px; }
.divider { margin: 24px 0 0; font-size: 12px; }
.release-search-fields, .review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.album-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; border: 0; padding: 0; margin: 28px 0; }
.album-methods legend { padding: 0; margin-bottom: 12px; }
.method-card { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: #171c29; }
.method-card:has(input:checked) { border-color: var(--accent); background: #262e4b; }
.method-card input { width: 16px; height: 16px; flex: 0 0 16px; margin: 3px 0 0; padding: 0; accent-color: var(--accent); }
.method-card strong { display: block; color: #eef0f7; font-size: 15px; }
.method-card small { display: block; color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 6px; }
details { border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin: 20px 0; background: #171c29; }
summary { cursor: pointer; font-weight: 550; font-size: 14px; }
details[open] summary { margin-bottom: 16px; }
#release-controls > form { padding: 4px 0 16px; }
#release-results article { padding: 20px; margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; }
#release-results h3 { margin: 0; }
#release-context:empty, #message:empty, #review-message:empty, #release-message:empty { display: none; }
#message { max-width: 780px; margin: 20px auto; color: #ffb7a9; }
#release-message, #review-message, .status { font-size: 14px; }
.error, .job-error, .collision-badge { color: #ffb7a9; }
.success { color: var(--accent); }
progress { display: block; width: 100%; height: 7px; margin: 32px 0; accent-color: var(--accent); }
.completion { text-align: center; padding: 64px 24px; }
.completion-icon { display: grid; place-items: center; margin: 0 auto 30px; width: 64px; height: 64px; background: #303b64; color: var(--accent); border-radius: 50%; font-size: 30px; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 780px; margin: 0 auto 30px; color: #a0aac2; font-size: 12px; }
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 13px; }
th, td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
caption { text-align: left; color: var(--muted); margin-bottom: 10px; }
td label { margin: 0 0 5px; font-size: 11px; color: var(--muted); }
td input { padding: 8px; }
.track-disc-input, .track-position-input { min-width: 60px; width: 64px; }
.track-title-input, .track-artist-input { min-width: 170px; }
.track-artist { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.source-select { min-width: 180px; max-width: 260px; font-size: 12px; }
.dest-cell { max-width: 180px; overflow-wrap: anywhere; color: #a6b0c8; font-size: 11px; }
.audio-preview-cell audio { width: 150px; height: 32px; }
.artwork-container { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.artwork-preview-box { display: grid; place-items: center; width: 150px; height: 150px; border: 1px dashed #505e80; border-radius: 12px; overflow: hidden; background: #131722; }
.artwork-preview-box img { width: 100%; height: 100%; object-fit: cover; }
.artwork-preview-box p { padding: 16px; font-size: 12px; text-align: center; }
.artwork-controls { flex: 1; min-width: 200px; }
.missing-warning { padding: 16px 20px; border: 1px solid #805546; border-radius: 10px; background: #332721; }
.missing-warning label { margin: 0; line-height: 1.6; }
.row-unassigned { background: #33272155; }
.review-actions { display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; flex-wrap: wrap; }
#btn-save-review { background: transparent; color: #eef0f7; border-color: var(--line); }
.login-page main { max-width: 460px; margin: 12vh auto; }
.login-brand { color: var(--accent); font-size: 13px; font-weight: 600; }
.login-page h1 { margin: 32px 0; }
.login-page button { width: 100%; margin-top: 16px; }
@media (max-width: 640px) {
  body { padding: 16px; }
  .steps { gap: 16px; padding: 24px 0; }
  .steps li { flex-direction: column; gap: 8px; font-size: 11px; text-align: center; }
  .wizard-page, .release-panel, .review-panel { padding: 22px 18px; border-radius: 12px; }
  .release-search-fields, .review-grid { grid-template-columns: 1fr; gap: 0; }
  fieldset { padding: 16px; }
  footer { align-items: flex-start; }
  .review-actions button { width: 100%; margin: 0; }
}
