/* Shared reference views; presentation is independent of server routing. */
.cnc-ref {margin:18px 0 28px;color:#1d3737}
.cnc-ref-filters,.cnc-ref-results{background:#fff;border:1px solid #d5e0d9;border-radius:13px}
.cnc-ref-filters{padding:17px 20px 15px;margin-bottom:14px}
.cnc-ref-primary,.cnc-ref-secondary{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
.cnc-ref-primary{display:grid;grid-template-columns:minmax(180px,1.55fr) minmax(120px,.67fr) minmax(180px,1fr)}
.cnc-ref-primary:has(.cnc-ref-field:nth-child(2):last-child){grid-template-columns:minmax(180px,1.55fr) minmax(180px,1fr)}
.cnc-ref-secondary{margin-top:12px;gap:10px}
.cnc-ref-field{display:flex;flex-direction:column;gap:4px;min-width:0;color:#3e5b4d;font-size:12px;font-weight:650}
.cnc-ref-field input,.cnc-ref-field select,.cnc-ref-jump input{width:100%;min-width:0;min-height:36px;border:1px solid #c4d2c8;border-radius:6px;padding:5px 9px;background:#fff;color:#203f30;font-weight:450;font-size:14px;line-height:1.4}
.cnc-ref-search input{background:#f9fbf9}
.cnc-ref-secondary .cnc-ref-field{min-width:94px}
.cnc-ref-secondary .btn{min-height:36px;padding:8px 20px}
.cnc-ref-reset{font-size:13px;font-weight:600;margin:0 3px 7px}
.cnc-ref-results{overflow:clip;scroll-margin:10px}
.cnc-ref-pager{display:flex;align-items:center;flex-wrap:wrap;gap:8px 15px;padding:11px 14px;background:#fff}
.cnc-ref-range{font-size:13px;color:#55675e;margin-right:auto;white-space:nowrap}
.cnc-ref-range strong{color:#263f30}
.cnc-ref-numbers,.cnc-ref-jump,.cnc-ref-jump label{display:flex;align-items:center;gap:4px}
.cnc-ref-numbers>a,.cnc-ref-numbers>[aria-current],.cnc-ref-numbers .is-disabled{min-width:30px;height:30px;padding:4px 6px;text-align:center;line-height:20px;border-radius:5px;text-decoration:none;color:#355a43;border:1px solid transparent;font-size:13px;font-weight:600}
.cnc-ref-numbers>a:hover,.cnc-ref-numbers>a:focus-visible{background:#e9f4eb;border-color:#b6d3bf}
.cnc-ref-numbers>[aria-current]{background:#235d4b;color:white;border-color:#235d4b}
.cnc-ref-numbers .cnc-ref-arrow{font-size:20px;border:1px solid #cedbd1;line-height:17px}
.cnc-ref-pager .cnc-ref-gap,.cnc-ref-pager .is-disabled{color:#84958a}
.cnc-ref-jump{gap:5px;font-size:12px;color:#475f4e}
.cnc-ref-jump label{gap:5px}
.cnc-ref-jump input{width:59px;font-size:13px;min-height:30px;padding:3px 4px}
.cnc-ref-jump button{height:30px;padding:4px 9px}
.cnc-ref-table{border-spacing:0;width:100%;border-collapse:separate;table-layout:fixed;font-size:14px;line-height:1.5}
.cnc-ref-table thead th{position:sticky;top:0;background:#175956;color:#fff;text-align:left;padding:12px 10px;font-weight:650;font-size:12px;z-index:1;border-right:1px solid #ffffff25}
.cnc-ref-table th:first-child{width:19%}.cnc-ref-table th:nth-child(2){width:22%}.cnc-ref-table th:nth-child(3){width:32%}.cnc-ref-table th:nth-child(4){width:12%}.cnc-ref-table th:nth-child(5){width:15%}
.cnc-ref-table.cnc-ref-rules th:first-child{width:19%}.cnc-ref-table.cnc-ref-rules th:nth-child(2){width:11%}.cnc-ref-table.cnc-ref-rules th:nth-child(3){width:31%}.cnc-ref-table.cnc-ref-rules th:nth-child(4){width:23%}.cnc-ref-table.cnc-ref-rules th:nth-child(5){width:16%}
.cnc-ref-table tbody td,.cnc-ref-table tbody th{vertical-align:top;text-align:left;padding:10px;border-bottom:1px solid #dce5de;overflow-wrap:anywhere}
.cnc-ref-table tbody th{font-weight:650;color:#205849}
.cnc-ref-table tbody td:last-child{font-size:12px;color:#496355}
.cnc-ref-table tbody tr:nth-child(even){background:#f6f9f6}
.cnc-ref-table tbody tr:hover,.cnc-ref-table tbody tr:focus-within{background:#edf5ee}
.cnc-ref-table details summary{cursor:pointer;color:#205849}
.cnc-ref-table .cnc-ref-detail summary{font-weight:650}
.cnc-ref-table .cnc-ref-detail summary::marker{font-size:11px;color:#6c8d7c}
.cnc-ref-tools{display:flex;flex-direction:column;align-items:flex-start;gap:7px;margin:9px 0 3px}
.cnc-ref-tools a,.cnc-ref-tools button{font-size:12px;font-weight:600}
.cnc-ref-tools button{background:#fff;border:1px solid #b8cdc0;border-radius:4px;padding:4px 7px}
.cnc-ref-tools button[aria-pressed=true]{background:#e0eee2}
.cnc-enhancement{display:none}.cnc-js .cnc-enhancement{display:inline-flex}
.cnc-soap{display:inline-block;background:#e6ecea;border-radius:5px;padding:3px 6px;color:#365147;font-size:11px;font-weight:700}
.cnc-soap-subjective{background:#e3f0f0;color:#285956}.cnc-soap-objective{background:#e6edf8;color:#36567a}.cnc-soap-assessment{background:#f5ebd9;color:#75591b}.cnc-soap-plan{background:#e4efdc;color:#3e5e30}
.cnc-ref .empty{padding:18px;margin:14px}
@media(max-width:1050px){.cnc-ref-primary{grid-template-columns:minmax(125px,1fr) minmax(110px,.6fr) minmax(160px,.85fr)}.cnc-ref-filters{padding:14px}.cnc-ref-table tbody td,.cnc-ref-table tbody th{padding:9px 7px}.cnc-ref-pager{gap:6px 8px}.cnc-ref-table{font-size:13px}}
@media(max-width:760px){.cnc-ref-primary,.cnc-ref-primary:has(.cnc-ref-field:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}.cnc-ref-search{grid-column:1/-1}.cnc-ref-secondary{gap:8px}.cnc-ref-secondary .cnc-ref-field{min-width:75px;flex:1 1 75px}.cnc-ref-secondary>.btn{min-width:85px}.cnc-ref-jump{margin-left:auto}.cnc-ref-pager{row-gap:6px;padding:10px}.cnc-ref-range{flex:1 0 100%}.cnc-ref-table,.cnc-ref-table tbody,.cnc-ref-table tr,.cnc-ref-table tbody th,.cnc-ref-table tbody td{display:block;width:100%!important}.cnc-ref-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.cnc-ref-table tbody tr{padding:9px 14px 12px;border-top:1px solid #d6e2d8}.cnc-ref-table tbody td,.cnc-ref-table tbody th{padding:3px 0;border:0}.cnc-ref-table tbody th{font-size:16px;margin-bottom:2px}.cnc-ref-table td::before{content:attr(data-label);display:block;font-weight:650;color:#516a58;font-size:11px;margin-bottom:1px}.cnc-ref-table{font-size:14px}.cnc-ref-table tbody td:last-child{font-size:13px}.cnc-ref-pager:last-child{border-top:1px solid #d6e2d8}}
@media(max-width:400px){.cnc-ref-primary{grid-template-columns:minmax(0,1fr)}.cnc-ref-jump{margin-left:0}.cnc-ref-numbers>a,.cnc-ref-numbers>[aria-current],.cnc-ref-numbers .is-disabled{min-width:27px}}
#marked-list{width:min(560px,calc(100% - 24px));max-height:80vh;color:#254033;border:1px solid #c5d4c8;border-radius:12px;padding:20px}#marked-list::backdrop{background:#10302d66}#marked-list h2{margin:0;font-size:22px}#marked-list .item{margin-top:8px}#marked-list .linkbtn{margin-left:8px}.fallback-links{padding:8px 14px;background:white}.fallback-links a{display:inline-block;margin:4px}

.publisher-body{min-width:0}.publisher-body main{width:100%;min-width:0}
#private-editor{display:block;width:100%;border:0;background:#f6f8f6}
.publisher-slot{text-align:center;min-width:0;max-width:100%;margin:0 auto;overflow:hidden}.publisher-slot>[data-aaad]{max-width:100%;margin-inline:auto}.publisher-slot:has(iframe),.publisher-slot:has(img){padding:5px 0}
.publisher-slot.slot-sticky_bottom{position:fixed;z-index:18;inset:auto 0 0;width:100%;padding:0 0 env(safe-area-inset-bottom);pointer-events:none}.slot-sticky_bottom>[data-aaad]{width:fit-content;max-width:100%;pointer-events:auto}
body:has(.slot-sticky_bottom iframe),body:has(.slot-sticky_bottom img){padding-bottom:calc(100px + env(safe-area-inset-bottom))}
@media(min-width:1540px){.publisher-body:has(.slot-app_rectangle iframe),.publisher-body:has(.slot-app_rectangle img){display:grid;grid-template-columns:minmax(0,1fr) 315px;align-items:start}.publisher-body>.slot-app_rectangle{margin-top:26px}}
@media(max-width:700px){body:has(.slot-sticky_bottom iframe),body:has(.slot-sticky_bottom img){padding-bottom:calc(100px + env(safe-area-inset-bottom))}}
