: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-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); }

.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; }

.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); }

/* ---- 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; }
#rec-preview { transform: scaleX(-1); }
.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; }
