/* 【样式说明】医生H5：页面布局样式。保持控件点击区域、信息层次与窄屏换行；样式不承担业务权限判断。 */
/* 布局规则：:root；作用域按选择器限定，尺寸及状态以以下声明为准。 */
:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#253c32;background:#f5f7f2;font-size:15px;line-height:1.6}*{box-sizing:border-box}body{margin:0}a{color:#285f4f;text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #cedbce;border-radius:9px;background:#fff;color:#285f4f;padding:10px 17px;cursor:pointer;line-height:1.45}button:hover,.button:hover{background:#eaf2e9;text-decoration:none}button.primary,.button.primary{background:#285f4f;color:#fff;border-color:#285f4f}button:disabled{opacity:.5;cursor:wait}input,select,textarea{width:100%;border:1px solid #cdd8cb;background:#fff;color:inherit;border-radius:8px;padding:11px}textarea{min-height:110px;resize:vertical}input[type=checkbox]{width:auto}input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible{outline:3px solid #aacaba;outline-offset:2px}label{display:block;font-weight:550;margin:0 0 18px}label input,label select,label textarea{margin-top:6px}fieldset{border:0;padding:0;margin:0;min-width:0}.shell{display:grid;grid-template-columns:238px 1fr;min-height:100vh}aside{background:#eaf0e7;border-right:1px solid #dae3d7;padding:32px 23px;position:sticky;top:0;height:100vh}.brand{font-size:20px;line-height:1.5;font-weight:650;margin-bottom:36px}.eyebrow{font-size:11px;letter-spacing:3px;color:#718475;margin-bottom:10px}nav{display:grid;gap:10px}nav a{padding:12px;border-radius:10px}nav a[aria-current=page]{background:#285f4f;color:white}.aside-note{margin-top:38px;font-size:12px;color:#6b7c6e}header{display:flex;align-items:center;justify-content:space-between;padding:19px 38px;background:#fff;border-bottom:1px solid #e4e9de;gap:15px}main{min-width:0}#content{max-width:1440px;margin:auto;padding:32px 38px 65px}h1{font-size:30px;line-height:1.35;margin:0 0 10px}h2{font-size:21px;margin:0 0 15px}h3{font-size:17px}p{margin:8px 0 18px}.muted,small{color:var(--text-muted,#52685b)}.page-head,.row,.actions{display:flex;justify-content:space-between;align-items:center;gap:14px}.actions{justify-content:flex-start;flex-wrap:wrap;margin:20px 0}.card{background:#fff;border:1px solid #e0e7dc;border-radius:16px;padding:25px;margin-bottom:22px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.stat{font-size:33px;font-weight:600}.pill{display:inline-block;border-radius:5px;padding:3px 10px;font-size:12px;background:#eaf2e5;color:#426644}.notice{background:#edf3e9;border:1px solid #dce7d3;border-radius:9px;padding:14px;margin:16px 0;white-space:pre-wrap;overflow-wrap:anywhere}.notice:empty{display:none}.error{background:#fff0ec;border-color:#ecc8be;color:#a3402e}.warn{background:#fff7e7;color:#785d2a;border-color:#eddeba}.text{white-space:pre-wrap;overflow-wrap:anywhere}.empty,.loading,.boot{text-align:center;color:#70816f;padding:45px}.item{border-top:1px solid #e4e9de;padding:18px 0}.item:first-child{border:0}.item .actions{margin-bottom:0}.clinical{display:grid;grid-template-columns:minmax(0,1fr) 315px;gap:22px;align-items:start}.clinical-side{position:sticky;top:20px}.readonly textarea,.readonly input,.readonly select{background:#f3f5ef}.sticky{position:sticky;bottom:0;padding:12px;background:rgba(245,247,242,.97);border-top:1px solid #d8e2d3;z-index:3}.login{max-width:500px;margin:9vh auto;padding:30px}.login h1{font-size:30px}details{margin:0 0 20px;border:1px solid #dee5d8;border-radius:10px;padding:16px}summary{cursor:pointer;font-weight:600;margin-bottom:12px}.source img{max-width:100%;max-height:240px;object-fit:contain;background:#f2f5ef;border-radius:8px}.source .rotation-90{transform:rotate(90deg)}.source .rotation-180{transform:rotate(180deg)}.source .rotation-270{transform:rotate(270deg)}dialog{max-width:900px;width:calc(100% - 32px);max-height:85vh;border:1px solid #dce5d8;border-radius:16px;padding:27px}dialog::backdrop{background:#16261b99}.dialog-head{display:flex;justify-content:space-between;gap:20px;margin-bottom:18px}.dialog-img{max-width:100%;max-height:65vh;object-fit:contain}.filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.filters label{margin:0}.filters .wide{grid-column:1/-1}.checkbox{display:flex;gap:10px;align-items:start;font-weight:400}.checkbox input{margin-top:7px}table{width:100%;border-collapse:collapse}td,th{text-align:left;padding:12px;border-bottom:1px solid #e3e9dd}.table-wrap{overflow:auto}footer{font-size:12px;color:#7b8975;margin-top:30px}@media(max-width:1080px){.clinical{grid-template-columns:1fr}.clinical-side{position:static}.shell{grid-template-columns:200px 1fr}#content{padding:25px}.filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:680px){.shell{display:block}aside{position:static;height:auto;padding:18px}.brand{margin:0 0 13px;font-size:18px}nav{display:flex;flex-wrap:wrap;gap:5px}nav a{padding:8px}.aside-note{display:none}header{padding:14px 20px}#content{padding:21px 15px}.grid,.grid.three,.filters{grid-template-columns:1fr}.card{padding:20px}.row,.page-head{align-items:flex-start;flex-wrap:wrap}h1{font-size:26px}.login{margin:4vh auto;padding:20px}}
/* 布局规则：.filters [data-message]；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.filters [data-message]{grid-column:1/-1}
/* 布局规则：[hidden]；作用域按选择器限定，尺寸及状态以以下声明为准。 */
[hidden]{display:none!important}
/* 布局规则：#diagnoses-section；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#diagnoses-section{padding-bottom:22px;margin-bottom:24px;border-bottom:1px solid #dae3d7}
/* 布局规则：.recent-diagnoses；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.recent-diagnoses{margin:12px 0 2px}.recent-diagnoses #recent-diagnosis-panel{margin-top:10px;max-width:680px;border:1px solid #dce5d8;border-radius:11px;background:#fafcf9;overflow:hidden}.recent-diagnoses [data-recent-message]{margin:0;padding:10px 13px}.recent-diagnosis-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 13px;border-top:1px solid #e6ece3}.recent-diagnosis-row span{min-width:0;overflow-wrap:anywhere}.recent-diagnosis-row button{flex:none}
/* 布局规则：.diagnosis-item；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.diagnosis-item{padding:16px 0;border-top:1px solid #e4e9de;overflow-wrap:anywhere}
/* 布局规则：.diagnosis-item .row strong；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.diagnosis-item .row strong{min-width:0;overflow-wrap:anywhere}
/* 布局规则：.diagnosis-item p；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.diagnosis-item p{margin:7px 0 10px}
/* 布局规则：.diagnosis-item .actions；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.diagnosis-item .actions{margin:12px 0 0}
/* 布局规则：.diagnosis-item .actions button；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.diagnosis-item .actions button{font-size:13px;padding:8px 12px}
/* 布局规则：.history-source；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.history-source{display:flex;flex-direction:column;align-items:flex-start;width:100%;text-align:left;margin:10px 0;overflow-wrap:anywhere}
/* 布局规则：.history-source span；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.history-source span{font-size:13px;color:var(--text-muted,#52685b)}
/* 来源页：分组卡片，空来源收成一句，避免大段空说明 */
#ai-history-sources,#ai-diagnosis-candidates,#ai-followup-sources{margin:0}
.ai-source-group{margin:0 0 12px;padding:10px 12px;border:1px solid #e2eadf;border-radius:10px;background:#fbfcf9}
.ai-source-group>h3{margin:0 0 4px;font-size:13.5px;color:#234a39}
.ai-source-group>h4,.ai-source-other-body>h4{margin:10px 0 4px;font-size:12.5px;color:#5a7264}
.ai-source-group>.muted{margin:0 0 8px;font-size:12px}
.ai-source-item{margin:0 0 8px;padding:0 0 8px;border-bottom:1px solid #e8eee6}
.ai-source-item:last-of-type{margin:0;padding:0;border:0}
.ai-source-item>h4{margin:0 0 4px;font-size:13px;color:#2b4639}
.ai-source-item>.text,.ai-source-line{margin:0;font-size:12.5px;line-height:1.45}
.ai-source-line{margin:0 0 6px}
.ai-source-other{padding:0;background:#fff}
.ai-source-other>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:6px;min-height:38px;padding:8px 12px;font-size:13px;font-weight:650;color:#234a39}
.ai-source-other>summary::-webkit-details-marker{display:none}
.ai-source-other>summary::before{content:'▸';font-size:11px;color:#7d8d84}
.ai-source-other[open]>summary::before{transform:rotate(90deg);display:inline-block}
.ai-source-other-body{padding:0 12px 10px}
.ai-source-empty{margin:0 0 8px;font-size:12px}
/* 布局规则：#diagnosis-editor .notice；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#diagnosis-editor .notice{font-size:13px}
/* 布局规则：.dialog-head；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.dialog-head{align-items:flex-start}
/* 布局规则：.dialog-head h2；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.dialog-head h2{min-width:0;overflow-wrap:anywhere}
/* 布局规则：.dialog-head button；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.dialog-head button{flex-shrink:0;white-space:nowrap}
/* 布局规则：#history-snapshot；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#history-snapshot{overflow-wrap:anywhere}
/* 布局规则：.timeline-event；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.timeline-event{border-left:4px solid #aacaba;overflow-wrap:anywhere}
/* 布局规则：.timeline-event h2；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.timeline-event h2{margin-bottom:0;min-width:0}
/* 布局规则：.timeline-event .pill；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.timeline-event .pill{white-space:normal}
/* 布局规则：.timeline-event .actions；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.timeline-event .actions{margin-bottom:0}
/* 布局规则：.timeline-diagnoses；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.timeline-diagnoses{border-top:1px solid #e4e9de;border-bottom:1px solid #e4e9de;margin:16px 0;padding:8px 0}
/* 布局规则：.timeline-diagnoses p；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.timeline-diagnoses p{margin:8px 0}
/* 布局规则：.timeline-followup；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.timeline-followup{margin:15px 0}
/* 布局规则：.timeline-followup summary；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.timeline-followup summary{margin:0}
/* 布局规则：.timeline-followup[open] summary；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.timeline-followup[open] summary{margin-bottom:14px}
/* 布局规则：#timeline-as-of；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#timeline-as-of{font-size:13px;overflow-wrap:anywhere}
/* 布局规则：.record-text-field；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.record-text-field{margin-bottom:25px}
/* 质控快捷：默认折叠成一行，展开后再跳转补齐 */
.record-review-shortcuts{margin:10px 0 12px;padding:0;border:1px solid #e4d8b8;border-radius:10px;background:#fffaf0}
.record-review-shortcuts[hidden]{display:none}
.record-review-shortcuts>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px;min-height:40px;padding:8px 12px;font-size:13px;font-weight:650;color:#6b5232}
.record-review-shortcuts>summary::-webkit-details-marker{display:none}
.record-review-shortcuts>summary::after{content:'展开';margin-left:auto;font-size:12px;font-weight:500;color:#9a8460}
.record-review-shortcuts[open]>summary::after{content:'收起'}
.record-review-shortcuts strong{font-size:13px;color:#6b5232}
.record-review-links{display:flex;flex-wrap:wrap;gap:7px;margin:0;padding:0 12px 10px}
.record-review-links button{font-size:13px;padding:7px 11px;border-color:#dfcda4;background:#fff;min-height:34px}
.record-review-shortcuts>p{margin:0;padding:0 12px 10px;font-size:12px}
/* 布局规则：.visit-time-field；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.visit-time-field{grid-column:1/-1;display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:12px 14px;background:#f5f8f3;border:1px solid #dce5d8;border-radius:10px}
/* 布局规则：.visit-time-field label；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.visit-time-field label{min-width:230px;flex:0 1 330px}
/* 布局规则：.visit-time-field .muted；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.visit-time-field .muted{flex:1 1 250px;margin:0;font-size:12px}
/* 布局规则：.record-text-field label；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.record-text-field label{margin-bottom:8px}
/* 布局规则：.record-text-field>button；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.record-text-field>button{font-size:13px;padding:7px 12px}
/* 布局规则：.phrase-item；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.phrase-item{border-top:1px solid #dce5d8;padding:18px 0;overflow-wrap:anywhere}
/* 布局规则：.phrase-item:first-child；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.phrase-item:first-child{border-top:0}
/* 布局规则：.phrase-item h3；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.phrase-item h3{margin:0 0 6px}
/* 布局规则：.phrase-item details；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.phrase-item details{margin:10px 0}
/* 布局规则：.phrase-item .actions；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.phrase-item .actions{margin:12px 0 0}
/* 布局规则：#phrase-selection:not(:empty),#phrase-conflict:not(:empty)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#phrase-selection:not(:empty),#phrase-conflict:not(:empty){padding:20px 0;margin-top:18px;border-top:2px solid #aacaba;overflow-wrap:anywhere}
/* 布局规则：#phrase-selection .text,#phrase-conflict .text；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#phrase-selection .text,#phrase-conflict .text{max-height:40vh;overflow:auto;padding:12px;background:#f5f7f2;border-radius:8px}
/* 布局规则：#phrase-editor fieldset[disabled]；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#phrase-editor fieldset[disabled]{opacity:.8}
/* 布局规则：.image-frame；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.image-frame{position:relative;aspect-ratio:1;width:100%;max-width:600px;margin:auto;overflow:hidden;background:#f2f5ef;border-radius:9px}.image-frame img{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:contain}.image-frame .rotation-90{transform:rotate(90deg)}.image-frame .rotation-180{transform:rotate(180deg)}.image-frame .rotation-270{transform:rotate(270deg)}.source-edit{padding-top:12px;border-top:1px dashed #dce5d8}.source-edit button{font-size:13px;padding:8px 11px}#comparison select{min-width:0;text-overflow:ellipsis}#comparison .grid>section{min-width:0}#group-management .actions{margin:0}
/* 布局规则：.patient-care；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.patient-care{margin-top:18px;padding-top:16px;border-top:1px solid #dce5d8}.patient-care h3{margin:0}.patient-care .row{align-items:center}.patient-care .actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.patient-care .actions button{margin:0}.patient-care-history{margin-top:14px;padding:12px;border-radius:10px;background:#f5f8f3}.patient-care-history p{margin:8px 0;overflow-wrap:anywhere}

/* Private media is loaded only after an explicit local or authenticated preview. */
/* 布局规则：.private-media；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.private-media{display:block;width:100%;max-width:100%;margin:14px auto;background:#edf2e9;border-radius:10px}video.private-media{max-height:65vh;object-fit:contain}audio.private-media{min-height:48px}#media-capture{scroll-margin-top:20px}#media-capture-body[hidden]{display:none}#media-capture-body{padding-top:16px;border-top:1px solid #dce5d8}#media-candidate{overflow-wrap:anywhere;min-width:0}#media-candidate:empty{display:none}#media-candidate:not(:empty){margin:16px 0;padding:14px;background:#f6f8f3;border-radius:10px}#media-capture input[type=file]{width:100%;min-width:0}#media-capture .actions{flex-wrap:wrap}#media-capture .actions button{white-space:normal}

/* 布局规则：.export-options；作用域按选择器限定，尺寸及状态以以下声明为准。 */

.export-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 20px}#record-export-form fieldset{margin:18px 0;padding:12px}#pdf-result{margin-top:16px}@media(max-width:600px){.export-options{grid-template-columns:1fr}}

/* 布局规则：.statistics-cards；作用域按选择器限定，尺寸及状态以以下声明为准。 */

.statistics-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:22px 0}.statistics-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:20px;background:#fff;border:1px solid var(--line,#dce5df);border-radius:16px;min-width:0}.statistics-card .stat{color:#205b4e}.statistics-card .muted{font-size:12px;margin-top:8px}.statistics-distribution{display:grid;grid-template-columns:minmax(95px,1fr) 2fr auto;align-items:center;gap:16px;width:100%;text-align:left;margin:10px 0;padding:14px}.statistics-bar{height:8px;background:#edf2ee;border-radius:8px;overflow:hidden}.statistics-bar span{display:block;height:100%;background:#438570;border-radius:8px}.statistics-day{display:flex;justify-content:space-between;gap:16px;width:100%;margin:8px 0}.statistics-day strong,.statistics-distribution strong{white-space:nowrap}#statistics-details{scroll-margin-top:20px}@media(max-width:650px){.statistics-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.statistics-card{padding:16px;font-size:13px}.statistics-card .stat{font-size:30px}.statistics-distribution{grid-template-columns:1fr auto;gap:10px}.statistics-bar{display:none}}
/* 布局规则：progress.statistics-bar；作用域按选择器限定，尺寸及状态以以下声明为准。 */
progress.statistics-bar{display:block;width:100%;height:8px;border:0;appearance:none}.statistics-bar::-webkit-progress-bar{background:#edf2ee;border-radius:8px}.statistics-bar::-webkit-progress-value{background:#438570;border-radius:8px}.statistics-bar::-moz-progress-bar{background:#438570;border-radius:8px}@media(max-width:650px){progress.statistics-bar{display:none}}
/* 布局规则：.my-stats-filters；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.my-stats-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.my-stats-filters label{margin:0}.my-stats-filters .wide{grid-column:1/-1}.my-stats-filters .actions{margin:0}.my-stats-filters p{margin:0}.my-stats-coverage{font-size:13px;line-height:1.65}.my-stats-card{display:flex;flex-direction:column;align-items:flex-start;min-width:0;min-height:125px;padding:17px 19px;text-align:left;background:#fff;border:1px solid #dce5df;border-radius:15px}.my-stats-card .stat{font-size:29px;line-height:1.25;color:#205b4e}.my-stats-card strong{font-size:14px;margin:8px 0 4px}.my-stats-card small{font-size:12px;color:var(--text-muted,#52685b)}.my-stats-card.unavailable{background:#f7f9f5}.my-stats-card.unavailable .stat{font-size:22px;color:var(--text-muted,#52685b)}.my-stats-tabs{display:flex;gap:8px;overflow:auto;margin:20px 0}.my-stats-tabs button{white-space:nowrap;flex:1;min-height:42px}.my-stats-tabs button[aria-current=page]{background:#285f4f;border-color:#285f4f;color:#fff}.my-stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.my-stats-grid>.card{min-width:0}.my-stats-line{display:block;width:100%;height:140px}.my-stats-axis{display:flex;justify-content:space-between;color:#6a7c6b;font-size:12px}.my-stats-periods{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}.my-stats-periods button{padding:5px 8px;font-size:12px}.my-stats-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.my-stats-actions>.button{min-height:66px;justify-content:flex-start}.my-stats-action{display:flex;flex-direction:column;align-items:flex-start;text-align:left;min-height:70px}.my-stats-action strong{font-size:24px;color:#205b4e}.my-stats-action small{color:var(--text-muted,#52685b)}.my-stats-empty-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.my-stats-empty-grid>div{padding:18px;border:1px solid #e0e7dc;border-radius:12px;background:#f8faf6}.my-stats-empty-grid p{font-size:20px;color:#687d6c;margin:12px 0 4px}.my-stats-empty-grid small{color:var(--text-muted,#52685b)}.my-stats-grid .statistics-distribution{grid-template-columns:minmax(80px,1fr) minmax(50px,1fr) auto;gap:8px;padding:10px}.my-stats-grid .statistics-distribution strong{font-size:12px}@media(max-width:900px){.my-stats-grid{grid-template-columns:1fr}}@media(max-width:650px){.my-stats-card{padding:14px;min-height:116px}.my-stats-card .stat{font-size:24px}.my-stats-tabs button{flex:0 0 auto;font-size:13px;padding:8px 11px}.my-stats-actions,.my-stats-empty-grid{grid-template-columns:1fr}.my-stats-grid .statistics-distribution{grid-template-columns:1fr auto}.my-stats-grid .statistics-bar{display:none}}
/* 布局规则：.my-stats-treatment-groups；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.my-stats-treatment-groups{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.my-stats-treatment-groups .my-stats-action{min-width:0;min-height:64px;padding:8px 10px;gap:2px}.my-stats-treatment-groups .my-stats-action strong{font-size:20px;line-height:1.15}.my-stats-treatment-groups .my-stats-action span{font-size:13px;line-height:1.3;overflow-wrap:anywhere}.my-stats-treatment-groups .my-stats-action small{font-size:11px}@media(max-width:650px){.my-stats-treatment-groups{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* 布局规则：.my-stats-skin-groups .my-stats-action,.my-stats-quality-gaps .my-stats-action；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.my-stats-skin-groups .my-stats-action,.my-stats-quality-gaps .my-stats-action{min-width:0;overflow-wrap:anywhere}@media(max-width:650px){.my-stats-skin-groups,.my-stats-quality-gaps{grid-template-columns:repeat(2,minmax(0,1fr))}.my-stats-skin-groups .my-stats-action,.my-stats-quality-gaps .my-stats-action{padding:10px;font-size:13px}}

/* 布局规则：.followup-qr；作用域按选择器限定，尺寸及状态以以下声明为准。 */

.followup-qr{max-width:100%;width:280px;height:auto}.private-image{max-width:100%;max-height:70vh;object-fit:contain}#generated-code{overflow-wrap:anywhere;min-height:85px}#collection-form fieldset{border:0;margin:0;padding:0;min-width:0}

/* 布局规则：.photo-local-preview；作用域按选择器限定，尺寸及状态以以下声明为准。 */

.photo-local-preview{display:block;max-width:100%;max-height:24rem;object-fit:contain;margin:14px 0}#photo-capture{scroll-margin-top:20px;min-width:0}#photo-pending{overflow-wrap:anywhere}#photo-capture input[type=file]{min-width:0;max-width:100%}#photo-capture .actions button{white-space:normal}

/* Task panels retain the same form controls and only change their visibility. */
/* 布局规则：#encounter-workspace；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#encounter-workspace{min-width:0;padding-bottom:12px}.encounter-toolbar{position:sticky;top:0;z-index:4;background:rgba(245,247,242,.97);padding:10px 0 12px;border-bottom:1px solid #dce5d8;backdrop-filter:blur(8px)}#direct-photo-entry{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:0 0 10px;padding:12px 17px;border-radius:12px}#direct-photo-entry .actions{margin:0;gap:10px}#direct-photo-entry button{padding:10px 15px}#encounter-work-tabs,#record-section-tabs{display:flex;gap:8px;overflow:auto;scrollbar-width:thin}#encounter-work-tabs button,#record-section-tabs button{flex:1 0 auto;white-space:nowrap;min-height:43px}#encounter-work-tabs button[aria-selected=true]{background:#285f4f;color:#fff;border-color:#285f4f}#record-section-tabs{margin-bottom:20px;border-bottom:1px solid #dce5d8;padding-bottom:12px}#record-section-tabs button{padding:9px 13px;font-size:14px}#record-section-tabs button[aria-selected=true]{background:#e5eee1;border-color:#779577;font-weight:650}#encounter-work-panels{padding-top:20px;min-width:0}#encounter-work-panels .card{margin-bottom:18px}.record-section-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 22px}.record-section-grid .record-text-field{margin-bottom:18px}.record-section-grid .record-text-field textarea{min-height:120px}#diagnoses-section{grid-column:1/-1;margin-bottom:10px;padding-bottom:15px}.specialty-group{align-self:start;min-width:0;background:#fafbf8;margin:0 0 15px}.specialty-group>summary{font-size:15px}.encounter-footer{position:sticky;bottom:0;z-index:3;background:rgba(245,247,242,.98);border-top:1px solid #dce5d8;padding:10px 0 max(10px,env(safe-area-inset-bottom));backdrop-filter:blur(8px)}.encounter-footer .actions{margin:0;gap:10px}.encounter-footer .notice{margin:0 0 10px;padding:9px 13px;font-size:13px}.encounter-footer .notice:empty{display:none}#record-action-recovery{display:grid;gap:8px}#record-action-recovery .actions{margin:0}#record-action-recovery [data-action-message]{min-width:0;overflow-wrap:anywhere}.encounter-save-actions button{min-height:42px}#work-panel-materials #photo-capture{scroll-margin-top:145px}#work-panel-materials #sources{scroll-margin-top:145px}#patient-create-candidates{overflow-wrap:anywhere}.patient-duplicate-candidate p{font-size:13px;margin:6px 0}
/* 布局规则：dialog.live-camera；作用域按选择器限定，尺寸及状态以以下声明为准。 */
dialog.live-camera{width:min(900px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:20px;overflow:auto}.camera-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.camera-heading h2{margin:0;font-size:20px;min-width:0}.camera-heading button{flex-shrink:0}.camera-stage{display:flex;align-items:center;justify-content:center;background:#15251f;border-radius:12px;overflow:hidden;min-height:160px;margin:16px 0;max-height:55dvh}.camera-stage video,.camera-stage img{display:block;width:100%;height:auto;max-height:55dvh;object-fit:contain}#camera-video[hidden],#camera-still[hidden]{display:none!important}.camera-controls{display:flex;gap:10px;flex-wrap:wrap;position:sticky;bottom:-1px;background:#fff;padding:12px 0 0}.camera-controls button{flex:1;min-width:110px;min-height:44px}.live-camera #camera-message{margin:12px 0;padding:10px;font-size:14px}
/* 布局规则：@media(max-width:680px)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@media(max-width:680px){.encounter-toolbar{padding-top:7px}#direct-photo-entry{padding:10px;gap:8px;flex-wrap:wrap}#direct-photo-entry strong{font-size:13px;color:var(--text-muted,#52685b)}#direct-photo-entry .actions{width:100%;gap:8px}#direct-photo-entry button{flex:1;padding:10px 8px;font-size:14px}#encounter-work-tabs{gap:5px}#encounter-work-tabs button{padding:10px 8px;font-size:13px;min-width:0;flex:1 1 0}#record-section-tabs{gap:5px;margin-bottom:16px}#record-section-tabs button{flex:0 0 auto;font-size:13px;padding:8px 12px}.record-section-grid{grid-template-columns:1fr;gap:0}.record-section-grid .record-text-field textarea{min-height:48px}.encounter-save-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.encounter-save-actions button{font-size:13px;padding:9px 7px;min-width:0}.encounter-footer .actions{gap:7px}.encounter-footer .notice{max-height:90px;overflow:auto}#record-action-recovery{max-height:none;overflow:visible}#record-action-recovery [data-action-message]{max-height:3.4em;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}#record-action-recovery .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:7px}#record-action-recovery .actions button{min-width:0;min-height:44px;padding:8px 6px;font-size:13px;white-space:normal}#record-action-recovery [data-read-local],#record-action-recovery [data-discard-local]{grid-column:1/-1}#work-panel-materials #photo-capture,#work-panel-materials #sources{scroll-margin-top:170px}dialog.live-camera{padding:14px}.camera-stage{max-height:42dvh}.camera-stage video,.camera-stage img{max-height:42dvh}.camera-heading h2{font-size:18px}.camera-controls{padding-top:9px;gap:8px}.camera-controls button{font-size:14px}.live-camera .notice{font-size:13px;margin:10px 0}.patient-duplicate-candidate button{width:100%}}
/* 布局规则：@media(max-width:680px)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@media(max-width:680px){.shell.encounter-active aside{padding:12px 16px}.shell.encounter-active .brand{font-size:16px;line-height:1.3;margin-bottom:8px}.shell.encounter-active nav{display:flex;flex-wrap:nowrap;gap:4px;overflow-x:auto;max-width:100%;padding-bottom:3px}.shell.encounter-active nav a{flex:0 0 auto;padding:8px 10px;font-size:13px;white-space:nowrap}.shell.encounter-active header{padding:10px 16px}.shell.encounter-active #content{padding:16px 15px 48px}.shell.encounter-active .page-head{gap:8px}.shell.encounter-active .page-head h1{font-size:22px}.shell.encounter-active .page-head p{font-size:13px;margin:4px 0}.shell.encounter-active .page-head>.button{padding:8px 10px;font-size:13px}}
/* 布局规则：.encounter-more-actions；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.encounter-more-actions{margin:0;padding:0;border:0;min-width:0}.encounter-more-actions>summary{margin:0;padding:10px 14px;border:1px solid #cedbce;border-radius:9px;background:#fff;color:#285f4f;list-style:none;font-weight:550;cursor:pointer;text-align:center}.encounter-more-actions>summary::-webkit-details-marker{display:none}.encounter-more-actions>summary::after{content:' ⌄'}.encounter-more-actions[open]>summary::after{content:' ⌃'}.encounter-more-actions>div{display:flex;flex-wrap:wrap;gap:8px;padding-top:8px}.encounter-more-actions>div button{font-size:13px;min-height:42px}.encounter-more-actions>summary:focus-visible{outline:3px solid #aacaba;outline-offset:2px}
/* 布局规则：@media(max-width:680px)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@media(max-width:680px){.encounter-save-actions>.encounter-more-actions{grid-column:1/-1}.encounter-more-actions>summary{min-height:40px;padding:8px}.encounter-more-actions>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.encounter-more-actions>div button{white-space:normal}}

/* 布局规则：#saved-sources；作用域按选择器限定，尺寸及状态以以下声明为准。 */

#saved-sources{margin-top:20px;scroll-margin-top:155px}#saved-sources>summary{margin:0}#saved-sources[open]>summary{margin-bottom:12px}#saved-sources #source-list{min-width:0}#saved-sources .source{overflow-wrap:anywhere}

/* 布局规则：#patient-profile-editor,#patient-profile-history；作用域按选择器限定，尺寸及状态以以下声明为准。 */

#patient-profile-editor,#patient-profile-history{min-width:0;overflow-wrap:anywhere}#patient-profile-fields textarea{min-height:85px}#patient-profile-fields [name=reason]{min-height:70px}.profile-editor-actions{position:sticky;bottom:-1px;background:#fff;padding:12px 0;border-top:1px solid #dce5d8;z-index:1}#profile-differences:not(:empty){border-top:2px solid #aacaba;margin-top:20px;padding-top:15px}.profile-diff{border:1px solid #dce5d8;border-radius:10px;padding:13px;margin:12px 0}.profile-diff.different{background:#fff8e9;border-color:#e3d8b9}.profile-diff p{margin:5px 0 0;max-height:220px;overflow:auto}.profile-diff .grid{gap:12px;margin-top:8px}.profile-history-entry summary{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px}.profile-history-entry summary small{font-weight:400}.profile-history-fields{margin:15px 0;display:grid;grid-template-columns:130px minmax(0,1fr);gap:9px 16px}.profile-history-fields dt{font-weight:600}.profile-history-fields dd{margin:0;min-width:0;max-height:35vh;overflow:auto}.profile-history-entry .text{max-height:35vh;overflow:auto}@media(max-width:680px){.profile-diff .grid{grid-template-columns:1fr}.profile-diff .grid>div+div{border-top:1px solid #e8dfca;padding-top:10px}.profile-editor-actions button{flex:1;min-width:0;font-size:14px}.profile-history-fields{grid-template-columns:1fr;gap:4px}.profile-history-fields dd{margin-bottom:12px}.profile-history-entry{padding:13px}#patient-profile-editor>.notice{font-size:13px}}
/* 布局规则：.profile-diff-explanation；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.profile-diff-explanation{font-size:13px;color:#657661;margin:8px 0 12px}.profile-diff-actions{margin:12px 0;gap:8px}.profile-diff-actions button{font-size:14px;min-height:44px}#profile-diff-unchanged{margin:16px 0 0;padding:12px}#profile-diff-unchanged>summary{font-size:14px;margin:0}#profile-diff-unchanged[open]>summary{margin-bottom:10px}#profile-diff-unchanged .profile-diff:last-child{margin-bottom:0}@media(max-width:680px){.profile-diff-actions button{flex:1 1 190px;padding:10px 12px}#profile-differences h3{margin:0 0 10px}}
/* 布局规则：.ocr-quality-view；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.ocr-quality-view{min-width:0;margin:0 0 20px}.ocr-quality-message{font-size:14px;margin:6px 0}.ocr-quality-explanation{font-size:12px;line-height:1.55;margin:5px 0 10px}.ocr-quality-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0}.ocr-quality-toolbar button{font-size:13px;min-height:40px;padding:8px 13px}.ocr-quality-toolbar [data-ocr-quality-position]{font-size:12px;color:#66785d}.ocr-machine-text{max-height:min(36vh,300px);overflow:auto;overscroll-behavior:contain;white-space:pre-wrap;overflow-wrap:anywhere;padding:13px;background:#f6f8f3;border:1px solid #dce5d8;border-radius:10px;line-height:1.8}.ocr-machine-text mark{background:#fbe7a3;color:#493c1c;border-bottom:1px dotted #886b24;border-radius:2px;padding:0}.ocr-machine-text mark.ocr-uncertain-active{background:#f7cf68;outline:2px solid #8b6620;outline-offset:1px}.ocr-history-reviewed{max-height:300px;overflow:auto;overscroll-behavior:contain}.ocr-quality-view:focus-within .ocr-machine-text{scroll-margin:10px}@media(max-width:680px){.ocr-machine-text{max-height:32dvh;padding:10px}.ocr-quality-toolbar{gap:7px}.ocr-quality-toolbar button{min-height:42px}.ocr-quality-toolbar [data-ocr-quality-position]{flex-basis:100%}}
/* 布局规则：#modal:has(#ocr-review)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#modal:has(#ocr-review){height:min(800px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);padding:20px;overflow:hidden;flex-direction:column}#modal[open]:has(#ocr-review){display:flex}#modal:has(#ocr-review)>.dialog-head{flex-shrink:0;margin-bottom:12px;align-items:center}#modal:has(#ocr-review)>.dialog-head h2{margin:0}#ocr-review{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;overflow:hidden}.ocr-review-body{flex:1;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;padding:0 4px 12px 0;scroll-padding:12px}.ocr-review-intro>.notice{margin:0 0 8px;padding:10px 12px;font-size:13px}.ocr-review-meta{margin:0 0 12px;font-size:13px}.ocr-review-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start}.ocr-review-source,.ocr-review-fields{min-width:0}.ocr-source-heading,.ocr-history-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 9px}.ocr-source-heading h3,.ocr-history-heading h3{margin:0}.ocr-source-heading .actions{margin:0;gap:7px}.ocr-source-heading button,.ocr-history-heading button{font-size:13px;min-height:40px;padding:8px 12px}.ocr-review-fields label{font-size:14px;margin-bottom:12px}.ocr-review-fields [name=text]{min-height:168px;height:168px}.ocr-review-fields [name=reason]{min-height:76px;height:76px}.ocr-review-fields textarea{font-weight:400;scroll-margin:12px}.ocr-review-source .ocr-quality-view{margin-bottom:12px}.ocr-review-source .ocr-machine-text{max-height:260px}.ocr-history-heading{padding-top:12px;border-top:1px solid #dce5d8}.ocr-review-body #ocr-review-history>p{font-size:13px;margin:8px 0}.ocr-review-footer{flex-shrink:0;z-index:1;background:#fff;border-top:1px solid #dce5d8;padding:10px 0 0}.ocr-review-footer>.notice{font-size:12px;line-height:1.5;margin:0 0 8px;padding:8px 10px;max-height:64px;overflow:auto}.ocr-review-footer>.actions{margin:0;gap:10px}.ocr-review-footer .actions button{min-height:44px}.ocr-review-footer [id$="-warning"] .notice{margin:10px 0 8px;padding:10px;font-size:13px;max-height:100px;overflow:auto}.ocr-review-footer [id$="-warning"]>button{font-size:13px;margin:0 4px 5px 0}
/* 布局规则：@media(max-width:759px)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@media(max-width:759px){#modal:has(#ocr-review){width:calc(100% - 24px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);padding:14px}#modal:has(#ocr-review)>.dialog-head{margin-bottom:10px;gap:10px}#modal:has(#ocr-review)>.dialog-head h2{font-size:18px}.ocr-review-columns{grid-template-columns:minmax(0,1fr);gap:8px}.ocr-review-intro>.notice{font-size:12px;line-height:1.5;padding:8px 10px}.ocr-review-meta{margin-bottom:8px}.ocr-source-heading{margin-bottom:6px}.ocr-review-source .ocr-machine-text{max-height:180px}.ocr-review-fields [name=text]{height:126px;min-height:126px}.ocr-review-fields [name=reason]{height:70px;min-height:70px}.ocr-review-footer>.actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ocr-review-footer .actions button{font-size:13px;padding:8px 6px}.ocr-review-body{padding-bottom:12px}.ocr-history-heading button{font-size:12px;padding:8px}.ocr-quality-message{font-size:13px}.ocr-quality-toolbar{margin:8px 0}.ocr-review-footer{padding-top:8px;padding-bottom:env(safe-area-inset-bottom)}}
/* 布局规则：#paper-documents；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#paper-documents{min-width:0;border-bottom:1px solid #dce5d8;padding-bottom:18px;margin-bottom:18px;scroll-margin-top:170px}#paper-documents h3,#paper-documents h4{margin:0}.paper-doc-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.paper-doc-heading .actions,.paper-doc-actions{margin:8px 0;gap:8px}.paper-doc-help{font-size:13px;margin:6px 0 12px}#paper-document-list{max-height:230px;overflow:auto;overscroll-behavior:contain}.paper-document-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e2e8dd;padding:12px 0}.paper-document-row>div{min-width:0;overflow-wrap:anywhere}.paper-document-row p{font-size:12px;margin:3px 0}.paper-document-row button{flex-shrink:0}#paper-document-content{min-width:0;margin-top:16px}#paper-document-reader,#paper-document-editor{border:1px solid #dce5d8;border-radius:12px;padding:16px;background:#fafbf8;min-width:0}.paper-doc-actions button,#paper-documents .notice{font-size:13px}.paper-page-nav{display:flex;align-items:center;gap:10px}.paper-page-nav label{flex:1;min-width:0;font-size:12px;margin:0}.paper-page-nav button{flex-shrink:0}.paper-page-nav select{margin:3px 0 0}.paper-page-nav~.muted{font-size:13px;margin:8px 0}#paper-page-image{max-height:330px;overflow:auto;background:#f0f4ec;border-radius:9px;text-align:center}#paper-page-original{display:block;max-width:100%;max-height:320px;object-fit:contain;margin:auto}.paper-dissolve{margin:12px 0 0;font-size:13px}.paper-dissolve summary{margin:0}.paper-dissolve[open] summary{margin-bottom:8px}.paper-edit-page{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid #dce5d8}.paper-edit-page span{min-width:0;overflow-wrap:anywhere}.paper-edit-page .actions{flex-shrink:0;margin:0;gap:5px}.paper-edit-page button{font-size:12px;padding:7px 9px;min-height:36px}#paper-edit-order,#paper-existing-candidates{max-height:250px;overflow:auto;overscroll-behavior:contain}#paper-existing-pages{margin:12px 0}.paper-doc-heading p{font-size:13px;margin:5px 0}#paper-document-editor label{font-size:13px;margin-bottom:12px}#paper-document-editor>.actions{position:sticky;bottom:0;background:#fafbf8;padding:10px 0;margin:12px 0 0;border-top:1px solid #dce5d8}#paper-document-recovery{border:1px solid #e8dabd;border-radius:10px;padding:10px;margin-top:10px}#photo-document-target{margin-bottom:12px}#photo-document-target .notice{font-size:13px}
/* 布局规则：@media(max-width:680px)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@media(max-width:680px){#paper-documents button{font-size:13px;padding:9px 10px;min-height:42px}.paper-doc-heading{gap:7px}.paper-doc-heading .actions{width:100%}.paper-doc-heading .actions button{flex:1}#paper-document-reader,#paper-document-editor{padding:12px}.paper-page-nav{gap:7px}.paper-edit-page{display:block}.paper-edit-page .actions{margin:7px 0 0}.paper-doc-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.paper-doc-actions button{min-width:0}#paper-page-image{max-height:240px}#paper-page-original{max-height:230px}.paper-document-row{align-items:flex-start}#paper-document-list{max-height:220px}}

/* 布局规则：#paper-page-image .image-frame；作用域按选择器限定，尺寸及状态以以下声明为准。 */

#paper-page-image .image-frame{max-width:320px}#paper-page-original{position:absolute;inset:0;width:100%;height:100%;max-height:none}@media(max-width:680px){#paper-page-image .image-frame{max-width:230px}}

/* 布局规则：#batch-group-workspace；作用域按选择器限定，尺寸及状态以以下声明为准。 */

#batch-group-workspace{min-width:0}#batch-feedback{position:sticky;top:0;z-index:2}#batch-feedback:empty{display:none}.batch-columns{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px;align-items:start}.batch-columns .card{min-width:0}.batch-patient-list{max-height:440px;overflow:auto;border-top:1px solid #dce5d8}.batch-patient{display:flex;align-items:center;gap:12px;padding:12px 5px;margin:0;border-bottom:1px solid #dce5d8;cursor:pointer}.batch-patient input{width:20px;height:20px;flex-shrink:0}.batch-patient small{display:block;font-size:13px;color:#68786b;margin-top:5px}.batch-selected-list{display:flex;gap:8px;flex-wrap:wrap;max-height:180px;overflow:auto;margin-bottom:18px}.batch-selected-list button{padding:8px 10px}.batch-review-list{max-height:270px;overflow:auto;margin-bottom:14px}#batch-review h3{font-size:18px;margin-top:20px}#batch-submit{min-height:44px}#batch-recovery{border:2px solid #ddcca7}@media(max-width:720px){.batch-columns{grid-template-columns:1fr;gap:0}.batch-patient-list{max-height:330px}.batch-review-list{max-height:240px}.batch-columns .actions{flex-wrap:wrap}.batch-selected-list{max-height:140px}}
/* 布局规则：#tags-workspace；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#tags-workspace{min-width:0}#tag-feedback{position:sticky;top:0;z-index:2}#tag-editor{max-width:850px}.tag-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:420px;overflow:auto}.tag-choice{display:flex;gap:10px;align-items:center;padding:12px;border:1px solid #dce5dc;border-radius:10px;margin:0;overflow-wrap:anywhere}.tag-choice input{width:20px;height:20px;margin:0;flex-shrink:0}.tag-catalog{max-height:480px;overflow:auto}.tag-catalog .actions{margin:10px 0}.patient-tags-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}@media(max-width:680px){.tag-choices{grid-template-columns:1fr;max-height:360px}.tag-catalog{max-height:420px}}
/* 布局规则：#team-workspace；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#team-workspace{min-width:0;max-width:1000px}#team-workspace .card{margin-top:18px}#team-workspace input{max-width:600px}#team-workspace .item{overflow-wrap:anywhere}#team-message{position:sticky;top:0;z-index:2}#team-message:empty{display:none}#team-invite-preview:empty{display:none}#team-preview{border-top:1px solid #dce5d8;padding-top:20px;margin-top:20px}#team-recovery{border:2px solid #ddcca7}#team-workspace details{margin-top:20px}@media(max-width:680px){#team-workspace .actions{flex-wrap:wrap}#team-workspace input{width:100%}#team-workspace button{min-height:42px}}
/* 布局规则：#sharing-workspace；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#sharing-workspace{max-width:1100px;min-width:0}#sharing-message{position:sticky;top:0;z-index:3}#sharing-message:empty{display:none}#sharing-recovery{border:2px solid #ddcca7}.share-field-list{max-height:450px;overflow:auto;border:1px solid #dce5d8;padding:12px;border-radius:12px}.share-field-list details{padding:10px}.share-field-list summary label{margin:0}.share-field-list textarea{min-height:150px}.share-draw-frame{position:relative;display:table;max-width:100%;margin:16px 0;line-height:0;overflow:hidden;background:#f2f5ed}.share-draw-frame img{display:block;max-width:100%;max-height:440px;width:auto;height:auto;touch-action:none;user-select:none}.share-draw-frame span{position:absolute;border:2px solid #28b491;background:#38b39344;pointer-events:none;box-sizing:border-box}#share-photos img{display:block;max-width:100%;max-height:450px;width:auto;height:auto;margin:12px 0}#share-photos img:not([src]),.share-draw-frame img:not([src]){display:none}#share-events-list{max-height:340px;overflow:auto;overscroll-behavior:contain}#share-compose>.primary{position:sticky;bottom:10px}#sharing-workspace .card{overflow-wrap:anywhere}#sharing-workspace textarea{width:100%;box-sizing:border-box}@media(max-width:680px){#sharing-workspace .actions{flex-wrap:wrap}.share-field-list{max-height:360px}.share-draw-frame img,#share-photos img{max-height:350px}#sharing-workspace button{min-height:42px}#share-compose>.primary{width:100%}}

/* 布局规则：.history-search-match；作用域按选择器限定，尺寸及状态以以下声明为准。 */

.history-search-match{outline:2px solid #5a8565;background:#f1f6ea;border-radius:10px;padding:14px;scroll-margin:24px}#search-form [data-message]{position:sticky;bottom:0;z-index:2;background:#edf3e6}#search-form [data-message]:empty{display:none}

/* 布局规则：.image-quality；作用域按选择器限定，尺寸及状态以以下声明为准。 */

.image-quality{margin:6px 0 0;font-size:12.5px;line-height:1.5;overflow-wrap:anywhere;color:#5a7264}
.image-quality summary{cursor:pointer;list-style:none;min-height:28px}
.image-quality summary::-webkit-details-marker{display:none}
.image-quality.needs-review{margin-top:8px;padding:8px 10px;border:1px solid #ead9b0;border-radius:10px;background:#fffaf0;border-left:3px solid #9b7025;color:#70501e}
.image-quality.needs-review>summary{font-weight:600;color:#6b5232}
.image-quality p{margin:6px 0}
/* 已存资料卡片：标题一行、状态胶囊、主操作突出、少噪音元数据 */
#source-list{margin:0;min-width:0}
#source-list>.empty{padding:18px 8px;text-align:center;color:#7a8c7c;font-size:13px}
.source-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid #e2eadf;border-radius:12px;background:#fff}
.source-table{width:100%;min-width:560px;border-collapse:collapse;table-layout:fixed;margin:0;font-size:13px}
.source-table thead th{position:sticky;top:0;z-index:1;padding:9px 10px;background:#f3f7f1;color:#456656;font-weight:650;font-size:12px;text-align:left;border-bottom:1px solid #dce5d8;white-space:nowrap}
.source-table tbody td{padding:10px;vertical-align:top;border-bottom:1px solid #e8eee6;overflow-wrap:anywhere}
.source-table tbody tr:last-child td{border-bottom:0}
.source-table tbody tr:hover td{background:#fafcf8}
.source-col-kind{width:64px}
.source-col-time{width:24%}
.source-col-mark{width:22%}
.source-col-status{width:18%}
.source-col-actions{width:28%}
.source-kind{background:#eef4ec;color:#2f5a48;border-color:#dbe7d9;font-weight:600}
.source-status{background:#f3f5f1;color:#5a7264}
.source-status.is-ok{background:#e8f3eb;color:#2a6b48;border-color:#cfe3d5}
.source-status.is-bad{background:#fdf0ee;color:#9c4034;border-color:#f0d5cf}
.source-status.warn,.source-col-status .pill.warn{background:#fdf7e7;border-color:#ecdfbb;color:#7d6417}
.source-col-time time{display:block;font-weight:600;color:#234a39;line-height:1.35}
.source-row-label{display:block;margin-top:2px;font-size:11.5px;color:#7d8d84;line-height:1.35}
.source-col-mark,.source-col-status{color:#5a7264;line-height:1.45}
.source-col-status .pill{margin:0 4px 4px 0}
.source-tip{margin:6px 0 0;padding:0;font-size:12px;line-height:1.45;color:#7d8d84;background:none;border:0}
.source-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0}
.source-actions>button{min-height:32px;padding:5px 10px;font-size:12.5px}
.source-actions>button.primary{font-weight:600}
.source-actions-more{display:inline-flex;flex-wrap:wrap;gap:6px}
.source-actions-more>button{min-height:30px;padding:4px 8px;font-size:12px;color:#3f5a4a;background:#f7faf6;border-color:#d7e3d4}
.source-extra{min-width:0}
.source-extra:empty{display:none}
.source-extra>.notice:empty{display:none}
.source-extra>.notice:not(:empty),.source-extra>.source-edit,.source-extra>.image-quality,.source-extra>.source-tip{margin:8px 0 0}
.source-extra>.source-edit{gap:6px}
.source-extra>.source-edit>button{min-height:30px;padding:4px 8px;font-size:12px}
@media(max-width:680px){
 .source-table{min-width:0;font-size:12.5px}
 .source-table thead{display:none}
 .source-table,.source-table tbody,.source-table tr,.source-table td{display:block;width:100%}
 .source-table tbody tr{padding:10px 10px 8px;border-bottom:1px solid #e2eadf}
 .source-table tbody tr:last-child{border-bottom:0}
 .source-table tbody td{padding:3px 0;border:0}
 .source-col-kind{display:flex;align-items:center;gap:8px;margin-bottom:2px}
 .source-col-kind::after{content:attr(data-label)}
 .source-col-time time{font-size:13px}
 .source-col-actions .source-actions>button{flex:1 1 calc(50% - 6px)}
}

/* Medical record differences remain bounded inside the review dialog. */
/* 布局规则：#record-merge .merge-row；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#record-merge .merge-row{border:1px solid var(--border,#d9e2df);border-radius:10px;padding:12px;margin:12px 0;min-width:0}
/* 布局规则：#record-merge .merge-values；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#record-merge .merge-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
/* 布局规则：#record-merge pre；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#record-merge pre{font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;max-height:220px;overflow:auto;background:#f5f8f7;padding:10px;border-radius:6px}
/* 布局规则：@media(max-width:600px)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@media(max-width:600px){#record-merge .merge-values{grid-template-columns:1fr}}
/* Audio correction uses a bounded dialog, preserving the compact workstation. */
/* 布局规则：#transcript-review；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#transcript-review{display:flex;flex-direction:column;max-height:75dvh;min-height:0} .transcript-body{overflow:auto;min-height:0;padding-right:4px} .transcript-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}.transcript-columns>*{min-width:0}.transcript-raw{white-space:pre-wrap;overflow-wrap:anywhere;max-height:280px;overflow:auto;padding:12px;background:#f1f4ef;border-radius:10px;font:inherit}.transcript-footer{flex-shrink:0;border-top:1px solid #dce3dd;padding-top:12px;background:#fff}.transcript-columns textarea[name=text]{min-height:230px}.transcript-columns textarea[name=reason]{min-height:70px}.transcript-columns fieldset{padding:0;border:0;min-width:0}#transcript-player audio{width:100%;max-height:60px}
/* 布局规则：@media(max-width:700px)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@media(max-width:700px){.transcript-columns{grid-template-columns:minmax(0,1fr)}.transcript-columns textarea[name=text]{min-height:160px}.transcript-raw{max-height:160px}#transcript-review{max-height:80dvh}}
/* 布局规则：#modal:has(#transcript-review)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#modal:has(#transcript-review){height:min(800px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);padding:20px;overflow:hidden;flex-direction:column}#modal[open]:has(#transcript-review){display:flex}#modal:has(#transcript-review)>.dialog-head{flex-shrink:0;margin-bottom:12px;align-items:center}#modal:has(#transcript-review)>.dialog-head h2{margin:0}#transcript-review{flex:1;max-height:none;overflow:hidden}.transcript-body{flex:1;overscroll-behavior:contain;padding-bottom:12px}.transcript-footer>.notice{max-height:70px;overflow:auto;font-size:13px;line-height:1.5;margin:0 0 8px;padding:8px 10px}.transcript-footer>.actions{margin:0;gap:8px}.transcript-footer [hidden]{display:none}.transcript-footer #transcript-discard{max-height:180px;overflow:auto}
/* 布局规则：@media(max-width:759px)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@media(max-width:759px){#modal:has(#transcript-review){width:calc(100% - 24px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);padding:14px}#modal:has(#transcript-review)>.dialog-head h2{font-size:18px}.transcript-footer>.actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.transcript-footer button{font-size:13px;padding:8px 6px;min-height:44px}.transcript-footer{padding-bottom:env(safe-area-inset-bottom)}}
/* Keep close/export visible when a search result focuses a long historical source. */
/* 布局规则：#modal:has(#history-snapshot)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#modal:has(#history-snapshot){height:min(840px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);overflow:hidden;flex-direction:column;padding:20px}
/* 布局规则：#modal[open]:has(#history-snapshot)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#modal[open]:has(#history-snapshot){display:flex}
/* 布局规则：#modal:has(#history-snapshot)>.dialog-head,#modal:has(#history-snapshot)>.actions,#modal:has(#history-snapshot)>button；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#modal:has(#history-snapshot)>.dialog-head,#modal:has(#history-snapshot)>.actions,#modal:has(#history-snapshot)>button{flex-shrink:0}
/* 布局规则：#modal:has(#history-snapshot)>.dialog-head；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#modal:has(#history-snapshot)>.dialog-head{margin-bottom:12px;align-items:center}
/* 布局规则：#modal:has(#history-snapshot)>.dialog-head h2；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#modal:has(#history-snapshot)>.dialog-head h2{margin:0;min-width:0;overflow-wrap:anywhere}
/* 布局规则：#modal:has(#history-snapshot)>.actions；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#modal:has(#history-snapshot)>.actions{margin:0 0 12px}
/* 布局规则：#history-snapshot；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#history-snapshot{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:3px;scroll-padding:12px}
/* 布局规则：.clinical-table；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.clinical-table{width:100%;border-collapse:collapse;table-layout:fixed;margin:0 0 12px;font-size:13px}
/* 布局规则：.clinical-table th,.clinical-table td；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.clinical-table th,.clinical-table td{border:1px solid #dce5d8;padding:8px 10px;text-align:left;vertical-align:top;overflow-wrap:anywhere}
/* 布局规则：.clinical-table th；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.clinical-table th{background:#f1f6ef;color:#3d6551;font-weight:600;width:17%}
/* 布局规则：.clinical-table td；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.clinical-table td{background:#fff}
/* 布局规则：.record-info-table；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.record-info-table{margin:0 0 18px}
/* 布局规则：@media(max-width:680px)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@media(max-width:680px){.record-info-table,#history-snapshot>.clinical-table{display:block}.record-info-table tbody,#history-snapshot>.clinical-table tbody{display:block}.record-info-table tr,#history-snapshot>.clinical-table tr{display:grid;grid-template-columns:minmax(92px,.44fr) minmax(0,1fr)}.record-info-table th,.record-info-table td,#history-snapshot>.clinical-table th,#history-snapshot>.clinical-table td{width:auto;min-width:0;border-top:0}.record-info-table tr:first-child th,.record-info-table tr:first-child td,#history-snapshot>.clinical-table tr:first-child th,#history-snapshot>.clinical-table tr:first-child td{border-top:1px solid #dce5d8}}
/* 布局规则：.diagnosis-table th:first-child；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.diagnosis-table th:first-child{width:23%}.diagnosis-table th:last-child{width:19%}
/* 布局规则：.clinical-record-group；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.clinical-record-group{border-top:1px solid #dce5d8;padding:10px 0 3px}
/* 布局规则：.clinical-record-group h3；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.clinical-record-group h3{margin:0 0 10px;color:#285f4f;font-size:16px}
/* 布局规则：.clinical-record-group>.muted；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.clinical-record-group>.muted{margin:4px 0 10px;font-size:12px}
/* 布局规则：.clinical-field-table；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.clinical-field-table{margin:0}
/* 布局规则：.clinical-field-row；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.clinical-field-row{display:grid;grid-template-columns:155px minmax(0,1fr);border-bottom:1px solid #edf1ea;padding:8px 0;gap:14px}
/* 布局规则：.clinical-field-row dt；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.clinical-field-row dt{color:#607668;font-weight:600}.clinical-field-row dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
/* 布局规则：.clinical-missing；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.clinical-missing{margin:16px 0;padding:12px 16px;border:1px solid #dce5d8;border-radius:12px;background:#f7faf5}
/* 布局规则：.clinical-missing summary；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.clinical-missing summary{cursor:pointer;color:#285f4f;font-weight:650}
/* 布局规则：.clinical-missing .muted；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.clinical-missing .muted{margin:8px 0}
/* 布局规则：.clinical-missing-grid；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.clinical-missing-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
/* 布局规则：.clinical-missing-item；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.clinical-missing-item{display:grid;grid-template-columns:145px minmax(0,1fr);gap:10px;padding:7px 9px;background:#fff;border-radius:7px;overflow-wrap:anywhere;font-size:13px}
/* 布局规则：.clinical-missing-item span:first-child；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.clinical-missing-item span:first-child{color:#607668}
/* 布局规则：@media(max-width:759px)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@media(max-width:759px){#modal:has(#history-snapshot){padding:14px;width:calc(100% - 24px)}#modal:has(#history-snapshot)>.dialog-head h2{font-size:18px}}
/* 布局规则：@media(max-width:540px)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@media(max-width:540px){.clinical-table{font-size:12px}.clinical-table th,.clinical-table td{padding:6px}.clinical-field-row,.clinical-missing-item{grid-template-columns:105px minmax(0,1fr);gap:9px}.clinical-missing-grid{grid-template-columns:1fr}}

/* 布局规则：#password-panel；作用域按选择器限定，尺寸及状态以以下声明为准。 */

#password-panel{max-width:680px}#password-form label{display:block;margin:16px 0}#password-form input{width:100%;box-sizing:border-box}#password-form button,#password-return-login{white-space:normal}

/* 布局规则：.merge-differences；作用域按选择器限定，尺寸及状态以以下声明为准。 */

.merge-differences{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-height:330px;overflow:auto}.merge-differences .text{overflow-wrap:anywhere}#merge-form label{display:block;margin:14px 0}#merge-form input:not([type=checkbox]),#merge-form textarea,#merge-form select{width:100%;box-sizing:border-box}#merge-message{position:sticky;top:0;z-index:3}#merge-message:empty{display:none}@media(max-width:680px){.merge-differences{grid-template-columns:1fr}}

/* 布局规则：#merge-form；作用域按选择器限定，尺寸及状态以以下声明为准。 */

#merge-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px}#merge-form h3,#merge-form .merge-wide,#merge-form>button{grid-column:1/-1}#merge-form label{margin:0}#merge-form>button{justify-self:start}@media(max-width:680px){#merge-form{grid-template-columns:1fr}}

/* 本机草稿：挂在页脚保存区上方，默认紧凑折叠，不占病历首屏 */
.h5-draft-backup{margin:0 0 8px;padding:0;border:1px solid #e2eadf;border-radius:10px;background:#fbfcf9;scroll-margin-bottom:24px}
.h5-draft-backup>summary{margin:0;padding:7px 12px;font-size:12.5px;font-weight:600;color:#5a7264;list-style:none;cursor:pointer;min-height:34px;display:flex;align-items:center;gap:6px}
.h5-draft-backup>summary::-webkit-details-marker{display:none}
.h5-draft-backup>summary::before{content:'▸';flex:0 0 auto;color:#7d8d84;font-size:11px;line-height:1;transition:transform .15s ease}
.h5-draft-backup[open]>summary::before{transform:rotate(90deg)}
.h5-draft-backup[open]{padding:0 0 10px;background:#fff}
.h5-draft-backup[open]>summary{border-bottom:1px solid #e8eee6;margin-bottom:8px;color:#2b4639}
.h5-draft-backup>.muted{margin:0 12px 8px;font-size:11.5px;line-height:1.45;color:#7d8d84}
.h5-draft-backup .actions{margin:0 12px;gap:8px;flex-wrap:wrap}
.h5-draft-backup .actions button,.h5-draft-backup .actions .button{padding:6px 10px;min-height:0;font-size:12.5px}
.h5-draft-backup .notice{margin:0 12px 8px;padding:8px 10px;font-size:12px}
.h5-draft-backup.is-attention{border-color:#e0d2a8;background:#fbf8ef}
.h5-draft-backup.is-attention>summary{color:#6a6148}
.h5-draft-preview{max-height:58vh;overflow:auto;overscroll-behavior:contain}.h5-draft-preview .text{margin-bottom:18px}#h5-draft-manager .item{overflow-wrap:anywhere}

/* 布局规则：#doctor-help；作用域按选择器限定，尺寸及状态以以下声明为准。 */

#doctor-help{min-width:0}#doctor-help [data-help-topics]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:24px}#doctor-help .help-topic{display:block;width:100%;text-align:left;background:#fff;padding:18px;white-space:normal;overflow-wrap:anywhere}#doctor-help .help-topic span{display:block;font-size:14px;color:#687b6d;margin-top:7px}#doctor-help [data-help-category][aria-pressed=true]{background:#285f4f;color:#fff}#doctor-help [data-help-detail]{background:white;border:1px solid #dce5d8;border-radius:16px;padding:20px;margin-bottom:24px}#doctor-help li{padding:8px 0;line-height:1.8}#doctor-help .help-service{display:flex;justify-content:space-between;gap:16px;padding:13px 0;border-bottom:1px solid #e5eae1}#doctor-help .notice:empty{display:none}#doctor-help .help-status{margin-top:24px}#doctor-help input{width:100%}@media(max-width:680px){#doctor-help [data-help-topics]{grid-template-columns:1fr}#doctor-help [data-help-detail]{padding:16px}#doctor-help .actions{gap:8px}#doctor-help .actions button{font-size:14px;padding:10px}}

/* Keep diagnosis editor actions visible while optional coding fields scroll. */
/* 布局规则：#modal[open]:has(#diagnosis-editor)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#modal[open]:has(#diagnosis-editor){display:flex;flex-direction:column;padding:0;overflow:hidden;max-height:85vh}#modal:has(#diagnosis-editor)>.dialog-head{flex:none;padding:18px 24px;margin:0;border-bottom:1px solid #dce5d8}#diagnosis-editor{display:flex;flex-direction:column;min-height:0;overflow:hidden}#diagnosis-editor .diagnosis-editor-body{min-height:0;overflow-y:auto;padding:20px 24px;overscroll-behavior:contain}#diagnosis-editor .diagnosis-editor-footer{flex:none;padding:14px 24px;border-top:1px solid #dce5d8;background:#fff}#diagnosis-editor .diagnosis-editor-footer button{width:100%}#diagnosis-coding-fields .grid{gap:14px}#diagnosis-coding-fields .grid label{margin-bottom:0}#diagnosis-coding{margin-bottom:18px}

/* Keep followup receipt filters compact before the work list. */
/* 布局规则：#followup-inbox-filter；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#followup-inbox-filter{padding:16px;margin-bottom:12px}
/* 布局规则：#followup-inbox-filter .grid；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#followup-inbox-filter .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
/* 布局规则：#followup-inbox-filter label；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#followup-inbox-filter label{margin:0;font-size:14px}
/* 布局规则：#followup-inbox-filter select；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#followup-inbox-filter select{min-width:0;font-size:14px;padding:10px 8px}
/* 布局规则：#followup-inbox-filter .actions；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#followup-inbox-filter .actions{margin:12px 0 8px;gap:8px}
/* 布局规则：#followup-inbox-filter [data-message]；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#followup-inbox-filter [data-message]{padding:8px 10px;margin:8px 0 0;font-size:13px}
/* 布局规则：#followup-inbox-source；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#followup-inbox-source{padding:10px 14px;margin:0 0 12px;font-size:13px;background:#edf3e9}
/* 布局规则：#followup-inbox-source summary；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#followup-inbox-source summary{margin:0}
/* 布局规则：#followup-inbox-source p；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#followup-inbox-source p{margin:8px 0 0}
/* 布局规则：#followup-inbox-list；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#followup-inbox-list{padding:8px 18px}
/* 布局规则：#followup-inbox-list .item；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#followup-inbox-list .item{padding:14px 0}
/* 布局规则：#followup-inbox-list .actions；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#followup-inbox-list .actions{margin:8px 0;gap:6px}
/* 布局规则：#followup-inbox-list .muted；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#followup-inbox-list .muted{font-size:13px;margin:5px 0 8px}
/* 布局规则：#followup-inbox-list .text；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#followup-inbox-list .text{margin:8px 0 12px}
/* 布局规则：@media(max-width:680px)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@media(max-width:680px){
 /* 布局规则：#content:has(#followup-inbox-filter) .page-head；作用域按选择器限定，尺寸及状态以以下声明为准。 */
 #content:has(#followup-inbox-filter) .page-head{flex-wrap:nowrap;gap:10px;margin-bottom:14px}
 /* 布局规则：#content:has(#followup-inbox-filter) .page-head>div；作用域按选择器限定，尺寸及状态以以下声明为准。 */
 #content:has(#followup-inbox-filter) .page-head>div{flex:1;min-width:0}
 /* 布局规则：#content:has(#followup-inbox-filter) .page-head h1；作用域按选择器限定，尺寸及状态以以下声明为准。 */
 #content:has(#followup-inbox-filter) .page-head h1{font-size:24px}
 /* 布局规则：#content:has(#followup-inbox-filter) .page-head p；作用域按选择器限定，尺寸及状态以以下声明为准。 */
 #content:has(#followup-inbox-filter) .page-head p{font-size:13px;margin:4px 0}
 /* 布局规则：#content:has(#followup-inbox-filter) .page-head>.button；作用域按选择器限定，尺寸及状态以以下声明为准。 */
 #content:has(#followup-inbox-filter) .page-head>.button{flex-shrink:0;font-size:13px;padding:8px}
 /* 布局规则：#followup-inbox-filter button；作用域按选择器限定，尺寸及状态以以下声明为准。 */
 #followup-inbox-filter button{font-size:14px;padding:8px 12px;min-height:40px}
}

/* Compact patient workspace; all live forms remain mounted across tab changes. */
/* 布局规则：#patient-workspace；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#patient-workspace{min-width:0}#patient-workspace .patient-context{padding:12px 16px;margin:16px 0;background:#eaf0e7;border:1px solid #d7e2d3;border-radius:12px}.patient-context-meta{font-size:13px;color:#536658}#patient-workspace .patient-allergies{margin:5px 0;font-weight:600}#patient-group-feedback{margin:10px 0 0}#patient-workspace .patient-work-tabs{display:flex;gap:6px;border-bottom:1px solid #d7e2d3;margin-bottom:16px;position:sticky;top:0;z-index:2;background:#f5f7f2;padding:8px 0}#patient-workspace [data-patient-tab]{flex:1;max-width:220px;min-height:44px;padding:9px 10px;font-size:14px}#patient-workspace [aria-selected=true]{background:#285f4f;color:#fff;border-color:#285f4f}#patient-workspace [role=tabpanel][hidden]{display:none}#patient-workspace .card{padding:20px}#patient-workspace .card h2{font-size:18px;margin-bottom:12px}#patient-workspace #new-encounter{display:grid;grid-template-columns:minmax(0,1fr) minmax(130px,.45fr);gap:12px 16px}#new-encounter label{margin:0}#new-encounter .patient-chief,#custom-disease-field,#new-encounter [data-message],#encounter-create-recovery{grid-column:1/-1}#patient-workspace #new-encounter textarea{min-height:86px}#patient-workspace #new-encounter>.primary{justify-self:start;min-height:44px}#patient-workspace #assign-group{max-width:540px;margin-top:18px}#patient-workspace .patient-related-actions{border-top:1px solid #e0e7dc;margin-top:20px}#patient-workspace .patient-related-actions .actions{margin:10px 0 0}#patient-workspace #patient-visits-card>.row{align-items:flex-start;flex-wrap:wrap}#patient-workspace #patient-visits-card>.row .actions{margin:0 0 8px}#patient-workspace #visit-list .item{align-items:flex-start;gap:14px}#patient-workspace #visit-list .item>div{min-width:0;overflow-wrap:anywhere}#patient-workspace #visit-list .item>a{flex-shrink:0}#patient-workspace #visit-list p{margin:6px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}#patient-workspace .text{overflow-wrap:anywhere}
/* 布局规则：@media(max-width:680px)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@media(max-width:680px){#patient-workspace .card{padding:16px}#patient-workspace .patient-context{margin:12px 0;padding:10px 12px}#patient-workspace .patient-work-tabs{gap:5px}#patient-workspace [data-patient-tab]{font-size:13px;padding:9px 5px}#patient-workspace #new-encounter{grid-template-columns:minmax(0,1fr) minmax(88px,.42fr);gap:12px}#patient-workspace #new-encounter>.primary{width:100%;grid-column:1/-1}#patient-workspace #visit-list .item{display:grid;grid-template-columns:minmax(0,1fr) auto}#patient-workspace #visit-list .item>a{padding:8px 10px;min-height:44px}#patient-workspace #patient-visits-card>.row .actions{gap:8px}#patient-workspace #patient-visits-card>.row .button{font-size:13px;padding:8px 10px}}

/* 布局规则：#new-encounter .patient-template-choice；作用域按选择器限定，尺寸及状态以以下声明为准。 */

#new-encounter .patient-template-choice{order:0;display:flex;align-items:end;flex-wrap:wrap;gap:8px;min-width:0}#new-encounter .patient-template-choice label{flex:1 1 180px;min-width:0}#new-encounter #choose-custom-disease{flex:0 0 auto;min-height:44px;white-space:nowrap}#new-encounter .patient-visit-type{order:1}#new-encounter #custom-disease-field{order:2}#new-encounter .patient-chief{order:3}#new-encounter [data-message]{order:4}#new-encounter #encounter-create-recovery{order:5}#new-encounter>.primary{order:6}
/* 布局规则：@media(max-width:680px)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@media(max-width:680px){#new-encounter .patient-template-choice{grid-column:1/-1}}

/* 布局规则：@media(max-width:680px)；作用域按选择器限定，尺寸及状态以以下声明为准。 */

@media(max-width:680px){.shell.patient-active aside{padding:12px 16px}.shell.patient-active .brand{font-size:16px;line-height:1.35;margin-bottom:8px}.shell.patient-active nav{display:flex;flex-wrap:nowrap;gap:4px;overflow-x:auto;max-width:100%;padding-bottom:3px}.shell.patient-active nav a{flex:0 0 auto;padding:9px 10px;font-size:14px;white-space:nowrap}.shell.patient-active header{padding:12px 16px}.shell.patient-active #content{padding:18px 16px 48px}.shell.patient-active .page-head{gap:8px;align-items:flex-start}.shell.patient-active .page-head h1{font-size:24px}.shell.patient-active .page-head .button{font-size:13px;padding:8px 10px;white-space:nowrap}.shell.patient-active .page-head p{margin:4px 0 8px}}

/* 布局规则：.ai-review-shell；作用域按选择器限定，尺寸及状态以以下声明为准。 */

.ai-review-shell{overflow-wrap:anywhere;display:flex;flex-direction:column;min-height:0}
.ai-review-meta{font-size:12px;margin:0 0 6px;color:#7d8d84;line-height:1.45}
.ai-review-disclaimer,.ai-review-status,.ai-review-risk-empty,.ai-revision-lead,.ai-review-source-note{margin:0 0 8px;padding:0;font-size:12px;line-height:1.45;color:#5a7264;background:none;border:0}
.ai-review-shell>.notice.warn{padding:8px 10px;margin:0 0 8px;font-size:12.5px;line-height:1.45;border-radius:8px}
.ai-review-more{margin:0 0 8px;padding:0;border:0;background:transparent}
.ai-review-more>summary{cursor:pointer;list-style:none;display:inline-flex;align-items:center;gap:4px;min-height:28px;padding:2px 0;font-size:12px;color:#7d8d84}
.ai-review-more>summary::-webkit-details-marker{display:none}
.ai-review-more>summary::before{content:'▸';font-size:10px;line-height:1}
.ai-review-more[open]>summary::before{transform:rotate(90deg);display:inline-block}
.ai-review-more[open]{padding:8px 10px;border:1px solid #e8eee6;border-radius:8px;background:#fbfcf9}
.ai-review-more .notice{margin:6px 0;padding:6px 8px;font-size:12px}
.ai-review-tabs{display:flex;gap:8px;border-bottom:1px solid #dce5d8;padding:0 0 8px;margin:4px 0 10px}
.ai-review-tabs button{min-width:88px;min-height:36px;padding:6px 12px;font-size:13px}
.ai-review-tabs button.selected{background:#285f4f;border-color:#285f4f;color:#fff}
.ai-review-field{padding:10px 0;border-bottom:1px solid #e4e9de}
.ai-review-field h3{margin:0 0 6px;font-size:13.5px}
.ai-review-risks{border:1px solid #e6ddc4;border-left:3px solid #c4a35a;background:#faf7ef;padding:8px 10px;margin:0 0 10px;border-radius:8px}
.ai-review-risks>h3{margin:0 0 6px;font-size:13px;color:#6a6148}
.ai-review-risks .ai-review-field{padding:6px 0}
.ai-review-risks .ai-review-field:last-child{border:0;padding-bottom:0}
.ai-review-risks .ai-review-field h3{font-size:12.5px}
.ai-empty-fields{margin:12px 0 0}
.ai-empty-fields summary{margin:0;font-size:12.5px;color:#5a7264}
.ai-empty-fields[open] summary{margin-bottom:8px}
.ai-review-actions{position:sticky;bottom:0;z-index:3;margin-top:12px;padding:10px 0 0;border-top:1px solid #dce5d8;background:linear-gradient(180deg,rgba(255,255,255,0),#fff 28%)}
.ai-review-actions .notice{margin:0 0 8px;padding:6px 10px;font-size:12px}
.ai-input-summary{font-size:12px;margin:0 0 8px;color:#7d8d84}
@media(max-width:680px){.ai-review-tabs button{flex:1;min-width:0}.ai-review-actions>button{width:100%}.ai-review-risks{padding:8px 10px}}
/* 布局规则：.clinical-context-list；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.clinical-context-list{min-width:0}.clinical-context-entry{border-top:1px solid #e1e9dd;padding:18px 0;min-width:0}.clinical-context-entry h3{margin:0}.clinical-context-entry .row{justify-content:space-between}.clinical-context-entry summary{cursor:pointer;color:#285f4f;font-weight:600;padding:9px 0}.clinical-context-entry details{margin-top:12px}.clinical-context-row{display:grid;grid-template-columns:minmax(90px,160px) minmax(0,1fr);gap:14px;border-top:1px solid #edf1e9;padding:10px 0}.clinical-context-row>span{color:#62796b}.clinical-context-row .text{white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}.clinical-context-list .actions{margin:10px 0}.clinical-context-list .muted{overflow-wrap:anywhere}@media(max-width:600px){.clinical-context-row{grid-template-columns:1fr;gap:4px}.clinical-context-entry .row{align-items:flex-start}.clinical-context-entry .row h3{min-width:0;overflow-wrap:anywhere}}
/* 布局规则：.dashboard-metric；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.dashboard-metric{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;min-width:0;color:inherit;gap:6px}.dashboard-metric:hover{border-color:#8eae94;background:#f8fbf6;text-decoration:none}.dashboard-metric .stat{color:#285f4f}.draft-list-card .row{align-items:flex-start}.draft-list-card .text{margin:10px 0 0}@media(max-width:680px){.dashboard-metric{min-height:120px}.draft-list-card .row{flex-wrap:wrap}}
/* 布局规则：#image-pair-reviews；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#image-pair-reviews{scroll-margin-top:80px}
/* 布局规则：#image-pair-reviews h2；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#image-pair-reviews h2{margin:0 0 10px}
/* 布局规则：#image-pair-reviews [data-pair-choice]；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#image-pair-reviews [data-pair-choice]{font-weight:650;color:#285f4f}
/* 布局规则：#image-pair-reviews [data-pair-note],#image-pair-reviews [data-pair-reason]；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#image-pair-reviews [data-pair-note],#image-pair-reviews [data-pair-reason]{display:block;width:100%;box-sizing:border-box;min-height:72px;max-width:740px;margin:7px 0 10px}
/* 布局规则：#image-pair-reviews [data-pair-feedback]:empty；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#image-pair-reviews [data-pair-feedback]:empty{display:none}
/* 布局规则：#image-pair-reviews .image-pair-list-heading；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#image-pair-reviews .image-pair-list-heading{margin-top:16px;align-items:center;gap:10px;flex-wrap:wrap}
/* 布局规则：#image-pair-reviews .image-pair-list-heading h3；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#image-pair-reviews .image-pair-list-heading h3{margin:0}
/* 布局规则：#image-pair-reviews .image-pair-row；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#image-pair-reviews .image-pair-row{display:block;padding:14px 0;border-top:1px solid #e0e8dc;overflow-wrap:anywhere}
/* 布局规则：#image-pair-reviews .image-pair-row .actions；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#image-pair-reviews .image-pair-row .actions{margin:8px 0;gap:7px;flex-wrap:wrap}
/* 布局规则：#image-pair-reviews .image-pair-history；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#image-pair-reviews .image-pair-history{max-height:180px;overflow:auto;background:#f5f8f3;padding:6px 12px;border-radius:8px}
/* 布局规则：#image-pair-reviews .image-pair-history p；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#image-pair-reviews .image-pair-history p{margin:6px 0;font-size:13px}
/* 布局规则：@media(max-width:680px)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@media(max-width:680px){#image-pair-reviews .image-pair-list-heading{align-items:flex-start}#image-pair-reviews .image-pair-row .actions>*{font-size:13px;padding:8px 10px}}
/* 布局规则：.my-stats-diagnosis-toggle；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.my-stats-diagnosis-toggle{display:flex;gap:8px;margin:12px 0}.my-stats-diagnosis-toggle button{min-height:36px;padding:6px 14px}.my-stats-diagnosis-toggle button[aria-pressed=true]{background:#285f4f;border-color:#285f4f;color:#fff}
/* 布局规则：.my-stats-diagnosis-more；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.my-stats-diagnosis-more{display:block;width:100%;min-height:40px;margin:12px 0 0;background:#f5f8f3;border:1px solid #dce5df;color:#285f4f}
/* 布局规则：.my-stats-diagnosis-search；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.my-stats-diagnosis-search{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0}.my-stats-diagnosis-search input{flex:1 1 190px;min-width:0;min-height:40px}.my-stats-diagnosis-search button{min-height:40px;margin:0}

/* 布局规则：.my-stats-disease-entry；作用域按选择器限定，尺寸及状态以以下声明为准。 */

.my-stats-disease-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;margin:10px 0}.my-stats-disease-entry .statistics-distribution{margin:0}.my-stats-disease-trend-button{min-height:42px;padding:8px 13px;white-space:nowrap;border:1px solid #dce5df;border-radius:10px;background:#f5f8f3;color:#285f4f}#my-stats-diagnosis-trend{scroll-margin-top:20px}@media(max-width:650px){.my-stats-disease-entry{gap:5px}.my-stats-disease-trend-button{padding:8px 10px}}

/* 布局规则：#followup-filter；作用域按选择器限定，尺寸及状态以以下声明为准。 */

#followup-filter{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) auto;gap:12px;align-items:end}
/* 布局规则：#followup-filter label；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#followup-filter label{margin:0}
/* 布局规则：#followup-filter button；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#followup-filter button{min-height:44px}
/* 布局规则：#followup-filter [data-message]；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#followup-filter [data-message]{grid-column:1/-1;margin:0}
/* 布局规则：#followup-summary；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#followup-summary{margin:0 0 14px}
/* 布局规则：@media(max-width:680px)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@media(max-width:680px){#followup-filter{grid-template-columns:repeat(2,minmax(0,1fr))}#followup-filter button{grid-column:1/-1}}
/* 布局规则：.mmasi-panel；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.mmasi-panel{margin:20px 0;padding:17px;border:1px solid #dce7dc;border-radius:12px;background:#fafcf8}.mmasi-panel h3{margin:0 0 7px}.mmasi-panel .muted{margin:7px 0 13px}.mmasi-table-wrap{overflow-x:auto}.mmasi-table{min-width:440px;width:100%;table-layout:fixed}.mmasi-table th:first-child{width:92px}.mmasi-table select{width:100%;min-width:0;margin:0;font-size:13px;padding:9px 7px}.mmasi-summary{display:flex;justify-content:space-between;align-items:center;padding:11px 0;margin-top:8px;border-top:1px solid #e2e9df}.mmasi-summary span{font-size:18px;color:#285f4f;font-weight:700}#mmasi-feedback{margin:4px 0 12px}#apply-mmasi{margin-bottom:6px}@media(max-width:560px){.mmasi-panel{padding:12px}.mmasi-table{min-width:0}.mmasi-table th:first-child{width:55px}.mmasi-table select{font-size:12px;padding:7px 3px}}
/* 布局规则：.my-scale-regions；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.my-scale-regions{margin:12px 0;padding:10px;border:1px solid #dce6dc;border-radius:10px;background:#f8faf7}.my-scale-region-head,.my-scale-region-row{display:grid;grid-template-columns:70px minmax(0,1fr) minmax(0,1fr);gap:8px;align-items:center;padding:6px 4px;font-size:12px}.my-scale-region-head{font-weight:600;color:#456656}.my-scale-region-row{border-top:1px solid #e5ece4}.my-scale-regions .muted{margin:9px 4px 2px;font-size:12px}@media(max-width:560px){.my-scale-region-head,.my-scale-region-row{grid-template-columns:44px minmax(0,1fr) minmax(0,1fr);gap:4px;font-size:11px}}
/* 布局规则：.my-acne-metric；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.my-acne-metric{display:flex;flex-direction:column;gap:4px;padding:12px;border:1px solid #dce6dc;border-radius:12px;background:#f8faf7}.my-acne-metric strong{font-size:24px;color:#275c4e}.my-acne-metric span{font-size:12px;color:#5e7867}.my-acne-details{margin:10px 0;padding:8px 10px;border:1px solid #dce6dc;border-radius:10px;background:#f8faf7}.my-acne-details summary{cursor:pointer;color:#2b6953;font-weight:600}.my-acne-head,.my-acne-row{display:grid;grid-template-columns:minmax(100px,1.5fr) repeat(2,minmax(60px,.7fr));gap:8px;padding:5px 4px;font-size:12px}.my-acne-head{margin-top:9px;color:#456656;font-weight:600}.my-acne-row{border-top:1px solid #e5ece4}.my-acne-head span:not(:first-child),.my-acne-row span:not(:first-child){text-align:right}
/* 布局规则：.my-easi-pair；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.my-easi-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.my-easi-pair>div{display:flex;flex-direction:column;gap:5px;padding:12px;background:#f6f9f4;border-radius:10px}.my-easi-pair strong{color:#245d4b;font-size:19px}.my-easi-region-head{display:grid;grid-template-columns:minmax(100px,1.4fr) repeat(2,minmax(65px,.8fr));gap:8px;font-size:12px;padding:6px 4px}.my-easi-region-head span:not(:first-child){text-align:right}.my-easi-region-label{font-weight:600;color:#456656}.my-easi-region{border-top:1px solid #e5ece4}.my-easi-region-raw{display:flex;flex-wrap:wrap;gap:5px 16px;padding:3px 4px 8px;font-size:11px;color:#53695a}@media(max-width:560px){.my-easi-pair{grid-template-columns:1fr}}
/* 布局规则：.mmasi-scale-fields；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.mmasi-scale-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;margin:12px 0}.mmasi-scale-fields label{min-width:0;margin:0}.mmasi-scale-fields label:last-child{grid-column:1/-1}.mmasi-scale-fields input{width:100%;min-width:0}@media(max-width:560px){.mmasi-scale-fields{grid-template-columns:1fr}.mmasi-scale-fields label:last-child{grid-column:auto}}
/* 布局规则：.acne-observation-group；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.acne-observation-group{grid-column:1/-1}.acne-observation-panel{margin:12px 0;padding:17px;border:1px solid #dce7dc;border-radius:12px;background:#fafcf8}.acne-observation-panel h3{margin:0 0 7px}.acne-observation-panel .muted{margin:7px 0 13px}.acne-observation-table th:first-child{width:auto}.acne-observation-table th:last-child,.acne-observation-table td:last-child{width:130px}.acne-observation-table input{width:100%;min-width:0;box-sizing:border-box;margin:0;text-align:right}.acne-observation-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;margin:14px 0}.acne-observation-meta label{min-width:0;margin:0}.acne-observation-meta label:last-child{grid-column:1/-1}.acne-observation-meta input{width:100%;min-width:0}#acne-observation-summary{margin:8px 0 0}@media(max-width:560px){.acne-observation-panel{padding:12px}.acne-observation-meta{grid-template-columns:1fr}.acne-observation-meta label:last-child{grid-column:auto}}
/* 布局规则：.easi-panel；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.easi-panel{margin:16px 0;padding:17px;border:1px solid #dce7dc;border-radius:12px;background:#fafcf8}.easi-panel h3{margin:0 0 7px}.easi-panel .muted{margin:8px 0 12px}.easi-table-wrap{max-width:100%;overflow-x:auto}.easi-table{min-width:760px;width:100%;table-layout:fixed}.easi-table th:first-child{width:96px}.easi-table select{box-sizing:border-box;width:100%;min-width:0;margin:0;padding:8px 5px;font-size:12px}.easi-summary{display:flex;justify-content:space-between;gap:15px;padding:12px 0;border-top:1px solid #dce5d8}.easi-summary span{color:#285f4f;font-size:18px;font-weight:700}#easi-feedback{margin:6px 0 12px}.easi-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.easi-meta label{min-width:0}.easi-meta input{width:100%;min-width:0;box-sizing:border-box}@media(max-width:560px){.easi-panel{padding:12px}.easi-meta{grid-template-columns:1fr}}
/* 布局规则：.vasi-panel；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.vasi-panel{margin:16px 0;padding:17px;border:1px solid #dce7dc;border-radius:12px;background:#fafcf8}.vasi-panel h3{margin:0 0 7px}.vasi-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.vasi-instrument{min-width:0;padding:14px;border:1px solid #e1e9df;border-radius:10px;background:#fff}.vasi-instrument h4{margin:0 0 12px;color:#285f4f}.vasi-instrument label{display:block;margin:9px 0}.vasi-instrument input{box-sizing:border-box;width:100%;min-width:0}.vasi-instrument button{margin-top:8px}#vasi-feedback{margin-top:12px}@media(max-width:720px){.vasi-panel{padding:12px}.vasi-grid{grid-template-columns:1fr}}
/* 布局规则：.my-stats-trend-toggle；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.my-stats-trend-toggle{display:flex;gap:8px;margin:12px 0}.my-stats-trend-toggle button{flex:1;min-height:38px;padding:7px 12px}.my-stats-trend-toggle button[aria-pressed=true]{background:#285f4f;border-color:#285f4f;color:#fff}.my-stats-trend-more{margin-top:12px}.my-stats-periods button{text-align:left;white-space:normal;max-width:100%}
/* 布局规则：#my-assessment-targets .my-stats-actions；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#my-assessment-targets .my-stats-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
/* 布局规则：#my-assessment-targets .my-stats-action；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#my-assessment-targets .my-stats-action{min-width:0;white-space:normal;overflow-wrap:anywhere}
/* 布局规则：@media(max-width:650px)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@media(max-width:650px){#my-assessment-targets .my-stats-action{padding:10px;min-height:92px;font-size:14px}}
/* 布局规则：#batch-export-form .table-wrap；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#batch-export-form .table-wrap{overflow:auto}#batch-export-form th,#batch-export-form td{font-size:13px;white-space:normal;overflow-wrap:anywhere}#batch-export-form details{margin:16px 0}#batch-export-form summary{cursor:pointer;font-weight:650;padding:10px 0}.batch-selection [data-batch-chips]{flex-wrap:wrap;margin:10px 0}
/* 布局规则：@media(max-width:680px)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@media(max-width:680px){
 /* 布局规则：#batch-export-form .batch-version-table；作用域按选择器限定，尺寸及状态以以下声明为准。 */
 #batch-export-form .batch-version-table{display:block;width:100%}
 /* 布局规则：#batch-export-form .batch-version-table thead；作用域按选择器限定，尺寸及状态以以下声明为准。 */
 #batch-export-form .batch-version-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 /* 布局规则：#batch-export-form .batch-version-table tbody；作用域按选择器限定，尺寸及状态以以下声明为准。 */
 #batch-export-form .batch-version-table tbody{display:block}
 /* 布局规则：#batch-export-form .batch-version-table tr；作用域按选择器限定，尺寸及状态以以下声明为准。 */
 #batch-export-form .batch-version-table tr{display:block;border:1px solid #dce5d8;border-radius:10px;padding:8px 12px;margin:10px 0;background:#fafcf8}
 /* 布局规则：#batch-export-form .batch-version-table td；作用域按选择器限定，尺寸及状态以以下声明为准。 */
 #batch-export-form .batch-version-table td{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;width:auto;padding:5px 0;border:0;font-size:14px;line-height:1.5}
 /* 布局规则：#batch-export-form .batch-version-table td::before；作用域按选择器限定，尺寸及状态以以下声明为准。 */
 #batch-export-form .batch-version-table td::before{content:attr(data-label);color:#617466;font-size:13px}
 /* 布局规则：#batch-export-form .batch-version-table td:first-child；作用域按选择器限定，尺寸及状态以以下声明为准。 */
 #batch-export-form .batch-version-table td:first-child{font-weight:650;color:#285f4f}
}
/* Physician-collected statements remain separate from treatment execution and records. */
/* 布局规则：.treatment-row-actions；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.treatment-row-actions{margin:0!important;gap:7px;flex-shrink:0}.treatment-row-actions button{min-height:42px;font-size:13px;padding:8px 11px}.treatment-adherence-dialog[open]{display:flex;flex-direction:column;width:min(760px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:20px;overflow:hidden}.treatment-adherence-dialog>.dialog-head{flex:none;align-items:center;margin-bottom:12px}.treatment-adherence-dialog>.dialog-head h2{font-size:20px;margin:0}.treatment-adherence-dialog [data-adherence-body]{overflow:auto;min-height:0;flex:1;overscroll-behavior:contain;padding-right:3px}.adherence-context{margin:0 0 6px;overflow-wrap:anywhere}.adherence-help{font-size:13px;margin:0 0 12px}.adherence-summary{background:#f7faf4;border:1px solid #dce5d8;border-radius:10px;padding:12px 14px;overflow-wrap:anywhere}.adherence-summary p{font-size:13px;margin:5px 0}.adherence-top-actions{margin:12px 0}.treatment-adherence-dialog [data-adherence-form] .grid{gap:10px 15px}.treatment-adherence-dialog label{font-size:13px;margin:0 0 12px}.treatment-adherence-dialog textarea{min-height:76px}.treatment-adherence-dialog [name=reason],.treatment-adherence-dialog [name=withdrawReason]{min-height:62px}.treatment-adherence-dialog input,.treatment-adherence-dialog select{padding:9px}.treatment-adherence-dialog .actions{gap:8px;margin:12px 0}.treatment-adherence-dialog button{min-height:42px;font-size:13px;padding:8px 12px}.treatment-adherence-dialog details{padding:11px 13px;margin:12px 0 0}.treatment-adherence-dialog summary{font-size:14px;margin:0}.treatment-adherence-dialog details[open] summary{margin-bottom:10px}.adherence-footer{flex:none;border-top:1px solid #dce5d8;background:#fff;margin-top:12px;padding-top:10px;padding-bottom:env(safe-area-inset-bottom)}.adherence-footer .notice{margin:0;font-size:13px;padding:9px 11px;max-height:100px;overflow:auto}.adherence-footer .actions:has([hidden]):not(:has(button:not([hidden]))){display:none}.adherence-history-item{border-top:1px solid #dce5d8;padding:12px 0;font-size:13px;overflow-wrap:anywhere}.adherence-history-item p{margin:4px 0}.adherence-history-item .text{max-height:190px;overflow:auto}.adherence-stats-section{margin-top:26px;border-top:1px solid #dce5d8;padding-top:22px;min-width:0}.adherence-stat-groups{grid-template-columns:repeat(3,minmax(0,1fr))}.adherence-stat-groups strong small{font-size:12px;font-weight:400}.adherence-patient{padding:14px 0;border-top:1px solid #dce5d8;overflow-wrap:anywhere}.adherence-patient>p{font-size:13px;margin:4px 0 10px}.adherence-course-row{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #eef1eb;padding:9px 0;font-size:13px}.adherence-course-row>div{min-width:0;overflow-wrap:anywhere}.adherence-course-row small{display:block;font-size:12px;margin-top:3px}.adherence-course-row .button{flex-shrink:0;font-size:13px;min-height:42px;padding:8px 10px}
/* 布局规则：@media(max-width:680px)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@media(max-width:680px){.treatment-row-actions{flex-wrap:wrap}.treatment-adherence-dialog[open]{width:calc(100% - 20px);max-height:calc(100dvh - 20px);padding:13px}.treatment-adherence-dialog>.dialog-head{gap:10px}.treatment-adherence-dialog>.dialog-head h2{font-size:17px}.treatment-adherence-dialog [data-adherence-form] .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.treatment-adherence-dialog .actions{gap:6px}.treatment-adherence-dialog button{min-height:44px;padding:8px 9px}.treatment-adherence-dialog .adherence-context{font-size:14px}.adherence-stat-groups{grid-template-columns:repeat(2,minmax(0,1fr))}.adherence-course-row{align-items:flex-start;gap:8px}.adherence-course-row .button{width:90px;white-space:normal}.adherence-footer .notice{max-height:95px}.adherence-summary{padding:10px}.adherence-footer [data-adherence-discard] p{font-size:13px;margin:7px 0}}

/* Optional clinical site observations stay inside the existing examination panel. */
/* 布局规则：#clinical-lesion-sites；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#clinical-lesion-sites{grid-column:1/-1;min-width:0}.clinical-lesion-sites{padding:12px;border:1px solid var(--line,#d8e5dc);border-radius:12px;background:#fbfdfb}.clinical-sites-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin:12px 0}.clinical-sites-options .checkbox{padding:6px 8px;border-radius:8px;background:#f2f7f3}.clinical-site-row{display:grid;grid-template-columns:100px minmax(140px,1fr) minmax(180px,2fr);align-items:center;gap:10px;padding:10px 0;border-top:1px solid #dfe9e0}.clinical-site-row[hidden]{display:none}.clinical-site-row label{margin:0}.clinical-site-row input,.clinical-site-row select{width:100%;min-width:0}.clinical-sites-rows{min-width:0}.clinical-sites-record{padding:8px 0;border-bottom:1px solid #e3ebe3}.clinical-sites-record p{overflow-wrap:anywhere}.clinical-sites-statistics{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}@media(max-width:600px){.clinical-site-row{grid-template-columns:minmax(100px,1fr) minmax(100px,1fr)}.clinical-site-row>label:last-child{grid-column:1/-1}.clinical-sites-options{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 布局规则：.recurrence-detail；作用域按选择器限定，尺寸及状态以以下声明为准。 */

.recurrence-detail{margin:12px 0}.recurrence-help details{padding:12px 0}.recurrence-facts{width:100%;table-layout:fixed}.recurrence-facts td{overflow-wrap:anywhere}.recurrence-stat-event,.recurrence-history{padding:10px 0;border-bottom:1px solid #dfe8df}#recurrence-form .actions{margin-bottom:0}@media(max-width:600px){.recurrence-facts{font-size:13px}.recurrence-facts th,.recurrence-facts td{padding:7px}}

/* One native topic selector; a fresh panel fades in over 250ms ease-out. */
/* 布局规则：.my-outcomes-workspace；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.my-outcomes-workspace{min-width:0}.my-outcomes-topic-label{display:flex;flex-direction:column;gap:8px;max-width:700px;margin:12px 0}.my-outcomes-topic-label select{width:100%;max-width:100%;min-width:0;min-height:44px;font-size:15px}.my-outcomes-content{min-width:0;margin-top:14px}.my-outcomes-content:empty{display:none}.my-outcomes-placeholder{margin:0;padding:10px 0}.my-outcomes-content button,.my-outcomes-content .button{min-height:44px}.my-outcomes-entry{animation:my-outcomes-fade 250ms ease-out both;min-width:0}.my-outcomes-entry h2{font-size:20px;margin-top:12px}.my-outcomes-coverage{margin-top:16px;padding-top:8px;border-top:1px solid #dce5d8}.my-outcomes-coverage>summary,.my-outcomes-general-summary>summary{display:list-item;cursor:pointer;min-height:44px;box-sizing:border-box;padding:12px 0;font-size:14px;font-weight:600;color:#456656}.my-outcomes-general-summary{margin:8px 0 12px}.my-outcomes-general-summary .statistics-cards{margin-top:8px}.my-outcomes-coverage p{font-size:13px;line-height:1.6}.my-outcomes-entry [data-outcome-module]{min-width:0;overflow-wrap:anywhere}
/* 布局规则：@keyframes my-outcomes-fade；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@keyframes my-outcomes-fade{from{opacity:.65}to{opacity:1}}
/* 布局规则：@media(max-width:650px)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@media(max-width:650px){.my-outcomes-workspace{padding:15px}.my-outcomes-topic-label{font-size:14px}.my-outcomes-topic-label select{font-size:14px;padding:10px 12px}.my-outcomes-entry h2{font-size:18px}.my-outcomes-coverage{margin-top:12px}}
/* 布局规则：@media(prefers-reduced-motion:reduce)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@media(prefers-reduced-motion:reduce){.my-outcomes-entry{animation:none}}

/* Semantic intake cards keep the original form controls. The indicator and
   content reveal use a 250ms transition; reduced motion removes both. */
/* 布局规则：.intake-workspace-category；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.intake-workspace-category{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;margin:4px 0 18px;min-width:0}
/* 布局规则：.intake-workspace-category>h3；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.intake-workspace-category>h3{grid-column:1/-1;margin:0 0 2px;font-size:16px}
/* 布局规则：.intake-semantic-group；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.intake-semantic-group{padding:0;margin:0;overflow:hidden;background:#fafcf9;border-color:#dce5d8;min-width:0}
/* 布局规则：.intake-semantic-group>summary；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.intake-semantic-group>summary{display:grid;grid-template-columns:minmax(0,1fr) auto 12px;gap:5px 10px;align-items:center;padding:13px 15px;min-height:64px;margin:0;list-style:none;cursor:pointer}
/* 布局规则：.intake-semantic-group>summary::-webkit-details-marker；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.intake-semantic-group>summary::-webkit-details-marker{display:none}
/* 布局规则：.intake-semantic-group>summary::after；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.intake-semantic-group>summary::after{content:'';grid-column:3;grid-row:1;width:7px;height:7px;border-right:2px solid #718071;border-bottom:2px solid #718071;transform:rotate(45deg);transition:transform 250ms ease}
/* 布局规则：.intake-semantic-group[open]>summary::after；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.intake-semantic-group[open]>summary::after{transform:rotate(225deg)}
/* 布局规则：.intake-semantic-group>summary:focus-visible；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.intake-semantic-group>summary:focus-visible{outline:3px solid #aacaba;outline-offset:-3px;border-radius:9px}
/* 布局规则：.intake-group-title；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.intake-group-title{min-width:0;font-size:15px;font-weight:650;overflow-wrap:anywhere}
/* 布局规则：.intake-group-count；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.intake-group-count{white-space:nowrap;font-size:12px;font-weight:400;color:#61765e}
/* 布局规则：.intake-group-excerpt；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.intake-group-excerpt{grid-column:1/3;min-width:0;font-size:12px;line-height:1.5;font-weight:400;color:var(--text-muted,#52685b);overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
/* 布局规则：.intake-group-fields；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.intake-group-fields{padding:14px 15px 2px;border-top:1px solid #e3e9dd;min-width:0}
/* 布局规则：.intake-semantic-group[open]>.intake-group-fields；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.intake-semantic-group[open]>.intake-group-fields{animation:intake-fields-reveal 250ms ease}
/* 布局规则：.intake-group-fields>.record-text-field；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.intake-group-fields>.record-text-field{margin-bottom:15px}
/* 布局规则：.intake-group-fields textarea；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.intake-group-fields textarea{min-height:95px}
/* 布局规则：.intake-group-fields>[data-multi]；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.intake-group-fields>[data-multi]{padding:0;margin:0 0 18px;min-width:0}
/* 布局规则：.intake-priority-strip；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.intake-priority-strip{grid-column:1/-1;padding:11px 13px;background:#fffaf0;border:1px solid #e4d8b8;border-radius:10px;min-width:0}
/* 布局规则：.intake-priority-strip>strong；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.intake-priority-strip>strong{font-size:13px;color:#6b5232}
/* 布局规则：.intake-priority-strip>p；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.intake-priority-strip>p{font-size:12px;color:#785d2a;margin:4px 0 8px}
/* 布局规则：.intake-priority-link；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.intake-priority-link{display:block;padding:9px 10px;margin:6px 0 0;border:1px solid #dfcda4;border-radius:8px;background:#fff;color:#6b5232;font-size:13px;line-height:1.5;min-height:42px;text-decoration:none;overflow-wrap:anywhere}
/* 布局规则：.intake-priority-link:focus-visible；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.intake-priority-link:focus-visible{outline:3px solid #d9c49e;outline-offset:2px}
/* 布局规则：@keyframes intake-fields-reveal；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@keyframes intake-fields-reveal{from{opacity:.55;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}
/* 布局规则：@media(max-width:680px)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@media(max-width:680px){.intake-workspace-category{grid-template-columns:1fr;gap:9px;margin-bottom:15px}.intake-semantic-group>summary{padding:12px;gap:4px 8px}.intake-group-fields{padding:12px 12px 1px}.intake-priority-strip{padding:10px 12px}}
/* 布局规则：@media(prefers-reduced-motion:reduce)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@media(prefers-reduced-motion:reduce){.intake-semantic-group>summary::after{transition:none}.intake-semantic-group[open]>.intake-group-fields{animation:none}}
/* 黄褐斑 MASI：折叠入口做成独立评估条，分数与状态一眼可读 */
.masi-panel{grid-column:1/-1;padding:0;min-width:0;max-width:100%;margin:14px 0 4px;border:1px solid #d5e3d4;border-radius:14px;background:linear-gradient(180deg,#f7fbf6 0%,#fff 42%);box-shadow:0 1px 0 rgba(40,95,79,.04);overflow:hidden;border-left:3px solid #9bb59a}
.masi-panel[data-masi-state=applied]{border-left-color:#3d8f62;background:linear-gradient(180deg,#f1f8f2 0%,#fff 48%)}
.masi-panel[data-masi-state=pending]{border-left-color:#c49a3c;background:linear-gradient(180deg,#fffaf0 0%,#fff 48%)}
.masi-panel[data-masi-state=invalid],.masi-panel[data-masi-state=incomplete]{border-left-color:#c17a6a}
.masi-panel-summary{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 14px;padding:14px 16px;margin:0;min-height:56px;cursor:pointer;list-style:none}
.masi-panel-summary::-webkit-details-marker{display:none}
.masi-panel-lead{display:flex;align-items:center;gap:12px;min-width:0;flex:1 1 180px}
.masi-panel-badge{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-width:52px;padding:6px 9px;border-radius:9px;background:#285f4f;color:#fff;font-size:12px;font-weight:700;letter-spacing:.04em;line-height:1}
.masi-panel-copy{min-width:0;display:grid;gap:2px}
.masi-panel-copy strong{font-size:14.5px;font-weight:650;color:#234a39;line-height:1.3}
.masi-panel-copy small{font-size:12px;color:#6d8073;font-weight:400;line-height:1.35}
.masi-panel-metrics{display:inline-flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;min-width:0;margin-left:auto}
.masi-panel-score{font-size:16px;font-weight:700;color:#285f4f;letter-spacing:.01em;line-height:1.2;font-variant-numeric:tabular-nums}
.masi-panel[data-masi-state=empty] .masi-panel-score{font-size:13px;font-weight:550;color:#6d8073}
.masi-panel[data-masi-state=pending] .masi-panel-score,.masi-panel[data-masi-state=invalid] .masi-panel-score,.masi-panel[data-masi-state=incomplete] .masi-panel-score{color:#8a6a1e}
.masi-panel-metrics .pill{margin:0;font-weight:600}
.masi-panel-summary::after{content:'';flex:0 0 7px;width:7px;height:7px;margin-left:2px;border-right:2px solid #718071;border-bottom:2px solid #718071;transform:rotate(45deg);transition:transform 250ms ease}
.masi-panel[open]>.masi-panel-summary::after{transform:rotate(225deg)}
.masi-panel[open]>.masi-panel-summary{border-bottom:1px solid #e2eadf;background:rgba(255,255,255,.55)}
.masi-panel-body{padding:12px 16px 14px;min-width:0;overflow-wrap:anywhere}
.masi-panel-body>.muted{margin:0 0 12px}
/* 布局规则：.masi-table-wrap；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.masi-table-wrap{min-width:0;max-width:100%;overflow-x:auto}
/* 布局规则：.masi-table；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.masi-table{width:100%;table-layout:fixed;min-width:0}
/* 布局规则：.masi-table th；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.masi-table th{width:auto}
/* 布局规则：.masi-table th:first-child；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.masi-table th:first-child{width:15%}
/* 布局规则：.masi-table thead th:nth-child(2)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.masi-table thead th:nth-child(2){width:35%}
/* 布局规则：.masi-table thead th:nth-child(3),.masi-table thead th:nth-child(4)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.masi-table thead th:nth-child(3),.masi-table thead th:nth-child(4){width:25%}
/* 布局规则：.masi-table th,.masi-table td；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.masi-table th,.masi-table td{padding:9px 6px;overflow-wrap:anywhere}
/* 布局规则：.masi-table select；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.masi-table select{display:block;box-sizing:border-box;width:100%;min-width:0;margin:0;font-size:13px;padding:9px 5px}
/* 布局规则：.masi-summary；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.masi-summary{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:9px 0;padding:11px 0;border-top:1px solid #e2e9df}
/* 布局规则：.masi-summary span；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.masi-summary span{font-size:18px;color:#285f4f;font-weight:700}
/* 布局规则：.masi-meta；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.masi-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
/* 布局规则：.masi-meta label,.masi-meta input；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.masi-meta label,.masi-meta input{min-width:0;max-width:100%}
/* 布局规则：#masi-feedback；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#masi-feedback{margin:4px 0 12px}
/* 布局规则：@media(max-width:560px)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@media(max-width:560px){.masi-panel-summary{padding:12px 12px 12px 13px;gap:8px 10px}.masi-panel-badge{min-width:46px;padding:5px 7px;font-size:11px}.masi-panel-score{font-size:15px}.masi-panel-body{padding:10px 12px 12px}.masi-table th,.masi-table td{padding:7px 3px;font-size:12px}.masi-table select{font-size:12px;padding:9px 2px}.masi-meta{grid-template-columns:1fr;gap:0}.masi-panel .actions{display:grid;grid-template-columns:1fr}.my-scale-region-head span,.my-scale-region-row span{overflow-wrap:anywhere;min-width:0}}
@media(prefers-reduced-motion:reduce){.masi-panel-summary::after{transition:none}}

/* 布局规则：.my-outcomes-course-breakdown；作用域按选择器限定，尺寸及状态以以下声明为准。 */

.my-outcomes-course-breakdown{margin:12px 0;border-top:1px solid #dce5d8}.my-outcomes-course-breakdown>summary{cursor:pointer;min-height:44px;box-sizing:border-box;padding:12px 0;font-size:14px;font-weight:600;color:#456656}.my-outcomes-course-breakdown .my-stats-actions{margin-bottom:10px}

/* Followup attention: four compact current-state cards on phone and PC. */
/* 布局规则：.my-stats-followup-attention；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.my-stats-followup-attention{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
/* 布局规则：.my-stats-followup-attention .my-stats-action；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.my-stats-followup-attention .my-stats-action{min-width:0;min-height:96px;padding:12px;gap:4px;white-space:normal;overflow-wrap:anywhere}
/* 布局规则：.my-stats-followup-attention .my-stats-action span；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.my-stats-followup-attention .my-stats-action span{font-size:14px;line-height:1.35}
/* 布局规则：.my-stats-followup-attention .my-stats-action small；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.my-stats-followup-attention .my-stats-action small{font-size:12px;line-height:1.35}
/* 布局规则：.ai-management-sources；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.ai-management-sources{margin-top:18px;border-top:1px solid #dce5d8;padding-top:14px;min-width:0}.ai-management-sources .actions{flex-wrap:wrap}.ai-management-sources .actions button{white-space:normal}.ai-management-sources [data-management-message]:empty{display:none}.ai-management-group{margin:10px 0;border:1px solid #dce5d8;border-radius:10px;padding:10px 12px;min-width:0}.ai-management-group>summary{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:0;cursor:pointer}.ai-management-group>summary span{font-size:12px;color:#6a7c6b}.ai-management-item{padding:12px 0;border-top:1px solid #e4e9de;overflow-wrap:anywhere}.ai-management-item:first-of-type{margin-top:10px}.ai-management-item h4{font-size:14px;margin:0 0 6px}.ai-management-item p{font-size:13px}.ai-management-item dl{display:grid;grid-template-columns:minmax(80px,130px) minmax(0,1fr);gap:7px 12px;margin:10px 0}.ai-management-item dt{color:#6a7c6b;font-size:13px}.ai-management-item dd{margin:0;min-width:0;overflow-wrap:anywhere}.ai-management-references summary{font-size:12px;margin:0}@media(max-width:680px){.ai-management-group{padding:10px}.ai-management-group>summary{gap:4px}.ai-management-group>summary span{width:100%}.ai-management-item dl{grid-template-columns:minmax(70px,95px) minmax(0,1fr);gap:7px 8px}.ai-management-sources .actions button{flex:1;min-width:0;font-size:13px}}
/* 布局规则：.ai-revision-workspace；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.ai-revision-workspace{border:1px solid #dce5d8;border-radius:12px;overflow:hidden;background:#fff}
.ai-revision-field{padding:0;border:0;border-bottom:1px solid #e4e9de;border-radius:0;margin:0}
.ai-revision-field:last-child{border-bottom:0}
.ai-revision-field>summary{display:flex;gap:10px;align-items:center;min-height:42px;margin:0;padding:9px 12px;cursor:pointer;list-style:none}
.ai-revision-field>summary::-webkit-details-marker{display:none}
.ai-revision-field>summary strong{flex:0 0 7.5rem;font-size:13.5px;color:#1f3d30}
.ai-revision-field>summary span{flex:1;font-size:12px;color:#7d8d84;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.ai-revision-editor{padding:0 12px 12px}
.ai-revision-editor textarea{min-height:88px;font-size:14px}
.ai-revision-text-label{display:block;margin:0 0 6px;font-size:12px;color:#5a7264}
.ai-revision-reference{margin:4px 0 0;padding:0;border:0;background:transparent}
.ai-revision-reference>summary{margin:0;padding:4px 0;font-size:12px;color:#7d8d84;cursor:pointer;list-style:none}
.ai-revision-reference>summary::-webkit-details-marker{display:none}
.ai-revision-reference[open]{padding:8px 10px;border:1px solid #e4e9de;border-radius:8px;background:#fbfcf9}
.ai-revision-reference[open]>summary{margin-bottom:8px;color:#5a7264}
.ai-revision-comparison{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px}
.ai-revision-comparison section{border:1px solid #e4e9de;border-radius:8px;padding:8px;min-width:0;background:#fff}
.ai-revision-comparison h4{margin:0 0 4px;font-size:12px;color:#5a7264}
.ai-revision-comparison .text{max-height:120px;overflow:auto;font-size:12.5px}
.ai-revision-modes{margin:0 0 8px;gap:6px}
.ai-revision-modes button{padding:5px 12px;min-height:0;font-size:12.5px;border-radius:7px}
.ai-revision-modes button.selected{background:#edf5ef;border-color:#285f4f;font-weight:600}
.ai-review-risks .text{max-height:140px;overflow:auto;font-size:12.5px}
@media(max-width:680px){.ai-revision-field>summary{padding:9px 10px;gap:8px}.ai-revision-field>summary strong{flex:0 0 auto}.ai-revision-editor{padding:0 10px 10px}.ai-revision-comparison{grid-template-columns:1fr}.ai-revision-modes span{width:100%}}
/* 布局规则：@supports selector(dialog:has(.ai-review-shell))；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@supports selector(dialog:has(.ai-review-shell)){
 dialog:has(.ai-review-shell){display:flex;flex-direction:column;max-height:calc(100dvh - 32px);overflow:hidden}
 dialog:has(.ai-review-shell)>.dialog-head{position:sticky;top:0;z-index:4;flex:none;background:#fff;padding:4px 0 10px}
 dialog:has(.ai-review-shell)>.ai-review-shell{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding-bottom:4px}
}

/* U01: list navigation keeps clinical detail in the patient workspace. */
/* 布局规则：.sr-only；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.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}
/* 布局规则：.patient-filters；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.patient-filters{padding:16px;margin-bottom:16px}.patient-search-row{display:grid;grid-template-columns:minmax(180px,1.4fr) minmax(130px,.8fr) minmax(130px,.8fr) auto;align-items:end;gap:12px}.patient-search-row label{margin:0;font-size:13px}.patient-search-row input,.patient-search-row select{margin-top:4px;min-height:44px;padding:9px 11px}.patient-search-row button{min-height:44px}.patient-filters details{padding:0;border:0;margin:10px 0 0}.patient-filters summary{display:flex;align-items:center;gap:8px;min-height:36px;margin:0;font-size:13px;color:#486052}.patient-advanced-body{display:flex;align-items:end;gap:18px;border-top:1px solid #e2e8dd;padding-top:12px}.patient-advanced-body label{min-width:180px;margin:0;font-size:13px}.patient-advanced-body .actions{margin:0;gap:8px}.patient-filters .notice{margin:8px 0 0;padding:9px 12px;font-size:13px}.patient-list-card{padding:0 16px 14px}.patient-list-summary{font-size:13px;color:#536859;padding:12px 0 8px}.patient-table th{padding:8px 10px;font-size:13px;background:#f3f6f0;font-weight:600}.patient-table td{padding:8px 10px;height:62px;font-size:14px}.patient-table td:first-child,.patient-table th:first-child{padding-left:4px}.patient-table td:last-child,.patient-table th:last-child{padding-right:0}.patient-table .patient-name-cell>a{font-weight:650;font-size:16px;display:inline-flex;align-items:center;min-height:44px}.patient-table .patient-name-cell{min-width:120px;overflow-wrap:anywhere}.patient-table .patient-demographics{white-space:nowrap}.patient-classification{max-width:300px}.patient-classification .pill{margin:2px 5px 2px 0;max-width:100%;overflow-wrap:anywhere}.patient-row-action{text-align:right;white-space:nowrap}.patient-row-action .button{min-height:44px;padding:8px 12px;font-size:14px}.patient-match{display:block;font-size:12px;max-width:200px}.patient-list-card [data-more]{margin-top:12px}.patient-list-card .muted{color:#536859}
/* 布局规则：@media(max-width:680px)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@media(max-width:680px){.patient-filters{padding:12px;margin-bottom:12px}.patient-search-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.patient-search-row .patient-query{grid-column:1/-1}.patient-search-row label{font-size:13px}.patient-search-row .patient-query input{margin-top:3px}.patient-search-row label:not(.patient-query){font-size:0}.patient-search-row select{font-size:14px;margin:0}.patient-search-row button{grid-column:1/-1;padding:10px 8px}.patient-filters summary{min-height:44px}.patient-advanced-body{display:block}.patient-advanced-body .actions{margin-top:10px}.patient-list-card{background:none;padding:0;border:0}.patient-list-summary{padding:0 0 8px}.patient-table,.patient-table tbody{display:block}.patient-table thead{display:none}.patient-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 8px;border:1px solid #dce4d7;border-radius:12px;background:#fff;padding:10px 12px;margin-bottom:10px;position:relative}.patient-table td{display:block;height:auto;border:0;padding:0!important;min-width:0}.patient-table .patient-name-cell{grid-column:1;min-width:0;line-height:1.3}.patient-table .patient-name-cell>a{min-height:34px}.patient-table .patient-demographics{grid-column:1;font-size:13px}.patient-table .patient-classification{grid-column:1;max-width:none;line-height:1.5}.patient-table .patient-classification .pill{font-size:11px;padding:1px 6px}.patient-table .patient-row-action{grid-column:2;grid-row:2/4;align-self:center}.patient-row-action .button{padding:9px 8px;font-size:13px}.patient-match{max-width:none;font-size:11px}}
/* 布局规则：#content:has(#patient-filter)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
#content:has(#patient-filter){padding-top:20px}#content:has(#patient-filter)>.page-head{margin-bottom:14px}#content:has(#patient-filter)>.page-head h1{margin:0}#content:has(#patient-filter)>.page-head p:empty{display:none}.patient-filters{padding-top:12px;padding-bottom:12px}
/* 布局规则：@media(max-width:680px)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@media(max-width:680px){.shell:has(#patient-filter) aside{padding:12px 16px}.shell:has(#patient-filter) .brand{font-size:16px;line-height:1.35;margin-bottom:8px}.shell:has(#patient-filter) nav{display:flex;flex-wrap:nowrap;gap:4px;overflow-x:auto;max-width:100%;padding-bottom:4px}.shell:has(#patient-filter) nav a{flex-shrink:0;min-height:44px;padding:10px 11px;font-size:14px}#content:has(#patient-filter)>.page-head{flex-wrap:nowrap;gap:10px}#content:has(#patient-filter)>.page-head h1{font-size:24px}#content:has(#patient-filter)>.page-head button{font-size:14px;padding:10px 12px}.patient-filters .notice{font-size:12px;padding:7px 9px}}
/* 布局规则：.patient-filters summary::after；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.patient-filters summary::after{content:'展开';margin-left:auto;font-weight:400}.patient-filters details[open]>summary::after{content:'收起'}.patient-filters #patient-catalog-warning button{margin-left:10px;min-height:44px;padding:8px 10px;font-size:13px}
/* U02: start with the current clinical task; preserve original controls and notices. */
/* 布局规则：.shell.encounter-active .page-head；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.shell.encounter-active .page-head{margin-bottom:12px;gap:10px}.shell.encounter-active .page-head h1{font-size:26px;line-height:1.35}.shell.encounter-active .page-head p{margin:5px 0;font-size:13px}
/* 布局规则：.encounter-identity-summary；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.encounter-identity-summary{font-size:14px;line-height:1.55;margin-bottom:8px;color:#355243}.encounter-allergies{padding:6px 10px;background:#fff7e9;border-left:3px solid #aa7429;border-radius:4px;color:#634a26;overflow-wrap:anywhere}.encounter-identity-facts{margin-bottom:6px}.encounter-identity-details{padding:0;margin:0 0 10px;border:0;background:none}.encounter-identity-details>summary{padding:6px 0;min-height:44px;font-size:14px}.encounter-identity-details .record-info-table{margin-top:8px}
/* 布局规则：.encounter-toolbar；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.encounter-toolbar{padding:6px 0 8px}#encounter-work-tabs button{min-height:44px}#encounter-work-panels{padding-top:10px}#record-form{padding:16px 20px}#record-section-tabs{margin-bottom:10px;padding-bottom:8px}#record-form .record-section-grid .record-text-field{margin-bottom:12px}#record-form .record-section-grid .record-text-field textarea{font-size:15px;min-height:48px;max-height:260px;padding:8px 10px}#record-form .record-text-field>button{padding:6px 10px;min-height:44px;font-size:13px}#record-review-shortcuts{margin-top:14px}
/* 接诊流程步骤条：只列可点细目，点击切工作区/模块，不改变保存逻辑 */
.encounter-body{display:block}
.encounter-process{display:flex;gap:4px;overflow:auto;scrollbar-width:thin;margin:0 0 8px;padding:2px 0 6px;border-bottom:1px solid #e4ece1}
.encounter-process-jump{display:none;align-items:center;gap:8px;width:100%;margin:0;font-weight:500}
.encounter-process-jump-label{flex:none;font-size:12px;color:#5a7264}
.encounter-process-jump select{flex:1;min-width:0;margin:0;padding:8px 10px;min-height:40px;border-radius:10px;border:1px solid #d5e0d3;background:#fff;font-size:14px;font-weight:600;color:#234a39}
.encounter-process button[data-process-step]{flex:0 0 auto;min-height:34px;padding:6px 10px;border:0;border-radius:999px;background:transparent;color:#5a7264;font-size:12px;font-weight:500;box-shadow:none}
.encounter-process button[data-process-step][aria-current=step]{background:#285f4f;color:#fff}
.encounter-process button[data-process-step]:hover{background:#e8f0e6;color:#234a39}
.encounter-process button[data-process-step][aria-current=step]:hover{background:#234a39;color:#fff}
/* 窄屏：一行下拉，隐藏横向胶囊，给正文让出首屏 */
@media(max-width:1099px){
 .encounter-process{display:block;overflow:visible;padding:0 0 8px;margin:0 0 6px;border-bottom:1px solid #e4ece1}
 .encounter-process-jump{display:flex}
 .encounter-process button[data-process-step]{display:none}
}
/* 桌面：就诊页左侧只列可点细目，右侧为内容区 */
@media(min-width:1100px){
 .encounter-body{display:grid;grid-template-columns:136px minmax(0,1fr);gap:14px;align-items:start}
 /* 显式落位：左侧竖排导航占第 1 列，右侧内容面板独占第 2 列；草稿条已改挂页脚。 */
 #encounter-process{grid-column:1;grid-row:1;align-self:start;height:fit-content}
 #encounter-work-panels{grid-column:2;grid-row:1;min-width:0}
 .encounter-process{position:sticky;top:76px;flex-direction:column;gap:1px;overflow:visible;height:fit-content;max-height:calc(100dvh - 96px);margin:0;padding:5px;border:1px solid #dce5d8;border-radius:10px;background:#fff}
 .encounter-process-jump{display:none}
 .encounter-process button[data-process-step]{display:flex}
 .encounter-rail-step{width:100%;min-height:0;justify-content:flex-start;padding:7px 9px;line-height:1.25;border:0;border-radius:7px;background:transparent;color:#5a7264;font-size:12.5px;font-weight:500;text-align:left;box-shadow:none}
 .encounter-process button[data-process-step]::before{content:none;counter-increment:none}
 .encounter-rail-step[aria-current=step]{background:#285f4f;color:#fff}
 .encounter-rail-step[data-process-step=archive]{margin-top:3px;padding-top:8px;border-top:1px solid #e6eee4;border-radius:0 0 7px 7px;font-weight:600}
 .encounter-rail-step[data-process-step=archive][aria-current=step]{border-radius:7px;border-top-color:transparent}
}
/* 布局规则：@media(max-width:680px)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@media(max-width:680px){.shell.encounter-active #content{padding:12px 14px 32px}.shell.encounter-active .page-head{margin-bottom:8px}.shell.encounter-active .page-head h1{font-size:20px}.shell.encounter-active .page-head .button{min-height:44px;padding:8px 10px;font-size:13px}.encounter-toolbar{position:static}#direct-photo-entry{padding:6px 8px}#direct-photo-entry strong{display:none}#direct-photo-entry .actions{width:100%}#record-form{padding:12px}.encounter-identity-summary{font-size:13px}.encounter-identity-details{margin-bottom:6px}.encounter-identity-details>summary{font-size:13px}.encounter-save-actions button{min-height:44px}.encounter-save-actions>.encounter-more-actions{grid-column:auto}.encounter-more-actions>summary{min-height:44px;font-size:13px}.encounter-save-actions{display:flex;flex-wrap:wrap}.encounter-save-actions>button{flex:1 1 40%}.encounter-save-actions>.encounter-more-actions{width:100%}}
/* 布局规则：.encounter-reference-toggle；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.encounter-reference-toggle{display:none}.encounter-identity-details>summary{margin:0}.shell.encounter-active .page-head>div{flex:1;min-width:0}.shell.encounter-active .page-head>.button{flex:none}
/* 布局规则：@media(min-width:1100px)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@media(min-width:1100px){.encounter-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}#direct-photo-entry{grid-column:1;margin:0}#encounter-workspace #direct-photo-entry{padding:6px 10px;margin:0}#encounter-workspace #direct-photo-entry strong{font-size:13px}#encounter-workspace #direct-photo-entry button{min-height:34px;padding:5px 10px;font-size:12.5px}#encounter-work-tabs{min-width:0}.encounter-reference-toggle{display:inline-flex;grid-column:2;justify-self:end}#encounter-workspace[data-reference-open=true] #encounter-work-panels{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,1fr);gap:16px;align-items:start}#encounter-workspace[data-reference-open=true] #work-panel-materials{position:sticky;top:135px;max-height:calc(100dvh - 215px);overflow:auto;overscroll-behavior:contain;border:1px solid #dce5d8;border-radius:12px;background:#fff;padding:12px}#encounter-workspace[data-reference-open=true] #work-panel-materials .card{padding:12px}#encounter-workspace[data-reference-open=true] .record-section-grid{grid-template-columns:1fr}}
/* 布局规则：@media(max-width:680px)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@media(max-width:680px){.shell.encounter-active aside{padding:8px 14px}.shell.encounter-active .brand{line-height:1.2;margin-bottom:4px}.shell.encounter-active .brand br,.shell.encounter-active .brand .muted{display:none}.shell.encounter-active header{padding:6px 14px}.shell.encounter-active header>strong{display:none}.shell.encounter-active header>div{margin-left:auto}.shell.encounter-active nav a{min-height:44px;padding:10px;font-size:13px}.shell.encounter-active .page-head{flex-wrap:nowrap}.shell.encounter-active .page-head>.button{font-size:12px;padding:8px}.shell.encounter-active .page-head h1{font-size:19px}.shell.encounter-active .page-head p{font-size:12px}.encounter-identity-details>summary{margin:0}.encounter-toolbar{padding-bottom:5px}#direct-photo-entry{padding:4px;margin:0 0 5px}#encounter-work-tabs button{padding:8px}#record-section-tabs{padding-bottom:4px;scrollbar-width:none}#record-section-tabs button{min-height:44px}#h5-draft-backup{padding:6px 10px;margin-bottom:6px}#h5-draft-backup>summary{min-height:44px;line-height:32px}.encounter-save-actions{display:grid;grid-template-columns:1fr 1fr 58px;align-items:start}.encounter-save-actions>.encounter-more-actions{width:100%;margin:0;position:static}.encounter-more-actions>summary{min-height:44px;padding:10px 4px;margin:0;font-size:0;text-align:center}.encounter-more-actions>summary::after{content:'更多 ⌄';font-size:13px}.encounter-more-actions[open]>div{position:absolute;bottom:calc(100% + 4px);left:0;right:0;padding:12px;border:1px solid #cdd8cb;border-radius:12px;background:#fff;box-shadow:0 -8px 20px #183a2020;max-height:50vh;overflow:auto}.encounter-more-actions>div .button{font-size:13px;white-space:normal;min-height:44px}.encounter-save-actions>.encounter-more-actions{grid-column:auto}.encounter-footer{padding:8px 0 max(8px,env(safe-area-inset-bottom))}}
/* 布局规则：@media(max-width:1099px)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@media(max-width:1099px){.encounter-reference-toggle[aria-expanded=true]{display:inline-flex;min-height:44px}}
/* U03: daily work first; old routes stay reachable from tools and account. */
/* 布局规则：.workspace-nav；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.workspace-nav{display:block;margin-top:18px;padding:12px;border-top:1px solid #ccd9cd;color:#315846}.workspace-nav[aria-current=page]{font-weight:700;background:#dde9de}.mobile-business-nav{display:none}.workspace-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.workspace-tool{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;padding:15px 0;border-top:1px solid #e1e8dd;min-height:64px}.workspace-tool strong{font-size:16px}.workspace-tool span{grid-column:1;font-size:14px;color:#566c5c}.workspace-tool b{grid-column:2;grid-row:1/3;align-self:center}
/* 布局规则：.dashboard-metrics；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.dashboard-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}.dashboard-metrics a{display:flex;align-items:center;gap:14px;padding:16px 20px;background:#fff;border:1px solid #e0e7dc;border-radius:12px;min-height:76px}.dashboard-metrics strong{font-size:30px;color:#285f4f}.dashboard-metrics span{font-size:15px;color:#435f4f}.dashboard-continue{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 22px;border-left:4px solid #417759}.dashboard-continue h2{font-size:18px;margin:0 0 6px}.dashboard-continue p{margin:0;font-size:15px}.dashboard-continue .button{flex:none;min-height:44px}.dashboard-columns{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,1fr);gap:18px;align-items:start}.dashboard-columns .row h2{margin:0;font-size:19px}.dashboard-columns>.card{padding:20px}.dashboard-columns>.card>.muted{font-size:13px;margin:10px 0}.dashboard-record,.dashboard-task{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 0;border-top:1px solid #e3e9de}.dashboard-record .pill,.dashboard-task .pill{margin-left:10px}.dashboard-record p{margin:6px 0;font-size:14px}.dashboard-record .muted,.dashboard-task .muted{font-size:13px;margin:5px 0 0}.dashboard-record .button,.dashboard-task .button{flex:none;min-height:44px;font-size:14px}.dashboard-tasks .empty{padding:20px 0}
/* 布局规则：@media(max-width:1099px)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@media(max-width:1099px){.dashboard-columns{grid-template-columns:1fr}.dashboard-tasks{grid-row:1}.workspace-tools{grid-template-columns:1fr}}
/* 布局规则：@media(max-width:680px)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@media(max-width:680px){.shell aside,.shell.encounter-active aside,.shell.patient-workspace aside{display:none}.shell>main>header{padding:8px 14px;min-height:56px}.shell>main>header>strong{font-size:14px}.shell>main>header .row{gap:10px;font-size:13px}.shell>main>header button{min-height:44px;padding:8px 10px}.shell #content{padding:16px 14px 96px}.mobile-business-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;position:fixed;bottom:0;left:0;right:0;z-index:12;background:#fff;border-top:1px solid #d5e1d5;padding:5px 8px max(8px,env(safe-area-inset-bottom));box-shadow:0 -3px 10px #23472c0c}.mobile-business-nav a{min-height:48px;display:flex;align-items:center;justify-content:center;padding:8px 0;font-size:14px;border-radius:9px;color:#3c5948}.mobile-business-nav a[aria-current=page]{color:#1f513f;background:#e8f1e5;font-weight:700}.shell.encounter-active .mobile-business-nav{display:none}.shell.encounter-active #content{padding-bottom:32px}.shell:has(.mobile-business-nav) .page-head h1{font-size:23px}.dashboard-metrics{gap:8px;margin:14px 0}.dashboard-metrics a{flex-direction:column;gap:2px;padding:10px 5px;min-height:80px}.dashboard-metrics strong{font-size:25px}.dashboard-metrics span{font-size:12px}.dashboard-continue{padding:14px;gap:12px}.dashboard-continue p{font-size:13px}.dashboard-continue h2{font-size:17px}.dashboard-continue .button{font-size:13px;padding:9px}.dashboard-columns>.card{padding:15px}.dashboard-record,.dashboard-task{gap:8px}.dashboard-record .button,.dashboard-task .button{padding:8px;font-size:13px}.dashboard-record .pill{margin-left:6px}.workspace-tools{gap:0}.workspace-tool{min-height:64px}}

/* 布局规则：@media(max-width:680px)；作用域按选择器限定，尺寸及状态以以下声明为准。 */

@media(max-width:680px){.shell:not(.encounter-active) #content .sticky,#share-compose>.primary,#search-form [data-message]{bottom:calc(66px + env(safe-area-inset-bottom))}}
/* U04: explicit choice, searchable catalog, and scoped local preferences. */
/* 布局规则：.template-picker；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.template-picker{grid-column:1/-1;margin:0 0 8px;padding:0;background:transparent;border:0;border-radius:0}
.template-picker>summary{min-height:32px;margin:0;padding:6px 0;line-height:1.3;display:flex;align-items:center;gap:8px;font-size:13px;font-weight:500;color:#3f5a4a;background:transparent;border:0;cursor:pointer;list-style:none}
.template-picker>summary::-webkit-details-marker{display:none}
.template-picker>summary::after{content:'展开';margin-left:auto;font-size:12px;font-weight:400;color:#5a7264}
.template-picker[open]{padding:10px 12px;background:#f7f9f4;border:1px solid #d8e3d5;border-radius:12px}
.template-picker[open]>summary{min-height:36px;padding:0 0 8px;font-size:14px;font-weight:600;color:#234a39;border-bottom:1px solid #e1eadc}
.template-picker[open]>summary::after{content:'收起'}
.template-search-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:8px 0 6px}
.template-search{flex:1 1 170px;min-width:0;margin:0}
.template-search input{padding:7px 10px;font-size:14px}
.template-filter-buttons{display:flex;gap:4px;flex:0 0 auto}
.template-filter-buttons button{min-height:32px;padding:5px 10px;font-size:12.5px;border-radius:999px;white-space:nowrap}
.template-filter-buttons button[aria-pressed=true]{background:#285f4f;color:white;border-color:#285f4f}
.template-picker-list{max-height:216px;overflow:auto;overscroll-behavior:contain;margin-top:6px;border:1px solid #e1eadc;border-radius:10px;background:#fff}
.template-picker-row{display:grid;grid-template-columns:minmax(0,1fr) 42px;align-items:center;border-bottom:1px solid #edf2ea}
.template-picker-row:last-child{border-bottom:0}
.template-picker-row.is-selected{background:#eef5ee}
.template-picker-row:hover{background:#f5f9f4}
.template-picker-row button{border:0;border-radius:0;min-height:38px;padding:6px 10px;background:transparent}
.template-picker-row button:hover{background:transparent}
.template-picker-choice{display:flex;align-items:center;justify-content:flex-start;text-align:left;white-space:normal;padding:6px 10px;font-size:14px;line-height:1.35;color:#25402f}
.template-picker-row.is-selected .template-picker-choice{font-weight:650;color:#1e4a38}
.template-picker-star{font-size:17px;color:#8a9a86}
.template-picker-star[aria-pressed=true]{color:#c08a15}
.template-picker-note{font-size:12px;color:#6a7f6e;margin:8px 0 0}
.patient-template-choice .template-custom{min-height:40px;padding:6px 10px;font-size:13px}
@media(max-width:680px){
 .template-filter-buttons{width:100%}
 .template-filter-buttons button{flex:1}
 .template-picker-row button{min-height:44px}
}

/* U05: original and correction first; disclosure preserves the source controls. */
/* 布局规则：.ocr-review-tabs；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.ocr-review-tabs{display:none;gap:8px;margin:0 0 12px}.ocr-review-tabs button{flex:1;min-height:44px}.ocr-review-tabs [aria-pressed=true]{background:var(--green,#285f50);color:#fff;border-color:var(--green,#285f50)}.ocr-original-empty{display:grid;place-content:center;min-height:180px;margin:0 0 12px;padding:20px;border:1px dashed #bdcbbf;border-radius:10px;background:#f7f9f5;color:#536459;line-height:1.8}.ocr-review-source .photo-local-preview{display:block;max-width:100%;width:100%;height:auto;max-height:440px;object-fit:contain;margin:0 0 12px}.ocr-machine-details{padding:0;border:1px solid #dce5d8;border-radius:10px;overflow:hidden}.ocr-machine-details>summary,.ocr-review-history-panel>summary{min-height:44px;padding:12px;cursor:pointer;font-weight:600;box-sizing:border-box}.ocr-machine-details .ocr-quality-view{padding:0 12px 12px;margin:0}.ocr-review-history-panel{margin-top:14px;border-top:1px solid #dce5d8}.ocr-review-history-panel .ocr-history-heading{border-top:0;padding-top:0}.ocr-review-fields [name=text]{height:270px;min-height:220px}.ocr-review-fields textarea{font-size:16px;line-height:1.7}.ocr-review-source [hidden]{display:none!important}
/* 布局规则：@media(max-width:759px)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@media(max-width:759px){.ocr-review-tabs{display:flex}.ocr-review-tabs button{padding:8px;font-size:14px}#ocr-review[data-panel=edit] .ocr-review-source,#ocr-review[data-panel=source] .ocr-review-fields{display:none}.ocr-review-fields [name=text]{height:190px;min-height:160px}.ocr-review-fields [name=reason]{height:70px;min-height:70px}.ocr-review-source .photo-local-preview{max-height:42dvh}.ocr-original-empty{min-height:140px}.ocr-review-meta{overflow-wrap:anywhere}}

/* Patient evidence summary and shared followup navigation. */
/* 布局规则：.patient-clinical-summary；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.patient-clinical-summary{padding:16px;background:#f4f7f1;border:1px solid var(--line,#d5dfd1);border-radius:14px;margin:8px 0 18px}.patient-clinical-summary h3{margin:0}.patient-summary-main{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:12px 0}.patient-summary-main p{margin:6px 0}.summary-brief{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.patient-summary-details{margin-top:14px}.summary-score-list{display:flex;flex-wrap:wrap;gap:8px 16px}.summary-tasks .row{padding:10px 0;border-top:1px solid var(--line,#d5dfd1);gap:12px}.summary-tasks .row>span{flex:1;min-width:0;overflow-wrap:anywhere}.followup-hub{display:flex;gap:8px;margin:12px 0 18px}.followup-hub a{flex:1;text-align:center;min-height:44px;padding:10px 8px;border-radius:10px;background:#edf2e9;color:#285f4f;font-weight:600;text-decoration:none}.followup-hub a[aria-current=page]{background:#285f4f;color:white}#followup-filter{display:flex;align-items:end;flex-wrap:wrap;gap:12px}#followup-filter label{flex:1;min-width:150px;margin:0}#followup-filter [data-message]{flex-basis:100%}@media(max-width:700px){.patient-summary-main{grid-template-columns:1fr;gap:14px}.patient-clinical-summary{padding:12px}.patient-clinical-summary .button,.patient-clinical-summary button{min-height:44px}.summary-tasks .row{align-items:flex-start;flex-wrap:wrap}}

/* 布局规则：.patient-summary-main；作用域按选择器限定，尺寸及状态以以下声明为准。 */

.patient-summary-main{gap:12px;margin:8px 0}.patient-summary-main>div>strong{font-size:14px}.patient-summary-main .summary-source{display:block;width:100%;text-align:left;padding:8px 0;margin:0;min-height:44px;border:0;border-radius:6px;background:transparent;color:#243f34;text-decoration:none;white-space:normal;line-height:1.5}.summary-source .summary-brief{display:block;margin:0;font-size:15px;font-weight:500}.summary-source-meta{display:block;color:#285f4f;font-size:13px;margin-top:3px}.patient-summary-details{margin-top:6px}.patient-summary-details>summary{min-height:44px;padding:10px 0;font-size:14px}.patient-summary-main .summary-source:hover{background:#e8efe4}.patient-clinical-summary [data-summary-body]{margin-top:0}.patient-summary-main>div+div{border-left:1px solid #d5dfd1;padding-left:12px}@media(max-width:700px){.patient-summary-main{gap:6px}.patient-summary-main>div+div{border-left:0;border-top:1px solid #d5dfd1;padding:6px 0 0}.patient-summary-main .summary-source{padding:5px 0}.patient-clinical-summary .summary-source{min-height:44px}.patient-summary-details>summary{font-size:13px}}

/* U07: dates and current work stay ahead of analytical detail. */
/* 布局规则：.my-stats-filters；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.my-stats-filters{display:block;padding:12px 16px;margin-bottom:12px}.stats-period-row{display:flex;gap:8px;flex-wrap:wrap}.stats-period-row button{min-height:44px;margin:0}.stats-custom-dates{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:12px;padding-top:12px}.stats-custom-dates label{margin:0}.stats-custom-dates p{grid-column:1/-1;margin:0}.stats-custom-dates[hidden]{display:none}.my-stats-coverage{display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px;margin:8px 0;font-size:14px;color:#425d50}.stats-scope-details{margin:0;padding:0;border:0;background:transparent}.stats-scope-details>summary{cursor:pointer;min-height:44px;padding:10px 0;box-sizing:border-box}.stats-scope-details p{margin:6px 0}.my-stats-tabs{margin:8px 0 12px}.my-stats-tabs button{min-height:44px}.statistics-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0}.statistics-cards .my-stats-card{min-height:106px;padding:14px;gap:4px}.statistics-cards .my-stats-card .stat{font-size:30px}.statistics-cards .my-stats-card strong{font-size:15px}.stats-current-todos{margin:12px 0;padding:16px}.stats-current-todos h2{margin:0;font-size:18px}.stats-current-todos .my-stats-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}.stats-current-todos .my-stats-action{min-height:80px;padding:10px}.stats-current-todos .my-stats-action strong{font-size:25px}.stats-current-todos .my-stats-action small{display:none}.stats-current-todos .my-stats-actions a{display:flex;align-items:center;min-height:44px;box-sizing:border-box}.outcome-group-filters{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 12px}.outcome-group-filters button{min-height:44px;flex:1;margin:0;font-size:14px;padding:8px;white-space:normal}.outcome-group-filters [aria-pressed=true]{background:#285f4f;color:#fff;border-color:#285f4f}@media(max-width:700px){.stats-period-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.stats-period-row button{padding:8px 2px;font-size:13px;white-space:normal}.my-stats-filters{padding:10px}.stats-custom-dates{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.stats-custom-dates .primary{grid-column:1/-1;min-height:44px}.stats-custom-dates input{width:100%;min-width:0}.my-stats-coverage{gap:0;font-size:13px;justify-content:space-between}.stats-scope-details>summary{font-size:13px}.my-stats-tabs{gap:4px}.my-stats-tabs button{font-size:13px;padding:8px}.statistics-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.statistics-cards .my-stats-card{min-height:100px;padding:10px;gap:3px}.statistics-cards .my-stats-card .stat{font-size:27px}.statistics-cards .my-stats-card strong{font-size:14px}.statistics-cards .my-stats-card small{font-size:12px}.stats-current-todos{padding:12px}.stats-current-todos .my-stats-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.outcome-group-filters{gap:5px}.outcome-group-filters button{font-size:13px;padding:8px 4px}}

/* U08: shared readable text, visible keyboard focus and touch controls. */
/* 布局规则：:root；作用域按选择器限定，尺寸及状态以以下声明为准。 */
:root { --text-muted:#52685b; --focus-ring:#276452; }
input:focus-visible, select:focus-visible, textarea:focus-visible,
/* 布局规则：button:focus-visible, a:focus-visible, summary:focus-visible；作用域按选择器限定，尺寸及状态以以下声明为准。 */
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline:2px solid var(--focus-ring); outline-offset:3px;
}
/* 布局规则：.my-stats-filters > [data-message]；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.my-stats-filters > [data-message] {
  margin:8px 0 0; padding:6px 8px; font-size:13px; line-height:1.45;
}
/* 布局规则：.my-stats-tabs；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.my-stats-tabs { flex-wrap:nowrap; }
/* 布局规则：@media(max-width:700px)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@media(max-width:700px) {
  /* 布局规则：main button, main select, main summary；作用域按选择器限定，尺寸及状态以以下声明为准。 */
  main button, main select, main summary { min-height:44px; }
  /* 布局规则：main summary；作用域按选择器限定，尺寸及状态以以下声明为准。 */
  main summary { align-content:center; }
  /* 布局规则：.patient-list-heading > button；作用域按选择器限定，尺寸及状态以以下声明为准。 */
  .patient-list-heading > button { min-height:44px; }
  /* 布局规则：.stats-period-row button；作用域按选择器限定，尺寸及状态以以下声明为准。 */
  .stats-period-row button { white-space:nowrap; }
  /* 布局规则：.my-stats-tabs；作用域按选择器限定，尺寸及状态以以下声明为准。 */
  .my-stats-tabs { gap:6px; padding-bottom:3px; }
  /* 布局规则：.my-stats-tabs button；作用域按选择器限定，尺寸及状态以以下声明为准。 */
  .my-stats-tabs button { flex:0 0 auto; }
  /* 布局规则：.my-stats-coverage；作用域按选择器限定，尺寸及状态以以下声明为准。 */
  .my-stats-coverage { margin:4px 0; }
  /* 布局规则：.h5-draft-backup summary；作用域按选择器限定，尺寸及状态以以下声明为准。 */
  .h5-draft-backup summary { min-height:44px; }
}

/* 布局规则：.intake-semantic-group>summary:focus-visible, .intake-priority-link:focus-visible；作用域按选择器限定，尺寸及状态以以下声明为准。 */

.intake-semantic-group>summary:focus-visible, .intake-priority-link:focus-visible {
  outline:2px solid var(--focus-ring); outline-offset:3px;
}
/* 布局规则：@media(max-width:700px)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@media(max-width:700px) {
  .my-stats-trend-toggle button, .my-stats-diagnosis-toggle button,
  .my-stats-disease-trend-button, .my-stats-diagnosis-more,
  /* 布局规则：.my-stats-diagnosis-search button；作用域按选择器限定，尺寸及状态以以下声明为准。 */
  .my-stats-diagnosis-search button { min-height:44px; }
  /* 布局规则：.statistics-cards .my-stats-card；作用域按选择器限定，尺寸及状态以以下声明为准。 */
  .statistics-cards .my-stats-card { min-height:96px; padding:8px; gap:2px; }
  /* 布局规则：.statistics-cards .my-stats-card strong；作用域按选择器限定，尺寸及状态以以下声明为准。 */
  .statistics-cards .my-stats-card strong { margin:3px 0 1px; }
}

/* Patient list: actual visit facts and care status stay distinct and compact. */
/* 布局规则：.patient-table .patient-latest-visit；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.patient-table .patient-latest-visit{min-width:174px;white-space:nowrap;font-size:13px;color:#304d3e;line-height:1.45}
/* 布局规则：.patient-table .patient-record-status；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.patient-table .patient-record-status{display:block;font-size:12px;color:#536859}
/* 布局规则：.patient-table .patient-visit-label；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.patient-table .patient-visit-label{display:none}
/* 布局规则：.patient-table .patient-care-status；作用域按选择器限定，尺寸及状态以以下声明为准。 */
.patient-table .patient-care-status{display:block;font-size:12px;color:#536859;line-height:1.4}
/* 布局规则：@media(min-width:681px)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@media(min-width:681px){
 /* 布局规则：.patient-table td；作用域按选择器限定，尺寸及状态以以下声明为准。 */
 .patient-table td{height:60px;padding-top:7px;padding-bottom:7px}
}
/* 布局规则：@media(max-width:680px)；作用域按选择器限定，尺寸及状态以以下声明为准。 */
@media(max-width:680px){
 /* 布局规则：.patient-table .patient-latest-visit；作用域按选择器限定，尺寸及状态以以下声明为准。 */
 .patient-table .patient-latest-visit{grid-column:1/-1;min-width:0;white-space:normal;font-size:12px;margin-top:3px;line-height:1.5}
 /* 布局规则：.patient-table .patient-visit-label；作用域按选择器限定，尺寸及状态以以下声明为准。 */
 .patient-table .patient-visit-label{display:inline}
 /* 布局规则：.patient-table .patient-record-status；作用域按选择器限定，尺寸及状态以以下声明为准。 */
 .patient-table .patient-record-status{display:inline;font-size:12px;margin-left:6px;white-space:nowrap}
 /* 布局规则：.patient-table .patient-care-status；作用域按选择器限定，尺寸及状态以以下声明为准。 */
 .patient-table .patient-care-status{display:inline;font-size:12px;margin-left:6px;white-space:nowrap}
 /* 布局规则：.patient-table .patient-classification；作用域按选择器限定，尺寸及状态以以下声明为准。 */
 .patient-table .patient-classification{grid-column:1/-1}
 /* 布局规则：.patient-table .patient-row-action；作用域按选择器限定，尺寸及状态以以下声明为准。 */
 .patient-table .patient-row-action{grid-row:1/3}
}

/* 简版界面：三栏底栏与首诊引导 */
.mobile-business-nav[data-cols="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}
.dashboard-guide{margin:0 0 18px;border-left:4px solid #417759}
.dashboard-guide-steps{margin:10px 0 8px;padding-left:1.25em;color:#314f3f}
.dashboard-guide-steps li{margin:6px 0}
.dashboard-guide-actions{margin-top:12px}
.ui-mode-card .ui-mode-toggle{display:flex;align-items:center;gap:10px;margin:12px 0 6px;font-weight:600}
.ui-mode-card .tiny{font-size:13px}
.record-field-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px}
.record-field-label{font-weight:600;color:#2a4638;font-size:14px}
.phrase-inline{font-size:12px;padding:4px 9px;flex:none;min-height:0;line-height:1.2}
.record-text-field>textarea,.record-text-field textarea{width:100%;min-height:48px;max-height:260px;border:1px solid #cdd8cb;border-radius:8px;padding:8px 10px;line-height:1.45;resize:vertical;overflow-y:auto;field-sizing:content}
.record-more-section{margin:12px 0 6px;padding:10px 12px;border:1px dashed #c5d4c4;border-radius:10px;background:#fbfcf9}
.record-more-section>summary{cursor:pointer;font-weight:600;color:#315846}
.record-simple-flow{display:flex;flex-direction:column;gap:8px;margin-bottom:6px}
.record-simple-banner{margin:0 0 8px;padding:8px 10px;background:#eef5ee;border-radius:8px;color:#2f4f3c;font-size:12px}
.record-simple-flow .record-section-grid{display:contents}
.record-more-section .record-section-grid{display:block;margin:8px 0}
.record-modules{gap:10px}
/* 左侧页签模式：同一时刻只展示一个病历模块，标题作栏目头，不再当折叠控件 */
.record-modules.is-tabbed .record-module[hidden]{display:none!important}
.record-modules.is-tabbed .record-module:not([hidden]){margin:0}
.record-modules.is-tabbed .record-module:not([hidden])>summary{cursor:default}
.record-modules.is-tabbed .record-module:not([hidden])>summary::after{display:none}
.record-module{margin:0;padding:0;border:1px solid #d5e4d4;border-radius:12px;background:#fff;overflow:hidden}
.record-module>summary{cursor:pointer;list-style:none;padding:10px 14px;font-weight:650;font-size:15px;color:#234a39;background:linear-gradient(180deg,#f3f8f2,#eef5ee);border-bottom:1px solid #dce5d8}
.record-module>summary::-webkit-details-marker{display:none}
.record-module>summary::after{content:'';float:right;width:7px;height:7px;margin-top:6px;border-right:2px solid #6a8574;border-bottom:2px solid #6a8574;transform:rotate(45deg)}
.record-module[open]>summary::after{transform:rotate(225deg);margin-top:8px}
.record-module-body{padding:8px 10px 10px}
.record-module-body>.encounter-identity-summary[hidden]{display:none!important}
.record-module-body>.record-info-table{margin:0}
.record-module-body>.visit-time-field[hidden]{display:none!important}
.record-module-body>.record-fields-table{margin:0}
.record-module-body .intake-workspace-category{margin:8px 0 0}
.visit-at-inline{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.visit-at-inline input[type=datetime-local]{flex:1 1 180px;min-width:0;width:auto;padding:6px 8px;margin:0}
.visit-at-inline .visit-at-now,#set-visit-now.visit-at-now{flex:none;padding:5px 9px;min-height:0;font-size:12px}
.record-module.record-more-section{border-style:dashed;background:#fbfcf9}
.record-module.record-more-section>summary{background:#f7faf5;font-weight:600;font-size:14px}
#encounter-workspace .record-text-field{margin-bottom:10px}
#encounter-workspace .visit-time-field{padding:8px 10px;gap:8px;align-items:center;margin-bottom:10px}
#encounter-workspace .visit-time-field label{min-width:0;flex:1 1 220px;margin:0}
#encounter-workspace .visit-time-field>p.muted{display:none}
#encounter-workspace .visit-time-field #set-visit-now{padding:6px 10px;min-height:0;font-size:13px}
#encounter-workspace[data-ui-mode=simple] .record-simple-banner{display:none}
#encounter-workspace .record-fields-table{margin:0 0 10px;font-size:13px}
#encounter-workspace .record-fields-table th{width:8.5rem;background:#f1f6ef;vertical-align:middle}
#encounter-workspace .record-fields-table td{padding:4px 6px;vertical-align:middle}
#encounter-workspace .record-fields-table .record-field-label{display:block;font-size:13px;line-height:1.3;margin:0 0 4px}
#encounter-workspace .record-fields-table .phrase-inline{display:inline-flex;padding:2px 7px;font-size:11px;border-radius:6px}
#encounter-workspace .record-fields-table textarea{width:100%;min-height:34px;max-height:220px;margin:0;border:0;border-radius:0;padding:6px 8px;background:transparent;box-shadow:none;resize:vertical;font-size:14px;line-height:1.4}
#encounter-workspace .record-fields-table textarea:focus{outline:2px solid #aacaba;outline-offset:-2px}
#encounter-workspace .record-fields-table .record-text-field{margin:0}
#encounter-workspace .record-section-grid .record-text-field textarea,
#encounter-workspace .record-simple-flow .record-text-field textarea,
#encounter-workspace .record-more-section .record-text-field textarea{min-height:34px;font-size:14px}
#encounter-workspace .record-more-section .intake-workspace-category{grid-template-columns:1fr;gap:6px;margin:4px 0 10px}
#encounter-workspace .record-more-section .intake-workspace-category>h3{font-size:14px;margin:0}
#encounter-workspace .record-more-section .intake-semantic-group>summary{min-height:40px;padding:8px 10px;gap:4px 8px}
#encounter-workspace .record-more-section .intake-group-excerpt:empty,
#encounter-workspace .record-more-section .intake-semantic-group:not([open]) .intake-group-excerpt{display:none}
#encounter-workspace .record-more-section .intake-group-title{font-size:13px}
#encounter-workspace .record-more-section .intake-group-count{font-size:12px;color:#6a7f6e}
/* 采集分组行改为单行：名称 + 已记录数 + 摘要，摘要过长省略号截断，收起时每行约 40px */
#encounter-workspace .intake-semantic-group>summary{grid-template-columns:auto auto minmax(0,1fr) 12px;gap:4px 8px;min-height:40px;padding:8px 10px}
#encounter-workspace .intake-semantic-group>summary::after{grid-column:4;grid-row:1}
#encounter-workspace .intake-semantic-group .intake-group-excerpt{grid-column:3/4;grid-row:1;display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:680px){
 #encounter-workspace .record-fields-table,#encounter-workspace .record-fields-table tbody{display:block}
 #encounter-workspace .record-fields-table tr{display:grid;grid-template-columns:minmax(92px,.42fr) minmax(0,1fr)}
 #encounter-workspace .record-fields-table th,#encounter-workspace .record-fields-table td{width:auto;min-width:0}
}
#encounter-workspace[data-ui-mode=simple] .h5-draft-backup[hidden]{display:none!important}
#encounter-workspace[data-ui-mode=simple] #record-section-tabs{display:none!important}
#encounter-workspace[data-ui-mode=simple] #work-panel-materials #paper-document-message:empty{display:none}
#encounter-workspace[data-ui-mode=simple] #work-panel-materials #photo-message:empty{display:none}
/* 简版：顶栏快捷采集与资料页主卡重复，默认隐藏；完整模式或对照资料时仍可用 */
#encounter-workspace[data-ui-mode=simple] #direct-photo-entry{display:none}
#encounter-workspace[data-active-panel=materials] #direct-photo-entry{display:none}
/* 基本信息表：固定标签列宽，减少锯齿对齐 */
#encounter-workspace .record-info-table{table-layout:fixed;width:100%}
#encounter-workspace .record-info-table th{width:7.5em;white-space:nowrap}
#encounter-workspace .record-info-table td{width:auto}
#encounter-workspace .record-info-table .visit-at-edit-row th{width:7.5em}
#encounter-workspace .record-info-table .visit-at-edit-row td{width:auto}
#sources.materials-simple{padding:10px 12px 8px}
#sources.materials-simple>h2{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
/* 资料区唯一焦点：现场采集卡；其余一律次级折叠 */
#photo-capture{margin:0 0 8px}
#photo-capture form{margin:0}
.capture-kind-field{border:0;padding:0;margin:0;min-inline-size:0}
.capture-hero{margin:0;padding:14px 14px 12px;border-radius:14px;background:#fff;border:1px solid #d5e4d4;box-shadow:0 1px 0 #eef3ec}
.capture-hero-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 10px}
.capture-hero-head strong{font-size:14px;font-weight:700;color:#1f3d30;letter-spacing:.02em}
.capture-hero-head .materials-tip{margin:0;padding:0;font-size:11.5px;line-height:1.4;color:var(--ink-3,#7d8d84)!important;background:none;border:0;max-width:28em}
.capture-action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0}
.capture-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:100px;padding:14px 8px;margin:0;border:1px solid #d5e4d4;border-radius:14px;background:#f7faf6;color:#1f4336;cursor:pointer;transition:transform .15s ease,border-color .15s ease,background .15s ease,box-shadow .15s ease}
.capture-tile:hover{border-color:#285f4f;background:#fff;box-shadow:0 4px 12px #1a433614;transform:translateY(-1px)}
.capture-tile:disabled{opacity:.45;box-shadow:none;transform:none}
.capture-tile-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;background:#285f4f;color:#fff}
.capture-tile-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.capture-tile-icon svg .fill{fill:currentColor;stroke:none}
.capture-tile[data-capture-kind=paper] .capture-tile-icon{background:#2b6b58}
.capture-tile[data-capture-kind=skin] .capture-tile-icon{background:#3a7a4f}
.capture-tile[data-capture-kind=tongue] .capture-tile-icon{background:#4a6f5a}
.capture-tile-label{font-size:13.5px;font-weight:650;letter-spacing:.04em;color:#234a39}
.capture-toolbar{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;margin:12px 0 0;padding:10px 0 0;border-top:1px solid #e4ece2}
.capture-toolbar>.photo-more,.capture-toolbar>.capture-consent,.capture-toolbar>.capture-refresh{align-self:center}
.capture-consent{display:inline-flex;align-items:center;gap:6px;margin:0;min-height:28px;padding:0;font-size:12.5px;line-height:1.2;color:#5a7264;font-weight:400}
.capture-consent input{margin:0;flex:0 0 auto}
.capture-refresh{margin-left:auto;padding:5px 10px;min-height:28px;font-size:12px}
.capture-save-row{margin-top:8px;gap:8px}
.capture-save-row #save-photos{min-height:42px;flex:1 1 120px}
.capture-save-row:not(.is-ready){display:none}
#photo-capture .capture-save-row button:not(.primary){padding:7px 11px;min-height:0;font-size:12.5px}
.materials-tip{margin:0;padding:0;font-size:11.5px;line-height:1.45;color:var(--ink-3,#7d8d84)!important;background:none;border:0}
#work-panel-materials .notice:not(.error):not(:empty){margin:6px 0 0;padding:6px 10px;font-size:12px;line-height:1.45;border-radius:8px;font-weight:400}
#work-panel-materials .notice.warn{background:#f6f3ea;border:1px solid #e6ddc4;color:#6a6148}
#work-panel-materials .notice.materials-status:empty{display:none}
#work-panel-materials .notice.materials-status:not(:empty){background:#f3f7f1;border:1px solid #dde8d9;color:#4a6354}
.photo-more{margin:0;padding:0;border:0;background:transparent;flex:0 1 auto}
.photo-more>summary{cursor:pointer;display:inline-flex;align-items:center;min-height:28px;padding:4px 8px;border-radius:7px;font-weight:600;color:#285f4f;list-style:none;font-size:12.5px;border:1px solid #d5e4d4;background:#fff}
.photo-more>summary::-webkit-details-marker{display:none}
.photo-more>summary:hover{background:#eef4ec}
.photo-more[open]{flex:1 1 100%;padding:8px 10px;border:1px solid #d7e2d3;border-radius:10px;background:#fbfcf9}
.photo-more[open]>summary{margin:0 0 8px;border:0;background:transparent;padding:0}
/* 更多资料：多页 / 已存 / 音视频同一组次级入口，不与现场采集抢权重 */
.materials-more{margin:10px 0 0;padding:8px 10px 6px;border:1px solid #e2eadf;border-radius:12px;background:#fbfcf9}
.materials-more-title{margin:0 0 2px;padding:0 4px;font-size:12px;font-weight:650;color:#5a7264;letter-spacing:.02em}
.materials-more-list{display:flex;flex-direction:column}
.materials-more-list>.materials-secondary{margin:0;padding:0;border:0;border-radius:0;background:transparent;border-bottom:1px solid #e8eee6}
.materials-more-list>.materials-secondary:last-child{border-bottom:0}
.materials-more-list>.materials-secondary>summary{cursor:pointer;display:flex;align-items:center;gap:6px;min-height:38px;padding:8px 6px;font-weight:600;color:#4a6354;list-style:none;font-size:13px;border-radius:8px}
.materials-more-list>.materials-secondary>summary::before{content:'▸';flex:0 0 auto;width:12px;color:#7d8d84;font-size:11px;line-height:1;transition:transform .15s ease}
.materials-more-list>.materials-secondary>summary:hover{background:#eef4ec;color:#234a39}
.materials-more-list>.materials-secondary>summary::-webkit-details-marker{display:none}
.materials-more-list>.materials-secondary[open]{padding:0 0 8px;border-bottom-color:#e2eadf}
.materials-more-list>.materials-secondary[open]>summary{margin-bottom:4px}
.materials-more-list>.materials-secondary[open]>summary::before{transform:rotate(90deg);color:#4a6354}
.materials-more-list #source-list{padding:0 4px 2px}
.materials-more-list #source-list>.empty{margin:0;padding:6px 4px 8px;font-size:12px;color:#7d8d84;background:none;border:0}
.materials-secondary-skin{margin:2px 0 0;padding:0;border:0;border-radius:10px;background:transparent}
.materials-secondary-skin>summary{cursor:pointer;font-weight:600;color:#5a7264;list-style:none;font-size:12.5px;padding:8px 10px;border-radius:8px}
.materials-secondary-skin>summary:hover{background:#eef4ec;color:#234a39}
.materials-secondary-skin>summary::-webkit-details-marker{display:none}
.materials-secondary-skin[open]{padding:8px 10px 10px;border:1px solid #e2eadf;background:#fbfcf9}
/* 外层 summary 已写明用途，内层标题隐藏以免重复 */
.materials-secondary .paper-doc-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.materials-media #media-capture{margin:0;padding:0 2px;border:0;background:transparent}
.materials-media #media-capture>.row{align-items:center;gap:8px;margin:0 0 6px}
.materials-media #media-capture>.row h2,.materials-media #media-capture>h2,.materials-media #media-capture>h3{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.materials-media #media-capture>.notice{margin:0 0 8px;padding:0;font-size:11.5px;line-height:1.45;color:#7d8d84;background:none;border:0}
.materials-media #media-capture .actions{margin-top:6px}
.materials-media #media-capture .actions button{padding:6px 10px;min-height:0;font-size:12.5px}
#sources.materials-simple #paper-documents{border:0;margin:0;padding:0}
#sources.materials-simple #paper-documents .paper-doc-heading{margin:0 0 4px}
#sources.materials-simple #paper-documents .paper-doc-heading .actions{margin:0;gap:6px}
#sources.materials-simple #paper-documents .paper-doc-heading .actions button{padding:6px 10px;min-height:0;font-size:12.5px}
#sources.materials-simple #paper-documents .paper-doc-help:empty{display:none}
#sources.materials-simple #paper-documents .paper-doc-help{margin:0 0 8px;font-size:11.5px;line-height:1.45;color:var(--ink-3,#7d8d84)}
#sources.materials-simple #saved-sources{margin:0}
#work-panel-materials #media-capture{margin:0}
@media(max-width:680px){
 .capture-action-grid{gap:8px}
 .capture-tile{min-height:88px;padding:12px 6px}
 .capture-tile-icon{width:40px;height:40px;border-radius:12px}
 .capture-tile-icon svg{width:22px;height:22px}
 .capture-tile-label{font-size:13px}
 .capture-refresh{margin-left:0}
 #sources.materials-simple{padding:8px 10px}
}

/* ===== 信息层级与密度层：统一字号阶梯、页头、卡片、说明折叠与事实网格 ===== */
:root{
 --ink:#22382e;--ink-2:#53685c;--ink-3:#7d8d84;--line:#e3eae0;--line-2:#eef3ec;
 --accent:#285f4f;--accent-soft:#eef4ec;--warn:#8a6a16;
}
body{font-size:14px;color:var(--ink);line-height:1.55}
#content h1{font-size:22px;font-weight:700;line-height:1.3;margin:0;letter-spacing:-.01em}
#content h2{font-size:16px;font-weight:650;line-height:1.35;margin:0 0 10px;color:#1f3d30}
#content h3{font-size:14px;font-weight:650;line-height:1.35;margin:0 0 8px;color:#2b4639}
#content h4{font-size:13px;font-weight:600;margin:0 0 6px}
#content p{margin:0 0 8px}
.muted,.card>.muted,.record-module-body>.muted{color:var(--ink-3);font-size:12.5px;line-height:1.55}
#content .text{font-size:13.5px}

/* 页头：标题为主、说明为次，右侧只保留一个主操作 */
.page-head{align-items:flex-start;flex-wrap:wrap;gap:10px 14px;margin:0 0 16px;padding:0 0 13px;border-bottom:1px solid var(--line)}
.page-head h1{margin:0 0 3px}
.page-head>div{min-width:0}
.page-head>div>p,#content .page-head p{margin:0;font-size:12.5px;color:var(--ink-3);line-height:1.5}
.page-head>.button,.page-head .actions{flex:none}
.page-head .actions{margin:0}

/* 卡片：收紧留白，标题与正文形成明确落点 */
#content .card{padding:16px 18px;border-radius:14px;margin-bottom:14px;border-color:var(--line)}
#content .card>h2:first-child,#content .card>.row:first-child>h2{margin-bottom:10px}
#content .card>.row{margin-bottom:8px}
#content .card>.row>h2{margin:0}
.card>.actions:last-child{margin-top:10px;margin-bottom:0}

/* 长说明：默认收起为一行“说明”，需要时才展开 */
details.hint{margin:6px 0 2px;font-size:12.5px;color:var(--ink-3)}
details.hint>summary{display:inline-flex;align-items:center;gap:5px;cursor:pointer;list-style:none;color:var(--ink-3);font-size:12.5px;min-height:24px}
details.hint>summary::-webkit-details-marker{display:none}
details.hint>summary::before{content:'ⓘ';font-size:12px;color:#8fa596}
details.hint>summary:hover{color:var(--accent)}
details.hint[open]>summary{margin-bottom:4px}
details.hint>p{margin:0 0 4px;line-height:1.6;color:var(--ink-2)}
.hint-inline{font-size:12px;color:var(--ink-3)}

/* 事实网格：标签小灰、取值深色，一眼看清主次 */
.fact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:9px 20px;margin:0 0 12px}
.fact-grid>div{min-width:0;padding-left:9px;border-left:2px solid var(--accent-soft)}
.fact-grid dt{font-size:11.5px;color:var(--ink-3);letter-spacing:.02em}
.fact-grid dd{margin:2px 0 0;font-size:13.5px;color:var(--ink);overflow-wrap:anywhere}
.fact-grid dd.is-empty{color:var(--ink-3);font-size:12.5px}
.fact-grid>div.span-2{grid-column:span 2}
@media(max-width:680px){.fact-grid{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px 14px}.fact-grid>div.span-2{grid-column:span 2}}

/* 状态胶囊：统一尺寸，避免各行高矮不一 */
.pill,.status-pill{display:inline-flex;align-items:center;gap:4px;padding:1px 8px;border-radius:999px;font-size:11.5px;line-height:1.7;background:#eef4ec;color:#2f5a48;border:1px solid #dbe7d9;white-space:nowrap}
.pill.red{background:#fdf0ee;border-color:#f0d5cf;color:#9c4034}
.pill.warn{background:#fdf7e7;border-color:#ecdfbb;color:#7d6417}

/* 记录模块：一行标题 + 填写状态，收起时也能判断主次 */
.record-module{border-color:var(--line);border-radius:12px}
.record-module>summary{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:11px 14px;font-size:14px;font-weight:650;color:#22483a;background:#f6faf5;border-bottom:1px solid var(--line-2)}
.record-module>summary::after{content:'';float:none;width:7px;height:7px;margin:0;border-right:2px solid #7d9384;border-bottom:2px solid #7d9384;transform:rotate(45deg);transition:transform .15s}
.record-module[open]>summary::after{transform:rotate(225deg);margin:0}
.record-module[open]>summary{border-bottom-color:var(--line)}
.record-module-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.record-module-state{font-size:11.5px;font-weight:500;color:var(--ink-3);white-space:nowrap}
.record-module-state.is-filled{color:#2f6b52;font-weight:600}
.record-module-state.is-empty{color:#93867a}
.record-module-body{padding:10px 12px 12px}
.record-module.record-more-section>summary{background:#fbfcf9;font-weight:600;font-size:13.5px}

/* 模块内的次要采集项：默认收起，避免“要填的东西太多” */
.record-module-sub{margin:10px 0 0;border:1px dashed #dfe8db;border-radius:10px;background:#fbfcfa}
.record-module-sub>summary{display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none;padding:9px 12px;font-size:12.5px;color:var(--ink-2);min-height:38px}
.record-module-sub>summary::-webkit-details-marker{display:none}
.record-module-sub>summary::after{content:'展开';margin-left:auto;font-size:11.5px;color:var(--ink-3)}
.record-module-sub[open]>summary::after{content:'收起'}
.record-module-sub[open]>summary{border-bottom:1px dashed #e6ece3;color:#2b4639;font-weight:600}
.record-module-sub-body{padding:8px 10px 10px}
.record-module-sub:not([open])>.record-module-sub-body{display:none;padding:0}
/* 全局 details 默认带 16px 内边距与 20px 外边距，紧凑折叠块单独重置，避免每个折叠块凭空多出约 30–50px */
details.hint{padding:0;border:0;background:none}
details.record-module-sub{padding:0}
details.record-module-sub>summary{margin:0}
details.record-module-sub[open]>summary{margin:0 0 8px}
#encounter-workspace .record-module-sub>summary{min-height:34px;padding:7px 10px}

/* 折叠块收起时其内容一律不参与布局：旧版内核会按上次展开尺寸给收起内容留出空白（每个折叠块约 30–50px） */
details:not([open])>summary~*{display:none!important}
details:not([open])::details-content{content-visibility:hidden;contain-intrinsic-size:0 0}
/* 收起时不留 16px 内边距与 12px 摘要下边距，只保留一行摘要素描，避免每个未展开项占掉约 30px */
details:not([open]){padding:0}
details:not([open])>summary{margin:0;min-height:40px;padding:9px 12px}

/* 工作台：一个主操作 + 三个数字，弱化说明文案 */
.dashboard-metrics{gap:10px;margin:14px 0}
.dashboard-metrics a{min-height:64px;padding:12px 16px;gap:12px;border-radius:13px;border-color:var(--line)}
.dashboard-metrics strong{font-size:26px;line-height:1.1}
.dashboard-metrics span{font-size:13px;color:var(--ink-2)}
.dashboard-continue{padding:14px 18px;border-left:3px solid #417759;border-radius:13px}
.dashboard-continue h2{font-size:15px;margin:0 0 4px}
.dashboard-continue p{margin:0;font-size:13px;color:var(--ink-2)}
.dashboard-columns{gap:14px}
.dashboard-columns>.card{padding:16px 18px}
.dashboard-columns .row h2{font-size:15px}
.dashboard-record,.dashboard-task{padding:11px 0;gap:12px}
.dashboard-record p,.dashboard-task p{margin:2px 0;font-size:13px}
.dashboard-record .muted,.dashboard-task .muted{font-size:12px}
.dashboard-record strong,.dashboard-task strong{font-size:14px}
.dashboard-guide{padding:15px 18px}
.dashboard-guide h2{font-size:15px}
.dashboard-guide-steps{margin:8px 0 6px;padding-left:18px;font-size:13px;color:var(--ink-2)}
.dashboard-guide-steps li{margin:2px 0}

/* 患者档案 */
#patient-workspace .patient-context{padding:11px 14px;margin:12px 0 14px;border-radius:12px;background:#f3f7f1}
#patient-workspace .patient-context-meta{font-size:12.5px;color:var(--ink-3)}
#patient-workspace .patient-allergies{margin:3px 0 0;font-weight:600;font-size:13.5px}
#patient-workspace .patient-work-tabs{gap:5px;margin-bottom:14px;padding:7px 0;border-bottom-color:var(--line)}
#patient-workspace [data-patient-tab]{min-height:38px;padding:8px 10px;font-size:13.5px;max-width:200px}
#patient-workspace .card{padding:16px 18px}
#patient-workspace .card h2{font-size:16px;margin-bottom:10px}
#patient-workspace #new-encounter{gap:10px 14px}

/* 表单：标签为主、提示为次、必填项低调 */
label>span.muted,label>.muted{font-size:11.5px;color:var(--ink-3);display:block;margin-top:3px}
input,select,textarea{border-radius:9px}
textarea{min-height:76px}
/* 返回链接与页头次级操作：不抢主操作的注意力 */
.back-link{display:inline-flex;align-items:center;gap:4px;font-size:12.5px;color:var(--ink-3);margin:0 0 5px}
.back-link:hover{color:var(--accent);text-decoration:none}
.page-head .actions{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.page-head .actions .button{font-size:12.5px;padding:7px 12px;min-height:34px}
#patient-workspace .patient-context{background:#f3f7f1;border-color:#dde8d9}
/* 基本信息：实际就诊时间并入身份表首行，与临床表同框 */
.record-info-table tr.visit-at-edit-row th{vertical-align:middle;white-space:nowrap}
.record-info-table tr.visit-at-edit-row td{vertical-align:middle;background:#fafcf9}
.record-info-table tr.visit-at-edit-row .visit-at-inline{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}
.record-info-table tr.visit-at-edit-row input[type=datetime-local]{flex:1 1 210px;min-width:0;max-width:280px;width:auto;margin:0;padding:7px 10px;border:1px solid #c5d6c8;border-radius:8px;background:#fff;font-size:13.5px;color:#234a39}
.record-info-table tr.visit-at-edit-row input[type=datetime-local]:focus{outline:2px solid #aacaba;outline-offset:1px;border-color:#8fb396}
.record-info-table tr.visit-at-edit-row .visit-at-now,#set-visit-now.visit-at-now{flex:none;margin:0;padding:7px 12px;min-height:0;font-size:13px;font-weight:600;color:#234a39;background:#eef5ee;border:1px solid #c5d6c8;border-radius:8px}
.record-info-table tr.visit-at-edit-row .visit-at-now:hover,#set-visit-now.visit-at-now:hover{background:#e2ecdf;border-color:#a8c0ab}
.record-module .visit-time-field.record-inline-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 10px;margin:0 0 8px;background:#f4f8f3;border:1px solid var(--line);border-radius:10px}
.record-module .visit-time-field.record-inline-row label{flex:1 1 240px;min-width:0;margin:0;font-size:12.5px;color:var(--ink-2)}
.record-module .visit-time-field.record-inline-row input[type=datetime-local]{max-width:220px;margin-top:4px}
.record-module .encounter-identity-details{margin:6px 0 0;padding:0;border:0;background:none;border-top:1px dashed var(--line-2)}
.record-module .encounter-identity-details>summary{display:flex;align-items:center;gap:6px;min-height:36px;padding:7px 0;font-size:12.5px;color:var(--ink-3);list-style:none;cursor:pointer}
.record-module .encounter-identity-details>summary::-webkit-details-marker{display:none}
.record-module .encounter-identity-details>summary:hover{color:var(--accent)}
.record-module .encounter-identity-details>summary::before{content:'▸';font-size:11px}
.record-module .encounter-identity-details[open]>summary::before{content:'▾'}
.encounter-identity-body{overflow-x:auto;padding-top:0}
.encounter-identity-body .record-info-table{margin:0}
/* AI与复诊：按「辅助草稿 / 自动整理 / 复诊」分块，工具条铺满宽度 */
#work-panel-ai>.ai-panel,#encounter-workspace .ai-panel{margin:0;padding:14px 16px 12px}
.ai-panel-head{margin:0 0 12px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.ai-panel-head h2{margin:0 0 8px;font-size:16px}
.ai-howto{margin:0;padding:0 0 0 1.2em;font-size:13px;line-height:1.55;color:#2b4639}
.ai-howto li{margin:0 0 2px}
.ai-howto-note{margin:8px 0 0;font-size:12px;line-height:1.45;color:var(--ink-3)}
.ai-block{margin:0 0 10px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#f8faf7}
.ai-block:last-child{margin-bottom:0}
.ai-block-primary{background:#fff;border-color:#d5e4d4}
.ai-block-head{margin:0 0 8px}
.ai-block-head h3{margin:0 0 2px;font-size:13.5px;color:#234a39}
.ai-block-head .muted{margin:0;font-size:12px;line-height:1.4}
.ai-block-title{font-size:13.5px;font-weight:650;color:#234a39}
.ai-block [data-auto-ai-state],.ai-auto-fold>summary [data-auto-ai-state]{margin:0;font-size:12.5px;font-weight:600;color:#2a4638}
.ai-block [data-auto-ai-source]{margin:0 0 6px;font-size:12px}
.ai-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0}
.ai-toolbar>.notice{flex:1 1 100%;margin:0}
.ai-toolbar>.notice:empty{display:none}
.ai-toolbar button{min-height:34px;padding:6px 12px;font-size:12.5px}
.ai-toolbar button.primary{order:-1}
.ai-block-followup,.ai-block-auto,.ai-auto-fold{background:#fff;padding:0;border:1px solid var(--line);border-radius:10px}
.ai-block-followup>summary,.ai-auto-fold>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-height:40px;padding:9px 12px;margin:0}
.ai-block-followup>summary::-webkit-details-marker,.ai-auto-fold>summary::-webkit-details-marker{display:none}
.ai-block-followup>summary::before,.ai-auto-fold>summary::before{content:'▸';color:#7d8d84;font-size:11px;line-height:1;transition:transform .15s ease}
.ai-block-followup[open]>summary::before,.ai-auto-fold[open]>summary::before{transform:rotate(90deg)}
.ai-block-followup>summary .muted,.ai-auto-fold>summary .muted{margin:0;font-size:12px;color:var(--ink-3)}
.ai-block-body{padding:0 12px 12px}
.ai-block-body>.muted{margin:0 0 8px;font-size:12px;line-height:1.45}
#ai-preparation:empty{display:none}
#ai-preparation.ai-block-auto{padding:0;background:transparent;border:0}
@media(max-width:680px){
 .ai-panel-head{flex-direction:column}
 .ai-toolbar button{flex:1 1 calc(50% - 8px)}
}
/* 归档过程：顶栏状态 + 全宽版本行；间距收紧，避免主区空荡 */
#work-panel-versions>.archive-panel,#encounter-workspace .archive-panel{margin:0;padding:14px 16px 12px;min-height:0}
.archive-panel>.archive-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0 0 10px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.archive-panel>.archive-head h2{margin:0 0 4px;font-size:16px}
.archive-panel>.archive-head .muted{margin:0;font-size:12.5px;max-width:42em;line-height:1.45}
.archive-panel .archive-status{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex:none}
.archive-panel .archive-status strong{font-size:14px;color:var(--accent);font-variant-numeric:tabular-nums}
.archive-panel .archive-meta{display:flex;flex-wrap:wrap;gap:6px 14px;margin:0 0 8px;font-size:12px;color:var(--ink-3)}
.archive-panel .version-list{display:flex;flex-direction:column;gap:6px}
.archive-panel .version-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 11px;border:1px solid var(--line);border-radius:10px;background:#fff}
.archive-panel .version-row:hover{border-color:#a8c1ac;background:#f8fbf6}
.archive-panel .version-row.is-confirmed{background:#f3f8f1;border-color:#c7d8c4}
.archive-panel .version-row-main{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
.archive-panel .version-badge{flex:none;min-width:36px;padding:4px 7px;border-radius:7px;background:#e7f0e5;color:var(--accent);font-size:12px;font-weight:700;text-align:center;font-variant-numeric:tabular-nums}
.archive-panel .version-row.is-confirmed .version-badge{background:#285f4f;color:#fff}
.archive-panel .version-row-text{min-width:0}
.archive-panel .version-row-text strong{display:block;font-size:13px;line-height:1.3}
.archive-panel .version-row-text .muted{margin:1px 0 0;font-size:12px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.archive-panel .version-row>button{flex:none;min-height:32px;padding:5px 10px;font-size:12.5px}
@media(max-width:680px){
 .archive-panel>.archive-head{flex-direction:column;align-items:stretch}
 .archive-panel .archive-status{align-items:flex-start}
 .archive-panel .version-row{flex-wrap:wrap}
 .archive-panel .version-row>button{width:100%}
 .archive-panel .version-row-text .muted{white-space:normal}
}
/* 诊断模块：标题行承载计数与主操作，说明压成一行次要文案 */
#diagnoses-section{margin:0 0 8px}
#diagnoses-section>.row{align-items:center;gap:10px;margin:0 0 6px}
#diagnoses-section>.row>h3{margin:0;font-size:13.5px}
#diagnoses-section>.row>#diagnosis-count{font-size:12px;color:var(--ink-3)}
#diagnoses-section>.row>#add-diagnosis{margin:0;padding:6px 12px;min-height:32px;font-size:12.5px}
#diagnoses-section>.row>#toggle-recent-diagnoses{margin:0 0 0 auto;padding:0;min-height:30px;border:0;background:none;box-shadow:none;color:var(--accent);font-size:12px;font-weight:500;text-decoration:underline;text-underline-offset:2px}
#diagnoses-section>.row>#toggle-recent-diagnoses:hover{color:var(--accent-strong,var(--accent))}
#diagnoses-section>.recent-diagnoses{margin:0;padding:0}
#diagnoses-section #recent-diagnosis-panel{margin:0 0 8px}
#diagnoses-section #recent-diagnosis-panel [data-recent-items],.record-module-sub-body .record-fields-table{margin:0}
#diagnoses-section>details.hint{margin:0 0 6px;padding:0;border:0;background:none}
#diagnoses-section>details.hint>summary{padding:0;min-height:24px;font-size:12px;color:var(--ink-3)}
#diagnoses-section>details.hint>p{font-size:12px}
#encounter-workspace #diagnoses-section>.notice{padding:0;margin:0 0 8px;background:none;border:0;color:var(--ink-3);font-size:12px;line-height:1.5}
#diagnoses-section #diagnosis-items>p.muted{margin:0 0 8px;font-size:12.5px}
/* 诊断模块内的次要依据：折叠行的表头不占额外高度，展开后仍按临床表填写 */
.record-module-sub-body .record-fields-table>tbody>tr>th{width:8.5rem}
.record-module-sub-body .record-module-sub-body{padding:0}

/* ===== 工作台：数字卡为主、待办才加重，列表压到两行，主操作只留一个 ===== */
/* 数字卡：数字在上、名称为辅、右箭头暗示可点；0 与未记录保持安静，有待办时整卡淡染 */
.dashboard-metrics{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0 0 14px}
.dashboard-metrics>.dashboard-metric{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;gap:0 8px;min-height:0;padding:9px 13px 10px;background:#fff;border:1px solid var(--line);border-radius:13px;color:inherit}
.dashboard-metrics>.dashboard-metric>strong{grid-column:1;grid-row:1;font-size:23px;line-height:1.2;font-weight:700;color:var(--accent);font-variant-numeric:tabular-nums}
.dashboard-metrics>.dashboard-metric>span{grid-column:1;grid-row:2;font-size:12.5px;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dashboard-metrics>.dashboard-metric>i{grid-column:2;grid-row:1/3;font-style:normal;font-size:15px;line-height:1;color:#c2d0c5}
.dashboard-metrics>.dashboard-metric:hover{border-color:#a8c1ac;background:#f8fbf6;text-decoration:none}
.dashboard-metrics>.dashboard-metric:hover>i{color:var(--accent)}
.dashboard-metrics>.dashboard-metric.is-pending{background:#f3f8f1;border-color:#c7d8c4}
.dashboard-metrics>.dashboard-metric.is-pending>span{color:#3f5c4a;font-weight:600}

/* 继续接诊：一眼看到下一步做什么，整条淡染以区别普通卡片 */
#content .dashboard-continue{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;margin-bottom:14px;border-left:3px solid var(--accent);border-radius:13px;background:#f4f9f2}
#content .dashboard-continue.is-idle{background:#fbfcfa;border-left-color:#cbd7cb}
.dashboard-continue-main{min-width:0}
#content .dashboard-continue h2{font-size:14px;margin:0 0 3px;color:#1f3d30}
#content .dashboard-continue p{margin:0;font-size:13px;color:var(--ink-2);overflow-wrap:anywhere}
.dashboard-continue .button{flex:none;min-height:40px;padding:8px 15px;font-size:13.5px}

/* 栏目标题带条目数：不用去数就知道这栏是不是空的 */
.dashboard-count{margin-left:7px;font-size:12px;font-weight:600;color:var(--ink-3)}

/* 两条列表：标题行 + 一行次要信息，按钮固定右侧，行间用细线分隔 */
#content .dashboard-columns{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,1fr);gap:14px;align-items:start}
#content .dashboard-columns>.card{padding:15px 17px}
.dashboard-columns .row>h2{font-size:15px}
.dashboard-columns .row>.button{min-height:34px;padding:6px 12px;font-size:12.5px}
.dashboard-record,.dashboard-task{padding:10px;gap:12px;border-top-color:var(--line-2)}
/* 整行可点：按钮之外的地方也能进入这条记录，鼠标悬停给出明确反馈 */
.dashboard-record,.dashboard-task{position:relative;margin:0 -10px;border-radius:11px}
.dashboard-record:hover,.dashboard-task:hover{background:#f6faf4}
.dashboard-record:focus-within,.dashboard-task:focus-within{background:#f6faf4}
.dashboard-record>.button::after,.dashboard-task>.button::after{content:'';position:absolute;inset:0;border-radius:11px}
.dashboard-record-main,.dashboard-task-main{min-width:0}
.dashboard-record-title,.dashboard-task-title{display:flex;align-items:center;gap:7px;flex-wrap:wrap;line-height:1.35}
.dashboard-record .dashboard-record-title>strong,.dashboard-task .dashboard-task-title>strong{font-size:14px}
.dashboard-record .pill,.dashboard-task .pill{margin:0;padding:2px 7px;font-size:11px;border-radius:5px}
/* 列表内的段落统一压成行内次要文字，抵消 #content p 的默认下边距 */
#content .dashboard-record .dashboard-record-sub{margin:1px 0 0;font-size:13px;line-height:1.45;color:var(--ink)}
#content .dashboard-record .dashboard-record-meta,#content .dashboard-task .dashboard-task-meta{margin:1px 0 0;font-size:11.5px;line-height:1.4;color:var(--ink-3)}
.dashboard-record .button,.dashboard-task .button{flex:none;min-height:36px;padding:7px 13px;font-size:13px}

/* 空态：左边对齐的一行提示，避免整片白框看起来像没加载出来 */
.dashboard-columns .dashboard-empty{padding:16px;margin:0;text-align:left;font-size:13px;color:var(--ink-3);border:1px dashed var(--line);border-radius:12px;background:#fbfcfa}
.dashboard-tasks .dashboard-empty{padding:16px}
.dashboard-columns>.card>details.hint{margin-top:10px}

/* 5 张数字卡并排；窄屏退成两列，最后一张「待处理复诊」占满一行作为收尾 */
@media(max-width:1099px){
 .dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dashboard-metrics>.dashboard-metric:last-child{grid-column:1/-1}
}

@media(max-width:680px){
 .dashboard-metrics{gap:8px;margin-bottom:11px}
 .dashboard-metrics>.dashboard-metric{padding:8px 10px 9px}
 .dashboard-metrics>.dashboard-metric>strong{font-size:19px}
 .dashboard-metrics>.dashboard-metric>span{font-size:11.5px}
 .dashboard-metrics>.dashboard-metric>i{display:none}
 #content .dashboard-continue{flex-wrap:wrap;padding:12px 14px;gap:10px}
 .dashboard-continue-main{flex:1 1 100%}
 .dashboard-continue .button{flex:1 1 100%}
 .dashboard-record,.dashboard-task{flex-wrap:wrap;gap:8px}
 .dashboard-record .button,.dashboard-task .button{flex:1 1 100%}
}
/* ????????????????????????? */
.login.card{position:relative}
.login-test-note{position:absolute;top:30px;right:30px;margin:0;color:#c62828;font-size:12px;line-height:1.4;white-space:nowrap;pointer-events:none}