/* =========================================================================
   ETSY VANITY PLATE BUILDER — DESIGN SYSTEM v2
   Modern SaaS dashboard (Linear / Vercel / shadcn inspired)
   ========================================================================= */

/* -----------------------------------------------------------------------
   1. DESIGN TOKENS
   ----------------------------------------------------------------------- */
:root {
  /* Neutrals (zinc scale) */
  --zinc-50:  #fafafa;
  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-700: #3f3f46;
  --zinc-800: #27272a;
  --zinc-900: #18181b;
  --zinc-950: #09090b;

  /* Brand accent (indigo) */
  --accent-50:  #eef2ff;
  --accent-100: #e0e7ff;
  --accent-200: #c7d2fe;
  --accent-400: #818cf8;
  --accent-500: #6366f1;
  --accent-600: #4f46e5;
  --accent-700: #4338ca;

  /* Semantic */
  --success-50:  #ecfdf5;
  --success-100: #d1fae5;
  --success-500: #10b981;
  --success-600: #059669;
  --success-700: #047857;

  --warn-50:  #fffbeb;
  --warn-100: #fef3c7;
  --warn-500: #f59e0b;
  --warn-700: #b45309;

  --danger-50:  #fef2f2;
  --danger-100: #fee2e2;
  --danger-500: #ef4444;
  --danger-600: #dc2626;
  --danger-700: #b91c1c;

  /* Surface roles */
  --bg:           var(--zinc-50);
  --bg-subtle:    #f7f7f8;
  --surface:      #ffffff;
  --surface-2:    var(--zinc-100);
  --surface-3:    var(--zinc-200);

  --border:       var(--zinc-200);
  --border-strong:var(--zinc-300);
  --border-focus: var(--accent-500);

  --text:         var(--zinc-900);
  --text-2:       var(--zinc-700);
  --text-muted:   var(--zinc-500);
  --text-faint:   var(--zinc-400);

  /* Primary action (near-black, Linear/shadcn) */
  --primary:      var(--zinc-900);
  --primary-hover:var(--zinc-800);
  --primary-fg:   #ffffff;

  /* Radius */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Shadow */
  --shadow-xs: 0 1px 2px rgba(9, 9, 11, 0.04);
  --shadow-sm: 0 1px 2px rgba(9, 9, 11, 0.04), 0 1px 3px rgba(9, 9, 11, 0.06);
  --shadow:    0 1px 3px rgba(9, 9, 11, 0.06), 0 1px 2px rgba(9, 9, 11, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(9, 9, 11, 0.07), 0 2px 4px -2px rgba(9, 9, 11, 0.05);
  --shadow-lg: 0 10px 20px -5px rgba(9, 9, 11, 0.10), 0 4px 8px -4px rgba(9, 9, 11, 0.06);

  /* Focus ring */
  --ring: 0 0 0 3px rgba(99, 102, 241, 0.25);

  /* Typography */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Layout */
  --container-max: 1240px;
  --header-h: 60px;

  /* Transitions */
  --t-fast: 120ms cubic-bezier(0.4, 0, 0.2, 1);
  --t: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Backward-compat tokens (kept for any rule that still references them) */
:root {
  --ink: var(--text);
  --muted: var(--text-muted);
  --line: var(--border);
  --paper: var(--bg);
  --mint: var(--success-100);
  --teal: var(--accent-600);
  --rose: var(--danger-500);
  --coal: var(--zinc-800);
  --gold-soft: var(--warn-100);
}

/* -----------------------------------------------------------------------
   2. RESET / BASE
   ----------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.011em;
  line-height: 1.25;
}

h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.012em; }
h3 { font-size: 16px; font-weight: 600; }

p {
  margin: 0;
  color: var(--text-2);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; }

a {
  color: var(--accent-600);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

::selection {
  background: var(--accent-100);
  color: var(--accent-700);
}

/* -----------------------------------------------------------------------
   3. APP SHELL — sticky header
   ----------------------------------------------------------------------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: var(--header-h);
  padding: 0 clamp(16px, 3vw, 32px);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}

.app-header > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.app-header h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-header .eyebrow {
  margin: 0 0 2px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.header-status-stack {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.status-pill,
.ai-config-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0;
  transition: background var(--t), border-color var(--t);
}

.status-pill {
  background: var(--success-50);
  border-color: var(--success-100);
  color: var(--success-700);
}
.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.ai-config-status.connected {
  background: var(--success-50);
  border-color: var(--success-100);
  color: var(--success-700);
}
.ai-config-status.connected::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}
.ai-config-status.not-connected {
  background: var(--warn-50);
  border-color: var(--warn-100);
  color: var(--warn-700);
}
.ai-config-status.not-connected::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--warn-500);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

/* -----------------------------------------------------------------------
   4. MAIN LAYOUT
   ----------------------------------------------------------------------- */
main {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-8) clamp(16px, 3vw, 32px) var(--space-16);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* Eyebrow label (component) */
.eyebrow {
  display: inline-block;
  margin: 0 0 var(--space-2);
  color: var(--accent-600);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plain-note,
.calm-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.notice {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--accent-200);
  background: var(--accent-50);
  color: var(--accent-700);
  border-radius: var(--radius);
  font-size: 13px;
}

/* -----------------------------------------------------------------------
   5. HERO / MISSION CONTROL
   ----------------------------------------------------------------------- */
.mission-control {
  position: relative;
  padding: var(--space-8);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(1200px 200px at 0% 0%, rgba(99, 102, 241, 0.07), transparent 60%),
    linear-gradient(180deg, #ffffff, #fbfbfc);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.mission-control::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(600px 120px at 100% 0%, rgba(16, 185, 129, 0.05), transparent 60%);
}

.mission-head {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-6);
  align-items: center;
}

.mission-head > div:first-child {
  min-width: 0;
}

.mission-head h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 6px;
}

.mission-head .plain-note {
  font-size: 14px;
  color: var(--text-2);
  max-width: 64ch;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .mission-head {
    grid-template-columns: 1fr;
  }
}

/* Mission progress (8-step running visual) */
.mission-progress {
  position: relative;
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.mission-step-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.mission-step {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: all var(--t);
}

.mission-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.mission-step-body {
  min-width: 0;
  font-size: 13.5px;
  color: var(--text);
  font-weight: 500;
}

.mission-step-status {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.mission-step-pending { opacity: 0.6; }

.mission-step-active {
  border-color: var(--accent-200);
  background: var(--accent-50);
}
.mission-step-active .mission-step-num {
  background: var(--accent-500);
  color: white;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.20);
}
.mission-step-active .mission-step-status {
  color: var(--accent-700);
}

.mission-step-done {
  background: var(--success-50);
  border-color: var(--success-100);
}
.mission-step-done .mission-step-num {
  background: var(--success-500);
  color: white;
}
.mission-step-done .mission-step-num::after { content: "✓"; }
.mission-step-done .mission-step-num { font-size: 0; }
.mission-step-done .mission-step-num::after { font-size: 13px; font-weight: 700; }
.mission-step-done .mission-step-status { color: var(--success-700); }

.mission-step-waiting {
  background: var(--warn-50);
  border-color: var(--warn-100);
}
.mission-step-waiting .mission-step-status { color: var(--warn-700); }

.mission-step-failed {
  background: var(--danger-50);
  border-color: var(--danger-100);
}
.mission-step-failed .mission-step-num {
  background: var(--danger-500);
  color: white;
}
.mission-step-failed .mission-step-status { color: var(--danger-700); }

.mission-publish-wait,
.mission-done,
.mission-error {
  margin-top: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius);
  font-size: 13.5px;
  line-height: 1.55;
}
.mission-publish-wait {
  border: 1px solid var(--warn-100);
  background: var(--warn-50);
  color: var(--warn-700);
}
.mission-done {
  border: 1px solid var(--success-100);
  background: var(--success-50);
  color: var(--success-700);
  font-weight: 500;
}
.mission-error {
  border: 1px solid var(--danger-100);
  background: var(--danger-50);
  color: var(--danger-700);
}

/* -----------------------------------------------------------------------
   6. NEXT ASSISTANT (checklist strip)
   ----------------------------------------------------------------------- */
.next-assistant {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-6);
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.next-main h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}
.next-main p {
  font-size: 13.5px;
  color: var(--text-2);
}

