:root {
  --bg: #f4efe7; --card: #fffdf9; --ink: #2b2426; --muted: #857a72; --line: #e6ddd2; --gold: #b08a4c; --gold-soft: #f3ead9;
  --r: 18px; --ease: cubic-bezier(.2, .8, .2, 1);
  --top: 60px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 300 15px/1.5 'Inter', system-ui, sans-serif; min-height: 100svh; }
h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; line-height: 1.08; }
h2 { font-size: 34px; }
h3 { font-size: 21px; margin-bottom: 10px; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.lead { color: var(--muted); margin: 6px 0 20px; }
.muted { color: var(--muted); font-size: 13px; }
.kicker { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 600; }

/* ── header ── */
.top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 18px; height: var(--top); padding: 0 20px; background: rgba(244, 239, 231, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.logo { width: 32px; height: 32px; border-radius: 10px; background: var(--ink); color: #e6cf9f; display: grid; place-items: center; font-size: 15px; }
.bname { font: 500 20px 'Cormorant Garamond', serif; }
.bname i { color: var(--gold); }
.tabs { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: inline-flex; align-items: center; height: 36px; line-height: 1; border: 0; background: none; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 400; color: var(--muted); cursor: pointer; white-space: nowrap; transition: .2s; }
.tab b { font-weight: 500; margin-right: 6px; color: var(--gold); }
.tab:hover { color: var(--ink); }
.tab.on { background: var(--ink); color: #fff; }
.tab.on b { color: #e6cf9f; }
.tab.done:not(.on) { color: var(--ink); }
.saved { font-size: 12px; color: var(--muted); opacity: 0; transition: opacity .3s; white-space: nowrap; min-width: 90px; text-align: right; }
.saved.on { opacity: 1; }
.saved.err { color: #b4443a; }

/* ── layout: preview stage + panel ── */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 540px); min-height: calc(100svh - var(--top)); }
.stage { position: sticky; top: var(--top); height: calc(100svh - var(--top)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 26px 20px 96px; overflow: hidden; }
.stage-bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 50% at 50% 42%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 70%),
  radial-gradient(120% 90% at 50% 40%, #efe7da 0%, #e2d6c4 100%); }
.stage-bg::after { content: ''; position: absolute; inset: 0; opacity: .4; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .4 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"); }
.device { --h: 640px; position: relative; height: var(--h); aspect-ratio: 390 / 844; border-radius: calc(var(--h) * .07); padding: calc(var(--h) * .016);
  background: linear-gradient(145deg, #2c2b2e, #0e0e10 40%, #1e1e21); box-shadow: 0 40px 80px rgba(40, 25, 15, .28), 0 10px 24px rgba(40, 25, 15, .2), inset 0 0 0 1.5px rgba(255, 255, 255, .12); flex: none; }
.device-in { position: relative; width: 100%; height: 100%; border-radius: calc(var(--h) * .055); overflow: hidden; background: #f3ece2; }
.device-in iframe { position: absolute; top: 0; left: 0; width: 390px; height: 844px; border: 0; transform-origin: 0 0; opacity: 0; transition: opacity .35s ease; background: transparent; }
.device-in iframe { pointer-events: none; }
.device-in iframe.on { opacity: 1; pointer-events: auto; z-index: 1; }
.device-in::after { content: ''; position: absolute; top: calc(var(--h) * .013); left: 50%; transform: translateX(-50%); width: 28%; height: calc(var(--h) * .033); border-radius: 99px; background: #0b0b0c; z-index: 3; pointer-events: none; }
.pv-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; z-index: 2; opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.pv-poster.on { opacity: 1; }
.pv-loading { position: absolute; inset: auto 0 14px; display: flex; justify-content: center; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .2s; }
.pv-loading.on { opacity: 1; }
.pv-loading span { width: 34px; height: 4px; border-radius: 4px; background: rgba(43, 36, 38, .25); overflow: hidden; position: relative; }
.pv-loading span::after { content: ''; position: absolute; inset: 0; width: 40%; background: var(--ink); border-radius: 4px; animation: load .8s ease-in-out infinite alternate; }
@keyframes load { to { transform: translateX(150%); } }
.wm { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-28deg); font: 600 calc(var(--h) * .022) 'Inter', sans-serif; letter-spacing: .5em; color: rgba(255, 255, 255, .4); text-shadow: 0 0 6px rgba(0, 0, 0, .3); pointer-events: none; z-index: 5; }
.stage-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.seg { display: inline-flex; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font-size: 12.5px; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed=true] { background: var(--ink); color: #fff; }
.tool { border: 1px solid var(--line); background: rgba(255, 255, 255, .7); border-radius: 999px; padding: 8px 14px; font-size: 12.5px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: .2s; }
.tool:hover { background: #fff; border-color: var(--ink); }
.tool .ts { display: none; }

.panel { background: var(--card); border-left: 1px solid var(--line); padding: 30px 30px 120px; min-width: 0; }
.step { animation: stepIn .4s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } }
.group { padding: 20px 0; border-top: 1px solid var(--line); }
.group:first-of-type { border-top: 0; padding-top: 4px; }
.group > .gh { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.group > .gh h3 { margin: 0; }
.group > .gh .link { border: 0; background: none; color: var(--gold); font-size: 12.5px; cursor: pointer; text-decoration: underline; }

/* ── fields ── */
.row { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .row.two { grid-template-columns: 1fr 1fr; } }
label.f { display: block; }
label.f > span { display: block; font-size: 12px; font-weight: 500; margin-bottom: 6px; }
label.f > small { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }
input[type=text], input[type=email], input[type=date], input[type=time], input[type=url], textarea, select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: 300 16px/1.3 'Inter', sans-serif;
  background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; min-height: 46px;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176, 138, 76, .18); }
textarea { min-height: 92px; resize: vertical; }
.req::after { content: ' *'; color: #b4443a; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 15px; font-size: 13px; font-weight: 400; cursor: pointer; transition: .18s; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { border-color: var(--ink); }
.chip.on, .chip[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.dark { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ── designs ── */
.designs { display: grid; gap: 16px 12px; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); margin-top: 14px; }
.design { border: 0; background: none; cursor: pointer; text-align: left; padding: 0; }
.design .th { display: block; position: relative; aspect-ratio: 300 / 649; border-radius: 14px; overflow: hidden; background: #e9e2d8 center top / cover no-repeat; box-shadow: 0 6px 16px rgba(43, 36, 38, .12); transition: transform .3s var(--ease), box-shadow .3s; outline: 2px solid transparent; outline-offset: 3px; }
.design:hover .th { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(43, 36, 38, .18); }
.design.on .th { outline-color: var(--ink); }
.design.on .th::after { content: '✓'; position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; }
.design .nm { display: block; margin-top: 8px; font-size: 13px; font-weight: 500; }
.design .ds { display: block; font-size: 11px; color: var(--muted); line-height: 1.35; }
.badge { position: absolute; left: 7px; top: 7px; background: rgba(255, 255, 255, .92); font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; font-weight: 600; }

/* ── style studio ── */
.palettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.pal { border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 10px 8px 9px; cursor: pointer; text-align: center; transition: .18s; }
.pal:hover { border-color: #bfb3a6; }
.pal.on { border-color: var(--ink); box-shadow: 0 6px 18px rgba(43, 36, 38, .12); }
.pal .sw { display: flex; justify-content: center; margin-bottom: 7px; }
.pal .sw i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); margin: 0 -4px; }
.pal span { font-size: 11.5px; line-height: 1.2; display: block; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.tile { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 6px; cursor: pointer; font-size: 12px; text-align: center; transition: .18s; line-height: 1.25; }
.tile:hover { border-color: #bfb3a6; }
.tile.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.tile .ic { display: block; height: 30px; margin: 0 auto 6px; }
.fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.font { border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 10px 10px; cursor: pointer; text-align: center; transition: .18s; }
.font.on { border-color: var(--ink); box-shadow: 0 6px 18px rgba(43, 36, 38, .12); }
.font .smp { display: block; font-size: 24px; line-height: 1.1; height: 40px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #5a3440; }
.font span { font-size: 11.5px; color: var(--muted); }
.colors { display: flex; flex-wrap: wrap; gap: 16px; }
.color { display: flex; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; }
.color input[type=color] { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; padding: 3px; background: #fff; cursor: pointer; }
.color input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.color input[type=color]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.toggles { display: flex; gap: 18px; flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; border-radius: 99px; background: #d9d0c5; position: relative; cursor: pointer; transition: .2s; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked { background: var(--ink); }
.switch input:checked::after { left: 21px; }
.hint { background: var(--gold-soft); border-radius: 14px; padding: 12px 14px; font-size: 13px; color: #6d5a3a; }

/* schedule, palette, photos */
.sched { display: grid; gap: 10px; }
.srow { display: grid; grid-template-columns: 96px 1fr 40px; gap: 8px; align-items: start; }
.srow .wide { grid-column: 2 / 3; }
.icon-btn { width: 40px; height: 46px; border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; color: var(--muted); font-size: 15px; }
.icon-btn:hover { color: #b4443a; border-color: #b4443a; }
.palette { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.palette input[type=color] { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; padding: 3px; background: #fff; cursor: pointer; }
.palette input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.palette input[type=color]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.drop { display: block; border: 1.5px dashed #cdbfb1; border-radius: var(--r); padding: 26px 16px; text-align: center; background: #fff; cursor: pointer; transition: .2s; }
.drop.over { border-color: var(--gold); background: #fffaf1; }
.drop b { display: block; font: 500 22px 'Cormorant Garamond', serif; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; margin-top: 14px; }
.ph { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: #eee center / cover; }
.ph button { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; }
.ph i { position: absolute; left: 6px; bottom: 6px; font-style: normal; font-size: 11px; background: rgba(255, 255, 255, .9); padding: 1px 7px; border-radius: 999px; }

/* publish & done */
.pkgs { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .pkgs { grid-template-columns: 1fr 1fr; } }
.pkg { position: relative; border: 1.5px solid var(--line); background: #fff; border-radius: var(--r); padding: 16px; cursor: pointer; text-align: left; transition: .2s; }
.pkg.on { border-color: var(--ink); box-shadow: 0 8px 24px rgba(43, 36, 38, .1); }
.pkg b { display: block; font: 500 24px 'Cormorant Garamond', serif; }
.pkg .price { color: var(--gold); font-weight: 500; font-size: 13px; }
.pkg ul { list-style: none; margin-top: 8px; font-size: 13px; color: var(--muted); }
.pkg li::before { content: '✓ '; color: var(--gold); }
.pkg .tag { position: absolute; top: -10px; right: 12px; background: var(--gold); color: #fff; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.sum { display: grid; grid-template-columns: 110px 1fr; gap: 6px 14px; font-size: 14px; }
.sum dt { color: var(--muted); }
.sum dd { white-space: pre-line; }
.unlock { border: 1.5px solid var(--gold); background: #fffaf1; border-radius: var(--r); padding: 18px; }
.unlock > b { display: block; font: 500 22px 'Cormorant Garamond', serif; }
.unlock > p { font-size: 13px; color: var(--muted); margin: 4px 0 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-top: 16px; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.err { color: #b4443a; font-size: 13px; margin-top: 10px; }
.done { text-align: center; padding: 20px 0 10px; }
.done .big { font-size: 52px; display: block; margin-bottom: 8px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-top: 14px; }
.ttl { display: block; font: 500 22px 'Cormorant Garamond', serif; margin-bottom: 4px; }
.linkbox input { font-size: 15px; margin-bottom: 10px; background: #fbf8f3; }
.card .row.two .btn { align-self: stretch; }
.private p { margin: 8px 0; font-size: 14px; }
.linkbtn { border: 0; background: none; color: var(--gold); font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: underline; }
.mine { display: grid; gap: 6px; font-size: 14px; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; animation: fall 2.6s cubic-bezier(.3, .6, .4, 1) forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(540deg); opacity: .8; } }

/* ── bottom nav ── */
.nav { position: fixed; right: 0; bottom: 0; width: min(540px, 100%); z-index: 30; display: flex; align-items: center; gap: 10px; padding: 12px 24px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 253, 249, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.dots { flex: 1; display: flex; justify-content: center; gap: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #d9cfc3; transition: .3s; }
.dots i.on { width: 20px; border-radius: 6px; background: var(--ink); }
.btn { border: 1px solid var(--ink); background: var(--ink); color: #fff; border-radius: 999px; padding: 13px 24px; font-size: 13px; font-weight: 500; letter-spacing: .06em; cursor: pointer; transition: .2s; white-space: nowrap; }
.btn:hover { opacity: .88; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn:disabled { opacity: .4; cursor: default; }
#back { visibility: hidden; }
#back.show { visibility: visible; }

/* ── phones & tablets: preview on top, panel below ── */
@media (max-width: 979px) {
  :root { --top: 104px; }
  .top { height: auto; flex-wrap: wrap; padding: 10px 14px 0; gap: 8px 12px; }
  .tabs { order: 3; flex-basis: 100%; justify-content: flex-start; padding-bottom: 8px; margin: 0 -14px; padding-left: 10px; padding-right: 10px; }
  .tab { padding: 7px 12px; font-size: 12.5px; }
  .brand { flex: 1; }
  .layout { display: block; }
  .stage { position: sticky; top: var(--top); z-index: 20; height: 46svh; min-height: 300px; padding: 12px 12px 10px; gap: 10px; border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px -16px rgba(43, 36, 38, .4); }
  .stage.mini { height: 0; min-height: 0; padding: 0; border: 0; }
  .stage-tools { gap: 6px; }
  .tool, .seg button { padding: 6px 11px; font-size: 12px; }
  #fullscreen, #replay { display: none; }
  .tool .t { display: none; }
  .tool .ts { display: inline; }
  .panel { border-left: 0; padding: 22px 16px 120px; }
  .nav { width: 100%; border-left: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
  h2 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* preview-on-phone modal */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(30, 22, 24, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn .25s ease; }
.modal[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.modal-card { position: relative; width: min(560px, 100%); background: var(--card); border-radius: 24px; padding: 30px; box-shadow: 0 40px 80px rgba(0, 0, 0, .25); animation: stepIn .35s var(--ease); }
.modal-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #f1ebe2; cursor: pointer; }
.pm-body { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: center; }
.pm-qr { width: 180px; height: 180px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.pm-qr svg { width: 100%; height: 100%; }
.pm-side input { margin-bottom: 10px; font-size: 14px; background: #fbf8f3; }
@media (max-width: 560px) { .pm-body { grid-template-columns: 1fr; } .pm-qr { display: none; } .modal-card { padding: 24px 20px; } }

/* edit-text mode & sections */
.tool.edit-tool[aria-pressed=true] { background: var(--gold); border-color: var(--gold); color: #fff; }
.edit-hint { position: absolute; left: 50%; top: calc(var(--h) * .06); transform: translateX(-50%); z-index: 6; background: var(--gold); color: #fff; font-size: 12px; font-weight: 500; padding: 7px 12px; border-radius: 99px; white-space: nowrap; box-shadow: 0 8px 20px rgba(0, 0, 0, .18); pointer-events: none; animation: stepIn .3s var(--ease); }
.device.editing { box-shadow: 0 0 0 4px rgba(176, 138, 76, .55), 0 40px 80px rgba(40, 25, 15, .28); }
.secs { display: grid; gap: 6px; }
.sec-row { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px 8px 14px; font-size: 14px; }
.sec-row.off { opacity: .45; }
.sec-row .nm { flex: 1; }
.sec-row button { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: #fbf8f3; cursor: pointer; font-size: 13px; }
.sec-row button:disabled { opacity: .3; cursor: default; }
.block { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 10px; display: grid; gap: 10px; }
.block .bh { display: flex; gap: 8px; align-items: center; }
.block .bh input { flex: 1; }
.edits { display: grid; gap: 6px; font-size: 13px; }
.edits div { display: flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; }
.edits s { color: var(--muted); }
.edits span { flex: 1; }
.edits button { border: 0; background: none; cursor: pointer; color: var(--muted); }
.ph-mv { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 4px; }
.ph-mv button { position: static; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer; font-size: 12px; }

/* music picker */
.tracks { display: grid; gap: 8px; }
.track { display: flex; align-items: center; gap: 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; cursor: pointer; transition: .18s; }
.track:hover { border-color: #bfb3a6; }
.track.on { border-color: var(--ink); box-shadow: 0 6px 18px rgba(43, 36, 38, .1); }
.track .play { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; font-size: 12px; display: grid; place-items: center; }
.track .play.off { background: #eee6db; color: var(--muted); }
.track .tn { flex: 1; display: grid; line-height: 1.25; }
.track .tn b { font-weight: 500; font-size: 14px; }
.track .tn small { color: var(--muted); font-size: 12px; }
.track .ck { opacity: 0; color: var(--gold); font-weight: 600; }
.track.on .ck { opacity: 1; }

/* one-tap looks */
.looks { display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.lk { border: 0; background: none; padding: 0; cursor: pointer; text-align: center; scroll-snap-align: start; }
.lk img { display: block; width: 112px; aspect-ratio: 240 / 520; object-fit: cover; border-radius: 12px; box-shadow: 0 6px 14px rgba(43, 36, 38, .12); outline: 2px solid transparent; outline-offset: 3px; transition: transform .25s var(--ease); }
.lk:hover img { transform: translateY(-3px); }
.lk.on img { outline-color: var(--ink); }
.lk span { display: block; font-size: 11.5px; margin-top: 7px; line-height: 1.25; }

/* studio soundtrack */
.tool.music-tool[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tool.music-tool[aria-pressed=true]::after { content: ''; display: inline-block; width: 10px; height: 9px; margin-left: 6px; background: linear-gradient(currentColor, currentColor) 0 100%/2px 60% no-repeat, linear-gradient(currentColor, currentColor) 4px 100%/2px 100% no-repeat, linear-gradient(currentColor, currentColor) 8px 100%/2px 40% no-repeat; animation: eq 1s ease-in-out infinite alternate; }
@keyframes eq { 50% { background-size: 2px 100%, 2px 40%, 2px 90%; } }
.moods { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.moods::-webkit-scrollbar { display: none; }
.moods .chip { flex: none; }
.tracks { max-height: 460px; overflow-y: auto; padding-right: 4px; }
