:root {
  --bg: #f5f7f8;
  --bg-soft: #edf2f4;
  --panel: #ffffff;
  --panel-2: #eef4f5;
  --line: #cbd7dc;
  --line-soft: #e3eaed;
  --text: #15262e;
  --muted: #52666e;
  --faint: #72838a;
  --cyan: #087a84;
  --cyan-deep: #438d96;
  --amber: #8a5b04;
  --red: #a03c35;
  --green: #287644;
  --max: 1500px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 80% 0%, #e4f1f2 0, transparent 34rem), var(--bg); color: var(--text); line-height: 1.5; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.masthead { max-width: var(--max); margin: 0 auto; padding: 34px 34px 28px; display: flex; justify-content: space-between; gap: 36px; border-bottom: 1px solid var(--line); }
.brand-lockup { min-width: 0; }
.eyebrow, .kicker, .note-label { color: var(--cyan); font: 700 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.signal-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 15px var(--cyan); }
h1 { font-size: clamp(27px, 4vw, 52px); line-height: 1.05; letter-spacing: -.045em; margin: 16px 0 8px; font-weight: 750; }
h1 span { display: inline-block; color: var(--muted); font-size: .56em; letter-spacing: -.02em; margin-left: 9px; font-weight: 550; }
.dek { color: var(--muted); margin: 0; font-size: 14px; }
.header-meta { display: flex; align-items: flex-end; flex-direction: column; gap: 7px; color: var(--muted); font: 11px ui-monospace, monospace; white-space: nowrap; }
.header-meta a { color: var(--cyan); }
.shell { max-width: var(--max); margin: 0 auto; padding: 30px 34px 80px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .7fr); gap: 20px; align-items: stretch; margin-bottom: 25px; }
.hero-copy, .hero-note { background: linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(239, 246, 247, .96)); border: 1px solid var(--line); border-radius: 5px; padding: 28px; }
.hero-copy h2 { font-size: clamp(24px, 3vw, 38px); line-height: 1.12; margin: 11px 0 10px; letter-spacing: -.04em; }
.hero-copy p { max-width: 700px; margin: 0; color: #52666e; font-size: 14px; }
.hero-note { display: flex; flex-direction: column; justify-content: center; border-color: #7eb8bd; }
.hero-note strong { margin: 11px 0 3px; font-size: 17px; }
.hero-note p { margin: 0; color: var(--muted); font-size: 12px; }
.stats { display: grid; grid-template-columns: repeat(6, minmax(100px, 1fr)); gap: 8px; margin-bottom: 24px; }
.stat { border: 1px solid var(--line); background: rgba(255, 255, 255, .92); padding: 14px 15px 12px; min-height: 82px; }
.stat .value { display: block; font-size: 24px; line-height: 1; font-weight: 700; letter-spacing: -.04em; color: var(--text); }
.stat .label { display: block; color: var(--muted); margin-top: 7px; font-size: 11px; }
.stat .sub { display: block; color: var(--faint); font-size: 10px; margin-top: 1px; }
.workspace { display: grid; grid-template-columns: 252px minmax(0, 1fr); align-items: start; gap: 21px; }
.filters { position: sticky; top: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .94); border-radius: 5px; padding: 16px; }
.filter-head, .results-toolbar { display: flex; justify-content: space-between; align-items: center; }
.filter-head { margin-bottom: 14px; }
.text-button { border: 0; background: none; color: var(--cyan); font-size: 11px; padding: 2px; }
.search-box { display: flex; align-items: center; border: 1px solid var(--line); background: var(--bg); height: 38px; padding: 0 10px; border-radius: 3px; }
.search-box:focus-within { border-color: var(--cyan-deep); box-shadow: 0 0 0 2px rgba(103,215,214,.12); }
.search-box svg { width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 1.6; flex: 0 0 auto; }
.search-box input { border: 0; outline: 0; background: none; color: var(--text); width: 100%; margin-left: 8px; font-size: 12px; }
.search-box input::placeholder { color: var(--faint); }
.filter-group { margin-top: 20px; }
.filter-group h3 { font-size: 13px; color: var(--muted); font-weight: 650; letter-spacing: .05em; margin: 0 0 9px; }
.check-list, .toggle-list { display: grid; gap: 6px; }
.check-list label, .toggle-list label { display: flex; align-items: center; gap: 7px; min-width: 0; color: #253b43; font-size: 14px; cursor: pointer; }
.check-list label em { margin-left: auto; color: var(--faint); font-style: normal; font-size: 9px; }
input[type=checkbox] { accent-color: var(--cyan); width: 13px; height: 13px; margin: 0; }
.chip-list { display: flex; flex-wrap: wrap; gap: 5px; }
.chip-list button { border: 1px solid var(--line); background: #eef4f5; border-radius: 3px; color: var(--muted); font: 14px ui-monospace, monospace; padding: 5px 8px; }
.chip-list button:hover, .chip-list button.active { color: var(--bg); background: var(--cyan); border-color: var(--cyan); }
.filter-foot { border-top: 1px solid var(--line-soft); padding-top: 13px; margin: 20px 0 0; color: var(--faint); font-size: 10px; }
.range-grid { display: grid; gap: 8px; }
.range-grid label { display: grid; gap: 4px; color: var(--muted); font-size: 14px; }
.range-grid label > span { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.range-grid input { min-width: 0; width: 100%; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 3px; padding: 6px 7px; font-size: 14px; }
.range-grid input:focus { outline: 2px solid rgba(103,215,214,.38); outline-offset: 1px; }
.range-note { margin: 4px 0 0; color: var(--faint); font-size: 9px; }
kbd { border: 1px solid var(--line); color: var(--muted); background: var(--panel-2); padding: 1px 4px; border-radius: 2px; font-family: ui-monospace, monospace; }
.results { min-width: 0; }
.results-toolbar { margin: 0 0 13px; }
.results-toolbar > div { display: flex; align-items: baseline; gap: 8px; }
.results-toolbar strong { font-size: 22px; margin-left: 6px; }
.muted { color: var(--muted); font-size: 12px; }
.sort-control { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.sort-control select { color: var(--text); background: var(--panel); border: 1px solid var(--line); padding: 6px 8px; border-radius: 3px; font-size: 14px; }
.table-wrap { overflow: auto; max-height: calc(100vh - 190px); min-height: 560px; border: 1px solid var(--line); border-radius: 5px; background: rgba(255, 255, 255, .96); }
.sample-table { width: 100%; border-collapse: collapse; min-width: 1800px; }
.sample-table th:nth-child(1), .sample-table td:nth-child(1) { min-width: 255px; width: 255px; }
.sample-table th:nth-child(2), .sample-table td:nth-child(2) { min-width: 235px; width: 235px; }
.sample-table th:nth-child(3), .sample-table td:nth-child(3) { min-width: 190px; width: 190px; }
.sample-table th:nth-child(4), .sample-table td:nth-child(4) { min-width: 190px; width: 190px; }
.sample-table th:nth-child(5), .sample-table td:nth-child(5) { min-width: 485px; width: 485px; }
.sample-table th:nth-child(6), .sample-table td:nth-child(6) { min-width: 330px; width: 330px; }
.sample-table th:nth-child(7), .sample-table td:nth-child(7) { min-width: 160px; width: 160px; }
.sample-table th { background: #edf4f5; color: var(--muted); text-align: left; font: 700 14px ui-monospace, monospace; letter-spacing: .04em; text-transform: uppercase; padding: 13px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; z-index: 3; }
.sample-table th[data-sort] { cursor: pointer; }
.sample-table th[data-sort]:hover { color: var(--cyan); }
.sort-mark::after { content: "↕"; color: var(--faint); margin-left: 4px; }
.sample-table th.sorted-asc .sort-mark::after { content: "↑"; color: var(--cyan); }
.sample-table th.sorted-desc .sort-mark::after { content: "↓"; color: var(--cyan); }
.sample-table td { border-bottom: 1px solid var(--line-soft); padding: 13px 14px; vertical-align: top; font-size: 14px; color: #354d55; line-height: 1.45; }
.sample-table th:first-child, .sample-table td:first-child { position: sticky; left: 0; z-index: 2; background: #ffffff; box-shadow: 8px 0 14px -14px rgba(14, 42, 51, .35); }
.sample-table th:first-child { z-index: 4; background: #edf4f5; }
.sample-table th:last-child, .sample-table td:last-child { position: sticky; right: 0; z-index: 2; background: #ffffff; box-shadow: -8px 0 14px -14px rgba(14, 42, 51, .35); }
.sample-table th:last-child { z-index: 4; background: #edf4f5; }
.sample-table tr:last-child td { border-bottom: 0; }
.sample-table tbody tr { transition: background .12s; }
.sample-table tbody tr:hover { background: rgba(103, 215, 214, .07); }
.object-name { color: var(--text); font-weight: 700; font-size: 14px; display: block; text-align: left; border: 0; padding: 0; background: none; }
.object-alias { display: block; color: var(--faint); font-size: 9px; margin-top: 2px; }
.object-name:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.mini { display: block; color: var(--faint); font-size: 9px; margin-top: 3px; }
.badge { display: inline-flex; align-items: center; border: 1px solid #78aeb2; border-radius: 2px; padding: 4px 6px; font: 700 13px ui-monospace, monospace; white-space: nowrap; color: #076a73; background: #e5f3f4; }
.badge.a1 { color: #17633d; border-color: #72a989; background: #e8f5eb; }
.badge.a2 { color: #17616d; border-color: #77adb5; background: #e7f3f5; }
.badge.b { color: #805300; border-color: #c5a15e; background: #fff6df; }
.badge.c, .badge.reject { color: #96372e; border-color: #d3958f; background: #fcecea; }
.badge.reference { color: #6a3f85; border-color: #b49ac5; background: #f7effb; }
.tag-row { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; }
.tag { color: var(--muted); border: 1px solid var(--line); border-radius: 2px; padding: 3px 5px; font-size: 14px; }
.empty-state { text-align: center; border: 1px dashed var(--line); padding: 55px 20px; }
.empty-glyph { color: var(--cyan); font-size: 31px; }
.empty-state h3 { margin: 6px 0; }
.empty-state p { color: var(--muted); font-size: 12px; }
.outline-button { color: var(--cyan); border: 1px solid var(--cyan-deep); background: transparent; border-radius: 3px; padding: 7px 11px; font-size: 11px; }
.detail-dialog { width: min(920px, calc(100vw - 26px)); max-height: calc(100vh - 30px); padding: 0; border: 1px solid #7eb8bd; color: var(--text); background: var(--panel); border-radius: 6px; box-shadow: 0 20px 80px rgba(31, 62, 69, .25); }
.detail-dialog::backdrop { background: rgba(26, 52, 58, .25); backdrop-filter: blur(3px); }
.detail-inner { position: relative; padding: 30px; }
.close-button { position: absolute; top: 12px; right: 14px; width: 30px; height: 30px; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 3px; font-size: 22px; line-height: 1; }
.close-button:hover { color: var(--text); border-color: var(--cyan); }
.detail-head { border-bottom: 1px solid var(--line); padding: 3px 38px 18px 0; }
.detail-head h2 { margin: 8px 0 4px; font-size: 27px; letter-spacing: -.04em; }
.detail-sub { color: var(--muted); font-size: 12px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.detail-section { border: 1px solid var(--line); background: rgba(245, 249, 250, .95); padding: 14px; }
.detail-section h3 { margin: 0 0 11px; color: var(--cyan); font: 700 10px ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 14px; }
.fact dt { color: var(--faint); font-size: 10px; }
.fact dd { margin: 2px 0 0; font-size: 14px; color: #253b43; }
.detail-section p { margin: 0; color: #354d55; font-size: 14px; }
.detail-section p + p { margin-top: 8px; }
.detail-full { grid-column: 1 / -1; }
.reference-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.reference-list a { display: inline-block; border: 1px solid var(--line); background: var(--panel-2); border-radius: 3px; padding: 5px 7px; font-size: 10px; }
.image-placeholder { display: flex; gap: 10px; align-items: center; color: var(--muted); border: 1px dashed var(--line); padding: 11px; font-size: 11px; }
.image-placeholder .image-mark { color: var(--cyan); font-size: 18px; }
.stage-note { color: var(--faint) !important; font-size: 10px !important; margin-top: 8px !important; }
.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; }

@media (max-width: 1050px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .workspace { grid-template-columns: 220px minmax(0, 1fr); }
}
@media (max-width: 730px) {
  .masthead { padding: 24px 18px; display: block; }
  .header-meta { align-items: flex-start; margin-top: 17px; flex-direction: row; flex-wrap: wrap; gap: 4px 15px; }
  .shell { padding: 20px 18px 55px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy, .hero-note { padding: 21px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .workspace { display: block; }
  .filters { position: static; margin-bottom: 22px; }
  .filter-group { margin-top: 14px; }
  .filter-foot { display: none; }
  .detail-inner { padding: 23px 17px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-full { grid-column: auto; }
}