.next-checklist {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-2);
}
.next-checklist > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-subtle);
}
.next-checklist span {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.next-checklist strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
/* "Yes" state — when JS sets text to "Yes", we can't selector-match, so
   we use a yes/done convention via background. The JS writes plain text. */

@media (max-width: 900px) {
  .next-assistant { grid-template-columns: 1fr; }
  .next-checklist { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* -----------------------------------------------------------------------
   7. STEP PROGRESS (connected pipeline)
   ----------------------------------------------------------------------- */
.step-progress {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  overflow-x: auto;
  scrollbar-width: thin;
}

.builder-progress { /* identical to .step-progress */ }

.step-pill {
  flex: 1 1 0;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-3) var(--space-4);
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  position: relative;
  transition: background var(--t), color var(--t);
}

.step-pill span {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.step-pill:hover:not(.active) {
  background: var(--surface-2);
  color: var(--text);
}

.step-pill.active {
  background: var(--zinc-900);
  color: white;
}
.step-pill.active span {
  color: rgba(255, 255, 255, 0.65);
}

.step-pill + .step-pill::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: var(--border);
}
.step-pill.active::before,
.step-pill.active + .step-pill::before {
  display: none;
}

/* -----------------------------------------------------------------------
   8. BUILD-RUN PANEL (the "Run Full Product Build" card)
   ----------------------------------------------------------------------- */
.build-run-panel {
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.build-run-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  align-items: center;
  margin-bottom: var(--space-5);
}
.build-run-head h2 {
  font-size: 18px;
  margin-bottom: 4px;
}
.build-run-head p {
  font-size: 13.5px;
  color: var(--text-2);
  max-width: 56ch;
}

@media (max-width: 720px) {
  .build-run-head { grid-template-columns: 1fr; }
}

/* Build progress tracker — horizontal stepper with numbered nodes */
.build-progress-tracker {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-1);
  padding: var(--space-5) var(--space-3) var(--space-3);
  margin-bottom: var(--space-4);
  counter-reset: build-step;
  overflow-x: auto;
  scrollbar-width: thin;
}

.build-progress-item {
  counter-increment: build-step;
  position: relative;
  flex: 1 1 0;
  min-width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding-top: 30px; /* room for the node circle */
  transition: all var(--t);
}

/* Numbered node circle */
.build-progress-item::before {
  content: counter(build-step);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  z-index: 2;
  transition: all var(--t);
}

/* Connecting line between nodes */
.build-progress-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 13px;
  left: calc(50% + 13px);
  right: calc(-50% + 13px);
  height: 2px;
  background: var(--border);
  z-index: 1;
  transition: background var(--t);
}

