:root, html[data-theme="light"] {
  --ink: #1c1914;
  --paper: #f4efe4;
  --panel: #fffdf7;
  --rule: #d4c8b0;
  --pine: #2f4a3c;
  --pine-deep: #1d2f26;
  --link: #2f4a3c;
  --crimson: #8b2e2e;
  --muted: #5c564c;
  --on-pine: #f4efe4;
  --input-bg: #fff;
  --header-top: #15241d;
  --header-bg: #1d2f26;
  --header-ink: #f4efe4;
  --header-line: #3d5a4b;
  --header-muted: #d4c8b0;
  --subnav-bg: #2f4a3c;
  --subnav-ink: #f4efe4;
  --shadow: rgba(28, 25, 20, 0.06);
  color-scheme: light;
}
html[data-theme="dark"] {
  --ink: #f3efe6;
  --paper: #121816;
  --panel: #1c2621;
  --rule: #3a4941;
  --pine: #2f4a3c;
  --pine-deep: #1a2c24;
  --link: #9dceb4;
  --crimson: #e7a8a4;
  --muted: #b7aea0;
  --on-pine: #f4efe4;
  --input-bg: #24302a;
  --header-top: #0c1210;
  --header-bg: #0c1210;
  --header-ink: #f4efe4;
  --header-line: #2c3b34;
  --header-muted: #cbbfae;
  --subnav-bg: #1a2822;
  --subnav-ink: #f4efe4;
  --shadow: rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --ink: #f3efe6;
    --paper: #121816;
    --panel: #1c2621;
    --rule: #3a4941;
    --pine: #2f4a3c;
    --pine-deep: #1a2c24;
    --link: #9dceb4;
    --crimson: #e7a8a4;
    --muted: #b7aea0;
    --on-pine: #f4efe4;
    --input-bg: #24302a;
    --header-top: #0c1210;
    --header-bg: #0c1210;
    --header-ink: #f4efe4;
    --header-line: #2c3b34;
    --header-muted: #cbbfae;
    --subnav-bg: #1a2822;
    --subnav-ink: #f4efe4;
    --shadow: rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Georgia, "Times New Roman", ui-serif, serif;
  font-variant-ligatures: none;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.55;
}
a { color: var(--link); }
a:hover { color: var(--crimson); }
:focus-visible { outline: 2px solid var(--crimson); outline-offset: 2px; }
.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.site-header {
  background:
    radial-gradient(900px 180px at 100% 0%, rgba(139, 46, 46, 0.35), transparent 55%),
    linear-gradient(180deg, var(--header-top) 0%, var(--header-bg) 100%);
  color: var(--header-ink);
  padding: 0.85rem 0 0;
}
.site-header a { color: var(--header-ink); text-decoration: none; }
.header-bar { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.header-tools { display: flex; align-items: center; gap: 0.45rem; flex: none; }
.brand { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; min-width: 0; }
.brand h1 { font-size: 1.35rem; margin: 0; letter-spacing: 0.04em; }
.brand h1 a, .network a, .nav a, .subnav a, .theme-toggle, .menu-toggle, .btn, .btn-ghost {
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.ico { width: 1.05em; height: 1.05em; flex: none; display: block; }
.brand h1 .ico-mark { width: 1.45rem; height: 1.45rem; }
.theme-icon-sun, html[data-theme="dark"] .theme-icon-moon, html[data-theme="dark"] .when-light { display: none; }
html[data-theme="dark"] .theme-icon-sun, html[data-theme="dark"] .when-dark { display: inline-flex; }
.when-dark { display: none; }
.menu-icon { width: auto; height: auto; background: none; position: static; display: inline-flex; }
.menu-icon::before, .menu-icon::after { content: none; }
.menu-icon .ico:last-child { display: none; }
body.menu-open .menu-icon .ico:first-child { display: none; }
body.menu-open .menu-icon .ico:last-child { display: block; }
.brand .tag { font-size: 0.85rem; color: var(--header-muted); }
.theme-toggle, .menu-toggle {
  background: transparent;
  color: var(--header-ink);
  border: 1px solid var(--header-line);
  border-radius: 999px;
  min-height: 44px;
  padding: 0.35rem 0.85rem;
}
.theme-toggle:hover, .menu-toggle:hover { background: transparent; color: var(--header-ink); }
.menu-toggle { display: none; align-items: center; gap: 0.45rem; }
.header-link {
  color: var(--header-ink);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.35rem;
}
.header-link.join {
  background: #f4efe4;
  color: var(--pine-deep);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
}
.user-menu { position: relative; }
.user-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.2rem 0.7rem 0.2rem 0.25rem;
  border-radius: 999px;
  border: 1px solid var(--header-line);
  background: transparent;
  color: var(--header-ink);
}
.user-toggle:hover, .user-toggle[aria-expanded="true"] { background: rgba(244, 239, 228, 0.08); color: var(--header-ink); }
.user-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f4efe4;
  color: var(--pine-deep);
}
.user-toggle-name { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  z-index: 40;
  min-width: 14.5rem;
  padding: 0.4rem;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 0.9rem;
  box-shadow: 0 16px 40px var(--shadow);
}
.user-panel a, .user-panel button {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 44px;
  padding: 0.4rem 0.7rem;
  border-radius: 0.55rem;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  background: transparent;
}
.user-panel a:hover, .user-panel button:hover { background: var(--paper); color: var(--ink); }
.user-identity { font-weight: 700; }
.user-panel form { margin: 0.25rem 0 0; padding-top: 0.25rem; border-top: 1px solid var(--rule); }
.user-panel .btn-ghost { border: 0; color: var(--ink); }
@media (max-width: 720px) {
  .user-toggle-name { display: none; }
  .user-toggle { padding-right: 0.25rem; }
}
.network, .nav {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center;
  font-size: 0.95rem;
}
.network {
  margin-top: 0.35rem; padding: 0.55rem 0;
  border-top: 1px solid var(--header-line);
}
.network-name, .network-kicker {
  letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.72rem;
}
.network-name { color: var(--header-muted); margin-right: 0.35rem; }
.network a { opacity: 0.85; }
.network a.active, .network a:hover { opacity: 1; text-decoration: underline; }
.nav {
  margin-top: 0; padding: 0.55rem 0 0.7rem; border-top: 1px solid var(--header-line);
}
.nav form { margin: 0; }
.site-header .btn-ghost {
  color: var(--header-ink);
  border-color: var(--header-muted);
  background: transparent;
  min-height: 44px;
}
.site-header .btn-ghost:hover { color: var(--header-ink); background: transparent; }
.nav a { opacity: 0.85; }
.nav a.active, .nav a:hover { opacity: 1; text-decoration: underline; }
.nav a.join {
  opacity: 1;
  background: #f4efe4;
  color: var(--pine-deep);
  text-decoration: none;
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
}
.subnav {
  background: var(--subnav-bg);
  color: var(--subnav-ink);
  font-size: 0.9rem;
}
.subnav .wrap { display: flex; flex-wrap: wrap; gap: 1rem; padding: 0.45rem 0; }
.subnav a { color: var(--subnav-ink); text-decoration: none; opacity: 0.8; }
.subnav a.active, .subnav a:hover { opacity: 1; text-decoration: underline; }
main { padding: 2rem 0 3rem; }
.hero { margin-bottom: 2rem; }
.hero h2 { font-size: 2.1rem; margin: 0 0 0.4rem; }
.lede { color: var(--muted); max-width: 42rem; }
.stage {
  background:
    radial-gradient(700px 220px at 90% 0%, rgba(244, 239, 228, 0.14), transparent 50%),
    linear-gradient(145deg, #15241d 0%, #2f4a3c 58%, #6d3030 160%);
  color: #f4efe4;
  border-radius: 1.15rem;
  padding: 2rem 1.5rem 1.6rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 16px 40px rgba(21, 36, 29, 0.18);
}
.stage h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.15; margin: 0 0 0.45rem; }
.stage .lede, .stage .eyebrow { color: #e7dccb; }
.stage a { color: #f4efe4; }
.eyebrow { margin: 0 0 0.35rem; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.75rem; }
.finder { display: flex; gap: 0.55rem; align-items: end; flex-wrap: wrap; margin: 1.1rem 0 0.9rem; max-width: 40rem; }
.finder label { flex: 1 1 16rem; color: #f4efe4; }
.finder input {
  width: 100%;
  border: 0;
  padding: 0.75rem 0.85rem;
  font-size: 1.05rem;
  background: #fffdf7;
  color: #1c1914;
  caret-color: #1c1914;
  color-scheme: light;
}
.finder input::placeholder { color: #5c564c; opacity: 1; }
[data-finder-results].is-loading { opacity: 0.55; }
.stage .btn-ghost { color: #f4efe4; border-color: #e7dccb; }
.section-title { margin: 0 0 0.85rem; font-size: 1.35rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.card {
  background: var(--panel);
  border: 1px solid var(--rule);
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  box-shadow: 0 8px 24px var(--shadow);
}
.composer { margin-bottom: 1.25rem; }
.editor { display: grid; gap: 0.4rem; }
.editor-tools { display: none; gap: 0.35rem; flex-wrap: wrap; }
.editor[data-ready="1"] .editor-tools { display: flex; }
.editor-tools button {
  min-height: 44px; min-width: 44px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--rule); border-radius: 0.5rem;
  padding: 0.2rem 0.7rem;
}
.editor-tools button:hover { background: var(--paper); color: var(--ink); }
.editor-surface {
  display: none;
  min-height: 8rem;
  border: 1px solid var(--rule);
  background: var(--input-bg);
  color: var(--ink);
  border-radius: 0.5rem;
  padding: 0.6rem 0.7rem;
}
.editor[data-ready="1"] .editor-surface { display: block; }
.editor-surface:focus { outline: 2px solid var(--crimson); outline-offset: 2px; }
.editor-surface:empty::before { content: attr(data-placeholder); color: var(--muted); }
.editor[data-ready="1"] .editor-source {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.editor-surface p { margin: 0 0 0.5rem; }
.thread { display: grid; gap: 0.65rem; margin-bottom: 1rem; }
.bubble {
  max-width: min(36rem, 100%);
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 1rem;
  padding: 0.7rem 0.85rem;
}
.bubble.mine { margin-left: auto; background: var(--pine); color: var(--on-pine); border-color: transparent; }
.bubble.mine .meta, .bubble.mine a { color: #f4efe4; }
.bubble-body p { margin: 0 0 0.45rem; }
.bubble-body p:last-child { margin-bottom: 0; }
.card h3 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.meta { color: var(--muted); font-size: 0.88rem; }
form.stack { display: grid; gap: 0.75rem; max-width: 32rem; }
form.stack.screen {
  max-width: none;
  width: 100%;
}
form.stack.screen > button[type="submit"] { justify-self: start; }
.screen .editor-surface,
.screen textarea { min-height: 12rem; width: 100%; }
label { display: grid; gap: 0.25rem; font-size: 0.95rem; }
input, textarea, select {
  font: inherit; padding: 0.5rem 0.6rem;
  border: 1px solid var(--rule); background: var(--input-bg); color: var(--ink);
}
button, .btn {
  display: inline-block;
  background: var(--pine);
  color: var(--on-pine);
  border: 0;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
}
button:hover, .btn:hover { background: var(--pine-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--pine); border: 1px solid var(--pine); }
.flash { background: #e7efe6; border: 1px solid #b7cbb4; padding: 0.6rem 0.8rem; margin-bottom: 1rem; }
.errors { background: #f8e6e4; border: 1px solid #d8b0ab; padding: 0.6rem 0.8rem; margin-bottom: 1rem; }
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.25rem 0 2rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; }
.site-footer a { color: var(--link); }
.download-list { display: grid; gap: 0.75rem; margin-bottom: 1.75rem; }
.download-list h3 { margin: 0 0 0.25rem; }
.download-hash {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.4;
  word-break: break-all;
}
.auth-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.network-menu {
  margin-top: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 1rem;
  padding: 1rem 1.1rem 1.15rem;
}
.network-kicker { margin: 0; color: var(--crimson); }
.network-menu .meta { margin: 0.25rem 0 0.85rem; }
.network-menu ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.65rem;
}
.network-menu a {
  display: grid; gap: 0.1rem;
  text-decoration: none; color: inherit;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  padding: 0.7rem 0.8rem;
}
.network-menu a span {
  letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; color: var(--crimson);
}
.network-menu a:hover { border-color: var(--pine); color: var(--pine); }
.prose { max-width: 42rem; }
.prose p { margin: 0 0 1rem; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.45rem 0.3rem; border-bottom: 1px solid var(--rule); }
.badge { display: inline-block; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--crimson); }
.tree-board { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1rem 0 2rem; }
.tree-node {
  display: grid; gap: 0.15rem;
  min-width: 10rem; max-width: 16rem;
  background: var(--panel); border: 1px solid var(--rule);
  padding: 0.65rem 0.75rem; text-decoration: none; color: inherit;
}
.tree-node.gen-0 { border-color: var(--pine); }
.tree-node.gen-1 { opacity: 0.95; }
.tree-node.gen-2, .tree-node.gen-3 { opacity: 0.88; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.member-card {
  display: grid; justify-items: stretch; align-content: start;
  background: var(--panel); border: 1px solid var(--rule);
  padding: 0; text-decoration: none; color: inherit; text-align: center;
  border-radius: 1rem; overflow: hidden;
  box-shadow: 0 10px 28px var(--shadow);
}
.member-card:hover { border-color: var(--pine); transform: translateY(-2px); }
.member-media {
  background: linear-gradient(180deg, #1d2f26 0%, #3d5c4c 100%);
  display: grid; justify-items: center;
  padding: 1.15rem 0 1rem;
}
.member-body { display: grid; justify-items: center; gap: 0.15rem; padding: 0.75rem 0.7rem 1rem; }
.member-avatar { position: relative; width: 96px; height: 96px; }
.member-photo, .member-fallback {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  background: var(--pine); color: #f4efe4;
}
.member-fallback {
  display: block; overflow: hidden; border-radius: 50%;
}
.member-fallback svg { display: block; width: 100%; height: 100%; }
.member-avatar .member-photo { position: absolute; inset: 0; }
.member-name { font-weight: 700; line-height: 1.2; }
.member-stat { color: var(--muted); font-size: 0.82rem; line-height: 1.3; }
@media (max-width: 520px) {
  .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.member-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin: 0 0 1rem;
}
.member-tools label { color: var(--muted); font-size: 0.85rem; }
.member-tools select { min-height: 44px; min-width: 14rem; border-radius: 0.65rem; background: var(--input-bg); color: var(--ink); }
.member-listing.is-loading { opacity: 0.55; }
.pager {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
}
.pager-range { margin: 0; color: var(--muted); font-size: 0.92rem; }
.pager-pages { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.pager-pages a,
.pager-pages span[aria-current="page"],
.pager-off {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
}
.pager-pages a[aria-label] { min-width: 44px; padding-left: 0.35rem; padding-right: 0.35rem; }
.pager-pages span[aria-current="page"] {
  background: var(--pine);
  color: var(--on-pine);
  border-color: var(--pine);
  font-weight: 700;
}
.pager-pages a:hover { border-color: var(--pine); color: var(--ink); }
.pager-off { color: var(--muted); opacity: 0.55; }
.pager-gap { min-width: 1.25rem; text-align: center; color: var(--muted); border: 0; }
.post-head { display: flex; gap: 0.65rem; align-items: center; margin-bottom: 0.5rem; }
.post-avatar { width: 40px; height: 40px; flex: none; }
.post-avatar .member-photo, .post-avatar .member-fallback { width: 40px; height: 40px; font-size: 1rem; }
.search-row { display: flex; gap: 0.5rem; align-items: end; margin: 0 0 1.25rem; max-width: 32rem; }
.search-row label { flex: 1; }
.person-row { display: flex; gap: 0.75rem; align-items: center; }
.person-row .member-avatar { width: 48px; height: 48px; flex: none; }
.person-row .member-photo, .person-row .member-fallback { width: 48px; height: 48px; font-size: 1.1rem; }
.profile-cover {
  background:
    radial-gradient(500px 180px at 100% 0%, rgba(244, 239, 228, 0.16), transparent 45%),
    linear-gradient(120deg, #15241d 0%, #2f4a3c 62%, #6d3030 150%);
  color: #f4efe4;
  border-radius: 1.15rem;
  padding: 1.4rem 1.25rem 1.2rem;
  margin-bottom: 1.25rem;
}
.profile-cover h2, .profile-cover a, .profile-cover .meta { color: #f4efe4; }
.profile-cover .btn-ghost { color: #f4efe4; border-color: #e7dccb; }
.profile-cover .profile-actions .btn { color: var(--on-pine); }
.profile-head {
  display: flex; gap: 1.25rem; align-items: center;
  margin-bottom: 0;
}
.profile-head h2 { margin: 0 0 0.15rem; }
.share-note { margin: 0.45rem 0 0; }
.profile-avatar {
  width: 112px; height: 112px; flex: none;
  border-radius: 50%; overflow: hidden;
  border: 3px solid var(--panel);
  box-shadow: 0 0 0 1px var(--rule);
  background: var(--pine);
}
.profile-avatar img, .profile-avatar svg { width: 112px; height: 112px; object-fit: cover; display: block; }
.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.2rem, 1fr));
  gap: 0.45rem;
  margin: 1rem 0 0;
}
.profile-stats div { margin: 0; }
.profile-stats a, .profile-stats [data-stat] {
  display: grid;
  justify-items: center;
  text-align: center;
  min-height: 44px;
  padding: 0.4rem 0.35rem;
  border-radius: 0.65rem;
  background: rgba(244, 239, 228, 0.1);
  color: #f4efe4;
  text-decoration: none;
}
.profile-stats dd { margin: 0; font-size: 1.05rem; font-weight: 700; line-height: 1.2; }
.profile-stats dt {
  margin: 0.1rem 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e7dccb;
}
.profile-cover .profile-stats a:hover { background: rgba(244, 239, 228, 0.18); color: #fff; }
.profile-actions { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.profile-actions form { margin: 0; }
.social-links, .social-list { list-style: none; margin: 0.85rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 0.75rem; }
.social-links a, .social-list a { font-size: 0.92rem; }
.social-list { display: grid; gap: 0.85rem; }
.social-list li { display: grid; gap: 0.15rem; }
.social-list form { margin: 0.2rem 0 0; }
.social-list .btn-ghost { padding: 0.25rem 0.55rem; font-size: 0.85rem; }
.section-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 0.15rem;
  margin: 0.85rem 0 0;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.section-nav a {
  flex: 1 0 auto;
  text-align: center;
  min-height: 44px;
  padding: 0.75rem 0.7rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.section-nav a[aria-current="page"] {
  color: var(--link);
  border-bottom-color: var(--link);
  font-weight: 700;
}
.profile-tabs { margin-top: 0.5rem; }
.tablist {
  display: flex; flex-wrap: wrap; gap: 0.25rem 0.15rem;
  border-bottom: 1px solid var(--rule);
}
.profile-tabs .tab { flex: 1 1 auto; text-align: center; white-space: nowrap; }
@media (max-width: 720px) {
  .profile-head { align-items: flex-start; }
  .profile-tabs .tablist {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-bottom: 0;
  }
  .profile-tabs .tab {
    margin: 0;
    padding: 0.75rem 0.2rem;
    border-bottom: 2px solid var(--rule);
  }
}
.tab {
  background: transparent; color: var(--muted);
  border: 0; border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0.7rem 0.95rem; margin-bottom: -1px;
  font-family: Georgia, "Times New Roman", serif;
}
.tab:hover { background: transparent; color: var(--ink); }
.tab[aria-selected="true"] {
  color: var(--link);
  border-bottom-color: var(--link);
  font-weight: 700;
}
.tabpanel { padding: 1.25rem 0 0.5rem; }
.empty-state {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--rule);
  color: var(--muted);
  padding: 1.75rem 1.25rem;
  text-align: center;
}
.friend-row, .image-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem; }
.friend-row .person-row {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 0.85rem;
  padding: 0.7rem 0.85rem;
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--pine); }
.table-wrap { overflow-x: auto; }
.admin-actions { display: flex; gap: 0.35rem; align-items: center; }
.admin-actions form { margin: 0; }
.admin-actions .btn, .admin-actions button { padding: 0.25rem 0.55rem; font-size: 0.85rem; }
button.btn-danger { background: #8b2e2e; color: #fff; }
form.stack.wide { max-width: 46rem; }
form.stack .split { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 700px) {
  form.stack .split { grid-template-columns: 1fr; }
}
html[data-theme="dark"] .flash { background: #1e3328; border-color: #3d6b52; color: var(--ink); }
html[data-theme="dark"] .errors { background: #3a2422; border-color: #8b4a44; color: #f8e6e4; }
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .brand { flex-direction: column; align-items: flex-start; gap: 0; }
  .brand .tag { display: none; }
  .site-menu { display: none; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-menu {
    display: block;
    max-height: calc(100dvh - 4.25rem);
    overflow-y: auto;
    border-top: 1px solid var(--header-line);
  }
  .network, .nav, .subnav .wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .network a, .nav a, .subnav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.2rem 0;
  }
  .network-name { padding: 0.35rem 0; }
  .nav form, .site-header .btn-ghost { width: 100%; text-align: left; }
  .stage { padding: 1.35rem 1rem 1.15rem; }
  .profile-head { flex-direction: column; align-items: flex-start; }
  main { padding: 1.25rem 0 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .menu-icon::before, .menu-icon::after, .member-card { transition: none; }
}
.legal { max-width: 42rem; }
.legal h2 { margin: 0.2rem 0 0.6rem; }
.legal h3 { margin: 1.6rem 0 0.4rem; font-size: 1.15rem; }
.legal p { margin: 0.45rem 0 0.8rem; line-height: 1.6; }
.legal a { color: inherit; }
