/* ============================================================
   Slideorado — design system (dark-first, El Dorado gold)
   Outfit · Doto (mono labels) · Fraunces (slide headlines)
   ============================================================ */

:root {
  --gold-1: #f3d873;
  --gold-2: #cf9f33;
  --gold-3: #9c6f15;
  --gold-grad: linear-gradient(120deg, var(--gold-1), var(--gold-2) 50%, var(--gold-3));

  --radius: 12px;
  --radius-sm: 9px;
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --font-mono: "Doto", ui-monospace, monospace;
  --font-serif: "Fraunces", Georgia, serif;
}

[data-theme="dark"] {
  --bg: #13120e;
  --bg-soft: #1b1a14;
  --field: #1b1a15;
  --ink: #efe9d8;
  --muted: #9a9684;
  --faint: #6f6c5e;
  --line: rgba(239, 233, 216, 0.12);
  --line-strong: rgba(239, 233, 216, 0.24);
  --gold: #d8b24a;
  --gold-soft: rgba(216, 178, 74, 0.13);
  --on-gold: #1a1710;
  --shadow: rgba(0, 0, 0, 0.45);
  --logo-outline: rgba(205, 164, 52, 0.55);
  --logo-shadow: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
  --bg: #f2efe8;
  --bg-soft: #fffdf8;
  --field: #fffdf8;
  --ink: #1c1a16;
  --muted: #6b6655;
  --faint: #908b78;
  --line: rgba(28, 26, 22, 0.14);
  --line-strong: rgba(28, 26, 22, 0.30);
  --gold: #a9781a;
  --gold-soft: rgba(169, 120, 26, 0.12);
  --on-gold: #1c1a16;
  --shadow: rgba(28, 26, 22, 0.16);
  --logo-outline: rgba(184, 134, 43, 0.6);
  --logo-shadow: rgba(28, 26, 22, 0.16);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}
.doto { font-family: var(--font-mono); font-weight: 600; letter-spacing: 0.04em; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ============================== HEADER ============================== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
}
.wordmark { display: flex; align-items: center; gap: 14px; }
.wm-logo {
  position: relative;
  width: 40px; height: 34px;
  flex: none;
}
.wm-logo::before {
  content: ""; position: absolute; left: 15px; top: 9px;
  width: 22px; height: 22px; border-radius: 7px;
  border: 2px solid var(--logo-outline);
}
.wm-logo::after {
  content: ""; position: absolute; left: 1px; top: 0;
  width: 25px; height: 25px; border-radius: 7px;
  background: var(--gold-grad);
  box-shadow: 3px 3px 0 var(--logo-shadow);
}
.wm-name { font-family: var(--font-head); font-weight: 800; font-size: 24px; letter-spacing: 0.01em; }
.wm-dot { color: var(--gold); }

.topbar-right { display: flex; align-items: center; gap: 18px; }

.seg {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.seg-btn {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.seg-btn.active { background: var(--gold-grad); color: var(--on-gold); }
.seg.ratio .seg-btn { padding: 4px 11px; }

.user-chip { display: flex; align-items: center; gap: 10px; }
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3a5a45, #243a2c);
  border: 1px solid var(--line-strong);
}
.user-email { font-size: 13px; color: var(--gold); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 16px; line-height: 1; padding: 4px;
}
.icon-btn:hover { color: var(--ink); }

/* ============================== LAYOUT ============================== */
.layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 1.05fr) minmax(340px, 1.15fr);
  min-height: calc(100vh - 71px);
}
.col {
  padding: 26px clamp(18px, 2vw, 34px) 60px;
  min-width: 0;
}
.col + .col { border-left: 1px solid var(--line); }

@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; }
  .col + .col { border-left: none; border-top: 1px solid var(--line); }
}

.col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  min-height: 30px;
}
.col-label {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.col-tag, .col-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ============================== FIELDS ============================== */
.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 20px 0 9px;
}
.field-label-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 20px; }
.field-label-row .field-label { margin: 0 0 9px; }

