:root {
  --bg: #f7f7f4; --panel: #fff; --ink: #1f2937; --muted: #5f6672; --line: #e5e4de; --soft: #f3f2ec;
  --border-strong: #cfcdc3; --hl: #8dc63f; --hl-soft: #eef7e1; --link: #3f6b12;
  --pass: #15803d; --pass-bg: #e8f6ec; --warn: #a16207; --warn-bg: #fdf5dc; --fail: #b91c1c; --fail-bg: #fdeaea; --info: #475569; --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: 16px; min-height: 62px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.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: 2px solid transparent; background: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--muted); padding: 5px 11px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--hl-soft); border-color: var(--hl); color: var(--ink); font-weight: 600; }
.disclaimer { font-size: 12.5px; color: var(--muted); margin: 16px 0 0; padding: 10px 12px; background: #fff; border: 2px solid var(--border-strong); border-radius: 10px; }
.tab { display: none; padding-bottom: 40px; }
.tab.on { display: block; }
.lead h1 { font-size: 23px; line-height: 1.25; margin: 22px 0 6px; letter-spacing: -.01em; }
.lead p { color: var(--muted); margin: 0 0 14px; }
.btn { font: inherit; font-size: 14px; font-weight: 600; border: 2px solid var(--border-strong); background: #fff; color: var(--ink); border-radius: 9px; padding: 6px 13px; 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: 3px 9px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 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; flex-wrap: wrap; }
input, select, textarea { font: inherit; font-size: 14px; color: var(--ink); border: 2px solid var(--border-strong); border-radius: 8px; padding: 5px 9px; background: #fff; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
.seg { display: inline-flex; border: 2px solid var(--border-strong); border-radius: 9px; overflow: hidden; flex-wrap: wrap; }
.seg button { border: 0; background: #fff; font: inherit; font-size: 13px; font-weight: 600; padding: 5px 11px; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--ink); color: #fff; }
.strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 14px; }
.strip > div { background: #fff; border: 2px solid var(--border-strong); border-radius: 10px; padding: 9px 12px; }
.strip b { display: block; font-size: 21px; font-variant-numeric: tabular-nums; }
.strip span { color: var(--muted); font-size: 12px; }
.card { background: #fff; border: 2px solid var(--border-strong); border-radius: 12px; padding: 14px 16px; margin: 0 0 14px; }
.card h2 { font-size: 16px; margin: 0 0 4px; }
.card > .note:first-of-type { margin-top: 0; }
.tbl-wrap { overflow: auto; max-height: 560px; border: 2px solid var(--border-strong); border-radius: 10px; background: #fff; margin-top: 8px; }
table.grid { width: 100%; min-width: 860px; border-collapse: collapse; table-layout: fixed; }
.grid th { position: sticky; top: 0; z-index: 2; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 9px 11px; border-bottom: 1px solid var(--line); word-break: keep-all; overflow-wrap: normal; white-space: nowrap; background: #fff; }
.grid td { padding: 9px 11px; 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: 2px 0 4px -2px rgba(0,0,0,.12); }
.grid th:first-child { z-index: 3; }
.grid td.num, .grid th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.grid tr.tot td { font-weight: 700; background: var(--soft); }
.grid tr.tot td:first-child { background: var(--soft); }
.sub { display: block; font-size: 12.5px; color: var(--muted); }
.mono { font-family: var(--mono); font-size: 12.5px; }
.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-info { background: var(--info-bg); color: var(--info); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.matrix td.cell { text-align: center; }
.tog { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--border-strong); border-radius: 999px; padding: 2px 10px 2px 4px; background: #fff; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tog i { width: 14px; height: 14px; border-radius: 50%; background: var(--line); display: inline-block; }
.tog.on { border-color: var(--pass); color: var(--pass); } .tog.on i { background: var(--pass); }
.tog.leak { border-color: var(--fail); color: var(--fail); } .tog.leak i { background: var(--fail); }
.tog.na { opacity: .5; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; max-width: calc(100% - 32px); z-index: 50; display: none; }
.toast.show { display: block; }
.log { font-family: var(--mono); font-size: 12.5px; max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--soft); white-space: pre-wrap; }
.out { font-family: var(--mono); font-size: 12.5px; white-space: pre-wrap; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; max-height: 380px; overflow: auto; }
.reasons { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--fail); }
.drop { border: 2px dashed var(--border-strong); border-radius: 10px; padding: 12px; background: #fff; font-size: 13.5px; color: var(--muted); }
.drop.over { border-color: var(--ink); }
.method h2 { font-size: 17px; margin: 22px 0 6px; }
.method li { margin: 4px 0; }
dialog { border: 2px solid var(--border-strong); border-radius: 12px; padding: 16px 18px; width: min(560px, calc(100% - 32px)); }
dialog::backdrop { background: rgba(31,41,55,.35); }
dialog label { display: block; font-size: 13px; font-weight: 600; margin: 10px 0 4px; }
dialog input, dialog select, dialog textarea { width: 100%; }
@media (max-width: 900px) { .strip { grid-template-columns: repeat(3, 1fr); } .cols { grid-template-columns: 1fr; } }
@media (max-width: 520px) { input, select, textarea { font-size: 16px; } .strip { grid-template-columns: repeat(2, 1fr); } .lead h1 { font-size: 20px; } .tabs { margin-left: 0; } }
details.rep { border: 2px solid var(--border-strong); border-radius: 10px; margin: 8px 0; background: #fff; }
details.rep > summary { list-style: none; cursor: pointer; padding: 9px 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
details.rep > summary::-webkit-details-marker { display: none; }
details.rep > summary::before { content: '+'; font-family: var(--mono); font-weight: 700; width: 12px; }
details.rep[open] > summary::before { content: '-'; }
details.rep .tbl-wrap { margin: 0 12px 12px; }
