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

:root {
  --red: #F03F24;
  --red-light: #fde8e5;
  --red-mid: #f9c4bb;
  --black: #111;
  --muted: #666;
  --border: #e5e5e5;
  --bg: #fff;
  --bg-soft: #f8f8f8;
  --font: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--black);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Global Header ── */
.global-header {
  border-bottom: 1px solid var(--border);
  padding: 16px 48px;
}

.global-header-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.global-header-left {
  display: flex;
  flex-direction: column;
}

.header-lab {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1;
}

.header-by {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.global-header-right {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-areas-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}

.header-areas-link:hover {
  color: var(--black);
}

/* ── Layout ── */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 48px;
}

/* ── Text Helpers ── */
.text-red {
  color: var(--red);
}

/* ── Back Link ── */
.back-link {
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--black);
}

/* ── Page Content ── */
.page-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-headline {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

/* ── Buttons ── */
.btn-primary {
  padding: 14px 32px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
}

.btn-primary:hover { background: #d43620; }

.btn-start {
  padding: 14px 32px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-start:hover { background: #d43620; }

/* ══════════════════════════════════
   SCREEN 1: Internal Hub / Shareable Links
   ══════════════════════════════════ */
.internal-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--red);
}

.hub-subtitle {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: -8px;
}

.hub-product-field {
  margin-top: 16px;
  margin-bottom: 8px;
  max-width: 320px;
}

.hub-product-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.hub-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

.hub-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hub-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.hub-card-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hub-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 1;
  min-width: 0;
}

.hub-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--red);
}

.hub-card-title {
  font-size: 17px;
  font-weight: 700;
}

.hub-card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.hub-link {
  font-size: 12px;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--muted);
  background: var(--bg-soft);
  padding: 6px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

/* ── Combo Dropdown (autocomplete) ── */
.hub-combo {
  position: relative;
}

.hub-combo-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10;
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: none;
  list-style: none;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.hub-combo-dropdown.visible {
  display: block;
}

.hub-combo-dropdown li {
  padding: 10px 12px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s;
}

.hub-combo-dropdown li:hover,
.hub-combo-dropdown li.highlighted {
  background: var(--red-light);
  color: var(--black);
}

.btn-copy {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
  background: var(--red);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-copy:hover { background: #d43620; }
.btn-copy.copied { background: #2a9d4e; }

/* ══════════════════════════════════
   SCREEN 2: Landing
   ══════════════════════════════════ */
.landing-content {
  text-align: center;
  padding: 80px 0 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.powered-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-light);
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.landing-headline {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.landing-headline .line-red {
  color: var(--red);
}

.landing-subhead {
  font-size: 17px;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* ══════════════════════════════════
   SCREEN 3: Setup
   ══════════════════════════════════ */
.setup-subtitle {
  font-size: 15px;
  color: var(--muted);
  margin-top: -8px;
}

.setup-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.input-field {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border);
  color: var(--black);
  padding: 10px 0;
  font-size: 17px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}

.input-field:focus { border-color: var(--red); }
.input-field::placeholder { color: #ccc; }

/* ══════════════════════════════════
   SCREEN 4 & 5: Sparky Bubble
   ══════════════════════════════════ */
.sparky-bubble {
  background: var(--red-light);
  padding: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sparky-avatar {
  width: 36px;
  height: 36px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  line-height: 1;
}

.sparky-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--red);
  margin-top: -4px;
}

.sparky-bubble-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--black);
}

.sparky-bubble-btn {
  margin-top: 8px;
}

.sparky-bullet-list {
  margin-top: 12px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sparky-bullet-list li {
  font-size: 15px;
  line-height: 1.6;
}

/* ══════════════════════════════════
   SCREEN 5: Exercise Picker
   ══════════════════════════════════ */
.exercise-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.exercise-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 28px 20px 20px;
  cursor: pointer;
  transition: border-color 0.2s;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font);
}

.exercise-card:hover {
  border-color: var(--red);
}

.exercise-card.completed {
  border-color: var(--red);
  background: var(--red-light);
}

.exercise-check {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 22px;
  height: 22px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.exercise-check.visible {
  opacity: 1;
}

.time-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--muted);
}

.exercise-icon {
  font-size: 30px;
  margin-bottom: 8px;
  margin-top: 8px;
}

