:root {
  --bg: #fbfaf7; --fg: #1d232b; --muted: #5d6773; --line: #e3e0d8; --accent: #1f5f8b;
  --ok: #2e7d4f; --warn: #b26a00; --err: #b3261e; --info: #49627a; --hl: rgba(255, 196, 0, .35);
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--fg); background: var(--bg); }
a { color: var(--accent); }
header.site { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; min-height: 68px; padding: 6px 28px; border-bottom: 1px solid var(--line); background: #fff; }
header.site .site-logo img { display: block; height: 38px; width: auto; }
header.site nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
header.site nav a { color: var(--fg); font: 500 15px/1.5 Montserrat, system-ui, sans-serif; text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
header.site nav a:hover { border-bottom-color: #F2A900; }
header.top { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: baseline; padding: 10px 28px; border-bottom: 1px solid var(--line); background: #f5f3ee; }
header.top .all-demos { margin-left: auto; }
header.top .brand { font-weight: 700; letter-spacing: .02em; }
header.top nav a { margin-right: 18px; text-decoration: none; }
header.top nav a.active { font-weight: 600; text-decoration: underline; }
.banner { background: #fff6dc; border-bottom: 1px solid #f0dfa6; padding: 6px 28px; font-size: 13px; }
main { padding: 22px 28px 40px; max-width: 1500px; margin: 0 auto; }
h1 { font-size: 22px; margin: 4px 0 14px; } h2 { font-size: 17px; margin: 22px 0 8px; }
table { border-collapse: collapse; width: 100%; background: #fff; }
th, td { border-bottom: 1px solid var(--line); padding: 5px 8px; text-align: left; vertical-align: top; font-size: 14px; }
th { font-weight: 600; color: var(--muted); background: #f5f3ee; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.chip { display: inline-block; padding: 0 7px; border-radius: 10px; font-size: 12px; border: 1px solid currentColor; white-space: nowrap; }
.s-match, .sev-ok { color: var(--ok); } .s-mismatch, .sev-error { color: var(--err); }
.s-not_found, .s-missing_extracted, .s-missing_master, .sev-info { color: var(--info); } .sev-warning { color: var(--warn); }
.conf { display: inline-block; width: 46px; height: 7px; background: #e9e6df; border-radius: 4px; vertical-align: middle; }
.conf > i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.split { display: grid; grid-template-columns: minmax(380px, 1fr) minmax(420px, 1fr); gap: 22px; align-items: start; }
.pages { position: sticky; top: 8px; max-height: calc(100vh - 16px); overflow: auto; border: 1px solid var(--line); background: #fff; }
.page { position: relative; margin: 0 0 10px; }
.page img { width: 100%; display: block; }
.page .label { position: absolute; left: 6px; top: 6px; background: #fff; padding: 0 6px; font-size: 12px; border: 1px solid var(--line); }
.box { position: absolute; border: 2px solid transparent; pointer-events: none; }
.box.on { border-color: #e0a800; background: var(--hl); }
tr.field { cursor: pointer; } tr.field:hover, tr.field.on { background: #fff8e1; }
.snippet { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; color: #3b3b3b; }
.searchbox { display: flex; gap: 8px; } .searchbox input[type=text] { flex: 1; padding: 8px 10px; font-size: 15px; border: 1px solid #c9c4b8; }
button { padding: 7px 14px; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; }
button.link { background: none; color: var(--accent); border: none; padding: 0; text-decoration: underline; }
.filters { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0; font-size: 14px; }
.filters input, .filters select { padding: 3px 6px; }
.result { background: #fff; border: 1px solid var(--line); padding: 10px 12px; margin: 8px 0; }
pre.sql { background: #f2f0ea; padding: 8px 10px; overflow: auto; font-size: 13px; }
footer { border-top: 1px solid var(--line); padding: 14px 28px; font-size: 12.5px; color: var(--muted); background: #fff; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .pages { position: static; max-height: none; } }
/* narrow screens: one column, long snippets and IDs wrap instead of pushing the table off-screen */
.split > * { min-width: 0; }
td { overflow-wrap: anywhere; }
header.top { flex-wrap: wrap; row-gap: 4px; }
@media (max-width: 1150px) { .split { grid-template-columns: 1fr; } .pages { position: static; max-height: 70vh; } }
@media (max-width: 600px) { main, header.top, .banner, footer { padding-left: 16px; padding-right: 16px; }
  th, td { padding: 4px 5px; font-size: 13px; } }