.inline-error {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #e2884a;
  border-left: 2px solid #e2884a;
  padding-left: 10px;
}

/* ============================== BRAND COL ============================== */
.url-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  background: var(--bg-soft);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #4ea36a; flex: none; box-shadow: 0 0 0 3px rgba(78,163,106,0.18); }
.url-input { flex: 1; min-width: 0; background: none; border: none; color: var(--ink); font-family: var(--font-body); font-size: 14px; font-weight: 500; }
.url-input:focus { outline: none; }
.link-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); padding: 0; white-space: nowrap;
}
.link-btn:hover { filter: brightness(1.15); }
.link-btn.upload { display: inline-flex; align-items: center; }

.brand-body {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 16px;
  background: var(--bg-soft);
}
.brand-name { width: 100%; background: none; border: none; color: var(--ink); font-family: var(--font-head); font-weight: 800; font-size: 26px; padding: 0; }
.brand-vibe { width: 100%; background: none; border: none; color: var(--muted); font-size: 14px; padding: 4px 0 0; }
.brand-name:focus, .brand-vibe:focus { outline: none; }

.palette { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); padding: 0; cursor: pointer; overflow: hidden; position: relative;
}
.swatch input[type="color"] { position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); border: none; padding: 0; background: none; cursor: pointer; }

.type-row {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 11px 14px; background: var(--field); margin-bottom: 10px;
}
.type-input { flex: 1; min-width: 0; background: none; border: none; color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.type-input:focus { outline: none; }
.type-tag, .product-name { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }

.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.product-cell {
  position: relative; aspect-ratio: 1; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); overflow: hidden;
  background-color: var(--field);
  background-image: repeating-linear-gradient(135deg, transparent, transparent 7px, var(--line) 7px, var(--line) 8px);
  display: flex; align-items: flex-end; padding: 8px;
}
.product-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-cell .product-name { position: relative; z-index: 1; }
.product-cell .product-remove {
  position: absolute; top: 6px; right: 6px; z-index: 2; width: 22px; height: 22px;
  border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink);
  cursor: pointer; display: none; align-items: center; justify-content: center; font-size: 14px; line-height: 1; padding: 0;
}
.product-cell:hover .product-remove { display: flex; }
.asset-badge {
  position: absolute; top: 6px; left: 6px; z-index: 2;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 999px; line-height: 1;
  background: rgba(19, 18, 14, 0.72); color: var(--gold); border: 1px solid var(--line-strong);
  backdrop-filter: blur(2px);
}
.asset-badge.asset-product { color: var(--gold); border-color: rgba(216, 178, 74, 0.5); }
.asset-badge.asset-logo { color: var(--ink); }
.asset-badge.asset-decoration, .asset-badge.asset-other { color: var(--faint); }
.asset-badge.asset-lifestyle { color: var(--gold-1); }
.asset-badge.asset-alt { color: var(--faint); border-color: var(--line-strong); }
.asset-badge.asset-creative { color: var(--gold); border-color: rgba(216, 178, 74, 0.7); background: rgba(40, 32, 10, 0.78); }
.product-add {
  aspect-ratio: 1; border-radius: var(--radius-sm); border: 1px dashed var(--line-strong);
  background: none; color: var(--gold); font-size: 26px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.creative-row { margin-top: 12px; }
.creative-btn { display: inline-flex; align-items: center; gap: 6px; }
.creative-row .inline-error { margin-top: 6px; }

/* ============================== IDEAS COL ============================== */
.gen-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--bg-soft); }
.topic {
  width: 100%; background: var(--field); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  color: var(--ink); font-family: var(--font-body); font-size: 15px; font-weight: 500; padding: 13px 14px; resize: vertical; min-height: 48px; line-height: 1.4;
}
.topic:focus { outline: none; border-color: var(--gold); }
.topic::placeholder { color: var(--faint); }

