:root {
  color-scheme: dark;
  --visual-viewport-height: 100vh;
  --keyboard-offset: 0px;
  --bg: #050505;
  --bg-lift: #0b0b0c;
  --surface: #111113;
  --surface-soft: #171719;
  --color-brand-primary: #ff8a1f;
  --color-brand-primary-hover: #ffb14a;
  --color-brand-primary-muted: #b86622;
  --color-text-primary: #ffb14a;
  --color-text-secondary: #b89a7d;
  --color-text-muted: #8e7661;
  --color-text-user-content: #ffe2bd;
  --color-text-user-content-secondary: #d9c2a6;
  --feed-text-primary: #f0ddca;
  --feed-text-secondary: #d8bfa6;
  --feed-text-muted: #9f836c;
  --feed-text-soft: #7f6856;
  --feed-accent: #ffa321;
  --feed-accent-soft: #ffc06a;
  --color-border-default: rgba(255, 138, 31, 0.26);
  --color-border-active: rgba(255, 138, 31, 0.54);
  --color-surface-card: #0a0a0b;
  --color-surface-elevated: #111113;
  --text: var(--color-brand-primary);
  --text-hot: var(--color-text-primary);
  --muted: var(--color-brand-primary-muted);
  --line: var(--color-border-default);
  --line-strong: var(--color-border-active);
  --accent: #ff7a00;
  --accent-hot: #ffb000;
  --shadow: 0 28px 90px rgba(255, 92, 0, 0.16);
  --space-page-top: clamp(24px, 3vw, 34px);
  --space-section: clamp(24px, 3vw, 38px);
  --space-heading-block: clamp(14px, 1.5vw, 20px);
  --space-list-gap: clamp(18px, 2vw, 28px);
  --space-card-gap: clamp(12px, 1.3vw, 18px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% -10%, rgba(255, 122, 0, 0.18), transparent 34rem),
    linear-gradient(180deg, #090807 0%, var(--bg) 52%, #020202 100%);
  color: var(--color-brand-primary);
}

body.welcome-modal-open {
  overflow: hidden;
}

button,
textarea,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.welcome-overlay,
.legal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(24px);
}

.welcome-overlay {
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}

.legal-overlay {
  z-index: 45;
}

.modal {
  width: min(560px, 100%);
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(13, 13, 14, 0.94);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 177, 74, 0.12);
}

.welcome-modal {
  width: min(390px, 100%);
  padding: clamp(22px, 6vw, 30px);
  transform: scale(0.98);
  animation: welcome-modal-in 190ms ease-out forwards;
}

.legal-modal {
  width: min(760px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
}

.modal h1 {
  margin: 0 0 16px;
  color: var(--text-hot);
  font-size: clamp(1.85rem, 5vw, 3rem);
  letter-spacing: 0;
  text-shadow: 0 0 24px rgba(255, 122, 0, 0.28);
}

.modal p {
  margin: 0 0 24px;
  color: var(--color-text-user-content-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.welcome-list {
  display: grid;
  gap: 9px;
  margin: 22px 0 24px;
  padding: 0;
  list-style: none;
}

.welcome-list li {
  position: relative;
  padding-left: 22px;
  color: var(--color-text-user-content-secondary);
  line-height: 1.45;
}

.welcome-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-hot);
  box-shadow: 0 0 14px rgba(255, 122, 0, 0.5);
}

@keyframes welcome-modal-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-modal {
    animation: none;
    transform: none;
  }

  .board-grid {
    animation: none;
  }

  .board-column,
  .board-arrow,
  .topic-icon {
    transition: none;
  }

  .board-column:hover,
  .board-column:focus-visible,
  .board-column:hover .board-arrow,
  .board-column:focus-visible .board-arrow,
  .board-column:hover .topic-icon,
  .board-column:focus-visible .topic-icon {
    transform: none;
  }
}

.legal-copy {
  margin-bottom: 26px;
}

.legal-copy p {
  margin-bottom: 16px;
  color: #f0a350;
  font-size: 0.95rem;
}

.modal-kicker,
.section-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(280px, 360px);
  align-items: center;
  gap: clamp(18px, 4vw, 46px);
  min-height: 64px;
  padding: 10px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(4, 4, 4, 0.82);
  backdrop-filter: blur(20px);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-form {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
  align-items: center;
}

.header-search {
  justify-self: end;
  width: 100%;
}

.mobile-search {
  display: grid;
}

.mobile-search-panel {
  display: none;
}

.search-panel.mobile-search-panel {
  display: none !important;
}

.search-input {
  width: 100%;
  min-height: 44px;
  padding: 0 48px 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 8, 9, 0.88);
  color: var(--text-hot);
  outline: none;
  appearance: none;
}

.search-input::placeholder {
  color: rgba(255, 138, 31, 0.48);
}

.search-input:focus {
  border-color: var(--accent-hot);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.14), 0 0 24px rgba(255, 122, 0, 0.12);
}

.search-button {
  width: 44px;
  min-height: 44px;
  margin-left: -44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-hot);
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: none;
}

.search-button:hover {
  color: var(--accent-hot);
  background: rgba(255, 122, 0, 0.08);
}

.search-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-title {
  justify-self: start;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 0;
  background: transparent;
  color: var(--text-hot);
  font: inherit;
  font-size: clamp(1rem, 2vw, 1.22rem);
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 0 18px rgba(255, 122, 0, 0.28);
  white-space: nowrap;
}

.header-title:hover {
  color: var(--accent-hot);
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 122, 0, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 177, 74, 0.08);
}

.mobile-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-hot);
  box-shadow: 0 0 12px rgba(255, 122, 0, 0.38);
  transition: transform 180ms ease, opacity 180ms ease;
}

.mobile-menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.top-nav {
  justify-self: center;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(255, 138, 31, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 176, 74, 0.12), transparent 56%),
    rgba(5, 5, 6, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 214, 153, 0.07), 0 12px 34px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.top-nav a,
.nav-button {
  position: relative;
  min-height: 34px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  color: rgba(255, 177, 74, 0.64);
  font-size: 0.88rem;
  font-weight: 800;
  transition: color 210ms ease, background 210ms ease, border-color 210ms ease, box-shadow 210ms ease, transform 170ms ease;
}

.top-nav a:hover,
.nav-button:hover {
  color: var(--text-hot);
  border-color: rgba(255, 176, 74, 0.26);
  background: rgba(255, 122, 0, 0.07);
}

.nav-button.active,
.nav-button[aria-current="page"] {
  border-color: rgba(255, 176, 74, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 122, 0, 0.16), rgba(255, 122, 0, 0.07)),
    rgba(12, 8, 5, 0.72);
  color: var(--text-hot);
  box-shadow: inset 0 1px 0 rgba(255, 214, 153, 0.12), 0 0 18px rgba(255, 122, 0, 0.12);
}

.nav-button:focus-visible {
  outline: 2px solid rgba(255, 176, 74, 0.55);
  outline-offset: 2px;
}

.nav-button:active,
.search-button:active,
.header-title:active {
  transform: translateY(1px);
}

.page-shell {
  width: min(1480px, calc(100% - 32px));
  max-width: 100%;
  margin: 0 auto;
  padding: var(--space-page-top) 0 calc(76px + env(safe-area-inset-bottom));
}

.app-view {
  display: block;
}

.composer-panel,
.topics-panel,
.feed-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 17, 19, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 177, 74, 0.06);
}

.composer-panel,
.hero-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.6fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
}

