:root { color-scheme:light; --ink:#1c2c22; --muted:#4d6057; --paper:#f4f7f1; --white:#fff; --line:#dbe5d7; --green:#174737; --lime:#d4fb88; --night:#132a20; font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
*, *::before, *::after { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:var(--paper); font-size:1rem; line-height:1.55; }
[hidden] { display:none !important; }
a { color:var(--green); text-underline-offset:.2em; }
button, input, textarea { font:inherit; }
button, .button { cursor:pointer; }
h1, h2, h3, p { margin:0; }
.container { width:min(100% - 2.5rem, 72rem); margin-inline:auto; }
.nav { display:flex; justify-content:space-between; align-items:center; gap:1.5rem; min-height:4.45rem; }
nav { display:flex; align-items:center; gap:1.35rem; flex-wrap:wrap; }
nav a, .brand { color:inherit; font-weight:650; text-decoration:none; }
nav a:hover, .brand:hover { text-decoration:underline; }
.brand { display:inline-flex; gap:.65rem; align-items:center; white-space:nowrap; font-size:1.07rem; letter-spacing:-.04em; }
.brand-icon { width:1.8rem; height:1.8rem; display:inline-flex; align-items:end; gap:2px; justify-content:center; padding:.38rem; border-radius:.45rem; background:var(--lime); }
.brand-icon i { display:block; width:4px; height:45%; background:var(--night); border-radius:1px; }
.brand-icon i:nth-child(2) { height:72%; }
.brand-icon i:nth-child(3) { height:100%; }
.skip-link { position:absolute; inset:.5rem auto auto .5rem; padding:.55rem .8rem; color:var(--ink); background:var(--white); transform:translateY(-170%); z-index:1; }
.skip-link:focus { transform:none; }
.site-header { color:#eef6ee; background:var(--night); border-bottom:1px solid #2e4a3a; }
.hero { padding:clamp(3rem,8vw,6rem) 0; color:#fff; background:radial-gradient(ellipse at 90% 7%,#265243 0%,#162f22 47%,#132a20 100%); }
.hero-inner { display:grid; grid-template-columns:1.12fr .88fr; align-items:center; gap:clamp(1.8rem,7vw,6rem); }
h1 { font-size:clamp(2.45rem,6.8vw,5.35rem); font-weight:780; letter-spacing:-.075em; line-height:.99; }
.hero p { color:#d6e5d9; max-width:37rem; margin:1.45rem 0; font-size:clamp(1rem,2vw,1.18rem); }
.button { display:inline-flex; align-items:center; justify-content:center; min-height:2.9rem; padding:.6rem 1rem; border:1px solid transparent; border-radius:.65rem; font-weight:700; text-decoration:none; white-space:nowrap; }
.button.primary { background:var(--lime); color:#162920; border-color:#b7d878; }
.button.primary:hover { background:#e4ffa9; }
.button.secondary { background:#fff; color:var(--green); border-color:#b9cabb; }
.button.secondary:hover { background:#edf5e8; }
.example { border-radius:1.1rem; padding:1.25rem; background:#f9fdf6; color:var(--ink); border:1px solid #bedcc1; box-shadow:0 24px 55px #0d1e15a8; }
.example-head, .example-line, .example-total { display:flex; justify-content:space-between; align-items:baseline; gap:.7rem; }
.example-head { font-weight:750; padding-bottom:.75rem; flex-wrap:wrap; }
.case-label { font-weight:600; font-size:.84rem; color:#3a5f4e; }
.example-line { border-top:1px solid var(--line); padding:.55rem 0; }
.example-total { padding:.65rem .75rem; border-radius:.55rem; background:#e1f5d2; margin-top:.15rem; font-weight:750; }
.example p { color:#485b50; font-size:.91rem; margin:.65rem 0 0; }
.workspace, .guide { padding:clamp(2.35rem,6vw,4.3rem) 0; scroll-margin-top:1rem; }
.section-head { display:flex; justify-content:space-between; align-items:center; gap:1.2rem; margin-bottom:1.25rem; }
h2 { font-size:clamp(1.65rem,4vw,2.65rem); line-height:1.15; letter-spacing:-.055em; }
.section-head p, .input-card p, .time p, .guide p { color:var(--muted); margin-top:.35rem; }
.input-grid, .guide-grid { display:grid; gap:1rem; }
.input-grid { grid-template-columns:1fr 1fr; }
.input-card { border-radius:.9rem; padding:1.15rem; background:var(--white); border:1px solid var(--line); }
label { display:block; font-weight:700; }
.optional { color:var(--muted); font-size:.85rem; font-weight:500; }
input[type=text], textarea { width:100%; color:var(--ink); background:#f8faf7; border:1px solid #bfccbf; border-radius:.55rem; padding:.65rem .75rem; margin:.6rem 0; }
textarea { resize:vertical; min-height:9.6rem; white-space:pre; font: .88rem/1.5 ui-monospace,Consolas,monospace; }
.file { max-width:100%; font-size:.88rem; margin-top:.25rem; }
.file-label { font-size:.88rem; }
.review-row { display:flex; align-items:end; justify-content:space-between; gap:1.25rem; margin-top:1.4rem; }
.time { flex:1; max-width:30rem; }
.time p { margin-top:0; font-size:.92rem; }
.notice { margin-top:1rem; padding:.75rem .95rem; color:#712f22; background:#fff0e9; border-radius:.6rem; }
#results { margin-top:2.5rem; border-top:1px solid #c9d9cc; padding-top:1.6rem; }
.metrics { display:grid; grid-template-columns:repeat(4,1fr); gap:.7rem; margin-bottom:1rem; }
.metric { display:grid; padding:.75rem 1rem; background:#fff; border-radius:.62rem; border:1px solid var(--line); }
.metric strong { font-size:1.45rem; }
.metric span { font-weight:650; }
.status-short, .status-check { color:#8c3730; }
.status-over { color:#2d5290; }
.status-match { color:#386348; }
.filter { display:flex; align-items:center; gap:.5rem; margin:.8rem 0; }
.filter input { width:1.05rem; height:1.05rem; accent-color:var(--green); }
.table-wrap { overflow:auto; background:#fff; border:1px solid var(--line); border-radius:.65rem; }
table { width:100%; border-collapse:collapse; font-variant-numeric:tabular-nums; }
th, td { padding:.6rem .72rem; text-align:left; border-bottom:1px solid #e2e9e3; }
th { background:#eaf1e8; white-space:nowrap; font-size:.88rem; }
tr:last-child td { border-bottom:0; }
td small { display:block; color:var(--muted); overflow-wrap:anywhere; min-width:7rem; }
.identifier, .variance { font-weight:720; }
.identifier { overflow-wrap:anywhere; }
.guide { padding-top:1.5rem; }
.guide-grid { grid-template-columns:repeat(3,1fr); margin:1.25rem 0; }
.guide-grid div { border-top:2px solid #8ba993; padding-top:.75rem; }
.guide h3 { font-size:1.08rem; }
details { border-bottom:1px solid var(--line); padding:.8rem 0; }
summary { cursor:pointer; font-weight:700; }
.reference { margin-top:1.15rem!important; }
.site-footer { background:#e7eee4; }
.site-footer .nav { font-size:.94rem; }
:focus-visible { outline:3px solid #367cb0; outline-offset:3px; }
@media(max-width:48rem) {
  .hero-inner, .input-grid, .guide-grid { grid-template-columns:1fr; }
  .hero-inner { gap:2rem; }
  .example { max-width:35rem; }
}
@media(max-width:31rem) {
  .container { width:calc(100% - 1.5rem); }
  .nav, .section-head, .review-row { align-items:flex-start; flex-direction:column; gap:.65rem; }
  .nav { min-height:0; padding:1rem 0; }
  nav { gap:1rem; }
  .metrics { grid-template-columns:repeat(2,1fr); }
  .time { width:100%; }
}
