* { box-sizing: border-box; }
/* An element the page hides with its hidden attribute is hidden, whatever display a later rule gives it: a rule
   that sets display otherwise wins over the browser's own [hidden] and leaves the element on screen. A rule that
   means to keep a hidden element's place (visibility) says so with its own !important. */
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
  font-feature-settings: "ss01" 1;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 640px at 10% -8%, rgba(240, 177, 85, .16), transparent 60%),
    radial-gradient(900px 680px at 102% 8%, rgba(141, 123, 245, .16), transparent 55%),
    radial-gradient(1100px 800px at 50% 115%, rgba(141, 123, 245, .09), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

::selection { background: var(--gold); color: #0b0b0f; }

.shell { width: min(1120px, calc(100% - 40px)); margin: auto; padding: 40px 0 100px; }

/* ---------- brand header ---------- */
.brand { display: flex; align-items: center; gap: 12px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.brand-mark {
  width: 44px; height: 44px; border-radius: 10px; display: block;
  box-shadow: 0 0 0 1px rgba(var(--wash-rgb), .08), 0 10px 26px -10px rgba(240, 177, 85, .55);
}
.brand div { display: flex; flex-direction: column; min-width: 0; }   /* the name wraps before the header's buttons do */
/* The header's two buttons are one quiet pair (logo, New album and the theme button do not sit well
   together): the same height, a hairline, no fill until pointed at; New album pushes both to the right. */
.home-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 11px;
  white-space: nowrap; background: transparent; color: var(--ink-dim); border: 1px solid var(--line-strong);
  border-radius: var(--r-pill); font: inherit; font-size: .82rem; font-weight: 650; cursor: pointer;
  transition: background .15s ease, color .15s ease; }
.home-pill:hover { background: var(--surface-hover); color: var(--ink); }
.home-pill-ico { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.brand strong { font-weight: 800; letter-spacing: -.01em; font-size: 1.05rem; }
.brand span { font-size: .78rem; color: var(--muted); }
/* A phone: the tagline wrapped to three lines beside New album and the theme button; the name alone reads cleaner. */
@media (max-width: 480px) {
  .brand { gap: 10px; padding-bottom: 16px; }
  .brand div span { display: none; }
  .brand-mark { width: 36px; height: 36px; border-radius: 9px; }
  .brand strong { font-size: 1rem; }
  .home-pill { padding: 0 12px 0 9px; font-size: .78rem; }
}

.status-wait { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
.status-wait[hidden] { display: none; }
.reopening-review { margin: 48px 0; text-align: center; color: var(--ink-dim); font-size: 1rem; }
.reopening-review[hidden] { display: none; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 36px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--accent); font-weight: 700; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  padding: 8px 16px 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: rgba(var(--wash-rgb), .03);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px 2px rgba(240, 177, 85, .8); }
.hero h1 {
  font-family: "Fraunces", Georgia, serif; font-optical-sizing: auto; font-weight: 400;
  font-size: clamp(3.2rem, 8vw, 7rem); line-height: .94; letter-spacing: -.03em; margin: 22px 0 28px;
}
.hero em {
  font-style: italic; font-weight: 500;
  background: linear-gradient(100deg, var(--accent), var(--violet));   /* text: the readable golds */
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.intro { max-width: 620px; font-size: 1.15rem; line-height: 1.65; color: var(--ink-dim); }
/* The start screen and the form take turns (landing.js): the hero only on the start screen, the form only after it. */
.shell:not([data-screen="landing"]) > .hero,
.shell[data-screen="landing"] > .stepper, .shell[data-screen="landing"] > #wizard { display: none; }
/* The start screen's picture: the brand art's film strip, a dark cinema frame on either theme. */
.start-hero { display: block; width: 100%; max-width: 720px; height: auto; margin: 26px 0 0; border-radius: var(--r-lg);
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .55); }
.start-sources-title { margin: 24px 0 10px; font-size: .95rem; font-weight: 700; color: var(--ink); }
.start-services { max-width: 620px; padding: 12px 10px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: rgba(var(--wash-rgb), .03); }
.get-started { display: flex; align-items: center; justify-content: center; gap: 10px; width: min(100%, 360px); margin: 24px 0 0;
  font-size: 1.1rem; }
.get-started svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.start-note { max-width: 620px; margin: 16px 0 0; font-size: .92rem; line-height: 1.55; color: var(--muted); }

/* ---------- step progress rail ---------- */
.stepper { display: flex; align-items: center; margin: 56px 0 6px; }
.stepper[hidden] { display: none; }
.stepper-dot {
  display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 8px 2px;
  font: inherit; color: var(--muted); cursor: pointer;
}
.stepper-dot .dot-num {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  font-family: "Fraunces", Georgia, serif; font-style: italic; font-variant-numeric: oldstyle-nums; font-size: .95rem;
  border: 1.5px solid var(--line-strong); color: var(--muted); transition: all .2s ease;
}
.stepper-dot .dot-label { font-size: .82rem; font-weight: 650; letter-spacing: .01em; white-space: nowrap; }
.stepper-dot:disabled { cursor: default; opacity: .5; }
.stepper-dot:not(:disabled):hover .dot-num { border-color: var(--accent); color: var(--accent); }
.stepper-dot.active .dot-num { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px rgba(240, 177, 85, .16); }
.stepper-dot.active .dot-label { color: var(--ink); }
.stepper-dot.done .dot-num { background: var(--gold); border-color: var(--gold); color: #0b0b0f; }
.stepper-line { flex: 1; height: 1px; min-width: 20px; background: var(--line-strong); margin: 0 6px; }

/* ---------- wizard step cards ---------- */
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 6px 26px; align-items: start;
  padding: 38px 42px; margin: 18px 0;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.step[hidden] { display: none; } 
/* The Next button at the top of each page (app-top-next.js): stays in view while the page is scrolled. */
.top-next { position: sticky; top: 8px; z-index: 6; display: flex; justify-content: flex-end; margin: 0 0 8px; pointer-events: none; }
.step > .top-next { grid-column: 1 / -1; }   /* a wizard page is a two-column grid: the button spans both, or it takes the number's column and squeezes the page into it */
/* The cadence slider's preview (app-photo-dump-preview.js): a small portrait frame flashing photos at the chosen rate. */
/* While a fast photo dump is on, videos are not shown at all, and only photos matching the reel's own shape
   show at all -- not dimmed-but-present, hidden outright, so what's on screen is exactly the eligible pool. */
.dump-mode .review-tile[data-type="video"] { display: none; }
.dump-portrait .review-tile:not([data-orientation="portrait"]), .dump-wide .review-tile:not([data-orientation="landscape"]) { display: none; }
.cadence-row { margin-top: 12px; }
.cadence-row[hidden] { display: none; }
/* review-photo-dump-cadence.js's own instance is a <details> (the wizard's step-4 one stays a plain div): the
   review screen stacks a lot in one flat column -- mode picker, orientation, cadence, then either a single
   photo grid or (+ Teaser) a two-tab film/dump strip -- so the teaser's own pace/preview tuck away collapsed
   by default instead of piling on top of all of that -- see syncReviewPhotoDump() for which mode opens it
   automatically. */
.dump-preview { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 10px; }
.dump-preview-frame { position: relative; flex: none; width: min(78%, 280px); aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-strong); background: #000; }
.dump-preview-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dump-preview-frame.flash::after { content: ''; position: absolute; inset: 0; background: #fff; }
.dump-preview-note { margin: 0; font-size: .85rem; color: var(--ink-dim); }
.dump-hear { padding: 8px 14px; font-size: .9rem; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; }
.dump-hear[hidden] { display: none; }
.top-next[hidden] { display: none; }
.top-next-btn { pointer-events: auto; padding: 8px 18px; font-size: .95rem; box-shadow: 0 10px 28px -8px rgba(0, 0, 0, .7), 0 0 0 1px rgba(240, 177, 85, .25); }
.step.active { border-color: rgba(240, 177, 85, .35); box-shadow: 0 0 0 1px rgba(240, 177, 85, .08), 0 34px 64px -34px rgba(240, 177, 85, .3); }
.step-number {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-family: "Fraunces", Georgia, serif; font-style: italic; font-variant-numeric: oldstyle-nums; font-size: 1.3rem;
  color: var(--accent); border: 1.5px solid var(--line-strong); background: rgba(240, 177, 85, .07);
}
.step-content { max-width: 820px; min-width: 0; }
.step h2, .progress-panel h2 { font-family: "Fraunces", Georgia, serif; font-optical-sizing: auto; font-weight: 400; font-size: 2.3rem; letter-spacing: -.01em; margin: 0 0 10px; color: var(--ink); }
.step-content > p { color: var(--muted); }

/* ---------- form controls ---------- */
label, legend { font-weight: 700; color: var(--ink-dim); display: block; margin: 28px 0 9px; }
input, select, textarea, button { font: inherit; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink);
  padding: 14px 16px; border-radius: var(--r-md);
}
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { resize: vertical; min-height: 5.5em; }
select {
  appearance: none; -webkit-appearance: none;
  background-image: var(--select-arrow);
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(240, 177, 85, .15); }
/* Step 1's link panel: the services a link can come from, each a white chip (like the link box's own service icon, so
   every logo reads on the dark theme) over its name; then the box, its hint, any error and Continue in one column. */
.source-intro { margin: 18px 0 14px; color: var(--ink-dim) !important; }
.service-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px 8px; margin: 0 0 12px; padding: 0; list-style: none; }
/* They say what is supported, not buttons: small, quiet, no hover. */
.service-grid li { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; text-align: center;
  font-size: .78rem; font-weight: 500; line-height: 1.2; color: var(--muted); overflow-wrap: anywhere; }
.service-grid img { box-sizing: border-box; width: 36px; height: 36px; padding: 7px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.url-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.url-row #inspect { justify-self: start; min-width: 220px; margin-top: 8px; }
.album-hint { display: flex; align-items: flex-start; gap: 8px; font-size: .9rem; line-height: 1.45; }
.album-hint svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.url-row input { border-radius: var(--r-pill); padding-left: 22px; }
/* The Paste pill sits inside the right end of the link box (app-paste.js). */
.url-field { position: relative; min-width: 0; }
.url-field input { width: 100%; }
.url-field:has(.paste-btn:not([hidden])) input { padding-right: 92px; }
/* The link's service, as its icon at the start of the box once the link is recognisable (app-service-icon.js). A white
   chip, so every logo reads on the dark box. */
.url-field.has-service input { padding-left: 52px; }
.service-icon { position: absolute; left: 9px; top: 50%; width: 32px; height: 32px; padding: 5px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); transform: translateY(-50%); animation: service-in .28s ease-out; }
.service-icon[hidden] { display: none; }
.cover-found .service-icon { position: static; display: inline-block; width: 20px; height: 20px; padding: 3px; margin-left: 6px;
  vertical-align: middle; transform: none; box-shadow: none; }
.cover-found .service-icon[hidden] { display: none; }
@keyframes service-in { from { opacity: 0; transform: translateY(-50%) scale(.6); } to { opacity: 1; transform: translateY(-50%) scale(1); } }
.cover-found .service-icon { animation: none; }
@media (prefers-reduced-motion: reduce) { .service-icon { animation: none; } }
.url-row .paste-btn { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; font-size: .78rem; font-weight: 700; color: var(--accent); background: rgba(240, 177, 85, .12);
  border: 1px solid rgba(240, 177, 85, .35); box-shadow: none; }
.url-row .paste-btn:hover { transform: translateY(-50%); box-shadow: none; background: rgba(240, 177, 85, .2); }
.url-row .paste-btn:active { transform: translateY(-50%); }
.url-row .paste-btn[hidden] { display: none; }
.paste-btn svg { width: 15px; height: 15px; }
.url-row button, .next, .create, .get-started {
  border: 0; border-radius: var(--r-pill); cursor: pointer; font-weight: 800; color: #0b0b0f;
  background: linear-gradient(100deg, var(--gold), var(--gold-deep));
  padding: 14px 28px; box-shadow: 0 14px 30px -14px rgba(240, 177, 85, .6);
  transition: transform .18s ease, box-shadow .18s ease;
}
.url-row button:hover, .next:hover, .create:hover, .get-started:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -16px rgba(240, 177, 85, .75); }
.url-row button:active, .next:active, .create:active, .get-started:active { transform: translateY(0); }
.url-row button:disabled, .next:disabled, .create:disabled {
  cursor: default; opacity: .55; transform: none; box-shadow: none;
}
/* Continue for an album too small for a film: plainly off, not just dimmer gold (design review). */
.url-row button:disabled:not(.checking) { cursor: not-allowed; opacity: .45; filter: grayscale(.85); }
/* Dark: the gold is for what is pressed and chosen, not a glow around everything -- the light theme's quieter order. */
:root:not([data-theme="light"]) .step.active { border-color: var(--line-strong); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .8); }
:root:not([data-theme="light"]) :is(.url-row button:not(.paste-btn), .next, .create, .get-started) { box-shadow: 0 10px 24px -16px rgba(240, 177, 85, .4); }
:root:not([data-theme="light"]) :is(.url-row button:not(.paste-btn), .next, .create, .get-started):hover { box-shadow: 0 12px 28px -16px rgba(240, 177, 85, .5); }
:root:not([data-theme="light"]) .stepper-dot.active .dot-num { box-shadow: 0 0 0 3px rgba(240, 177, 85, .1); }
:root:not([data-theme="light"]) .eyebrow::before { box-shadow: 0 0 6px 1px rgba(240, 177, 85, .45); }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
small { color: var(--muted); }
.error { color: var(--danger) !important; min-height: 1.4em; white-space: pre-line; }   /* a message in paragraphs keeps its breaks (messages.yaml) */

/* ---------- format picker ---------- */
/* Two compact cards side by side at every width (two full-width cards fill a
   phone's screen), each its shape over its name and use; the gold rim says which is chosen (no "Selected" badge, which
   covered the name). A film may have both, a photo dump one (app-mode.js). */
.format-grid { border: 0; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.format-grid legend { width: 100%; }
.format-card {
  position: relative; margin: 0; padding: 14px 12px; cursor: pointer; min-width: 0;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2);
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.format-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.format-card:has(input:checked) {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(240, 177, 85, .12), rgba(141, 123, 245, .07));
  box-shadow: 0 0 0 1px rgba(240, 177, 85, .3), 0 22px 44px -26px rgba(240, 177, 85, .45);
}
.format-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.format-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }   /* its input is invisible: the card shows focus */
.format-card strong { font-size: 1rem; color: var(--ink); }
.format-card small { color: var(--muted); font-size: .78rem; line-height: 1.3; }
.screen { grid-row: 1/3; display: block; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18); background: linear-gradient(135deg, var(--gold), var(--violet)); box-shadow: 0 14px 28px -14px rgba(141, 123, 245, .55); }
.screen { flex: none; }
.screen.landscape { width: 60px; height: 34px; margin: 5px 0; }
.screen.portrait { width: 25px; height: 44px; }

.controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; }
.controls > * { min-width: 0; }
.controls label span { font-weight: 400; color: var(--muted); font-size: .8rem; }
.wide { grid-column: 1/-1; }
details { margin: 32px 0; color: var(--muted); }
summary { cursor: pointer; color: var(--violet); font-weight: 700; min-height: 24px; }   /* a finger's target (tests/customer_tool/browser) */
.create { font-size: 1.1rem; padding: 17px 32px; }

/* ---------- surfaces with a gradient top edge ---------- */
.progress-panel, #review-panel {
  /* clip, not hidden: overflow:hidden makes the panel a scroll container, and the floating Next inside it
     (.top-next, position: sticky) then stuck to the panel instead of the screen -- it never floated.
     A browser without clip keeps hidden. */
  position: relative; overflow: hidden; overflow: clip;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 48px; margin-top: 40px;
}
.progress-panel::before, #review-panel::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(100deg, var(--gold), var(--violet));
}
.progress-panel h2, #review-panel h2 { color: var(--ink); }
.progress-track { height: 8px; border-radius: var(--r-pill); background: var(--surface-2); margin: 30px 0 15px; overflow: hidden; }
/* The fill is exactly the film's overall percent (app-status.js sets its width), so it never reads ahead of
   "46% complete"; "still working" is a sheen moving inside the fill only. */
