:root {
  --bg: #e6d8c5;
  --bg-strong: #dcccb7;
  --surface: rgba(255, 251, 245, 0.96);
  --surface-soft: rgba(247, 239, 228, 0.92);
  --surface-contrast: #fffdf9;
  --ink: #201a13;
  --muted: #62584d;
  --line: rgba(32, 26, 19, 0.1);
  --accent: #c95d35;
  --accent-strong: #1d2b29;
  --mint: #1f7467;
  --gold: #9f7b1a;
  --rose: #964b45;
  --blue: #3467b5;
  --shadow: 0 28px 68px rgba(70, 46, 26, 0.09), 0 8px 18px rgba(70, 46, 26, 0.05);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

body.is-booting .topbar,
body.is-booting .page-shell,
body.is-booting .bottom-shell {
  opacity: 0;
  visibility: hidden;
}

body.is-ready .topbar,
body.is-ready .page-shell,
body.is-ready .bottom-shell {
  opacity: 1;
  visibility: visible;
  transition: opacity 180ms ease;
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(29, 222, 132, 0.12), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(52, 211, 153, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(3, 9, 8, 0.92) 0%, rgba(2, 7, 6, 0.98) 100%);
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.boot-screen-panel {
  width: min(560px, calc(100% - 24px));
  padding: 28px 32px;
  border: 1px solid rgba(76, 255, 164, 0.18);
  background:
    linear-gradient(180deg, rgba(7, 15, 14, 0.96), rgba(4, 10, 9, 0.98));
  box-shadow:
    0 0 0 1px rgba(40, 134, 94, 0.16) inset,
    0 18px 40px rgba(0, 0, 0, 0.35);
}

.boot-kicker {
  margin: 0 0 8px;
  font-family: "SFMono-Regular", "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  color: rgba(130, 255, 194, 0.84);
}

.boot-title {
  margin: 0;
  font-family: "SFMono-Regular", "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  letter-spacing: 0.1em;
  color: #effff6;
  text-shadow: 0 0 12px rgba(102, 255, 181, 0.28);
}

.boot-copy {
  margin: 12px 0 0;
  color: rgba(210, 245, 224, 0.78);
  font-size: 0.98rem;
}

body.is-ready .boot-screen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none !important;
}

body.is-boot-failed .boot-screen {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  display: grid !important;
}

.boot-screen[hidden] {
  display: none !important;
}

/* Final product pass: unify research + feed as one product */
body[data-active-tab="research"],
body[data-active-tab="feed"] {
  background:
    radial-gradient(circle at 0% 0%, rgba(209, 222, 246, 0.78) 0%, rgba(209, 222, 246, 0) 20%),
    radial-gradient(circle at 100% 12%, rgba(232, 219, 245, 0.62) 0%, rgba(232, 219, 245, 0) 24%),
    linear-gradient(180deg, #f6f8fb 0%, #eef2f7 100%);
  color: #0f172a;
}

body[data-active-tab="research"] .ambient,
body[data-active-tab="feed"] .ambient {
  opacity: 0;
}

body[data-active-tab="research"] .shell,
body[data-active-tab="feed"] .shell {
  width: min(1120px, calc(100% - 32px));
}

body[data-active-tab="research"] .topbar,
body[data-active-tab="feed"] .topbar {
  position: sticky;
  top: 0;
  margin: 16px auto 0;
  padding: 14px 16px 12px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

body[data-active-tab="research"] .topbar::before,
body[data-active-tab="feed"] .topbar::before {
  display: none;
}

body[data-active-tab="research"] .topbar-main,
body[data-active-tab="feed"] .topbar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

body[data-active-tab="research"] .brand-lockup,
body[data-active-tab="feed"] .brand-lockup {
  gap: 12px;
}

body[data-active-tab="research"] .brand-mark,
body[data-active-tab="feed"] .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: linear-gradient(180deg, #15243d 0%, #0f1c31 100%);
  color: #f8fbff;
  box-shadow: none;
}

body[data-active-tab="research"] .eyebrow,
body[data-active-tab="feed"] .eyebrow {
  display: block;
  margin-bottom: 2px;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: #64748b;
}

body[data-active-tab="research"] .brand-title,
body[data-active-tab="feed"] .brand-title {
  font-family: "Avenir Next", "Inter", "Segoe UI", sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #0f172a;
}

body[data-active-tab="research"] .topbar-actions .live-pill,
body[data-active-tab="research"] .topbar-actions .topbar-cta,
body[data-active-tab="feed"] .topbar-actions .live-pill,
body[data-active-tab="feed"] .topbar-actions .topbar-cta {
  display: none;
}

body[data-active-tab="research"] .language-picker,
body[data-active-tab="feed"] .language-picker {
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: none;
}

body[data-active-tab="research"] .language-picker span,
body[data-active-tab="feed"] .language-picker span {
  font-size: 0.78rem;
  color: #64748b;
}

body[data-active-tab="research"] .language-picker select,
body[data-active-tab="feed"] .language-picker select {
  min-width: 118px;
  min-height: 34px;
  padding: 0 30px 0 8px;
  border-radius: 999px;
  background: transparent;
  border: none;
  color: #0f172a;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

body[data-active-tab="research"] .topbar-search,
body[data-active-tab="feed"] .topbar-search {
  padding-top: 14px;
}

body[data-active-tab="research"] .global-search-form,
body[data-active-tab="feed"] .global-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

body[data-active-tab="research"] .global-search-shell,
body[data-active-tab="feed"] .global-search-shell {
  display: block;
}

body[data-active-tab="research"] .global-search-shell::before,
body[data-active-tab="feed"] .global-search-shell::before {
  left: 18px;
  width: 18px;
  height: 18px;
  opacity: 0.55;
}

body[data-active-tab="research"] .global-search-shell::after,
body[data-active-tab="feed"] .global-search-shell::after {
  left: 34px;
  top: 31px;
  height: 10px;
  opacity: 0.55;
}

body[data-active-tab="research"] #thread-search,
body[data-active-tab="feed"] #thread-search {
  min-height: 56px;
  padding: 0 18px 0 52px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.95);
  color: #0f172a;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

body[data-active-tab="research"] #thread-search::placeholder,
body[data-active-tab="feed"] #thread-search::placeholder {
  color: #64748b;
}

body[data-active-tab="research"] #thread-search:hover,
body[data-active-tab="research"] #thread-search:focus,
body[data-active-tab="feed"] #thread-search:hover,
body[data-active-tab="feed"] #thread-search:focus {
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.08),
    0 0 0 4px rgba(59, 130, 246, 0.08);
}

body[data-active-tab="research"] .global-search-submit,
body[data-active-tab="feed"] .global-search-submit {
  min-height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

body[data-active-tab="research"] .global-search-submit:hover,
body[data-active-tab="feed"] .global-search-submit:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

body[data-active-tab="research"] .topbar-subnav,
body[data-active-tab="feed"] .topbar-subnav {
  display: none;
}

body[data-active-tab="research"] .subnav-chip,
body[data-active-tab="feed"] .subnav-chip {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(203, 213, 225, 0.9);
  color: #64748b;
  box-shadow: none;
}

body[data-active-tab="research"] .subnav-chip.is-active,
body[data-active-tab="feed"] .subnav-chip.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #f8fafc;
}

body[data-active-tab="research"] .page-shell,
body[data-active-tab="feed"] .page-shell {
  gap: 18px;
  padding-top: 16px;
  padding-bottom: 40px;
}

body[data-active-tab="research"] .research-stage {
  display: block !important;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-research {
  display: grid !important;
}

body[data-active-tab="research"] .stage-header-research {
  display: grid;
  gap: 18px;
  padding: 28px 30px 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

body[data-active-tab="research"] .stage-header-copy {
  display: grid;
  gap: 8px;
  max-width: 700px;
}

body[data-active-tab="research"] .stage-header-copy h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
  color: #0f172a;
}

body[data-active-tab="research"] .stage-header-copy .section-description {
  margin: 0;
  max-width: 56ch;
  font-size: 0.96rem;
  line-height: 1.55;
  color: #475569;
}

body[data-active-tab="research"] .ai-roundtable-form-hero {
  display: none;
}

body[data-active-tab="research"] .research-hero-strip {
  display: grid;
  gap: 12px;
}

body[data-active-tab="research"] .research-hero-bridge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f6fb 100%);
  border: 1px solid rgba(203, 213, 225, 0.8);
}

body[data-active-tab="research"] .research-hero-bridge-copy {
  display: grid;
  gap: 3px;
}

body[data-active-tab="research"] .research-hero-bridge-copy strong {
  font-size: 0.93rem;
  color: #0f172a;
}

body[data-active-tab="research"] .research-hero-bridge-copy span {
  font-size: 0.82rem;
  color: #64748b;
}

body[data-active-tab="research"] .research-hero-feed-link {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.95);
  color: #0f172a;
}

body[data-active-tab="research"] .research-hero-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body[data-active-tab="research"] .research-hero-chip {
  display: grid;
  gap: 2px;
  min-width: 124px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.88);
  text-align: left;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

body[data-active-tab="research"] .research-hero-chip-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #64748b;
}

body[data-active-tab="research"] .research-hero-chip strong {
  font-size: 1rem;
  color: #0f172a;
}

body[data-active-tab="research"] .app-tab-panel-research.has-results .research-stage {
  display: none !important;
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .command-stage {
  display: none;
}

body[data-active-tab="research"] .command-stage,
body[data-active-tab="research"] .research-results-shell,
body[data-active-tab="feed"] .feed-stage,
body[data-active-tab="feed"] .feed-layout {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

body[data-active-tab="research"] .command-panel {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

body[data-active-tab="research"] .research-dossier-shell {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(203, 213, 225, 0.88);
  border-radius: 28px;
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.08);
  padding: 28px 30px;
}

body[data-active-tab="research"] .research-query-shell {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.94);
}

body[data-active-tab="research"] .research-query-copy {
  display: grid;
  gap: 6px;
}

body[data-active-tab="research"] .research-query-label,
body[data-active-tab="research"] .research-answer-copy .section-kicker,
body[data-active-tab="research"] .premium-map-head .section-kicker {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #64748b;
}

body[data-active-tab="research"] .research-query-text {
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.45;
  color: #0f172a;
}

body[data-active-tab="research"] .research-query-shell .meta-chip {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
}

body[data-active-tab="research"] .research-answer-shell {
  display: grid;
  gap: 14px;
  padding: 20px 0 22px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.94);
}

body[data-active-tab="research"] .research-answer-copy {
  display: grid;
  gap: 8px;
}

body[data-active-tab="research"] .research-answer-copy h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.2;
  color: #0f172a;
}

body[data-active-tab="research"] .research-answer-lead {
  margin: 0;
  max-width: 62ch;
  font-size: 0.97rem;
  line-height: 1.65;
  color: #334155;
}

body[data-active-tab="research"] .research-answer-meta {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.52;
  color: #64748b;
}

body[data-active-tab="research"] .research-answer-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body[data-active-tab="research"] .research-answer-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  min-height: 84px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.96);
}

body[data-active-tab="research"] .research-answer-pill-split {
  align-items: stretch;
}

body[data-active-tab="research"] .research-pill-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

body[data-active-tab="research"] .research-pill-value {
  font-size: 0.92rem;
  line-height: 1.3;
  color: #0f172a;
  font-weight: 700;
}

body[data-active-tab="research"] .research-split-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body[data-active-tab="research"] .research-answer-strip .status-chip {
  min-height: 28px;
  padding: 0 10px;
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.95);
}

body[data-active-tab="research"] .premium-map-shell {
  padding-top: 18px;
}

body[data-active-tab="research"] .premium-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

body[data-active-tab="research"] .premium-map-total {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.96);
  color: #475569;
  font-size: 0.76rem;
  font-weight: 600;
}

body[data-active-tab="research"] .premium-accordion-group-flat {
  gap: 0;
}

body[data-active-tab="research"] .premium-accordion-card,
body[data-active-tab="research"] .premium-more-shell {
  padding: 18px 0;
  background: transparent;
  border: none;
  border-top: 1px solid rgba(226, 232, 240, 0.94);
  border-radius: 0;
}

body[data-active-tab="research"] .premium-accordion-card:first-child {
  border-top: none;
}

body[data-active-tab="research"] .premium-accordion-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

body[data-active-tab="research"] .premium-accordion-titleblock h4 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  line-height: 1.4;
  color: #0f172a;
}

body[data-active-tab="research"] .premium-accordion-body {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #64748b;
}

body[data-active-tab="research"] .premium-accordion-side {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

body[data-active-tab="research"] .premium-accordion-price {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.96);
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
}

body[data-active-tab="research"] .premium-inline-unlock {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #0f172a;
  border: 1px solid #0f172a;
  color: #f8fafc;
  box-shadow: none;
}

body[data-active-tab="research"] .premium-accordion-points-compact {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(241, 245, 249, 0.96);
}

body[data-active-tab="research"] .premium-accordion-points-compact p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #475569;
}

body[data-active-tab="research"] .premium-accordion-footnote {
  margin-top: 8px;
  font-size: 0.76rem;
  color: #94a3b8;
}

body[data-active-tab="research"] .premium-more-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 18px 0 4px;
  font-size: 0.82rem;
  color: #334155;
  background: transparent;
  border: none;
}

body[data-active-tab="research"] .premium-more-list {
  display: grid;
  gap: 0;
  padding: 0;
}

body[data-active-tab="feed"] .feed-stage {
  margin-bottom: 0;
}

body[data-active-tab="feed"] .stage-header-feed {
  padding: 8px 2px 0;
}

body[data-active-tab="feed"] .stage-header-feed .section-kicker {
  margin-bottom: 6px;
  color: #64748b;
}

body[data-active-tab="feed"] .stage-header-feed h2 {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: #0f172a;
}

body[data-active-tab="feed"] .stage-header-feed .section-description {
  margin: 6px 0 0;
  max-width: 54ch;
  font-size: 0.9rem;
  color: #64748b;
}

body[data-active-tab="feed"] .feed-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

body[data-active-tab="feed"] .toolbar-card,
body[data-active-tab="feed"] .composer-shell,
body[data-active-tab="feed"] .thread-card,
body[data-active-tab="feed"] .feed-insert {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: 24px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

body[data-active-tab="feed"] .thread-section {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

body[data-active-tab="feed"] .section-bar {
  margin-bottom: 10px;
}

body[data-active-tab="feed"] .thread-feed {
  display: grid;
  gap: 12px;
}

body[data-active-tab="feed"] .thread-card {
  padding: 18px;
}

body[data-active-tab="feed"] .thread-author-name,
body[data-active-tab="feed"] .thread-title,
body[data-active-tab="feed"] .thread-brief-pill strong {
  color: #0f172a;
}

body[data-active-tab="feed"] .thread-author-handle,
body[data-active-tab="feed"] .thread-author-age,
body[data-active-tab="feed"] .thread-summary,
body[data-active-tab="feed"] .level-label {
  color: #64748b;
}

body[data-active-tab="feed"] .thread-brief-pill,
body[data-active-tab="feed"] .reaction-pill,
body[data-active-tab="feed"] .meta-chip,
body[data-active-tab="feed"] .filter-chip {
  background: #f8fafc;
  border-color: rgba(226, 232, 240, 0.96);
  color: #334155;
}

body[data-active-tab="feed"] .contribution-chip.is-active,
body[data-active-tab="feed"] .filter-chip.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #f8fafc;
}

@media (max-width: 760px) {
  body[data-active-tab="research"] .shell,
  body[data-active-tab="feed"] .shell,
  body[data-active-tab="research"] .research-stage,
  body[data-active-tab="research"] .command-stage,
  body[data-active-tab="research"] .research-results-shell,
  body[data-active-tab="feed"] .feed-stage,
  body[data-active-tab="feed"] .feed-layout {
    width: min(1120px, calc(100% - 20px));
  }

  body[data-active-tab="research"] .topbar,
  body[data-active-tab="feed"] .topbar {
    margin-top: 10px;
    padding: 12px;
    border-radius: 22px;
  }

  body[data-active-tab="research"] .topbar-main,
  body[data-active-tab="feed"] .topbar-main {
    align-items: flex-start;
  }

  body[data-active-tab="research"] .language-picker span,
  body[data-active-tab="feed"] .language-picker span {
    display: none;
  }

  body[data-active-tab="research"] .topbar-subnav,
  body[data-active-tab="feed"] .topbar-subnav {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  body[data-active-tab="research"] .global-search-form,
  body[data-active-tab="feed"] .global-search-form {
    grid-template-columns: 1fr;
  }

  body[data-active-tab="research"] .global-search-submit,
  body[data-active-tab="feed"] .global-search-submit {
    width: 100%;
  }

  body[data-active-tab="research"] .stage-header-research {
    padding: 20px 18px 18px;
    border-radius: 22px;
  }

  body[data-active-tab="research"] .stage-header-copy h2 {
    font-size: 1.7rem;
  }

  body[data-active-tab="research"] .research-hero-bridge {
    flex-direction: column;
    align-items: flex-start;
  }

  body[data-active-tab="research"] .research-answer-strip {
    grid-template-columns: 1fr;
  }

  body[data-active-tab="research"] .research-answer-pill {
    min-height: auto;
  }

  body[data-active-tab="research"] .research-query-shell,
  body[data-active-tab="research"] .premium-accordion-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  body[data-active-tab="research"] .research-query-shell .meta-chip,
  body[data-active-tab="research"] .premium-accordion-side {
    justify-self: start;
  }

  body[data-active-tab="feed"] .feed-layout {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(201, 93, 53, 0.22), transparent 26%),
    radial-gradient(circle at 92% 12%, rgba(31, 116, 103, 0.18), transparent 22%),
    linear-gradient(180deg, #ecdfcf 0%, #e4d7c4 44%, #dfd0bb 100%);
  font-family:
    "Avenir Next",
    "PingFang SC",
    "Hiragino Sans",
    "Noto Sans KR",
    "Noto Sans Devanagari",
    "Noto Naskh Arabic",
    "Segoe UI",
    sans-serif;
}

button,
input,
select,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.ambient {
  position: fixed;
  width: 36vw;
  height: 36vw;
  border-radius: 50%;
  filter: blur(94px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.ambient-a {
  top: -12%;
  left: -12%;
  background: rgba(201, 93, 53, 0.24);
}

.ambient-b {
  top: 40%;
  right: -14%;
  background: rgba(31, 116, 103, 0.18);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1340px, calc(100% - 28px));
  margin: 0 auto;
}

.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;
}

.skip-link {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 140;
  padding: 10px 14px;
  border: 1px solid rgba(104, 211, 255, 0.58);
  background: rgba(5, 11, 16, 0.96);
  color: #f3fbff;
  text-decoration: none;
  transform: translateY(-140%);
  transition: transform 120ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.eyebrow,
.section-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: rgba(98, 88, 77, 0.82);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 10px 0 8px;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 4px -10px 0;
  border-radius: 22px;
  background: rgba(255, 250, 243, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(70, 46, 26, 0.06);
  z-index: -1;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ea9a72 0%, var(--accent) 100%);
  color: #fff7ed;
  font-weight: 800;
  letter-spacing: -0.03em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.brand-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 0.95;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  letter-spacing: -0.04em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.live-pill,
.topbar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
}

.live-pill {
  gap: 8px;
  background: rgba(29, 43, 41, 0.08);
  color: var(--accent-strong);
  font-weight: 700;
}

.topbar-cta {
  background: var(--accent-strong);
  color: #fff7ed;
  box-shadow: 0 10px 22px rgba(29, 43, 41, 0.15);
}

.language-picker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.66);
}

.language-picker select {
  min-width: 138px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fffefb;
  color: var(--ink);
}

.page-shell {
  display: grid;
  gap: 10px;
  padding-bottom: 32px;
}

.card,
.side-card,
.system-card,
.toolbar-card,
.composer-card,
.story-card,
.thread-card,
.proof-card,
.archive-card,
.watch-card-item {
  background: rgba(255, 252, 247, 0.94);
  border: 1px solid rgba(32, 26, 19, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 18px rgba(70, 46, 26, 0.04);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.hero-feature {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 16px;
  min-height: auto;
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 93, 53, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.98) 0%, rgba(247, 240, 232, 0.96) 100%);
}

.hero-feature::after {
  content: "";
  position: absolute;
  top: -72px;
  right: -72px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 93, 53, 0.14) 0%, rgba(201, 93, 53, 0) 68%);
  pointer-events: none;
}

.hero-topline,
.board-row-head,
.thread-topline,
.archive-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.status-chip,
.ticker-chip,
.meta-chip,
.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: 700;
}

.status-chip::before,
.live-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14);
}

.chip-live {
  background: rgba(31, 116, 103, 0.12);
  color: var(--mint);
}

.chip-watch {
  background: rgba(159, 123, 26, 0.12);
  color: var(--gold);
}

.chip-exit {
  background: rgba(150, 75, 69, 0.12);
  color: var(--rose);
}

.status-chip.tone-positive,
.meta-chip.tone-positive,
.metric-pill.tone-positive {
  border-color: rgba(76, 255, 183, 0.3);
  background: linear-gradient(180deg, rgba(76, 255, 183, 0.18), rgba(76, 255, 183, 0.08));
  color: #87ffd0;
  box-shadow:
    inset 0 0 0 1px rgba(76, 255, 183, 0.06),
    0 0 0 1px rgba(76, 255, 183, 0.08),
    0 0 18px rgba(76, 255, 183, 0.16);
}

.status-chip.tone-watch,
.meta-chip.tone-watch,
.metric-pill.tone-watch {
  border-color: rgba(255, 210, 102, 0.3);
  background: linear-gradient(180deg, rgba(255, 210, 102, 0.18), rgba(255, 210, 102, 0.08));
  color: #ffe18a;
  box-shadow:
    inset 0 0 0 1px rgba(255, 210, 102, 0.06),
    0 0 0 1px rgba(255, 210, 102, 0.08),
    0 0 18px rgba(255, 210, 102, 0.14);
}

.status-chip.tone-negative,
.meta-chip.tone-negative,
.metric-pill.tone-negative {
  border-color: rgba(255, 113, 142, 0.3);
  background: linear-gradient(180deg, rgba(255, 113, 142, 0.18), rgba(255, 113, 142, 0.08));
  color: #ff9fb4;
  box-shadow:
    inset 0 0 0 1px rgba(255, 113, 142, 0.06),
    0 0 0 1px rgba(255, 113, 142, 0.08),
    0 0 18px rgba(255, 113, 142, 0.14);
}

.status-chip.tone-positive::before,
.status-chip.tone-watch::before,
.status-chip.tone-negative::before {
  box-shadow:
    0 0 0 4px color-mix(in srgb, currentColor 18%, transparent),
    0 0 12px color-mix(in srgb, currentColor 60%, transparent),
    0 0 24px color-mix(in srgb, currentColor 42%, transparent);
}

.ticker-chip,
.meta-chip {
  background: rgba(29, 43, 41, 0.06);
  color: var(--accent-strong);
}

.hero-intro {
  display: none;
}

.hero-platform-title {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(1.45rem, 2.2vw, 2.35rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  text-wrap: balance;
}

.hero-platform-body {
  margin: 0;
  max-width: 34ch;
  font-size: 0.9rem;
  line-height: 1.42;
  color: var(--muted);
}

.hero-divider {
  display: none;
}

.hero-simple-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(32, 26, 19, 0.08);
  background: rgba(255, 255, 255, 0.62);
}

.hero-focus-title {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
}

.hero-focus-summary {
  margin: 0;
  max-width: 48ch;
  font-size: 0.88rem;
  line-height: 1.42;
  color: var(--muted);
}

.level-card,
.proof-card,
.mini-board,
.pipeline-step,
.loop-card,
.watch-card-item,
.archive-card {
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.level-label,
.proof-label,
.mini-label,
.archive-card p,
.watch-note,
.thread-summary,
.thread-footer,
.step-detail,
.loop-detail,
.section-description,
.empty-copy,
.house-note,
.brand-proof-copy {
  color: var(--muted);
  line-height: 1.62;
}

.level-value,
.proof-value,
.board-value {
  display: block;
  margin-top: 6px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent-strong);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
}

.cta,
.ghost-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
}

.cta {
  background: var(--accent-strong);
  color: #fff7ee;
}

.ghost-cta {
  border: 1px solid rgba(201, 93, 53, 0.16);
  background: rgba(201, 93, 53, 0.09);
  color: var(--accent);
}

.hero-note {
  display: none;
}

#brand-kicker {
  display: none;
}

.hero-stack,
.side-column {
  display: grid;
  gap: 16px;
}

.side-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#signal-board,
.proof-strip,
.command-grid .command-brief,
.community-side,
.author-shell,
.story-section,
.side-column,
.systems-shell,
#brand-proof-card,
#save-card,
#following-card {
  display: none;
}

.hero-keyline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.side-card,
.system-card,
.toolbar-card,
.story-card,
.thread-card {
  padding: 14px;
}

.signal-board-grid,
.archive-list,
.watchlist,
.step-grid,
.loop-grid,
.thread-feed {
  display: grid;
  gap: 10px;
}

.signal-board-grid {
  margin-top: 14px;
}

.mini-board {
  padding: 14px;
}

.board-row-head strong,
.archive-card strong,
.watch-top strong,
.pipeline-step strong,
.loop-card strong {
  font-size: 1rem;
}

.save-card-value {
  margin: 18px 0 6px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
}

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.proof-card {
  display: grid;
  gap: 4px;
  min-width: 150px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 251, 246, 0.6);
  box-shadow: none;
}

.command-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
}

.command-brief {
  display: none;
}

.command-block {
  display: grid;
  gap: 12px;
}

.command-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(29, 43, 41, 0.12), rgba(29, 43, 41, 0));
}

.proof-value {
  font-size: 1.85rem;
}

.community-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
}

.community-stage {
  display: grid;
  gap: 8px;
}

.community-stage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
}

.leaderboard-shell,
.author-shell {
  display: grid;
  gap: 10px;
}

.community-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-content: start;
  max-width: 440px;
}

.composer-shell {
  padding: 0;
  overflow: hidden;
}

.composer-shell > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px;
  cursor: pointer;
  list-style: none;
}

.composer-shell > summary::-webkit-details-marker {
  display: none;
}

.composer-shell[open] > summary {
  border-bottom: 1px solid var(--line);
}

.composer-summary-copy {
  display: grid;
  gap: 8px;
}

.composer-summary-copy h2 {
  margin: 0;
  font-size: clamp(1.25rem, 1.8vw, 1.7rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
}

.composer-inner {
  display: grid;
  gap: 16px;
  padding: 0 22px 22px;
}

.composer-form {
  display: grid;
  gap: 14px;
}

.composer-row {
  display: grid;
  gap: 12px;
}

.composer-row-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.composer-row-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--accent-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.composer-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.composer-hint {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.composer-hint[data-tone="success"] {
  color: var(--mint);
}

.composer-hint[data-tone="error"] {
  color: var(--rose);
}

.scope-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.scope-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(32, 26, 19, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.scope-chip.is-active {
  background: rgba(31, 116, 103, 0.12);
  border-color: rgba(31, 116, 103, 0.2);
  color: var(--mint);
}

.author-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.author-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 252, 247, 0.82);
  border: 1px solid rgba(32, 26, 19, 0.08);
  box-shadow: 0 12px 28px rgba(70, 46, 26, 0.05);
}

.author-card.is-followed {
  border-color: rgba(31, 116, 103, 0.18);
  box-shadow: 0 16px 32px rgba(31, 116, 103, 0.08);
}

.author-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.author-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ea9a72 0%, var(--accent) 100%);
  color: #fff7ed;
  font-weight: 800;
}

.author-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.author-handle {
  color: var(--muted);
  font-size: 0.86rem;
}

.author-bio {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.author-strategy-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.author-strategy-title {
  font-size: 0.95rem;
  color: var(--accent-strong);
}

.author-strategy-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.author-strategy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.author-strategy-grid div {
  display: grid;
  gap: 6px;
}

.author-strategy-grid span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.author-strategy-grid strong {
  font-size: 0.88rem;
  line-height: 1.45;
}

.author-topics,
.following-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.author-performance-strip,
.author-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.author-meta-line {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.author-rank-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(29, 43, 41, 0.92);
  color: #fff8ef;
}

.following-count {
  display: block;
  font-size: 2rem;
  line-height: 0.92;
  font-weight: 800;
}

.follow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(32, 26, 19, 0.08);
  background: rgba(29, 43, 41, 0.9);
  color: #fff8ef;
  font-weight: 700;
}

.follow-btn.is-following {
  background: rgba(31, 116, 103, 0.12);
  color: var(--mint);
  border-color: rgba(31, 116, 103, 0.18);
}

.following-card {
  display: grid;
  gap: 10px;
}

.leaderboard-metric-row {
  margin-top: 0;
}

.leaderboard-list {
  display: grid;
  gap: 8px;
}

.leaderboard-top {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(31, 116, 103, 0.18), transparent 52%),
    rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(31, 116, 103, 0.14);
}

.leaderboard-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.leaderboard-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 14px;
  background: rgba(29, 43, 41, 0.92);
  color: #fff8ef;
  font-weight: 800;
}

.leaderboard-top-name {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 800;
}

.leaderboard-top-handle {
  color: var(--muted);
  font-size: 0.84rem;
}

.leaderboard-primary-stat {
  text-align: right;
}

.leaderboard-primary-stat strong {
  display: block;
  font-size: 1.35rem;
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
}

.leaderboard-primary-stat span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.leaderboard-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.leaderboard-row-rank {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(29, 43, 41, 0.08);
  color: var(--accent-strong);
  font-weight: 800;
}

.leaderboard-row-name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
}

.leaderboard-row-handle {
  color: var(--muted);
  font-size: 0.82rem;
}

.leaderboard-row-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(29, 43, 41, 0.08);
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 700;
}

.metric-pill strong {
  font-weight: 800;
}

.brand-proof-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.leaderboard-row-value {
  text-align: right;
}

.leaderboard-row-value strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
}

.leaderboard-row-value span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.following-card h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
}

.following-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(29, 43, 41, 0.08);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-strategy-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.author-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.author-inline-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ea9a72 0%, var(--accent) 100%);
  color: #fff7ed;
  font-size: 0.82rem;
  font-weight: 800;
}

.author-inline-name,
.author-inline-handle {
  display: block;
}

.author-inline-name {
  font-size: 0.92rem;
}

.author-inline-handle {
  color: var(--muted);
  font-size: 0.82rem;
}

.feed-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
}

.feed-main {
  display: grid;
  gap: 10px;
}

.toolbar-card {
  display: grid;
  gap: 10px;
}

.toolbar-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.toolbar-copy h2,
.section-headline h2,
.brand-proof-title {
  margin: 6px 0 0;
  font-size: clamp(1rem, 1.15vw, 1.22rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
}

.search-shell {
  display: block;
}

.search-shell input {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  min-height: 30px;
  border-color: rgba(32, 26, 19, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.filter-chip.is-active {
  background: var(--accent-strong);
  color: #fff8ef;
}

.section-headline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-description {
  margin: 0;
  max-width: 46ch;
  font-size: 0.84rem;
}

.section-headline h2,
.quick-guide .section-description,
.browse-strip .section-description,
.community-stage > .section-description,
.leaderboard-shell .section-description,
.story-section .section-description,
.following-card .brand-proof-copy,
#save-card .brand-proof-copy {
  display: none;
}

.community-stage > .section-headline,
.ai-roundtable .section-description,
.ai-roundtable-suggestions {
  display: none;
}

.section-inline {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 340px);
  align-items: end;
}

.ai-roundtable {
  display: grid;
  gap: 6px;
}

.ai-roundtable-shell {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 252, 247, 0.94);
}

.ai-roundtable-form {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: end;
}

.ai-roundtable-question-field {
  min-width: 0;
}

.ai-roundtable-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-roundtable-suggestions .filter-chip {
  min-height: 34px;
  padding-inline: 12px;
}

.ai-roundtable-summary {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(32, 26, 19, 0.08);
  box-shadow: none;
}

.ai-summary-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ai-summary-topline h3 {
  margin: 4px 0 0;
  font-size: 1.1rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
}

.ai-summary-question {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.92rem;
  line-height: 1.45;
}

.ai-summary-helper {
  margin: 0;
  color: #8ea5c3;
  font-size: 0.84rem;
  line-height: 1.5;
}

.ai-roundtable-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.ai-opinion-card {
  display: grid;
  gap: 4px;
  padding: 8px 9px;
  border-radius: 14px;
  border: 1px solid rgba(32, 26, 19, 0.08);
  background: rgba(255, 252, 247, 0.88);
  box-shadow: none;
}

.ai-opinion-constructive {
  border-left: 4px solid rgba(31, 116, 103, 0.34);
}

.ai-opinion-watch {
  border-left: 4px solid rgba(159, 123, 26, 0.34);
}

.ai-opinion-cautious {
  border-left: 4px solid rgba(150, 75, 69, 0.34);
}

.ai-opinion-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ai-opinion-name {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
}

.ai-opinion-style,
.ai-opinion-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.ai-opinion-summary {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.92rem;
  line-height: 1.45;
}

.ai-opinion-list {
  margin: 0;
}

.quick-guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.browse-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quick-guide-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(32, 26, 19, 0.08);
  background: rgba(255, 251, 246, 0.84);
  box-shadow: 0 12px 24px rgba(70, 46, 26, 0.05);
}

.quick-guide-card:nth-child(1) {
  background:
    radial-gradient(circle at top right, rgba(31, 116, 103, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.99) 0%, rgba(246, 238, 229, 0.98) 100%);
}

.quick-guide-card:nth-child(2) {
  background:
    radial-gradient(circle at top right, rgba(52, 103, 181, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.99) 0%, rgba(246, 238, 229, 0.98) 100%);
}

.quick-guide-card:nth-child(3) {
  background:
    radial-gradient(circle at top right, rgba(201, 93, 53, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.99) 0%, rgba(246, 238, 229, 0.98) 100%);
}

.quick-guide-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(29, 43, 41, 0.9);
  color: #fff8ef;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.quick-guide-card-title {
  font-size: 1rem;
  line-height: 1.24;
}

.quick-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-strong);
  font-weight: 800;
  white-space: nowrap;
}

.quick-guide-link::after {
  content: "→";
}

.browse-card {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(32, 26, 19, 0.08);
  background: rgba(255, 251, 246, 0.84);
  box-shadow: 0 12px 24px rgba(70, 46, 26, 0.05);
}

.browse-card:nth-child(1) {
  background:
    radial-gradient(circle at top right, rgba(31, 116, 103, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.99) 0%, rgba(246, 238, 229, 0.98) 100%);
}

.browse-card:nth-child(2) {
  background:
    radial-gradient(circle at top right, rgba(52, 103, 181, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.99) 0%, rgba(246, 238, 229, 0.98) 100%);
}

.browse-card:nth-child(3) {
  background:
    radial-gradient(circle at top right, rgba(159, 123, 26, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.99) 0%, rgba(246, 238, 229, 0.98) 100%);
}

.browse-card:nth-child(4) {
  background:
    radial-gradient(circle at top right, rgba(201, 93, 53, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.99) 0%, rgba(246, 238, 229, 0.98) 100%);
}

.browse-card-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.browse-card-value {
  font-size: 1.9rem;
  line-height: 0.94;
  letter-spacing: -0.04em;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
}

.browse-card-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.browse-card-title {
  font-size: 1rem;
  line-height: 1.28;
}

.command-brief .section-headline h2 {
  font-size: clamp(1.28rem, 1.8vw, 1.72rem);
}

.browse-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-strong);
  font-weight: 800;
}

.browse-card-link::after {
  content: "→";
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.story-card {
  display: grid;
  gap: 14px;
  background:
    radial-gradient(circle at top right, rgba(201, 93, 53, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.99) 0%, rgba(247, 241, 232, 0.98) 100%);
}

.story-card-closed {
  background:
    radial-gradient(circle at top right, rgba(159, 123, 26, 0.15), transparent 32%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.99) 0%, rgba(247, 241, 232, 0.98) 100%);
}

.story-card-live {
  background:
    radial-gradient(circle at top right, rgba(31, 116, 103, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.99) 0%, rgba(247, 241, 232, 0.98) 100%);
}

.story-header,
.thread-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.story-kicker,
.thread-type {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.story-title,
.thread-title {
  margin: 6px 0 0;
  font-size: 1.26rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
}

.story-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.story-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.story-progress {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.story-progress-step,
.story-progress-count {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.story-progress-step {
  border: 1px solid rgba(32, 26, 19, 0.08);
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
}

.story-progress-step.is-active {
  background: rgba(29, 43, 41, 0.92);
  border-color: rgba(29, 43, 41, 0.92);
  color: #fff8ef;
}

.story-progress-count {
  background: rgba(31, 116, 103, 0.12);
  color: var(--mint);
}

.story-metric {
  min-width: 96px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
}

.story-metric span {
  display: block;
}

.story-metric strong {
  font-size: 1.15rem;
}

.story-chart {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
}

.thread-feed {
  gap: 14px;
}

.thread-card {
  position: relative;
  display: grid;
  gap: 14px;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.thread-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 46px rgba(70, 46, 26, 0.11), 0 4px 12px rgba(70, 46, 26, 0.05);
}

.thread-card-buy {
  border-left: 5px solid rgba(31, 116, 103, 0.36);
}

.thread-card-sell {
  border-left: 5px solid rgba(150, 75, 69, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 249, 244, 0.99) 0%, rgba(249, 239, 235, 0.98) 100%);
}

.thread-card-watch {
  border-left: 5px solid rgba(159, 123, 26, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 251, 244, 0.99) 0%, rgba(249, 243, 233, 0.98) 100%);
}

.thread-topline {
  justify-content: space-between;
}

.thread-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.thread-title-wrap {
  display: grid;
  gap: 8px;
}

.thread-title {
  font-size: 1.5rem;
}

.thread-summary {
  margin: 0;
  font-size: 0.98rem;
}

.thread-card.is-collapsed .thread-summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.thread-glance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 12px;
}

.thread-glance-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(32, 26, 19, 0.08);
  background: rgba(255, 255, 255, 0.68);
}

.thread-glance-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.thread-glance-copy {
  margin: 0;
  font-size: 1rem;
  line-height: 1.58;
  color: var(--accent-strong);
}

.thread-glance-headline {
  font-size: 0.98rem;
  color: var(--ink);
  line-height: 1.3;
}

.thread-level-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.thread-card-watch .thread-level-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.thread-level-box {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 252, 247, 0.92);
  border: 1px solid rgba(32, 26, 19, 0.08);
}

.thread-level-box span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.thread-level-box strong {
  font-size: 1rem;
  line-height: 1.08;
}

.thread-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 16px;
  align-items: start;
}

.thread-chart {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
}

.tag-row,
.price-grid,
.reaction-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag,
.price-pill,
.reaction-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

.price-pill strong {
  margin-right: 6px;
}

.thread-details {
  display: grid;
  gap: 12px;
}

.thread-card.is-collapsed .thread-details {
  display: none;
}

.thread-strategy-note {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(32, 26, 19, 0.08);
}

.thread-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
}

.thread-list li {
  margin-bottom: 8px;
  line-height: 1.58;
}

.thread-footer {
  margin: 0;
}

.reaction-pill {
  color: var(--muted);
}

.thread-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(32, 26, 19, 0.1);
  background: rgba(255, 255, 255, 0.8);
  color: var(--accent-strong);
  font-weight: 700;
}

.empty-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: rgba(255, 251, 246, 0.9);
  border: 1px dashed rgba(32, 26, 19, 0.14);
}

.empty-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
}

.brand-proof-card {
  display: grid;
  gap: 14px;
}

.brand-proof-metric {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(29, 43, 41, 0.92);
  color: #fff8ef;
}

.brand-proof-metric strong {
  font-size: 2.2rem;
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
}

.watchlist {
  gap: 10px;
}

.watch-card-item {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.watch-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.watch-stage {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(29, 43, 41, 0.08);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
}

.watch-trigger {
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.92rem;
}

.watch-sparkline {
  height: 58px;
}

.archive-list {
  gap: 10px;
}

.archive-card {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.archive-return {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-strong);
}

.rules-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.rules-list li {
  color: var(--muted);
  line-height: 1.56;
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.systems-shell {
  display: grid;
  gap: 14px;
}

.systems-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 251, 246, 0.82);
  box-shadow: 0 14px 30px rgba(70, 46, 26, 0.05);
  cursor: pointer;
  list-style: none;
}

.systems-summary::-webkit-details-marker {
  display: none;
}

.systems-summary-copy {
  display: grid;
  gap: 6px;
}

.systems-summary-copy h2 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
}

.systems-shell .systems-grid {
  margin-top: 2px;
}

.system-card {
  display: grid;
  gap: 16px;
}

.step-grid,
.loop-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pipeline-step,
.loop-card {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(29, 43, 41, 0.08);
  color: var(--accent-strong);
  font-weight: 800;
}

.reveal {
  opacity: 1;
  transform: none;
  animation: rise-in 420ms ease both;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .hero-grid,
  .command-grid,
  .community-grid,
  .feed-layout,
  .systems-grid,
  .toolbar-top,
  .section-inline {
    grid-template-columns: 1fr;
  }

  .community-stage-grid,
  .ai-roundtable-form,
  .community-side,
  .side-column,
  .author-grid {
    grid-template-columns: 1fr;
  }

  .hero-feature,
  .ai-roundtable-grid {
    grid-template-columns: 1fr;
  }

  .proof-strip,
  .browse-grid,
  .story-grid,
  .step-grid,
  .loop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 18px, 1340px);
  }

  .topbar {
    align-items: flex-start;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .topbar-cta {
    display: none;
  }

  .language-picker {
    width: 100%;
    justify-content: space-between;
  }

  .hero-feature,
  .side-card,
  .system-card,
  .toolbar-card,
  .composer-card,
  .story-card,
  .thread-card {
    padding: 16px;
    border-radius: 22px;
  }

  .composer-row-two,
  .composer-row-three,
  .author-grid {
    grid-template-columns: 1fr;
  }

  .author-strategy-grid {
    grid-template-columns: 1fr;
  }

  .leaderboard-topline {
    display: grid;
  }

  .leaderboard-topline,
  .leaderboard-row {
    grid-template-columns: 1fr;
  }

  .leaderboard-primary-stat,
  .leaderboard-row-value {
    text-align: left;
  }

  .hero-platform-title {
    max-width: none;
    font-size: clamp(1.9rem, 10vw, 2.7rem);
  }

  .hero-level-grid,
  .thread-glance-grid,
  .thread-main {
    grid-template-columns: 1fr;
  }

  .composer-shell > summary,
  .composer-inner {
    padding-inline: 18px;
  }

  .proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .browse-grid,
  .story-grid,
  .step-grid,
  .loop-grid {
    grid-template-columns: 1fr;
  }

  .quick-guide-card {
    grid-template-columns: auto 1fr;
  }

  .quick-guide-link {
    grid-column: 2;
  }

  .ai-roundtable-form .cta {
    width: 100%;
    justify-content: center;
  }

  .thread-title {
    font-size: 1.22rem;
  }

  .composer-actions-bar {
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .brand-lockup {
    width: 100%;
  }

  .brand-title {
    font-size: 1.85rem;
  }

  .live-pill {
    width: 100%;
    justify-content: center;
  }

  .proof-value {
    font-size: 1.55rem;
  }
}

/* Minimal Signal Media Redesign */
body {
  background-color: #ffffff;
  background-image:
    linear-gradient(to right, #f1f5f9 1px, transparent 1px),
    linear-gradient(to bottom, #f1f5f9 1px, transparent 1px);
  background-size: 40px 40px;
  color: #0f172a;
  font-family:
    Inter,
    "Noto Sans KR",
    "Noto Sans JP",
    "Noto Sans Arabic",
    "Segoe UI",
    sans-serif;
}

.ambient,
#brand-kicker,
.command-brief,
.community-side,
.story-section,
.side-column,
.systems-shell,
#brand-proof-card,
#save-card,
#following-card,
.hero-note,
.hero-divider,
.hero-stack .section-headline,
.toolbar-copy .section-kicker,
.section-headline h2,
.section-description,
.thread-header,
.thread-glance-grid,
.thread-main,
.author-bio,
.author-topics,
.composer-shell,
.signal-board-grid,
.quick-guide-grid,
.browse-grid {
  display: none !important;
}

:root {
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --line: #e2e8f0;
  --ink: #0f172a;
  --muted: #64748b;
  --accent-strong: #0f172a;
  --mint: #15803d;
  --gold: #a16207;
  --rose: #dc2626;
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
}

.shell {
  width: min(100%, 960px);
}

.topbar {
  display: grid;
  gap: 12px;
  padding: 12px 0 10px;
}

.topbar::before {
  inset: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.88);
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  backdrop-filter: blur(14px);
  box-shadow: none;
}

.topbar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-lockup {
  gap: 10px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #0f172a;
  box-shadow: none;
}

.brand-title {
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-family: Inter, "Noto Sans KR", sans-serif;
}

.topbar-actions {
  gap: 8px;
}

.live-pill,
.topbar-cta,
.language-picker {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: none;
}

.live-pill {
  font-size: 0.72rem;
}

.live-pill::before {
  width: 6px;
  height: 6px;
  box-shadow: none;
}

.topbar-cta {
  color: #0f172a;
}

.language-picker {
  gap: 8px;
}

.language-picker select {
  min-width: 110px;
  border: 0;
  padding: 0;
  background: transparent;
}

.topbar-search {
  display: block;
}

body[data-active-tab="research"] .topbar-search {
  display: block;
}

body[data-active-tab="research"] .topbar-cta {
  opacity: 0.78;
}

.global-search-shell {
  position: relative;
  display: block;
  max-width: 740px;
}

.global-search-shell::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(154, 177, 207, 0.8);
  border-radius: 999px;
  transform: translateY(-60%);
}

.global-search-shell::after {
  content: "";
  position: absolute;
  left: 28px;
  top: calc(50% + 4px);
  width: 7px;
  height: 2px;
  background: rgba(154, 177, 207, 0.8);
  transform: rotate(45deg);
  transform-origin: left center;
}

#thread-search {
  width: 100%;
  min-height: 48px;
  padding: 0 16px 0 46px;
  border: 1px solid rgba(102, 196, 255, 0.12);
  border-radius: 999px;
  background: rgba(7, 15, 26, 0.72);
  color: #eef5ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

#thread-search::placeholder {
  color: #8398b7;
}

.page-shell {
  gap: 24px;
  padding: 20px 0 92px;
}

.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-bar h2 {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #64748b;
  font-family: Inter, "Noto Sans KR", sans-serif;
}

.section-badge,
.section-link {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-badge {
  padding: 5px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
}

.section-link {
  color: #0f172a;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.market-summary,
.trending-shell,
.command-grid,
.community-grid,
.feed-layout {
  display: grid;
  gap: 0;
}

.hero-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.card,
.side-card,
.toolbar-card,
.thread-card,
.proof-card,
.author-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.hero-feature,
.side-card,
.toolbar-card,
.thread-card,
.author-card {
  padding: 14px;
}

#signal-board,
.proof-strip,
.author-shell {
  display: block !important;
}

.hero-feature {
  gap: 0;
  background: #ffffff;
}

.section-kicker,
.eyebrow {
  letter-spacing: 0.12em;
  font-size: 0.66rem;
  color: #64748b;
}

.status-chip,
.ticker-chip,
.meta-chip,
.filter-chip,
.scope-chip,
.metric-pill,
.reaction-pill,
.follow-btn {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
}

.chip-live {
  color: #2563eb;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.chip-exit {
  color: #dc2626;
  background: #fef2f2;
  border-color: #fecaca;
}

.chip-watch {
  color: #a16207;
  background: #fefce8;
  border-color: #fde68a;
}

.active-signal-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 210px;
}

.active-signal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mono-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 700;
}

.signal-delta {
  font-size: 0.72rem;
  font-weight: 800;
}

.signal-delta.positive {
  color: #16a34a;
}

.signal-delta.negative {
  color: #dc2626;
}

.signal-delta.watching {
  color: #a16207;
}

.active-signal-chart {
  padding: 6px 0 0;
}

.active-signal-chart .sparkline {
  height: 44px;
}

.active-signal-title {
  font-size: 0.95rem;
  line-height: 1.45;
  color: #0f172a;
}

.active-signal-note {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.5;
  color: #64748b;
}

.active-signal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
}

.proof-strip {
  display: flex !important;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.proof-strip::-webkit-scrollbar {
  display: none;
}

.proof-card {
  display: grid;
  gap: 10px;
  min-width: 192px;
  padding: 14px;
  border-radius: 18px;
}

.proof-card-dark {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.proof-card-dark .proof-kicker,
.proof-card-dark .proof-meta {
  color: rgba(255, 255, 255, 0.72);
}

.proof-kicker {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}

.proof-title {
  font-size: 0.95rem;
  line-height: 1.35;
}

.proof-meta {
  font-size: 0.72rem;
  color: #64748b;
}

.command-grid {
  gap: 0;
}

.ai-roundtable {
  gap: 12px;
}

.ai-roundtable-shell {
  padding: 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.ai-roundtable-form {
  grid-template-columns: 110px minmax(0, 1fr) auto;
}

.field {
  gap: 6px;
}

.field span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.field input,
.field select,
.field textarea {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.ai-roundtable-form .cta {
  min-height: 40px;
  border-radius: 10px;
}

.ai-roundtable-summary {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.ai-roundtable-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-opinion-card {
  padding: 10px;
  border-radius: 12px;
  background: #ffffff;
}

.ai-opinion-summary,
.ai-opinion-style,
.ai-opinion-note {
  color: #64748b;
}

.community-grid {
  grid-template-columns: 1fr;
}

.community-stage {
  padding: 14px;
}

.community-stage > .section-bar p,
.leaderboard-shell > .section-bar p {
  display: none;
}

.community-stage-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(230px, 0.8fr);
  gap: 12px;
}

.leaderboard-shell,
.author-shell {
  display: grid !important;
  gap: 10px;
}

.leaderboard-shell {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
}

.author-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.author-grid::-webkit-scrollbar {
  display: none;
}

.author-card {
  min-width: 190px;
  padding: 12px;
}

.author-top {
  align-items: center;
}

.author-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #0f172a;
}

.author-rank-chip {
  background: #0f172a;
  color: #ffffff;
}

.author-performance-strip {
  gap: 5px;
}

.author-strategy-title {
  font-size: 0.74rem;
  color: #0f172a;
}

.follow-btn {
  width: fit-content;
  background: #ffffff;
}

.follow-btn.is-following {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}

.feed-layout {
  gap: 0;
}

.toolbar-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.toolbar-top {
  display: none;
}

.filter-row,
.scope-row {
  gap: 8px;
  margin-bottom: 12px;
}

.thread-section .section-bar {
  margin-bottom: 8px;
}

.thread-feed {
  gap: 22px;
}

.thread-card {
  position: relative;
  padding: 0 0 0 20px;
  border: 0;
  border-left: 2px solid #e2e8f0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.thread-dot {
  position: absolute;
  left: -5px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid #ffffff;
}

.thread-dot.chip-live {
  background: #2563eb;
}

.thread-dot.chip-exit {
  background: #cbd5e1;
}

.thread-dot.chip-watch {
  background: #f59e0b;
}

.thread-topline {
  margin-bottom: 8px;
}

.thread-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
}

.thread-title {
  margin: 0 0 8px;
  font-size: 0.98rem;
  line-height: 1.55;
  font-weight: 600;
  color: #0f172a;
}

.thread-summary {
  margin: 0 0 10px;
  font-size: 0.86rem;
  line-height: 1.65;
  color: #475569;
}

.thread-details {
  display: grid;
  gap: 6px;
}

.thread-card.is-collapsed .thread-details {
  display: none;
}

.thread-list {
  margin: 0;
  padding-left: 18px;
  color: #475569;
  font-size: 0.82rem;
  line-height: 1.5;
}

.reaction-row {
  gap: 6px;
}

.thread-toggle {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 700;
}

.thread-card.is-collapsed .thread-list,
.thread-card.is-collapsed .reaction-row {
  display: none;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.bottom-nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bottom-nav-item.is-active {
  background: #0f172a;
  color: #ffffff;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 20px, 960px);
  }

  .topbar-main {
    display: grid;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .topbar-cta {
    display: none;
  }

  .hero-grid,
  .community-stage-grid,
  .ai-roundtable-form,
  .ai-roundtable-grid,
  .thread-detail-grid {
    grid-template-columns: 1fr;
  }

  .proof-card {
    min-width: 200px;
  }

  .author-card {
    min-width: 200px;
  }
}

/* SF accent pass */
body {
  background-color: #08111f;
  background-image:
    linear-gradient(to right, rgba(113, 144, 178, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(113, 144, 178, 0.12) 1px, transparent 1px),
    radial-gradient(circle at 12% 0%, rgba(38, 211, 255, 0.14), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(74, 144, 226, 0.12), transparent 24%),
    linear-gradient(180deg, #08111f 0%, #0b1425 46%, #0d1729 100%);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  color: #e6eef8;
}

.ambient {
  display: block !important;
  opacity: 0.72;
  filter: blur(110px);
}

.ambient-a {
  background: rgba(38, 211, 255, 0.18);
}

.ambient-b {
  background: rgba(84, 104, 255, 0.14);
}

:root {
  --surface: rgba(10, 20, 36, 0.76);
  --surface-soft: rgba(14, 26, 46, 0.7);
  --line: rgba(125, 158, 196, 0.18);
  --ink: #e6eef8;
  --muted: #8ea1bb;
  --accent-strong: #0d1b31;
}

.topbar::before {
  background: rgba(7, 14, 25, 0.78);
  border-bottom: 1px solid rgba(93, 122, 156, 0.22);
  box-shadow: 0 8px 40px rgba(2, 6, 23, 0.34);
}

.brand-mark {
  background:
    linear-gradient(135deg, rgba(20, 230, 255, 0.95) 0%, rgba(78, 110, 255, 0.92) 100%);
  color: #08111f;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 24px rgba(56, 189, 248, 0.28);
}

.brand-title,
.section-bar h2,
.thread-title,
.active-signal-title {
  color: #f4f8ff;
}

.live-pill,
.topbar-cta,
.language-picker,
#thread-search,
.field input,
.field select,
.field textarea,
.leaderboard-shell,
.card,
.side-card,
.toolbar-card,
.thread-card,
.proof-card,
.author-card,
.ai-roundtable-shell {
  background: rgba(10, 20, 36, 0.72);
  border-color: rgba(125, 158, 196, 0.16);
  color: #e6eef8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 44px rgba(2, 6, 23, 0.22);
  backdrop-filter: blur(18px);
}

.topbar-cta,
.active-signal-link,
.bottom-nav-item.is-active {
  background:
    linear-gradient(135deg, rgba(36, 216, 255, 0.22) 0%, rgba(84, 104, 255, 0.2) 100%),
    rgba(10, 20, 36, 0.92);
  border: 1px solid rgba(79, 209, 255, 0.28);
  color: #f4f8ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(56, 189, 248, 0.08),
    0 10px 26px rgba(8, 112, 184, 0.18);
}

.section-link,
.thread-toggle,
.topbar-cta,
.language-picker,
.live-pill,
.status-chip,
.ticker-chip,
.meta-chip,
.filter-chip,
.scope-chip,
.metric-pill,
.reaction-pill,
.follow-btn,
.proof-kicker,
.thread-meta,
.field span,
.section-kicker,
.eyebrow {
  color: #95a8c2;
}

.global-search-shell::before {
  border-color: #57d8ff;
}

.global-search-shell::after {
  background: #57d8ff;
}

#thread-search::placeholder,
.field input::placeholder,
.field textarea::placeholder {
  color: #6f849f;
}

.status-chip,
.ticker-chip,
.meta-chip,
.filter-chip,
.scope-chip,
.metric-pill,
.reaction-pill,
.follow-btn {
  background: rgba(18, 32, 55, 0.72);
  border-color: rgba(109, 144, 184, 0.18);
}

.filter-chip.is-active,
.scope-chip.is-active,
.follow-btn.is-following {
  background:
    linear-gradient(135deg, rgba(31, 197, 255, 0.18) 0%, rgba(85, 111, 255, 0.16) 100%),
    rgba(14, 26, 46, 0.95);
  border-color: rgba(89, 214, 255, 0.34);
  color: #dff8ff;
}

.chip-live {
  color: #82d9ff;
  background: rgba(25, 71, 112, 0.36);
  border-color: rgba(79, 209, 255, 0.18);
}

.chip-exit {
  color: #ff9ea4;
  background: rgba(99, 31, 48, 0.3);
  border-color: rgba(255, 117, 140, 0.18);
}

.chip-watch {
  color: #ffd87a;
  background: rgba(104, 78, 21, 0.28);
  border-color: rgba(255, 214, 102, 0.16);
}

.market-summary,
.trending-shell,
.ai-roundtable,
.community-grid,
.feed-layout {
  position: relative;
}

.market-summary::before,
.trending-shell::before,
.ai-roundtable::before,
.community-grid::before,
.feed-layout::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(67, 205, 255, 0.34) 16%, rgba(77, 102, 255, 0.28) 84%, transparent 100%);
}

.section-badge {
  background: rgba(19, 99, 68, 0.28);
  color: #9af7c9;
  border: 1px solid rgba(108, 255, 187, 0.18);
}

.proof-card {
  background:
    linear-gradient(180deg, rgba(16, 29, 49, 0.86) 0%, rgba(9, 18, 33, 0.84) 100%);
}

.proof-card-dark {
  background:
    linear-gradient(135deg, rgba(20, 34, 58, 0.98) 0%, rgba(7, 14, 25, 0.98) 100%);
}

.proof-title,
.leaderboard-top-name,
.leaderboard-row-name,
.author-name,
.ai-opinion-name {
  color: #f4f8ff;
}

.active-signal-card,
.proof-card,
.leaderboard-shell,
.ai-roundtable-shell,
.author-card {
  position: relative;
  overflow: hidden;
}

.active-signal-card::after,
.proof-card::after,
.leaderboard-shell::after,
.ai-roundtable-shell::after,
.author-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(112, 240, 255, 0.1) 0%, transparent 32%, transparent 68%, rgba(88, 108, 255, 0.08) 100%);
}

.active-signal-link {
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.signal-delta.positive {
  color: #6effb7;
}

.signal-delta.negative {
  color: #ff8b94;
}

.signal-delta.watching {
  color: #ffd66b;
}

.leaderboard-row,
.author-card {
  background: rgba(11, 21, 38, 0.78);
}

.leaderboard-row-rank,
.author-rank-chip {
  background: rgba(15, 26, 46, 0.92);
  border: 1px solid rgba(98, 129, 170, 0.22);
  color: #f4f8ff;
}

.thread-card {
  border-left-color: rgba(96, 122, 162, 0.28);
}

.thread-dot {
  border-color: #08111f;
  box-shadow: 0 0 14px currentColor;
}

.thread-title {
  text-shadow: 0 0 18px rgba(82, 196, 255, 0.06);
}

.thread-summary,
.thread-list {
  color: #adbbcf;
}

.bottom-nav {
  border-top-color: rgba(95, 121, 159, 0.2);
  background: rgba(7, 14, 25, 0.86);
}

.bottom-nav-item {
  color: #8ea1bb;
}

/* Stronger SF pass */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    linear-gradient(180deg, rgba(92, 237, 255, 0.04) 0%, transparent 18%, transparent 82%, rgba(92, 237, 255, 0.03) 100%),
    repeating-linear-gradient(
      180deg,
      rgba(135, 174, 222, 0.045) 0,
      rgba(135, 174, 222, 0.045) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: screen;
  opacity: 0.5;
}

body::after {
  background:
    radial-gradient(circle at 18% 8%, rgba(63, 210, 255, 0.2), transparent 22%),
    radial-gradient(circle at 84% 18%, rgba(77, 104, 255, 0.22), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(35, 121, 255, 0.12), transparent 28%);
  opacity: 0.9;
}

body {
  background-color: #050b16;
  background-image:
    linear-gradient(to right, rgba(79, 132, 186, 0.11) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(79, 132, 186, 0.11) 1px, transparent 1px),
    linear-gradient(180deg, #050b16 0%, #08111f 38%, #0a1324 100%);
  background-size: 40px 40px, 40px 40px, auto;
}

.topbar::before {
  background:
    linear-gradient(180deg, rgba(8, 14, 28, 0.92) 0%, rgba(6, 12, 24, 0.84) 100%);
  border-bottom: 1px solid rgba(84, 197, 255, 0.2);
  box-shadow:
    0 10px 40px rgba(2, 6, 23, 0.45),
    inset 0 -1px 0 rgba(84, 197, 255, 0.12);
}

.topbar-main,
.market-summary,
.trending-shell,
.ai-roundtable,
.community-grid,
.feed-layout {
  position: relative;
  z-index: 1;
}

.brand-lockup {
  position: relative;
}

.brand-lockup::after {
  content: "";
  position: absolute;
  left: 48px;
  right: -8px;
  bottom: -8px;
  height: 1px;
  background: linear-gradient(90deg, rgba(71, 212, 255, 0.35), transparent 90%);
}

.brand-mark {
  box-shadow:
    0 0 0 1px rgba(125, 244, 255, 0.22),
    0 0 24px rgba(56, 189, 248, 0.3),
    0 0 60px rgba(84, 104, 255, 0.16);
}

.brand-title {
  letter-spacing: 0.08em;
}

.topbar-cta,
.active-signal-link {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.live-pill,
.topbar-cta,
.language-picker,
#thread-search,
.field input,
.field select,
.field textarea,
.leaderboard-shell,
.card,
.side-card,
.toolbar-card,
.proof-card,
.author-card,
.ai-roundtable-shell {
  border-color: rgba(102, 196, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(11, 22, 39, 0.84) 0%, rgba(8, 17, 31, 0.8) 100%);
}

.leaderboard-shell,
.hero-feature,
#signal-board,
.proof-card,
.ai-roundtable-shell,
.author-card {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(84, 197, 255, 0.04),
    0 18px 44px rgba(2, 6, 23, 0.26),
    0 0 0 1px rgba(84, 197, 255, 0.03);
}

.hero-feature::before,
#signal-board::before,
.proof-card::before,
.ai-roundtable-shell::before,
.leaderboard-shell::before,
.author-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(82, 221, 255, 0.12), transparent 24%, transparent 76%, rgba(110, 98, 255, 0.12)),
    linear-gradient(90deg, transparent 0%, rgba(84, 197, 255, 0.04) 50%, transparent 100%);
  opacity: 0.8;
}

.section-bar {
  margin-bottom: 16px;
}

.section-bar h2,
.proof-kicker,
.thread-meta,
.field span,
.section-kicker,
.eyebrow,
.bottom-nav-item {
  letter-spacing: 0.14em;
}

.section-bar h2 {
  color: #98aecd;
}

.section-link {
  color: #92e9ff;
}

.section-badge {
  background: rgba(32, 138, 96, 0.18);
  color: #a6ffd3;
  box-shadow: inset 0 0 0 1px rgba(111, 255, 196, 0.1);
}

.active-signal-card {
  min-height: 228px;
  padding: 2px 0 0;
}

.active-signal-card-primary {
  position: relative;
}

.active-signal-card-primary::after {
  content: "";
  position: absolute;
  right: 0;
  top: 8px;
  width: 64px;
  height: 64px;
  background:
    radial-gradient(circle, rgba(83, 226, 255, 0.18) 0%, rgba(83, 226, 255, 0) 72%);
  pointer-events: none;
}

.active-signal-top {
  margin-bottom: 2px;
}

.mono-label {
  color: #d7f7ff;
  letter-spacing: 0.06em;
}

.active-signal-chart {
  position: relative;
}

.active-signal-chart::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 1px;
  background: linear-gradient(90deg, rgba(82, 221, 255, 0.3), transparent);
}

.active-signal-title {
  text-shadow: 0 0 18px rgba(96, 223, 255, 0.08);
}

.proof-card {
  min-width: 204px;
  border-radius: 20px;
}

.proof-card-dark {
  background:
    linear-gradient(135deg, rgba(17, 31, 54, 0.98) 0%, rgba(8, 17, 31, 0.98) 100%);
}

.ai-roundtable-shell {
  overflow: hidden;
}

.ai-roundtable-form {
  position: relative;
}

.ai-roundtable-summary {
  background:
    linear-gradient(180deg, rgba(12, 23, 41, 0.92) 0%, rgba(9, 18, 33, 0.86) 100%);
  border-color: rgba(93, 175, 255, 0.16);
}

.ai-opinion-card {
  background:
    linear-gradient(180deg, rgba(14, 25, 43, 0.92) 0%, rgba(9, 18, 33, 0.88) 100%);
  border-color: rgba(102, 196, 255, 0.12);
}

.leaderboard-row,
.author-card {
  background:
    linear-gradient(180deg, rgba(10, 19, 34, 0.88) 0%, rgba(8, 15, 28, 0.82) 100%);
}

.leaderboard-row-rank,
.author-rank-chip {
  box-shadow: 0 0 18px rgba(84, 197, 255, 0.12);
}

.thread-section .section-bar {
  margin-bottom: 14px;
}

.thread-feed {
  gap: 26px;
}

.thread-card {
  border-left-color: rgba(88, 173, 255, 0.2);
}

.thread-card::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(82, 221, 255, 0.32), rgba(82, 221, 255, 0));
}

.thread-topline {
  margin-bottom: 10px;
}

.thread-meta {
  color: #7f97b5;
}

.thread-summary,
.thread-list {
  color: #b8c7d9;
}

.thread-toggle {
  color: #98f1ff;
}

.bottom-nav {
  background:
    linear-gradient(180deg, rgba(8, 14, 25, 0.88) 0%, rgba(5, 11, 22, 0.92) 100%);
  box-shadow: 0 -18px 34px rgba(2, 6, 23, 0.26);
}

.bottom-nav-item {
  position: relative;
}

.bottom-nav-item.is-active::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(82, 221, 255, 0.1), rgba(82, 221, 255, 0.8), rgba(110, 98, 255, 0.36));
}

.command-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.92fr);
  gap: 14px;
  align-items: start;
}

.command-panel,
.return-radar-shell,
.community-stage,
.feed-main,
.feed-side,
.monetization-card {
  position: relative;
}

.section-stack {
  display: grid;
  gap: 6px;
}

.section-description {
  margin: 0;
  color: #90a7c5;
  font-size: 0.95rem;
  line-height: 1.55;
}

.section-description-inline {
  max-width: 42ch;
  text-align: right;
}

.section-bar-stack {
  align-items: start;
}

.section-bar-compact {
  margin-bottom: 10px;
}

.command-panel {
  padding: 18px;
  border-radius: 28px;
}

.command-side {
  display: grid;
  gap: 12px;
}

.market-summary,
.trending-shell,
.return-radar-shell {
  padding: 0;
  margin: 0;
}

#signal-board,
.proof-strip,
.author-shell {
  display: grid;
}

.proof-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.return-radar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.return-radar-card {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(102, 196, 255, 0.14);
  background: linear-gradient(180deg, rgba(10, 19, 34, 0.9) 0%, rgba(7, 14, 26, 0.84) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.community-stage {
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(9, 17, 31, 0.86) 0%, rgba(7, 14, 26, 0.8) 100%);
  border: 1px solid rgba(102, 196, 255, 0.12);
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.24);
}

.community-stage-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 12px;
}

.leaderboard-shell,
.author-shell,
.composer-shell,
.monetization-card,
.toolbar-card,
.thread-card {
  border-radius: 24px;
}

.leaderboard-shell,
.author-shell {
  padding: 16px;
}

.leaderboard-lead {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(102, 196, 255, 0.16);
  background: linear-gradient(180deg, rgba(13, 25, 45, 0.94) 0%, rgba(8, 17, 31, 0.88) 100%);
  box-shadow: inset 0 0 0 1px rgba(84, 197, 255, 0.04);
}

.leaderboard-lead-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.leaderboard-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.leaderboard-basis-copy,
.leaderboard-row-basis {
  margin: 0;
  color: #8fa6c4;
  font-size: 0.83rem;
  line-height: 1.45;
}

.leaderboard-row {
  align-items: start;
  gap: 12px;
  padding: 12px 14px;
}

.leaderboard-row-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.feed-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.feed-main {
  display: grid;
  gap: 12px;
}

.feed-side {
  display: grid;
  gap: 12px;
}

.feed-side {
  grid-template-columns: 1fr;
}

.composer-shell {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.composer-shell > summary {
  display: none;
}

.composer-inner {
  padding: 0;
}

.contribution-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contribution-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(102, 196, 255, 0.14);
  background: rgba(10, 18, 31, 0.88);
  color: #9bb2cf;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contribution-chip.is-active {
  border-color: rgba(84, 197, 255, 0.28);
  background: rgba(84, 197, 255, 0.12);
  color: #dffbff;
  box-shadow: 0 0 0 1px rgba(84, 197, 255, 0.08), 0 0 20px rgba(84, 197, 255, 0.08);
}

.composer-row-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.monetization-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(11, 23, 42, 0.92) 0%, rgba(7, 15, 28, 0.86) 100%);
  border: 1px solid rgba(102, 196, 255, 0.14);
}

.premium-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #c7d4e5;
}

.premium-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.consensus-spectrum {
  display: flex;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.consensus-segment {
  height: 100%;
}

.consensus-segment.is-constructive {
  background: linear-gradient(90deg, rgba(76, 255, 183, 0.55), rgba(76, 255, 183, 0.88));
  box-shadow: 0 0 18px rgba(76, 255, 183, 0.32);
}

.consensus-segment.is-watch {
  background: linear-gradient(90deg, rgba(255, 210, 102, 0.48), rgba(255, 210, 102, 0.8));
  box-shadow: 0 0 18px rgba(255, 210, 102, 0.26);
}

.consensus-segment.is-cautious {
  background: linear-gradient(90deg, rgba(255, 113, 142, 0.48), rgba(255, 113, 142, 0.82));
  box-shadow: 0 0 18px rgba(255, 113, 142, 0.28);
}

.thread-feed {
  gap: 12px;
}

.thread-card {
  padding: 14px 16px;
}

.thread-summary {
  margin: 0 0 10px;
}

.thread-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.thread-snapshot {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(102, 196, 255, 0.12);
  background: rgba(8, 16, 28, 0.62);
}

.thread-snapshot strong {
  font-size: 0.92rem;
  line-height: 1.45;
  color: #dff0ff;
}

.thread-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.reaction-pill strong {
  margin-right: 6px;
}

.field input,
.field select,
.field textarea {
  min-height: 46px;
}

.topbar {
  gap: 12px;
}

.topbar-search {
  min-width: 280px;
}

@media (max-width: 1120px) {
  .command-stage,
  .feed-layout,
  .community-stage-grid {
    grid-template-columns: 1fr;
  }

  .section-description-inline {
    max-width: none;
    text-align: left;
  }

  .proof-strip,
  .return-radar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 18px, 1340px);
  }

  .topbar {
    padding-top: 8px;
  }

  .topbar-main,
  .topbar-actions {
    gap: 8px;
  }

  .topbar-cta {
    display: none;
  }

  .topbar-search {
    min-width: 0;
  }

  .command-panel,
  .community-stage,
  .composer-shell,
  .monetization-card,
  .leaderboard-shell,
  .author-shell {
    padding: 14px;
  }

  .proof-strip,
  .return-radar,
  .thread-snapshot-grid,
  .composer-row-two,
  .composer-row-three {
    grid-template-columns: 1fr;
  }

  .ai-roundtable-form,
  .leaderboard-lead-top,
  .section-bar,
  .thread-topline {
    display: grid;
    gap: 10px;
  }

  .section-bar {
    align-items: start;
  }

  .leaderboard-row {
    grid-template-columns: auto 1fr;
  }

  .leaderboard-row-value {
    grid-column: 2;
    justify-self: start;
  }

  .bottom-nav {
    padding-inline: 16px;
  }
}

/* UX polish pass: stronger orientation, less scroll friction, cleaner section rhythm */
.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 10px;
}

.topbar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.topbar-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.subnav-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(102, 196, 255, 0.1);
  background: rgba(8, 16, 28, 0.42);
  color: #9cb1cb;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease, transform 180ms ease;
}

.subnav-chip:hover {
  border-color: rgba(84, 197, 255, 0.3);
  background: rgba(84, 197, 255, 0.1);
  color: #edf9ff;
  transform: translateY(-1px);
}

.command-panel {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 0 1px rgba(84, 197, 255, 0.04),
    0 24px 60px rgba(2, 6, 23, 0.28);
}

.ai-roundtable-form {
  gap: 8px;
}

.ai-roundtable-suggestions {
  display: none;
}

.ai-roundtable-summary,
.ai-opinion-card,
.return-radar-card,
.leaderboard-lead,
.leaderboard-row,
.author-card,
.thread-card,
.composer-shell,
.monetization-card,
.toolbar-card {
  backdrop-filter: blur(12px);
}

.ai-roundtable-grid {
  gap: 8px;
}

.leaderboard-shell,
.author-shell,
.composer-shell,
.monetization-card,
.toolbar-card {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 44px rgba(2, 6, 23, 0.22);
}

.feed-layout {
  gap: 16px;
}

.feed-side {
  align-self: start;
}

.thread-card {
  scroll-margin-top: 140px;
}

.thread-card:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 42px rgba(2, 6, 23, 0.24);
}

.feed-insert {
  display: grid;
  gap: 12px;
  margin: -4px 0 4px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(102, 196, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(9, 18, 33, 0.8) 0%, rgba(7, 14, 26, 0.74) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 24px rgba(2, 6, 23, 0.16);
}

.feed-insert-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feed-insert-kicker {
  color: #a7c0de;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feed-insert-link {
  color: #89ecff;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.feed-insert-link:hover {
  color: #d8f8ff;
}

.feed-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.feed-radar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.feed-signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.feed-rank-shell {
  display: grid;
  gap: 10px;
}

.feed-rank-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #8fa9c7;
  font-size: 0.82rem;
}

.feed-rank-head strong {
  color: #e8f6ff;
  font-size: 0.98rem;
}

.feed-rank-list {
  display: grid;
  gap: 8px;
}

.feed-rank-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(102, 196, 255, 0.12);
  background: rgba(9, 18, 32, 0.72);
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.leaderboard-row-simple[data-author-rank-focus],
.feed-rank-row[data-author-rank-focus] {
  cursor: pointer;
}

.feed-rank-row:hover {
  transform: translateY(-1px);
  border-color: rgba(102, 196, 255, 0.2);
  background: rgba(10, 21, 37, 0.82);
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.18);
}

.feed-rank-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(102, 196, 255, 0.14);
  background: rgba(84, 197, 255, 0.08);
  color: #dff8ff;
  font-size: 0.82rem;
  font-weight: 800;
}

.feed-rank-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.feed-rank-main strong {
  color: #eef8ff;
  font-size: 0.96rem;
}

.feed-rank-main span,
.feed-rank-value span {
  color: #87a1bf;
  font-size: 0.8rem;
}

.feed-rank-value {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.feed-rank-value strong {
  color: #7dffcb;
  font-size: 0.96rem;
}

/* Threads-like feed pass */
.thread-feed {
  gap: 10px;
}

.thread-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 14px 13px;
  border-radius: 20px;
  border: 1px solid rgba(102, 196, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(8, 16, 29, 0.8) 0%, rgba(7, 14, 25, 0.74) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 8px 20px rgba(2, 6, 23, 0.14);
}

.thread-card::before {
  display: none;
}

.thread-card-buy,
.thread-card-sell,
.thread-card-watch {
  border-left: none;
}

.thread-rail {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.thread-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(180, 226, 255, 0.22);
  background: linear-gradient(180deg, rgba(216, 244, 255, 0.96) 0%, rgba(185, 217, 235, 0.88) 100%);
  color: #193149;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.thread-rail-line {
  width: 1px;
  min-height: 100%;
  flex: 1 1 auto;
  background: linear-gradient(180deg, rgba(129, 207, 255, 0.26), rgba(129, 207, 255, 0));
}

.thread-body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.thread-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
}

.thread-authorline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  min-width: 0;
}

.thread-author-name {
  color: #f2fbff;
  font-size: 0.98rem;
  font-weight: 800;
}

.thread-author-handle,
.thread-author-age {
  color: #88a2c0;
  font-size: 0.84rem;
}

.thread-meta {
  gap: 6px;
  justify-content: flex-end;
}

.thread-title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.32;
  letter-spacing: -0.03em;
}

.thread-summary {
  margin: 0;
  color: #b8c8da;
  font-size: 0.92rem;
  line-height: 1.52;
}

.thread-card.is-collapsed .thread-summary {
  -webkit-line-clamp: 2;
}

.thread-brief-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.thread-follow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(102, 196, 255, 0.12);
  border-radius: 14px;
  background: rgba(8, 18, 27, 0.72);
}

.thread-follow-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.thread-follow-copy strong {
  color: #eefbff;
  font-size: 0.88rem;
  line-height: 1.35;
}

.thread-follow-copy span {
  color: #9ab2c7;
  font-size: 0.79rem;
  line-height: 1.45;
}

.thread-follow-row .follow-btn {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  white-space: nowrap;
}

.thread-brief-pill {
  display: grid;
  gap: 5px;
  padding: 9px 11px;
  border-radius: 14px;
  border: 1px solid rgba(102, 196, 255, 0.1);
  background: rgba(10, 18, 31, 0.58);
}

.thread-brief-pill strong {
  color: #eaf7ff;
  font-size: 0.88rem;
  line-height: 1.4;
}

.thread-details {
  display: grid;
  gap: 10px;
}

.thread-card.is-collapsed .thread-details {
  gap: 8px;
}

.thread-list {
  margin: 0;
  padding-left: 18px;
  color: #a8bad0;
}

.thread-levels,
.reaction-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reaction-pill {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(102, 196, 255, 0.12);
  background: rgba(9, 17, 30, 0.72);
  color: #c8d7e7;
}

.thread-toggle {
  justify-self: start;
  min-height: 32px;
  padding: 0 2px;
  border: none;
  background: transparent;
  color: #8feeff;
  font-size: 0.84rem;
  font-weight: 700;
}

/* Alignment polish pass */
.status-chip,
.live-pill,
.ticker-chip,
.meta-chip,
.filter-chip,
.scope-chip,
.metric-pill,
.reaction-pill,
.follow-btn,
.contribution-chip,
.author-rank-chip,
.leaderboard-row-rank,
.feed-rank-order,
.section-badge {
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}

.status-chip,
.live-pill {
  gap: 8px;
  padding-inline: 12px 14px;
}

.status-chip::before,
.live-pill::before {
  flex: 0 0 8px;
  margin-left: -1px;
}

.status-chip,
.meta-chip,
.metric-pill,
.filter-chip,
.scope-chip,
.reaction-pill,
.follow-btn,
.contribution-chip,
.author-rank-chip,
.leaderboard-row-rank,
.feed-rank-order,
.section-badge {
  font-variant-numeric: tabular-nums;
}

.metric-pill,
.reaction-pill,
.scope-chip,
.follow-btn,
.contribution-chip {
  gap: 6px;
}

.metric-pill strong,
.reaction-pill strong,
.feed-rank-value strong,
.leaderboard-row-value strong {
  line-height: 1;
}

.thread-meta,
.author-performance-strip,
.author-meta-line,
.leaderboard-trust-row,
.premium-proof,
.brand-proof-secondary,
.thread-levels,
.reaction-row,
.topbar-actions {
  align-items: center;
}

.thread-authorline,
.author-identity,
.leaderboard-lead-top,
.feed-insert-bar,
.section-bar,
.topbar-main {
  align-items: center;
}

.ai-opinion-top {
  align-items: flex-start;
}

.ai-opinion-top .status-chip {
  align-self: flex-start;
}

.feed-insert {
  padding: 16px;
}

.feed-proof-grid,
.feed-radar-grid,
.feed-signal-grid,
.feed-rank-list {
  gap: 10px;
}

.feed-proof-card,
.feed-radar-card,
.feed-signal-card {
  min-height: 136px;
  align-content: start;
}

.feed-rank-row {
  min-height: 74px;
}

.leaderboard-profile-grid {
  align-items: stretch;
}

.leaderboard-profile-card,
.leaderboard-row,
.leaderboard-lead,
.ai-opinion-card,
.feed-insert,
.thread-card,
.composer-shell {
  overflow: hidden;
}

.thread-card,
.feed-insert,
.leaderboard-shell,
.community-stage,
.command-panel,
.composer-shell {
  border-radius: 24px;
}

.thread-brief-pill strong,
.feed-rank-main strong,
.proof-title,
.active-signal-title {
  text-wrap: balance;
}

.thread-author-handle,
.thread-author-age,
.leaderboard-row-handle,
.proof-meta,
.ai-opinion-style,
.ai-opinion-note {
  line-height: 1.35;
}

@media (max-width: 760px) {
  .status-chip,
  .live-pill {
    gap: 7px;
    padding-inline: 11px 13px;
  }

  .feed-proof-card,
  .feed-radar-card,
  .feed-signal-card,
  .feed-rank-row {
    min-height: auto;
  }

  .thread-card {
    border-radius: 20px;
  }
}

.community-stage-grid {
  grid-template-columns: 1fr;
}

.command-stage {
  grid-template-columns: 1fr;
}

.leaderboard-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.leaderboard-profile-card {
  min-width: 0;
}

.feed-proof-card {
  min-width: 0;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.feed-radar-card {
  min-width: 0;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.feed-signal-card {
  min-width: 0;
  text-decoration: none;
  padding: 18px;
  min-height: 100%;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.feed-proof-card:hover {
  transform: translateY(-2px);
  border-color: rgba(102, 196, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 36px rgba(2, 6, 23, 0.24);
}

.feed-insert-return {
  background:
    linear-gradient(180deg, rgba(9, 18, 33, 0.8) 0%, rgba(7, 14, 26, 0.74) 100%);
}

.feed-insert-signals {
  background:
    linear-gradient(180deg, rgba(9, 18, 33, 0.8) 0%, rgba(7, 14, 26, 0.74) 100%);
}

.feed-insert-rank {
  background:
    linear-gradient(180deg, rgba(9, 18, 33, 0.8) 0%, rgba(7, 14, 26, 0.74) 100%);
}

.feed-insert-premium {
  background:
    linear-gradient(180deg, rgba(9, 18, 33, 0.8) 0%, rgba(7, 14, 26, 0.74) 100%);
}

.feed-premium-shell {
  display: grid;
  gap: 10px;
}

.feed-premium-title {
  color: #eef8ff;
  font-size: 0.98rem;
  line-height: 1.35;
}

.feed-premium-copy {
  margin: 0;
  color: #a9bbd0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.feed-premium-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feed-radar-card:hover {
  transform: translateY(-2px);
  border-color: rgba(130, 170, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(11, 22, 39, 0.92) 0%, rgba(9, 17, 31, 0.86) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 36px rgba(2, 6, 23, 0.22);
}

.feed-signal-card:hover {
  transform: translateY(-2px);
  border-color: rgba(102, 196, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 40px rgba(2, 6, 23, 0.24);
}

.feed-signal-card .active-signal-title {
  font-size: 1.05rem;
}

.feed-signal-card .active-signal-note {
  min-height: auto;
}

.feed-signal-card .active-signal-mini-metrics {
  margin-top: auto;
}

.feed-signal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  width: fit-content;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(102, 196, 255, 0.16);
  background: rgba(84, 197, 255, 0.08);
  color: #dff8ff;
  font-size: 0.84rem;
  font-weight: 800;
}

.toolbar-card {
  position: sticky;
  top: 126px;
  z-index: 8;
}

.bottom-nav {
  display: none;
}

@media (min-width: 1121px) {
  .command-panel {
    position: sticky;
    top: 126px;
  }

  .feed-side {
    position: sticky;
    top: 126px;
  }
}

@media (max-width: 1120px) {
  .toolbar-card,
  .command-panel,
  .feed-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .topbar-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .topbar-subnav {
    overflow-x: auto;
    padding-bottom: 2px;
    flex-wrap: nowrap;
  }

  .subnav-chip {
    white-space: nowrap;
  }

  .ai-roundtable-grid {
    grid-template-columns: 1fr;
  }

  .feed-proof-grid {
    grid-template-columns: 1fr;
  }

  .feed-radar-grid {
    grid-template-columns: 1fr;
  }

  .feed-signal-grid {
    grid-template-columns: 1fr;
  }

  .feed-rank-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .feed-rank-value {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }

  .leaderboard-profile-grid {
    grid-template-columns: 1fr;
  }

  .thread-card {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding-inline: 12px;
  }

  .thread-brief-row {
    grid-template-columns: 1fr;
  }

  .thread-follow-row {
    align-items: stretch;
    flex-direction: column;
  }

  .thread-follow-row .follow-btn {
    width: 100%;
  }

  .thread-topline {
    display: grid;
    gap: 8px;
  }

  .thread-meta {
    justify-content: flex-start;
  }

  .toolbar-card {
    position: static;
  }

  .bottom-nav {
    display: flex;
  }
}

/* AI compare simplification */
.ai-roundtable-summary {
  gap: 10px;
  padding: 14px 16px;
}

.ai-summary-topline h3 {
  margin-top: 2px;
  font-size: 1.8rem;
  line-height: 1;
}

.ai-summary-question,
.consensus-spectrum,
.ai-summary-helper,
.ai-opinion-note,
.ai-opinion-list {
  display: none;
}

.ai-roundtable-grid {
  display: block;
}

.ai-chat-log {
  display: grid;
  gap: 12px;
}

.ai-chat-entry {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.ai-chat-entry-user {
  grid-template-columns: minmax(0, 1fr) 44px;
}

.ai-chat-entry-user .ai-chat-bubble {
  order: 1;
}

.ai-chat-entry-user .ai-chat-avatar {
  order: 2;
}

.ai-chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: #ecf4ff;
  background: linear-gradient(180deg, rgba(22, 38, 64, 0.95), rgba(11, 20, 35, 0.9));
  border: 1px solid rgba(96, 182, 255, 0.18);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.18);
}

.ai-chat-avatar-user {
  background: linear-gradient(180deg, rgba(18, 60, 102, 0.95), rgba(10, 33, 58, 0.9));
  border-color: rgba(97, 221, 255, 0.24);
}

.ai-chat-bubble {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(14, 25, 43, 0.92) 0%, rgba(9, 18, 33, 0.88) 100%);
  border: 1px solid rgba(102, 196, 255, 0.12);
  overflow: hidden;
}

.ai-chat-entry-user .ai-chat-bubble {
  justify-items: start;
  border-top-right-radius: 8px;
  background: linear-gradient(180deg, rgba(16, 42, 74, 0.96) 0%, rgba(11, 28, 50, 0.92) 100%);
  border-color: rgba(106, 220, 255, 0.18);
}

.ai-chat-bubble-constructive {
  border-left: 4px solid rgba(50, 215, 152, 0.56);
}

.ai-chat-bubble-watch {
  border-left: 4px solid rgba(255, 205, 96, 0.56);
}

.ai-chat-bubble-cautious {
  border-left: 4px solid rgba(255, 107, 107, 0.56);
}

.ai-chat-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-chat-meta strong {
  font-size: 0.9rem;
  color: #c8d7eb;
}

.ai-chat-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
  color: #f4f8ff;
}

.premium-research-shell {
  display: grid;
  gap: 18px;
  margin-top: 16px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(11, 22, 39, 0.94) 0%, rgba(8, 16, 30, 0.9) 100%);
  border: 1px solid rgba(102, 196, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 20px 44px rgba(2, 6, 23, 0.2);
}

.premium-research-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.premium-research-copy {
  display: grid;
  gap: 8px;
}

.premium-research-copy h3 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #f5f8ff;
}

.premium-research-copy p:last-child {
  margin: 0;
  color: #99adc8;
  line-height: 1.6;
}

.premium-research-cta {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.premium-paywall-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(18, 54, 92, 0.82);
  border: 1px solid rgba(104, 220, 255, 0.18);
  color: #bcecff;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.premium-unlock-button {
  min-height: 42px;
  padding-inline: 18px;
}

.premium-research-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 16px;
}

.premium-research-toc {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(102, 196, 255, 0.1);
}

.premium-toc-title {
  margin: 0 0 2px;
  color: #eaf4ff;
  font-size: 0.92rem;
  font-weight: 800;
}

.premium-toc-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 12px;
  border-radius: 16px;
  text-decoration: none;
  border: 1px solid rgba(102, 196, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.premium-toc-item.is-open {
  border-color: rgba(114, 247, 198, 0.18);
}

.premium-toc-item.is-locked {
  opacity: 0.9;
}

.premium-toc-index,
.premium-toc-state {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #90a3c0;
}

.premium-toc-label {
  color: #eef5ff;
  font-size: 0.92rem;
  line-height: 1.4;
}

.premium-research-body {
  display: grid;
  gap: 14px;
}

.premium-section {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(102, 196, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.premium-section.is-open {
  border-color: rgba(114, 247, 198, 0.14);
}

.premium-section.is-locked {
  min-height: 190px;
}

.premium-section.is-locked .premium-section-body,
.premium-section.is-locked .premium-section-points {
  filter: blur(4px);
  opacity: 0.42;
  user-select: none;
}

.premium-section.is-unlocked .premium-section-body,
.premium-section.is-unlocked .premium-section-points {
  filter: none;
  opacity: 1;
  user-select: auto;
}

.premium-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.premium-section-head h4 {
  margin: 0;
  color: #f4f8ff;
  font-size: 1.02rem;
  line-height: 1.35;
}

.premium-section-state {
  color: #91a7c8;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.premium-section-body {
  margin: 0;
  color: #a9bad2;
  line-height: 1.6;
}

.premium-section-points {
  display: grid;
  gap: 8px;
}

.premium-section-points p {
  margin: 0;
  color: #dbe8f8;
  line-height: 1.5;
}

.premium-lock-overlay {
  position: absolute;
  inset: auto 16px 16px 16px;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(6, 12, 24, 0.88);
  border: 1px solid rgba(255, 216, 122, 0.18);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.24);
}

.premium-lock-overlay strong {
  color: #fff3cb;
  font-size: 0.9rem;
}

.premium-lock-overlay span {
  color: #c7d4e5;
  font-size: 0.84rem;
  line-height: 1.45;
}

.premium-inline-unlock {
  margin-top: 8px;
  min-height: 40px;
  justify-self: start;
}

.premium-inline-unlock[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.ai-opinion-name {
  font-size: 1.1rem;
}

.ai-opinion-style {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8ea5c3;
}

.ai-opinion-summary {
  font-size: 1rem;
  line-height: 1.45;
  color: #ecf4ff;
}

.ai-opinion-points {
  display: grid;
  gap: 8px;
}

.ai-opinion-points p {
  margin: 0;
  color: #a9bad2;
  font-size: 0.94rem;
  line-height: 1.5;
}

.ai-opinion-points p strong {
  color: #f8fbff;
}

@media (max-width: 760px) {
  .ai-summary-topline h3 {
    font-size: 1.45rem;
  }

  .ai-chat-entry,
  .ai-chat-entry-user {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
  }

  .ai-chat-entry-user .ai-chat-bubble {
    order: 2;
  }

  .ai-chat-entry-user .ai-chat-avatar {
    order: 1;
  }

  .ai-chat-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.82rem;
  }

  .ai-chat-bubble {
    padding: 14px;
  }

  .ai-opinion-points p {
    font-size: 0.9rem;
  }

  .premium-research-head,
  .premium-research-layout {
    grid-template-columns: 1fr;
    display: grid;
  }

  .premium-research-cta {
    justify-items: start;
  }

  .premium-toc-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .premium-toc-state {
    grid-column: 2;
  }
}

/* Unified research dossier layout */
.app-tab-panel[hidden] {
  display: none !important;
}

.app-tab-panel {
  display: grid;
  gap: 16px;
}

.research-stage,
.feed-stage {
  margin-top: 6px;
}

.stage-header {
  position: relative;
  overflow: hidden;
  padding: 18px 22px;
  border-radius: 26px;
  border: 1px solid rgba(102, 196, 255, 0.1);
}

.stage-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(102, 196, 255, 0.06), transparent 38%, transparent 62%, rgba(185, 130, 255, 0.06));
}

.stage-header-research {
  background: linear-gradient(180deg, rgba(12, 24, 43, 0.86) 0%, rgba(9, 18, 34, 0.72) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 42px rgba(2, 6, 23, 0.16);
}

.stage-header-feed {
  background: linear-gradient(180deg, rgba(10, 19, 34, 0.72) 0%, rgba(8, 15, 28, 0.56) 100%);
  border-color: rgba(102, 196, 255, 0.08);
}

.stage-header-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.stage-header-copy h2 {
  margin: 0;
  color: #f5f8ff;
  font-size: 1.3rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.stage-header-copy .section-description {
  margin: 0;
  max-width: 68ch;
  color: #9cb1cb;
}

.research-overview {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.research-overview-copy {
  display: grid;
  gap: 8px;
}

.research-overview-copy h3 {
  margin: 0;
  font-size: 1.95rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #f5f8ff;
}

.research-overview-copy h3 span {
  margin-left: 8px;
  font-size: 0.68em;
  font-weight: 600;
  color: #8ea5c3;
}

.research-overview-copy p:last-child {
  margin: 0;
  max-width: 58ch;
  color: #9db0c8;
  line-height: 1.6;
}

.research-overview-meta {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.research-dossier {
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.research-sidebar,
.research-main {
  display: grid;
  gap: 16px;
  align-content: start;
}

.research-panel,
.research-stream,
.premium-research-shell {
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(11, 22, 39, 0.94) 0%, rgba(8, 16, 30, 0.9) 100%);
  border: 1px solid rgba(102, 196, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 20px 44px rgba(2, 6, 23, 0.2);
}

.command-stage {
  margin-top: 14px;
}

.research-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.research-panel-kicker {
  margin: 0;
  color: #8ea5c3;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.research-question-title {
  margin: 0;
  color: #eef5ff;
  font-size: 1.04rem;
  line-height: 1.55;
}

.research-mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.research-paywall-copy {
  margin: 0;
  color: #a6b9d2;
  line-height: 1.55;
}

.research-stream {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.research-stream-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.research-stream-head strong {
  color: #ebf3ff;
  font-size: 0.98rem;
  font-weight: 700;
}

.premium-research-shell {
  gap: 16px;
  margin-top: 0;
}

.premium-research-head {
  justify-content: flex-start;
}

.premium-research-layout {
  display: block;
}

.research-panel-toc {
  align-content: start;
}

.premium-research-toc,
.research-panel-toc {
  display: grid;
  gap: 10px;
}

@media (max-width: 980px) {
  .research-dossier {
    grid-template-columns: 1fr;
  }

  .research-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .research-panel-toc {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .stage-header {
    padding: 16px;
    border-radius: 22px;
  }

  .stage-header-copy h2 {
    font-size: 1.14rem;
  }

  .research-overview,
  .research-stream-head,
  .research-dossier,
  .research-sidebar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .research-overview-meta {
    justify-items: start;
  }

  .research-overview-copy h3 {
    font-size: 1.55rem;
  }
}

.ai-roundtable-hidden-field {
  display: none !important;
}

.research-overview-compact {
  align-items: center;
}

.research-overview-compact .research-overview-copy {
  gap: 4px;
}

.research-overview-compact .research-overview-copy p {
  display: none;
}

.app-tab-panel-research.is-idle .research-stage {
  display: none;
}

.app-tab-panel-research.is-idle .command-stage {
  min-height: calc(100vh - 260px);
  align-items: center;
}

.app-tab-panel-research.is-idle .command-panel {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px;
  border-radius: 34px;
}

.app-tab-panel-research.is-idle .ai-roundtable-form {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.app-tab-panel-research.is-idle .ai-roundtable-question-field input {
  min-height: 78px;
  padding: 0 28px;
  border-radius: 30px;
  font-size: clamp(1.12rem, 1.5vw, 1.45rem);
  letter-spacing: -0.01em;
}

.app-tab-panel-research.is-idle .ai-roundtable-form .cta {
  min-height: 78px;
  padding: 0 28px;
  border-radius: 28px;
  white-space: nowrap;
}

.app-tab-panel-research.is-idle .ai-roundtable-summary,
.app-tab-panel-research.is-idle .ai-roundtable-grid,
.app-tab-panel-research.is-idle .ai-roundtable-suggestions {
  display: none !important;
}

@media (max-width: 760px) {
  .app-tab-panel-research.is-idle .command-stage {
    min-height: calc(100vh - 220px);
  }

  .app-tab-panel-research.is-idle .command-panel {
    padding: 18px;
    border-radius: 24px;
  }

  .app-tab-panel-research.is-idle .ai-roundtable-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-tab-panel-research.is-idle .ai-roundtable-question-field input,
  .app-tab-panel-research.is-idle .ai-roundtable-form .cta {
    min-height: 64px;
    border-radius: 22px;
  }
}

.app-tab-panel-research .research-stage {
  display: none;
}

.app-tab-panel-research .command-stage {
  display: block;
}

.app-tab-panel-research .command-panel {
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(9, 18, 31, 0.92) 0%, rgba(7, 14, 25, 0.88) 100%);
}

.ai-roundtable-form {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.ai-roundtable-question-field input {
  min-height: 60px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(123, 144, 172, 0.2);
  background: rgba(4, 11, 22, 0.64);
  color: #f4f8ff;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 28px rgba(2, 6, 23, 0.16);
}

.ai-roundtable-question-field input::placeholder {
  color: #7c90ac;
}

.ai-roundtable-form .cta {
  min-height: 60px;
  padding-inline: 22px;
  border-radius: 999px;
}

.research-answer-shell {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(102, 196, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
}

.research-answer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.research-answer-copy {
  display: grid;
  gap: 4px;
  max-width: 70ch;
}

.research-answer-copy h3 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.research-answer-copy h3 span {
  color: #91a6c4;
  font-weight: 600;
}

.research-answer-copy p:last-child {
  margin: 0;
  color: #b1bfd1;
  line-height: 1.55;
}

.research-answer-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.research-split-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.research-split-label {
  color: #8ea5c3;
  font-size: 0.82rem;
  font-weight: 700;
}

.research-split-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.premium-inline-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 216, 122, 0.12);
  background: linear-gradient(180deg, rgba(12, 19, 31, 0.86) 0%, rgba(9, 15, 26, 0.88) 100%);
}

.premium-inline-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.premium-inline-card-head strong {
  color: #f5f9ff;
  font-size: 0.92rem;
}

.premium-inline-price {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 216, 122, 0.12);
  border: 1px solid rgba(255, 216, 122, 0.18);
  color: #ffe8a3;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.premium-inline-copy {
  margin: 0;
  color: #b3c2d6;
  line-height: 1.55;
}

.premium-model-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.premium-model-tab {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(102, 196, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: #9bb0ca;
  font-size: 0.78rem;
  font-weight: 700;
}

.premium-model-tab.is-active {
  border-color: rgba(102, 196, 255, 0.22);
  background: rgba(83, 221, 255, 0.08);
  color: #eef8ff;
}

.opinion-detail-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(102, 196, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.opinion-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.premium-map-shell {
  display: grid;
  gap: 10px;
  padding: 8px 0 0;
  border-radius: 0;
  border: 0;
  background: transparent;
}

.premium-map-copy {
  display: grid;
  gap: 3px;
}

.premium-map-caption {
  margin: 0;
  color: #889dbc;
  font-size: 0.88rem;
  line-height: 1.45;
}

.premium-map-list {
  display: grid;
  gap: 10px;
}

.premium-accordion-group-flat {
  display: grid;
  gap: 8px;
}

.premium-accordion-card {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(102, 196, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.premium-map-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.premium-map-total {
  color: #9eb2cc;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.premium-accordion-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.premium-accordion-titleblock {
  display: grid;
  gap: 2px;
}

.premium-accordion-kicker {
  margin: 0;
  color: #8ea5c3;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.premium-accordion-head h4 {
  margin: 0;
  color: #eef5ff;
  font-size: 0.92rem;
  line-height: 1.3;
}

.premium-accordion-price {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #a8bbd4;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.premium-accordion-body {
  margin: 0;
  color: #afbed2;
  line-height: 1.48;
  font-size: 0.86rem;
}

.premium-accordion-points {
  display: grid;
  gap: 6px;
}

.premium-accordion-points-compact {
  gap: 5px;
}

.premium-accordion-points p {
  margin: 0;
  color: #d8e6f6;
  line-height: 1.45;
  font-size: 0.82rem;
}

.premium-accordion-points-compact p {
  color: #93a8c4;
}

.premium-accordion-footnote {
  color: #7fd9ff;
  font-size: 0.82rem;
  font-weight: 700;
}

.premium-more-details {
  border-radius: 14px;
  border: 1px solid rgba(102, 196, 255, 0.06);
  background: rgba(255, 255, 255, 0.018);
}

.premium-more-details summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  color: #d9e6f5;
  font-size: 0.9rem;
  font-weight: 700;
}

.premium-more-details summary::-webkit-details-marker {
  display: none;
}

.premium-accordion-group-more {
  padding: 0 12px 12px;
}

.premium-accordion-card.is-free .premium-accordion-price {
  background: rgba(84, 197, 255, 0.08);
  color: #c9efff;
}

.premium-accordion-card.is-paid .premium-inline-unlock {
  justify-self: start;
  min-height: 38px;
  padding-inline: 14px;
  border-radius: 999px;
  font-size: 0.84rem;
}

@media (max-width: 980px) {
  .premium-map-head {
    display: grid;
    gap: 6px;
    justify-items: start;
  }
}

@media (max-width: 760px) {
  .app-tab-panel-research .command-panel {
    padding: 14px;
    border-radius: 22px;
  }

  .ai-roundtable-form {
    grid-template-columns: 1fr;
  }

  .ai-roundtable-question-field input,
  .ai-roundtable-form .cta {
    min-height: 56px;
  }

  .research-answer-top,
  .research-stream-head-clean {
    display: grid;
    gap: 12px;
  }

  .research-answer-copy h3 {
    font-size: 1.12rem;
  }

  .research-mini-stats {
    justify-content: flex-start;
  }
}

/* Final minimal polish pass */
body[data-active-tab="research"] .topbar-search,
body[data-active-tab="research"] .live-pill,
body[data-active-tab="research"] .topbar-cta,
body[data-active-tab="feed"] .feed-stage {
  display: none;
}

body .page-shell {
  padding-bottom: 18px;
}

body[data-active-tab="research"] .page-shell {
  gap: 8px;
  padding-bottom: 10px;
}

body[data-active-tab="feed"] .page-shell {
  padding-bottom: 18px;
}

body[data-active-tab="research"] .topbar-main {
  align-items: center;
}

body[data-active-tab="research"] .topbar-actions {
  margin-left: auto;
  gap: 8px;
}

body[data-active-tab="research"] .topbar-subnav {
  margin-top: 2px;
}

body[data-active-tab="research"] .app-tab-panel-research .command-stage {
  margin-top: 6px;
}

body[data-active-tab="research"] .app-tab-panel-research .command-panel {
  max-width: 920px;
  padding: 12px;
  border-radius: 24px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 24px rgba(2, 6, 23, 0.16);
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .command-stage {
  min-height: min(420px, calc(100vh - 240px));
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .command-panel {
  max-width: 920px;
  padding: 22px;
  border-radius: 28px;
}

body[data-active-tab="research"] .research-answer-shell {
  gap: 8px;
}

body[data-active-tab="research"] .research-answer-copy {
  max-width: 62ch;
}

body[data-active-tab="research"] .research-answer-copy h3 {
  font-size: 1.18rem;
}

body[data-active-tab="research"] .research-answer-copy p:last-child {
  font-size: 0.92rem;
}

body[data-active-tab="research"] .research-answer-metrics {
  gap: 6px;
}

body[data-active-tab="research"] .research-split-row {
  padding-top: 2px;
  border-top: 1px solid rgba(102, 196, 255, 0.06);
}

body[data-active-tab="research"] .research-split-label {
  font-size: 0.78rem;
}

body[data-active-tab="research"] .premium-map-shell {
  gap: 8px;
}

body[data-active-tab="research"] .premium-map-head {
  align-items: center;
}

body[data-active-tab="research"] .premium-map-caption {
  font-size: 0.84rem;
}

body[data-active-tab="research"] .premium-map-total {
  font-size: 0.78rem;
}

body[data-active-tab="research"] .premium-accordion-card {
  padding: 11px 13px;
}

body[data-active-tab="research"] .premium-accordion-card.is-free {
  background: rgba(22, 42, 71, 0.22);
  border-color: rgba(102, 196, 255, 0.12);
}

body[data-active-tab="research"] .premium-accordion-card.is-paid {
  background: rgba(255, 255, 255, 0.018);
}

body[data-active-tab="research"] .premium-accordion-price {
  font-size: 0.72rem;
}

body[data-active-tab="research"] .premium-inline-unlock {
  min-height: 32px;
  padding-inline: 11px;
  font-size: 0.78rem;
}

body[data-active-tab="research"] .opinion-detail-card {
  padding: 10px;
  border-radius: 14px;
}

body[data-active-tab="feed"] .feed-layout {
  max-width: 880px;
  margin: 0 auto;
  gap: 10px;
}

body[data-active-tab="feed"] .feed-main,
body[data-active-tab="feed"] .feed-side {
  gap: 10px;
}

body[data-active-tab="feed"] .feed-side {
  position: static;
  max-width: 880px;
  width: 100%;
}

body[data-active-tab="feed"] .toolbar-card,
body[data-active-tab="feed"] .composer-shell {
  padding: 14px 16px;
  border-radius: 18px;
}

body[data-active-tab="feed"] .thread-section .section-bar {
  margin-bottom: 10px;
}

body[data-active-tab="feed"] .feed-insert {
  margin: 0;
}

body[data-active-tab="feed"] .feed-proof-card,
body[data-active-tab="feed"] .feed-radar-card,
body[data-active-tab="feed"] .feed-signal-card {
  min-height: 116px;
}

body[data-active-tab="feed"] .feed-rank-row {
  min-height: 68px;
}

@media (max-width: 760px) {
  body[data-active-tab="research"] .app-tab-panel-research.is-idle .command-stage {
    min-height: min(340px, calc(100vh - 190px));
  }

  body[data-active-tab="research"] .app-tab-panel-research.is-idle .command-panel {
    padding: 18px;
    border-radius: 24px;
  }

  body[data-active-tab="research"] .research-answer-copy h3 {
    font-size: 1.06rem;
  }

  body[data-active-tab="research"] .topbar-main {
    align-items: flex-start;
  }

  body[data-active-tab="research"] .topbar-actions {
    margin-left: 0;
  }
}

/* Main screen redesign pass */
body[data-active-tab="research"] {
  background:
    radial-gradient(circle at 12% 0%, rgba(64, 143, 255, 0.16), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(126, 90, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #06101f 0%, #081322 52%, #0a1525 100%);
  color: #edf4ff;
}

body[data-active-tab="research"] .shell {
  width: min(980px, calc(100% - 28px));
}

body[data-active-tab="research"] .ambient-a,
body[data-active-tab="research"] .ambient-b {
  opacity: 0.22;
}

body[data-active-tab="research"] .topbar {
  gap: 12px;
  padding: 7px 0 4px;
}

body[data-active-tab="research"] .topbar::before {
  inset: 2px -10px 0;
  background: rgba(7, 15, 27, 0.82);
  border: 1px solid rgba(126, 156, 192, 0.14);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.26);
}

body[data-active-tab="research"] .brand-lockup {
  gap: 12px;
}

body[data-active-tab="research"] .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4b8fff 0%, #2867f0 100%);
  color: #eef5ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

body[data-active-tab="research"] .brand-title {
  font-family: "Avenir Next", "Inter", "Segoe UI", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #edf4ff;
}

body[data-active-tab="research"] .language-picker {
  min-height: 38px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(126, 156, 192, 0.14);
}

body[data-active-tab="research"] .language-picker,
body[data-active-tab="research"] .language-picker select,
body[data-active-tab="research"] #language-label {
  color: #c8d7eb;
}

body[data-active-tab="research"] .language-picker select {
  min-width: 116px;
  background: rgba(6, 14, 25, 0.9);
  border-color: rgba(126, 156, 192, 0.14);
}

body[data-active-tab="research"] .topbar-subnav {
  width: fit-content;
  margin: 0 auto 0;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(126, 156, 192, 0.1);
}

body[data-active-tab="research"] .subnav-chip {
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  color: #90a5c0;
  background: transparent;
}

body[data-active-tab="research"] .subnav-chip.is-active {
  background: rgba(92, 158, 255, 0.14);
  color: #edf4ff;
  box-shadow: inset 0 0 0 1px rgba(102, 196, 255, 0.14);
}

body[data-active-tab="research"] .page-shell {
  gap: 12px;
  padding-bottom: 14px;
}

body[data-active-tab="research"] .app-tab-panel-research {
  gap: 12px;
}

body[data-active-tab="research"] .app-tab-panel-research .research-stage,
body[data-active-tab="research"] .app-tab-panel-research.is-idle .research-stage {
  display: grid;
  max-width: 860px;
  width: 100%;
  margin: 12px auto 0;
}

body[data-active-tab="research"] .stage-header-research {
  padding: 24px 26px 20px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% -10%, rgba(83, 175, 255, 0.12), transparent 54%),
    linear-gradient(180deg, rgba(8, 18, 33, 0.95) 0%, rgba(7, 14, 26, 0.92) 100%);
  border: 1px solid rgba(102, 196, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 20px 48px rgba(2, 6, 23, 0.28);
}

body[data-active-tab="research"] .stage-header-copy {
  justify-items: center;
  text-align: center;
  gap: 6px;
  max-width: 560px;
  margin: 0 auto;
}

body[data-active-tab="research"] .stage-header-copy .section-kicker {
  color: #88a0bc;
  letter-spacing: 0.14em;
}

body[data-active-tab="research"] .stage-header-copy h2 {
  color: #f5f9ff;
  font-size: clamp(1.8rem, 2.8vw, 2.45rem);
  line-height: 1.03;
  letter-spacing: -0.06em;
  max-width: 13ch;
  text-wrap: balance;
}

body[data-active-tab="research"] .stage-header-copy .section-description {
  color: #97acc6;
  max-width: 44ch;
  font-size: 0.86rem;
  line-height: 1.45;
}

body[data-active-tab="research"] .ai-roundtable-form-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 6px;
  border-radius: 24px;
  background: rgba(3, 10, 20, 0.74);
  border: 1px solid rgba(126, 156, 192, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 24px rgba(2, 6, 23, 0.22);
}

body[data-active-tab="research"] .ai-roundtable-form-hero .field {
  gap: 0;
}

body[data-active-tab="research"] .ai-roundtable-form-hero .ai-roundtable-question-field input {
  min-height: 58px;
  padding: 0 18px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  box-shadow: none;
  color: #f5f9ff;
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
}

body[data-active-tab="research"] .ai-roundtable-form-hero .ai-roundtable-question-field input::placeholder {
  color: #7488a3;
}

body[data-active-tab="research"] .ai-roundtable-form-hero .cta {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #4c8fff 0%, #2a6df0 100%);
  box-shadow: 0 8px 16px rgba(29, 89, 219, 0.18);
}

body[data-active-tab="research"] .research-hero-strip {
  display: none;
}

body[data-active-tab="research"] .research-hero-card {
  display: grid;
  gap: 8px;
  min-height: 84px;
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid rgba(102, 196, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

body[data-active-tab="research"] .research-hero-label {
  color: #7e96b4;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-active-tab="research"] .research-hero-value {
  color: #edf4ff;
  font-size: 0.98rem;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

body[data-active-tab="research"] .research-hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body[data-active-tab="research"] .research-hero-chip {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(126, 156, 192, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #d7e6f9;
  font-size: 0.84rem;
  font-weight: 700;
}

body[data-active-tab="research"] .research-hero-chip:hover {
  background: rgba(76, 143, 255, 0.12);
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .command-stage {
  display: none;
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .research-stage {
  min-height: calc(100vh - 120px);
  align-items: center;
}

body[data-active-tab="research"] .app-tab-panel-research:not(.is-idle) .research-stage {
  margin-top: 8px;
}

body[data-active-tab="research"] .app-tab-panel-research:not(.is-idle) .stage-header-research {
  padding: 10px 12px;
  border-radius: 18px;
}

body[data-active-tab="research"] .app-tab-panel-research:not(.is-idle) .stage-header-copy {
  display: none;
}

body[data-active-tab="research"] .app-tab-panel-research:not(.is-idle) .stage-header-copy h2 {
  max-width: 14ch;
  font-size: 1.28rem;
}

body[data-active-tab="research"] .app-tab-panel-research:not(.is-idle) .stage-header-copy .section-description {
  max-width: 62ch;
  font-size: 0.9rem;
}

body[data-active-tab="research"] .app-tab-panel-research:not(.is-idle) .ai-roundtable-form-hero {
  margin-top: 0;
  max-width: none;
}

body[data-active-tab="research"] .app-tab-panel-research:not(.is-idle) .research-hero-strip {
  display: none;
}

body[data-active-tab="research"] .command-stage {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
}

body[data-active-tab="research"] .research-results-shell {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid rgba(102, 196, 255, 0.08);
  background: linear-gradient(180deg, rgba(9, 17, 30, 0.92) 0%, rgba(7, 14, 25, 0.88) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 44px rgba(2, 6, 23, 0.2);
}

body[data-active-tab="research"] .command-panel {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body[data-active-tab="research"] .research-answer-shell,
body[data-active-tab="research"] .premium-map-shell {
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body[data-active-tab="research"] .research-answer-shell {
  gap: 8px;
  padding: 2px 4px 10px;
}

body[data-active-tab="research"] .research-answer-top {
  align-items: flex-start;
}

body[data-active-tab="research"] .research-answer-copy {
  gap: 6px;
  max-width: 64ch;
}

body[data-active-tab="research"] .research-answer-copy h3 {
  font-size: 1.08rem;
  line-height: 1.08;
}

body[data-active-tab="research"] .research-answer-copy p:last-child {
  color: #b6c4d7;
  font-size: 0.88rem;
  line-height: 1.45;
}

body[data-active-tab="research"] .research-answer-metrics {
  gap: 6px;
}

body[data-active-tab="research"] .research-answer-metrics .metric-pill {
  min-height: 28px;
  padding: 0 10px;
  font-size: 0.76rem;
}

body[data-active-tab="research"] .research-split-row {
  align-items: center;
  padding-top: 6px;
  border-top: 1px solid rgba(102, 196, 255, 0.08);
}

body[data-active-tab="research"] .research-split-pills {
  gap: 6px;
}

body[data-active-tab="research"] .research-split-pills .status-chip {
  min-height: 28px;
  padding-inline: 10px;
  font-size: 0.76rem;
}

body[data-active-tab="research"] .premium-map-shell {
  gap: 10px;
  margin-top: 0;
  padding: 12px 4px 2px;
  border-top: 1px solid rgba(102, 196, 255, 0.08);
}

body[data-active-tab="research"] .premium-map-head {
  align-items: flex-start;
}

body[data-active-tab="research"] .premium-map-caption {
  color: #8ea5c3;
  font-size: 0.82rem;
}

body[data-active-tab="research"] .premium-map-total {
  color: #c2d0e4;
  font-size: 0.78rem;
}

body[data-active-tab="research"] .premium-accordion-group-flat {
  gap: 6px;
}

body[data-active-tab="research"] .premium-accordion-card {
  gap: 7px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
  border-color: rgba(102, 196, 255, 0.06);
}

body[data-active-tab="research"] .premium-accordion-card.is-free {
  background: rgba(29, 74, 120, 0.12);
  border-color: rgba(102, 196, 255, 0.09);
}

body[data-active-tab="research"] .premium-accordion-head {
  align-items: flex-start;
}

body[data-active-tab="research"] .premium-accordion-titleblock {
  flex: 1 1 auto;
  min-width: 0;
  gap: 4px;
}

body[data-active-tab="research"] .premium-accordion-head h4 {
  font-size: 0.88rem;
  line-height: 1.3;
}

body[data-active-tab="research"] .premium-accordion-side {
  display: grid;
  justify-items: end;
  gap: 8px;
  flex: 0 0 auto;
}

body[data-active-tab="research"] .premium-accordion-body {
  color: #aebfd5;
  font-size: 0.8rem;
  line-height: 1.36;
}

body[data-active-tab="research"] .premium-accordion-points-compact p {
  color: #91a8c5;
  font-size: 0.76rem;
}

body[data-active-tab="research"] .premium-inline-unlock {
  min-height: 32px;
  padding-inline: 10px;
  font-size: 0.74rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #4c8fff 0%, #2a6df0 100%);
  box-shadow: none;
}

body[data-active-tab="research"] .premium-model-tabs {
  margin-top: 2px;
}

body[data-active-tab="research"] .opinion-detail-card {
  padding: 14px;
  border-radius: 18px;
}

body[data-active-tab="research"] .bottom-nav {
  background: rgba(7, 15, 27, 0.88);
  border-top: 1px solid rgba(126, 156, 192, 0.12);
}

@media (max-width: 980px) {
  body[data-active-tab="research"] .research-stage,
  body[data-active-tab="research"] .command-stage {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  body[data-active-tab="research"] .topbar {
    padding: 10px 0 8px;
  }

  body[data-active-tab="research"] .topbar-main {
    align-items: center;
  }

  body[data-active-tab="research"] .topbar-subnav {
    margin: 0;
  }

  body[data-active-tab="research"] .research-stage {
    margin-top: 6px;
  }

  body[data-active-tab="research"] .stage-header-research,
  body[data-active-tab="research"] .app-tab-panel-research:not(.is-idle) .stage-header-research {
    padding: 18px 16px 16px;
    border-radius: 24px;
  }

  body[data-active-tab="research"] .stage-header-copy,
  body[data-active-tab="research"] .app-tab-panel-research:not(.is-idle) .stage-header-copy {
    justify-items: start;
    text-align: left;
  }

  body[data-active-tab="research"] .stage-header-copy h2,
  body[data-active-tab="research"] .app-tab-panel-research:not(.is-idle) .stage-header-copy h2 {
    max-width: 10ch;
    font-size: 1.52rem;
  }

  body[data-active-tab="research"] .stage-header-copy .section-description {
    font-size: 0.92rem;
  }

  body[data-active-tab="research"] .ai-roundtable-form-hero {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 16px;
    padding: 8px;
    border-radius: 22px;
  }

  body[data-active-tab="research"] .ai-roundtable-form-hero .ai-roundtable-question-field input {
    min-height: 58px;
    padding: 0 16px;
    border-radius: 18px;
    font-size: 1rem;
  }

  body[data-active-tab="research"] .ai-roundtable-form-hero .cta {
    min-height: 50px;
    width: 100%;
    border-radius: 18px;
  }

  body[data-active-tab="research"] .app-tab-panel-research.is-idle .research-stage {
    min-height: calc(100vh - 120px);
  }

  body[data-active-tab="research"] .research-answer-shell,
  body[data-active-tab="research"] .premium-map-shell {
    padding: 16px;
    border-radius: 20px;
  }

  body[data-active-tab="research"] .research-answer-copy h3 {
    font-size: 1.12rem;
  }

  body[data-active-tab="research"] .premium-accordion-head {
    display: grid;
    gap: 10px;
  }

  body[data-active-tab="research"] .premium-accordion-side {
    justify-items: start;
  }
}

/* Research tab redesign pass */
body[data-active-tab="research"] {
  background:
    radial-gradient(circle at 18% 0%, rgba(66, 132, 255, 0.16), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(99, 230, 190, 0.1), transparent 24%),
    linear-gradient(180deg, #07101d 0%, #091321 38%, #0a1422 100%);
}

body[data-active-tab="research"] .ambient {
  opacity: 0.22;
}

body[data-active-tab="research"] .shell {
  width: min(1120px, calc(100% - 28px));
}

body[data-active-tab="research"] .topbar {
  display: grid;
  gap: 8px;
  padding: 14px 0 6px;
}

body[data-active-tab="research"] .topbar::before {
  inset: 0;
  border-radius: 20px;
  background: rgba(8, 16, 28, 0.66);
  border-color: rgba(130, 167, 214, 0.1);
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.18);
}

body[data-active-tab="research"] .topbar-main {
  grid-template-columns: auto 1fr auto;
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
}

body[data-active-tab="research"] .brand-lockup {
  gap: 10px;
}

body[data-active-tab="research"] .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #132746 0%, #0a1b31 100%);
  color: #f2f7ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 6px 14px rgba(2, 6, 23, 0.16);
}

body[data-active-tab="research"] .brand-title {
  color: #eef5ff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
}

body[data-active-tab="research"] .topbar-actions {
  gap: 0;
}

body[data-active-tab="research"] .language-picker {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(130, 167, 214, 0.12);
  color: #9ab0cb;
}

body[data-active-tab="research"] .language-picker select {
  min-width: 92px;
  color: #d7e5f7;
}

body[data-active-tab="research"] .topbar-subnav {
  justify-self: center;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(130, 167, 214, 0.08);
}

body[data-active-tab="research"] .subnav-chip {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: #8ea3bd;
  font-size: 0.84rem;
  font-weight: 600;
}

body[data-active-tab="research"] .subnav-chip.is-active {
  background: rgba(92, 158, 255, 0.16);
  color: #f4f8ff;
  box-shadow: none;
}

body[data-active-tab="research"] .page-shell {
  gap: 10px;
  padding-top: 8px;
  padding-bottom: 12px;
}

body[data-active-tab="research"] .app-tab-panel-research {
  gap: 10px;
}

body[data-active-tab="research"] .app-tab-panel-research .research-stage,
body[data-active-tab="research"] .app-tab-panel-research.is-idle .research-stage,
body[data-active-tab="research"] .command-stage {
  max-width: 760px;
}

body[data-active-tab="research"] .stage-header-research {
  padding: 28px 20px 18px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% -10%, rgba(77, 152, 255, 0.11), transparent 46%),
    linear-gradient(180deg, rgba(7, 15, 27, 0.84) 0%, rgba(7, 14, 24, 0.74) 100%);
  border: 1px solid rgba(130, 167, 214, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 24px 52px rgba(2, 6, 23, 0.22);
}

body[data-active-tab="research"] .stage-header-copy {
  gap: 8px;
  max-width: 540px;
}

body[data-active-tab="research"] .stage-header-copy .section-kicker {
  color: #6f84a0;
  font-size: 0.72rem;
}

body[data-active-tab="research"] .stage-header-copy h2 {
  max-width: 14ch;
  color: #f5f9ff;
  font-size: clamp(1.82rem, 3.2vw, 2.55rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin: 0;
  white-space: nowrap;
}

body[data-active-tab="research"] .stage-header-copy .section-description {
  max-width: 34ch;
  color: #8fa2bb;
  font-size: 0.92rem;
  line-height: 1.48;
}

body[data-active-tab="research"] .ai-roundtable-form-hero {
  max-width: 760px;
  margin: 18px auto 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(6, 12, 22, 0.76);
  border: 1px solid rgba(130, 167, 214, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 36px rgba(2, 6, 23, 0.2);
}

body[data-active-tab="research"] .ai-roundtable-form-hero .ai-roundtable-question-field input {
  min-height: 60px;
  padding: 0 22px;
  border-radius: 999px;
  background: transparent;
  color: #eef5ff;
  font-size: 1.02rem;
}

body[data-active-tab="research"] .ai-roundtable-form-hero .ai-roundtable-question-field input::placeholder {
  color: #7388a4;
}

body[data-active-tab="research"] .ai-roundtable-form-hero .cta {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  background: #f6f8fc;
  color: #0b1625;
  font-weight: 700;
  box-shadow: none;
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .research-stage {
  min-height: auto;
  align-items: start;
  margin-top: 48px;
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-research {
  padding-top: 38px;
  padding-bottom: 24px;
}

body[data-active-tab="research"] .app-tab-panel-research:not(.is-idle) .research-stage {
  margin-top: 2px;
}

body[data-active-tab="research"] .app-tab-panel-research:not(.is-idle) .stage-header-research {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body[data-active-tab="research"] .app-tab-panel-research:not(.is-idle) .ai-roundtable-form-hero {
  margin-top: 0;
  padding: 7px;
  background: rgba(8, 16, 28, 0.86);
}

body[data-active-tab="research"] .research-results-shell {
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body[data-active-tab="research"] .research-query-shell,
body[data-active-tab="research"] .research-answer-shell,
body[data-active-tab="research"] .premium-map-shell {
  border-radius: 22px;
  border: 1px solid rgba(130, 167, 214, 0.1);
  background: linear-gradient(180deg, rgba(8, 16, 28, 0.9) 0%, rgba(8, 15, 25, 0.82) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 40px rgba(2, 6, 23, 0.18);
}

body[data-active-tab="research"] .research-query-shell {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
}

body[data-active-tab="research"] .research-query-label {
  color: #7890ad;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-active-tab="research"] .research-query-text {
  margin: 0;
  color: #eef5ff;
  font-size: 1rem;
  line-height: 1.45;
}

body[data-active-tab="research"] .research-answer-shell {
  gap: 12px;
  padding: 16px;
}

body[data-active-tab="research"] .research-answer-top {
  align-items: center;
}

body[data-active-tab="research"] .research-answer-copy {
  gap: 7px;
  max-width: none;
}

body[data-active-tab="research"] .research-answer-copy .section-kicker {
  color: #7e94b0;
}

body[data-active-tab="research"] .research-answer-copy h3 {
  font-size: 1.05rem;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

body[data-active-tab="research"] .research-answer-copy h3 span {
  color: #8ca0bb;
}

body[data-active-tab="research"] .research-answer-copy p:last-child,
body[data-active-tab="research"] .research-answer-meta {
  margin: 0;
  color: #b3c1d2;
  font-size: 0.9rem;
  line-height: 1.52;
}

body[data-active-tab="research"] .research-answer-meta {
  padding-top: 2px;
}

body[data-active-tab="research"] .research-split-row {
  padding-top: 12px;
  border-top: 1px solid rgba(130, 167, 214, 0.08);
}

body[data-active-tab="research"] .research-split-label {
  color: #7f95b0;
  font-size: 0.78rem;
}

body[data-active-tab="research"] .research-split-pills .status-chip {
  min-height: 30px;
  padding-inline: 11px;
  font-size: 0.78rem;
}

body[data-active-tab="research"] .premium-map-shell {
  gap: 12px;
  padding: 16px;
}

body[data-active-tab="research"] .premium-map-caption {
  max-width: 36ch;
  color: #8ea2bb;
  font-size: 0.86rem;
  line-height: 1.45;
}

body[data-active-tab="research"] .premium-map-total {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #d7e3f4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body[data-active-tab="research"] .premium-accordion-group-flat {
  gap: 8px;
}

body[data-active-tab="research"] .premium-accordion-card {
  padding: 14px 14px 13px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(130, 167, 214, 0.08);
}

body[data-active-tab="research"] .premium-accordion-card.is-free {
  background: rgba(255, 255, 255, 0.028);
  border-color: rgba(130, 167, 214, 0.09);
}

body[data-active-tab="research"] .premium-accordion-card.is-paid {
  background: rgba(10, 17, 30, 0.84);
}

body[data-active-tab="research"] .premium-accordion-head {
  gap: 12px;
}

body[data-active-tab="research"] .premium-accordion-titleblock {
  gap: 5px;
}

body[data-active-tab="research"] .premium-accordion-head h4 {
  color: #eef5ff;
  font-size: 0.96rem;
  line-height: 1.3;
}

body[data-active-tab="research"] .premium-accordion-body {
  color: #9fb1c7;
  font-size: 0.82rem;
  line-height: 1.45;
}

body[data-active-tab="research"] .premium-accordion-price {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #d9e5f5;
  font-size: 0.76rem;
}

body[data-active-tab="research"] .premium-inline-unlock {
  min-height: 30px;
  padding-inline: 11px;
  border-radius: 999px;
  background: #eef4ff;
  color: #10203a;
  font-size: 0.75rem;
  font-weight: 700;
}

body[data-active-tab="research"] .premium-accordion-points-compact p {
  color: #8ea5c3;
  font-size: 0.76rem;
}

body[data-active-tab="research"] .opinion-detail-card {
  padding: 13px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.024);
  border: 1px solid rgba(130, 167, 214, 0.08);
}

body[data-active-tab="research"] .opinion-card-top {
  margin-bottom: 10px;
}

body[data-active-tab="research"] .ai-opinion-summary,
body[data-active-tab="research"] .ai-opinion-points p {
  color: #b3c1d2;
}

@media (max-width: 760px) {
  body[data-active-tab="research"] .topbar-main {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  body[data-active-tab="research"] .topbar-subnav {
    justify-self: start;
    width: fit-content;
  }

  body[data-active-tab="research"] .language-picker span {
    display: none;
  }

  body[data-active-tab="research"] .shell {
    width: min(100%, calc(100% - 16px));
  }

  body[data-active-tab="research"] .stage-header-research {
    padding: 26px 14px 16px;
  }

  body[data-active-tab="research"] .stage-header-copy {
    justify-items: center;
    text-align: center;
  }

  body[data-active-tab="research"] .stage-header-copy h2 {
    max-width: 8ch;
    font-size: 1.86rem;
  }

  body[data-active-tab="research"] .stage-header-copy .section-description {
    max-width: 28ch;
    font-size: 0.88rem;
  }

  body[data-active-tab="research"] .ai-roundtable-form-hero {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  body[data-active-tab="research"] .ai-roundtable-form-hero .ai-roundtable-question-field input {
    min-height: 56px;
  }

  body[data-active-tab="research"] .ai-roundtable-form-hero .cta {
    width: 100%;
    min-height: 48px;
  }

  body[data-active-tab="research"] .research-query-shell,
  body[data-active-tab="research"] .research-answer-shell,
  body[data-active-tab="research"] .premium-map-shell {
    border-radius: 18px;
  }

  body[data-active-tab="research"] .app-tab-panel-research.is-idle .research-stage {
    margin-top: 22px;
  }

  body[data-active-tab="research"] .premium-accordion-head {
    display: grid;
  }

  body[data-active-tab="research"] .premium-accordion-side {
    justify-items: start;
  }
}

/* Research redesign v2 */
body[data-active-tab="research"] .topbar {
  gap: 6px;
  padding: 12px 0 4px;
}

body[data-active-tab="research"] .topbar::before {
  border-radius: 18px;
  background: rgba(7, 14, 25, 0.58);
  border-color: rgba(122, 154, 194, 0.08);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.14);
}

body[data-active-tab="research"] .topbar-main {
  padding: 0 10px;
}

body[data-active-tab="research"] .topbar-subnav {
  padding: 3px;
  gap: 3px;
}

body[data-active-tab="research"] .subnav-chip {
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.8rem;
}

body[data-active-tab="research"] .page-shell {
  gap: 8px;
  padding-top: 4px;
}

body[data-active-tab="research"] .app-tab-panel-research .research-stage,
body[data-active-tab="research"] .app-tab-panel-research.is-idle .research-stage,
body[data-active-tab="research"] .command-stage {
  max-width: 720px;
}

body[data-active-tab="research"] .stage-header-research {
  padding: 16px 0 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body[data-active-tab="research"] .stage-header-copy {
  gap: 7px;
  max-width: 520px;
}

body[data-active-tab="research"] .stage-header-copy .section-kicker {
  color: #7086a3;
}

body[data-active-tab="research"] .stage-header-copy h2 {
  max-width: 11ch;
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

body[data-active-tab="research"] .stage-header-copy .section-description {
  max-width: 30ch;
  color: #90a3bc;
  font-size: 0.86rem;
}

body[data-active-tab="research"] .ai-roundtable-form-hero {
  margin-top: 16px;
  padding: 6px;
  border-radius: 20px;
  background: rgba(7, 14, 24, 0.78);
  border-color: rgba(122, 154, 194, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 16px 34px rgba(2, 6, 23, 0.18);
}

body[data-active-tab="research"] .ai-roundtable-form-hero .ai-roundtable-question-field input {
  min-height: 58px;
  padding: 0 20px;
  font-size: 0.98rem;
}

body[data-active-tab="research"] .ai-roundtable-form-hero .cta {
  min-height: 44px;
  padding: 0 15px;
  font-size: 0.85rem;
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .research-stage {
  margin-top: 34px;
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-research {
  padding-top: 28px;
}

body[data-active-tab="research"] .app-tab-panel-research:not(.is-idle) .stage-header-research {
  padding-top: 0;
}

body[data-active-tab="research"] .app-tab-panel-research:not(.is-idle) .ai-roundtable-form-hero {
  border-radius: 18px;
}

body[data-active-tab="research"] .command-stage {
  margin-top: 6px;
}

body[data-active-tab="research"] .research-results-shell {
  gap: 0;
  padding: 18px 18px 8px;
  border-radius: 24px;
  border: 1px solid rgba(122, 154, 194, 0.1);
  background: linear-gradient(180deg, rgba(8, 15, 26, 0.92) 0%, rgba(7, 13, 23, 0.87) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 42px rgba(2, 6, 23, 0.18);
}

body[data-active-tab="research"] .research-query-shell,
body[data-active-tab="research"] .research-answer-shell,
body[data-active-tab="research"] .premium-map-shell {
  padding-left: 0;
  padding-right: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-active-tab="research"] .research-query-shell {
  padding-top: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(122, 154, 194, 0.08);
}

body[data-active-tab="research"] .research-query-text {
  font-size: 0.94rem;
  line-height: 1.42;
}

body[data-active-tab="research"] .research-answer-shell {
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(122, 154, 194, 0.08);
}

body[data-active-tab="research"] .research-answer-top {
  align-items: flex-start;
}

body[data-active-tab="research"] .research-answer-copy h3 {
  font-size: 1rem;
}

body[data-active-tab="research"] .research-answer-copy p:last-child,
body[data-active-tab="research"] .research-answer-meta {
  font-size: 0.86rem;
  line-height: 1.48;
}

body[data-active-tab="research"] .research-split-row {
  padding-top: 10px;
}

body[data-active-tab="research"] .research-split-pills {
  gap: 5px;
}

body[data-active-tab="research"] .research-split-pills .status-chip {
  min-height: 28px;
  font-size: 0.74rem;
}

body[data-active-tab="research"] .premium-map-shell {
  padding-top: 14px;
  padding-bottom: 0;
}

body[data-active-tab="research"] .premium-map-head {
  align-items: center;
  margin-bottom: 4px;
}

body[data-active-tab="research"] .premium-map-caption {
  max-width: 32ch;
  font-size: 0.82rem;
}

body[data-active-tab="research"] .premium-map-total {
  font-size: 0.74rem;
}

body[data-active-tab="research"] .premium-accordion-group-flat {
  gap: 0;
}

body[data-active-tab="research"] .premium-accordion-card {
  padding: 14px 0;
  border: 0;
  border-top: 1px solid rgba(122, 154, 194, 0.08);
  border-radius: 0;
  background: transparent;
}

body[data-active-tab="research"] .premium-accordion-card:first-child {
  border-top: 0;
}

body[data-active-tab="research"] .premium-accordion-card.is-free,
body[data-active-tab="research"] .premium-accordion-card.is-paid {
  background: transparent;
}

body[data-active-tab="research"] .premium-accordion-head {
  align-items: center;
}

body[data-active-tab="research"] .premium-accordion-titleblock {
  gap: 4px;
}

body[data-active-tab="research"] .premium-accordion-head h4 {
  font-size: 0.92rem;
}

body[data-active-tab="research"] .premium-accordion-body {
  font-size: 0.79rem;
  line-height: 1.4;
}

body[data-active-tab="research"] .premium-accordion-price {
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.73rem;
}

body[data-active-tab="research"] .premium-inline-unlock {
  min-height: 28px;
  padding-inline: 10px;
  font-size: 0.72rem;
}

body[data-active-tab="research"] .premium-accordion-points {
  margin-top: 8px;
}

body[data-active-tab="research"] .premium-accordion-points-compact p {
  font-size: 0.74rem;
  line-height: 1.42;
}

body[data-active-tab="research"] .opinion-detail-card {
  margin-top: 10px;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid rgba(122, 154, 194, 0.08);
  border-radius: 0;
  background: transparent;
}

@media (max-width: 760px) {
  body[data-active-tab="research"] .stage-header-copy h2 {
    max-width: 12ch;
    font-size: 1.62rem;
    white-space: normal;
  }

  body[data-active-tab="research"] .stage-header-copy .section-description {
    max-width: 26ch;
    font-size: 0.82rem;
  }

  body[data-active-tab="research"] .app-tab-panel-research.is-idle .research-stage {
    margin-top: 18px;
  }

  body[data-active-tab="research"] .research-results-shell {
    padding: 14px 14px 4px;
    border-radius: 20px;
  }

  body[data-active-tab="research"] .premium-map-head {
    align-items: flex-start;
  }
}

/* Final research polish */
body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-research {
  background: linear-gradient(135deg, rgba(255, 251, 244, 0.98) 0%, rgba(246, 240, 231, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 24px 56px rgba(2, 6, 23, 0.18);
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-copy {
  justify-items: start;
  text-align: left;
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-copy .section-kicker {
  color: #7c6d5d;
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-copy h2 {
  max-width: 12ch;
  color: #1e1813;
  white-space: normal;
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-copy .section-description {
  color: #675c51;
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .ai-roundtable-form-hero,
body[data-active-tab="research"] .app-tab-panel-research:not(.is-idle) .ai-roundtable-form-hero {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(32, 26, 19, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.54),
    0 12px 28px rgba(2, 6, 23, 0.12);
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .ai-roundtable-form-hero .ai-roundtable-question-field input,
body[data-active-tab="research"] .app-tab-panel-research:not(.is-idle) .ai-roundtable-form-hero .ai-roundtable-question-field input {
  color: #1b1713;
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .ai-roundtable-form-hero .ai-roundtable-question-field input::placeholder,
body[data-active-tab="research"] .app-tab-panel-research:not(.is-idle) .ai-roundtable-form-hero .ai-roundtable-question-field input::placeholder {
  color: #8d8174;
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .ai-roundtable-form-hero .cta,
body[data-active-tab="research"] .app-tab-panel-research:not(.is-idle) .ai-roundtable-form-hero .cta {
  background: #111a28;
  color: #f7f9fc;
}

body[data-active-tab="research"] .research-results-shell {
  background: linear-gradient(180deg, rgba(255, 251, 244, 0.98) 0%, rgba(246, 240, 231, 0.95) 100%);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 28px 60px rgba(2, 6, 23, 0.18);
}

body[data-active-tab="research"] .research-query-shell,
body[data-active-tab="research"] .research-answer-shell {
  border-bottom-color: rgba(32, 26, 19, 0.08);
}

body[data-active-tab="research"] .research-query-label,
body[data-active-tab="research"] .research-split-label,
body[data-active-tab="research"] .premium-map-caption,
body[data-active-tab="research"] .research-answer-copy .section-kicker {
  color: #7a6f62;
}

body[data-active-tab="research"] .research-query-text,
body[data-active-tab="research"] .research-answer-copy h3,
body[data-active-tab="research"] .premium-accordion-head h4 {
  color: #1d1711;
}

body[data-active-tab="research"] .research-answer-copy h3 span,
body[data-active-tab="research"] .research-answer-copy p:last-child,
body[data-active-tab="research"] .research-answer-meta,
body[data-active-tab="research"] .premium-accordion-body,
body[data-active-tab="research"] .premium-accordion-points-compact p,
body[data-active-tab="research"] .ai-opinion-summary,
body[data-active-tab="research"] .ai-opinion-points p {
  color: #64594e;
}

body[data-active-tab="research"] .premium-map-total,
body[data-active-tab="research"] .premium-accordion-price {
  background: rgba(17, 26, 40, 0.06);
  color: #2d3540;
}

body[data-active-tab="research"] .premium-inline-unlock {
  background: #111a28;
  color: #f7f9fc;
}

body[data-active-tab="research"] .premium-more-shell {
  margin-top: 4px;
  border-top: 1px solid rgba(32, 26, 19, 0.08);
}

body[data-active-tab="research"] .premium-more-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 10px;
  cursor: pointer;
  color: #2b241d;
  font-size: 0.86rem;
  font-weight: 700;
}

body[data-active-tab="research"] .premium-more-summary::-webkit-details-marker {
  display: none;
}

body[data-active-tab="research"] .premium-more-count {
  color: #7b7063;
  font-size: 0.76rem;
  font-weight: 600;
}

body[data-active-tab="research"] .premium-more-list {
  display: grid;
}

body[data-active-tab="research"] .meta-chip,
body[data-active-tab="research"] .status-chip {
  box-shadow: none;
}

body[data-active-tab="research"] .meta-chip.tone-positive,
body[data-active-tab="research"] .status-chip.tone-positive {
  background: rgba(38, 138, 112, 0.12);
  border-color: rgba(38, 138, 112, 0.2);
  color: #216a58;
}

body[data-active-tab="research"] .meta-chip.tone-watch,
body[data-active-tab="research"] .status-chip.tone-watch {
  background: rgba(185, 138, 34, 0.12);
  border-color: rgba(185, 138, 34, 0.18);
  color: #8b6720;
}

body[data-active-tab="research"] .meta-chip.tone-negative,
body[data-active-tab="research"] .status-chip.tone-negative {
  background: rgba(174, 69, 88, 0.12);
  border-color: rgba(174, 69, 88, 0.18);
  color: #8a3948;
}

body[data-active-tab="research"] .status-chip::before {
  box-shadow: none;
}

body[data-active-tab="research"] .research-results-shell {
  --research-label-size: 0.72rem;
  --research-meta-size: 0.82rem;
  --research-body-size: 0.93rem;
  --research-title-size: 1.08rem;
  --research-line-height: 1.55;
}

body[data-active-tab="research"] .research-query-shell {
  padding-bottom: 16px;
}

body[data-active-tab="research"] .research-query-label,
body[data-active-tab="research"] .research-answer-copy .section-kicker,
body[data-active-tab="research"] .research-split-label,
body[data-active-tab="research"] .premium-map-caption {
  font-size: var(--research-label-size);
  line-height: 1.35;
  letter-spacing: 0.03em;
}

body[data-active-tab="research"] .research-query-text {
  font-size: var(--research-body-size);
  line-height: var(--research-line-height);
}

body[data-active-tab="research"] .research-answer-shell {
  padding-top: 16px;
  padding-bottom: 16px;
}

body[data-active-tab="research"] .research-answer-copy {
  gap: 8px;
}

body[data-active-tab="research"] .research-answer-copy h3 {
  font-size: var(--research-title-size);
  line-height: 1.16;
}

body[data-active-tab="research"] .research-answer-copy p:last-child,
body[data-active-tab="research"] .research-answer-meta {
  font-size: var(--research-body-size);
  line-height: var(--research-line-height);
}

body[data-active-tab="research"] .research-split-row {
  padding-top: 12px;
  gap: 10px;
}

body[data-active-tab="research"] .research-split-pills .status-chip {
  min-height: 30px;
  padding-inline: 12px;
}

body[data-active-tab="research"] .premium-map-shell {
  padding-top: 16px;
}

body[data-active-tab="research"] .premium-map-head {
  margin-bottom: 8px;
}

body[data-active-tab="research"] .premium-map-total {
  min-height: 30px;
  padding-inline: 12px;
  font-size: var(--research-meta-size);
}

body[data-active-tab="research"] .premium-accordion-card {
  padding-top: 16px;
  padding-bottom: 16px;
}

body[data-active-tab="research"] .premium-accordion-head {
  gap: 14px;
}

body[data-active-tab="research"] .premium-accordion-head h4 {
  font-size: 0.98rem;
  line-height: 1.32;
}

body[data-active-tab="research"] .premium-accordion-body {
  font-size: var(--research-meta-size);
  line-height: 1.5;
}

body[data-active-tab="research"] .premium-accordion-price {
  min-height: 30px;
  padding-inline: 12px;
  font-size: 0.75rem;
}

body[data-active-tab="research"] .premium-inline-unlock {
  min-height: 30px;
  padding-inline: 12px;
  font-size: 0.74rem;
}

body[data-active-tab="research"] .premium-accordion-points {
  margin-top: 10px;
}

body[data-active-tab="research"] .premium-accordion-points-compact p {
  font-size: 0.79rem;
  line-height: 1.5;
}

body[data-active-tab="research"] .premium-more-summary {
  padding-top: 16px;
  padding-bottom: 12px;
  font-size: 0.84rem;
}

body[data-active-tab="research"] .premium-more-count {
  font-size: 0.74rem;
}

@media (max-width: 760px) {
  body[data-active-tab="research"] .research-results-shell {
    --research-body-size: 0.9rem;
    --research-title-size: 1.02rem;
  }
}

/* Research unification pass */
body[data-active-tab="research"] {
  --research-surface: linear-gradient(180deg, rgba(252, 248, 241, 0.985) 0%, rgba(245, 238, 228, 0.965) 100%);
  --research-border: rgba(48, 38, 28, 0.09);
  --research-strong: #1d1711;
  --research-text: #5f5449;
  --research-muted: #857768;
  --research-accent: #111a28;
  --research-radius: 26px;
  --research-radius-sm: 18px;
  --research-shadow: 0 22px 52px rgba(2, 6, 23, 0.16);
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-research,
body[data-active-tab="research"] .research-results-shell,
body[data-active-tab="research"] .app-tab-panel-research.is-idle .ai-roundtable-form-hero,
body[data-active-tab="research"] .app-tab-panel-research:not(.is-idle) .ai-roundtable-form-hero {
  background: var(--research-surface);
  border: 1px solid var(--research-border);
  box-shadow: var(--research-shadow);
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-research,
body[data-active-tab="research"] .research-results-shell {
  border-radius: var(--research-radius);
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .ai-roundtable-form-hero,
body[data-active-tab="research"] .app-tab-panel-research:not(.is-idle) .ai-roundtable-form-hero {
  border-radius: 22px;
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-copy .section-kicker,
body[data-active-tab="research"] .research-query-label,
body[data-active-tab="research"] .research-answer-copy .section-kicker,
body[data-active-tab="research"] .research-split-label,
body[data-active-tab="research"] .premium-map-caption,
body[data-active-tab="research"] .premium-more-count {
  color: var(--research-muted);
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-copy h2,
body[data-active-tab="research"] .research-query-text,
body[data-active-tab="research"] .research-answer-copy h3,
body[data-active-tab="research"] .premium-accordion-head h4,
body[data-active-tab="research"] .premium-more-summary {
  color: var(--research-strong);
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-copy .section-description,
body[data-active-tab="research"] .research-answer-copy h3 span,
body[data-active-tab="research"] .research-answer-copy p:last-child,
body[data-active-tab="research"] .research-answer-meta,
body[data-active-tab="research"] .premium-accordion-body,
body[data-active-tab="research"] .premium-accordion-points-compact p,
body[data-active-tab="research"] .ai-opinion-summary,
body[data-active-tab="research"] .ai-opinion-points p {
  color: var(--research-text);
}

body[data-active-tab="research"] .research-query-shell,
body[data-active-tab="research"] .research-answer-shell,
body[data-active-tab="research"] .premium-more-shell,
body[data-active-tab="research"] .premium-accordion-card {
  border-color: var(--research-border);
}

body[data-active-tab="research"] .premium-map-total,
body[data-active-tab="research"] .premium-accordion-price,
body[data-active-tab="research"] .premium-more-summary {
  background: rgba(17, 26, 40, 0.05);
}

body[data-active-tab="research"] .premium-map-total,
body[data-active-tab="research"] .premium-accordion-price,
body[data-active-tab="research"] .premium-more-summary,
body[data-active-tab="research"] .premium-more-count {
  border-radius: 999px;
}

body[data-active-tab="research"] .research-split-pills .status-chip,
body[data-active-tab="research"] .meta-chip,
body[data-active-tab="research"] .status-chip,
body[data-active-tab="research"] .premium-map-total,
body[data-active-tab="research"] .premium-accordion-price {
  min-height: 30px;
  padding-inline: 12px;
  border-radius: 999px;
  border-width: 1px;
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .ai-roundtable-form-hero .cta,
body[data-active-tab="research"] .app-tab-panel-research:not(.is-idle) .ai-roundtable-form-hero .cta,
body[data-active-tab="research"] .premium-inline-unlock {
  background: var(--research-accent);
  color: #f7f9fc;
  border-radius: 999px;
}

body[data-active-tab="research"] .premium-inline-unlock {
  box-shadow: none;
}

body[data-active-tab="research"] .topbar::before,
body[data-active-tab="research"] .topbar-subnav {
  border-color: rgba(134, 164, 200, 0.08);
}

body[data-active-tab="research"] .subnav-chip {
  border-radius: 999px;
}

body[data-active-tab="research"] .subnav-chip.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #f4f8ff;
}

/* Research reset: unified dark premium */
body[data-active-tab="research"] {
  --research-bg: linear-gradient(180deg, rgba(8, 16, 29, 0.96) 0%, rgba(7, 14, 25, 0.94) 100%);
  --research-panel: linear-gradient(180deg, rgba(12, 22, 38, 0.94) 0%, rgba(9, 17, 30, 0.96) 100%);
  --research-line: rgba(118, 149, 188, 0.14);
  --research-line-soft: rgba(118, 149, 188, 0.08);
  --research-strong: #edf4ff;
  --research-text: #b9c7d8;
  --research-muted: #7f93ad;
  --research-chip: rgba(255, 255, 255, 0.04);
  --research-shadow: 0 22px 56px rgba(1, 4, 12, 0.34);
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-research,
body[data-active-tab="research"] .research-results-shell,
body[data-active-tab="research"] .app-tab-panel-research.is-idle .ai-roundtable-form-hero,
body[data-active-tab="research"] .app-tab-panel-research:not(.is-idle) .ai-roundtable-form-hero {
  background: var(--research-panel);
  border: 1px solid var(--research-line);
  box-shadow: var(--research-shadow);
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-research,
body[data-active-tab="research"] .research-results-shell {
  border-radius: 28px;
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-copy,
body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-copy .section-kicker {
  justify-items: center;
  text-align: center;
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-copy .section-kicker,
body[data-active-tab="research"] .research-query-label,
body[data-active-tab="research"] .research-answer-copy .section-kicker,
body[data-active-tab="research"] .research-split-label,
body[data-active-tab="research"] .premium-map-caption,
body[data-active-tab="research"] .premium-more-count {
  color: var(--research-muted);
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-copy h2,
body[data-active-tab="research"] .research-query-text,
body[data-active-tab="research"] .research-answer-copy h3,
body[data-active-tab="research"] .premium-accordion-head h4,
body[data-active-tab="research"] .premium-more-summary {
  color: var(--research-strong);
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-copy h2 {
  max-width: 14ch;
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-copy .section-description,
body[data-active-tab="research"] .research-answer-copy h3 span,
body[data-active-tab="research"] .research-answer-copy p:last-child,
body[data-active-tab="research"] .research-answer-meta,
body[data-active-tab="research"] .premium-accordion-body,
body[data-active-tab="research"] .premium-accordion-points-compact p,
body[data-active-tab="research"] .ai-opinion-summary,
body[data-active-tab="research"] .ai-opinion-points p {
  color: var(--research-text);
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .ai-roundtable-form-hero,
body[data-active-tab="research"] .app-tab-panel-research:not(.is-idle) .ai-roundtable-form-hero {
  background: rgba(7, 14, 24, 0.92);
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .ai-roundtable-form-hero .ai-roundtable-question-field input,
body[data-active-tab="research"] .app-tab-panel-research:not(.is-idle) .ai-roundtable-form-hero .ai-roundtable-question-field input {
  color: var(--research-strong);
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .ai-roundtable-form-hero .ai-roundtable-question-field input::placeholder,
body[data-active-tab="research"] .app-tab-panel-research:not(.is-idle) .ai-roundtable-form-hero .ai-roundtable-question-field input::placeholder {
  color: #7b90ab;
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .ai-roundtable-form-hero .cta,
body[data-active-tab="research"] .app-tab-panel-research:not(.is-idle) .ai-roundtable-form-hero .cta,
body[data-active-tab="research"] .premium-inline-unlock {
  background: linear-gradient(135deg, #4d8eff 0%, #2f6ff1 100%);
  color: #f7fbff;
}

body[data-active-tab="research"] .research-results-shell {
  background: var(--research-bg);
  border-color: var(--research-line);
}

body[data-active-tab="research"] .research-query-shell,
body[data-active-tab="research"] .research-answer-shell,
body[data-active-tab="research"] .premium-more-shell,
body[data-active-tab="research"] .premium-accordion-card {
  border-color: var(--research-line-soft);
}

body[data-active-tab="research"] .premium-map-total,
body[data-active-tab="research"] .premium-accordion-price,
body[data-active-tab="research"] .premium-more-summary {
  background: var(--research-chip);
  color: #d9e6f7;
}

body[data-active-tab="research"] .research-split-pills .status-chip,
body[data-active-tab="research"] .meta-chip,
body[data-active-tab="research"] .status-chip,
body[data-active-tab="research"] .premium-map-total,
body[data-active-tab="research"] .premium-accordion-price {
  border-radius: 999px;
}

body[data-active-tab="research"] .meta-chip.tone-positive,
body[data-active-tab="research"] .status-chip.tone-positive {
  background: rgba(62, 201, 156, 0.12);
  border-color: rgba(62, 201, 156, 0.16);
  color: #8cf0cb;
}

body[data-active-tab="research"] .meta-chip.tone-watch,
body[data-active-tab="research"] .status-chip.tone-watch {
  background: rgba(255, 205, 92, 0.12);
  border-color: rgba(255, 205, 92, 0.16);
  color: #ffd97b;
}

body[data-active-tab="research"] .meta-chip.tone-negative,
body[data-active-tab="research"] .status-chip.tone-negative {
  background: rgba(255, 120, 148, 0.12);
  border-color: rgba(255, 120, 148, 0.16);
  color: #ffb2c1;
}

body[data-active-tab="research"] .status-chip::before {
  display: none;
}

body[data-active-tab="research"] .premium-inline-unlock {
  box-shadow: 0 8px 18px rgba(47, 111, 241, 0.18);
}

@media (max-width: 760px) {
  body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-copy {
    justify-items: start;
    text-align: left;
  }

  body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-copy h2 {
    max-width: 10ch;
    font-size: 1.84rem;
  }
}

/* Research redesign: compact premium dossier */
body[data-active-tab="research"] {
  --research-shell-width: 920px;
  --research-space-1: 8px;
  --research-space-2: 12px;
  --research-space-3: 16px;
  --research-space-4: 20px;
  --research-space-5: 24px;
  --research-space-6: 28px;
  --research-panel-bg: linear-gradient(180deg, rgba(10, 19, 33, 0.96) 0%, rgba(8, 15, 26, 0.98) 100%);
  --research-panel-line: rgba(115, 148, 190, 0.14);
  --research-panel-shadow: 0 20px 44px rgba(2, 6, 18, 0.24);
}

body[data-active-tab="research"] .topbar {
  max-width: var(--research-shell-width);
  margin: 14px auto 0;
  padding: 12px 18px 8px;
  background: var(--research-panel-bg);
  border: 1px solid var(--research-panel-line);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  box-shadow: var(--research-panel-shadow);
}

body[data-active-tab="research"] .topbar.shell {
  width: min(var(--research-shell-width), calc(100% - 28px));
}

body[data-active-tab="research"] .topbar::before {
  inset: 0;
  border-radius: inherit;
  background: transparent;
  border: none;
  box-shadow: none;
}

body[data-active-tab="research"] .topbar-main {
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}

body[data-active-tab="research"] .live-pill,
body[data-active-tab="research"] .topbar-cta {
  display: none !important;
}

body[data-active-tab="research"] .topbar-search {
  display: block !important;
  width: 100%;
  padding-top: 8px;
}

body[data-active-tab="research"] .global-search-shell {
  max-width: 100%;
}

body[data-active-tab="research"] #thread-search {
  min-height: 48px;
  padding-left: 42px;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(124, 153, 192, 0.12);
  border-radius: 16px;
}

body[data-active-tab="research"] .global-search-shell::before {
  left: 14px;
}

body[data-active-tab="research"] .global-search-shell::after {
  left: 26px;
}

body[data-active-tab="research"] .topbar-subnav {
  justify-content: center;
  padding-top: 4px;
}

body[data-active-tab="research"] .subnav-chip {
  min-height: 34px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(128, 154, 190, 0.12);
  color: #8ea2bb;
  font-size: 0.9rem;
}

body[data-active-tab="research"] .subnav-chip.is-active {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(138, 171, 215, 0.24);
  color: #eff5ff;
}

body[data-active-tab="research"] .page-shell {
  padding-top: 16px;
}

body[data-active-tab="research"] .research-stage,
body[data-active-tab="research"] .command-stage {
  max-width: var(--research-shell-width);
  width: min(var(--research-shell-width), calc(100% - 28px));
  margin-inline: auto;
}

body[data-active-tab="research"] #ai-roundtable.command-panel {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

body[data-active-tab="research"] .ai-roundtable-form-hero {
  display: none !important;
}

body[data-active-tab="research"] .research-hero-strip,
body[data-active-tab="research"] #ai-roundtable-suggestions {
  display: none !important;
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-research {
  padding: 34px 0 6px;
  background: transparent;
  border: none;
  box-shadow: none;
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-copy {
  gap: var(--research-space-2);
  margin: 0 auto;
  max-width: 560px;
  justify-items: center;
  text-align: center;
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-copy .section-kicker {
  display: none;
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-copy h2 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
  color: #f2f7ff;
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-copy .section-description {
  max-width: 30rem;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #8699b1;
}

body[data-active-tab="research"] .app-tab-panel-research:not(.is-idle) .stage-header-research {
  display: none;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

body[data-active-tab="research"] .app-tab-panel-research:not(.is-idle) .stage-header-copy {
  display: none;
}

body[data-active-tab="research"] .research-results-shell {
  max-width: var(--research-shell-width);
  width: 100%;
  margin: 8px auto 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

body[data-active-tab="research"] .research-dossier-shell {
  background: var(--research-panel-bg);
  border: 1px solid var(--research-panel-line);
  border-radius: 22px;
  box-shadow: var(--research-panel-shadow);
  padding: 20px 22px;
}

body[data-active-tab="research"] .research-query-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--research-space-3);
  padding: 0 0 16px;
  border-bottom: 1px solid rgba(115, 148, 190, 0.09);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

body[data-active-tab="research"] .research-query-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body[data-active-tab="research"] .research-query-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #768aa5;
}

body[data-active-tab="research"] .research-query-text {
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.28;
  letter-spacing: -0.038em;
  color: #eff5ff;
}

body[data-active-tab="research"] .research-answer-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(115, 148, 190, 0.09);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

body[data-active-tab="research"] .research-answer-copy {
  display: grid;
  gap: 8px;
  align-content: start;
}

body[data-active-tab="research"] .research-answer-copy .section-kicker {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #768aa5;
}

body[data-active-tab="research"] .research-answer-copy h3 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.1;
  letter-spacing: -0.05em;
  color: #eff5ff;
}

body[data-active-tab="research"] .research-answer-copy h3 span {
  color: #8ca0ba;
}

body[data-active-tab="research"] .research-answer-lead {
  margin: 0;
  max-width: 62ch;
  font-size: 0.98rem;
  line-height: 1.58;
  color: #c3d0df;
}

body[data-active-tab="research"] .research-answer-meta {
  margin: 0;
  max-width: 62ch;
  font-size: 0.88rem;
  line-height: 1.48;
  color: #7f93ad;
}

body[data-active-tab="research"] .research-answer-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 16px;
  align-items: end;
  padding-top: 4px;
}

body[data-active-tab="research"] .research-mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body[data-active-tab="research"] .research-mini-metric {
  padding: 10px 12px 11px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(116, 149, 192, 0.12);
  border-radius: 14px;
}

body[data-active-tab="research"] .research-mini-metric span {
  display: block;
  margin-bottom: 5px;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7488a2;
}

body[data-active-tab="research"] .research-mini-metric strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.3;
  color: #eff5ff;
}

body[data-active-tab="research"] .research-split-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  min-height: 44px;
}

body[data-active-tab="research"] .research-split-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7488a2;
  white-space: nowrap;
}

body[data-active-tab="research"] .research-split-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

body[data-active-tab="research"] .premium-map-shell {
  padding-top: 16px;
  background: transparent;
  border: none;
  box-shadow: none;
}

body[data-active-tab="research"] .premium-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--research-space-3);
  margin-bottom: 10px;
}

body[data-active-tab="research"] .premium-map-copy {
  display: grid;
  gap: 4px;
}

body[data-active-tab="research"] .premium-map-copy .section-kicker {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #768aa5;
}

body[data-active-tab="research"] .premium-map-caption {
  margin: 0;
  font-size: 0.86rem;
  color: #7f93ad;
}

body[data-active-tab="research"] .premium-accordion-group-flat {
  display: grid;
  gap: 8px;
}

body[data-active-tab="research"] .premium-accordion-card,
body[data-active-tab="research"] .premium-more-shell {
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid rgba(116, 149, 192, 0.11);
  border-radius: 18px;
}

body[data-active-tab="research"] .premium-accordion-card {
  padding: 13px 14px 14px;
}

body[data-active-tab="research"] .premium-accordion-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

body[data-active-tab="research"] .premium-accordion-titleblock h4 {
  margin: 0 0 4px;
  font-size: 0.96rem;
  letter-spacing: -0.03em;
  color: #edf4ff;
}

body[data-active-tab="research"] .premium-accordion-body {
  margin: 0;
  max-width: 64ch;
  font-size: 0.88rem;
  line-height: 1.42;
  color: #92a6bf;
}

body[data-active-tab="research"] .premium-accordion-side {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  min-width: auto;
}

body[data-active-tab="research"] .premium-accordion-price,
body[data-active-tab="research"] .premium-map-total,
body[data-active-tab="research"] .premium-more-summary,
body[data-active-tab="research"] .premium-inline-unlock {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
}

body[data-active-tab="research"] .premium-accordion-price,
body[data-active-tab="research"] .premium-map-total {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(124, 153, 192, 0.1);
}

body[data-active-tab="research"] .premium-inline-unlock {
  font-size: 0.82rem;
}

body[data-active-tab="research"] .premium-accordion-points-compact {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(116, 149, 192, 0.08);
}

body[data-active-tab="research"] .premium-accordion-points-compact p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.38;
  color: #a8b8cb;
}

body[data-active-tab="research"] .premium-more-shell {
  overflow: hidden;
}

body[data-active-tab="research"] .premium-more-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--research-space-2);
  width: 100%;
  padding: 11px 14px;
  list-style: none;
  cursor: pointer;
  color: #dce7f5;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.03);
}

body[data-active-tab="research"] .premium-more-summary::-webkit-details-marker {
  display: none;
}

body[data-active-tab="research"] .premium-more-list {
  display: grid;
  gap: var(--research-space-2);
  padding: 0 10px 10px;
}

body[data-active-tab="research"] .status-chip,
body[data-active-tab="research"] .meta-chip {
  min-height: 30px;
  padding: 0 11px;
  font-size: 0.8rem;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

body[data-active-tab="research"] .research-query-shell .meta-chip {
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  body[data-active-tab="research"] .topbar {
    margin-top: 10px;
    padding: 10px 12px 8px;
    border-radius: 18px;
  }

  body[data-active-tab="research"] .topbar-main {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  body[data-active-tab="research"] .topbar-subnav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-top: 8px;
  }

  body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-research {
    padding-top: 18px;
  }

  body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-copy {
    justify-items: start;
    text-align: left;
    margin-bottom: 0;
  }

  body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-copy h2 {
    max-width: 100%;
    font-size: 1.72rem;
  }

  body[data-active-tab="research"] .research-dossier-shell {
    padding: 16px 14px;
    border-radius: 18px;
  }

  body[data-active-tab="research"] .research-query-shell,
  body[data-active-tab="research"] .research-answer-shell,
  body[data-active-tab="research"] .premium-map-head,
  body[data-active-tab="research"] .premium-accordion-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  body[data-active-tab="research"] .research-query-shell {
    gap: 10px;
    align-items: start;
  }

  body[data-active-tab="research"] .research-query-shell .meta-chip,
  body[data-active-tab="research"] .premium-accordion-side {
    justify-self: start;
    justify-items: start;
  }

  body[data-active-tab="research"] .research-answer-shell {
    gap: 14px;
  }

  body[data-active-tab="research"] .research-query-text {
    font-size: 1.08rem;
  }

  body[data-active-tab="research"] .research-answer-copy h3 {
    font-size: 1.18rem;
  }

  body[data-active-tab="research"] .research-answer-rail {
    grid-template-columns: 1fr;
    align-items: start;
  }

  body[data-active-tab="research"] .research-mini-metrics {
    grid-template-columns: 1fr;
  }

  body[data-active-tab="research"] .research-split-row {
    display: grid;
    justify-content: start;
    min-height: auto;
    gap: 8px;
  }

  body[data-active-tab="research"] .research-split-pills {
    justify-content: flex-start;
  }

  body[data-active-tab="research"] .premium-accordion-card {
    padding: 13px 12px 14px;
  }

  body[data-active-tab="research"] .premium-accordion-points-compact {
    margin-top: 10px;
    padding-top: 10px;
  }

  body[data-active-tab="research"] .premium-accordion-side {
    justify-self: start;
  }
}

/* Final override: production UI system */
body[data-active-tab="research"],
body[data-active-tab="feed"] {
  background:
    radial-gradient(circle at 0% 0%, rgba(209, 222, 246, 0.78) 0%, rgba(209, 222, 246, 0) 20%),
    radial-gradient(circle at 100% 12%, rgba(232, 219, 245, 0.62) 0%, rgba(232, 219, 245, 0) 24%),
    linear-gradient(180deg, #f6f8fb 0%, #eef2f7 100%) !important;
  color: #0f172a !important;
}

body[data-active-tab="research"] .ambient,
body[data-active-tab="feed"] .ambient {
  opacity: 0 !important;
}

body[data-active-tab="research"] .shell,
body[data-active-tab="feed"] .shell,
body[data-active-tab="research"] .research-stage,
body[data-active-tab="research"] .command-stage,
body[data-active-tab="research"] .research-results-shell,
body[data-active-tab="feed"] .feed-stage,
body[data-active-tab="feed"] .feed-layout {
  width: min(1120px, calc(100% - 32px)) !important;
  max-width: 1120px !important;
}

body[data-active-tab="research"] .topbar,
body[data-active-tab="feed"] .topbar {
  margin: 16px auto 0 !important;
  padding: 14px 16px 12px !important;
  border-radius: 28px !important;
  background: rgba(255, 255, 255, 0.84) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08) !important;
  backdrop-filter: blur(18px) !important;
}

body[data-active-tab="research"] .topbar::before,
body[data-active-tab="feed"] .topbar::before,
body[data-active-tab="research"] .topbar-actions .live-pill,
body[data-active-tab="research"] .topbar-actions .topbar-cta,
body[data-active-tab="feed"] .topbar-actions .live-pill,
body[data-active-tab="feed"] .topbar-actions .topbar-cta {
  display: none !important;
}

body[data-active-tab="research"] .eyebrow,
body[data-active-tab="feed"] .eyebrow {
  display: block !important;
  color: #64748b !important;
  font-size: 0.66rem !important;
  letter-spacing: 0.16em !important;
}

body[data-active-tab="research"] .brand-title,
body[data-active-tab="feed"] .brand-title,
body[data-active-tab="research"] .language-picker span,
body[data-active-tab="feed"] .language-picker span {
  color: #0f172a !important;
}

body[data-active-tab="research"] .language-picker,
body[data-active-tab="feed"] .language-picker {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

body[data-active-tab="research"] .language-picker select,
body[data-active-tab="feed"] .language-picker select {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(148, 163, 184, 0.26) !important;
  color: #0f172a !important;
  box-shadow: none !important;
}

body[data-active-tab="research"] #thread-search,
body[data-active-tab="feed"] #thread-search {
  min-height: 56px !important;
  padding: 0 18px 0 52px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  border: 1px solid rgba(203, 213, 225, 0.95) !important;
  color: #0f172a !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
}

body[data-active-tab="research"] .subnav-chip,
body[data-active-tab="feed"] .subnav-chip {
  min-height: 34px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(203, 213, 225, 0.9) !important;
  color: #64748b !important;
  box-shadow: none !important;
}

body[data-active-tab="research"] .subnav-chip.is-active,
body[data-active-tab="feed"] .subnav-chip.is-active {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #f8fafc !important;
}

body[data-active-tab="research"] .page-shell,
body[data-active-tab="feed"] .page-shell {
  padding-top: 16px !important;
  padding-bottom: 40px !important;
  gap: 18px !important;
}

body[data-active-tab="research"] .research-stage {
  display: block !important;
  margin: 0 auto !important;
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-research {
  display: grid !important;
}

body[data-active-tab="research"] .stage-header-research {
  display: grid !important;
  gap: 18px !important;
  padding: 28px 30px 24px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(203, 213, 225, 0.82) !important;
  border-radius: 28px !important;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06) !important;
}

body[data-active-tab="research"] .stage-header-copy,
body[data-active-tab="research"] .research-hero-strip {
  display: grid !important;
  gap: 12px !important;
}

body[data-active-tab="research"] .stage-header-copy h2 {
  margin: 0 !important;
  font-size: clamp(1.85rem, 3vw, 2.7rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.06em !important;
  color: #0f172a !important;
}

body[data-active-tab="research"] .stage-header-copy .section-description {
  margin: 0 !important;
  max-width: 56ch !important;
  color: #475569 !important;
  font-size: 0.96rem !important;
  line-height: 1.55 !important;
}

body[data-active-tab="research"] .ai-roundtable-form-hero {
  display: none !important;
}

body[data-active-tab="research"] .research-hero-bridge {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 14px 16px !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f6fb 100%) !important;
  border: 1px solid rgba(203, 213, 225, 0.8) !important;
}

body[data-active-tab="research"] .research-hero-bridge-copy strong,
body[data-active-tab="research"] .research-hero-chip strong {
  color: #0f172a !important;
}

body[data-active-tab="research"] .research-hero-bridge-copy span,
body[data-active-tab="research"] .research-hero-chip-kicker {
  color: #64748b !important;
}

body[data-active-tab="research"] .research-hero-examples {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

body[data-active-tab="research"] .research-hero-chip,
body[data-active-tab="research"] .research-hero-feed-link {
  background: #ffffff !important;
  border: 1px solid rgba(203, 213, 225, 0.88) !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04) !important;
}

body[data-active-tab="research"] .research-hero-chip {
  min-width: 124px !important;
  padding: 14px 16px !important;
  border-radius: 18px !important;
}

body[data-active-tab="research"] .app-tab-panel-research.has-results .research-stage,
body[data-active-tab="research"] .app-tab-panel-research.is-idle .command-stage {
  display: none !important;
}

body[data-active-tab="research"] .command-panel {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body[data-active-tab="research"] .research-dossier-shell {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(203, 213, 225, 0.88) !important;
  border-radius: 28px !important;
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.08) !important;
  padding: 28px 30px !important;
}

body[data-active-tab="research"] .research-query-shell,
body[data-active-tab="research"] .research-answer-shell {
  border-bottom: 1px solid rgba(226, 232, 240, 0.94) !important;
}

body[data-active-tab="research"] .research-query-text,
body[data-active-tab="research"] .research-answer-copy h3,
body[data-active-tab="research"] .research-pill-value,
body[data-active-tab="research"] .premium-accordion-titleblock h4 {
  color: #0f172a !important;
}

body[data-active-tab="research"] .research-query-label,
body[data-active-tab="research"] .research-answer-copy .section-kicker,
body[data-active-tab="research"] .research-answer-meta,
body[data-active-tab="research"] .research-pill-label,
body[data-active-tab="research"] .premium-map-head .section-kicker,
body[data-active-tab="research"] .premium-map-total,
body[data-active-tab="research"] .premium-accordion-body,
body[data-active-tab="research"] .premium-accordion-footnote {
  color: #64748b !important;
}

body[data-active-tab="research"] .research-answer-lead {
  color: #334155 !important;
}

body[data-active-tab="research"] .research-answer-strip {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

body[data-active-tab="research"] .research-answer-pill,
body[data-active-tab="research"] .premium-map-total,
body[data-active-tab="research"] .premium-accordion-price {
  background: #f8fafc !important;
  border: 1px solid rgba(226, 232, 240, 0.96) !important;
}

body[data-active-tab="research"] .research-answer-pill {
  min-height: 84px !important;
  padding: 14px 16px !important;
  border-radius: 18px !important;
}

body[data-active-tab="research"] .research-answer-strip .status-chip {
  background: #ffffff !important;
}

body[data-active-tab="research"] .premium-accordion-card,
body[data-active-tab="research"] .premium-more-shell {
  background: transparent !important;
  border: none !important;
  border-top: 1px solid rgba(226, 232, 240, 0.94) !important;
}

body[data-active-tab="research"] .premium-inline-unlock {
  background: #0f172a !important;
  border: 1px solid #0f172a !important;
  color: #f8fafc !important;
  box-shadow: none !important;
}

body[data-active-tab="feed"] .feed-layout {
  grid-template-columns: minmax(0, 1fr) 320px !important;
  gap: 18px !important;
}

body[data-active-tab="feed"] .toolbar-card,
body[data-active-tab="feed"] .composer-shell,
body[data-active-tab="feed"] .thread-card,
body[data-active-tab="feed"] .feed-insert {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(203, 213, 225, 0.86) !important;
  border-radius: 24px !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06) !important;
}

@media (max-width: 760px) {
  body[data-active-tab="research"] .shell,
  body[data-active-tab="feed"] .shell,
  body[data-active-tab="research"] .research-stage,
  body[data-active-tab="research"] .command-stage,
  body[data-active-tab="research"] .research-results-shell,
  body[data-active-tab="feed"] .feed-stage,
  body[data-active-tab="feed"] .feed-layout {
    width: min(1120px, calc(100% - 20px)) !important;
  }

  body[data-active-tab="research"] .research-hero-bridge {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  body[data-active-tab="research"] .research-answer-strip,
  body[data-active-tab="feed"] .feed-layout {
    grid-template-columns: 1fr !important;
  }
}

/* Final override: Toss-inspired system */
body[data-active-tab="research"],
body[data-active-tab="feed"] {
  background:
    linear-gradient(180deg, #f4f6fa 0%, #eef2f7 100%) !important;
  color: #191f28 !important;
}

body[data-active-tab="research"] .ambient,
body[data-active-tab="feed"] .ambient {
  display: none !important;
}

body[data-active-tab="research"] .topbar,
body[data-active-tab="feed"] .topbar {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(224, 230, 238, 0.92) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05) !important;
  border-radius: 24px !important;
}

body[data-active-tab="research"] .brand-mark,
body[data-active-tab="feed"] .brand-mark {
  background: linear-gradient(180deg, #3182f6 0%, #1b64da 100%) !important;
  color: #ffffff !important;
}

body[data-active-tab="research"] .eyebrow,
body[data-active-tab="feed"] .eyebrow {
  color: #8b95a1 !important;
}

body[data-active-tab="research"] .brand-title,
body[data-active-tab="feed"] .brand-title,
body[data-active-tab="research"] .language-picker span,
body[data-active-tab="feed"] .language-picker span {
  color: #191f28 !important;
}

body[data-active-tab="research"] .language-picker select,
body[data-active-tab="feed"] .language-picker select {
  background: #ffffff !important;
  border: 1px solid #e5e8eb !important;
  color: #4e5968 !important;
}

body[data-active-tab="research"] .global-search-shell::before,
body[data-active-tab="feed"] .global-search-shell::before,
body[data-active-tab="research"] .global-search-shell::after,
body[data-active-tab="feed"] .global-search-shell::after {
  display: none !important;
}

body[data-active-tab="research"] #thread-search,
body[data-active-tab="feed"] #thread-search {
  background: #f9fafb !important;
  border: 1px solid #e5e8eb !important;
  box-shadow: none !important;
  color: #191f28 !important;
}

body[data-active-tab="research"] #thread-search::placeholder,
body[data-active-tab="feed"] #thread-search::placeholder {
  color: #8b95a1 !important;
}

body[data-active-tab="research"] #thread-search:hover,
body[data-active-tab="research"] #thread-search:focus,
body[data-active-tab="feed"] #thread-search:hover,
body[data-active-tab="feed"] #thread-search:focus {
  border-color: rgba(49, 130, 246, 0.55) !important;
  box-shadow: 0 0 0 4px rgba(49, 130, 246, 0.08) !important;
}

body[data-active-tab="research"] .subnav-chip,
body[data-active-tab="feed"] .subnav-chip {
  background: #f2f4f6 !important;
  border: 1px solid transparent !important;
  color: #6b7684 !important;
}

body[data-active-tab="research"] .subnav-chip.is-active,
body[data-active-tab="feed"] .subnav-chip.is-active {
  background: #3182f6 !important;
  border-color: #3182f6 !important;
  color: #ffffff !important;
}

body[data-active-tab="research"] .stage-header-research,
body[data-active-tab="research"] .research-dossier-shell,
body[data-active-tab="feed"] .toolbar-card,
body[data-active-tab="feed"] .composer-shell,
body[data-active-tab="feed"] .thread-card,
body[data-active-tab="feed"] .feed-insert {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid #e8edf3 !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05) !important;
}

body[data-active-tab="research"] .research-results-shell,
body[data-active-tab="research"] .command-panel,
body[data-active-tab="research"] .ai-roundtable-summary,
body[data-active-tab="research"] .ai-roundtable-grid {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body[data-active-tab="research"] .stage-header-research,
body[data-active-tab="research"] .research-dossier-shell {
  border-radius: 32px !important;
}

body[data-active-tab="feed"] .toolbar-card,
body[data-active-tab="feed"] .composer-shell,
body[data-active-tab="feed"] .thread-card,
body[data-active-tab="feed"] .feed-insert {
  border-radius: 28px !important;
}

body[data-active-tab="research"] .stage-header-copy h2,
body[data-active-tab="feed"] .stage-header-feed h2,
body[data-active-tab="research"] .research-query-text,
body[data-active-tab="research"] .research-answer-copy h3,
body[data-active-tab="feed"] .thread-title,
body[data-active-tab="feed"] .thread-author-name {
  color: #191f28 !important;
}

body[data-active-tab="research"] .stage-header-copy .section-description,
body[data-active-tab="research"] .research-hero-bridge-copy span,
body[data-active-tab="research"] .research-query-label,
body[data-active-tab="research"] .research-answer-copy .section-kicker,
body[data-active-tab="research"] .research-answer-meta,
body[data-active-tab="research"] .premium-map-head .section-kicker,
body[data-active-tab="research"] .premium-map-total,
body[data-active-tab="research"] .premium-accordion-body,
body[data-active-tab="research"] .premium-accordion-footnote,
body[data-active-tab="feed"] .stage-header-feed .section-description,
body[data-active-tab="feed"] .thread-author-handle,
body[data-active-tab="feed"] .thread-author-age,
body[data-active-tab="feed"] .thread-summary,
body[data-active-tab="feed"] .level-label {
  color: #8b95a1 !important;
}

body[data-active-tab="research"] .research-hero-bridge {
  background: #f8fbff !important;
  border: 1px solid rgba(49, 130, 246, 0.12) !important;
}

body[data-active-tab="research"] .research-hero-bridge-copy strong {
  color: #191f28 !important;
}

body[data-active-tab="research"] .research-hero-feed-link {
  background: #ffffff !important;
  border: 1px solid #e5e8eb !important;
  color: #4e5968 !important;
  box-shadow: none !important;
}

body[data-active-tab="research"] .research-hero-chip {
  background: #ffffff !important;
  border: 1px solid #e8edf3 !important;
  box-shadow: none !important;
}

body[data-active-tab="research"] .research-query-shell,
body[data-active-tab="research"] .research-answer-shell,
body[data-active-tab="research"] .premium-accordion-card,
body[data-active-tab="research"] .premium-more-shell {
  border-color: #eef2f6 !important;
}

body[data-active-tab="research"] .research-results-shell {
  margin-top: 0 !important;
}

body[data-active-tab="research"] .research-query-shell .meta-chip,
body[data-active-tab="research"] .research-answer-pill,
body[data-active-tab="research"] .premium-map-total,
body[data-active-tab="research"] .premium-accordion-price,
body[data-active-tab="feed"] .thread-brief-pill,
body[data-active-tab="feed"] .reaction-pill,
body[data-active-tab="feed"] .meta-chip,
body[data-active-tab="feed"] .filter-chip {
  background: #f9fafb !important;
  border: 1px solid #edf1f5 !important;
  color: #4e5968 !important;
}

body[data-active-tab="research"] .research-pill-value,
body[data-active-tab="feed"] .thread-brief-pill strong {
  color: #191f28 !important;
}

body[data-active-tab="research"] .research-answer-strip .status-chip {
  background: #ffffff !important;
  border: 1px solid #edf1f5 !important;
}

body[data-active-tab="research"] .premium-inline-unlock,
body[data-active-tab="feed"] .contribution-chip.is-active,
body[data-active-tab="feed"] .filter-chip.is-active {
  background: #3182f6 !important;
  border-color: #3182f6 !important;
  color: #ffffff !important;
}

body[data-active-tab="research"] .premium-more-summary {
  color: #4e5968 !important;
}

body[data-active-tab="feed"] .thread-section,
body[data-active-tab="feed"] .composer-inner {
  background: transparent !important;
}

body[data-active-tab="feed"] .feed-layout {
  gap: 20px !important;
}

/* Research redesign: Stripe Sigma-inspired light system */
body[data-active-tab="research"] {
  background:
    radial-gradient(circle at top left, rgba(210, 225, 246, 0.7) 0%, rgba(244, 247, 251, 0) 28%),
    linear-gradient(180deg, #f4f7fb 0%, #edf2f8 100%);
  color: #122033;
  --research-shell-width: 980px;
  --research-panel-bg: #ffffff;
  --research-panel-line: rgba(18, 32, 51, 0.09);
  --research-panel-line-soft: rgba(18, 32, 51, 0.07);
  --research-panel-shadow: 0 18px 44px rgba(16, 24, 40, 0.08);
}

body[data-active-tab="research"] .ambient {
  opacity: 0.08;
  filter: blur(24px);
}

body[data-active-tab="research"] .topbar {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(18, 32, 51, 0.08);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.06);
  backdrop-filter: blur(12px);
}

body[data-active-tab="research"] .topbar::before {
  display: none;
}

body[data-active-tab="research"] .brand-mark {
  background: linear-gradient(180deg, #1f2f4a 0%, #152338 100%);
  color: #eef4ff;
  box-shadow: none;
}

body[data-active-tab="research"] .eyebrow {
  color: #6e7e94;
}

body[data-active-tab="research"] .brand-title,
body[data-active-tab="research"] .language-picker,
body[data-active-tab="research"] .language-picker span {
  color: #152235;
}

body[data-active-tab="research"] .language-picker select {
  background: #f6f8fb;
  border: 1px solid rgba(18, 32, 51, 0.08);
  color: #152235;
}

body[data-active-tab="research"] #thread-search {
  background: #ffffff;
  border: 1px solid rgba(18, 32, 51, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  color: #122033;
}

body[data-active-tab="research"] #thread-search::placeholder {
  color: #7a889b;
}

body[data-active-tab="research"] .global-search-shell::before,
body[data-active-tab="research"] .global-search-shell::after {
  opacity: 0.68;
}

body[data-active-tab="research"] .topbar-subnav {
  justify-content: flex-start;
}

body[data-active-tab="research"] .subnav-chip {
  background: #f5f7fa;
  border: 1px solid rgba(18, 32, 51, 0.08);
  color: #5d6b7f;
}

body[data-active-tab="research"] .subnav-chip.is-active {
  background: #ffffff;
  border-color: rgba(43, 93, 206, 0.18);
  color: #204a9c;
  box-shadow: 0 4px 10px rgba(43, 93, 206, 0.08);
}

body[data-active-tab="research"] .page-shell {
  padding-top: 8px;
}

body[data-active-tab="research"] .command-stage {
  margin-top: 12px;
}

body[data-active-tab="research"] .research-results-shell {
  background: transparent;
}

body[data-active-tab="research"] .research-dossier-shell {
  background: #ffffff;
  border: 1px solid rgba(18, 32, 51, 0.08);
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.08);
  border-radius: 20px;
}

body[data-active-tab="research"] .research-query-shell,
body[data-active-tab="research"] .research-answer-shell,
body[data-active-tab="research"] .premium-accordion-card,
body[data-active-tab="research"] .premium-more-shell {
  border-color: rgba(18, 32, 51, 0.07);
}

body[data-active-tab="research"] .research-query-label,
body[data-active-tab="research"] .research-answer-copy .section-kicker,
body[data-active-tab="research"] .research-pill-label,
body[data-active-tab="research"] .premium-map-head .section-kicker,
body[data-active-tab="research"] .premium-more-count {
  color: #7a889b;
}

body[data-active-tab="research"] .research-query-text,
body[data-active-tab="research"] .research-answer-copy h3,
body[data-active-tab="research"] .research-pill-value,
body[data-active-tab="research"] .premium-accordion-titleblock h4,
body[data-active-tab="research"] .premium-more-summary {
  color: #122033;
}

body[data-active-tab="research"] .research-answer-lead,
body[data-active-tab="research"] .research-answer-meta,
body[data-active-tab="research"] .premium-accordion-body,
body[data-active-tab="research"] .premium-accordion-points-compact p,
body[data-active-tab="research"] .premium-accordion-footnote {
  color: #5f6e84;
}

body[data-active-tab="research"] .research-query-shell .meta-chip,
body[data-active-tab="research"] .research-answer-pill,
body[data-active-tab="research"] .premium-map-total,
body[data-active-tab="research"] .premium-accordion-price,
body[data-active-tab="research"] .premium-more-summary {
  background: #f7f9fc;
  border: 1px solid rgba(18, 32, 51, 0.08);
  color: #31435d;
}

body[data-active-tab="research"] .research-answer-pill {
  min-height: 36px;
}

body[data-active-tab="research"] .research-answer-strip .status-chip,
body[data-active-tab="research"] .research-query-shell .meta-chip {
  box-shadow: none;
}

body[data-active-tab="research"] .meta-chip.tone-positive,
body[data-active-tab="research"] .status-chip.tone-positive {
  background: rgba(32, 180, 134, 0.1);
  border-color: rgba(32, 180, 134, 0.16);
  color: #0f7c5b;
}

body[data-active-tab="research"] .meta-chip.tone-watch,
body[data-active-tab="research"] .status-chip.tone-watch {
  background: rgba(237, 180, 40, 0.12);
  border-color: rgba(237, 180, 40, 0.18);
  color: #95690a;
}

body[data-active-tab="research"] .meta-chip.tone-negative,
body[data-active-tab="research"] .status-chip.tone-negative {
  background: rgba(226, 91, 91, 0.1);
  border-color: rgba(226, 91, 91, 0.16);
  color: #a63535;
}

body[data-active-tab="research"] .status-chip::before {
  display: none;
}

body[data-active-tab="research"] .premium-inline-unlock {
  background: #2559cc;
  border: 1px solid #2559cc;
  color: #ffffff;
}

body[data-active-tab="research"] .premium-inline-unlock:hover {
  background: #1f4fb9;
}

body[data-active-tab="research"] .premium-accordion-card,
body[data-active-tab="research"] .premium-more-shell {
  background: transparent;
  border-left: none;
  border-right: none;
}

body[data-active-tab="research"] .premium-more-summary {
  color: #31435d;
}

@media (max-width: 760px) {
  body[data-active-tab="research"] {
    background: linear-gradient(180deg, #f5f7fb 0%, #eef3f8 100%);
  }

  body[data-active-tab="research"] .topbar {
    box-shadow: 0 10px 20px rgba(16, 24, 40, 0.05);
  }

  body[data-active-tab="research"] .topbar-subnav {
    justify-content: flex-start;
  }

  body[data-active-tab="research"] .research-dossier-shell {
    border-radius: 16px;
  }
}

/* Research redesign: Google + Sigma mix */
body[data-active-tab="research"] {
  background:
    radial-gradient(circle at 12% 8%, rgba(206, 225, 255, 0.9) 0%, rgba(206, 225, 255, 0) 22%),
    radial-gradient(circle at 82% 14%, rgba(223, 219, 255, 0.8) 0%, rgba(223, 219, 255, 0) 26%),
    linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
  color: #1f2937;
  --research-shell-width: 900px;
}

body[data-active-tab="research"] .ambient {
  opacity: 0;
}

body[data-active-tab="research"] .topbar {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.05);
  box-shadow:
    0 12px 32px rgba(30, 41, 59, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
  padding: 12px 14px 12px;
  border-radius: 20px;
}

body[data-active-tab="research"] .topbar-main {
  align-items: center;
}

body[data-active-tab="research"] .brand-lockup {
  gap: 10px;
}

body[data-active-tab="research"] .brand-mark {
  width: 32px;
  height: 32px;
  font-size: 0.78rem;
  background: linear-gradient(180deg, #22324c 0%, #17253a 100%);
  color: #f8fbff;
}

body[data-active-tab="research"] .eyebrow {
  display: none;
}

body[data-active-tab="research"] .brand-title {
  font-size: 1.08rem;
  color: #1f2937;
}

body[data-active-tab="research"] .language-picker {
  gap: 6px;
}

body[data-active-tab="research"] .language-picker span {
  color: #6b7280;
  font-size: 0.8rem;
}

body[data-active-tab="research"] .language-picker select {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.26);
  color: #1f2937;
  min-height: 36px;
  padding: 0 34px 0 12px;
  border-radius: 18px;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.04);
}

body[data-active-tab="research"] .topbar-search {
  padding-top: 12px;
}

body[data-active-tab="research"] #thread-search {
  min-height: 48px;
  padding-left: 42px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.85);
  box-shadow:
    0 2px 8px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  color: #0f172a;
  font-size: 0.96rem;
}

body[data-active-tab="research"] #thread-search:hover,
body[data-active-tab="research"] #thread-search:focus {
  border-color: rgba(148, 163, 184, 0.82);
  box-shadow:
    0 6px 16px rgba(15, 23, 42, 0.08),
    0 0 0 3px rgba(59, 130, 246, 0.08);
}

body[data-active-tab="research"] #thread-search::placeholder {
  color: #64748b;
}

body[data-active-tab="research"] .global-search-shell::before,
body[data-active-tab="research"] .global-search-shell::after {
  opacity: 0.62;
}

body[data-active-tab="research"] .topbar-subnav {
  justify-content: center;
  gap: 8px;
  padding-top: 10px;
}

body[data-active-tab="research"] .subnav-chip {
  min-height: 34px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(203, 213, 225, 0.85);
  color: #64748b;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

body[data-active-tab="research"] .subnav-chip.is-active {
  background: #ffffff;
  border-color: rgba(96, 165, 250, 0.36);
  color: #2452b8;
  box-shadow:
    0 4px 12px rgba(37, 99, 235, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

body[data-active-tab="research"] .page-shell {
  padding-top: 10px;
}

body[data-active-tab="research"] .command-stage {
  margin-top: 14px;
}

body[data-active-tab="research"] .research-results-shell {
  margin-top: 10px;
}

body[data-active-tab="research"] .research-dossier-shell {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(203, 213, 225, 0.85);
  box-shadow:
    0 16px 36px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-radius: 22px;
}

body[data-active-tab="research"] .research-query-shell,
body[data-active-tab="research"] .research-answer-shell,
body[data-active-tab="research"] .premium-accordion-card,
body[data-active-tab="research"] .premium-more-shell {
  border-color: rgba(226, 232, 240, 0.95);
}

body[data-active-tab="research"] .research-query-label,
body[data-active-tab="research"] .research-answer-copy .section-kicker,
body[data-active-tab="research"] .research-pill-label,
body[data-active-tab="research"] .premium-map-head .section-kicker,
body[data-active-tab="research"] .premium-more-count {
  color: #64748b;
}

body[data-active-tab="research"] .research-query-text,
body[data-active-tab="research"] .research-answer-copy h3,
body[data-active-tab="research"] .research-pill-value,
body[data-active-tab="research"] .premium-accordion-titleblock h4,
body[data-active-tab="research"] .premium-more-summary {
  color: #0f172a;
}

body[data-active-tab="research"] .research-answer-lead,
body[data-active-tab="research"] .research-answer-meta,
body[data-active-tab="research"] .premium-accordion-body,
body[data-active-tab="research"] .premium-accordion-points-compact p,
body[data-active-tab="research"] .premium-accordion-footnote {
  color: #475569;
}

body[data-active-tab="research"] .research-answer-pill,
body[data-active-tab="research"] .research-query-shell .meta-chip,
body[data-active-tab="research"] .premium-map-total,
body[data-active-tab="research"] .premium-accordion-price,
body[data-active-tab="research"] .premium-more-summary {
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.96);
  color: #334155;
}

body[data-active-tab="research"] .research-answer-strip .status-chip {
  background: #ffffff;
}

body[data-active-tab="research"] .premium-inline-unlock {
  background: linear-gradient(180deg, #356ae6 0%, #2556d6 100%);
  border: 1px solid rgba(37, 86, 214, 0.9);
  color: #ffffff;
}

body[data-active-tab="research"] .premium-accordion-card,
body[data-active-tab="research"] .premium-more-shell {
  background: transparent;
}

body[data-active-tab="research"] .premium-more-summary {
  background: transparent;
  box-shadow: none;
}

@media (max-width: 760px) {
  body[data-active-tab="research"] .topbar {
    border-radius: 18px;
    padding: 10px 12px 10px;
  }

  body[data-active-tab="research"] .topbar-subnav {
    justify-content: flex-start;
  }

  body[data-active-tab="research"] .research-dossier-shell {
    border-radius: 18px;
  }
}

/* Research redesign: unified editorial pass */
body[data-active-tab="research"] {
  --research-shell-width: 948px;
  --research-space-2: 10px;
  --research-space-3: 14px;
  --research-space-4: 18px;
  --research-space-5: 22px;
  --research-panel-bg: linear-gradient(180deg, rgba(10, 19, 33, 0.97) 0%, rgba(8, 15, 26, 0.985) 100%);
  --research-panel-line: rgba(118, 149, 188, 0.12);
  --research-panel-shadow: 0 18px 40px rgba(1, 5, 16, 0.28);
}

body[data-active-tab="research"] .topbar,
body[data-active-tab="research"] .research-stage,
body[data-active-tab="research"] .command-stage,
body[data-active-tab="research"] .research-results-shell {
  width: min(var(--research-shell-width), calc(100% - 28px));
  max-width: var(--research-shell-width);
}

body[data-active-tab="research"] .topbar {
  margin: 14px auto 0;
  padding: 12px 18px 10px;
  border-radius: 22px;
}

body[data-active-tab="research"] .topbar-main {
  gap: 12px;
}

body[data-active-tab="research"] .brand-lockup {
  gap: 10px;
}

body[data-active-tab="research"] .brand-mark {
  width: 34px;
  height: 34px;
  font-size: 0.82rem;
}

body[data-active-tab="research"] .brand-title {
  font-size: 1.15rem;
  letter-spacing: -0.04em;
}

body[data-active-tab="research"] .eyebrow {
  font-size: 0.64rem;
}

body[data-active-tab="research"] .topbar-actions {
  gap: 10px;
}

body[data-active-tab="research"] .language-picker {
  gap: 6px;
}

body[data-active-tab="research"] .topbar-search {
  padding-top: 10px;
}

body[data-active-tab="research"] #thread-search {
  min-height: 54px;
  padding-left: 44px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(128, 154, 190, 0.12);
  font-size: 1rem;
}

body[data-active-tab="research"] .topbar-subnav {
  padding-top: 10px;
}

body[data-active-tab="research"] .subnav-chip {
  min-height: 32px;
  padding: 0 13px;
  font-size: 0.84rem;
}

body[data-active-tab="research"] .page-shell {
  padding-top: 4px;
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-research {
  display: none;
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-copy {
  max-width: 580px;
  gap: 6px;
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-copy h2 {
  max-width: 13ch;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.02;
  letter-spacing: -0.065em;
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-copy .section-description {
  max-width: 34rem;
  font-size: 0.84rem;
  line-height: 1.45;
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .command-stage {
  display: none;
  min-height: 0;
  margin-top: 0;
}

body[data-active-tab="research"] .research-stage {
  display: none;
}

body[data-active-tab="research"] .command-stage {
  margin-top: 10px;
}

body[data-active-tab="research"] .research-results-shell {
  margin: 4px auto 0;
}

body[data-active-tab="research"] .research-dossier-shell {
  border-radius: 18px;
  padding: 18px 20px;
}

body[data-active-tab="research"] .research-query-shell {
  gap: 12px;
  padding-bottom: 14px;
}

body[data-active-tab="research"] .research-query-copy {
  gap: 3px;
}

body[data-active-tab="research"] .research-query-text {
  font-size: 1rem;
  line-height: 1.42;
  letter-spacing: -0.03em;
}

body[data-active-tab="research"] .research-query-shell .meta-chip {
  min-height: 28px;
  padding-inline: 10px;
  font-size: 0.75rem;
}

body[data-active-tab="research"] .research-answer-shell {
  gap: 12px;
  padding: 14px 0 16px;
}

body[data-active-tab="research"] .research-answer-copy {
  gap: 6px;
}

body[data-active-tab="research"] .research-answer-copy h3 {
  font-size: 1.08rem;
  line-height: 1.16;
}

body[data-active-tab="research"] .research-answer-lead {
  max-width: 66ch;
  font-size: 0.93rem;
  line-height: 1.6;
}

body[data-active-tab="research"] .research-answer-meta {
  max-width: 62ch;
  font-size: 0.82rem;
  line-height: 1.48;
}

body[data-active-tab="research"] .research-answer-rail,
body[data-active-tab="research"] .research-mini-metrics,
body[data-active-tab="research"] .research-mini-metric,
body[data-active-tab="research"] .research-split-row {
  all: unset;
}

body[data-active-tab="research"] .research-answer-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

body[data-active-tab="research"] .research-answer-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(118, 149, 188, 0.1);
  border-radius: 999px;
}

body[data-active-tab="research"] .research-answer-pill-split {
  padding-right: 8px;
}

body[data-active-tab="research"] .research-pill-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7f93ad;
}

body[data-active-tab="research"] .research-pill-value {
  font-size: 0.84rem;
  line-height: 1.2;
  color: #edf4ff;
  font-weight: 600;
}

body[data-active-tab="research"] .research-answer-strip .research-split-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

body[data-active-tab="research"] .research-answer-strip .status-chip {
  min-height: 26px;
  padding: 0 10px;
  font-size: 0.74rem;
}

body[data-active-tab="research"] .premium-map-shell {
  padding-top: 14px;
}

body[data-active-tab="research"] .premium-map-head {
  margin-bottom: 2px;
}

body[data-active-tab="research"] .premium-map-head .section-kicker {
  margin: 0;
}

body[data-active-tab="research"] .premium-map-copy,
body[data-active-tab="research"] .premium-map-caption {
  display: none;
}

body[data-active-tab="research"] .premium-map-total {
  min-height: 28px;
  padding-inline: 11px;
  font-size: 0.74rem;
}

body[data-active-tab="research"] .premium-accordion-group-flat {
  gap: 0;
}

body[data-active-tab="research"] .premium-accordion-card,
body[data-active-tab="research"] .premium-more-shell {
  background: transparent;
  border: none;
  border-top: 1px solid rgba(118, 149, 188, 0.08);
  border-radius: 0;
}

body[data-active-tab="research"] .premium-accordion-card:first-child {
  border-top: none;
}

body[data-active-tab="research"] .premium-accordion-card {
  padding: 14px 0;
}

body[data-active-tab="research"] .premium-accordion-head {
  gap: 12px;
  align-items: start;
}

body[data-active-tab="research"] .premium-accordion-titleblock h4 {
  margin-bottom: 5px;
  font-size: 0.93rem;
  line-height: 1.34;
}

body[data-active-tab="research"] .premium-accordion-body {
  font-size: 0.84rem;
  line-height: 1.5;
  color: #8ea2bb;
}

body[data-active-tab="research"] .premium-accordion-side {
  gap: 7px;
}

body[data-active-tab="research"] .premium-accordion-price {
  min-height: 28px;
  padding-inline: 10px;
  font-size: 0.72rem;
}

body[data-active-tab="research"] .premium-inline-unlock {
  min-height: 28px;
  padding-inline: 11px;
  font-size: 0.73rem;
  box-shadow: none;
}

body[data-active-tab="research"] .premium-accordion-points-compact {
  gap: 4px;
  margin-top: 8px;
  padding-top: 9px;
  border-top: 1px solid rgba(118, 149, 188, 0.06);
}

body[data-active-tab="research"] .premium-accordion-points-compact p {
  font-size: 0.8rem;
  line-height: 1.5;
}

body[data-active-tab="research"] .premium-more-summary {
  padding: 14px 0 8px;
  background: transparent;
  font-size: 0.82rem;
  color: #d8e4f3;
}

body[data-active-tab="research"] .premium-more-list {
  gap: 0;
  padding: 0;
}

body[data-active-tab="research"] .premium-accordion-footnote {
  margin-top: 8px;
  font-size: 0.76rem;
  color: #7f93ad;
}

@media (max-width: 760px) {
  body[data-active-tab="research"] .topbar {
    width: min(var(--research-shell-width), calc(100% - 20px));
    margin-top: 10px;
    padding: 10px 12px 9px;
    border-radius: 18px;
  }

  body[data-active-tab="research"] .research-stage,
  body[data-active-tab="research"] .command-stage,
  body[data-active-tab="research"] .research-results-shell {
    width: min(var(--research-shell-width), calc(100% - 20px));
  }

  body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-copy {
    justify-items: start;
    text-align: left;
    max-width: 100%;
  }

  body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-copy h2 {
    max-width: 11ch;
    font-size: 1.58rem;
  }

  body[data-active-tab="research"] .research-dossier-shell {
    padding: 15px 14px;
    border-radius: 16px;
  }

  body[data-active-tab="research"] .command-stage {
    margin-top: 8px;
  }

  body[data-active-tab="research"] .research-query-shell {
    gap: 9px;
  }

  body[data-active-tab="research"] .research-answer-strip {
    gap: 6px;
  }

  body[data-active-tab="research"] .research-answer-pill {
    width: 100%;
    justify-content: space-between;
  }

  body[data-active-tab="research"] .research-answer-pill-split {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 12px;
    border-radius: 14px;
  }

  body[data-active-tab="research"] .research-answer-strip .research-split-pills {
    width: 100%;
  }

  body[data-active-tab="research"] .premium-accordion-head {
    grid-template-columns: 1fr;
  }

  body[data-active-tab="research"] .premium-accordion-side {
    justify-self: start;
  }
}

/* Final alignment override */
body[data-active-tab="research"],
body[data-active-tab="feed"] {
  --product-shell-width: 980px;
}

body[data-active-tab="research"] .shell,
body[data-active-tab="feed"] .shell,
body[data-active-tab="research"] .research-stage,
body[data-active-tab="research"] .command-stage,
body[data-active-tab="research"] .research-results-shell,
body[data-active-tab="feed"] .feed-stage,
body[data-active-tab="feed"] .feed-layout,
body[data-active-tab="research"] .topbar,
body[data-active-tab="feed"] .topbar {
  width: min(var(--product-shell-width), calc(100% - 32px)) !important;
  max-width: var(--product-shell-width) !important;
}

body[data-active-tab="research"] .topbar-main,
body[data-active-tab="feed"] .topbar-main {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 14px !important;
}

body[data-active-tab="research"] .topbar-actions,
body[data-active-tab="feed"] .topbar-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
}

body[data-active-tab="research"] .language-picker,
body[data-active-tab="feed"] .language-picker {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 42px !important;
  padding: 4px 6px 4px 12px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  border: 1px solid #e5e8eb !important;
}

body[data-active-tab="research"] .language-picker span,
body[data-active-tab="feed"] .language-picker span {
  font-size: 0.78rem !important;
  line-height: 1 !important;
  color: #8b95a1 !important;
}

body[data-active-tab="research"] .language-picker select,
body[data-active-tab="feed"] .language-picker select {
  min-width: 104px !important;
  height: 32px !important;
  padding: 0 24px 0 6px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 999px !important;
  line-height: 32px !important;
  color: #4e5968 !important;
  box-shadow: none !important;
}

body[data-active-tab="research"] .topbar-search,
body[data-active-tab="feed"] .topbar-search,
body[data-active-tab="research"] .topbar-subnav,
body[data-active-tab="feed"] .topbar-subnav {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body[data-active-tab="research"] .stage-header-research,
body[data-active-tab="research"] .research-dossier-shell {
  padding-left: 28px !important;
  padding-right: 28px !important;
}

@media (max-width: 760px) {
  body[data-active-tab="research"] .shell,
  body[data-active-tab="feed"] .shell,
  body[data-active-tab="research"] .research-stage,
  body[data-active-tab="research"] .command-stage,
  body[data-active-tab="research"] .research-results-shell,
  body[data-active-tab="feed"] .feed-stage,
  body[data-active-tab="feed"] .feed-layout,
  body[data-active-tab="research"] .topbar,
  body[data-active-tab="feed"] .topbar {
    width: min(var(--product-shell-width), calc(100% - 20px)) !important;
  }

  body[data-active-tab="research"] .topbar-main,
  body[data-active-tab="feed"] .topbar-main {
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
  }

  body[data-active-tab="research"] .topbar-actions,
  body[data-active-tab="feed"] .topbar-actions {
    justify-content: flex-start !important;
  }
}

/* Final alignment pass */
body[data-active-tab="research"],
body[data-active-tab="feed"] {
  --product-shell-width: 944px !important;
}

body[data-active-tab="research"] .topbar,
body[data-active-tab="feed"] .topbar,
body[data-active-tab="research"] .research-stage,
body[data-active-tab="research"] .research-results-shell,
body[data-active-tab="feed"] .feed-stage,
body[data-active-tab="feed"] .feed-layout {
  width: min(var(--product-shell-width), calc(100% - 32px)) !important;
  max-width: var(--product-shell-width) !important;
}

body[data-active-tab="research"] .topbar {
  padding: 14px 14px 12px !important;
}

body[data-active-tab="research"] .topbar-main,
body[data-active-tab="feed"] .topbar-main {
  grid-template-columns: minmax(0, 1fr) auto !important;
  min-height: 40px !important;
}

body[data-active-tab="research"] .brand-lockup,
body[data-active-tab="feed"] .brand-lockup {
  min-height: 40px !important;
}

body[data-active-tab="research"] .topbar-actions,
body[data-active-tab="feed"] .topbar-actions {
  min-height: 40px !important;
}

body[data-active-tab="research"] .language-picker,
body[data-active-tab="feed"] .language-picker {
  min-height: 40px !important;
  padding: 4px 8px 4px 12px !important;
}

body[data-active-tab="research"] .language-picker select,
body[data-active-tab="feed"] .language-picker select {
  min-width: 96px !important;
  height: 30px !important;
  line-height: 30px !important;
}

body[data-active-tab="research"] .topbar-search,
body[data-active-tab="feed"] .topbar-search {
  padding-top: 12px !important;
}

body[data-active-tab="research"] .topbar-subnav,
body[data-active-tab="feed"] .topbar-subnav {
  padding-top: 10px !important;
  justify-content: center !important;
}

body[data-active-tab="research"] .stage-header-research {
  gap: 16px !important;
  padding: 24px !important;
}

body[data-active-tab="research"] .stage-header-copy {
  justify-items: start !important;
  text-align: left !important;
  max-width: none !important;
}

body[data-active-tab="research"] .stage-header-copy h2 {
  max-width: 12ch !important;
  margin: 0 auto 0 0 !important;
}

body[data-active-tab="research"] .stage-header-copy .section-description {
  max-width: 56ch !important;
}

body[data-active-tab="research"] .research-hero-strip {
  width: 100% !important;
  justify-items: stretch !important;
}

body[data-active-tab="research"] .research-hero-bridge {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  width: 100% !important;
}

body[data-active-tab="research"] .research-hero-examples {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
}

body[data-active-tab="research"] .research-hero-chip {
  min-width: 0 !important;
  width: 100% !important;
  padding: 12px 14px !important;
}

body[data-active-tab="research"] .research-feed-preview {
  display: grid !important;
  gap: 12px !important;
  width: 100% !important;
}

body[data-active-tab="research"] .research-feed-preview-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

body[data-active-tab="research"] .research-feed-preview-copy {
  display: grid !important;
  gap: 3px !important;
}

body[data-active-tab="research"] .research-preview-kicker {
  font-size: 0.72rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  color: #8b95a1 !important;
}

body[data-active-tab="research"] .research-feed-preview-copy strong {
  color: #191f28 !important;
  font-size: 1rem !important;
}

body[data-active-tab="research"] .research-preview-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body[data-active-tab="research"] .research-preview-card {
  display: grid !important;
  gap: 10px !important;
  padding: 16px 18px !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  border: 1px solid #e8edf3 !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04) !important;
}

body[data-active-tab="research"] .research-preview-meta {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

body[data-active-tab="research"] .research-preview-author {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  color: #8b95a1 !important;
  font-size: 0.82rem !important;
}

body[data-active-tab="research"] .research-preview-author strong {
  color: #191f28 !important;
  font-size: 0.92rem !important;
}

body[data-active-tab="research"] .research-preview-card h3 {
  margin: 0 !important;
  color: #191f28 !important;
  font-size: 1rem !important;
  line-height: 1.4 !important;
}

body[data-active-tab="research"] .research-preview-card p {
  margin: 0 !important;
  color: #6b7684 !important;
  font-size: 0.88rem !important;
  line-height: 1.55 !important;
}

body[data-active-tab="research"] .research-dossier-shell {
  padding: 24px !important;
}

body[data-active-tab="feed"] .feed-layout {
  grid-template-columns: minmax(0, 1fr) 300px !important;
}

@media (max-width: 760px) {
  body[data-active-tab="research"] .topbar,
  body[data-active-tab="feed"] .topbar,
  body[data-active-tab="research"] .research-stage,
  body[data-active-tab="research"] .research-results-shell,
  body[data-active-tab="feed"] .feed-stage,
  body[data-active-tab="feed"] .feed-layout {
    width: min(var(--product-shell-width), calc(100% - 20px)) !important;
  }

  body[data-active-tab="research"] .topbar-subnav,
  body[data-active-tab="feed"] .topbar-subnav {
    justify-content: flex-start !important;
  }

  body[data-active-tab="research"] .research-hero-bridge {
    grid-template-columns: 1fr !important;
  }

  body[data-active-tab="research"] .research-hero-examples {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body[data-active-tab="research"] .research-feed-preview-head {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  body[data-active-tab="research"] .research-preview-list {
    grid-template-columns: 1fr !important;
  }
}

/* Final feed width pass */
body[data-active-tab="feed"] .feed-layout {
  grid-template-columns: 1fr !important;
  gap: 18px !important;
}

body[data-active-tab="feed"] .feed-main,
body[data-active-tab="feed"] .feed-side,
body[data-active-tab="feed"] .toolbar-card,
body[data-active-tab="feed"] .thread-section,
body[data-active-tab="feed"] .thread-feed,
body[data-active-tab="feed"] .composer-shell {
  width: 100% !important;
  max-width: 100% !important;
}

body[data-active-tab="feed"] .feed-side {
  order: 2 !important;
}

body[data-active-tab="feed"] .feed-main {
  order: 1 !important;
}

body[data-active-tab="feed"] .toolbar-card,
body[data-active-tab="feed"] .composer-shell {
  padding-left: 24px !important;
  padding-right: 24px !important;
}

body[data-active-tab="feed"] .thread-card,
body[data-active-tab="feed"] .feed-insert {
  width: 100% !important;
}

body[data-active-tab="research"] .research-feed-surface {
  display: grid !important;
  gap: 12px !important;
  width: 100% !important;
}

body[data-active-tab="research"] .research-feed-surface-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

body[data-active-tab="research"] .research-feed-surface-list {
  display: grid !important;
  gap: 12px !important;
  width: 100% !important;
}

body[data-active-tab="research"] .research-feed-surface .thread-card {
  width: 100% !important;
  padding: 18px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid #e8edf3 !important;
  border-radius: 28px !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05) !important;
}

body[data-active-tab="research"] .research-feed-surface .thread-author-name,
body[data-active-tab="research"] .research-feed-surface .thread-title,
body[data-active-tab="research"] .research-feed-surface .thread-brief-pill strong {
  color: #191f28 !important;
}

body[data-active-tab="research"] .research-feed-surface .thread-author-handle,
body[data-active-tab="research"] .research-feed-surface .thread-author-age,
body[data-active-tab="research"] .research-feed-surface .thread-summary,
body[data-active-tab="research"] .research-feed-surface .level-label {
  color: #8b95a1 !important;
}

body[data-active-tab="research"] .research-feed-surface .thread-brief-pill,
body[data-active-tab="research"] .research-feed-surface .reaction-pill,
body[data-active-tab="research"] .research-feed-surface .meta-chip {
  background: #f9fafb !important;
  border: 1px solid #edf1f5 !important;
  color: #4e5968 !important;
}

@media (max-width: 760px) {
  body[data-active-tab="research"] .research-feed-surface-head {
    align-items: flex-start !important;
    flex-direction: column !important;
  }
}

/* Remove idle explainer block and tighten research hero */
body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-copy {
  display: none !important;
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .stage-header-research {
  gap: 14px !important;
  padding: 20px 24px 24px !important;
}

body[data-active-tab="research"] .app-tab-panel-research.is-idle .research-hero-strip {
  gap: 14px !important;
}

/* Final light-mode contrast pass */
body[data-active-tab="research"],
body[data-active-tab="feed"] {
  --sl-card-bg: #ffffff;
  --sl-card-line: #e5edf5;
  --sl-card-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  --sl-ink-strong: #1a2230;
  --sl-ink: #334155;
  --sl-ink-soft: #6b7684;
  --sl-soft-bg: #f6f8fb;
  --sl-soft-line: #e7edf4;
  --sl-link: #2563eb;
  --sl-link-soft: #eff6ff;
  --sl-positive-bg: #ebfff5;
  --sl-positive-line: #b6f0d2;
  --sl-positive-ink: #127a52;
  --sl-watch-bg: #fff7e1;
  --sl-watch-line: #f3daa1;
  --sl-watch-ink: #9a6800;
  --sl-negative-bg: #fff0f0;
  --sl-negative-line: #f4c0c0;
  --sl-negative-ink: #c23c3c;
}

body[data-active-tab="feed"] .thread-card,
body[data-active-tab="feed"] .feed-insert,
body[data-active-tab="feed"] .toolbar-card,
body[data-active-tab="feed"] .composer-shell,
body[data-active-tab="feed"] .feed-signal-card,
body[data-active-tab="research"] .research-feed-surface .thread-card,
body[data-active-tab="research"] .research-preview-card,
body[data-active-tab="research"] .research-hero-chip,
body[data-active-tab="research"] .research-hero-bridge {
  background: var(--sl-card-bg) !important;
  border-color: var(--sl-card-line) !important;
  box-shadow: var(--sl-card-shadow) !important;
}

body[data-active-tab="feed"] .thread-author-name,
body[data-active-tab="feed"] .thread-title,
body[data-active-tab="feed"] .thread-brief-pill strong,
body[data-active-tab="feed"] .active-signal-title,
body[data-active-tab="feed"] .section-bar h2,
body[data-active-tab="research"] .research-feed-surface .thread-author-name,
body[data-active-tab="research"] .research-feed-surface .thread-title,
body[data-active-tab="research"] .research-feed-surface .thread-brief-pill strong,
body[data-active-tab="research"] .research-preview-card h3,
body[data-active-tab="research"] .research-feed-preview-copy strong {
  color: var(--sl-ink-strong) !important;
}

body[data-active-tab="feed"] .thread-author-handle,
body[data-active-tab="feed"] .thread-author-age,
body[data-active-tab="feed"] .thread-meta,
body[data-active-tab="feed"] .level-label,
body[data-active-tab="feed"] .section-kicker,
body[data-active-tab="feed"] .feed-insert-kicker,
body[data-active-tab="feed"] .mono-label,
body[data-active-tab="feed"] .active-signal-note,
body[data-active-tab="feed"] .active-signal-mini-metrics,
body[data-active-tab="research"] .research-feed-surface .thread-author-handle,
body[data-active-tab="research"] .research-feed-surface .thread-author-age,
body[data-active-tab="research"] .research-feed-surface .thread-summary,
body[data-active-tab="research"] .research-feed-surface .level-label,
body[data-active-tab="research"] .research-preview-author,
body[data-active-tab="research"] .research-preview-card p,
body[data-active-tab="research"] .research-preview-kicker {
  color: var(--sl-ink-soft) !important;
}

body[data-active-tab="feed"] .thread-summary,
body[data-active-tab="feed"] .premium-hook-copy,
body[data-active-tab="feed"] .feed-insert-copy,
body[data-active-tab="research"] .research-feed-surface .thread-summary,
body[data-active-tab="research"] .research-preview-card p {
  color: var(--sl-ink) !important;
}

body[data-active-tab="feed"] .thread-brief-pill,
body[data-active-tab="feed"] .reaction-pill,
body[data-active-tab="feed"] .meta-chip,
body[data-active-tab="feed"] .filter-chip,
body[data-active-tab="feed"] .contribution-chip,
body[data-active-tab="research"] .research-feed-surface .thread-brief-pill,
body[data-active-tab="research"] .research-feed-surface .reaction-pill,
body[data-active-tab="research"] .research-feed-surface .meta-chip {
  background: var(--sl-soft-bg) !important;
  border-color: var(--sl-soft-line) !important;
  color: var(--sl-ink) !important;
}

body[data-active-tab="feed"] .reaction-pill strong,
body[data-active-tab="feed"] .thread-brief-pill strong,
body[data-active-tab="research"] .research-feed-surface .reaction-pill strong,
body[data-active-tab="research"] .research-feed-surface .thread-brief-pill strong {
  color: var(--sl-ink-strong) !important;
}

body[data-active-tab="feed"] .thread-toggle,
body[data-active-tab="feed"] .feed-insert-link,
body[data-active-tab="feed"] .active-signal-link,
body[data-active-tab="feed"] .feed-signal-cta,
body[data-active-tab="research"] .research-hero-feed-link {
  color: var(--sl-link) !important;
  background: var(--sl-link-soft) !important;
  border: 1px solid #cfe0ff !important;
  box-shadow: none !important;
}

body[data-active-tab="feed"] .thread-toggle:hover,
body[data-active-tab="feed"] .feed-insert-link:hover,
body[data-active-tab="feed"] .active-signal-link:hover,
body[data-active-tab="feed"] .feed-signal-cta:hover,
body[data-active-tab="research"] .research-hero-feed-link:hover {
  background: #dbeafe !important;
  border-color: #bcd2ff !important;
}

body[data-active-tab="feed"] .feed-signal-card .mono-label,
body[data-active-tab="feed"] .feed-signal-card .active-signal-title,
body[data-active-tab="feed"] .feed-signal-card .active-signal-note,
body[data-active-tab="feed"] .feed-signal-card .active-signal-mini-metrics,
body[data-active-tab="feed"] .feed-signal-card .reaction-pill {
  color: var(--sl-ink) !important;
}

body[data-active-tab="feed"] .feed-signal-card .active-signal-title {
  color: var(--sl-ink-strong) !important;
}

body[data-active-tab="feed"] .feed-signal-card .reaction-pill {
  background: var(--sl-soft-bg) !important;
  border-color: var(--sl-soft-line) !important;
}

body[data-active-tab="feed"] .signal-delta.positive {
  color: var(--sl-positive-ink) !important;
}

body[data-active-tab="feed"] .signal-delta.negative {
  color: var(--sl-negative-ink) !important;
}

body[data-active-tab="feed"] .status-chip,
body[data-active-tab="research"] .research-feed-surface .status-chip {
  gap: 8px !important;
  color: var(--sl-ink) !important;
  background: var(--sl-soft-bg) !important;
  border-color: var(--sl-soft-line) !important;
}

body[data-active-tab="feed"] .status-chip.tone-positive,
body[data-active-tab="research"] .research-feed-surface .status-chip.tone-positive {
  background: var(--sl-positive-bg) !important;
  border-color: var(--sl-positive-line) !important;
  color: var(--sl-positive-ink) !important;
}

body[data-active-tab="feed"] .status-chip.tone-watch,
body[data-active-tab="research"] .research-feed-surface .status-chip.tone-watch {
  background: var(--sl-watch-bg) !important;
  border-color: var(--sl-watch-line) !important;
  color: var(--sl-watch-ink) !important;
}

body[data-active-tab="feed"] .status-chip.tone-negative,
body[data-active-tab="research"] .research-feed-surface .status-chip.tone-negative {
  background: var(--sl-negative-bg) !important;
  border-color: var(--sl-negative-line) !important;
  color: var(--sl-negative-ink) !important;
}

body[data-active-tab="feed"] .status-chip::before,
body[data-active-tab="research"] .research-feed-surface .status-chip::before {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08) !important;
}

body[data-active-tab="feed"] .feed-insert-bar,
body[data-active-tab="research"] .research-feed-surface-head {
  color: var(--sl-ink-soft) !important;
}

body[data-active-tab="feed"] .active-signal-link,
body[data-active-tab="feed"] .feed-signal-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
}

body[data-active-tab="research"] .theme-toggle,
body[data-active-tab="feed"] .theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(203, 213, 225, 0.9);
  color: #334155;
  box-shadow: none;
}

body[data-active-tab="research"] .theme-toggle-mark,
body[data-active-tab="feed"] .theme-toggle-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 0.92rem;
  line-height: 1;
}

body[data-active-tab="research"] .theme-toggle-label,
body[data-active-tab="feed"] .theme-toggle-label {
  font-size: 0.86rem;
  font-weight: 700;
}

body:not([data-theme="dark"]) .language-picker,
body:not([data-theme="dark"]) .theme-toggle {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(203, 213, 225, 0.9) !important;
  box-shadow: none !important;
}

body:not([data-theme="dark"]) .language-picker select,
body:not([data-theme="dark"]) .theme-toggle {
  color: #334155 !important;
}

body[data-theme="dark"][data-active-tab="research"],
body[data-theme="dark"][data-active-tab="feed"] {
  --sl-card-bg: #121a28;
  --sl-card-line: #243042;
  --sl-card-shadow: 0 18px 38px rgba(2, 6, 23, 0.32);
  --sl-ink-strong: #f3f7fb;
  --sl-ink: #d6dfeb;
  --sl-ink-soft: #94a3b8;
  --sl-soft-bg: #182233;
  --sl-soft-line: #273449;
  --sl-link: #8cc2ff;
  --sl-link-soft: #172742;
  --sl-positive-bg: #0f2d22;
  --sl-positive-line: #1f6b52;
  --sl-positive-ink: #5ce0a7;
  --sl-watch-bg: #352b12;
  --sl-watch-line: #785f19;
  --sl-watch-ink: #ffd86c;
  --sl-negative-bg: #32171b;
  --sl-negative-line: #7e3139;
  --sl-negative-ink: #ff8c98;
  background:
    radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.18) 0%, rgba(37, 99, 235, 0) 24%),
    radial-gradient(circle at 100% 12%, rgba(124, 58, 237, 0.18) 0%, rgba(124, 58, 237, 0) 22%),
    linear-gradient(180deg, #0b1220 0%, #0f172a 100%) !important;
  color: #e5edf7 !important;
}

body[data-theme="dark"] .topbar {
  background: rgba(10, 16, 29, 0.82) !important;
  border-color: rgba(51, 65, 85, 0.72) !important;
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.34) !important;
}

body[data-theme="dark"] .brand-title,
body[data-theme="dark"] .stage-header-copy h2,
body[data-theme="dark"] .stage-header-feed h2,
body[data-theme="dark"] .research-query-text,
body[data-theme="dark"] .research-answer-copy h3,
body[data-theme="dark"] .premium-accordion-titleblock h4,
body[data-theme="dark"] .section-bar h2 {
  color: #f8fbff !important;
}

body[data-theme="dark"] .eyebrow,
body[data-theme="dark"] .section-kicker,
body[data-theme="dark"] .stage-header-copy .section-description,
body[data-theme="dark"] .stage-header-feed .section-description,
body[data-theme="dark"] .research-answer-meta,
body[data-theme="dark"] .research-pill-label,
body[data-theme="dark"] .premium-accordion-body,
body[data-theme="dark"] .premium-accordion-footnote,
body[data-theme="dark"] .premium-more-summary,
body[data-theme="dark"] .language-picker span {
  color: #94a3b8 !important;
}

body[data-theme="dark"] .language-picker,
body[data-theme="dark"] .theme-toggle {
  background: rgba(15, 23, 42, 0.88) !important;
  border-color: rgba(51, 65, 85, 0.9) !important;
  color: #dbe7f5 !important;
}

body[data-theme="dark"] .language-picker select {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #f8fbff !important;
}

body[data-theme="dark"] #thread-search {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #f8fbff !important;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.24) !important;
}

body[data-theme="dark"] #thread-search::placeholder {
  color: #7f8da3 !important;
}

body[data-theme="dark"] .global-search-submit {
  background: #3b82f6 !important;
  border-color: #3b82f6 !important;
  color: #eff6ff !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22) !important;
}

body[data-theme="dark"] .subnav-chip {
  background: #111b2b !important;
  border-color: #2a3b54 !important;
  color: #b7c4d6 !important;
}

body[data-theme="dark"] .subnav-chip.is-active {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #f8fbff !important;
}

body[data-theme="dark"] .stage-header-research,
body[data-theme="dark"] .research-dossier-shell,
body[data-theme="dark"] .research-hero-bridge,
body[data-theme="dark"] .research-hero-chip,
body[data-theme="dark"] .research-preview-card,
body[data-theme="dark"] .research-answer-pill,
body[data-theme="dark"] .premium-map-total,
body[data-theme="dark"] .premium-accordion-price,
body[data-theme="dark"] .thread-card,
body[data-theme="dark"] .feed-insert,
body[data-theme="dark"] .toolbar-card,
body[data-theme="dark"] .composer-shell,
body[data-theme="dark"] .feed-signal-card,
body[data-theme="dark"] .research-feed-surface .thread-card {
  background: var(--sl-card-bg) !important;
  border-color: var(--sl-card-line) !important;
  box-shadow: var(--sl-card-shadow) !important;
}

body[data-theme="dark"] .research-answer-pill,
body[data-theme="dark"] .premium-map-total,
body[data-theme="dark"] .premium-accordion-price,
body[data-theme="dark"] .thread-brief-pill,
body[data-theme="dark"] .reaction-pill,
body[data-theme="dark"] .meta-chip,
body[data-theme="dark"] .filter-chip,
body[data-theme="dark"] .contribution-chip {
  background: var(--sl-soft-bg) !important;
  border-color: var(--sl-soft-line) !important;
  color: var(--sl-ink) !important;
}

body[data-theme="dark"] .thread-author-name,
body[data-theme="dark"] .thread-title,
body[data-theme="dark"] .thread-brief-pill strong,
body[data-theme="dark"] .active-signal-title,
body[data-theme="dark"] .research-preview-card h3,
body[data-theme="dark"] .research-feed-preview-copy strong,
body[data-theme="dark"] .research-pill-value,
body[data-theme="dark"] .research-answer-lead,
body[data-theme="dark"] .reaction-pill strong {
  color: #f3f7fb !important;
}

body[data-theme="dark"] .thread-author-handle,
body[data-theme="dark"] .thread-author-age,
body[data-theme="dark"] .thread-summary,
body[data-theme="dark"] .level-label,
body[data-theme="dark"] .feed-insert-kicker,
body[data-theme="dark"] .mono-label,
body[data-theme="dark"] .active-signal-note,
body[data-theme="dark"] .active-signal-mini-metrics,
body[data-theme="dark"] .research-preview-author,
body[data-theme="dark"] .research-preview-card p,
body[data-theme="dark"] .research-preview-kicker {
  color: #94a3b8 !important;
}

body[data-theme="dark"] .thread-toggle,
body[data-theme="dark"] .feed-insert-link,
body[data-theme="dark"] .active-signal-link,
body[data-theme="dark"] .feed-signal-cta,
body[data-theme="dark"] .research-hero-feed-link,
body[data-theme="dark"] .premium-inline-unlock {
  background: #172742 !important;
  border-color: #28456e !important;
  color: #a8ceff !important;
}

body[data-theme="dark"] .contribution-chip.is-active,
body[data-theme="dark"] .filter-chip.is-active {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #f8fbff !important;
}

/* Final standard light palette pass */
body:not([data-theme="dark"])[data-active-tab="research"],
body:not([data-theme="dark"])[data-active-tab="feed"] {
  --sl-ink-strong: #111827;
  --sl-ink: #374151;
  --sl-ink-soft: #6b7280;
  --sl-link: #2563eb;
  --sl-link-soft: #eff6ff;
  --sl-card-bg: #ffffff;
  --sl-card-line: #e5e7eb;
  --sl-soft-bg: #f9fafb;
  --sl-soft-line: #e5e7eb;
}

body:not([data-theme="dark"]) .brand-title,
body:not([data-theme="dark"]) .stage-header-feed h2,
body:not([data-theme="dark"]) .section-bar h2,
body:not([data-theme="dark"]) .thread-title,
body:not([data-theme="dark"]) .thread-author-name,
body:not([data-theme="dark"]) .active-signal-title,
body:not([data-theme="dark"]) .research-preview-card h3,
body:not([data-theme="dark"]) .research-feed-preview-copy strong {
  color: #111827 !important;
}

body:not([data-theme="dark"]) .eyebrow,
body:not([data-theme="dark"]) .section-kicker,
body:not([data-theme="dark"]) .feed-insert-kicker,
body:not([data-theme="dark"]) .research-preview-kicker,
body:not([data-theme="dark"]) .thread-author-handle,
body:not([data-theme="dark"]) .thread-author-age,
body:not([data-theme="dark"]) .thread-meta,
body:not([data-theme="dark"]) .level-label,
body:not([data-theme="dark"]) .mono-label,
body:not([data-theme="dark"]) .active-signal-note,
body:not([data-theme="dark"]) .active-signal-mini-metrics,
body:not([data-theme="dark"]) .section-description {
  color: #6b7280 !important;
}

body:not([data-theme="dark"]) .thread-summary,
body:not([data-theme="dark"]) .feed-insert-copy,
body:not([data-theme="dark"]) .premium-hook-copy,
body:not([data-theme="dark"]) .research-preview-card p {
  color: #374151 !important;
}

body:not([data-theme="dark"]) .feed-insert-link,
body:not([data-theme="dark"]) .thread-toggle,
body:not([data-theme="dark"]) .active-signal-link,
body:not([data-theme="dark"]) .feed-signal-cta,
body:not([data-theme="dark"]) .research-hero-feed-link {
  color: #2563eb !important;
  border-color: #bfdbfe !important;
  background: #eff6ff !important;
}

body:not([data-theme="dark"]) .feed-insert-link:hover,
body:not([data-theme="dark"]) .thread-toggle:hover,
body:not([data-theme="dark"]) .active-signal-link:hover,
body:not([data-theme="dark"]) .feed-signal-cta:hover,
body:not([data-theme="dark"]) .research-hero-feed-link:hover {
  background: #dbeafe !important;
  border-color: #93c5fd !important;
}

body:not([data-theme="dark"]) .status-chip.tone-positive {
  background: #ecfdf3 !important;
  border-color: #bbf7d0 !important;
  color: #15803d !important;
}

body:not([data-theme="dark"]) .status-chip.tone-watch {
  background: #fffbeb !important;
  border-color: #fde68a !important;
  color: #a16207 !important;
}

body:not([data-theme="dark"]) .status-chip.tone-negative {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #dc2626 !important;
}

/* Final hide top tab switch */
body[data-active-tab="research"] .topbar-subnav,
body[data-active-tab="feed"] .topbar-subnav {
  display: none !important;
}

/* Final feed rank module unification */
body:not([data-theme="dark"])[data-active-tab="feed"] .feed-insert-rank,
body:not([data-theme="dark"])[data-active-tab="feed"] .feed-rank-shell,
body:not([data-theme="dark"])[data-active-tab="feed"] .feed-rank-row {
  background: #ffffff !important;
  border-color: #e5e7eb !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
}

body:not([data-theme="dark"])[data-active-tab="feed"] .feed-rank-shell {
  border: 1px solid #e5e7eb !important;
  border-radius: 24px !important;
  padding: 12px !important;
}

body:not([data-theme="dark"])[data-active-tab="feed"] .feed-rank-row {
  border: 1px solid #e5e7eb !important;
  border-radius: 20px !important;
}

body:not([data-theme="dark"])[data-active-tab="feed"] .feed-rank-head strong,
body:not([data-theme="dark"])[data-active-tab="feed"] .feed-rank-main strong,
body:not([data-theme="dark"])[data-active-tab="feed"] .feed-rank-value strong {
  color: #111827 !important;
}

body:not([data-theme="dark"])[data-active-tab="feed"] .feed-rank-head span,
body:not([data-theme="dark"])[data-active-tab="feed"] .feed-rank-main span,
body:not([data-theme="dark"])[data-active-tab="feed"] .feed-rank-value span,
body:not([data-theme="dark"])[data-active-tab="feed"] .feed-insert-rank .section-description,
body:not([data-theme="dark"])[data-active-tab="feed"] .feed-insert-rank .feed-insert-kicker {
  color: #6b7280 !important;
}

body:not([data-theme="dark"])[data-active-tab="feed"] .feed-rank-order {
  background: #f9fafb !important;
  border: 1px solid #dbe3ec !important;
  color: #4b5563 !important;
}

body:not([data-theme="dark"])[data-active-tab="feed"] .feed-rank-value strong {
  color: #059669 !important;
}
/* Final product redesign: unified feed + research system */
body {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.10), transparent 28%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 24%),
    #eef3f8 !important;
  color: #0f172a !important;
}

.ambient {
  opacity: 0.45 !important;
}

.shell {
  width: min(1120px, calc(100vw - 40px)) !important;
  max-width: 1120px !important;
  margin-inline: auto !important;
}

.page-shell {
  padding: 20px 0 132px !important;
}

.topbar.shell {
  position: sticky !important;
  top: 18px !important;
  z-index: 40 !important;
  display: block !important;
  gap: 0 !important;
  padding: 16px 22px !important;
  border: 1px solid #dce6f2 !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06) !important;
  backdrop-filter: blur(18px) !important;
}

.topbar-main {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 20px !important;
  align-items: center !important;
}

.brand-lockup {
  display: inline-flex !important;
  align-items: center !important;
  gap: 16px !important;
  text-decoration: none !important;
}

.brand-mark {
  width: 56px !important;
  height: 56px !important;
  border-radius: 18px !important;
  background: linear-gradient(145deg, #3b82f6, #2563eb) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.eyebrow,
#brand-kicker {
  margin: 0 0 4px !important;
  font-size: 0.72rem !important;
  line-height: 1 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #64748b !important;
}

.brand-title,
#brand-label {
  margin: 0 !important;
  font-size: 2.2rem !important;
  line-height: 1.02 !important;
  letter-spacing: -0.04em !important;
  color: #111827 !important;
}

.topbar-actions {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

.live-pill,
.topbar-cta,
.theme-toggle,
.language-picker {
  min-height: 48px !important;
  border-radius: 999px !important;
  border: 1px solid #d9e3ef !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.live-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 16px !important;
  color: #475569 !important;
  font-weight: 700 !important;
}

.topbar-cta,
.theme-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 0 18px !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.topbar-cta:hover,
.theme-toggle:hover,
.language-picker:hover {
  border-color: #bfdbfe !important;
  background: #f8fbff !important;
}

.theme-toggle-mark {
  color: #2563eb !important;
}

.language-dropdown {
  position: relative !important;
}

.language-picker {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 14px 0 16px !important;
  cursor: pointer !important;
}

.language-picker span {
  color: #64748b !important;
  font-weight: 600 !important;
}

.language-picker strong {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.language-caret {
  color: #64748b !important;
  font-size: 1rem !important;
  line-height: 1 !important;
}

.language-menu {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  right: 0 !important;
  min-width: 180px !important;
  display: none !important;
  padding: 8px !important;
  border-radius: 20px !important;
  border: 1px solid #d9e3ef !important;
  background: #ffffff !important;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12) !important;
  z-index: 60 !important;
}

.language-dropdown.is-open .language-menu {
  display: grid !important;
  gap: 4px !important;
}

.language-option {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 42px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: transparent !important;
  color: #0f172a !important;
  font-weight: 600 !important;
  text-align: left !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

.language-option:hover {
  background: #f8fbff !important;
}

.language-option:focus-visible {
  outline: none !important;
  box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.26) !important;
}

.language-option.is-active {
  background: #eff6ff !important;
  color: #2563eb !important;
}

.topbar-search {
  position: fixed !important;
  left: 50% !important;
  bottom: 18px !important;
  transform: translateX(-50%) !important;
  width: min(1120px, calc(100vw - 40px)) !important;
  margin: 0 !important;
  z-index: 55 !important;
}

.global-search-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 116px !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 12px !important;
  border-radius: 28px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid #dce6f2 !important;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08) !important;
  backdrop-filter: blur(18px) !important;
}

.global-search-shell {
  display: flex !important;
  align-items: center !important;
  min-height: 68px !important;
  padding: 0 22px !important;
  border-radius: 999px !important;
  border: 1px solid #d9e3ef !important;
  background: #f8fbff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

.global-search-shell input {
  width: 100% !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #0f172a !important;
  font-size: 1.12rem !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
}

.global-search-shell input::placeholder {
  color: #94a3b8 !important;
}

.global-search-submit,
.cta {
  min-height: 68px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #3b82f6, #2563eb) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22) !important;
}

.global-search-submit:hover,
.cta:hover {
  background: linear-gradient(180deg, #2563eb, #1d4ed8) !important;
}

.topbar-subnav {
  display: none !important;
}

.bottom-nav {
  background: rgba(255, 255, 255, 0.94) !important;
  border-top: 1px solid #d9e3ef !important;
  backdrop-filter: blur(16px) !important;
}

.app-tab-panel {
  margin-top: 18px !important;
}

.feed-stage,
.research-stage {
  margin: 0 0 18px !important;
}

.stage-header {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.stage-header-feed .stage-header-copy {
  display: none !important;
}

.stage-header-research {
  display: grid !important;
  gap: 18px !important;
}

.stage-header-research .stage-header-copy {
  display: none !important;
}

.ai-roundtable-form-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 140px !important;
  gap: 12px !important;
  padding: 24px !important;
  background: #ffffff !important;
  border: 1px solid #dce6f2 !important;
  border-radius: 28px !important;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08) !important;
}

.ai-roundtable-question-field {
  min-height: 68px !important;
}

.ai-roundtable-question-field input {
  min-height: 68px !important;
  border-radius: 22px !important;
  border: 1px solid #dce6f2 !important;
  background: #f8fbff !important;
  color: #0f172a !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  padding: 0 22px !important;
}

.research-hero-strip {
  display: grid !important;
  gap: 16px !important;
}

.research-hero-intro,
.command-panel.card,
.toolbar-card,
.thread-card,
.feed-insert,
.composer-shell,
.research-preview-card,
.research-feed-surface,
.research-feed-preview {
  background: #ffffff !important;
  border: 1px solid #dce6f2 !important;
  border-radius: 28px !important;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08) !important;
}

.research-hero-intro {
  padding: 24px !important;
}

.research-hero-kicker {
  display: inline-block !important;
  margin-bottom: 8px !important;
  color: #2563eb !important;
  font-weight: 800 !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

.research-hero-copy h3 {
  margin: 0 !important;
  max-width: 720px !important;
  font-size: 2rem !important;
  line-height: 1.08 !important;
  letter-spacing: -0.04em !important;
  color: #111827 !important;
}

.research-hero-copy p {
  margin: 10px 0 0 !important;
  max-width: 720px !important;
  color: #475569 !important;
  font-size: 1rem !important;
  line-height: 1.65 !important;
}

.research-hero-proof {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 18px !important;
}

.research-hero-examples {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 18px !important;
}

.research-hero-chip {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
  padding: 14px 16px !important;
  min-width: 120px !important;
  border-radius: 20px !important;
  border: 1px solid #dce6f2 !important;
  background: #f8fbff !important;
  color: #0f172a !important;
}

.research-hero-chip-kicker {
  color: #64748b !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

.command-stage {
  margin-top: 0 !important;
}

.command-panel.card {
  padding: 0 !important;
  overflow: hidden !important;
}

.research-results-shell {
  background: transparent !important;
}

.research-dossier-shell {
  display: grid !important;
  gap: 22px !important;
  padding: 28px !important;
}

.research-dossier-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding-bottom: 18px !important;
  border-bottom: 1px solid #edf2f7 !important;
}

.research-dossier-title h3 {
  margin: 6px 0 0 !important;
  font-size: 2rem !important;
  line-height: 1.05 !important;
  letter-spacing: -0.045em !important;
  color: #111827 !important;
}

.research-dossier-title h3 span {
  color: #64748b !important;
  font-weight: 600 !important;
}

.research-query-text,
.research-answer-meta {
  color: #64748b !important;
}

.research-answer-shell {
  display: grid !important;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr) !important;
  gap: 16px !important;
}

.research-answer-copy,
.research-answer-pill,
.premium-accordion-card,
.feed-rank-shell,
.feed-premium-shell,
.return-radar-card,
.feed-signal-card {
  background: #f8fbff !important;
  border: 1px solid #dce6f2 !important;
  box-shadow: none !important;
}

.research-answer-copy {
  padding: 24px !important;
  border-radius: 24px !important;
}

.research-answer-lead {
  margin: 8px 0 10px !important;
  color: #111827 !important;
  font-size: 1.25rem !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
}

.research-answer-meta {
  margin: 0 !important;
  font-size: 0.95rem !important;
  line-height: 1.55 !important;
}

.research-split-meter {
  display: flex !important;
  width: 100% !important;
  height: 12px !important;
  margin-top: 18px !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  background: #e5edf7 !important;
}

.research-split-segment.tone-positive {
  background: #22c55e !important;
}

.research-split-segment.tone-watch {
  background: #f59e0b !important;
}

.research-split-segment.tone-negative {
  background: #ef4444 !important;
}

.research-split-legend {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 12px !important;
}

.research-answer-strip {
  display: grid !important;
  gap: 12px !important;
}

.research-answer-pill {
  min-height: 96px !important;
  padding: 18px 20px !important;
  border-radius: 20px !important;
}

.research-pill-label {
  display: block !important;
  margin-bottom: 10px !important;
  color: #64748b !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

.research-pill-value {
  color: #111827 !important;
  font-size: 1.06rem !important;
  line-height: 1.4 !important;
}

.premium-map-shell {
  display: grid !important;
  gap: 14px !important;
}

.premium-map-head {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

.premium-map-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.premium-map-total {
  color: #64748b !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
}

.premium-accordion-group-flat,
.premium-map-list {
  display: grid !important;
  gap: 10px !important;
}

.premium-accordion-card {
  padding: 18px 20px !important;
  border-radius: 22px !important;
}

.premium-accordion-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 14px !important;
  align-items: start !important;
}

.premium-accordion-titleblock h4 {
  margin: 0 !important;
  color: #111827 !important;
  font-size: 1.02rem !important;
  line-height: 1.35 !important;
}

.premium-accordion-body {
  margin: 8px 0 0 !important;
  color: #475569 !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
}

.premium-accordion-side {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 10px !important;
  min-width: 144px !important;
}

.premium-accordion-price {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  border: 1px solid #dce6f2 !important;
  color: #334155 !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
}

.premium-inline-unlock {
  min-height: 42px !important;
  padding: 0 16px !important;
  box-shadow: none !important;
}

.premium-accordion-points-compact {
  display: grid !important;
  gap: 8px !important;
  margin-top: 14px !important;
}

.premium-accordion-points-compact p,
.premium-accordion-footnote {
  margin: 0 !important;
  color: #475569 !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
}

.premium-more-shell {
  border: 1px solid #dce6f2 !important;
  border-radius: 22px !important;
  background: #ffffff !important;
  padding: 0 !important;
}

.premium-more-summary {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 16px 18px !important;
  cursor: pointer !important;
  color: #0f172a !important;
  font-weight: 700 !important;
}

.premium-more-list {
  display: grid !important;
  gap: 10px !important;
  padding: 0 12px 12px !important;
}

.feed-layout {
  display: block !important;
}

.feed-main,
.feed-side {
  width: 100% !important;
  max-width: none !important;
}

.toolbar-card {
  padding: 18px 20px !important;
  margin-bottom: 16px !important;
}

.filter-row,
.scope-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.scope-row {
  margin-top: 12px !important;
}

.filter-chip,
.scope-chip,
.subnav-chip,
.bottom-nav-item {
  min-height: 42px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  border: 1px solid #dce6f2 !important;
  background: #ffffff !important;
  color: #475569 !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.filter-chip.is-active,
.scope-chip.is-active,
.subnav-chip.is-active,
.bottom-nav-item.is-active {
  background: #eff6ff !important;
  color: #2563eb !important;
  border-color: #bfdbfe !important;
}

.thread-section {
  display: block !important;
}

.section-bar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 14px !important;
}

.section-bar h2,
#public-research-threads-title {
  margin: 0 !important;
  color: #111827 !important;
  font-size: 1.25rem !important;
  line-height: 1.3 !important;
  letter-spacing: -0.03em !important;
}

.thread-feed {
  display: grid !important;
  gap: 14px !important;
}

.thread-card {
  display: grid !important;
  grid-template-columns: 56px minmax(0, 1fr) !important;
  gap: 18px !important;
  padding: 24px !important;
}

.thread-avatar {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background: linear-gradient(145deg, #dbeafe, #bfdbfe) !important;
  color: #1e3a5f !important;
  font-weight: 800 !important;
}

.thread-rail-line {
  background: #e2e8f0 !important;
}

.thread-authorline {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  align-items: center !important;
}

.thread-author-name,
.thread-title,
.proof-title,
.feed-premium-title,
.leaderboard-row-name,
.author-name {
  color: #111827 !important;
}

.thread-author-handle,
.thread-author-age,
.thread-summary,
.proof-meta,
.thread-list li,
.thread-basis,
.leaderboard-row-handle,
.brand-proof-copy,
.author-bio {
  color: #64748b !important;
}

.thread-title {
  margin: 6px 0 10px !important;
  font-size: 1.65rem !important;
  line-height: 1.2 !important;
  letter-spacing: -0.04em !important;
}

.thread-summary {
  margin: 0 0 16px !important;
  font-size: 1rem !important;
  line-height: 1.72 !important;
}

.thread-brief-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.thread-brief-pill {
  min-height: 118px !important;
  padding: 18px !important;
  border-radius: 22px !important;
  background: #f8fbff !important;
  border: 1px solid #dce6f2 !important;
}

.level-label {
  display: block !important;
  margin-bottom: 8px !important;
  color: #64748b !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

.thread-brief-pill strong {
  display: block !important;
  margin-top: 0 !important;
  color: #111827 !important;
  font-size: 1.08rem !important;
  line-height: 1.45 !important;
}

.thread-brief-note {
  display: block !important;
  margin-top: 10px !important;
  color: #475569 !important;
  font-size: 0.96rem !important;
  line-height: 1.52 !important;
}

.thread-details {
  margin-top: 16px !important;
  display: grid !important;
  gap: 14px !important;
}

.thread-levels,
.reaction-row,
.active-signal-mini-metrics,
.feed-premium-tags,
.premium-proof {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.reaction-pill,
.metric-pill,
.meta-chip,
.status-chip {
  min-height: 36px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  border: 1px solid #dce6f2 !important;
  background: #ffffff !important;
  color: #475569 !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.status-chip.tone-positive,
.status-chip.status-chip-buy {
  background: #effdf5 !important;
  border-color: #bbf7d0 !important;
  color: #15803d !important;
}

.status-chip.tone-watch,
.status-chip.status-chip-watch {
  background: #fff7ed !important;
  border-color: #fed7aa !important;
  color: #b45309 !important;
}

.status-chip.tone-negative,
.status-chip.status-chip-sell {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #b91c1c !important;
}

.thread-toggle,
.feed-signal-cta,
.quick-guide-link,
.browse-card-link,
.feed-insert-link {
  color: #2563eb !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.feed-insert {
  padding: 18px 20px !important;
}

.feed-insert-bar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 14px !important;
}

.feed-insert-kicker {
  color: #64748b !important;
  font-size: 0.82rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  font-weight: 800 !important;
}

.feed-signal-grid,
.feed-radar-grid,
.leaderboard-profile-grid {
  display: grid !important;
  gap: 12px !important;
}

.feed-signal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.feed-signal-card,
.return-radar-card,
.feed-rank-row,
.leaderboard-lead,
.leaderboard-profile-card {
  border-radius: 22px !important;
}

.feed-rank-shell {
  padding: 14px !important;
  border-radius: 22px !important;
}

.feed-rank-head {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 10px !important;
  color: #64748b !important;
}

.feed-rank-list {
  display: grid !important;
  gap: 10px !important;
}

.feed-rank-row {
  display: grid !important;
  grid-template-columns: 52px minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 14px 16px !important;
  background: #ffffff !important;
  border: 1px solid #dce6f2 !important;
  text-decoration: none !important;
}

.feed-rank-order {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 999px !important;
  background: #eff6ff !important;
  color: #2563eb !important;
  font-weight: 800 !important;
}

.feed-rank-main strong,
.feed-rank-value strong {
  color: #111827 !important;
}

.feed-rank-main span,
.feed-rank-value span {
  color: #64748b !important;
}

.feed-premium-shell {
  padding: 18px !important;
  border-radius: 22px !important;
}

.composer-shell {
  margin-top: 18px !important;
  padding: 20px !important;
}

.composer-inner {
  margin-top: 14px !important;
}

.field span {
  color: #64748b !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
}

.field input,
.field textarea,
.field select {
  border-radius: 18px !important;
  border: 1px solid #dce6f2 !important;
  background: #f8fbff !important;
  color: #0f172a !important;
  box-shadow: none !important;
}

.field textarea {
  min-height: 120px !important;
}

.composer-hint {
  color: #64748b !important;
}

body[data-theme="dark"] {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 26%),
    #0b1220 !important;
  color: #e5edf8 !important;
}

body[data-theme="dark"] .topbar.shell,
body[data-theme="dark"] .research-hero-intro,
body[data-theme="dark"] .command-panel.card,
body[data-theme="dark"] .toolbar-card,
body[data-theme="dark"] .thread-card,
body[data-theme="dark"] .feed-insert,
body[data-theme="dark"] .composer-shell,
body[data-theme="dark"] .research-preview-card,
body[data-theme="dark"] .research-feed-surface,
body[data-theme="dark"] .research-feed-preview {
  background: rgba(10, 18, 31, 0.86) !important;
  border-color: rgba(91, 126, 176, 0.28) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3) !important;
}

body[data-theme="dark"] .brand-title,
body[data-theme="dark"] #brand-label,
body[data-theme="dark"] .thread-title,
body[data-theme="dark"] .thread-author-name,
body[data-theme="dark"] .research-dossier-title h3,
body[data-theme="dark"] .research-answer-lead,
body[data-theme="dark"] .feed-rank-main strong,
body[data-theme="dark"] .feed-rank-value strong,
body[data-theme="dark"] .premium-accordion-titleblock h4,
body[data-theme="dark"] .section-bar h2,
body[data-theme="dark"] #public-research-threads-title {
  color: #f8fbff !important;
}

body[data-theme="dark"] .eyebrow,
body[data-theme="dark"] #brand-kicker,
body[data-theme="dark"] .thread-summary,
body[data-theme="dark"] .thread-author-handle,
body[data-theme="dark"] .thread-author-age,
body[data-theme="dark"] .research-answer-meta,
body[data-theme="dark"] .research-query-text,
body[data-theme="dark"] .research-pill-label,
body[data-theme="dark"] .premium-map-total,
body[data-theme="dark"] .premium-accordion-body,
body[data-theme="dark"] .premium-accordion-points-compact p,
body[data-theme="dark"] .premium-accordion-footnote,
body[data-theme="dark"] .feed-rank-main span,
body[data-theme="dark"] .feed-rank-value span {
  color: #9fb0c8 !important;
}

body[data-theme="dark"] .live-pill,
body[data-theme="dark"] .topbar-cta,
body[data-theme="dark"] .theme-toggle,
body[data-theme="dark"] .language-picker,
body[data-theme="dark"] .global-search-shell,
body[data-theme="dark"] .research-hero-chip,
body[data-theme="dark"] .research-answer-copy,
body[data-theme="dark"] .research-answer-pill,
body[data-theme="dark"] .premium-accordion-card,
body[data-theme="dark"] .feed-rank-shell,
body[data-theme="dark"] .feed-premium-shell,
body[data-theme="dark"] .return-radar-card,
body[data-theme="dark"] .feed-signal-card,
body[data-theme="dark"] .thread-brief-pill,
body[data-theme="dark"] .reaction-pill,
body[data-theme="dark"] .metric-pill,
body[data-theme="dark"] .meta-chip,
body[data-theme="dark"] .status-chip,
body[data-theme="dark"] .feed-rank-row,
body[data-theme="dark"] .field input,
body[data-theme="dark"] .field textarea,
body[data-theme="dark"] .field select,
body[data-theme="dark"] .premium-more-shell {
  background: rgba(18, 28, 46, 0.92) !important;
  border-color: rgba(91, 126, 176, 0.28) !important;
  color: #d7e4f5 !important;
}

body[data-theme="dark"] .global-search-shell input,
body[data-theme="dark"] .field input,
body[data-theme="dark"] .field textarea,
body[data-theme="dark"] .field select,
body[data-theme="dark"] .language-picker strong {
  color: #f8fbff !important;
}

body[data-theme="dark"] .language-picker span,
body[data-theme="dark"] .language-caret {
  color: #9fb0c8 !important;
}

body[data-theme="dark"] .language-menu {
  background: rgba(10, 18, 31, 0.98) !important;
  border-color: rgba(91, 126, 176, 0.28) !important;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.36) !important;
}

body[data-theme="dark"] .language-option {
  color: #d7e4f5 !important;
}

body[data-theme="dark"] .language-option:hover {
  background: rgba(18, 28, 46, 0.92) !important;
}

body[data-theme="dark"] .language-option.is-active {
  background: rgba(37, 99, 235, 0.18) !important;
  color: #93c5fd !important;
}

body[data-theme="dark"] .filter-chip,
body[data-theme="dark"] .scope-chip,
body[data-theme="dark"] .bottom-nav-item {
  background: rgba(18, 28, 46, 0.92) !important;
  border-color: rgba(91, 126, 176, 0.28) !important;
  color: #d7e4f5 !important;
}

body[data-theme="dark"] .filter-chip.is-active,
body[data-theme="dark"] .scope-chip.is-active,
body[data-theme="dark"] .bottom-nav-item.is-active {
  background: rgba(37, 99, 235, 0.18) !important;
  color: #93c5fd !important;
  border-color: rgba(96, 165, 250, 0.45) !important;
}

@media (max-width: 960px) {
  .topbar-main,
  .research-answer-shell,
  .premium-accordion-head,
  .feed-signal-grid,
  .thread-brief-row {
    grid-template-columns: 1fr !important;
  }

  .topbar-actions {
    justify-content: flex-start !important;
  }

  .topbar-search {
    width: min(100vw - 24px, 1120px) !important;
    bottom: 12px !important;
  }

  .global-search-form {
    grid-template-columns: 1fr !important;
  }

  .research-dossier-head,
  .premium-map-head,
  .feed-insert-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

body:not([data-theme="dark"]) .leaderboard-shell,
body:not([data-theme="dark"]) .leaderboard-lead,
body:not([data-theme="dark"]) .leaderboard-row,
body:not([data-theme="dark"]) .return-radar-card,
body:not([data-theme="dark"]) .feed-signal-card,
body:not([data-theme="dark"]) .active-signal-card {
  background: #ffffff !important;
  border-color: #e5e7eb !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
}

body:not([data-theme="dark"]) .feed-insert-signals,
body:not([data-theme="dark"]) .feed-insert-return,
body:not([data-theme="dark"]) .feed-insert-rank,
body:not([data-theme="dark"]) .feed-insert-premium {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
}

body:not([data-theme="dark"]) .leaderboard-shell .section-bar h2,
body:not([data-theme="dark"]) .leaderboard-lead-top strong,
body:not([data-theme="dark"]) .leaderboard-top-name,
body:not([data-theme="dark"]) .leaderboard-row-name,
body:not([data-theme="dark"]) .active-signal-title,
 body:not([data-theme="dark"]) .return-radar-card strong,
 body:not([data-theme="dark"]) .feed-signal-card strong,
 body:not([data-theme="dark"]) .feed-premium-title,
 body:not([data-theme="dark"]) .feed-insert-signals .mono-label,
 body:not([data-theme="dark"]) .feed-insert-return .mono-label {
  color: #111827 !important;
}

body:not([data-theme="dark"]) .leaderboard-shell .section-description,
body:not([data-theme="dark"]) .leaderboard-basis-copy,
body:not([data-theme="dark"]) .leaderboard-row-basis,
body:not([data-theme="dark"]) .leaderboard-top-handle,
body:not([data-theme="dark"]) .leaderboard-row-handle,
body:not([data-theme="dark"]) .leaderboard-secondary,
body:not([data-theme="dark"]) .return-radar-card span,
body:not([data-theme="dark"]) .return-radar-card p,
body:not([data-theme="dark"]) .active-signal-note,
 body:not([data-theme="dark"]) .active-signal-mini-metrics,
 body:not([data-theme="dark"]) .feed-premium-copy,
 body:not([data-theme="dark"]) .feed-insert-kicker {
  color: #6b7280 !important;
}

body:not([data-theme="dark"]) .leaderboard-primary-stat strong,
body:not([data-theme="dark"]) .leaderboard-row-value strong,
body:not([data-theme="dark"]) .leaderboard-lead .leaderboard-primary-stat strong,
body:not([data-theme="dark"]) .leaderboard-row .leaderboard-row-value strong {
  color: #059669 !important;
}

body:not([data-theme="dark"]) .leaderboard-primary-stat span,
body:not([data-theme="dark"]) .leaderboard-row-value span {
  color: #64748b !important;
}

body:not([data-theme="dark"]) .section-link,
body:not([data-theme="dark"]) .leaderboard-shell .section-link,
body:not([data-theme="dark"]) .return-radar-shell .section-link,
body:not([data-theme="dark"]) .feed-insert .section-link {
  color: #2563eb !important;
}

body:not([data-theme="dark"]) .active-signal-link,
body:not([data-theme="dark"]) .feed-signal-cta {
  background: #eff6ff !important;
  color: #2563eb !important;
  border-color: #bfdbfe !important;
}

body:not([data-theme="dark"]) .feed-premium-shell,
body:not([data-theme="dark"]) .feed-rank-shell {
  background: #f8fbff !important;
  border-color: #e5e7eb !important;
  box-shadow: none !important;
}

body:not([data-theme="dark"]) .topbar {
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05) !important;
}

body:not([data-theme="dark"]) .eyebrow,
body:not([data-theme="dark"]) #brand-kicker {
  display: none !important;
}

body:not([data-theme="dark"]) .global-search-form {
  grid-template-columns: minmax(0, 1fr) 108px !important;
  gap: 10px !important;
}

body:not([data-theme="dark"]) .global-search-shell {
  min-height: 60px !important;
  padding: 0 18px !important;
  background: #ffffff !important;
  border: 1px solid #d1d9e6 !important;
  box-shadow: none !important;
}

body:not([data-theme="dark"]) .global-search-shell:focus-within {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.10) !important;
}

body[data-theme="dark"] .global-search-shell:focus-within {
  border-color: rgba(106, 223, 248, 0.44) !important;
  box-shadow:
    inset 0 0 0 1px rgba(18, 45, 53, 0.96),
    0 0 0 3px rgba(72, 182, 209, 0.10) !important;
}

body:not([data-theme="dark"]) #thread-search {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  font-size: 1.04rem !important;
}

body:not([data-theme="dark"]) #thread-search:focus-visible,
body[data-theme="dark"] #thread-search:focus-visible {
  outline: none !important;
}

body:not([data-theme="dark"]) #thread-search::-webkit-search-decoration,
body:not([data-theme="dark"]) #thread-search::-webkit-search-cancel-button,
body:not([data-theme="dark"]) #thread-search::-webkit-search-results-button,
body:not([data-theme="dark"]) #thread-search::-webkit-search-results-decoration {
  -webkit-appearance: none !important;
}

body:not([data-theme="dark"]) .global-search-submit {
  min-height: 60px !important;
  box-shadow: none !important;
}

body:not([data-theme="dark"]) .topbar-main,
body:not([data-theme="dark"]) .topbar-actions,
body:not([data-theme="dark"]) .language-picker,
body:not([data-theme="dark"]) .theme-toggle,
body:not([data-theme="dark"]) .live-pill {
  align-items: center !important;
}

body:not([data-theme="dark"]) .language-picker,
body:not([data-theme="dark"]) .theme-toggle,
body:not([data-theme="dark"]) .live-pill,
body:not([data-theme="dark"]) .topbar-cta {
  line-height: 1 !important;
}

body:not([data-theme="dark"]) .section-bar,
body:not([data-theme="dark"]) .feed-insert-bar,
body:not([data-theme="dark"]) .feed-rank-head,
body:not([data-theme="dark"]) .active-signal-top,
body:not([data-theme="dark"]) .thread-topline {
  align-items: baseline !important;
}

body:not([data-theme="dark"]) .section-bar h2,
body:not([data-theme="dark"]) .feed-insert-kicker,
body:not([data-theme="dark"]) .section-link {
  line-height: 1.2 !important;
}

body:not([data-theme="dark"]) .thread-authorline {
  align-items: baseline !important;
  gap: 8px !important;
}

body:not([data-theme="dark"]) .thread-author-name,
body:not([data-theme="dark"]) .thread-author-handle,
body:not([data-theme="dark"]) .thread-author-age {
  line-height: 1.2 !important;
}

body:not([data-theme="dark"]) .thread-meta {
  align-items: center !important;
  gap: 8px !important;
}

body:not([data-theme="dark"]) .thread-title,
body:not([data-theme="dark"]) .active-signal-title {
  text-align: left !important;
}

body:not([data-theme="dark"]) .leaderboard-row-main,
body:not([data-theme="dark"]) .feed-rank-main {
  display: grid !important;
  gap: 4px !important;
  align-content: center !important;
}

body:not([data-theme="dark"]) .leaderboard-row-value,
body:not([data-theme="dark"]) .feed-rank-value {
  display: grid !important;
  gap: 2px !important;
  align-content: center !important;
  justify-items: end !important;
  text-align: right !important;
}

body:not([data-theme="dark"]) .leaderboard-row-name,
body:not([data-theme="dark"]) .leaderboard-row-handle,
body:not([data-theme="dark"]) .feed-rank-main strong,
body:not([data-theme="dark"]) .feed-rank-main span {
  line-height: 1.2 !important;
}

body:not([data-theme="dark"]) .mono-label,
body:not([data-theme="dark"]) .signal-delta,
body:not([data-theme="dark"]) .level-label,
body:not([data-theme="dark"]) .research-pill-label {
  line-height: 1.1 !important;
}

body:not([data-theme="dark"]) .thread-brief-pill,
body:not([data-theme="dark"]) .research-answer-pill {
  align-content: start !important;
}

body:not([data-theme="dark"])[data-active-tab="feed"] .toolbar-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: auto !important;
  height: auto !important;
  padding: 16px 18px !important;
}

body:not([data-theme="dark"])[data-active-tab="feed"] .filter-row,
body:not([data-theme="dark"])[data-active-tab="feed"] .scope-row {
  width: auto !important;
  align-items: center !important;
  margin: 0 !important;
}

body:not([data-theme="dark"])[data-active-tab="feed"] .scope-row {
  grid-column: 2 !important;
  justify-content: flex-end !important;
  margin-top: 0 !important;
}

body:not([data-theme="dark"])[data-active-tab="feed"] .thread-feed {
  gap: 12px !important;
}

body:not([data-theme="dark"])[data-active-tab="feed"] .thread-card {
  padding: 20px !important;
  gap: 16px !important;
}

body:not([data-theme="dark"])[data-active-tab="feed"] .thread-title {
  font-size: 1.48rem !important;
  line-height: 1.24 !important;
  margin-bottom: 8px !important;
}

body:not([data-theme="dark"])[data-active-tab="feed"] .thread-summary {
  margin-bottom: 14px !important;
  line-height: 1.62 !important;
}

body:not([data-theme="dark"])[data-active-tab="feed"] .thread-brief-pill {
  min-height: 104px !important;
}

body:not([data-theme="dark"])[data-active-tab="feed"] .section-bar {
  margin-bottom: 10px !important;
}

@media (max-width: 880px) {
  body:not([data-theme="dark"])[data-active-tab="feed"] .toolbar-card {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-content: stretch !important;
  }

  body:not([data-theme="dark"])[data-active-tab="feed"] .scope-row {
    grid-column: 1 !important;
    justify-content: flex-start !important;
    margin-top: 4px !important;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100vw - 24px, 1120px) !important;
  }

  .topbar.shell {
    top: 10px !important;
    padding: 14px 16px !important;
    border-radius: 24px !important;
  }

  .brand-title,
  #brand-label {
    font-size: 1.9rem !important;
  }

  .thread-card {
    grid-template-columns: 1fr !important;
  }

  .thread-rail {
    display: none !important;
  }

  .page-shell {
    padding-bottom: 204px !important;
  }

  .topbar-search {
    bottom: 74px !important;
  }
}

/* Recursive polish pass: unify feed/search density and alignment */
body:not([data-theme="dark"]) .page-shell {
  padding: 16px 0 126px !important;
}

body:not([data-theme="dark"]) .topbar.shell {
  padding: 14px 18px !important;
  border-radius: 22px !important;
}

body:not([data-theme="dark"]) .topbar-main {
  gap: 16px !important;
}

body:not([data-theme="dark"]) .brand-mark {
  width: 48px !important;
  height: 48px !important;
  border-radius: 16px !important;
}

body:not([data-theme="dark"]) .brand-title,
body:not([data-theme="dark"]) #brand-label {
  font-size: 1.9rem !important;
}

body:not([data-theme="dark"]) .theme-toggle,
body:not([data-theme="dark"]) .language-picker {
  min-height: 42px !important;
}

body:not([data-theme="dark"]) .topbar-search {
  bottom: 14px !important;
}

body:not([data-theme="dark"]) .global-search-form {
  grid-template-columns: minmax(0, 1fr) 108px !important;
  gap: 10px !important;
  padding: 10px !important;
  border-radius: 24px !important;
}

body:not([data-theme="dark"]) .global-search-shell {
  min-height: 56px !important;
  padding: 0 18px !important;
}

body:not([data-theme="dark"]) .global-search-shell input {
  font-size: 1rem !important;
  font-weight: 600 !important;
}

body:not([data-theme="dark"]) .global-search-submit,
body:not([data-theme="dark"]) .cta {
  min-height: 56px !important;
  font-size: 0.98rem !important;
}

body:not([data-theme="dark"]) .app-tab-panel {
  margin-top: 14px !important;
}

body:not([data-theme="dark"]) .feed-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 18px !important;
}

body:not([data-theme="dark"]) .feed-main,
body:not([data-theme="dark"]) .feed-side {
  width: 100% !important;
  min-width: 0 !important;
}

body:not([data-theme="dark"]) .feed-main {
  display: grid !important;
  gap: 18px !important;
}

body:not([data-theme="dark"]) .thread-section {
  display: grid !important;
  gap: 12px !important;
}

body:not([data-theme="dark"]) .section-bar,
body:not([data-theme="dark"]) .feed-insert-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 !important;
}

body:not([data-theme="dark"]) .section-bar h2,
body:not([data-theme="dark"]) .feed-insert-kicker {
  margin: 0 !important;
  font-size: 1.05rem !important;
  line-height: 1.25 !important;
  color: #334155 !important;
}

body:not([data-theme="dark"]) .section-link,
body:not([data-theme="dark"]) .feed-insert-link {
  font-size: 0.92rem !important;
  font-weight: 700 !important;
}

body:not([data-theme="dark"]) .story-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

body:not([data-theme="dark"]) .proof-card,
body:not([data-theme="dark"]) .return-radar-card,
body:not([data-theme="dark"]) .leaderboard-card,
body:not([data-theme="dark"]) .toolbar-card,
body:not([data-theme="dark"]) .thread-card,
body:not([data-theme="dark"]) .composer-shell,
body:not([data-theme="dark"]) .feed-insert {
  border-radius: 24px !important;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06) !important;
}

body:not([data-theme="dark"]) .proof-card,
body:not([data-theme="dark"]) .return-radar-card {
  min-height: 0 !important;
  padding: 18px 20px !important;
}

body:not([data-theme="dark"]) .proof-kicker {
  margin-bottom: 8px !important;
  font-size: 0.86rem !important;
  line-height: 1.2 !important;
  color: #64748b !important;
}

body:not([data-theme="dark"]) .proof-title {
  display: block !important;
  margin: 0 0 8px !important;
  font-size: 1rem !important;
  line-height: 1.35 !important;
  color: #0f172a !important;
}

body:not([data-theme="dark"]) .proof-meta {
  font-size: 0.92rem !important;
  line-height: 1.35 !important;
  color: #64748b !important;
}

body:not([data-theme="dark"]) .toolbar-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 12px 16px !important;
  align-items: center !important;
  padding: 16px 18px !important;
}

body:not([data-theme="dark"]) .filter-row,
body:not([data-theme="dark"]) .scope-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 0 !important;
}

body:not([data-theme="dark"]) .scope-row {
  justify-content: flex-end !important;
}

body:not([data-theme="dark"]) .filter-chip,
body:not([data-theme="dark"]) .scope-chip {
  min-height: 40px !important;
  padding: 0 16px !important;
  font-size: 0.92rem !important;
}

body:not([data-theme="dark"]) .thread-feed {
  display: grid !important;
  gap: 16px !important;
}

body:not([data-theme="dark"]) .thread-card {
  padding: 18px 20px !important;
}

body:not([data-theme="dark"]) .thread-body {
  display: grid !important;
  gap: 12px !important;
}

body:not([data-theme="dark"]) .thread-topline {
  align-items: start !important;
  gap: 10px !important;
}

body:not([data-theme="dark"]) .thread-authorline {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
}

body:not([data-theme="dark"]) .thread-author-name {
  font-size: 1rem !important;
  line-height: 1.2 !important;
}

body:not([data-theme="dark"]) .thread-author-handle,
body:not([data-theme="dark"]) .thread-author-age {
  font-size: 0.88rem !important;
  color: #64748b !important;
}

body:not([data-theme="dark"]) .thread-title {
  margin: 0 !important;
  font-size: 1.12rem !important;
  line-height: 1.35 !important;
  letter-spacing: -0.02em !important;
}

body:not([data-theme="dark"]) .thread-summary {
  margin: 0 !important;
  font-size: 0.98rem !important;
  line-height: 1.62 !important;
  color: #475569 !important;
}

body:not([data-theme="dark"]) .thread-brief-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body:not([data-theme="dark"]) .thread-brief-pill {
  padding: 16px !important;
  border-radius: 18px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

body:not([data-theme="dark"]) .thread-brief-pill strong {
  font-size: 0.98rem !important;
  line-height: 1.45 !important;
  color: #0f172a !important;
}

body:not([data-theme="dark"]) .level-label {
  display: block !important;
  margin-bottom: 8px !important;
  font-size: 0.84rem !important;
  color: #64748b !important;
}

body:not([data-theme="dark"]) .thread-details {
  display: grid !important;
  gap: 12px !important;
}

body:not([data-theme="dark"]) .thread-list,
body:not([data-theme="dark"]) .thread-levels,
body:not([data-theme="dark"]) .reaction-row {
  margin: 0 !important;
}

body:not([data-theme="dark"]) .reaction-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

body:not([data-theme="dark"]) .reaction-pill {
  min-height: 34px !important;
  padding: 0 12px !important;
  font-size: 0.84rem !important;
}

body:not([data-theme="dark"]) .thread-toggle {
  align-self: start !important;
  min-height: 38px !important;
  padding: 0 14px !important;
}

body:not([data-theme="dark"]) .leaderboard-card {
  padding: 18px !important;
}

body:not([data-theme="dark"]) .leaderboard-metric-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 14px !important;
}

body:not([data-theme="dark"]) .leaderboard-list {
  display: grid !important;
  gap: 12px !important;
  margin-top: 14px !important;
}

body:not([data-theme="dark"]) .leaderboard-lead,
body:not([data-theme="dark"]) .leaderboard-row {
  border-radius: 20px !important;
  padding: 16px 18px !important;
}

@media (max-width: 900px) {
  body:not([data-theme="dark"]) .story-grid,
  body:not([data-theme="dark"]) .thread-brief-row,
  body:not([data-theme="dark"]) .toolbar-card {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body:not([data-theme="dark"]) .scope-row {
    justify-content: flex-start !important;
  }
}

/* Identity pass: unify palette, surfaces, and interaction colors */
body:not([data-theme="dark"]) {
  --identity-bg: #eff4fa;
  --identity-surface: #ffffff;
  --identity-surface-soft: #f8fbff;
  --identity-border: #d9e4f2;
  --identity-border-strong: #c7d8ee;
  --identity-text: #172334;
  --identity-text-soft: #5f6f82;
  --identity-accent: #2f6fec;
  --identity-accent-strong: #1f5bd6;
  --identity-accent-soft: #e9f1ff;
  --identity-shadow: 0 16px 36px rgba(47, 74, 122, 0.08);
}

body[data-theme="dark"] {
  --identity-bg: #0f1724;
  --identity-surface: #121c2b;
  --identity-surface-soft: #182435;
  --identity-border: #223247;
  --identity-border-strong: #2c3f59;
  --identity-text: #edf4ff;
  --identity-text-soft: #93a7c4;
  --identity-accent: #6ea8ff;
  --identity-accent-strong: #4f8fff;
  --identity-accent-soft: rgba(110, 168, 255, 0.14);
  --identity-shadow: 0 18px 40px rgba(2, 8, 23, 0.38);
}

body {
  background:
    radial-gradient(circle at top left, rgba(82, 146, 255, 0.10), transparent 26%),
    radial-gradient(circle at top right, rgba(126, 163, 255, 0.10), transparent 22%),
    var(--identity-bg) !important;
  color: var(--identity-text) !important;
}

.topbar.shell,
.global-search-form,
.toolbar-card,
.thread-card,
.leaderboard-card,
.proof-card,
.return-radar-card,
.composer-shell,
.feed-insert,
.research-preview-card,
.research-feed-surface,
.research-feed-preview,
.command-panel.card,
.ai-roundtable-form-hero {
  background: var(--identity-surface) !important;
  border-color: var(--identity-border) !important;
  box-shadow: var(--identity-shadow) !important;
}

.global-search-shell,
.thread-brief-pill,
.leaderboard-lead,
.leaderboard-row,
.feed-rank-shell,
.feed-rank-row,
.reaction-pill,
.metric-pill,
.filter-chip,
.scope-chip,
.language-picker,
.theme-toggle,
.status-chip,
.follow-btn,
.thread-toggle {
  background: var(--identity-surface-soft) !important;
  border-color: var(--identity-border) !important;
  color: var(--identity-text-soft) !important;
}

.brand-title,
#brand-label,
.thread-title,
.proof-title,
.leaderboard-row-name,
.author-name,
.feed-rank-head strong,
.feed-rank-main strong,
.feed-rank-value strong,
.section-bar h2,
.section-stack h2,
.thread-brief-pill strong,
.thread-author-name {
  color: var(--identity-text) !important;
}

.eyebrow,
#brand-kicker,
.thread-author-handle,
.thread-author-age,
.thread-summary,
.proof-meta,
.proof-kicker,
.section-description,
.section-kicker,
.level-label,
.leaderboard-row-handle,
.leaderboard-row-basis,
.leaderboard-basis-copy,
.feed-rank-head span,
.feed-rank-main span,
.feed-rank-value span,
.language-picker span,
.theme-toggle-label {
  color: var(--identity-text-soft) !important;
}

.brand-mark,
.global-search-submit,
.cta,
.filter-chip.is-active,
.scope-chip.is-active,
.follow-btn.is-following,
.follow-btn:hover,
.topbar-cta {
  background: linear-gradient(180deg, var(--identity-accent), var(--identity-accent-strong)) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

.filter-chip.is-active,
.scope-chip.is-active {
  box-shadow: 0 12px 24px rgba(47, 111, 236, 0.18) !important;
}

.global-search-submit:hover,
.cta:hover {
  background: linear-gradient(180deg, var(--identity-accent-strong), #1a4fbf) !important;
}

.section-link,
.feed-insert-link,
.thread-toggle,
.language-option.is-active,
.theme-toggle-mark {
  color: var(--identity-accent) !important;
}

.section-link:hover,
.feed-insert-link:hover,
.thread-toggle:hover {
  background: var(--identity-accent-soft) !important;
  border-color: var(--identity-border-strong) !important;
}

.thread-card,
.leaderboard-card,
.proof-card,
.return-radar-card,
.toolbar-card,
.composer-shell,
.feed-insert {
  border-radius: 24px !important;
}

.status-chip.tone-positive,
.status-chip.status-chip-buy {
  background: rgba(26, 176, 114, 0.12) !important;
  border-color: rgba(26, 176, 114, 0.22) !important;
  color: #138a5a !important;
}

.status-chip.tone-watch,
.status-chip.status-chip-watch {
  background: rgba(229, 159, 25, 0.13) !important;
  border-color: rgba(229, 159, 25, 0.24) !important;
  color: #a56c06 !important;
}

.status-chip.tone-negative,
.status-chip.status-chip-sell {
  background: rgba(227, 78, 78, 0.12) !important;
  border-color: rgba(227, 78, 78, 0.22) !important;
  color: #c53a3a !important;
}

body[data-theme="dark"] .global-search-submit,
body[data-theme="dark"] .cta,
body[data-theme="dark"] .filter-chip.is-active,
body[data-theme="dark"] .scope-chip.is-active,
body[data-theme="dark"] .follow-btn.is-following,
body[data-theme="dark"] .follow-btn:hover,
body[data-theme="dark"] .topbar-cta,
body[data-theme="dark"] .brand-mark {
  color: #08111f !important;
}

body[data-theme="dark"] .status-chip.tone-positive,
body[data-theme="dark"] .status-chip.status-chip-buy {
  color: #6cf0b2 !important;
}

body[data-theme="dark"] .status-chip.tone-watch,
body[data-theme="dark"] .status-chip.status-chip-watch {
  color: #ffd56e !important;
}

body[data-theme="dark"] .status-chip.tone-negative,
body[data-theme="dark"] .status-chip.status-chip-sell {
  color: #ff9393 !important;
}

/* Story-card identity unification */
.story-card {
  background: var(--identity-surface) !important;
  border: 1px solid var(--identity-border) !important;
  border-radius: 24px !important;
  box-shadow: var(--identity-shadow) !important;
}

.story-card-live,
.story-card-closed {
  background: var(--identity-surface) !important;
}

.story-kicker,
.story-summary,
.story-progress-count,
.author-inline-handle {
  color: var(--identity-text-soft) !important;
}

.story-title,
.author-inline-name,
.story-metric strong {
  color: var(--identity-text) !important;
}

.story-progress-step {
  background: var(--identity-surface-soft) !important;
  border: 1px solid var(--identity-border) !important;
  color: var(--identity-text-soft) !important;
}

.story-progress-step.is-active {
  background: var(--identity-accent-soft) !important;
  border-color: rgba(47, 111, 236, 0.2) !important;
  color: var(--identity-accent-strong) !important;
}

.story-progress-count {
  background: rgba(22, 163, 74, 0.10) !important;
  border: 1px solid rgba(22, 163, 74, 0.18) !important;
  color: #15803d !important;
}

.story-metric {
  background: var(--identity-surface-soft) !important;
  border: 1px solid var(--identity-border) !important;
}

.story-chart {
  background: linear-gradient(180deg, rgba(47, 111, 236, 0.03), rgba(47, 111, 236, 0)) !important;
  border: 1px solid var(--identity-border) !important;
}

.ghost-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  border-radius: 999px !important;
  background: var(--identity-accent-soft) !important;
  border: 1px solid rgba(47, 111, 236, 0.16) !important;
  color: var(--identity-accent) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.ghost-cta:hover {
  background: #dce9ff !important;
  border-color: rgba(47, 111, 236, 0.24) !important;
  color: var(--identity-accent-strong) !important;
}

.leaderboard-lead,
.leaderboard-row {
  background: var(--identity-surface-soft) !important;
  border: 1px solid var(--identity-border) !important;
}

.leaderboard-row-rank,
.author-rank-chip,
.feed-rank-order {
  background: var(--identity-accent-soft) !important;
  border-color: rgba(47, 111, 236, 0.14) !important;
  color: var(--identity-accent) !important;
}

.proof-card-dark,
.proof-card-light,
.feed-proof-card,
.feed-signal-card,
.feed-radar-card {
  background: var(--identity-surface) !important;
  border: 1px solid var(--identity-border) !important;
  box-shadow: var(--identity-shadow) !important;
}

/* Pulse Deck signature pass: one stronger product identity */
body:not([data-theme="dark"]) {
  --loom-accent: #2f6fec;
  --loom-accent-strong: #1f5bd6;
  --loom-accent-soft: #edf4ff;
  --loom-accent-line: rgba(47, 111, 236, 0.18);
  --loom-card-shadow: 0 18px 38px rgba(39, 74, 132, 0.08);
}

body[data-theme="dark"] {
  --loom-accent: #78a9ff;
  --loom-accent-strong: #5f95ff;
  --loom-accent-soft: rgba(120, 169, 255, 0.12);
  --loom-accent-line: rgba(120, 169, 255, 0.18);
  --loom-card-shadow: 0 18px 40px rgba(2, 8, 23, 0.42);
}

.topbar.shell,
.global-search-form,
.story-card,
.leaderboard-card,
.toolbar-card,
.thread-card,
.feed-insert,
.composer-shell,
.proof-card,
.return-radar-card {
  box-shadow: var(--loom-card-shadow) !important;
}

.topbar.shell,
.story-card,
.leaderboard-card,
.toolbar-card,
.thread-card,
.feed-insert,
.composer-shell,
.proof-card,
.return-radar-card {
  position: relative !important;
  overflow: hidden !important;
}

.topbar.shell::after,
.story-card::after,
.leaderboard-card::after,
.toolbar-card::after,
.thread-card::after,
.feed-insert::after,
.composer-shell::after,
.proof-card::after,
.return-radar-card::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  pointer-events: none !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

.topbar.shell::before,
.story-card::before,
.leaderboard-card::before,
.toolbar-card::before,
.thread-card::before,
.feed-insert::before,
.composer-shell::before,
.proof-card::before,
.return-radar-card::before {
  content: "" !important;
  position: absolute !important;
  left: 18px !important;
  right: 18px !important;
  top: 0 !important;
  height: 3px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, transparent 0%, var(--loom-accent-line) 12%, var(--loom-accent) 52%, var(--loom-accent-line) 88%, transparent 100%) !important;
  opacity: 0.95 !important;
  pointer-events: none !important;
}

.brand-mark {
  background: linear-gradient(145deg, var(--loom-accent), var(--loom-accent-strong)) !important;
}

.brand-title,
#brand-label {
  letter-spacing: -0.055em !important;
}

.eyebrow,
#brand-kicker {
  color: #6f8097 !important;
}

.theme-toggle-mark,
.section-link,
.feed-insert-link,
.thread-toggle,
.ghost-cta,
.language-option.is-active {
  color: var(--loom-accent) !important;
}

.theme-toggle,
.language-picker,
.filter-chip,
.scope-chip,
.reaction-pill,
.metric-pill,
.thread-brief-pill,
.story-metric,
.premium-accordion-price {
  border-color: var(--loom-accent-line) !important;
}

.global-search-shell,
.thread-brief-pill,
.story-metric,
.leaderboard-lead,
.leaderboard-row,
.feed-rank-shell,
.feed-rank-row,
.reaction-pill,
.metric-pill,
.filter-chip,
.scope-chip {
  background: color-mix(in srgb, var(--identity-surface-soft) 88%, var(--loom-accent-soft) 12%) !important;
}

.filter-chip.is-active,
.scope-chip.is-active,
.global-search-submit,
.cta {
  background: linear-gradient(180deg, var(--loom-accent), var(--loom-accent-strong)) !important;
}

.story-kicker,
.proof-kicker,
.feed-insert-kicker,
.section-kicker,
.level-label {
  letter-spacing: 0.05em !important;
}

.section-bar,
.feed-insert-bar {
  padding-bottom: 8px !important;
  border-bottom: 1px solid var(--loom-accent-line) !important;
}

.section-bar h2,
.feed-insert-kicker {
  color: #304156 !important;
}

.story-progress-step.is-active,
.feed-rank-order,
.author-rank-chip,
.leaderboard-row-rank {
  background: var(--loom-accent-soft) !important;
  border: 1px solid var(--loom-accent-line) !important;
  color: var(--loom-accent) !important;
}

.story-progress-count {
  background: color-mix(in srgb, white 78%, #22c55e 22%) !important;
  border-color: rgba(34, 197, 94, 0.18) !important;
}

.thread-avatar {
  background: linear-gradient(145deg, color-mix(in srgb, white 72%, var(--loom-accent-soft) 28%), color-mix(in srgb, white 55%, var(--loom-accent-soft) 45%)) !important;
  color: #28456e !important;
}

.thread-rail-line {
  background: linear-gradient(180deg, var(--loom-accent-line), rgba(47, 111, 236, 0.04)) !important;
}

.ghost-cta {
  background: var(--loom-accent-soft) !important;
  border-color: var(--loom-accent-line) !important;
}

.ghost-cta:hover,
.section-link:hover,
.feed-insert-link:hover,
.thread-toggle:hover {
  background: color-mix(in srgb, white 70%, var(--loom-accent-soft) 30%) !important;
}

body[data-theme="dark"] .section-bar h2,
body[data-theme="dark"] .feed-insert-kicker {
  color: #cad8ee !important;
}

body[data-theme="dark"] .eyebrow,
body[data-theme="dark"] #brand-kicker {
  color: #8ea5c4 !important;
}

/* Three-color system: background / ink / accent */
body:not([data-theme="dark"]) {
  --tri-bg: #f5f7fb;
  --tri-surface: #ffffff;
  --tri-surface-soft: #eef3fb;
  --tri-ink: #1f2937;
  --tri-muted: #6b7280;
  --tri-line: rgba(37, 99, 235, 0.14);
  --tri-accent: #2563eb;
  --tri-accent-strong: #1d4ed8;
  --tri-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

body[data-theme="dark"] {
  --tri-bg: #0f172a;
  --tri-surface: #111827;
  --tri-surface-soft: #162033;
  --tri-ink: #e5eefc;
  --tri-muted: #9aa8bc;
  --tri-line: rgba(96, 165, 250, 0.18);
  --tri-accent: #60a5fa;
  --tri-accent-strong: #3b82f6;
  --tri-shadow: 0 18px 40px rgba(2, 8, 23, 0.34);
}

body {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 24%),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.06), transparent 20%),
    var(--tri-bg) !important;
  color: var(--tri-ink) !important;
}

.topbar.shell,
.global-search-form,
.story-card,
.leaderboard-card,
.toolbar-card,
.thread-card,
.feed-insert,
.composer-shell,
.proof-card,
.return-radar-card,
.feed-rank-shell,
.feed-rank-row,
.leaderboard-lead,
.leaderboard-row,
.premium-accordion-card,
.research-answer-copy,
.research-answer-pill {
  background: var(--tri-surface) !important;
  border-color: var(--tri-line) !important;
  box-shadow: var(--tri-shadow) !important;
}

.global-search-shell,
.thread-brief-pill,
.story-metric,
.filter-chip,
.scope-chip,
.reaction-pill,
.metric-pill,
.premium-accordion-price,
.language-picker,
.theme-toggle,
.story-progress-step,
.story-progress-count,
.ghost-cta,
.thread-toggle,
.follow-btn {
  background: var(--tri-surface-soft) !important;
  border-color: var(--tri-line) !important;
  color: var(--tri-muted) !important;
}

.brand-title,
#brand-label,
.section-bar h2,
.feed-insert-kicker,
.story-title,
.proof-title,
.thread-title,
.thread-author-name,
.leaderboard-row-name,
.author-name,
.feed-rank-head strong,
.feed-rank-main strong,
.feed-rank-value strong,
.thread-brief-pill strong,
.story-metric strong,
.research-answer-lead,
.premium-accordion-titleblock h4 {
  color: var(--tri-ink) !important;
}

.eyebrow,
#brand-kicker,
.section-description,
.section-kicker,
.story-kicker,
.story-summary,
.proof-kicker,
.proof-meta,
.thread-author-handle,
.thread-author-age,
.thread-summary,
.thread-list li,
.level-label,
.leaderboard-row-handle,
.leaderboard-row-basis,
.leaderboard-basis-copy,
.feed-rank-head span,
.feed-rank-main span,
.feed-rank-value span,
.research-answer-meta,
.premium-accordion-body,
.premium-accordion-points-compact p,
.premium-accordion-footnote {
  color: var(--tri-muted) !important;
}

.brand-mark,
.global-search-submit,
.cta,
.filter-chip.is-active,
.scope-chip.is-active,
.follow-btn.is-following,
.follow-btn:hover,
.bottom-nav-item.is-active {
  background: var(--tri-accent) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.global-search-submit:hover,
.cta:hover {
  background: var(--tri-accent-strong) !important;
}

.section-link,
.feed-insert-link,
.thread-toggle,
.ghost-cta,
.language-option.is-active,
.theme-toggle-mark {
  color: var(--tri-accent) !important;
}

.section-link:hover,
.feed-insert-link:hover,
.thread-toggle:hover,
.ghost-cta:hover {
  background: var(--tri-surface-soft) !important;
  border-color: var(--tri-line) !important;
}

.brand-mark {
  background: var(--tri-accent) !important;
}

.topbar.shell::before,
.story-card::before,
.leaderboard-card::before,
.toolbar-card::before,
.thread-card::before,
.feed-insert::before,
.composer-shell::before,
.proof-card::before,
.return-radar-card::before {
  background: linear-gradient(90deg, transparent 0%, var(--tri-line) 16%, var(--tri-accent) 50%, var(--tri-line) 84%, transparent 100%) !important;
}

.section-bar,
.feed-insert-bar {
  border-bottom: 1px solid var(--tri-line) !important;
}

.thread-avatar {
  background: var(--tri-surface-soft) !important;
  color: var(--tri-accent-strong) !important;
}

.thread-rail-line {
  background: linear-gradient(180deg, var(--tri-line), transparent) !important;
}

.feed-rank-order,
.leaderboard-row-rank,
.author-rank-chip,
.story-progress-step.is-active {
  background: var(--tri-surface-soft) !important;
  border-color: var(--tri-line) !important;
  color: var(--tri-accent) !important;
}

/* Keep status semantics, but only via indicator dots */
.status-chip {
  background: var(--tri-surface-soft) !important;
  border-color: var(--tri-line) !important;
  color: var(--tri-ink) !important;
}

.status-chip.tone-positive,
.status-chip.tone-watch,
.status-chip.tone-negative,
.status-chip.status-chip-buy,
.status-chip.status-chip-watch,
.status-chip.status-chip-sell {
  background: var(--tri-surface-soft) !important;
  border-color: var(--tri-line) !important;
  color: var(--tri-ink) !important;
}

.status-chip.tone-positive::before,
.status-chip.status-chip-buy::before {
  background: #22c55e !important;
}

.status-chip.tone-watch::before,
.status-chip.status-chip-watch::before {
  background: #f59e0b !important;
}

.status-chip.tone-negative::before,
.status-chip.status-chip-sell::before {
  background: #ef4444 !important;
}

/* Simplification pass: reduce first-screen density */
body[data-active-tab="feed"] .feed-layout,
body[data-active-tab="feed"] .feed-main {
  gap: 16px !important;
}

body[data-active-tab="feed"] .thread-section {
  gap: 10px !important;
}

body[data-active-tab="feed"] .section-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 6px !important;
  padding-bottom: 6px !important;
}

body[data-active-tab="feed"] .section-bar h2,
body[data-active-tab="feed"] .feed-insert-kicker {
  font-size: 0.95rem !important;
  line-height: 1.25 !important;
}

body[data-active-tab="feed"] .section-link,
body[data-active-tab="feed"] .feed-insert-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 32px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  font-size: 0.82rem !important;
  line-height: 1 !important;
}

body[data-active-tab="feed"] .story-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

body[data-active-tab="feed"] .story-card.story-card-compact {
  gap: 12px !important;
  padding: 16px 18px !important;
  min-height: 0 !important;
}

body[data-active-tab="feed"] .story-card.story-card-compact .story-header > div {
  display: grid;
  gap: 6px;
}

body[data-active-tab="feed"] .story-card.story-card-compact .story-title {
  margin: 0 !important;
  font-size: 1.02rem !important;
  line-height: 1.3 !important;
  font-family: inherit !important;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-active-tab="feed"] .story-card.story-card-compact .status-chip {
  min-height: 30px !important;
  padding: 0 10px !important;
  font-size: 0.82rem !important;
}

body[data-active-tab="feed"] .story-metrics-compact {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

body[data-active-tab="feed"] .story-metric-inline {
  display: grid !important;
  grid-template-columns: 4.4rem minmax(0, 1fr) !important;
  align-items: start !important;
  column-gap: 10px !important;
  row-gap: 5px !important;
  min-height: 78px !important;
  padding: 12px 14px !important;
  border-radius: 18px !important;
  border: 1px solid var(--tri-line) !important;
  background: var(--tri-surface-soft) !important;
}

body[data-active-tab="feed"] .story-metric-inline .level-label {
  margin: 0 !important;
  font-size: 0.72rem !important;
  line-height: 1.2 !important;
  text-align: left !important;
  width: 4.4rem !important;
  min-width: 4.4rem !important;
}

body[data-active-tab="feed"] .story-metric-inline strong {
  font-size: 0.9rem !important;
  line-height: 1.45 !important;
  color: var(--tri-ink) !important;
  text-align: left !important;
  justify-self: start !important;
  min-width: 0 !important;
}

body[data-active-tab="feed"] .story-metric-note {
  grid-column: 2;
  font-size: 0.78rem !important;
  line-height: 1.35 !important;
  color: var(--tri-muted) !important;
}

body[data-active-tab="feed"] .story-card.story-card-compact .ghost-cta {
  min-height: 34px !important;
  padding: 0 12px !important;
  font-size: 0.88rem !important;
  justify-self: start !important;
  width: auto !important;
}

body[data-active-tab="feed"] .leaderboard-card {
  padding: 16px 18px !important;
}

body[data-active-tab="feed"] #leaderboard-kicker,
body[data-active-tab="feed"] #leaderboard-description,
body[data-active-tab="feed"] .leaderboard-metric-row {
  display: none !important;
}

body[data-active-tab="feed"] .leaderboard-list-simple {
  display: grid;
  gap: 8px;
}

body[data-active-tab="feed"] .leaderboard-row-simple {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) minmax(110px, auto) !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 14px !important;
  border-radius: 18px !important;
  border: 1px solid var(--tri-line) !important;
  background: var(--tri-surface-soft) !important;
}

body[data-active-tab="feed"] .leaderboard-row-simple .leaderboard-row-value {
  display: grid !important;
  justify-items: end !important;
  gap: 2px !important;
  text-align: right !important;
}

body[data-active-tab="feed"] .leaderboard-row-simple .leaderboard-row-name {
  margin: 0 !important;
  font-size: 1rem !important;
}

body[data-active-tab="feed"] .leaderboard-row-simple .leaderboard-row-handle,
body[data-active-tab="feed"] .leaderboard-row-simple .leaderboard-row-basis,
body[data-active-tab="feed"] .leaderboard-row-simple .leaderboard-row-value span {
  font-size: 0.82rem !important;
}

body[data-active-tab="feed"] .return-radar {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

body[data-active-tab="feed"] .return-radar-card {
  gap: 6px !important;
  min-height: auto !important;
  padding: 14px 16px !important;
}

body[data-active-tab="feed"] .return-radar-card .proof-title {
  font-size: 1rem !important;
  line-height: 1.3 !important;
}

body[data-active-tab="feed"] .toolbar-card {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 14px 16px !important;
  margin-bottom: 18px !important;
}

body[data-active-tab="feed"] .filter-row,
body[data-active-tab="feed"] .scope-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center !important;
}

body[data-active-tab="feed"] .scope-row {
  justify-content: flex-end !important;
}

body[data-active-tab="feed"] .toolbar-card + .thread-section {
  margin-top: 0 !important;
}

body[data-active-tab="feed"] .filter-chip,
body[data-active-tab="feed"] .scope-chip {
  min-height: 34px !important;
  padding: 0 12px !important;
  font-size: 0.85rem !important;
}

body[data-active-tab="feed"] .thread-card {
  gap: 12px !important;
  padding: 18px !important;
}

body[data-active-tab="feed"] .thread-topline {
  align-items: center !important;
}

body[data-active-tab="feed"] .thread-title {
  font-size: 1.22rem !important;
  line-height: 1.32 !important;
}

body[data-active-tab="feed"] .thread-summary {
  font-size: 0.95rem !important;
  line-height: 1.55 !important;
}

body[data-active-tab="feed"] .thread-card.is-collapsed .thread-summary {
  -webkit-line-clamp: 2 !important;
}

body[data-active-tab="feed"] .thread-card.is-collapsed .thread-details {
  display: none !important;
}

body[data-active-tab="feed"] .thread-brief-row {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

body[data-active-tab="feed"] .thread-brief-pill {
  gap: 8px !important;
  padding: 12px 14px !important;
}

body[data-active-tab="feed"] .thread-toggle {
  min-height: 34px !important;
  padding: 0 12px !important;
}

body[data-active-tab="feed"] .thread-authorline {
  gap: 8px !important;
}

body[data-active-tab="feed"] .thread-author-name {
  font-size: 1rem !important;
}

body[data-active-tab="feed"] .thread-author-handle,
body[data-active-tab="feed"] .thread-author-age,
body[data-active-tab="feed"] .thread-meta {
  font-size: 0.84rem !important;
}

.topbar-search {
  padding-top: 10px !important;
  padding-bottom: 14px !important;
}

.topbar-main {
  align-items: center !important;
}

.topbar-actions {
  align-items: center !important;
}

.language-picker,
.theme-toggle {
  min-height: 42px !important;
}

.global-search-form {
  gap: 10px !important;
}

#thread-search {
  min-height: 50px !important;
  padding-inline: 18px !important;
  font-size: 0.98rem !important;
}

.global-search-submit {
  min-height: 50px !important;
  padding: 0 18px !important;
  font-size: 0.92rem !important;
}

@media (max-width: 900px) {
  body[data-active-tab="feed"] .story-grid,
  body[data-active-tab="feed"] .return-radar,
  body[data-active-tab="feed"] .thread-brief-row {
    grid-template-columns: 1fr !important;
  }

  body[data-active-tab="feed"] .toolbar-card {
    display: grid !important;
    justify-content: stretch !important;
  }

  body[data-active-tab="feed"] .scope-row {
    justify-content: flex-start !important;
  }
}

/* Brand palette pass: charcoal + neon green identity */
:root {
  --sl-accent: #7dff4f;
  --sl-accent-strong: #a3ff7a;
  --sl-accent-soft: rgba(95, 155, 109, 0.12);
  --sl-accent-line: rgba(95, 155, 109, 0.22);
  --sl-ink: #101713;
  --sl-ink-soft: #233029;
  --sl-muted: #5f6d65;
  --sl-line: #d8e1da;
  --sl-panel: rgba(255, 255, 255, 0.96);
  --sl-panel-soft: #f5faf4;
  --sl-bg: #edf3ee;
  --sl-shadow: 0 20px 44px rgba(16, 23, 19, 0.08);
  --sl-shadow-strong: 0 28px 56px rgba(10, 14, 11, 0.14);
}

body:not([data-theme="dark"]) {
  background:
    radial-gradient(circle at 0% 0%, rgba(95, 155, 109, 0.08) 0%, rgba(95, 155, 109, 0) 26%),
    radial-gradient(circle at 100% 6%, rgba(95, 155, 109, 0.06) 0%, rgba(95, 155, 109, 0) 24%),
    linear-gradient(180deg, #f4f8f4 0%, var(--sl-bg) 100%) !important;
  color: var(--sl-ink) !important;
}

body:not([data-theme="dark"]) .ambient {
  opacity: 0 !important;
}

body:not([data-theme="dark"]) .topbar.shell,
body:not([data-theme="dark"]) .toolbar-card,
body:not([data-theme="dark"]) .story-card,
body:not([data-theme="dark"]) .leaderboard-card,
body:not([data-theme="dark"]) .return-radar-card,
body:not([data-theme="dark"]) .thread-card,
body:not([data-theme="dark"]) .feed-insert,
body:not([data-theme="dark"]) .composer-shell,
body:not([data-theme="dark"]) .premium-more-shell,
body:not([data-theme="dark"]) .premium-accordion-item,
body:not([data-theme="dark"]) .research-answer-strip,
body:not([data-theme="dark"]) .research-intro-panel,
body:not([data-theme="dark"]) .research-results-panel {
  background: var(--sl-panel) !important;
  border-color: var(--sl-line) !important;
  box-shadow: var(--sl-shadow) !important;
}

body:not([data-theme="dark"]) .brand-mark {
  background: linear-gradient(180deg, #0f1511 0%, #161f18 100%) !important;
  color: var(--sl-accent) !important;
}

body:not([data-theme="dark"]) .brand-title,
body:not([data-theme="dark"]) .thread-title,
body:not([data-theme="dark"]) .thread-author-name,
body:not([data-theme="dark"]) .proof-title,
body:not([data-theme="dark"]) .leaderboard-row-name,
body:not([data-theme="dark"]) .story-title,
body:not([data-theme="dark"]) .section-bar h2,
body:not([data-theme="dark"]) .section-stack h2,
body:not([data-theme="dark"]) .feed-premium-title {
  color: var(--sl-ink) !important;
}

body:not([data-theme="dark"]) .eyebrow,
body:not([data-theme="dark"]) .thread-author-handle,
body:not([data-theme="dark"]) .thread-author-age,
body:not([data-theme="dark"]) .thread-summary,
body:not([data-theme="dark"]) .thread-meta,
body:not([data-theme="dark"]) .proof-meta,
body:not([data-theme="dark"]) .leaderboard-row-handle,
body:not([data-theme="dark"]) .leaderboard-row-basis,
body:not([data-theme="dark"]) .section-description,
body:not([data-theme="dark"]) .feed-insert-kicker,
body:not([data-theme="dark"]) .level-label,
body:not([data-theme="dark"]) .thread-brief-note,
body:not([data-theme="dark"]) .brand-proof-copy,
body:not([data-theme="dark"]) .author-bio {
  color: var(--sl-muted) !important;
}

body:not([data-theme="dark"]) .thread-brief-pill,
body:not([data-theme="dark"]) .leaderboard-row-simple,
body:not([data-theme="dark"]) .story-metric-inline,
body:not([data-theme="dark"]) .reaction-pill,
body:not([data-theme="dark"]) .metric-pill,
body:not([data-theme="dark"]) .meta-chip {
  background: var(--sl-panel-soft) !important;
  border-color: var(--sl-line) !important;
  color: var(--sl-ink-soft) !important;
}

body:not([data-theme="dark"]) .filter-chip,
body:not([data-theme="dark"]) .scope-chip,
body:not([data-theme="dark"]) .language-picker,
body:not([data-theme="dark"]) .theme-toggle,
body:not([data-theme="dark"]) .thread-toggle,
body:not([data-theme="dark"]) .ghost-cta,
body:not([data-theme="dark"]) .section-link,
body:not([data-theme="dark"]) .feed-insert-link {
  background: #ffffff !important;
  border-color: var(--sl-line) !important;
  color: var(--sl-ink-soft) !important;
  box-shadow: none !important;
}

body:not([data-theme="dark"]) .filter-chip.is-active,
body:not([data-theme="dark"]) .scope-chip.is-active,
body:not([data-theme="dark"]) .thread-toggle:hover,
body:not([data-theme="dark"]) .ghost-cta:hover,
body:not([data-theme="dark"]) .section-link:hover,
body:not([data-theme="dark"]) .feed-insert-link:hover {
  background: #111611 !important;
  border-color: #111611 !important;
  color: var(--sl-accent) !important;
}

body:not([data-theme="dark"]) .global-search-submit {
  background: #111611 !important;
  border-color: #111611 !important;
  color: var(--sl-accent) !important;
  box-shadow: var(--sl-shadow-strong) !important;
}

body:not([data-theme="dark"]) .global-search-submit:hover {
  background: #0a0f0b !important;
  border-color: #0a0f0b !important;
}

body:not([data-theme="dark"]) #thread-search {
  border-color: var(--sl-line) !important;
  box-shadow: 0 6px 18px rgba(16, 23, 19, 0.05) !important;
}

body:not([data-theme="dark"]) #thread-search:hover,
body:not([data-theme="dark"]) #thread-search:focus {
  border-color: var(--sl-accent-line) !important;
  box-shadow:
    0 12px 24px rgba(16, 23, 19, 0.08),
    0 0 0 4px var(--sl-accent-soft) !important;
}

body:not([data-theme="dark"]) .status-chip,
body:not([data-theme="dark"]) .reaction-pill,
body:not([data-theme="dark"]) .metric-pill,
body:not([data-theme="dark"]) .meta-chip {
  color: var(--sl-ink-soft) !important;
}

body:not([data-theme="dark"]) .status-chip.tone-positive,
body:not([data-theme="dark"]) .status-chip.status-chip-buy {
  background: rgba(95, 155, 109, 0.09) !important;
  border-color: rgba(95, 155, 109, 0.28) !important;
  color: #146534 !important;
}

body:not([data-theme="dark"]) .status-chip.tone-watch,
body:not([data-theme="dark"]) .status-chip.status-chip-watch {
  background: rgba(17, 22, 17, 0.05) !important;
  border-color: rgba(17, 22, 17, 0.10) !important;
  color: var(--sl-ink-soft) !important;
}

body:not([data-theme="dark"]) .status-chip.tone-negative,
body:not([data-theme="dark"]) .status-chip.status-chip-sell {
  background: rgba(17, 22, 17, 0.08) !important;
  border-color: rgba(17, 22, 17, 0.14) !important;
  color: #1f2937 !important;
}

body:not([data-theme="dark"]) .status-chip.tone-positive::before,
body:not([data-theme="dark"]) .status-chip.status-chip-buy::before,
body:not([data-theme="dark"]) .theme-toggle-mark,
body:not([data-theme="dark"]) .language-caret {
  color: var(--sl-accent) !important;
  background: var(--sl-accent) !important;
}

body[data-theme="dark"] {
  background:
    radial-gradient(circle at 0% 0%, rgba(95, 155, 109, 0.14) 0%, rgba(95, 155, 109, 0) 22%),
    radial-gradient(circle at 100% 10%, rgba(95, 155, 109, 0.08) 0%, rgba(95, 155, 109, 0) 24%),
    linear-gradient(180deg, #030503 0%, #090d09 100%) !important;
  color: #f4fff0 !important;
}

body[data-theme="dark"] .ambient {
  opacity: 0 !important;
}

body[data-theme="dark"] .topbar.shell,
body[data-theme="dark"] .toolbar-card,
body[data-theme="dark"] .story-card,
body[data-theme="dark"] .leaderboard-card,
body[data-theme="dark"] .return-radar-card,
body[data-theme="dark"] .thread-card,
body[data-theme="dark"] .feed-insert,
body[data-theme="dark"] .composer-shell,
body[data-theme="dark"] .premium-more-shell,
body[data-theme="dark"] .premium-accordion-item,
body[data-theme="dark"] .research-answer-strip,
body[data-theme="dark"] .research-intro-panel,
body[data-theme="dark"] .research-results-panel {
  background: rgba(8, 12, 8, 0.92) !important;
  border-color: rgba(95, 155, 109, 0.15) !important;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.48) !important;
}

body[data-theme="dark"] .brand-mark {
  background: linear-gradient(180deg, #7dff4f 0%, #5fda36 100%) !important;
  color: #091008 !important;
}

body[data-theme="dark"] .brand-title,
body[data-theme="dark"] .thread-title,
body[data-theme="dark"] .thread-author-name,
body[data-theme="dark"] .proof-title,
body[data-theme="dark"] .leaderboard-row-name,
body[data-theme="dark"] .story-title,
body[data-theme="dark"] .section-bar h2,
body[data-theme="dark"] .section-stack h2,
body[data-theme="dark"] .feed-premium-title,
body[data-theme="dark"] .thread-brief-pill strong,
body[data-theme="dark"] .story-metric-inline strong {
  color: #f4fff0 !important;
}

body[data-theme="dark"] .eyebrow,
body[data-theme="dark"] .thread-author-handle,
body[data-theme="dark"] .thread-author-age,
body[data-theme="dark"] .thread-summary,
body[data-theme="dark"] .thread-meta,
body[data-theme="dark"] .proof-meta,
body[data-theme="dark"] .leaderboard-row-handle,
body[data-theme="dark"] .leaderboard-row-basis,
body[data-theme="dark"] .section-description,
body[data-theme="dark"] .feed-insert-kicker,
body[data-theme="dark"] .level-label,
body[data-theme="dark"] .thread-brief-note,
body[data-theme="dark"] .brand-proof-copy,
body[data-theme="dark"] .author-bio {
  color: rgba(217, 255, 209, 0.72) !important;
}

body[data-theme="dark"] .thread-brief-pill,
body[data-theme="dark"] .leaderboard-row-simple,
body[data-theme="dark"] .story-metric-inline,
body[data-theme="dark"] .reaction-pill,
body[data-theme="dark"] .metric-pill,
body[data-theme="dark"] .meta-chip {
  background: rgba(12, 17, 12, 0.9) !important;
  border-color: rgba(95, 155, 109, 0.14) !important;
  color: #eff9eb !important;
}

body[data-theme="dark"] .filter-chip,
body[data-theme="dark"] .scope-chip,
body[data-theme="dark"] .language-picker,
body[data-theme="dark"] .theme-toggle,
body[data-theme="dark"] .thread-toggle,
body[data-theme="dark"] .ghost-cta,
body[data-theme="dark"] .section-link,
body[data-theme="dark"] .feed-insert-link {
  background: rgba(10, 14, 10, 0.92) !important;
  border-color: rgba(95, 155, 109, 0.14) !important;
  color: rgba(233, 255, 226, 0.86) !important;
}

body[data-theme="dark"] .filter-chip.is-active,
body[data-theme="dark"] .scope-chip.is-active,
body[data-theme="dark"] .thread-toggle:hover,
body[data-theme="dark"] .ghost-cta:hover,
body[data-theme="dark"] .section-link:hover,
body[data-theme="dark"] .feed-insert-link:hover {
  background: var(--sl-accent) !important;
  border-color: var(--sl-accent) !important;
  color: #081008 !important;
}

body[data-theme="dark"] .global-search-submit {
  background: var(--sl-accent) !important;
  border-color: var(--sl-accent) !important;
  color: #081008 !important;
  box-shadow: 0 14px 28px rgba(95, 155, 109, 0.16) !important;
}

body[data-theme="dark"] .global-search-submit:hover {
  background: var(--sl-accent-strong) !important;
  border-color: var(--sl-accent-strong) !important;
}

body[data-theme="dark"] #thread-search {
  background: rgba(8, 12, 8, 0.96) !important;
  border-color: rgba(95, 155, 109, 0.15) !important;
  color: #f4fff0 !important;
  box-shadow: none !important;
}

body[data-theme="dark"] #thread-search::placeholder {
  color: rgba(217, 255, 209, 0.54) !important;
}

body[data-theme="dark"] #thread-search:hover,
body[data-theme="dark"] #thread-search:focus {
  border-color: rgba(95, 155, 109, 0.32) !important;
  box-shadow: 0 0 0 4px rgba(95, 155, 109, 0.08) !important;
}

/* Final palette lock: off-white / carbon / neon green */
:root {
  --craft-accent: #5f9b6d;
  --craft-accent-strong: #76af82;
  --craft-accent-soft: rgba(95, 155, 109, 0.10);
  --craft-accent-line: rgba(95, 155, 109, 0.18);
  --craft-carbon: #0b100c;
  --craft-carbon-soft: #131913;
  --craft-ink: #101613;
  --craft-ink-soft: #1b241e;
  --craft-muted: #5f6a62;
  --craft-line: rgba(16, 22, 19, 0.12);
  --craft-panel: rgba(255, 255, 255, 0.97);
  --craft-panel-soft: #f2f6f1;
  --craft-bg: #f2f6f0;
  --craft-shadow: 0 18px 44px rgba(11, 16, 12, 0.08);
  --craft-shadow-strong: 0 24px 56px rgba(11, 16, 12, 0.14);
}

body:not([data-theme="dark"]) {
  background:
    radial-gradient(circle at 0% 0%, rgba(95, 155, 109, 0.06) 0%, rgba(95, 155, 109, 0) 24%),
    radial-gradient(circle at 100% 10%, rgba(95, 155, 109, 0.04) 0%, rgba(95, 155, 109, 0) 24%),
    linear-gradient(180deg, #f7faf6 0%, var(--craft-bg) 100%) !important;
  color: var(--craft-ink) !important;
}

body[data-theme="dark"] {
  --craft-panel: rgba(8, 11, 8, 0.96);
  --craft-panel-soft: rgba(13, 17, 13, 0.96);
  --craft-line: rgba(95, 155, 109, 0.12);
  --craft-muted: rgba(220, 235, 220, 0.68);
  --craft-ink: #edf8e8;
  --craft-ink-soft: #d9ead4;
  background:
    radial-gradient(circle at 0% 0%, rgba(95, 155, 109, 0.10) 0%, rgba(95, 155, 109, 0) 20%),
    radial-gradient(circle at 100% 12%, rgba(95, 155, 109, 0.06) 0%, rgba(95, 155, 109, 0) 24%),
    linear-gradient(180deg, #050705 0%, #090c09 100%) !important;
  color: var(--craft-ink) !important;
}

body .topbar.shell,
body .toolbar-card,
body .story-card,
body .leaderboard-card,
body .return-radar-card,
body .thread-card,
body .feed-insert,
body .composer-shell,
body .premium-more-shell,
body .premium-accordion-item,
body .research-answer-strip,
body .research-intro-panel,
body .research-results-panel {
  background: var(--craft-panel) !important;
  border-color: var(--craft-line) !important;
  box-shadow: var(--craft-shadow) !important;
}

body .topbar.shell::before,
body .story-card::before,
body .leaderboard-card::before,
body .toolbar-card::before,
body .thread-card::before,
body .feed-insert::before,
body .composer-shell::before,
body .return-radar-card::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(95, 155, 109, 0.08) 16%,
    var(--craft-accent) 50%,
    rgba(95, 155, 109, 0.08) 84%,
    transparent 100%
  ) !important;
}

body .brand-mark {
  background: linear-gradient(180deg, #090d09 0%, #131913 100%) !important;
  color: var(--craft-accent) !important;
  box-shadow: none !important;
}

body[data-theme="dark"] .brand-mark {
  background: linear-gradient(180deg, var(--craft-accent) 0%, #6b9874 100%) !important;
  color: #081008 !important;
}

body .brand-title,
body #brand-label,
body .thread-title,
body .thread-author-name,
body .proof-title,
body .leaderboard-row-name,
body .story-title,
body .section-bar h2,
body .section-stack h2,
body .feed-premium-title,
body .thread-brief-pill strong,
body .story-metric-inline strong,
body .leaderboard-row-value strong {
  color: var(--craft-ink) !important;
}

body .eyebrow,
body #brand-kicker,
body .thread-author-handle,
body .thread-author-age,
body .thread-summary,
body .thread-meta,
body .proof-meta,
body .leaderboard-row-handle,
body .leaderboard-row-basis,
body .section-description,
body .feed-insert-kicker,
body .level-label,
body .thread-brief-note,
body .brand-proof-copy,
body .author-bio,
body .story-kicker,
body .story-summary {
  color: var(--craft-muted) !important;
}

body .global-search-shell,
body .thread-brief-pill,
body .story-metric-inline,
body .leaderboard-row-simple,
body .reaction-pill,
body .metric-pill,
body .meta-chip,
body .story-progress-step,
body .story-progress-count,
body .filter-chip,
body .scope-chip,
body .language-picker,
body .theme-toggle,
body .thread-toggle,
body .ghost-cta,
body .section-link,
body .feed-insert-link,
body .language-menu,
body .language-option {
  background: var(--craft-panel-soft) !important;
  border-color: var(--craft-line) !important;
  color: var(--craft-ink-soft) !important;
  box-shadow: none !important;
}

body .language-menu {
  box-shadow: var(--craft-shadow) !important;
}

body .language-option:hover,
body .language-option.is-active {
  background: color-mix(in srgb, var(--craft-panel-soft) 72%, var(--craft-accent-soft) 28%) !important;
  color: var(--craft-ink) !important;
}

body .global-search-submit,
body .cta,
body .filter-chip.is-active,
body .scope-chip.is-active,
body .follow-btn.is-following,
body .follow-btn:hover,
body .bottom-nav-item.is-active {
  background: var(--craft-carbon) !important;
  border-color: var(--craft-carbon) !important;
  color: var(--craft-accent) !important;
  box-shadow: var(--craft-shadow-strong) !important;
}

body[data-theme="dark"] .global-search-submit,
body[data-theme="dark"] .cta,
body[data-theme="dark"] .filter-chip.is-active,
body[data-theme="dark"] .scope-chip.is-active,
body[data-theme="dark"] .follow-btn.is-following,
body[data-theme="dark"] .follow-btn:hover,
body[data-theme="dark"] .bottom-nav-item.is-active {
  background: var(--craft-accent) !important;
  border-color: var(--craft-accent) !important;
  color: #081008 !important;
}

body .global-search-submit:hover,
body .cta:hover {
  background: var(--craft-carbon-soft) !important;
  border-color: var(--craft-carbon-soft) !important;
}

body[data-theme="dark"] .global-search-submit:hover,
body[data-theme="dark"] .cta:hover {
  background: var(--craft-accent-strong) !important;
  border-color: var(--craft-accent-strong) !important;
}

body .theme-toggle-mark,
body .language-caret {
  color: var(--craft-accent) !important;
}

body .section-link,
body .feed-insert-link {
  color: var(--craft-ink-soft) !important;
}

body .section-link:hover,
body .feed-insert-link:hover,
body .thread-toggle:hover,
body .ghost-cta:hover {
  background: var(--craft-carbon) !important;
  border-color: var(--craft-carbon) !important;
  color: var(--craft-accent) !important;
}

body #thread-search {
  background: #ffffff !important;
  border-color: var(--craft-line) !important;
  color: var(--craft-ink) !important;
  box-shadow: 0 8px 22px rgba(11, 16, 12, 0.05) !important;
}

body #thread-search::placeholder {
  color: #7a857c !important;
}

body #thread-search:hover,
body #thread-search:focus {
  border-color: var(--craft-accent-line) !important;
  box-shadow:
    0 16px 32px rgba(11, 16, 12, 0.08),
    0 0 0 4px var(--craft-accent-soft) !important;
}

body[data-theme="dark"] #thread-search {
  background: rgba(8, 11, 8, 0.96) !important;
  color: var(--craft-ink) !important;
}

body[data-theme="dark"] #thread-search::placeholder {
  color: rgba(237, 248, 232, 0.48) !important;
}

body .section-bar,
body .feed-insert-bar {
  border-bottom: 1px solid var(--craft-line) !important;
}

body .thread-avatar {
  background: color-mix(in srgb, var(--craft-panel-soft) 82%, var(--craft-accent-soft) 18%) !important;
  color: color-mix(in srgb, var(--craft-carbon) 70%, var(--craft-accent) 30%) !important;
}

body .thread-rail-line {
  background: linear-gradient(180deg, var(--craft-line), transparent) !important;
}

body .status-chip {
  background: var(--craft-panel-soft) !important;
  border-color: var(--craft-line) !important;
  color: var(--craft-ink-soft) !important;
}

body .status-chip.tone-positive,
body .status-chip.tone-watch,
body .status-chip.tone-negative,
body .status-chip.status-chip-buy,
body .status-chip.status-chip-watch,
body .status-chip.status-chip-sell {
  background: var(--craft-panel-soft) !important;
  border-color: var(--craft-line) !important;
  color: var(--craft-ink-soft) !important;
}

body .status-chip.tone-positive::before,
body .status-chip.status-chip-buy::before {
  background: var(--craft-accent) !important;
}

body .status-chip.tone-watch::before,
body .status-chip.status-chip-watch::before {
  background: var(--craft-carbon) !important;
  box-shadow: inset 0 0 0 1px rgba(95, 155, 109, 0.26) !important;
}

body .status-chip.tone-negative::before,
body .status-chip.status-chip-sell::before {
  background: #1f2520 !important;
  box-shadow: inset 0 0 0 1px rgba(95, 155, 109, 0.18) !important;
}

body[data-active-tab="feed"] .story-card.story-card-compact,
body[data-active-tab="feed"] .leaderboard-card,
body[data-active-tab="feed"] .return-radar-card,
body[data-active-tab="feed"] .thread-card,
body[data-active-tab="feed"] .toolbar-card {
  background: var(--craft-panel) !important;
}

body[data-active-tab="feed"] .leaderboard-row-simple .leaderboard-row-value {
  color: var(--craft-ink) !important;
}

body[data-theme="dark"] .theme-toggle,
body[data-theme="dark"] .language-picker,
body[data-theme="dark"] .language-menu,
body[data-theme="dark"] .filter-chip,
body[data-theme="dark"] .scope-chip,
body[data-theme="dark"] .thread-brief-pill,
body[data-theme="dark"] .story-metric-inline,
body[data-theme="dark"] .leaderboard-row-simple,
body[data-theme="dark"] .ghost-cta,
body[data-theme="dark"] .thread-toggle,
body[data-theme="dark"] .section-link,
body[data-theme="dark"] .feed-insert-link {
  background: rgba(12, 16, 12, 0.94) !important;
  border-color: rgba(95, 155, 109, 0.12) !important;
  color: var(--craft-ink-soft) !important;
}

/* Cosmic background pass */
body[data-theme="dark"] {
  background:
    radial-gradient(circle at 12% 14%, rgba(95, 155, 109, 0.08) 0%, rgba(95, 155, 109, 0.03) 8%, rgba(95, 155, 109, 0) 24%),
    radial-gradient(circle at 86% 10%, rgba(80, 110, 255, 0.16) 0%, rgba(80, 110, 255, 0.06) 10%, rgba(80, 110, 255, 0) 28%),
    radial-gradient(circle at 70% 78%, rgba(135, 78, 255, 0.10) 0%, rgba(135, 78, 255, 0.04) 10%, rgba(135, 78, 255, 0) 26%),
    radial-gradient(circle at 24% 82%, rgba(95, 155, 109, 0.06) 0%, rgba(95, 155, 109, 0.025) 10%, rgba(95, 155, 109, 0) 24%),
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 18%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, #020402 0%, #060906 100%) !important;
}

body[data-theme="dark"] .ambient {
  display: block !important;
  opacity: 1 !important;
  pointer-events: none !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: -1 !important;
}

body[data-theme="dark"] .ambient-a {
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 22% 72%, rgba(255, 255, 255, 0.6) 0 1px, transparent 2px),
    radial-gradient(circle at 38% 26%, rgba(255, 255, 255, 0.46) 0 1px, transparent 2px),
    radial-gradient(circle at 48% 60%, rgba(255, 255, 255, 0.5) 0 1px, transparent 2px),
    radial-gradient(circle at 63% 16%, rgba(255, 255, 255, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 48%, rgba(255, 255, 255, 0.48) 0 1px, transparent 2px),
    radial-gradient(circle at 86% 26%, rgba(255, 255, 255, 0.62) 0 1px, transparent 2px),
    radial-gradient(circle at 90% 74%, rgba(255, 255, 255, 0.45) 0 1px, transparent 2px);
  opacity: 0.38;
  filter: blur(0.2px);
}

body[data-theme="dark"] .ambient-b {
  background:
    radial-gradient(circle at 18% 22%, rgba(95, 155, 109, 0.14) 0%, rgba(95, 155, 109, 0.05) 8%, rgba(95, 155, 109, 0) 24%),
    radial-gradient(circle at 82% 14%, rgba(80, 110, 255, 0.24) 0%, rgba(80, 110, 255, 0.08) 10%, rgba(80, 110, 255, 0) 26%),
    radial-gradient(circle at 74% 80%, rgba(135, 78, 255, 0.18) 0%, rgba(135, 78, 255, 0.06) 10%, rgba(135, 78, 255, 0) 24%),
    radial-gradient(circle at 30% 74%, rgba(95, 155, 109, 0.10) 0%, rgba(95, 155, 109, 0.04) 8%, rgba(95, 155, 109, 0) 22%);
  opacity: 0.58;
  filter: blur(36px);
}

body[data-theme="dark"] .topbar.shell,
body[data-theme="dark"] .toolbar-card,
body[data-theme="dark"] .story-card,
body[data-theme="dark"] .leaderboard-card,
body[data-theme="dark"] .return-radar-card,
body[data-theme="dark"] .thread-card,
body[data-theme="dark"] .feed-insert,
body[data-theme="dark"] .composer-shell,
body[data-theme="dark"] .premium-more-shell,
body[data-theme="dark"] .premium-accordion-item,
body[data-theme="dark"] .research-answer-strip,
body[data-theme="dark"] .research-intro-panel,
body[data-theme="dark"] .research-results-panel {
  background: linear-gradient(180deg, rgba(8, 11, 8, 0.94) 0%, rgba(10, 13, 10, 0.96) 100%) !important;
  backdrop-filter: blur(14px) !important;
}

/* StarCraft-style HUD cursor */
.craft-cursor {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  pointer-events: none;
  z-index: 200;
  opacity: 0;
  transform: translate(-999px, -999px);
  transition: opacity 120ms ease, filter 140ms ease;
  filter: drop-shadow(0 0 6px rgba(95, 155, 109, 0.14));
}

.craft-cursor.is-visible {
  opacity: 1;
}

.craft-cursor-ring,
.craft-cursor-core,
.craft-cursor-tail {
  position: absolute;
  inset: 0;
  display: block;
}

.craft-cursor-ring::before,
.craft-cursor-ring::after,
.craft-cursor-core::before,
.craft-cursor-core::after {
  content: "";
  position: absolute;
}

.craft-cursor-ring::before {
  top: 1px;
  left: 1px;
  width: 24px;
  height: 28px;
  background: linear-gradient(180deg, rgba(131, 184, 139, 0.96) 0%, rgba(96, 147, 104, 0.96) 100%);
  clip-path: polygon(0 0, 0 100%, 26% 76%, 43% 100%, 60% 94%, 43% 69%, 77% 69%);
  box-shadow: 0 0 10px rgba(95, 155, 109, 0.18);
}

.craft-cursor-ring::after {
  top: 3px;
  left: 3px;
  width: 18px;
  height: 22px;
  background: linear-gradient(180deg, rgba(18, 35, 19, 0.98) 0%, rgba(10, 20, 12, 0.98) 100%);
  clip-path: polygon(0 0, 0 100%, 24% 72%, 39% 100%, 49% 96%, 34% 66%, 68% 66%);
}

.craft-cursor-core::before {
  top: 4px;
  left: 4px;
  width: 14px;
  height: 16px;
  background: linear-gradient(180deg, #a8cfaf 0%, #78a681 100%);
  clip-path: polygon(0 0, 0 100%, 22% 70%, 36% 100%, 45% 95%, 31% 65%, 60% 65%);
  opacity: 0.96;
}

.craft-cursor-core::after {
  top: 18px;
  left: 10px;
  width: 11px;
  height: 2px;
  background: rgba(168, 207, 175, 0.68);
  transform: rotate(44deg);
  transform-origin: left center;
  opacity: 0.8;
}

.craft-cursor-tail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 28px;
  border: 1px solid rgba(184, 221, 191, 0.14);
  clip-path: polygon(0 0, 0 100%, 26% 76%, 43% 100%, 60% 94%, 43% 69%, 77% 69%);
  transform-origin: left center;
}

.craft-cursor.is-interactive {
  filter: drop-shadow(0 0 8px rgba(125, 182, 135, 0.22));
}

.craft-cursor.is-interactive .craft-cursor-ring::before {
  background: linear-gradient(180deg, rgba(151, 201, 159, 0.98) 0%, rgba(108, 161, 117, 0.98) 100%);
  transform: scale(1.04);
  transform-origin: top left;
}

.craft-cursor.is-interactive .craft-cursor-core::before {
  background: linear-gradient(180deg, #c1e0c7 0%, #86b28f 100%);
}

.craft-cursor.is-pressed {
  filter: drop-shadow(0 0 6px rgba(95, 155, 109, 0.18));
}

.craft-cursor.is-pressed .craft-cursor-ring::before {
  transform: scale(0.92);
  transform-origin: top left;
}

body.cursor-hud-enabled,
body.cursor-hud-enabled a,
body.cursor-hud-enabled button,
body.cursor-hud-enabled input,
body.cursor-hud-enabled select,
body.cursor-hud-enabled textarea,
body.cursor-hud-enabled label {
  cursor: none !important;
}

@media (pointer: coarse), (max-width: 760px) {
  .craft-cursor {
    display: none !important;
  }
}

/* StarCraft II inspired HUD pass */
body[data-theme="dark"] {
  --hud-ink: #e9f4ff;
  --hud-text: #cad9e7;
  --hud-muted: #7e93a5;
  --hud-cyan: #7fd6ff;
  --hud-cyan-soft: rgba(127, 214, 255, 0.18);
  --hud-green: #669e75;
  --hud-green-soft: rgba(102, 158, 117, 0.16);
  --hud-panel: linear-gradient(180deg, rgba(17, 24, 33, 0.97) 0%, rgba(10, 16, 23, 0.99) 100%);
  --hud-panel-elevated: linear-gradient(180deg, rgba(22, 31, 43, 0.98) 0%, rgba(12, 19, 28, 0.99) 100%);
  --hud-border: rgba(127, 214, 255, 0.24);
  --hud-border-strong: rgba(127, 214, 255, 0.4);
  --hud-shadow: 0 20px 44px rgba(0, 0, 0, 0.36);
  --hud-cut: polygon(20px 0, calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px), 0 20px);
  background:
    radial-gradient(circle at 12% 10%, rgba(102, 158, 117, 0.08), transparent 18%),
    radial-gradient(circle at 88% 14%, rgba(127, 214, 255, 0.12), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(84, 113, 178, 0.12), transparent 30%),
    linear-gradient(180deg, #060a0f 0%, #0a1118 48%, #06090d 100%) !important;
  color: var(--hud-text) !important;
}

body[data-theme="dark"] .ambient {
  display: none !important;
}

body[data-theme="dark"]::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(127, 214, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 214, 255, 0.02) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0) 42%);
  background-size: 48px 48px, 48px 48px, 100% 100%;
  opacity: 0.65;
  z-index: -2;
}

body[data-theme="dark"]::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(2px 2px at 14% 24%, rgba(255, 255, 255, 0.65), transparent 60%),
    radial-gradient(1.5px 1.5px at 68% 36%, rgba(127, 214, 255, 0.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 82% 20%, rgba(102, 158, 117, 0.28), transparent 60%),
    radial-gradient(1px 1px at 32% 72%, rgba(255, 255, 255, 0.48), transparent 60%);
  opacity: 0.35;
  z-index: -1;
}

body[data-theme="dark"] .shell {
  width: min(1320px, calc(100% - 40px)) !important;
  max-width: 1320px !important;
}

body[data-theme="dark"] .topbar {
  margin: 18px auto 0 !important;
  padding: 16px 22px !important;
  background: var(--hud-panel) !important;
  border: 1px solid var(--hud-border) !important;
  border-radius: 0 !important;
  box-shadow: var(--hud-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
  position: sticky !important;
  top: 14px !important;
  z-index: 50 !important;
  overflow: visible !important;
}

body[data-theme="dark"] .topbar::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background:
    linear-gradient(90deg, rgba(102, 158, 117, 0.18), rgba(127, 214, 255, 0.14) 45%, rgba(255, 255, 255, 0.02) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 55%) !important;
  pointer-events: none !important;
}

body[data-theme="dark"] .topbar::after {
  content: "" !important;
  position: absolute !important;
  inset: 1px !important;
  border: 1px solid rgba(127, 214, 255, 0.08) !important;
  pointer-events: none !important;
}

body[data-theme="dark"] .topbar-main {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  z-index: 1 !important;
  align-items: center !important;
  gap: 20px !important;
}

body[data-theme="dark"] .topbar-actions {
  position: relative !important;
  z-index: 8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  margin-left: auto !important;
}

body[data-theme="dark"] .brand-lockup {
  gap: 14px !important;
  min-width: 0;
}

body[data-theme="dark"] .brand-mark {
  width: 48px !important;
  height: 48px !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, rgba(19, 32, 44, 0.96) 0%, rgba(11, 19, 28, 0.98) 100%) !important;
  border: 1px solid rgba(127, 214, 255, 0.28) !important;
  color: var(--hud-green) !important;
  box-shadow: 0 0 0 1px rgba(102, 158, 117, 0.10), inset 0 0 14px rgba(102, 158, 117, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  font-weight: 800 !important;
}

body[data-theme="dark"] .eyebrow {
  color: var(--hud-cyan) !important;
  font-size: 0.66rem !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  opacity: 0.9 !important;
}

body[data-theme="dark"] .brand-title {
  color: var(--hud-ink) !important;
  letter-spacing: -0.04em !important;
}

body[data-theme="dark"] .language-dropdown {
  position: relative !important;
  z-index: 12 !important;
  display: flex !important;
  align-items: center !important;
}

body[data-theme="dark"] .language-picker {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 178px !important;
  min-height: 46px !important;
  padding: 0 18px !important;
  gap: 10px !important;
  background: var(--hud-panel-elevated) !important;
  border: 1px solid var(--hud-border) !important;
  border-radius: 0 !important;
  clip-path: var(--hud-cut) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 24px rgba(0, 0, 0, 0.22) !important;
}

body[data-theme="dark"] .language-picker span,
body[data-theme="dark"] .language-picker strong,
body[data-theme="dark"] .language-caret {
  color: var(--hud-text) !important;
}

body[data-theme="dark"] .language-menu {
  z-index: 20 !important;
  min-width: 100% !important;
  top: calc(100% + 10px) !important;
  background: var(--hud-panel) !important;
  border: 1px solid var(--hud-border-strong) !important;
  border-radius: 0 !important;
  clip-path: var(--hud-cut) !important;
  box-shadow: var(--hud-shadow) !important;
  overflow: hidden !important;
}

body[data-theme="dark"] .language-option {
  color: var(--hud-text) !important;
  background: transparent !important;
}

body[data-theme="dark"] .language-option.is-active,
body[data-theme="dark"] .language-option:hover {
  background: rgba(127, 214, 255, 0.1) !important;
  color: var(--hud-ink) !important;
}

body[data-theme="dark"] .page-shell {
  padding-top: 18px !important;
  padding-bottom: 180px !important;
}

body[data-theme="dark"] .feed-layout {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 18px !important;
}

body[data-theme="dark"] .feed-side {
  width: 100% !important;
}

body[data-theme="dark"] .section-bar {
  align-items: end !important;
  margin-bottom: 12px !important;
  padding: 0 4px 0 2px !important;
}

body[data-theme="dark"] .section-bar h2,
body[data-theme="dark"] .section-stack h2,
body[data-theme="dark"] #public-research-threads-title,
body[data-theme="dark"] #leaderboard-title,
body[data-theme="dark"] #return-radar-title {
  color: var(--hud-ink) !important;
  font-size: 1.08rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

body[data-theme="dark"] .section-kicker,
body[data-theme="dark"] .feed-insert-kicker,
body[data-theme="dark"] .proof-kicker {
  color: var(--hud-cyan) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.14em !important;
  font-weight: 800 !important;
}

body[data-theme="dark"] .section-link,
body[data-theme="dark"] .feed-insert-link,
body[data-theme="dark"] .ghost-cta,
body[data-theme="dark"] .thread-toggle {
  color: var(--hud-green) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}

body[data-theme="dark"] .section-link:hover,
body[data-theme="dark"] .feed-insert-link:hover,
body[data-theme="dark"] .ghost-cta:hover,
body[data-theme="dark"] .thread-toggle:hover {
  color: #b6f0bf !important;
}

body[data-theme="dark"] .story-card,
body[data-theme="dark"] .leaderboard-card,
body[data-theme="dark"] .return-radar-card,
body[data-theme="dark"] .toolbar-card,
body[data-theme="dark"] .thread-card,
body[data-theme="dark"] .feed-insert,
body[data-theme="dark"] .composer-shell,
body[data-theme="dark"] .command-panel,
body[data-theme="dark"] .research-dossier-shell,
body[data-theme="dark"] .research-stage,
body[data-theme="dark"] .return-radar-card,
body[data-theme="dark"] .feed-radar-card,
body[data-theme="dark"] .feed-signal-card {
  background: var(--hud-panel) !important;
  border: 1px solid var(--hud-border) !important;
  border-radius: 0 !important;
  clip-path: var(--hud-cut) !important;
  box-shadow: var(--hud-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  color: var(--hud-text) !important;
  overflow: hidden !important;
}

body[data-theme="dark"] .story-card::before,
body[data-theme="dark"] .leaderboard-card::before,
body[data-theme="dark"] .return-radar-card::before,
body[data-theme="dark"] .toolbar-card::before,
body[data-theme="dark"] .thread-card::before,
body[data-theme="dark"] .feed-insert::before,
body[data-theme="dark"] .composer-shell::before,
body[data-theme="dark"] .command-panel::before,
body[data-theme="dark"] .research-dossier-shell::before,
body[data-theme="dark"] .research-stage::before,
body[data-theme="dark"] .feed-radar-card::before,
body[data-theme="dark"] .feed-signal-card::before {
  content: "" !important;
  position: absolute !important;
  left: 18px !important;
  right: 18px !important;
  top: 0 !important;
  height: 2px !important;
  background: linear-gradient(90deg, var(--hud-green), var(--hud-cyan), transparent 84%) !important;
  opacity: 0.85 !important;
}

body[data-theme="dark"] .story-grid,
body[data-theme="dark"] .return-radar,
body[data-theme="dark"] .feed-radar-grid,
body[data-theme="dark"] .feed-signal-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

body[data-theme="dark"] .story-card {
  padding: 20px !important;
  min-height: 0 !important;
}

body[data-theme="dark"] .story-kicker {
  color: var(--hud-cyan) !important;
  font-weight: 800 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
}

body[data-theme="dark"] .story-title,
body[data-theme="dark"] .active-signal-title,
body[data-theme="dark"] .proof-title,
body[data-theme="dark"] .leaderboard-row-name,
body[data-theme="dark"] .thread-title,
body[data-theme="dark"] .thread-author-name,
body[data-theme="dark"] .leaderboard-row-value strong {
  color: var(--hud-ink) !important;
}

body[data-theme="dark"] .story-metric-inline,
body[data-theme="dark"] .thread-brief-pill,
body[data-theme="dark"] .reaction-pill,
body[data-theme="dark"] .meta-chip,
body[data-theme="dark"] .metric-pill,
body[data-theme="dark"] .research-answer-pill,
body[data-theme="dark"] .leaderboard-row {
  background: linear-gradient(180deg, rgba(16, 26, 36, 0.96) 0%, rgba(9, 15, 22, 0.98) 100%) !important;
  border: 1px solid rgba(127, 214, 255, 0.18) !important;
  border-radius: 0 !important;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px) !important;
  color: var(--hud-text) !important;
}

body[data-theme="dark"] .level-label,
body[data-theme="dark"] .thread-author-handle,
body[data-theme="dark"] .thread-author-age,
body[data-theme="dark"] .thread-summary,
body[data-theme="dark"] .proof-meta,
body[data-theme="dark"] .leaderboard-row-basis,
body[data-theme="dark"] .leaderboard-row-handle,
body[data-theme="dark"] .active-signal-note,
body[data-theme="dark"] .section-description {
  color: var(--hud-muted) !important;
}

body[data-theme="dark"] .thread-card {
  grid-template-columns: 64px minmax(0, 1fr) !important;
  gap: 18px !important;
  padding: 22px 22px 20px !important;
}

body[data-theme="dark"] .thread-avatar {
  width: 52px !important;
  height: 52px !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, rgba(18, 31, 43, 0.98) 0%, rgba(11, 19, 28, 0.98) 100%) !important;
  border: 1px solid rgba(127, 214, 255, 0.24) !important;
  color: var(--hud-green) !important;
  box-shadow: inset 0 0 10px rgba(102, 158, 117, 0.08) !important;
}

body[data-theme="dark"] .thread-rail-line {
  background: linear-gradient(180deg, rgba(127, 214, 255, 0.34), rgba(102, 158, 117, 0.10)) !important;
  box-shadow: 0 0 10px rgba(127, 214, 255, 0.22) !important;
}

body[data-theme="dark"] .thread-title {
  margin: 8px 0 10px !important;
  font-size: 2rem !important;
  line-height: 1.14 !important;
  letter-spacing: -0.045em !important;
}

body[data-theme="dark"] .thread-summary {
  margin-bottom: 14px !important;
  font-size: 1.04rem !important;
  line-height: 1.72 !important;
}

body[data-theme="dark"] .thread-brief-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body[data-theme="dark"] .thread-brief-pill {
  min-height: 130px !important;
  padding: 16px 18px !important;
}

body[data-theme="dark"] .thread-brief-pill strong {
  color: var(--hud-ink) !important;
  font-size: 1.08rem !important;
}

body[data-theme="dark"] .thread-brief-note {
  color: var(--hud-green) !important;
  font-size: 0.92rem !important;
}

body[data-theme="dark"] .status-chip {
  min-height: 36px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  background: rgba(127, 214, 255, 0.08) !important;
  border: 1px solid rgba(127, 214, 255, 0.22) !important;
  color: var(--hud-text) !important;
  box-shadow: none !important;
}

body[data-theme="dark"] .status-chip.status-chip-buy,
body[data-theme="dark"] .status-chip.chip-live,
body[data-theme="dark"] .status-chip.tone-positive {
  background: rgba(102, 158, 117, 0.10) !important;
  border-color: rgba(102, 158, 117, 0.26) !important;
  color: var(--hud-green) !important;
}

body[data-theme="dark"] .status-chip.status-chip-watch,
body[data-theme="dark"] .status-chip.tone-watch {
  background: rgba(127, 214, 255, 0.08) !important;
  border-color: rgba(127, 214, 255, 0.28) !important;
  color: var(--hud-cyan) !important;
}

body[data-theme="dark"] .status-chip.status-chip-sell,
body[data-theme="dark"] .status-chip.chip-exit,
body[data-theme="dark"] .status-chip.tone-negative {
  background: rgba(255, 114, 92, 0.1) !important;
  border-color: rgba(255, 114, 92, 0.28) !important;
  color: #ff9d89 !important;
}

body[data-theme="dark"] .toolbar-card {
  padding: 16px 18px !important;
}

body[data-theme="dark"] .filter-row,
body[data-theme="dark"] .scope-row {
  gap: 10px !important;
}

body[data-theme="dark"] .filter-chip,
body[data-theme="dark"] .scope-chip,
body[data-theme="dark"] .bottom-nav-item {
  min-height: 38px !important;
  padding: 0 16px !important;
  background: linear-gradient(180deg, rgba(19, 29, 40, 0.98) 0%, rgba(10, 17, 25, 0.99) 100%) !important;
  border: 1px solid rgba(127, 214, 255, 0.18) !important;
  border-radius: 0 !important;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px) !important;
  color: var(--hud-text) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  box-shadow: none !important;
}

body[data-theme="dark"] .filter-chip.is-active,
body[data-theme="dark"] .scope-chip.is-active,
body[data-theme="dark"] .bottom-nav-item.is-active {
  color: #04110b !important;
  background: linear-gradient(180deg, #7fae89 0%, #577860 100%) !important;
  border-color: rgba(102, 158, 117, 0.72) !important;
  box-shadow: 0 0 16px rgba(102, 158, 117, 0.12) !important;
}

body[data-theme="dark"] .topbar-search {
  position: fixed !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  bottom: 18px !important;
  width: min(1320px, calc(100% - 40px)) !important;
  padding: 12px 14px !important;
  z-index: 60 !important;
  background: var(--hud-panel-elevated) !important;
  border: 1px solid var(--hud-border) !important;
  border-radius: 0 !important;
  clip-path: var(--hud-cut) !important;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.42) !important;
}

body[data-theme="dark"] .topbar-search::before {
  content: "" !important;
  position: absolute !important;
  left: 18px !important;
  right: 18px !important;
  top: 0 !important;
  height: 2px !important;
  background: linear-gradient(90deg, var(--hud-cyan), var(--hud-green), transparent 88%) !important;
}

body[data-theme="dark"] .global-search-form {
  grid-template-columns: minmax(0, 1fr) 190px !important;
  gap: 12px !important;
  align-items: stretch !important;
}

body[data-theme="dark"] .global-search-shell {
  background: linear-gradient(180deg, rgba(7, 12, 18, 0.98) 0%, rgba(4, 8, 12, 1) 100%) !important;
  border: 1px solid rgba(127, 214, 255, 0.18) !important;
  border-radius: 0 !important;
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px) !important;
  min-height: 58px !important;
}

body[data-theme="dark"] .global-search-shell::before,
body[data-theme="dark"] .global-search-shell::after {
  display: none !important;
}

body[data-theme="dark"] #thread-search {
  min-height: 58px !important;
  padding: 0 20px !important;
  background: transparent !important;
  border: 0 !important;
  color: var(--hud-ink) !important;
  font-size: 1rem !important;
}

body[data-theme="dark"] #thread-search::placeholder {
  color: rgba(202, 217, 231, 0.58) !important;
}

body[data-theme="dark"] .global-search-submit {
  min-height: 58px !important;
  border-radius: 0 !important;
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px) !important;
  background: linear-gradient(180deg, #7da986 0%, #55745d 100%) !important;
  border: 1px solid rgba(102, 158, 117, 0.72) !important;
  color: #071108 !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  box-shadow: 0 0 16px rgba(102, 158, 117, 0.12) !important;
}

body[data-theme="dark"] .global-search-submit:hover {
  filter: brightness(1.04) !important;
}

body[data-theme="dark"] .bottom-nav {
  width: auto !important;
  left: 20px !important;
  right: auto !important;
  transform: none !important;
  bottom: 92px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  gap: 10px !important;
}

@media (min-width: 761px) {
  body[data-theme="dark"] .bottom-nav {
    display: none !important;
  }
}

@media (max-width: 980px) {
  body[data-theme="dark"] .story-grid,
  body[data-theme="dark"] .return-radar,
  body[data-theme="dark"] .feed-radar-grid,
  body[data-theme="dark"] .feed-signal-grid,
  body[data-theme="dark"] .thread-brief-row {
    grid-template-columns: 1fr !important;
  }

  body[data-theme="dark"] .global-search-form {
    grid-template-columns: 1fr !important;
  }

  body[data-theme="dark"] .topbar-search {
    bottom: 76px !important;
  }
}

/* Final compact footer search dock */
body[data-theme="dark"] .page-shell {
  padding-bottom: 122px !important;
}

body[data-theme="dark"] .topbar-search {
  position: fixed !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  bottom: 12px !important;
  width: min(1120px, calc(100% - 28px)) !important;
  padding: 8px 10px !important;
  z-index: 60 !important;
  background: rgba(8, 13, 19, 0.92) !important;
  border: 1px solid rgba(110, 151, 119, 0.32) !important;
  border-radius: 18px !important;
  clip-path: none !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24) !important;
  backdrop-filter: blur(12px) !important;
}

body[data-theme="dark"] .topbar-search::before {
  display: none !important;
}

body[data-theme="dark"] .global-search-form {
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  align-items: center !important;
}

body[data-theme="dark"] .global-search-shell {
  min-height: 44px !important;
  background: rgba(3, 7, 11, 0.92) !important;
  border: 1px solid rgba(127, 214, 255, 0.14) !important;
  border-radius: 14px !important;
  clip-path: none !important;
}

body[data-theme="dark"] .global-search-shell::before,
body[data-theme="dark"] .global-search-shell::after {
  display: none !important;
}

body[data-theme="dark"] #thread-search {
  min-height: 44px !important;
  padding: 0 14px !important;
  font-size: 0.95rem !important;
  line-height: 1.2 !important;
  color: rgba(238, 246, 241, 0.92) !important;
}

body[data-theme="dark"] #thread-search::placeholder {
  color: rgba(181, 194, 186, 0.68) !important;
}

body[data-theme="dark"] .global-search-submit {
  min-height: 44px !important;
  padding: 0 16px !important;
  border-radius: 14px !important;
  clip-path: none !important;
  background: linear-gradient(180deg, rgba(92, 124, 100, 0.96) 0%, rgba(65, 87, 71, 0.98) 100%) !important;
  border: 1px solid rgba(110, 151, 119, 0.46) !important;
  color: #f2f7f3 !important;
  font-size: 0.84rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

body[data-theme="dark"] .global-search-submit:hover {
  filter: brightness(1.06) !important;
  border-color: rgba(127, 214, 255, 0.28) !important;
}

@media (max-width: 980px) {
  body[data-theme="dark"] .page-shell {
    padding-bottom: 146px !important;
  }

  body[data-theme="dark"] .topbar-search {
    width: calc(100% - 18px) !important;
    bottom: 68px !important;
    padding: 8px !important;
  }

  body[data-theme="dark"] .global-search-form {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  body[data-theme="dark"] .global-search-submit {
    min-width: 104px !important;
    padding: 0 14px !important;
  }
}

/* Tactical command redesign pass */
body[data-theme="dark"] {
  background:
    radial-gradient(circle at 15% 0%, rgba(18, 67, 80, 0.22) 0%, rgba(18, 67, 80, 0) 24%),
    radial-gradient(circle at 100% 0%, rgba(32, 48, 112, 0.18) 0%, rgba(32, 48, 112, 0) 26%),
    linear-gradient(180deg, #060a0f 0%, #071019 52%, #07111c 100%) !important;
  color: #dce7ef !important;
}

body[data-theme="dark"]::before {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  pointer-events: none !important;
  background-image:
    linear-gradient(rgba(79, 184, 214, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 184, 214, 0.05) 1px, transparent 1px);
  background-size: 76px 76px, 76px 76px !important;
  opacity: 0.22 !important;
}

body[data-theme="dark"] .shell {
  width: min(1180px, calc(100% - 48px)) !important;
}

body[data-theme="dark"] .topbar {
  margin-top: 16px !important;
  padding: 14px 16px !important;
  background: linear-gradient(180deg, rgba(11, 15, 19, 0.98) 0%, rgba(8, 12, 16, 0.98) 100%) !important;
  border: 1px solid rgba(53, 120, 138, 0.34) !important;
  border-radius: 0 !important;
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%, 0 16px) !important;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32) !important;
  backdrop-filter: none !important;
}

body[data-theme="dark"] .brand-mark {
  width: 28px !important;
  height: 20px !important;
  border-radius: 2px !important;
  background: transparent !important;
  border: 1px solid rgba(48, 211, 255, 0.84) !important;
  color: #2fe5ff !important;
  font-size: 0 !important;
  position: relative !important;
}

body[data-theme="dark"] .brand-mark::before {
  content: ">_" !important;
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  font-size: 0.7rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.02em !important;
}

body[data-theme="dark"] #brand-kicker {
  display: none !important;
}

body[data-theme="dark"] .brand-title {
  font-family: "JetBrains Mono", "SFMono-Regular", "IBM Plex Mono", monospace !important;
  font-size: 1.55rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #35dcff !important;
  text-shadow: 0 0 16px rgba(47, 229, 255, 0.12) !important;
}

body[data-theme="dark"] .topbar-actions {
  gap: 10px !important;
}

body[data-theme="dark"] .language-picker {
  min-height: 38px !important;
  padding: 0 12px !important;
  border-radius: 0 !important;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%, 0 10px) !important;
  background: linear-gradient(180deg, rgba(13, 18, 24, 0.98) 0%, rgba(8, 12, 16, 0.98) 100%) !important;
  border: 1px solid rgba(53, 120, 138, 0.34) !important;
  box-shadow: none !important;
}

body[data-theme="dark"] .language-picker span,
body[data-theme="dark"] .language-picker strong,
body[data-theme="dark"] .language-caret {
  color: #91b5c1 !important;
}

body[data-theme="dark"] .section-bar {
  margin-bottom: 10px !important;
  padding: 0 4px !important;
  border-bottom: 1px solid rgba(53, 120, 138, 0.26) !important;
}

body[data-theme="dark"] .section-bar h2,
body[data-theme="dark"] .leaderboard-card h2 {
  font-family: "JetBrains Mono", "SFMono-Regular", monospace !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  color: #cfeef7 !important;
  text-shadow: 0 0 12px rgba(47, 229, 255, 0.14) !important;
}

body[data-theme="dark"] .section-link {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #87a4ad !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  font-size: 0.72rem !important;
  box-shadow: none !important;
}

body[data-theme="dark"] .story-grid,
body[data-theme="dark"] .thread-feed {
  gap: 14px !important;
}

body[data-theme="dark"] .story-card,
body[data-theme="dark"] .leaderboard-card,
body[data-theme="dark"] .toolbar-card,
body[data-theme="dark"] .thread-card,
body[data-theme="dark"] .feed-insert,
body[data-theme="dark"] .return-radar-card {
  background: linear-gradient(180deg, rgba(16, 18, 22, 0.98) 0%, rgba(10, 12, 15, 0.98) 100%) !important;
  border: 1px solid rgba(53, 120, 138, 0.34) !important;
  border-radius: 0 !important;
  clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px), 0 20px) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 16px 28px rgba(0, 0, 0, 0.25) !important;
}

body[data-theme="dark"] .story-card::before,
body[data-theme="dark"] .leaderboard-card::before,
body[data-theme="dark"] .toolbar-card::before,
body[data-theme="dark"] .thread-card::before,
body[data-theme="dark"] .feed-insert::before,
body[data-theme="dark"] .return-radar-card::before {
  content: "" !important;
  position: absolute !important;
  left: 14px !important;
  right: 14px !important;
  top: 0 !important;
  height: 2px !important;
  background: linear-gradient(90deg, rgba(88, 232, 255, 0.86), rgba(88, 232, 255, 0.18) 60%, transparent 100%) !important;
}

body[data-theme="dark"] .story-card {
  padding: 18px 20px 16px !important;
}

body[data-theme="dark"] .story-market-top {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
}

body[data-theme="dark"] .story-market-source {
  margin: 0 !important;
  font-family: "JetBrains Mono", "SFMono-Regular", monospace !important;
  font-size: 0.74rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #6c7d84 !important;
}

body[data-theme="dark"] .story-market-badge {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(53, 208, 240, 0.48) !important;
  color: #3be6ff !important;
  font-family: "JetBrains Mono", "SFMono-Regular", monospace !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  background: rgba(10, 20, 26, 0.92) !important;
}

body[data-theme="dark"] .story-market-main {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 16px !important;
  align-items: end !important;
}

body[data-theme="dark"] .story-company {
  margin: 8px 0 10px !important;
  font-size: 2rem !important;
  line-height: 1 !important;
  letter-spacing: -0.04em !important;
  color: #eff6fb !important;
}

body[data-theme="dark"] .story-market-price-row {
  display: grid !important;
  gap: 4px !important;
}

body[data-theme="dark"] .story-market-price {
  font-family: "JetBrains Mono", "SFMono-Regular", monospace !important;
  font-size: clamp(2rem, 3.4vw, 2.7rem) !important;
  line-height: 0.96 !important;
  letter-spacing: -0.04em !important;
  color: #f3f7fb !important;
}

body[data-theme="dark"] .story-market-delta {
  font-family: "JetBrains Mono", "SFMono-Regular", monospace !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #37dcff !important;
}

body[data-theme="dark"] .story-market-summary {
  margin: 10px 0 0 !important;
  max-width: 42ch !important;
  color: #9ab1bb !important;
  font-size: 0.96rem !important;
  line-height: 1.5 !important;
}

body[data-theme="dark"] .story-market-actions {
  display: grid !important;
  grid-auto-flow: row !important;
  gap: 10px !important;
  align-self: center !important;
}

body[data-theme="dark"] .story-command-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 96px !important;
  min-height: 40px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(75, 100, 112, 0.52) !important;
  background: rgba(18, 22, 27, 0.94) !important;
  color: #93a8af !important;
  font-family: "JetBrains Mono", "SFMono-Regular", monospace !important;
  font-size: 0.9rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

body[data-theme="dark"] .story-command-btn.is-active {
  border-color: rgba(53, 208, 240, 0.72) !important;
  color: #3de8ff !important;
  box-shadow: inset 0 0 0 1px rgba(53, 208, 240, 0.18) !important;
}

body[data-theme="dark"] .leaderboard-card {
  padding: 18px 20px !important;
}

body[data-theme="dark"] .leaderboard-row-simple {
  background: rgba(10, 13, 17, 0.98) !important;
  border: 1px solid rgba(53, 120, 138, 0.34) !important;
  border-radius: 0 !important;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px) !important;
}

body[data-theme="dark"] .leaderboard-row-rank {
  color: #58dfff !important;
  border-color: rgba(53, 208, 240, 0.28) !important;
  background: rgba(19, 32, 41, 0.96) !important;
}

body[data-theme="dark"] .leaderboard-row-value strong {
  font-family: "JetBrains Mono", "SFMono-Regular", monospace !important;
  color: #f1f7fb !important;
}

body[data-theme="dark"] .leaderboard-row-value span,
body[data-theme="dark"] .leaderboard-row-handle,
body[data-theme="dark"] .leaderboard-row-basis {
  color: #8198a2 !important;
}

body[data-theme="dark"] .toolbar-card {
  padding: 14px 16px !important;
}

body[data-theme="dark"] .filter-chip,
body[data-theme="dark"] .scope-chip {
  min-height: 34px !important;
  border-radius: 0 !important;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px) !important;
  background: rgba(14, 19, 24, 0.98) !important;
  border: 1px solid rgba(53, 120, 138, 0.34) !important;
  color: #8aa3ad !important;
  font-family: "JetBrains Mono", "SFMono-Regular", monospace !important;
  font-size: 0.82rem !important;
  text-transform: uppercase !important;
}

body[data-theme="dark"] .filter-chip.is-active,
body[data-theme="dark"] .scope-chip.is-active {
  background: rgba(8, 29, 36, 0.98) !important;
  border-color: rgba(53, 208, 240, 0.58) !important;
  color: #3ce6ff !important;
}

body[data-theme="dark"] .thread-card {
  padding: 20px 20px 18px !important;
}

body[data-theme="dark"] .thread-avatar {
  border-radius: 0 !important;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px) !important;
  background: linear-gradient(180deg, rgba(18, 29, 37, 0.98) 0%, rgba(8, 15, 19, 0.98) 100%) !important;
  color: #42ddff !important;
}

body[data-theme="dark"] .thread-author-name {
  font-size: 1.12rem !important;
  color: #f0f6fb !important;
}

body[data-theme="dark"] .thread-author-handle,
body[data-theme="dark"] .thread-author-age,
body[data-theme="dark"] .thread-summary,
body[data-theme="dark"] .thread-meta,
body[data-theme="dark"] .proof-meta {
  color: #859ca4 !important;
}

body[data-theme="dark"] .thread-title {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem) !important;
  color: #eef6fb !important;
}

body[data-theme="dark"] .thread-brief-pill {
  background: rgba(11, 16, 20, 0.98) !important;
  border: 1px solid rgba(53, 120, 138, 0.26) !important;
  border-radius: 0 !important;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px) !important;
}

body[data-theme="dark"] .thread-brief-pill strong {
  color: #eaf5fb !important;
}

body[data-theme="dark"] .topbar-search {
  background: rgba(10, 13, 17, 0.94) !important;
  border: 1px solid rgba(53, 120, 138, 0.34) !important;
}

body[data-theme="dark"] .global-search-shell {
  background: rgba(5, 9, 12, 0.96) !important;
  border: 1px solid rgba(53, 120, 138, 0.26) !important;
}

body[data-theme="dark"] #thread-search {
  color: #e5f0f6 !important;
}

body[data-theme="dark"] .global-search-submit {
  background: rgba(10, 21, 28, 0.98) !important;
  border-color: rgba(53, 208, 240, 0.6) !important;
  color: #3de7ff !important;
  font-family: "JetBrains Mono", "SFMono-Regular", monospace !important;
}

body[data-theme="dark"] .global-search-submit:hover {
  background: rgba(11, 28, 37, 0.98) !important;
}

@media (max-width: 980px) {
  body[data-theme="dark"] .story-grid {
    grid-template-columns: 1fr !important;
  }

  body[data-theme="dark"] .story-market-main {
    grid-template-columns: 1fr !important;
  }

  body[data-theme="dark"] .story-market-actions {
    grid-auto-flow: column !important;
    justify-content: start !important;
  }
}

/* Final cleanup: square tactical panels + softer neon logo */
body[data-theme="dark"] .topbar,
body[data-theme="dark"] .language-picker,
body[data-theme="dark"] .story-card,
body[data-theme="dark"] .leaderboard-card,
body[data-theme="dark"] .toolbar-card,
body[data-theme="dark"] .thread-card,
body[data-theme="dark"] .feed-insert,
body[data-theme="dark"] .return-radar-card,
body[data-theme="dark"] .leaderboard-row-simple,
body[data-theme="dark"] .filter-chip,
body[data-theme="dark"] .scope-chip,
body[data-theme="dark"] .thread-brief-pill,
body[data-theme="dark"] .story-command-btn,
body[data-theme="dark"] .story-market-badge,
body[data-theme="dark"] .topbar-search,
body[data-theme="dark"] .global-search-shell,
body[data-theme="dark"] .global-search-submit,
body[data-theme="dark"] .thread-avatar {
  clip-path: none !important;
  border-radius: 0 !important;
}

body[data-theme="dark"] .brand-mark {
  border-color: rgba(67, 223, 255, 0.78) !important;
  box-shadow:
    0 0 0 1px rgba(67, 223, 255, 0.08),
    0 0 10px rgba(67, 223, 255, 0.14),
    inset 0 0 10px rgba(67, 223, 255, 0.06) !important;
}

body[data-theme="dark"] .brand-mark::before {
  color: #4ae5ff !important;
  text-shadow: 0 0 8px rgba(74, 229, 255, 0.22) !important;
}

body[data-theme="dark"] .brand-title {
  color: #43ddff !important;
  text-shadow:
    0 0 8px rgba(67, 221, 255, 0.12),
    0 0 18px rgba(67, 221, 255, 0.06) !important;
}

/* Refinement: hard right angles + restrained logo glow */
body[data-theme="dark"] .topbar,
body[data-theme="dark"] .language-picker,
body[data-theme="dark"] .story-card,
body[data-theme="dark"] .leaderboard-card,
body[data-theme="dark"] .toolbar-card,
body[data-theme="dark"] .thread-card,
body[data-theme="dark"] .feed-insert,
body[data-theme="dark"] .return-radar-card,
body[data-theme="dark"] .leaderboard-row-simple,
body[data-theme="dark"] .filter-chip,
body[data-theme="dark"] .scope-chip,
body[data-theme="dark"] .thread-brief-pill,
body[data-theme="dark"] .story-command-btn,
body[data-theme="dark"] .story-market-badge,
body[data-theme="dark"] .topbar-search,
body[data-theme="dark"] .global-search-shell,
body[data-theme="dark"] .global-search-submit,
body[data-theme="dark"] .thread-avatar,
body[data-theme="dark"] .story-market-card,
body[data-theme="dark"] .story-market-shell,
body[data-theme="dark"] .story-market-actions > *,
body[data-theme="dark"] .language-menu,
body[data-theme="dark"] .language-option,
body[data-theme="dark"] .bottom-search-dock,
body[data-theme="dark"] .bottom-search-shell,
body[data-theme="dark"] .bottom-search-submit {
  clip-path: none !important;
  border-radius: 0 !important;
}

body[data-theme="dark"] .topbar,
body[data-theme="dark"] .story-card,
body[data-theme="dark"] .leaderboard-card,
body[data-theme="dark"] .toolbar-card,
body[data-theme="dark"] .thread-card,
body[data-theme="dark"] .feed-insert,
body[data-theme="dark"] .return-radar-card {
  box-shadow:
    0 0 0 1px rgba(84, 120, 132, 0.28),
    0 16px 36px rgba(0, 0, 0, 0.28) !important;
}

body[data-theme="dark"] .brand-mark {
  border-color: rgba(79, 213, 232, 0.6) !important;
  box-shadow:
    0 0 0 1px rgba(79, 213, 232, 0.05),
    0 0 14px rgba(79, 213, 232, 0.08),
    inset 0 0 10px rgba(79, 213, 232, 0.05) !important;
}

body[data-theme="dark"] .brand-mark::before {
  color: #4fd5e8 !important;
  text-shadow:
    0 0 5px rgba(79, 213, 232, 0.14),
    0 0 12px rgba(79, 213, 232, 0.05) !important;
}

body[data-theme="dark"] .brand-title {
  color: #4fd5e8 !important;
  text-shadow:
    0 0 6px rgba(79, 213, 232, 0.11),
    0 0 14px rgba(79, 213, 232, 0.04) !important;
}

/* Detached fixed chrome */
body[data-theme="dark"] .topbar.shell {
  position: fixed !important;
  top: 18px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: min(1180px, calc(100% - 36px)) !important;
  margin: 0 !important;
  padding: 14px 18px !important;
  z-index: 120 !important;
  background: linear-gradient(180deg, rgba(8, 12, 16, 0.96) 0%, rgba(5, 8, 12, 0.96) 100%) !important;
  border: 1px solid rgba(47, 94, 68, 0.34) !important;
  backdrop-filter: blur(14px) !important;
}

body[data-theme="dark"] .topbar.shell::before,
body[data-theme="dark"] .topbar.shell::after {
  display: none !important;
}

body[data-theme="dark"] .topbar-main {
  min-height: 56px !important;
  align-items: center !important;
}

body[data-theme="dark"] .page-shell {
  padding-top: 122px !important;
  padding-bottom: 146px !important;
  min-height: 100vh !important;
}

body[data-theme="dark"] .app-tab-panel {
  margin-top: 0 !important;
}

body[data-theme="dark"] .bottom-shell {
  position: fixed !important;
  left: 50% !important;
  bottom: 14px !important;
  transform: translateX(-50%) !important;
  width: min(1180px, calc(100% - 36px)) !important;
  z-index: 120 !important;
  display: grid !important;
  gap: 10px !important;
  padding: 12px 14px !important;
  background: linear-gradient(180deg, rgba(8, 12, 16, 0.94) 0%, rgba(5, 8, 12, 0.94) 100%) !important;
  border: 1px solid rgba(47, 94, 68, 0.32) !important;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.28) !important;
  backdrop-filter: blur(16px) !important;
}

body[data-theme="dark"] .topbar-search {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: 100% !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body[data-theme="dark"] .topbar-search::before {
  display: none !important;
}

body[data-theme="dark"] .global-search-form {
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  align-items: center !important;
}

body[data-theme="dark"] .global-search-shell,
body[data-theme="dark"] #thread-search,
body[data-theme="dark"] .global-search-submit {
  min-height: 42px !important;
}

body[data-theme="dark"] .bottom-nav {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: 100% !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

@media (min-width: 761px) {
  body[data-theme="dark"] .bottom-nav {
    display: flex !important;
  }
}

@media (max-width: 760px) {
  body[data-theme="dark"] .topbar.shell {
    top: 10px !important;
    width: calc(100% - 16px) !important;
    padding: 12px 14px !important;
  }

  body[data-theme="dark"] .page-shell {
    padding-top: 104px !important;
    padding-bottom: 152px !important;
  }

  body[data-theme="dark"] .bottom-shell {
    width: calc(100% - 16px) !important;
    bottom: 10px !important;
    padding: 10px !important;
  }

  body[data-theme="dark"] .bottom-nav {
    justify-content: stretch !important;
  }

  body[data-theme="dark"] .bottom-nav-item {
    flex: 1 1 0 !important;
  }
}

/* Flush fixed header/footer bars */
body[data-theme="dark"] .topbar.shell {
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
  width: 100% !important;
  padding: 14px 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-top: 0 !important;
  border-bottom: 1px solid rgba(47, 94, 68, 0.34) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22) !important;
}

body[data-theme="dark"] .topbar-main {
  width: min(1180px, calc(100% - 36px)) !important;
  margin: 0 auto !important;
}

body[data-theme="dark"] .page-shell {
  padding-top: 104px !important;
  padding-bottom: 122px !important;
}

body[data-theme="dark"] .bottom-shell {
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  transform: none !important;
  width: 100% !important;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom)) !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-top: 1px solid rgba(47, 94, 68, 0.32) !important;
  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.24) !important;
}

body[data-theme="dark"] .topbar-search,
body[data-theme="dark"] .bottom-nav {
  width: min(1180px, calc(100% - 36px)) !important;
  margin: 0 auto !important;
}

@media (max-width: 760px) {
  body[data-theme="dark"] .topbar.shell {
    top: 0 !important;
    width: 100% !important;
    padding: 12px 0 !important;
  }

  body[data-theme="dark"] .topbar-main,
  body[data-theme="dark"] .topbar-search,
  body[data-theme="dark"] .bottom-nav {
    width: calc(100% - 16px) !important;
  }

  body[data-theme="dark"] .page-shell {
    padding-top: 92px !important;
    padding-bottom: 136px !important;
  }

  body[data-theme="dark"] .bottom-shell {
    width: 100% !important;
    bottom: 0 !important;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom)) !important;
  }
}

/* Signal board brand treatment */
body[data-theme="dark"] .brand-lockup {
  position: relative !important;
  display: inline-grid !important;
  grid-template-columns: auto 1fr !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 10px 18px 10px 12px !important;
  min-height: 58px !important;
  background:
    radial-gradient(circle at 18% 50%, rgba(61, 195, 214, 0.1) 0%, rgba(61, 195, 214, 0) 28%),
    linear-gradient(180deg, rgba(7, 11, 15, 0.98) 0%, rgba(3, 6, 10, 0.99) 100%) !important;
  border: 1px solid rgba(78, 224, 242, 0.22) !important;
  box-shadow:
    inset 0 0 0 1px rgba(20, 38, 44, 0.92),
    inset 0 0 18px rgba(41, 138, 156, 0.07),
    0 0 0 1px rgba(12, 24, 29, 0.72),
    0 0 18px rgba(63, 217, 237, 0.06) !important;
  overflow: hidden !important;
}

body[data-theme="dark"] .brand-lockup::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(120, 240, 255, 0.045) 0,
      rgba(120, 240, 255, 0.045) 1px,
      transparent 1px,
      transparent 3px
    ) !important;
  opacity: 0.3 !important;
  pointer-events: none !important;
}

body[data-theme="dark"] .brand-lockup::after {
  content: "" !important;
  position: absolute !important;
  left: 12px !important;
  right: 12px !important;
  top: 0 !important;
  height: 2px !important;
  background: linear-gradient(90deg, rgba(115, 244, 255, 0.9), rgba(115, 244, 255, 0.18), transparent 88%) !important;
  box-shadow: 0 0 12px rgba(115, 244, 255, 0.18) !important;
  pointer-events: none !important;
}

body[data-theme="dark"] .brand-mark {
  position: relative !important;
  z-index: 1 !important;
  border-color: rgba(110, 231, 246, 0.86) !important;
  box-shadow:
    0 0 0 1px rgba(110, 231, 246, 0.09),
    0 0 8px rgba(110, 231, 246, 0.24),
    0 0 18px rgba(110, 231, 246, 0.12),
    inset 0 0 10px rgba(110, 231, 246, 0.08) !important;
}

body[data-theme="dark"] .brand-title {
  position: relative !important;
  z-index: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  line-height: 1 !important;
  font-family: "JetBrains Mono", "SFMono-Regular", monospace !important;
  font-size: 1.46rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: #8bf3ff !important;
  text-shadow:
    0 0 3px rgba(139, 243, 255, 0.55),
    0 0 10px rgba(139, 243, 255, 0.28),
    0 0 22px rgba(139, 243, 255, 0.14) !important;
}

body[data-theme="dark"] .brand-title::after {
  content: "" !important;
  display: inline-block !important;
  width: 2px !important;
  height: 0.9em !important;
  margin-left: 0.22em !important;
  align-self: center !important;
  transform: translateY(-0.02em) !important;
  border-radius: 1px !important;
  color: rgba(139, 243, 255, 0.82) !important;
  background: currentColor !important;
  box-shadow:
    0 0 4px rgba(139, 243, 255, 0.32),
    0 0 10px rgba(139, 243, 255, 0.16),
    0 0 18px rgba(139, 243, 255, 0.08) !important;
  animation: signal-board-pulse 0.5s steps(1, end) infinite !important;
}

body[data-theme="dark"] .eyebrow {
  position: relative !important;
  z-index: 1 !important;
  margin-bottom: 2px !important;
  color: rgba(132, 173, 180, 0.76) !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  text-shadow: 0 0 8px rgba(110, 231, 246, 0.05) !important;
}

@keyframes signal-board-pulse {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0.12;
  }
}

/* RTS command footer */
body[data-theme="dark"] .bottom-shell {
  gap: 8px !important;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom)) !important;
  background:
    linear-gradient(180deg, rgba(6, 10, 14, 0.98) 0%, rgba(4, 7, 10, 0.99) 100%) !important;
  border-top: 1px solid rgba(56, 115, 126, 0.34) !important;
  box-shadow:
    0 -10px 24px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(95, 190, 207, 0.08) !important;
}

body[data-theme="dark"] .bottom-shell::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  height: 2px !important;
  background: linear-gradient(90deg, transparent, rgba(82, 208, 225, 0.26), transparent) !important;
  pointer-events: none !important;
}

body[data-theme="dark"] .topbar-search {
  position: relative !important;
  padding: 0 !important;
}

body[data-theme="dark"] .topbar-search::after {
  content: "TACTICAL QUERY" !important;
  position: absolute !important;
  left: 12px !important;
  top: -12px !important;
  padding: 0 6px !important;
  background: rgba(4, 7, 10, 0.96) !important;
  color: rgba(114, 204, 218, 0.84) !important;
  font-family: "JetBrains Mono", "SFMono-Regular", monospace !important;
  font-size: 0.64rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

body[data-theme="dark"] .global-search-form {
  position: relative !important;
  grid-template-columns: minmax(0, 1fr) 146px !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  background:
    linear-gradient(180deg, rgba(10, 16, 22, 0.96) 0%, rgba(7, 11, 16, 0.98) 100%) !important;
  border: 1px solid rgba(52, 108, 120, 0.36) !important;
  box-shadow:
    inset 0 0 0 1px rgba(14, 27, 33, 0.9),
    inset 0 1px 0 rgba(96, 206, 222, 0.08) !important;
}

body[data-theme="dark"] .global-search-form::before,
body[data-theme="dark"] .global-search-form::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 14px !important;
  pointer-events: none !important;
  background:
    linear-gradient(180deg, rgba(64, 142, 156, 0.2), rgba(64, 142, 156, 0.05)) !important;
}

body[data-theme="dark"] .global-search-form::before {
  left: 0 !important;
  clip-path: polygon(0 0, 100% 0, 0 100%) !important;
}

body[data-theme="dark"] .global-search-form::after {
  right: 0 !important;
  clip-path: polygon(100% 0, 100% 100%, 0 100%) !important;
}

body[data-theme="dark"] .global-search-shell {
  position: relative !important;
  min-height: 40px !important;
  background:
    linear-gradient(180deg, rgba(1, 4, 7, 0.98) 0%, rgba(3, 6, 9, 1) 100%) !important;
  border: 1px solid rgba(56, 115, 126, 0.34) !important;
  box-shadow:
    inset 0 0 0 1px rgba(10, 18, 24, 0.94),
    inset 0 1px 0 rgba(84, 197, 212, 0.05) !important;
}

body[data-theme="dark"] .global-search-shell::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 14px !important;
  background: linear-gradient(180deg, rgba(58, 124, 138, 0.2), rgba(58, 124, 138, 0.05)) !important;
  clip-path: polygon(0 0, 100% 0, 0 100%) !important;
}

body[data-theme="dark"] #thread-search {
  min-height: 40px !important;
  padding: 0 14px 0 18px !important;
  font-family: "JetBrains Mono", "SFMono-Regular", monospace !important;
  font-size: 0.92rem !important;
  letter-spacing: 0.01em !important;
  color: #d9e7ed !important;
}

body[data-theme="dark"] #thread-search::placeholder {
  color: rgba(149, 168, 176, 0.66) !important;
}

body[data-theme="dark"] .global-search-submit {
  min-height: 40px !important;
  padding: 0 14px !important;
  background:
    linear-gradient(180deg, rgba(21, 92, 103, 0.96) 0%, rgba(11, 56, 67, 0.98) 100%) !important;
  border: 1px solid rgba(76, 206, 224, 0.34) !important;
  color: #86f0ff !important;
  font-family: "JetBrains Mono", "SFMono-Regular", monospace !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  box-shadow:
    inset 0 0 0 1px rgba(9, 32, 38, 0.9),
    0 0 10px rgba(82, 208, 225, 0.06) !important;
}

body[data-theme="dark"] .global-search-submit:hover {
  background:
    linear-gradient(180deg, rgba(25, 108, 122, 0.96) 0%, rgba(13, 67, 79, 0.98) 100%) !important;
  border-color: rgba(104, 222, 239, 0.42) !important;
  color: #b7f7ff !important;
}

body[data-theme="dark"] .bottom-nav {
  gap: 8px !important;
}

body[data-theme="dark"] .bottom-nav-item {
  min-height: 34px !important;
  padding: 0 14px !important;
  background:
    linear-gradient(180deg, rgba(12, 18, 23, 0.98) 0%, rgba(7, 10, 14, 0.98) 100%) !important;
  border: 1px solid rgba(52, 108, 120, 0.3) !important;
  color: rgba(145, 171, 182, 0.92) !important;
  font-family: "JetBrains Mono", "SFMono-Regular", monospace !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  box-shadow: inset 0 0 0 1px rgba(10, 18, 24, 0.9) !important;
}

body[data-theme="dark"] .bottom-nav-item.is-active {
  background:
    linear-gradient(180deg, rgba(18, 96, 108, 0.96) 0%, rgba(8, 53, 63, 0.98) 100%) !important;
  border-color: rgba(76, 206, 224, 0.34) !important;
  color: #90f2ff !important;
  box-shadow:
    inset 0 0 0 1px rgba(10, 35, 41, 0.94),
    0 0 10px rgba(82, 208, 225, 0.06) !important;
}

@media (max-width: 760px) {
  body[data-theme="dark"] .global-search-form {
    grid-template-columns: minmax(0, 1fr) 120px !important;
    padding: 8px 10px !important;
  }

  body[data-theme="dark"] .topbar-search::after {
    left: 8px !important;
  }
}

/* Cinematic cyberdeck pass */
body[data-theme="dark"] {
  background:
    radial-gradient(circle at 14% 16%, rgba(38, 164, 201, 0.16) 0%, rgba(38, 164, 201, 0) 26%),
    radial-gradient(circle at 84% 10%, rgba(74, 117, 255, 0.1) 0%, rgba(74, 117, 255, 0) 24%),
    radial-gradient(circle at 50% 100%, rgba(54, 208, 176, 0.06) 0%, rgba(54, 208, 176, 0) 34%),
    linear-gradient(180deg, #04070c 0%, #050911 48%, #060b14 100%) !important;
  color: #e7f4fb !important;
}

body[data-theme="dark"]::before {
  opacity: 0.14 !important;
  background-size: 64px 64px, 64px 64px !important;
}

body[data-theme="dark"]::after {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  pointer-events: none !important;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(151, 228, 255, 0.018) 0,
      rgba(151, 228, 255, 0.018) 1px,
      transparent 1px,
      transparent 3px
    ) !important;
  opacity: 0.22 !important;
  mix-blend-mode: screen !important;
}

body[data-theme="dark"] .ambient {
  opacity: 0.58 !important;
  filter: blur(28px) saturate(1.05) !important;
}

body[data-theme="dark"] .ambient-a {
  background:
    radial-gradient(circle, rgba(34, 112, 54, 0.14) 0%, rgba(34, 112, 54, 0.02) 38%, transparent 74%) !important;
}

body[data-theme="dark"] .ambient-b {
  background:
    radial-gradient(circle, rgba(13, 61, 32, 0.12) 0%, rgba(13, 61, 32, 0.02) 44%, transparent 76%) !important;
}

.code-wall {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.78;
}

.code-wall::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 16%, rgba(72, 165, 80, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(1, 4, 2, 0.08) 0%, rgba(1, 4, 2, 0.02) 20%, rgba(1, 4, 2, 0.06) 100%);
}

.code-wall::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 5, 3, 0.28) 0%, rgba(2, 5, 3, 0.03) 14%, rgba(2, 5, 3, 0.08) 86%, rgba(2, 5, 3, 0.3) 100%);
}

.code-wall-column {
  position: absolute;
  top: -58%;
  height: 216%;
  overflow: hidden;
  opacity: var(--code-opacity, 0.3);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.16) 6%, rgba(0, 0, 0, 0.88) 18%, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0.24) 92%, transparent 100%);
}

.code-wall-stream {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  min-height: 200%;
  width: 100%;
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 0.92rem;
  line-height: 0.88;
  letter-spacing: 0.04em;
  color: rgba(108, 225, 122, 0.2);
  text-shadow:
    0 0 4px rgba(88, 180, 98, 0.1),
    0 0 10px rgba(88, 180, 98, 0.05);
  animation: code-wall-fall var(--code-duration, 18s) linear infinite;
  animation-delay: var(--code-delay, 0s);
}

.code-wall-glyph {
  display: block;
  width: 100%;
  text-align: center;
  opacity: 0.1;
}

.code-wall-glyph.is-bright {
  opacity: 0.38;
  color: rgba(136, 248, 148, 0.56);
  text-shadow:
    0 0 6px rgba(95, 186, 110, 0.18),
    0 0 14px rgba(95, 186, 110, 0.08);
}

.code-wall-glyph.is-tail-3 {
  opacity: 0.18;
  color: rgba(120, 232, 132, 0.22);
}

.code-wall-glyph.is-tail-2 {
  opacity: 0.32;
  color: rgba(134, 241, 146, 0.36);
  text-shadow: 0 0 5px rgba(90, 182, 101, 0.1);
}

.code-wall-glyph.is-tail-1 {
  opacity: 0.54;
  color: rgba(154, 252, 164, 0.54);
  text-shadow:
    0 0 6px rgba(104, 203, 115, 0.18),
    0 0 14px rgba(104, 203, 115, 0.08);
}

.code-wall-glyph.is-head {
  opacity: 0.98;
  color: rgba(230, 255, 232, 0.92);
  text-shadow:
    0 0 7px rgba(170, 255, 180, 0.42),
    0 0 16px rgba(110, 220, 122, 0.22);
}

@keyframes code-wall-fall {
  0% {
    transform: translateY(-50%);
  }
  100% {
    transform: translateY(0);
  }
}

body[data-theme="dark"] .topbar.shell {
  background:
    linear-gradient(180deg, rgba(8, 12, 18, 0.92) 0%, rgba(5, 8, 12, 0.94) 100%) !important;
  border-bottom-color: rgba(68, 160, 86, 0.24) !important;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.28),
    inset 0 -1px 0 rgba(124, 224, 138, 0.05) !important;
  backdrop-filter: blur(18px) !important;
}

body[data-theme="dark"] .topbar.shell::before {
  display: block !important;
  content: "" !important;
  position: absolute !important;
  inset: auto 0 0 0 !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(112, 205, 124, 0.34), transparent) !important;
}

body[data-theme="dark"] .brand-lockup {
  background:
    linear-gradient(180deg, rgba(9, 14, 20, 0.82) 0%, rgba(5, 8, 13, 0.88) 100%) !important;
  border-color: rgba(73, 176, 91, 0.22) !important;
  box-shadow:
    inset 0 0 0 1px rgba(18, 35, 42, 0.86),
    inset 0 0 24px rgba(82, 182, 98, 0.05),
    0 0 0 1px rgba(6, 15, 18, 0.8),
    0 0 24px rgba(72, 182, 90, 0.08) !important;
}

body[data-theme="dark"] .brand-lockup::after {
  height: 1px !important;
  top: auto !important;
  bottom: 8px !important;
  background: linear-gradient(90deg, rgba(127, 231, 141, 0.42), rgba(127, 231, 141, 0.05), transparent 86%) !important;
  box-shadow: 0 0 12px rgba(127, 231, 141, 0.08) !important;
}

body[data-theme="dark"] .brand-title {
  color: #99f1a6 !important;
  text-shadow:
    0 0 4px rgba(153, 241, 166, 0.4),
    0 0 10px rgba(153, 241, 166, 0.24),
    0 0 24px rgba(153, 241, 166, 0.1) !important;
}

body[data-theme="dark"] .language-picker,
body[data-theme="dark"] .language-menu,
body[data-theme="dark"] .language-option {
  background:
    linear-gradient(180deg, rgba(10, 15, 21, 0.9) 0%, rgba(6, 10, 14, 0.94) 100%) !important;
  border-color: rgba(71, 157, 84, 0.2) !important;
  box-shadow:
    inset 0 0 0 1px rgba(15, 28, 35, 0.82),
    0 0 14px rgba(53, 166, 86, 0.04) !important;
}

body[data-theme="dark"] .section-bar {
  border-bottom-color: rgba(73, 171, 92, 0.18) !important;
}

body[data-theme="dark"] .section-bar h2,
body[data-theme="dark"] .leaderboard-card h2 {
  color: #e6ffe8 !important;
  text-shadow: 0 0 12px rgba(123, 228, 138, 0.1) !important;
}

body[data-theme="dark"] .section-link,
body[data-theme="dark"] .feed-insert-link {
  color: #8be89a !important;
  text-shadow: 0 0 10px rgba(139, 232, 154, 0.08) !important;
}

body[data-theme="dark"] .story-card,
body[data-theme="dark"] .leaderboard-card,
body[data-theme="dark"] .toolbar-card,
body[data-theme="dark"] .thread-card,
body[data-theme="dark"] .feed-insert,
body[data-theme="dark"] .return-radar-card,
body[data-theme="dark"] .composer-shell {
  background:
    linear-gradient(180deg, rgba(10, 13, 18, 0.9) 0%, rgba(7, 10, 14, 0.94) 100%) !important;
  border-color: rgba(72, 160, 86, 0.18) !important;
  box-shadow:
    inset 0 0 0 1px rgba(17, 32, 40, 0.88),
    inset 0 0 28px rgba(40, 151, 72, 0.03),
    0 14px 26px rgba(0, 0, 0, 0.22) !important;
  backdrop-filter: blur(12px) !important;
}

body[data-theme="dark"] .story-card::before,
body[data-theme="dark"] .leaderboard-card::before,
body[data-theme="dark"] .toolbar-card::before,
body[data-theme="dark"] .thread-card::before,
body[data-theme="dark"] .feed-insert::before,
body[data-theme="dark"] .return-radar-card::before,
body[data-theme="dark"] .composer-shell::before {
  height: 1px !important;
  background: linear-gradient(90deg, rgba(112, 214, 126, 0.5), rgba(112, 214, 126, 0.05), transparent 82%) !important;
  box-shadow: 0 0 8px rgba(112, 214, 126, 0.06) !important;
}

body[data-theme="dark"] .thread-card:hover,
body[data-theme="dark"] .story-card:hover,
body[data-theme="dark"] .leaderboard-row-simple:hover,
body[data-theme="dark"] .feed-rank-row:hover {
  border-color: rgba(107, 222, 250, 0.28) !important;
  box-shadow:
    inset 0 0 0 1px rgba(23, 44, 52, 0.92),
    inset 0 0 30px rgba(52, 175, 206, 0.06),
    0 16px 30px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(91, 213, 244, 0.06) !important;
}

body[data-theme="dark"] .thread-headline,
body[data-theme="dark"] .story-market-title,
body[data-theme="dark"] .leaderboard-name {
  color: #effbff !important;
}

body[data-theme="dark"] .thread-summary,
body[data-theme="dark"] .leaderboard-meta,
body[data-theme="dark"] .story-market-meta,
body[data-theme="dark"] .section-description,
body[data-theme="dark"] .thread-meta,
body[data-theme="dark"] .author-handle {
  color: rgba(178, 201, 211, 0.82) !important;
}

body[data-theme="dark"] .thread-brief-pill {
  background: linear-gradient(180deg, rgba(6, 11, 15, 0.92) 0%, rgba(3, 7, 10, 0.96) 100%) !important;
  border-color: rgba(74, 182, 209, 0.18) !important;
  box-shadow: inset 0 0 0 1px rgba(12, 23, 29, 0.92) !important;
}

body[data-theme="dark"] .thread-brief-pill span,
body[data-theme="dark"] .thread-brief-note {
  color: rgba(149, 176, 186, 0.88) !important;
}

body[data-theme="dark"] .thread-brief-pill strong {
  color: #effbff !important;
}

body[data-theme="dark"] .status-chip {
  background: rgba(7, 14, 18, 0.92) !important;
  border-color: rgba(71, 176, 203, 0.2) !important;
  box-shadow:
    inset 0 0 0 1px rgba(14, 28, 33, 0.88),
    0 0 8px rgba(71, 176, 203, 0.04) !important;
}

body[data-theme="dark"] .status-chip.status-chip-buy,
body[data-theme="dark"] .status-chip.tone-positive {
  color: #8ff1cf !important;
}

body[data-theme="dark"] .status-chip.status-chip-watch,
body[data-theme="dark"] .status-chip.tone-watch {
  color: #cfe7ef !important;
}

body[data-theme="dark"] .status-chip.status-chip-sell,
body[data-theme="dark"] .status-chip.tone-negative {
  color: #ffb3a5 !important;
}

body[data-theme="dark"] .bottom-shell {
  background:
    linear-gradient(180deg, rgba(8, 12, 18, 0.94) 0%, rgba(5, 8, 12, 0.98) 100%) !important;
  border-top-color: rgba(73, 182, 210, 0.22) !important;
  box-shadow:
    0 -14px 30px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(116, 226, 255, 0.04) !important;
  backdrop-filter: blur(16px) !important;
}

body[data-theme="dark"] .topbar-search::after {
  color: rgba(113, 210, 230, 0.78) !important;
  text-shadow: 0 0 8px rgba(113, 210, 230, 0.12) !important;
}

body[data-theme="dark"] .global-search-form {
  background:
    linear-gradient(180deg, rgba(9, 14, 20, 0.92) 0%, rgba(5, 9, 14, 0.96) 100%) !important;
  border-color: rgba(67, 167, 194, 0.24) !important;
}

body[data-theme="dark"] .global-search-shell {
  background:
    linear-gradient(180deg, rgba(2, 5, 8, 0.98) 0%, rgba(4, 7, 10, 1) 100%) !important;
  border-color: rgba(67, 167, 194, 0.24) !important;
}

body[data-theme="dark"] .global-search-submit {
  background:
    linear-gradient(180deg, rgba(30, 100, 45, 0.96) 0%, rgba(14, 49, 24, 0.98) 100%) !important;
  border-color: rgba(135, 228, 143, 0.24) !important;
  color: #d6ffd8 !important;
  text-shadow: 0 0 10px rgba(121, 214, 129, 0.12) !important;
}

body[data-theme="dark"] .global-search-submit:hover {
  background:
    linear-gradient(180deg, rgba(36, 118, 53, 0.96) 0%, rgba(16, 60, 28, 0.98) 100%) !important;
  border-color: rgba(149, 236, 157, 0.34) !important;
}

body[data-theme="dark"] .bottom-nav-item {
  background:
    linear-gradient(180deg, rgba(9, 14, 19, 0.96) 0%, rgba(5, 8, 12, 0.98) 100%) !important;
  border-color: rgba(67, 167, 194, 0.2) !important;
  color: rgba(181, 201, 209, 0.88) !important;
}

body[data-theme="dark"] .bottom-nav-item.is-active {
  background:
    linear-gradient(180deg, rgba(19, 110, 135, 0.94) 0%, rgba(9, 68, 86, 0.98) 100%) !important;
  border-color: rgba(104, 224, 249, 0.34) !important;
  color: #c6fbff !important;
  box-shadow:
    inset 0 0 0 1px rgba(12, 46, 54, 0.9),
    0 0 12px rgba(91, 213, 244, 0.08) !important;
}

body[data-theme="dark"] .topbar.shell,
body[data-theme="dark"] .page-shell,
body[data-theme="dark"] .bottom-shell {
  position: relative;
  z-index: 2;
}

/* JARVIS command dock refinement */
body[data-theme="dark"] .bottom-shell {
  gap: 0 !important;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom)) !important;
  background:
    linear-gradient(180deg, rgba(4, 8, 12, 0.98) 0%, rgba(3, 6, 9, 0.99) 100%) !important;
  border-top: 1px solid rgba(74, 191, 217, 0.22) !important;
  box-shadow:
    0 -14px 32px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(113, 220, 244, 0.1),
    inset 0 18px 36px rgba(28, 91, 110, 0.08) !important;
  backdrop-filter: blur(18px) !important;
}

body[data-theme="dark"] .bottom-shell::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(111, 231, 255, 0.52), transparent) !important;
  box-shadow: 0 0 16px rgba(111, 231, 255, 0.14) !important;
  pointer-events: none !important;
}

body[data-theme="dark"] .topbar-search {
  position: relative !important;
  display: grid !important;
  gap: 8px !important;
  padding: 0 !important;
}

body[data-theme="dark"] .topbar-search::before {
  content: "" !important;
  position: absolute !important;
  inset: -8px -12px -8px -12px !important;
  border: 1px solid rgba(73, 182, 210, 0.18) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 12% 50%, rgba(78, 214, 240, 0.08), transparent 22%),
    radial-gradient(circle at 88% 50%, rgba(78, 214, 240, 0.08), transparent 22%) !important;
  box-shadow:
    inset 0 0 0 1px rgba(13, 28, 35, 0.76),
    0 0 18px rgba(72, 194, 221, 0.08) !important;
  pointer-events: none !important;
}

body[data-theme="dark"] .topbar-search::after {
  display: none !important;
}

body[data-theme="dark"] .search-dock-head {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 0 4px 0 2px !important;
  min-height: 16px !important;
}

body[data-theme="dark"] .search-dock-label,
body[data-theme="dark"] .search-dock-status {
  font-family: "JetBrains Mono", "SFMono-Regular", monospace !important;
  font-size: 0.64rem !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
}

body[data-theme="dark"] .search-dock-label {
  color: rgba(118, 221, 243, 0.92) !important;
  text-shadow:
    0 0 8px rgba(118, 221, 243, 0.18),
    0 0 20px rgba(118, 221, 243, 0.08) !important;
}

body[data-theme="dark"] .search-dock-status {
  color: rgba(156, 191, 201, 0.68) !important;
}

body[data-theme="dark"] .global-search-form {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 154px !important;
  gap: 12px !important;
  padding: 10px 12px !important;
  background:
    linear-gradient(180deg, rgba(7, 12, 17, 0.96) 0%, rgba(4, 8, 12, 0.98) 100%) !important;
  border: 1px solid rgba(66, 172, 199, 0.24) !important;
  border-radius: 14px !important;
  box-shadow:
    inset 0 0 0 1px rgba(12, 25, 31, 0.9),
    inset 0 1px 0 rgba(111, 231, 255, 0.08),
    0 0 24px rgba(54, 164, 190, 0.08) !important;
}

body[data-theme="dark"] .global-search-form::before,
body[data-theme="dark"] .global-search-form::after,
body[data-theme="dark"] .global-search-shell::after {
  display: none !important;
}

body[data-theme="dark"] .global-search-shell {
  min-height: 42px !important;
  background:
    linear-gradient(180deg, rgba(1, 3, 5, 0.98) 0%, rgba(3, 5, 8, 1) 100%) !important;
  border: 1px solid rgba(72, 182, 209, 0.24) !important;
  border-radius: 10px !important;
  box-shadow:
    inset 0 0 0 1px rgba(8, 17, 22, 0.92),
    inset 0 1px 0 rgba(106, 223, 248, 0.04) !important;
}

body[data-theme="dark"] #thread-search {
  min-height: 42px !important;
  padding: 0 16px !important;
  font-family: "JetBrains Mono", "SFMono-Regular", monospace !important;
  font-size: 0.92rem !important;
  letter-spacing: 0.02em !important;
  color: #d6ecf6 !important;
}

body[data-theme="dark"] #thread-search::placeholder {
  color: rgba(150, 175, 188, 0.66) !important;
}

body[data-theme="dark"] .global-search-submit {
  min-height: 42px !important;
  padding: 0 14px !important;
  background:
    linear-gradient(180deg, rgba(18, 92, 112, 0.98) 0%, rgba(9, 56, 71, 0.99) 100%) !important;
  border: 1px solid rgba(97, 214, 241, 0.36) !important;
  border-radius: 10px !important;
  color: #bff4ff !important;
  font-family: "JetBrains Mono", "SFMono-Regular", monospace !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  box-shadow:
    inset 0 0 0 1px rgba(11, 39, 48, 0.94),
    0 0 14px rgba(88, 213, 241, 0.1) !important;
}

body[data-theme="dark"] .global-search-submit:hover {
  background:
    linear-gradient(180deg, rgba(23, 107, 129, 0.98) 0%, rgba(11, 68, 85, 0.99) 100%) !important;
  border-color: rgba(121, 228, 252, 0.42) !important;
  color: #dcfbff !important;
}

body[data-theme="dark"] .bottom-nav {
  display: none !important;
}

@media (max-width: 760px) {
  body[data-theme="dark"] .topbar-search::before {
    inset: -6px -8px -6px -8px !important;
    border-radius: 14px !important;
  }

  body[data-theme="dark"] .search-dock-head {
    padding: 0 2px !important;
  }

  body[data-theme="dark"] .search-dock-label,
  body[data-theme="dark"] .search-dock-status {
    font-size: 0.58rem !important;
  }

  body[data-theme="dark"] .global-search-form {
    grid-template-columns: minmax(0, 1fr) 122px !important;
    gap: 8px !important;
    padding: 8px 10px !important;
  }
}

/* Feed toolbar and section should read as one connected block */
body[data-theme="dark"][data-active-tab="feed"] .toolbar-card {
  margin-bottom: 0 !important;
  padding-bottom: 10px !important;
}

body[data-theme="dark"][data-active-tab="feed"] .toolbar-card + .thread-section {
  margin-top: -6px !important;
}

body[data-theme="dark"][data-active-tab="feed"] .toolbar-card + .thread-section .section-bar {
  margin-top: 0 !important;
  padding-top: 14px !important;
  border-bottom-color: rgba(73, 171, 92, 0.18) !important;
}

body[data-theme="dark"][data-active-tab="feed"] .toolbar-card + .thread-section .section-bar h2 {
  letter-spacing: 0.02em !important;
}

body[data-theme="dark"][data-active-tab="feed"] .toolbar-card + .thread-section .thread-feed {
  margin-top: 10px !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-main {
  gap: 12px !important;
}

body[data-theme="dark"][data-active-tab="feed"] .leaderboard-card {
  margin-bottom: 0 !important;
  padding: 18px 18px 16px !important;
}

body[data-theme="dark"][data-active-tab="feed"] .leaderboard-list {
  gap: 10px !important;
}

body[data-theme="dark"][data-active-tab="feed"] .leaderboard-row-simple {
  min-height: 0 !important;
  padding: 18px 20px !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell {
  position: relative !important;
  display: grid !important;
  gap: 0 !important;
  padding: 16px 18px 18px !important;
  background: var(--hud-panel) !important;
  border: 1px solid var(--hud-border) !important;
  border-radius: 0 !important;
  clip-path: var(--hud-cut) !important;
  box-shadow: var(--hud-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  overflow: hidden !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell::before {
  content: "" !important;
  position: absolute !important;
  left: 18px !important;
  right: 18px !important;
  top: 0 !important;
  height: 2px !important;
  background: linear-gradient(90deg, var(--hud-green), var(--hud-cyan), transparent 84%) !important;
  opacity: 0.78 !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell .toolbar-card,
body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell .leaderboard-card,
body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell .thread-section-core {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  clip-path: none !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell .leaderboard-card::before,
body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell .leaderboard-card::after,
body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell .toolbar-card::before,
body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell .toolbar-card::after,
body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell .thread-section-core::before,
body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell .thread-section-core::after {
  display: none !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-main {
  gap: 0 !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell {
  padding: 18px 18px 20px !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell .leaderboard-card {
  margin: 0 !important;
  padding: 0 0 14px !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell .leaderboard-card .section-bar {
  margin: 0 0 10px !important;
  padding: 0 0 12px !important;
  border-top: 0 !important;
  border-bottom: 1px solid rgba(73, 171, 92, 0.16) !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell .leaderboard-card .leaderboard-list {
  margin-top: 0 !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell .toolbar-card {
  padding: 14px 0 12px !important;
  border-top: 1px solid rgba(73, 171, 92, 0.12) !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell .thread-section-core {
  margin-top: 0 !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell .section-bar {
  margin: 0 0 10px !important;
  padding: 14px 0 0 !important;
  border-top: 1px solid rgba(73, 171, 92, 0.16) !important;
  border-bottom: 0 !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell .thread-feed {
  margin-top: 0 !important;
}

.research-commerce-grid,
.feed-commerce-grid {
  display: grid;
  gap: 12px;
}

.research-commerce-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0 14px;
}

.feed-commerce-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.commerce-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(86, 249, 158, 0.18);
  background: linear-gradient(180deg, rgba(8, 12, 16, 0.96) 0%, rgba(6, 9, 13, 0.92) 100%);
  box-shadow: inset 0 1px 0 rgba(180, 255, 214, 0.04), 0 0 0 1px rgba(23, 58, 37, 0.24);
}

.commerce-card-feed {
  min-height: 0;
  padding: 14px;
}

.commerce-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.commerce-card-type {
  color: rgba(110, 248, 190, 0.92);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.commerce-card-meta {
  color: rgba(190, 221, 205, 0.72);
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  max-width: 52%;
  line-height: 1.45;
}

.commerce-card-title {
  color: rgba(245, 252, 247, 0.98);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.commerce-card-feed .commerce-card-title {
  font-size: 15px;
}

.commerce-card-copy {
  margin: 0;
  color: rgba(188, 211, 198, 0.82);
  font-size: 14px;
  line-height: 1.55;
}

.commerce-card-feed .commerce-card-copy {
  font-size: 13px;
  line-height: 1.5;
}

.commerce-card-cta {
  min-height: 40px;
  justify-self: start;
  padding: 0 14px;
  border: 1px solid rgba(92, 249, 161, 0.34);
  background: rgba(11, 20, 16, 0.88);
  color: rgba(226, 255, 236, 0.96);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.commerce-card-cta:hover {
  border-color: rgba(116, 255, 177, 0.56);
  background: rgba(16, 28, 22, 0.96);
}

.feed-premium-shell {
  display: grid;
  gap: 14px;
}

.commerce-sponsor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(74, 148, 116, 0.22);
  background: rgba(8, 13, 15, 0.88);
}

.commerce-sponsor-feed {
  margin-top: 2px;
}

.commerce-sponsor-copy {
  display: grid;
  gap: 6px;
}

.commerce-sponsor-tag {
  color: rgba(127, 227, 186, 0.84);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.commerce-sponsor-title {
  color: rgba(242, 250, 245, 0.98);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.commerce-sponsor-body {
  margin: 0;
  color: rgba(180, 202, 188, 0.78);
  font-size: 13px;
  line-height: 1.5;
}

.commerce-sponsor-meta {
  display: grid;
  gap: 2px;
  text-align: right;
}

.commerce-sponsor-meta-label {
  color: rgba(132, 161, 145, 0.74);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.commerce-sponsor-meta-value {
  color: rgba(226, 251, 233, 0.96);
  font-size: 14px;
  font-weight: 700;
}

#thread-feed > .feed-insert-premium {
  margin-top: 16px;
}

@media (max-width: 1080px) {
  .feed-commerce-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .research-commerce-grid,
  .feed-commerce-grid {
    grid-template-columns: 1fr;
  }

  .commerce-sponsor {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .commerce-sponsor-meta {
    text-align: left;
  }

  .commerce-card-cta {
    width: 100%;
    justify-self: stretch;
  }
}

.topbar {
  overflow: visible;
}

.topbar-actions {
  align-items: center;
}

.account-dropdown {
  position: relative;
}

.account-toggle {
  display: grid;
  gap: 2px;
  min-width: 172px;
  padding: 10px 14px;
  border: 1px solid rgba(76, 129, 144, 0.55);
  background: linear-gradient(180deg, rgba(11, 18, 23, 0.92), rgba(6, 12, 16, 0.96));
  color: rgba(223, 245, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(31, 71, 83, 0.45);
  text-align: left;
  cursor: pointer;
}

.account-toggle span {
  color: rgba(125, 176, 194, 0.76);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.account-toggle strong {
  color: rgba(239, 249, 255, 0.96);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.account-toggle:focus-visible,
.language-picker:focus-visible {
  outline: none;
  border-color: rgba(111, 215, 234, 0.72) !important;
  box-shadow:
    inset 0 0 0 1px rgba(69, 168, 190, 0.38),
    0 0 0 3px rgba(65, 163, 183, 0.16);
}

.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 35;
  width: min(420px, calc(100vw - 32px));
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.account-dropdown.is-open .account-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.account-menu-shell {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(76, 129, 144, 0.55);
  background: linear-gradient(180deg, rgba(10, 17, 22, 0.98), rgba(5, 10, 13, 0.98));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(18, 41, 52, 0.58);
}

.account-auth-hero {
  display: grid;
  gap: 12px;
}

.account-mode-row {
  display: flex;
  gap: 8px;
}

.account-mode-chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(74, 119, 132, 0.5);
  background: rgba(10, 18, 23, 0.92);
  color: rgba(184, 208, 219, 0.88);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.account-mode-chip.is-active {
  border-color: rgba(100, 181, 196, 0.82);
  color: rgba(229, 245, 250, 0.98);
  box-shadow: inset 0 0 0 1px rgba(77, 163, 183, 0.28);
}

.account-form,
.account-alerts-form {
  display: grid;
  gap: 12px;
}

.account-social-shell,
.account-agreements-shell {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(68, 110, 123, 0.42);
  background: rgba(6, 12, 16, 0.9);
}

.account-admin-shell {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(68, 110, 123, 0.42);
  background: rgba(6, 12, 16, 0.9);
}

.account-admin-head {
  display: grid;
  gap: 4px;
}

.account-admin-form {
  display: grid;
  gap: 10px;
}

.account-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-social-head,
.account-agreements-head {
  display: grid;
  gap: 4px;
}

.account-social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.account-google-button-shell {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 44px;
  display: block;
}

.account-google-button-shell > div {
  width: 100%;
}

.account-google-identity-host,
.account-google-identity-host > div,
.account-google-identity-host iframe {
  width: 100% !important;
}

.account-social-btn,
.account-social-reset,
.account-agreement-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(74, 119, 132, 0.5);
  background: rgba(10, 18, 23, 0.92);
  color: rgba(223, 245, 255, 0.94);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  gap: 10px;
}

.account-social-btn.is-active,
.account-social-reset:hover,
.account-agreement-link:hover {
  border-color: rgba(100, 181, 196, 0.82);
  box-shadow: inset 0 0 0 1px rgba(77, 163, 183, 0.28);
}

.account-social-btn:focus-visible,
.account-social-reset:focus-visible,
.account-agreement-link:focus-visible {
  outline: none;
  border-color: rgba(100, 181, 196, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(77, 163, 183, 0.28),
    0 0 0 3px rgba(65, 163, 183, 0.14);
}

.account-social-btn.is-disabled,
.account-social-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  border-color: rgba(53, 78, 88, 0.42);
  background: rgba(8, 13, 17, 0.82);
  color: rgba(150, 176, 186, 0.76);
  box-shadow: none;
}

.account-social-btn.is-disabled .account-social-glyph,
.account-social-btn:disabled .account-social-glyph {
  border-color: rgba(61, 87, 97, 0.36);
  color: rgba(150, 176, 186, 0.76);
  background: rgba(11, 17, 21, 0.88);
}

.account-social-reset,
.account-agreement-link {
  justify-content: center;
  gap: 0;
}

.account-social-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(100, 181, 196, 0.42);
  background: rgba(13, 24, 31, 0.96);
  color: rgba(232, 247, 255, 0.96);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 auto;
}

.account-social-copy {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  line-height: 1.3;
}

.account-social-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(79, 125, 139, 0.46);
  background: rgba(8, 14, 18, 0.95);
}

.account-social-selected strong {
  color: rgba(241, 249, 254, 0.99);
  font-size: 13px;
  line-height: 1.45;
}

.account-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 14px;
}

.account-divider::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  border-top: 1px solid rgba(62, 102, 115, 0.42);
}

.account-divider span {
  position: relative;
  padding: 0 10px;
  background: linear-gradient(180deg, rgba(10, 17, 22, 0.98), rgba(5, 10, 13, 0.98));
  color: rgba(125, 176, 194, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.account-agreement-list {
  display: grid;
  gap: 8px;
}

.account-agreement-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.field-compact {
  gap: 6px;
}

.field-compact span,
.account-section-label {
  color: rgba(125, 176, 194, 0.76);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field-compact input {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(69, 110, 123, 0.48);
  background: rgba(5, 9, 12, 0.9);
  color: rgba(236, 247, 252, 0.98);
}

.cta-compact {
  min-height: 40px;
  padding: 0 16px;
}

.account-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.account-summary-name {
  margin: 0;
  color: rgba(242, 249, 253, 0.98);
  font-size: 16px;
  font-weight: 700;
}

.account-summary-email {
  margin: 4px 0 0;
  color: rgba(158, 187, 199, 0.76);
  font-size: 13px;
}

.account-identity-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(68, 110, 123, 0.42);
  background: rgba(6, 12, 16, 0.9);
}

.account-identity-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.account-identity-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(131, 108, 61, 0.5);
  background: rgba(26, 20, 10, 0.88);
  color: rgba(244, 211, 139, 0.92);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.account-identity-status.is-complete {
  border-color: rgba(77, 140, 114, 0.5);
  background: rgba(10, 24, 17, 0.9);
  color: rgba(154, 230, 188, 0.92);
}

.account-identity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.account-identity-item {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(63, 104, 117, 0.42);
  background: rgba(7, 12, 16, 0.88);
}

.account-identity-item strong {
  color: rgba(238, 247, 252, 0.98);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.account-provider-chip-row,
.account-legal-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-provider-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(66, 108, 120, 0.42);
  background: rgba(8, 14, 18, 0.92);
  color: rgba(220, 239, 248, 0.94);
  font-size: 12px;
  font-weight: 700;
}

.account-logout-btn {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(74, 119, 132, 0.5);
  background: rgba(10, 18, 23, 0.92);
  color: rgba(223, 245, 255, 0.94);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.account-balance-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(79, 125, 139, 0.46);
  background: rgba(8, 14, 18, 0.95);
}

.account-balance-copy {
  display: grid;
  gap: 4px;
}

.account-balance-label {
  color: rgba(125, 176, 194, 0.76);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.account-balance-value {
  color: rgba(241, 249, 254, 0.99);
  font-size: 24px;
  font-weight: 800;
}

.account-balance-cta {
  min-width: 122px;
}

.account-inline-note {
  color: rgba(156, 191, 201, 0.76);
  font-size: 12px;
  line-height: 1.4;
}

.account-topup-form,
.account-payments {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(68, 110, 123, 0.42);
  background: rgba(6, 12, 16, 0.9);
}

.account-topup-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.account-pack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.account-pack-option,
.account-method-option {
  display: block;
  cursor: pointer;
}

.account-pack-option input,
.account-method-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.account-pack-card {
  display: grid;
  gap: 4px;
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(60, 101, 114, 0.4);
  background: rgba(8, 14, 18, 0.92);
  color: rgba(175, 201, 211, 0.84);
}

.account-pack-card strong {
  color: rgba(237, 247, 252, 0.98);
  font-size: 13px;
  font-weight: 700;
}

.account-pack-card span {
  font-size: 12px;
  line-height: 1.4;
}

.account-pack-card span:first-of-type {
  color: rgba(228, 242, 248, 0.96);
  font-size: 15px;
  font-weight: 800;
}

.account-pack-card span:last-of-type {
  color: rgba(147, 181, 194, 0.78);
}

.account-pack-option input:checked + .account-pack-card {
  border-color: rgba(105, 184, 200, 0.84);
  box-shadow: inset 0 0 0 1px rgba(74, 166, 185, 0.32);
  color: rgba(220, 240, 248, 0.96);
}

.account-method-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-method-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(63, 104, 117, 0.42);
  background: rgba(8, 13, 17, 0.86);
  color: rgba(169, 198, 208, 0.84);
  font-size: 12px;
  font-weight: 700;
}

.account-method-option input:checked + .account-method-chip {
  border-color: rgba(100, 181, 196, 0.82);
  color: rgba(234, 245, 250, 0.98);
  box-shadow: inset 0 0 0 1px rgba(77, 163, 183, 0.28);
}

.account-payment-guide {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(63, 104, 117, 0.42);
  background: rgba(7, 12, 16, 0.88);
}

.account-payment-guide strong {
  color: rgba(238, 247, 251, 0.98);
  font-size: 13px;
  font-weight: 700;
}

.account-payment-guide-lines {
  display: grid;
  gap: 4px;
}

.account-payment-guide-lines span {
  color: rgba(173, 202, 214, 0.84);
  font-size: 12px;
  line-height: 1.45;
}

.account-topup-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.account-entitlement-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-entitlement-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(70, 113, 126, 0.42);
  background: rgba(8, 14, 18, 0.82);
  color: rgba(166, 188, 198, 0.78);
  font-size: 12px;
  font-weight: 700;
}

body[data-theme="dark"] .premium-map-shell {
  display: grid;
  gap: 16px;
}

body[data-theme="dark"] .research-next-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 18px 20px;
  border: 1px solid rgba(69, 160, 128, 0.28);
  background: linear-gradient(180deg, rgba(9, 14, 18, 0.96) 0%, rgba(7, 11, 15, 0.94) 100%);
  box-shadow: inset 0 0 0 1px rgba(15, 38, 33, 0.52);
}

body[data-theme="dark"] .research-next-copy {
  display: grid;
  gap: 8px;
}

body[data-theme="dark"] .research-next-copy h4 {
  margin: 0;
  color: rgba(242, 250, 245, 0.98);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
}

body[data-theme="dark"] .research-next-body {
  margin: 0;
  color: rgba(186, 208, 196, 0.84);
  font-size: 14px;
  line-height: 1.6;
}

body[data-theme="dark"] .research-next-points {
  display: grid;
  gap: 6px;
  margin-top: 2px;
}

body[data-theme="dark"] .research-next-points p {
  margin: 0;
  color: rgba(153, 190, 172, 0.78);
  font-size: 13px;
  line-height: 1.5;
}

body[data-theme="dark"] .research-next-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
  min-width: 180px;
}

body[data-theme="dark"] .research-next-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(75, 131, 112, 0.34);
  background: rgba(8, 14, 17, 0.76);
  color: rgba(177, 220, 198, 0.88);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

body[data-theme="dark"] .research-next-cta {
  min-height: 42px;
  padding: 0 16px;
}

body[data-theme="dark"] .research-secondary-shell {
  display: grid;
  gap: 12px;
}

body[data-theme="dark"] .research-secondary-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

body[data-theme="dark"] .research-secondary-copy {
  margin: 0;
  color: rgba(132, 167, 151, 0.72);
  font-size: 13px;
  line-height: 1.5;
}

body[data-theme="dark"] .research-secondary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body[data-theme="dark"] .research-secondary-card {
  display: grid;
  gap: 8px;
  padding: 14px 15px;
  border: 1px solid rgba(63, 114, 96, 0.22);
  background: rgba(7, 11, 15, 0.78);
}

body[data-theme="dark"] .research-secondary-titleline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

body[data-theme="dark"] .research-secondary-titleline strong {
  color: rgba(236, 246, 240, 0.96);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

body[data-theme="dark"] .research-secondary-titleline span {
  color: rgba(136, 176, 156, 0.74);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

body[data-theme="dark"] .research-secondary-card p {
  margin: 0;
  color: rgba(169, 196, 182, 0.78);
  font-size: 13px;
  line-height: 1.5;
}

body[data-theme="dark"] .research-secondary-cta {
  min-height: 34px;
  justify-self: start;
  padding: 0 12px;
  border: 1px solid rgba(72, 127, 109, 0.32);
  background: rgba(10, 16, 20, 0.88);
  color: rgba(231, 244, 236, 0.94);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

body[data-theme="dark"] .feed-upgrade-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(67, 148, 119, 0.24);
  background: linear-gradient(180deg, rgba(10, 15, 20, 0.96) 0%, rgba(8, 12, 17, 0.94) 100%);
  box-shadow: inset 0 0 0 1px rgba(17, 44, 37, 0.46);
}

body[data-theme="dark"] .feed-upgrade-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

body[data-theme="dark"] .feed-upgrade-title {
  color: rgba(241, 250, 245, 0.98);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

body[data-theme="dark"] .feed-upgrade-body {
  margin: 0;
  color: rgba(180, 204, 191, 0.8);
  font-size: 14px;
  line-height: 1.55;
}

body[data-theme="dark"] .feed-upgrade-cta {
  min-width: 168px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(88, 181, 146, 0.38);
  background: rgba(11, 20, 17, 0.92);
  color: rgba(236, 248, 240, 0.96);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

body[data-theme="dark"] .feed-upgrade-cta:hover,
body[data-theme="dark"] .research-secondary-cta:hover {
  border-color: rgba(109, 210, 171, 0.48);
  background: rgba(14, 24, 20, 0.96);
}

body[data-theme="dark"] .feed-insert-premium .feed-insert-bar {
  display: none;
}

@media (max-width: 920px) {
  body[data-theme="dark"] .research-next-card,
  body[data-theme="dark"] .feed-upgrade-inline,
  body[data-theme="dark"] .research-secondary-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  body[data-theme="dark"] .research-next-actions {
    justify-items: start;
    min-width: 0;
  }

  body[data-theme="dark"] .research-secondary-grid {
    grid-template-columns: 1fr;
  }

  body[data-theme="dark"] .feed-upgrade-cta {
    width: 100%;
    min-width: 0;
  }

  .account-pack-grid,
  .account-topup-fields,
  .account-social-grid,
  .account-identity-grid,
  .account-agreement-row {
    grid-template-columns: 1fr;
  }
}

.account-entitlement-chip.is-active {
  border-color: rgba(102, 174, 191, 0.74);
  color: rgba(233, 246, 252, 0.98);
}

.account-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(222, 239, 246, 0.9);
  font-size: 13px;
}

.account-check input {
  accent-color: #66b7ca;
}

.account-transactions {
  display: grid;
  gap: 10px;
}

.account-request-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(63, 99, 110, 0.38);
  background: rgba(7, 12, 15, 0.82);
}

.account-request-row strong {
  display: block;
  color: rgba(241, 249, 253, 0.96);
  font-size: 13px;
}

.account-request-row span {
  color: rgba(155, 185, 198, 0.74);
  font-size: 12px;
}

.account-request-ref {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(63, 99, 110, 0.38);
  background: rgba(8, 13, 17, 0.86);
  color: rgba(214, 235, 243, 0.92);
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.account-transaction-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(63, 99, 110, 0.38);
  background: rgba(7, 12, 15, 0.82);
}

.account-transaction-row strong {
  display: block;
  color: rgba(241, 249, 253, 0.96);
  font-size: 13px;
}

.account-transaction-row span {
  color: rgba(155, 185, 198, 0.74);
  font-size: 12px;
}

.account-transaction-delta {
  color: rgba(120, 235, 178, 0.9) !important;
  font-weight: 800;
  white-space: nowrap;
}

.account-menu-message,
.account-empty {
  margin: 0;
  color: rgba(159, 188, 200, 0.76);
  font-size: 12px;
  line-height: 1.5;
}

.account-menu-message[data-tone="success"] {
  color: rgba(124, 231, 176, 0.92);
}

.account-menu-message[data-tone="error"] {
  color: rgba(248, 133, 133, 0.92);
}

.feed-insert-news {
  display: grid;
  gap: 18px;
}

.macro-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.macro-news-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 144px;
  padding: 16px;
  border: 1px solid rgba(92, 164, 181, 0.18);
  background: rgba(8, 14, 16, 0.72);
  color: rgba(224, 241, 245, 0.94);
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.macro-news-card:hover,
.macro-news-card:focus-visible {
  border-color: rgba(92, 164, 181, 0.42);
  background: rgba(10, 18, 20, 0.84);
  box-shadow: 0 0 0 3px rgba(92, 164, 181, 0.08);
  transform: translateY(-1px);
}

.macro-news-card.is-active {
  border-color: rgba(92, 164, 181, 0.55);
  background: rgba(12, 21, 24, 0.92);
  box-shadow: inset 0 0 0 1px rgba(92, 164, 181, 0.18);
}

.macro-news-meta,
.macro-news-open,
.macro-news-focus-meta,
.macro-news-comments-lead {
  color: rgba(143, 176, 184, 0.78);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.macro-news-headline,
.macro-news-focus-title {
  margin: 0;
  color: rgba(241, 249, 252, 0.98);
  font-size: 20px;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.macro-news-open {
  color: rgba(114, 215, 232, 0.92);
  font-weight: 700;
}

.macro-news-focus {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(92, 164, 181, 0.14);
  background: rgba(7, 12, 14, 0.88);
}

.macro-news-focus-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.macro-news-focus-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
}

.macro-news-source-link {
  color: var(--accent-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(68, 221, 255, 0.35);
}

.macro-news-source-link:hover,
.macro-news-source-link:focus-visible {
  color: var(--text-primary);
  border-bottom-color: rgba(68, 221, 255, 0.7);
}

.macro-news-focus-summary {
  margin: 0;
  color: rgba(204, 224, 229, 0.9);
  font-size: 15px;
  line-height: 1.7;
}

.macro-news-impact-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(92, 164, 181, 0.12);
  background: rgba(10, 16, 18, 0.74);
}

.macro-news-impact-card strong {
  color: rgba(238, 247, 250, 0.98);
  font-size: 15px;
  line-height: 1.6;
}

.macro-news-comments {
  display: grid;
  gap: 14px;
}

.macro-news-comments-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.macro-news-comment-list {
  display: grid;
  gap: 10px;
}

.macro-news-comment {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid rgba(92, 164, 181, 0.12);
  background: rgba(9, 14, 16, 0.72);
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease;
}

.macro-news-comment:hover,
.macro-news-comment:focus-visible {
  border-color: rgba(92, 164, 181, 0.34);
  box-shadow: 0 0 0 3px rgba(92, 164, 181, 0.08);
  transform: translateY(-1px);
}

.macro-news-comment-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(92, 164, 181, 0.18);
  background: rgba(18, 33, 38, 0.86);
  color: rgba(92, 220, 244, 0.98);
  font-size: 18px;
  font-weight: 800;
}

.macro-news-comment-body {
  display: grid;
  gap: 8px;
}

.macro-news-comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.macro-news-comment-meta strong {
  color: rgba(241, 249, 252, 0.98);
  font-size: 15px;
}

.macro-news-comment-meta > span:not(.status-chip) {
  color: rgba(152, 182, 189, 0.8);
  font-size: 13px;
}

.macro-news-comment-headline,
.macro-news-comment-copy {
  margin: 0;
}

.macro-news-comment-headline {
  color: rgba(228, 240, 244, 0.96);
  font-size: 14px;
  font-weight: 700;
}

.macro-news-comment-copy {
  color: rgba(193, 215, 221, 0.88);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .macro-news-grid {
    grid-template-columns: 1fr;
  }

  .macro-news-focus-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .macro-news-focus-meta {
    justify-items: start;
    text-align: left;
  }
}

/* Final cohesion pass: header visibility, feed shell rhythm, news trust cues */
body[data-theme="dark"] .topbar {
  overflow: visible !important;
}

body[data-theme="dark"] .topbar-main {
  align-items: stretch !important;
}

body[data-theme="dark"] .topbar-actions {
  position: relative !important;
  z-index: 60 !important;
  display: flex !important;
  align-items: stretch !important;
  gap: 14px !important;
  overflow: visible !important;
}

body[data-theme="dark"] .language-dropdown,
body[data-theme="dark"] .account-dropdown {
  position: relative !important;
  z-index: 70 !important;
  min-width: 232px !important;
  overflow: visible !important;
}

body[data-theme="dark"] .language-picker,
body[data-theme="dark"] .account-toggle {
  min-height: 100% !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
}

body[data-theme="dark"] .language-menu,
body[data-theme="dark"] .account-menu {
  right: 0 !important;
  top: calc(100% + 10px) !important;
  z-index: 90 !important;
}

body[data-theme="dark"] .language-dropdown.is-open .language-menu {
  display: grid !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-layout,
body[data-theme="dark"][data-active-tab="feed"] .feed-main {
  gap: 0 !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell {
  padding: 0 !important;
  overflow: hidden !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell::before {
  left: 0 !important;
  right: 0 !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell .leaderboard-card {
  margin: 0 !important;
  padding: 18px 18px 14px !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell .leaderboard-card .section-bar {
  margin: 0 0 12px !important;
  padding: 0 0 12px !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell .toolbar-card {
  margin: 0 !important;
  padding: 14px 18px 12px !important;
  border-top: 1px solid rgba(74, 233, 152, 0.12) !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell .toolbar-card .filter-row,
body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell .toolbar-card .scope-row {
  margin: 0 !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell .toolbar-card .scope-row {
  margin-top: 10px !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell .thread-section-core {
  margin: 0 !important;
  padding: 12px 18px 18px !important;
  border-top: 1px solid rgba(74, 233, 152, 0.12) !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell .thread-section-core .section-bar {
  margin: 0 0 12px !important;
  padding: 0 0 10px !important;
  border-top: 0 !important;
  border-bottom: 1px solid rgba(74, 233, 152, 0.12) !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell .thread-feed {
  margin-top: 0 !important;
}

body[data-theme="dark"] .macro-news-comments-head {
  align-items: end !important;
}

body[data-theme="dark"] .macro-news-comment-meta {
  gap: 8px !important;
}

body[data-theme="dark"] .macro-news-comment-performance {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 6px !important;
  padding: 4px 8px !important;
  border: 1px solid rgba(74, 233, 152, 0.14) !important;
  background: rgba(12, 26, 22, 0.68) !important;
  color: rgba(182, 246, 212, 0.92) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0.01em !important;
  white-space: nowrap !important;
}

body[data-theme="dark"] .macro-news-comment-performance strong {
  color: rgba(213, 255, 231, 0.98) !important;
  font-size: 12px !important;
  line-height: 1 !important;
}

body[data-theme="dark"] .macro-news-comment-performance span {
  color: rgba(130, 195, 164, 0.8) !important;
  font-size: 11px !important;
  line-height: 1 !important;
}

/* Final polish pass: quieter commerce, denser feed, flatter shell */
body[data-theme="dark"] .premium-map-shell {
  gap: 12px !important;
}

body[data-theme="dark"] .research-next-card {
  gap: 14px !important;
  padding: 14px 16px !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
}

body[data-theme="dark"] .research-next-copy {
  gap: 6px !important;
}

body[data-theme="dark"] .research-next-copy h4 {
  font-size: 17px !important;
  line-height: 1.24 !important;
}

body[data-theme="dark"] .research-next-body {
  max-width: 58ch !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

body[data-theme="dark"] .research-next-actions {
  min-width: 156px !important;
  gap: 8px !important;
}

body[data-theme="dark"] .research-next-meta {
  min-height: 28px !important;
  padding: 0 10px !important;
  font-size: 11px !important;
}

body[data-theme="dark"] .research-next-cta {
  min-height: 36px !important;
  padding: 0 14px !important;
  font-size: 12px !important;
}

body[data-theme="dark"] .research-secondary-shell {
  gap: 8px !important;
}

body[data-theme="dark"] .research-secondary-head {
  justify-content: flex-start !important;
}

body[data-theme="dark"] .research-secondary-list {
  display: grid !important;
  gap: 8px !important;
}

body[data-theme="dark"] .research-secondary-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(64, 118, 100, 0.18) !important;
  background: rgba(8, 12, 16, 0.74) !important;
}

body[data-theme="dark"] .research-secondary-copyline {
  display: grid !important;
  gap: 3px !important;
  min-width: 0 !important;
}

body[data-theme="dark"] .research-secondary-copyline strong {
  color: rgba(237, 246, 240, 0.96) !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

body[data-theme="dark"] .research-secondary-copyline p {
  margin: 0 !important;
  color: rgba(147, 176, 163, 0.74) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
}

body[data-theme="dark"] .research-secondary-cta {
  min-height: 32px !important;
  padding: 0 10px !important;
  font-size: 11px !important;
  white-space: nowrap !important;
}

body[data-theme="dark"] .feed-upgrade-inline {
  gap: 12px !important;
  padding: 12px 14px !important;
}

body[data-theme="dark"] .feed-upgrade-copy {
  gap: 4px !important;
}

body[data-theme="dark"] .feed-upgrade-title {
  font-size: 15px !important;
  line-height: 1.32 !important;
}

body[data-theme="dark"] .feed-upgrade-body {
  font-size: 12px !important;
  line-height: 1.45 !important;
}

body[data-theme="dark"] .feed-upgrade-cta {
  min-width: 136px !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  font-size: 12px !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell {
  padding: 0 !important;
}

body[data-theme="dark"][data-active-tab="feed"] .leaderboard-card,
body[data-theme="dark"][data-active-tab="feed"] .toolbar-card,
body[data-theme="dark"][data-active-tab="feed"] .thread-section-core,
body[data-theme="dark"] .composer-shell {
  box-shadow: none !important;
}

body[data-theme="dark"][data-active-tab="feed"] .leaderboard-card {
  padding: 16px 18px 12px !important;
}

body[data-theme="dark"][data-active-tab="feed"] .leaderboard-list {
  gap: 10px !important;
}

body[data-theme="dark"][data-active-tab="feed"] .toolbar-card {
  padding: 12px 18px 10px !important;
}

body[data-theme="dark"][data-active-tab="feed"] .thread-section-core {
  padding: 10px 18px 18px !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-side {
  margin-top: 12px !important;
}

body[data-theme="dark"] .composer-shell {
  padding: 14px 16px !important;
  border-color: rgba(79, 157, 133, 0.16) !important;
  background: rgba(7, 10, 14, 0.74) !important;
}

body[data-theme="dark"] .composer-shell::before {
  opacity: 0.42 !important;
}

body[data-theme="dark"][data-active-tab="feed"] .thread-card {
  gap: 14px !important;
  padding: 16px 16px 14px !important;
  grid-template-columns: 56px minmax(0, 1fr) !important;
}

body[data-theme="dark"][data-active-tab="feed"] .thread-avatar {
  width: 44px !important;
  height: 44px !important;
  font-size: 18px !important;
}

body[data-theme="dark"][data-active-tab="feed"] .thread-title {
  margin: 6px 0 8px !important;
  font-size: 1.42rem !important;
  line-height: 1.18 !important;
}

body[data-theme="dark"][data-active-tab="feed"] .thread-summary {
  margin-bottom: 10px !important;
  max-width: 68ch !important;
  font-size: 0.96rem !important;
  line-height: 1.55 !important;
}

body[data-theme="dark"][data-active-tab="feed"] .thread-card.is-collapsed .thread-summary {
  -webkit-line-clamp: 2 !important;
}

body[data-theme="dark"][data-active-tab="feed"] .thread-brief-row {
  gap: 8px !important;
}

body[data-theme="dark"][data-active-tab="feed"] .thread-brief-pill {
  min-height: 0 !important;
  padding: 11px 12px !important;
  gap: 6px !important;
}

body[data-theme="dark"][data-active-tab="feed"] .thread-brief-pill strong {
  font-size: 0.98rem !important;
  line-height: 1.35 !important;
}

body[data-theme="dark"][data-active-tab="feed"] .thread-brief-note {
  font-size: 0.84rem !important;
}

body[data-theme="dark"][data-active-tab="feed"] .thread-details {
  margin-top: 6px !important;
  gap: 10px !important;
}

body[data-theme="dark"][data-active-tab="feed"] .thread-list {
  margin: 0 !important;
}

body[data-theme="dark"][data-active-tab="feed"] .thread-list li {
  font-size: 0.92rem !important;
  line-height: 1.52 !important;
}

body[data-theme="dark"][data-active-tab="feed"] .thread-levels,
body[data-theme="dark"][data-active-tab="feed"] .reaction-row {
  gap: 8px !important;
}

body[data-theme="dark"][data-active-tab="feed"] .reaction-pill {
  min-height: 28px !important;
  padding: 0 10px !important;
  font-size: 11px !important;
}

body[data-theme="dark"][data-active-tab="feed"] .thread-toggle {
  min-height: 30px !important;
  padding: 0 !important;
  font-size: 11px !important;
}

body[data-theme="dark"][data-active-tab="feed"] .thread-card.is-collapsed .thread-details {
  display: none !important;
}

@media (max-width: 920px) {
  body[data-theme="dark"] .research-next-card,
  body[data-theme="dark"] .research-secondary-row,
  body[data-theme="dark"] .feed-upgrade-inline {
    grid-template-columns: 1fr !important;
  }

  body[data-theme="dark"] .research-next-actions {
    min-width: 0 !important;
    justify-items: start !important;
  }

  body[data-theme="dark"][data-active-tab="feed"] .thread-brief-row {
    grid-template-columns: 1fr !important;
  }
}

.feed-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  border: 1px solid rgba(52, 211, 153, 0.22);
  background: rgba(7, 12, 13, 0.78);
  color: rgba(226, 255, 237, 0.92);
  font-family: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.feed-load-more:hover,
.feed-load-more:focus-visible {
  outline: none;
  border-color: rgba(110, 255, 193, 0.42);
  background: rgba(10, 18, 18, 0.94);
  box-shadow: 0 0 0 3px rgba(110, 255, 193, 0.08);
  transform: translateY(-1px);
}

body[data-theme="dark"] .feed-load-more {
  border-color: rgba(95, 255, 189, 0.26);
  background:
    linear-gradient(180deg, rgba(9, 16, 15, 0.96), rgba(5, 10, 10, 0.98));
  box-shadow:
    0 0 0 1px rgba(43, 131, 92, 0.12) inset,
    0 12px 24px rgba(0, 0, 0, 0.22);
}

body[data-theme="dark"] .feed-load-more:hover,
body[data-theme="dark"] .feed-load-more:focus-visible {
  border-color: rgba(115, 255, 196, 0.46);
  background:
    linear-gradient(180deg, rgba(12, 21, 20, 0.98), rgba(7, 12, 12, 1));
}

/* Leaderboard metric controls */
body[data-theme="dark"][data-active-tab="feed"] .leaderboard-metric-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 0 14px !important;
}

body[data-theme="dark"][data-active-tab="feed"] .leaderboard-metric-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 38px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(71, 138, 142, 0.38) !important;
  background: rgba(7, 14, 18, 0.78) !important;
  color: rgba(208, 229, 233, 0.88) !important;
  font-family: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", monospace !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  cursor: pointer !important;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease !important;
}

body[data-theme="dark"][data-active-tab="feed"] .leaderboard-metric-btn:hover,
body[data-theme="dark"][data-active-tab="feed"] .leaderboard-metric-btn:focus-visible {
  outline: none !important;
  border-color: rgba(110, 231, 255, 0.62) !important;
  color: rgba(239, 252, 255, 0.96) !important;
  background: rgba(9, 20, 25, 0.92) !important;
  box-shadow: 0 0 0 3px rgba(110, 231, 255, 0.08) !important;
  transform: translateY(-1px) !important;
}

body[data-theme="dark"][data-active-tab="feed"] .leaderboard-metric-btn.is-active {
  border-color: rgba(120, 241, 255, 0.72) !important;
  background:
    linear-gradient(180deg, rgba(15, 51, 63, 0.92), rgba(6, 22, 28, 0.96)) !important;
  color: #effcff !important;
  box-shadow:
    0 0 0 1px rgba(64, 171, 196, 0.18) inset,
    0 0 22px rgba(61, 185, 210, 0.12) !important;
}

body[data-theme="dark"][data-active-tab="feed"] .leaderboard-metric-btn.is-locked {
  border-style: dashed !important;
}

body[data-theme="dark"][data-active-tab="feed"] .leaderboard-metric-btn-label {
  white-space: nowrap !important;
}

body[data-theme="dark"][data-active-tab="feed"] .leaderboard-metric-btn-badge {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 22px !important;
  padding: 0 8px !important;
  border: 1px solid rgba(94, 163, 171, 0.28) !important;
  background: rgba(17, 31, 36, 0.92) !important;
  color: rgba(150, 186, 192, 0.92) !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  white-space: nowrap !important;
}

body[data-theme="dark"][data-active-tab="feed"] .leaderboard-row-simple .leaderboard-row-value span {
  text-transform: none !important;
}

/* Follow pass commerce / scope lock */
body[data-theme="dark"] .scope-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

body[data-theme="dark"] .scope-chip.is-locked {
  border-style: dashed;
  opacity: 0.94;
}

body[data-theme="dark"] .scope-chip-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border: 1px solid rgba(76, 156, 164, 0.28);
  background: rgba(6, 15, 18, 0.88);
  color: rgba(143, 213, 223, 0.92);
  font-family: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

body[data-theme="dark"] .following-card.is-locked {
  border-color: rgba(84, 152, 161, 0.28);
  box-shadow: inset 0 0 0 1px rgba(56, 119, 126, 0.12);
}

body[data-theme="dark"] .following-card-cta {
  justify-self: start;
}

body[data-theme="dark"] .leaderboard-row-access,
body[data-theme="dark"] .feed-rank-access {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body[data-theme="dark"] .leaderboard-row-access.is-locked,
body[data-theme="dark"] .feed-rank-access.is-locked {
  color: rgba(129, 216, 255, 0.82);
}

body[data-theme="dark"] .leaderboard-row-access.is-open,
body[data-theme="dark"] .feed-rank-access.is-open {
  color: rgba(164, 255, 194, 0.78);
}

/* Performance polish */
body[data-theme="dark"] .topbar.shell,
body[data-theme="dark"] .bottom-shell {
  backdrop-filter: none !important;
}

body[data-theme="dark"] .thread-card,
body[data-theme="dark"] .feed-insert,
body[data-theme="dark"] .story-card,
body[data-theme="dark"] .leaderboard-card,
body[data-theme="dark"] .return-radar-card,
body[data-theme="dark"] .leaderboard-row-simple {
  content-visibility: auto;
}

body[data-theme="dark"] .thread-card,
body[data-theme="dark"] .feed-insert {
  contain-intrinsic-size: 460px;
}

body[data-theme="dark"] .story-card,
body[data-theme="dark"] .leaderboard-card,
body[data-theme="dark"] .return-radar-card {
  contain-intrinsic-size: 260px;
}

body[data-theme="dark"] .leaderboard-row-simple {
  contain-intrinsic-size: 112px;
}

@media (prefers-reduced-motion: reduce) {
  .code-wall {
    opacity: 0.24;
  }

  .code-wall-stream {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Conversion-first feed pass */
body[data-theme="dark"] .brand-lockup,
body[data-theme="dark"] .brand-lockup > div {
  min-width: 0;
}

body[data-theme="dark"] .brand-title {
  white-space: normal;
  overflow-wrap: anywhere;
}

body[data-theme="dark"][data-active-tab="feed"] .app-tab-panel-feed {
  display: grid;
  gap: 20px;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-intro,
body[data-theme="dark"][data-active-tab="feed"] .feed-layout {
  width: min(1120px, calc(100% - 32px)) !important;
  margin: 0 auto !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-intro {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 20px;
  padding: 26px;
  border-radius: 30px;
  border: 1px solid rgba(74, 233, 152, 0.16);
  background:
    radial-gradient(circle at top left, rgba(74, 233, 152, 0.1), transparent 34%),
    radial-gradient(circle at bottom right, rgba(84, 152, 161, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(5, 9, 13, 0.96), rgba(7, 11, 16, 0.98));
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(17, 33, 41, 0.9);
  overflow: hidden;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(74, 233, 152, 0.06), transparent 28%),
    linear-gradient(180deg, transparent 0%, rgba(84, 152, 161, 0.05) 100%);
  pointer-events: none;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-intro-copy,
body[data-theme="dark"][data-active-tab="feed"] .feed-intro-visual {
  position: relative;
  z-index: 1;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-intro-copy {
  display: grid;
  gap: 16px;
  align-content: start;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-intro-headline {
  display: grid;
  gap: 12px;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-intro-title {
  margin: 0;
  max-width: 10ch;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  color: #f8fff8;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-intro-body,
body[data-theme="dark"][data-active-tab="feed"] .feed-intro-disclaimer {
  margin: 0;
  max-width: 34rem;
  color: rgba(214, 227, 233, 0.8);
  line-height: 1.6;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-intro-primary,
body[data-theme="dark"][data-active-tab="feed"] .feed-intro-secondary {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-intro-primary {
  background: linear-gradient(135deg, #7cf2b9, #43c4e4);
  color: #041014;
  box-shadow: 0 12px 26px rgba(67, 196, 228, 0.18);
}

body[data-theme="dark"][data-active-tab="feed"] .feed-intro-secondary {
  border: 1px solid rgba(124, 242, 185, 0.24);
  background: rgba(8, 16, 22, 0.88);
  color: #d9f8ea;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-intro-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-intro-fact {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(84, 152, 161, 0.16);
  background: rgba(7, 14, 20, 0.82);
}

body[data-theme="dark"][data-active-tab="feed"] .feed-intro-fact span {
  color: rgba(156, 191, 201, 0.72);
  font-size: 0.7rem;
  line-height: 1.45;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-intro-fact strong {
  font-size: 1.6rem;
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: #f5fff8;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-intro-foot {
  display: grid;
  gap: 10px;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-intro-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(124, 242, 185, 0.18);
  background: rgba(8, 16, 22, 0.88);
  color: rgba(201, 255, 223, 0.82);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-intro-visual {
  display: grid;
  align-content: start;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body[data-theme="dark"][data-active-tab="feed"] #hero-feature,
body[data-theme="dark"][data-active-tab="feed"] #signal-board,
body[data-theme="dark"][data-active-tab="feed"] #brand-proof-card,
body[data-theme="dark"][data-active-tab="feed"] #following-card,
body[data-theme="dark"][data-active-tab="feed"] #proof-strip {
  display: block !important;
}

body[data-theme="dark"][data-active-tab="feed"] #hero-feature,
body[data-theme="dark"][data-active-tab="feed"] #signal-board {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(84, 152, 161, 0.16);
  background:
    linear-gradient(180deg, rgba(9, 16, 22, 0.92), rgba(6, 11, 16, 0.98));
  box-shadow: inset 0 0 0 1px rgba(12, 23, 30, 0.82);
}

body[data-theme="dark"][data-active-tab="feed"] #hero-feature .active-signal-card,
body[data-theme="dark"][data-active-tab="feed"] #signal-board .active-signal-card {
  min-height: 0;
}

body[data-theme="dark"][data-active-tab="feed"] #hero-feature .active-signal-title,
body[data-theme="dark"][data-active-tab="feed"] #signal-board .active-signal-title {
  color: #f5fff8;
}

body[data-theme="dark"][data-active-tab="feed"] #hero-feature .active-signal-note,
body[data-theme="dark"][data-active-tab="feed"] #signal-board .active-signal-note {
  color: rgba(183, 201, 209, 0.74);
}

body[data-theme="dark"][data-active-tab="feed"] .feed-intro-proof {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  overflow: visible !important;
  padding-bottom: 0;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-intro-proof .proof-card {
  min-width: 0;
  height: 100%;
  border: 1px solid rgba(84, 152, 161, 0.16);
  background: rgba(7, 14, 20, 0.82);
  color: #e7f8ee;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-intro-proof .proof-kicker,
body[data-theme="dark"][data-active-tab="feed"] .feed-intro-proof .proof-meta {
  color: rgba(183, 201, 209, 0.72);
}

body[data-theme="dark"][data-active-tab="feed"] .feed-layout {
  grid-template-columns: minmax(0, 1fr) 320px !important;
  gap: 18px !important;
  align-items: start;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-main {
  gap: 18px !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell {
  padding: 20px 22px 24px !important;
  border-radius: 28px !important;
  border: 1px solid rgba(74, 233, 152, 0.14) !important;
  background:
    linear-gradient(180deg, rgba(6, 11, 16, 0.98), rgba(7, 13, 18, 0.98)) !important;
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(12, 23, 30, 0.84) !important;
  overflow: hidden !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell .toolbar-card,
body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell .thread-section-core {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell .toolbar-card {
  margin-bottom: 16px !important;
  padding-bottom: 16px !important;
  border-bottom: 1px solid rgba(74, 233, 152, 0.14) !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell .thread-section-core .section-bar {
  margin: 0 0 14px !important;
  padding: 0 0 12px !important;
  border-top: 0 !important;
  border-bottom: 1px solid rgba(74, 233, 152, 0.14) !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

body[data-theme="dark"][data-active-tab="feed"] #brand-proof-card,
body[data-theme="dark"][data-active-tab="feed"] #following-card {
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(84, 152, 161, 0.16);
  background:
    linear-gradient(180deg, rgba(8, 14, 20, 0.92), rgba(6, 10, 15, 0.98));
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px rgba(12, 23, 30, 0.82);
}

body[data-theme="dark"][data-active-tab="feed"] #brand-proof-card .brand-proof-copy,
body[data-theme="dark"][data-active-tab="feed"] #following-card .brand-proof-copy {
  display: block !important;
  margin: 0;
  color: rgba(183, 201, 209, 0.76);
}

body[data-theme="dark"][data-active-tab="feed"] #thread-feed {
  scroll-margin-top: 120px;
}

body[data-theme="dark"] .feed-admin-shell[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  body[data-theme="dark"] .topbar.shell {
    width: calc(100% - 20px) !important;
    margin: 8px auto 0 !important;
    padding: 12px !important;
    border-radius: 22px !important;
  }

  body[data-theme="dark"] .topbar-main {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px !important;
    align-items: stretch !important;
  }

  body[data-theme="dark"] .topbar-actions {
    width: 100%;
    justify-content: space-between !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }

  body[data-theme="dark"] .account-dropdown,
  body[data-theme="dark"] .language-dropdown {
    min-width: 0 !important;
    flex: 1 1 0 !important;
  }

  body[data-theme="dark"] .account-toggle,
  body[data-theme="dark"] .language-picker {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 52px !important;
    height: auto !important;
    justify-content: space-between !important;
  }

  body[data-theme="dark"] .account-toggle {
    display: grid !important;
    align-content: center !important;
    justify-items: start !important;
    gap: 2px !important;
    padding: 10px 12px !important;
    text-align: left !important;
  }

  body[data-theme="dark"] .language-picker {
    display: flex !important;
    align-items: center !important;
    padding: 0 12px !important;
  }

  body[data-theme="dark"] .account-menu,
  body[data-theme="dark"] .language-menu {
    width: 100% !important;
    left: 0 !important;
    right: auto !important;
  }

  body[data-theme="dark"] .brand-title {
    font-size: 1rem !important;
    letter-spacing: 0.08em !important;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body[data-theme="dark"] .brand-lockup {
    gap: 10px !important;
  }

  body[data-theme="dark"] .brand-mark {
    width: 42px;
    min-width: 42px;
    min-height: 42px;
  }

  body[data-theme="dark"][data-active-tab="feed"] .feed-intro,
  body[data-theme="dark"][data-active-tab="feed"] .feed-layout {
    width: min(1120px, calc(100% - 20px)) !important;
  }

  body[data-theme="dark"][data-active-tab="feed"] .feed-intro {
    grid-template-columns: 1fr !important;
    gap: 16px;
    padding: 18px;
    border-radius: 24px;
  }

  body[data-theme="dark"][data-active-tab="feed"] .feed-intro-title {
    max-width: none;
    font-size: clamp(1.9rem, 10vw, 2.7rem);
  }

  body[data-theme="dark"][data-active-tab="feed"] .feed-intro-facts,
  body[data-theme="dark"][data-active-tab="feed"] .feed-intro-proof,
  body[data-theme="dark"][data-active-tab="feed"] .feed-intro-grid,
  body[data-theme="dark"][data-active-tab="feed"] .feed-layout {
    grid-template-columns: 1fr !important;
  }

  body[data-theme="dark"][data-active-tab="feed"] .feed-intro-proof .proof-card {
    min-height: 0;
  }

  body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell,
  body[data-theme="dark"][data-active-tab="feed"] .leaderboard-card,
  body[data-theme="dark"][data-active-tab="feed"] #brand-proof-card,
  body[data-theme="dark"][data-active-tab="feed"] #following-card {
    border-radius: 22px !important;
  }

  body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell {
    padding: 18px !important;
  }

  body[data-theme="dark"][data-active-tab="feed"] .feed-side {
    gap: 12px;
  }

  .boot-screen-panel {
    width: min(420px, calc(100% - 16px));
    padding: 20px 18px;
  }

  .boot-title {
    font-size: clamp(1.7rem, 9vw, 2.25rem);
  }
}

/* Feed cohesion pass: unify top / core feed / bottom as one console frame */
body[data-theme="dark"] {
  --console-font: "Pretendard Variable", "Pretendard", "Noto Sans KR", sans-serif;
  --console-stage-width: min(2080px, calc(100% - clamp(20px, 2.2vw, 56px)));
  --console-side-width: clamp(320px, 17vw, 400px);
  --console-panel: linear-gradient(180deg, rgba(6, 11, 16, 0.96) 0%, rgba(4, 8, 12, 0.99) 100%);
  --console-panel-soft: linear-gradient(180deg, rgba(9, 15, 21, 0.9) 0%, rgba(5, 9, 14, 0.96) 100%);
  --console-border: rgba(71, 196, 181, 0.16);
  --console-border-strong: rgba(76, 235, 196, 0.28);
  --console-line: rgba(94, 162, 166, 0.15);
  --console-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
  --console-text: #e7f7f3;
  --console-muted: rgba(172, 197, 203, 0.74);
}

body[data-theme="dark"],
body[data-theme="dark"] button,
body[data-theme="dark"] input,
body[data-theme="dark"] textarea,
body[data-theme="dark"] select,
body[data-theme="dark"] option {
  font-family: var(--console-font) !important;
}

body[data-theme="dark"] .boot-kicker,
body[data-theme="dark"] .boot-title,
body[data-theme="dark"] .boot-copy,
body[data-theme="dark"] .brand-title,
body[data-theme="dark"] .eyebrow,
body[data-theme="dark"] .section-kicker,
body[data-theme="dark"] h1,
body[data-theme="dark"] h2,
body[data-theme="dark"] h3,
body[data-theme="dark"] h4,
body[data-theme="dark"] h5,
body[data-theme="dark"] h6 {
  font-family: var(--console-font) !important;
}

body[data-theme="dark"][data-active-tab="feed"]::before {
  content: "";
  position: fixed;
  top: 78px;
  bottom: 84px;
  left: 50%;
  width: var(--console-stage-width);
  transform: translateX(-50%);
  border-left: 1px solid rgba(86, 151, 159, 0.08);
  border-right: 1px solid rgba(86, 151, 159, 0.08);
  pointer-events: none;
  z-index: 0;
}

body[data-theme="dark"] .topbar.shell,
body[data-theme="dark"] .bottom-shell {
  background: var(--console-panel) !important;
  border-color: var(--console-border) !important;
  box-shadow: var(--console-shadow) !important;
}

body[data-theme="dark"] .topbar.shell,
body[data-theme="dark"] .page-shell {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body[data-theme="dark"] .topbar-main,
body[data-theme="dark"] .topbar-search,
body[data-theme="dark"] .bottom-nav {
  width: var(--console-stage-width) !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body[data-theme="dark"][data-active-tab="feed"] .app-tab-panel-feed {
  display: grid !important;
  gap: 20px !important;
  width: 100% !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-layout {
  display: grid !important;
  width: var(--console-stage-width) !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body[data-theme="dark"] .topbar-main {
  min-height: 62px !important;
  padding: 0 4px !important;
}

body[data-theme="dark"] .brand-lockup {
  gap: 14px !important;
}

body[data-theme="dark"] .brand-mark {
  border: 1px solid rgba(92, 219, 210, 0.14);
  background: linear-gradient(180deg, rgba(10, 35, 40, 0.98), rgba(7, 20, 24, 0.98)) !important;
  color: #d8fffb !important;
  box-shadow:
    inset 0 0 0 1px rgba(15, 48, 52, 0.78),
    0 0 0 1px rgba(58, 138, 142, 0.12) !important;
}

body[data-theme="dark"] .brand-title {
  font-size: 1.08rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  color: #f1fbff !important;
  white-space: nowrap;
}

body[data-theme="dark"] .eyebrow {
  color: rgba(146, 176, 182, 0.64) !important;
}

body[data-theme="dark"][data-active-tab="feed"] .page-shell {
  position: relative;
  gap: 20px !important;
  padding-top: 112px !important;
  padding-bottom: 132px !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-layout {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1fr) var(--console-side-width) !important;
  gap: 0 !important;
  align-items: stretch !important;
  padding: 22px !important;
  border: 1px solid var(--console-border) !important;
  border-radius: 32px !important;
  background: var(--console-panel) !important;
  box-shadow:
    0 36px 84px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(13, 28, 32, 0.86) !important;
  overflow: hidden !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-layout::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(38, 195, 190, 0.08), transparent 18%),
    radial-gradient(circle at 100% 0%, rgba(44, 208, 212, 0.08), transparent 28%);
  pointer-events: none;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-main,
body[data-theme="dark"][data-active-tab="feed"] .feed-side {
  position: relative;
  z-index: 1;
  width: auto !important;
  min-width: 0 !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-main {
  padding-right: 22px !important;
  border-right: 1px solid var(--console-line);
}

body[data-theme="dark"][data-active-tab="feed"] .feed-side {
  display: grid;
  gap: 16px !important;
  align-content: start;
  padding-left: 22px !important;
}

body[data-theme="dark"][data-active-tab="feed"] .feed-core-shell {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-theme="dark"][data-active-tab="feed"] .leaderboard-card,
body[data-theme="dark"][data-active-tab="feed"] .toolbar-card,
body[data-theme="dark"][data-active-tab="feed"] .thread-section-core {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-theme="dark"][data-active-tab="feed"] .leaderboard-card {
  padding-bottom: 22px !important;
  border-bottom: 1px solid var(--console-line) !important;
}

body[data-theme="dark"][data-active-tab="feed"] .toolbar-card {
  margin-top: 18px !important;
  padding-bottom: 18px !important;
  border-bottom: 1px solid var(--console-line) !important;
}

body[data-theme="dark"][data-active-tab="feed"] .thread-section-core {
  margin-top: 18px !important;
}

body[data-theme="dark"][data-active-tab="feed"] .thread-section-core .section-bar {
  margin: 0 0 16px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid var(--console-line) !important;
}

body[data-theme="dark"][data-active-tab="feed"] .thread-section-core .section-bar h2,
body[data-theme="dark"][data-active-tab="feed"] .leaderboard-card h2 {
  color: #f4fbff !important;
  letter-spacing: -0.03em !important;
}

body[data-theme="dark"][data-active-tab="feed"] .leaderboard-card .section-description,
body[data-theme="dark"][data-active-tab="feed"] .thread-section-core .section-description {
  color: var(--console-muted) !important;
}

body[data-theme="dark"][data-active-tab="feed"] .thread-feed {
  gap: 14px !important;
}

body[data-theme="dark"][data-active-tab="feed"] .thread-card {
  background: var(--console-panel-soft) !important;
  border: 1px solid rgba(88, 151, 155, 0.15) !important;
  border-radius: 22px !important;
  box-shadow:
    inset 0 0 0 1px rgba(10, 19, 24, 0.84),
    0 12px 24px rgba(0, 0, 0, 0.16) !important;
}

body[data-theme="dark"][data-active-tab="feed"] .thread-card:hover {
  border-color: rgba(86, 225, 200, 0.24) !important;
  transform: translateY(-1px);
}

body[data-theme="dark"][data-active-tab="feed"] #brand-proof-card,
body[data-theme="dark"][data-active-tab="feed"] #following-card,
body[data-theme="dark"][data-active-tab="feed"] .feed-admin-shell {
  padding: 18px 20px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(88, 151, 155, 0.15) !important;
  background: var(--console-panel-soft) !important;
  box-shadow:
    inset 0 0 0 1px rgba(10, 19, 24, 0.84),
    0 12px 24px rgba(0, 0, 0, 0.16) !important;
}

body[data-theme="dark"] .bottom-shell {
  background:
    linear-gradient(180deg, rgba(6, 11, 16, 0.94), rgba(4, 8, 12, 0.98)) !important;
}

body[data-theme="dark"] .bottom-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--console-stage-width);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent 0%, rgba(71, 196, 181, 0.44) 22%, rgba(71, 196, 181, 0.22) 78%, transparent 100%);
  pointer-events: none;
}

body[data-theme="dark"] .global-search-form {
  gap: 10px !important;
  padding: 8px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(88, 151, 155, 0.14) !important;
  background: rgba(7, 13, 18, 0.92) !important;
  box-shadow: inset 0 0 0 1px rgba(10, 19, 24, 0.84) !important;
}

body[data-theme="dark"] .global-search-form::before,
body[data-theme="dark"] .global-search-form::after {
  display: none !important;
}

body[data-theme="dark"] .global-search-shell {
  border-radius: 18px !important;
  border: 1px solid rgba(88, 151, 155, 0.14) !important;
  background: rgba(4, 9, 13, 0.88) !important;
}

body[data-theme="dark"] #thread-search {
  min-height: 48px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--console-text) !important;
}

body[data-theme="dark"] #thread-search::placeholder {
  color: rgba(151, 177, 182, 0.58) !important;
}

body[data-theme="dark"] .global-search-submit {
  min-height: 48px !important;
  padding: 0 20px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(78, 221, 217, 0.22) !important;
  background: linear-gradient(180deg, rgba(16, 93, 110, 0.96), rgba(10, 58, 72, 0.98)) !important;
  color: #ebfeff !important;
  box-shadow: none !important;
}

body[data-theme="dark"] .bottom-nav-item {
  min-height: 34px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(88, 151, 155, 0.14) !important;
  background: rgba(8, 13, 19, 0.82) !important;
  color: rgba(173, 194, 199, 0.78) !important;
}

body[data-theme="dark"] .bottom-nav-item.is-active {
  border-color: rgba(78, 221, 217, 0.24) !important;
  background: rgba(13, 57, 69, 0.9) !important;
  color: #efffff !important;
}

@media (min-width: 1800px) {
  body[data-theme="dark"] {
    --console-stage-width: min(2240px, calc(100% - 72px));
    --console-side-width: clamp(340px, 18vw, 420px);
  }
}

@media (max-width: 760px) {
  body[data-theme="dark"][data-active-tab="feed"]::before {
    top: 74px;
    bottom: 92px;
    width: calc(100% - 16px);
  }

  body[data-theme="dark"][data-active-tab="feed"] .page-shell {
    padding-top: 92px !important;
    padding-bottom: 144px !important;
  }

  body[data-theme="dark"][data-active-tab="feed"] .feed-layout {
    width: calc(100% - 16px) !important;
    grid-template-columns: 1fr !important;
    padding: 16px !important;
    gap: 16px !important;
    border-radius: 24px !important;
  }

  body[data-theme="dark"][data-active-tab="feed"] .feed-main {
    padding-right: 0 !important;
    padding-bottom: 16px !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--console-line) !important;
  }

  body[data-theme="dark"][data-active-tab="feed"] .feed-side {
    padding-left: 0 !important;
    gap: 12px !important;
  }

  body[data-theme="dark"] .global-search-form {
    grid-template-columns: 1fr !important;
    padding: 10px !important;
    border-radius: 20px !important;
  }

  body[data-theme="dark"] .global-search-submit {
    width: 100% !important;
  }
}

body[data-theme="dark"] .footer-compliance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 8px;
  padding: 0 2px;
}

body[data-theme="dark"] .footer-compliance-label {
  color: rgba(154, 214, 227, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body[data-theme="dark"] .footer-compliance-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

body[data-theme="dark"] .footer-compliance-links a {
  color: rgba(214, 239, 244, 0.86);
  font-size: 12px;
  text-decoration: none;
  padding: 5px 9px;
  border: 1px solid rgba(67, 134, 150, 0.24);
  background: rgba(7, 13, 18, 0.72);
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

body[data-theme="dark"] .footer-compliance-links a:hover,
body[data-theme="dark"] .footer-compliance-links a:focus-visible {
  color: rgba(240, 251, 255, 0.98);
  border-color: rgba(97, 197, 217, 0.54);
  background: rgba(10, 19, 26, 0.94);
}

@media (max-width: 760px) {
  body[data-theme="dark"] .footer-compliance {
    align-items: flex-start;
    margin-bottom: 6px;
  }

  body[data-theme="dark"] .footer-compliance-links {
    justify-content: flex-start;
  }

  body[data-theme="dark"] .footer-compliance-links a {
    font-size: 11px;
    padding: 4px 8px;
  }
}