.gen-row { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.stepper { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 5px 8px; background: var(--field); }
.step-btn { width: 26px; height: 26px; border: none; background: none; color: var(--ink); font-size: 18px; cursor: pointer; border-radius: 6px; }
.step-btn:hover { background: var(--gold-soft); color: var(--gold); }
.step-val { min-width: 22px; text-align: center; font-size: 17px; color: var(--gold); }
.step-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }

.btn-gold {
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  border: none; border-radius: var(--radius-sm); padding: 12px 22px; cursor: pointer;
  background: var(--gold-grad); color: var(--on-gold); margin-left: auto;
  box-shadow: 0 2px 0 var(--gold-3); transition: transform 0.08s, filter 0.12s;
}
.btn-gold:hover { filter: brightness(1.04); }
.btn-gold:active { transform: translateY(1px); }
.btn-gold[disabled] { opacity: 0.6; cursor: progress; }
.btn-block { width: 100%; margin: 0; padding: 15px; font-size: 15px; }

.ideas-list { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.idea-card {
  display: flex; gap: 16px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  background: var(--bg-soft); cursor: pointer; transition: border-color 0.12s, background 0.12s;
}
.idea-card:hover { border-color: var(--line-strong); }
.idea-card.selected { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 22px var(--gold-soft); }
.idea-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.idea-num { font-size: 18px; color: var(--gold); min-width: 26px; padding-top: 1px; }
.idea-main { flex: 1; min-width: 0; }
.idea-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.idea-concept { font-family: var(--font-head); font-weight: 700; font-size: 18px; margin: 0; line-height: 1.2; }
.idea-flag {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--on-gold); background: var(--gold-grad); padding: 4px 8px; border-radius: 5px; white-space: nowrap; display: none;
}
.idea-card.selected .idea-flag { display: inline-block; }
.idea-angle { color: var(--muted); font-size: 14px; margin: 7px 0 0; }
.idea-meta { color: var(--faint); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; margin: 12px 0 0; }

.skeleton-card { height: 92px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 0.5; } 50% { opacity: 0.85; } }

/* ============================== CAROUSEL COL ============================== */
.carousel-empty { color: var(--faint); font-size: 14px; padding: 60px 8px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }

.stage-row { display: flex; align-items: center; gap: 12px; }
.nav-btn {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--bg-soft); color: var(--gold);
  font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.nav-btn:hover { border-color: var(--gold); }

.slide-stage { flex: 1; min-width: 0; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; }
.slide-stage[data-ratio="11"] { aspect-ratio: 1 / 1; }

.slide {
  width: 100%; height: 100%; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 26px; color: #f2efe8;
}
.slide::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, transparent, transparent 9px, rgba(255,255,255,0.05) 9px, rgba(255,255,255,0.05) 10px);
  pointer-events: none;
}
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide-file { position: relative; z-index: 1; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; opacity: 0.7; }
.slide-mid { position: relative; z-index: 1; }
.slide-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.85; }
.slide-headline { font-family: var(--font-serif); font-weight: 700; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.04; margin: 12px 0 14px; }
.slide-rule { width: 54px; height: 4px; border-radius: 2px; background: currentColor; opacity: 0.85; }
.slide-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }

.rendered-slide { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: var(--radius); }
.slide-rendering {
  width: 100%; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  color: var(--faint); border: 1px dashed var(--line); border-radius: var(--radius); font-size: 14px; text-align: center; padding: 16px;
}
.slide-filename { text-align: right; color: var(--faint); font-size: 11px; letter-spacing: 0.06em; margin: 8px 2px 0; }
.counter { text-align: center; color: var(--faint); font-size: 13px; margin: 10px 0 14px; letter-spacing: 0.1em; }

.thumb-strip { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.thumb { width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--line-strong); cursor: pointer; overflow: hidden; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }

.caption-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 22px 0 16px; background: var(--bg-soft); }
.caption-head { display: flex; align-items: baseline; justify-content: space-between; }
.caption-head .field-label { margin: 0 0 8px; }
.caption-text { width: 100%; background: none; border: none; color: var(--muted); font-family: var(--font-body); font-size: 14px; line-height: 1.55; resize: vertical; }
.caption-text:focus { outline: none; }
.caption-text:not([readonly]) { color: var(--ink); }

