/* Org Inquiry Desk — clinic preset · P4 MVE polish
   Mobile-first · English UI · voice-and-lexicon compliant
   @see 02-Business/design-system.md */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=Source+Serif+4:opsz,wght@8..60,600;8..60,700&display=swap');

:root {
  --color-bg: #f6f3ee;
  --color-surface: #ffffff;
  --color-surface-elevated: #fffefb;
  --color-border: #e4dfd6;
  --color-text: #1c1917;
  --color-text-muted: #6b6560;
  --color-primary: #1a6b6b;
  --color-primary-light: #e8f4f4;
  --color-primary-dark: #145252;
  --color-wa: #128c47;
  --color-wa-bg: #e8f7ef;
  --color-warning: #b45309;
  --color-warning-bg: #fef3c7;
  --color-danger: #b91c1c;
  --color-danger-bg: #fee2e2;
  --color-success: #15803d;
  --color-success-bg: #dcfce7;
  --color-accent: #c45c26;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-sans: 'IBM Plex Sans', system-ui, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.06);
  --shadow-md: 0 4px 12px rgba(28, 25, 23, 0.08);
  --nav-height: 64px;
  --header-height: 56px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  background-image: radial-gradient(ellipse 120% 60% at 50% -10%, rgba(26, 107, 107, 0.06), transparent 55%);
  color: var(--color-text);
  line-height: 1.5;
  min-height: 100dvh;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}

a { color: var(--color-primary); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

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

/* App shell */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  background: var(--color-bg);
  position: relative;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 16px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.app-header__title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
}

.app-header__clinic {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.app-header__back {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 0;
  min-width: 64px;
}

.app-header__role {
  font-size: 0.6875rem;
  padding: 4px 8px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.app-main {
  flex: 1;
  padding: 16px;
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 16px);
  overflow-y: auto;
}

/* Bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: flex;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding-bottom: var(--safe-bottom);
  z-index: 200;
}

.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.15s;
}

.bottom-nav__item--active {
  color: var(--color-primary);
}

.bottom-nav__icon {
  font-size: 1.25rem;
  line-height: 1;
}

.bottom-nav__badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 18px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--color-accent);
  color: white;
  font-size: 0.5625rem;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav__item { position: relative; }

/* Cards & blocks */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.card__title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.stat-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
}