.build-progress-item span {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.build-progress-item strong {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-2);
  line-height: 1.35;
  max-width: 100px;
}

/* Active state — current step */
.build-progress-item.active::before {
  background: var(--accent-500);
  border-color: var(--accent-500);
  color: white;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
}
.build-progress-item.active span { color: var(--accent-700); }
.build-progress-item.active strong { color: var(--text); font-weight: 600; }

/* Done state — completed step */
.build-progress-item.done::before {
  content: "✓";
  background: var(--success-500);
  border-color: var(--success-500);
  color: white;
  font-size: 13px;
}
.build-progress-item.done::after {
  background: var(--success-500);
}
.build-progress-item.done span { color: var(--success-700); }
.build-progress-item.done strong { color: var(--text); font-weight: 500; }

/* Failed state */
.build-progress-item.failed::before {
  content: "!";
  background: var(--danger-500);
  border-color: var(--danger-500);
  color: white;
  font-size: 14px;
  font-weight: 700;
}
.build-progress-item.failed span { color: var(--danger-700); }
.build-progress-item.failed strong { color: var(--danger-700); }

@media (max-width: 800px) {
  .build-progress-tracker {
    overflow-x: auto;
    justify-content: flex-start;
  }
  .build-progress-item {
    min-width: 110px;
    flex: 0 0 auto;
  }
}

.build-status-message {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* -----------------------------------------------------------------------
   9. WIZARD PANELS
   ----------------------------------------------------------------------- */
.wizard-panel {
  display: none;
  padding: var(--space-8);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.wizard-panel.active { display: block; }

.panel-heading {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border);
}
.panel-heading h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.panel-heading .plain-note {
  font-size: 14px;
  color: var(--text-2);
  max-width: 64ch;
}

@media (max-width: 720px) {
  .wizard-panel { padding: var(--space-5); }
  .panel-heading h2 { font-size: 19px; }
}

/* Wizard actions footer */
.wizard-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}
.button-row {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* -----------------------------------------------------------------------
   10. FORMS — Inputs, labels, fieldsets
   ----------------------------------------------------------------------- */
.control-grid,
.product-template-grid,
.competitor-form,
.advanced-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.control-block,
.product-template-grid > label,
.competitor-form > label,
.advanced-grid > label,
form > label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.control-block.wide,
.form-wide {
  grid-column: 1 / -1;
}

.control-block > span,
.control-block > legend,
form label > span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0;
  margin: 0;
  padding: 0;
}

.control-block > strong {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

input[type="text"],
input[type="number"],
input[type="url"],
input[type="email"],
input[type="search"],
select,
textarea {
  width: 100%;
  padding: 9px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-faint);
}

input:hover:not(:focus):not(:disabled),
select:hover:not(:focus):not(:disabled),
textarea:hover:not(:focus):not(:disabled) {
  border-color: var(--border-strong);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: var(--ring);
}

input:disabled,
select:disabled,
textarea:disabled {
  background: var(--bg-subtle);
  color: var(--text-muted);
  cursor: not-allowed;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%2371717a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}

textarea {
  resize: vertical;
  min-height: 84px;
  font-family: var(--font-sans);
}

/* Fieldset reset */
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
fieldset > legend {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  padding: 0;
  margin-bottom: 6px;
}

/* Segmented control */
.segmented {
  display: inline-flex;
  padding: 3px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  gap: 2px;
}
.segmented label {
  position: relative;
  cursor: pointer;
}
.segmented input[type="radio"] {
  position: absolute;
  opacity: 0;
  inset: 0;
}
.segmented span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  height: 30px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 6px;
  transition: background var(--t), color var(--t), box-shadow var(--t);
}
.segmented label:hover span {
  color: var(--text);
}
.segmented input[type="radio"]:checked + span {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

/* -----------------------------------------------------------------------
   11. BUTTONS
   ----------------------------------------------------------------------- */
.primary-button,
.secondary-button,
.approve-button,
.table-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t),
              box-shadow var(--t), transform var(--t-fast);
  user-select: none;
}

