.health-product{--health-bg:#061427;--health-panel:#0a1d33;--health-card:#102842;--health-border:rgba(133,193,255,.2);--health-accent:#2dd4bf;--health-text:#edf8ff;--health-muted:#9ab5ce;position:relative;display:grid;grid-template-columns:minmax(0,1fr);min-height:0;height:100%;padding:8px;color:var(--health-text);background:radial-gradient(circle at 76% 8%,rgba(45,212,191,.1),transparent 30%),linear-gradient(150deg,#061427,#071a30)}
.health-product[hidden],.health-tools[hidden],.health-emoji-picker[hidden]{display:none!important}.health-product.tools-open{grid-template-columns:minmax(440px,1fr) minmax(390px,460px);gap:10px}.health-chat-main,.health-tools{min-width:0;min-height:0;border:1px solid var(--health-border);border-radius:20px;background:linear-gradient(180deg,rgba(10,29,51,.97),rgba(5,18,34,.98));box-shadow:0 18px 48px rgba(0,5,16,.3);overflow:hidden}.health-chat-main{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto auto}.health-chat-head,.health-tools-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--health-border);background:rgba(10,29,51,.96)}.health-chat-head>div,.health-tools-head>div{display:grid;min-width:0}.health-chat-head span,.health-tools-head span,.health-status{color:var(--health-muted);font-size:.78rem}.health-chat-head strong,.health-tools-head h3{margin:0;color:#fff}.health-chat-head button,.health-tools-head button,.health-tool-nav button,.health-composer button,.health-tool-content button{min-height:42px;padding:8px 12px;border:1px solid var(--health-border);border-radius:11px;color:var(--health-text);background:#102a47;cursor:pointer}.health-chat-head button:hover,.health-tools-head button:hover,.health-tool-nav button:hover,.health-composer button:hover,.health-tool-content button:hover,.health-chat-head button:focus-visible,.health-tools-head button:focus-visible,.health-tool-nav button:focus-visible,.health-composer button:focus-visible,.health-tool-content button:focus-visible{border-color:#5eead4;outline:2px solid rgba(45,212,191,.24);outline-offset:2px}.health-signal{margin:10px 14px 0;padding:10px 13px;border:1px solid rgba(45,212,191,.25);border-radius:12px;color:#c7fff7;background:rgba(13,148,136,.12)}.health-chat{display:flex;flex-direction:column;gap:12px;min-height:0;padding:20px;overflow:auto;overscroll-behavior:contain}.health-empty{margin:auto;max-width:590px;text-align:center;color:var(--health-muted)}.health-empty strong{display:block;margin-bottom:8px;color:var(--health-text);font-size:1.15rem}.health-message{display:flex}.health-message.user{justify-content:flex-end}.health-bubble{max-width:min(78%,760px);padding:12px 14px;border:1px solid var(--health-border);border-radius:16px;color:#eaf4ff;background:#102640;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.health-message.user .health-bubble{border-color:rgba(96,165,250,.34);background:#174d7f}.health-sources{display:grid;gap:6px;margin-top:10px;padding-top:9px;border-top:1px solid var(--health-border)}.health-sources a{color:#83d8ff}.health-message-image{display:block;max-width:320px;max-height:280px;margin-top:9px;border-radius:12px;object-fit:contain}.health-attachment-tray{display:flex;gap:7px;padding:7px 12px;overflow:auto}.health-attachment-tray button{white-space:nowrap}.health-status{min-height:22px;padding:0 14px}.health-composer{position:relative;display:grid;grid-template-columns:auto auto minmax(100px,1fr) auto auto;gap:8px;padding:12px;border-top:1px solid var(--health-border);background:rgba(5,18,34,.98)}.health-composer textarea{min-width:0;max-height:130px;padding:11px 13px;border:1px solid var(--health-border);border-radius:13px;resize:none;color:var(--health-text);background:#07182c;font:inherit}.health-composer textarea:focus{border-color:var(--health-accent);outline:3px solid rgba(45,212,191,.15)}.health-icon-button{width:44px;padding:7px!important}.health-icon-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8}.health-primary{border-color:rgba(45,212,191,.5)!important;background:linear-gradient(135deg,#0f766e,#0d9488)!important;font-weight:800}.health-emoji-picker{position:absolute;z-index:40;left:58px;bottom:76px;width:min(360px,calc(100% - 24px));padding:8px;border:1px solid var(--health-border);border-radius:15px;background:#071a30;box-shadow:0 20px 50px rgba(0,0,0,.45)}.health-emoji-picker .emoji-fallback{display:grid;grid-template-columns:repeat(6,1fr);gap:5px}.health-emoji-picker .emoji-fallback button{border:0;background:transparent;font-size:1.3rem}.health-tools{display:grid;grid-template-rows:auto auto minmax(0,1fr)}.health-tool-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:10px;border-bottom:1px solid var(--health-border)}.health-tool-nav button{padding:7px;font-size:.78rem}.health-tool-nav button.active{border-color:#5eead4;background:#155e63}.health-tool-content{min-height:0;padding:14px;overflow:auto}.health-tool-content h4{margin:0 0 10px;color:#fff}.health-tool-content p{color:var(--health-muted);line-height:1.45}.health-tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.health-tool-card,.health-capability-note{margin:8px 0;padding:11px;border:1px solid var(--health-border);border-radius:13px;background:var(--health-card);overflow-wrap:anywhere}.health-tool-card strong{display:block;color:#fff}.health-tool-card small{display:block;margin-top:4px;color:var(--health-muted)}.health-tool-card .health-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}.health-capability-note{color:#bad2e8;background:rgba(45,91,136,.18)}.health-form{display:grid;gap:9px;margin:10px 0 15px;padding:11px;border:1px solid var(--health-border);border-radius:14px;background:rgba(8,31,54,.82)}.health-form label{display:grid;gap:4px;color:#bfd2e5;font-size:.8rem}.health-form input,.health-form select,.health-form textarea{width:100%;min-width:0;padding:9px 10px;border:1px solid var(--health-border);border-radius:10px;color:var(--health-text);background:#06172a;font:inherit}.health-form textarea{min-height:70px;resize:vertical}.health-form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.health-form .health-checkbox{display:flex;align-items:center;gap:7px}.health-form .health-checkbox input{width:auto}.health-device-state{display:inline-flex;margin-top:6px;padding:4px 8px;border-radius:99px;color:#dce9f6;background:rgba(100,116,139,.25);font-size:.72rem;font-weight:800}.health-device-state.connected{color:#bff8ee;background:rgba(13,148,136,.25)}.health-progress{height:8px;margin-top:8px;border-radius:99px;background:#061427;overflow:hidden}.health-progress span{display:block;height:100%;background:linear-gradient(90deg,#2563eb,#2dd4bf)}.health-record-check{display:flex;align-items:center;gap:7px;margin-top:8px;color:#c8d8e8;font-size:.8rem}.health-record-check input{accent-color:#2dd4bf}.health-tools a{color:#7dd3fc}.health-tools-open .our-space-disclaimer{display:none}
@media(max-width:1100px){.health-product.tools-open{grid-template-columns:minmax(0,1fr)}.health-tools{position:absolute;z-index:30;inset:8px 8px 8px auto;width:min(480px,calc(100% - 16px))}}
@media(max-width:600px){.health-product{padding:0}.health-chat-main{border-width:0;border-radius:0}.health-tools{inset:0!important;width:100%!important;border-radius:0}.health-chat-head{padding:10px}.health-chat{padding:13px}.health-bubble{max-width:90%}.health-composer{grid-template-columns:auto auto minmax(0,1fr) auto;padding:9px}.health-composer textarea{grid-column:1/-1;grid-row:1}.health-composer #healthAttach{grid-column:1;grid-row:2}.health-composer #healthEmoji{grid-column:2;grid-row:2}.health-composer #healthMic{grid-column:3;grid-row:2;justify-self:end}.health-composer #healthSend{grid-column:4;grid-row:2}.health-composer #healthStop,.health-composer #healthRetry{grid-column:1/-1}.health-tool-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.health-tool-grid,.health-form-row{grid-template-columns:1fr}.health-emoji-picker{left:8px;bottom:118px}}
@media(prefers-reduced-motion:reduce){.health-product *{scroll-behavior:auto!important;transition:none!important}}
