:root {
  --bg: #f7f8f6; --ink: #17211b; --muted: #5b6760; --line: #dfe4e0; --card: #fff;
  --brand: #0f5132; --brand-ink: #fff; --ok: #146c43; --warn: #8a5a00; --danger: #b02a37;
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.55; -webkit-text-size-adjust: 100%; }
a { color: var(--brand); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem; z-index: 10; }
:focus-visible { outline: 3px solid #2f80ed; outline-offset: 2px; }
.top { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1.25rem; border-bottom: 1px solid var(--line); background: #fff; }
.brand { display: flex; gap: .6rem; align-items: center; font-weight: 650; text-decoration: none; color: var(--ink); }
.top nav a { margin-left: 1rem; }
main { max-width: 980px; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.2; text-wrap: balance; margin: 0 0 .75rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 46rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin: 2rem 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem 1.4rem; box-shadow: 0 1px 2px rgba(23,33,27,.04); }
.card h2 { font-size: 1.05rem; margin-top: 0; }
.narrow { max-width: 620px; margin: 0 auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; color: var(--muted); margin: 0; }
.steps li { margin-bottom: .4rem; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .6rem 1.1rem; border-radius: 8px; border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; touch-action: manipulation; }
.btn:hover { filter: brightness(1.1); }
.btn-ghost { background: #fff; color: var(--brand); }
.btn-danger { background: #fff; color: var(--danger); border-color: var(--danger); }
.btn-sm { min-height: 34px; padding: .3rem .7rem; font-size: .88rem; }
.btn-google { background: #fff; color: #1f1f1f; border-color: #747775; font-family: Roboto, Arial, sans-serif; font-weight: 500; }
.notice { background: #e8f3ec; border: 1px solid #b7dbc4; border-radius: 8px; padding: .75rem 1rem; }
.notice.warn { background: #fff6e0; border-color: #f0d48a; }
.badge { display: inline-block; padding: .1rem .55rem; border-radius: 999px; background: #eceeed; font-size: .82rem; font-weight: 600; }
.badge.ok { background: #d8efe1; color: var(--ok); }
.badge.warn { background: #fdecc8; color: var(--warn); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.danger-zone { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.stack { display: grid; gap: .9rem; }
label { display: grid; gap: .3rem; font-weight: 500; }
input, textarea { font: inherit; font-size: 16px; padding: .55rem .7rem; border: 1px solid #b9c2bc; border-radius: 8px; background: #fff; color: var(--ink); }
fieldset { border: 1px solid var(--line); border-radius: 10px; margin: 0 0 1rem; padding: .5rem 1rem 1rem; }
legend { font-weight: 650; padding: 0 .3rem; }
.choice { display: flex; gap: .7rem; align-items: flex-start; padding: .6rem 0; border-bottom: 1px solid var(--line); font-weight: 400; cursor: pointer; }
.choice:last-child { border-bottom: 0; }
.choice input { margin-top: .35rem; min-width: 20px; min-height: 20px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.inline-form { display: flex; gap: 1rem; align-items: end; flex-wrap: wrap; margin: 1rem 0 1.5rem; }
.inline-form label { flex: 1 1 200px; }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 1.5rem; font-variant-numeric: tabular-nums; }
.table th, .table td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: #f1f3f1; font-size: .85rem; }
code { background: #eef1ef; padding: .05rem .3rem; border-radius: 4px; overflow-wrap: anywhere; }
.copy { display: block; margin-top: .4rem; padding: .5rem; user-select: all; }
.doc { max-width: 760px; margin: 0 auto; }
.doc h2 { margin-top: 2rem; font-size: 1.2rem; }
.foot { border-top: 1px solid var(--line); padding: 1.5rem 1.25rem; text-align: center; color: var(--muted); font-size: .88rem; }
@media (max-width: 600px) { .kv { grid-template-columns: 1fr; } .kv dt { margin-top: .4rem; } .table { font-size: .9rem; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- v2 refresh ---------- */
:root { --bg: #f4f6f5; --brand: #0b6b45; --brand-2: #12a36a; --line: #e3e8e5; --shadow: 0 1px 2px rgba(16,24,20,.05), 0 4px 16px rgba(16,24,20,.05); }
body { font-size: 15.5px; }
.top { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.top nav a:hover { color: var(--brand); }
.hero { padding: 2.5rem 2rem; border-radius: 18px; color: #fff; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); box-shadow: var(--shadow); }
.hero .lead { color: rgba(255,255,255,.88); }
.hero a { color: #fff; }
.card { border-radius: 14px; box-shadow: var(--shadow); }
.grid .card { transition: transform .15s ease, box-shadow .15s ease; }
.grid .card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16,24,20,.08); }
.grid .card h2::before { content: ""; display: block; width: 32px; height: 4px; border-radius: 4px; background: var(--brand-2); margin-bottom: .7rem; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: .6rem; }
.steps li { counter-increment: s; position: relative; padding: .7rem 1rem .7rem 3.2rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin: 0; }
.steps li::before { content: counter(s); position: absolute; left: .9rem; top: .65rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
.btn { border-radius: 10px; transition: filter .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn.busy { opacity: .65; cursor: progress; }
.btn-google { gap: .6rem; padding-left: 1rem; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.btn-google::before { content: "G"; font-weight: 700; color: #4285f4; font-size: 1.1rem; }
.btn-google:hover { background: #f8faff; filter: none; }
input, textarea, .search { transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus, .search:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(18,163,106,.18); }
.search { width: 100%; max-width: 320px; margin: 0 0 .8rem; font: inherit; padding: .55rem .8rem; border: 1px solid #b9c2bc; border-radius: 10px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin: 1rem 0 1.25rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1.1rem; box-shadow: var(--shadow); display: grid; }
.stat-n { font-size: 1.8rem; font-weight: 750; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-l { color: var(--muted); font-size: .85rem; }
.stat.ok .stat-n { color: var(--ok); }
.stat.warn { border-color: #f0d48a; background: #fffaf0; }
.stat.warn .stat-n { color: var(--warn); }
.inline-form { box-shadow: var(--shadow); }
.table-wrap { overflow-x: auto; margin-bottom: 1.5rem; border-radius: 12px; box-shadow: var(--shadow); }
.table-wrap .table { margin: 0; min-width: 560px; }
.table tbody tr:hover { background: #f8faf9; }
.table tbody tr:last-child td { border-bottom: 0; }
.notice { display: grid; gap: .4rem; justify-items: start; }
.choice { border-radius: 10px; padding: .7rem .6rem; border: 1px solid transparent; }
.choice:hover { background: #f4f8f6; }
.choice:has(input:checked) { border-color: var(--brand-2); background: #eef8f3; }
.danger-zone { background: #fff7f7; border: 1px solid #f3d0d3; border-radius: 12px; padding: 1rem 1.2rem; }
.danger-zone h2 { color: var(--danger); margin-top: 0; font-size: 1.05rem; }
@media (max-width: 600px) { .hero { padding: 1.75rem 1.25rem; } main { padding: 1.25rem 1rem 2.5rem; } }
