:root {
  --bg: #f7f7f4; --panel: #fff; --ink: #1f2937; --muted: #5f6672; --line: #e5e4de; --soft: #f3f2ec;
  --accent: #1f2937; --hl: #fcd535; --hl-soft: #fff7d1; --link: #8a6508;
  --pass: #15803d; --pass-bg: #e8f6ec; --warn: #a16207; --warn-bg: #fdf5dc; --fail: #b91c1c; --fail-bg: #fdeaea;
  --edd: #9a3412; --edd-bg: #ffedd5; --stop: #fff; --stop-bg: #7f1d1d; --open: #1d4ed8; --open-bg: #e6eefc; --unv: #6d28d9; --unv-bg: #f1ebfe; --info: #64748b; --info-bg: #eef1f5;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 Inter, system-ui, sans-serif; overflow-wrap: break-word; }
a { color: var(--link); }
code { font-family: var(--mono); font-size: .86em; background: var(--soft); padding: 1px 5px; border-radius: 4px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.top { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); box-shadow: inset 0 -3px 0 var(--hl); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 62px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand b { display: block; font-size: 15px; }
.brand span { display: block; color: var(--muted); font-size: 12px; }
.tabs { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.tabs button { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--muted); padding: 7px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--hl-soft); color: var(--ink); font-weight: 600; }
.disclaimer { font-size: 12.5px; color: var(--muted); margin: 18px 0 0; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.tab { display: none; padding-bottom: 40px; }
.tab.on { display: block; }
.lead h1 { font-size: 24px; line-height: 1.25; margin: 26px 0 8px; letter-spacing: -.01em; }
.lead p { color: var(--muted); margin: 0 0 18px; }
.btn { font: inherit; font-size: 14px; font-weight: 600; border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 9px; padding: 8px 14px; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.sm { font-size: 12.5px; padding: 4px 10px; }
.bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 14px 0; }
.grow { flex: 1; }
.note { font-size: 13px; color: var(--muted); margin: 6px 0; }
.inl { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; min-width: 0; max-width: 100%; flex-wrap: wrap; }
.inl select { max-width: 100%; }
.colmain, .colside { min-width: 0; }
.chk { font-weight: 500; }
input, select, textarea { font: inherit; font-size: 14px; color: var(--ink); border: 2px solid #d4d2c8; border-radius: 8px; padding: 6px 9px; background: #fff; min-width: 0; }
input:focus, select:focus { outline: none; border-color: var(--ink); }
.strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 14px; }
.strip > div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.strip b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.strip span { color: var(--muted); font-size: 12px; }
.tbl-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
table.grid { width: 100%; min-width: 980px; border-collapse: collapse; table-layout: fixed; }
.grid th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; overflow-wrap: normal; background: #fff; }
.grid td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
.grid th:first-child, .grid td:first-child { position: sticky; left: 0; background: #fff; z-index: 1; box-shadow: 1px 0 0 var(--line); }
.grid th:first-child { z-index: 2; }
.grid tr.row { cursor: pointer; }
.grid tr.row:hover td { background: #fbfaf4; }
.cid { font-family: var(--mono); font-size: 12px; color: var(--muted); display: block; }
.sub { display: block; font-size: 12.5px; color: var(--muted); }
.pill { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; text-transform: uppercase; letter-spacing: .03em; }
.s-pass { background: var(--pass-bg); color: var(--pass); } .s-warn { background: var(--warn-bg); color: var(--warn); }
.s-fail { background: var(--fail-bg); color: var(--fail); } .s-edd { background: var(--edd-bg); color: var(--edd); }
.s-stop { background: var(--stop-bg); color: var(--stop); } .s-open { background: var(--open-bg); color: var(--open); }
.s-unverified { background: var(--unv-bg); color: var(--unv); } .s-info { background: var(--info-bg); color: var(--info); }
.t-Low { background: var(--pass-bg); color: var(--pass); } .t-Medium { background: var(--warn-bg); color: var(--warn); } .t-High { background: var(--fail-bg); color: var(--fail); }
.l-high { color: var(--fail); font-weight: 600; } .l-medium { color: var(--warn); font-weight: 600; } .l-past { color: var(--fail); font-weight: 600; }
.cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 14px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.card h2 { font-size: 15px; margin: 0 0 10px; }
.head { border-left: 4px solid var(--hl); }
.head h1 { font-size: 21px; margin: 0 0 4px; line-height: 1.3; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.facts div { background: var(--soft); border-radius: 8px; padding: 8px 10px; }
.facts span { display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.facts b { font-size: 14px; }
.grp { margin-bottom: 12px; }
.grp h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 4px; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks li > .pill { justify-self: start; align-self: start; }
.checks .nm { font-weight: 600; font-size: 14px; }
.checks .dt { color: var(--muted); font-size: 13px; }
.src { font-family: var(--mono); font-size: 11px; color: var(--muted); }
table.docs { width: 100%; min-width: 640px; border-collapse: collapse; table-layout: fixed; }
.docs th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; overflow-wrap: normal; background: #fff; }
.docs td { padding: 7px 8px; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: top; }
.docs th:first-child, .docs td:first-child { position: sticky; left: 0; background: #fff; z-index: 1; box-shadow: 1px 0 0 var(--line); }
.docs select, .docs input { font-size: 12.5px; padding: 3px 6px; width: 100%; }
.docwrap { overflow-x: auto; max-height: 560px; overflow-y: auto; }
.docwrap thead th { position: sticky; top: 0; z-index: 2; }
.docwrap thead th:first-child { z-index: 3; }
.own-row { margin: 6px 0; font-size: 13.5px; }
.own-bar { height: 7px; background: var(--soft); border-radius: 4px; overflow: hidden; margin-top: 3px; }
.own-bar i { display: block; height: 100%; background: var(--ink); }
.own-bar i.entity { background: #c2410c; } .own-bar i.diffuse { background: #9ca3af; }
.hit { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; font-size: 13px; }
.hit .btn { margin-top: 6px; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; flex-wrap: wrap; }
.seg button { border: 0; background: none; font: inherit; font-size: 13px; padding: 7px 12px; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--hl-soft); color: var(--ink); font-weight: 600; }
.out { background: var(--soft); border-radius: 10px; padding: 14px 16px; font-size: 14px; }
.out h1 { font-size: 18px; margin: 0 0 6px; } .out h2 { font-size: 14px; margin: 14px 0 4px; }
.out ul { margin: 4px 0; padding-left: 20px; } .out p { margin: 4px 0; }
.out pre { white-space: pre-wrap; font-family: var(--mono); font-size: 12.5px; margin: 0; }
.search { display: flex; gap: 8px; margin-bottom: 10px; }
.search input { flex: 1; font-size: 15px; padding: 9px 12px; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.results { list-style: none; margin: 0 0 14px; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.results li { padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.results li:last-child { border-bottom: 0; }
.results li:hover { background: #fbfaf4; }
.kv { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 5px 14px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.mono { font-family: var(--mono); font-size: 13px; }
table.plain { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; }
.plain th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; overflow-wrap: normal; background: #fff; }
.plain td { padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: top; }
.plain th:first-child, .plain td:first-child { position: sticky; left: 0; background: #fff; z-index: 1; box-shadow: 1px 0 0 var(--line); }
.foot { color: var(--muted); font-size: 12.5px; padding-top: 10px; padding-bottom: 30px; border-top: 1px solid var(--line); }
.spin { display: inline-block; width: 10px; height: 10px; border: 2px solid var(--ink); border-right-color: transparent; border-radius: 50%; animation: s .7s linear infinite; vertical-align: -1px; margin-right: 6px; }
@keyframes s { to { transform: rotate(360deg); } }
@media (max-width: 960px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .strip { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabs { margin-left: 0; }
  .lead h1 { font-size: 20px; }
}
@media (max-width: 640px) {
  .checks li { grid-template-columns: 1fr; gap: 3px; }
  .kv { grid-template-columns: 1fr; gap: 1px; } .kv dd { margin-bottom: 6px; }
  .search { flex-direction: column; }
}
.nowrap { white-space: nowrap; overflow-wrap: normal; }
.docs table, table.docs { min-width: 700px; }
.docs input[type=date] { min-width: 132px; }
.basis { font-size: 11.5px; color: #8a8f99; margin-top: 2px; }
.accept { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
table.cmpid { width: 100%; border-collapse: collapse; margin: 6px 0; font-size: 12.5px; table-layout: fixed; }
.cmpid td { padding: 4px 6px; border-top: 1px dashed var(--line); vertical-align: top; }
.cmpid td:first-child { width: 30%; color: var(--muted); }
.cmpid td:nth-child(2) { width: 24%; }
form.adj { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
form.adj label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 600; color: var(--muted); }
form.adj .wide { grid-column: 1 / -1; }
form.adj textarea { font-size: 13px; resize: vertical; }
form.adj .btn { justify-self: start; }
form.adj .note { grid-column: 1 / -1; margin: 0; }
code.hash { overflow-wrap: break-word; font-size: 12px; }
