/* Follow-up interaction fixes. Existing theme colors and message content remain intact. */
/* Keep the conversation in the reading flow; only the composer and questions use surfaces. */
html body.orchid-tool-page #followupPanel {
  background: transparent;
  box-shadow: none;
}
html body.orchid-tool-page #followupPanel .followup-message.assistant {
  width: 100%;
  max-width: none;
  align-items: stretch;
}
html body.orchid-tool-page #followupPanel .followup-message.assistant .followup-message-body {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html body.orchid-tool-page #followupPanel .followup-message.assistant .followup-message-label {
  padding-inline: 0;
}
html body.orchid-tool-page .followup-composer {
  overflow: visible;
  border-width: 1px;
  border-color: var(--line);
  border-radius: 14px;
  background: var(--surface-control, #fcfaff);
  box-shadow: none !important;
}
html body.orchid-tool-page .followup-compose-head {
  gap: 4px 10px;
  margin-bottom: 10px;
}
html body.orchid-tool-page .followup-compose-head > label {
  font-size: 13px;
}
html body.orchid-tool-page #followupInput {
  display: block;
  width: 100%;
  min-height: 72px;
  max-height: 240px;
  field-sizing: content;
  resize: none;
  margin: 0;
  padding: 14px 16px 6px;
  border: 0;
  border-radius: 13px 13px 0 0;
  background: transparent;
  outline: none !important;
  box-shadow: none !important;
}
html body.orchid-tool-page #followupForm .followup-form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  margin: 0;
  padding: 4px 12px 12px 16px;
  border: 0;
}
html body.orchid-tool-page #followupForm .followup-form-foot > span {
  font-size: 11px;
  line-height: 1.5;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
html body.orchid-tool-page #followupForm .followup-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
html body.orchid-tool-page #followupForm .followup-actions button {
  min-height: 40px;
  margin: 0;
  border-radius: 10px;
  line-height: 1.5;
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: none;
}
html body.orchid-tool-page #followupForm .followup-actions .primary-btn {
  min-width: 96px;
  padding: 9px 16px;
}
html body.orchid-tool-page #followupForm .followup-actions button:focus-visible {
  outline: 1px solid var(--orchid);
  outline-offset: 2px;
  box-shadow: none !important;
}
html body.orchid-tool-page .followup-message.user {
  width: fit-content;
  border: 0;
  background: transparent;
  box-shadow: none;
}
/* Keep speaker identification available to screen readers without a redundant row. */
html body.orchid-tool-page .followup-message.user .followup-message-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 640px) {
  html body.orchid-tool-page #followupInput {
    min-height: 76px;
    padding-inline: 14px;
    font-size: 16px;
  }
  html body.orchid-tool-page .followup-compose-head {
    display: grid;
    gap: 2px;
  }
  html body.orchid-tool-page #followupForm .followup-form-foot {
    padding-left: 14px;
  }
  html body.orchid-tool-page #followupForm .followup-actions button {
    min-height: 44px;
  }
}
