.welcome-section { display: grid; gap: 18px; }
.welcome-panel { position: relative; overflow: hidden; padding: 28px; background: linear-gradient(135deg,#fff 0%,#fbfaff 62%,#f1efff 100%); }
.welcome-panel::after { position: absolute; width: 280px; height: 280px; right: -120px; top: -150px; border-radius: 50%; background: rgba(103,87,214,.11); content: ""; }
.welcome-copy { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; }
.welcome-copy h1 { margin-bottom: 6px; font-size: clamp(24px,3vw,34px); }
.welcome-copy p:last-child { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.ai-orb { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; border-radius: 15px; background: linear-gradient(145deg,var(--primary),#8476e9); color: white; font-size: 12px; font-weight: 800; box-shadow: 0 8px 24px rgba(103,87,214,.24); }
.next-step-card { position: relative; z-index: 1; display: flex; margin-top: 24px; padding: 16px 18px; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid rgba(103,87,214,.14); border-radius: 14px; background: rgba(255,255,255,.82); }
.next-step-card div { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.next-step-card small { color: var(--primary); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.next-step-card strong { font-size: 15px; }
.next-step-card button { flex: 0 0 auto; }
.workflow-progress { position: relative; z-index: 1; display: grid; margin: 20px 0 0; padding: 0; grid-template-columns: repeat(4,1fr); gap: 8px; list-style: none; }
.workflow-progress li { display: flex; min-width: 0; padding: 11px; align-items: center; gap: 9px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.72); opacity: .62; }
.workflow-progress li > span { display: grid; width: 26px; height: 26px; flex: 0 0 26px; place-items: center; border-radius: 50%; background: #efeff4; color: var(--muted); font-size: 10px; font-weight: 800; }
.workflow-progress li div { display: flex; min-width: 0; flex-direction: column; }
.workflow-progress strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.workflow-progress small { overflow: hidden; margin-top: 2px; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.workflow-progress li.active { border-color: rgba(103,87,214,.35); background: var(--primary-soft); opacity: 1; }
.workflow-progress li.active > span { background: var(--primary); color: white; }
.workflow-progress li.done { opacity: .9; }
.workflow-progress li.done > span { background: var(--success); color: white; }

.ai-search-box { display: grid; padding: 14px; grid-template-columns: auto minmax(0,1fr) auto; align-items: end; gap: 12px; border: 1px solid rgba(103,87,214,.22); border-radius: 15px; background: linear-gradient(135deg,#faf9ff,#f4f1ff); }
.ai-search-box .ai-orb { width: 42px; height: 42px; flex-basis: 42px; border-radius: 13px; }
.ai-search-box label { gap: 5px; }
.ai-search-box label span { font-size: 11px; }
.ai-search-box input { min-height: 44px; background: white; font-size: 15px; }
.ai-search-box button { min-height: 44px; white-space: nowrap; }
.search-examples { display: flex; margin: 10px 0 0; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.search-examples button { min-height: 30px; padding: 6px 9px; border: 1px solid var(--border); border-radius: 999px; background: white; color: var(--primary-dark); font-size: 9px; font-weight: 650; }
.search-examples button:hover { background: var(--primary-soft); }
.ai-interpretation { margin: 10px 0 14px; padding: 9px 11px; border-left: 3px solid var(--primary); border-radius: 0 8px 8px 0; background: #fafafe; color: var(--muted); font-size: 11px; line-height: 1.5; }
.model-match-reasons { display: block; margin-top: 7px; color: var(--primary); font-size: 8px; font-weight: 650; line-height: 1.35; }
.help-link { min-height: 32px; padding: 6px 9px; border: 1px solid rgba(103,87,214,.18); border-radius: 9px; background: var(--primary-soft); color: var(--primary-dark); font-size: 9px; white-space: nowrap; }
.help-link:hover { background: #e4dfff; }
.help-link-block { width: 100%; }
.card-help { margin-left: auto; align-self: center; }

.ai-guide-launcher { position: fixed; right: 24px; bottom: 22px; z-index: 40; display: flex; min-height: 58px; padding: 9px 15px 9px 11px; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.3); border-radius: 18px; background: linear-gradient(145deg,var(--primary),var(--primary-dark)); color: white; box-shadow: 0 14px 40px rgba(52,43,125,.28); }
.ai-guide-launcher > span:first-child { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: rgba(255,255,255,.16); }
.ai-guide-launcher > span:last-child { display: flex; text-align: left; flex-direction: column; }
.ai-guide-launcher strong { font-size: 12px; }
.ai-guide-launcher small { margin-top: 2px; color: rgba(255,255,255,.75); font-size: 9px; }
.ai-guide-panel { position: fixed; right: 24px; bottom: 92px; z-index: 41; display: flex; overflow: hidden; width: min(390px,calc(100vw - 32px)); max-height: min(650px,calc(100vh - 120px)); flex-direction: column; box-shadow: 0 24px 70px rgba(37,36,58,.24); }
.ai-guide-panel header { display: flex; padding: 15px; align-items: center; justify-content: space-between; background: linear-gradient(135deg,#faf9ff,#f0edff); border-bottom: 1px solid var(--border); }
.ai-guide-panel header > div { display: flex; align-items: center; gap: 10px; }
.ai-guide-panel header .ai-orb { width: 36px; height: 36px; flex-basis: 36px; border-radius: 11px; }
.ai-guide-panel header span:last-child { display: flex; flex-direction: column; }
.ai-guide-panel header strong { font-size: 12px; }
.ai-guide-panel header small { margin-top: 2px; font-size: 9px; }
.ai-guide-panel header button { width: 34px; min-height: 34px; padding: 0; border-radius: 10px; background: white; color: var(--muted); font-size: 22px; }
.ai-guide-transcript { display: flex; min-height: 170px; padding: 15px; flex-direction: column; gap: 9px; overflow-y: auto; background: #fcfcfe; }
.guide-message { max-width: 88%; margin: 0; padding: 10px 12px; border-radius: 13px 13px 13px 4px; background: var(--primary-soft); color: #4b456c; font-size: 12px; line-height: 1.55; }
.guide-message.customer { align-self: flex-end; border-radius: 13px 13px 4px 13px; background: var(--foreground); color: white; }
.guide-message.error { color: var(--danger); background: #fff2f2; }
.guide-questions { display: flex; padding: 0 15px 12px; flex-wrap: wrap; gap: 6px; background: #fcfcfe; }
.guide-questions button { min-height: 30px; padding: 6px 9px; border: 1px solid var(--border); border-radius: 999px; background: white; color: var(--primary-dark); font-size: 9px; }
.ai-guide-form { display: grid; padding: 12px 15px; grid-template-columns: 1fr auto; gap: 8px; border-top: 1px solid var(--border); }
.ai-guide-form input { min-height: 44px; }
.ai-guide-form button { min-height: 44px; }
.guide-disclaimer { padding: 0 15px 13px; font-size: 8px; line-height: 1.4; }

@media (max-width: 900px) {
  .workflow-progress { grid-template-columns: repeat(2,1fr); }
  .ai-search-box { grid-template-columns: auto 1fr; }
  .ai-search-box button { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 760px) {
  .welcome-panel { padding: 20px; }
  .welcome-copy { align-items: flex-start; }
  .next-step-card { align-items: stretch; flex-direction: column; }
  .next-step-card button { width: 100%; }
  .workflow-progress { grid-template-columns: 1fr; }
  .workflow-progress li:not(.active) small { display: none; }
  .ai-guide-launcher { right: 14px; bottom: 14px; }
  .ai-guide-panel { right: 16px; bottom: 84px; }
  .ai-search-box { grid-template-columns: 1fr; }
  .ai-search-box .ai-orb { display: none; }
  .card-help { width: 100%; margin: 7px 0 0; }
}
