:root { --ink: #1a1a1a; --muted: #4a4a4a; --accent: #0b4f8a; --warn: #8a4b00; --err: #a4000f; --bg: #f6f7f9; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 6px; z-index: 10; }
.top, .disclaimer, main, .foot { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.top h1 { font-size: 1.5rem; margin: 18px 0 4px; }
.pin { color: var(--muted); margin: 0 0 12px; }
.pin.err { color: var(--err); font-weight: 600; }
.disclaimer { background: #fff8e1; border: 1px solid #e0c060; border-radius: 6px; padding: 8px 16px; }
.disclaimer h2 { font-size: 1rem; margin: 6px 0; }
.card { background: #fff; border: 1px solid #d5d8dd; border-radius: 6px; padding: 12px 16px; margin: 14px 0; }
.card h2 { font-size: 1.15rem; margin: 4px 0 10px; }
.card.danger { border-color: #e2a3a8; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 16px; }
.field { display: flex; flex-direction: column; gap: 3px; }
.field.wide { grid-column: 1 / -1; }
fieldset.field { border: 1px solid #d5d8dd; border-radius: 4px; padding: 6px 10px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
label.inline { display: inline-flex; gap: 6px; align-items: center; }
input, select, textarea { font: inherit; padding: 5px 7px; border: 1px solid #8a8f98; border-radius: 4px; background: #fff; color: var(--ink); }
input[type=checkbox], input[type=radio] { padding: 0; }
button, .button { font: inherit; padding: 6px 12px; border: 1px solid var(--accent); border-radius: 4px; background: #fff; color: var(--accent); cursor: pointer; text-decoration: none; display: inline-block; }
button.primary { background: var(--accent); color: #fff; }
button.danger { border-color: var(--err); color: var(--err); }
button:disabled { opacity: 0.55; cursor: not-allowed; }
:focus-visible { outline: 3px solid #f2a900; outline-offset: 2px; }
[aria-invalid=true] { border: 2px solid var(--err); background: #fff2f3; }
.hint { color: var(--muted); font-size: 0.88rem; margin: 2px 0; }
.warn { color: var(--warn); font-weight: 600; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dropzone { border: 2px dashed #8a8f98; border-radius: 6px; padding: 18px; text-align: center; cursor: pointer; }
.dropzone.over { border-color: var(--accent); background: #eef5fc; }
.mapper { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 6px 16px; }
.mapper fieldset { grid-column: 1 / -1; border: 1px solid #d5d8dd; border-radius: 4px; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 6px 16px; }
.map-item { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-items: center; }
.map-item .sample { grid-column: 2; color: var(--muted); font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.issues { padding-left: 18px; }
.issues li.error { color: var(--err); }
.issues li.warning { color: var(--warn); }
.status-ok { color: #135e1c; font-weight: 600; }
.status-err { color: var(--err); font-weight: 600; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; margin-top: 10px; }
th, td { border: 1px solid #d5d8dd; padding: 4px 6px; text-align: left; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.has-error { background: #fff2f3; }
tr.has-warning { background: #fff9ec; }
.foot { color: var(--muted); font-size: 0.85rem; padding-bottom: 24px; }
.small-h { font-size: 1rem; margin: 12px 0 4px; }
.license-list { padding-left: 18px; }
.license-list li { margin: 4px 0; }
.license-list li.expired { color: var(--muted); }
.license-list button { padding: 2px 8px; font-size: 0.88rem; }
/* Site chrome + static pages (scripts/pages.mjs) */
.site-header { background: #fff; border-bottom: 1px solid #d5d8dd; }
.site-wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.site-header .site-wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; }
.site-header nav { display: flex; gap: 16px; }
.site-header nav a, .site-footer a, .prose a, .lede a, .hint a { color: var(--accent); }
.site-footer { color: var(--muted); font-size: 0.85rem; border-top: 1px solid #d5d8dd; margin-top: 24px; padding: 8px 0 24px; }
.lede { max-width: 820px; }
body.doc { background: #fff; }
.prose { max-width: 820px; }
.prose h1 { font-size: 1.7rem; margin: 10px 0 12px; }
.prose h2 { font-size: 1.25rem; margin: 22px 0 8px; }
.prose h3 { font-size: 1.05rem; margin: 16px 0 6px; }
.prose table { width: auto; }
.crumbs { font-size: 0.88rem; color: var(--muted); margin-top: 14px; }
.cta { background: #f3f7fb; margin-top: 26px; }
a.primary-link { background: var(--accent); color: #fff; }
.guide-list li { margin: 8px 0; }