.composer-panel h1 {
  max-width: 260px;
  margin: 6px 0 0;
  color: var(--text-hot);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.composer-subtitle {
  max-width: 310px;
  margin: 8px 0 0;
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  line-height: 1.45;
}

.composer-intro,
.brand-block {
  align-self: stretch;
  display: grid;
  align-content: center;
  padding-right: 14px;
  border-right: 1px solid var(--line);
}

.opinion-form {
  display: grid;
  grid-template-columns: minmax(160px, 0.72fr) minmax(260px, 1.28fr);
  gap: 16px;
  align-items: end;
  width: 100%;
}

.field,
.opinion-field,
.topic-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  color: var(--color-brand-primary-hover);
  font-size: 0.86rem;
  font-weight: 700;
}

.terms-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.form-error {
  grid-column: 1 / -1;
  margin: 0;
  color: #ffb14a;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}

.opinion-form textarea {
  width: 100%;
  min-height: 46px;
  max-height: 120px;
  resize: vertical;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080809;
  color: var(--color-text-user-content);
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.45;
  outline: none;
}

.opinion-field textarea {
  width: 100%;
}

.opinion-form textarea::placeholder,
.reply-form input::placeholder,
.reply-form textarea::placeholder {
  color: var(--color-text-muted);
}

.opinion-form textarea:focus,
.reply-form input:focus,
.reply-form textarea:focus,
.topic-input:focus {
  border-color: var(--accent-hot);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.14), 0 0 28px rgba(255, 122, 0, 0.14);
}

.opinion-button {
  align-self: center;
  margin-left: 0;
  padding: 16px 28px;
  font-size: 16px;
}

.topic-input {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080809;
  color: var(--color-text-user-content);
  font-weight: 500;
  outline: none;
}

.topic-input::placeholder {
  color: var(--color-text-muted);
}

.topic-search-wrap {
  position: relative;
  max-width: 560px;
  margin: 0 0 26px;
}

.topic-search-wrap .topic-input {
  width: 100%;
  min-height: 48px;
  padding-left: 46px;
  border-color: rgba(255, 138, 31, 0.2);
  background: rgba(8, 8, 9, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 177, 74, 0.05);
}

.topic-search-wrap .topic-input:focus {
  border-color: rgba(255, 176, 0, 0.58);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.12), inset 0 1px 0 rgba(255, 177, 74, 0.08);
}

.topic-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  z-index: 1;
  width: 18px;
  height: 18px;
  color: rgba(255, 176, 74, 0.62);
  pointer-events: none;
  transform: translateY(-50%);
}

.topic-search-icon circle,
.topic-search-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-button {
  position: relative;
  overflow: hidden;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 177, 74, 0.34);
  border-radius: 999px;
  background: linear-gradient(180deg, #ff9d1c 0%, #ff6a00 100%);
  color: #120800;
  font-weight: 800;
  box-shadow: 0 0 26px rgba(255, 122, 0, 0.28);
}

.primary-button:hover {
  background: linear-gradient(180deg, #ffb647 0%, #ff7a00 100%);
}

.content-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: var(--space-card-gap);
  align-items: start;
  margin-top: var(--space-card-gap);
  min-width: 0;
}

.primary-button::after,
.floating-opinion-trigger::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.58) 48%, transparent 72%);
  opacity: 0;
  transform: translateX(-120%);
  pointer-events: none;
}

.opinion-button::after,
.floating-opinion-trigger.is-visible::after {
  animation: opinionButtonShine 3.4s ease-in-out infinite;
}

.feed-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mobile-trending-link {
  display: none;
  color: var(--accent-hot);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.mobile-copy {
  display: none;
}

.floating-opinion-trigger {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 21;
  display: inline-flex;
  overflow: hidden;
  align-items: center;
  gap: 9px;
  min-height: 56px;
  padding: 0 22px;
  border: 1px solid rgba(255, 177, 74, 0.58);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffb347 0%, #ff7a00 100%);
  color: #120800;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 18px 58px rgba(255, 122, 0, 0.34), inset 0 1px 0 rgba(255, 238, 190, 0.32);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px) scale(0.94);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.floating-opinion-trigger.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.floating-opinion-trigger:hover,
.floating-opinion-trigger.is-open {
  border-color: rgba(255, 238, 190, 0.78);
  box-shadow: 0 20px 64px rgba(255, 122, 0, 0.42), inset 0 1px 0 rgba(255, 238, 190, 0.38);
}

.floating-trigger-icon {
  display: none;
}

.floating-opinion {
  position: fixed;
  right: 22px;
  bottom: calc(92px + var(--keyboard-offset, 0px));
  z-index: 20;
  width: min(360px, calc(100vw - 36px));
  max-height: calc(var(--visual-viewport-height, 100vh) - 112px);
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(9, 9, 10, 0.94);
  box-shadow: 0 18px 70px rgba(255, 92, 0, 0.18), inset 0 1px 0 rgba(255, 177, 74, 0.08);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px) scale(0.98);
  transform-origin: right bottom;
  transition: opacity 190ms ease, transform 190ms ease, visibility 190ms ease;
}

.floating-opinion.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.floating-opinion-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.floating-opinion h2 {
  margin: 6px 0 0;
  color: var(--text-hot);
  font-size: 1.05rem;
  letter-spacing: 0;
}

.floating-publish-top {
  display: none;
}

.floating-close {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 122, 0, 0.06);
  color: var(--accent-hot);
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
}

.floating-close:hover {
  border-color: var(--accent-hot);
  background: rgba(255, 122, 0, 0.12);
}

.floating-opinion-form {
  display: grid;
  gap: 9px;
}

.floating-opinion textarea {
  width: 100%;
  min-height: 82px;
  max-height: clamp(92px, calc(var(--visual-viewport-height, 100vh) - 270px), 180px);
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080809;
  color: var(--text-hot);
  outline: none;
}

.floating-opinion textarea:focus {
  border-color: var(--accent-hot);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.14);
}

.floating-opinion .terms-note {
  grid-column: auto;
  grid-row: auto;
  font-size: 0.74rem;
}

.floating-opinion .primary-button {
  justify-self: end;
}

.floating-legal-row {
  display: contents;
}

.admin-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #090807 0%, #050505 100%);
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-card {
  width: min(1180px, 100%);
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(10, 10, 11, 0.94);
  box-shadow: var(--shadow);
}

.admin-copy {
  margin: 0 0 16px;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.admin-login-form {
  display: grid;
  gap: 10px;
}

.admin-login-form input {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080809;
  color: var(--text-hot);
  outline: none;
}

.password-field {
  position: relative;
  display: grid;
}

.password-field input {
  padding-right: 86px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  min-width: 64px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 138, 31, 0.1);
  color: var(--text-hot);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle:focus-visible {
  border-color: rgba(255, 138, 31, 0.62);
  background: rgba(255, 138, 31, 0.18);
  outline: none;
}

.admin-search-form {
  margin: 0 0 16px;
}

.admin-search-input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #080809;
  color: var(--text-hot);
  outline: none;
}

.admin-search-input::placeholder {
  color: rgba(255, 138, 31, 0.48);
}

.admin-search-input:focus {
  border-color: var(--accent-hot);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.14);
}

.admin-error {
  min-height: 20px;
  margin: 0;
  color: #ff5a5a;
  font-weight: 700;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-toolbar-actions .active {
  border-color: var(--accent-hot);
  color: var(--text-hot);
  background: rgba(255, 122, 0, 0.12);
}

.admin-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.admin-opinion-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b0b0c;
}