.exercise-name {
  font-size: 16px;
  font-weight: 700;
}

.exercise-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.btn-summary {
  padding: 14px 32px;
  background: transparent;
  color: var(--black);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}

.btn-summary:hover { border-color: var(--black); }

.btn-finish {
  display: none;
  padding: 14px 32px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 8px;
  margin-left: 8px;
}
.btn-finish:hover { opacity: 0.85; }

/* ── Thank You Page ── */
.thank-you-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 60vh;
}
.thank-you-headline {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 24px 0 20px;
}
.thank-you-subhead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 520px;
}

.time-badge.completed-badge {
  color: var(--red);
  font-weight: 700;
}

.time-badge.in-progress-badge {
  color: var(--muted);
  font-weight: 700;
}

.exercise-card.in-progress {
  border-color: var(--border);
  background: var(--bg-soft);
}

.view-results-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  cursor: pointer;
  margin-top: 8px;
  text-decoration: none;
  transition: color 0.2s;
}

.view-results-link:hover {
  color: #d43620;
  text-decoration: underline;
}

/* ══════════════════════════════════
   SCREEN 6: Section Intro / Tips
   ══════════════════════════════════ */
.tips-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

.tip-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tip-card {
  background: var(--red-light);
  border-left: 4px solid var(--red);
  padding: 16px 20px;
}

.tip-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 2px;
}

.tip-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* ══════════════════════════════════
   Exercise Chat
   ══════════════════════════════════ */
#exercise-chat { display: none; }

.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 0px);
  max-width: 680px;
  margin: 0 auto;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.chat-exercise-name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
}

.chat-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.chat-progress {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.chat-exit-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.chat-exit-btn:hover {
  border-color: var(--black);
  color: var(--black);
}

.chat-help-wrap {
  position: relative;
}

.chat-help-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}

.chat-help-btn:hover {
  border-color: var(--black);
  color: var(--black);
}

.chat-help-tooltip {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  z-index: 100;
  display: none;
  flex-direction: column;
  gap: 10px;
}

.chat-help-wrap:hover .chat-help-tooltip {
  display: flex;
}

.help-tip {
  font-size: 12px;
  line-height: 1.5;
  color: var(--black);
}

.help-tip strong {
  display: block;
  font-weight: 600;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-msg {
  max-width: 80%;
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.6;
  animation: fadeIn 0.3s ease;
}

.chat-msg.sparky {
  align-self: flex-start;
  background: var(--red-light);
  border-left: 3px solid var(--red);
}

.chat-msg.user {
  align-self: flex-end;
  background: #e8e8e8;
}

.msg-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.chat-msg .action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.chat-input-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 48px;
  border-top: 1px solid var(--border);
}

.chat-input-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  width: 100%;
}

.chat-input-wrap {
  flex: 1;
}

.chat-input-wrap input,
.chat-input-wrap textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border);
  color: var(--black);
  padding: 10px 0;
  font-size: 17px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}

.chat-input-wrap input:focus,
.chat-input-wrap textarea:focus {
  border-color: var(--red);
}

.chat-input-wrap input::placeholder,
.chat-input-wrap textarea::placeholder {
  color: #ccc;
}

.chat-send-btn {
  padding: 10px 24px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.chat-send-btn:hover { background: #d43620; }
.chat-send-btn:disabled { opacity: 0.4; cursor: default; }

.chat-done-btn {
  padding: 8px 20px;
  background: transparent;
  color: var(--black);
  font-size: 13px;
  font-weight: 600;
  align-self: flex-end;
  font-family: var(--font);
  border: 1.5px solid var(--black);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  align-self: flex-end;
  animation: fadeIn 0.3s ease;
}

.chat-done-btn:hover {
  background: var(--black);
  color: #fff;
}

.typing-dots {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}

.typing-dots::before {
  content: '●  ●  ●';
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 2px;
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ── Chat Action Buttons ── */
.btn-revise, .btn-continue {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-revise {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--black);
}

.btn-revise:hover { border-color: var(--black); }

.btn-continue {
  background: var(--red);
  color: #fff;
}

.btn-continue:hover { background: #d43620; }

/* ══════════════════════════════════
   Summary
   ══════════════════════════════════ */
#summary { display: none; }

.summary-header {
  text-align: center;
  margin-bottom: 40px;
}

.summary-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.summary-header p {
  font-size: 15px;
  color: var(--muted);
}

.summary-section-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.summary-item {
  margin-bottom: 24px;
}

.summary-visual-style-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--black);
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--black);
}

.summary-item .q-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}

