:root {
  color-scheme: light;
  --bg: #f4f3ef;
  --surface: #ffffff;
  --surface-soft: #f8f7f3;
  --surface-strong: #eceae3;
  --text: #1c1b19;
  --muted: #706d66;
  --line: #dedbd2;
  --line-strong: #c9c4b8;
  --gold: #b8922e;
  --gold-deep: #806217;
  --gold-soft: #f4ead0;
  --danger: #a43e45;
  --shadow: 0 12px 40px rgb(31 27 17 / 7%);
  --sidebar-width: 232px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #10110f;
  --surface: #191a17;
  --surface-soft: #1e201c;
  --surface-strong: #282a25;
  --text: #f2f0e9;
  --muted: #aaa69b;
  --line: #32342e;
  --line-strong: #44463f;
  --gold: #d2ad4d;
  --gold-deep: #e0c06b;
  --gold-soft: #322b18;
  --shadow: 0 16px 48px rgb(0 0 0 / 24%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  transition: background-color 160ms ease, color 160ms ease;
}

.route-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  height: 3px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}
.route-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), #f2d98d);
  box-shadow: 0 0 12px color-mix(in srgb, var(--gold) 72%, transparent);
  transform: scaleX(0);
  transform-origin: left;
}
.route-progress.is-visible { opacity: 1; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gold) 45%, transparent);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--text);
  color: var(--surface);
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  overflow-y: auto;
  padding: 22px 14px 18px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(16px);
}

.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 24px; }
.brand-mark {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 12px;
  background: linear-gradient(145deg, var(--gold-soft), var(--surface));
  color: var(--gold-deep);
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1; letter-spacing: .12em; }
.brand-copy strong { font-family: Georgia, serif; font-size: 17px; font-weight: 500; }
.brand-copy small { margin-top: 5px; color: var(--gold-deep); font-size: 9px; font-weight: 800; }

