:root {
  --ink: #17211d;
  --muted: #607069;
  --paper: #f5f4ef;
  --white: #fffefb;
  --line: #ced6d1;
  --green: #176b55;
  --green-dark: #0d4c3c;
  --amber: #9a5b11;
  --red: #a6312d;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { font-size: 17px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { font: inherit; }
a { color: var(--green-dark); }
.site-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1040px; margin: 0 auto; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 750; text-decoration: none; }
.brand span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--green-dark); color: white; font-size: .78rem; letter-spacing: .05em; }
main { width: min(900px, calc(100% - 36px)); margin: 0 auto; padding: 58px 0 70px; }
footer { border-top: 1px solid var(--line); color: var(--muted); text-align: center; padding: 24px 18px 40px; font-size: .88rem; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.025em; }
h1 { max-width: 760px; margin: 8px 0 18px; font-size: clamp(2.15rem, 6vw, 4rem); }
h2 { font-size: clamp(1.35rem, 4vw, 1.85rem); }
.eyebrow, .meta { margin: 0; color: var(--muted); font-size: .77rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.lead { max-width: 760px; font-size: clamp(1.08rem, 2.5vw, 1.35rem); color: #34443d; }
.intro, .auth, .progress-view, .report-head { padding: 16px 0 32px; }
.auth { max-width: 620px; }
.form { display: grid; gap: 10px; max-width: 560px; margin-top: 30px; }
.form.wide { max-width: none; }
label { font-weight: 720; }
input { width: 100%; min-height: 52px; padding: 10px 13px; color: var(--ink); background: var(--white); border: 1px solid #9eaaa4; border-radius: 8px; }
input:focus { outline: 3px solid rgba(23, 107, 85, .2); border-color: var(--green); }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 10px 18px; border: 0; border-radius: 8px; background: var(--green); color: white; font-weight: 750; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { background: var(--green-dark); }
.button.secondary { background: transparent; color: var(--green-dark); border: 1px solid var(--green); }
.text-button { min-height: 44px; padding: 8px; color: var(--green-dark); background: transparent; }
.text-button:hover { background: transparent; text-decoration: underline; }
.notice { margin: 24px 0; padding: 16px 18px; border-left: 5px solid var(--muted); background: var(--white); }
.notice.success { border-color: var(--green); }
.notice.warning { border-color: var(--amber); background: #fff8e9; }
.notice.danger { border-color: var(--red); background: #fff0ef; }
.steps { padding-left: 24px; }
.steps li { margin: 12px 0; }
code { padding: 2px 6px; border-radius: 5px; background: #e6e9e6; }
pre { max-width: 100%; overflow: auto; padding: 16px; border-left: 5px solid var(--amber); background: #fff8e9; }
pre code { padding: 0; background: transparent; }
.hint { margin-top: 3px; color: var(--muted); font-size: .88rem; }
.manual-db { margin: 28px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
summary { color: var(--green-dark); font-weight: 750; cursor: pointer; }
.check { display: flex; align-items: center; gap: 10px; margin: 20px 0; }
.check input { width: 24px; min-height: 24px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field-grid label { display: grid; gap: 6px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions form { margin: 0; }
button:disabled { cursor: not-allowed; opacity: .5; }
.progress-track { height: 13px; overflow: hidden; margin: 34px 0 8px; background: #dfe4e1; border-radius: 20px; }
.progress-track span { display: block; height: 100%; background: var(--green); transition: width .2s ease; }
.facts { display: flex; flex-wrap: wrap; gap: 32px; margin: 32px 0; }
.facts span { font-size: 1.05rem; font-weight: 750; }
.facts small { display: block; color: var(--muted); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 35px 0 16px; }
.filters button { min-height: 42px; padding: 7px 12px; color: var(--green-dark); background: transparent; border: 1px solid #a9b6b0; }
.filters button.active { color: white; background: var(--green-dark); border-color: var(--green-dark); }
.finding { padding: 30px 0; border-top: 1px solid var(--line); }
.finding h2 { margin: 6px 0 14px; }
.finding details { margin-top: 18px; }
.finding li { margin: 9px 0; }
.finding[hidden] { display: none; }
.checks { margin-top: 52px; }
.checks ul { padding: 0; border-top: 1px solid var(--line); list-style: none; }
.checks li { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.checks small { display: block; color: var(--muted); }
.checks em { white-space: nowrap; color: var(--muted); font-style: normal; }
.clear-form { margin-top: 50px; padding-top: 28px; border-top: 1px solid var(--line); }
.danger-button { background: transparent; color: var(--red); border: 1px solid var(--red); }
.danger-button:hover { background: var(--red); color: white; }
.empty { padding: 30px 0; border-top: 1px solid var(--line); }
.fallback { margin-top: 22px; }
.js .fallback { display: none; }

@media (max-width: 640px) {
  html { font-size: 16px; }
  .site-header { padding: 12px 18px; }
  main { width: min(100% - 30px, 900px); padding-top: 38px; }
  .field-grid { grid-template-columns: 1fr; }
  .checks li { display: block; }
  .checks em { display: inline-block; margin-top: 6px; }
  button, .button { width: 100%; min-height: 52px; }
  .filters button { width: auto; }
  .text-button { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
