*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:14px;background:#fff;color:#1a1a1a;min-height:100vh}.app{display:flex;flex-direction:column;min-height:100vh}.app-header{display:flex;align-items:center;justify-content:space-between;padding:0 24px;height:48px;background:#fff;border-bottom:1px solid #f0f0f0;position:sticky;top:0;z-index:10}.app-logo{font-size:15px;font-weight:600;color:#1a1a1a;letter-spacing:-.3px}.header-right{display:flex;align-items:center;gap:12px}.header-user{color:#999;font-size:13px}.app-main{flex:1;padding:0 24px;width:100%;max-width:1280px;margin:0 auto}.btn-primary{background:#1a1a1a;color:#fff;border:none;border-radius:8px;padding:9px 20px;font-size:14px;font-weight:500;cursor:pointer;transition:background .15s}.btn-primary:hover:not(:disabled){background:#333}.btn-primary:disabled{opacity:.35;cursor:not-allowed}.btn-full{width:100%}.btn-ghost{background:none;border:1px solid #e0e0e0;border-radius:6px;padding:6px 14px;font-size:13px;cursor:pointer;color:#555;transition:border-color .15s,color .15s}.btn-ghost:hover{border-color:#aaa;color:#1a1a1a}.btn-approve{background:#1a1a1a;color:#fff;border:none;border-radius:8px;padding:10px 28px;font-size:14px;font-weight:600;cursor:pointer;transition:background .15s}.btn-approve:hover:not(:disabled){background:#333}.btn-approve:disabled{opacity:.35;cursor:not-allowed}.login-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#fff}.login-card{width:100%;max-width:360px;padding:0 24px}.login-title{font-size:22px;font-weight:700;color:#1a1a1a;text-align:center;letter-spacing:-.5px}.login-subtitle{text-align:center;color:#999;font-size:13px;margin-top:4px;margin-bottom:32px}.tab-row{display:flex;border-bottom:1px solid #ebebeb;margin-bottom:24px}.tab{flex:1;background:none;border:none;padding:8px;font-size:14px;color:#999;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px;transition:color .15s}.tab-active{color:#1a1a1a;border-bottom-color:#1a1a1a;font-weight:600}.login-form{display:flex;flex-direction:column;gap:16px}.field{display:flex;flex-direction:column;gap:5px}.field label{font-size:13px;font-weight:500;color:#555}.field input{border:1px solid #e0e0e0;border-radius:8px;padding:9px 12px;font-size:14px;outline:none;background:#fafafa;transition:border-color .15s,background .15s}.field input:focus{border-color:#1a1a1a;background:#fff}.error-msg{color:#dc2626;font-size:13px}.workspace{display:flex;justify-content:flex-start;align-items:flex-start;gap:28px;padding:28px 0;width:100%}.workspace-note{width:100%;max-width:740px;flex-shrink:0;position:sticky;top:60px;max-height:calc(100vh - 84px);overflow-y:auto;transition:max-width .4s cubic-bezier(.4,0,.2,1)}.workspace:not(.workspace-split){justify-content:center}.workspace-split .workspace-note{max-width:400px}.workspace-charts{flex:1 1 auto;min-width:0;opacity:0;transform:translate(16px);transition:opacity .38s cubic-bezier(.4,0,.2,1),transform .38s cubic-bezier(.4,0,.2,1)}.workspace-charts-visible{opacity:1;transform:translate(0)}@media (max-width: 860px){.workspace-split{flex-direction:column}.workspace-note{position:static;max-height:none;overflow-y:visible}.workspace-split .workspace-note{max-width:100%}.note-screen-compact .composer-textarea{min-height:160px}}.signed-banner{display:flex;align-items:center;gap:16px;background:#fff;border:1px solid #ebebeb;border-radius:12px;padding:24px}.signed-banner .done-icon{flex-shrink:0;margin:0}.signed-banner strong{font-size:15px;display:block;margin-bottom:4px}.signed-banner p{color:#999;font-size:13px;line-height:1.5}.note-screen{display:flex;flex-direction:column;align-items:center;padding-top:80px;padding-bottom:48px;gap:16px;width:100%}.note-screen-compact{display:flex;flex-direction:column;gap:12px;width:100%}.note-screen-compact .composer{max-width:none}.note-screen-compact .composer-textarea{min-height:320px}.composer{width:100%;max-width:740px;background:#f5f5f5;border-radius:16px;border:1px solid #e8e8e8;overflow:hidden}.composer-textarea{width:100%;border:none;background:transparent;padding:16px;font-size:15px;font-family:inherit;resize:none;outline:none;line-height:1.6;color:#1a1a1a;min-height:180px}.composer-textarea::placeholder{color:#aaa}.composer-textarea:disabled{opacity:.6}.listening-hint{display:flex;align-items:center;gap:8px;padding:0 16px 8px;font-size:12px;color:#c33}.listening-dot{width:7px;height:7px;border-radius:50%;background:#c33;flex-shrink:0;animation:dictate-pulse 1.2s ease-in-out infinite}.composer-error{color:#dc2626;font-size:13px;padding:0 16px 8px}.composer-toolbar{display:flex;align-items:center;justify-content:space-between;padding:10px 14px 12px;border-top:1px solid #e8e8e8}.toolbar-left{display:flex;align-items:center;gap:2px;flex-wrap:wrap}.toolbar-btn{display:flex;align-items:center;gap:6px;background:none;border:none;border-radius:6px;padding:6px 10px;font-size:13px;color:#777;cursor:pointer;transition:background .15s,color .15s;white-space:nowrap}.toolbar-btn:hover{background:#ebebeb;color:#1a1a1a}.toolbar-divider{width:1px;height:18px;background:#ddd;margin:0 6px}.composer-submit{background:#1a1a1a;color:#fff;border:none;border-radius:8px;padding:8px 18px;font-size:14px;font-weight:500;cursor:pointer;transition:background .15s;white-space:nowrap;flex-shrink:0}.composer-submit:hover:not(:disabled){background:#333}.composer-submit:disabled{opacity:.35;cursor:not-allowed}.toolbar-right{display:flex;align-items:center;gap:8px;flex-shrink:0}.dictate-btn{display:flex;align-items:center;gap:6px;background:#fff;border:1px solid #e0e0e0;border-radius:8px;padding:7px 14px;font-size:13px;font-weight:500;color:#555;cursor:pointer;transition:border-color .15s,color .15s,background .15s;white-space:nowrap}.dictate-btn:hover:not(:disabled){border-color:#aaa;color:#1a1a1a}.dictate-btn:disabled{opacity:.4;cursor:not-allowed}.dictate-btn-active{background:#fdecec;border-color:#e8a0a0;color:#c33}.dictate-btn-active svg{animation:dictate-pulse 1.2s ease-in-out infinite}@keyframes dictate-pulse{0%,to{opacity:1}50%{opacity:.4}}.review-screen{display:flex;flex-direction:column;gap:24px;padding:28px 0}.review-header{display:flex;flex-direction:column;gap:6px}.review-header h2{font-size:18px;font-weight:600;letter-spacing:-.3px}.review-header-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-close-btn{display:flex;align-items:center;justify-content:center;width:28px;height:28px;background:none;border:none;border-radius:50%;font-size:14px;color:#999;cursor:pointer;transition:background .15s,color .15s;flex-shrink:0}.panel-close-btn:hover{background:#f0f0f0;color:#1a1a1a}.review-hint{color:#999;font-size:13px}.charts-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px;align-items:start}.charts-grid-stacked{grid-template-columns:1fr}.review-screen-stacked{padding:0}.review-screen-stacked .approval-bar{margin:0;border-radius:0 0 12px 12px}.chart-panel{background:#fff;border-radius:12px;padding:20px;border:1px solid #ebebeb}.panel-title{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.6px;color:#1a1a1a;margin-bottom:16px;padding-bottom:10px;border-bottom:1px solid #ebebeb}.panel-fields{display:flex;flex-direction:column;gap:12px}.chart-field{display:flex;flex-direction:column;gap:4px}.chart-field label{font-size:11px;font-weight:600;color:#aaa;text-transform:uppercase;letter-spacing:.5px}.chart-field textarea{border:1px solid #ebebeb;border-radius:6px;padding:7px 9px;font-size:13px;font-family:inherit;resize:vertical;outline:none;line-height:1.5;color:#1a1a1a;background:#fafafa;transition:border-color .15s,background .15s}.chart-field textarea:focus{border-color:#1a1a1a;background:#fff}.chart-field textarea::placeholder{color:#ddd}.approval-bar{position:sticky;bottom:0;background:#fff;border-top:1px solid #ebebeb;padding:14px 24px;display:flex;align-items:center;justify-content:flex-end;gap:16px;margin:0 -24px}.approval-info{font-size:13px;color:#999}.advisory-section{display:flex;flex-direction:column;gap:10px}.advisory-caveat{font-size:12px;font-weight:600;color:#999}.advisory-caveat span{font-weight:400;color:#aaa}.advisory-list{list-style:none;display:flex;flex-direction:column;gap:8px}.advisory-list li{font-size:13px;line-height:1.5;color:#333;padding-left:14px;position:relative}.advisory-list li:before{content:"";position:absolute;left:0;top:7px;width:5px;height:5px;border-radius:50%;background:#bbb}.chart-panel-warning{border-color:#f3c9c9;background:snow}.chart-panel-warning .panel-title{color:#c33;border-bottom-color:#f5dada}.chart-panel-warning .advisory-list li:before{background:#d66}.med-alert-list{display:flex;flex-direction:column;gap:14px}.med-alert{border-left:3px solid #d66;padding-left:12px}.med-alert-headline{font-size:13.5px;font-weight:700;color:#a22;margin-bottom:4px}.med-alert-detail{font-size:13px;line-height:1.5;color:#333;margin-bottom:4px}.med-alert-sources{font-size:11px;color:#b88;font-style:italic}.kb-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000059;display:flex;align-items:center;justify-content:center;padding:24px;z-index:200}.kb-modal{background:#fff;border-radius:16px;padding:24px;width:100%;max-width:520px;max-height:80vh;overflow-y:auto;display:flex;flex-direction:column;gap:14px}.kb-modal h3{font-size:16px;font-weight:600;letter-spacing:-.2px}.kb-list{display:flex;flex-direction:column;gap:8px}.kb-row{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fafafa;border:1px solid #ebebeb;border-radius:8px;padding:10px 14px}.kb-row-main{display:flex;flex-direction:column;gap:2px;min-width:0}.kb-filename{font-size:13px;font-weight:500;color:#1a1a1a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.crash-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#fff;padding:24px}.crash-card{max-width:420px;text-align:center}.crash-card h2{font-size:18px;font-weight:600;margin-bottom:10px}.crash-card p{color:#999;font-size:13px;line-height:1.5;margin-bottom:20px}.done-screen{display:flex;align-items:center;justify-content:center;min-height:calc(100vh - 48px)}.done-card{background:#fff;border-radius:16px;padding:48px 40px;text-align:center;border:1px solid #ebebeb;max-width:400px}.done-icon{width:52px;height:52px;background:#f5f5f5;color:#1a1a1a;border-radius:50%;font-size:22px;display:flex;align-items:center;justify-content:center;margin:0 auto 20px}.done-card h2{font-size:20px;font-weight:600;margin-bottom:10px;letter-spacing:-.3px}.done-card p{color:#999;margin-bottom:24px;line-height:1.5}.done-card .btn-primary{margin-bottom:12px}.history-screen{display:flex;flex-direction:column;gap:20px;padding:28px 0}.history-list{display:flex;flex-direction:column;gap:10px}.history-row{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff;border:1px solid #ebebeb;border-radius:10px;padding:14px 18px;transition:border-color .15s}.history-row:hover{border-color:#bbb}.history-row-main{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1 1 auto;background:none;border:none;padding:0;margin:0;cursor:pointer;text-align:left;font-family:inherit}.history-row-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.btn-delete{background:none;border:1px solid #f0d0d0;border-radius:6px;padding:5px 12px;font-size:12px;font-weight:500;color:#c33;cursor:pointer;transition:background .15s,border-color .15s}.btn-delete:hover{background:#fdf0f0;border-color:#e0a0a0}.review-screen>.btn-delete{align-self:flex-end;padding:8px 18px}.history-note-preview{font-size:14px;color:#1a1a1a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-date{font-size:12px;color:#999}.status-badge{font-size:12px;font-weight:600;padding:4px 10px;border-radius:20px;white-space:nowrap;flex-shrink:0}.status-approved{background:#eafaf0;color:#1a8a4a}.status-draft{background:#f5f5f5;color:#999}.chart-value{font-size:13px;line-height:1.5;color:#1a1a1a;padding:7px 9px;min-height:30px}.raw-note-text{font-size:13px;line-height:1.6;color:#555;white-space:pre-wrap}.review-tabs{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid #ebebeb;margin-bottom:-12px}.review-tabs::-webkit-scrollbar{display:none}.review-tab{display:flex;align-items:center;gap:6px;background:none;border:none;border-bottom:2px solid transparent;padding:8px 12px;font-size:13px;font-weight:500;color:#888;cursor:pointer;white-space:nowrap;transition:color .15s,border-color .15s}.review-tab:hover{color:#1a1a1a}.review-tab-active{color:#1a1a1a;border-bottom-color:#1a1a1a}.review-tab-count{font-size:11px;font-weight:600;background:#f0f0f0;color:#555;border-radius:10px;padding:1px 7px}.review-tab-warning .review-tab-count{background:#fdecec;color:#c33}.review-tab-body{display:flex;flex-direction:column;gap:14px;animation:tab-fade .2s ease}@keyframes tab-fade{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}.review-screen-stacked .approval-bar{position:sticky;bottom:0;z-index:2}.review-screen .review-screen{gap:24px}.plan-empty{font-size:13px;color:#999;padding:24px 0;text-align:center}.plan-problems{padding-left:18px;display:flex;flex-direction:column;gap:8px;font-size:13px;line-height:1.5;color:#333}.plan-evidence{color:#777;font-size:13px;line-height:1.5}.plan-source{display:inline-block;font-size:11px;color:#666;background:#f3f3f3;border-radius:4px;padding:1px 6px;margin-left:4px}.plan-line{font-size:13px;line-height:1.5;color:#333;margin-bottom:12px}.plan-line:last-child{margin-bottom:0}.plan-label{display:block;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;color:#999;margin-bottom:4px}.plan-rows{display:flex;flex-direction:column}.plan-row{padding:10px 0;border-bottom:1px solid #f2f2f2}.plan-row:first-child{padding-top:0}.plan-row:last-child{border-bottom:none;padding-bottom:0}.plan-row-head{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:13px;color:#1a1a1a;margin-bottom:2px}.plan-row-head strong{font-weight:600;flex:1 1 auto;min-width:0}.plan-tag{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.4px;background:#f0f0f0;color:#555;border-radius:4px;padding:2px 6px;flex-shrink:0}.plan-tag-stat{background:#fdecec;color:#c33}.plan-tag-urgent{background:#fff3e0;color:#b45f06}.sbar-row{display:flex;gap:12px;font-size:13px;line-height:1.55;color:#333;padding:8px 0}.sbar-letter{flex-shrink:0;width:26px;height:26px;border-radius:50%;background:#1a1a1a;color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center}.kb-switch{display:flex;align-items:center;gap:6px;background:none;border:none;padding:6px 8px;font-size:13px;color:#999;cursor:pointer;white-space:nowrap}.kb-switch-track{width:26px;height:15px;border-radius:8px;background:#ddd;position:relative;transition:background .2s}.kb-switch-thumb{position:absolute;top:2px;left:2px;width:11px;height:11px;border-radius:50%;background:#fff;transition:transform .2s}.kb-switch-on{color:#1a1a1a}.kb-switch-on .kb-switch-track{background:#1a1a1a}.kb-switch-on .kb-switch-thumb{transform:translate(11px)}.composer-toolbar{flex-wrap:wrap;gap:6px}.toolbar-btn-active{color:#1a1a1a;background:#ebebeb}.toolbar-btn-active{max-width:180px;overflow:hidden;text-overflow:ellipsis}.workspace-note-has-patient .composer-textarea{min-height:150px}.workspace-note-has-patient .note-screen{padding-top:32px}.patient-list,.patient-panel{width:100%;max-width:740px;margin:12px auto 0;background:#fff;border:1px solid #e8e8e8;border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:12px;animation:tab-fade .2s ease}.workspace-split .patient-list,.workspace-split .patient-panel{max-width:none}.patient-list-head{display:flex;align-items:center;gap:8px}.patient-search{flex:1;min-width:0;border:1px solid #e3e3e3;border-radius:10px;padding:9px 12px;font-size:14px;font-family:inherit;outline:none;background:#fafafa}.patient-search:focus{border-color:#bbb;background:#fff}.patient-rows{display:flex;flex-direction:column;max-height:320px;overflow-y:auto}.patient-row{display:flex;align-items:center;gap:10px;width:100%;background:none;border:none;border-radius:10px;padding:8px;text-align:left;cursor:pointer;font-family:inherit}.patient-row:hover{background:#f5f5f5}.patient-row-active{background:#f0f0f0}.patient-row-add .patient-avatar{background:#fff;border:1px dashed #bbb;color:#777}.patient-avatar{flex-shrink:0;width:32px;height:32px;border-radius:50%;background:#1a1a1a;color:#fff;font-size:13px;font-weight:600;display:flex;align-items:center;justify-content:center}.patient-row-main{display:flex;flex-direction:column;min-width:0;flex:1}.patient-row-name{font-size:14px;font-weight:600;color:#1a1a1a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.patient-row-meta{font-size:12px;color:#999}.patient-panel-head{display:flex;align-items:center;gap:10px}.patient-panel .review-tabs{margin-bottom:0}.patient-panel .chart-panel{padding:14px}.patient-panel .panel-title{margin-bottom:10px;padding-bottom:8px}.patient-tab-body{gap:10px}.vital-chips{display:flex;flex-wrap:wrap;gap:6px}.vital-chip{font-size:12px;background:#f5f5f5;border:1px solid #ebebeb;border-radius:20px;padding:4px 10px;color:#333}.vital-chip b{font-weight:600;color:#888;margin-right:2px}.patient-two-col{display:grid;grid-template-columns:1fr 1fr;gap:10px}@media (max-width: 600px){.patient-two-col{grid-template-columns:1fr}}.lab-table{width:100%;border-collapse:collapse;font-size:13px}.lab-table td{padding:6px 4px;border-bottom:1px solid #f2f2f2;color:#333;vertical-align:middle}.lab-table tr:last-child td{border-bottom:none}.lab-value{font-weight:600;white-space:nowrap}.lab-when{color:#aaa;font-size:12px;text-align:right;white-space:nowrap}.plan-tag-high,.plan-tag-critical{background:#fdecec;color:#c33}.plan-tag-low{background:#e8f0fd;color:#2a5bb8}.plan-tag-abnormal{background:#fff3e0;color:#b45f06}.plan-tag-normal{background:#eafaf0;color:#1a8a4a}.patient-notes{display:flex;flex-direction:column;gap:8px}.patient-note{border:1px solid #ebebeb;border-radius:10px;padding:10px 12px}.patient-note-head{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;background:none;border:none;padding:0;cursor:pointer;font-family:inherit}.patient-note-date{font-size:12px;font-weight:600;color:#555}.patient-note-text{font-size:13px;line-height:1.5;color:#444;margin-top:6px;white-space:pre-wrap}.patient-assign{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:6px;font-size:13px}.patient-assign label{font-weight:600;color:#555}.patient-assign select{font-family:inherit;font-size:13px;padding:5px 8px;border:1px solid #ddd;border-radius:8px;background:#fff}.patient-assign-hint{font-size:12px;color:#999}.patient-assign-warn{color:#b45f06}.history-patient{font-size:12px;font-weight:600;color:#555}.workspace-note-has-patient .note-screen{padding-bottom:0}.review-header>.btn-ghost{align-self:flex-start}.verify-banner{border:1px solid #f3c9c9;background:snow;border-radius:12px;padding:12px 14px}.verify-banner-title{font-size:13px;font-weight:700;color:#c33;margin-bottom:6px}.verify-banner ul{list-style:none;display:flex;flex-direction:column;gap:2px}.verify-banner button{background:none;border:none;padding:3px 0;text-align:left;font-family:inherit;font-size:13px;line-height:1.45;color:#444;cursor:pointer}.verify-banner button:hover{color:#1a1a1a;text-decoration:underline}.verify-banner b{font-weight:600}.chart-field-flag textarea,.chart-field-flag .chart-value{border-color:#e8a0a0!important;background:#fff5f5}.flag-note{color:#c33;font-weight:500;text-transform:none;letter-spacing:0}.list-item-flag{color:#c33}.lab-row-flag td{background:#fff5f5;color:#c33}.med-check{font-size:12px;color:#888;margin-top:-10px}.med-check-ok{color:#1a8a4a}.med-check-failed{color:#c33;font-weight:600}.btn-delete-drafts{align-self:flex-start;margin-top:6px}.btn-discard{color:#c33}.btn-discard:hover{background:#fdecec}.trial-meter{font-size:12px;font-weight:600;color:#555;background:#f2f2f2;border-radius:20px;padding:4px 10px;white-space:nowrap}.trial-meter-ended{background:#fdecec;color:#c33}.data-notice{font-size:12px;line-height:1.4;text-align:center;color:#8a5a00;background:#fff8e6;border-bottom:1px solid #f3e2b8;padding:6px 16px}@media (max-width: 860px){.workspace-split{align-items:stretch}.workspace-charts{width:100%}}@media (max-width: 600px){.app-header{padding:0 16px;gap:8px}.app-main{padding:0 16px}.header-right{gap:8px;min-width:0}.header-user{display:none}.trial-meter{font-size:11px;padding:3px 8px}.app-logo{font-size:15px}.note-screen{padding-top:24px}.chart-panel{padding:14px}.approval-bar{flex-wrap:wrap;gap:8px}}.forgot-link{display:block;margin:14px auto 0;background:none;border:none;font-size:13px;color:#888;cursor:pointer;font-family:inherit}.forgot-link:hover{color:#1a1a1a;text-decoration:underline}.forgot-note{margin-top:14px;font-size:13px;line-height:1.5;color:#555;background:#f5f5f5;border-radius:10px;padding:10px 12px}.legal-list{display:flex;flex-direction:column;gap:14px}.legal-item{border-left:3px solid #d66;padding-left:12px}.legal-issue{font-size:13px;font-weight:600;color:#1a1a1a;line-height:1.45}.legal-why{font-size:12px;color:#888;line-height:1.45;margin-top:2px}.legal-suggestion{font-size:13px;color:#333;line-height:1.5;margin-top:6px;background:#fff;border:1px solid #f0e0e0;border-radius:8px;padding:8px 10px}.legal-suggestion b{font-weight:600}.legal-quote{font-size:13px;font-style:italic;color:#c33;text-decoration:line-through;text-decoration-color:#e8a0a0;margin-bottom:4px}
