:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f7f7f4;--sidebar:#f0f2ee;--surface:#fff;--surface-soft:#eef5f1;--surface-muted:#f8faf8;--ink:#1f2a2a;--muted:#60706c;--line:#d9e2dd;--teal:#287b70;--teal-dark:#1e6259;--blue:#335c81;--yellow:#b7791f;--orange:#bd5b2a;--red:#b43b3b;--green:#2f7d4f;--shadow:0 18px 42px #1f2a2a1f;--soft-shadow:0 14px 36px #1f2a2a1a}*{box-sizing:border-box}[hidden]{display:none!important}html,body{min-height:100%;margin:0}body{background:var(--bg);color:var(--ink);font-family:Inter,Noto Sans SC,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.55;overflow:hidden}button,textarea{font:inherit}button{cursor:pointer}.chat-app{grid-template-columns:260px minmax(0,1fr);width:100%;height:100vh;min-height:100vh;margin:0;padding:0;display:grid}.app-sidebar{background:var(--sidebar);border-right:1px solid #d9e2ddc7;flex-direction:column;gap:14px;min-height:0;padding:14px 10px;display:flex}.workspace{grid-template-rows:auto auto auto minmax(0,1fr);min-width:0;min-height:0;padding:0;display:grid}.chat-header{justify-content:space-between;align-items:center;gap:12px;width:100%;max-width:820px;min-height:68px;margin:0 auto;padding:14px 20px 8px;display:flex}.chat-header h1{letter-spacing:0;margin:2px 0 0;font-size:21px;line-height:1.18}.view-kicker,.sidebar-label{color:var(--muted);font-size:12px;font-weight:800}.brand{width:100%;max-width:210px;color:var(--ink);border-radius:8px;align-items:center;padding:4px 0;font-weight:900;text-decoration:none;display:inline-flex}.brand-logo{object-fit:contain;width:min(196px,100%);height:auto;display:block}.top-nav{gap:4px;display:grid}.top-nav button{min-height:46px;color:var(--muted);text-align:left;background:0 0;border:0;border-radius:8px;grid-template-columns:28px minmax(0,1fr);align-items:center;column-gap:9px;padding:8px 10px;font-size:13px;font-weight:900;display:grid}.top-nav button.is-active{color:var(--ink);background:#ffffffc7;box-shadow:0 1px #1f2a2a0a}.top-nav button>span{width:28px;height:28px;color:var(--teal-dark);background:#dfece8;border-radius:8px;place-items:center;display:grid}.top-nav button small{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:650;display:block;overflow:hidden}.top-nav button strong{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.sidebar-section,.sidebar-footer{gap:7px;padding:0 6px;display:grid}.sidebar-footer{color:var(--muted);margin-top:auto;font-size:12px}.sidebar-footer p{margin:0}.model-pill{border:1px solid var(--line);width:100%;min-height:40px;color:var(--ink);text-align:left;background:#fff;border-radius:8px;grid-template-columns:9px minmax(0,auto);align-items:center;gap:8px;padding:8px 10px;display:inline-grid}.model-pill strong,.model-pill small{text-overflow:ellipsis;white-space:nowrap;max-width:180px;display:block;overflow:hidden}.model-pill strong{font-size:13px;line-height:1.1}.model-pill small{color:var(--muted);font-size:11px;line-height:1.2}.status-dot,.thinking-dot{background:var(--muted);border-radius:50%;width:9px;height:9px}.status-dot.is-ready,.capability-badge.ready,.capability-item em.ready{color:var(--green);background:#e2f5ea}.status-dot.is-ready{background:var(--green)}.status-dot.is-degraded,.capability-badge.degraded,.capability-item em.degraded{color:var(--yellow);background:#fff3d2}.status-dot.is-degraded{background:var(--yellow)}.status-dot.is-loading{background:var(--blue);animation:1.8s ease-in-out infinite breathingLight}.status-dot.is-offline,.capability-badge.offline,.capability-item em.offline,.capability-badge.loading,.capability-item em.loading{color:var(--muted);background:#eef0ef}.trust-note{color:var(--muted);white-space:nowrap;font-size:13px}.model-panel{border:1px solid var(--line);width:min(760px,100% - 32px);box-shadow:var(--soft-shadow);background:#fffffff5;border-radius:8px;gap:12px;margin:0 auto 8px;padding:12px;display:grid}.model-panel-head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.model-panel-head strong{font-size:15px}.model-panel-head p,.capability-item p{color:var(--muted);margin:2px 0 0;font-size:12px}.capability-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.capability-item{background:#fbfcfb;border:1px solid #d9e2dde0;border-radius:8px;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;padding:10px;display:grid}.capability-item strong,.capability-item span{display:block}.capability-item span{color:var(--muted);font-size:12px}.capability-item p{grid-column:1/-1}.capability-badge,.capability-item em{white-space:nowrap;border-radius:8px;width:fit-content;padding:4px 7px;font-size:12px;font-style:normal;font-weight:900;display:inline-flex}.chat-shell{background:0 0;grid-template-rows:minmax(0,1fr) auto;min-height:0;display:grid;overflow:hidden}.message-list{scroll-behavior:smooth;flex-direction:column;gap:14px;width:min(820px,100%);min-height:0;margin:0 auto;padding:16px 20px 22px;display:flex;overflow-y:auto}.agent-status{border:1px solid var(--line);width:min(760px,100% - 32px);color:var(--muted);background:#fffffff5;border-radius:8px;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:8px;margin:0 auto 8px;padding:9px 12px;display:grid;box-shadow:0 10px 24px #1f2a2a14}.agent-status strong{color:var(--ink);font-size:13px}.agent-status p{margin:0;font-size:12px}.agent-stop-button{border:1px solid var(--line);min-height:30px;color:var(--ink);background:var(--surface-soft);border-radius:8px;padding:5px 9px;font-size:12px;font-weight:900}.thinking-dot{background:var(--teal);animation:1.8s ease-in-out infinite breathingLight}.composer.is-busy textarea{background:#fbfcfb}@keyframes breathingLight{0%{opacity:.64;transform:scale(.94);box-shadow:0 0 #287b702e}50%{opacity:1;transform:scale(1.04);box-shadow:0 0 0 7px #287b7014}to{opacity:.64;transform:scale(.94);box-shadow:0 0 #287b702e}}@keyframes softGlow{0%{box-shadow:0 0 #287b7047}70%{box-shadow:0 0 0 6px #287b7000}to{box-shadow:0 0 #287b7000}}@keyframes messageIn{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@keyframes lineReveal{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes cardReveal{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.forum-shell{background:var(--surface);width:min(1120px,100%);min-height:0;margin:0 auto;overflow:auto}.forum-page{gap:14px;padding:14px;display:grid}.forum-hero{border-bottom:1px solid var(--line);gap:8px;padding:6px 2px 14px;display:grid}.forum-eyebrow,.forum-status{color:var(--blue);font-size:12px;font-weight:900}.forum-hero h1,.forum-panel-head h2,.forum-feed-head h2{margin:0}.forum-hero h1{font-size:24px;line-height:1.18}.forum-hero p,.forum-panel-head p,.forum-feed-head p,.forum-post-card p,.expert-card p,.forum-empty-state p,.forum-result-panel p,.forum-missing p{color:var(--muted);margin:0;font-size:13px}.forum-layout{grid-template-columns:minmax(0,1.55fr) minmax(240px,.9fr);align-items:start;gap:12px;display:grid}.forum-agent-panel,.forum-expert-panel,.forum-feed,.forum-result-panel,.forum-draft-form{border:1px solid var(--line);background:#fff;border-radius:8px;gap:12px;padding:12px;display:grid}.forum-panel-head,.forum-feed-head,.forum-post-head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.forum-panel-head h2,.forum-feed-head h2{font-size:17px}.forum-agent-panel textarea,.forum-draft-form textarea,.forum-draft-form input,.forum-draft-form select{border:1px solid var(--line);width:100%;color:var(--ink);background:#fff;border-radius:8px;padding:10px 12px}.forum-draft-form label{color:var(--muted);gap:6px;font-size:12px;font-weight:900;display:grid}.forum-draft-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.forum-check{grid-template-columns:none;align-items:center;color:var(--ink)!important;font-size:13px!important;display:flex!important}.forum-check input{width:auto}.forum-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.ghost-button{border:1px solid var(--line);min-height:38px;color:var(--teal-dark);background:var(--surface-soft);border-radius:8px;padding:9px 12px;font-weight:900}.ghost-button:hover{border-color:var(--teal)}.expert-list,.forum-post-list,.source-list,.forum-local-matches{gap:10px;display:grid}.expert-card,.forum-post-card,.forum-empty-state,.forum-missing{background:#fbfcfb;border:1px solid #d9e2dddb;border-radius:8px;gap:8px;padding:11px;display:grid}.expert-card h3,.forum-post-card h3,.forum-result-panel h3,.forum-local-matches h4,.forum-draft-form h3{margin:0}.expert-card h3,.forum-post-card h3{font-size:16px}.verified-badge,.topic-chip,.forum-tags span,.expert-tags span,.forum-topic-row span{width:fit-content;color:var(--teal-dark);background:var(--surface-soft);white-space:nowrap;border-radius:8px;padding:4px 7px;font-size:12px;font-weight:900;display:inline-flex}.verified-badge{color:#244f7a;background:#e8f1fb}.verified-badge.small{margin-left:4px;padding:2px 5px}.expert-tags,.forum-tags,.forum-topic-row{flex-wrap:wrap;gap:6px;display:flex}.forum-tags span:nth-child(2n),.forum-topic-row span:nth-child(2n){color:#6d4d12;background:#fff3d2}.source-item{border:1px solid var(--line);color:var(--ink);background:#fbfcfb;border-radius:8px;gap:3px;padding:9px 10px;text-decoration:none;display:grid}.source-item span{color:var(--muted);overflow-wrap:anywhere;font-size:12px}.forum-warning{font-weight:900;color:var(--orange)!important}.forum-empty{color:var(--muted);font-size:13px}.message{grid-template-columns:34px minmax(0,1fr);align-items:start;gap:10px;animation:.18s ease-out both messageIn;display:grid}.message.user{grid-template-columns:minmax(0,1fr) 34px}.message.user .avatar{background:var(--blue);grid-column:2}.message.user .bubble{color:#fff;background:var(--teal);border-color:#0000;grid-area:1/1;justify-self:end}.message.user .message-attachments{justify-content:flex-end}.message.user .message-attachments img{border-color:#ffffff6b}.avatar{color:#fff;background:var(--teal-dark);border-radius:8px;place-items:center;width:34px;height:34px;font-size:14px;font-weight:900;display:grid}.assistant-avatar{color:#0000;background:#fff;border:1px solid #d9e2dde6;overflow:hidden;box-shadow:0 4px 12px #16473d14}.assistant-avatar img{object-fit:cover;width:100%;height:100%;display:block}.bubble{background:#ffffffd1;border:1px solid #d9e2ddc7;border-radius:8px;width:fit-content;max-width:min(620px,100%);padding:12px 14px}.bubble p{animation:.22s ease-out both lineReveal;animation-delay:calc(var(--line-index,0) * 70ms);margin:0}.bubble p+p{margin-top:8px}.message-attachments{flex-wrap:wrap;gap:8px;margin-top:10px;display:flex}.message-attachments img{object-fit:cover;background:#fff;border:1px solid #d9e2dddb;border-radius:8px;width:74px;height:74px}.source-chip-row{flex-wrap:wrap;align-items:center;gap:6px;margin-top:10px;display:flex}.source-chip-row>span,.source-chip-row a{white-space:nowrap;border-radius:8px;align-items:center;min-height:24px;padding:4px 8px;font-size:12px;font-weight:800;line-height:1;text-decoration:none;display:inline-flex}.source-chip-row>span{color:var(--muted);background:0 0;padding-left:0}.source-chip-row a{color:var(--teal-dark);background:#f7faf8;border:1px solid #d9e2ddeb}.source-chip-row a:hover{background:var(--surface-soft);border-color:#287b706b}.message.assistant:not(.agent-working) .bubble p:first-child{color:#263431}.message.agent-working .bubble{background:#f8fbfa;border-color:#287b7047;width:min(620px,100%)}.working-card{gap:12px;display:grid}.working-card.is-compact{align-items:center;gap:9px;min-height:24px;display:inline-flex}.working-card.is-compact strong{font-size:13px}.working-card-head{grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:8px;display:grid}.working-card-head strong{font-size:14px;display:block}.working-card-head p,.working-note{color:var(--muted);margin:0;font-size:12px}.working-card-head em{color:var(--teal-dark);background:var(--surface-soft);white-space:nowrap;border-radius:8px;padding:4px 7px;font-size:12px;font-style:normal;font-weight:900}.working-steps{gap:7px;display:grid}.working-steps div{color:var(--muted);grid-template-columns:22px minmax(0,1fr);align-items:center;gap:8px;font-size:13px;display:grid}.working-steps span{border:1px solid var(--line);width:22px;height:22px;color:var(--muted);background:#fff;border-radius:50%;place-items:center;font-size:11px;font-weight:900;display:grid}.working-steps p{margin:0;animation:none}.working-steps .is-active{color:var(--ink);font-weight:900}.working-steps .is-active span{color:#fff;background:var(--teal);border-color:#287b705c;animation:1.1s ease-in-out infinite softGlow}.working-steps .is-done{color:var(--teal-dark)}.working-steps .is-done span{color:var(--teal-dark);background:#dff1eb;border-color:#0000}.summary-card,.result-card,.hospital-card{border:1px solid var(--line);color:var(--ink);background:#fff;border-radius:8px;gap:8px;margin-top:10px;padding:12px;animation:.24s ease-out both cardReveal;display:grid}.summary-grid{gap:7px;font-size:13px;display:grid}.summary-grid div{border-bottom:1px solid #d9e2ddb8;justify-content:space-between;gap:12px;padding-bottom:6px;display:flex}.summary-grid div:last-child{border-bottom:0;padding-bottom:0}.summary-grid span{color:var(--muted)}.risk-badge{color:#fff;border-radius:8px;width:fit-content;padding:5px 8px;font-size:13px;font-weight:900;display:inline-flex}.risk-badge.green{background:var(--green)}.risk-badge.yellow{background:var(--yellow)}.risk-badge.orange{background:var(--orange)}.risk-badge.red{background:var(--red)}.hospital-list{gap:8px;display:grid}.hospital-card h3,.result-card h3,.summary-card h3{margin:0;font-size:16px}.hospital-card p,.result-card p{color:var(--muted);margin:0;font-size:13px}.image-analysis-card{gap:10px}.image-analysis-item{border-top:1px solid var(--line);gap:5px;padding-top:9px;display:grid}.image-analysis-item strong{font-size:14px}.image-analysis-item p{color:var(--muted);margin:0;font-size:13px}.image-analysis-item .red-flag{color:var(--red);font-weight:800}.image-analysis-item span,.safety-line{color:var(--muted);font-size:12px}.hospital-tags{flex-wrap:wrap;gap:6px;display:flex}.hospital-tags span,.promotion{background:var(--surface-soft);color:var(--teal-dark);border-radius:8px;padding:4px 7px;font-size:12px;font-weight:800;display:inline-flex}.promotion{color:#744600;background:#fff1cc}.visit-code{background:var(--surface-soft);border-radius:8px;justify-content:space-between;align-items:center;gap:10px;padding:12px;display:flex}.visit-code span{color:var(--muted);font-weight:800}.visit-code strong{letter-spacing:.08em;font-size:24px}.bubble-action{color:#fff;background:var(--teal);border:0;border-radius:8px;width:fit-content;min-height:38px;padding:9px 12px;font-weight:900}.bubble-action:hover,.send-button:hover{background:var(--teal-dark)}.attachment-strip{gap:8px;width:min(760px,100% - 32px);margin:0 auto 8px;padding:0;display:flex;overflow-x:auto}.attachment-chip{flex:none;width:64px;height:64px;position:relative}.attachment-chip img{border:1px solid var(--line);object-fit:cover;border-radius:8px;width:100%;height:100%}.attachment-chip button{color:#fff;background:#1f2a2ad6;border:0;border-radius:999px;width:22px;height:22px;position:absolute;top:-6px;right:-6px}.composer-dock{background:linear-gradient(180deg, #f7f7f400, var(--bg) 26%);width:100%;padding:10px 18px 16px}.composer{background:#fffffffa;border:1px solid #d9e2ddfa;border-radius:24px;grid-template-columns:38px minmax(0,1fr) 38px 38px;align-items:center;gap:6px;width:min(760px,100%);margin:0 auto;padding:8px;display:grid;box-shadow:0 16px 34px #1f2a2a21}.composer.is-dragging{background:#f6fbf9;border-color:#287b709e;box-shadow:0 18px 38px #287b702e}.icon-button,.send-button{border:0;border-radius:50%;width:38px;height:38px;min-height:38px;font-weight:900}.icon-button{color:var(--ink);background:0 0}.icon-button:hover{background:var(--surface-soft)}.icon-button.is-recording{color:#fff;background:var(--red)}textarea{resize:none;width:100%;min-height:38px;max-height:140px;color:var(--ink);background:0 0;border:0;border-radius:0;padding:8px 6px}textarea:focus{outline:none}.send-button{color:#fff;background:var(--teal);place-items:center;padding:0;font-size:17px;line-height:1;display:grid}.send-button .breathing-light{background:#fff;border-radius:50%;width:9px;height:9px;animation:1.8s ease-in-out infinite breathingLight}.composer-hint{width:min(760px,100%);color:var(--muted);text-align:center;margin:7px auto 0;font-size:11px}.toast{z-index:20;color:#fff;max-width:720px;box-shadow:var(--shadow);background:#1f2a2aeb;border-radius:8px;margin:0 auto;padding:12px 14px;position:fixed;bottom:16px;left:16px;right:16px}@media (width<=760px){.chat-app{grid-template-rows:auto minmax(0,1fr);grid-template-columns:1fr;height:100vh}.app-sidebar{border-bottom:1px solid #d9e2ddc7;border-right:0;grid-template-columns:1fr;gap:8px;min-height:auto;padding:10px;display:grid}.brand{max-width:156px;padding:0}.brand-logo{width:150px}.chat-header{display:none}.top-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.top-nav button{min-height:42px;padding:7px 8px}.top-nav button small{display:none}.sidebar-section{padding:0}.sidebar-label,.sidebar-footer{display:none}.model-pill{width:100%}.model-pill strong,.model-pill small{max-width:none}.capability-grid{grid-template-columns:1fr}.message-list{padding:14px 12px 12px}.forum-page{padding:10px}.forum-hero h1{font-size:21px}.forum-layout,.forum-draft-grid{grid-template-columns:1fr}.forum-panel-head,.forum-feed-head,.forum-post-head{flex-direction:column;align-items:flex-start}.composer-dock{padding:9px 10px 12px}.composer{border-radius:22px;grid-template-columns:36px minmax(0,1fr) 36px 36px;padding:7px}.icon-button,.send-button{width:36px;height:36px;min-height:36px}.composer-hint{display:none}}
