:root {
  --bg: #f7f6f2; --card: #ffffff; --ink: #1f2933; --muted: #5f6b76; --line: #dfe2e5;
  --brand: #1f6f5c; --brand-ink: #ffffff; --good: #1f7a3f; --warn: #a15c00; --bad: #b42318;
  --soft: #eef5f2;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
a { color: var(--brand); }
header { background: var(--card); border-bottom: 1px solid var(--line); }
.bar { max-width: 980px; margin: 0 auto; padding: 14px 16px 0; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.logo { font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.tabs { max-width: 980px; margin: 0 auto; padding: 0 16px; display: flex; gap: 4px; overflow-x: auto; }
.tabs a { padding: 12px 14px; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent;
  white-space: nowrap; font-weight: 600; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--brand); }
main { max-width: 980px; margin: 0 auto; padding: 24px 16px 60px; }
h1 { font-size: 26px; margin: 0 0 6px; }
h2 { font-size: 20px; margin: 28px 0 8px; }
p.lead { color: var(--muted); margin: 0 0 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin: 14px 0; }
label { display: block; font-weight: 600; margin: 16px 0 6px; }
.hint { color: var(--muted); font-size: 14px; font-weight: 400; margin: -2px 0 6px; }
input[type=text], input[type=email], input[type=date], input[type=time], input[type=number], input[type=password],
textarea, select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; background: #fff; color: var(--ink); }
textarea { min-height: 90px; resize: vertical; }
textarea.post { min-height: 150px; }
button, .btn { display: inline-block; background: var(--brand); color: var(--brand-ink); border: 0;
  border-radius: 8px; padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
button.ghost, .btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
button.quiet { background: transparent; color: var(--muted); border: 1px solid var(--line); }
button:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.msg { padding: 12px 14px; border-radius: 8px; margin: 0 0 16px; background: var(--soft); }
.msg.err { background: #fdecea; color: var(--bad); }
.working { padding: 14px; border-radius: 8px; background: #fff8e6; border: 1px solid #f2d79a; margin: 0 0 16px; }
.pill { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 99px;
  background: var(--soft); color: var(--brand); }
.pill.good { background: #e7f4ec; color: var(--good); }
.pill.warn { background: #fff4e0; color: var(--warn); }
.pill.bad { background: #fdecea; color: var(--bad); }
.pill.muted { background: #eef0f2; color: var(--muted); }
.idea h2 { margin-top: 0; }
.post { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.post .head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.problems { color: var(--bad); font-size: 14px; margin: 6px 0; padding-left: 18px; }
.thumb { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.grid .card { margin: 0; padding: 10px; }
.grid img, .grid video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.small { font-size: 14px; color: var(--muted); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); font-size: 15px; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; padding: 10px 0 10px 40px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 8px; width: 28px; height: 28px;
  border-radius: 50%; background: var(--brand); color: #fff; text-align: center; line-height: 28px; font-weight: 700; }
.center { max-width: 440px; margin: 60px auto; }
details summary { cursor: pointer; color: var(--muted); }
@media (max-width: 600px) { h1 { font-size: 22px; } .thumb { width: 90px; height: 90px; } }
