/* BBBS web UI — hand-authored CSS (no build step; Tailwind not used in NC task because r6 has no Node).
   Palette: primary #2166C2, bg #F3F5F8, card #fff, text #243247, border #DCE3EC. */

:root {
  --blue: #2166C2;
  --blue-dark: #18549F;
  --bg: #F3F5F8;
  --card: #FFFFFF;
  --text: #243247;
  --muted: #67748A;
  --border: #DCE3EC;
  --danger: #B3261E;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.55;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: #EEF2F7; padding: 1px 5px; border-radius: 4px; font-size: .85em; word-break: break-all; }

[x-cloak] { display: none !important; }
.hidden { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* layout */
.notice-band {
  background: #E8EFF9; color: var(--blue-dark); font-size: .78rem;
  padding: 4px 16px; text-align: center;
}
.topbar { background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.topbar-inner {
  max-width: 1280px; margin: 0 auto; padding: 8px 16px;
  display: flex; align-items: center; gap: 16px;
}
.brand { font-weight: 700; font-size: 1.2rem; color: var(--blue); letter-spacing: .5px; }
.brand-dot { color: var(--muted); }
.topbar-search { flex: 1; max-width: 480px; }
.topbar-search input {
  width: 100%; padding: 7px 12px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--bg); font-size: .9rem;
}
.topbar-user { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-link { font-size: 1.05rem; text-decoration: none; }
.me-slot { display: flex; align-items: center; gap: 8px; }

.shell {
  max-width: 1280px; margin: 16px auto; padding: 0 16px;
  display: grid; grid-template-columns: 200px minmax(0, 1fr) 280px; gap: 20px;
}
.col-left, .col-right { min-width: 0; }
.col-main { min-width: 0; }

.sidenav { display: flex; flex-direction: column; gap: 2px; }
.sidenav a {
  padding: 8px 12px; border-radius: 8px; color: var(--text); font-weight: 500;
}
.sidenav a:hover { background: #E8EDF4; text-decoration: none; }
#community-navigation .sidebar-primary a[data-auth-only][hidden] { display: none !important; }
.sidenav-cats { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
.sidenav-cats a { padding: 6px 12px; font-size: .88rem; border-radius: 8px; color: var(--muted); }
.sidenav-cats a:hover { background: #E8EDF4; color: var(--text); text-decoration: none; }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px;
}
.side-card h2, .side-title { font-size: .95rem; margin: 0 0 8px; }
.side-me-body { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { margin: 6px 0; }

.page-title { font-size: 1.25rem; margin: 4px 0 14px; }
.section-title { font-size: 1.02rem; margin: 4px 0 10px; }
.page-narrow { max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* forms */
.input {
  width: 100%; padding: 8px 12px; border: 1px solid var(--border);
  border-radius: 8px; font: inherit; color: var(--text); background: #fff;
}
.input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.select { width: auto; }
textarea.input { resize: vertical; }
.field-label { display: block; font-size: .85rem; font-weight: 600; margin: 10px 0 4px; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }

.btn {
  display: inline-block; padding: 7px 16px; border-radius: 8px;
  border: 1px solid var(--border); background: #fff; color: var(--text);
  font: inherit; font-size: .9rem; cursor: pointer;
}
.btn:hover { background: #F0F4FA; text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--blue-dark); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* composer */
.composer-card textarea { margin-bottom: 8px; }
.composer-type { display: flex; gap: 16px; margin-bottom: 8px; font-size: .9rem; }
.composer-title { margin-bottom: 8px; }
.composer-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.file-label { font-size: .88rem; color: var(--blue); cursor: pointer; }
.no-composer { margin: -6px 0 14px; }
.media-thumbs { margin-top: 6px; }
.thumb-chip { font-size: .8rem; background: #E8EFF9; border-radius: 6px; padding: 2px 8px; margin-right: 6px; }
.thumb-x { border: 0; background: none; cursor: pointer; color: var(--muted); }

/* feed */
.feed-tabs { display: flex; gap: 4px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.feed-tabs a, .feed-tabs button {
  padding: 7px 14px; border: 0; background: none; font: inherit;
  color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent;
}
.feed-tabs a.active, .feed-tabs button.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.feed-tabs a:hover, .feed-tabs button:hover { text-decoration: none; color: var(--blue); }

.post-card { padding: 12px 14px; }
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.avatar { border-radius: 6px; background: #E8EDF4; flex: none; }
.avatar-lg { border-radius: 10px; }
.author { font-weight: 600; }
.post-title { font-size: 1.05rem; margin: 6px 0; }
.post-title a { color: var(--text); }
.post-full .post-title { font-size: 1.25rem; }
.post-body { white-space: pre-wrap; word-break: break-word; margin: 4px 0; }
.post-media img { max-width: 100%; border-radius: 8px; margin: 6px 4px 0 0; border: 1px solid var(--border); }
.post-tags { margin-top: 6px; }
.post-actions { display: flex; gap: 4px; margin-top: 8px; align-items: center; flex-wrap: wrap; }
.action-btn {
  border: 0; background: none; color: var(--muted); font: inherit; font-size: .85rem;
  padding: 4px 8px; border-radius: 6px; cursor: pointer; text-decoration: none;
}
.action-btn:hover { background: #EFF3F9; color: var(--text); text-decoration: none; }
.action-btn.on { color: var(--blue); font-weight: 600; }
.owner-actions { display: inline-flex; gap: 2px; margin-left: auto; }
.chip {
  display: inline-block; font-size: .75rem; background: #E8EFF9; color: var(--blue-dark);
  border-radius: 999px; padding: 1px 10px; margin-right: 6px; vertical-align: middle;
}
.inline-tag { color: var(--blue); }

/* comments */
.comments-section { margin-top: 18px; }
.comment-node { margin-bottom: 10px; }
.comment-card { padding: 10px 12px; margin-bottom: 0; }
.reply-form { margin-top: 8px; display: grid; gap: 6px; }

/* states */
.state { padding: 28px 16px; text-align: center; color: var(--muted); }
.empty-state, .notfound-state { background: var(--card); border: 1px dashed var(--border); border-radius: var(--radius); }
.error-state { background: #FCF0EF; border: 1px solid #EAC8C5; border-radius: var(--radius); }
.error-text { color: var(--danger); font-size: .88rem; margin: 6px 0; }
.spinner {
  display: inline-block; width: 14px; height: 14px; vertical-align: -2px;
  border: 2px solid var(--border); border-top-color: var(--blue);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.load-more { text-align: center; margin: 8px 0 24px; }

/* auth */
.auth-card { max-width: 640px; margin: 0 auto; }
.cred-list dt { font-weight: 600; font-size: .85rem; margin-top: 10px; }
.cred-list dd { margin: 2px 0 0; }
.cred-warning {
  background: #FFF7E0; border: 1px solid #EAD9A0; color: #6B5A17;
  border-radius: 8px; padding: 10px 12px; font-size: .88rem; margin: 10px 0;
}
.tag-group { margin: 12px 0; }
.tag-cat { font-size: .9rem; margin: 8px 0 6px; }
.tag-options { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-check {
  display: inline-flex; align-items: center; gap: 6px; font-size: .88rem;
  border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; cursor: pointer;
}
.tag-check:has(input:checked) { border-color: var(--blue); background: #E8EFF9; }
.tag-check input { accent-color: var(--blue); }

/* search / lists */
.search-form { padding: 12px; }
.search-row { display: flex; gap: 8px; flex-wrap: wrap; }
.search-row .input[type="search"], .search-row input.input { flex: 1; min-width: 200px; }
.result-list { list-style: none; margin: 0; padding: 0; }
.result-item { padding: 10px 14px; margin-bottom: 8px; }
.result-item.unread { border-left: 3px solid var(--blue); }
.result-link { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; color: inherit; }
.result-link:hover { text-decoration: none; }
.result-link:hover strong { color: var(--blue); }

/* profile */
.profile-card { padding: 18px; }
.profile-head { display: flex; align-items: center; gap: 16px; }
.profile-name { margin: 0; font-size: 1.2rem; }
.profile-tags { margin: 10px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.session-item { display: flex; align-items: center; gap: 10px; justify-content: space-between; }

/* messages */
.message-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; max-height: 60vh; overflow-y: auto; }
.message-row { display: flex; }
.message-row.mine { justify-content: flex-end; }
.bubble { max-width: 72%; padding: 8px 12px; margin-bottom: 0; border-radius: 12px; }
.message-row.mine .bubble { background: #E8EFF9; }
.msg-body { white-space: pre-wrap; word-break: break-word; }

/* footer */
.footer { text-align: center; color: var(--muted); font-size: .82rem; padding: 24px 0 32px; }

/* responsive */
@media (max-width: 1080px) {
  .shell { grid-template-columns: 56px minmax(0, 1fr); }
  .col-right { display: none; }
  .sidenav a { font-size: .8rem; padding: 8px 6px; text-align: center; }
  .sidenav-cats a { text-align: center; font-size: .72rem; padding: 5px 4px; }
}
@media (max-width: 720px) {
  .shell { grid-template-columns: 1fr; margin-top: 10px; gap: 10px; }
  .col-left { display: none; }
  .topbar-search { display: none; }
  .topbar-inner { padding: 8px 12px; }
  .bubble { max-width: 88%; }
  .card { padding: 12px; }
}

/* 2026-10: original ink / butter / pastel visual system. */
:root { --blue: #343959; --blue-dark: #252945; --bg: #faf7ef; --text: #292e48; --muted: #666b80; --border: #e5e3ec; --radius: 16px; }
.ui-icon { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 12px; background: #fff; }
.skip-link:focus { top: 12px; }
.notice-band { background: #fff0c2; color: #565030; padding: 7px 16px; }
.topbar { background: #252945; border: 0; box-shadow: 0 4px 20px #25294512; }
.topbar-inner { min-height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: #fff9e8; white-space: nowrap; letter-spacing: 1px; }
.brand-dot { color: #f2ce50; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #f2ce50; color: #252945; }
.topbar-search { position: relative; }
.topbar-search > .ui-icon { position: absolute; left: 13px; top: 12px; color: #c7cada; }
.topbar-search input { background: #41455f; border-color: #535771; border-radius: 10px; padding: 11px 12px 11px 42px; color: white; }
.topbar-search input::placeholder { color: #d3d5e1; }
.topbar-user > a, .topbar-user .me-slot a { color: #fff9e8; }
.topbar-user .btn { background: #41455f; border-color: #666b85; }
.icon-link { display: grid; place-items: center; width: 36px; height: 36px; background: #41455f; border-radius: 10px; }
.icon-link:hover { background: #5b5e78; }
.shell { margin-top: 26px; gap: 24px; grid-template-columns: 184px minmax(0, 1fr) 260px; }
.sidenav { gap: 7px; }
.sidenav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.sidenav a .ui-icon { color: #666b85; }
.sidenav a:hover { background: #eeebf5; }
.sidenav a[aria-current="page"] { background: #edbdc8; color: #252945; }
.sidenav a[aria-current="page"] .ui-icon { color: #252945; }
.sidenav-cats { position: static; border-top: 1px solid var(--border); padding-top: 16px; margin-top: 24px; gap: 6px; }
.sidenav-cats a { display: flex; align-items: center; gap: 10px; color: #555a70; }
.sidenav-cats a::before { content: ''; width: 9px; height: 9px; border-radius: 3px; background: #edbdc8; flex: none; }
.sidenav-cats a:nth-child(3n+2)::before { background: #9ed8da; }
.sidenav-cats a:nth-child(3n)::before { background: #e1ba4c; }
.card { box-shadow: 0 4px 16px #25294504; padding: 20px; margin-bottom: 18px; }
.side-card { border: 0; padding: 20px; }
.side-title { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.side-title .ui-icon { width: 32px; height: 32px; padding: 7px; border-radius: 10px; background: #252945; color: white; }
.account-card { background: #bce9e8; }
.community-card { background: #e2def2; }
.community-card .plain-list li { margin: 12px 0; color: #50546d; }
.welcome-card { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #f2ce50; border-radius: 18px; padding: 26px; margin-bottom: 22px; overflow: hidden; }
.welcome-copy { position: relative; z-index: 1; }
.eyebrow { font-size: .74rem; letter-spacing: .08em; font-weight: 600; color: #554b2b; }
.welcome-card h1 { margin: 10px 0; font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.35; letter-spacing: -.04em; }
.welcome-card p { color: #534b31; font-size: .88rem; margin: 0 0 18px; }
.welcome-card .btn { display: inline-flex; align-items: center; gap: 10px; }
.welcome-art { width: 170px; min-width: 110px; flex: 0 1 170px; }
.composer-card { border-top: 4px solid #bce9e8; }
.no-composer { background: #eeebf6; border-radius: 12px; padding: 13px 16px; margin: 0 0 18px; }
.feed-tabs { padding: 5px; background: #edeaf4; border: 0; border-radius: 12px; gap: 5px; }
.feed-tabs a { flex: 1; text-align: center; border: 0; border-radius: 9px; padding: 9px; }
.feed-tabs a.active { background: #252945; color: #fff; }
.post-card { padding: 22px; }
.post-head { margin-bottom: 14px; }
.avatar { border-radius: 12px; }
.post-body { line-height: 1.8; }
.post-actions { border-top: 1px solid #f0edf4; padding-top: 12px; margin-top: 16px; gap: 8px; }
.action-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
.action-btn .ui-icon { width: 18px; height: 18px; }
.action-btn.on { background: #f9e6eb; color: #833f58; }
.chip { background: #eeebf6; color: #54516f; padding: 3px 10px; }
.post-tags .chip:nth-child(even) { background: #e3f3f1; color: #326662; }
.file-label { display: inline-flex; gap: 6px; align-items: center; }
.empty-state { background: #f3f0fa; border: 1px dashed #cfc9e2; }
.profile-card { border-top: 7px solid #bce9e8; }
.message-row.mine .bubble { background: #e0f2ef; }
:focus-visible { outline: 3px solid #99751b; outline-offset: 3px; }
.topbar :focus-visible { outline-color: #f2ce50; }
@media (max-width: 1080px) {
  .shell { grid-template-columns: 160px minmax(0, 1fr); }
  .sidenav a { text-align: left; font-size: .9rem; padding: 12px; }
  .sidenav-cats a { text-align: left; font-size: .85rem; }
}
@media (max-width: 720px) {
  .shell { grid-template-columns: minmax(0, 1fr); padding: 0 12px; margin-top: 16px; }
  .topbar-inner { min-height: 64px; gap: 8px; }
  .topbar-user { gap: 6px; }
  .icon-link { width: 30px; height: 34px; }
  .brand { font-size: 1rem; gap: 5px; }
  .brand-mark { width: 28px; height: 30px; }
  .me-slot { gap: 4px; font-size: .8rem; }
  .me-slot .btn { padding: 6px 8px; }
  .welcome-card { padding: 22px 18px; }
  .welcome-art { width: 105px; min-width: 76px; flex-basis: 105px; }
  .welcome-card h1 { font-size: 1.35rem; }
  .welcome-card p { font-size: .8rem; }
  .card, .post-card { padding: 16px; }
  .settings-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* Frosted canvas and luminous glass panels; opaque fallback stays readable. */
:root { --bg: #f4f0e7; --border: #ffffffb8; }
html { min-height: 100%; background: #f4f0e7; }
body {
  min-height: 100vh;
  background:
    url('/assets/frost-grain.svg'),
    radial-gradient(ellipse at 7% 12%, #f8dc87a6 0, transparent 45%),
    radial-gradient(ellipse at 93% 26%, #acdeda9c 0, transparent 43%),
    radial-gradient(ellipse at 64% 85%, #d4c3e7a6 0, transparent 48%),
    linear-gradient(135deg, #f8f1df, #f0edf4 55%, #e5f0ec);
  background-attachment: fixed;
}
.notice-band { background: #fff2cbbf; border-bottom: 1px solid #ffffff80; }
.topbar {
  background: linear-gradient(115deg, #4c506de8, #252945ed 58%, #393d5be8);
  border-top: 1px solid #ffffff30;
  border-bottom: 1px solid #ffffff42;
  box-shadow: 0 8px 28px #34335124, inset 0 1px #ffffff18;
}
.topbar-search input, .icon-link {
  background: linear-gradient(145deg, #ffffff26, #ffffff0d);
  border: 1px solid #ffffff30;
  box-shadow: inset 0 1px 0 #ffffff24, 0 3px 8px #171a3220;
}
.card, .feed-tabs, .no-composer, .empty-state, .welcome-card {
  border: 1px solid #ffffffbf;
  box-shadow: 0 12px 30px #48436110, 0 2px 5px #48436108,
    inset 0 1px 0 #fffffff2, inset 0 -1px 0 #ffffff80;
}
.card {
  background: linear-gradient(135deg, #fffffff0, #ffffffa6 52%, #f9f7ffbf);
}
.account-card {
  background: linear-gradient(135deg, #e2ffffeb, #bce9e8b8 58%, #cfeae5c7);
}
.community-card {
  background: linear-gradient(135deg, #f4efffeb, #dcd4efb8 58%, #e8deedc7);
}
.welcome-card {
  background:
    linear-gradient(115deg, #ffffff63, transparent 46%, #fff9dd42),
    linear-gradient(145deg, #f9df84ed, #f2ce50d9 64%, #efd077db);
  box-shadow: 0 14px 32px #a78b3920, inset 0 1px 0 #fffbeee6, inset 0 -1px 0 #fff7cb99;
}
.feed-tabs, .no-composer { background: linear-gradient(135deg, #ffffffad, #e9e3f4b8); }
.feed-tabs a.active {
  background: linear-gradient(145deg, #505572, #2b2f4b);
  box-shadow: inset 0 1px #ffffff36, 0 3px 8px #25294524;
}
.sidenav a[aria-current="page"] {
  background: linear-gradient(130deg, #f9dce5df, #edbdc8bd);
  box-shadow: inset 0 1px #ffffffd9, 0 5px 14px #89576810;
  border: 1px solid #ffffffad;
}
.empty-state { background: linear-gradient(135deg, #ffffffb8, #eee7f6b8); }
.btn {
  box-shadow: inset 0 1px 0 #ffffff80, 0 2px 5px #3439590a;
}
.btn-primary {
  background: linear-gradient(145deg, #535974, #30354f);
  border-color: #646a84;
  box-shadow: inset 0 1px 0 #ffffff40, 0 5px 12px #25294526;
}
.input { background: #ffffffce; border-color: #d6d4e0; box-shadow: inset 0 2px 4px #34395906, 0 1px #ffffffa6; }
.post-actions { border-top-color: #dcd9e780; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar { -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%); }
  .card, .welcome-card, .feed-tabs, .no-composer, .empty-state {
    -webkit-backdrop-filter: blur(18px) saturate(125%);
    backdrop-filter: blur(18px) saturate(125%);
  }
}
@media (max-width: 720px) {
  body { background-attachment: scroll; }
  .card, .welcome-card, .feed-tabs, .no-composer, .empty-state {
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .card { background: #fcfbfe; }
  .account-card { background: #d3efec; }
  .community-card { background: #e5def2; }
  .welcome-card { background: #f6d772; }
  .topbar { background: #30344f; }
  .card, .welcome-card, .feed-tabs, .no-composer, .empty-state, .topbar {
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
}

/* Keep navigation and categories in one scrolling sticky column. */
.col-left { position: sticky; top: 96px; align-self: start; max-height: calc(100dvh - 112px); overflow-y: auto; scrollbar-width: thin; }
.sidenav, .sidenav-cats { position: static; }
.sidenav-cats::before { content: '板块'; padding: 0 12px 6px; color: var(--muted); font-size: .78rem; letter-spacing: .08em; }

/* Community disclosure lives with the site information in the footer. */
.footer .notice-band { max-width: 880px; margin: 0 auto 12px; padding: 0 20px; background: transparent; border: 0; color: var(--muted); line-height: 1.8; }

/* Larger member portraits, retaining the native pixel artwork. */
.avatar { object-fit: cover; image-rendering: pixelated; }
.post-head { gap: 14px; }
.avatar-lg { border-radius: 16px; }

/* Spacious brand footer: one introduction, useful navigation, one disclosure. */
.footer { margin-top: 48px; padding: 0; text-align: left; color: #d4d6e2; background: linear-gradient(120deg, #373b58f5, #252945fa 65%, #3c3c59f5); border-top: 1px solid #ffffff8c; box-shadow: 0 -12px 40px #3439590b, inset 0 1px #ffffff24; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 48px 32px 22px; }
.footer-top { display: flex; justify-content: space-between; gap: 64px; padding-bottom: 36px; }
.footer-brand { font-size: 1.65rem; gap: 10px; }
.footer-brand .brand-mark { width: 44px; height: 44px; border-radius: 12px; box-shadow: inset 0 1px #fff4bb, 0 6px 16px #14172b33; }
.footer-tagline { margin: 20px 0 10px; font-size: 1.15rem; color: #fff8e3; letter-spacing: .04em; }
.footer-about { margin: 0; line-height: 1.9; color: #c6c9db; font-size: .87rem; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(130px, 1fr)); gap: 56px; padding-top: 5px; }
.footer-nav h2 { color: #faf4e5; font-size: .9rem; margin: 0 0 18px; font-weight: 600; }
.footer-nav a { display: block; width: fit-content; color: #c6c9db; font-size: .85rem; padding: 6px 0; }
.footer a:hover { color: #f2ce50; }
.footer-bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; border-top: 1px solid #ffffff24; padding-top: 20px; }
.footer-signature { font-size: .72rem; color: #c5c8db; letter-spacing: .06em; flex-shrink: 0; }
.footer-signature span { color: #f2ce50; padding: 0 8px; }
.footer-disclosure { margin: 0; max-width: 570px; font-size: .74rem; color: #bfc3d5; line-height: 1.8; }
@media (max-width: 720px) {
  .footer { margin-top: 32px; }
  .footer-inner { padding: 32px 22px 24px; }
  .footer-top { flex-direction: column; gap: 28px; padding-bottom: 26px; }
  .footer-nav { gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-nav h2 { margin-bottom: 10px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* Official reference links fit alongside the existing footer navigation. */
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 40px; }
.footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-nav a { overflow-wrap: anywhere; }
@media (max-width: 1000px) { .footer-top { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
@media (max-width: 480px) { .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; } }

.community-stats { padding: 18px 20px; }
.community-stats-heading { display: flex; align-items: center; gap: 8px; }
.community-stats-heading h2 { font-size: .9rem; margin: 0; }
.community-stats-heading > span { font-size: .75rem; color: var(--muted); margin-left: auto; }
.community-stats-heading > .ui-icon { color: #73718e; width: 17px; height: 17px; }
.community-stats-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 14px; margin: 16px 0 12px; }
.community-stats-grid > .stat-latest { grid-column: 1; grid-row: 1 / 3; }
.community-stats-grid > div { min-width: 0; border-right: 1px solid #d6d1e570; padding-right: 16px; }
.community-stats-grid > div:nth-child(3), .community-stats-grid > div:nth-child(5) { border-right: 0; padding-right: 0; }
.community-stats-grid > div:nth-child(2), .community-stats-grid > div:nth-child(3) { border-bottom: 1px solid #d6d1e570; padding-bottom: 14px; }
.community-stats-grid dt { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .73rem; }
.community-stats-grid dt .ui-icon { width: 15px; height: 15px; }
.community-stats-grid dd { margin: 7px 0 0; padding-left: 36px; font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-latest dd { font-size: .95rem; line-height: 1.6; }
@media (max-width: 600px) {
  .community-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .community-stats-grid > .stat-latest { grid-column: 1 / -1; grid-row: auto; }
  .community-stats-grid > div { border-right: 0; border-bottom: 0; padding-right: 0; }
}

/* Community overview: dark glass with larger pastel icon tiles. */
.community-stats {
  color: #fff9e9;
  background: linear-gradient(125deg, #505573ed, #2b304deb 62%, #393b5beb);
  border-color: #ffffff59;
  box-shadow: 0 12px 30px #25294526, inset 0 1px #ffffff40, inset 0 -1px #ffffff12;
}
.community-stats-heading { gap: 10px; }
.community-stats-heading h2 { font-size: 1rem; }
.community-stats-heading > .ui-icon { width: 26px; height: 26px; color: #f2ce50; }
.community-stats-heading > span { color: #d3d6e5; }
.community-stats-grid { margin-top: 20px; column-gap: 28px; row-gap: 16px; }
.community-stats-grid > div { border-right-color: #ffffff26; }
.community-stats-grid > div:nth-child(2), .community-stats-grid > div:nth-child(3) { border-bottom-color: #ffffff26; }
.community-stats-grid dt { color: #dce0f0; gap: 8px; flex-wrap: wrap; font-size: .76rem; }
.community-stats-grid dt .ui-icon { width: 34px; height: 34px; padding: 7px; border-radius: 10px; color: #252945; background: #edbdc8; box-shadow: inset 0 1px #ffffff80, 0 3px 8px #15172b22; }
.community-stats-grid > div:nth-child(2) dt .ui-icon { background: #bce9e8; }
.community-stats-grid > div:nth-child(3) dt .ui-icon { background: #f2ce50; }
.community-stats-grid > div:nth-child(4) dt .ui-icon { background: #d9d1f0; }
.community-stats-grid dd { color: #fff9e9; font-size: 1.65rem; }
.community-stats-grid .stat-latest dd { font-size: 1rem; }
.community-stats-grid dd a { color: #fff2bd; }
.community-stats .error-text, .community-stats .error-text .action-btn { color: #ffd2da; }
.community-stats :focus-visible { outline-color: #f2ce50; }
@media (prefers-reduced-transparency: reduce) { .community-stats { background: #303550; } }

/* Compact overview keeps the larger icons while reducing vertical spacing. */
.community-stats { padding: 12px 18px; }
.community-stats-heading { gap: 7px; }
.community-stats-heading h2 { font-size: .88rem; }
.community-stats-heading > .ui-icon { width: 21px; height: 21px; }
.community-stats-grid { margin: 10px 0 6px; gap: 12px; }
.community-stats-grid dt { gap: 6px; }
.community-stats-grid dt .ui-icon { width: 30px; height: 30px; padding: 5px; border-radius: 8px; }
.community-stats-grid dd { margin-top: 2px; font-size: 1.4rem; line-height: 1.3; }
.community-stats-grid .stat-latest dd { font-size: .95rem; }
@media (max-width: 600px) { .community-stats-grid { row-gap: 10px; } }

/* Original category symbols replace decorative dots. */
.sidenav-cats a::before { content: none; }
.sidenav-cats a { gap: 10px; padding: 9px 12px; }
.category-icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: #955c75; }
.sidenav-cats a:nth-child(3n+2) .category-icon { color: #397b7b; }
.sidenav-cats a:nth-child(3n) .category-icon { color: #927018; }
.sidenav-cats a[aria-current="page"] { background: #e8e9f3b8; color: #292e48; font-weight: 600; }

/* Full-width FAQ keeps long explanations readable on small screens. */
.footer-faq { grid-column: 1 / -1; }
.footer-faq-answer { color: #c6c9db; font-size: .85rem; line-height: 1.7; }
.footer-faq-answer summary { cursor: pointer; width: fit-content; }
.footer-faq-answer p { margin: 12px 0 0; }

/* Human registration password feedback; button colors stay local to this form. */
.password-feedback { margin: 12px 0 18px; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: #f8fafc; }
.password-feedback-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.password-feedback-heading h2 { margin: 0; font-size: .9rem; }
.password-rule-count { color: #526174; font-size: .8rem; }
.password-rule-list { display: grid; gap: 7px; list-style: none; margin: 12px 0; padding: 0; }
.password-rule-list li { display: flex; align-items: baseline; gap: 8px; font-size: .85rem; }
.password-rule-icon { flex: 0 0 18px; text-align: center; font-weight: 700; }
.password-rule-pass { color: #15803d; }
.password-rule-fail { color: #b42318; }
.password-strength-reference { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: #64748b; font-size: .8rem; }
.password-strength-track { display: block; width: 120px; height: 6px; overflow: hidden; border-radius: 6px; background: #e2e8f0; }
.password-strength-track > span { display: block; height: 100%; border-radius: inherit; transition: width .15s ease; }
.password-strength-reference[data-level="1"] .password-strength-track > span { background: #b42318; }
.password-strength-reference[data-level="2"] .password-strength-track > span { background: #d97706; }
.password-strength-reference[data-level="3"] .password-strength-track > span { background: #15803d; }
.btn.registration-submit, .btn.registration-submit:disabled, .btn.registration-submit.is-incomplete:hover { background: #d1d5db; border-color: #d1d5db; color: #374151; box-shadow: none; opacity: 1; cursor: not-allowed; }
.btn.registration-submit.is-ready:not(:disabled) { background: #c24e00; border-color: #c24e00; color: #fff; cursor: pointer; }
.btn.registration-submit.is-ready:hover:not(:disabled) { background: #a94200; border-color: #a94200; }
@media (prefers-reduced-motion: reduce) { .password-strength-track > span { transition: none; } }
