:root {
  --ground: #0b0a09;
  --panel: #15110e;
  --panel-2: #1d1712;
  --line: rgba(240, 233, 222, 0.12);
  --line-2: rgba(240, 233, 222, 0.22);
  --text: #f3efe7;
  --muted: #a99f90;
  --faint: #6f675d;
  --gold: #c9a96a;
  --gold-soft: rgba(201, 169, 106, 0.14);
  --ok: #7bbf8f;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { background: var(--ground); }
body {
  margin: 0; color: var(--text); font-family: var(--sans); line-height: 1.6;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
}
.s-wrap { max-width: 720px; margin: 0 auto; padding: 40px 22px 80px; }
.s-narrow { max-width: 420px; }

.s-brand { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1; }
.s-brand span { color: var(--gold); }
.s-tag { margin-top: 8px; font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }

.s-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.s-logout { font-size: 13px; color: var(--muted); text-decoration: none; }
.s-logout:hover { color: var(--gold); }

h1.s-title { font-family: var(--serif); font-weight: 600; font-size: 30px; margin: 0 0 6px; }
.s-sub { color: var(--muted); margin: 0 0 26px; }

.s-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 26px 24px; }

label.s-label { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 16px 0 7px; }
input.s-input {
  width: 100%; padding: 12px 14px; font-size: 16px; font-family: var(--sans);
  color: var(--text); background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 10px; outline: none;
}
input.s-input:focus { border-color: var(--gold); }

.s-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 22px; padding: 13px 18px; font-size: 15px; font-weight: 500;
  font-family: var(--sans); color: var(--ground); background: var(--gold);
  border: none; border-radius: 10px; cursor: pointer; transition: filter 160ms ease, transform 120ms ease;
}
.s-btn:hover { filter: brightness(1.06); }
.s-btn:active { transform: scale(0.99); }

.s-alt { margin-top: 18px; text-align: center; font-size: 14px; color: var(--muted); }
.s-alt a { color: var(--gold); text-decoration: none; }
.s-error { margin: 14px 0 0; padding: 11px 14px; border-radius: 10px; background: rgba(226, 75, 74, 0.12); border: 1px solid rgba(226, 75, 74, 0.4); color: #f0a0a0; font-size: 14px; }

.s-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; font-size: 13px; color: var(--muted); }
.s-consent input { margin-top: 3px; }

.s-progress { display: flex; align-items: center; gap: 12px; margin: 4px 0 24px; }
.s-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.s-bar-fill { height: 100%; background: var(--gold); border-radius: 999px; transition: width 300ms ease; }
.s-count { font-size: 13px; color: var(--muted); white-space: nowrap; }

.s-mirror-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; font-size: 13px; letter-spacing: 0.06em; color: var(--gold); text-decoration: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 16px; }
.s-mirror-link:hover { border-color: var(--gold); }