.admin-opinion-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.danger-button {
  border-color: rgba(255, 61, 61, 0.4);
  color: #ff8c8c;
}

.danger-button:hover {
  border-color: rgba(255, 61, 61, 0.72);
  color: #ffd0d0;
}

.admin-opinion-head h3 {
  margin: 4px 0 0;
  color: var(--text-hot);
}

.admin-opinion-text {
  margin: 12px 0;
  color: var(--text);
  line-height: 1.6;
  white-space: pre-wrap;
}

.admin-topic-form {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.admin-topic-edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.admin-topic-input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #141416;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

.admin-topic-input:focus {
  outline: 2px solid rgba(255, 122, 0, 0.3);
  border-color: rgba(255, 122, 0, 0.68);
}

.admin-opinion-card.has-reports {
  border-color: rgba(255, 61, 61, 0.58);
}

.admin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

.admin-empty {
  margin: 0;
  color: var(--muted);
}

.analytics-head,
.analytics-filters,
.analytics-grid,
.analytics-charts,
.analytics-tables {
  display: grid;
  gap: 12px;
}

.analytics-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin: 8px 0 18px;
}

.analytics-head h2 {
  margin: 4px 0 0;
  color: var(--text-hot);
}

.analytics-filters {
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  margin-bottom: 18px;
}

.analytics-filters label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.analytics-filters select,
.analytics-filters input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080809;
  color: var(--text-hot);
  outline: none;
}

.analytics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.analytics-kpi,
.analytics-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(17, 17, 19, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 177, 74, 0.06);
}

.analytics-kpi {
  padding: 14px;
}

.analytics-kpi span,
.analytics-kpi small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.analytics-kpi strong {
  display: block;
  margin-top: 8px;
  color: var(--text-hot);
  font-size: 1.45rem;
}

.analytics-charts,
.analytics-tables {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.analytics-card {
  padding: 16px;
}

.analytics-card h3 {
  margin: 0 0 14px;
  color: var(--text-hot);
}

.analytics-bar-row {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) minmax(100px, 2fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.84rem;
}

.analytics-bar-row div {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.08);
}

.analytics-bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff7a00, #ffb14a);
  transition: width 240ms ease;
}

.analytics-donut-card {
  display: grid;
  justify-items: start;
}

.analytics-donut {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#ff8a1f calc(var(--value) * 1%), rgba(255, 122, 0, 0.12) 0);
}

.analytics-donut strong {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #080809;
  color: var(--text-hot);
}

.analytics-legend {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  color: var(--muted);
}

.analytics-table-wrap {
  overflow-x: auto;
}

.analytics-table-card table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.analytics-table-card th,
.analytics-table-card td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-align: left;
  font-size: 0.82rem;
}

.analytics-table-card th {
  color: var(--text-hot);
}

.analytics-note {
  margin-top: 18px;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 0;
  color: #9b6330;
  text-align: center;
}

.site-footer p {
  max-width: 780px;
  margin: 0 auto 10px;
  font-size: 0.78rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  margin: 12px 0;
}

.footer-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  padding: 0;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--text-hot);
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-social-link svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-warning {
  color: #b36d2c;
}

#contactView {
  width: min(920px, 100%);
  margin: 0 auto;
}

.contact-shell {
  display: grid;
  gap: 24px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255, 138, 31, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 176, 74, 0.13), transparent 30rem),
    linear-gradient(180deg, rgba(255, 122, 0, 0.05), rgba(255, 122, 0, 0.012) 58%, transparent),
    rgba(10, 10, 11, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 214, 153, 0.06), 0 28px 80px rgba(0, 0, 0, 0.22);
}

.contact-heading {
  margin-bottom: 0;
}

.contact-shell.is-sent {
  padding: clamp(32px, 5vw, 58px);
}

.contact-shell.is-sent .contact-heading {
  display: none;
}

.contact-thanks {
  max-width: 760px;
}

.contact-thanks h2 {
  margin: 8px 0 14px;
  color: var(--text-hot);
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.contact-thanks p:not(.section-label) {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.65;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-message-field,
.contact-form .terms-note,
.contact-actions {
  grid-column: 1 / -1;
}

.contact-input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080809;
  color: var(--color-text-user-content);
  font-weight: 500;
  outline: none;
}

.contact-input::placeholder {
  color: var(--color-text-muted);
}

.contact-input:focus {
  border-color: var(--accent-hot);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.14), 0 0 28px rgba(255, 122, 0, 0.14);
}

.contact-form textarea.contact-input {
  min-height: 170px;
  padding-top: 12px;
  resize: vertical;
  line-height: 1.5;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.contact-actions .ghost-button {
  margin-bottom: 0;
}

.contact-status.is-success {
  color: #5ee28a;
}

#aboutView {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.about-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
  padding: clamp(32px, 4.6vw, 54px);
  overflow: hidden;
  border: 1px solid rgba(255, 138, 31, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 176, 74, 0.13), transparent 38rem),
    linear-gradient(180deg, rgba(255, 122, 0, 0.045), rgba(255, 122, 0, 0.012) 56%, transparent),
    rgba(10, 10, 11, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 214, 153, 0.06), 0 28px 80px rgba(0, 0, 0, 0.22);
}

.about-hero-copy {
  max-width: 920px;
}

.about-hero h1 {
  max-width: 900px;
  margin: 10px 0 18px;
  color: var(--text-hot);
  font-size: clamp(3.4rem, 6.8vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: 0;
  text-wrap: balance;
}

.about-hero p:not(.section-label) {
  max-width: 760px;
  margin: 0;
  color: var(--color-text-secondary);
  font-size: clamp(1.04rem, 1.35vw, 1.18rem);
  line-height: 1.68;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  margin-top: clamp(16px, 2.2vw, 26px);
}

.about-card {
  position: relative;
  min-height: 196px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(24px, 2.6vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(255, 138, 31, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 176, 74, 0.1), transparent 48%),
    linear-gradient(180deg, rgba(255, 122, 0, 0.032), transparent 56%),
    rgba(10, 10, 11, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 214, 153, 0.06), 0 18px 48px rgba(0, 0, 0, 0.2);
  transition: transform 190ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 190ms ease, box-shadow 190ms ease, background 190ms ease;
}

.about-card::before {
  content: "";
  display: block;
  width: 38px;
  height: 38px;
  margin-bottom: 4px;
  border: 1px solid rgba(255, 176, 74, 0.2);
  border-radius: 12px;
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 176, 74, 0.2), rgba(255, 122, 0, 0.065) 58%, rgba(255, 122, 0, 0.025)),
    rgba(8, 8, 9, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 214, 153, 0.08), 0 0 20px rgba(255, 122, 0, 0.08);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 21px 21px;
}

.about-card-expression::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23ffb14a' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z'/%3E%3Cpath d='M8 10h8'/%3E%3Cpath d='M8 14h5'/%3E%3C/svg%3E"), radial-gradient(circle at 35% 22%, rgba(255, 176, 74, 0.2), rgba(255, 122, 0, 0.065) 58%, rgba(255, 122, 0, 0.025));
}