.sched-foot { display: flex; justify-content: space-between; margin-top: 12px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ============================== LOGIN PAGE ============================== */
.wm-ink, .wm-gold { font-family: var(--font-head); font-weight: 800; font-size: 24px; letter-spacing: 0.01em; }
.wm-gold { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wm-sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--faint); margin-left: 6px; }

.theme-toggle { display: flex; align-items: center; gap: 10px; background: none; border: none; cursor: pointer; color: var(--ink); font-family: var(--font-body); font-weight: 600; padding: 0; }
.tt-track { width: 50px; height: 26px; border: 2px solid var(--line-strong); border-radius: 40px; background: var(--field); position: relative; display: inline-block; transition: background 0.18s; }
.tt-knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: var(--ink); border-radius: 50%; transition: transform 0.18s, background 0.18s; }
[data-theme="dark"] .tt-track { background: var(--gold-grad); }
[data-theme="dark"] .tt-knob { transform: translateX(24px); background: #1c1a16; }
.tt-label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); width: 42px; text-align: left; }

.login-wrap { max-width: 1500px; margin: 0 auto; padding: clamp(28px, 8vh, 90px) clamp(18px, 4vw, 52px) 80px; display: flex; justify-content: center; }
.login-card { width: min(440px, 100%); }

.panel { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.panel-title { font-family: var(--font-head); font-weight: 800; font-size: 24px; margin: 0; }
.panel-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--line-strong); border-radius: 6px; padding: 4px 8px; }

.kit-label { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin: 18px 0 8px; }

.text-input { width: 100%; background: var(--field); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--ink); font-family: var(--font-body); font-size: 15px; font-weight: 500; padding: 12px 14px; }
.text-input:focus { outline: none; border-color: var(--gold); }
.text-input::placeholder { color: var(--faint); }
.code-input { font-size: 30px; text-align: center; letter-spacing: 0.4em; color: var(--gold); }

.btn { font-family: var(--font-head); font-weight: 700; font-size: 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 11px 18px; cursor: pointer; background: var(--field); color: var(--ink); transition: filter 0.12s; }
.btn-solid { background: var(--gold-grad); color: var(--on-gold); border-color: transparent; box-shadow: 0 2px 0 var(--gold-3); }
.btn-solid:hover { filter: brightness(1.04); }
.btn-big { font-size: 16px; padding: 14px; }
.btn-line { background: transparent; }
.btn-mini { font-size: 12px; padding: 8px 12px; }

.login-sent { font-size: 14px; color: var(--muted); margin: 0 0 6px; }
.login-email { color: var(--ink); font-weight: 700; }
.login-foot { display: flex; gap: 10px; justify-content: space-between; margin-top: 16px; }
.dev-note { margin-top: 16px; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); font-size: 13px; color: var(--muted); }
.dev-note .doto { font-size: 20px; color: var(--gold); letter-spacing: 0.16em; margin-left: 6px; }

/* ============================== PHOTO SLIDES ============================== */
.slide.has-photo { color: #fff; justify-content: flex-end; }
.slide.has-photo::after {
  background-image: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 32%, rgba(0,0,0,0.72) 100%);
}
.slide.has-photo .slide-file { position: absolute; top: 26px; left: 26px; }
.slide.has-photo .slide-mid { position: relative; z-index: 1; }
.slide.has-photo .slide-headline { text-shadow: 0 2px 14px rgba(0,0,0,0.5); }
.slide.has-photo .slide-foot { position: relative; z-index: 1; margin-top: 14px; opacity: 0.9; }

.make-row { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; }
.make-btn {
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
  border: 1px solid var(--gold); color: var(--gold); background: transparent;
  border-radius: var(--radius-sm); padding: 9px 14px; cursor: pointer;
}
.make-btn:hover { background: var(--gold-soft); }
.make-btn[disabled] { opacity: 0.6; cursor: progress; }
.cost-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.cost-tag .doto { color: var(--gold); font-size: 14px; margin-left: 4px; }

