:root {
  /* 全局视觉令牌：统一深色科技风、边线、强调色和圆角。 */
  color-scheme: dark;
  --bg: #03080d;
  --surface: #09131a;
  --surface-2: #0e1e28;
  --surface-3: #050b10;
  --surface-glass: rgba(10, 23, 31, 0.78);
  --line: rgba(190, 215, 226, 0.15);
  --line-strong: rgba(119, 210, 224, 0.42);
  --text: #edf6f8;
  --muted: #8ba2ab;
  --soft: #c4d4d8;
  --accent: #6bd7e4;
  --accent-2: #b8d8ba;
  --warning: #c9b879;
  --signal-open: #e0995b;
  --danger: #df8d86;
  --radius: 12px;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 16px 42px rgba(0, 0, 0, 0.18);
  --focus-ring: 0 0 0 3px rgba(107, 215, 228, 0.15);
  --home-hotline-duration: 64s;
  --home-people-duration: 47s;
  --result-marquee-duration: 52s;
  --shell-max-width: 1480px;
  --shell-pad-x: 28px;
  --shell-frame-width: min(100%, calc(var(--shell-max-width) + (var(--shell-pad-x) * 2)));
  --topbar-rail-left: max(var(--shell-pad-x), calc(50% - (var(--shell-max-width) / 2)));
  --topbar-rail-right: max(var(--shell-pad-x), calc(50% - (var(--shell-max-width) / 2)));
  --panel-bg: linear-gradient(180deg, rgba(10, 22, 30, 0.78), rgba(5, 13, 18, 0.86));
  --panel-bg-soft: linear-gradient(180deg, rgba(225, 244, 248, 0.052), rgba(225, 244, 248, 0.018));
  --hero-bg:
    linear-gradient(112deg, rgba(8, 22, 31, 0.98), rgba(3, 10, 15, 0.88)),
    repeating-linear-gradient(90deg, rgba(200, 226, 235, 0.03) 0 1px, transparent 1px 44px),
    radial-gradient(circle at 82% 22%, rgba(107, 215, 228, 0.12), transparent 31%);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
  scrollbar-gutter: stable;
  overflow-y: auto;
  overflow-x: hidden;
}

[id] {
  scroll-margin-top: 112px;
}

body {
  margin: 0;
  min-height: 100vh;
  scrollbar-gutter: stable;
  overflow-y: auto;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(rgba(210, 230, 238, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(210, 230, 238, 0.024) 1px, transparent 1px),
    radial-gradient(circle at 74% 10%, rgba(73, 147, 186, 0.14), transparent 28%),
    radial-gradient(circle at 18% 80%, rgba(107, 215, 228, 0.06), transparent 30%),
    linear-gradient(155deg, rgba(9, 18, 26, 0.72), rgba(3, 8, 13, 0.96) 54%, rgba(8, 15, 20, 0.92)),
    var(--bg);
  background-size: 48px 48px, 48px 48px, auto, auto, auto, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.026) 0 1px, transparent 1px 7px),
    linear-gradient(120deg, rgba(210, 230, 238, 0.034), transparent 30%, rgba(107, 215, 228, 0.035));
  opacity: 0.5;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0, rgba(238, 248, 246, 0.035), transparent 34%),
    radial-gradient(circle at 16% 24%, rgba(107, 215, 228, 0.045), transparent 18%),
    radial-gradient(circle at 82% 72%, rgba(190, 215, 226, 0.035), transparent 20%),
    linear-gradient(180deg, transparent 0 58%, rgba(0, 0, 0, 0.16) 100%);
  mix-blend-mode: screen;
  opacity: 0.66;
}

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

h1,
h2,
h3 {
  color: var(--text);
  font-weight: 900;
  margin-top: 0;
  overflow-wrap: anywhere;
}

p {
  margin-top: 0;
  overflow-wrap: anywhere;
}

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-top: 86px;
}

.top-nav {
  /* 顶部导航在多页面之间复用，当前页高亮由 app.js 控制。 */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(4, 10, 15, 0.94), rgba(4, 10, 15, 0.78)),
    radial-gradient(circle at 30% 0, rgba(107, 215, 228, 0.08), transparent 34%);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: none;
}

.brand strong,
.brand > span {
  display: block;
}

.brand-copy {
  margin-top: 0;
}

.brand-copy > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-family: "SF Pro Rounded", "ui-rounded", "Arial Rounded MT Bold", Inter, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  text-rendering: geometricPrecision;
}

.brand-wordmark .brand-word-calm,
.brand-wordmark .brand-word-pass {
  display: inline;
  font-weight: 720;
}

.brand-wordmark .brand-word-pass {
  color: var(--accent);
}


.home-topbar {
  justify-content: space-between;
  gap: 24px;
}

.home-topbar .brand {
  flex: 0 0 auto;
}

.home-search-wrap {
  position: relative;
  flex: 1 1 520px;
  max-width: 680px;
  margin-left: auto;
}

.search-shell {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(190, 215, 226, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(10, 22, 30, 0.88), rgba(7, 15, 21, 0.92));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
}

.home-search-input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 18px 128px 18px 2px;
  color: var(--text);
  background: transparent;
  font-size: 0.98rem;
}

.home-search-input::placeholder {
  color: rgba(196, 212, 216, 0.5);
}

.search-hint {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(107, 215, 228, 0.18);
  background: rgba(107, 215, 228, 0.08);
  color: rgba(237, 246, 248, 0.7);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 12;
  display: grid;
  gap: 0;
  padding: 10px 10px 4px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(7, 16, 22, 0.985), rgba(5, 12, 17, 0.992));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.search-results:not(.has-footer) {
  padding-bottom: 10px;
}

.search-result-item {
  display: block;
  color: inherit;
  text-decoration: none;
}

.search-results-list {
  display: grid;
  gap: 10px;
}

.search-result-item:hover {
  transform: none;
}

.search-suggestion-card {
  min-height: 0 !important;
  padding: 14px 14px 13px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.034) !important;
  box-shadow: none !important;
  transition: background-color 180ms linear, transform 180ms linear !important;
}

.search-suggestion-card:hover,
.search-suggestion-card:focus-visible {
  background: rgba(255, 255, 255, 0.05) !important;
  transform: translateY(-1px);
  outline: none;
}

.search-suggestion-card .market-card-head {
  gap: 12px;
}

.search-suggestion-card .market-card-head h3 {
  margin-bottom: 0 !important;
  -webkit-line-clamp: 2;
}

.search-suggestion-card .tag-row {
  margin-top: 10px;
}

.search-suggestion-card .tag-row .tag,
.search-suggestion-card .tag-row .status-pill {
  pointer-events: none;
}

.search-suggestion-card p {
  margin-top: 10px;
  display: -webkit-box;
  min-height: calc(1.48em * 2) !important;
  max-height: calc(1.48em * 2) !important;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.search-suggestion-card .market-meta-line {
  margin-top: 10px;
}

.search-suggestion-card .market-countdown[data-countdown] .countdown-roll {
  align-items: center;
  line-height: 1.06;
}

.search-suggestion-card .market-countdown[data-countdown] .countdown-digit {
  height: 1.06em;
  -webkit-mask-image: none;
  mask-image: none;
}

.search-suggestion-card .market-countdown[data-countdown] .countdown-digit-face {
  height: 1.06em;
  line-height: 1.04;
}

.search-suggestion-card .market-countdown[data-countdown] .countdown-separator {
  height: 1.06em;
  font-size: 1em;
  line-height: 1;
  transform: translateY(-0.06em);
}

.search-suggestion-card .market-card-action {
  pointer-events: none;
}

.search-results-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 22px;
  min-height: 22px;
  margin-top: 4px;
  padding: 0;
}

.search-results-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(237, 246, 248, 0.84);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: color 180ms linear, transform 180ms linear;
}

.search-results-more span {
  color: rgba(173, 186, 201, 0.62);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
}

.search-results-more:hover,
.search-results-more:focus-visible {
  color: rgba(107, 215, 228, 0.94);
  transform: translateY(-1px);
  outline: none;
}

.topbar-search-area .search-results,
.topbar-search-area [data-search-results] {
  display: none !important;
}

.search-empty {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  text-align: center;
}

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

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  width: var(--shell-frame-width);
  margin: 0 auto;
  padding: 24px var(--shell-pad-x) 44px;
}

.side-panel {
  display: none;
}

.side-card,
.card,
.metric-card,
.form-card,
.table-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-bg);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.022);
  backdrop-filter: blur(14px);
}

.side-card,
.card,
.metric-card,
.form-card {
  padding: 18px;
}

.side-card,
.card,
.metric-card,
.form-card,
.table-card,
.stage-column,
.home-topic-card,
.stats-board,
.person-card,
.topic-summary,
.analysis-summary,
.analysis-panel,
.chart-card,
.category-card,
.comparison-card,
.closest-user-card,
.profile-records-panel,
.profile-chart-panel,
.profile-record-card,
.profile-chart-card,
.admin-panel,
.admin-list-item,
.review-queue-item,
.cluster-item,
.review-panel,
.review-item {
  position: relative;
}

.card,
.metric-card,
.form-card,
.stage-column,
.home-topic-card,
.stats-board,
.person-card,
.analysis-panel,
.chart-card,
.category-card,
.comparison-card,
.closest-user-card,
.profile-records-panel,
.profile-chart-panel,
.profile-record-card,
.profile-chart-card,
.admin-panel,
.admin-list-item,
.review-queue-item,
.cluster-item {
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.card:hover,
.home-topic-card:hover,
.person-card:hover,
.category-card:hover,
.closest-user-card:hover,
.profile-record-card:hover,
.admin-list-item:hover,
.review-queue-item:hover,
.cluster-item:hover {
  transform: translateY(-2px);
  border-color: rgba(107, 215, 228, 0.36);
  box-shadow: 0 24px 76px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.side-card p,
.card p,
.page-title p {
  color: var(--muted);
  line-height: 1.75;
}

.side-nav {
  display: grid;
  gap: 6px;
}

.side-nav a {
  padding: 11px 12px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  color: var(--soft);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.side-nav a:hover,
.side-nav a.is-active {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(107, 215, 228, 0.07);
}

.content {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.page-title {
  /* 页面标题区承担每页的“数据大屏”氛围和上下文说明。 */
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(112deg, rgba(12, 28, 34, 0.99), rgba(7, 20, 22, 0.76)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 300'%3E%3Crect width='800' height='300' fill='%23071316'/%3E%3Cg stroke='%2343dcc3' stroke-opacity='.22' fill='none'%3E%3Cpath d='M45 190c110-90 214-112 312-64 90 44 187 30 300-42'/%3E%3Cpath d='M70 240c130-55 240-58 330-10 70 37 153 28 250-24'/%3E%3Cpath d='M110 88c80 48 158 57 234 27 104-41 190-17 260 72'/%3E%3C/g%3E%3Cg fill='%23e8fff9'%3E%3Ccircle cx='105' cy='182' r='4'/%3E%3Ccircle cx='260' cy='116' r='3'/%3E%3Ccircle cx='386' cy='145' r='5'/%3E%3Ccircle cx='590' cy='86' r='4'/%3E%3Ccircle cx='640' cy='205' r='4'/%3E%3C/g%3E%3C/svg%3E");
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.page-title h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
}

.page-title p {
  max-width: 760px;
  margin: 0;
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: 24px;
  min-height: 440px;
  padding: 34px 38px;
  border: 1px solid rgba(190, 215, 226, 0.10);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(112deg, rgba(6, 16, 25, 0.98), rgba(3, 8, 13, 0.88) 56%, rgba(7, 16, 22, 0.94)),
    radial-gradient(ellipse at 72% 48%, rgba(74, 132, 166, 0.28), transparent 28%),
    radial-gradient(circle at 22% 22%, rgba(107, 215, 228, 0.07), transparent 22%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  isolation: isolate;
}

.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-hero::before {
  background:
    repeating-linear-gradient(0deg, rgba(221, 241, 247, 0.035) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(90deg, rgba(221, 241, 247, 0.035) 0 1px, transparent 1px 38px),
    radial-gradient(circle at 68% 52%, rgba(226, 244, 249, 0.07) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 72% 35%, rgba(226, 244, 249, 0.08) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 84% 64%, rgba(226, 244, 249, 0.06) 0 1px, transparent 1px 100%),
    radial-gradient(ellipse at 74% 62%, transparent 0 34%, rgba(107, 215, 228, 0.13) 35% 35.4%, transparent 36% 100%),
    radial-gradient(ellipse at 74% 62%, transparent 0 49%, rgba(190, 215, 226, 0.1) 50% 50.3%, transparent 51% 100%);
  background-size: auto;
  mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.78) 52%, transparent 94%);
}

.home-hero::after {
  background:
    linear-gradient(90deg, rgba(107, 215, 228, 0.08), transparent 42%, rgba(210, 224, 231, 0.04)),
    linear-gradient(135deg, transparent 0 58%, rgba(107, 215, 228, 0.12) 58.1%, transparent 59.2% 100%);
  opacity: 0.62;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
}

.hero-copy h1 {
  max-width: 680px;
  margin: 12px 0 14px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.14;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-copy p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.78;
  font-size: 16px;
}

.hero-intel-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-intel-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid rgba(190, 215, 226, 0.10);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(225, 244, 248, 0.032);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  font-size: 12px;
}

.hero-intel-strip b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero-visual {
  min-height: 360px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.radar-plane {
  position: absolute;
  width: min(620px, 98vw);
  height: min(310px, 52vw);
  border: 1px solid rgba(190, 215, 226, 0.1);
  border-radius: 50%;
  transform: rotate(-12deg);
  background:
    radial-gradient(ellipse, transparent 0 38%, rgba(107, 215, 228, 0.08) 38.4% 39%, transparent 39.4% 100%),
    repeating-radial-gradient(ellipse at center, transparent 0 44px, rgba(190, 215, 226, 0.055) 45px 46px, transparent 47px 92px);
  box-shadow: 0 0 58px rgba(107, 215, 228, 0.065);
  z-index: -1;
}

.planet-core {
  position: relative;
  display: grid;
  place-items: center;
  width: min(380px, 72vw);
  aspect-ratio: 1;
  border: 1px solid rgba(190, 215, 226, 0.36);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, rgba(238, 248, 246, 0.72), rgba(107, 215, 228, 0.24) 6%, transparent 7%),
    radial-gradient(circle at 64% 60%, rgba(184, 216, 186, 0.36), transparent 9%),
    repeating-linear-gradient(0deg, rgba(226, 244, 249, 0.07) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(226, 244, 249, 0.06) 0 1px, transparent 1px 26px),
    radial-gradient(circle at 50% 50%, rgba(107, 215, 228, 0.18), rgba(8, 26, 36, 0.78) 58%, rgba(3, 8, 13, 0.86) 70%);
  box-shadow: 0 0 80px rgba(107, 215, 228, 0.18), inset 0 0 56px rgba(107, 215, 228, 0.14);
}

.planet-core::before {
  content: "";
  position: absolute;
  width: min(520px, 88vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(190, 215, 226, 0.12);
  transform: rotate(-18deg) scaleY(0.44);
  box-shadow: 0 0 40px rgba(107, 215, 228, 0.08);
  z-index: -1;
}

.planet-core::after {
  content: "";
  position: absolute;
  width: 68%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 244, 249, 0.34), transparent);
  transform: translateY(-130px) rotate(-22deg);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(190, 215, 226, 0.22);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.orbit-a {
  width: 86%;
  height: 50%;
}

.orbit-b {
  width: 68%;
  height: 38%;
  transform: rotate(24deg);
  border-color: rgba(107, 215, 228, 0.2);
}

.signal-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(107, 215, 228, 0.06), 0 0 24px rgba(107, 215, 228, 0.8);
}

.dot-a {
  top: 24%;
  right: 24%;
}

.dot-b {
  bottom: 26%;
  left: 18%;
}

.dot-c {
  top: 55%;
  right: 10%;
  background: var(--soft);
}

.signal-label {
  position: absolute;
  padding: 6px 9px;
  border: 1px solid rgba(190, 215, 226, 0.10);
  border-radius: var(--radius);
  color: var(--soft);
  background: rgba(4, 10, 15, 0.54);
  backdrop-filter: blur(12px);
  font-size: 11px;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.signal-label::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(107, 215, 228, 0.55);
}

.label-a {
  top: 16%;
  right: 8%;
}

.label-b {
  left: 4%;
  bottom: 24%;
}

.label-c {
  right: 0;
  bottom: 14%;
}

.home-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.project-board,
.stats-board,
.hot-people-section,
.signal-rank-panel {
  display: grid;
  gap: 16px;
}

[data-page="index"] .project-board,
[data-page="index"] .hot-people-section,
[data-page="index"] .signal-rank-panel {
  padding: 20px;
  border: 1px solid rgba(190, 215, 226, 0.08);
  border-radius: calc(var(--radius) + 2px);
  background:
    linear-gradient(180deg, rgba(8, 18, 26, 0.24), rgba(4, 11, 16, 0.16)),
    radial-gradient(circle at 100% 0, rgba(107, 215, 228, 0.03), transparent 32%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}


.stage-row-layout {
  padding: 20px 22px 22px;
}

.stage-topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 340px));
  gap: 16px;
  align-items: stretch;
  justify-content: start;
}

.stage-column .home-topic-card {
  height: 100%;
}

[data-page="index"] .section-heading {
  align-items: center;
}

[data-page="index"] .section-heading h2 {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.project-board .section-heading {
  padding-bottom: 8px;
}



.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(24px, 3vw, 36px);
}

.section-heading.compact {
  display: grid;
  align-items: start;
}

.stage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.stage-column {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(225, 244, 248, 0.035), rgba(225, 244, 248, 0.014)),
    radial-gradient(circle at 50% 0, rgba(107, 215, 228, 0.055), transparent 34%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.032);
}

.stage-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  letter-spacing: 0.02em;
  font-size: 13px;
  text-transform: uppercase;
}

.stage-title strong {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  background: rgba(107, 215, 228, 0.1);
  color: var(--accent);
}

.home-topic-card {
  display: grid;
  grid-template-rows: auto auto auto auto auto 1fr auto;
  gap: 12px;
  padding: 18px 18px 10px;
  border: 1px solid rgba(190, 215, 226, 0.10);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(11, 25, 34, 0.84), rgba(5, 13, 18, 0.88)),
    radial-gradient(circle at 100% 0, rgba(107, 215, 228, 0.07), transparent 28%);
  overflow: hidden;
  min-height: 0;
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.034);
}

.home-topic-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(107, 215, 228, 0.46), transparent);
  opacity: 0.44;
}

.home-topic-card::after {
  content: none;
  display: none;
}

.home-topic-card h3 {
  margin: 4px 0 0;
  line-height: 1.34;
  font-size: 18px;
  display: -webkit-box;
  min-height: calc(1.34em * 3);
  max-height: calc(1.34em * 3);
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.home-topic-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
  font-size: 13px;
}

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

.topic-meta div {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(225, 244, 248, 0.026);
}

.topic-meta dt {
  color: var(--muted);
  font-size: 12px;
}

.topic-meta dd {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.signal-meter {
  display: grid;
  grid-template-columns: minmax(88px, auto) minmax(90px, 1fr) 42px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.signal-meter .track {
  height: 8px;
  border-radius: 999px;
}

.signal-meter b {
  color: var(--soft);
  font-size: 13px;
  text-align: right;
}

.topic-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--soft);
  font-size: 13px;
  min-height: 44px;
  margin-top: 2px;
  padding: 10px 0 0;
  border-top: 1px solid rgba(190, 215, 226, 0.08);
}

.topic-card-footer .btn {
  min-height: 36px;
  padding: 9px 12px;
}

.stats-board {
  position: static;
  top: auto;
  padding: 18px;
  border: 1px solid rgba(190, 215, 226, 0.10);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(10, 22, 30, 0.84), rgba(4, 11, 16, 0.9)),
    radial-gradient(circle at 80% 0, rgba(107, 215, 228, 0.09), transparent 32%);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.022);
  backdrop-filter: blur(14px);
}

.console-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid rgba(190, 215, 226, 0.09);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(225, 244, 248, 0.026);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.console-status b {
  color: var(--accent-2);
  font-size: 11px;
}

.console-status b::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px rgba(184, 216, 186, 0.5);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 11px;
}

.stat-tile {
  position: relative;
  padding: 16px;
  border: 1px solid rgba(190, 215, 226, 0.09);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(225, 244, 248, 0.04), rgba(225, 244, 248, 0.018)),
    radial-gradient(circle at 100% 0, rgba(107, 215, 228, 0.075), transparent 34%);
  overflow: hidden;
}

.stat-tile::after {
  content: "";
  position: absolute;
  inset: auto 12px 10px;
  height: 1px;
  background: linear-gradient(90deg, rgba(107, 215, 228, 0.44), transparent);
  opacity: 0.5;
}

.stat-tile span,
.mini-chart span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.stat-tile strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: 0;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.mini-chart {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(225, 244, 248, 0.022);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.mini-bars {
  display: flex;
  align-items: end;
  gap: 10px;
  min-height: 92px;
}

.mini-bars i {
  flex: 1;
  min-width: 18px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(180deg, rgba(107, 215, 228, 0.86), rgba(190, 215, 226, 0.22));
  box-shadow: 0 0 18px rgba(107, 215, 228, 0.13);
}


.people-marquee {
  position: relative;
  overflow: hidden;
  padding: 4px 0 8px;
  mask-image: linear-gradient(to right, transparent 0, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 6%, black 94%, transparent 100%);
}

.people-track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: people-scroll var(--home-people-duration) linear infinite;
}

.people-marquee:hover .people-track {
  animation-play-state: paused;
}

.people-lane {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
  padding: 4px 2px 6px;
}

.person-card {
  display: grid;
  gap: 10px;
  width: 230px;
  min-height: 210px;
  padding: 17px;
  border: 1px solid rgba(190, 215, 226, 0.10);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(10, 22, 30, 0.78), rgba(5, 13, 18, 0.88)),
    radial-gradient(circle at 100% 0, rgba(107, 215, 228, 0.07), transparent 30%);
  overflow: hidden;
}

.people-marquee .person-card:hover {
  transform: none;
  border-color: rgba(107, 215, 228, 0.28);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

@keyframes people-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 7px)); }
}

@media (max-width: 920px) {
  .person-card {
    width: 210px;
    min-height: 198px;
  }
}

.avatar-orbit {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 24, 30, 0.92);
}

.avatar-orbit span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text);
  font-weight: 900;
}

.avatar-orbit--photo img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.person-card strong {
  font-size: 17px;
  line-height: 1.25;
}

.person-card small {
  color: var(--muted);
  display: inline-flex;
  width: fit-content;
  padding: 5px 8px;
  border: 1px solid rgba(190, 215, 226, 0.09);
  border-radius: var(--radius);
  background: rgba(225, 244, 248, 0.026);
}

.person-card em {
  width: fit-content;
  margin-top: auto;
  padding: 6px 10px;
  border: 1px solid rgba(184, 216, 186, 0.42);
  border-radius: var(--radius);
  color: var(--accent-2);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.topic-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: end;
  min-height: 380px;
  padding: 36px;
  border: 1px solid rgba(190, 215, 226, 0.10);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    var(--hero-bg),
    radial-gradient(ellipse at 70% 90%, rgba(107, 215, 228, 0.08), transparent 38%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.topic-hero h1 {
  max-width: 880px;
  margin: 12px 0;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.06;
  letter-spacing: 0;
}

.topic-hero p {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.78;
}

.topic-summary {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(190, 215, 226, 0.10);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(5, 12, 14, 0.7), rgba(5, 12, 14, 0.52)),
    radial-gradient(circle at 100% 0, rgba(107, 215, 228, 0.06), transparent 32%);
}

.topic-summary div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.topic-summary div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.topic-summary dt {
  color: var(--muted);
  font-size: 13px;
}

.topic-summary dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.topic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.topic-main {
  display: grid;
  gap: 18px;
}

.topic-background h2,
.rules-card h2 {
  margin: 8px 0 12px;
}

.topic-background,
.rules-card,
.topic-aside .stats-board {
  background:
    linear-gradient(180deg, rgba(10, 22, 30, 0.78), rgba(5, 13, 18, 0.88)),
    radial-gradient(circle at 100% 0, rgba(107, 215, 228, 0.055), transparent 30%);
}

.topic-background p {
  margin: 12px 0 0;
}

.system-prompt-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(107, 215, 228, 0.46);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(10, 25, 34, 0.95), rgba(4, 12, 18, 0.95)),
    radial-gradient(circle at 100% 0, rgba(107, 215, 228, 0.15), transparent 30%),
    repeating-linear-gradient(90deg, rgba(226, 244, 249, 0.028) 0 1px, transparent 1px 32px);
  box-shadow: 0 24px 82px rgba(0, 0, 0, 0.34), 0 0 54px rgba(107, 215, 228, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.055);
  overflow: hidden;
}

.system-prompt-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(107, 215, 228, 0.66), transparent);
  opacity: 0.55;
}

.prompt-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.prompt-card-header h2 {
  margin: 6px 0 0;
  font-size: clamp(24px, 3vw, 36px);
}

.prompt-box {
  margin: 0;
  min-height: 190px;
  padding: 20px;
  border: 1px solid rgba(190, 215, 226, 0.10);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(3, 8, 13, 0.96), rgba(5, 12, 18, 0.88)),
    repeating-linear-gradient(0deg, rgba(226, 244, 249, 0.024) 0 1px, transparent 1px 28px);
  color: #ddfff8;
  line-height: 1.82;
  white-space: pre-wrap;
  overflow: auto;
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.22);
}

.rule-list {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--soft);
  line-height: 1.78;
}

.topic-aside {
  min-width: 0;
}

.topic-stats {
  top: 100px;
}

.topic-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(107, 215, 228, 0.32);
  border-radius: var(--radius);
  background:
    linear-gradient(110deg, rgba(107, 215, 228, 0.12), rgba(10, 22, 30, 0.9)),
    radial-gradient(circle at 100% 0, rgba(190, 215, 226, 0.09), transparent 34%);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.topic-cta h2 {
  max-width: 760px;
  margin: 8px 0 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.2;
}

.submit-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  min-height: 260px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--hero-bg);
  box-shadow: var(--shadow);
}

.submit-hero h1 {
  max-width: 900px;
  margin: 12px 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}

.submit-hero p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  line-height: 1.78;
}

.submit-topic-meta {
  display: grid;
  gap: 8px;
  min-width: 190px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 12, 14, 0.62);
}

.submit-topic-meta strong {
  font-size: 34px;
}

.submit-topic-meta small {
  color: var(--muted);
}

.submit-workbench {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
  align-items: start;
}

.submit-guide {
  display: grid;
  gap: 18px;
  position: static;
  top: auto;
  align-self: start;
}

.compact-prompt .prompt-box {
  max-height: 300px;
  min-height: 220px;
}

.field-guide-list {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.field-guide-list li {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.field-guide-list strong {
  color: var(--text);
}

.field-guide-list span {
  color: var(--muted);
  line-height: 1.65;
}

.prediction-form {
  border-color: rgba(77, 220, 198, 0.26);
  background:
    linear-gradient(180deg, rgba(13, 28, 33, 0.94), rgba(7, 17, 20, 0.92)),
    radial-gradient(circle at 100% 0, rgba(67, 220, 195, 0.1), transparent 34%);
}

.form-head {
  display: grid;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.form-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

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

.field label b {
  color: var(--warning);
}

.field small {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  line-height: 1.6;
}

.count-hint {
  color: var(--accent);
  white-space: nowrap;
}

.field [data-error] {
  min-height: 20px;
  color: var(--warning);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: rgba(239, 200, 92, 0.75);
  box-shadow: 0 0 0 3px rgba(239, 200, 92, 0.08);
}

.form-alert {
  display: none;
  padding: 12px 14px;
  border: 1px solid rgba(239, 200, 92, 0.5);
  border-radius: var(--radius);
  background: rgba(239, 200, 92, 0.08);
  color: var(--warning);
}

.form-alert.is-visible {
  display: block;
}

.submit-hero-compact {
  min-height: 240px;
}

.submit-step2-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.review-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(13, 28, 33, 0.9), rgba(7, 17, 20, 0.88)),
    radial-gradient(circle at 100% 0, rgba(67, 220, 195, 0.1), transparent 34%);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.submit-step2-layout > .review-panel,
.submit-step2-layout > .prediction-form {
  align-self: stretch;
  min-height: 100%;
}

.review-list {
  display: grid;
  gap: 12px;
}

.review-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.review-item span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.review-item p {
  margin: 0;
  color: var(--soft);
  line-height: 1.7;
}

.analysis-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: end;
  min-height: 360px;
  padding: 36px;
  border: 1px solid rgba(190, 215, 226, 0.10);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    var(--hero-bg),
    linear-gradient(135deg, transparent 0 58%, rgba(107, 215, 228, 0.08) 58.2%, transparent 59.2% 100%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.analysis-hero h1 {
  max-width: 920px;
  margin: 12px 0;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.06;
  letter-spacing: 0;
}

.analysis-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.analysis-summary {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 12, 14, 0.62);
}

.analysis-summary div {
  display: grid;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.analysis-summary div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.analysis-summary dt {
  color: var(--muted);
  font-size: 13px;
}

.analysis-summary dd {
  margin: 0;
  color: var(--text);
  font-weight: 900;
}

.system-view-card {
  display: grid;
  gap: 14px;
  padding: 26px;
  border: 1px solid rgba(107, 215, 228, 0.44);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(10, 25, 34, 0.95), rgba(4, 12, 18, 0.94)),
    radial-gradient(circle at 100% 0, rgba(107, 215, 228, 0.14), transparent 32%);
  box-shadow: 0 24px 82px rgba(0, 0, 0, 0.34), 0 0 48px rgba(107, 215, 228, 0.07);
}

.system-view-card h2 {
  margin: 6px 0 0;
  font-size: clamp(24px, 3vw, 38px);
}

.system-view-card p {
  margin: 0;
  color: var(--soft);
  line-height: 1.86;
  font-size: 17px;
}

.analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.analysis-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(190, 215, 226, 0.10);
  border-radius: var(--radius);
  background: var(--panel-bg);
  box-shadow: var(--shadow-soft);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(90px, 0.34fr) 92px 58px 70px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(190, 215, 226, 0.15);
  border-radius: var(--radius);
  background: var(--panel-bg-soft);
}

.rank-row strong {
  color: var(--accent);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.rank-row p {
  margin: 0;
  color: var(--soft);
  line-height: 1.55;
}

.rank-row span,
.rank-row b {
  color: var(--text);
  white-space: nowrap;
}

.rank-spark {
  height: 8px;
  border: 1px solid rgba(190, 215, 226, 0.09);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(225, 244, 248, 0.04);
}

.rank-spark i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(107, 215, 228, 0.82), rgba(226, 244, 249, 0.26));
  box-shadow: 0 0 18px rgba(107, 215, 228, 0.18);
}

.rank-row em {
  width: fit-content;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.rank-row em[data-trend="上升"],
.rank-row em[data-trend="新出现"] {
  color: var(--accent-2);
  border-color: rgba(155, 211, 106, 0.42);
}

.rank-row em[data-trend="下降"] {
  color: var(--warning);
  border-color: rgba(239, 200, 92, 0.42);
}

.analysis-charts {
  display: grid;
  gap: 14px;
}

.chart-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(190, 215, 226, 0.15);
  border-radius: var(--radius);
  background: var(--panel-bg-soft);
}

.chart-card h3 {
  margin: 0;
}

.analysis-bars {
  display: grid;
  gap: 12px;
}

.analysis-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.8fr) 52px;
  gap: 12px;
  align-items: center;
}

.analysis-bar-row span {
  color: var(--soft);
  line-height: 1.45;
}

.analysis-bar-row strong {
  color: var(--text);
}

.split-chart-card {
  grid-template-columns: 1fr;
}

.donut-chart {
  display: grid;
  place-items: center;
  width: 190px;
  height: 190px;
  margin: 4px auto 10px;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--surface) 0 52%, transparent 53%),
    conic-gradient(var(--accent) 0 var(--a), rgba(226, 244, 249, 0.56) var(--a) var(--b), var(--warning) var(--b) var(--c), rgba(255, 255, 255, 0.12) var(--c) 100%);
  box-shadow: inset 0 0 32px rgba(0, 0, 0, 0.24), 0 0 46px rgba(107, 215, 228, 0.11);
}

.donut-chart span {
  display: grid;
  text-align: center;
  color: var(--text);
  font-size: 28px;
  font-weight: 900;
}

.donut-chart small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.segment-stack {
  display: grid;
  gap: 10px;
}

.segment-stack span {
  color: var(--muted);
}

.segment-stack strong {
  font-size: 28px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.category-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(190, 215, 226, 0.15);
  border-radius: var(--radius);
  background: var(--panel-bg-soft);
}

.category-card h3,
.category-card p {
  margin: 0;
}

.category-card p {
  color: var(--muted);
  line-height: 1.7;
}

.category-count {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.category-count span {
  color: var(--muted);
  font-size: 13px;
}

.category-count strong {
  font-size: 24px;
}

.analysis-notice {
  border-color: rgba(77, 220, 198, 0.26);
  background: rgba(67, 220, 195, 0.06);
}

.verified-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: end;
  min-height: 390px;
  padding: 38px;
  border: 1px solid rgba(184, 216, 186, 0.38);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(112deg, rgba(7, 18, 25, 0.99), rgba(3, 8, 13, 0.9)),
    repeating-linear-gradient(0deg, rgba(226, 244, 249, 0.026) 0 1px, transparent 1px 38px),
    radial-gradient(circle at 82% 24%, rgba(184, 216, 186, 0.16), transparent 30%),
    radial-gradient(circle at 18% 80%, rgba(107, 215, 228, 0.075), transparent 28%);
  box-shadow: var(--shadow), 0 0 60px rgba(184, 216, 186, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.verified-hero h1 {
  max-width: 920px;
  margin: 12px 0;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.06;
  letter-spacing: 0;
}

.verified-hero p {
  max-width: 840px;
  margin: 0;
  color: var(--muted);
  line-height: 1.78;
}

.verified-summary {
  border-color: rgba(155, 211, 106, 0.28);
}

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

.comparison-card {
  display: grid;
  gap: 12px;
  min-height: 280px;
  padding: 24px;
  border: 1px solid rgba(190, 215, 226, 0.17);
  border-radius: var(--radius);
  background: var(--panel-bg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.comparison-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(107, 215, 228, 0.52), transparent);
  opacity: 0.45;
}

.comparison-card h2,
.comparison-card p {
  margin: 0;
}

.comparison-card p {
  color: var(--soft);
  line-height: 1.85;
  font-size: 16px;
}

.system-side {
  border-color: rgba(107, 215, 228, 0.36);
}

.reality-side {
  border-color: rgba(184, 216, 186, 0.42);
  background:
    linear-gradient(180deg, rgba(10, 22, 30, 0.94), rgba(5, 13, 18, 0.9)),
    radial-gradient(circle at 100% 0, rgba(184, 216, 186, 0.11), transparent 34%);
}

.reality-side::before {
  background: linear-gradient(90deg, transparent, rgba(184, 216, 186, 0.58), transparent);
}

.match-panel {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px;
  padding: 24px;
  border: 1px solid rgba(184, 216, 186, 0.42);
  border-radius: var(--radius);
  background:
    linear-gradient(110deg, rgba(184, 216, 186, 0.105), rgba(10, 22, 30, 0.9)),
    radial-gradient(circle at 0 0, rgba(107, 215, 228, 0.1), transparent 30%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.match-score-block {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 210px;
  border: 1px solid rgba(184, 216, 186, 0.36);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 36%, rgba(184, 216, 186, 0.12), transparent 36%),
    rgba(5, 12, 14, 0.62);
}

.match-score-block strong {
  font-size: 54px;
  line-height: 1;
  color: var(--accent-2);
  text-shadow: 0 0 22px rgba(184, 216, 186, 0.18);
}

.match-score-block em {
  font-style: normal;
  color: var(--text);
  font-weight: 900;
}

.match-detail {
  display: grid;
  gap: 14px;
}

.match-detail h2,
.match-detail h3,
.match-detail p {
  margin: 0;
}

.match-detail p,
.match-detail li {
  color: var(--soft);
  line-height: 1.75;
}

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

.match-columns section {
  padding: 15px;
  border: 1px solid rgba(190, 215, 226, 0.15);
  border-radius: var(--radius);
  background: rgba(225, 244, 248, 0.026);
}

.match-columns ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 20px;
}

.rank-row em[data-trend="最接近"] {
  color: var(--accent-2);
  border-color: rgba(155, 211, 106, 0.58);
  background: rgba(155, 211, 106, 0.08);
}

.verification-charts {
  display: grid;
  gap: 14px;
}

.compare-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 74px;
  gap: 10px;
  align-items: center;
}

.compare-row span,
.compare-row strong {
  color: var(--soft);
  font-size: 13px;
}

.dual-track {
  display: grid;
  gap: 5px;
}

.dual-track i,
.dual-track b {
  display: block;
  height: 8px;
  border-radius: 999px;
}

.dual-track i {
  background: var(--accent);
}

.dual-track b {
  background: var(--accent-2);
}

.legend-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.legend-row span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.legend-row i {
  width: 18px;
  height: 8px;
  border-radius: 999px;
}

.legend-system {
  background: var(--accent);
}

.legend-reality {
  background: var(--accent-2);
}

.closest-user-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.closest-user-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(190, 215, 226, 0.10);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(10, 22, 30, 0.72), rgba(5, 13, 18, 0.86)),
    radial-gradient(circle at 100% 0, rgba(184, 216, 186, 0.07), transparent 30%);
  overflow: hidden;
}

.honor-mark {
  width: fit-content;
  min-width: 38px;
  padding: 6px 9px;
  border: 1px solid rgba(184, 216, 186, 0.36);
  border-radius: var(--radius);
  color: var(--accent-2);
  background: rgba(184, 216, 186, 0.055);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.closest-user-card p {
  margin: 0;
  color: var(--soft);
  line-height: 1.7;
}

.hit-reason {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.hit-reason span {
  color: var(--muted);
  font-size: 12px;
}

.hit-reason b {
  color: var(--accent-2);
  line-height: 1.5;
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
  gap: 24px;
  align-items: center;
  min-height: 0;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--hero-bg);
  box-shadow: var(--shadow);
}

.profile-identity {
  display: flex;
  gap: 18px;
  align-items: center;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(67, 220, 195, 0.18), transparent 62%),
    conic-gradient(from 40deg, rgba(67, 220, 195, 0.18), rgba(155, 211, 106, 0.32), rgba(67, 220, 195, 0.18));
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
}

.profile-avatar--photo,
.profile-avatar--person {
  overflow: hidden;
}

.profile-avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar--person {
  position: relative;
  background: var(--avatar-bg, rgba(88, 102, 116, 0.94));
  color: var(--avatar-fg, rgba(239, 246, 250, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.profile-avatar--person::before,
.profile-avatar--person::after {
  content: "";
  position: absolute;
  left: 50%;
  background: currentColor;
  transform: translateX(-50%);
}

.profile-avatar--person::before {
  top: 20px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.profile-avatar--person::after {
  bottom: 18px;
  width: 46px;
  height: 26px;
  border-radius: 999px 999px 12px 12px;
}

.profile-identity h1 {
  margin: 8px 0;
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1;
}

.profile-identity p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

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

.profile-stat-grid article {
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 12, 14, 0.58);
}

.profile-stat-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.profile-stat-grid strong {
  color: var(--text);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.2;
}

.profile-center-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.profile-center-shell-wide {
  grid-template-columns: minmax(0, 1fr);
}

.profile-center-main {
  display: grid;
  gap: 18px;
}

.profile-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(390px, 0.64fr);
  gap: 18px;
  align-items: start;
}

.profile-right-rail {
  display: grid;
  gap: 18px;
  align-content: start;
}

.profile-records-panel,
.profile-chart-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-bg);
  box-shadow: var(--shadow-soft);
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.filter-tabs button {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
}

.filter-tabs button.is-active,
.filter-tabs button:hover {
  border-color: var(--line-strong);
  background: rgba(67, 220, 195, 0.1);
  color: var(--text);
}

.profile-record-list {
  display: grid;
  gap: 14px;
}

.profile-record-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.profile-record-card h3,
.profile-record-card p {
  margin: 0;
}

.profile-record-card p {
  color: var(--soft);
  line-height: 1.72;
}

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

.record-metrics span {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
}

.record-metrics b {
  color: var(--text);
  font-size: 16px;
}

.profile-chart-list {
  display: grid;
  gap: 14px;
}

.profile-chart-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.profile-chart-card h3 {
  margin: 0;
}

.profile-chart-bars {
  display: grid;
  gap: 10px;
}

.profile-chart-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
}

.profile-chart-row span,
.profile-chart-row strong {
  color: var(--soft);
  font-size: 13px;
}

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

.profile-right-rail .account-grid {
  grid-template-columns: 1fr;
  gap: 14px;
}

.account-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-bg);
  box-shadow: var(--shadow-soft);
}

.account-chip-list,
.setting-list {
  display: grid;
  gap: 10px;
}

.account-chip-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}

.account-chip-list .tag {
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1;
}

.account-chip-list .tag-link::after {
  width: 4px;
  height: 4px;
}

.setting-list span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
}

.setting-list b {
  color: var(--text);
  text-align: right;
}

.admin-hero {
  min-height: 280px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--hero-bg);
  box-shadow: var(--shadow);
}

.admin-hero h1 {
  max-width: 860px;
  margin: 12px 0;
  font-size: clamp(34px, 4vw, 62px);
  line-height: 1.04;
  letter-spacing: 0;
}

.admin-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  line-height: 1.78;
}

.admin-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.admin-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-bg);
  box-shadow: var(--shadow-soft);
}

.admin-panel.wide,
.result-panel {
  grid-column: span 2;
}

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

.result-panel .admin-form-grid {
  grid-template-columns: 1fr;
}

.admin-form-grid label {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-weight: 800;
}

.admin-form-grid input,
.admin-form-grid select,
.admin-form-grid textarea {
  width: 100%;
  min-height: 42px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 12, 14, 0.78);
  color: var(--text);
}

.admin-form-grid textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.7;
}

.admin-list,
.review-queue {
  display: grid;
  gap: 12px;
}

.admin-list-item,
.review-queue-item,
.cluster-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-bg-soft);
}

.admin-list-item strong,
.cluster-item strong {
  display: block;
  color: var(--text);
}

.admin-list-item span,
.admin-list-item p,
.review-queue-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.admin-meta,
.admin-actions,
.cluster-meter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.risk-pill {
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--soft);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 900;
}

.risk-pill[data-risk="高"] {
  color: var(--danger);
  border-color: rgba(238, 123, 114, 0.5);
}

.risk-pill[data-risk="中"] {
  color: var(--warning);
  border-color: rgba(239, 200, 92, 0.5);
}

.risk-pill[data-risk="低"] {
  color: var(--accent-2);
  border-color: rgba(155, 211, 106, 0.5);
}

.cluster-meter .track {
  flex: 1;
  min-width: 180px;
}

.cluster-meter b {
  color: var(--text);
}

.eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

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

.card h2,
.card h3,
.form-card h2,
.metric-card strong {
  margin: 0;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.metric-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.metric-card strong {
  font-size: 32px;
}

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

.tag,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(225, 244, 248, 0.035);
  color: var(--soft);
  font-size: 12px;
  white-space: nowrap;
}

.tag {
  border-color: rgba(190, 215, 226, 0.2);
  background: rgba(190, 215, 226, 0.04);
}

.tag-link {
  position: relative;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.tag-link::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(107, 215, 228, 0.52);
  box-shadow: 0 0 10px rgba(107, 215, 228, 0.22);
}

.tag-link:hover {
  color: var(--text);
  border-color: rgba(107, 215, 228, 0.42);
  background: rgba(107, 215, 228, 0.09);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.tag-link:focus-visible {
  border-color: rgba(107, 215, 228, 0.58);
}

.status-pill[data-status="收集中"],
.status-pill[data-status="开放"],
.status-pill[data-status="讨论中"] {
  color: var(--accent-2);
  border-color: rgba(184, 216, 186, 0.46);
}

.status-pill[data-status="开放提交"] {
  color: var(--signal-open);
  border-color: rgba(224, 153, 91, 0.46);
}

.status-pill[data-status="分析中"],
.status-pill[data-status="观点整理中"],
.status-pill[data-status="已封盘"] {
  color: var(--accent);
  border-color: var(--line-strong);
}

.status-pill[data-status="待验证"] {
  color: var(--warning);
  border-color: rgba(201, 184, 121, 0.46);
}

.status-pill[data-status="发布预览"] {
  color: var(--accent);
  border-color: rgba(107, 215, 228, 0.42);
  background: rgba(107, 215, 228, 0.08);
}

.status-pill[data-status="草稿待发布"],
.status-pill[data-status="暂停"] {
  color: var(--muted);
  border-color: rgba(191, 226, 221, 0.28);
  background: rgba(191, 226, 221, 0.04);
}

.status-pill[data-status="已验证"] {
  color: #d9f7b6;
  border-color: rgba(184, 216, 186, 0.58);
  background: rgba(184, 216, 186, 0.075);
}

.button-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(107, 215, 228, 0.07);
  color: var(--text);
  font-weight: 800;
  line-height: 1.2;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, rgba(107, 215, 228, 0.94), rgba(226, 244, 249, 0.82));
  color: #031016;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(107, 215, 228, 0.16);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.04);
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(190, 215, 226, 0.54);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
}

.track {
  height: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.024)),
    rgba(255, 255, 255, 0.04);
}

.track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(107, 215, 228, 0.84), rgba(226, 244, 249, 0.34));
  box-shadow: 0 0 20px rgba(107, 215, 228, 0.16);
}

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

.field {
  /* 表单组件统一服务提交页和后台假页面。 */
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--soft);
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 12, 14, 0.78);
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.7;
}

.field small {
  color: var(--muted);
}

.field input:hover,
.field select:hover,
.field textarea:hover,
.admin-form-grid input:hover,
.admin-form-grid select:hover,
.admin-form-grid textarea:hover {
  border-color: rgba(191, 226, 221, 0.34);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.admin-form-grid input:focus,
.admin-form-grid select:focus,
.admin-form-grid textarea:focus {
  border-color: var(--line-strong);
  background: rgba(5, 12, 14, 0.92);
  box-shadow: var(--focus-ring);
}

.field input::placeholder,
.field textarea::placeholder,
.admin-form-grid input::placeholder,
.admin-form-grid textarea::placeholder {
  color: rgba(194, 213, 209, 0.46);
}

.table-card {
  overflow: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

th {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  color: var(--soft);
}

.notice {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  line-height: 1.7;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  max-width: 320px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(7, 16, 20, 0.96);
  color: var(--text);
  box-shadow: var(--shadow);
  display: none !important;
}

[data-page="analysis"] .intelligence-hero,
[data-page="verified"] .verification-hero {
  position: relative;
  isolation: isolate;
}

[data-page="analysis"] .intelligence-hero::before,
[data-page="verified"] .verification-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(226, 244, 249, 0.04) 0 1px, transparent 1px 100%),
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(226, 244, 249, 0.026) 31px 32px);
  opacity: 0.5;
  mask-image: linear-gradient(90deg, #000, transparent 88%);
  z-index: -1;
}

[data-page="analysis"] .analysis-summary,
[data-page="verified"] .analysis-summary {
  border-color: rgba(190, 215, 226, 0.2);
  background:
    linear-gradient(180deg, rgba(5, 12, 18, 0.76), rgba(3, 8, 13, 0.62)),
    radial-gradient(circle at 100% 0, rgba(107, 215, 228, 0.065), transparent 34%);
}

[data-page="analysis"] .analysis-summary dd,
[data-page="verified"] .analysis-summary dd {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

[data-page="analysis"] .conclusion-card {
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  align-items: center;
  min-height: 210px;
  padding: 30px;
}

[data-page="analysis"] .conclusion-card::before {
  content: "SYNTHESIS";
  position: absolute;
  right: 24px;
  top: 18px;
  color: rgba(196, 212, 216, 0.26);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

[data-page="analysis"] .conclusion-card h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
}

[data-page="analysis"] .conclusion-card p {
  padding-left: 22px;
  border-left: 1px solid rgba(107, 215, 228, 0.32);
}

[data-page="analysis"] .intelligence-grid,
[data-page="verified"] .verification-grid {
  grid-template-columns: minmax(0, 1.26fr) minmax(360px, 0.74fr);
}

[data-page="analysis"] .rank-panel,
[data-page="verified"] .rank-panel,
[data-page="analysis"] .chart-panel,
[data-page="verified"] .chart-panel,
[data-page="analysis"] .category-panel,
[data-page="verified"] .closest-panel {
  border-color: rgba(190, 215, 226, 0.18);
  background:
    linear-gradient(180deg, rgba(10, 22, 30, 0.82), rgba(4, 11, 16, 0.9)),
    radial-gradient(circle at 100% 0, rgba(107, 215, 228, 0.055), transparent 34%);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

[data-page="analysis"] .section-heading.compact p,
[data-page="verified"] .section-heading.compact p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}

[data-page="analysis"] .rank-row,
[data-page="verified"] .rank-row {
  min-height: 74px;
  background:
    linear-gradient(180deg, rgba(225, 244, 248, 0.052), rgba(225, 244, 248, 0.018)),
    linear-gradient(90deg, rgba(107, 215, 228, 0.04), transparent 38%);
}

[data-page="analysis"] .rank-row:first-child,
[data-page="verified"] .rank-row:first-child {
  border-color: rgba(107, 215, 228, 0.34);
  background:
    linear-gradient(180deg, rgba(107, 215, 228, 0.075), rgba(225, 244, 248, 0.018)),
    radial-gradient(circle at 0 50%, rgba(107, 215, 228, 0.11), transparent 36%);
}

[data-page="analysis"] .rank-row strong,
[data-page="verified"] .rank-row strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(107, 215, 228, 0.24);
  border-radius: var(--radius);
  background: rgba(107, 215, 228, 0.06);
  font-size: 14px;
}

[data-page="analysis"] .rank-spark,
[data-page="verified"] .rank-spark {
  height: 10px;
  background:
    linear-gradient(90deg, rgba(225, 244, 248, 0.04), rgba(225, 244, 248, 0.02)),
    repeating-linear-gradient(90deg, transparent 0 16px, rgba(226, 244, 249, 0.06) 17px 18px);
}

[data-page="analysis"] .chart-card,
[data-page="verified"] .chart-card {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(225, 244, 248, 0.05), rgba(225, 244, 248, 0.018)),
    radial-gradient(circle at 100% 0, rgba(107, 215, 228, 0.05), transparent 32%);
}

[data-page="analysis"] .analysis-bar-row,
[data-page="verified"] .analysis-bar-row {
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.82fr) 56px;
  min-height: 34px;
}

[data-page="analysis"] .track,
[data-page="verified"] .track {
  height: 16px;
}

[data-page="analysis"] .split-chart-card {
  min-height: 310px;
  align-content: center;
}

[data-page="analysis"] .segment-stack {
  padding: 14px;
  border: 1px solid rgba(190, 215, 226, 0.09);
  border-radius: var(--radius);
  background: rgba(225, 244, 248, 0.026);
}

[data-page="analysis"] .segment-stack span::after {
  content: " / long-tail signal";
  color: rgba(196, 212, 216, 0.54);
}

[data-page="analysis"] .category-card:last-child {
  border-color: rgba(201, 184, 121, 0.28);
  background:
    linear-gradient(180deg, rgba(201, 184, 121, 0.052), rgba(225, 244, 248, 0.016)),
    radial-gradient(circle at 100% 0, rgba(201, 184, 121, 0.06), transparent 34%);
}

[data-page="analysis"] .category-card:last-child h3::after {
  content: "Long-tail";
  display: inline-flex;
  margin-left: 8px;
  padding: 4px 7px;
  border: 1px solid rgba(201, 184, 121, 0.3);
  border-radius: var(--radius);
  color: var(--warning);
  font-size: 11px;
  font-weight: 800;
}

[data-page="analysis"] .analysis-notice {
  border-color: rgba(190, 215, 226, 0.18);
  background:
    linear-gradient(90deg, rgba(107, 215, 228, 0.055), rgba(225, 244, 248, 0.018));
}

.verification-stage {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(190, 215, 226, 0.09);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(10, 22, 30, 0.54), rgba(4, 11, 16, 0.7)),
    radial-gradient(circle at 50% 0, rgba(184, 216, 186, 0.07), transparent 34%);
}

.report-ribbon {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid rgba(184, 216, 186, 0.24);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(184, 216, 186, 0.035);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.report-ribbon b {
  color: var(--accent-2);
  font-size: 13px;
}

[data-page="verified"] .verification-comparison {
  gap: 16px;
}

[data-page="verified"] .comparison-card {
  min-height: 0;
  padding: 28px;
}

[data-page="verified"] .comparison-card h2 {
  font-size: clamp(28px, 3vw, 44px);
}

[data-page="verified"] .comparison-card p {
  font-size: 17px;
  line-height: 1.9;
}

[data-page="verified"] .authority-panel {
  grid-template-columns: 280px minmax(0, 1fr);
  padding: 28px;
  border-color: rgba(184, 216, 186, 0.5);
}

[data-page="verified"] .match-score-block {
  min-height: 250px;
}

[data-page="verified"] .match-score-block strong {
  font-size: 66px;
}

[data-page="verified"] .match-detail h2::before {
  content: "VERDICT / ";
  color: var(--accent-2);
  font-size: 12px;
  letter-spacing: 0.12em;
}

[data-page="verified"] .match-columns section {
  background:
    linear-gradient(180deg, rgba(225, 244, 248, 0.04), rgba(225, 244, 248, 0.018));
}

[data-page="verified"] .closest-user-card {
  min-height: 260px;
  border-color: rgba(184, 216, 186, 0.2);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

[data-page="verified"] .closest-user-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(184, 216, 186, 0.52), transparent);
  opacity: 0.5;
}

[data-page="verified"] .honor-mark {
  min-width: 44px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}



/* UI bugfix: 防止卡片跟随滚动、文本溢出和内容裁切。 */
.side-card,
.card,
.metric-card,
.form-card,
.table-card,
.stage-column,
.home-topic-card,
.stats-board,
.person-card,
.topic-summary,
.analysis-summary,
.analysis-panel,
.chart-card,
.category-card,
.comparison-card,
.closest-user-card,
.profile-records-panel,
.profile-chart-panel,
.profile-record-card,
.profile-chart-card,
.admin-panel,
.admin-list-item,
.review-queue-item,
.cluster-item,
.review-panel,
.review-item,
.system-view-card,
.topic-cta,
.match-panel {
  min-width: 0;
  align-self: start;
}

.side-card *,
.card *,
.metric-card *,
.form-card *,
.table-card *,
.stage-column *,
.home-topic-card *,
.stats-board *,
.person-card *,
.topic-summary *,
.analysis-summary *,
.analysis-panel *,
.chart-card *,
.category-card *,
.comparison-card *,
.closest-user-card *,
.profile-record-card *,
.profile-chart-card *,
.admin-panel *,
.admin-list-item *,
.review-queue-item *,
.cluster-item *,
.review-panel *,
.review-item *,
.system-view-card *,
.topic-cta *,
.match-panel * {
  min-width: 0;
}

.home-topic-card h3,
.person-card strong,
.category-card h3,
.comparison-card h2,
.closest-user-card strong,
.profile-record-card h3,
.review-item p,
.rank-row p,
.analysis-bar-row span,
.compare-row span,
.compare-row strong,
.record-metrics span,
.profile-chart-row span,
.profile-chart-row strong,
.topic-summary dd,
.analysis-summary dd,
.stat-tile strong,
.match-detail li,
.match-detail p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.topic-card-footer,
.card-header,
.admin-actions,
.admin-meta,
.cluster-meter,
.section-heading,
.prompt-card-header {
  flex-wrap: wrap;
}

.home-topic-card,
.person-card,
.category-card,
.closest-user-card,
.profile-record-card,
.admin-list-item,
.review-queue-item,
.cluster-item,
.comparison-card,
.chart-card {
  height: auto;
}

.rank-row {
  grid-template-columns: 44px minmax(0, 1.35fr) minmax(110px, 0.58fr) minmax(84px, auto) minmax(54px, auto) minmax(70px, auto);
}

.analysis-bar-row {
  grid-template-columns: minmax(0, 1.1fr) minmax(150px, 0.9fr) minmax(56px, auto);
}

.compare-row {
  grid-template-columns: minmax(84px, auto) minmax(0, 1fr) minmax(82px, auto);
}

.match-columns section,
.record-metrics span,
.topic-meta div,
.review-item,
.admin-list-item,
.cluster-item {
  overflow: visible;
}

@media (max-width: 1320px) {
  :root {
    --shell-pad-x: 22px;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-left: var(--shell-pad-x);
    padding-right: var(--shell-pad-x);
  }

  .home-hero,
  .topic-hero,
  .submit-hero,
  .analysis-hero,
  .verified-hero,
  .profile-hero,
  .admin-hero {
    padding: 28px;
  }

  .hero-copy h1 {
    font-size: clamp(24px, 3.5vw, 40px);
    max-width: 10ch;
  }

  .category-grid,
  .closest-user-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-row {
    grid-template-columns: 40px minmax(0, 1.2fr) minmax(88px, 0.48fr) minmax(78px, auto) minmax(48px, auto) minmax(64px, auto);
    gap: 10px;
  }
}

@media (max-width: 1120px) {
  html {
    scroll-padding-top: 178px;
  }

  [id] {
    scroll-margin-top: 178px;
  }

  .top-nav {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .side-panel,
  .side-nav {
    display: none;
  }

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

  .home-hero,
  .home-dashboard,
  .topic-hero,
  .topic-layout,
  .submit-workbench,
  .submit-step2-layout,
  .analysis-hero,
  .analysis-grid,
  .category-grid,
  .verified-hero,
  .comparison-grid,
  .match-panel,
  .match-columns,
  .closest-user-grid,
  .profile-hero,
  .profile-center-shell,
  .profile-dashboard,
  .account-grid,
  .admin-layout,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-panel.wide,
  .result-panel {
    grid-column: auto;
  }

  .stats-board {
    position: static;
  }

  .profile-right-rail .account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .submit-guide {
    position: static;
  }

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

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


@media (max-width: 720px) {
  :root {
    --shell-pad-x: 18px;
  }

  .market-topbar,
  .top-nav,
  .layout {
    padding-left: var(--shell-pad-x);
    padding-right: var(--shell-pad-x);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .page-title {
    padding: 22px;
  }

  .card-header {
    flex-direction: column;
  }

  .home-hero {
    padding: 22px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(22px, 8vw, 34px);
  }

  .hero-visual {
    min-height: 260px;
  }

  .topic-meta {
    grid-template-columns: 1fr;
  }

  .topic-card-footer,
  .section-heading,
  .prompt-card-header,
  .topic-cta,
  .submit-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .form-split {
    grid-template-columns: 1fr;
  }

  .rank-row,
  .analysis-bar-row,
  .compare-row,
  .record-metrics,
  .profile-chart-row,
  .stage-topic-grid {
    grid-template-columns: 1fr;
  }

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

  .profile-identity {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-stat-grid {
    grid-template-columns: 1fr;
  }

  .profile-right-rail .account-grid {
    grid-template-columns: 1fr;
  }

  .people-strip {
    grid-auto-columns: minmax(164px, 78vw);
  }
}

@media (max-width: 1100px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(24px, 5vw, 40px);
  }
}

/* === Alignment and dashboard refinement pass === */
.stage-title {
  min-height: 40px;
  padding: 0 14px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  line-height: 1;
}

.stage-title span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}

.stage-title strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stage-row-layout {
  padding: 14px 0 18px;
}

.stage-topic-grid {
  align-items: stretch;
  padding: 0 14px;
}

.mini-chart {
  gap: 16px;
  min-height: 210px;
  padding: 18px 16px 14px;
}

.mini-chart span {
  line-height: 1.2;
}

.mini-bars {
  min-height: 150px;
  padding-top: 14px;
  gap: 12px;
}

.mini-bars i {
  min-width: 26px;
}

.topic-hero,
.analysis-hero,
.verified-hero,
.submit-hero {
  align-items: start;
}

.topic-hero > :first-child,
.analysis-hero > :first-child,
.verified-hero > :first-child,
.submit-hero > :first-child {
  display: grid;
  align-content: start;
  align-self: start;
  gap: 12px;
  min-width: 0;
}

.topic-hero > :last-child,
.analysis-hero > :last-child,
.verified-hero > :last-child,
.submit-hero > :last-child {
  align-self: start;
}

.topic-hero h1,
.analysis-hero h1,
.verified-hero h1,
.submit-hero h1 {
  margin: 8px 0 0;
}

.topic-hero p,
.analysis-hero p,
.verified-hero p,
.submit-hero p {
  margin: 4px 0 0;
}

.topic-summary,
.analysis-summary,
.submit-topic-meta,
.verified-summary {
  align-self: start;
}

.topic-summary div,
.analysis-summary div {
  align-items: start;
}

.topic-summary dt,
.analysis-summary dt {
  line-height: 1.2;
}

.topic-summary dd,
.analysis-summary dd {
  line-height: 1.35;
}

@media (max-width: 1320px) {
  .topic-hero,
  .analysis-hero,
  .verified-hero,
  .submit-hero {
    align-items: start;
  }
}

/* === Baseline and top-hero cleanup pass === */
:where(.btn, .tag, .status-pill, .eyebrow, .stage-title span, .stage-title strong, .topic-meta dt, .topic-meta dd, .stat-tile span, .stat-tile strong, .topic-summary dt, .topic-summary dd, .analysis-summary dt, .analysis-summary dd, .console-status, .hero-intel-strip span, .signal-meter, .topic-card-footer, .field label, .field small, .rank-row span, .rank-row b, .rank-row em) {
  line-height: 1.2;
}

:where(.btn, .tag, .status-pill, .stage-title strong, .hero-intel-strip span, .console-status b, .signal-meter b, .topic-meta dd, .stat-tile strong, .topic-summary dd, .analysis-summary dd, .rank-row strong, .rank-row b, .compare-row strong) {
  font-variant-numeric: tabular-nums;
}

.btn,
.tag,
.status-pill,
.stage-title strong,
.console-status,
.hero-intel-strip span,
.topic-meta div,
.stat-tile,
.topic-summary div,
.analysis-summary div,
.field input,
.field select,
.field textarea {
  display: inline-flex;
  align-items: center;
}

.topic-meta div,
.stat-tile,
.topic-summary div,
.analysis-summary div,
.field textarea {
  display: flex;
}

.stage-column {
  overflow: hidden;
}

.stage-title {
  min-height: 44px;
  padding: 0 16px 12px;
  border-bottom: 1px solid rgba(190, 215, 226, 0.12);
}

.stage-title span {
  min-height: 30px;
  align-items: center;
  transform: translateY(0);
}

.stage-title strong {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  transform: translateY(0);
}

.stage-row-layout {
  padding: 16px 0 20px;
}

.stage-topic-grid {
  padding: 0 16px;
}

.stats-board {
  align-content: start;
}

.mini-chart {
  gap: 18px;
  min-height: 320px;
  padding: 18px 16px 16px;
}

.mini-chart span {
  display: block;
  margin: 0;
}

.mini-bars {
  min-height: 240px;
  height: 240px;
  align-items: flex-end;
  gap: 14px;
  padding-top: 6px;
}

.mini-bars i {
  min-width: 30px;
  height: auto;
}

.topic-hero,
.analysis-hero,
.verified-hero,
.submit-hero {
  min-height: auto;
  padding: 34px 36px;
  align-items: start;
}

.topic-hero,
.analysis-hero,
.verified-hero {
  grid-auto-rows: min-content;
}

.submit-hero {
  align-items: flex-start;
}

.topic-hero > :first-child,
.analysis-hero > :first-child,
.verified-hero > :first-child,
.submit-hero > :first-child,
.topic-hero > :last-child,
.analysis-hero > :last-child,
.verified-hero > :last-child,
.submit-hero > :last-child {
  align-self: start;
}

.topic-hero > :first-child,
.analysis-hero > :first-child,
.verified-hero > :first-child,
.submit-hero > :first-child {
  gap: 10px;
}

.topic-hero h1,
.analysis-hero h1,
.verified-hero h1,
.submit-hero h1 {
  margin: 10px 0 0;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.topic-hero p,
.analysis-hero p,
.verified-hero p,
.submit-hero p {
  max-width: 820px;
  margin: 2px 0 0;
  line-height: 1.68;
}

.topic-summary,
.analysis-summary,
.verified-summary,
.submit-topic-meta {
  margin: 0;
  align-self: start;
}

.topic-summary div,
.analysis-summary div {
  display: grid;
  align-items: center;
}

.topic-summary {
  gap: 0;
}

.analysis-summary,
.verified-summary {
  gap: 0;
}

.topic-summary div,
.analysis-summary div {
  min-height: 58px;
  padding: 12px 0;
}

.topic-summary dt,
.analysis-summary dt {
  margin: 0;
  line-height: 1.25;
}

.topic-summary dd,
.analysis-summary dd {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  line-height: 1.3;
}

.submit-topic-meta {
  gap: 10px;
  align-content: start;
}

.submit-topic-meta strong {
  line-height: 1;
}

@media (max-width: 1320px) {
  .mini-chart {
    min-height: 280px;
  }

  .mini-bars {
    min-height: 154px;
    height: 210px;
  }

  .topic-hero,
  .analysis-hero,
  .verified-hero,
  .submit-hero {
    min-height: auto;
  }
}

@media (max-width: 900px) {
  .mini-chart {
    min-height: 240px;
  }

  .mini-bars {
    min-height: 170px;
    height: 170px;
  }

  .topic-hero,
  .analysis-hero,
  .verified-hero,
  .submit-hero {
    padding: 26px 22px;
  }
}


/* === Baseline correction + line chart replacement === */
.stat-tile {
  display: grid;
  align-content: start;
  align-items: start;
  gap: 10px;
  min-height: 94px;
}

.stat-tile span {
  display: block;
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.stat-tile strong {
  display: block;
  margin-top: 0;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.topic-meta div {
  display: block;
}

.topic-meta dt {
  margin: 0 0 6px;
  line-height: 1.25;
}

.topic-meta dd {
  display: block;
  margin: 0;
  line-height: 1.3;
}

.topic-summary div,
.analysis-summary div {
  display: grid;
  align-items: start;
}

.topic-summary div {
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
}

.analysis-summary div,
.verified-summary div {
  gap: 6px;
}

.topic-summary dd,
.analysis-summary dd,
.verified-summary dd {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  font-size: 15px;
  line-height: 1.3;
}

.field input,
.field select,
.field textarea {
  display: block;
}

.btn,
.tag,
.status-pill {
  line-height: 1.15;
}

.mini-chart {
  gap: 12px;
  min-height: 0;
  padding: 14px 16px;
}

.mini-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mini-chart-header span {
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.mini-chart-header small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.line-chart {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  min-height: 176px;
}

.line-chart-y-axis {
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  align-items: end;
  justify-items: end;
  padding: 4px 0 24px;
}

.line-chart-y-axis span,
.line-chart-x-axis span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.line-chart-plot {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 18px;
  min-height: 176px;
  border-left: 1px solid rgba(190, 215, 226, 0.18);
  border-bottom: 1px solid rgba(190, 215, 226, 0.18);
}

.line-chart-grid {
  grid-column: 2;
  position: absolute;
  inset: 0 0 18px 56px;
  pointer-events: none;
  background:
    repeating-linear-gradient(to top, rgba(190, 215, 226, 0.07) 0 1px, transparent 1px 25%),
    repeating-linear-gradient(to right, rgba(190, 215, 226, 0.045) 0 1px, transparent 1px 20%);
  border-radius: 8px 8px 0 0;
}

.line-chart-plot svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.line-chart-area {
  fill: rgba(107, 215, 228, 0.12);
  stroke: none;
}

.line-chart-line {
  fill: none;
  stroke: rgba(107, 215, 228, 0.92);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(107, 215, 228, 0.14));
}

.line-chart-plot circle {
  fill: #dff9ff;
  stroke: rgba(107, 215, 228, 0.92);
  stroke-width: 1.1;
}

.line-chart-x-axis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  padding-top: 6px;
}

@media (max-width: 900px) {
  .line-chart {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 154px;
  }

  .line-chart-grid {
    inset: 0 0 18px 46px;
  }

  .line-chart-plot {
    min-height: 154px;
  }
}


/* === refinement pass: lighter home stats, people hover, consistent widths === */
[data-page="index"] .stats-board {
  gap: 14px;
}

.signal-rank-panel {
  position: relative;
  overflow: hidden;
  align-content: start;
  border: 1px solid rgba(190, 215, 226, 0.10);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(10, 22, 30, 0.78), rgba(4, 11, 16, 0.88)),
    radial-gradient(circle at 88% 0, rgba(184, 216, 186, 0.09), transparent 34%);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.028);
}

.signal-rank-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(184, 216, 186, 0.38), rgba(107, 215, 228, 0.28), transparent);
  opacity: 0.65;
}

.rank-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 5px;
  border: 0;
  border-radius: var(--radius);
  background: rgba(225, 244, 248, 0.026);
}

.rank-system-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 5px;
  border: 0;
  border-radius: var(--radius);
  background: rgba(225, 244, 248, 0.026);
}

.rank-tab-indicator {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 0;
  border-radius: 6px;
  background: rgba(107, 215, 228, 0.08);
  border: 0;
  pointer-events: none;
  will-change: transform, width;
  z-index: 0;
}

.rank-tab {
  position: relative;
  z-index: 1;
  min-height: 34px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  transition: color 180ms ease;
}

.rank-tab:hover,
.rank-tab.is-active {
  color: var(--text);
}

.signal-rank-list {
  display: grid;
  gap: 10px;
}

.signal-rank-row {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(190, 215, 226, 0.10);
  border-radius: var(--radius);
  color: inherit;
  background:
    linear-gradient(180deg, rgba(225, 244, 248, 0.04), rgba(225, 244, 248, 0.016)),
    linear-gradient(90deg, rgba(184, 216, 186, 0.035), transparent 42%);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.signal-rank-row::after {
  content: "";
  position: absolute;
  inset: 8px auto 8px 0;
  width: 2px;
  border-radius: 999px;
  opacity: 0;
  transform: scaleY(0.35);
  transform-origin: center;
  transition: opacity 420ms linear, transform 420ms linear, background 420ms linear;
  pointer-events: none;
}

.signal-rank-row.is-rank-reordering::after {
  opacity: 0.92;
  transform: scaleY(1);
}

.signal-rank-row.is-rank-moving-up {
  border-color: rgba(184, 216, 186, 0.24);
  background:
    linear-gradient(180deg, rgba(225, 244, 248, 0.05), rgba(225, 244, 248, 0.02)),
    linear-gradient(90deg, rgba(184, 216, 186, 0.09), transparent 54%);
  box-shadow: 0 18px 34px rgba(184, 216, 186, 0.08);
}

.signal-rank-row.is-rank-moving-up::after {
  background: linear-gradient(180deg, rgba(184, 216, 186, 0.04), rgba(184, 216, 186, 0.88), rgba(184, 216, 186, 0.04));
}

.signal-rank-row.is-rank-moving-down {
  border-color: rgba(107, 215, 228, 0.24);
  background:
    linear-gradient(180deg, rgba(225, 244, 248, 0.05), rgba(225, 244, 248, 0.02)),
    linear-gradient(90deg, rgba(107, 215, 228, 0.08), transparent 54%);
  box-shadow: 0 18px 34px rgba(107, 215, 228, 0.08);
}

.signal-rank-row.is-rank-moving-down::after {
  background: linear-gradient(180deg, rgba(107, 215, 228, 0.04), rgba(107, 215, 228, 0.88), rgba(107, 215, 228, 0.04));
}

.signal-rank-row:hover,
.signal-rank-row:focus-visible {
  border-color: rgba(184, 216, 186, 0.26);
  background:
    linear-gradient(180deg, rgba(225, 244, 248, 0.058), rgba(225, 244, 248, 0.024)),
    linear-gradient(90deg, rgba(184, 216, 186, 0.06), transparent 46%);
  transform: translateY(-1px);
}

.rank-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(184, 216, 186, 0.28);
  border-radius: 10px;
  color: var(--accent-2);
  background: rgba(184, 216, 186, 0.055);
  font-size: 12px;
  font-weight: 900;
}

.signal-rank-row strong,
.signal-rank-row small,
.rank-score b,
.rank-score span,
.rank-metrics span {
  display: block;
}

.signal-rank-row strong {
  font-size: 14px;
}

.signal-rank-row small,
.rank-score span,
.rank-metrics span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.rank-score {
  text-align: right;
}

.rank-score b {
  color: var(--accent-2);
  font-size: 18px;
  line-height: 1;
}

.rank-metrics {
  grid-column: 2 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rank-metrics span {
  padding: 5px 7px;
  border: 1px solid rgba(190, 215, 226, 0.09);
  border-radius: 9px;
  background: rgba(225, 244, 248, 0.024);
}

.rank-user-profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.rank-user-profile-grid span {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(190, 215, 226, 0.12);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(225, 244, 248, 0.03);
  font-size: 12px;
}

.rank-user-profile-grid b {
  color: var(--accent-2);
  font-size: 24px;
  line-height: 1;
}

@media (max-width: 720px) {
  .rank-user-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

[data-page="index"] .mini-chart,
[data-page="index"] .line-chart,
[data-page="index"] .line-chart-grid,
[data-page="index"] .line-chart-y-axis,
[data-page="index"] .line-chart-plot,
[data-page="index"] .line-chart-x-axis {
  display: none !important;
}

.people-strip {
  overflow-x: auto;
  overflow-y: visible;
  padding-top: 6px;
  padding-bottom: 10px;
}

[data-page="index"] .hot-people-section {
  overflow: visible;
}

.person-card {
  position: relative;
  overflow: visible;
}

.person-card:hover {
  transform: translateY(-4px);
}

.stage-topic-grid > .home-topic-card:only-child {
  grid-column: auto;
  width: auto;
  max-width: 340px;
}

.analysis-charts {
  grid-template-columns: minmax(0, 1fr);
}

.chart-card-single {
  min-height: auto;
}

.split-chart-card,
.donut-chart,
.segment-stack {
  display: none !important;
}


@media (max-width: 820px) {
  .stage-topic-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


[data-page="analysis"] .analysis-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
}

[data-page="analysis"] .category-panel {
  align-self: start;
}

[data-page="analysis"] .category-grid {
  grid-template-columns: 1fr;
}

.representative-panel {
  border-color: rgba(190, 215, 226, 0.18);
  background:
    linear-gradient(180deg, rgba(10, 22, 30, 0.82), rgba(4, 11, 16, 0.9)),
    radial-gradient(circle at 100% 0, rgba(184, 216, 186, 0.06), transparent 34%);
}

.representative-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--page-panel-gap);
}

.representative-card {
  display: grid;
  gap: 14px;
  min-height: 260px;
  padding: 16px;
  border: 1px solid rgba(190, 215, 226, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(225, 244, 248, 0.045), rgba(225, 244, 248, 0.016)),
    radial-gradient(circle at 100% 0, rgba(107, 215, 228, 0.05), transparent 34%);
}

.representative-head,
.representative-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.representative-head strong {
  display: block;
  margin-top: 5px;
  font-size: 17px;
}

.signal-similarity {
  display: grid;
  place-items: center;
  min-width: 54px;
  height: 36px;
  border: 1px solid rgba(184, 216, 186, 0.28);
  border-radius: 10px;
  color: var(--accent-2);
  background: rgba(184, 216, 186, 0.055);
  font-size: 15px;
  font-weight: 900;
}

.representative-card p {
  margin: 0;
  color: var(--soft);
  line-height: 1.78;
  font-size: 14px;
}

.representative-meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(190, 215, 226, 0.10);
}

.representative-meta span {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1280px) {
  .representative-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .representative-grid {
    grid-template-columns: 1fr;
  }
}


/* === Topic overview + event detail split === */
.people-strip {
  overflow: visible;
  padding-top: 8px;
}

.person-card {
  overflow: visible;
}

.topic-overview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  padding: 34px 36px;
  border: 1px solid rgba(190, 215, 226, 0.10);
  border-radius: var(--radius);
  background:
    linear-gradient(112deg, rgba(8, 18, 26, 0.92), rgba(4, 11, 16, 0.88)),
    radial-gradient(circle at 84% 16%, rgba(107, 215, 228, 0.08), transparent 26%);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,0.03);
}

.topic-overview-hero h1 {
  margin: 8px 0 0;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.topic-overview-hero p {
  margin: 6px 0 0;
  max-width: 760px;
}

.overview-metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.project-board-expanded {
  gap: 18px;
}

.topic-overview-grid {
  gap: 20px;
}

.topic-overview-cards {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.overview-stage-column .stage-title {
  background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(107,215,228,0.03));
}

@media (max-width: 1100px) {
  .topic-overview-hero {
    grid-template-columns: 1fr;
  }
  .overview-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .overview-metrics-grid {
    grid-template-columns: 1fr;
  }
  .topic-overview-cards {
    grid-template-columns: 1fr;
  }
}


/* Homepage priority: project groups first, intro card becomes supporting context */
.homepage-priority {
  gap: 0;
}

.project-board--primary {
  padding: 20px;
}

.home-intro-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.9fr);
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid rgba(190, 215, 226, 0.08);
  border-radius: calc(var(--radius) + 2px);
  background:
    linear-gradient(180deg, rgba(8, 18, 26, 0.22), rgba(4, 11, 16, 0.14)),
    radial-gradient(circle at 100% 0, rgba(107, 215, 228, 0.045), transparent 32%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.home-intro-strip .intro-copy {
  display: grid;
  gap: 10px;
  align-content: start;
}

.home-intro-strip h1 {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.home-intro-strip p {
  margin: 0;
  max-width: 72ch;
  color: var(--muted);
  line-height: 1.72;
  font-size: 14px;
}

.home-intro-strip .hero-intel-strip {
  margin-top: 0;
  justify-content: flex-start;
}

.home-intro-strip .hero-actions {
  margin-top: 14px;
}

.home-intro-strip .intro-meta {
  display: grid;
  justify-items: end;
  gap: 12px;
  align-content: center;
}

.home-lower-grid {
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(360px, 0.92fr) minmax(0, 1.12fr);
  gap: 18px;
  align-items: start;
}

.home-lower-grid .hot-people-section,
.home-lower-grid .stats-board,
.home-lower-grid .signal-rank-panel {
  height: 100%;
}

@media (max-width: 1180px) {
  .home-lower-grid {
    grid-template-columns: 1fr;
  }

  .home-intro-strip {
    grid-template-columns: 1fr;
  }

  .home-intro-strip .intro-meta {
    justify-items: start;
  }
}

@media (max-width: 780px) {
  .home-intro-strip {
    padding: 16px;
  }

  .home-intro-strip h1 {
    max-width: none;
    font-size: clamp(22px, 7vw, 30px);
  }
}


.home-hotline-strip {
  gap: 14px;
  grid-template-columns: 1fr;
  align-items: stretch;
  overflow: hidden;
}

.home-hotline-strip .section-heading.compact {
  align-items: end;
}

.hotline-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 6%, black 94%, transparent 100%);
}

.hotline-track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: hotline-scroll var(--home-hotline-duration) linear infinite;
}

.hotline-marquee:hover .hotline-track {
  animation-play-state: paused;
}

.hotline-lane {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}

.ticker-topic-card {
  width: 320px;
  min-height: 220px;
  padding: 16px 16px 14px;
  border: 1px solid rgba(190, 215, 226, 0.1);
  border-radius: calc(var(--radius) + 2px);
  background:
    linear-gradient(180deg, rgba(8, 18, 26, 0.72), rgba(5, 14, 20, 0.55)),
    radial-gradient(circle at 100% 0, rgba(107, 215, 228, 0.06), transparent 32%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  display: grid;
  align-content: start;
  gap: 10px;
}

.ticker-topic-head,
.ticker-topic-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ticker-topic-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.24;
  letter-spacing: -0.02em;
  display: -webkit-box;
  height: calc(1.24em * 3);
  min-height: calc(1.24em * 3);
  max-height: calc(1.24em * 3);
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.ticker-topic-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.68;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 66px;
}

.ticker-topic-card .btn {
  justify-self: start;
  margin-top: 2px;
}

.ticker-topic-meta {
  color: var(--muted);
  font-size: 12px;
}

@keyframes hotline-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 7px)); }
}

@media (max-width: 920px) {
  .ticker-topic-card {
    width: 280px;
    min-height: 210px;
  }

}


@media (max-width: 960px) {
  .home-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .home-search-wrap {
    width: 100%;
    max-width: none;
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .search-shell {
    min-height: 52px;
    padding: 0 14px;
  }

  .home-search-input {
    padding-right: 92px;
    font-size: 0.94rem;
  }

  .search-hint {
    right: 10px;
    font-size: 0.7rem;
    padding: 0 8px;
  }

  .search-result-item {
    align-items: flex-start;
    flex-direction: column;
  }
}


.compact-topbar {
  gap: 20px;
}

.topbar-search-area {
  position: relative;
  flex: 1 1 560px;
  max-width: 760px;
  margin-left: auto;
}

.user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.topbar-admin-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  background: rgba(107, 215, 228, 0.08);
  color: rgba(237, 246, 248, 0.9);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

.topbar-admin-entry:hover,
.topbar-admin-entry:focus-visible {
  background: rgba(107, 215, 228, 0.14);
  color: var(--text);
}

.topbar-admin-entry.is-active {
  background: rgba(107, 215, 228, 0.16);
  color: var(--accent);
}

.user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 12px 6px 8px;
  border: 1px solid rgba(190, 215, 226, 0.14);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.user-trigger:hover,
.user-trigger:focus-visible {
  border-color: rgba(107, 215, 228, 0.24);
  background: rgba(107, 215, 228, 0.08);
  transform: none;
}

.market-topbar .user-menu {
  align-self: center;
}

.user-trigger-link {
  text-decoration: none;
}

.user-trigger-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.user-trigger-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.user-trigger-avatar-slot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.user-notification-badge {
  position: absolute;
  top: -8px;
  right: -9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 13px;
  height: 13px;
  padding: 0 2px;
  box-sizing: border-box;
  border-radius: 999px;
  background: #ff7b7b;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(11, 15, 19, 0.92);
}

.user-role-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(107, 215, 228, 0.12);
  color: var(--accent);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.user-trigger-button {
  font: inherit;
  text-align: left;
}

.user-trigger-button--guest {
  padding-right: 14px;
}

.user-avatar-mini {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(107, 215, 228, 0.1);
  color: var(--accent);
  font-weight: 900;
}

.user-avatar-mini--photo,
.user-avatar-mini--person {
  overflow: hidden;
}

.user-avatar-mini--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-avatar-mini--guest {
  position: relative;
  overflow: hidden;
  background: rgba(196, 212, 216, 0.1);
  color: rgba(196, 212, 216, 0.72);
}

.user-avatar-mini--guest::before,
.user-avatar-mini--guest::after {
  content: "";
  position: absolute;
  left: 50%;
  background: currentColor;
  transform: translateX(-50%);
}

.user-avatar-mini--guest::before {
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.user-avatar-mini--guest::after {
  bottom: 7px;
  width: 15px;
  height: 8px;
  border-radius: 999px 999px 7px 7px;
}

.user-avatar-mini--person {
  position: relative;
  background: var(--avatar-bg, rgba(88, 102, 116, 0.94));
  color: var(--avatar-fg, rgba(239, 246, 250, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.user-avatar-mini--person::before,
.user-avatar-mini--person::after {
  content: "";
  position: absolute;
  left: 50%;
  background: currentColor;
  transform: translateX(-50%);
}

.user-avatar-mini--person::before {
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.user-avatar-mini--person::after {
  bottom: 6px;
  width: 16px;
  height: 9px;
  border-radius: 999px 999px 7px 7px;
}

.user-trigger span:last-child {
  display: grid;
  gap: 2px;
  text-align: left;
}

.user-trigger small {
  color: var(--muted);
  font-size: 11px;
}

.topbar-language {
  position: relative;
  flex: 0 0 auto;
}

.topbar-language[open],
.topbar-language.is-open {
  z-index: 12;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(205, 218, 223, 0.74);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.topbar-language > .language-switch {
  list-style: none;
}

.topbar-language > .language-switch::-webkit-details-marker,
.topbar-language > .language-switch::marker {
  display: none;
  content: "";
}

.language-switch:hover,
.language-switch:focus-visible {
  color: rgba(237, 246, 248, 0.92);
  background: transparent;
  transform: none;
}

.language-switch .language-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
}

.language-switch .language-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.language-switch .language-code {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5ch;
  min-width: 2.5ch;
  color: transparent;
  font-size: 0;
  line-height: 0;
  letter-spacing: 0.04em;
}

.language-switch .language-code::before {
  content: var(--boot-language-code, "ZH");
  display: block;
  width: 100%;
  color: rgba(237, 246, 248, 0.92);
  font-size: 11.5px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-align: center;
}

.language-switch .language-caret {
  color: rgba(184, 198, 204, 0.52);
  font-size: 10px;
  transform: translateY(-0.5px);
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: auto;
  display: grid;
  gap: 2px;
  min-width: 138px;
  padding: 6px;
  border-radius: 10px;
  background: rgba(10, 14, 18, 0.96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top left;
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1), visibility 220ms ease;
}

.language-dropdown[hidden] {
  display: grid !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-8px) scale(0.98) !important;
}

.topbar-language.is-open .language-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.topbar-language[open] .language-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.language-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(205, 218, 223, 0.76);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}

.language-option:hover,
.language-option:focus-visible {
  color: rgba(237, 246, 248, 0.92);
  background: rgba(107, 215, 228, 0.08);
}

.language-option.is-active {
  color: rgba(237, 246, 248, 0.92);
  background: rgba(255, 255, 255, 0.05);
}

.search-shell {
  box-shadow: none;
}

.search-shell::after {
  display: none;
}

.home-search-input {
  padding-right: 18px;
}

.search-result-item {
  text-decoration: none;
}

.search-result-action {
  color: rgba(237, 246, 248, 0.72);
  font-size: 0.82rem;
  white-space: nowrap;
}

.search-empty {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  color: var(--muted);
}

.search-hero {
  display: grid;
  gap: 20px;
  padding: 22px 0 8px;
}

.search-hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 2.4vw, 2.5rem);
}

.search-query-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(107, 215, 228, 0.08);
  border: 1px solid rgba(107, 215, 228, 0.14);
  color: var(--text);
}

.search-results-board {
  display: grid;
  gap: 22px;
}

.search-stage-group {
  display: grid;
  gap: 14px;
}

.search-stage-group .stage-topic-grid {
  gap: 16px;
}

.search-empty-state {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.02);
  color: var(--muted);
}

@media (max-width: 980px) {
  .compact-topbar {
    flex-wrap: wrap;
  }

  .topbar-search-area {
    order: 3;
    flex-basis: 100%;
    max-width: none;
    margin-left: 0;
  }
}


/* header refinement: compact search + hide closed search panel */
.compact-topbar {
  gap: 14px;
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.compact-topbar .brand {
  min-width: 172px;
}

.topbar-search-area {
  flex: 0 1 560px;
  max-width: 560px;
  margin-left: auto;
}

.compact-topbar .search-shell {
  height: 48px;
  min-height: 48px;
  padding: 0 10px 0 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(8, 18, 24, 0.88), rgba(6, 14, 20, 0.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.compact-topbar .home-search-input {
  height: 100%;
  padding: 0 2px 0 0;
  font-size: 0.92rem;
  line-height: 1.2;
}

.compact-topbar .user-trigger {
  height: 48px;
  min-height: 48px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.compact-topbar .home-search-input::placeholder {
  color: rgba(196, 212, 216, 0.56);
}

.topbar-search-area [data-search-results][hidden],
.topbar-search-area .search-results[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .compact-topbar {
    gap: 10px;
  }

  .topbar-search-area {
    flex: 1 1 100%;
    max-width: none;
  }
}


/* UI refinement: stabilize hot-event ticker hover and remove search focus inner rectangle */
.ticker-topic-card {
  transform: none !important;
}

.ticker-topic-card:hover,
.hotline-marquee .ticker-topic-card:hover,
.hotline-lane .ticker-topic-card:hover {
  transform: none !important;
}

.ticker-topic-card,
.ticker-topic-card * {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.compact-topbar .home-search-input,
.compact-topbar .home-search-input:focus,
.compact-topbar .home-search-input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: 0 !important;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.compact-topbar .search-shell:focus-within {
  box-shadow: none !important;
  border-color: rgba(190, 215, 226, 0.14);
}

.merged-background {
  margin-top: 0;
  margin-bottom: 20px;
}


/* header always visible */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}
.app-shell {
  padding-top: 86px;
}
@media (max-width: 980px) {
  .app-shell { padding-top: 118px; }
}

/* brand dropdown */
.brand-menu {
  position: relative;
  flex: 0 0 auto;
}
.brand-trigger {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}
.brand-trigger:focus,
.brand-trigger:focus-visible { box-shadow: none !important; }
.brand-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 180px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(190, 215, 226, 0.14);
  background: linear-gradient(180deg, rgba(8, 18, 24, 0.96), rgba(6, 14, 20, 0.96));
  box-shadow: 0 20px 60px rgba(0,0,0,0.36);
}
.brand-dropdown-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--text);
  background: rgba(255,255,255,0.02);
}
.brand-dropdown-link:hover {
  background: rgba(107, 215, 228, 0.08);
}

/* index sections without mother title */
.home-stage-grid {
  gap: 20px;
}
.home-stage-section {
  padding: 0;
}
.stage-title-with-action,
.search-stage-group .stage-title {
  padding: 14px 18px;
}
.stage-title-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-mini {
  min-height: 32px;
  padding: 6px 12px;
  font-size: 0.84rem;
  border-radius: 12px;
}
.search-stage-group .stage-topic-grid,
.topic-overview-grid .stage-topic-grid {
  padding: 0 18px 18px;
}

.stage-strip-shell {
  position: relative;
  margin: 0 0 18px;
  padding-top: 8px;
  overflow: visible;
}

.stage-strip-shell::before,
.stage-strip-shell::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 0;
  z-index: 3;
  width: 124px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.stage-strip-shell::before {
  left: 0;
  background: linear-gradient(90deg, rgba(5, 13, 18, 0.98) 0%, rgba(5, 13, 18, 0.94) 38%, rgba(5, 13, 18, 0) 100%);
}

.stage-strip-shell::after {
  right: 0;
  background: linear-gradient(270deg, rgba(5, 13, 18, 0.98) 0%, rgba(5, 13, 18, 0.94) 38%, rgba(5, 13, 18, 0) 100%);
}

.home-stage-section.has-left-control .stage-strip-shell::before,
.home-stage-section.has-right-control .stage-strip-shell::after {
  opacity: 1;
}

.stage-strip {
  padding: 8px 18px 10px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

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

.stage-scroll-control {
  --stage-arrow-width: 17px;
  --stage-arrow-height: 58px;
  --stage-arrow-tip-offset: 12px;
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: var(--stage-arrow-width);
  height: var(--stage-arrow-height);
  border: 0;
  border-radius: 0;
  background: rgba(237, 246, 248, 0.62);
  box-shadow: none;
  transform: translateY(-50%);
  opacity: 0.62;
  transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
}

.stage-scroll-control::before {
  content: none;
}

.stage-scroll-prev {
  left: var(--stage-arrow-tip-offset);
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

.stage-scroll-prev::before {
  content: none;
}

.stage-scroll-next {
  right: var(--stage-arrow-tip-offset);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.stage-scroll-next::before {
  content: none;
}

.stage-scroll-control:hover {
  opacity: 0.96;
  transform: translateY(-50%) scale(1.02);
  filter: drop-shadow(0 0 18px rgba(107, 215, 228, 0.28));
}

.stage-scroll-control.is-hidden {
  pointer-events: none;
  opacity: 0;
  transform: translateY(-50%) scale(0.96);
}

.home-stage-section .stage-topic-grid {
  display: flex;
  grid-template-columns: none;
  gap: 16px;
  width: max-content;
  padding: 0;
}

.home-stage-section .home-topic-card {
  width: min(340px, calc(100vw - 76px));
  min-width: min(340px, calc(100vw - 76px));
}

.home-stage-section .home-topic-card:hover {
  transform: translateY(-6px);
}

/* compact closest users marquee */
.closest-user-marquee {
  overflow: hidden;
  min-height: 416px;
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.closest-user-track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: closest-users-scroll var(--result-marquee-duration) linear infinite;
  will-change: transform;
}
.closest-user-lane {
  display: flex;
  gap: 14px;
}
.closest-user-marquee:hover .closest-user-track {
  animation-play-state: paused;
}
.compact-user-card {
  width: 306px;
  min-width: 306px;
  height: 388px;
  gap: 10px;
  padding: 16px;
  grid-template-rows: auto auto minmax(calc(1.55em * 3), auto) 26px auto minmax(96px, 1fr);
}
.compact-user-card p {
  font-size: 0.9rem;
  line-height: 1.55;
}

.compact-user-card .prediction-excerpt {
  display: -webkit-box;
  height: calc(1.55em * 3);
  min-height: calc(1.55em * 3);
  max-height: calc(1.55em * 3);
  overflow: hidden;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.text-toggle,
.text-toggle-spacer {
  justify-self: start;
  min-height: 26px;
}

.text-toggle {
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--accent);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
}

.text-toggle:hover,
.text-toggle:focus-visible {
  color: var(--text);
  box-shadow: none;
}

.text-toggle-spacer {
  display: block;
}

.compact-user-card .honor-mark {
  width: 34px;
  height: 34px;
  font-size: 0.84rem;
}

.compact-user-card .hit-reason {
  min-height: 96px;
}

.compact-user-card .hit-reason b {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.prediction-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 28px;
  pointer-events: none;
}

.prediction-modal.is-visible {
  pointer-events: auto;
}

.prediction-modal-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(1, 5, 8, 0.88);
  backdrop-filter: blur(0);
  transition: opacity 220ms linear, backdrop-filter 220ms linear;
}

.prediction-modal.is-visible .prediction-modal-backdrop {
  opacity: 1;
  backdrop-filter: blur(10px);
}

.prediction-modal-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  width: min(620px, 100%);
  max-height: min(78vh, 680px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(184, 216, 186, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(10, 22, 30, 0.98), rgba(5, 13, 18, 0.97)),
    radial-gradient(circle at 100% 0, rgba(184, 216, 186, 0.12), transparent 34%);
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255,255,255,0.04);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 220ms linear, transform 220ms linear;
}

.prediction-modal.is-visible .prediction-modal-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.prediction-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(190, 215, 226, 0.18);
  border-radius: var(--radius);
  color: var(--soft);
  background: rgba(255, 255, 255, 0.04);
  font-size: 20px;
  line-height: 1;
}

.prediction-modal-close:hover {
  color: var(--text);
  border-color: rgba(107, 215, 228, 0.28);
  background: rgba(107, 215, 228, 0.08);
}

.prediction-modal-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding-right: 42px;
}

.prediction-modal-head h3 {
  margin: 6px 0 0;
  font-size: clamp(24px, 4vw, 36px);
}

.prediction-modal-text {
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(190, 215, 226, 0.12);
  border-radius: var(--radius);
  color: var(--soft);
  background: rgba(255,255,255,0.03);
  line-height: 1.86;
}

.prediction-modal-meta {
  display: grid;
  grid-template-columns: 0.52fr 1fr;
  gap: 12px;
}

.prediction-modal-meta span {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(190, 215, 226, 0.12);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255,255,255,0.025);
}

.prediction-modal-meta b {
  color: var(--accent-2);
  line-height: 1.5;
}

.auth-modal-card {
  width: min(520px, 100%);
  gap: 16px;
  border: 0;
  background: #14181d;
  box-shadow: none;
  overflow: visible;
}

.prediction-modal.auth-modal {
  overflow-y: auto;
}

.auth-modal-head {
  grid-template-columns: minmax(0, 1fr);
}

.auth-modal-copy {
  margin: 0 0 14px;
  color: var(--soft);
  line-height: 1.7;
}

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

.auth-modal-method-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(33, 38, 44, 0.96);
  overflow: hidden;
}

.auth-modal-method-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 8px);
  border-radius: 999px;
  background: rgba(16, 21, 26, 0.98);
  pointer-events: none;
  transform: translateX(0);
  transition: transform 180ms linear;
  will-change: transform;
}

.auth-modal-method-tabs--phone .auth-modal-method-indicator {
  transform: translateX(calc(100% + 8px));
}

.auth-modal-method-tab {
  position: relative;
  z-index: 1;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--soft);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: color 180ms linear;
}

.auth-modal-method-tab:hover,
.auth-modal-method-tab:focus-visible {
  color: var(--text);
  outline: none;
}

.auth-modal-method-tab.is-active {
  color: var(--text);
}

.auth-modal-field {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-size: 13px;
}

.auth-modal-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-modal-inline-action {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(107, 215, 228, 0.92);
  font: inherit;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}

.auth-modal-inline-action:hover,
.auth-modal-inline-action:focus-visible {
  color: var(--accent);
  outline: none;
}

.auth-modal-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  color: var(--text);
  background: rgba(33, 38, 44, 0.96);
}

.auth-modal-field textarea {
  width: 100%;
  min-height: 118px;
  padding: 14px;
  border: 0;
  border-radius: 14px;
  color: var(--text);
  background: rgba(33, 38, 44, 0.96);
  resize: vertical;
}

.auth-modal-field input::placeholder {
  color: rgba(196, 212, 216, 0.46);
}

.auth-modal-field textarea::placeholder {
  color: rgba(196, 212, 216, 0.46);
}

.auth-modal-field select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  color: var(--text);
  background: rgba(33, 38, 44, 0.96);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.auth-modal-country-select {
  position: relative;
  z-index: 1;
}

.auth-modal-country-select.is-open {
  z-index: 12;
}

.auth-modal-country-trigger {
  width: 100%;
  min-height: 46px;
  padding: 0 12px 0 14px;
  border: 0;
  border-radius: 14px;
  color: var(--text);
  background: rgba(33, 38, 44, 0.96);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 4px;
  align-items: center;
  text-align: left;
}

.auth-modal-country-name,
.auth-modal-country-option-country {
  min-width: 0;
  color: var(--soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-modal-country-code,
.auth-modal-country-option-code {
  justify-self: end;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.auth-modal-country-caret {
  color: rgba(196, 212, 216, 0.58);
  transition: transform 180ms ease, color 180ms ease;
}

.auth-modal-country-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 16;
  width: 128px;
  max-width: min(128px, calc(100vw - 56px));
  max-height: 228px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(21, 25, 30, 0.98);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 180ms ease;
}

.auth-modal-country-select.is-open .auth-modal-country-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.auth-modal-country-select.is-open .auth-modal-country-caret {
  color: var(--text);
  transform: rotate(180deg);
}

.auth-modal-country-option {
  width: 100%;
  padding: 10px 9px;
  border: 0;
  border-radius: 12px;
  color: var(--text);
  background: transparent;
  display: grid;
  grid-template-columns: 24px 48px;
  justify-content: start;
  gap: 6px;
  align-items: center;
  text-align: left;
}

.auth-modal-country-option.is-selected {
  background: rgba(104, 211, 235, 0.12);
}

.auth-modal-field input:focus,
.auth-modal-field input:focus-visible,
.auth-modal-field textarea:focus,
.auth-modal-field textarea:focus-visible,
.auth-modal-field select:focus,
.auth-modal-field select:focus-visible,
.auth-modal-country-trigger:hover,
.auth-modal-country-trigger:focus,
.auth-modal-country-trigger:focus-visible,
.auth-modal-country-select.is-open .auth-modal-country-trigger {
  outline: none;
  box-shadow: none;
  background: rgba(39, 45, 52, 0.98);
}

.auth-modal-country-option:hover,
.auth-modal-country-option:focus,
.auth-modal-country-option:focus-visible {
  outline: none;
  box-shadow: none;
  background: rgba(39, 45, 52, 0.98);
}

.auth-modal .btn,
.auth-modal .btn.primary,
.auth-modal .btn.secondary {
  border: 0;
  box-shadow: none;
}

.auth-modal .btn.secondary {
  background: rgba(33, 38, 44, 0.96);
  color: var(--soft);
}

.auth-modal .btn.primary {
  border: 0;
  background: var(--accent);
  color: rgba(6, 10, 14, 0.96);
}

.auth-modal .auth-modal-register-action {
  color: var(--accent) !important;
}

.auth-modal .btn.secondary.auth-modal-register-action {
  color: var(--accent) !important;
}

.auth-modal .btn:hover,
.auth-modal .btn.primary:hover,
.auth-modal .btn.secondary:hover,
.auth-modal .btn:focus-visible,
.auth-modal .btn.primary:focus-visible,
.auth-modal .btn.secondary:focus-visible {
  border: 0;
  box-shadow: none;
}

.auth-modal .btn.secondary:hover,
.auth-modal .btn.secondary:focus-visible {
  background: rgba(39, 45, 52, 0.98);
  color: var(--soft);
}

.auth-modal .auth-modal-register-action:hover,
.auth-modal .auth-modal-register-action:focus-visible {
  background: rgba(39, 45, 52, 0.98);
  color: var(--accent);
}

.auth-modal .btn.primary:hover,
.auth-modal .btn.primary:focus-visible {
  background: var(--accent);
  color: rgba(6, 10, 14, 0.96);
}

.auth-modal .btn.secondary.account-delete-confirm-action {
  background: rgba(200, 92, 92, 0.14);
  color: #f0b1b1 !important;
}

.auth-modal .btn.secondary.account-delete-confirm-action:hover,
.auth-modal .btn.secondary.account-delete-confirm-action:focus-visible {
  background: rgba(200, 92, 92, 0.2);
  color: #f6c1c1 !important;
}

.auth-modal-error {
  margin: 0;
  padding: 11px 12px;
  border: 0;
  border-radius: 12px;
  color: #f1bab3;
  background: rgba(33, 38, 44, 0.96);
  line-height: 1.6;
}

.auth-modal-error-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

.auth-modal-error-list li {
  margin: 0;
}

.auth-modal-actions {
  justify-content: flex-end;
  margin-top: 2px;
}

.auth-modal .prediction-modal-close {
  top: 18px;
  right: 18px;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: rgba(196, 212, 216, 0.72);
  background: transparent;
  font-size: 18px;
  box-shadow: none;
}

.auth-modal .prediction-modal-close:hover,
.auth-modal .prediction-modal-close:focus-visible {
  color: var(--text);
  border: 0;
  background: transparent;
  transform: none;
  box-shadow: none;
}

.account-avatar-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  background: rgba(33, 38, 44, 0.96);
}

.account-avatar-stage--editor {
  --account-avatar-crop-size: 248px;
  grid-template-columns: var(--account-avatar-crop-size) 168px;
  align-items: stretch;
  column-gap: 24px;
}

.account-avatar-editor {
  display: grid;
  gap: 14px;
  min-width: 0;
  width: var(--account-avatar-crop-size);
}

.account-avatar-crop-shell {
  display: grid;
  justify-items: start;
  width: var(--account-avatar-crop-size);
}

.account-avatar-crop-viewport {
  position: relative;
  width: var(--account-avatar-crop-size);
  height: var(--account-avatar-crop-size);
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(24, 29, 35, 0.92) 0%, rgba(18, 22, 27, 0.98) 100%),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 10px,
      rgba(255, 255, 255, 0.01) 10px,
      rgba(255, 255, 255, 0.01) 20px
    );
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.account-avatar-crop-viewport--static {
  cursor: default;
}

.account-avatar-crop-viewport.is-dragging {
  cursor: grabbing;
}

.account-avatar-crop-image {
  position: absolute;
  max-width: none;
  max-height: none;
  user-select: none;
  -webkit-user-drag: none;
}

.account-avatar-crop-static-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.account-avatar-crop-static-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.account-avatar-crop-fallback.profile-avatar {
  width: 132px !important;
  min-width: 132px !important;
  max-width: 132px !important;
  height: 132px !important;
  min-height: 132px !important;
  max-height: 132px !important;
  align-self: center !important;
  justify-self: center !important;
}

.account-avatar-crop-ring {
  position: absolute;
  inset: 16px;
  border-radius: 28px;
  box-shadow:
    0 0 0 999px rgba(7, 11, 15, 0.36),
    inset 0 0 0 1px rgba(228, 238, 242, 0.18);
  pointer-events: none;
}

.account-avatar-zoom-row {
  display: block;
  width: var(--account-avatar-crop-size);
}

.account-avatar-zoom-row input[type="range"] {
  display: block;
  width: 100%;
  accent-color: var(--accent);
}

.account-avatar-zoom-row input[type="range"]:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.account-avatar-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: var(--account-avatar-crop-size);
  text-align: center;
}

.account-avatar-side-main,
.account-avatar-side-copy {
  display: grid;
  justify-items: center;
}

.account-avatar-side-main {
  gap: 12px;
}

.account-avatar-side-title {
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
}

.account-avatar-side-copy {
  gap: 8px;
  align-content: end;
}

.account-avatar-side-copy p {
  margin: 0;
  color: var(--soft);
  line-height: 1.65;
}

.account-avatar-preview-shell {
  display: grid;
  place-items: center;
}

.account-avatar-preview-shell--crop {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(18, 22, 27, 0.98);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.account-avatar-preview-canvas {
  display: block;
  width: 120px;
  height: 120px;
}

.account-avatar-preview--editor.profile-avatar {
  width: 120px !important;
  min-width: 120px !important;
  max-width: 120px !important;
  height: 120px !important;
  min-height: 120px !important;
  max-height: 120px !important;
  align-self: center !important;
  justify-self: center !important;
}

.account-avatar-preview.profile-avatar {
  width: 92px;
  height: 92px;
}

.account-avatar-copy {
  display: grid;
  gap: 8px;
}

.account-avatar-copy b {
  color: var(--text);
}

.account-avatar-copy p {
  margin: 0;
  color: var(--soft);
  line-height: 1.65;
}

.account-avatar-file-name {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  word-break: break-all;
}

.account-avatar-picker-row {
  justify-content: flex-start;
}

.auth-modal-display-field {
  gap: 10px;
}

.auth-modal-display-value {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--text);
  background: rgba(33, 38, 44, 0.96);
}

.auth-modal-phone-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.auth-modal-country-field {
  min-width: 0;
}

.account-security-modal-card {
  overflow: visible;
}

.auth-modal-inline-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.auth-modal-field--grow {
  min-width: 0;
}

.auth-modal-code-action {
  min-width: 128px;
  min-height: 46px;
}

.auth-modal-hint {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

body.has-prediction-modal {
  overflow: hidden;
}

@media (max-width: 720px) {
  .prediction-modal {
    padding: 18px;
  }

  .prediction-modal-head,
  .prediction-modal-meta {
    grid-template-columns: 1fr;
  }

  .prediction-modal-head {
    padding-right: 44px;
  }

  .account-avatar-stage {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .account-avatar-stage--editor {
    grid-template-columns: 1fr;
    row-gap: 18px;
  }

  .account-avatar-side {
    width: 100%;
    min-height: 0;
    justify-content: flex-start;
    gap: 16px;
    align-items: center;
    text-align: left;
  }

  .account-avatar-side-main,
  .account-avatar-side-copy {
    width: 100%;
    justify-items: center;
  }

  .auth-modal-inline-row {
    grid-template-columns: 1fr;
  }

  .auth-modal-phone-row {
    grid-template-columns: 1fr;
  }

  .auth-modal-code-action {
    width: 100%;
  }
}

/* stage overview cards */
.stage-page-hero {
  align-items: center;
}

@media (max-width: 980px) {
  .stage-title-with-action,
  .search-stage-group .stage-title {
    align-items: flex-start;
    flex-direction: column;
  }
  .stage-title-actions {
    width: 100%;
    justify-content: space-between;
  }
  .compact-user-card {
    width: 240px;
    min-width: 240px;
  }
}


/* refined brand dropdown animation */
.brand-dropdown {
  display: grid;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top left;
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1), visibility 220ms ease;
}
.brand-menu.is-open .brand-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.brand-dropdown[hidden] {
  display: grid !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-8px) scale(0.98) !important;
}
.brand-dropdown-link {
  transition: background-color 180ms ease, transform 200ms ease, border-color 180ms ease;
}
.brand-dropdown-link:hover {
  transform: translateX(2px);
}

.page-backbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-bottom: 8px;
  padding: 4px 2px 2px;
}
.btn.ghost-back {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(190, 215, 226, 0.14);
  background: rgba(255, 255, 255, 0.03);
}
.btn.ghost-back:hover {
  border-color: rgba(107, 215, 228, 0.28);
  background: rgba(107, 215, 228, 0.08);
}
.btn.ghost-back::before {
  content: "←";
  margin-right: 8px;
  font-size: 0.94rem;
}
@media (max-width: 860px) {
  .app-shell {
    padding-top: 80px;
  }
  .page-backbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@keyframes closest-users-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 9px)); }
}


.top-nav.compact-topbar {
  width: 100%;
}

/* Final layout alignment pass */
:root {
  --page-panel-gap: 16px;
  --page-backbar-gap: 22px;
  --page-backbar-height: 38px;
}

.layout {
  padding-top: 18px;
}

.page-backbar {
  margin-bottom: 2px;
  padding-top: 0;
}

body:not([data-page="index"]) .app-shell {
  padding-top: calc(64px + var(--page-backbar-gap));
}

body:not([data-page="index"]) .layout {
  padding-top: 0;
}

body:not([data-page="index"]) .content {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--page-backbar-gap);
}

body:not([data-page="index"]) .page-backbar {
  position: static;
  z-index: 49;
  width: auto;
  height: auto;
  margin-bottom: 0;
  padding: 0 2px;
  transform: none;
  pointer-events: none;
}

body:not([data-page="index"]) .page-backbar .btn {
  pointer-events: auto;
}

@media (max-width: 980px) {
  body:not([data-page="index"]) .app-shell {
    padding-top: calc(124px + var(--page-backbar-gap));
  }
}

:where([data-page="submit-step1"], [data-page="submit-step2"], [data-page="analysis"], [data-page="verified"]) .content {
  gap: var(--page-backbar-gap);
}

:where([data-page="submit-step1"], [data-page="submit-step2"], [data-page="analysis"], [data-page="verified"])
  :where(.submit-workbench, .submit-guide, .submit-step2-layout, .analysis-grid, .verification-grid, .comparison-grid, .match-panel, .verification-charts, .analysis-charts, .category-grid, .match-columns, .closest-user-grid) {
  gap: var(--page-panel-gap);
}

:where([data-page="submit-step1"], [data-page="submit-step2"], [data-page="analysis"], [data-page="verified"])
  :where(.analysis-panel, .chart-card, .system-view-card, .review-panel, .prediction-form, .form-card, .comparison-card, .closest-user-card, .match-detail) {
  gap: var(--page-panel-gap);
}

[data-page="stage"] .search-stage-group {
  gap: var(--page-panel-gap);
}

[data-page="stage"] .search-stage-group .stage-topic-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--page-panel-gap);
  padding: 0;
  justify-content: stretch;
}

[data-page="stage"] .stage-topic-grid > .home-topic-card {
  width: auto;
  max-width: none;
}

@media (max-width: 720px) {
  [data-page="stage"] .search-stage-group .stage-topic-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.accuracy-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(184, 216, 186, 0.2);
  border-radius: var(--radius);
  background: rgba(184, 216, 186, 0.045);
}

.accuracy-score span {
  color: var(--muted);
  font-size: 12px;
}

.accuracy-score b {
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}

.brand-trigger {
  transition: none;
}
.brand-menu.is-open .brand-trigger {
  transform: none;
}


/* logo menu refinement */
.brand-menu {
  position: relative;
  isolation: isolate;
}

.brand-trigger {
  transform: none !important;
}

.brand-dropdown {
  min-width: 164px;
  gap: 4px;
  padding: 6px;
  border-radius: 10px;
  border: 0;
  background: rgba(10, 14, 18, 0.96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.brand-dropdown-link {
  min-height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: rgba(205, 218, 223, 0.76);
  font-size: 12px;
  font-weight: 700;
}

.brand-dropdown-link:hover {
  background: rgba(107, 215, 228, 0.08);
  color: rgba(237, 246, 248, 0.92);
  transform: none;
}

.contact-card {
  max-width: 760px;
}

.brand-dropdown {
  min-width: 236px;
  gap: 5px;
  padding: 8px;
  border-radius: 10px;
}

.brand-dropdown-label {
  padding: 8px 10px 3px;
  color: rgba(184, 198, 204, 0.52);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.trust-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  min-height: 320px;
  padding: 32px;
  border: 1px solid rgba(190, 215, 226, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(112deg, rgba(7, 18, 25, 0.98), rgba(3, 8, 13, 0.92)),
    repeating-linear-gradient(90deg, rgba(226, 244, 249, 0.026) 0 1px, transparent 1px 42px),
    radial-gradient(circle at 82% 22%, rgba(107, 215, 228, 0.12), transparent 30%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.04);
}

.risk-hero {
  border-color: rgba(201, 184, 121, 0.24);
  background:
    linear-gradient(112deg, rgba(7, 18, 25, 0.98), rgba(3, 8, 13, 0.92)),
    repeating-linear-gradient(90deg, rgba(226, 244, 249, 0.024) 0 1px, transparent 1px 42px),
    radial-gradient(circle at 82% 22%, rgba(201, 184, 121, 0.12), transparent 30%);
}

.showcase-hero {
  align-items: center;
  min-height: 230px;
  border-color: rgba(184, 216, 186, 0.26);
  background:
    linear-gradient(112deg, rgba(7, 18, 25, 0.98), rgba(3, 8, 13, 0.92)),
    repeating-linear-gradient(90deg, rgba(226, 244, 249, 0.026) 0 1px, transparent 1px 42px),
    radial-gradient(circle at 82% 22%, rgba(184, 216, 186, 0.14), transparent 30%);
}

.trust-hero h1 {
  max-width: 900px;
  margin: 12px 0;
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1.06;
}

.trust-hero p {
  max-width: 800px;
  margin: 0;
  color: var(--muted);
  line-height: 1.78;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--page-panel-gap);
}

.trust-card {
  display: grid;
  gap: 12px;
  min-height: 240px;
  padding: 18px;
  border: 1px solid rgba(190, 215, 226, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(10, 22, 30, 0.78), rgba(5, 13, 18, 0.88)),
    radial-gradient(circle at 100% 0, rgba(107, 215, 228, 0.06), transparent 32%);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,0.03);
}

.trust-card h2,
.trust-card p {
  margin: 0;
}

.trust-card p {
  color: var(--muted);
  line-height: 1.76;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--page-panel-gap);
}

.showcase-card {
  display: grid;
  gap: 16px;
  min-height: 360px;
  padding: 22px;
  border: 1px solid rgba(184, 216, 186, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(10, 22, 30, 0.86), rgba(5, 13, 18, 0.92)),
    radial-gradient(circle at 100% 0, rgba(184, 216, 186, 0.10), transparent 34%);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,0.035);
}

.showcase-rank {
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid rgba(184, 216, 186, 0.30);
  border-radius: var(--radius);
  color: var(--accent-2);
  background: rgba(184, 216, 186, 0.055);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.showcase-card-head,
.showcase-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.showcase-card h2,
.showcase-card p {
  margin: 0;
}

.showcase-card h2 {
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.18;
}

.showcase-card p {
  color: var(--soft);
  line-height: 1.78;
}

.showcase-metrics {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.showcase-metrics span {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.showcase-metrics b {
  color: var(--accent-2);
  font-size: 18px;
}

@media (max-width: 1120px) {
  .trust-hero {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

@media (max-width: 720px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

/* Final spacing polish: keep the homepage lead strip and stage grids on one rhythm. */
:root {
  --home-topbar-height: 68px;
  --home-section-gap: 22px;
}

[data-page="index"] .app-shell {
  padding-top: var(--home-topbar-height);
}

[data-page="index"] .layout {
  padding-top: var(--home-section-gap);
}

[data-page="index"] .content {
  gap: var(--home-section-gap);
}

:where([data-page="submit-step1"], [data-page="analysis"], [data-page="verified"]) .merged-background {
  margin-bottom: 0;
}

:where([data-page="analysis"], [data-page="verified"]) .content > .button-row {
  margin-top: 0;
}

[data-page="stage"] .search-results-board,
[data-page="stage"] .search-stage-group {
  gap: var(--page-panel-gap);
}

[data-page="stage"] .search-stage-group .stage-topic-grid {
  align-items: stretch;
  grid-auto-rows: 1fr;
}

[data-page="stage"] .search-stage-group .home-topic-card {
  height: 100%;
  min-height: 368px;
}

[data-page="stage"] .search-stage-group .home-topic-card h3 {
  min-height: calc(1.34em * 3);
  max-height: calc(1.34em * 3);
}

[data-page="stage"] .search-stage-group .home-topic-card p {
  min-height: 4.86em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.stage-page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(190, 215, 226, 0.11);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(10, 22, 30, 0.62), rgba(5, 13, 18, 0.72)),
    radial-gradient(circle at 100% 0, rgba(107, 215, 228, 0.055), transparent 34%);
  color: var(--muted);
}

.stage-page-footer span {
  color: var(--soft);
  font-size: 13px;
}

.stage-pagination,
.stage-page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.stage-page-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(190, 215, 226, 0.14);
  border-radius: 10px;
  color: var(--soft);
  background: rgba(225, 244, 248, 0.028);
  font-size: 12px;
  font-weight: 900;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.stage-page-number:hover,
.stage-page-number.is-active {
  border-color: rgba(107, 215, 228, 0.36);
  color: var(--text);
  background: rgba(107, 215, 228, 0.09);
  transform: translateY(-1px);
}

.stage-pagination .is-disabled {
  pointer-events: none;
  opacity: 0.42;
}

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

@media (max-width: 980px) {
  [data-page="index"] .app-shell {
    padding-top: 124px;
  }
}

/* Right-rail product layout: contributor rank becomes a primary homepage surface. */
[data-page="index"] .home-command-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 380px);
  gap: var(--home-section-gap);
  align-items: start;
}

[data-page="index"] .home-main-flow,
[data-page="index"] .home-side-rail {
  display: grid;
  gap: var(--home-section-gap);
  min-width: 0;
}

[data-page="index"] .home-side-rail {
  position: sticky;
  top: 86px;
  align-self: start;
}

[data-page="index"] .home-side-rail .signal-rank-panel {
  border-color: rgba(184, 216, 186, 0.22);
  box-shadow: 0 24px 76px rgba(0, 0, 0, 0.3), 0 0 46px rgba(184, 216, 186, 0.045), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

[data-page="index"] .home-side-rail .stats-grid {
  grid-template-columns: 1fr;
}

/* Analysis page: keep evidence samples in the right column under the chart. */
[data-page="analysis"] .analysis-grid {
  align-items: start;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
}

[data-page="analysis"] .rank-panel {
  grid-column: 1;
  grid-row: 1;
}

[data-page="analysis"] .chart-panel {
  grid-column: 2;
  grid-row: 1;
}

[data-page="analysis"] .representative-panel {
  grid-column: 2;
  grid-row: 2;
}

[data-page="analysis"] .category-panel {
  grid-column: 1;
  grid-row: 2;
}

[data-page="analysis"] .representative-grid {
  grid-template-columns: 1fr;
}

[data-page="analysis"] .representative-card {
  min-height: 0;
}

@media (max-width: 1180px) {
  [data-page="index"] .home-command-layout,
  [data-page="analysis"] .analysis-grid {
    grid-template-columns: 1fr;
  }

  [data-page="index"] .home-side-rail {
    position: static;
    padding-left: 0;
    border-left: 0;
  }

  [data-page="analysis"] .rank-panel,
  [data-page="analysis"] .chart-panel,
  [data-page="analysis"] .representative-panel,
  [data-page="analysis"] .category-panel {
    grid-column: auto;
    grid-row: auto;
  }
}

/* Panel height harmonization: align paired modules without creating empty slabs. */
[data-page="analysis"] .analysis-grid {
  align-items: stretch;
}

[data-page="analysis"] :where(.rank-panel, .chart-panel, .representative-panel, .category-panel) {
  height: 100%;
}

[data-page="analysis"] .chart-panel {
  grid-template-rows: auto minmax(0, 1fr);
}

[data-page="analysis"] .analysis-charts,
[data-page="analysis"] .chart-card-single {
  height: 100%;
}

[data-page="analysis"] .chart-card-single {
  align-content: stretch;
  grid-template-rows: auto minmax(0, 1fr);
}

[data-page="analysis"] .analysis-bars {
  align-content: space-between;
  min-height: 100%;
}

[data-page="analysis"] .category-panel,
[data-page="analysis"] .representative-panel {
  grid-template-rows: auto minmax(0, 1fr);
}

[data-page="analysis"] .category-grid,
[data-page="analysis"] .representative-grid {
  height: 100%;
  grid-auto-rows: minmax(0, 1fr);
}

[data-page="analysis"] .category-card,
[data-page="analysis"] .representative-card {
  min-height: 0;
}

[data-page="analysis"] .representative-card {
  gap: 10px;
  padding: 14px;
}

[data-page="analysis"] .representative-card p {
  line-height: 1.62;
}

[data-page="analysis"] .representative-card .prediction-excerpt {
  display: -webkit-box;
  height: calc(1.62em * 3);
  min-height: calc(1.62em * 3);
  max-height: calc(1.62em * 3);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

[data-page="analysis"] .representative-meta {
  gap: 6px;
}

[data-page="submit-step1"] .submit-workbench {
  align-items: stretch;
}

[data-page="submit-step1"] .submit-guide,
[data-page="submit-step1"] .prediction-form {
  height: 100%;
}

[data-page="submit-step1"] .submit-guide {
  align-self: stretch;
  grid-template-rows: minmax(0, 1fr) auto;
}

[data-page="submit-step1"] .compact-prompt {
  grid-template-rows: auto auto minmax(0, 1fr);
}

[data-page="submit-step1"] .compact-prompt .prompt-box {
  max-height: none;
  min-height: 260px;
}

[data-page="submit-step1"] .submit-guide > .card {
  align-self: stretch;
}

[data-page="submit-step1"] .field-guide-list {
  gap: 10px;
}

[data-page="submit-step1"] .field-guide-list li {
  padding: 10px 12px;
}

[data-page="submit-step1"] #userPrompt {
  min-height: 126px;
}

[data-page="submit-step1"] #aiReasoning {
  min-height: 170px;
}

@media (max-width: 980px) {
  [data-page="submit-step1"] .submit-guide,
  [data-page="submit-step1"] .prediction-form {
    height: auto;
  }

  [data-page="submit-step1"] .submit-guide {
    grid-template-rows: auto;
  }

  [data-page="submit-step1"] .compact-prompt .prompt-box {
    max-height: 300px;
  }
}

/* Homepage stage rows: equalize module height and bottom rhythm across all three stages. */
[data-page="index"] .home-stage-section {
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 528px;
}

[data-page="index"] .home-stage-section .stage-strip-shell {
  display: grid;
  margin-bottom: 22px;
  padding-top: 8px;
}

[data-page="index"] .home-stage-section .stage-strip {
  display: grid;
  align-items: stretch;
}

[data-page="index"] .home-stage-section .home-topic-card {
  height: 422px;
  min-height: 422px;
  padding-bottom: 6px;
}

[data-page="index"] .home-stage-section .home-topic-card h3 {
  display: -webkit-box;
  min-height: calc(1.34em * 3);
  max-height: calc(1.34em * 3);
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

[data-page="index"] .home-stage-section .home-topic-card p {
  display: -webkit-box;
  min-height: calc(1.62em * 2);
  max-height: calc(1.62em * 2);
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

[data-page="index"] .home-stage-section .tag-row {
  min-height: 28px;
  max-height: 28px;
  overflow: hidden;
}

/* === UI system refactor: border detox and mature product hierarchy === */
:root {
  --line: rgba(190, 215, 226, 0.105);
  --line-soft: rgba(190, 215, 226, 0.07);
  --line-faint: rgba(190, 215, 226, 0.045);
  --surface-row: rgba(225, 244, 248, 0.026);
  --surface-row-hover: rgba(225, 244, 248, 0.045);
}

:where(
  .card,
  .form-card,
  .stage-column,
  .home-topic-card,
  .stats-board,
  .signal-rank-panel,
  .hot-people-section,
  .analysis-panel,
  .system-view-card,
  .comparison-card,
  .match-panel,
  .review-panel,
  .profile-records-panel,
  .profile-chart-panel,
  .admin-panel,
  .trust-hero,
  .trust-panel,
  .showcase-card
) {
  border-color: var(--line-soft);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.026);
}

:where(
  .topic-meta div,
  .stat-tile,
  .field-guide-list li,
  .review-item,
  .rank-row,
  .chart-card,
  .category-card,
  .representative-card,
  .signal-rank-row,
  .rank-metrics span,
  .rank-user-profile-grid span,
  .match-columns section,
  .analysis-summary div,
  .topic-summary div,
  .submit-topic-meta,
  .console-status
) {
  border-color: transparent;
  box-shadow: none;
}

.home-topic-card {
  border-color: rgba(190, 215, 226, 0.075);
  background:
    linear-gradient(180deg, rgba(11, 25, 34, 0.8), rgba(5, 13, 18, 0.86)),
    radial-gradient(circle at 100% 0, rgba(107, 215, 228, 0.045), transparent 28%);
}

.home-topic-card:hover,
.card:hover,
.category-card:hover,
.closest-user-card:hover,
.profile-record-card:hover {
  border-color: rgba(107, 215, 228, 0.22);
  box-shadow: 0 22px 68px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.036);
}

.topic-meta {
  gap: 0;
  border-top: 1px solid var(--line-faint);
  border-bottom: 1px solid var(--line-faint);
}

.topic-meta div {
  padding: 12px 10px;
  border-radius: 0;
  background: transparent;
}

.topic-meta div + div {
  border-left: 1px solid var(--line-faint);
}

.stat-tile {
  border-radius: 0;
  background: transparent;
  border-top: 1px solid var(--line-faint);
  padding: 13px 0 11px;
}

.stat-tile::after {
  display: none;
}

.signal-rank-row {
  position: relative;
  width: calc(100% + 20px);
  margin-inline: -10px;
  border-radius: 0;
  border-width: 0;
  border-top: 1px solid var(--line-faint);
  background: transparent;
  padding: 11px 10px;
  overflow: hidden;
  transition: none;
}

.signal-rank-row:first-child {
  border-top: 0;
}

.signal-rank-row:hover,
.signal-rank-row:focus-visible {
  background: transparent;
  border-top-color: var(--line-faint);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-left-color: transparent;
  transform: none;
}

.rank-index,
.signal-similarity,
.honor-mark {
  border-color: transparent;
  background: rgba(184, 216, 186, 0.055);
}

.rank-metrics span,
.rank-user-profile-grid span {
  border-radius: 0;
  background: transparent;
  padding: 2px 0;
}

.tag,
.status-pill {
  border-color: transparent;
  background: rgba(225, 244, 248, 0.04);
}

.tag {
  color: rgba(196, 212, 216, 0.84);
}

.tag-link:hover {
  border-color: transparent;
  background: rgba(107, 215, 228, 0.075);
  box-shadow: none;
}

.status-pill[data-status="收集中"],
.status-pill[data-status="开放"],
.status-pill[data-status="讨论中"],
.status-pill[data-status="开放提交"],
.status-pill[data-status="分析中"],
.status-pill[data-status="观点整理中"],
.status-pill[data-status="已封盘"],
.status-pill[data-status="待验证"],
.status-pill[data-status="草稿待发布"],
.status-pill[data-status="暂停"],
.status-pill[data-status="已验证"] {
  border-color: transparent;
}

.field-guide-list li,
.review-item {
  border-radius: 0;
  background: transparent;
  border-top: 1px solid var(--line-faint);
  padding-left: 0;
  padding-right: 0;
}

.rank-table,
.analysis-bars,
.category-grid,
.representative-grid,
.review-list {
  gap: 0;
}

.rank-row {
  border-radius: 0;
  border-width: 0;
  border-top: 1px solid var(--line-faint);
  background:
    linear-gradient(90deg, rgba(107, 215, 228, 0.026), transparent 42%);
  padding: 14px 0;
}

[data-page="analysis"] .rank-row:first-child,
[data-page="verified"] .rank-row:first-child {
  border-color: var(--line-soft);
  background:
    linear-gradient(90deg, rgba(107, 215, 228, 0.075), rgba(225, 244, 248, 0.018) 58%, transparent);
}

[data-page="analysis"] .rank-row strong,
[data-page="verified"] .rank-row strong {
  border-color: transparent;
  background: rgba(107, 215, 228, 0.055);
}

.chart-card,
.category-card,
.representative-card {
  border-radius: 0;
  background: transparent;
  border-width: 0;
  border-top: 1px solid var(--line-faint);
  padding-left: 0;
  padding-right: 0;
}

.category-card:first-child,
.representative-card:first-child,
.chart-card:first-child {
  border-top-color: transparent;
}

.category-count,
.representative-meta,
.hit-reason,
.showcase-metrics,
.topic-card-footer {
  border-top-color: var(--line-faint);
}

.comparison-card {
  border-color: var(--line-soft);
}

.comparison-card::before,
.home-topic-card::before,
.system-prompt-card::before,
.signal-rank-panel::before {
  opacity: 0.32;
}

.field select,
.field textarea,
.admin-form-grid input,
.admin-form-grid select,
.admin-form-grid textarea {
  border-color: rgba(190, 215, 226, 0.12);
  background: rgba(5, 12, 14, 0.68);
}

.field select:focus,
.field textarea:focus,
.admin-form-grid input:focus,
.admin-form-grid select:focus,
.admin-form-grid textarea:focus {
  border-color: rgba(107, 215, 228, 0.34);
}

.btn.secondary {
  border-color: transparent;
  background: rgba(225, 244, 248, 0.055);
}

.btn.secondary:hover {
  border-color: transparent;
  background: rgba(107, 215, 228, 0.11);
}

/* Shell alignment: keep the fixed top navigation locked to the same width system as page content. */
.top-nav,
.top-nav.compact-topbar,
.market-topbar {
  left: 0;
  right: 0;
  width: 100%;
  padding-left: var(--topbar-rail-left);
  padding-right: var(--topbar-rail-right);
  transform: none;
}

.top-nav::before,
.top-nav.compact-topbar::before,
.market-topbar::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  transform: none;
  background: inherit;
  box-shadow: inherit;
  backdrop-filter: inherit;
  -webkit-backdrop-filter: inherit;
  pointer-events: none;
  z-index: -1;
}

/* === Market-style architecture: denser event discovery, fewer containers, stronger data hierarchy === */
[data-page="index"] {
  --home-section-gap: 14px;
}

[data-page="index"] .layout {
  padding-top: 12px;
}

[data-page="index"] .home-command-layout {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 348px);
  gap: 14px;
}

[data-page="index"] .home-main-flow,
[data-page="index"] .home-side-rail {
  gap: 14px;
}

[data-page="index"] .home-intro-strip,
[data-page="index"] .stage-column,
[data-page="index"] .hot-people-section,
[data-page="index"] .signal-rank-panel,
[data-page="index"] .stats-board {
  border-color: rgba(190, 215, 226, 0.055);
  border-radius: 10px;
  background: rgba(7, 15, 21, 0.62);
  box-shadow: none;
}

[data-page="index"] .home-intro-strip,
[data-page="index"] .hot-people-section,
[data-page="index"] .signal-rank-panel,
[data-page="index"] .stats-board {
  padding: 14px;
}

[data-page="index"] .section-heading {
  min-height: 0;
  gap: 10px;
}

[data-page="index"] .section-heading h2 {
  margin-top: 3px;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

[data-page="index"] .eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
}

[data-page="index"] .hero-intel-strip {
  gap: 6px;
}

[data-page="index"] .hero-intel-strip span {
  min-height: 28px;
  padding: 6px 9px;
  border-color: rgba(190, 215, 226, 0.055);
  border-radius: 8px;
  background: rgba(225, 244, 248, 0.026);
  font-size: 11px;
}

[data-page="index"] .ticker-topic-card {
  width: 276px;
  min-height: 150px;
  padding: 12px;
  border-color: rgba(190, 215, 226, 0.055);
  border-radius: 10px;
  background: rgba(9, 19, 26, 0.7);
  gap: 8px;
}

[data-page="index"] .ticker-topic-card h3 {
  height: calc(1.25em * 2);
  min-height: calc(1.25em * 2);
  max-height: calc(1.25em * 2);
  font-size: 15px;
  line-height: 1.25;
  -webkit-line-clamp: 2;
}

[data-page="index"] .ticker-topic-card p {
  min-height: calc(1.5em * 2);
  max-height: calc(1.5em * 2);
  font-size: 12px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
}

[data-page="index"] .ticker-topic-card .tag-row,
[data-page="index"] .ticker-topic-card .btn {
  display: none;
}

[data-page="index"] .ticker-topic-meta {
  border-top: 1px solid var(--line-faint);
  padding-top: 8px;
}

[data-page="index"] .home-stage-grid {
  gap: 12px;
}

[data-page="index"] .home-stage-section {
  min-height: 354px;
  grid-template-rows: auto minmax(0, 1fr);
}

[data-page="index"] .stage-title-with-action {
  min-height: 44px;
  padding: 10px 14px;
}

[data-page="index"] .stage-title {
  border-bottom-color: rgba(190, 215, 226, 0.055);
  font-size: 12px;
}

[data-page="index"] .stage-title strong {
  width: auto;
  min-width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(107, 215, 228, 0.08);
  font-size: 12px;
}

[data-page="index"] .stage-strip-shell {
  margin-bottom: 10px;
  padding-top: 0;
}

[data-page="index"] .stage-strip {
  padding: 10px 14px 12px;
}

[data-page="index"] .home-stage-section .stage-topic-grid {
  gap: 10px;
}

[data-page="index"] .home-stage-section .home-topic-card {
  width: min(290px, calc(100vw - 76px));
  min-width: min(290px, calc(100vw - 76px));
  height: 276px;
  min-height: 276px;
}

.market-signal-card.home-topic-card {
  grid-template-rows: auto auto 1fr auto;
  gap: 9px;
  padding: 13px 13px 10px;
  border: 0;
  border-radius: 10px;
  background: rgba(8, 18, 25, 0.72);
  box-shadow: none;
}

.market-signal-card.home-topic-card::before {
  display: none;
}

.market-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.market-card-head h3 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.28;
  display: -webkit-box;
  min-height: calc(1.28em * 3);
  max-height: calc(1.28em * 3);
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.market-consensus {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 1px;
  min-width: 48px;
}

.market-consensus b {
  color: var(--accent-2);
  font-size: 21px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.market-consensus span {
  color: var(--muted);
  font-size: 10px;
}

.market-signal-card .tag-row {
  gap: 5px;
  min-height: 24px;
  max-height: 24px;
}

.market-signal-card .tag,
.market-signal-card .status-pill {
  min-height: 22px;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.market-signal-card p {
  font-size: 12px;
  line-height: 1.48;
  display: -webkit-box;
  min-height: calc(1.48em * 2);
  max-height: calc(1.48em * 2);
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.market-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.market-meta-primary {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  min-width: 0;
}

.market-meta-line b {
  color: var(--soft);
  font-weight: 800;
}

.market-card-action {
  margin-left: auto;
  flex: 0 0 auto;
}

.market-action-cluster {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  min-width: 0;
}

.market-action-cluster .market-countdown {
  flex: 0 0 auto;
  font-size: inherit;
  line-height: inherit;
}

.compact-signal-meter.signal-meter {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  font-size: 10px;
}

.compact-signal-meter.signal-meter .track {
  height: 5px;
}

.market-signal-card .topic-card-footer {
  min-height: 34px;
  padding-top: 0;
  border-top-color: transparent;
  font-size: 11px;
}

.market-signal-card .topic-card-footer .btn {
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
}

[data-page="index"] .home-side-rail {
  top: 78px;
}

[data-page="index"] .home-side-rail .hot-people-section {
  order: 2;
}

[data-page="index"] .home-side-rail .signal-rank-panel {
  order: 1;
}

[data-page="index"] .home-side-rail .stats-board {
  order: 3;
}

[data-page="index"] .home-side-rail .section-heading h2 {
  font-size: 20px;
}

[data-page="index"] .people-marquee {
  overflow: auto;
  max-height: 292px;
  padding: 0;
  mask-image: none;
  -webkit-mask-image: none;
  scrollbar-width: thin;
}

[data-page="index"] .people-track {
  display: block;
  width: auto;
  animation: none;
}

[data-page="index"] .people-lane {
  display: grid;
  gap: 0;
  padding: 0;
}

[data-page="index"] .people-lane[aria-hidden="true"] {
  display: none;
}

[data-page="index"] .person-card {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 0;
  padding: 10px 0;
  border-width: 0;
  border-top: 1px solid var(--line-faint);
  border-radius: 0;
  background: transparent;
  gap: 10px;
}

[data-page="index"] .person-card:first-child {
  border-top: 0;
}

[data-page="index"] .avatar-orbit {
  width: 32px;
  height: 32px;
  border: 0;
  background: rgba(12, 18, 24, 0.96);
}

[data-page="index"] .avatar-orbit span {
  width: 24px;
  height: 24px;
  font-size: 10px;
}

[data-page="index"] .avatar-orbit--photo img {
  width: 100%;
  height: 100%;
  object-position: center center;
}

[data-page="index"] .person-card strong {
  font-size: 13px;
}

[data-page="index"] .person-card small {
  grid-column: 2;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 11px;
}

[data-page="index"] .person-card em {
  grid-column: 3;
  grid-row: 1 / span 2;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 12px;
}

[data-page="index"] .rank-tabs {
  gap: 0;
  padding: 2px;
  border-color: rgba(190, 215, 226, 0.055);
  border-radius: 8px;
}

[data-page="index"] .rank-tab-indicator {
  top: 2px;
  bottom: 2px;
  border-radius: 6px;
}

[data-page="index"] .rank-tab {
  min-height: 28px;
  border-radius: 6px;
  font-size: 11px;
}

[data-page="index"] .signal-rank-list {
  gap: 0;
}

[data-page="index"] .signal-rank-row {
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 9px;
  padding-top: 10px;
  padding-bottom: 10px;
}

[data-page="index"] .rank-index {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 10px;
}

[data-page="index"] .rank-score b {
  font-size: 16px;
}

[data-page="index"] .rank-metrics {
  gap: 10px;
}

[data-page="index"] .rank-metrics span {
  padding: 0;
  font-size: 10px;
}

[data-page="index"] .stats-board {
  gap: 6px;
}

[data-page="index"] .stats-grid {
  gap: 0;
}

[data-page="index"] .stat-tile {
  padding: 10px 0;
}

[data-page="index"] .stat-tile span {
  font-size: 11px;
}

[data-page="index"] .stat-tile strong {
  font-size: 20px;
}

/* === Editorial market rebuild: Apple restraint + Polymarket density + CNN priority === */
body[data-page="index"] {
  background:
    linear-gradient(rgba(210, 230, 238, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(210, 230, 238, 0.014) 1px, transparent 1px),
    linear-gradient(180deg, #0b1015 0%, #080d12 48%, #070b10 100%);
  background-size: 48px 48px, 48px 48px, auto;
}

body[data-page="index"]::before {
  opacity: 0.18;
}

body[data-page="index"] .app-shell {
  padding-top: 68px;
}

body[data-page="index"] .market-topbar {
  position: fixed;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(320px, 420px) auto auto;
  align-items: center;
  gap: 18px;
  min-height: 52px;
  padding-top: 7px;
  padding-bottom: 5px;
  border-bottom: 0;
  background: rgba(8, 11, 15, 0.84);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(18px);
}

body[data-page="index"] .top-nav {
  min-height: 56px;
  padding-top: 7px;
  padding-bottom: 7px;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(8, 11, 15, 0.92);
  backdrop-filter: blur(18px);
}

body[data-page="index"] .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: none;
}

body[data-page="index"] .brand-copy > span,
body[data-page="index"] .user-trigger small {
  display: none;
}

body[data-page="index"] .brand {
  min-width: auto;
  gap: 0;
}

body[data-page="index"] .brand strong,
body[data-page="index"] .user-trigger strong {
  font-size: 13px;
}

body[data-page="index"] .brand .brand-wordmark {
  font-size: 18.5px;
}

body[data-page="index"] .market-topbar .brand > span {
  display: block;
  margin-top: 0;
}

body[data-page="index"] .market-topbar .brand .brand-copy > span {
  display: none;
}

body[data-page="index"] .market-topbar .search-shell,
body[data-page="index"] .market-topbar .user-trigger,
body[data-page="index"] .compact-topbar .search-shell,
body[data-page="index"] .compact-topbar .user-trigger {
  height: 34px;
  min-height: 34px;
  border-radius: 9px;
}

body[data-page="index"] .market-topbar .search-shell,
body[data-page="index"] .market-topbar .search-shell:focus-within,
body[data-page="index"] .market-topbar .home-search-input,
body[data-page="index"] .market-topbar .home-search-input:focus,
body[data-page="index"] .market-topbar .home-search-input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

body[data-page="index"] .layout {
  padding-top: 8px;
}

.market-category-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 32px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  scrollbar-width: none;
}

.market-category-strip::-webkit-scrollbar {
  display: none;
}

.market-category-strip a {
  flex: 0 0 auto;
  color: rgba(196, 212, 216, 0.72);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.market-category-strip a:hover,
.market-category-strip a.is-active {
  color: var(--text);
}

body[data-page="index"] .market-topbar .brand-menu,
body[data-page="index"] .market-topbar .user-menu,
body[data-page="index"] .market-topbar .topbar-language {
  flex: 0 0 auto;
}

body[data-page="index"] .market-topbar .market-category-strip {
  min-width: 0;
  min-height: 32px;
  padding: 0 4px;
  border-bottom: 0;
  align-self: center;
}

body[data-page="index"] .market-topbar .market-category-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  white-space: nowrap;
}

body[data-page="index"] .market-topbar .topbar-search-area {
  flex: initial;
  max-width: none;
  margin-left: 0;
}

body[data-page="index"] .market-topbar .home-search-input {
  font-size: 13px;
}

body[data-page="index"] .market-topbar .search-shell {
  padding: 0 8px 0 12px;
}

body[data-page="index"] .market-topbar .home-search-input {
  padding: 0;
}

body[data-page="index"] .market-topbar .user-trigger {
  padding: 4px 0 4px 8px;
  border: 0;
  background: transparent;
}

body[data-page="index"] .market-topbar .topbar-language {
  align-self: center;
}

body[data-page="index"] .market-topbar .user-trigger:hover,
body[data-page="index"] .market-topbar .user-trigger:focus-visible {
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

@media (max-width: 1180px) {
  body[data-page="index"] .market-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    row-gap: 10px;
  }

  body[data-page="index"] .market-topbar .topbar-search-area {
    grid-column: 1 / -1;
    order: 5;
  }

  body[data-page="index"] .app-shell {
    padding-top: 108px;
  }

  [data-page="index"] .home-command-layout {
    grid-template-columns: 1fr;
  }

  [data-page="index"] .home-side-rail {
    position: static;
  }
}

body[data-page="index"] .home-command-layout {
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 20px;
}

body[data-page="index"] .home-main-flow,
body[data-page="index"] .home-side-rail {
  gap: 16px;
}

body[data-page="index"] .home-intro-strip,
body[data-page="index"] .market-board-section,
body[data-page="index"] .market-lead-layout,
body[data-page="index"] .hot-people-section,
body[data-page="index"] .signal-rank-panel,
body[data-page="index"] .stats-board {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="index"] .home-intro-strip {
  gap: 8px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

body[data-page="index"] .home-intro-strip .section-heading {
  display: flex;
}

body[data-page="index"] .home-intro-strip .section-heading.compact .eyebrow {
  display: block;
  margin-bottom: 8px;
}

body[data-page="index"] .home-intro-strip h2 {
  margin: 0;
  font-size: clamp(30px, 3.3vw, 48px);
  letter-spacing: -0.045em;
}

body[data-page="index"] .hero-intel-strip span {
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
}

body[data-page="index"] .hotline-marquee {
  mask-image: linear-gradient(to right, transparent 0, black 4%, black 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 4%, black 96%, transparent 100%);
}

body[data-page="index"] .hotline-track,
body[data-page="index"] .hotline-lane {
  gap: 8px;
}

body[data-page="index"] .ticker-topic-card {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: 390px;
  min-height: 44px;
  padding: 0 10px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  gap: 10px;
}

body[data-page="index"] .ticker-topic-card::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--danger);
}

body[data-page="index"] .ticker-topic-head {
  display: contents;
}

body[data-page="index"] .ticker-topic-card .eyebrow,
body[data-page="index"] .ticker-topic-card .status-pill,
body[data-page="index"] .ticker-topic-card p,
body[data-page="index"] .ticker-topic-card .tag-row,
body[data-page="index"] .ticker-topic-card .btn {
  display: none;
}

body[data-page="index"] .ticker-topic-card h3 {
  height: auto;
  min-height: 0;
  max-height: none;
  margin: 0;
  color: rgba(237, 246, 248, 0.86);
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: block;
}

body[data-page="index"] .ticker-topic-meta {
  border: 0;
  padding: 0;
  color: rgba(184, 216, 186, 0.9);
  font-size: 12px;
}

body[data-page="index"] .ticker-topic-meta span:first-child {
  display: none;
}

.market-lead-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 10px;
  align-items: start;
}

.lead-market-card {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  align-content: stretch;
  gap: 14px;
  min-height: 0;
  padding: 18px;
  border: 0;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
    rgba(14, 19, 25, 0.92);
  overflow: hidden;
}

.lead-market-meta,
.lead-market-actions,
.market-board-head,
.market-panel-title,
.market-briefing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lead-market-meta {
  color: var(--muted);
  min-height: 24px;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
}

.lead-market-body {
  display: grid;
  grid-template-columns: minmax(0, 604px) auto;
  gap: 10px;
  align-items: start;
  margin-top: 4px;
}

.lead-market-copy {
  min-width: 0;
  max-width: 604px;
}

.lead-market-body h2 {
  max-width: 604px;
  margin: 5px 0 0;
  font-size: clamp(26px, 2.68vw, 37px);
  line-height: 1.02;
  letter-spacing: -0.032em;
  display: -webkit-box;
  min-height: calc(1.02em * 3);
  max-height: calc(1.02em * 3);
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.lead-market-body p {
  max-width: 640px;
  margin: 2px 0 0;
  color: rgba(196, 212, 216, 0.74);
  font-size: 12.5px;
  line-height: 1.42;
  display: -webkit-box;
  min-height: calc(1.42em * 2);
  max-height: calc(1.42em * 2);
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.lead-market-price {
  display: grid;
  align-self: start;
  justify-items: end;
  gap: 0;
}

.lead-market-price b {
  color: var(--accent-2);
  font-size: clamp(38px, 4vw, 58px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}

.lead-market-price .metric-roll,
.lead-market-value .metric-roll {
  align-items: center;
  gap: 0.012em;
  line-height: 0.95;
  letter-spacing: -0.018em;
}

.lead-market-price .metric-digit,
.lead-market-value .metric-digit {
  width: 0.62em;
  height: 0.94em;
}

.lead-market-price .metric-digit-face,
.lead-market-value .metric-digit-face {
  height: 0.94em;
}

.lead-market-price .metric-separator,
.lead-market-value .metric-separator {
  align-items: center;
  padding: 0 0.01em 0 0.03em;
  transform: none;
}

.lead-market-price > span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.lead-market-visual {
  position: relative;
  min-height: 72px;
  height: 100%;
  align-self: stretch;
  margin: 0;
  overflow: hidden;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.016);
}

.lead-market-visual img,
.lead-market-visual [data-lead-visual] {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.lead-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lead-line-main {
  stroke: rgba(107, 215, 228, 0.95);
}

.lead-line-alt {
  stroke: rgba(201, 184, 121, 0.8);
}

.lead-market-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12.5px;
  min-height: 40px;
  padding-top: 0;
  border-top: 0;
}

.lead-market-action-meta,
.lead-market-countdown {
  display: inline-flex;
  align-items: center;
}

.lead-market-action-meta {
  gap: 6px;
  flex-wrap: wrap;
  min-height: 40px;
}

.lead-market-action-cluster {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  min-height: 40px;
}

.lead-market-countdown {
  gap: 4px;
  min-height: 40px;
}

.lead-market-action-cluster .lead-market-countdown:empty {
  display: none;
}

.lead-market-participants {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(237, 246, 248, 0.86);
  font-size: 12.8px;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  min-height: 40px;
}

.lead-market-participants-label,
.lead-market-participants-divider,
.lead-market-countdown-label {
  display: inline-flex;
  align-items: center;
}

.lead-market-participants-label {
  display: inline-block;
  color: var(--muted);
  font-size: 0.92em;
  font-weight: 700;
  line-height: 1;
  vertical-align: baseline;
  transform: translateY(-1px);
}

.lead-market-participants-divider {
  color: rgba(196, 212, 216, 0.48);
}

.lead-market-participants .lead-roll-slot--participants,
.lead-market-participants .lead-roll-item--metric,
.lead-market-participants .metric-roll,
.lead-market-participants .metric-digit,
.lead-market-participants .metric-char,
.lead-market-participants .metric-digit-face,
.lead-market-participants .metric-separator {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 1em;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}

.lead-market-participants .lead-roll-slot--participants {
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
  vertical-align: baseline;
  transform: translate(3px, -2px);
}

.lead-market-participants .metric-roll {
  gap: 0.01em;
  align-items: baseline;
  line-height: 1;
}

.lead-market-participants .metric-digit {
  width: 0.6em;
  height: 1em;
  -webkit-mask-image: none;
  mask-image: none;
}

.lead-market-participants .metric-digit-face {
  justify-content: center;
  height: 1em;
  line-height: 1;
}

.lead-market-participants .metric-separator {
  align-items: center;
  padding: 0 0.03em 0 0.015em;
  transform: translateY(0.01em);
}

.market-briefing-panel {
  width: 100%;
  margin-left: 0;
  padding: 8px 20px 0 8px;
  border-left: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  height: auto;
}

.market-panel-title {
  min-height: auto;
  padding-bottom: 8px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 900;
  flex: 0 0 auto;
}

.market-panel-title a {
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
}

.market-briefing-list {
  display: grid;
  grid-auto-rows: auto;
  align-content: start;
  flex: 0 0 auto;
  gap: 3px;
}

.market-briefing-row {
  min-height: 62px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  position: relative;
  isolation: isolate;
  overflow: visible;
  color: inherit;
  text-decoration: none;
}

.market-briefing-row::before {
  content: "";
  position: absolute;
  top: 7px;
  right: -6px;
  bottom: 4px;
  left: -6px;
  border-radius: 8px;
  clip-path: inset(0 100% 0 0 round 8px);
  opacity: 0;
  background:
    linear-gradient(90deg, rgba(107, 215, 228, 0.16) 0%, rgba(107, 215, 228, 0.08) 62%, rgba(107, 215, 228, 0.025) 100%);
  z-index: 0;
  will-change: opacity, clip-path;
  transition: opacity 240ms linear;
}

.market-briefing-row > * {
  position: relative;
  z-index: 1;
}

.market-briefing-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.market-briefing-row strong {
  min-width: 0;
  color: rgba(237, 246, 248, 0.88);
  font-size: 13px;
  line-height: 1.36;
}

.market-briefing-row b {
  color: var(--accent-2);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.market-board-section {
  display: grid;
  gap: 10px;
}

.market-board-head {
  min-height: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.market-board-head h2 {
  margin: 2px 0 0;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.market-board-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.dense-market-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.dense-market-grid .market-signal-card.home-topic-card {
  height: 190px;
  min-height: 190px;
  padding: 10px;
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(18, 24, 31, 0.82);
}

.dense-market-grid .market-card-head {
  grid-template-columns: minmax(0, 1fr) 42px;
}

.dense-market-grid .market-card-head h3 {
  display: -webkit-box;
  min-height: calc(1.25em * 2);
  max-height: calc(1.25em * 2);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.dense-market-grid .market-consensus b {
  font-size: 18px;
}

.dense-market-grid .market-signal-card .tag-row {
  min-height: 22px;
  max-height: 22px;
  overflow: hidden;
}

.dense-market-grid .market-signal-card .tag:not(.status-pill):nth-of-type(n+3) {
  display: none;
}

.dense-market-grid .market-signal-card p {
  display: -webkit-box;
  min-height: calc(1.38em * 2);
  max-height: calc(1.38em * 2);
  overflow: hidden;
  font-size: 11px;
  line-height: 1.38;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.dense-market-grid .market-meta-line {
  gap: 8px;
  padding-top: 6px;
  font-size: 10px;
}

.dense-market-grid .market-meta-line span:last-child {
  display: inline-flex;
}

.dense-market-grid .compact-signal-meter.signal-meter {
  grid-template-columns: 32px minmax(0, 1fr);
}

.dense-market-grid .market-signal-card .topic-card-footer {
  min-height: 28px;
  padding-top: 5px;
}

.dense-market-grid .market-signal-card .topic-card-footer .btn {
  min-height: 26px;
  padding: 5px 8px;
  font-size: 11px;
}

body[data-page="index"] .home-side-rail {
  top: 66px;
  padding-left: 0;
  border-left: 0;
}

body[data-page="index"] .home-side-rail .signal-rank-panel,
body[data-page="index"] .home-side-rail .hot-people-section,
body[data-page="index"] .home-side-rail .stats-board {
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}

body[data-page="index"] .home-side-rail .section-heading {
  padding: 12px 0 8px;
}

body[data-page="index"] .home-side-rail .console-status {
  min-height: 24px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 0;
  background: transparent;
}

body[data-page="index"] .signal-rank-row {
  width: 100%;
  margin-inline: 0;
  padding-left: 0;
  padding-right: 0;
}

body[data-page="index"] .rank-tabs {
  border-radius: 999px;
}

body[data-page="index"] .person-card,
body[data-page="index"] .stat-tile {
  border-top-color: rgba(255, 255, 255, 0.065);
}

@media (max-width: 1320px) {
  .dense-market-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  body[data-page="index"] .home-command-layout,
  .market-lead-layout {
    grid-template-columns: 1fr;
  }

  .market-briefing-panel {
    width: auto;
    margin-left: 0;
    padding: 0;
    border-left: 0;
    border-right: 0;
  }

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

@media (max-width: 680px) {
  .dense-market-grid {
    grid-template-columns: 1fr;
  }

  .lead-market-body,
  .lead-market-actions {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .lead-market-actions {
    display: grid;
  }

}

/* === Minimal density pass: no background pattern, live time pressure, parallel boards === */
body[data-page="index"] {
  background: #080d12;
}

body[data-page="index"]::before {
  display: none;
}

body[data-page="index"]::after {
  opacity: 0.16;
}

.lead-market-chart {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.012));
}

.market-countdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(237, 246, 248, 0.88);
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  white-space: nowrap;
}

.market-countdown-label {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.84em;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.market-countdown.is-open {
  color: var(--signal-open);
}

.market-countdown.is-expired,
.market-countdown.is-resolved {
  color: rgba(196, 212, 216, 0.62);
  font-weight: 800;
}

.market-countdown.is-submitted {
  color: rgba(220, 229, 236, 0.78);
  font-weight: 800;
}

.lead-market-actions .market-countdown {
  color: var(--accent-2);
  font-size: 13px;
  line-height: 1;
  min-height: 40px;
}

.lead-market-actions .market-countdown[data-countdown],
.lead-market-actions .market-countdown.is-open {
  color: var(--signal-open);
}

.lead-market-actions .market-countdown[data-countdown] .lead-roll-slot--countdown,
.lead-market-actions .market-countdown[data-countdown] .lead-roll-item--countdown,
.lead-market-actions .market-countdown[data-countdown] .countdown-roll,
.lead-market-actions .market-countdown[data-countdown] .countdown-char,
.lead-market-actions .market-countdown[data-countdown] .countdown-digit-face,
.lead-market-actions .market-countdown[data-countdown] .countdown-separator {
  color: var(--signal-open);
}

.market-countdown[data-countdown] .countdown-roll {
  align-items: center;
  gap: 0.015em;
  line-height: 1.02;
}

.market-countdown[data-countdown] .lead-roll-slot--countdown,
.market-countdown[data-countdown] .lead-roll-item--countdown {
  overflow: visible;
  line-height: 1.02;
}

.market-countdown[data-countdown] .countdown-char {
  display: inline-flex;
  align-items: center;
}

.market-countdown[data-countdown] .countdown-digit {
  width: 0.6em;
  height: 1em;
}

.market-countdown[data-countdown] .countdown-digit-face {
  height: 1em;
}

.market-countdown[data-countdown] .countdown-separator {
  padding: 0 0.02em;
  height: 1em;
  line-height: 1;
  transform: translateY(-0.015em);
}

.ticker-topic-meta .market-countdown {
  color: rgba(201, 184, 121, 0.9);
}

.market-briefing-row .market-countdown {
  font-size: 12px;
}

.market-briefing-row .market-countdown[data-countdown] {
  color: var(--signal-open);
}

.market-briefing-row .market-countdown[data-countdown] .lead-roll-slot--countdown,
.market-briefing-row .market-countdown[data-countdown] .lead-roll-item--countdown,
.market-briefing-row .market-countdown[data-countdown] .countdown-roll,
.market-briefing-row .market-countdown[data-countdown] .countdown-char,
.market-briefing-row .market-countdown[data-countdown] .countdown-digit-face,
.market-briefing-row .market-countdown[data-countdown] .countdown-separator {
  color: var(--signal-open);
}

body[data-page="index"] .market-countdown[data-countdown] .countdown-roll {
  align-items: center;
  line-height: 1.04;
}

body[data-page="index"] .market-countdown[data-countdown] .lead-roll-slot--countdown,
body[data-page="index"] .market-countdown[data-countdown] .lead-roll-item--countdown {
  align-items: center;
  line-height: 1.04;
}

body[data-page="index"] .market-countdown[data-countdown] .countdown-digit {
  height: 1.06em;
  -webkit-mask-image: none;
  mask-image: none;
}

body[data-page="index"] .market-countdown[data-countdown] .countdown-digit-face {
  height: 1.06em;
  line-height: 1.04;
}

body[data-page="index"] .market-countdown[data-countdown] .countdown-separator {
  height: 1.06em;
  line-height: 1;
  transform: translateY(-0.015em);
}

body[data-page="index"] .market-briefing-row .market-countdown[data-countdown] .countdown-roll,
body[data-page="index"] .market-briefing-row .market-countdown[data-countdown] .metric-separator {
  align-items: center;
}

body[data-page="index"] .market-briefing-row .market-countdown[data-countdown] {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

body[data-page="index"] .market-briefing-row .market-countdown[data-countdown] .lead-roll-slot--countdown,
body[data-page="index"] .market-briefing-row .market-countdown[data-countdown] .lead-roll-item--countdown {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

body[data-page="index"] .market-briefing-row .market-countdown[data-countdown] .lead-roll-slot--countdown {
  transform: translateY(0.025em);
}

body[data-page="index"] .market-briefing-row .market-countdown[data-countdown] .countdown-separator {
  transform: none;
}

.lead-market-actions .market-countdown.is-open,
.market-briefing-row .market-countdown.is-open {
  color: var(--signal-open);
}

.lead-market-actions .market-countdown.is-expired,
.market-briefing-row .market-countdown.is-expired {
  color: var(--accent);
}

.lead-market-actions .market-countdown.is-resolved,
.market-briefing-row .market-countdown.is-resolved {
  color: var(--accent-2);
}

.lead-market-actions .market-countdown.is-submitted,
.market-briefing-row .market-countdown.is-submitted {
  color: rgba(220, 229, 236, 0.78);
}

.market-briefing-row .market-countdown.is-submitted.is-submitted-open {
  color: var(--signal-open);
}

.parallel-market-boards {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.parallel-market-boards .market-board-section {
  min-width: 0;
}

.parallel-market-boards .dense-market-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.parallel-market-boards .market-board-verified .market-signal-card.home-topic-card {
  background: rgba(16, 22, 28, 0.74);
}

@media (max-width: 1320px) {
  .parallel-market-boards {
    grid-template-columns: 1fr;
  }

  .parallel-market-boards .dense-market-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .parallel-market-boards .dense-market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .parallel-market-boards .dense-market-grid {
    grid-template-columns: 1fr;
  }
}

/* === Homepage UI QA pass: typography, geometry, spacing === */
body[data-page="index"] {
  color: rgba(237, 246, 248, 0.94);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body[data-page="index"] .top-nav {
  min-height: 60px;
  padding-top: 9px;
  padding-bottom: 9px;
}

body[data-page="index"] .brand {
  gap: 10px;
}

body[data-page="index"] .brand strong,
body[data-page="index"] .user-trigger strong {
  color: rgba(237, 246, 248, 0.92);
  font-size: 13.5px;
  letter-spacing: 0;
}

body[data-page="index"] .brand-mark {
  width: 32px;
  height: 32px;
  border-color: rgba(107, 215, 228, 0.22);
  border-radius: 7px;
}

body[data-page="index"] .compact-topbar .search-shell,
body[data-page="index"] .compact-topbar .user-trigger {
  height: 40px;
  min-height: 40px;
}

body[data-page="index"] .home-search-input {
  font-size: 13px;
}

.market-category-strip {
  min-height: 38px;
  gap: 22px;
}

.market-category-strip a {
  color: rgba(196, 212, 216, 0.76);
  font-size: 12.5px;
  line-height: 1;
}

body[data-page="index"] .home-command-layout {
  grid-template-columns: minmax(0, 1fr) 334px;
  gap: 22px;
}

body[data-page="index"] .home-main-flow,
body[data-page="index"] .home-side-rail {
  gap: 20px;
}

body[data-page="index"] .home-intro-strip {
  gap: 10px;
  padding-bottom: 12px;
}

body[data-page="index"] .home-intro-strip h2 {
  font-size: clamp(34px, 3vw, 46px);
  line-height: 0.98;
  letter-spacing: -0.038em;
}

body[data-page="index"] .eyebrow {
  color: rgba(107, 215, 228, 0.88);
  font-size: 10.5px;
  letter-spacing: 0.13em;
}

body[data-page="index"] .hero-intel-strip {
  gap: 14px;
}

body[data-page="index"] .hero-intel-strip span {
  color: rgba(196, 212, 216, 0.78);
  font-size: 12px;
}

body[data-page="index"] .ticker-topic-card {
  width: 430px;
  gap: 9px;
}

body[data-page="index"] .ticker-topic-card h3 {
  overflow: hidden;
  color: rgba(237, 246, 248, 0.9);
  font-size: 13.5px;
}

body[data-page="index"] .ticker-topic-meta {
  min-width: 72px;
  justify-content: flex-end;
  font-size: 12.5px;
}

.market-briefing-panel {
  padding-top: 8px;
  padding-left: 20px;
}

.market-panel-title {
  min-height: auto;
  padding-bottom: 8px;
  color: rgba(237, 246, 248, 0.86);
  font-size: 14.5px;
}

.market-briefing-row {
  min-height: 62px;
  padding: 8px 0;
}

.market-briefing-row strong {
  font-size: 13px;
  line-height: 1.36;
}

.market-briefing-row b {
  min-width: 66px;
  text-align: right;
  font-size: 13px;
}

.parallel-market-boards {
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.98fr);
  gap: 22px;
}

.market-board-head {
  min-height: 48px;
  margin-bottom: 2px;
  padding-bottom: 8px;
}

.market-board-head h2 {
  font-size: 23px;
  letter-spacing: -0.024em;
}

.market-board-actions {
  gap: 12px;
  font-size: 12.5px;
}

.market-board-actions .btn-mini {
  border: 0;
  box-shadow: none;
}

.parallel-market-boards .dense-market-grid {
  gap: 10px;
}

.dense-market-grid .market-signal-card.home-topic-card {
  height: 214px;
  min-height: 214px;
  padding: 12px 12px 11px;
  border-radius: 8px;
}

.dense-market-grid .market-card-head {
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 10px;
}

.dense-market-grid .market-card-head h3 {
  min-height: calc(1.3em * 3);
  max-height: calc(1.3em * 3);
  color: rgba(237, 246, 248, 0.92);
  font-size: 13.5px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  -webkit-line-clamp: 3;
}

.dense-market-grid .market-consensus b {
  font-size: 19px;
}

.dense-market-grid .market-consensus span {
  font-size: 9.5px;
}

.dense-market-grid .market-signal-card .tag,
.dense-market-grid .market-signal-card .status-pill {
  min-height: 20px;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 9.8px;
}

.dense-market-grid .market-signal-card p {
  min-height: calc(1.42em * 2);
  max-height: calc(1.42em * 2);
  color: rgba(196, 212, 216, 0.78);
  font-size: 11.5px;
  line-height: 1.42;
}

.dense-market-grid .market-meta-line {
  padding-top: 0;
  font-size: 10.8px;
}

.dense-market-grid .market-meta-primary > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dense-market-grid .market-action-cluster {
  gap: 8px;
}

.dense-market-grid .market-action-cluster .market-countdown {
  font-size: 10.6px;
}

.dense-market-grid .compact-signal-meter.signal-meter {
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 7px;
}

.dense-market-grid .compact-signal-meter.signal-meter .track {
  height: 4px;
}

.dense-market-grid .market-signal-card .market-card-action {
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 7px;
}

body[data-page="index"] .home-side-rail .section-heading h2 {
  color: rgba(237, 246, 248, 0.9);
  font-size: 22px;
  letter-spacing: -0.02em;
}

body[data-page="index"] .home-side-rail .section-heading {
  padding: 14px 0 10px;
}

body[data-page="index"] .signal-rank-row {
  grid-template-columns: 34px minmax(0, 1fr) 54px;
  min-height: 56px;
  gap: 10px;
  padding-top: 11px;
  padding-bottom: 11px;
}

body[data-page="index"] .signal-rank-row strong {
  color: rgba(237, 246, 248, 0.9);
  font-size: 13.5px;
}

body[data-page="index"] .signal-rank-row small,
body[data-page="index"] .rank-score > span,
body[data-page="index"] .rank-metrics span {
  font-size: 10.5px;
}

body[data-page="index"] .rank-score b {
  font-size: 17px;
}

body[data-page="index"] .rank-metrics {
  gap: 12px;
}

body[data-page="index"] .rank-metrics span {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body[data-page="index"] .rank-tabs {
  padding: 3px;
}

body[data-page="index"] .rank-tab {
  min-height: 30px;
}

body[data-page="index"] .person-card {
  min-height: 46px;
  padding: 11px 0;
}

body[data-page="index"] .person-card strong {
  font-size: 13.5px;
}

body[data-page="index"] .stat-tile strong {
  font-size: 21px;
}

@media (max-width: 1320px) {
  .parallel-market-boards {
    grid-template-columns: 1fr;
  }
}

/* Focus card action and interactive breaking list refinement */
.lead-market-slot {
  min-width: 0;
  position: relative;
  isolation: isolate;
  overflow: visible;
  perspective: 1400px;
  --lead-switch-duration: 760ms;
  --lead-switch-ease: cubic-bezier(0.2, 0.82, 0.22, 1);
  min-height: 0;
  align-self: start;
}

.lead-market-slot::before {
  content: none;
  display: none;
}

.lead-market-slot .lead-market-card {
  position: relative;
  z-index: 1;
  contain: layout paint;
  min-height: 0;
}

.lead-roll-slot {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
}

.lead-roll-slot--meta,
.lead-roll-slot--status,
.lead-roll-slot--eyebrow,
.lead-roll-slot--label,
.lead-roll-slot--cta,
.lead-roll-slot--action-meta,
.lead-roll-slot--countdown {
  display: inline-flex;
  align-items: center;
}

.lead-roll-slot--status,
.lead-roll-slot--label {
  justify-content: flex-end;
}

.lead-roll-slot--title,
.lead-roll-slot--summary,
.lead-roll-slot--value {
  display: block;
}

.lead-roll-item {
  position: relative;
  display: block;
  width: 100%;
  will-change: transform;
  transition: transform var(--lead-switch-duration) linear;
}

.lead-roll-item.is-current {
  z-index: 1;
}

.lead-roll-item.is-next,
.lead-roll-item.is-exiting {
  position: absolute;
  inset: 0;
}

.lead-roll-item.is-next {
  z-index: 2;
}

.lead-roll-item.is-entering.from-down {
  transform: translateY(108%);
}

.lead-roll-item.is-entering.from-up {
  transform: translateY(-108%);
}

.lead-roll-item.is-entering.is-animating {
  transform: translateY(0);
}

.lead-roll-item.is-exiting.is-animating.to-up {
  transform: translateY(-108%);
}

.lead-roll-item.is-exiting.is-animating.to-down {
  transform: translateY(108%);
}

.lead-roll-slot--status .lead-roll-item,
.lead-roll-slot--cta .lead-roll-item,
.lead-roll-slot--countdown .lead-roll-item,
.lead-roll-slot--participants .lead-roll-item {
  display: inline-flex;
  align-items: center;
  width: auto;
}

.lead-roll-slot--summary .lead-roll-item,
.lead-roll-slot--title .lead-roll-item {
  white-space: normal;
}

.lead-roll-slot--value .lead-roll-item {
  display: inline-flex;
  width: auto;
}

.lead-roll-slot--value,
.lead-roll-slot--countdown,
.lead-roll-slot--participants {
  display: inline-block;
  vertical-align: bottom;
}

.lead-roll-item--odometer {
  transition: none;
}

.lead-roll-item--odometer.is-entering.from-down,
.lead-roll-item--odometer.is-entering.from-up,
.lead-roll-item--odometer.is-entering.is-animating,
.lead-roll-item--odometer.is-exiting.is-animating.to-up,
.lead-roll-item--odometer.is-exiting.is-animating.to-down {
  transform: none;
}

.lead-roll-item--odometer.is-exiting.is-animating {
  opacity: 1;
}

.lead-roll-item--odometer .lead-odometer {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.02em;
  line-height: 1;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  font-variant-numeric: inherit;
}

.lead-roll-item--odometer .lead-odometer-digit {
  position: relative;
  width: 0.64em;
  height: 0.96em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.92) 14%, #000 28%, #000 72%, rgba(0, 0, 0, 0.92) 86%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.92) 14%, #000 28%, #000 72%, rgba(0, 0, 0, 0.92) 86%, transparent 100%);
}

.lead-roll-item--odometer .lead-odometer-wheel {
  display: flex;
  flex-direction: column;
  transform: translateY(calc((var(--digit-index) + 30) * -1em));
  will-change: transform;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  font-variant-numeric: inherit;
}

.lead-roll-item--odometer .lead-odometer-wheel span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1em;
  line-height: 1;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  font-variant-numeric: inherit;
}

.lead-roll-item--odometer .lead-odometer-symbol {
  display: inline-flex;
  align-items: flex-end;
  padding-left: 0.05em;
  will-change: transform;
  transition: transform var(--lead-switch-duration) linear;
}

.lead-roll-item--countdown {
  display: inline-flex;
  align-items: center;
  width: auto;
}

.lead-roll-item--metric {
  display: inline-flex;
  align-items: center;
  width: auto;
}

[data-topic-metric-slot],
[data-topic-metric-slot] .lead-roll-item--metric,
[data-topic-metric-slot] .metric-roll,
[data-topic-metric-slot] .metric-char,
[data-topic-metric-slot] .metric-digit,
[data-topic-metric-slot] .metric-digit-face,
[data-rank-metric-slot],
[data-rank-metric-slot] .lead-roll-item--metric,
[data-rank-metric-slot] .metric-roll,
[data-rank-metric-slot] .metric-char,
[data-rank-metric-slot] .metric-digit,
[data-rank-metric-slot] .metric-digit-face,
[data-rank-metric-slot] .metric-separator,
[data-topic-metric-slot] .metric-separator {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  font-variant-numeric: inherit;
}

.rank-score [data-rank-metric-slot],
.rank-metrics [data-rank-metric-slot] {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  vertical-align: baseline;
  font-size: 1em;
  font-weight: inherit;
}

.rank-score [data-rank-metric-slot] .lead-roll-item--metric,
.rank-score [data-rank-metric-slot] .metric-roll,
.rank-score [data-rank-metric-slot] .metric-char,
.rank-score [data-rank-metric-slot] .metric-digit,
.rank-score [data-rank-metric-slot] .metric-digit-face,
.rank-score [data-rank-metric-slot] .metric-separator,
.rank-metrics [data-rank-metric-slot] .lead-roll-item--metric,
.rank-metrics [data-rank-metric-slot] .metric-roll,
.rank-metrics [data-rank-metric-slot] .metric-char,
.rank-metrics [data-rank-metric-slot] .metric-digit,
.rank-metrics [data-rank-metric-slot] .metric-digit-face,
.rank-metrics [data-rank-metric-slot] .metric-separator {
  font-size: 1em;
  font-weight: inherit;
  line-height: inherit;
}

.rank-score [data-rank-metric-slot] .metric-roll,
.rank-metrics [data-rank-metric-slot] .metric-roll {
  align-items: center;
  gap: 0.015em;
}

.rank-score [data-rank-metric-slot] .metric-digit,
.rank-metrics [data-rank-metric-slot] .metric-digit {
  width: 0.62em;
  height: 1em;
  -webkit-mask-image: none;
  mask-image: none;
}

.rank-score [data-rank-metric-slot] .metric-digit-face,
.rank-metrics [data-rank-metric-slot] .metric-digit-face {
  height: 1em;
  align-items: center;
}

.rank-score [data-rank-metric-slot] .metric-separator,
.rank-metrics [data-rank-metric-slot] .metric-separator {
  align-items: center;
}

.market-consensus [data-topic-metric-slot],
.market-meta-primary [data-topic-metric-slot],
.showcase-metrics [data-topic-metric-slot],
.ticker-topic-meta [data-topic-metric-slot] {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  vertical-align: baseline;
  font-size: 1em;
  font-weight: inherit;
}

.market-consensus [data-topic-metric-slot][data-topic-metric="confidence"],
.showcase-metrics [data-topic-metric-slot][data-topic-metric="confidence"],
.ticker-topic-meta [data-topic-metric-slot][data-topic-metric="confidence"] {
  font-weight: 900;
}

.market-consensus [data-topic-metric-slot] .lead-roll-item--metric,
.market-consensus [data-topic-metric-slot] .metric-roll,
.market-consensus [data-topic-metric-slot] .metric-char,
.market-consensus [data-topic-metric-slot] .metric-digit,
.market-consensus [data-topic-metric-slot] .metric-digit-face,
.market-consensus [data-topic-metric-slot] .metric-separator,
.market-meta-primary [data-topic-metric-slot] .lead-roll-item--metric,
.market-meta-primary [data-topic-metric-slot] .metric-roll,
.market-meta-primary [data-topic-metric-slot] .metric-char,
.market-meta-primary [data-topic-metric-slot] .metric-digit,
.market-meta-primary [data-topic-metric-slot] .metric-digit-face,
.market-meta-primary [data-topic-metric-slot] .metric-separator,
.showcase-metrics [data-topic-metric-slot] .lead-roll-item--metric,
.showcase-metrics [data-topic-metric-slot] .metric-roll,
.showcase-metrics [data-topic-metric-slot] .metric-char,
.showcase-metrics [data-topic-metric-slot] .metric-digit,
.showcase-metrics [data-topic-metric-slot] .metric-digit-face,
.showcase-metrics [data-topic-metric-slot] .metric-separator,
.ticker-topic-meta [data-topic-metric-slot] .lead-roll-item--metric,
.ticker-topic-meta [data-topic-metric-slot] .metric-roll,
.ticker-topic-meta [data-topic-metric-slot] .metric-char,
.ticker-topic-meta [data-topic-metric-slot] .metric-digit,
.ticker-topic-meta [data-topic-metric-slot] .metric-digit-face,
.ticker-topic-meta [data-topic-metric-slot] .metric-separator {
  font-size: 1em;
  font-weight: inherit;
  line-height: inherit;
}

.market-consensus [data-topic-metric-slot][data-topic-metric="confidence"] .lead-roll-item--metric,
.market-consensus [data-topic-metric-slot][data-topic-metric="confidence"] .metric-roll,
.market-consensus [data-topic-metric-slot][data-topic-metric="confidence"] .metric-char,
.market-consensus [data-topic-metric-slot][data-topic-metric="confidence"] .metric-digit,
.market-consensus [data-topic-metric-slot][data-topic-metric="confidence"] .metric-digit-face,
.market-consensus [data-topic-metric-slot][data-topic-metric="confidence"] .metric-separator,
.showcase-metrics [data-topic-metric-slot][data-topic-metric="confidence"] .lead-roll-item--metric,
.showcase-metrics [data-topic-metric-slot][data-topic-metric="confidence"] .metric-roll,
.showcase-metrics [data-topic-metric-slot][data-topic-metric="confidence"] .metric-char,
.showcase-metrics [data-topic-metric-slot][data-topic-metric="confidence"] .metric-digit,
.showcase-metrics [data-topic-metric-slot][data-topic-metric="confidence"] .metric-digit-face,
.showcase-metrics [data-topic-metric-slot][data-topic-metric="confidence"] .metric-separator,
.ticker-topic-meta [data-topic-metric-slot][data-topic-metric="confidence"] .lead-roll-item--metric,
.ticker-topic-meta [data-topic-metric-slot][data-topic-metric="confidence"] .metric-roll,
.ticker-topic-meta [data-topic-metric-slot][data-topic-metric="confidence"] .metric-char,
.ticker-topic-meta [data-topic-metric-slot][data-topic-metric="confidence"] .metric-digit,
.ticker-topic-meta [data-topic-metric-slot][data-topic-metric="confidence"] .metric-digit-face,
.ticker-topic-meta [data-topic-metric-slot][data-topic-metric="confidence"] .metric-separator {
  font-weight: 900;
}

.market-consensus [data-topic-metric-slot] .metric-roll,
.market-meta-primary [data-topic-metric-slot] .metric-roll,
.showcase-metrics [data-topic-metric-slot] .metric-roll,
.ticker-topic-meta [data-topic-metric-slot] .metric-roll {
  align-items: center;
  gap: 0.015em;
}

.market-consensus [data-topic-metric-slot] .metric-digit,
.market-meta-primary [data-topic-metric-slot] .metric-digit,
.showcase-metrics [data-topic-metric-slot] .metric-digit,
.ticker-topic-meta [data-topic-metric-slot] .metric-digit {
  width: 0.62em;
  height: 1em;
  -webkit-mask-image: none;
  mask-image: none;
}

.market-consensus [data-topic-metric-slot] .metric-digit-face,
.market-meta-primary [data-topic-metric-slot] .metric-digit-face,
.showcase-metrics [data-topic-metric-slot] .metric-digit-face,
.ticker-topic-meta [data-topic-metric-slot] .metric-digit-face {
  height: 1em;
  align-items: center;
}

.market-consensus [data-topic-metric-slot] .metric-separator,
.market-meta-primary [data-topic-metric-slot] .metric-separator,
.showcase-metrics [data-topic-metric-slot] .metric-separator,
.ticker-topic-meta [data-topic-metric-slot] .metric-separator {
  align-items: center;
}

.metric-roll {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.01em;
  line-height: 1;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  font-variant-numeric: inherit;
}

.metric-char {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  font-variant-numeric: inherit;
}

.metric-char.is-leading-enter {
  opacity: 0;
  transform: translateX(-0.12em);
}

.metric-char.is-leading-enter-active {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 180ms linear, transform 180ms linear;
}

.metric-digit {
  position: relative;
  width: 0.64em;
  height: 0.96em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.92) 14%, #000 28%, #000 72%, rgba(0, 0, 0, 0.92) 86%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.92) 14%, #000 28%, #000 72%, rgba(0, 0, 0, 0.92) 86%, transparent 100%);
}

.metric-digit-face {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 1em;
  line-height: 1;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  font-variant-numeric: inherit;
}

.metric-digit-face.is-current {
  position: absolute;
  inset: 0;
}

.metric-digit-face.is-next {
  position: absolute;
  inset: 0;
}

.metric-digit-track {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.metric-digit-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1em;
  line-height: 1;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  font-variant-numeric: inherit;
}

.metric-separator {
  display: inline-flex;
  align-items: flex-end;
}

.countdown-roll {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.01em;
  line-height: 1;
  font-family: inherit;
  font-size: 1em;
  font-style: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  color: currentColor;
  font-variant-numeric: inherit;
}

.countdown-char {
  font-family: inherit;
  font-size: 1em;
  font-style: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  color: currentColor;
  font-variant-numeric: inherit;
}

.countdown-char.is-leading-enter {
  opacity: 0;
  transform: translateX(-0.12em);
}

.countdown-char.is-leading-enter-active {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 180ms linear, transform 180ms linear;
}

.countdown-digit {
  position: relative;
  width: 0.64em;
  height: 0.96em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.92) 14%, #000 28%, #000 72%, rgba(0, 0, 0, 0.92) 86%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.92) 14%, #000 28%, #000 72%, rgba(0, 0, 0, 0.92) 86%, transparent 100%);
}

.countdown-digit-face {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 1em;
  line-height: 1;
  font-family: inherit;
  font-size: 1em;
  font-style: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  color: currentColor;
  font-variant-numeric: inherit;
}

.countdown-digit-face.is-current {
  position: absolute;
  inset: 0;
}

.countdown-digit-face.is-next {
  position: absolute;
  inset: 0;
  transform: translateY(100%);
}

.countdown-digit.is-rolling .countdown-digit-face.is-current {
  transform: translateY(-100%);
  transition: transform 220ms linear;
}

.countdown-digit.is-rolling .countdown-digit-face.is-next {
  transform: translateY(0);
  transition: transform 220ms linear;
}

.countdown-separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.32em;
  height: 1em;
  line-height: 1;
  overflow: visible;
  text-indent: 0;
  white-space: nowrap;
  font-size: 0.92em;
  color: currentColor;
  transform: translateY(-0.015em);
  background: none;
}

.lead-roll-item--odometer.is-entering.from-down .lead-odometer-symbol {
  transform: translateY(108%);
}

.lead-roll-item--odometer.is-entering.from-up .lead-odometer-symbol {
  transform: translateY(-108%);
}

.lead-roll-item--odometer.is-entering.is-animating .lead-odometer-symbol {
  transform: translateY(0);
}

.lead-roll-item--odometer.is-exiting.is-animating.to-up .lead-odometer-symbol {
  transform: translateY(-108%);
}

.lead-roll-item--odometer.is-exiting.is-animating.to-down .lead-odometer-symbol {
  transform: translateY(108%);
}

.lead-roll-item--odometer.is-entering.from-down.is-animating .lead-odometer-wheel {
  animation: leadDigitWheelInFromDown var(--lead-switch-duration) linear both;
}

.lead-roll-item--odometer.is-entering.from-up.is-animating .lead-odometer-wheel {
  animation: leadDigitWheelInFromUp var(--lead-switch-duration) linear both;
}

.lead-roll-item--odometer.is-exiting.to-up.is-animating .lead-odometer-wheel {
  animation: leadDigitWheelOutToUp var(--lead-switch-duration) linear both;
}

.lead-roll-item--odometer.is-exiting.to-down.is-animating .lead-odometer-wheel {
  animation: leadDigitWheelOutToDown var(--lead-switch-duration) linear both;
}

@keyframes leadDigitWheelInFromDown {
  from { transform: translateY(calc((var(--digit-index) + 10) * -1em)); }
  to { transform: translateY(calc((var(--digit-index) + 30) * -1em)); }
}

@keyframes leadDigitWheelInFromUp {
  from { transform: translateY(calc((var(--digit-index) + 50) * -1em)); }
  to { transform: translateY(calc((var(--digit-index) + 30) * -1em)); }
}

@keyframes leadDigitWheelOutToUp {
  from { transform: translateY(calc((var(--digit-index) + 30) * -1em)); }
  to { transform: translateY(calc((var(--digit-index) + 40) * -1em)); }
}

@keyframes leadDigitWheelOutToDown {
  from { transform: translateY(calc((var(--digit-index) + 30) * -1em)); }
  to { transform: translateY(calc((var(--digit-index) + 20) * -1em)); }
}

.lead-market-actions .btn.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  top: -1px;
  height: 40px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 7px;
  color: rgba(6, 10, 14, 0.96);
  background: rgba(237, 246, 248, 0.045);
  box-shadow: none;
  font-size: 14px;
  line-height: 1;
}

.lead-market-actions .btn.primary:hover,
.lead-market-actions .btn.primary:focus-visible {
  border-color: transparent;
  color: rgba(6, 10, 14, 0.96);
  background: rgba(107, 215, 228, 0.075);
  transform: none;
}

.lead-market-actions .btn.primary[data-action-kind="predict"] {
  background: var(--signal-open);
}

.lead-market-actions .btn.primary[data-action-kind="predict"]:hover,
.lead-market-actions .btn.primary[data-action-kind="predict"]:focus-visible {
  background: color-mix(in srgb, var(--signal-open) 88%, white);
}

.lead-market-actions .btn.primary[data-action-kind="analysis"] {
  background: var(--accent);
}

.lead-market-actions .btn.primary[data-action-kind="analysis"]:hover,
.lead-market-actions .btn.primary[data-action-kind="analysis"]:focus-visible {
  background: color-mix(in srgb, var(--accent) 88%, white);
}

.lead-market-actions .btn.primary[data-action-kind="result"] {
  background: var(--accent-2);
}

.lead-market-actions .btn.primary[data-action-kind="result"]:hover,
.lead-market-actions .btn.primary[data-action-kind="result"]:focus-visible {
  background: color-mix(in srgb, var(--accent-2) 88%, white);
}

.lead-market-actions .btn.primary[data-action-kind="submitted-view"] {
  background: var(--signal-open);
}

.lead-market-actions .btn.primary[data-action-kind="submitted-view"]:hover,
.lead-market-actions .btn.primary[data-action-kind="submitted-view"]:focus-visible {
  background: color-mix(in srgb, var(--signal-open) 88%, white);
}

.market-briefing-row {
  width: 100%;
  min-height: 62px;
  padding: 8px 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  background: transparent;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.market-briefing-row strong {
  display: -webkit-box;
  font-size: 13px;
  line-height: 1.36;
  max-height: calc(1.36em * 2);
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  align-self: center;
}

.market-briefing-row b {
  min-width: 66px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  align-self: center;
  line-height: 1;
}

.market-briefing-row b > span,
.market-briefing-row b .market-countdown {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.market-briefing-row:hover,
.market-briefing-row:focus-visible,
.market-briefing-row.is-active {
  background: transparent;
}

.market-briefing-row--placeholder {
  cursor: default;
  pointer-events: none;
}

.market-briefing-row--placeholder strong,
.market-briefing-row--placeholder b {
  color: transparent;
}

.market-briefing-placeholder-line {
  display: block;
  width: min(72%, 186px);
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.market-briefing-placeholder-dot {
  display: inline-block;
  width: 36px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.market-briefing-row.is-active span,
.market-briefing-row.is-active strong,
.market-briefing-row.is-active b {
  color: rgba(237, 246, 248, 0.96);
}

.market-briefing-row.is-playing::before {
  opacity: 1;
  animation: breakingSignalProgress 7s linear forwards;
}

@keyframes breakingSignalProgress {
  from {
    clip-path: inset(0 100% 0 0 round 8px);
    opacity: 0;
  }

  4% {
    clip-path: inset(0 96% 0 0 round 8px);
    opacity: 1;
  }

  96% {
    clip-path: inset(0 4% 0 0 round 8px);
    opacity: 1;
  }

  to {
    clip-path: inset(0 0 0 0 round 8px);
    opacity: 0;
  }
}

/* Final restraint pass: prevent dense cards from clipping and neutralize flashy buttons globally. */
.dense-market-grid .market-signal-card.home-topic-card {
  grid-template-rows: auto auto auto auto;
  height: auto;
  min-height: 198px;
  gap: 8px;
}

.dense-market-grid .market-signal-card .topic-card-footer {
  align-self: end;
  padding-top: 8px;
}

.btn,
.btn.primary,
.btn.secondary {
  border: 1px solid rgba(237, 246, 248, 0.13);
  border-radius: 7px;
  color: rgba(237, 246, 248, 0.9);
  background: rgba(237, 246, 248, 0.045);
  box-shadow: none;
  font-weight: 800;
}

.btn.primary {
  border-color: rgba(107, 215, 228, 0.18);
  color: rgba(237, 246, 248, 0.94);
  background: rgba(107, 215, 228, 0.075);
}

.btn:hover,
.btn.primary:hover,
.btn.secondary:hover,
.btn:focus-visible,
.btn.primary:focus-visible,
.btn.secondary:focus-visible {
  border-color: rgba(107, 215, 228, 0.28);
  color: var(--text);
  background: rgba(107, 215, 228, 0.095);
  box-shadow: none;
  transform: none;
}

.btn[data-action-kind="predict"],
.btn[data-action-kind="analysis"],
.btn[data-action-kind="result"] {
  border: 0;
  box-shadow: none;
}

.btn[data-action-kind="predict"] {
  color: rgba(6, 10, 14, 0.96);
  background: var(--signal-open);
}

.btn[data-action-kind="predict"]:hover,
.btn[data-action-kind="predict"]:focus-visible {
  color: rgba(6, 10, 14, 0.96);
  border-color: transparent;
  background: color-mix(in srgb, var(--signal-open) 88%, white);
}

.btn[data-action-kind="result"] {
  color: rgba(6, 10, 14, 0.96);
  background: var(--accent-2);
}

.btn[data-action-kind="result"]:hover,
.btn[data-action-kind="result"]:focus-visible {
  color: rgba(6, 10, 14, 0.96);
  border-color: transparent;
  background: color-mix(in srgb, var(--accent-2) 88%, white);
}

.btn[data-action-kind="analysis"] {
  color: rgba(6, 10, 14, 0.96);
  background: var(--accent);
}

.btn[data-action-kind="analysis"]:hover,
.btn[data-action-kind="analysis"]:focus-visible {
  color: rgba(6, 10, 14, 0.96);
  border-color: transparent;
  background: color-mix(in srgb, var(--accent) 88%, white);
}

.market-card-action.is-submitted,
.btn[data-action-kind="submitted"] {
  color: rgba(220, 229, 236, 0.78);
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}

.market-card-action[data-action-kind="submitted-view"],
.lead-market-cta[data-action-kind="submitted-view"] {
  color: rgba(6, 10, 14, 0.96);
  background: var(--signal-open);
  border: 0;
  box-shadow: none;
  cursor: pointer;
  pointer-events: auto;
}

.market-card-action[data-action-kind="submitted-view"]:hover,
.market-card-action[data-action-kind="submitted-view"]:focus-visible,
.lead-market-cta[data-action-kind="submitted-view"]:hover,
.lead-market-cta[data-action-kind="submitted-view"]:focus-visible {
  color: rgba(6, 10, 14, 0.96);
  border-color: transparent;
  background: color-mix(in srgb, var(--signal-open) 88%, white);
}

.dense-market-grid .market-signal-card .topic-card-footer .btn {
  min-width: 42px;
  padding: 5px 10px;
}

.market-board-actions .btn.secondary.btn-mini {
  border: 0;
  box-shadow: none;
}

/* Homepage polish fixes: header alignment, rank tabs geometry, watchlist title, stats board edge */
body[data-page="index"] .rank-tabs {
  padding: 2px;
  border-radius: 8px;
  border: 0;
  background: rgba(255, 255, 255, 0.02);
}

body[data-page="index"] .rank-system-tabs {
  gap: 0;
  padding: 2px;
  margin-bottom: 8px;
  border-radius: 8px;
  border: 0;
  background: rgba(255, 255, 255, 0.02);
}

body[data-page="index"] .rank-tab {
  border-radius: 6px;
}

body[data-page="index"] .rank-user-modal .rank-user-profile-grid {
  gap: 18px;
}

body[data-page="index"] .rank-user-modal .rank-user-profile-grid span {
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body[data-page="index"] .home-side-rail .stats-board {
  border-top: 0;
  padding-top: 2px;
}

body[data-page="index"] .stats-grid {
  border-top: 1px solid rgba(255, 255, 255, 0.045);
}

body[data-page="index"] .stat-tile {
  border-top-color: rgba(255, 255, 255, 0.05);
}

/* Homepage signal strip + metrics panel refinement */
body[data-page="index"] .hero-intel-strip {
  justify-content: flex-end;
}

body[data-page="index"] .hero-intel-strip span {
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(196, 212, 216, 0.8);
  font-size: 11px;
}

body[data-page="index"] .hotline-track,
body[data-page="index"] .hotline-lane {
  align-items: center;
  gap: 10px;
}

body[data-page="index"] .ticker-topic-card {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: auto;
  max-width: 448px;
  min-height: 34px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  gap: 12px;
  overflow: visible;
}

body[data-page="index"] .ticker-topic-card::before {
  content: none;
  display: none;
}

body[data-page="index"] .ticker-topic-head,
body[data-page="index"] .ticker-topic-card p,
body[data-page="index"] .ticker-topic-card .tag-row,
body[data-page="index"] .ticker-topic-card .btn {
  display: none;
}

body[data-page="index"] .ticker-topic-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(196, 212, 216, 0.68);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

body[data-page="index"] .ticker-topic-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(107, 215, 228, 0.72);
  flex: 0 0 auto;
}

body[data-page="index"] .ticker-topic-card[data-market-status="开放提交"] .ticker-topic-status::before {
  background: var(--signal-open);
}

body[data-page="index"] .ticker-topic-card[data-market-status="已封盘"] .ticker-topic-status::before {
  background: var(--accent);
}

body[data-page="index"] .ticker-topic-card[data-market-status="已验证"] .ticker-topic-status::before {
  background: var(--accent-2);
}

body[data-page="index"] .ticker-topic-card h3 {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 312px;
  min-height: 0;
  max-height: none;
  margin: 0;
  overflow: hidden;
  color: rgba(237, 246, 248, 0.88);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body[data-page="index"] .ticker-topic-meta {
  flex: 0 0 auto;
  min-width: auto;
  border: 0;
  padding: 0;
}

body[data-page="index"] .ticker-topic-meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  height: auto;
  padding: 0 0 0 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: transparent;
  color: rgba(232, 223, 186, 0.9);
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

body[data-page="index"] .ticker-topic-card,
body[data-page="index"] .ticker-topic-card > *,
body[data-page="index"] .ticker-topic-card h3,
body[data-page="index"] .ticker-topic-meta,
body[data-page="index"] .ticker-topic-meta span {
  border-top: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
  text-decoration: none !important;
  text-shadow: none !important;
}

body[data-page="index"] .ticker-topic-card:hover h3,
body[data-page="index"] .ticker-topic-card:focus-visible h3 {
  color: rgba(237, 246, 248, 0.98);
}

body[data-page="index"] .home-intro-strip {
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

body[data-page="index"] .home-intro-strip .section-heading,
body[data-page="index"] .hotline-marquee {
  border-top: 0;
  border-bottom: 0;
  box-shadow: none;
}

body[data-page="index"] .hotline-marquee {
  min-height: 34px;
}

body[data-page="index"] .home-side-rail .stats-board {
  gap: 8px;
}

body[data-page="index"] .home-side-rail .stats-board .console-status {
  padding: 8px 0 9px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 0;
  background: transparent;
}

body[data-page="index"] .home-side-rail .stats-board .section-heading {
  padding: 6px 0 8px;
}

body[data-page="index"] .home-side-rail .stats-board .section-heading h2 {
  font-size: 22px;
}

body[data-page="index"] .stats-grid {
  border-top: 0;
  gap: 0;
}

body[data-page="index"] .stat-tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  min-height: 60px;
  padding: 12px 0 11px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

body[data-page="index"] .stat-tile::after {
  display: none;
}

body[data-page="index"] .stat-tile span {
  max-width: 148px;
  color: rgba(196, 212, 216, 0.78);
  font-size: 11px;
  line-height: 1.45;
}

body[data-page="index"] .stat-tile strong {
  margin: 0;
  color: rgba(237, 246, 248, 0.96);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  justify-self: end;
}

body[data-page="index"] .home-command-layout {
  row-gap: 18px;
}

body[data-page="index"] .home-main-flow {
  display: contents;
}

body[data-page="index"] .home-intro-strip {
  grid-column: 1 / -1;
}

body[data-page="index"] .home-dashboard {
  grid-column: 1 / 2;
}

body[data-page="index"] .home-side-rail {
  grid-column: 2 / 3;
  grid-row: 2;
  gap: 18px;
}

body[data-page="index"] .signal-rank-panel {
  display: block;
  height: auto !important;
  border-top: 0;
}

body[data-page="index"] .home-side-rail .signal-rank-panel {
  border-top: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

body[data-page="index"] .home-side-rail .hot-people-section,
body[data-page="index"] .home-side-rail .stats-board {
  border-top: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

body[data-page="index"] .signal-rank-panel::before {
  display: none;
}

body[data-page="index"] .signal-rank-list {
  overflow: visible;
  align-content: start;
  grid-template-rows: none;
}

body[data-page="index"] .signal-rank-row,
body[data-page="index"] .market-briefing-row {
  transition: transform 220ms linear;
}

body[data-page="index"] .signal-rank-row:hover,
body[data-page="index"] .signal-rank-row:focus-visible {
  transform: translateY(-1px);
}

body[data-page="index"] .market-briefing-row > * {
  transition: transform 260ms linear;
}

body[data-page="index"] .market-briefing-row:hover,
body[data-page="index"] .market-briefing-row:focus-visible {
  transform: none;
}

body[data-page="index"] .market-briefing-row.is-active {
  transform: none;
}

body[data-page="index"] .market-briefing-row:hover > *,
body[data-page="index"] .market-briefing-row:focus-visible > *,
body[data-page="index"] .market-briefing-row.is-active > * {
  transform: translateY(-1px);
}

body[data-page="index"] .hotline-marquee {
  width: 100%;
}

body[data-page="index"] .signal-rank-row {
  min-height: 0;
  padding-top: 8px;
  padding-bottom: 8px;
  align-content: center;
  cursor: default;
}

body[data-page="index"] .signal-rank-row strong {
  font-size: 13.5px;
}

body[data-page="index"] .signal-rank-row small,
body[data-page="index"] .rank-score > span,
body[data-page="index"] .rank-metrics span {
  font-size: 11px;
  line-height: 1.25;
}

body[data-page="index"] .rank-score b {
  font-size: 16px;
}

body[data-page="index"] .rank-index {
  width: 24px;
  height: 24px;
  font-size: 9px;
}

body[data-page="index"] .rank-tabs {
  margin-bottom: 2px;
}

body[data-page="index"] .people-marquee {
  display: grid;
  gap: 0;
  overflow: visible;
  max-height: none;
}

body[data-page="index"] .people-track,
body[data-page="index"] .people-lane {
  display: contents;
}

body[data-page="index"] .person-card {
  position: relative;
  padding: 12px 0;
  border-top: 0;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 220ms linear, transform 220ms linear;
}

body[data-page="index"] .person-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

body[data-page="index"] .person-card:hover,
body[data-page="index"] .person-card:focus-within {
  background: transparent;
  box-shadow: none;
  transform: translateY(-1px);
}

/* === Subpage architecture rebuild: align all inner pages to the homepage shell === */
body:not([data-page="index"]) .market-topbar.subpage-topbar {
  position: fixed;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(320px, 420px) auto auto;
  align-items: center;
  gap: 18px;
  min-height: 52px;
  padding-left: max(var(--shell-pad-x), calc((100vw - var(--shell-max-width)) / 2));
  padding-right: max(var(--shell-pad-x), calc((100vw - var(--shell-max-width)) / 2));
  padding-top: 7px;
  padding-bottom: 5px;
  border-bottom: 0;
  background: rgba(8, 11, 15, 0.84);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(18px);
}

body:not([data-page="index"]) {
  background:
    radial-gradient(circle at 78% 10%, rgba(73, 147, 186, 0.1), transparent 24%),
    radial-gradient(circle at 18% 82%, rgba(107, 215, 228, 0.045), transparent 28%),
    linear-gradient(180deg, rgba(9, 16, 22, 0.96), rgba(5, 10, 15, 0.98) 54%, rgba(8, 13, 18, 1)),
    #080d12;
  background-size: auto, auto, auto, auto;
}

body:not([data-page="index"])::before,
body:not([data-page="index"])::after {
  display: none;
}

body:not([data-page="index"]) .market-topbar.subpage-topbar .brand-menu,
body:not([data-page="index"]) .market-topbar.subpage-topbar .user-menu,
body:not([data-page="index"]) .market-topbar.subpage-topbar .topbar-language {
  flex: 0 0 auto;
}

body:not([data-page="index"]) .market-topbar.subpage-topbar .brand > span {
  display: block;
  margin-top: 0;
}

body:not([data-page="index"]) .market-topbar.subpage-topbar .brand .brand-copy > span {
  display: none;
}

body:not([data-page="index"]) .market-topbar.subpage-topbar .brand {
  min-width: auto;
  gap: 10px;
}

body:not([data-page="index"]) .market-topbar.subpage-topbar .brand strong,
body:not([data-page="index"]) .market-topbar.subpage-topbar .user-trigger strong {
  color: rgba(237, 246, 248, 0.92);
  font-size: 13.5px;
  letter-spacing: 0;
}

body:not([data-page="index"]) .market-topbar.subpage-topbar .brand .brand-wordmark {
  font-size: 18px;
}

body:not([data-page="index"]) .market-topbar.subpage-topbar .user-trigger small {
  display: none;
}

body:not([data-page="index"]) .market-topbar.subpage-topbar .brand-mark {
  width: 32px;
  height: 32px;
  border-color: rgba(107, 215, 228, 0.22);
  border-radius: 7px;
  box-shadow: none;
}

body:not([data-page="index"]) .market-topbar.subpage-topbar .market-category-strip {
  min-width: 0;
  min-height: 32px;
  padding: 0 4px;
  border-bottom: 0;
  align-self: center;
}

body:not([data-page="index"]) .market-topbar.subpage-topbar .market-category-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  white-space: nowrap;
}

body:not([data-page="index"]) .market-topbar.subpage-topbar .topbar-search-area {
  flex: initial;
  max-width: none;
  margin-left: 0;
}

body:not([data-page="index"]) .market-topbar.subpage-topbar .search-shell,
body:not([data-page="index"]) .market-topbar.subpage-topbar .user-trigger {
  height: 34px;
  min-height: 34px;
  border-radius: 9px;
}

body:not([data-page="index"]) .market-topbar.subpage-topbar .search-shell,
body:not([data-page="index"]) .market-topbar.subpage-topbar .search-shell:focus-within,
body:not([data-page="index"]) .market-topbar.subpage-topbar .home-search-input,
body:not([data-page="index"]) .market-topbar.subpage-topbar .home-search-input:focus,
body:not([data-page="index"]) .market-topbar.subpage-topbar .home-search-input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

body:not([data-page="index"]) .market-topbar.subpage-topbar .home-search-input {
  font-size: 13px;
}

body:not([data-page="index"]) .market-topbar.subpage-topbar .search-shell {
  padding: 0 8px 0 12px;
}

body:not([data-page="index"]) .market-topbar.subpage-topbar .home-search-input {
  padding: 0;
}

body:not([data-page="index"]) .market-topbar.subpage-topbar .user-trigger {
  padding: 4px 0 4px 8px;
  border: 0;
  background: transparent;
}

body:not([data-page="index"]) .market-topbar.subpage-topbar .topbar-language {
  align-self: center;
}

/* verified background visual final size lock */
body[data-page="verified"] .analysis-panel.verified-background-panel .topic-background-visual-wrap,
body[data-page="verified"] .verified-background-panel .topic-background-visual-wrap {
  min-height: 400px !important;
  height: 400px !important;
  max-height: 400px !important;
  margin-top: 14px !important;
  flex: 0 0 auto !important;
  align-self: auto !important;
  display: block !important;
  overflow: hidden !important;
  border-radius: 14px !important;
}

body[data-page="verified"] .analysis-panel.verified-background-panel .topic-background-visual,
body[data-page="verified"] .verified-background-panel .topic-background-visual {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* submit-step1 final hard override at file end */
body[data-page="submit-step1"] .submit-focus-grid {
  margin-top: 22px !important;
  gap: 34px !important;
}

body[data-page="submit-step1"] .submit-predict-panel {
  margin-left: 40px !important;
}

body[data-page="submit-step1"] .submit-predict-panel [data-field-wrap]:has(#aiModel) {
  margin-top: 8px !important;
}

body[data-page="submit-step1"] form.submit-predict-panel.prediction-form .submit-prompt-editor,
body[data-page="submit-step1"] .submit-predict-panel .submit-prompt-editor,
body[data-page="submit-step1"] .prediction-form textarea#userPrompt {
  height: 220px !important;
  min-height: 220px !important;
  max-height: 220px !important;
}

body[data-page="submit-step1"] .submit-predict-panel .button-row {
  margin-top: -22px !important;
}

/* consensus copy emphasis on locked / submitted / verified pages */
body[data-page="analysis"] .verified-truth-card .consensus-highlight,
body[data-page="submitted"] .verified-truth-card .consensus-highlight,
body[data-page="verified"] .verified-truth-card .consensus-highlight {
  color: var(--accent) !important;
  font-size: 18px !important;
  line-height: 1.52 !important;
  font-weight: 800 !important;
  letter-spacing: -0.018em !important;
}

body[data-page="submit-step1"] .submit-prompt-actions .btn,
body[data-page="submit-step1"] .submit-prompt-actions .btn.primary,
body[data-page="submit-step1"] form.submit-predict-panel.prediction-form .button-row .btn,
body[data-page="submit-step1"] form.submit-predict-panel.prediction-form .button-row .btn.primary,
body[data-page="submit-step1"] .submit-predict-panel .button-row .btn,
body[data-page="submit-step1"] .submit-predict-panel .button-row .btn.primary,
body[data-page="submit-step1"] .prediction-form .button-row .btn.primary {
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  padding: 0 16px !important;
  line-height: 1 !important;
}

body[data-page="submit-step1"] form.submit-predict-panel.prediction-form textarea#aiReasoning,
body[data-page="submit-step1"] .submit-predict-panel textarea#aiReasoning {
  background: rgba(255, 255, 255, 0.024) !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* analysis / verified image frame size lock */
body[data-page="analysis"] .analysis-panel.verified-background-panel .topic-background-visual-wrap,
body[data-page="verified"] .analysis-panel.verified-background-panel .topic-background-visual-wrap {
  min-height: 400px !important;
  height: 400px !important;
  max-height: 400px !important;
}

body[data-page="analysis"] .analysis-panel.verified-background-panel .topic-background-visual,
body[data-page="verified"] .analysis-panel.verified-background-panel .topic-background-visual {
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: cover !important;
}

/* analysis / verified right column stack */
body[data-page="analysis"] .verified-focus-grid,
body[data-page="verified"] .verified-focus-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.74fr) !important;
  gap: 18px !important;
  align-items: start !important;
}

body[data-page="analysis"] .verified-background-panel,
body[data-page="verified"] .verified-background-panel {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  height: 100% !important;
}

body[data-page="analysis"] .verified-truth-panel,
body[data-page="verified"] .verified-truth-panel {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: start !important;
  height: auto !important;
  gap: 10px !important;
  padding: 14px 16px !important;
}

body[data-page="analysis"] .verified-self-panel,
body[data-page="verified"] .verified-self-panel {
  grid-column: 2 !important;
  grid-row: 2 !important;
  align-self: start !important;
  margin-top: 0 !important;
  height: auto !important;
}

body[data-page="analysis"] .verified-truth-panel .section-heading,
body[data-page="verified"] .verified-truth-panel .section-heading,
body[data-page="analysis"] .verified-self-panel .section-heading,
body[data-page="verified"] .verified-self-panel .section-heading {
  padding-bottom: 10px !important;
}

body[data-page="analysis"] .verified-truth-grid,
body[data-page="verified"] .verified-truth-grid {
  gap: 10px !important;
}

body[data-page="analysis"] .verified-truth-card,
body[data-page="verified"] .verified-truth-card,
body[data-page="analysis"] .verified-self-card,
body[data-page="verified"] .verified-self-card {
  padding: 12px 14px !important;
}

body[data-page="analysis"] .verified-truth-card p,
body[data-page="verified"] .verified-truth-card p,
body[data-page="analysis"] .verified-self-card p,
body[data-page="verified"] .verified-self-card p {
  line-height: 1.56 !important;
}

@media (max-width: 1180px) {
  body[data-page="analysis"] .verified-background-panel,
  body[data-page="verified"] .verified-background-panel,
  body[data-page="analysis"] .verified-truth-panel,
  body[data-page="verified"] .verified-truth-panel,
  body[data-page="analysis"] .verified-self-panel,
  body[data-page="verified"] .verified-self-panel {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

/* analysis / verified module spacing sync with submit page */
body[data-page="analysis"] .verified-focus-grid,
body[data-page="verified"] .verified-focus-grid {
  margin-top: 22px !important;
}

/* unified topic background panel across open / sealed / verified */
body[data-page="submit-step1"] .analysis-panel.verified-background-panel,
body[data-page="analysis"] .analysis-panel.verified-background-panel,
body[data-page="verified"] .analysis-panel.verified-background-panel {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

body[data-page="submit-step1"] .analysis-panel.verified-background-panel .topic-background-copy,
body[data-page="analysis"] .analysis-panel.verified-background-panel .topic-background-copy,
body[data-page="verified"] .analysis-panel.verified-background-panel .topic-background-copy {
  display: grid !important;
  gap: 10px !important;
  flex: 0 0 auto !important;
}

body[data-page="submit-step1"] .analysis-panel.verified-background-panel .topic-background-visual-wrap,
body[data-page="analysis"] .analysis-panel.verified-background-panel .topic-background-visual-wrap,
body[data-page="verified"] .analysis-panel.verified-background-panel .topic-background-visual-wrap {
  margin-top: 14px !important;
  display: block !important;
  flex: 0 0 auto !important;
  align-self: auto !important;
  min-height: 400px !important;
  height: 400px !important;
  max-height: 400px !important;
  border-radius: 14px !important;
  background: transparent !important;
  overflow: hidden !important;
}

body[data-page="submit-step1"] .analysis-panel.verified-background-panel .topic-background-visual,
body[data-page="analysis"] .analysis-panel.verified-background-panel .topic-background-visual,
body[data-page="verified"] .analysis-panel.verified-background-panel .topic-background-visual {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  flex: 0 0 auto !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* submit-step1 absolute final end lock */
body[data-page="submit-step1"] .submit-focus-grid {
  margin-top: 22px !important;
  gap: 34px !important;
}

body[data-page="submit-step1"] .submit-predict-panel {
  margin-left: 40px !important;
}

body[data-page="submit-step1"] form.submit-predict-panel.prediction-form .submit-prompt-editor,
body[data-page="submit-step1"] .submit-predict-panel .submit-prompt-editor {
  height: 200px !important;
  min-height: 200px !important;
  max-height: 200px !important;
}

body[data-page="submit-step1"] .submit-predict-panel .button-row {
  margin-top: -22px !important;
}

body[data-page="submit-step1"] .submit-prompt-actions .btn,
body[data-page="submit-step1"] .submit-prompt-actions .btn.primary,
body[data-page="submit-step1"] form.submit-predict-panel.prediction-form .button-row .btn,
body[data-page="submit-step1"] form.submit-predict-panel.prediction-form .button-row .btn.primary,
body[data-page="submit-step1"] .submit-predict-panel .button-row .btn,
body[data-page="submit-step1"] .submit-predict-panel .button-row .btn.primary {
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  padding: 0 16px !important;
  line-height: 1 !important;
}

body[data-page="submit-step1"] .submit-predict-panel [data-field-wrap]:has(#aiModel) {
  margin-top: 8px !important;
}

body[data-page="submit-step1"] form.submit-predict-panel.prediction-form textarea#aiReasoning,
body[data-page="submit-step1"] .submit-predict-panel textarea#aiReasoning {
  background: rgba(255, 255, 255, 0.024) !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* submit-step1 absolute final tuning */
body[data-page="submit-step1"] .submit-predict-panel [data-field-wrap]:has(#aiModel) {
  margin-top: 8px !important;
}

body[data-page="submit-step1"] form.submit-predict-panel.prediction-form .submit-prompt-editor,
body[data-page="submit-step1"] .submit-predict-panel .submit-prompt-editor {
  height: 194px !important;
  min-height: 194px !important;
  max-height: 194px !important;
}

body[data-page="submit-step1"] form.submit-predict-panel.prediction-form textarea#aiReasoning,
body[data-page="submit-step1"] .submit-predict-panel textarea#aiReasoning {
  background: rgba(255, 255, 255, 0.024) !important;
  box-shadow: none !important;
  border: 0 !important;
}

body[data-page="submit-step1"] .submit-focus-grid {
  margin-top: 22px !important;
  gap: 34px !important;
}

body[data-page="submit-step1"] .submit-predict-panel {
  margin-left: 40px !important;
}

body[data-page="submit-step1"] form.submit-predict-panel.prediction-form .submit-prompt-editor,
body[data-page="submit-step1"] .submit-predict-panel .submit-prompt-editor {
  height: 200px !important;
  min-height: 200px !important;
  max-height: 200px !important;
}

body[data-page="submit-step1"] .submit-predict-panel .button-row {
  margin-top: -22px !important;
}

body[data-page="submit-step1"] .submit-prompt-actions .btn,
body[data-page="submit-step1"] .submit-prompt-actions .btn.primary,
body[data-page="submit-step1"] form.submit-predict-panel.prediction-form .button-row .btn,
body[data-page="submit-step1"] form.submit-predict-panel.prediction-form .button-row .btn.primary,
body[data-page="submit-step1"] .submit-predict-panel .button-row .btn,
body[data-page="submit-step1"] .submit-predict-panel .button-row .btn.primary {
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  padding: 0 16px !important;
  line-height: 1 !important;
}

@media (max-width: 1180px) {
  body[data-page="submit-step1"] .submit-predict-panel {
    margin-left: 0 !important;
  }
}

/* submit-step1 true final lock */
body[data-page="submit-step1"] .analysis-panel.verified-background-panel {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

body[data-page="submit-step1"] .analysis-panel.verified-background-panel .topic-background-copy {
  display: grid !important;
  gap: 10px !important;
  flex: 0 0 auto !important;
}

body[data-page="submit-step1"] .analysis-panel.verified-background-panel .topic-background-visual-wrap {
  margin-top: 14px !important;
  display: block !important;
  flex: 0 0 auto !important;
  align-self: auto !important;
  min-height: 400px !important;
  height: 400px !important;
  max-height: 400px !important;
  background: transparent !important;
  overflow: hidden !important;
}

body[data-page="submit-step1"] .analysis-panel.verified-background-panel .topic-background-visual {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  flex: 0 0 auto !important;
  object-fit: cover !important;
  object-position: center center !important;
}

body[data-page="submit-step1"] .prediction-form.submit-predict-panel,
body[data-page="submit-step1"] .verified-self-panel.submit-predict-panel {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

body[data-page="submit-step1"] .submit-prompt-editor {
  height: 212px !important;
  min-height: 212px !important;
  max-height: 212px !important;
}

/* submit-step1 final editor sizing lock */
body[data-page="submit-step1"] .submit-prompt-editor {
  height: 236px !important;
  min-height: 236px !important;
  max-height: 236px !important;
}

body[data-page="submit-step1"] .field-output-result {
  margin-top: -4px !important;
}

body[data-page="submit-step1"] .field-output-result textarea#aiReasoning {
  height: 280px !important;
  min-height: 280px !important;
  max-height: 280px !important;
  resize: none !important;
}

body[data-page="submit-step1"] .topic-background-visual-wrap {
  flex: 0 0 316px !important;
  height: 316px !important;
  min-height: 316px !important;
  max-height: 316px !important;
  margin-top: 14px !important;
  overflow: hidden !important;
}

body[data-page="submit-step1"] .topic-background-visual {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  flex: 0 0 auto !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* submit-step1 final layout lock */
body[data-page="submit-step1"] .submit-predict-panel.prediction-form {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

body[data-page="submit-step1"] .submit-prompt-editor {
  height: 220px !important;
  min-height: 220px !important;
  max-height: 220px !important;
}

body[data-page="submit-step1"] .field-output-result textarea#aiReasoning,
body[data-page="submit-step1"] .submit-predict-panel textarea#aiReasoning {
  height: 280px !important;
  min-height: 280px !important;
  max-height: 280px !important;
  resize: none !important;
}

body[data-page="submit-step1"] .analysis-panel.verified-background-panel,
body[data-page="submit-step1"] .verified-background-panel {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

body[data-page="submit-step1"] .analysis-panel.verified-background-panel .topic-background-visual-wrap,
body[data-page="submit-step1"] .verified-background-panel .topic-background-visual-wrap {
  margin-top: 14px !important;
  flex: 0 0 auto !important;
  align-self: auto !important;
  align-items: stretch !important;
  min-height: 392px !important;
  max-height: 392px !important;
  background: transparent !important;
}

body[data-page="submit-step1"] .verified-background-panel {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

body[data-page="submit-step1"] .analysis-panel.verified-background-panel {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

body[data-page="submit-step1"] .analysis-panel.verified-background-panel .topic-background-visual-wrap {
  margin-top: 14px !important;
  min-height: 360px !important;
  background: transparent !important;
  flex: 0 0 auto !important;
  align-items: stretch !important;
  align-self: auto !important;
}

/* submit-step1 final lock */
body[data-page="submit-step1"] .submit-hero {
  grid-template-columns: minmax(0, 1fr) 236px !important;
  align-items: start !important;
}

body[data-page="submit-step1"] .submit-hero h1 {
  max-width: none !important;
  width: 100% !important;
  text-wrap: auto !important;
  word-break: keep-all !important;
}

body[data-page="submit-step1"] .verified-summary {
  align-self: start !important;
}

body[data-page="submit-step1"] .submit-summary-countdown {
  transform: translateY(1.5px) !important;
}

body[data-page="submit-step1"] .verified-background-panel {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  min-height: 100% !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

body[data-page="submit-step1"] .topic-background-copy {
  flex: 0 0 auto !important;
}

body[data-page="submit-step1"] .topic-background-visual-wrap {
  margin-top: auto !important;
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: flex-end !important;
}

body[data-page="submit-step1"] .topic-background-visual {
  flex: 1 1 auto !important;
}

body[data-page="submit-step1"] .submit-prompt-block {
  gap: 12px !important;
}

body[data-page="submit-step1"] .submit-prompt-head {
  align-items: flex-start !important;
  justify-content: flex-start !important;
}

body[data-page="submit-step1"] .submit-prompt-actions {
  justify-content: flex-end !important;
  margin-top: 2px !important;
}

body[data-page="submit-step1"] .submit-prompt-actions .btn {
  border: 0 !important;
  box-shadow: none !important;
}

body[data-page="submit-step1"] .submit-prompt-editor {
  height: 280px !important;
  min-height: 280px !important;
  max-height: 280px !important;
  resize: none !important;
  overflow-y: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  padding: 12px 14px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: rgba(7, 12, 17, 0.52) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035) !important;
  font-size: 13px !important;
  line-height: 1.72 !important;
  color: rgba(232, 241, 243, 0.86) !important;
  white-space: pre-wrap !important;
}

body[data-page="submit-step1"] .submit-model-grid {
  gap: 10px !important;
}

body[data-page="submit-step1"] .submit-model-chip {
  min-height: 36px !important;
  padding: 0 14px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

body[data-page="submit-step1"] .submit-model-chip.is-active {
  font-weight: 700 !important;
}

body[data-page="submit-step1"] .submit-predict-panel textarea#aiReasoning {
  height: 280px !important;
  min-height: 280px !important;
  max-height: 280px !important;
  resize: none !important;
  overflow-y: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  margin-top: 0 !important;
}

body[data-page="submit-step1"] .submit-prompt-editor::-webkit-scrollbar,
body[data-page="submit-step1"] .submit-predict-panel textarea#aiReasoning::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

body[data-page="submit-step1"] .verified-summary div,
body[data-page="submit-step1"] .verified-summary div:first-child,
body[data-page="submit-step1"] .verified-summary-item::before {
  border-left: 0 !important;
  content: none !important;
}

body[data-page="submit-step1"] .submit-summary-countdown {
  display: inline-flex !important;
  align-items: center !important;
  transform: translateY(1px) !important;
}

body[data-page="submit-step1"] .submit-prompt-head .btn,
body[data-page="submit-step1"] .submit-predict-panel .button-row .btn {
  border: 0 !important;
  box-shadow: none !important;
}

body[data-page="submit-step1"] .submit-prompt-head .btn.primary,
body[data-page="submit-step1"] .submit-predict-panel .button-row .btn.primary {
  border: 0 !important;
  box-shadow: none !important;
}

body[data-page="submit-step1"] .topic-background-copy {
  display: grid !important;
  gap: 10px !important;
}

body[data-page="submit-step1"] .topic-background-visual-wrap {
  min-height: 360px !important;
  margin-top: 14px !important;
  flex: 0 0 auto !important;
  align-self: auto !important;
  align-items: stretch !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: transparent !important;
}

body[data-page="submit-step1"] .topic-background-visual {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 280px !important;
  object-fit: cover !important;
}

body[data-page="submit-step1"] .submit-predict-panel .button-row {
  justify-content: flex-end !important;
}

body[data-page="submit-step1"] .submit-predict-panel .field select:required:invalid {
  color: rgba(184, 198, 204, 0.46) !important;
}

body[data-page="submit-step1"] .submit-predict-panel .field select option {
  color: #e9f2f4 !important;
}

body[data-page="submit-step1"] .submit-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 228px !important;
  gap: 16px !important;
  align-items: start !important;
  min-height: 0 !important;
  padding: 10px 0 6px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-page="submit-step1"] .submit-hero > :first-child {
  min-width: 0 !important;
}

body[data-page="submit-step1"] .submit-hero h1 {
  max-width: none !important;
  font-size: clamp(31px, 4.5vw, 56px) !important;
  line-height: 1.02 !important;
  letter-spacing: 0 !important;
  text-wrap: pretty !important;
  white-space: normal !important;
}

body[data-page="submit-step1"] .verified-summary {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 28px !important;
  min-width: 0 !important;
  padding: 2px 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

body[data-page="submit-step1"] .verified-summary-item {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  min-height: 22px !important;
  padding: 0 !important;
  white-space: nowrap !important;
}

body[data-page="submit-step1"] .verified-summary-item + .verified-summary-item {
  margin-left: 4px !important;
}

body[data-page="submit-step1"] .verified-summary-item::before {
  content: none !important;
}

body[data-page="submit-step1"] .verified-summary-label {
  display: inline-block !important;
  flex: 0 0 auto !important;
  color: rgba(181, 194, 199, 0.58) !important;
  font-size: 11px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body[data-page="submit-step1"] .verified-summary-value {
  flex: 0 0 auto !important;
  color: rgba(235, 242, 244, 0.9) !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-variant-numeric: tabular-nums !important;
  white-space: nowrap !important;
}

body[data-page="submit-step1"] .verified-summary .status-pill {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  gap: 7px !important;
  min-height: 22px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--signal-open) !important;
  font-size: 11px !important;
  line-height: 1 !important;
  position: static !important;
  top: auto !important;
  white-space: nowrap !important;
}

body[data-page="submit-step1"] .verified-summary .status-pill::before {
  content: "" !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 999px !important;
  background: currentColor !important;
  opacity: 0.92 !important;
}

body[data-page="submit-step1"] .submit-summary-countdown,
body[data-page="submit-step1"] .submit-summary-countdown .market-countdown,
body[data-page="submit-step1"] .submit-summary-countdown .countdown-roll,
body[data-page="submit-step1"] .submit-summary-countdown .countdown-char,
body[data-page="submit-step1"] .submit-summary-countdown .countdown-digit-face,
body[data-page="submit-step1"] .submit-summary-countdown .countdown-separator {
  color: var(--signal-open) !important;
  white-space: nowrap !important;
}

body[data-page="submit-step1"] .submit-summary-countdown .market-countdown {
  font-size: 15px !important;
  line-height: 1 !important;
}

body[data-page="submit-step1"] .submit-summary-countdown .countdown-roll {
  line-height: 1.06 !important;
}

body[data-page="submit-step1"] .submit-summary-countdown .countdown-digit {
  height: 1.06em !important;
  mask-image: none !important;
}

body[data-page="submit-step1"] .submit-summary-countdown .countdown-digit-face {
  height: 1.06em !important;
  line-height: 1.04 !important;
}

body[data-page="submit-step1"] .submit-summary-countdown .countdown-separator {
  height: 1.06em !important;
  transform: translateY(-0.015em) !important;
}

body[data-page="submit-step1"] .submit-focus-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr) !important;
  gap: 18px !important;
  align-items: stretch !important;
}

body[data-page="submit-step1"] .verified-background-panel,
body[data-page="submit-step1"] .submit-predict-panel {
  display: grid !important;
  gap: 12px !important;
  padding: 16px 18px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.024) !important;
  height: 100% !important;
}

body[data-page="submit-step1"] .verified-background-panel h2,
body[data-page="submit-step1"] .submit-predict-panel h2 {
  font-size: 16px !important;
  line-height: 1.14 !important;
}

body[data-page="submit-step1"] .verified-background-panel p {
  margin: 0 !important;
  font-size: 12.5px !important;
  line-height: 1.62 !important;
  color: rgba(205, 218, 223, 0.72) !important;
}

body[data-page="submit-step1"] .submit-predict-panel .section-heading {
  min-height: 0 !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045) !important;
}

body[data-page="submit-step1"] .submit-predict-grid {
  display: grid !important;
  gap: 12px !important;
}

body[data-page="submit-step1"] .submit-prompt-block {
  display: grid !important;
  gap: 10px !important;
  padding: 14px 16px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.022) !important;
}

body[data-page="submit-step1"] .submit-prompt-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

body[data-page="submit-step1"] .submit-prompt-head h3 {
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
  color: rgba(178, 194, 200, 0.6) !important;
}

body[data-page="submit-step1"] .submit-prompt-head h3 span {
  color: rgba(232, 241, 243, 0.84) !important;
  font-weight: 700 !important;
}

body[data-page="submit-step1"] .submit-prompt-block .prompt-box {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 13px !important;
  line-height: 1.72 !important;
  color: rgba(232, 241, 243, 0.86) !important;
  white-space: normal !important;
}

body[data-page="submit-step1"] .submit-predict-panel .field {
  gap: 7px !important;
}

body[data-page="submit-step1"] .submit-predict-panel .field-output-result {
  margin-top: -4px !important;
}

body[data-page="submit-step1"] .submit-predict-panel .field label {
  font-size: 12px !important;
  line-height: 1.1 !important;
}

body[data-page="submit-step1"] .submit-predict-panel .field select,
body[data-page="submit-step1"] .submit-predict-panel .field textarea {
  min-height: 44px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.024) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045) !important;
}

body[data-page="submit-step1"] .submit-predict-panel textarea#aiReasoning {
  min-height: 300px !important;
  max-height: 300px !important;
  resize: none !important;
}

body[data-page="submit-step1"] .submit-predict-panel small {
  color: rgba(181, 194, 199, 0.54) !important;
}

body[data-page="submit-step1"] .submit-model-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

body[data-page="submit-step1"] .submit-model-chip {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 30px !important;
  padding: 0 11px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: rgba(216, 227, 230, 0.78) !important;
  font-size: 11px !important;
  line-height: 1 !important;
  box-shadow: none !important;
  transition: background-color 180ms linear, color 180ms linear, transform 180ms linear !important;
}

body[data-page="submit-step1"] .submit-model-chip:hover,
body[data-page="submit-step1"] .submit-model-chip:focus-visible {
  background: rgba(255, 255, 255, 0.07) !important;
  color: rgba(238, 246, 248, 0.92) !important;
}

body[data-page="submit-step1"] .submit-model-chip.is-active {
  background: rgba(111, 208, 222, 0.16) !important;
  color: rgba(222, 242, 246, 0.96) !important;
}

@media (max-width: 1180px) {
  body[data-page="submit-step1"] .submit-focus-grid {
    grid-template-columns: 1fr !important;
  }

  body[data-page="submit-step1"] .submit-hero {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  body[data-page="submit-step1"] .verified-summary {
    justify-content: flex-start !important;
  }
}

body[data-page="analysis"] .analysis-hero {
  grid-template-columns: minmax(0, 1fr) 196px !important;
  gap: 16px !important;
  align-items: start !important;
  padding-bottom: 6px !important;
}

body[data-page="analysis"] .analysis-hero > :first-child {
  min-width: 0 !important;
  max-width: none !important;
}

body[data-page="analysis"] .analysis-hero h1 {
  display: block;
  width: 100%;
  max-width: none !important;
  white-space: normal !important;
  text-wrap: initial !important;
  overflow-wrap: normal !important;
  word-break: keep-all;
}

body[data-page="analysis"] .analysis-hero p {
  max-width: 44ch !important;
  margin-top: 5px !important;
}

body[data-page="analysis"] .verified-summary {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 30px !important;
  min-width: 196px !important;
  padding: 4px 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-page="analysis"] .verified-summary div,
body[data-page="analysis"] .verified-summary div:first-child {
  min-height: 54px !important;
  border-left: 0 !important;
  padding-left: 0 !important;
}

body[data-page="analysis"] .verified-summary-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 0 !important;
  padding: 0 !important;
  position: relative !important;
}

body[data-page="analysis"] .verified-summary-item + .verified-summary-item {
  margin-left: 14px !important;
}

body[data-page="analysis"] .verified-summary-item::before {
  display: none !important;
  content: none !important;
}

body[data-page="analysis"] .verified-summary-label {
  color: rgba(198, 211, 216, 0.56) !important;
  font-size: 10px !important;
  letter-spacing: 0.08em !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body[data-page="analysis"] .verified-summary-value {
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  min-height: 0 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  color: rgba(236, 243, 245, 0.92) !important;
  white-space: nowrap !important;
}

body[data-page="analysis"] .verified-summary .status-pill {
  min-height: 18px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: rgba(132, 208, 255, 0.94) !important;
  line-height: 1 !important;
}

body[data-page="analysis"] .verified-summary .status-pill::before {
  content: "" !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 999px !important;
  background: currentColor !important;
  opacity: 0.9 !important;
}

body[data-page="analysis"] .verified-focus-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr) !important;
  gap: 18px !important;
  align-items: stretch !important;
}

body[data-page="analysis"] .verified-background-panel,
body[data-page="analysis"] .verified-truth-panel,
body[data-page="analysis"] .verified-self-panel {
  display: grid !important;
  gap: 12px !important;
  padding: 16px 18px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.024) !important;
  height: 100% !important;
}

body[data-page="analysis"] .verified-truth-panel h2,
body[data-page="analysis"] .verified-self-panel h2,
body[data-page="analysis"] .verified-background-panel h2 {
  font-size: 16px !important;
  line-height: 1.14 !important;
}

body[data-page="analysis"] .verified-background-panel p {
  margin: 0 !important;
  font-size: 12.5px !important;
  line-height: 1.62 !important;
  color: rgba(205, 218, 223, 0.72) !important;
  align-self: start !important;
}

body[data-page="analysis"] .verified-truth-panel .section-heading,
body[data-page="analysis"] .verified-self-panel .section-heading {
  min-height: 0 !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045) !important;
}

body[data-page="analysis"] .verified-accuracy-badge {
  display: grid !important;
  justify-items: end !important;
  gap: 4px !important;
  text-align: right !important;
}

body[data-page="analysis"] .verified-accuracy-badge strong {
  display: inline-flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  min-width: max-content !important;
  overflow: visible !important;
  padding-inline-start: 0.03em !important;
  font-size: clamp(28px, 4vw, 40px) !important;
  font-weight: 900 !important;
  line-height: 0.96 !important;
  color: rgba(214, 232, 216, 0.94) !important;
}

body[data-page="analysis"] .verified-accuracy-badge strong [data-topic-metric-slot],
body[data-page="analysis"] .verified-accuracy-badge strong .metric-roll,
body[data-page="analysis"] .verified-accuracy-badge strong .metric-char,
body[data-page="analysis"] .verified-accuracy-badge strong .metric-digit,
body[data-page="analysis"] .verified-accuracy-badge strong .metric-digit-face,
body[data-page="analysis"] .verified-accuracy-badge strong .metric-separator {
  font-weight: 900 !important;
}

body[data-page="analysis"] .verified-accuracy-badge strong .metric-roll {
  overflow: visible !important;
  gap: 0.012em !important;
  padding-inline: 0 0 !important;
  padding-inline-start: 0.026em !important;
}

body[data-page="analysis"] .verified-accuracy-badge strong .metric-digit {
  width: 0.7em !important;
  overflow: visible !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

body[data-page="analysis"] .verified-accuracy-badge strong .metric-digit-face {
  box-sizing: border-box !important;
  padding-inline: 0.024em 0 !important;
}

body[data-page="analysis"] .verified-accuracy-badge strong .metric-roll > .metric-digit:first-child .metric-digit-face {
  padding-inline-start: 0.056em !important;
}

body[data-page="analysis"] .verified-accuracy-badge > span {
  color: rgba(188, 203, 209, 0.72) !important;
  font-size: 11px !important;
  line-height: 1.1 !important;
}

body[data-page="analysis"] .analysis-consensus-grid {
  grid-template-columns: 1fr !important;
}

body[data-page="analysis"] .verified-truth-card {
  padding: 14px 16px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.022) !important;
}

body[data-page="analysis"] .verified-truth-card h3 {
  margin: 0 0 8px !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
  color: rgba(178, 194, 200, 0.6) !important;
}

body[data-page="analysis"] .verified-truth-card p {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.62 !important;
  color: rgba(232, 241, 243, 0.86) !important;
}

body[data-page="analysis"] .verified-self-grid {
  display: grid !important;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr) !important;
  gap: 12px !important;
}

body[data-page="analysis"] .verified-self-card {
  display: grid !important;
  gap: 6px !important;
  padding: 14px 16px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.022) !important;
}

body[data-page="analysis"] .verified-self-card-wide {
  grid-column: 1 / -1 !important;
}

body[data-page="analysis"] .verified-self-label {
  color: rgba(184, 198, 204, 0.54) !important;
  font-size: 10px !important;
  line-height: 1 !important;
}

body[data-page="analysis"] .verified-self-card strong {
  font-size: 16px !important;
  line-height: 1.16 !important;
  color: rgba(242, 248, 250, 0.94) !important;
}

body[data-page="analysis"] .verified-self-card p {
  margin: 0 !important;
  font-size: 12.5px !important;
  line-height: 1.62 !important;
  color: rgba(212, 224, 228, 0.76) !important;
}

@media (max-width: 1180px) {
  body[data-page="analysis"] .verified-focus-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  body[data-page="analysis"] .verified-self-grid {
    grid-template-columns: 1fr !important;
  }
}

body[data-page="verified"] .verified-summary {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 26px !important;
  min-width: 0 !important;
  padding: 2px 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-page="verified"] .verified-summary-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 0 !important;
  padding: 0 0 0 12px !important;
  position: relative !important;
}

body[data-page="verified"] .verified-summary-item::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  width: 1px !important;
  height: 16px !important;
  transform: translateY(-50%) !important;
  background: rgba(255, 255, 255, 0.09) !important;
}

body[data-page="verified"] .verified-summary-item + .verified-summary-item {
  margin-left: 6px !important;
  padding-left: 20px !important;
}

body[data-page="verified"] .verified-summary-label {
  color: rgba(198, 211, 216, 0.56) !important;
  font-size: 10px !important;
  line-height: 1 !important;
  letter-spacing: 0.08em !important;
  white-space: nowrap !important;
}

body[data-page="verified"] .verified-summary-value {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 0 !important;
  color: rgba(236, 243, 245, 0.92) !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

body[data-page="verified"] .verified-summary .status-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 18px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #d9f7b6 !important;
  line-height: 1 !important;
}

body[data-page="verified"] .verified-summary .status-pill::before {
  content: "" !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 999px !important;
  background: currentColor !important;
  opacity: 0.9 !important;
}

body[data-page="verified"] .verified-hero {
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
}

body[data-page="verified"] .verified-summary {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 30px !important;
  min-width: 0 !important;
  padding: 2px 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-page="verified"] .verified-summary-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 0 !important;
  padding: 0 !important;
  position: relative;
}

body[data-page="verified"] .verified-summary-item + .verified-summary-item {
  margin-left: 14px !important;
}

body[data-page="verified"] .verified-summary-label {
  color: rgba(198, 211, 216, 0.56) !important;
  font-size: 10px !important;
  letter-spacing: 0.08em !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body[data-page="verified"] .verified-summary-value {
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  min-height: 0 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  color: rgba(236, 243, 245, 0.92) !important;
  white-space: nowrap !important;
}

body[data-page="verified"] .verified-summary .status-pill {
  min-height: 18px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #d9f7b6 !important;
  line-height: 1 !important;
  position: static !important;
  top: auto !important;
}

body[data-page="verified"] .verified-truth-card p {
  line-height: 1.62;
}

body[data-page="verified"] .verified-summary-item::before {
  display: none !important;
  content: none !important;
}

body[data-page="verified"] .verified-summary div,
body[data-page="verified"] .verified-summary div:first-child {
  border-left: 0 !important;
  padding-left: 0 !important;
}

body[data-page="analysis"] .analysis-hero {
  grid-template-columns: minmax(0, 1fr) 196px !important;
  gap: 16px !important;
  align-items: start !important;
  padding-bottom: 6px !important;
}

body[data-page="analysis"] .analysis-hero > :first-child {
  min-width: 0 !important;
  max-width: none !important;
}

body[data-page="analysis"] .analysis-hero h1 {
  display: block;
  width: 100%;
  max-width: none !important;
  white-space: normal !important;
  text-wrap: initial !important;
  overflow-wrap: normal !important;
  word-break: keep-all;
}

body[data-page="analysis"] .analysis-hero p {
  max-width: 44ch;
  margin-top: 5px !important;
}

body[data-page="analysis"] .verified-summary {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 30px !important;
  min-width: 196px;
  padding: 4px 0 !important;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

body[data-page="analysis"] .verified-summary-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 0 !important;
  padding: 0 !important;
  position: relative;
}

body[data-page="analysis"] .verified-summary-item + .verified-summary-item {
  margin-left: 14px !important;
}

body[data-page="analysis"] .verified-summary-label {
  color: rgba(198, 211, 216, 0.56) !important;
  font-size: 10px !important;
  letter-spacing: 0.08em !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body[data-page="analysis"] .verified-summary-value {
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  min-height: 0 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  color: rgba(236, 243, 245, 0.92) !important;
  white-space: nowrap !important;
}

body[data-page="analysis"] .verified-summary .status-pill {
  min-height: 18px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: rgba(132, 208, 255, 0.94) !important;
  line-height: 1 !important;
}

body[data-page="analysis"] .verified-summary .status-pill::before {
  content: "" !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 999px !important;
  background: currentColor !important;
  opacity: 0.9 !important;
}

body[data-page="analysis"] .verified-summary div,
body[data-page="analysis"] .verified-summary div:first-child {
  border-left: 0 !important;
  padding-left: 0 !important;
}

body[data-page="analysis"] .verified-summary-item::before {
  display: none !important;
  content: none !important;
}

body[data-page="analysis"] .verified-focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 18px;
  align-items: stretch;
}

body[data-page="analysis"] .verified-background-panel,
body[data-page="analysis"] .verified-truth-panel,
body[data-page="analysis"] .verified-self-panel {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.024);
  height: 100%;
}

body[data-page="analysis"] .verified-background-panel,
body[data-page="analysis"] .verified-truth-panel {
  height: 100% !important;
}

body[data-page="analysis"] .verified-truth-panel h2,
body[data-page="analysis"] .verified-self-panel h2,
body[data-page="analysis"] .verified-background-panel h2 {
  font-size: 16px;
  line-height: 1.14;
}

body[data-page="analysis"] .verified-background-panel p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.62;
  color: rgba(205, 218, 223, 0.72);
  align-self: start;
}

body[data-page="analysis"] .verified-truth-panel .section-heading,
body[data-page="analysis"] .verified-self-panel .section-heading {
  min-height: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

body[data-page="analysis"] .verified-accuracy-badge {
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
}

body[data-page="analysis"] .verified-accuracy-badge strong {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 0.96;
  color: rgba(214, 232, 216, 0.94);
}

body[data-page="analysis"] .verified-accuracy-badge > span {
  color: rgba(188, 203, 209, 0.72);
  font-size: 11px;
  line-height: 1.1;
}

body[data-page="analysis"] .analysis-consensus-grid {
  grid-template-columns: 1fr;
}

body[data-page="analysis"] .verified-truth-card {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
}

body[data-page="analysis"] .verified-truth-card h3 {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.1;
  color: rgba(178, 194, 200, 0.6);
}

body[data-page="analysis"] .verified-truth-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.62;
  color: rgba(232, 241, 243, 0.86);
}

body[data-page="analysis"] .verified-self-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  gap: 12px;
}

body[data-page="analysis"] .verified-self-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
}

body[data-page="analysis"] .verified-self-card-wide {
  grid-column: 1 / -1;
}

body[data-page="analysis"] .verified-self-label {
  color: rgba(184, 198, 204, 0.54);
  font-size: 10px;
  line-height: 1;
}

body[data-page="analysis"] .verified-self-card strong {
  font-size: 16px;
  line-height: 1.16;
  color: rgba(242, 248, 250, 0.94);
}

body[data-page="analysis"] .verified-self-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.62;
  color: rgba(212, 224, 228, 0.76);
}

@media (max-width: 1180px) {
  body[data-page="analysis"] .verified-focus-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body[data-page="analysis"] .verified-self-grid {
    grid-template-columns: 1fr;
  }
}

body[data-page="verified"] .verified-hero {
  grid-template-columns: minmax(0, 1fr) 210px !important;
  gap: 16px !important;
  align-items: start !important;
}

body[data-page="verified"] .verified-hero > :first-child {
  min-width: 0 !important;
}

body[data-page="verified"] .verified-hero h1 {
  max-width: none !important;
  white-space: normal !important;
  text-wrap: pretty;
}

body[data-page="verified"] .verified-focus-grid {
  align-items: stretch !important;
}

body[data-page="verified"] .verified-background-panel,
body[data-page="verified"] .verified-truth-panel {
  height: 100% !important;
}

body[data-page="verified"] .verified-topline,
body[data-page="verified"] .verified-report-layout,
body[data-page="verified"] .verified-source-panel,
body[data-page="verified"] .verified-core-stack,
body[data-page="verified"] .verified-side-stack,
body[data-page="verified"] .verification-stage,
body[data-page="verified"] .rank-panel,
body[data-page="verified"] .chart-panel,
body[data-page="verified"] .report-ribbon,
body[data-page="verified"] .comparison-grid,
body[data-page="verified"] .comparison-card,
body[data-page="verified"] .match-panel,
body[data-page="verified"] .closest-user-marquee,
body[data-page="verified"] .closest-user-track,
body[data-page="verified"] .closest-user-grid,
body[data-page="verified"] .closest-user-card,
body[data-page="verified"] .rank-table,
body[data-page="verified"] .verification-charts {
  all: unset;
}

body[data-page="verified"] .verified-focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 18px;
  align-items: stretch;
}

body[data-page="verified"] .verified-background-panel,
body[data-page="verified"] .verified-truth-panel,
body[data-page="verified"] .verified-self-panel,
body[data-page="verified"] .verified-ranking-panel {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.024);
  height: 100%;
}

body[data-page="verified"] .verified-background-panel h2,
body[data-page="verified"] .verified-truth-panel h2,
body[data-page="verified"] .verified-self-panel h2,
body[data-page="verified"] .verified-ranking-panel h2 {
  font-size: 16px;
  line-height: 1.14;
}

body[data-page="verified"] .verified-background-panel p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.62;
  color: rgba(205, 218, 223, 0.72);
  align-self: start;
}

body[data-page="verified"] .verified-truth-panel .section-heading,
body[data-page="verified"] .verified-self-panel .section-heading,
body[data-page="verified"] .verified-ranking-panel .section-heading {
  min-height: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

body[data-page="verified"] .verified-accuracy-badge,
body[data-page="verified"] .verified-self-score {
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
}

body[data-page="verified"] .verified-accuracy-badge strong,
body[data-page="verified"] .verified-self-score strong {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  min-width: max-content;
  overflow: visible;
  padding-inline-start: 0.03em;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  line-height: 0.96;
  color: rgba(214, 232, 216, 0.94);
}

body[data-page="verified"] .verified-accuracy-badge strong [data-topic-metric-slot],
body[data-page="verified"] .verified-accuracy-badge strong .metric-roll,
body[data-page="verified"] .verified-accuracy-badge strong .metric-char,
body[data-page="verified"] .verified-accuracy-badge strong .metric-digit,
body[data-page="verified"] .verified-accuracy-badge strong .metric-digit-face,
body[data-page="verified"] .verified-accuracy-badge strong .metric-separator,
body[data-page="verified"] .verified-self-score strong [data-topic-metric-slot],
body[data-page="verified"] .verified-self-score strong .metric-roll,
body[data-page="verified"] .verified-self-score strong .metric-char,
body[data-page="verified"] .verified-self-score strong .metric-digit,
body[data-page="verified"] .verified-self-score strong .metric-digit-face,
body[data-page="verified"] .verified-self-score strong .metric-separator {
  font-weight: 900;
}

body[data-page="verified"] .verified-accuracy-badge strong .metric-roll,
body[data-page="verified"] .verified-self-score strong .metric-roll {
  overflow: visible;
  gap: 0.012em;
  padding-inline: 0 0;
  padding-inline-start: 0.026em;
}

body[data-page="verified"] .verified-accuracy-badge strong .metric-digit,
body[data-page="verified"] .verified-self-score strong .metric-digit {
  width: 0.7em;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}

body[data-page="verified"] .verified-accuracy-badge strong .metric-digit-face,
body[data-page="verified"] .verified-self-score strong .metric-digit-face {
  box-sizing: border-box;
  padding-inline: 0.024em 0;
}

body[data-page="verified"] .verified-accuracy-badge strong .metric-roll > .metric-digit:first-child .metric-digit-face,
body[data-page="verified"] .verified-self-score strong .metric-roll > .metric-digit:first-child .metric-digit-face {
  padding-inline-start: 0.056em;
}

body[data-page="verified"] .verified-accuracy-badge > span,
body[data-page="verified"] .verified-self-score > span {
  color: rgba(188, 203, 209, 0.72);
  font-size: 11px;
  line-height: 1.1;
}

body[data-page="verified"] .verified-truth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body[data-page="verified"] .verified-truth-card {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
}

body[data-page="verified"] .verified-truth-card h3 {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.1;
  color: rgba(178, 194, 200, 0.6);
}

body[data-page="verified"] .verified-truth-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.62;
  color: rgba(232, 241, 243, 0.86);
}

body[data-page="verified"] .verified-truth-meta {
  padding-top: 8px;
  color: rgba(188, 201, 206, 0.58);
  font-size: 11px;
  line-height: 1.5;
}

body[data-page="verified"] .verified-self-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  gap: 12px;
}

body[data-page="verified"] .verified-self-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
}

body[data-page="verified"] .verified-self-card-wide {
  grid-column: 1 / -1;
}

body[data-page="verified"] .verified-self-label {
  color: rgba(184, 198, 204, 0.54);
  font-size: 10px;
  line-height: 1;
}

body[data-page="verified"] .verified-self-card strong {
  font-size: 16px;
  line-height: 1.16;
  color: rgba(242, 248, 250, 0.94);
}

body[data-page="verified"] .verified-self-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.62;
  color: rgba(212, 224, 228, 0.76);
}

body[data-page="verified"] .verified-user-list {
  display: grid;
  gap: 0;
}

body[data-page="verified"] .verified-user-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
}

body[data-page="verified"] .verified-user-row:first-child {
  border-top-color: transparent;
  padding-top: 2px;
}

body[data-page="verified"] .verified-user-rank {
  color: rgba(176, 191, 197, 0.48);
  font-size: 11px;
  line-height: 1.1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

body[data-page="verified"] .verified-user-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

body[data-page="verified"] .verified-user-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

body[data-page="verified"] .verified-user-top strong {
  font-size: 13.5px;
  line-height: 1.12;
  color: rgba(242, 248, 250, 0.92);
}

body[data-page="verified"] .verified-user-signal {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body[data-page="verified"] .verified-user-score {
  color: rgba(214, 232, 216, 0.96);
  font-size: 15px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

body[data-page="verified"] .verified-user-model {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 22px;
  padding: 1px 10px 0;
  border-radius: 999px;
  color: rgba(112, 218, 231, 0.9);
  background: rgba(112, 218, 231, 0.08);
  font-size: 10.5px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

body[data-page="verified"] .verified-user-main p {
  margin: 0;
  font-size: 12px;
  line-height: 1.56;
  color: rgba(206, 219, 223, 0.72);
  display: block;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-page="verified"] .button-row {
  justify-content: flex-end;
}

body[data-page="verified"] .verified-summary div {
  min-height: 44px !important;
  padding-left: 12px !important;
}

body[data-page="verified"] .verified-summary dt {
  margin-bottom: 4px !important;
  letter-spacing: 0.08em !important;
}

body[data-page="verified"] .verified-summary dd {
  margin-top: 2px !important;
  line-height: 1.12 !important;
}

body[data-page="verified"] .button-row .btn.secondary {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  min-height: 0 !important;
  color: rgba(232, 241, 243, 0.86) !important;
}

body[data-page="verified"] .button-row .btn.secondary:hover,
body[data-page="verified"] .button-row .btn.secondary:focus-visible {
  color: rgba(255, 255, 255, 0.96) !important;
  background: transparent !important;
}

@media (max-width: 1180px) {
  body[data-page="verified"] .verified-focus-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body[data-page="verified"] .verified-truth-grid,
  body[data-page="verified"] .verified-self-grid {
    grid-template-columns: 1fr;
  }
}

body[data-page="verified"] .verified-hero {
  padding-bottom: 6px !important;
  gap: 16px !important;
  align-items: start !important;
  grid-template-columns: minmax(0, 1fr) 196px !important;
}

body[data-page="verified"] .verified-hero > :first-child {
  min-width: 0 !important;
  max-width: none !important;
}

body[data-page="verified"] .verified-hero h1 {
  display: block;
  width: 100%;
  max-width: none !important;
  white-space: normal !important;
  text-wrap: initial !important;
  overflow-wrap: normal !important;
  word-break: keep-all;
}

body[data-page="verified"] .verified-hero p {
  max-width: 44ch;
  margin-top: 5px !important;
}

body[data-page="verified"] .verified-summary {
  min-width: 196px;
  padding: 4px 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

body[data-page="verified"] .verified-summary div {
  min-height: 54px !important;
  padding-left: 14px !important;
}

body[data-page="verified"] .verified-topline {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 14px;
  align-items: stretch;
}

body[data-page="verified"] .topic-background {
  padding: 14px 16px !important;
  grid-template-columns: 70px minmax(0, 1fr) !important;
  column-gap: 18px !important;
}

body[data-page="verified"] .topic-background h2,
body[data-page="verified"] .verified-source-panel h2 {
  font-size: 12px !important;
  line-height: 1.12 !important;
  color: rgba(181, 196, 201, 0.72) !important;
}

body[data-page="verified"] .topic-background p,
body[data-page="verified"] .verified-source-copy p {
  font-size: 12.5px !important;
  line-height: 1.58 !important;
  color: rgba(223, 233, 236, 0.76) !important;
}

body[data-page="verified"] .verified-source-panel {
  padding: 14px 16px !important;
  align-content: start;
  gap: 10px !important;
}

body[data-page="verified"] .verified-source-panel .section-heading {
  padding-bottom: 6px !important;
  border-bottom: 0 !important;
}

body[data-page="verified"] .verified-report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 14px;
  align-items: start;
}

body[data-page="verified"] .verified-core-stack,
body[data-page="verified"] .verified-side-stack {
  display: grid;
  gap: 14px;
}

body[data-page="verified"] .verified-side-stack > * {
  min-width: 0;
  position: relative;
  overflow: hidden;
}

body[data-page="verified"] .verification-stage {
  padding: 14px 16px !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, rgba(12, 18, 23, 0.88) 0%, rgba(8, 12, 16, 0.82) 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035) !important;
  gap: 12px !important;
}

body[data-page="verified"] .report-ribbon {
  min-height: 0 !important;
  font-size: 10px !important;
  letter-spacing: 0.14em !important;
  color: rgba(182, 198, 205, 0.5) !important;
}

body[data-page="verified"] .comparison-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px !important;
}

body[data-page="verified"] .comparison-card {
  min-height: 0 !important;
  padding: 14px 16px !important;
  background: rgba(255, 255, 255, 0.026) !important;
}

body[data-page="verified"] .comparison-card h2 {
  font-size: 11px !important;
  letter-spacing: 0.08em !important;
  color: rgba(181, 196, 201, 0.58) !important;
}

body[data-page="verified"] .comparison-card p {
  margin-top: 8px !important;
  font-size: 12.5px !important;
  line-height: 1.58 !important;
  color: rgba(236, 244, 246, 0.84) !important;
}

body[data-page="verified"] .match-panel {
  grid-template-columns: 132px minmax(0, 1fr) !important;
  padding: 14px 16px !important;
  gap: 16px !important;
}

body[data-page="verified"] .match-score-block {
  min-height: 0;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  place-items: start;
}

body[data-page="verified"] .match-score-block strong {
  font-size: clamp(34px, 4.2vw, 46px) !important;
}

body[data-page="verified"] .match-score-block em {
  font-size: 12px !important;
  color: rgba(188, 205, 211, 0.78) !important;
}

body[data-page="verified"] .match-detail {
  gap: 12px !important;
}

body[data-page="verified"] .match-detail h2 {
  font-size: 16px;
  line-height: 1.14;
}

body[data-page="verified"] .match-detail p {
  font-size: 12.5px;
  line-height: 1.58;
  color: rgba(220, 231, 234, 0.75);
}

body[data-page="verified"] .match-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px !important;
}

body[data-page="verified"] .match-columns section {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

body[data-page="verified"] .match-columns h3 {
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.12;
  color: rgba(235, 243, 245, 0.88);
}

body[data-page="verified"] .match-columns ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 14px;
}

body[data-page="verified"] .match-columns li {
  color: rgba(199, 212, 217, 0.72);
  font-size: 12px;
  line-height: 1.46;
}

body[data-page="verified"] .rank-panel,
body[data-page="verified"] .chart-panel {
  padding: 14px 16px !important;
  align-content: start;
}

body[data-page="verified"] .rank-row {
  min-height: 0 !important;
  grid-template-columns: 24px minmax(0, 1fr) 92px 52px 48px !important;
  gap: 10px !important;
  padding: 9px 0 !important;
}

body[data-page="verified"] .rank-row p {
  font-size: 11.5px !important;
  line-height: 1.42 !important;
}

body[data-page="verified"] .rank-row span,
body[data-page="verified"] .rank-row b,
body[data-page="verified"] .rank-row em {
  font-size: 10.5px !important;
}

body[data-page="verified"] .verification-charts {
  gap: 10px !important;
  align-content: start;
}

body[data-page="verified"] .chart-card {
  padding: 14px 16px !important;
  gap: 10px !important;
}

body[data-page="verified"] .chart-card h3 {
  font-size: 12px !important;
  line-height: 1.12 !important;
}

body[data-page="verified"] .analysis-bar-row,
body[data-page="verified"] .compare-row {
  gap: 8px !important;
}

body[data-page="verified"] .analysis-bar-row span,
body[data-page="verified"] .analysis-bar-row strong,
body[data-page="verified"] .compare-row span,
body[data-page="verified"] .compare-row strong {
  font-size: 10.5px !important;
}

body[data-page="verified"] .closest-panel {
  padding: 16px !important;
  gap: 12px !important;
}

body[data-page="verified"] .closest-panel .section-heading {
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045) !important;
}

body[data-page="verified"] .closest-panel .section-heading p {
  margin-top: 4px;
  color: rgba(186, 201, 206, 0.54);
  font-size: 11px;
  line-height: 1.46;
}

body[data-page="verified"] .closest-user-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

body[data-page="verified"] .closest-user-card {
  grid-template-rows: auto auto 1fr auto;
  min-height: 184px;
  padding: 12px !important;
  gap: 8px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.024) !important;
}

body[data-page="verified"] .closest-user-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body[data-page="verified"] .closest-user-id {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

body[data-page="verified"] .closest-user-card .honor-mark {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.032);
  color: rgba(198, 212, 218, 0.74);
  font-size: 11px;
}

body[data-page="verified"] .closest-user-card .card-header {
  display: grid;
  gap: 5px;
  min-width: 0;
}

body[data-page="verified"] .closest-user-card strong {
  font-size: 13px !important;
  line-height: 1.12 !important;
}

body[data-page="verified"] .closest-user-card .tag {
  justify-self: start;
}

body[data-page="verified"] .closest-user-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-height: calc(1.52em * 3);
  margin: 0;
  font-size: 11.5px !important;
  line-height: 1.52 !important;
}

body[data-page="verified"] .closest-user-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

body[data-page="verified"] .closest-user-card .accuracy-score {
  display: grid;
  gap: 4px;
  min-width: 60px;
  justify-items: end;
  margin-left: auto;
}

body[data-page="verified"] .closest-user-card .accuracy-score span,
body[data-page="verified"] .closest-user-card .hit-reason span {
  color: rgba(184, 200, 206, 0.48);
  font-size: 10px;
  line-height: 1;
}

body[data-page="verified"] .closest-user-card .accuracy-score b {
  color: rgba(219, 233, 221, 0.92);
  font-size: 16px;
  line-height: 1;
}

body[data-page="verified"] .closest-user-card .hit-reason {
  display: grid;
  gap: 4px;
  min-width: 0;
  border-top: 0 !important;
}

body[data-page="verified"] .closest-user-card .hit-reason b {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(1.42em * 2);
  color: rgba(220, 231, 234, 0.84);
  font-size: 11.5px;
  line-height: 1.42;
  font-weight: 600;
}

body[data-page="verified"] .closest-user-card .text-toggle,
body[data-page="verified"] .closest-user-card .text-toggle-spacer {
  min-width: 54px;
}

body[data-page="verified"] .closest-user-card .text-toggle-spacer {
  display: none;
}

body[data-page="verified"] .button-row {
  justify-content: flex-end;
}

@media (max-width: 1280px) {
  body[data-page="verified"] .verified-topline,
  body[data-page="verified"] .verified-report-layout,
  body[data-page="verified"] .match-columns {
    grid-template-columns: 1fr;
  }

  body[data-page="verified"] .closest-user-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  body[data-page="verified"] .comparison-grid,
  body[data-page="verified"] .closest-user-grid {
    grid-template-columns: 1fr !important;
  }

  body[data-page="verified"] .match-panel {
    grid-template-columns: 1fr !important;
  }
}

body[data-page="profile"] .profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 0 0 14px;
}

body[data-page="profile"] .profile-account-head {
  display: grid;
  gap: 16px;
}

body[data-page="profile"] .profile-account-label {
  font-size: 18px;
  line-height: 1;
  color: rgba(109, 218, 231, 0.9);
  letter-spacing: 0.02em;
  font-weight: 700;
}

body[data-page="profile"] .profile-identity {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

body[data-page="profile"] .profile-avatar {
  width: 92px;
  min-width: 92px;
  min-height: 96px;
  height: auto;
  align-self: stretch;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 250, 255, 0.96);
  font-size: 2rem;
}

body[data-page="profile"] .profile-identity-main {
  display: grid;
  gap: 12px;
  align-content: stretch;
}

body[data-page="profile"] .profile-identity-topline {
  display: grid;
  gap: 7px;
  justify-items: start;
}

body[data-page="profile"] .profile-user-id {
  font-size: 12px;
  line-height: 1;
  color: rgba(163, 177, 194, 0.78);
  letter-spacing: 0.02em;
}

body[data-page="profile"] .profile-hero h1 {
  font-size: clamp(2.2rem, 3.2vw, 3rem);
  line-height: 0.96;
  margin: 0;
  max-width: none;
}

body[data-page="profile"] .profile-identity-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(177, 190, 205, 0.72);
  font-size: 12px;
  line-height: 1.2;
}

body[data-page="profile"] .profile-identity-meta b {
  font-weight: 600;
  color: rgba(235, 241, 247, 0.9);
  margin-left: 4px;
}

body[data-page="profile"] .profile-identity-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
  justify-self: start;
}

body[data-page="profile"] .profile-inline-action {
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(236, 242, 249, 0.88);
  font-size: 11.5px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 180ms linear, transform 180ms linear;
}

body[data-page="profile"] .profile-inline-action:hover,
body[data-page="profile"] .profile-inline-action:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  outline: none;
}

body[data-page="profile"] .account-security-list {
  display: grid;
  gap: 12px;
}

body[data-page="profile"] .account-setting-list {
  display: grid;
  gap: 12px;
}

body[data-page="profile"] .account-setting-list .setting-row,
body[data-page="profile"] .account-security-list .setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

body[data-page="profile"] .account-setting-list .setting-row > span,
body[data-page="profile"] .account-security-list .setting-row > span {
  font-size: 12px;
  line-height: 1.25;
  color: rgba(171, 184, 200, 0.68);
  min-width: 0;
}

body[data-page="profile"] .account-setting-list .setting-row-main,
body[data-page="profile"] .account-security-list .setting-row-main {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  width: 100%;
}

body[data-page="profile"] .account-setting-list .setting-row-main b,
body[data-page="profile"] .account-security-list .setting-row-main b {
  min-width: 0;
  flex: 0 0 auto;
  font-weight: 600;
  color: rgba(239, 244, 250, 0.92);
  white-space: nowrap;
}

body[data-page]:not([data-page="index"]) .layout {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 180ms linear, transform 180ms linear;
}

body[data-page]:not([data-page="index"]):not(.is-app-ready) .layout {
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
}

body[data-page="profile"] .profile-hero,
body[data-page="profile"] .profile-center-shell {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 180ms linear, transform 180ms linear;
}

body[data-page="profile"]:not(.is-profile-ready) .profile-hero,
body[data-page="profile"]:not(.is-profile-ready) .profile-center-shell {
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
}

body[data-page="profile"] .setting-row-toggle {
  justify-content: flex-end;
}

body[data-page="profile"] .setting-toggle-group {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(48px, 1fr));
  align-items: center;
  gap: 4px;
  min-width: 106px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  isolation: isolate;
}

body[data-page="profile"] .setting-toggle-group::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  bottom: 3px;
  width: calc((100% - 10px) / 2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(0);
  transition: transform 220ms linear, background-color 220ms linear;
  z-index: 0;
}

body[data-page="profile"] .setting-toggle-group[data-active="false"]::before {
  transform: translateX(calc(100% + 4px));
}

body[data-page="profile"] .setting-toggle {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 24px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(173, 186, 201, 0.72);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  transition: color 180ms linear, text-shadow 180ms linear;
}

body[data-page="profile"] .setting-toggle.is-active {
  color: rgba(240, 245, 250, 0.94);
}

body[data-page="profile"] .setting-toggle:hover,
body[data-page="profile"] .setting-toggle:focus-visible {
  color: rgba(240, 245, 250, 0.94);
  text-shadow: 0 0 10px rgba(237, 246, 248, 0.12);
  outline: none;
}

body[data-page="profile"] .setting-inline-action {
  min-height: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(219, 229, 238, 0.84);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 180ms linear, transform 180ms linear;
}

body[data-page="profile"] .setting-inline-action:hover,
body[data-page="profile"] .setting-inline-action:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  outline: none;
}

body[data-page="profile"] .setting-inline-action-danger {
  background: rgba(200, 92, 92, 0.10);
  color: #e7a4a4;
}

body[data-page="profile"] .setting-inline-action-danger:hover,
body[data-page="profile"] .setting-inline-action-danger:focus-visible {
  background: rgba(200, 92, 92, 0.16);
  color: #f0b1b1;
}

body[data-page="profile"] .profile-stat-grid {
  display: none;
}

body[data-page="profile"] .profile-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 112px)) minmax(240px, 1fr);
  gap: 8px;
}

body[data-page="profile"] .profile-stat-chip {
  display: grid;
  gap: 6px;
  align-content: center;
  min-height: 72px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

body[data-page="profile"] .profile-stat-chip span {
  font-size: 11px;
  line-height: 1;
  color: rgba(166, 180, 198, 0.68);
}

body[data-page="profile"] .profile-stat-chip strong {
  font-size: 1.95rem;
  line-height: 0.9;
  color: rgba(243, 247, 251, 0.96);
}

body[data-page="profile"] .profile-stat-chip-wide strong {
  font-size: 1.15rem;
  line-height: 1.05;
}

body[data-page="profile"] .profile-records-panel .section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

body[data-page="profile"] .profile-updates-panel .section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

body[data-page="profile"] .profile-updates-panel .section-heading .setting-inline-action {
  margin-left: auto;
}

body[data-page="profile"] .profile-records-panel .section-heading > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

body[data-page="profile"] .profile-updates-panel[hidden] {
  display: none !important;
}

body[data-page="profile"] .profile-updates-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

body[data-page="profile"] .profile-update-list {
  display: grid;
  gap: 10px;
}

body[data-page="profile"] .profile-update-item {
  display: block;
  padding: 14px 16px;
  border-radius: 18px;
  border: 0;
  background: rgba(255, 255, 255, 0.025);
  color: inherit;
  text-decoration: none;
  transition: background-color 180ms linear;
  position: relative;
  z-index: 1;
}

body[data-page="profile"] .profile-update-item:hover,
body[data-page="profile"] .profile-update-item:focus-visible {
  background: rgba(107, 215, 228, 0.05);
  outline: none;
}

body[data-page="profile"] .profile-update-item.is-unread {
  background: rgba(107, 215, 228, 0.06);
}

body[data-page="profile"] .profile-update-item[data-update-type="EVENT_VERIFIED"] {
  background: rgba(184, 216, 186, 0.04);
}

body[data-page="profile"] .profile-update-item[data-update-type="EVENT_VERIFIED"]:hover,
body[data-page="profile"] .profile-update-item[data-update-type="EVENT_VERIFIED"]:focus-visible {
  background: rgba(184, 216, 186, 0.08);
}

body[data-page="profile"] .profile-update-item.is-unread[data-update-type="EVENT_VERIFIED"] {
  background: rgba(184, 216, 186, 0.1);
}

body[data-page="profile"] .profile-update-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title tag"
    "copy tag"
    "copy time";
  column-gap: 12px;
  row-gap: 6px;
  min-width: 0;
  min-height: 72px;
  align-items: start;
}

body[data-page="profile"] .profile-update-titleline {
  grid-area: title;
  display: block;
  min-width: 0;
}

body[data-page="profile"] .profile-update-titleline strong {
  display: block;
  min-width: 0;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(237, 246, 248, 0.94);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-page="profile"] .profile-update-copy p {
  grid-area: copy;
  align-self: end;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(173, 186, 201, 0.82);
}

body[data-page="profile"] .profile-update-time,
body[data-page="profile"] .profile-update-unread {
  font-size: 11.5px;
  line-height: 1.4;
}

body[data-page="profile"] .profile-update-time {
  grid-area: time;
  justify-self: end;
  align-self: end;
  color: rgba(173, 186, 201, 0.68);
  text-align: right;
}

body[data-page="profile"] .profile-update-unread {
  color: var(--accent);
  font-weight: 700;
}

body[data-page="profile"] .profile-update-item[data-update-type="EVENT_VERIFIED"] .profile-update-unread {
  color: var(--accent-2);
}

body[data-page="profile"] .profile-records-panel .filter-tabs.filter-tabs--profile {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  flex: 0 0 auto;
  width: auto;
  min-width: max-content;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  overflow: visible;
}

body[data-page="profile"] .profile-records-panel .profile-filter-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  pointer-events: none;
  z-index: 0;
}

body[data-page="profile"] .profile-records-panel .filter-tabs.filter-tabs--profile button {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  min-width: 74px;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(205, 216, 222, 0.72);
  line-height: 1;
  box-shadow: none;
}

body[data-page="profile"] .profile-records-panel .filter-tabs.filter-tabs--profile button.is-active,
body[data-page="profile"] .profile-records-panel .filter-tabs.filter-tabs--profile button[aria-pressed="true"],
body[data-page="profile"] .profile-records-panel .filter-tabs.filter-tabs--profile button:hover,
body[data-page="profile"] .profile-records-panel .filter-tabs.filter-tabs--profile button:focus-visible {
  background: transparent;
  color: rgba(241, 248, 250, 0.96);
  box-shadow: none;
}

body[data-page="profile"] .topic-update-tag {
  color: rgba(237, 246, 248, 0.92);
  background: rgba(107, 215, 228, 0.12);
}

body[data-page="profile"] .profile-update-item[data-update-type="EVENT_VERIFIED"] .topic-update-tag {
  color: rgba(237, 246, 248, 0.94);
  background: rgba(184, 216, 186, 0.16);
}

body[data-page="profile"] .profile-update-copy > .topic-update-tag {
  grid-area: tag;
  position: static;
  justify-self: end;
  align-self: start;
  width: auto;
  max-width: max-content;
}

body[data-page="profile"] .profile-record-list {
  display: block;
}

body[data-page="profile"] .profile-record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body[data-page="profile"] .profile-record-grid .home-topic-card {
  min-height: 198px;
}

body[data-page="profile"] .profile-record-empty {
  padding: 18px 0 6px;
  font-size: 13px;
  color: rgba(173, 186, 201, 0.72);
}

body[data-page="profile"] .profile-record-pagination {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

body[data-page="profile"] .profile-record-pagination-summary {
  color: rgba(173, 186, 201, 0.72);
  font-size: 12px;
  line-height: 1.5;
}

body[data-page="profile"] .profile-record-pagination-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

body[data-page="profile"] .profile-record-page-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body[data-page="profile"] .profile-record-nav-button,
body[data-page="profile"] .profile-record-page-button {
  min-height: 34px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  color: rgba(221, 231, 235, 0.82);
  background: rgba(255, 255, 255, 0.03);
  font: inherit;
  font-size: 12px;
  line-height: 1;
  transition: background 180ms linear, border-color 180ms linear, color 180ms linear;
}

body[data-page="profile"] .profile-record-page-button {
  width: 34px;
  min-width: 34px;
  padding: 0;
  justify-content: center;
}

body[data-page="profile"] .profile-record-nav-button:hover,
body[data-page="profile"] .profile-record-page-button:hover,
body[data-page="profile"] .profile-record-nav-button:focus-visible,
body[data-page="profile"] .profile-record-page-button:focus-visible {
  color: var(--text);
  background: rgba(107, 215, 228, 0.08);
  outline: none;
}

body[data-page="profile"] .profile-record-page-button.is-active {
  color: var(--text);
  background: rgba(107, 215, 228, 0.12);
}

body[data-page="profile"] .profile-record-nav-button[disabled],
body[data-page="profile"] .profile-record-page-button[disabled] {
  opacity: 0.4;
  cursor: default;
}

body[data-page="profile"] .profile-record-page-gap {
  color: rgba(173, 186, 201, 0.52);
  font-size: 12px;
  letter-spacing: 0.08em;
}

@media (max-width: 1320px) {
  body[data-page="profile"] .profile-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="profile"] .profile-record-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  body[data-page="profile"] .profile-identity {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="profile"] .profile-avatar {
    width: 56px;
    height: 56px;
    min-width: 56px;
  }

  body[data-page="profile"] .profile-stat-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="profile"] .account-setting-list .setting-row,
  body[data-page="profile"] .account-security-list .setting-row {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="profile"] .profile-record-pagination-controls {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* post-shell subpage overrides */
body:not([data-page="index"]) .content { gap: 14px !important; }
body:not([data-page="index"]) :is(.subpage-hero, .analysis-hero, .verified-hero, .submit-hero, .profile-hero) { min-height: 0 !important; padding: 10px 0 4px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; grid-template-columns: minmax(0, 1fr) auto !important; align-items: end !important; gap: 24px !important; }
body:not([data-page="index"]) :is(.subpage-hero, .analysis-hero, .verified-hero, .submit-hero, .profile-hero) h1 { font-size: clamp(24px, 3vw, 36px) !important; line-height: 1.06 !important; max-width: 18ch !important; }
body:not([data-page="index"]) :is(.subpage-hero, .analysis-hero, .verified-hero, .submit-hero, .profile-hero) p { margin-top: 6px !important; font-size: 12.5px !important; line-height: 1.55 !important; color: rgba(198, 211, 216, 0.68) !important; }
body:not([data-page="index"]) :is(.topic-background, .system-view-card, .analysis-panel, .match-panel, .system-prompt-card, .submit-note-panel, .prediction-form, .review-panel, .closest-panel) { border: 0 !important; border-radius: 14px !important; background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.012) 100%) !important; box-shadow: none !important; padding: 14px 16px !important; }
body[data-page="analysis"] .analysis-grid { grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr) !important; gap: 14px !important; }
body[data-page="verified"] .verification-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr) !important; gap: 14px !important; }
body[data-page="analysis"] .representative-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 12px !important; }
body[data-page="analysis"] .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
body[data-page="verified"] .verification-stage { padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; gap: 10px !important; }
body[data-page="verified"] .report-ribbon { padding: 0 !important; border: 0 !important; background: transparent !important; color: rgba(185, 199, 205, 0.58) !important; font-size: 10px !important; letter-spacing: 0.16em !important; }
body[data-page="verified"] .comparison-grid { gap: 10px !important; }
body[data-page="verified"] .closest-user-marquee,
body[data-page="verified"] .closest-user-track { overflow: visible !important; min-height: 0 !important; background: transparent !important; animation: none !important; transform: none !important; }
body[data-page="verified"] .closest-user-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 12px !important; }
body[data-page="verified"] .match-detail h2::before { content: none !important; }
body[data-page="profile"] .profile-dashboard { grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr) !important; gap: 22px !important; }
body[data-page="profile"] .profile-records-panel,
body[data-page="profile"] .profile-chart-panel,
body[data-page="profile"] .account-panel { background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 0 !important; }
body[data-page="profile"] .profile-record-card { padding: 14px 0 !important; border-radius: 0 !important; background: transparent !important; border-top: 1px solid rgba(255, 255, 255, 0.04) !important; }
body[data-page="profile"] .profile-chart-card,
body[data-page="profile"] .account-panel { padding-top: 12px !important; border-top: 1px solid rgba(255, 255, 255, 0.045) !important; }
body[data-page="submit-step1"] .submit-workbench,
body[data-page="submit-step2"] .submit-step2-layout { grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1fr) !important; gap: 16px !important; align-items: start !important; }
body[data-page="submit-step1"] .system-prompt-card,
body[data-page="submit-step1"] .submit-note-panel,
body[data-page="submit-step1"] .prediction-form,
body[data-page="submit-step2"] .review-panel,
body[data-page="submit-step2"] .prediction-form { padding: 16px 18px !important; }
body[data-page="submit-step1"] .compact-prompt .prompt-box { border: 0 !important; border-radius: 10px !important; background: rgba(7, 12, 17, 0.52) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035) !important; }
body[data-page="submit-step1"] .prediction-form .form-head,
body[data-page="submit-step2"] .prediction-form .form-head { padding-bottom: 10px !important; border-bottom: 1px solid rgba(255, 255, 255, 0.045) !important; }
body[data-page="stage"] .subpage-market-section .market-board-head,
body[data-page="search"] .subpage-market-section .market-board-head { padding-bottom: 8px !important; border-bottom: 1px solid rgba(255, 255, 255, 0.045) !important; }
body[data-page="stage"] .pagination,
body[data-page="search"] .pagination,
body[data-page="stage"] .pagination button,
body[data-page="search"] .pagination button { border: 0 !important; box-shadow: none !important; background: transparent !important; }
@media (max-width: 1280px) { body[data-page="analysis"] .representative-grid, body[data-page="verified"] .closest-user-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 1180px) { body[data-page="analysis"] .analysis-grid, body[data-page="verified"] .verification-grid, body[data-page="profile"] .profile-dashboard, body[data-page="submit-step1"] .submit-workbench, body[data-page="submit-step2"] .submit-step2-layout { grid-template-columns: 1fr !important; } }
@media (max-width: 760px) { body[data-page="analysis"] .representative-grid, body[data-page="analysis"] .category-grid, body[data-page="verified"] .closest-user-grid { grid-template-columns: 1fr !important; } }

body:not([data-page="index"]) .content { gap: 14px !important; }
body:not([data-page="index"]) :is(.subpage-hero, .analysis-hero, .verified-hero, .submit-hero, .profile-hero) { min-height: 0 !important; padding: 10px 0 4px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; grid-template-columns: minmax(0, 1fr) auto !important; align-items: end !important; gap: 24px !important; }
body:not([data-page="index"]) :is(.subpage-hero, .analysis-hero, .verified-hero, .submit-hero, .profile-hero) h1 { font-size: clamp(24px, 3vw, 36px) !important; line-height: 1.06 !important; max-width: 18ch !important; }
body:not([data-page="index"]) :is(.subpage-hero, .analysis-hero, .verified-hero, .submit-hero, .profile-hero) p { margin-top: 6px !important; font-size: 12.5px !important; line-height: 1.55 !important; color: rgba(198, 211, 216, 0.68) !important; }
body:not([data-page="index"]) :is(.topic-background, .system-view-card, .analysis-panel, .match-panel, .system-prompt-card, .submit-note-panel, .prediction-form, .review-panel, .closest-panel) { border: 0 !important; border-radius: 14px !important; background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.012) 100%) !important; box-shadow: none !important; padding: 14px 16px !important; }
body[data-page="analysis"] .analysis-grid { grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr) !important; gap: 14px !important; }
body[data-page="verified"] .verification-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr) !important; gap: 14px !important; }
body[data-page="analysis"] .representative-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 12px !important; }
body[data-page="analysis"] .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
body[data-page="verified"] .verification-stage { padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; gap: 10px !important; }
body[data-page="verified"] .report-ribbon { padding: 0 !important; border: 0 !important; background: transparent !important; color: rgba(185, 199, 205, 0.58) !important; font-size: 10px !important; letter-spacing: 0.16em !important; }
body[data-page="verified"] .comparison-grid { gap: 10px !important; }
body[data-page="verified"] .closest-user-marquee,
body[data-page="verified"] .closest-user-track { overflow: visible !important; min-height: 0 !important; background: transparent !important; animation: none !important; transform: none !important; }
body[data-page="verified"] .closest-user-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 12px !important; }
body[data-page="verified"] .match-detail h2::before { content: none !important; }
body[data-page="profile"] .profile-dashboard { grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr) !important; gap: 22px !important; }
body[data-page="profile"] .profile-records-panel,
body[data-page="profile"] .profile-chart-panel,
body[data-page="profile"] .account-panel { background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 0 !important; }
body[data-page="profile"] .profile-record-card { padding: 14px 0 !important; border-radius: 0 !important; background: transparent !important; border-top: 1px solid rgba(255, 255, 255, 0.04) !important; }
body[data-page="profile"] .profile-chart-card,
body[data-page="profile"] .account-panel { padding-top: 12px !important; border-top: 1px solid rgba(255, 255, 255, 0.045) !important; }
body[data-page="submit-step1"] .submit-workbench,
body[data-page="submit-step2"] .submit-step2-layout { grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1fr) !important; gap: 16px !important; align-items: start !important; }
body[data-page="submit-step1"] .system-prompt-card,
body[data-page="submit-step1"] .submit-note-panel,
body[data-page="submit-step1"] .prediction-form,
body[data-page="submit-step2"] .review-panel,
body[data-page="submit-step2"] .prediction-form { padding: 16px 18px !important; }
body[data-page="submit-step1"] .compact-prompt .prompt-box { border: 0 !important; border-radius: 10px !important; background: rgba(7, 12, 17, 0.52) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035) !important; }
body[data-page="submit-step1"] .prediction-form .form-head,
body[data-page="submit-step2"] .prediction-form .form-head { padding-bottom: 10px !important; border-bottom: 1px solid rgba(255, 255, 255, 0.045) !important; }
body[data-page="stage"] .subpage-market-section .market-board-head,
body[data-page="search"] .subpage-market-section .market-board-head { padding-bottom: 8px !important; border-bottom: 1px solid rgba(255, 255, 255, 0.045) !important; }
body[data-page="stage"] .pagination,
body[data-page="search"] .pagination,
body[data-page="stage"] .pagination button,
body[data-page="search"] .pagination button { border: 0 !important; box-shadow: none !important; background: transparent !important; }
@media (max-width: 1280px) { body[data-page="analysis"] .representative-grid, body[data-page="verified"] .closest-user-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 1180px) { body[data-page="analysis"] .analysis-grid, body[data-page="verified"] .verification-grid, body[data-page="profile"] .profile-dashboard, body[data-page="submit-step1"] .submit-workbench, body[data-page="submit-step2"] .submit-step2-layout { grid-template-columns: 1fr !important; } }
@media (max-width: 760px) { body[data-page="analysis"] .representative-grid, body[data-page="analysis"] .category-grid, body[data-page="verified"] .closest-user-grid { grid-template-columns: 1fr !important; } }

/* true EOF override layer */
body:not([data-page="index"]) .content { gap: 14px !important; }
body:not([data-page="index"]) :is(.subpage-hero, .analysis-hero, .verified-hero, .submit-hero, .profile-hero) {
  min-height: 0 !important;
  padding: 10px 0 4px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: end !important;
  gap: 24px !important;
}
body:not([data-page="index"]) :is(.subpage-hero, .analysis-hero, .verified-hero, .submit-hero, .profile-hero) h1 {
  font-size: clamp(24px, 3vw, 36px) !important;
  line-height: 1.06 !important;
  max-width: 18ch !important;
}
body:not([data-page="index"]) :is(.subpage-hero, .analysis-hero, .verified-hero, .submit-hero, .profile-hero) p {
  margin-top: 6px !important;
  font-size: 12.5px !important;
  line-height: 1.55 !important;
  color: rgba(198, 211, 216, 0.68) !important;
}
body:not([data-page="index"]) :is(.topic-background, .system-view-card, .analysis-panel, .match-panel, .system-prompt-card, .submit-note-panel, .prediction-form, .review-panel, .closest-panel) {
  border: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.012) 100%) !important;
  box-shadow: none !important;
  padding: 14px 16px !important;
}
body[data-page="analysis"] .analysis-grid { grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr) !important; gap: 14px !important; }
body[data-page="verified"] .verification-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr) !important; gap: 14px !important; }
body[data-page="analysis"] .representative-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 12px !important; }
body[data-page="analysis"] .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
body[data-page="verified"] .verification-stage { padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; gap: 10px !important; }
body[data-page="verified"] .report-ribbon { padding: 0 !important; border: 0 !important; background: transparent !important; color: rgba(185, 199, 205, 0.58) !important; font-size: 10px !important; letter-spacing: 0.16em !important; }
body[data-page="verified"] .comparison-grid { gap: 10px !important; }
body[data-page="verified"] .closest-user-marquee,
body[data-page="verified"] .closest-user-track { overflow: visible !important; min-height: 0 !important; background: transparent !important; animation: none !important; transform: none !important; }
body[data-page="verified"] .closest-user-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 12px !important; }
body[data-page="verified"] .match-detail h2::before { content: none !important; }
body[data-page="profile"] .profile-dashboard { grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr) !important; gap: 22px !important; }
body[data-page="profile"] .profile-records-panel,
body[data-page="profile"] .profile-chart-panel,
body[data-page="profile"] .account-panel { background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 0 !important; }
body[data-page="profile"] .profile-record-card { padding: 14px 0 !important; border-radius: 0 !important; background: transparent !important; border-top: 1px solid rgba(255, 255, 255, 0.04) !important; }
body[data-page="profile"] .profile-chart-card,
body[data-page="profile"] .account-panel { padding-top: 12px !important; border-top: 1px solid rgba(255, 255, 255, 0.045) !important; }
body[data-page="submit-step1"] .submit-workbench,
body[data-page="submit-step2"] .submit-step2-layout { grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1fr) !important; gap: 16px !important; align-items: start !important; }
body[data-page="submit-step1"] .system-prompt-card,
body[data-page="submit-step1"] .submit-note-panel,
body[data-page="submit-step1"] .prediction-form,
body[data-page="submit-step2"] .review-panel,
body[data-page="submit-step2"] .prediction-form { padding: 16px 18px !important; }
body[data-page="submit-step1"] .compact-prompt .prompt-box { border: 0 !important; border-radius: 10px !important; background: rgba(7, 12, 17, 0.52) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035) !important; }
body[data-page="submit-step1"] .prediction-form .form-head,
body[data-page="submit-step2"] .prediction-form .form-head { padding-bottom: 10px !important; border-bottom: 1px solid rgba(255, 255, 255, 0.045) !important; }
body[data-page="stage"] .subpage-market-section .market-board-head,
body[data-page="search"] .subpage-market-section .market-board-head { padding-bottom: 8px !important; border-bottom: 1px solid rgba(255, 255, 255, 0.045) !important; }
body[data-page="stage"] .pagination,
body[data-page="search"] .pagination,
body[data-page="stage"] .pagination button,
body[data-page="search"] .pagination button { border: 0 !important; box-shadow: none !important; background: transparent !important; }
@media (max-width: 1280px) {
  body[data-page="analysis"] .representative-grid,
  body[data-page="verified"] .closest-user-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 1180px) {
  body[data-page="analysis"] .analysis-grid,
  body[data-page="verified"] .verification-grid,
  body[data-page="profile"] .profile-dashboard,
  body[data-page="submit-step1"] .submit-workbench,
  body[data-page="submit-step2"] .submit-step2-layout { grid-template-columns: 1fr !important; }
}
@media (max-width: 760px) {
  body[data-page="analysis"] .representative-grid,
  body[data-page="analysis"] .category-grid,
  body[data-page="verified"] .closest-user-grid { grid-template-columns: 1fr !important; }
}

/* eof subpage override lock */
body:not([data-page="index"]) .content {
  gap: 14px !important;
}

body:not([data-page="index"]) :is(.subpage-hero, .analysis-hero, .verified-hero, .submit-hero, .profile-hero) {
  min-height: 0 !important;
  padding: 10px 0 4px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: end !important;
  gap: 24px !important;
}

body:not([data-page="index"]) :is(.subpage-hero, .analysis-hero, .verified-hero, .submit-hero, .profile-hero) h1 {
  font-size: clamp(24px, 3vw, 36px) !important;
  line-height: 1.06 !important;
  max-width: 18ch !important;
}

body:not([data-page="index"]) :is(.subpage-hero, .analysis-hero, .verified-hero, .submit-hero, .profile-hero) p {
  margin-top: 6px !important;
  font-size: 12.5px !important;
  line-height: 1.55 !important;
  color: rgba(198, 211, 216, 0.68) !important;
}

body:not([data-page="index"]) :is(.topic-background, .system-view-card, .analysis-panel, .match-panel, .system-prompt-card, .submit-note-panel, .prediction-form, .review-panel, .closest-panel) {
  border: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.012) 100%) !important;
  box-shadow: none !important;
}

body:not([data-page="index"]) :is(.topic-background, .system-view-card, .match-panel, .system-prompt-card, .submit-note-panel, .prediction-form, .review-panel, .closest-panel) {
  padding: 14px 16px !important;
}

body[data-page="analysis"] .analysis-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr) !important;
  gap: 14px !important;
}

body[data-page="verified"] .verification-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr) !important;
  gap: 14px !important;
}

body[data-page="analysis"] .representative-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body[data-page="analysis"] .category-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body[data-page="verified"] .verification-stage {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  gap: 10px !important;
}

body[data-page="verified"] .report-ribbon {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(185, 199, 205, 0.58) !important;
  font-size: 10px !important;
  letter-spacing: 0.16em !important;
}

body[data-page="verified"] .comparison-grid {
  gap: 10px !important;
}

body[data-page="verified"] .closest-user-marquee,
body[data-page="verified"] .closest-user-track {
  overflow: visible !important;
  min-height: 0 !important;
  background: transparent !important;
  animation: none !important;
  transform: none !important;
}

body[data-page="verified"] .closest-user-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body[data-page="verified"] .match-detail h2::before {
  content: none !important;
}

body[data-page="profile"] .profile-dashboard {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr) !important;
  gap: 22px !important;
}

body[data-page="profile"] .profile-records-panel,
body[data-page="profile"] .profile-chart-panel,
body[data-page="profile"] .account-panel {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body[data-page="profile"] .profile-record-card {
  padding: 14px 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
}

body[data-page="profile"] .profile-chart-card,
body[data-page="profile"] .account-panel {
  padding-top: 12px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.045) !important;
}

body[data-page="submit-step1"] .submit-workbench,
body[data-page="submit-step2"] .submit-step2-layout {
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: start !important;
}

body[data-page="submit-step1"] .system-prompt-card,
body[data-page="submit-step1"] .submit-note-panel,
body[data-page="submit-step1"] .prediction-form,
body[data-page="submit-step2"] .review-panel,
body[data-page="submit-step2"] .prediction-form {
  padding: 16px 18px !important;
}

body[data-page="submit-step1"] .compact-prompt .prompt-box {
  border: 0 !important;
  border-radius: 10px !important;
  background: rgba(7, 12, 17, 0.52) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035) !important;
}

body[data-page="submit-step1"] .prediction-form .form-head,
body[data-page="submit-step2"] .prediction-form .form-head {
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045) !important;
}

body[data-page="stage"] .subpage-market-section .market-board-head,
body[data-page="search"] .subpage-market-section .market-board-head {
  padding-bottom: 8px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045) !important;
}

body[data-page="stage"] .pagination,
body[data-page="search"] .pagination,
body[data-page="stage"] .pagination button,
body[data-page="search"] .pagination button {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* submit-step1 absolute final lock */
body[data-page="submit-step1"] .submit-hero {
  grid-template-columns: minmax(0, 1fr) 208px !important;
  align-items: start !important;
  gap: 18px !important;
}

body[data-page="submit-step1"] .submit-hero > :first-child {
  min-width: 0 !important;
}

body[data-page="submit-step1"] .submit-hero h1 {
  max-width: none !important;
  width: 100% !important;
  font-size: clamp(28px, 3.9vw, 48px) !important;
  line-height: 1.03 !important;
  text-wrap: auto !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

body[data-page="submit-step1"] .verified-summary {
  align-self: start !important;
}

body[data-page="submit-step1"] .submit-summary-countdown {
  transform: translateY(1.5px) !important;
}

body[data-page="submit-step1"] .verified-background-panel {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

body[data-page="submit-step1"] .topic-background-copy {
  flex: 0 0 auto !important;
}

body[data-page="submit-step1"] .topic-background-visual-wrap {
  margin-top: auto !important;
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: flex-end !important;
  min-height: 436px !important;
}

body[data-page="submit-step1"] .topic-background-visual {
  min-height: 436px !important;
  flex: 1 1 auto !important;
}

body[data-page="submit-step1"] .submit-prompt-block {
  gap: 12px !important;
}

body[data-page="submit-step1"] .submit-prompt-head {
  align-items: flex-start !important;
  justify-content: flex-start !important;
}

body[data-page="submit-step1"] .submit-prompt-actions {
  display: flex !important;
  justify-content: flex-end !important;
  margin-top: 2px !important;
}

body[data-page="submit-step1"] .submit-prompt-actions .btn {
  border: 0 !important;
  box-shadow: none !important;
}

body[data-page="submit-step1"] .submit-model-grid {
  gap: 10px !important;
}

body[data-page="submit-step1"] .submit-model-chip {
  min-height: 36px !important;
  padding: 0 14px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

body[data-page="submit-step1"] .submit-predict-panel textarea#aiReasoning {
  min-height: 300px !important;
  max-height: 300px !important;
  resize: none !important;
}

@media (max-width: 1280px) {
  body[data-page="analysis"] .representative-grid,
  body[data-page="verified"] .closest-user-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1180px) {
  body[data-page="analysis"] .analysis-grid,
  body[data-page="verified"] .verification-grid,
  body[data-page="profile"] .profile-dashboard,
  body[data-page="submit-step1"] .submit-workbench,
  body[data-page="submit-step2"] .submit-step2-layout {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  body[data-page="analysis"] .representative-grid,
  body[data-page="analysis"] .category-grid,
  body[data-page="verified"] .closest-user-grid {
    grid-template-columns: 1fr !important;
  }
}

/* absolute final subpage overrides */
body:not([data-page="index"]) .content {
  gap: 14px !important;
}

body:not([data-page="index"]) :is(.subpage-hero, .analysis-hero, .verified-hero, .submit-hero, .profile-hero) {
  min-height: 0 !important;
  padding: 10px 0 4px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: end !important;
  gap: 24px !important;
}

body:not([data-page="index"]) :is(.subpage-hero, .analysis-hero, .verified-hero, .submit-hero, .profile-hero) h1 {
  font-size: clamp(24px, 3vw, 36px) !important;
  line-height: 1.06 !important;
  max-width: 18ch !important;
}

body:not([data-page="index"]) :is(.subpage-hero, .analysis-hero, .verified-hero, .submit-hero, .profile-hero) p {
  margin-top: 6px !important;
  font-size: 12.5px !important;
  line-height: 1.55 !important;
  color: rgba(198, 211, 216, 0.68) !important;
}

body:not([data-page="index"]) :is(.topic-background, .system-view-card, .analysis-panel, .match-panel, .system-prompt-card, .submit-note-panel, .prediction-form, .review-panel, .closest-panel) {
  border: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.012) 100%) !important;
  box-shadow: none !important;
}

body:not([data-page="index"]) :is(.topic-background, .system-view-card, .match-panel, .system-prompt-card, .submit-note-panel, .prediction-form, .review-panel, .closest-panel) {
  padding: 14px 16px !important;
}

body[data-page="analysis"] .analysis-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr) !important;
  gap: 14px !important;
}

body[data-page="verified"] .verification-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr) !important;
  gap: 14px !important;
}

body[data-page="analysis"] .representative-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body[data-page="analysis"] .category-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body[data-page="verified"] .verification-stage {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  gap: 10px !important;
}

body[data-page="verified"] .report-ribbon {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(185, 199, 205, 0.58) !important;
  font-size: 10px !important;
  letter-spacing: 0.16em !important;
}

body[data-page="verified"] .comparison-grid {
  gap: 10px !important;
}

body[data-page="verified"] .closest-user-marquee,
body[data-page="verified"] .closest-user-track {
  overflow: visible !important;
  min-height: 0 !important;
  background: transparent !important;
  animation: none !important;
  transform: none !important;
}

body[data-page="verified"] .closest-user-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body[data-page="verified"] .match-detail h2::before {
  content: none !important;
}

body[data-page="profile"] .profile-dashboard {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr) !important;
  gap: 22px !important;
}

body[data-page="profile"] .profile-records-panel,
body[data-page="profile"] .profile-chart-panel,
body[data-page="profile"] .account-panel {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body[data-page="profile"] .profile-record-card {
  padding: 14px 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
}

body[data-page="profile"] .profile-chart-card,
body[data-page="profile"] .account-panel {
  padding-top: 12px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.045) !important;
}

body[data-page="submit-step1"] .submit-workbench,
body[data-page="submit-step2"] .submit-step2-layout {
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: start !important;
}

body[data-page="submit-step1"] .system-prompt-card,
body[data-page="submit-step1"] .submit-note-panel,
body[data-page="submit-step1"] .prediction-form,
body[data-page="submit-step2"] .review-panel,
body[data-page="submit-step2"] .prediction-form {
  padding: 16px 18px !important;
}

body[data-page="submit-step1"] .compact-prompt .prompt-box {
  border: 0 !important;
  border-radius: 10px !important;
  background: rgba(7, 12, 17, 0.52) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035) !important;
}

body[data-page="submit-step1"] .prediction-form .form-head,
body[data-page="submit-step2"] .prediction-form .form-head {
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045) !important;
}

body[data-page="stage"] .subpage-market-section .market-board-head,
body[data-page="search"] .subpage-market-section .market-board-head {
  padding-bottom: 8px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045) !important;
}

body[data-page="stage"] .pagination,
body[data-page="search"] .pagination,
body[data-page="stage"] .pagination button,
body[data-page="search"] .pagination button {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

@media (max-width: 1280px) {
  body[data-page="analysis"] .representative-grid,
  body[data-page="verified"] .closest-user-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1180px) {
  body[data-page="analysis"] .analysis-grid,
  body[data-page="verified"] .verification-grid,
  body[data-page="profile"] .profile-dashboard,
  body[data-page="submit-step1"] .submit-workbench,
  body[data-page="submit-step2"] .submit-step2-layout {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  body[data-page="analysis"] .representative-grid,
  body[data-page="analysis"] .category-grid,
  body[data-page="verified"] .closest-user-grid {
    grid-template-columns: 1fr !important;
  }
}

/* final subpage override layer */
body:not([data-page="index"]) .content {
  gap: 14px;
}

body:not([data-page="index"]) :is(.subpage-hero, .analysis-hero, .verified-hero, .submit-hero, .profile-hero) {
  min-height: 0 !important;
  padding: 10px 0 4px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: end !important;
  gap: 24px !important;
}

body:not([data-page="index"]) :is(.subpage-hero, .analysis-hero, .verified-hero, .submit-hero, .profile-hero) h1 {
  font-size: clamp(24px, 3vw, 36px) !important;
  line-height: 1.06 !important;
  max-width: 18ch !important;
}

body:not([data-page="index"]) :is(.subpage-hero, .analysis-hero, .verified-hero, .submit-hero, .profile-hero) p {
  margin-top: 6px !important;
  font-size: 12.5px !important;
  line-height: 1.55 !important;
  color: rgba(198, 211, 216, 0.68) !important;
}

body:not([data-page="index"]) :is(.topic-background, .system-view-card, .analysis-panel, .match-panel, .system-prompt-card, .submit-note-panel, .prediction-form, .review-panel, .closest-panel) {
  border: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.012) 100%) !important;
  box-shadow: none !important;
}

body:not([data-page="index"]) :is(.topic-background, .system-view-card, .match-panel, .system-prompt-card, .submit-note-panel, .prediction-form, .review-panel, .closest-panel) {
  padding: 14px 16px !important;
}

body[data-page="analysis"] .analysis-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr) !important;
  gap: 14px !important;
}

body[data-page="verified"] .verification-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr) !important;
  gap: 14px !important;
}

body[data-page="analysis"] .analysis-panel,
body[data-page="verified"] .analysis-panel {
  padding: 14px 16px !important;
  gap: 12px !important;
}

body[data-page="analysis"] .analysis-panel .section-heading,
body[data-page="verified"] .analysis-panel .section-heading,
body[data-page="verified"] .closest-panel .section-heading,
body[data-page="profile"] .profile-records-panel .section-heading,
body[data-page="profile"] .profile-chart-panel .section-heading,
body[data-page="profile"] .account-panel .section-heading {
  min-height: 0 !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045) !important;
}

body[data-page="analysis"] .rank-row,
body[data-page="verified"] .rank-row {
  min-height: 42px !important;
  padding: 8px 0 !important;
}

body[data-page="analysis"] .chart-card,
body[data-page="analysis"] .category-card,
body[data-page="analysis"] .representative-card,
body[data-page="verified"] .chart-card,
body[data-page="verified"] .comparison-card,
body[data-page="verified"] .closest-user-card,
body[data-page="profile"] .profile-chart-card,
body[data-page="profile"] .profile-record-card {
  border: 0 !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.022) !important;
  box-shadow: none !important;
}

body[data-page="analysis"] .representative-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body[data-page="analysis"] .category-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body[data-page="verified"] .verification-stage {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  gap: 10px !important;
}

body[data-page="verified"] .report-ribbon {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(185, 199, 205, 0.58) !important;
  font-size: 10px !important;
  letter-spacing: 0.16em !important;
}

body[data-page="verified"] .comparison-grid {
  gap: 10px !important;
}

body[data-page="verified"] .closest-user-marquee,
body[data-page="verified"] .closest-user-track {
  overflow: visible !important;
  min-height: 0 !important;
  background: transparent !important;
  animation: none !important;
  transform: none !important;
}

body[data-page="verified"] .closest-user-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body[data-page="verified"] .match-detail h2::before {
  content: none !important;
}

body[data-page="profile"] .profile-dashboard {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr) !important;
  gap: 22px !important;
}

body[data-page="profile"] .profile-records-panel,
body[data-page="profile"] .profile-chart-panel,
body[data-page="profile"] .account-panel {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body[data-page="profile"] .profile-record-card {
  padding: 14px 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
}

body[data-page="profile"] .profile-chart-card,
body[data-page="profile"] .account-panel {
  padding-top: 12px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.045) !important;
}

body[data-page="submit-step1"] .submit-workbench,
body[data-page="submit-step2"] .submit-step2-layout {
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: start !important;
}

body[data-page="submit-step1"] .system-prompt-card,
body[data-page="submit-step1"] .submit-note-panel,
body[data-page="submit-step1"] .prediction-form,
body[data-page="submit-step2"] .review-panel,
body[data-page="submit-step2"] .prediction-form {
  padding: 16px 18px !important;
}

body[data-page="submit-step1"] .compact-prompt .prompt-box {
  border: 0 !important;
  border-radius: 10px !important;
  background: rgba(7, 12, 17, 0.52) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035) !important;
}

body[data-page="submit-step1"] .prediction-form .form-head,
body[data-page="submit-step2"] .prediction-form .form-head {
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045) !important;
}

body[data-page="stage"] .subpage-market-section .market-board-head,
body[data-page="search"] .subpage-market-section .market-board-head {
  padding-bottom: 8px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045) !important;
}

body[data-page="stage"] .pagination,
body[data-page="search"] .pagination,
body[data-page="stage"] .pagination button,
body[data-page="search"] .pagination button {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

@media (max-width: 1280px) {
  body[data-page="analysis"] .representative-grid,
  body[data-page="verified"] .closest-user-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1180px) {
  body[data-page="analysis"] .analysis-grid,
  body[data-page="verified"] .verification-grid,
  body[data-page="profile"] .profile-dashboard,
  body[data-page="submit-step1"] .submit-workbench,
  body[data-page="submit-step2"] .submit-step2-layout {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  body[data-page="analysis"] .representative-grid,
  body[data-page="analysis"] .category-grid,
  body[data-page="verified"] .closest-user-grid {
    grid-template-columns: 1fr !important;
  }
}

/* global small-control optical centering */
:where(
  .btn,
  .btn-mini,
  .tag,
  .status-pill,
  .risk-pill,
  .search-query-chip,
  .market-card-action,
  .rank-tabs button
) {
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  line-height: 1.06;
  text-align: center;
  vertical-align: middle;
}

:where(
  .btn,
  .btn-mini,
  .tag,
  .status-pill,
  .risk-pill,
  .search-query-chip,
  .market-card-action
) {
  padding-block: 0 !important;
}

:where(
  .btn,
  .btn-mini,
  .tag,
  .status-pill,
  .risk-pill,
  .search-query-chip,
  .market-card-action,
  .rank-tabs button
) > :where(span, strong, b, em, small) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.06;
}

:where(.tag, .status-pill, .risk-pill, .search-query-chip) {
  white-space: nowrap;
}

:where(.btn, .btn-mini, .market-card-action) {
  white-space: nowrap;
}

[data-page="submit-step1"] .content {
  gap: 20px;
}

[data-page="submit-step1"] .submit-hero {
  align-items: flex-start !important;
  min-height: 0 !important;
  padding: 14px 0 16px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

[data-page="submit-step1"] .submit-hero > :first-child {
  min-width: 0;
  flex: 1 1 auto;
}

[data-page="submit-step1"] .submit-hero h1 {
  max-width: 940px;
  margin: 10px 0 0;
  font-size: clamp(34px, 4.1vw, 60px) !important;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

[data-page="submit-step1"] .submit-hero p {
  max-width: 760px;
  margin-top: 12px !important;
  color: rgba(196, 212, 216, 0.74);
  font-size: 13px !important;
  line-height: 1.62 !important;
}

[data-page="submit-step1"] .submit-topic-meta {
  align-content: start;
  justify-items: start;
  min-width: 188px;
  padding: 2px 0 0 22px !important;
  border: 0 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

[data-page="submit-step1"] .submit-topic-meta strong {
  font-size: 38px !important;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

[data-page="submit-step1"] .submit-topic-meta small {
  color: rgba(196, 212, 216, 0.58);
  font-size: 11px;
}

[data-page="submit-step1"] .submit-background-strip {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 10px 26px;
  padding: 2px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

[data-page="submit-step1"] .submit-background-strip h2 {
  grid-column: 1;
  grid-row: 1 / span 4;
  margin: 0;
  font-size: 15px !important;
  line-height: 1.1;
}

[data-page="submit-step1"] .submit-background-strip p {
  grid-column: 2;
  max-width: 980px;
  margin: 0 !important;
  color: rgba(196, 212, 216, 0.68);
  font-size: 13px !important;
  line-height: 1.62 !important;
}

[data-page="submit-step1"] .submit-workbench {
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr) !important;
  gap: 28px !important;
  align-items: start;
}

[data-page="submit-step1"] .submit-guide {
  gap: 18px !important;
}

[data-page="submit-step1"] .compact-prompt {
  position: relative;
  padding: 20px 22px 22px !important;
  border: 0 !important;
  border-radius: 18px !important;
  background:
    linear-gradient(180deg, rgba(11, 22, 30, 0.96), rgba(5, 13, 18, 0.96)),
    radial-gradient(circle at 100% 0, rgba(107, 215, 228, 0.08), transparent 36%) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

[data-page="submit-step1"] .compact-prompt::before {
  opacity: 0.26;
}

[data-page="submit-step1"] .prompt-card-header {
  align-items: flex-start;
  gap: 14px;
}

[data-page="submit-step1"] .prompt-card-header h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

[data-page="submit-step1"] .compact-prompt > p {
  max-width: 34ch;
  margin: -2px 0 0;
  color: rgba(196, 212, 216, 0.62);
  font-size: 12px;
  line-height: 1.58;
}

[data-page="submit-step1"] .compact-prompt .prompt-box {
  max-height: none;
  min-height: 304px;
  padding: 18px 18px 20px;
  border: 0 !important;
  border-radius: 14px !important;
  background:
    linear-gradient(180deg, rgba(5, 12, 18, 0.98), rgba(8, 16, 23, 0.92)),
    linear-gradient(90deg, rgba(107, 215, 228, 0.02), rgba(107, 215, 228, 0) 22%) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
  color: rgba(224, 241, 245, 0.9);
  font-size: 12.5px;
  line-height: 1.76;
}

[data-page="submit-step1"] .submit-note-panel {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

[data-page="submit-step1"] .submit-note-panel h2 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.1;
}

[data-page="submit-step1"] .submit-note-panel .field-guide-list {
  margin: 0;
  gap: 0;
}

[data-page="submit-step1"] .submit-note-panel .field-guide-list li {
  padding: 12px 0 !important;
  border: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

[data-page="submit-step1"] .submit-note-panel .field-guide-list li:first-child {
  border-top-color: transparent !important;
}

[data-page="submit-step1"] .prediction-form {
  padding: 20px 24px 22px !important;
  border: 0 !important;
  border-radius: 18px !important;
  background:
    linear-gradient(180deg, rgba(9, 20, 27, 0.98), rgba(5, 12, 18, 0.96)),
    radial-gradient(circle at 100% 0, rgba(107, 215, 228, 0.055), transparent 34%) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.028) !important;
}

[data-page="submit-step1"] .form-head {
  gap: 6px;
  padding: 0 0 14px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

[data-page="submit-step1"] .form-head h2 {
  margin: 0;
  font-size: 20px !important;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

[data-page="submit-step1"] .form-head p {
  max-width: 42ch;
  margin: 0;
  color: rgba(196, 212, 216, 0.62);
  font-size: 12.5px !important;
  line-height: 1.55 !important;
}

[data-page="submit-step1"] .prediction-form .field {
  gap: 9px;
}

[data-page="submit-step1"] .prediction-form .field label {
  font-size: 11px;
  color: rgba(214, 229, 232, 0.86);
}

[data-page="submit-step1"] .prediction-form .field input,
[data-page="submit-step1"] .prediction-form .field select,
[data-page="submit-step1"] .prediction-form .field textarea {
  border: 0 !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.035) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07) !important;
}

[data-page="submit-step1"] .prediction-form .field select {
  min-height: 44px;
}

[data-page="submit-step1"] .prediction-form textarea#userPrompt {
  min-height: 148px;
}

[data-page="submit-step1"] .prediction-form textarea#aiReasoning {
  min-height: 208px;
}

[data-page="submit-step1"] .prediction-form .field small {
  color: rgba(196, 212, 216, 0.56);
  font-size: 11px;
}

[data-page="submit-step1"] .prediction-form .count-hint {
  color: rgba(107, 215, 228, 0.88);
}

[data-page="submit-step1"] .prediction-form .form-alert {
  padding: 0 0 0 14px !important;
  border: 0 !important;
  border-left: 1px solid rgba(231, 177, 88, 0.5) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

[data-page="submit-step1"] .prediction-form .button-row {
  margin-top: 8px;
}

[data-page="submit-step1"] .prediction-form .button-row .btn.primary {
  min-height: 40px;
  padding-inline: 16px;
}

@media (max-width: 1120px) {
  [data-page="submit-step1"] .submit-workbench {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }

  [data-page="submit-step1"] .submit-background-strip {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  [data-page="submit-step1"] .submit-background-strip h2,
  [data-page="submit-step1"] .submit-background-strip p {
    grid-column: auto;
    grid-row: auto;
  }

  [data-page="submit-step1"] .submit-topic-meta {
    min-width: 0;
    padding: 14px 0 0 !important;
    border-left: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  }
}

@media (max-width: 760px) {
  [data-page="submit-step1"] .submit-hero {
    gap: 16px;
  }

  [data-page="submit-step1"] .prediction-form,
  [data-page="submit-step1"] .compact-prompt {
    padding: 18px 18px 20px !important;
    border-radius: 16px !important;
  }

  [data-page="submit-step1"] .compact-prompt .prompt-box {
    min-height: 252px;
  }
}

body:not([data-page="index"]) .market-topbar.subpage-topbar .user-trigger:hover,
body:not([data-page="index"]) .market-topbar.subpage-topbar .user-trigger:focus-visible {
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

body:not([data-page="index"]) .app-shell {
  padding-top: 68px;
}

body:not([data-page="index"]) .layout {
  padding-top: 14px;
}

body:not([data-page="index"]) .content {
  gap: 18px;
}

body:not([data-page="index"]) .page-backbar {
  margin-bottom: 0;
  padding: 0;
}

body:not([data-page="index"]) .btn.ghost-back {
  min-height: 28px;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: rgba(196, 212, 216, 0.72);
  background: transparent;
}

body:not([data-page="index"]) .btn.ghost-back:hover,
body:not([data-page="index"]) .btn.ghost-back:focus-visible {
  color: var(--text);
  background: transparent;
}

body:not([data-page="index"]) .btn.ghost-back::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-right: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-right: 6px solid currentColor;
  transform: translateY(0.02em);
}

.subpage-hero,
body:not([data-page="index"]) .trust-hero,
body:not([data-page="index"]) .search-hero,
body:not([data-page="index"]) .analysis-hero,
body:not([data-page="index"]) .verified-hero,
body:not([data-page="index"]) .submit-hero,
body:not([data-page="index"]) .profile-hero,
body:not([data-page="index"]) .admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  min-height: 0;
  padding: 0 0 16px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.subpage-hero h1,
body:not([data-page="index"]) .trust-hero h1,
body:not([data-page="index"]) .search-hero h1,
body:not([data-page="index"]) .analysis-hero h1,
body:not([data-page="index"]) .verified-hero h1,
body:not([data-page="index"]) .submit-hero h1,
body:not([data-page="index"]) .profile-hero h1,
body:not([data-page="index"]) .admin-hero h1 {
  margin: 0;
  font-size: clamp(30px, 3.3vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.subpage-hero p,
body:not([data-page="index"]) .trust-hero p,
body:not([data-page="index"]) .search-hero p,
body:not([data-page="index"]) .analysis-hero p,
body:not([data-page="index"]) .verified-hero p,
body:not([data-page="index"]) .submit-hero p,
body:not([data-page="index"]) .profile-hero p,
body:not([data-page="index"]) .admin-hero p {
  max-width: 860px;
  margin: 10px 0 0;
  color: rgba(196, 212, 216, 0.76);
  line-height: 1.68;
}

body:not([data-page="index"]) .search-query-chip,
body:not([data-page="index"]) .submit-topic-meta,
body:not([data-page="index"]) .analysis-summary,
body:not([data-page="index"]) .profile-stat-grid {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:not([data-page="index"]) .search-query-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 0 0 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(196, 212, 216, 0.74);
}

body:not([data-page="index"]) .search-query-chip b {
  color: var(--text);
}

body:not([data-page="index"]) .analysis-summary,
body:not([data-page="index"]) .profile-stat-grid {
  gap: 0;
}

body:not([data-page="index"]) .analysis-summary div,
body:not([data-page="index"]) .profile-stat-grid article,
body:not([data-page="index"]) .submit-topic-meta {
  padding: 0 0 0 14px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: transparent;
}

body:not([data-page="index"]) .analysis-summary dt,
body:not([data-page="index"]) .profile-stat-grid span,
body:not([data-page="index"]) .submit-topic-meta small {
  color: rgba(196, 212, 216, 0.62);
  font-size: 11px;
}

body:not([data-page="index"]) .analysis-summary dd,
body:not([data-page="index"]) .profile-stat-grid strong,
body:not([data-page="index"]) .submit-topic-meta strong {
  color: var(--text);
}

.info-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 32px;
  overflow-x: auto;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  scrollbar-width: none;
}

.info-tabs::-webkit-scrollbar {
  display: none;
}

.info-tabs a {
  flex: 0 0 auto;
  color: rgba(196, 212, 216, 0.68);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.info-tabs a:hover,
.info-tabs a.is-active {
  color: var(--text);
}

body:not([data-page="index"]) :where(
  .topic-background,
  .system-view-card,
  .analysis-panel,
  .comparison-card,
  .match-panel,
  .profile-records-panel,
  .profile-chart-panel,
  .account-panel,
  .review-panel,
  .form-card,
  .admin-panel,
  .search-stage-group
) {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:not([data-page="index"]) :where(
  .topic-background,
  .system-view-card,
  .analysis-panel,
  .comparison-card,
  .match-panel,
  .profile-records-panel,
  .profile-chart-panel,
  .account-panel,
  .review-panel,
  .form-card,
  .admin-panel
) {
  padding-left: 0;
  padding-right: 0;
}

body:not([data-page="index"]) .section-heading {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body:not([data-page="index"]) .section-heading h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

body:not([data-page="index"]) .topic-background h2,
body:not([data-page="index"]) .system-view-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

body:not([data-page="index"]) .topic-background p,
body:not([data-page="index"]) .system-view-card p {
  color: rgba(196, 212, 216, 0.78);
  line-height: 1.72;
}

body:not([data-page="index"]) .search-results-board {
  display: grid;
  gap: 22px;
}

body:not([data-page="index"]) .search-stage-group {
  display: grid;
  gap: 14px;
  padding-top: 16px;
}

body:not([data-page="index"]) .search-stage-group .stage-title {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body:not([data-page="index"]) .search-stage-group .stage-topic-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  padding: 0;
}

body:not([data-page="index"]) .search-stage-group .home-topic-card {
  width: auto;
  min-width: 0;
}

body:not([data-page="index"]) .submit-workbench,
body:not([data-page="index"]) .submit-step2-layout,
body:not([data-page="index"]) .analysis-grid,
body:not([data-page="index"]) .verification-grid,
body:not([data-page="index"]) .profile-dashboard,
body:not([data-page="index"]) .admin-layout {
  gap: 20px;
}

body:not([data-page="index"]) .submit-guide,
body:not([data-page="index"]) .profile-right-rail {
  display: grid;
  gap: 20px;
}

body:not([data-page="index"]) .field-guide-list li,
body:not([data-page="index"]) .review-item,
body:not([data-page="index"]) .setting-list span,
body:not([data-page="index"]) .admin-list-item,
body:not([data-page="index"]) .review-queue-item,
body:not([data-page="index"]) .cluster-item {
  border-radius: 0;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-left: 0;
  padding-right: 0;
}

body:not([data-page="index"]) .field-guide-list li:first-child,
body:not([data-page="index"]) .review-item:first-child,
body:not([data-page="index"]) .setting-list span:first-child,
body:not([data-page="index"]) .admin-list-item:first-child,
body:not([data-page="index"]) .review-queue-item:first-child,
body:not([data-page="index"]) .cluster-item:first-child {
  border-top-color: transparent;
}

body:not([data-page="index"]) .trust-grid {
  gap: 14px;
}

body:not([data-page="index"]) .trust-card,
body:not([data-page="index"]) .showcase-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(11, 18, 24, 0.58);
  box-shadow: none;
}

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

.contact-link {
  color: var(--text);
  text-decoration: none;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--accent);
}

body:not([data-page="index"]) .profile-record-card {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

body:not([data-page="index"]) .profile-record-card:first-child {
  border-top-color: transparent;
}

body:not([data-page="index"]) .profile-chart-card {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

body:not([data-page="index"]) .profile-chart-card:first-child {
  border-top-color: transparent;
}

body:not([data-page="index"]) .stage-page-footer {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

body:not([data-page="index"]) .stage-page-number {
  border: 0;
  background: rgba(255, 255, 255, 0.03);
}

body:not([data-page="index"]) .stage-page-number:hover,
body:not([data-page="index"]) .stage-page-number.is-active {
  background: rgba(107, 215, 228, 0.09);
  transform: none;
}

@media (max-width: 1180px) {
  body:not([data-page="index"]) .market-topbar.subpage-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    row-gap: 10px;
  }

  body:not([data-page="index"]) .market-topbar.subpage-topbar .topbar-search-area {
    grid-column: 1 / -1;
    order: 5;
  }

  body:not([data-page="index"]) .app-shell {
    padding-top: 108px;
  }

  .subpage-hero,
  body:not([data-page="index"]) .trust-hero,
  body:not([data-page="index"]) .search-hero,
  body:not([data-page="index"]) .analysis-hero,
  body:not([data-page="index"]) .verified-hero,
  body:not([data-page="index"]) .submit-hero,
  body:not([data-page="index"]) .profile-hero,
  body:not([data-page="index"]) .admin-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  body[data-page="index"] .home-main-flow {
    display: grid;
    gap: 20px;
  }

  body[data-page="index"] .home-intro-strip,
  body[data-page="index"] .home-dashboard,
  body[data-page="index"] .home-side-rail {
    grid-column: auto;
    grid-row: auto;
  }

  body[data-page="index"] .signal-rank-panel {
    display: block;
    height: auto !important;
  }

  body[data-page="index"] .signal-rank-list {
    overflow: visible;
    grid-template-rows: none;
  }
}

/* deeper non-homepage rebuild */
body:not([data-page="index"]) {
  background: linear-gradient(180deg, #081016 0%, #060b10 52%, #04080c 100%);
}

body:not([data-page="index"]) .market-topbar.subpage-topbar {
  min-height: 52px;
  padding-top: 7px;
  padding-bottom: 5px;
  background: rgba(8, 11, 15, 0.84);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.065);
}

body:not([data-page="index"]) .app-shell {
  padding-top: 68px;
}

body:not([data-page="index"]) .layout {
  padding-top: 8px;
}

body:not([data-page="index"]) .content {
  gap: 14px;
}

body:not([data-page="index"]) .market-topbar.subpage-topbar .market-category-strip a {
  font-size: 12px;
}

.subpage-hero,
body:not([data-page="index"]) .trust-hero,
body:not([data-page="index"]) .search-hero,
body:not([data-page="index"]) .analysis-hero,
body:not([data-page="index"]) .verified-hero,
body:not([data-page="index"]) .submit-hero,
body:not([data-page="index"]) .profile-hero,
body:not([data-page="index"]) .admin-hero {
  gap: 14px;
  padding-bottom: 12px;
}

.subpage-hero h1,
body:not([data-page="index"]) .trust-hero h1,
body:not([data-page="index"]) .search-hero h1,
body:not([data-page="index"]) .analysis-hero h1,
body:not([data-page="index"]) .verified-hero h1,
body:not([data-page="index"]) .submit-hero h1,
body:not([data-page="index"]) .profile-hero h1,
body:not([data-page="index"]) .admin-hero h1 {
  font-size: clamp(26px, 2.8vw, 40px);
  letter-spacing: -0.04em;
}

.subpage-hero p,
body:not([data-page="index"]) .trust-hero p,
body:not([data-page="index"]) .search-hero p,
body:not([data-page="index"]) .analysis-hero p,
body:not([data-page="index"]) .verified-hero p,
body:not([data-page="index"]) .submit-hero p,
body:not([data-page="index"]) .profile-hero p,
body:not([data-page="index"]) .admin-hero p {
  max-width: 720px;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.56;
}

body:not([data-page="index"]) .eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
}

body:not([data-page="index"]) .search-query-chip,
body:not([data-page="index"]) .analysis-summary div,
body:not([data-page="index"]) .profile-stat-grid article,
body:not([data-page="index"]) .submit-topic-meta {
  padding-left: 12px;
}

body:not([data-page="index"]) .analysis-summary dd,
body:not([data-page="index"]) .profile-stat-grid strong,
body:not([data-page="index"]) .submit-topic-meta strong {
  font-size: 24px;
  line-height: 1;
}

body:not([data-page="index"]):not([data-page="stage"]):not([data-page="search"]) .status-pill {
  gap: 6px;
  min-height: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  font-size: 11px;
}

body:not([data-page="index"]):not([data-page="stage"]):not([data-page="search"]) .status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.9;
}

body:not([data-page="index"]) .section-heading {
  padding-bottom: 10px;
}

body:not([data-page="index"]) .section-heading h2,
body:not([data-page="index"]) .topic-background h2,
body:not([data-page="index"]) .system-view-card h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

body:not([data-page="index"]) .section-heading p {
  margin: 4px 0 0;
  color: rgba(196, 212, 216, 0.58);
  font-size: 12px;
  line-height: 1.5;
}

body:not([data-page="index"]) .topic-background,
body:not([data-page="index"]) .system-view-card,
body:not([data-page="index"]) .analysis-panel,
body:not([data-page="index"]) .comparison-card,
body:not([data-page="index"]) .match-panel,
body:not([data-page="index"]) .profile-records-panel,
body:not([data-page="index"]) .profile-chart-panel,
body:not([data-page="index"]) .account-panel,
body:not([data-page="index"]) .review-panel,
body:not([data-page="index"]) .form-card,
body:not([data-page="index"]) .admin-panel,
body:not([data-page="index"]) .search-stage-group {
  padding-top: 14px;
}

body:not([data-page="index"]) .topic-background p,
body:not([data-page="index"]) .system-view-card p {
  font-size: 13.5px;
  line-height: 1.62;
}

body:not([data-page="index"]) .analysis-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-areas:
    "rank chart"
    "category representatives";
  gap: 16px;
}

body:not([data-page="index"]) .analysis-panel.rank-panel {
  grid-area: rank;
}

body:not([data-page="index"]) .analysis-panel.chart-panel {
  grid-area: chart;
}

body:not([data-page="index"]) .analysis-panel.category-panel {
  grid-area: category;
}

body:not([data-page="index"]) .analysis-panel.representative-panel {
  grid-area: representatives;
}

body:not([data-page="index"]) .verification-grid,
body:not([data-page="index"]) .profile-dashboard,
body:not([data-page="index"]) .submit-workbench,
body:not([data-page="index"]) .submit-step2-layout,
body:not([data-page="index"]) .admin-layout,
body:not([data-page="index"]) .verification-stage,
body:not([data-page="index"]) .profile-right-rail,
body:not([data-page="index"]) .submit-guide {
  gap: 16px;
}

body:not([data-page="index"]) .verification-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

body:not([data-page="index"]) .profile-dashboard {
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
}

body:not([data-page="index"]) .submit-workbench {
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
}

body:not([data-page="index"]) .submit-step2-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

body:not([data-page="index"]) .admin-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body:not([data-page="index"]) .admin-panel.wide {
  grid-column: 1 / -1;
}

body:not([data-page="index"]) .rank-table,
body:not([data-page="index"]) .analysis-bars,
body:not([data-page="index"]) .profile-record-list,
body:not([data-page="index"]) .profile-chart-list,
body:not([data-page="index"]) .review-list,
body:not([data-page="index"]) .setting-list,
body:not([data-page="index"]) .admin-list,
body:not([data-page="index"]) .review-queue,
body:not([data-page="index"]) .cluster-list {
  gap: 0;
}

body:not([data-page="index"]) .rank-row,
body:not([data-page="index"]) .chart-card,
body:not([data-page="index"]) .category-card,
body:not([data-page="index"]) .comparison-card,
body:not([data-page="index"]) .closest-user-card,
body:not([data-page="index"]) .profile-record-card,
body:not([data-page="index"]) .profile-chart-card,
body:not([data-page="index"]) .review-item,
body:not([data-page="index"]) .field-guide-list li,
body:not([data-page="index"]) .setting-list span,
body:not([data-page="index"]) .admin-list-item,
body:not([data-page="index"]) .review-queue-item,
body:not([data-page="index"]) .cluster-item,
body:not([data-page="index"]) .trust-card,
body:not([data-page="index"]) .showcase-card {
  padding: 12px 0 0;
  border: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body:not([data-page="index"]) .rank-row:first-child,
body:not([data-page="index"]) .chart-card:first-child,
body:not([data-page="index"]) .category-card:first-child,
body:not([data-page="index"]) .profile-record-card:first-child,
body:not([data-page="index"]) .profile-chart-card:first-child,
body:not([data-page="index"]) .review-item:first-child,
body:not([data-page="index"]) .field-guide-list li:first-child,
body:not([data-page="index"]) .setting-list span:first-child,
body:not([data-page="index"]) .admin-list-item:first-child,
body:not([data-page="index"]) .review-queue-item:first-child,
body:not([data-page="index"]) .cluster-item:first-child {
  border-top-color: transparent !important;
}

body:not([data-page="index"]) .rank-row {
  grid-template-columns: 24px minmax(0, 1fr) 96px 52px 44px;
  gap: 10px;
  align-items: center;
}

body:not([data-page="index"]) .rank-row strong {
  font-size: 13px;
}

body:not([data-page="index"]) .rank-row p {
  color: rgba(224, 234, 237, 0.84);
  font-size: 13px;
  line-height: 1.45;
}

body:not([data-page="index"]) .rank-row span,
body:not([data-page="index"]) .rank-row b {
  font-size: 12px;
}

body:not([data-page="index"]) .rank-row em {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 11px;
}

body:not([data-page="index"]) .rank-spark {
  height: 5px;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
}

body:not([data-page="index"]) .rank-spark i {
  box-shadow: none;
}

body:not([data-page="index"]) .chart-card h3,
body:not([data-page="index"]) .category-card h3,
body:not([data-page="index"]) .comparison-card h2,
body:not([data-page="index"]) .closest-user-card strong,
body:not([data-page="index"]) .profile-chart-card h3,
body:not([data-page="index"]) .profile-record-card h3 {
  font-size: 15px;
  line-height: 1.25;
}

body:not([data-page="index"]) .chart-card h3,
body:not([data-page="index"]) .category-card h3,
body:not([data-page="index"]) .comparison-card h2 {
  margin-bottom: 6px;
}

body:not([data-page="index"]) .analysis-bar-row,
body:not([data-page="index"]) .compare-row,
body:not([data-page="index"]) .profile-chart-row {
  gap: 10px;
}

body:not([data-page="index"]) .analysis-bar-row span,
body:not([data-page="index"]) .compare-row span,
body:not([data-page="index"]) .compare-row strong,
body:not([data-page="index"]) .profile-chart-row span,
body:not([data-page="index"]) .profile-chart-row strong {
  font-size: 12px;
}

body:not([data-page="index"]) .donut-chart {
  width: 156px;
  height: 156px;
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.18);
}

body:not([data-page="index"]) .donut-chart span {
  font-size: 24px;
}

body:not([data-page="index"]) .category-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}

body:not([data-page="index"]) .category-card p,
body:not([data-page="index"]) .comparison-card p,
body:not([data-page="index"]) .closest-user-card p,
body:not([data-page="index"]) .profile-record-card p,
body:not([data-page="index"]) .showcase-card p,
body:not([data-page="index"]) .trust-card p {
  color: rgba(196, 212, 216, 0.74);
  font-size: 13px;
  line-height: 1.58;
}

body:not([data-page="index"]) .category-count,
body:not([data-page="index"]) .hit-reason {
  padding-top: 8px;
  border-top: 0;
}

body:not([data-page="index"]) .category-count strong,
body:not([data-page="index"]) .segment-stack strong,
body:not([data-page="index"]) .match-score-block strong {
  font-size: 30px;
}

body:not([data-page="index"]) .analysis-notice {
  padding: 10px 0 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  background: transparent;
  color: rgba(196, 212, 216, 0.64);
  font-size: 12px;
}

body:not([data-page="index"]) .report-ribbon {
  display: none;
}

body:not([data-page="index"]) .comparison-grid {
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body:not([data-page="index"]) .comparison-card {
  min-height: 0;
  padding: 16px 18px 0 0;
}

body:not([data-page="index"]) .comparison-card + .comparison-card {
  padding: 16px 0 0 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.06) !important;
}

body:not([data-page="index"]) .comparison-card::before {
  display: none;
}

body:not([data-page="index"]) .match-panel {
  grid-template-columns: 170px minmax(0, 1fr);
  padding-top: 14px;
}

body:not([data-page="index"]) .match-score-block {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  place-items: start;
}

body:not([data-page="index"]) .match-detail {
  gap: 12px;
}

body:not([data-page="index"]) .match-columns {
  gap: 0;
}

body:not([data-page="index"]) .match-columns section {
  padding: 0;
  border: 0;
  background: transparent;
}

body:not([data-page="index"]) .match-columns section + section {
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

body:not([data-page="index"]) .verification-charts {
  gap: 0;
}

body:not([data-page="index"]) .closest-user-marquee {
  overflow: visible;
}

body:not([data-page="index"]) .closest-user-track {
  display: block;
  animation: none !important;
}

body:not([data-page="index"]) .closest-user-lane:last-child {
  display: none;
}

body:not([data-page="index"]) .closest-user-lane {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

body:not([data-page="index"]) .closest-user-card {
  overflow: visible;
}

body:not([data-page="index"]) .honor-mark {
  min-width: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 11px;
  letter-spacing: 0.08em;
}

body:not([data-page="index"]) .submit-workbench .card,
body:not([data-page="index"]) .compact-prompt,
body:not([data-page="index"]) .system-prompt-card,
body:not([data-page="index"]) .review-panel,
body:not([data-page="index"]) .prediction-form {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

body:not([data-page="index"]) .system-prompt-card::before,
body:not([data-page="index"]) .closest-user-card::before {
  display: none;
}

body:not([data-page="index"]) .system-prompt-card p,
body:not([data-page="index"]) .submit-workbench .card p,
body:not([data-page="index"]) .review-item p {
  font-size: 13px;
  line-height: 1.55;
}

body:not([data-page="index"]) .compact-prompt .prompt-box {
  padding: 12px 14px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
  line-height: 1.62;
}

body:not([data-page="index"]) .form-head {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body:not([data-page="index"]) .form-head h2 {
  font-size: 18px;
}

body:not([data-page="index"]) .form-head p {
  font-size: 12.5px;
  line-height: 1.5;
}

body:not([data-page="index"]) .field {
  gap: 8px;
}

body:not([data-page="index"]) .field label,
body:not([data-page="index"]) .field small {
  font-size: 11px;
}

body:not([data-page="index"]) .field input,
body:not([data-page="index"]) .field select,
body:not([data-page="index"]) .field textarea {
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body:not([data-page="index"]) .form-alert {
  padding: 0 0 0 12px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: transparent;
  font-size: 11px;
}

body:not([data-page="index"]) .field-guide-list,
body:not([data-page="index"]) .review-list,
body:not([data-page="index"]) .setting-list {
  gap: 0;
}

body:not([data-page="index"]) .field-guide-list li,
body:not([data-page="index"]) .review-item,
body:not([data-page="index"]) .setting-list span {
  padding-top: 10px;
  padding-bottom: 10px;
}

body:not([data-page="index"]) .profile-avatar {
  width: 68px;
  height: 68px;
  border: 0;
  background: rgba(255, 255, 255, 0.04);
  font-size: 19px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body:not([data-page="index"]) .profile-identity h1 {
  margin: 6px 0;
  font-size: clamp(28px, 3vw, 38px);
}

body:not([data-page="index"]) .profile-identity p {
  font-size: 13px;
  line-height: 1.56;
}

body:not([data-page="index"]) .profile-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

body:not([data-page="index"]) .filter-tabs {
  gap: 14px;
}

body:not([data-page="index"]) .filter-tabs button {
  min-height: 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(196, 212, 216, 0.58);
  font-size: 12px;
}

body:not([data-page="index"]) .filter-tabs button.is-active,
body:not([data-page="index"]) .filter-tabs button:hover {
  background: transparent;
  color: var(--text);
}

body:not([data-page="index"]) .record-metrics {
  gap: 12px;
}

body:not([data-page="index"]) .record-metrics span {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  gap: 4px;
  font-size: 11px;
}

body:not([data-page="index"]) .record-metrics b {
  font-size: 13px;
}

body:not([data-page="index"]) .account-grid,
body:not([data-page="index"]) .trust-grid,
body:not([data-page="index"]) .showcase-grid,
body:not([data-page="index"]) .contact-grid {
  gap: 0 18px;
}

body:not([data-page="index"]) .trust-grid > *:nth-child(-n + 2),
body:not([data-page="index"]) .showcase-grid > *:nth-child(-n + 2),
body:not([data-page="index"]) .contact-grid > *:nth-child(-n + 2),
body:not([data-page="index"]) .category-grid > *:nth-child(-n + 2) {
  border-top-color: transparent !important;
}

body:not([data-page="index"]) .trust-card h2,
body:not([data-page="index"]) .showcase-card h2 {
  font-size: 18px;
  line-height: 1.16;
}

body:not([data-page="index"]) .showcase-card-head,
body:not([data-page="index"]) .contact-card h2 {
  margin-bottom: 8px;
}

body:not([data-page="index"]) .account-chip-list .tag {
  min-height: 20px;
  padding: 4px 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 10px;
}

body:not([data-page="index"]) .search-results-board {
  gap: 18px;
}

body:not([data-page="index"]) .search-stage-group {
  gap: 12px;
}

body:not([data-page="index"]) .search-stage-group .stage-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 8px;
}

body:not([data-page="index"]) .search-stage-group .stage-topic-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

body:not([data-page="index"]) .search-stage-group .home-topic-card {
  min-height: 182px;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: none;
}

body:not([data-page="index"]) .search-stage-group .home-topic-card::before,
body:not([data-page="index"]) .search-stage-group .home-topic-card::after {
  display: none;
}

body:not([data-page="index"]) .search-stage-group .home-topic-card h3 {
  font-size: 18px;
}

body:not([data-page="index"]) .search-stage-group .home-topic-card p {
  font-size: 12.5px;
}

body:not([data-page="index"]) .stage-page-footer {
  padding-top: 12px;
}

body:not([data-page="index"]) .admin-form-grid label,
body:not([data-page="index"]) .admin-meta,
body:not([data-page="index"]) .cluster-meter,
body:not([data-page="index"]) .admin-actions {
  font-size: 12px;
}

body:not([data-page="index"]) .admin-list-item p,
body:not([data-page="index"]) .review-queue-item p {
  font-size: 13px;
  line-height: 1.52;
}

@media (max-width: 1180px) {
  body:not([data-page="index"]) .app-shell {
    padding-top: 102px;
  }

  body:not([data-page="index"]) .analysis-grid,
  body:not([data-page="index"]) .verification-grid,
  body:not([data-page="index"]) .profile-dashboard,
  body:not([data-page="index"]) .submit-workbench,
  body:not([data-page="index"]) .submit-step2-layout,
  body:not([data-page="index"]) .admin-layout {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  body:not([data-page="index"]) .category-grid,
  body:not([data-page="index"]) .closest-user-lane {
    grid-template-columns: 1fr;
  }

  body:not([data-page="index"]) .trust-grid > *,
  body:not([data-page="index"]) .showcase-grid > *,
  body:not([data-page="index"]) .contact-grid > *,
  body:not([data-page="index"]) .category-grid > * {
    border-top-color: rgba(255, 255, 255, 0.06) !important;
  }

  body:not([data-page="index"]) .trust-grid > *:first-child,
  body:not([data-page="index"]) .showcase-grid > *:first-child,
  body:not([data-page="index"]) .contact-grid > *:first-child,
  body:not([data-page="index"]) .category-grid > *:first-child {
    border-top-color: transparent !important;
  }
}

body[data-page="profile"] .profile-hero {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 12px;
  padding-bottom: 14px;
}

body[data-page="profile"] .profile-identity {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

body[data-page="profile"] .profile-identity > div:last-child {
  min-width: 0;
}

body[data-page="profile"] .profile-avatar {
  width: 52px;
  height: 52px;
  font-size: 15px;
  margin-top: 2px;
}

body[data-page="profile"] .profile-identity .eyebrow {
  display: inline-block;
  margin-bottom: 6px;
}

body[data-page="profile"] .profile-identity h1 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-page="profile"] .profile-identity p {
  max-width: 520px;
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.52;
}

body[data-page="profile"] .profile-stat-grid {
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(220px, 1.25fr);
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}

body[data-page="profile"] .profile-stat-grid article {
  min-height: 0;
  padding: 0 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

body[data-page="profile"] .profile-stat-grid article:first-child {
  padding-left: 0;
  border-left: 0;
}

body[data-page="profile"] .profile-stat-grid span {
  margin-bottom: 8px;
  font-size: 11px;
}

body[data-page="profile"] .profile-stat-grid strong {
  display: block;
  font-size: clamp(16px, 2vw, 28px);
  line-height: 1.1;
  word-break: break-word;
}

body[data-page="profile"] .profile-stat-grid article:last-child strong {
  font-size: clamp(14px, 1.35vw, 22px);
  line-height: 1.18;
}

@media (max-width: 980px) {
  body[data-page="profile"] .profile-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  body[data-page="profile"] .profile-stat-grid article {
    padding: 0;
    border-left: 0;
  }
}

@media (max-width: 640px) {
  body[data-page="profile"] .profile-identity {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  body[data-page="profile"] .profile-avatar {
    width: 44px;
    height: 44px;
    font-size: 13px;
  }

  body[data-page="profile"] .profile-identity h1 {
    white-space: normal;
  }

  body[data-page="profile"] .profile-stat-grid {
    grid-template-columns: 1fr;
  }
}

body[data-page="profile"] .profile-account-head {
  gap: 12px !important;
}

body[data-page="profile"] .profile-account-label {
  font-size: 18px !important;
  font-weight: 700 !important;
}

body[data-page="profile"] .profile-identity {
  grid-template-columns: 96px minmax(0, 1fr) !important;
  gap: 26px !important;
  align-items: stretch !important;
}

body[data-page="profile"] .profile-avatar {
  width: 96px !important;
  min-width: 96px !important;
  min-height: 96px !important;
  height: 96px !important;
  max-height: 96px !important;
  margin-top: 0 !important;
  align-self: start !important;
  display: grid !important;
  place-items: center !important;
  font-size: 2rem !important;
  border-radius: 50% !important;
}

body[data-page="profile"] .profile-identity-main {
  gap: 12px !important;
  align-content: stretch !important;
}

body[data-page="profile"] .profile-identity-topline {
  gap: 8px !important;
  justify-items: start !important;
}

body[data-page="profile"] .profile-hero h1,
body[data-page="profile"] .profile-identity h1 {
  font-size: clamp(2.2rem, 3.2vw, 3rem) !important;
  line-height: 0.96 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

body[data-page="profile"] .profile-user-id {
  font-size: 12px !important;
  line-height: 1 !important;
}

body[data-page="profile"] .profile-identity-actions {
  justify-content: flex-start !important;
  justify-self: start !important;
  gap: 8px !important;
}

@media (max-width: 640px) {
  body[data-page="profile"] .profile-identity {
    grid-template-columns: 64px minmax(0, 1fr) !important;
    gap: 16px !important;
  }

  body[data-page="profile"] .profile-avatar {
    width: 64px !important;
    min-width: 64px !important;
    min-height: 72px !important;
    font-size: 1.35rem !important;
  }

  body[data-page="profile"] .profile-hero h1,
  body[data-page="profile"] .profile-identity h1 {
    white-space: normal !important;
  }
}

body[data-page="profile"] .profile-dashboard {
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 30px;
  align-items: start;
}

body[data-page="profile"] .profile-records-panel,
body[data-page="profile"] .profile-chart-panel,
body[data-page="profile"] .account-panel {
  padding-top: 12px;
}

body[data-page="profile"] .profile-records-panel .section-heading,
body[data-page="profile"] .profile-chart-panel .section-heading,
body[data-page="profile"] .account-panel .section-heading {
  align-items: end;
  padding-bottom: 10px;
}

body[data-page="profile"] .profile-records-panel .section-heading h2,
body[data-page="profile"] .profile-chart-panel .section-heading h2,
body[data-page="profile"] .account-panel .section-heading h2 {
  font-size: 17px;
}

body[data-page="profile"] .profile-record-list {
  gap: 0;
}

body[data-page="profile"] .profile-record-card {
  gap: 10px;
  padding: 14px 0 12px;
}

body[data-page="profile"] .profile-record-card .card-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
}

body[data-page="profile"] .profile-record-card .record-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body[data-page="profile"] .profile-record-card .eyebrow {
  display: inline-block;
  margin-bottom: 0;
}

body[data-page="profile"] .profile-record-card .record-meta-row .status-pill {
  flex: 0 0 auto;
}

body[data-page="profile"] .profile-record-card h3 {
  font-size: 19px;
  line-height: 1.16;
}

body[data-page="profile"] .profile-record-card p {
  max-width: 92%;
  font-size: 12.5px;
  line-height: 1.52;
}

body[data-page="profile"] .record-metrics {
  gap: 0;
  padding-top: 4px;
}

body[data-page="profile"] .record-metrics span {
  gap: 4px;
  min-height: 0;
}

body[data-page="profile"] .record-metrics span + span {
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

body[data-page="profile"] .record-metrics b {
  font-size: 14px;
  line-height: 1.15;
}

body[data-page="profile"] .profile-right-rail {
  gap: 0;
}

body[data-page="profile"] .profile-chart-panel {
  padding-bottom: 6px;
}

body[data-page="profile"] .profile-chart-list {
  gap: 0;
}

body[data-page="profile"] .profile-chart-card {
  gap: 10px;
  padding: 12px 0 10px;
}

body[data-page="profile"] .profile-chart-card h3 {
  font-size: 14px;
  line-height: 1.2;
}

body[data-page="profile"] .profile-chart-bars {
  gap: 8px;
}

body[data-page="profile"] .profile-chart-row {
  grid-template-columns: 76px minmax(0, 1fr) 38px;
  gap: 8px;
}

body[data-page="profile"] .profile-chart-row span,
body[data-page="profile"] .profile-chart-row strong {
  font-size: 11px;
}

body[data-page="profile"] .account-grid {
  gap: 0;
}

body[data-page="profile"] .account-panel {
  gap: 12px;
  padding-bottom: 6px;
}

body[data-page="profile"] .account-chip-list {
  gap: 6px;
}

body[data-page="profile"] .account-chip-list .tag {
  min-height: 18px;
  padding: 3px 8px;
  font-size: 10px;
}

body[data-page="profile"] .setting-list {
  gap: 0;
}

body[data-page="profile"] .setting-list span {
  align-items: center;
  padding-top: 9px;
  padding-bottom: 9px;
  font-size: 12px;
}

/* final subpage system unification */
body:not([data-page="index"]) .layout {
  padding-top: 14px;
}

body:not([data-page="index"]) .content {
  gap: 24px;
  padding-bottom: 48px;
}

body:not([data-page="index"]) :is(
  .subpage-hero,
  .trust-hero,
  .search-hero,
  .analysis-hero,
  .verified-hero,
  .submit-hero,
  .profile-hero,
  .admin-hero
) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  min-height: 0;
  padding: 10px 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body:not([data-page="index"]) :is(
  .subpage-hero,
  .trust-hero,
  .search-hero,
  .analysis-hero,
  .verified-hero,
  .submit-hero,
  .profile-hero,
  .admin-hero
) h1 {
  font-size: clamp(24px, 2.25vw, 34px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

body:not([data-page="index"]) :is(
  .subpage-hero,
  .trust-hero,
  .search-hero,
  .analysis-hero,
  .verified-hero,
  .submit-hero,
  .profile-hero,
  .admin-hero
) p {
  max-width: 680px;
  margin-top: 8px;
  color: rgba(198, 211, 216, 0.66);
  font-size: 12.5px;
  line-height: 1.55;
}

body:not([data-page="index"]) :is(
  .subpage-hero,
  .trust-hero,
  .search-hero,
  .analysis-hero,
  .verified-hero,
  .submit-hero,
  .profile-hero,
  .admin-hero
) .eyebrow {
  margin-bottom: 8px;
  color: rgba(107, 215, 228, 0.92);
  font-size: 10px;
  letter-spacing: 0.14em;
}

body:not([data-page="index"]) .analysis-summary,
body:not([data-page="index"]) .verified-summary,
body:not([data-page="index"]) .profile-stat-grid,
body:not([data-page="index"]) .submit-topic-meta {
  align-self: stretch;
}

body:not([data-page="index"]) .analysis-summary,
body:not([data-page="index"]) .verified-summary {
  gap: 0;
  min-width: 320px;
}

body:not([data-page="index"]) .analysis-summary div,
body:not([data-page="index"]) .verified-summary div {
  min-height: 72px;
  padding: 0 0 0 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

body:not([data-page="index"]) .analysis-summary div:first-child,
body:not([data-page="index"]) .verified-summary div:first-child {
  padding-left: 0;
  border-left: 0;
}

body:not([data-page="index"]) .analysis-summary dt,
body:not([data-page="index"]) .verified-summary dt,
body:not([data-page="index"]) .profile-stat-grid span,
body:not([data-page="index"]) .submit-topic-meta small {
  margin-bottom: 8px;
  color: rgba(198, 211, 216, 0.56);
  font-size: 10px;
  letter-spacing: 0.08em;
}

body:not([data-page="index"]) .analysis-summary dd,
body:not([data-page="index"]) .verified-summary dd,
body:not([data-page="index"]) .profile-stat-grid strong,
body:not([data-page="index"]) .submit-topic-meta strong {
  font-size: clamp(16px, 1.9vw, 28px);
  line-height: 1.04;
}

body:not([data-page="index"]) :is(
  .topic-background,
  .system-view-card,
  .analysis-panel,
  .verification-stage,
  .match-panel,
  .closest-panel,
  .profile-records-panel,
  .profile-chart-panel,
  .account-panel,
  .system-prompt-card,
  .submit-note-panel,
  .prediction-form,
  .review-panel,
  .form-card,
  .search-stage-group,
  .stage-page-footer,
  .showcase-card,
  .trust-card,
  .contact-card,
  .admin-panel
) {
  border: 0 !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, rgba(12, 18, 23, 0.88) 0%, rgba(8, 12, 16, 0.82) 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

body:not([data-page="index"]) :is(
  .topic-background,
  .system-view-card,
  .analysis-panel,
  .verification-stage,
  .match-panel,
  .closest-panel,
  .profile-records-panel,
  .profile-chart-panel,
  .account-panel,
  .system-prompt-card,
  .submit-note-panel,
  .prediction-form,
  .review-panel,
  .form-card,
  .search-stage-group,
  .stage-page-footer,
  .admin-panel
) {
  padding: 18px !important;
}

body:not([data-page="index"]) .section-heading {
  padding-bottom: 12px;
  border-bottom: 0;
}

body:not([data-page="index"]) .section-heading h2,
body:not([data-page="index"]) .topic-background h2,
body:not([data-page="index"]) .system-view-card h2 {
  font-size: 16px;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

body:not([data-page="index"]) .section-heading p {
  margin-top: 4px;
  color: rgba(198, 211, 216, 0.5);
  font-size: 11px;
  line-height: 1.45;
}

body:not([data-page="index"]) .topic-background,
body:not([data-page="index"]) .system-view-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  column-gap: 20px;
  row-gap: 6px;
  align-items: start;
}

body:not([data-page="index"]) .topic-background h2,
body:not([data-page="index"]) .system-view-card h2 {
  margin: 0;
  grid-column: 1;
}

body:not([data-page="index"]) .topic-background p,
body:not([data-page="index"]) .system-view-card p {
  grid-column: 2;
  margin: 0;
  color: rgba(198, 211, 216, 0.72);
  font-size: 13px;
  line-height: 1.62;
}

body:not([data-page="index"]) .topic-background p + p,
body:not([data-page="index"]) .system-view-card p + p {
  margin-top: 8px;
}

body[data-page="analysis"] .intelligence-hero::before,
body[data-page="verified"] .verification-hero::before,
body[data-page="analysis"] .conclusion-card::before,
body[data-page="verified"] .comparison-card::before {
  display: none;
}

body[data-page="analysis"] .conclusion-card {
  min-height: 0;
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: start;
  padding: 18px !important;
}

body[data-page="analysis"] .conclusion-card h2 {
  font-size: 16px;
  line-height: 1.14;
}

body[data-page="analysis"] .conclusion-card p {
  padding-left: 14px;
  border-left: 1px solid rgba(107, 215, 228, 0.16);
}

body:not([data-page="index"]) .analysis-grid {
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 18px;
}

body:not([data-page="index"]) .verification-grid,
body:not([data-page="index"]) .submit-workbench,
body:not([data-page="index"]) .submit-step2-layout,
body:not([data-page="index"]) .admin-layout,
body:not([data-page="index"]) .verification-stage,
body:not([data-page="index"]) .profile-right-rail {
  gap: 18px;
}

body:not([data-page="index"]) .profile-dashboard {
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 26px;
}

body:not([data-page="index"]) .submit-workbench {
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.14fr);
}

body:not([data-page="index"]) .submit-step2-layout {
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
}

body:not([data-page="index"]) .analysis-panel,
body:not([data-page="index"]) .profile-records-panel,
body:not([data-page="index"]) .profile-chart-panel,
body:not([data-page="index"]) .account-panel,
body:not([data-page="index"]) .system-prompt-card,
body:not([data-page="index"]) .submit-note-panel,
body:not([data-page="index"]) .prediction-form,
body:not([data-page="index"]) .review-panel {
  display: grid;
  gap: 12px;
}

body:not([data-page="index"]) .rank-table,
body:not([data-page="index"]) .analysis-bars,
body:not([data-page="index"]) .profile-record-list,
body:not([data-page="index"]) .profile-chart-list,
body:not([data-page="index"]) .review-list,
body:not([data-page="index"]) .setting-list,
body:not([data-page="index"]) .admin-list,
body:not([data-page="index"]) .review-queue,
body:not([data-page="index"]) .cluster-list {
  gap: 0;
}

body:not([data-page="index"]) :is(
  .rank-row,
  .profile-record-card,
  .profile-chart-card,
  .review-item,
  .field-guide-list li,
  .setting-list span,
  .admin-list-item,
  .review-queue-item,
  .cluster-item
) {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body:not([data-page="index"]) :is(
  .rank-row,
  .profile-record-card,
  .profile-chart-card,
  .review-item,
  .field-guide-list li,
  .setting-list span,
  .admin-list-item,
  .review-queue-item,
  .cluster-item
) + :is(
  .rank-row,
  .profile-record-card,
  .profile-chart-card,
  .review-item,
  .field-guide-list li,
  .setting-list span,
  .admin-list-item,
  .review-queue-item,
  .cluster-item
) {
  margin-top: 12px;
  padding-top: 12px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.045) !important;
}

body:not([data-page="index"]) :is(
  .category-card,
  .comparison-card,
  .closest-user-card,
  .representative-card,
  .showcase-card,
  .trust-card,
  .contact-card
) {
  padding: 14px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.028);
}

body:not([data-page="index"]) .rank-row {
  grid-template-columns: 26px minmax(0, 1fr) 100px 54px 48px;
  gap: 12px;
  align-items: center;
}

body:not([data-page="index"]) .rank-row strong {
  font-size: 12px;
  color: rgba(198, 211, 216, 0.68);
}

body:not([data-page="index"]) .rank-row p {
  color: rgba(232, 240, 242, 0.88);
  font-size: 12.5px;
  line-height: 1.46;
}

body:not([data-page="index"]) .rank-row span,
body:not([data-page="index"]) .rank-row b {
  color: rgba(221, 231, 234, 0.8);
  font-size: 11px;
}

body:not([data-page="index"]) .rank-row em {
  font-size: 11px;
}

body:not([data-page="index"]) .rank-spark {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
}

body:not([data-page="index"]) .rank-spark i {
  border-radius: inherit;
}

body:not([data-page="index"]) .analysis-bars {
  gap: 10px;
}

body:not([data-page="index"]) .analysis-bar-row,
body:not([data-page="index"]) .compare-row,
body:not([data-page="index"]) .profile-chart-row {
  gap: 9px;
}

body:not([data-page="index"]) .analysis-bar-row span,
body:not([data-page="index"]) .analysis-bar-row strong,
body:not([data-page="index"]) .compare-row span,
body:not([data-page="index"]) .compare-row strong,
body:not([data-page="index"]) .profile-chart-row span,
body:not([data-page="index"]) .profile-chart-row strong {
  font-size: 11px;
}

body:not([data-page="index"]) .track,
body:not([data-page="index"]) .dual-track {
  min-height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

body:not([data-page="index"]) .track span,
body:not([data-page="index"]) .dual-track i,
body:not([data-page="index"]) .dual-track b {
  border-radius: inherit;
  box-shadow: none;
}

body:not([data-page="index"]) .category-grid {
  gap: 12px;
}

body:not([data-page="index"]) .category-card,
body:not([data-page="index"]) .representative-card,
body:not([data-page="index"]) .closest-user-card,
body:not([data-page="index"]) .showcase-card,
body:not([data-page="index"]) .trust-card,
body:not([data-page="index"]) .contact-card {
  display: grid;
  gap: 10px;
}

body:not([data-page="index"]) .category-card h3,
body:not([data-page="index"]) .comparison-card h2,
body:not([data-page="index"]) .representative-card strong,
body:not([data-page="index"]) .closest-user-card strong,
body:not([data-page="index"]) .showcase-card h2,
body:not([data-page="index"]) .trust-card h2,
body:not([data-page="index"]) .contact-card h2,
body:not([data-page="index"]) .profile-record-card h3 {
  font-size: 15px;
  line-height: 1.2;
}

body:not([data-page="index"]) .category-card p,
body:not([data-page="index"]) .comparison-card p,
body:not([data-page="index"]) .representative-card p,
body:not([data-page="index"]) .closest-user-card p,
body:not([data-page="index"]) .showcase-card p,
body:not([data-page="index"]) .trust-card p,
body:not([data-page="index"]) .contact-card p,
body:not([data-page="index"]) .profile-record-card p {
  max-width: none;
  color: rgba(198, 211, 216, 0.68);
  font-size: 12.5px;
  line-height: 1.58;
}

body:not([data-page="index"]) .comparison-grid {
  gap: 14px;
  border-top: 0;
}

body:not([data-page="index"]) .comparison-card {
  min-height: 0;
}

body:not([data-page="index"]) .comparison-card + .comparison-card {
  padding-left: 14px;
  border-left: 0 !important;
}

body:not([data-page="index"]) .match-panel {
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: start;
}

body:not([data-page="index"]) .match-score-block {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 0;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  place-items: start;
}

body:not([data-page="index"]) .match-detail {
  gap: 14px;
}

body:not([data-page="index"]) .match-columns {
  gap: 14px;
}

body:not([data-page="index"]) .match-columns section {
  padding: 0;
}

body:not([data-page="index"]) .match-columns section + section {
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

body:not([data-page="index"]) .closest-user-lane {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body:not([data-page="index"]) .honor-mark {
  padding: 0;
  min-width: auto;
  font-size: 10px;
  letter-spacing: 0.12em;
}

body:not([data-page="index"]) .submit-note-panel h2,
body:not([data-page="index"]) .prediction-form h2,
body:not([data-page="index"]) .review-panel h2,
body:not([data-page="index"]) .system-prompt-card h2 {
  font-size: 16px;
  line-height: 1.16;
}

body:not([data-page="index"]) .form-head {
  padding-bottom: 0;
  border-bottom: 0;
}

body:not([data-page="index"]) .field {
  gap: 7px;
}

body:not([data-page="index"]) .field label,
body:not([data-page="index"]) .field small {
  font-size: 11px;
}

body:not([data-page="index"]) .field input,
body:not([data-page="index"]) .field select,
body:not([data-page="index"]) .field textarea {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.032);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055);
}

body:not([data-page="index"]) .compact-prompt .prompt-box {
  padding: 14px 16px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.028);
}

body:not([data-page="index"]) .form-alert {
  padding: 0;
  border-left: 0;
  color: rgba(198, 211, 216, 0.52);
}

body:not([data-page="index"]) .profile-record-card {
  display: grid;
  gap: 10px;
}

body:not([data-page="index"]) .profile-record-card h3 {
  font-size: 18px;
  line-height: 1.14;
}

body:not([data-page="index"]) .record-metrics {
  gap: 16px;
}

body:not([data-page="index"]) .record-metrics span + span {
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

body:not([data-page="index"]) .record-metrics span,
body:not([data-page="index"]) .record-metrics b {
  font-size: 11px;
}

body:not([data-page="index"]) .profile-chart-list,
body:not([data-page="index"]) .account-grid {
  gap: 14px;
}

body:not([data-page="index"]) .profile-chart-card {
  display: grid;
  gap: 10px;
}

body:not([data-page="index"]) .profile-chart-card h3 {
  font-size: 13px;
}

body:not([data-page="index"]) .account-panel {
  gap: 12px;
}

body:not([data-page="index"]) .setting-list {
  display: grid;
  gap: 10px;
}

body:not([data-page="index"]) .setting-list span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  font-size: 12px;
}

body:not([data-page="index"]) .privacy-danger-zone {
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body:not([data-page="index"]) .search-results-board {
  gap: 18px;
}

body:not([data-page="index"]) .search-stage-group {
  display: grid;
  gap: 14px;
}

body:not([data-page="index"]) .search-stage-group .stage-title {
  padding-bottom: 0;
  border-bottom: 0;
}

body:not([data-page="index"]) .search-stage-group .stage-topic-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

body:not([data-page="index"]) .search-stage-group .home-topic-card {
  min-height: 196px;
  padding: 15px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.028);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.028);
}

body:not([data-page="index"]) .search-stage-group .home-topic-card::before,
body:not([data-page="index"]) .search-stage-group .home-topic-card::after {
  display: none;
}

body:not([data-page="index"]) .search-stage-group .home-topic-card h3 {
  font-size: 17px;
  line-height: 1.18;
}

body:not([data-page="index"]) .search-stage-group .home-topic-card p {
  font-size: 12px;
}

body[data-page="stage"].js-render-pending [data-stage-hero],
body[data-page="stage"].js-render-pending [data-stage-board],
body[data-page="search"].js-render-pending [data-search-hero],
body[data-page="search"].js-render-pending [data-search-board] {
  opacity: 0;
  visibility: hidden;
}

body[data-page="stage"] .subpage-market-section,
body[data-page="search"] .subpage-market-section {
  gap: 10px;
}

body[data-page="stage"] .subpage-market-section .market-board-head,
body[data-page="search"] .subpage-market-section .market-board-head {
  min-height: 42px;
}

body[data-page="stage"] .subpage-market-grid,
body[data-page="search"] .subpage-market-grid {
  gap: 8px;
}

body[data-page="stage"] .search-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

body[data-page="stage"] .search-hero p {
  max-width: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-page="stage"] .search-results-board,
body[data-page="search"] .search-results-board,
body[data-page="stage"] .search-stage-group,
body[data-page="search"] .search-stage-group {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="stage"] [data-stage-board],
body[data-page="search"] [data-search-board],
body[data-page="stage"] [data-stage-board] > .subpage-market-section,
body[data-page="search"] [data-search-board] > .subpage-market-section,
body[data-page="stage"] [data-stage-page-grid],
body[data-page="search"] [data-search-board] .subpage-market-grid {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-page="stage"] .subpage-market-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

body[data-page="search"] .subpage-market-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

body[data-page="stage"] .search-stage-group .home-topic-card,
body[data-page="search"] .search-stage-group .home-topic-card {
  height: 214px;
  min-height: 214px;
  padding: 12px 12px 11px;
  border: 0;
  border-radius: 8px;
  display: grid;
  gap: 9px;
  align-content: stretch;
  background: rgba(18, 24, 31, 0.82);
  box-shadow: none;
}

body[data-page="stage"] .search-stage-group .market-card-head,
body[data-page="search"] .search-stage-group .market-card-head {
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 10px;
  align-items: start;
}

body[data-page="stage"] .search-stage-group .home-topic-card h3,
body[data-page="search"] .search-stage-group .home-topic-card h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 4px;
  color: rgba(237, 246, 248, 0.92);
  font-size: 13.5px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  min-height: calc(1.3em * 3);
  max-height: calc(1.3em * 3);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

body[data-page="stage"] .search-stage-group .tag-row,
body[data-page="search"] .search-stage-group .tag-row {
  gap: 5px;
  min-height: 22px;
  max-height: 22px;
  overflow: hidden;
}

body[data-page="stage"] .search-stage-group .tag-row .status-pill,
body[data-page="search"] .search-stage-group .tag-row .status-pill {
  display: inline-flex;
}

body[data-page="stage"] .search-stage-group .home-topic-card p,
body[data-page="search"] .search-stage-group .home-topic-card p {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(196, 212, 216, 0.78);
  font-size: 11.5px;
  line-height: 1.42;
  min-height: calc(1.42em * 2);
  max-height: calc(1.42em * 2);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

body[data-page="stage"] .search-stage-group .market-meta-line,
body[data-page="search"] .search-stage-group .market-meta-line {
  padding-top: 0;
  gap: 8px;
  font-size: 10.8px;
  line-height: 1.35;
}

body[data-page="stage"] .search-stage-group .market-meta-primary,
body[data-page="search"] .search-stage-group .market-meta-primary {
  gap: 6px 12px;
  align-items: center;
}

body[data-page="stage"] .search-stage-group .market-meta-primary > span,
body[data-page="search"] .search-stage-group .market-meta-primary > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

body[data-page="stage"] .search-stage-group .market-meta-primary b,
body[data-page="search"] .search-stage-group .market-meta-primary b {
  font-size: inherit;
  line-height: inherit;
}

body[data-page="stage"] .search-stage-group .market-countdown,
body[data-page="search"] .search-stage-group .market-countdown {
  align-items: center;
  gap: 5px;
  font-size: inherit;
  line-height: inherit;
  font-weight: 800;
}

body[data-page="stage"] .search-stage-group .market-countdown-label,
body[data-page="search"] .search-stage-group .market-countdown-label {
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
}

body[data-page="stage"] .search-stage-group .market-countdown[data-countdown] .countdown-roll,
body[data-page="search"] .search-stage-group .market-countdown[data-countdown] .countdown-roll {
  align-items: center;
  gap: 0.02em;
  line-height: 1.04;
}

body[data-page="stage"] .search-stage-group .market-countdown[data-countdown] .countdown-char,
body[data-page="search"] .search-stage-group .market-countdown[data-countdown] .countdown-char {
  display: inline-flex;
  align-items: center;
}

body[data-page="stage"] .search-stage-group .market-countdown[data-countdown] .countdown-digit,
body[data-page="search"] .search-stage-group .market-countdown[data-countdown] .countdown-digit {
  width: 0.62em;
  height: 1.06em;
  -webkit-mask-image: none;
  mask-image: none;
}

body[data-page="stage"] .search-stage-group .market-countdown[data-countdown] .countdown-digit-face,
body[data-page="search"] .search-stage-group .market-countdown[data-countdown] .countdown-digit-face {
  height: 1.06em;
  line-height: 1.04;
}

body[data-page="stage"] .search-stage-group .market-countdown[data-countdown] .countdown-separator,
body[data-page="search"] .search-stage-group .market-countdown[data-countdown] .countdown-separator {
  padding: 0 0.02em;
  height: 1.06em;
  line-height: 1;
  transform: translateY(-0.015em);
}

body[data-page="stage"] .search-stage-group .market-card-action,
body[data-page="search"] .search-stage-group .market-card-action {
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 7px;
}

body[data-page="stage"] .search-stage-group .market-consensus b,
body[data-page="search"] .search-stage-group .market-consensus b {
  font-size: 19px;
}

body[data-page="stage"] .search-stage-group .market-consensus span,
body[data-page="search"] .search-stage-group .market-consensus span {
  font-size: 9.5px;
}

body[data-page="stage"] .search-stage-group .tag,
body[data-page="stage"] .search-stage-group .status-pill,
body[data-page="search"] .search-stage-group .tag,
body[data-page="search"] .search-stage-group .status-pill {
  min-height: 20px;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 9.8px;
}

body[data-page="stage"] .search-stage-group .market-action-cluster,
body[data-page="search"] .search-stage-group .market-action-cluster {
  gap: 8px;
}

body[data-page="stage"] .search-stage-group .market-action-cluster .market-countdown,
body[data-page="search"] .search-stage-group .market-action-cluster .market-countdown {
  font-size: 10.6px;
}

body[data-page="stage"] .stage-page-footer,
body[data-page="search"] .stage-page-footer {
  padding: 10px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  outline: 0 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

body[data-page="stage"] .stage-page-footer .btn,
body[data-page="search"] .stage-page-footer .btn {
  border: 0 !important;
  background: rgba(255, 255, 255, 0.038) !important;
  box-shadow: none !important;
}

body[data-page="stage"] .stage-page-footer .btn:hover,
body[data-page="stage"] .stage-page-footer .btn:focus-visible,
body[data-page="search"] .stage-page-footer .btn:hover,
body[data-page="search"] .stage-page-footer .btn:focus-visible {
  border: 0 !important;
  background: rgba(255, 255, 255, 0.072) !important;
}

body[data-page="stage"] .stage-page-number,
body[data-page="search"] .stage-page-number {
  border: 0 !important;
  box-shadow: none !important;
  background: rgba(255, 255, 255, 0.038) !important;
}

body[data-page="stage"] .stage-page-footer::before,
body[data-page="stage"] .stage-page-footer::after,
body[data-page="search"] .stage-page-footer::before,
body[data-page="search"] .stage-page-footer::after {
  content: none !important;
}

@media (max-width: 1620px) {
  body[data-page="stage"] .search-stage-group .stage-topic-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1380px) {
  body[data-page="stage"] .search-stage-group .stage-topic-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body[data-page="stage"] .search-hero p {
    white-space: normal;
  }
}

@media (max-width: 1120px) {
  body[data-page="stage"] .search-stage-group .stage-topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body[data-page="stage"] .search-stage-group .stage-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body[data-page="stage"] .search-stage-group .stage-topic-grid,
  body[data-page="search"] .search-stage-group .stage-topic-grid {
    grid-template-columns: 1fr;
  }
}

body:not([data-page="index"]) .stage-page-footer {
  padding-top: 14px !important;
}

body:not([data-page="index"]) .trust-grid,
body:not([data-page="index"]) .showcase-grid,
body:not([data-page="index"]) .contact-grid {
  gap: 16px;
}

body:not([data-page="index"]) .showcase-card-head,
body:not([data-page="index"]) .showcase-metrics,
body:not([data-page="index"]) .contact-card p:last-child {
  margin-top: 0;
}

body:not([data-page="index"]) .showcase-metrics {
  display: grid;
  gap: 8px;
}

body:not([data-page="index"]) .showcase-metrics span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(198, 211, 216, 0.62);
  font-size: 11px;
}

body:not([data-page="index"]) .showcase-metrics b {
  color: var(--text);
  font-size: 13px;
}

body:not([data-page="index"]) .info-tabs {
  gap: 16px;
  min-height: 0;
  padding: 0 0 2px;
  border-bottom: 0;
}

body:not([data-page="index"]) .info-tabs a {
  color: rgba(198, 211, 216, 0.56);
  font-size: 11px;
}

body:not([data-page="index"]) .info-tabs a.is-active,
body:not([data-page="index"]) .info-tabs a:hover {
  color: var(--text);
}

body:not([data-page="index"]) .search-query-chip {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(198, 211, 216, 0.62);
  font-size: 11px;
}

body:not([data-page="analysis"]) .analysis-notice {
  border-top: 0;
}

body[data-page="analysis"] .analysis-notice {
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

body[data-page="analysis"] .representative-grid,
body[data-page="verified"] .verification-charts {
  gap: 12px;
}

body[data-page="analysis"] .analysis-panel .section-heading p,
body[data-page="verified"] .analysis-panel .section-heading p,
body[data-page="verified"] .closest-panel .section-heading p,
body[data-page="submit-step1"] .form-head p,
body[data-page="submit-step2"] .form-head p {
  display: none;
}

body[data-page="analysis"] .analysis-panel .section-heading,
body[data-page="verified"] .analysis-panel .section-heading,
body[data-page="verified"] .closest-panel .section-heading {
  padding-bottom: 8px;
}

body[data-page="analysis"] .rank-row,
body[data-page="verified"] .rank-row {
  padding: 2px 0 0 !important;
}

body[data-page="analysis"] .analysis-panel,
body[data-page="verified"] .analysis-panel {
  gap: 10px;
}

body[data-page="analysis"] .representative-card,
body[data-page="verified"] .closest-user-card {
  gap: 8px;
}

body[data-page="submit-step1"] .submit-workbench,
body[data-page="submit-step2"] .submit-step2-layout {
  align-items: start;
}

body[data-page="submit-step1"] .submit-note-panel,
body[data-page="submit-step2"] .review-panel {
  align-self: stretch;
}

body[data-page="profile"] .profile-stat-grid {
  border-top: 0;
  padding-top: 0;
}

body[data-page="profile"] .profile-stat-grid article {
  min-height: 70px;
}

body[data-page="profile"] .profile-records-panel .filter-tabs {
  gap: 12px;
}

body[data-page="profile"] .account-panel + .account-panel,
body[data-page="profile"] .profile-chart-card + .profile-chart-card {
  margin-top: 0;
}

@media (max-width: 1180px) {
  body:not([data-page="index"]) :is(
    .subpage-hero,
    .trust-hero,
    .search-hero,
    .analysis-hero,
    .verified-hero,
    .submit-hero,
    .profile-hero,
    .admin-hero
  ) {
    grid-template-columns: 1fr;
    align-items: start;
  }

  body:not([data-page="index"]) .analysis-summary,
  body:not([data-page="index"]) .verified-summary {
    min-width: 0;
  }

  body:not([data-page="index"]) .analysis-summary div,
  body:not([data-page="index"]) .verified-summary div {
    min-height: 0;
  }

  body:not([data-page="index"]) .analysis-grid,
  body:not([data-page="index"]) .verification-grid,
  body:not([data-page="index"]) .profile-dashboard,
  body:not([data-page="index"]) .submit-workbench,
  body:not([data-page="index"]) .submit-step2-layout,
  body:not([data-page="index"]) .admin-layout {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  body:not([data-page="index"]) .closest-user-lane,
  body:not([data-page="index"]) .trust-grid,
  body:not([data-page="index"]) .showcase-grid,
  body:not([data-page="index"]) .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  body:not([data-page="index"]) .topic-background,
  body:not([data-page="index"]) .system-view-card,
  body:not([data-page="index"]) .comparison-grid,
  body:not([data-page="index"]) .match-panel {
    grid-template-columns: 1fr;
  }

  body:not([data-page="index"]) .topic-background p,
  body:not([data-page="index"]) .system-view-card p {
    grid-column: 1;
  }

  body:not([data-page="index"]) .comparison-card + .comparison-card,
  body:not([data-page="index"]) .match-columns section + section {
    padding-left: 0;
    border-left: 0;
  }
}

body[data-page="profile"] .setting-list b {
  font-size: 13px;
  line-height: 1.2;
}

@media (max-width: 1180px) {
  body[data-page="profile"] .profile-dashboard {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body[data-page="profile"] .profile-record-card p {
    max-width: 100%;
  }

  body[data-page="profile"] .record-metrics {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body[data-page="profile"] .record-metrics span + span {
    padding-left: 0;
    border-left: 0;
  }
}

body[data-page="profile"] .profile-records-panel,
body[data-page="profile"] .profile-chart-panel,
body[data-page="profile"] .account-panel {
  border-top: 0;
  padding-top: 0;
}

body[data-page="profile"] .profile-records-panel .section-heading,
body[data-page="profile"] .profile-chart-panel .section-heading,
body[data-page="profile"] .account-panel .section-heading {
  border-bottom: 0;
  padding-bottom: 8px;
}

body[data-page="profile"] .profile-record-list {
  gap: 12px;
}

body[data-page="profile"] .profile-record-card {
  border-top: 0 !important;
  padding: 0;
}

body[data-page="profile"] .profile-record-card + .profile-record-card {
  margin-top: 2px;
}

body[data-page="profile"] .profile-chart-list {
  gap: 18px;
}

body[data-page="profile"] .profile-chart-card {
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  padding: 12px 0 0;
}

body[data-page="profile"] .profile-right-rail {
  gap: 16px;
}

body[data-page="profile"] .account-grid {
  gap: 18px;
}

body[data-page="profile"] .account-panel {
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  padding-top: 12px;
  padding-bottom: 0;
}

body[data-page="profile"] .setting-list span {
  border-top: 0 !important;
  padding-top: 7px;
  padding-bottom: 7px;
}

body[data-page="profile"] .setting-list span + span {
  margin-top: 2px;
}

body[data-page="profile"] .profile-stat-grid {
  border-top-color: rgba(255, 255, 255, 0.04);
}

body[data-page="profile"] .profile-stat-grid article {
  border-left-color: rgba(255, 255, 255, 0.04);
}

body[data-page="profile"] .privacy-danger-zone {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body[data-page="profile"] .privacy-danger-zone strong {
  display: block;
  font-size: 13px;
  line-height: 1.2;
}

body[data-page="profile"] .privacy-danger-zone p {
  margin: 6px 0 0;
  color: rgba(196, 212, 216, 0.58);
  font-size: 11px;
  line-height: 1.5;
}

body[data-page="profile"] .inline-danger-action {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e0a989;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: color 220ms linear, transform 220ms linear;
}

body[data-page="profile"] .inline-danger-action:hover,
body[data-page="profile"] .inline-danger-action:focus-visible {
  color: #f0b899;
  transform: translateY(-1px);
  outline: none;
}

@media (max-width: 720px) {
  body[data-page="profile"] .privacy-danger-zone {
    flex-direction: column;
    align-items: start;
  }
}

/* final subpage unification: align inner pages with homepage product language */
body:not([data-page="index"]) .content {
  gap: 14px;
}

body:not([data-page="index"]) :is(.subpage-hero, .analysis-hero, .verified-hero, .submit-hero, .profile-hero) {
  min-height: 0 !important;
  padding: 10px 0 4px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
}

body:not([data-page="index"]) :is(.subpage-hero, .analysis-hero, .verified-hero, .submit-hero, .profile-hero) h1 {
  font-size: clamp(24px, 3vw, 36px) !important;
  line-height: 1.06 !important;
  letter-spacing: 0 !important;
  max-width: 18ch;
}

body:not([data-page="index"]) :is(.subpage-hero, .analysis-hero, .verified-hero, .submit-hero, .profile-hero) p {
  max-width: 62ch;
  margin-top: 6px;
  font-size: 12.5px !important;
  line-height: 1.55 !important;
  color: rgba(198, 211, 216, 0.68) !important;
}

body:not([data-page="index"]) :is(.analysis-summary, .verified-summary, .submit-topic-meta) {
  min-width: 250px;
  gap: 10px !important;
  padding: 2px 0 0 !important;
}

body:not([data-page="index"]) :is(.analysis-summary div, .verified-summary div) {
  min-height: 0 !important;
  padding-left: 14px !important;
  border-left: 1px solid rgba(255, 255, 255, 0.06) !important;
}

body:not([data-page="index"]) :is(.analysis-summary dt, .verified-summary dt) {
  font-size: 10px !important;
  letter-spacing: 0.12em;
  color: rgba(184, 200, 205, 0.48) !important;
}

body:not([data-page="index"]) :is(.analysis-summary dd, .verified-summary dd) {
  margin-top: 6px !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
}

body:not([data-page="index"]) :is(.topic-background, .system-view-card, .analysis-panel, .match-panel, .system-prompt-card, .submit-note-panel, .prediction-form, .review-panel, .closest-panel) {
  border: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.012) 100%) !important;
  box-shadow: none !important;
}

body:not([data-page="index"]) :is(.topic-background, .system-view-card, .match-panel, .system-prompt-card, .submit-note-panel, .prediction-form, .review-panel, .closest-panel) {
  padding: 14px 16px !important;
}

body:not([data-page="index"]) .topic-background {
  gap: 12px !important;
}

body:not([data-page="index"]) .topic-background h2,
body:not([data-page="index"]) .system-view-card h2,
body:not([data-page="index"]) .prediction-form h2,
body:not([data-page="index"]) .review-panel h2,
body:not([data-page="index"]) .system-prompt-card h2,
body:not([data-page="index"]) .profile-records-panel .section-heading h2,
body:not([data-page="index"]) .profile-chart-panel .section-heading h2,
body:not([data-page="index"]) .account-panel .section-heading h2 {
  font-size: 14px !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
}

body:not([data-page="index"]) .topic-background p,
body:not([data-page="index"]) .system-view-card p {
  font-size: 12.5px !important;
  line-height: 1.62 !important;
  color: rgba(198, 211, 216, 0.72) !important;
}

body[data-page="analysis"] .analysis-grid,
body[data-page="verified"] .verification-grid {
  gap: 14px !important;
  align-items: start;
}

body[data-page="analysis"] .analysis-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr) !important;
}

body[data-page="verified"] .verification-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr) !important;
}

body[data-page="analysis"] .analysis-panel,
body[data-page="verified"] .analysis-panel {
  padding: 14px 16px !important;
  gap: 12px !important;
}

body[data-page="analysis"] .analysis-panel .section-heading,
body[data-page="verified"] .analysis-panel .section-heading,
body[data-page="verified"] .closest-panel .section-heading,
body[data-page="profile"] .profile-records-panel .section-heading,
body[data-page="profile"] .profile-chart-panel .section-heading,
body[data-page="profile"] .account-panel .section-heading {
  min-height: 0 !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045) !important;
}

body[data-page="analysis"] .analysis-panel .section-heading p,
body[data-page="verified"] .analysis-panel .section-heading p {
  margin-top: 4px !important;
  display: block !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
  color: rgba(187, 201, 206, 0.56) !important;
}

body[data-page="analysis"] .rank-row,
body[data-page="verified"] .rank-row {
  min-height: 42px;
  padding: 8px 0 !important;
  align-items: center;
  border-top-color: rgba(255, 255, 255, 0.035) !important;
}

body[data-page="analysis"] .rank-row strong,
body[data-page="verified"] .rank-row strong {
  font-size: 11px !important;
  color: rgba(188, 202, 207, 0.52) !important;
}

body[data-page="analysis"] .rank-row p,
body[data-page="verified"] .rank-row p {
  font-size: 12px !important;
  line-height: 1.45 !important;
  color: rgba(232, 241, 243, 0.88) !important;
}

body[data-page="analysis"] .analysis-charts,
body[data-page="verified"] .verification-charts,
body[data-page="profile"] .profile-chart-list {
  gap: 12px !important;
}

body[data-page="analysis"] .chart-card,
body[data-page="analysis"] .category-card,
body[data-page="analysis"] .representative-card,
body[data-page="verified"] .chart-card,
body[data-page="verified"] .comparison-card,
body[data-page="verified"] .closest-user-card,
body[data-page="profile"] .profile-chart-card,
body[data-page="profile"] .profile-record-card {
  border: 0 !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.022) !important;
  box-shadow: none !important;
}

body[data-page="analysis"] .chart-card,
body[data-page="verified"] .chart-card {
  padding: 14px 16px !important;
}

body[data-page="analysis"] .representative-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body[data-page="analysis"] .representative-card,
body[data-page="verified"] .closest-user-card {
  min-height: 0 !important;
  padding: 14px !important;
  gap: 10px !important;
}

body[data-page="analysis"] .representative-card p,
body[data-page="verified"] .closest-user-card p {
  font-size: 11.5px !important;
  line-height: 1.58 !important;
  color: rgba(193, 207, 212, 0.72) !important;
}

body[data-page="analysis"] .category-grid {
  gap: 12px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body[data-page="analysis"] .category-card {
  padding: 14px !important;
}

body[data-page="analysis"] .analysis-notice {
  margin-top: 2px;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.016) !important;
  color: rgba(190, 203, 208, 0.7) !important;
}

body[data-page="verified"] .verification-stage {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  gap: 10px !important;
}

body[data-page="verified"] .report-ribbon {
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(185, 199, 205, 0.58) !important;
  letter-spacing: 0.16em !important;
  font-size: 10px !important;
}

body[data-page="verified"] .comparison-grid {
  gap: 10px !important;
}

body[data-page="verified"] .comparison-card {
  padding: 16px !important;
}

body[data-page="verified"] .comparison-card h2 {
  font-size: 12px !important;
  color: rgba(181, 196, 201, 0.58) !important;
}

body[data-page="verified"] .comparison-card p {
  margin-top: 8px !important;
  font-size: 13px !important;
  line-height: 1.62 !important;
  color: rgba(232, 241, 243, 0.84) !important;
}

body[data-page="verified"] .match-panel {
  padding: 16px !important;
  gap: 16px !important;
}

body[data-page="verified"] .match-score-block strong {
  font-size: clamp(28px, 4vw, 40px) !important;
  line-height: 1 !important;
}

body[data-page="verified"] .match-score-block em {
  font-size: 13px !important;
}

body[data-page="verified"] .closest-panel {
  padding: 14px 16px !important;
}

body[data-page="verified"] .closest-user-marquee,
body[data-page="verified"] .closest-user-track {
  overflow: visible !important;
  min-height: 0 !important;
  background: transparent !important;
  animation: none !important;
  transform: none !important;
}

body[data-page="verified"] .closest-user-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body[data-page="verified"] .closest-user-card .accuracy-score,
body[data-page="verified"] .closest-user-card .hit-reason {
  border-top-color: rgba(255, 255, 255, 0.04) !important;
}

body[data-page="verified"] .verified-report-layout {
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr) !important;
  gap: 18px !important;
  align-items: start !important;
}

body[data-page="verified"] .verified-core-stack,
body[data-page="verified"] .verified-side-stack {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  min-width: 0 !important;
}

body[data-page="verified"] .verified-side-stack > * {
  overflow: visible !important;
  min-width: 0 !important;
}

body[data-page="verified"] .rank-panel,
body[data-page="verified"] .chart-panel {
  padding: 14px 16px !important;
}

body[data-page="verified"] .rank-table {
  display: grid !important;
  gap: 0 !important;
}

body[data-page="verified"] .rank-row {
  min-height: 0 !important;
  padding: 10px 0 !important;
}

body[data-page="verified"] .verification-charts {
  gap: 12px !important;
}

body[data-page="verified"] .closest-panel {
  padding: 14px 16px 16px !important;
}

body[data-page="verified"] .closest-user-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  align-items: start !important;
}

body[data-page="verified"] .closest-user-card {
  min-height: 0 !important;
  height: auto !important;
  padding: 12px !important;
  gap: 8px !important;
  grid-template-rows: auto auto auto !important;
  align-content: start !important;
  align-self: start !important;
}

body[data-page="verified"] .closest-user-head {
  gap: 10px !important;
  align-items: start !important;
}

body[data-page="verified"] .closest-user-card .honor-mark {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  border-radius: 8px !important;
  font-size: 10px !important;
}

body[data-page="verified"] .closest-user-card .card-header {
  gap: 4px !important;
}

body[data-page="verified"] .closest-user-card strong {
  font-size: 12.5px !important;
  line-height: 1.12 !important;
}

body[data-page="verified"] .closest-user-card p {
  -webkit-line-clamp: 2 !important;
  min-height: calc(1.5em * 2) !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
}

body[data-page="verified"] .closest-user-footer {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: end !important;
  gap: 10px !important;
}

body[data-page="verified"] .closest-user-card .accuracy-score {
  gap: 3px !important;
  min-width: 52px !important;
}

body[data-page="verified"] .closest-user-card .accuracy-score b {
  font-size: 15px !important;
}

body[data-page="verified"] .closest-user-card .hit-reason {
  gap: 3px !important;
}

body[data-page="verified"] .closest-user-card .hit-reason b {
  -webkit-line-clamp: 1 !important;
  min-height: 1.42em !important;
  font-size: 11px !important;
}

body[data-page="verified"] .closest-user-card .text-toggle,
body[data-page="verified"] .closest-user-card .text-toggle-spacer {
  min-width: 48px !important;
}

body[data-page="profile"] .profile-center-shell,
body[data-page="profile"] .profile-center-shell-wide,
body[data-page="profile"] .profile-center-main {
  gap: 0 !important;
}

body[data-page="profile"] .profile-dashboard {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr) !important;
  gap: 22px !important;
}

body[data-page="profile"] .profile-records-panel,
body[data-page="profile"] .profile-chart-panel,
body[data-page="profile"] .account-panel {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body[data-page="profile"] .profile-record-list {
  gap: 0 !important;
}

body[data-page="profile"] .profile-record-card {
  padding: 14px 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
}

body[data-page="profile"] .profile-record-card:first-child {
  padding-top: 10px !important;
}

body[data-page="profile"] .profile-record-card h3 {
  font-size: 15px !important;
  line-height: 1.28 !important;
  max-width: 34ch;
}

body[data-page="profile"] .profile-record-card p {
  max-width: 60ch !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}

body[data-page="profile"] .profile-right-rail {
  gap: 20px !important;
}

body[data-page="profile"] .profile-chart-card,
body[data-page="profile"] .account-panel {
  padding-top: 12px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.045) !important;
}

body[data-page="profile"] .profile-chart-card h3 {
  font-size: 13px !important;
}

body[data-page="profile"] .track {
  height: 10px !important;
  min-height: 10px !important;
  max-height: 10px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 0 !important;
  box-shadow: none !important;
}

body[data-page="profile"] .track span {
  border: 0 !important;
  box-shadow: none !important;
  will-change: width !important;
}

body[data-page="profile"] .setting-list span {
  padding: 8px 0 !important;
}

body[data-page="submit-step1"] .submit-workbench,
body[data-page="submit-step2"] .submit-step2-layout {
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: start !important;
}

body[data-page="submit-step1"] .system-prompt-card,
body[data-page="submit-step1"] .submit-note-panel,
body[data-page="submit-step1"] .prediction-form,
body[data-page="submit-step2"] .review-panel,
body[data-page="submit-step2"] .prediction-form {
  padding: 16px 18px !important;
}

body[data-page="submit-step1"] .system-prompt-card,
body[data-page="submit-step1"] .submit-note-panel,
body[data-page="submit-step2"] .review-panel {
  background: rgba(255, 255, 255, 0.016) !important;
}

body[data-page="submit-step1"] .submit-note-panel h2,
body[data-page="submit-step2"] .review-panel h2 {
  font-size: 13px !important;
}

body[data-page="submit-step1"] .field-guide-list,
body[data-page="submit-step2"] .review-list {
  gap: 10px !important;
}

body[data-page="submit-step1"] .field-guide-list li,
body[data-page="submit-step2"] .review-list > * {
  padding-top: 10px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.045) !important;
}

body[data-page="submit-step1"] .prediction-form .form-head,
body[data-page="submit-step2"] .prediction-form .form-head {
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045) !important;
}

body[data-page="submit-step1"] .prediction-form .field,
body[data-page="submit-step2"] .prediction-form .field {
  gap: 6px !important;
}

body[data-page="submit-step1"] .prediction-form .field label,
body[data-page="submit-step2"] .prediction-form .field label {
  font-size: 12px !important;
}

body[data-page="submit-step1"] .prediction-form .field input,
body[data-page="submit-step1"] .prediction-form .field select,
body[data-page="submit-step1"] .prediction-form .field textarea,
body[data-page="submit-step2"] .prediction-form .field textarea {
  min-height: 42px;
  border: 0 !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.024) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045) !important;
}

body[data-page="submit-step1"] .prediction-form textarea#userPrompt,
body[data-page="submit-step1"] .prediction-form textarea#aiReasoning,
body[data-page="submit-step2"] .prediction-form textarea#betterDecision {
  min-height: 124px !important;
}

body[data-page="submit-step1"] .compact-prompt .prompt-box {
  border: 0 !important;
  border-radius: 10px !important;
  background: rgba(7, 12, 17, 0.52) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035) !important;
}

body[data-page="stage"] .subpage-market-section,
body[data-page="search"] .subpage-market-section {
  gap: 10px !important;
}

body[data-page="stage"] .subpage-market-section .market-board-head,
body[data-page="search"] .subpage-market-section .market-board-head {
  padding-bottom: 8px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045) !important;
}

body[data-page="stage"] .pagination,
body[data-page="search"] .pagination {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 12px 0 0 !important;
}

body[data-page="stage"] .pagination-pages,
body[data-page="search"] .pagination-pages {
  gap: 8px !important;
}

body[data-page="stage"] .pagination button,
body[data-page="search"] .pagination button {
  border: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 1280px) {
  body[data-page="analysis"] .representative-grid,
  body[data-page="verified"] .closest-user-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  body[data-page="analysis"] .analysis-grid,
  body[data-page="verified"] .verification-grid,
  body[data-page="profile"] .profile-dashboard,
  body[data-page="submit-step1"] .submit-workbench,
  body[data-page="submit-step2"] .submit-step2-layout {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  body[data-page="analysis"] .representative-grid,
  body[data-page="analysis"] .category-grid,
  body[data-page="verified"] .closest-user-grid {
    grid-template-columns: 1fr !important;
  }
}

body[data-page="verified"] .match-detail h2::before {
  content: none !important;
}

/* subpage shell sync with homepage */
body:not([data-page="index"]) {
  background: linear-gradient(180deg, #0b1015 0%, #080d12 48%, #070b10 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body:not([data-page="index"]) .market-topbar.subpage-topbar {
  z-index: 40;
  min-height: 52px;
  padding-top: 7px;
  padding-bottom: 5px;
  background: rgba(8, 11, 15, 0.84);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(18px);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body:not([data-page="index"]) .app-shell {
  padding-top: 68px;
}

body:not([data-page="index"]) .layout {
  padding-top: 8px;
}

body:not([data-page="index"]) .page-backbar {
  position: relative;
  z-index: 1;
  margin-top: 2px;
}

@media (max-width: 1180px) {
  body:not([data-page="index"]) .app-shell {
    padding-top: 108px;
  }
}

body:not([data-page="index"]) .market-topbar.subpage-topbar .brand-menu,
body:not([data-page="index"]) .market-topbar.subpage-topbar .user-menu {
  flex: 0 0 auto;
}

body:not([data-page="index"]) .market-topbar.subpage-topbar .brand {
  min-width: auto;
  gap: 10px;
}

body:not([data-page="index"]) .market-topbar.subpage-topbar .user-trigger small {
  display: none;
}

body:not([data-page="index"]) .market-topbar.subpage-topbar .brand-mark {
  width: 32px;
  height: 32px;
  border-color: rgba(107, 215, 228, 0.22);
  border-radius: 7px;
  box-shadow: none;
}

body:not([data-page="index"]) .market-topbar.subpage-topbar .brand strong,
body:not([data-page="index"]) .market-topbar.subpage-topbar .user-trigger strong {
  color: rgba(237, 246, 248, 0.92);
  font-size: 13.5px;
  letter-spacing: 0;
}

body:not([data-page="index"]) .market-topbar.subpage-topbar .market-category-strip {
  min-width: 0;
  min-height: 38px;
  gap: 22px;
  padding: 0 4px;
  border-bottom: 0;
  align-self: center;
}

body:not([data-page="index"]) .market-topbar.subpage-topbar .market-category-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  white-space: nowrap;
  font-size: 12.5px;
  line-height: 1;
}

body:not([data-page="index"]) .market-topbar.subpage-topbar .topbar-search-area {
  flex: initial;
  max-width: none;
  margin-left: 0;
}

body:not([data-page="index"]) .market-topbar.subpage-topbar .search-shell,
body:not([data-page="index"]) .market-topbar.subpage-topbar .user-trigger {
  height: 34px;
  min-height: 34px;
  border-radius: 9px;
}

body:not([data-page="index"]) .market-topbar.subpage-topbar .home-search-input {
  font-size: 13px;
}

body:not([data-page="index"]) .market-topbar.subpage-topbar .user-trigger {
  padding: 4px 0 4px 8px;
  border: 0;
  background: transparent;
}

/* final shared topic background panel: mirror submit page for sealed + verified */
body[data-page="analysis"] .verified-focus-grid > .analysis-panel.topic-story-panel,
body[data-page="verified"] .analysis-focus-grid > .analysis-panel.topic-story-panel {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  align-self: start !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  gap: 12px !important;
}

body[data-page="analysis"] .verified-focus-grid > .verified-truth-panel,
body[data-page="verified"] .verified-focus-grid > .verified-truth-panel {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: start !important;
  height: auto !important;
}

body[data-page="analysis"] .verified-focus-grid > .verified-self-panel,
body[data-page="verified"] .verified-focus-grid > .verified-self-panel {
  grid-column: 2 !important;
  grid-row: 2 !important;
  align-self: start !important;
  height: auto !important;
}

body[data-page="analysis"] .verified-focus-grid > .analysis-panel.topic-story-panel > h2,
body[data-page="verified"] .analysis-focus-grid > .analysis-panel.topic-story-panel > h2 {
  margin: 0 0 12px !important;
  font-size: 16px !important;
  line-height: 1.14 !important;
  transform: none !important;
}

.btn[data-action-kind="submitted-view"] {
  color: rgba(6, 10, 14, 0.96);
  background: var(--signal-open);
  border: 0;
  box-shadow: none;
}

.btn[data-action-kind="submitted-view"]:hover,
.btn[data-action-kind="submitted-view"]:focus-visible {
  color: rgba(6, 10, 14, 0.96);
  border-color: transparent;
  background: color-mix(in srgb, var(--signal-open) 88%, white);
}

body[data-page="submitted"] .analysis-hero {
  grid-template-columns: minmax(0, 1fr) 196px !important;
  gap: 16px !important;
  align-items: start !important;
  padding-bottom: 6px !important;
}

body[data-page="submitted"] .analysis-hero > :first-child {
  min-width: 0 !important;
  max-width: none !important;
}

body[data-page="submitted"] .analysis-hero h1 {
  display: block;
  width: 100%;
  max-width: none !important;
  white-space: normal !important;
  text-wrap: initial !important;
  overflow-wrap: normal !important;
  word-break: keep-all;
}

body[data-page="submitted"] .verified-summary {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 30px !important;
  min-width: 196px;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-page="submitted"] .verified-summary-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 0 !important;
  padding: 0 !important;
  position: relative;
}

body[data-page="submitted"] .verified-summary-item + .verified-summary-item {
  margin-left: 14px !important;
}

body[data-page="submitted"] .verified-summary-label {
  color: rgba(198, 211, 216, 0.56) !important;
  font-size: 10px !important;
  letter-spacing: 0.08em !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body[data-page="submitted"] .verified-summary-value {
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  min-height: 0 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  color: rgba(236, 243, 245, 0.92) !important;
  white-space: nowrap !important;
}

body[data-page="submitted"] .verified-summary .status-pill {
  min-height: 18px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--signal-open) !important;
  line-height: 1 !important;
}

body[data-page="submitted"] .verified-summary .status-pill::before {
  content: "" !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 999px !important;
  background: currentColor !important;
  opacity: 0.9 !important;
}

body[data-page="submitted"] .verified-summary div,
body[data-page="submitted"] .verified-summary div:first-child {
  border-left: 0 !important;
  padding-left: 0 !important;
}

body[data-page="submitted"] .verified-summary-item::before {
  display: none !important;
  content: none !important;
}

body[data-page="submitted"] .verified-focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 34px;
  align-items: stretch;
  margin-top: 22px !important;
}

body[data-page="submitted"] .verified-focus-grid > .analysis-panel.topic-story-panel {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  align-self: start !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  gap: 12px !important;
}

body[data-page="submitted"] .verified-focus-grid > .analysis-panel.topic-story-panel > h2 {
  margin: 0 0 12px !important;
  font-size: 16px !important;
  line-height: 1.14 !important;
  transform: none !important;
}

body[data-page="submitted"] .verified-focus-grid > .analysis-panel.topic-story-panel .topic-background-copy {
  display: grid !important;
  gap: 10px !important;
  flex: 0 0 auto !important;
}

body[data-page="submitted"] .verified-focus-grid > .analysis-panel.topic-story-panel .topic-background-copy p {
  margin: 0 !important;
  font-size: 12.5px !important;
  line-height: 1.62 !important;
  color: rgba(205, 218, 223, 0.72) !important;
}

body[data-page="submitted"] .verified-focus-grid > .analysis-panel.topic-story-panel .topic-background-visual-wrap {
  margin-top: 14px !important;
  display: flex !important;
  width: 100% !important;
  flex: 0 0 auto !important;
  align-items: flex-end !important;
  min-height: 436px !important;
  height: 436px !important;
  max-height: 436px !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  background: transparent !important;
}

body[data-page="submitted"] .verified-focus-grid > .analysis-panel.topic-story-panel .topic-background-visual {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 436px !important;
  flex: 1 1 auto !important;
  object-fit: cover !important;
  object-position: center center !important;
}

body[data-page="submitted"] .verified-focus-grid > .verified-truth-panel,
body[data-page="submitted"] .verified-focus-grid > .verified-self-panel {
  grid-column: 2 !important;
  align-self: start !important;
  height: auto !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  margin-left: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  padding: 0 !important;
  min-height: 0 !important;
}

body[data-page="submitted"] .verified-focus-grid > .verified-truth-panel {
  grid-row: 1 !important;
}

body[data-page="submitted"] .verified-focus-grid > .verified-self-panel {
  grid-row: 2 !important;
}

body[data-page="submitted"] .verified-focus-grid > .verified-truth-panel .section-heading,
body[data-page="submitted"] .verified-focus-grid > .verified-self-panel .section-heading {
  min-height: 0 !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045) !important;
}

body[data-page="submitted"] .verified-accuracy-badge {
  display: grid !important;
  justify-items: end !important;
  gap: 4px !important;
  text-align: right !important;
}

body[data-page="submitted"] .verified-accuracy-badge strong {
  display: inline-flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  min-width: max-content !important;
  overflow: visible !important;
  padding-inline-start: 0.03em !important;
  font-size: clamp(28px, 4vw, 40px) !important;
  font-weight: 900 !important;
  line-height: 0.96 !important;
  color: rgba(214, 232, 216, 0.94) !important;
}

body[data-page="submitted"] .verified-accuracy-badge strong [data-topic-metric-slot],
body[data-page="submitted"] .verified-accuracy-badge strong .metric-roll,
body[data-page="submitted"] .verified-accuracy-badge strong .metric-char,
body[data-page="submitted"] .verified-accuracy-badge strong .metric-digit,
body[data-page="submitted"] .verified-accuracy-badge strong .metric-digit-face,
body[data-page="submitted"] .verified-accuracy-badge strong .metric-separator {
  font-weight: 900 !important;
}

body[data-page="submitted"] .verified-accuracy-badge strong .metric-roll {
  overflow: visible !important;
  gap: 0.012em !important;
  padding-inline: 0 0 !important;
  padding-inline-start: 0.026em !important;
}

body[data-page="submitted"] .verified-accuracy-badge strong .metric-digit {
  width: 0.7em !important;
  overflow: visible !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

body[data-page="submitted"] .verified-accuracy-badge strong .metric-digit-face {
  box-sizing: border-box !important;
  padding-inline: 0.024em 0 !important;
}

body[data-page="submitted"] .verified-accuracy-badge strong .metric-roll > .metric-digit:first-child .metric-digit-face {
  padding-inline-start: 0.056em !important;
}

body[data-page="submitted"] .verified-accuracy-badge > span {
  color: rgba(188, 203, 209, 0.72) !important;
  font-size: 11px !important;
  line-height: 1.1 !important;
}

body[data-page="submitted"] .analysis-consensus-grid {
  grid-template-columns: 1fr !important;
}

body[data-page="submitted"] .verified-truth-grid,
body[data-page="submitted"] .analysis-consensus-grid {
  flex: 1 1 auto !important;
  align-items: stretch !important;
}

body[data-page="submitted"] .verified-truth-card {
  padding: 14px 16px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.022) !important;
  height: 100% !important;
}

body[data-page="submitted"] .verified-truth-card h3 {
  margin: 0 0 8px !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
  color: rgba(178, 194, 200, 0.6) !important;
}

body[data-page="submitted"] .verified-truth-card p {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.62 !important;
  color: rgba(232, 241, 243, 0.86) !important;
}

body[data-page="submitted"] .verified-self-grid {
  display: grid !important;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr) !important;
  gap: 12px !important;
  flex: 1 1 auto !important;
  align-items: stretch !important;
  grid-template-rows: auto 1fr !important;
}

body[data-page="submitted"] .verified-self-card {
  display: grid !important;
  gap: 6px !important;
  padding: 14px 16px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.022) !important;
}

body[data-page="submitted"] .verified-self-card-wide {
  grid-column: 1 / -1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-self: stretch !important;
  min-height: 0 !important;
  height: 100% !important;
}

body[data-page="submitted"] .verified-self-label {
  color: rgba(184, 198, 204, 0.54) !important;
  font-size: 10px !important;
  line-height: 1 !important;
}

body[data-page="submitted"] .verified-self-card strong {
  font-size: 16px !important;
  line-height: 1.16 !important;
  color: rgba(242, 248, 250, 0.94) !important;
}

body[data-page="submitted"] .verified-self-card p {
  margin: 0 !important;
  font-size: 12.5px !important;
  line-height: 1.62 !important;
  color: rgba(212, 224, 228, 0.76) !important;
  flex: 1 1 auto !important;
}

@media (max-width: 1180px) {
  body[data-page="submitted"] .verified-focus-grid {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }

  body[data-page="submitted"] .verified-focus-grid > .analysis-panel.topic-story-panel,
  body[data-page="submitted"] .verified-focus-grid > .verified-truth-panel,
  body[data-page="submitted"] .verified-focus-grid > .verified-self-panel {
    grid-column: auto !important;
    grid-row: auto !important;
    height: auto !important;
    margin-left: 0 !important;
  }
}

@media (max-width: 760px) {
  body[data-page="submitted"] .verified-self-grid {
    grid-template-columns: 1fr !important;
  }
}

body[data-page="analysis"] .verified-focus-grid > .analysis-panel.topic-story-panel .topic-background-copy,
body[data-page="verified"] .analysis-focus-grid > .analysis-panel.topic-story-panel .topic-background-copy {
  display: grid !important;
  gap: 10px !important;
  flex: 0 0 auto !important;
}

body[data-page="analysis"] .verified-focus-grid > .analysis-panel.topic-story-panel .topic-background-copy p,
body[data-page="verified"] .analysis-focus-grid > .analysis-panel.topic-story-panel .topic-background-copy p {
  margin: 0 !important;
  font-size: 12.5px !important;
  line-height: 1.62 !important;
  color: rgba(205, 218, 223, 0.72) !important;
}

body[data-page="analysis"] .verified-focus-grid > .analysis-panel.topic-story-panel .topic-background-visual-wrap,
body[data-page="verified"] .analysis-focus-grid > .analysis-panel.topic-story-panel .topic-background-visual-wrap {
  margin-top: 14px !important;
  display: flex !important;
  width: 100% !important;
  flex: 0 0 auto !important;
  align-self: auto !important;
  align-items: flex-end !important;
  min-height: 436px !important;
  height: 436px !important;
  max-height: 436px !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  background: transparent !important;
}

body[data-page="analysis"] .verified-focus-grid > .analysis-panel.topic-story-panel .topic-background-visual,
body[data-page="verified"] .analysis-focus-grid > .analysis-panel.topic-story-panel .topic-background-visual {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 436px !important;
  max-height: none !important;
  flex: 1 1 auto !important;
  object-fit: cover !important;
  object-position: center center !important;
}

body[data-page="verified"] .analysis-focus-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr) !important;
  gap: 34px !important;
  align-items: stretch !important;
  margin-top: 22px !important;
}

body[data-page="analysis"] .verified-focus-grid {
  gap: 34px !important;
}

body[data-page="verified"] .analysis-focus-grid > .verified-truth-panel {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: start !important;
  height: auto !important;
}

body[data-page="verified"] .analysis-focus-grid > .verified-self-panel {
  grid-column: 2 !important;
  grid-row: 2 !important;
  align-self: start !important;
  height: auto !important;
}

body[data-page="analysis"] .verified-focus-grid > .verified-truth-panel,
body[data-page="analysis"] .verified-focus-grid > .verified-self-panel,
body[data-page="verified"] .analysis-focus-grid > .verified-truth-panel,
body[data-page="verified"] .analysis-focus-grid > .verified-self-panel {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  margin-left: 24px !important;
}

@media (max-width: 1180px) {
  body[data-page="analysis"] .verified-focus-grid > .analysis-panel.topic-story-panel,
  body[data-page="verified"] .analysis-focus-grid > .analysis-panel.topic-story-panel,
  body[data-page="analysis"] .verified-focus-grid > .verified-truth-panel,
  body[data-page="verified"] .analysis-focus-grid > .verified-truth-panel,
  body[data-page="analysis"] .verified-focus-grid > .verified-self-panel,
  body[data-page="verified"] .analysis-focus-grid > .verified-self-panel {
    grid-column: auto !important;
    grid-row: auto !important;
    height: auto !important;
  }

  body[data-page="verified"] .analysis-focus-grid {
    grid-template-columns: 1fr !important;
  }

  body[data-page="analysis"] .verified-focus-grid,
  body[data-page="verified"] .analysis-focus-grid {
    gap: 22px !important;
  }

  body[data-page="analysis"] .verified-focus-grid > .verified-truth-panel,
  body[data-page="analysis"] .verified-focus-grid > .verified-self-panel,
  body[data-page="verified"] .analysis-focus-grid > .verified-truth-panel,
  body[data-page="verified"] .analysis-focus-grid > .verified-self-panel {
    margin-left: 0 !important;
  }
}

/* sealed / verified right-column fill behavior */
body[data-page="analysis"] .verified-focus-grid > .verified-truth-panel,
body[data-page="analysis"] .verified-focus-grid > .verified-self-panel,
body[data-page="submitted"] .verified-focus-grid > .verified-truth-panel,
body[data-page="submitted"] .verified-focus-grid > .verified-self-panel,
body[data-page="verified"] .analysis-focus-grid > .verified-truth-panel,
body[data-page="verified"] .analysis-focus-grid > .verified-self-panel {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  padding: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
}

body[data-page="analysis"] .verified-focus-grid > .verified-truth-panel .section-heading,
body[data-page="analysis"] .verified-focus-grid > .verified-self-panel .section-heading,
body[data-page="submitted"] .verified-focus-grid > .verified-truth-panel .section-heading,
body[data-page="submitted"] .verified-focus-grid > .verified-self-panel .section-heading,
body[data-page="verified"] .analysis-focus-grid > .verified-truth-panel .section-heading,
body[data-page="verified"] .analysis-focus-grid > .verified-self-panel .section-heading {
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}

body[data-page="analysis"] .verified-focus-grid > .verified-truth-panel .verified-truth-grid,
body[data-page="analysis"] .verified-focus-grid > .verified-truth-panel .analysis-consensus-grid,
body[data-page="submitted"] .verified-focus-grid > .verified-truth-panel .verified-truth-grid,
body[data-page="submitted"] .verified-focus-grid > .verified-truth-panel .analysis-consensus-grid,
body[data-page="verified"] .analysis-focus-grid > .verified-truth-panel .verified-truth-grid,
body[data-page="verified"] .analysis-focus-grid > .verified-truth-panel .analysis-consensus-grid {
  flex: 1 1 auto !important;
  align-items: stretch !important;
}

body[data-page="analysis"] .verified-focus-grid > .verified-truth-panel .verified-truth-card,
body[data-page="analysis"] .verified-focus-grid > .verified-truth-panel .analysis-consensus-grid .verified-truth-card,
body[data-page="submitted"] .verified-focus-grid > .verified-truth-panel .verified-truth-card,
body[data-page="submitted"] .verified-focus-grid > .verified-truth-panel .analysis-consensus-grid .verified-truth-card,
body[data-page="verified"] .analysis-focus-grid > .verified-truth-panel .verified-truth-card,
body[data-page="verified"] .analysis-focus-grid > .verified-truth-panel .analysis-consensus-grid .verified-truth-card {
  height: 100% !important;
}

body[data-page="analysis"] .verified-focus-grid > .verified-self-panel .verified-self-grid,
body[data-page="submitted"] .verified-focus-grid > .verified-self-panel .verified-self-grid,
body[data-page="verified"] .analysis-focus-grid > .verified-self-panel .verified-self-grid {
  flex: 1 1 auto !important;
  align-items: stretch !important;
  grid-template-rows: auto 1fr !important;
}

body[data-page="analysis"] .verified-focus-grid > .verified-self-panel .verified-self-card-wide,
body[data-page="submitted"] .verified-focus-grid > .verified-self-panel .verified-self-card-wide,
body[data-page="verified"] .analysis-focus-grid > .verified-self-panel .verified-self-card-wide {
  display: flex !important;
  flex-direction: column !important;
  align-self: stretch !important;
  min-height: 0 !important;
  height: 100% !important;
}

body[data-page="analysis"] .verified-focus-grid > .verified-self-panel .verified-self-card-wide p,
body[data-page="submitted"] .verified-focus-grid > .verified-self-panel .verified-self-card-wide p,
body[data-page="verified"] .analysis-focus-grid > .verified-self-panel .verified-self-card-wide p {
  flex: 1 1 auto !important;
}

body[data-page="verified"] .verified-ranking-panel {
  margin-top: 22px !important;
}

body[data-page="verified"] .verified-ranking-panel .section-heading {
  transform: translateY(-2px) !important;
}

/* final lock: profile avatar must stay perfectly circular */
body[data-page="profile"] .profile-avatar {
  width: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
  height: 96px !important;
  min-height: 96px !important;
  max-height: 96px !important;
  aspect-ratio: 1 / 1 !important;
  align-self: start !important;
  justify-self: start !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  padding: 0 !important;
}

body[data-page="profile"] .profile-avatar--person {
  background: var(--avatar-bg, rgba(88, 102, 116, 0.94)) !important;
  color: var(--avatar-fg, rgba(239, 246, 250, 0.96)) !important;
}

body[data-page="profile"] .profile-avatar--person::before {
  top: 20px !important;
  width: 24px !important;
  height: 24px !important;
}

body[data-page="profile"] .profile-avatar--person::after {
  bottom: 18px !important;
  width: 46px !important;
  height: 26px !important;
}

@media (max-width: 640px) {
  body[data-page="profile"] .profile-avatar {
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
  }

  body[data-page="profile"] .profile-avatar--person::before {
    top: 13px !important;
    width: 16px !important;
    height: 16px !important;
  }

  body[data-page="profile"] .profile-avatar--person::after {
    bottom: 12px !important;
    width: 31px !important;
    height: 18px !important;
  }
}

/* final lock: profile hero spacing */
body[data-page="profile"] .profile-account-head {
  gap: 28px !important;
}

body[data-page="profile"] .profile-hero {
  padding-bottom: 28px !important;
}

body[data-page="profile"] .profile-records-panel .section-heading,
body[data-page="profile"] .profile-chart-panel .section-heading {
  margin-bottom: 10px !important;
}

body[data-page="profile"] .profile-dashboard {
  gap: 42px !important;
}

body[data-page="profile"] .profile-records-panel .section-heading,
body[data-page="profile"] .profile-chart-panel .section-heading {
  display: flex !important;
  align-items: center !important;
  min-height: 34px !important;
  margin-bottom: 12px !important;
}

body[data-page="profile"] .profile-right-rail {
  padding-top: 0 !important;
}

/* final lock: all subpage topbars should align their left rail to the content edge */
body:not([data-page="index"]) .market-topbar.subpage-topbar {
  padding-left: var(--topbar-rail-left) !important;
}

/* final lock: profile topbar rails should follow the content box, not 100vw */
body[data-page="profile"] .market-topbar.subpage-topbar {
  padding-left: var(--topbar-rail-left) !important;
  padding-right: max(var(--shell-pad-x), calc((100vw - var(--shell-max-width)) / 2)) !important;
}

/* final lock: keep the topbar logo identical on homepage and subpages */
.market-topbar .brand {
  min-width: auto !important;
  gap: 12px !important;
}

.market-topbar .brand strong,
.market-topbar .user-trigger strong {
  font-size: 13.5px !important;
  letter-spacing: 0 !important;
}

.market-topbar .brand .brand-wordmark {
  font-size: 22px !important;
}

.market-topbar .brand-mark {
  width: 36px !important;
  height: 36px !important;
  border-radius: 9px !important;
}

.market-topbar .market-category-strip {
  position: relative !important;
  top: 1px !important;
}

.market-topbar .user-menu {
  position: relative !important;
  top: 0 !important;
}

.market-topbar .user-trigger,
.market-topbar .user-trigger strong,
.market-topbar .user-trigger small,
.market-topbar .user-trigger .user-avatar-mini {
  transition:
    color 180ms ease,
    background-color 180ms ease,
    opacity 180ms ease !important;
}

.market-topbar .user-trigger:hover,
.market-topbar .user-trigger:focus-visible {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: var(--text) !important;
  opacity: 1 !important;
}

.market-topbar .user-trigger:hover strong,
.market-topbar .user-trigger:focus-visible strong {
  color: var(--text) !important;
}

.market-topbar .user-trigger:hover small,
.market-topbar .user-trigger:focus-visible small {
  color: rgba(196, 212, 216, 0.9) !important;
}

.market-topbar .user-trigger:hover .user-avatar-mini,
.market-topbar .user-trigger:focus-visible .user-avatar-mini {
  background: rgba(107, 215, 228, 0.16) !important;
  color: rgba(237, 246, 248, 0.96) !important;
}

.market-topbar .user-trigger:hover .user-avatar-mini--person,
.market-topbar .user-trigger:focus-visible .user-avatar-mini--person {
  background: var(--avatar-bg, rgba(88, 102, 116, 0.94)) !important;
  color: var(--avatar-fg, rgba(239, 246, 250, 0.96)) !important;
  filter: brightness(1.08) saturate(1.03);
}

/* final lock: event-page hero titles should wrap consistently across mixed Chinese/Latin headlines */
body[data-page="submit-step1"] .submit-hero,
body[data-page="analysis"] .analysis-hero,
body[data-page="verified"] .verified-hero,
body[data-page="submitted"] .analysis-hero {
  grid-template-columns: minmax(0, 1fr) clamp(176px, 16vw, 208px) !important;
  align-items: start !important;
  gap: 16px !important;
}

body[data-page="submit-step1"] .submit-hero > :first-child,
body[data-page="analysis"] .analysis-hero > :first-child,
body[data-page="verified"] .verified-hero > :first-child,
body[data-page="submitted"] .analysis-hero > :first-child {
  min-width: 0 !important;
  max-width: none !important;
  max-inline-size: min(100%, 880px) !important;
}

body[data-page="submit-step1"] .submit-hero h1,
body[data-page="analysis"] .analysis-hero h1,
body[data-page="verified"] .verified-hero h1,
body[data-page="submitted"] .analysis-hero h1 {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  white-space: normal !important;
  text-wrap: balance !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  line-break: auto !important;
}

body[data-page="submit-step1"] .verified-summary,
body[data-page="analysis"] .verified-summary,
body[data-page="verified"] .verified-summary,
body[data-page="submitted"] .verified-summary {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 30px !important;
  flex: 0 0 auto !important;
  min-width: 176px !important;
  padding: 2px 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

body[data-page="submit-step1"] .verified-summary-item,
body[data-page="analysis"] .verified-summary-item,
body[data-page="verified"] .verified-summary-item,
body[data-page="submitted"] .verified-summary-item {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  min-height: 18px !important;
  padding: 0 !important;
  position: relative !important;
  white-space: nowrap !important;
}

body[data-page="submit-step1"] .verified-summary-item + .verified-summary-item,
body[data-page="analysis"] .verified-summary-item + .verified-summary-item,
body[data-page="verified"] .verified-summary-item + .verified-summary-item,
body[data-page="submitted"] .verified-summary-item + .verified-summary-item {
  margin-left: 0 !important;
  padding-left: 18px !important;
}

body[data-page="submit-step1"] .verified-summary-item::before,
body[data-page="analysis"] .verified-summary-item::before,
body[data-page="verified"] .verified-summary-item::before,
body[data-page="submitted"] .verified-summary-item::before {
  content: none !important;
  display: none !important;
}

body[data-page="submit-step1"] .verified-summary-item + .verified-summary-item::before,
body[data-page="analysis"] .verified-summary-item + .verified-summary-item::before,
body[data-page="verified"] .verified-summary-item + .verified-summary-item::before,
body[data-page="submitted"] .verified-summary-item + .verified-summary-item::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  width: 1px !important;
  height: 16px !important;
  transform: translateY(-50%) !important;
  background: rgba(255, 255, 255, 0.09) !important;
}

body[data-page="submit-step1"] .verified-summary-label,
body[data-page="analysis"] .verified-summary-label,
body[data-page="verified"] .verified-summary-label,
body[data-page="submitted"] .verified-summary-label {
  font-size: 10px !important;
  line-height: 1 !important;
  letter-spacing: 0.08em !important;
  white-space: nowrap !important;
}

body[data-page="submit-step1"] .verified-summary-value,
body[data-page="analysis"] .verified-summary-value,
body[data-page="verified"] .verified-summary-value,
body[data-page="submitted"] .verified-summary-value {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  min-height: 0 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

body[data-page="submit-step1"] .verified-summary .status-pill,
body[data-page="analysis"] .verified-summary .status-pill,
body[data-page="verified"] .verified-summary .status-pill,
body[data-page="submitted"] .verified-summary .status-pill {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  gap: 6px !important;
  min-height: 18px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  font-size: 11px !important;
  line-height: 1 !important;
  position: static !important;
  top: auto !important;
  white-space: nowrap !important;
}

body[data-page="submit-step1"] .verified-summary .status-pill::before,
body[data-page="analysis"] .verified-summary .status-pill::before,
body[data-page="verified"] .verified-summary .status-pill::before,
body[data-page="submitted"] .verified-summary .status-pill::before {
  content: "" !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 999px !important;
  background: currentColor !important;
  opacity: 0.9 !important;
}

body[data-page="submit-step1"] .verified-summary .status-pill,
body[data-page="submitted"] .verified-summary .status-pill {
  color: var(--signal-open) !important;
}

body[data-page="analysis"] .verified-summary .status-pill {
  color: var(--accent) !important;
  font-weight: 700 !important;
}

body[data-page="verified"] .verified-summary .status-pill {
  color: #d9f7b6 !important;
}

body[data-page="analysis"] .verified-summary .status-pill::before {
  background: var(--accent) !important;
  opacity: 1 !important;
}

@media (max-width: 1180px) {
  body[data-page="submit-step1"] .submit-hero,
  body[data-page="analysis"] .analysis-hero,
  body[data-page="verified"] .verified-hero,
  body[data-page="submitted"] .analysis-hero {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  body[data-page="submit-step1"] .submit-hero > :first-child,
  body[data-page="analysis"] .analysis-hero > :first-child,
  body[data-page="verified"] .verified-hero > :first-child,
  body[data-page="submitted"] .analysis-hero > :first-child {
    max-inline-size: none !important;
  }

  body[data-page="submit-step1"] .verified-summary,
  body[data-page="analysis"] .verified-summary,
  body[data-page="verified"] .verified-summary,
  body[data-page="submitted"] .verified-summary {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
  }
}

/* Card UI sync: explicit variants so homepage/stage/search share one card UI,
   and profile/search-suggestions share another. */
.home-topic-card.market-card-grid {
  height: 214px;
  min-height: 214px;
  padding: 12px 12px 11px;
  border: 0;
  border-radius: 8px;
  display: grid;
  gap: 9px;
  align-content: stretch;
  background: rgba(18, 24, 31, 0.82);
  box-shadow: none;
}

.home-topic-card.market-card-grid::before,
.home-topic-card.market-card-grid::after {
  display: none;
}

.home-topic-card.market-card-grid .market-card-head {
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 10px;
  align-items: start;
}

.home-topic-card.market-card-grid h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 4px;
  color: rgba(237, 246, 248, 0.92);
  font-size: 13.5px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  min-height: calc(1.3em * 3);
  max-height: calc(1.3em * 3);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.home-topic-card.market-card-grid .market-consensus b {
  font-size: 19px;
}

.home-topic-card.market-card-grid .market-consensus [data-topic-metric-slot][data-topic-metric="confidence"],
.home-topic-card.market-card-grid .market-consensus [data-topic-metric-slot][data-topic-metric="confidence"] .lead-roll-item--metric,
.home-topic-card.market-card-grid .market-consensus [data-topic-metric-slot][data-topic-metric="confidence"] .metric-roll,
.home-topic-card.market-card-grid .market-consensus [data-topic-metric-slot][data-topic-metric="confidence"] .metric-char,
.home-topic-card.market-card-grid .market-consensus [data-topic-metric-slot][data-topic-metric="confidence"] .metric-digit,
.home-topic-card.market-card-grid .market-consensus [data-topic-metric-slot][data-topic-metric="confidence"] .metric-digit-face,
.home-topic-card.market-card-grid .market-consensus [data-topic-metric-slot][data-topic-metric="confidence"] .metric-separator {
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
}

.home-topic-card.market-card-grid .market-consensus span {
  font-size: 9.5px;
}

.home-topic-card.market-card-grid .tag-row {
  gap: 5px;
  min-height: 22px;
  max-height: 22px;
  overflow: hidden;
}

.home-topic-card.market-card-grid .tag,
.home-topic-card.market-card-grid .status-pill {
  min-height: 20px;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 9.8px;
}

.home-topic-card.market-card-grid .tag:not(.status-pill):nth-of-type(n+4) {
  display: none;
}

.home-topic-card.market-card-grid p {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(196, 212, 216, 0.78);
  font-size: 11.5px;
  line-height: 1.42;
  min-height: calc(1.42em * 2);
  max-height: calc(1.42em * 2);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-topic-card.market-card-grid .market-meta-line {
  padding-top: 0;
  gap: 8px;
  font-size: 10.8px;
  line-height: 1.35;
}

.home-topic-card.market-card-grid .market-meta-primary {
  gap: 6px 12px;
  align-items: center;
}

.home-topic-card.market-card-grid .market-meta-primary > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.home-topic-card.market-card-grid .market-meta-primary b {
  font-size: inherit;
  line-height: inherit;
}

.home-topic-card.market-card-grid .market-action-cluster {
  gap: 8px;
}

.home-topic-card.market-card-grid .market-card-action {
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 7px;
}

.home-topic-card .market-admin-manage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(225, 234, 237, 0.82);
  font: inherit;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
}

.home-topic-card .market-admin-manage:hover,
.home-topic-card .market-admin-manage:focus-visible {
  border: 0;
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  box-shadow: none;
}

.topic-admin-state-tag {
  background: rgba(245, 194, 92, 0.12) !important;
  color: rgba(248, 220, 150, 0.98) !important;
}

.home-topic-card.market-card-grid .market-countdown {
  align-items: center;
  gap: 5px;
  font-size: 10.6px;
  line-height: 1.35;
  font-weight: 800;
}

.home-topic-card.market-card-grid .market-countdown-label {
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
}

.home-topic-card.market-card-grid .market-countdown[data-countdown] .lead-roll-slot--countdown,
.home-topic-card.market-card-grid .market-countdown[data-countdown] .lead-roll-item--countdown {
  overflow: visible;
  align-items: center;
  line-height: 1.04;
}

.home-topic-card.market-card-grid .market-countdown[data-countdown] .countdown-roll {
  align-items: center;
  gap: 0.02em;
  line-height: 1.04;
}

.home-topic-card.market-card-grid .market-countdown[data-countdown] .countdown-char {
  display: inline-flex;
  align-items: center;
}

.home-topic-card.market-card-grid .market-countdown[data-countdown] .countdown-digit {
  width: 0.62em;
  height: 1.06em;
  -webkit-mask-image: none;
  mask-image: none;
}

.home-topic-card.market-card-grid .market-countdown[data-countdown] .countdown-digit-face {
  height: 1.06em;
  line-height: 1.04;
}

.home-topic-card.market-card-grid .market-countdown[data-countdown] .countdown-separator {
  padding: 0 0.02em;
  height: 1.06em;
  line-height: 1;
  transform: translateY(-0.015em);
}

.home-topic-card.market-card-record {
  min-height: 198px;
  padding: 14px 14px 13px;
  border: 0;
  border-radius: 16px;
  display: grid;
  gap: 10px;
  background: rgba(255, 255, 255, 0.034);
  box-shadow: none;
  transition: background-color 180ms linear, transform 180ms linear;
}

.home-topic-card.market-card-record::before,
.home-topic-card.market-card-record::after {
  display: none;
}

.home-topic-card.market-card-record .market-card-head {
  gap: 12px;
}

.home-topic-card.market-card-record h3 {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  min-height: calc(1.34em * 2);
  max-height: calc(1.34em * 2);
  font-size: 14px;
  line-height: 1.34;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-topic-card.market-card-record .tag-row {
  margin-top: 0;
  gap: 5px;
  min-height: 22px;
  max-height: 22px;
  overflow: hidden;
}

.home-topic-card.market-card-record .tag,
.home-topic-card.market-card-record .status-pill {
  min-height: 20px;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 9.8px;
}

.home-topic-card.market-card-record .tag:not(.status-pill):nth-of-type(n+4) {
  display: none;
}

.home-topic-card.market-card-record p {
  display: -webkit-box;
  overflow: hidden;
  min-height: calc(1.48em * 2);
  max-height: calc(1.48em * 2);
  color: rgba(196, 212, 216, 0.78);
  font-size: 11.5px;
  line-height: 1.48;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-topic-card.market-card-record .market-meta-line {
  margin-top: 0;
  padding-top: 0;
  font-size: 10.8px;
}

.home-topic-card.market-card-record .market-card-action {
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 7px;
}

.home-topic-card.market-card-record:hover,
.home-topic-card.market-card-record:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.admin-topic-action-bar {
  margin: 14px 0 18px;
}

.admin-topic-action-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.admin-topic-action-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-topic-inline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(225, 234, 237, 0.72);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
}

.admin-topic-inline-button:hover,
.admin-topic-inline-button:focus-visible {
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.admin-topic-inline-button.is-danger {
  background: rgba(214, 95, 95, 0.14);
  color: rgba(247, 183, 183, 0.96);
}

.admin-topic-inline-button.is-danger:hover,
.admin-topic-inline-button.is-danger:focus-visible {
  background: rgba(214, 95, 95, 0.18);
  color: rgba(255, 214, 214, 0.98);
}

.admin-topic-inline-button.is-success {
  background: rgba(184, 216, 186, 0.14);
  color: rgba(205, 232, 207, 0.98);
}

.admin-topic-inline-button.is-success:hover,
.admin-topic-inline-button.is-success:focus-visible {
  background: rgba(184, 216, 186, 0.18);
  color: rgba(232, 246, 233, 0.98);
}

.admin-topic-editor-modal-card {
  width: min(720px, 100%);
  max-height: calc(100vh - 56px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.admin-topic-editor-form {
  gap: 14px;
}

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

.admin-topic-editor-form :is(input, textarea),
.admin-topic-editor-actions .btn {
  border: 0;
  box-shadow: none;
}

.admin-topic-editor-form textarea {
  min-height: 112px;
  resize: vertical;
}

.admin-topic-editor-form .admin-topic-editor-prompt {
  min-height: 220px;
}

.admin-topic-editor-image-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.admin-topic-editor-form .admin-upload-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  height: 46px;
  padding: 0 16px;
}

.admin-topic-editor-image-adjust {
  display: grid;
  gap: 10px;
  margin-top: -2px;
}

.admin-topic-editor-image-status {
  margin: -2px 0 0;
  color: rgba(196, 212, 216, 0.62);
  font-size: 12px;
  line-height: 1.5;
}

.admin-topic-editor-form .admin-image-cropper {
  display: grid;
  gap: 8px;
}

.admin-topic-editor-form .admin-crop-frame {
  position: relative;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  cursor: grab;
  touch-action: none;
}

.admin-topic-editor-crop-frame {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 16 / 9 !important;
}

.admin-topic-editor-form .admin-crop-frame:has(.admin-empty-visual) {
  cursor: default;
}

.admin-topic-editor-form .admin-crop-frame.is-dragging {
  cursor: grabbing;
}

.admin-topic-editor-form .admin-crop-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.admin-topic-editor-form .admin-crop-frame.is-dragging img {
  transition: none;
}

.admin-topic-editor-form .admin-range-field {
  gap: 6px;
}

.admin-topic-editor-form .admin-range-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.admin-topic-editor-form .admin-range-row input[type="range"] {
  width: 100%;
  accent-color: rgba(107, 215, 228, 0.96);
}

.admin-topic-editor-form .admin-range-row span {
  min-width: 52px;
  color: rgba(225, 234, 237, 0.78);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.admin-topic-editor-deadline-grid {
  display: grid;
  gap: 10px;
}

.admin-topic-editor-form .admin-deadline-row {
  display: grid;
  grid-template-columns: minmax(124px, 0.95fr) minmax(112px, 0.85fr) minmax(112px, 0.85fr);
  gap: 10px;
}

.admin-topic-editor-form .admin-deadline-row--time {
  grid-template-columns: minmax(124px, 0.95fr) minmax(112px, 0.85fr) minmax(112px, 0.85fr);
}

.admin-topic-editor-form .admin-deadline-row select {
  min-height: 46px;
  height: 46px;
  padding: 0 34px 0 12px;
  border: 0;
  border-radius: 14px;
  background:
    linear-gradient(45deg, transparent 50%, rgba(225, 234, 237, 0.78) 50%) calc(100% - 16px) 48% / 6px 6px no-repeat,
    linear-gradient(135deg, rgba(225, 234, 237, 0.78) 50%, transparent 50%) calc(100% - 12px) 48% / 6px 6px no-repeat,
    rgba(33, 38, 44, 0.96);
  box-shadow: none;
  color: var(--text);
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.admin-topic-editor-form .admin-deadline-zone {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 46px;
  color: rgba(225, 234, 237, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.admin-topic-editor-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.admin-topic-editor-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 1px 16px 0;
  line-height: 1.2;
  overflow: visible;
}

.admin-topic-editor-actions .btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(225, 234, 237, 0.84);
}

.admin-topic-editor-actions .btn.primary {
  background: rgba(107, 215, 228, 0.96);
  color: rgba(10, 18, 22, 0.92);
}

.admin-topic-editor-actions .btn:hover,
.admin-topic-editor-actions .btn:focus-visible {
  border: 0;
  outline: none;
  box-shadow: none;
}

.admin-topic-editor-listing-action.is-danger {
  background: rgba(214, 95, 95, 0.14) !important;
  color: rgba(247, 183, 183, 0.96) !important;
}

.admin-topic-editor-listing-action.is-success {
  background: rgba(184, 216, 186, 0.14) !important;
  color: rgba(205, 232, 207, 0.98) !important;
}

.admin-topic-editor-form .auth-modal-error {
  margin: 0;
}

.lead-market-manage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(225, 234, 237, 0.84);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
}

.lead-market-manage:hover,
.lead-market-manage:focus-visible {
  border: 0;
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  box-shadow: none;
}

@media (max-width: 720px) {
  .admin-topic-editor-modal-card {
    max-height: calc(100vh - 28px);
  }

  .admin-topic-action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-topic-action-buttons {
    justify-content: flex-start;
  }

  .admin-topic-editor-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-topic-editor-image-row,
  .admin-topic-editor-form .admin-deadline-row,
  .admin-topic-editor-form .admin-deadline-row--time {
    grid-template-columns: 1fr;
  }
}

body[data-page="stage"] .subpage-market-grid .home-topic-card.market-card-grid .status-pill,
body[data-page="search"] .subpage-market-grid .home-topic-card.market-card-grid .status-pill,
body[data-page="stage"] .search-stage-group .home-topic-card.market-card-grid .status-pill,
body[data-page="search"] .search-stage-group .home-topic-card.market-card-grid .status-pill {
  gap: 8px;
  min-height: 20px;
  padding: 3px 6px;
  border-width: 1px;
  border-style: solid;
  border-radius: 6px;
  background: rgba(225, 244, 248, 0.035) !important;
  font-size: 9.8px;
  font-weight: 800;
}

body[data-page="stage"] .subpage-market-grid .home-topic-card.market-card-grid .status-pill::before,
body[data-page="search"] .subpage-market-grid .home-topic-card.market-card-grid .status-pill::before,
body[data-page="stage"] .search-stage-group .home-topic-card.market-card-grid .status-pill::before,
body[data-page="search"] .search-stage-group .home-topic-card.market-card-grid .status-pill::before {
  display: none;
  content: none;
}

.search-suggestion-card .tag-row .tag,
.search-suggestion-card .tag-row .status-pill,
.search-suggestion-card .market-card-action {
  pointer-events: none;
}

body[data-page="index"] .signal-rank-row .rank-score {
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 1px;
  min-width: max-content;
}

body[data-page="index"] .signal-rank-row .rank-score b {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  width: auto;
  white-space: nowrap;
  color: var(--accent-2);
}

body[data-page="index"] .signal-rank-row .rank-score > span {
  display: block;
  width: auto;
  white-space: nowrap;
  position: relative;
  top: 4px;
  color: var(--accent-2);
}

body[data-page="index"] .signal-rank-row .rank-metrics {
  align-items: center;
}

body[data-page="index"] .signal-rank-row .rank-metrics > span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28em;
  width: auto;
  white-space: nowrap;
}

body[data-page="index"] .signal-rank-row [data-rank-metric-slot] {
  display: inline-flex;
  flex: 0 0 auto;
  width: auto;
  min-width: max-content;
  white-space: nowrap;
  position: relative;
  top: 2px;
}

body[data-page="index"] .signal-rank-row .rank-score [data-rank-metric-slot] {
  top: 3px;
  color: var(--accent-2);
}

body[data-page="index"] .signal-rank-row .rank-score [data-rank-metric-slot] .lead-roll-item--metric,
body[data-page="index"] .signal-rank-row .rank-score [data-rank-metric-slot] .metric-roll,
body[data-page="index"] .signal-rank-row .rank-score [data-rank-metric-slot] .metric-char,
body[data-page="index"] .signal-rank-row .rank-score [data-rank-metric-slot] .metric-digit,
body[data-page="index"] .signal-rank-row .rank-score [data-rank-metric-slot] .metric-digit-face,
body[data-page="index"] .signal-rank-row .rank-score [data-rank-metric-slot] .metric-separator {
  color: var(--accent-2);
}

body[data-page="index"] .signal-rank-row [data-rank-metric-slot] .lead-roll-item--metric,
body[data-page="index"] .signal-rank-row [data-rank-metric-slot] .metric-roll {
  display: inline-flex;
  flex-wrap: nowrap;
  width: auto;
  min-width: max-content;
  padding: 0;
  border: 0;
  background: transparent;
}

body[data-page="index"] .signal-rank-row [data-rank-metric-slot] .metric-char,
body[data-page="index"] .signal-rank-row [data-rank-metric-slot] .metric-separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body[data-page="index"] .signal-rank-row [data-rank-metric-slot] .metric-digit {
  flex: 0 0 auto;
  width: 0.62em;
  height: 1em;
}

body[data-page="index"] .signal-rank-row [data-rank-metric-slot] .metric-digit-face {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

/* admin rebuild */
body[data-page="admin"] .admin-console {
  display: grid;
  gap: 32px;
  margin-top: 22px;
}

body[data-page="admin"] .admin-hero {
  padding-bottom: 0;
  border-bottom: 0;
}

body[data-page="admin"] .admin-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: 32px;
  align-items: start;
}

body[data-page="admin"] .admin-surface {
  display: grid;
  gap: 18px;
}

body[data-page="admin"] .admin-surface-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

body[data-page="admin"] .admin-review-shell > .admin-surface-head {
  border-bottom: 0;
  padding-bottom: 0;
}

body[data-page="admin"] .admin-surface-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

body[data-page="admin"] .admin-surface-head p,
body[data-page="admin"] .admin-mini-head p,
body[data-page="admin"] .admin-feedback,
body[data-page="admin"] .admin-empty-state {
  margin: 0;
  color: rgba(196, 212, 216, 0.68);
  font-size: 13px;
  line-height: 1.6;
}

body[data-page="admin"] .admin-counter,
body[data-page="admin"] .admin-preview-meta {
  color: rgba(196, 212, 216, 0.68);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

body[data-page="admin"] .admin-preview-meta {
  color: var(--signal-open);
}

body[data-page="admin"] .admin-publish-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: 28px;
  align-items: start;
}

body[data-page="admin"] .admin-publish-form {
  display: grid;
  gap: 14px;
}

body[data-page="admin"] .admin-publish-form .field {
  gap: 8px;
}

body[data-page="admin"] .admin-tag-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body[data-page="admin"] .admin-publish-form textarea {
  min-height: 118px;
}

body[data-page="admin"] .admin-publish-form .admin-prompt-field {
  min-height: 240px;
}

body[data-page="admin"] .admin-image-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

body[data-page="admin"] .admin-upload-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  height: 44px;
  padding: 0 16px;
  top: -1px;
}

body[data-page="admin"] .admin-image-adjust {
  display: grid;
  gap: 10px;
  margin-top: -2px;
}

body[data-page="admin"] .admin-deadline-grid {
  display: grid;
  gap: 10px;
}

body[data-page="admin"] .admin-deadline-row {
  display: grid;
  grid-template-columns: minmax(124px, 0.95fr) minmax(112px, 0.85fr) minmax(112px, 0.85fr);
  gap: 10px;
}

body[data-page="admin"] .admin-deadline-row--time {
  grid-template-columns: minmax(124px, 0.95fr) minmax(112px, 0.85fr) minmax(112px, 0.85fr);
}

body[data-page="admin"] .admin-deadline-row select {
  min-height: 42px;
  height: 42px;
  padding: 0 34px 0 12px;
  border: 0;
  border-radius: 8px;
  background:
    linear-gradient(45deg, transparent 50%, rgba(225, 234, 237, 0.78) 50%) calc(100% - 16px) 48% / 6px 6px no-repeat,
    linear-gradient(135deg, rgba(225, 234, 237, 0.78) 50%, transparent 50%) calc(100% - 12px) 48% / 6px 6px no-repeat,
    rgba(255, 255, 255, 0.04);
  box-shadow: none;
  color: var(--text);
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

body[data-page="admin"] .admin-deadline-zone {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 42px;
  color: rgba(225, 234, 237, 0.72);
  font-size: 12px;
  font-weight: 700;
}

body[data-page="admin"] .admin-image-cropper {
  display: grid;
  gap: 8px;
}

body[data-page="admin"] .admin-crop-frame {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
  cursor: grab;
  touch-action: none;
}

body[data-page="admin"] .admin-crop-frame:has(.admin-empty-visual) {
  cursor: default;
}

body[data-page="admin"] .admin-crop-frame.is-dragging {
  cursor: grabbing;
}

body[data-page="admin"] .admin-crop-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

body[data-page="admin"] .admin-crop-frame.is-dragging img {
  transition: none;
}

body[data-page="admin"] .admin-topic-editor-form .admin-crop-frame {
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
}

body[data-page="admin"] .admin-crop-note {
  margin: 0;
  color: rgba(196, 212, 216, 0.62);
  font-size: 12px;
  line-height: 1.5;
}

body[data-page="admin"] .admin-range-field {
  gap: 6px;
}

body[data-page="admin"] .admin-range-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

body[data-page="admin"] .admin-range-row input[type="range"] {
  width: 100%;
  accent-color: rgba(107, 215, 228, 0.96);
}

body[data-page="admin"] .admin-range-row span {
  min-width: 52px;
  color: rgba(225, 234, 237, 0.78);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

body[data-page="admin"] .admin-publish-actions {
  justify-content: flex-start;
}

body[data-page="admin"] .admin-publish-actions .btn.primary {
  border: 0;
  box-shadow: none;
  background: rgba(107, 215, 228, 0.96);
  color: rgba(10, 18, 22, 0.92);
}

body[data-page="admin"] :is(.admin-publish-form input, .admin-publish-form textarea, .admin-word-form input) {
  box-shadow: none;
}

body[data-page="admin"] :is(.admin-publish-form .btn, .admin-word-form .btn, .admin-actions .btn, .admin-page-nav, .admin-page-number) {
  border: 0;
  box-shadow: none;
}

body[data-page="admin"] .admin-publish-preview {
  display: grid;
  gap: 14px;
  padding: 2px 0 0 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  align-content: start;
}

body[data-page="admin"] .admin-publish-actions--preview {
  justify-content: flex-end;
  margin-top: 6px;
}

body[data-page="admin"] .admin-preview-head,
body[data-page="admin"] .admin-verify-topline,
body[data-page="admin"] .admin-verify-bottomline,
body[data-page="admin"] .admin-review-topline,
body[data-page="admin"] .admin-preview-notes span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body[data-page="admin"] .admin-preview-visual {
  height: 232px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

body[data-page="admin"] .admin-empty-visual {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: rgba(196, 212, 216, 0.56);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-align: center;
}

body[data-page="admin"] .admin-preview-visual img,
body[data-page="admin"] .admin-verification-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

body[data-page="admin"] .admin-preview-copy {
  display: grid;
  gap: 10px;
}

body[data-page="admin"] .admin-preview-copy strong,
body[data-page="admin"] .admin-verify-item strong,
body[data-page="admin"] .admin-review-card strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
}

body[data-page="admin"] .admin-verify-item strong,
body[data-page="admin"] .admin-review-card strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

body[data-page="admin"] .admin-preview-copy p,
body[data-page="admin"] .admin-verify-item p,
body[data-page="admin"] .admin-review-card p {
  margin: 0;
  color: rgba(196, 212, 216, 0.74);
  font-size: 13px;
  line-height: 1.6;
}

body[data-page="admin"] .admin-verify-item p,
body[data-page="admin"] .admin-review-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(13px * 1.6 * 2);
}

body[data-page="admin"] .admin-preview-notes {
  display: grid;
  gap: 8px;
}

body[data-page="admin"] .admin-preview-notes b {
  color: var(--text);
  font-size: 12px;
}

body[data-page="admin"] .admin-verify-list,
body[data-page="admin"] .admin-review-list {
  display: grid;
  gap: 10px;
}

body[data-page="admin"] .admin-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

body[data-page="admin"] .admin-page-list {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body[data-page="admin"] .admin-page-nav,
body[data-page="admin"] .admin-page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(225, 234, 237, 0.82);
  font-size: 12px;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease;
}

body[data-page="admin"] .admin-page-number {
  min-width: 34px;
  padding: 0 10px;
}

body[data-page="admin"] .admin-page-nav[disabled] {
  opacity: 0.38;
  cursor: default;
}

body[data-page="admin"] .admin-page-number.is-active {
  background: rgba(107, 215, 228, 0.14);
  color: rgba(241, 248, 250, 0.96);
}

body[data-page="admin"] .admin-verify-item {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, color 180ms ease;
}

body[data-page="admin"] .admin-verify-item:hover,
body[data-page="admin"] .admin-verify-item:focus-visible {
  transform: translateY(-1px);
}

body[data-page="admin"] .admin-verify-item:last-child {
  padding-bottom: 0;
  border-bottom-color: transparent;
}

body[data-page="admin"] .admin-verify-topline,
body[data-page="admin"] .admin-verify-bottomline,
body[data-page="admin"] .admin-review-topline {
  color: rgba(196, 212, 216, 0.66);
  font-size: 12px;
}

body[data-page="admin"] .admin-review-shell {
  gap: 24px;
}

body[data-page="admin"] .admin-rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

body[data-page="admin"] .admin-word-card,
body[data-page="admin"] .admin-review-lane {
  display: grid;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

body[data-page="admin"] .admin-mini-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

body[data-page="admin"] .admin-mini-head > div {
  display: grid;
  gap: 4px;
  align-content: start;
  min-height: 58px;
}

body[data-page="admin"] .admin-mini-head h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

body[data-page="admin"] .admin-word-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body[data-page="admin"] .admin-word-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(225, 234, 237, 0.92);
  font-size: 12px;
  font-weight: 700;
}

body[data-page="admin"] .admin-word-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

body[data-page="admin"] .admin-word-form input {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
  color: var(--text);
}

body[data-page="admin"] .admin-review-grid {
  display: grid;
  grid-template-columns: 0.82fr 0.96fr 1.22fr;
  gap: 24px;
  align-items: start;
}

body[data-page="admin"] .admin-review-card {
  display: grid;
  grid-template-rows: auto minmax(74px, auto) auto;
  gap: 10px;
  padding: 14px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  align-content: start;
}

body[data-page="admin"] .admin-review-identity {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 74px;
}

body[data-page="admin"] .admin-review-copy,
body[data-page="admin"] .admin-review-identity > .admin-review-copy {
  display: grid;
  gap: 8px;
  align-content: start;
}

body[data-page="admin"] .admin-review-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(242, 247, 248, 0.92);
  font-size: 13px;
  font-weight: 900;
}

body[data-page="admin"] .admin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body[data-page="admin"] .admin-actions .btn {
  min-height: 34px;
  padding-inline: 14px;
}

body[data-page="admin"] .admin-review-card .btn[data-admin-review-action="approve"] {
  background: var(--accent-2);
  color: rgba(6, 10, 14, 0.96);
}

body[data-page="admin"] .admin-review-card .btn[data-admin-review-action="approve"]:hover,
body[data-page="admin"] .admin-review-card .btn[data-admin-review-action="approve"]:focus-visible {
  background: color-mix(in srgb, var(--accent-2) 88%, white);
  color: rgba(6, 10, 14, 0.96);
}

body[data-page="admin"] .admin-review-card .btn[data-admin-review-action="reject"] {
  background: rgba(223, 141, 134, 0.88);
  color: rgba(28, 8, 8, 0.96);
}

body[data-page="admin"] .admin-review-card .btn[data-admin-review-action="reject"]:hover,
body[data-page="admin"] .admin-review-card .btn[data-admin-review-action="reject"]:focus-visible {
  background: color-mix(in srgb, var(--danger) 88%, white);
  color: rgba(28, 8, 8, 0.96);
}

body[data-page="admin"] .admin-verification-card {
  width: min(980px, calc(100vw - 32px));
  border: 0;
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.52);
  background:
    linear-gradient(180deg, rgba(9, 19, 26, 0.98), rgba(4, 11, 16, 0.98)),
    radial-gradient(circle at 84% 0, rgba(107, 215, 228, 0.06), transparent 34%);
}

body[data-page="admin"] .admin-verification-head {
  padding-bottom: 4px;
  border-bottom: 0;
}

body[data-page="admin"] .admin-verification-headline {
  display: grid;
  gap: 8px;
}

body[data-page="admin"] .admin-verification-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: start;
}

body[data-page="admin"] .admin-verification-context {
  display: grid;
  gap: 16px;
  align-content: start;
}

body[data-page="admin"] .admin-verification-visual {
  height: 240px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

body[data-page="admin"] .admin-verification-copy {
  display: grid;
  gap: 12px;
}

body[data-page="admin"] .admin-verification-copy p {
  margin: 0;
  color: rgba(196, 212, 216, 0.78);
  font-size: 14px;
  line-height: 1.75;
}

body[data-page="admin"] .admin-verification-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body[data-page="admin"] .admin-verification-meta span {
  display: grid;
  gap: 6px;
  min-height: 58px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

body[data-page="admin"] .admin-verification-meta b {
  color: rgba(196, 212, 216, 0.66);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

body[data-page="admin"] .admin-verification-meta em {
  color: var(--text);
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

body[data-page="admin"] .admin-verification-form {
  display: grid;
  gap: 14px;
  align-content: start;
}

body[data-page="admin"] .admin-verification-form textarea[name="resultBody"] {
  min-height: 236px;
}

body[data-page="admin"] .admin-feedback {
  color: rgba(107, 215, 228, 0.86);
}

body[data-page="admin"] .admin-verification-actions {
  justify-content: flex-end;
  margin-top: 6px;
}

body[data-page="admin"] .admin-verification-card .prediction-modal-close,
body[data-page="admin"] .admin-verification-form :is(input, textarea),
body[data-page="admin"] .admin-verification-form .btn {
  border: 0;
  box-shadow: none;
}

body[data-page="admin"] .admin-verification-card .prediction-modal-close {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(225, 234, 237, 0.76);
}

body[data-page="admin"] .admin-verification-card .prediction-modal-close:hover,
body[data-page="admin"] .admin-verification-card .prediction-modal-close:focus-visible {
  background: transparent;
  border-color: transparent;
  color: var(--text);
}

body[data-page="admin"] .admin-verification-form .btn.primary {
  background: var(--accent-2);
  color: rgba(6, 10, 14, 0.96);
}

body[data-page="admin"] .admin-verification-form .btn.primary:hover,
body[data-page="admin"] .admin-verification-form .btn.primary:focus-visible {
  background: color-mix(in srgb, var(--accent-2) 88%, white);
  color: rgba(6, 10, 14, 0.96);
}

@media (max-width: 1180px) {
  body[data-page="admin"] .admin-stage-grid,
  body[data-page="admin"] .admin-publish-layout,
  body[data-page="admin"] .admin-rule-grid,
  body[data-page="admin"] .admin-review-grid,
  body[data-page="admin"] .admin-verification-layout {
    grid-template-columns: 1fr;
  }

  body[data-page="admin"] .admin-publish-preview {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 16px;
  }
}

@media (max-width: 720px) {
  body[data-page="admin"] .admin-deadline-grid,
  body[data-page="admin"] .admin-tag-grid,
  body[data-page="admin"] .admin-image-row,
  body[data-page="admin"] .admin-word-form {
    grid-template-columns: 1fr;
  }
}

/* final consensus emphasis override for analysis / submitted / verified */
body[data-page="analysis"] .analysis-consensus-grid .verified-truth-card--consensus,
body[data-page="submitted"] .analysis-consensus-grid .verified-truth-card--consensus,
body[data-page="verified"] .verified-truth-grid .verified-truth-card--consensus {
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  height: auto !important;
  min-height: 0 !important;
}

body[data-page="analysis"] .analysis-consensus-grid .verified-truth-card--consensus h3,
body[data-page="submitted"] .analysis-consensus-grid .verified-truth-card--consensus h3,
body[data-page="verified"] .verified-truth-grid .verified-truth-card--consensus h3 {
  display: none !important;
}

body[data-page="analysis"] .analysis-consensus-grid .verified-truth-card .consensus-highlight,
body[data-page="submitted"] .analysis-consensus-grid .verified-truth-card .consensus-highlight,
body[data-page="verified"] .verified-truth-grid .verified-truth-card .consensus-highlight {
  color: var(--accent) !important;
  font-size: 24px !important;
  line-height: 1.42 !important;
  font-weight: 800 !important;
  letter-spacing: -0.024em !important;
}

body[data-page="submitted"] .analysis-consensus-grid .verified-truth-card .consensus-highlight[data-submitted-consensus-copy] {
  opacity: 1;
  transition: opacity 180ms linear;
  will-change: opacity;
}

body[data-page="submitted"] .analysis-consensus-grid .verified-truth-card .consensus-highlight[data-submitted-consensus-copy].is-live-fading {
  opacity: 0;
}

body[data-page="verified"] .verified-truth-heading--verified {
  align-items: flex-end !important;
}

body[data-page="verified"] .verified-truth-grid {
  align-items: start !important;
}

body[data-page="verified"] .verified-truth-grid .verified-truth-card--consensus,
body[data-page="verified"] .verified-truth-grid .verified-truth-card--outcome {
  display: grid !important;
  align-content: start !important;
  gap: 10px !important;
}

body[data-page="verified"] .verified-truth-grid .verified-truth-card--consensus h3,
body[data-page="verified"] .verified-truth-card--outcome h3 {
  display: block !important;
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
  font-weight: 700 !important;
  color: rgba(178, 194, 200, 0.64) !important;
  letter-spacing: 0.01em !important;
}

body[data-page="verified"] .verified-truth-grid .verified-truth-card--outcome {
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  height: auto !important;
  min-height: 0 !important;
}

body[data-page="verified"] .verified-truth-grid .verified-truth-card--consensus .consensus-highlight,
body[data-page="verified"] .verified-truth-grid .verified-truth-card--outcome .outcome-highlight {
  margin-top: 0 !important;
  font-size: 24px !important;
  line-height: 1.42 !important;
  font-weight: 800 !important;
  letter-spacing: -0.024em !important;
}

body[data-page="verified"] .verified-truth-grid .verified-truth-card--outcome .outcome-highlight {
  color: var(--accent-2) !important;
}

body[data-page="analysis"] .verified-self-inline,
body[data-page="submitted"] .verified-self-inline,
body[data-page="verified"] .verified-self-inline {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.72;
  color: rgba(220, 231, 235, 0.88);
  word-break: break-word;
}

body[data-page="analysis"] .verified-self-inline-model,
body[data-page="submitted"] .verified-self-inline-model,
body[data-page="verified"] .verified-self-inline-model {
  font-weight: 800;
  color: rgba(242, 248, 250, 0.96);
}

body[data-page="analysis"] .verified-self-inline-separator,
body[data-page="submitted"] .verified-self-inline-separator,
body[data-page="verified"] .verified-self-inline-separator {
  margin-right: 0.18em;
}

body[data-page="analysis"] .verified-self-section-title,
body[data-page="submitted"] .verified-self-section-title,
body[data-page="verified"] .verified-self-section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body[data-page="verified"] .verified-self-section-title--subheading {
  margin-top: 2px;
  margin-bottom: 10px;
}

body[data-page="verified"] .verified-self-section-title--subheading h3 {
  margin: 0;
  font-size: 13px;
  line-height: 1.08;
  color: rgba(224, 234, 238, 0.76);
  font-weight: 700;
}

body[data-page="analysis"] .verified-self-model-pill,
body[data-page="submitted"] .verified-self-model-pill,
body[data-page="verified"] .verified-self-model-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 23px;
  padding: 1px 10px 0;
  border-radius: 999px;
  color: rgba(112, 218, 231, 0.9);
  background: rgba(112, 218, 231, 0.08);
  font-size: 10.5px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

body[data-page="analysis"] .verified-self-prediction-block,
body[data-page="submitted"] .verified-self-prediction-block,
body[data-page="verified"] .verified-self-prediction-block {
  margin-top: 6px;
}

body[data-page="analysis"] .verified-self-prediction-copy,
body[data-page="submitted"] .verified-self-prediction-copy,
body[data-page="verified"] .verified-self-prediction-copy {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: rgba(220, 231, 235, 0.88);
  word-break: break-word;
}

body[data-page="submitted"] .submitted-latest-panel {
  display: flex;
  flex-direction: column;
  margin-top: 18px;
}

body[data-page="submitted"] .closest-panel.submitted-latest-panel .section-heading {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

body[data-page="submitted"] .submitted-latest-list {
  display: grid;
  gap: 0;
}

body[data-page="submitted"] .submitted-latest-row {
  display: block;
  padding: 13px 0;
  padding-left: 0;
  padding-right: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
}

body[data-page="submitted"] .submitted-latest-row:first-child {
  border-top-color: transparent;
  padding-top: 2px;
}

body[data-page="submitted"] .submitted-latest-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

body[data-page="submitted"] .submitted-latest-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

body[data-page="submitted"] .submitted-latest-top strong {
  font-size: 13.5px;
  line-height: 1.12;
  color: rgba(242, 248, 250, 0.92);
}

body[data-page="submitted"] .submitted-latest-model {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 22px;
  padding: 1px 10px 0;
  border-radius: 999px;
  color: rgba(112, 218, 231, 0.9);
  background: rgba(112, 218, 231, 0.08);
  font-size: 10.5px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

body[data-page="submitted"] .submitted-latest-row p {
  margin: 0;
  font-size: 12px;
  line-height: 1.56;
  color: rgba(206, 219, 223, 0.72);
  display: block;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-page="submitted"] .submitted-latest-empty {
  padding: 6px 0 2px;
}

body[data-page="submitted"] .submitted-latest-empty p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(206, 219, 223, 0.58);
}

/* final mobile adaptation layer */
@media (max-width: 900px) {
  :root {
    --shell-pad-x: 18px;
    --topbar-rail-left: var(--shell-pad-x);
    --topbar-rail-right: var(--shell-pad-x);
  }

  html {
    scroll-padding-top: 170px;
  }

  [id] {
    scroll-margin-top: 170px;
  }

  .layout {
    width: 100%;
    padding: 18px var(--shell-pad-x) 32px !important;
    gap: 18px !important;
  }

  .content {
    gap: 16px !important;
  }

  body[data-page="index"] .app-shell,
  body:not([data-page="index"]) .app-shell {
    padding-top: 156px !important;
  }

  body[data-page="index"] .market-topbar,
  body:not([data-page="index"]) .market-topbar.subpage-topbar {
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    grid-template-areas:
      "brand language user"
      "category category category"
      "search search search" !important;
    overflow: visible !important;
    align-items: center !important;
    row-gap: 10px !important;
    column-gap: 10px !important;
    min-height: 0 !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    padding-left: var(--shell-pad-x) !important;
    padding-right: var(--shell-pad-x) !important;
  }

  body[data-page="index"] .market-topbar > .brand-menu,
  body:not([data-page="index"]) .market-topbar.subpage-topbar > .brand-menu {
    grid-area: brand;
    min-width: 0;
    position: relative;
    z-index: 3;
  }

  body[data-page="index"] .market-topbar > .topbar-language,
  body:not([data-page="index"]) .market-topbar.subpage-topbar > .topbar-language {
    grid-area: language;
    justify-self: end;
    position: relative;
    z-index: 4;
  }

  body[data-page="index"] .market-topbar > .user-menu,
  body:not([data-page="index"]) .market-topbar.subpage-topbar > .user-menu {
    grid-area: user;
    justify-self: end;
    min-width: 0;
    position: relative;
    z-index: 4;
  }

  body[data-page="index"] .market-topbar > .market-category-strip,
  body:not([data-page="index"]) .market-topbar.subpage-topbar > .market-category-strip {
    grid-area: category;
    width: 100%;
    min-width: 0;
    min-height: 0 !important;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 16px !important;
    padding: 0 !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 18px;
    overscroll-behavior-x: contain;
    touch-action: pan-x pinch-zoom;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
    padding-inline: 2px !important;
    margin-inline: -2px !important;
  }

  body[data-page="index"] .market-topbar > .market-category-strip::-webkit-scrollbar,
  body:not([data-page="index"]) .market-topbar.subpage-topbar > .market-category-strip::-webkit-scrollbar {
    display: none;
  }

  .market-topbar .market-category-strip a,
  body[data-page="profile"] .profile-records-panel .filter-tabs button {
    scroll-snap-align: start;
  }

  body[data-page="index"] .market-topbar > .topbar-search-area,
  body:not([data-page="index"]) .market-topbar.subpage-topbar > .topbar-search-area {
    grid-area: search;
    width: 100%;
    min-width: 0;
    max-width: none !important;
  }

  body:not([data-page="index"]) .market-topbar.subpage-topbar {
    grid-template-areas: "brand language user" !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    row-gap: 0 !important;
    column-gap: 8px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  body:not([data-page="index"]) .market-topbar.subpage-topbar > .market-category-strip,
  body:not([data-page="index"]) .market-topbar.subpage-topbar > .topbar-search-area {
    display: none !important;
  }

  body:not([data-page="index"]) .app-shell {
    padding-top: 92px !important;
  }

  body[data-page="index"] .market-topbar {
    grid-template-areas: "brand language user" !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    row-gap: 0 !important;
    column-gap: 8px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  body[data-page="index"] .market-topbar > .market-category-strip,
  body[data-page="index"] .market-topbar > .topbar-search-area {
    display: none !important;
  }

  body[data-page="index"] .app-shell {
    padding-top: 92px !important;
  }

  .market-topbar .brand {
    min-width: 0;
    gap: 8px !important;
  }

  .market-topbar .brand .brand-wordmark {
    font-size: 20px !important;
  }

  .market-topbar .brand-copy > span {
    display: none !important;
  }

  .market-topbar .search-shell,
  .market-topbar .user-trigger {
    height: 38px !important;
    min-height: 38px !important;
  }

  .market-topbar .search-shell {
    padding: 0 12px !important;
    border-radius: 16px !important;
    background: rgba(15, 24, 31, 0.92) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  }

  .market-topbar .home-search-input {
    padding: 0 !important;
    font-size: 13px !important;
  }

  .market-topbar .user-trigger {
    min-width: 0;
    max-width: 100%;
    padding: 6px 8px !important;
    border: 1px solid rgba(177, 208, 220, 0.08) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.035) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  }

  .market-topbar .market-category-strip a,
  .market-topbar .user-trigger,
  .market-topbar .topbar-language button,
  .rank-tab,
  .filter-tabs button,
  body[data-page="profile"] .profile-inline-action,
  body[data-page="profile"] .setting-inline-action,
  body[data-page="profile"] .setting-toggle,
  .home-topic-card.market-card-grid,
  .home-topic-card.market-card-record,
  .lead-market-card,
  body[data-page="profile"] .profile-update-item,
  .market-card-action,
  .profile-record-pagination button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .market-topbar .market-category-strip a {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.035);
    color: rgba(218, 229, 235, 0.82);
    font-weight: 700;
    transition: color 160ms linear, opacity 160ms linear, transform 120ms linear;
  }

  .market-topbar .market-category-strip a.is-active,
  .market-topbar .market-category-strip a[aria-current="page"] {
    background: rgba(107, 215, 228, 0.14);
    color: rgba(239, 247, 250, 0.96);
  }

  .rank-tab,
  .filter-tabs button,
  body[data-page="profile"] .profile-inline-action,
  body[data-page="profile"] .setting-inline-action,
  body[data-page="profile"] .setting-toggle,
  .market-card-action,
  .profile-record-pagination button {
    transition: transform 120ms linear, background-color 160ms linear, color 160ms linear;
  }

  .home-topic-card.market-card-grid:hover,
  .home-topic-card.market-card-record:hover,
  .lead-market-card:hover,
  body[data-page="profile"] .profile-update-item:hover,
  body[data-page="profile"] .profile-inline-action:hover,
  body[data-page="profile"] .setting-inline-action:hover,
  body[data-page="profile"] .setting-toggle:hover,
  .filter-tabs button:hover,
  .rank-tab:hover {
    transform: none !important;
  }

  .market-topbar .market-category-strip a:active,
  .market-topbar .user-trigger:active,
  .market-topbar .topbar-language button:active,
  .rank-tab:active,
  .filter-tabs button:active,
  body[data-page="profile"] .profile-inline-action:active,
  body[data-page="profile"] .setting-inline-action:active,
  body[data-page="profile"] .setting-toggle:active,
  .market-card-action:active,
  .profile-record-pagination button:active {
    transform: scale(0.97);
  }

  .home-topic-card.market-card-grid:active,
  .home-topic-card.market-card-record:active,
  .lead-market-card:active,
  body[data-page="profile"] .profile-update-item:active {
    transform: scale(0.992);
  }

  .home-topic-card.market-card-grid:active,
  .home-topic-card.market-card-record:active {
    background: rgba(255, 255, 255, 0.06) !important;
  }

  .lead-market-card:active {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.034), rgba(255, 255, 255, 0.016)),
      rgba(16, 22, 28, 0.96) !important;
  }

  body[data-page="profile"] .profile-update-item:active {
    background: rgba(107, 215, 228, 0.09) !important;
  }

  body[data-page="profile"] .profile-update-item[data-update-type="EVENT_VERIFIED"]:active {
    background: rgba(184, 216, 186, 0.11) !important;
  }

  .market-topbar .user-trigger > span:last-child {
    min-width: 0;
    max-width: 120px;
    overflow: hidden;
  }

  .market-topbar .user-trigger strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12.5px !important;
  }

  .market-topbar .user-trigger small {
    display: none !important;
  }

  body[data-page="index"] .home-command-layout {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  body[data-page="index"] .home-main-flow {
    display: grid !important;
  }

  body[data-page="index"] .home-main-flow,
  body[data-page="index"] .home-side-rail {
    gap: 18px !important;
  }

  body[data-page="index"] .home-intro-strip {
    padding: 0 0 2px !important;
    gap: 6px !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
  }

  body[data-page="index"] .home-intro-strip .section-heading,
  body[data-page="index"] .home-hotline-strip .section-heading.compact {
    justify-items: start !important;
    align-items: start !important;
    text-align: left !important;
  }

  body[data-page="index"] .home-intro-strip,
  body[data-page="index"] .home-dashboard,
  body[data-page="index"] .home-side-rail {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  body[data-page="index"] .stage-grid,
  body[data-page="index"] .home-stage-grid,
  body[data-page="index"] .stage-topic-grid,
  body[data-page="stage"] .stage-topic-grid,
  body[data-page="search"] .stage-topic-grid,
  body[data-page="search"] .subpage-market-grid,
  body[data-page="stage"] .subpage-market-grid,
  body[data-page="profile"] .profile-record-grid,
  body[data-page="verified"] .comparison-grid,
  body[data-page="verified"] .closest-user-grid {
    grid-template-columns: 1fr !important;
  }

  body[data-page="index"] .home-intro-strip h2 {
    font-size: 18px !important;
    max-width: none !important;
    line-height: 1.08 !important;
    letter-spacing: -0.02em !important;
    text-wrap: normal !important;
  }

  body[data-page="index"] .hotline-marquee {
    display: none !important;
  }

  body[data-page="index"] .hotline-marquee .ticker-topic-card {
    min-height: 24px !important;
    font-size: 12px !important;
  }

  body[data-page="index"] .market-lead-layout {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  body[data-page="index"] .market-briefing-panel,
  body[data-page="index"] .parallel-market-boards {
    display: none !important;
  }

  body[data-page="index"] .lead-market-card {
    padding: 16px 16px 14px !important;
    border-radius: 20px !important;
    gap: 12px !important;
  }

  body[data-page="index"] .lead-market-body {
    gap: 10px !important;
    align-items: flex-start !important;
  }

  body[data-page="index"] .lead-market-body h2,
  body[data-page="index"] .lead-market-title {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    overflow: hidden !important;
    font-size: clamp(18px, 5.9vw, 24px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.03em !important;
    max-width: none !important;
    text-wrap: pretty !important;
  }

  body[data-page="index"] .lead-market-body p {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
  }

  body[data-page="index"] .lead-market-visual {
    margin-top: 0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
  }

  body[data-page="index"] .lead-market-visual img,
  body[data-page="index"] .lead-market-visual [data-lead-visual] {
    aspect-ratio: 16 / 10 !important;
    object-fit: cover !important;
  }

  body[data-page="index"] .lead-market-actions {
    gap: 10px !important;
    align-items: center !important;
  }

  body[data-page="index"] .signal-rank-panel {
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body[data-page="index"] .signal-rank-panel .section-heading.compact {
    margin-bottom: 10px !important;
  }

  body[data-page="index"] .home-intro-strip .section-heading.compact,
  body[data-page="index"] .home-hotline-strip .section-heading.compact {
    margin-bottom: 10px !important;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
  }

  body[data-page="index"] .signal-rank-list > *:nth-child(n + 6) {
    display: none !important;
  }

  .home-topic-card.market-card-grid,
  body[data-page="profile"] .profile-record-grid .home-topic-card {
    min-height: 0 !important;
    padding: 14px !important;
  }

  .home-topic-card.market-card-grid h3 {
    font-size: 16px !important;
    line-height: 1.32 !important;
  }

  .home-topic-card.market-card-grid p {
    font-size: 12.5px !important;
    line-height: 1.6 !important;
  }

  body:not([data-page="index"]) :is(.subpage-hero, .analysis-hero, .verified-hero, .submit-hero, .profile-hero) {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    align-items: start !important;
    padding: 4px 0 2px !important;
  }

  body:not([data-page="index"]) :is(.subpage-hero, .analysis-hero, .verified-hero, .submit-hero, .profile-hero) h1 {
    max-width: 13ch !important;
    font-size: clamp(28px, 8vw, 40px) !important;
    line-height: 1.01 !important;
    letter-spacing: -0.04em !important;
    text-wrap: balance !important;
  }

  body[data-page="submitted"] .analysis-hero,
  body[data-page="analysis"] .analysis-hero,
  body[data-page="verified"] .analysis-hero,
  body[data-page="submit-step1"] .analysis-hero {
    grid-template-columns: 1fr !important;
  }

  body[data-page="submitted"] .verified-summary,
  body[data-page="analysis"] .verified-summary,
  body[data-page="verified"] .verified-summary {
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    min-width: 0 !important;
    gap: 14px !important;
  }

  body[data-page="submitted"] .verified-summary-item + .verified-summary-item {
    margin-left: 0 !important;
  }

  body[data-page="submit-step1"] .submit-focus-grid,
  body[data-page="analysis"] .verified-focus-grid,
  body[data-page="submitted"] .verified-focus-grid,
  body[data-page="verified"] .analysis-focus-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin-top: 18px !important;
  }

  body[data-page="submit-step1"] .submit-focus-grid > *,
  body[data-page="analysis"] .verified-focus-grid > *,
  body[data-page="submitted"] .verified-focus-grid > *,
  body[data-page="verified"] .analysis-focus-grid > * {
    grid-column: auto !important;
    grid-row: auto !important;
    margin-left: 0 !important;
    height: auto !important;
  }

  body[data-page="submit-step1"] .submit-focus-grid .topic-background-visual-wrap,
  body[data-page="analysis"] .verified-focus-grid .topic-background-visual-wrap,
  body[data-page="submitted"] .verified-focus-grid .topic-background-visual-wrap,
  body[data-page="verified"] .analysis-focus-grid .topic-background-visual-wrap {
    height: 320px !important;
    min-height: 320px !important;
    max-height: 320px !important;
  }

  body[data-page="submit-step1"] .submit-focus-grid .topic-background-visual,
  body[data-page="analysis"] .verified-focus-grid .topic-background-visual,
  body[data-page="submitted"] .verified-focus-grid .topic-background-visual,
  body[data-page="verified"] .analysis-focus-grid .topic-background-visual {
    min-height: 320px !important;
  }

  body[data-page="search"] .search-results-board,
  body[data-page="stage"] .search-results-board,
  body[data-page="search"] .search-stage-group,
  body[data-page="stage"] .search-stage-group {
    gap: 16px !important;
  }

  body[data-page="search"] .stage-page-footer,
  body[data-page="stage"] .stage-page-footer {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  body[data-page="profile"] .profile-dashboard {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  body[data-page="profile"] .profile-hero {
    gap: 10px !important;
    padding-top: 0 !important;
  }

  body[data-page="profile"] .profile-hero h1 {
    font-size: clamp(30px, 9.4vw, 40px) !important;
    line-height: 1 !important;
    letter-spacing: -0.04em !important;
  }

  body[data-page="profile"] .profile-identity {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  body[data-page="profile"] .profile-avatar {
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    height: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
  }

  body[data-page="profile"] .profile-chart-list {
    gap: 14px !important;
  }

  body[data-page="profile"] .profile-account-head {
    gap: 12px !important;
  }

  body[data-page="profile"] .profile-identity-actions {
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    padding-inline: 2px !important;
    margin-inline: -2px !important;
    padding-bottom: 2px !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    touch-action: pan-x pinch-zoom;
  }

  body[data-page="profile"] .profile-identity-actions::-webkit-scrollbar {
    display: none;
  }

  body[data-page="profile"] .profile-inline-action {
    min-height: 34px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    border-radius: 999px !important;
  }

  body[data-page="profile"] .profile-updates-panel {
    margin-bottom: 14px !important;
    padding-bottom: 12px !important;
  }

  body[data-page="profile"] .profile-updates-panel .section-heading,
  body[data-page="profile"] .profile-records-panel .section-heading {
    display: grid !important;
    gap: 10px !important;
    justify-items: start !important;
    align-items: start !important;
    text-align: left !important;
  }

  body[data-page="profile"] .profile-updates-panel .section-heading button {
    justify-self: start !important;
  }

  body[data-page="profile"] .profile-records-panel .filter-tabs {
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    padding-bottom: 2px !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 8px;
    overscroll-behavior-x: contain;
    touch-action: pan-x pinch-zoom;
    -webkit-mask-image: none;
    mask-image: none;
    padding-inline: 0 !important;
    margin-inline: 0 !important;
  }

  body[data-page="profile"] .profile-records-panel .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  body[data-page="profile"] .profile-records-panel .filter-tabs button {
    flex: 0 0 auto !important;
    min-width: max-content !important;
    min-height: 34px !important;
    padding: 0 15px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: rgba(205, 216, 222, 0.74) !important;
    font-size: 12.5px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    box-shadow: none !important;
  }

  body[data-page="profile"] .profile-records-panel .filter-tabs button.is-active,
  body[data-page="profile"] .profile-records-panel .filter-tabs button[aria-pressed="true"] {
    background: rgba(107, 215, 228, 0.12) !important;
    color: rgba(241, 248, 250, 0.96) !important;
    box-shadow: none !important;
  }

  body[data-page="profile"] .profile-records-panel .section-heading > div:first-child {
    width: 100%;
  }

  body[data-page="profile"] .profile-records-panel .section-heading > div:first-child h2 {
    margin-bottom: 0 !important;
  }

  body[data-page="profile"] .profile-right-rail {
    gap: 18px !important;
  }

  body[data-page="profile"] .profile-chart-panel,
  body[data-page="profile"] .account-panel {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body[data-page="profile"] .profile-chart-panel .section-heading.compact,
  body[data-page="profile"] .account-panel .section-heading.compact {
    margin-bottom: 10px !important;
  }

  body[data-page="profile"] .profile-update-item {
    padding: 13px 14px !important;
    border-radius: 16px !important;
  }

  body[data-page="profile"] .profile-update-copy {
    row-gap: 4px !important;
    min-height: 0 !important;
  }

  body[data-page="profile"] .profile-update-titleline strong {
    font-size: 12.5px !important;
    line-height: 1.35 !important;
  }

  body[data-page="profile"] .profile-update-copy p {
    font-size: 12px !important;
    line-height: 1.55 !important;
  }

  body[data-page="profile"] .profile-update-item {
    gap: 14px !important;
  }

  body[data-page="profile"] .account-setting-list .setting-row,
  body[data-page="profile"] .account-security-list .setting-row {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  body[data-page="profile"] .account-setting-list .setting-row-main,
  body[data-page="profile"] .account-security-list .setting-row-main {
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  body[data-page="profile"] .profile-record-pagination-controls {
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
  }

  body[data-page="admin"] .admin-console {
    gap: 16px !important;
  }

  body[data-page="admin"] .admin-stage-grid,
  body[data-page="admin"] .admin-publish-layout,
  body[data-page="admin"] .admin-review-grid,
  body[data-page="admin"] .admin-verification-layout {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  body[data-page="admin"] .admin-image-row,
  body[data-page="admin"] .admin-deadline-row,
  body[data-page="admin"] .admin-deadline-row--time,
  body[data-page="admin"] .admin-topic-editor-grid {
    grid-template-columns: 1fr !important;
  }

  body[data-page="submitted"] .submitted-latest-panel,
  body[data-page="verified"] .verified-ranking-panel {
    padding-top: 2px !important;
  }

  .auth-modal-card,
  .prediction-modal-card,
  .account-security-modal-card,
  .admin-topic-editor-modal-card {
    width: min(calc(100vw - 24px), 760px) !important;
    max-height: calc(100vh - 24px) !important;
  }

  body.has-prediction-modal .mobile-bottom-dock {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(18px) !important;
  }
}

@media (max-width: 640px) {
  :root {
    --shell-pad-x: 12px;
    --topbar-rail-left: var(--shell-pad-x);
    --topbar-rail-right: var(--shell-pad-x);
  }

  html {
    scroll-padding-top: 182px;
  }

  [id] {
    scroll-margin-top: 182px;
  }

  body[data-page="index"] .app-shell,
  body:not([data-page="index"]) .app-shell {
    padding-top: 168px !important;
  }

  body:not([data-page="index"]) .app-shell {
    padding-top: 84px !important;
  }

  body[data-page="index"] .app-shell {
    padding-top: 84px !important;
  }

  .layout {
    padding: 14px var(--shell-pad-x) 28px !important;
  }

  body[data-page="index"] .market-topbar,
  body:not([data-page="index"]) .market-topbar.subpage-topbar {
    row-gap: 8px !important;
    column-gap: 8px !important;
  }

  .market-topbar .brand .brand-wordmark {
    font-size: 19px !important;
  }

  .market-topbar .brand-mark {
    width: 32px !important;
    height: 32px !important;
  }

  .market-topbar .market-category-strip {
    gap: 14px !important;
    scroll-padding-inline: 14px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%);
  }

  .market-topbar .topbar-language .language-caret {
    display: none;
  }

  .market-topbar .topbar-language .language-switch {
    min-height: 36px !important;
    padding: 0 9px !important;
    border-radius: 13px !important;
    background: rgba(255, 255, 255, 0.035) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  }

  .market-topbar .user-trigger {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    min-height: 36px !important;
    height: 36px !important;
    justify-content: center !important;
    gap: 0 !important;
    padding: 0 !important;
    border-radius: 13px !important;
  }

  .market-topbar .user-trigger > span:last-child,
  .market-topbar .user-trigger .user-trigger-copy {
    display: none !important;
  }

  .market-topbar .user-trigger .user-trigger-avatar-slot {
    margin: 0 !important;
  }

  body[data-page="index"] .home-intro-strip {
    padding: 0 !important;
  }

  body[data-page="index"] .home-intro-strip h2 {
    font-size: 17px !important;
    max-width: none !important;
    line-height: 1.12 !important;
  }

  body[data-page="index"] .hotline-marquee .ticker-topic-card {
    font-size: 11.5px !important;
  }

  body[data-page="index"] .lead-market-card {
    padding: 14px !important;
    gap: 10px !important;
  }

  body[data-page="index"] .lead-market-body h2,
  body[data-page="index"] .lead-market-title {
    font-size: clamp(17px, 6.5vw, 22px) !important;
    max-width: none !important;
    line-height: 1.14 !important;
  }

  body[data-page="index"] .lead-market-body p {
    font-size: 12.5px !important;
    line-height: 1.5 !important;
  }

  body[data-page="index"] .signal-rank-list > *:nth-child(n + 5) {
    display: none !important;
  }

  .home-topic-card.market-card-grid {
    padding: 13px !important;
    border-radius: 12px !important;
  }

  .home-topic-card.market-card-grid h3 {
    font-size: 15px !important;
  }

  body[data-page="submit-step1"] .submit-focus-grid,
  body[data-page="analysis"] .verified-focus-grid,
  body[data-page="submitted"] .verified-focus-grid,
  body[data-page="verified"] .analysis-focus-grid {
    gap: 18px !important;
  }

  body[data-page="submit-step1"] .submit-focus-grid .topic-background-visual-wrap,
  body[data-page="analysis"] .verified-focus-grid .topic-background-visual-wrap,
  body[data-page="submitted"] .verified-focus-grid .topic-background-visual-wrap,
  body[data-page="verified"] .analysis-focus-grid .topic-background-visual-wrap {
    height: 240px !important;
    min-height: 240px !important;
    max-height: 240px !important;
  }

  body[data-page="submit-step1"] .submit-focus-grid .topic-background-visual,
  body[data-page="analysis"] .verified-focus-grid .topic-background-visual,
  body[data-page="submitted"] .verified-focus-grid .topic-background-visual,
  body[data-page="verified"] .analysis-focus-grid .topic-background-visual {
    min-height: 240px !important;
  }

  body[data-page="profile"] .profile-identity {
    grid-template-columns: 1fr !important;
  }

  body[data-page="profile"] .profile-hero h1 {
    font-size: clamp(28px, 8.9vw, 36px) !important;
  }

  body[data-page="profile"] .profile-account-head {
    gap: 14px !important;
  }

  body[data-page="profile"] .profile-inline-action {
    min-height: 34px !important;
    padding: 0 11px !important;
    font-size: 12px !important;
  }

  body[data-page="profile"] .profile-updates-panel .section-heading,
  body[data-page="profile"] .profile-records-panel .section-heading {
    gap: 8px !important;
  }

  body[data-page="profile"] .profile-records-panel .filter-tabs button {
    min-height: 34px !important;
    padding-inline: 14px !important;
  }

  .rank-tab,
  .filter-tabs button,
  body[data-page="profile"] .profile-inline-action,
  body[data-page="profile"] .setting-inline-action,
  body[data-page="profile"] .setting-toggle,
  .market-card-action,
  .profile-record-pagination button {
    min-height: 34px;
  }

  body[data-page="submitted"] .analysis-hero h1,
  body[data-page="analysis"] .analysis-hero h1,
  body[data-page="verified"] .analysis-hero h1,
  body[data-page="submit-step1"] .analysis-hero h1 {
    font-size: clamp(26px, 8.8vw, 34px) !important;
    max-width: 12ch !important;
  }

  body[data-page="submitted"] .verified-summary,
  body[data-page="analysis"] .verified-summary,
  body[data-page="verified"] .verified-summary,
  body[data-page="submit-step1"] .verified-summary {
    gap: 12px !important;
  }

  .auth-modal-card,
  .prediction-modal-card,
  .account-security-modal-card,
  .admin-topic-editor-modal-card {
    width: calc(100vw - 16px) !important;
    max-height: calc(100vh - 16px) !important;
    border-radius: 16px !important;
  }
}

.mobile-bottom-dock {
  display: none;
}

@media (max-width: 900px) {
  body {
    scrollbar-gutter: auto !important;
  }

  body.has-mobile-dock .app-shell {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 92px) !important;
  }

  body.has-mobile-dock .layout {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 110px) !important;
  }

  .mobile-bottom-dock {
    position: fixed;
    left: var(--shell-pad-x);
    right: var(--shell-pad-x);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    border-radius: 24px;
    background: rgba(13, 18, 24, 0.9);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 120;
    overflow: hidden;
  }

  .mobile-bottom-dock::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
    pointer-events: none;
  }

  .mobile-dock-indicator {
    position: absolute;
    top: 8px;
    left: 0;
    height: calc(100% - 16px);
    width: 0;
    border-radius: 16px;
    background: rgba(107, 215, 228, 0.11);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    pointer-events: none;
    opacity: 0;
    transform: translate3d(0, 0, 0);
    transition: transform 180ms linear, width 180ms linear, opacity 180ms linear;
    z-index: 0;
  }

  .mobile-bottom-dock.is-ready .mobile-dock-indicator {
    opacity: 1;
  }

  .mobile-dock-indicator.is-no-transition {
    transition: none !important;
  }

  .mobile-dock-link {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 5px;
    min-height: 54px;
    padding: 6px 4px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: rgba(193, 207, 214, 0.68);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 160ms linear, color 160ms linear, transform 120ms linear;
  }

  .mobile-dock-link.is-active,
  .mobile-dock-link.is-preview-active {
    color: rgba(240, 246, 250, 0.96);
  }

  .mobile-dock-link:active {
    transform: scale(0.96);
  }

  .mobile-dock-icon-wrap {
    position: relative;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
  }

  .mobile-dock-icon-wrap svg {
    width: 20px;
    height: 20px;
    display: block;
  }

  .mobile-dock-label {
    font-size: 10.5px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.02em;
  }

  .mobile-dock-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ff8d8d;
    color: #fff7f7;
    font-size: 9px;
    line-height: 1;
    font-weight: 800;
  }
}

@media (max-width: 640px) {
  body.has-mobile-dock .app-shell {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 88px) !important;
  }

  body.has-mobile-dock .layout {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 102px) !important;
  }

  .mobile-bottom-dock {
    left: var(--shell-pad-x);
    right: var(--shell-pad-x);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
    gap: 4px;
    padding: 7px;
    border-radius: 22px;
  }

  .mobile-dock-indicator {
    top: 7px;
    height: calc(100% - 14px);
    border-radius: 14px;
  }

  .mobile-dock-link {
    min-height: 52px;
    border-radius: 14px;
  }

  .mobile-dock-label {
    font-size: 10px;
  }
}

@media (max-width: 900px) {
  body[data-page="index"] .market-topbar {
    grid-template-areas: "brand language" !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    column-gap: 10px !important;
  }

  body[data-page="index"] .market-topbar > .user-menu {
    display: none !important;
  }

  body[data-page="index"] .market-topbar > .market-category-strip,
  body[data-page="index"] .market-topbar > .topbar-search-area,
  body[data-page="index"] .hotline-marquee,
  body[data-page="index"] .market-briefing-panel,
  body[data-page="index"] .parallel-market-boards {
    display: none !important;
    visibility: hidden !important;
    max-height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  body[data-page="index"] .home-command-layout,
  body[data-page="index"] .home-main-flow,
  body[data-page="index"] .home-side-rail {
    gap: 16px !important;
  }

  body[data-page="index"] .home-intro-strip {
    padding: 0 !important;
    margin-bottom: 0 !important;
    gap: 4px !important;
  }

  body[data-page="index"] .home-intro-strip h2 {
    margin: 0 !important;
    font-size: 16px !important;
    line-height: 1.04 !important;
    letter-spacing: -0.035em !important;
  }

  body[data-page="index"] .lead-market-card {
    border-radius: 18px !important;
  }

  body[data-page="index"] .lead-market-body {
    gap: 8px !important;
  }

  body[data-page="index"] .lead-market-body p {
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    margin: 0 !important;
  }

  body[data-page="index"] .lead-market-actions {
    gap: 8px !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  body[data-page="index"] .lead-market-actions .market-countdown {
    min-height: 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
  }

  body[data-page="index"] .lead-market-actions .btn.primary {
    min-height: 40px !important;
    padding: 0 14px !important;
    border-radius: 13px !important;
    font-size: 14px !important;
  }

  body[data-page="index"] .signal-rank-panel {
    margin-top: 2px !important;
  }

  body[data-page="index"] .rank-tabs {
    gap: 6px !important;
  }

  body[data-page="index"] .rank-tab {
    min-height: 34px !important;
    padding: 0 12px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
  }

  body[data-page="index"] .signal-rank-row {
    padding-top: 7px !important;
    padding-bottom: 7px !important;
  }
}

@media (max-width: 640px) {
  body[data-page="index"] .market-topbar {
    padding-top: 7px !important;
    padding-bottom: 7px !important;
  }

  body[data-page="index"] .app-shell {
    padding-top: 76px !important;
  }

  body[data-page="index"] .home-intro-strip h2 {
    font-size: 16px !important;
    line-height: 1.08 !important;
  }

  body[data-page="index"] .lead-market-card {
    padding: 13px !important;
    border-radius: 17px !important;
  }

  body[data-page="index"] .lead-market-visual img,
  body[data-page="index"] .lead-market-visual [data-lead-visual] {
    aspect-ratio: 16 / 9.5 !important;
  }

  body[data-page="index"] .lead-market-actions .btn.primary {
    min-height: 38px !important;
    padding: 0 13px !important;
    font-size: 13.5px !important;
  }
}

@media (max-width: 900px) {
  body[data-page="index"] .market-topbar > .topbar-language {
    justify-self: end !important;
  }

  body[data-page="index"] .market-topbar .topbar-language .language-switch {
    width: 36px !important;
    min-width: 36px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
  }

  body[data-page="index"] .market-topbar .topbar-language .language-icon,
  body[data-page="index"] .market-topbar .topbar-language .language-caret {
    display: none !important;
  }

  body[data-page="index"] .market-topbar .topbar-language .language-code {
    width: auto !important;
    min-width: 0 !important;
  }

  body[data-page="index"] .market-topbar .topbar-language .language-code::before {
    font-size: 12px !important;
    line-height: 1 !important;
    letter-spacing: 0.02em !important;
    transform: translateY(0.5px);
  }

  body[data-page="index"] .lead-market-body {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  body[data-page="index"] .lead-market-copy {
    max-width: none !important;
  }

  body[data-page="index"] .lead-market-body h2,
  body[data-page="index"] .lead-market-title {
    font-size: clamp(16px, 5.5vw, 19px) !important;
    line-height: 1.08 !important;
    min-height: auto !important;
    max-height: calc(1.08em * 3) !important;
    -webkit-line-clamp: 3 !important;
  }

  body[data-page="index"] .lead-market-body p {
    max-width: none !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    min-height: auto !important;
    max-height: calc(1.45em * 2) !important;
  }

  body[data-page="index"] .lead-market-price {
    justify-self: end !important;
    align-self: auto !important;
    gap: 2px !important;
  }

  body[data-page="index"] .lead-market-price b {
    font-size: clamp(30px, 9.4vw, 42px) !important;
    line-height: 0.9 !important;
  }

  body[data-page="index"] .lead-market-price > span {
    font-size: 11px !important;
    margin-top: 0 !important;
  }

  body[data-page="index"] .lead-market-actions {
    gap: 12px !important;
  }

  body[data-page="index"] .lead-market-participants {
    font-size: 12px !important;
  }

  body[data-page="index"] .signal-rank-panel .section-heading h2 {
    font-size: 18px !important;
    line-height: 1.08 !important;
  }

  body[data-page="index"] .home-intro-strip .section-heading h2,
  body[data-page="index"] .home-hotline-strip .section-heading h2 {
    font-size: 18px !important;
    line-height: 1.08 !important;
  }
}

@media (max-width: 640px) {
  body[data-page="index"] .market-topbar .topbar-language .language-switch {
    width: 36px !important;
    min-width: 36px !important;
    height: 34px !important;
    min-height: 34px !important;
    border-radius: 12px !important;
  }

  body[data-page="index"] .lead-market-body {
    gap: 10px !important;
  }

  body[data-page="index"] .lead-market-body h2,
  body[data-page="index"] .lead-market-title {
    font-size: clamp(15px, 5.6vw, 18px) !important;
    line-height: 1.08 !important;
  }

  body[data-page="index"] .lead-market-price b {
    font-size: clamp(28px, 9vw, 38px) !important;
  }
}

.search-hero-stack,
.stage-hero-stack {
  display: grid;
  gap: 14px;
}

.search-page-query-form {
  width: 100%;
  max-width: 720px;
}

.search-page-query-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 8px;
  border-radius: 20px;
  background: rgba(18, 27, 34, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 36px rgba(0, 0, 0, 0.2);
}

.search-page-query-input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(242, 247, 249, 0.95);
  font: inherit;
  font-size: 15px;
  line-height: 1.2;
}

.search-page-query-input::placeholder {
  color: rgba(188, 202, 208, 0.58);
}

.search-page-query-input:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(107, 215, 228, 0.28);
}

.search-page-query-button {
  min-height: 46px;
  padding-inline: 18px;
  border-radius: 14px;
}

.stage-group-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stage-group-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(206, 219, 224, 0.72);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color 160ms linear, color 160ms linear, transform 120ms linear;
}

.stage-group-pill.is-active,
.stage-group-pill[aria-current="page"] {
  background: rgba(107, 215, 228, 0.13);
  color: rgba(241, 248, 250, 0.96);
}

@media (max-width: 900px) {
  body.has-mobile-dock:not([data-page="index"]) .market-topbar.subpage-topbar {
    grid-template-areas: "brand language" !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    column-gap: 10px !important;
    row-gap: 0 !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  body.has-mobile-dock:not([data-page="index"]) .market-topbar.subpage-topbar > .user-menu {
    display: none !important;
  }

  body.has-mobile-dock:not([data-page="index"]) .app-shell {
    padding-top: 78px !important;
  }

  body.has-mobile-dock:not([data-page="index"]) .market-topbar.subpage-topbar .topbar-language .language-switch {
    width: 36px !important;
    min-width: 36px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.035) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  }

  body.has-mobile-dock:not([data-page="index"]) .market-topbar.subpage-topbar .topbar-language .language-icon,
  body.has-mobile-dock:not([data-page="index"]) .market-topbar.subpage-topbar .topbar-language .language-caret {
    display: none !important;
  }

  body.has-mobile-dock:not([data-page="index"]) .market-topbar.subpage-topbar .topbar-language .language-code {
    width: auto !important;
    min-width: 0 !important;
  }

  body.has-mobile-dock:not([data-page="index"]) .market-topbar.subpage-topbar .topbar-language .language-code::before {
    font-size: 12px !important;
    line-height: 1 !important;
    letter-spacing: 0.02em !important;
    transform: translateY(0.5px);
  }

  body[data-page="stage"] .page-backbar,
  body[data-page="search"] .page-backbar,
  body[data-page="profile"] .page-backbar {
    display: none !important;
  }

  body[data-page="stage"] .search-hero,
  body[data-page="search"] .search-hero {
    padding: 0 0 8px !important;
    gap: 14px !important;
  }

  body[data-page="stage"] .search-hero h1,
  body[data-page="search"] .search-hero h1 {
    font-size: clamp(28px, 8.2vw, 36px) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.04em !important;
    max-width: 12ch !important;
    text-wrap: balance !important;
  }

  body[data-page="stage"] .search-hero p,
  body[data-page="search"] .search-hero p {
    margin: 0 !important;
    font-size: 12.5px !important;
    line-height: 1.55 !important;
    color: rgba(197, 211, 217, 0.68) !important;
  }

  body[data-page="search"] .search-page-query-form {
    max-width: none !important;
  }

  body[data-page="search"] .search-page-query-shell {
    gap: 8px;
    padding: 7px;
    border-radius: 18px;
  }

  body[data-page="search"] .search-page-query-input {
    min-height: 44px;
    padding-inline: 14px;
    font-size: 16px;
  }

  body[data-page="search"] .search-page-query-button {
    min-height: 44px;
    padding-inline: 15px;
    border-radius: 13px;
    font-size: 13.5px;
  }

  body[data-page="stage"] .stage-group-switch {
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    touch-action: pan-x pinch-zoom;
  }

  body[data-page="stage"] .stage-group-switch::-webkit-scrollbar {
    display: none;
  }

  body[data-page="stage"] .stage-group-pill {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  body[data-page="search"] .search-results-board,
  body[data-page="stage"] .search-results-board {
    gap: 14px !important;
  }

  body[data-page="search"] .market-board-section,
  body[data-page="stage"] .market-board-section {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    gap: 10px !important;
  }

  body[data-page="search"] .market-board-head,
  body[data-page="stage"] .market-board-head {
    display: flex !important;
    align-items: end !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin-bottom: 0 !important;
  }

  body[data-page="search"] .market-board-head h2,
  body[data-page="stage"] .market-board-head h2 {
    font-size: 16px !important;
    line-height: 1.1 !important;
  }

  body[data-page="search"] .market-board-actions .btn,
  body[data-page="stage"] .market-board-actions .btn {
    display: none !important;
  }

  body[data-page="search"] .market-board-actions span,
  body[data-page="stage"] .market-board-actions span {
    font-size: 11.5px !important;
    color: rgba(187, 201, 207, 0.58) !important;
  }

  body[data-page="search"] .subpage-market-grid,
  body[data-page="stage"] .subpage-market-grid {
    gap: 12px !important;
  }

  body[data-page="search"] .subpage-market-grid .home-topic-card.market-card-grid,
  body[data-page="stage"] .subpage-market-grid .home-topic-card.market-card-grid {
    padding: 14px !important;
    border-radius: 18px !important;
    min-height: 0 !important;
  }

  body[data-page="search"] .subpage-market-grid .home-topic-card.market-card-grid h3,
  body[data-page="stage"] .subpage-market-grid .home-topic-card.market-card-grid h3 {
    font-size: 18px !important;
    line-height: 1.14 !important;
    letter-spacing: -0.03em !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    overflow: hidden !important;
  }

  body[data-page="search"] .subpage-market-grid .home-topic-card.market-card-grid p,
  body[data-page="stage"] .subpage-market-grid .home-topic-card.market-card-grid p {
    font-size: 13px !important;
    line-height: 1.5 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    overflow: hidden !important;
  }

  body[data-page="search"] .subpage-market-grid .market-consensus b,
  body[data-page="stage"] .subpage-market-grid .market-consensus b {
    font-size: 22px !important;
  }

  body[data-page="search"] .subpage-market-grid .market-action-cluster,
  body[data-page="stage"] .subpage-market-grid .market-action-cluster {
    gap: 8px !important;
  }

  body[data-page="search"] .stage-page-footer,
  body[data-page="stage"] .stage-page-footer {
    margin-top: 4px !important;
    padding-top: 2px !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .page-backbar {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .page-backbar .btn {
    min-height: 30px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: rgba(205, 219, 224, 0.7) !important;
    font-size: 12.5px !important;
    letter-spacing: -0.01em !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .page-backbar .btn:hover,
  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .page-backbar .btn:focus-visible,
  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .page-backbar .btn:active {
    color: rgba(238, 246, 248, 0.92) !important;
    background: transparent !important;
    border-color: transparent !important;
    transform: none !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .analysis-hero,
  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .verified-hero {
    padding: 0 !important;
    gap: 10px !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) :is(.analysis-hero, .verified-hero) h1 {
    max-width: none !important;
    font-size: clamp(24px, 8.1vw, 30px) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.045em !important;
    text-wrap: pretty !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .verified-summary {
    gap: 10px !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .verified-summary-item {
    gap: 8px !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .verified-summary-label {
    font-size: 10.5px !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .verified-summary-value {
    font-size: 12px !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .analysis-panel {
    border-radius: 18px !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) :is(.topic-story-panel, .analysis-truth-panel, .analysis-self-panel, .submitted-latest-panel, .verified-ranking-panel) {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .topic-background-visual-wrap {
    height: 224px !important;
    min-height: 224px !important;
    max-height: 224px !important;
    margin-top: 8px !important;
    border-radius: 18px !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .topic-background-visual {
    min-height: 224px !important;
  }

  body:is([data-page="analysis"], [data-page="submitted"], [data-page="verified"]) :is(.consensus-highlight, .outcome-highlight) {
    font-size: clamp(19px, 5.6vw, 22px) !important;
    line-height: 1.38 !important;
    letter-spacing: -0.026em !important;
  }

  body:is([data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .verified-self-prediction-copy {
    font-size: 14px !important;
    line-height: 1.68 !important;
  }

  body[data-page="submit-step1"] .prediction-form {
    padding: 16px !important;
  }

  body[data-page="submit-step1"] .submit-focus-grid {
    gap: 16px !important;
    margin-top: 12px !important;
  }

  body[data-page="submit-step1"] .verified-background-panel,
  body[data-page="submit-step1"] .submit-predict-panel {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body[data-page="submit-step1"] .verified-background-panel {
    gap: 10px !important;
  }

  body[data-page="submit-step1"] .verified-background-panel h2,
  body[data-page="submit-step1"] .submit-predict-panel h2 {
    font-size: 15px !important;
    line-height: 1.14 !important;
  }

  body[data-page="submit-step1"] .verified-background-panel p {
    font-size: 13px !important;
    line-height: 1.58 !important;
  }

  body[data-page="submit-step1"] .submit-prompt-block {
    gap: 10px !important;
    padding: 0 !important;
    background: transparent !important;
  }

  body[data-page="submit-step1"] .submit-prompt-head {
    align-items: center !important;
  }

  body[data-page="submit-step1"] .submit-prompt-head h3 {
    font-size: 12px !important;
  }

  body[data-page="submit-step1"] .submit-prompt-editor {
    min-height: 168px !important;
    max-height: 168px !important;
    padding: 14px 14px 16px !important;
    border: 0 !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
  }

  body[data-page="submit-step1"] .submit-prompt-actions {
    justify-content: flex-start !important;
  }

  body[data-page="submit-step1"] .submit-model-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 2px !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x proximity !important;
    overscroll-behavior-x: contain !important;
    touch-action: pan-x pinch-zoom !important;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%) !important;
    mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%) !important;
  }

  body[data-page="submit-step1"] .submit-model-grid::-webkit-scrollbar {
    display: none !important;
  }

  body[data-page="submit-step1"] .submit-model-chip {
    flex: 0 0 auto !important;
    min-height: 32px !important;
    padding: 0 12px !important;
    scroll-snap-align: start !important;
  }

  body[data-page="submit-step1"] .submit-predict-panel textarea#aiReasoning {
    min-height: 184px !important;
    max-height: 184px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
  }

  body[data-page="submit-step1"] .submit-predict-panel .button-row {
    justify-content: stretch !important;
  }

  body[data-page="submit-step1"] .submit-predict-panel .button-row .btn.primary {
    width: 100% !important;
    min-height: 46px !important;
    border-radius: 16px !important;
  }

  body[data-page="submitted"] .submitted-latest-panel,
  body[data-page="verified"] .verified-ranking-panel {
    padding-top: 4px !important;
  }

  body[data-page="profile"] .profile-hero {
    padding: 0 !important;
  }
}

@media (max-width: 640px) {
  body.has-mobile-dock:not([data-page="index"]) .app-shell {
    padding-top: 72px !important;
  }

  body.has-mobile-dock:not([data-page="index"]) .market-topbar.subpage-topbar .topbar-language .language-switch {
    width: 36px !important;
    min-width: 36px !important;
    height: 34px !important;
    min-height: 34px !important;
    border-radius: 12px !important;
  }

  body[data-page="stage"] .search-hero h1,
  body[data-page="search"] .search-hero h1 {
    max-width: 10ch !important;
    font-size: clamp(26px, 8.9vw, 32px) !important;
  }

  body[data-page="search"] .search-page-query-shell {
    grid-template-columns: 1fr !important;
  }

  body[data-page="search"] .search-page-query-button {
    width: 100% !important;
  }

  body[data-page="search"] .subpage-market-grid .home-topic-card.market-card-grid h3,
  body[data-page="stage"] .subpage-market-grid .home-topic-card.market-card-grid h3 {
    font-size: 16px !important;
  }

  body[data-page="search"] .subpage-market-grid .market-consensus b,
  body[data-page="stage"] .subpage-market-grid .market-consensus b {
    font-size: 20px !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .topic-background-visual-wrap {
    height: 208px !important;
    min-height: 208px !important;
    max-height: 208px !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .topic-background-visual {
    min-height: 208px !important;
  }

  body[data-page="submit-step1"] .submit-prompt-editor {
    min-height: 156px !important;
    max-height: 156px !important;
    font-size: 12.5px !important;
    line-height: 1.66 !important;
  }

  body[data-page="submit-step1"] .submit-predict-panel textarea#aiReasoning {
    min-height: 168px !important;
    max-height: 168px !important;
  }

  body[data-page="submitted"] .analysis-hero h1,
  body[data-page="analysis"] .analysis-hero h1,
  body[data-page="verified"] .analysis-hero h1,
  body[data-page="submit-step1"] .analysis-hero h1,
  body[data-page="verified"] .verified-hero h1 {
    font-size: clamp(22px, 8vw, 28px) !important;
    max-width: none !important;
  }
}

@media (max-width: 900px) {
  body.has-mobile-dock .market-topbar::before {
    display: none !important;
  }

  body.has-mobile-dock .market-topbar {
    box-shadow: none !important;
  }

  body[data-page="index"] .home-command-layout,
  body[data-page="index"] .home-main-flow,
  body[data-page="index"] .home-side-rail {
    gap: 14px !important;
  }

  body[data-page="index"] .home-intro-strip {
    gap: 2px !important;
  }

  body[data-page="index"] .lead-market-card {
    padding: 14px !important;
    border-radius: 20px !important;
    background: rgba(16, 22, 29, 0.92) !important;
  }

  body[data-page="index"] .lead-market-copy {
    gap: 8px !important;
  }

  body[data-page="index"] .lead-market-body p {
    color: rgba(197, 211, 217, 0.74) !important;
  }

  body[data-page="index"] .lead-market-visual {
    margin-top: 2px !important;
  }

  body[data-page="index"] .signal-rank-panel {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body[data-page="index"] .signal-rank-panel .section-heading {
    margin-bottom: 6px !important;
  }

  body[data-page="index"] .signal-rank-list {
    gap: 6px !important;
  }

  body[data-page="index"] .signal-rank-row {
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-bottom-color: rgba(255, 255, 255, 0.04) !important;
  }

  body[data-page="search"] .search-hero {
    gap: 8px !important;
    padding: 0 0 2px !important;
  }

  body[data-page="search"] .search-hero p {
    display: none !important;
  }

  body[data-page="search"] .search-page-query-shell {
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    gap: 10px !important;
  }

  body[data-page="search"] .search-page-query-input {
    min-height: 48px !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045) !important;
  }

  body[data-page="search"] .search-page-query-button {
    min-height: 46px !important;
    border-radius: 15px !important;
  }

  body[data-page="search"] .search-empty-state,
  body[data-page="search"] .search-empty {
    padding: 4px 0 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: rgba(193, 207, 214, 0.66) !important;
  }

  body[data-page="search"] .search-empty-state {
    max-width: 28ch !important;
  }

  body[data-page="stage"] .search-hero,
  body[data-page="search"] .search-hero {
    gap: 8px !important;
  }

  body[data-page="stage"] .search-hero p {
    font-size: 12px !important;
    line-height: 1.45 !important;
    color: rgba(193, 207, 214, 0.62) !important;
    white-space: normal !important;
  }

  body[data-page="stage"] .stage-group-switch {
    gap: 10px !important;
    padding-bottom: 4px !important;
  }

  body[data-page="stage"] .stage-group-pill {
    min-height: 36px !important;
    padding: 0 15px !important;
    border-radius: 999px !important;
  }

  body[data-page="search"] .subpage-market-grid,
  body[data-page="stage"] .subpage-market-grid {
    gap: 10px !important;
  }

  body[data-page="stage"] .search-stage-group .home-topic-card,
  body[data-page="search"] .search-stage-group .home-topic-card,
  body[data-page="search"] .subpage-market-grid .home-topic-card.market-card-grid,
  body[data-page="stage"] .subpage-market-grid .home-topic-card.market-card-grid {
    min-height: 0 !important;
    height: auto !important;
    padding: 14px !important;
    border-radius: 20px !important;
    gap: 10px !important;
    background: rgba(17, 23, 30, 0.9) !important;
  }

  body[data-page="stage"] .search-stage-group .market-card-head,
  body[data-page="search"] .search-stage-group .market-card-head,
  body[data-page="search"] .subpage-market-grid .home-topic-card.market-card-grid .market-card-head,
  body[data-page="stage"] .subpage-market-grid .home-topic-card.market-card-grid .market-card-head {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 12px !important;
  }

  body[data-page="stage"] .search-stage-group .home-topic-card h3,
  body[data-page="search"] .search-stage-group .home-topic-card h3,
  body[data-page="search"] .subpage-market-grid .home-topic-card.market-card-grid h3,
  body[data-page="stage"] .subpage-market-grid .home-topic-card.market-card-grid h3 {
    margin-bottom: 2px !important;
    font-size: 17px !important;
    line-height: 1.16 !important;
    min-height: calc(1.16em * 3) !important;
    max-height: calc(1.16em * 3) !important;
  }

  body[data-page="stage"] .search-stage-group .home-topic-card p,
  body[data-page="search"] .search-stage-group .home-topic-card p,
  body[data-page="search"] .subpage-market-grid .home-topic-card.market-card-grid p,
  body[data-page="stage"] .subpage-market-grid .home-topic-card.market-card-grid p {
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    min-height: calc(1.5em * 2) !important;
    max-height: calc(1.5em * 2) !important;
  }

  body[data-page="stage"] .search-stage-group .market-consensus b,
  body[data-page="search"] .search-stage-group .market-consensus b,
  body[data-page="search"] .subpage-market-grid .market-consensus b,
  body[data-page="stage"] .subpage-market-grid .market-consensus b {
    font-size: 24px !important;
  }

  body[data-page="stage"] .search-stage-group .market-consensus span,
  body[data-page="search"] .search-stage-group .market-consensus span,
  body[data-page="search"] .subpage-market-grid .market-consensus span,
  body[data-page="stage"] .subpage-market-grid .market-consensus span {
    font-size: 10px !important;
  }

  body[data-page="stage"] .search-stage-group .market-meta-line,
  body[data-page="search"] .search-stage-group .market-meta-line,
  body[data-page="search"] .subpage-market-grid .home-topic-card.market-card-grid .market-meta-line,
  body[data-page="stage"] .subpage-market-grid .home-topic-card.market-card-grid .market-meta-line {
    gap: 10px !important;
    align-items: end !important;
  }

  body[data-page="stage"] .search-stage-group .market-card-action,
  body[data-page="search"] .search-stage-group .market-card-action,
  body[data-page="search"] .subpage-market-grid .home-topic-card.market-card-grid .market-card-action,
  body[data-page="stage"] .subpage-market-grid .home-topic-card.market-card-grid .market-card-action {
    min-height: 32px !important;
    padding: 0 12px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
  }

  body[data-page="stage"] .stage-page-footer,
  body[data-page="search"] .stage-page-footer {
    padding-top: 6px !important;
    margin-top: 0 !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .layout {
    gap: 16px !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .analysis-hero,
  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .verified-hero {
    gap: 8px !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .verified-summary {
    margin-top: 0 !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .analysis-panel {
    border-radius: 16px !important;
  }

  body[data-page="profile"] .profile-center-shell,
  body[data-page="profile"] .profile-center-shell-wide {
    gap: 18px !important;
  }

  body[data-page="profile"] .profile-records-column,
  body[data-page="profile"] .profile-summary-column {
    gap: 14px !important;
  }
}

@media (max-width: 640px) {
  body[data-page="index"] .home-intro-strip h2 {
    font-size: 14px !important;
    line-height: 1.02 !important;
  }

  body[data-page="index"] .lead-market-card {
    padding: 13px !important;
  }

  body[data-page="index"] .lead-market-body h2,
  body[data-page="index"] .lead-market-title {
    font-size: clamp(15px, 5.3vw, 17px) !important;
    line-height: 1.1 !important;
  }

  body[data-page="search"] .search-hero h1,
  body[data-page="stage"] .search-hero h1 {
    max-width: none !important;
    font-size: clamp(24px, 8.3vw, 29px) !important;
    line-height: 1 !important;
  }

  body[data-page="search"] .search-page-query-input {
    min-height: 46px !important;
  }

  body[data-page="stage"] .search-stage-group .home-topic-card,
  body[data-page="search"] .search-stage-group .home-topic-card,
  body[data-page="search"] .subpage-market-grid .home-topic-card.market-card-grid,
  body[data-page="stage"] .subpage-market-grid .home-topic-card.market-card-grid {
    padding: 13px !important;
    border-radius: 18px !important;
  }

  body[data-page="stage"] .search-stage-group .home-topic-card h3,
  body[data-page="search"] .search-stage-group .home-topic-card h3,
  body[data-page="search"] .subpage-market-grid .home-topic-card.market-card-grid h3,
  body[data-page="stage"] .subpage-market-grid .home-topic-card.market-card-grid h3 {
    font-size: 16px !important;
  }

  body[data-page="stage"] .search-stage-group .market-consensus b,
  body[data-page="search"] .search-stage-group .market-consensus b,
  body[data-page="search"] .subpage-market-grid .market-consensus b,
  body[data-page="stage"] .subpage-market-grid .market-consensus b {
    font-size: 22px !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .analysis-hero,
  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .verified-hero {
    gap: 7px !important;
  }
}

@media (max-width: 900px) {
  body.has-mobile-dock:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"], [data-page="profile"], [data-page="search"], [data-page="stage"]) .app-shell {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 108px) !important;
  }

  body.has-mobile-dock:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"], [data-page="profile"], [data-page="search"], [data-page="stage"]) .layout {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 132px) !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) :is(.analysis-hero, .verified-hero) h1 {
    font-size: clamp(21px, 7.2vw, 26px) !important;
    line-height: 1.04 !important;
    letter-spacing: -0.04em !important;
  }
}

@media (max-width: 640px) {
  body.has-mobile-dock:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"], [data-page="profile"], [data-page="search"], [data-page="stage"]) .app-shell {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 102px) !important;
  }

  body.has-mobile-dock:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"], [data-page="profile"], [data-page="search"], [data-page="stage"]) .layout {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 126px) !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) :is(.analysis-hero, .verified-hero) h1 {
    font-size: clamp(20px, 7vw, 24px) !important;
  }
}

@media (max-width: 900px) {
  body[data-page="profile"] .profile-hero {
    gap: 12px !important;
    padding: 0 0 6px !important;
  }

  body[data-page="profile"] .profile-account-head {
    gap: 14px !important;
    padding: 16px !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.03) !important;
  }

  body[data-page="profile"] .profile-account-label {
    font-size: 14px !important;
    letter-spacing: 0 !important;
    color: rgba(188, 204, 214, 0.64) !important;
  }

  body[data-page="profile"] .profile-identity {
    align-items: center !important;
  }

  body[data-page="profile"] .profile-identity-main {
    gap: 10px !important;
  }

  body[data-page="profile"] .profile-identity-topline {
    gap: 5px !important;
  }

  body[data-page="profile"] .profile-user-id,
  body[data-page="profile"] .profile-identity-meta {
    font-size: 11.5px !important;
    line-height: 1.45 !important;
    color: rgba(185, 199, 208, 0.68) !important;
  }

  body[data-page="profile"] .profile-identity-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body[data-page="profile"] .profile-inline-action {
    width: 100% !important;
    min-height: 38px !important;
    padding: 0 10px !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    font-size: 12px !important;
  }

  body[data-page="profile"] .profile-records-panel,
  body[data-page="profile"] .profile-chart-panel,
  body[data-page="profile"] .account-panel {
    padding: 16px !important;
    border-radius: 22px !important;
    background: rgba(255, 255, 255, 0.025) !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body[data-page="profile"] .profile-updates-panel {
    margin-bottom: 22px !important;
    padding: 0 !important;
    border: 0 !important;
  }

  body[data-page="profile"] .profile-updates-panel .section-heading,
  body[data-page="profile"] .profile-records-panel .section-heading,
  body[data-page="profile"] .profile-chart-panel .section-heading.compact,
  body[data-page="profile"] .account-panel .section-heading.compact {
    margin-bottom: 12px !important;
    padding: 0 !important;
    gap: 10px !important;
  }

  body[data-page="profile"] .profile-updates-panel .section-heading,
  body[data-page="profile"] .profile-records-panel .section-heading {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
  }

  body[data-page="profile"] .profile-updates-panel .section-heading {
    margin-bottom: 10px !important;
    gap: 8px !important;
  }

  body[data-page="profile"] .profile-records-panel .section-heading {
    margin-bottom: 2px !important;
    gap: 2px !important;
  }

  body[data-page="profile"] .profile-updates-panel .section-heading,
  body[data-page="profile"] .profile-records-panel .section-heading,
  body[data-page="profile"] .profile-chart-panel .section-heading.compact,
  body[data-page="profile"] .account-panel .section-heading.compact {
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  body[data-page="profile"] :is(.profile-records-panel, .profile-chart-panel, .account-panel) .section-heading h2 {
    font-size: 16px !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
  }

  body[data-page="profile"] .profile-records-panel .filter-tabs {
    margin-top: 0 !important;
    width: auto !important;
    min-width: max-content !important;
    justify-content: flex-end !important;
    gap: 0 !important;
    padding: 3px !important;
    overflow: visible !important;
  }

  body[data-page="profile"] .profile-records-panel .profile-filter-indicator {
    top: 3px !important;
    bottom: 3px !important;
  }

  body[data-page="profile"] .profile-records-panel .filter-tabs.filter-tabs--profile button {
    min-width: 72px !important;
    min-height: 32px !important;
    padding: 0 13px !important;
  }

  body[data-page="profile"] .profile-update-list {
    gap: 10px !important;
  }

  body[data-page="profile"] .profile-update-item {
    padding: 14px !important;
    border-radius: 18px !important;
  }

  body[data-page="profile"] .profile-record-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  body[data-page="profile"] .profile-record-grid .home-topic-card {
    min-height: 0 !important;
    height: auto !important;
  }

  body[data-page="profile"] .profile-record-pagination {
    margin-top: 14px !important;
    padding-top: 10px !important;
    border-top-color: rgba(255, 255, 255, 0.035) !important;
  }

  body[data-page="profile"] .profile-chart-list {
    gap: 12px !important;
  }

  body[data-page="profile"] .account-setting-list,
  body[data-page="profile"] .account-security-list {
    gap: 0 !important;
  }

  body[data-page="profile"] .account-setting-list .setting-row,
  body[data-page="profile"] .account-security-list .setting-row {
    gap: 8px !important;
    padding: 12px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
  }

  body[data-page="profile"] .account-setting-list .setting-row:first-child,
  body[data-page="profile"] .account-security-list .setting-row:first-child {
    padding-top: 0 !important;
    border-top: 0 !important;
  }

  body[data-page="profile"] .account-setting-list .setting-row:last-child,
  body[data-page="profile"] .account-security-list .setting-row:last-child {
    padding-bottom: 0 !important;
  }

  body[data-page="profile"] .account-setting-list .setting-row > span,
  body[data-page="profile"] .account-security-list .setting-row > span {
    font-size: 13px !important;
    color: rgba(234, 241, 246, 0.88) !important;
  }

  body[data-page="profile"] .setting-inline-action {
    min-height: 28px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    font-size: 11.5px !important;
  }

  body[data-page="admin"] .admin-hero {
    padding: 0 0 2px !important;
  }

  body[data-page="admin"] .admin-hero h1 {
    font-size: clamp(28px, 8.8vw, 36px) !important;
    line-height: 1 !important;
    letter-spacing: -0.04em !important;
  }

  body[data-page="admin"] .admin-console {
    gap: 18px !important;
    margin-top: 12px !important;
  }

  body[data-page="admin"] .admin-stage-grid {
    gap: 18px !important;
  }

  body[data-page="admin"] .admin-surface {
    gap: 16px !important;
    padding: 16px !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.025) !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body[data-page="admin"] .admin-surface-head {
    display: grid !important;
    justify-content: start !important;
    gap: 6px !important;
    padding: 0 !important;
    border: 0 !important;
  }

  body[data-page="admin"] .admin-surface-head h2 {
    font-size: 18px !important;
    line-height: 1.08 !important;
  }

  body[data-page="admin"] .admin-surface-head p,
  body[data-page="admin"] .admin-counter {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  body[data-page="admin"] .admin-publish-layout {
    gap: 16px !important;
  }

  body[data-page="admin"] .admin-publish-form {
    gap: 12px !important;
  }

  body[data-page="admin"] .admin-publish-form .field {
    gap: 7px !important;
  }

  body[data-page="admin"] :is(.admin-publish-form input, .admin-publish-form textarea, .admin-word-form input) {
    border-radius: 16px !important;
    min-height: 48px !important;
  }

  body[data-page="admin"] .admin-publish-form textarea {
    min-height: 108px !important;
  }

  body[data-page="admin"] .admin-publish-form .admin-prompt-field {
    min-height: 176px !important;
  }

  body[data-page="admin"] .admin-upload-button {
    min-height: 46px !important;
    height: 46px !important;
    border-radius: 16px !important;
  }

  body[data-page="admin"] .admin-publish-preview {
    gap: 12px !important;
    padding: 14px 0 0 !important;
    border-left: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  }

  body[data-page="admin"] .admin-preview-visual,
  body[data-page="admin"] .admin-verification-visual {
    border-radius: 18px !important;
  }

  body[data-page="admin"] .admin-verify-list,
  body[data-page="admin"] .admin-review-list {
    gap: 12px !important;
  }

  body[data-page="admin"] .admin-verify-item {
    padding: 14px !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.03) !important;
  }

  body[data-page="admin"] .admin-verify-item:last-child {
    padding-bottom: 14px !important;
  }

  body[data-page="admin"] .admin-rule-grid {
    gap: 16px !important;
  }

  body[data-page="admin"] .admin-word-card,
  body[data-page="admin"] .admin-review-lane {
    gap: 12px !important;
    padding-top: 0 !important;
    border-top: 0 !important;
  }

  body[data-page="admin"] .admin-mini-head {
    align-items: start !important;
  }

  body[data-page="admin"] .admin-mini-head > div {
    gap: 4px !important;
    min-height: 0 !important;
  }

  body[data-page="admin"] .admin-mini-head h3 {
    font-size: 16px !important;
    line-height: 1.15 !important;
  }

  body[data-page="admin"] .admin-word-chip-list {
    gap: 8px !important;
  }

  body[data-page="admin"] .admin-review-grid {
    gap: 16px !important;
  }

  body[data-page="admin"] .admin-review-card {
    gap: 10px !important;
    padding: 14px !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.03) !important;
  }

  body[data-page="admin"] .admin-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body[data-page="admin"] .admin-actions .btn {
    width: 100% !important;
    min-height: 38px !important;
    border-radius: 14px !important;
  }

  body[data-page="admin"] .admin-pagination {
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
  }

  body[data-page="admin"] .admin-page-list {
    flex-wrap: wrap !important;
  }

  body[data-page="admin"] .admin-page-nav,
  body[data-page="admin"] .admin-page-number {
    min-height: 36px !important;
    border-radius: 12px !important;
  }
}

@media (max-width: 640px) {
  body[data-page="profile"] .profile-hero h1 {
    font-size: clamp(28px, 9vw, 34px) !important;
  }

  body[data-page="profile"] .profile-account-head,
  body[data-page="profile"] .profile-records-panel,
  body[data-page="profile"] .profile-chart-panel,
  body[data-page="profile"] .account-panel,
  body[data-page="admin"] .admin-surface {
    padding: 14px !important;
    border-radius: 20px !important;
  }

  body[data-page="profile"] .profile-identity {
    grid-template-columns: 64px minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  body[data-page="profile"] .profile-avatar {
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
  }

  body[data-page="profile"] .profile-identity-actions {
    grid-template-columns: 1fr 1fr !important;
  }

  body[data-page="profile"] .profile-inline-action:last-child {
    grid-column: 1 / -1 !important;
  }

  body[data-page="admin"] .admin-hero h1 {
    font-size: clamp(26px, 8.5vw, 32px) !important;
  }

  body[data-page="admin"] .admin-actions {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 900px) {
  body[data-page="stage"] .stage-hero-copy p {
    display: none !important;
  }

  body:not([data-page="index"]) .market-topbar.subpage-topbar {
    grid-template-areas: "brand language" !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    column-gap: 10px !important;
  }

  body:not([data-page="index"]) .market-topbar.subpage-topbar > .user-menu,
  body:not([data-page="index"]) .market-topbar.subpage-topbar > .topbar-admin-entry {
    display: none !important;
  }

  body:not([data-page="index"]) .market-topbar.subpage-topbar > .brand-menu {
    min-width: 0 !important;
    justify-self: start !important;
  }

  body:not([data-page="index"]) .market-topbar.subpage-topbar > .topbar-language {
    justify-self: end !important;
  }

  body[data-page="search"] .search-results-board,
  body[data-page="stage"] .search-results-board {
    gap: 14px !important;
  }

  body[data-page="search"] .search-stage-group,
  body[data-page="stage"] .search-stage-group {
    gap: 10px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body[data-page="search"] .search-stage-group .section-heading,
  body[data-page="stage"] .search-stage-group .section-heading {
    margin-bottom: 0 !important;
    padding: 0 !important;
    gap: 4px !important;
    justify-items: start !important;
    text-align: left !important;
  }

  body[data-page="search"] .search-stage-group .section-heading h2,
  body[data-page="stage"] .search-stage-group .section-heading h2 {
    font-size: 14px !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
  }

  body[data-page="search"] .search-stage-group .section-heading p,
  body[data-page="stage"] .search-stage-group .section-heading p {
    font-size: 11.5px !important;
    line-height: 1.45 !important;
    color: rgba(188, 203, 211, 0.56) !important;
  }

  body[data-page="search"] .subpage-market-grid,
  body[data-page="stage"] .subpage-market-grid {
    gap: 9px !important;
  }

  body[data-page="search"] .subpage-market-grid .home-topic-card.market-card-grid,
  body[data-page="stage"] .subpage-market-grid .home-topic-card.market-card-grid {
    padding: 13px !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.028) !important;
    box-shadow: none !important;
  }

  body[data-page="search"] .subpage-market-grid .home-topic-card.market-card-grid .market-card-head,
  body[data-page="stage"] .subpage-market-grid .home-topic-card.market-card-grid .market-card-head {
    gap: 10px !important;
  }

  body[data-page="search"] .subpage-market-grid .home-topic-card.market-card-grid h3,
  body[data-page="stage"] .subpage-market-grid .home-topic-card.market-card-grid h3 {
    font-size: 16px !important;
    line-height: 1.18 !important;
    min-height: calc(1.18em * 3) !important;
    max-height: calc(1.18em * 3) !important;
  }

  body[data-page="search"] .subpage-market-grid .home-topic-card.market-card-grid p,
  body[data-page="stage"] .subpage-market-grid .home-topic-card.market-card-grid p {
    font-size: 12px !important;
    line-height: 1.52 !important;
    min-height: calc(1.52em * 2) !important;
    max-height: calc(1.52em * 2) !important;
    color: rgba(198, 211, 216, 0.72) !important;
  }

  body[data-page="search"] .subpage-market-grid .market-meta-line,
  body[data-page="stage"] .subpage-market-grid .market-meta-line {
    margin-top: 2px !important;
    padding-top: 0 !important;
  }

  body[data-page="search"] .subpage-market-grid .market-card-action,
  body[data-page="stage"] .subpage-market-grid .market-card-action {
    min-height: 34px !important;
    padding: 0 13px !important;
    border-radius: 11px !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .page-backbar {
    margin-bottom: 2px !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .page-backbar .btn {
    min-height: 28px !important;
    font-size: 12px !important;
    color: rgba(193, 207, 214, 0.62) !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .analysis-panel {
    gap: 12px !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) :is(.topic-story-panel, .analysis-truth-panel, .analysis-self-panel, .submitted-latest-panel, .verified-ranking-panel) .section-heading,
  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) :is(.topic-story-panel, .analysis-truth-panel, .analysis-self-panel, .submitted-latest-panel, .verified-ranking-panel) .verified-section-header {
    margin-bottom: 4px !important;
    gap: 4px !important;
    justify-items: start !important;
    text-align: left !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) :is(.topic-story-panel, .analysis-truth-panel, .analysis-self-panel, .submitted-latest-panel, .verified-ranking-panel) .section-heading h2,
  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) :is(.topic-story-panel, .analysis-truth-panel, .analysis-self-panel, .submitted-latest-panel, .verified-ranking-panel) .verified-section-header h2 {
    font-size: 14px !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .topic-background-visual-wrap {
    margin-top: 6px !important;
    border-radius: 16px !important;
  }

  body:is([data-page="analysis"], [data-page="submitted"], [data-page="verified"]) :is(.consensus-highlight, .outcome-highlight) {
    font-size: clamp(18px, 5.4vw, 20px) !important;
    line-height: 1.42 !important;
  }

  body:is([data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .verified-self-prediction-copy,
  body[data-page="submit-step1"] .verified-background-panel p {
    font-size: 13px !important;
    line-height: 1.6 !important;
  }

  body[data-page="submitted"] .submitted-latest-panel,
  body[data-page="verified"] .verified-ranking-panel {
    gap: 10px !important;
  }
}

@media (max-width: 640px) {
  body:not([data-page="index"]) .market-topbar.subpage-topbar {
    padding-top: 7px !important;
    padding-bottom: 7px !important;
  }

  body[data-page="search"] .search-stage-group .section-heading p,
  body[data-page="stage"] .search-stage-group .section-heading p {
    display: none !important;
  }

  body[data-page="search"] .subpage-market-grid .home-topic-card.market-card-grid,
  body[data-page="stage"] .subpage-market-grid .home-topic-card.market-card-grid {
    padding: 12px !important;
    border-radius: 17px !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .topic-background-visual-wrap {
    border-radius: 14px !important;
  }
}

@media (max-width: 900px) {
  .market-topbar .topbar-language,
  .market-topbar .topbar-language .language-switch,
  .market-topbar .topbar-language .language-code,
  .market-topbar .topbar-language .language-code::before {
    overflow: visible !important;
  }

  .market-topbar .topbar-language .language-switch {
    width: auto !important;
    min-width: max-content !important;
    padding-inline: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    white-space: nowrap !important;
  }

  .market-topbar .topbar-language .language-icon,
  .market-topbar .topbar-language .language-caret {
    display: none !important;
  }

  .market-topbar .topbar-language .language-code {
    width: auto !important;
    min-width: max-content !important;
    padding-right: 0.5px !important;
  }

  .market-topbar .topbar-language .language-code::before {
    width: auto !important;
    display: inline-block !important;
    text-align: center !important;
  }

  body[data-page="index"] .market-topbar > .topbar-language,
  body:not([data-page="index"]) .market-topbar.subpage-topbar > .topbar-language {
    justify-self: end !important;
    min-width: max-content !important;
  }
}

@media (max-width: 640px) {
  .market-topbar .topbar-language .language-switch {
    min-height: 34px !important;
    padding-inline: 9px !important;
    border-radius: 12px !important;
  }

  .market-topbar .topbar-language .language-code::before {
    font-size: 12px !important;
    line-height: 1 !important;
    letter-spacing: 0.02em !important;
  }
}

@media (max-width: 900px) {
  body:not([data-page="index"]) :is(.subpage-hero, .analysis-hero, .verified-hero, .submit-hero, .profile-hero) h1,
  body[data-page="submitted"] .analysis-hero h1,
  body[data-page="analysis"] .analysis-hero h1,
  body[data-page="verified"] .analysis-hero h1,
  body[data-page="submit-step1"] .analysis-hero h1,
  body[data-page="verified"] .verified-hero h1,
  body[data-page="profile"] .profile-hero h1 {
    max-width: none !important;
    width: 100% !important;
    text-wrap: pretty !important;
  }

  body:not([data-page="index"]) :is(.topic-background p, .system-view-card p, .topic-background li, .system-view-card li),
  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) :is(.analysis-self-copy, .submitted-latest-copy, .verified-truth-copy, .truth-copy, .topic-story-panel p, .analysis-panel p),
  body[data-page="profile"] :is(.profile-account-meta, .profile-record-copy, .profile-chart-panel p, .account-panel p) {
    max-width: none !important;
  }

  body[data-page="index"] .lead-market-copy,
  body[data-page="index"] .lead-market-body h2,
  body[data-page="index"] .lead-market-title,
  body[data-page="index"] .lead-market-body p {
    max-width: none !important;
    width: 100% !important;
  }
}

@media (max-width: 900px) {
  body[data-page="index"] .lead-market-mobile-rail {
    display: flex !important;
    gap: 12px !important;
    overflow-x: auto !important;
    overscroll-behavior-x: contain !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 2px 0 4px !important;
  }

  body[data-page="index"] .lead-market-mobile-rail::-webkit-scrollbar {
    display: none !important;
  }

  body[data-page="index"] .lead-market-card--mobile {
    display: grid !important;
    grid-template-rows: auto auto minmax(0, 1fr) auto !important;
    flex: 0 0 min(84vw, 320px) !important;
    width: min(84vw, 320px) !important;
    min-width: min(84vw, 320px) !important;
    scroll-snap-align: start !important;
    text-decoration: none !important;
    color: inherit !important;
    gap: 8px !important;
  }

  body[data-page="index"] .lead-market-card--mobile .lead-market-body {
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: end !important;
    gap: 8px !important;
  }

  body[data-page="index"] .lead-market-card--mobile .lead-market-copy {
    gap: 0 !important;
  }

  body[data-page="index"] .lead-market-card--mobile .lead-market-body h2,
  body[data-page="index"] .lead-market-card--mobile .lead-market-title {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    min-height: calc(1.08em * 2) !important;
    max-height: calc(1.08em * 2) !important;
    font-size: clamp(15px, 5.1vw, 18px) !important;
    line-height: 1.08 !important;
  }

  body[data-page="index"] .lead-market-card--mobile .lead-market-visual img,
  body[data-page="index"] .lead-market-card--mobile .lead-market-visual [data-lead-visual] {
    aspect-ratio: 16 / 9.2 !important;
  }

  body[data-page="index"] .lead-market-card--mobile .lead-market-actions--mobile {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    min-height: 0 !important;
    gap: 0 !important;
    padding-top: 0 !important;
  }

  body[data-page="index"] .lead-market-card--mobile .lead-market-participants {
    min-height: 0 !important;
  }

  body[data-page="index"] .lead-market-card--mobile:active {
    transform: scale(0.992) !important;
  }

  body[data-page="index"] .lead-market-card {
    padding: 15px 14px 13px !important;
    gap: 9px !important;
  }

  body[data-page="index"] .lead-market-body {
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: end !important;
    gap: 8px !important;
    margin-top: 0 !important;
  }

  body[data-page="index"] .lead-market-copy {
    display: grid !important;
    gap: 0 !important;
  }

  body[data-page="index"] .lead-market-body h2,
  body[data-page="index"] .lead-market-title {
    font-size: clamp(15px, 5.2vw, 18px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.024em !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    min-height: calc(1.08em * 2) !important;
    max-height: calc(1.08em * 2) !important;
    overflow: hidden !important;
  }

  body[data-page="index"] .lead-market-body p {
    display: none !important;
  }

  body[data-page="index"] .lead-market-price {
    min-width: 74px !important;
    justify-self: end !important;
    align-self: end !important;
    gap: 1px !important;
    margin-bottom: 2px !important;
  }

  body[data-page="index"] .lead-market-price b {
    font-size: clamp(28px, 8.7vw, 34px) !important;
    line-height: 0.9 !important;
    letter-spacing: -0.045em !important;
  }

  body[data-page="index"] .lead-market-price > span {
    font-size: 10px !important;
    line-height: 1 !important;
    margin-top: 0 !important;
  }

  body[data-page="index"] .lead-market-visual img,
  body[data-page="index"] .lead-market-visual [data-lead-visual] {
    aspect-ratio: 16 / 8.9 !important;
  }

  body[data-page="index"] .lead-market-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: end !important;
    gap: 6px !important;
    min-height: 0 !important;
  }

  body[data-page="index"] .lead-market-action-meta,
  body[data-page="index"] .lead-market-action-cluster {
    min-height: 0 !important;
  }

  body[data-page="index"] .lead-market-action-cluster {
    gap: 8px !important;
    justify-self: end !important;
    align-items: center !important;
  }

  body[data-page="index"] .lead-market-participants {
    min-height: 0 !important;
    font-size: 12px !important;
    align-self: end !important;
  }

  body[data-page="index"] .lead-market-actions .btn.primary,
  body[data-page="index"] .lead-market-actions .btn.secondary {
    min-height: 36px !important;
    height: 36px !important;
    padding: 0 12px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 900px) {
  body[data-page="search"] .search-hero-stack,
  body[data-page="stage"] .stage-hero-stack {
    display: grid !important;
    gap: 14px !important;
  }

  body[data-page="search"] .search-hero-copy,
  body[data-page="stage"] .stage-hero-copy {
    display: grid !important;
    gap: 6px !important;
    justify-items: start !important;
  }

  body[data-page="search"] .search-hero-copy {
    display: none !important;
  }

  body[data-page="search"] .search-hero h1,
  body[data-page="stage"] .search-hero h1 {
    max-width: none !important;
    font-size: clamp(23px, 7.4vw, 28px) !important;
    line-height: 1.06 !important;
    letter-spacing: -0.045em !important;
    text-wrap: pretty !important;
  }

  body[data-page="search"] .search-page-query-form {
    margin-top: 0 !important;
  }

  body[data-page="search"] .search-page-query-shell {
    padding: 0 !important;
    border-radius: 16px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body[data-page="search"] .search-page-query-input {
    background: rgba(255, 255, 255, 0.045) !important;
    border: 0 !important;
    box-shadow: none !important;
    min-height: 46px !important;
    padding-inline: 14px !important;
    border-radius: 15px !important;
  }

  body[data-page="search"] .search-page-query-button {
    min-width: 72px !important;
    min-height: 46px !important;
    padding-inline: 15px !important;
    border-radius: 15px !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body[data-page="search"] .search-empty-state--idle {
    display: none !important;
  }

  body[data-page="search"] .search-empty-state {
    max-width: none !important;
    padding: 8px 2px 0 !important;
    font-size: 12.5px !important;
    line-height: 1.58 !important;
  }

  body[data-page="search"] .market-board-section,
  body[data-page="stage"] .market-board-section {
    gap: 12px !important;
  }

  body[data-page="search"] .market-board-head,
  body[data-page="stage"] .market-board-head {
    align-items: center !important;
    gap: 8px !important;
  }

  body[data-page="search"] .market-board-head > div,
  body[data-page="stage"] .market-board-head > div {
    display: grid !important;
    gap: 3px !important;
  }

  body[data-page="search"] .market-board-head h2,
  body[data-page="stage"] .market-board-head h2 {
    font-size: 13px !important;
    line-height: 1.08 !important;
    letter-spacing: 0.02em !important;
    color: rgba(195, 208, 214, 0.78) !important;
  }

  body[data-page="search"] .market-board-actions span,
  body[data-page="stage"] .market-board-actions span {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 22px !important;
    padding: 0 8px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: rgba(196, 210, 216, 0.7) !important;
    font-size: 11px !important;
    line-height: 1 !important;
  }

  body[data-page="search"] .subpage-market-grid,
  body[data-page="stage"] .subpage-market-grid {
    gap: 12px !important;
  }

  body[data-page="stage"] .search-stage-group .home-topic-card,
  body[data-page="search"] .search-stage-group .home-topic-card,
  body[data-page="search"] .subpage-market-grid .home-topic-card.market-card-grid,
  body[data-page="stage"] .subpage-market-grid .home-topic-card.market-card-grid {
    padding: 15px 14px 13px !important;
    border-radius: 20px !important;
    gap: 10px !important;
    background:
      linear-gradient(180deg, rgba(22, 29, 37, 0.98) 0%, rgba(15, 20, 27, 0.96) 100%) !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body[data-page="stage"] .search-stage-group .market-card-head,
  body[data-page="search"] .search-stage-group .market-card-head,
  body[data-page="search"] .subpage-market-grid .home-topic-card.market-card-grid .market-card-head,
  body[data-page="stage"] .subpage-market-grid .home-topic-card.market-card-grid .market-card-head {
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    gap: 14px !important;
  }

  body[data-page="stage"] .search-stage-group .home-topic-card h3,
  body[data-page="search"] .search-stage-group .home-topic-card h3,
  body[data-page="search"] .subpage-market-grid .home-topic-card.market-card-grid h3,
  body[data-page="stage"] .subpage-market-grid .home-topic-card.market-card-grid h3 {
    margin: 0 !important;
    font-size: 17px !important;
    line-height: 1.16 !important;
    min-height: calc(1.16em * 2) !important;
    max-height: calc(1.16em * 2) !important;
    -webkit-line-clamp: 2 !important;
  }

  body[data-page="stage"] .search-stage-group .tag-row,
  body[data-page="search"] .search-stage-group .tag-row,
  body[data-page="search"] .subpage-market-grid .home-topic-card.market-card-grid .tag-row,
  body[data-page="stage"] .subpage-market-grid .home-topic-card.market-card-grid .tag-row {
    gap: 6px !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body[data-page="stage"] .search-stage-group .home-topic-card p,
  body[data-page="search"] .search-stage-group .home-topic-card p,
  body[data-page="search"] .subpage-market-grid .home-topic-card.market-card-grid p,
  body[data-page="stage"] .subpage-market-grid .home-topic-card.market-card-grid p {
    font-size: 12.5px !important;
    line-height: 1.52 !important;
    min-height: calc(1.52em * 2) !important;
    max-height: calc(1.52em * 2) !important;
    color: rgba(198, 211, 216, 0.74) !important;
    -webkit-line-clamp: 2 !important;
  }

  body[data-page="stage"] .search-stage-group .market-consensus,
  body[data-page="search"] .search-stage-group .market-consensus,
  body[data-page="search"] .subpage-market-grid .market-consensus,
  body[data-page="stage"] .subpage-market-grid .market-consensus {
    gap: 2px !important;
    align-items: flex-end !important;
  }

  body[data-page="stage"] .search-stage-group .market-consensus b,
  body[data-page="search"] .search-stage-group .market-consensus b,
  body[data-page="search"] .subpage-market-grid .market-consensus b,
  body[data-page="stage"] .subpage-market-grid .market-consensus b {
    font-size: 26px !important;
    line-height: 0.92 !important;
    letter-spacing: -0.04em !important;
  }

  body[data-page="stage"] .search-stage-group .market-consensus [data-topic-metric-slot][data-topic-metric="confidence"],
  body[data-page="stage"] .search-stage-group .market-consensus [data-topic-metric-slot][data-topic-metric="confidence"] .lead-roll-item--metric,
  body[data-page="stage"] .search-stage-group .market-consensus [data-topic-metric-slot][data-topic-metric="confidence"] .metric-roll,
  body[data-page="stage"] .search-stage-group .market-consensus [data-topic-metric-slot][data-topic-metric="confidence"] .metric-char,
  body[data-page="stage"] .search-stage-group .market-consensus [data-topic-metric-slot][data-topic-metric="confidence"] .metric-digit,
  body[data-page="stage"] .search-stage-group .market-consensus [data-topic-metric-slot][data-topic-metric="confidence"] .metric-digit-face,
  body[data-page="stage"] .search-stage-group .market-consensus [data-topic-metric-slot][data-topic-metric="confidence"] .metric-separator,
  body[data-page="search"] .search-stage-group .market-consensus [data-topic-metric-slot][data-topic-metric="confidence"],
  body[data-page="search"] .search-stage-group .market-consensus [data-topic-metric-slot][data-topic-metric="confidence"] .lead-roll-item--metric,
  body[data-page="search"] .search-stage-group .market-consensus [data-topic-metric-slot][data-topic-metric="confidence"] .metric-roll,
  body[data-page="search"] .search-stage-group .market-consensus [data-topic-metric-slot][data-topic-metric="confidence"] .metric-char,
  body[data-page="search"] .search-stage-group .market-consensus [data-topic-metric-slot][data-topic-metric="confidence"] .metric-digit,
  body[data-page="search"] .search-stage-group .market-consensus [data-topic-metric-slot][data-topic-metric="confidence"] .metric-digit-face,
  body[data-page="search"] .search-stage-group .market-consensus [data-topic-metric-slot][data-topic-metric="confidence"] .metric-separator,
  body[data-page="search"] .subpage-market-grid .market-consensus [data-topic-metric-slot][data-topic-metric="confidence"],
  body[data-page="search"] .subpage-market-grid .market-consensus [data-topic-metric-slot][data-topic-metric="confidence"] .lead-roll-item--metric,
  body[data-page="search"] .subpage-market-grid .market-consensus [data-topic-metric-slot][data-topic-metric="confidence"] .metric-roll,
  body[data-page="search"] .subpage-market-grid .market-consensus [data-topic-metric-slot][data-topic-metric="confidence"] .metric-char,
  body[data-page="search"] .subpage-market-grid .market-consensus [data-topic-metric-slot][data-topic-metric="confidence"] .metric-digit,
  body[data-page="search"] .subpage-market-grid .market-consensus [data-topic-metric-slot][data-topic-metric="confidence"] .metric-digit-face,
  body[data-page="search"] .subpage-market-grid .market-consensus [data-topic-metric-slot][data-topic-metric="confidence"] .metric-separator,
  body[data-page="stage"] .subpage-market-grid .market-consensus [data-topic-metric-slot][data-topic-metric="confidence"],
  body[data-page="stage"] .subpage-market-grid .market-consensus [data-topic-metric-slot][data-topic-metric="confidence"] .lead-roll-item--metric,
  body[data-page="stage"] .subpage-market-grid .market-consensus [data-topic-metric-slot][data-topic-metric="confidence"] .metric-roll,
  body[data-page="stage"] .subpage-market-grid .market-consensus [data-topic-metric-slot][data-topic-metric="confidence"] .metric-char,
  body[data-page="stage"] .subpage-market-grid .market-consensus [data-topic-metric-slot][data-topic-metric="confidence"] .metric-digit,
  body[data-page="stage"] .subpage-market-grid .market-consensus [data-topic-metric-slot][data-topic-metric="confidence"] .metric-digit-face,
  body[data-page="stage"] .subpage-market-grid .market-consensus [data-topic-metric-slot][data-topic-metric="confidence"] .metric-separator {
    font-size: 26px !important;
    font-weight: 900 !important;
    line-height: 0.92 !important;
  }

  body[data-page="stage"] .search-stage-group .market-consensus span,
  body[data-page="search"] .search-stage-group .market-consensus span,
  body[data-page="search"] .subpage-market-grid .market-consensus span,
  body[data-page="stage"] .subpage-market-grid .market-consensus span {
    font-size: 10px !important;
    line-height: 1.1 !important;
  }

  body[data-page="stage"] .search-stage-group .market-meta-line,
  body[data-page="search"] .search-stage-group .market-meta-line,
  body[data-page="search"] .subpage-market-grid .home-topic-card.market-card-grid .market-meta-line,
  body[data-page="stage"] .subpage-market-grid .home-topic-card.market-card-grid .market-meta-line {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: end !important;
    gap: 10px !important;
    margin-top: auto !important;
  }

  body[data-page="stage"] .search-stage-group .market-meta-primary,
  body[data-page="search"] .search-stage-group .market-meta-primary,
  body[data-page="search"] .subpage-market-grid .market-meta-primary,
  body[data-page="stage"] .subpage-market-grid .market-meta-primary {
    display: grid !important;
    gap: 4px !important;
    justify-items: start !important;
  }

  body[data-page="stage"] .search-stage-group .market-meta-primary > span,
  body[data-page="search"] .search-stage-group .market-meta-primary > span,
  body[data-page="search"] .subpage-market-grid .market-meta-primary > span,
  body[data-page="stage"] .subpage-market-grid .market-meta-primary > span {
    font-size: 11.5px !important;
    line-height: 1.35 !important;
  }

  body[data-page="stage"] .search-stage-group .market-card-action,
  body[data-page="search"] .search-stage-group .market-card-action,
  body[data-page="search"] .subpage-market-grid .home-topic-card.market-card-grid .market-card-action,
  body[data-page="stage"] .subpage-market-grid .home-topic-card.market-card-grid .market-card-action {
    min-height: 34px !important;
    padding: 0 13px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
  }

  body[data-page="stage"] .search-stage-group .home-topic-card[data-card-primary-href],
  body[data-page="search"] .search-stage-group .home-topic-card[data-card-primary-href],
  body[data-page="search"] .subpage-market-grid .home-topic-card.market-card-grid[data-card-primary-href],
  body[data-page="stage"] .subpage-market-grid .home-topic-card.market-card-grid[data-card-primary-href] {
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  body[data-page="stage"] .search-stage-group .market-card-action,
  body[data-page="search"] .search-stage-group .market-card-action,
  body[data-page="search"] .subpage-market-grid .home-topic-card.market-card-grid .market-card-action,
  body[data-page="stage"] .subpage-market-grid .home-topic-card.market-card-grid .market-card-action {
    display: none !important;
  }

  body[data-page="stage"] .search-stage-group .market-action-cluster,
  body[data-page="search"] .search-stage-group .market-action-cluster,
  body[data-page="search"] .subpage-market-grid .home-topic-card.market-card-grid .market-action-cluster,
  body[data-page="stage"] .subpage-market-grid .home-topic-card.market-card-grid .market-action-cluster {
    justify-content: flex-end !important;
    gap: 8px !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .layout {
    gap: 18px !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .page-backbar {
    margin-bottom: 4px !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .page-backbar .btn {
    font-size: 12px !important;
    color: rgba(193, 207, 214, 0.66) !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .analysis-hero,
  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .verified-hero {
    gap: 12px !important;
    padding: 2px 0 0 !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) :is(.analysis-hero, .verified-hero) h1 {
    font-size: clamp(22px, 6.9vw, 27px) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.045em !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .verified-summary {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px 18px !important;
    margin-top: 2px !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .verified-summary-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .verified-summary-label {
    font-size: 10.5px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .verified-summary-value {
    font-size: 12.5px !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) :is(.topic-story-panel, .analysis-truth-panel, .analysis-self-panel, .submitted-latest-panel, .verified-ranking-panel) {
    display: grid !important;
    gap: 12px !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) :is(.topic-story-panel, .analysis-truth-panel, .analysis-self-panel, .submitted-latest-panel, .verified-ranking-panel) .section-heading,
  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) :is(.topic-story-panel, .analysis-truth-panel, .analysis-self-panel, .submitted-latest-panel, .verified-ranking-panel) .verified-section-header {
    gap: 5px !important;
    margin-bottom: 2px !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) :is(.topic-story-panel, .analysis-truth-panel, .analysis-self-panel, .submitted-latest-panel, .verified-ranking-panel) .section-heading h2,
  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) :is(.topic-story-panel, .analysis-truth-panel, .analysis-self-panel, .submitted-latest-panel, .verified-ranking-panel) .verified-section-header h2 {
    font-size: 14px !important;
    line-height: 1.08 !important;
    letter-spacing: -0.02em !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .topic-background-visual-wrap {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 16 / 9 !important;
    margin-top: 4px !important;
    border-radius: 18px !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .topic-background-visual {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: cover !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) :is(.topic-story-panel p, .analysis-panel p, .verified-self-prediction-copy, .submitted-latest-copy, .verified-truth-copy) {
    font-size: 13px !important;
    line-height: 1.62 !important;
    color: rgba(201, 214, 219, 0.82) !important;
  }

  body:is([data-page="analysis"], [data-page="submitted"], [data-page="verified"]) :is(.consensus-highlight, .outcome-highlight) {
    font-size: clamp(19px, 5.7vw, 22px) !important;
    line-height: 1.36 !important;
    letter-spacing: -0.03em !important;
  }
}

@media (max-width: 640px) {
  body[data-page="search"] .search-hero h1,
  body[data-page="stage"] .search-hero h1 {
    font-size: clamp(22px, 7.8vw, 26px) !important;
  }

  body[data-page="search"] .search-hero {
    gap: 6px !important;
    padding-bottom: 0 !important;
  }

  body[data-page="search"] .search-page-query-form {
    margin-top: 0 !important;
  }

  body[data-page="search"] .search-page-query-shell {
    gap: 8px !important;
    align-items: center !important;
  }

  body[data-page="search"] .search-page-query-button {
    min-width: 64px !important;
    padding-inline: 14px !important;
  }

  body[data-page="stage"] .search-stage-group .home-topic-card,
  body[data-page="search"] .search-stage-group .home-topic-card,
  body[data-page="search"] .subpage-market-grid .home-topic-card.market-card-grid,
  body[data-page="stage"] .subpage-market-grid .home-topic-card.market-card-grid {
    padding: 14px 13px 12px !important;
    border-radius: 18px !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .topic-background-visual-wrap {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 16px !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .topic-background-visual {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: cover !important;
  }
}

@media (max-width: 900px) {
  body:is([data-page="analysis"], [data-page="submitted"]) .verified-truth-panel .section-heading h2 {
    margin: 0 0 1px !important;
    line-height: 1 !important;
  }

  body:is([data-page="analysis"], [data-page="submitted"]) .verified-truth-panel .verified-accuracy-badge > span {
    line-height: 1 !important;
  }
}

@media (max-width: 900px) {
  body[data-page="submit-step1"] :is(.analysis-panel.verified-background-panel, .verified-background-panel) .topic-background-visual-wrap,
  body[data-page="analysis"] .verified-focus-grid > .analysis-panel.topic-story-panel .topic-background-visual-wrap,
  body[data-page="submitted"] .verified-focus-grid > .analysis-panel.topic-story-panel .topic-background-visual-wrap,
  body[data-page="verified"] .analysis-focus-grid > .analysis-panel.topic-story-panel .topic-background-visual-wrap {
    display: block !important;
    width: 100% !important;
    flex: 0 0 auto !important;
    align-self: auto !important;
    aspect-ratio: 16 / 9 !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
  }

  body[data-page="submit-step1"] :is(.analysis-panel.verified-background-panel, .verified-background-panel) .topic-background-visual,
  body[data-page="analysis"] .verified-focus-grid > .analysis-panel.topic-story-panel .topic-background-visual,
  body[data-page="submitted"] .verified-focus-grid > .analysis-panel.topic-story-panel .topic-background-visual,
  body[data-page="verified"] .analysis-focus-grid > .analysis-panel.topic-story-panel .topic-background-visual {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
}

@media (max-width: 640px) {
  body[data-page="submit-step1"] :is(.analysis-panel.verified-background-panel, .verified-background-panel) .topic-background-visual-wrap,
  body[data-page="analysis"] .verified-focus-grid > .analysis-panel.topic-story-panel .topic-background-visual-wrap,
  body[data-page="submitted"] .verified-focus-grid > .analysis-panel.topic-story-panel .topic-background-visual-wrap,
  body[data-page="verified"] .analysis-focus-grid > .analysis-panel.topic-story-panel .topic-background-visual-wrap {
    border-radius: 16px !important;
  }
}

@media (max-width: 900px) {
  body[data-page="profile"] .profile-updates-heading,
  body[data-page="profile"] .profile-records-heading {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    justify-content: stretch !important;
    gap: 12px !important;
    width: 100% !important;
    text-align: left !important;
  }

  body[data-page="profile"] .profile-updates-heading h2,
  body[data-page="profile"] .profile-records-heading h2 {
    margin: 0 !important;
    justify-self: start !important;
    text-align: left !important;
  }

  body[data-page="profile"] .profile-updates-heading .setting-inline-action {
    justify-self: end !important;
    margin-left: 0 !important;
    white-space: nowrap !important;
  }

  body[data-page="profile"] .profile-records-heading > div:first-child {
    width: auto !important;
    min-width: 0 !important;
  }

  body[data-page="profile"] .profile-records-heading .filter-tabs.filter-tabs--profile {
    justify-self: end !important;
    margin: 0 !important;
    width: auto !important;
    min-width: max-content !important;
  }
}

body[data-page="profile"] .profile-updates-heading-row,
body[data-page="profile"] .profile-records-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
}

body[data-page="profile"] .profile-updates-heading-row {
  margin-bottom: 10px;
}

body[data-page="profile"] .profile-records-heading-row {
  margin-bottom: 6px;
}

body[data-page="profile"] .profile-updates-heading-row h2,
body[data-page="profile"] .profile-records-heading-row h2 {
  margin: 0;
  justify-self: start;
  text-align: left;
}

body[data-page="profile"] .profile-updates-heading-row .setting-inline-action,
body[data-page="profile"] .profile-records-heading-row .filter-tabs.filter-tabs--profile {
  justify-self: end;
}

@media (max-width: 900px) {
  body[data-page="profile"] .profile-updates-heading-row,
  body[data-page="profile"] .profile-records-heading-row {
    gap: 12px;
  }

  body[data-page="profile"] .profile-updates-heading-row .setting-inline-action {
    margin-left: 0;
    white-space: nowrap;
  }

  body[data-page="profile"] .profile-records-heading-row > div:first-child {
    min-width: 0;
    width: auto;
  }

  body[data-page="profile"] .profile-records-heading-row .filter-tabs.filter-tabs--profile {
    margin: 0;
    width: auto;
    min-width: max-content;
  }

  body[data-page="profile"] .profile-records-heading-row .filter-tabs.filter-tabs--profile button,
  body[data-page="profile"] .profile-records-heading-row .filter-tabs.filter-tabs--profile button.is-active,
  body[data-page="profile"] .profile-records-heading-row .filter-tabs.filter-tabs--profile button[aria-pressed="true"] {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
  }

  body[data-page="profile"] .profile-record-grid .home-topic-card,
  body[data-page="profile"] .profile-record-grid .home-topic-card.market-card-record {
    background:
      linear-gradient(180deg, rgba(22, 29, 37, 0.98) 0%, rgba(15, 20, 27, 0.96) 100%) !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body[data-page="profile"] .profile-record-grid .home-topic-card[data-card-primary-href] {
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  body[data-page="profile"] .profile-record-grid .market-action-cluster,
  body[data-page="profile"] .profile-record-grid .market-card-action,
  body[data-page="profile"] .profile-record-grid .market-admin-manage {
    display: none !important;
  }
}

@media (max-width: 900px) {
  body[data-page="profile"] .profile-record-pagination {
    gap: 8px !important;
    margin-top: 12px !important;
    padding-top: 10px !important;
    border-top: 0 !important;
  }

  body[data-page="profile"] .profile-record-pagination-summary {
    display: none !important;
  }

  body[data-page="profile"] .profile-record-pagination-controls {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    overflow: hidden !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body[data-page="profile"] .profile-record-pagination-controls::-webkit-scrollbar {
    display: none !important;
  }

  body[data-page="profile"] .profile-record-page-list {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    flex-wrap: nowrap !important;
  }

  body[data-page="profile"] .profile-record-page-list::-webkit-scrollbar {
    display: none !important;
  }

  body[data-page="profile"] .profile-record-nav-button,
  body[data-page="profile"] .profile-record-page-button {
    flex: 0 0 auto !important;
    min-height: 32px !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body[data-page="profile"] .profile-record-nav-button {
    padding: 0 12px !important;
  }

  body[data-page="profile"] .profile-record-page-button {
    width: 32px !important;
    min-width: 32px !important;
  }

  body[data-page="profile"] .profile-hero .eyebrow,
  body[data-page="profile"] .profile-hero [data-profile-eyebrow],
  body[data-page="profile"] .profile-account-label {
    display: none !important;
  }

  body[data-page="profile"] .profile-account-head {
    width: 100% !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body[data-page="profile"] .profile-identity {
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr) !important;
    grid-template-areas:
      "avatar copy"
      "actions actions" !important;
    gap: 11px 14px !important;
    align-items: center !important;
  }

  body[data-page="profile"] .profile-avatar {
    grid-area: avatar !important;
    width: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
  }

  body[data-page="profile"] .profile-identity-main {
    display: contents !important;
  }

  body[data-page="profile"] .profile-identity-topline {
    grid-area: copy !important;
    align-self: center !important;
    gap: 5px !important;
    min-width: 0 !important;
  }

  body[data-page="profile"] .profile-hero h1 {
    font-size: clamp(26px, 8.2vw, 32px) !important;
    line-height: 0.96 !important;
  }

  body[data-page="profile"] .profile-identity-actions {
    grid-area: actions !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
    width: 100% !important;
  }

  body[data-page="profile"] .profile-inline-action,
  body[data-page="profile"] .profile-inline-action:last-child {
    grid-column: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 32px !important;
    padding-inline: 6px !important;
    border-radius: 999px !important;
    font-size: 11.5px !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body[data-page="profile"] .account-setting-list .setting-row {
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
  }

  body[data-page="profile"] .account-setting-list .setting-row-main,
  body[data-page="profile"] .account-setting-list .setting-row-toggle {
    width: auto !important;
    min-width: max-content !important;
    justify-content: flex-end !important;
    justify-self: end !important;
    flex-wrap: nowrap !important;
  }

  body[data-page="profile"] .account-security-control-list .setting-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, auto) auto !important;
    align-items: center !important;
    column-gap: 8px !important;
    row-gap: 0 !important;
  }

  body[data-page="profile"] .account-security-control-list .setting-row-main {
    display: contents !important;
  }

  body[data-page="profile"] .account-security-control-list .setting-row-main b {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    width: auto !important;
    max-width: min(46vw, 170px) !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: right !important;
  }

  body[data-page="profile"] .account-security-control-list .setting-inline-action {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    align-self: center !important;
  }

  body[data-page="profile"] .account-privacy-control-list .setting-row {
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
  }

  body[data-page="profile"] .account-privacy-control-list .setting-row-main {
    width: auto !important;
    min-width: max-content !important;
    justify-content: flex-end !important;
    justify-self: end !important;
    flex-wrap: nowrap !important;
  }
}

@media (max-width: 900px) {
  .market-topbar .topbar-language .language-switch {
    width: 36px !important;
    min-width: 36px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.035) !important;
  }

  .market-topbar .topbar-language .language-icon {
    display: inline-flex !important;
    width: 16px !important;
    height: 16px !important;
    color: rgba(232, 244, 248, 0.9) !important;
  }

  .market-topbar .topbar-language .language-icon svg {
    width: 100% !important;
    height: 100% !important;
  }

  .market-topbar .topbar-language .language-code,
  .market-topbar .topbar-language .language-code::before,
  .market-topbar .topbar-language .language-caret {
    display: none !important;
  }

  .market-topbar .topbar-language .language-dropdown {
    left: auto !important;
    right: 0 !important;
    min-width: 144px !important;
    transform-origin: top right !important;
  }

  body[data-page="index"] .market-topbar .topbar-language .language-icon,
  body.has-mobile-dock:not([data-page="index"]) .market-topbar.subpage-topbar .topbar-language .language-icon {
    display: inline-flex !important;
    width: 16px !important;
    height: 16px !important;
    color: rgba(232, 244, 248, 0.9) !important;
  }

  body[data-page="index"] .market-topbar .topbar-language .language-code,
  body[data-page="index"] .market-topbar .topbar-language .language-code::before,
  body[data-page="index"] .market-topbar .topbar-language .language-caret,
  body.has-mobile-dock:not([data-page="index"]) .market-topbar.subpage-topbar .topbar-language .language-code,
  body.has-mobile-dock:not([data-page="index"]) .market-topbar.subpage-topbar .topbar-language .language-code::before,
  body.has-mobile-dock:not([data-page="index"]) .market-topbar.subpage-topbar .topbar-language .language-caret {
    display: none !important;
  }
}

@media (max-width: 900px) {
  body[data-page="stage"] .stage-page-hero {
    padding-bottom: 8px !important;
  }

  body[data-page="stage"] .stage-hero-stack {
    width: 100% !important;
    display: block !important;
  }

  body[data-page="stage"] .stage-hero-copy {
    display: none !important;
  }

  body[data-page="stage"] .stage-group-switch {
    position: relative !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 4px !important;
    gap: 0 !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
  }

  body[data-page="stage"] .stage-group-indicator {
    position: absolute !important;
    top: 4px !important;
    bottom: 4px !important;
    left: 4px !important;
    width: calc((100% - 8px) / 2) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    pointer-events: none !important;
    z-index: 0 !important;
    transform: translateX(0) !important;
    transition: transform 180ms linear !important;
  }

  body[data-page="stage"] .stage-group-switch[data-stage-group="verified"] .stage-group-indicator {
    transform: translateX(100%) !important;
  }

  body[data-page="stage"] .stage-group-pill {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    min-height: 34px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: rgba(205, 216, 222, 0.72) !important;
    box-shadow: none !important;
    text-align: center !important;
  }

  body[data-page="stage"] .stage-group-pill.is-active,
  body[data-page="stage"] .stage-group-pill[aria-current="page"],
  body[data-page="stage"] .stage-group-pill:hover,
  body[data-page="stage"] .stage-group-pill:focus-visible {
    background: transparent !important;
    color: rgba(241, 248, 250, 0.96) !important;
    box-shadow: none !important;
  }
}

@media (max-width: 900px) {
  body[data-page="search"] .search-hero-copy,
  body[data-page="search"] .search-hero h1,
  body[data-page="search"] .search-hero p {
    display: none !important;
  }

  body[data-page="search"] .search-hero,
  body[data-page="search"] .subpage-hero {
    padding-bottom: 4px !important;
  }

  body[data-page="search"] .search-hero-stack {
    display: block !important;
  }

  body[data-page="search"] .search-page-query-form {
    margin: 0 !important;
  }

  body[data-page="search"] .search-page-query-shell {
    grid-template-columns: minmax(0, 1fr) auto !important;
    padding: 4px !important;
    gap: 4px !important;
    align-items: center !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.045) !important;
    box-shadow: none !important;
  }

  body[data-page="search"] .search-page-query-input {
    min-height: 40px !important;
    padding-inline: 12px 8px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 14px !important;
  }

  body[data-page="search"] .search-page-query-button {
    min-width: 54px !important;
    min-height: 36px !important;
    padding-inline: 12px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--accent) !important;
    color: rgba(4, 21, 27, 0.96) !important;
    box-shadow: none !important;
    font-size: 12px !important;
    font-weight: 900 !important;
  }
}

@media (max-width: 900px) {
  body[data-page="profile"] .profile-record-grid .home-topic-card.market-card-record {
    background:
      linear-gradient(180deg, rgba(22, 29, 37, 0.98) 0%, rgba(15, 20, 27, 0.96) 100%) !important;
    border: 0 !important;
    box-shadow: none !important;
  }
}

@media (max-width: 900px) {
  body:is([data-page="stage"], [data-page="search"]) .stage-page-footer {
    display: block !important;
    margin-top: 12px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body:is([data-page="stage"], [data-page="search"]) .stage-page-footer > span {
    display: none !important;
  }

  body:is([data-page="stage"], [data-page="search"]) .stage-pagination {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body:is([data-page="stage"], [data-page="search"]) .stage-page-numbers {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 2px !important;
    scroll-snap-type: x proximity !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  body:is([data-page="stage"], [data-page="search"]) .stage-page-numbers::-webkit-scrollbar {
    display: none !important;
  }

  body:is([data-page="stage"], [data-page="search"]) .stage-pagination .btn {
    min-width: max-content !important;
    min-height: 34px !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    color: rgba(221, 231, 235, 0.82) !important;
    box-shadow: none !important;
    font-size: 12px !important;
  }

  body:is([data-page="stage"], [data-page="search"]) .stage-page-number {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    color: rgba(221, 231, 235, 0.82) !important;
    box-shadow: none !important;
    scroll-snap-align: center !important;
  }

  body:is([data-page="stage"], [data-page="search"]) .stage-page-number.is-active {
    color: var(--text) !important;
    background: rgba(107, 215, 228, 0.12) !important;
    transform: none !important;
  }
}

@media (max-width: 900px) {
  body[data-page="index"] .signal-rank-panel :is(.rank-system-tabs, .rank-tabs) {
    position: relative !important;
    display: grid !important;
    gap: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 4px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  body[data-page="index"] .signal-rank-panel .rank-system-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body[data-page="index"] .signal-rank-panel .rank-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body[data-page="index"] .signal-rank-panel .rank-tab-indicator {
    top: 4px !important;
    bottom: 4px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body[data-page="index"] .signal-rank-panel .rank-tab {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    min-height: 34px !important;
    padding: 0 10px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: rgba(205, 216, 222, 0.72) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
  }

  body[data-page="index"] .signal-rank-panel .rank-tab.is-active,
  body[data-page="index"] .signal-rank-panel .rank-tab:hover,
  body[data-page="index"] .signal-rank-panel .rank-tab:focus-visible {
    background: transparent !important;
    color: rgba(241, 248, 250, 0.96) !important;
    box-shadow: none !important;
  }
}

body[data-page="profile"] .profile-updates-panel {
  grid-column: 1;
}

body[data-page="profile"] .profile-records-panel {
  grid-column: 1;
}

body[data-page="profile"] .profile-right-rail {
  grid-column: 2;
  grid-row: 1 / span 2;
}

@media (max-width: 1180px) {
  body[data-page="profile"] .profile-updates-panel,
  body[data-page="profile"] .profile-records-panel,
  body[data-page="profile"] .profile-right-rail {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

@media (max-width: 900px) {
  body[data-page="profile"] :is(.profile-updates-panel, .profile-records-panel) {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body[data-page="profile"] .profile-updates-panel {
    margin: 0 0 24px !important;
    gap: 12px !important;
  }

  body[data-page="profile"] .profile-records-panel {
    display: grid !important;
    gap: 12px !important;
  }

  body[data-page="profile"] .profile-updates-heading-row,
  body[data-page="profile"] .profile-records-heading-row {
    margin: 0 !important;
  }

  body[data-page="profile"] .profile-updates-heading-row h2,
  body[data-page="profile"] .profile-records-heading-row h2 {
    font-size: 17px !important;
    line-height: 1.05 !important;
    letter-spacing: -0.025em !important;
  }

  body[data-page="profile"] .profile-update-list {
    gap: 10px !important;
  }

  body[data-page="profile"] .profile-record-list {
    display: grid !important;
    gap: 12px !important;
  }

  body[data-page="profile"] .profile-record-grid {
    margin-top: 0 !important;
  }
}

@media (max-width: 900px) {
  :is(.account-nickname-modal, .account-security-modal, .account-avatar-modal, .account-delete-modal) {
    align-items: start !important;
    padding: max(12px, env(safe-area-inset-top)) 12px max(18px, env(safe-area-inset-bottom)) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  :is(.account-nickname-modal, .account-security-modal, .account-avatar-modal, .account-delete-modal) .auth-modal-card {
    width: min(100%, 372px) !important;
    max-height: calc(100svh - 28px) !important;
    padding: 18px !important;
    gap: 12px !important;
    border-radius: 22px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
  }

  :is(.account-nickname-modal, .account-security-modal, .account-avatar-modal, .account-delete-modal) .auth-modal-head {
    padding-right: 28px !important;
  }

  :is(.account-nickname-modal, .account-security-modal, .account-avatar-modal, .account-delete-modal) .auth-modal-head h3 {
    margin-top: 4px !important;
    font-size: clamp(23px, 7vw, 30px) !important;
    line-height: 1 !important;
  }

  :is(.account-nickname-modal, .account-security-modal, .account-avatar-modal, .account-delete-modal) .auth-modal-copy {
    margin: 0 !important;
    font-size: 12.5px !important;
    line-height: 1.55 !important;
  }

  :is(.account-nickname-modal, .account-security-modal, .account-avatar-modal, .account-delete-modal) .auth-modal-form {
    gap: 12px !important;
  }

  :is(.account-nickname-modal, .account-security-modal, .account-avatar-modal, .account-delete-modal) .auth-modal-field {
    gap: 7px !important;
  }

  :is(.account-nickname-modal, .account-security-modal, .account-avatar-modal, .account-delete-modal) :is(.auth-modal-field input, .auth-modal-field select, .auth-modal-display-value) {
    min-height: 42px !important;
    border-radius: 13px !important;
    padding-inline: 12px !important;
  }

  :is(.account-nickname-modal, .account-security-modal, .account-avatar-modal, .account-delete-modal) .auth-modal-inline-row,
  :is(.account-nickname-modal, .account-security-modal, .account-avatar-modal, .account-delete-modal) .auth-modal-phone-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  :is(.account-nickname-modal, .account-security-modal, .account-avatar-modal, .account-delete-modal) .auth-modal-code-action {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
  }

  :is(.account-nickname-modal, .account-security-modal, .account-avatar-modal, .account-delete-modal) .auth-modal-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  :is(.account-nickname-modal, .account-security-modal, .account-avatar-modal, .account-delete-modal) .auth-modal-actions .btn {
    width: 100% !important;
    min-height: 42px !important;
    padding-inline: 10px !important;
  }

  .account-avatar-modal .account-avatar-stage--editor {
    --account-avatar-crop-size: min(54vw, 188px) !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    gap: 12px !important;
    padding: 12px !important;
    border-radius: 18px !important;
  }

  .account-avatar-modal .account-avatar-editor,
  .account-avatar-modal .account-avatar-crop-shell,
  .account-avatar-modal .account-avatar-zoom-row {
    width: var(--account-avatar-crop-size) !important;
  }

  .account-avatar-modal .account-avatar-crop-viewport {
    border-radius: 18px !important;
  }

  .account-avatar-modal .account-avatar-crop-ring {
    inset: 12px !important;
    border-radius: 20px !important;
  }

  .account-avatar-modal .account-avatar-side {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
    min-height: 0 !important;
    align-items: center !important;
    text-align: left !important;
  }

  .account-avatar-modal .account-avatar-side-main {
    gap: 7px !important;
  }

  .account-avatar-modal .account-avatar-preview-shell--crop,
  .account-avatar-modal .account-avatar-preview-canvas,
  .account-avatar-modal .account-avatar-preview--editor.profile-avatar {
    width: 74px !important;
    min-width: 74px !important;
    max-width: 74px !important;
    height: 74px !important;
    min-height: 74px !important;
    max-height: 74px !important;
  }

  .account-avatar-modal .account-avatar-side-copy {
    justify-items: start !important;
    gap: 5px !important;
  }

  .account-avatar-modal .account-avatar-side-copy p {
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  .account-avatar-modal .account-avatar-picker-row {
    justify-content: stretch !important;
  }

  .account-avatar-modal .account-avatar-picker-row .btn {
    width: 100% !important;
  }
}

@media (max-width: 900px) {
  body[data-page="index"] .lead-market-card--mobile .lead-market-visual {
    margin-block: 5px 7px !important;
  }

  body[data-page="index"] .lead-market-card--mobile {
    gap: 10px !important;
  }
}

@media (max-width: 900px) {
  .prediction-modal.auth-modal:not(.account-nickname-modal):not(.account-security-modal):not(.account-avatar-modal):not(.account-delete-modal):not(.admin-topic-editor-modal) {
    place-items: center !important;
    padding: max(18px, env(safe-area-inset-top)) 12px max(22px, env(safe-area-inset-bottom)) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .prediction-modal.auth-modal:not(.account-nickname-modal):not(.account-security-modal):not(.account-avatar-modal):not(.account-delete-modal):not(.admin-topic-editor-modal) .auth-modal-card {
    width: min(100%, 372px) !important;
    max-height: calc(100svh - 26px) !important;
    padding: 18px !important;
    gap: 12px !important;
    border-radius: 22px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    transform: translateY(-6vh) scale(0.98) !important;
  }

  .prediction-modal.auth-modal.is-visible:not(.account-nickname-modal):not(.account-security-modal):not(.account-avatar-modal):not(.account-delete-modal):not(.admin-topic-editor-modal) .auth-modal-card {
    transform: translateY(-6vh) scale(1) !important;
  }

  .prediction-modal.auth-modal.forgot-password-modal {
    place-items: center !important;
  }

  .prediction-modal.auth-modal.forgot-password-modal .auth-modal-card {
    transform: translateY(-9vh) scale(0.98) !important;
  }

  .prediction-modal.auth-modal.is-visible.forgot-password-modal .auth-modal-card {
    transform: translateY(-9vh) scale(1) !important;
  }

  .prediction-modal.auth-modal:not(.account-nickname-modal):not(.account-security-modal):not(.account-avatar-modal):not(.account-delete-modal):not(.admin-topic-editor-modal) .auth-modal-head {
    padding-right: 28px !important;
  }

  .prediction-modal.auth-modal:not(.account-nickname-modal):not(.account-security-modal):not(.account-avatar-modal):not(.account-delete-modal):not(.admin-topic-editor-modal) .auth-modal-head .eyebrow {
    display: none !important;
  }

  .prediction-modal.auth-modal:not(.account-nickname-modal):not(.account-security-modal):not(.account-avatar-modal):not(.account-delete-modal):not(.admin-topic-editor-modal) .auth-modal-head h3 {
    margin: 2px 0 0 !important;
    font-size: clamp(25px, 7.2vw, 32px) !important;
    line-height: 1 !important;
    letter-spacing: -0.04em !important;
  }

  .prediction-modal.auth-modal:not(.account-nickname-modal):not(.account-security-modal):not(.account-avatar-modal):not(.account-delete-modal):not(.admin-topic-editor-modal) .auth-modal-copy {
    margin: -2px 0 0 !important;
    font-size: 12.5px !important;
    line-height: 1.55 !important;
  }

  .prediction-modal.auth-modal:not(.account-nickname-modal):not(.account-security-modal):not(.account-avatar-modal):not(.account-delete-modal):not(.admin-topic-editor-modal) .auth-modal-form {
    gap: 11px !important;
  }

  .prediction-modal.auth-modal:not(.account-nickname-modal):not(.account-security-modal):not(.account-avatar-modal):not(.account-delete-modal):not(.admin-topic-editor-modal) .auth-modal-method-tabs {
    gap: 6px !important;
    padding: 4px !important;
  }

  .prediction-modal.auth-modal:not(.account-nickname-modal):not(.account-security-modal):not(.account-avatar-modal):not(.account-delete-modal):not(.admin-topic-editor-modal) .auth-modal-method-indicator {
    width: calc(50% - 7px) !important;
  }

  .prediction-modal.auth-modal:not(.account-nickname-modal):not(.account-security-modal):not(.account-avatar-modal):not(.account-delete-modal):not(.admin-topic-editor-modal) .auth-modal-method-tabs--phone .auth-modal-method-indicator {
    transform: translateX(calc(100% + 6px)) !important;
  }

  .prediction-modal.auth-modal:not(.account-nickname-modal):not(.account-security-modal):not(.account-avatar-modal):not(.account-delete-modal):not(.admin-topic-editor-modal) .auth-modal-method-tab {
    min-height: 34px !important;
    padding-inline: 8px !important;
    font-size: 11.5px !important;
  }

  .prediction-modal.auth-modal:not(.account-nickname-modal):not(.account-security-modal):not(.account-avatar-modal):not(.account-delete-modal):not(.admin-topic-editor-modal) .auth-modal-field {
    gap: 6px !important;
    font-size: 12.5px !important;
  }

  .prediction-modal.auth-modal:not(.account-nickname-modal):not(.account-security-modal):not(.account-avatar-modal):not(.account-delete-modal):not(.admin-topic-editor-modal) :is(.auth-modal-field input, .auth-modal-field select, .auth-modal-country-trigger) {
    min-height: 42px !important;
    border-radius: 13px !important;
    padding-inline: 12px !important;
  }

  .prediction-modal.auth-modal:not(.account-nickname-modal):not(.account-security-modal):not(.account-avatar-modal):not(.account-delete-modal):not(.admin-topic-editor-modal) .auth-modal-phone-row {
    grid-template-columns: minmax(96px, 0.32fr) minmax(0, 1fr) !important;
    gap: 9px !important;
  }

  .prediction-modal.auth-modal:not(.account-nickname-modal):not(.account-security-modal):not(.account-avatar-modal):not(.account-delete-modal):not(.admin-topic-editor-modal) .auth-modal-inline-row {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 9px !important;
    align-items: end !important;
  }

  .prediction-modal.auth-modal:not(.account-nickname-modal):not(.account-security-modal):not(.account-avatar-modal):not(.account-delete-modal):not(.admin-topic-editor-modal) .auth-modal-code-action {
    width: auto !important;
    min-width: 104px !important;
    min-height: 42px !important;
    padding-inline: 12px !important;
  }

  .prediction-modal.auth-modal:not(.account-nickname-modal):not(.account-security-modal):not(.account-avatar-modal):not(.account-delete-modal):not(.admin-topic-editor-modal) .auth-modal-country-dropdown {
    width: 124px !important;
    max-width: 124px !important;
    max-height: min(224px, calc(100svh - 240px)) !important;
  }

  .prediction-modal.auth-modal:not(.account-nickname-modal):not(.account-security-modal):not(.account-avatar-modal):not(.account-delete-modal):not(.admin-topic-editor-modal) .auth-modal-actions {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 0 !important;
  }

  .prediction-modal.auth-modal:not(.account-nickname-modal):not(.account-security-modal):not(.account-avatar-modal):not(.account-delete-modal):not(.admin-topic-editor-modal) .auth-modal-actions .btn {
    width: 100% !important;
    min-height: 42px !important;
    padding-inline: 10px !important;
    border-radius: 13px !important;
    font-size: 12px !important;
  }

  .prediction-modal.auth-modal:not(.account-nickname-modal):not(.account-security-modal):not(.account-avatar-modal):not(.account-delete-modal):not(.admin-topic-editor-modal) .auth-modal-error {
    padding: 9px 11px !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
  }
}

@media (max-width: 380px) {
  .prediction-modal.auth-modal:not(.account-nickname-modal):not(.account-security-modal):not(.account-avatar-modal):not(.account-delete-modal):not(.admin-topic-editor-modal) .auth-modal-phone-row,
  .prediction-modal.auth-modal:not(.account-nickname-modal):not(.account-security-modal):not(.account-avatar-modal):not(.account-delete-modal):not(.admin-topic-editor-modal) .auth-modal-inline-row {
    grid-template-columns: 1fr !important;
  }

  .prediction-modal.auth-modal:not(.account-nickname-modal):not(.account-security-modal):not(.account-avatar-modal):not(.account-delete-modal):not(.admin-topic-editor-modal) .auth-modal-code-action {
    width: 100% !important;
  }
}

@media (max-width: 900px) {
  body[data-page="profile"] .profile-dashboard {
    gap: 18px !important;
  }

  body[data-page="profile"] .profile-updates-panel {
    margin-top: 12px !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
  }

  body[data-page="profile"] .profile-records-panel {
    margin-top: 8px !important;
    padding: 0 !important;
  }

  body[data-page="profile"] .profile-updates-panel .section-heading {
    margin-bottom: 10px !important;
  }

  body[data-page="profile"] .profile-records-panel .section-heading {
    margin-bottom: 10px !important;
  }

  body[data-page="profile"] .profile-record-list {
    gap: 12px !important;
  }

  body[data-page="profile"] .profile-record-pagination {
    margin-top: 14px !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
  }

  body[data-page="profile"] .profile-summary-panel {
    margin-top: 16px !important;
  }
}

@media (max-width: 900px) {
  body[data-page="search"] .search-page-query-shell {
    grid-template-columns: minmax(0, 1fr) auto !important;
    min-height: 50px !important;
    padding: 5px !important;
    gap: 5px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  body[data-page="search"] .search-page-query-input {
    min-height: 40px !important;
    padding-inline: 14px 8px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body[data-page="search"] .search-page-query-button {
    min-width: 60px !important;
    min-height: 40px !important;
    padding-inline: 14px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--accent) !important;
    color: rgba(4, 21, 27, 0.96) !important;
    box-shadow: none !important;
  }
}

@media (max-width: 900px) {
  .mobile-bottom-dock {
    gap: 5px !important;
    padding: 6px !important;
    border-radius: 999px !important;
    background: rgba(15, 22, 29, 0.92) !important;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34) !important;
  }

  .mobile-bottom-dock::before {
    border-radius: 999px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)) !important;
  }

  .mobile-dock-indicator {
    top: 6px !important;
    height: calc(100% - 12px) !important;
    border-radius: 999px !important;
    background: rgba(107, 215, 228, 0.12) !important;
  }

  .mobile-dock-link {
    min-height: 50px !important;
    padding: 6px 4px !important;
    border-radius: 999px !important;
  }
}

@media (max-width: 640px) {
  .mobile-bottom-dock {
    padding: 6px !important;
    border-radius: 999px !important;
  }

  .mobile-dock-indicator {
    top: 6px !important;
    height: calc(100% - 12px) !important;
    border-radius: 999px !important;
  }

  .mobile-dock-link {
    min-height: 49px !important;
    border-radius: 999px !important;
  }
}

@media (max-width: 900px) {
  body[data-page="index"] .lead-market-card--mobile .lead-market-body {
    align-items: start !important;
  }

  body[data-page="index"] .lead-market-card--mobile .lead-market-price {
    align-self: start !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    transform: translateY(3px) !important;
  }

  body[data-page="index"] .lead-market-card--mobile .lead-market-actions--mobile {
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
  }

  body[data-page="index"] .lead-market-card--mobile .lead-market-participants,
  body[data-page="index"] .lead-market-card--mobile .lead-market-countdown {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 22px !important;
    line-height: 1 !important;
  }

  body[data-page="index"] .lead-market-card--mobile .lead-market-countdown {
    justify-self: end !important;
    margin-left: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: rgba(188, 202, 208, 0.72) !important;
    font-size: 12px !important;
  }

  body[data-page="index"] .lead-market-card--mobile .lead-market-countdown .market-countdown,
  body[data-page="index"] .lead-market-card--mobile .lead-market-countdown .lead-roll-slot--countdown,
  body[data-page="index"] .lead-market-card--mobile .lead-market-countdown .lead-roll-item--countdown,
  body[data-page="index"] .lead-market-card--mobile .lead-market-countdown .countdown-roll,
  body[data-page="index"] .lead-market-card--mobile .lead-market-countdown .countdown-char,
  body[data-page="index"] .lead-market-card--mobile .lead-market-countdown .countdown-digit-face,
  body[data-page="index"] .lead-market-card--mobile .lead-market-countdown .countdown-separator {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
  }
}

@media (max-width: 900px) {
  body[data-page="verified"] .verified-ranking-panel .section-heading {
    display: flex !important;
    grid-template-columns: none !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
    text-align: left !important;
  }

  body[data-page="verified"] .verified-ranking-panel .section-heading > div {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    text-align: left !important;
    justify-self: stretch !important;
  }

  body[data-page="verified"] .verified-ranking-panel .section-heading .status-pill {
    flex: 0 0 auto !important;
    margin-left: auto !important;
    align-self: center !important;
  }

  body[data-page="verified"] .verified-ranking-panel .section-heading h2 {
    text-align: left !important;
    justify-content: flex-start !important;
  }

  body[data-page="submit-step1"] .submit-predict-panel .button-row.submit-prompt-actions {
    position: static !important;
    display: flex !important;
    justify-content: flex-end !important;
    margin-top: 8px !important;
    transform: none !important;
  }

  body[data-page="submit-step1"] .submit-prompt-actions .btn {
    border-radius: 999px !important;
  }

  body[data-page="submit-step1"] .submit-model-grid {
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
}

@media (max-width: 900px) {
  body[data-page="submit-step1"] [data-submit-topic] {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  body[data-page="submit-step1"] [data-submit-topic] > div {
    width: 100% !important;
  }

  body[data-page="submit-step1"] [data-submit-topic] .verified-summary {
    width: 100% !important;
    align-self: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    margin-top: 4px !important;
  }

  body[data-page="submit-step1"] [data-submit-topic] .verified-summary-item {
    justify-content: flex-start !important;
    text-align: left !important;
  }

  body[data-page="submit-step1"] [data-submit-topic] .verified-summary-value,
  body[data-page="submit-step1"] [data-submit-topic] .submit-summary-countdown,
  body[data-page="submit-step1"] [data-submit-topic] .submit-summary-countdown .market-countdown,
  body[data-page="submit-step1"] [data-submit-topic] .submit-summary-countdown .lead-roll-slot--countdown,
  body[data-page="submit-step1"] [data-submit-topic] .submit-summary-countdown .lead-roll-item--countdown {
    justify-content: flex-start !important;
    text-align: left !important;
  }

  body[data-page="submit-step1"] [data-submit-topic] .verified-summary {
    gap: 10px !important;
  }

  body[data-page="submit-step1"] [data-submit-topic] .verified-summary-item:first-child {
    gap: 8px !important;
  }

  body[data-page="submit-step1"] [data-submit-topic] .verified-summary-item:first-child .verified-summary-label {
    display: inline-block !important;
  }
}

body[data-page="submit-step1"] .verified-summary {
  justify-content: flex-start !important;
  align-self: flex-start !important;
  min-width: 0 !important;
}

body[data-page="submit-step1"] .verified-summary-item,
body[data-page="submit-step1"] .verified-summary-value,
body[data-page="submit-step1"] .submit-summary-countdown {
  justify-content: flex-start !important;
  text-align: left !important;
}

@media (max-width: 900px) {
  body[data-page="submit-step1"] [data-submit-topic] .verified-summary {
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    align-self: flex-start !important;
    gap: 10px !important;
    margin-top: 6px !important;
    padding: 0 !important;
    white-space: nowrap !important;
  }

  body[data-page="submit-step1"] [data-submit-topic] .verified-summary-item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex: 0 0 auto !important;
    gap: 8px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
  }

  body[data-page="submit-step1"] [data-submit-topic] .verified-summary-item:first-child {
    gap: 10px !important;
  }

  body[data-page="submit-step1"] [data-submit-topic] .verified-summary-item:first-child .verified-summary-label {
    display: inline-block !important;
  }

  body[data-page="submit-step1"] [data-submit-topic] .submit-summary-countdown,
  body[data-page="submit-step1"] [data-submit-topic] .submit-summary-countdown .market-countdown,
  body[data-page="submit-step1"] [data-submit-topic] .submit-summary-countdown .lead-roll-slot--countdown,
  body[data-page="submit-step1"] [data-submit-topic] .submit-summary-countdown .lead-roll-item--countdown,
  body[data-page="submit-step1"] [data-submit-topic] .submit-summary-countdown .countdown-roll,
  body[data-page="submit-step1"] [data-submit-topic] .submit-summary-countdown .countdown-char,
body[data-page="submit-step1"] [data-submit-topic] .submit-summary-countdown .countdown-digit-face,
body[data-page="submit-step1"] [data-submit-topic] .submit-summary-countdown .countdown-separator {
  justify-content: flex-start !important;
  text-align: left !important;
}
}

@media (max-width: 900px) {
  body.has-mobile-dock .market-topbar,
  body.has-mobile-dock .market-topbar.subpage-topbar {
    grid-template-areas: "brand language" !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    row-gap: 0 !important;
    column-gap: 10px !important;
    min-height: 0 !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    padding-left: var(--shell-pad-x) !important;
    padding-right: var(--shell-pad-x) !important;
  }

  body.has-mobile-dock .market-topbar > .user-menu,
  body.has-mobile-dock .market-topbar > .topbar-admin-entry,
  body.has-mobile-dock .market-topbar > .market-category-strip,
  body.has-mobile-dock .market-topbar > .topbar-search-area {
    display: none !important;
  }

  body.has-mobile-dock .market-topbar > .brand-menu {
    min-width: 0 !important;
    justify-self: start !important;
  }

  body.has-mobile-dock .market-topbar > .topbar-language {
    justify-self: end !important;
    min-width: max-content !important;
  }

  body.has-mobile-dock .market-topbar .topbar-language .language-switch {
    width: 36px !important;
    min-width: 36px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
  }

  body.has-mobile-dock .app-shell {
    padding-top: 78px !important;
  }
}

@media (max-width: 640px) {
  body.has-mobile-dock .market-topbar,
  body.has-mobile-dock .market-topbar.subpage-topbar {
    padding-top: 7px !important;
    padding-bottom: 7px !important;
  }

  body.has-mobile-dock .app-shell {
    padding-top: 76px !important;
  }
}

@media (max-width: 900px) {
  body.has-mobile-dock .market-topbar,
  body.has-mobile-dock .market-topbar.subpage-topbar {
    box-sizing: border-box !important;
    min-height: 48px !important;
    height: 48px !important;
    padding-top: 7px !important;
    padding-bottom: 7px !important;
  }

  body.has-mobile-dock .market-topbar > .brand-menu,
  body.has-mobile-dock .market-topbar > .topbar-language {
    align-self: center !important;
  }
}

@media (max-width: 900px) {
  /* Final mobile topbar lock: keep homepage and subpages on the same vertical axis. */
  body.has-mobile-dock .market-topbar > .brand-menu,
  body.has-mobile-dock .market-topbar > .topbar-language {
    display: flex !important;
    align-items: center !important;
    align-self: center !important;
    min-height: 34px !important;
    margin: 0 !important;
  }

  body.has-mobile-dock .market-topbar .brand-trigger,
  body.has-mobile-dock .market-topbar .brand,
  body.has-mobile-dock .market-topbar .topbar-language .language-switch {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 34px !important;
    margin: 0 !important;
  }

  body.has-mobile-dock .market-topbar .brand-trigger,
  body.has-mobile-dock .market-topbar .brand {
    justify-content: flex-start !important;
    align-self: center !important;
  }

  body.has-mobile-dock .market-topbar .topbar-language .language-switch {
    align-self: center !important;
  }
}

@media (max-width: 900px) {
  /* Optical correction: homepage wordmark/icon pair still reads slightly high after box alignment. */
  body.has-mobile-dock[data-page="index"] .market-topbar > .brand-menu,
  body.has-mobile-dock[data-page="index"] .market-topbar > .topbar-language {
    transform: translateY(1px) !important;
  }
}

@media (max-width: 900px) {
  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .verified-summary {
    width: auto !important;
    min-width: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    align-self: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 18px !important;
    margin-top: 6px !important;
    padding: 0 !important;
    white-space: nowrap !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .verified-summary-item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex: 0 0 auto !important;
    gap: 10px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    white-space: nowrap !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .verified-summary-item + .verified-summary-item {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .verified-summary-item::before {
    content: none !important;
    display: none !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .verified-summary-item + .verified-summary-item::before {
    content: none !important;
    display: none !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .verified-summary-label {
    display: inline-block !important;
    font-size: 10px !important;
    line-height: 1 !important;
    letter-spacing: 0.08em !important;
    white-space: nowrap !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .verified-summary-item:first-child .verified-summary-label {
    display: none !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .verified-summary-item:first-child {
    gap: 0 !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .verified-summary-value,
  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .submit-summary-countdown,
  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .submit-summary-countdown .market-countdown,
  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .submit-summary-countdown .lead-roll-slot--countdown,
  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .submit-summary-countdown .lead-roll-item--countdown,
  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .submit-summary-countdown .countdown-roll,
  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .submit-summary-countdown .countdown-char,
  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .submit-summary-countdown .countdown-digit-face,
  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .submit-summary-countdown .countdown-separator {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex: 0 0 auto !important;
    min-height: 0 !important;
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    text-align: left !important;
    white-space: nowrap !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .verified-summary .status-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    min-height: 24px !important;
    padding: 0 10px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
  }

  body:is([data-page="submit-step1"], [data-page="analysis"], [data-page="submitted"], [data-page="verified"]) .verified-summary .status-pill::before {
    content: none !important;
    display: none !important;
  }

  body:is([data-page="submit-step1"], [data-page="submitted"]) .verified-summary .status-pill {
    background: rgba(247, 179, 71, 0.14) !important;
    color: var(--signal-open) !important;
  }

  body[data-page="analysis"] .verified-summary .status-pill {
    background: rgba(107, 215, 228, 0.14) !important;
    color: var(--accent) !important;
  }

  body[data-page="verified"] .verified-summary .status-pill {
    background: rgba(190, 245, 138, 0.14) !important;
    color: #d9f7b6 !important;
  }
}

@media (max-width: 900px) {
  body[data-page="submit-step1"] [data-submit-topic] .verified-summary,
  body[data-page="analysis"] [data-analysis-hero] .verified-summary,
  body[data-page="submitted"] [data-submitted-hero] .verified-summary,
  body[data-page="verified"] [data-verified-hero] .verified-summary {
    width: auto !important;
    min-width: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    align-self: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 18px !important;
    margin-top: 6px !important;
    padding: 0 !important;
    white-space: nowrap !important;
  }

  body[data-page="submit-step1"] [data-submit-topic] .verified-summary-item,
  body[data-page="analysis"] [data-analysis-hero] .verified-summary-item,
  body[data-page="submitted"] [data-submitted-hero] .verified-summary-item,
  body[data-page="verified"] [data-verified-hero] .verified-summary-item,
  body[data-page="submit-step1"] [data-submit-topic] .verified-summary-meta,
  body[data-page="analysis"] [data-analysis-hero] .verified-summary-meta,
  body[data-page="submitted"] [data-submitted-hero] .verified-summary-meta,
  body[data-page="verified"] [data-verified-hero] .verified-summary-meta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex: 0 0 auto !important;
    gap: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    white-space: nowrap !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body[data-page="submit-step1"] [data-submit-topic] .verified-summary-item + .verified-summary-item,
  body[data-page="analysis"] [data-analysis-hero] .verified-summary-item + .verified-summary-item,
  body[data-page="submitted"] [data-submitted-hero] .verified-summary-item + .verified-summary-item,
  body[data-page="verified"] [data-verified-hero] .verified-summary-item + .verified-summary-item {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  body[data-page="submit-step1"] [data-submit-topic] .verified-summary-meta,
  body[data-page="analysis"] [data-analysis-hero] .verified-summary-meta,
  body[data-page="submitted"] [data-submitted-hero] .verified-summary-meta,
  body[data-page="verified"] [data-verified-hero] .verified-summary-meta {
    margin-left: 0 !important;
    padding-left: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  body[data-page="submit-step1"] [data-submit-topic] .verified-summary-item::before,
  body[data-page="analysis"] [data-analysis-hero] .verified-summary-item::before,
  body[data-page="submitted"] [data-submitted-hero] .verified-summary-item::before,
  body[data-page="verified"] [data-verified-hero] .verified-summary-item::before,
  body[data-page="submit-step1"] [data-submit-topic] .verified-summary-item + .verified-summary-item::before,
  body[data-page="analysis"] [data-analysis-hero] .verified-summary-item + .verified-summary-item::before,
  body[data-page="submitted"] [data-submitted-hero] .verified-summary-item + .verified-summary-item::before,
  body[data-page="verified"] [data-verified-hero] .verified-summary-item + .verified-summary-item::before {
    content: none !important;
    display: none !important;
  }

  body[data-page="submit-step1"] [data-submit-topic] .verified-summary-label,
  body[data-page="analysis"] [data-analysis-hero] .verified-summary-label,
  body[data-page="submitted"] [data-submitted-hero] .verified-summary-label,
  body[data-page="verified"] [data-verified-hero] .verified-summary-label {
    display: none !important;
  }

  body[data-page="submit-step1"] [data-submit-topic] .verified-summary-value,
  body[data-page="analysis"] [data-analysis-hero] .verified-summary-value,
  body[data-page="submitted"] [data-submitted-hero] .verified-summary-value,
  body[data-page="verified"] [data-verified-hero] .verified-summary-value,
  body[data-page="submit-step1"] [data-submit-topic] .submit-summary-countdown,
  body[data-page="submit-step1"] [data-submit-topic] .submit-summary-countdown .market-countdown,
  body[data-page="submit-step1"] [data-submit-topic] .submit-summary-countdown .lead-roll-slot--countdown,
  body[data-page="submit-step1"] [data-submit-topic] .submit-summary-countdown .lead-roll-item--countdown,
  body[data-page="submit-step1"] [data-submit-topic] .submit-summary-countdown .countdown-roll,
  body[data-page="submit-step1"] [data-submit-topic] .submit-summary-countdown .countdown-char,
  body[data-page="submit-step1"] [data-submit-topic] .submit-summary-countdown .countdown-digit-face,
  body[data-page="submit-step1"] [data-submit-topic] .submit-summary-countdown .countdown-separator {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex: 0 0 auto !important;
    min-height: 0 !important;
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    text-align: left !important;
    white-space: nowrap !important;
  }

  body[data-page="submit-step1"] [data-submit-topic] .submit-summary-countdown {
    min-height: 24px !important;
    align-items: center !important;
    transform: none !important;
  }

  body[data-page="submit-step1"] [data-submit-topic] .verified-summary-meta,
  body[data-page="analysis"] [data-analysis-hero] .verified-summary-meta,
  body[data-page="submitted"] [data-submitted-hero] .verified-summary-meta,
  body[data-page="verified"] [data-verified-hero] .verified-summary-meta {
    min-height: 24px !important;
    align-items: center !important;
  }

  body[data-page="submit-step1"] [data-submit-topic] .submit-summary-countdown .market-countdown,
  body[data-page="submit-step1"] [data-submit-topic] .submit-summary-countdown .lead-roll-slot--countdown,
  body[data-page="submit-step1"] [data-submit-topic] .submit-summary-countdown .lead-roll-item--countdown,
  body[data-page="submit-step1"] [data-submit-topic] .submit-summary-countdown .countdown-roll {
    min-height: 24px !important;
    align-items: center !important;
  }

  body[data-page="submit-step1"] [data-submit-topic] .verified-summary .status-pill,
  body[data-page="analysis"] [data-analysis-hero] .verified-summary .status-pill,
  body[data-page="submitted"] [data-submitted-hero] .verified-summary .status-pill,
  body[data-page="verified"] [data-verified-hero] .verified-summary .status-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    min-height: 24px !important;
    padding: 0 10px !important;
    border: 0 !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
  }

  body[data-page="submit-step1"] [data-submit-topic] .verified-summary .status-pill::before,
  body[data-page="analysis"] [data-analysis-hero] .verified-summary .status-pill::before,
  body[data-page="submitted"] [data-submitted-hero] .verified-summary .status-pill::before,
  body[data-page="verified"] [data-verified-hero] .verified-summary .status-pill::before {
    content: none !important;
    display: none !important;
  }

  body[data-page="submit-step1"] [data-submit-topic] .verified-summary .status-pill,
  body[data-page="submitted"] [data-submitted-hero] .verified-summary .status-pill {
    background: rgba(247, 179, 71, 0.14) !important;
    color: var(--signal-open) !important;
  }

  body[data-page="analysis"] [data-analysis-hero] .verified-summary .status-pill {
    background: rgba(107, 215, 228, 0.14) !important;
    color: var(--accent) !important;
  }

  body[data-page="verified"] [data-verified-hero] .verified-summary .status-pill {
    background: rgba(190, 245, 138, 0.14) !important;
    color: #d9f7b6 !important;
  }
}

@media (max-width: 900px) {
  body[data-page="submit-step1"] [data-submit-topic] .verified-summary div,
  body[data-page="analysis"] [data-analysis-hero] .verified-summary div,
  body[data-page="submitted"] [data-submitted-hero] .verified-summary div,
  body[data-page="verified"] [data-verified-hero] .verified-summary div {
    border-left: 0 !important;
    padding-left: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    min-height: 0 !important;
  }

  body[data-page="submit-step1"] [data-submit-topic] .verified-summary div::before,
  body[data-page="analysis"] [data-analysis-hero] .verified-summary div::before,
  body[data-page="submitted"] [data-submitted-hero] .verified-summary div::before,
  body[data-page="verified"] [data-verified-hero] .verified-summary div::before,
  body[data-page="submit-step1"] [data-submit-topic] .verified-summary div::after,
  body[data-page="analysis"] [data-analysis-hero] .verified-summary div::after,
  body[data-page="submitted"] [data-submitted-hero] .verified-summary div::after,
  body[data-page="verified"] [data-verified-hero] .verified-summary div::after {
    content: none !important;
    display: none !important;
    border-left: 0 !important;
    box-shadow: none !important;
  }
}
