:root {
  --bg: #000;
  --panel: #0f1419;
  --panel-soft: #16181c;
  --line: #2f3336;
  --text: #e7e9ea;
  --muted: #71767b;
  --oppose: #f04438;
  --defend: #2f80ed;
  --abstain: #f2f4f7;
  --accent: #1d9bf0;
  --gold: #f5c542;
  --mobile-header-height: 54px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 720px) 320px;
  gap: 0;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px 72px;
}
.sidebar, .rightbar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 14px;
}
.rightbar {
  display: flex;
  flex-direction: column;
}
.rightbar-footer,
.mobile-menu-footer,
.content-footer {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.content-footer {
  display: none;
  padding: 18px;
  border-top: 1px solid var(--line);
}
.rightbar-footer {
  margin-top: auto;
  padding: 12px 2px 2px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 8px;
}
.footer-links a {
  color: #9aa0a6;
}
.footer-links a:hover {
  color: var(--gold);
}
.right-profile-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 8px;
  border-radius: 999px;
  color: var(--text);
}
.right-profile-card:hover {
  background: var(--panel-soft);
}
.right-profile-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  font-size: 22px;
  font-weight: 900;
}
.right-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.right-profile-copy {
  min-width: 0;
}
.right-profile-name {
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.right-profile-username {
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand {
  display: block;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0;
  margin-bottom: 6px;
}
.logo-brand {
  display: block;
  margin: 0 0 12px;
}
.logo-brand img {
  display: block;
  width: min(100%, 230px);
  height: auto;
}
.mobile-brandbar {
  display: none;
}
.mobile-menu-panel {
  display: none;
}
.tagline { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  color: var(--text);
}
.nav-link:hover { background: var(--panel-soft); }
.notification-link {
  justify-content: flex-start;
}
.unread-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,197,66,.14);
  vertical-align: middle;
}
.metric-icon {
  display: inline-block;
  width: 15px;
  height: 15px;
  color: var(--gold);
  fill: currentColor;
  flex: 0 0 auto;
  vertical-align: -2px;
}
.btn .metric-icon,
.chip .metric-icon {
  margin-right: 4px;
}
.main {
  min-height: 100vh;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--bg);
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: rgba(0,0,0,.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.title { font-size: 20px; font-weight: 850; }
.btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--gold);
  color: #050505;
  font-weight: 800;
  cursor: pointer;
}
.btn.secondary { background: var(--panel-soft); color: var(--text); border: 1px solid var(--line); }
.btn.oppose { background: var(--oppose); }
.btn.defend { background: var(--defend); }
.btn.abstain { background: var(--abstain); color: #101828; }
.google-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  border: 1px solid #dadce0;
  border-radius: 999px;
  padding: 11px 16px;
  background: #fff;
  color: #202124;
  font-weight: 800;
  box-shadow: 0 1px 2px rgba(0,0,0,.18);
}
.google-auth-btn:hover {
  background: #f8fafd;
  border-color: #c7d2fe;
}
.google-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.auth-title {
  margin: 0;
  font-family: Garamond, Georgia, "Times New Roman", serif;
  font-size: 32px;
  line-height: 1.05;
}
.feed-card, .panel {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.feed-card:hover { background: #080808; }
.sponsored-carousel {
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at top right, rgba(245,197,66,.1), transparent 32%), var(--bg);
}
.sponsored-carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 0;
}
.sponsored-carousel-header strong {
  color: var(--gold);
  font-family: Garamond, Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1;
}
.sponsored-carousel-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sponsored-carousel-controls button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(245,197,66,.34);
  border-radius: 999px;
  background: var(--panel);
  color: var(--gold);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}
