/* Lives Touched — night sky, warm gold, quiet type. */
/* Cormorant Garamond (SIL Open Font License, see fonts/OFL-LICENSE.txt), bundled so pages look right on their own. */
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: normal; font-display: swap;
  src: local("Cormorant Garamond"), url("fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap;
  src: local("Cormorant Garamond SemiBold"), url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: italic; font-display: swap;
  src: local("Cormorant Garamond Italic"), url("fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: italic; font-display: swap;
  src: local("Cormorant Garamond SemiBold Italic"), url("fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2"); }

:root {
  --night: #0b0b18; --night-2: #15142a; --dusk: #2a2340;
  --ink: #f6efe2; --soft: #c9c3d6; --mute: #8f8aa6;
  --gold: #e7c27d; --gold-2: #f4d79c; --ember: #f0a868;
  --card: rgba(255,255,255,.055); --line: rgba(231,194,125,.22);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 18px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font: 17px/1.55 var(--sans);
  background: radial-gradient(120% 80% at 50% 0%, var(--dusk) 0%, var(--night-2) 45%, var(--night) 100%) fixed;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
header.top, main, footer { position: relative; z-index: 1; }
a { color: var(--gold-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

header.top { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font: 500 22px/1 var(--serif); letter-spacing: .06em; }
.brand-star { width: 12px; height: 12px; border-radius: 50%; background: var(--gold-2);
  box-shadow: 0 0 10px 3px rgba(244,201,120,.55), 0 0 26px 8px rgba(244,201,120,.18); }
header.top nav a { color: var(--soft); text-decoration: none; font-size: 15px; margin-left: 18px; }

main { max-width: 1040px; margin: 0 auto; padding: 0 20px 60px; }

/* ---- hero ---- */
.hero { text-align: center; padding: 6vh 0 30px; }
.hero-star { width: 26px; height: 26px; margin: 0 auto 26px; border-radius: 50%; background: #fff6dc;
  box-shadow: 0 0 18px 6px rgba(244,201,120,.6), 0 0 60px 22px rgba(244,201,120,.22), 0 0 140px 50px rgba(240,168,104,.10);
  animation: breathe 5.5s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: scale(.86); opacity: .82 } 50% { transform: scale(1.08); opacity: 1 } }
.hero h1 { font: 400 clamp(46px, 9vw, 92px)/1 var(--serif); letter-spacing: .02em; margin: 0 0 18px; }
.lede { font: italic 400 clamp(21px, 3.3vw, 27px)/1.4 var(--serif); color: var(--soft); max-width: 620px; margin: 0 auto 34px; }

.search { display: flex; gap: 8px; max-width: 620px; margin: 0 auto; padding: 7px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid var(--line); box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink);
  font: 18px var(--sans); padding: 12px 16px; outline: none; }
.search input::placeholder { color: var(--mute); }
.search button, .btn { border: 0; cursor: pointer; border-radius: 999px; padding: 13px 24px; font: 600 16px var(--sans);
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #241a08; text-decoration: none; display: inline-block; }
.search button:focus-visible, .btn:focus-visible, .search input:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; }
.more-filters { margin-top: 12px; font-size: 15px; color: var(--mute); }
.more-filters input { background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--ink);
  border-radius: 10px; padding: 8px 12px; font: 16px var(--sans); width: 200px; }
.hint { color: var(--mute); font-size: 15px; margin: 16px auto 0; max-width: 520px; }

/* ---- results ---- */
#results { max-width: 720px; margin: 26px auto 0; text-align: left; }
.result-note { text-align: center; color: var(--soft); margin: 10px 0 16px; font-size: 16px; }
.card { display: grid; grid-template-columns: 84px 1fr; gap: 18px; align-items: center; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 12px;
  transition: transform .2s, border-color .2s, background .2s; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.card:hover, .card:focus-visible { transform: translateY(-2px); border-color: rgba(231,194,125,.55); background: rgba(255,255,255,.08); outline: none; }
.portrait { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; flex: none; }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mono { width: 100%; height: 100%; display: grid; place-items: center; font: 500 28px var(--serif); letter-spacing: .04em; color: var(--gold-2);
  background: radial-gradient(circle at 50% 35%, #3a3052, #1a1730); border: 1px solid var(--line); border-radius: 50%; }
.card h3 { font: 500 25px/1.15 var(--serif); margin: 0; }
.card .years { color: var(--gold); font: 500 18px var(--serif); margin: 2px 0 4px; }
.card .meta { color: var(--soft); font-size: 15px; margin: 0; }
.owner-line { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 15px; color: var(--soft); }
.owner-line > span:last-child { min-width: 0; }
.mini { flex: none; }
.mini { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; display: inline-grid; place-items: center;
  background: #2c2644; color: var(--gold-2); font: 600 11px var(--sans); border: 1px solid var(--line); }
.mini img { width: 100%; height: 100%; object-fit: cover; }
.verified { color: #9fd8b0; font-size: 14px; white-space: nowrap; }
.open { color: var(--gold-2); font-weight: 600; font-size: 15px; display: inline-block; margin-top: 6px; }

/* ---- sections ---- */
.section-title { font: 400 clamp(30px, 5vw, 42px)/1.1 var(--serif); text-align: center; margin: 70px 0 26px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.step .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 600 15px var(--sans);
  color: #241a08; background: var(--gold); margin-bottom: 12px; }
.step h3 { font: 500 24px/1.2 var(--serif); margin: 0 0 6px; }
.step p { margin: 0; color: var(--soft); font-size: 16px; }
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.promise div { padding: 6px 4px; }
.promise h4 { font: 500 21px var(--serif); margin: 0 0 4px; color: var(--gold-2); }
.promise p { margin: 0; color: var(--soft); font-size: 15px; }
.start { text-align: center; margin: 70px auto 10px; padding: 40px 24px; border-radius: 26px; max-width: 760px;
  background: linear-gradient(180deg, rgba(231,194,125,.12), rgba(231,194,125,.03)); border: 1px solid var(--line); }
.start h2 { font: 400 clamp(30px, 5vw, 40px)/1.15 var(--serif); margin: 0 0 8px; }
.start p { color: var(--soft); margin: 0 0 22px; }
footer { text-align: center; color: var(--mute); padding: 30px 20px 50px; font: italic 18px var(--serif); }

/* ---- memorial cover ---- */
.cover { text-align: center; padding: 4vh 0 10px; max-width: 640px; margin: 0 auto; }
.cover .eyebrow { letter-spacing: .32em; text-transform: uppercase; color: var(--gold); font-size: 13px; margin: 0 0 18px; }
.cover-photo { width: min(300px, 70vw); aspect-ratio: 1; margin: 0 auto 26px; border-radius: 50%; overflow: hidden; position: relative;
  box-shadow: 0 0 0 1px var(--line), 0 0 70px 10px rgba(244,201,120,.16), 0 30px 60px rgba(0,0,0,.45); }
.cover-photo img { width: 100%; height: 100%; object-fit: cover; }
.cover-photo .mono { font-size: clamp(60px, 14vw, 96px); }
.cover h1 { font: 400 clamp(40px, 8vw, 66px)/1.05 var(--serif); margin: 0; }
.cover .years { font: 500 clamp(22px, 4vw, 28px) var(--serif); color: var(--gold); margin: 8px 0 2px; }
.cover .home { color: var(--soft); margin: 0; }
.welcome { margin: 22px auto 0; padding: 12px 18px; border-radius: 14px; background: rgba(231,194,125,.10); border: 1px solid var(--line);
  font: italic 21px var(--serif); max-width: 460px; }
.host { display: inline-flex; align-items: center; gap: 12px; margin: 26px auto 0; padding: 12px 18px 12px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); text-align: left; }
.host .mini { width: 46px; height: 46px; font-size: 15px; }
.host b { color: var(--ink); font-weight: 600; }
.host small { display: block; color: var(--soft); font-size: 14px; }
.next { margin: 18px auto 0; color: var(--soft); font-size: 16px; }
.next b { color: var(--ink); font-weight: 600; }
.cta { margin: 30px 0 10px; }
.cta .btn { font-size: 18px; padding: 16px 30px; }
.check { color: var(--mute); font-size: 15px; margin: 18px auto 0; max-width: 460px; }
.no-photos { color: var(--mute); font-size: 14px; margin: -12px 0 18px; }

/* ---- owner: share ---- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin: 0 0 18px; }
.panel h2 { font: 500 28px/1.2 var(--serif); margin: 0 0 4px; }
.panel .sub { color: var(--soft); margin: 0 0 16px; font-size: 15px; }
.share-head { display: flex; gap: 18px; align-items: center; margin: 10px 0 24px; }
.share-head .portrait { width: 64px; height: 64px; }
.share-head h1 { font: 400 34px/1.1 var(--serif); margin: 0; }
.share-head p { margin: 2px 0 0; color: var(--soft); }
.linkrow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.linkbox { flex: 1; min-width: 220px; font: 16px ui-monospace, Menlo, monospace; padding: 12px 14px; border-radius: 12px;
  background: rgba(0,0,0,.25); border: 1px solid var(--line); color: var(--gold-2); overflow-wrap: anywhere; }
.btn.ghost { background: transparent; color: var(--gold-2); border: 1px solid var(--line); }
.btn.small { padding: 9px 16px; font-size: 14px; }
.qr { background: #fff; border-radius: 12px; padding: 8px; width: 150px; height: 150px; }
.qr svg { width: 100%; height: 100%; display: block; }
.two { display: grid; grid-template-columns: 1fr 170px; gap: 18px; align-items: start; }
textarea, .field { width: 100%; background: rgba(0,0,0,.22); border: 1px solid var(--line); color: var(--ink); border-radius: 12px;
  padding: 12px 14px; font: 16px/1.5 var(--sans); }
textarea { min-height: 120px; resize: vertical; }
label.lbl { display: block; font-size: 14px; color: var(--soft); margin: 14px 0 6px; }
.tokens { font-size: 13px; color: var(--mute); margin-top: 6px; }
.tokens code { color: var(--gold-2); background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 6px; }
.msg-grid { display: grid; grid-template-columns: 1fr 320px; gap: 22px; }
.phone { background: #000; border-radius: 34px; padding: 14px; border: 1px solid #333; }
.phone .scr { background: #fff; border-radius: 24px; padding: 18px 12px; min-height: 380px; font: 15px/1.35 var(--sans); color: #111; }
.phone .who { text-align: center; font-size: 12px; color: #888; margin-bottom: 12px; }
.bubble { background: #e9e9eb; border-radius: 18px; padding: 9px 13px; max-width: 88%; white-space: pre-wrap; overflow-wrap: anywhere; }
.preview-card { margin-top: 6px; max-width: 88%; border-radius: 16px; overflow: hidden; background: #e9e9eb; }
.preview-card .pimg { height: 150px; background: #0b0b18 center/cover no-repeat; display: grid; place-items: center; }
.preview-card .ptxt { padding: 8px 12px; }
.preview-card .ptxt b { display: block; font-size: 14px; }
.preview-card .ptxt span { font-size: 12px; color: #666; }
table.people { width: 100%; border-collapse: collapse; font-size: 15px; }
table.people th { text-align: left; font-weight: 600; color: var(--soft); font-size: 13px; text-transform: uppercase; letter-spacing: .06em;
  padding: 8px 6px; border-bottom: 1px solid var(--line); }
table.people td { padding: 10px 6px; border-bottom: 1px solid rgba(255,255,255,.06); vertical-align: middle; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; background: rgba(255,255,255,.08); color: var(--soft); }
.pill.ok { background: rgba(126,200,150,.16); color: #9fd8b0; }
.pill.gold { background: rgba(231,194,125,.16); color: var(--gold-2); }
.sendbar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.note { font-size: 14px; color: var(--mute); margin-top: 10px; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 50; background: #1e1a30; border: 1px solid var(--line);
  color: var(--ink); border-radius: 14px; padding: 12px 18px; box-shadow: 0 10px 30px rgba(0,0,0,.4); max-width: 92vw; }
.x { background: none; border: 0; color: var(--mute); cursor: pointer; font-size: 18px; }
.tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.tabs button { background: transparent; border: 1px solid var(--line); color: var(--soft); border-radius: 999px; padding: 7px 14px; cursor: pointer; font: 14px var(--sans); }
.tabs button.on { background: rgba(231,194,125,.16); color: var(--gold-2); }

@media (max-width: 760px) {
  .steps, .promise { grid-template-columns: 1fr; }
  .two, .msg-grid { grid-template-columns: 1fr; }
  .phone { max-width: 330px; margin: 0 auto; }
  .card { grid-template-columns: 64px 1fr; gap: 14px; padding: 14px; }
  .portrait { width: 64px; height: 64px; }
  .mono { font-size: 22px; }
  .card h3 { font-size: 22px; }
  table.people .hide-sm { display: none; }
  br.wide { display: none; }
  .search button { padding: 12px 18px; }
}
@media (prefers-reduced-motion: reduce) { .hero-star { animation: none; } .card { transition: none; } }

/* ---- "not right now" choices ---- */
.choices { max-width: 460px; margin: 26px auto 0; text-align: left; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--card); margin-bottom: 10px; cursor: pointer; }
.choice input { margin-top: 5px; accent-color: #e7c27d; width: 18px; height: 18px; flex: none; }
.choice b { display: block; font-weight: 600; }
.choice small { display: block; color: var(--soft); font-size: 14px; }
.choice.small { border: 0; background: none; padding: 6px 4px; font-size: 15px; color: var(--soft); }
.choice.small small { display: inline; }
.planrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.planrow label { margin: 0; }
.status-line { font-size: 15px; color: var(--soft); margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(0,0,0,.2); }
.menu { position: relative; display: inline-block; }
.menu > div { position: absolute; right: 0; top: 110%; z-index: 20; background: #1e1a30; border: 1px solid var(--line); border-radius: 12px;
  padding: 6px; min-width: 230px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.menu > div button { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--ink); padding: 9px 10px;
  border-radius: 8px; cursor: pointer; font: 14px var(--sans); }
.menu > div button:hover { background: rgba(231,194,125,.12); }
.reply { font-size: 13px; color: var(--soft); margin-top: 4px; font-style: italic; }
.due { background: rgba(240,168,104,.14); color: var(--ember); }
@media (max-width: 760px) { .planrow { grid-template-columns: 1fr; } }

/* ---- platform pages ---- */
.wizard { max-width: 720px; margin: 0 auto; }
.wiz-title { font: 400 clamp(38px, 7vw, 58px)/1.05 var(--serif); text-align: center; margin: 0 0 10px; }
.wizard .lede { text-align: center; }
.eyebrow-s { letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-size: 12px; margin: 0 0 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
select.field { appearance: none; -webkit-appearance: none; }
.form-narrow { max-width: 440px; margin: 20px auto 0; text-align: left; }
.plans { display: grid; gap: 12px; margin: 10px 0 16px; }
.plan-card { display: flex; gap: 12px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.plan-card input { margin-top: 6px; accent-color: #e7c27d; width: 18px; height: 18px; flex: none; }
.plan-card b { font: 500 24px var(--serif); display: block; }
.plan-card .price { float: right; font: 600 20px var(--serif); color: var(--gold-2); }
.plan-card .price small { font: 13px var(--sans); color: var(--soft); display: inline; }
.plan-card > span > small { display: block; color: var(--soft); font-size: 15px; margin-top: 4px; clear: both; }
.plan-card.best { border-color: rgba(231,194,125,.6); background: linear-gradient(180deg, rgba(231,194,125,.10), rgba(231,194,125,.03)); }
.welcome-panel { border-color: rgba(126,200,150,.45); background: rgba(126,200,150,.06); }
.payform h3, .panel h3 { font: 500 21px var(--serif); margin: 18px 0 6px; }
.claim { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.planrow.four { grid-template-columns: repeat(4, 1fr); }
.itemcard { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 10px 0; background: rgba(0,0,0,.15); }
.honor { max-width: 760px; margin-left: auto; margin-right: auto; }
.florists { display: grid; gap: 8px; }
.florist .code { color: var(--gold-2); margin-top: 4px; }
.florist .paid { color: var(--soft); font-style: italic; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.chip { background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 8px 14px; cursor: pointer; font: 15px var(--sans); }
.chip:hover { background: rgba(231,194,125,.14); }
.warn { background: rgba(240,168,104,.14); color: var(--ember); padding: 10px 14px; border-radius: 12px; }
.copyrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.copyrow small { display: block; color: var(--mute); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.orderpre { white-space: pre-wrap; font: 13px/1.5 ui-monospace, Menlo, monospace; color: var(--soft); background: rgba(0,0,0,.25); padding: 12px; border-radius: 10px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stats div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.stats b { display: block; font: 500 28px var(--serif); color: var(--gold-2); }
.stats span { font-size: 13px; color: var(--soft); }
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { font: 400 44px var(--serif); margin: 10px 0; }
.legal h2 { font: 500 26px var(--serif); margin: 26px 0 6px; color: var(--gold-2); }
.legal p, .legal li { color: var(--soft); }
.draft { background: rgba(240,168,104,.14); color: var(--ember); padding: 10px 14px; border-radius: 12px; font-size: 15px; }
@media (max-width: 760px) { .row2, .row3, .planrow.four, .stats { grid-template-columns: 1fr; } }

/* ---- photos & labels ---- */
.ph-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.chip.on, .btn.on { background: rgba(231,194,125,.22); border-color: rgba(231,194,125,.7); color: var(--gold-2); }
.chip small { color: var(--mute); margin-left: 4px; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: 14px; }
.ph-tile { position: relative; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #000; cursor: pointer; aspect-ratio: 4/3; }
.ph-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.ph-tile:hover img { transform: scale(1.04); }
.ph-count { position: absolute; right: 6px; bottom: 6px; background: rgba(21,20,42,.85); color: var(--gold-2); font: 600 12px var(--sans); padding: 2px 8px; border-radius: 999px; }
.viewer { position: fixed; inset: 0; z-index: 60; background: #08080f; display: flex; flex-direction: column; padding: 12px; }
.viewer-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.viewer-top kbd, .note kbd { font: 11px ui-monospace, Menlo, monospace; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; padding: 0 4px; color: var(--soft); }
.viewer-body { flex: 1; display: grid; grid-template-columns: 1fr 280px; gap: 14px; min-height: 0; margin-top: 10px; }
.viewer-frame { position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; }
.viewer-frame img { max-width: 100%; max-height: calc(100vh - 90px); object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }
.viewer-side { overflow: auto; }
.viewer-side h3 { font: 500 20px var(--serif); margin: 6px 0; }
.v-caption { font: italic 19px var(--serif); color: var(--soft); margin: 0 0 10px; }
.legend { list-style: none; padding: 0; margin: 0; }
.legend li { display: flex; align-items: center; padding: 6px 8px; border-radius: 8px; }
.legend li.hi { background: rgba(231,194,125,.14); }
.legend li small { color: var(--mute); }
.legend li.none { color: var(--mute); font-size: 14px; }
.ann-dot.subject { background: #fff6dc; }
@media (max-width: 760px) { .viewer-body { grid-template-columns: 1fr; } .viewer-frame img { max-height: 60vh; } }

/* ---- thank-you studio ---- */
.studio { display: grid; grid-template-columns: 270px 1fr; gap: 16px; align-items: start; }
.queue { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; max-height: 78vh; overflow: auto; position: sticky; top: 10px; }
.queue button { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 10px; padding: 10px; color: var(--ink); cursor: pointer; font: 15px var(--sans); }
.queue button:hover { background: rgba(255,255,255,.05); }
.queue button.cur { background: rgba(231,194,125,.14); }
.queue button small { display: block; color: var(--mute); font-size: 13px; }
.queue .done b { color: var(--mute); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.25); }
.why { color: var(--soft); margin: 2px 0 12px; }
.sugg { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; }
.sugg button { position: relative; flex: none; width: 150px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: #000; cursor: pointer; }
.sugg button img { width: 100%; height: 112px; object-fit: cover; display: block; }
.sugg button span { display: block; font: 12px var(--sans); color: var(--soft); background: rgba(0,0,0,.6); padding: 4px 6px; text-align: left; }
.sugg button.on { border-color: var(--gold); }
.sugg button .ord { position: absolute; left: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #241a08; font: 700 12px/22px var(--sans); text-align: center; padding: 0; }
.toolbar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 6px 0; }
.toolbar button { background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 6px 10px; cursor: pointer; font: 14px var(--sans); }
.toolbar button.on { background: rgba(231,194,125,.22); }
.toolbar .sw { width: 22px; height: 22px; border-radius: 50%; padding: 0; border: 2px solid rgba(255,255,255,.4); }
.toolbar .sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.paper { background: #fffdf8; color: #2a2433; border-radius: 14px; padding: 28px 32px; min-height: 280px; font-size: 19px; line-height: 1.6; outline: none;
  box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.paper p { margin: 0 0 14px; }
.paper-photos { display: flex; gap: 8px; margin-bottom: 14px; }
.paper-photos img { flex: 1; min-width: 0; height: 170px; object-fit: cover; border-radius: 8px; }
@media (max-width: 860px) { .studio { grid-template-columns: 1fr; } .queue { position: static; max-height: 260px; } }
h3.st { font: 500 22px var(--serif); margin: 22px 0 8px; color: var(--gold-2); }
.viewer[hidden] { display: none; }
.bar { height: 10px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 14px; }
.bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .4s; }

/* discount code box (start and plan pages) */
.code-box { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0 4px; }
.code-box .field { max-width: 280px; text-transform: uppercase; letter-spacing: .06em; }
.code-msg.ok { color: #7fd99a; } .code-msg.bad { color: #f0a58a; }
