.hc-record{font:inherit;color:var(--ink,#183b40);min-width:0}.hc-record button,.hc-record input,.hc-record textarea,.hc-record select{font:inherit}.hc-record button{min-height:38px;padding:8px 12px;border:1px solid #cbdad8;border-radius:8px;background:#fff;color:inherit;cursor:pointer}.hc-record .pt-primary,.hc-steps [aria-pressed=true]{background:#177971;color:white;border-color:#177971}.hc-record input:not([type=checkbox]),.hc-record select,.hc-record textarea{width:100%;min-width:0;box-sizing:border-box;border:1px solid #bdcfcc;border-radius:7px;padding:8px;background:#fff;color:inherit}.hc-record textarea{min-height:72px;resize:vertical}.hc-record label{display:block;font-weight:600;font-size:13px}.hc-record label>input,.hc-record label>textarea,.hc-record label>select{margin-top:5px;font-weight:400}.hc-toolbar,.hc-toolbar>div,.hc-record .cs-record-list-actions,.hc-steps{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.hc-toolbar{justify-content:space-between;margin:10px 0}.hc-toolbar span{margin-left:10px;font-size:13px}.hc-steps{margin:12px 0}.hc-record .cs-record-list-actions{justify-content:flex-end}.hc-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0}.hc-exams,.hc-labs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.hc-exams>label,.hc-lab,.hc-images article,.hc-proposal{background:#fff;border:1px solid #d5e0de;border-radius:10px;padding:12px}.hc-lab-top{display:flex;gap:6px;align-items:center}.hc-lab-top input{flex:1}.hc-lab-top span{font-size:12px;white-space:nowrap}.hc-record .hc-check{display:flex;gap:8px;align-items:center;font-size:13px;font-weight:400;margin:12px 0}.hc-check input{width:17px;height:17px;flex:none}.hc-record [data-hc-status]{min-height:20px;font-size:13px;color:#9a4b21}.hc-images{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.hc-images img{width:100%;height:210px;object-fit:contain}.hc-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px}.hc-list button{text-align:left;display:grid;gap:7px}.hc-search{display:flex;align-items:end;gap:10px;margin:15px 0}.hc-search label{width:min(600px,80%)}.hc-proposal p{white-space:pre-wrap;overflow-wrap:anywhere}.hc-import [data-file-preview]>*{width:100%;max-height:450px;min-height:200px;object-fit:contain;border:1px solid #ddd}.hc-import-table{overflow:auto;margin:12px 0}.hc-import table{width:100%;border-collapse:collapse;min-width:600px}.hc-import td,.hc-import th{padding:5px;text-align:left;border-bottom:1px solid #d5e0de}.hc-record button:disabled{opacity:.5;cursor:default}.hc-record [data-panel]>label{margin:12px 0}.hc-record details{margin:8px 0}.hc-record summary{cursor:pointer;font-size:12px}.hc-record small{font-size:12px}.hc-record [data-review]{accent-color:#177971}@media(max-width:1100px){.hc-exams,.hc-labs,.hc-images{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.hc-exams,.hc-labs,.hc-images{grid-template-columns:1fr}.hc-steps{display:grid;grid-template-columns:1fr 1fr}.hc-fields{gap:6px}.hc-fields label{font-size:12px}.hc-toolbar span{display:block;margin-left:0}.hc-record .hc-toolbar{align-items:flex-start}}

.hc-record .hc-labs{display:block}.hc-lab-group{margin:12px 0;border:1px solid #d5e0de;border-radius:10px;overflow:hidden;background:#fff}.hc-lab-group h3{font-size:14px;margin:0;padding:9px 12px;background:#e9f3f0}.hc-lab-heading,.hc-record .hc-lab-compact{display:grid;grid-template-columns:minmax(110px,1.3fr) minmax(65px,.7fr) minmax(75px,.8fr) minmax(100px,1fr) 100px 55px;gap:8px;align-items:center;padding:6px 10px}.hc-lab-heading{font-size:12px;color:#52706a}.hc-record .hc-lab-compact{border:0;border-top:1px solid #e4ece9;border-radius:0}.hc-record .hc-lab-compact input:not([type=checkbox]){margin:0;padding:6px 8px;min-height:34px}.hc-cell-label{display:none}.hc-record .hc-lab-check .hc-check{margin:0}.hc-lab-check [data-range]{font-size:11px}.hc-lab-compact details{position:relative;margin:0}.hc-lab-compact details[open]{grid-column:1/-1;background:#f4f8f7;padding:8px;display:flex}.hc-lab-compact details label{display:inline-block;width:min(250px,45%);margin:6px}.hc-exams textarea{min-height:60px}.hc-exams select{margin-bottom:5px}
@container hc-panel (min-width:1200px){.hc-record .hc-labs{display:block;columns:580px 2;column-gap:12px}.hc-lab-group{break-inside:avoid;display:inline-block;width:100%;margin:0 0 12px}}
@media(max-width:650px){.hc-lab-heading{display:none}.hc-record .hc-lab-compact{grid-template-columns:1fr 1fr;gap:6px}.hc-cell-label{display:block;font-size:11px;color:#52706a;margin-bottom:3px}.hc-lab-check{display:flex;gap:8px}.hc-record .hc-lab-compact details{justify-self:end}.hc-record .hc-lab-compact details[open]{justify-self:stretch}.hc-lab-group{margin:8px 0}}
/* Healthcheck review workflow */
.hc-record [data-hc-status]:empty{display:none}.hc-exams{align-items:start}.hc-fields:has(>label:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:650px){.hc-fields:has(>label:nth-child(2):last-child){grid-template-columns:1fr}}
.hc-exam-picks{display:flex;flex-wrap:wrap;gap:4px 14px;background:#eef5f3;padding:10px;border-radius:8px}.hc-record .hc-exam-picks .hc-check{margin:2px}.hc-nutrition{background:white;border:1px solid #d5e0de;border-radius:10px;padding:12px;grid-column:span 2}.hc-nutrition h3{font-size:14px;margin:0}.hc-nutrition .hc-fields{grid-template-columns:1fr 2fr}.hc-patient-meta{display:block;margin:5px 0;color:#52706a}.hc-record [data-hc-status][data-tone=success]{color:#176b55}.hc-record [data-hc-status][data-tone=error]{color:#b42318}.hc-record [data-hc-status][data-tone=info]{color:#52706a}.hc-progress{position:sticky;top:0;z-index:3;background:#e4f2ef;padding:12px;border-radius:8px}.hc-lab-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:end;margin:10px 0}.hc-lab-tools select{max-width:180px}.hc-lab-compact label:first-child{display:flex;align-items:center;gap:5px}.hc-record .hc-lab-compact input[data-lab-pick]{width:16px;height:16px;flex:none}.hc-search{flex-wrap:wrap}.hc-search label{width:auto;flex:1;min-width:160px}.hc-search details{flex-basis:100%}.hc-search details label{display:inline-block;width:30%;margin:0 1%}.hc-ai-compare{display:grid;grid-template-columns:1fr 1fr;gap:12px}.hc-ai-compare>div{background:#f5f8f7;padding:8px;border-radius:6px}.hc-ai-compare p{margin:5px 0}.hc-photo-actions{display:flex;gap:5px;flex-wrap:wrap}.hc-record .hc-photo-open{padding:0;width:100%;border:0;background:transparent}.hc-photo-dialog{max-width:92vw;max-height:92vh;border:1px solid #bdcfcc;border-radius:12px}.hc-photo-dialog img{display:block;max-width:85vw;max-height:80vh;object-fit:contain}.hc-compare-table{max-height:350px;overflow:auto;background:#f5f8f7;padding:10px}.hc-compare-table table{width:100%;border-collapse:collapse}.hc-compare-table td,.hc-compare-table th{padding:5px;text-align:left;border-bottom:1px solid #d5e0de}.hc-compare-table h2{font-size:14px}.hc-record [data-save-state]{color:#52706a}@media(max-width:650px){.hc-nutrition{grid-column:auto}.hc-nutrition .hc-fields,.hc-fields,.hc-ai-compare{grid-template-columns:1fr}.hc-search details label{width:100%;margin:5px 0}.hc-lab-tools button{font-size:12px;padding:6px}.hc-lab-compact label:first-child .hc-cell-label{display:none}}
/* Compact healthcheck workspace: controls stay reachable without covering inputs. */
.hc-sticky{position:sticky;top:0;z-index:5;background:var(--bg,#f7f8f6);border-bottom:1px solid #d5e0de;padding:4px 0 8px}.hc-sticky .hc-toolbar{margin:0 0 6px}.hc-sticky .hc-steps{margin:6px 0}.hc-sticky [data-save-state]{display:block}.hc-sticky .hc-patient-meta{display:inline;margin-left:8px}.hc-record [data-panel]{padding-top:8px}.hc-record [data-next-step]{display:none}.hc-record [data-panel]>*{scroll-margin-top:150px}.hc-history{background:#eef5f3;border:1px solid #d5e0de;border-radius:8px;padding:8px 10px}.hc-history summary{overflow-wrap:anywhere;line-height:1.5}.hc-record .hc-nutrition{margin:10px 0;padding:10px;display:grid;grid-template-columns:minmax(280px,1fr) minmax(200px,1fr);gap:6px 16px;align-items:start}.hc-nutrition h3{grid-column:1/-1}.hc-record .hc-nutrition .hc-fields{grid-template-columns:1fr 1.6fr;margin:0}.hc-nutrition>label textarea{min-height:38px;height:38px}.hc-record .hc-images{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px;align-items:start;margin:10px 0}.hc-images article{min-width:0;padding:9px}.hc-record .hc-images img{height:130px;background:#f1f5f4;border-radius:6px}.hc-photo-head{display:flex;align-items:center;justify-content:space-between;gap:4px}.hc-photo-head .hc-check{margin:0 0 5px}.hc-record [data-drag]{min-height:28px;padding:2px 8px;cursor:grab}.hc-photo-caption{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:6px 0}.hc-images article>small{color:#52706a}.hc-images details{border-top:1px solid #e1e9e7;padding-top:7px}.hc-images summary{min-height:28px;line-height:28px}.hc-images details textarea{min-height:60px}.hc-photo-bulk{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:10px 0;padding:8px;background:#eef5f3;border-radius:8px}.hc-photo-bulk .hc-check{margin:0}.hc-photo-bulk select{width:auto;max-width:150px}.hc-photo-bulk button{padding:6px 9px;font-size:13px}.hc-lab-tools [data-lab-count]{font-weight:600;margin-right:auto}.hc-lab-tools label{min-width:130px}.hc-main-actions{flex-shrink:0}.hc-record [hidden]{display:none!important}
@media(max-width:650px){.hc-record{padding-bottom:72px}.hc-sticky .hc-toolbar{margin:0}.hc-sticky .hc-patient-meta{display:block;margin:4px 0}.hc-sticky .hc-main-actions{position:fixed;bottom:0;left:0;right:0;z-index:20;background:#fff;border-top:1px solid #d5e0de;padding:8px 12px calc(8px + env(safe-area-inset-bottom));display:flex;justify-content:flex-end;box-shadow:0 -2px 8px #183b400c}.hc-record [data-next-step]{display:block}.hc-record .hc-nutrition{grid-template-columns:1fr}.hc-record .hc-nutrition .hc-fields{grid-template-columns:1fr 1.5fr}.hc-record .hc-fields:not(:has(textarea)){grid-template-columns:1fr 1fr}.hc-record .hc-fields:not(:has(textarea))>label:last-child:nth-child(3){grid-column:1/-1}.hc-record .hc-images{grid-template-columns:repeat(2,minmax(0,1fr))}.hc-record .hc-images img{height:110px}.hc-photo-head{align-items:flex-start}.hc-photo-head .hc-check{font-size:12px;gap:4px}.hc-record [data-drag]{display:none}.hc-photo-bulk{gap:5px}.hc-photo-bulk button{min-height:38px}.hc-images .hc-photo-actions button{padding:5px 7px;font-size:12px}.hc-record .hc-toolbar:has(.hc-upload){align-items:end;gap:7px}.hc-upload{order:3;width:100%}.hc-record .hc-toolbar:has(.hc-upload)>label:not(.hc-upload){flex:1}.hc-photo-bulk [data-photo-count]{margin-left:auto}.hc-lab-tools [data-lab-count]{flex-basis:100%}.hc-sticky .hc-steps button{padding:6px;font-size:13px}.hc-photo-dialog button{min-height:44px}}
@media print{.hc-sticky{position:static}.hc-main-actions{display:none!important}}

/* Shared examination tabs, compact summary and selection actions. */
.hc-record .hc-steps{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:5px;padding-bottom:4px;scrollbar-width:thin}.hc-steps button{flex:0 0 auto;white-space:nowrap}.hc-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}.hc-summary-grid label:last-child{grid-column:1/-1}.hc-review-notes{border:1px solid #d5e0de;border-radius:8px;padding:10px}.hc-imaging-notes{margin-bottom:12px}.hc-imaging-notes textarea{min-height:85px}.hc-bulk-actions{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px}.hc-test-help{padding:8px;border-top:1px solid #d5e0de}.hc-record [data-import-preview]{padding:8px;background:#eef5f3;border-radius:6px}@media(max-width:650px){.hc-summary-grid{grid-template-columns:1fr}.hc-summary-grid label:last-child{grid-column:auto}.hc-record .hc-steps{display:flex}.hc-steps button{min-height:40px}.hc-bulk-actions{width:100%}.hc-imaging-notes textarea{min-height:72px}}

/* Review controls use available panel width rather than viewport width. */
.hc-record [data-panel]{container-type:inline-size;container-name:hc-panel}.hc-lab-empty{padding:16px;background:#eef5f3;border-radius:8px;column-span:all}.hc-lab-check .hc-check{font-size:11px;white-space:nowrap}.hc-qual-unit{color:#52706a;font-size:12px}.hc-summary-vet{max-width:340px;margin:12px 0}.hc-summary-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin:12px 0}.hc-record .hc-lab-compact input[data-lab-pick]{accent-color:#147d76;outline:1px solid #829d98;outline-offset:2px}.hc-record .hc-qualitative select{min-width:0;width:100%}@media(max-width:650px){.hc-record .hc-qualitative{grid-template-columns:1fr 1fr}.hc-summary-actions>button{flex:1}.hc-summary-vet{max-width:none}}

@media(max-width:650px){.hc-import-table{overflow:visible}.hc-import-table table{min-width:0;width:100%;display:block}.hc-import-table thead{display:none}.hc-import-table tbody{display:grid;gap:10px}.hc-import-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px;border:1px solid #d5e0de;border-radius:8px;background:#fff}.hc-import-table td{display:block;min-width:0;padding:0;border:0}.hc-import-table td::before{content:attr(data-label);display:block;font-size:12px;font-weight:600;margin-bottom:4px}.hc-import-table td[data-label="반영"],.hc-import-table td[data-label="배치 위치"],.hc-import-table td[data-label="검사"],.hc-import-table td[data-label="참고범위"]{grid-column:1/-1}.hc-import-table td[data-label="반영"]{display:flex;align-items:center;gap:8px}.hc-import-table small{display:block;overflow-wrap:anywhere}.hc-import-table input:not([type=checkbox]),.hc-import-table select{width:100%;min-width:0}}

/* Confirmed reference-range deviations are consistent with printed reports. */
.hc-lab-abnormal [data-lab="value"],.hc-lab-abnormal [data-range]{color:#b42318!important;font-weight:700}
.hc-lab-abnormal [data-lab="value"]{border-color:#d17971;background:#fff8f7}

.hc-list-card{display:flex;flex-direction:column;min-width:0;border:1px solid #d5e0de;border-radius:10px;background:#fff;padding:8px;gap:6px}.hc-list-card [data-open]{border:0;flex:1;width:100%;overflow-wrap:anywhere}.hc-record .hc-delete{color:#ae3434;border-color:#e5bcbc;align-self:flex-end}.hc-list-card .hc-delete{text-align:center;display:block}.hc-record .hc-main-actions .hc-delete{align-self:auto}

/* Read and review the report in its printed order. */
.hc-summary-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:18px}.hc-summary-grid textarea{min-height:160px;line-height:1.75}.hc-summary-grid [data-prose=overview]{min-height:110px}.hc-summary-grid [data-prose-count]{display:block;text-align:right;color:#627a76;font-size:12px}.hc-report-intro{padding:14px;border:1px solid #d5e2de;border-radius:10px;background:#f5faf8;margin-bottom:14px}.hc-report-intro p{margin:6px 0 12px}.hc-report-intro [data-prior]{margin-top:10px}.hc-report-intro select{max-width:100%}

/* Examination workflow: seven clinical tabs with attachments as a secondary view. */
.hc-steps button{display:flex;flex-direction:column;gap:3px;align-items:flex-start}.hc-steps [data-step-status]{font-size:11px;font-weight:400;opacity:.85}.hc-steps [data-state="결과 대기"]{text-decoration:underline}.hc-record .hc-section-title{font-size:14px;margin:12px 0 8px}.hc-basics{display:grid;grid-template-columns:minmax(220px,1fr) minmax(300px,2fr);gap:10px;align-items:start}.hc-record .hc-basics .hc-nutrition{margin:0;grid-column:auto;display:block}.hc-record .hc-exam-card{min-width:0;background:#fff;border:1px solid #d5e0de;border-radius:9px;padding:10px}.hc-exam-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px;font-size:13px}.hc-exam-title button{padding:3px 9px;min-height:32px}.hc-exam-card summary{display:flex;gap:8px;align-items:baseline}.hc-exam-card [data-exam-preview]{max-width:75%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#52706a}.hc-exam-card textarea{min-height:65px;margin-top:8px}.hc-exam-card details{margin-bottom:0}.hc-record .hc-nutrition .hc-exam-card{border:0;padding:8px 0 0}.hc-record .hc-history-fields{grid-template-columns:1fr 1fr}.hc-history textarea{min-height:65px}.hc-exam-selector{padding:8px;border:1px solid #d5e0de;border-radius:8px}.hc-exam-selector .hc-exam-picks{margin-top:8px}.hc-step-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:15px 0}.hc-record .hc-step-footer [data-next-step]{display:block}.hc-additional-category{max-width:300px;margin-bottom:8px}.hc-output-review{border:1px solid #d5e0de;background:#f3f8f6;padding:12px;border-radius:10px;margin-bottom:12px}.hc-output-review h3,.hc-followup h3{font-size:15px;margin:0 0 8px}.hc-review-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:8px}.hc-record .hc-review-grid button{text-align:left}.hc-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px}.hc-summary-grid>label:first-child,.hc-summary-grid>.hc-followup{grid-column:1/-1}.hc-summary-grid textarea{min-height:110px;line-height:1.6}.hc-summary-grid [data-prose=overview]{min-height:85px}.hc-field-help{display:block;color:#52706a;font-weight:400;margin:4px 0}.hc-followup{padding:12px;background:white;border:1px solid #d5e0de;border-radius:10px}.hc-record .hc-followup .hc-fields{grid-template-columns:1fr 2fr}.hc-record .hc-sticky [data-panel]{scroll-margin-top:170px}
@media(max-width:650px){.hc-basics{grid-template-columns:1fr}.hc-record .hc-history-fields{grid-template-columns:1fr}.hc-record .hc-main-actions{flex-wrap:nowrap;gap:5px;padding-left:6px;padding-right:6px}.hc-main-actions button{font-size:12px;padding:6px}.hc-main-actions .hc-attachments{position:fixed;right:10px;bottom:65px;background:#fff;box-shadow:0 1px 5px #183b401a}.hc-review-grid{grid-template-columns:1fr 1fr}.hc-summary-grid{grid-template-columns:minmax(0,1fr)!important}.hc-summary-grid>label{grid-column:auto}.hc-record .hc-followup .hc-fields{grid-template-columns:1fr}.hc-step-footer{align-items:flex-start}.hc-step-footer small{max-width:55%}.hc-steps button{min-height:52px}.hc-record{padding-bottom:110px}}

.hc-record .hc-step-footer [data-next-step][hidden]{display:none}
/* Intake and review workflow: compact controls, one editor for each fact. */
.hc-workflow{margin:0 0 10px;padding:8px 10px;border:1px solid #d8e4e1;border-radius:8px;background:#f6faf9}
.hc-workflow summary,.hc-output-review summary,.hc-report-intro summary{cursor:pointer;font-weight:650}
.hc-workflow-controls,.hc-followup-shortcuts{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:8px 0}
.hc-workflow-controls input,.hc-workflow-controls select{width:auto;min-width:160px;flex:1}
.hc-workflow-controls button{white-space:nowrap}
.hc-history>button{margin:6px 0}
[data-intake-context]{border-top:1px solid #d8e4e1;padding-top:8px}
[data-intake-context] .hc-check{align-items:flex-start;flex-wrap:wrap}
[data-intake-context] .hc-check span{white-space:pre-wrap;flex-basis:100%;font-size:13px}
.hc-followup-shortcuts select{width:auto;max-width:100%}
.hc-photo-bulk [data-bulk-caption]{width:190px;max-width:100%}
.hc-summary-vet{font-size:14px;display:flex;align-items:center;gap:8px}
.hc-output-review,.hc-report-intro{padding:10px;margin-bottom:10px}
.hc-import [data-file-queue]{display:grid;gap:4px;font-size:13px}
.hc-import [data-file-queue] button{max-width:100%;overflow-wrap:anywhere;text-align:left}
.hc-import-table td{padding:5px}
.hc-import-table input,.hc-import-table select{min-height:34px;padding:5px}
.hc-import-table tr[hidden]{display:none}
.hc-record [data-hc-status]:empty{display:none}
@media(max-width:600px){.hc-workflow-controls{display:grid;grid-template-columns:1fr 1fr}.hc-workflow-controls input,.hc-workflow-controls select{min-width:0;width:100%}.hc-workflow-controls select{grid-column:1/-1}.hc-summary-vet{flex-wrap:wrap}.hc-photo-bulk [data-bulk-caption]{width:100%}}
/* Healthcheck entry: compact hierarchy and result-first editing. */
.hc-record{font-size:14px;line-height:1.5}
.hc-record button,.hc-record input,.hc-record select,.hc-record textarea{font-family:inherit;font-size:14px;line-height:1.4}
.hc-record button{min-height:40px;border-radius:8px;font-weight:600}
.hc-record label,.hc-record summary,.hc-record .hc-exam-title{font-size:14px}
.hc-record small,.hc-record .hc-lab-check .hc-check,.hc-record .hc-lab-check [data-range],.hc-record .hc-cell-label{font-size:13px}
.hc-record .hc-section-title,.hc-vitals h3{font-size:15px;margin:10px 0 6px}
.hc-record .hc-main-actions{gap:6px;align-items:center}
.hc-record-menu{position:relative;margin:0!important;order:5}
.hc-record-menu>summary{border:1px solid #cbdad8;border-radius:8px;padding:9px 12px;min-height:40px;background:white;font-weight:600;list-style:none}
.hc-record-menu[open]>button{position:absolute;right:0;top:44px;white-space:nowrap;z-index:25;box-shadow:0 4px 16px #183b4020;background:#fff}
.hc-record .hc-steps button{min-height:44px;padding:6px 11px}
.hc-record .hc-steps [data-step-status]{font-size:12px}
.hc-record .hc-sticky [data-save-state]{font-size:13px}
.hc-input-help{color:#52706a;max-width:640px}
.hc-input-help p{font-size:13px;margin:6px 0}
.hc-record .hc-input-help summary{font-size:13px}
.hc-selected-exams{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin:10px 0 4px}
.hc-selected-exams>span:first-child{font-weight:600;margin-right:4px}
.hc-exam-chip{background:#edf5f2;border:1px solid #d5e0de;border-radius:6px;padding:3px 8px;font-size:13px}
.hc-record .hc-exam-selector{margin:4px 0 10px;padding:6px 10px}
.hc-vitals{padding:10px;background:#fff;border:1px solid #d5e0de;border-radius:9px;min-width:0}
.hc-vitals h3{margin-top:0}.hc-vital-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:8px}
.hc-record .hc-vitals textarea{min-height:55px}
.hc-record .hc-basics{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.hc-record .hc-lab-actions{align-items:center;margin:6px 0;gap:6px}
.hc-record .hc-lab-actions>div{flex:1;flex-wrap:wrap}
.hc-record .hc-lab-actions select{width:auto;max-width:260px}
.hc-record .hc-entry-hint{color:#52706a;font-size:13px}
.hc-record .hc-lab-tools{margin:6px 0;gap:6px;align-items:center}
.hc-record .hc-lab-tools label{display:flex;align-items:center;gap:6px;font-size:13px}
.hc-record .hc-lab-tools select{margin:0;width:auto}
.hc-record .hc-labs{display:grid;columns:auto;grid-template-columns:minmax(0,1fr);gap:10px}
.hc-record .hc-lab-group{display:block;margin:0;min-width:0;align-self:start}
.hc-record .hc-lab-heading,.hc-record .hc-lab-compact{grid-template-columns:minmax(120px,1.4fr) minmax(75px,.8fr) minmax(65px,.7fr) minmax(95px,1fr) 100px 88px;gap:6px;padding:6px 8px}
.hc-record .hc-lab-compact [data-lab-settings]{font-size:12px;padding:4px;min-height:34px;font-weight:500}
.hc-record .hc-lab-compact input[readonly]{border-color:transparent;background:transparent;padding-left:2px;padding-right:2px;cursor:default}
.hc-record .hc-lab-compact input:not([readonly]):not([type=checkbox]){background:#fff;border-color:#91bcb4}
.hc-record .hc-lab-compact details[open]{grid-column:1/-1}
.hc-record .hc-lab-compact [data-lab=value]{font-weight:600}
.hc-photo-navigation{display:flex;justify-content:flex-end;margin-bottom:6px}
.hc-ai-hint{font-size:13px;color:#52706a;margin:6px 0 10px}
.hc-record .hc-summary-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.hc-record .hc-summary-actions small{color:#52706a}
.hc-record .hc-summary-grid textarea{min-height:100px}
.hc-record .hc-summary-grid>label{padding:10px;background:#fff;border:1px solid #d5e0de;border-radius:9px}
@container hc-panel (min-width:1400px){.hc-record .hc-labs:not(.hc-single-group){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.hc-record .hc-basics{grid-template-columns:1fr}}
@media(max-width:650px){
 .hc-record{padding-bottom:84px}
 .hc-record input:not([type=checkbox]),.hc-record select,.hc-record textarea{font-size:16px}
 .hc-record .hc-main-actions{gap:5px;justify-content:space-between;padding:7px 8px calc(7px + env(safe-area-inset-bottom));flex-wrap:nowrap}
 .hc-record .hc-main-actions>button{min-height:44px;font-size:13px;padding:6px 8px}
 .hc-record .hc-main-actions [data-action=back]{font-size:12px;padding:6px}
 .hc-record-menu>summary{font-size:12px;padding:12px 6px;min-height:44px}
 .hc-record-menu[open]>button{top:auto;bottom:50px}
 .hc-record .hc-steps{gap:4px;margin:5px 0}
 .hc-record .hc-steps button{min-height:40px;padding:5px 9px;font-size:14px}
 .hc-record .hc-steps button:not([aria-pressed=true]) [data-step-status]{display:none}
 .hc-record .hc-steps [data-step-status]{font-size:12px}
 .hc-record .hc-lab-actions>div{display:grid;grid-template-columns:1fr auto;width:100%}
 .hc-record .hc-lab-actions select{grid-column:1/-1;max-width:none;width:100%}
 .hc-record .hc-entry-hint{display:none}
 .hc-record .hc-lab-tools [data-lab-count]{flex-basis:100%}
 .hc-record .hc-lab-tools button{font-size:13px;min-height:40px}
 .hc-record .hc-lab-heading{display:none}
 .hc-record .hc-lab-compact{grid-template-columns:1fr 1fr;gap:6px}
 .hc-record .hc-lab-compact>label:first-child{grid-column:1/-1}
 .hc-record .hc-lab-compact>label:nth-child(4){grid-column:1/-1}
 .hc-record .hc-lab-check{grid-column:1/-1}
 .hc-record .hc-lab-compact details[open]{grid-column:1/-1}
 .hc-record .hc-lab-compact [data-lab-settings]{font-size:13px;min-height:40px;justify-self:start;padding:5px 10px}
 .hc-record .hc-lab-compact>details{justify-self:end}
 .hc-record .hc-vital-fields{gap:6px}
 .hc-record .hc-vital-fields label{font-size:12px}
 .hc-record .hc-summary-grid>label{padding:8px}
 .hc-record .hc-summary-grid textarea{min-height:85px}
 .hc-record .hc-step-footer{align-items:center}
}

/* One settings disclosure and compact examination selection. */
.hc-record .hc-exam-selector>summary{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-weight:600}
.hc-record .hc-exam-selector .hc-selected-exams{display:flex;flex:1;margin:0;gap:5px;flex-wrap:wrap;min-width:150px}
.hc-record .hc-exam-selector .hc-selected-exams>span:first-child{display:none}
.hc-record .hc-lab-compact>details>summary{white-space:nowrap;border:1px solid #cbdad8;border-radius:7px;padding:8px;font-size:13px;min-height:36px}
.hc-record .hc-lab-compact>details[open]{justify-self:stretch}
.hc-record .hc-lab-tools{align-items:center}
.hc-record .hc-history [data-intake-context] .hc-check{flex-wrap:wrap;align-items:flex-start}
.hc-record .hc-history [data-intake-context] .hc-check span{flex-basis:100%;white-space:pre-wrap}
@media(max-width:650px){.hc-record .hc-lab-compact>details>summary{min-height:40px}.hc-record .hc-lab-compact details label{width:100%;margin:5px 0}}

/* Healthcheck review: persistent feedback, readable prose and compact result rows. */
@font-face{font-family:'Carestep Pretendard';font-style:normal;font-weight:45 920;font-display:swap;src:url('./pretendard-variable-1.3.9.woff2') format('woff2')}
.hc-record{font-family:'Carestep Pretendard','Noto Sans KR',system-ui,-apple-system,'Segoe UI',sans-serif;font-size:14px;line-height:1.55;--hc-header-height:150px}
.hc-record [data-lab=value],.hc-record [data-lab=reference],.hc-record [data-vital]{font-variant-numeric:tabular-nums}
.hc-record .hc-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;display:block!important}
.hc-record .hc-steps button{max-width:132px;min-width:75px;gap:3px}
.hc-record [data-step-badge]{font-size:12px;font-weight:400;line-height:1.3;white-space:nowrap}
.hc-record [data-save-state]{display:inline-block;margin-right:14px}
.hc-record [data-current-step-state]{font-size:13px;color:#536b65;overflow-wrap:anywhere}
.hc-save-feedback{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.hc-save-feedback:has([data-hc-status]:empty){display:none}
.hc-record .hc-save-feedback p{margin:6px 0 0;flex:1;min-width:180px;font-size:14px;line-height:1.5}
.hc-record .hc-save-feedback button{margin-top:6px;flex:none}
.hc-import-resume{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:10px 12px;background:#edf5f2;border:1px solid #b9d5cd;border-radius:8px;margin:12px 0;font-size:13px}
.hc-import-navigation{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:16px 0}
.hc-record .hc-summary-grid{grid-template-columns:minmax(0,1fr)!important;gap:16px;margin:16px 0}
.hc-record .hc-prose-field{padding:14px;border:1px solid #d5e0de;border-radius:10px;background:#fff;min-width:0}
.hc-prose-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}
.hc-record .hc-prose-heading label{font-size:16px;font-weight:650}
.hc-record .hc-prose-heading button{font-size:13px;font-weight:500;min-height:36px;padding:6px 10px}
.hc-record .hc-summary-grid textarea{font-size:16px;line-height:1.75;min-height:120px;resize:vertical;overflow-y:auto;padding:12px;margin:6px 0 0}
.hc-record .hc-summary-grid [data-prose=overview]{min-height:110px}
.hc-record .hc-summary-grid [data-prose-count]{font-weight:400;margin-top:6px}
.hc-record .hc-field-help{font-size:13px;line-height:1.5;margin:0 0 4px}
.hc-record.hc-prose-dialog{width:min(1000px,96vw);max-width:96vw;height:90dvh;max-height:94dvh;padding:18px;border:1px solid #b4ccc6;border-radius:12px;background:#fff;box-sizing:border-box;color:#20323e}
.hc-prose-dialog::backdrop{background:#102b3180}
.hc-prose-dialog[open]{display:flex;flex-direction:column;gap:12px}
.hc-prose-dialog header{display:flex;justify-content:space-between;align-items:center;gap:12px}
.hc-prose-dialog h2{font-size:18px;margin:0}
.hc-record.hc-prose-dialog textarea{flex:1;min-height:0;height:auto;resize:none;font-size:16px;line-height:1.8;padding:14px}
.hc-prose-dialog p{font-size:13px;color:#536b65;margin:0}
.hc-record .hc-proposal{padding:0 12px 12px;margin:16px 0;min-width:0}
.hc-proposal-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;position:sticky;top:var(--hc-header-height);background:#f2f7f5;border-bottom:1px solid #d5e0de;padding:10px;margin:0 -12px;z-index:4}
.hc-proposal-actions [data-ai-selection-count]{font-size:13px;margin-right:auto}
.hc-record .hc-ai-item{border:1px solid #d5e0de;border-radius:8px;margin:8px 0;background:#fff}
.hc-record .hc-ai-item>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px;list-style:none;font-size:14px}
.hc-record .hc-ai-item>summary::after{content:'펼치기 ▾';font-size:12px;white-space:nowrap;color:#536b65}
.hc-record .hc-ai-item[open]>summary::after{content:'접기 ▴'}
.hc-record .hc-ai-item>summary .hc-check{margin:0;flex:1;font-weight:600}
.hc-record .hc-ai-item>summary>span{font-size:12px;color:#536b65}
.hc-record .hc-ai-compare{padding:0 10px 10px;gap:10px;align-items:start}
.hc-ai-compare>div{min-width:0}
.hc-record .hc-ai-compare p{font-size:15px;line-height:1.75;max-height:360px;overflow:auto;padding-right:5px}
.hc-ai-compare mark{background:#fff1bc;color:#283840}
.hc-record .hc-lab-tools{gap:6px 10px;margin:10px 0 12px}
.hc-lab-bulk{display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding:5px 8px;background:#e8f2ef;border-radius:8px}
.hc-row-comparison{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px 18px;padding:6px 8px;background:#f1f6f4;border-radius:5px;font-size:13px;font-weight:400;color:#425c57;font-variant-numeric:tabular-nums}
.hc-row-comparison b{color:#20323e;font-weight:600}
.hc-record .hc-prior-details{padding:8px 10px;background:#f1f6f4;border-radius:8px}
.hc-record .hc-prior-details summary{font-size:13px;font-weight:500}
.hc-record button:focus-visible,.hc-record summary:focus-visible{outline:3px solid #559f97;outline-offset:2px}
@media(max-width:650px){
 .hc-record .hc-steps button{min-width:68px;max-width:110px;font-size:13px;padding:6px 9px}
 .hc-record [data-current-step-state]{display:block;margin-top:3px;font-size:12px}
 .hc-record .hc-summary-grid{gap:12px}
 .hc-record .hc-prose-field{padding:10px}
 .hc-record .hc-summary-grid textarea{min-height:120px;font-size:16px;line-height:1.75;padding:10px}
 .hc-record .hc-summary-grid [data-prose=overview]{min-height:110px}
 .hc-record.hc-prose-dialog{padding:12px;height:90dvh}
 .hc-proposal-actions{gap:6px;padding:8px}
 .hc-proposal-actions button{font-size:13px;padding:7px}
 .hc-record .hc-ai-item>summary{flex-wrap:wrap;padding:8px}
 .hc-record .hc-ai-item>summary .hc-check{flex-basis:75%}
 .hc-record .hc-ai-compare p{font-size:16px;max-height:260px}
 .hc-record .hc-lab-compact{grid-template-columns:minmax(0,1fr) minmax(0,.8fr) auto;gap:4px 8px;padding:8px}
 .hc-record .hc-lab-compact>label:first-child{grid-column:1/-1;grid-row:1}
 .hc-record .hc-lab-compact>label:nth-child(2){grid-column:1;grid-row:2}
 .hc-record .hc-lab-compact>label:nth-child(3){grid-column:2;grid-row:2}
 .hc-record .hc-lab-compact>label:nth-child(4){grid-column:1/3;grid-row:3;display:flex;align-items:center;gap:6px}
 .hc-record .hc-lab-compact>label:nth-child(4) .hc-cell-label{white-space:nowrap;margin:0;font-size:12px}
 .hc-record .hc-lab-compact>label:nth-child(4) input{min-height:28px;padding:3px;flex:1;width:0;font-size:14px}
 .hc-record .hc-lab-compact [data-lab=name]{min-height:28px;font-size:15px}
 .hc-record .hc-lab-compact [data-lab=unit]{font-size:14px}
 .hc-record .hc-lab-compact>details:not([open]){grid-column:3;grid-row:2/4;align-self:center;justify-self:end}
 .hc-record .hc-lab-compact>details>summary{font-size:12px;padding:7px;min-height:36px}
 .hc-record .hc-lab-compact>details[open]{grid-column:1/-1;grid-row:5}
 .hc-record .hc-lab-check{grid-column:1/-1;grid-row:4;min-height:28px;align-items:center}
 .hc-record .hc-lab-check .hc-check{font-size:13px}
 .hc-record .hc-row-comparison{grid-row:6;font-size:12px;gap:4px 10px}
 .hc-record .hc-cell-label{font-size:12px;margin-bottom:2px}
 .hc-record .hc-lab-tools{gap:6px;margin-bottom:10px}
}
.hc-record .hc-steps button{position:relative}

/* Healthcheck editing safeguards and task hierarchy. */
.hc-record input:not([type=checkbox]),.hc-record select{font-size:15px}
.hc-record [data-lab=value]{font-size:16px;font-weight:650}
.hc-record .hc-lab-compact{padding:8px;gap:7px}
.hc-record .hc-lab-tools [data-lab-count]{font-size:13px;font-weight:500;color:#536b65}
.hc-record .hc-lab-more{margin:6px 0 10px}
.hc-lab-more>summary{font-weight:600;padding:6px 0;width:fit-content}
.hc-lab-more-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:8px;background:#eef5f3;border-radius:8px}
.hc-lab-more-controls>.hc-workflow{flex-basis:100%;margin:0}
.hc-record .hc-autosave-note{display:block;color:#536b65;font-size:12px;line-height:1.5;flex-basis:100%}
.hc-compact-nav{display:none}
.hc-record .hc-prose-nav{display:flex;gap:6px;position:sticky;top:var(--hc-header-height);z-index:4;background:var(--bg,#f7f8f6);padding:8px 0;flex-wrap:wrap;border-bottom:1px solid #d5e0de}
.hc-record .hc-prose-nav button{font-size:13px;min-height:36px;padding:6px 10px}
.hc-record .hc-summary-grid{gap:12px;margin-top:12px}
.hc-record .hc-prose-field{padding:12px}
.hc-record .hc-summary-grid textarea{margin-top:5px}
.hc-record .hc-ai-start{display:flex;gap:8px 14px;align-items:center;flex-wrap:wrap;margin:12px 0}
.hc-record .hc-ai-start .hc-check{flex:1;min-width:240px;margin:0;font-size:13px}
.hc-record .hc-ai-start .hc-ai-hint{flex-basis:100%;margin:0}
.hc-completion-check{display:flex;align-items:center;flex-wrap:wrap;gap:8px;background:#eef5f3;padding:12px;border-radius:8px;margin:12px 0}
.hc-record .hc-completion-check button{font-size:13px;min-height:36px}
.hc-record [aria-invalid=true]{outline:2px solid #b42318;outline-offset:2px}
.hc-undo-banner,.hc-conflict-banner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:10px 12px;border:1px solid #b8d2cb;background:#edf5f2;border-radius:8px;margin:10px 0}
.hc-conflict-banner{background:#fff8e8;border-color:#d8bd79}
.hc-record.hc-conflict-dialog{width:min(960px,95vw);max-width:95vw;max-height:90dvh;padding:18px;border:1px solid #b4ccc6;border-radius:12px;color:#20323e;background:white}
.hc-conflict-dialog::backdrop{background:#102b3180}
.hc-conflict-dialog[open]{display:flex;flex-direction:column;gap:12px}
.hc-conflict-dialog header{display:flex;justify-content:space-between;align-items:center;gap:12px}
.hc-conflict-dialog h2{font-size:19px;margin:0}
.hc-conflict-dialog p{margin:0;font-size:14px}
.hc-conflict-items{overflow:auto;min-height:0}
.hc-conflict-items fieldset{display:grid;grid-template-columns:1fr 1fr;gap:12px;border:1px solid #cbdad8;border-radius:8px;margin:10px 0;padding:12px;min-width:0}
.hc-conflict-items legend{font-weight:650}
.hc-conflict-items label{min-width:0;cursor:pointer}
.hc-conflict-items pre{font:14px/1.6 'Carestep Pretendard',sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto;padding:8px;background:#f2f7f5;font-weight:400}
.hc-conflict-dialog footer{display:flex;justify-content:flex-end;align-items:center;gap:12px}
@media(max-width:800px){
 .hc-record.hc-scrolled .hc-patient-meta,.hc-record.hc-scrolled .hc-toolbar>div:first-child>span,.hc-record.hc-scrolled .hc-steps,.hc-record.hc-scrolled [data-current-step-state]{display:none}
 .hc-record.hc-scrolled .hc-compact-nav{display:inline-block;max-width:52%;margin:0 8px 0 0}
 .hc-record.hc-scrolled [data-save-state]{font-size:12px;margin-right:0;vertical-align:middle;max-width:43%}
 .hc-record.hc-scrolled .hc-sticky .hc-toolbar{margin-bottom:4px}
 .hc-record.hc-scrolled .hc-compact-nav select{font-size:13px;padding:5px;min-height:32px}
 .hc-record .hc-prose-field{padding:10px}
}
@media(max-width:650px){
 .hc-record .hc-main-actions [data-action=save],.hc-record .hc-main-actions [data-action=print]{font-size:12px;padding:6px;white-space:nowrap;min-width:0}
 .hc-record .hc-main-actions [data-action=save]{flex:1}
 .hc-record .hc-main-actions [data-action=print]{flex:1}
 .hc-record .hc-main-actions [data-action=back]{padding:6px 2px;font-size:11px;white-space:nowrap}
 .hc-record .hc-main-actions .hc-record-menu>summary{padding:12px 3px;font-size:11px}
 .hc-record .hc-lab-tools{margin:4px 0;justify-content:space-between}
 .hc-record .hc-lab-tools [data-lab-count]{flex-basis:auto;margin:0}
 .hc-record .hc-lab-tools label{min-width:0}
 .hc-record .hc-lab-more{margin:0 0 8px}
 .hc-record .hc-lab-more>summary{min-height:36px;line-height:24px;padding:6px 0}
 .hc-record .hc-lab-more-controls{gap:6px}
 .hc-record .hc-lab-compact{gap:4px 8px;padding:8px}
 .hc-record .hc-prose-nav{flex-wrap:nowrap;gap:4px}
 .hc-record .hc-prose-nav button{flex:1;min-width:0;font-size:12px;padding:5px 3px;white-space:nowrap}
 .hc-record .hc-ai-start{gap:8px}
 .hc-record .hc-ai-start .hc-check{min-width:0;flex-basis:100%}
 .hc-conflict-items fieldset{grid-template-columns:1fr;padding:8px}
 .hc-record.hc-conflict-dialog{padding:12px}
 .hc-record .hc-save-feedback p{font-size:13px;min-width:150px}
}
.hc-record{overflow-anchor:none}
.hc-record .hc-draft-help{font-size:13px;line-height:1.6;color:#536b65;margin:6px 0 8px}

/* Healthcheck has its own save state and responsive section navigation. */
.clinic-calm #practiceRoot .cs-patient-header.cs-healthcheck-header .cs-patient-actions{display:none!important}
.hc-record [data-read-retry]{margin:0 0 10px}

/* Keep a single patient summary and compact the frequently used lab controls. */
.clinic-calm #practiceRoot .cs-patient-header.cs-healthcheck-header{display:none!important}
.hc-record .hc-patient-identity{display:block;color:var(--muted,#52706a);overflow-wrap:anywhere}
.hc-record .hc-patient-identity:empty{display:none}
.hc-record .hc-steps [aria-pressed=true] [data-step-badge],.clinic-calm #practiceRoot .hc-record .hc-steps [aria-pressed=true] [data-step-badge]{color:#fff}
.hc-record .hc-lab-actions{justify-content:flex-start;gap:8px;margin:6px 0 10px}
.hc-record .hc-lab-actions .hc-lab-tools{flex:1;margin:0;justify-content:flex-end}
.hc-record .hc-lab-actions .hc-lab-more{flex-basis:100%;margin:0}
.hc-record .hc-lab-actions .hc-entry-hint{flex-basis:100%}
@media(max-width:650px){.hc-record .hc-lab-actions .hc-lab-tools{flex-basis:100%;justify-content:flex-start}.hc-record .hc-lab-tools [data-lab-count]{flex-basis:auto;margin-right:auto}.hc-record .hc-lab-actions>div{min-width:0;max-width:100%}}

.hc-record .hc-lab-actions .hc-lab-tools>label{flex-shrink:0;white-space:nowrap}
.hc-record .hc-step-footer{flex-wrap:wrap}
.hc-record .hc-step-footer .hc-input-help{flex-shrink:0;white-space:nowrap}
.hc-record .hc-step-footer [data-next-step]{flex-shrink:0}
@media(max-width:650px){.hc-record .hc-step-footer .hc-autosave-note{flex-basis:100%}.hc-record .hc-step-footer .hc-input-help{margin-right:auto}.hc-record .hc-step-footer [data-next-step]{max-width:70%}}

/* Keep dense result tables, with more breathing room for clinical prose. */
.hc-record .hc-summary-grid{gap:24px}
.hc-record .hc-prose-field{border:0;border-top:1px solid #dbe5e2;border-radius:0;padding:16px 0 0}
.hc-record .hc-prose-field:first-child{border-top:0;padding-top:0}
.hc-record .hc-prose-heading{gap:12px;align-items:center}
.hc-record .hc-prose-heading label{font-size:17px;line-height:1.45;color:#193e3b}
.hc-record .hc-field-help{font-size:13px;line-height:1.6;margin:6px 0;color:#546d67}
.hc-record [data-prose-count]{display:block;text-align:right;font-size:12px;line-height:1.5;color:#607771;margin-top:6px;font-weight:400}
.hc-record [data-prose-count][data-near-limit=true]{font-weight:650;color:#924512}
.hc-record .hc-review-notes{margin-top:24px;padding-top:12px;border-top:1px solid #dbe5e2}
.hc-record .hc-review-notes .hc-prose-heading{margin-top:12px}
.hc-record .hc-review-notes textarea{font-size:16px;line-height:1.75;min-height:120px;padding:12px}
.hc-record .hc-followup{padding:16px;background:#f7faf9;border-color:#e0e9e5}
.hc-record .hc-followup h3{font-size:17px}
.hc-record .hc-lab-name{flex:1;min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.45;font-size:15px;font-weight:600}
.hc-record .hc-lab-name[hidden],.hc-record [data-lab=name][hidden]{display:none!important}
.hc-record .hc-lab-actions .hc-lab-tools>.hc-lab-search{flex:1 1 180px;min-width:130px;max-width:320px;white-space:normal}
.hc-record .hc-lab-search input{max-width:100%;min-width:0}
.hc-record .hc-print-toggle{margin:10px 0;padding:8px 10px;border-radius:6px;background:#edf5f1;font-weight:600}
.hc-record .hc-photo-excluded .hc-print-toggle{background:#f2f4f3;color:#536b65}
.hc-record .hc-ai-stale{padding:12px;border-left:3px solid #a56322;background:#fff8e9;margin:12px 0}
.hc-record .hc-ai-stale p{margin:0;line-height:1.6}
.hc-record .hc-ai-stale .hc-check{margin-bottom:0}
.hc-record.hc-prose-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.hc-record.hc-prose-dialog [data-prose-status]{font-size:13px;line-height:1.6;flex:1;min-width:150px}
.hc-record.hc-prose-dialog [data-prose-dialog-count]{display:block;text-align:right;color:#607771;margin:6px 0}
.hc-record.hc-move-dialog{box-sizing:border-box;width:min(560px,94vw);max-height:90dvh;border:1px solid #b4ccc6;border-radius:12px;padding:24px;color:#20323e;background:#fff}
.hc-move-dialog::backdrop{background:#102b3180}
.hc-record.hc-move-dialog h2{font-size:20px;margin:0 0 12px}
.hc-record.hc-move-dialog p{font-size:14px;line-height:1.65;margin:10px 0}
.hc-record .hc-move-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:20px}
.hc-record [data-move-status]:empty{display:none}
@media(max-width:650px){
 .hc-record .hc-summary-grid{gap:20px}
 .hc-record .hc-followup{padding:12px}
 .hc-record .hc-lab-actions .hc-lab-tools>.hc-lab-search{order:2;flex-basis:100%;max-width:none}
 .hc-record .hc-prose-heading label{font-size:16px}
 .hc-record.hc-move-dialog{padding:16px}
 .hc-record .hc-move-actions button{flex:1 1 130px}
}

/* Focus the writing view and make repeated findings/source review explicit. */
.hc-record .hc-summary-panel{max-width:980px;margin-inline:auto;min-width:0}
.hc-record .hc-summary-tools{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px;margin:10px 0}
.hc-record .hc-summary-tools>details{flex:1 1 230px;min-width:0;margin:0;padding:10px 12px;border:1px solid #d5e0de;border-radius:8px;background:#f3f8f6}
.hc-record .hc-summary-tools>details[open]{flex-basis:100%}
.hc-record .hc-summary-tools summary{font-size:13px;font-weight:600;line-height:1.6}
.hc-record .hc-summary-tools .hc-review-grid{margin-top:12px}
.hc-record .hc-summary-tools .hc-ai-start{margin:12px 0 0}
.hc-record .hc-summary-tools .hc-ai-start .hc-check{flex-basis:100%}
.hc-record .hc-summary-tools .hc-ai-hint{display:none}
.hc-record .hc-ai-applied{font-size:13px;color:#23715a;margin:8px 0}
.hc-record .hc-finding-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.hc-record .hc-finding-chips[hidden]{display:none}
.hc-record .hc-finding-chips button{min-height:34px;padding:5px 9px;background:#eaf4f0;border-color:#bdd9ce;font-size:13px;text-align:left;white-space:normal;overflow-wrap:anywhere}
.hc-record .hc-finding-chips button span{font-size:16px;margin-left:5px}
.hc-record .hc-followup-shortcuts{align-items:end}
.hc-record .hc-followup-shortcuts>label{flex:1 1 190px;max-width:280px}
.hc-record .hc-followup-shortcuts [data-followup-choice]{flex:1 1 180px;max-width:260px}
.hc-record [data-followup-hint]{font-size:13px;line-height:1.6;color:#924512;margin:8px 0}
.hc-record [data-followup-hint][hidden]{display:none}
.hc-record .hc-import-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start}
.hc-record .hc-import-workspace>*{min-width:0}
.hc-record .hc-import-original{padding:12px;border:1px solid #cbdad8;border-radius:8px;background:#f5f9f7}
.hc-record .hc-import-original summary{font-size:14px;font-weight:600;overflow-wrap:anywhere}
.hc-record .hc-import-original [data-file-preview]{margin-top:10px}
.hc-record .hc-import-original [data-file-preview]>*{height:58dvh;min-height:220px;max-height:650px;background:white}
.hc-record .hc-import-source{display:block;min-width:96px;width:100%;text-align:left;font-size:12px;margin-top:4px}
.hc-record .hc-import-source small{display:block;font-weight:400;overflow-wrap:anywhere;line-height:1.4;margin-top:4px}
.hc-record .hc-source-active{background:#eaf4f0}
.hc-record [data-file-preview-index][aria-pressed=true]{border-color:#177971;background:#edf6f2}
.hc-record .hc-import-view-switch{display:flex;gap:8px;margin:12px 0}
.hc-record .hc-import-view-switch [aria-pressed=true]{background:#177971;color:white}
.hc-record .hc-import-workspace[data-import-pane=results]>.hc-import-original{display:none}
.hc-record .hc-import-workspace[data-import-pane=source]>[data-import-results]{display:none}
@media(min-width:1100px){
 .hc-record .hc-import-workspace{grid-template-columns:minmax(280px,.85fr) minmax(0,1.15fr)}
 .hc-record .hc-import-workspace>.hc-import-original,.hc-record .hc-import-workspace>[data-import-results]{display:block!important}
 .hc-record .hc-import-original{position:sticky;top:calc(var(--hc-header-height,160px) + 12px)}
 .hc-record .hc-import-view-switch,.hc-record [data-import-return]{display:none}
 .hc-record .hc-import-table table{min-width:0;table-layout:fixed}
 .hc-record .hc-import-table th,.hc-record .hc-import-table td{overflow-wrap:anywhere}
}
@media(max-width:650px){
 .hc-record .hc-summary-tools{gap:6px;margin:8px 0}
 .hc-record .hc-summary-tools>details{flex-basis:100%;padding:8px 10px}
 .hc-record .hc-summary-grid{gap:20px}
 .hc-record .hc-import-table td[data-label="반영"]{flex-wrap:wrap}
 .hc-record .hc-import-source{width:auto;flex:1}
 .hc-record .hc-followup-shortcuts>label{flex-basis:100%;max-width:none}
}


/* A single clinician-confirmed management list drives the report. */
.hc-management{margin:16px 0;padding:18px;border:1px solid #c7dad5;border-radius:12px;background:#f5faf8}
.hc-management-heading{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.hc-management-heading>div{flex:1 1 360px}.hc-management-heading p,.hc-management [role=status]{font-size:13px;color:#526862;margin:6px 0}
.hc-management-card{margin-top:10px;border:1px solid #d6e2de;border-radius:8px;background:#fff;padding:12px}
.hc-management-card>summary{cursor:pointer;display:list-item;font-size:15px;line-height:1.6}
.hc-management-card>summary strong{margin-right:10px}.hc-management-card[open]>.hc-fields{margin-top:14px}
.hc-management-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}
.hc-management-fields>label:first-child{grid-column:1/-1}.hc-management-fields label{min-width:0}
.hc-management-fields textarea{width:100%;min-height:76px;resize:vertical;font:inherit;line-height:1.5}
.hc-management-links>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:260px;overflow:auto;gap:7px;padding:8px 0}
.hc-management-card footer{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}.hc-management-card footer small{flex-basis:100%;color:#8d481b}
.management-badge{display:inline-block;font-size:12px;font-weight:700;border:1px solid currentColor;border-radius:5px;padding:2px 7px;line-height:1.5;color:#52625d;background:#f0f3f2}
.management-priority{color:#9f302c;background:#fff0ee}.management-followup{color:#8a5412;background:#fff7e5}.management-care{color:#12695e;background:#e9f5f1}.management-clear{color:#39694c;background:#eff7ee}
@media(max-width:650px){.hc-management{padding:12px}.hc-management-fields,.hc-management-links>div{grid-template-columns:1fr}.hc-management-card{padding:10px}.hc-management-card footer{align-items:flex-start}}

.hc-normal-tools,.hc-followup-import{margin:12px 0;padding:10px 12px;border:1px solid #d6e2de;border-radius:8px;background:#f5faf8}
.hc-normal-tools summary,.hc-followup-import summary{cursor:pointer;font-weight:700}
.hc-normal-tools p,.hc-followup-import p{font-size:13px;line-height:1.6;color:#526862}
.hc-normal-picks{display:flex;flex-wrap:wrap;gap:10px 20px;margin:12px 0}.hc-normal-picks label:has(input:disabled){color:#74817d}
.hc-followup-import [data-followup-import-options]>.hc-check{display:flex;align-items:flex-start;margin:12px 0}.hc-followup-import small{display:block;margin-top:4px;white-space:pre-wrap;overflow-wrap:anywhere}
