@font-face { font-family: "Heebo"; src: url(fonts/Heebo.ttf) format("truetype"); font-weight: 100 900; }
@font-face { font-family: "Frank Ruhl Libre"; src: url(fonts/FrankRuhlLibre.ttf) format("truetype"); font-weight: 300 900; }
@font-face { font-family: "Rubik"; src: url(fonts/Rubik.ttf) format("truetype"); font-weight: 300 900; }
@font-face { font-family: "Amatic SC"; src: url(fonts/AmaticSC-Bold.ttf) format("truetype"); font-weight: 700; }
@font-face { font-family: "Bellefair"; src: url(fonts/Bellefair-Regular.ttf) format("truetype"); font-weight: 400; }

/* Look: bright and friendly (Stitch "Warm Celebration"). White cards on a cool off-white page,
   no borders, soft shadows, pill buttons, one vivid coral for the next step. */
:root {
  --bg: #f7f9ff; --card: #fff; --soft: #f1f3f7; --soft-2: #e7eaf0;
  --ink: #1f2429; --muted: #5c6470; --line: #e8ebf1;
  --accent: #f2482a; --accent-ink: #fff; --accent-text: #c4300f; --accent-soft: rgba(242, 72, 42, .12);
  --warn: #8a5300; --warn-soft: #fff3dc;
  --star0: #f2482a; --star1: #2f7be1;
  --radius: 24px; --radius-sm: 16px;
  --shadow: 0 8px 24px -4px rgba(31, 36, 41, .06), 0 2px 6px -2px rgba(31, 36, 41, .04);
  --shadow-float: 0 12px 40px -8px rgba(31, 36, 41, .16), 0 4px 12px -2px rgba(31, 36, 41, .06);
  --glow: 0 6px 20px -2px rgba(242, 72, 42, .35);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121418; --card: #1b1e24; --soft: #252932; --soft-2: #2f3440; --ink: #f1f3f7; --muted: #9ba3af;
    --line: #2c313a; --accent-text: #ff7a5c; --warn: #f5c062; --warn-soft: #3a2c10;
    --shadow: 0 8px 24px -6px rgba(0, 0, 0, .5); --shadow-float: 0 12px 40px -8px rgba(0, 0, 0, .6); color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 13px; }
h2 { margin: 0 0 8px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
h3 { margin: 22px 0 10px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }

/* ---------- header ---------- */
header { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 24px; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line); position: sticky; top: 0; z-index: 6; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.brand .mark { width: 32px; height: 32px; border-radius: 9px; background: var(--accent) center / cover no-repeat
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cdefs%3E%3CclipPath id='c'%3E%3Crect x='40' y='44' width='48' height='42' rx='3'/%3E%3C/clipPath%3E%3C/defs%3E%3Crect width='120' height='120' rx='32' fill='%23f2482a'/%3E%3Crect x='30' y='30' width='56' height='50' rx='6' fill='%23fff' fill-opacity='.55' transform='rotate(-10 58 55)'/%3E%3Crect x='36' y='40' width='56' height='50' rx='6' fill='%23fff'/%3E%3Cg fill='%23f2482a' clip-path='url(%23c)'%3E%3Ccircle cx='75' cy='54' r='5'/%3E%3Cpath d='M40 86 55 64 66 77 72 70 88 86z'/%3E%3C/g%3E%3C/svg%3E");
  box-shadow: var(--glow); flex: none; }
.tag { font-size: 11px; font-weight: 600; color: var(--warn); background: var(--warn-soft); border-radius: 99px; padding: 3px 10px; }
.steps { display: flex; gap: 4px; list-style: none; margin: 0; padding: 4px; background: var(--soft); border-radius: 99px; }
.steps button { display: flex; align-items: center; gap: 8px; border: 0; background: none; color: var(--muted);
  padding: 7px 14px 7px 8px; border-radius: 99px; font-size: 14px; font-weight: 500; box-shadow: none; min-height: 0; }
.steps button b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px;
  background: var(--card); color: var(--muted); }
.steps button:not(:disabled):hover { background: var(--soft-2); }
.steps button:disabled { opacity: .55; cursor: default; }
.steps li.done button { color: var(--ink); }
.steps li.done button b { background: var(--ink); color: var(--card); }
.steps li.active button { background: var(--accent); color: var(--accent-ink); font-weight: 600; box-shadow: var(--glow); }
.steps li.active button b { background: rgba(255, 255, 255, .25); color: var(--accent-ink); }
.steps .short { display: none; }
@media (max-width: 720px) {
  header { padding: 10px 16px; }
  .brand .name, .brand .tag { display: none; }
  .steps { flex: 1; max-width: 420px; justify-content: space-between; }
  .steps li { flex: 1; }
  .steps button { width: 100%; justify-content: center; padding: 6px 8px 6px 6px; font-size: 13px; }
  .steps .long { display: none; }
  .steps .short { display: inline; }
  .steps li:not(.active) .short { display: none; }
  .steps li:not(.active) { flex: 0 0 auto; }
  .steps li:not(.active) button { padding: 6px; }
}