.sponsored-carousel-controls button:hover {
  background: rgba(245,197,66,.12);
}
.sponsored-carousel-window {
  overflow: hidden;
}
.sponsored-carousel-track {
  display: flex;
  transition: transform .48s ease;
  will-change: transform;
}
.sponsored-carousel-slide {
  min-width: 100%;
}
.sponsored-carousel .feed-card {
  border-bottom: 0;
  background: transparent;
}
.feed-loader {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}
.feed-loader.is-loading {
  color: var(--gold);
}
.meta { color: var(--muted); font-size: 13px; }
.debate-title {
  font-family: Garamond, Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 700;
  margin: 8px 0;
  line-height: 1.14;
}
.context { color: #c7cbd1; line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  background: var(--panel);
  color: var(--text);
}
.chip:hover,
.chip.active {
  border-color: rgba(245,197,66,.72);
  color: var(--gold);
}
.chip.oppose { color: #ffb4ad; border-color: rgba(240,68,56,.45); background: rgba(240,68,56,.11); }
.chip.defend { color: #b8d8ff; border-color: rgba(47,128,237,.5); background: rgba(47,128,237,.12); }
.chip.abstain { color: #f2f4f7; border-color: rgba(242,244,247,.38); background: rgba(242,244,247,.08); }
.meter {
  display: grid;
  grid-template-columns: var(--oppose-pct, 33fr) var(--defend-pct, 33fr) var(--abstain-pct, 34fr);
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  margin: 14px 0 8px;
  background: var(--panel-soft);
}
.meter span:nth-child(1) { background: var(--oppose); }
.meter span:nth-child(2) { background: var(--defend); }
.meter span:nth-child(3) { background: var(--abstain); }
.topic-detail-header {
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.topic-h1 {
  font-family: Garamond, Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 6vw, 52px);
  line-height: .98;
  font-weight: 700;
  letter-spacing: 0;
  margin: 10px 0 12px;
}
.topic-context {
  max-width: 64ch;
  margin: 0 0 12px;
}
.compact-side-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
}
.side-label {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .02em;
}
.side-label.oppose { color: #ffb4ad; }
.side-label.defend { color: #b8d8ff; }
.side-label.abstain { color: #f2f4f7; }
.compact-meter {
  margin-top: 12px;
}
.switch-side-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.switch-label {
  font-weight: 900;
}
.switch-side-form .chip {
  cursor: pointer;
}
.switch-side-form .chip:disabled {
  opacity: .5;
  cursor: default;
}
.topic-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}
.sort-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.sort-form select {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--text);
  background: var(--panel);
}
.composer-panel[hidden] {
  display: none;
}
.bash-composer[hidden] {
  display: none;
}
.switch-side-panel[hidden] {
  display: none;
}
.bash-composer {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15,20,25,.62);
}
.switch-side-panel {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15,20,25,.62);
}
.composer-panel {
  background: #050505;
}
.notice.compact-notice { margin: 0; }
.auth-prompt {
  display: grid;
  gap: 8px;
}
.compact-composer {
  margin-top: 12px;
}
.compact-composer .field textarea {
  min-height: 78px;
}
.side-choice-form {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.char-count {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}
.form-stack { display: grid; gap: 12px; }
.field label { display: block; font-weight: 800; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--text);
  background: var(--panel);
}
.field textarea { min-height: 96px; resize: vertical; }
.legal-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(245,197,66,.24);
  border-radius: 8px;
  padding: 12px;
  background: rgba(245,197,66,.07);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}
