/* ─── Design Tokens ─── */
:root {
  --bg: #FFFCFA;
  --hero-bg: #FFFDFB;
  --nav-bg: #FFFFFF;
  --accent: #F5B8CC;
  --accent-mid: #FADCE8;
  --accent-light: #FFF5F8;
  --text: #1F1A1D;
  --border: #FAF0F4;
  --border-pricing: #DDB8C8;
  --white: #FFFFFF;
  --nav-h: 72px;

  --font: "Montserrat", system-ui, sans-serif;

  /* Semantic text */
  --text-primary: #1F1A1D;
  --text-app-primary: #3d3538;
  --text-secondary: rgba(92, 74, 82, 0.72);
  --text-muted: rgba(92, 74, 82, 0.58);
  --color-text: var(--text-primary);

  /* Typography scale */
  --text-display: clamp(1.75rem, 4vw, 2.625rem);
  --text-h1: 1.2rem;
  --text-h2: 0.95rem;
  --text-h3: 0.875rem;
  --text-body: 0.875rem;
  --text-body-sm: 0.8125rem;
  --text-caption: 0.72rem;
  --text-stat: 1.5rem;

  /* Text ombre — soft pastel pink */
  --gradient-text: linear-gradient(135deg, #FBCFE0 0%, #F0A0BE 45%, #E88AAF 100%);
  /* Premium — orange + pink ombre */
  --gradient-text-premium: linear-gradient(135deg, #FFAA70 0%, #FF8FAB 50%, #E878A8 100%);
  --gradient-premium-border: linear-gradient(135deg, #FFB896 0%, #FF9EC4 50%, #F5A8C4 100%);
  /* Premium fill — orange + pink ombre (buttons, dots) */
  --gradient-premium: linear-gradient(135deg, #FFD4B0 0%, #FFB896 35%, #FF9EC4 70%, #F5A8C4 100%);
  /* Hero accent line */
  --gradient-text-hero: linear-gradient(135deg, #FFD6E6 0%, #F5A8C4 40%, #E895B0 100%);
  /* Buttons — lighter pastel pink */
  --gradient-btn: linear-gradient(135deg, #FFE8F2 0%, #FFD6E8 55%, #FFC8E0 100%);

  /* Radius */
  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-glass: 18px;
  --radius-pill: 999px;

  --shadow-soft: 0 4px 24px rgba(31, 26, 29, 0.05);
  --shadow-card: 0 8px 40px rgba(31, 26, 29, 0.07);
  --shadow-elevated: 0 16px 56px rgba(31, 26, 29, 0.09);

  /* Spacing */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 2.5rem;
  --section-gap: var(--space-md);
  --panel-padding: 1.15rem 1.25rem;
  --panel-padding-lg: 1.35rem 1.4rem;

  /* Containers */
  --container: 1120px;
  --container-narrow: 720px;
  --container-marketing: 1400px;
  --container-marketing-pad: clamp(1rem, 4vw, 40px);
  --container-app: 960px;
  --container-form: 560px;
  --container-prose: 32.5rem;

  /* Buttons */
  --btn-height-xs: 2rem;
  --btn-height-sm: 2.25rem;
  --btn-height-md: 2.5rem;
  --btn-height-lg: 2.75rem;

  /* Breakpoints (reference for media queries) */
  --bp-sm: 640px;
  --bp-md: 768px;
  --bp-lg: 960px;
  --bp-xl: 1080px;

  /* Dashboard — light cream + brand pink */
  --dash-cream: #FFFCFA;
  --dash-cream-soft: #FFF9F6;
  --dash-cream-warm: #FFFDFB;
  --dash-pink-whisper: #FFF7FA;
  --dash-pink-soft: #FFF0F6;
  --dash-pink-border: rgba(245, 184, 204, 0.28);
  --dash-pink-glow: rgba(255, 214, 232, 0.45);

  /* App brand system — shared across dashboard + tools */
  --brand-charcoal: #3d3538;
  --brand-charcoal-hover: #484042;
  --brand-secondary-bg: #fffefc;
  --brand-secondary-border: rgba(210, 178, 192, 0.65);
  --brand-glass-bg: rgba(255, 253, 251, 0.58);
  --brand-glass-border: rgba(245, 184, 204, 0.42);
  --brand-glass-shadow: 0 8px 32px rgba(245, 184, 204, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --brand-glass-blur: blur(18px);

  --brand-pink-btn: linear-gradient(135deg, #FFE8F2 0%, #FFD6E8 55%, #FFC8E0 100%);
  --brand-pink-btn-border: rgba(255, 200, 224, 0.85);
  --brand-pink-btn-shadow: 0 4px 18px rgba(255, 200, 224, 0.45);
  --brand-pink-btn-shadow-hover: 0 6px 22px rgba(255, 200, 224, 0.58);

  /* Luxury accents — subtle gold + warm cream (surfaces only, not text) */
  --brand-gold: #C4A574;
  --brand-gold-soft: #E8D9B8;
  --brand-gold-whisper: rgba(196, 165, 116, 0.14);
  --brand-gold-glow: rgba(212, 185, 130, 0.22);
  --brand-cream-luxe: #FBF8F3;
  --brand-cream-warm: #FFF9F4;
  --brand-surface-luxe: linear-gradient(145deg, #FFFCFA 0%, #FBF8F3 48%, #FFF9F4 100%);
  --brand-border-luxe: rgba(212, 185, 130, 0.28);

  --cpw-editor-bg: linear-gradient(135deg, #ffe8f2 0%, #ffd6e8 55%, #f5a8c4 100%);
  --cpw-editor-accent: #c44569;
  --cpw-editor-accent-mid: #f5a8c4;
  --cpw-editor-text: #3d3538;
  --cpw-pitch-rail-width: 240px;

  --score-high: #a8d4bc;
  --score-high-bg: #f2faf5;
  --score-strong: #f0b8cc;
  --score-strong-bg: #fff5f8;
  --score-moderate: #f0dc98;
  --score-moderate-bg: #fdf9ed;
  --score-low: #d4cdc8;
  --score-low-bg: #f9f7f6;
}

/* ─── Reset & Base ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  scroll-padding-top: var(--nav-h);
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--brand-surface-luxe);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

/* ─── Gradient text utility ─── */
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.text-gradient--premium {
  background: var(--gradient-text-premium);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ─── Layout ─── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.header-container {
  width: 100%;
  max-width: var(--container-marketing);
  margin-inline: auto;
  padding-inline: var(--container-marketing-pad);
}

.landing-page .container,
.landing-page .site-footer__inner,
.landing-page .site-footer__bottom-inner {
  max-width: var(--container-marketing);
  padding-inline: var(--container-marketing-pad);
}

.landing-page .container.container--narrow,
.container.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100dvh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(1.75rem, 3.5vw, 2.25rem);
  position: relative;
  isolation: isolate;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.section__header {
  text-align: center;
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: var(--space-md);
}

.section__title {
  font-size: clamp(1.375rem, 2.8vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section__subtitle {
  font-size: var(--text-body);
  color: var(--text);
  line-height: 1.6;
}

/* ─── Design System Primitives ─── */
.dash-page,
.os-page,
.bm-wrap,
.cpw-workspace-layout,
.cc-wrap,
.ax-wrap,
.cpf-wrap {
  width: 100%;
  max-width: var(--container-app);
  margin-inline: auto;
}

.dash-page-header,
.os-header,
.bm-page-head,
.dash-hero,
.cc-header.dash-hero,
.ax-header.dash-hero {
  margin-bottom: var(--section-gap);
}

.dash-page-header__title,
.dash-hero__title,
.os-title,
.bm-title,
.cpf-toolbar__title {
  font-family: var(--font);
  font-size: var(--text-h1);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 var(--space-2xs);
  color: var(--text-app-primary);
}

.dash-page-header__subtitle,
.dash-hero__subtitle,
.os-subtitle,
.bm-subtitle,
.cpf-toolbar__subtitle {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--text-body);
  max-width: var(--container-prose);
  line-height: 1.55;
}

.dash-panel__title,
.cpf-section__title,
.cc-aside__title,
.os-usage-title {
  margin: 0 0 var(--space-sm);
  font-size: var(--text-h2);
  font-weight: 600;
  color: var(--text-app-primary);
}

.stat-card__value,
.ax-stat__value,
.cpw-stat__value,
.overview-stat__value {
  font-size: var(--text-stat);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-app-primary);
}

.stat-card__label,
.ax-stat__label,
.cpw-stat__label,
.overview-stat__label {
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pill-tab,
.bm-tab,
.cpw-tab,
.cc-tab,
.cpf-mode-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  min-height: var(--btn-height-xs);
  padding: 0.32rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--brand-secondary-border);
  background: var(--brand-secondary-bg);
  font: inherit;
  font-size: var(--text-caption);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.pill-tab:hover,
.bm-tab:hover:not(.bm-tab--locked):not(.bm-tab--active),
.cpw-tab:hover:not(.is-locked):not(.is-active),
.cc-tab:hover:not(.is-locked):not(.is-active),
.cpf-mode-tab:hover:not(.is-locked):not(.is-active) {
  border-color: var(--accent);
  color: var(--text-app-primary);
  background: var(--dash-pink-whisper);
}

.pill-tab.is-active,
.pill-tab--active,
.bm-tab--active,
.cpw-tab.is-active,
.cc-tab.is-active,
.cpf-mode-tab.is-active {
  background: var(--dash-pink-soft);
  border-color: var(--accent);
  color: var(--text-app-primary);
  box-shadow: 0 2px 12px rgba(245, 184, 204, 0.35);
}

.empty-state__title,
.cpw-empty__title,
.cc-empty__title,
.cpf-section-empty__title,
.dashboard-empty__title {
  margin: 0 0 var(--space-xs);
  font-size: var(--text-h2);
  font-weight: 600;
  color: var(--text-app-primary);
}

.empty-state__text,
.cpw-empty__text,
.cc-empty__text,
.cpf-section-empty__text,
.dashboard-empty__text {
  margin: 0 0 var(--space-sm);
  font-size: var(--text-body);
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ─── Section Transitions ─── */
.section-transition {
  height: 20px;
  flex-shrink: 0;
  scroll-snap-align: none;
  background: linear-gradient(180deg, var(--bg) 0%, var(--accent-light) 50%, var(--bg) 100%);
  pointer-events: none;
}

.section-transition--alt {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(255, 242, 247, 0.45) 50%, var(--bg) 100%);
}

.section.reveal {
  opacity: 0;
  transition: opacity 0.55s ease;
}

.section.reveal.is-visible {
  opacity: 1;
}

/* ─── Landing section dividers ─── */
.landing-page .section + .section {
  border-top: 1px solid rgba(245, 184, 204, 0.4);
}

.landing-page .section + .section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(120px, 24%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 165, 116, 0.45), rgba(232, 138, 175, 0.75), transparent);
  pointer-events: none;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-height-md);
  font-weight: 600;
  font-size: var(--text-body);
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn--sm {
  min-height: var(--btn-height-sm);
  padding: 0.5rem 1.25rem;
  font-size: var(--text-body);
}

.btn--xs {
  min-height: var(--btn-height-xs);
  padding: 0.375rem 0.9rem;
  font-size: var(--text-body-sm);
}

.btn--lg {
  min-height: var(--btn-height-lg);
  padding: 0.75rem 1.75rem;
  font-size: 0.9375rem;
}

.btn--block {
  width: 100%;
  padding-block: 0.875rem;
  font-size: 0.9375rem;
}

.btn--primary {
  background: var(--brand-pink-btn);
  color: var(--text);
  border-color: var(--brand-pink-btn-border);
  box-shadow: var(--brand-pink-btn-shadow);
}

.btn--primary:hover {
  background: var(--brand-pink-btn);
  border-color: var(--accent);
  filter: brightness(1.03);
  box-shadow: var(--brand-pink-btn-shadow-hover);
}

.btn--premium {
  background: var(--gradient-premium);
  border: 2px solid rgba(255, 158, 120, 0.35);
  box-shadow: 0 4px 18px rgba(255, 158, 120, 0.25);
}

.btn--premium:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 24px rgba(255, 158, 120, 0.35);
}

.btn--outline {
  background: var(--brand-secondary-bg);
  color: var(--text);
  border: 1px solid var(--brand-secondary-border);
  box-shadow: none;
}

.btn--outline:hover {
  border-color: var(--accent);
  background: var(--dash-pink-whisper);
  box-shadow: var(--shadow-soft);
}

.btn-app-primary,
.bm-btn-primary,
.os-cta,
.cpw-bar-btn--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: var(--btn-height-sm);
  padding: 0.5rem 1.1rem;
  font-family: var(--font);
  font-size: var(--text-body);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--brand-pink-btn-border);
  background: var(--brand-pink-btn);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--brand-pink-btn-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}

.btn-app-primary,
.bm-btn-primary {
  font-weight: 700;
  font-size: 0.84375rem;
}

.os-cta {
  width: 100%;
  min-height: var(--btn-height-sm);
  padding: 0.5rem 1.25rem;
}

.btn-app-primary:hover,
.bm-btn-primary:hover,
.os-cta:hover,
.cpw-bar-btn--primary:hover {
  filter: brightness(1.03);
  border-color: var(--accent);
  box-shadow: var(--brand-pink-btn-shadow-hover);
}

.btn-app-primary:active,
.bm-btn-primary:active,
.os-cta:active,
.cpw-bar-btn--primary:active {
  transform: scale(0.98);
}

.btn-app-secondary,
.bm-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: var(--btn-height-sm);
  padding: 0.5rem 1rem;
  background: var(--brand-secondary-bg);
  color: var(--text);
  border: 1px solid var(--brand-secondary-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-body);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-app-secondary:hover,
.bm-btn-secondary:hover {
  border-color: var(--accent);
  background: var(--dash-pink-whisper);
  transform: translateY(-1px);
}

.btn-app-secondary:disabled,
.bm-btn-secondary:disabled,
.bm-btn-secondary--loading {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

/* ─── Cards ─── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.25s ease;
}

.card:hover {
  box-shadow: var(--shadow-card);
}

/* ─── Navbar ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(31, 26, 29, 0.04);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  gap: var(--space-sm);
}

.navbar__logo {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text);
  flex-shrink: 0;
  text-align: left;
  white-space: nowrap;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
  margin-left: auto;
}

.navbar__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: opacity 0.2s ease;
}

.navbar__link:hover {
  opacity: 0.7;
}

/* ─── Hero ─── */
.hero {
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100dvh - var(--nav-h));
  background: linear-gradient(180deg, var(--hero-bg) 0%, var(--brand-cream-luxe) 100%);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0;
  will-change: transform, opacity;
}

.hero__bg-shape--1 {
  width: 440px;
  height: 440px;
  top: 5%;
  left: -35%;
  background: rgba(255, 200, 220, 0.55);
  box-shadow: 0 0 90px var(--brand-gold-whisper);
}

.hero__bg-shape--2 {
  width: 380px;
  height: 380px;
  top: 42%;
  left: -40%;
  background: linear-gradient(135deg, rgba(255, 214, 230, 0.45) 0%, rgba(232, 217, 184, 0.28) 100%);
}

.hero__bg-shape--3 {
  width: 260px;
  height: 260px;
  top: 22%;
  left: -25%;
  background: rgba(251, 228, 238, 0.5);
}

.hero.hero--swipe .hero__bg-shape--1 {
  animation: heroSwipe1 5.2s ease-in-out forwards;
}

.hero.hero--swipe .hero__bg-shape--2 {
  animation: heroSwipe2 5.8s ease-in-out 0.35s forwards;
}

.hero.hero--swipe .hero__bg-shape--3 {
  animation: heroSwipe3 5s ease-in-out 0.7s forwards;
}

@keyframes heroSwipe1 {
  0% {
    opacity: 0;
    transform: translateX(0) scale(0.9);
  }
  14% {
    opacity: 0.65;
  }
  48% {
    opacity: 0.5;
    transform: translateX(72vw) scale(1.05);
  }
  72% {
    opacity: 0.2;
    transform: translateX(105vw) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(130vw) scale(0.95);
  }
}

@keyframes heroSwipe2 {
  0% {
    opacity: 0;
    transform: translateX(0) translateY(0);
  }
  16% {
    opacity: 0.5;
  }
  52% {
    opacity: 0.4;
    transform: translateX(78vw) translateY(-6%);
  }
  100% {
    opacity: 0;
    transform: translateX(125vw) translateY(-10%);
  }
}

@keyframes heroSwipe3 {
  0% {
    opacity: 0;
    transform: translateX(0) scale(0.85);
  }
  18% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.42;
    transform: translateX(65vw) scale(1.08);
  }
  100% {
    opacity: 0;
    transform: translateX(115vw) scale(0.9);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero.hero--swipe .hero__bg-shape--1,
  .hero.hero--swipe .hero__bg-shape--2,
  .hero.hero--swipe .hero__bg-shape--3 {
    animation: heroSwipeReduced 2s ease forwards;
  }

  @keyframes heroSwipeReduced {
    0% { opacity: 0; }
    30% { opacity: 0.35; }
    100% { opacity: 0; }
  }
}

.hero__inner {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  width: 100%;
  position: relative;
  z-index: 1;
  padding-block: 2rem;
}

.hero__title {
  font-size: clamp(1.75rem, 4vw, 2.625rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero__title-accent {
  font-weight: 500;
  background: var(--gradient-text-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero__subtitle {
  font-size: clamp(1.0625rem, 2.2vw, 1.1875rem);
  color: var(--text);
  line-height: 1.7;
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: 2.25rem;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* ─── Preview ─── */
.preview__tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.preview__tab {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.preview__tab:hover {
  border-color: rgba(245, 184, 204, 0.6);
  color: var(--text);
}

.preview__tab.is-active {
  background: linear-gradient(135deg, rgba(245, 184, 204, 0.35), rgba(232, 138, 175, 0.2));
  border-color: rgba(232, 138, 175, 0.55);
  color: var(--text);
  box-shadow: 0 4px 14px rgba(245, 184, 204, 0.25);
}

.preview__mockup {
  width: 100%;
  max-width: 920px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-elevated);
  background: var(--white);
}

.preview__browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.preview__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.preview__dot:first-child {
  background: var(--accent);
}

.preview__screen {
  min-height: 440px;
  height: clamp(440px, 54vw, 580px);
  background: var(--dash-cream, #fdf8f6);
  overflow: hidden;
}

.preview__panel.is-active {
  display: block;
  height: 100%;
  overflow: hidden;
}

.preview__frame.dashboard-main {
  padding: 0.4rem 0.55rem 0.5rem;
  pointer-events: none;
  user-select: none;
  font-size: 0.74rem;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.preview__panel {
  display: none;
  padding: 0;
}

.preview__panel[hidden] {
  display: none !important;
}

.preview__frame .os-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(150px, 190px) !important;
  gap: 10px !important;
  align-items: start;
}

.preview__frame .os-aside-col {
  gap: 8px;
}

.preview__frame .os-header {
  margin-bottom: 0.45rem;
}

.preview__frame .os-title {
  font-size: 0.92rem;
  margin-bottom: 0.1rem;
}

.preview__frame .os-subtitle {
  font-size: 0.68rem;
  line-height: 1.35;
  max-width: none;
}

.preview__frame .os-card-inner {
  padding: 10px 11px;
}

.preview__frame .os-field-hint,
.preview__frame .os-tips-card {
  display: none;
}

.preview__frame .os-field--region {
  margin-bottom: 0;
  padding-bottom: 0.25rem;
}

.preview__frame .os-field--toggle .os-toggle-desc {
  display: none;
}

.preview__frame .os-usage-card,
.preview__frame .os-search-tips {
  padding: 10px 10px 8px;
}

.preview__frame .cpw-header {
  margin-bottom: 0.45rem;
}

.preview__frame .cpw-header .dash-hero__title {
  font-size: 0.92rem;
}

.preview__frame .cpw-header .dash-hero__subtitle {
  font-size: 0.68rem;
  line-height: 1.35;
  max-width: none;
}

.preview__frame .cpw-summary-row {
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 0.72fr) minmax(0, 1.45fr) !important;
  gap: 6px !important;
  margin-bottom: 0.45rem;
}

.preview__frame .cpw-summary-row .cpw-stat {
  padding: 0.45rem 0.55rem 0.4rem;
}

.preview__frame .cpw-how {
  padding: 0.45rem 0.55rem;
}

.preview__frame .cpw-how__list {
  gap: 0.2rem;
}

.preview__frame .cpw-how__text {
  font-size: 0.62rem;
  line-height: 1.25;
}

.preview__frame .cpw-grid-card__body {
  padding: 0.5rem 0.55rem 0.3rem;
}

.preview__frame .cpw-grid-card__actions {
  gap: 4px;
  padding: 0.35rem 0.55rem 0.5rem;
}

.preview__frame .cpw-grid-card__actions .btn {
  padding: 0.28rem 0.45rem;
  font-size: 0.58rem;
  min-height: 1.65rem;
}

.preview__frame .os-search-form .os-row {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px 10px !important;
}

.preview__frame .os-search-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 10px 14px !important;
}

.preview__frame .os-search-stack {
  display: flex !important;
  flex-direction: column;
  gap: 8px;
}

.preview__frame .os-search-actions {
  margin-top: 12px;
}

.preview__frame .bm-actions-bar {
  flex-wrap: nowrap;
  align-items: flex-end;
}

.preview__frame .bm-search-fields {
  flex-wrap: nowrap;
}

.preview__frame .bm-legend-row {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.preview__frame .bm-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.preview__frame .bm-brand-card {
  opacity: 1;
  transform: none;
  animation: none;
  margin: 0;
}

.preview__frame .cpw-workspace-layout {
  display: block !important;
  max-width: 100% !important;
}

.preview__frame .cpw-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

.preview__frame .os-root {
  min-height: 0;
  border-radius: 0;
  overflow: hidden;
}

.preview__frame .os-page {
  padding: 0 0 8px;
}

.preview__frame .bm-root {
  padding-bottom: 0;
}

.preview__frame .bm-brand-card:hover,
.preview__frame .cpw-grid-card:hover {
  transform: none;
}

.preview__frame button,
.preview__frame select,
.preview__frame input {
  pointer-events: none;
}

.preview__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 0.5rem;
  color: var(--text);
  opacity: 0.45;
}

.preview__placeholder p {
  font-size: 0.8125rem;
  font-weight: 500;
}

/* ─── Features ─── */
.features {
  background: var(--bg);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  max-width: 720px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .features__grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 920px;
  }
}

.feature-card {
  padding: 1rem 0.875rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.features .feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(245, 184, 204, 0.3);
}

.features .feature-card:nth-child(1):hover {
  border-color: rgba(232, 138, 175, 0.7);
}

.features .feature-card:nth-child(2):hover {
  border-color: rgba(245, 184, 204, 0.85);
}

.features .feature-card:nth-child(3):hover {
  border-color: rgba(220, 120, 160, 0.65);
}

.features .feature-card:nth-child(4):hover {
  border-color: rgba(255, 200, 224, 0.9);
}

.features .feature-card:hover .feature-card__icon {
  background: linear-gradient(135deg, rgba(245, 184, 204, 0.45), rgba(232, 138, 175, 0.25));
}

.feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  color: var(--text);
  margin-bottom: 0.625rem;
}

.feature-card__icon svg {
  width: 18px;
  height: 18px;
}

.feature-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.feature-card__text {
  font-size: 0.8125rem;
  color: var(--text);
  line-height: 1.5;
}

/* ─── Steps ─── */
.steps__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  max-width: 640px;
  margin-inline: auto;
}

.step-card {
  padding: 1.25rem 1rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.steps .step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(245, 184, 204, 0.3);
}

.steps .step-card:nth-child(1):hover {
  border-color: rgba(232, 138, 175, 0.7);
}

.steps .step-card:nth-child(2):hover {
  border-color: rgba(245, 184, 204, 0.85);
}

.steps .step-card:nth-child(3):hover,
.steps .step-card--center:hover {
  border-color: rgba(220, 120, 160, 0.65);
}

.steps .step-card:hover .step-card__number {
  box-shadow: 0 5px 16px rgba(255, 200, 224, 0.55);
  border-color: rgba(232, 138, 175, 0.75);
}

.step-card--center {
  grid-column: 1 / -1;
  max-width: 300px;
  justify-self: center;
  width: 100%;
}

.step-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-btn);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
  box-shadow: 0 3px 12px rgba(255, 200, 224, 0.45);
  border: 1px solid rgba(255, 200, 224, 0.6);
}

.step-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.step-card__text {
  font-size: 0.8125rem;
  color: var(--text);
  line-height: 1.5;
}

/* ─── Pricing ─── */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  max-width: 720px;
  margin-inline: auto;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.25rem;
  border: 2px solid var(--border-pricing);
}

.pricing-card--featured {
  border: 2px solid transparent;
  background-image:
    linear-gradient(var(--white), var(--white)),
    var(--gradient-premium-border);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 8px 32px rgba(255, 158, 120, 0.15), var(--shadow-elevated);
}

.pricing-card__name {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-align: left;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.pricing-card--featured .pricing-card__name {
  background: var(--gradient-text-premium);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.pricing-card__price {
  text-align: left;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.pricing-card__amount {
  display: block;
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.pricing-card__duration {
  font-size: 0.8125rem;
  color: var(--text);
  font-weight: 500;
  opacity: 0.7;
}

.pricing-card__features {
  margin-bottom: 0.75rem;
}

.pricing-card__feature-note {
  font-weight: 500;
  opacity: 0.72;
}

.pricing-card__features--premium {
  flex: 1;
  margin-bottom: 1rem;
}

.pricing-card__plus-label {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.pricing-card__features--compact {
  margin-bottom: 0.75rem;
}

.pricing-card__includes--bullets li {
  position: relative;
  padding-left: 0.9rem;
}

.pricing-card__includes--bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.3rem;
  color: rgba(61, 53, 56, 0.55);
  font-weight: 700;
}

.pricing-card__includes-label {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(61, 53, 56, 0.55);
}

.pricing-card__includes-label--spacer {
  visibility: hidden;
}

.pricing-card__includes {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.pricing-card__includes li {
  padding-block: 0.3rem;
  font-size: 0.8125rem;
  color: var(--text);
  opacity: 0.88;
}

.pricing-card__includes--spacer li {
  visibility: hidden;
}

.pricing-card__cta {
  margin-top: auto;
}

.pricing-card__features li {
  position: relative;
  padding-left: 1.375rem;
  padding-block: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text);
}

.pricing-card__feature-spacer {
  visibility: hidden;
}

.pricing-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  color: #E88AAF;
}

.pricing-card--featured .pricing-card__features li::before {
  background: var(--gradient-premium);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ─── FAQ ─── */
.faq.section {
  min-height: auto;
  justify-content: flex-start;
  padding-block: 2.5rem 2rem;
  scroll-snap-align: none;
}

.faq .container--narrow {
  width: 100%;
}

.faq .section__header {
  margin-bottom: 1rem;
  max-width: none;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  width: 100%;
}

.faq__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.faq__item[open] {
  box-shadow: var(--shadow-card);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  border-radius: 2px;
  transition: opacity 0.25s ease;
}

.faq__icon::before {
  width: 12px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq__icon::after {
  width: 2px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq__item[open] .faq__icon::after {
  opacity: 0;
}

.faq__answer {
  padding: 0 1rem 0.875rem;
}

.faq__answer p {
  font-size: 0.8125rem;
  color: var(--text);
  line-height: 1.6;
}

.faq__contact {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.faq__contact-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.faq__contact-text a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.faq__contact-text a:hover {
  text-decoration: underline;
}

/* ─── Modals ─── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal[hidden] {
  display: none !important;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 26, 29, 0.4);
  backdrop-filter: blur(4px);
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  padding: var(--space-lg);
  transform: translateY(16px);
  transition: transform 0.3s ease;
}

.modal.is-open .modal__panel {
  transform: translateY(0);
}

.modal__panel--wide {
  max-width: 520px;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: rgba(31, 26, 29, 0.5);
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal__close:hover {
  background: var(--accent-light);
  color: var(--text);
}

.modal__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-xs);
  padding-right: 2rem;
}

.modal__title--divider {
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.modal__subtitle {
  font-size: 0.875rem;
  color: rgba(31, 26, 29, 0.6);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.modal__label {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.modal__label input {
  font-family: inherit;
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s ease;
}

.modal__label input:focus {
  outline: none;
  border-color: var(--accent);
}

.modal__hint {
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(31, 26, 29, 0.55);
  line-height: 1.4;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  width: 100%;
  padding-right: 3.25rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.625rem;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  opacity: 0.55;
  padding: 0.25rem 0.375rem;
  border-radius: 4px;
  transition: opacity 0.2s ease;
}

.password-toggle:hover {
  opacity: 0.85;
}

.modal__row {
  display: flex;
  justify-content: flex-end;
  margin-top: -0.25rem;
}

.modal__row--signin {
  justify-content: space-between;
  align-items: center;
  margin-top: 0;
}

.modal__remember {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}

.modal__remember input {
  accent-color: #e88aaf;
}

.modal__error {
  font-size: 0.8125rem;
  color: #B4234F;
  line-height: 1.5;
}

.modal__message {
  font-size: 0.8125rem;
  color: var(--text);
  line-height: 1.6;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  border: 1px solid var(--border);
}

.modal__message--success {
  background: #F0FFF4;
  border-color: #C6EACA;
}

.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text);
  cursor: pointer;
  margin-top: 0.25rem;
}

.terms-check input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.terms-check__link {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.terms-check__link:hover {
  opacity: 0.75;
}

.paystripe-checkout {
  margin-bottom: var(--space-sm);
}

.paystripe-checkout code {
  font-size: 0.75rem;
  background: var(--accent-light);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
}

.modal__switch {
  margin-top: var(--space-md);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(31, 26, 29, 0.6);
}

.modal__link-btn {
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.modal__step--hidden {
  display: none;
}

.modal__back-btn {
  margin-top: var(--space-md);
}

.plan-picker {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}

.plan-picker__option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.plan-picker__option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-light);
}

.plan-picker__option input {
  accent-color: var(--accent);
}

.plan-picker__option--disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.plan-picker__option--disabled:has(input:checked) {
  border-color: var(--border);
  background: transparent;
}

.paystripe-slot {
  min-height: 120px;
  padding: var(--space-md);
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  margin-bottom: var(--space-sm);
}

.paystripe-slot:not([hidden]) {
  display: block;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
  }

  .features__grid .feature-card:nth-child(-n+3),
  .features__grid .feature-card:nth-child(4),
  .features__grid .feature-card:nth-child(5) {
    grid-column: auto;
  }

  .features__grid .feature-card:nth-child(5) {
    grid-column: 1 / -1;
    max-width: 360px;
    justify-self: center;
    width: 100%;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-h: 64px;
  }

  .section {
    min-height: auto;
    padding-block: 2.5rem;
    scroll-snap-align: none;
  }

  .hero {
    min-height: calc(100dvh - var(--nav-h));
  }

  html {
    scroll-snap-type: none;
  }

  .features__grid,
  .pricing__grid {
    grid-template-columns: 1fr;
  }

  .features__grid .feature-card:nth-child(5) {
    max-width: none;
    grid-column: auto;
  }

  .steps__grid {
    grid-template-columns: 1fr;
  }

  .step-card--center {
    max-width: none;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

}

/* ── App shell (landing vs dashboard) ── */
html.session-restored #landing-navbar,
html.session-restored .landing-page,
html.session-restored #site-footer,
body.app-mode #landing-navbar,
body.app-mode .landing-page,
body.app-mode #site-footer {
  display: none;
}

html.session-restored #dashboard-app,
body.app-mode .dashboard-app {
  display: flex;
}

html.session-restored #dashboard-app[hidden],
body.app-mode .dashboard-app[hidden] {
  display: flex;
}

body.app-mode {
  background: var(--brand-surface-luxe);
  overflow: hidden;
  height: 100vh;
}

.dashboard-app {
  display: none;
  min-height: 100vh;
  height: 100vh;
  width: 100%;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
  background: linear-gradient(165deg, var(--dash-cream-warm) 0%, var(--dash-cream) 40%, var(--dash-pink-whisper) 100%);
}

/* ── Sidebar ── */
.sidebar {
  --sidebar-w: 220px;
  --sidebar-w-collapsed: 64px;
  width: var(--sidebar-w);
  max-width: 250px;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(255, 253, 251, 0.98) 0%, rgba(251, 248, 243, 0.96) 55%, rgba(255, 249, 246, 0.96) 100%);
  border-right: 1px solid var(--brand-border-luxe);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  padding: 0.85rem 0.6rem;
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 110;
}

.sidebar--collapsed {
  width: var(--sidebar-w-collapsed);
}

.sidebar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.15rem 0.35rem 1rem;
  border-bottom: 1px solid var(--dash-pink-border);
  margin-bottom: 0.85rem;
}

.sidebar--collapsed .sidebar__top {
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.sidebar__brand {
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: #3d3538;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar--collapsed .sidebar__brand {
  opacity: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}

.sidebar__toggle {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: #8b6478;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.sidebar__toggle:hover {
  background: rgba(255, 245, 248, 0.95);
  color: #c44569;
}

.sidebar--collapsed .sidebar__toggle-icon {
  transform: rotate(180deg);
}

.sidebar__toggle-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.28s;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  padding: 0 0.15rem;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #5c4a52;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.sidebar__link:hover {
  background: var(--dash-pink-soft);
  color: #1f1a1d;
}

.sidebar__link.is-active {
  background: linear-gradient(135deg, rgba(255, 240, 248, 0.98) 0%, rgba(255, 230, 240, 0.82) 55%, rgba(251, 248, 243, 0.9) 100%);
  color: #b84a6a;
  box-shadow: 0 2px 14px var(--dash-pink-glow), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(245, 184, 204, 0.35);
}

.sidebar__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sidebar__text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.2s, width 0.2s;
}

.sidebar--collapsed .sidebar__text {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.sidebar--collapsed .sidebar__link {
  justify-content: center;
  padding-inline: 0.45rem;
}

.sidebar__footer {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--dash-pink-border);
}

.sidebar__user-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.25rem 0.15rem;
}

.sidebar--collapsed .sidebar__user-row {
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.sidebar__profile-menu {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1;
  min-width: 0;
  position: relative;
}

.sidebar--collapsed .sidebar__profile-menu {
  flex: none;
  flex-direction: column;
  gap: 0;
}

.sidebar__avatar-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #f5a8c4;
  box-shadow: 0 2px 8px rgba(196, 69, 105, 0.18);
  cursor: pointer;
  display: block;
  overflow: hidden;
  padding: 0;
  flex-shrink: 0;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  line-height: 0;
}

.sidebar__avatar-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(196, 69, 105, 0.28);
}

.profile-avatar__initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  user-select: none;
  pointer-events: none;
}

.profile-avatar__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

.sidebar__plan-row {
  padding: 0 0.35rem 0.75rem;
  margin-bottom: 0.35rem;
}

.sidebar__nav-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.65rem 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #5c4a52;
}

.sidebar__premium-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.45rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(214, 126, 151, 0.12);
}

.sidebar__plan-badge--section {
  display: inline-flex;
  width: calc(100% - 0.3rem);
  margin: 0 0.15rem 0.35rem;
  justify-content: center;
  padding: 0.32rem 0.5rem;
  border-radius: 10px;
  font-size: 0.62rem;
}

.sidebar--collapsed .sidebar__nav-label,
.sidebar--collapsed .sidebar__premium-block {
  display: none;
}

.sidebar__plan-badge--top {
  display: inline-flex;
  width: 100%;
  justify-content: center;
}

.sidebar--collapsed .sidebar__plan-row {
  display: none;
}

.sidebar__user-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.sidebar--collapsed .sidebar__user-meta {
  display: none;
}

.sidebar__user-name {
  font-size: 0.76rem;
  font-weight: 600;
  color: #3d3538;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar__user-plan {
  display: block;
  align-self: flex-start;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #b84a6a;
}

.sidebar__user-plan--premium {
  color: #d46a8a;
  background: none;
  border: none;
  box-shadow: none;
}

.sidebar__user-plan[hidden] {
  display: none;
}

.sidebar__plan-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffe8f2 0%, #ffd6e8 100%);
  color: #8b4a62;
}

.sidebar__plan-badge--premium {
  background: linear-gradient(135deg, #ffd4b0 0%, #ff9ec4 100%);
  color: #1f1a1d;
}

.sidebar__plan-badge--premium.sidebar__plan-badge--section {
  color: #1f1a1d;
}

.sidebar__settings-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.55);
  color: #8b6478;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.sidebar__settings-btn svg {
  width: 17px;
  height: 17px;
}

