@import url("/static/css/brand-palette.css?v=20261017");

/*
 * Beauty Bee customer experience
 * Pearl, blush, powder blue, and teal by design. The customer interface intentionally
 * contains no workflow, prompt, model, or provider terminology.
 */
:root {
  --paper: var(--bb-pearl);
  --paper-deep: var(--bb-powder);
  --surface: var(--bb-white);
  --surface-soft: var(--bb-powder);
  --surface-blush: var(--bb-blush);
  --ink: var(--bb-charcoal);
  --ink-soft: var(--bb-muted);
  --muted: var(--bb-muted);
  --line: var(--bb-line);
  --line-strong: var(--bb-line-strong);
  --brown: var(--bb-teal);
  --brown-deep: var(--bb-teal-hover);
  --terracotta: var(--bb-teal);
  --terracotta-dark: var(--bb-teal-hover);
  --blush: var(--bb-blush);
  --peach: var(--bb-blush);
  --sage: #7c8b74;
  --success: #55765c;
  --danger: #a84f42;
  --warning: #a66c2a;
  --shadow-sm: 0 8px 24px rgba(var(--bb-ink-rgb), 0.06);
  --shadow-md: 0 18px 50px rgba(var(--bb-ink-rgb), 0.09);
  --shadow-lg: 0 32px 90px rgba(var(--bb-ink-rgb), 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --sidebar: 246px;
  --topbar: 78px;
  --ease: cubic-bezier(.2, .75, .25, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
fieldset { min-width: 0; }

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.is-hidden { display: none !important; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--brown-deep);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid var(--bb-teal);
  outline-offset: 3px;
}

/* Shared brand and controls */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 13px 13px 13px 5px;
  color: #fff;
  background: var(--terracotta);
  box-shadow: inset 0 -8px 20px rgba(var(--bb-ink-rgb), 0.15);
}

.brand-mark span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -.5px;
}

.brand-mark--large { width: 56px; height: 56px; border-radius: 18px 18px 18px 7px; }
.brand-mark--large span { font-size: 21px; }
.brand-mark--light { background: rgba(255, 255, 255, .15); border: 1px solid rgba(255,255,255,.2); box-shadow: none; }

.wordmark-text {
  font-size: 20px;
  font-weight: 780;
  letter-spacing: -.04em;
}

.wordmark-text > span {
  margin-left: 1px;
  font-size: .76em;
  font-weight: 570;
  letter-spacing: .08em;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:active:not(:disabled) { transform: translateY(0); }
.button:disabled { cursor: not-allowed; opacity: .55; }
.button svg { width: 18px; height: 18px; }
.button--primary { color: var(--bb-white); background: var(--bb-teal); box-shadow: 0 8px 18px rgba(var(--bb-ink-rgb), 0.2); }
.button--primary:hover:not(:disabled) { background: var(--bb-teal-hover); box-shadow: 0 11px 25px rgba(var(--bb-ink-rgb), 0.26); color: var(--bb-white); }
.button--cream { color: var(--brown-deep); background: var(--bb-pearl); }
.button--cream:hover:not(:disabled) { background: #fff; }
.button--secondary { color: var(--brown); background: var(--surface); border-color: var(--line-strong); }
.button--secondary:hover:not(:disabled) { border-color: var(--terracotta); }
.button--quiet { color: var(--ink-soft); background: transparent; border-color: var(--line); }
.button--small { min-height: 38px; padding: 8px 13px; font-size: 13px; }
.button--large { min-height: 52px; border-radius: 14px; }
.button--full { width: 100%; }

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-soft);
  background: var(--surface);
  cursor: pointer;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--terracotta-dark);
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}

.text-link svg { width: 15px; height: 15px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-link--light { color: var(--bb-pearl); }

.text-button {
  display: block;
  margin: 12px auto 0;
  padding: 6px 10px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 680;
  cursor: pointer;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--terracotta-dark);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: .13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow svg { width: 13px; height: 13px; }
.eyebrow--light { color: var(--bb-pearl); }

/* App chrome */
.app-loading {
  display: grid;
  min-height: 100vh;
  place-content: center;
  justify-items: center;
  gap: 14px;
  color: var(--muted);
}

.app-loading .brand-mark { animation: breathe 1.5s ease-in-out infinite; }
.app-loading p { margin: 0; font-size: 13px; font-weight: 650; }

.app-shell { min-height: 100vh; }

.showcase-banner {
  position: relative;
  z-index: 4;
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px clamp(22px, 4vw, 54px);
  border-bottom: 1px solid rgba(var(--bb-teal-rgb), 0.24);
  color: var(--bb-charcoal);
  background: linear-gradient(90deg, var(--bb-blush), var(--bb-blush) 50%, var(--bb-blush));
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.showcase-banner strong {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--bb-pearl);
  background: var(--bb-teal);
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.showcase-banner span { font-weight: 690; }

.sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: max(22px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  border-right: 1px solid var(--line);
  background: rgba(255, 253, 249, .94);
  backdrop-filter: blur(18px);
}

.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 25px; }
.sidebar-close { display: none; }
.side-nav { display: grid; gap: 5px; }

.side-nav a {
  display: flex;
  min-height: 45px;
  align-items: center;
  gap: 13px;
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.side-nav a:hover { color: var(--ink); background: var(--surface-soft); transform: translateX(2px); }
.side-nav a.is-active { color: var(--brown-deep); background: var(--bb-powder); font-weight: 780; }
.side-nav a.is-active svg { color: var(--terracotta-dark); }
.side-nav svg { width: 19px; height: 19px; }
.sidebar-spacer { flex: 1; }

.credit-card {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 2px 10px;
  padding: 14px;
  border: 1px solid var(--bb-line);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--bb-pearl), var(--bb-blush));
}

.credit-card-icon {
  display: grid;
  width: 34px;
  height: 34px;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--terracotta);
}

.credit-card-icon svg { width: 16px; height: 16px; }
.credit-card span { display: block; color: var(--ink-soft); font-size: 10px; font-weight: 700; letter-spacing: .03em; }
.credit-card strong { display: block; margin-top: -1px; font-family: Georgia, serif; font-size: 25px; line-height: 1; }
.credit-card a { display: inline-flex; grid-column: 1 / -1; align-items: center; gap: 4px; margin-top: 10px; color: var(--terracotta-dark); font-size: 11px; font-weight: 740; text-decoration: none; }
.credit-card a svg { width: 12px; height: 12px; }
.sidebar-note { margin: 12px 0 0; color: var(--bb-muted); font-size: 10px; text-align: center; }

.app-column { min-height: 100vh; margin-left: var(--sidebar); }
.topbar {
  position: sticky;
  z-index: 35;
  top: 0;
  display: flex;
  height: calc(var(--topbar) + env(safe-area-inset-top));
  align-items: center;
  /* viewport-fit=cover runs the page under the Dynamic Island; without this the
     title and the account controls sit behind it on a notched phone. */
  padding: env(safe-area-inset-top) clamp(22px, 4vw, 54px) 0;
  border-bottom: 1px solid rgba(var(--bb-ink-rgb), 0.85);
  background: rgba(var(--bb-pearl-rgb), 0.88);
  backdrop-filter: blur(17px);
}

.menu-button { display: none; margin-right: 12px; }
.topbar-title { min-width: 0; }
.topbar-title span { display: block; color: var(--muted); font-size: 10px; font-weight: 760; letter-spacing: .07em; text-transform: uppercase; }
.topbar-title h1 { margin: 1px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.topbar-actions { display: flex; flex-shrink: 0; align-items: center; gap: 16px; margin-left: auto; }
.topbar-credits { flex-shrink: 0; white-space: nowrap; }
#account-billing, #account-credit-packs { scroll-margin-top: calc(var(--topbar) + env(safe-area-inset-top) + 16px); }

.job-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--bb-line);
  border-radius: 999px;
  color: var(--brown);
  background: var(--bb-pearl);
  font-size: 11px;
  font-weight: 740;
  text-decoration: none;
}

.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--terracotta); box-shadow: 0 0 0 0 rgba(var(--bb-ink-rgb), 0.4); animation: pulse 1.8s infinite; }
.account-button { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; cursor: pointer; text-align: right; }

/* Scenes appearing while a reel is built. All columns sit under one stage-wide
   loading sweep and the existing global progress bar; no panel pretends to be
   a separate job. */