.primary-button {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
  box-shadow: var(--shadow-xs);
}
.primary-button:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}
.primary-button:focus-visible {
  outline: none;
  box-shadow: var(--ring), var(--shadow-xs);
}
.primary-button:active {
  transform: translateY(0.5px);
}
.primary-button:disabled {
  background: var(--zinc-300);
  border-color: var(--zinc-300);
  color: var(--zinc-500);
  cursor: not-allowed;
  box-shadow: none;
}

.secondary-button {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}
.secondary-button:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
}
.secondary-button:focus-visible {
  outline: none;
  box-shadow: var(--ring), var(--shadow-xs);
}
.secondary-button:disabled {
  color: var(--text-faint);
  cursor: not-allowed;
}

.approve-button {
  background: var(--success-600);
  color: white;
  border-color: var(--success-600);
}
.approve-button:hover {
  background: var(--success-700);
  border-color: var(--success-700);
}

.table-button {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  background: var(--surface);
  color: var(--text-2);
  border-color: var(--border);
}
.table-button:hover {
  background: var(--surface-2);
  color: var(--text);
}

.form-button {
  align-self: start;
  grid-column: 1;
}

.large-action-button {
  height: 44px;
  padding: 0 20px;
  font-size: 14.5px;
  border-radius: var(--radius-md);
}

/* Action button row inside cards (.simple-package-actions etc.) */
.simple-package-actions,
.asset-generation-actions,
.package-copy-actions,
.ai-asset-actions,
.generated-actions,
.printify-draft-actions,
.etsy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.simple-package-actions button,
.asset-generation-actions button,
.package-copy-actions button,
.ai-asset-actions button,
.generated-actions button,
.printify-draft-actions button,
.etsy-actions button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.simple-package-actions button:hover,
.asset-generation-actions button:hover,
.package-copy-actions button:hover,
.ai-asset-actions button:hover,
.generated-actions button:hover,
.printify-draft-actions button:hover,
.etsy-actions button:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text);
}

/* -----------------------------------------------------------------------
   12. SELECTION CARDS (sport, style, collection, concept)
   ----------------------------------------------------------------------- */
.choice-grid,
.simple-choice-grid,
.style-direction-grid,
.collection-grid,
.concept-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-3);
}

.collection-card,
.style-card,
.concept-card,
.sport-option-card,
.simple-package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text);
  transition: all var(--t);
  outline: none;
}
.collection-card:hover,
.style-card:hover,
.concept-card:hover,
.sport-option-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-subtle);
  box-shadow: var(--shadow-sm);
}
.collection-card:focus-visible,
.style-card:focus-visible,
.concept-card:focus-visible,
.sport-option-card:focus-visible {
  box-shadow: var(--ring);
}

.collection-card strong,
.style-card strong,
.concept-card strong,
.sport-option-card strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.collection-card span,
.style-card span,
.concept-card span,
.sport-option-card span {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Hide native radio inside sport-option-card label */
.sport-option-card input[type="radio"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.sport-option-card > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sport-option-card > span > strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.sport-option-card > span > small {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Selected state — JS adds .active/.selected, or radio input is :checked */
.collection-card.active,
.collection-card.selected,
.collection-card.enabled,
.style-card.active,
.style-card.selected,
.concept-card.active,
.concept-card.selected,
.sport-option-card.active,
.sport-option-card.selected,
.sport-option-card:has(input[type="radio"]:checked) {
  border-color: var(--accent-500);
  background: var(--accent-50);
  box-shadow: 0 0 0 1px var(--accent-500), var(--shadow-sm);
}
.sport-option-card:has(input[type="radio"]:checked) > span > strong {
  color: var(--accent-700);
}
.collection-card.active::after,
.collection-card.selected::after,
.style-card.active::after,
.style-card.selected::after,
.concept-card.active::after,
.concept-card.selected::after,
.sport-option-card.active::after,
.sport-option-card.selected::after,
.sport-option-card:has(input[type="radio"]:checked)::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--accent-600);
  color: white;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

/* Focus ring on the wrapping label when radio gains focus */
.sport-option-card:has(input[type="radio"]:focus-visible) {
  box-shadow: var(--ring);
  border-color: var(--accent-500);
}

.card-kicker {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-600);
}

/* -----------------------------------------------------------------------
   13. STEP 2 — Research layout
   ----------------------------------------------------------------------- */
.research-layout,
.builder-research-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-5);
}
@media (max-width: 920px) {
  .research-layout,
  .builder-research-layout { grid-template-columns: 1fr; }
}

.research-card,
.main-research,
.helper-card {
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-subtle);
}
.research-card label,
.main-research > label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.research-card label span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}

.url-preview {
  margin: 6px 0 0;
  padding: 8px 12px;
  background: var(--zinc-900);
  color: var(--zinc-100);
  font-family: var(--font-mono);
  font-size: 12px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  white-space: nowrap;
}