.progress-track span { position: relative; display: block; width: 0; height: 100%; border-radius: var(--r-pill); overflow: hidden; background: linear-gradient(100deg, var(--gold), var(--violet)); box-shadow: 0 0 18px rgba(240, 177, 85, .5); transition: width .6s ease; }
.progress-track span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%) no-repeat; background-size: 200% 100%; animation: sheen 2s linear infinite; }
.progress-track.settled span::after { animation: none; display: none; }
@keyframes sheen { from { background-position: 200% 0; } to { background-position: -100% 0; } }
#status-message { color: var(--ink-dim); }
/* Empty while the checklist runs: its "Now: ..." line says it instead (app-status.js). */
#status-message:empty { display: none; }
.left-out-notice { margin: 14px 0; padding: 12px 14px; border: 1px solid var(--accent); border-radius: var(--r-md); color: var(--ink); font-size: .9rem; line-height: 1.45; }
.left-out-notice p { margin: 0; }
.left-out-notice ul { margin: 6px 0 0; padding-left: 18px; }
#status-log { margin: 12px 0; }
#status-log ol { max-height: 14rem; overflow: auto; margin: 8px 0 0; padding-left: 0; list-style: none; font: 0.8rem/1.6 ui-monospace, Consolas, monospace; color: var(--ink-dim); }
#retry-build { margin-top: 14px; }
#downloads video { display: block; width: 100%; max-width: 420px; border-radius: var(--r-lg); margin-top: 16px; background: #000; }
#downloads a { display: inline-block; color: var(--ink); border: 1px solid var(--accent); border-radius: var(--r-pill); padding: 12px 20px; margin: 8px 8px 0 0; transition: background .18s ease; }
#downloads a:hover { background: rgba(240, 177, 85, .12); }
#downloads .share-btn { font: inherit; cursor: pointer; color: var(--ink); background: rgba(240, 177, 85, .18); border: 1px solid var(--accent); border-radius: var(--r-pill); padding: 12px 20px; margin: 8px 8px 0 0; }
#downloads .share-btn:disabled { opacity: .6; cursor: wait; }
#downloads .share-detail { display: block; font-size: .8em; opacity: .8; margin-top: 2px; }
#downloads .share-btn.ready { background: rgba(240, 177, 85, .45); }
#downloads .share-btn.preparing, #downloads a.preparing { opacity: 1; background: linear-gradient(90deg, rgba(240, 177, 85, .6) var(--progress, 0%), rgba(240, 177, 85, .18) var(--progress, 0%)); transition: background .3s linear; }
#remix-music { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
#remix-music label { display: block; color: var(--ink-dim); margin-bottom: 10px; }
#remix-music select { margin-right: 10px; }
#remix-music button { border: 1px solid var(--accent); border-radius: var(--r-pill); padding: 10px 18px; background: transparent; color: var(--ink); cursor: pointer; transition: background .18s ease; }
#remix-music button:hover { background: rgba(240, 177, 85, .12); }
#remix-music button:disabled { opacity: .6; cursor: default; }