.sidebar__settings-btn:hover {
  background: var(--dash-pink-soft);
  color: #c44569;
}

.profile-menu {
  position: relative;
}

.profile-dropdown {
  position: absolute;
  min-width: 152px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(196, 69, 105, 0.08);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(31, 26, 29, 0.08);
  padding: 0.35rem;
  z-index: 120;
}

.profile-dropdown--sidebar {
  bottom: calc(100% + 0.45rem);
  left: 0;
  right: auto;
}

.profile-dropdown[hidden] {
  display: none;
}

.profile-dropdown__item {
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #3d3538;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.profile-dropdown__item:hover {
  background: #fff5f8;
}

.profile-dropdown__item--signout {
  color: #c44569;
}

/* ── Dashboard shell ── */
.dashboard-shell {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-w, 220px);
  width: calc(100% - var(--sidebar-w, 220px));
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  height: 100vh;
}

.sidebar--collapsed ~ .dashboard-shell {
  margin-left: var(--sidebar-w-collapsed, 64px);
  width: calc(100% - var(--sidebar-w-collapsed, 64px));
}

/* ── Dashboard main ── */
.dashboard-main {
  flex: 1;
  padding: var(--space-md) clamp(var(--space-sm), 2.25vw, var(--space-lg)) var(--space-xl);
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.dash-view[hidden],
.cpw-view[hidden],
.account-view[hidden] {
  display: none !important;
}

.dash-hero {
  margin-bottom: var(--section-gap);
}

.glass-card {
  background: linear-gradient(145deg, rgba(255, 253, 251, 0.65) 0%, rgba(251, 248, 243, 0.5) 100%);
  backdrop-filter: var(--brand-glass-blur);
  -webkit-backdrop-filter: var(--brand-glass-blur);
  border: 1px solid var(--brand-glass-border);
  border-radius: var(--radius-glass);
  box-shadow: var(--brand-glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.progress-card {
  padding: 1.35rem 1.5rem 1.25rem;
  margin-bottom: 1.25rem;
}

.onboarding-ready {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.onboarding-ready__head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.onboarding-ready__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe8f2 0%, #ffd6e8 100%);
  color: #8b4a62;
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
}

.onboarding-ready__title {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #3d3538;
}

.onboarding-ready__text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(92, 74, 82, 0.72);
}

.onboarding-ready__toggle {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: #b84a6a;
  cursor: pointer;
  text-decoration: underline;
  align-self: center;
}

.onboarding-ready__toggle:hover {
  color: #8b4a62;
}

.progress-card[hidden],
.onboarding-ready[hidden] {
  display: none !important;
}

.progress-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.progress-card__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.progress-card__close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 999px;
  background: rgba(245, 184, 204, 0.2);
  color: rgba(92, 74, 82, 0.65);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.progress-card__close:hover {
  background: rgba(245, 184, 204, 0.35);
}

#dashboard-view.dashboard-view--workflow-hidden .dashboard-quick-tip {
  margin-bottom: 1rem;
}

.progress-card__title {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #3d3538;
}

.progress-card__meta {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(92, 74, 82, 0.65);
}

.progress-card__pct {
  font-size: 0.88rem;
  font-weight: 600;
  color: #b84a6a;
  background: var(--dash-pink-soft);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
}

.progress-bar {
  height: 8px;
  background: var(--dash-pink-soft);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-bar__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffd6e8 0%, #f5a8c4 50%, #e895b0 100%);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.onboarding-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.onboarding-step {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #5c4a52;
  font: inherit;
  font-size: 0.84rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.25s ease, color 0.35s ease, opacity 0.35s ease;
  position: relative;
}

.onboarding-step__text {
  flex: 1;
}

.onboarding-step__badge {
  flex-shrink: 0;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(245, 184, 204, 0.22);
  color: rgba(92, 74, 82, 0.62);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.onboarding-step.is-complete .onboarding-step__badge {
  opacity: 1;
  transform: translateX(0);
}

.onboarding-step__burst {
  position: absolute;
  left: 1.35rem;
  top: 50%;
  width: 4px;
  height: 4px;
  pointer-events: none;
  opacity: 0;
}

.onboarding-step__burst.is-active {
  animation: onboardingBurst 0.7s ease-out forwards;
}

.onboarding-step__burst.is-active::before,
.onboarding-step__burst.is-active::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow:
    10px 0 0 #f5b8cc,
    -10px 0 0 #fadce8,
    0 10px 0 #f5a8c4,
    0 -10px 0 #ffd6e8,
    7px 7px 0 #f8d0dc,
    -7px 7px 0 #f5b8cc,
    7px -7px 0 #fadce8,
    -7px -7px 0 #f5a8c4;
}

@keyframes onboardingBurst {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.4); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.8); }
}

.onboarding-step:hover {
  background: var(--dash-pink-soft);
}

.onboarding-step__check {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1.5px solid rgba(196, 69, 105, 0.25);
  background: #fff;
  flex-shrink: 0;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}

.onboarding-step.is-complete .onboarding-step__check {
  background: linear-gradient(135deg, #ffd6e8, #f5a8c4);
  border-color: transparent;
}

.onboarding-step.just-completed .onboarding-step__check {
  animation: checkPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.onboarding-step.is-complete .onboarding-step__check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.onboarding-step.just-completed .onboarding-step__check::after {
  animation: checkDraw 0.35s ease 0.1s both;
}

@keyframes checkPop {
  0% { transform: scale(0.6); }
  55% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes checkDraw {
  from { opacity: 0; transform: rotate(45deg) scale(0.5); }
  to { opacity: 1; transform: rotate(45deg) scale(1); }
}

.onboarding-step.is-complete {
  color: rgba(92, 74, 82, 0.48);
  opacity: 0.82;
}

.onboarding-step.is-current:not(.is-complete) {
  background: var(--dash-pink-soft);
  font-weight: 600;
}

.onboarding-step.is-locked {
  opacity: 0.45;
  cursor: not-allowed;
}

.onboarding-step.is-locked:hover {
  background: transparent;
}

.streak-nudge {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  z-index: 1100;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  max-width: 260px;
  padding: 0.7rem 0.85rem 0.7rem 0.95rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(245, 184, 204, 0.45);
  box-shadow: 0 12px 32px rgba(245, 184, 204, 0.22);
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.32s ease, transform 0.32s ease;
  pointer-events: auto;
}

.streak-nudge.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.streak-nudge__text {
  margin: 0;
  flex: 1;
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 500;
  color: #3d3538;
}

.streak-nudge__close {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 999px;
  background: rgba(245, 184, 204, 0.2);
  color: rgba(92, 74, 82, 0.65);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.streak-nudge__close:hover {
  background: rgba(245, 184, 204, 0.35);
}

.dashboard-quick-tip {
  margin-bottom: 0.85rem;
  padding: 0.6rem 0.8rem;
  max-width: 480px;
  border-radius: 12px;
  border: 2.5px solid rgba(196, 69, 105, 0.42);
  background: linear-gradient(135deg, rgba(255, 249, 252, 0.9) 0%, rgba(251, 248, 243, 0.82) 100%);
  box-shadow: 0 4px 14px rgba(245, 184, 204, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.dashboard-quick-tip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.dashboard-quick-tip__title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #3d3538;
}

.dashboard-quick-tip__close {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 999px;
  background: rgba(245, 184, 204, 0.2);
  color: rgba(92, 74, 82, 0.65);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
}

.dashboard-quick-tip__close:hover {
  background: rgba(245, 184, 204, 0.35);
}

.dashboard-quick-tip__text {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: rgba(92, 74, 82, 0.78);
}

.dash-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.dash-panel__head .dash-panel__title {
  margin: 0;
}

.dash-panel__head--stacked {
  align-items: flex-start;
}

.dash-panel__subtitle {
  margin: 0.3rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(92, 74, 82, 0.68);
  font-weight: 500;
}

.top-opportunities__heading {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #b84a6a;
}

.top-opportunity-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(245, 184, 204, 0.22);
  background: rgba(255, 249, 252, 0.75);
}

.top-opportunity-row--high {
  border-color: rgba(196, 69, 105, 0.22);
  background: rgba(255, 240, 246, 0.85);
}

.top-opportunity-row__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #3d3538;
  line-height: 1.3;
}

.top-opportunity-row__niche {
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(92, 74, 82, 0.62);
}

.top-opportunity-row__score {
  font-size: 0.78rem;
  font-weight: 700;
  color: #9b4a62;
  margin-top: 0.1rem;
}

.dash-panel__footer-link {
  display: inline-block;
  margin-top: 0.85rem;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: #b84a6a;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dash-panel__footer-link:hover {
  color: #9a3d58;
}

.dash-panel__link {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: #b84a6a;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dash-panel__link:hover {
  color: #9a3d58;
}

.saved-brands-ranked {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.saved-brand-row {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(245, 184, 204, 0.22);
  background: rgba(255, 249, 252, 0.75);
}

.saved-brand-row--high {
  border-color: rgba(196, 69, 105, 0.22);
  background: rgba(255, 240, 246, 0.85);
}

.saved-brand-row--strong {
  border-color: rgba(214, 126, 151, 0.2);
}

.saved-brand-row__rank {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(92, 74, 82, 0.55);
  text-align: center;
}

.saved-brand-row__body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.saved-brand-row__name {
  font-size: 0.84rem;
  font-weight: 600;
  color: #3d3538;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-brand-row__tier {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(92, 74, 82, 0.52);
}

.saved-brand-row__score {
  font-size: 0.8rem;
  font-weight: 700;
  color: #b84a6a;
  white-space: nowrap;
}

.sidebar__nav-count {
  margin-left: auto;
  padding: 0.1rem 0.38rem;
  border-radius: 999px;
  background: rgba(245, 168, 196, 0.22);
  color: #9b4a62;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.2;
}

.sidebar--collapsed .sidebar__nav-count {
  display: none;
}

.bm-search-loaded {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(92, 74, 82, 0.62);
  white-space: nowrap;
}

.bm-search-loaded:empty {
  display: none;
}

.saved-brands-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.saved-brands-list__item {
  font-size: 0.9rem;
  font-weight: 600;
  color: #3d3538;
}

.cpw-share-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.cpw-share-modal[hidden] {
  display: none !important;
}

.cpw-share-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(61, 53, 56, 0.35);
}

.cpw-share-modal__panel {
  position: relative;
  width: min(480px, 100%);
  padding: 1.35rem 1.4rem 1.25rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(214, 126, 151, 0.22);
  box-shadow: 0 18px 48px rgba(61, 53, 56, 0.14);
}

.cpw-share-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: rgba(245, 184, 204, 0.2);
  color: rgba(92, 74, 82, 0.65);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.cpw-share-modal__title {
  margin: 0 0 1rem;
  padding-right: 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #3d3538;
}

.cpw-share-modal__label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(92, 74, 82, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cpw-share-field {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.cpw-share-field__input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(214, 126, 151, 0.25);
  border-radius: 10px;
  font-size: 0.82rem;
  color: #3d3538;
  background: #fff;
}

.cpw-share-message {
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  border: 1px solid rgba(214, 126, 151, 0.25);
  border-radius: 10px;
  font: inherit;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #3d3538;
  resize: none;
  background: #fff;
}

.cpw-share-field__btn {
  flex-shrink: 0;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--dash-pink-soft);
  color: #3d3538;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.cpw-share-field__btn--block {
  display: block;
  width: 100%;
  margin-bottom: 0.55rem;
}

.cpw-share-field__btn--outline {
  display: block;
  width: 100%;
  background: #fff;
}

.cpw-share-field__btn:hover {
  background: var(--dash-pink-whisper);
}

.app-toast-root,
.dashboard-toast-root {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  max-width: min(360px, calc(100vw - 2rem));
}

.dashboard-toast {
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--brand-glass-border);
  box-shadow: 0 10px 28px rgba(245, 184, 204, 0.2);
  font-size: 0.84rem;
  font-weight: 500;
  color: #3d3538;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.dashboard-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sidebar__link.is-locked {
  opacity: 0.42;
  cursor: not-allowed;
}

.sidebar__link.is-locked:hover {
  background: transparent;
}

.workflow-toast-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.workflow-toast {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(61, 53, 56, 0.92);
  color: #fff;
  font-size: 0.84rem;
  line-height: 1.45;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  max-width: 320px;
}

.coming-soon-popover {
  position: fixed;
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff5f9 0%, #ffe8f2 55%, #ffd6e8 100%);
  border: 1px solid rgba(245, 184, 204, 0.65);
  box-shadow: 0 10px 28px rgba(245, 184, 204, 0.38);
  color: #8b4a62;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-50%) translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.coming-soon-popover.is-visible {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.coming-soon-popover--centered.is-visible {
  transform: translate(-50%, -50%);
}

.coming-soon-popover__spark {
  font-size: 0.9rem;
  line-height: 1;
}

.workflow-notice {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(214, 106, 138, 0.35);
  background: rgba(214, 106, 138, 0.08);
  color: #8a3b55;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
}

.workflow-notice__text {
  margin: 0;
  flex: 1;
}

.workflow-notice__close {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
  opacity: 0.7;
}

.workflow-notice__close:hover {
  opacity: 1;
}

.overview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.overview-stat {
  padding: 1.15rem 1.25rem;
  border-top: 3px solid var(--accent);
}

.overview-stat__label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(92, 74, 82, 0.55);
}

.overview-stat__value {
  margin: 0 0 var(--space-2xs);
  transition: text-shadow 0.35s ease, color 0.35s ease;
}

.overview-stat__value--empty {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(92, 74, 82, 0.58);
}

.overview-stat__value.stat-glow,
.distribution-card__value.stat-glow,
#onboarding-completed.stat-glow {
  text-shadow: 0 0 12px rgba(245, 184, 204, 0.55);
  color: #5c4a52;
}

