:root{font-family:Microsoft YaHei,PingFang SC,Noto Sans CJK SC,sans-serif;color:#26342f;background:#f5f7f6;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:0}.task-failure{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:18px 0;padding:16px;border-radius:8px;background:#fff2ed;color:#974b36}.task-failure p{margin:6px 0 0;overflow-wrap:anywhere}.task-failure .small-command{flex-shrink:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}input,select,textarea{outline-color:#3c827a}.app-shell{min-height:100vh}.brand-emblem{width:34px;height:34px;flex:0 0 34px;color:#fff;background:#347f75;display:grid;place-items:center;border-radius:7px}.avatar{width:27px;height:27px;flex:0 0 27px;display:grid;place-items:center;border-radius:50%;color:#397c72;background:#dcece7;font-size:12px;font-weight:700}.main-area{min-width:0}.topbar{height:70px;padding:0 max(28px,calc((100vw - 1320px)/2));background:#fff;border-bottom:1px solid #e5eae7;display:flex;align-items:center;justify-content:space-between;gap:20px;position:relative;z-index:30}.topbar-left,.topbar-right{display:flex;align-items:center;gap:14px;min-width:0}.topbar-brand{display:inline-flex;align-items:center;gap:10px;border:0;background:none;padding:0;color:#2b4138;font-size:16px;white-space:nowrap}.topbar-brand strong{font-weight:700}.topbar-divider{width:1px;height:26px;background:#e2e9e4;margin:0 7px}.patient-switch{display:flex;align-items:center;gap:9px;min-width:0}.patient-switch label,.patient-switch>span{font-size:12px;color:#7a8a80;white-space:nowrap}.patient-switch select{min-width:130px;max-width:220px;height:36px;padding:0 29px 0 11px;border:1px solid #dae5df;border-radius:5px;background:#f9fbfa;color:#294239;font-size:13px;font-weight:700;text-overflow:ellipsis}.account-menu-wrap{position:relative}.account-trigger{display:flex;align-items:center;gap:8px;padding:4px 6px 4px 4px;border:1px solid transparent;border-radius:6px;background:transparent;color:#61776a}.account-trigger:hover,.account-trigger[aria-expanded=true]{background:#f1f6f3;border-color:#dfeae3}.account-menu{position:absolute;top:calc(100% + 12px);right:0;width:220px;padding:8px;border:1px solid #e1e9e3;border-radius:7px;background:#fff;box-shadow:0 14px 38px #1e362627;z-index:32}.account-menu-label{padding:8px 11px 5px;color:#89978d;font-size:11px;font-weight:700}.account-menu button{display:flex;align-items:center;gap:11px;width:100%;padding:10px 11px;border:0;border-radius:5px;background:transparent;color:#53695b;text-align:left;font-size:13px}.account-menu button:hover,.account-menu button.active{background:#ebf5ef;color:#287369}.menu-check{margin-left:auto}.account-menu-divider{height:1px;background:#ebefec;margin:6px 3px}.menu-scrim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:29;border:0;background:transparent;cursor:default}.demo-badge{font-size:11px;font-weight:700;color:#9f6643;background:#fbefe4;padding:6px 9px;border-radius:4px;white-space:nowrap}.user-avatar{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#e0e7ec;color:#516d7c;font-size:12px;font-weight:700;overflow:hidden}.user-avatar img,.profile-avatar-preview img{width:100%;height:100%;object-fit:cover}.profile-avatar-editor{display:flex;align-items:center;gap:15px;padding-bottom:5px}.profile-avatar-editor>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.profile-avatar-preview{width:60px;height:60px;flex:0 0 60px;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:#e0e7ec;color:#516d7c;font-size:22px}.avatar-upload{cursor:pointer}.workspace{min-height:calc(100vh - 70px)}.content{min-width:0;padding:38px 28px 70px;max-width:1376px;margin:0 auto;width:100%}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:31px}.eyebrow{color:#568b80;font-size:11px;font-weight:800;display:block;margin-bottom:10px}h1,h2,h3,p{margin-top:0}h1{font-size:25px;line-height:1.25;margin-bottom:10px;font-weight:700}.page-heading p{margin-bottom:0;color:#8a9790;font-size:12px}.heading-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.primary-button,.secondary-button{min-height:36px;display:inline-flex;justify-content:center;align-items:center;gap:7px;border-radius:5px;padding:8px 13px;font-size:13px;font-weight:700;white-space:nowrap}.primary-button{background:#347f75;border:1px solid #347f75;color:#fff;text-decoration:none}.primary-button:hover:not(:disabled){background:#276e64}.secondary-button{background:#fff;border:1px solid #d9e3de;color:#46635a}.secondary-button:hover:not(:disabled){background:#f1f6f3}.stat-strip{background:#fff;border:1px solid #e7ece9;border-radius:7px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:31px}.stat-strip>div{padding:21px 24px;min-width:0;display:flex;flex-direction:column;gap:6px}.stat-strip>div+div{border-left:1px solid #edf0ee}.stat-strip span{color:#83918a;font-size:12px}.stat-strip strong{font-size:22px;line-height:1.3;white-space:nowrap;font-weight:700;overflow:hidden;text-overflow:ellipsis}.stat-strip strong em{font-size:13px;font-style:normal}.stat-strip small{color:#a5afa9;font-size:11px}.stat-strip .accent-number{color:#c77b4b}.overview-grid{max-width:980px}.section-block{min-width:0}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.section-heading .eyebrow{margin-bottom:7px}h2{font-size:17px;line-height:1.4;margin:0}h3{font-size:14px;margin:0}.text-command,.small-command{border:0;background:none;color:#388075;font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:6px 0;white-space:nowrap}.text-command:hover,.small-command:hover{color:#215e56}.record-row{width:100%;min-height:73px;display:flex;align-items:center;gap:13px;text-align:left;border:0;border-bottom:1px solid #e8edeb;background:transparent;padding:11px 4px;color:inherit}.record-row:hover{background:#eef4f1}.episode-row{gap:10px}.episode-row-main{flex:1;min-width:0;display:flex;align-items:center;gap:13px;border:0;background:transparent;color:inherit;padding:0;text-align:left}.timeline-actions{display:flex;justify-content:flex-start;margin-top:16px}.overview-timeline-action{display:flex;justify-content:flex-start;margin:0 0 16px}.records-timeline{margin-bottom:28px}.record-icon{width:38px;height:38px;flex:0 0 38px;border-radius:6px;background:#e6f0eb;color:#3b8377;display:grid;place-items:center}.record-copy{min-width:0;flex:1;display:grid;gap:6px}.record-copy strong{font-size:13px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.record-copy small{color:#8c9992;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status{font-size:11px;background:#e9edeb;color:#7c8982;white-space:nowrap;padding:5px 8px;border-radius:4px}.status-ok{background:#e5f1eb;color:#337d62}.status-review{background:#fbefdf;color:#ac7141}.row-arrow{color:#b9c4be;flex:0 0 auto}.full-section{background:#fff;border:1px solid #e7ece9;border-radius:7px;padding:23px 26px}.list-tools{display:flex;align-items:center;gap:12px;margin-bottom:10px;flex-wrap:wrap}.search-box{display:flex;align-items:center;gap:9px;border:1px solid #dae4de;background:#f8faf9;border-radius:5px;height:36px;padding:0 11px;color:#87958d;width:min(380px,100%)}.search-box input{border:0;background:transparent;outline:0;width:100%;min-width:0;font-size:12px}.record-filter{height:36px;border:1px solid #dae4de;border-radius:5px;background:#fff;color:#536b5e;padding:0 9px;font-size:12px}.list-count{color:#94a098;font-size:11px;white-space:nowrap;margin-left:auto}.metric-tabs{display:flex;gap:6px;overflow:auto;margin-bottom:16px;scrollbar-width:none}.metric-tabs button{color:#64746a;background:transparent;border:1px solid #dfe8e2;border-radius:5px;padding:8px 14px;white-space:nowrap;font-size:12px}.metric-tabs button.active{background:#347f75;border-color:#347f75;color:#fff}.chart-area{height:245px;margin:18px 0 25px}.chart-area .empty{height:100%}.latest-value{font-size:18px;font-weight:700}.list-title{border-top:1px solid #edf0ee;padding-top:20px}.data-row{border-bottom:1px solid #edf0ee;min-height:47px;display:grid;grid-template-columns:130px minmax(90px,1fr) 1fr;align-items:center;gap:14px;font-size:12px}.data-row:last-child{border-bottom:0}.data-row span,.data-row small{color:#8a9790}.data-row strong{font-size:13px}.medication-heading{flex-wrap:wrap}.medication-heading p{margin:0}.medication-row{padding:12px 0}.medication-copy{display:grid;gap:5px;overflow-wrap:anywhere}.medication-context{font-size:12px}.medication-fields{border:0;margin:0;min-width:0}.medication-fields>label{display:grid;gap:7px;color:#5d7164;font-size:12px;font-weight:700;min-width:0}@media(max-width:760px){.data-row.medication-row small{display:block;grid-column:1 / -1}}.member-row{display:flex;gap:10px;align-items:center;border-bottom:1px solid #edf0ee;padding:11px 0}.member-row>span:nth-child(2){flex:1;display:grid;gap:3px}.member-row strong{font-size:13px}.member-row small{font-size:11px;color:#8c9992}.member-permission{width:118px;flex-shrink:0}.admin-page{max-width:1160px}.admin-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border-top:1px solid #dfe8e2;border-bottom:1px solid #dfe8e2;margin-bottom:34px}.admin-stats>div{padding:19px 16px;display:flex;flex-direction:column;gap:7px}.admin-stats>div+div{border-left:1px solid #e7ece9}.admin-stats span{color:#73847a;font-size:12px}.admin-stats strong{color:#2d5547;font-size:23px}.admin-section{margin:0 0 38px}.admin-section-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:13px}.admin-section-head .search-box{background:#fff}.admin-password-display{border-top:1px solid #dfe8e2;border-bottom:1px solid #dfe8e2;padding:15px 4px;font:14px/1.5 Consolas,monospace;color:#2d5547;overflow-wrap:anywhere;-webkit-user-select:text;user-select:text}.admin-profiles{border-top:1px solid #dfe8e2}.admin-profile-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 4px;border-bottom:1px solid #e7ece9}.admin-profile-row>div{display:grid;gap:4px;min-width:0}.admin-profile-row strong{font-size:13px}.admin-profile-row small{color:#84938a;font-size:11px;overflow-wrap:anywhere}.admin-password-form{display:flex;align-items:end;gap:12px;flex-wrap:wrap;border-top:1px solid #dfe8e2;padding-top:16px}.admin-password-form label{display:grid;gap:7px;color:#52655a;font-size:12px;font-weight:700;flex:1 1 210px;max-width:290px}.admin-password-form input{width:100%;min-height:38px;border:1px solid #d7e2dc;border-radius:5px;background:#fff;padding:8px 10px;font-size:13px}.admin-password-form .secondary-button{min-height:38px}.admin-table-wrap{overflow-x:auto;border-top:1px solid #dfe8e2;border-bottom:1px solid #dfe8e2}.admin-table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}.admin-table th{color:#74867b;font-weight:600;padding:13px 12px;white-space:nowrap;background:#edf2ef}.admin-table td{padding:15px 12px;border-top:1px solid #e7ece9;white-space:nowrap}.admin-table td:first-child strong{font-size:13px}.admin-role{display:inline-flex;gap:3px;align-items:center;color:#287369;margin-left:8px}.admin-status{color:#9a5c47}.admin-status.is-active{color:#2e7a59}.admin-actions{display:flex;align-items:center;gap:13px}.admin-profile-row .small-command{min-height:32px;gap:6px}.admin-empty{color:#84938a;font-size:12px;padding:18px 12px;margin:0}.admin-log{border-top:1px solid #dfe8e2;margin-top:13px}.admin-log>div{display:flex;gap:25px;padding:13px 4px;border-bottom:1px solid #e7ece9;font-size:12px}.admin-log time{color:#84938a;min-width:145px}.admin-error{color:#a44d43;font-size:13px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.admin-success{color:#287369;font-size:13px}@media(max-width:800px){.admin-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-stats>div{border-bottom:1px solid #e7ece9}.admin-section-head{align-items:stretch;flex-direction:column}}@media(max-width:500px){.admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-log>div{display:grid;gap:3px}}.empty{min-height:160px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#91a099;gap:8px;font-size:12px}.empty strong{color:#67786e;font-size:13px}.empty span{max-width:320px}.no-patient{display:grid;justify-items:center;padding:80px 0}.detail-layer{position:fixed;top:0;right:0;bottom:0;left:0;z-index:45}.detail-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;border:0;background:#14251b66;animation:backdropIn .3s ease both}.detail-panel{position:absolute;top:0;right:0;width:66.6667vw;min-width:600px;height:100vh;height:100dvh;border-left:1px solid #dce6de;background:#fff;box-shadow:-20px 0 55px #122b1c26;display:flex;flex-direction:column;animation:drawerIn .36s cubic-bezier(.2,.75,.2,1) both}.detail-top{height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 15px;border-bottom:1px solid #e9eeeb;font-size:12px;font-weight:700}.icon-button{width:29px;height:29px;border:0;border-radius:4px;background:transparent;color:#6b7b72;display:inline-grid;place-items:center;flex:0 0 auto}.icon-button:hover{background:#e9f1ed;color:#347f75}.detail-scroll{flex:1;min-height:0;overflow:auto;padding:30px clamp(26px,6vw,96px) 70px}.detail-scroll>*{max-width:850px;margin-left:auto;margin-right:auto}.detail-eyebrow{font-size:11px;color:#4e877b;margin-bottom:10px}.detail-eyebrow span{padding:0 4px;color:#b4c3bb}.detail-scroll h2{font-size:20px;line-height:1.35;margin-bottom:7px}.detail-meta{font-size:11px;color:#89978e}.detail-field{display:grid;gap:8px;color:#668476;font-size:11px;font-weight:700}.detail-field select{width:100%;min-height:36px;border:1px solid #dfe8e2;border-radius:5px;background:#fff;color:#344b3d;padding:6px 8px}.detail-edit{display:grid;gap:12px}.detail-edit label{display:grid;gap:6px;color:#668476;font-size:11px;font-weight:700}.detail-edit input,.detail-edit select{min-height:36px;width:100%;min-width:0;border:1px solid #dfe8e2;border-radius:5px;padding:7px 9px;color:#344b3d;background:#fff;font-size:12px}.symptom-summary-editor{display:grid;gap:10px}.symptom-summary-editor textarea{width:100%;min-height:120px;padding:10px 12px;border:1px solid #dfe8e2;border-radius:5px;color:#344b3d;font-size:12px;line-height:1.6;resize:vertical}.symptom-summary-editor .primary-button{justify-self:end}.batch-progress{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#eaf2ef;border:1px solid #d6e5dd;border-radius:6px;padding:13px 17px;margin-bottom:16px}.batch-progress>div{display:grid;gap:4px;min-width:0}.batch-progress strong{font-size:13px}.batch-progress span{color:#5d786c;font-size:11px;line-height:1.5}.selected-files{display:grid;max-height:170px;overflow:auto;border-top:1px solid #e9eeeb}.selected-files>div{display:flex;align-items:center;gap:8px;padding:9px 0;border-bottom:1px solid #edf0ee;min-width:0;color:#547a6a}.selected-files span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.selected-files small{color:#8d9991;font-size:11px;white-space:nowrap}.episode-timeline{border-left:2px solid #d8e8df;margin:25px 0 0 7px}.episode-event{position:relative;display:grid;grid-template-columns:110px minmax(0,1fr);gap:15px;padding:0 0 28px 22px}.episode-event:before{content:"";position:absolute;left:-7px;top:5px;width:12px;height:12px;border-radius:50%;background:#347f75;border:2px solid #fff}.episode-event time{color:#87958d;font-size:12px}.episode-event .eyebrow{margin:0 0 5px}.episode-event strong,.episode-title{font-size:13px;font-weight:700}.episode-title{display:inline-flex;align-items:center;gap:5px;border:0;padding:0;background:transparent;color:#287369;text-align:left}.episode-event p{margin:7px 0 0;white-space:pre-wrap;color:#687b70;font-size:12px;line-height:1.6}.episode-institution{margin-top:5px;color:#627d71;font-size:12px;line-height:1.5}.timeline-edit{display:flex;align-items:stretch;gap:12px;margin-top:8px;width:100%}.timeline-edit textarea{flex:1;min-width:0;min-height:96px;padding:8px 10px;border:1px solid #dfe8e2;border-radius:5px;color:#687b70;font-size:12px;line-height:1.6;resize:vertical}.timeline-edit-actions{display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-start;gap:5px}.detail-section{padding-top:24px;margin-top:24px;border-top:1px solid #ecf0ed}.detail-section h3{margin-bottom:14px}.detail-section .section-heading h3{margin:0}.description-text{font-size:12px;line-height:1.7;white-space:pre-wrap;margin:0}.attachment-row{display:flex;align-items:center;gap:9px;padding:9px 0;border-bottom:1px solid #f0f2f0;color:#498a7f}.attachment-row>span{min-width:0;flex:1;display:grid;gap:3px}.attachment-row strong{font-size:11px;color:#3d4e45;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.attachment-row small{font-size:10px;color:#97a49b}.ocr-text{font:11px/1.65 Consolas,Microsoft YaHei,sans-serif;white-space:pre-wrap;word-break:break-word;background:#f5f8f6;border:1px solid #e5ece7;border-radius:5px;padding:13px;max-height:200px;overflow:auto}.ocr-editor{display:block;width:100%;min-height:200px;max-height:none;resize:vertical;margin-bottom:10px}.muted{color:#91a098;font-size:12px;line-height:1.6}.tiny{font-size:11px}.fact-list{display:grid;gap:12px}.fact{display:grid;gap:5px}.fact label{color:#668476;font-size:11px;font-weight:700}.fact input{min-height:34px;border:1px solid #dfe8e2;border-radius:5px;padding:7px 9px;width:100%;font-size:12px}.fact small{color:#9aa69f;line-height:1.4;font-size:10px}.uncertainties{border-left:3px solid #dea467;background:#fdf7ed;padding:11px 12px;margin-top:16px;font-size:11px}.uncertainties strong{color:#9d6d3e}.uncertainties p{color:#936f4d;margin:6px 0 0;line-height:1.5}.confirm-button{width:100%;margin-top:20px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;background:#1b2c2680;display:grid;place-items:center;padding:18px}.modal{width:min(560px,100%);max-height:min(90vh,780px);overflow:auto;background:#fff;border-radius:7px;box-shadow:0 20px 70px #10221a33}.modal-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e9eeeb;padding:17px 21px}.modal-header h2{font-size:16px}.form-body{padding:22px;display:grid;gap:17px}.form-body>label,.form-grid label{display:grid;gap:7px;color:#5d7164;font-size:12px;font-weight:700;min-width:0}.form-body input:not([type=file]),.form-body select,.form-body textarea{border:1px solid #dce5df;border-radius:5px;padding:9px 10px;color:#2c3e34;background:#fff;width:100%;min-width:0;font-size:13px;font-weight:400}.form-body input:not([type=file]),.form-body select{min-height:37px}.form-body textarea{resize:vertical}.candidate-list{display:grid;gap:5px;max-height:190px;overflow:auto}.candidate-list button{display:flex;align-items:center;gap:9px;width:100%;padding:8px 10px;border:1px solid #e2eae5;border-radius:5px;color:#344b3d;background:#fff;text-align:left;font-size:13px}.candidate-list button span:nth-child(2){flex:1}.candidate-list button.selected{border-color:#7cad9d;background:#eef6f2}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.input-hint{color:#9ba9a0;font-weight:400}.upload-zone{display:grid;justify-items:center;text-align:center;gap:5px;border:1px dashed #b9d1c4;border-radius:6px;background:#f7faf8;padding:21px;color:#438579!important;cursor:pointer}.upload-zone span{max-width:100%;color:#97a69c;font-size:11px;font-weight:400;word-break:break-all}button.upload-zone{width:100%}.modal-footer{border-top:1px solid #e9eeeb;display:flex;justify-content:flex-end;gap:8px;padding:14px 21px}.toast{position:fixed;right:20px;bottom:20px;z-index:100;display:flex;align-items:center;gap:14px;padding:9px 10px 9px 14px;border:1px solid #dce7df;background:#fff;border-radius:6px;box-shadow:0 7px 26px #122b1c20;color:#43594a;font-size:12px;max-width:min(400px,calc(100vw - 32px))}.auth-screen{min-height:100vh;display:grid;place-items:center;padding:24px;color:#66776d;font-size:13px}.auth-box{width:min(100%,400px);background:#fff;border:1px solid #e3eae5;padding:30px;border-radius:7px;display:grid;gap:18px}.auth-box h1{margin:0;font-size:23px;color:#294239}.auth-box p{margin:0;color:#829087}.auth-tabs{display:flex;width:100%;border-bottom:1px solid #e3eae5}.auth-tabs button{flex:1;border:0;border-bottom:2px solid transparent;background:transparent;padding:10px;color:#7b8c82}.auth-tabs button.active{border-bottom-color:#347f75;color:#276e64;font-weight:700}.auth-form{display:grid;gap:15px;width:100%}.auth-form label{display:grid;gap:7px;font-size:12px;font-weight:700;color:#52655a}.auth-form input,.auth-form select{width:100%;min-height:39px;border:1px solid #d7e2dc;border-radius:5px;background:#fff;padding:8px 10px;font-size:13px;color:#26342f}.auth-form .primary-button{width:100%;margin-top:3px}.auth-box>.text-command{justify-self:start}.member-heading{justify-content:flex-start}.candidate-match{display:flex;align-items:center;gap:10px;padding:10px;color:#355f50;font-size:12px}.candidate-match>span:nth-child(2){flex:1}.form-error{color:#b35d4c;font-size:12px}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.detail-panel .detail-top{flex:0 0 56px}@keyframes drawerIn{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes backdropIn{0%{opacity:0}to{opacity:1}}@media(max-width:1150px){.content{padding:32px 29px 65px}.stat-strip>div{padding:17px}}@media(max-width:900px){.detail-panel{width:min(720px,88vw);min-width:0}.detail-scroll{padding:25px 36px 60px}}@media(max-width:680px){.topbar{height:62px;padding:0 16px;gap:8px}.topbar-left,.topbar-right{gap:8px}.topbar-brand strong,.topbar-divider,.patient-switch label{display:none}.patient-switch select{min-width:0;width:min(43vw,220px)}.workspace{min-height:calc(100vh - 62px)}.content{padding:27px 18px 70px}.page-heading{margin-bottom:26px}.page-heading h1{font-size:22px}.heading-actions{justify-content:flex-start;margin-top:18px}.stat-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-strip>div{padding:15px}.stat-strip>div:nth-child(3){border-left:0;border-top:1px solid #edf0ee}.stat-strip>div:nth-child(4){border-top:1px solid #edf0ee}.stat-strip strong{font-size:20px}.record-row{gap:9px}.record-icon{width:33px;height:33px;flex-basis:33px}.row-arrow{display:none}.status{font-size:10px}.full-section{padding:16px}.detail-panel{width:100vw}.detail-scroll{padding:24px 20px 60px}.toast{bottom:20px}.page-heading .heading-actions,.episode-heading .heading-actions{justify-content:flex-start}.heading-actions .primary-button,.heading-actions .secondary-button{white-space:normal}.episode-event{grid-template-columns:1fr;gap:5px}.episode-event time{font-size:11px}.episode-heading{display:block}}@media(max-width:420px){.topbar{padding:0 12px}.patient-switch select{width:min(42vw,170px)}.episode-row{flex-wrap:wrap}.episode-row-main{flex:1 1 100%}.episode-row>.small-command{margin-left:auto;padding:4px 0}.content{padding:23px 13px 65px}.page-heading h1{font-size:20px}.primary-button,.secondary-button{font-size:12px;padding:7px 10px}.stat-strip>div{padding:12px}.stat-strip strong{font-size:18px}.record-copy strong{font-size:12px}.record-copy small{font-size:10px}.data-row{grid-template-columns:85px 1fr}.data-row small{display:none}.form-grid{grid-template-columns:1fr}.search-box{width:100%}}@media(max-width:360px){.patient-switch select{width:34vw}.demo-badge{display:none}}@media(prefers-reduced-motion:reduce){.detail-panel,.detail-backdrop{animation-duration:.01ms}}.personnel-select{position:relative;min-width:130px;width:180px;max-width:220px}.themed-select{position:relative;width:100%;min-width:0}.personnel-options.themed-options{position:fixed;z-index:150;animation:none}.themed-options svg{flex-shrink:0}.select-validation{position:absolute;opacity:0;width:1px!important;height:1px;min-height:0!important;padding:0!important;pointer-events:none}.personnel-trigger{width:100%;min-height:37px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #dce5df;border-radius:5px;padding:9px 10px;color:#2c3e34;background:#fff;font-size:13px;font-weight:400;text-align:left;transition:border-color .16s,box-shadow .16s}.personnel-trigger>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.personnel-trigger svg{flex-shrink:0;transition:transform .22s var(--motion-ease)}.personnel-trigger[aria-expanded=true]{border-color:#7cad9d;box-shadow:0 0 0 3px #347f7510}.personnel-trigger[aria-expanded=true] svg{transform:rotate(180deg)}.personnel-options{position:absolute;z-index:35;top:calc(100% + 6px);left:0;width:100%;min-width:180px;max-height:320px;overflow-y:auto;background:#fff;border:1px solid #dce5df;border-radius:5px;padding:5px;box-shadow:0 12px 30px #1e36261c;animation:health-menu-enter .18s var(--motion-ease)}.personnel-options button{display:flex;align-items:center;gap:8px;width:100%;min-height:37px;border:0;border-radius:4px;padding:9px 6px;background:#fff;color:#2c3e34;font-size:13px;font-weight:400;text-align:left;transition:background-color .16s}.personnel-options button span{flex:1;min-width:0;overflow-wrap:anywhere}.personnel-options button.highlighted,.personnel-options button:hover{background:#eef6f2;color:#287369}.personnel-options button[aria-selected=true]{color:#287369}.personnel-options button.new-personnel{margin-top:4px;border-top:1px solid #e9eeeb;color:#388075;border-radius:0 0 4px 4px}.episode-card{position:relative;border-bottom:1px solid #e8edeb;border-radius:7px;transition:background-color .65s ease,box-shadow .65s ease}.episode-card.is-expanded{background:#fff;box-shadow:0 5px 24px #347f750a}.episode-card>.episode-row{border-bottom:0;padding:14px 12px;cursor:pointer;border-radius:7px}.episode-row-main{display:block;flex:1;min-width:0}.episode-row-main small{display:block;margin-top:5px;color:#91a097;font-size:11px}.episode-name{display:flex;align-items:center;gap:8px;min-width:0;min-height:29px}.episode-toggle{border:0;background:transparent;padding:3px 0;text-align:left;min-width:0;color:#2c4438}.episode-toggle strong{font-size:13px;font-weight:700;overflow-wrap:anywhere}.episode-name .icon-button{color:#388075;animation:health-menu-enter .24s var(--motion-ease)}.episode-chevron{transition:transform .7s cubic-bezier(.22,.8,.25,1)}.is-expanded .episode-chevron{transform:rotate(180deg)}.episode-reveal{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .85s cubic-bezier(.22,.8,.25,1),opacity .55s ease}.episode-card.is-expanded>.episode-reveal{grid-template-rows:1fr;opacity:1}.episode-reveal-inner{min-height:0;overflow:hidden}.episode-expanded-content{padding:8px 90px 5px 54px;transform:translateY(-12px);transition:transform .85s cubic-bezier(.22,.8,.25,1)}.is-expanded .episode-expanded-content{transform:translateY(0)}.episode-inline-actions{display:grid;grid-template-rows:1fr;margin-bottom:22px;transition:grid-template-rows .7s cubic-bezier(.22,.8,.25,1),margin-bottom .7s cubic-bezier(.22,.8,.25,1)}.episode-inline-actions-inner{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;min-height:0;overflow:hidden}.episode-inline-actions-inner>button{flex-shrink:0}.episode-status-slot,.episode-header-slot{flex:0 0 138px;width:138px;height:36px}.episode-card.is-closed .episode-inline-actions{grid-template-rows:0fr;margin-bottom:0}.episode-batch{width:100%;height:36px}.episode-card>.episode-status-action{position:absolute;width:138px;min-height:36px;border-radius:6px;z-index:2;transition:background-color .16s,box-shadow .16s}.episode-card.is-closed .episode-creation-button,.episode-card.is-action-flying .episode-creation-button{visibility:hidden;opacity:0;pointer-events:none}.episode-action-flight{position:fixed;z-index:90;margin:0;pointer-events:none;visibility:visible;opacity:1;transform-origin:center;background:#eef6f2;border-radius:6px;box-shadow:0 4px 15px #347f7520}.episode-card.is-action-flying .episode-status-action{background:#eef6f2;box-shadow:0 0 18px #347f7520}.episode-expanded-content .episode-timeline{margin-top:0}.episode-event{opacity:0;transform:translateY(-8px);transition:opacity .6s ease,transform .75s cubic-bezier(.22,.8,.25,1)}.is-expanded .episode-event{opacity:1;transform:translateY(0);transition-delay:80ms}.is-expanded .episode-event:nth-child(2){transition-delay:.14s}.is-expanded .episode-event:nth-child(3){transition-delay:.2s}.is-expanded .episode-event:nth-child(n+4){transition-delay:.26s}.avatar-crop-backdrop{z-index:100}.avatar-crop-modal{width:min(480px,100%)}.avatar-crop-modal .modal-header h2{margin-left:0}.avatar-crop-modal .form-body p{margin:0;font-size:12px;line-height:1.7}.avatar-crop-stage{position:relative;margin:0 auto;max-width:100%;overflow:hidden;background:#edf3ef;border-radius:7px;-webkit-user-select:none;user-select:none}.avatar-crop-stage img{display:block;width:100%;height:100%;pointer-events:none}.avatar-crop-circle{position:absolute;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 999px #122b1c77,0 0 0 1px #ffffff80 inset;background:transparent;padding:0;cursor:grab;touch-action:none;transition:left .12s linear,top .12s linear,width .16s var(--motion-ease),height .16s var(--motion-ease)}.avatar-crop-stage.is-dragging .avatar-crop-circle{cursor:grabbing;transition:none}.avatar-crop-circle:focus-visible{outline:3px solid #6ce0bc;outline-offset:2px}.avatar-crop-modal input[type=range]{padding:0;border:0;background:transparent;accent-color:#347f75}@media(prefers-reduced-motion:reduce){.episode-reveal,.episode-expanded-content,.episode-chevron,.personnel-trigger svg,.avatar-crop-circle{transition-duration:.01ms}}@media(max-width:680px){.patient-switch>span{display:none}.personnel-select{min-width:0;width:min(43vw,180px)}}.page-navigation{margin-bottom:16px}.page-navigation button:disabled{opacity:.4;cursor:default}.danger-command{color:#b35d4c}.modal-header h2{flex:1;margin-left:12px}:root{--motion-ease: cubic-bezier(0, 0, .3, 1);--motion-fast: .16s}.page-transition{animation:health-page-enter .24s var(--motion-ease)}.account-menu{transform-origin:top right;animation:health-menu-enter .18s var(--motion-ease)}.modal-backdrop{animation:backdropIn .16s ease-out}.modal{animation:health-dialog-enter .2s var(--motion-ease)}.toast{animation:health-menu-enter .2s var(--motion-ease)}.record-row,.admin-profile-row{transition:background-color var(--motion-fast) ease,border-color var(--motion-fast) ease,box-shadow var(--motion-fast) ease}.record-row:hover,.admin-profile-row:hover{background-color:#f6faf8;box-shadow:0 2px 8px #29423908}.primary-button,.secondary-button,.small-command,.icon-button,.account-trigger,.account-menu button,.metric-tabs button{transition:background-color var(--motion-fast) ease,color var(--motion-fast) ease,box-shadow var(--motion-fast) ease,transform var(--motion-fast) var(--motion-ease)}.primary-button:not(:disabled):active,.secondary-button:not(:disabled):active,.icon-button:not(:disabled):active{transform:scale(.98)}button:focus-visible{outline:2px solid #3c827a;outline-offset:3px}.delete-dialog{z-index:110}.delete-form{display:grid;grid-template-columns:1fr}.delete-form p{margin:0;color:#61776a;font-size:13px;line-height:1.8}.danger-button{background:#a95547;border-color:#a95547}.danger-button:hover{background:#94473b}.detail-title-row{display:flex;align-items:center;justify-content:space-between;gap:20px}.detail-title-row h2{flex:1;min-width:0;margin:0;overflow-wrap:anywhere}.detail-title-row .record-delete{flex-shrink:0;margin:0}.detail-title-row+.detail-meta{margin-top:10px;line-height:1.7}.detail-summary{margin-top:22px}.detail-summary h3{font-size:12px;color:#668476;margin-bottom:10px}.summary-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px;margin-bottom:10px}.summary-heading h3{margin:0}.summary-provenance{color:#668476;font-size:11px}.ai-summary-comparison{margin-top:12px;padding:12px;border:1px solid #dfe8e2;border-radius:5px;background:#f7faf8}.ai-summary-comparison summary{cursor:pointer;color:#337b6c;font-size:12px}.ai-summary-comparison p{margin:10px 0 0;font-size:12px;line-height:1.7}.ai-summary-text{white-space:pre-wrap;overflow-wrap:anywhere;color:#344b3d}.admin-user-tools{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.admin-create-user-action{margin:0 0 16px}.admin-create-user-button{background:#e5eee8;border-color:#cdded3;color:#287369}.admin-create-user-button:hover:not(:disabled){background:#dce9e0}.heading-with-help{display:flex;align-items:center;gap:10px}.heading-with-help h1,.heading-with-help h2{margin:0}.overview-timeline-action{align-items:center;gap:12px}.usage-help{color:#627d71;font-size:13px;line-height:1.9}.usage-help p{margin:0}.usage-help ol{margin:0;padding-left:22px}.usage-help li+li{margin-top:12px}.admin-profile-tools{display:flex;align-items:center;gap:18px;margin-bottom:24px}.admin-record-row{width:100%;text-align:left;background:transparent;border:0}@keyframes health-page-enter{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes health-menu-enter{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}@keyframes health-dialog-enter{0%{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}.loading-state{display:flex;align-items:center;gap:9px;color:#627d71;padding:18px 0;font-size:13px}.load-error{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;margin-bottom:16px;border-radius:6px;background:#fdf7ed;color:#936f4d;font-size:13px}.metric-row-actions{display:flex;align-items:center;gap:8px;margin-left:auto}@media(min-width:761px){.data-row:has(.metric-row-actions){grid-template-columns:130px minmax(90px,1fr) minmax(0,1fr) auto}}.detail-panel{min-width:min(600px,100%);max-width:100%}.detail-scroll,.modal,.modal-footer,.form-body,.data-row>*{min-width:0}.detail-meta,.uncertainties p,.task-item,.data-row small,.attachment-row strong{overflow-wrap:anywhere}@media(max-width:760px){.content{padding:26px 16px 50px}.episode-card>.episode-row{flex-wrap:wrap;gap:8px}.episode-row-main{flex-basis:calc(100% - 56px)}.episode-header-slot{margin-left:46px}.episode-expanded-content{padding:8px 12px 5px}.episode-event{grid-template-columns:minmax(80px,.3fr) minmax(0,1fr)}.topbar{padding:12px 16px}.topbar-left{gap:8px;flex-wrap:wrap}.topbar-divider{display:none}.detail-title-row,.data-row{flex-wrap:wrap}.detail-title-row .record-delete{margin-left:auto}.modal-footer{flex-wrap:wrap}}.modal-fields{margin:0;padding:0;border:0;min-width:0}.pending-save-note{margin:0;padding:12px 21px;background:#f1f7f5;color:#347f75;font-size:12px;line-height:1.6}.attachment-upload-state{padding:12px;margin:16px 0;border-radius:7px;background:#f1f7f5;font-size:12px;overflow-wrap:anywhere}.attachment-upload-state p{margin:0 0 6px}.attachment-upload-state>div{display:flex;gap:12px;margin-top:10px}