/* ---------- album cover / summary chips ---------- */
.cover-preview {
  margin-top: 18px; display: none; align-items: center; gap: 16px; max-width: 460px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(var(--wash-rgb), .03);
  backdrop-filter: blur(8px); padding: 14px 18px;
}
.cover-preview.visible { display: flex; }
.cover-preview img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line-strong); flex-shrink: 0; }
.cover-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cover-found { color: var(--accent); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
/* The album's name on two lines at most: on one, a 26-letter name was cut after 21 on a phone 320 px wide. */
.cover-info strong { font-size: 1rem; color: var(--ink); overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cover-info small { color: var(--muted); font-size: .82rem; }
/* The album link's error: only its icon and first sentence are red; how to recover reads as plain text. */
#album-error.error { color: var(--ink) !important; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px;
  margin-top: .45rem; }   /* one group with the hint above it */
#album-error:empty { display: none; }   /* no reserved blank line under the hint */
#album-error .error-icon::before { content: "!"; display: inline-grid; place-items: center; width: 1.15em; height: 1.15em;
  border-radius: 50%; background: var(--danger); color: var(--on-danger); font-weight: 800; font-size: .85em; }
#album-error .error-lead { color: var(--danger); font-weight: 600; flex: 1 1 0; min-width: 0; }
#album-error .error-next { flex-basis: 100%; white-space: normal; margin-top: 6px; color: var(--muted); }   /* its own line, not a blank one above it */
.album-summary { display: none; align-items: center; gap: 16px; margin-bottom: 26px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.album-summary.visible { display: flex; }
.album-summary img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line-strong); flex-shrink: 0; }
.album-summary .cover-info strong { color: var(--ink); }
.album-summary .cover-info small { color: var(--muted); }
/* The album's service as a badge on its cover (app-service-icon.js), on every screen that shows the cover. */
.album-cover { position: relative; display: inline-flex; flex-shrink: 0; }
.album-summary .album-cover .service-icon { position: absolute; left: auto; top: auto; right: -7px; bottom: -7px; width: 26px; height: 26px; padding: 4px;
  border: 0; border-radius: 50%; background: #fff; object-fit: contain; box-shadow: 0 2px 8px rgba(0, 0, 0, .45); transform: none;
  animation: none; }