/* ---------- layout ---------- */
main { max-width: 1280px; margin: 0 auto; padding: 28px 24px 32px; }
.legal-links { margin: 28px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.legal-links a { text-decoration: none; }
.legal-links a:hover { text-decoration: underline; }
@media (max-width: 720px) { main { padding: 16px 12px 24px; } }
.card { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
@media (max-width: 720px) { .card { padding: 18px 16px; border-radius: 20px; } }
.grid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; } }

/* floating bottom bar with Back / Continue */
.actions { position: sticky; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 5;
  display: flex; justify-content: flex-end; align-items: center; gap: 12px;
  max-width: 780px; margin: 24px auto 0; padding: 8px 8px 8px 12px; border-radius: 99px;
  background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(12px); box-shadow: var(--shadow-float); }
.actions .grow { flex: 1; padding-left: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actions:has(> :only-child) { position: static; width: fit-content; margin-left: 0; padding-right: 12px; }   /* export: just the way back */
@media (max-width: 520px) { .actions .grow:empty, .actions .grow.muted { display: none; } .actions { gap: 6px; } .actions:not(:has(.grow:not(:empty):not(.muted))) .primary { margin-left: auto; } }
.actions button:not(.primary) { background: none; color: var(--muted); }
.actions button:not(.primary):hover { background: var(--soft); color: var(--ink); }

/* ---------- controls ---------- */
button { font: inherit; font-weight: 500; border: 0; background: var(--soft); color: var(--ink); border-radius: 99px;
  padding: 9px 16px; cursor: pointer; transition: background .15s, box-shadow .15s, opacity .15s; }
button:hover { background: var(--soft-2); }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button.primary { background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 16px;
  min-height: 48px; padding: 0 28px; box-shadow: var(--glow); }
button.primary:hover { background: #ff5a3c; }
button.primary:disabled { opacity: .4; cursor: default; box-shadow: none; }
button.mini { padding: 4px 11px; font-size: 13px; }
button.mini.on { background: var(--accent); color: var(--accent-ink); }
button.round { width: 48px; height: 48px; border-radius: 50%; padding: 0; font-size: 16px; flex: none;
  background: var(--accent); color: var(--accent-ink); box-shadow: var(--glow); }
input[type=text], .settings input[type=date], .settings select { width: 100%; font: inherit; font-weight: 400; padding: 10px 14px;
  border: 2px solid transparent; border-radius: 14px; background: var(--soft); color: var(--ink); }
input[type=text]:focus, .settings input[type=date]:focus, .settings select:focus { outline: none; border-color: var(--accent); background: var(--card); }
input[type=range] { accent-color: var(--accent); }
.progress { position: relative; height: 8px; background: var(--soft-2); border-radius: 99px; margin: 14px 0 4px; }
.progress > div { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--accent); transition: width .2s; }
.progress > span { position: absolute; left: 0; right: 0; top: 12px; text-align: right; font-size: 12px; color: var(--muted); }
#photo-progress, #export-progress { margin-bottom: 26px; }
@media (max-width: 520px) { .progress .mb { display: none; } }   /* keeps the upload status on one line on a phone */
.spinner { width: 28px; height: 28px; border: 3px solid var(--soft-2); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.rejects { margin: 12px 0; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13px; background: var(--warn-soft); color: var(--ink); }
.rejects ul { margin: 6px 0 0; padding-left: 18px; }
.rejects li { margin: 2px 0; }

/* ---------- step 1: photos & music ---------- */
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 16px 28px; border: 2px dashed transparent;
  border-radius: var(--radius); cursor: pointer; text-align: center; transition: .15s;
  background: radial-gradient(120% 90% at 50% 0%, var(--accent-soft), transparent 65%), var(--soft); }
.drop::before { content: ""; width: 60px; height: 60px; border-radius: 50%; margin-bottom: 8px;
  background: var(--card) center / 26px no-repeat
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2482a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4M6 10l6-6 6 6M5 20h14'/%3E%3C/svg%3E");
  box-shadow: var(--shadow); }
.drop strong { font-size: 17px; font-weight: 700; }
.drop:hover, .drop.over { border-color: var(--accent); }
.drop.small { padding: 14px; flex-direction: row; justify-content: center; gap: 8px; background: var(--soft); }
.drop.small::before { width: 30px; height: 30px; margin: 0; background-size: 15px; }
.linklike { display: inline-block; margin-top: 10px; color: var(--accent-text); cursor: pointer; font-size: 14px; font-weight: 500; }
.touch { display: none; }
@media (pointer: coarse) { .touch { display: inline; } .no-touch { display: none !important; } }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 6px; margin-top: 16px; max-height: 232px; overflow: hidden; }
.thumbs.open { max-height: none; }
.more-btn { display: block; margin: 12px auto 0; }
.thumbs img, .thumbs .ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--soft-2); }
.thumbs .ph { display: block; }
.gphotos { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.gphotos .muted { flex-basis: 100%; }
.gp-btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.gp-logo { width: 18px; height: 18px; border-radius: 50%;
  background: conic-gradient(#ea4335 0 25%, #fbbc04 0 50%, #34a853 0 75%, #4285f4 0); }
.gp-tip summary { cursor: pointer; color: var(--accent-text); font-weight: 500; width: fit-content; }
.gp-tip[open] summary { margin-bottom: 6px; }
.tracks, .playlist { list-style: none; padding: 0; margin: 0; }
.tracks li, .playlist li { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.tracks li:last-child, .playlist li:last-child { border-bottom: 0; }
.tracks li .name, .playlist li .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.playlist { counter-reset: n; }
.playlist li.song::before { counter-increment: n; content: counter(n); font-weight: 700; width: 18px; color: var(--accent-text); }
/* ---------- step 1: occasion ---------- */
.intro { margin: 4px 4px 22px; }
.intro h1 { margin: 0 0 6px; font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; }
.intro p { margin: 0; max-width: 62ch; color: var(--muted); font-size: 17px; }
@media (max-width: 720px) { .intro { margin: 4px 2px 16px; } .intro h1 { font-size: 28px; } .intro p { font-size: 15px; } }
.tc { position: relative; display: grid; place-items: center; align-content: center; aspect-ratio: 16 / 9; border-radius: 14px;
  overflow: hidden; container-type: inline-size; text-align: center; padding: 0 8%; }
.tc .t1 { font-size: 11cqw; line-height: 1.1; }
.tc .orn { display: block; width: 26cqw; height: 1px; background: currentColor; margin: 0 auto 4cqw; position: relative; }
.tc .orn::after { content: ""; position: absolute; left: 50%; top: 50%; width: 2.6cqw; height: 2.6cqw; background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg); }
.occasions { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 16px; margin-bottom: 20px; }
@media (max-width: 520px) { .occasions { grid-template-columns: 1fr 1fr; gap: 10px; } }
.occasion { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 10px 10px 14px; border-radius: 22px;
  background: var(--card); box-shadow: var(--shadow); }
.occasion:hover { background: var(--card); transform: translateY(-2px); }
.occasion .lbl { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 4px 0; font-size: 16px; font-weight: 700; }
.occasion .lbl em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--warn); background: var(--warn-soft); padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.occasion .about { padding: 0 4px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.occasion.on { box-shadow: 0 0 0 3px var(--accent), var(--glow); }
@media (max-width: 520px) { .occasion .about { display: none; } .occasion .lbl { font-size: 14px; } .occasion .lbl em { display: none; } }
.details .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
@media (max-width: 720px) { .details .fields { grid-template-columns: 1fr; } }
.details label { display: block; font-size: 14px; font-weight: 600; }
.details input { margin-top: 6px; }

/* ---------- step 3: the star ---------- */
.analysis { display: flex; gap: 16px; align-items: center; padding: 30px 10px; }
.analysis > div:last-child { flex: 1; }
.consent { max-width: 560px; padding: 6px 0; }
.consent p { margin: 0 0 16px; line-height: 1.5; }
.consent a, .legal-links a { color: var(--accent-text); }
.consent-tick { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 18px; cursor: pointer; }
.consent-tick input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.star-tabs { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.star-tab.active { background: var(--ink); color: var(--card); }
.star-tab em { font-style: normal; opacity: .7; font-size: 13px; margin-left: 4px; }
.star-tab.active .muted { color: inherit; opacity: .7; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.dot.s0 { background: var(--star0); } .dot.s1 { background: var(--star1); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px; }
@media (max-width: 520px) { .people { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
.person { position: relative; border-radius: 20px; padding: 0; background: none; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.person:hover { background: none; transform: translateY(-2px); }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border-radius: 20px; }
.person .count { position: absolute; left: 6px; bottom: 6px; background: rgba(255, 255, 255, .9); color: #1f2429; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; }
.person .badge { position: absolute; right: 6px; top: 6px; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 99px; }
.person.s0 { box-shadow: 0 0 0 3px var(--card), 0 0 0 6px var(--star0); } .person.s0 .badge { background: var(--star0); }
.person.s1 { box-shadow: 0 0 0 3px var(--card), 0 0 0 6px var(--star1); } .person.s1 .badge { background: var(--star1); }
.person.s0, .person.s1 { margin: 3px; }
.person .similar { position: absolute; left: 6px; top: 6px; background: var(--warn-soft); color: var(--warn); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; }

/* ---------- step 4: preview & edit ---------- */
.player-card { max-width: max(560px, min(1040px, (100vh - 280px) * 16 / 9 + 48px)); margin: 0 auto; }   /* play controls stay on screen */
@media (max-width: 720px) { .player-card { padding: 10px; } }
.notes { max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.notes:not(:empty) { margin-bottom: 14px; }
.note { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 16px; background: var(--warn-soft); color: var(--warn); font-size: 14px; }
.note button { margin-left: auto; flex: none; background: var(--ink); color: var(--card); font-weight: 600; }
.studio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; margin-top: 20px; }
@media (max-width: 1000px) { .studio { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .studio { grid-template-columns: 1fr; } }
.settings h2 { font-size: 18px; }
.theme-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 12px 0 4px; }
.theme-chip { display: flex; flex-direction: column; gap: 4px; padding: 0; background: none; font-size: 11px; font-weight: 600; color: var(--muted); }
.theme-chip:hover { background: none; }
.theme-chip .tc { border-radius: 10px; }
.theme-chip .tc .orn { display: none; }
.theme-chip .tc .t1 { font-size: 30cqw; }
.theme-chip.on { color: var(--ink); }
.theme-chip.on .tc { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--accent); }
.fine { margin-top: 20px; }
.fine summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; font-size: 16px; }
.fine summary::-webkit-details-marker { display: none; }
.fine summary::after { content: "›"; font-size: 22px; color: var(--muted); transition: transform .15s; }
.fine[open] summary::after { transform: rotate(90deg); }
.fine-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 8px; }
@media (max-width: 720px) { .fine-grid { grid-template-columns: 1fr; gap: 8px; } }
.fine-grid label { display: block; margin: 16px 0; font-size: 14px; font-weight: 600; }
.fine label.check { font-weight: 400; display: flex; gap: 12px; align-items: center; justify-content: space-between; margin: 12px 0; cursor: pointer; }
.settings label { display: block; margin: 16px 0; font-size: 14px; font-weight: 600; }
.settings label.check { font-weight: 400; display: flex; gap: 12px; align-items: center; justify-content: space-between; margin: 12px 0; cursor: pointer; }
.settings label.check input, .fine label.check input { order: 2; flex: none; appearance: none; width: 40px; height: 24px; margin: 0; border-radius: 99px;
  background: var(--soft-2); position: relative; cursor: pointer; transition: background .15s; }
.settings label.check input::before, .fine label.check input::before { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .15s; }
.settings label.check input:checked, .fine label.check input:checked { background: var(--accent); }
.settings label.check input:checked::before, .fine label.check input:checked::before { transform: translateX(16px); }
.settings output { float: right; color: var(--accent-text); font-weight: 600; }
.settings input[type=range] { width: 100%; margin-top: 8px; }
.settings input[type=text], .settings input[type=date], .settings select { margin-top: 6px; }
h2.sp { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.seg { display: flex; gap: 2px; margin-top: 8px; padding: 3px; background: var(--soft); border-radius: 99px; }
.seg button { flex: 1; background: none; padding: 6px 4px; font-size: 13px; }
.seg button:hover { background: var(--soft-2); }
.seg button.on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.stats { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.stats b { color: var(--ink); }
.stats .warn { color: var(--warn); background: var(--warn-soft); border-radius: 12px; padding: 8px 10px; margin-top: 8px; }
.max-hint { margin: -8px 0 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.beat-title { font-weight: 600; margin: 16px 0 2px; }
.beat-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.beat-row .name { flex: 1 1 100%; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.beat-fix .tip { font-size: 12px; margin-top: 6px; }
.age-strip-wrap { margin-top: 10px; }
.age-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.age-strip canvas { width: 100%; aspect-ratio: 1; border-radius: 10px; background: var(--soft-2); }
.age-strip .face { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.age-strip .face span { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.age-strip-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.stage { position: relative; background: #000; border-radius: 18px; overflow: hidden; }
.stage canvas { display: block; width: 100%; height: auto; }
.busy { position: absolute; inset: 0; display: flex; gap: 12px; align-items: center; justify-content: center; color: #fff; background: rgba(0, 0, 0, .55); }
.controls { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.scrub { position: relative; flex: 1; height: 24px; cursor: pointer; }
.scrub canvas { width: 100%; height: 24px; display: block; }
.scrub .head { position: absolute; top: -3px; bottom: -3px; width: 3px; border-radius: 2px; background: var(--accent); left: 0; pointer-events: none; }
.time { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); min-width: 92px; text-align: right; }
.export-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding: 16px 18px;
  border-radius: 20px; background: var(--soft); flex-wrap: wrap; }
.price { display: flex; flex-direction: column; }
.price strong { font-size: 16px; }


/* ---------- step 5: export ---------- */
.export-card { max-width: 1040px; margin: 0 auto;
  background: radial-gradient(90% 120% at 100% 0%, var(--accent-soft), transparent 60%), var(--card); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { background: var(--card); box-shadow: var(--shadow); border-radius: 99px; padding: 6px 14px; font-size: 14px; font-weight: 500; }
.export-card .export-row { background: var(--card); box-shadow: var(--shadow); }
.export-show { margin-top: 18px; }
.export-show .ex-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
#export-strip .scr { width: 96px; }
.download { display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px; margin-top: 14px; border-radius: 99px;
  background: var(--ink); color: var(--card); text-decoration: none; font-weight: 600; }
.tips-title { max-width: 1040px; margin: 32px auto 12px; }
.tips { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .tips { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tips { grid-template-columns: 1fr; gap: 10px; } }
.tip { background: var(--card); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); }
.tip b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); }
.tip h3 { margin: 12px 0 4px; font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.tip p { margin: 0; font-size: 14px; color: var(--muted); }
#step-export .actions { max-width: 1040px; }
.narrow { display: none; }
@media (max-width: 520px) { .wide { display: none; } .narrow { display: inline; } }

/* ---------- phones and touch screens ---------- */
button, summary, label, .drop { -webkit-tap-highlight-color: transparent; }
header { padding-top: max(12px, env(safe-area-inset-top)); padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
@media (max-width: 720px) {
  header { padding-top: max(10px, env(safe-area-inset-top)); padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  main { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
}
/* iPhones zoom into any text box set smaller than 16px */
@media (pointer: coarse), (max-width: 720px) {
  input[type=text], .settings input[type=date], .settings select { font-size: 16px; }
}
/* fingers need bigger targets than a mouse */
@media (pointer: coarse) {
  button.mini { min-height: 36px; padding: 6px 14px; }
  .seg button { min-height: 38px; }
  .steps button { min-height: 36px; }
  .scrub { height: 40px; display: flex; align-items: center; }
  .settings input[type=range] { height: 28px; }
}
/* hover lifts only where there is a mouse (on a phone they stick after a tap) */
@media (hover: none) {
  .occasion:hover, .person:hover { transform: none; }
  .actions button:not(.primary):hover, .theme-chip:hover, .person:hover, .seg button:not(.on):hover { background: none; }
  .occasion:hover { background: var(--card); }
}
/* while typing on a phone, the floating bar steps aside so it doesn't cover the text box */
@media (max-width: 720px) { body:has(input[type=text]:focus) .actions { position: static; } }
/* tap the picture to play; full-screen button */
.stage { cursor: pointer; }
button.icon { width: 44px; height: 44px; padding: 0; border-radius: 50%; flex: none; background: var(--soft) center / 20px no-repeat
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6470' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5'/%3E%3C/svg%3E"); }
.stage:fullscreen { border-radius: 0; display: grid; place-items: center; background: #000; }
.stage:fullscreen canvas { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 520px) { .controls { gap: 10px; } .time { min-width: 0; font-size: 12px; } }

/* ---------- step 4: advanced editing ---------- */
.editor { max-width: max(560px, min(1040px, (100vh - 280px) * 16 / 9 + 48px)); margin: 20px auto 0; }

/* ---------- step 4: chapters ---------- */
.chapters-card { max-width: max(560px, min(1040px, (100vh - 280px) * 16 / 9 + 48px)); margin: 20px auto 0; }
.ch-head { display: flex; align-items: center; justify-content: space-between; font-size: 18px; cursor: pointer; }
.switch { position: relative; flex: none; }
.switch input { appearance: none; display: block; width: 44px; height: 26px; margin: 0; border-radius: 99px; background: var(--soft-2); cursor: pointer; transition: background .15s; }
.switch input::before { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .15s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::before { transform: translateX(18px); }
#ch-tip { margin: 4px 0 8px; }
.ch-list { display: flex; flex-direction: column; }
.ch-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-radius: 0; background: none; text-align: left; border-bottom: 1px solid var(--line); }
.ch-row:hover { background: var(--soft); }
.ch-row:last-child { border-bottom: 0; }
.ch-chip { position: relative; flex: none; width: 56px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; }
.ch-chip img, .ch-tile-bg img, .ch-card-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ch-row .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ch-row .nm b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-row .nm span { font-size: 13px; color: var(--muted); }
.ch-row .chev { font-size: 22px; color: var(--muted); }
.ch-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ch-style { margin-top: 14px; }
.scr.ch-tile { display: grid; place-items: center; }
.ch-tile-bg { position: absolute; inset: 0; }
.ch-tile-bg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.ch-tile-t { position: relative; padding: 0 6px; color: #fff; font-size: 12px; font-weight: 700; line-height: 1.2; text-align: center; }
.ch-card { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; display: grid; place-items: center; }
.ch-card-bg { position: absolute; inset: 0; }
.ch-card.tinted .ch-card-bg::after { content: ""; position: absolute; inset: 0; background: var(--tint); }
.ch-card-text { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 0 8%; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
#ch-card-t1 { font-size: clamp(20px, 6vw, 34px); line-height: 1.1; }
#ch-card-t2 { font-size: 13px; letter-spacing: .08em; }
.ch-field { display: block; margin: 12px 0 0; font-size: 14px; font-weight: 600; }
.ch-field input { margin-top: 6px; }
.ch-row2 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 14px; }
.ch-lbl { display: block; font-size: 14px; font-weight: 600; margin-top: 14px; }
.ch-row2 .ch-lbl { margin: 0; flex: 1 1 100%; }
.stepper { display: inline-flex; align-items: center; gap: 8px; }
.stepper b { min-width: 42px; text-align: center; font-variant-numeric: tabular-nums; }
.stepper button:disabled { opacity: .35; cursor: default; }
.ch-note { margin: 6px 0 0; }
.ch-note:empty { display: none; }
.ch-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.ch-swatches .sw { width: 34px; height: 34px; padding: 0; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.ch-swatches .sw.auto { width: auto; padding: 0 12px; font-size: 13px; background: var(--soft); box-shadow: none; }
.ch-swatches .sw.on { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--accent); }
.ch-designs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ch-photos { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.ch-photos .tile.on { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--accent); }
.ch-sheet .sheet-move { justify-content: flex-end; margin-top: 16px; }
.ed-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ed-head h2 { margin: 0; font-size: 18px; flex: 1; white-space: nowrap; }
.ed-head h2 .muted { font-weight: 400; font-size: 14px; }
.ed-edits { color: var(--accent-text); font-weight: 600; }
@media (max-width: 520px) { .ed-head h2 { flex-basis: 100%; } .ed-edits { margin-right: auto; } .ed-edits:empty { display: none; } }
.ed-tip { margin: 4px 0 12px; }
.filmstrip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.scr { position: relative; flex: none; width: 128px; aspect-ratio: var(--ar, 16 / 9); padding: 0; border-radius: 10px; overflow: hidden;
  background: #111; scroll-snap-align: start; }
.scr:hover { background: #111; }
.scr img { position: absolute; object-fit: cover; display: block; }
.scr .no { position: absolute; left: 4px; bottom: 4px; min-width: 20px; padding: 0 5px; border-radius: 99px; font-size: 11px; font-weight: 600;
  line-height: 18px; color: #fff; background: rgba(0, 0, 0, .55); }
.scr .marks { position: absolute; right: 4px; top: 4px; display: flex; gap: 3px; }
.scr .marks i { width: 20px; height: 20px; border-radius: 50%; background: var(--accent) center / 12px no-repeat; }
.scr .m-keep { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z' fill='white'/%3E%3C/svg%3E") !important; }
.scr .m-focus { background-color: var(--ink) !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Ccircle cx='12' cy='12' r='7'/%3E%3Ccircle cx='12' cy='12' r='1.5' fill='white'/%3E%3C/svg%3E") !important; }
.scr .m-move { background-color: #2f7be1 !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M8 8l-4 4 4 4M16 8l4 4-4 4'/%3E%3C/svg%3E") !important; }
.scr .m-hold { width: auto !important; padding: 0 5px; font: 700 11px/20px Rubik, sans-serif; font-style: normal; color: #fff; background-color: var(--ink) !important; }
.scr.dragging { opacity: .4; transform: scale(.94); }
.scr { -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.scr img { -webkit-user-drag: none; pointer-events: none; }
.pick-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; padding: 8px 8px 8px 14px; border-radius: 16px;
  background: var(--accent-soft); color: var(--accent-text); font-size: 14px; font-weight: 500; }
.pick-bar span { flex: 1 1 200px; }
.pick-bar button { background: var(--card); }
.editor.picking .scr:not(.pick-src) { box-shadow: 0 0 0 2px var(--accent); }
.scr.pick-src { opacity: .35; }
.sheet-move .move-to { font-weight: 600; }
.sheet-len, .sheet-trans { margin-top: 10px; }
.sheet-trans .ch-lbl { margin: 0; }
.sheet-trans .ch-lbl .muted { font-weight: 400; }
.fine-tip { margin: -8px 0 12px; font-size: 12px; }
.keep-note { margin: 12px 0 0; font-size: 12px; }
.sheet-len .ch-lbl { margin: 0; }
.sheet-len .ch-lbl .muted { font-weight: 400; }
.sheet-len .seg button:disabled { opacity: .35; cursor: default; }
.sheet-layout { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.scr.drop-before { box-shadow: -5px 0 0 0 var(--accent); }
.scr.drop-after { box-shadow: 5px 0 0 0 var(--accent); }
.scr[draggable=true] { cursor: grab; }
.sheet-move { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.sheet-move button { display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; font-size: 14px; }
.sheet-move button:disabled { opacity: .35; cursor: default; }
.sheet-move svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.scr.now { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--accent); margin: 0 3px; }
@media (max-width: 520px) { .scr { width: 104px; } }
.left-out { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.left-out summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; font-size: 15px; min-height: 36px; }
.left-out summary::-webkit-details-marker { display: none; }
.left-out summary::after { content: "›"; font-size: 22px; color: var(--muted); transition: transform .15s; }
.left-out[open] summary::after { transform: rotate(90deg); }
.left-out p { margin: 4px 0 10px; }
.tray { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
@media (max-width: 520px) { .tray { grid-template-columns: repeat(4, 1fr); } }
.tile { position: relative; padding: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--soft-2); }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile.removed img { opacity: .55; }
.tile .why { position: absolute; left: 4px; bottom: 4px; font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 99px;
  background: rgba(255, 255, 255, .9); color: #1f2429; }
.tile .plus { position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 700; line-height: 1; }

/* the edit sheet: a centred card on a computer, a bottom sheet on a phone */
dialog.sheet { border: 0; padding: 18px 20px 20px; border-radius: var(--radius); width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  background: var(--card); color: var(--ink); box-shadow: var(--shadow-float); overflow: auto; overscroll-behavior: contain; }
dialog.sheet::backdrop { background: rgba(20, 22, 26, .45); }
@media (max-width: 720px) {
  dialog.sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 24px 24px 0 0; max-height: 88dvh;
    padding: 14px 16px max(16px, env(safe-area-inset-bottom)); }
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 16px; }
.sheet-busy { display: none; align-items: center; gap: 8px; margin-left: auto; margin-right: 10px; font-size: 13px; color: var(--muted); }
.sheet-busy .spinner { width: 16px; height: 16px; border-width: 2px; }
body.building .sheet-busy { display: inline-flex; }
.sheet .close { width: 36px; height: 36px; padding: 0; border-radius: 50%; }
.sheet-pick { display: flex; gap: 8px; margin-bottom: 10px; }
.sheet-pick button { width: 56px; height: 56px; padding: 0; border-radius: 12px; overflow: hidden; opacity: .6; }
.sheet-pick button.on { opacity: 1; box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--accent); }
.sheet-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.focus-pic { position: relative; width: fit-content; margin: 0 auto; cursor: crosshair; touch-action: manipulation; border-radius: 12px; overflow: hidden; }
.focus-pic img { display: block; max-width: 100%; max-height: min(46vh, 420px); }
.focus-pic .win { position: absolute; border: 2px dashed #fff; border-radius: 4px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .35); pointer-events: none; transition: all .25s; }
.focus-pic .dot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #fff;
  border: 4px solid var(--accent); box-shadow: 0 1px 4px rgba(0, 0, 0, .4); pointer-events: none; }
.sheet-hint { margin: 8px 0 12px; text-align: center; }
.linkbtn { background: none; padding: 0; color: var(--accent-text); font-size: inherit; text-decoration: underline; min-height: 0 !important; }
.linkbtn:hover { background: none; }
.sheet-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sheet-actions button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px; border-radius: 16px; font-size: 13px; white-space: nowrap; }
.sheet-actions svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sheet-actions button.on { background: var(--accent); color: var(--accent-ink); }
#act-keep.on svg { fill: currentColor; }
.swap-box h3 { margin: 16px 0 8px; }
.sheet-note { margin: 12px 0 0; }
.toast { position: fixed; left: 50%; bottom: calc(max(14px, env(safe-area-inset-bottom)) + 76px); z-index: 20; transform: translate(-50%, 12px);
  width: max-content; max-width: calc(100vw - 32px); padding: 10px 18px; border-radius: 99px; background: var(--ink); color: var(--card); font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-float); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.has-undo { display: flex; align-items: center; gap: 12px; padding-right: 6px; pointer-events: auto; }
.toast.has-undo:not(.show) { pointer-events: none; }
.toast button { padding: 5px 14px; font-size: 14px; font-weight: 600; background: var(--accent); color: var(--accent-ink); flex: none; }
.sheet-note:empty { display: none; }

/* ---------- tester feedback ---------- */
.fb-btn { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 7px 14px 7px 10px; font-size: 14px; color: var(--muted); }
.fb-btn:hover { color: var(--ink); }
.fb-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* below ~1100px the header has no room for the word: just the icon (and no "beta" tag, so the steps keep one line) */
@media (max-width: 1099px) { .fb-btn { width: 36px; height: 36px; padding: 0; justify-content: center; } .fb-btn span, .brand .tag { display: none; } }
.fb-lead { margin: -4px 0 12px; }
.fb-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.fb-kinds button { padding: 7px 14px; font-size: 14px; }
.fb-kinds button.on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
@media (pointer: coarse) { .fb-kinds button { min-height: 38px; } }
.fb textarea { display: block; width: 100%; min-height: 130px; resize: vertical; font: inherit; font-weight: 400; padding: 10px 14px;
  border: 2px solid transparent; border-radius: 14px; background: var(--soft); color: var(--ink); }
.fb textarea:focus, .fb input[type=text]:focus { outline: none; border-color: var(--accent); background: var(--card); }
.fb input[type=text] { margin-top: 10px; }
.fb-shot { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; cursor: pointer; }
.fb-shot input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); flex: none; }
.fb-shot span { flex: 1; }
.fb-shot img { height: 44px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #000; flex: none; }
.fb-shot input:not(:checked) ~ img { opacity: .35; }
.fb-ctx { margin: 10px 0 0; }
.fb-err { margin: 10px 0 0; padding: 8px 12px; border-radius: 12px; font-size: 14px; background: var(--warn-soft); color: var(--warn); }
.fb-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 14px; }
.fb-actions .muted { flex: 1; }
.fb-actions .primary { min-width: 120px; }
@media (pointer: coarse), (max-width: 720px) { .fb textarea { font-size: 16px; } }

/* playlist rows: tap a song to choose the part that plays */
.playlist .song-open { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  background: none; border: 0; box-shadow: none; padding: 2px 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.playlist .song-open .name { flex: none; max-width: 100%; }
.playlist .song-open .part { font-size: 13px; color: var(--muted); }
.playlist .song-open:hover .part, .playlist .song-open:focus-visible .part { color: var(--accent-text); }
.music-card .playlist { margin-top: 4px; }

/* the song editor */
.song-lead { margin: 0 0 12px; font-size: 14px; }
.wave { position: relative; background: var(--soft); border-radius: var(--radius-sm); padding: 8px; }
.wave canvas { display: block; width: 100%; height: 96px; touch-action: none; cursor: ew-resize; }
.wave .spinner { position: absolute; left: 50%; top: 50%; margin: -14px 0 0 -14px; }
.song-times { display: flex; justify-content: space-between; gap: 8px; margin: 8px 2px 12px; font-size: 14px; font-weight: 500; }
.song-cuts { margin: -6px 2px 12px; font-size: 13px; }
.song-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.song-actions .grow { flex: 1; }
#song-done { margin-left: auto; }
.song-actions button.on { box-shadow: inset 0 0 0 2px var(--accent); color: var(--accent-text); }
@media (max-width: 720px) {
  .song-actions button { flex: 1 1 auto; }
  .song-actions .grow { display: none; }
  .song-actions #song-done { flex-basis: 100%; }
}

/* playlist: drag grip, and how two songs join */
.playlist .grip { flex: none; width: 28px; height: 36px; display: grid; place-items: center; margin: 0 -4px 0 -6px;
  color: var(--muted); cursor: grab; touch-action: none; border-radius: 10px; }
.playlist .grip svg { width: 10px; height: 16px; fill: currentColor; }
.playlist .grip:hover { background: var(--soft); }
.playlist li.join { justify-content: center; flex-wrap: wrap; gap: 4px 10px; padding: 4px 0; border-bottom: 0; }
.playlist li.song:has(+ li.join) { border-bottom: 0; }
.playlist li.join select { width: auto; margin: 0; padding: 5px 30px 5px 14px; font-size: 13px; font-weight: 500;
  font-family: inherit; border-radius: 999px; background-color: var(--accent-soft); color: var(--accent-text); border: 0; cursor: pointer; }
.playlist .join-tip { flex-basis: 100%; text-align: center; font-size: 12px; color: var(--muted); }
.playlist.dragging li.join { display: none; }
.playlist.dragging { user-select: none; }
.playlist li.lifted { background: var(--card); box-shadow: var(--shadow-float); border-radius: var(--radius-sm); position: relative; z-index: 1; }
.playlist li.lifted .grip { cursor: grabbing; }
.music-card .music-start { display: block; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.music-card .music-start .seg { max-width: 420px; }
.music-start-tip { margin: 6px 0 0; font-size: 13px; }
.fb-hint { position: fixed; z-index: 7; top: 64px; right: 12px; max-width: calc(100vw - 24px); padding: 10px 16px; border-radius: 16px;
  background: var(--ink); color: var(--card); font-size: 14px; font-weight: 500; box-shadow: var(--shadow-float); animation: fb-hint-in .25s ease-out; }
.fb-hint:hover { background: var(--ink); }
.fb-hint::before { content: ""; position: absolute; top: -5px; right: var(--arrow, 16px); width: 12px; height: 12px; border-radius: 2px;
  background: inherit; transform: rotate(45deg); }
@keyframes fb-hint-in { from { opacity: 0; transform: translateY(-6px); } }
