/* First-screen sizing stays local to this article. */
.medical-page > main.article-wrap { padding-top: 20px !important; }
.medical-page > main > .eyebrow { margin-bottom: 10px; padding: 4px 10px; }
.medical-page > main > h1 { font-size: 36px; line-height: 1.12; margin-bottom: 12px; }
.medical-page > main > .lead { font-size: 17px; line-height: 1.45; margin-bottom: 18px; }
.medical-page header [data-medical-register] { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 44px; }
.medical-page .cookie-accept { min-height: 44px; }
/* Same conversation layout as ii-pomoshchnik-rasshifrovka, scoped to medical analysis. */
#medical-chat { margin: 0 0 24px; background: #fff; border-radius: 24px; box-shadow: 0 2px 6px rgba(15,23,42,.04), 0 28px 64px -24px rgba(15,23,42,.22); overflow: hidden; text-align: left; }
#medical-chat [hidden] { display: none !important; }
#medical-chat .medical-chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid #f1f5f9; }
#medical-chat .medical-chat-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #fed7aa; }
#medical-chat .medical-chat-name { font-size: 16px; font-weight: 700; color: #0f172a; line-height: 1.2; }
#medical-chat .medical-chat-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
#medical-chat .medical-chat-message { display: flex; max-width: 88%; min-width: 0; }
#medical-chat .medical-chat-message-iskra { align-self: flex-start; }
#medical-chat .medical-chat-message-user { align-self: flex-end; }
#medical-chat .medical-chat-bubble { font-size: 16px; line-height: 1.5; padding: 12px 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
#medical-chat .medical-chat-message-iskra .medical-chat-bubble { background: #f4f6f9; color: #0f172a; border-radius: 18px 18px 18px 6px; }
#medical-chat .medical-chat-message-user .medical-chat-bubble { background: #ffe8d6; color: #0f172a; border-radius: 18px 18px 6px 18px; }
#medical-chat #medical-response .medical-chat-bubble { white-space: normal; }
#medical-chat #medical-response p { margin: 0; font-size: 16px; line-height: 1.5; }
#medical-chat #medical-response .medical-chat-note { margin: 10px 0 0; color: #475569; font-size: 14px; }
#medical-chat .medical-chat-input { display: flex; align-items: flex-end; gap: 10px; margin: 0 16px 20px; padding: 8px 8px 8px 16px; background: #f8fafc; border-radius: 18px; box-shadow: inset 0 0 0 1.5px #e8edf3; }
#medical-chat .medical-chat-input:focus-within { box-shadow: inset 0 0 0 2px #fb923c; background: #fff; }
#medical-chat .medical-chat-field { flex: 1; box-sizing: border-box; display: block; width: 100%; min-width: 0; border: 0; background: transparent; resize: vertical; font: inherit; font-size: 16px; line-height: 1.5; color: #0f172a; padding: 8px 0; min-height: 64px; max-height: 160px; }
#medical-chat .medical-chat-send { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #c2410c; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
#medical-chat .medical-chat-send:hover { background: #9a3412; }
#medical-chat .medical-chat-send:disabled { opacity: .35; cursor: default; }
#medical-chat .medical-chat-continue { color: #c2410c; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
#medical-chat .medical-chat-continue:hover { color: #9a3412; }
#medical-chat .medical-chat-copy { min-height: 44px; margin-top: 8px; padding: 8px 0; background: transparent; border: 0; color: #9a3412; font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
#medical-chat :is(button,a,textarea):focus-visible, #medical-chat #medical-response:focus-visible { outline: 3px solid #9a3412; outline-offset: 3px; }
@media (max-width: 600px) {
  .medical-page > main.article-wrap { padding-top: 14px !important; }
  .medical-page > main > h1 { font-size: 28px; line-height: 1.12; margin-bottom: 10px; }
  .medical-page > main > .lead { font-size: 16px; line-height: 1.45; margin-bottom: 14px; }
  #medical-chat .medical-chat-head { padding: 12px 16px; }
  #medical-chat .medical-chat-body { padding: 16px 14px 18px; }
  #medical-chat .medical-chat-input { margin: 0 12px 16px; }
}
