/* Scoped mobile candidate. Clinical content and request policy unchanged. */
#botya-medical-reference{color:#f6f0e4;background:#101519;border:1px solid #806a43;border-radius:24px;padding:20px;line-height:1.6;scroll-margin-top:140px}
#botya-medical-reference *{box-sizing:border-box}
#botya-medical-reference h2{font-size:26px;line-height:1.2;color:#e6bf79;margin:0 0 20px}
#botya-medical-reference h3{font-size:18px;color:#e6bf79;margin:0 0 16px}
#botya-medical-reference button,#botya-medical-reference select,#botya-medical-reference textarea{font:inherit;font-size:16px;width:100%;min-height:56px;border:1px solid #9b814e;border-radius:14px;padding:14px;color:#f6f0e4;background:#20282c;white-space:normal;line-height:1.4}
#botya-medical-reference button{cursor:pointer;font-weight:700;margin:6px 0}
#botya-medical-reference textarea{min-height:132px;resize:vertical;margin-top:12px}
#botya-medical-reference .medical-primary,#botya-medical-reference button[aria-pressed=true]{background:#e6bf79;color:#101519;border:2px solid #ffe1a5}
#botya-medical-reference button:disabled{opacity:.6;cursor:wait}
#botya-medical-reference :focus-visible{outline:3px solid #ffe1a5;outline-offset:3px}
.medical-stage{margin-top:24px;padding-top:22px;border-top:1px solid #455052}
.medical-consent{display:flex;align-items:flex-start;gap:14px;padding:16px;background:#20282c;border-radius:14px;min-height:64px;cursor:pointer}
.medical-consent input{flex:0 0 24px;width:24px;height:24px;margin-top:3px;accent-color:#e6bf79}
.medical-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}
.medical-offline-note{color:#c0c9c8;font-size:14px}
.medical-choices>div{padding:16px;background:#20282c;border-radius:16px;margin:12px 0}
.medical-choices p{font-weight:700;margin-top:0}
.medical-answer p{padding:16px;border-left:3px solid #c9a568;background:#192125;border-radius:0 12px 12px 0;overflow-wrap:anywhere}
@media(max-width:600px){
 .tabs{top:env(safe-area-inset-top,0px);padding-top:8px;display:grid;grid-template-columns:1fr 1fr}
 .tabs button{min-height:48px;font-size:15px;padding:10px}
 body{padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
 #botya-medical-reference{padding:18px;border-radius:20px}
 .medical-actions{grid-template-columns:1fr;gap:4px}
 body:has(#first-aid.active) #botya-chat-launcher{position:static!important;margin:24px 16px!important;max-width:none!important}
}

.medical-safety{padding:16px;border:2px solid #e6bf79;border-radius:14px;color:#ffe1a5;background:#24221b;line-height:1.6;margin:16px 0}
.tabs button::before,button:not(.tab)::before{background-color:#101519;border-radius:5px}
button:not(.tab){display:flex;align-items:center;justify-content:flex-start;text-align:left;min-height:48px;box-sizing:border-box;padding:12px}

.tabs button{display:flex;align-items:center;justify-content:center;gap:8px}.tabs button::before{content:"";width:28px;height:28px;flex:0 0 28px;background-repeat:no-repeat;background-size:contain}
.tabs button[data-panel="consult"]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M12%2C2%20L21%2C6%20L20%2C14%20Q18%2C20%2012%2C23%20Q6%2C20%204%2C14%20L3%2C6%20Z%20M12%2C6%20L12%2C17%20M8%2C18%20L16%2C18%20M7%2C9%20L17%2C9%20M7%2C9%20L5%2C14%20L9%2C14%20Z%20M17%2C9%20L15%2C14%20L19%2C14%20Z%22%20fill%3D%22none%22%20stroke%3D%22%23D6DEE8%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E")}
.tabs button[data-panel="first-aid"]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M12%2C2%20L21%2C6%20L20%2C14%20Q18%2C20%2012%2C23%20Q6%2C20%204%2C14%20L3%2C6%20Z%20M12%2C17%20C2%2C11%208%2C6%2012%2C10%20C16%2C6%2022%2C11%2012%2C17%20Z%22%20fill%3D%22none%22%20stroke%3D%22%23F08A80%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E")}
.tabs button[data-panel="documents"]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M6%2C3%20L15%2C3%20L20%2C8%20L20%2C21%20L6%2C21%20Z%20M15%2C3%20L15%2C8%20L20%2C8%20M9%2C12%20L17%2C12%20M9%2C16%20L17%2C16%22%20fill%3D%22none%22%20stroke%3D%22%238FC5F7%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E")}
.tabs button[data-panel="contacts"]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M16%2C8%20A4%2C4%200%2C1%201%2C8%208%20A4%2C4%200%2C1%201%2C16%208%20M5%2C21%20L5%2C19%20C5%2C12%2019%2C12%2019%2C19%20L19%2C21%20Z%22%20fill%3D%22none%22%20stroke%3D%22%2378D6C6%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E")}

/* Shared column edges and fixed icon slot; long captions may wrap. */
.tabs button{justify-content:flex-start;padding:12px;min-height:64px;min-width:0;text-align:left;white-space:normal;overflow-wrap:anywhere}
@media(max-width:600px){.tabs{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr}.tabs button{padding:12px;min-height:64px}}

/* Shared action icon slot. Existing child logos remain unchanged. */
button{white-space:normal;overflow-wrap:anywhere}
button:not(.tab)::before{content:"";display:inline-block;width:28px;height:28px;flex:0 0 28px;background-size:contain;background-repeat:no-repeat;margin-right:10px;vertical-align:middle;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M5%2C12%20L19%2C12%20M13%2C6%20L19%2C12%20L13%2C18%22%20fill%3D%22none%22%20stroke%3D%22%2378D6C6%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E")}
#botya-medical-reference button{display:flex;align-items:center;justify-content:flex-start;text-align:left;min-height:56px}
#botya-medical-reference .medical-primary::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M3%2C3%20L22%2C12%20L3%2C21%20L7%2C12%20Z%20M7%2C12%20L22%2C12%22%20fill%3D%22none%22%20stroke%3D%22%2378D6C6%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E")}
.medical-actions button:last-child::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M5%2C8%20A8%2C8%200%2C1%201%2C4%2016%20M5%2C3%20L5%2C8%20L10%2C8%22%20fill%3D%22none%22%20stroke%3D%22%23D6DEE8%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E")}
.medical-choices button:nth-of-type(1)::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M4%2C12%20L10%2C18%20L21%2C5%22%20fill%3D%22none%22%20stroke%3D%22%2378D6C6%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E")}
.medical-choices button:nth-of-type(2)::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M6%2C6%20L18%2C18%20M18%2C6%20L6%2C18%22%20fill%3D%22none%22%20stroke%3D%22%23D6DEE8%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E")}
.medical-choices button:nth-of-type(3)::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M8%2C7%20C8%2C1%2018%2C1%2018%2C7%20C18%2C11%2012%2C10%2012%2C15%20M12%2C19%20L12%2C20%22%20fill%3D%22none%22%20stroke%3D%22%23D6DEE8%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E")}

/* Leave the small first-aid viewport to the mode choice, including enlarged text. */
.tabs.first-aid-reading{position:static}
#first-aid{scroll-margin-top:12px}

/* Text zoom must not widen the mobile layout viewport. */
.shell{overflow-wrap:anywhere}
.skip-link{max-width:calc(100% - 32px);white-space:normal}