.seed-keyword-panel {
  margin-top: var(--space-4);
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.seed-keyword-panel > span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.seed-keyword-list,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.seed-keyword-list > *,
.tag-list > * {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
}
.tag-list > * {
  background: var(--accent-50);
  border-color: var(--accent-100);
  color: var(--accent-700);
}

.keyword-summary,
.keyword-summary-expanded {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.keyword-summary > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px dashed var(--border);
}
.keyword-summary > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.keyword-summary span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}
.keyword-summary strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}
.keyword-summary > p {
  margin: 0;
  padding-top: var(--space-2);
  border-top: 1px dashed var(--border);
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.55;
}

.automation-warning,
.research-saved-path {
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  line-height: 1.5;
}
.automation-warning {
  background: var(--warn-50);
  border: 1px solid var(--warn-100);
  color: var(--warn-700);
}
.research-saved-path {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

/* -----------------------------------------------------------------------
   14. ADVANCED RESEARCH / MANUAL BACKUP ENTRY
   ----------------------------------------------------------------------- */
.advanced-research,
.manual-backup-entry {
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-subtle);
}
.advanced-research[open],
.manual-backup-entry[open] {
  background: var(--surface);
}
.advanced-research > summary,
.manual-backup-entry > summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  padding: var(--space-1) 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.advanced-research > summary::before,
.manual-backup-entry > summary::before {
  content: "▸";
  font-size: 11px;
  color: var(--text-muted);
  transition: transform var(--t);
}
.advanced-research[open] > summary::before,
.manual-backup-entry[open] > summary::before {
  transform: rotate(90deg);
}

.competitor-capture {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.helper-card {
  padding: var(--space-4);
  border: 1px solid var(--accent-100);
  background: var(--accent-50);
  border-radius: var(--radius);
}
.helper-card h3 {
  font-size: 13.5px;
  margin-bottom: 4px;
  color: var(--accent-700);
}
.helper-card p {
  font-size: 12.5px;
  color: var(--accent-700);
  line-height: 1.55;
}

.competitor-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 720px) {
  .competitor-form { grid-template-columns: 1fr; }
}

.competitor-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: auto;
  background: var(--surface);
  max-height: 360px;
}
.competitor-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.competitor-table thead {
  background: var(--bg-subtle);
  position: sticky;
  top: 0;
  z-index: 1;
}
.competitor-table th {
  padding: 8px 10px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.competitor-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: top;
}
.competitor-table tr:last-child td { border-bottom: 0; }

.advanced-grid.compact-research-tools {
  margin-top: var(--space-4);
}

/* -----------------------------------------------------------------------
   15. KEYWORD OUTPUT (Step 3)
   ----------------------------------------------------------------------- */
.keyword-output-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-3);
}

.keyword-output-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.keyword-output-card span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.keyword-output-card strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.keyword-output-card.tags-card {
  grid-column: span 2;
}
.keyword-output-card.warning-card {
  background: var(--warn-50);
  border-color: var(--warn-100);
}
.keyword-output-card.warning-card span { color: var(--warn-700); }
.keyword-output-card.warning-card strong { color: var(--warn-700); font-size: 13.5px; line-height: 1.5; font-weight: 500; }

.keyword-backup-preview {
  margin-top: var(--space-5);
  padding: var(--space-5);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.keyword-backup-preview h3 {
  font-size: 14px;
  margin-bottom: var(--space-2);
}
.keyword-backup-preview ul {
  margin: 0;
  padding-left: var(--space-5);
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

/* -----------------------------------------------------------------------
   16. EMPTY STATE
   ----------------------------------------------------------------------- */
.empty-step-card {
  padding: var(--space-10) var(--space-6);
  text-align: center;
  background: var(--bg-subtle);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 13.5px;
}

/* -----------------------------------------------------------------------
   17. SIMPLE PACKAGE (Step 4)
   ----------------------------------------------------------------------- */
.simple-package {
  display: block;
}

.simple-package-head,
.factory-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border);
}
.simple-package-head h3 {
  font-size: 18px;
  font-weight: 600;
}

.simple-package-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.simple-package-card {
  cursor: default;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.simple-package-card:hover {
  border-color: var(--border);
  background: var(--surface);
  box-shadow: none;
}

.package-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}

.package-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-3);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.package-block .package-label,
.package-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.package-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-3);
}

/* Asset status tracker (within simple package) */
.asset-status-tracker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.asset-status-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
}
.asset-status-item.success,
.asset-status-item.ok,
.asset-status-item.done,
.asset-status-item.ready { background: var(--success-50); border-color: var(--success-100); color: var(--success-700); }
.asset-status-item.warn,
.asset-status-item.warning { background: var(--warn-50); border-color: var(--warn-100); color: var(--warn-700); }
.asset-status-item.error,
.asset-status-item.failed,
.asset-status-item.fail { background: var(--danger-50); border-color: var(--danger-100); color: var(--danger-700); }
.asset-status-item.neutral { background: var(--surface); }
.asset-status-item.current,
.asset-status-item.active { background: var(--accent-50); border-color: var(--accent-100); color: var(--accent-700); }

