:root {
  --forum-bg: #030814;
  --forum-surface: rgba(9, 18, 34, 0.72);
  --forum-surface-solid: #0a1425;
  --forum-elevated: rgba(16, 29, 49, 0.78);
  --forum-line: rgba(174, 216, 255, 0.14);
  --forum-line-strong: rgba(174, 216, 255, 0.24);
  --forum-text: #f4f8ff;
  --forum-muted: rgba(225, 237, 250, 0.68);
  --forum-soft: rgba(225, 237, 250, 0.48);
  --forum-blue: #4b8ff7;
  --forum-cyan: #67ddd9;
  --forum-mint: #a3f1e5;
  --forum-danger: #ff8f9e;
  --forum-focus: rgba(103, 221, 217, 0.36);
  --forum-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  background: var(--forum-bg);
  color-scheme: dark;
}
body.vone-forum-shell {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--forum-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: var(--forum-bg);
  -webkit-font-smoothing: antialiased;
}

.vone-forum-shell a { color: inherit; text-decoration: none; }
.vone-forum-shell button,
.vone-forum-shell input,
.vone-forum-shell textarea,
.vone-forum-shell select { font: inherit; }
.vone-forum-shell button { cursor: pointer; }
.vone-forum-shell a,
.vone-forum-shell button,
.vone-forum-shell label { -webkit-tap-highlight-color: rgba(103, 221, 217, 0.14); }
.vone-forum-shell a,
.vone-forum-shell button { touch-action: manipulation; }
.vone-forum-shell :where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--forum-cyan);
  outline-offset: 3px;
}
.vone-forum-shell h1,
.vone-forum-shell h2,
.vone-forum-shell h3,
.vone-forum-shell p { margin: 0; overflow-wrap: anywhere; }

.page {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% -4%, rgba(75, 143, 247, 0.24), transparent 30%),
    radial-gradient(circle at 88% 4%, rgba(103, 221, 217, 0.12), transparent 24%),
    linear-gradient(180deg, #081327 0%, #030814 44%, #06101d 100%);
}
.page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 74%);
}
.aurora {
  position: fixed;
  z-index: -1;
  inset: auto -12% -28% -12%;
  height: 54vh;
  pointer-events: none;
  opacity: 0.48;
  background:
    radial-gradient(ellipse at 25% 50%, rgba(75, 143, 247, 0.24), transparent 58%),
    radial-gradient(ellipse at 72% 48%, rgba(103, 221, 217, 0.16), transparent 54%);
  filter: blur(34px);
}
.container {
  position: relative;
  width: min(100% - 32px, 1160px);
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 12px;
  color: #06101d !important;
  background: var(--forum-mint);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }
.forum-reading-column {
  width: min(100% - 32px, 880px);
  margin-inline: auto;
}