.stat-chip--wa { background: var(--color-wa-bg); color: var(--color-wa); }
.stat-chip--web { background: #eef2ff; color: #4338ca; }
.stat-chip--ig { background: #fdf2f8; color: #be185d; }

/* Conflict banner */
.conflict-banner {
  background: var(--color-warning-bg);
  border: 1px solid #fcd34d;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}

.conflict-banner--resolved {
  background: var(--color-success-bg);
  border-color: #86efac;
}

.conflict-banner__headline {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-warning);
  margin-bottom: 4px;
}

.conflict-banner--resolved .conflict-banner__headline {
  color: var(--color-success);
}

.conflict-banner__body {
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.conflict-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s, transform 0.1s;
}

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

.btn--primary {
  background: var(--color-primary);
  color: white;
}

.btn--primary:hover { background: var(--color-primary-dark); }

.btn--secondary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  padding: 8px 12px;
}

.btn--sm {
  padding: 6px 12px;
  font-size: 0.8125rem;
}

.btn--block { width: 100%; }

/* List items */
.list-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.list-item:hover, .list-item:focus-visible {
  border-color: var(--color-primary);
}

.list-item__channel {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
}

.list-item__channel--wa { background: var(--color-wa-bg); color: var(--color-wa); }
.list-item__channel--web { background: #eef2ff; color: #4338ca; }
.list-item__channel--ig { background: #fce7f3; color: #be185d; }
.list-item__channel--phone { background: #f3f4f6; color: #374151; }
.list-item__channel--dawi { background: #fff7ed; color: #c2410c; }
.list-item__channel--walk { background: #f0fdf4; color: #166534; }

.list-item__content { flex: 1; min-width: 0; }

.list-item__name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.list-item__preview {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-item__meta {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

/* Stage badge */
.stage-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
}

.stage-badge--new { background: #dbeafe; color: #1d4ed8; }
.stage-badge--stale { background: var(--color-warning-bg); color: var(--color-warning); }
.stage-badge--booked { background: var(--color-success-bg); color: var(--color-success); }
.stage-badge--replied { background: #f3e8ff; color: #7e22ce; }
.stage-badge--booking_pending { background: #ffedd5; color: #c2410c; }

/* Filter chips */
.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-chip {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
}

.filter-chip--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* Calendar */
.calendar-day {
  margin-bottom: 16px;
}

.calendar-day__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.doctor-column {
  margin-bottom: 16px;
}

.doctor-column__name {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--color-primary-light);
}

.slot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.slot--empty { border-style: dashed; color: var(--color-text-muted); }
.slot--booked { border-left: 3px solid var(--color-primary); }
.slot--external { border-left: 3px solid #c2410c; background: #fff7ed; }
.slot--conflict { border-color: var(--color-warning); background: var(--color-warning-bg); }

.slot__time {
  font-weight: 600;
  min-width: 48px;
}

.slot__type {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  background: var(--color-surface);
}

.form-textarea { min-height: 80px; resize: vertical; }

.reason-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.reason-chip {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8125rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.reason-chip--selected {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

/* Thread view */
.thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.thread-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
}

.thread-bubble--in {
  align-self: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.thread-bubble--out {
  align-self: flex-end;
  background: var(--color-wa-bg);
  border: 1px solid #bbf7d0;
}

.thread-bubble__time {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.lead-card {
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
}

.lead-card__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  margin-bottom: 4px;
}

/* Settings */
.settings-group {
  margin-bottom: 24px;
}

.settings-group__title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
}

.toggle {
  width: 44px;
  height: 24px;
  background: var(--color-border);
  border-radius: 12px;
  position: relative;
  transition: background 0.2s;
}

.toggle--on { background: var(--color-primary); }

.toggle__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: var(--shadow-sm);
}

.toggle--on .toggle__knob { transform: translateX(20px); }

/* More menu sheet */
.more-sheet {
  position: fixed;
  bottom: calc(var(--nav-height) + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 16px;
  box-shadow: var(--shadow-md);
  z-index: 150;
  display: none;
}

.more-sheet--open { display: block; }

.more-sheet__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
  width: 100%;
  text-align: left;
  color: var(--color-text);
}

.more-sheet__item:last-child { border-bottom: none; }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.4);
  z-index: 140;
  display: none;
}

.overlay--open { display: block; }

/* P4 — core loop hero */
.hero-strip {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.hero-strip__eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.hero-strip__headline {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
}

.hero-strip__body {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.hero-strip__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  padding: var(--space-sm) 0;
  min-height: 44px;
}

/* Empty / error states */
.state-panel {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-md);
  margin: var(--space-md) 0;
}

.state-panel--empty {
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
}

.state-panel--error {
  background: var(--color-danger-bg);
  border: 1px solid #fecaca;
}

.state-panel__icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.state-panel__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.state-panel__body {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  max-width: 28ch;
  margin: 0 auto var(--space-md);
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--color-border) 25%, #f0ebe3 50%, var(--color-border) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.2s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  height: 88px;
  margin-bottom: var(--space-sm);
}

.skeleton-hero {
  height: 120px;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-md);
}

/* Toast feedback */
.toast-region {
  position: fixed;
  top: calc(var(--header-height) + var(--space-sm));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 448px;
  z-index: 300;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  box-shadow: var(--shadow-md);
  animation: toast-in 0.25s ease-out;
  pointer-events: auto;
}

.toast--success {
  background: var(--color-success-bg);
  border: 1px solid #86efac;
  color: #14532d;
}

.toast--error {
  background: var(--color-danger-bg);
  border: 1px solid #fecaca;
  color: #7f1d1d;
}

.toast--loading {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Inquiry reply area */
.reply-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.reply-panel--sent {
  border-color: #86efac;
  background: var(--color-success-bg);
}

.reply-panel__label {
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.reply-sent-note {
  font-size: 0.8125rem;
  color: var(--color-success);
  margin-top: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn--loading {
  opacity: 0.7;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; }
  .toast { animation: none; }
  .btn:active { transform: none; }
}

/* Reminder status */
.reminder-status {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.reminder-status--sent { background: var(--color-success-bg); color: var(--color-success); }
.reminder-status--scheduled { background: #dbeafe; color: #1d4ed8; }
.reminder-status--failed { background: var(--color-danger-bg); color: var(--color-danger); }

/* P1 — channel integration stubs */
.channel-stub-banner {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  background: var(--color-primary-light);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.filter-bar--channels {
  margin-top: -4px;
  margin-bottom: 8px;
}

.filter-chip--channel {
  font-size: 0.6875rem;
  padding: 4px 10px;
}

.channel-status {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
}

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

.channel-status--off {
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

.settings-row--channel {
  flex-wrap: wrap;
  gap: 4px;
}

/* P2 — Lemon Squeezy billing stub */
.billing-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border: 1px solid var(--color-border);
}

.billing-banner--trial {
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
  border-color: #fcd34d;
}

.billing-banner__headline {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-warning);
}

.billing-banner__body {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

.billing-banner__cta {
  flex-shrink: 0;
  white-space: nowrap;
}

.billing-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

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

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

@media (min-width: 481px) {
  .app-shell {
    box-shadow: var(--shadow-md);
    min-height: calc(100dvh - 32px);
    margin-top: 16px;
    border-radius: var(--radius-lg);
    overflow: hidden;
  }

  .bottom-nav {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
}

/* P4 REDO — orient screen + activation funnel */
.screen--orient {
  padding-top: 4px;
}

.orient-hero {
  margin-bottom: var(--space-md);
}

.orient-hero__eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin: 0 0 8px;
}

.orient-hero__headline {
  font-family: var(--font-serif);
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--color-text);
}

.orient-hero__benefit {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}

.orient-preview__stats {
  margin-bottom: 12px;
}

.orient-preview__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0;
}

.orient-preview__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.orient-preview__note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin: 0;
}

.orient-steps {
  list-style: none;
  margin: 0 0 var(--space-lg);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.orient-steps__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.orient-steps__item span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-border);
  font-weight: 600;
  font-size: 0.8125rem;
  flex-shrink: 0;
}

.orient-steps__item--active {
  color: var(--color-text);
  font-weight: 500;
}

.orient-steps__item--active span {
  background: var(--color-primary);
  color: #fff;
}

.orient-hero__cta {
  margin-bottom: 12px;
}

.orient-footnote {
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin: 0;
}

.funnel-bar {
  display: flex;
  gap: 6px;
  margin-bottom: var(--space-md);
  padding: 10px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.funnel-bar__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  opacity: 0.45;
}

.funnel-bar__step--active {
  opacity: 1;
}

.funnel-bar__step--done {
  opacity: 0.75;
}

.funnel-bar__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-border);
  font-size: 0.6875rem;
  font-weight: 700;
}

.funnel-bar__step--active .funnel-bar__num {
  background: var(--color-primary);
  color: #fff;
}

.funnel-bar__step--done .funnel-bar__num {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.funnel-bar__label {
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.2;
}

.list-item--guided {
  border: 2px solid var(--color-primary);
  background: var(--color-primary-light);
  flex-direction: column;
  align-items: stretch;
}

.list-item__guide-tag {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
}

.card--tip {
  border-color: var(--color-primary);
  background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-surface) 100%);
}

.success-panel {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  background: var(--color-success-bg);
  border: 1px solid #86efac;
  border-radius: var(--radius-md);
}

.success-panel__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-success);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
}

.success-panel__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 0 0 8px;
}

.success-panel__body {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-md);
  line-height: 1.5;
}

