:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #566176;
  --paper: #f4f6fa;
  --panel: #ffffff;
  --line: #cbd3e1;
  --accent: #075e54;
  --accent-dark: #04483f;
  --focus: #a83f00;
  --warning: #fff7da;
  --included: #096b42;
  --excluded: #9b2c2c;
  --review: #825500;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.55; }
a { color: #005ea8; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.skip-link { position: absolute; top: -100px; left: 1rem; z-index: 20; padding: .75rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }
.site-header, main, footer { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.site-header { padding: 3.25rem 0 1.5rem; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 850px; margin-bottom: .5rem; font-size: clamp(2.3rem, 7vw, 4.8rem); line-height: .98; letter-spacing: -.045em; }
h2 { margin-bottom: .65rem; line-height: 1.15; }
h3 { margin-bottom: .3rem; }
.eyebrow, .step { margin-bottom: .3rem; color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.lede { max-width: 760px; color: var(--muted); font-size: 1.12rem; }
.panel { margin-bottom: 1rem; padding: clamp(1rem, 3vw, 1.6rem); border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 4px 18px rgba(23, 32, 51, .05); }
.compact { padding-block: 1rem; }
.warning { border-left: 6px solid #b47800; background: var(--warning); }
.warning p:last-child, .panel p:last-child { margin-bottom: 0; }
.section-heading, .table-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.limit { color: var(--muted); font-size: .86rem; font-weight: 700; text-align: right; }
.input-grid { display: grid; grid-template-columns: minmax(0, .8fr) auto minmax(0, 1.4fr); gap: 1rem; align-items: start; }
label { display: block; font-weight: 750; }
input[type="file"], textarea, select { width: 100%; margin-top: .35rem; border: 1px solid #8d99ad; border-radius: 9px; background: #fff; color: var(--ink); font: inherit; }
input[type="file"] { min-height: 44px; padding: .5rem; }
textarea { min-height: 132px; padding: .7rem; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; }
select { min-height: 44px; padding: .45rem 2rem .45rem .65rem; }
.or { padding-top: 2.25rem; color: var(--muted); font-weight: 800; text-transform: uppercase; }
.hint { margin: .65rem 0 0; color: var(--muted); font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; }
button { min-height: 44px; padding: .65rem 1rem; border: 1px solid #69758a; border-radius: 9px; background: #fff; color: var(--ink); font: inherit; font-weight: 800; cursor: pointer; }
button.primary { border-color: var(--accent); background: var(--accent); color: #fff; }
button:hover:not(:disabled) { border-color: var(--accent-dark); box-shadow: inset 0 0 0 2px var(--accent-dark); }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; }
.status { min-height: 1.6rem; margin: .25rem 0 1rem; font-weight: 750; }
.status.error { color: var(--excluded); }
.results { border-top: 7px solid var(--accent); }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; margin: 1rem 0 1.5rem; }
.summary-card { min-height: 90px; padding: .85rem; border: 1px solid var(--line); border-radius: 11px; background: #f9fafc; }
.summary-card strong { display: block; font-size: 1.65rem; line-height: 1.1; }
.summary-card span { color: var(--muted); font-size: .86rem; }
.table-heading { margin-top: 1.4rem; }
.table-heading p { margin-bottom: .5rem; color: var(--muted); }
.table-heading label { min-width: 220px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: .72rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #edf1f6; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { min-width: 260px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.state-included { color: var(--included); font-weight: 800; }
.state-excluded { color: var(--excluded); font-weight: 800; }
.state-review, .state-missing, .state-unsupported-dynamic { color: var(--review); font-weight: 800; }
.offer { border: 2px solid var(--accent); }
footer { padding: 1rem 0 2.5rem; color: var(--muted); font-size: .9rem; }
.test-page main { padding-top: 2rem; }
.test-summary { padding: 1rem; border-radius: 10px; font-weight: 800; }
.test-summary.pass { background: #dff5e8; color: #075b36; }
.test-summary.fail { background: #fde4e4; color: #8f2525; }
.test-results { padding-left: 1.4rem; }
.result-pass { color: #075b36; }
.result-fail { color: #8f2525; }
@media (max-width: 760px) {
  .site-header, main, footer { width: min(100% - 1rem, 1120px); }
  .site-header { padding-top: 2rem; }
  .input-grid { grid-template-columns: 1fr; }
  .or { padding: 0; text-align: center; }
  .section-heading, .table-heading { display: block; }
  .limit { display: block; margin-bottom: .7rem; text-align: left; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .table-heading label { min-width: 0; }
  .actions button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
