/* A landing page on the existing search application. The conversation uses
   its original layout and the same form elements after the first question. */
:root {
  --fusion-paper: #f7f4ed;
  --fusion-ink: #263448;
  --fusion-shell: min(1248px, calc(100% - 128px));
}
.fusion-shell { width: var(--fusion-shell); margin-inline: auto; }
.search-header {
  z-index: 1; display: block; width: 100%; max-width: none; padding: 0;
  border-bottom: 1px solid #dcd9d4; background: var(--fusion-paper);
}
.fusion-head { display: flex; align-items: center; min-height: 86px; }
.search-brand img { width: 149px; }
.fusion-primary {
  display: flex; flex-wrap: wrap; align-self: stretch; align-items: stretch;
  gap: 0 32px; margin-inline: clamp(20px, 4.1vw, 61px) 16px;
}
.fusion-primary a {
  display: flex; align-items: center; gap: 6px; font-size: 15px;
  min-height: 42px; text-decoration: none; color: #67686c;
}
.fusion-primary a[aria-current] { color: #363650; box-shadow: inset 0 -2px #756a95; }
.fusion-primary a:hover { color: #514767; }
.fusion-primary svg { flex-shrink: 0; width: 15px; }
.search-nav { flex: 1 1 auto; max-width: none; gap: 8px 24px; margin-left: auto; }
.search-nav .feedback-open { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; }
.language-picker select { width: auto; min-height: 37px; border-radius: 24px; font-size: 13px; }

body:not(.is-chatting) {
  background: var(--fusion-paper); color: var(--fusion-ink);
  font-size: 15px; line-height: 1.65;
}
body:not(.is-chatting)::before { display: none; }
body:not(.is-chatting) .search-main {
  width: 100%; max-width: none; padding: 0; justify-content: center;
}
.fusion-stage {
  isolation: isolate; position: relative; overflow: hidden; background: var(--fusion-paper);
}
.fusion-inner { position: relative; padding: clamp(42px, 6.5vh, 70px) 0 23px; }
.fusion-copy { width: 58%; min-width: 0; }
.fusion-art {
  position: absolute; z-index: -1; pointer-events: none; inset: 0 0 0 41%;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(90deg, transparent, #000 30%);
}
.fusion-art::before {
  content: ""; position: absolute; inset: 0 -1% 0 0;
  background: url('/assets/hero/orinmed-cell-microcosm-20261101.webp') 74% center / cover no-repeat;
  filter: saturate(.76);
  mask-image: linear-gradient(180deg, transparent, #000 17%, #000 74%, transparent);
}
.fusion-copy .search-intro { margin: 0; max-width: none; text-align: start; }
.fusion-copy .search-intro #search-title {
  font-size: clamp(50px, 4.6vw, 72px); font-style: normal; line-height: 1.13;
  letter-spacing: -.025em; margin: 0; max-width: none; overflow-wrap: anywhere;
  color: #2c3549;
}
html:lang(zh) .fusion-copy .search-intro #search-title { font-size: clamp(57px, 5.5vw, 85px); }
#search-title span { display: block; }
#search-title span + span { color: #4d4961; margin-top: 3px; }
.fusion-copy .search-intro p {
  font-size: 15.5px; line-height: 1.75; color: #62626a; letter-spacing: .014em;
  text-wrap: wrap; margin: 15px 0 28px; max-width: none;
}
body:not(.is-chatting) .search-controls { width: 100%; }
body:not(.is-chatting) .question-form {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  border: 1px solid #cfccd3; border-radius: 20px;
  padding: 17px 16px 13px 19px; background: #fffefa;
  box-shadow: 0 5px 9px -8px #746f7226, 0 18px 37px -22px #44435c40;
}
body:not(.is-chatting) .question-form:focus-within { border-color: #827994; }
body:not(.is-chatting) .question-field { display: contents; }
body:not(.is-chatting) #question {
  grid-column: 1 / -1; grid-row: 1; width: 100%; min-height: 48px;
  padding: 0 2px; font-size: 18px; line-height: 1.6; color: #424255;
}
body:not(.is-chatting) #question::placeholder { color: #777781; }
body:not(.is-chatting) .form-actions {
  grid-column: 1; grid-row: 2; justify-content: flex-start; margin: 0;
}
body:not(.is-chatting) .search-attachments { justify-content: flex-start; gap: 0 12px; }
body:not(.is-chatting) #question-form .search-attachments .search-action {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; min-height: 32px; padding: 4px 0; border: 0; border-radius: 0;
}
body:not(.is-chatting) #question-form #report-open { position: relative; padding-inline-start: 14px; }
body:not(.is-chatting) #report-open::after {
  content: ""; position: absolute; inset-inline-start: 0; top: 25%; height: 50%;
  border-inline-start: 1px solid #d9d5d0;
}
body:not(.is-chatting) #send {
  grid-column: 2; grid-row: 2; width: 38px; height: 38px; min-width: 0;
  opacity: 1; font-size: 24px; border: 0; line-height: 1; border-radius: 50%;
}
body:not(.is-chatting) #composer-status { grid-column: 1 / -1; }
body:not(.is-chatting) .privacy-notice {
  display: flex; align-items: baseline; gap: 6px; text-align: start;
  font-size: 12px; color: #717078; margin: 12px 0 0 2px;
}