.overview-stat__desc {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(92, 74, 82, 0.58);
}

.dash-content-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: var(--section-gap);
  margin-bottom: var(--section-gap);
}

.dash-panel {
  padding: var(--panel-padding-lg);
}

.dash-panel__title {
  margin: 0 0 var(--space-sm);
  font-size: var(--text-h2);
  font-weight: 600;
  color: var(--text-app-primary);
}

.opportunity-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 180px;
}

.opportunity-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: var(--brand-glass-bg);
  backdrop-filter: var(--brand-glass-blur);
  -webkit-backdrop-filter: var(--brand-glass-blur);
  border: 1px solid var(--brand-glass-border);
  box-shadow: var(--brand-glass-shadow);
}

.opportunity-card__name {
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0;
  color: #3d3538;
}

.opportunity-card__fit {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #c44569;
}

.opportunity-card__niche {
  margin: 0 0 0.15rem;
  font-size: 0.78rem;
  color: rgba(92, 74, 82, 0.6);
}

.opportunity-card__cta {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: #c44569;
  cursor: pointer;
  transition: color 0.2s ease;
}

.opportunity-card__cta:hover {
  color: #a83254;
}

.status-pill {
  display: inline-flex;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-pill--new { background: #e8f4fd; color: #1565c0; }
.status-pill--saved { background: #f3e8ff; color: #7b1fa2; }
.status-pill--pitched { background: #e8f5e9; color: #2e7d32; }

.dashboard-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--dash-cream-warm) 0%, var(--dash-pink-whisper) 100%);
  border: 1px dashed var(--dash-pink-border);
}

.dashboard-empty__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  background: linear-gradient(135deg, #ffe8f2, #ffd6e8);
  color: #c44569;
  font-size: 1.35rem;
}

.dashboard-empty__title {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #3d3538;
}

.dashboard-empty__text {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(92, 74, 82, 0.62);
  max-width: 260px;
  line-height: 1.5;
}

.action-cards {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.action-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--brand-glass-border);
  border-radius: 14px;
  background: var(--brand-glass-bg);
  backdrop-filter: var(--brand-glass-blur);
  -webkit-backdrop-filter: var(--brand-glass-blur);
  box-shadow: var(--brand-glass-shadow);
  text-align: left;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.action-card:hover {
  transform: translateY(-3px);
  background: #fff;
  border-color: rgba(245, 184, 204, 0.45);
  box-shadow: 0 10px 28px rgba(245, 184, 204, 0.18);
}

.action-card:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 184, 204, 0.14);
}

.action-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--dash-pink-soft), var(--accent-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #c44569;
}

.action-card__icon svg {
  width: 18px;
  height: 18px;
}

.action-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.action-card__title {
  font-size: 0.84rem;
  font-weight: 600;
  color: #3d3538;
}

.action-card__desc {
  font-size: 0.74rem;
  color: rgba(92, 74, 82, 0.58);
  line-height: 1.4;
}

.distribution-section {
  margin-top: 0.25rem;
}

.distribution-section__title {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #3d3538;
}

.distribution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.distribution-card {
  padding: 1.15rem 1.25rem 1rem;
  border-top: 3px solid var(--dash-pink-border);
}

.distribution-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.distribution-card__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(92, 74, 82, 0.72);
}

.distribution-card__value {
  font-size: 1.65rem;
  font-weight: 600;
  transition: color 0.35s ease, text-shadow 0.35s ease;
}

.distribution-card--high { border-top-color: var(--score-high); }
.distribution-card--medium { border-top-color: var(--score-strong); }
.distribution-card--low { border-top-color: var(--score-moderate); }

.distribution-card--high .distribution-card__value { color: #6a9f7a; }
.distribution-card--medium .distribution-card__value { color: #c96a8a; }
.distribution-card--low .distribution-card__value { color: #c9a84a; }

.distribution-card__bar-wrap {
  height: 6px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.45rem;
}

.distribution-card__bar {
  height: 100%;
  border-radius: inherit;
  width: 0;
  transition: width 0.85s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease;
}

.distribution-card--high .distribution-card__bar {
  background: linear-gradient(90deg, var(--score-high-bg), var(--score-high));
}

.distribution-card--medium .distribution-card__bar {
  background: linear-gradient(90deg, var(--score-strong-bg), var(--score-strong));
}

.distribution-card--low .distribution-card__bar {
  background: linear-gradient(90deg, var(--score-moderate-bg), var(--score-moderate));
}

.distribution-card__pct {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(92, 74, 82, 0.5);
}

.account-back {
  border: 1px solid var(--brand-secondary-border);
  background: var(--brand-secondary-bg);
  padding: 0.45rem 0.85rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.account-back:hover {
  border-color: var(--accent);
  background: var(--dash-pink-whisper);
  text-decoration: none;
}

.account-hero {
  margin-bottom: 1.75rem;
}

.account-hero__title {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.3rem;
  color: #3d3538;
}

.account-hero__subtitle {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(92, 74, 82, 0.65);
}

.account-form {
  max-width: 640px;
}

.account-form__section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid rgba(214, 126, 151, 0.14);
}

.account-form__section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.account-form__section-title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #3d3538;
}

.account-form__section-desc {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(92, 74, 82, 0.68);
}

.account-form__avatar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0;
  border-bottom: none;
}

.account-form__avatar-preview {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: none;
  background: #f5a8c4;
  box-shadow: 0 3px 12px rgba(196, 69, 105, 0.16);
  display: block;
  overflow: hidden;
  position: relative;
  line-height: 0;
}

.account-form__avatar-preview .profile-avatar__initials {
  font-size: 1.2rem;
}

.account-form__avatar-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-form__upload {
  font-size: 0.82rem;
  font-weight: 500;
  color: #c44569;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-form__fields {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 1.25rem;
}

.account-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.account-field__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(92, 74, 82, 0.55);
}

.account-field__hint {
  font-size: 0.75rem;
  color: rgba(92, 74, 82, 0.6);
  margin-top: 0.2rem;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}

.account-field__input--locked,
.account-field__input[readonly] {
  color: rgba(61, 53, 56, 0.72);
  cursor: not-allowed;
  opacity: 1;
}

.account-field__value {
  margin: 0;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--dash-pink-border);
  font-size: 0.92rem;
  font-weight: 500;
  color: #3d3538;
}

.account-field__input {
  width: 100%;
  padding: 0.65rem 0;
  border: none;
  border-bottom: 1px solid var(--dash-pink-border);
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  color: #3d3538;
  border-radius: 0;
  transition: border-color 0.2s;
}

.account-field__input:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.account-field__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b6478' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.2rem;
}

.account-field__password {
  display: block;
}

.account-field__password .account-field__input {
  padding-right: 3.5rem;
}

.account-form__error {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: #c44569;
}

.account-form__success {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: #4a8f5c;
}

.account-form__submit {
  width: auto;
  min-width: 140px;
  padding: 0.55rem 1.35rem;
  font-size: 0.82rem;
}

.account-billing {
  margin-bottom: 1.75rem;
}

.account-billing__fields {
  margin-bottom: 0.75rem;
}

.account-billing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}

.account-billing__btn {
  padding: 0.55rem 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--dash-pink-border);
  background: var(--dash-pink-soft);
  color: var(--text);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.account-billing__btn:hover {
  background: var(--dash-pink-whisper);
  border-color: var(--accent);
}

.account-billing__btn--muted {
  background: transparent;
  border-color: var(--border);
  color: rgba(61, 53, 56, 0.72);
}

.account-billing__btn--muted:hover {
  background: rgba(245, 184, 204, 0.12);
  border-color: rgba(245, 184, 204, 0.45);
  color: var(--text);
}

.tool-placeholder {
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 480px;
  background: var(--dash-cream-warm);
  border: 1px solid var(--dash-pink-border);
}

.tool-placeholder__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dash-pink-soft), var(--accent-mid));
  color: #c44569;
  font-size: 1.25rem;
}

.tool-placeholder__text {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  color: rgba(92, 74, 82, 0.65);
  line-height: 1.55;
}

@media (max-width: 960px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    box-shadow: 8px 0 32px rgba(31, 26, 29, 0.08);
  }

  .overview-stats,
  .distribution-grid {
    grid-template-columns: 1fr;
  }

  .dash-content-grid {
    grid-template-columns: 1fr;
  }

  .os-layout {
    grid-template-columns: 1fr;
  }

  .os-usage-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .dashboard-main {
    padding: 1.25rem 1rem 2.5rem;
  }
}

/* ── Opportunity Search (Tool 1) ── */
.os-root {
  --os-ink: var(--text);
  --os-ink-soft: rgba(31, 26, 29, 0.62);
  --os-paper: var(--dash-cream);
  --os-paper-raised: #FFFFFF;
  --os-line: var(--dash-pink-border);
  --os-accent: var(--accent);
  --os-accent-deep: #c44569;
  --os-accent-tint: var(--dash-pink-soft);
  --os-error: #B3492F;
  --os-radius-lg: 18px;
  --os-radius-md: 14px;
  --os-radius-sm: 10px;
  --os-shadow-card: 0 8px 28px rgba(245, 184, 204, 0.12);
  --os-shadow-modal: 0 20px 56px rgba(245, 184, 204, 0.2);
  position: relative;
  min-height: calc(100vh - 2rem);
  width: 100%;
  background: transparent;
  font-family: var(--font);
  color: var(--os-ink);
  border-radius: 18px;
  overflow: visible;
}

.os-bg-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 720px 420px at 50% -5%, rgba(255, 214, 232, 0.35), transparent 62%),
    radial-gradient(ellipse 480px 280px at 100% 80%, rgba(255, 240, 248, 0.4), transparent 55%),
    radial-gradient(ellipse 360px 220px at 0% 60%, var(--brand-gold-whisper), transparent 70%);
}

.os-page {
  position: relative;
  padding: var(--space-2xs) 0 var(--space-xl);
}

.os-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(228px, 268px);
  gap: 18px;
  align-items: start;
  margin-top: 0;
}

.os-aside-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  position: sticky;
  top: 24px;
  align-self: start;
}

@media (max-width: 900px) {
  .os-layout {
    grid-template-columns: 1fr;
  }

  .os-aside-col {
    position: static;
  }
}

.os-results-panel {
  margin-top: 1.25rem;
  padding: 1.15rem 1.25rem;
}

.os-results-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: #3d3538;
}

.os-results-count {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(92, 74, 82, 0.65);
}

.os-results-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.os-results-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: rgba(255, 249, 252, 0.8);
  border: 1px solid rgba(245, 184, 204, 0.22);
  font-size: 0.82rem;
}

.os-results-brand {
  font-weight: 600;
  color: #3d3538;
}

.os-results-tier {
  color: rgba(92, 74, 82, 0.72);
}

.os-search-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xs);
  min-width: 0;
  max-width: var(--container-form);
}

.os-search-form .os-row.os-row--fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-bottom: 0;
}

.os-search-form .os-field--region,
.os-search-form .os-field--depth,
.os-search-form .os-field--toggle {
  max-width: 100%;
}

.os-search-form .os-field--region {
  margin-bottom: 0.25rem;
  padding-bottom: 0.75rem;
}

.os-search-form .os-field--toggle {
  margin-top: 0.15rem;
  padding-top: 0;
}

.os-search-form .os-field--toggle .os-toggle-row {
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-height: auto;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(61, 53, 56, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.os-search-form .os-field--toggle .os-toggle-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(92, 74, 82, 0.78);
}

.os-search-form .os-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px 14px;
  align-items: start;
  margin-bottom: 0;
}

.os-search-form .os-field,
.os-search-form .os-field-half {
  margin-bottom: 0;
  min-width: 0;
  overflow: visible;
}

.os-search-form .os-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
  line-height: 1.25;
  font-size: 0.68rem;
}

.os-search-form .os-input,
.os-search-form .os-select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 0.82rem;
  padding: 8px 10px;
  min-height: 36px;
  line-height: 1.35;
}

.os-search-form .os-select {
  padding-right: 32px;
  height: auto;
  text-overflow: ellipsis;
}

.os-search-form .os-select-wrap {
  overflow: visible;
  width: 100%;
  max-width: 100%;
}

.os-search-form .os-field--category:has(.brand-select.is-open) {
  position: relative;
  z-index: 140;
}

.os-search-form .os-field-hint {
  font-size: 0.66rem;
  line-height: 1.4;
  margin-top: 4px;
  margin-bottom: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.os-search-form .brand-select {
  max-width: 100%;
}

.os-search-form .brand-select__trigger {
  min-height: 36px;
  padding: 8px 10px;
  font-size: 0.82rem;
  gap: 6px;
}

.os-search-form .brand-select__value {
  font-size: 0.82rem;
}

.os-search-form .brand-select__chevron svg {
  width: 14px;
  height: 14px;
}

.os-search-form .os-depth-btns {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}

.os-search-form .os-depth-btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 10px 10px;
  font-size: 0.86rem;
}

.os-search-form .os-region-btns {
  flex-wrap: wrap;
  gap: 8px;
}

.os-search-form .os-region-btn {
  font-size: 0.78rem;
  padding: 7px 11px;
}

.os-search-form .os-field--toggle .os-toggle-row {
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  max-width: max-content;
}

.os-search-form .os-field--toggle .os-toggle-desc {
  line-height: 1.35;
  white-space: normal;
}

.os-field--toggle {
  padding-top: 0;
  margin-top: 2px;
}

.os-search-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 28px;
  align-items: start;
  margin-bottom: 8px;
}

.os-search-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

@media (max-width: 768px) {
  .os-search-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .os-search-form .os-row.os-row--fields,
  .os-search-form .os-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.os-search-grid .os-field {
  margin-bottom: 0;
}

.os-field--category { min-width: 0; }

.os-search-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.os-search-actions .os-cta {
  width: auto;
  min-width: 200px;
  padding: 11px 20px;
  font-size: 0.86rem;
}

.os-cta:disabled,
.os-cta.is-locked {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.4);
}

.os-cta.is-searching {
  opacity: 0.82;
  cursor: wait;
}

.os-search-actions .os-cta.is-searching svg {
  transform: none;
}

.os-header {
  text-align: left;
  max-width: none;
}

.os-subtitle {
  color: var(--text-secondary);
  max-width: var(--container-prose);
}

.os-usage-head .os-plan-badge[hidden] {
  display: none;
}

.os-usage-card {
  background: var(--brand-glass-bg);
  backdrop-filter: var(--brand-glass-blur);
  -webkit-backdrop-filter: var(--brand-glass-blur);
  border: 1px solid var(--brand-glass-border);
  border-radius: var(--os-radius-lg);
  box-shadow: var(--brand-glass-shadow);
  padding: 22px 22px 20px;
  position: static;
}

.os-tips-card {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--dash-pink-border);
}

.os-tips-title {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(61, 53, 56, 0.72);
}

.os-tips-card p {
  margin: 0 0 8px;
  font-size: 0.76rem;
  line-height: 1.42;
  color: rgba(92, 74, 82, 0.68);
}

.os-tips-card p:last-child {
  margin-bottom: 0;
}

.os-search-tips {
  padding: 14px 14px 12px;
  border-radius: var(--os-radius-lg);
  border: 1px solid var(--brand-border-luxe);
  background: linear-gradient(145deg, rgba(255, 253, 251, 0.65) 0%, rgba(251, 248, 243, 0.52) 100%);
  backdrop-filter: var(--brand-glass-blur);
  -webkit-backdrop-filter: var(--brand-glass-blur);
  box-shadow: var(--brand-glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.os-search-tips__title {
  margin: 0 0 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(61, 53, 56, 0.68);
}

.os-search-tips__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.os-search-tips__list li {
  font-size: 0.7rem;
  line-height: 1.35;
  color: rgba(92, 74, 82, 0.72);
}

.os-search-tips__list strong {
  color: #3d3538;
  font-weight: 600;
}

.os-usage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.os-usage-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--os-ink);
}

.os-plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--dash-pink-soft);
  color: #8b4a62;
  border: 1px solid var(--dash-pink-border);
}

.os-plan-badge--premium {
  background: linear-gradient(135deg, #ffd4b0 0%, #ff9ec4 100%);
  color: #fff;
  border-color: transparent;
}

.os-usage-block {
  margin-bottom: 18px;
}

.os-usage-block--simple {
  margin-bottom: 16px;
}

.os-usage-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.os-usage-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(92, 74, 82, 0.58);
}

.os-usage-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--os-ink);
  white-space: nowrap;
}

.os-usage-bar {
  height: 7px;
  background: var(--dash-pink-soft);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}

.os-usage-bar__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffd6e8 0%, #f5a8c4 50%, #e895b0 100%);
  transition: width 0.35s ease;
}

.os-usage-note {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(92, 74, 82, 0.52);
}

.os-usage-reset {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--dash-pink-border);
}

.os-usage-reset-date {
  margin: 6px 0 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--os-ink);
}

.os-card-inner { padding: var(--panel-padding-lg); }

.os-field { margin-bottom: 28px; }
.os-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.os-field-half { margin-bottom: 0; }

.os-depth-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.os-depth-btn {
  flex: 1;
  min-width: 72px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(61, 53, 56, 0.14);
  background: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--os-ink);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.os-depth-btn.is-active {
  border-color: rgba(214, 106, 138, 0.55);
  background: rgba(214, 106, 138, 0.08);
}

.os-depth-btn.is-locked {
  opacity: 0.5;
  cursor: not-allowed;
}

.os-region-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.os-region-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(61, 53, 56, 0.14);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--os-ink);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.os-region-btn.is-active {
  border-color: rgba(214, 106, 138, 0.55);
  background: rgba(214, 106, 138, 0.08);
}

.os-region-btn.is-locked:not(.is-active) {
  opacity: 0.55;
  cursor: not-allowed;
}

.os-region-btn.is-locked.is-active {
  cursor: default;
}

.os-region-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(61, 53, 56, 0.08);
  color: var(--os-ink-soft);
}

.os-region-badge--default {
  background: rgba(214, 106, 138, 0.12);
  color: #8a3b55;
}

.os-toggle-row--solo {
  justify-content: flex-end;
  padding: 8px 0 0;
  border: none;
  background: transparent;
}

.os-field-hint {
  margin: 6px 0 0;
  font-size: 0.74rem;
  color: var(--os-ink-soft);
  line-height: 1.4;
}

.os-field-hint code {
  font-size: 0.72rem;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(61, 53, 56, 0.06);
}

.bm-price,
.bm-rating {
  font-weight: 600;
  color: var(--bm-ink-soft);
}

.os-depth-range-wrap {
  padding: 18px 18px 14px;
  border: 1px solid var(--os-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
}

.os-depth-range {
  width: 100%;
  height: 24px;
  accent-color: var(--accent);
  cursor: pointer;
  appearance: none;
  background: transparent;
}

.os-depth-range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffd6e8, #e895b0);
}

.os-depth-range::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -7px;
  border-radius: 50%;
  background: #c44569;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(196, 69, 105, 0.28);
}

.os-depth-range::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffd6e8, #e895b0);
}

.os-depth-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #c44569;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(196, 69, 105, 0.28);
}

.os-depth-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: rgba(61, 53, 56, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
}

.os-depth-labels .is-locked {
  color: rgba(61, 53, 56, 0.42);
}

.os-depth-labels small {
  display: block;
  margin-top: 2px;
  font-size: 0.54rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.os-label-optional {
  margin-left: 6px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(61, 53, 56, 0.45);
}

/* ── Location toggles ── */
.os-toggle-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--os-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
}

.os-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.os-toggle-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.os-toggle-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--os-ink);
}

.os-toggle-desc {
  font-size: 0.72rem;
  color: rgba(61, 53, 56, 0.55);
}

.os-toggle-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f6d9e5, #efc3d6);
  color: #a03a5e;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

.os-toggle-badge--default {
  background: rgba(61, 53, 56, 0.08);
  color: rgba(61, 53, 56, 0.6);
}

.os-toggle {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  border: none;
  border-radius: 999px;
  background: rgba(61, 53, 56, 0.18);
  cursor: pointer;
  transition: background 0.2s ease;
}

.os-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(31, 26, 29, 0.22);
  transition: transform 0.2s ease;
}

.os-toggle.is-on {
  background: #c44569;
}

.os-toggle.is-on::after {
  transform: translateX(20px);
}

.os-toggle.is-locked {
  cursor: not-allowed;
  opacity: 0.72;
}

.os-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(31, 26, 29, 0.55);
  margin-bottom: 10px;
  white-space: nowrap;
}

.os-input,
.os-select {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--os-ink);
  background: var(--dash-cream-warm);
  border: 1px solid var(--os-line);
  border-radius: var(--os-radius-sm);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.os-input { padding: 15px 18px; }