.about-card-organization::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23ffb14a' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16'/%3E%3Cpath d='M4 12h16'/%3E%3Cpath d='M4 18h16'/%3E%3Ccircle cx='8' cy='6' r='2'/%3E%3Ccircle cx='16' cy='12' r='2'/%3E%3Ccircle cx='10' cy='18' r='2'/%3E%3C/svg%3E"), radial-gradient(circle at 35% 22%, rgba(255, 176, 74, 0.2), rgba(255, 122, 0, 0.065) 58%, rgba(255, 122, 0, 0.025));
}

.about-card-anonymous::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23ffb14a' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='M9 12h6'/%3E%3Cpath d='M12 9v6'/%3E%3C/svg%3E"), radial-gradient(circle at 35% 22%, rgba(255, 176, 74, 0.2), rgba(255, 122, 0, 0.065) 58%, rgba(255, 122, 0, 0.025));
}

.about-card-safety::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23ffb14a' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4l16 16'/%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 9c1.2-1 2.6-1.5 4-1.5S14.8 8 16 9'/%3E%3C/svg%3E"), radial-gradient(circle at 35% 22%, rgba(255, 176, 74, 0.2), rgba(255, 122, 0, 0.065) 58%, rgba(255, 122, 0, 0.025));
}

.about-card:hover {
  border-color: rgba(255, 176, 74, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 214, 153, 0.08), 0 24px 58px rgba(0, 0, 0, 0.26), 0 0 24px rgba(255, 122, 0, 0.08);
  transform: translateY(-2px);
}

.about-grid h2 {
  max-width: 560px;
  margin: 0;
  color: var(--text-hot);
  font-size: clamp(1.38rem, 2vw, 1.9rem);
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

.about-grid p {
  max-width: 680px;
  margin: 0;
  color: var(--color-text-secondary);
  line-height: 1.68;
}


.topics-panel,
.feed-panel,
.search-panel {
  padding: 20px;
}

.topics-panel,
.search-panel {
  overflow: hidden;
}

.feed-panel {
  min-width: 0;
  border-color: rgba(255, 176, 0, 0.42);
  background: rgba(13, 13, 14, 0.92);
  box-shadow: 0 0 34px rgba(255, 122, 0, 0.1), inset 0 1px 0 rgba(255, 177, 74, 0.08);
}

.panel-heading {
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin: 6px 0 0;
  color: var(--text-hot);
  font-size: 1.55rem;
  letter-spacing: 0;
}

.panel-heading.horizontal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feed-panel .panel-heading {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.live-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff2d2d;
  box-shadow: 0 0 0 rgba(255, 45, 45, 0.55), 0 0 18px rgba(255, 45, 45, 0.9);
  animation: livePulse 1.25s ease-in-out infinite;
}

@keyframes livePulse {
  0% {
    opacity: 0.65;
    transform: scale(0.86);
    box-shadow: 0 0 0 0 rgba(255, 45, 45, 0.45), 0 0 12px rgba(255, 45, 45, 0.75);
  }

  55% {
    opacity: 1;
    transform: scale(1.15);
    box-shadow: 0 0 0 7px rgba(255, 45, 45, 0), 0 0 24px rgba(255, 45, 45, 1);
  }

  100% {
    opacity: 0.65;
    transform: scale(0.86);
    box-shadow: 0 0 0 0 rgba(255, 45, 45, 0), 0 0 12px rgba(255, 45, 45, 0.75);
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.08);
  color: var(--accent-hot);
  font-size: 0.85rem;
  font-weight: 700;
}

.topic-list {
  display: grid;
  gap: 10px;
}

.topic-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 66px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  text-align: left;
}

.topic-button:hover,
.topic-button.active {
  border-color: var(--accent-hot);
  background: rgba(255, 122, 0, 0.1);
  box-shadow: 0 0 22px rgba(255, 122, 0, 0.12);
}

.topic-button strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--text-hot);
  font-size: 0.96rem;
  line-height: 1.25;
}

.topic-button-content {
  min-width: 0;
}

.topic-button span {
  color: var(--muted);
  font-size: 0.82rem;
}

.topic-button-name {
  color: var(--text-hot);
  overflow-wrap: anywhere;
}

.topic-count {
  justify-self: end;
  min-width: 76px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 176, 0, 0.24);
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.08);
  color: var(--text-hot) !important;
  font-weight: 800;
  font-size: 0.9rem !important;
  text-align: center;
  white-space: nowrap;
}

.topic-empty {
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(255, 122, 0, 0.28);
  border-radius: 8px;
  background: rgba(255, 122, 0, 0.05);
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.45;
}

.topic-suggestions {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 122, 0, 0.05);
}

.topic-suggestions p {
  margin: 0;
  color: var(--text-hot);
  font-size: 0.9rem;
  font-weight: 800;
}

.suggested-topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggested-topic-list button,
.discovery-chip {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #080809;
  color: var(--text-hot);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
}

.suggested-topic-list button:hover,
.discovery-chip:hover {
  border-color: var(--accent-hot);
  background: rgba(255, 122, 0, 0.12);
  color: var(--accent-hot);
}

.view-heading {
  display: grid;
  gap: var(--space-heading-block);
  margin-bottom: var(--space-section);
}

.view-heading h1 {
  max-width: 760px;
  margin: 0;
  color: var(--text-hot);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.view-heading p:not(.section-label) {
  max-width: 620px;
  margin: 0;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.topics-heading {
  max-width: 920px;
}

.topics-heading h1 {
  margin-bottom: 0;
}

.topics-heading-row {
  display: block;
  max-width: 760px;
}

.ghost-button {
  min-height: 38px;
  margin-bottom: 18px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.06);
  color: var(--text-hot);
  font-weight: 700;
}

.topic-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topic-title-row h1 {
  margin: 0;
}

.topic-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 176, 74, 0.18);
  border-radius: 12px;
  background: radial-gradient(circle at 35% 22%, rgba(255, 176, 74, 0.22), rgba(255, 122, 0, 0.07) 58%, rgba(255, 122, 0, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 214, 153, 0.1), 0 0 18px rgba(255, 122, 0, 0.08);
  color: var(--text-hot);
  vertical-align: middle;
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 180ms ease, background 180ms ease;
}

.topic-icon.large {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.topic-icon-slot {
  display: inline-flex;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
}

.topic-icon svg,
.board-arrow svg,
.board-stat svg,
.board-activity svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(16px, 1.8vw, 24px);
  align-items: stretch;
  width: 100%;
  max-width: 1440px;
  margin-right: auto;
  animation: board-grid-in 180ms ease-out both;
}

.board-column {
  position: relative;
  min-height: 214px;
  color: inherit;
  text-decoration: none;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(18px, 2vw, 24px);
  overflow: hidden;
  border: 1px solid rgba(255, 138, 31, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 176, 74, 0.11), transparent 42%),
    linear-gradient(180deg, rgba(255, 122, 0, 0.038), rgba(255, 122, 0, 0.012) 48%, transparent),
    rgba(12, 12, 14, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 214, 153, 0.06), 0 16px 42px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: border-color 190ms ease, box-shadow 190ms ease, transform 190ms cubic-bezier(0.2, 0.8, 0.2, 1), background 190ms ease;
  touch-action: manipulation;
}

.board-column::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border-top: 1px solid rgba(255, 214, 153, 0.08);
  pointer-events: none;
}

.board-column:hover,
.board-column:focus-visible {
  border-color: rgba(255, 176, 74, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 214, 153, 0.1), 0 22px 54px rgba(0, 0, 0, 0.28), 0 0 24px rgba(255, 122, 0, 0.1);
  outline: none;
  transform: translateY(-3px);
}