.asset-warning {
  padding: var(--space-3);
  background: var(--warn-50);
  border: 1px solid var(--warn-100);
  border-radius: var(--radius);
  color: var(--warn-700);
  font-size: 13px;
}

/* -----------------------------------------------------------------------
   18. AI GENERATION SECTION
   ----------------------------------------------------------------------- */
.ai-generation-section {
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-subtle);
}
.ai-generation-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-4);
}
.ai-generation-head h3 {
  font-size: 15px;
  font-weight: 600;
}
.ai-head-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.ai-unavailable,
.ai-empty {
  padding: var(--space-5);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.ai-asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-3);
}

.ai-asset-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow var(--t);
}
.ai-asset-card:hover {
  box-shadow: var(--shadow-md);
}
.ai-preview,
.plate-preview,
.mockup-preview {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(45deg, var(--zinc-100) 25%, transparent 25%),
    linear-gradient(-45deg, var(--zinc-100) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--zinc-100) 75%),
    linear-gradient(-45deg, transparent 75%, var(--zinc-100) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.ai-preview img,
.plate-preview img,
.plate-preview svg,
.mockup-preview img,
.mockup-preview svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ai-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 12px;
}

.ai-asset-copy {
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding: var(--space-2);
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  max-height: 110px;
  overflow: auto;
  line-height: 1.45;
}

/* -----------------------------------------------------------------------
   19. PROMPT FALLBACK PANEL
   ----------------------------------------------------------------------- */
.prompt-fallback-panel {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: var(--warn-50);
  border: 1px solid var(--warn-100);
  border-radius: var(--radius);
  color: var(--warn-700);
  font-size: 13px;
  line-height: 1.55;
}

/* -----------------------------------------------------------------------
   20. GENERATED ARTWORK SECTION
   ----------------------------------------------------------------------- */
.generated-artwork-section {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.generated-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-3);
}
.generated-head h3 {
  font-size: 14px;
  font-weight: 600;
}

.plate-artwork-svg,
.mockup-artwork-svg {
  display: block;
  max-width: 100%;
  height: auto;
}

.mockup-section {
  margin-top: var(--space-4);
}

.mockups,
.qa-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-2);
}
.qa-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12.5px;
}
.qa-list li {
  padding: var(--space-2) var(--space-3);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
}

/* -----------------------------------------------------------------------
   21. APPROVED DESIGNS WORKSPACE
   ----------------------------------------------------------------------- */
.approved-workspace {
  margin-top: var(--space-5);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.approved-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}
.approved-heading-copy h2 {
  font-size: 18px;
  font-weight: 600;
}
.approved-heading-copy p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}
.approved-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-3);
}
.approved-card {
  padding: var(--space-4);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.approved-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-3);
}
.approved-card-head h3 { font-size: 14px; }
.approved-action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.approved-copy-block {
  margin-top: var(--space-3);
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.55;
}
.approval-success {
  padding: var(--space-3) var(--space-4);
  background: var(--success-50);
  border: 1px solid var(--success-100);
  border-radius: var(--radius);
  color: var(--success-700);
  font-size: 13px;
  margin-bottom: var(--space-3);
}
.approved-jump-row {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

/* -----------------------------------------------------------------------
   22. TOAST
   ----------------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 100;
  padding: 12px 18px;
  background: var(--zinc-900);
  color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: transform var(--t), opacity var(--t);
}
.toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* -----------------------------------------------------------------------
   23. PRINTIFY SECTION
   ----------------------------------------------------------------------- */
.printify-setup,
.etsy-setup {
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-subtle);
}
.printify-setup-head,
.etsy-setup-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-4);
}
.printify-setup-head h3,
.etsy-setup-head h3 {
  font-size: 15px;
  font-weight: 600;
}

.printify-status-grid,
.etsy-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.printify-status-cell,
.etsy-status-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.printify-status-cell span,
.etsy-status-cell span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.printify-status-cell strong,
.etsy-status-cell strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.printify-status-cell.ok strong,
.etsy-status-cell.ok strong { color: var(--success-700); }
.printify-status-cell.warn strong,
.etsy-status-cell.warn strong { color: var(--warn-700); }
.printify-status-cell.error strong,
.etsy-status-cell.error strong { color: var(--danger-700); }
.printify-status-cell.dryrun strong { color: var(--accent-700); }

.printify-message,
.etsy-setup-hint {
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.55;
}
.printify-message.success { background: var(--success-50); border-color: var(--success-100); color: var(--success-700); }
.printify-message.error { background: var(--danger-50); border-color: var(--danger-100); color: var(--danger-700); }
.printify-message.warn { background: var(--warn-50); border-color: var(--warn-100); color: var(--warn-700); }

.printify-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.printify-checklist-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-2);
  align-items: center;
  padding: var(--space-2) var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
}
.printify-checklist-flag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  background: var(--surface-2);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
}
.printify-checklist-flag.ok { background: var(--success-100); color: var(--success-700); }
.printify-checklist-flag.warn { background: var(--warn-100); color: var(--warn-700); }
.printify-checklist-flag.error { background: var(--danger-100); color: var(--danger-700); }