/* Shared VOne dock. The mobile actions remain inside the same glass surface. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 12px 0;
}
.header-inner {
  min-height: 64px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 8px;
  border: 1px solid var(--forum-line);
  border-radius: 999px;
  background: rgba(8, 18, 34, 0.7);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  transition: border-radius 240ms ease, background 240ms ease, box-shadow 240ms ease;
}
.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-left: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 760;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 14px 32px rgba(103, 221, 217, 0.14);
}
.nav { display: none; align-items: center; justify-content: center; gap: 3px; }
.nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--forum-muted);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease;
}
.nav a:hover,
.nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.08); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.pill {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--forum-text);
  font-size: 14px;
  font-weight: 720;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.085);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.pill.primary { color: #06101d; background: #f5f8fc; }
.vone-forum-shell .telegram-pill {
  gap: 9px;
  color: #06101d;
  background: linear-gradient(135deg, #2f7df0, #42e6df);
  box-shadow: 0 18px 42px rgba(47, 125, 240, 0.25);
  font-size: 15px;
  font-weight: 950;
}
.vone-forum-shell .telegram-pill svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
.vone-forum-shell .telegram-pill:hover {
  color: #06101d;
  box-shadow: 0 20px 46px rgba(47, 125, 240, 0.31);
}
.mobile-route-pill { display: none; }
.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.menu-toggle-lines { position: relative; width: 21px; height: 18px; }
.menu-toggle-lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: transform 220ms ease, opacity 160ms ease, top 220ms ease;
}
.menu-toggle-lines span:nth-child(1) { top: 2px; }
.menu-toggle-lines span:nth-child(2) { top: 8px; }
.menu-toggle-lines span:nth-child(3) { top: 14px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

/* Forum index */
.forum-main { padding: clamp(44px, 7vw, 84px) 0 80px; }
.forum-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding: 8px 0 34px;
  border: 0;
  background: transparent;
  box-shadow: none !important;
}
.forum-hero h1 {
  max-width: 720px;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.02;
  font-weight: 760;
  letter-spacing: -0.052em;
  text-wrap: balance;
}
.forum-hero-copy {
  max-width: 650px;
  margin-top: 18px !important;
  color: var(--forum-muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
}
.forum-primary-button,
.forum-secondary-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 720;
  white-space: nowrap;
}
.forum-primary-button {
  color: #06101d;
  background: linear-gradient(135deg, #4b8ff7 0%, #67ddd9 100%);
  box-shadow: 0 18px 44px rgba(75, 143, 247, 0.22);
}
.forum-secondary-button { color: var(--forum-text); background: rgba(255, 255, 255, 0.08); }
.forum-toolbar {
  padding: 16px;
  border: 1px solid var(--forum-line);
  border-radius: 24px;
  background: var(--forum-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}
.forum-search-wrap { position: relative; }
.forum-search-wrap::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 16px;
  width: 19px;
  height: 19px;
  color: var(--forum-soft);
  background: currentColor;
  mask: url("/static/icons/forum/magnifying-glass.svg") center / contain no-repeat;
  -webkit-mask: url("/static/icons/forum/magnifying-glass.svg") center / contain no-repeat;
  transform: translateY(-50%);
  pointer-events: none;
}
.forum-search {
  width: 100%;
  min-height: 50px;
  padding: 0 16px 0 46px;
  border: 1px solid transparent;
  border-radius: 16px;
  outline: 0;
  color: var(--forum-text);
  background: rgba(255, 255, 255, 0.055);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.forum-search::placeholder { color: var(--forum-soft); }
.forum-search:focus { border-color: var(--forum-line-strong); background: rgba(255, 255, 255, 0.075); box-shadow: 0 0 0 4px var(--forum-focus); }
.forum-filter-row {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}
.forum-filter-row::-webkit-scrollbar { display: none; }
.forum-filter-chip {
  min-height: 40px;
  flex: 0 0 auto;
  padding: 0 15px;
  border: 1px solid var(--forum-line);
  border-radius: 999px;
  color: var(--forum-muted);
  background: transparent;
  font-size: 14px;
  font-weight: 650;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.forum-filter-chip:hover { color: #fff; border-color: var(--forum-line-strong); }
.forum-filter-chip.active { color: #07111f; border-color: transparent; background: var(--forum-mint); }
.vone-forum-shell .forum-search { padding: 0 16px 0 46px; }
.vone-forum-shell .forum-filter-row {
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
}
.vone-forum-shell .forum-filter-chip {
  flex: 0 0 auto;
  padding-inline: 12px;
}
.forum-stream-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 4px 12px;
  color: var(--forum-muted);
  font-size: 14px;
}
.forum-stream-head h2 { color: var(--forum-text); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.forum-topic-list {
  overflow: hidden;
  border: 1px solid var(--forum-line);
  border-radius: 26px;
  background: rgba(7, 16, 31, 0.7);
  box-shadow: var(--forum-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px) saturate(135%);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
}
.forum-topic-row { position: relative; padding: 22px 24px; }
.forum-topic-row + .forum-topic-row { border-top: 1px solid var(--forum-line); }
.forum-topic-row::after {
  content: "";
  position: absolute;
  inset: 6px;
  z-index: -1;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0);
  transition: background-color 160ms ease;
}
.forum-topic-row:hover::after { background: rgba(255, 255, 255, 0.035); }
.forum-topic-meta,
.forum-topic-stats,
.forum-post-meta,
.forum-post-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.forum-topic-meta { gap: 8px; margin-bottom: 9px; color: var(--forum-soft); font-size: 13px; }
.forum-author-avatar {
  --forum-avatar-hue: 195deg;
  --forum-avatar-edge: 2px;
  position: relative;
  width: 32px;
  height: 32px;
  aspect-ratio: 1;
  flex: 0 0 32px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(
    145deg,
    hsl(var(--forum-avatar-hue), 78%, 70%),
    hsl(calc(var(--forum-avatar-hue) + 42deg), 62%, 38%)
  );
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  font-size: 12px;
  font-weight: 780;
  line-height: 1;
}
.forum-author-avatar::before {
  content: "";
  position: absolute;
  inset: var(--forum-avatar-edge);
  z-index: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 68% 22%, rgba(255, 255, 255, 0.42) 0, rgba(255, 255, 255, 0.16) 18%, transparent 38%),
    linear-gradient(
      145deg,
      hsl(var(--forum-avatar-hue), 70%, 54%),
      hsl(calc(var(--forum-avatar-hue) + 48deg), 58%, 30%)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -5px 10px rgba(1, 7, 18, 0.18);
}
.forum-author-avatar::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: inherit;
}
.forum-avatar-letter {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: grid !important;
  place-items: center;
  padding: 0;
  font: inherit;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}
.forum-author-avatar img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.forum-author-avatar-image { background: var(--forum-surface-solid); }
.forum-author-avatar-image::before { display: none; }
.forum-author-avatar-list { --forum-avatar-edge: 1px; width: 24px; height: 24px; flex-basis: 24px; font-size: 10px; }
.forum-author-avatar-post { width: 32px; height: 32px; flex-basis: 32px; }
.forum-topic-author { color: var(--forum-muted); font-weight: 650; }
.forum-topic-category {
  padding: 3px 9px;
  border: 1px solid var(--forum-line);
  border-radius: 999px;
  color: var(--forum-mint);
  background: rgba(103, 221, 217, 0.055);
  font-weight: 650;
}
.forum-topic-row h3 { font-size: clamp(18px, 2.5vw, 22px); line-height: 1.28; font-weight: 690; letter-spacing: -0.025em; }
.forum-topic-row h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.forum-topic-excerpt { margin-top: 8px !important; color: var(--forum-muted); line-height: 1.55; }
.forum-topic-stats { gap: 12px; margin-top: 14px; color: var(--forum-soft); font-size: 13px; }
.forum-topic-stats span + span::before { content: "\00b7"; margin-right: 12px; }
.forum-empty,
.forum-no-results {
  padding: 34px 24px;
  border: 1px solid var(--forum-line);
  border-radius: 24px;
  color: var(--forum-muted);
  text-align: center;
  background: var(--forum-surface);
}
.notice,
.error {
  margin-bottom: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(103, 221, 217, 0.22);
  border-radius: 15px;
  color: var(--forum-mint);
  background: rgba(103, 221, 217, 0.07);
}
.error { color: #ffd0d7; border-color: rgba(255, 143, 158, 0.24); background: rgba(255, 143, 158, 0.075); }

/* Composer */
.forum-new-topic,
.forum-composer {
  margin-bottom: 24px;
  padding: clamp(20px, 4vw, 28px);
  border: 1px solid var(--forum-line-strong);
  border-radius: 26px;
  background: rgba(10, 21, 39, 0.88);
  box-shadow: var(--forum-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(30px) saturate(140%);
  -webkit-backdrop-filter: blur(30px) saturate(140%);
}
.forum-composer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.forum-composer-head h2 { font-size: 24px; line-height: 1.2; font-weight: 720; letter-spacing: -0.03em; }
.forum-composer-head p { margin-top: 6px !important; color: var(--forum-muted); }
.forum-composer-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 11px 13px;
  border: 1px solid rgba(103, 221, 217, 0.16);
  border-radius: 17px;
  background: rgba(103, 221, 217, 0.045);
}
.forum-author-avatar-composer { width: 42px; height: 42px; flex-basis: 42px; font-size: 15px; }
.forum-composer-identity > div > strong,
.forum-composer-identity > div > span { display: block; }
.forum-composer-identity strong { color: var(--forum-text); font-size: 14px; font-weight: 700; }
.forum-composer-identity div > span { margin-top: 3px; color: var(--forum-soft); font-size: 12px; line-height: 1.35; }
.forum-composer-identity > a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid rgba(103, 221, 217, 0.22);
  border-radius: 999px;
  color: var(--forum-mint);
  font-size: 12px;
  font-weight: 700;
}
.forum-primary-button:disabled { cursor: not-allowed; filter: saturate(0.35); opacity: 0.5; }
.forum-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.forum-field { min-width: 0; display: grid; gap: 7px; color: var(--forum-muted); font-size: 13px; font-weight: 650; }
.forum-field-full { grid-column: 1 / -1; }
.forum-field input,
.forum-field textarea,
.forum-field select,
.forum-composer input[type="text"],
.forum-composer textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border: 1px solid var(--forum-line);
  border-radius: 15px;
  outline: 0;
  color: var(--forum-text);
  background: rgba(255, 255, 255, 0.052);
  font-size: 16px;
  font-weight: 450;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.forum-field textarea,
.forum-composer textarea { min-height: 126px; resize: vertical; }
.forum-field input::placeholder,
.forum-field textarea::placeholder,
.forum-composer input::placeholder,
.forum-composer textarea::placeholder { color: var(--forum-soft); }
.forum-field input:focus,
.forum-field textarea:focus,
.forum-field select:focus,
.forum-composer input:focus,
.forum-composer textarea:focus { border-color: var(--forum-line-strong); background: rgba(255, 255, 255, 0.075); box-shadow: 0 0 0 4px var(--forum-focus); }
.forum-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.forum-attachment-trigger {
  position: relative;
  overflow: hidden;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--forum-line);
  border-radius: 999px;
  color: var(--forum-muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}
.forum-attachment-trigger:hover { color: #fff; border-color: var(--forum-line-strong); background: rgba(255, 255, 255, 0.05); }
.forum-attachment-trigger input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.forum-attachment-trigger:focus-within { outline: 2px solid var(--forum-cyan); outline-offset: 3px; }
.forum-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  display: inline-block;
  background: currentColor;
  mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
}
.forum-icon-paperclip { mask-image: url("/static/icons/forum/paperclip.svg"); -webkit-mask-image: url("/static/icons/forum/paperclip.svg"); }
.forum-icon-up { mask-image: url("/static/icons/forum/thumbs-up.svg"); -webkit-mask-image: url("/static/icons/forum/thumbs-up.svg"); }
.forum-icon-down { mask-image: url("/static/icons/forum/thumbs-down.svg"); -webkit-mask-image: url("/static/icons/forum/thumbs-down.svg"); }
.forum-icon-back { mask-image: url("/static/icons/forum/arrow-left.svg"); -webkit-mask-image: url("/static/icons/forum/arrow-left.svg"); }
.forum-file-name { max-width: 240px; overflow: hidden; color: var(--forum-soft); text-overflow: ellipsis; white-space: nowrap; }
.forum-privacy-note { margin-top: 14px !important; color: var(--forum-soft); font-size: 13px; line-height: 1.45; }
.hidden-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Thread */
.forum-thread-main { padding: 34px 0 80px; }
.forum-back-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--forum-muted);
  font-size: 14px;
  font-weight: 650;
}
.forum-thread-head { padding: 12px 4px 30px; }
.forum-thread-head h1 { max-width: 820px; font-size: clamp(30px, 5vw, 48px); line-height: 1.08; font-weight: 740; letter-spacing: -0.045em; text-wrap: balance; }
.forum-thread-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 15px; color: var(--forum-soft); font-size: 14px; }
.forum-thread-meta .forum-topic-category { padding-block: 2px; }
.forum-post-stream {
  overflow: hidden;
  border: 1px solid var(--forum-line);
  border-radius: 26px;
  background: rgba(7, 16, 31, 0.7);
  box-shadow: var(--forum-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px) saturate(135%);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
}
.forum-post { padding: 24px; }
.forum-post + .forum-post { border-top: 1px solid var(--forum-line); }
.forum-post-meta { gap: 7px; color: var(--forum-soft); font-size: 13px; }
.forum-post-author { color: var(--forum-text); font-weight: 690; }
.forum-post-label { color: var(--forum-mint); }
.forum-post-body { margin-top: 14px; color: rgba(244, 248, 255, 0.9); font-size: 16px; line-height: 1.66; overflow-wrap: anywhere; white-space: pre-wrap; }
.forum-article-post-body { white-space: normal; }
.forum-article-lead {
  max-width: 760px;
  margin: 0 !important;
  color: var(--forum-muted);
  font-size: 18px;
  line-height: 1.6;
}
.forum-article-section { margin-top: 28px; }
.forum-article-section h2,
.forum-article-sources h2 {
  color: var(--forum-text);
  font-size: clamp(20px, 3vw, 24px);
  line-height: 1.25;
  font-weight: 710;
  letter-spacing: -0.025em;
}
.forum-article-section p { margin-top: 10px !important; }
.forum-article-sources {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--forum-line);
}
.forum-article-sources ul { display: grid; gap: 10px; margin: 14px 0 0; padding-left: 20px; }
.forum-article-sources li { color: var(--forum-muted); }
.forum-article-sources a { color: var(--forum-mint); text-underline-offset: 3px; }
.forum-article-sources li span { display: block; color: var(--forum-soft); font-size: 12px; }
.forum-article-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
  padding: 16px;
  border: 1px solid var(--forum-line);
  border-radius: 18px;
  background: rgba(103, 221, 217, 0.05);
}
.forum-article-help p { margin: 0 !important; color: var(--forum-muted); }
.forum-article-help a {
  flex: 0 0 auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #4d8df5, #73e4df);
  font-size: 14px;
  font-weight: 720;
}
.forum-article-note { margin-top: 20px !important; color: var(--forum-soft); font-size: 13px; }
.forum-post-attachment { display: block; max-width: min(100%, 680px); max-height: 560px; margin-top: 18px; border-radius: 18px; object-fit: cover; }
.forum-post-actions { gap: 4px; margin-top: 16px; }
.forum-vote-form,
.forum-report-form { margin: 0; }
.forum-reaction,
.forum-report-button {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  color: var(--forum-soft);
  background: transparent;
  font-size: 13px;
  font-weight: 650;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}
