*{box-sizing:border-box}body{color:#111827;background:#f0f2f5;margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif}#root{max-width:100%;min-height:100vh;margin:0}h1,h2,p{margin:0}.dashboard{background:#f0f2f5;flex-direction:column;width:100%;min-height:100vh;display:flex}.dash-header{background:#fff;border-bottom:1px solid #e4e7ec;box-shadow:0 1px 3px #0f172a0f}.dash-header-inner{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px;max-width:1320px;margin:0 auto;padding:18px 32px;display:flex}.dash-brand{color:inherit;border-radius:10px;align-items:center;gap:20px;margin:-4px;padding:4px;text-decoration:none;display:flex}.dash-brand:focus-visible{outline-offset:2px;outline:2px solid #2563eb}.dash-logo{object-fit:contain;width:auto;max-width:220px;height:56px}.dash-titles{min-width:0}.dash-title{color:#1a2b5c;letter-spacing:-.02em;margin:0;font-size:1.75rem;font-weight:700}.dash-subtitle{color:#64748b;max-width:520px;margin:6px 0 0;font-size:.95rem;line-height:1.45}.dash-nav{flex-wrap:wrap;align-items:center;gap:4px;display:flex}@media (width>=960px){.dash-nav{border-left:1px solid #e5e7eb;margin-left:6px;padding-left:22px}}.dash-nav-link{color:#374151;border-radius:8px;padding:9px 16px;font-size:.875rem;font-weight:500;text-decoration:none;transition:background .15s,color .15s}.dash-nav-link:hover{color:#1a2b5c;background:#f3f4f6}.dash-nav-link:focus-visible{outline-offset:2px;outline:2px solid #2563eb}.dash-nav-link.active{color:#1d4ed8;background:#eff6ff;font-weight:600;box-shadow:inset 0 0 0 1px #bfdbfe}.dash-body{box-sizing:border-box;flex:1;width:100%;max-width:1320px;margin:0 auto;padding:28px 32px 56px}.landing-hero{max-width:720px;margin-bottom:28px}.landing-eyebrow{letter-spacing:.12em;text-transform:uppercase;color:#64748b;margin:0 0 6px;font-size:.72rem;font-weight:700}.landing-headline{color:#0f172a;letter-spacing:-.03em;margin:0 0 8px;font-size:1.65rem;font-weight:700;line-height:1.2}.landing-sub{color:#64748b;margin:0;font-size:1rem;line-height:1.5}.dash-cards{grid-template-columns:repeat(3,1fr);align-items:stretch;gap:24px;display:grid}@media (width<=1024px){.dash-cards{grid-template-columns:1fr;max-width:560px;margin:0 auto}}.dash-card{text-align:left;background:#fff;border:1px solid #e8ecf1;border-radius:14px;flex-direction:column;padding:26px 24px 24px;transition:border-color .2s,box-shadow .2s,transform .2s;display:flex;box-shadow:0 4px 18px #0f172a0e}@media (prefers-reduced-motion:reduce){.dash-card{transition:none}}.dash-card:hover{border-color:#dbeafe;transform:translateY(-3px);box-shadow:0 12px 36px #2563eb1a}@media (prefers-reduced-motion:reduce){.dash-card:hover{transform:none}}.dash-card-icon{color:#2563eb;background:#e8f0fe;border-radius:10px;justify-content:center;align-items:center;width:48px;height:48px;margin-bottom:16px;display:flex}.dash-card-title{color:#1a2b5c;margin:0 0 10px;font-size:1.15rem;font-weight:700}.dash-card-lead{color:#334155;margin:0 0 6px;font-size:.9rem;font-weight:600;line-height:1.35}.dash-card-desc{color:#64748b;flex:1;margin:0 0 16px;font-size:.875rem;line-height:1.5}.dash-card-list{color:#64748b;margin:0 0 20px;padding-left:18px;font-size:.8125rem;line-height:1.55}.dash-card-list li{margin-bottom:6px}.dash-card-cta{color:#1d4ed8;cursor:pointer;background:#eff6ff;border:1px solid #bfdbfe;border-radius:999px;align-self:flex-start;align-items:center;gap:6px;margin-top:auto;padding:10px 18px;font-size:.875rem;font-weight:600;text-decoration:none;transition:background .15s,border-color .15s,color .15s,box-shadow .15s;display:inline-flex}.dash-card-cta:hover{color:#fff;background:#2563eb;border-color:#2563eb;text-decoration:none;box-shadow:0 4px 14px #2563eb59}.dash-card-cta:focus-visible{outline-offset:3px;outline:2px solid #2563eb}.dash-footer{justify-content:center;margin-top:40px;display:flex}.dash-footer-badge{color:#0369a1;background:#e0f2fe;border:1px solid #bae6fd;border-radius:999px;align-items:center;gap:8px;padding:10px 18px;font-size:.8125rem;font-weight:500;display:inline-flex}.dash-page{background:#fff;border:1px solid #e8ecf1;border-radius:16px;max-width:800px;margin:0 auto;padding:28px 32px 32px;box-shadow:0 4px 24px #0f172a0f}.dash-page-chat{max-width:900px}.dash-page-title{color:#1a2b5c;margin:0 0 8px;font-size:1.5rem;font-weight:700}.dash-page-lead{color:#64748b;margin:0 0 24px;font-size:.95rem;line-height:1.5}.upload-form-dash{flex-direction:column;gap:16px;display:flex}.dropzone-dash{cursor:pointer;background:#fff;border:2px dashed #cbd5e1;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:8px;min-height:220px;padding:32px;transition:border-color .15s,background .15s;display:flex}.dropzone-dash:hover{background:#f8fafc;border-color:#94a3b8}.dropzone-dash:focus-within{background:#f8fafc;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1f}.dropzone-drag-active{background:#eff6ff;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb26}.hidden-file-input{display:none}.upload-icon-dash{color:#fff;background:linear-gradient(145deg,#3b82f6,#2563eb);border-radius:12px;place-items:center;width:56px;height:56px;margin-bottom:4px;font-size:24px;display:grid}.dropzone-dash-title{color:#1e293b;font-size:1rem;font-weight:600}.dropzone-dash-hint{color:#94a3b8;font-size:.8125rem}.upload-actions-dash{flex-wrap:wrap;align-items:stretch;gap:12px;display:flex}.btn-secondary{color:#374151;cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:8px;padding:10px 20px;font-size:.9rem;font-weight:500;text-decoration:none}.btn-secondary:hover{background:#f9fafb}.btn-primary{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:8px;padding:10px 22px;font-size:.9rem;font-weight:600;text-decoration:none}.btn-primary:hover:not(:disabled){background:#1d4ed8}.btn-primary:disabled{opacity:.6;cursor:not-allowed}.file-meta-dash{color:#64748b;flex:1;min-width:160px;font-size:.8125rem}.file-list{flex-wrap:wrap;gap:8px;display:flex}.file-chip{color:#475569;background:#f8fafc;border:1px solid #e2e8f0;border-radius:999px;align-items:center;gap:6px;padding:6px 10px 6px 12px;font-size:.75rem;display:inline-flex}.file-chip-remove{cursor:pointer;color:#94a3b8;background:0 0;border:none;align-items:center;margin:0;padding:0;font-size:.7rem;line-height:1;transition:color .12s;display:inline-flex}.file-chip-remove:hover{color:#ef4444}.insights-panel{color:#475569;background:#fff;border:1px solid #e8ecf1;border-radius:12px;padding:24px;font-size:.9rem;line-height:1.55;box-shadow:0 2px 8px #0f172a0a}.chat-window-dash{background:#fff;border:1px solid #e8ecf1;border-radius:12px;min-height:420px;max-height:60vh;margin-bottom:16px;padding:16px;overflow-y:auto}.message-row{margin-bottom:12px;display:flex}.message-row.user{justify-content:flex-end}.message{white-space:normal;border-radius:10px;max-width:78%;padding:10px 14px}.message>strong{text-transform:uppercase;letter-spacing:.04em;opacity:.85;margin-bottom:6px;font-size:.75rem;font-weight:700;display:block}.message .md-body strong{font-size:inherit;text-transform:none;letter-spacing:normal;opacity:1;font-weight:700;display:inline}.message p{margin:0;font-size:.9rem;line-height:1.45}.message .md-body .md-para{margin:.4rem 0}.message .md-body .md-para:first-child{margin-top:0}.message.user>p{white-space:pre-wrap}.message.assistant{color:#1e3a5f;background:#eff6ff;border:1px solid #dbeafe}.message.user{color:#14532d;background:#f0fdf4;border:1px solid #dcfce7}.chat-form-dash{background:#fff;border:1px solid #e2e8f0;border-radius:10px;gap:10px;padding:8px 10px;display:flex}.chat-form-dash input[type=text]{border:none;outline:none;flex:1;padding:8px 4px;font-size:.9rem}.chat-form-dash .btn-primary{flex-shrink:0}.error-dash{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;margin-top:16px;padding:12px 16px;font-size:.875rem}.field-row{align-items:center;gap:12px;display:flex}.field-label{color:#374151;white-space:nowrap;min-width:80px;font-size:.875rem;font-weight:600}.field-input{color:#111827;border:1px solid #d1d5db;border-radius:8px;outline:none;flex:1;max-width:280px;padding:9px 12px;font-size:.9rem;transition:border-color .12s}.field-input:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.summary-panel{background:#fff;border:1px solid #e8ecf1;border-radius:12px;margin-top:28px;padding-bottom:20px;overflow:visible;box-shadow:0 2px 8px #0f172a0d}.summary-panel-title{color:#1a2b5c;background:#f8fafc;border-bottom:1px solid #e8ecf1;border-radius:12px 12px 0 0;margin:0;padding:14px 20px;font-size:.95rem;font-weight:700}.summary-body{color:#1e293b;white-space:pre-wrap;margin:0;padding:20px;font-family:inherit;font-size:.875rem;line-height:1.65}.md-body{color:#1e293b;padding:20px;font-size:.875rem;line-height:1.7}.md-heading{color:#1a2b5c;text-transform:uppercase;letter-spacing:.04em;margin:1.1rem 0 .35rem;font-size:.875rem;font-weight:700}.md-heading:first-child{margin-top:0}.md-para{margin:.3rem 0}.md-list{margin:.3rem 0 .6rem 1.25rem;padding:0;list-style:outside}.md-ol{list-style:decimal}.md-nested{margin:4px 0 2px;list-style:outside}.md-list li{margin-bottom:.25rem}.md-list .md-list{margin:.25rem 0 .35rem .75rem;list-style:circle}.md-li p{margin:0}.md-li>p:not(:last-child){margin-bottom:.35rem}.md-quote{color:#334155;background:#f8fafc;border-left:3px solid #bfdbfe;margin:.5rem 0;padding:.5rem .75rem}.md-table{border-collapse:collapse;width:100%;margin:.5rem 0;font-size:.8125rem}.md-th,.md-td{text-align:left;vertical-align:top;border:1px solid #e2e8f0;padding:6px 10px}.md-th{background:#f1f5f9;font-weight:600}.md-code-inline{background:#f1f5f9;border-radius:4px;padding:.1em .35em;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.84em}.md-pre{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;margin:.5rem 0;padding:10px 12px;font-size:.8125rem;overflow-x:auto}.md-pre .md-code-inline{font-size:inherit;background:0 0;padding:0}.md-link{color:#2563eb;text-underline-offset:2px;text-decoration:underline}.md-link:hover{color:#1d4ed8}.message .md-body{padding:4px 0 0;font-size:.9rem;line-height:1.55}.message .md-heading{color:inherit;text-transform:none;letter-spacing:normal;margin:.65rem 0 .35rem;font-size:.95rem;font-weight:700}.message .md-body>:first-child,.message .md-heading:first-child{margin-top:0}.message .md-list{margin:.35rem 0 .5rem 1.15rem}.message .md-list .md-list{margin-bottom:.3rem}.message .md-li{margin-bottom:.35rem}.md-em{font-style:italic}.processing-card{background:#fff;border:1px solid #e8ecf1;border-radius:14px;margin-top:1.5rem;animation:.28s slideUp;overflow:hidden;box-shadow:0 4px 20px #0f172a17}@keyframes slideUp{0%{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}.processing-inner{align-items:center;gap:16px;padding:20px 22px;display:flex}.processing-text{flex:1;min-width:0}.processing-step-badge{background:#eff6ff;border:1px solid #bfdbfe;border-radius:20px;flex-shrink:0;align-items:baseline;gap:2px;padding:4px 12px;display:flex}.processing-step-num{color:#1d4ed8;font-size:1rem;font-weight:700}.processing-step-sep{color:#93c5fd;margin:0 1px;font-size:.8rem}.processing-step-total{color:#60a5fa;font-size:.8rem;font-weight:500}.processing-spinner{border:3px solid #e2e8f0;border-top-color:#2563eb;border-radius:50%;flex-shrink:0;width:28px;height:28px;animation:.7s linear infinite spin;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}.processing-label{color:#1e293b;margin:0;font-size:.9rem;font-weight:600}.processing-sub{color:#64748b;margin:3px 0 0;font-size:.8rem}.processing-bar{background:#e2e8f0;height:4px}.processing-bar-fill{background:#2563eb;border-radius:0 2px 2px 0;height:100%;transition:width .5s}.patient-details-card{background:#fff;border:1px solid #e8ecf1;border-radius:12px;margin-top:1.5rem;overflow:hidden;box-shadow:0 2px 8px #0f172a0d}.patient-details-header{background:#f8fafc;border-bottom:1px solid #e8ecf1;justify-content:space-between;align-items:center;padding:14px 20px;display:flex}.patient-details-grid,.patient-saved-grid{grid-template-columns:90px 1fr;align-items:baseline;gap:10px 16px;padding:18px 20px;display:grid}.patient-saved-label{color:#64748b;text-transform:uppercase;letter-spacing:.04em;font-size:.8rem;font-weight:600}.patient-saved-value{color:#1e293b;font-size:.9rem;font-weight:500}.patient-id-badge{color:#1d4ed8;background:#eff6ff;border:1px solid #bfdbfe;border-radius:20px;justify-self:start;padding:2px 10px;font-size:.875rem;font-weight:700;display:inline-block}.patient-edit-form{padding:16px 20px}.btn-edit{color:#475569;cursor:pointer;background:0 0;border:1px solid #cbd5e1;border-radius:6px;padding:5px 12px;font-size:.8rem;font-weight:500;transition:background .12s,color .12s}.btn-edit:hover{color:#1e293b;background:#f1f5f9}.patient-search-form{gap:10px;margin-bottom:1.25rem;display:flex}.patient-search-input{border:1px solid #d1d5db;border-radius:8px;outline:none;flex:1;padding:10px 14px;font-size:.9rem;transition:border-color .12s}.patient-search-input:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.no-results-msg{color:#64748b;padding:1rem 0;font-size:.875rem}.patient-results-list{flex-direction:column;gap:6px;margin-bottom:1.25rem;display:flex}.patient-result-row{cursor:pointer;text-align:left;background:#fff;border:1px solid #e8ecf1;border-radius:10px;align-items:center;gap:12px;width:100%;padding:12px 16px;transition:border-color .12s,box-shadow .12s;display:flex}.patient-result-row:hover{border-color:#2563eb;box-shadow:0 2px 8px #2563eb1a}.patient-result-id{color:#1d4ed8;background:#eff6ff;border:1px solid #bfdbfe;border-radius:20px;flex-shrink:0;padding:2px 8px;font-size:.78rem;font-weight:700}.patient-result-name{color:#1e293b;flex:1;font-size:.9rem;font-weight:600}.patient-result-meta{color:#64748b;flex-shrink:0;font-size:.8rem}.patient-result-arrow{color:#94a3b8;flex-shrink:0;font-size:.9rem}.patient-selected-card{background:#fff;border:1px solid #e8ecf1;border-radius:12px;margin-bottom:1rem;overflow:hidden}.summary-collapsible{border-top:1px solid #e8ecf1}.summary-collapsible-toggle{color:#2563eb;cursor:pointer;-webkit-user-select:none;user-select:none;background:#f8fafc;padding:10px 20px;font-size:.82rem;font-weight:600;list-style:none}.summary-collapsible-toggle::-webkit-details-marker{display:none}.summary-collapsible-body{border-top:1px solid #e8ecf1;max-height:260px;overflow-y:auto}.chat-panel{background:#fff;border:1px solid #e8ecf1;border-radius:12px;flex-direction:column;gap:0;display:flex;overflow:hidden}.chat-panel-toolbar{background:#f8fafc;border-bottom:1px solid #e8ecf1;justify-content:space-between;align-items:center;padding:10px 16px;display:flex}.chat-panel-title{color:#1a2b5c;font-size:.85rem;font-weight:700}.btn-clear-chat{color:#64748b;cursor:pointer;background:0 0;border:1px solid #e2e8f0;border-radius:6px;justify-content:center;align-items:center;padding:5px 8px;transition:background .12s,color .12s,border-color .12s;display:inline-flex}.btn-clear-chat:hover{color:#b91c1c;background:#fee2e2;border-color:#fecaca}.thinking-bubble{padding:10px 14px}.thinking-dots{align-items:center;gap:5px;margin-top:6px;display:inline-flex}.thinking-dots span{background:#93c5fd;border-radius:50%;width:7px;height:7px;animation:1.2s ease-in-out infinite thinking-bounce;display:inline-block}.thinking-dots span:first-child{animation-delay:0s}.thinking-dots span:nth-child(2){animation-delay:.2s}.thinking-dots span:nth-child(3){animation-delay:.4s}@keyframes thinking-bounce{0%,80%,to{opacity:.4;transform:translateY(0)}40%{opacity:1;transform:translateY(-6px)}}.chat-disclaimer{color:#94a3b8;border-top:1px solid #f1f5f9;margin:8px 0 0;padding:6px 10px;font-size:.72rem;line-height:1.4}.dash-nav-home{align-items:center;gap:5px;display:inline-flex}
