:root {
  --canvas: var(--mm-color-canvas);
  --surface: var(--mm-color-surface);
  --surface-raised: var(--mm-color-surface-raised);
  --surface-subtle: var(--mm-color-surface-soft);
  --border: var(--mm-color-border);
  --disabled: var(--mm-color-disabled);
  --text-primary: var(--mm-color-text);
  --text-secondary: var(--mm-color-text-muted);
  --brand-accent: var(--mm-color-brand);
  --action-primary: var(--mm-color-action);
  --action-bright: var(--mm-color-action-hover);
  --status-progress: var(--mm-color-progress);
  --status-info: var(--mm-color-info);
  --status-success: var(--mm-color-success);
  --status-warning: var(--mm-color-warning);
  --status-error: var(--mm-color-danger);
  --focus-visible: var(--mm-color-focus);

  --surface-soft: var(--surface-subtle);
  --text: var(--text-primary);
  --primary: var(--brand-accent);
  --primary-strong: var(--action-primary);
  --primary-hover: var(--action-bright);
  --positive: var(--status-success);
  --danger: var(--status-error);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;

  /* Pastel campaign-state palette: light surfaces with dark, non-colour labels. */
  --campaign-all-pastel: #eee8ff;
  --campaign-all-ink: #392672;
  --campaign-progress-pastel: #dceeff;
  --campaign-progress-ink: #173f66;
  --campaign-review-pastel: #fff0c7;
  --campaign-review-ink: #67480b;
  --campaign-complete-pastel: #dff4df;
  --campaign-complete-ink: #24502a;

  --brand: var(--action-primary);
  --brand-dark: var(--text-primary);
  --brand-soft: var(--surface-subtle);
  --accent: var(--status-success);
  --ink: var(--text-primary);
  --muted: var(--text-secondary);
  --bg: var(--canvas);
  --line: var(--border);
  --warning: var(--status-warning);
  --warning-bg: #2b251b;
  --error: var(--status-error);
  --error-bg: #2d1d22;
  --success-bg: #182820;
  --focus: var(--focus-visible);
  color: var(--text-primary);
  background: var(--canvas);
}

html,
body {
  color: var(--text-primary);
  background: var(--canvas);
}

body {
  background-image: radial-gradient(circle at 12% 10%, rgb(109 74 255 / 16%), transparent 32rem);
  font-family: Poppins, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html.is-embedded,
html.is-embedded body,
html.is-embedded #app {
  background: transparent;
  background-image: none;
}

.prototype-frame,
.phone-screen,
.phone-mock .screen,
.phone-mock .screen-body {
  color: var(--text-primary);
  background: var(--canvas);
}

.phone-mock {
  width: 390px;
  height: 844px;
  padding: 18px 12px 22px;
  background: var(--surface-subtle);
  border: 0;
  border-radius: 48px;
  box-shadow: 0 28px 80px rgb(0 0 0 / 42%);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border: 1px solid rgb(53 64 85 / 72%);
  border-radius: 39px;
}

.phone-speaker,
.phone-home,
.phone-side i {
  background: var(--surface-soft);
}

.mobile-topbar,
.bottom-nav,
.phone-mock .sticky-actions,
.card,
.field input,
.field textarea,
.field select,
.choice,
.site-row,
.creation-card,
.metric,
.provider-card,
.profile-summary,
.workspace-tabs button,
.filter-chips button,
.stage-tabs button,
.button.secondary,
.button.textual,
.settings,
.settings button,
dialog,
.user-menu button {
  color: var(--text-primary);
  background: var(--surface);
  border-color: var(--border);
}

.phone-mock .mobile-topbar {
  position: sticky;
  top: 0;
  z-index: 19;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-2);
  min-height: 74px;
  padding: 18px 20px var(--space-2);
  background: rgb(11 13 18 / 96%);
  border-bottom: 1px solid rgb(53 64 85 / 60%);
  backdrop-filter: blur(14px);
}

.mobile-topbar b {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -.03em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-topbar .topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-1);
}

.mobile-topbar .assistant-trigger {
  color: var(--brand-accent);
  background: transparent;
  border-color: transparent;
}

.mobile-topbar .assistant-trigger:hover {
  background: var(--surface-raised);
  border-color: var(--border);
}

.screen[data-page="CHATBOT"] .chatbot-blank {
  min-height: 0;
}

.phone-mock .screen-body {
  padding: 18px 20px 24px;
}

.phone-mock .screen-body .stack {
  gap: var(--space-2);
}

.phone-mock .screen-body .lead {
  margin: var(--space-2) 0 var(--space-4);
}

h1 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.12;
  letter-spacing: -.035em;
}

h2 { font-size: 1.15rem; line-height: 1.25; }
h3 { font-size: .96rem; }

.eyebrow {
  margin: 0 0 var(--space-1);
  color: var(--action-primary);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .13em;
}

.lead {
  color: var(--text-secondary);
  font-size: .92rem;
  line-height: 1.55;
}

.mobile-topbar,
.bottom-nav,
.phone-mock .sticky-actions,
.settings button,
.faq-item[open] summary {
  border-color: var(--border);
}

.rating button,
.check-list label,
.destination button,
.map-group button,
.sheet {
  color: var(--text-primary);
  background: var(--surface);
  border-color: var(--border);
}

.mobile-topbar b,
.eyebrow,
.button.secondary,
.button.textual,
.section-heading button,
.map-group b {
  color: var(--brand-accent);
}

.lead,
.supporting,
.card p,
.site-row small,
.creation-card span,
.profile-summary span,
.provider-card p,
.user-menu small,
.document-copy p {
  color: var(--text-secondary);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 0;
  color: var(--text-primary);
  background: var(--surface);
  border-color: var(--border);
  border-radius: 50%;
}

.icon-button:hover {
  color: var(--text-primary);
  background: var(--surface-raised);
}

.button {
  min-height: 48px;
  padding: 11px 16px;
  color: var(--brand-accent);
  background: rgb(167 139 250 / 8%);
  border: 1px solid var(--brand-accent);
  border-radius: 14px;
  font-weight: 700;
}

.button.primary {
  color: var(--text-primary);
  background: var(--action-primary);
  border-color: var(--action-primary);
  box-shadow: 0 8px 22px rgb(109 74 255 / 24%);
}

.button.primary:hover,
.button.primary:active {
  color: var(--text-primary);
  background: var(--action-primary);
  box-shadow: 0 10px 28px rgb(109 74 255 / 36%);
}

.button.secondary {
  color: var(--brand-accent);
  background: rgb(167 139 250 / 8%);
  border-color: var(--brand-accent);
}

.button.secondary:hover {
  background: rgb(167 139 250 / 14%);
}