.side-nav { display: flex; min-height: 0; flex: 1; flex-direction: column; }
.side-link {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  margin: 2px 0;
  padding: 7px 9px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 130ms ease, color 130ms ease, transform 130ms ease;
}
.side-link:hover:not(.is-disabled) { background: var(--surface-soft); color: var(--text); transform: translateX(2px); }
.side-link.is-active { background: var(--gold-soft); color: var(--gold-deep); }
.side-link.is-disabled { cursor: not-allowed; opacity: .65; }
.side-link small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; font-weight: 500; }
.nav-icon { display: grid; width: 27px; height: 27px; place-items: center; font-size: 18px; }
.side-label { margin: 22px 9px 8px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.community-links { min-height: 0; flex: 1; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; }
.community-mark {
  display: inline-grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  place-items: center;
  border-radius: 50%;
  background: #b8922e;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 700;
}
.community-mark[data-community="tcg"], .community-hero[data-community="tcg"] { --community-accent: #6d4bc3; }
.community-mark[data-community="finance"], .community-hero[data-community="finance"] { --community-accent: #16805d; }
.community-mark[data-community="fashion"], .community-hero[data-community="fashion"] { --community-accent: #b67a86; }
.community-mark[data-community="art"], .community-hero[data-community="art"] { --community-accent: #2869a6; }
.community-mark[data-community="politik"], .community-hero[data-community="politik"] { --community-accent: #7c2938; }
.community-mark[data-community="questions"], .community-hero[data-community="questions"] { --community-accent: #3f6e8c; }
.community-mark[data-community] { background: var(--community-accent, #b8922e); }

.premium-promo {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 14px;
  padding: 15px;
  border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line));
  border-radius: 14px;
  background: linear-gradient(145deg, var(--gold-soft), var(--surface));
}
.premium-promo-kicker { color: var(--gold-deep); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.premium-promo strong { font-family: Georgia, serif; font-size: 15px; }
.premium-promo > span:not(.premium-promo-kicker) { color: var(--muted); font-size: 11px; line-height: 1.4; }
.premium-promo-action { margin-top: 6px; padding: 8px 9px; border: 1px solid color-mix(in srgb, var(--gold) 48%, var(--line)); border-radius: 8px; background: var(--surface); color: var(--gold-deep); font-size: 10px; font-weight: 800; text-align: center; }
.premium-promo-action:hover { border-color: var(--gold); }

.policy-nav { display: grid; gap: 1px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.policy-nav a { display: flex; min-height: 31px; align-items: center; gap: 9px; padding: 5px 8px; border-radius: 8px; color: var(--muted); font-size: 10px; font-weight: 650; }
.policy-nav a:hover { background: var(--surface-soft); color: var(--text); }
.policy-link-icon { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }

.app-shell { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: grid;
  min-height: 68px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}
.store-back-link { grid-column: 1; justify-self: start; display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 9px; color: var(--muted); font-size: 11px; font-weight: 750; white-space: nowrap; }
.store-back-link:hover { background: var(--surface); color: var(--text); }
.product-tabs { grid-column: 2; display: flex; align-items: center; gap: 5px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.product-tab { min-width: 82px; padding: 8px 14px; border-radius: 8px; color: var(--muted); text-align: center; font-size: 12px; font-weight: 750; letter-spacing: .03em; }
.product-tab.is-active { background: var(--text); color: var(--surface); }
.product-tab.is-disabled { cursor: not-allowed; opacity: .47; }
.product-tab small { margin-left: 3px; font-size: 8px; text-transform: uppercase; }
.topbar-actions { grid-column: 3; display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.theme-toggle { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border: 0; background: transparent; color: var(--muted); }
.theme-toggle-track { display: flex; width: 34px; height: 19px; align-items: center; padding: 2px; border-radius: 99px; background: var(--surface-strong); }
.theme-toggle-track span { width: 15px; height: 15px; border-radius: 50%; background: var(--muted); transition: transform 160ms ease, background 160ms ease; }
html[data-theme="dark"] .theme-toggle-track span { transform: translateX(15px); background: var(--gold); }

.account-chip { display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 12px; font-weight: 700; }
.account-avatar { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; background: var(--gold-soft); color: var(--gold-deep); font-family: Georgia, serif; }
.button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; padding: 8px 16px; border: 1px solid transparent; border-radius: 10px; font-size: 12px; font-weight: 750; }
.button-gold { border-color: var(--gold); background: var(--gold); color: #17130a; }
.button-gold:hover { filter: brightness(1.06); }
.button-quiet { border-color: var(--line); background: var(--surface); color: var(--text); }
.button-light { border-color: rgb(255 255 255 / 45%); background: rgb(255 255 255 / 92%); color: #1a1813; }
.header-login { min-height: 34px; border-radius: 999px; }

.main-content { width: min(100% - 40px, 780px); margin: 0 auto; padding: 36px 0 80px; }
.main-content.is-route-entering { animation: route-enter 180ms ease-out both; }
@keyframes route-enter {
  from { opacity: .35; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.feed-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 4px 4px 28px; }
.eyebrow { color: var(--gold-deep); font-size: 10px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.feed-heading h1, .community-hero h1, .profile-hero h1, .settings-card h1 { margin: 7px 0 6px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 5vw, 42px); font-weight: 500; letter-spacing: -.025em; }
.feed-heading p, .community-hero p { max-width: 570px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.feed-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 10px; color: var(--muted); font-size: 11px; }
.feed-toolbar strong { color: var(--text); font-size: 12px; }
.feed-list { display: grid; gap: 10px; }

.post-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 1px 0 rgb(0 0 0 / 2%); transition: border-color 130ms ease, box-shadow 130ms ease; }
.post-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.post-card.is-appending { animation: post-arrive 220ms ease-out both; }
@keyframes post-arrive {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.post-card.is-local-preview { border-color: color-mix(in srgb, var(--gold) 58%, var(--line)); }
.post-card.is-local-preview .vote-button:disabled { cursor: default; opacity: .55; }
.local-preview-badge { display: inline-flex; padding: 2px 6px; border: 1px dashed var(--gold); border-radius: 999px; color: var(--gold-deep); font-size: 7px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.preview-author { color: var(--text); font-weight: 700; }
.vote-rail { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 13px 6px; border-right: 1px solid var(--line); background: var(--surface-soft); }
.vote-rail strong { font-size: 12px; }
.vote-button { display: grid; width: 29px; height: 27px; place-items: center; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 12px; }
.vote-button:hover { background: var(--surface-strong); color: var(--text); }
.vote-button.is-selected { background: var(--gold-soft); color: var(--gold-deep); }
[data-vote-group].is-pending { opacity: .72; }
.post-content { min-width: 0; padding: 14px 16px 11px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
.post-meta a:hover, .comment-heading a:hover { color: var(--gold-deep); }
.community-reference { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.community-reference .community-mark { width: 20px; height: 20px; flex-basis: 20px; font-size: 9px; }
.post-title { margin: 9px 0 7px; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 550; line-height: 1.26; }
.post-title a:hover { color: var(--gold-deep); }
.post-body { color: color-mix(in srgb, var(--text) 90%, var(--muted)); font-size: 13px; line-height: 1.62; overflow-wrap: anywhere; }
.post-body.is-clamped { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.link-embed { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); color: var(--gold-deep); font-size: 11px; font-weight: 700; }
.product-embed { display: grid; grid-template-columns: 126px 1fr; align-items: center; gap: 16px; margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.product-embed img { width: 126px; height: 108px; object-fit: cover; background: var(--surface-strong); }
.product-embed span { display: flex; flex-direction: column; gap: 6px; padding-right: 14px; }
.product-embed small { color: var(--gold-deep); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.product-embed strong { font-family: Georgia, serif; font-size: 17px; }
.post-actions { display: flex; align-items: center; gap: 5px; margin-top: 11px; }
.post-action { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 650; }
.post-action:hover { background: var(--surface-soft); color: var(--text); }

.community-hero { --community-accent: #b8922e; position: relative; display: grid; min-height: 230px; grid-template-columns: auto minmax(0, 1fr) minmax(225px, 285px); align-items: end; gap: 18px; margin-bottom: 24px; overflow: hidden; padding: 34px; border-radius: 22px; background: linear-gradient(125deg, color-mix(in srgb, var(--community-accent) 92%, #111), color-mix(in srgb, var(--community-accent) 54%, #191712)); color: #fff; box-shadow: var(--shadow); }
.community-hero::after { position: absolute; width: 240px; height: 240px; right: -55px; top: -95px; border: 1px solid rgb(255 255 255 / 18%); border-radius: 50%; content: ""; }
.community-hero .eyebrow, .community-hero p, .community-hero small { color: rgb(255 255 255 / 78%); }
.community-hero h1 { font-size: clamp(38px, 7vw, 60px); }
.community-hero-mark { display: grid; width: 64px; height: 64px; place-items: center; border: 1px solid rgb(255 255 255 / 40%); border-radius: 18px; background: rgb(255 255 255 / 12%); font-family: Georgia, serif; font-size: 28px; }
.community-hero .button { position: relative; z-index: 1; }
.community-hero-copy { position: relative; z-index: 1; }
.community-hero-tools { position: relative; z-index: 2; display: flex; align-self: stretch; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 12px; }
.community-hero-tools > .button { align-self: flex-end; }

.empty-state { padding: 72px 24px; border: 1px dashed var(--line-strong); border-radius: 16px; background: var(--surface); text-align: center; }
.empty-state h2, .empty-state h1 { margin: 12px 0 6px; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.empty-state p { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.empty-mark { color: var(--gold); font-family: Georgia, serif; font-size: 28px; }
.not-found { margin-top: 15vh; }
.pagination { display: grid; justify-items: center; gap: 9px; padding: 20px 0 4px; }
.feed-skeleton { display: none; width: 100%; grid-template-columns: 48px 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.feed-skeleton > span { min-height: 116px; border-right: 1px solid var(--line); background: var(--surface-soft); }
.feed-skeleton > div { display: grid; align-content: center; gap: 12px; padding: 18px; }
.feed-skeleton i { display: block; height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--surface-strong), var(--surface-soft), var(--surface-strong)); background-size: 220% 100%; animation: skeleton-shimmer 1.25s linear infinite; }
.feed-skeleton i:nth-child(1) { width: 34%; }
.feed-skeleton i:nth-child(2) { width: 78%; height: 16px; }
.feed-skeleton i:nth-child(3) { width: 58%; }
.pagination.is-loading .feed-skeleton { display: grid; }
.pagination.is-loading [data-load-more] { display: none; }
.pagination-status { min-height: 15px; margin: 0; color: var(--danger); font-size: 10px; }
.js .pagination:not(.has-error) [data-load-more] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.js .pagination.has-error [data-load-more] { display: inline-flex; }
.feed-end { display: grid; justify-items: center; gap: 3px; padding: 30px 0 6px; color: var(--muted); text-align: center; }
.feed-end span { color: var(--gold); font-family: Georgia, serif; font-size: 20px; }
.feed-end strong { color: var(--text); font-family: Georgia, serif; font-size: 15px; font-weight: 500; }
.feed-end small { font-size: 9px; }
@keyframes skeleton-shimmer { to { background-position: -220% 0; } }

.detail-back { margin: 0 4px 13px; color: var(--muted); font-size: 11px; font-weight: 650; }
.detail-post .post-card { box-shadow: var(--shadow); }
.comments-panel { margin-top: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.comments-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.comments-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 21px; font-weight: 500; }
.comments-heading span { color: var(--muted); font-size: 10px; }
.comment-form, .inline-reply { display: grid; gap: 9px; margin: 18px 0; }
.comment-form label { font-size: 11px; font-weight: 700; }
textarea, input, select { width: 100%; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); color: var(--text); }
textarea, input { padding: 11px 12px; }
select { padding: 10px 12px; }
textarea { resize: vertical; line-height: 1.5; }
.comment-form > div, .inline-reply > div { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.comment-thread { padding-top: 4px; }
.comment { padding: 17px 0 0 14px; border-left: 1px solid var(--line); }
.comment-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
.comment-heading a { color: var(--text); font-weight: 700; }
.comment-body { padding: 8px 4px 6px 0; font-size: 13px; line-height: 1.58; overflow-wrap: anywhere; }
.comment-actions { display: flex; align-items: center; gap: 2px; color: var(--muted); font-size: 11px; }
.comment-actions .vote-button { width: 24px; height: 24px; font-size: 9px; }
.reply-button { margin-left: 5px; padding: 5px 7px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 10px; }
.reply-button:hover { background: var(--surface-soft); color: var(--text); }
.comment-replies { margin-left: 9px; }
.inline-reply { margin: 10px 10px 2px 0; }
.empty-comments, .login-prompt, .locked-note { display: block; margin-top: 18px; padding: 18px; border-radius: 10px; background: var(--surface-soft); color: var(--muted); font-size: 12px; text-align: center; }
.login-prompt { color: var(--gold-deep); font-weight: 700; }

.premium-badge { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; color: var(--gold-deep); font-family: Inter, sans-serif; font-size: 8px; font-weight: 850; letter-spacing: .02em; vertical-align: middle; }
.premium-badge-check { display: inline-grid; width: 13px; height: 13px; place-items: center; border-radius: 50%; background: var(--gold); color: #fff; font-size: 9px; font-weight: 900; line-height: 1; }
.premium-badge-plus .premium-badge-check { background: #171717; box-shadow: 0 0 0 1px var(--gold); color: #f4d989; }
.moderator-badge { display: inline-flex; padding: 2px 5px; border-radius: 4px; background: #1d4ed8; color: #fff; font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.moderator-for { color: var(--gold-deep); font-size: 8px; font-weight: 750; }
.official-badge, .admin-badge { display: inline-flex; margin-left: 4px; padding: 2px 5px; border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); border-radius: 999px; color: var(--gold-deep); font-size: 7px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.admin-badge { border-color: #b4232c; border-radius: 4px; background: #b4232c; color: #fff; }
.restriction-banner { margin: 0 0 14px; padding: 12px 15px; border: 1px solid var(--danger); border-radius: 10px; background: color-mix(in srgb, var(--danger) 8%, var(--surface)); font-size: 11px; }
.community-report { margin: -5px 0 14px auto; }
.community-election { border: 1px solid rgb(255 255 255 / 24%); border-radius: 13px; background: rgb(16 16 14 / 32%); color: #fff; backdrop-filter: blur(12px); }
.community-election summary { position: relative; display: grid; gap: 5px; padding: 13px 14px; cursor: pointer; list-style: none; }
.community-election summary::-webkit-details-marker { display: none; }
.community-election summary strong { padding-right: 12px; font-family: Georgia, serif; font-size: 14px; font-weight: 500; line-height: 1.25; }
.community-election summary small { padding-right: 12px; font-size: 8px; }
.community-election .eyebrow { color: #f4d989; font-size: 8px; }
.election-toggle { position: absolute; right: 11px; top: 11px; font-size: 8px; font-weight: 750; }
.election-toggle span:last-child, .community-election[open] .election-toggle span:first-child { display: none; }
.community-election[open] .election-toggle span:last-child { display: inline; }
.community-election-body { max-height: 245px; overflow-y: auto; padding: 0 14px 14px; border-top: 1px solid rgb(255 255 255 / 16%); scrollbar-width: thin; }
.community-election-body > p { color: rgb(255 255 255 / 72%); font-size: 9px; line-height: 1.45; }
.candidate-list { display: grid; gap: 7px; margin: 14px 0; padding: 0; list-style: none; }
.candidate-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; border-radius: 9px; background: rgb(255 255 255 / 11%); }
.candidate-list li span { display: grid; gap: 2px; }
.candidate-list small { color: rgb(255 255 255 / 70%); font-size: 9px; }
.election-empty { color: rgb(255 255 255 / 72%); font-size: 10px; }
.community-election .button-quiet { min-height: 30px; padding: 5px 9px; border-color: rgb(255 255 255 / 26%); background: rgb(255 255 255 / 10%); color: #fff; font-size: 9px; }
.moderator-queue { margin: 0 0 18px; padding: 17px 20px 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); }
.moderator-queue h3 { font-family: Georgia, serif; font-size: 17px; font-weight: 500; }
.moderator-queue article { margin-top: 8px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; }
.moderator-queue article p { color: var(--muted); font-size: 10px; }
.moderator-queue article div { display: flex; flex-wrap: wrap; gap: 6px; }
.moderator-queue button { padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); color: var(--text); font-size: 9px; }
.profile-moderation-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.profile-hero { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-bottom: 18px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.profile-avatar { display: grid; width: 76px; height: 76px; place-items: center; border-radius: 24px; background: linear-gradient(145deg, var(--gold-soft), var(--surface-strong)); color: var(--gold-deep); font-family: Georgia, serif; font-size: 30px; }
.profile-hero h1 { font-size: 32px; }
.profile-hero p { margin: 0; color: var(--muted); font-size: 12px; }
.profile-hero dl { display: flex; gap: 20px; margin: 0; }
.profile-hero dl div { text-align: center; }
.profile-hero dt { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.profile-hero dd { margin: 4px 0 0; font-family: Georgia, serif; font-size: 22px; }
.profile-bio { margin-bottom: 20px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.profile-bio h2 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 18px; font-weight: 500; }
.profile-bio p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.policy-page { padding: 34px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.policy-page h1 { margin: 8px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 5vw, 42px); font-weight: 500; letter-spacing: -.025em; }
.policy-introduction { max-width: 650px; margin: 0 0 30px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.policy-page section { padding: 22px 0; border-top: 1px solid var(--line); }
.policy-page section:last-child { padding-bottom: 0; }
.policy-page h2 { margin: 0 0 11px; font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 500; }
.policy-page ul { display: grid; gap: 9px; margin: 0; padding-left: 20px; color: var(--muted); font-size: 13px; line-height: 1.65; }

.site-footer { width: min(100% - 40px, 780px); margin: 0 auto; padding: 0 0 28px; }
.entertainment-disclaimer { margin: 0; padding: 16px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.55; text-align: center; }
.entertainment-disclaimer strong { color: var(--text); }
.footer-policy-links { display: none; }

.settings-card { max-width: 620px; margin: 24px auto; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.settings-card h1 { margin-bottom: 24px; font-size: 32px; }
.profile-form, .composer-form { display: grid; gap: 15px; }
.profile-form label, .composer-form label { display: grid; gap: 6px; color: var(--text); font-size: 11px; font-weight: 700; }
.profile-form label span { color: var(--muted); font-size: 9px; font-weight: 500; }
.profile-privacy { display: grid; gap: 9px; margin: 2px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.profile-privacy legend { padding: 0 5px; color: var(--text); font-size: 11px; font-weight: 700; }
.profile-form .profile-toggle { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; cursor: pointer; }
.profile-form .profile-toggle input { width: 17px; height: 17px; margin: 1px 0 0; padding: 0; accent-color: var(--gold-deep); }
.profile-form .profile-toggle span { display: grid; gap: 3px; }
.profile-form .profile-toggle strong { color: var(--text); font-size: 11px; }
.profile-form .profile-toggle small { color: var(--muted); font-size: 9px; font-weight: 500; line-height: 1.4; }
.settings-actions, .dialog-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 5px; }
.form-error { min-height: 16px; margin: 0; color: var(--danger); font-size: 11px; }
.form-note { margin: -3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.slug-field { display: flex; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.slug-field > span { padding-left: 12px; color: var(--muted); font-size: 10px; font-weight: 500; white-space: nowrap; }
.slug-field input { border: 0; background: transparent; }
.accent-picker { display: flex; gap: 12px; margin: 0; padding: 0; border: 0; }
.accent-picker legend { margin-bottom: 7px; font-size: 11px; font-weight: 700; }
.accent-picker label { display: grid; cursor: pointer; justify-items: center; gap: 4px; }
.accent-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.accent-picker label > span { display: block; width: 27px; height: 27px; border: 3px solid var(--surface); border-radius: 50%; background: #b8922e; box-shadow: 0 0 0 1px var(--line); }
.accent-picker label > span[data-accent="violet"] { background: #6d4bc3; }
.accent-picker label > span[data-accent="green"] { background: #16805d; }
.accent-picker label > span[data-accent="rose"] { background: #b67a86; }
.accent-picker label > span[data-accent="blue"] { background: #2869a6; }
.accent-picker label > span[data-accent="burgundy"] { background: #7c2938; }
.accent-picker input:checked + span { box-shadow: 0 0 0 2px var(--text); }
.accent-picker small { color: var(--muted); font-size: 8px; font-weight: 600; }

.composer-dialog { width: min(92vw, 590px); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: 0 24px 100px rgb(0 0 0 / 32%); }
.composer-dialog::backdrop { background: rgb(12 12 10 / 58%); backdrop-filter: blur(4px); }
.composer-form { padding: 24px; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 4px; }
.dialog-heading h2 { margin: 5px 0 0; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.icon-button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); color: var(--muted); font-size: 20px; }
.toast { position: fixed; z-index: 80; right: 22px; bottom: 22px; max-width: 340px; padding: 11px 15px; border-radius: 10px; background: var(--text); color: var(--surface); box-shadow: var(--shadow); font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity 150ms ease, transform 150ms ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  :root { --sidebar-width: 200px; }
  .topbar { padding-inline: 18px; }
  .main-content { width: min(100% - 28px, 760px); }
  .product-tab { min-width: 66px; padding-inline: 9px; }
  .community-hero { padding: 26px; }
}

@media (max-width: 720px) {
  body { padding-bottom: 72px; }
  .sidebar { inset: auto 0 0; width: auto; height: 64px; padding: 7px 9px; overflow-x: auto; overflow-y: hidden; border: 1px solid var(--line); border-width: 1px 0 0; }
  .brand, .side-label, .premium-promo, .policy-nav { display: none; }
  .side-nav { flex-direction: row; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-link { min-width: max-content; min-height: 48px; margin: 0; padding: 7px 10px; font-size: 10px; }
  .side-link small { font-size: 7px; }
  .side-link:hover:not(.is-disabled) { transform: none; }
  .nav-icon { width: 23px; }
  .community-links { display: flex; flex: none; overflow: visible; }
  .community-links .side-link { padding-inline: 8px; }
  .community-links .side-link > span:last-child { display: none; }
  .app-shell { margin-left: 0; }
  .topbar { min-height: 60px; grid-template-columns: auto 1fr auto; gap: 7px; padding: 0 8px; }
  .store-back-link { grid-column: 1; padding-inline: 5px; font-size: 9px; }
  .product-tabs { grid-column: 2; justify-self: center; }
  .product-tab.is-disabled { display: none; }
  .product-tab { min-width: 54px; padding: 7px 8px; font-size: 10px; }
  .product-tab small, .theme-toggle > span:first-child, .account-chip > span:last-child { display: none; }
  .topbar-actions { grid-column: 3; gap: 3px; }
  .main-content { width: min(100% - 18px, 760px); padding-top: 24px; }
  .policy-page { padding: 24px 20px; }
  .site-footer { width: min(100% - 18px, 760px); padding-bottom: 18px; }
  .footer-policy-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 13px; padding: 13px 10px 0; color: var(--muted); font-size: 9px; }
  .feed-heading { align-items: flex-start; }
  .feed-heading p { font-size: 12px; }
  .feed-heading .button { padding-inline: 11px; white-space: nowrap; }
  .feed-toolbar span { display: none; }
  .post-card { grid-template-columns: 40px minmax(0, 1fr); border-radius: 12px; }
  .post-content { padding-inline: 12px; }
  .post-meta { font-size: 9px; }
  .post-meta > time { display: none; }
  .community-hero { min-height: 200px; grid-template-columns: auto 1fr; padding: 22px; }
  .community-hero-tools { grid-column: 1 / -1; }
  .community-hero-tools > .button { align-self: flex-start; }
  .community-hero-mark { width: 52px; height: 52px; }
  .comments-panel { padding: 16px; }
  .comments-heading span { display: none; }
  .comment { padding-left: 9px; }
  .comment-replies { margin-left: 3px; }
  .profile-hero { grid-template-columns: auto 1fr; padding: 20px; }
  .profile-hero dl { grid-column: 1 / -1; justify-content: flex-start; }
  .settings-card { padding: 22px 18px; }
  .product-embed { grid-template-columns: 90px 1fr; }
  .product-embed img { width: 90px; height: 88px; }
  .toast { right: 10px; bottom: 76px; left: 10px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
