/* The capability table has one comparison surface in both appearances. */
.ct-page-hero,
.ct-section {
  --ct-surface: #10181e;
  --ct-alt: #131e24;
  --ct-head: #1b282d;
  --ct-hover: #1c2b2d;
  --ct-border: #34413f;
  --ct-blue: #a7cddc;
  --ct-blue-bg: #1c303a;
  --ct-green: #c3db98;
  --ct-green-bg: #283723;
  --ct-amber: #e5c59a;
  --ct-amber-bg: #382e22;
}
:root[data-theme="light"] .ct-page-hero,
:root[data-theme="light"] .ct-section {
  --ct-surface: #fff;
  --ct-alt: #f5f8f2;
  --ct-head: #ecf1e8;
  --ct-hover: #edf4e8;
  --ct-border: #cfdbcb;
  --ct-blue: #345f78;
  --ct-blue-bg: #eaf2f6;
  --ct-green: #4d682b;
  --ct-green-bg: #edf3e3;
  --ct-amber: #805d30;
  --ct-amber-bg: #f7efe2;
}
.ct-page-hero { padding-top: 42px; padding-bottom: 25px; }
.ct-page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px 30px; }
.ct-page-hero h1 { margin: 10px 0 13px; font-size: clamp(35px, 4.1vw, 48px); line-height: 1.12; letter-spacing: -2px; }
.ct-page-description { margin: 0; max-width: 790px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.ct-page-heading .board-feedback-actions { margin: 0; gap: 8px; display: flex; flex-wrap: wrap; }
.ct-page-heading .board-feedback-actions > button { min-width: 0; min-height: 44px; padding: 11px 13px; gap: 15px; font-size: 12px; white-space: nowrap; }
.ct-page-heading .board-feedback-actions > button > span { font-size: 16px; }
.ct-section { padding-bottom: 20px; min-width: 0; }
.ct-toolbar { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding: 20px 0 16px; border-top: 1px solid var(--line); }
.ct-search,
.ct-filter,
.ct-sort { display: flex; flex-direction: column; align-items: stretch; gap: 5px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; font-weight: 500; }
.ct-search { width: 210px; flex: 1 1 210px; max-width: 320px; }
.ct-search input,
.ct-filter select,
.ct-sort select,
.ct-dialog-select select { width: 100%; min-width: 0; min-height: 40px; padding: 9px 11px; background: var(--ct-surface, var(--panel)); border: 1px solid var(--ct-border, var(--line)); border-radius: 6px; color: var(--text); font: 400 12px/1.5 var(--font); }
.ct-search input::placeholder { color: var(--quiet); }
.ct-filter select { max-width: 185px; padding-right: 27px; }
.ct-search input:hover,
.ct-filter select:hover,
.ct-sort select:hover { border-color: var(--quiet); }
.ct-columns { position: relative; margin-left: auto; flex: 0 0 auto; }
.ct-columns > summary,
.ct-export { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 13px; border: 1px solid var(--ct-border); border-radius: 6px; background: var(--ct-surface); color: var(--text); font-size: 12px; font-weight: 500; line-height: 1.5; white-space: nowrap; cursor: pointer; }
.ct-columns > summary { list-style: none; }
.ct-columns > summary::-webkit-details-marker { display: none; }
.ct-columns > summary::after { content: '⌄'; margin-left: 3px; font-size: 15px; line-height: 1; color: var(--muted); }
.ct-columns[open] > summary { border-color: var(--lime); }
.ct-columns[open] > summary::after { transform: rotate(180deg); }
.ct-export:hover,
.ct-columns > summary:hover { background: var(--ct-hover); border-color: var(--lime); }
.ct-column-menu { position: absolute; z-index: 30; right: 0; top: calc(100% + 8px); width: 310px; max-width: calc(100vw - 40px); max-height: 440px; overflow-y: auto; padding: 10px; border: 1px solid var(--ct-border); border-radius: 8px; background: var(--ct-surface); box-shadow: 0 12px 40px #0003; }
.ct-column-menu label { display: flex; align-items: flex-start; flex-direction: row; gap: 10px; min-height: 36px; margin: 0; padding: 9px 8px; border-radius: 4px; color: var(--text); font-size: 12px; line-height: 1.5; font-weight: 400; cursor: pointer; }
.ct-column-menu label:hover { background: var(--ct-hover); }
.ct-column-menu input[type="checkbox"] { width: 15px; height: 15px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--lime); }
.ct-column-count { display: inline-flex; align-items: center; justify-content: center; padding: 1px 5px; margin: 0; border: 0; border-radius: 3px; background: var(--ct-head); color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.5; }
.ct-column-menu > strong { display: block; margin: 2px 8px 7px; color: var(--muted); font-size: 11px; font-weight: 600; }
.ct-column-reset { width: 100%; min-height: 38px; margin-top: 7px; padding: 9px; border: 1px solid var(--ct-border); border-radius: 5px; color: var(--lime); font-size: 12px; }
.ct-column-reset:hover { background: var(--ct-hover); }
.ct-table-meta { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 12px; color: var(--muted); font-size: 12px; }
.ct-count { margin: 0; }
.ct-count strong { color: var(--text); font-weight: 600; }
.ct-sort { flex-direction: row; align-items: center; gap: 8px; }
.ct-sort select { width: auto; max-width: 200px; min-height: 34px; padding: 6px 26px 6px 9px; font-size: 11px; }
.ct-table-wrap { width: 100%; max-height: 650px; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--ct-border); border-radius: 8px; background: var(--ct-surface); scrollbar-width: thin; scrollbar-color: var(--quiet) var(--ct-surface); }
.ct-table-wrap:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.ct-table { width: 100%; min-width: calc(232px + var(--ct-metric-count, 4) * 160px); table-layout: fixed; border-collapse: separate; border-spacing: 0; color: var(--text); font-size: 12px; text-align: left; }
.ct-table th,
.ct-table td { padding: 16px 13px; border: 0; border-bottom: 1px solid var(--ct-border); vertical-align: top; overflow-wrap: anywhere; }
.ct-table thead th { position: sticky; z-index: 4; top: 0; padding-top: 13px; padding-bottom: 13px; background: var(--ct-head); color: var(--text); font: 600 11px/1.5 var(--font); box-shadow: 0 1px 0 var(--ct-border); }
.ct-table .ct-name-col { width: 150px; }
.ct-table .ct-evidence-col { width: 82px; padding-left: 7px; padding-right: 7px; text-align: center; overflow-wrap: normal; }
.ct-table thead .ct-name-col { left: 0; z-index: 6; }
.ct-table tbody th { position: sticky; z-index: 2; left: 0; background: var(--ct-surface); font-weight: 400; border-right: 1px solid var(--ct-border); }
.ct-table tbody td { background: var(--ct-surface); }
.ct-table tbody tr:nth-child(even) > th,
.ct-table tbody tr:nth-child(even) > td { background: var(--ct-alt); }
.ct-table tbody tr:hover > th,
.ct-table tbody tr:hover > td { background: var(--ct-hover); }
.ct-table tbody tr:last-child > th,
.ct-table tbody tr:last-child > td { border-bottom: 0; }
.ct-definition { display: inline-flex; vertical-align: middle; align-items: center; justify-content: center; width: 23px; height: 23px; margin: -3px -4px -3px 2px; border: 1px solid transparent; border-radius: 50%; font: 500 10px/1 var(--font); color: var(--muted); }
.ct-definition:hover { background: var(--ct-surface); border-color: var(--ct-border); color: var(--lime); }
.ct-recorder-name { display: inline-block; color: var(--text); font: 600 16px/1.25 var(--display); letter-spacing: -.3px; }
.ct-recorder-name:hover { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.ct-recorder-publication { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.ct-recorder-role { display: block; margin-top: 5px; color: var(--quiet); font-size: 10px; line-height: 1.45; }
.ct-cell-detail { display: block; width: 100%; margin: -5px -6px; padding: 5px 6px; text-align: left; border-radius: 5px; color: inherit; line-height: 1.5; }
.ct-cell-detail:hover { background: color-mix(in srgb, var(--lime) 8%, transparent); }
.ct-claim-preview { display: block; }
.ct-claim-preview + .ct-claim-preview { margin-top: 10px; }
.ct-setting { display: inline-flex; align-items: center; padding: 1px 5px; border: 1px solid color-mix(in srgb, var(--ct-blue) 35%, transparent); border-radius: 3px; background: var(--ct-blue-bg); color: var(--ct-blue); font: 500 9px/1.5 var(--font); white-space: nowrap; }
.ct-setting-in_vivo { color: var(--ct-green); background: var(--ct-green-bg); border-color: color-mix(in srgb, var(--ct-green) 35%, transparent); }
.ct-setting-ex_vivo { color: var(--ct-amber); background: var(--ct-amber-bg); border-color: color-mix(in srgb, var(--ct-amber) 35%, transparent); }
.ct-setting-not_specified { color: var(--muted); background: var(--panel2); border-color: var(--ct-border); }
.ct-claim-value { display: block; margin-top: 4px; color: var(--text); font-size: 12px; font-weight: 500; line-height: 1.5; }
.ct-claim-context { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.ct-more { display: block; margin-top: 7px; color: var(--lime); font-size: 10px; line-height: 1.4; }
.ct-missing { display: block; color: var(--quiet); font-size: 11px; line-height: 1.5; }
.ct-row-evidence { display: inline-flex; align-items: center; justify-content: center; min-width: 60px; min-height: 34px; padding: 6px 4px; white-space: nowrap; overflow-wrap: normal; color: var(--lime); border: 1px solid var(--ct-border); border-radius: 5px; font-size: 10px; line-height: 1.3; }
.ct-row-evidence:hover { border-color: var(--lime); background: var(--ct-head); }
.ct-help { display: flex; gap: 6px 16px; flex-wrap: wrap; align-items: baseline; margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.ct-help p { margin: 0; }
.ct-empty { padding: 46px 24px !important; color: var(--muted); font-size: 13px; text-align: center; }
.ct-empty strong { display: block; margin-bottom: 8px; color: var(--text); font-size: 16px; }
/* Evidence stays close to the selected measurement, without expanding each row. */
.ct-dialog {
  --ct-surface: var(--panel);
  --ct-border: #34413f;
  --ct-head: #1b282d;
  --ct-blue: #a7cddc;
  --ct-blue-bg: #1c303a;
  --ct-green: #c3db98;
  --ct-green-bg: #283723;
  --ct-amber: #e5c59a;
  --ct-amber-bg: #382e22;
  width: min(750px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  overflow: auto;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--ct-border);
  border-radius: 10px;
}
:root[data-theme="light"] .ct-dialog {
  --ct-surface: #fff;
  --ct-border: #cfdbcb;
  --ct-head: #ecf1e8;
  --ct-blue: #345f78;
  --ct-blue-bg: #eaf2f6;
  --ct-green: #4d682b;
  --ct-green-bg: #edf3e3;
  --ct-amber: #805d30;
  --ct-amber-bg: #f7efe2;
}
.ct-dialog::backdrop { background: #07130fcc; backdrop-filter: blur(3px); }
.ct-dialog-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 25px 18px; border-bottom: 1px solid var(--ct-border); background: var(--panel); }
.ct-dialog-header h2 { margin: 0; color: var(--text); font-size: 25px; line-height: 1.2; letter-spacing: -.8px; }
.ct-dialog-header p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.ct-dialog-close { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; padding: 0; margin: -3px -7px -3px 0; border: 1px solid var(--ct-border); border-radius: 6px; color: var(--muted); font-size: 25px; line-height: 1; }
.ct-dialog-close:hover { border-color: var(--lime); color: var(--lime); }
.ct-dialog-body { padding: 22px 25px 26px; }
.ct-dialog-select { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--muted); font-size: 12px; }
.ct-dialog-select select { flex: 1; max-width: 330px; }
.ct-dialog-setting { display: block; margin: 0 0 10px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.ct-dialog-empty { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.ct-dialog-definition { padding: 0 0 18px; margin: 0 0 20px; border-bottom: 1px solid var(--ct-border); color: var(--muted); font-size: 13px; line-height: 1.75; }
.ct-dialog-definition strong { color: var(--text); font-weight: 600; }
.ct-dialog-definition p { margin: 0 0 8px; }
.ct-dialog-definition p:last-child { margin-bottom: 0; }
.ct-dialog-claims { display: grid; gap: 16px; }
.ct-dialog-claim { padding: 18px; border: 1px solid var(--ct-border); border-radius: 7px; background: var(--ct-surface); }
.ct-dialog-claim > strong,
.ct-dialog-claim h3 { display: block; margin: 8px 0 9px; color: var(--text); font-size: 18px; font-weight: 500; line-height: 1.45; letter-spacing: -.3px; }
.ct-dialog-claim p { margin: 9px 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.ct-dialog-claim p:last-child { margin-bottom: 0; }
.ct-dialog-note { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.ct-evidence-status { display: inline-flex; align-items: center; padding: 3px 7px; margin: 10px 0 0; border: 1px solid var(--ct-border); border-radius: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.ct-source-links { display: flex; flex-wrap: wrap; gap: 7px 18px; margin: 13px 0 0; padding: 0; list-style: none; }
.ct-source-links a { display: inline-block; padding: 4px 0; color: var(--lime); border-bottom: 1px solid color-mix(in srgb, var(--lime) 35%, transparent); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.ct-source-links a:hover { border-bottom-color: var(--lime); }
.ct-section :is(button, input, select, summary, a):focus-visible,
.ct-dialog :is(button, input, select, summary, a):focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
@media (max-width: 1080px) {
  .ct-page-heading { align-items: flex-start; flex-wrap: wrap; gap: 15px; }
  .ct-page-heading .board-feedback-actions { margin-bottom: 15px; }
  .ct-page-hero h1 { margin-bottom: 0; }
  .ct-search { max-width: none; }
}
@media (max-width: 720px) {
  .ct-page-hero { padding-top: 29px; padding-bottom: 22px; }
  .ct-page-hero h1 { font-size: 35px; letter-spacing: -1.5px; }
  .ct-page-description { font-size: 13px; line-height: 1.75; }
  .ct-page-heading .board-feedback-actions { width: 100%; gap: 7px; margin-bottom: 13px; }
  .ct-page-heading .board-feedback-actions > button { flex: 1 1 auto; min-height: 44px; padding: 10px 11px; font-size: 11px; gap: 8px; }
  .ct-toolbar { gap: 11px 10px; padding-top: 17px; }
  .ct-search { flex-basis: 100%; width: 100%; }
  .ct-filter { flex: 1 1 calc(50% - 5px); min-width: 0; }
  .ct-filter select { max-width: none; }
  .ct-columns { margin-left: 0; flex: 1; }
  .ct-columns > summary,
  .ct-export { width: 100%; min-height: 42px; }
  .ct-export { flex: 1; }
  .ct-column-menu { left: 0; right: auto; width: 310px; }
  .ct-table-meta { align-items: center; gap: 8px; font-size: 11px; }
  .ct-sort { gap: 6px; font-size: 10px; }
  .ct-sort select { max-width: 148px; font-size: 10px; }
  .ct-table-wrap { max-height: 620px; border-radius: 6px; }
  .ct-table th,
  .ct-table td { padding: 15px 11px; }
  .ct-table .ct-name-col { width: 142px; }
  .ct-recorder-name { font-size: 15px; }
  .ct-table thead th { font-size: 10px; }
  .ct-help { font-size: 10px; gap: 4px; }
  .ct-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .ct-dialog-header { padding: 19px 18px 16px; }
  .ct-dialog-header h2 { font-size: 23px; }
  .ct-dialog-body { padding: 20px 18px; }
  .ct-dialog-select { flex-direction: column; align-items: stretch; gap: 6px; }
  .ct-dialog-select select { max-width: none; }
  .ct-dialog-claim { padding: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-section *,
  .ct-dialog * { scroll-behavior: auto; }
}
/* Evidence-aware filters and sharing stay above the single comparison view. */
.ct-toolbar-actions { display:flex; align-items:center; gap:8px; margin-left:auto; }
.ct-toolbar-actions .ct-columns { margin-left:0; }
.ct-share { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:40px; padding:9px 13px; border:1px solid var(--ct-border); border-radius:6px; background:var(--ct-head); color:var(--text); font-size:12px; white-space:nowrap; }
.ct-share:hover { border-color:var(--lime); }
.ct-meta-actions { display:flex; align-items:center; flex-wrap:wrap; gap:14px; }
.ct-view-switch { display:flex; padding:3px; border:1px solid var(--ct-border); border-radius:6px; background:var(--ct-surface); }
.ct-view-switch button { min-height:30px; padding:5px 13px; border-radius:4px; color:var(--muted); font-size:11px; }
.ct-view-switch button[aria-pressed="true"] { background:var(--ct-head); color:var(--text); }
.ct-selection { display:flex; align-items:center; flex-wrap:wrap; gap:12px; min-height:30px; margin:-2px 0 10px; color:var(--muted); font-size:11px; }
.ct-selection label { display:flex; align-items:center; gap:6px; margin:0; font-size:11px; }
.ct-selection input { width:14px; height:14px; accent-color:var(--lime); margin:0; }
.ct-compare-link { color:var(--lime); padding:5px 8px; border:1px solid var(--ct-border); border-radius:4px; }
.ct-add-compare { display:block; margin-top:10px; min-height:30px; padding:5px 7px; border:1px solid var(--ct-border); border-radius:4px; color:var(--muted); font:500 10px/1.4 var(--font); }
.ct-add-compare:hover,.ct-add-compare.selected { border-color:var(--lime); color:var(--lime); background:var(--lime-bg); }
.ct-study-context { display:grid; gap:5px; margin:0 0 22px; padding:12px 14px; background:var(--ct-head); border-radius:5px; }
.ct-study-context strong { color:var(--text); font-size:12px; font-weight:500; }
.ct-study-context span { color:var(--muted); font-size:11px; line-height:1.6; }
.ct-claim-topline { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:7px; }
.ct-claim-id { color:var(--quiet); font:10px/1.5 var(--mono,var(--font)); }
.ct-dialog-claim.ct-focused-claim { border-color:var(--lime); }
.ct-correction { display:inline-flex; align-items:center; gap:20px; min-height:38px; padding:8px 10px; margin-top:12px; border:1px solid var(--ct-border); border-radius:5px; color:var(--lime); font:500 11px/1.5 var(--font); }
.ct-correction:hover { background:var(--ct-head); border-color:var(--lime); }
.ct-claim-review { margin:18px 0 0; color:var(--quiet); font-size:10px; line-height:1.7; }
.ct-data-details { margin-top:22px; border-top:1px solid var(--ct-border); border-bottom:1px solid var(--ct-border); }
.ct-data-details>summary { display:flex; align-items:center; flex-wrap:wrap; gap:8px 18px; padding:15px 0; cursor:pointer; color:var(--muted); font-size:12px; list-style:none; }
.ct-data-details>summary::before { content:'＋'; color:var(--lime); }
.ct-data-details[open]>summary::before { content:'−'; }
.ct-data-details>summary::-webkit-details-marker { display:none; }
.ct-data-details>summary span { margin-left:auto; color:var(--quiet); font-size:10px; }
.ct-data-body { max-width:900px; padding:6px 0 24px; color:var(--muted); font-size:12px; line-height:1.75; }
.ct-data-meta { display:flex; flex-wrap:wrap; gap:8px 35px; }
.ct-data-meta p { margin:0; }
.ct-data-meta strong { color:var(--text); font-weight:500; padding-right:9px; }
.ct-data-downloads { display:flex; flex-wrap:wrap; gap:10px; margin:20px 0; }
.ct-data-downloads a,.ct-data-downloads button { display:inline-flex; min-height:39px; align-items:center; padding:9px 12px; border:1px solid var(--ct-border); border-radius:5px; color:var(--lime); font:500 11px/1.5 var(--font); }
.ct-data-downloads a:hover,.ct-data-downloads button:hover { background:var(--ct-hover); }
.ct-data-body h3 { margin:25px 0 10px; color:var(--text); font-size:15px; font-weight:500; }
.ct-data-dictionary { margin:0; }
.ct-data-dictionary>div { display:grid; grid-template-columns:180px 1fr; gap:15px; padding:10px 0; border-bottom:1px solid var(--ct-border); }
.ct-data-dictionary dt { color:var(--text); font-weight:500; }
.ct-data-dictionary dd { margin:0; }
.ct-history { list-style:none; padding:0; }
.ct-history li { padding-left:14px; border-left:2px solid var(--ct-border); }
.ct-history time { color:var(--text); }
.ct-history p { margin:5px 0 20px; }
.ct-review-footer { margin:12px 0 0; color:var(--quiet); font-size:10px; line-height:1.6; }
.ct-action-status { color:var(--lime); font-size:12px; line-height:1.6; }
.ct-action-status:empty { display:none; }
.ct-share-dialog { width:min(610px,calc(100% - 30px)); max-height:calc(100dvh - 40px); padding:0; border:1px solid var(--line); border-radius:10px; background:var(--panel); color:var(--text); }
.ct-share-dialog::backdrop { background:#07130fcc; backdrop-filter:blur(3px); }
.ct-share-dialog label { display:block; margin:18px 0 7px; color:var(--muted); font-size:12px; }
.ct-share-dialog input { width:100%; padding:12px; border:1px solid var(--line); border-radius:5px; color:var(--text); background:var(--bg); font:12px/1.6 var(--font); }
.ct-share-dialog p { font-size:13px; line-height:1.7; color:var(--muted); }
.ct-share-dialog .ct-share-note { font-size:11px; color:var(--quiet); }
.ct-section [hidden] { display:none!important; }
@media(max-width:720px) {
 .ct-toolbar-actions { width:100%; margin-left:0; gap:7px; }
 .ct-toolbar-actions>* { flex:1; min-width:0; }
 .ct-toolbar-actions .ct-export,.ct-share,.ct-toolbar-actions summary { min-height:42px; width:100%; padding:8px; font-size:11px; }
 .ct-table-meta { align-items:flex-start; }
 .ct-meta-actions { gap:8px; justify-content:flex-end; }
 .ct-sort { width:100%; justify-content:flex-end; }
 .ct-view-switch button { padding:5px 10px; }
 .ct-data-dictionary>div { grid-template-columns:1fr; gap:4px; }
 .ct-data-details>summary span { margin-left:0; }
}
