.hcp-root{--hcp-ink:#17283c;--hcp-muted:#607188;--hcp-border:#dce5ee;--hcp-blue:#1761b1;--hcp-bg:#f5f8fb;font-family:system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--hcp-ink);font-size:var(--hcp-font-size,14px);line-height:1.45;max-width:var(--hcp-max-width,1600px);margin:12px auto 32px}.hcp-root *{box-sizing:border-box}.hcp-root button,.hcp-root input,.hcp-root textarea{font:inherit}.hcp-top{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}.hcp-top h1{font-size:23px;margin:0;color:var(--hcp-ink)}.hcp-top small,.hcp-muted{color:var(--hcp-muted)}.hcp-layout{display:grid;grid-template-columns:var(--hcp-sidebar-width,210px) minmax(180px,var(--hcp-middle-width,320px)) minmax(var(--hcp-content-min-width,360px),1fr) minmax(180px,var(--hcp-codes-width,290px));gap:12px;min-height:65vh}.hcp-panel{background:#fff;border:1px solid var(--hcp-border);border-radius:12px;padding:15px;min-width:0}.hcp-sidebar button,.hcp-list button{display:block;width:100%;text-align:left;background:transparent;color:var(--hcp-ink);border:0;border-radius:7px;padding:9px;cursor:pointer}.hcp-sidebar button:hover,.hcp-list button:hover,.hcp-sidebar button.active,.hcp-list button.active{background:#e9f2ff}.hcp-list button{border-bottom:1px solid #edf0f4;border-radius:0}.hcp-list small{display:block;color:var(--hcp-muted);margin-top:3px}.hcp-search{width:100%;border:1px solid var(--hcp-border);border-radius:8px;padding:10px;background:white;color:var(--hcp-ink);margin:8px 0 12px}.hcp-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.hcp-head h2{font-size:18px;margin:0}.hcp-editor{width:100%;min-height:var(--hcp-editor-height,440px);resize:vertical;border:1px solid var(--hcp-border);border-radius:8px;padding:14px;color:var(--hcp-ink);background:#fff;line-height:1.6;white-space:pre-wrap}.hcp-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.hcp-btn{border:1px solid var(--hcp-border);border-radius:8px;background:#fff;color:var(--hcp-ink);padding:9px 13px;cursor:pointer}.hcp-btn.primary{background:var(--hcp-blue);color:white;border-color:var(--hcp-blue)}.hcp-btn:focus-visible,.hcp-sidebar button:focus-visible,.hcp-list button:focus-visible{outline:3px solid #78aef4;outline-offset:2px}.hcp-badge{display:inline-block;font-size:12px;background:var(--hcp-bg);padding:4px 8px;border-radius:20px;color:var(--hcp-muted)}.hcp-status{min-height:20px;color:#17643c}.hcp-note{font-size:12px;color:var(--hcp-muted);margin-top:8px}.hcp-count{font-size:12px;color:var(--hcp-muted)}@media(max-width:1000px){.hcp-layout{grid-template-columns:180px 1fr}.hcp-editorpanel{grid-column:1/-1}}@media(max-width:620px){.hcp-layout{display:block}.hcp-panel{margin-bottom:12px}.hcp-editor{min-height:300px}}

.hcp-compact .hcp-sidebar button,.hcp-compact .hcp-list button{padding-top:5px;padding-bottom:5px}.hcp-compact .hcp-panel{padding:10px}

.hcp-codespanel h2{font-size:18px;margin:0 0 8px}.hcp-codes-list{display:flex;flex-direction:column;gap:9px;margin-top:12px}.hcp-code-item{border:1px solid var(--hcp-border);border-radius:9px;padding:10px;display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.hcp-code-label{min-width:0;overflow-wrap:anywhere}.hcp-code-label strong{display:block;font-size:15px}.hcp-code-label span{display:block;color:var(--hcp-muted);margin-top:4px;font-size:12px}.hcp-copy-code{padding:5px 8px;flex-shrink:0}.hcp-codespanel .hcp-status{font-size:12px;margin-top:12px}

@media(max-width:1000px){.hcp-layout{grid-template-columns:180px 1fr}.hcp-editorpanel{grid-column:1/-1}.hcp-codespanel{grid-column:1/-1}}
@media(max-width:620px){.hcp-codespanel{grid-column:auto}}

/* 2.1.3: ICD-9 description uses full card width; code and copy share header. */
.hcp-code-item{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;row-gap:4px;align-items:start;justify-content:initial}
.hcp-code-label{display:contents}
.hcp-code-label strong{grid-column:1;grid-row:1;min-width:0;overflow-wrap:anywhere}
.hcp-code-label span{grid-column:1 / -1;grid-row:2;min-width:0;overflow-wrap:break-word;white-space:normal;margin-top:0}
.hcp-copy-code{grid-column:2;grid-row:1;justify-self:end}

/* 2.2.0: ICD-10 references directly below the editable snippet. */
.hcp-icd10-section{margin-top:18px;padding-top:15px;border-top:1px solid var(--hcp-border)}
.hcp-icd10-section[hidden]{display:none!important}
.hcp-icd10-section h3{font-size:17px;margin:0 0 8px;color:var(--hcp-ink)}
.hcp-icd10-section .hcp-codes-list{display:flex;flex-direction:column;gap:9px;margin-top:8px}
.hcp-icd10-section .hcp-code-item{width:100%}
.hcp-icd10-section .hcp-status{font-size:12px;margin-top:8px}

/* 2.2.1: ICD-10 cards in two columns below the snippet. */
.hcp-icd10-section .hcp-codes-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:start}
.hcp-icd10-section .hcp-code-item{min-width:0;height:100%}
@media(max-width:620px){.hcp-icd10-section .hcp-codes-list{grid-template-columns:minmax(0,1fr)}}