/* product photos: show the WHOLE image (no cropping); AI slides fill */
.slide.product-photo img { object-fit: contain; }
.slide.ai-photo img { object-fit: cover; }

.btn-outline {
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  border: 2px solid var(--gold); color: var(--gold); background: transparent;
  border-radius: var(--radius-sm); padding: 13px; cursor: pointer; margin-bottom: 10px;
}
.btn-outline:hover { background: var(--gold-soft); }
.btn-outline[disabled] { opacity: 0.6; cursor: progress; }

/* ============================== CAPTIONS ============================== */
.caps-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); padding: 16px; margin: 0 0 14px; }
.caps-head { display: flex; align-items: baseline; justify-content: space-between; }
.caps-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.caps-controls select, .caps-controls input[type="text"] {
  flex: 1; min-width: 150px; background: var(--field); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); color: var(--ink); font-family: var(--font-body); font-size: 13px; padding: 10px 11px;
}
.caps-controls select:focus, .caps-controls input:focus { outline: none; border-color: var(--gold); }
.caps-controls .make-btn { flex: none; }
.caps-list { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.cap-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; background: var(--field); }
.cap-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cap-subhead { margin-top: 12px; }
.cap-plat { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.cap-text { width: 100%; background: transparent; border: none; resize: vertical; color: var(--ink); font-family: var(--font-body); font-size: 14px; line-height: 1.55; }
.cap-text:focus { outline: none; }
.caps-hint { font-size: 11px; color: var(--faint); }

.tone-select {
  width: 100%; background: var(--field); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); color: var(--ink); font-family: var(--font-body); font-size: 14px; padding: 11px 12px;
}
.tone-select:focus { outline: none; border-color: var(--gold); }
.tone-custom { margin-top: 8px; }

/* ============================== FONT PICKERS ============================== */
.font-picks { display: flex; flex-direction: column; gap: 10px; }
.font-pick { display: flex; align-items: center; gap: 10px; }
.font-pick-label {
  flex: none; width: 52px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--faint);
}
.font-select {
  flex: 1; min-width: 0; background: var(--field); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); color: var(--ink); font-family: var(--font-body); font-size: 13px; padding: 10px 11px;
}
.font-select:focus { outline: none; border-color: var(--gold); }
.font-preview {
  flex: none; width: 46px; text-align: center; font-size: 20px; color: var(--gold);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 6px 4px;
  overflow: hidden; white-space: nowrap; line-height: 1.1;
}

/* hints + empty states */
.field-hint { font-size: 12px; color: var(--muted); margin: 0 0 10px; line-height: 1.5; }
.list-empty { color: var(--faint); font-size: 14px; padding: 28px 4px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }

/* ============================== INTRO (spotlight tour) ============================== */
.intro { position: fixed; inset: 0; z-index: 100; }
.intro-spot {
  position: fixed; border-radius: 14px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.74), 0 0 0 2px var(--gold);
  transition: left 0.28s cubic-bezier(.4,0,.2,1), top 0.28s cubic-bezier(.4,0,.2,1),
              width 0.28s cubic-bezier(.4,0,.2,1), height 0.28s cubic-bezier(.4,0,.2,1);
}
.intro-pop {
  position: fixed; width: min(380px, 90vw);
  background: var(--bg-soft); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); padding: 22px;
  transition: left 0.2s ease, top 0.2s ease;
}
.intro-step { min-height: 92px; }
.intro-title { font-family: var(--font-head); font-weight: 800; font-size: 21px; margin: 0 0 10px; }
.intro-text { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
.intro-dots { display: flex; gap: 7px; margin: 18px 0; }
.intro-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.intro-dot.on { background: var(--gold); }
.intro-actions { display: flex; align-items: center; justify-content: space-between; }
.intro-actions .btn-gold { margin-left: auto; }