.board-column:active {
  border-color: var(--accent-hot);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 176, 74, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(255, 122, 0, 0.055), rgba(255, 122, 0, 0.016) 48%, transparent),
    rgba(12, 12, 14, 0.96);
  transform: translateY(-1px) scale(0.996);
}

.board-title-group {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.board-column h2 {
  margin: 0;
  min-width: 0;
  color: var(--text-hot);
  font-size: clamp(1.08rem, 1.4vw, 1.24rem);
  line-height: 1.18;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.board-title-copy {
  min-width: 0;
}

.board-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.board-activity-badge {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(255, 176, 74, 0.2);
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.06);
  color: var(--color-brand-primary-hover);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;
}

.board-preview {
  display: grid;
  gap: 6px;
  padding-left: 11px;
  border-left: 1px solid rgba(255, 138, 31, 0.24);
}

.board-preview-label {
  color: var(--color-text-muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.board-preview p {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-text-user-content);
  font-size: 1rem;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.is-empty-topic .board-preview p {
  color: var(--color-text-secondary);
}

.board-empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  justify-self: start;
  color: var(--accent-hot);
  font-size: 0.82rem;
  font-weight: 800;
}

.board-empty-cta svg {
  width: 14px;
  height: 14px;
}

.board-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.board-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.board-stat {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid rgba(255, 138, 31, 0.15);
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.035);
  color: var(--color-text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
}

.board-stat strong {
  color: var(--color-text-primary);
  font-size: 0.9rem;
  font-weight: 800;
}

.board-stat svg {
  width: 15px;
  height: 15px;
  color: rgba(255, 176, 74, 0.7);
}

.board-activity {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: start;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.board-activity svg {
  width: 15px;
  height: 15px;
  color: rgba(255, 138, 31, 0.58);
}

.board-arrow {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 138, 31, 0.18);
  border-radius: 50%;
  background: rgba(255, 122, 0, 0.04);
  color: var(--accent-hot);
  transition: transform 190ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 190ms ease, background 190ms ease, box-shadow 190ms ease;
}

.board-column:hover .board-arrow,
.board-column:focus-visible .board-arrow {
  border-color: rgba(255, 176, 74, 0.5);
  background: rgba(255, 122, 0, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 214, 153, 0.08);
  transform: translateX(3px) scale(1.025);
}

.board-column:hover .topic-icon,
.board-column:focus-visible .topic-icon {
  border-color: rgba(255, 176, 74, 0.34);
  transform: scale(1.025);
}

.topic-accent-red .topic-icon {
  background: radial-gradient(circle at 35% 22%, rgba(255, 112, 74, 0.18), rgba(255, 122, 0, 0.06) 60%, rgba(255, 122, 0, 0.03));
}

.topic-accent-green .topic-icon {
  background: radial-gradient(circle at 35% 22%, rgba(74, 255, 157, 0.12), rgba(255, 122, 0, 0.055) 62%, rgba(255, 122, 0, 0.03));
}

.topic-accent-blue .topic-icon,
.topic-accent-steel .topic-icon {
  background: radial-gradient(circle at 35% 22%, rgba(74, 174, 255, 0.13), rgba(255, 122, 0, 0.052) 62%, rgba(255, 122, 0, 0.03));
}

.topic-accent-gold .topic-icon {
  background: radial-gradient(circle at 35% 22%, rgba(255, 207, 74, 0.16), rgba(255, 122, 0, 0.058) 62%, rgba(255, 122, 0, 0.03));
}

.topic-accent-violet .topic-icon {
  background: radial-gradient(circle at 35% 22%, rgba(179, 119, 255, 0.13), rgba(255, 122, 0, 0.052) 62%, rgba(255, 122, 0, 0.03));
}

.board-empty {
  grid-column: 1 / -1;
}

@keyframes board-grid-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feed-list {
  display: grid;
  gap: 16px;
}

.discovery-panel {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.discovery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.opinion-card {
  position: relative;
  overflow: hidden;
  padding: 17px 20px 16px;
  border: 1px solid rgba(255, 145, 0, 0.18);
  border-radius: 12px;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 145, 0, 0.045), transparent 38%),
    linear-gradient(145deg, rgba(24, 18, 14, 0.97), rgba(9, 9, 9, 0.99));
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.3),
    0 0 18px rgba(255, 130, 0, 0.025),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
  color: var(--color-text-user-content-secondary);
  line-height: 1.5;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease, background 200ms ease;
}

.opinion-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 153, 0, 0.45), transparent);
  pointer-events: none;
}

.feed-panel .opinion-card:first-child {
  border-color: rgba(255, 176, 0, 0.28);
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 145, 0, 0.065), transparent 40%),
    linear-gradient(145deg, rgba(28, 19, 13, 0.98), rgba(9, 9, 9, 0.99));
}

@media (hover: hover) {
  .opinion-card:hover {
    border-color: rgba(255, 145, 0, 0.34);
    box-shadow:
      0 14px 34px rgba(0, 0, 0, 0.36),
      0 0 22px rgba(255, 130, 0, 0.035),
      inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transform: translateY(-1px);
  }
}

@media (min-width: 981px) {
  :root {
    --feed-text-primary: #d9c2a6;
    --feed-text-secondary: #b89a7d;
  }
}

.opinion-card:active {
  transform: translateY(0) scale(0.998);
  transition-duration: 120ms;
}

