:root {
  --bg: #f6f7f9; --surface: #ffffff; --text: #1b2430; --muted: #5b6675; --line: #e2e6ec;
  --brand: #1a6b5a; --brand-ink: #ffffff; --brand-soft: #e3f2ee;
  --warn: #8a5a00; --warn-soft: #fff4dc; --bad: #a32323; --bad-soft: #fde8e8; --ok: #17643f; --ok-soft: #e0f5e9;
  --radius: 14px; --shadow: 0 1px 2px rgba(20,30,40,.06), 0 8px 24px rgba(20,30,40,.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11161c; --surface: #1a212a; --text: #eaeff5; --muted: #9aa6b5; --line: #2a3441;
    --brand: #4fc3a1; --brand-ink: #06231b; --brand-soft: #16332c;
    --warn: #f0c25b; --warn-soft: #33290f; --bad: #ff8f8f; --bad-soft: #3a1b1b; --ok: #6fdb9f; --ok-soft: #12301f;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--brand); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
header.top { border-bottom: 1px solid var(--line); background: var(--surface); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 700; letter-spacing: -.01em; color: var(--text); text-decoration: none; font-size: 1.1rem; }
nav a { margin-left: 16px; font-size: .95rem; }
main { padding: 32px 0 56px; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 12px; }
h2 { font-size: 1.25rem; margin: 0 0 8px; letter-spacing: -.01em; }
p { margin: 0 0 12px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.hero { padding: 24px 0 8px; }
.btn { display: inline-block; border: 0; cursor: pointer; border-radius: 999px; padding: 13px 24px; font: inherit;
  font-weight: 600; text-decoration: none; background: var(--brand); color: var(--brand-ink); }
.btn:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.danger { background: var(--bad-soft); color: var(--bad); border: 1px solid var(--bad); }
.btn:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 28px 0; }
.step { font-size: .8rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.badge.active { background: var(--ok-soft); color: var(--ok); }
.badge.pending, .badge.paused { background: var(--warn-soft); color: var(--warn); }
.badge.auth_error { background: var(--bad-soft); color: var(--bad); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.muted { color: var(--muted); font-size: .92rem; }
.post { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.post:first-of-type { border-top: 0; }
.post img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; background: var(--line); }
.post .noimg { width: 96px; height: 96px; border-radius: 10px; background: var(--brand-soft); }
.post p { margin: 0 0 4px; white-space: pre-line; }
.list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.list button { width: 100%; text-align: left; background: var(--surface); color: var(--text); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; font: inherit; cursor: pointer; }
.list button:hover { border-color: var(--brand); }
.list strong { display: block; }
.notice { border-radius: 12px; padding: 14px 16px; background: var(--brand-soft); }
details.danger { margin-top: 28px; }
details summary { cursor: pointer; color: var(--muted); }
input[type=text] { font: inherit; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); width: min(100%, 260px); }
footer.bottom { border-top: 1px solid var(--line); padding: 20px 0 40px; color: var(--muted); font-size: .9rem; }
footer.bottom a { margin-right: 16px; }
.legal h2 { margin-top: 24px; }
.legal li { margin-bottom: 6px; }
@media (max-width: 520px) { .post { grid-template-columns: 72px 1fr; } .post img, .post .noimg { width: 72px; height: 72px; } }