.summary-item .a-text {
  font-size: 16px;
  line-height: 1.6;
}

.takeaways {
  margin-top: 48px;
  padding: 24px 28px;
  background: var(--bg-soft);
  border-left: 3px solid var(--red);
}

.takeaways h3 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.takeaways p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

.summary-back-btn {
  margin-top: 32px;
}

/* ── Summary Editing ── */
.summary-edit-textarea {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  color: inherit;
  resize: none;
  padding: 4px 6px;
  border-radius: 4px;
  box-sizing: border-box;
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s;
}
.summary-edit-textarea:hover {
  border-color: var(--border);
}
.summary-edit-textarea:focus {
  outline: none;
  border-color: var(--red);
  background: #fff9f8;
}

.summary-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0f0f0;
  border-radius: 3px;
  padding: 4px 10px;
  font-size: 14px;
  line-height: 1.4;
}
.summary-chip-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
}
.summary-chip-remove:hover {
  color: var(--red);
}
.summary-chip-add-input {
  border: none;
  border-bottom: 1px dashed #ccc;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: #666;
  padding: 4px 4px;
  width: 90px;
  transition: border-color 0.15s;
}
.summary-chip-add-input:focus {
  outline: none;
  border-bottom-color: var(--red);
  color: var(--black);
}
.summary-chip-add-input::placeholder {
  color: #aaa;
}
.summary-ai-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--red-light);
  color: var(--red);
  border-radius: 3px;
  padding: 1px 5px;
  vertical-align: middle;
  margin-left: 4px;
}

/* ── Animations ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.35s ease; }

/* ══════════════════════════════════
   Creative Exercise
   ══════════════════════════════════ */

/* ── Option Cards (Step 2: What to Test) ── */
.creative-option-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.creative-option-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border: 2px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.creative-option-card:hover {
  border-color: var(--red-mid);
}

.creative-option-card.selected {
  border-color: var(--red);
  background: var(--red-light);
}

.creative-option-card .card-checkbox {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  margin-top: 2px;
  transition: background 0.2s, border-color 0.2s;
}

.creative-option-card.selected .card-checkbox {
  background: var(--red);
  border-color: var(--red);
}

.creative-option-card .card-content {
  flex: 1;
}

.creative-option-card .card-icon {
  font-size: 18px;
  margin-bottom: 4px;
}

.creative-option-card .card-label {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.creative-option-card .card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Emotion Wheel ── */
.emotion-wheel-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 24px 0;
}

.emotion-wheel-container svg {
  max-width: 480px;
  width: 100%;
  height: auto;
}

.emotion-wheel-container svg path {
  cursor: pointer;
  transition: opacity 0.2s, stroke-width 0.2s, filter 0.2s;
  stroke: #fff;
  stroke-width: 2;
}

.emotion-wheel-container svg path.neutral-inner {
  cursor: default;
  pointer-events: none;
}

.emotion-wheel-container svg path:hover {
  opacity: 0.85;
}

.emotion-wheel-container.has-selections svg path:not(.selected):not(.neutral-inner) {
  opacity: 0.5;
}

.emotion-wheel-container svg path.selected {
  opacity: 1;
  stroke: #fff;
  stroke-width: 3.5;
  filter: brightness(0.75) saturate(1.3);
}

.emotion-wheel-container svg text {
  pointer-events: none;
  font-family: var(--font);
}

.emotion-wheel-container svg text.center-label {
  font-size: 8px;
  font-weight: 700;
  fill: #999;
  letter-spacing: 2px;
}

.emotion-wheel-container svg text.inner-label {
  font-size: 7px;
  font-weight: 700;
  fill: #fff;
}

.emotion-wheel-container svg text.outer-label {
  font-size: 8px;
  font-weight: 600;
  fill: #fff;
}

/* ── Emotion Selection Area ── */
.creative-selection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 8px;
}

.creative-selection-header .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.creative-selection-header .count {
  display: none;
}

.creative-selection-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.creative-selection-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  background: var(--red-light);
  border: 1px solid var(--red-mid);
  border-radius: 0;
  color: var(--black);
}