.forum-reaction:hover,
.forum-report-button:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.forum-reaction[aria-pressed="true"] { color: var(--forum-mint); background: rgba(103, 221, 217, 0.08); }
.forum-reaction:active { transform: scale(0.94); }
.forum-report-form { margin-left: auto; }
.forum-report-button { padding-inline: 13px; }
.forum-answer-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 4px 12px; }
.forum-answer-heading h2 { font-size: 21px; font-weight: 710; letter-spacing: -0.025em; }
.forum-answer-heading span { color: var(--forum-soft); font-size: 14px; }
.forum-answer-empty { padding: 24px; border: 1px solid var(--forum-line); border-radius: 22px; color: var(--forum-muted); background: var(--forum-surface); }
.forum-thread-main .forum-composer { margin-top: 24px; margin-bottom: 0; }
.forum-composer-form { display: grid; gap: 13px; }
.forum-composer-form input[type="text"] { min-height: 50px; }

.footer { padding: 28px 0 calc(34px + env(safe-area-inset-bottom)); color: var(--forum-soft); font-size: 13px; text-align: center; }
.footer a { color: var(--forum-muted); }

@media (min-width: 1200px) {
  .nav { display: flex; }
}

@media (max-width: 1199px) {
  .site-header { padding-top: max(10px, env(safe-area-inset-top)); }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .menu-toggle { display: inline-flex; grid-column: 2; grid-row: 1; }
  .vone-forum-shell .header-actions {
    grid-column: 1 / -1;
    display: none;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: auto;
    max-height: none;
    padding: 0;
    overflow: visible;
    clip-path: none;
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    pointer-events: none;
    transition: none;
  }
  .vone-forum-shell .header-actions.is-open {
    display: grid;
    padding-top: 6px;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    animation: forum-menu-in 220ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .header-inner.menu-open { border-radius: 30px; background: rgba(8, 18, 34, 0.9); }
  .telegram-pill { grid-column: 1 / -1; }
  .mobile-route-pill { display: inline-flex; }
  .vone-forum-shell .header-actions .pill { min-width: 0; width: 100%; }
}

@media (max-width: 720px) {
  .container,
  .forum-reading-column { width: min(100% - 20px, 880px); }
  .forum-main { padding-top: 34px; }
  .forum-hero { grid-template-columns: 1fr; gap: 22px; align-items: start; }
  .forum-hero .forum-primary-button { justify-self: start; }
  .forum-toolbar { margin-inline: -1px; padding: 11px; border-radius: 20px; }
  .forum-topic-list { border-radius: 22px; }
  .forum-topic-row { padding: 18px 17px; }
  .forum-new-topic,
  .forum-composer { padding: 18px; border-radius: 22px; }
  .forum-form-grid { grid-template-columns: 1fr; }
  .forum-composer-identity { grid-template-columns: auto minmax(0, 1fr); }
  .forum-composer-identity > a { grid-column: 1 / -1; width: 100%; }
  .forum-field-full { grid-column: auto; }
  .forum-form-footer { align-items: stretch; flex-direction: column; }
  .forum-form-footer .forum-primary-button { width: 100%; }
  .forum-file-name { max-width: calc(100vw - 92px); }
  .forum-thread-main { padding-top: 18px; }
  .forum-thread-head { padding-bottom: 24px; }
  .forum-post-stream { border-radius: 22px; }
  .forum-post { padding: 19px 17px; }
  .forum-article-lead { font-size: 16px; }
  .forum-article-section { margin-top: 24px; }
  .forum-article-help { align-items: stretch; flex-direction: column; }
  .forum-article-help a { width: 100%; }
  .forum-report-form { margin-left: 0; }
  .forum-report-button { color: var(--forum-soft); }
}

@media (max-width: 430px) {
  .container,
  .forum-reading-column { width: calc(100% - 16px); }
  .header-inner { border-radius: 25px; }
  .brand span { max-width: 112px; overflow: hidden; text-overflow: ellipsis; }
  .pill { min-height: 44px; padding-inline: 12px; }
  .forum-hero h1 { font-size: 34px; }
  .forum-hero-copy { font-size: 16px; }
  .forum-topic-stats { gap: 8px; }
  .forum-topic-stats span + span::before { margin-right: 8px; }
  .forum-post-actions { gap: 0; }
}

@keyframes forum-menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
