/* The review's last screen (review/step4.html, app-review-finish.js): two rows that each open a sheet, More options and
   Create. The sheets are the look step's own (.look-sheet, .look-body, .look-foot in app-review-look-step.css). */

/* ---------- the two rows ---------- */
.finish-card { padding-block: 6px; }
.finish-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 4px; }
.finish-row + .finish-row { border-block-start: 1px solid var(--line); }
.finish-words { min-width: 0; display: grid; gap: 2px; }
.finish-words strong { font-size: 1.1rem; }
.finish-words small { font-size: .95rem; color: var(--muted); overflow-wrap: anywhere; }
.finish-change { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 6px 4px; border: 0; background: transparent;
  color: var(--accent); font: inherit; font-weight: 700; font-size: 1.05rem; cursor: pointer; }
.finish-change:focus-visible, .finish-more > summary:focus-visible, .music-auto-chip:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
:root[dir="rtl"] .finish-change svg, [dir="rtl"] .finish-change svg { transform: scaleX(-1); }

/* ---------- More options ---------- */
.finish-more { margin-top: 12px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); }
.finish-more > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 16px; cursor: pointer;
  list-style: none; font-size: 1.05rem; color: var(--ink); }
.finish-more > summary::-webkit-details-marker { display: none; }
.finish-more > summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-inline-end: 4px; border: solid currentColor; border-width: 0 2.4px 2.4px 0;
  transform: rotate(45deg) translateY(-2px); }
.finish-more[open] > summary::after { transform: rotate(225deg); }
.finish-more-body { display: grid; gap: 14px; padding: 4px 16px 16px; }
.finish-more[hidden], .finish-sheet[hidden], #finish-look-toggles[hidden] { display: none; }

/* ---------- finish for me if I leave (app-review-fallback.js) ---------- */
.review-fallback { display: grid; gap: 6px; padding-block-start: 12px; border-block-start: 1px solid var(--line); }
.review-fallback-row { min-height: 48px; cursor: pointer; align-items: center; gap: 12px; font-weight: 600; }
.review-fallback-row span { min-width: 0; overflow-wrap: anywhere; }
.review-fallback .legend, .review-fallback .error { margin: 0; overflow-wrap: anywhere; }
.review-fallback-row input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.review-fallback[hidden], .review-fallback .error[hidden] { display: none; }

/* ---------- the sheets ---------- */
.finish-body { display: grid; gap: 14px; align-content: start; }
.finish-body > * { min-width: 0; }
.finish-sheet .film-pace { display: grid; gap: 14px; }
.finish-sheet .film-pace[hidden] { display: none; }

/* Music: Automatic is a style chip of its own beside the picker's; the picker's body is drawn right in the sheet. */
.music-auto-chip { justify-self: start; min-height: 40px; padding: 7px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--ink); font: inherit; font-size: .88rem; cursor: pointer; }
.music-auto-chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.music-picker-slot { display: grid; gap: 10px; min-width: 0; }
.music-picker-slot .pill-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.music-picker-slot .pill-tabs button { flex: none; white-space: nowrap; min-height: 40px; }
.music-picker-slot .music-list { overflow: visible; }
.music-picker-slot .music-picker-footer { position: sticky; bottom: 0; justify-content: stretch; padding-block: 8px; background: var(--surface); }
.music-picker-slot .music-picker-footer button { flex: 1 1 0; min-width: 0; min-height: 44px; }

/* ---------- the music card (app-review-music-card.js) ---------- */
.fmc-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.finish-music-card { margin-top: 12px; padding: 14px 16px 16px; border: 1px solid var(--accent); border-radius: 12px; background: var(--surface);
  background-image: linear-gradient(135deg, rgba(240, 177, 85, .10), rgba(141, 123, 245, .06)); }
.fmc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fmc-head strong { font-size: 1.1rem; min-width: 0; }
.fmc-link { padding-inline: 2px; }
.fmc-link .fmc-ico { width: 18px; height: 18px; }
.fmc-line { margin: 2px 0 12px; color: var(--muted); font-size: .92rem; }
.fmc-track { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fmc-disc { flex: none; width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; color: var(--on-accent);
  background: linear-gradient(135deg, var(--gold), var(--violet)); }
.fmc-disc svg { width: 24px; height: 24px; }
.fmc-words { min-width: 0; display: grid; }
.fmc-words b { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fmc-words small { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.fmc-badge { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 700; font-size: .85rem; }
.fmc-badge svg { width: 16px; height: 16px; }
.fmc-listen { margin-top: 14px; display: flex; align-items: center; gap: 12px; }
.fmc-play { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding-block: 8px; padding-inline: 12px 18px; border: 0;
  border-radius: var(--r-pill); background: var(--gold); color: #14100a; font: inherit; font-weight: 800; cursor: pointer; }
.fmc-play svg { width: 22px; height: 22px; }
.fmc-play[disabled] { background: var(--surface-2); color: var(--ink-dim); border: 1px solid var(--line-strong); cursor: default; font-weight: 600; }
.fmc-play:focus-visible, .fmc-rplay:focus-visible, .fmc-choose:focus-visible, .fmc-chip:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.fmc-bar { flex: 1; min-width: 0; display: grid; gap: 4px; }
.fmc-prog { height: 6px; border-radius: 3px; overflow: hidden; border: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.fmc-prog i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--gold); }
/* The time is digits: read left to right whatever the page's direction. */
.fmc-time { direction: ltr; unicode-bidi: isolate; justify-self: start; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.fmc-nosample { margin: 14px 0 0; display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .9rem; }
.fmc-nosample svg { flex: none; width: 24px; height: 24px; }
.fmc-updated { margin: 10px 0 0; color: var(--accent); font-size: .88rem; }
.fmc-back { margin-top: 6px; }
.fmc-spin { animation: fmc-spin 1s linear infinite; transform-origin: 50% 50%; }
@keyframes fmc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fmc-spin { animation: none; } }
/* The swap and the back arrow point the way the page reads. */
[dir="rtl"] .fmc-back .fmc-ico { transform: scaleX(-1); }

/* ---------- the Other tracks sheet ---------- */
.fmc-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.fmc-chip { flex: none; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface-2);
  color: var(--ink); font: inherit; font-size: .88rem; cursor: pointer; white-space: nowrap; }
.fmc-chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.fmc-rows { display: grid; min-width: 0; }
.fmc-row { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.fmc-row.chosen { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.fmc-rplay { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--accent); background: transparent; color: var(--accent);
  display: grid; place-items: center; cursor: pointer; }
.fmc-rplay.on { background: var(--gold); border-color: var(--gold); color: #14100a; }
.fmc-rplay[disabled] { border-color: var(--line-strong); color: var(--muted); cursor: default; }
.fmc-rplay svg { width: 18px; height: 18px; }
.fmc-choose { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0; border: 0; background: transparent;
  color: var(--ink); font: inherit; text-align: start; cursor: pointer; }
.fmc-choose .fmc-words { flex: 1; }
.fmc-tag { font-size: .72rem; font-weight: 700; color: var(--violet); text-transform: uppercase; letter-spacing: .05em; }
.fmc-pick { flex: none; width: 26px; height: 26px; }
.fmc-on-disc { fill: var(--gold); }
.fmc-on-tick { stroke: #14100a; }
.fmc-off-ring { stroke: var(--line-strong); }
.fmc-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.fmc-status:empty { display: none; }
.fmc-listen[hidden], .fmc-nosample[hidden], .fmc-updated[hidden], #finish-music-short[hidden],.fmc-back[hidden], .fmc-badge[hidden], .fmc-words small[hidden] { display: none; }
