:root {
  /* The Financial Playbook brand: black cherry, cherry, blush, warm gold */
  --cherry: #8F1D2C;
  --cherry-hot: #C02A41;
  --cherry-dark: #4A0C15;
  --blush: #E8C9C8;
  --blush-soft: #F6E9E6;
  --gold: #C9A55E;
  --bg: #120709;
  --panel: #1B0D10;
  --panel-2: #26131A;
  --line: rgba(232, 201, 200, .14);
  --line-strong: rgba(232, 201, 200, .32);
  --text: #F8F1EC;
  --muted: #BFA9A8;
  --accent: #8F1D2C;
  --accent-ink: #FFF7F4;
  --rec: #FF3B4E;
  --good: #E8C9C8;
  --radius: 18px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Montserrat", ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cond: "Oswald", "Arial Narrow", Impact, sans-serif;
  --gold-hi: #F4DC92;
  --gold-grad: linear-gradient(180deg, #F8E6A6 0%, #D9B45D 45%, #A9802F 100%);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); overflow-x: clip; }
body {
  font: 16px/1.55 var(--sans);
  font-feature-settings: "ss01";
  background:
    radial-gradient(70% 40% at 85% -5%, rgba(232, 201, 200, .16), transparent 70%),
    radial-gradient(90% 55% at 0% 0%, rgba(143, 29, 44, .45), transparent 65%),
    var(--bg);
  background-attachment: fixed;
  padding: 16px 16px 40px;
  max-width: 760px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}
h1 { font-family: var(--cond); font-weight: 700; text-transform: uppercase; font-size: clamp(34px, 9vw, 58px); line-height: 1.02; margin: 4px 0 12px; letter-spacing: .005em; text-wrap: balance; text-shadow: 0 4px 34px rgba(42, 10, 16, .85); }
h1 span { display: block; }
h1 em, .gold { font-family: var(--serif); font-style: italic; font-weight: 600; text-transform: none; letter-spacing: 0; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; padding-right: .06em; }
h1 .gold { font-family: var(--cond); font-style: normal; font-weight: 700; text-transform: uppercase; }
h2 { font-family: var(--cond); font-weight: 600; text-transform: uppercase; font-size: 22px; margin: 0 0 10px; letter-spacing: .02em; }
.eyebrow { color: var(--gold); font-weight: 600; letter-spacing: .01em; font-size: 14px; margin: 0; }
.sub, .muted { color: var(--muted); margin: 0; }
.small { font-size: 13px; }
.hero { margin: 12px 0 22px; }
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 40%), var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px;
}
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn {
  appearance: none; border: 1px solid var(--line-strong); background: transparent; color: var(--text);
  border-radius: 999px; padding: 11px 18px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.primary {
  background: linear-gradient(180deg, var(--cherry-hot), var(--cherry)); color: var(--accent-ink); border-color: transparent;
  box-shadow: 0 10px 28px -8px rgba(192, 42, 65, .75), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn.primary:hover:not(:disabled) { filter: brightness(1.08); }
.btn:not(.primary):hover:not(:disabled) { border-color: var(--blush); background: rgba(232, 201, 200, .06); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover:not(:disabled) { color: var(--text); }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn.big { width: 100%; padding: 16px; font-size: 17px; margin-top: 12px; letter-spacing: .01em; }
:focus-visible { outline: 2px solid var(--blush); outline-offset: 2px; }
.error { color: #f3a3ae; }
.demo-banner { background: var(--cherry-dark); color: var(--blush-soft); border-radius: 10px; padding: 8px 12px; font-size: 14px; margin-bottom: 12px; }

.past-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.past-row .tx-status { width: 100%; margin: 0; font-size: 13px; }
.past-row:first-child { border-top: 0; }
.tips { padding-left: 18px; font-size: 14px; display: grid; gap: 4px; }
.phase-pill { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,.6); padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--blush); }

/* Coach chat */
.chat { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.msg { padding: 11px 14px; border-radius: 16px; max-width: 88%; white-space: pre-wrap; }
.msg.coach { background: var(--panel); border: 1px solid var(--line); align-self: flex-start; }
.msg.me { background: var(--accent); color: var(--accent-ink); align-self: flex-end; }
.msg.typing { color: var(--muted); }
.chat-form { display: flex; gap: 8px; align-items: flex-end; position: sticky; bottom: 0; background: var(--bg); padding: 8px 0; }
textarea, select {
  width: 100%; background: #120d0e; color: var(--text); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px; font: inherit; resize: vertical;
}
.field { display: block; margin-bottom: 12px; color: var(--muted); }
.field select { margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { margin-top: 5px; width: 18px; height: 18px; }

/* Brief */
.brief dl { margin: 0; display: grid; gap: 10px; }
.brief dt { color: var(--muted); font-size: 13px; }
.brief dd { margin: 0; }

/* Interview room */
.interview { margin: -16px; }
.stage { position: relative; background: #000; width: 100%; height: 64vh; height: 64dvh; overflow: hidden; }
@media (min-width: 700px) { .stage { height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius); margin-top: 16px; } }
#preview { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.rec-pill { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.6); padding: 4px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px; font-size: 14px; }
.rec-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); animation: blink 1.2s infinite; }
.paused .rec-pill .dot { animation: none; background: var(--muted); }
@keyframes blink { 50% { opacity: .2; } }
/* Question sits near the top so eyes stay close to the camera */
.prompter { position: absolute; top: 48px; left: 12px; right: 12px; background: rgba(0,0,0,.62); backdrop-filter: blur(6px); border-radius: 14px; padding: 12px 14px; }
.ack { color: var(--accent); margin: 0 0 4px; font-size: 14px; min-height: 0; }
.question { margin: 0; font-size: clamp(18px, 4.6vw, 24px); font-weight: 650; line-height: 1.25; }
.listening { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.6); padding: 6px 14px; border-radius: 999px; display: flex; gap: 8px; align-items: center; font-size: 14px; }
.bars { display: inline-flex; gap: 3px; align-items: flex-end; height: 14px; }
.bars i { width: 3px; background: var(--good); animation: bar 0.9s infinite ease-in-out; }
.bars i:nth-child(2) { animation-delay: .15s; } .bars i:nth-child(3) { animation-delay: .3s; }
@keyframes bar { 0%,100% { height: 4px; } 50% { height: 14px; } }
.controls { padding: 14px 16px 24px; }
.live-transcript { color: var(--muted); min-height: 1.5em; margin: 0 0 12px; font-size: 15px; }
.typed { margin-bottom: 12px; }
.hooks-live { margin-top: 14px; color: var(--muted); }
.hooks-live ol { color: var(--text); }

/* Results */
.hooks { padding-left: 20px; margin: 0; display: grid; gap: 10px; }
.hooks .t { color: var(--accent); font-variant-numeric: tabular-nums; font-size: 13px; }
.hooks .type { color: var(--muted); font-size: 13px; }
.ledger-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.ledger-row:first-child { border-top: 0; }
.parts { display: flex; gap: 4px; flex-wrap: wrap; }
.part { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--panel-2); color: var(--muted); }
.part.on { background: rgba(232,201,200,.16); color: var(--blush); }
.recover { border-color: var(--accent); }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.pbadge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); }
.pbadge.meta { color: #ff8fd0; border-color: #6b2f57; }
.pbadge.tiktok { color: #5ef0ff; border-color: #22585f; }
.pbadge.youtube { color: #ff7a7a; border-color: #6b2b2b; }
.plat { padding: 8px 0; border-top: 1px solid var(--line); }
.plat:first-child { border-top: 0; }
.plat h3 { margin: 0 0 6px; font-size: 15px; }
.plat ol { margin: 0; padding-left: 20px; }

/* Hook category coverage chips */
.cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.cat { font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); opacity: .55; }
.cat.on { opacity: 1; background: rgba(143,29,44,.3); border-color: var(--blush); color: var(--blush-soft); }
.cat .n { font-weight: 700; margin-left: 4px; }

/* Shorts studio */
.studio .opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 6px 0 12px; }
.step { font-weight: 600; margin: 10px 0 6px; min-height: 1.2em; }
.small { font-size: 13px; }
.bar { height: 6px; background: rgba(255,255,255,.1); border-radius: 99px; overflow: hidden; margin: 6px 0 10px; }
.bar > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--cherry), var(--blush)); transition: width .4s; }
.shorts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-top: 14px; }
.short { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.short video { width: 100%; aspect-ratio: 9 / 16; background: #000; object-fit: cover; display: block; }
.short .meta { padding: 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.short .meta strong { font-size: 14px; line-height: 1.25; }
.short .meta .tags { font-size: 12px; opacity: .7; }
.short .meta .hook { font-size: 12px; opacity: .85; font-style: italic; margin: 0; }
.short .meta .btn { margin-top: auto; padding: 8px 10px; font-size: 13px; }
.file-btn { display: inline-block; cursor: pointer; }

.card { box-shadow: 0 1px 0 rgba(232,201,200,.04) inset; }
.card.studio { border-color: rgba(197,161,90,.45); background: linear-gradient(180deg, rgba(143,29,44,.18), var(--panel) 45%); }
.brandmark { display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; }
.brandmark .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--cherry); box-shadow: 0 0 0 3px rgba(232,201,200,.25); }
.brandmark span { font-family: "Fraunces", Georgia, serif; font-style: italic; color: var(--blush); font-size: 15px; }
input[type=checkbox] { accent-color: var(--cherry); }

/* Position change prompt */
.move { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px;
  background: radial-gradient(80% 60% at 50% 40%, rgba(143,29,44,.55), rgba(10,9,9,.88)); backdrop-filter: blur(4px); }
.move-title { font-family: "Fraunces", Georgia, serif; font-size: 26px; margin: 0; color: var(--blush-soft); }
.move-text { font-size: 19px; font-weight: 600; margin: 0 0 6px; max-width: 420px; }
.move .btn { width: auto; }

/* Mode chooser */
input[type=text] { width: 100%; background: #120d0e; color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; margin-top: 6px; }
.field textarea { margin-top: 6px; }
.plats { margin-top: 6px; }
.quotes { padding-left: 18px; display: grid; gap: 10px; }
.quotes q { color: var(--blush-soft); font-style: italic; }
.angle { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.angle:first-child { border-top: 0; }
.angle input { margin-top: 6px; width: 18px; height: 18px; accent-color: var(--cherry); }
.angle strong { display: block; }
.angle .muted { font-size: 13px; }
.q-tip { font-size: 13px; color: var(--blush); margin: 6px 0 0; }
.check-ok { color: var(--blush); font-size: 12px; }
.check-warn { color: #f3c27a; font-size: 12px; }
[hidden] { display: none !important; }

.studio .opts, #ramp-today .opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.lesson-try { background: rgba(143,29,44,.22); border-left: 3px solid var(--blush); padding: 8px 12px; border-radius: 8px; }
.week-day { padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.week-day.done { opacity: .6; }

.threads { margin: 6px 0 4px; }
.threads summary { cursor: pointer; margin-bottom: 8px; }
.threads .how { padding-left: 18px; display: grid; gap: 6px; margin: 0 0 10px; }
.threads textarea { margin-bottom: 8px; }

/* Voiceover */
.file-btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.vo-clips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 14px; }
.vo-clip { position: relative; border-radius: 10px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); aspect-ratio: 9 / 16; }
.vo-clip img, .vo-clip .ph { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; color: var(--muted); }
.vo-clip span { position: absolute; left: 6px; bottom: 4px; font-size: 11px; color: #fff; text-shadow: 0 1px 3px #000; }
.vo-clip .x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vo-script { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin: 0 0 12px; background: var(--panel); }
.vo-script textarea { width: 100%; font: inherit; font-size: 15px; line-height: 1.45; margin-top: 8px; }
.vo-take { margin: 0 0 18px; }
.vo-prompt { max-height: 46vh; overflow-y: auto; background: #0d0607; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 8px 0 10px; }
.vo-prompt p { font-size: 26px; line-height: 1.35; margin: 0 0 14px; color: #fff; }
.vo-take audio { height: 36px; max-width: 100%; }
@media (max-width: 420px) { .vo-clips { grid-template-columns: repeat(3, 1fr); } .row.two { grid-template-columns: 1fr; } }
.lv-item { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin: 0 0 10px; background: var(--panel); display: grid; gap: 6px; }
.lv-item input { width: 100%; font: inherit; }
.lv-row { display: flex; gap: 8px; align-items: center; }
.lv-label { font-weight: 700; text-transform: uppercase; }
.lv-thumb { max-height: 140px; border-radius: 8px; justify-self: start; }
.lv-shot { justify-self: start; }
.ph-pick { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--panel); border: 1px solid var(--line); }
.ph-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-pick span { position: absolute; left: 6px; bottom: 4px; font-size: 11px; color: #fff; text-shadow: 0 1px 3px #000; }
.ph-pick .x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 12px; }
.ph-post { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
.ph-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.ph-slides img { width: 100%; flex: 0 0 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; display: block; }
.ph-post .meta { padding: 10px 12px 12px; }
.ph-post .row { display: flex; gap: 8px; flex-wrap: wrap; }

.lv-ideas { display: grid; gap: 8px; margin: 8px 0 16px; }
.lv-idea { appearance: none; font: inherit; color: var(--text); text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 4px; cursor: pointer; }
.lv-idea.on { border-color: var(--blush); background: linear-gradient(180deg, rgba(143,29,44,.3), var(--panel)); }
.lv-yt { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 12px; margin: 0 0 8px; color: var(--text); text-decoration: none; background: var(--panel); }
.lv-yt img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.lv-yt > span { display: grid; gap: 2px; min-width: 0; }
.lv-yt strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
#lv-yt h3 { margin: 14px 0 4px; font-size: 15px; }

/* Back buttons and the Video Editor */
.back-top { display: inline-flex; align-items: center; gap: 4px; margin: 4px 0 6px; padding: 8px 12px; font-size: 15px; }
.ed-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.ed-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-size: 14px; }
.ed-list li span { color: var(--muted, #888); white-space: nowrap; }
.ed-list li button { appearance: none; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; padding: 0 4px; }

/* Publish & DMs */
.row-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
#post-dialog { max-width: 520px; width: calc(100% - 32px); border: none; }
#post-dialog::backdrop { background: rgba(0, 0, 0, 0.55); }
.btn.small { padding: 4px 10px; font-size: 0.85em; }
#screen-publish .ed-list li { flex-wrap: wrap; align-items: center; }
#screen-publish .ed-list li span { white-space: normal; }
#screen-publish a.btn { text-decoration: none; }
#post-dialog input[type=datetime-local] { width: 100%; background: #120d0e; color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; margin-top: 6px; }
.ht-preview { width: 100%; max-width: 260px; aspect-ratio: 9 / 16; height: auto; display: block; margin: 10px auto; border-radius: 14px; border: 1px solid var(--line); background: #0d0a0b; }
.rec-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #e0384b; margin-right: 6px; animation: recblink 1.2s infinite; }
@keyframes recblink { 50% { opacity: .25; } }
#screen-howto input[type=file] { margin-top: 6px; width: 100%; }
/* AI Studio */
.st-chars { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.st-chars li { display: flex; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.st-chars li div { display: flex; flex-direction: column; }
.st-chars img, .st-ph { width: 48px; height: 64px; object-fit: cover; border-radius: 8px; background: #120d0e; display: grid; place-items: center; font-size: 22px; }
.st-looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 10px 0; }
.st-looks figure { margin: 0; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; }
.st-looks figure.on { border-color: var(--accent, #e7b3a2); }
.st-looks img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; }
.st-looks figcaption { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; }
.st-jobs { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.st-jobs li { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 6px; }
.st-jobs video { width: 100%; max-width: 260px; aspect-ratio: 9 / 16; border-radius: 12px; background: #0d0a0b; }
#screen-studio select, #screen-studio input:not([type=checkbox]) { background: #120d0e; color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; }
#st-variation { flex: 1; min-width: 200px; }

/* Creative Director chat */
.dr-log { display: grid; gap: 10px; max-height: 520px; overflow-y: auto; padding: 4px 2px; margin: 10px 0; }
.dr-msg { padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); white-space: pre-wrap; line-height: 1.45; }
.dr-msg.user { background: #1d1416; margin-left: 12%; }
.dr-msg.assistant { background: #120d0e; margin-right: 6%; }
.dr-msg .dr-imgs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.dr-msg .dr-imgs img, .dr-attach img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.dr-attach { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.dr-attach span { position: relative; }
.dr-attach button { position: absolute; top: -6px; right: -6px; border-radius: 50%; width: 22px; height: 22px; border: 0; cursor: pointer; }
.dr-prop { margin-top: 10px; padding: 10px; border: 1px dashed var(--line); border-radius: 12px; white-space: normal; }
#dr-text { width: 100%; background: #120d0e; color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; margin-bottom: 8px; }

.dr-modes .btn.on { background: #2a1a1d; border-color: var(--accent, #e7b3a2); }

/* Ad Results */
.ar-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 12px 0; }
.ar-kpis div { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 12px; }
.ar-kpis strong { display: block; font-size: 1.5rem; }
.ar-kpis span { font-size: .8rem; opacity: .7; }
.ar-table { width: 100%; border-collapse: collapse; font-size: .85rem; display: block; overflow-x: auto; }
.ar-table th, .ar-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,.08); vertical-align: top; }

/* Full-screen camera teleprompter: words scroll at the very top, under the lens */
body.tp-open { overflow: hidden; }
.tp { position: fixed; inset: 0; z-index: 1000; background: #000; color: #fff; display: flex; flex-direction: column; }
.tp-cam, .tp-play { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tp-cam { transform: scaleX(-1); }
.tp-play { object-fit: contain; background: #000; z-index: 1; }
audio.tp-play { position: absolute; inset: auto 16px 50% 16px; width: auto; height: 54px; }
.tp-shade { position: absolute; inset: 0 0 auto 0; height: 48%; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.25) 60%, rgba(0,0,0,0)); pointer-events: none; }
.tp-window { position: relative; z-index: 2; margin: max(10px, env(safe-area-inset-top)) 0 0; padding: 4px 18px 0; height: 34vh; overflow: hidden; cursor: pointer;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 72%, transparent 100%); }
.tp-text { will-change: transform; font-weight: 700; line-height: 1.32; letter-spacing: -.005em; text-align: left; max-width: 640px; margin: 0 auto;
  text-shadow: 0 2px 4px rgba(0,0,0,.9), 0 0 14px rgba(0,0,0,.6); }
.tp-text p { margin: 0 0 .35em; }
.tp-text .tp-end { color: var(--rec); text-align: center; margin-bottom: 40vh; }
.tp-count { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; font-size: 120px; font-weight: 800; text-shadow: 0 4px 24px rgba(0,0,0,.7); pointer-events: none; }
.tp-paused { position: absolute; z-index: 3; top: 38vh; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.7); padding: 8px 14px; border-radius: 999px; font-size: 14px; white-space: nowrap; }
.tp-bar { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding: 12px 16px max(16px, env(safe-area-inset-bottom)); display: grid; gap: 10px; justify-items: center;
  background: linear-gradient(0deg, rgba(0,0,0,.7), rgba(0,0,0,0)); }
.tp-tune, .tp-main, .tp-review { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.tp-tune[hidden], .tp-main[hidden], .tp-review[hidden] { display: none; }
.tp-main { width: 100%; justify-content: space-between; max-width: 420px; }
.tp-btn { min-height: 40px; min-width: 44px; padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: rgba(0,0,0,.45); color: #fff; font: inherit; font-size: 15px; cursor: pointer; }
.tp-btn.ghost { background: transparent; }
.tp-btn.keep { background: var(--cherry); border-color: var(--cherry); font-weight: 700; padding: 10px 18px; }
.tp-wpm { font-size: 13px; color: #ddd; min-width: 64px; text-align: center; }
.tp-go { width: 76px; height: 76px; border-radius: 50%; border: 4px solid #fff; background: transparent; display: grid; place-items: center; cursor: pointer; padding: 0; }
.tp-go span { width: 58px; height: 58px; border-radius: 50%; background: var(--rec); transition: all .2s; }
.tp-go.on span { width: 28px; height: 28px; border-radius: 6px; }
.tp-go:disabled { opacity: .5; }
.tp-rec { display: inline-flex; align-items: center; gap: 8px; background: rgba(0,0,0,.55); padding: 6px 12px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.tp-rec[hidden] { display: none; }
.tp-rec .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rec); animation: tpblink 1s infinite; }
@keyframes tpblink { 50% { opacity: .3; } }
.tp-msg { margin: 0; font-size: 14px; color: #eee; text-align: center; min-height: 1em; }
@media (prefers-reduced-motion: reduce) { .tp-rec .dot { animation: none; } .tp-go span { transition: none; } }
#tp-take { width: 100%; max-height: 60vh; border-radius: 14px; background: #000; margin: 6px 0 10px; }
video.tp-play { inset: 0 0 132px 0; height: auto; }
.music-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0; }
.color-pick { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; } .color-pick .field { flex: 1; min-width: 220px; } .color-pick input[type=color] { width: 48px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; }
.clip-roles{display:grid;gap:8px;margin:4px 0 12px 28px}
.clip-roles .hint{margin:0;font-size:.9em;opacity:.8}
.clip-role{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:.95em}
.clip-role select{flex:1 1 220px;max-width:100%}
.field.inline{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0}
.field.inline select{flex:1 1 200px;max-width:100%}
.ask-edit{margin:4px 0 14px}
.ask-edit textarea{width:100%;box-sizing:border-box;resize:vertical;font:inherit}
.ask-edit .row{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:6px}
.flash{animation:flash 1.6s ease}
@keyframes flash{0%,40%{background:rgba(217,38,58,.18);border-radius:8px}100%{background:transparent}}

/* ---------- Facelift (Nov 2026) ---------- */
textarea, select, input[type="text"], input[type="email"], input[type="number"], input[type="password"], input:not([type]) {
  background: rgba(0, 0, 0, .28); border: 1px solid var(--line); border-radius: 14px; color: var(--text); font: inherit;
}
textarea:focus, select:focus, input:focus { border-color: var(--line-strong); outline: none; }
.field { color: var(--text); font-weight: 600; font-size: 14px; }
.field .muted { font-weight: 400; }

/* Top bar and wordmark */
.topbar { display: flex; align-items: center; gap: 10px; padding: 4px 0 0; }
.mark { width: 18px; height: 30px; border-radius: 5px; border: 1.6px solid var(--blush); position: relative; flex: none; }
.mark i { position: absolute; top: 4px; right: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 8px var(--rec); }
.wordmark { font-family: var(--serif); font-size: 19px; font-style: italic; color: #fff; text-shadow: 0 2px 12px rgba(42, 10, 16, .7); }

/* Home hero with the vertical "phone" playing sample captions */
.home-hero { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; margin-top: 18px; }
.home-hero h1 { margin-bottom: 10px; }
.home-hero .sub { max-width: 34ch; font-size: 15.5px; }
.phone-demo { width: clamp(104px, 27vw, 168px); aspect-ratio: 9 / 16; border-radius: 22px; padding: 5px; background: linear-gradient(160deg, #3b1d24, #0d0507); box-shadow: 0 24px 50px -18px rgba(192, 42, 65, .55), inset 0 0 0 1px rgba(232, 201, 200, .2); }
.pd-screen { position: relative; height: 100%; border-radius: 17px; overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, #6b2632, #2a0f15 55%, #140709); }
.pd-glow { position: absolute; inset: -20% -30% auto; height: 70%; background: radial-gradient(closest-side, rgba(246, 233, 230, .55), transparent); filter: blur(10px); animation: pd-drift 9s ease-in-out infinite alternate; }
.pd-person { position: absolute; left: 50%; bottom: -4%; width: 78%; height: 64%; transform: translateX(-50%); background: radial-gradient(ellipse 15% 13% at 50% 21%, #d9b2a4 0 98%, transparent), radial-gradient(ellipse 50% 52% at 50% 100%, #7c1a28 0 97%, transparent); filter: blur(.4px); opacity: .85; }
.pd-caps { position: absolute; inset: auto 6% 17%; height: 2.4em; text-align: center; font: 800 clamp(12px, 3.6vw, 19px)/1.1 var(--sans); text-transform: none; }
.pd-caps b { position: absolute; inset: 0; opacity: 0; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .55), 0 0 12px rgba(0, 0, 0, .45); animation: pd-slam 8s infinite; }
.pd-caps b.alt { color: var(--blush); }
.pd-caps b:nth-child(2) { animation-delay: 2s; }
.pd-caps b:nth-child(3) { animation-delay: 4s; }
.pd-caps b:nth-child(4) { animation-delay: 6s; }
.pd-rec { position: absolute; top: 9px; right: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 8px var(--rec); animation: pd-blink 1.6s steps(2, start) infinite; }
@keyframes pd-slam { 0% { opacity: 0; transform: scale(1.6); } 3% { opacity: 1; transform: scale(.94); } 5% { transform: scale(1); } 22% { opacity: 1; } 25%, 100% { opacity: 0; } }
@keyframes pd-drift { to { transform: translateX(18%); } }
@keyframes pd-blink { to { visibility: hidden; } }

/* Tool picker, grouped by job */
.toolbox { display: grid; gap: 18px; margin: 6px 0 26px; }
.tgroup h2 { font-size: 13px; font-family: var(--cond); font-weight: 500; color: var(--gold-hi); margin: 0 0 9px; letter-spacing: .2em; }
.modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0; }
.mode {
  appearance: none; font: inherit; color: var(--text); text-align: left; cursor: pointer;
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; row-gap: 1px; align-items: start;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 13px 12px;
  transition: border-color .15s, background .15s;
}
.mode:hover { border-color: var(--line-strong); }
.mode .ic { grid-row: 1 / 3; width: 26px; height: 26px; color: var(--blush); margin-top: 1px; }
.mode strong { font-size: 14.5px; font-weight: 700; line-height: 1.25; }
.mode em { font-style: normal; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.mode span { display: none; }
.mode.on { border-color: var(--blush); background: linear-gradient(160deg, rgba(192, 42, 65, .38), rgba(27, 13, 16, .9) 70%); }
.mode.on .ic { color: #fff; }
.setup-title { margin: 0 0 10px; font-size: 26px; }

/* Grouped settings */
fieldset.grp { border: 0; border-top: 1px solid var(--line); margin: 18px 0 0; padding: 16px 0 0; display: grid; gap: 14px; }
fieldset.grp legend { font-family: var(--cond); font-size: 15px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; padding: 0 10px 0 0; color: var(--gold-hi); }
fieldset.grp .field { margin: 0; }

/* Tap buttons that stand in for dropdowns */
select.ui-hidden { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.seg[hidden] { display: none; }
.seg button {
  appearance: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer;
  border: 1px solid var(--line); background: rgba(0, 0, 0, .22); border-radius: 999px; padding: 8px 14px; min-height: 38px;
}
.seg button:hover { color: var(--text); border-color: var(--line-strong); }
.seg button.on { color: #fff; background: var(--cherry); border-color: var(--cherry-hot); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15); }
.seg-hint { margin: 6px 0 0; font-size: 13px; font-weight: 400; color: var(--muted); }

/* Color dots */
.swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 9px; }
.swatches[hidden] { display: none; }
.swatch { appearance: none; width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .35); cursor: pointer; padding: 0; box-shadow: 0 0 0 1px var(--line); }
.swatch.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--blush); }
.swatch-name { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 2px; }

/* Switches instead of checkboxes */
.check { gap: 12px; align-items: flex-start; cursor: pointer; }
.check input[type="checkbox"] {
  appearance: none; flex: none; width: 42px; height: 25px; margin: 1px 0 0; border-radius: 999px; position: relative; cursor: pointer;
  background: rgba(255, 255, 255, .12); border: 1px solid var(--line); transition: background .15s;
}
.check input[type="checkbox"]::after { content: ""; position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; border-radius: 50%; background: var(--blush-soft); transition: transform .18s; }
.check input[type="checkbox"]:checked { background: var(--cherry-hot); border-color: var(--cherry-hot); }
.check input[type="checkbox"]:checked::after { transform: translateX(17px); background: #fff; }
.check > span b { display: block; font-weight: 700; }
.check > span small { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 2px; }

/* Make button stays in reach */
.make-bar { position: sticky; bottom: 0; z-index: 5; margin: 18px -18px -18px; padding: 10px 18px 18px; background: linear-gradient(180deg, transparent, var(--panel) 30%); border-radius: 0 0 var(--radius) var(--radius); }
.make-bar .btn.big { margin-top: 0; flex: 1; }
.studio > h2 { font-size: 30px; }
.ask-edit textarea { min-height: 64px; }

@media (prefers-reduced-motion: reduce) {
  .pd-caps b, .pd-glow, .pd-rec { animation: none; }
  .pd-caps b:nth-child(2) { opacity: 1; }
  .btn, .mode, .check input::after { transition: none; }
}
.swatch.plus { position: relative; }
.swatch.plus::after { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; font: 800 18px/1 var(--sans); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.swatch.auto { background: radial-gradient(circle at 35% 35%, #F6E9E6, #C02A41 55%, #4A0C15) !important; }
.swatch.auto::after { content: "A"; position: absolute; inset: 0; display: grid; place-items: center; font: 800 13px/1 var(--sans); color: #fff; }
.swatch.auto { position: relative; }
.check > span { font-weight: 400; }

/* ---------- Funnel effects: gold type, echo word, glow, shine, pulse, ticker ---------- */
.home-hero { position: relative; isolation: isolate; }
.home-hero::before { content: ""; position: absolute; inset: -30% -10% -10%; z-index: -1; pointer-events: none; background: radial-gradient(50% 45% at 30% 45%, rgba(255, 214, 170, .2), transparent 70%); animation: hfbGlow 5s ease-in-out infinite; }
.hero-copy { position: relative; }
.echo { position: absolute; left: -4px; top: 50%; transform: translateY(-58%); z-index: -1; font-family: var(--cond); font-weight: 700; font-size: clamp(84px, 26vw, 200px); line-height: .85; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.5px rgba(232, 201, 200, .1); white-space: nowrap; pointer-events: none; }
.home-hero h1 { font-size: clamp(36px, 10.5vw, 64px); }
.btn.primary { position: relative; overflow: hidden; }
.btn.primary::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent); transform: skewX(-20deg); animation: hfbShine 3.6s ease-in-out infinite; pointer-events: none; }
.btn.primary:disabled::after { animation: none; display: none; }
.btn.primary { font-family: var(--cond); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.btn.big { font-size: 19px; }
.mark i, .pd-rec { animation: hfbPulse 1.8s infinite; }
.ticker { overflow: hidden; margin: 2px -16px 22px; padding: 9px 0; border-block: 1px solid rgba(201, 165, 94, .22); background: linear-gradient(90deg, rgba(143, 29, 44, .25), rgba(18, 7, 9, .2), rgba(143, 29, 44, .25)); -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; width: max-content; animation: hfbMarq 28s linear infinite; }
.track span { font-family: var(--cond); font-weight: 500; font-size: 14px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-hi); padding: 0 10px; display: flex; align-items: center; }
.track span::after { content: ""; width: 5px; height: 5px; transform: rotate(45deg); background: var(--gold); margin-left: 20px; }
.mode strong { font-family: var(--cond); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; font-size: 16px; }
.mode.on { box-shadow: 0 0 0 1px rgba(201, 165, 94, .5), 0 14px 34px -14px rgba(192, 42, 65, .8); animation: hfbNode 3s ease-in-out infinite; }
.mode.on .ic { color: var(--gold-hi); }
.toolbox .mode { animation: hfbIn .6s cubic-bezier(.2, .7, .2, 1) both; }
.toolbox .tgroup:nth-child(2) .mode { animation-delay: .12s; }
.toolbox .tgroup:nth-child(3) .mode { animation-delay: .22s; }
.toolbox .tgroup:nth-child(4) .mode { animation-delay: .32s; }
.toolbox .mode.on { animation: hfbIn .6s cubic-bezier(.2, .7, .2, 1) both, hfbNode 3s ease-in-out .6s infinite; }
.seg button.on { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 0 0 1px rgba(201, 165, 94, .35); }
.pd-caps { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
.pd-caps b.alt { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .55)); }
@keyframes hfbShine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@keyframes hfbGlow { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes hfbPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 94, .7); } 70% { box-shadow: 0 0 0 9px rgba(255, 77, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 94, 0); } }
@keyframes hfbMarq { to { transform: translateX(-50%); } }
@keyframes hfbIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hfbNode { 0%, 100% { box-shadow: 0 0 0 1px rgba(201, 165, 94, .35), 0 14px 34px -14px rgba(192, 42, 65, .8); } 50% { box-shadow: 0 0 0 2px rgba(201, 165, 94, .7), 0 14px 34px -14px rgba(192, 42, 65, .8); } }
@media (prefers-reduced-motion: reduce) {
  .home-hero::before, .btn.primary::after, .mark i, .pd-rec, .track, .mode, .mode.on, .toolbox .mode { animation: none !important; }
}

/* ---------- Customer accounts ---------- */
body.gated { overflow: hidden; }
.acct-gate { position: fixed; inset: 0; z-index: 1000; overflow-y: auto; padding: 16px 16px 40px;
  background: radial-gradient(70% 45% at 85% -5%, rgba(232, 201, 200, .16), transparent 70%), radial-gradient(90% 55% at 0% 0%, rgba(143, 29, 44, .5), transparent 65%), var(--bg); }
.acct-gate[hidden] { display: none; }
.acct-brand { max-width: 760px; margin: 0 auto; }
.acct-card { position: relative; max-width: 460px; margin: 28px auto 0; }
.acct-card.wide { max-width: 980px; }
.acct-card h1 { font-size: clamp(36px, 10vw, 58px); }
.acct-form { display: grid; gap: 12px; margin-top: 18px; }
.acct-form input { width: 100%; margin-top: 6px; padding: 13px 14px; font-size: 16px; }
.acct-form .btn.big { margin-top: 4px; }
.acct-err { min-height: 1.2em; margin: 0; color: #FFB3BD; font-size: 14px; }
.acct-err.ok { color: var(--blush); }
.acct-note { border: 1px solid rgba(201, 165, 94, .4); background: rgba(201, 165, 94, .08); border-radius: 14px; padding: 12px 14px; margin: 14px 0 0; }
.acct-links { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-top: 18px; }
.linkish { appearance: none; background: none; border: 0; padding: 0; color: var(--blush); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.acct-close { position: absolute; top: -6px; right: 0; appearance: none; background: none; border: 0; color: var(--muted); font-size: 34px; cursor: pointer; line-height: 1; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 20px; }
.plan { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 20px 18px 18px; display: flex; flex-direction: column; }
.plan.pick { border-color: rgba(201, 165, 94, .6); box-shadow: 0 18px 40px -18px rgba(192, 42, 65, .8); background: linear-gradient(170deg, rgba(192, 42, 65, .3), var(--panel) 55%); }
.plan-flag { position: absolute; top: -11px; left: 18px; background: var(--gold-grad); color: #2A0A10; font: 600 12px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.plan h2 { font-size: 26px; margin: 0; }
.plan-line { color: var(--muted); margin: 2px 0 10px; font-size: 14px; }
.plan-price { margin: 0 0 12px; }
.plan-price b { font: 700 46px/1 var(--cond); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan-price span { color: var(--muted); margin-left: 4px; }
.plan ul { margin: 0 0 16px; padding-left: 18px; color: var(--text); font-size: 14.5px; line-height: 1.6; flex: 1; }
.plan .btn.big { margin-top: auto; }
.acct-fine { margin-top: 14px; text-align: center; }
.acct-sec { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 18px; display: grid; gap: 10px; }
.acct-sec h2 { margin: 0; }
.acct-sec h2 small { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; }
.meter { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 14px; }
.meter i { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); position: relative; overflow: hidden; }
.meter i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: linear-gradient(90deg, var(--cherry-hot), var(--gold)); border-radius: 99px; }
.wallet-bal { font: 700 34px/1 var(--cond); margin: 0; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topups { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.topups .btn { display: grid; gap: 2px; border-radius: 14px; padding: 10px; }
.topups .btn small { font-weight: 500; color: var(--muted); font-size: 12px; }
.topbar { flex-wrap: wrap; row-gap: 8px; }
.acct-chip { margin-left: auto; max-width: 52vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; appearance: none; border: 1px solid rgba(201, 165, 94, .45); background: rgba(201, 165, 94, .08); color: var(--gold-hi); font: 500 13px/1 var(--cond); letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 8px 12px; cursor: pointer; }
/* Plan rules in the customer app */
body.no-angles #sh-multi-row, body.no-angles #sh-clips, body.no-background #sh-bg-label, body.no-background #sh-bg-more, body.no-broll #sh-broll-row { display: none !important; }
body.saas .mode[data-mode="results"], body.saas .mode[data-mode="publish"] { display: none; }
.mode.locked { opacity: .55; }
.mode.locked strong::after { content: "Pro"; margin-left: 8px; font: 600 10px/1 var(--cond); letter-spacing: .14em; color: #2A0A10; background: var(--gold-grad); padding: 3px 6px; border-radius: 6px; vertical-align: 2px; }

/* ---------------------------------------------------------------- AI Studio, OpenArt style */
.st-lib-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.st-lib-head h2 { margin: 0 0 2px; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; margin-top: 14px; }
.st-card { position: relative; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--panel-2); cursor: pointer; padding: 0; color: inherit; font: inherit; text-align: left; aspect-ratio: 3 / 4; display: block; width: 100%; transition: border-color .15s, transform .15s; }
.st-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.st-card.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.st-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-card .st-card-ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--cond); font-size: 44px; color: var(--blush); background: radial-gradient(80% 60% at 50% 30%, rgba(143,29,44,.55), var(--panel-2)); }
.st-card .st-card-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 10px 10px; background: linear-gradient(180deg, transparent, rgba(10,4,6,.92)); }
.st-card strong { display: block; font-family: var(--cond); text-transform: uppercase; letter-spacing: .02em; font-size: 17px; line-height: 1.1; }
.st-card small { color: var(--blush); font-size: 12px; }
.st-card.add { display: grid; place-items: center; text-align: center; border-style: dashed; background: transparent; color: var(--blush); }
.st-card.add span { font-size: 34px; line-height: 1; display: block; }
.st-drop { display: grid; gap: 4px; place-items: center; text-align: center; border: 1px dashed var(--line-strong); border-radius: 14px; padding: 22px 14px; cursor: pointer; margin-bottom: 12px; background: rgba(232,201,200,.03); }
.st-drop:hover, .st-drop.over { border-color: var(--blush); background: rgba(232,201,200,.07); }
.st-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.st-thumbs span { position: relative; }
.st-thumbs img { width: 72px; height: 96px; object-fit: cover; border-radius: 10px; display: block; }
.st-thumbs button, .st-gallery .x { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--cherry-hot); color: #fff; cursor: pointer; font-size: 14px; line-height: 24px; padding: 0; }
.ws-head { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.ws-head img { width: 64px; height: 80px; object-fit: cover; border-radius: 12px; background: var(--panel-2); flex: none; }
.ws-head img:not([src]), .ws-head img[src=""] { visibility: hidden; }
.ws-who { flex: 1; min-width: 0; }
.ws-who h2 { margin: 0 0 6px; font-family: var(--cond); text-transform: uppercase; letter-spacing: .02em; }
.ws-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.ws-badges span { font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--blush-soft); }
.ws-badges span.lock { border-color: rgba(201,165,94,.6); color: var(--gold-hi); }
.ws-pane { margin-top: 16px; }
.ws-pane h3 { margin: 18px 0 4px; font-size: 16px; }
.ws-row { display: flex; gap: 10px 16px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 10px; }
.ws-row > .btn { align-self: flex-end; }
.ws-row .field { flex: 1 1 180px; margin-bottom: 0; }
.ws-row input:not([type=checkbox]) { flex: 1 1 200px; }
.field-label { font-weight: 600; font-size: 14px; margin: 4px 0 8px; }
.st-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 14px; }
.st-model { text-align: left; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--panel-2); color: var(--text); font: inherit; cursor: pointer; display: grid; gap: 2px; }
.st-model:hover:not(:disabled) { border-color: var(--line-strong); }
.st-model.on { border-color: var(--cherry-hot); background: linear-gradient(180deg, rgba(143,29,44,.45), var(--panel-2)); }
.st-model:disabled { opacity: .45; cursor: not-allowed; }
.st-model b { font-size: 15px; }
.st-model span { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.st-model i { font-style: normal; font-size: 12px; color: var(--gold-hi); font-weight: 600; }
.make-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }
.make-row p { margin: 0; flex: 1 1 200px; }
.st-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 14px; }
.st-gallery.small { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.st-gallery figure { position: relative; margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: visible; background: var(--panel-2); }
.st-gallery figure img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; border-radius: 12px 12px 0 0; }
.st-gallery.small figure img { border-radius: 12px; }
.st-gallery figcaption { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; }
.st-gallery figcaption .btn { padding: 4px 8px; font-size: 12px; }
.st-gallery .pending { aspect-ratio: 3 / 4; border-radius: 12px; border: 1px dashed var(--line-strong); display: grid; place-items: center; color: var(--muted); font-size: 13px; text-align: center; padding: 8px; background: linear-gradient(110deg, rgba(232,201,200,.03) 30%, rgba(232,201,200,.09) 50%, rgba(232,201,200,.03) 70%) 0 0 / 200% 100%; animation: stShimmer 1.4s linear infinite; }
@keyframes stShimmer { to { background-position: -200% 0; } }
.st-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; }
.st-strip button { flex: none; width: 72px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; }
.st-strip button.on { border-color: var(--gold); }
.st-strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.st-voice-now { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--panel-2); display: grid; gap: 6px; }
.st-voice-now audio, #vo-preview, #vo-out { width: 100%; margin: 6px 0; }
#vo-rec.rec { background: var(--rec); border-color: var(--rec); color: #fff; }
@media (prefers-reduced-motion: reduce) { .st-gallery .pending { animation: none; } .st-card { transition: none; } }

.st-msg { margin: 10px 0 0; min-height: 0; font-weight: 600; color: var(--gold-hi); }
.st-msg:empty { display: none; }
.st-msg.err { color: #f3c27a; }

/* Safe areas: keep content out from under the phone's clock and home bar. */
body { padding-top: max(16px, env(safe-area-inset-top)); padding-bottom: max(40px, calc(env(safe-area-inset-bottom) + 24px)); }
/* Floating Back, within thumb reach on phones. */
.float-back { position: fixed; z-index: 40; left: max(14px, env(safe-area-inset-left)); bottom: max(16px, calc(env(safe-area-inset-bottom) + 8px));
  display: inline-flex; align-items: center; gap: 6px; padding: 12px 18px; border-radius: 999px; font: 600 15px/1 var(--sans);
  color: var(--blush-soft); background: rgba(27, 13, 16, .92); border: 1px solid var(--line-strong); box-shadow: 0 8px 24px rgba(0,0,0,.45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); cursor: pointer; }
.float-back[hidden] { display: none; }
.float-back:active { transform: scale(.97); }
body.has-float-back { padding-bottom: calc(max(40px, env(safe-area-inset-bottom) + 24px) + 64px); }
body.has-float-back .make-bar { padding-bottom: 76px; }
@media (min-width: 900px) { .float-back { left: max(24px, calc(50vw - 380px - 140px)); } }

#screen-versus .field input, #st-create .field input { display: block; width: 100%; margin-top: 6px; }
