:root {
  color-scheme: light;
  --navy: #102f35;
  --ink: #233e42;
  --muted: #526a6b;
  --teal: #126e5c;
  --teal-light: #e7f2ef;
  --paper: #edf3f0;
  --white: #ffffff;
  --line: #cbded5;
  --glass: rgba(255, 255, 255, .58);
  --border: rgba(255, 255, 255, .8);
  --shadow: 0 16px 48px rgba(25, 68, 61, .06), inset 0 1px 0 rgba(255, 255, 255, .9);
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 85% 12%, #b1dfd3 0%, transparent 48%), radial-gradient(ellipse at 4% 55%, #d6e7dd 0%, transparent 50%), radial-gradient(ellipse at 80% 95%, #d6e4ee 0%, transparent 50%); }
button, input { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button, input, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--teal); text-underline-offset: 3px; }
[hidden] { display: none !important; }
button:disabled { cursor: not-allowed; opacity: .45; }
:focus-visible { outline: 3px solid #177966; outline-offset: 4px; }
input:focus-visible { outline-offset: 2px; }
::selection { background: #b4e7d7; color: var(--navy); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: "Manrope", sans-serif; }
.page-width { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.site-header { margin-top: 20px; background: rgba(250, 255, 253, .72); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; padding: 14px 22px; }
.brand { font-family: "Manrope", sans-serif; font-size: 19px; font-weight: 800; color: var(--navy); text-decoration: none; letter-spacing: -.8px; }
.brand span { color: var(--teal); }
.nav-link { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; padding: 10px 17px; background: var(--teal); color: white; border-radius: 12px; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav-link:hover { background: #0c5345; }
.breadcrumbs { margin-top: 26px; font-size: 12px; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin: 0 10px; }
.breadcrumbs a { display: inline-block; padding-block: 8px; }
.intro { display: grid; grid-template-columns: 1fr 310px; gap: 40px; align-items: center; padding: 26px 0 32px; }
.eyebrow { color: var(--teal); text-transform: uppercase; letter-spacing: .15em; font-size: 10px; font-weight: 700; }
h1 { font-size: clamp(38px, 5vw, 60px); font-weight: 500; line-height: 1.12; color: var(--navy); letter-spacing: -.055em; margin: 10px 0 14px; }
.intro-copy { font-size: 15px; color: var(--muted); }
.source-card { border: 1px solid var(--border); border-radius: 22px; padding: 23px; min-width: 0; background: var(--glass); box-shadow: var(--shadow); }
.source-count { font: 500 32px/1.2 "Manrope", sans-serif; color: var(--navy); margin: 9px 0 7px; }
.source-count small { font: 13px "DM Sans", sans-serif; color: var(--muted); }
.source-detail { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.text-button { background: none; border: 0; min-height: 44px; padding: 7px 0; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; font-size: 12px; }
.archive-notice { display: flex; gap: 12px; padding: 15px 18px; background: #f5f2e7; border: 1px solid #ddd8c5; border-left: 3px solid #978145; border-radius: 14px; margin-bottom: 27px; font-size: 12px; color: #5c533b; }
.archive-notice strong { color: #49432f; }
.notice-symbol { flex: 0 0 19px; height: 19px; display: grid; place-items: center; border: 1px solid #8b7951; border-radius: 50%; font-weight: 700; margin-top: 1px; }
.search-panel, .results-panel { background: var(--glass); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.search-panel { padding: 25px 27px; }
.section-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
h2 { font-size: 23px; font-weight: 600; line-height: 1.3; color: var(--navy); letter-spacing: -.035em; }
.section-number { color: var(--muted); font: 10px/1.5 Consolas, "Courier New", monospace; letter-spacing: .08em; white-space: nowrap; }
.field-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; margin-top: 22px; }
.field { min-width: 0; }
.field label, legend { display: block; font-size: 12px; font-weight: 700; margin-bottom: 7px; }
.optional { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.field input { width: 100%; min-width: 0; padding: 11px 13px; border: 1px solid #aebfb7; border-radius: 12px; background: #fff; color: var(--navy); min-height: 46px; }
.field input::placeholder { color: #687b75; opacity: 1; }
#code { font-family: Consolas, "Courier New", monospace; }
.field-help { color: var(--muted); font-size: 12px; margin-top: 8px; }
.match-fieldset { min-width: 0; border: 0; padding: 0; margin: 20px 0 0; }
legend { padding: 0; }
.mode-options { display: flex; flex-wrap: wrap; gap: 8px; }
.mode-option { display: flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .65); border-radius: 12px; cursor: pointer; font-size: 12px; min-height: 44px; }
.mode-option:has(input:checked) { background: var(--teal-light); border-color: var(--teal); color: #0c514b; }
.mode-option input { accent-color: var(--teal); width: 15px; height: 15px; margin: 0; flex-shrink: 0; }
.form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.matching-note { font-size: 11px; color: var(--muted); }
.form-actions, .page-buttons { display: flex; gap: 9px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 44px; padding: 10px 17px; border: 1px solid transparent; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; transition: background-color .15s; }
.button-secondary { background: var(--white); color: var(--ink); border-color: #c5d5cc; }
.button-secondary:hover:not(:disabled) { background: #e7f2ef; }
.results-panel { margin-top: 25px; overflow: hidden; }
.results-top { padding: 22px 27px; }
.results-summary { font-size: 12px; color: var(--muted); margin-top: 5px; }
.applied-filters { background: #edf5f0; padding: 13px 27px; border-block: 1px solid var(--line); }
.filter-label { display: block; text-transform: uppercase; letter-spacing: .09em; font-size: 9px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.filter-values { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip { border: 1px solid #d4ded4; background: var(--white); border-radius: 8px; padding: 3px 8px; font-size: 11px; overflow-wrap: anywhere; min-width: 0; max-width: 100%; white-space: pre-wrap; }
.applied-filters p { color: var(--muted); font-size: 11px; margin-top: 7px; }
.state-panel { padding: 30px 24px 38px; text-align: center; border-top: 1px solid var(--line); }
.state-symbol { display: grid; place-items: center; width: 45px; height: 45px; margin: 0 auto 13px; background: var(--teal-light); color: var(--teal); border-radius: 50%; font: 500 20px "Manrope", sans-serif; }
.state-panel h3 { font-size: 22px; font-weight: 500; line-height: 1.3; color: var(--navy); }
.state-panel > p { color: var(--muted); max-width: 470px; margin: 9px auto 0; font-size: 13px; overflow-wrap: anywhere; }
.state-panel.is-error .state-symbol { color: #90432e; background: #f6e8e0; }
.state-panel.is-error > p { color: #823d2d; }
.state-panel.is-loading .state-symbol { font-size: 0; border: 2px solid #d6e5de; border-top-color: var(--teal); background: none; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.examples { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.examples > span { font-size: 11px; color: var(--muted); margin-right: 3px; }
.example-button { display: inline-flex; gap: 18px; align-items: center; background: transparent; color: var(--teal); border: 1px solid #c7d6cb; border-radius: 12px; padding: 8px 11px; min-height: 44px; font-size: 12px; }
.example-button:hover { background: var(--teal-light); border-color: var(--teal); }
table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
th { font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; color: var(--muted); background: #edf5f0; }
th, td { padding: 15px 20px; border-bottom: 1px solid #dae6df; vertical-align: top; }
th:first-child, td:first-child { padding-left: 27px; }
.code-heading { width: 147px; }
.action-heading { width: 100px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: rgba(255, 255, 255, .45); }
tbody tr:hover { background: #e9f3ed; }
.code-value { font: 600 14px/1.6 Consolas, "Courier New", monospace; color: #0e645a; overflow-wrap: anywhere; user-select: all; }
.description-cell { font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-wrap; }
.description-toggle { display: block; min-height: 44px; margin-top: 4px; padding: 6px 0; border: 0; background: transparent; color: var(--teal); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.description-toggle:hover { color: var(--navy); }
.copy-cell { text-align: right; padding: 9px 20px 9px 5px; }
.copy-button { background: transparent; color: var(--teal); border: 1px solid #ccd9d1; border-radius: 10px; min-height: 44px; min-width: 56px; padding: 6px 10px; font-size: 11px; }
.copy-button:hover { background: #e4efe8; border-color: var(--teal); }
.copy-status:empty { display: none; }
.copy-status:not(:empty) { padding: 10px 27px; background: var(--teal-light); color: #154f48; font-size: 12px; overflow-wrap: anywhere; }
.pagination { border-top: 1px solid var(--line); padding: 16px 27px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pagination p { font-size: 12px; color: var(--muted); }
.pagination .button { padding: 8px 13px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 11px; padding: 23px 0 30px; }
.site-footer span { margin: 0 7px; }
.noscript-notice { margin-top: 16px; color: #823d2d; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; transform: translateY(-160%); z-index: 10; background: var(--white); color: var(--navy); padding: 10px 16px; border-radius: 12px; }
.skip-link:focus { transform: none; }
@media (max-width: 760px) {
  .page-width { width: calc(100% - 36px); }
  .intro { grid-template-columns: 1fr 250px; gap: 22px; }
  .source-card { padding: 20px; }
  .source-count { font-size: 27px; }
  .form-bottom { align-items: flex-start; flex-direction: column; gap: 15px; }
  .form-actions { align-self: flex-end; }
  .site-footer { flex-direction: column; gap: 5px; }
}
@media (max-width: 560px) {
  .header-inner { min-height: 70px; gap: 10px; padding: 10px 14px; }
  .brand { font-size: 16px; }
  .nav-link { font-size: 11px; padding: 9px 12px; gap: 7px; }
  .breadcrumbs { margin-top: 18px; }
  .intro { grid-template-columns: 1fr; gap: 23px; padding: 20px 0 23px; }
  h1 { font-size: clamp(36px, 10vw, 48px); }
  .intro-copy { font-size: 14px; }
  .source-card { padding: 18px; }
  .source-count { font-size: 28px; }
  .source-detail { font-size: 11px; }
  .archive-notice { padding: 12px; gap: 9px; margin-bottom: 20px; font-size: 11px; }
  .archive-notice strong { display: block; margin-bottom: 3px; }
  .search-panel { padding: 19px 17px; }
  h2 { font-size: 21px; }
  .section-number { font-size: 8px; }
  .field-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 18px; }
  .field input { font-size: 16px; }
  .mode-options { flex-direction: column; gap: 6px; }
  .form-actions { align-self: stretch; }
  .results-top { padding: 19px 17px; }
  .applied-filters { padding: 12px 17px; }
  .state-panel { padding: 24px 17px 29px; }
  .state-panel h3 { font-size: 21px; }
  .examples { gap: 7px; }
  .examples > span { flex-basis: 100%; margin: 0 0 2px; }
  .example-button { gap: 9px; }
  table, tbody { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 13px 17px 17px; gap: 8px 12px; border-bottom: 1px solid var(--line); }
  tbody tr:last-child { border-bottom: 0; }
  td, th:first-child, td:first-child { padding: 0; border: 0; }
  .code-cell { align-self: center; }
  .code-cell::before { content: "CPT "; font-size: 10px; letter-spacing: .06em; color: var(--muted); margin-right: 7px; }
  .description-cell { grid-column: 1 / -1; grid-row: 2; font-size: 13px; }
  .copy-cell { grid-column: 2; grid-row: 1; padding: 0; }
  .pagination { padding: 14px 17px; flex-wrap: wrap; gap: 11px; }
  .page-buttons { margin-left: auto; }
  .copy-status:not(:empty) { padding-inline: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .mode-option:has(input:checked) { outline: 1px solid Highlight; }
  .button { border-color: ButtonText; }
}