.scene-preview { margin: 16px 0 0; }
.scene-preview--wide {
  margin: 0;
  padding: clamp(18px, 3vw, 30px);
  border-bottom: 1px solid rgba(var(--bb-teal-rgb), 0.12);
  background: linear-gradient(180deg, var(--bb-pearl), var(--bb-pearl));
}
.scene-preview-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.scene-preview-head h3,
.scene-preview-head h4 { margin: 4px 0 0; font-size: clamp(18px, 2.4vw, 26px); font-weight: 780; letter-spacing: -.035em; }
.scene-preview-count { flex: 0 0 auto; color: var(--brown); font-size: 10px; font-weight: 760; }
.scene-preview-stage {
  position: relative;
  overflow: hidden;
  margin-top: 13px;
  padding: 8px;
  border: 1px solid rgba(var(--bb-teal-rgb), 0.14);
  border-radius: 18px;
  background: var(--bb-powder);
  box-shadow: inset 0 1px rgba(255, 255, 255, .8);
}
.scene-preview-grid {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 7px;
}
.scene-slot {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(var(--bb-teal-rgb), 0.12);
  border-radius: 11px;
  aspect-ratio: 9 / 16;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, .58), transparent 44%),
    radial-gradient(circle at 50% 30%, rgba(var(--bb-blush-rgb), 0.62), transparent 42%),
    var(--bb-powder);
}
.scene-slot-number {
  position: absolute;
  right: 9px;
  bottom: 7px;
  color: rgba(var(--bb-ink-rgb), 0.5);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(11px, 1.6vw, 17px);
  font-weight: 700;
}
.scene-slot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.scene-slot.is-loading-image img,
.scene-slot.is-regenerating img { filter: saturate(.72) brightness(.72); }
.scene-slot.is-approved {
  border-color: var(--bb-teal);
  box-shadow: 0 0 0 3px rgba(72, 139, 91, .24), inset 0 0 0 2px rgba(255, 255, 255, .7);
}
.scene-slot.is-needs-revision {
  border-color: var(--bb-teal);
  box-shadow: 0 0 0 3px rgba(var(--bb-ink-rgb), 0.24), inset 0 0 0 2px rgba(255, 255, 255, .7);
}
.scene-slot.is-saving-review { opacity: .72; }
.scene-review-controls {
  position: absolute;
  z-index: 4;
  right: 7px;
  bottom: 7px;
  left: 7px;
  display: flex;
  justify-content: center;
  gap: clamp(4px, .65vw, 8px);
  opacity: 0;
  transform: translateY(5px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.scene-slot.is-reviewable .scene-review-controls { opacity: 1; transform: none; pointer-events: auto; }
.scene-review-control {
  display: grid;
  width: clamp(36px, 3.5vw, 44px);
  height: clamp(36px, 3.5vw, 44px);
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 5px 14px rgba(var(--bb-ink-rgb), 0.28);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.scene-review-control:hover:not(:disabled) { transform: translateY(-2px) scale(1.04); box-shadow: 0 8px 18px rgba(var(--bb-ink-rgb), 0.34); }
.scene-review-control:disabled { cursor: wait; opacity: .6; }
.scene-review-control svg { width: clamp(13px, 1.5vw, 17px); height: clamp(13px, 1.5vw, 17px); }
.scene-review-control--approve { background: var(--bb-teal); }
.scene-review-control--revise { background: var(--bb-teal); }
.scene-review-control[aria-pressed="true"] { box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 7px 18px rgba(var(--bb-ink-rgb), 0.34); }
.scene-review-state {
  position: absolute;
  z-index: 4;
  top: 7px;
  left: 7px;
  max-width: calc(100% - 14px);
  padding: 4px 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  color: #fff;
  background: var(--bb-teal);
  box-shadow: 0 4px 12px rgba(var(--bb-ink-rgb), 0.2);
  font-size: clamp(7px, .8vw, 9px);
  font-weight: 820;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.scene-slot.is-needs-revision .scene-review-state { background: var(--bb-teal); }
.scene-regenerating-state {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  padding: 8px;
  color: #fff;
  background: rgba(var(--bb-teal-rgb), 0.4);
  font-size: clamp(8px, .9vw, 10px);
  font-weight: 800;
  text-align: center;
}
.scene-regenerating-state svg { width: 18px; height: 18px; animation: scene-review-spin 1s linear infinite; }
.scene-slot.is-image-error::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 10px;
  color: #fff;
  background: rgba(77, 44, 34, .7);
  content: "Preview unavailable";
  font-size: 9px;
  font-weight: 760;
  text-align: center;
}
.scene-global-sweep {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: -22%;
  width: 18%;
  transform: skewX(-10deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .42), transparent);
  animation: scene-global-sweep 2.4s ease-in-out infinite;
  pointer-events: none;
}
.scene-preview-stage[aria-busy="false"] .scene-global-sweep { display: none; }
@keyframes scene-global-sweep {
  from { left: -22%; }
  to { left: 108%; }
}
.scene-slot.is-ready { animation: scene-arrive .34s ease-out both; }
@keyframes scene-arrive {
  from { opacity: 0; transform: scale(.94); }
  to { opacity: 1; transform: none; }
}
@keyframes scene-review-spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) {
  .scene-global-sweep,
  .scene-slot.is-ready,
  .scene-regenerating-state svg { animation: none; }
}
.scene-preview-note { margin: 9px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.scene-review-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 18px;
  margin-top: 14px;
  padding: 15px;
  border: 1px solid rgba(var(--bb-teal-rgb), 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 8px 22px rgba(var(--bb-ink-rgb), 0.06);
}
.scene-review-actions[hidden],
.scene-review-action-buttons [hidden] { display: none; }
.scene-review-actions-copy strong { display: block; color: var(--brown-deep); font-size: 13px; }
.scene-review-actions-copy p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.scene-review-action-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.scene-review-action-buttons .button { min-height: 40px; padding: 9px 13px; font-size: 11px; }
.scene-review-message {
  grid-column: 1 / -1;
  min-height: 0;
  margin: -3px 0 0;
  color: var(--bb-muted);
  font-size: 9px;
  font-weight: 730;
  line-height: 1.4;
}
.scene-review-message:empty { display: none; }
.scene-review-message.is-error { color: #a8423f; }
.scene-regenerate-dialog {
  width: min(470px, calc(100% - 28px));
  padding: 0;
  border: 1px solid rgba(var(--bb-teal-rgb), 0.18);
  border-radius: 24px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(var(--bb-ink-rgb), 0.34);
}
.scene-regenerate-dialog::backdrop { background: rgba(var(--bb-teal-rgb), 0.7); backdrop-filter: blur(6px); }
.scene-regenerate-dialog form { display: grid; justify-items: center; padding: 30px; text-align: center; }
.scene-regenerate-mark { display: grid; width: 45px; height: 45px; place-items: center; border-radius: 50%; color: var(--bb-teal); background: var(--bb-blush); }
.scene-regenerate-mark svg { width: 20px; height: 20px; }
.scene-regenerate-dialog h4 { margin: 14px 0 6px; font-size: 23px; letter-spacing: -.035em; }
.scene-regenerate-dialog p { max-width: 370px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.scene-regenerate-buttons { display: flex; width: 100%; justify-content: center; gap: 9px; margin-top: 22px; }

/* The ⋯ control on a content card. It sits above the card's own link, so it
   needs its own stacking context to stay clickable. */
.content-card { position: relative; }
.card-menu-wrap { position: absolute; z-index: 3; top: 8px; right: 8px; }
.card-menu-button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--bb-charcoal);
  background: rgba(255, 253, 249, .9);
  box-shadow: 0 2px 8px rgba(var(--bb-ink-rgb), 0.18);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.card-menu-button:hover { background: #fff; }
.card-menu {
  position: absolute;
  z-index: 4;
  top: 36px;
  right: 0;
  min-width: 178px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 14px 32px rgba(var(--bb-ink-rgb), 0.18);
}
.card-menu button {
  display: block;
  width: 100%;
  padding: 10px 13px;
  border: 0;
  color: var(--ink);
  background: none;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.card-menu button:hover { background: var(--bb-pearl); }
.card-menu button.is-destructive { color: var(--danger); }

/* The account menu hangs from the button, so the wrapper is what it measures
   itself against. */
.account-menu-wrap { position: relative; }
.account-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 10px);
  right: 0;
  min-width: 216px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 18px 40px rgba(var(--bb-ink-rgb), 0.16);
}
.account-menu__who {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.account-menu__who strong { display: block; font-size: 12px; }
.account-menu__who span {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-menu__item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border: 0;
  color: var(--ink);
  background: none;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.account-menu__item svg { width: 15px; height: 15px; flex: 0 0 15px; }
.account-menu__item:hover,
.account-menu__item:focus-visible { background: var(--bb-pearl); }
.account-copy strong, .account-copy small { display: block; }
.account-copy strong { font-size: 12px; }
.account-copy small { overflow: hidden; max-width: 145px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

/* Durable customer inbox. The bell stays compact in the topbar while the
   panel gives each message enough room to be useful rather than toast-sized. */
.notification-center-wrap { position: relative; }
.notification-button { position: relative; }
.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 4px;
  border: 2px solid var(--paper);
  border-radius: 999px;
  color: #fff;
  background: var(--danger);
  font-size: 8px;
  font-weight: 850;
  line-height: 1;
}
.notification-panel {
  position: absolute;
  z-index: 42;
  top: calc(100% + 12px);
  right: 0;
  width: min(390px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(var(--bb-ink-rgb), 0.22);
}
.notification-panel__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 19px 15px;
  border-bottom: 1px solid var(--line);
}
.notification-panel__heading h2 { margin: 2px 0 0; font-size: 18px; letter-spacing: -.03em; }
.notification-read-all { margin: 0; color: var(--terracotta-dark); font-size: 10px; font-weight: 800; }
.notification-read-all:disabled { opacity: .45; cursor: default; }
.notification-list { max-height: min(430px, calc(100vh - 210px)); overflow-y: auto; overscroll-behavior: contain; }
.notification-item {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: 35px minmax(0, 1fr);
  gap: 11px;
  padding: 15px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.notification-item:hover,
.notification-item:focus-visible { background: var(--bb-pearl); }
.notification-item.is-unread { background: var(--bb-blush); }
.notification-item.is-unread::after { position: absolute; top: 18px; right: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--bb-teal); content: ""; }
.notification-item__icon { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 12px; color: var(--bb-teal); background: var(--bb-blush); }
.notification-item__icon svg { width: 17px; height: 17px; }
.notification-item__copy { min-width: 0; padding-right: 8px; }
.notification-item__copy strong,
.notification-item__copy small { display: block; }
.notification-item__copy strong { padding-right: 10px; font-size: 12px; line-height: 1.35; }
.notification-item__copy p { margin: 4px 0 6px; color: var(--ink-soft); font-size: 10px; line-height: 1.5; }
.notification-item__copy small { color: var(--muted); font-size: 9px; }
.notification-empty { padding: 36px 22px; text-align: center; }
.notification-empty svg { width: 28px; height: 28px; color: var(--bb-teal); }
.notification-empty strong { display: block; margin-top: 9px; font-size: 13px; }
.notification-empty p { margin: 5px auto 0; max-width: 250px; color: var(--muted); font-size: 10px; }
.notification-panel__settings { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; color: var(--terracotta-dark); background: var(--bb-pearl); font-size: 10px; font-weight: 800; text-decoration: none; }
.notification-panel__settings svg { width: 14px; height: 14px; }

.avatar, .large-avatar {
  display: grid;
  place-items: center;
  border: 1px solid var(--bb-line);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--bb-blush), var(--bb-teal));
  font-family: Georgia, serif;
  font-weight: 700;
}

.avatar { width: 38px; height: 38px; font-size: 15px; }
.large-avatar { width: 58px; height: 58px; flex: 0 0 58px; font-size: 22px; }

.main-content { width: min(100%, 1420px); min-height: calc(100vh - var(--topbar)); margin: 0 auto; padding: 36px clamp(22px, 4vw, 54px) 70px; }
.view { animation: view-in .35s var(--ease); }
.bottom-nav, .nav-scrim { display: none; }

/* Home */
.home-hero {
  position: relative;
  display: grid;
  min-height: 374px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: var(--bb-pearl);
  background:
    radial-gradient(circle at 72% 15%, rgba(var(--bb-blush-rgb), 0.24), transparent 28%),
    linear-gradient(118deg, var(--bb-teal) 0%, var(--bb-teal) 53%, var(--bb-teal) 100%);
  box-shadow: var(--shadow-md);
}

.home-hero::after {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) .65px, transparent .65px);
  background-size: 9px 9px;
  content: "";
  opacity: .15;
  pointer-events: none;
}

.hero-copy { position: relative; z-index: 2; align-self: center; padding: clamp(34px, 5vw, 62px); padding-right: 20px; }
.hero-copy h2 { max-width: 650px; margin: 13px 0 16px; font-size: clamp(37px, 4.3vw, 61px); font-weight: 710; letter-spacing: -.055em; line-height: .99; }
.hero-copy h2 em, .auth-story-copy h1 em, .onboarding-step h2 em { color: var(--bb-teal); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.hero-copy p { max-width: 560px; margin: 0 0 26px; color: var(--bb-pearl); font-size: 15px; line-height: 1.65; }
.button-row { display: flex; align-items: center; gap: 22px; }
.hero-art { position: relative; min-height: 374px; }

.hero-phone {
  position: absolute;
  z-index: 2;
  top: 38px;
  left: 50%;
  width: 202px;
  height: 329px;
  padding: 7px;
  transform: translateX(-43%) rotate(4deg);
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 28px;
  background: var(--bb-teal);
  box-shadow: 0 28px 65px rgba(var(--bb-ink-rgb), 0.4);
}

.hero-phone-media {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 21px;
  background:
    radial-gradient(circle at 52% 30%, rgba(255, 223, 191, .75) 0 9%, transparent 10%),
    linear-gradient(155deg, #f4d0b8, #bd6e53 48%, #4f2821 85%);
}

.hero-phone-media::after { position: absolute; inset: 0; background: linear-gradient(to top, rgba(30,13,8,.55), transparent 55%); content: ""; }
.hero-mini-label { position: absolute; z-index: 3; bottom: 13px; left: 14px; color: #fff; font-size: 8px; font-weight: 700; letter-spacing: .09em; }
.hero-silhouette { position: absolute; z-index: 1; bottom: -15px; left: 50%; width: 115px; height: 229px; transform: translateX(-50%); border-radius: 55% 55% 20% 20%; background: linear-gradient(110deg, #3c1f1d, #8b4b3c 55%, #261713); box-shadow: 0 -35px 55px rgba(248,195,156,.25); }
.hero-silhouette::before { position: absolute; top: -33px; left: 29px; width: 58px; height: 70px; border-radius: 48% 48% 45% 45%; background: linear-gradient(120deg, #764231, #bd775b); content: ""; }
.hero-shine { position: absolute; z-index: 2; top: -15%; left: -30%; width: 65%; height: 130%; transform: rotate(22deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent); }

.hero-orbit { position: absolute; border: 1px solid rgba(var(--bb-ink-rgb), 0.15); border-radius: 50%; }
.hero-orbit--one { top: 20px; right: 18px; width: 340px; height: 340px; }
.hero-orbit--two { top: 85px; right: 83px; width: 210px; height: 210px; }
.hero-chip { position: absolute; z-index: 4; padding: 8px 11px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; color: var(--bb-pearl); background: rgba(var(--bb-teal-rgb), 0.65); box-shadow: 0 12px 30px rgba(var(--bb-ink-rgb), 0.16); backdrop-filter: blur(10px); font-size: 10px; font-weight: 720; }
.hero-chip svg { width: 12px; height: 12px; }
.hero-chip--one { top: 79px; right: 24px; }
.hero-chip--two { bottom: 51px; left: 2px; display: inline-flex; align-items: center; gap: 5px; }

.honey-hotline-launcher {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: 0;
  overflow: hidden;
  margin-top: 30px;
  padding: clamp(30px, 4.5vw, 48px) clamp(22px, 6vw, 72px);
  border: 1px solid rgba(var(--bb-teal-rgb), 0.16);
  border-radius: var(--radius-xl);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, .78), transparent 26%),
    radial-gradient(circle at 88% 94%, rgba(var(--bb-blush-rgb), 0.72), transparent 34%),
    linear-gradient(135deg, var(--bb-pearl) 0%, var(--bb-blush) 58%, var(--bb-blush) 118%);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.honey-hotline-launcher::before,
.honey-hotline-launcher::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(var(--bb-teal-rgb), 0.16);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.honey-hotline-launcher::before { top: -128px; left: -88px; width: 230px; height: 230px; }
.honey-hotline-launcher::after { right: -62px; bottom: -105px; width: 190px; height: 190px; box-shadow: 0 0 0 28px rgba(var(--bb-ink-rgb), 0.18); }

.honey-hotline-launcher__mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 13px;
  border: 1px solid rgba(var(--bb-teal-rgb), 0.15);
  border-radius: 50%;
  color: var(--bb-charcoal);
  background: var(--bb-blush);
  box-shadow: 0 11px 24px rgba(var(--bb-ink-rgb), 0.2), inset 0 1px rgba(255, 255, 255, .72);
}

.honey-hotline-launcher__mark svg { width: 25px; height: 25px; stroke-width: 2; }
.honey-hotline-launcher__eyebrow { color: var(--terracotta-dark); }

.honey-hotline-launcher h2 {
  max-width: 720px;
  margin: 9px 0 10px;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: 1.02;
  text-wrap: balance;
}

.honey-hotline-launcher > p {
  max-width: 670px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
  text-wrap: balance;
}

.honey-hotline-launcher__starters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.honey-hotline-launcher__starters li {
  padding: 8px 12px;
  border: 1px solid rgba(var(--bb-teal-rgb), 0.13);
  border-radius: 999px;
  color: var(--brown);
  background: rgba(var(--bb-pearl-rgb), 0.8);
  box-shadow: inset 0 1px rgba(255, 255, 255, .68);
  font-size: 11px;
  font-weight: 760;
}

.customer-app .button.button--primary.honey-hotline-launcher__button {
  min-width: 236px;
  margin-top: 22px;
  border-color: var(--bb-teal);
  color: var(--bb-white);
  background: var(--bb-teal);
  box-shadow: 0 12px 25px rgba(var(--bb-ink-rgb), 0.2);
}

.customer-app .button.button--primary.honey-hotline-launcher__button:hover:not(:disabled) { background: var(--bb-teal-hover); color: var(--bb-white); }

.honey-hotline-launcher > small {
  margin-top: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 680;
}

@media (max-width: 680px) {
  .honey-hotline-launcher {
    margin-top: 20px;
    padding: 28px 18px;
    border-radius: 24px;
  }
  .honey-hotline-launcher h2 { font-size: clamp(29px, 9.5vw, 38px); }
  .honey-hotline-launcher > p { font-size: 13px; }
  .honey-hotline-launcher__starters { display: grid; width: min(100%, 340px); }
  .honey-hotline-launcher__starters li { padding-block: 9px; }
  .customer-app .button.button--primary.honey-hotline-launcher__button { width: min(100%, 340px); min-width: 0; }
  .honey-hotline-launcher > small { max-width: 260px; }
}

.section-block { margin-top: 42px; }
.section-heading, .panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.section-heading h2, .panel-heading h2 { margin: 5px 0 0; font-size: 23px; font-weight: 750; letter-spacing: -.035em; }
.template-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.template-grid--home { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.template-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s ease, border-color .22s ease;
}

.template-card:hover { transform: translateY(-4px); border-color: var(--bb-line); box-shadow: var(--shadow-md); }
.template-card > a { display: block; height: 100%; color: inherit; text-decoration: none; }
.template-cover { height: 205px; }

.template-cover img { width: 100%; height: 100%; object-fit: cover; }
/* Keep both faces in the upper portion of the portrait cover visible in cards. */
:is(.template-cover, .detail-preview, .content-card-cover):is([data-template-id="the-ring"], [data-template-id="ghost-lash"]) > img { object-position: 50% 15%; }
.template-cover::after { position: absolute; inset: 0; background: linear-gradient(to top, rgba(38,20,13,.38), transparent 50%); content: ""; }
.template-cover[data-style="blush"] { background: linear-gradient(150deg, #f5ddd7, #d18d83 55%, #6b3936); }
.template-cover[data-style="editorial"] { background: linear-gradient(145deg, #d8c7b7, #76665a 52%, #292522); }
.template-cover[data-style="gold"], .template-cover[data-style="luxury"] { background: linear-gradient(145deg, #f2d9b5, #b8814e 54%, #3d2a20); }
.template-cover[data-style="dark"] { background: linear-gradient(145deg, #9b796a, #4c2e27 58%, #1e1613); }
.template-cover[data-style="pink"] { background: linear-gradient(145deg, #f1c9cb, #bd7278 55%, #553035); }

.template-figure { position: absolute; z-index: 1; bottom: -15%; left: 50%; width: 34%; height: 92%; transform: translateX(-50%); border-radius: 48% 48% 28% 28%; background: linear-gradient(105deg, rgba(72,40,31,.9), rgba(158,89,68,.92)); box-shadow: 0 -20px 50px rgba(255,225,202,.22); }
.template-figure::before { position: absolute; top: -12%; left: 25%; width: 52%; height: 26%; border-radius: 50% 50% 45% 45%; background: #9b5d49; content: ""; }
.template-shine { position: absolute; z-index: 2; top: -50%; left: 2%; width: 26%; height: 180%; transform: rotate(28deg); background: rgba(255,255,255,.13); }
.template-emoji { position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%); filter: drop-shadow(0 9px 15px rgba(var(--bb-ink-rgb), 0.2)); font-size: 38px; }
.template-play { position: absolute; z-index: 3; right: 13px; bottom: 12px; display: grid; width: 35px; height: 35px; place-items: center; border-radius: 50%; color: #fff; background: rgba(var(--bb-teal-rgb), 0.7); backdrop-filter: blur(8px); }
.template-play svg { width: 15px; height: 15px; fill: currentColor; stroke-width: 0; }
.template-card-body { padding: 16px 17px 17px; }
.template-card-body h3 { margin: 0; font-size: 16px; font-weight: 780; letter-spacing: -.025em; }
.template-card-body p { min-height: 41px; margin: 7px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.template-meta { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--bb-line); color: var(--muted); font-size: 10px; font-weight: 650; }
.template-meta strong { color: var(--terracotta-dark); font-size: 11px; }

/* Full Studio destination for the landing page's What’s Buzzing menu item. */
.studio-buzzing-browser {
  display: grid;
  min-width: 0;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 13px;
}

.studio-buzzing-nav {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.studio-buzzing-nav span { transform: translateY(-1px); font-size: 28px; line-height: 1; }
.studio-buzzing-nav:hover:not(:disabled) { border-color: var(--bb-line); background: var(--surface-blush); }
.studio-buzzing-nav:disabled { cursor: not-allowed; opacity: .3; }

.studio-buzzing-rail {
  display: grid;
  min-width: 0;
  grid-auto-flow: column;
  grid-auto-columns: clamp(180px, 22vw, 240px);
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 4px 14px;
  scroll-padding-inline: 4px;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  touch-action: pan-x pan-y;
  cursor: grab;
  user-select: none;
  scrollbar-width: thin;
  scrollbar-color: var(--bb-teal) rgba(var(--bb-teal-rgb), 0.08);
}

.studio-buzzing-rail::-webkit-scrollbar { height: 8px; }
.studio-buzzing-rail::-webkit-scrollbar-track { border-radius: 999px; background: rgba(var(--bb-teal-rgb), 0.08); }
.studio-buzzing-rail::-webkit-scrollbar-thumb { border-radius: 999px; background: var(--bb-powder); }
.studio-buzzing-rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }

.studio-buzzing-card {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(var(--bb-teal-rgb), 0.16);
  border-radius: 22px;
  background: var(--brown-deep);
  box-shadow: 0 14px 32px rgba(var(--bb-ink-rgb), 0.15);
  scroll-snap-align: start;
}

.studio-buzzing-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
  transform: scale(1.01);
  transition: transform .25s var(--ease);
}

.studio-buzzing-card:hover > img { transform: scale(1.045); }
.studio-buzzing-card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,10,7,.08) 28%, rgba(22,10,7,.9) 100%); }
.studio-buzzing-card__format {
  position: absolute;
  top: 13px;
  left: 13px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  color: #fff;
  background: rgba(var(--bb-teal-rgb), 0.58);
  backdrop-filter: blur(7px);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.studio-buzzing-card__body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 8px;
  padding: 20px 17px 18px;
  color: #fff;
}

.studio-buzzing-card__body > span {
  width: max-content;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--bb-charcoal);
  background: var(--bb-blush);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.studio-buzzing-card__body strong { font-size: 17px; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.studio-buzzing-card__body p { margin: 0; color: rgba(255,255,255,.84); font-size: 11px; line-height: 1.45; }
.studio-buzzing-help { margin: 11px 0 0; color: var(--muted); font-size: 12px; text-align: center; }

@media (max-width: 680px) {
  .studio-buzzing-browser { grid-template-columns: minmax(0, 1fr); }
  .studio-buzzing-nav { display: none; }
  .studio-buzzing-rail { grid-auto-columns: clamp(170px, 65vw, 220px); }
}

@media (prefers-reduced-motion: reduce) {
  .studio-buzzing-card > img { transition: none; }
  .studio-buzzing-card:hover > img { transform: scale(1.01); }
}

.home-bottom-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 20px; margin-top: 38px; }
.soft-panel, .brand-prompt { padding: 23px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.panel-heading { align-items: center; margin-bottom: 14px; }
.panel-heading h2 { font-size: 18px; }
.brand-prompt { display: flex; flex-direction: column; align-items: flex-start; background: linear-gradient(145deg, var(--bb-blush), var(--bb-blush)); }
.brand-prompt-icon, .settings-icon { display: grid; width: 41px; height: 41px; place-items: center; border-radius: 13px; color: var(--terracotta-dark); background: rgba(255,255,255,.7); }
.brand-prompt h2 { margin: 8px 0 6px; font-size: 20px; letter-spacing: -.03em; }
.brand-prompt p { margin: 0 0 18px; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.recent-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 11px 0; border-top: 1px solid var(--bb-line); color: inherit; text-decoration: none; }
.recent-row:first-child { border-top: 0; }
.recent-thumb { display: grid; width: 54px; height: 64px; place-items: center; overflow: hidden; border-radius: 10px; color: #fff; background: linear-gradient(145deg, var(--peach), var(--terracotta)); }
.recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-thumb svg { width: 18px; height: 18px; }
.recent-copy { min-width: 0; }
.recent-copy strong, .recent-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-copy strong { font-size: 12px; }
.recent-copy small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; color: var(--ink-soft); background: var(--surface-soft); font-size: 9px; font-weight: 780; text-transform: capitalize; }
.status-badge--ready { color: #41624a; background: #e7f0e7; }
.status-badge--working { color: var(--bb-teal); background: var(--bb-blush); }
.status-badge--failed { color: #95433a; background: #f7e1df; }

/* Common page content */
.page-intro { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin: 5px 0 28px; }
.page-intro--compact { margin-bottom: 22px; }
.page-intro--row { align-items: center; }
.page-intro h2 { margin: 6px 0 5px; font-size: clamp(30px, 3.5vw, 43px); font-weight: 720; letter-spacing: -.05em; line-height: 1.08; }
.page-intro p { max-width: 650px; margin: 0; color: var(--muted); line-height: 1.6; }

.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.search-field { display: flex; width: auto; min-width: 210px; min-height: 43px; flex: 1 1 235px; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.search-field svg { width: 17px; color: var(--muted); }
.search-field input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
.search-field input::placeholder { color: var(--bb-muted); }
.filter-chips { display: flex; gap: 7px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chips button, .content-tabs button { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: var(--surface); font-size: 11px; font-weight: 700; cursor: pointer; }
.filter-chips button.is-active, .content-tabs button.is-active { border-color: var(--brown); color: #fff; background: var(--brown); }

.template-industry-field {
  display: flex;
  min-width: 205px;
  min-height: 43px;
  flex: 0 1 225px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.template-industry-field select { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.template-format-filters { display: flex; min-width: 0; flex: 0 1 auto; gap: 3px; overflow-x: auto; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); scrollbar-width: none; }
.template-format-filters::-webkit-scrollbar { display: none; }
.template-format-filters button { min-height: 33px; flex: 0 0 auto; padding: 7px 11px; border: 0; border-radius: 999px; color: var(--ink-soft); background: transparent; font: inherit; font-size: 10px; font-weight: 760; cursor: pointer; }
.template-format-filters button.is-active { color: #fff; background: var(--brown); box-shadow: 0 4px 12px rgba(var(--bb-ink-rgb), 0.14); }
.template-buzzing-toggle { display: inline-flex; min-height: 43px; flex: 0 0 auto; align-items: center; justify-content: center; gap: 7px; padding: 9px 14px; border: 1px solid var(--bb-teal); border-radius: 999px; color: var(--brown-deep); background: var(--bb-blush); font: inherit; font-size: 10px; font-weight: 820; cursor: pointer; box-shadow: 0 7px 16px rgba(var(--bb-ink-rgb), 0.12); }
.template-buzzing-toggle svg { width: 14px; height: 14px; }
.template-buzzing-toggle:hover, .template-buzzing-toggle.is-active { border-color: var(--bb-teal); background: var(--bb-blush); }
.template-format-filters button:focus-visible,
.template-buzzing-toggle:focus-visible,
.template-industry-field:focus-within { outline: 3px solid var(--bb-teal); outline-offset: 2px; }

.template-results-bar { display: flex; min-height: 29px; align-items: center; justify-content: space-between; gap: 15px; margin: 0 2px 13px; }
.template-results-bar p { margin: 0; color: var(--muted); font-size: 10px; font-weight: 650; }
.template-results-bar button { padding: 5px 8px; border: 0; border-radius: 8px; color: var(--terracotta-dark); background: transparent; font: inherit; font-size: 10px; font-weight: 760; cursor: pointer; }
.template-results-bar button:hover { background: var(--surface-blush); }

.template-buzzing-panel { margin: 0 0 20px; padding: clamp(17px, 2.2vw, 24px); border: 1px solid var(--line); border-radius: 23px; background: linear-gradient(145deg, var(--bb-pearl), var(--bb-blush)); box-shadow: var(--shadow-sm); }
.template-buzzing-panel__heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 15px; }
.template-buzzing-panel__heading h3 { margin: 4px 0 0; font-size: clamp(21px, 2.5vw, 29px); letter-spacing: -.04em; }
.template-buzzing-panel__heading p { max-width: 530px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.template-buzzing-types { display: flex; gap: 7px; overflow-x: auto; margin: 0 0 15px; padding: 2px 1px 5px; scrollbar-width: none; }
.template-buzzing-types::-webkit-scrollbar { display: none; }
.template-buzzing-types button { min-height: 34px; flex: 0 0 auto; padding: 7px 11px; border: 1px solid rgba(var(--bb-teal-rgb), 0.16); border-radius: 999px; color: var(--ink-soft); background: rgba(255, 253, 249, .72); font: inherit; font-size: 9px; font-weight: 780; cursor: pointer; }
.template-buzzing-types button:hover { border-color: var(--bb-teal); background: var(--bb-blush); }
.template-buzzing-types button.is-active { border-color: var(--bb-teal); color: var(--bb-pearl); background: var(--bb-teal); }
.template-buzzing-types button:focus-visible { outline: 3px solid var(--bb-teal); outline-offset: 2px; }

.empty-state, .error-state {
  display: grid;
  min-height: 270px;
  grid-column: 1 / -1;
  place-items: center;
  align-content: center;
  padding: 30px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--muted);
  background: rgba(255,255,255,.46);
  text-align: center;
}

.empty-state-icon { display: grid; width: 54px; height: 54px; margin-bottom: 12px; place-items: center; border-radius: 17px; color: var(--terracotta); background: var(--bb-blush); }
.empty-state h3, .error-state h3 { margin: 0 0 5px; color: var(--ink); font-size: 17px; }
.empty-state p, .error-state p { max-width: 390px; margin: 0 0 17px; font-size: 12px; }
.skeleton { position: relative; overflow: hidden; border-radius: 10px; background: var(--bb-powder); }
.skeleton::after { position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); content: ""; animation: shimmer 1.35s infinite; }
.template-skeleton { height: 330px; border-radius: 19px; }

/* Template detail */
.back-link { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 20px; padding: 5px 0; border: 0; color: var(--muted); background: none; font-size: 12px; font-weight: 720; cursor: pointer; }
.back-link svg { width: 14px; transform: rotate(180deg); }
.template-detail { display: grid; grid-template-columns: minmax(320px, .86fr) minmax(0, 1.14fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-md); }
.detail-preview { position: relative; min-height: 580px; overflow: hidden; background: linear-gradient(150deg, var(--bb-blush), var(--bb-teal) 52%, var(--bb-teal)); }
.detail-preview .template-figure { width: 33%; height: 74%; bottom: 0; }
.detail-preview::after { position: absolute; inset: 0; background: linear-gradient(to top, rgba(39,20,14,.5), transparent 48%); content: ""; }
.detail-preview-label { position: absolute; z-index: 3; right: 20px; bottom: 20px; left: 20px; display: flex; justify-content: space-between; color: #fff; font-size: 10px; font-weight: 700; }
.detail-copy { align-self: center; padding: clamp(34px, 5vw, 65px); }
.detail-copy h2 { margin: 11px 0 12px; font-size: clamp(34px, 4vw, 52px); font-weight: 720; letter-spacing: -.055em; line-height: 1.03; }
.detail-description { max-width: 590px; margin: 0 0 25px; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
.detail-includes { display: grid; gap: 11px; margin: 0 0 27px; padding: 20px 0; border-block: 1px solid var(--line); }
.detail-includes span { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 12px; }
.detail-includes svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; color: #fff; background: var(--success); }
.detail-footer { display: flex; align-items: center; gap: 17px; }
.detail-cost strong, .detail-cost small { display: block; }
.detail-cost strong { font-size: 14px; }
.detail-cost small { color: var(--muted); font-size: 10px; }

/* Create */
.create-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(290px, .7fr); align-items: start; gap: 22px; }
.create-main { display: grid; gap: 17px; }
.selected-template-strip { display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 11px 14px 11px 11px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.selected-template-thumb { position: relative; width: 66px; height: 60px; overflow: hidden; border-radius: 11px; background: linear-gradient(145deg, var(--peach), var(--terracotta)); }
.selected-template-thumb .template-figure { width: 25%; }
.selected-template-copy { min-width: 0; }
.selected-template-copy span, .selected-template-copy strong { display: block; }
.selected-template-copy span { color: var(--muted); font-size: 9px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.selected-template-copy strong { overflow: hidden; margin-top: 2px; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.selected-template-strip a { color: var(--terracotta-dark); font-size: 11px; font-weight: 740; }

.form-section, .settings-card {
  margin: 0;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.guest-account-gate {
  width: min(680px, 100%); margin: clamp(18px, 6vh, 70px) auto;
  padding: clamp(28px, 6vw, 54px); border: 1px solid var(--line);
  border-radius: var(--radius-xl); background: rgba(var(--bb-pearl-rgb), 0.96);
  box-shadow: var(--shadow-md); text-align: center;
}
.guest-account-gate__icon {
  display: inline-grid; width: 58px; height: 58px; margin-bottom: 16px;
  place-items: center; border-radius: 19px; color: var(--brown-deep);
  background: linear-gradient(145deg, var(--bb-blush), var(--bb-blush));
}
.guest-account-gate__icon svg { width: 25px; height: 25px; }
.guest-account-gate h2 { margin: 8px 0 10px; font-size: clamp(27px, 5vw, 42px); letter-spacing: -.045em; }
.guest-account-gate > p { max-width: 520px; margin: 0 auto; color: var(--muted); line-height: 1.65; }
.guest-account-gate__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px 0 14px; }
.guest-account-gate > small { display: block; color: var(--muted); line-height: 1.5; }

.form-section legend { padding: 0; color: var(--ink); font-size: 16px; font-weight: 780; }
.form-section legend span { display: inline-grid; width: 27px; height: 27px; margin-right: 8px; place-items: center; border-radius: 50%; color: var(--terracotta-dark); background: var(--bb-blush); font-size: 11px; }
.legend-help { margin: 0 0 17px 39px; color: var(--muted); font-size: 11px; }

.upload-zone {
  position: relative;
  display: grid;
  min-height: 310px;
  overflow: hidden;
  place-items: center;
  border: 1.5px dashed var(--bb-line);
  border-radius: 17px;
  background: var(--bb-pearl);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.upload-zone:hover, .upload-zone.is-dragging { border-color: var(--terracotta); background: var(--bb-pearl); }
.upload-zone.is-preparing { cursor: wait; opacity: .72; }
.upload-zone.is-preparing::before { position: absolute; z-index: 3; padding: 10px 14px; border-radius: 999px; color: var(--brown); background: rgba(255,255,255,.92); box-shadow: var(--shadow-sm); content: "Preparing photo…"; font-size: 11px; font-weight: 800; }
.upload-zone:focus-within { border-color: var(--terracotta); outline: 3px solid var(--bb-teal); outline-offset: 3px; }
.upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-zone > img { display: none; width: 100%; height: 100%; min-height: 310px; object-fit: cover; }
.upload-zone.has-image > img { display: block; }
.upload-zone.has-image::after { position: absolute; inset: 55% 0 0; background: linear-gradient(to top, rgba(var(--bb-teal-rgb), 0.72), transparent); content: ""; }
.upload-empty { display: grid; justify-items: center; padding: 28px; text-align: center; }
.upload-empty strong { margin: 11px 0 4px; font-size: 14px; }
.upload-empty small { margin-bottom: 16px; color: var(--muted); font-size: 10px; }
.upload-icon { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 17px; color: var(--terracotta-dark); background: var(--bb-blush); }
.upload-ready { position: absolute; z-index: 2; right: 14px; bottom: 13px; left: 14px; display: none; align-items: center; justify-content: space-between; color: #fff; }
.upload-ready strong { font-size: 12px; }
.upload-ready small { font-size: 10px; }
.upload-zone.has-image .upload-empty { display: none; }
.upload-zone.has-image .upload-ready { display: flex; }
.photo-tips { display: flex; justify-content: center; gap: 20px; padding-top: 13px; color: var(--muted); font-size: 10px; }
.photo-tips span { display: inline-flex; align-items: center; gap: 5px; }
.photo-tips svg { width: 14px; height: 14px; color: var(--success); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.field { display: grid; gap: 7px; }
.field--wide { grid-column: 1 / -1; }
.field > span:first-child { color: var(--ink-soft); font-size: 11px; font-weight: 740; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 45px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  outline: 0;
  color: var(--ink);
  background: #fffefa;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.field input::placeholder, .field textarea::placeholder { color: var(--bb-muted); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(var(--bb-ink-rgb), 0.1); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.input-prefix { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 11px; background: #fffefa; }
.input-prefix > span { padding-left: 12px; color: var(--muted); }
.input-prefix input { border: 0; box-shadow: none !important; }
.field-error { min-height: 0; margin: 7px 0 0; color: var(--danger); font-size: 11px; font-weight: 650; }
.field-error:empty { display: none; }

.create-summary { position: sticky; top: calc(var(--topbar) + 20px); }
.summary-card { overflow: hidden; padding: 25px; border-radius: var(--radius-lg); color: var(--bb-pearl); background: linear-gradient(145deg, var(--bb-teal), var(--bb-teal)); box-shadow: var(--shadow-md); }
.summary-card h2 { margin: 8px 0 22px; font-size: 24px; line-height: 1.15; letter-spacing: -.04em; }
.summary-card .eyebrow { color: var(--bb-teal); }
.summary-line { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.12); color: var(--bb-muted); font-size: 10px; }
.summary-line strong { color: #fff; font-size: 10px; text-align: right; }
.summary-line--total { margin-top: 5px; padding: 14px 0; }
.summary-line--total span { font-size: 12px; font-weight: 750; }
.summary-line--total strong { color: var(--bb-pearl); font-family: Georgia, serif; font-size: 16px; }
.consent-check { display: grid; grid-template-columns: 17px 1fr; gap: 9px; margin: 10px 0 13px; color: var(--bb-pearl); font-size: 9.5px; line-height: 1.5; cursor: pointer; }
.consent-check input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--terracotta); }
.summary-card .field-error { color: #ffb7a7; }
.secure-note { display: flex; align-items: flex-start; gap: 6px; margin: 11px 0 0; color: var(--bb-muted); font-size: 9px; line-height: 1.45; text-align: center; }
.secure-note svg { width: 13px; height: 13px; flex: 0 0 13px; }

/* Job progress and result */
.job-page { max-width: 1000px; margin: 0 auto; }
.job-back { margin-bottom: 18px; }
.progress-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-md); }
.progress-visual { position: relative; display: grid; min-height: 235px; place-items: center; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--bb-teal), var(--bb-teal)); }
.progress-visual::before, .progress-visual::after { position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; content: ""; animation: orbit 12s linear infinite; }
.progress-visual::before { width: 310px; height: 310px; }
.progress-visual::after { width: 190px; height: 190px; animation-direction: reverse; }
.progress-spark { position: relative; z-index: 2; display: grid; width: 72px; height: 72px; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 24px; background: rgba(255,255,255,.11); backdrop-filter: blur(10px); animation: breathe 2s ease-in-out infinite; }
.progress-spark svg { width: 30px; height: 30px; }
.progress-copy { padding: clamp(27px, 5vw, 46px); text-align: center; }
.progress-copy h2 { margin: 8px 0 6px; font-size: clamp(27px, 4vw, 39px); letter-spacing: -.045em; }
.progress-copy > p { margin: 0 auto; color: var(--muted); }
.progress-track { max-width: 620px; height: 9px; margin: 25px auto 8px; overflow: hidden; border-radius: 999px; background: var(--bb-powder); }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--terracotta), var(--bb-blush)); transition: width .6s var(--ease); }
.progress-percent { display: block; color: var(--muted); font-size: 10px; font-weight: 700; }
.stage-list { display: flex; max-width: 650px; justify-content: space-between; margin: 25px auto 0; padding: 0; list-style: none; }
.stage-list li { display: grid; width: 20%; justify-items: center; gap: 7px; color: var(--bb-muted); font-size: 9px; font-weight: 680; text-align: center; }
.stage-dot { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); }
.stage-dot svg { width: 12px; height: 12px; }
.stage-list li.is-complete { color: var(--success); }
.stage-list li.is-complete .stage-dot { border-color: var(--success); color: #fff; background: var(--success); }
.stage-list li.is-active { color: var(--terracotta-dark); }
.stage-list li.is-active .stage-dot { border-color: var(--terracotta); box-shadow: 0 0 0 4px rgba(var(--bb-ink-rgb), 0.12); }
.progress-note { margin-top: 23px !important; padding-top: 17px; border-top: 1px solid var(--line); font-size: 11px; }

/* Active generation: real progress plus the original Honey Flight waiting game. */
.generation-waiting { max-width: 1180px; }
.progress-card--honey {
  border-color: rgba(var(--bb-teal-rgb), 0.16);
  background: rgba(var(--bb-pearl-rgb), 0.97);
  box-shadow: 0 26px 72px rgba(51, 86, 103, .16);
}
.generation-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
  gap: 20px 28px;
  padding: clamp(24px, 4vw, 40px);
  border-bottom: 1px solid rgba(var(--bb-teal-rgb), 0.12);
  background:
    radial-gradient(circle at 92% 8%, rgba(var(--bb-blush-rgb), 0.32), transparent 34%),
    linear-gradient(135deg, rgba(var(--bb-blush-rgb), 0.92), rgba(var(--bb-blush-rgb), 0.76));
}
.generation-status-copy h2 { margin: 7px 0 7px; font-size: clamp(27px, 4vw, 41px); line-height: 1.02; letter-spacing: -.045em; }
.generation-status-copy > p { max-width: 600px; margin: 0; color: var(--muted); font-size: 11px; }
.honey-phrase {
  align-self: center;
  padding: 16px 18px;
  border: 1px solid rgba(var(--bb-teal-rgb), 0.19);
  border-radius: 18px;
  color: var(--brown-deep);
  background: rgba(var(--bb-pearl-rgb), 0.75);
  box-shadow: inset 0 1px rgba(255, 255, 255, .78);
}
.honey-phrase > span { display: inline-flex; align-items: center; gap: 6px; color: var(--bb-teal); font-size: 8px; font-weight: 820; letter-spacing: .11em; text-transform: uppercase; }
.honey-phrase svg { width: 14px; height: 14px; }
.honey-phrase p { margin: 8px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.35; }
.generation-progress { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px 13px; }
.generation-progress .progress-track { width: 100%; max-width: none; height: 11px; margin: 0; border: 1px solid rgba(var(--bb-teal-rgb), 0.1); background: rgba(255, 255, 255, .66); }
.generation-progress .progress-track span { background: linear-gradient(90deg, var(--bb-teal), var(--bb-blush) 48%, var(--bb-blush)); box-shadow: 0 0 12px rgba(var(--bb-ink-rgb), 0.26); }
.generation-progress .progress-percent { min-width: 78px; color: var(--brown); font-size: 10px; text-align: right; }

.generation-wait-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(270px, .65fr); gap: 20px; padding: clamp(18px, 3vw, 30px); }
.honey-flight-card,
.generation-timeline { border: 1px solid rgba(var(--bb-teal-rgb), 0.13); border-radius: 22px; background: var(--bb-pearl); box-shadow: 0 13px 34px rgba(64, 79, 84, .08); }
.honey-flight-card { min-width: 0; padding: clamp(15px, 2.4vw, 22px); }
.honey-flight-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.honey-flight-heading h3 { margin: 4px 0 0; font-size: clamp(22px, 3vw, 29px); letter-spacing: -.035em; }
.honey-flight-original { flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; color: var(--bb-teal); background: var(--bb-blush); font-size: 8px; font-weight: 800; letter-spacing: .03em; }
.honey-flight-instructions { margin: 8px 0 13px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.honey-flight-canvas-wrap { position: relative; overflow: hidden; width: 100%; aspect-ratio: 720 / 390; border: 1px solid rgba(68, 69, 60, .17); border-radius: 18px; background: #8ad1ef; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .34); }
.honey-flight-canvas-wrap canvas { display: block; width: 100%; height: 100%; cursor: pointer; touch-action: manipulation; }
.honey-flight-canvas-wrap canvas:focus-visible { outline: 4px solid rgba(168, 117, 29, .5); outline-offset: -5px; }
.honey-flight-prompt {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 18px;
  display: grid;
  min-width: min(280px, calc(100% - 30px));
  justify-items: center;
  padding: 10px 16px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, .66);
  border-radius: 14px;
  color: var(--bb-pearl);
  background: rgba(var(--bb-teal-rgb), 0.78);
  box-shadow: 0 10px 25px rgba(var(--bb-ink-rgb), 0.19);
  pointer-events: none;
  backdrop-filter: blur(8px);
}
.honey-flight-prompt[hidden] { display: none; }
.honey-flight-prompt strong { font-size: 12px; }
.honey-flight-prompt span { margin-top: 2px; color: rgba(var(--bb-pearl-rgb), 0.76); font-size: 8px; }
.honey-flight-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 14px; }
.honey-flight-score { display: flex; flex-wrap: wrap; gap: 7px; }
.honey-flight-score > span { display: inline-flex; align-items: baseline; gap: 5px; padding: 7px 10px; border-radius: 10px; color: var(--muted); background: var(--bb-blush); font-size: 8px; font-weight: 720; }
.honey-flight-score strong { color: var(--brown-deep); font-family: Georgia, "Times New Roman", serif; font-size: 15px; }
.honey-flight-controls { display: flex; gap: 7px; }
.honey-flight-controls .button { min-height: 34px; }

.generation-timeline { position: relative; overflow: hidden; padding: 24px; }
.generation-timeline::before { position: absolute; inset: 0; background: radial-gradient(circle at 100% 0, rgba(var(--bb-blush-rgb), 0.2), transparent 34%); content: ""; pointer-events: none; }
.generation-timeline > * { position: relative; z-index: 1; }
.generation-timeline h3 { margin: 5px 0 8px; font-size: 20px; letter-spacing: -.035em; }
.timeline-bee { position: absolute; z-index: 1; top: 18px; right: 20px; font-size: 25px; filter: drop-shadow(0 5px 7px rgba(var(--bb-ink-rgb), 0.14)); }
.generation-live-stage { min-height: 34px; margin: 0; color: var(--brown); font-family: Georgia, "Times New Roman", serif; font-size: 13px; line-height: 1.35; }
.generation-timeline .stage-list { display: grid; max-width: none; gap: 0; margin: 18px 0 0; }
.generation-timeline .stage-list li { position: relative; display: grid; width: auto; min-height: 42px; grid-template-columns: 26px minmax(0, 1fr); align-items: start; justify-items: start; gap: 9px; color: var(--bb-muted); font-size: 9px; text-align: left; }
.generation-timeline .stage-list li:not(:last-child)::after { position: absolute; top: 24px; bottom: -2px; left: 12px; width: 1px; background: var(--line-strong); content: ""; }
.generation-timeline .stage-list li.is-complete:not(:last-child)::after { background: #6b9974; }
.generation-timeline .stage-dot { z-index: 1; width: 25px; height: 25px; }
.generation-timeline .stage-list li > span:last-child { padding-top: 6px; }
.honey-wait-note { display: grid; grid-template-columns: 27px minmax(0, 1fr); gap: 9px; margin-top: 12px; padding: 13px; border-radius: 14px; color: var(--bb-muted); background: #e7f2e8; }
.honey-wait-note > svg { width: 16px; height: 16px; margin: 1px auto 0; }
.honey-wait-note p { margin: 0; font-size: 8.5px; line-height: 1.5; }
.honey-wait-note strong { display: block; color: var(--bb-charcoal); }
.honey-minute-slot { margin-top: 14px; }
.honey-minute-slot[hidden] { display: none; }
.honey-minute-extension { padding: 14px; border: 1px solid rgba(var(--bb-teal-rgb), 0.18); border-radius: 14px; background: var(--bb-blush); }
.progress-card--honey > .progress-note { margin: 0 clamp(18px, 3vw, 30px) !important; padding: 0 0 22px; border-top: 0; color: var(--muted); text-align: center; }

@media (max-width: 900px) {
  .generation-wait-grid { grid-template-columns: 1fr; }
  .generation-timeline { display: grid; grid-template-columns: minmax(210px, .7fr) minmax(0, 1.3fr); column-gap: 25px; }
  .generation-timeline .eyebrow,
  .generation-timeline h3,
  .generation-live-stage,
  .timeline-bee { grid-column: 1; }
  .generation-timeline .stage-list { grid-column: 2; grid-row: 1 / span 4; margin: 0; }
  .honey-wait-note,
  .honey-minute-slot { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .generation-waiting .job-back { margin-bottom: 13px; }
  .generation-status { grid-template-columns: 1fr; gap: 16px; padding: 22px 18px; }
  .generation-status-copy h2 { font-size: 29px; }
  .honey-phrase { grid-column: 1; }
  .generation-progress { grid-column: 1; }
  .scene-preview--wide { padding: 16px 13px; }
  .scene-preview-head { align-items: flex-start; flex-direction: column; gap: 7px; }
  .scene-preview-stage { overflow-x: auto; overscroll-behavior-inline: contain; }
  .scene-preview-grid { grid-auto-columns: clamp(138px, 42vw, 190px); width: max-content; min-width: 100%; padding: 3px; }
  .scene-review-control { width: 44px; height: 44px; }
  .scene-review-actions { grid-template-columns: 1fr; }
  .scene-review-action-buttons { display: grid; grid-template-columns: 1fr; justify-content: stretch; }
  .scene-review-action-buttons .button { width: 100%; }
  .scene-regenerate-buttons { display: grid; }
  .generation-wait-grid { padding: 13px; }
  .honey-flight-card { padding: 13px; border-radius: 18px; }
  .honey-flight-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .honey-flight-original { align-self: flex-start; }
  .honey-flight-canvas-wrap { border-radius: 14px; }
  .honey-flight-footer { align-items: stretch; flex-direction: column; }
  .honey-flight-score { justify-content: space-between; }
  .honey-flight-score > span { flex: 1; justify-content: center; }
  .honey-flight-controls { display: grid; grid-template-columns: 1fr 1fr; }
  .generation-timeline { display: block; padding: 20px; }
  .generation-timeline .stage-list { margin-top: 17px; }
  .timeline-bee { top: 16px; right: 17px; }
  .progress-card--honey > .progress-note { font-size: 9px; line-height: 1.5; }
}

@media (max-width: 390px) {
  .generation-status { padding-inline: 15px; }
  .generation-progress { grid-template-columns: 1fr; }
  .generation-progress .progress-percent { text-align: left; }
  .honey-flight-prompt { bottom: 10px; min-width: calc(100% - 22px); }
  .honey-flight-controls { grid-template-columns: 1fr; }
}

.result-heading { margin-bottom: 23px; text-align: center; }
.result-heading .ready-mark { display: grid; width: 46px; height: 46px; margin: 0 auto 10px; place-items: center; border-radius: 50%; color: #fff; background: var(--success); }
.result-heading h2 { margin: 0; font-size: clamp(31px, 5vw, 46px); letter-spacing: -.055em; }
.result-heading p { margin: 6px 0 0; color: var(--muted); }
.result-layout { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.video-card { overflow: hidden; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-md); }
.video-frame { position: relative; overflow: hidden; aspect-ratio: 9 / 16; border-radius: 16px; background: linear-gradient(145deg, var(--bb-blush), var(--bb-teal), var(--bb-teal)); }
.video-frame video { width: 100%; height: 100%; object-fit: cover; background: var(--bb-teal); }
.video-frame img { width: 100%; height: 100%; object-fit: cover; }
.result-side { display: grid; gap: 15px; }
.result-card { padding: 21px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.result-card-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 12px; }
.result-card-head h3 { margin: 0; font-size: 15px; }
.result-card p { color: var(--ink-soft); }
.caption-box { min-height: 135px; margin: 0; padding: 14px; border-radius: 12px; background: var(--surface-soft); white-space: pre-wrap; font-size: 12px; line-height: 1.65; }
.posting-contest-notice { margin-top: 16px; padding: 16px; border: 1px solid var(--bb-line); border-radius: 14px; color: var(--bb-charcoal); background: var(--bb-powder); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.posting-contest-notice p { margin: 8px 0 0; }
.posting-contest-notice .posting-contest-label { margin: 0 0 6px; color: var(--bb-teal); font-size: 11px; font-weight: 750; }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.feedback-question { margin: 0 0 13px; font-weight: 740; }
.feedback-buttons { display: flex; gap: 8px; }
.feedback-buttons button { flex: 1; }
.rating-row { display: flex; gap: 5px; margin-top: 12px; }
.rating-row button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--bb-muted); background: #fff; cursor: pointer; }
.rating-row button:hover, .rating-row button.is-active { border-color: var(--bb-teal); color: var(--terracotta); background: var(--bb-pearl); }
.rating-row svg { width: 17px; fill: currentColor; stroke: currentColor; }
.job-error-card { padding: clamp(28px, 6vw, 60px); border: 1px solid #efd1cb; border-radius: var(--radius-xl); background: #fff8f6; box-shadow: var(--shadow-sm); text-align: center; }
.job-error-card .empty-state-icon { margin-inline: auto; color: var(--danger); background: #f7dfdb; }
.job-error-card h2 { margin: 0 0 7px; font-size: 30px; letter-spacing: -.04em; }
.job-error-card p { max-width: 550px; margin: 0 auto 20px; color: var(--muted); }

/* Content library */
.content-tabs { display: flex; gap: 7px; margin-bottom: 21px; overflow-x: auto; }
.content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.content-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s ease; }
.content-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.content-card > a { display: block; color: inherit; text-decoration: none; }
.content-card-cover { position: relative; aspect-ratio: 4 / 4.1; overflow: hidden; background: linear-gradient(145deg, var(--bb-blush), var(--bb-teal) 56%, var(--bb-teal)); }
.content-card-cover img, .content-card-cover video { width: 100%; height: 100%; object-fit: cover; }
.content-card-cover .status-badge { position: absolute; z-index: 2; top: 11px; left: 11px; }
.content-card-cover .progress-ring { position: absolute; top: 50%; left: 50%; display: grid; width: 55px; height: 55px; place-items: center; transform: translate(-50%,-50%); border: 1px solid rgba(255,255,255,.4); border-radius: 50%; color: #fff; background: rgba(var(--bb-teal-rgb), 0.6); backdrop-filter: blur(8px); font-size: 10px; font-weight: 750; }
.content-card-body { padding: 14px 15px 16px; }
.content-card-body h3 { overflow: hidden; margin: 0; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.content-card-body p { margin: 4px 0 12px; color: var(--muted); font-size: 10px; }
.content-publish-status,
.result-publish-status { display: flex; min-width: 0; align-items: center; gap: 7px; color: var(--bb-muted); }
.content-publish-status { margin: 0 0 12px; font-size: 10px; }
.content-publish-status > span,
.result-publish-status > span { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--bb-teal); box-shadow: 0 0 0 3px rgba(var(--bb-ink-rgb), 0.13); }
.content-publish-status strong { min-width: 0; line-height: 1.35; white-space: normal; }
.content-publish-status--draft > span,
.result-publish-status--draft > span { background: var(--bb-teal); box-shadow: 0 0 0 3px rgba(var(--bb-ink-rgb), 0.15); }
.content-publish-status--scheduled,
.result-publish-status--scheduled { color: var(--bb-charcoal); }
.content-publish-status--scheduled > span,
.result-publish-status--scheduled > span { background: var(--bb-teal); box-shadow: 0 0 0 3px rgba(var(--bb-ink-rgb), 0.17); }
.content-publish-status--posting,
.result-publish-status--posting { color: var(--bb-teal); }
.content-publish-status--posting > span,
.result-publish-status--posting > span { background: var(--bb-teal); box-shadow: 0 0 0 3px rgba(63,167,204,.17); }
.content-publish-status--posted,
.result-publish-status--posted { color: var(--bb-muted); }
.content-publish-status--posted > span,
.result-publish-status--posted > span { background: var(--bb-muted); box-shadow: 0 0 0 3px rgba(124,157,104,.17); }
.content-publish-status--attention,
.result-publish-status--attention { color: var(--bb-teal); }
.content-publish-status--attention > span,
.result-publish-status--attention > span { background: var(--bb-teal); box-shadow: 0 0 0 3px rgba(var(--bb-ink-rgb), 0.16); }
.content-card-actions { display: flex; align-items: center; justify-content: space-between; padding-top: 11px; border-top: 1px solid var(--bb-line); }
.content-card-actions span { color: var(--muted); font-size: 9px; }
.content-card-actions strong { display: inline-flex; align-items: center; gap: 4px; color: var(--terracotta-dark); font-size: 10px; }
.content-card-actions svg { width: 12px; height: 12px; }
.content-card-post { padding: 0 15px 15px; }
.content-card-post a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--bb-teal);
  border-radius: 12px;
  color: var(--bb-pearl);
  background: var(--bb-teal);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.content-card-post a:hover { background: var(--bb-teal); box-shadow: 0 7px 16px rgba(var(--bb-ink-rgb), 0.16); transform: translateY(-1px); }
.content-card-post a:focus-visible { outline: 3px solid var(--bb-teal); outline-offset: 2px; }
.content-card-post svg { width: 16px; height: 16px; }

/* Brand kit and account */
.save-state { color: var(--success); font-size: 11px; font-weight: 720; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); align-items: start; gap: 22px; }
.settings-main { display: grid; gap: 17px; }
.settings-card-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 21px; }
.settings-card-heading h3 { margin: 0 0 2px; font-size: 16px; }
.settings-card-heading p { margin: 0; color: var(--muted); font-size: 10px; }
.settings-icon { flex: 0 0 41px; background: var(--bb-blush); }
.settings-icon--palette { color: var(--bb-teal); background: var(--bb-blush); }
.social-account-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(86, 118, 80, .2);
  border-radius: 13px;
  color: var(--bb-muted);
  background: #eef5e9;
}
.social-account-privacy svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; }
.social-account-privacy p { display: grid; gap: 2px; margin: 0; }
.social-account-privacy strong { font-size: 11px; }
.social-account-privacy span { color: var(--bb-muted); font-size: 10px; line-height: 1.45; }
.social-account-list { display: grid; gap: 10px; }
.social-account-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 102px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--bb-pearl);
}
.social-account-row--ready { border-color: rgba(86, 118, 80, .3); background: #fbfff8; }
.social-account-row--attention { border-color: rgba(var(--bb-teal-rgb), 0.28); }
.social-account-mark { width: 44px; height: 44px; flex-basis: 44px; }
.social-account-copy { display: grid; min-width: 0; gap: 5px; }
.social-account-title { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 8px; }
.social-account-title > strong { font-size: 13px; }
.social-account-status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--bb-muted);
  background: var(--bb-powder);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.social-account-status--ready { color: #3f5b37; background: #dcebd5; }
.social-account-status--attention { color: var(--bb-teal); background: var(--bb-blush); }
.social-account-status--pending { color: var(--bb-charcoal); background: var(--bb-blush); }
.social-account-copy p,
.social-account-copy small { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.social-account-copy small { color: var(--bb-muted); }
.social-account-identity { display: flex; min-width: 0; align-items: center; gap: 7px; color: var(--bb-muted); font-size: 10px; }
.social-account-identity img { width: 25px; height: 25px; flex: 0 0 25px; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; }
.social-account-identity b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-account-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.social-account-actions .button { min-height: 42px; }
.social-account-error { display: grid; justify-items: start; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bb-pearl); }
.social-account-error strong { font-size: 12px; }
.social-account-error p { margin: 0 0 3px; color: var(--muted); font-size: 10px; }
.social-account-card > .form-message:empty { display: none; }
@media (max-width: 620px) {
  .social-account-row { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .social-account-actions { grid-column: 1 / -1; justify-content: stretch; }
  .social-account-actions .button { flex: 1 1 135px; }
}
.brand-color-preview {
  display: flex;
  min-height: 76px;
  align-items: stretch;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background:
    linear-gradient(45deg, var(--bb-pearl) 25%, transparent 25%) 0 0 / 16px 16px,
    linear-gradient(-45deg, var(--bb-pearl) 25%, transparent 25%) 0 0 / 16px 16px,
    linear-gradient(45deg, transparent 75%, var(--bb-pearl) 75%) 0 0 / 16px 16px,
    linear-gradient(-45deg, transparent 75%, var(--bb-pearl) 75%) 0 0 / 16px 16px,
    var(--bb-pearl);
}
.brand-color-preview__empty { display: grid; width: 100%; place-items: center; padding: 18px; color: var(--muted); font-size: 10px; text-align: center; }
.brand-color-preview__swatch { min-width: 42px; flex: 1 1 0; }
.brand-color-list { display: grid; gap: 9px; }
.brand-color-row {
  display: grid;
  grid-template-columns:minmax(82px,.7fr) 48px minmax(112px,1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--bb-pearl);
}
.brand-color-row > label { color: var(--ink-soft); font-size: 10px; font-weight: 760; }
.brand-color-picker {
  width: 44px;
  height: 38px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.brand-color-picker::-webkit-color-swatch-wrapper { padding: 0; }
.brand-color-picker::-webkit-color-swatch { border: 0; border-radius: 6px; }
.brand-color-picker::-moz-color-swatch { border: 0; border-radius: 6px; }
.brand-color-hex {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  text-transform: uppercase;
}
.brand-color-hex:focus,.brand-color-picker:focus-visible { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(var(--bb-ink-rgb), 0.1); }
.brand-color-hex:invalid { border-color: var(--danger); }
.brand-color-remove {
  padding: 7px 9px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: var(--surface-soft);
  font: inherit;
  font-size: 9px;
  font-weight: 760;
  cursor: pointer;
}
.brand-color-remove:hover { color: var(--danger); background: var(--bb-blush); }
.brand-color-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; }
.brand-color-actions small { color: var(--muted); font-size: 9px; }
@media (max-width:720px) {
  .brand-color-row { grid-template-columns:minmax(74px,.7fr) 44px minmax(105px,1fr) auto; }
}
@media (max-width:520px) {
  .brand-color-row { grid-template-columns:44px minmax(0,1fr) auto; }
  .brand-color-row > label { grid-column:1/-1; }
  .brand-color-actions { align-items:flex-start; flex-direction:column; }
}
.voice-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.voice-options label { position: relative; cursor: pointer; }
.voice-options input { position: absolute; opacity: 0; }
.voice-options label > span { display: block; min-height: 82px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.voice-options label > span::before { float: right; width: 14px; height: 14px; border: 1px solid var(--line-strong); border-radius: 50%; content: ""; }
.voice-options strong, .voice-options small { display: block; }
.voice-options strong { font-size: 12px; }
.voice-options small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.voice-options input:checked + span { border-color: var(--terracotta); background: var(--bb-pearl); box-shadow: 0 0 0 2px rgba(var(--bb-ink-rgb), 0.08); }
.voice-options input:checked + span::before { border: 4px solid var(--terracotta); }
.voice-options input:focus-visible + span { outline: 3px solid var(--bb-teal); outline-offset: 2px; }
.settings-actions { display: flex; justify-content: flex-end; }

.notification-settings-form { display: grid; gap: 16px; }
.notification-preference-group { display: grid; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 16px; }
.notification-preference-group legend { margin-left: 13px; padding: 0 6px; color: var(--muted); background: var(--surface); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.notification-preference {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}
.notification-preference:last-child { border-bottom: 0; }
.notification-preference--master { border: 1px solid var(--bb-line); border-radius: 16px; background: var(--bb-blush); }
.notification-preference > span:first-child { min-width: 0; }
.notification-preference strong,
.notification-preference small { display: block; }
.notification-preference strong { font-size: 11px; }
.notification-preference small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.switch { position: relative; display: inline-flex; width: 42px; height: 24px; flex: 0 0 42px; cursor: pointer; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch > span[aria-hidden] { width: 42px; height: 24px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bb-powder); transition: background .18s ease, border-color .18s ease; }
.switch > span[aria-hidden]::after { display: block; width: 18px; height: 18px; margin: 2px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(var(--bb-ink-rgb), 0.2); content: ""; transition: transform .18s ease; }
.switch input:checked + span[aria-hidden] { border-color: var(--bb-teal); background: var(--bb-blush); }
.switch input:checked + span[aria-hidden]::after { transform: translateX(18px); }
.switch input:focus-visible + span[aria-hidden] { outline: 3px solid var(--bb-teal); outline-offset: 3px; }
.switch input:disabled + span[aria-hidden] { opacity: .45; cursor: not-allowed; }
.notification-birthday-date { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; padding: 2px 15px 15px; }
.notification-birthday-date .field select { width: 100%; }
.notification-birthday-date.is-disabled { opacity: .55; }
.required-notice { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; border-radius: 14px; color: var(--bb-muted); background: var(--bb-pearl); }
.required-notice svg { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 1px; }
.required-notice strong,
.required-notice small { display: block; }
.required-notice strong { font-size: 10px; }
.required-notice small { margin-top: 2px; font-size: 9px; line-height: 1.45; }
.notification-settings .form-message { min-height: 18px; margin: 0; }

.account-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); align-items: start; gap: 22px; }
.account-layout--single { grid-template-columns: minmax(0, 960px); }
.account-main { display: grid; gap: 17px; }
.profile-card { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.profile-card-copy { min-width: 0; }
.profile-card-copy h3 { margin: 0; font-size: 16px; }
.profile-card-copy p { overflow: hidden; margin: 2px 0 0; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
/* The address is the thing people come here to check, so it is allowed to be
   read rather than merely present. */
.profile-card-email strong { color: var(--ink); font-weight: 700; }
.profile-card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.profile-photo-message { flex-basis: 100%; margin: 0; }
.profile-photo-message:empty { display: none; }

/* A photo fills the circle the initial was drawn in, so nothing around it has
   to move when one is added. */
.large-avatar.has-photo {
  color: transparent;
  background-position: center;
  background-size: cover;
}
.billing-current .button { margin-top: 17px; }
.billing-line-skeleton { min-height: 78px; border-radius: 15px; }
.billing-subscription-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-soft); }
.billing-subscription-summary h4 { margin: 7px 0 0; font-size: 15px; letter-spacing: -.02em; }
.billing-subscription-summary p { max-width: 220px; margin: 0; color: var(--muted); font-size: 10px; text-align: right; }
.billing-status { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 9px; border-radius: 999px; color: var(--ink-soft); background: var(--bb-powder); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.billing-status--active { color: var(--bb-muted); background: #dff0e1; }
.billing-status--past_due,
.billing-status--unpaid,
.billing-status--incomplete { color: var(--bb-teal); background: var(--bb-blush); }
.billing-status--paused { color: var(--bb-muted); background: var(--bb-blush); }
.billing-status--canceled,
.billing-status--cancelled,
.billing-status--incomplete_expired { color: var(--bb-muted); background: var(--bb-blush); }
.settings-icon--honey { color: var(--bb-teal); background: var(--bb-blush); }
.settings-icon--blush { color: var(--bb-muted); background: var(--bb-blush); }
.billing-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.billing-choice {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 238px;
  flex-direction: column;
  padding: 17px 15px 15px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(150deg, #fffdf8, var(--bb-pearl));
}
.billing-choice--featured { border-color: rgba(var(--bb-teal-rgb), 0.35); background: linear-gradient(150deg, var(--bb-pearl), var(--bb-blush)); box-shadow: 0 12px 28px rgba(var(--bb-ink-rgb), 0.08); }
.billing-choice--topup { min-height: 218px; background: linear-gradient(150deg, #fffdf8, var(--bb-powder)); }
.billing-choice.is-locked { opacity: .72; }
.billing-choice-badge { position: absolute; top: -9px; right: 10px; padding: 4px 8px; border-radius: 999px; color: var(--brown-deep); background: var(--bb-blush); box-shadow: 0 5px 12px rgba(var(--bb-ink-rgb), 0.16); font-size: 8px; font-weight: 820; letter-spacing: .04em; text-transform: uppercase; }
.billing-choice h4 { margin: 2px 0 12px; font-size: 14px; }
.billing-price { display: flex; align-items: baseline; gap: 3px; margin: 0; }
.billing-price strong { font-family: Georgia, "Times New Roman", serif; font-size: 29px; font-weight: 500; letter-spacing: -.04em; }
.billing-price span { color: var(--muted); font-size: 9px; }
.billing-plan-cadence { margin: 9px 0 0; color: var(--ink-soft); font-size: 10px; line-height: 1.45; }
.billing-plan-cadence strong { color: var(--ink); font-size: 12px; }
.billing-format-list { display: grid; gap: 5px; margin: 10px 0 15px; color: var(--ink-soft); font-size: 9px; }
.billing-format-list span { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.billing-format-list strong { color: var(--ink); }
.billing-choice > small { display: block; margin: 4px 0 15px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.billing-choice .button { margin-top: auto; padding-inline: 8px; font-size: 10px; }
.billing-choice .button:disabled { opacity: .7; }
.billing-card-skeleton { min-height: 238px; border-radius: 17px; }
.billing-allowances { margin-top: 14px; }
.billing-allowance-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 9px; }
.billing-allowance-heading strong { font-size: 12px; }
.billing-allowance-heading span { color: var(--muted); font-size: 9px; text-align: right; }
.billing-allowance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.billing-allowance { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.billing-allowance span { display: block; color: var(--muted); font-size: 9px; font-weight: 760; letter-spacing: .04em; text-transform: uppercase; }
.billing-allowance strong { display: block; margin-top: 3px; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 500; }
.billing-allowance small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.billing-addon-note { margin: 13px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.billing-setup-note { grid-column: 1 / -1; margin: 4px 0 0; padding: 11px 13px; border: 1px solid rgba(var(--bb-teal-rgb), 0.18); border-radius: 12px; color: var(--ink-soft); background: var(--bb-blush); font-size: 9px; line-height: 1.5; }
.billing-setup-note strong { color: var(--brown); }
.billing-return-message { display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px; border: 1px solid #bdd7c3; border-radius: 15px; color: var(--bb-charcoal); background: #e6f3e8; }
.billing-return-message--cancelled { border-color: var(--bb-line); color: var(--bb-charcoal); background: var(--bb-blush); }
.billing-return-message svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; }
.billing-return-message strong { display: block; font-size: 12px; }
.billing-return-message p { margin: 2px 0 0; font-size: 9px; line-height: 1.5; }
.credit-checkout-message { margin-bottom: 16px; padding: 16px; border: 1px solid var(--bb-line); border-radius: 15px; background: var(--bb-blush); scroll-margin-top: calc(var(--topbar) + env(safe-area-inset-top) + 16px); scroll-margin-bottom: 80px; }
.credit-checkout-message[hidden] { display: none; }
.credit-checkout-message strong { display: block; }
.credit-checkout-message p { margin: 8px 0; line-height: 1.5; }
.credit-checkout-message .button { margin-top: 6px; }
.balance-card { position: sticky; top: calc(var(--topbar) + 20px); padding: 27px; border-radius: var(--radius-lg); color: var(--bb-pearl); background: linear-gradient(145deg, var(--bb-teal), var(--bb-teal)); box-shadow: var(--shadow-md); }
.balance-icon { display: grid; width: 46px; height: 46px; margin-bottom: 20px; place-items: center; border: 1px solid rgba(255,255,255,.15); border-radius: 15px; color: var(--bb-teal); background: rgba(255,255,255,.08); }
.balance-card > span:not(.balance-icon) { display: block; color: var(--bb-muted); font-size: 10px; font-weight: 740; letter-spacing: .06em; text-transform: uppercase; }
.balance-card > strong { display: block; margin: 2px 0; font-family: Georgia, serif; font-size: 62px; font-weight: 400; line-height: 1.05; }
.balance-card p { margin: 0 0 19px; color: var(--bb-muted); font-size: 11px; }
.balance-card small { display: block; margin-top: 9px; color: var(--bb-muted); font-size: 9px; text-align: center; }
.ledger-list { display: grid; }
.ledger-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 12px 0; border-top: 1px solid var(--bb-line); }
.ledger-row:first-child { border-top: 0; }
.ledger-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; color: var(--terracotta-dark); background: var(--surface-soft); }
.ledger-icon--plus { color: var(--success); background: #e8f0e7; }
.ledger-icon svg { width: 16px; }
.ledger-copy strong, .ledger-copy small { display: block; }
.ledger-copy strong { font-size: 11px; }
.ledger-copy small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.ledger-delta { font-size: 12px; font-weight: 800; }
.ledger-delta--plus { color: var(--success); }

/* Onboarding and toast */
.onboarding-dialog {
  width: min(520px, calc(100% - 28px));
  max-height: calc(100dvh - 30px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 27px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.onboarding-dialog--twin { width: min(760px, calc(100% - 28px)); }
.onboarding-dialog--twin.is-reviewing-twin { width: min(1120px, calc(100% - 28px)); }
.onboarding-dialog--twin form { min-height: 510px; }

.onboarding-dialog::backdrop { background: rgba(var(--bb-teal-rgb), 0.66); backdrop-filter: blur(6px); }
.onboarding-dialog form { position: relative; padding: clamp(27px, 6vw, 44px); }
.twin-exit-dialog { width: min(470px, calc(100% - 28px)); padding: 0; overflow: hidden; border: 1px solid rgba(var(--bb-teal-rgb), 0.24); border-radius: 24px; color: var(--ink); background: var(--surface); box-shadow: 0 28px 80px rgba(var(--bb-ink-rgb), 0.34); }
.twin-exit-dialog::backdrop { background: rgba(var(--bb-teal-rgb), 0.72); backdrop-filter: blur(7px); }
.twin-exit-card { padding: clamp(25px, 6vw, 38px); }
.twin-exit-card .onboarding-art { width: 52px; height: 52px; margin-bottom: 14px; }
.twin-exit-card h2 { margin: 8px 0 9px; font-size: 28px; letter-spacing: -.04em; line-height: 1.08; }
.twin-exit-card > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.twin-exit-card > .twin-replace-allowance { margin-top: 13px; padding: 10px 12px; border-radius: 12px; color: var(--bb-charcoal); background: var(--bb-blush); font-weight: 760; }
.twin-exit-actions { display: grid; gap: 9px; margin-top: 24px; grid-template-columns: 1fr 1fr; }
.dialog-close { position: absolute; top: 17px; right: 17px; }
.onboarding-progress { display: flex; gap: 6px; width: min(250px, calc(100% - 50px)); margin-bottom: 28px; }
.onboarding-progress span { height: 4px; min-width: 16px; flex: 1; border-radius: 999px; background: var(--line); }
.onboarding-progress span.is-active { background: var(--terracotta); }
.onboarding-art { display: grid; width: 62px; height: 62px; margin-bottom: 17px; place-items: center; border-radius: 20px; color: #fff; background: var(--terracotta); transform: rotate(-3deg); }
.onboarding-art svg { width: 27px; height: 27px; }
.onboarding-art img { display: block; width: 48px; height: 48px; object-fit: contain; }
.onboarding-art:has(img) { background: var(--bb-blush); }
.onboarding-saved-logo { margin: 10px 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bb-white); }
.onboarding-saved-logo img { display: block; width: auto; max-width: 100%; max-height: 100px; object-fit: contain; }
.onboarding-colors .brand-color-rows { display: grid; gap: 10px; }
.onboarding-colors .brand-color-row { grid-template-columns: 44px minmax(0, 1fr) auto; }
.onboarding-colors .brand-color-swatch { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--swatch-color, var(--bb-blush)); cursor: pointer; }
.onboarding-colors .brand-color-swatch[aria-expanded="true"] { outline: 2px solid var(--bb-teal); outline-offset: 2px; }
.onboarding-colors .brand-color-hex { min-height: 44px; }
.onboarding-colors .brand-color-picker { grid-column: 1 / -1; width: 100%; height: 48px; }
.onboarding-colors [data-color-remove] { min-width: 44px; min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; color: var(--bb-teal); background: var(--bb-powder); cursor: pointer; }
.onboarding-colors [data-color-add] { justify-self: start; min-height: 44px; }
.onboarding-art--blush { color: var(--terracotta-dark); background: var(--bb-blush); }
.onboarding-step h2 { margin: 8px 0 9px; font-size: 31px; letter-spacing: -.045em; line-height: 1.08; }
.onboarding-step > p { margin: 0 0 22px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.onboarding-step .form-grid, .onboarding-step .voice-options { margin-bottom: 20px; }
.voice-options--stacked { grid-template-columns: 1fr; }
.voice-options--stacked label > span { min-height: 65px; }

.source-choice-grid,
.twin-choice-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.twin-capture-options { margin: 0 0 18px; padding: 0; border: 0; }
.source-choice-grid { margin: 0 0 15px; }
.source-choice,
.twin-choice {
  display: flex;
  min-height: 92px;
  align-items: flex-start;
  gap: 11px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.twin-choice-grid--primary .twin-choice { min-height: 145px; flex-direction: column; }
.source-choice:hover,
.twin-choice:hover { border-color: var(--terracotta); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.source-choice:has(input:disabled) { cursor: not-allowed; opacity: .62; }
.source-choice:has(input:disabled):hover { border-color: var(--line); box-shadow: none; transform: none; }
.source-choice:has(input:checked),
.twin-choice:has(input:checked) { background: var(--bb-blush); border-color: var(--terracotta); box-shadow: 0 0 0 2px rgba(var(--bb-ink-rgb), 0.12); }
.source-choice input,
.twin-choice input { margin: 3px 0 0; accent-color: var(--terracotta); }
.source-choice span,
.twin-choice span { display: block; }
.source-choice strong,
.source-choice small,
.twin-choice strong,
.twin-choice small { display: block; }
.source-choice strong,
.twin-choice strong { font-size: 12px; }
.source-choice small,
.twin-choice small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.twin-choice-icon { display: grid !important; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 12px; color: var(--terracotta-dark); background: var(--blush); }
.twin-choice-icon svg { width: 18px; height: 18px; }
.twin-choice-icon img { display: block; width: 30px; height: 30px; object-fit: contain; }

/* Studio Home creation picker. Source comes first, then a deliberately simple
   format choice and a swipeable template rail with no search field to summon
   the phone keyboard. */
.home-create-dialog { width: min(900px, calc(100% - 28px)); }
.home-create-dialog form { min-height: min(610px, calc(100dvh - 30px)); }
.home-create-heading { padding-right: 52px; }
.home-create-heading h2 { margin: 8px 0 8px; font-size: clamp(29px, 4.2vw, 42px); letter-spacing: -.05em; line-height: 1.05; }
.home-create-heading p { max-width: 650px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.home-create-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 24px 0 28px; padding: 0; list-style: none; }
.home-create-progress li { display: flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: var(--surface-soft); font-size: 10px; font-weight: 780; }
.home-create-progress li span { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; background: rgba(var(--bb-teal-rgb), 0.08); font-size: 9px; }
.home-create-progress li.is-active { border-color: var(--bb-teal); color: var(--ink); background: var(--bb-blush); box-shadow: 0 7px 18px rgba(var(--bb-ink-rgb), 0.11); }
.home-create-progress li.is-complete { color: #41624a; background: #e7f0e7; }
.home-create-source-grid { display: grid; gap: 15px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-create-source-card { position: relative; display: grid; min-height: 185px; align-content: start; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; color: var(--ink); background: var(--surface); font: inherit; text-align: left; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.home-create-source-card:hover { transform: translateY(-2px); border-color: var(--bb-teal); box-shadow: var(--shadow-md); }
.home-create-source-card:focus-visible { outline: 3px solid var(--bb-teal); outline-offset: 3px; }
.home-create-source-card:disabled { cursor: wait; opacity: .64; transform: none; }
.home-create-source-card > span:not(.home-create-source-icon) { display: grid; gap: 6px; }
.home-create-source-card strong { font-size: 18px; letter-spacing: -.025em; }
.home-create-source-card small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.home-create-source-card > em { position: absolute; top: 20px; right: 20px; padding: 5px 8px; border-radius: 999px; color: var(--bb-charcoal); background: var(--bb-blush); font-size: 8px; font-style: normal; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.home-create-source-icon { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 16px; color: var(--bb-charcoal); background: var(--bb-blush); }
.home-create-source-icon--photo { background: var(--bb-powder); }
.home-create-source-icon svg { width: 23px; height: 23px; }
.home-create-format-grid { display: grid; gap: 13px; margin: 0; padding: 0; border: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-create-format-grid label { min-width: 0; cursor: pointer; }
.home-create-format-grid input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.home-create-format-grid label > span { display: grid; min-height: 165px; align-content: center; justify-items: center; gap: 7px; padding: 19px 14px; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: var(--surface); text-align: center; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.home-create-format-grid label:hover > span { transform: translateY(-2px); border-color: var(--bb-teal); box-shadow: var(--shadow-sm); }
.home-create-format-grid input:checked + span { border-color: var(--bb-teal); background: var(--bb-blush); box-shadow: 0 0 0 2px rgba(var(--bb-ink-rgb), 0.16); }
.home-create-format-grid input:focus-visible + span { outline: 3px solid var(--bb-teal); outline-offset: 3px; }
.home-create-format-grid input:disabled + span { cursor: not-allowed; opacity: .46; transform: none; box-shadow: none; }
.home-create-format-grid svg { width: 30px; height: 30px; color: var(--bb-teal); }
.home-create-format-grid strong { font-size: 17px; }
.home-create-format-grid small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.home-create-format-grid em { margin-top: 4px; color: var(--bb-teal); font-size: 8px; font-style: normal; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.home-create-actions { justify-content: space-between; margin-top: 22px; }
.home-create-actions .button { min-height: 46px; }
.home-create-template-browser { display: grid; min-width: 0; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 11px; }
.home-create-template-nav { display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--surface); font: inherit; cursor: pointer; box-shadow: var(--shadow-sm); }
.home-create-template-nav span { transform: translateY(-1px); font-size: 26px; line-height: 1; }
.home-create-template-nav:disabled { cursor: default; opacity: .28; }
.home-create-template-nav:focus-visible { outline: 3px solid var(--bb-teal); outline-offset: 2px; }
.home-create-template-rail { display: grid; min-width: 0; grid-auto-flow: column; grid-auto-columns: minmax(210px, 31%); gap: 13px; overflow-x: auto; padding: 7px 7px 12px; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: thin; overscroll-behavior-inline: contain; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; }
.home-create-template-rail.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.home-create-template-rail.is-dragging img { pointer-events: none; }
.home-create-template-card { position: relative; min-width: 0; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: var(--surface); font: inherit; text-align: left; cursor: pointer; scroll-snap-align: start; box-shadow: var(--shadow-sm); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.home-create-template-card:hover { transform: translateY(-2px); border-color: var(--bb-teal); box-shadow: var(--shadow-md); }
.home-create-template-card[aria-pressed="true"] { border-color: var(--bb-teal); box-shadow: 0 0 0 3px rgba(var(--bb-ink-rgb), 0.2); }
.home-create-template-card:focus-visible { outline: 3px solid var(--bb-teal); outline-offset: 2px; }
.home-create-template-card .template-cover { display: block; height: 155px; }
.home-create-template-card__body { display: grid; gap: 6px; min-height: 105px; padding: 15px; }
.home-create-template-card__body strong { font-size: 14px; letter-spacing: -.02em; }
.home-create-template-card__body small { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-create-template-card__selected { position: absolute; z-index: 4; top: 11px; right: 11px; padding: 5px 8px; border-radius: 999px; color: var(--bb-charcoal); background: var(--bb-blush); font-size: 8px; font-weight: 850; }
.home-create-template-empty { display: grid; min-height: 270px; place-items: center; align-content: center; padding: 28px; border: 1px dashed var(--line-strong); border-radius: 18px; color: var(--muted); background: var(--surface-soft); text-align: center; }
.home-create-template-empty strong { color: var(--ink); font-size: 16px; }
.home-create-template-empty small { margin-top: 7px; font-size: 10px; line-height: 1.5; }
.home-create-template-status { min-height: 18px; margin-top: 8px; text-align: center; }
.home-create-dialog .form-message { color: var(--muted); }
.home-create-dialog .form-message.is-error { color: var(--danger); }

.reel-avatar-panel { margin: 0 0 15px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-soft); }
.reel-avatar-panel p { margin: 9px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.reel-avatar-ready-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.reel-avatar-ready-controls .field { margin: 0; }
.reel-avatar-ready-controls .button { min-height: 48px; white-space: nowrap; }
.reel-avatar-unavailable p { margin-top: 0; }
.reel-avatar-unavailable .button { margin-top: 11px; }

.twin-source-zone {
  position: relative;
  display: grid;
  min-height: 320px;
  overflow: hidden;
  place-items: center;
  border: 1.5px dashed var(--bb-line);
  border-radius: 20px;
  background: var(--bb-pearl);
  cursor: pointer;
}
.twin-source-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.twin-source-zone > img { display: none; width: 100%; height: 360px; object-fit: contain; background: var(--bb-powder); }
.twin-source-zone.has-image > img { display: block; }
.twin-source-zone.has-image .twin-source-empty { display: none; }
.twin-source-empty { display: grid; justify-items: center; gap: 7px; padding: 28px; text-align: center; }
.twin-source-empty svg { width: 26px; height: 26px; color: var(--terracotta); }
.twin-source-empty strong { font-size: 13px; }
.twin-source-empty small { color: var(--muted); font-size: 10px; }

.twin-photo-methods { display: flex; flex-wrap: wrap; gap: 14px; border: 0; padding: 0; margin: 18px 0 10px; }
.twin-photo-methods[hidden] { display: none; }
[data-twin-static-preview] { cursor: default; touch-action: auto; }
[data-twin-static-preview] img { object-fit: contain; }
.template-buzzing-toggle[hidden] { display: none; }
.trending-coming-soon { position: relative; grid-template-columns: minmax(0, 1fr); }
.trending-coming-soon__badge { display: inline-flex; justify-self: start; align-items: center; padding: 10px 18px; border-radius: 999px; background: var(--bb-teal); color: white; font-weight: 700; margin: 0 0 18px; }
.twin-photo-methods legend { margin-bottom: 10px; font-weight: 700; }
.twin-photo-methods label { display: flex; align-items: center; gap: 7px; min-height: 44px; cursor: pointer; }
#twin-photo-guidance, #twin-photo-count, #twin-create-status { color: var(--muted); }
.twin-photo-angles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.twin-photo-angles.is-single-photo { grid-template-columns: 1fr; }
.twin-photo-routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-width: 0; margin: 18px 0; padding: 0; border: 0; }
.twin-photo-routes legend { margin-bottom: 10px; font-size: 13px; font-weight: 750; }
.twin-photo-routes label { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 9px; min-height: 88px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bb-white); cursor: pointer; }
.twin-photo-routes label:has(input:checked) { border-color: var(--bb-teal); background: var(--bb-blush); box-shadow: inset 0 0 0 1px var(--bb-teal); }
.twin-photo-routes label:has(input:focus-visible) { outline: 3px solid var(--bb-teal); outline-offset: 3px; }
.twin-photo-routes input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--bb-teal); }
.twin-photo-routes strong, .twin-photo-routes small { display: block; }
.twin-photo-routes strong { color: var(--bb-charcoal); font-size: 13px; }
.twin-photo-routes small { margin-top: 4px; color: var(--bb-muted); font-size: 12px; line-height: 1.5; }
.twin-photo-angle > strong { display: block; margin-bottom: 8px; font-size: 12px; }
.twin-photo-angle > strong span { display: block; color: var(--muted); font-size: 10px; font-weight: 400; }
.twin-photo-angle .twin-source-zone { min-height: 160px; border-radius: 14px; }
.twin-photo-angle .twin-source-zone > img { height: 180px; }
.twin-photo-angle .twin-source-empty { padding: 15px 8px; }
.twin-photo-angle .twin-source-zone:focus-within { outline: 2px solid var(--terracotta); outline-offset: 3px; }
@media (max-width: 540px) {
  .twin-photo-routes { grid-template-columns: 1fr; }
  .twin-photo-angles { grid-template-columns: 1fr; }
  .twin-photo-angle .twin-source-zone { min-height: 125px; }
  .twin-photo-angle .twin-source-zone > img { height: 190px; }
}

.face-scan-frame { position: relative; overflow: hidden; min-height: 320px; border-radius: 20px; background: var(--bb-teal); }
.face-scan-frame video { display: block; width: 100%; height: 360px; object-fit: contain; transform: scaleX(-1); }
.face-scan-guide { position: absolute; top: 50%; left: 50%; width: min(50%, 220px); aspect-ratio: .72; border: 2px solid rgba(255,255,255,.88); border-radius: 50%; box-shadow: 0 0 0 999px rgba(20,15,13,.28); transform: translate(-50%, -50%); pointer-events: none; }
.face-scan-timer { position: absolute; right: 13px; bottom: 13px; padding: 6px 10px; border-radius: 999px; color: #fff; background: rgba(var(--bb-teal-rgb), 0.72); font-size: 10px; font-weight: 750; }
.face-scan-directions { margin: 12px 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.face-scan-directions strong { color: var(--ink); }
.face-scan-actions { justify-content: flex-start; }
.face-scan-divider { display: flex; align-items: center; gap: 9px; margin: 14px 0; color: var(--muted); font-size: 9px; }
.face-scan-divider::before,
.face-scan-divider::after { height: 1px; flex: 1; background: var(--line); content: ""; }
.twin-consent { margin-top: 15px; }

.twin-look-fieldset { margin: 0 0 18px; padding: 0; border: 0; }
.twin-look-builder { display: grid; align-items: start; gap: 20px; grid-template-columns: minmax(210px, .72fr) minmax(0, 1.28fr); }
.twin-look-controls-home { min-width: 0; }
.twin-look-preview-panel { position: sticky; top: 0; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-soft); }
.twin-look-preview-panel > p { margin: 9px 2px 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.twin-look-preview-panel > .twin-look-preview-status { display: flex; align-items: flex-start; gap: 7px; margin: 10px 0 0; padding: 9px 10px; border: 1px solid rgba(var(--bb-teal-rgb), 0.16); border-radius: 11px; color: var(--bb-muted); background: rgba(var(--bb-pearl-rgb), 0.78); font-size: 9px; font-weight: 700; }
.twin-look-preview-status::before { width: 7px; height: 7px; flex: 0 0 7px; margin-top: 3px; border-radius: 50%; background: var(--bb-teal); box-shadow: 0 0 0 3px rgba(var(--bb-ink-rgb), 0.13); content: ""; }
.twin-look-preview-status[data-preview-state="saved"] { border-color: rgba(var(--bb-teal-rgb), 0.2); color: var(--bb-muted); background: rgba(245, 252, 240, .82); }
.twin-look-preview-status[data-preview-state="saved"]::before { background: var(--bb-teal); box-shadow: 0 0 0 3px rgba(93, 140, 105, .13); }
.twin-turntable { position: relative; overflow: hidden; min-height: 315px; border: 1px solid rgba(var(--bb-teal-rgb), 0.12); border-radius: 14px; outline: none; background: radial-gradient(circle at 50% 18%, #fff 0, var(--bb-pearl) 47%, var(--bb-powder) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.75); cursor: grab; touch-action: pan-y; user-select: none; }
.twin-turntable.is-scrubbing { cursor: grabbing; }
.twin-turntable:focus-visible { box-shadow: 0 0 0 3px rgba(var(--bb-ink-rgb), 0.32); }
.twin-turntable img { display: block; width: 100%; height: 315px; object-fit: contain; pointer-events: none; }
.twin-wardrobe-preview-canvas { display: block; width: 100%; height: 315px; pointer-events: none; }
.twin-tailoring-overlay { position: absolute; z-index: 3; top: 50%; left: 50%; display: grid; min-width: 172px; justify-items: center; gap: 5px; padding: 13px 17px; transform: translate(-50%, -50%); border: 1px solid rgba(var(--bb-teal-rgb), 0.26); border-radius: 16px; color: var(--bb-charcoal); background: rgba(var(--bb-pearl-rgb), 0.92); box-shadow: 0 12px 30px rgba(var(--bb-ink-rgb), 0.13); text-align: center; pointer-events: none; backdrop-filter: blur(8px); }
.twin-tailoring-overlay span { color: var(--bb-teal); font-size: 20px; line-height: 1; animation: twin-tailoring-spark 1.4s ease-in-out infinite; }
.twin-tailoring-overlay strong { font-family: Georgia, "Times New Roman", serif; font-size: 10px; }
.twin-tailoring-overlay.is-slow { top: 14px; right: 14px; left: auto; min-width: 0; max-width: calc(100% - 28px); grid-template-columns: auto minmax(0, 1fr); justify-items: start; padding: 9px 12px; transform: none; background: rgba(var(--bb-pearl-rgb), 0.84); box-shadow: 0 6px 16px rgba(var(--bb-ink-rgb), 0.1); text-align: left; }
.twin-tailoring-overlay.is-slow span { font-size: 14px; }
.twin-tailoring-overlay.is-terminal { pointer-events: auto; }
.twin-preview-retry { min-height: 34px; padding: 7px 12px; border: 1px solid rgba(var(--bb-teal-rgb), 0.3); border-radius: 999px; color: var(--bb-charcoal); background: var(--bb-pearl); font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.twin-preview-retry:hover { border-color: var(--bb-teal); }
.twin-preview-retry:focus-visible { outline: 3px solid var(--bb-teal); outline-offset: 2px; }
.twin-turntable.is-tailoring :is(img, canvas) { filter: saturate(.82) brightness(1.03); }
.twin-turntable.is-tailoring-slow :is(img, canvas) { filter: none; }
@keyframes twin-tailoring-spark { 0%, 100% { transform: scale(.8) rotate(-8deg); opacity: .62; } 50% { transform: scale(1.1) rotate(8deg); opacity: 1; } }
.twin-turntable-label { position: absolute; right: 8px; bottom: 8px; left: 8px; padding: 6px 8px; border-radius: 8px; color: #fff; background: rgba(var(--bb-teal-rgb), 0.72); font-size: 8px; font-weight: 750; text-align: center; }
.twin-photo-turntable-empty { position: absolute; top: 50%; left: 50%; display: grid; justify-items: center; width: min(80%, 280px); text-align: center; transform: translate(-50%, -50%); pointer-events: none; }
.twin-photo-turntable-empty strong { color: var(--ink); font-size: 12px; }
.twin-photo-turntable-empty small { margin-top: 6px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.twin-look-fieldset > legend { margin-bottom: 10px; font-size: 12px; font-weight: 800; }
.twin-look-options { display: grid; gap: 9px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.twin-look-options .twin-catalog-option { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; }
.twin-look-options .twin-catalog-option > input[type="radio"] { position: absolute; z-index: 1; top: 14px; left: 12px; accent-color: var(--terracotta); }
.twin-catalog-option__choice { display: block; min-height: 48px; padding: 12px 11px 5px 34px; cursor: pointer; }
.twin-catalog-option__customization { padding: 0 11px 11px 34px; }
.twin-look-options .twin-catalog-option:has(> input[type="radio"]:checked) { border-color: var(--terracotta); background: var(--bb-pearl); box-shadow: 0 0 0 2px rgba(var(--bb-ink-rgb), 0.1); }
.twin-look-options .twin-catalog-option:has(> input[type="radio"]:focus-visible) { outline: 3px solid var(--bb-teal); outline-offset: 2px; }
.twin-look-options .twin-catalog-option:has(> input[type="radio"]:disabled) { opacity: .48; pointer-events: none; }
.twin-look-options strong,
.twin-look-options small { display: block; }
.twin-look-options strong { font-size: 10px; }
.twin-look-options small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.twin-look-options--shoes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.twin-look-options--shoes .twin-catalog-option__choice { min-height: 31px; }
.twin-look-options.is-catalog-ready { grid-template-columns: repeat(auto-fit, minmax(142px, 1fr)); }
.twin-catalog-thumb { display: none !important; overflow: hidden; height: 72px; margin: -4px -3px 9px; border-radius: 9px; background: var(--bb-pearl); }
.twin-catalog-thumb.has-image { display: block !important; }
.twin-catalog-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.twin-catalog-option--upload .twin-catalog-option__choice { padding-bottom: 8px; }
.twin-outfit-upload-preview { position: relative; display: grid !important; height: 72px; margin: -4px -3px 9px; overflow: hidden; place-items: center; border: 1px dashed rgba(var(--bb-teal-rgb), 0.28); border-radius: 9px; color: var(--bb-teal); background: var(--bb-pearl); }
.twin-outfit-upload-preview svg { width: 24px; height: 24px; }
.twin-outfit-upload-preview img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; background: var(--bb-powder); }
.twin-outfit-upload-preview.has-image svg { display: none; }
.twin-outfit-upload-controls { display: grid; align-content: end; gap: 7px; }
.twin-outfit-upload-button { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; padding: 7px 10px; border: 1px solid rgba(var(--bb-teal-rgb), 0.45); border-radius: 999px; color: var(--bb-charcoal); background: var(--bb-pearl); font-size: 9px; font-weight: 800; text-align: center; cursor: pointer; }
.twin-outfit-upload-button:hover { border-color: var(--bb-teal); background: var(--bb-blush); }
.twin-catalog-option--upload:has(#twin-outfit-file:focus-visible) .twin-outfit-upload-button { outline: 3px solid var(--bb-teal); outline-offset: 2px; }
.twin-outfit-upload-controls #twin-outfit-name { min-height: 22px; margin: 0; overflow-wrap: anywhere; }
.twin-look-controls.is-disabled .twin-outfit-upload-button { opacity: .48; pointer-events: none; }
.twin-catalog-option[data-catalog-availability="warming"] > .twin-catalog-option__choice::after { display: block; margin-top: 7px; color: var(--bb-teal); font-size: 8px; font-weight: 760; content: "Being tailored"; }
.option-color { display: flex !important; align-items: center; gap: 6px; margin-top: 8px; }
.option-color input { position: static; width: 28px; height: 24px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.option-color output { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; }
.twin-color-swatches { display: flex !important; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.twin-color-swatch { width: 19px; height: 19px; padding: 0; border: 2px solid #fff; border-radius: 50%; outline: 1px solid var(--bb-teal); background: var(--twin-swatch); box-shadow: 0 1px 3px rgba(var(--bb-ink-rgb), 0.12); cursor: pointer; }
.twin-color-swatch[aria-pressed="true"] { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.twin-color-swatch:focus-visible { outline: 3px solid var(--bb-teal); outline-offset: 2px; }
.twin-color-swatch:disabled { opacity: .48; cursor: not-allowed; }
.twin-color-control { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-soft); font-size: 10px; font-weight: 700; }
.twin-color-control input { width: 38px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.twin-color-control output { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }

.twin-confirm-summary { display: grid; gap: 1px; overflow: hidden; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--line); }
.twin-confirm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--surface); }
.twin-confirm-row span { color: var(--muted); font-size: 9px; }
.twin-confirm-row strong { font-size: 10px; text-align: right; }

.twin-build-progress {
  position: relative;
  display: grid;
  min-height: 142px;
  align-items: center;
  grid-template-columns: minmax(220px, .8fr) minmax(210px, 1.2fr);
  gap: 14px 24px;
  overflow: hidden;
  margin: 16px 0;
  padding: 16px 22px;
  border: 1px solid rgba(var(--bb-teal-rgb), 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 28%, rgba(var(--bb-blush-rgb), 0.35), transparent 34%),
    linear-gradient(135deg, rgba(var(--bb-pearl-rgb), 0.96), rgba(var(--bb-blush-rgb), 0.9));
  box-shadow: inset 0 1px rgba(255, 255, 255, .8);
  transition: border-color .45s ease, background .45s ease, box-shadow .45s ease;
}
.twin-hive-stage { position: relative; width: min(100%, 250px); height: 110px; justify-self: center; }
.twin-hive-glow { position: absolute; top: 50%; left: 50%; width: 150px; height: 90px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(var(--bb-blush-rgb), 0.2); filter: blur(20px); animation: twin-hive-glow 2.7s ease-in-out infinite; }
.twin-hive-cells { position: absolute; top: 50%; left: 50%; width: 188px; height: 104px; transform: translate(-50%, -50%); }
.twin-hive-cell { position: absolute; display: block; width: 43px; height: 49px; transform: scale(.9); clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%); background: rgba(255, 252, 241, .82); filter: drop-shadow(0 4px 6px rgba(var(--bb-ink-rgb), 0.09)); opacity: .5; transition: background .55s ease, opacity .55s ease, transform .55s ease, filter .55s ease; }
.twin-hive-cell:nth-child(1) { top: 27px; left: 72px; }
.twin-hive-cell:nth-child(2) { top: 3px; left: 30px; }
.twin-hive-cell:nth-child(3) { top: 3px; left: 114px; }
.twin-hive-cell:nth-child(4) { top: 51px; left: 30px; }
.twin-hive-cell:nth-child(5) { top: 51px; left: 114px; }
.twin-hive-cell:nth-child(6) { top: 27px; left: -12px; }
.twin-hive-cell:nth-child(7) { top: 27px; left: 156px; }
.twin-build-progress[data-hive-step="gathering"] .twin-hive-cell:nth-child(-n+2),
.twin-build-progress[data-hive-step="shaping"] .twin-hive-cell:nth-child(-n+4),
.twin-build-progress[data-hive-step="finishing"] .twin-hive-cell:nth-child(-n+6),
.twin-build-progress[data-hive-step="polishing"] .twin-hive-cell,
.twin-build-progress[data-hive-state="complete"] .twin-hive-cell {
  transform: scale(1);
  background: linear-gradient(145deg, var(--bb-blush), var(--bb-blush));
  filter: drop-shadow(0 5px 8px rgba(var(--bb-ink-rgb), 0.18));
  opacity: 1;
  animation: twin-hive-cell-breathe 2.2s ease-in-out infinite;
}
.twin-hive-cell:nth-child(2n) { animation-delay: -.7s !important; }
.twin-hive-cell:nth-child(3n) { animation-delay: -1.3s !important; }
.twin-hive-bee { position: absolute; z-index: 3; display: block; width: 23px; height: 14px; border: 1px solid rgba(var(--bb-teal-rgb), 0.3); border-radius: 55% 48% 48% 55%; background: repeating-linear-gradient(90deg, var(--bb-teal) 0 4px, var(--bb-blush) 4px 9px); box-shadow: 0 4px 7px rgba(var(--bb-ink-rgb), 0.15); }
.twin-hive-bee::before { position: absolute; top: -8px; left: 4px; width: 10px; height: 9px; transform: rotate(-18deg); border: 1px solid rgba(var(--bb-teal-rgb), 0.2); border-radius: 70% 35%; background: rgba(255, 255, 255, .78); box-shadow: 8px 3px 0 -1px rgba(255, 255, 255, .72); content: ""; }
.twin-hive-bee::after { position: absolute; top: 4px; right: 2px; width: 3px; height: 3px; border-radius: 50%; background: var(--bb-teal); content: ""; }
.twin-hive-bee--one { top: 16px; left: 8px; animation: twin-hive-flight-one 4.2s ease-in-out infinite; }
.twin-hive-bee--two { right: 5px; bottom: 16px; transform: scaleX(-1); animation: twin-hive-flight-two 4.8s ease-in-out -1.1s infinite; }
.twin-hive-ready { position: absolute; z-index: 5; top: 50%; left: 50%; display: grid; width: 42px; height: 42px; place-items: center; transform: translate(-50%, -50%) scale(.5); border: 4px solid rgba(255,255,255,.88); border-radius: 50%; color: #fff; background: var(--bb-teal); box-shadow: 0 9px 22px rgba(60, 98, 68, .28); opacity: 0; transition: transform .5s cubic-bezier(.2,.9,.25,1.3), opacity .35s ease; }
.twin-hive-ready svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.twin-hive-note { max-width: 430px; margin: 0; color: var(--bb-muted); font-family: Georgia, "Times New Roman", serif; font-size: 12px; line-height: 1.55; }
.twin-build-progress[data-hive-state="complete"] { border-color: rgba(var(--bb-teal-rgb), 0.27); background: linear-gradient(135deg, rgba(245, 252, 240, .96), rgba(var(--bb-blush-rgb), 0.92)); box-shadow: inset 0 1px rgba(255,255,255,.86), 0 10px 24px rgba(76, 119, 85, .08); }
.twin-build-progress[data-hive-state="complete"] .twin-hive-ready { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.twin-build-progress[data-hive-state="complete"] .twin-hive-bee { animation: none; opacity: .35; }
.twin-build-progress[data-hive-state="paused"] .twin-hive-bee { animation-play-state: paused; opacity: .35; }
.twin-build-progress[data-hive-state="paused"] .twin-hive-glow,
.twin-build-progress[data-hive-state="paused"] .twin-hive-cell { animation-play-state: paused; }
.twin-build-progress[data-hive-state="paused"] .twin-hive-cell { filter: grayscale(.4); opacity: .42; }
@keyframes twin-hive-glow {
  0%, 100% { transform: translate(-50%, -50%) scale(.9); opacity: .52; }
  50% { transform: translate(-50%, -50%) scale(1.12); opacity: .9; }
}
@keyframes twin-hive-cell-breathe {
  0%, 100% { filter: drop-shadow(0 5px 8px rgba(var(--bb-ink-rgb), 0.14)); }
  50% { filter: drop-shadow(0 7px 12px rgba(var(--bb-ink-rgb), 0.3)); }
}
@keyframes twin-hive-flight-one {
  0%, 100% { transform: translate(0, 4px) rotate(-7deg); }
  35% { transform: translate(24px, -6px) rotate(8deg); }
  70% { transform: translate(49px, 7px) rotate(-2deg); }
}
@keyframes twin-hive-flight-two {
  0%, 100% { transform: translate(0, 0) scaleX(-1) rotate(-4deg); }
  40% { transform: translate(-27px, -9px) scaleX(-1) rotate(7deg); }
  72% { transform: translate(-45px, 5px) scaleX(-1) rotate(-6deg); }
}
@media (max-width: 620px) {
  .twin-build-progress { grid-template-columns: 1fr; gap: 4px; padding: 13px 16px 17px; text-align: center; }
  .twin-hive-stage { height: 105px; }
  .twin-hive-note { max-width: 340px; justify-self: center; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .twin-build-progress,
  .twin-hive-cell,
  .twin-hive-ready { transition: none; }
  .twin-hive-glow,
  .twin-hive-cell,
  .twin-hive-bee,
  .twin-tailoring-overlay span { animation: none !important; }
}
.twin-approval-layout { display: grid; align-items: start; gap: 24px; margin: 0 0 16px; grid-template-columns: minmax(360px, .92fr) minmax(420px, 1.08fr); }
.twin-approval-preview { padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-soft); box-shadow: var(--shadow-sm); }
.twin-review-view-help { margin: 10px 3px 1px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.twin-turntable--review,
.twin-turntable--review img,
.twin-turntable--review .twin-wardrobe-preview-canvas { height: 390px; }
.twin-approval-details { display: grid; min-width: 0; gap: 12px; }
.twin-review-customizer { padding: 17px; border: 1px solid var(--bb-line); border-radius: 18px; background: linear-gradient(145deg, var(--bb-pearl), var(--bb-pearl)); }
.twin-review-customizer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.twin-review-customizer-head .eyebrow { font-size: 7px; }
.twin-review-customizer h3 { margin: 4px 0 0; font-size: 14px; }
.twin-review-customizer p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.twin-review-customizer .twin-update-allowance { margin-top: 10px; color: var(--bb-charcoal); font-weight: 760; }
.twin-review-customizer .twin-live-look-status { display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin-top: 9px; padding: 5px 8px; border-radius: 999px; color: var(--bb-muted); background: #e6f1e8; font-size: 8px; font-weight: 760; }
.twin-live-look-status::before { width: 6px; height: 6px; border-radius: 50%; background: var(--bb-teal); content: ""; }
.twin-review-customizer .twin-live-look-status[data-state="draft"] { color: var(--bb-charcoal); background: var(--bb-blush); }
.twin-live-look-status[data-state="draft"]::before { background: var(--bb-teal); }
.twin-review-customizer .twin-live-look-status[data-state="limit"] { color: var(--bb-teal); background: var(--bb-blush); }
.twin-live-look-status[data-state="limit"]::before { background: var(--bb-teal); }
.twin-review-customizer .twin-look-fieldset { margin-bottom: 14px; }
.twin-review-customizer .twin-look-options .twin-catalog-option { background: rgba(255,255,255,.72); }
.twin-review-customizer .button-row { margin-top: 4px; }
.twin-review-customizer .button { flex: 1; }
.twin-look-controls--review.is-disabled { opacity: .58; }
.twin-look-controls--review.is-disabled :is(input, button) { pointer-events: none; }
.twin-review-source { margin: 0; }
.twin-approval-note { margin: 0; padding: 13px 14px; border-radius: 14px; color: var(--muted); background: var(--bb-pearl); font-size: 9px; line-height: 1.55; }
.twin-review-footer-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 12px; }
.twin-review-footer-actions .text-button { margin-inline: 0; }
.twin-customize-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 18px 0; padding: 16px; border: 1px solid var(--bb-line); border-radius: 16px; background: linear-gradient(135deg, var(--bb-pearl), var(--bb-pearl)); }
.twin-customize-card h3 { margin: 0; font-size: 12px; }
.twin-customize-card p { margin: 5px 0 0; max-width: 430px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.twin-customize-card .button { flex: 0 0 auto; }
.twin-customize-card .button:disabled { opacity: .72; }
.twin-source-card { display: grid; align-items: center; gap: 12px; padding: 11px; border: 1px solid var(--line); border-radius: 14px; grid-template-columns: 70px minmax(0,1fr); }
.twin-source-card img,
.twin-source-card video { width: 70px; height: 86px; object-fit: contain; border-radius: 10px; background: var(--bb-powder); }
.twin-source-card strong,
.twin-source-card small { display: block; }
.twin-source-card strong { font-size: 10px; }
.twin-source-card small { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.twin-saved-looks { margin: 18px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.twin-saved-looks-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 11px; }
.twin-saved-looks-head h3 { margin: 0; font-size: 11px; }
.twin-saved-looks-head p { margin: 4px 0 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.twin-saved-looks-grid { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.twin-saved-look { padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.twin-saved-look strong,
.twin-saved-look small { display: block; }
.twin-saved-look strong { font-size: 9px; }
.twin-saved-look small { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.twin-account-summary { display: grid; gap: 4px; margin-bottom: 13px; }
.twin-account-summary strong { font-size: 11px; }
.twin-account-summary small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.twin-status { display: inline-flex; width: fit-content; padding: 4px 7px; border-radius: 999px; color: var(--bb-teal); background: var(--blush); font-size: 8px; font-weight: 800; text-transform: uppercase; }

.toast-region { position: fixed; z-index: 200; right: 20px; bottom: 22px; display: grid; width: min(360px, calc(100% - 40px)); gap: 9px; pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px; border: 1px solid var(--bb-line); border-radius: 13px; color: var(--ink); background: rgba(255,253,249,.97); box-shadow: var(--shadow-md); animation: toast-in .3s var(--ease); }
.toast svg { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 1px; color: var(--success); }
.toast--error svg { color: var(--danger); }
.toast strong, .toast small { display: block; }
.toast strong { font-size: 11px; }
.toast small { margin-top: 1px; color: var(--muted); font-size: 9px; }

/* Authentication */
.auth-page { min-height: 100vh; background: var(--surface); }
.auth-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(440px, .93fr) minmax(480px, 1.07fr); }
.auth-story { position: relative; display: flex; min-height: 100vh; overflow: hidden; flex-direction: column; padding: max(clamp(28px, 4vw, 56px), env(safe-area-inset-top)) clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px); color: var(--bb-pearl); background: radial-gradient(circle at 88% 17%, rgba(var(--bb-blush-rgb), 0.3), transparent 27%), linear-gradient(145deg, var(--bb-teal), var(--bb-teal) 60%, var(--bb-teal)); }
.auth-story::after { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.22) .55px, transparent .55px); background-size: 10px 10px; content: ""; opacity: .13; pointer-events: none; }
.wordmark--light { position: relative; z-index: 2; color: #fff; }
.auth-story-copy { position: relative; z-index: 2; width: min(520px, 74%); margin: auto 0; padding: 55px 0 clamp(40px, 6vh, 80px); }
.auth-story-copy h1 { margin: 14px 0 17px; font-size: clamp(44px, 5vw, 70px); font-weight: 680; letter-spacing: -.06em; line-height: .98; }
.auth-story-copy p { max-width: 520px; margin: 0; color: var(--bb-pearl); font-size: 14px; line-height: 1.68; }
.auth-proof { display: flex; flex-wrap: wrap; gap: 9px 17px; margin-top: 25px; color: var(--bb-pearl); font-size: 10px; font-weight: 660; }
.auth-proof span { display: inline-flex; align-items: center; gap: 5px; }
.auth-proof svg { width: 13px; height: 13px; color: var(--bb-teal); }
.auth-art { position: absolute; z-index: 1; right: clamp(30px, 8vw, 120px); bottom: -25px; width: 300px; height: 325px; }
.auth-card { position: absolute; overflow: hidden; width: 165px; height: 268px; border: 5px solid rgba(255,255,255,.82); border-radius: 22px; background: linear-gradient(145deg, var(--bb-blush), var(--bb-teal) 57%, var(--bb-teal)); box-shadow: 0 25px 60px rgba(var(--bb-ink-rgb), 0.35); }
.auth-card > span { position: absolute; z-index: 2; top: 10px; left: 11px; font-family: Georgia, serif; font-size: 10px; }
.auth-card small { position: absolute; z-index: 2; bottom: 10px; left: 11px; font-size: 7px; letter-spacing: .08em; }
.auth-card--back { top: 25px; left: 22px; transform: rotate(-10deg); filter: saturate(.7); }
.auth-card--front { top: 2px; right: 19px; transform: rotate(8deg); }
.auth-person { position: absolute; bottom: -25px; left: 50%; width: 92px; height: 215px; transform: translateX(-50%); border-radius: 50% 50% 25% 25%; background: linear-gradient(110deg, var(--bb-teal), var(--bb-teal)); }
.auth-person::before { position: absolute; top: -26px; left: 23px; width: 49px; height: 62px; border-radius: 48%; background: var(--bb-teal); content: ""; }
.auth-spark { position: absolute; color: var(--bb-teal); font-size: 28px; }
.auth-spark--one { top: 8px; right: -4px; }
.auth-spark--two { bottom: 38px; left: -5px; font-size: 16px; }
.auth-copyright { position: relative; z-index: 2; color: var(--bb-muted); font-size: 9px; }

.auth-panel { display: grid; min-width: 0; min-height: 100vh; place-items: center; padding: 45px clamp(28px, 7vw, 100px); background: var(--surface); }
.auth-mobile-brand { display: none; }
.auth-box { width: min(430px, 100%); min-width: 0; }
.auth-heading { margin-bottom: 25px; }
.auth-heading h2 { margin: 7px 0 6px; font-size: clamp(31px, 4vw, 42px); font-weight: 720; letter-spacing: -.05em; }
.auth-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.auth-account-notice {
  margin: -7px 0 20px; padding: 13px 15px;
  border: 1px solid rgba(var(--bb-teal-rgb), 0.25); border-radius: 14px;
  color: var(--bb-charcoal); background: var(--bb-blush);
}
.auth-account-notice strong { display: block; margin-bottom: 4px; font-size: 11px; }
.auth-account-notice p { margin: 0; font-size: 10px; line-height: 1.55; }
.auth-tabs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-bottom: 22px; padding: 4px; border-radius: 12px; background: var(--surface-soft); }
.auth-tabs button { min-width: 0; min-height: 40px; padding-inline: 6px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 760; cursor: pointer; white-space: nowrap; }
.auth-tabs button[aria-selected="true"] { color: var(--ink); background: var(--surface); box-shadow: 0 3px 10px rgba(var(--bb-ink-rgb), 0.08); }
.auth-form { display: grid; gap: 15px; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 62px; }
.password-toggle { position: absolute; top: 50%; right: 8px; padding: 6px 7px; transform: translateY(-50%); border: 0; color: var(--terracotta-dark); background: transparent; font-size: 9px; font-weight: 760; cursor: pointer; }
.form-message { min-height: 18px; margin: -3px 0 -5px; color: var(--danger); font-size: 10px; font-weight: 650; }
.form-message:empty { min-height: 0; }
.auth-terms { margin: -4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.auth-help { margin: 25px 0 0; color: var(--muted); font-size: 10px; text-align: center; }
.auth-help a { color: var(--terracotta-dark); font-weight: 700; }

/* Reads as a link, but it opens a panel on this page rather than navigating,
   so the markup has to be a button -- an anchor with no destination is a trap
   for anyone on a keyboard or a screen reader. */
.auth-forgot { display: flex; justify-content: flex-end; margin: -6px 0 -2px; }
.auth-forgot--back { justify-content: center; margin: 4px 0 0; }
.auth-forgot button {
  padding: 0;
  border: 0;
  color: var(--terracotta-dark);
  background: none;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.auth-forgot button:hover { text-decoration: underline; }

/* Beauty Bee authentication — derived from the approved fuzzy bloom artwork. */
.auth-page {
  --bee-sky: var(--bb-powder);
  --bee-blush: var(--bb-blush);
  --bee-honey: var(--bb-blush);
  --bee-cream: var(--bb-pearl);
  --bee-cocoa: var(--bb-teal);
  --bee-ink: var(--bb-charcoal);
  color: var(--bee-ink);
  background: var(--bee-sky);
}

.auth-page .skip-link { background: var(--bee-cocoa); color: var(--bee-cream); }
.auth-page :focus-visible { outline-color: var(--bb-teal); }
.auth-page .brand-mark--bee {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 15px;
  background: linear-gradient(145deg, var(--bb-blush), var(--bee-blush));
  box-shadow: 0 10px 28px rgba(var(--bb-ink-rgb), 0.16), inset 0 0 12px rgba(255,255,255,.38);
}
.auth-page .brand-mark--bee img { width: 100%; height: 100%; object-fit: cover; }
.auth-page .wordmark-text { color: var(--bee-ink); }
.auth-page .wordmark-text > span { margin-left: 2px; color: var(--bee-cocoa); font-size: 1em; font-weight: 790; letter-spacing: -.02em; }

.auth-page .auth-story {
  isolation: isolate;
  color: var(--bee-ink);
  background:
    radial-gradient(ellipse at -3% 45%, rgba(var(--bb-blush-rgb), 0.85) 0 9%, transparent 25%),
    radial-gradient(ellipse at 103% 16%, rgba(var(--bb-blush-rgb), 0.76) 0 10%, transparent 27%),
    linear-gradient(160deg, var(--bb-powder) 0%, var(--bee-sky) 56%, var(--bb-powder) 100%);
}
.auth-page .auth-story::before {
  position: absolute;
  z-index: -1;
  right: -10%;
  bottom: -12%;
  width: 75%;
  aspect-ratio: 1.8;
  border-radius: 50%;
  background: rgba(var(--bb-blush-rgb), 0.78);
  box-shadow: -150px 8px 70px rgba(var(--bb-ink-rgb), 0.32);
  filter: blur(24px);
  content: "";
}
.auth-page .auth-story::after {
  z-index: -1;
  background-image:
    radial-gradient(circle at 17% 26%, rgba(var(--bb-blush-rgb), 0.58) 0 6%, transparent 15%),
    radial-gradient(circle at 77% 40%, rgba(var(--bb-blush-rgb), 0.38) 0 5%, transparent 16%);
  background-size: auto;
  opacity: 1;
}
.auth-page .wordmark--light { color: var(--bee-ink); }
.auth-page .brand-mark--light { border-color: rgba(255,255,255,.72); background: transparent; }
.auth-page .auth-story-copy { width: min(540px, 78%); padding: 45px 0 245px; }
.auth-page .auth-story-copy .eyebrow { color: var(--bee-cocoa); }
.auth-page .auth-story-copy h1 { color: var(--bee-ink); text-shadow: 0 2px rgba(255,255,255,.18); }
.auth-page .auth-story-copy h1 em { color: var(--bb-teal); }
.auth-page .auth-story-copy p { color: rgba(var(--bb-ink-rgb), 0.76); font-weight: 560; }
.auth-page .auth-proof { gap: 8px; color: var(--bee-cocoa); }
.auth-page .auth-proof span {
  min-height: 31px;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 999px;
  background: rgba(var(--bb-blush-rgb), 0.62);
  box-shadow: 0 5px 16px rgba(var(--bb-ink-rgb), 0.06);
  backdrop-filter: blur(7px);
}
.auth-page .auth-proof svg { color: var(--bb-teal); }
/* The whole phone, not a slice of one. It used to sit at bottom: -32px with a
   flat bottom edge, so the panel's overflow cut it in half -- which reads as a
   layout bug rather than a device peeking into frame. */
.auth-page .auth-art {
  /* Small enough to show the whole device. At full size a phone cannot fit
     beside a 550px column in a 670px panel, and putting it below doubled the
     page height -- so it sits in the corner the copy does not reach, complete
     rather than sliced. */
  right: clamp(18px, 2.5vw, 34px);
  bottom: clamp(26px, 5vh, 58px);
  width: clamp(124px, 11vw, 158px);
  aspect-ratio: 226 / 400;
  height: auto;
  overflow: hidden;
  border: 7px solid rgba(var(--bb-ink-rgb), 0.94);
  border-radius: 34px;
  background: url("/static/assets/beauty-bee-home-master.png") center top / cover no-repeat;
  box-shadow: 0 30px 65px rgba(var(--bb-ink-rgb), 0.25), inset 0 0 0 1px rgba(var(--bb-ink-rgb), 0.09);
  transform: rotate(4deg);
}
.auth-page .auth-card,
.auth-page .auth-spark { display: none; }
.auth-page .auth-copyright { color: rgba(var(--bb-ink-rgb), 0.62); }

.auth-page .auth-panel {
  background:
    radial-gradient(circle at 94% 4%, rgba(var(--bb-powder-rgb), 0.25), transparent 30%),
    radial-gradient(circle at 3% 97%, rgba(var(--bb-blush-rgb), 0.2), transparent 29%),
    var(--bee-cream);
}
.auth-page .auth-box {
  padding: clamp(27px, 4vw, 38px);
  border: 1px solid rgba(var(--bb-teal-rgb), 0.09);
  border-radius: 30px;
  background: rgba(255,253,248,.9);
  box-shadow: 0 24px 65px rgba(var(--bb-ink-rgb), 0.12), inset 0 1px rgba(255,255,255,.78);
  backdrop-filter: blur(18px);
}
.auth-page .auth-heading .eyebrow { color: var(--bb-teal); }
.auth-page .auth-heading h2 { color: var(--bee-ink); }
.auth-page .auth-heading p { color: var(--bb-muted); }
.auth-page .auth-tabs { border: 1px solid rgba(var(--bb-teal-rgb), 0.06); background: var(--bb-blush); }
.auth-page .auth-tabs button[aria-selected="true"] { color: var(--bee-ink); background: var(--bb-pearl); box-shadow: 0 5px 14px rgba(var(--bb-ink-rgb), 0.09); }
.auth-page .field input { border-color: var(--bb-line); border-radius: 13px; color: var(--bee-ink); background: var(--bb-pearl); }
.auth-page .field input:hover { border-color: var(--bb-line); }
.auth-page .field input:focus { border-color: var(--bee-sky); box-shadow: 0 0 0 3px rgba(130,198,231,.18); }
.auth-page .password-toggle,
.auth-page .auth-help a { color: var(--bb-teal); }
.auth-page .auth-forgot button { color: var(--bb-teal); }
.auth-page .button--primary {
  border-color: var(--bb-teal);
  border-radius: 14px;
  color: var(--bb-white);
  background: var(--bb-teal);
  box-shadow: 0 10px 24px rgba(var(--bb-ink-rgb), 0.2), inset 0 1px rgba(255,255,255,.55);
}
.auth-page .button--primary:hover:not(:disabled) { background: var(--bb-teal-hover); box-shadow: 0 14px 30px rgba(var(--bb-ink-rgb), 0.25); color: var(--bb-white); }

/* Responsive */
@media (max-width: 1120px) {
  :root { --sidebar: 218px; }
  .template-grid, .content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .template-grid--home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-hero { grid-template-columns: 1.12fr .88fr; }
  .hero-phone { width: 178px; height: 291px; }
  .hero-chip--one { right: 8px; }
  .auth-shell { grid-template-columns: .9fr 1.1fr; }
  .auth-art { right: 25px; }
}

@media (max-width: 900px) {
  :root { --sidebar: 256px; --topbar: 69px; }
  .sidebar { transform: translateX(-105%); box-shadow: var(--shadow-lg); transition: transform .27s var(--ease); }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-close, .menu-button { display: grid; }
  .nav-scrim { position: fixed; z-index: 45; inset: 0; background: rgba(var(--bb-teal-rgb), 0.42); backdrop-filter: blur(3px); }
  .nav-scrim.is-visible { display: block; }
  .app-column { margin-left: 0; }
  .main-content { padding-bottom: 95px; }
  .home-hero { grid-template-columns: 1fr .7fr; }
  .hero-art { min-height: 330px; }
  .hero-phone { top: 53px; width: 158px; height: 260px; }
  .hero-chip--two { display: none; }
  .home-bottom-grid { grid-template-columns: 1fr; }
  .template-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .template-grid--home .template-card:nth-child(3) { display: none; }
  .template-detail { grid-template-columns: .85fr 1.15fr; }
  .detail-preview { min-height: 520px; }
  .create-layout, .settings-layout, .account-layout { grid-template-columns: 1fr; }
  .create-summary, .balance-card { position: static; }
  .result-layout { grid-template-columns: minmax(260px,.75fr) 1.25fr; }
  .bottom-nav { position: fixed; z-index: 40; right: 0; bottom: 0; left: 0; display: grid; height: calc(70px + env(safe-area-inset-bottom)); grid-template-columns: repeat(5, 1fr); padding: 7px 10px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255,253,249,.95); box-shadow: 0 -10px 28px rgba(var(--bb-ink-rgb), 0.07); backdrop-filter: blur(17px); }
  .bottom-nav a { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 2px; color: var(--muted); font-size: 8px; font-weight: 720; text-decoration: none; }
  .bottom-nav a.is-active { color: var(--terracotta-dark); }
  .bottom-nav svg { width: 19px; height: 19px; }
  .bottom-nav .bottom-create { position: relative; color: var(--ink-soft); }
  .bottom-create > span { display: grid; width: 46px; height: 46px; margin-top: -25px; place-items: center; border: 5px solid var(--paper); border-radius: 50%; color: #fff; background: var(--terracotta); box-shadow: 0 8px 20px rgba(var(--bb-ink-rgb), 0.25); }
  .bottom-create small { font-size: 8px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-story { display: none; }
  .auth-panel { padding: 35px max(24px, env(safe-area-inset-left)); }
  .auth-mobile-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 50px; }
  .twin-approval-layout { grid-template-columns: 1fr; }
  .twin-approval-preview { width: min(100%, 520px); margin-inline: auto; }
}

@media (max-width: 680px) {
  .auth-shell, .auth-panel { width: 100%; max-width: 100vw; overflow-x: hidden; }
  .auth-box { width: min(430px, calc(100vw - 48px)); }
  .topbar { padding: 0 16px; }
  .showcase-banner {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 9px 16px 10px;
    text-align: left;
  }
  .main-content { padding: 24px 16px 95px; }
  .account-copy, .job-pill { display: none; }
  .topbar-actions { gap: 9px; }
  .notification-panel { position: fixed; top: calc(var(--topbar) + env(safe-area-inset-top) + 8px); right: 12px; left: 12px; width: auto; }
  .home-hero { min-height: 590px; grid-template-columns: 1fr; }
  .hero-copy { align-self: start; padding: 35px 28px 10px; }
  .hero-copy h2 { font-size: clamp(38px, 11.5vw, 53px); }
  .hero-copy p { font-size: 13px; }
  .hero-art { min-height: 300px; }
  .hero-phone { top: 5px; left: 52%; width: 149px; height: 246px; transform: translateX(-50%) rotate(4deg); }
  .hero-chip--one { top: 35px; right: 18px; }
  .section-block { margin-top: 33px; }
  .section-heading { align-items: flex-end; }
  .section-heading h2 { font-size: 20px; }
  .section-heading .text-link { font-size: 0; }
  .section-heading .text-link svg { width: 18px; height: 18px; }
  .template-grid, .template-grid--home, .content-grid { grid-template-columns: 1fr; }
  .template-grid--home .template-card:nth-child(3) { display: block; }
  .template-cover { height: 205px; }
  .home-bottom-grid { margin-top: 28px; }
  .page-intro, .page-intro--row { display: block; margin-bottom: 21px; }
  .page-intro .button { width: 100%; margin-top: 17px; }
  .page-intro h2 { font-size: 33px; }
  .filter-bar { display: grid; gap: 11px; }
  .search-field,
  .template-industry-field,
  .template-format-filters,
  .template-buzzing-toggle { width: 100%; min-width: 0; }
  .template-format-filters button { flex: 1 0 auto; }
  .template-buzzing-panel__heading { display: block; }
  .template-buzzing-panel__heading p { margin-top: 8px; }
  .template-detail { grid-template-columns: 1fr; }
  .detail-preview { min-height: 390px; }
  .detail-copy { padding: 28px 24px 31px; }
  .detail-copy h2 { font-size: 34px; }
  .detail-footer { align-items: stretch; flex-direction: column-reverse; }
  .detail-cost { display: flex; align-items: center; justify-content: space-between; }
  .form-section, .settings-card { padding: 19px; border-radius: 19px; }
  .legend-help { margin-left: 0; }
  .upload-zone, .upload-zone > img { min-height: 285px; }
  .photo-tips { align-items: flex-start; justify-content: flex-start; flex-direction: column; gap: 6px; }
  .form-grid { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .selected-template-strip { grid-template-columns: 54px minmax(0,1fr) auto; }
  .selected-template-thumb { width: 54px; }
  .summary-card { padding: 22px; }
  .stage-list { gap: 0; }
  .stage-list li { font-size: 7px; }
  .result-layout { grid-template-columns: 1fr; }
  .video-card { max-width: 330px; margin-inline: auto; }
  .result-actions { grid-template-columns: 1fr; }
  .voice-options { grid-template-columns: 1fr; }
  .voice-options label > span { min-height: 64px; }
  .profile-card { align-items: flex-start; flex-wrap: wrap; }
  .profile-card .button { width: 100%; margin-left: 0; }
  .billing-choice-grid { grid-template-columns: 1fr; }
  .billing-choice,
  .billing-choice--topup { min-height: 0; }
  .billing-allowance-grid { grid-template-columns: 1fr; }
  .notification-preference { gap: 12px; padding: 13px; }
  .notification-birthday-date { grid-template-columns: 1fr 1fr; padding-inline: 13px; }
  .billing-subscription-summary { align-items: flex-start; flex-direction: column; gap: 10px; }
  .billing-subscription-summary p { max-width: none; text-align: left; }
  .content-tabs { margin-right: -16px; padding-right: 16px; }
  .onboarding-dialog form { padding: 28px 22px; }
  .twin-exit-actions { grid-template-columns: 1fr; }
  .onboarding-step h2 { padding-right: 20px; font-size: 28px; }
  .source-choice-grid,
  .twin-choice-grid { grid-template-columns: 1fr; }
  .home-create-dialog { width: calc(100% - 18px); max-height: calc(100dvh - 18px); border-radius: 22px; }
  .home-create-dialog form { min-height: 0; padding: 25px 17px 20px; }
  .home-create-heading { padding-right: 38px; }
  .home-create-heading h2 { font-size: 29px; }
  .home-create-progress { gap: 5px; margin: 19px 0 22px; }
  .home-create-progress li { min-height: 37px; gap: 5px; font-size: 8px; }
  .home-create-progress li span { width: 20px; height: 20px; }
  .home-create-source-grid { grid-template-columns: 1fr; gap: 10px; }
  .home-create-source-card { min-height: 124px; grid-template-columns: 45px minmax(0, 1fr); align-items: center; align-content: center; gap: 12px; padding: 17px; }
  .home-create-source-card > em { position: static; grid-column: 2; justify-self: start; }
  .home-create-source-icon { width: 45px; height: 45px; }
  .home-create-source-card strong { font-size: 15px; }
  .home-create-format-grid { grid-template-columns: 1fr; gap: 9px; }
  .home-create-format-grid label > span { min-height: 86px; grid-template-columns: 35px minmax(0, 1fr) auto; justify-items: start; align-items: center; align-content: center; gap: 3px 11px; padding: 14px 16px; text-align: left; }
  .home-create-format-grid svg { grid-row: 1 / span 2; width: 25px; height: 25px; }
  .home-create-format-grid small { grid-column: 2; }
  .home-create-format-grid em { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
  .home-create-template-browser { grid-template-columns: minmax(0, 1fr); }
  .home-create-template-nav { display: none; }
  .home-create-template-rail { grid-auto-columns: minmax(210px, 84%); margin-inline: -2px; }
  .home-create-actions { position: sticky; bottom: 0; margin-inline: -17px; padding: 12px 17px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
  .home-create-actions .button { flex: 1; }
  .twin-look-options,
  .twin-look-options--shoes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(142px, 72%); grid-template-columns: none; overflow-x: auto; padding: 3px 3px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .twin-look-options .twin-catalog-option { scroll-snap-align: start; }
  .twin-look-builder,
  .twin-approval-layout { grid-template-columns: 1fr; }
  .twin-review-view-tabs { display: grid; width: 100%; }
  .twin-review-customizer { padding: 14px; }
  .twin-customize-card { align-items: stretch; flex-direction: column; }
  .twin-customize-card .button { width: 100%; }
  .twin-look-preview-panel { position: static; }
  .twin-turntable,
  .twin-turntable img,
  .twin-wardrobe-preview-canvas { min-height: 0; height: 340px; }
  .twin-choice-grid--primary .twin-choice { min-height: 108px; }
  .twin-source-zone,
  .face-scan-frame { min-height: 280px; }
  .twin-source-zone > img,
  .face-scan-frame video { height: 310px; }
  .twin-turntable--review,
  .twin-turntable--review img,
  .twin-turntable--review .twin-wardrobe-preview-canvas { height: 360px; }
  .face-scan-actions { align-items: stretch; flex-direction: column; }
  .face-scan-actions .button { width: 100%; }
  .toast-region { right: 12px; bottom: 82px; width: calc(100% - 24px); }
  .auth-panel { align-content: start; padding-top: 28px; }
  .auth-mobile-brand { margin-bottom: clamp(40px, 9vh, 75px); }
  .auth-heading h2 { font-size: 34px; }
}

@media (max-width: 390px) {
  .button-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  .button-row.home-create-actions { align-items: stretch; }
  .button-row.home-create-actions .button { width: 100%; }
  .hero-copy { padding-inline: 23px; }
  .home-hero { min-height: 625px; }
  .hero-chip--one { display: none; }
  .topbar-title span { display: none; }
  .template-cover { height: 205px; }
  .selected-template-strip { grid-template-columns: 48px minmax(0,1fr); }
  .selected-template-thumb { width: 48px; height: 52px; }
  .selected-template-strip > a { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@keyframes view-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(var(--bb-ink-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--bb-ink-rgb), 0); } }
@keyframes breathe { 50% { transform: scale(1.05); } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* Beauty Bee authenticated studio — pearl, blush, and powder blue. */
.customer-app {
  --paper: var(--bb-pearl);
  --paper-deep: var(--bb-powder);
  --surface: var(--bb-white);
  --surface-soft: var(--bb-powder);
  --surface-blush: var(--bb-blush);
  --ink: var(--bb-charcoal);
  --ink-soft: var(--bb-muted);
  --muted: var(--bb-muted);
  --line: var(--bb-line);
  --line-strong: var(--bb-line-strong);
  --brown: var(--bb-teal);
  --brown-deep: var(--bb-teal-hover);
  --terracotta: var(--bb-teal);
  --terracotta-dark: var(--bb-teal-hover);
  --blush: var(--bb-blush);
  --peach: var(--bb-blush);
  --shadow-sm: 0 10px 30px rgba(64, 98, 114, .09);
  --shadow-md: 0 20px 55px rgba(56, 89, 105, .14);
  --shadow-lg: 0 34px 90px rgba(35, 66, 81, .22);
  background:
    radial-gradient(circle at 7% 18%, rgba(var(--bb-blush-rgb), 0.64), transparent 18%),
    radial-gradient(circle at 93% 72%, rgba(var(--bb-blush-rgb), 0.72), transparent 22%),
    linear-gradient(160deg, var(--bb-powder) 0%, var(--bb-powder) 49%, var(--bb-powder) 100%);
  background-attachment: fixed;
}

.customer-app :focus-visible { outline-color: var(--bb-teal); }
.customer-app .app-shell { position: relative; isolation: isolate; }
.customer-app .app-column { position: relative; z-index: 2; }
.customer-app .main-content { position: relative; z-index: 1; }
.customer-app .brand-mark--bee {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 15px;
  background: linear-gradient(145deg, var(--bb-blush), var(--bb-blush));
  box-shadow: 0 8px 22px rgba(var(--bb-ink-rgb), 0.15), inset 0 0 12px rgba(255, 255, 255, .42);
}
.customer-app .brand-mark--bee img { width: 100%; height: 100%; object-fit: cover; }
.customer-app .wordmark-text > span { color: var(--brown); font-size: 1em; font-weight: 790; letter-spacing: -.02em; }

.customer-app .sidebar,
.customer-app .topbar,
.customer-app .bottom-nav {
  border-color: rgba(var(--bb-teal-rgb), 0.12);
  background: rgba(var(--bb-pearl-rgb), 0.88);
  box-shadow: 0 12px 40px rgba(53, 94, 114, .08);
  backdrop-filter: blur(20px) saturate(1.12);
}
.customer-app .side-nav a:hover { background: rgba(var(--bb-blush-rgb), 0.18); }
.customer-app .side-nav a.is-active { color: var(--brown-deep); background: linear-gradient(135deg, var(--bb-blush), var(--bb-blush)); }
.customer-app .side-nav a.is-active svg { color: var(--bb-teal); }
.customer-app .credit-card {
  border-color: rgba(var(--bb-teal-rgb), 0.18);
  background: linear-gradient(145deg, var(--bb-blush), var(--bb-blush));
}
.customer-app .credit-card-icon,
.customer-app .bottom-create > span {
  color: var(--brown-deep);
  background: linear-gradient(145deg, var(--bb-blush), var(--bb-blush));
}
.customer-app .button--primary {
  border-color: var(--bb-teal);
  color: var(--bb-white);
  background: var(--bb-teal);
  box-shadow: 0 10px 24px rgba(var(--bb-ink-rgb), 0.2), inset 0 1px rgba(255, 255, 255, .58);
}
.customer-app .button--primary:hover:not(:disabled) { background: var(--bb-teal-hover); color: var(--bb-white); }
.customer-app .avatar,
.customer-app .large-avatar { border-color: var(--bb-line); background: linear-gradient(145deg, var(--bb-blush), var(--bb-blush)); }

.customer-app .home-hero {
  color: var(--ink);
  background:
    url("/static/assets/beauty-bee-cloud-motion.png") 112% 112% / 63% auto no-repeat,
    radial-gradient(circle at 8% 87%, rgba(var(--bb-blush-rgb), 0.66), transparent 26%),
    linear-gradient(135deg, var(--bb-powder) 0%, var(--bb-powder) 56%, var(--bb-blush) 125%);
}
.customer-app .home-hero::after { background-image: radial-gradient(rgba(255, 255, 255, .62) .7px, transparent .7px); opacity: .3; }
.customer-app .hero-copy p { color: rgba(var(--bb-ink-rgb), 0.74); font-weight: 560; }
.customer-app .hero-copy h2 em { color: var(--bb-teal); }
.customer-app .eyebrow--light,
.customer-app .text-link--light { color: var(--brown); }
.customer-app .hero-phone { border-color: rgba(255, 255, 255, .72); background: var(--bb-blush); box-shadow: 0 28px 65px rgba(var(--bb-ink-rgb), 0.24); }
.customer-app .hero-phone-media { background: linear-gradient(150deg, #ffe2d6, #e9a5a1 60%, #f0c86c); }
.customer-app .hero-chip { border-color: rgba(255, 255, 255, .72); color: var(--brown-deep); background: rgba(var(--bb-pearl-rgb), 0.78); }
.customer-app .hero-orbit { border-color: rgba(255, 255, 255, .44); }
.customer-app .template-card,
.customer-app .soft-panel,
.customer-app .brand-prompt,
.customer-app .settings-card,
.customer-app .form-section { background: rgba(var(--bb-pearl-rgb), 0.94); }

.customer-app .nav-scrim { margin: 0; padding: 0; border: 0; border-radius: 0; }
.customer-scenery { position: fixed; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.customer-cloud { position: absolute; width: clamp(330px, 36vw, 620px); opacity: .38; filter: blur(.2px); animation: customer-cloud-drift 20s ease-in-out infinite alternate; }
.customer-cloud--one { top: 9%; right: -13%; }
.customer-cloud--two { bottom: 3%; left: 8%; width: clamp(270px, 29vw, 470px); transform: scaleX(-1); animation-delay: -8s; }
.customer-bee { position: absolute; top: 19%; right: 4.5%; width: clamp(45px, 5vw, 76px); opacity: .72; filter: drop-shadow(0 8px 9px rgba(var(--bb-ink-rgb), 0.16)); animation: customer-bee-flutter 4.6s ease-in-out infinite; }
.customer-flower { position: absolute; width: 76px; aspect-ratio: 1; border: 10px solid rgba(255, 255, 255, .28); border-radius: 50%; opacity: .43; filter: blur(.2px); }
.customer-flower::after { position: absolute; inset: 25%; border-radius: 50%; background: #f2bd54; content: ""; box-shadow: 0 4px 11px rgba(94, 61, 28, .15); }
.customer-flower--pink { right: 1.8%; bottom: 7%; background: #f5aaa7; box-shadow: 0 -34px #f5aaa7, 32px -10px #f5aaa7, 20px 27px #f5aaa7, -20px 27px #f5aaa7, -32px -10px #f5aaa7; }
.customer-flower--yellow { top: 48%; left: 17%; width: 58px; background: #ffd783; box-shadow: 0 -26px #ffd783, 25px -8px #ffd783, 15px 22px #ffd783, -15px 22px #ffd783, -25px -8px #ffd783; }

@media (max-width: 900px) {
  .customer-app .nav-scrim.is-visible { background: rgba(var(--bb-ink-rgb), 0.38); }
  .customer-cloud--two, .customer-flower--yellow { display: none; }
  .customer-bee { top: 12%; right: 2%; opacity: .46; }
  .customer-flower--pink { right: -20px; bottom: 14%; transform: scale(.72); }
}

@media (max-width: 680px) {
  .customer-cloud { width: 290px; opacity: .26; }
  .customer-bee, .customer-flower { display: none; }
  .customer-app .home-hero { background-size: 100% auto, auto, auto; }
}

@keyframes customer-cloud-drift {
  from { translate: -2% 0; }
  to { translate: 3% 9px; }
}
@keyframes customer-bee-flutter {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-4deg); }
  38% { transform: translate3d(-18px, -12px, 0) rotate(5deg); }
  70% { transform: translate3d(7px, 8px, 0) rotate(-2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .customer-cloud,
  .customer-bee { animation: none; }
}

/* --------------------------------------------------------------------------
 * Beauty Bee signed-in product shell
 *
 * This final layer is deliberately authoritative. Every signed-in view uses
 * the same source art, palette, type, and responsive chrome as the approved
 * opening experience. Generated customer media still renders unchanged.
 * -------------------------------------------------------------------------- */
.customer-app {
  --paper: var(--bb-pearl);
  --paper-deep: var(--bb-powder);
  --surface: var(--bb-white);
  --surface-soft: var(--bb-powder);
  --surface-blush: var(--bb-blush);
  --ink: var(--bb-charcoal);
  --ink-soft: var(--bb-muted);
  --muted: var(--bb-muted);
  --line: var(--bb-line);
  --line-strong: var(--bb-line-strong);
  --brown: var(--bb-teal);
  --brown-deep: var(--bb-teal-hover);
  --terracotta: var(--bb-teal);
  --terracotta-dark: var(--bb-teal-hover);
  --blush: var(--bb-blush);
  --peach: var(--bb-blush);
  min-width: 320px;
  color: var(--bb-charcoal);
  background: var(--bb-pearl);
  font-family: Arial, Helvetica, sans-serif;
}

.customer-app button,
.customer-app input,
.customer-app textarea,
.customer-app select,
.customer-app h1,
.customer-app h2,
.customer-app h3,
.customer-app h4,
.customer-app strong,
.customer-app em,
.customer-app .credit-card strong,
.customer-app .avatar,
.customer-app .large-avatar,
.customer-app .billing-price strong,
.customer-app .balance-card > strong,
.customer-app .honey-phrase p,
.customer-app .generation-live-stage,
.customer-app .honey-flight-score strong {
  font-family: Arial, Helvetica, sans-serif;
}
.customer-app .view:focus { outline: 0; }

.customer-app .customer-scenery {
  background-color: var(--bb-powder);
  background-image: url("/static/assets/beauty-bee-responsive/environment-desktop-clean.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.customer-app .customer-cloud { opacity: .22; }
.customer-app .customer-flower {
  width: clamp(95px, 12vw, 190px);
  height: auto;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  object-fit: contain;
  opacity: .55;
  filter: drop-shadow(0 10px 12px rgba(58, 33, 25, .08));
}
.customer-app .customer-flower::after { content: none; }
.customer-app .customer-flower--pink { right: -2.5%; bottom: 3%; background: none; box-shadow: none; }
.customer-app .customer-flower--yellow { top: 36%; left: -2.5%; width: clamp(88px, 11vw, 175px); background: none; box-shadow: none; }

.customer-app .sidebar,
.customer-app .topbar,
.customer-app .bottom-nav {
  border-color: rgba(var(--bb-teal-rgb), 0.14);
  background: var(--bb-pearl);
  box-shadow: 0 14px 42px rgba(var(--bb-ink-rgb), 0.1);
  backdrop-filter: none;
}

.customer-app .brand-mark--bee {
  border-color: rgba(var(--bb-teal-rgb), 0.1);
  background: var(--bb-blush);
  box-shadow: 0 7px 18px rgba(var(--bb-ink-rgb), 0.12);
}
.customer-app .wordmark-text,
.customer-app .wordmark-text > span { color: var(--bb-charcoal); }
.customer-app .side-nav a:hover { color: var(--bb-charcoal); background: var(--bb-blush); }
.customer-app .side-nav a.is-active { color: var(--bb-charcoal); background: var(--bb-blush); }
.customer-app .side-nav a.is-active svg { color: var(--bb-teal); }
.customer-app .credit-card { border-color: rgba(var(--bb-teal-rgb), 0.14); background: var(--bb-blush); }
.customer-app .credit-card-icon,
.customer-app .bottom-create > span { color: var(--bb-charcoal); background: var(--bb-blush); }
.customer-app .sidebar-note { color: var(--bb-muted); font-weight: 700; }
.customer-app .avatar,
.customer-app .large-avatar { border-color: var(--bb-line); color: var(--bb-charcoal); background: var(--bb-blush); }
/* Must out-rank the themed rule directly above, which sets `background` as a
   shorthand -- that resets the size and position a photo needs to fill the
   circle, and repaints the initial the photo is meant to replace. */
.customer-app .avatar.has-photo,
.customer-app .large-avatar.has-photo {
  color: transparent;
  background-color: var(--bb-blush);
  background-position: center;
  background-size: cover;
}
.customer-app .job-pill { border-color: rgba(var(--bb-teal-rgb), 0.15); background: var(--bb-pearl); }

.customer-app .button--primary {
  border-color: var(--bb-teal);
  color: var(--bb-white);
  background: var(--bb-teal);
  box-shadow: 0 9px 22px rgba(var(--bb-ink-rgb), 0.18);
}
.customer-app .button--primary:hover:not(:disabled) { background: var(--bb-teal-hover); color: var(--bb-white); }
.customer-app .button--cream { border-color: rgba(var(--bb-teal-rgb), 0.18); color: var(--bb-charcoal); background: var(--bb-pearl); }
.customer-app .button--cream:hover:not(:disabled) { background: var(--bb-pearl); }
.customer-app .button--secondary,
.customer-app .button--quiet { border-color: rgba(var(--bb-teal-rgb), 0.2); color: var(--bb-charcoal); background: var(--bb-pearl); }
.customer-app .icon-button { border-color: rgba(var(--bb-teal-rgb), 0.18); color: var(--bb-charcoal); background: var(--bb-pearl); }
.customer-app .eyebrow,
.customer-app .text-link { color: var(--bb-teal); }

.customer-app .home-hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr);
  min-height: 570px;
  color: var(--bb-charcoal);
  background-color: #82c9e8;
  background-image: url("/static/assets/beauty-bee-cloud-motion.png");
  background-position: 118% 116%;
  background-repeat: no-repeat;
  background-size: 68% auto;
}
.customer-app .home-hero::after { content: none; }
.customer-app .hero-copy { position: relative; z-index: 3; }
.customer-app .hero-copy h2 em {
  color: var(--bb-teal);
  font-family: Arial, Helvetica, sans-serif;
  font-style: normal;
  font-weight: 900;
}
.customer-app .hero-copy p { color: var(--bb-charcoal); }
.customer-app .hero-copy .home-selected-template {
  display: inline-flex;
  max-width: 100%;
  margin: 15px 0 0;
  padding: 7px 11px;
  overflow: hidden;
  border: 1px solid rgba(var(--bb-teal-rgb), 0.2);
  border-radius: 999px;
  background: rgba(var(--bb-pearl-rgb), 0.72);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.customer-app .hero-copy .home-selected-template[hidden] { display: none; }
.customer-app .eyebrow--light,
.customer-app .text-link--light { color: var(--bb-charcoal); }
.customer-app .hero-art { min-height: 530px; }
.customer-app .customer-upload-sculpture {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  width: clamp(410px, 33vw, 460px);
  aspect-ratio: 917 / 1100;
  filter: drop-shadow(0 24px 30px rgba(var(--bb-ink-rgb), 0.16));
}
.customer-app .customer-hero-bottle { display: block; width: 100%; height: auto; }
.customer-app .customer-hero-bee {
  position: absolute;
  z-index: 2;
  top: 15%;
  left: -19%;
  width: 44%;
  height: auto;
  filter: drop-shadow(15px 17px 9px rgba(var(--bb-ink-rgb), 0.28));
}
.customer-app .customer-upload-panel {
  position: absolute;
  top: 42.4%;
  left: 13.2%;
  display: grid;
  width: 75.2%;
  height: 47.4%;
  place-content: center;
  gap: 4px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 9% / 7%;
  color: var(--bb-charcoal);
  background: transparent;
  font: inherit;
  text-align: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}
.customer-app .customer-upload-panel::after { position: absolute; inset: 4%; border: 2px solid transparent; border-radius: 9% / 7%; content: ""; pointer-events: none; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.customer-app .customer-upload-panel:hover::after,
.customer-app .customer-upload-sculpture.is-dragging .customer-upload-panel::after { border-color: rgba(var(--bb-teal-rgb), 0.4); background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 5px rgba(255,255,255,.12); }
.customer-app .customer-upload-panel:active::after { border-color: var(--bb-teal); background: rgba(255,255,255,.16); }
.customer-app .customer-upload-panel:focus-visible { outline: 4px solid var(--bb-teal); outline-offset: 5px; }
.customer-app .customer-upload-mark {
  display: flex;
  width: 58%;
  align-items: center;
  justify-self: center;
  justify-content: center;
  gap: 3%;
  margin-bottom: 2%;
}
.customer-app .customer-upload-mark svg { width: 18%; height: auto; flex: none; }
.customer-app .customer-upload-wing { width: 25%; height: auto; opacity: .9; }
.customer-app .customer-upload-wing--left { transform: scaleX(-1); }
.customer-app .customer-upload-panel strong { font-size: clamp(14px, 1.15vw, 17px); font-weight: 900; letter-spacing: -.01em; }
.customer-app .customer-upload-panel em { font-size: clamp(10px, .84vw, 12px); font-style: normal; font-weight: 700; opacity: .62; }
.customer-app .hero-benefits {
  position: absolute;
  z-index: 4;
  grid-column: 2;
  grid-row: 1;
  inset: 26px 18px 26px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}
.customer-app .hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 8px 13px;
  border-color: rgba(var(--bb-teal-rgb), 0.15);
  color: var(--bb-charcoal);
  background: rgba(var(--bb-pearl-rgb), 0.86);
  box-shadow: 0 12px 28px rgba(var(--bb-ink-rgb), 0.12), inset 0 1px rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(12px) saturate(1.12);
  backdrop-filter: blur(12px) saturate(1.12);
  font-size: 11px;
  letter-spacing: .01em;
  white-space: nowrap;
}
.customer-app .hero-chip svg { flex: none; }
.customer-app .hero-chip--one { top: 8px; right: 0; rotate: -1.5deg; }
.customer-app .hero-chip--two { right: 3%; bottom: 8px; left: auto; rotate: 1deg; }
.customer-app .hero-chip--three { top: 62px; right: -2px; rotate: 1.5deg; }
.customer-app .hero-chip--four {
  bottom: 62px;
  left: -2%;
  border-color: rgba(var(--bb-teal-rgb), 0.22);
  background: rgba(var(--bb-pearl-rgb), 0.88);
  rotate: -1deg;
}

.customer-app .template-card,
.customer-app .soft-panel,
.customer-app .brand-prompt,
.customer-app .settings-card,
.customer-app .form-section,
.customer-app .profile-card,
.customer-app .selected-template-strip,
.customer-app .template-detail,
.customer-app .video-card,
.customer-app .result-card,
.customer-app .content-card,
.customer-app .onboarding-dialog,
.customer-app .progress-card--honey,
.customer-app .honey-flight-card,
.customer-app .generation-timeline {
  border-color: rgba(var(--bb-teal-rgb), 0.14);
  background: var(--bb-pearl);
}
.customer-app .brand-prompt { background: var(--bb-blush); }
.customer-app .settings-icon,
.customer-app .brand-prompt-icon,
.customer-app .empty-state-icon,
.customer-app .onboarding-art--blush { color: var(--bb-charcoal); background: var(--bb-blush); }

.customer-app .filter-bar { padding: 12px; border: 1px solid rgba(var(--bb-teal-rgb), 0.14); border-radius: 18px; background: var(--bb-pearl); }
.customer-app .search-field,
.customer-app .template-industry-field,
.customer-app .filter-chips button,
.customer-app .content-tabs button { border-color: rgba(var(--bb-teal-rgb), 0.16); background: var(--bb-pearl); }
.customer-app .template-format-filters { border-color: rgba(var(--bb-teal-rgb), 0.16); background: var(--bb-blush); }
.customer-app .template-format-filters button { color: var(--bb-muted); }
.customer-app .template-format-filters button.is-active { color: var(--bb-pearl); background: var(--bb-teal); }
.customer-app .template-buzzing-toggle { border-color: var(--bb-teal); color: var(--bb-charcoal); background: var(--bb-blush); }
.customer-app .template-buzzing-toggle:hover,
.customer-app .template-buzzing-toggle.is-active { border-color: var(--bb-teal); background: var(--bb-blush); }
.customer-app .filter-chips button.is-active,
.customer-app .content-tabs button.is-active { border-color: var(--bb-teal); color: var(--bb-pearl); background: var(--bb-teal); }

.customer-app .template-cover,
.customer-app .selected-template-thumb,
.customer-app .detail-preview,
.customer-app .video-frame,
.customer-app .content-card-cover,
.customer-app .recent-thumb {
  background-color: #82c9e8 !important;
  background-image: url("/static/assets/beauty-bee-cloud-motion.png") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}
.customer-app .template-cover::after,
.customer-app .detail-preview::after { content: none; }
.customer-app .template-figure {
  inset: 12% 8% 6%;
  width: auto;
  height: auto;
  transform: none;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-image: url("/static/assets/beauty-bee-responsive/trimmed-shelf-safeedge.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  box-shadow: none;
}
.customer-app .template-figure::before,
.customer-app .template-shine { content: none; display: none; }
.customer-app .template-play { color: var(--bb-charcoal); background: var(--bb-blush); backdrop-filter: none; }
.customer-app .template-meta,
.customer-app .recent-row,
.customer-app .content-card-actions,
.customer-app .ledger-row { border-color: rgba(var(--bb-teal-rgb), 0.12); }

.customer-app .upload-zone { border-color: var(--bb-line); background: var(--bb-pearl); }
.customer-app .upload-zone:hover,
.customer-app .upload-zone.is-dragging { border-color: var(--bb-teal); background: var(--bb-pearl); }
.customer-app .upload-icon,
.customer-app .form-section legend span { color: var(--bb-charcoal); background: var(--bb-blush); }
.customer-app .upload-zone.has-image::after { background: rgba(var(--bb-teal-rgb), 0.58); }
.customer-app .field input,
.customer-app .field textarea,
.customer-app .input-prefix { border-color: rgba(var(--bb-teal-rgb), 0.18); background: #fffdf8; }
.customer-app .voice-options label > span { border-color: rgba(var(--bb-teal-rgb), 0.16); background: #fffdf8; }
.customer-app .voice-options input:checked + span { border-color: var(--bb-teal); background: var(--bb-blush); }

.customer-app .summary-card {
  border: 1px solid var(--bb-line);
  color: var(--bb-charcoal);
  background: var(--bb-blush);
}
.customer-app .summary-card .eyebrow,
.customer-app .summary-card .summary-line,
.customer-app .summary-card .secure-note { color: var(--bb-charcoal); }
.customer-app .summary-card .summary-line { border-color: rgba(var(--bb-teal-rgb), 0.16); }
.customer-app .summary-line--total strong { color: var(--bb-charcoal); }

.customer-app .progress-visual { color: var(--bb-charcoal); background: var(--bb-powder); }
.customer-app .progress-track span,
.customer-app .generation-progress .progress-track span { background: var(--bb-blush); }
.customer-app .generation-status { background: var(--bb-blush); }
.customer-app .generation-timeline::before { content: none; }
.customer-app .honey-phrase { background: var(--bb-pearl); }
.customer-app .honey-flight-score > span { background: var(--bb-pearl); }

.customer-app .billing-subscription-summary { background: var(--bb-pearl); }
.customer-app .billing-choice { background: var(--bb-pearl); }
.customer-app .billing-choice--featured { border-color: var(--bb-line); background: var(--bb-blush); }
.customer-app .billing-choice--topup { background: var(--bb-powder); }
.customer-app .billing-choice-badge { color: var(--bb-charcoal); background: var(--bb-blush); }
.customer-app .balance-card { border: 1px solid var(--bb-teal); color: var(--bb-charcoal); background: var(--bb-blush); }
.customer-app .balance-icon { border-color: rgba(var(--bb-teal-rgb), 0.14); color: var(--bb-charcoal); background: var(--bb-blush); }
.customer-app .balance-card > span:not(.balance-icon),
.customer-app .balance-card p,
.customer-app .balance-card small { color: var(--bb-muted); }
.customer-app .toast { border-color: rgba(var(--bb-teal-rgb), 0.16); background: var(--bb-pearl); }

/* Desktop: persistent studio rail. */
@media (min-width: 901px) {
  .customer-app .sidebar { transform: none; }
  .customer-app .menu-button,
  .customer-app .sidebar-close,
  .customer-app .bottom-nav { display: none; }
}

/* Tablet: spacious canvas with an intentional slide-out drawer. */
@media (min-width: 600px) and (max-width: 900px) {
  .customer-app .customer-scenery {
    background-image: url("/static/assets/beauty-bee-responsive/environment-tablet-clean.png");
  }
  .customer-app .bottom-nav { display: none; }
  .customer-app .main-content { padding-bottom: 58px; }
  .customer-app .home-hero { min-height: 560px; grid-template-columns: minmax(0, 1fr) minmax(270px, .72fr); }
  .customer-app .customer-upload-sculpture { right: 0; bottom: 10px; width: clamp(350px, 49vw, 435px); }
  .customer-app .hero-benefits { inset: 18px 8px 22px 0; }
  .customer-app .hero-chip--one { top: 2px; right: 0; }
  .customer-app .hero-chip--three { top: 52px; right: -2px; }
  .customer-app .hero-chip--four { bottom: 56px; left: -28%; }
  .customer-app .hero-chip--two { right: 0; bottom: 2px; left: auto; }
}

/* Narrow tablets do not have enough room for the longest chip to float between
   the upload copy and hero actions. Keep the cluster intentional by giving the
   labels their own full-width row beneath the art. */
@media (min-width: 600px) and (max-width: 799px) {
  .customer-app .hero-benefits {
    position: relative;
    inset: auto;
    display: flex;
    grid-column: 1 / -1;
    grid-row: auto;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 18px 24px;
  }
  .customer-app .hero-chip,
  .customer-app .hero-chip--one,
  .customer-app .hero-chip--two,
  .customer-app .hero-chip--three,
  .customer-app .hero-chip--four {
    position: static;
    display: inline-flex;
    rotate: 0deg;
    transform: none;
    white-space: normal;
  }
  .customer-app .hero-chip--four { flex-basis: 100%; justify-content: center; }
}

/* Phone: the same product, reflowed rather than shrunk. */
@media (max-width: 599px) {
  :root { --topbar: 73px; }
  .customer-app .customer-scenery {
    background-image: url("/static/assets/beauty-bee-responsive/environment-mobile-clean.png");
  }
  .customer-app .customer-cloud,
  .customer-app .customer-flower,
  .customer-app .customer-bee { display: none; }
  .customer-app .topbar { padding-inline: 14px; }
  .customer-app .main-content { padding: 22px 14px calc(92px + env(safe-area-inset-bottom)); }
  .customer-app .bottom-nav {
    display: grid;
    border-color: rgba(var(--bb-teal-rgb), 0.14);
    background: var(--bb-pearl);
    backdrop-filter: none;
  }
  .customer-app .bottom-nav a { color: var(--bb-muted); }
  .customer-app .bottom-nav a.is-active { color: var(--bb-teal); }
  .customer-app .home-hero { min-height: 0; grid-template-columns: 1fr; background-position: center bottom; background-size: 165% auto; }
  .customer-app .hero-copy { padding: 30px 24px 0; }
  .customer-app .hero-copy h2 { font-size: clamp(38px, 12vw, 51px); }
  .customer-app .hero-art { min-height: clamp(320px, 105vw, 432px); }
  .customer-app .customer-upload-sculpture { right: 50%; bottom: 8px; width: min(88%, 352px); transform: translateX(50%); }
  .customer-app .hero-benefits {
    position: relative;
    inset: auto;
    display: flex;
    grid-column: 1;
    grid-row: auto;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 18px 24px;
  }
  .customer-app .hero-chip,
  .customer-app .hero-chip--one,
  .customer-app .hero-chip--two,
  .customer-app .hero-chip--three,
  .customer-app .hero-chip--four {
    position: static;
    display: inline-flex;
    rotate: 0deg;
    transform: none;
    white-space: normal;
  }
  .customer-app .hero-chip--four { flex-basis: 100%; justify-content: center; }
  .customer-app .filter-bar { padding: 10px; }
  .customer-app .content-tabs { width: 100%; max-width: 100%; margin-right: 0; padding-right: 0; }
  .customer-app .reel-avatar-ready-controls { grid-template-columns: 1fr; }
  .customer-app .reel-avatar-ready-controls .button { width: 100%; }
}

@media (max-width: 390px) {
  .customer-app .home-hero { min-height: 0; }
  .customer-app .hero-art { min-height: clamp(305px, 105vw, 410px); }
  .customer-app .hero-benefits { padding-inline: 14px; }
  .customer-app .hero-chip { padding-inline: 10px; font-size: 10px; }
}

/* Closing an account. Kept visually quiet until the moment of action: the card
   is not a red panel shouting at someone reading their settings, but the button
   that ends the account is unmistakably the destructive one. */
.settings-card--danger { border-color: rgba(168, 79, 66, .28); }

.settings-card--danger .settings-icon {
  color: var(--danger);
  background: #f7dfdb;
}

.settings-card--danger form {
  display: grid;
  gap: 12px;
  max-width: 340px;
}

.button--danger {
  color: #fff;
  background: var(--danger);
  border-color: var(--danger);
}

.button--danger:hover:not(:disabled) { background: #94443a; border-color: #94443a; }

/* ------------------------------------------------------ continue as guest
   An alternative to signing up, offered after the form rather than beside it:
   creating an account is still the main path, this is the way past it. */
.auth-guest { display: grid; gap: 10px; margin-top: 20px; }
/* An explicit display beats the browser's [hidden] rule, so the block stayed on
   screen while the script believed it had hidden it. */
.auth-guest[hidden] { display: none; }
.auth-guest__rule {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px;
  align-items: center; color: var(--bb-muted);
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.auth-guest__rule::before, .auth-guest__rule::after {
  content: ""; height: 1px; background: rgba(var(--bb-blush-rgb), 0.18);
}
.auth-guest__note {
  margin: 0; color: var(--bb-muted); font-size: 11.5px; line-height: 1.45; text-align: center;
}

/* --------------------------------------------------------------------------
 * Social review and publishing
 *
 * One editorial posting sheet rather than a stack of dashboard cards. Platform
 * rows use hairline rules and the brand palette; the reel remains visible as
 * the customer reviews the exact accounts, copy, and timing they will confirm.
 * -------------------------------------------------------------------------- */
.customer-app .result-card--publish {
  overflow: hidden;
  border-color: rgba(var(--bb-teal-rgb), 0.34);
  background:
    radial-gradient(circle at 100% 0, rgba(var(--bb-blush-rgb), 0.24), transparent 34%),
    var(--bb-blush);
}
.customer-app .result-card--publish .result-card-head { align-items: flex-start; }
.customer-app .result-card--publish .result-card-head > div { display: grid; gap: 3px; }
.customer-app .result-card--publish .result-card-head h3 { font-size: 19px; letter-spacing: -.025em; }
.customer-app .result-card--publish .result-publish-status { width: fit-content; max-width: 100%; margin: -2px 0 12px; padding: 7px 10px; border: 1px solid rgba(var(--bb-teal-rgb), 0.12); border-radius: 999px; background: rgba(var(--bb-pearl-rgb), 0.76); font-size: 10px; line-height: 1.35; }
.customer-app .result-card--publish .result-publish-status strong { min-width: 0; }
.customer-app .result-card--publish > p { margin: 0 0 17px; font-size: 12px; line-height: 1.6; }
.result-publish-mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 1px solid rgba(var(--bb-teal-rgb), 0.14);
  border-radius: 50%;
  color: var(--bb-charcoal);
  background: var(--bb-blush);
}
.result-publish-mark svg { width: 18px; height: 18px; }

.publisher-loading {
  display: grid;
  min-height: 430px;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: var(--bb-muted);
  text-align: center;
}
.publisher-loading .template-skeleton { width: min(100%, 720px); height: 260px; }
.publisher-loading p { margin: 0; font-size: 12px; font-weight: 750; }

.publisher-page { width: min(100%, 1180px); margin: 0 auto; }
.publisher-heading { max-width: 760px; margin: 0 0 27px; }
.publisher-heading h2 {
  margin: 6px 0 7px;
  color: var(--bb-charcoal);
  font-size: clamp(35px, 5vw, 52px);
  line-height: .98;
  letter-spacing: -.055em;
}
.publisher-heading > p { max-width: 680px; margin: 0; color: var(--bb-muted); font-size: 13px; line-height: 1.65; }
.publisher-layout {
  display: grid;
  grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}
.publisher-preview {
  position: sticky;
  top: calc(var(--topbar) + 20px);
  min-width: 0;
}
.publisher-video-frame {
  overflow: hidden;
  width: min(100%, 330px);
  aspect-ratio: 9 / 16;
  padding: 8px;
  border: 1px solid rgba(var(--bb-teal-rgb), 0.18);
  border-radius: 18px;
  background: var(--bb-pearl);
  box-shadow: 0 18px 48px rgba(var(--bb-ink-rgb), 0.13);
}
.publisher-video-frame video,
.publisher-video-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 11px;
  background: var(--bb-teal);
}
.publisher-video-frame .template-figure { display: block; height: 100%; }
.publisher-preview-caption { display: grid; gap: 3px; padding: 14px 5px 0; }
.publisher-preview-caption > span {
  color: var(--bb-teal);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.publisher-preview-caption strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.publisher-preview-caption small { color: var(--bb-muted); font-size: 12px; line-height: 1.45; }

.publisher-sheet {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(var(--bb-teal-rgb), 0.2);
  border-top: 4px solid var(--bb-teal);
  border-radius: 18px;
  background: var(--bb-pearl);
  box-shadow: 0 20px 55px rgba(var(--bb-ink-rgb), 0.12);
}
.publisher-section { margin: 0; padding: 25px clamp(19px, 3.4vw, 34px); border: 0; border-top: 1px solid rgba(var(--bb-teal-rgb), 0.13); }
.publisher-section--intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; border-top: 0; }
.publisher-section h3 { margin: 4px 0 3px; font-size: 23px; letter-spacing: -.035em; }
.publisher-section p { margin: 0; color: var(--bb-muted); font-size: 12.5px; line-height: 1.55; }
.publisher-save-state { min-width: 88px; color: var(--bb-muted); font-size: 12px; font-weight: 800; text-align: right; }

.publisher-setup-notice {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  margin: 20px 24px 0;
  padding: 13px 15px;
  border: 1px solid rgba(var(--bb-teal-rgb), 0.24);
  border-radius: 12px;
  color: var(--bb-muted);
  background: var(--bb-blush);
}
.publisher-setup-notice > svg { width: 18px; height: 18px; margin-top: 1px; color: var(--bb-teal); }
.publisher-setup-notice p { display: grid; gap: 2px; margin: 0; font-size: 12px; line-height: 1.5; }
.publisher-setup-notice strong { color: var(--bb-charcoal); }
.publisher-history-summary {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  margin: 0 clamp(19px, 3.4vw, 34px) 8px;
  padding: 12px 14px;
  border: 1px solid rgba(89, 111, 72, .22);
  border-radius: 12px;
  color: var(--bb-muted);
  background: #eef3e8;
}
.publisher-history-summary > svg {
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 50%;
  color: #fffdf8;
  background: var(--bb-muted);
}
.publisher-history-summary p { display: grid; gap: 2px; margin: 0; line-height: 1.45; }
.publisher-history-summary strong { color: var(--bb-charcoal); font-size: 12.5px; }
.publisher-history-summary span { font-size: 12px; }

.publisher-platform-list { padding: 0 clamp(19px, 3.4vw, 34px) 10px; }
.publisher-platform {
  padding: 18px 0;
  border-top: 1px solid rgba(var(--bb-teal-rgb), 0.14);
}
.publisher-platform.is-unavailable { color: var(--bb-muted); }
.publisher-platform-topline { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 18px; }
.publisher-platform-choice { display: flex; min-width: 0; align-items: center; gap: 11px; }
label.publisher-platform-choice { cursor: pointer; }
.publisher-platform-choice > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.publisher-check {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border: 1.5px solid rgba(var(--bb-teal-rgb), 0.36);
  border-radius: 6px;
  color: transparent;
  background: #fffdf8;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.publisher-check svg { width: 13px; height: 13px; stroke-width: 2.5; }
.publisher-check-placeholder { width: 22px; height: 22px; flex: 0 0 22px; }
.publisher-platform-choice > input:checked + .publisher-check { border-color: var(--bb-teal); color: var(--bb-charcoal); background: var(--bb-blush); }
.publisher-platform-choice > input:focus-visible + .publisher-check { outline: 3px solid var(--bb-teal); outline-offset: 3px; }
.publisher-platform-choice > input:disabled + .publisher-check { border-color: rgba(var(--bb-teal-rgb), 0.14); background: var(--bb-powder); }
.publisher-platform-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid rgba(var(--bb-teal-rgb), 0.14);
  border-radius: 50%;
  color: var(--bb-charcoal);
  background: var(--bb-pearl);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}
.publisher-platform-mark--instagram { background: var(--bb-blush); }
.publisher-platform-mark--facebook { color: #fff; background: var(--bb-teal); }
.publisher-platform-mark--threads { color: #fff; background: var(--bb-teal); }
.publisher-platform-mark--tiktok { color: #fff; background: var(--bb-teal); }
.publisher-platform-mark--pinterest { color: #fff; background: var(--bb-teal); }
.publisher-platform-mark--youtube { color: #fff; background: var(--bb-teal); font-size: 11px; }
.publisher-platform-mark--x { color: #fff; background: var(--bb-teal); font-size: 12px; }
.publisher-platform-name { display: grid; min-width: 0; gap: 1px; }
.publisher-platform-name strong { overflow: hidden; color: var(--bb-charcoal); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.publisher-platform-name small { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 7px; color: var(--bb-muted); font-size: 12px; font-weight: 700; }
.publisher-posted-label { display: inline-flex; align-items: center; gap: 3px; color: var(--bb-muted); font-weight: 850; }
.publisher-posted-label svg { width: 12px; height: 12px; padding: 2px; border-radius: 50%; color: #fffdf8; background: var(--bb-muted); }
.publisher-platform-account { display: flex; min-width: 0; max-width: 48%; justify-content: flex-end; }
.publisher-platform-account-stack { display: grid; min-width: 0; justify-items: end; gap: 5px; }
.publisher-identity { display: flex; min-width: 0; align-items: center; gap: 7px; color: var(--bb-muted); font-size: 12px; font-weight: 760; text-align: right; }
.publisher-identity img { width: 27px; height: 27px; flex: 0 0 27px; border: 1px solid rgba(var(--bb-teal-rgb), 0.14); border-radius: 50%; object-fit: cover; }
.publisher-identity span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.publisher-identity--missing { color: var(--bb-muted); }
.publisher-connect { display: inline-flex; min-height: 44px; align-items: center; gap: 5px; color: var(--bb-charcoal); font-size: 12px; font-weight: 820; text-decoration: none; }
button.publisher-connect { padding: 0; border: 0; background: transparent; cursor: pointer; }
button.publisher-connect:disabled { cursor: wait; opacity: .62; }
.publisher-connect:hover,
.publisher-connect:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.publisher-connect:focus-visible { border-radius: 4px; outline: 3px solid var(--bb-teal); outline-offset: 3px; }
.publisher-option--nested { margin-left: 24px; }
.publisher-settings-policy { grid-column: 1 / -1; margin: 2px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.publisher-settings-policy a { color: var(--bb-teal); font-weight: 750; text-underline-offset: 2px; }
.publisher-connect svg { width: 13px; height: 13px; }
.publisher-repeat-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(var(--bb-teal-rgb), 0.3);
  border-radius: 999px;
  color: var(--bb-charcoal);
  background: var(--bb-blush);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}
.publisher-repeat-button > span { font-size: 17px; font-weight: 700; line-height: 1; }
.publisher-repeat-button:hover:not(:disabled) { border-color: var(--bb-teal); background: var(--bb-blush); }
.publisher-repeat-button:focus-visible { outline: 3px solid var(--bb-teal); outline-offset: 3px; }
.publisher-repeat-button:disabled { color: var(--bb-muted); border-color: rgba(var(--bb-teal-rgb), 0.13); background: var(--bb-powder); cursor: not-allowed; }
.publisher-destination select {
  width: min(250px, 100%);
  min-height: 44px;
  padding: 7px 31px 7px 10px;
  border: 1px solid rgba(var(--bb-teal-rgb), 0.18);
  border-radius: 9px;
  color: var(--bb-charcoal);
  background: #fffdf8;
  font-size: 12px;
  font-weight: 720;
}
.publisher-platform-note { margin: 7px 0 0 68px; color: var(--bb-muted); font-size: 12px; line-height: 1.5; }
.publisher-platform-note--cost { color: var(--bb-teal); font-weight: 760; }
.publisher-platform-editor { display: grid; gap: 13px; margin: 16px 0 0 68px; }
.publisher-platform-editor[hidden],
.publisher-schedule-fields[hidden] { display: none; }
.publisher-copy-field { display: grid; gap: 6px; }
.publisher-copy-field > span { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.publisher-copy-field > span strong { color: var(--bb-muted); font-size: 12px; }
.publisher-copy-field output { color: var(--bb-muted); font-size: 12px; font-weight: 720; }
.publisher-copy-field textarea,
.publisher-copy-field input,
.publisher-mini-field input,
.publisher-mini-field select,
.publisher-mini-field textarea {
  width: 100%;
  border: 1px solid rgba(var(--bb-teal-rgb), 0.19);
  border-radius: 10px;
  outline: 0;
  color: var(--bb-charcoal);
  background: #fffdf8;
}
.publisher-copy-field textarea { min-height: 126px; resize: vertical; padding: 12px 13px; font-size: 14px; line-height: 1.62; }
.publisher-copy-field input,
.publisher-mini-field input,
.publisher-mini-field select,
.publisher-mini-field textarea { min-height: 42px; padding: 9px 11px; font-size: 14px; }
.publisher-mini-field textarea { min-height: 82px; resize: vertical; line-height: 1.5; }
.publisher-copy-field textarea:focus,
.publisher-copy-field input:focus,
.publisher-mini-field input:focus,
.publisher-mini-field select:focus,
.publisher-mini-field textarea:focus,
.publisher-destination select:focus { border-color: var(--bb-teal); box-shadow: 0 0 0 3px rgba(var(--bb-ink-rgb), 0.2); }
.publisher-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; padding-top: 2px; }
.publisher-option { display: flex; min-height: 44px; align-items: flex-start; gap: 8px; padding: 10px; border-left: 2px solid var(--bb-line); color: var(--bb-muted); background: var(--bb-pearl); font-size: 12px; line-height: 1.45; cursor: pointer; }
.publisher-option input { width: 16px; height: 16px; flex: 0 0 16px; margin: 0; accent-color: var(--bb-teal); }
.publisher-option input:disabled + span { opacity: .55; }
.publisher-option > span { display: grid; gap: 2px; }
.publisher-option small { color: var(--bb-muted); font-size: 12px; line-height: 1.4; }
.publisher-mini-field { display: grid; gap: 5px; }
.publisher-mini-field--wide { grid-column: 1 / -1; }
.publisher-mini-field > span { color: var(--bb-muted); font-size: 12px; font-weight: 760; }
.publisher-consent-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0;
  padding: 10px 12px;
  border-top: 1px solid rgba(var(--bb-teal-rgb), 0.12);
  color: var(--bb-muted);
  font-size: 12px;
  line-height: 1.5;
}
.publisher-consent-note svg { width: 13px; height: 13px; flex: 0 0 13px; margin-top: 1px; color: var(--bb-teal); }

.publisher-location-unsupported {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0;
  padding: 10px 12px;
  border-left: 2px solid rgba(var(--bb-teal-rgb), 0.18);
  color: var(--bb-muted);
  background: rgba(255, 253, 248, .72);
  font-size: 12px;
  line-height: 1.5;
}
.publisher-location-policy {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  padding: 14px clamp(19px, 3.4vw, 34px) 18px;
  border-top: 1px solid rgba(var(--bb-teal-rgb), 0.13);
  color: var(--bb-muted);
  background: var(--bb-pearl);
  font-size: 12px;
  line-height: 1.5;
}
.publisher-location-policy > svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 1px; color: var(--bb-teal); }
.publisher-location-policy > span { display: grid; gap: 2px; }
.publisher-location-policy strong { color: var(--bb-charcoal); }
.publisher-location-unsupported svg,
.publisher-location-selected svg,
.publisher-location-summary svg { width: 14px; height: 14px; flex: 0 0 14px; margin-top: 1px; color: var(--bb-teal); }
.publisher-location { display: grid; gap: 9px; padding-top: 2px; }
.publisher-location-toggle { border-left-color: var(--bb-teal); }
.publisher-location-search { display: grid; gap: 8px; padding: 10px 12px 12px; border-left: 2px solid var(--bb-teal); background: var(--bb-pearl); }
.publisher-location-search[hidden] { display: none; }
.publisher-location-selected { display: flex; align-items: flex-start; gap: 7px; margin: 0; color: var(--bb-muted); font-size: 12px; line-height: 1.45; }
.publisher-location-selected span { display: grid; gap: 1px; }
.publisher-location-selected strong { color: var(--bb-charcoal); }
.publisher-location-query { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.publisher-location-query input {
  min-width: 0;
  min-height: 41px;
  padding: 9px 11px;
  border: 1px solid rgba(var(--bb-teal-rgb), 0.19);
  border-radius: 9px;
  outline: 0;
  color: var(--bb-charcoal);
  background: #fffdf8;
  font-size: 13px;
}
.publisher-location-query input:focus { border-color: var(--bb-teal); box-shadow: 0 0 0 3px rgba(var(--bb-ink-rgb), 0.2); }
.publisher-location-query .button { min-height: 41px; padding-inline: 13px; }
.publisher-location-results { display: grid; border-top: 1px solid rgba(var(--bb-teal-rgb), 0.13); }
.publisher-location-results button {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  width: 100%;
  min-height: 44px;
  padding: 9px 2px;
  border: 0;
  border-bottom: 1px solid rgba(var(--bb-teal-rgb), 0.11);
  color: var(--bb-charcoal);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.publisher-location-results button:hover,
.publisher-location-results button:focus-visible { color: var(--bb-teal); background: var(--bb-pearl); outline: 0; }
.publisher-location-results button:focus-visible { box-shadow: inset 0 0 0 2px rgba(var(--bb-ink-rgb), 1); }
.publisher-location-results svg { width: 14px; height: 14px; margin-top: 1px; color: var(--bb-teal); }
.publisher-location-results span { display: grid; gap: 2px; }
.publisher-location-results strong { font-size: 12px; }
.publisher-location-results small { color: var(--bb-muted); font-size: 12px; line-height: 1.4; }
.publisher-location-error { margin: 0; color: #934238; font-size: 12px; font-weight: 740; line-height: 1.45; }

.publisher-schedule legend { display: grid; gap: 4px; width: 100%; padding: 0; }
.publisher-schedule legend strong { color: var(--bb-charcoal); font-size: 20px; letter-spacing: -.025em; }
.publisher-timing-options { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 17px; border: 1px solid rgba(var(--bb-teal-rgb), 0.18); border-radius: 12px; }
.publisher-timing-options label { min-width: 0; cursor: pointer; }
.publisher-timing-options label + label { border-left: 1px solid rgba(var(--bb-teal-rgb), 0.18); }
.publisher-timing-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.publisher-timing-options label > span { display: grid; min-height: 83px; grid-template-columns: 24px minmax(0, 1fr); align-content: center; gap: 1px 9px; padding: 14px; background: #fffdf8; }
.publisher-timing-options label:first-child > span { border-radius: 11px 0 0 11px; }
.publisher-timing-options label:last-child > span { border-radius: 0 11px 11px 0; }
.publisher-timing-options svg { width: 19px; height: 19px; grid-row: 1 / span 2; color: var(--bb-teal); }
.publisher-timing-options strong { font-size: 14px; }
.publisher-timing-options small { color: var(--bb-muted); font-size: 12px; line-height: 1.4; }
.publisher-timing-options input:checked + span { background: var(--bb-blush); box-shadow: inset 0 0 0 2px rgba(var(--bb-ink-rgb), 1); }
.publisher-timing-options input:focus-visible + span { outline: 3px solid var(--bb-teal); outline-offset: 2px; }
.publisher-schedule-fields { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(0, 1.2fr); align-items: end; gap: 16px; margin-top: 16px; padding: 15px; border-left: 3px solid var(--bb-line); background: var(--bb-pearl); }
.publisher-schedule-fields > p { display: flex; align-items: flex-start; gap: 6px; padding-bottom: 8px; }
.publisher-schedule-fields > p svg { width: 14px; height: 14px; flex: 0 0 14px; }

.publisher-confirm { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(235px, .88fr); gap: 24px; padding: 27px clamp(19px, 3.4vw, 34px); border-top: 1px solid rgba(var(--bb-teal-rgb), 0.16); background: var(--bb-blush); }
.publisher-review-copy { display: grid; align-content: start; gap: 4px; }
.publisher-review-copy > strong { margin-top: 3px; color: var(--bb-charcoal); font-size: 17px; }
.publisher-review-copy > p { margin: 0; color: var(--bb-muted); font-size: 12px; line-height: 1.5; }
.publisher-timing-summary { display: flex; align-items: center; gap: 6px; margin-top: 7px !important; color: var(--bb-charcoal) !important; font-weight: 790; }
.publisher-timing-summary svg,
.publisher-truth-note svg { width: 14px; height: 14px; flex: 0 0 14px; }
.publisher-truth-note { display: flex; align-items: flex-start; gap: 6px; margin-top: 7px !important; color: var(--bb-teal) !important; }
.publisher-location-summary { display: flex; align-items: flex-start; gap: 6px; margin-top: 7px !important; color: var(--bb-muted) !important; }
.publisher-validation-note { margin-top: 7px !important; color: var(--bb-teal) !important; font-weight: 760; }
.publisher-confirm-action { display: grid; align-content: start; gap: 7px; }
.publisher-confirm-action > small { color: var(--bb-muted); font-size: 12px; line-height: 1.45; text-align: center; }
.publisher-action-error { min-height: 0; margin: 0; color: #934238; font-size: 12px; font-weight: 740; line-height: 1.45; }
.publisher-action-error:empty { display: none; }

.publisher-layout--receipt { padding-top: 14px; }
.publisher-receipt { padding: clamp(24px, 4vw, 38px); }
.publisher-receipt-heading { display: grid; justify-items: start; }
.publisher-receipt-heading .ready-mark { display: grid; width: 44px; height: 44px; margin-bottom: 14px; place-items: center; border-radius: 50%; color: var(--bb-charcoal); background: var(--bb-blush); }
.publisher-receipt-heading .ready-mark svg { width: 20px; height: 20px; }
.publisher-receipt-heading h2 { margin: 5px 0 6px; font-size: clamp(29px, 4vw, 42px); line-height: 1; letter-spacing: -.05em; }
.publisher-receipt-heading > p { margin: 0; color: var(--bb-muted); font-size: 13px; line-height: 1.55; }
.publisher-receipt-list { margin-top: 24px; border-top: 1px solid rgba(var(--bb-teal-rgb), 0.15); }
.publisher-receipt-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; min-height: 66px; border-bottom: 1px solid rgba(var(--bb-teal-rgb), 0.13); }
.publisher-receipt-row > div { display: grid; min-width: 0; }
.publisher-receipt-row > div strong { font-size: 13px; }
.publisher-receipt-row > div small { overflow: hidden; color: var(--bb-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.publisher-receipt-row > a { color: var(--bb-charcoal); font-size: 12px; font-weight: 800; }
.publisher-delivery-status { padding: 6px 8px; border-radius: 999px; color: var(--bb-muted); background: var(--bb-pearl); font-size: 12px; font-weight: 820; }
.publisher-page .button { min-height: 44px; font-size: 12px; }
.publisher-delivery-status.is-success { color: #34503b; background: #e7f2e8; }
.publisher-delivery-status.is-scheduled { color: var(--bb-charcoal); background: var(--bb-blush); }
.publisher-delivery-status.is-failed { color: #934238; background: #f7dfdb; }
.publisher-delivery-status.is-private,
.publisher-delivery-status.is-handoff { color: var(--bb-muted); background: var(--bb-blush); }
.publisher-receipt-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }

@media (max-width: 820px) {
  .publisher-layout { grid-template-columns: 230px minmax(0, 1fr); }
  .publisher-preview { position: static; }
  .publisher-video-frame { width: 230px; }
  .publisher-platform-topline { align-items: flex-start; flex-direction: column; gap: 8px; }
  .publisher-platform-account { width: 100%; max-width: none; justify-content: flex-start; padding-left: 68px; }
  .publisher-platform-account-stack { width: 100%; justify-items: start; }
  .publisher-identity { text-align: left; }
  .publisher-confirm { grid-template-columns: 1fr; }
  .publisher-schedule-fields { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .publisher-heading { margin-bottom: 21px; }
  .publisher-heading h2 { font-size: 39px; }
  .publisher-layout { grid-template-columns: 1fr; }
  .publisher-preview { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: end; gap: 14px; }
  .publisher-video-frame { width: 150px; border-radius: 14px; }
  .publisher-preview-caption { padding: 0 0 6px; }
  .publisher-section--intro { align-items: flex-start; flex-direction: column; }
  .publisher-save-state { min-width: 0; text-align: left; }
  .publisher-settings { grid-template-columns: 1fr; }
}

@media (max-width: 599px) {
  .publisher-page .job-back { margin-bottom: 14px; }
  .publisher-heading > p { font-size: 13px; }
  .publisher-preview { grid-template-columns: 112px minmax(0, 1fr); }
  .publisher-video-frame { width: 112px; padding: 5px; }
  .publisher-sheet { border-radius: 14px; }
  .publisher-section { padding: 21px 16px; }
  .publisher-platform-list { padding-inline: 16px; }
  .publisher-history-summary { margin-inline: 16px; }
  .publisher-location-policy { padding-inline: 16px; }
  .publisher-platform { padding-block: 16px; }
  .publisher-platform-choice { width: 100%; }
  .publisher-platform-name strong { white-space: normal; }
  .publisher-platform-account { padding-left: 0; }
  .publisher-repeat-button { width: 100%; }
  .publisher-platform-editor { margin-left: 0; }
  .publisher-platform-note { margin-left: 0; }
  .publisher-destination { width: 100%; }
  .publisher-destination select { width: 100%; }
  .publisher-copy-field textarea,
  .publisher-copy-field input,
  .publisher-mini-field input,
  .publisher-mini-field select,
  .publisher-mini-field textarea,
  .publisher-destination select,
  .publisher-location-query input { font-size: 16px; }
  .publisher-location-query { grid-template-columns: 1fr; }
  .publisher-location-query label { min-width: 0; }
  .publisher-location-query input,
  .publisher-location-query .button { width: 100%; min-height: 44px; }
  .publisher-page .button { font-size: 14px; }
  .publisher-timing-options { grid-template-columns: 1fr; }
  .publisher-timing-options label + label { border-top: 1px solid rgba(var(--bb-teal-rgb), 0.18); border-left: 0; }
  .publisher-timing-options label:first-child > span { border-radius: 11px 11px 0 0; }
  .publisher-timing-options label:last-child > span { border-radius: 0 0 11px 11px; }
  .publisher-confirm { grid-template-columns: 1fr; padding: 23px 16px; }
  .publisher-confirm-action { position: sticky; z-index: 4; bottom: calc(75px + env(safe-area-inset-bottom)); padding: 10px; border: 1px solid rgba(var(--bb-teal-rgb), 0.16); border-radius: 12px; background: var(--bb-pearl); box-shadow: 0 12px 30px rgba(var(--bb-ink-rgb), 0.16); }
  .publisher-receipt { padding: 22px 16px; }
  .publisher-receipt-row { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .publisher-receipt-row > a { grid-column: 2 / -1; padding-bottom: 8px; }
  .publisher-delivery-status { max-width: 105px; text-align: center; }
  .publisher-receipt-actions { display: grid; }
  .publisher-receipt-actions .button { width: 100%; }
}

/* My AI Twin — a first-class working surface inside the customer studio. */
.twin-page-intro > div { min-width: 0; }
.twin-page-intro > .button { flex: 0 0 auto; }

.showcase-free-twin-demo {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  margin: 0 0 22px;
  padding: 16px 18px;
  border: 1px solid rgba(var(--bb-teal-rgb), 0.24);
  border-radius: 20px;
  color: var(--bb-charcoal);
  background: linear-gradient(115deg, var(--bb-blush), var(--bb-blush) 60%, var(--bb-powder));
  box-shadow: 0 16px 36px rgba(var(--bb-ink-rgb), 0.1);
}
.showcase-free-twin-demo__icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  color: var(--bb-charcoal);
  background: rgba(255, 253, 248, .72);
}
.showcase-free-twin-demo__icon svg { width: 22px; height: 22px; }
.showcase-free-twin-demo strong { display: block; font-size: 14px; }
.showcase-free-twin-demo p { margin: 4px 0 0; font-size: 10px; line-height: 1.55; }
.showcase-free-twin-demo .button { white-space: nowrap; }

.twin-page-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(310px, .72fr);
  align-items: start;
  gap: 22px;
}

.twin-page-primary { display: grid; align-content: start; min-width: 0; gap: 22px; }

.twin-page-stage {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: clamp(17px, 2.2vw, 26px);
  border: 1px solid rgba(var(--bb-teal-rgb), 0.15);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 8%, rgba(var(--bb-blush-rgb), 0.68), transparent 31%),
    linear-gradient(145deg, var(--bb-pearl) 0%, var(--bb-pearl) 52%, var(--bb-powder) 100%);
  box-shadow: 0 24px 64px rgba(var(--bb-ink-rgb), 0.13);
}

.twin-page-stage__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.twin-page-stage__head h3 {
  margin: 5px 0 0;
  font-size: clamp(19px, 2.2vw, 28px);
  letter-spacing: -.035em;
  line-height: 1.08;
}

.twin-page-stage__head .twin-status { flex: 0 0 auto; margin-top: 2px; }

.twin-turntable--page {
  width: 100%;
  min-height: 0;
  height: clamp(470px, 58vh, 640px);
  border-color: rgba(var(--bb-teal-rgb), 0.13);
  border-radius: 23px;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, .96), transparent 37%),
    linear-gradient(180deg, var(--bb-powder) 0%, var(--bb-pearl) 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, .9), 0 16px 42px rgba(65, 87, 97, .12);
}

.twin-turntable--page img,
.twin-turntable--page .twin-wardrobe-preview-canvas { height: 100%; }

.twin-page-turntable-help {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 12px 3px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.twin-page-sidebar { display: grid; min-width: 0; gap: 16px; }
.twin-page-overview { border-top: 5px solid var(--bb-teal); }
.twin-page-overview > h3 { margin: 13px 0 8px; font-size: clamp(22px, 2.3vw, 30px); letter-spacing: -.04em; line-height: 1.08; }
.twin-page-overview > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.twin-page-actions { display: grid; gap: 9px; margin-top: 20px; }
.twin-page-new-note { margin: -1px 4px 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.twin-page-default { margin-top: 17px; padding-top: 16px; border-top: 1px solid var(--line); }

.showcase-free-twin-note {
  display: grid;
  gap: 3px;
  margin: 0 0 15px;
  padding: 11px 12px;
  border: 1px solid rgba(var(--bb-ink-rgb), 0.38);
  border-radius: 13px;
  color: var(--bb-pearl);
  background: rgba(var(--bb-blush-rgb), 0.12);
  font-size: 10px;
  line-height: 1.4;
}
.showcase-free-twin-note strong { color: var(--bb-teal); font-size: 11px; }

.twin-page-readiness .settings-card-heading { margin-bottom: 15px; }
.twin-page-readiness ol { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.twin-page-readiness li { display: grid; grid-template-columns: 29px minmax(0, 1fr); align-items: center; gap: 10px; padding: 11px 10px; border: 1px solid transparent; border-radius: 13px; }
.twin-page-readiness__marker { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--bb-muted); background: #fffdf8; font-size: 11px; font-weight: 800; line-height: 1; }
.twin-page-readiness__marker svg { grid-area: 1 / 1; width: 14px; height: 14px; }
.twin-page-readiness__pending-dot { grid-area: 1 / 1; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .35; }
.twin-page-readiness__complete-icon { display: none; }
.twin-page-readiness li strong,
.twin-page-readiness li small { display: block; }
.twin-page-readiness li strong { font-size: 11px; }
.twin-page-readiness li small { margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.twin-page-readiness li.is-complete .twin-page-readiness__marker { border-color: #6f8d72; color: #34503b; background: #e7f2e8; }
.twin-page-readiness li.is-complete .twin-page-readiness__pending-dot { display: none; }
.twin-page-readiness li.is-complete .twin-page-readiness__complete-icon { display: block; }
.twin-page-readiness li.is-current { border-color: rgba(var(--bb-teal-rgb), 0.45); background: var(--bb-blush); }
.twin-page-readiness li.is-current .twin-page-readiness__marker { border-color: var(--bb-teal); color: var(--bb-charcoal); background: var(--bb-blush); }
.twin-page-readiness li.is-current .twin-page-readiness__pending-dot { width: 9px; height: 9px; opacity: 1; box-shadow: 0 0 0 4px rgba(var(--bb-ink-rgb), 0.13); }

.twin-page-looks__head { display: grid; grid-template-columns: 41px minmax(0, 1fr) auto; }
.twin-page-looks__head > span:last-child { padding: 6px 9px; border-radius: 999px; color: var(--bb-muted); background: var(--bb-pearl); font-size: 10px; font-weight: 800; }
.twin-page-looks-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.twin-page-look { display: grid; min-width: 0; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; color: inherit; background: #fffdf8; font: inherit; text-align: left; cursor: pointer; }
.twin-page-look.is-active { border-color: rgba(var(--bb-teal-rgb), 0.7); background: var(--bb-blush); box-shadow: inset 0 0 0 1px rgba(var(--bb-ink-rgb), 0.24); }
.twin-page-look.is-previous { background: var(--bb-pearl); }
.twin-page-look.is-selected { outline: 3px solid var(--bb-teal); outline-offset: 2px; }
.twin-page-look:focus-visible { outline: 3px solid var(--bb-teal); outline-offset: 2px; }
.twin-page-look__icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; color: var(--bb-charcoal); background: var(--bb-blush); }
.twin-page-look__icon svg { width: 18px; height: 18px; }
.twin-page-look strong,
.twin-page-look small { display: block; overflow: hidden; }
.twin-page-look strong { text-overflow: ellipsis; white-space: nowrap; }
.twin-page-look strong { font-size: 11px; text-transform: capitalize; }
.twin-page-look small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.35; text-transform: capitalize; }
.twin-page-look__active { padding: 5px 7px; border-radius: 999px; color: var(--bb-charcoal); background: #e7f2e8; font-size: 8px; font-weight: 820; text-transform: uppercase; }
.twin-page-look-empty { display: grid; min-height: 95px; grid-column: 1 / -1; place-content: center; padding: 20px; border: 1px dashed var(--line-strong); border-radius: 15px; color: var(--muted); text-align: center; }
.twin-page-look-empty strong { color: var(--ink); font-size: 12px; }
.twin-page-look-empty small { margin-top: 3px; font-size: 9px; }

.twin-page-privacy { display: flex; align-items: flex-start; gap: 16px; background: linear-gradient(145deg, var(--bb-blush), var(--bb-blush)); }
.twin-page-privacy__icon { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; border: 1px solid rgba(var(--bb-teal-rgb), 0.12); border-radius: 15px; color: var(--bb-charcoal); background: var(--bb-blush); }
.twin-page-privacy__icon svg { width: 21px; height: 21px; }
.twin-page-privacy h3 { margin: 7px 0 7px; font-size: 20px; letter-spacing: -.035em; }
.twin-page-privacy p { margin: 0; color: var(--bb-muted); font-size: 11px; line-height: 1.6; }
.twin-page-privacy a { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--bb-charcoal); font-size: 10px; font-weight: 800; text-decoration: none; }
.twin-page-privacy a:hover { text-decoration: underline; text-underline-offset: 3px; }
.twin-page-privacy a svg { width: 13px; height: 13px; }

@media (max-width: 1120px) {
  .twin-page-workspace { grid-template-columns: minmax(0, 1fr) 330px; }
  .twin-turntable--page { height: clamp(440px, 54vh, 590px); }
}

@media (max-width: 900px) {
  .twin-page-workspace { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .twin-page-primary,
  .twin-page-sidebar { display: contents; }
  .twin-page-stage { grid-column: 1 / -1; grid-row: 1; }
  .twin-page-overview { grid-column: 1; grid-row: 2; }
  .twin-page-readiness { grid-column: 2; grid-row: 2; }
  .twin-page-looks { grid-column: 1 / -1; grid-row: 3; }
  .twin-page-privacy { grid-column: 1 / -1; grid-row: 4; }
  .twin-turntable--page { height: min(610px, 68vh); }
}

@media (max-width: 680px) {
  .showcase-free-twin-demo {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 14px;
  }
  .showcase-free-twin-demo__icon { width: 42px; height: 42px; }
  .showcase-free-twin-demo .button { width: 100%; grid-column: 1 / -1; }
  .twin-page-workspace { grid-template-columns: 1fr; gap: 16px; }
  .twin-page-intro > .button { width: 100%; margin-top: 17px; }
  .twin-page-stage { padding: 14px; border-radius: 22px; }
  .twin-page-stage__head { align-items: flex-start; }
  .twin-page-stage__head h3 { font-size: 20px; }
  .twin-page-stage { grid-column: 1; grid-row: 1; }
  .twin-page-overview { grid-column: 1; grid-row: 2; }
  .twin-page-readiness { grid-column: 1; grid-row: 3; }
  .twin-page-looks { grid-column: 1; grid-row: 4; }
  .twin-page-privacy { grid-column: 1; grid-row: 5; }
  .twin-turntable--page,
  .twin-turntable--page img,
  .twin-turntable--page .twin-wardrobe-preview-canvas { height: 430px; }
  .twin-page-looks-grid { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .twin-page-stage__head { flex-direction: column; gap: 9px; }
  .twin-turntable--page,
  .twin-turntable--page img,
  .twin-turntable--page .twin-wardrobe-preview-canvas { height: 370px; }
  .twin-page-looks__head { grid-template-columns: 41px minmax(0, 1fr); }
  .twin-page-looks__head > span:last-child { grid-column: 2; width: fit-content; }
  .twin-page-look { grid-template-columns: 36px minmax(0, 1fr); }
  .twin-page-look__active { grid-column: 2; width: fit-content; }
  .twin-page-privacy { flex-direction: column; }
}

/* Template selection stays within the current customer page. */
.home-create-dialog.is-template-first #home-create-progress { display: none; }
.template-choices-dialog { width: min(1120px, calc(100% - 28px)); padding: 30px; }
.template-choices-heading { padding-right: 30px; margin-bottom: 24px; }
.template-choices-heading h2 { margin: 8px 0; }
.template-choices-heading p { color: var(--bb-muted); font-size: 13px; }
.template-choices-dialog #create-form { padding: 0; }
.selected-template-thumb img { width: 100%; height: 100%; object-fit: cover; }
#reel-avatar-look-field[hidden], #reel-avatar-preview[hidden] { display: none; }
.reel-avatar-preview { width: min(100%, 180px); height: 220px; object-fit: contain; border: 1px solid var(--line); border-radius: 14px; background: var(--bb-pearl); }
.reel-avatar-ready-controls { flex-wrap: wrap; align-items: flex-start; }
@media (max-width: 600px) { .template-choices-dialog { padding: 24px 16px; } }

.trending-coming-soon .studio-buzzing-card { background: var(--bb-powder); }
.trending-coming-soon .studio-buzzing-card__shade { background: linear-gradient(transparent 45%, var(--bb-teal)); }
.trending-coming-soon .studio-buzzing-nav { display: none; }

.twin-page-look__photo { width: 44px; height: 64px; flex: none; object-fit: contain; border-radius: 7px; background: var(--bb-pearl); }
.twin-page-look-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; min-width: 0; }
.twin-page-look-item > .twin-page-look { width: 100%; }
.twin-delete-button { min-height: 44px; padding: 8px; border: 0; border-radius: 8px; color: var(--bb-muted); background: transparent; font: inherit; font-size: 11px; cursor: pointer; }
.twin-delete-button:hover { color: var(--bb-charcoal); background: var(--bb-blush); }
.twin-delete-button:focus-visible { outline: 3px solid var(--bb-teal); outline-offset: 2px; }
.twin-delete-button:disabled { opacity: .5; cursor: wait; }
.twin-page-delete-bin { margin-top: 28px; }
.twin-delete-bin-dialog { width: min(620px, calc(100% - 28px)); padding: 24px; overflow: hidden; }
.twin-delete-bin-dialog[open] { display: flex; flex-direction: column; gap: 16px; }
.twin-delete-bin-heading { display: flex; align-items: flex-start; gap: 16px; flex: none; }
.twin-delete-bin-heading > div { flex: 1; min-width: 0; }
.twin-delete-bin-heading h2 { margin: 0 0 8px; font: inherit; font-size: 22px; font-weight: 800; }
.twin-delete-bin-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.twin-delete-bin-heading .icon-button { flex: none; width: 44px; height: 44px; }
#twin-page-delete-bin-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
body:has(#twin-delete-bin-dialog[open]) { overflow: hidden; }
.twin-trash-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.twin-trash-item > img, .twin-trash-item__placeholder { width: 48px; height: 64px; object-fit: contain; border-radius: 8px; background: var(--bb-pearl); }
.twin-trash-item__placeholder { display: grid; place-items: center; }
.twin-trash-item__placeholder svg { width: 22px; height: 22px; }
.twin-trash-item strong, .twin-trash-item small { display: block; overflow-wrap: anywhere; }
.twin-trash-item strong { font-size: 13px; }
.twin-trash-item small, .twin-trash-empty { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; }
@media (max-width: 480px) {
  .twin-trash-item { grid-template-columns: 40px minmax(0, 1fr); }
  .twin-trash-item > img, .twin-trash-item__placeholder { width: 40px; height: 56px; }
  .twin-trash-item > button { grid-column: 2; justify-self: start; }
}