.printify-discovery {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.printify-discovery-block { margin-top: var(--space-3); }
.printify-discovery-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-2);
}
.printify-discovery-head h4 { font-size: 13px; font-weight: 600; }
.printify-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2);
}
.printify-result-list {
  margin-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-height: 320px;
  overflow-y: auto;
}
.printify-result-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.printify-result-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.printify-badge,
.etsy-badge {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  height: 20px;
  border-radius: var(--radius-pill);
  background: var(--accent-50);
  color: var(--accent-700);
  font-size: 10.5px;
  font-weight: 600;
}
.printify-hint,
.printify-empty {
  padding: var(--space-3);
  background: var(--bg-subtle);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--text-muted);
}
.printify-error {
  padding: var(--space-3);
  background: var(--danger-50);
  border: 1px solid var(--danger-100);
  border-radius: var(--radius-sm);
  color: var(--danger-700);
  font-size: 12.5px;
}
.printify-variants-summary {
  padding: var(--space-3);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12.5px;
  color: var(--text-2);
}
.printify-preview-card,
.printify-create-card {
  margin-top: var(--space-3);
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.printify-preview-json {
  background: var(--zinc-950);
  color: var(--zinc-100);
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  overflow: auto;
  max-height: 320px;
  line-height: 1.5;
}
.printify-safety {
  padding: var(--space-3);
  background: var(--warn-50);
  border: 1px solid var(--warn-100);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--warn-700);
  margin-top: var(--space-2);
}
.printify-mockup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.printify-update-section {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}
.printify-update-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2);
}

/* -----------------------------------------------------------------------
   24. ETSY SECTION
   ----------------------------------------------------------------------- */
.etsy-alttext-panel,
.etsy-pushset-panel {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.etsy-alttext-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border);
}
.etsy-alttext-row:last-child { border-bottom: 0; }
.etsy-dryrun-toggle,
.etsy-mode-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-3) 0;
  font-size: 13px;
}
.etsy-alttext-result {
  padding: var(--space-3);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
}
.etsy-alttext-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.etsy-alttext-table th,
.etsy-alttext-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.etsy-alttext-table th {
  background: var(--bg-subtle);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* -----------------------------------------------------------------------
   25. KEYWORD AUDIT PANEL (Step 3 deep-dive)
   ----------------------------------------------------------------------- */
.keyword-audit-panel {
  margin-top: var(--space-5);
  padding: var(--space-5);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.keyword-audit-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-3);
}
.keyword-audit-head h3 { font-size: 15px; font-weight: 600; }
.keyword-audit-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-2);
}
.keyword-audit-meta > div {
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
}
.review-rate-block {
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: var(--space-3);
  font-size: 12.5px;
}
.audit-keyword-block {
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: var(--space-3);
}
.audit-keyword-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-3);
}
.audit-aggregate {
  margin: var(--space-2) 0;
}
.audit-aggregate-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 12.5px;
}
.audit-methodology {
  margin-top: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.55;
}
.audit-listings-table-wrap {
  margin-top: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: auto;
}
.audit-listings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.audit-listings-table th,
.audit-listings-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.audit-listings-table th {
  background: var(--bg-subtle);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.audit-confidence-badge {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  height: 20px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  font-weight: 600;
}
.conf-high { background: var(--success-100); color: var(--success-700); }
.conf-medium { background: var(--warn-100); color: var(--warn-700); }
.conf-low { background: var(--danger-100); color: var(--danger-700); }
.audit-expand-button {
  background: transparent;
  border: 0;
  color: var(--accent-600);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.audit-expand-button:hover { text-decoration: underline; }
.audit-evidence,
.audit-formula,
.audit-formula-missing,
.audit-review-dates,
.audit-evidence-list,
.audit-error,
.audit-no-data {
  padding: var(--space-3);
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-2);
  margin-top: var(--space-2);
}
.audit-formula { font-family: var(--font-mono); }
.audit-formula-missing { color: var(--warn-700); background: var(--warn-50); }
.audit-error { color: var(--danger-700); background: var(--danger-50); border: 1px solid var(--danger-100); }
.audit-no-data { color: var(--text-muted); border: 1px dashed var(--border); }
.audit-raw-link {
  font-family: var(--font-mono);
  font-size: 11px;
  word-break: break-all;
}

/* -----------------------------------------------------------------------
   26. PRODUCT TEMPLATE LIBRARY
   ----------------------------------------------------------------------- */
.product-template-library {
  margin-top: var(--space-6);
  padding: var(--space-6);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.product-template-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  align-items: end;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}
.product-template-head h3 {
  font-size: 16px;
  margin-bottom: 2px;
}
.product-template-head p {
  font-size: 12.5px;
  color: var(--text-muted);
}
.product-template-head label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 240px;
}
.product-template-head label span {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.product-template-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 720px) {
  .product-template-grid { grid-template-columns: 1fr; }
  .product-template-head { grid-template-columns: 1fr; }
  .product-template-head label { min-width: 0; }
}