.s-build { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.s-build-btn {
  font-size: 14px; font-weight: 500; color: var(--ground); background: var(--gold);
  border: none; border-radius: 999px; padding: 11px 22px; cursor: pointer;
  transition: filter 160ms ease, transform 120ms ease;
}
.s-build-btn:hover { filter: brightness(1.06); }
.s-build-btn:active { transform: scale(0.98); }
.s-build-btn:disabled { opacity: 0.55; cursor: default; }
.s-build-msg { margin: 4px 0 22px; font-size: 13px; color: var(--gold); line-height: 1.6; min-height: 1px; }
.s-packs { margin-bottom: 26px; }
.s-packs-label { font-size: 12px; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 10px; }
.s-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.s-tab { font-size: 14px; color: var(--muted); text-decoration: none; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; transition: border-color 160ms, color 160ms, background 160ms; }
.s-tab:hover { border-color: var(--line-2); color: var(--text); }
.s-tab.active { background: var(--gold); color: var(--ground); border-color: var(--gold); }
.s-pack-desc { margin: 12px 0 0; font-size: 14px; font-style: italic; color: var(--muted); font-family: var(--serif); font-size: 17px; }

.s-nudge { margin: 0 0 22px; padding: 12px 16px; border-radius: 10px; background: var(--gold-soft); border: 1px solid rgba(201, 169, 106, 0.32); color: var(--text); font-size: 14px; line-height: 1.6; }
.s-nudge strong { color: var(--gold); font-weight: 500; }

/* ---- family panel ---- */
.s-fam { background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; padding: 22px 22px; margin: 6px 0 26px; }
.s-fam-head { font-family: var(--serif); font-size: 21px; color: var(--text); margin-bottom: 4px; }
.s-fam-sub { font-size: 14px; color: var(--muted); margin: 0 0 16px; line-height: 1.6; }
.s-fam-invite { display: flex; gap: 8px; margin-bottom: 14px; }
.s-fam-input { flex: 1; min-width: 0; padding: 11px 13px; font-size: 14px; font-family: var(--sans); color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; outline: none; }
.s-fam-input:focus { border-color: var(--gold); }
.s-fam-copy { flex-shrink: 0; font-size: 13px; font-weight: 500; color: var(--ground); background: var(--gold); border: none; border-radius: 10px; padding: 0 16px; cursor: pointer; }
.s-fam-copy:hover { filter: brightness(1.06); }
.s-fam-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 16px; }
.s-fam-page { font-size: 13px; letter-spacing: 0.04em; color: var(--gold); text-decoration: none; }
.s-fam-page:hover { color: var(--gold); text-decoration: underline; }
.s-fam-seats { font-size: 12px; color: var(--faint); }
.s-fam-add { font-size: 13px; font-weight: 500; color: var(--gold); text-decoration: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; }
.s-fam-add:hover { border-color: var(--gold); }

/* ---- your own questions ---- */
.s-own { margin: 34px 0 0; }
.s-own-title { font-family: var(--serif); font-weight: 600; font-size: 22px; margin: 0 0 6px; }
.s-own-sub { color: var(--muted); font-size: 14px; margin: 0 0 16px; line-height: 1.6; }
.s-own-form { display: flex; gap: 8px; margin-bottom: 16px; }
.s-own-input { flex: 1; min-width: 0; padding: 12px 14px; font-size: 15px; font-family: var(--sans); color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; outline: none; }
.s-own-input:focus { border-color: var(--gold); }
.s-own-add { flex-shrink: 0; font-size: 14px; font-weight: 500; color: var(--ground); background: var(--gold); border: none; border-radius: 10px; padding: 0 18px; cursor: pointer; }
.s-own-add:hover { filter: brightness(1.06); }