.button.textual {
  color: var(--brand-accent);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.button.secondary:hover,
.button.textual:hover,
.site-row:hover,
.user-menu button:hover {
  background: var(--surface-raised);
}

.card.selected,
.creation-card.selected,
.workspace-tabs button.active,
.filter-chips button.active,
.stage-tabs button.active {
  color: var(--text-primary);
  background: rgb(167 139 250 / 12%);
  border-color: var(--brand-accent);
}

.card,
.creation-card,
.profile-summary,
.provider-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

button.card,
button.creation-card,
.site-row {
  width: 100%;
  color: var(--text-primary);
  text-align: left;
}

.card h3,
.card p { margin: 0; }
.card p { margin-top: 5px; font-size: .8rem; line-height: 1.45; }

.card.selected,
.creation-card.selected {
  box-shadow: inset 0 0 0 1px var(--brand-accent);
}

.site-row {
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.metric {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.field {
  gap: var(--space-1);
  color: var(--text-primary);
  font-size: .78rem;
  font-weight: 650;
}

.field input,
.field textarea,
.field select {
  min-height: 48px;
  padding: 12px 14px;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.field textarea { min-height: 126px; }

.field select {
  appearance: none;
  padding-right: 48px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%),
    linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.choice,
.check-list label {
  min-height: 48px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.choice span { font-size: .78rem; line-height: 1.45; }

.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.choice input {
  appearance: none;
  flex: 0 0 20px;
  display: grid;
  place-content: center;
  width: 20px;
  min-width: 20px;
  max-width: 20px;
  height: 20px;
  min-height: 20px;
  max-height: 20px;
  margin: 0;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 5px;
}

.choice input[type="radio"] { border-radius: 50%; }

.choice input::before {
  content: "";
  width: 11px;
  height: 8px;
  background: var(--text-primary);
  clip-path: polygon(0 45%, 15% 28%, 40% 58%, 85% 0, 100% 16%, 42% 100%);
  transform: scale(0);
}

.choice input[type="radio"]::before {
  width: 9px;
  height: 9px;
  clip-path: none;
  border-radius: 50%;
}

.choice input:checked {
  background: var(--action-primary);
  border-color: var(--action-primary);
}

.choice input:checked::before { transform: scale(1); }

.bottom-nav button {
  min-height: 48px;
  color: var(--text-secondary);
  background: transparent;
  border: 0;
  border-radius: 10px;
}

.bottom-nav button.active,
.bottom-nav button[aria-current="page"] {
  color: var(--brand-accent);
  background: rgb(167 139 250 / 12%);
}

.bottom-nav {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  min-height: auto;
  padding: 10px 20px 14px;
  background: rgb(18 22 32 / 96%);
  border-top: 1px solid var(--border);
  box-shadow: 0 -12px 30px rgb(0 0 0 / 22%);
  backdrop-filter: blur(14px);
}

.phone-mock .sticky-actions {
  gap: var(--space-2);
  padding: 12px 20px 14px;
  background: rgb(18 22 32 / 96%);
  border-top: 1px solid var(--border);
  box-shadow: 0 -12px 30px rgb(0 0 0 / 22%);
  backdrop-filter: blur(14px);
}

.bottom-nav .nav-icon,
.mobile-topbar .nav-icon {
  display: block;
  stroke: currentColor;
  opacity: 1;
  visibility: visible;
}

.thumb,
.pose,
.likeness,
.camera,
.video {
  color: var(--text-secondary);
  background: repeating-linear-gradient(135deg, var(--surface-raised), var(--surface-raised) 10px, var(--surface-subtle) 10px, var(--surface-subtle) 20px);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}

.avatar,
.state-illustration {
  color: var(--brand-accent);
  background: var(--surface-raised);
}

.notice {
  padding: 14px;
  color: var(--text-primary);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.notice.success {
  background: var(--success-bg);
  border-color: var(--status-success);
}

.notice.warning {
  background: var(--warning-bg);
  border-color: var(--status-warning);
}

.notice.error {
  background: var(--error-bg);
  border-color: var(--status-error);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 5px 9px;
  color: var(--text-secondary);
  background: var(--surface-subtle);
  border-radius: 99px;
  font-size: .7rem;
  font-weight: 650;
}

.status::before {
  content: "";
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
}

.status.success { color: var(--status-success); background: var(--success-bg); }
.status.warning { color: var(--status-warning); background: var(--warning-bg); }

.progress,
.timeline {
  background: var(--surface-subtle);
}

.progress span { background: var(--status-progress); }

.rating button.selected {
  color: var(--text-primary);
  background: var(--action-primary);
  border-color: var(--brand-accent);
}

.metric {
  text-align: center;
  background: var(--surface);
}

.metric strong {
  display: block;
  font-size: 1.15rem;
}

.metric span {
  color: var(--text-secondary);
  font-size: .67rem;
}

.play {
  color: var(--text-primary);
  background: var(--action-primary);
  box-shadow: 0 8px 24px rgb(109 74 255 / 28%);
}

.hero-mark,
.provider-card > b,
.capture {
  color: var(--text-primary);
  background: var(--action-primary);
}

.choice input,
.check-list input {
  accent-color: var(--action-primary);
}

.menu-icon {
  color: var(--brand-accent);
  background: rgb(167 139 250 / 12%);
}

.user-menu {
  gap: var(--space-1);
}

.user-menu button {
  min-height: 60px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

dialog {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 28px 80px rgb(0 0 0 / 42%);
}

.interaction-toast {
  color: var(--text-primary);
  background: var(--surface-raised);
  border-color: var(--brand-accent);
}

.ai-badge {
  color: var(--text-primary);
  background: rgb(11 13 18 / 94%);
  border: 1px solid var(--border);
}

button:focus-visible,
summary:focus-visible {
  outline: var(--mm-focus-ring-width) solid var(--focus-visible);
  outline-offset: var(--mm-focus-ring-offset);
}

button:disabled,
input:disabled,
textarea:disabled,
select:disabled {
  color: var(--disabled);
  opacity: .72;
}

@media (max-width: 430px) {
  #app {
    min-height: 100vh;
    padding: 10px;
  }
  .phone-mock {
    width: min(390px, calc(100vw - 20px));
    height: min(844px, calc(100vh - 20px));
    min-height: 620px;
    padding: 18px 12px 22px;
    border: 0;
    border-radius: 42px;
    box-shadow: 0 18px 48px rgb(0 0 0 / 42%);
  }
  .phone-screen {
    width: 100%;
    height: 100%;
    border: 1px solid rgb(53 64 85 / 72%);
    border-radius: 30px;
  }

  .phone-speaker,
  .phone-home { display: block; }

  .phone-side { display: grid; }
}

/* Use the approved dark-concept device shell without changing screen content. */
.phone-mock.mm-mobile-shell {
  width: min(430px, 100%);
  height: 884px;
  min-height: 0;
  padding: 20px;
  overflow: hidden;
  background: #050609;
  border: 1px solid #2b2e37;
  border-radius: 58px;
  box-shadow: var(--mm-shadow-elevated);
}

.phone-mock.mm-mobile-shell .phone-screen {
  width: 100%;
  height: 100%;
  border: 1px solid rgb(53 64 85 / 60%);
  border-radius: 39px;
}

@media (max-width: 430px) {
  #app { padding: 0; }

  .phone-mock.mm-mobile-shell {
    width: 100%;
    height: 884px;
    min-height: 620px;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .phone-mock.mm-mobile-shell .phone-screen {
    border-inline: 0;
    border-radius: 0;
  }
}

@media (max-width: 360px) {
  .phone-mock.mm-mobile-shell {
    height: 100vh;
    max-height: none;
  }

  .phone-mock.mm-mobile-shell .phone-screen { border: 0; }
}

/* Bounded application layout: one scroll region with persistent controls. */
.prototype-frame {
  width: min(100%, 520px);
  min-height: 100vh;
  margin-inline: auto;
  background: transparent;
  border: 0;
  box-shadow: none;
}

#app {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px 12px 40px;
}

.phone-mock.mm-mobile-shell .phone-screen {
  position: relative;
  display: block;
  overflow: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.phone-mock.mm-mobile-shell .phone-screen::-webkit-scrollbar { display: none; }

.phone-mock .screen {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.phone-mock .screen:focus { outline: none; }

.phone-mock .mobile-topbar,
.phone-mock .sticky-actions,
.phone-mock .bottom-nav {
  flex: 0 0 auto;
}

.phone-mock .mobile-topbar {
  position: relative;
  top: auto;
}

.phone-mock .screen-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.phone-mock .screen-body:focus-visible { outline-offset: -3px; }

.phone-mock .sticky-actions {
  position: relative;
  inset: auto;
  display: grid;
  width: 100%;
  transform: none;
  z-index: 8;
}

.phone-mock .bottom-nav {
  position: sticky;
  inset: auto 0 0;
  width: 100%;
  z-index: 10;
}

.phone-mock .screen:has(.sticky-actions) .screen-body,
.phone-mock .screen:has(.bottom-nav) .screen-body {
  padding-bottom: 20px;
}

.phone-screen.modal-open::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 40;
  background: rgb(0 0 0 / 64%);
}

.phone-screen > dialog {
  position: absolute;
  inset: 12px;
  z-index: 50;
  width: calc(100% - 24px);
  max-width: none;
  max-height: calc(100% - 24px);
  margin: auto;
  overflow: auto;
  overscroll-behavior: contain;
}

.phone-screen > dialog::backdrop { background: transparent; }

@media (max-width: 430px) {
  .prototype-frame,
  #app { min-height: 100vh; }

  #app { padding: 0; }
}

/* Keep the complete rounded device and screen outlines above edge-to-edge UI. */
.phone-mock.mm-mobile-shell {
  background-clip: padding-box;
  isolation: isolate;
}

.phone-mock.mm-mobile-shell .phone-screen {
  isolation: isolate;
  background-clip: padding-box;
}

.phone-mock.mm-mobile-shell .phone-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  border: 1px solid rgb(53 64 85 / 72%);
  border-radius: inherit;
}

@media (max-width: 430px) {
  .phone-mock.mm-mobile-shell .phone-screen::before {
    border-inline: 0;
  }
}

@media (max-width: 360px) {
  .phone-mock.mm-mobile-shell .phone-screen::before { border: 0; }
}

/* Embedded case-study views crop exactly to the canonical phone shell.
   This removes the browser iframe canvas without adding presentation chrome. */
html.is-embedded,
html.is-embedded body,
html.is-embedded .prototype-frame,
html.is-embedded #app {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

html.is-embedded .phone-mock.mm-mobile-shell {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 20px;
  border: 1px solid #2b2e37;
  border-radius: 58px;
  box-shadow: none;
}

html.is-embedded .phone-mock.mm-mobile-shell .phone-screen {
  border: 1px solid rgb(53 64 85 / 60%);
  border-radius: 39px;
}

html.is-embedded .mm-mobile-shell-speaker { display: block; }

/* Browser review refinements. */
body {
  background: var(--canvas);
  background-image: none;
}

.bottom-nav button.active,
.bottom-nav button[aria-current="page"] {
  color: #fff;
  background: var(--action-primary);
  box-shadow: 0 8px 20px rgb(109 74 255 / 26%);
}

.bottom-nav button.active:hover,
.bottom-nav button[aria-current="page"]:hover {
  color: #fff;
  background: var(--action-bright);
}

/* Dark-concept semantic color utilization. */
.mobile-topbar {
  background: var(--mm-color-header-backdrop);
}

.bottom-nav,
.phone-mock .sticky-actions {
  background: var(--mm-color-footer-backdrop);
}

.card,
.site-row,
.creation-card,
.profile-summary,
.provider-card,
.metric,
.settings,
.settings button,
.field input,
.field textarea,
.field select,
.choice,
.workspace-tabs button,
.filter-chips button,
.stage-tabs button,
.user-menu button {
  color: var(--text-primary);
  background: var(--surface);
  border-color: var(--border);
}

.site-row:hover,
.creation-card:hover,
.settings button:hover,
.user-menu button:hover {
  background: var(--surface-raised);
}

.button.primary {
  color: var(--text-primary);
  background: var(--action-primary);
  border-color: var(--action-primary);
  box-shadow: 0 8px 22px var(--mm-color-action-shadow);
}

.button.secondary,
.button.textual,
.section-heading button {
  color: var(--brand-accent);
}

.button.secondary {
  background: var(--mm-color-brand-tint-subtle);
  border-color: var(--brand-accent);
}

.workspace-tabs button.active,
.workspace-tabs button[aria-current="page"] {
  color: var(--canvas);
  background: var(--brand-accent);
  border-color: var(--brand-accent);
}

.filter-chips button.active,
.stage-tabs button.active,
.creation-card.selected,
.card.selected {
  color: var(--text-primary);
  background: var(--mm-color-brand-tint);
  border-color: var(--brand-accent);
}

.progress {
  background: var(--surface-subtle);
}

.progress span {
  background: var(--status-progress);
}

.status.success {
  color: var(--status-success);
  background: var(--mm-color-success-tint);
  border: 1px solid rgb(111 159 135 / 24%);
}

.status.warning {
  color: var(--status-warning);
  background: var(--mm-color-warning-tint);
  border: 1px solid rgb(184 154 98 / 30%);
}

.notice {
  background: var(--surface-subtle);
  border-color: var(--border);
}

.notice.success {
  color: var(--text-primary);
  background: var(--mm-color-success-tint);
  border-color: var(--status-success);
}

.notice.warning {
  color: var(--text-primary);
  background: var(--mm-color-warning-tint);
  border-color: var(--status-warning);
}

.notice.error {
  color: var(--text-primary);
  background: rgb(189 126 136 / 10%);
  border-color: var(--status-error);
}

.screen[data-page="HOME"] .section-block:nth-of-type(2) .site-row {
  background: var(--mm-color-warning-tint);
  border-color: rgb(184 154 98 / 30%);
}

.screen[data-page="PRODUCT01"] .notice {
  background: var(--mm-color-brand-tint-subtle);
  border-color: rgb(167 139 250 / 28%);
}

.choice input:checked {
  background: var(--action-primary);
  border-color: var(--action-primary);
}

.menu-icon,
.avatar,
.state-illustration {
  color: var(--brand-accent);
  background: var(--mm-color-brand-tint);
}

/* Production UI behavior applied across the complete screen inventory. */
.bottom-nav button {
  display: grid;
  grid-template-rows: 26px auto;
  place-items: center;
  align-content: center;
  gap: 3px;
  min-width: 44px;
  min-height: 58px;
  padding: 6px 4px;
  font-size: .68rem;
  font-weight: 650;
  line-height: 1;
}

.bottom-nav button span {
  display: block;
  font-size: inherit;
  line-height: 1;
}

.bottom-nav button .nav-icon {
  width: 24px;
  height: 24px;
}

.bottom-nav button.active,
.bottom-nav button[aria-current="page"] {
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 12%), 0 8px 20px var(--mm-color-action-shadow);
}

.screen-body {
  scroll-padding-block: 18px;
}

.screen-body:focus-visible {
  outline: var(--mm-focus-ring-width) solid var(--focus-visible);
  outline-offset: -3px;
}

.card,
.site-row,
.creation-card,
.settings button,
.user-menu button,
.button,
.icon-button,
.workspace-tabs button,
.filter-chips button,
.stage-tabs button {
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.site-row:active,
.creation-card:active,
.settings button:active,
.user-menu button:active,
.button:active,
.icon-button:active {
  transform: scale(.985);
}

.site-row:focus-visible,
.creation-card:focus-visible,
.card:focus-visible {
  border-color: var(--focus-visible);
}

.field input:hover,
.field textarea:hover,
.field select:hover {
  border-color: var(--mm-color-interaction-border);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  background: var(--surface-raised);
  border-color: var(--mm-color-interaction-border);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--disabled);
}

.button:disabled,
.icon-button:disabled,
.site-row:disabled,
.creation-card:disabled {
  color: var(--disabled);
  cursor: not-allowed;
  opacity: .72;
  box-shadow: none;
}

.screen[data-page="ACCOUNT11"] .sticky-actions .button.primary {
  background: var(--status-error);
  border-color: var(--status-error);
  box-shadow: 0 8px 22px rgb(189 126 136 / 20%);
}

.screen[data-page="PRODUCT05"] .progress,
.screen[data-page="SETUP03"] .progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
}

.interaction-toast {
  border-color: var(--brand-accent);
  box-shadow: 0 12px 28px rgb(0 0 0 / 38%);
}

@media (max-width: 350px) {
  .bottom-nav { padding-inline: 10px; }
  .bottom-nav button { font-size: .62rem; }
}

.personality-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.personality-card {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text-primary);
  text-align: left;
}

.personality-card img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center top;
}

.personality-card span {
  display: grid;
  gap: 3px;
  padding: 12px;
}

.personality-card small {
  color: var(--text-secondary);
  font-size: .72rem;
}

.personality-card:last-child {
  grid-column: 1 / -1;
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .site-row,
  .creation-card,
  .settings button,
  .user-menu button,
  .button,
  .icon-button,
  .workspace-tabs button,
  .filter-chips button,
  .stage-tabs button {
    transition: none;
  }
}

/* Replicated dark-concept homepage content and hierarchy. */
.screen[data-page="HOME"] .screen-body > .eyebrow,
.screen[data-page="HOME"] .screen-body > h1,
.screen[data-page="HOME"] .screen-body > .lead {
  display: none;
}

.screen[data-page="HOME"] .screen-body > .stack {
  gap: 24px;
}

.home-hero {
  display: grid;
  gap: 12px;
}

.home-hero h2 {
  margin: 0;
  font-size: 1.875rem;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.home-hero > p:not(.eyebrow) {
  margin: 0;
  color: var(--text-secondary);
  font-size: .875rem;
  line-height: 1.55;
}

.home-progress,
.home-work-card {
  min-width: 0;
  padding: 17px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.section-row > * { min-width: 0; }

.section-row h3,
.home-progress h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.overline {
  margin: 0 0 4px;
  color: var(--brand-accent);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.progress-value {
  flex: 0 0 auto;
  color: var(--status-progress);
  font-size: 1.25rem;
  font-weight: 800;
}

.home-progress-track,
.home-compact-progress {
  height: 7px;
  margin: 14px 0 10px;
  overflow: hidden;
  background: var(--surface-subtle);
  border-radius: 999px;
}

.home-progress-track span,
.home-compact-progress span {
  display: block;
  height: 100%;
  background: var(--status-progress);
  border-radius: inherit;
}

.home-progress-track span { width: 70%; }

.home-section {
  display: grid;
  gap: 11px;
}

.text-action {
  min-height: 44px;
  padding: 0 4px;
  color: var(--brand-accent);
  background: transparent;
  border: 0;
  font-size: .75rem;
  font-weight: 750;
}

.home-attention-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 76px;
  padding: 12px;
  color: var(--text-primary);
  text-align: left;
  background: var(--mm-color-warning-tint);
  border: 1px solid rgb(184 154 98 / 30%);
  border-radius: 18px;
}

.home-ugc-thumb {
  flex: 0 0 auto;
  width: 48px;
  height: 56px;
  object-fit: cover;
  object-position: center 24%;
  filter: saturate(.78) contrast(.96);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.home-card-copy {
  display: grid;
  flex: 1;
  gap: 5px;
  min-width: 0;
}

.home-card-copy small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.status-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.warning { background: var(--status-warning); }

.chevron {
  flex: 0 0 auto;
  color: var(--text-secondary);
  font-size: 1.75rem;
}

.home-work-card-top {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.home-work-card-top > div {
  display: grid;
  flex: 1;
  gap: 4px;
  min-width: 0;
}

.home-work-card-top small { color: var(--text-secondary); }

.home-product-thumb {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--canvas);
  background: var(--status-progress);
  border-radius: 14px;
  font-size: .8rem;
  font-weight: 850;
}

.home-work-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: .75rem;
  line-height: 1.5;
}

@media (max-width: 350px) {
  .home-hero h2 { font-size: 1.65rem; }
  .home-work-card-top { align-items: flex-start; flex-wrap: wrap; }
}

/* Active navigation uses the primary action colour, not secondary brand lavender. */
.bottom-nav button.active,
.bottom-nav button[aria-current="page"] {
  color: var(--action-primary);
  background: rgb(109 74 255 / 14%);
  box-shadow: inset 0 0 0 1px var(--action-primary);
}

.bottom-nav button.active:hover,
.bottom-nav button[aria-current="page"]:hover {
  color: var(--action-bright);
  background: rgb(109 74 255 / 18%);
}

/* Active navigation is communicated by icon and label colour only. */
.bottom-nav button.active,
.bottom-nav button.selected,
.bottom-nav button[aria-current="page"],
.bottom-nav button.active:hover,
.bottom-nav button.selected:hover,
.bottom-nav button[aria-current="page"]:hover {
  color: var(--action-primary);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.phone-mock .bottom-nav button.active .nav-icon,
.phone-mock .bottom-nav button.selected .nav-icon,
.phone-mock .bottom-nav button[aria-current="page"] .nav-icon {
  color: var(--mm-color-action);
  stroke: var(--mm-color-action);
}

.phone-mock .bottom-nav button.active span,
.phone-mock .bottom-nav button.selected span,
.phone-mock .bottom-nav button[aria-current="page"] span {
  color: var(--mm-color-action);
}

/* Replicated dark-concept Product Overview workspace. */
.screen[data-page="PRODUCT01"] .screen-body > .eyebrow,
.screen[data-page="PRODUCT01"] .screen-body > h1,
.screen[data-page="PRODUCT01"] .screen-body > .lead {
  display: none;
}

.product-overview-content { gap: 24px; }

.product-identity {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.product-image {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  height: 124px;
  color: var(--canvas);
  background: var(--brand-accent);
  border-radius: 22px;
}

.product-image span { font-size: 1.875rem; font-weight: 850; }
.product-image small { font-size: .58rem; font-weight: 750; }

.identity-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.identity-copy h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.identity-copy p {
  margin: 0;
  color: var(--text-secondary);
  font-size: .78rem;
  line-height: 1.5;
}

.source-pill {
  color: var(--brand-accent);
  font-size: .58rem;
  font-weight: 850;
  letter-spacing: .1em;
}

.status-dot.success { background: var(--status-success); }

.next-card {
  display: grid;
  grid-template-columns: minmax(96px, 116px) minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  padding: 14px;
  background: var(--mm-color-brand-tint-subtle);
  border: 1px solid rgb(167 139 250 / 28%);
  border-radius: 22px;
}

.next-card > div { min-width: 0; }
.next-card h3 { margin: 0; font-size: 1rem; line-height: 1.35; }
.next-card p { margin: 5px 0 0; color: var(--text-secondary); font-size: .75rem; line-height: 1.5; }
.next-card .button { grid-column: 1 / -1; }

.video-preview {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 154px;
  margin: 0;
  overflow: hidden;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.video-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: saturate(.82) contrast(.97);
}

.video-preview .ai-badge {
  right: auto;
  bottom: 7px;
  left: 7px;
  max-width: calc(100% - 14px);
  padding: 4px 6px;
  overflow: hidden;
  font-size: .46rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
}

.play-control {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--text-primary);
  background: rgb(11 13 18 / 76%);
  border: 1px solid rgb(247 248 252 / 28%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.step-count {
  flex: 0 0 auto;
  color: var(--text-secondary);
  font-size: .68rem;
}

.step-list {
  display: grid;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}

.step-list li {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  min-height: 58px;
}

.step-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 31px;
  left: 15px;
  width: 2px;
  height: 27px;
  background: var(--border);
}

.step-list li > span {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: .68rem;
  font-weight: 800;
}

.step-list li.complete > span {
  color: var(--status-progress);
  background: var(--mm-color-progress-tint);
  border-color: rgb(95 157 147 / 32%);
}

.step-list li.current > span {
  color: var(--canvas);
  background: var(--brand-accent);
  border-color: var(--brand-accent);
}

.step-list li > div {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding-top: 3px;
}

.step-list b { font-size: .8rem; }
.step-list small { color: var(--text-secondary); font-size: .68rem; }

.configuration-card {
  min-width: 0;
  padding: 17px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.configuration-card dl {
  display: grid;
  margin: 13px 0 0;
}

.configuration-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  padding: 11px 0;
  border-top: 1px solid var(--border);
}

.configuration-card dt { color: var(--text-secondary); font-size: .75rem; }
.configuration-card dd { margin: 0; font-size: .75rem; font-weight: 700; text-align: right; }

@media (max-width: 350px) {
  .product-identity { grid-template-columns: 84px minmax(0, 1fr); }
  .product-image { height: 104px; }
  .next-card { grid-template-columns: 1fr; }
  .video-preview { height: 220px; }
  .next-card .button { grid-column: 1; }
}

/* Product progress uses a horizontal mobile stepper. */
.product-progress .step-list {
  display: grid;
  grid-auto-columns: minmax(124px, 1fr);
  grid-auto-flow: column;
  gap: 0;
  margin-top: 16px;
  padding: 0 0 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scrollbar-width: thin;
}

.product-progress .step-list li {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 32px auto;
  align-content: start;
  gap: 9px;
  min-height: 112px;
  padding-right: 14px;
  scroll-snap-align: start;
}

.product-progress .step-list li:not(:last-child)::after {
  top: 15px;
  left: 32px;
  width: calc(100% - 32px);
  height: 2px;
}

.product-progress .step-list li > div {
  gap: 4px;
  padding: 0;
}

.product-progress .step-list li > div b,
.product-progress .step-list li > div small {
  display: block;
  max-width: 110px;
}

/* Contain Product Overview content within the mobile viewport. */
.screen[data-page="PRODUCT01"] .screen-body,
.screen[data-page="PRODUCT01"] .screen-body > .stack,
.product-overview-content {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.product-overview-content {
  overflow-x: clip;
}

.product-overview-content > *,
.product-identity > *,
.next-card > *,
.configuration-card,
.product-progress {
  min-width: 0;
  max-width: 100%;
}

.product-overview-content .workspace-tabs,
.product-progress .step-list {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overscroll-behavior-inline: contain;
}

.product-overview-content .workspace-tabs {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
}

.next-card {
  width: 100%;
  overflow: hidden;
}

.next-card > div,
.next-card > div p,
.next-card .button {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.next-card .button {
  width: 100%;
  justify-self: stretch;
}

.product-progress {
  overflow: hidden;
}

.configuration-card dl,
.configuration-card dl div {
  width: 100%;
}

/* Selected workspace tab uses a solid primary fill. */
.product-overview-content .workspace-tabs button.active,
.product-overview-content .workspace-tabs button[aria-current="page"] {
  color: var(--canvas);
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  box-shadow: none;
}

.product-overview-content .workspace-tabs button.active:hover,
.product-overview-content .workspace-tabs button[aria-current="page"]:hover {
  color: var(--canvas);
  background: var(--brand-accent);
  border-color: var(--brand-accent);
}

.mobile-topbar .account-avatar {
  color: var(--brand-accent);
  background: transparent;
  border-color: var(--border);
}

.mobile-topbar .account-avatar span {
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .02em;
}

.mobile-topbar .account-avatar:hover {
  color: var(--brand-accent);
  background: var(--surface-raised);
  border-color: var(--border);
}

/* Search fields use a persistent leading search affordance. */
.screen[data-page="ACCOUNT07"] .field:first-child input,
.screen[data-page="SUPPORT01"] .field:first-child input,
.screen[data-page="SUPPORT06"] .field:first-child input {
  padding-left: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23aeb7c8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px 50%;
  background-size: 20px 20px;
}

/* Reusable low-resolution media set: two existing creator images plus two new assets. */
.product-image {
  background-color: var(--surface-raised);
  background-image: url("assets/hydrating-serum-product-v1.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.product-image span,
.product-image small {
  opacity: 0;
}

.screen[data-page="SINGLE02"] .product .thumb,
.screen[data-page="SINGLE03"] .photo-grid .thumb {
  color: transparent;
  background-color: var(--surface-raised);
  background-image: url("assets/hydrating-serum-product-v1.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-style: solid;
}

.screen[data-page="SINGLE03"] .photo-grid .thumb:nth-child(2) { background-position: 58% center; }
.screen[data-page="SINGLE03"] .photo-grid .thumb:nth-child(3) { background-position: 42% center; }

.screen[data-page="SETUP02"] .photo-grid .thumb {
  align-items: end;
  padding: 8px;
  color: var(--text-primary);
  background-color: var(--surface-raised);
  background-image: linear-gradient(transparent 56%, rgb(11 13 18 / 82%)), url("assets/ugc-creator-selfie-v1.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  border-style: solid;
  text-shadow: 0 1px 2px rgb(0 0 0 / 70%);
}

.screen[data-page="SETUP02"] .photo-grid .thumb:nth-child(1) { background-position: 50% 22%; }
.screen[data-page="SETUP02"] .photo-grid .thumb:nth-child(2) { background-position: 43% 22%; }
.screen[data-page="SETUP02"] .photo-grid .thumb:nth-child(3) { background-position: 57% 22%; }

.screen[data-page="SETUP04"] .likeness,
.screen[data-page="PERSONA03"] .likeness {
  align-items: end;
  padding: 18px;
  color: var(--text-primary);
  background-color: var(--surface-raised);
  background-image: linear-gradient(transparent 62%, rgb(11 13 18 / 88%)), url("assets/ugc-creator-selfie-v1.jpg");
  background-repeat: no-repeat;
  background-position: center 20%;
  background-size: cover;
  border-style: solid;
  text-shadow: 0 1px 3px rgb(0 0 0 / 70%);
}

/* First-time acquisition sequence: decorative storytelling with approved media. */
.access-hero {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid rgb(167 139 250 / 32%);
  border-radius: 24px;
  background: var(--mm-color-surface-soft);
  box-shadow: 0 20px 44px rgb(0 0 0 / 32%);
}

.access-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: saturate(.9) contrast(1.03);
}

.access-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(11 13 18 / 5%) 24%, rgb(11 13 18 / 92%) 78%);
}

.access-hero-scrim {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  left: 18px;
}

.access-kicker {
  color: #d8caff;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .13em;
}

.access-proof-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.access-product-float,
.access-video-float {
  position: relative;
  border: 1px solid rgb(255 255 255 / 24%);
  background: rgb(11 13 18 / 76%);
  box-shadow: 0 12px 30px rgb(0 0 0 / 35%);
  backdrop-filter: blur(12px);
}

.access-product-float {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  border-radius: 14px;
  font-size: .68rem;
  font-weight: 700;
}

.access-product-float img { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; }
.access-video-float { display: grid; place-items: center; gap: 2px; padding: 9px 12px; border-radius: 14px; }
.access-video-float span { color: #d8caff; font-size: 1rem; }
.access-video-float small { font-size: .58rem; }

.access-trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.access-trust-row span {
  display: grid;
  place-items: center;
  min-height: 58px;
  padding: 8px;
  border: 1px solid var(--mm-color-border);
  border-radius: 12px;
  color: var(--mm-color-text-muted);
  background: var(--mm-color-surface);
  text-align: center;
  font-size: .66rem;
  line-height: 1.3;
}

.access-strip {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  min-height: 116px;
  overflow: hidden;
  border: 1px solid rgb(167 139 250 / 30%);
  border-radius: 18px;
  background: linear-gradient(135deg, rgb(109 74 255 / 22%), var(--mm-color-surface));
}

.access-strip img { width: 92px; height: 116px; object-fit: cover; object-position: center 18%; }
.access-strip div { display: grid; gap: 5px; padding: 14px; }
.access-strip span { color: #cbbcff; font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.access-strip b { font-size: 1rem; line-height: 1.28; }

.access-mini-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--mm-color-border);
  border-radius: 14px;
  background: var(--mm-color-surface-soft);
}

.access-mini-proof p { margin: 0; color: var(--mm-color-text-muted); font-size: .75rem; line-height: 1.45; }
.access-mini-proof b { color: var(--mm-color-text); }
.access-mini-avatars { display: flex; min-width: 72px; }
.access-mini-avatars img { width: 42px; height: 42px; object-fit: cover; border: 2px solid var(--mm-color-surface); border-radius: 50%; }
.access-mini-avatars img + img { margin-left: -12px; }
.access-mini-avatars .zoomed-avatar { border-color: #0b0d12; object-position: center 20%; transform: scale(1.42); transform-origin: center 28%; clip-path: circle(35% at 50% 42%); box-shadow: 0 0 0 2px #0b0d12; }

.access-confirm-visual {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--mm-color-surface-soft);
}

.access-confirm-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.access-confirm-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 38%, rgb(11 13 18 / 88%)); }
.access-confirm-visual > span { position: absolute; z-index: 2; top: 16px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #0b0d12; background: #a7f3d0; font-size: 1.25rem; font-weight: 900; }
.access-confirm-visual div { position: absolute; z-index: 2; right: 16px; bottom: 16px; left: 16px; display: grid; gap: 4px; }
.access-confirm-visual small { color: #d8caff; font-size: .62rem; font-weight: 800; letter-spacing: .12em; }
.access-confirm-visual b { font-size: 1.35rem; }

.access-next-preview {
  display: grid;
  gap: 3px;
  padding: 13px 14px;
  border: 1px solid rgb(167 139 250 / 30%);
  border-radius: 14px;
  background: rgb(109 74 255 / 10%);
}
.access-next-preview span { color: #cbbcff; font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.access-next-preview small { color: var(--mm-color-text-muted); }

.onboarding-progress {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.onboarding-progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--mm-color-text-muted);
  font-size: .67rem;
}

.onboarding-progress-copy b { color: #cbbcff; }

.onboarding-progress ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.onboarding-progress li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 3px;
  color: var(--mm-color-text-muted);
  font-size: .6rem;
}

.onboarding-progress li:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 11px;
  right: calc(-50% + 16px);
  left: calc(50% + 16px);
  height: 2px;
  background: var(--mm-color-border);
}

.onboarding-progress li.complete::after { background: var(--mm-color-brand); }

.onboarding-progress li > span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--mm-color-border);
  border-radius: 50%;
  background: var(--mm-color-canvas);
  font-size: .64rem;
  font-weight: 800;
}

.onboarding-progress li.complete > span,
.onboarding-progress li.current > span {
  border-color: var(--mm-color-brand);
  color: var(--mm-color-text);
  background: rgb(109 74 255 / 22%);
}

.onboarding-progress li.current small { color: var(--mm-color-text); font-weight: 700; }

.screen:is([data-page="AUTH07"],[data-page="AUTH01"],[data-page="AUTH02"],[data-page="SETUP01"],[data-page="SETUP02"],[data-page="SETUP03"],[data-page="SETUP04"]) .screen-body {
  overflow: hidden;
  padding: 18px 20px 14px;
}

.screen:is([data-page="AUTH07"],[data-page="AUTH01"],[data-page="AUTH02"],[data-page="SETUP01"],[data-page="SETUP02"],[data-page="SETUP03"],[data-page="SETUP04"]) .screen-body > .eyebrow {
  margin-top: 2px;
  margin-bottom: 6px;
}

.screen:is([data-page="AUTH07"],[data-page="AUTH01"],[data-page="AUTH02"],[data-page="SETUP01"],[data-page="SETUP02"],[data-page="SETUP03"],[data-page="SETUP04"]) .screen-body > h1 {
  margin-bottom: 8px;
  font-size: 1.45rem;
  line-height: 1.08;
}

.screen:is([data-page="AUTH07"],[data-page="AUTH01"],[data-page="AUTH02"],[data-page="SETUP01"],[data-page="SETUP02"],[data-page="SETUP03"],[data-page="SETUP04"]) .screen-body > .lead {
  margin-bottom: 14px;
  font-size: .76rem;
  line-height: 1.35;
}

.screen:is([data-page="AUTH07"],[data-page="AUTH01"],[data-page="AUTH02"],[data-page="SETUP01"],[data-page="SETUP02"],[data-page="SETUP03"],[data-page="SETUP04"]) .screen-body > .stack {
  min-height: 0;
  gap: 14px;
}

.screen[data-page="AUTH07"] .access-hero { min-height: 310px; }
.screen[data-page="AUTH07"] .access-hero-scrim { right: 16px; bottom: 14px; left: 16px; }
.screen[data-page="AUTH07"] .access-trust-row { gap: 9px; }
.screen[data-page="AUTH07"] .access-trust-row span { min-height: 44px; padding: 7px; }
.screen[data-page="AUTH01"] .access-strip { min-height: 78px; }
.screen[data-page="AUTH01"] .access-strip img { height: 78px; }
.screen[data-page="AUTH01"] .field { min-height: 50px; }
.screen[data-page="AUTH01"] .access-mini-proof { padding-block: 9px; }
.screen[data-page="AUTH02"] .access-confirm-visual { min-height: 148px; }
.screen[data-page="AUTH02"] .access-next-preview { padding-block: 11px; }
.screen[data-page="SETUP01"] .card { padding-block: 12px; }
.screen[data-page="SETUP01"] .screen-body { overflow-y: auto; }
.screen[data-page="SETUP01"] .consent-summary dl { display: grid; gap: 10px; margin: 14px 0; }
.screen[data-page="SETUP01"] .consent-summary dl div { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 10px; align-items: start; padding-top: 10px; border-top: 1px solid var(--mm-color-border); }
.screen[data-page="SETUP01"] .consent-summary dt { color: var(--mm-color-text); font-size: .68rem; font-weight: 800; line-height: 1.35; }
.screen[data-page="SETUP01"] .consent-summary dd { min-width: 0; margin: 0; color: var(--mm-color-text-muted); font-size: .68rem; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.screen[data-page="SETUP01"] .consent-choices { min-inline-size: 0; margin: 0; padding: 10px; border: 1px solid rgb(167 139 250 / 24%); border-radius: 16px; }
.screen[data-page="SETUP01"] .consent-choices legend { padding: 0 7px; color: var(--mm-color-text); font-size: .76rem; font-weight: 750; }
.screen[data-page="SETUP01"] .choice { min-height: 48px; }
.screen[data-page="SETUP01"] .screen-body > .stack { gap: 9px; }
.screen[data-page="SETUP01"] .choice { padding-block: 9px; }
.inline-policy-link { color: #cbbcff; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.inline-policy-link:focus-visible { outline: var(--mm-focus-ring-width) solid var(--mm-color-focus); outline-offset: var(--mm-focus-ring-offset); border-radius: 3px; }
.consent-helper { margin: 0; color: var(--mm-color-text-muted); font-size: .7rem; line-height: 1.35; }
.button[data-consent-continue]:disabled { cursor: not-allowed; opacity: .42; filter: saturate(.45); }
.screen[data-page="SETUP02"] .screen-body > .stack { gap: 11px; }
.capture-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgb(167 139 250 / 34%);
  border-radius: 15px;
  background: rgb(109 74 255 / 10%);
}
.capture-summary > div { display: grid; min-width: 0; gap: 3px; }
.capture-count { color: #cbbcff; font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.capture-summary b { font-size: .86rem; }
.capture-summary small { max-width: 100%; color: var(--mm-color-text-muted); font-size: .66rem; line-height: 1.35; overflow-wrap: anywhere; }
.capture-complete { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; margin-left: auto; border-radius: 50%; color: #0b0d12; background: #a7f3d0; font-weight: 900; }
.capture-carousel { position: sticky; z-index: 3; top: 0; width: 100%; max-width: 100%; min-width: 0; overflow: hidden; background: var(--mm-color-canvas); }
.screen[data-page="SETUP02"] .capture-photo-grid {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  width: 100%;
  max-width: 100%;
}
.screen[data-page="SETUP02"] .capture-photo-grid::-webkit-scrollbar { display: none; }
.pose-capture {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--mm-color-border);
  border-radius: 14px;
  background: var(--mm-color-surface);
  box-shadow: 0 10px 22px rgb(0 0 0 / 20%);
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  scroll-snap-align: start;
}
.pose-image {
  width: 100%;
  height: 240px;
  border-bottom: 1px solid var(--mm-color-border);
  background-image: url("assets/likeness-three-view-capture-v1.png");
  background-repeat: no-repeat;
  background-size: 300% auto;
}
.pose-front .pose-image { background-position: 0 28%; }
.pose-left .pose-image { background-position: 50% 28%; }
.pose-right .pose-image { background-position: 100% 28%; }
.pose-status {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #0b0d12;
  background: #a7f3d0;
  font-size: .72rem;
  font-weight: 900;
}
.pose-actions { display: grid; align-content: start; width: 100%; gap: 7px; padding: 9px 10px 10px; }
.pose-actions b { min-height: 17px; font-size: .7rem; line-height: 1.2; }
.pose-action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.pose-actions button,
.pose-upload span {
  display: grid;
  place-items: center;
  min-height: var(--mm-target-min);
  padding: 4px 8px;
  border: 1px solid rgb(255 255 255 / 38%);
  border-radius: 8px;
  color: var(--mm-color-text);
  background: rgb(11 13 18 / 58%);
  font-size: .65rem;
  font-weight: 700;
  cursor: pointer;
}
.pose-upload { display: block; }
.pose-upload input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.pose-actions button:focus-visible,
.pose-upload input:focus-visible + span { outline: var(--mm-focus-ring-width) solid var(--mm-color-focus); outline-offset: 2px; }
.photo-carousel-dots { position: absolute; z-index: 4; top: 192px; right: 0; left: 0; display: flex; align-items: center; justify-content: center; gap: 0; min-height: var(--mm-target-min); }
.photo-carousel-dots button { position: relative; width: var(--mm-target-min); height: var(--mm-target-min); padding: 0; border: 0; border-radius: 999px; background: transparent; cursor: pointer; }
.photo-carousel-dots button::before { content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; border-radius: 999px; background: var(--mm-color-border); transform: translate(-50%,-50%); }
.photo-carousel-dots button.active::before { width: 22px; background: #f7f7fa; box-shadow: 0 0 0 3px rgb(11 13 18 / 54%); }
.photo-carousel-dots button:focus-visible { outline: var(--mm-focus-ring-width) solid var(--mm-color-focus); outline-offset: var(--mm-focus-ring-offset); }
.capture-tip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 13px; color: var(--mm-color-text-muted); background: var(--mm-color-surface-soft); }
.capture-tip-icon { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #cbbcff; background: rgb(109 74 255 / 16%); }
.capture-tip-icon svg { width: 22px; height: 22px; }
.capture-tip p { margin: 0; font-size: .68rem; line-height: 1.38; }
.capture-tip b { color: var(--mm-color-text); }
.screen[data-page="SETUP03"] .state-illustration { min-height: 150px; }
.screen[data-page="SETUP04"] .likeness { min-height: 240px; }

.screen[data-page="SETUP03"] .screen-body > .stack { gap: 12px; }
.processing-visual {
  position: relative;
  height: 250px;
  overflow: hidden;
  border: 1px solid rgb(167 139 250 / 34%);
  border-radius: 20px;
  background: var(--mm-color-surface-soft);
}
.processing-face {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgb(11 13 18 / 8%), rgb(11 13 18 / 24%)), url("assets/likeness-three-view-capture-v1.png");
  background-repeat: no-repeat;
  background-position: 0 22%;
  background-size: 300% auto;
  filter: saturate(.75) contrast(1.04);
}
.processing-visual::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, transparent 35%, rgb(11 13 18 / 42%)); pointer-events: none; }
.processing-scan {
  position: absolute;
  z-index: 2;
  right: 18%;
  left: 18%;
  height: 2px;
  background: #cbbcff;
  box-shadow: 0 0 8px #a78bfa, 0 0 22px rgb(167 139 250 / 72%);
  animation: likeness-scan 2.4s ease-in-out infinite alternate;
}
@keyframes likeness-scan { from { top: 24%; } to { top: 72%; } }
.processing-corners { position: absolute; z-index: 3; inset: 42px 76px; }
.processing-corners i { position: absolute; width: 24px; height: 24px; border-color: #d8caff; border-style: solid; }
.processing-corners i:nth-child(1) { top: 0; left: 0; border-width: 2px 0 0 2px; }
.processing-corners i:nth-child(2) { top: 0; right: 0; border-width: 2px 2px 0 0; }
.processing-corners i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.processing-corners i:nth-child(4) { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
.processing-live { position: absolute; z-index: 4; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid rgb(255 255 255 / 20%); border-radius: 999px; color: #f7f7fa; background: rgb(11 13 18 / 76%); font-size: .67rem; font-weight: 700; backdrop-filter: blur(10px); }
.processing-live i { width: 7px; height: 7px; border-radius: 50%; background: #a7f3d0; box-shadow: 0 0 0 4px rgb(167 243 208 / 14%); animation: processing-pulse 1.4s ease-in-out infinite; }
@keyframes processing-pulse { 50% { opacity: .45; transform: scale(.8); } }
.processing-progress-copy { display: flex; align-items: center; justify-content: space-between; font-size: .78rem; }
.processing-progress-copy span { color: #cbbcff; font-weight: 800; }
.processing-progress { height: 9px; overflow: hidden; border-radius: 999px; }
.processing-stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.processing-stages span { padding: 8px 6px; border: 1px solid var(--mm-color-border); border-radius: 10px; color: var(--mm-color-text-muted); background: var(--mm-color-surface); text-align: center; font-size: .6rem; line-height: 1.25; }
.processing-stages .complete { color: #a7f3d0; }
.processing-stages .active { border-color: rgb(167 139 250 / 54%); color: #d8caff; background: rgb(109 74 255 / 10%); }
.processing-background-note { margin: 0; color: var(--mm-color-text-muted); font-size: .72rem; line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { .processing-scan, .processing-live i { animation: none; } }

.screen[data-page="PERSONA01"] .site-row,
.screen[data-page="PRODUCT05"] .site-row,
.screen[data-page="BATCH03"] .site-row,
.screen[data-page="BATCH06"] .site-row {
  padding-left: 76px;
  background-repeat: no-repeat;
  background-position: 12px 50%;
  background-size: 48px 48px;
}

.screen[data-page="PERSONA01"] .site-row:nth-of-type(1) {
  background-image: url("assets/ugc-creator-selfie-v1.jpg");
}

.screen[data-page="PERSONA01"] .site-row:nth-of-type(2) {
  background-image: url("assets/ugc-creator-seated-v1.jpg");
}

.screen[data-page="PRODUCT05"] .site-row:first-of-type,
.screen[data-page="BATCH03"] .site-row {
  background-image: url("assets/hydrating-serum-product-v1.jpg");
}

.screen[data-page="PRODUCT05"] .site-row:nth-of-type(2),
.screen[data-page="BATCH06"] .site-row {
  background-image: url("assets/ugc-creator-selfie-v1.jpg");
}

.screen[data-page="PRODUCT06"] .video {
  position: relative;
  display: grid;
  place-items: center;
  width: min(76%, 260px);
  min-height: 390px;
  margin-inline: auto;
  overflow: hidden;
  color: var(--text-primary);
  background-color: var(--surface-raised);
  background-image: linear-gradient(transparent 60%, rgb(11 13 18 / 78%)), url("assets/ugc-creator-selfie-v1.jpg");
  background-repeat: no-repeat;
  background-position: center 18%;
  background-size: cover;
  border: 1px solid var(--border);
  border-radius: 22px;
}

.screen[data-page="PRODUCT06"] .video::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 38px;
  left: 12px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-accent) 38%, rgb(247 248 252 / 34%) 38%);
  border-radius: 999px;
}

.screen[data-page="PRODUCT06"] .play {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  padding: 0;
  color: var(--text-primary);
  background: rgb(11 13 18 / 78%);
  border: 1px solid rgb(247 248 252 / 36%);
  border-radius: 50%;
  backdrop-filter: blur(6px);
}

.screen[data-page="PRODUCT06"] .ai-badge,
.screen[data-page="PRODUCT06"] .captions {
  z-index: 2;
}

@media (max-width: 350px) {
  .screen[data-page="PRODUCT06"] .video {
    width: min(88%, 250px);
    min-height: 360px;
  }
}

/* Shared mock-media controls and disclosure badge. */
.video,
.video-preview {
  position: relative;
}

.video .play,
.video-preview .play-control {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--text-primary);
  background: rgb(11 13 18 / 48%);
  border: 1px solid rgb(247 248 252 / 42%);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgb(0 0 0 / 24%);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(5px);
}

.video .ai-badge,
.video-preview .ai-badge {
  position: absolute;
  right: auto;
  bottom: 8px;
  left: 8px;
  z-index: 4;
  width: max-content;
  max-width: calc(100% - 16px);
  min-height: 0;
  padding: 3px 5px;
  overflow: hidden;
  color: rgb(247 248 252 / 92%);
  font-size: .42rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .035em;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgb(11 13 18 / 68%);
  border: 1px solid rgb(247 248 252 / 20%);
  border-radius: 999px;
  backdrop-filter: blur(5px);
}

.screen[data-page="PRODUCT06"] .video .play {
  position: absolute;
  transform: translate(-50%, -50%);
}

/* Keep media text in dedicated overlay zones instead of across the subject. */
.screen[data-page="SETUP02"] .photo-grid .thumb {
  justify-content: center;
  padding: 40px 6px 7px;
  font-size: .6rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  background-image:
    linear-gradient(transparent 64%, rgb(11 13 18 / 82%)),
    url("assets/ugc-creator-selfie-v1.jpg");
}

.screen[data-page="SETUP04"] .likeness,
.screen[data-page="PERSONA03"] .likeness {
  justify-content: center;
  padding: 72px 14px 12px;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  background-image:
    linear-gradient(transparent 68%, rgb(11 13 18 / 88%)),
    url("assets/ugc-creator-selfie-v1.jpg");
}

.screen[data-page="PRODUCT06"] .video .captions {
  position: absolute;
  right: 12px;
  bottom: 52px;
  left: 12px;
  z-index: 4;
  display: block;
  width: auto;
  max-width: none;
  padding: 5px 7px;
  overflow: hidden;
  color: var(--text-primary);
  font-size: .58rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgb(11 13 18 / 70%);
  border-radius: 6px;
  backdrop-filter: blur(5px);
}

.screen[data-page="PRODUCT06"] .video::after {
  right: 12px;
  bottom: 34px;
  left: 12px;
}

.screen[data-page="PRODUCT06"] .video .ai-badge {
  right: 8px;
  bottom: 10px;
  left: auto;
}

/* Interactive campaign dashboard homepage. */
.campaign-dashboard,
.dashboard-work,
.campaign-list {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.dashboard-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-intro h2 {
  margin: 0;
  max-width: 270px;
  font-size: 1.72rem;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.dashboard-create {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--text-primary);
  font-size: 1.45rem;
  background: var(--action-primary);
  border: 0;
  border-radius: 14px;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.dashboard-metrics button {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  min-height: 65px;
  padding: 9px 5px;
  color: var(--text-primary);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.dashboard-metrics button:nth-child(1) {
  color: var(--campaign-all-ink);
  background: var(--campaign-all-pastel);
  border-color: transparent;
}

.dashboard-metrics button:nth-child(2) {
  color: var(--campaign-progress-ink);
  background: var(--campaign-progress-pastel);
  border-color: transparent;
}

.dashboard-metrics button:nth-child(3) {
  color: var(--campaign-review-ink);
  background: var(--campaign-review-pastel);
  border-color: transparent;
}

.dashboard-metrics button:nth-child(4) {
  color: var(--campaign-complete-ink);
  background: var(--campaign-complete-pastel);
  border-color: transparent;
}

.dashboard-metrics strong {
  color: currentColor;
  font-size: 1.12rem;
  line-height: 1;
}

.dashboard-metrics span {
  overflow: hidden;
  color: currentColor;
  font-size: .53rem;
  font-weight: 650;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-align: center;
}

.dashboard-work {
  padding-top: 2px;
}

.dashboard-work .section-row h3 {
  margin: 0;
}

.dashboard-search {
  position: relative;
  display: block;
}

.dashboard-search input {
  width: 100%;
  min-height: 44px;
  padding: 10px 40px 10px 13px;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
}

.dashboard-search > span:last-child {
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--text-secondary);
  font-size: 1rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.dashboard-filters {
  display: flex;
  gap: 7px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.dashboard-filters::-webkit-scrollbar { display: none; }

.dashboard-filters button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 11px;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 700;
}

.dashboard-filters button.active {
  color: var(--text-primary);
  background: var(--mm-color-brand-tint-subtle);
  border-color: transparent;
}

.campaign-list {
  gap: 10px;
}

.campaign-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-width: 0;
  padding: 11px;
  color: var(--text-primary);
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 17px;
}

.campaign-card > img {
  width: 54px;
  height: 68px;
  object-fit: cover;
  object-position: center 22%;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.campaign-card-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.campaign-card-head,
.campaign-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.campaign-card-head > b {
  overflow: hidden;
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.campaign-card-main > small,
.campaign-card-foot small {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: .56rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.campaign-card-foot strong {
  flex: 0 0 auto;
  color: var(--text-secondary);
  font-size: .58rem;
}

.campaign-status {
  flex: 0 0 auto;
  padding: 3px 5px;
  font-size: .46rem;
  font-weight: 800;
  line-height: 1;
  border-radius: 999px;
}

.campaign-status.active { color: var(--campaign-progress-ink); background: var(--campaign-progress-pastel); }
.campaign-status.review { color: var(--campaign-review-ink); background: var(--campaign-review-pastel); }
.campaign-status.completed { color: var(--campaign-complete-ink); background: var(--campaign-complete-pastel); }
.campaign-status.draft { color: var(--text-secondary); background: var(--surface-subtle); }

.campaign-progress {
  height: 4px;
  overflow: hidden;
  background: var(--surface-subtle);
  border-radius: 999px;
}

.campaign-progress > span {
  display: block;
  height: 100%;
  background: var(--brand-accent);
  border-radius: inherit;
}

.campaign-card[data-campaign-status="completed"] .campaign-progress > span { background: var(--status-success); }
.campaign-card[data-campaign-status="review"] .campaign-progress > span { background: var(--status-warning); }

.dashboard-empty {
  margin: 0;
  padding: 24px 16px;
  color: var(--text-secondary);
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 16px;
}

@media (max-width: 350px) {
  .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-metrics button { min-height: 56px; }
  .campaign-card { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .campaign-card > img { width: 48px; height: 62px; }
}

/* Shared search input and consistent page rhythm. */
:root {
  --ui-space-item: 12px;
  --ui-space-group: 16px;
  --ui-space-section: 24px;
}

.phone-mock .screen-body {
  padding-block: 20px 28px;
}

.screen-body > .eyebrow {
  margin-bottom: 8px;
}

.screen-body > h1 + .lead {
  margin: 12px 0 24px;
}

.screen-body > .stack {
  gap: var(--ui-space-group) !important;
}

.screen-body .section-block {
  gap: var(--ui-space-item);
}

.screen-body .section-block > h2 {
  margin: 0;
}

.screen-body .section-block + .section-block {
  margin-top: var(--ui-space-section);
}

.screen-body :is(.quick-grid, .creation-grid, .metric-grid, .faq-list, .user-menu) {
  gap: var(--ui-space-item);
}

/* Reusable two-column metric group used by Batch Overview and summary pages. */
.screen-body .metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.screen-body .metric-grid .metric {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  min-height: 76px;
  margin: 0;
  padding: 12px;
}

.screen-body .metric-grid .metric strong,
.screen-body .metric-grid .metric span {
  margin: 0;
  line-height: 1.25;
  text-align: center;
}

.screen-body :is(.document-copy, .settings, .check-list, .destination) {
  gap: var(--ui-space-group);
}

.screen-body :is(.card, .notice, .field, .site-row, .choice, .provider-card, .profile-summary) {
  margin-block: 0;
}

/* Supporting copy participates in the parent grid rhythm instead of adding margins. */
.phone-mock .screen-body .supporting {
  margin-block: 0;
}

/* Keep the content endpoint consistent whether or not a page has fixed controls. */
.phone-mock .screen:has(.sticky-actions) .screen-body,
.phone-mock .screen:has(.bottom-nav) .screen-body {
  padding-bottom: 72px;
  scroll-padding-bottom: 72px;
}

.campaign-dashboard,
.campaign-status-page {
  gap: var(--ui-space-section);
}

.dashboard-work,
.campaign-list {
  gap: var(--ui-space-item);
}

.app-search {
  position: relative;
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
}

.app-search input {
  width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 0 44px;
  color: var(--text-primary);
  font: inherit;
  font-size: .75rem;
  line-height: 1.4;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  appearance: none;
}

.app-search input::-webkit-search-cancel-button {
  margin: 0;
}

.app-search input::placeholder {
  color: var(--text-secondary);
  opacity: 1;
}

.app-search svg {
  position: absolute;
  top: 24px;
  left: 15px;
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  transform: translateY(-50%);
  pointer-events: none;
}

.app-search:focus-within input {
  border-color: var(--mm-color-interaction-border);
  outline: none;
}

.app-search:focus-within svg {
  color: var(--brand-accent);
}

.dashboard-search input {
  padding-inline: 44px;
}

.dashboard-search > span:last-child {
  display: none;
}

.campaign-dashboard .dashboard-search {
  margin-bottom: 4px;
}

.campaign-card-head {
  align-items: flex-start;
}

.campaign-card-head > b {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.25;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.campaign-status-page {
  display: grid;
  min-width: 0;
}

.campaign-page-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 2px 8px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.campaign-page-summary .overline {
  grid-column: 1 / -1;
}

.campaign-page-summary strong {
  color: var(--brand-accent);
  font-size: 1.75rem;
  line-height: 1;
}

.campaign-page-summary > span {
  padding-bottom: 2px;
  color: var(--text-secondary);
  font-size: .7rem;
}

@media (max-width: 350px) {
  .phone-mock .screen-body > .stack { gap: 14px !important; }
  .campaign-dashboard,
  .campaign-status-page { gap: 20px; }
  .campaign-card-head { display: grid; justify-items: start; }
}