.album-summary .album-cover .service-icon[hidden] { display: none; }
/* The format page's: one slim line between its title and the choice, not a section of its own. */
#step2-album-summary { gap: 12px; margin: 2px 0 4px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: rgba(var(--wash-rgb), .03); }
#step2-album-summary img { width: 40px; height: 40px; border-radius: 8px; }
#step2-album-summary .album-cover .service-icon { right: -5px; bottom: -5px; width: 20px; height: 20px; padding: 3px; }
#step2-album-summary .cover-info { gap: 1px; }
#step2-album-summary .cover-info strong { font-size: .95rem; -webkit-line-clamp: 1; }
#step2-album-summary .cover-info small { font-size: .78rem; }

.album-warning {
  margin: 10px 0 0; max-width: 460px; font-size: .82rem; line-height: 1.5; color: var(--accent);
  background: rgba(240, 177, 85, .1); border: 1px solid rgba(240, 177, 85, .3); border-radius: var(--r-md);
  padding: 10px 14px;
}
.album-warning[hidden] { display: none; }


/* The header's theme button (theme.js): one icon, the current choice's. */
.theme-toggle { flex: none; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; cursor: pointer; color: var(--ink-dim);
  background: transparent; border: 1px solid var(--line-strong); border-radius: 50%; transition: background .15s ease, color .15s ease; }
.theme-toggle:hover { background: var(--surface-hover); color: var(--ink); }
.theme-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: none; }
:root:not([data-theme-choice]) .theme-ico-system, [data-theme-choice="system"] .theme-ico-system,
[data-theme-choice="light"] .theme-ico-light, [data-theme-choice="dark"] .theme-ico-dark { display: block; }
/* The note that names the pick for a few seconds (theme.js), under the header, at the side the button is on. */
.theme-note { position: fixed; top: 72px; inset-inline-end: 16px; z-index: 60; max-width: calc(100% - 32px); padding: 10px 14px;
  border-radius: var(--r-md); background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-strong);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35); font-size: .9rem; pointer-events: none; }
.theme-note[hidden] { display: none; }