.creative-selection-pill.custom-pill {
  background: #e8ecfd;
  border-color: #c5d0f9;
}

.creative-selection-pill .pill-remove {
  cursor: pointer;
  color: var(--red);
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
}

.creative-selection-pill .pill-remove:hover {
  opacity: 0.7;
}

.creative-selection-pill.custom-pill .pill-remove {
  color: #c5d0f9;
}

.creative-selection-pill.custom-pill .pill-remove:hover {
  color: #a0b0f0;
}

.creative-add-own-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 20px;
  margin-bottom: 8px;
}

/* ── Tone Pills ── */
.tone-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 8px;
  margin-top: 16px;
}

.tone-pill {
  padding: 8px 12px;
  height: 40px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  background: #fff;
  border: 1.5px solid #D1D1D1;
  color: #1A1A1A;
  cursor: pointer;
  transition: all 0.15s;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
}

.tone-pill:hover {
  background: #F5F5F5;
}

.tone-pill.selected {
  border: 2px solid #E8402A;
  background: #fff;
  color: #1A1A1A;
}

.tone-separator {
  width: 100%;
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0 0 0;
}

.tone-empty-state {
  font-size: 14px;
  color: #bbb;
  font-style: italic;
  margin-top: 4px;
}

/* ── Visual Style Cards ── */
.visual-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 24px;
  margin-bottom: 12px;
}

.visual-section-label:first-child {
  margin-top: 16px;
}

.visual-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.visual-cards-grid.wide {
  grid-template-columns: repeat(2, 1fr);
}

.visual-card {
  border: 2px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  overflow: hidden;
}

.visual-card:hover {
  border-color: var(--red-mid);
}

.visual-card.selected {
  border-color: var(--red);
  background: var(--red-light);
}

.visual-card-img {
  width: 100%;
  height: 110px;
  background: #e8e8e8;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-card-img svg {
  width: 100%;
  height: 100%;
  display: block;
}

.visual-cards-grid.wide .visual-card-img {
  height: 110px;
}

.visual-card-body {
  padding: 12px;
}

.visual-card-label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.visual-card-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

/* ── Creative Navigation ── */
.creative-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  gap: 12px;
}

.creative-nav .btn-back {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--black);
  cursor: pointer;
  transition: all 0.2s;
}

.creative-nav .btn-back:hover {
  border-color: var(--black);
}

.creative-nav .btn-next {
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  background: var(--red);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.creative-nav .btn-next:hover {
  background: #d43620;
}

.creative-nav .btn-next:disabled {
  opacity: 0.4;
  cursor: default;
}

.creative-nav .btn-next.btn-done {
  background: var(--red);
}

/* ── Selection Count ── */
.creative-selection-count {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 20px;
  margin-bottom: 8px;
}

.creative-selection-list {
  font-size: 14px;
  color: var(--black);
  line-height: 1.6;
  margin-bottom: 4px;
}

/* ── Add Your Own ── */
.creative-add-own {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  margin-top: 12px;
}

.creative-add-own input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border);
  color: var(--black);
  padding: 8px 0;
  font-size: 15px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}

.creative-add-own input:focus {
  border-color: var(--red);
}

.creative-add-own input::placeholder {
  color: #ccc;
}

.creative-add-own button {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--black);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.creative-add-own button:hover {
  border-color: var(--black);
}

/* ── Creative Textarea (Guardrails) ── */
.creative-textarea {
  width: 100%;
  min-height: 120px;
  background: transparent;
  border: 2px solid var(--border);
  color: var(--black);
  padding: 16px;
  font-size: 15px;
  font-family: var(--font);
  line-height: 1.6;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
  margin-top: 12px;
}

.creative-textarea:focus {
  border-color: var(--red);
}

.creative-textarea::placeholder {
  color: #ccc;
}

/* ── Creative step wrapper (full width messages) ── */
.creative-step-content {
  max-width: 100%;
  width: 100%;
  animation: fadeIn 0.3s ease;
}

.creative-step-content .msg-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.creative-step-content .sparky-text {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.creative-step-headline {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
  margin-top: 4px;
}

/* ── Brand Assets Buttons ── */
.creative-choice-buttons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.creative-choice-buttons button {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.creative-choice-buttons .btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--black);
}

.creative-choice-buttons .btn-secondary:hover {
  border-color: var(--black);
}