.template-save-message {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12.5px;
  color: var(--success-700);
}

/* -----------------------------------------------------------------------
   27. CAMPAIGN/SEO DETAILS (legacy support)
   ----------------------------------------------------------------------- */
.campaign-summary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-4);
}
.design-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}
.design-card {
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.design-card.approved {
  border-color: var(--success-500);
  box-shadow: 0 0 0 1px var(--success-500);
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-2);
}
.concept-strip,
.seo-score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.seo-score-grid > * {
  padding: var(--space-2);
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  font-size: 12px;
}
.copy-row {
  margin-top: var(--space-2);
  padding: var(--space-2);
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
}
.keyword-backup,
.seo-details {
  padding: var(--space-3);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  margin-top: var(--space-2);
}
.seo-wide { grid-column: span 2; }

/* -----------------------------------------------------------------------
   28. MODE SWITCH (legacy)
   ----------------------------------------------------------------------- */
/* Mode switch — sits at the very top of main, toggles AI vs BYO panels */
.mode-switch {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  gap: 2px;
}
.mode-button {
  padding: 0 14px;
  height: 32px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: background var(--t), color var(--t), box-shadow var(--t);
}
.mode-button:hover:not(.active) { color: var(--text); }
.mode-button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}
.mode-panel { display: none; }
.mode-panel.active {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* BYO mode panels */
.byo-intro {
  padding: var(--space-8);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(1200px 200px at 0% 0%, rgba(99, 102, 241, 0.07), transparent 60%),
    linear-gradient(180deg, #ffffff, #fbfbfc);
  box-shadow: var(--shadow-sm);
}
.byo-intro-head h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.byo-step {
  padding: var(--space-6) var(--space-8);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.byo-step .panel-heading {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.byo-step .panel-heading h3 {
  font-size: 18px;
  font-weight: 600;
}
.byo-product-row,
.byo-art-row,
.byo-research-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: end;
}
.byo-url-block {
  flex: 1 1 480px;
  min-width: 0;
}
.byo-product-detail,
.byo-research-summary,
.byo-copy-output,
.byo-mockup-output,
.byo-publish-output {
  padding: var(--space-4);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.55;
}
.byo-product-detail strong,
.byo-copy-output strong,
.byo-publish-output strong {
  color: var(--text);
  font-weight: 600;
}
.byo-product-detail .byo-spec-grid,
.byo-copy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-2);
}
.byo-product-detail .byo-spec-grid > div,
.byo-copy-grid > div {
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.byo-product-detail .byo-spec-grid span,
.byo-copy-grid span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.byo-art-preview {
  width: 120px;
  height: 120px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.byo-art-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.byo-mockup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.byo-mockup-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.byo-mockup-card img {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--bg-subtle);
}
.byo-mockup-card .byo-mockup-label {
  padding: 8px 10px;
  font-size: 12px;
  color: var(--text-2);
}
.simple-mode {}
.simple-hero,
.factory-section {
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.simple-hero {
  margin-bottom: var(--space-4);
}

/* -----------------------------------------------------------------------
   29. UTILS & SMALL HELPERS
   ----------------------------------------------------------------------- */
.compact { font-size: 12.5px; }

/* Smooth scroll for the page */
html { scroll-behavior: smooth; }

/* Custom scrollbar for inner scroll panels */
.competitor-table-wrap::-webkit-scrollbar,
.printify-preview-json::-webkit-scrollbar,
.printify-result-list::-webkit-scrollbar,
.ai-asset-copy::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.competitor-table-wrap::-webkit-scrollbar-thumb,
.printify-preview-json::-webkit-scrollbar-thumb,
.printify-result-list::-webkit-scrollbar-thumb,
.ai-asset-copy::-webkit-scrollbar-thumb {
  background: var(--zinc-300);
  border-radius: var(--radius-pill);
}
.competitor-table-wrap::-webkit-scrollbar-track,
.printify-result-list::-webkit-scrollbar-track,
.ai-asset-copy::-webkit-scrollbar-track {
  background: transparent;
}
.printify-preview-json::-webkit-scrollbar-thumb {
  background: var(--zinc-700);
}

/* -----------------------------------------------------------------------
   30. RESPONSIVE BREAKPOINTS
   ----------------------------------------------------------------------- */
@media (max-width: 960px) {
  .control-grid {
    grid-template-columns: 1fr;
  }
  .mission-head h2 { font-size: 22px; }
  .build-progress-head { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  main { padding: var(--space-5) var(--space-4) var(--space-12); }
  .wizard-panel { padding: var(--space-5); }
  .next-assistant,
  .mission-control,
  .build-run-panel {
    padding: var(--space-5);
  }
  .step-pill { min-width: 110px; }
  .header-status-stack .status-pill { display: none; }
}

/* -----------------------------------------------------------------------
   31. ANIMATIONS
   ----------------------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.wizard-panel.active { animation: fadeIn var(--t) ease-out; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.build-progress-item.active { animation: pulse 1.8s ease-in-out infinite; }
.mission-step-active { animation: pulse 1.8s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