.os-card {
  width: 100%;
  background: var(--brand-glass-bg);
  backdrop-filter: var(--brand-glass-blur);
  -webkit-backdrop-filter: var(--brand-glass-blur);
  border: 1px solid var(--brand-glass-border);
  border-radius: var(--os-radius-lg);
  box-shadow: var(--brand-glass-shadow);
  position: relative;
  overflow: hidden;
}

.os-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand-gold-soft), var(--accent-mid), var(--accent), transparent);
}

.os-input-icon { padding-left: 42px; }
.os-input:focus,
.os-select:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--dash-pink-glow);
}

.os-combobox { position: relative; }

.os-field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #c44569;
  pointer-events: none;
}

.os-listbox {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--os-line);
  border-radius: var(--os-radius-sm);
  box-shadow: var(--os-shadow-card);
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 240px;
  overflow-y: auto;
}

.os-listbox[hidden] { display: none; }

.os-option {
  padding: 10px 12px;
  font-size: 0.88rem;
  border-radius: 8px;
  cursor: pointer;
}

.os-option:hover { background: var(--os-accent-tint); color: var(--os-accent-deep); }

.os-select-wrap { position: relative; }

.os-select-wrap:has(.brand-select) .os-select-chevron {
  display: none;
}

/* ── Branded custom select ── */
.brand-select {
  position: relative;
  width: 100%;
}

.brand-select__native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 13px 14px;
  border-radius: var(--os-radius-sm, 10px);
  border: 1px solid var(--brand-secondary-border);
  background: linear-gradient(145deg, #fffefc 0%, var(--brand-cream-luxe) 100%);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.brand-select__trigger:hover {
  border-color: rgba(245, 184, 204, 0.75);
  background: linear-gradient(145deg, #ffffff 0%, #fff9f6 100%);
}

.brand-select__trigger:focus-visible,
.brand-select.is-open .brand-select__trigger {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--dash-pink-glow), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.brand-select__trigger.is-placeholder .brand-select__value {
  color: rgba(31, 26, 29, 0.42);
}

.brand-select__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-select__chevron {
  flex-shrink: 0;
  color: rgba(92, 74, 82, 0.55);
  transition: transform 0.2s ease;
}

.brand-select.is-open .brand-select__chevron {
  transform: rotate(180deg);
}

.brand-select.is-open {
  position: relative;
  z-index: 150;
}

.brand-select__menu {
  position: absolute;
  z-index: 160;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 12px;
  border: 1px solid var(--brand-border-luxe);
  background: linear-gradient(165deg, #ffffff 0%, #fffdfb 55%, var(--brand-cream-luxe) 100%);
  box-shadow: 0 14px 36px rgba(245, 184, 204, 0.22), 0 4px 14px rgba(196, 165, 116, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  max-height: 240px;
  overflow-y: auto;
}

.brand-select__menu[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.brand-select__menu.is-portaled {
  position: fixed;
  z-index: 10000;
}

.os-layout > .os-card:has(.brand-select.is-open) {
  position: relative;
  z-index: 30;
}

.brand-select__option {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.brand-select__option:hover,
.brand-select__option.is-selected {
  background: linear-gradient(135deg, var(--dash-pink-soft) 0%, rgba(251, 248, 243, 0.95) 100%);
  color: #9b4a62;
}

.brand-select__option.is-selected {
  box-shadow: inset 0 0 0 1px rgba(245, 184, 204, 0.35);
}

.brand-select__option.is-disabled {
  opacity: 0.55;
  cursor: default;
}

.os-search-form .brand-select__trigger,
.os-search-form .brand-select__menu {
  width: 100%;
}

.bm-inline-search__select.brand-select__native + .brand-select__trigger,
.bm-root .brand-select__trigger {
  min-height: 32px;
  height: 32px;
  font-size: 12px;
  padding: 0 10px;
}

.os-select {
  appearance: none;
  padding: 15px 40px 15px 18px;
  cursor: pointer;
}

.os-select:invalid { color: rgba(31, 26, 29, 0.4); }

.os-select-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--os-ink-soft);
  pointer-events: none;
}

.os-helper { font-size: 0.82rem; color: var(--os-ink-soft); margin: 8px 0 0; }
.os-helper-block { margin: 10px 0 28px; }

.os-error {
  font-size: 0.78rem;
  color: var(--os-error);
  margin: 7px 0 0;
  font-weight: 500;
}

.os-error[hidden] { display: none; }

.os-cta:hover svg { transform: translateX(3px); }
.os-cta svg { transition: transform 0.22s ease; }

.os-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(31, 26, 29, 0.35);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.os-modal-overlay[hidden] { display: none; }

.os-modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--dash-cream-warm);
  border: 1px solid var(--os-line);
  border-radius: var(--os-radius-lg);
  box-shadow: var(--os-shadow-modal);
  padding: 36px 32px 32px;
}

.os-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dash-pink-soft);
  border: 1px solid var(--os-line);
  border-radius: 50%;
  color: var(--os-ink-soft);
  cursor: pointer;
}

.os-modal-close:hover { background: var(--accent-mid); color: var(--os-accent-deep); }

.os-eyebrow-modal {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--os-accent-deep);
  padding: 4px 10px;
  border: 1px solid var(--dash-pink-border);
  border-radius: 999px;
  margin-bottom: 14px;
  background: var(--dash-pink-soft);
}

.os-modal-title {
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.35rem;
  margin: 0 0 10px;
  line-height: 1.2;
  color: var(--text);
}

.os-modal-subtitle {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--os-ink-soft);
  margin: 0 0 28px;
}

.os-modal-form .os-field { margin-bottom: 20px; }
.os-modal-form .os-row { gap: 16px; }
.os-cta-modal { margin-top: 6px; }

@media (max-width: 900px) {
  .os-layout { grid-template-columns: 1fr; }
  .os-search-grid { grid-template-columns: 1fr; }
  .os-usage-card { position: static; }
}

@media (max-width: 600px) {
  .os-page { padding: 24px 16px 48px; }
  .os-layout { grid-template-columns: 1fr; }
  .os-search-grid { grid-template-columns: 1fr; }
  .os-usage-card { position: static; }
  .os-card-inner { padding: 24px 20px; }
  .os-row:not(.os-row--fields) { grid-template-columns: 1fr; }
  .os-search-form .os-row.os-row--fields {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .os-modal-card { padding: 28px 22px 24px; }
}

/* ── Brand Matches (Tool 2) ── */
.bm-root {
  --bm-cream: var(--dash-cream);
  --bm-surface: #fff;
  --bm-surface-soft: var(--dash-cream-soft);
  --bm-line: var(--dash-pink-border);
  --bm-ink: var(--text);
  --bm-ink-soft: rgba(31, 26, 29, 0.62);
  --bm-ink-faint: rgba(31, 26, 29, 0.45);
  --bm-accent: var(--accent);
  --bm-accent-mid: var(--accent-mid);
  --bm-accent-soft: var(--dash-pink-soft);
  --bm-accent-whisper: var(--dash-pink-whisper);
  --bm-accent-deep: #c44569;
  --bm-score-high: var(--score-high);
  --bm-score-high-bg: var(--score-high-bg);
  --bm-score-strong: var(--score-strong);
  --bm-score-strong-bg: var(--score-strong-bg);
  --bm-score-moderate: var(--score-moderate);
  --bm-score-moderate-bg: var(--score-moderate-bg);
  --bm-score-low: var(--score-low);
  --bm-score-low-bg: var(--score-low-bg);
  --bm-radius-lg: 20px;
  --bm-radius-md: 14px;
  --bm-shadow-card: 0 8px 28px rgba(245, 184, 204, 0.12);
  --bm-shadow-card-hover: 0 12px 32px rgba(245, 184, 204, 0.22);
  position: relative;
  padding-bottom: 48px;
}

.bm-wrap {
  padding-bottom: var(--space-xl);
}

.bm-subtitle {
  font-weight: 500;
  color: var(--bm-ink-soft);
  margin: 0 0 var(--space-xs);
}

.bm-search-context {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin: 0 0 20px;
  padding: 0;
  max-width: 640px;
}

.bm-search-context__label {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bm-ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bm-search-context__category,
.bm-search-context__keywords,
.bm-search-context__count {
  margin: 0;
  line-height: 1.4;
}

.bm-search-context__category {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bm-ink);
}

.bm-search-context__keywords {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--bm-ink-soft);
}

.bm-search-context__count {
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bm-ink-faint);
}

.bm-search-context__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bm-search-context__chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(214, 106, 138, 0.25);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bm-ink);
}

.bm-title-rule {
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: var(--gradient-text-hero);
  margin-bottom: 12px;
}

.bm-page-head {
  margin-bottom: 0.5rem;
}

.bm-page-head .bm-title {
  margin-bottom: 0.5rem;
}

.bm-page-head .bm-subtitle {
  margin-bottom: 0;
}

.bm-score-key {
  flex-shrink: 0;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid rgba(245, 184, 204, 0.28);
  background: rgba(255, 252, 254, 0.88);
}

.bm-score-key__label {
  margin: 0 0 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--bm-ink-faint);
}

.bm-score-key__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bm-score-key__list li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  color: var(--bm-ink-soft);
  line-height: 1.3;
  white-space: nowrap;
}

.bm-score-key__list .bm-legend-dot {
  width: 7px;
  height: 7px;
}

.bm-search-row {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr) auto;
  align-items: end;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  padding-bottom: 0;
  border-bottom: none;
  max-width: var(--container-form);
}

.bm-search-row--unified {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.5rem;
  width: 100%;
  max-width: min(100%, 680px);
  margin-bottom: 0.85rem;
}

.bm-search-row--unified .bm-search-field--unified {
  display: block;
  min-width: 0;
  width: 100%;
}

.bm-search-row--unified .bm-inline-search__input,
.bm-search-row--unified .bm-btn-search {
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  box-sizing: border-box;
}

.bm-search-row--unified .bm-inline-search__input {
  width: 100%;
  min-width: 0;
  margin: 0;
  border-radius: 8px;
}

.bm-search-row--unified .bm-btn-search {
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.85rem;
  margin: 0;
  line-height: 1;
  border-radius: 8px;
}

.bm-results-layout {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: var(--space-md);
  align-items: start;
}

.bm-results-sidebar {
  position: sticky;
  top: 0.75rem;
}

.bm-mini-search {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.bm-mini-search__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bm-ink-faint);
}

.bm-mini-search__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
}

.bm-mini-search__input {
  width: 100%;
  min-height: var(--btn-height-xs);
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(196, 69, 105, 0.2);
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 0.78rem;
  color: var(--bm-ink);
}

.bm-mini-search__input::placeholder {
  color: rgba(92, 74, 82, 0.48);
}

.bm-mini-search__input:focus {
  outline: 2px solid rgba(196, 69, 105, 0.28);
  outline-offset: 1px;
}

.bm-mini-search__btn {
  align-self: center;
}

.bm-mini-search__hint {
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--bm-ink-faint);
}

.bm-results-main {
  min-width: 0;
}

.bm-search-row .bm-search-field {
  display: grid;
  grid-template-rows: 14px 32px;
  gap: 4px;
  width: auto;
  flex: initial;
}

.bm-search-row .bm-search-field--product {
  width: auto;
}

.bm-search-row .bm-search-field__label {
  display: flex;
  align-items: flex-end;
  height: 14px;
  line-height: 1;
  margin: 0;
}

.bm-legend--strip {
  margin-bottom: 0.5rem;
  padding-bottom: 0;
  border-bottom: none;
  max-width: 100%;
}

.bm-legend--strip .bm-legend-label {
  margin-bottom: 6px;
  font-size: 10px;
  color: var(--bm-ink-faint);
}

.bm-legend--strip .bm-legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bm-legend--strip .bm-legend-row::-webkit-scrollbar {
  display: none;
}

.bm-legend--strip .bm-legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 252, 254, 0.75);
  border: 1px solid rgba(245, 184, 204, 0.2);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  flex: 0 0 auto;
}

.bm-legend--strip .bm-legend-text .label {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.bm-profile-panel {
  background: var(--brand-glass-bg);
  backdrop-filter: var(--brand-glass-blur);
  -webkit-backdrop-filter: var(--brand-glass-blur);
  border: 1px solid var(--brand-glass-border);
  border-radius: var(--bm-radius-lg);
  padding: 24px 26px;
  margin-bottom: 28px;
  box-shadow: var(--brand-glass-shadow);
}

.bm-profile-panel::before {
  display: none;
}

.bm-profile-label,
.bm-legend-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--bm-accent-deep);
  margin-bottom: 10px;
}

.bm-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: end;
}

.bm-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bm-ink-faint);
  margin-bottom: 7px;
}

.bm-field input,
.bm-field select {
  width: 100%;
  background: var(--bm-cream);
  border: 1px solid var(--dash-pink-border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bm-ink);
  appearance: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.bm-field input:focus,
.bm-field select:focus {
  border-color: var(--bm-accent);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px var(--dash-pink-glow);
}

.bm-field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C7176' stroke-width='2'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 30px;
}

.bm-search-panel {
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1px solid var(--brand-glass-border);
  background: var(--brand-glass-bg);
  backdrop-filter: var(--brand-glass-blur);
  -webkit-backdrop-filter: var(--brand-glass-blur);
  max-width: 520px;
}

.bm-actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 10px 14px;
  margin-bottom: 0;
}

.bm-search-fields {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: none;
  width: auto;
}

.bm-search-field,
.bm-search-field--product {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 0 0 auto;
  min-width: 0;
}

.bm-search-field__label {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--bm-ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bm-actions-bar__buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  margin-left: auto;
}

.bm-inline-search__select,
.bm-inline-search__input {
  background: var(--brand-secondary-bg);
  border: 1px solid var(--brand-secondary-border);
  border-radius: 8px;
  color: var(--bm-ink);
  font-size: 12px;
  font-weight: 600;
  height: 32px;
  box-sizing: border-box;
  padding: 0 10px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.bm-inline-search__select {
  min-width: 0;
  width: 100%;
  padding-right: 24px;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C7176' stroke-width='2'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 7px center;
  background-size: 12px;
}

.bm-inline-search__input {
  width: 100%;
  min-width: 0;
}

.bm-inline-search__select:focus,
.bm-inline-search__input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}

.bm-inline-search__select:disabled,
.bm-inline-search__input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.bm-results-count {
  margin: 0.7rem 0 14px;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--bm-ink-faint);
  line-height: 1.5;
}

.bm-results-count:empty {
  display: none;
}

.bm-btn-search {
  align-self: flex-end;
  flex: 0 0 auto;
  min-width: 4.25rem;
  min-height: var(--btn-height-xs);
  padding: 0 0.75rem;
  background: var(--dash-pink-soft);
  color: var(--bm-ink);
  border: 1px solid var(--accent);
  border-radius: var(--radius-xs);
  font-size: var(--text-caption);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.bm-btn-search:hover {
  background: var(--dash-pink-whisper);
  transform: scale(0.98);
}

.bm-btn-search:disabled,
.bm-btn-search--loading {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.bm-usage-hint {
  font-size: 13px;
  font-weight: 600;
  color: var(--bm-ink-soft);
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.bm-btn-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--brand-secondary-bg);
  color: var(--bm-ink);
  border: 1px solid var(--brand-secondary-border);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.bm-btn-refresh:hover {
  border-color: var(--accent);
  background: var(--dash-pink-whisper);
  transform: translateY(-1px);
}

.bm-btn-refresh:disabled,
.bm-btn-refresh--loading {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.bm-loading {
  text-align: center;
  padding: 48px 24px;
  color: var(--bm-ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.bm-loading-spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 16px;
  border: 3px solid var(--bm-accent-mid);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: bmSpin 0.75s linear infinite;
}

@keyframes bmSpin {
  to { transform: rotate(360deg); }
}

.bm-btn-refresh svg {
  width: 12px;
  height: 12px;
}

.bm-legend {
  margin-bottom: 10px;
}

.bm-legend--compact .bm-legend-label {
  font-size: 9px;
  margin-bottom: 6px;
  color: var(--bm-ink-faint);
}

.bm-legend--compact .bm-legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bm-legend--compact .bm-legend-chip {
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 252, 254, 0.7);
  border: 1px solid rgba(245, 184, 204, 0.22);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.bm-legend--compact .bm-legend-text .label {
  font-size: 10px;
  font-weight: 600;
}

.bm-legend--compact .bm-legend-text .hint {
  display: none;
}

.bm-legend-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.bm-legend-chip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--brand-glass-bg);
  backdrop-filter: var(--brand-glass-blur);
  -webkit-backdrop-filter: var(--brand-glass-blur);
  border: 1px solid var(--brand-glass-border);
  border-radius: 10px;
  padding: 8px 10px;
  box-shadow: var(--brand-glass-shadow);
}

.bm-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bm-legend-dot--high { background: var(--bm-score-high); }
.bm-legend-dot--strong { background: var(--bm-score-strong); }
.bm-legend-dot--moderate { background: var(--bm-score-moderate); }
.bm-legend-dot--low { background: var(--bm-score-low); }

.bm-legend-text .range,
.bm-legend-text .label {
  font-size: 11px;
  font-weight: 600;
  color: var(--bm-ink);
  display: block;
}

.bm-legend-text .range {
  font-weight: 700;
  margin-bottom: 2px;
}

.bm-legend-text .hint {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 500;
  font-style: italic;
  color: rgba(92, 74, 82, 0.58);
  line-height: 1.3;
}

.bm-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
  padding-bottom: 0;
  margin-bottom: 0.55rem;
  overflow: visible;
  width: 100%;
  max-width: 100%;
}

.bm-tabs::-webkit-scrollbar {
  display: none;
}

.bm-tabs__main,
.bm-tabs__premium {
  display: contents;
}

.bm-tab {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  background: var(--brand-secondary-bg);
  border: 1px solid var(--brand-secondary-border);
  color: var(--bm-ink-soft);
  font-size: 10px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 999px;
  transition: all 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
}

.bm-tab:hover {
  border-color: var(--accent);
  color: var(--bm-ink);
  background: var(--dash-pink-whisper);
}

.bm-tab--active {
  background: var(--dash-pink-soft);
  border-color: var(--accent);
  color: var(--bm-ink);
  box-shadow: 0 2px 12px rgba(245, 184, 204, 0.35);
}

.bm-tab--locked {
  opacity: 0.72;
  cursor: not-allowed;
}

.bm-tab--locked:hover {
  border-color: var(--brand-secondary-border);
  color: var(--bm-ink-soft);
  background: var(--brand-secondary-bg);
}

.bm-tab-premium {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  padding: 1px 4px;
  border-radius: 999px;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(255, 200, 224, 0.35);
  color: #8b4a62;
  vertical-align: middle;
}

.bm-tab--premium {
  opacity: 0.5;
  font-size: 10px;
  font-weight: 600;
  padding: 5px 8px;
  border-style: dashed;
  border-color: rgba(214, 106, 138, 0.22);
  background: rgba(255, 252, 254, 0.7);
  color: rgba(92, 74, 82, 0.55);
}

.bm-tab--premium:hover {
  opacity: 0.65;
  border-color: rgba(214, 106, 138, 0.32);
  color: rgba(92, 74, 82, 0.68);
}

.bm-tab--premium.bm-tab--active {
  opacity: 0.72;
  border-style: solid;
  background: rgba(255, 245, 250, 0.9);
  color: var(--bm-ink-soft);
  box-shadow: none;
}

.bm-tab--premium.bm-tab--locked {
  opacity: 0.42;
}

.bm-tab-count {
  opacity: 0.6;
  font-weight: 600;
  margin-left: 3px;
}

.bm-results-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 16px;
}

.bm-results-meta h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  color: var(--bm-ink);
}

.bm-card-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bm-brand-card {
  position: relative;
  background: var(--brand-glass-bg);
  backdrop-filter: var(--brand-glass-blur);
  -webkit-backdrop-filter: var(--brand-glass-blur);
  border: 1.5px solid var(--brand-glass-border);
  border-radius: var(--radius-glass);
  padding: var(--panel-padding-lg);
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  box-shadow: var(--brand-glass-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  opacity: 0;
  transform: translateY(10px);
  animation: bmRiseIn 0.45s ease forwards;
}

.bm-brand-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--bm-shadow-card-hover);
  border-color: var(--bm-accent);
}

.bm-brand-card--selected {
  border-color: var(--bm-accent-deep);
  background: linear-gradient(165deg, var(--bm-accent-soft) 0%, var(--bm-accent-whisper) 100%);
}

.bm-card-dismiss {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: rgba(92, 74, 82, 0.55);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  z-index: 2;
}

.bm-card-dismiss svg {
  width: 14px;
  height: 14px;
}

.bm-card-dismiss:hover {
  color: #8b4a62;
  background: #fff;
  transform: scale(1.05);
}

.bm-btn-studio {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(214, 106, 138, 0.35);
  color: #8b4a62;
}

.bm-btn-studio:hover {
  background: #fff;
  border-color: var(--bm-accent);
  color: var(--bm-accent-deep);
}

@keyframes bmRiseIn {
  to { opacity: 1; transform: translateY(0); }
}

.bm-seal-col {
  flex-shrink: 0;
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.bm-brand-mark {
  flex-shrink: 0;
}

.bm-brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--bm-line, rgba(26,25,23,0.1));
  background: #fff;
  display: block;
}

.bm-brand-logo--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--bm-accent-deep, #5a4f45);
  background: var(--bm-accent-soft, #f3efe8);
}

.bm-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.bm-card-copy {
  min-width: 0;
  flex: 1;
}

.bm-brand-name {
  margin: 0 0 0.2rem;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--bm-ink);
}

.bm-product-name {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--bm-ink-soft, #5c5852);
}

.bm-link-line__host {
  font-weight: 600;
  color: #8b4a62;
}

.bm-brand-product {
  margin-bottom: 0.35rem;
}

.bm-brand-line,
.bm-product-line {
  margin: 0 0 0.28rem;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--bm-ink);
}

.bm-field-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bm-ink-faint, rgba(92, 74, 82, 0.62));
  margin-right: 0.35rem;
}

.bm-brand-name-text {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--bm-ink);
}

.bm-product-name {
  font-weight: 600;
  color: var(--bm-ink-soft, #5c5852);
}

.bm-link-line__emoji {
  font-size: 0.95rem;
  line-height: 1;
}

.bm-featured-product {
  margin: 2px 0 8px;
  font-size: 0.8rem;
  color: var(--bm-ink-soft, #5c5852);
  line-height: 1.35;
}

.bm-product-thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--bm-line, rgba(26,25,23,0.1));
  flex-shrink: 0;
}

.bm-seal {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  background: var(--bm-seal-bg);
  color: var(--bm-seal-color);
  border: 2px solid var(--bm-seal-color);
}

.bm-seal-tier {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-top: 9px;
  line-height: 1.3;
  color: var(--bm-ink);
}

.bm-card-body {
  flex: 1;
  min-width: 0;
}

.bm-selected-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bm-accent-deep);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.bm-selected-tag svg {
  width: 10px;
  height: 10px;
}

.bm-brand-name {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bm-ink);
  line-height: 1.25;
  letter-spacing: -0.005em;
}