.legal-check input {
  margin-top: 3px;
  accent-color: var(--gold);
}
.legal-check a,
.static-page a {
  color: var(--gold);
  font-weight: 800;
}
.legal-note {
  margin-top: -4px;
}
.error { color: #ffb4ad; font-size: 14px; margin-top: 4px; }
.notice { margin: 12px 18px; padding: 12px; background: rgba(18,183,106,.14); color: #75e0a7; border: 1px solid rgba(18,183,106,.25); border-radius: 8px; }
.strike-box {
  display: grid;
  gap: 3px;
  margin-bottom: 8px;
  border: 1px solid rgba(245,197,66,.3);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(245,197,66,.08);
  color: #ffe8a3;
}
.strike-box span {
  color: var(--muted);
  font-size: 13px;
}
.strike-form {
  margin-top: 10px;
  border: 1px solid rgba(245,197,66,.24);
  border-radius: 8px;
  padding: 12px;
  background: #050505;
}
.strike-form[hidden] {
  display: none;
}
.strike-btn {
  color: var(--gold);
}
.situation-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 22px 18px 18px;
  background: radial-gradient(circle at top right, rgba(245,197,66,.12), transparent 34%), var(--bg);
}
.situation-hero h1 {
  margin: 4px 0 8px;
  font-family: Garamond, Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1;
}
.situation-create-toggle {
  flex: 0 0 auto;
}
.situation-create-panel[hidden] {
  display: none;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(245,197,66,.24);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(245,197,66,.07);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}
.checkbox-row input {
  accent-color: var(--gold);
}
.situation-list h2 {
  margin: 0 0 12px;
  font-family: Garamond, Georgia, "Times New Roman", serif;
  font-size: 28px;
}
.situation-thread-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 10px;
  background: var(--panel);
}
.situation-thread-card:hover {
  border-color: rgba(245,197,66,.5);
}
.situation-thread-card.is-unread {
  border-color: rgba(245,197,66,.42);
  background: linear-gradient(90deg, rgba(245,197,66,.08), rgba(15,20,25,.96));
}
.situation-thread-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.situation-thread-main > div {
  min-width: 0;
}
.situation-thread-main strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.situation-thread-meta {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.situation-unread-dot {
  width: 11px;
  height: 11px;
  margin-top: 5px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(245,197,66,.14);
}
.situation-reply {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.situation-reply:first-of-type {
  padding-top: 0;
}
.situation-reply p {
  margin: 0 0 8px;
  line-height: 1.45;
}
.comment {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.rebuttal-comment {
  margin: 10px 0 0 18px;
  padding: 10px 12px;
  border: 1px solid rgba(245,197,66,.24);
  border-radius: 8px;
  background: rgba(245,197,66,.07);
}
.comment-body { margin: 6px 0 10px; line-height: 1.45; }
.link-preview-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  max-width: 520px;
  min-height: 72px;
  margin: 8px 0 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.link-preview-card:hover {
  border-color: rgba(245,197,66,.42);
}
.link-preview-card img,
.link-preview-fallback {
  width: 72px;
  height: 72px;
}
.link-preview-card img {
  object-fit: cover;
  background: var(--panel-soft);
}
.link-preview-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(245,197,66,.2), rgba(47,128,237,.18));
  color: var(--gold);
  font-size: 24px;
  font-weight: 900;
}
.link-preview-copy {
  min-width: 0;
  padding: 8px 10px 8px 0;
}
.link-preview-domain {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link-preview-copy strong {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link-preview-copy p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 3px 0 0;
  color: #a8adb3;
  font-size: 12px;
  line-height: 1.25;
}
.comment-meta {
  font-size: 12px;
}
.comment-username {
  color: var(--text);
  font-weight: 900;
}
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.comment-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  gap: 4px;
  margin: 10px 0 6px;
  padding: 4px 0;
  border-top: 1px solid rgba(47,51,54,.72);
  border-bottom: 1px solid rgba(47,51,54,.72);
}
.comment-actions form {
  min-width: 0;
  margin: 0;
}
.comment-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  padding: 8px 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
}
.comment-action:hover {
  background: var(--panel-soft);
  color: var(--text);
}
.comment-action.is-static {
  cursor: default;
}
.comment-action.is-static:hover {
  background: transparent;
  color: var(--muted);
}
.comment-action .metric-icon {
  width: 16px;
  height: 16px;
  margin: 0;
}
.comment-action.strike-btn {
  color: var(--gold);
}
.comment-action.strike-btn:hover {
  background: rgba(245,197,66,.1);
  color: var(--gold);
}
.notification-header h2 {
  margin: 0 0 6px;
}
.notification-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.notification-item:hover { background: #080808; }
.notification-item.unread {
  background: rgba(245,197,66,.045);
}
.notification-title {
  font-weight: 900;
  margin-bottom: 4px;
}
.notification-item p {
  margin: 0 0 6px;
  color: #c7cbd1;
  line-height: 1.45;
}
.notification-dot-wrap {
  padding-top: 5px;
}
.rank {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 900;
}
.verification-badge {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(255,255,255,.16);
}
.verification-badge.gold { background: #f5b544; color: #1f1300; }
.verification-badge.red { background: var(--oppose); }
.verification-badge.blue { background: var(--defend); }
.comment-meta .verification-badge {
  width: 12px;
  height: 12px;
  margin-left: 2px;
  font-size: 8px;
  vertical-align: -1px;
}
.permission-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(240,68,56,.18), transparent 32%),
    radial-gradient(circle at bottom right, rgba(47,128,237,.18), transparent 34%),
    var(--bg);
}
.permission-card {
  width: min(100%, 620px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
  background: rgba(15,20,25,.92);
}
.permission-card h1 {
  font-family: Garamond, Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 7vw, 56px);
  line-height: .98;
  margin: 20px 0 12px;
}
.permission-card p {
  color: #c7cbd1;
  line-height: 1.5;
  margin-bottom: 20px;
}
.static-page {
  padding: 22px 18px 48px;
}
.static-page-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 18px;
}
.static-page-logo {
  display: block;
  width: min(100%, 360px);
  height: auto;
  margin: 0 auto 16px;
}
.static-page-header h1 {
  margin: 6px 0 12px;
  font-family: Garamond, Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 7vw, 58px);
  line-height: .98;
}
.static-page-header p,
.static-page-section p {
  color: #c7cbd1;
  line-height: 1.62;
}
.static-page-section {
  border-bottom: 1px solid rgba(47,51,54,.7);
  padding: 16px 0;
}
.static-page-section h2 {
  margin: 0 0 10px;
  font-family: Garamond, Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.1;
}
.legal-draft-note {
  border: 1px solid rgba(245,197,66,.28);
  border-radius: 8px;
  padding: 12px;
  background: rgba(245,197,66,.08);
  color: #ffe8a3;
  font-size: 14px;
  line-height: 1.45;
}
.contact-form-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 18px;
}
.contact-form-panel h2 {
  margin: 0 0 12px;
  font-family: Garamond, Georgia, "Times New Roman", serif;
  font-size: 28px;
}
.right-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 0;
  margin-bottom: 14px;
  overflow: hidden;
}
.widget-title {
  padding: 12px 13px 9px;
  background: #050505;
  color: var(--text);
  font-family: Garamond, Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.05;
  border-bottom: 1px solid var(--line);
}
.widget-scroll {
  max-height: 238px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.widget-scroll::-webkit-scrollbar {
  width: 8px;
}
.widget-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.widget-scroll::-webkit-scrollbar-thumb {
  background: #3a3f44;
  border-radius: 999px;
}
.widget-item {
  padding: 12px 13px;
  border-top: 1px solid var(--line);
}
.widget-item:first-of-type {
  border-top: 0;
}
.widget-main-link {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}
.widget-main-link:hover {
  text-decoration: underline;
}
.topic-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
}
.topic-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: #050505;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}
.topic-chip:hover {
  border-color: rgba(245,197,66,.7);
  color: var(--gold);
}
.admin-grid, .stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.dropdown-menu, .admin-user-form { position: relative; z-index: 9999; }
.admin-shell select { position: relative; z-index: 9999; }
.admin-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: none;
  margin: 0;
}
.admin-sidebar {
  position: sticky;
  top: 0;
  z-index: 10;
  flex: 0 0 260px;
  width: 260px;
  height: 100vh;
  overflow-y: auto;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: var(--bg);
}
.admin-main {
  position: relative;
  z-index: 20;
  flex: 1 1 auto;
  min-width: 0;
  width: calc(100% - 260px);
  overflow: visible;
  background: var(--bg);
}
.admin-content,
.admin-card,
.admin-layout {
  overflow: visible;
}
.admin-content {
  max-width: none;
  width: 100%;
}
.admin-hero-panel {
  border-bottom: 1px solid var(--line);
  padding: 18px;
  background: radial-gradient(circle at top right, rgba(245,197,66,.12), transparent 34%), var(--bg);
}
.admin-hero-panel h1 {
  margin: 6px 0 8px;
  font-family: Garamond, Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
}
.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.admin-dashboard-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: var(--panel);
  min-height: 74px;
}
.admin-dashboard-card:hover,
.admin-dashboard-card.has-new {
  border-color: rgba(245,197,66,.48);
  background: linear-gradient(135deg, rgba(245,197,66,.08), var(--panel));
}
.admin-card-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #050505;
  border: 1px solid rgba(245,197,66,.24);
  font-size: 16px;
}
.admin-card-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.admin-card-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
}
.admin-card-copy strong {
  color: var(--gold);
  font-family: Garamond, Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1;
}
.admin-section-title {
  margin: 0 0 12px;
  font-family: Garamond, Georgia, "Times New Roman", serif;
  font-size: 28px;
}
.admin-topic-list {
  display: grid;
  gap: 10px;
}
.admin-topic-item {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel);
}
.admin-topic-item:hover {
  border-color: rgba(245,197,66,.45);
}
.admin-list-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 10px;
  background: var(--panel);
}
.admin-list-item.is-unread {
  border-color: rgba(245,197,66,.42);
  background: linear-gradient(90deg, rgba(245,197,66,.08), var(--panel));
}
.admin-user-link {
  color: var(--gold);
  font-weight: 900;
}
.admin-user-link:hover {
  text-decoration: underline;
}
.admin-table-wrapper {
  width: 100%;
  max-width: calc(100vw - 300px);
  overflow-x: auto;
  overflow-y: visible;
  position: relative;
  z-index: 30;
}
.admin-user-form {
  min-width: 220px;
}
.admin-user-form select,
.admin-user-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--text);
  background: var(--panel);
}
.debate-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.side-column { padding: 16px; min-width: 0; }
.side-column.oppose {
  border-right: 1px solid rgba(240,68,56,.32);
  background: rgba(240,68,56,.20);
}
.side-column.defend {
  border-left: 1px solid rgba(47,128,237,.28);
  background: rgba(47,128,237,.20);
}
.side-column.abstain {
  border-top: 1px solid var(--line);
  padding: 16px;
  background: rgba(242,244,247,.08);
}
.side-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 900;
  margin-bottom: 8px;
}
.profile-banner {
  height: 150px;
  background: linear-gradient(135deg, rgba(240,68,56,.55), rgba(47,128,237,.5) 55%, rgba(242,244,247,.2));
  border-bottom: 1px solid var(--line);
}
.profile-head {
  padding: 0 18px 18px;
  border-bottom: 1px solid var(--line);
}
.profile-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-top: 8px;
}
.profile-title-main {
  min-width: 0;
  flex: 1 1 auto;
}
.profile-title-main h1 {
  margin: 0 0 4px;
  font-family: Garamond, Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 6vw, 48px);
  line-height: .98;
  font-weight: 800;
}
.profile-title-row form {
  flex: 0 0 auto;
}
.profile-identity strong {
  color: var(--text);
}
.profile-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.profile-follow-line {
  margin-top: 5px;
  margin-bottom: 12px;
}
.profile-follow-line strong {
  color: var(--text);
}
.profile-location {
  margin: 9px 0 0 auto;
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
  text-align: right;
}
.profile-bio {
  max-width: 64ch;
  margin: 12px 0 14px;
  color: var(--text);
  line-height: 1.45;
}
.profile-stats-plain {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 14px 0;
}
.profile-stats-plain div {
  min-width: 0;
}
.profile-stats-plain strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}
.profile-stats-plain span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.profile-activity h2 {
  margin-top: 0;
}
.profile-activity-row {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.profile-activity-row a {
  display: inline-block;
  margin-top: 4px;
  color: var(--text);
  font-weight: 700;
}
.profile-activity-row a:hover {
  text-decoration: underline;
}
.avatar {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  border: 4px solid var(--bg);
  background: var(--panel-soft);
  margin-top: -46px;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 900;
  overflow: hidden;
}
.avatar img,
.mobile-profile-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.avatar-sm {
  width: 64px;
  height: 64px;
  margin-top: 0;
  border-width: 2px;
  font-size: 24px;
  flex: 0 0 auto;
}
.settings-avatar-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(0,0,0,.94);
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(5, 1fr);
}
.mobile-nav a { padding: 11px 4px; text-align: center; font-size: 12px; color: var(--muted); }
.mobile-nav .unread-dot {
  width: 7px;
  height: 7px;
  margin-left: 2px;
}
@media (max-width: 1080px) {
  .app-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .rightbar { display: none; }
}
@media (max-width: 780px) {
  .mobile-brandbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    height: var(--mobile-header-height);
    padding: 6px 12px;
    background: rgba(0,0,0,.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .mobile-brandbar > a:not(.mobile-profile-link) img {
    display: block;
    width: min(46vw, 170px);
    max-height: 36px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
  }
  .mobile-menu-toggle {
    display: grid;
    gap: 4px;
    width: 34px;
    height: 34px;
    place-content: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
  }
  .mobile-menu-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
  }
  .mobile-profile-link {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    justify-self: end;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
    overflow: hidden;
  }
  .mobile-profile-link img {
    width: 100%;
    height: 100%;
    margin: 0;
    max-height: none;
    object-fit: cover;
  }
  .mobile-profile-link-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
  }
  .mobile-menu-panel {
    position: fixed;
    top: var(--mobile-header-height);
    right: 0;
    bottom: 0;
    z-index: 1200;
    display: grid;
    align-content: start;
    gap: 2px;
    width: min(84vw, 340px);
    padding: 10px 12px calc(86px + env(safe-area-inset-bottom));
    background: #000;
    backdrop-filter: blur(12px);
    border-left: 1px solid var(--line);
    box-shadow: -22px 0 50px rgba(0,0,0,.42);
    max-height: calc(100vh - var(--mobile-header-height));
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .18s ease;
  }
  .mobile-menu-panel[hidden] {
    display: none;
  }
  .mobile-menu-panel.is-open {
    transform: translateX(0);
  }
  .mobile-menu-panel > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 12px;
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
  }
  .mobile-menu-form {
    margin: 0;
  }
  .mobile-menu-form button {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
    padding: 11px 12px;
    border: 0;
    border-radius: 8px;
    color: var(--text);
    background: transparent;
    font-size: 14px;
    font-weight: 800;
    text-align: left;
  }
  .mobile-menu-footer {
    padding: 10px 12px 4px;
  }
  .mobile-menu-footer .footer-links {
    gap: 5px 9px;
    margin-bottom: 7px;
  }
  .mobile-menu-footer .footer-links a {
    display: inline;
    padding: 0;
    border-radius: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
  }
  .mobile-menu-footer .footer-links a:hover {
    color: var(--gold);
  }
  .app-shell { grid-template-columns: minmax(0, 1fr); padding: var(--mobile-header-height) 0 calc(72px + env(safe-area-inset-bottom)); }
  .sidebar { display: none; }
  .main { border-left: 0; border-right: 0; }
  .content-footer { display: block; }
  .app-shell .topbar {
    top: var(--mobile-header-height);
    z-index: 20;
  }
  .admin-shell .topbar {
    top: 0;
  }
  body.mobile-menu-open {
    overflow: hidden;
  }
  .mobile-nav { display: grid; }
  .debate-columns { grid-template-columns: 1fr; }
  .side-column.oppose, .side-column.defend { border-left: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-shell { display: block; }
  .admin-sidebar { position: static; width: 100%; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-main { width: 100%; }
  .admin-dashboard-grid { grid-template-columns: 1fr; }
  .admin-table-wrapper { max-width: 100vw; }
  .profile-title-row { align-items: center; }
  .profile-title-row { flex-wrap: wrap; }
  .profile-location {
    width: 100%;
    margin-left: 0;
    text-align: left;
    white-space: normal;
  }
  .profile-stats-plain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-avatar-row { align-items: flex-start; }
  .situation-hero {
    align-items: stretch;
    flex-direction: column;
  }
  .situation-create-toggle {
    width: 100%;
  }
  .situation-thread-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .situation-thread-meta {
    justify-content: flex-start;
  }
}