.open-opinion {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.open-opinion:hover .opinion-text {
  color: var(--color-text-user-content);
}

.opinion-meta,
.opinion-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.opinion-meta {
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 0;
  margin: 0 0 14px;
  padding: 0;
}

.opinion-meta-left {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.date-stamp {
  color: var(--feed-text-muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.date-stamp::before {
  content: "\00b7";
  margin-right: 8px;
  color: rgba(255, 138, 31, 0.42);
}

.author {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--feed-text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.topic {
  position: relative;
  padding-left: 11px;
  color: var(--feed-accent);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.topic::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 10px rgba(255, 176, 0, 0.45);
  transform: translateY(-50%);
}

.life-label {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  padding: 0 7px;
  border: 1px solid rgba(255, 122, 0, 0.22);
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.045);
  color: rgba(255, 176, 0, 0.78);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
}

.opinion-meta .life-label {
  display: none;
}

.opinion-text {
  max-width: 720px;
  margin: 0 0 13px;
  color: var(--feed-text-primary);
  font-size: clamp(1.02rem, 1.18vw, 1.18rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
  white-space: pre-wrap;
}

.like-button,
.dislike-button,
.share-button,
.report-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 34px;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid rgba(255, 145, 0, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.018);
  color: rgba(255, 226, 189, 0.62);
  transition: border-color 190ms ease, background 190ms ease, color 190ms ease, transform 190ms ease;
}

.opinion-action-button {
  width: 34px;
  min-width: 34px;
  padding: 0;
}

.opinion-action-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.like-button svg,
.dislike-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.like-button:hover,
.dislike-button:hover,
.share-button:hover,
.report-button:hover,
.like-button:focus-visible,
.dislike-button:focus-visible,
.share-button:focus-visible,
.report-button:focus-visible {
  border-color: rgba(255, 122, 0, 0.62);
  background: rgba(255, 145, 0, 0.07);
  color: #ff9d18;
  transform: translateY(-1px);
}

.like-button.liked,
.dislike-button.disliked,
.share-button.is-confirmed,
.report-button.is-confirmed {
  border-color: var(--accent-hot);
  background: rgba(255, 145, 0, 0.1);
  color: #ff9d18;
}

.report-button {
  margin-left: 4px;
  border-color: rgba(255, 61, 61, 0.34);
  color: #ffb0b0;
}

.views,
.replies,
.likes,
.dislikes {
  color: var(--color-text-secondary);
}

.notification-stack {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  gap: 10px;
  width: min(300px, calc(100vw - 32px));
  pointer-events: none;
}

.app-toast {
  padding: 11px 14px;
  border: 1px solid rgba(255, 122, 0, 0.58);
  border-radius: 8px;
  background: rgba(8, 8, 9, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  color: var(--accent-hot);
  font-size: 0.86rem;
  font-weight: 700;
  animation: toastIn 180ms ease-out both;
}

.app-toast.is-leaving {
  animation: toastOut 180ms ease-in both;
}

.report-notice {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 61;
  width: min(430px, calc(100vw - 36px));
  padding: 18px 18px 16px 44px;
  border: 1px solid rgba(255, 122, 0, 0.62);
  border-radius: 8px;
  background: rgba(8, 8, 9, 0.97);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  color: var(--color-text-user-content);
  animation: noticeIn 180ms ease-out both;
}

.report-notice.is-leaving {
  animation: noticeOut 180ms ease-in both;
}

.report-notice p {
  margin: 0;
  color: var(--color-text-user-content);
  font-size: 0.92rem;
  line-height: 1.5;
}

.report-notice p::first-line {
  color: var(--accent-hot);
}

.report-notice-close {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 122, 0, 0.38);
  border-radius: 999px;
  background: #050505;
  color: var(--accent-hot);
  font-size: 1rem;
  line-height: 1;
}

.report-notice-close:hover,
.report-notice-close:focus-visible {
  border-color: var(--accent-hot);
  background: rgba(255, 122, 0, 0.12);
}

.dislike-button.disliked {
  border-color: rgba(255, 176, 74, 0.78);
}

.report-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 62;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
}

.report-modal {
  width: min(520px, 100%);
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(10, 10, 11, 0.98);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 177, 74, 0.12);
}

.report-modal h2 {
  margin: 8px 0 8px;
  color: var(--color-brand-primary-hover);
  font-size: 1.55rem;
  letter-spacing: 0;
}

.report-modal p {
  margin: 0 0 18px;
  color: var(--color-text-user-content-secondary);
  line-height: 1.55;
}

.report-reason-list {
  display: grid;
  gap: 10px;
}

.report-reason-option {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080809;
  color: var(--color-text-user-content-secondary);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.report-reason-option:hover,
.report-reason-option:focus-visible,
.report-reason-option.is-selected {
  border-color: var(--accent-hot);
  background: rgba(255, 122, 0, 0.12);
  color: var(--accent-hot);
}

.report-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.report-modal-actions .ghost-button {
  margin-bottom: 0;
}

.report-modal-actions .primary-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.clipboard-helper {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes noticeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes noticeOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

.feed-loading {
  color: var(--color-text-muted);
}

.opinion-skeleton,
.topic-button-skeleton {
  pointer-events: none;
}

.skeleton-line,
.skeleton-actions {
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 122, 0, 0.08), rgba(255, 177, 74, 0.2), rgba(255, 122, 0, 0.08));
  background-size: 220% 100%;
  animation: skeletonShimmer 1.15s ease-in-out infinite;
}

.opinion-skeleton .skeleton-line {
  height: 12px;
  margin-bottom: 12px;
}

.opinion-skeleton .meta {
  width: 42%;
  height: 10px;
}

.opinion-skeleton .title {
  width: 72%;
  height: 18px;
}

.opinion-skeleton .body {
  width: 100%;
}

.opinion-skeleton .short {
  width: 58%;
}

.skeleton-actions {
  width: 168px;
  height: 30px;
  margin-top: 14px;
}

.topic-button-skeleton .skeleton-line {
  justify-self: end;
  width: 74px;
  height: 28px;
}

@keyframes skeletonShimmer {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: -100% 0;
  }
}

@keyframes opinionButtonShine {
  0%,
  54% {
    opacity: 0;
    transform: translateX(-120%);
  }

  66% {
    opacity: 0.42;
  }

  82%,
  100% {
    opacity: 0;
    transform: translateX(120%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .board-column,
  .opinion-card,
  .like-button,
  .dislike-button,
  .share-button,
  .report-button,
  .board-arrow,
  .topic-icon {
    transition: none;
  }

  .board-column:hover,
  .board-column:focus-visible,
  .board-column:active,
  .opinion-card:hover,
  .like-button:hover,
  .dislike-button:hover,
  .share-button:hover,
  .report-button:hover,
  .board-column:hover .board-arrow,
  .board-column:focus-visible .board-arrow,
  .board-column:hover .topic-icon,
  .board-column:focus-visible .topic-icon {
    transform: none;
  }
}

.opinion-form.is-publishing,
.floating-opinion-form.is-publishing {
  opacity: 0.72;
}

.thread {
  display: grid;
  gap: 0;
  margin-top: 0;
  padding-left: 0;
  border-left: 0;
}

.reply-content {
  margin: 0;
  max-width: 720px;
  color: var(--feed-text-secondary);
  font-size: clamp(0.92rem, 1vw, 1rem);
  font-weight: 450;
  line-height: 1.55;
}

.reply-label {
  margin-right: 6px;
  color: var(--feed-accent-soft);
  font-weight: 700;
}

.reply-item {
  position: relative;
  display: grid;
  gap: 0;
  width: auto;
  max-width: 100%;
  margin: 18px 0 0;
  padding: 0 0 0 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  background-color: transparent;
  background-image: none;
  box-shadow: none;
  outline: none;
  filter: none;
  backdrop-filter: none;
}

.reply-item::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    rgba(255, 166, 45, 0.82),
    rgba(255, 126, 0, 0.38)
  );
}

.reply-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  background-color: transparent;
  background-image: none;
  box-shadow: none;
  outline: none;
  filter: none;
  backdrop-filter: none;
}

.reply-card-highlight {
  background: transparent;
  background-color: transparent;
  background-image: none;
  box-shadow: none;
}

.reply-item.reply-card-highlight::before {
  background: rgba(255, 176, 0, 0.86);
}

.reply-date {
  display: block;
  margin-top: 7px;
  color: var(--feed-text-muted);
  font-size: 0.82rem;
  line-height: 1.3;
  font-weight: 500;
  font-style: normal;
}

.reply-date::before {
  content: none;
}

.reply-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.reply-item .like-button {
  justify-self: start;
}

.reply-actions button,
.reply-item .like-button,
.reply-item .dislike-button,
.reply-item .report-button {
  min-width: 0;
  min-height: 0;
  padding: 7px 10px;
  border: 1px solid rgba(255, 153, 0, 0.18);
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: var(--feed-text-muted);
  font-size: 0.82rem;
}

.reply-item .opinion-action-button {
  width: auto;
  min-width: 0;
}

.reply-item .report-button {
  border-color: rgba(255, 119, 92, 0.22);
  color: rgba(255, 119, 92, 0.58);
}

.reply-item .like-button:hover,
.reply-item .dislike-button:hover,
.reply-item .report-button:hover,
.reply-item .like-button:focus-visible,
.reply-item .dislike-button:focus-visible,
.reply-item .report-button:focus-visible {
  border-color: rgba(255, 145, 0, 0.2);
  background: transparent;
  color: rgba(255, 177, 74, 0.82);
}

