body{min-width:320px;min-height:100vh;margin:0}:root{color:#17324d;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;--primary:#087f8c;--primary-dark:#086672;--text:#17324d;--muted:#71849a;--border:#dce7f0;--surface:#fff;--background:#f4f8fc;background:#f4f8fc;font-family:Segoe UI,Arial,sans-serif}*,:before,:after{box-sizing:border-box}html{min-width:320px;min-height:100%}body{background:var(--background);min-width:320px;min-height:100vh;margin:0}body,button,input{font-family:Segoe UI,Arial,sans-serif}button{cursor:pointer;font-size:inherit}button:focus-visible,input:focus-visible{outline-offset:3px;outline:3px solid #8bd6df}#root{width:100%;min-height:100vh}.page-content{width:calc(100% - 64px);max-width:1440px;margin:0 auto;padding:30px 0 20px}.page-header{justify-content:space-between;align-items:center;gap:24px;margin-bottom:28px;display:flex}.page-header>div:first-child{min-width:0}.eyebrow{color:var(--primary);letter-spacing:1.4px;text-transform:uppercase;font-size:11px;font-weight:800;line-height:1.6;display:inline-block}.page-header h1{color:var(--text);letter-spacing:-1px;margin:8px 0;font-size:clamp(28px,3vw,38px);font-weight:750;line-height:1.2}.page-header p{color:var(--muted);margin:0;font-size:14px;line-height:1.7}.api-badge{color:#426479;white-space:nowrap;background:#fff;border:1px solid #d8e9e9;border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;gap:9px;padding:11px 15px;font-size:12px;font-weight:600;display:inline-flex}.live-dot{background:#16a085;border-radius:50%;flex:0 0 8px;width:8px;height:8px;display:inline-block;box-shadow:0 0 0 3px #e0f5ef}.hero-panel{background:radial-gradient(circle at 95% 5%,#a4c1f833,#0000 34%),linear-gradient(120deg,#e7faf7,#edf6ff 58%,#f4f0ff);border:1px solid #dbe8f0;border-radius:24px;grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr);align-items:center;gap:32px;min-height:310px;padding:38px 48px;display:grid;position:relative;overflow:hidden;box-shadow:0 12px 35px #284b6e0f}.hero-copy{z-index:2;max-width:570px;position:relative}.hero-label{color:var(--primary);letter-spacing:1px;background:#ffffffd9;border:1px solid #d3e9e9;border-radius:999px;align-items:center;gap:8px;padding:9px 13px;font-size:10px;font-weight:800;display:inline-flex}.hero-copy h2{color:#153b59;letter-spacing:-1.3px;margin:22px 0 14px;font-size:clamp(29px,3.2vw,43px);font-weight:750;line-height:1.16}.hero-copy p{color:#627b91;max-width:500px;margin:0 0 24px;font-size:14px;line-height:1.8}.primary-button{background:var(--primary);color:#fff;border:none;border-radius:11px;justify-content:center;align-items:center;gap:10px;min-height:45px;padding:0 19px;font-size:13px;font-weight:700;transition:background .2s,transform .2s;display:inline-flex;box-shadow:0 6px 15px #087f8c2e}.primary-button:hover{background:var(--primary-dark);transform:translateY(-1px)}.hero-art{justify-content:center;align-items:center;min-width:0;min-height:235px;display:flex;position:relative}.orbit{pointer-events:none;border:1px solid #5b9cbd33;border-radius:50%;position:absolute}.orbit-one{width:225px;height:225px}.orbit-two{width:165px;height:165px}.doctor-illustration{z-index:1;color:#22617d;background:#ffffffa6;border:1px solid #fffffff2;border-radius:28px;justify-content:center;align-items:center;width:125px;height:145px;display:flex;position:relative;box-shadow:0 10px 35px #2e648214}.doctor-heart{color:#0c9293;background:#fff;border:1px solid #d7eceb;border-radius:15px;justify-content:center;align-items:center;width:47px;height:47px;display:flex;position:absolute;bottom:10px;right:-17px}.medical-glass{z-index:2;color:#365b73;background:#fffffff5;border:1px solid #d5e5ee;border-radius:14px;align-items:center;gap:9px;padding:12px 14px;font-size:11px;font-weight:650;display:flex;position:absolute;box-shadow:0 8px 22px #284b6e14}.glass-top{top:16px;left:0}.glass-top>svg{color:#0a9896}.glass-bottom{bottom:14px;right:0}.glass-bottom>svg{color:#7b6ed6}.pulse-line{background:linear-gradient(110deg,#0000 0 15%,#0b9c9a 16% 20%,#0000 21% 38%,#0b9c9a 39% 43%,#0000 44% 100%);width:34px;height:12px}.floating-plus{color:#63b7c1;font-size:23px;position:absolute}.plus-one{top:18px;right:22px}.plus-two{bottom:18px;left:26px}.section-block{margin-top:36px}.section-title{justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:17px;display:flex}.section-title h2{color:var(--text);letter-spacing:-.5px;margin:6px 0 0;font-size:23px;font-weight:750}.section-caption{color:var(--muted);padding-bottom:3px;font-size:12px}.action-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.action-card{border:1px solid var(--border);background:var(--surface);text-align:left;border-radius:17px;align-items:center;gap:17px;min-width:0;min-height:112px;padding:22px;transition:transform .2s,border-color .2s,box-shadow .2s;display:flex;box-shadow:0 4px 14px #26496906}.action-card:hover{border-color:#a9d6d9;transform:translateY(-2px);box-shadow:0 10px 25px #26496914}.action-icon{border-radius:14px;flex:0 0 49px;justify-content:center;align-items:center;width:49px;height:49px;display:flex}.action-icon.cyan{color:#07838c;background:#e4f7f8}.action-icon.purple{color:#7c61ce;background:#f0eaff}.action-icon.green{color:#21895b;background:#e6f7ed}.action-icon.orange{color:#c77a29;background:#fff1e3}.action-icon.red{color:#dc2626;background:#fef2f2}.action-icon.amber{color:#d97706;background:#fffbeb}.action-text{flex-direction:column;flex:1;gap:7px;min-width:0;display:flex}.action-text strong{color:#203c55;font-size:14px;font-weight:750;line-height:1.4}.action-text>span{color:var(--muted);font-size:12px;line-height:1.6}.action-arrow{color:#7e96a8;flex:none;transition:transform .2s,color .2s}.action-card:hover .action-arrow{color:var(--primary);transform:translate(3px)}.dashboard-bottom{grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:16px;margin-top:20px;display:grid}.feature-panel,.upload-panel{border:1px solid var(--border);background:#fff;border-radius:18px;min-width:0;padding:27px}.feature-panel{align-items:flex-start;gap:18px;display:flex}.feature-icon,.upload-icon{color:#168b7c;background:#e7f6f3;border-radius:14px;flex:0 0 48px;justify-content:center;align-items:center;width:48px;height:48px;display:flex}.feature-panel h3,.upload-panel h3{color:var(--text);margin:10px 0;font-size:18px;font-weight:750;line-height:1.45}.feature-panel p,.upload-panel p{color:var(--muted);margin:0;font-size:13px;line-height:1.8}.upload-panel{flex-direction:column;align-items:flex-start;display:flex}.text-button{color:#087782;background:#f1fbfa;border:1px solid #cfe4e6;border-radius:10px;justify-content:center;align-items:center;gap:8px;margin-top:18px;padding:11px 14px;font-size:12px;font-weight:750;display:inline-flex}.text-button:hover{background:#e1f5f3}.page-footer{color:#7a8da0;border-top:1px solid #e0e9f0;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-top:28px;padding:19px 0 5px;font-size:11px;display:flex}.page-footer>span:first-child{color:#426b7b;align-items:center;gap:7px;font-weight:750;display:inline-flex}.patient-workspace{width:calc(100% - 48px);max-width:1120px;min-height:100vh;margin:0 auto;padding:28px 0}.workspace-header{justify-content:space-between;align-items:center;gap:16px;margin-bottom:35px;display:flex}.back-button{border:1px solid var(--border);color:#294a63;background:#fff;border-radius:10px;padding:10px 14px;font-size:13px;font-weight:700}.api-status{color:#18846c;align-items:center;gap:9px;font-size:12px;font-weight:700;display:inline-flex}.api-status.offline{color:#c34c4c}.api-status.offline .live-dot{background:#d95757;box-shadow:0 0 0 3px #fce9e9}.workspace-intro{margin-bottom:26px}.workspace-intro h1{color:var(--text);letter-spacing:-1px;margin:8px 0;font-size:clamp(28px,4vw,38px)}.workspace-intro p{color:var(--muted);margin:0;font-size:14px;line-height:1.7}.patient-search,.workspace-panel,.patient-summary{border:1px solid var(--border);background:#fff;border-radius:17px;margin-bottom:20px;padding:24px}.patient-search label{color:#294a63;margin-bottom:10px;font-size:13px;font-weight:750;display:block}.patient-search-row{gap:12px;display:flex}.patient-search-row input{width:100%;min-width:0;color:var(--text);background:#fbfdff;border:1px solid #d6e3ed;border-radius:10px;padding:12px 14px}.patient-search-row button,.workspace-primary-button{background:var(--primary);color:#fff;border:0;border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;padding:12px 17px;font-size:13px;font-weight:750;display:inline-flex}.patient-search-row button:disabled{cursor:wait;opacity:.65}.workspace-error{color:#a83232;background:#fff2f2;border:1px solid #f0c8c8;border-radius:12px;padding:14px 16px;font-size:13px;line-height:1.6}.patient-summary{justify-content:space-between;align-items:center;gap:24px;display:flex}.patient-summary h2{margin:8px 0;font-size:22px}.patient-summary p{color:var(--muted);margin:0;font-size:13px}.summary-stat{text-align:right;flex-direction:column;gap:5px;display:flex}.summary-stat strong{color:var(--primary);font-size:27px}.summary-stat span{color:var(--muted);font-size:12px}.workspace-panel h2{margin:0 0 8px;font-size:20px}.panel-description{color:var(--muted);margin:0 0 20px;font-size:13px;line-height:1.6}.visit-card{background:#fbfdff;border:1px solid #e0eaf1;border-radius:14px;margin-top:17px;padding:20px}.visit-heading{justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px;display:flex}.visit-heading h3{margin:5px 0 0;font-size:16px}.visit-date{color:var(--muted);font-size:12px}.clinical-measurement-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.clinical-measurement{background:#fff;border:1px solid #e4edf3;border-radius:11px;min-width:0;padding:15px}.clinical-measurement span{color:var(--muted);margin-bottom:8px;font-size:12px;line-height:1.5;display:block}.clinical-measurement strong{color:#24465f;overflow-wrap:anywhere;font-size:16px}.visit-summary-row{color:#50677c;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;font-size:13px;display:flex}.clinical-disclaimer{color:#526d80;background:#f0f7fb;border-radius:10px;margin:12px 0 0;padding:14px;font-size:12px;line-height:1.7}.workspace-footer{color:var(--muted);padding:20px 0;font-size:12px}@media (width>=1500px){.hero-panel{min-height:340px}.hero-art{min-height:260px}}@media (width<=900px){.page-content{width:calc(100% - 40px);max-width:760px;padding-top:24px}.hero-panel{grid-template-columns:minmax(0,1fr) minmax(220px,.8fr);gap:18px;padding:30px}.hero-copy h2{font-size:31px}.dashboard-bottom{grid-template-columns:1fr}}@media (width<=620px){.page-content{width:calc(100% - 32px);padding-top:20px}.page-header{flex-direction:column;align-items:flex-start;gap:14px;margin-bottom:22px}.hero-panel{border-radius:19px;grid-template-columns:minmax(0,1fr);gap:8px;padding:25px 22px}.hero-copy h2{margin-top:18px;font-size:30px}.hero-copy p{font-size:13px}.hero-art{min-height:235px}.section-block{margin-top:28px}.section-title{flex-direction:column;align-items:flex-start;gap:7px}.section-title h2{font-size:21px}.action-grid{grid-template-columns:minmax(0,1fr);gap:12px}.action-card{min-height:94px;padding:17px}.feature-panel,.upload-panel{padding:21px}.feature-panel{gap:13px}.page-footer{flex-direction:column;align-items:flex-start}.patient-workspace{width:calc(100% - 32px);padding-top:20px}.workspace-header{margin-bottom:27px}.patient-search,.workspace-panel,.patient-summary{padding:18px}.patient-search-row{flex-direction:column;align-items:stretch}.patient-search-row button{width:100%}.patient-summary{flex-direction:column;align-items:flex-start}.summary-stat{text-align:left}.clinical-measurement-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.visit-card{padding:14px}}@media (width<=380px){.clinical-measurement-grid{grid-template-columns:minmax(0,1fr)}.hero-copy h2{font-size:27px}.medical-glass{padding:10px;font-size:10px}}.patient-selector-container{margin-bottom:22px}.selector-warning-banner{color:#9a3412;background:#fff7ed;border:1px solid #fed7aa;border-radius:12px;align-items:center;gap:10px;margin-bottom:12px;padding:12px 16px;font-size:13px;line-height:1.5;display:flex}.selector-warning-banner.error{color:#991b1b;background:#fef2f2;border-color:#fecaca}.retry-btn{color:inherit;cursor:pointer;background:0 0;border:0;align-items:center;padding:4px;display:inline-flex}.patient-selector-bar{border:1px solid var(--border);background:#fff;border-radius:14px;justify-content:space-between;align-items:center;gap:16px;padding:12px 18px;display:flex;box-shadow:0 2px 8px #087f8c0a}.selector-left{flex:1;align-items:center;gap:12px;min-width:0;display:flex}.selector-label{color:#37536d;white-space:nowrap;align-items:center;gap:6px;font-size:13px;font-weight:750;display:inline-flex}.patient-dropdown{color:#17324d;cursor:pointer;background:#f8fbfe;border:1px solid #cfdeeb;border-radius:10px;min-width:220px;max-width:360px;padding:8px 14px;font-size:13px;font-weight:600}.patient-dropdown:focus{outline:2px solid var(--primary);border-color:var(--primary)}.patient-quick-badge{color:#086672;white-space:nowrap;text-overflow:ellipsis;background:#f0f7f9;border-radius:8px;align-items:center;padding:4px 10px;font-size:12px;font-weight:600;display:inline-flex;overflow:hidden}.selector-right{align-items:center;gap:10px;display:flex}.register-patient-btn{color:#fff;background:#087f8c;border:1px solid #087f8c;border-radius:10px;align-items:center;gap:7px;padding:8px 15px;font-size:13px;font-weight:700;transition:all .15s;display:inline-flex}.register-patient-btn:hover{background:#066670;border-color:#066670}.download-pdf-btn{color:#087f8c;background:#fff;border:1px solid #c8dced;border-radius:10px;align-items:center;gap:7px;padding:8px 15px;font-size:13px;font-weight:700;transition:all .15s;display:inline-flex}.download-pdf-btn:hover:not(:disabled){color:#066670;background:#f0fdfa;border-color:#087f8c}.download-pdf-btn:disabled{opacity:.6;cursor:wait}.modal-backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:1000;background:#0f172a8c;justify-content:center;align-items:center;padding:20px;animation:.15s ease-out fadeIn;display:flex;position:fixed;inset:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.modal-content{border:1px solid var(--border);background:#fff;border-radius:18px;width:100%;max-width:580px;overflow:hidden;box-shadow:0 20px 40px -10px #0f172a40}.modal-header{border-bottom:1px solid #eef3f7;justify-content:space-between;align-items:flex-start;padding:24px 24px 18px;display:flex}.modal-title{align-items:flex-start;gap:14px;display:flex}.modal-icon{color:#087f8c;background:#e6f6f8;border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:38px;height:38px;display:flex}.modal-title h3{color:#17324d;margin:0;font-size:19px}.modal-title p{color:var(--muted);margin:4px 0 0;font-size:13px}.modal-close{color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:8px;justify-content:center;align-items:center;padding:6px;transition:all .15s;display:flex}.modal-close:hover{color:#0f172a;background:#f1f5f9}.modal-alert{border-radius:10px;align-items:center;gap:10px;margin:16px 24px 0;padding:12px 14px;font-size:13px;line-height:1.5;display:flex}.modal-alert-error{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca}.modal-alert-success{color:#15803d;background:#f0fdf4;border:1px solid #bbf7d0}.modal-form{padding:20px 24px 24px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.form-group{flex-direction:column;gap:6px;display:flex}.form-group label{color:#294a63;font-size:13px;font-weight:700}.req{color:#dc2626;font-weight:700}.form-group input,.form-group select,.form-group textarea{color:#17324d;resize:vertical;background:#f8fbfe;border:1px solid #cfdeeb;border-radius:9px;padding:10px 12px;font-family:inherit;font-size:13px}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:2px solid var(--primary);border-color:var(--primary);background:#fff}.form-grid .full-width{grid-column:1/-1}.field-hint{color:var(--muted);font-size:11px}.modal-actions{border-top:1px solid #eef3f7;justify-content:flex-end;align-items:center;gap:12px;margin-top:24px;padding-top:18px;display:flex}.btn-secondary{color:#37536d;background:#fff;border:1px solid #cfdeeb;border-radius:9px;padding:10px 18px;font-size:13px;font-weight:700;transition:all .15s}.btn-secondary:hover{background:#f1f5f9}.btn-primary{border:1px solid var(--primary);background:var(--primary);color:#fff;border-radius:9px;padding:10px 20px;font-size:13px;font-weight:700;transition:all .15s}.btn-primary:hover{background:var(--primary-dark)}.btn-primary:disabled,.btn-secondary:disabled{opacity:.6;cursor:wait}@media (width<=620px){.patient-selector-bar,.selector-left{flex-direction:column;align-items:stretch}.patient-dropdown{max-width:none}.form-grid{grid-template-columns:minmax(0,1fr)}}.header-actions-group{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.user-profile-badge{background:#fff;border:1px solid #dce7f0;border-radius:999px;align-items:center;gap:8px;padding:5px 10px 5px 8px;display:inline-flex;box-shadow:0 2px 8px #087f8c0d}.user-role-tag{color:#087f8c;text-transform:uppercase;letter-spacing:.8px;background:#087f8c1f;border-radius:999px;padding:2px 8px;font-size:10.5px;font-weight:750;display:inline-block}.user-name{color:#17324d;font-size:13px;font-weight:650}.logout-button{color:#c53030;cursor:pointer;background:#fff5f5;border:1px solid #fed7d7;border-radius:999px;align-items:center;gap:5px;padding:5px 11px;font-size:12px;font-weight:650;transition:all .15s;display:inline-flex}.logout-button:hover{color:#9b2c2c;background:#fed7d7;border-color:#feb2b2}:root{--copilot-bg:#f3f8fc;--copilot-card:#fff;--copilot-text:#16334a;--copilot-muted:#5e768d;--copilot-accent:#087f8c;--copilot-accent-hover:#066b76;--copilot-border:#dce7f0;--copilot-soft:#e5f7f4;--copilot-shadow:0 12px 35px #1c425812;--copilot-font:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif}.copilot-page,.copilot-page *{box-sizing:border-box}.copilot-page{min-height:100vh;color:var(--copilot-text);background:radial-gradient(ellipse at 12% 0%, #e0f7f3 0%, transparent 38%), radial-gradient(ellipse at 90% 8%, #e8f0ff 0%, transparent 32%), var(--copilot-bg);font-family:var(--copilot-font);padding:24px clamp(16px,4vw,52px) 36px}.copilot-page button,.copilot-page input,.copilot-page select,.copilot-page textarea{font:inherit}.copilot-page button{cursor:pointer}.copilot-page button:disabled{cursor:not-allowed;opacity:.6}.copilot-page h1,.copilot-page h2,.copilot-page h3,.copilot-page h4,.copilot-page p{margin-top:0}.copilot-page h1,.copilot-page h2,.copilot-page h3,.copilot-page h4{color:var(--copilot-text)}.copilot-page p{color:var(--copilot-muted);line-height:1.7}.copilot-header{justify-content:space-between;align-items:center;gap:14px;width:min(100%,1080px);margin:0 auto;display:flex}.copilot-back{color:var(--copilot-text);border:1px solid var(--copilot-border);background:#fff;border-radius:10px;padding:10px 16px;font-size:13px;font-weight:600;transition:all .2s}.copilot-back:hover{background:var(--copilot-soft);border-color:#a8ded6}.header-actions-group{align-items:center;gap:12px;display:flex}.copilot-status{color:var(--copilot-text);border:1px solid var(--copilot-border);background:#ffffffe0;border-radius:999px;align-items:center;gap:8px;padding:8px 14px;font-size:12px;font-weight:600;display:inline-flex;box-shadow:0 2px 8px #00000008}.copilot-status-dot{background:#0ca58a;border-radius:50%;flex:0 0 8px;width:8px;height:8px;box-shadow:0 0 0 4px #0ca58a29}.user-profile-badge{border:1px solid var(--copilot-border);background:#fff;border-radius:999px;align-items:center;gap:8px;padding:5px 10px;font-size:12px;display:inline-flex}.user-role-tag{text-transform:uppercase;color:#087f8c;background:#e2f4f1;border-radius:4px;padding:2px 7px;font-size:10px;font-weight:800}.user-role-tag.admin{color:#c93b2b;background:#fbeae8}.user-name{color:var(--copilot-text);font-weight:600}.logout-button{color:#8c9ba5;background:0 0;border:none;border-radius:4px;align-items:center;gap:4px;padding:4px 6px;font-size:11px;transition:color .15s;display:inline-flex}.logout-button:hover{color:#d9383a}.copilot-hero{text-align:center;width:min(100%,820px);margin:36px auto 26px}.copilot-eyebrow{color:var(--copilot-accent);letter-spacing:.14em;margin-bottom:12px;font-size:11px;font-weight:800;display:inline-block}.copilot-hero h1{letter-spacing:-1.4px;margin-bottom:12px;font-size:clamp(30px,3.8vw,44px);font-weight:800;line-height:1.15}.copilot-hero p{max-width:650px;margin:0 auto 16px;font-size:14px}.safety-warning-banner{color:#825e07;text-align:left;background:#fff9ea;border:1px solid #fae19c;border-radius:10px;align-items:center;gap:10px;max-width:760px;margin:0 auto;padding:10px 16px;font-size:12px;line-height:1.5;display:inline-flex}.rag-status-card{border:1px solid var(--copilot-border);background:#fff;border-radius:16px;width:min(100%,940px);margin:18px auto 20px;padding:18px 22px;box-shadow:0 4px 18px #12344d0a}.rag-status-header{border-bottom:1px solid #edf3f7;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding-bottom:14px;display:flex}.rag-status-patient{align-items:center;gap:12px;display:flex}.rag-status-icon{color:var(--copilot-accent)}.rag-status-patient h3{margin:0 0 2px;font-size:16px;font-weight:700}.rag-status-meta{color:var(--copilot-muted);font-size:12px}.rag-engine-badge{color:var(--copilot-accent);letter-spacing:.02em;background:#087f8c14;border:1px solid #087f8c33;border-radius:999px;align-items:center;gap:6px;padding:4px 10px;font-size:11px;font-weight:700;display:inline-flex}.rag-metrics-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin-top:14px;display:grid}.rag-metric-item{flex-direction:column;gap:3px;display:flex}.rag-metric-label{text-transform:uppercase;letter-spacing:.05em;color:#7b8e9f;font-size:11px;font-weight:600}.rag-metric-val{color:var(--copilot-text);font-size:20px;font-weight:800}.rag-metric-val.small{color:#274b62;margin-top:3px;font-size:13px;font-weight:600}.empty-history-banner{background:#fff6f6;border:1px solid #f9d3d3;border-radius:16px;align-items:flex-start;gap:18px;width:min(100%,940px);margin:0 auto 20px;padding:20px 24px;display:flex}.empty-history-icon{color:#c93b2b;flex:0 0 32px;margin-top:2px}.empty-history-content h4{color:#9f2415;margin:0 0 6px;font-size:16px}.empty-history-content p{color:#6d4b47;margin:0 0 14px;font-size:13px}.empty-history-actions{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.empty-action-primary{color:#fff;background:#c93b2b;border:none;border-radius:8px;align-items:center;gap:6px;padding:9px 15px;font-size:12px;font-weight:700;transition:background .15s;display:inline-flex}.empty-action-primary:hover{background:#b02a1b}.empty-action-secondary{color:#6d4b47;background:#fff;border:1px solid #e8bcbc;border-radius:8px;align-items:center;gap:6px;padding:8px 14px;font-size:12px;font-weight:600;transition:all .15s;display:inline-flex}.empty-action-secondary:hover{background:#faecec}.copilot-workspace{border:1px solid var(--copilot-border);width:min(100%,940px);box-shadow:var(--copilot-shadow);background:#fffffff5;border-radius:20px;margin:0 auto;overflow:hidden}.quick-questions-panel{border-bottom:1px solid var(--copilot-border);background:linear-gradient(#fbfdff 0%,#f6f9fc 100%);padding:16px 22px}.quick-questions-title{color:var(--copilot-accent);align-items:center;gap:7px;margin-bottom:12px;font-size:12px;font-weight:700;display:inline-flex}.quick-questions-grid{flex-wrap:wrap;gap:8px;display:flex}.quick-question-btn{color:#214358;text-align:left;background:#fff;border:1px solid #d5e2ec;border-radius:999px;padding:7px 13px;font-size:12px;font-weight:500;transition:all .2s}.quick-question-btn:hover:not(:disabled){background:var(--copilot-soft);color:#065b64;border-color:#7ecec2;transform:translateY(-1px)}.copilot-chat{background:#fff;min-height:320px;max-height:560px;padding:24px;overflow-y:auto}.copilot-empty{text-align:center;max-width:600px;margin:30px auto}.copilot-orb{color:#fff;background:linear-gradient(145deg,#087f8c,#24b5a6);border-radius:16px;place-items:center;width:56px;height:56px;margin:0 auto 16px;font-size:26px;display:grid;box-shadow:0 10px 24px #087f8c38}.copilot-empty h2{margin-bottom:8px;font-size:20px}.copilot-empty p{color:var(--copilot-muted);font-size:13px}.copilot-message{border:1px solid var(--copilot-border);border-radius:14px;max-width:92%;margin:0 0 20px;padding:16px 20px}.copilot-message.user{background:#f0f7ff;border-color:#d1e5fa;margin-left:auto}.copilot-message.assistant{background:#fcfefe;border-color:#dcece8;margin-right:auto;box-shadow:0 2px 12px #12344d08}.copilot-message-header{justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px;display:flex}.copilot-message-label{color:var(--copilot-accent);font-size:12px;font-weight:800}.copilot-message.user .copilot-message-label{color:#1e6bb8}.copilot-message-time{color:#8fa0b0;align-items:center;gap:4px;font-size:11px;display:inline-flex}.copilot-message-body{color:var(--copilot-text);white-space:pre-wrap;word-break:break-word;font-size:14px;line-height:1.8}.copilot-strong{color:#065b64;font-weight:700}.citation-badge{color:#087f8c;letter-spacing:.03em;background:#e2f4f1;border:1px solid #94d8cd;border-radius:5px;margin:0 3px;padding:1px 7px;font-size:12px;font-weight:800;display:inline-block}.copilot-message-footer{border-top:1px dashed #dce7f0;margin-top:14px;padding-top:12px}.rag-sources-container{margin-bottom:10px}.rag-sources-toggle-btn{color:#087f8c;background:#f4faf9;border:1px solid #cae8e2;border-radius:7px;align-items:center;gap:7px;padding:6px 12px;font-size:12px;font-weight:700;transition:all .15s;display:inline-flex}.rag-sources-toggle-btn:hover{background:#e5f6f3;border-color:#087f8c}.rag-sources-list{flex-direction:column;gap:8px;margin-top:10px;display:flex}.rag-source-card{border:1px solid #dce8e5;border-left:4px solid var(--copilot-accent);background:#fff;border-radius:8px;padding:12px 14px;box-shadow:0 2px 6px #00000005}.rag-source-card-header{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:6px;display:flex}.rag-source-id-tag{color:#fff;background:#087f8c;border-radius:4px;padding:2px 7px;font-size:11px;font-weight:800}.rag-source-type-tag{color:#2b5570;background:#ebf3f8;border-radius:4px;padding:2px 7px;font-size:11px;font-weight:700}.rag-source-type-tag.clinical-measurement{color:#066b76;background:#e5f7f4}.rag-source-type-tag.medical-report{color:#632b70;background:#f3ebf8}.rag-source-visit-tag,.rag-source-date-tag{color:#697e90;font-size:11px}.rag-source-summary{color:#2c4254;margin:0 0 8px;font-size:12px;line-height:1.5}.rag-source-params{border-top:1px solid #f0f5f8;flex-wrap:wrap;gap:6px;padding-top:6px;display:flex}.rag-param-chip{background:#f4f8fb;border:1px solid #dce8ef;border-radius:4px;align-items:center;gap:4px;padding:2px 8px;font-size:11px;display:inline-flex}.rag-param-chip .param-k{color:#556c80;text-transform:capitalize}.rag-param-chip .param-v{color:#123046;font-weight:700}.copilot-message-actions{justify-content:flex-end;align-items:center;gap:10px;display:flex}.copilot-copy-btn,.copilot-translate-action-btn{border-radius:6px;align-items:center;gap:5px;padding:5px 11px;font-size:12px;font-weight:600;transition:all .15s;display:inline-flex}.copilot-copy-btn{color:#556c80;background:#fff;border:1px solid #d3e0ea}.copilot-copy-btn:hover{color:#16334a;background:#f2f7fb}.copilot-translate-action-btn{color:#087f8c;background:#087f8c14;border:1px solid #087f8c40}.copilot-translate-action-btn:hover{color:#044f57;background:#087f8c2e;border-color:#087f8c}.copilot-loading-card{color:#375770;background:#f7fafc;border:1px solid #e1ecf3;border-radius:10px;align-items:center;gap:12px;padding:14px 18px;font-size:13px;font-weight:500;display:flex}.copilot-spinner{border:2px solid #087f8c40;border-top-color:#087f8c;border-radius:50%;width:16px;height:16px;animation:.7s linear infinite copilot-spin}@keyframes copilot-spin{to{transform:rotate(360deg)}}.copilot-error{color:#a52d36;background:#fff3f3;border:1px solid #fad2d2;border-radius:10px;align-items:center;gap:10px;margin:14px 22px 0;padding:12px 16px;font-size:13px;display:flex}.copilot-composer{border-top:1px solid var(--copilot-border);background:#fff;padding:20px 22px}.copilot-composer-label-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:9px;display:flex}.copilot-composer-label-row>label,.copilot-composer>label{color:var(--copilot-text);margin-bottom:0;font-size:13px;font-weight:700;display:block}.question-tts-btn{color:#15803d;background:#f0fdf4;border-color:#bbf7d0;padding:4px 10px;font-size:11.5px}.question-tts-btn:hover:not(:disabled){color:#166534;background:#dcfce7}.question-tts-controls{gap:4px}.copilot-composer textarea{resize:vertical;width:100%;min-height:90px;color:var(--copilot-text);border:1px solid var(--copilot-border);background:#fbfdff;border-radius:12px;outline:none;padding:13px 15px;font-size:14px;line-height:1.6;transition:all .2s;display:block}.copilot-composer textarea:focus{border-color:var(--copilot-accent);box-shadow:0 0 0 3px #087f8c1f}.copilot-composer-footer{justify-content:space-between;align-items:center;gap:14px;margin-top:12px;display:flex}.copilot-tools{align-items:center;gap:12px;display:flex}.copilot-voice-button{color:var(--copilot-accent);background:#eaf8f5;border:1px solid #c9eae3;border-radius:8px;padding:8px 13px;font-size:12px;font-weight:700;transition:all .15s}.copilot-voice-button:hover:not(:disabled){background:#d8f2ec}.copilot-voice-button.listening{color:#c93b2b;background:#ffeded;border-color:#f7baba;animation:1.2s infinite pulse-voice}@keyframes pulse-voice{0%,to{opacity:1}50%{opacity:.6}}
