:root {
    color-scheme: light;
    --ink: #17202a;
    --muted: #66717e;
    --line: #dfe4e8;
    --line-strong: #cbd3da;
    --surface: #ffffff;
    --surface-soft: #f5f7f8;
    --surface-blue: #edf4f7;
    --brand: #087f9f;
    --brand-dark: #06677f;
    --accent: #0d9fc1;
    --good: #25734d;
    --good-bg: #e5f3eb;
    --warn: #9a641c;
    --warn-bg: #fff2d8;
    --bad: #a33d38;
    --bad-bg: #fbe8e6;
    --shadow: 0 10px 28px rgba(23, 32, 42, .07);
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --ink: #e5edf5;
    --muted: #91a0af;
    --line: #213142;
    --line-strong: #344658;
    --surface: #0b1722;
    --surface-soft: #07121c;
    --surface-blue: #102939;
    --brand: #19a6c7;
    --brand-dark: #42c2dd;
    --accent: #19a6c7;
    --good: #2fd0a4;
    --good-bg: #0b2b27;
    --warn: #efbd4e;
    --warn-bg: #302710;
    --bad: #f06a7d;
    --bad-bg: #321822;
    --shadow: 0 12px 34px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface-soft); color: var(--ink); font-family: Inter, Arial, sans-serif; line-height: 1.45; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
button, input, select { font: inherit; letter-spacing: 0; }
button, select, input { min-height: 40px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--ink); }
input, select { width: 100%; padding: 8px 11px; }
button { padding: 8px 16px; background: var(--brand); border-color: var(--brand); color: #fff; cursor: pointer; }
button:hover { background: var(--brand-dark); }
h1, h2, h3, h4 { margin: 0; letter-spacing: 0; line-height: 1.2; }
h1 { font-size: 38px; }
h2 { font-size: 21px; }
h3 { font-size: 16px; }
p { margin: 0; }
small { display: block; color: var(--muted); margin-top: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(12px); }
.header-row { width: 100%; min-height: 68px; margin: 0 auto; padding: 8px 24px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); font-size: 15px; font-weight: 850; white-space: nowrap; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; background: linear-gradient(160deg, #18a8c9, #087798); color: #fff; border-radius: 8px; font-size: 18px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.main-nav { display: flex; align-items: center; align-self: stretch; gap: 2px; }
.main-nav a { min-height: 42px; display: flex; align-items: center; padding: 0 11px; color: var(--muted); border: 0; border-radius: 7px; font-size: 13px; font-weight: 650; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: var(--brand-dark); background: var(--surface-blue); }
.header-search { position: relative; margin-left: auto; width: min(430px, 29vw); }
.header-search svg { position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; translate: 0 -50%; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 2; pointer-events: none; }
.header-search input { min-height: 42px; padding-left: 42px; background: var(--surface-soft); border-color: var(--line-strong); }
.admin-link { min-height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--brand); border-radius: 22px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 750; }
.admin-link:hover { color: #fff; background: var(--brand-dark); }
.admin-link svg, .theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle { width: 42px; min-width: 42px; height: 42px; min-height: 42px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--muted); box-shadow: none; }
.theme-toggle:hover { border-color: var(--brand); background: var(--surface-blue); color: var(--brand-dark); }
.theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: block; }

.site-main { width: 100%; max-width: none; margin: 0; min-height: calc(100vh - 150px); padding: 26px 22px 54px; }
.breadcrumbs { display: flex; gap: 8px; align-items: center; min-width: 0; margin-bottom: 18px; color: var(--muted); font-size: 13px; overflow: hidden; white-space: nowrap; }
.breadcrumbs a, .breadcrumbs span { overflow: hidden; text-overflow: ellipsis; }

.eyebrow { margin-bottom: 8px; color: var(--accent); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.search-surface { min-height: 240px; display: grid; align-content: center; gap: 22px; padding: 34px 72px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brand); box-shadow: var(--shadow); }
.primary-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; max-width: 970px; }
.primary-search input { min-height: 52px; border-radius: 6px 0 0 6px; font-size: 16px; }
.primary-search button { min-width: 120px; min-height: 52px; border-radius: 0 6px 6px 0; }
.quick-links { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 13px; }
.quick-links a { border-bottom: 1px dashed currentColor; }
.metric-strip { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 18px; background: var(--surface); border: 1px solid var(--line); }
.metric-strip a { min-width: 0; padding: 18px 20px; color: var(--ink); border-right: 1px solid var(--line); }
.metric-strip a:last-child { border-right: 0; }
.metric-strip strong { display: block; font-size: 24px; }
.metric-strip span { color: var(--muted); font-size: 13px; }
.notice-band { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 13px 18px; border-left: 4px solid var(--warn); background: var(--warn-bg); }
.notice-band strong { font-size: 20px; }
.notice-band a { margin-left: auto; font-weight: 700; }
.registry-directory { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.registry-directory a { min-height: 108px; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-content: center; padding: 18px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; }
.registry-directory a:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.registry-directory a > span { grid-row: 1 / 3; width: 44px; height: 44px; display: grid; place-items: center; align-self: center; background: var(--surface-blue); color: var(--brand); border-radius: 6px; font-size: 12px; font-weight: 800; }
.registry-directory small { margin: 4px 0 0; }
.latest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.registry-section { min-width: 0; background: var(--surface); border: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px; border-bottom: 1px solid var(--line); }
.section-heading a { font-size: 13px; }
.compact-list a { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: start; gap: 10px; padding: 13px 18px; color: var(--ink); border-bottom: 1px solid var(--line); }
.compact-list a:last-child { border-bottom: 0; }
.compact-list a:hover { background: var(--surface-soft); }
.compact-list strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.compact-list time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.status-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #8b949d; }
.status-dot.status-active { background: var(--good); }
.status-dot.status-suspended { background: var(--warn); }
.status-dot.status-expired, .status-dot.status-terminated { background: var(--bad); }

.section-heading-inline { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 18px; }
.section-heading-inline > a, .section-heading-inline > span { font-size: 13px; }
.risk-section > .section-heading-inline h2 { margin: 0; }
.risk-summary { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px; border-left: 4px solid var(--line-strong); background: var(--surface-soft); }
.risk-summary.risk-low { border-left-color: var(--good); background: var(--good-bg); }
.risk-summary.risk-medium { border-left-color: var(--warn); background: var(--warn-bg); }
.risk-summary.risk-high { border-left-color: var(--bad); background: var(--bad-bg); }
.risk-score { width: 74px; height: 74px; display: grid; place-content: center; text-align: center; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 50%; }
.risk-score strong { font-size: 25px; line-height: 1; }
.risk-score span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.risk-label { display: block; margin-bottom: 5px; font-size: 18px; font-weight: 800; }
.risk-summary p { max-width: 860px; }
.risk-factor-list { margin-top: 14px; border: 1px solid var(--line); }
.risk-factor { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 13px 15px; background: var(--surface); border-bottom: 1px solid var(--line); }
.risk-factor:last-child { border-bottom: 0; }
.factor-mark { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #edf0f2; color: var(--muted); font-size: 12px; font-weight: 800; }
.factor-critical .factor-mark { background: var(--bad-bg); color: var(--bad); }
.factor-warning .factor-mark { background: var(--warn-bg); color: var(--warn); }
.factor-positive .factor-mark { background: var(--good-bg); color: var(--good); }
.risk-factor strong { display: block; font-size: 13px; }
.risk-factor p { margin-top: 3px; color: var(--muted); font-size: 13px; }
.risk-disclaimer { margin-top: 14px; padding: 12px 14px; color: var(--muted); background: #f3f5f6; border-left: 3px solid var(--line-strong); font-size: 12px; }
.risk-check-form { display: grid; grid-template-columns: 210px minmax(300px, 1fr) auto; gap: 10px; align-items: end; padding: 18px; background: var(--surface); border: 1px solid var(--line); }
.risk-check-form button { min-width: 120px; }
.risk-result-page { margin-top: 18px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brand); }
.risk-document-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 18px; }
.risk-document-header h2 { margin-top: 4px; overflow-wrap: anywhere; }
.risk-document-header p { margin-top: 7px; color: var(--muted); }
.risk-document-header > a { flex: 0 0 auto; padding: 9px 13px; border: 1px solid var(--line-strong); border-radius: 6px; }
.empty-result, .diagnostic-guide { margin-top: 18px; padding: 24px; background: var(--surface); border: 1px solid var(--line); }
.empty-result p { margin-top: 8px; color: var(--muted); }
.diagnostic-guide > div { display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px minmax(0, 1fr); gap: 18px 12px; margin-top: 18px; }
.diagnostic-guide span { width: 30px; height: 30px; display: grid; place-items: center; color: var(--brand); background: var(--surface-blue); font-size: 11px; font-weight: 800; }
.diagnostic-guide strong { display: block; margin-bottom: 3px; }
.diagnostic-guide p { color: var(--muted); font-size: 13px; }

.insight-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); }
.insight-strip > div { min-width: 0; padding: 18px; border-right: 1px solid var(--line); }
.insight-strip > div:last-child { border-right: 0; }
.insight-strip strong { display: block; font-size: 25px; }
.insight-strip span { color: var(--muted); font-size: 12px; }
.insight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.insight-panel { background: var(--surface); border: 1px solid var(--line); }
.insight-rows { margin: 0; }
.insight-rows > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 11px 18px; border-top: 1px solid var(--line); }
.insight-rows dt { color: var(--muted); }
.insight-rows dd { margin: 0; font-weight: 800; }
.insight-history { margin-top: 18px; }
.insight-filter { display:flex; gap:10px; align-items:end; margin-bottom:14px; padding:12px 14px; border:1px solid var(--line); background:var(--surface); }
.insight-filter label span { display:block; margin-bottom:4px; color:var(--muted); font-size:10px; font-weight:750; text-transform:uppercase; }
.insight-filter select { min-height:38px; padding:8px 30px 8px 10px; border:1px solid var(--line); color:var(--text); background:var(--surface); }
.insight-filter button,.insight-filter > a { min-height:38px; display:inline-flex; align-items:center; justify-content:center; padding:8px 14px; border:1px solid var(--primary); color:#fff; background:var(--primary); font-weight:750; text-decoration:none; cursor:pointer; }
.insight-filter > a { color:var(--muted); border-color:var(--line); background:transparent; }
.market-period { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); margin-bottom:18px; border:1px solid var(--line); background:var(--surface); }
.market-period > div { min-width:0; padding:15px 16px; border-right:1px solid var(--line); }.market-period > div:last-child { border-right:0; }
.market-period span,.market-period small,.market-period strong { display:block; }.market-period span { color:var(--muted); font-size:10px; font-weight:750; text-transform:uppercase; }.market-period strong { margin:4px 0; font-size:23px; }.market-period small { color:var(--muted); font-size:10px; }.market-period .positive { color:#059669; }.market-period .negative { color:#dc2626; }
.market-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-bottom:16px; }.market-wide { grid-column:1/-1; }
.market-chart { display:grid; gap:9px; padding:16px 18px 18px; }.market-chart > div { display:grid; grid-template-columns:80px minmax(0,1fr) 70px; gap:10px; align-items:center; }.market-chart span { color:var(--muted); font-size:11px; }.market-chart i { height:9px; overflow:hidden; background:var(--surface-strong); }.market-chart b { display:block; height:100%; background:var(--primary); }.market-chart strong { text-align:right; font-size:11px; }
.market-ranking { margin:0; padding:0; list-style:none; }.market-ranking li { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; padding:10px 18px; border-top:1px solid var(--line); }.market-ranking span { min-width:0; overflow-wrap:anywhere; }.market-ranking strong { color:var(--primary); }.data-disclaimer { margin:0 0 18px; color:var(--muted); font-size:11px; }
.status-history-list { border: 1px solid var(--line); }
.status-history-list > a { display: grid; grid-template-columns: 90px minmax(180px, 1fr) minmax(220px, 1.5fr) auto; gap: 12px; align-items: center; padding: 11px 13px; color: var(--ink); border-bottom: 1px solid var(--line); font-size: 12px; }
.status-history-list > a:last-child { border-bottom: 0; }
.status-history-list > a:hover { background: var(--surface-soft); }
.status-history-list > a > span, .status-history-list time { color: var(--muted); }