.reply-item .report-button:hover,
.reply-item .report-button:focus-visible {
  border-color: rgba(255, 119, 92, 0.34);
  color: rgba(255, 135, 106, 0.8);
}

.reply-form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 8px;
  margin-top: 20px;
  padding-top: 0;
  border-top: 0;
}

.reply-form input,
.reply-form textarea {
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 145, 0, 0.18);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.36);
  color: var(--color-text-user-content);
  font-weight: 500;
  outline: none;
}

.reply-form textarea {
  height: 44px;
  max-height: 150px;
  resize: none;
  overflow: hidden;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.reply-form button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 133, 0, 0.55);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 137, 0, 0.12), rgba(255, 115, 0, 0.045));
  color: var(--accent-hot);
  font-weight: 700;
}

.reply-form button:hover,
.reply-form button:focus-visible {
  border-color: rgba(255, 153, 0, 0.7);
  background: linear-gradient(180deg, rgba(255, 148, 0, 0.22), rgba(255, 117, 0, 0.1));
}

.reply-form-error {
  margin: 8px 0 0;
  color: rgba(255, 177, 74, 0.86);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.detail-shell {
  max-width: 820px;
}

.detail-shell .opinion-card {
  padding: clamp(20px, 4vw, 34px);
}

.detail-shell .open-opinion {
  cursor: default;
}

.detail-shell .opinion-text {
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  line-height: 1.55;
}

.detail-shell .thread {
  margin-top: 0;
  gap: 0;
}

@media (max-width: 980px) {
  :root {
    --space-page-top: 18px;
    --space-section: 28px;
    --space-heading-block: 12px;
    --space-list-gap: 18px;
    --space-card-gap: 16px;
  }

  .opinion-stats {
    flex-wrap: nowrap;
    gap: 6px;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .opinion-stats .views,
  .opinion-stats .replies {
    flex: 0 1 auto;
    min-width: 0;
  }

  .opinion-stats .like-button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 10px;
  }

  .opinion-stats .dislike-button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 10px;
  }

  .opinion-action-button {
    flex: 0 0 40px;
    width: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .notification-stack {
    right: 12px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
  }

  .report-notice {
    left: 12px;
    right: 12px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    width: auto;
    padding: 16px 14px 14px 42px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-actions .primary-button,
  .contact-actions .ghost-button {
    width: 100%;
  }

  .site-header {
    position: static;
    top: auto;
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 11px;
    min-height: 0;
    padding: 12px;
  }

  .header-title {
    justify-self: center;
    width: auto;
    max-width: 100%;
    min-width: 0;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
    text-align: center;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .header-search {
    display: grid;
    justify-self: stretch;
    width: 100%;
  }

  .mobile-search {
    display: none;
  }

  .top-nav {
    position: static;
    justify-self: stretch;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    min-height: 50px;
    padding: 4px;
    border-radius: 18px;
  }

  .nav-button {
    width: 100%;
    min-height: 44px;
    padding: 0 10px;
    border-radius: 14px;
    text-align: center;
  }

  #homeView .composer-panel {
    display: none;
  }

  .composer-panel,
  .hero-card,
  .content-grid,
  .about-hero {
    grid-template-columns: 1fr;
  }

  .topic-search-wrap {
    max-width: none;
    margin-bottom: 20px;
  }

  .board-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 18px;
  }

  .board-column {
    min-height: 188px;
    gap: 12px;
    padding: 18px;
  }

  .board-column h2 {
    font-size: 1.12rem;
  }

  .board-description {
    font-size: 0.92rem;
  }

  .board-stat,
  .board-activity {
    font-size: 0.82rem;
  }

  .board-stat {
    min-height: 30px;
    padding: 0 8px;
  }

  .about-hero {
    padding: 28px;
  }

  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
  }

  .about-card {
    min-height: 0;
  }

  .composer-intro {
    padding-right: 0;
    padding-bottom: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .opinion-form {
    grid-template-columns: 1fr;
  }

  .terms-note {
    grid-column: auto;
  }

  .opinion-button {
    width: 100%;
    margin-left: 0;
  }

  .topics-panel {
    order: 3;
    padding: 14px;
  }

  .feed-panel {
    order: 1;
  }

  .mobile-search-panel {
    order: 2;
    display: block;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(17, 17, 19, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 177, 74, 0.06);
  }

  .topics-panel .panel-heading {
    margin-bottom: 10px;
  }

  .topics-panel .section-label {
    display: none;
  }

  .topics-panel .panel-heading h2 {
    margin: 0;
    font-size: 0.98rem;
  }

  .topics-panel .desktop-copy {
    display: none;
  }

  .topics-panel .mobile-copy {
    display: inline;
  }

  .topic-list {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    padding: 2px;
  }

  .topic-button {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 42px;
    max-width: none;
    padding: 8px 12px;
    text-align: center;
  }

  .topic-button-content,
  .topic-button strong {
    display: grid;
    justify-items: center;
    gap: 6px;
  }

  .topic-button strong {
    font-size: 0.76rem;
    line-height: 1.2;
  }

  .topic-score,
  .mobile-trending-link {
    display: none;
  }

  .topic-count {
    display: none;
  }
}

@media (min-width: 641px) and (max-width: 980px) {
  .site-header {
    grid-template-columns: minmax(150px, 1fr) auto minmax(260px, 320px);
    align-items: center;
    column-gap: 18px;
    row-gap: 0;
    min-height: 64px;
    padding: 10px 18px;
  }

  .header-title {
    justify-self: start;
    min-height: 44px;
    font-size: 0.96rem;
    text-align: left;
  }

  .header-search {
    justify-self: end;
    width: 100%;
  }

  .top-nav {
    justify-self: center;
    display: inline-flex;
    grid-template-columns: none;
    width: auto;
    min-height: 42px;
    padding: 3px;
  }

  .nav-button {
    width: auto;
    min-height: 34px;
    padding: 0 15px;
  }
}

@media (max-width: 640px) {
  :root {
    --space-page-top: 16px;
    --space-section: 26px;
    --space-heading-block: 11px;
    --space-list-gap: 18px;
    --space-card-gap: 14px;
  }

  .page-shell {
    width: calc(100% - 28px);
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }

  #homeView,
  #topicDetailView,
  #searchView,
  #detailView {
    width: 100%;
    margin-inline: auto;
  }

  #contactView {
    width: 100%;
  }

  body:has(#contactView:not(.hidden)) .header-search,
  body:has(#contactView:not(.hidden)) .floating-opinion-trigger,
  body:has(#contactView:not(.hidden)) .contact-actions .ghost-button {
    display: none;
  }

  .contact-shell {
    gap: 12px;
    padding: 16px;
  }

  .contact-heading .section-label {
    margin-bottom: 6px;
  }

  .contact-heading h1 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 10vw, 2.6rem);
    line-height: 1.02;
  }

  .contact-heading p:not(.section-label) {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .contact-form {
    gap: 10px;
  }

  .field,
  .opinion-field,
  .topic-field {
    gap: 5px;
  }

  .field-label {
    font-size: 0.8rem;
  }

  .contact-input {
    min-height: 40px;
  }

  .contact-form textarea.contact-input {
    min-height: 96px;
  }

  .about-hero {
    padding: 22px;
  }

  .about-hero h1 {
    margin: 8px 0 14px;
    font-size: clamp(2.55rem, 13vw, 3.55rem);
  }

  .about-hero p:not(.section-label) {
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 14px;
  }

  .about-card {
    padding: 20px;
    gap: 10px;
  }

  .about-grid h2 {
    font-size: 1.22rem;
  }

  .about-grid p {
    line-height: 1.58;
  }

  .topics-heading h1 {
    font-size: clamp(2rem, 12vw, 2.65rem);
  }

  .topic-search-wrap {
    margin-bottom: 16px;
  }

  .topic-search-wrap .topic-input {
    min-height: 46px;
    padding-left: 44px;
  }

  .board-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .board-column {
    min-height: 0;
    gap: 10px;
    padding: 16px;
  }

  .board-column-header {
    gap: 10px;
  }

  .board-title-group {
    gap: 10px;
  }

  .topic-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .topic-icon svg {
    width: 18px;
    height: 18px;
  }

  .board-column h2 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 1.02rem;
    line-height: 1.22;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .board-title-line {
    gap: 6px;
  }

  .board-activity-badge {
    min-height: 20px;
    padding: 0 7px;
    font-size: 0.64rem;
  }

  .board-preview {
    gap: 5px;
    padding-left: 9px;
  }

  .board-preview p {
    font-size: 0.88rem;
    line-height: 1.48;
    -webkit-line-clamp: 3;
  }

  .board-meta {
    gap: 0;
    row-gap: 4px;
    min-width: 0;
  }

  .board-stat {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 0.82rem;
  }

  .board-stat + .board-stat::before {
    content: "·";
    margin: 0 8px;
    color: rgba(255, 138, 31, 0.48);
  }

  .board-stat svg {
    width: 14px;
    height: 14px;
  }

  .board-arrow {
    width: 44px;
    height: 44px;
  }

  .opinion-stats {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.76rem;
    white-space: normal;
  }

  .opinion-stats .like-button {
    min-height: 40px;
    padding: 0 10px;
  }

  .opinion-stats .dislike-button {
    min-height: 40px;
    padding: 0 10px;
  }

  .opinion-action-button {
    flex-basis: 40px;
    width: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .opinion-action-button svg {
    width: 15px;
    height: 15px;
  }

  body.mobile-composer-open {
    overflow: hidden;
  }

  .admin-toolbar,
  .admin-toolbar-actions,
  .admin-actions,
  .admin-opinion-head {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-topic-edit {
    grid-template-columns: 1fr;
  }

  .analytics-head,
  .analytics-filters,
  .analytics-grid,
  .analytics-charts,
  .analytics-tables {
    grid-template-columns: 1fr;
  }

  .analytics-bar-row {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: stretch;
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 10px 8px;
    overflow: visible;
  }

  .header-title {
    max-width: 100%;
    font-size: 0.9rem;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .top-nav {
    align-items: center;
    gap: 4px;
  }

  .page-shell {
    width: calc(100% - 28px);
    padding-top: var(--space-page-top);
  }

  .content-grid {
    width: 100%;
    gap: 10px;
    margin-top: 0;
  }

  .feed-list {
    gap: 16px;
  }

  .feed-panel,
  .topics-panel,
  .search-panel,
  .detail-shell,
  .feed-list,
  .search-results-list,
  .topic-detail-list,
  .opinion-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .opinion-card {
    padding: 15px 14px;
    border-radius: 12px;
  }

  .opinion-card::before {
    left: 16px;
    right: 16px;
  }

  .opinion-meta {
    gap: 8px;
    align-items: center;
    margin-bottom: 13px;
  }

  .opinion-meta-left {
    gap: 6px;
  }

  .topic {
    font-size: 0.78rem;
  }

  .date-stamp,
  .author,
  .date-stamp::before {
    font-size: 0.74rem;
  }

  .opinion-text {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: clamp(1rem, 4.6vw, 1.16rem);
    line-height: 1.48;
  }

  .thread {
    margin-top: 0;
  }

  .reply-item {
    margin-top: 16px;
    padding-left: 14px;
    border-radius: 0;
  }

  .reply-item::before {
    width: 2px;
  }

  .reply-content {
    font-size: 0.92rem;
    line-height: 1.52;
  }

  .reply-date {
    margin-top: 6px;
    font-size: 0.78rem;
  }

  .reply-actions {
    gap: 6px;
    margin-top: 9px;
  }

  .reply-actions button {
    padding: 6px 9px;
    font-size: 0.8rem;
  }

  .feed-panel,
  .topics-panel,
  .search-panel {
    padding: 16px;
  }

  .modal {
    padding: 26px;
  }

  body.reply-field-focused {
    padding-bottom: calc(var(--reply-keyboard-offset, 0px) + 120px + env(safe-area-inset-bottom));
  }

  body.reply-field-focused .detail-shell {
    scroll-margin-bottom: calc(var(--reply-keyboard-offset, 0px) + 140px);
  }

  .reply-form {
    grid-template-columns: 1fr;
  }

  .primary-button,
  .reply-form button {
    width: 100%;
  }

  .floating-opinion-trigger {
    right: 12px;
    bottom: calc(12px + var(--keyboard-offset, 0px));
    max-width: calc(100vw - 24px);
    min-height: 52px;
    padding: 0 16px;
    font-size: 0.94rem;
  }

  body.mobile-composer-open .floating-opinion-trigger {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px) scale(0.94);
  }

  .floating-opinion {
    inset: 0;
    bottom: auto;
    width: auto;
    height: var(--visual-viewport-height, 100vh);
    max-height: none;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    border: 0;
    border-radius: 0;
    background: #000;
    box-shadow: none;
    backdrop-filter: none;
    transform: translateY(18px);
    transform-origin: center bottom;
  }

  .floating-opinion-header {
    align-items: center;
    justify-content: flex-start;
    min-height: 38px;
    margin: 0;
    padding-bottom: 12px;
  }

  .floating-opinion-header > div {
    min-width: 0;
  }

  .floating-opinion-header .section-label {
    display: none;
  }

  .floating-opinion h2 {
    display: none;
  }

  .floating-close {
    order: -1;
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border: 0;
    background: transparent;
    color: var(--accent-hot);
    font-size: 1.65rem;
    font-weight: 500;
    line-height: 1;
  }

  .floating-opinion-form {
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto auto;
    gap: 14px;
    overflow: hidden;
  }

  .floating-opinion textarea {
    min-height: 0;
    height: 100%;
    max-height: none;
    resize: none;
    padding: 4px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--color-text-user-content);
    font-size: 1.55rem;
    line-height: 1.34;
    caret-color: var(--accent-hot);
  }

  .floating-opinion textarea::placeholder {
    color: var(--color-text-muted);
  }

  .floating-opinion textarea:focus {
    border-color: transparent;
    box-shadow: none;
  }

  .floating-opinion .topic-input {
    min-height: 46px;
    border-color: rgba(255, 138, 31, 0.34);
    background: rgba(255, 122, 0, 0.06);
  }

  .floating-opinion .terms-note {
    min-width: 0;
    padding: 0;
    border-top: 0;
    color: var(--color-text-muted);
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .floating-opinion .form-error {
    margin: -4px 0 0;
    padding: 10px 12px;
    border: 1px solid rgba(255, 138, 31, 0.32);
    border-radius: 8px;
    background: rgba(255, 122, 0, 0.08);
    font-size: 0.82rem;
  }

  .floating-legal-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 138, 31, 0.22);
  }

  .floating-opinion .primary-button {
    justify-self: end;
    width: auto;
    min-width: 82px;
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.86rem;
  }
}