.bm-brand-name-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(214, 106, 138, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.bm-brand-name-link:hover {
  color: var(--bm-accent-deep);
  border-bottom-color: var(--bm-accent-deep);
}

.bm-link-line {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  line-height: 1.35;
}

.bm-link-line__anchor {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(92, 74, 82, 0.48);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(92, 74, 82, 0.18);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.bm-link-line__anchor svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.bm-link-line__anchor:hover {
  color: rgba(92, 74, 82, 0.72);
  border-bottom-color: rgba(92, 74, 82, 0.35);
}

.bm-link-line--placeholder span {
  color: var(--bm-ink-faint);
  font-weight: 500;
  font-style: italic;
}

.bm-meta-line {
  font-size: 13px;
  font-weight: 600;
  color: var(--bm-ink);
  margin-bottom: 14px;
}

.bm-cat {
  color: var(--bm-ink);
  font-weight: 700;
}

.bm-dot {
  margin: 0 7px;
  color: var(--bm-line);
}

.bm-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.bm-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
}

.bm-badge svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.bm-badge--has {
  background: var(--bm-accent-soft);
  color: var(--bm-ink);
  border-color: var(--dash-pink-border);
}

.bm-badge--has:hover {
  background: var(--bm-accent-mid);
}

.bm-badge--missing {
  background: var(--dash-cream-soft);
  color: var(--bm-ink-faint);
  border-color: var(--dash-pink-border);
  cursor: default;
}

.bm-badge--locked {
  background: var(--dash-cream-soft);
  color: var(--bm-ink-faint);
  border-color: var(--dash-pink-border);
  cursor: not-allowed;
  opacity: 0.92;
}

.bm-badge__premium {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe8f2 0%, #ffd6e8 100%);
  color: #8b4a62;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bm-badge__premium svg {
  width: 9px;
  height: 9px;
}

.bm-badge-tip {
  position: relative;
  display: inline-flex;
}

.bm-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  transform: translateX(-50%) translateY(4px);
  background: var(--bm-ink);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  padding: 7px 11px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 5;
}

.bm-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--bm-ink);
}

.bm-badge-tip:hover .bm-tooltip,
.bm-badge-tip:focus-within .bm-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.bm-score-tip {
  cursor: help;
}

.bm-tooltip--score {
  white-space: normal;
  width: max-content;
  max-width: 220px;
  text-align: center;
  line-height: 1.45;
  font-weight: 500;
}

.score-tip {
  position: relative;
  display: inline-flex;
  cursor: help;
}

.score-tip .opportunity-card__fit {
  margin: 0;
}

.score-tip__bubble {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  transform: translateY(4px);
  background: var(--bm-ink);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  white-space: normal;
  width: max-content;
  max-width: 220px;
  padding: 7px 11px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 5;
}

.score-tip__bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 14px;
  border: 5px solid transparent;
  border-top-color: var(--bm-ink);
}

.score-tip:hover .score-tip__bubble,
.score-tip:focus-within .score-tip__bubble,
.score-tip:focus .score-tip__bubble {
  opacity: 1;
  transform: translateY(0);
}

.saved-brands-placeholder {
  margin: 0;
  padding: 1.75rem 1.25rem;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(92, 74, 82, 0.55);
}

.saved-brands-empty .dashboard-empty__text {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(92, 74, 82, 0.48);
}

.dashboard-empty--minimal {
  padding: 2rem 1.5rem;
  min-height: 120px;
}

.dashboard-empty--minimal .dashboard-empty__title {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(92, 74, 82, 0.55);
}

.bm-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 0.45rem;
  margin-bottom: 0.55rem;
}

.bm-badges--email {
  margin: 0;
}

.bm-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 13px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  transition: all 0.15s ease;
  cursor: pointer;
  background: transparent;
}

.bm-btn svg {
  width: 14px;
  height: 14px;
}

.bm-btn-save {
  background: var(--brand-pink-btn);
  border-color: var(--brand-pink-btn-border);
  color: var(--text);
  box-shadow: var(--brand-pink-btn-shadow);
}

.bm-btn-save:hover {
  filter: brightness(1.03);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: var(--brand-pink-btn-shadow-hover);
}

.bm-btn-save--active {
  background: var(--dash-pink-soft);
  border-color: var(--accent);
  color: var(--bm-ink);
}

.bm-btn-select {
  background: var(--brand-secondary-bg);
  border-color: var(--brand-secondary-border);
  color: var(--bm-ink);
}

.bm-btn-select:hover {
  border-color: var(--accent);
  background: var(--dash-pink-whisper);
}

.bm-btn-select--active {
  background: var(--dash-pink-soft);
  border-color: var(--accent);
  color: var(--bm-ink);
  box-shadow: 0 2px 10px rgba(245, 184, 204, 0.3);
}

.bm-empty-state {
  background: var(--brand-glass-bg);
  backdrop-filter: var(--brand-glass-blur);
  -webkit-backdrop-filter: var(--brand-glass-blur);
  border: 1.5px dashed var(--brand-glass-border);
  border-radius: var(--bm-radius-lg);
  padding: 60px 32px;
  text-align: center;
  box-shadow: var(--brand-glass-shadow);
}

.bm-empty-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--bm-surface-soft);
  border: 1px solid var(--bm-line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bm-empty-icon svg {
  width: 22px;
  height: 22px;
  color: var(--bm-accent);
}

.bm-empty-state h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--bm-ink);
}

.bm-empty-state p {
  color: var(--bm-ink-soft);
  font-size: 14px;
  font-weight: 500;
  max-width: 340px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.bm-empty-state .bm-btn-refresh,
.bm-empty-state .bm-btn-secondary {
  margin: 0 auto;
}

#bm-selection-bar {
  position: fixed;
  left: var(--sidebar-w, 220px);
  right: 0;
  bottom: 0;
  background: var(--brand-glass-bg);
  backdrop-filter: var(--brand-glass-blur);
  -webkit-backdrop-filter: var(--brand-glass-blur);
  border-top: 1.5px solid var(--brand-glass-border);
  box-shadow: 0 -8px 24px rgba(245, 184, 204, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 16px 24px;
  display: flex;
  justify-content: center;
  z-index: 40;
  transform: translateY(100%);
  transition: transform 0.25s ease, left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar--collapsed ~ .dashboard-main #bm-selection-bar {
  left: var(--sidebar-w-collapsed, 64px);
}

#bm-selection-bar.bm-selection-bar--show {
  transform: translateY(0);
}

.bm-selection-inner {
  max-width: 1400px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.bm-selection-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bm-ink-soft);
}

.bm-selection-info b {
  color: var(--bm-ink);
  font-weight: 800;
}

.bm-swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bm-accent);
}

.bm-selection-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.bm-btn-clear {
  background: var(--brand-secondary-bg);
  border: 1px solid var(--brand-secondary-border);
  color: var(--bm-ink);
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.bm-btn-clear:hover {
  border-color: var(--accent);
  background: var(--dash-pink-whisper);
}

.bm-btn-continue {
  background: var(--brand-pink-btn);
  color: var(--text);
  border: 1px solid var(--brand-pink-btn-border);
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: var(--brand-pink-btn-shadow);
}

.bm-btn-continue:hover {
  filter: brightness(1.03);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--brand-pink-btn-shadow-hover);
}

.bm-btn-continue svg {
  width: 14px;
  height: 14px;
}

#bm-toast-wrap {
  position: fixed;
  bottom: 90px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 50;
}

.bm-toast {
  background: var(--bm-ink);
  color: #fff;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: bmToastIn 0.25s ease, bmToastOut 0.25s ease 2.6s forwards;
  max-width: 320px;
}

.bm-toast svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--bm-accent);
}

@keyframes bmToastIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bmToastOut {
  to { opacity: 0; transform: translateY(8px); }
}

@media (max-width: 760px) {
  .bm-legend--strip .bm-legend-text .label {
    white-space: normal;
  }

  .bm-search-row--unified {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .bm-search-row:not(.bm-search-row--unified) .bm-search-field,
  .bm-search-row:not(.bm-search-row--unified) .bm-search-field--product {
    width: calc(50% - 40px);
    min-width: 120px;
  }
}

@media (max-width: 680px) {
  .bm-brand-card { flex-direction: column; }
  .bm-seal-col { flex-direction: row; width: auto; gap: 12px; align-items: center; }
  .bm-seal-tier { margin-top: 0; }
  .bm-profile-grid { grid-template-columns: 1fr; }
  #bm-selection-bar { left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bm-root * {
    animation: none !important;
    transition: none !important;
  }
}

/* ── Tool 3: Campaign Preview Workspace ── */
.cpw-header {
  margin-bottom: 1.25rem;
}

.cpw-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 0.85fr) minmax(200px, 1.3fr);
  gap: 0.85rem;
  margin-bottom: 0;
  align-items: start;
}

.cpw-summary-row .cpw-stat {
  padding: 0.6rem 0.85rem 0.55rem;
  align-self: start;
}

.cpw-summary-row .cpw-stat .cpw-stat__value {
  margin: 0;
  display: block;
}

.cpw-summary-row .cpw-stat .cpw-stat__label {
  margin-bottom: 0.15rem;
}

.cpw-summary-row:has(#cpw-stat-pitched-wrap:not([hidden])) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cpw-summary-row--basic {
  grid-template-columns: repeat(2, 1fr);
}

.cpw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1rem;
}

.cpw-workspace-layout {
  display: block;
}

.cpw-workspace-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.cpw-how {
  padding: 0.95rem 1rem;
  position: sticky;
  top: 1rem;
  align-self: start;
}

.cpw-how--stat {
  position: static;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.cpw-how--stat .cpw-how__title {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(92, 74, 82, 0.68);
}

.cpw-how--stat .cpw-how__list {
  gap: 0.35rem;
}

.cpw-how--stat .cpw-how__list li {
  align-items: center;
}

.cpw-how--stat .cpw-how__text {
  font-size: 0.68rem;
  line-height: 1.3;
}

.cpw-how--banner {
  position: static;
  padding: 0.8rem 1rem 0.85rem;
  border-left: 3px solid rgba(245, 168, 196, 0.85);
  background: linear-gradient(90deg, rgba(255, 249, 252, 0.95) 0%, rgba(255, 255, 255, 0.72) 100%);
}

.cpw-how--banner .cpw-how__title {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(92, 74, 82, 0.68);
}

.cpw-how--banner .cpw-how__list {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.45rem 1.35rem;
}

.cpw-how--banner .cpw-how__list li {
  flex: 1 1 180px;
  align-items: center;
  max-width: 100%;
}

.cpw-how--banner .cpw-how__text {
  font-size: 0.76rem;
  line-height: 1.35;
}

.cpw-how__title {
  margin: 0 0 0.6rem;
  font-size: 0.86rem;
  font-weight: 700;
}

.cpw-how__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.74rem;
  line-height: 1.4;
  color: rgba(92, 74, 82, 0.78);
}

.cpw-how__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.cpw-how__text {
  flex: 1;
  min-width: 0;
}

.cpw-how__num {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd6e8, #f5a8c4);
  color: #1f1a1d;
  font-size: 0.64rem;
  font-weight: 700;
  margin-top: 1px;
}

.cpw-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.cpw-tab {
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(214, 126, 151, 0.25);
  background: #fff;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  color: rgba(92, 74, 82, 0.8);
}

.cpw-tab.is-active {
  background: linear-gradient(135deg, #ffd6e8, #f5a8c4);
  border-color: transparent;
  color: #1f1a1d;
}

.cpw-tab.is-locked {
  opacity: 0.55;
  cursor: not-allowed;
}

.cpw-tab--premium .cpw-premium-tag {
  margin-left: 0.25rem;
  font-size: 0.58rem;
  vertical-align: middle;
}

.cpw-tab-empty {
  margin: 0;
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(92, 74, 82, 0.6);
}

@media (max-width: 1080px) {
  .cpw-how {
    position: static;
  }
}

.cpw-grid-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}

.cpw-grid-card:hover {
  box-shadow: 0 12px 32px rgba(245, 184, 204, 0.22);
  transform: translateY(-2px);
}

.cpw-grid-card__body {
  padding: 0.85rem 0.85rem 0.45rem;
}

.cpw-grid-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.cpw-grid-card__identity {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  min-width: 0;
  flex: 1;
}

.cpw-grid-card__logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid rgba(92, 74, 82, 0.12);
  flex-shrink: 0;
}

.cpw-grid-card__name {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cpw-grid-card__match {
  margin: 0 0 0.5rem;
}

.cpw-grid-card__match-score {
  margin: 0 0 0.3rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #c44569;
}

.cpw-grid-card__match-reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cpw-grid-card__match-reasons li {
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(92, 74, 82, 0.68);
}

.cpw-grid-card__meta {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  color: rgba(92, 74, 82, 0.65);
}

.cpw-grid-card__product {
  margin: 0 0 0.5rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(61, 53, 56, 0.72);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cpw-grid-card__headline {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(31, 26, 29, 0.75);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cpw-grid-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 0.85rem 0.85rem;
  margin-top: auto;
}

.cpw-grid-card__actions .cpw-card-btn {
  flex: 1 1 auto;
  white-space: nowrap;
  justify-content: center;
  padding: 0.34rem 0.55rem;
  font-size: 0.7rem;
  min-width: 0;
}

.cpw-grid-card__actions .cpw-card-btn[data-action="copy-link"],
.cpw-grid-card__actions .cpw-card-btn[data-action="create-pitch"] {
  flex: 0 0 auto;
}

.cpw-grid-card__action-pair {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
}

.cpw-editor {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: calc(100vh - 120px);
}

.cpw-editor .cpw-editor-split {
  border-radius: 0 0 14px 14px;
  border-top: none;
}

/* The hidden attribute must beat display:flex, otherwise the editor
   renders below the card grid on the first page. */
.cpw-editor[hidden],
#cpw-workspace[hidden],
#cpw-panel-workspace[hidden],
#cpw-panel-pitch[hidden] {
  display: none !important;
}

/* Pitch-open state: force the live preview visible even if [hidden] attrs are stale. */
#studio-view.cpw-studio--pitch-open {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

#studio-view.cpw-studio--pitch-open > #cpw-workspace {
  display: none !important;
}

#studio-view.cpw-studio--pitch-open > #cpw-editor,
#studio-view.cpw-studio--pitch-open > #cpw-editor[hidden] {
  display: flex !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
}

#studio-view.cpw-studio--pitch-open #cpw-panel-pitch,
#studio-view.cpw-studio--pitch-open #cpw-panel-pitch[hidden] {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  min-height: 0 !important;
  height: 100% !important;
}

#studio-view.cpw-studio--pitch-open .cpw-editor-split {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
}

#studio-view.cpw-studio--pitch-open .cpw-ai-preview {
  display: flex !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
}

#studio-view.cpw-studio--pitch-open .cpw-landing-frame {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  min-height: 0 !important;
  height: 100% !important;
}

#studio-view.cpw-studio--pitch-open .cpw-preview-loading[hidden] {
  display: none !important;
}

.cpw-editor__title {
  margin: 0.35rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.cpw-editor-split:not(.cpw-editor-split--workspace) {
  grid-template-columns: var(--cpw-pitch-rail-width, 240px) minmax(0, 1fr);
}

.cpw-editor-split {
  display: grid;
  gap: 0;
  align-items: stretch;
  flex: 1;
  min-height: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(196, 69, 105, 0.1);
  background: #fff;
}

/* Pitch editing: keep sidebar visible; editor fills remaining workspace height. */
body.cpw-editing .sidebar {
  display: flex !important;
}

body.cpw-editing .dashboard-main {
  max-width: none;
  padding: 0;
  height: 100%;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.cpw-editing .cpw-view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

body.cpw-editing .cpw-editor {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

body.cpw-editing #cpw-panel-pitch,
body.cpw-editing #cpw-panel-workspace {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  height: 100%;
}

body.cpw-editing .cpw-editor-toolbar {
  flex-shrink: 0;
}

body.cpw-editing .cpw-editor-split:not(.cpw-editor-split--workspace) {
  border-radius: 0;
  border: none;
  flex: 1;
  min-height: 0;
  height: auto;
  max-height: none;
  display: grid;
  grid-template-columns: var(--cpw-pitch-rail-width, 240px) minmax(0, 1fr);
  overflow: hidden;
  position: relative;
  background: #fff;
  width: 100%;
}

#cpw-panel-pitch:not([hidden]),
#cpw-panel-workspace:not([hidden]) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

body.cpw-editing .cpw-editor-rail {
  position: relative;
  left: 0;
  top: auto;
  width: 100%;
  max-width: var(--cpw-pitch-rail-width, 240px);
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1;
  border-left: none;
  border-right: 1px solid rgba(196, 69, 105, 0.14);
  scrollbar-width: thin;
  -ms-overflow-style: auto;
  grid-column: 1;
  grid-row: 1;
  padding: 0.75rem 0.65rem 1rem;
}

body.cpw-editing .cpw-editor-rail::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body.cpw-editing .dashboard-shell {
  overflow: hidden;
}

body.cpw-editing .cpw-ai-preview {
  margin-left: 0;
  width: auto;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  grid-column: 2;
  grid-row: 1;
}

.cpw-editor-rail {
  background: linear-gradient(180deg, #fff7fa 0%, #fff0f6 100%);
  color: var(--cpw-editor-text, #3d3538);
  padding: 1rem 0.9rem 1.25rem;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-left: none;
  border-right: 1px solid var(--accent-mid);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cpw-editor-rail::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.cpw-rail-head {
  padding: 0 0.15rem 0.75rem;
  border-bottom: 1px solid rgba(196, 69, 105, 0.12);
  margin-bottom: 0.35rem;
}

.cpw-rail-head__title {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: #3d3538;
}

.cpw-rail-head__sub {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(92, 74, 82, 0.72);
}

.cpw-acc {
  border: 1px solid rgba(196, 69, 105, 0.14);
  border-radius: 10px;
  background: rgba(255, 247, 250, 0.45);
  overflow: hidden;
  flex-shrink: 0;
}

.cpw-acc[open] {
  background: rgba(255, 249, 252, 0.62);
}

.cpw-acc__summary {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #3d3538;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.cpw-acc__summary:hover {
  background: rgba(255, 214, 232, 0.35);
}

.cpw-acc__summary::after {
  content: "›";
  margin-left: auto;
  font-weight: 700;
  color: rgba(139, 74, 98, 0.45);
  transition: transform 0.15s ease;
}

.cpw-acc__num {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 214, 232, 0.55);
  border: 1px solid rgba(196, 69, 105, 0.18);
  font-size: 0.6rem;
  font-weight: 700;
  color: #c44569;
}

.cpw-acc__body {
  padding: 0.2rem 0.7rem 0.75rem;
  border-top: 1px solid rgba(196, 69, 105, 0.1);
}

.cpw-acc__hint {
  margin: 0.5rem 0;
  font-size: 0.7rem;
  color: rgba(92, 74, 82, 0.65);
}

.cpw-acc__subtitle {
  margin: 0.65rem 0 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(139, 74, 98, 0.72);
}

/* Pink-theme controls inside the editor sidebar */
.cpw-editor-rail .cpw-preset-btn,
.cpw-editor-rail .cpw-section-pill,
.cpw-editor-rail .btn--outline {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(196, 69, 105, 0.18);
  color: #3d3538;
}

.cpw-editor-rail .cpw-preset-btn:hover:not(:disabled),
.cpw-editor-rail .cpw-section-pill:hover,
.cpw-editor-rail .btn--outline:hover:not(:disabled) {
  background: rgba(255, 214, 232, 0.45);
  border-color: rgba(196, 69, 105, 0.28);
}

.cpw-editor-rail .cpw-section-pill.is-active {
  background: linear-gradient(135deg, #ffd6e8, #f5a8c4);
  border-color: transparent;
  color: #1f1a1d;
}

.cpw-editor-rail .cpw-custom-input {
  background: rgba(255, 249, 252, 0.82);
  border-color: rgba(196, 69, 105, 0.2);
  color: #3d3538;
  accent-color: var(--accent);
}

.cpw-editor-rail .cpw-custom-input::placeholder {
  color: rgba(92, 74, 82, 0.45);
}

.cpw-editor-rail .cpw-controls__hint {
  color: rgba(92, 74, 82, 0.68);
}

.cpw-editor-rail .cpw-lock-row {
  color: rgba(92, 74, 82, 0.72);
}

.cpw-editor-rail .cpw-ai-thread {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.cpw-ai-thread[hidden] {
  display: none !important;
}

.cpw-editor-rail .cpw-thread-empty {
  color: rgba(92, 74, 82, 0.55);
}

.cpw-editor-rail .cpw-version-btn {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(196, 69, 105, 0.16);
  color: #3d3538;
}

.cpw-editor-rail .cpw-version-empty {
  color: rgba(244, 241, 243, 0.4);
}

.cpw-acc__summary::-webkit-details-marker {
  display: none;
}

.cpw-acc[open] .cpw-acc__summary::after {
  transform: rotate(90deg);
}

.cpw-editor-rail .cpw-version-empty {
  color: rgba(92, 74, 82, 0.55);
}

.cpw-rail-section {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(214, 126, 151, 0.12);
}

.cpw-rail-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cpw-rail-section--thread {
  flex: 1;
  min-height: 180px;
  display: flex;
  flex-direction: column;
}

.cpw-section-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.cpw-section-pill {
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(214, 126, 151, 0.25);
  background: #fff;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
}

.cpw-section-pill.is-active {
  background: linear-gradient(135deg, #ffd6e8, #f5a8c4);
  border-color: transparent;
}

.cpw-lock-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  color: rgba(92, 74, 82, 0.72);
}

.cpw-style-presets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.cpw-style-btn {
  padding: 0.45rem 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(214, 126, 151, 0.22);
  background: #fff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.cpw-style-btn:hover:not(:disabled) {
  background: var(--dash-pink-soft);
}

.cpw-ai-thread {
  flex: 1;
  min-height: 100px;
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  border: 1px solid rgba(214, 126, 151, 0.12);
}

.cpw-thread-empty,
.cpw-version-empty {
  margin: 0;
  font-size: 0.76rem;
  color: rgba(92, 74, 82, 0.55);
}

.cpw-thread-msg {
  font-size: 0.76rem;
  line-height: 1.4;
}

.cpw-thread-msg__label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(92, 74, 82, 0.5);
  margin-bottom: 0.15rem;
}

.cpw-thread-msg--assistant p {
  color: rgba(61, 53, 56, 0.85);
}

.cpw-rail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

.cpw-version-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Info tab: where the page's brand data came from */
.cpw-source-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cpw-info-field {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cpw-info-field__label {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(92, 74, 82, 0.55);
  font-weight: 700;
}

.cpw-info-field__value {
  font-size: 0.84rem;
  line-height: 1.35;
  color: #3d3538;
  font-weight: 600;
}

.cpw-info-field__input {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(214, 126, 151, 0.22);
  background: rgba(255, 249, 252, 0.82);
  font: inherit;
  font-size: 0.82rem;
  color: #3d3538;
}

.cpw-info-field__input:focus {
  outline: none;
  border-color: rgba(196, 69, 105, 0.45);
  box-shadow: 0 0 0 2px rgba(245, 168, 196, 0.35);
}

.cpw-info-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cpw-rail-label {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(92, 74, 82, 0.55);
}

.cpw-brand-images {
  position: relative;
}

.cpw-brand-images-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  z-index: 20;
  min-width: 180px;
  padding: 0.35rem;
  border-radius: 10px;
  border: 1px solid rgba(214, 126, 151, 0.2);
  background: #fff;
  box-shadow: 0 8px 24px rgba(61, 53, 56, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cpw-brand-images-menu[hidden] {
  display: none !important;
}

.cpw-brand-images-menu__item {
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.55rem;
  border: none;
  border-radius: 7px;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  color: #3d3538;
}

.cpw-brand-images-menu__item:hover {
  background: rgba(255, 232, 242, 0.55);
}

.cpw-brand-images-paste {
  padding: 0.35rem 0.2rem 0.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cpw-brand-images-paste[hidden] {
  display: none !important;
}

.cpw-field-input {
  width: 100%;
  padding: 0.4rem 0.5rem;
  border-radius: 7px;
  border: 1px solid rgba(214, 126, 151, 0.22);
  font: inherit;
  font-size: 0.76rem;
}

.cpw-ai-suggestions {
  margin-top: 0.75rem;
}

.cpw-ai-suggestions__title {
  margin: 0.55rem 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(92, 74, 82, 0.55);
}

.cpw-ai-suggestions__title:first-child {
  margin-top: 0;
}

.cpw-suggestion-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.cpw-suggestion-btn {
  padding: 0.28rem 0.5rem;
  border: 1px solid rgba(214, 126, 151, 0.22);
  border-radius: 999px;
  background: rgba(255, 249, 252, 0.7);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(61, 53, 56, 0.82);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cpw-suggestion-btn::before {
  content: none;
}

.cpw-suggestion-btn:hover {
  background: rgba(255, 232, 242, 0.55);
  border-color: rgba(196, 69, 105, 0.35);
  color: #c44569;
}

.cpw-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 7.5rem;
  margin-top: 0.35rem;
  padding: 0.32rem 0.7rem;
  border: none;
  border-radius: 8px;
  background: #c44569;
  color: #fff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.cpw-apply-btn:hover {
  background: #b33d5e;
}

.cpw-photos-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.cpw-photo-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cpw-photo-field__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(92, 74, 82, 0.55);
}

.cpw-photo-section-title {
  margin: 0.35rem 0 0;
  font-size: 0.74rem;
  font-weight: 700;
  color: #3d3538;
}

.cpw-gallery-slots {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cpw-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.cpw-photo-btn {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.28rem 0.45rem;
  border-radius: 7px;
  border: 1px solid rgba(214, 126, 151, 0.22);
  background: rgba(255, 249, 252, 0.75);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(61, 53, 56, 0.82);
  cursor: pointer;
}

.cpw-photo-btn:hover {
  background: rgba(255, 232, 242, 0.55);
  border-color: rgba(196, 69, 105, 0.32);
  color: #c44569;
}

.cpw-photo-btn--primary {
  background: #c44569;
  border-color: #c44569;
  color: #fff;
}

.cpw-photo-btn--primary:hover {
  background: #b33d5e;
  border-color: #b33d5e;
  color: #fff;
}

.cpw-section-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cpw-section-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.45rem;
  border-radius: 8px;
  border: 1px solid rgba(214, 126, 151, 0.18);
  background: rgba(255, 249, 252, 0.75);
  cursor: grab;
}

.cpw-section-item.is-dragging {
  opacity: 0.55;
}

.cpw-section-item.is-hidden {
  opacity: 0.5;
}

.cpw-section-item.is-active {
  border-color: rgba(196, 69, 105, 0.45);
  background: rgba(255, 232, 242, 0.35);
}

.cpw-section-handle {
  flex-shrink: 0;
  font-size: 0.85rem;
  color: rgba(92, 74, 82, 0.45);
  user-select: none;
}

.cpw-section-name {
  flex: 1;
  min-width: 0;
  text-align: left;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: #3d3538;
  cursor: pointer;
  padding: 0;
}

.cpw-section-controls {
  display: flex;
  gap: 0.15rem;
  flex-shrink: 0;
}

.cpw-section-ctrl {
  padding: 0.15rem 0.35rem;
  border: none;
  border-radius: 5px;
  background: rgba(240, 235, 230, 0.6);
  font: inherit;
  font-size: 0.68rem;
  cursor: pointer;
  color: rgba(61, 53, 56, 0.72);
}

.cpw-section-ctrl:hover:not(:disabled) {
  background: rgba(255, 232, 242, 0.65);
  color: #c44569;
}

.cpw-section-ctrl:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.cpw-premium-tag {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 232, 242, 0.85);
  color: #b84a6a;
  vertical-align: middle;
}

.cpw-card-btn--premium {
  opacity: 0.62;
  border-style: dashed;
  border-color: rgba(214, 106, 138, 0.28);
  background: rgba(255, 252, 254, 0.82);
  color: rgba(92, 74, 82, 0.68);
  box-shadow: none;
}

.cpw-card-btn--premium:hover:not(:disabled) {
  opacity: 0.78;
  border-color: rgba(214, 106, 138, 0.38);
  color: rgba(92, 74, 82, 0.8);
}

.cpw-card-btn--premium:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cpw-card-btn--premium .cpw-premium-tag {
  background: rgba(255, 232, 242, 0.55);
  color: rgba(139, 74, 98, 0.72);
}

.cpw-rail-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cpw-source-item {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.76rem;
  line-height: 1.35;
  color: rgba(244, 241, 243, 0.72);
  overflow-wrap: anywhere;
}

.cpw-source-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #7fce9a;
  font-weight: 700;
}

.cpw-source-empty {
  font-size: 0.74rem;
  color: rgba(244, 241, 243, 0.45);
  list-style: none;
}

.cpw-version-btn {
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(214, 126, 151, 0.18);
  background: #fff;
  font: inherit;
  font-size: 0.74rem;
  cursor: pointer;
}

.cpw-version-btn:hover {
  background: var(--dash-pink-soft);
}

@media (max-width: 960px) {
  .cpw-editor-split,
  body.cpw-editing .cpw-editor-split {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  body.cpw-editing .cpw-editor-rail {
    max-height: 42vh;
  }
}

.cpw-stat {
  padding: var(--panel-padding);
}

.cpw-stat__label {
  display: block;
  margin-bottom: var(--space-2xs);
}

.overview-stat__value {
  margin: 0 0 var(--space-2xs);
  transition: text-shadow 0.35s ease, color 0.35s ease;
}

.cpw-usage {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 0.95rem 1.25rem;
  margin-bottom: 1.25rem;
}

.cpw-usage__label {
  display: block;
  font-size: 0.76rem;
  color: rgba(92, 74, 82, 0.65);
  margin-bottom: 0.2rem;
}

.cpw-usage__item strong {
  color: #b84a6a;
  font-size: 0.95rem;
}

.cpw-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.25rem;
  align-items: start;
}

.cpw-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cpw-card--horizontal {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
}

.cpw-card__seal {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  background: var(--cpw-seal-bg, var(--bm-score-high-bg));
  color: var(--cpw-seal-color, var(--bm-score-high));
  border: 2px solid var(--cpw-seal-color, var(--bm-score-high));
}

.cpw-card__main {
  flex: 1;
  min-width: 0;
}

.cpw-card__copy {
  min-width: 0;
}

.cpw-saved-tag {
  color: #b84a6a;
  font-weight: 600;
}

.cpw-ai-setup {
  padding: 0.85rem 1.1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(214, 126, 151, 0.25);
  background: rgba(255, 240, 248, 0.55);
}

.cpw-ai-setup__text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(61, 53, 56, 0.85);
}

.cpw-ai-setup__text code {
  font-size: 0.78rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.7);
}

.cpw-ai-setup__text a {
  color: #b84a6a;
  font-weight: 600;
}

.cpw-preview-empty {
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  color: rgba(92, 74, 82, 0.65);
  font-size: 0.9rem;
}

.cpw-card {
  padding: 1.15rem 1.25rem;
}

.cpw-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.cpw-card__name {
  margin: 0 0 0.15rem;
  font-size: 0.98rem;
  color: #3d3538;
}

.cpw-card__meta {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(92, 74, 82, 0.68);
}

.cpw-status {
  flex-shrink: 0;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(240, 235, 230, 0.8);
  color: rgba(61, 53, 56, 0.72);
}

.cpw-status--draft {
  background: rgba(240, 235, 230, 0.8);
  color: rgba(61, 53, 56, 0.72);
}

.cpw-status--ready {
  background: rgba(232, 245, 236, 0.85);
  color: #3d7a52;
}

.cpw-status--generated {
  background: rgba(255, 232, 242, 0.65);
  color: #b84a6a;
}

.cpw-status--shared {
  background: rgba(232, 245, 236, 0.85);
  color: #3d7a52;
}

.cpw-card__flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.cpw-flag {
  font-size: 0.76rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(214, 126, 151, 0.18);
  color: rgba(92, 74, 82, 0.78);
}

.cpw-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.cpw-btn-remove {
  margin-left: auto;
  border: none;
  background: none;
  color: rgba(92, 74, 82, 0.55);
  font-family: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
}

.cpw-btn-remove:hover {
  color: #b84a6a;
}

.cpw-empty {
  padding: 2.5rem 2rem;
  text-align: center;
}

.cpw-empty__icon {
  font-size: 1.75rem;
  color: #d67e97;
  margin-bottom: 0.75rem;
}

.cpw-empty__title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: #3d3538;
}

.cpw-empty__text {
  margin: 0 0 1.25rem;
  color: rgba(92, 74, 82, 0.72);
  font-size: 0.92rem;
}

.cpw-sidebar {
  padding: 1.25rem;
  position: sticky;
  top: 1rem;
}

.cpw-sidebar__title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: #3d3538;
}

.cpw-sidebar__list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.84rem;
  line-height: 1.65;
  color: rgba(92, 74, 82, 0.78);
}

