:root{font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.5;color:#1a1a2e;background:#f4f6f9}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%;text-size-adjust:100%}body{margin:0;overflow-x:hidden}#root{min-height:100vh}.app,.app-shell{max-width:1400px;margin:0 auto;padding:1.5rem}.app-shell{min-height:100vh;display:flex;flex-direction:column}.app-header{margin-bottom:1.25rem}.app-header-row{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem}.app-header-controls{display:flex;align-items:center;gap:.75rem;flex-shrink:0}.install-pwa-wrap{position:relative}.install-pwa-btn{white-space:nowrap}.install-pwa-ios-hint{position:absolute;top:calc(100% + .5rem);right:0;z-index:20;width:min(18rem,calc(100vw - 2rem));padding:.85rem 1rem;border-radius:10px;background:#fff;border:1px solid #cbd5e1;box-shadow:0 8px 24px #0f172a1f}.install-pwa-ios-title{margin:0 0 .5rem;font-size:.9rem;font-weight:600;color:#0f172a}.install-pwa-ios-steps{margin:0 0 .75rem;padding-left:1.2rem;font-size:.85rem;line-height:1.45;color:#334155}.install-pwa-ios-note{margin:0 0 .65rem;font-size:.82rem;line-height:1.4;color:#b45309;background:#fffbeb;border-radius:6px;padding:.45rem .55rem}.app-header-title-block{min-width:0}.app-header-title-row{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}.app-header-title-row h1{margin:0}.app-version-badge{display:inline-flex;align-items:center;padding:.2rem .55rem;border-radius:999px;font-size:.75rem;font-weight:600;letter-spacing:.02em;white-space:nowrap}.app-version-badge--v1{color:#1e40af;background:#dbeafe;border:1px solid #93c5fd}.app-version-badge--v2{color:#166534;background:#dcfce7;border:1px solid #86efac}.app-version-subtitle{margin:.35rem 0 0;font-size:.85rem;color:#64748b;max-width:42rem}.app-version-switch{font-size:.85rem;color:#2563eb;text-decoration:none;white-space:nowrap}.app-version-switch:hover{text-decoration:underline}html.app-variant-v2{font-size:22px;line-height:1.55}html.app-variant-v2 .consult-split{grid-template-columns:minmax(340px,420px) 1fr}html.app-variant-v2 .consult-left{min-width:0;overflow-x:hidden}html.app-variant-v2 .clinical-qa{min-width:0;flex-shrink:0}html.app-variant-v2 .clinical-qa-form{flex-direction:column;align-items:stretch}html.app-variant-v2 .clinical-qa-form .btn{flex-shrink:0;white-space:nowrap;width:100%}html.app-variant-v2 .clinical-qa-input{min-width:0;width:100%}.app-shell--v2 .app-body{grid-template-columns:1fr}html.app-variant-collection{font-size:22px;line-height:1.55}.app-shell--collection .app-body{grid-template-columns:1fr}.app-version-badge--collection{background:#0d9488}.collection-page{max-width:480px;margin:0 auto;display:flex;flex-direction:column;gap:1rem}.collection-intro{margin:0;color:#64748b;font-size:.9rem}.collection-form,.collection-recorder-wrap{display:flex;flex-direction:column;gap:.85rem}.collection-datetime,.collection-meta{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center}.v2-recording-card .collection-name-input{width:auto;min-width:7.5rem;flex:1}.v2-recording-card .collection-date-input{width:8.25rem;min-width:7.5rem;max-width:100%;font-variant-numeric:tabular-nums;letter-spacing:.02em}.collection-date-picker{position:relative;display:inline-flex;align-items:stretch;flex:0 0 auto;width:10.75rem;min-width:10.75rem;max-width:100%;box-sizing:border-box}.collection-date-display{box-sizing:border-box;width:10.75rem!important;min-width:10.75rem;max-width:100%;padding:.45rem .65rem;border:1px solid #cbd5e1;border-radius:6px;background:#fff;text-align:left;font:inherit;font-size:.875rem;font-variant-numeric:tabular-nums;letter-spacing:.02em;white-space:nowrap;overflow:visible;pointer-events:none;display:flex;align-items:center;line-height:1.25}.collection-date-field{flex:0 0 auto}.collection-date-native{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;opacity:0;border:0;padding:0;margin:0;cursor:pointer;font-size:1rem}.collection-date-native:disabled{cursor:not-allowed}.v2-recording-card .collection-time-input{width:auto;min-width:6.5rem}.v2-recording-card .collection-datetime .collection-date-input{width:auto;min-width:9.5rem}.v2-recording-card .collection-datetime .collection-time-input{width:auto;min-width:6.5rem}.collection-history{margin-top:1rem;padding-top:.85rem;border-top:1px solid #e2e8f0}.collection-history-head{display:flex;align-items:baseline;justify-content:space-between;gap:.75rem;margin-bottom:.5rem}.collection-history-title{margin:0;font-size:.8rem;font-weight:600;color:#64748b}.collection-history-count{font-size:.75rem;color:#94a3b8;white-space:nowrap}.collection-history-search{display:block;margin:0 0 .55rem}.collection-history-search-input{width:100%;box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.collection-history-empty{margin:0;padding:.45rem .55rem;font-size:.8rem;color:#94a3b8}.collection-history-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.3rem}.collection-history-item{display:flex;flex-direction:column;gap:.35rem;padding:.4rem .5rem;border-radius:8px;background:#f8fafc;font-size:.78rem;line-height:1.3}.collection-history-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:.35rem .55rem;align-items:center}.collection-history-name{font-weight:600;color:#0f172a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.collection-history-when{color:#475569;font-variant-numeric:tabular-nums;white-space:nowrap}.collection-history-duration{color:#166534;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}.collection-history-actions{display:flex;flex-wrap:nowrap;gap:.3rem;justify-self:end}.collection-history-actions .btn{padding:.2rem .45rem;font-size:.72rem;line-height:1.2}.collection-history-delete{color:#b91c1c}.collection-history-audio-wrap{position:relative;width:100%;min-height:2rem;overflow:hidden}.collection-history-audio-loading{margin:0;padding:.25rem .15rem;font-size:.72rem;color:#94a3b8}.collection-history-audio{width:100%;max-width:100%;height:2rem}.collection-history-audio.is-hidden{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;pointer-events:none}.collection-history-pager{display:flex;align-items:center;justify-content:center;gap:.65rem;margin-top:.65rem}.collection-history-page-label{font-size:.75rem;color:#64748b;font-variant-numeric:tabular-nums}.collection-delete-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1200;display:flex;align-items:center;justify-content:center;padding:1rem;background:#0f172a73}.collection-delete-dialog{width:min(100%,22rem);padding:1.1rem 1.15rem 1rem;border-radius:12px;background:#fff;box-shadow:0 18px 40px #0f172a38}.collection-delete-title{margin:0 0 .55rem;font-size:1rem;font-weight:700;color:#0f172a}.collection-delete-message{margin:0 0 .45rem;font-size:.88rem;line-height:1.45;color:#334155}.collection-delete-warning{margin:0 0 .7rem;padding:.4rem .55rem;border-radius:8px;background:#fef2f2;color:#b91c1c;font-size:.82rem;font-weight:700}.collection-delete-target{display:flex;flex-direction:column;gap:.15rem;margin:0 0 1rem;font-size:.8rem;color:#64748b}.collection-delete-target strong{color:#0f172a;font-size:.9rem}.collection-delete-actions{display:flex;justify-content:flex-end;gap:.5rem}.collection-delete-confirm{background:#b91c1c;color:#fff;border:1px solid #991b1b}.collection-delete-confirm:hover:not(:disabled){background:#991b1b}.collection-delete-confirm:disabled{opacity:.65}@media (max-width: 640px){.collection-meta{flex-direction:column;align-items:stretch;gap:.55rem}.collection-meta .field-compact--inline{width:100%}.v2-recording-card .collection-name-input,.collection-date-picker,.collection-date-display,.v2-recording-card .collection-time-input{width:100%!important;min-width:0;flex:1}.collection-history-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"name duration" "when actions"}.collection-history-name{grid-area:name}.collection-history-when{grid-area:when;font-size:.72rem}.collection-history-duration{grid-area:duration}.collection-history-actions{grid-area:actions;justify-self:end}.collection-history-actions .btn{flex:0 0 auto}}@media (min-width: 641px) and (max-width: 1024px){.collection-date-picker,.collection-date-display{width:11rem!important;min-width:11rem}}.collection-flash-hint{margin:-.25rem 0 0;padding:.55rem .85rem;border-radius:8px;background:#eff6ff;color:#1e40af;font-size:.85rem;line-height:1.4;text-align:center;animation:collection-flash-hint 2.2s ease forwards;pointer-events:none}@keyframes collection-flash-hint{0%{opacity:0;transform:translateY(6px)}12%,72%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-4px)}}.collection-hint,.collection-status{margin:0;font-size:.85rem;color:#64748b}.collection-success{display:flex;flex-direction:column;gap:.5rem}.collection-success p{margin:0;color:#059669;font-weight:600}.collection-mic-hint{display:block;font-size:.8rem;color:#0d9488;margin-bottom:.25rem}.collection-lookup-hint{display:block;margin-top:.25rem;font-size:.8rem;color:#64748b}.collection-form .field-input[type=text]:first-child{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.85rem;letter-spacing:.02em}.collection-recorder .btn-record-main{width:100%;min-height:3.5rem;font-size:1.1rem}.v2-recording-page{max-width:520px;margin:0 auto}.v2-recording-hint{margin:0 0 1rem;font-size:.9rem;color:#64748b;line-height:1.45}.v2-recording-card{display:flex;flex-direction:column;gap:1rem}.v2-recording-status{margin:0;font-size:.9rem;color:#1e40af}.v2-recording-success{margin:0}.v2-recording-success-block{display:flex;flex-direction:column;gap:.75rem}.collection-datetime-value{display:block;padding:.45rem 0;font-size:.95rem;color:#334155}.collection-recording-detail{display:flex;flex-direction:column;gap:1rem}.collection-recording-detail-card .card-head-row{align-items:center}.collection-recording-detail-actions{display:flex;flex-wrap:wrap;gap:.5rem}.collection-audio-player{display:flex;flex-direction:column;gap:.5rem}.collection-audio{width:100%}.collection-recording-panels{min-height:280px}.collection-recording-panels .panel-empty{margin:0;padding:1rem 0}.v2-recording-reset{align-self:flex-start}.app-main--full{min-width:0}.version-banner{margin-bottom:1rem;padding:.75rem 1rem;border-radius:10px;font-size:.9rem;line-height:1.45}.version-banner--v2{background:#eff6ff;border:1px solid #bfdbfe;color:#1e3a8a}.version-banner--success{background:#f0fdf4;border:1px solid #bbf7d0;color:#14532d}.version-banner p{margin:0}.version-banner-link{display:inline-block;margin-top:.45rem;color:#2563eb;font-weight:600;text-decoration:none}.version-banner-link:hover{text-decoration:underline}.app-locale{display:flex;align-items:center;gap:.5rem}.app-locale-label{font-size:.85rem;color:#64748b}.app-locale-select{border:1px solid #e2e8f0;border-radius:10px;padding:.35rem .55rem;background:#fff}.app-subtitle{margin:0;color:#555}.app-body{display:grid;grid-template-columns:220px 1fr;grid-template-rows:minmax(0,1fr);gap:1.25rem;align-items:stretch;flex:1;min-height:0;overflow:hidden}@media (max-width: 800px){.app-shell{padding:.75rem}.app-header-row{flex-direction:column;align-items:stretch}.app-header-controls{width:100%;justify-content:flex-end}.app-body{grid-template-columns:1fr;overflow:visible;gap:.75rem}.app-main{overflow:visible;height:auto;min-height:0}.app-nav{flex-direction:row;flex-wrap:wrap}.app-nav-item{flex:1 1 calc(50% - .25rem);min-width:8.5rem;padding:.6rem .75rem}.app-nav-label{font-size:.88rem}}.app-nav{display:flex;flex-direction:column;gap:.5rem}.app-nav-item{display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:.75rem .9rem;border:1px solid #e2e8f0;border-radius:10px;background:#fff;cursor:pointer}.app-nav-item.active{border-color:#2563eb;background:#eff6ff}.app-nav-label{font-weight:700;font-size:.95rem}.app-nav-desc{font-size:.75rem;color:#64748b;margin-top:.15rem}.app-main{min-width:0;display:flex;flex-direction:column;min-height:0;height:100%;overflow:hidden}.page-header{margin-bottom:1rem}.page-header h2{margin:0 0 .35rem}.page-grid{display:grid;grid-template-columns:1fr 280px;gap:1rem;align-items:start}@media (max-width: 900px){.page-grid{grid-template-columns:1fr}}.page-aside{display:flex;flex-direction:column;gap:.75rem}.card-head-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.75rem}.card-head-row h3{margin:0}.workflow-overview .workflow-flow{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem .5rem;font-size:.85rem}.flow-arrow{color:#94a3b8}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.75rem;margin-bottom:1rem}.stat-card{display:flex;flex-direction:column;align-items:flex-start;padding:1rem;border:1px solid #e2e8f0;border-radius:10px;background:#fff;cursor:pointer;text-align:left}.stat-card--primary{border-color:#93c5fd;background:#f0f9ff}.stat-card--warn{border-color:#fcd34d;background:#fffbeb}.stat-value{font-size:1.75rem;font-weight:800;line-height:1.1}.stat-label{font-size:.85rem;color:#64748b;margin-top:.25rem}.session-table{width:100%;border-collapse:collapse;font-size:.875rem}.session-table th,.session-table td{padding:.55rem .5rem;border-bottom:1px solid #e2e8f0;text-align:left}.session-table th{color:#64748b;font-weight:600}.session-identity-card .session-identity-title{margin:0 0 .35rem;font-size:1.15rem}.session-id-grid{display:grid;gap:.35rem 1rem;margin:.35rem 0 .5rem;grid-template-columns:repeat(auto-fit,minmax(12rem,1fr))}.session-id-item{margin:0}.session-id-item dt{margin:0;font-size:.72rem;font-weight:600;letter-spacing:.02em;text-transform:uppercase;color:#64748b}.session-id-item dd{margin:.1rem 0 0;font-size:.9rem;color:#0f172a}.session-id-glossary{margin:.25rem 0 0;font-size:.8rem}.session-patient-cell-name,.session-apt-cell{display:inline-block;line-height:1.35}.link-btn{border:none;background:none;color:#2563eb;cursor:pointer;font-weight:600;padding:0;text-decoration:underline}.link-btn--danger{color:#b91c1c}.link-btn:disabled{opacity:.5;cursor:not-allowed}.table-actions{display:flex;flex-wrap:wrap;gap:.65rem}.workflow-stepper{display:flex;flex-wrap:wrap;gap:.5rem;list-style:none;margin:0 0 1rem;padding:0}.workflow-step{display:flex;align-items:center;gap:.35rem;padding:.35rem .6rem;border-radius:999px;font-size:.8rem;background:#f1f5f9;color:#64748b}.workflow-step--done{background:#dcfce7;color:#166534}.workflow-step--active{background:#dbeafe;color:#1d4ed8;font-weight:700}.workflow-step--failed{background:#fee2e2;color:#991b1b}.workflow-step-num{font-weight:800}.workflow-badge{display:inline-block;padding:.2rem .55rem;border-radius:999px;font-size:.75rem;font-weight:700;background:#e2e8f0;color:#334155}.workflow-badge.status-processing,.workflow-badge.status-recording{background:#dbeafe;color:#1d4ed8}.workflow-badge.status-pending{background:#fef3c7;color:#92400e}.workflow-badge.status-approved,.workflow-badge.status-done{background:#dcfce7;color:#166534}.workflow-badge.status-failed,.workflow-badge.status-rejected{background:#fee2e2;color:#991b1b}.patient-panel{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:1rem}.patient-panel h3{margin:0 0 .5rem;font-size:.95rem}.patient-panel--empty{background:#f8fafc}.patient-panel-main{display:flex;flex-wrap:wrap;gap:.5rem;align-items:baseline;margin-bottom:.35rem}.patient-meta{font-size:.85rem;color:#64748b;margin:.25rem 0}.patient-alert{font-size:.85rem;color:#b45309;background:#fffbeb;padding:.4rem .55rem;border-radius:6px;margin:.35rem 0}.patient-history h4{margin:.5rem 0 .35rem;font-size:.85rem}.patient-history ul{margin:0;padding-left:1.1rem;font-size:.8rem;color:#475569}.error-banner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;padding:.85rem 1rem;margin-top:.75rem}.error-banner-stage{margin:0 0 .25rem;font-size:.8rem;font-weight:700;color:#991b1b}.error-banner-msg{margin:0;color:#b91c1c}.success-banner{background:#f0fdf4;border:1px solid #86efac;color:#166534;padding:.75rem 1rem;border-radius:8px;margin-top:.75rem}.od-flow-list{margin:.5rem 0 1rem;padding-left:1.25rem;font-size:.9rem;color:var(--text-muted, #64748b)}.od-flow-list li{margin-bottom:.35rem}.od-writeback-status{margin-top:.75rem}.od-writeback-status .success-banner{margin-top:0}.processing-banner{margin:0 0 .75rem;padding:.5rem .75rem;background:#eff6ff;border-radius:6px;color:#1d4ed8;font-size:.9rem}.soap-editor{display:grid;gap:1rem}.soap-editor-section h3{margin:0;font-size:.95rem}.soap-editor-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:.5rem;margin-bottom:.35rem}.soap-editor-textarea{width:100%;padding:.65rem .75rem;border:1px solid #cbd5e1;border-radius:8px;font:inherit;line-height:1.45;resize:vertical}.soap-editor-text{margin:0;white-space:pre-wrap;line-height:1.5}.transcript-edit-area{width:100%;padding:.75rem;border:1px solid #cbd5e1;border-radius:8px;font:inherit;line-height:1.45}.filter-row{display:flex;flex-wrap:wrap;gap:.4rem}.filter-chip{padding:.35rem .7rem;border:1px solid #e2e8f0;border-radius:999px;background:#fff;font-size:.8rem;cursor:pointer}.filter-chip.active{background:#2563eb;color:#fff;border-color:#2563eb}.sub-tabs{display:flex;gap:.5rem;margin-bottom:1rem}.sub-tabs button{padding:.45rem .9rem;border:1px solid #ccc;background:#fff;border-radius:6px;cursor:pointer}.sub-tabs button.active{background:#2563eb;color:#fff;border-color:#2563eb}.checkbox-row{display:flex;align-items:center;gap:.5rem;font-size:.875rem;margin:.75rem 0}.action-bar{display:flex;flex-wrap:wrap;gap:.5rem}.regenerate-instructions-card h4{margin:0 0 .35rem;font-size:.95rem}.regenerate-instructions-textarea{width:100%;margin-top:.5rem;padding:.65rem .75rem;border:1px solid var(--border, #d1d5db);border-radius:.5rem;font:inherit;line-height:1.45;resize:vertical;min-height:4.5rem}.regenerate-instructions-actions{display:flex;justify-content:flex-end;margin-top:.65rem}.confidence-pill{display:inline-block;padding:.35rem .65rem;border-radius:999px;font-size:.85rem;font-weight:700;margin-bottom:.5rem}.confidence-ok{background:#dcfce7;color:#166534}.confidence-low{background:#fffbeb;color:#92400e}.save-ok{color:#15803d;font-size:.85rem;margin:0 0 .5rem}.status-legend{margin:0;padding:0;list-style:none;display:grid;gap:.35rem}.table-error-hint{margin-left:.35rem;cursor:help}.hotkey-recorder-card{border:2px solid #93c5fd;background:linear-gradient(180deg,#f0f9ff,#fff 60%)}.hotkey-recorder-head h3{margin:0 0 .35rem}.mic-picker{margin-bottom:1rem}.mic-picker-label{display:flex;flex-direction:column;gap:.35rem;font-size:.875rem;font-weight:600}.mic-select{min-width:280px;padding:.5rem .65rem;border:1px solid #93c5fd;border-radius:8px;font:inherit}.hotkey-warn{color:#b45309;font-weight:600}.record-orb{display:flex;flex-direction:column;align-items:center;padding:1.25rem 0}.record-orb-btn{width:88px;height:88px;border-radius:50%;border:4px solid #e2e8f0;background:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:border-color .15s,box-shadow .15s}.record-orb-btn:disabled{opacity:.45;cursor:not-allowed}.record-orb.recording .record-orb-btn{border-color:#dc2626;box-shadow:0 0 0 6px #dc262626;animation:pulse 1.2s infinite}.record-orb-inner{width:56px;height:56px;border-radius:50%;background:#dc2626;transition:border-radius .15s,transform .15s}.record-orb.recording .record-orb-inner{border-radius:12px;transform:scale(.55)}.record-orb-label{margin:.75rem 0 0;font-size:.95rem;font-weight:600;color:#334155;text-align:center}.card-inset{margin:1rem 0;padding:.85rem 1rem;background:#fff;border:1px solid #bfdbfe;border-radius:10px}.card-inset h4{margin:0 0 .5rem;font-size:.9rem}.bt-bound-label{font-size:.875rem}.learn-mode{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem}.learn-mode-pulse{margin:0;font-weight:700;color:#1d4ed8;animation:pulse 1.2s infinite}.record-screen-hint{margin:.35rem 0 0;text-align:center;font-size:.8rem}.dji-notice{margin:.5rem 0 0;padding:.65rem .85rem;background:#fff7ed;border:1px solid #fdba74;border-radius:8px;font-size:.85rem;line-height:1.5;color:#9a3412}.record-mode-tabs{display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:1rem}.record-mode-tabs button{padding:.45rem .85rem;border:1px solid #cbd5e1;border-radius:8px;background:#fff;font-size:.85rem;cursor:pointer}.record-mode-tabs button.active{background:#2563eb;color:#fff;border-color:#2563eb}.voice-vad-panel h4{margin:0 0 .35rem}.vad-status{font-weight:700;font-size:.9rem;padding:.35rem .65rem;border-radius:6px}.vad-status--listening{background:#eff6ff;color:#1d4ed8}.vad-status--recording{background:#fee2e2;color:#991b1b;animation:pulse 1.2s infinite}.record-orb-btn--display{cursor:default;pointer-events:none}.press-record-panel{text-align:center;margin:1.25rem 0}.btn-record-main{font-size:1.15rem;padding:.85rem 2.5rem;min-width:220px;border-radius:10px}.btn-record-start{background:#dc2626;color:#fff}.btn-record-start:hover:not(:disabled){background:#b91c1c}.btn-record-stop{background:#1e293b;color:#fff}.btn-record-stop:hover:not(:disabled){background:#0f172a}.press-record-hint{margin:.65rem 0 0}.recording-pulse{color:#dc2626;font-weight:700;animation:pulse 1.2s infinite}.hw-button-details{margin-top:1rem;font-size:.85rem}.hw-button-details summary{cursor:pointer;color:#64748b;-webkit-user-select:none;user-select:none}.hw-button-details[open] summary{margin-bottom:.5rem}.consult-page{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden}.consult-split{display:grid;grid-template-columns:minmax(260px,320px) 1fr;grid-template-rows:minmax(0,1fr);gap:1rem;flex:1;min-height:0;overflow:hidden}.consult-left{display:flex;flex-direction:column;gap:1rem;align-self:stretch}.consult-title{margin:0;font-size:1.1rem}.consult-patient-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:.5rem}.appointment-picker{display:flex;flex-direction:column;gap:.5rem}.appointment-picker-toolbar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:.5rem}.appointment-picker-hint{margin:0;font-size:.78rem;color:#64748b}.appointment-manual{display:flex;flex-direction:column;gap:.45rem;margin-top:.35rem;padding:.65rem .7rem;border:1px dashed #cbd5e1;border-radius:8px;background:#f8fafc}.appointment-manual-row{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center}.appointment-manual-input{flex:1;min-width:8rem;width:auto!important}.appointment-manual-selected{margin:0;font-size:.8rem;font-weight:600;color:#1d4ed8}.appointment-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.35rem;max-height:320px;overflow-y:auto}.appointment-list-item{list-style:none}.appointment-item{width:100%;display:flex;flex-direction:column;gap:.25rem;padding:.45rem .55rem .5rem;border:1px solid #e2e8f0;border-radius:.5rem;background:#fff;text-align:left;color:inherit}.appointment-item-select{display:grid;grid-template-columns:3.25rem 1fr auto;gap:.5rem;align-items:center;width:100%;padding:0;border:none;background:transparent;text-align:left;cursor:pointer;font:inherit;color:inherit}.appointment-item-select:disabled{cursor:not-allowed}.appointment-item:hover:not(:has(.appointment-item-select:disabled)){border-color:#94a3b8;background:#f8fafc}.appointment-item--selected{border-color:#2563eb;background:#eff6ff}.appointment-item:has(.appointment-item-select:disabled){opacity:.55}.appointment-item-more{flex-shrink:0;padding:0;border:none;background:transparent;font:inherit;font-size:.75rem;color:#64748b;text-decoration:underline;text-underline-offset:2px;cursor:pointer}.appointment-item-more:hover:not(:disabled){color:#475569}.appointment-item-more:disabled{opacity:.55;cursor:not-allowed}.appointment-item-meta-row{display:flex;align-items:baseline;gap:.3rem;min-width:0;margin-left:3.75rem;padding-right:.15rem}.appointment-item-meta{flex:1;min-width:0;font-size:.75rem;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.appointment-item-time{font-size:.8rem;font-weight:700;color:#334155}.appointment-item-main{display:flex;flex-direction:column;gap:.1rem;min-width:0}.appointment-item-name{display:flex;align-items:baseline;gap:.35rem;font-size:.85rem;font-weight:600;color:#0f172a}.appointment-item-pat{flex-shrink:0;font-size:.72rem;font-weight:700;color:#475569;background:#f1f5f9;border-radius:.25rem;padding:.05rem .35rem}.appointment-item-patient{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.appointment-item-details{margin:0;padding:.45rem 0 0;border-top:1px solid #e2e8f0;border-radius:0;background:transparent;display:grid;gap:.3rem}.appointment-item-details-row{display:grid;grid-template-columns:minmax(5.5rem,38%) 1fr;gap:.45rem;font-size:.74rem}.appointment-item-details-row dt{margin:0;color:#64748b;font-weight:600}.appointment-item-details-row dd{margin:0;color:#0f172a;word-break:break-word}.appointment-item-status{font-size:.7rem;font-weight:600;color:#475569;text-transform:capitalize}.consult-patient-summary{margin:0;font-size:.85rem;font-weight:600;color:#334155}.consult-patient-hint{margin:0;font-size:.8rem;color:#64748b}.consult-upload{display:flex;align-items:center;gap:.5rem;cursor:pointer}.consult-upload-label{font-size:.8rem;font-weight:600;color:#64748b}.consult-upload-input{display:none}.consult-upload-btn{pointer-events:none}.consult-upload:has(.consult-upload-input:disabled){opacity:.5;cursor:not-allowed}.consult-history{flex:1;min-height:0;overflow-y:auto;margin-top:.25rem}.consult-history .history-panel{padding:0;border:none;background:transparent}.consult-history .history-panel h3{font-size:.8rem;margin:0 0 .4rem;color:#64748b;text-transform:uppercase;letter-spacing:.04em}.consult-history .hint{font-size:.75rem;margin:0 0 .35rem}.consult-history .history-list{margin:0;padding:0}.consult-status{margin:0;font-size:.85rem;color:#2563eb;font-weight:600}.consult-review-link{margin-top:auto;align-self:flex-start}.consult-right{display:grid;grid-template-rows:auto minmax(0,1fr);gap:.75rem;min-height:0;height:100%;overflow:hidden}.consult-panel{display:flex;flex-direction:column;min-height:0;overflow:hidden;padding:.85rem 1rem}.consult-panel.card{margin-bottom:0}.consult-panel--transcript{flex-shrink:0}.consult-panel--transcript .panel-scroll{flex:0 0 auto;height:clamp(200px,36vh,380px);max-height:clamp(200px,36vh,380px)}.consult-panel--soap{min-height:0}.consult-panel--soap>.panel-scroll{flex:1;min-height:0}.panel-title{margin:0 0 .5rem;font-size:.9rem;font-weight:700;color:#475569;text-transform:uppercase;letter-spacing:.04em}.panel-scroll{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc}.panel-empty{display:flex;align-items:center;justify-content:center;flex:1;min-height:0;color:#94a3b8;font-size:1.25rem}.transcript-panel.panel-scroll{padding:.65rem .85rem}.transcript-panel .transcript-box{border:none;background:transparent;max-height:none;min-height:0;overflow:visible;padding:0}.recorder-compact{display:flex;flex-direction:column;gap:.65rem}.bt-hotkey,.mic-hotkey{display:flex;flex-direction:column;gap:.35rem;padding-top:.15rem}.bt-hotkey-title,.mic-hotkey-title{font-size:.8rem;font-weight:600;color:#64748b}.bt-hotkey-row,.bt-hotkey-learn,.mic-hotkey-row,.mic-hotkey-learn{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem}.bt-hotkey-label,.mic-hotkey-label{flex:1;min-width:0;font-size:.85rem;color:#334155}.bt-hotkey-sniff,.mic-hotkey-sniff{margin:0;font-size:.75rem;line-height:1.4;color:#64748b}.bt-hotkey-sniff--ok,.mic-hotkey-sniff--ok{color:#15803d;font-weight:600}.field-compact{display:flex;flex-direction:column;gap:.3rem;font-size:.8rem;font-weight:600;color:#64748b}.field-compact--inline{flex-direction:row;align-items:center;gap:.35rem}.field-row{display:flex;gap:.4rem;align-items:center}.field-row .field-select{flex:1;min-width:0}.field-select,.field-input-sm{width:100%;padding:.45rem .55rem;border:1px solid #cbd5e1;border-radius:6px;font:inherit;font-size:.875rem;background:#fff}.field-input-sm{width:4.5rem}.btn-sm{padding:.35rem .65rem;font-size:.8rem}.error-inline{margin:0;font-size:.8rem;color:#b91c1c}.od-test-card{display:flex;flex-direction:column;gap:.85rem;max-width:40rem}.od-test-result{border:1px solid #e5e7eb;border-radius:8px;padding:.85rem 1rem;background:#fafafa}.od-test-status{margin:0 0 .65rem;font-weight:600}.od-test-status--ok{border-color:#86efac;background:#f0fdf4}.od-test-status--mock{border-color:#fde68a;background:#fffbeb}.od-test-status--fail{border-color:#fecaca;background:#fef2f2}.od-test-dl{margin:0;display:grid;gap:.35rem 1rem}.od-test-dl>div{display:grid;grid-template-columns:9rem 1fr;gap:.5rem;font-size:.875rem}.od-test-dl dt{margin:0;color:#6b7280}.od-test-dl dd{margin:0;word-break:break-word}.od-test-hint{margin-top:.65rem}.recorder-compact .btn-record-main{width:100%;min-width:0;font-size:1.05rem;padding:.85rem}.soap-panel{padding:.65rem .85rem}.soap-panel-section{margin-bottom:.85rem}.soap-panel-section:last-child{margin-bottom:0}.soap-panel-section h4{margin:0 0 .25rem;font-size:.75rem;font-weight:800;color:#2563eb;letter-spacing:.06em}.soap-panel-section p{margin:0;font-size:.875rem;line-height:1.5;white-space:pre-wrap}@media (max-width: 900px){.app-body{overflow:visible;grid-template-rows:auto minmax(0,1fr)}.app-main{overflow:visible;min-height:50vh}.consult-page{min-height:50vh}.consult-split{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}.consult-right{grid-template-rows:auto minmax(0,1fr);min-height:0}.consult-panel--transcript .panel-scroll{height:clamp(180px,30vh,320px);max-height:clamp(180px,30vh,320px)}}.mic-bt-ok{color:#15803d;font-weight:600}.history-panel{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:1rem}.history-panel h3{margin:0 0 .35rem;font-size:.95rem}.history-panel--empty{background:#f8fafc}.history-list{margin:0;padding:0;list-style:none}.history-item{padding:.65rem 0;border-bottom:1px solid #f1f5f9}.history-item:last-child{border-bottom:none}.history-item-head{display:flex;flex-wrap:wrap;gap:.35rem .65rem;margin-bottom:.25rem;font-size:.8rem}.history-provider,.history-procedure{color:#64748b;font-size:.75rem}.history-item p{margin:0;font-size:.85rem;line-height:1.45;color:#475569}header h1{margin:0 0 .25rem;font-size:1.5rem}header p{margin:0 0 1.5rem;color:#555}.tabs{display:flex;gap:.5rem;margin-bottom:1.25rem}.tabs button{padding:.5rem 1rem;border:1px solid #ccc;background:#fff;border-radius:6px;cursor:pointer}.tabs button.active{background:#2563eb;color:#fff;border-color:#2563eb}.card{background:#fff;border-radius:10px;padding:1.25rem;box-shadow:0 1px 4px #00000014;margin-bottom:1rem}.card h2{margin:0 0 1rem;font-size:1.1rem}.row{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;margin-bottom:.75rem}label{font-size:.875rem;font-weight:500}input[type=number],input[type=text],input[type=date],input[type=time]{padding:.4rem .6rem;border:1px solid #ccc;border-radius:6px;font:inherit;background:#fff}.btn{padding:.55rem 1.1rem;border:none;border-radius:6px;font-weight:600;cursor:pointer}.btn-primary{background:#2563eb;color:#fff}.btn-secondary{background:#e2e8f0;color:#334155}.btn-link{background:transparent;color:#2563eb;border:none;text-decoration:underline;text-underline-offset:2px}.btn-link:hover:not(:disabled){color:#1d4ed8}.btn-danger{background:#dc2626;color:#fff}.btn:disabled{opacity:.5;cursor:not-allowed}.status{display:inline-block;padding:.2rem .6rem;border-radius:4px;font-size:.8rem;font-weight:600;background:#e0e7ff;color:#3730a3}.status.recording{background:#fee2e2;color:#991b1b;animation:pulse 1.5s infinite}@keyframes pulse{50%{opacity:.7}}.transcript-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:1rem;white-space:pre-wrap;max-height:320px;overflow-y:auto}.segment{margin-bottom:.75rem}.segment .speaker{font-weight:700;margin-right:.5rem}.segment-time{color:#64748b;font-size:.78rem;margin-left:.5rem;font-variant-numeric:tabular-nums;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.segment{margin-bottom:.85rem;padding:.5rem .65rem;border-radius:8px;line-height:1.45}.speaker-dentist{background:#eff6ff;border-left:3px solid #1d4ed8}.speaker-patient{background:#ecfdf5;border-left:3px solid #047857}.speaker-voice-1{background:#eff6ff;border-left:3px solid #1d4ed8}.speaker-voice-2{background:#fdf4ff;border-left:3px solid #9333ea}.speaker-unknown{background:#f8fafc;border-left:3px solid #94a3b8}.speaker-dentist .speaker{color:#1d4ed8;font-weight:700;margin-right:.5rem}.speaker-patient .speaker{color:#047857;font-weight:700;margin-right:.5rem}.speaker-voice-1 .speaker{color:#1d4ed8;font-weight:700;margin-right:.5rem}.speaker-voice-2 .speaker{color:#9333ea;font-weight:700;margin-right:.5rem}.speaker-unknown .speaker{color:#64748b;font-weight:700;margin-right:.5rem}.error{color:#b91c1c;background:#fef2f2;padding:.75rem;border-radius:6px;margin-top:.75rem}.soap-grid{display:grid;gap:.75rem}.soap-grid section h3{margin:0 0 .25rem;font-size:.9rem;color:#475569}.hint{margin:.5rem 0 0;font-size:.85rem;color:#64748b}.audio-source{margin-bottom:.75rem}.upload-zone-wrap{margin-bottom:1rem}.upload-zone{border:2px dashed #94a3b8;border-radius:12px;padding:2rem 1.5rem;text-align:center;background:#f8fafc;cursor:pointer;transition:border-color .15s,background .15s}.upload-zone:hover:not(.disabled),.upload-zone.drag-over{border-color:#2563eb;background:#eff6ff}.upload-zone.disabled{opacity:.6;cursor:not-allowed}.upload-zone-icon{font-size:2rem;color:#2563eb;margin-bottom:.5rem}.section-label{margin:1.25rem 0 .75rem;font-size:.95rem;font-weight:600;color:#334155}.section-label:first-child{margin-top:0}.upload-selected{margin:.5rem 0 0;font-size:.9rem;color:#475569}.btn-upload{font-size:1rem;padding:.65rem 1.5rem}.recorder-panel{padding:.75rem 0}.upload-zone-title{margin:0 0 .25rem;font-weight:600}.upload-zone-sub{margin:0 0 1rem;color:#64748b;font-size:.9rem}.upload-file-card{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;padding:1rem;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}.upload-file-info{display:flex;flex-direction:column;gap:.25rem;font-size:.9rem}.upload-ok{color:#15803d;font-size:.85rem}.upload-warn{color:#b45309;font-size:.85rem}.mode-switch{display:flex;gap:.5rem;margin:1rem 0}.mode-switch button{padding:.45rem .9rem;border:1px solid #ccc;background:#fff;border-radius:6px;cursor:pointer}.mode-switch button.active{background:#2563eb;color:#fff;border-color:#2563eb}.warning{background:#fffbeb;border:1px solid #fcd34d;padding:.5rem .75rem;border-radius:6px;font-size:.85rem;margin-bottom:.5rem;display:flex;flex-wrap:wrap;gap:.35rem .5rem;align-items:baseline}.warning-high{background:#fef2f2;border-color:#fca5a5}.warning-medium{background:#fff7ed;border-color:#fdba74}.warning-type{font-weight:700;font-size:.75rem;text-transform:uppercase;letter-spacing:.02em;color:#92400e}.warning-high .warning-type{color:#b91c1c}.warning-medium .warning-type{color:#c2410c}.warning-field{font-size:.75rem;font-weight:600;color:#475569;background:#ffffffa6;padding:.1rem .35rem;border-radius:4px}.warning-head{display:flex;flex-wrap:wrap;gap:.35rem .5rem;align-items:baseline;width:100%}.warning-message{flex:1 1 100%;color:#334155;margin:.25rem 0 0}.validation-evidence{flex:1 1 100%;display:grid;gap:.5rem;margin-top:.5rem}@media (min-width: 720px){.validation-evidence{grid-template-columns:1fr 1fr}}.validation-quote{background:#ffffffbf;border:1px solid #e2e8f0;border-radius:6px;padding:.45rem .6rem;min-width:0}.validation-quote-note{border-left:3px solid #6366f1}.validation-quote-dialogue{border-left:3px solid #0ea5e9}.validation-quote-missing{border-left-color:#94a3b8;opacity:.92}.validation-quote-label{display:block;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em;color:#64748b;margin-bottom:.35rem}.validation-quote blockquote{margin:0;font-size:.82rem;line-height:1.45;color:#1e293b;font-style:normal}.validation-missing-text{color:#64748b;font-style:italic}.validation-dialogue-segment{margin:0;padding:0;background:transparent;border:none;font-size:.82rem;line-height:1.45}.validation-heading{margin:0 0 .5rem;font-size:.9rem}.validation-empty{margin:0}.reference-input{margin:1rem 0}.reference-header{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.35rem 1rem;margin-bottom:.5rem}.reference-label{font-size:.875rem;font-weight:600}.reference-format-hint{font-size:.75rem;color:#64748b}.reference-dropzone{border:2px dashed #cbd5e1;border-radius:10px;background:#f8fafc;transition:border-color .15s,background .15s}.reference-dropzone.drag-over{border-color:#2563eb;background:#eff6ff}.reference-dropzone.has-file{border-style:solid;background:#fff}.reference-drop-body{display:block;width:100%;padding:1.25rem 1rem;border:none;background:transparent;text-align:center;cursor:pointer;font:inherit;color:inherit}.reference-drop-body:disabled{opacity:.5;cursor:not-allowed}.reference-drop-title{margin:0 0 .35rem;font-weight:600}.reference-drop-sub{margin:0 0 .75rem;font-size:.875rem;color:#64748b}.reference-drop-example{margin:0;font-size:.8rem;color:#94a3b8;line-height:1.6}.reference-drop-example code{font-size:.78rem}.reference-loaded{padding:.85rem 1rem}.reference-loaded-head{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1rem;margin-bottom:.65rem}.reference-file-badge{display:inline-block;padding:.2rem .55rem;border-radius:999px;background:#e0e7ff;color:#3730a3;font-size:.8rem;font-weight:600}.reference-stats{font-size:.8rem;color:#64748b}.reference-warn{margin:0 0 .65rem;padding:.45rem .65rem;border-radius:6px;background:#fffbeb;border:1px solid #fcd34d;font-size:.8rem;color:#92400e}.reference-preview{max-height:160px;overflow:auto;margin-bottom:.65rem;padding:.5rem .65rem;background:#f8fafc;border-radius:8px;border:1px solid #e2e8f0}.reference-preview-line{display:flex;gap:.5rem;margin-bottom:.35rem;font-size:.85rem;line-height:1.4}.reference-preview-tag{flex-shrink:0;width:1.25rem;font-weight:700;font-size:.75rem}.reference-preview-line.speaker-D .reference-preview-tag{color:#1d4ed8}.reference-preview-line.speaker-P .reference-preview-tag{color:#047857}.reference-plain-preview{margin:0 0 .65rem;font-size:.85rem;color:#475569;line-height:1.45}.reference-actions{margin-top:.25rem}.reference-paste-toggle{margin-top:.5rem;padding:0;border:none;background:none;color:#2563eb;font-size:.85rem;cursor:pointer;text-decoration:underline}.reference-paste-toggle:disabled{opacity:.5;cursor:not-allowed}.reference-textarea{width:100%;margin-top:.5rem;padding:.65rem .75rem;border:1px solid #cbd5e1;border-radius:8px;font:inherit;line-height:1.45;resize:vertical}.file-btn{display:inline-flex;align-items:center;cursor:pointer}.metrics-panel{margin:1rem 0;padding:.85rem 1rem;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px}.metrics-panel h4{margin:0 0 .75rem;font-size:.95rem}.metrics-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.75rem}.metric-card{padding:.75rem;border-radius:8px;background:#fff;border:1px solid #e2e8f0}.metric-card.metric-good{border-color:#86efac;background:#f0fdf4}.metric-card.metric-warn{border-color:#fcd34d;background:#fffbeb}.metric-card.metric-bad{border-color:#fca5a5;background:#fef2f2}.metric-label{display:block;font-size:.75rem;font-weight:700;letter-spacing:.04em;color:#64748b}.metric-value{display:block;font-size:1.5rem;font-weight:700;line-height:1.2;margin:.15rem 0}.metric-desc{display:block;font-size:.8rem;color:#64748b}.metrics-detail{margin:.75rem 0 0;font-size:.8rem;color:#64748b}.metrics-hint{margin:.75rem 0}.evaluation-section{margin:1.25rem 0;padding:1rem 1.1rem;border:2px solid #93c5fd;border-radius:12px;background:linear-gradient(180deg,#f0f9ff,#fff)}.evaluation-section-header h3{margin:0 0 .35rem;font-size:1.05rem;color:#1e40af}.evaluation-section-desc{margin:0 0 .75rem}.metrics-panel-empty{background:#fff;border-style:dashed}.metrics-panel-empty .metrics-hint{margin:0}.stt-provider-selector{margin:1rem 0;padding:.85rem 1rem;border:2px solid #93c5fd;border-radius:10px;background:#f0f9ff}.stt-provider-label{display:block;font-size:.875rem;font-weight:600;margin-bottom:.4rem;color:#1e40af}.stt-provider-select{width:100%;max-width:420px;padding:.55rem .75rem;font-size:.95rem;font:inherit;border:1px solid #93c5fd;border-radius:8px;background:#fff;color:#0f172a;cursor:pointer}.stt-provider-select:disabled{opacity:.6;cursor:not-allowed}.stt-provider-warn{color:#b45309}.stt-provider-hint{margin:.5rem 0 0;font-size:.8rem}.clinical-qa{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:1rem;display:flex;flex-direction:column;gap:.75rem;min-height:220px}.clinical-qa--compact{min-height:180px}.clinical-qa-head h3{margin:0 0 .25rem;font-size:.95rem}.clinical-qa-head .hint{margin:0;font-size:.8rem}.clinical-qa-hint{margin:0;font-size:.8rem;color:#64748b;background:#f8fafc;border-radius:6px;padding:.5rem .65rem}.clinical-qa-messages{flex:1;min-height:120px;max-height:280px;overflow-y:auto;display:flex;flex-direction:column;gap:.65rem;padding-right:.25rem}.clinical-qa-empty{font-size:.85rem;color:#64748b}.clinical-qa-empty ul{margin:.5rem 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:.35rem}.clinical-qa-suggestion{width:100%;text-align:left;border:1px solid #e2e8f0;background:#f8fafc;border-radius:8px;padding:.45rem .6rem;font-size:.82rem;color:#334155;cursor:pointer}.clinical-qa-suggestion:hover:not(:disabled){background:#eff6ff;border-color:#bfdbfe}.clinical-qa-suggestion:disabled{opacity:.55;cursor:not-allowed}.clinical-qa-bubble{border-radius:10px;padding:.55rem .7rem;font-size:.88rem}.clinical-qa-bubble p{margin:.2rem 0 0;white-space:pre-wrap}.clinical-qa-bubble-label{font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:.03em}.clinical-qa-bubble--user{background:#eff6ff;border:1px solid #dbeafe;align-self:flex-end;max-width:92%}.clinical-qa-bubble--user .clinical-qa-bubble-label{color:#1d4ed8}.clinical-qa-bubble--assistant{background:#f8fafc;border:1px solid #e2e8f0;align-self:flex-start;max-width:95%}.clinical-qa-bubble--assistant .clinical-qa-bubble-label{color:#475569}.clinical-qa-loading{margin:0;font-size:.82rem;color:#64748b}.clinical-qa-form{display:flex;gap:.5rem;align-items:stretch}.clinical-qa-form .btn{flex-shrink:0;white-space:nowrap}.clinical-qa-input{flex:1;border:1px solid #cbd5e1;border-radius:8px;padding:.5rem .65rem;font-size:.9rem}.clinical-qa-citations{margin-top:.5rem;padding-top:.5rem;border-top:1px dashed #cbd5e1;font-size:.8rem}.clinical-qa-citations-title{margin:0 0 .35rem;font-weight:600;color:#475569}.clinical-qa-citations ul{margin:0;padding-left:1rem;list-style:none}.clinical-qa-citations li{margin-bottom:.45rem}.clinical-qa-cite-id{font-weight:600;color:#2563eb;margin-right:.35rem}.clinical-qa-cite-source{color:#64748b}.clinical-qa-cite-excerpt{margin:.15rem 0 0;color:#334155;font-style:italic}.clinical-qa-not-found{margin:.35rem 0 0;color:#b45309;font-size:.78rem}.clinical-qa-steps,.clinical-qa-agent-live{margin-top:.45rem;font-size:.78rem;color:#64748b}.clinical-qa-agent-live-title{margin:0 0 .25rem;font-weight:600}.clinical-qa-steps ol,.clinical-qa-agent-live ol{margin:.25rem 0 0;padding-left:1.1rem}.od-agent-card{margin-top:0}.od-agent-workflow{margin:.5rem 0 .75rem;padding-left:1.25rem;font-size:.88rem;color:var(--text-muted, #64748b)}.od-agent-workflow li{margin-bottom:.35rem}.od-agent-fields--compact{grid-template-columns:1fr;max-width:24rem}.od-agent-wait-banner{margin-top:.65rem}.od-agent-detected-proc{margin:.35rem 0 .5rem}.od-agent-approve-gate{margin:0 0 .75rem;padding:.55rem .75rem;background:#fffbeb;border:1px solid #fcd34d;border-radius:6px;color:#92400e}.od-agent-health{font-size:.78rem;font-weight:600;padding:.2rem .55rem;border-radius:999px;white-space:nowrap}.od-agent-health--unknown{background:#f1f5f9;color:#64748b}.od-agent-health--ok{background:#f0fdf4;color:#166534}.od-agent-health--off{background:#fef2f2;color:#b91c1c}.od-agent-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;margin:.75rem 0}.od-agent-field{display:grid;gap:.25rem;font-size:.82rem}.od-agent-field span{color:var(--text-muted, #64748b)}.od-agent-field input{width:100%;padding:.45rem .55rem;border:1px solid var(--border, #e2e8f0);border-radius:6px;font-size:.88rem;background:#fff}.od-agent-field input:read-only{background:#f8fafc;color:#475569}.od-agent-actions{display:flex;flex-wrap:wrap;gap:.5rem}.od-agent-progress{margin-top:.85rem;padding-top:.85rem;border-top:1px solid var(--border, #e2e8f0)}.od-agent-progress-head{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin-bottom:.5rem}.od-agent-status-badge{display:inline-block;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em;padding:.15rem .5rem;border-radius:999px;background:#eff6ff;color:#1d4ed8}.od-agent-message{margin:0;font-size:.88rem;color:var(--text-muted, #64748b)}.od-agent-steps{margin:.5rem 0 0;padding-left:1.1rem;font-size:.84rem}.od-agent-steps li{margin-bottom:.45rem}.od-agent-step-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:.35rem .6rem}.od-agent-step-status{font-size:.75rem;font-weight:600;text-transform:uppercase}.od-agent-step-duration{font-size:.75rem;color:var(--text-muted, #64748b)}.od-agent-step-message{margin:.2rem 0 0;color:var(--text-muted, #64748b)}.od-agent-step--done .od-agent-step-status{color:#166534}.od-agent-step--failed .od-agent-step-status{color:#b91c1c}.od-agent-step--running .od-agent-step-status{color:#1d4ed8}.od-agent-success,.od-agent-failed{margin-top:.65rem}.od-agent-proc-compare{margin:.5rem 0 0;display:grid;gap:.45rem;font-size:.84rem}.od-agent-proc-compare dt{font-weight:600;color:var(--text-muted, #64748b)}.od-agent-proc-compare dd{margin:.15rem 0 0}@media (max-width: 720px){.od-agent-fields{grid-template-columns:1fr}}