/* ---- forever upsell ---- */
.s-forever { margin: 34px 0 0; padding: 22px 22px; border-radius: 14px; background: var(--gold-soft); border: 1px solid rgba(201, 169, 106, 0.32); display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.s-forever-text { flex: 1; min-width: 220px; }
.s-forever-title { font-family: var(--serif); font-size: 20px; color: var(--gold); margin-bottom: 4px; }
.s-forever-text p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.s-forever-btn { flex-shrink: 0; font-size: 14px; font-weight: 500; color: var(--ground); background: var(--gold); border: none; border-radius: 999px; padding: 12px 22px; text-decoration: none; }
.s-forever-btn:hover { filter: brightness(1.06); }
.s-fam-members { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; }
.s-fam-member { display: flex; align-items: center; gap: 12px; }
.s-fam-name { font-size: 15px; color: var(--text); flex: 1; }
.s-fam-remove-f { margin: 0; }
.s-fam-remove { font-size: 12px; color: var(--faint); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.s-fam-remove:hover { color: #e08a8a; border-color: rgba(226, 75, 74, 0.45); }
.s-fam-vis-f { margin: 0; }
.s-fam-vis { font-size: 12px; color: var(--faint); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.s-fam-vis:hover { border-color: var(--line-2); color: var(--text); }
.s-fam-vis.on { color: var(--ground); background: var(--gold); border-color: var(--gold); }
.s-fam-name em { font-style: normal; color: var(--faint); font-size: 12px; letter-spacing: 0.06em; }
.s-fam-state { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.s-fam-member.live .s-fam-state { color: var(--ok); }

/* ---- share your mirror ---- */
.s-share { margin: 34px 0 0; padding: 22px; border-radius: 14px; background: var(--gold-soft); border: 1px solid rgba(201, 169, 106, 0.32); }
.s-share-title { font-family: var(--serif); font-weight: 600; font-size: 22px; margin: 0 0 4px; color: var(--gold); }
.s-share-sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; line-height: 1.6; }
.s-share-body { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.s-share-card { width: 300px; max-width: 100%; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); }
.s-share-controls { flex: 1; min-width: 240px; }
.s-share-linkrow { display: flex; gap: 8px; margin-bottom: 12px; }
.s-share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.s-share-opt { flex: 1; min-width: 92px; text-align: center; padding: 11px 14px; font-size: 14px; color: var(--text); text-decoration: none; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color 160ms ease; }
.s-share-opt:hover { border-color: var(--gold); }
.s-share-opt-primary { background: var(--gold); border-color: var(--gold); color: var(--ground); font-weight: 500; }
.s-share-opt-primary:hover { filter: brightness(1.06); }
.s-share-tag { margin: 14px 0 0; font-size: 14px; font-weight: 600; letter-spacing: 0.02em; color: var(--gold); }
.s-share-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 30; padding: 11px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }

/* ---- insights dashboard ---- */
.in-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0 8px; }
.in-stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 18px; text-align: center; }
.in-stat-num { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--gold); }
.in-stat-label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-top: 8px; }
.in-sec { margin-top: 34px; }
.in-sec-title { font-family: var(--serif); font-weight: 600; font-size: 22px; margin: 0 0 10px; }
.in-gap-list { display: flex; flex-direction: column; gap: 8px; }
.in-gap { display: flex; align-items: center; gap: 14px; padding: 13px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.in-gap-q { flex: 1; font-size: 15px; color: var(--text); }
.in-gap-n { flex-shrink: 0; font-size: 12px; font-weight: 500; color: var(--gold); white-space: nowrap; }
.in-todo { display: flex; flex-wrap: wrap; gap: 8px; }
.in-todo-chip { font-size: 13px; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
.in-top { display: flex; flex-direction: column; gap: 10px; }
.in-top-row { display: flex; align-items: center; gap: 12px; }
.in-top-label { flex: 0 0 40%; font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.in-top-bar { flex: 1; height: 10px; background: var(--panel-2); border-radius: 999px; overflow: hidden; }
.in-top-fill { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.in-top-n { flex-shrink: 0; font-size: 13px; color: var(--muted); width: 28px; text-align: right; }
.in-feed { display: flex; flex-direction: column; }
.in-feed-row { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.in-feed-dot { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.in-feed-row.miss .in-feed-dot { background: #e08a8a; }
.in-feed-q { flex: 1; font-size: 14px; color: var(--text); }
.in-feed-ts { flex-shrink: 0; font-size: 12px; color: var(--faint); }
@media (max-width: 560px) { .in-stat-num { font-size: 32px; } .in-top-label { flex-basis: 45%; } }

.s-field-hint { font-size: 13px; color: var(--muted); line-height: 1.5; margin: -2px 0 6px; }

/* ---- pay-first start step ---- */
.s-plan-pill {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px;
  margin: 0 0 18px; padding: 14px 18px; border-radius: 12px;
  background: var(--gold-soft); border: 1px solid rgba(201, 169, 106, 0.32);
}
.s-plan-pill-name { font-size: 14px; font-weight: 500; color: var(--text); }
.s-plan-pill-price { font-size: 14px; color: var(--gold); }
.s-plan-pill-change { margin-left: auto; font-size: 13px; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.s-plan-pill-change:hover { color: var(--gold); border-color: var(--gold); }
.s-secure-note { margin: 12px 0 0; font-size: 12px; color: var(--faint); text-align: center; line-height: 1.5; }
.s-opt { color: var(--faint); font-weight: 400; text-transform: none; letter-spacing: 0; }
.s-textarea { resize: vertical; min-height: 76px; line-height: 1.5; }

/* for-myself / as-a-gift segmented toggle */
.s-seg { display: flex; gap: 4px; margin: 0 0 16px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; }
.s-seg-opt { flex: 1; font: 500 14px/1 var(--sans); color: var(--muted); background: transparent; border: 0; cursor: pointer; padding: 11px 14px; border-radius: 999px; transition: color .18s, background .18s; }
.s-seg-opt:hover { color: var(--text); }
.s-seg-opt.is-active { color: var(--ground); background: var(--gold); }
.s-mode { border: 0; margin: 0; padding: 0; min-width: 0; }
.s-mode[hidden] { display: none; }

.s-signedin { margin-top: 6px; font-size: 12px; color: var(--faint); }

/* renewal panel in the studio */
.s-renew { margin: 30px 0; padding: 22px; border: 1px solid var(--gold); border-radius: 14px; background: var(--gold-soft); }
.s-renew .s-own-title { color: var(--text); }
.s-renew a.s-own-add { display: inline-block; margin-top: 14px; text-decoration: none; }

/* account / set-password panel in the studio */
.s-account { margin: 30px 0; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.s-account-form { margin-top: 4px; }
.s-account-form .s-own-add { margin-top: 14px; }
.s-account-ok { margin: 10px 0 0; padding: 11px 14px; border-radius: 10px; background: rgba(123, 191, 143, 0.12); border: 1px solid rgba(123, 191, 143, 0.4); color: var(--ok); font-size: 14px; }

/* printable gift card on the buyer confirmation */
.s-giftcard { text-align: center; padding: 34px 26px; margin: 8px 0 18px; border: 1px solid var(--gold); border-radius: 16px; background: var(--panel); }
.s-giftcard-eyebrow { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.s-giftcard-title { font-family: var(--serif); font-size: 34px; font-weight: 600; margin: 8px 0 2px; color: var(--text); }
.s-giftcard-title em { color: var(--gold); font-style: italic; }
.s-giftcard-for { font-family: var(--serif); font-size: 20px; color: var(--gold); margin-top: 6px; }
.s-giftcard-note { font-size: 14px; color: var(--muted); line-height: 1.6; max-width: 34ch; margin: 14px auto 0; }
@media print {
  body { background: #fff; }
  .s-brand, .s-tag, .s-title, .s-sub, .s-btn, .s-field-hint, .s-alt { display: none !important; }
  .s-giftcard { border-color: #b9944e; }
}

/* secondary (ghost) button for the magic-link option */
.s-btn-ghost { color: var(--text); background: transparent; border: 1px solid var(--line-2); }
.s-btn-ghost:hover { border-color: var(--gold); filter: none; }

/* "or" divider between password and magic-link forms */
.s-or { display: flex; align-items: center; gap: 12px; margin: 22px 0 4px; color: var(--faint); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.s-or::before, .s-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---- password show/hide eye ---- */
.pw-wrap { position: relative; }
.pw-wrap .s-input { padding-right: 46px; }
.pw-eye { position: absolute; right: 6px; top: 6px; bottom: 6px; width: 36px; display: flex; align-items: center; justify-content: center; background: none; border: none; padding: 0; margin: 0; color: var(--muted); cursor: pointer; }
.pw-eye:hover { color: var(--text); }
.pw-eye .pw-eye-off { display: none; }
.pw-eye.on .pw-eye-on { display: none; }
.pw-eye.on .pw-eye-off { display: block; }

/* ---- recording polish (auto-trim) ---- */
.s-polish { margin: 34px 0 0; }
.s-polish-form { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.s-check { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text); cursor: pointer; }
.s-check input { width: 18px; height: 18px; accent-color: var(--gold); cursor: pointer; }

.s-danger { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }
.s-danger-label { display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.s-danger-btn { font-size: 13px; font-weight: 500; color: #e08a8a; background: none; border: 1px solid rgba(226, 75, 74, 0.45); border-radius: 999px; padding: 10px 18px; cursor: pointer; }
.s-danger-btn:hover { background: rgba(226, 75, 74, 0.12); color: #f0a0a0; }

.q-list { display: flex; flex-direction: column; gap: 12px; }
.q-row {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
}
.q-row.done { border-color: rgba(123, 191, 143, 0.4); }
.q-text { flex: 1; font-family: var(--serif); font-size: 20px; line-height: 1.25; }
.q-state { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.q-row.done .q-state { color: var(--ok); }
.q-btn {
  flex-shrink: 0; font-size: 13px; font-weight: 500; color: var(--text);
  background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 9px 16px; cursor: pointer;
}
.q-btn:hover { border-color: var(--gold); color: var(--gold); }
.q-file { display: none; }
.q-del-f { margin: 0; flex-shrink: 0; }
.q-del { flex-shrink: 0; font-size: 12px; color: var(--faint); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; cursor: pointer; }
.q-del:hover { color: #e08a8a; border-color: rgba(226, 75, 74, 0.45); }
.q-hint { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0 0 14px; }
.q-sugg { flex-shrink: 0; font-size: 12px; color: var(--faint); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; cursor: pointer; transition: color 160ms ease, border-color 160ms ease, background 160ms ease; }
.q-sugg:hover { color: var(--gold); border-color: var(--gold); }
.q-sugg.on { color: var(--ground); background: var(--gold); border-color: var(--gold); }
.q-sugg[disabled] { opacity: 0.5; cursor: default; }

.s-note { margin-top: 30px; font-size: 13px; color: var(--faint); line-height: 1.7; }
.s-pending { text-align: center; padding-top: 60px; }
.s-pending .s-brand { font-size: 40px; }

.q-badge { flex-shrink: 0; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); background: var(--gold-soft); border: 1px solid rgba(201, 169, 106, 0.3); padding: 4px 9px; border-radius: 999px; }
.q-row.setup { border-style: dashed; }
.q-row.setup .q-text { font-size: 16px; font-style: italic; color: var(--muted); }

.m-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.m-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.m-table th { text-align: left; font-weight: 500; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); }
.m-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.m-table tr:last-child td { border-bottom: none; }
.m-link { color: var(--gold); text-decoration: none; }
.m-link:hover { text-decoration: underline; }
.m-muted { color: var(--muted); }
.m-live { font-size: 12px; color: var(--ok); }
.m-draft { font-size: 12px; color: var(--faint); }
.m-del { font-size: 12px; color: #e08a8a; background: none; border: 1px solid rgba(226, 75, 74, 0.4); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.m-del:hover { background: rgba(226, 75, 74, 0.12); }
.m-actions { display: inline-block; margin: 0 6px 0 0; }
.m-reset { font-size: 12px; color: var(--muted); background: none; border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.m-reset:hover { border-color: var(--gold); color: var(--gold); }
.inv-gen { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; max-width: 680px; }
.inv-note { flex: 1; min-width: 180px; margin: 0; }
.inv-plan { flex: 0 0 auto; margin: 0; width: auto; }
.inv-copy { margin-right: 6px; }
.inv-link { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; color: var(--gold); word-break: break-all; }

/* ---- guidance card (top of studio) ---- */
.s-guide { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin-bottom: 26px; }
.s-guide h2 { font-family: var(--serif); font-weight: 600; font-size: 19px; margin: 0 0 10px; }
.s-guide ul { margin: 0; padding-left: 18px; }
.s-guide li { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 5px; }
.s-guide li strong { color: var(--text); font-weight: 500; }

/* ---- in-browser recorder overlay ---- */
.rec-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(6, 5, 4, 0.95); display: flex; align-items: center; justify-content: center; padding: 18px; }
.rec-overlay[hidden] { display: none; }
.rec-inner { width: 100%; max-width: 540px; display: flex; flex-direction: column; gap: 14px; }
.rec-close { align-self: flex-end; background: none; border: none; color: var(--muted); font-size: 30px; line-height: 0.7; cursor: pointer; padding: 0; }
.rec-close:hover { color: var(--text); }
.rec-question { font-family: var(--serif); font-size: 22px; line-height: 1.25; text-align: center; margin: 0; }
.rec-stage { position: relative; width: 100%; aspect-ratio: 3 / 4; background: #000; border-radius: 14px; overflow: hidden; }
.rec-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
/* No mirror: the live preview must match the saved video (which records un-mirrored,
   the true orientation viewers see), so recording doesn't appear to "flip" on save. */
#rec-preview { transform: none; }
.rec-timer { position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(226, 75, 74, 0.92); color: #fff; font-size: 13px; font-weight: 500; padding: 4px 11px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.rec-controls { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.rec-controls button { font-size: 15px; font-weight: 500; padding: 12px 22px; border-radius: 999px; border: none; cursor: pointer; }
#rec-start { background: #e24b4a; color: #fff; }
#rec-start::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #fff; margin-right: 8px; vertical-align: middle; }
#rec-stop { background: #f3efe7; color: #16110e; }
#rec-use { background: var(--gold); color: var(--ground); }
#rec-redo { background: var(--panel-2); color: var(--text); border: 1px solid var(--line-2); }
.rec-controls button:disabled { opacity: 0.55; cursor: default; }
.rec-err { color: #e8a0a0; font-size: 14px; text-align: center; margin: 0; min-height: 1px; }
.rec-upload { text-align: center; font-size: 13px; color: var(--faint); }
.rec-upload a { color: var(--gold); cursor: pointer; }

/* watch + download per answer, download-all block, clip viewer modal */
.q-play, .q-dl { font-size: 13px; font-weight: 500; color: var(--text); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; white-space: nowrap; }
.q-play:hover, .q-dl:hover { border-color: var(--gold); color: var(--gold); }

.s-download { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 30px 0; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.s-download-text { min-width: 0; }
.s-download .s-own-add { display: inline-block; text-decoration: none; white-space: nowrap; }

.clip-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,0.8); }
.clip-modal[hidden] { display: none; }
.clip-modal-inner { position: relative; width: 100%; max-width: 420px; }
.clip-close { position: absolute; top: -16px; right: -6px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--panel-2); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; }
.clip-title { color: var(--text); font-size: 15px; margin: 0 0 10px; text-align: center; }
.clip-video { width: 100%; max-height: 78vh; border-radius: 14px; background: #000; display: block; }

/* Free-preview upsell banner (shown to unpaid owners so they always have a way to publish/pay) */
.s-upsell { margin: 18px 0 4px; padding: 15px 18px; border-radius: 14px; background: linear-gradient(180deg, rgba(201,169,106,.16), rgba(201,169,106,.05)); border: 1px solid rgba(201,169,106,.4); }
.s-upsell-main { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.s-upsell-text { flex: 1; min-width: 220px; color: var(--text); font-size: 14px; line-height: 1.5; }
.s-upsell-btn { flex: none; white-space: nowrap; background: linear-gradient(180deg, #e4c477, var(--gold)); color: #2a1e07; font-weight: 600; font-size: 14px; padding: 12px 18px; border-radius: 12px; text-decoration: none; }
.s-upsell-btn:hover { filter: brightness(1.05); }
.s-upsell-fine { margin-top: 10px; color: var(--muted); font-size: 11.5px; }