.cpw-toast-wrap {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.cpw-toast {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: #3d3538;
  color: #fff;
  font-size: 0.84rem;
  box-shadow: 0 8px 24px rgba(61, 53, 56, 0.2);
}

.cpw-modal-panel {
  max-width: 520px;
  background: var(--brand-glass-bg, #fbf7f2);
  border: 1px solid var(--brand-glass-border, rgba(214, 126, 151, 0.22));
  border-radius: 18px;
  box-shadow: var(--brand-glass-shadow, 0 18px 48px rgba(61, 53, 56, 0.08));
}

.modal__panel.cpw-preview-panel {
  max-width: min(1180px, 96vw);
  width: 100%;
  padding: 1.25rem 1.35rem 1.35rem;
}

.cpw-editor-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0;
  padding: 0.6rem 0.9rem;
  background: var(--cpw-editor-bg, linear-gradient(135deg, #ffe8f2 0%, #ffd6e8 55%, #f5a8c4 100%));
  border-radius: 14px 14px 0 0;
  border: 1px solid rgba(196, 69, 105, 0.14);
  border-bottom: 1px solid rgba(196, 69, 105, 0.12);
}

body.cpw-editing .cpw-editor-toolbar {
  border-radius: 0;
}

.cpw-editor-toolbar__left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.cpw-editor-toolbar .cpw-editor__title {
  color: #3d3538;
  font-size: 0.95rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cpw-back-btn {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(196, 69, 105, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  cursor: pointer;
  color: #3d3538;
}

.cpw-back-btn:hover {
  background: rgba(255, 255, 255, 0.85);
}

.cpw-bar-btn {
  padding: 0.42rem 0.8rem;
  border: 1px solid rgba(196, 69, 105, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  color: #3d3538;
  cursor: pointer;
  white-space: nowrap;
}

.cpw-bar-btn:hover {
  background: rgba(255, 255, 255, 0.85);
}

.cpw-bar-btn--primary {
  background: var(--brand-pink-btn);
  border-color: var(--brand-pink-btn-border);
  color: #1f1a1d;
  box-shadow: var(--brand-pink-btn-shadow);
}

.cpw-bar-btn--primary:hover {
  filter: brightness(1.04);
  box-shadow: var(--brand-pink-btn-shadow-hover);
}

.cpw-editor-toolbar .modal__title {
  margin: 0 0 0.2rem;
}

.cpw-editor-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cpw-editor-toolbar .modal__close {
  position: static;
}

.cpw-controls__hint {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(92, 74, 82, 0.68);
}

.cpw-ai-preview {
  position: relative;
  flex: 1;
  min-height: 0;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

body.cpw-editing .cpw-ai-preview,
body.cpw-editing .cpw-landing-frame {
  min-height: 0;
  flex: 1;
  height: 100%;
}

body.cpw-editing .cpw-landing-frame {
  min-height: 0;
}

.cpw-preview-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: rgba(92, 74, 82, 0.72);
  font-size: 0.9rem;
  z-index: 2;
  pointer-events: none;
}

.cpw-preview-loading[hidden] {
  display: none;
}

.cpw-landing-frame {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  height: 100%;
  border: none;
  display: block;
  background: #fff;
}

.cpw-free-tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: rgba(61, 122, 82, 0.12);
  color: #3d7a52;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.cpw-ai-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 1rem;
  align-items: start;
}

.cpw-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cpw-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.cpw-preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 1rem;
  max-height: min(78vh, 720px);
}

.cpw-preview-frame-wrap {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cpw-ai-banner {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 244, 230, 0.9);
  border: 1px solid rgba(214, 126, 151, 0.25);
  font-size: 0.8rem;
  color: #5c4a52;
}

.cpw-preview-frame {
  flex: 1;
  min-height: 360px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(214, 126, 151, 0.18);
  border-radius: 16px;
}

.cpw-preview-controls {
  padding: 0.5rem 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cpw-controls__title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(61, 53, 56, 0.72);
}

.cpw-preset-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.cpw-ai-shortcuts {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(196, 69, 105, 0.12);
}

.cpw-preset-btn {
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(214, 126, 151, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.cpw-preset-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cpw-custom-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cpw-custom-input {
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(214, 126, 151, 0.22);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.4;
  resize: none;
  overflow-y: auto;
  min-height: 40px;
  max-height: 120px;
  width: 100%;
}

.cpw-credits {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #b84a6a;
}

/* ── Campaign Workspace canvas ── */
.cpw-editor-split--workspace {
  grid-template-columns: minmax(0, 1fr);
}

.cpw-canvas-wrap {
  min-height: 0;
  overflow: auto;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.cpw-canvas {
  padding: 28px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.cpw-block {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cpw-block:last-child {
  border-bottom: none;
}

.cpw-block__title {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5c534c;
}

.cpw-block__hint {
  margin: -8px 0 14px;
  font-size: 13px;
  color: #8a8278;
}

.cpw-overview {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: start;
}

.cpw-overview__product {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  background: #f5f0eb;
}

.cpw-overview__product--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #8a8278;
  text-align: center;
  padding: 12px;
}

.cpw-field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8a8278;
  margin: 12px 0 6px;
}

.cpw-field-label:first-child {
  margin-top: 0;
}

.cpw-field-static {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #2a2622;
}

.cpw-field-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: #6b655c;
}

.cpw-field-input {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: #2a2622;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cpw-field-input:focus {
  outline: none;
  border-color: #c44569;
  box-shadow: 0 0 0 3px rgba(196, 69, 105, 0.12);
}

.cpw-field-input--headline {
  font-size: 20px;
  font-weight: 600;
  font-family: Georgia, 'Iowan Old Style', serif;
}

.cpw-field-input--short {
  resize: vertical;
  min-height: 56px;
}

.cpw-vis-section {
  margin-bottom: 18px;
}

.cpw-vis-section__label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: #6b655c;
}

.cpw-vis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

.cpw-vis-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.cpw-vis-tile__img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.cpw-vis-tile__actions {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.cpw-vis-tile:hover .cpw-vis-tile__actions {
  opacity: 1;
}

.cpw-vis-tile__btn {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: #3d3538;
}

.cpw-vis-drop {
  aspect-ratio: 1;
  border: 2px dashed rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.5);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cpw-vis-drop.is-drag-over,
.cpw-vis-drop:hover {
  border-color: #c44569;
  background: rgba(196, 69, 105, 0.06);
}

.cpw-vis-drop__icon {
  font-size: 22px;
  color: #8a8278;
}

.cpw-vis-drop__text {
  font-size: 12px;
  font-weight: 600;
  color: #8a8278;
}

.cpw-idea-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  min-height: 44px;
}

.cpw-idea-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(135deg, #f7f2ed 0%, #fff 100%);
  font-size: 14px;
  font-weight: 600;
  color: #3d3538;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cpw-idea-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.cpw-idea-card__remove {
  font-size: 16px;
  opacity: 0.45;
  line-height: 1;
}

.cpw-idea-card:hover .cpw-idea-card__remove {
  opacity: 1;
  color: #c44569;
}

.cpw-idea-add-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cpw-idea-add-row .cpw-field-input {
  flex: 1;
}

.cpw-assets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cpw-asset-col__title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: #6b655c;
}

.cpw-asset-col__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.cpw-asset-tile {
  position: relative;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  background: #fff;
}

.cpw-asset-tile__preview {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-color: #f5f0eb;
}

.cpw-asset-tile__preview--doc {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.cpw-asset-tile__name {
  display: block;
  padding: 6px 8px;
  font-size: 10px;
  color: #6b655c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cpw-asset-tile__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.cpw-asset-tile:hover .cpw-asset-tile__remove {
  opacity: 1;
}

.cpw-asset-upload {
  aspect-ratio: 4/3;
  border: 2px dashed rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #8a8278;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.cpw-asset-upload:hover {
  border-color: #c44569;
}

.cpw-assist-rail {
  padding: 20px;
  position: sticky;
  top: 0;
}

.cpw-assist-rail__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}

.cpw-assist-rail__sub {
  margin: 0 0 16px;
  font-size: 13px;
  color: #6b655c;
  line-height: 1.45;
}

.cpw-assist-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.cpw-assist-rail__note {
  margin: 12px 0 0;
  font-size: 12px;
  color: #8a8278;
  line-height: 1.45;
}

.cpw-save-indicator {
  font-size: 12px;
  font-weight: 600;
  color: #6b655c;
  margin-right: 8px;
}

.cpw-grid-card__thumb {
  width: 100%;
  height: 88px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  margin-bottom: 12px;
  background-color: #f5f0eb;
}

body.cpw-editing .cpw-editor-split--workspace {
  flex: 1;
  min-height: 0;
  height: auto;
  max-height: none;
}

@media (max-width: 900px) {
  .cpw-editor-split--workspace {
    grid-template-columns: 1fr;
  }
  .cpw-overview {
    grid-template-columns: 1fr;
  }
  .cpw-overview__product {
    width: 100%;
    max-width: 200px;
  }
  .cpw-assets-grid {
    grid-template-columns: 1fr;
  }
  .cpw-assist-rail {
    position: static;
  }
}

@media (max-width: 900px) {
  .cpw-summary-row { grid-template-columns: 1fr; }
  .cpw-layout { grid-template-columns: 1fr; }
  .cpw-sidebar { position: static; }
  .cpw-preview-layout { grid-template-columns: 1fr; max-height: none; }
  .cpw-form-row { grid-template-columns: 1fr; }
  .cpw-card--horizontal {
    flex-direction: column;
    align-items: stretch;
  }
  .cpw-card__head { flex-wrap: wrap; }
  .cpw-card__actions { margin-left: 0; }
}

/* Landing page preview (inside frame) */
.cs-lp {
  min-height: 100%;
  padding: 48px 40px 56px;
  font-family: Montserrat, system-ui, sans-serif;
}

.cs-lp-hero {
  border-radius: 24px;
  padding: 48px 36px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, var(--cs-a), var(--cs-b));
}

.cs-lp--tone-botanical { --cs-a: #eef5ef; --cs-b: #dce8dc; }
.cs-lp--tone-glam { --cs-a: #fff0f6; --cs-b: #ffd6e8; }
.cs-lp--tone-warm { --cs-a: #fff4ea; --cs-b: #ffe8d4; }
.cs-lp--tone-modern { --cs-a: #f0f2f5; --cs-b: #e4e8ed; }
.cs-lp--tone-energy { --cs-a: #fff8ec; --cs-b: #ffe9c7; }
.cs-lp--tone-fresh { --cs-a: #f0faf4; --cs-b: #dcf5e8; }
.cs-lp--tone-clean { --cs-a: #faf8f6; --cs-b: #f0ebe6; }
.cs-lp--tone-calm { --cs-a: #f5f3f8; --cs-b: #e8e4ed; }

.cs-lp--bold .cs-lp-hero {
  background: linear-gradient(135deg, #1f1a1d, #3d3538);
  color: #fff;
}

.cs-lp--minimal .cs-lp-hero {
  background: #fff;
  border: 1px solid #ead9cf;
}

.cs-lp--split .cs-lp-hero {
  background: linear-gradient(135deg, #ffe8f2, #ffd6e8);
}

.cs-lp-brand {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}

.cs-lp-headline {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.05;
  max-width: 14ch;
}

.cs-lp-sub {
  margin: 0 0 20px;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.75;
  max-width: 28ch;
}

.cs-lp-hero-visual {
  height: 200px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.cs-lp--bold .cs-lp-hero-visual {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.cs-lp-mockups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.cs-lp-mockup {
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(61, 53, 56, 0.55);
  border: 1px solid rgba(214, 126, 151, 0.15);
}

.cs-lp-mockup--tiktok {
  background: linear-gradient(160deg, #fff5f8, #ffe8f0);
}

.cs-lp-mockup--reel {
  background: linear-gradient(160deg, #f5f0ff, #ebe4ff);
}

.cs-lp-mockup--ugc {
  background: linear-gradient(160deg, #f0faf4, #e2f5ea);
}

.cs-lp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.cs-lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 232, 242, 0.55);
  border: 1px solid rgba(214, 126, 151, 0.2);
  font-size: 12px;
  font-weight: 600;
  color: #5c4a52;
}

.cs-lp-badge-icon {
  color: #d67e97;
  font-size: 10px;
}

.cs-lp-cta {
  text-align: center;
  padding: 28px 16px 8px;
}

.cs-lp-cta p {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(61, 53, 56, 0.78);
}

.cs-lp-cta-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d67e97, #b84a6a);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .cs-lp-mockups {
    grid-template-columns: 1fr 1fr;
  }

  .cs-lp-mockup:last-child {
    grid-column: span 2;
    max-width: 50%;
    margin: 0 auto;
  }
}

/* ── Tool 2: Discovery pipeline ── */
.bm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 1.25rem;
  align-items: start;
}

.bm-main { min-width: 0; }

.bm-summary-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.bm-stat {
  padding: 0.95rem 1.1rem;
}

.bm-stat__label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(92, 74, 82, 0.65);
  margin-bottom: 0.25rem;
}

.bm-stat__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3d3538;
}

.bm-fit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0 0.75rem;
}

.bm-fit-tag {
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255, 232, 242, 0.55);
  border: 1px solid rgba(214, 126, 151, 0.2);
  color: #5c4a52;
}

.bm-card-actions--pipeline {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  flex-shrink: 0;
}

.bm-brand-card--horizontal {
  align-items: center;
}

.bm-card-body--horizontal {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.bm-card-content {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 1rem;
  flex: 1;
  min-width: 0;
}

.bm-brand-card--horizontal .bm-brand-name {
  margin: 0;
  font-size: 18px;
}

.bm-brand-card--horizontal .bm-meta-line {
  margin: 0;
}

.bm-fit-tags--inline {
  margin: 0;
}

.bm-badges--inline {
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 7px;
}

.bm-compare-grid--horizontal {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.bm-btn-primary--active {
  opacity: 0.85;
}

.bm-btn-secondary--active {
  background: rgba(255, 232, 242, 0.65);
  border-color: rgba(214, 126, 151, 0.45);
}

.bm-compare-inner {
  padding: 1rem;
  margin-bottom: 1rem;
}

.bm-compare-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.bm-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.bm-compare-item {
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(214, 126, 151, 0.15);
}

.bm-compare-score {
  display: inline-block;
  font-weight: 700;
  color: #b84a6a;
  margin-bottom: 0.25rem;
}

.bm-compare-name {
  margin: 0 0 0.15rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.bm-compare-meta {
  margin: 0 0 0.45rem;
  font-size: 0.76rem;
  color: rgba(92, 74, 82, 0.68);
}

.bm-btn-text {
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.78rem;
  color: #b84a6a;
  cursor: pointer;
  text-decoration: underline;
}

.bm-how-sidebar {
  padding: 1.15rem;
  position: sticky;
  top: 1rem;
}

.bm-how-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.bm-how-sidebar h2 {
  margin: 0;
  font-size: 0.95rem;
}

.bm-how-sidebar ol {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.84rem;
  line-height: 1.65;
  color: rgba(92, 74, 82, 0.78);
}

.bm-preview-detail {
  text-align: center;
}

.bm-seal--lg {
  width: 72px;
  height: 72px;
  font-size: 1.25rem;
  margin: 0 auto 1rem;
}

.bm-preview-meta {
  color: rgba(92, 74, 82, 0.72);
  margin-bottom: 0.75rem;
}

.bm-preview-contacts {
  text-align: left;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(61, 53, 56, 0.78);
}

/* ── Tool 3: Pitch cards ── */
.pitch-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.pitch-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pitch-card__visual {
  height: 120px;
  background: linear-gradient(135deg, #ffe8f2, #ffd6e8);
}

.pitch-card__visual--botanical { background: linear-gradient(135deg, #eef5ef, #dce8dc); }
.pitch-card__visual--glam { background: linear-gradient(135deg, #fff0f6, #ffd6e8); }
.pitch-card__visual--warm { background: linear-gradient(135deg, #fff4ea, #ffe8d4); }
.pitch-card__visual--modern { background: linear-gradient(135deg, #f0f2f5, #e4e8ed); }
.pitch-card__visual--energy { background: linear-gradient(135deg, #fff8ec, #ffe9c7); }
.pitch-card__visual--fresh { background: linear-gradient(135deg, #f0faf4, #dcf5e8); }
.pitch-card__visual--clean { background: linear-gradient(135deg, #faf8f6, #f0ebe6); }
.pitch-card__visual--calm { background: linear-gradient(135deg, #f5f3f8, #e8e4ed); }
.pitch-card__visual--loading {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: rgba(92, 74, 82, 0.65);
}

.pitch-card__brand {
  margin: 0.85rem 1rem 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(92, 74, 82, 0.65);
}

.pitch-card__line {
  margin: 0 1rem 0.65rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: #3d3538;
}

.pitch-card__meta {
  margin: 0 1rem 0.5rem;
  font-size: 0.78rem;
  color: rgba(92, 74, 82, 0.65);
}

.pitch-card__bullets {
  margin: 0 1rem 0.85rem;
  padding-left: 1.1rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(61, 53, 56, 0.78);
}

.pitch-card__cta {
  display: block;
  margin: 0 1rem 0.85rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  text-align: center;
  background: linear-gradient(135deg, #d67e97, #b84a6a);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
}

.pitch-card__ai-note {
  margin: 0 1rem 0.65rem;
  font-size: 0.74rem;
  color: rgba(92, 74, 82, 0.72);
  line-height: 1.4;
}

.pitch-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0 1rem 1rem;
  margin-top: auto;
}

.cpw-ai-preview .pitch-card {
  max-width: 360px;
}

@media (max-width: 900px) {
  .bm-layout,
  .cpw-ai-layout {
    grid-template-columns: 1fr;
  }

  .bm-how-sidebar,
  .cpw-sidebar {
    position: static;
  }

  .bm-summary-row,
  .cpw-summary-row {
    grid-template-columns: 1fr;
  }
}

/* ─── Platform preview mockup ─── */
.preview__url {
  margin-left: auto;
  font-size: 0.7rem;
  color: rgba(31, 26, 29, 0.45);
  letter-spacing: 0.02em;
}

/* ─── Site footer ─── */
.site-footer.section {
  min-height: auto;
  scroll-snap-align: none;
  justify-content: flex-start;
}

.site-footer {
  padding-top: var(--space-xl);
  padding-bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(250, 232, 240, 0.35) 100%);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.site-footer__logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

.site-footer__tagline {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: rgba(31, 26, 29, 0.6);
  max-width: 28ch;
  line-height: 1.5;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.site-footer__heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(31, 26, 29, 0.45);
  margin-bottom: 0.65rem;
}

.site-footer__link {
  display: block;
  font-size: 0.9rem;
  color: rgba(31, 26, 29, 0.75);
  text-decoration: none;
  margin-bottom: 0.4rem;
}

.site-footer__link:hover {
  color: var(--color-text);
}

.site-footer__link--btn {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.site-footer__bottom {
  border-top: 1px solid rgba(245, 184, 204, 0.35);
  padding: var(--space-md) 0;
}

.site-footer__copy {
  font-size: 0.8rem;
  color: rgba(31, 26, 29, 0.5);
}

/* ─── Settings modal ─── */
.settings-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.settings-group {
  border: none;
  padding: 0;
  margin: 0;
}

.settings-group__title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(31, 26, 29, 0.5);
  margin-bottom: 0.75rem;
}

.settings-toggle {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.15rem 1rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(245, 184, 204, 0.2);
  cursor: pointer;
}

.settings-toggle:last-child {
  border-bottom: none;
}

.settings-toggle__label {
  font-size: 0.95rem;
  font-weight: 600;
}

.settings-toggle__desc {
  grid-column: 1;
  font-size: 0.82rem;
  color: rgba(31, 26, 29, 0.55);
}

.settings-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.settings-toggle__switch {
  grid-row: 1 / span 2;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(31, 26, 29, 0.15);
  position: relative;
  transition: background 0.2s ease;
}

.settings-toggle__switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.settings-toggle input:checked + .settings-toggle__switch {
  background: var(--color-accent, #f5b8cc);
}

.settings-toggle input:checked + .settings-toggle__switch::after {
  transform: translateX(18px);
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.settings-field__label {
  font-size: 0.9rem;
  font-weight: 600;
}

.settings-field__input {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245, 184, 204, 0.45);
  font-family: inherit;
  font-size: 0.9rem;
}

.settings-form__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.settings-form__actions .settings-form__btn {
  flex: 1;
  min-width: 10rem;
  padding: 0.9rem 1.5rem;
  font-size: 0.9375rem;
  white-space: nowrap;
  line-height: 1.2;
}

.settings-form__success {
  color: #2d6a4f;
  font-size: 0.9rem;
}

/* ─── Legal pages ─── */
.legal-page {
  background: var(--color-bg, #fffcfa);
  color: var(--color-text, #1f1a1d);
  min-height: 100vh;
}

.legal-header {
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(245, 184, 204, 0.35);
}

.legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-header__logo {
  font-weight: 700;
  text-decoration: none;
  color: var(--color-text);
}

.legal-header__back {
  font-size: 0.9rem;
  color: rgba(31, 26, 29, 0.65);
  text-decoration: none;
}

.legal-main {
  padding: var(--space-xl) var(--space-md);
}

.legal-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 0.35rem;
}

.legal-updated {
  color: rgba(31, 26, 29, 0.5);
  margin-bottom: var(--space-lg);
}

.legal-section {
  margin-bottom: var(--space-md);
}

.legal-section h2 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.legal-section p,
.legal-section li {
  line-height: 1.65;
  color: rgba(31, 26, 29, 0.8);
}

.legal-section ul {
  padding-left: 1.25rem;
}

.legal-footer {
  margin-top: var(--space-xl);
  padding: var(--space-md) 0;
  border-top: 1px solid rgba(245, 184, 204, 0.35);
}

.legal-footer__inner {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(31, 26, 29, 0.55);
}

.legal-footer__inner a {
  color: inherit;
}

@media (max-width: 900px) {
  .preview__frame .os-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1.05fr) minmax(140px, 175px) !important;
  }

  .preview__frame .cpw-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .preview__frame .bm-legend-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__nav {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-footer__nav {
    grid-template-columns: 1fr;
  }
}

/* ── Analytics (Tool 4) ── */
.ax-root {
  padding-bottom: 2rem;
}

.ax-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  padding-bottom: var(--space-lg);
}

.ax-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 0;
}

.ax-header__main {
  flex: 1;
  min-width: 0;
}

.ax-header__updated {
  flex-shrink: 0;
  text-align: right;
  padding-top: 0.15rem;
}

.ax-header__updated-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(92, 74, 82, 0.55);
}

.ax-header__updated-time {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(92, 74, 82, 0.72);
}

.ax-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.ax-stat {
  padding: var(--panel-padding);
  border-top: 3px solid var(--accent);
}

.ax-stat__value {
  margin: 0 0 var(--space-2xs);
}

.ax-panel,
.ax-recent {
  padding: var(--panel-padding);
}

.ax-stat__label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(92, 74, 82, 0.55);
}

.ax-stat__meta {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(92, 74, 82, 0.58);
}

.ax-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
}

.ax-panel__meta {
  margin: -0.65rem 0 1rem;
  font-size: 0.78rem;
  color: rgba(92, 74, 82, 0.58);
}

.ax-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ax-bar-row__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.45rem;
}

.ax-bar-row__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(92, 74, 82, 0.72);
}

.ax-bar-row__count {
  font-size: 0.78rem;
  font-weight: 600;
  color: #3d3538;
}

.ax-bar-row__track {
  height: 8px;
  border-radius: 999px;
  background: rgba(245, 184, 204, 0.18);
  overflow: hidden;
}

.ax-bar-row__fill {
  height: 100%;
  border-radius: 999px;
  min-width: 4px;
  transition: width 420ms ease;
}


.ax-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ax-timeline__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ax-timeline__check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(168, 212, 188, 0.22);
  color: #6a9f7a;
  font-size: 0.68rem;
  font-weight: 600;
}

.ax-timeline__text {
  font-size: 0.88rem;
  color: rgba(92, 74, 82, 0.72);
  line-height: 1.45;
}

.ax-timeline__count {
  flex-shrink: 0;
  margin-left: auto;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(245, 184, 204, 0.22);
  color: rgba(92, 74, 82, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.ax-timeline__empty,
.ax-empty {
  margin: 0;
  padding: 0.5rem 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(92, 74, 82, 0.58);
}

@media (max-width: 960px) {
  .ax-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .ax-charts {
    grid-template-columns: 1fr;
  }

  .cpw-how--banner .cpw-how__list li {
    flex: 1 1 100%;
  }
}

@media (max-width: 520px) {
  .ax-stats {
    grid-template-columns: 1fr;
  }

  .ax-header {
    flex-direction: column;
    gap: 0.75rem;
  }

  .ax-header__updated {
    text-align: left;
    padding-top: 0;
  }
}

/* ─── Creator Calendar ─── */
.cc-wrap {
  padding: 0 0 var(--space-lg);
}

.cc-header {
  margin-bottom: var(--section-gap);
}

.cc-header.dash-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cc-toolbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 0;
  margin-bottom: 1rem;
  background: none;
  border: none;
  box-shadow: none;
}

.cc-toolbar__nav-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
  padding: 0.45rem 0.7rem;
  width: fit-content;
  max-width: 100%;
}

.cc-toolbar__views-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
}

.cc-toolbar__date-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  flex: 0 0 auto;
  padding: 0.5rem 0.75rem;
}

.cc-toolbar__controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex: 1 1 auto;
  flex-wrap: wrap;
  min-width: 0;
}

.cc-toolbar__left {
  display: flex;
  align-items: center;
  min-width: 0;
  justify-content: flex-start;
}

.cc-toolbar__center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex: 1 1 auto;
  min-width: 0;
}

.cc-toolbar__right {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  margin-left: 0;
}

.cc-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.cc-tab {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(214, 126, 151, 0.25);
  background: #fff;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  color: rgba(92, 74, 82, 0.8);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.cc-tab:hover:not(.is-active):not(.is-locked) {
  border-color: rgba(245, 168, 196, 0.45);
  transform: translateY(-1px);
}

.cc-tab.is-active {
  background: linear-gradient(135deg, #ffd6e8, #f5a8c4);
  border-color: transparent;
  color: #1f1a1d;
}

.cc-tab.is-locked {
  opacity: 0.55;
  cursor: not-allowed;
}

.cc-tab--premium .cpw-premium-tag {
  margin-left: 0.25rem;
  font-size: 0.58rem;
  vertical-align: middle;
}

.cc-nav-btn,
.cc-today-btn {
  border: 1px solid rgba(214, 126, 151, 0.25);
  background: #fff;
  border-radius: 999px;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  color: #3d3538;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cc-nav-btn {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.cc-today-btn {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.32rem 0.75rem;
  margin-left: 0.25rem;
}

.cc-nav-btn:hover,
.cc-today-btn:hover {
  background: var(--dash-pink-soft);
  border-color: rgba(245, 168, 196, 0.45);
}

.cc-period-label {
  margin: 0;
  min-width: 0;
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 600;
  color: #3d3538;
  line-height: 1.2;
  padding: 0 0.15rem;
  white-space: nowrap;
}

.cc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.cc-main {
  grid-column: 1;
  min-width: 0;
}

.cc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-bottom: 0.75rem;
}

.cc-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  color: rgba(92, 74, 82, 0.78);
}

.cc-legend__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 1px solid transparent;
}

.cc-legend__emoji {
  font-size: 0.82rem;
}

.cc-body {
  padding: 1rem;
  min-height: 420px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cc-body--month .cc-month,
.cc-body--week .cc-week-agenda,
.cc-body--day .cc-day {
  animation: cc-fade-in 0.28s ease;
}

@keyframes cc-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.cc-month__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.cc-month__weekday {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(92, 74, 82, 0.55);
}

.cc-month__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
}

.cc-month-cell {
  min-height: 5.5rem;
  padding: 0.45rem;
  border-radius: 12px;
  border: 1px solid rgba(245, 184, 204, 0.18);
  background: rgba(255, 255, 255, 0.55);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.cc-month-cell:hover {
  background: #fff;
  border-color: rgba(245, 168, 196, 0.35);
  box-shadow: 0 4px 16px rgba(245, 184, 204, 0.12);
}

.cc-month-cell--muted {
  opacity: 0.42;
}

.cc-month-cell--today {
  border-color: rgba(245, 168, 196, 0.55);
  background: linear-gradient(180deg, #fff9fc 0%, #fff 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 214, 232, 0.35);
}

.cc-month-cell__head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.25rem;
}

.cc-month-cell__num {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(92, 74, 82, 0.7);
}

.cc-month-cell--today .cc-month-cell__num {
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd6e8, #f5a8c4);
  color: #1f1a1d;
}

.cc-month-cell__events {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cc-event-pill {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  width: 100%;
  padding: 0.18rem 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--cc-pill-border, rgba(245, 168, 196, 0.35));
  background: var(--cc-pill-bg, #ffd6e8);
  font: inherit;
  font-size: 0.62rem;
  font-weight: 600;
  color: #3d3538;
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s ease;
}

.cc-event-pill:hover {
  transform: translateY(-1px);
}

.cc-event-pill__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cc-event-pill__time {
  font-size: 0.55rem;
  font-weight: 600;
  opacity: 0.75;
  margin-left: auto;
  flex-shrink: 0;
}

.cc-month-cell__more {
  font-size: 0.6rem;
  color: rgba(92, 74, 82, 0.55);
  padding-left: 0.2rem;
}

.cc-week-agenda {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cc-agenda-day {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(245, 184, 204, 0.18);
}

.cc-agenda-day:last-child {
  border-bottom: none;
}

.cc-agenda-day--today .cc-agenda-day__title {
  color: #c44569;
}

.cc-agenda-day__title {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #3d3538;
  letter-spacing: -0.01em;
}

.cc-agenda-day__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.cc-agenda-day__empty {
  font-size: 0.78rem;
  color: rgba(92, 74, 82, 0.48);
  font-style: italic;
  padding: 0.1rem 0;
}

.cc-agenda-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.35rem 0.15rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.cc-agenda-item:hover {
  background: rgba(255, 245, 249, 0.85);
  transform: translateX(2px);
}

.cc-agenda-item__line {
  font-size: 0.82rem;
  font-weight: 600;
  color: #3d3538;
  line-height: 1.4;
}

.cc-agenda-item--past .cc-agenda-item__line {
  color: rgba(92, 74, 82, 0.62);
}

.cc-agenda-item--completed .cc-agenda-item__line {
  color: #5f9f78;
}

.cc-agenda-item__done {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #5f9f78;
}

.cc-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
}

.cc-week-col {
  min-height: 360px;
  border-radius: 14px;
  border: 1px solid rgba(245, 184, 204, 0.2);
  background: rgba(255, 255, 255, 0.5);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cc-week-col--today {
  border-color: rgba(245, 168, 196, 0.5);
  box-shadow: 0 6px 20px rgba(245, 184, 204, 0.14);
}

.cc-week-col__head {
  padding: 0.55rem 0.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(245, 184, 204, 0.15);
  background: rgba(255, 249, 252, 0.8);
}

.cc-week-col__day {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(92, 74, 82, 0.55);
}

.cc-week-col__date {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #3d3538;
  line-height: 1.2;
}

.cc-week-col--today .cc-week-col__date {
  color: #c44569;
}

.cc-week-col__body {
  padding: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cc-week-event {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  width: 100%;
  padding: 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--cc-event-border, rgba(245, 168, 196, 0.35));
  background: var(--cc-event-bg, #ffd6e8);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cc-week-event:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 184, 204, 0.18);
}

.cc-week-event__title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #3d3538;
  line-height: 1.3;
}

.cc-week-event__time {
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(92, 74, 82, 0.6);
}

.cc-week-event__note {
  font-size: 0.64rem;
  color: rgba(92, 74, 82, 0.68);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cc-week-col__empty {
  margin: 0.5rem 0 0;
  text-align: center;
  font-size: 0.68rem;
  color: rgba(92, 74, 82, 0.45);
  font-style: italic;
}

.cc-day__header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.5rem 0.25rem 1rem;
  border-bottom: 1px dashed rgba(245, 184, 204, 0.35);
  margin-bottom: 1rem;
}

.cc-day__header--today {
  background: linear-gradient(90deg, rgba(255, 214, 232, 0.2), transparent);
  border-radius: 12px;
  padding: 0.85rem;
  border-bottom: none;
  margin-bottom: 0.85rem;
}

.cc-day__emoji {
  font-size: 1.5rem;
}

.cc-day__title {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  color: #3d3538;
}

.cc-day__subtitle {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(92, 74, 82, 0.68);
}

.cc-day__list {
  display: grid;
  gap: 0.65rem;
}

.cc-day-card {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--cc-event-border, rgba(245, 168, 196, 0.35));
  background: var(--cc-event-bg, #ffd6e8);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cc-day-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 184, 204, 0.2);
}

.cc-day-card__top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.cc-day-card__category {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(92, 74, 82, 0.65);
}

.cc-day-card__time {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(92, 74, 82, 0.7);
}

.cc-day-card__title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: #3d3538;
}

.cc-day-card__notes {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(92, 74, 82, 0.72);
}

.cc-day-card__notes--empty {
  font-style: italic;
  opacity: 0.65;
}

.cc-period-empty {
  margin-top: 1.25rem;
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: 14px;
  border: 1px dashed rgba(245, 184, 204, 0.4);
  background: rgba(255, 249, 252, 0.65);
}

.cc-period-empty__emoji {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.cc-period-empty__title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #3d3538;
}

.cc-period-empty__text {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: rgba(92, 74, 82, 0.68);
}

.cc-empty {
  padding: 2.5rem 2rem;
  text-align: center;
  margin-top: 0.5rem;
}

.cc-empty__icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.cc-empty__title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: #3d3538;
}

.cc-empty__text {
  margin: 0 0 1.25rem;
  color: rgba(92, 74, 82, 0.72);
  font-size: 0.92rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.cc-aside {
  padding: 1rem;
  position: static;
  grid-column: 1;
  grid-row: auto;
  align-self: start;
  width: 100%;
  text-align: center;
}

.cc-aside__title {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
  color: #3d3538;
}

.cc-aside__meta {
  margin: 0 auto 0.85rem;
  font-size: 0.74rem;
  color: rgba(92, 74, 82, 0.6);
  text-align: center;
  max-width: 24rem;
}

.cc-upcoming,
.cc-past-list,
.cc-aside-empty {
  text-align: left;
}

.cc-upcoming {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cc-aside__tz {
  margin: 0 0 0.65rem;
  font-size: 0.66rem;
  color: rgba(92, 74, 82, 0.5);
}

.cc-aside__title--past {
  margin-top: 1.1rem;
}

.cc-upcoming__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(245, 184, 204, 0.2);
  background: rgba(255, 255, 255, 0.55);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.cc-upcoming__line {
  flex: 1;
  font-size: 0.76rem;
  font-weight: 600;
  color: #3d3538;
  line-height: 1.35;
}

.cc-past-section {
  margin-top: 0.35rem;
}

.cc-past-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.cc-past-item {
  border: 1px solid rgba(245, 184, 204, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.45);
  overflow: hidden;
}

.cc-past-item__main {
  display: block;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: none;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.cc-past-item__main:hover {
  background: rgba(255, 255, 255, 0.7);
}

.cc-past-item__line {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  color: #3d3538;
  line-height: 1.35;
}

.cc-past-item__status {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.66rem;
  font-weight: 600;
  color: rgba(196, 69, 105, 0.75);
}

.cc-past-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 0.55rem 0.55rem;
}

.cc-past-action {
  border: 1px solid rgba(245, 184, 204, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.22rem 0.55rem;
  font: inherit;
  font-size: 0.64rem;
  font-weight: 600;
  color: rgba(61, 53, 56, 0.82);
  cursor: pointer;
}

.cc-past-action:hover {
  border-color: rgba(245, 168, 196, 0.45);
  background: #fff;
}

.cc-event-warning {
  margin: 0.35rem 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(255, 244, 214, 0.75);
  border: 1px solid rgba(255, 184, 120, 0.45);
  color: #6a4f2d;
  font-size: 0.74rem;
  line-height: 1.45;
}

.cc-event-warning--strict {
  background: rgba(255, 232, 236, 0.85);
  border-color: rgba(232, 107, 154, 0.35);
  color: #8b3f58;
}

.cc-reminder-fields {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}

.cc-select {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(245, 184, 204, 0.35);
  background: rgba(255, 255, 255, 0.85);
  font: inherit;
  font-size: 0.82rem;
  color: #3d3538;
}

.cc-event-pill--past {
  opacity: 0.72;
}

.cc-event-pill--completed {
  border-color: rgba(168, 212, 188, 0.55) !important;
}

.cc-event-pill__done,
.cc-week-event__done,
.cc-day-card__done {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  color: #5f9f78;
}

.cc-week-event--past,
.cc-day-card--past {
  opacity: 0.78;
}

.cc-day-card__status--completed,
.cc-day-card__status--needs_review,
.cc-day-card__status--missed {
  font-weight: 600;
}

.cc-day-card__status--completed {
  color: #5f9f78;
}

.cc-day-card__status--needs_review {
  color: #c96a8a;
}

.cc-day-card__status--missed {
  color: rgba(92, 74, 82, 0.55);
}

.cc-upcoming__item:hover {
  background: #fff;
  border-color: rgba(245, 168, 196, 0.35);
  transform: translateX(2px);
}

.cc-upcoming__date {
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(92, 74, 82, 0.55);
  min-width: 3.5rem;
}

.cc-upcoming__pill {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
}

.cc-upcoming__title {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: #3d3538;
  line-height: 1.25;
}

.cc-upcoming__cat {
  display: block;
  font-size: 0.64rem;
  color: rgba(92, 74, 82, 0.58);
}

.cc-aside--empty {
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.cc-aside--empty .cc-aside-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0.75rem;
}

.cc-aside__meta[hidden] {
  display: none;
}

.cc-event-form .modal__label input[type="date"],
.cc-event-form .modal__label input[type="time"] {
  padding: 0.5rem 0.75rem;
  min-height: 2.35rem;
  font-size: 0.875rem;
}

.cc-aside-empty {
  padding: 1.25rem 0.5rem;
  text-align: center;
}

.cc-aside-empty__emoji {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.cc-aside-empty__text {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(92, 74, 82, 0.62);
  line-height: 1.45;
}

.cc-modal-panel {
  max-width: 480px;
}

.cc-event-notes {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(214, 126, 151, 0.28);
  border-radius: 10px;
  font: inherit;
  font-size: 0.86rem;
  resize: none;
  height: 4.5rem;
  background: #fff;
  overflow-y: auto;
}

.cc-event-notes:focus {
  outline: none;
  border-color: rgba(245, 168, 196, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 214, 232, 0.35);
}

.cc-category-field {
  border: none;
  margin: 0 0 1rem;
  padding: 0;
}

.cc-category-field__label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(92, 74, 82, 0.8);
}

.cc-category-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cc-category-option {
  cursor: pointer;
}

.cc-category-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cc-category-option__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--cc-cat-border, rgba(245, 168, 196, 0.35));
  background: var(--cc-cat-bg, #ffd6e8);
  font-size: 0.74rem;
  font-weight: 600;
  color: #3d3538;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.cc-category-option input:checked + .cc-category-option__pill {
  box-shadow: 0 0 0 2px rgba(245, 168, 196, 0.45);
  transform: translateY(-1px);
}

.cc-status-field {
  border: none;
  margin: 0 0 1rem;
  padding: 0;
}

.cc-status-field__label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(92, 74, 82, 0.8);
}

.cc-status-options {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cc-status-option {
  cursor: pointer;
}

.cc-status-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cc-status-option__label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #3d3538;
}

.cc-status-option__circle {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  border: 2px solid rgba(214, 126, 151, 0.45);
  background: #fff;
  flex-shrink: 0;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.cc-status-option input:checked + .cc-status-option__label .cc-status-option__circle {
  border-color: #f5a8c4;
  background: radial-gradient(circle at center, #f5a8c4 38%, #fff 40%);
  box-shadow: 0 0 0 2px rgba(255, 214, 232, 0.45);
}

.cc-week-event__status {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(92, 74, 82, 0.55);
}

.cc-day-card__status {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: rgba(92, 74, 82, 0.7);
}

.cc-day-card__status--in_progress {
  color: #c44569;
}

.cc-day-card__status--completed {
  color: #5a8f6e;
}

.cc-event-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.cc-event-form__actions-right {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.cc-btn-delete {
  color: #b84a6a;
  border-color: rgba(184, 74, 106, 0.35);
}

@media (max-width: 1080px) {
  .cc-toolbar__nav-row {
    width: 100%;
    justify-content: center;
  }

  .cc-toolbar__date-row {
    justify-content: center;
  }

  .cc-toolbar__controls-row {
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
  }

  .cc-toolbar__left,
  .cc-toolbar__right {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .cc-layout {
    grid-template-columns: 1fr;
  }

  .cc-main {
    grid-column: 1;
  }

  .cc-aside {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }
}

@media (max-width: 760px) {
  .cc-month__grid {
    gap: 0.25rem;
  }

  .cc-month-cell {
    min-height: 4.5rem;
    padding: 0.3rem;
  }

  .cc-event-pill__text {
    display: none;
  }

  .cc-event-pill__time {
    display: none;
  }

  .cc-event-pill {
    justify-content: center;
    padding: 0.2rem;
  }
}

@media (max-width: 520px) {
  .cc-agenda-item__line {
    font-size: 0.78rem;
  }

  .cc-month__weekdays {
    display: none;
  }

  .cc-month__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── Creator Portfolio ─── */
.cpf-wrap {
  padding: 0 0 var(--space-xl);
}

.cpf-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
}

.cpf-toolbar__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.cpf-toolbar__left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.cpf-toolbar__title {
  margin: 0 0 var(--space-2xs);
}

.cpf-toolbar__subtitle {
  max-width: var(--container-prose);
  color: var(--text-secondary);
}

.cpf-mode-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(255, 249, 252, 0.9);
  border: 1px solid rgba(245, 184, 204, 0.25);
}

.cpf-mode-tab {
  padding: 0.35rem 0.9rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(92, 74, 82, 0.75);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.cpf-mode-tab.is-active {
  background: linear-gradient(135deg, #ffd6e8, #f5a8c4);
  color: #1f1a1d;
}

.cpf-mode-tab--premium {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cpf-mode-tab--premium.is-locked {
  opacity: 0.72;
  cursor: not-allowed;
}

.cpf-toolbar__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  margin-left: auto;
}

.cpf-save-hint {
  font-size: 0.68rem;
  color: rgba(92, 74, 82, 0.55);
}

.cpf-hero {
  position: relative;
  overflow: visible;
  padding: 0;
  margin-bottom: 1rem;
}

.cpf-hero__banner {
  height: 120px;
  background: linear-gradient(135deg, #fff8fb 0%, #ffeef5 42%, #fff5ee 100%);
  opacity: 1;
}

.cpf-hero__body {
  position: relative;
  padding: 0 1.35rem 1.35rem;
  margin-top: -2.75rem;
}

.cpf-hero__identity {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.cpf-avatar-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.cpf-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 4px 18px rgba(245, 184, 204, 0.22);
  overflow: hidden;
  background: #f5a8c4;
  position: relative;
  flex-shrink: 0;
  line-height: 0;
}

.cpf-avatar .profile-avatar__initials {
  font-size: 1.15rem;
  color: #fff;
}

.cpf-avatar-upload {
  font-size: 0.68rem;
  font-weight: 600;
  color: #c44569;
  cursor: pointer;
  text-decoration: underline;
}

.cpf-hero__meta {
  flex: 1;
  min-width: 0;
}

.cpf-root--preview .cpf-hero__meta {
  padding-top: 2.85rem;
}

.cpf-root--edit .cpf-hero__identity {
  align-items: center;
}

.cpf-hero__preview {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cpf-hero__focus-field {
  margin: 0;
  max-width: 28rem;
  width: 100%;
}

.cpf-hero__name {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 700;
  color: #3d3538;
  line-height: 1.15;
}

.cpf-niche-wrap {
  margin-top: 0.35rem;
}

.cpf-niche {
  display: inline-block;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff5f8, #ffe8f2);
  border: 1px solid rgba(245, 184, 204, 0.35);
  font-size: 0.74rem;
  font-weight: 600;
  color: #c44569;
}

.cpf-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cpf-socials__empty {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(92, 74, 82, 0.5);
  font-style: italic;
}

.cpf-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 184, 204, 0.3);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.74rem;
  font-weight: 600;
  color: #3d3538;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.cpf-social-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 184, 204, 0.2);
}

.cpf-social-pill--static {
  cursor: default;
}

.cpf-socials-edit {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(245, 184, 204, 0.35);
}

.cpf-socials-edit__label {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(92, 74, 82, 0.55);
}

.cpf-socials-edit__grid {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cpf-social-edit-row {
  display: grid;
  grid-template-columns: 1.75rem 5.75rem minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 0.5rem 0.65rem;
  padding: 0.35rem 0;
}

.cpf-social-edit-row__icon {
  font-size: 0.9rem;
}

.cpf-social-edit-row__name {
  font-size: 0.72rem;
  font-weight: 600;
  color: #3d3538;
  min-width: 4.5rem;
}

.cpf-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.cpf-section {
  padding: var(--panel-padding);
}

.cpf-section__head {
  margin-bottom: 0.85rem;
}

.cpf-section__head--row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cpf-section__title {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  color: #3d3538;
}

.cpf-section__hint {
  margin: 0;
  font-size: 0.74rem;
  color: rgba(92, 74, 82, 0.58);
}

.cpf-bio__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(61, 53, 56, 0.88);
  white-space: pre-wrap;
}

.cpf-bio__text:empty,
.cpf-bio__text[hidden] {
  display: none !important;
}

.cpf-audience__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.cpf-audience-card {
  padding: 0.65rem 0.7rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff9fc 0%, #fff 100%);
  border: 1px solid rgba(245, 184, 204, 0.22);
  text-align: center;
}

.cpf-audience-card__emoji {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.cpf-audience-card__label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(92, 74, 82, 0.5);
}

.cpf-audience-card__value {
  display: block;
  font-size: 0.78rem;
  color: #3d3538;
  line-height: 1.3;
  margin-top: 0.15rem;
}

.cpf-audience__desc {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(92, 74, 82, 0.75);
}

.cpf-audience__placeholder {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(92, 74, 82, 0.5);
  font-style: italic;
}

.cpf-audience__edit {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.cpf-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.cpf-field--inline {
  margin-bottom: 0.45rem;
}

.cpf-field__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(92, 74, 82, 0.55);
}

.cpf-field__input,
.cpf-field__textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(214, 126, 151, 0.28);
  border-radius: 10px;
  font: inherit;
  font-size: 0.84rem;
  background: #fff;
  color: #3d3538;
}

.cpf-field__input--niche {
  max-width: 20rem;
}

.cpf-field__input--social,
.cpf-field__input--social-url {
  font-size: 0.76rem;
  padding: 0.4rem 0.55rem;
}

.cpf-field__textarea {
  resize: vertical;
  min-height: 5rem;
  line-height: 1.5;
}

.cpf-field__textarea--auto {
  resize: none;
  overflow: hidden;
  min-height: 4.5rem;
}

.cpf-premium-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--premium-gradient, linear-gradient(135deg, #f59a5c, #e86b9a));
}

.cpf-field__input:focus,
.cpf-field__textarea:focus {
  outline: none;
  border-color: rgba(245, 168, 196, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 214, 232, 0.35);
}

.cpf-work,
.cpf-collabs {
  margin-bottom: 1rem;
}

.cpf-work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
}

.cpf-work-card {
  overflow: hidden;
  padding: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cpf-work-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(245, 184, 204, 0.18);
}

.cpf-work-card__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #fff5f8, #ffe8f2);
  overflow: hidden;
}

.cpf-work-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cpf-work-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0.5;
}

.cpf-work-card__edit {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  padding: 0.2rem 0.5rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 0.62rem;
  font-weight: 700;
  color: #3d3538;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(61, 53, 56, 0.12);
}

.cpf-work-card__body {
  padding: 0.7rem 0.8rem 0.85rem;
}

.cpf-work-card__title {
  margin: 0 0 0.25rem;
  font-size: 0.84rem;
  color: #3d3538;
}

.cpf-work-card__caption {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(92, 74, 82, 0.65);
  line-height: 1.4;
}

.cpf-work-card__link {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #c44569;
  text-decoration: none;
}

.cpf-work-card__link:hover {
  text-decoration: underline;
}

.cpf-collabs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.cpf-collab-card {
  position: relative;
  padding: 1rem;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff9fc 0%, #fff 55%, #fff5f8 100%);
  border: 1px solid rgba(245, 184, 204, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cpf-collab-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(245, 184, 204, 0.16);
}

.cpf-collab-card__edit {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  padding: 0.18rem 0.45rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  font: inherit;
  font-size: 0.6rem;
  font-weight: 700;
  color: #3d3538;
  cursor: pointer;
}

.cpf-collab-card__mark {
  font-size: 0.9rem;
  color: #f5a8c4;
  margin-bottom: 0.35rem;
}

.cpf-collab-card__brand {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  color: #3d3538;
}

.cpf-collab-card__desc {
  margin: 0 0 0.35rem;
  font-size: 0.74rem;
  line-height: 1.45;
  color: rgba(92, 74, 82, 0.72);
}

.cpf-collab-card__year {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(92, 74, 82, 0.5);
}

.cpf-section-empty {
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: 14px;
  border: 1px dashed rgba(245, 184, 204, 0.4);
  background: rgba(255, 249, 252, 0.6);
}

.cpf-section-empty__emoji {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.45rem;
}

.cpf-section-empty__title {
  margin: 0 0 0.3rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #3d3538;
}

.cpf-section-empty__text {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  color: rgba(92, 74, 82, 0.65);
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.cpf-modal-panel {
  max-width: 480px;
}

.cpf-modal-form .modal__label input[type="file"] {
  font-size: 0.8rem;
}

.cpf-type-field {
  border: none;
  margin: 0 0 1rem;
  padding: 0;
}

.cpf-type-field__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(92, 74, 82, 0.8);
}

.cpf-type-options {
  display: flex;
  gap: 0.4rem;
}

.cpf-type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cpf-type-option__pill {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 184, 204, 0.35);
  background: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.cpf-type-option input:checked + .cpf-type-option__pill {
  background: linear-gradient(135deg, #ffd6e8, #f5a8c4);
  border-color: transparent;
}

.cpf-work-preview {
  margin: 0.5rem 0 0.75rem;
  border-radius: 12px;
  overflow: hidden;
  max-height: 160px;
}

.cpf-work-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cpf-optional {
  font-weight: 400;
  color: rgba(92, 74, 82, 0.5);
}

.cpf-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.cpf-modal-actions__right {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.cpf-btn-delete {
  color: #b84a6a;
  border-color: rgba(184, 74, 106, 0.35);
}

/* Edit vs Brand view */
.cpf-root--preview .cpf-edit-only {
  display: none !important;
}

.cpf-root--edit .cpf-display-only {
  display: none !important;
}

.cpf-root--preview #cpf-socials {
  display: flex;
}

.cpf-root--edit #cpf-socials-edit {
  display: block;
}

@media (max-width: 900px) {
  .cpf-toolbar__controls {
    align-items: stretch;
  }

  .cpf-toolbar__left {
    width: 100%;
  }

  .cpf-toolbar__actions {
    align-items: flex-start;
    margin-left: 0;
  }

  .cpf-content-grid {
    grid-template-columns: 1fr;
  }

  .cpf-hero__identity {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cpf-hero__focus-field,
  .cpf-root--preview .cpf-hero__meta {
    padding-top: 0.5rem;
    width: 100%;
    max-width: none;
  }

  .cpf-hero__focus-field {
    padding-top: 0;
  }

  .cpf-socials {
    justify-content: center;
  }

  .cpf-social-edit-row {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .cpf-social-edit-row__name {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .cpf-hero__name {
    font-size: 1.35rem;
  }

  .cpf-work-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cpf-collabs-grid {
    grid-template-columns: 1fr;
  }
}

html[data-theme="dark"] {
  color-scheme: dark;

  --bg: #111013;
  --hero-bg: #141216;
  --nav-bg: #18141a;
  --text: #f6f0f3;
  --border: rgba(245, 184, 204, 0.14);
  --border-pricing: rgba(245, 184, 204, 0.24);
  --accent-light: #221c20;
  --white: #1c181b;

  --dash-cream: #111013;
  --dash-cream-soft: #18141a;
  --dash-cream-warm: #141216;
  --dash-pink-whisper: #1f1a1e;
  --dash-pink-soft: rgba(245, 184, 204, 0.1);
  --dash-pink-border: rgba(245, 184, 204, 0.22);
  --dash-pink-glow: rgba(245, 184, 204, 0.12);

  --brand-charcoal: #f6f0f3;
  --brand-charcoal-hover: #fff7fa;
  --brand-secondary-bg: #1c181b;
  --brand-secondary-border: rgba(245, 184, 204, 0.2);
  --brand-glass-bg: rgba(24, 20, 23, 0.94);
  --brand-glass-border: rgba(245, 184, 204, 0.16);
  --brand-glass-shadow: 0 10px 34px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --brand-pink-btn: linear-gradient(135deg, #3d2b34 0%, #4a3540 55%, #573f4b 100%);
  --brand-pink-btn-border: rgba(245, 184, 204, 0.28);
  --brand-pink-btn-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  --brand-pink-btn-shadow-hover: 0 6px 22px rgba(0, 0, 0, 0.34);

  --cpw-editor-bg: linear-gradient(135deg, #2a2228 0%, #342830 55%, #3f3038 100%);
  --cpw-editor-text: #f6f0f3;

  --score-high-bg: rgba(168, 212, 188, 0.14);
  --score-strong-bg: rgba(240, 184, 204, 0.14);
  --score-moderate-bg: rgba(240, 220, 152, 0.12);
  --score-low-bg: rgba(212, 205, 200, 0.1);
}

html[data-theme="dark"] body.app-mode {
  background: var(--dash-cream);
  color: var(--text);
}

html[data-theme="dark"] .dashboard-main,
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .glass-card,
html[data-theme="dark"] .progress-card,
html[data-theme="dark"] .onboarding-ready,
html[data-theme="dark"] .overview-stat,
html[data-theme="dark"] .dash-panel,
html[data-theme="dark"] .distribution-card,
html[data-theme="dark"] .action-card,
html[data-theme="dark"] .opportunity-card,
html[data-theme="dark"] .cc-toolbar,
html[data-theme="dark"] .cc-body,
html[data-theme="dark"] .cc-aside,
html[data-theme="dark"] .os-card,
html[data-theme="dark"] .os-usage-card,
html[data-theme="dark"] .bm-brand-card,
html[data-theme="dark"] .account-view {
  color: var(--text);
}

html[data-theme="dark"] .sidebar__link {
  color: rgba(246, 240, 243, 0.78);
}

html[data-theme="dark"] .sidebar__link:hover {
  background: rgba(245, 184, 204, 0.1);
  color: #fff7fa;
}

html[data-theme="dark"] .sidebar__link.is-active {
  color: #ffc8dc;
  background: rgba(245, 184, 204, 0.14);
  border-color: rgba(245, 184, 204, 0.24);
}

html[data-theme="dark"] .sidebar__nav-label,
html[data-theme="dark"] .sidebar__user-name {
  color: rgba(246, 240, 243, 0.82);
}

html[data-theme="dark"] .dash-hero__title,
html[data-theme="dark"] .account-hero__title,
html[data-theme="dark"] .onboarding-ready__title,
html[data-theme="dark"] .progress-card__title,
html[data-theme="dark"] .dash-panel__title,
html[data-theme="dark"] .distribution-section__title,
html[data-theme="dark"] .overview-stat__value,
html[data-theme="dark"] .account-form__section-title,
html[data-theme="dark"] .bm-brand-name,
html[data-theme="dark"] .os-title,
html[data-theme="dark"] .bm-title {
  color: #f6f0f3;
}

html[data-theme="dark"] .dash-hero__subtitle,
html[data-theme="dark"] .account-hero__subtitle,
html[data-theme="dark"] .onboarding-ready__text,
html[data-theme="dark"] .progress-card__meta,
html[data-theme="dark"] .overview-stat__label,
html[data-theme="dark"] .overview-stat__desc,
html[data-theme="dark"] .action-card__desc,
html[data-theme="dark"] .account-form__section-desc,
html[data-theme="dark"] .account-field__hint,
html[data-theme="dark"] .os-subtitle,
html[data-theme="dark"] .bm-subtitle {
  color: rgba(246, 240, 243, 0.68);
}

html[data-theme="dark"] .account-field__label {
  color: rgba(246, 240, 243, 0.52);
}

html[data-theme="dark"] .account-field__input,
html[data-theme="dark"] .account-field__select,
html[data-theme="dark"] .account-field__value {
  color: #f6f0f3;
  border-bottom-color: var(--dash-pink-border);
}

html[data-theme="dark"] .account-field__input--locked,
html[data-theme="dark"] .account-field__input[readonly] {
  color: rgba(246, 240, 243, 0.62);
}

html[data-theme="dark"] .account-field__select {
  background-color: transparent;
}

html[data-theme="dark"] .account-back,
html[data-theme="dark"] .account-form__upload,
html[data-theme="dark"] .onboarding-ready__toggle,
html[data-theme="dark"] .action-card__title,
html[data-theme="dark"] .opportunity-card__name {
  color: #ffc8dc;
}

html[data-theme="dark"] .onboarding-step,
html[data-theme="dark"] .cc-tab,
html[data-theme="dark"] .cc-nav-btn,
html[data-theme="dark"] .cc-today-btn {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(245, 184, 204, 0.18);
  color: rgba(246, 240, 243, 0.88);
}

html[data-theme="dark"] .onboarding-step.is-current:not(.is-complete),
html[data-theme="dark"] .cc-tab.is-active {
  color: #1f1a1d;
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .os-input,
html[data-theme="dark"] .os-select {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(245, 184, 204, 0.18);
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: rgba(246, 240, 243, 0.38);
}

html[data-theme="dark"] .bm-link-line__anchor,
html[data-theme="dark"] .bm-brand-name-link {
  color: #ffc8dc;
}

html[data-theme="dark"] .bm-link-line--placeholder span,
html[data-theme="dark"] .bm-featured-product,
html[data-theme="dark"] .bm-meta-line {
  color: rgba(246, 240, 243, 0.58);
}

html[data-theme="dark"] .progress-card__pct {
  color: #ffc8dc;
  background: rgba(245, 184, 204, 0.12);
  border-color: rgba(245, 184, 204, 0.24);
}

html[data-theme="dark"] .progress-bar {
  background: rgba(245, 184, 204, 0.12);
}

/* ─── Responsive polish (browser + mobile) ─── */
@media (max-width: 768px) {
  .container,
  .header-container,
  .landing-page .container,
  .landing-page .site-footer__inner,
  .landing-page .site-footer__bottom-inner {
    padding-inline: 1rem;
  }

  .navbar__logo {
    font-size: 0.9rem;
    letter-spacing: 0.04em;
  }

  .navbar__nav {
    gap: 0.5rem;
  }

  .navbar__nav .btn--sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .preview.section {
    padding-block: 2rem;
  }

  .preview__mockup {
    border-radius: var(--radius-md);
  }

  .preview__screen {
    min-height: 420px;
    height: clamp(420px, 88vw, 560px);
    max-height: none;
  }

  .preview__frame.dashboard-main {
    font-size: 0.68rem;
    padding: 0.35rem 0.45rem 0.45rem;
  }

  .preview__frame .os-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(132px, 160px) !important;
  }

  .preview__frame .os-search-form .os-row,
  .preview__frame .os-search-grid {
    grid-template-columns: 1fr !important;
  }

  .preview__frame .cpw-summary-row {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 0.7fr) minmax(0, 1.35fr) !important;
  }

  .preview__frame .bm-card-list,
  .preview__frame .cpw-grid {
    grid-template-columns: 1fr !important;
  }

  .preview__frame .bm-legend-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .preview__frame .bm-actions-bar,
  .preview__frame .bm-search-fields {
    flex-wrap: wrap;
  }

  .sidebar {
    --sidebar-w: 64px;
    width: var(--sidebar-w);
    padding: 0.75rem 0.35rem;
  }

  .sidebar .sidebar__brand,
  .sidebar .sidebar__text,
  .sidebar .sidebar__nav-label,
  .sidebar .sidebar__user-name,
  .sidebar .sidebar__user-plan,
  .sidebar .sidebar__plan-badge {
    opacity: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    pointer-events: none;
  }

  .sidebar .sidebar__top {
    justify-content: center;
  }

  .dashboard-shell {
    margin-left: var(--sidebar-w);
    width: calc(100% - var(--sidebar-w));
  }

  .sidebar--collapsed ~ .dashboard-shell {
    margin-left: var(--sidebar-w);
    width: calc(100% - var(--sidebar-w));
  }

  .dashboard-main {
    padding: 1rem 0.85rem 2rem;
  }

  .dash-hero__title,
  .os-title,
  .bm-title,
  .cpw-title {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }
}

@media (max-width: 480px) {
  :root {
    --nav-h: 60px;
  }

  .container {
    padding-inline: 0.85rem;
  }

  .hero__title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .preview__tabs {
    gap: 0.35rem;
  }

  .preview__tab {
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
  }

  .preview__screen {
    min-height: 360px;
    max-height: 480px;
  }

  .preview__browser-bar {
    padding: 8px 10px;
  }

  .preview__url {
    font-size: 0.7rem;
  }

  .modal__panel {
    margin: 0.75rem;
    max-height: calc(100dvh - 1.5rem);
    overflow-y: auto;
  }
}