.fusion-suggestions { padding: 22px 0 clamp(38px, 6.5vh, 72px); }
.fusion-suggestions h2 { margin: 0 0 14px; font-size: 17px; color: #3b4251; letter-spacing: .015em; }
.fusion-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fusion-choice {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 12px;
  min-width: 0; min-height: 79px; font-size: 16px; overflow-wrap: anywhere; text-align: start;
  border: 1px solid #cfcbd0;
}
.fusion-choice:hover, .fusion-choice:focus-visible { border-color: #827994; }
.fusion-choice[data-edit-selected] { outline: 2px solid #657da5; outline-offset: 2px; }
.fusion-glyph {
  flex-shrink: 0; display: grid; place-items: center; width: 37px; height: 37px;
  border-radius: 12px; background: #eeebf0; color: #6d6687;
}
.fusion-choice > svg { flex-shrink: 0; margin-inline: auto 7px; color: #87838b; }
.fusion-choice:hover .fusion-glyph { background: #e4deea; }
.is-chatting :is(.fusion-stage, .fusion-inner, .fusion-copy) { display: contents; }
.is-chatting :is(.fusion-suggestions, .fusion-art) { display: none; }
.search-footer {
  display: block; width: 100%; margin: 0; padding: 0; border-top: 1px solid #dedbd4;
  background: var(--fusion-paper); color: #6b6b72; font-size: 11px; text-align: start;
}
.fusion-foot {
  display: flex; justify-content: space-between; align-items: center; min-height: 62px; gap: 18px;
}
.fusion-foot nav { justify-content: flex-start; gap: 4px 20px; }
.fusion-foot a { white-space: nowrap; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* The original localization modules own these buttons' textContent; keep
   their decorative icons outside those text nodes. */
#feedback-open::before, body:not(.is-chatting) :is(#import-note, #report-open, #privacy-notice)::before {
  content: ""; display: inline-block; flex-shrink: 0; width: 17px; height: 17px;
  background: currentColor; mask: var(--fusion-icon) center / contain no-repeat;
}
#feedback-open { --fusion-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18.5 16.5H11L6.3 20v-3.5H5.5A2.5 2.5 0 0 1 3 14V6.5A2.5 2.5 0 0 1 5.5 4h13A2.5 2.5 0 0 1 21 6.5V14a2.5 2.5 0 0 1-2.5 2.5Z'/%3E%3Cpath d='M7.3 8.8h9.4m-9.4 3.3h5.4'/%3E%3C/svg%3E"); }
#feedback-open::before { width: 16px; height: 16px; }
#import-note { --fusion-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6.5A1.5 1.5 0 0 0 5 4.5v15A1.5 1.5 0 0 0 6.5 21h11a1.5 1.5 0 0 0 1.5-1.5V8z'/%3E%3Cpath d='M14 3v5h5M8.7 12h6.6m-6.6 3.8h4.7'/%3E%3C/svg%3E"); }
#report-open { --fusion-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8.5 13.5 5.8-5.8a2.3 2.3 0 0 1 3.3 3.3l-7.3 7.3a4 4 0 0 1-5.7-5.7l7.6-7.6a5.4 5.4 0 0 1 7.6 7.6l-7 7'/%3E%3C/svg%3E"); }
#privacy-notice { --fusion-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5.5' y='10' width='13' height='10' rx='2.2'/%3E%3Cpath d='M8.7 10V7.2a3.3 3.3 0 1 1 6.6 0V10'/%3E%3C/svg%3E"); }
body:not(.is-chatting) #privacy-notice::before { width: 13px; height: 13px; align-self: center; }

/* Preserve the approved controls when the shared theme paints glass buttons. */
@layer fusion-controls {
  body:not(.is-chatting) :is(.fusion-choice, #send, #import-note, #report-open) {
    box-shadow: none !important; backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important; text-shadow: none !important;
  }
  .fusion-choice {
    background: transparent !important; color: #263448 !important;
    border-top-color: #cfcbd0 !important; border-bottom-color: #dfdcd7 !important;
  }
  body:not(.is-chatting) .search-attachments button { background: transparent !important; color: #535765 !important; }
  body:not(.is-chatting) #send { background: #5b5977 !important; color: white !important; }
  body:not(.is-chatting) #send:enabled:hover { background: #46435f !important; }
}

@media (max-width: 800px) {
  :root { --fusion-shell: calc(100% - 48px); }
  .fusion-primary { margin-left: 30px; gap: 0 18px; }
  .fusion-inner { padding-top: 44px; }
  .fusion-copy { width: 70%; }
  .fusion-art { left: 40%; }
  .search-nav { gap: 4px 12px; }
  .fusion-choices { gap: 10px; }
  .fusion-choice { font-size: 14px; gap: 8px; }
  .fusion-glyph { width: 29px; height: 29px; }
}
@media (max-width: 600px) {
  :root { --fusion-shell: calc(100% - 40px); }
  .fusion-head { display: grid; grid-template-columns: auto minmax(0,1fr); grid-template-rows: minmax(61px,auto) auto; }
  .search-brand img { width: 112px; }
  .search-nav { grid-row: 1; grid-column: 2; flex-wrap: wrap; max-width: 100%; gap: 0 12px; }
  .search-nav .feedback-open { font-size: 12px; }
  #feedback-open::before { display: none; }
  .language-picker select { width: auto; min-height: 31px; font-size: 12px; padding: 4px 8px 4px 26px; }
  .language-picker img { width: 14px; inset-inline-start: 8px; }
  .fusion-primary { grid-row: 2; grid-column: 1 / -1; margin: 0; gap: 0 25px; }
  .fusion-primary a { font-size: 13px; }
  .fusion-primary a svg { width: 14px; }
  .fusion-inner { padding: 30px 0 7px; }
  .fusion-copy { width: 100%; }
  .fusion-art { left: 43%; right: -10%; top: 6px; height: 195px; bottom: auto; }
  .fusion-art::before {
    background-position: 80% center; opacity: .82;
    mask-image: linear-gradient(180deg, transparent, #000 20%, #000 62%, transparent);
  }
  .fusion-copy .search-intro #search-title { font-size: clamp(32px, 8.5vw, 44px); line-height: 1.12; }
  html:lang(zh) .fusion-copy .search-intro #search-title { font-size: clamp(40px, 12vw, 57px); }
  #search-title span + span { margin-top: 2px; }
  .fusion-copy .search-intro p, html:lang(zh) .fusion-copy .search-intro p { margin: 12px 0 18px; font-size: 13px; line-height: 1.76; max-width: none; }
  .fusion-copy .search-intro p span { display: block; }
  body:not(.is-chatting) .question-form { border-radius: 17px; padding: 14px 12px 12px 15px; }
  body:not(.is-chatting) #question { min-height: 50px; font-size: 16px; }
  body:not(.is-chatting) .search-attachments { gap: 0 8px; }
  body:not(.is-chatting) #question-form .search-attachments .search-action { min-height: 33px; font-size: 12px; gap: 4px; }
  body:not(.is-chatting) #question-form #report-open { padding-inline-start: 9px; }
  body:not(.is-chatting) :is(#import-note, #report-open)::before { width: 15px; height: 15px; }
  body:not(.is-chatting) #send { width: 33px; height: 33px; font-size: 22px; }
  body:not(.is-chatting) .privacy-notice { margin-top: 9px; gap: 3px; font-size: 10.8px; }
  .fusion-suggestions { padding: 18px 0 27px; }
  .fusion-suggestions h2 { margin: 0 0 8px; font-size: 15px; }
  .fusion-choices { grid-template-columns: 1fr; gap: 8px; }
  .fusion-choice { min-height: 47px; gap: 11px; font-size: 13.5px; padding: 8px 11px; }
  .fusion-glyph { width: 26px; height: 26px; border-radius: 8px; }
  .fusion-glyph svg { width: 16px; }
  .fusion-choice > svg { width: 14px; }
  .fusion-foot { display: block; min-height: 0; padding: 12px 0; font-size: 10px; line-height: 1.6; }
  .fusion-foot nav { gap: 4px 16px; margin-top: 6px; }
}