.registry-header { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.registry-intro { max-width: 820px; margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.total-count { padding: 8px 11px; background: var(--surface-blue); color: var(--brand-dark); border: 1px solid #d6e5ec; border-radius: 6px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.filter-bar { display: grid; grid-template-columns: minmax(260px, 2fr) repeat(4, minmax(150px, 1fr)) auto; gap: 10px; align-items: end; padding: 15px; background: var(--surface); border: 1px solid var(--line); }
.registry-lead { max-width: 900px; margin-top: 7px; color: var(--muted); font-size: 13px; }
.document-filter { grid-template-columns: minmax(280px, 2fr) repeat(4, minmax(145px, 1fr)) auto; }
.registry-actions { display: flex; justify-content: flex-end; gap: 8px; margin: 0 0 10px; }
.registry-actions a { padding: 8px 11px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 5px; font-size: 12px; font-weight: 700; }
.registry-actions a:hover { color: var(--brand); border-color: var(--brand); }
.compact-filter { grid-template-columns: minmax(300px, 2fr) repeat(2, minmax(170px, 1fr)) auto; }
.field label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.filter-actions { display: flex; gap: 8px; align-items: center; }
.filter-actions a { min-height: 40px; display: flex; align-items: center; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink); }
.quick-filter-row { display: flex; gap: 8px; padding: 14px 0; overflow-x: auto; }
.quick-filter-row a { flex: 0 0 auto; padding: 7px 12px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.quick-filter-row a.active, .quick-filter-row a:hover { color: #fff; background: var(--ink); border-color: var(--ink); }
.table-wrap { overflow: auto; background: var(--surface); border: 1px solid var(--line); }
.registry-table { width: 100%; min-width: 1080px; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.registry-table th { padding: 10px 12px; background: #edf0f2; color: #4f5b66; border-bottom: 1px solid var(--line-strong); text-align: left; font-size: 11px; text-transform: uppercase; }
.registry-table th a { color: inherit; }
.registry-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.registry-table tbody tr:hover { background: #f8fafb; }
.registry-table tbody tr:last-child td { border-bottom: 0; }
.record-link { color: var(--brand-dark); font-weight: 750; }
.status-badge { display: inline-block; max-width: 180px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; color: #4c5862; background: #f0f2f4; font-size: 11px; line-height: 1.3; }
.status-badge.status-active { color: var(--good); background: var(--good-bg); border-color: #bdddc9; }
.status-badge.status-suspended { color: var(--warn); background: var(--warn-bg); border-color: #ead39f; }
.status-badge.status-expired, .status-badge.status-terminated, .status-badge.status-invalid { color: var(--bad); background: var(--bad-bg); border-color: #ebc4c0; }
.document-table { min-width: 1480px; }
.document-table th:nth-child(1) { width: 125px; }
.document-table th:nth-child(2) { width: 210px; }
.document-table th:nth-child(3), .document-table th:nth-child(4) { width: 105px; }
.document-table th:nth-child(5), .document-table th:nth-child(6) { width: 210px; }
.document-table th:nth-child(7) { width: 300px; }
.document-table th:nth-child(8) { width: 240px; }
.testing-cell > a { display: block; margin-bottom: 7px; color: var(--ink); }
.testing-cell > a strong, .testing-cell > a span { display: block; }
.testing-cell > a span, .testing-cell > small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.ral-filter { grid-template-columns: minmax(280px, 2fr) repeat(4, minmax(145px, 1fr)) auto; }
.ral-table { min-width: 1450px; }
.ral-table th:nth-child(1) { width: 130px; }
.ral-table th:nth-child(2) { width: 190px; }
.ral-table th:nth-child(3) { width: 120px; }
.ral-table th:nth-child(4) { width: 230px; }
.ral-table th:nth-child(5) { width: 145px; }
.ral-table th:nth-child(6) { width: 280px; }
.ral-table th:nth-child(7) { width: 285px; }
.ral-table th:nth-child(8) { width: 55px; }
.ral-table td small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.empty-cell { padding: 38px !important; color: var(--muted); text-align: center; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 18px; font-size: 13px; }
.pagination a, .pagination .disabled { padding: 8px 13px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); }
.pagination .disabled { color: #9aa3aa; }

.record-page { display: grid; gap: 16px; }
.record-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brand); }
.record-header h1 { max-width: 1050px; overflow-wrap: anywhere; }
.record-header-actions { display: flex; gap: 8px; align-items: flex-start; }
.record-meta { display: flex; flex-wrap: wrap; gap: 9px 18px; align-items: center; margin-top: 14px; color: var(--muted); font-size: 13px; }
.official-link { flex: 0 0 auto; padding: 9px 13px; border: 1px solid var(--line-strong); border-radius: 6px; }
.record-tabs { position: sticky; top: 64px; z-index: 10; display: flex; gap: 4px; padding: 8px; background: var(--surface); border: 1px solid var(--line); overflow-x: auto; }
.record-tabs a { padding: 8px 12px; color: var(--ink); font-size: 13px; white-space: nowrap; }
.record-tabs a:hover { background: var(--surface-soft); }
.detail-section { scroll-margin-top: 124px; padding: 22px; background: var(--surface); border: 1px solid var(--line); }
.detail-section > h2 { margin-bottom: 18px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.detail-grid > div { min-width: 0; padding: 13px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-grid .detail-span { grid-column: 1 / -1; }
.detail-grid dt { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.detail-grid dd { margin: 5px 0 0; overflow-wrap: anywhere; }
.party-grid, .relation-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.party-grid > div { padding: 18px; background: var(--surface-soft); border-left: 3px solid var(--brand); }
.party-grid h3 { margin-bottom: 9px; }
.party-grid p { font-weight: 700; }
.party-grid dl { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 7px 12px; margin: 14px 0 0; font-size: 13px; }
.party-grid dt { color: var(--muted); }
.party-grid dd { margin: 0; overflow-wrap: anywhere; }
.long-text { max-width: 1160px; line-height: 1.65; }
.preserve-lines { white-space: pre-line; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.tag-list span, .tag-list a { padding: 6px 9px; background: var(--surface-blue); border: 1px solid #d5e3ea; border-radius: 5px; color: var(--brand-dark); font-size: 12px; }
.tag-list a:hover { border-color: var(--brand); }
.classifier-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 12px; font-size: 12px; }
.classifier-inline strong { margin-right: 3px; }
.classifier-inline a { padding: 5px 8px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 5px; }
.relation-columns > div { min-width: 0; }
.relation-columns h3 { padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.relation-item { display: block; padding: 12px 0; color: var(--ink); border-bottom: 1px solid var(--line); }
.relation-item span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.relation-item strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.empty-state { padding: 16px 0; color: var(--muted); }
.oa-list { display: grid; gap: 14px; margin-top: 20px; }
.oa-area { border: 1px solid var(--line); }
.oa-area > h3 { padding: 13px 15px; background: var(--surface-blue); border-bottom: 1px solid var(--line); }
.oa-address { padding: 15px; }
.oa-address > strong { display: block; margin-bottom: 14px; }
.oa-address h4 { margin: 14px 0 8px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
.oa-address dl { display: grid; grid-template-columns: minmax(180px, .4fr) 1fr; margin: 0; border: 1px solid var(--line); }
.oa-address dt, .oa-address dd { margin: 0; padding: 10px 12px; border-bottom: 1px solid var(--line); }

.accreditation-history-metrics, .report-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 20px; border: 1px solid var(--line); background: var(--surface-soft); }
.accreditation-history-metrics > div, .report-metrics > div { min-width: 0; padding: 15px 17px; border-right: 1px solid var(--line); }
.accreditation-history-metrics > div:last-child, .report-metrics > div:last-child { border-right: 0; }
.accreditation-history-metrics strong, .report-metrics strong { display: block; font-size: 21px; overflow-wrap: anywhere; }
.accreditation-history-metrics span, .report-metrics span { color: var(--muted); font-size: 11px; }
.accreditation-timeline { position: relative; }
.accreditation-timeline::before { content: ''; position: absolute; left: 126px; top: 7px; bottom: 7px; width: 2px; background: var(--line-strong); }
.accreditation-event { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 34px; padding: 0 0 22px; }
.accreditation-event:last-child { padding-bottom: 0; }
.event-date { position: relative; padding-top: 3px; color: var(--muted); font-size: 12px; text-align: right; }
.event-date span { position: absolute; z-index: 1; right: -23px; top: 6px; width: 12px; height: 12px; border: 3px solid var(--surface); border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.event-suspended .event-date span, .event-terminated .event-date span, .event-scope_reduced .event-date span { background: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.event-resumed .event-date span, .event-accredited .event-date span { background: var(--good); box-shadow: 0 0 0 1px var(--good); }
.event-content { min-width: 0; padding: 0 0 20px; border-bottom: 1px solid var(--line); }
.accreditation-event:last-child .event-content { border-bottom: 0; }
.event-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.event-heading h3 { margin-right: auto; }
.event-content > p { margin-top: 9px; font-size: 13px; }
.event-content details { margin-top: 12px; border: 1px solid var(--line); }
.event-content summary { padding: 10px 12px; color: var(--brand-dark); cursor: pointer; font-size: 12px; font-weight: 750; }
.event-content details p { padding: 0 12px 12px; color: var(--muted); font-size: 12px; line-height: 1.6; }

.organization-report { display: grid; gap: 16px; }
.organization-report > * { min-width: 0; }
.report-header { align-items: center; }
.report-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.portfolio-summary { display: grid; grid-template-columns: 110px minmax(260px, .8fr) minmax(480px, 1.4fr); gap: 22px; align-items: center; padding: 22px; border: 1px solid var(--line); border-left: 5px solid var(--brand); background: var(--surface); }
.portfolio-summary.portfolio-stable { border-left-color: var(--good); }
.portfolio-summary.portfolio-attention { border-left-color: var(--warn); }
.portfolio-summary.portfolio-risk { border-left-color: var(--bad); }
.portfolio-score { width: 92px; height: 92px; display: grid; place-content: center; border: 2px solid var(--brand); border-radius: 50%; text-align: center; }
.portfolio-stable .portfolio-score { border-color: var(--good); color: var(--good); }
.portfolio-attention .portfolio-score { border-color: var(--warn); color: var(--warn); }
.portfolio-risk .portfolio-score { border-color: var(--bad); color: var(--bad); }
.portfolio-score strong { font-size: 30px; line-height: 1; }
.portfolio-score span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.portfolio-summary h2 { margin-bottom: 7px; }
.portfolio-summary p { color: var(--muted); font-size: 13px; }
.portfolio-summary dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); }
.portfolio-summary dl > div { padding: 11px 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.portfolio-summary dl > div:nth-child(even) { border-right: 0; }
.portfolio-summary dl > div:nth-last-child(-n+2) { border-bottom: 0; }
.portfolio-summary dt { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.portfolio-summary dd { margin: 3px 0 0; font-size: 19px; font-weight: 800; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.report-bars { display: grid; gap: 12px; }
.report-bars > div { display: grid; grid-template-columns: minmax(130px, .65fr) minmax(160px, 1fr) 45px; gap: 12px; align-items: center; }
.report-bars span { font-size: 13px; overflow-wrap: anywhere; }
.report-bars strong { text-align: right; }
.report-bars meter { width: 100%; height: 9px; accent-color: var(--brand); }
.report-ranking { margin: 0; padding: 0; list-style: none; }
.report-ranking li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.report-ranking li:last-child { border-bottom: 0; }
.report-ranking span { font-size: 13px; overflow-wrap: anywhere; }
.report-ranking strong { color: var(--brand-dark); }
.report-recommendations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.report-recommendations > div { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px; border: 1px solid var(--line); border-left: 4px solid var(--brand); background: var(--surface-soft); }
.report-recommendations > div > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--brand-dark); font-size: 12px; font-weight: 800; }
.report-recommendations h3 { margin: 0 0 5px; font-size: 14px; }
.report-recommendations p { color: var(--muted); font-size: 12px; line-height: 1.55; }
.report-recommendations .recommendation-critical { border-left-color: var(--bad); }
.report-recommendations .recommendation-warning { border-left-color: var(--warn); }
.report-recommendations .recommendation-positive { border-left-color: var(--good); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; }
.activity-delta { flex: 0 0 auto; padding: 7px 10px; border: 1px solid var(--line-strong); color: var(--muted); font-size: 12px; font-weight: 800; }
.activity-delta.is-up { border-color: var(--good); color: var(--good); }
.activity-delta.is-down { border-color: var(--bad); color: var(--bad); }
.activity-table { width: 100%; border-collapse: collapse; margin-bottom: 22px; }
.activity-table th, .activity-table td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.activity-table thead th { background: var(--surface-soft); color: var(--muted); font-size: 11px; text-transform: uppercase; }
.activity-table tbody td { font-size: 16px; font-weight: 800; }
.report-activity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.report-activity-grid h3 { margin-bottom: 14px; font-size: 14px; }
.activity-document-list { display: grid; }
.activity-document-list a { display: grid; gap: 3px; padding: 9px 0; color: var(--ink); border-bottom: 1px solid var(--line); }
.activity-document-list a:first-child { padding-top: 0; }
.activity-document-list strong { font-size: 13px; overflow-wrap: anywhere; }
.activity-document-list span { color: var(--muted); font-size: 11px; }
.report-disclaimer { border-left: 4px solid var(--warn); }
.report-disclaimer p { max-width: 1100px; color: var(--muted); line-height: 1.65; }
.oa-address dt { background: var(--surface-soft); font-size: 12px; font-weight: 700; }
.oa-address dd { border-left: 1px solid var(--line); }
.document-list { display: grid; }
.document-list > a { display: grid; grid-template-columns: 160px minmax(230px, .7fr) minmax(300px, 1fr) 90px; align-items: start; gap: 13px; padding: 12px 0; color: var(--ink); border-bottom: 1px solid var(--line); }
.document-list > a:last-child { border-bottom: 0; }
.document-list strong, .document-list small { overflow-wrap: anywhere; }
.document-list small { margin: 0; }
.document-list time { color: var(--muted); font-size: 12px; }

.standalone-search { max-width: none; margin-bottom: 22px; }
.large-empty { padding: 70px 20px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.search-results { display: grid; gap: 18px; }
.search-group { background: var(--surface); border: 1px solid var(--line); }
.search-group h2 { display: flex; gap: 10px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.search-group h2 span { padding: 3px 7px; border-radius: 5px; background: var(--surface-blue); color: var(--brand); font-size: 12px; }
.search-result-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.search-result-list a { min-width: 0; display: grid; gap: 5px; padding: 14px 18px; color: var(--ink); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.search-result-list a:nth-child(2n) { border-right: 0; }
.search-result-list a:hover { background: var(--surface-soft); }
.search-result-list strong, .search-result-list span { overflow-wrap: anywhere; }
.search-result-list span { font-size: 13px; }
.search-result-list small { margin: 0; }

.protocol-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--line); }
.protocol-metrics > div, .protocol-metrics > a { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 16px 18px; color: var(--ink); border-right: 1px solid var(--line); }
.protocol-metrics strong { font-size: 22px; }
.protocol-metrics span { color: var(--muted); font-size: 12px; }
.protocol-metrics .protocol-check-cta { align-items: center; color: #fff; background: var(--brand); font-weight: 700; }
.protocol-filter { grid-template-columns: minmax(280px, 2fr) repeat(3, minmax(150px, 1fr)) auto; margin-bottom: 14px; }
.protocol-table { min-width: 960px; }
.protocol-check-form { display: grid; grid-template-columns: minmax(260px, 1.4fr) minmax(220px, 1fr) 190px auto; gap: 12px; align-items: end; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brand); }
.protocol-check-form .field small { min-height: 28px; }
.protocol-check-note { margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.protocol-check-form:has(.protocol-captcha) { grid-template-columns: minmax(240px, 1.3fr) minmax(200px, .8fr) 170px minmax(300px, auto) auto; }
.protocol-captcha { min-width: 300px; }
.check-errors { margin-top: 12px; padding: 11px 14px; border: 1px solid #ebc4c0; border-left: 4px solid var(--bad); background: var(--bad-bg); color: var(--bad); }
.check-errors p { margin: 0; font-size: 12px; }
.header-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.secondary-link, .export-link { display: inline-flex; min-height: 40px; align-items: center; padding: 8px 13px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink); background: var(--surface); font-size: 12px; font-weight: 700; }
.secondary-link:hover, .export-link:hover { color: var(--brand); border-color: var(--brand); }
.check-result { margin-top: 16px; padding: 18px 20px; border: 1px solid var(--line); border-left-width: 4px; background: var(--surface); }
.check-result:has(.export-link) { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.check-result strong { display: block; margin-bottom: 5px; font-size: 18px; }
.check-result-found { border-left-color: var(--brand); }
.check-result-clear { border-left-color: var(--good); background: var(--good-bg); }
.check-result-warning { border-left-color: var(--warn); background: var(--warn-bg); }
.check-result-danger { border-left-color: var(--bad); background: var(--bad-bg); }
.protocol-result-list { display: grid; margin-top: 16px; background: var(--surface); border: 1px solid var(--line); }
.protocol-check-card { border-bottom: 1px solid var(--line); }
.protocol-check-card:last-child { border-bottom: 0; }
.protocol-check-card > header { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(260px, 1.5fr) auto; gap: 18px; align-items: center; padding: 15px 18px; background: var(--surface-soft); }
.status-badge.risk-low { color: var(--good); background: var(--good-bg); border-color: #bdddc9; }
.status-badge.risk-medium { color: var(--warn); background: var(--warn-bg); border-color: #ead39f; }
.status-badge.risk-high { color: var(--bad); background: var(--bad-bg); border-color: #ebc4c0; }
.protocol-risk-summary { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.protocol-risk-summary > strong { width: 100%; font-size: 13px; }
.risk-factor { display: inline-flex; flex-direction: column; gap: 3px; padding: 7px 9px; border-left: 3px solid var(--line-strong); background: var(--surface-soft); font-size: 11px; }
.risk-factor-critical { border-left-color: var(--bad); background: var(--bad-bg); }
.risk-factor-warning { border-left-color: var(--warn); background: var(--warn-bg); }
.risk-factor-info, .risk-factor-positive { border-left-color: var(--good); background: var(--good-bg); }
.risk-factor-list { display: grid; gap: 8px; }
.risk-factor-list .risk-factor { padding: 12px 14px; font-size: 13px; }
.risk-factor-list .risk-factor span { color: var(--muted); }
.protocol-usage-list { padding: 0 18px; }
.protocol-usage-list > a { display: grid; grid-template-columns: 90px minmax(180px, .6fr) 90px minmax(200px, .8fr) minmax(260px, 1.2fr); gap: 12px; padding: 13px 0; color: var(--ink); border-bottom: 1px solid var(--line); }
.protocol-usage-list > a:last-child { border-bottom: 0; }
.protocol-usage-list > a:hover strong { color: var(--brand); }
.protocol-usage-list > a > span, .protocol-usage-list time { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.protocol-usage-list small, .protocol-usage-list p { margin: 0; color: var(--ink); font-size: 12px; line-height: 1.45; }
.protocol-usage-detailed { padding: 0; }
.protocol-usage-item { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.protocol-usage-item:last-child { border-bottom: 0; }
.usage-heading { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.usage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.usage-grid > div { min-width: 0; padding: 10px 11px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.usage-grid .usage-wide { grid-column: span 2; }
.usage-grid dt { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.usage-grid dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 12px; }
.usage-grid dd small { display: block; margin-top: 3px; color: var(--muted); }
.protocol-usage-item footer { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 9px; color: var(--muted); font-size: 10px; }
.protocol-timeline { border-left: 2px solid var(--line-strong); margin-left: 8px; }
.protocol-timeline > div { position: relative; padding: 0 0 18px 20px; }
.protocol-timeline > div::before { content: ''; position: absolute; left: -6px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.protocol-timeline time { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.protocol-timeline p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.protocol-result-list div { min-width: 0; }
.protocol-result-list strong, .protocol-result-list span { display: block; overflow-wrap: anywhere; }
.protocol-result-list div > span { margin-top: 3px; color: var(--muted); font-size: 12px; }

.classifier-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px; background: var(--surface); border: 1px solid var(--line); }
.classifier-metrics > div, .classifier-metrics > a { min-width: 0; padding: 16px 18px; color: var(--ink); border-right: 1px solid var(--line); }
.classifier-metrics > :last-child { border-right: 0; }
.classifier-metrics strong { display: block; font-size: 22px; }
.classifier-metrics span { color: var(--muted); font-size: 12px; }
.classifier-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 20px; background: var(--surface); border: 1px solid var(--line); }
.classifier-summary > div { padding: 15px 18px; border-right: 1px solid var(--line); }
.classifier-summary > div:last-child { border-right: 0; }
.classifier-summary strong { display: block; font-size: 22px; }
.classifier-summary span { color: var(--muted); font-size: 12px; }
.tnved-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.category-filter-row { display: flex; gap: 7px; margin-bottom: 10px; overflow-x: auto; }
.category-filter-row a, .year-switcher a { flex: 0 0 auto; padding: 7px 10px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 5px; font-size: 12px; }
.category-filter-row a.active, .year-switcher a.active { color: #fff; background: var(--ink); border-color: var(--ink); }
.classifier-search-panel { display: grid; grid-template-columns: minmax(280px, 2fr) repeat(4, minmax(140px, 1fr)) auto; gap: 10px; align-items: end; padding: 15px; background: var(--surface); border: 1px solid var(--line); }
.year-switcher { display: flex; gap: 7px; margin: 12px 0; }
.regulation-list { display: grid; background: var(--surface); border: 1px solid var(--line); }
.regulation-list > a { display: grid; grid-template-columns: 190px minmax(0, 1fr) 130px; gap: 18px; align-items: center; padding: 15px 18px; color: var(--ink); border-bottom: 1px solid var(--line); }
.regulation-list > a:last-child { border-bottom: 0; }
.regulation-list > a:hover { background: var(--surface-soft); }
.regulation-list > a > strong { color: var(--brand-dark); }
.regulation-list > a > span { overflow-wrap: anywhere; }
.regulation-list > a > div { text-align: right; }
.regulation-list b, .regulation-list small { display: block; }
.regulation-list small { color: var(--muted); font-size: 11px; }
.tnved-search-panel { display: grid; gap: 14px; padding: 17px; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brand); }
.tnved-search-panel textarea { width: 100%; resize: vertical; }
.segmented-fields { display: flex; flex-wrap: wrap; gap: 18px; }
.segmented-fields fieldset { margin: 0; padding: 0; border: 0; }
.segmented-fields legend { margin-bottom: 6px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.segmented-control { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 5px; overflow: hidden; }
.segmented-control label { cursor: pointer; }
.segmented-control input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.segmented-control span { display: block; padding: 7px 11px; border-right: 1px solid var(--line); font-size: 12px; }
.segmented-control label:last-child span { border-right: 0; }
.segmented-control input:checked + span { color: #fff; background: var(--ink); }
.tnved-selects { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)) auto auto; gap: 10px; align-items: end; }
.tnved-selects > a { padding: 9px 11px; text-align: center; }
.tnved-table { min-width: 1000px; }
.tnved-table th:nth-child(1) { width: 155px; }
.tnved-table th:nth-child(3), .tnved-table th:nth-child(4), .tnved-table th:nth-child(5) { width: 85px; }
.tnved-table th:nth-child(6) { width: 125px; }
.tnved-table th:nth-child(7) { width: 90px; }
.branch-notice { margin-bottom: 10px; padding: 10px 12px; color: var(--muted); background: var(--surface-blue); border: 1px solid var(--line); font-size: 12px; }
.classifier-filter { grid-template-columns: minmax(280px, 2fr) repeat(3, minmax(145px, 1fr)) auto; margin-bottom: 14px; }
.classifier-table { min-width: 820px; }
.classifier-table th:first-child { width: 180px; }
.classifier-table th:last-child { width: 110px; }
.classifier-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.classifier-product-grid > a { min-width: 0; display: grid; gap: 5px; padding: 14px; color: var(--ink); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.classifier-product-grid > a:hover { background: var(--surface-soft); }
.classifier-product-grid strong { overflow-wrap: anywhere; }
.classifier-product-grid span { color: var(--muted); font-size: 12px; }
.standards-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.standards-filter { grid-template-columns: minmax(280px, 2fr) repeat(4, minmax(145px, 1fr)) auto; }
.document-link-list { display: grid; }
.document-link-list > a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 13px 0; color: var(--ink); border-bottom: 1px solid var(--line); }
.document-link-list > a:last-child { border-bottom: 0; }
.document-link-list > a:hover strong { color: var(--brand); }
.document-link-list div { min-width: 0; display: grid; gap: 4px; }
.document-link-list strong, .document-link-list small { overflow-wrap: anywhere; }
.document-link-list div > span, .document-link-list time { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.inline-document-filter { display: flex; gap: 8px; align-items: end; }
.inline-document-filter label { display: grid; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 700; }
.inline-document-filter select { min-width: 125px; }
.inline-document-filter button { padding: 8px 11px; }
.document-link-list small { margin: 0; }

/* Certificate and declaration passport */
.record-detail-main { width: 100%; max-width: none; padding: 20px 24px 60px; }
.record-detail-main > .breadcrumbs { display: none; }
.record-document { width: 100%; }
.record-layout { width: 100%; max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; margin: 0; }
.record-content { min-width: 0; display: grid; gap: 14px; }
.record-passport, .document-section, .record-navigation { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 3px 14px rgba(23, 32, 42, .04); }
.record-passport { overflow: hidden; }
.record-passport-toolbar { min-height: 48px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 16px; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.back-to-registry, .record-passport .record-header-actions a { min-height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--surface); font-size: 11px; font-weight: 750; white-space: nowrap; }
.back-to-registry:hover, .record-passport .record-header-actions a:hover { color: var(--brand-dark); border-color: var(--brand); background: var(--surface-blue); }
.back-to-registry svg, .record-passport .record-header-actions svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.record-passport .record-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.record-passport .status-badge { max-width: none; white-space: nowrap; }
.record-passport-main { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: center; padding: 22px 24px; }
.record-identity { min-width: 0; }
.record-identity .eyebrow { margin-bottom: 7px; font-size: 10px; }
.record-number-row { min-width: 0; display: flex; align-items: flex-start; gap: 9px; }
.record-number-row h1 { min-width: 0; font-size: 25px; overflow-wrap: anywhere; }
.copy-button { width: 34px; min-width: 34px; height: 34px; min-height: 34px; display: grid; place-items: center; padding: 0; color: var(--muted); border-color: var(--line); background: var(--surface); box-shadow: none; }
.copy-button:hover, .copy-button.is-copied { color: var(--brand-dark); border-color: var(--brand); background: var(--surface-blue); }
.copy-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.passport-risk { padding: 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-soft); }
.passport-risk > div:first-child { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.passport-risk > div:first-child span { color: var(--muted); font-size: 10px; font-weight: 750; }
.passport-risk > div:first-child strong { font-size: 12px; }
.passport-risk.risk-low > div:first-child strong { color: var(--good); }
.passport-risk.risk-medium > div:first-child strong { color: var(--warn); }
.passport-risk.risk-high > div:first-child strong { color: var(--bad); }
.passport-risk-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.passport-risk-counts span { display: grid; gap: 1px; padding: 7px 5px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); text-align: center; font-size: 8px; }
.passport-risk-counts b { font-size: 14px; }
.passport-risk-counts .good { color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, var(--line)); background: var(--good-bg); }
.passport-risk-counts .warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); background: var(--warn-bg); }
.passport-risk-counts .bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); background: var(--bad-bg); }
.passport-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.passport-facts > div { min-width: 0; padding: 13px 18px; border-right: 1px solid var(--line); }
.passport-facts > div:last-child { border-right: 0; }
.passport-facts dt { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.passport-facts dt svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.passport-facts dd { margin: 5px 0 0; font-size: 12px; font-weight: 800; overflow-wrap: anywhere; }
.passport-regulations { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 14px; align-items: start; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.passport-regulations > span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.passport-regulations > div { display: flex; flex-wrap: wrap; gap: 7px; }
.passport-regulations a, .passport-regulations div > span { padding: 5px 8px; border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line)); border-radius: 5px; background: var(--surface-blue); color: var(--brand-dark); font-size: 10px; font-weight: 750; }
.passport-assessment { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 18px; }
.passport-assessment > div { min-width: 0; display: grid; grid-template-columns: 35px minmax(0, 1fr); gap: 11px; align-items: start; }
.passport-assessment > div > svg { width: 34px; height: 34px; padding: 7px; border-radius: 6px; color: var(--brand); background: var(--surface-blue); fill: none; stroke: currentColor; stroke-width: 2; }
.passport-assessment strong { display: block; font-size: 12px; }
.passport-assessment p { margin-top: 3px; color: var(--muted); font-size: 11px; }
.passport-assessment small { margin-top: 3px; font-size: 9px; }
.passport-assessment > a { flex: 0 0 auto; min-height: 34px; display: inline-flex; align-items: center; padding: 7px 11px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink); font-size: 10px; font-weight: 750; }

.document-section { scroll-margin-top: 88px; overflow: clip; }
.document-section-toggle { width: 100%; min-height: 50px; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 16px; border: 0; border-radius: 0; background: var(--surface); color: var(--ink); box-shadow: none; text-align: left; }
.document-section-toggle:hover { background: var(--surface-soft); color: var(--brand-dark); }
.document-section-toggle > span { min-width: 0; display: flex; align-items: center; gap: 10px; }
.document-section-toggle h2 { font-size: 15px; }
.document-section-toggle svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.document-section-toggle > span > svg { color: var(--brand); }
.section-chevron { width: 17px !important; height: 17px !important; color: var(--muted); transition: transform .18s ease; }
.document-section.is-collapsed .section-chevron { transform: rotate(-90deg); }
.document-section-content { padding: 2px 18px 18px; border-top: 1px solid var(--line); }
.document-section-content[hidden] { display: none; }
.document-section-content > .risk-section { padding-top: 18px; }
.document-section-content .risk-disclaimer { background: var(--surface-soft); }
.section-detail-link { display: inline-flex; margin-top: 14px; padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 11px; font-weight: 750; }
.entity-detail-grid, .record-fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.entity-detail-grid > div, .record-fact-grid > div { min-width: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.entity-detail-grid > div:nth-child(odd), .record-fact-grid > div:nth-child(odd) { padding-right: 18px; }
.entity-detail-grid > div:nth-child(even), .record-fact-grid > div:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
.entity-detail-grid > div:nth-last-child(-n+2), .record-fact-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
.entity-detail-grid .entity-primary, .entity-detail-grid .entity-wide { grid-column: 1 / -1; padding-left: 0; padding-right: 0; border-left: 0; }
.entity-detail-grid span, .record-fact-grid dt, .product-description > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.entity-detail-grid strong, .entity-detail-grid a, .entity-detail-grid p, .record-fact-grid dd { display: block; margin: 0; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; white-space: pre-line; }
.entity-detail-grid .entity-primary a, .entity-detail-grid .entity-primary strong { color: var(--brand-dark); font-size: 14px; }
.product-description { padding: 15px 0; }
.product-description p { white-space: pre-line; }
.linked-product-list, .regulation-card-list, .entity-card-list, .expert-chip-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 14px; }
.linked-product-list > a, .regulation-card-list > a, .regulation-card-list > div, .entity-card-list > a, .expert-chip-list > a { min-width: 0; display: grid; gap: 5px; padding: 12px; color: var(--ink); border: 1px solid var(--line); border-radius: 7px; background: var(--surface-soft); }
.linked-product-list > a:hover, .regulation-card-list > a:hover, .entity-card-list > a:hover, .expert-chip-list > a:hover { border-color: var(--brand); background: var(--surface-blue); }
.linked-product-list span, .regulation-card-list span, .entity-card-list span, .expert-chip-list span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.linked-product-list strong, .regulation-card-list strong, .entity-card-list strong, .expert-chip-list strong { font-size: 11px; overflow-wrap: anywhere; }
.regulation-card-list > a { grid-template-columns: minmax(0, 1fr) 15px; }
.regulation-card-list > a strong, .regulation-card-list > a span { grid-column: 1; }
.regulation-card-list > a svg { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.entity-card-list > a dl { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 4px 0 0; }
.entity-card-list dt { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.entity-card-list dd { margin: 2px 0 0; font-size: 10px; font-weight: 750; }
.document-section .protocol-result-list { margin-top: 14px; border-color: var(--line); }
.document-section .protocol-result-list > a { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; color: var(--ink); border-bottom: 1px solid var(--line); }
.document-section .protocol-result-list > a:last-child { border-bottom: 0; }
.record-navigation { position: sticky; top: 88px; overflow: hidden; }
.record-navigation-heading { display: grid; gap: 2px; padding: 14px; border-bottom: 1px solid var(--line); }
.record-navigation-heading span { color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.record-navigation-heading strong { font-size: 13px; }
.record-navigation nav { display: grid; padding: 7px; }
.record-navigation nav a { padding: 7px 9px; border-left: 2px solid transparent; border-radius: 0 5px 5px 0; color: var(--muted); font-size: 11px; font-weight: 650; }
.record-navigation nav a:hover, .record-navigation nav a.active { color: var(--brand-dark); border-left-color: var(--brand); background: var(--surface-blue); }
.record-navigation-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 9px; border-top: 1px solid var(--line); }
.record-navigation-actions button { min-height: 31px; padding: 5px 7px; border-color: var(--line); background: var(--surface); color: var(--muted); font-size: 9px; font-weight: 750; box-shadow: none; }
.record-navigation-actions button:hover { color: var(--brand-dark); border-color: var(--brand); background: var(--surface-blue); }
.record-to-top { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 750; }
.record-to-top svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.record-detail-page .site-footer { margin-top: 0; }

/* Full-width document registry workspace */
.registry-workspace-page { overflow: hidden; }
.registry-workspace-page .site-footer { display: none; }
.registry-workspace-main { width: 100%; height: calc(100vh - 68px); min-height: 620px; padding: 0; overflow: hidden; }
.registry-workspace-main > .breadcrumbs { display: none; }
.document-workspace { height: 100%; display: flex; flex-direction: column; background: var(--surface-soft); }
.registry-toolbar { min-height: 62px; display: grid; grid-template-columns: 250px minmax(280px, 1fr) 88px 40px auto auto; gap: 8px; align-items: center; padding: 9px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.registry-toolbar-title { min-width: 0; }
.registry-toolbar-title > div { display: flex; align-items: center; gap: 8px; }
.registry-toolbar-title h1 { font-size: 18px; white-space: nowrap; }
.registry-toolbar-title small { margin: 1px 0 0; font-size: 11px; }
.source-badge { padding: 2px 6px; border-radius: 5px; background: var(--surface-blue); color: var(--brand-dark); font-size: 9px; font-weight: 850; letter-spacing: 0; }
.registry-toolbar-search { position: relative; min-width: 0; }
.registry-toolbar-search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; translate: 0 -50%; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 2; pointer-events: none; }
.registry-toolbar-search input { min-height: 38px; padding-left: 38px; background: var(--surface-soft); }
.page-size-select { min-height: 38px; padding: 7px 9px; font-size: 12px; }
.icon-button, .toolbar-button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: var(--ink); box-shadow: none; font-size: 12px; font-weight: 700; }
.icon-button { width: 40px; padding: 0; }
.icon-button:hover, .toolbar-button:hover { border-color: var(--brand); background: var(--surface-blue); color: var(--brand-dark); }
.toolbar-button.is-disabled { opacity: .42; pointer-events: none; }
.icon-button svg, .toolbar-button svg, .registry-scope-bar svg, .registry-actions svg, .document-preview svg, .status-indicator svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.registry-scope-bar { min-height: 43px; display: flex; align-items: center; gap: 8px; padding: 6px 16px; border-bottom: 1px solid var(--line); background: var(--surface); overflow-x: auto; }
.scope-label { display: inline-flex; align-items: center; gap: 6px; margin-right: 3px; color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.scope-country { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.scope-country svg { width: 13px; height: 13px; }
.scope-country.active { color: var(--brand-dark); border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); background: var(--surface-blue); }
.scope-note { margin-left: auto; color: var(--muted); font-size: 11px; }

.marking-assessment { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 15px; padding: 17px; border: 1px solid var(--line); border-left: 4px solid var(--muted); border-radius: 6px; background: var(--surface-soft); }
.marking-assessment.marking-possible { border-left-color: var(--warn); background: color-mix(in srgb, var(--warn-bg) 58%, var(--surface)); }
.marking-assessment.marking-not_found { border-left-color: var(--good); background: color-mix(in srgb, var(--good-bg) 54%, var(--surface)); }
.marking-assessment-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--brand); }
.marking-assessment-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.marking-assessment-body { min-width: 0; }
.marking-assessment-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.marking-assessment-heading > div > span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.marking-assessment-heading strong { display: block; font-size: 17px; }
.marking-status { flex: 0 0 auto; padding: 4px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.marking-possible .marking-status { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.marking-not_found .marking-status { color: var(--good); border-color: color-mix(in srgb, var(--good) 45%, var(--line)); }
.marking-assessment-body > p { margin-top: 7px; color: var(--muted); font-size: 13px; }
.marking-codes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.marking-codes > span { margin-right: 3px; color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.marking-codes code { padding: 4px 7px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font-size: 11px; }
.marking-matches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 12px; }
.marking-matches > div { display: flex; align-items: flex-start; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.marking-matches svg, .marking-disclaimer svg, .marking-source svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; }
.marking-matches svg { color: var(--warn); }
.marking-matches strong { display: block; font-size: 12px; }
.marking-matches small { margin-top: 2px; font-size: 10px; }
.marking-disclaimer { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.marking-disclaimer svg { margin-top: 1px; color: var(--brand); }
.marking-disclaimer p { font-size: 11px; }
.marking-source { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; color: var(--muted); font-size: 10px; }
.marking-source a { display: inline-flex; align-items: center; gap: 5px; font-weight: 750; }
.marking-source svg { width: 13px; height: 13px; }
.filter-drawer { display: grid; grid-template-columns: repeat(5, minmax(140px, 1fr)) auto; gap: 10px; align-items: end; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); box-shadow: 0 7px 18px rgba(0,0,0,.06); }
.filter-drawer[hidden] { display: none; }
.filter-drawer input, .filter-drawer select, .filter-drawer button { min-height: 36px; }
.registry-command-bar { min-height: 48px; display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 6px 12px 6px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.registry-command-bar .quick-filter-row { min-width: 0; padding: 0; }
.registry-command-bar .quick-filter-row a { min-height: 32px; display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 16px; font-size: 11px; font-weight: 700; }
.registry-command-bar .quick-filter-row a.active, .registry-command-bar .quick-filter-row a:hover { background: #087f9f; border-color: #087f9f; }
.registry-command-bar .registry-actions { flex: 0 0 auto; margin: 0; }
.registry-actions a, .registry-actions button { min-height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 7px; font-size: 11px; font-weight: 750; box-shadow: none; }
.registry-actions a:hover, .registry-actions button:hover { color: var(--brand-dark); border-color: var(--brand); background: var(--surface-blue); }
.registry-actions .primary-action { color: #fff; border-color: #087f9f; background: #087f9f; }
.registry-actions .primary-action:hover { color: #fff; border-color: #06677f; background: #06677f; }
.registry-actions b { min-width: 17px; height: 17px; display: grid; place-items: center; border-radius: 9px; background: var(--surface-blue); color: var(--brand-dark); font-size: 9px; }
.view-switch { display: flex; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.view-switch button { min-width: 31px; min-height: 28px; padding: 4px 6px; border: 0; }
.view-switch button.active { color: #fff; background: var(--brand); }
.document-workspace-grid { min-height: 0; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 370px; }
.document-workspace-grid.preview-is-closed { grid-template-columns: minmax(0, 1fr); }
.document-workspace-grid.preview-is-closed .document-preview { display: none; }
.registry-table-panel { min-width: 0; min-height: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.workspace-table-wrap { min-height: 0; flex: 1; border: 0; }
.workspace-document-table { min-width: 1430px; font-size: 11px; }
.workspace-document-table th { position: sticky; z-index: 4; padding: 7px 9px; background: var(--surface); font-size: 9px; }
.workspace-document-table .column-title-row th { top: 0; height: 34px; }
.workspace-document-table .column-filter-row th { top: 34px; height: 42px; padding: 4px 7px 7px; border-bottom: 1px solid var(--line-strong); }
.workspace-document-table .column-filter-row input, .workspace-document-table .column-filter-row select { min-height: 30px; padding: 5px 7px; border-color: var(--line); background: var(--surface-soft); border-radius: 5px; font-size: 10px; }
.date-filter-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.workspace-document-table td { height: 62px; padding: 8px 9px; line-height: 1.32; }
.workspace-document-table tbody tr { cursor: pointer; }
.workspace-document-table tbody tr.is-selected { background: var(--surface-blue); box-shadow: inset 3px 0 0 var(--brand); }
.workspace-document-table tbody tr:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.workspace-document-table th:nth-child(1) { width: 42px; }
.workspace-document-table th:nth-child(2) { width: 56px; }
.workspace-document-table th:nth-child(3) { width: 220px; }
.workspace-document-table th:nth-child(4), .workspace-document-table th:nth-child(5) { width: 98px; }
.workspace-document-table th:nth-child(6), .workspace-document-table th:nth-child(7) { width: 200px; }
.workspace-document-table th:nth-child(8) { width: 205px; }
.workspace-document-table th:nth-child(9) { width: 285px; }
.select-column { text-align: center !important; }
.select-column input { width: 16px; min-height: 16px; height: 16px; accent-color: var(--brand); }
.status-indicator { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
.status-indicator svg { width: 19px; height: 19px; }
.workspace-document-table .status-indicator > span { display: none; }
.status-indicator.status-active { color: var(--good); }
.status-indicator.status-suspended { color: var(--warn); }
.status-indicator.status-expired, .status-indicator.status-terminated, .status-indicator.status-invalid { color: var(--bad); }
.workspace-document-table .record-link { color: var(--brand-dark); font-size: 11px; }
.workspace-document-table small { margin-top: 3px; font-size: 9px; line-height: 1.25; }
.workspace-document-table .testing-cell > a { margin-bottom: 3px; }
.workspace-document-table .testing-cell > a span, .workspace-document-table .testing-cell > small { font-size: 9px; }
.workspace-pagination { min-height: 52px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 14px; border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 11px; }
.workspace-pagination .pagination { justify-content: flex-end; margin: 0; }
.workspace-pagination .pagination a, .workspace-pagination .pagination .disabled { padding: 6px 10px; }
.document-preview { min-width: 0; overflow-y: auto; background: var(--surface); }
.document-preview > header { position: sticky; top: 0; z-index: 3; min-height: 47px; display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 96%, transparent); }
.document-preview > header > span { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.document-preview > header button { width: 30px; min-height: 30px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 20px; }
.preview-empty { padding: 30px 16px; color: var(--muted); text-align: center; }
.preview-document-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); }
.preview-document-heading h2 { max-width: 245px; font-size: 16px; overflow-wrap: anywhere; }
.preview-validity { margin: 12px 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-soft); }
.preview-validity > span { display: block; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.preview-validity strong { display: block; margin-top: 4px; font-size: 12px; }
.preview-content > section { margin: 12px 14px; padding: 13px; border: 1px solid var(--line); border-radius: 7px; }
.preview-content > section > strong { display: block; font-size: 12px; }
.preview-content > section > small { margin-top: 7px; font-size: 10px; }
.preview-section-title { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.preview-content dl { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 10px 0 0; }
.preview-content dl > div { padding: 7px; border-radius: 5px; background: var(--surface-soft); }
.preview-content dt { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.preview-content dd { margin: 2px 0 0; font-size: 10px; font-weight: 750; overflow-wrap: anywhere; }
.preview-content section a { display: grid; gap: 2px; }
.preview-content section a span { color: var(--muted); font-size: 10px; }
.preview-content section p { font-size: 11px; }
.risk-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.risk-mini-grid > div { padding: 7px; border: 1px solid var(--line); border-radius: 6px; text-align: center; }
.risk-mini-grid strong, .risk-mini-grid span { display: block; }
.risk-mini-grid strong { font-size: 15px; }
.risk-mini-grid span { color: var(--muted); font-size: 8px; }
.risk-mini-grid .good { color: var(--good); border-color: color-mix(in srgb, var(--good) 45%, var(--line)); background: var(--good-bg); }
.risk-mini-grid .warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); background: var(--warn-bg); }
.preview-risk > a { margin-top: 9px; padding: 7px 9px; border-radius: 5px; background: var(--brand); color: #fff; text-align: center; font-size: 10px; font-weight: 750; }
.preview-open-button { display: block; margin: 12px 14px 18px; padding: 10px 12px; border-radius: 7px; background: var(--brand); color: #fff; text-align: center; font-size: 11px; font-weight: 800; }
.preview-open-button:hover { color: #fff; background: var(--brand-dark); }
.comparison-panel { padding: 14px; }
.comparison-panel h2 { margin-bottom: 10px; font-size: 16px; }
.comparison-panel article { display: grid; gap: 4px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.comparison-panel article a { font-size: 11px; font-weight: 800; overflow-wrap: anywhere; }
.comparison-panel article span { color: var(--muted); font-size: 9px; }
.comparison-panel article p { font-size: 10px; }

.feed-view .workspace-table-wrap { padding: 12px; }
.feed-view .workspace-document-table { min-width: 0; display: block; }
.feed-view .workspace-document-table thead { display: none; }
.feed-view .workspace-document-table tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.feed-view .workspace-document-table tbody tr { position: relative; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.feed-view .workspace-document-table tbody td { height: auto; min-width: 0; padding: 7px; border: 0; }
.feed-view .workspace-document-table tbody td::before { content: attr(data-label); display: block; margin-bottom: 3px; color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.feed-view .workspace-document-table tbody .select-column { position: absolute; right: 9px; top: 9px; }
.feed-view .workspace-document-table tbody .select-column::before { display: none; }
.feed-view .workspace-document-table tbody td:nth-child(3), .feed-view .workspace-document-table tbody td:nth-child(8), .feed-view .workspace-document-table tbody td:nth-child(9) { grid-column: 1 / -1; }

@media (max-width: 1050px) {
    .record-layout { grid-template-columns: minmax(0, 1fr); }
    .record-navigation { position: sticky; z-index: 20; top: 116px; grid-row: 1; display: flex; align-items: stretch; overflow: hidden; }
    .record-navigation-heading { flex: 0 0 130px; justify-content: center; }
    .record-navigation nav { min-width: 0; flex: 1; display: flex; align-items: center; overflow-x: auto; }
    .record-navigation nav a { flex: 0 0 auto; border-left: 0; border-bottom: 2px solid transparent; border-radius: 5px 5px 0 0; white-space: nowrap; }
    .record-navigation nav a:hover, .record-navigation nav a.active { border-left-color: transparent; border-bottom-color: var(--brand); }
    .record-navigation-actions { flex: 0 0 150px; align-content: center; border-top: 0; border-left: 1px solid var(--line); }
    .record-to-top { width: 38px; flex: 0 0 38px; padding: 8px; border-top: 0; border-left: 1px solid var(--line); font-size: 0; }
}

[data-theme="dark"] .registry-table th { background: #101e2a; color: #9dabb8; }
[data-theme="dark"] .registry-table tbody tr:hover { background: #0f2230; }
[data-theme="dark"] .status-badge { color: #aeb9c4; background: #172532; border-color: var(--line-strong); }
[data-theme="dark"] .risk-disclaimer { background: #111f2b; }
[data-theme="dark"] .factor-mark { background: #172532; }
[data-theme="dark"] .site-footer { background: #050d14; }
[data-theme="dark"] .notice-band { color: var(--ink); }

@media (max-width: 1380px) {
    .brand > span:last-child { display: none; }
    .main-nav a { padding-left: 9px; padding-right: 9px; }
    .header-search { width: min(350px, 28vw); }
}

@media (max-width: 1180px) {
    .header-row { flex-wrap: wrap; gap: 0 14px; padding-top: 10px; padding-bottom: 10px; }
    .main-nav { order: 3; width: 100%; height: 38px; overflow-x: auto; }
    .main-nav a { flex: 0 0 auto; }
    .header-search { margin-left: auto; width: min(360px, 40vw); }
    .filter-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .document-filter, .ral-filter, .classifier-search-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tnved-selects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .protocol-filter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .classifier-filter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .protocol-check-form { grid-template-columns: 1fr 1fr; }
    .protocol-check-form:has(.protocol-captcha) { grid-template-columns: 1fr 1fr; }
    .field-wide { grid-column: span 2; }
    .filter-actions { grid-column: auto; }
    .record-tabs { top: 112px; }
    .detail-section { scroll-margin-top: 170px; }
    .registry-workspace-main { height: calc(100vh - 116px); }
    .registry-toolbar { grid-template-columns: 210px minmax(240px, 1fr) 82px 40px auto auto; }
    .registry-toolbar-title h1 { font-size: 16px; }
    .document-workspace-grid { grid-template-columns: minmax(0, 1fr) 330px; }
    .registry-actions span { display: none; }
}

@media (max-width: 800px) {
    h1 { font-size: 30px; }
    .site-main { padding: 18px 12px 36px; }
    .header-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px 38px; gap: 8px; padding: 8px 12px; }
    .brand > span:last-child { display: none; }
    .brand { grid-column: 1; grid-row: 1; }
    .header-search { grid-column: 2; grid-row: 1; width: 100%; margin: 0; }
    .admin-link { grid-column: 3; grid-row: 1; width: 38px; min-width: 38px; padding: 0; justify-content: center; }
    .admin-link span { display: none; }
    .theme-toggle { grid-column: 4; grid-row: 1; width: 38px; min-width: 38px; height: 38px; min-height: 38px; }
    .main-nav { grid-column: 1 / -1; grid-row: 2; width: 100%; order: initial; }
    .search-surface { min-height: 210px; padding: 24px 18px; }
    .metric-strip { grid-template-columns: repeat(2, 1fr); }
    .metric-strip a { border-bottom: 1px solid var(--line); }
    .registry-directory { grid-template-columns: 1fr 1fr; }
    .latest-grid, .party-grid, .relation-columns, .search-result-list, .classifier-product-grid { grid-template-columns: 1fr; }
    .standards-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .protocol-metrics { grid-template-columns: 1fr 1fr; }
    .classifier-metrics { grid-template-columns: 1fr 1fr; }
    .protocol-check-form { grid-template-columns: 1fr 1fr; }
    .search-result-list a { border-right: 0; }
    .filter-bar, .compact-filter { grid-template-columns: 1fr 1fr; }
    .document-filter, .ral-filter, .classifier-search-panel, .tnved-selects { grid-template-columns: 1fr 1fr; }
    .field-wide { grid-column: 1 / -1; }
    .filter-actions { grid-column: 1 / -1; }
    .detail-grid { grid-template-columns: 1fr 1fr; }
    .detail-span { grid-column: 1 / -1; }
    .document-list > a { grid-template-columns: 1fr; gap: 6px; }
    .protocol-check-card > header, .protocol-usage-list > a { grid-template-columns: 1fr; gap: 7px; }
    .usage-grid { grid-template-columns: 1fr 1fr; }
    .record-header { padding: 18px; }
    .record-tabs { top: 112px; }
    .site-footer { align-items: flex-start; flex-direction: column; padding: 22px 16px; }
    .site-footer nav { width: 100%; flex-wrap: wrap; row-gap: 10px; }
    .regulation-list > a { grid-template-columns: 150px minmax(0, 1fr); }
    .regulation-list > a > div { grid-column: 2; text-align: left; }
    .record-header-actions { flex-wrap: wrap; }
    .risk-check-form { grid-template-columns: 1fr 2fr; }
    .risk-check-form button { grid-column: 1 / -1; }
    .insight-strip { grid-template-columns: 1fr 1fr; }
    .market-period { grid-template-columns:repeat(3,minmax(0,1fr)); }.market-period > div:nth-child(3) { border-right:0; }.market-period > div:nth-child(-n+3) { border-bottom:1px solid var(--line); }
    .insight-strip > div:nth-child(2) { border-right: 0; }
    .insight-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .status-history-list > a { grid-template-columns: 80px minmax(0, 1fr) auto; }
    .status-history-list small { grid-column: 2 / -1; }
    .registry-workspace-page { overflow: auto; }
    .registry-workspace-main { height: auto; min-height: calc(100vh - 116px); overflow: visible; }
    .document-workspace { min-height: calc(100vh - 116px); }
    .registry-toolbar { grid-template-columns: minmax(0, 1fr) 74px 38px auto; padding: 9px 10px; }
    .registry-toolbar-title { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
    .registry-toolbar-search { grid-column: 1 / -1; grid-row: 2; }
    .page-size-select { grid-column: 1; grid-row: 3; }
    .registry-toolbar .icon-button { grid-column: 2; grid-row: 3; }
    .registry-toolbar > .toolbar-button { grid-row: 3; }
    .scope-note { display: none; }
    .filter-drawer { grid-template-columns: 1fr 1fr; }
    .filter-drawer button { grid-column: 1 / -1; }
    .registry-command-bar { align-items: stretch; flex-direction: column; }
    .registry-command-bar .registry-actions { overflow-x: auto; justify-content: flex-start; }
    .registry-actions span { display: inline; }
    .document-workspace-grid { display: block; }
    .registry-table-panel { min-height: 650px; border-right: 0; }
    .workspace-table-wrap { min-height: 590px; }
    .document-preview { position: fixed; z-index: 60; inset: 76px 0 0 12%; border-left: 1px solid var(--line); box-shadow: -18px 0 40px rgba(0,0,0,.28); }
    .document-workspace-grid.preview-is-closed .document-preview { display: none; }
    .workspace-pagination { flex-direction: column; align-items: stretch; }
    .workspace-pagination .pagination { justify-content: space-between; }
    .feed-view .workspace-document-table tbody { grid-template-columns: 1fr; }
    .record-detail-main { padding: 12px 12px 86px; }
    .record-layout { gap: 10px; }
    .record-navigation { top: 116px; order: -1; }
    .record-navigation-heading, .record-navigation-actions, .record-to-top { display: none; }
    .record-navigation nav { padding: 5px; }
    .record-navigation nav a { padding: 7px 9px; font-size: 10px; }
    .record-passport-toolbar { align-items: flex-start; flex-direction: column; }
    .record-passport .record-header-actions { width: 100%; justify-content: flex-start; overflow-x: auto; }
    .record-passport-main { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 18px; }
    .record-number-row h1 { font-size: 21px; }
    .passport-facts { grid-template-columns: 1fr 1fr; }
    .passport-facts > div { border-bottom: 1px solid var(--line); }
    .passport-facts > div:nth-child(2) { border-right: 0; }
    .passport-facts > div:last-child { grid-column: 1 / -1; border-bottom: 0; }
    .passport-regulations { grid-template-columns: 1fr; gap: 8px; }
    .passport-assessment { align-items: flex-start; flex-direction: column; }
    .document-section { scroll-margin-top: 170px; }
    .entity-detail-grid, .record-fact-grid { grid-template-columns: 1fr; }
    .entity-detail-grid > div, .record-fact-grid > div, .entity-detail-grid > div:nth-child(odd), .record-fact-grid > div:nth-child(odd), .entity-detail-grid > div:nth-child(even), .record-fact-grid > div:nth-child(even) { padding: 12px 0; border-left: 0; border-bottom: 1px solid var(--line); }
    .entity-detail-grid > div:last-child, .record-fact-grid > div:last-child { border-bottom: 0; }
    .linked-product-list, .regulation-card-list, .entity-card-list, .expert-chip-list { grid-template-columns: 1fr; }
    .marking-matches { grid-template-columns: 1fr; }
    .document-section .protocol-result-list > a { grid-template-columns: 1fr; gap: 7px; }
    .portfolio-summary { grid-template-columns: 92px minmax(0, 1fr); }
    .portfolio-summary dl { grid-column: 1 / -1; }
    .report-grid, .report-recommendations, .report-activity-grid { grid-template-columns: 1fr; }
    .accreditation-history-metrics, .report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .accreditation-history-metrics > div:nth-child(2), .report-metrics > div:nth-child(2) { border-right: 0; }
}

@media (max-width: 520px) {
    h1 { font-size: 25px; }
    .primary-search { grid-template-columns: 1fr; gap: 8px; }
    .primary-search input, .primary-search button { border-radius: 6px; }
    .registry-directory, .metric-strip, .filter-bar, .compact-filter, .detail-grid { grid-template-columns: 1fr; }
    .document-filter, .ral-filter, .classifier-search-panel, .tnved-selects, .classifier-summary, .tnved-summary { grid-template-columns: 1fr; }
    .protocol-metrics, .protocol-filter, .protocol-check-form, .classifier-metrics, .classifier-filter { grid-template-columns: 1fr; }
    .protocol-check-form:has(.protocol-captcha) { grid-template-columns: 1fr; }
    .field-wide, .filter-actions, .detail-grid .detail-span { grid-column: 1; }
    .registry-header, .record-header { align-items: stretch; flex-direction: column; }
    .official-link { align-self: flex-start; }
    .accreditation-history-metrics, .report-metrics, .report-grid, .portfolio-summary { grid-template-columns: 1fr; }
    .accreditation-history-metrics > div, .report-metrics > div { border-right: 0; border-bottom: 1px solid var(--line); }
    .accreditation-history-metrics > div:last-child, .report-metrics > div:last-child { border-bottom: 0; }
    .accreditation-timeline::before { left: 5px; }
    .accreditation-event { grid-template-columns: 1fr; gap: 8px; padding-left: 24px; }
    .event-date { text-align: left; }
    .event-date span { left: -24px; right: auto; }
    .portfolio-summary dl { grid-template-columns: 1fr; }
    .portfolio-summary dl > div, .portfolio-summary dl > div:nth-child(even), .portfolio-summary dl > div:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
    .portfolio-summary dl > div:last-child { border-bottom: 0; }
    .report-actions { justify-content: flex-start; }
    .report-bars > div { grid-template-columns: minmax(90px, .7fr) minmax(100px, 1fr) 34px; gap: 7px; }
    .marking-assessment { grid-template-columns: 1fr; }
    .marking-assessment-heading, .marking-source { align-items: flex-start; flex-direction: column; }
    .oa-address dl { grid-template-columns: 1fr; }
    .oa-address dd { border-left: 0; }
    .notice-band { align-items: flex-start; flex-wrap: wrap; }
    .notice-band a { width: 100%; margin-left: 0; }
    .risk-check-form, .insight-grid, .insight-strip, .market-grid, .market-period { grid-template-columns: 1fr; }
    .insight-filter { display:grid; grid-template-columns:1fr; }.insight-filter select,.insight-filter button,.insight-filter > a { width:100%; }.market-period > div { border-right:0; border-bottom:1px solid var(--line); }.market-period > div:last-child { border-bottom:0; }.market-chart > div { grid-template-columns:65px minmax(0,1fr) 55px; }
    .usage-grid { grid-template-columns: 1fr; }
    .usage-grid .usage-wide { grid-column: 1; }
    .check-result:has(.export-link) { align-items: flex-start; flex-direction: column; }
    .risk-check-form button { grid-column: 1; }
    .risk-summary { grid-template-columns: 1fr; }
    .risk-score { width: 64px; height: 64px; }
    .risk-document-header, .section-heading-inline { align-items: flex-start; flex-direction: column; }
    .diagnostic-guide > div { grid-template-columns: 34px minmax(0, 1fr); }
    .insight-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
    .insight-strip > div:last-child { border-bottom: 0; }
    .status-history-list > a { grid-template-columns: 1fr; }
    .status-history-list small { grid-column: 1; }
    .regulation-list > a { grid-template-columns: 1fr; gap: 7px; }
    .regulation-list > a > div { grid-column: 1; }
    .inline-document-filter { width: 100%; flex-wrap: wrap; }
    .brand-mark { width: 38px; height: 38px; }
    .theme-toggle { width: 38px; min-width: 38px; height: 38px; min-height: 38px; }
    .admin-link { min-width: 38px; width: 38px; padding: 0; justify-content: center; }
    .admin-link span { display: none; }
    .filter-drawer { grid-template-columns: 1fr; }
    .filter-drawer button { grid-column: 1; }
    .registry-scope-bar { overflow-x: auto; }
    .registry-command-bar .quick-filter-row { width: 100%; }
    .document-preview { inset-left: 0; left: 0; }
    .record-detail-main { padding-left: 8px; padding-right: 8px; }
    .record-passport-toolbar, .record-passport-main, .document-section-content { padding-left: 13px; padding-right: 13px; }
    .record-passport .record-header-actions a { padding-left: 7px; padding-right: 7px; }
    .record-passport .record-header-actions a:nth-of-type(1) { font-size: 0; }
    .record-passport .record-header-actions a:nth-of-type(1) svg { margin: 0; }
    .passport-facts { grid-template-columns: 1fr; }
    .passport-facts > div, .passport-facts > div:nth-child(2), .passport-facts > div:last-child { grid-column: 1; border-right: 0; border-bottom: 1px solid var(--line); }
    .passport-facts > div:last-child { border-bottom: 0; }
    .passport-assessment > div { grid-template-columns: 30px minmax(0, 1fr); }
    .passport-assessment > div > svg { width: 30px; height: 30px; padding: 6px; }
    .document-section-toggle { padding: 11px 13px; }
    .document-section-toggle h2 { font-size: 14px; }
}

/* Shared iconography and public marketing surfaces */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.main-nav a { gap: 6px; }
.main-nav a svg { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.main-nav { scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }

.home-page { background: var(--surface); }
.home-page .site-main { padding: 0; }
.home-inner { width: min(1760px, 100%); margin: 0 auto; padding-left: 48px; padding-right: 48px; }
.home-hero { min-height: clamp(560px, calc(100svh - 200px), 720px); display: grid; align-items: center; overflow: hidden; background: #06101a; color: #f7fbff; border-bottom: 1px solid #183142; }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(520px, .88fr); gap: 74px; align-items: center; padding-top: 54px; padding-bottom: 54px; }
.home-hero-copy { min-width: 0; }
.home-kicker { display: flex; align-items: center; gap: 9px; color: #21b7d8; font-size: 12px; font-weight: 850; text-transform: uppercase; }
.home-kicker > span { width: 24px; height: 2px; background: currentColor; }
.home-hero h1 { margin-top: 18px; max-width: 820px; color: #f8fbff; font-size: 72px; font-weight: 900; line-height: 1.02; text-transform: uppercase; }
.home-hero h1 span { display: block; color: #24acd0; }
.home-hero-lead { max-width: 720px; margin-top: 26px; color: #b4c0cc; font-size: 21px; line-height: 1.52; }
.home-search { position: relative; width: min(900px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) auto; margin-top: 34px; }
.home-search > svg { position: absolute; z-index: 1; left: 20px; top: 50%; width: 22px; height: 22px; translate: 0 -50%; fill: none; stroke: #7f91a2; stroke-width: 2; }
.home-search input { min-height: 62px; padding: 12px 172px 12px 56px; border-color: #274051; border-radius: 31px; background: #0b1925; color: #f7fbff; font-size: 16px; box-shadow: 0 16px 36px rgba(0,0,0,.18); }
.home-search input::placeholder { color: #718191; }
.home-search input:focus { outline: 2px solid #1498bb; outline-offset: 2px; border-color: #1498bb; }
.home-search button { position: absolute; right: 6px; top: 6px; min-width: 150px; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 20px; border-radius: 25px; background: #087f9f; box-shadow: none; transition: transform .2s ease, background .2s ease; }
.home-search button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s ease; }
.home-search button:hover { transform: translateY(-1px); background: #06677f; }
.home-search button:hover svg { transform: translateX(3px); }
.home-quick-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.home-quick-nav a { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border: 1px solid #2a3a47; border-radius: 7px; background: #111d28; color: #d5dde5; font-size: 13px; font-weight: 700; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.home-quick-nav a svg { width: 17px; height: 17px; color: #22add0; fill: none; stroke: currentColor; stroke-width: 1.8; }
.home-quick-nav a:hover { transform: translateY(-2px); border-color: #1686a4; background: #102937; color: #fff; }

.home-console { min-width: 0; padding: 34px; border: 1px solid #263848; border-radius: 30px; background: #0b1823; box-shadow: 0 26px 70px rgba(0,0,0,.24); }
.home-console-services { display: grid; gap: 24px; }
.home-console-services > div { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 15px; align-items: center; }
.home-console-services > div > svg { width: 48px; height: 48px; padding: 7px; color: #24acd0; fill: none; stroke: currentColor; stroke-width: 1.6; }
.home-console-services span { min-width: 0; }
.home-console-services strong { display: block; font-size: 17px; }
.home-console-services small { margin-top: 4px; color: #9aa9b8; font-size: 13px; }
.home-console-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.home-console-metrics a { min-width: 0; min-height: 106px; display: grid; align-content: center; padding: 18px 20px; border: 1px solid #2a3b49; border-radius: 13px; background: #15222d; color: #f8fbff; transition: border-color .18s ease, transform .18s ease; }
.home-console-metrics a:hover { transform: translateY(-2px); border-color: #1b9dbd; color: #fff; }
.home-console-metrics strong { font-size: 31px; line-height: 1; overflow-wrap: anywhere; }
.home-console-metrics span { margin-top: 8px; color: #9ba9b6; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.home-system-state { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; padding-top: 20px; border-top: 1px solid #263847; }
.home-system-state > span { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 7px; align-items: center; }
.home-system-state strong { color: #d8e0e7; font-size: 10px; overflow-wrap: anywhere; }
.home-system-state small { grid-column: 2; margin: 2px 0 0; color: #788a99; font-size: 9px; overflow-wrap: anywhere; }
.state-dot { width: 7px; height: 7px; border-radius: 50%; background: #8393a2; }
.state-online { background: #31c992; box-shadow: 0 0 0 4px rgba(49,201,146,.09); }
.state-waiting { background: #ecb64c; }

.home-alert-band { border-bottom: 1px solid var(--line); background: var(--warn-bg); }
.home-alert-band .home-inner { min-height: 72px; display: flex; align-items: center; gap: 14px; }
.home-alert-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; background: var(--surface); color: var(--warn); }
.home-alert-icon svg, .home-alert-band a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.home-alert-band p { color: var(--ink); }
.home-alert-band p strong { font-size: 19px; }
.home-alert-band a { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: 13px; font-weight: 800; }

.home-benefits { padding: 86px 0 92px; background: var(--surface-soft); }
.home-section-heading { max-width: 850px; margin: 0 auto 42px; text-align: center; }
.home-section-heading .home-kicker { justify-content: center; }
.home-section-heading h2 { margin-top: 11px; font-size: 46px; }
.home-section-heading > p:last-child { margin-top: 15px; color: var(--muted); font-size: 19px; line-height: 1.55; }
.home-section-heading-left { max-width: 760px; margin-left: 0; text-align: left; }
.home-section-heading-left .home-kicker { justify-content: flex-start; }
.home-benefit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.home-benefit-card { --card-accent: #159fc0; min-width: 0; min-height: 470px; display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 8px 26px rgba(23,32,42,.04); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.home-benefit-card:nth-child(2), .home-benefit-card:nth-child(7) { --card-accent: #2b9b73; }
.home-benefit-card:nth-child(3) { --card-accent: #b27623; }
.home-benefit-card:nth-child(4), .home-benefit-card:nth-child(8) { --card-accent: #397fae; }
.home-benefit-card:nth-child(5) { --card-accent: #a45368; }
.home-benefit-card:nth-child(6) { --card-accent: #7166a8; }
.home-benefit-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--card-accent) 65%, var(--line)); box-shadow: 0 18px 36px rgba(23,32,42,.1); }
.home-benefit-card > header { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: center; }
.home-benefit-card > header > svg { width: 42px; height: 42px; padding: 8px; border-radius: 7px; color: var(--card-accent); background: color-mix(in srgb, var(--card-accent) 10%, var(--surface)); fill: none; stroke: currentColor; stroke-width: 1.8; }
.home-benefit-card header small { margin: 0 0 3px; color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.home-benefit-card h3 { font-size: 21px; }
.home-benefit-card > p { min-height: 92px; margin-top: 23px; color: var(--muted); line-height: 1.65; }
.home-benefit-card ul { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.home-benefit-card li { min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); color: var(--ink); font-size: 12px; font-weight: 700; }
.home-benefit-card li svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--card-accent); fill: none; stroke: currentColor; stroke-width: 1.8; }
.home-benefit-card > a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: auto; padding-top: 21px; border-top: 1px solid var(--line); color: var(--card-accent); font-size: 13px; font-weight: 850; }
.home-benefit-card > a svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .18s ease; }
.home-benefit-card > a:hover svg { transform: translateX(4px); }

.home-registry-directory { padding: 80px 0; background: var(--surface); }
.home-directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.home-directory-grid a { min-width: 0; min-height: 104px; display: grid; grid-template-columns: 44px minmax(0, 1fr) 18px; gap: 13px; align-items: center; padding: 20px; color: var(--ink); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .18s ease; }
.home-directory-grid a > svg:first-child { width: 44px; height: 44px; padding: 10px; border-radius: 7px; background: var(--surface-blue); color: var(--brand); }
.home-directory-grid a > svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.home-directory-grid a > svg:last-child { color: var(--muted); transition: transform .18s ease; }
.home-directory-grid a:hover { background: var(--surface-soft); }
.home-directory-grid a:hover > svg:last-child { transform: translateX(4px); color: var(--brand); }
.home-directory-grid strong { display: block; }
.home-directory-grid small { margin-top: 4px; }
.home-latest { padding: 0 0 92px; background: var(--surface); }

/* Information pages */
.info-page .site-main { padding-top: 0; }
.info-page .site-main > .breadcrumbs { width: min(1180px, 100%); margin: 0 auto; padding: 20px 22px 0; }
.info-page-shell { width: min(1180px, 100%); margin: 0 auto; padding: 24px 22px 80px; }
.info-page-hero { padding: 50px; border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 8px; background: var(--surface); }
.info-page-hero h1 { max-width: 860px; font-size: 48px; }
.info-page-hero > p:not(.eyebrow) { max-width: 800px; margin-top: 18px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.info-page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button-primary, .button-secondary { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; padding: 10px 15px; border: 1px solid var(--brand); border-radius: 6px; font-size: 13px; font-weight: 800; }
.button-primary { background: var(--brand); color: #fff; }
.button-primary:hover { background: var(--brand-dark); color: #fff; }
.button-secondary { color: var(--brand-dark); background: var(--surface); }
.button-primary svg, .button-secondary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .18s ease; }
.button-primary:hover svg, .button-secondary:hover svg { transform: translateX(3px); }
.info-section-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.info-section { min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.info-section h2 { font-size: 20px; }
.info-section > p { margin-top: 13px; color: var(--muted); line-height: 1.65; white-space: pre-line; }
.info-section code { display: block; margin-top: 16px; padding: 13px; border-radius: 6px; background: var(--surface-soft); color: var(--brand-dark); overflow-wrap: anywhere; }
.info-section ul { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.info-section li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 9px; align-items: start; color: var(--muted); }
.info-section li svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--good-bg); color: var(--good); fill: none; stroke: currentColor; stroke-width: 2; }
.info-link-list { display: grid; margin-top: 16px; border-top: 1px solid var(--line); }
.info-link-list a { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.info-link-list svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Pricing */
.pricing-page-shell { width: min(1440px, 100%); margin: 0 auto; padding: 24px 22px 84px; }
.pricing-page-hero { max-width: 860px; margin: 24px auto 0; text-align: center; }
.pricing-page-hero h1 { font-size: 48px; }
.pricing-page-hero > p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.pricing-public-note { width: fit-content; display: flex; align-items: center; gap: 10px; margin: 22px auto 0; padding: 10px 14px; border: 1px solid var(--good-border); border-radius: 6px; background: var(--good-bg); color: var(--muted); font-size: 13px; text-align: left; }
.pricing-public-note svg { width: 20px; height: 20px; flex: 0 0 auto; padding: 3px; border-radius: 50%; background: var(--good); color: #fff; fill: none; stroke: currentColor; stroke-width: 2; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 42px; align-items: stretch; }
.pricing-card { position: relative; min-width: 0; display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.pricing-card-featured { border-color: var(--brand); box-shadow: 0 16px 45px rgba(8, 127, 159, .11); }
.pricing-badge { position: absolute; top: 0; right: 20px; padding: 6px 10px; border-radius: 0 0 5px 5px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.pricing-card-heading h2 { font-size: 24px; }
.pricing-card-heading p { min-height: 52px; margin-top: 9px; color: var(--muted); line-height: 1.55; }
.pricing-price { min-height: 60px; display: flex; align-items: baseline; gap: 7px; margin-top: 24px; }
.pricing-price strong { font-size: 30px; }
.pricing-price span { color: var(--muted); font-size: 12px; }
.pricing-trial { margin: -4px 0 14px; color: var(--good); font-size: 11px; font-weight: 800; }
.pricing-card ul { display: grid; gap: 0; margin: 14px 0 26px; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.pricing-card li { min-height: 43px; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.pricing-card li svg { width: 16px; height: 16px; color: var(--good); fill: none; stroke: currentColor; stroke-width: 2; }
.pricing-card li strong { color: var(--ink); }
.pricing-card > a { justify-content: center; margin-top: auto; }
.pricing-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.pricing-details > div { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); color: var(--muted); font-size: 12px; line-height: 1.5; }
.pricing-details svg { width: 42px; height: 42px; padding: 10px; border-radius: 7px; background: var(--surface-blue); color: var(--brand); fill: none; stroke: currentColor; stroke-width: 1.8; }
.pricing-details strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 13px; }

/* Extended footer */
.site-footer { display: block; padding: 0; background: #07121c; color: #d6e0e8; font-size: 13px; }
.site-footer-inner { width: min(1760px, 100%); display: grid; grid-template-columns: 1.25fr repeat(4, minmax(150px, 1fr)); gap: 52px; margin: 0 auto; padding: 64px 48px 52px; }
.footer-brand-column { min-width: 0; display: block; padding-right: 42px; border-right: 1px solid #1b2b38; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.footer-brand:hover { color: #fff; }
.footer-brand > span:last-child { display: grid; gap: 2px; }
.footer-brand strong { font-size: 15px; }
.footer-brand small { margin: 0; color: #738593; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.footer-brand-column > p { max-width: 320px; margin-top: 22px; color: #8293a1; line-height: 1.65; }
.footer-cta { width: max-content; min-height: 44px; display: inline-flex; align-items: center; gap: 9px; margin-top: 25px; padding: 10px 15px; border: 1px solid #147e9a; border-radius: 7px; background: #0b6f8a; color: #fff; font-weight: 800; transition: transform .18s ease, background .18s ease; }
.footer-cta:hover { transform: translateY(-2px); background: #095e75; color: #fff; }
.footer-cta svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.footer-contact { display: block; width: max-content; margin-top: 22px; color: #9cadb9; }
.footer-contact:hover { color: #fff; }
.footer-group { min-width: 0; }
.footer-group > summary { display: none; }
.footer-group > .footer-column { display: flex !important; }
.footer-column { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-column > strong { margin-bottom: 8px; color: #657887; font-size: 10px; text-transform: uppercase; }
.footer-column a { display: inline-flex; align-items: center; gap: 7px; color: #9aa9b6; line-height: 1.35; }
.footer-column a:hover { color: #fff; }
.footer-column a svg { width: 14px; height: 14px; flex: 0 0 auto; color: #1aa4c6; fill: none; stroke: currentColor; stroke-width: 1.8; }
.site-footer-bottom { width: min(1760px, 100%); display: flex; flex-direction: row; align-items: center; gap: 22px; margin: 0 auto; padding: 20px 48px; border-top: 1px solid #1b2b38; color: #617482; font-size: 10px; text-transform: uppercase; }
.site-footer-bottom span:nth-child(2) { margin-right: auto; }
.site-footer-bottom a { color: #8293a1; }
.site-footer-bottom a:hover { color: #fff; }

[data-theme="dark"] .home-benefits, [data-theme="dark"] .home-registry-directory, [data-theme="dark"] .home-latest { background: var(--surface-soft); }
[data-theme="dark"] .home-benefit-card, [data-theme="dark"] .info-page-hero, [data-theme="dark"] .info-section { box-shadow: none; }
[data-theme="dark"] .pricing-card-featured { box-shadow: none; }
[data-theme="dark"] .home-benefit-card { --card-accent: #23b5d6; }
[data-theme="dark"] .home-benefit-card:nth-child(2), [data-theme="dark"] .home-benefit-card:nth-child(7) { --card-accent: #44c99a; }
[data-theme="dark"] .home-benefit-card:nth-child(3) { --card-accent: #e0a64a; }
[data-theme="dark"] .home-benefit-card:nth-child(4), [data-theme="dark"] .home-benefit-card:nth-child(8) { --card-accent: #6ab4e5; }
[data-theme="dark"] .home-benefit-card:nth-child(5) { --card-accent: #e07d96; }
[data-theme="dark"] .home-benefit-card:nth-child(6) { --card-accent: #a99be8; }
[data-theme="dark"] .site-footer-bottom { color: #8b9ba8; }

@media (max-width: 1500px) {
    .home-inner, .site-footer-inner, .site-footer-bottom { padding-left: 28px; padding-right: 28px; }
    .home-hero-grid { gap: 42px; }
    .home-hero h1 { font-size: 58px; }
    .home-benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-benefit-card { min-height: 430px; }
    .site-footer-inner { gap: 30px; }
}

@media (max-width: 1180px) {
    .home-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(430px, .8fr); }
    .home-hero h1 { font-size: 46px; }
    .home-hero-lead { font-size: 17px; }
    .home-console { padding: 25px; border-radius: 22px; }
    .home-console-services > div { grid-template-columns: 40px minmax(0, 1fr); }
    .home-console-services > div > svg { width: 40px; height: 40px; }
    .home-console-metrics strong { font-size: 24px; }
    .site-footer-inner { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .footer-brand-column { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(200px, 1fr) minmax(220px, 1fr) auto; gap: 22px; align-items: center; padding: 0 0 28px; border-right: 0; border-bottom: 1px solid #1b2b38; }
    .footer-brand-column > p, .footer-cta, .footer-contact { margin-top: 0; }
    .footer-contact { grid-column: 2; }
}

@media (max-width: 900px) {
    .home-hero { min-height: auto; }
    .home-hero-grid { grid-template-columns: 1fr; padding-top: 50px; padding-bottom: 50px; }
    .home-hero-copy { max-width: none; }
    .home-console { max-width: none; }
    .home-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-brand-column { grid-template-columns: 1fr auto; }
    .footer-brand-column > p { grid-column: 1 / -1; }
    .footer-contact { grid-column: 1; }
    .site-footer-bottom { flex-wrap: wrap; }
    .site-footer-bottom span:nth-child(2) { width: 100%; order: 3; }
}

@media (min-width: 901px) and (max-height: 800px) {
    .home-hero-grid { padding-top: 24px; padding-bottom: 24px; }
    .home-console { padding: 21px 24px; border-radius: 22px; }
    .home-console-services { gap: 12px; }
    .home-console-services > div { grid-template-columns: 38px minmax(0, 1fr); gap: 11px; }
    .home-console-services > div > svg { width: 38px; height: 38px; padding: 6px; }
    .home-console-services small { margin-top: 2px; }
    .home-console-metrics { gap: 9px; margin-top: 17px; }
    .home-console-metrics a { min-height: 78px; padding: 12px 16px; }
    .home-console-metrics strong { font-size: 25px; }
    .home-console-metrics span { margin-top: 5px; }
    .home-system-state { margin-top: 13px; padding-top: 13px; }
    .home-benefits { padding-top: 48px; }
}

@media (max-width: 700px) {
    .main-nav a { gap: 5px; }
    .main-nav a svg { width: 14px; height: 14px; }
    .home-inner { padding-left: 16px; padding-right: 16px; }
    .home-hero-grid { gap: 28px; padding-top: 28px; padding-bottom: 30px; }
    .home-hero h1 { font-size: 38px; }
    .home-hero-lead { margin-top: 20px; font-size: 16px; }
    .home-search { grid-template-columns: 1fr; }
    .home-search > svg { top: 28px; }
    .home-search input { min-height: 56px; padding-right: 50px; }
    .home-search button { position: static; width: 100%; margin-top: 9px; border-radius: 7px; }
    .home-quick-nav { display: flex; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
    .home-quick-nav::-webkit-scrollbar { display: none; }
    .home-quick-nav a { flex: 0 0 auto; justify-content: flex-start; }
    .home-console { display: none; }
    .home-system-state { grid-template-columns: 1fr; }
    .home-alert-band .home-inner { flex-wrap: wrap; padding-top: 13px; padding-bottom: 13px; }
    .home-alert-band a { width: 100%; margin-left: 52px; }
    .home-benefits, .home-registry-directory { padding: 62px 0; }
    .home-latest { padding-bottom: 62px; }
    .home-section-heading { margin-bottom: 30px; }
    .home-section-heading h2 { font-size: 34px; }
    .home-section-heading > p:last-child { font-size: 16px; }
    .home-benefit-grid { grid-template-columns: 1fr; }
    .home-benefit-card { min-height: 0; }
    .home-benefit-card > p { min-height: 0; }
    .home-benefit-card > a { margin-top: 24px; }
    .home-directory-grid { grid-template-columns: 1fr; }
    .info-page-shell { padding: 18px 12px 56px; }
    .info-page .site-main > .breadcrumbs { padding-left: 12px; padding-right: 12px; }
    .info-page-hero { padding: 28px 22px; }
    .info-page-hero h1 { font-size: 34px; }
    .info-page-hero > p:not(.eyebrow) { font-size: 16px; }
    .info-section-grid { grid-template-columns: 1fr; }
    .info-section { padding: 22px; }
    .pricing-page-shell { padding: 18px 12px 56px; }
    .pricing-page-hero h1 { font-size: 34px; }
    .pricing-page-hero > p:not(.eyebrow) { font-size: 16px; }
    .pricing-grid, .pricing-details { grid-template-columns: 1fr; }
    .pricing-card-heading p { min-height: 0; }
    .site-footer-inner { grid-template-columns: 1fr 1fr; padding: 44px 18px 34px; }
    .footer-brand-column { grid-column: 1 / -1; grid-template-columns: 1fr; }
    .footer-contact { grid-column: 1; }
    .footer-group { border-bottom: 1px solid #1b2b38; }
    .footer-group > summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #a9b6c0; cursor: pointer; font-size: 11px; font-weight: 850; text-transform: uppercase; list-style: none; }
    .footer-group > summary::-webkit-details-marker { display: none; }
    .footer-group > summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .18s ease; }
    .footer-group[open] > summary svg { transform: rotate(90deg); }
    .footer-group:not([open]) > .footer-column { display: none !important; }
    .footer-group > .footer-column { display: flex !important; padding: 4px 0 18px; }
    .footer-column > strong { display: none; }
    .site-footer-bottom { align-items: flex-start; flex-direction: column; gap: 9px; padding: 18px; }
    .site-footer-bottom span:nth-child(2) { order: initial; }
}

@media (max-width: 440px) {
    .home-hero h1 { font-size: 32px; }
    .home-console-metrics, .site-footer-inner { grid-template-columns: 1fr; }
    .home-console-metrics a { min-height: 90px; }
    .home-console-services strong { font-size: 15px; }
    .home-directory-grid a { min-height: 92px; }
}

@media (prefers-reduced-motion: reduce) {
    .home-search button, .home-search button svg, .home-quick-nav a, .home-console-metrics a, .home-benefit-card, .home-benefit-card > a svg, .home-directory-grid a > svg:last-child, .footer-cta, .button-primary svg, .button-secondary svg { transition: none; }
    .home-quick-nav a:hover, .home-console-metrics a:hover, .home-benefit-card:hover, .footer-cta:hover { transform: none; }
}
/* Read-only workspace links */
.shared-folder-shell{width:min(1440px,100%);margin:0 auto;padding:24px 22px 50px;box-sizing:border-box}
.shared-folder-hero{padding:28px;border:1px solid var(--line);background:var(--surface);border-radius:8px}
.shared-folder-hero h1{max-width:920px;margin:5px 0 10px;font-size:clamp(28px,4vw,48px);line-height:1.05;overflow-wrap:anywhere}
.shared-folder-hero>p:last-of-type{max-width:780px;margin:0;color:var(--muted);line-height:1.6}
.shared-folder-hero>div{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.shared-folder-hero>div span{padding:7px 10px;border:1px solid var(--line);border-radius:6px;background:var(--surface-soft);font-size:12px;font-weight:700}
.shared-folder-table-wrap{margin-top:16px;border:1px solid var(--line);border-radius:8px;background:var(--surface);overflow:auto}
.shared-folder-table{width:100%;min-width:760px;border-collapse:collapse}.shared-folder-table th,.shared-folder-table td{padding:13px 14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.shared-folder-table th{color:var(--muted);background:var(--surface-soft);font-size:11px;text-transform:uppercase}.shared-folder-table tr:last-child td{border-bottom:0}
.shared-folder-table td:first-child span{display:inline-flex;padding:5px 8px;border-radius:5px;color:var(--brand);background:color-mix(in srgb,var(--brand) 10%,transparent);font-size:11px;font-weight:800}.shared-folder-table a{color:var(--brand);font-weight:800;text-decoration:none}.shared-folder-table small{display:block;margin-top:4px;color:var(--muted)}
.shared-folder-empty{padding:32px;text-align:center;color:var(--muted)}.shared-folder-note{margin:14px 0 0;color:var(--muted);font-size:12px}
@media(max-width:640px){.shared-folder-shell{padding:15px 12px 36px}.shared-folder-hero{padding:20px 16px}.shared-folder-hero h1{font-size:30px}}
.record-alert {
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid var(--line, #d8dee8);
    border-left-width: 4px;
    border-radius: 8px;
    line-height: 1.55;
}

.record-alert-warning {
    border-color: #f59e0b;
    background: #fffbeb;
    color: #78350f;
}

.record-alert strong {
    display: block;
    margin-bottom: 3px;
}

html[data-theme="dark"] .record-alert-warning {
    background: #2b210d;
    color: #fde68a;
}

.registry-data-status {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 46px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-soft);
    color: var(--text);
}
.registry-data-status-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 4px color-mix(in srgb, #16a34a 14%, transparent); }
.registry-data-status.status-updating .registry-data-status-dot,
.registry-status-card.status-updating .registry-data-status-dot { background: #0891b2; box-shadow: 0 0 0 4px color-mix(in srgb, #0891b2 14%, transparent); }
.registry-data-status.status-paused .registry-data-status-dot,
.registry-data-status.status-attention .registry-data-status-dot,
.registry-status-card.status-paused .registry-data-status-dot,
.registry-status-card.status-attention .registry-data-status-dot { background: #d97706; box-shadow: 0 0 0 4px color-mix(in srgb, #d97706 15%, transparent); }
.registry-data-status > div { min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.registry-data-status strong { font-size: 12px; }
.registry-data-status span { color: var(--muted); font-size: 12px; }
.registry-data-status .registry-data-status-progress { margin-left: auto; color: var(--brand); font-weight: 800; }
.registry-data-status a { color: var(--brand); font-size: 12px; font-weight: 800; text-decoration: none; }
.registry-status-page { width: min(1500px, 100%); margin: 0 auto; padding: 8px 22px 56px; box-sizing: border-box; }
.registry-status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sla-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; border: 1px solid var(--line); background: var(--surface); }
.sla-summary > div { min-width: 0; padding: 18px 20px; border-right: 1px solid var(--line); }
.sla-summary > div:last-child { border-right: 0; }
.sla-summary span, .sla-summary small { display: block; color: var(--muted); font-size: 11px; }
.sla-summary strong { display: block; margin: 5px 0 3px; font-size: 25px; overflow-wrap: anywhere; }
.registry-status-card { padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.registry-status-card-head, .registry-status-card-head > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.registry-status-card-head > div { justify-content: flex-start; }
.registry-status-card-head h2 { margin: 0; font-size: 19px; }
.registry-status-card-head > strong { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.source-state { display: inline-flex; align-items: center; gap: 7px; margin-top: 13px; padding: 5px 8px; border: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 800; }
.source-state > span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.source-operational { color: var(--good); border-color: color-mix(in srgb, var(--good) 45%, var(--line)); }
.source-operational > span { background: var(--good); }
.source-outage { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.source-outage > span { background: var(--bad); }
.source-stale { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.source-stale > span { background: var(--warn); }
.registry-status-count { display: flex; flex-direction: column; margin: 26px 0 16px; }
.registry-status-count strong { font-size: 38px; line-height: 1; }
.registry-status-count span { margin-top: 7px; color: var(--muted); font-size: 12px; }
.registry-status-meter { height: 5px; margin-bottom: 20px; overflow: hidden; border-radius: 3px; background: var(--surface-soft); }
.registry-status-meter span { display: block; height: 100%; background: var(--brand); }
.registry-status-card dl { margin: 0 0 20px; }
.registry-status-card dl div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.registry-status-card dt { color: var(--muted); font-size: 12px; }
.registry-status-card dd { margin: 0; text-align: right; font-size: 12px; font-weight: 750; }
.registry-status-card > a { color: var(--brand); font-size: 13px; font-weight: 800; text-decoration: none; }
.registry-status-note { margin-top: 18px; }
.sla-history, .incident-history { margin-top: 18px; }
.sla-legend { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 11px; }
.sla-legend span::before { content: ''; width: 8px; height: 8px; display: inline-block; margin-right: 5px; background: var(--line-strong); }
.sla-legend .is-up::before { background: var(--good); }.sla-legend .is-partial::before { background: var(--warn); }.sla-legend .is-down::before { background: var(--bad); }
.sla-history-grid { display: grid; gap: 16px; }
.sla-history-grid > div { display: grid; grid-template-columns: 180px minmax(0, 1fr) 100px; gap: 16px; align-items: center; }
.sla-history-head { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.sla-history-head span { color: var(--brand); font-weight: 800; }
.sla-days { min-width: 0; display: grid; grid-template-columns: repeat(30, minmax(3px, 1fr)); gap: 3px; }
.sla-days > span { height: 28px; background: var(--line-strong); }
.sla-days .day-up { background: var(--good); }.sla-days .day-partial { background: var(--warn); }.sla-days .day-down { background: var(--bad); }
.sla-history-grid > div > small { color: var(--muted); text-align: right; font-size: 10px; }
.incident-list { display: grid; }
.incident-list > div { display: grid; grid-template-columns: 10px minmax(220px, 1fr) minmax(220px, auto) 120px; gap: 13px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.incident-list > div:last-child { border-bottom: 0; }
.incident-list > div > span { width: 9px; height: 9px; border-radius: 50%; background: var(--good); }
.incident-list .incident-active > span { background: var(--bad); }
.incident-list p, .incident-list time, .incident-list small { color: var(--muted); font-size: 11px; }
@media (max-width: 980px) { .registry-status-grid { grid-template-columns: 1fr; } .sla-summary { grid-template-columns: repeat(2,minmax(0,1fr)); } .sla-summary > div:nth-child(2) { border-right:0; } .sla-summary > div:nth-child(-n+2) { border-bottom:1px solid var(--line); } .sla-history-grid > div { grid-template-columns: 150px minmax(0,1fr); } .sla-history-grid > div > small { grid-column:2; } }
@media (max-width: 640px) {
    .registry-data-status { align-items: flex-start; flex-wrap: wrap; }
    .registry-data-status > div { display: block; flex: 1; }
    .registry-data-status > div span { display: block; margin-top: 3px; }
    .registry-data-status .registry-data-status-progress { margin-left: 20px; }
    .registry-status-page { padding: 4px 12px 38px; }
    .sla-summary { grid-template-columns: 1fr; }
    .sla-summary > div, .sla-summary > div:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
    .sla-summary > div:last-child { border-bottom: 0; }
    .sla-history-grid > div { grid-template-columns: 1fr; gap: 8px; }
    .sla-history-grid > div > small { grid-column: 1; text-align: left; }
    .sla-days { gap: 2px; }
    .sla-days > span { height: 22px; }
    .incident-list > div { grid-template-columns: 10px minmax(0,1fr); }
    .incident-list time, .incident-list small { grid-column: 2; }
}
.recommendation-normative-links{display:grid;gap:6px;margin:12px 0 0;padding:0;list-style:none}.recommendation-normative-links li{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 10px}.recommendation-normative-links a{color:var(--brand);font-weight:800;text-decoration:none}.recommendation-normative-links small{color:var(--muted);font-size:12px}

/* Actual workspace selectors used by the dense registry and quick preview. */
.registry-workspace-page .source-badge{font-size:11px}
.registry-workspace-page .registry-toolbar-title small,
.registry-workspace-page .scope-country,
.registry-workspace-page .scope-note,
.registry-workspace-page .quick-filter,
.registry-workspace-page .registry-actions a,
.registry-workspace-page .registry-actions button,
.registry-workspace-page .registry-actions span{font-size:12px}
.registry-workspace-page .registry-actions b{font-size:11px}
.registry-workspace-page .workspace-document-table{font-size:12px}
.registry-workspace-page .workspace-document-table th,
.registry-workspace-page .workspace-column-filter input,
.registry-workspace-page .workspace-column-filter select{font-size:12px}
.registry-workspace-page .workspace-document-table .record-link,
.registry-workspace-page .workspace-document-table .testing-cell > a span,
.registry-workspace-page .workspace-document-table .testing-cell > small,
.registry-workspace-page .workspace-document-table td small,
.registry-workspace-page .workspace-document-table .status-cell span{font-size:12px}
.registry-workspace-page .preview-validity > span,
.registry-workspace-page .preview-section-title,
.registry-workspace-page .preview-content dt{font-size:11px}
.registry-workspace-page .preview-validity strong,
.registry-workspace-page .preview-content > section > strong,
.registry-workspace-page .preview-content > section > small,
.registry-workspace-page .preview-content dd,
.registry-workspace-page .preview-content section a span,
.registry-workspace-page .preview-content section p,
.registry-workspace-page .preview-risk > a,
.registry-workspace-page .preview-open-button{font-size:12px}

/* Certificate and declaration passport typography. */
.record-detail-page .record-identity .eyebrow,
.record-detail-page .passport-risk > div > span,
.record-detail-page .passport-regulations > span,
.record-detail-page .entity-detail-grid span,
.record-detail-page .record-fact-grid dt,
.record-detail-page .product-description > span,
.record-detail-page .linked-product-list span,
.record-detail-page .regulation-card-list span,
.record-detail-page .entity-card-list span,
.record-detail-page .expert-chip-list span,
.record-detail-page .marking-assessment-heading > div > span,
.record-detail-page .marking-status,
.record-detail-page .marking-codes > span,
.record-detail-page .marking-source,
.record-detail-page .entity-card-list dt{font-size:11px}
.record-detail-page .back-to-registry,
.record-detail-page .record-passport .record-header-actions a,
.record-detail-page .passport-regulations a,
.record-detail-page .passport-regulations div > span,
.record-detail-page .risk-score span,
.record-detail-page .section-detail-link,
.record-detail-page .linked-product-list strong,
.record-detail-page .regulation-card-list strong,
.record-detail-page .entity-card-list strong,
.record-detail-page .expert-chip-list strong,
.record-detail-page .marking-codes code,
.record-detail-page .marking-disclaimer p,
.record-detail-page .marking-matches small,
.record-detail-page .document-link-list div > span,
.record-detail-page .document-link-list time,
.record-detail-page .document-link-list small,
.record-detail-page .entity-card-list dd{font-size:12px}
.record-detail-page .entity-detail-grid strong,
.record-detail-page .entity-detail-grid a,
.record-detail-page .entity-detail-grid p,
.record-detail-page .record-fact-grid dd{font-size:13px}
.data-quality-warning{margin:0 0 18px;padding:13px 15px;border:1px solid #f0c36a;background:#fff8e8;color:#7c4a03;border-radius:6px;line-height:1.5}.data-quality-warning strong{display:block;margin-bottom:2px}.tnved-enrichment>.section-heading-inline{align-items:flex-start}.tnved-edition{margin-top:18px;border-top:1px solid var(--border);padding-top:18px}.tnved-edition:first-of-type{margin-top:8px}.tnved-edition>header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.tnved-edition h3{margin:7px 0 0;font-size:18px}.tnved-edition>header>a{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;color:var(--primary);font-weight:700}.tnved-edition>header svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}.source-kind{display:inline-flex;padding:4px 8px;border-radius:4px;background:#e7f7fb;color:#087f9f;font-size:11px;font-weight:800;text-transform:uppercase}.source-kind-reference{background:#f1f5f9;color:#475569}.source-kind-editorial{background:#eefbf4;color:#177245}.tnved-rate-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1px;margin:18px 0;background:var(--border);border:1px solid var(--border)}.tnved-rate-grid>div{min-width:0;padding:13px;background:var(--surface)}.tnved-rate-grid dt{margin-bottom:6px;color:var(--muted);font-size:12px;font-weight:700}.tnved-rate-grid dd{margin:0;font-weight:700;overflow-wrap:anywhere}.tnved-copy{padding:14px 0;border-top:1px solid var(--border)}.tnved-copy h4{margin:0 0 8px;font-size:14px}.tnved-copy p{margin:0;white-space:pre-line;line-height:1.6}.tnved-copy ul{margin:0;padding-left:20px}.tnved-copy li{margin:5px 0;white-space:pre-line}.tnved-edition>footer{padding-top:12px;border-top:1px solid var(--border);color:var(--muted);font-size:12px}@media(max-width:900px){.tnved-rate-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tnved-edition>header{display:block}.tnved-edition>header>a{margin-top:12px}}@media(max-width:520px){.tnved-rate-grid{grid-template-columns:1fr}}
.editorial-meta{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:18px;color:var(--muted);font-size:13px}.editorial-meta a{color:var(--primary);font-weight:700}
.tnved-source-title{max-width:980px;margin:8px 0 0;color:var(--text);font-size:14px;line-height:1.55}.document-tnved-list{display:grid;gap:14px;margin-top:18px}.document-tnved-card{overflow:hidden;border:1px solid var(--line);background:var(--surface)}.document-tnved-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:16px 18px;background:var(--surface-soft);border-bottom:1px solid var(--line)}.document-tnved-card>header>div>span{display:block;margin-bottom:5px;color:var(--muted);font-size:11px;font-weight:800;text-transform:uppercase}.document-tnved-card>header>div>a{color:var(--brand);font-size:22px;font-weight:850;text-decoration:none}.document-tnved-card>header p{max-width:980px;margin:7px 0 0;line-height:1.5}.document-tnved-full-link{display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;color:var(--brand);font-size:12px;font-weight:800;text-decoration:none}.document-tnved-full-link svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2}.document-tnved-source{padding:16px 18px;border-top:1px solid var(--line)}.document-tnved-source:first-of-type{border-top:0}.document-tnved-source-head{display:flex;align-items:center;justify-content:space-between;gap:18px}.document-tnved-source-head>div{display:flex;align-items:center;gap:9px}.document-tnved-source-head>a{color:var(--brand);font-size:12px;font-weight:800;text-decoration:none}.document-tnved-rates{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:12px}.document-tnved-details{margin:10px 0 14px;border:1px solid var(--line)}.document-tnved-details>summary{padding:12px 14px;background:var(--surface-soft);cursor:pointer;color:var(--text);font-size:13px;font-weight:800}.document-tnved-details[open]>summary{border-bottom:1px solid var(--line)}.document-tnved-details .tnved-copy{padding:14px}.document-tnved-source>small{display:block;color:var(--muted);font-size:11px}.document-tnved-pending{margin:0;padding:16px 18px;color:var(--muted)}@media(max-width:760px){.document-tnved-card>header,.document-tnved-source-head{display:block}.document-tnved-full-link,.document-tnved-source-head>a{margin-top:10px}.document-tnved-source-head>div{align-items:flex-start;flex-direction:column}.document-tnved-rates{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.document-tnved-rates{grid-template-columns:1fr}.document-tnved-card>header,.document-tnved-source{padding:14px}.document-tnved-card>header>div>a{font-size:19px}}
.document-tnved-card>header>div>a{display:inline-flex;align-items:center;gap:8px}.document-tnved-card>header>div>a svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}.document-tnved-overview{padding:18px}.document-tnved-overview>h3{margin:0;font-size:15px}.document-tnved-overview>small{display:block;margin-top:14px;color:var(--muted);font-size:11px}.document-tnved-detail-grid{display:grid;gap:8px}.document-tnved-detail-grid details{border:1px solid var(--line);background:var(--surface)}.document-tnved-detail-grid summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:var(--surface-soft);cursor:pointer;font-size:13px;font-weight:800}.document-tnved-detail-grid summary span{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:22px;padding:0 7px;border:1px solid var(--line);color:var(--muted);font-size:11px}.document-tnved-detail-grid details[open] summary{border-bottom:1px solid var(--line)}.document-tnved-detail-grid ul,.document-tnved-detail-grid ol{margin:0;padding:13px 18px 13px 38px}.document-tnved-detail-grid li{margin:6px 0;white-space:pre-line;line-height:1.55}.document-tnved-detail-grid p{margin:0;padding:13px 16px;white-space:pre-line;line-height:1.6}.document-tnved-detail-grid p+p{border-top:1px solid var(--line)}@media(max-width:480px){.document-tnved-overview{padding:14px}}

/* Readable density: keep the registry compact without dropping operational text below 12px. */
.registry-table th,
.workspace-document-table th,
.workspace-column-filter input,
.workspace-column-filter select,
.workspace-source-badge,
.workspace-filter-scope > span,
.workspace-preview-header,
.record-eyebrow,
.record-section-heading span,
.passport-section-label,
.passport-fact dt,
.passport-entity-card dt,
.passport-risk-label,
.passport-assessment small,
.record-side-nav span,
.site-footer-column h3,
.home-benefit-card header small,
.home-system-status small,
.home-console-metrics span,
.source-kind,
.document-tnved-card > header > div > span {
    font-size: 11px;
}

.workspace-document-table,
.workspace-record-link,
.workspace-record-link small,
.workspace-document-table td small,
.workspace-testing-cell small,
.workspace-status-indicator,
.workspace-filter-scope a,
.workspace-filter-scope small,
.workspace-quick-filter,
.workspace-action-button,
.workspace-pagination,
.workspace-preview-validity strong,
.workspace-preview-validity span,
.workspace-preview-section p,
.workspace-preview-section dt,
.workspace-preview-section dd,
.workspace-preview-button,
.workspace-comparison-card p,
.registry-table td small,
.ral-table td small,
.testing-cell small,
.status-badge,
.passport-toolbar a,
.passport-regulations a,
.passport-assessment p,
.passport-assessment a,
.passport-entity-card dd,
.record-side-nav a,
.record-action-button,
.document-tnved-full-link,
.document-tnved-source-head > a,
.document-tnved-source > small,
.document-tnved-overview > small,
.registry-status-card dt,
.registry-status-card dd,
.registry-status-count span,
.registry-data-status strong,
.registry-data-status span,
.registry-data-status a,
.incident-list p,
.incident-list time,
.incident-list small,
.sla-summary span,
.sla-summary small,
.sla-legend,
.sla-history-grid > div > small,
.site-footer-bottom {
    font-size: 12px;
}

.passport-fact dd,
.passport-section-value,
.passport-linked-card strong,
.workspace-preview-title,
.workspace-preview-record,
.home-benefit-card li,
.site-footer {
    font-size: 13px;
}

@media (max-width: 640px) {
    .workspace-document-table,
    .registry-table,
    .ral-table {
        font-size: 13px;
    }

    .workspace-record-link,
    .workspace-document-table td small,
    .registry-table td small,
    .ral-table td small {
        font-size: 12px;
    }
}
