:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, sans-serif;
  background: #f1f4ee;
  color: #1c302c;
  --ink: #1c302c;
  --muted: #4f665e;
  --line: #d6e0d7;
  --accent: #195a48;
  --surface: #fffefa;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #489984;
  outline-offset: 3px;
}
h1, h2, p { margin: 0; }
code, .mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.wrap { overflow-wrap: anywhere; }
.shell { max-width: 1100px; margin: 0 auto; padding-inline: clamp(17px, 5vw, 56px); }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.masthead { min-height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 1.125rem; font-weight: 750; }
.mark { width: 24px; height: 24px; border-radius: 7px; background: var(--accent); position: relative; }
.mark::before, .mark::after { content: ""; position: absolute; border: 1.5px solid white; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); }
.mark::before { left: 5px; top: 5px; } .mark::after { right: 5px; bottom: 5px; }
.site-role { font-size: .875rem; color: var(--muted); font-weight: 650; }
.hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 17px; padding-block: 40px 27px; }
.hero h1 { font-family: Georgia, serif; font-size: clamp(2.25rem, 6vw, 3.6rem); font-weight: 500; letter-spacing: -.06em; line-height: 1.04; }
.hero p { color: var(--muted); margin-top: 11px; }
.layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; padding-bottom: 46px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(17px, 3vw, 24px); min-width: 0; }
.wide { grid-column: 1 / -1; }
h2 { font-size: 1.13rem; letter-spacing: -.022em; margin-bottom: 16px; }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; }
.section-heading h2 { margin: 0; }
label { display: block; font-weight: 650; font-size: .875rem; margin-bottom: 6px; }
input:not([type=checkbox]), textarea { width: 100%; min-width: 0; border: 1px solid #bfcfc3; border-radius: 8px; background: #fff; color: var(--ink); padding: 9px 10px; }
textarea { resize: vertical; }
input + label, .divider { margin-top: 17px; }
.divider { border-top: 1px solid var(--line); padding-top: 17px; }
.actions, .input-action { display: flex; gap: 8px; }
.actions { flex-wrap: wrap; margin-top: 14px; }
button { border: 1px solid var(--accent); background: var(--accent); color: white; border-radius: 8px; padding: 8px 12px; min-height: 39px; font-size: .85rem; font-weight: 700; }
button:hover:not(:disabled) { background: #104536; }
button.secondary { background: #f5f8f3; color: var(--accent); border-color: #bfcfc3; }
button.secondary:hover:not(:disabled) { background: #e7efe7; }
button.compact { padding: 4px 9px; min-height: 32px; }
button.danger { background: #8b3331; border-color: #8b3331; }
button.danger:hover:not(:disabled) { background: #722624; }
.badge { display: inline-flex; width: fit-content; align-items: center; border: 1px solid #c8ded0; border-radius: 999px; background: #e9f4ea; color: #215645; font-size: .8rem; font-weight: 700; padding: 5px 10px; }
.badge.warn { border-color: #ecd3c5; background: #faeee7; color: #7d3425; }
.muted, .hint { color: var(--muted); font-size: .85rem; }
.hint { margin-block: 8px; line-height: 1.45; }
.notice { margin-bottom: 14px; border: 1px solid #c8ded0; border-radius: 8px; background: #e9f4ea; padding: 10px 12px; overflow-wrap: anywhere; }
.notice.error { color: #7d3425; background: #faeee7; border-color: #ecd3c5; }
.field-row, .history li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 14px; font-size: .88rem; padding-block: 9px; }
.field-row code, .history code { overflow-wrap: anywhere; }
details { font-size: .865rem; padding-block: 10px; border-top: 1px solid var(--line); }
details code { display: block; margin-top: 8px; font-size: .8rem; }
summary { cursor: pointer; }
.history { list-style: none; margin: 0; padding: 0; }
.history li { border-bottom: 1px solid var(--line); }
.history small { display: block; margin-top: 3px; }
.words { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding-left: 20px; font-family: ui-monospace, monospace; font-size: .85rem; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .85rem; }
th, td { padding: 9px 8px; border-bottom: 1px solid var(--line); }
th { white-space: nowrap; color: var(--muted); font-weight: 650; }
td code { font-size: .75rem; }
.shares { border: 0; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)); gap: 8px; }
.share { border: 1px solid var(--line); background: #f5f8f3; padding: 9px; border-radius: 8px; }
.share input { accent-color: var(--accent); }
.share button { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 700px) {
  .layout { grid-template-columns: 1fr; }
  .hero { padding-block: 27px 20px; }
}
.member-tabs { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 4px; margin-bottom: 17px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.member-tabs button { color: var(--accent); background: transparent; border-color: transparent; }
.member-tabs button:hover { background: #e7efe7; }
.member-tabs [aria-selected=true], .member-tabs [aria-selected=true]:hover { background: var(--accent); color: white; }
.member-lock { float: right; margin: 8px 0 14px 8px; }
.community-feed, .stack, .feed { display: grid; gap: 13px; }
.community-feed .section-heading { margin-bottom: 0; }
.stack label { margin: 0; }
.stack :is(input, select, textarea) { display: block; margin-top: 5px; }
.stack button { justify-self: start; }
.stack select { width: 100%; font: inherit; color: var(--ink); background: white; border: 1px solid #bfcfc3; border-radius: 8px; padding: 9px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filters button { border-radius: 999px; }
.filters [aria-pressed=false] { background: var(--surface); color: var(--muted); border-color: var(--line); }
.filters [aria-pressed=false]:hover { background: #e7efe7; }
.feed-item { display: grid; gap: 8px; padding-block: 12px; border-top: 1px solid var(--line); min-width: 0; }
.feed-item h3 { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.feed-item p, .contact-value { white-space: pre-wrap; overflow-wrap: anywhere; }
.feed-item details { padding-bottom: 0; }
.feed-item details form { margin-top: 10px; }
.intro-progress { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.contact-value { padding: 11px; border: 1px solid var(--line); border-radius: 8px; margin: 12px 0; background: #f5f8f3; }
.poll-option { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; align-items: center; margin-top: 5px; }
.poll-option button { justify-self: start; overflow-wrap: anywhere; text-align: start; }
.poll-option progress { grid-column: 1 / -1; width: 100%; height: 8px; accent-color: var(--accent); }