.creative-choice-buttons .btn-primary-choice {
  background: var(--red);
  color: #fff;
}

.creative-choice-buttons .btn-primary-choice:hover {
  background: #d43620;
}

/* ── Brand Asset Upload ── */
.ba-upload-area {
  margin-top: 16px;
}
.ba-drop-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 2px dashed var(--border);
  border-radius: 6px;
  padding: 28px 20px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}
.ba-drop-label:hover,
.ba-drop-label.drag-over {
  border-color: var(--red);
  background: #fff9f8;
}
.ba-drop-icon { font-size: 28px; }
.ba-drop-text { font-size: 14px; font-weight: 500; }
.ba-drop-hint { font-size: 12px; color: var(--muted); }
.ba-file-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ba-file-item {
  font-size: 13px;
  color: #2a7a3b;
}
.ba-file-error { color: var(--red); }
.ba-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

/* ── Visual "Anything Else?" ── */
.visual-other-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 24px;
  margin-bottom: 4px;
}

.visual-other-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 8px;
}

.visual-upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.visual-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px dashed var(--border);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.visual-upload-btn:hover {
  border-color: var(--black);
  color: var(--black);
}

.visual-upload-status {
  font-size: 12px;
  color: var(--muted);
}

/* ── Step Progress Bar (Launch flow) ── */
.step-progress-bar {
  width: 100%;
  border-bottom: 1px solid var(--border);
  padding: 16px 48px;
  background: var(--bg);
}

.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.progress-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font);
  transition: all 0.2s;
}

.progress-circle.upcoming {
  background: #fff;
  border: 2px solid #D1D1D1;
  color: #999;
}

.progress-circle.active {
  background: var(--red);
  border: 2px solid var(--red);
  color: #fff;
}

.progress-circle.completed {
  background: var(--red);
  border: 2px solid var(--red);
  color: #fff;
}

.progress-label {
  font-size: 11px;
  font-family: var(--font);
  color: #999;
  white-space: nowrap;
}

.progress-label.active {
  font-weight: 700;
  color: var(--black);
}

.progress-connector {
  width: 40px;
  height: 2px;
  background: #D1D1D1;
  margin-bottom: 20px;
}

/* ── Naming Step ── */
.naming-input-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  margin-top: 12px;
}

.naming-input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border);
  color: var(--black);
  padding: 8px 0;
  font-size: 15px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}

.naming-input:focus {
  border-color: var(--red);
}

.naming-input::placeholder {
  color: #ccc;
}

.naming-add-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--black);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.naming-add-btn:hover {
  border-color: var(--black);
}

.naming-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.naming-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.naming-star {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #D1D1D1;
  transition: color 0.2s;
  padding: 0;
  line-height: 1;
}

.naming-star.favorited {
  color: var(--red);
}

.naming-text {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
}

.naming-remove {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #999;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.naming-remove:hover {
  color: var(--red);
}

.naming-empty {
  font-size: 14px;
  color: #bbb;
  font-style: italic;
  margin-top: 8px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .global-header { padding: 12px 24px; }
  .container { padding: 32px 24px; }
  .landing-content { padding: 40px 0 30px; }
  .landing-headline { letter-spacing: -1px; }
  .exercise-cards { grid-template-columns: 1fr; }
  .hub-card { flex-direction: column; }
  .hub-card-right { align-items: flex-start; }
  .chat-header { padding: 16px 24px; }
  .chat-messages { padding: 16px 24px; }
  .chat-input-bar { padding: 12px 24px; }
  .chat-msg { max-width: 90%; }
  .visual-cards-grid { grid-template-columns: 1fr; }
  .visual-cards-grid.wide { grid-template-columns: 1fr; }
  .creative-choice-buttons { flex-direction: column; }
  .step-progress-bar { padding: 12px 24px; }
  .progress-connector { width: 24px; }
  .progress-label { font-size: 10px; }
  .progress-circle { width: 24px; height: 24px; font-size: 11px; }
}

/* ── Creative Mode: no scroll on chat-messages ── */
.chat-messages.creative-mode {
  overflow-y: visible;
  height: auto;
  flex: none;
}

/* ── Creative Sparky Box ── */
.creative-sparky-box {
  background: var(--red-light);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.creative-sparky-box .sparky-avatar {
  font-size: 20px;
  line-height: 1;
}

.visual-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
