/* Ported from ndiola eb86aac; plain CSS using the official website tokens. */
:root {
  color-scheme: dark;
  --site-chrome-height: 118px;
  --background: var(--surface-page);
  --panel: var(--surface-card);
  --foreground: var(--fg-1);
  --muted: var(--fg-3);
}
body {
  font-family: var(--font-sans);
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-size: 14px;
}
a {
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 5px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 1px solid var(--foreground);
}
.page-width {
  max-width: 1440px;
  margin: auto;
  padding: 0 44px;
}
.muted {
  color: var(--muted);
}
.accent {
  color: var(--foreground);
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 13px 20px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-weight: 600;
  color: var(--foreground);
  font-size: 13px;
  white-space: nowrap;
  transition: border-color 0.15s;
}
.button:hover {
  background: var(--panel);
  border-color: var(--muted);
}
.button.secondary {
  color: var(--foreground);
  background: transparent;
  border-color: var(--line-strong);
}
.button.secondary:hover {
  background: var(--background);
}
.button.small {
  padding: 8px 13px;
  font-size: 12px;
}
.button.full {
  width: 100%;
}
.text-button {
  background: none;
  border: 0;
  color: var(--fg-2);
  font-size: 12px;
  padding: 8px 4px;
}
.read-story {
  color: var(--foreground);
  font-size: 12px;
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0;
}
.skip-link {
  position: fixed;
  top: -100px;
  padding: 12px;
  background: var(--foreground);
  color: var(--panel);
  z-index: 100;
}
.skip-link:focus {
  top: 0;
}
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--background);
}
.site-chrome {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  background: var(--background);
}
.site-chrome-spacer {
  height: var(--site-chrome-height);
  flex: none;
}
html {
  scroll-padding-top: calc(var(--site-chrome-height) + 16px);
}
.headline-ticker {
  display: flex;
  min-height: 36px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.headline-viewport {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 24px,
    #000 calc(100% - 24px),
    transparent
  );
}
.headline-belt {
  display: flex;
  width: max-content;
  animation: headline-slide 90s linear infinite;
}
@keyframes headline-slide {
  to {
    transform: translateX(-50%);
  }
}
.headline-run {
  display: flex;
  align-items: center;
  flex: none;
  list-style: none;
  padding: 0;
  margin: 0;
}
.headline-run li {
  padding: 0 20px;
  border-right: 1px solid var(--line-strong);
  white-space: nowrap;
  color: var(--fg-2);
  font-size: 12px;
}
.headline-run a:hover {
  color: var(--foreground);
}
.headline-run a:focus-visible {
  outline-offset: 1px;
}
.headline-run span {
  color: var(--muted);
}
.headline-ticker[data-paused="true"] .headline-belt,
.headline-ticker:hover .headline-belt,
.headline-ticker:focus-within .headline-belt {
  animation-play-state: paused;
}
.headline-toggle {
  flex: none;
  width: 74px;
  padding: 8px;
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--panel);
  color: var(--fg-2);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.6px;
}
.headline-toggle:focus-visible {
  outline-offset: -3px;
}
.headline-empty {
  margin: 0;
  padding: 8px 24px;
  color: var(--muted);
  font-size: 12px;
}
@media (prefers-reduced-motion: reduce) {
  .headline-belt {
    animation: none;
    transform: none;
  }
  .headline-run[aria-hidden="true"] {
    display: none;
  }
  .headline-viewport {
    overflow-x: auto;
    mask-image: none;
  }
}
.header-inner {
  height: 79px;
  max-width: 1440px;
  padding: 0 44px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 54px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--foreground);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
}
.main-nav a {
  font-size: 12px;
  color: var(--fg-2);
  display: flex;
  align-items: center;
  height: 100%;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--foreground);
}
.main-nav a.active {
  border-bottom-color: var(--foreground);
}
.account-nav {
  display: flex;
  margin-left: auto;
  gap: 19px;
  align-items: center;
}
.currency-label {
  color: var(--muted);
  font-size: 11px;
  border-right: 1px solid var(--line);
  padding-right: 21px;
}
.market-strip {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.market-strip > span:first-child {
  color: var(--fg-2);
}
.market-strip a {
  color: var(--fg-2);
}
.status-dot {
  width: 6px;
  height: 6px;
  background: var(--foreground);
  display: inline-block;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}
.status-dot.warning {
  background: var(--accent-economy);
}
.welcome-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 35px 0 27px;
}
.welcome-row h1 {
  margin: 6px 0 6px;
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: -1.5px;
  font-weight: 600;
}
h1 em,
h2 em {
  font-style: normal;
  color: var(--foreground);
}
.welcome-row p {
  color: var(--muted);
  margin: 10px 0 0;
  font-size: 12px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 310px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  padding: 12px 15px;
}
.search-field > span {
  color: var(--fg-2);
  font-size: 25px;
  line-height: 14px;
}
.search-field input {
  min-width: 0;
  width: 100%;
  background: none;
  border: 0;
  font-size: 12px;
  color: var(--foreground);
  outline: none;
}
.search-field:focus-within {
  border-color: var(--foreground);
}
.search-field kbd {
  color: var(--muted);
  font-size: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 0 5px;
}
.category-nav {
  display: flex;
  gap: 10px;
  padding-bottom: 25px;
  overflow: auto;
  scrollbar-width: none;
}
.category-nav button {
  border: 1px solid transparent;
  background: none;
  white-space: nowrap;
  border-radius: 6px;
  padding: 8px 15px;
  color: var(--fg-2);
  font-size: 12px;
}
.category-nav button[aria-pressed="true"] {
  color: var(--foreground);
  background: var(--panel);
  border-color: var(--muted);
}
.category-nav button:hover {
  color: var(--foreground);
  background: var(--background);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(290px, 1fr);
  gap: 20px;
  margin: 0 0 35px;
}
.featured-market,
.pulse-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  overflow: hidden;
}
.featured-market {
  padding: 22px 26px 12px;
}
.card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--fg-2);
}
.save-button {
  color: var(--muted);
  font-size: 22px;
  border: 0;
  padding: 0 3px;
  background: none;
  line-height: 1;
}
.save-button.saved {
  color: var(--fg-2);
}
.featured-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 19px 0 15px;
}
.featured-heading h2 {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
  max-width: 500px;
  line-height: 1.35;
}
.featured-heading p {
  color: var(--muted);
  font-size: 10px;
  margin: 0;
}
.market-thumbnail {
  height: 50px;
  width: 50px;
  flex: 0 0 50px;
  border: 1px solid color-mix(in srgb, var(--category-accent) 25%, var(--panel));
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  --category-accent: var(--accent-economy);
  background: color-mix(in srgb, var(--category-accent) 12%, var(--panel));
  color: var(--category-accent);
  font-size: 29px;
}
.market-thumbnail.large {
  width: 62px;
  height: 62px;
  flex-basis: 62px;
  font-size: 38px;
}
.market-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-politics {
  --category-accent: var(--accent-politics);
}
.category-technology {
  --category-accent: var(--accent-technology);
}
.category-business {
  --category-accent: var(--accent-business);
}
.category-culture {
  --category-accent: var(--accent-culture);
}
.category-weather {
  --category-accent: var(--accent-weather);
}
.featured-price {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 14px;
}
.featured-price > strong {
  font-size: 42px;
  font-weight: 550;
  letter-spacing: -2px;
  color: var(--foreground);
  line-height: 1.15;
}
.featured-price > span {
  font-size: 11px;
  line-height: 1.65;
  color: var(--fg-2);
}
.featured-price i {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}
.featured-price .button {
  margin-left: auto;
  font-size: 11px;
  padding: 9px 12px;
}
.chart-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin: 13px 0 10px;
  color: var(--muted);
  font-size: 10px;
  min-height: 26px;
}
.segmented {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}
.segmented button {
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 4px;
  padding: 4px 7px;
  font-size: 9px;
}
.segmented button[aria-pressed="true"] {
  background: var(--background);
  color: var(--foreground);
}
.chart-body {
  display: flex;
  gap: 12px;
}
.chart-body svg {
  width: calc(100% - 30px);
  display: block;
  overflow: visible;
}
.chart-scale {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  padding: 4px 0;
}
.chart-dates {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  padding-right: 34px;
  margin-top: 7px;
}
.chart-caption {
  font-size: 8px;
  color: var(--muted);
  margin: 10px 0 0;
}
.chart-placeholder {
  min-height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 34px,
    var(--background) 35px
  );
}
.chart-inspect {
  display: flex;
  gap: 15px;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  margin: 16px 0;
}
.chart-inspect input {
  accent-color: var(--foreground);
  width: 140px;
}
.pulse-panel {
  padding: 25px 23px 0;
  display: flex;
  flex-direction: column;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.section-heading h2 {
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -0.3px;
  margin: 0;
}
.section-heading .eyebrow {
  color: var(--muted);
  font-size: 8px;
}
.section-intro {
  font-size: 10px;
  color: var(--muted);
  margin: 7px 0 17px;
}
.pulse-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 0;
  border-top: 1px solid var(--background);
}
.pulse-rank {
  color: var(--muted);
  font-size: 10px;
}
.pulse-item h3 {
  font-size: 12px;
  font-weight: 500;
  margin: 0 0 6px;
  line-height: 1.5;
}
.pulse-item div > span {
  color: var(--muted);
  font-size: 9px;
}
.pulse-item > strong {
  color: var(--fg-2);
  font-size: 17px;
  font-weight: 500;
  margin-left: auto;
}
.pulse-footer {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--panel);
  margin: 18px -23px 0;
  padding: 15px 23px;
  margin-top: auto;
}
.pulse-footer > span {
  font-size: 29px;
  color: var(--foreground);
}
.pulse-footer p {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.pulse-footer strong {
  display: block;
  font-size: 11px;
  font-weight: 550;
  color: var(--fg-2);
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(290px, 1fr);
  gap: 30px;
}
.browse-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 12px;
  margin-bottom: 19px;
}
.market-tabs {
  display: flex;
  gap: 18px;
}
.market-tabs button {
  white-space: nowrap;
  padding: 0 0 13px;
  color: var(--muted);
  font-size: 11px;
  border: 0;
  background: none;
  border-bottom: 2px solid transparent;
}
.market-tabs button[aria-pressed="true"] {
  color: var(--foreground);
  border-bottom-color: var(--foreground);
}
.market-tabs button > span {
  color: var(--fg-2);
  border-radius: 3px;
  background: var(--background);
  font-size: 9px;
  padding: 1px 5px;
  margin-left: 6px;
}
.sort-control {
  padding-bottom: 12px;
}
.sort-control select {
  background: var(--panel);
  border: 0;
  color: var(--fg-2);
  font-size: 10px;
  max-width: 110px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.market-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 9px;
  padding: 17px 18px 14px;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.market-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.market-card .eyebrow {
  font-size: 8px;
}
.market-card .save-button {
  font-size: 19px;
}
.card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  min-height: 52px;
}
.card-heading h3 {
  font-size: 13px;
  font-weight: 550;
  line-height: 1.5;
  margin: 0;
}
.card-probability {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 15px;
}
.card-probability > strong {
  font-size: 28px;
  letter-spacing: -1px;
  font-weight: 550;
}
.card-probability > span:nth-child(2) {
  font-size: 9px;
  color: var(--muted);
}
.status {
  margin-left: auto;
  font-size: 8px;
  color: var(--fg-2);
}
.status.open {
  color: var(--ndio-text);
}
.status.open:before {
  content: "●";
  font-size: 6px;
  margin-right: 5px;
  color: var(--ndio);
}
.outcome-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.outcome-links a {
  display: flex;
  align-items: center;
  font-size: 11px;
  padding: 9px 10px;
  border: 1px solid var(--ndio);
  border-radius: 6px;
  gap: 6px;
  background: var(--panel);
  color: var(--ndio-text);
}
.outcome-links a.no {
  color: var(--la-text);
  border-color: var(--la);
  background: var(--panel);
}
.outcome-links a > span {
  font-size: 8px;
  opacity: 0.65;
}
.outcome-links a > b {
  margin-left: auto;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--foreground);
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8px;
  color: var(--muted);
  margin-top: 14px;
  gap: 8px;
}
.price-note {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
  margin: 18px 0;
}
.news-panel {
  padding: 0 0 16px;
}
.news-panel > .section-heading {
  padding-bottom: 6px;
}
.news-item {
  display: flex;
  gap: 13px;
  border-top: 1px solid var(--line);
  padding: 17px 0;
}
.news-number {
  font-size: 10px;
  color: var(--muted);
  padding-top: 2px;
}
.news-source {
  font-size: 9px;
  color: var(--fg-2);
}
.news-source i {
  color: var(--muted);
  font-style: normal;
}
.news-item h3 {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  margin: 7px 0;
}
.news-item .read-story {
  font-size: 9px;
  color: var(--fg-2);
}
.suggest-panel {
  border: 1px solid var(--line);
  background: linear-gradient(120deg, var(--background), var(--panel));
  border-radius: 9px;
  padding: 22px;
}
.suggest-icon {
  display: block;
  font-size: 26px;
  color: var(--fg-2);
  margin-bottom: 10px;
}
.suggest-panel h3 {
  font-size: 15px;
  font-weight: 550;
  margin: 0 0 9px;
}
.suggest-panel > p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  margin: 0 0 18px;
}
.suggest-form {
  display: grid;
  gap: 12px;
}
.suggest-form label {
  font-size: 11px;
  display: grid;
  gap: 7px;
  color: var(--fg-2);
}
.suggest-form input,
.suggest-form textarea,
.suggest-form select {
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--foreground);
  padding: 10px;
  border-radius: 4px;
  width: 100%;
}
.suggest-form textarea {
  min-height: 80px;
  resize: vertical;
}
.comparison-section {
  padding: 36px 0 0;
  margin-top: 15px;
  border-top: 1px solid var(--line);
}
.comparison-section .section-heading {
  margin-bottom: 24px;
}
.comparison-section .section-heading .eyebrow {
  color: var(--fg-2);
  font-size: 8px;
}
.comparison-section h2 {
  font-size: 25px;
  margin-top: 7px;
}
.context-label {
  color: var(--muted);
  font-size: 9px;
  border: 1px solid var(--line);
  padding: 5px 9px;
  border-radius: 4px;
}
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.comparison-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 9px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.comparison-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.comparison-brand > span {
  width: 27px;
  height: 27px;
  background: var(--background);
  border: 1px solid var(--line-strong);
  color: var(--fg-2);
  font-size: 19px;
  font-weight: 700;
  border-radius: 5px;
  text-align: center;
}
.comparison-brand h3 {
  font-size: 12px;
  font-weight: 550;
  margin: 0;
}
.comparison-card.polymarket_us .comparison-brand > span {
  background: var(--line);
  color: var(--fg-2);
  border-color: var(--line-strong);
}
.comparison-card.ndiola {
  border-color: var(--line-strong);
  background: var(--panel);
}
.comparison-title {
  font-size: 12px;
  line-height: 1.6;
  min-height: 38px;
}
.comparison-value {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 15px 0 5px;
}
.comparison-value > strong {
  font-size: 34px;
  font-weight: 550;
  letter-spacing: -1.2px;
}
.comparison-value > span {
  font-size: 9px;
  color: var(--fg-2);
  line-height: 1.6;
}
.quote-time {
  color: var(--muted);
  font-size: 8px;
}
.comparison-note {
  font-size: 9px;
  line-height: 1.7;
  color: var(--fg-2);
  margin: 12px 0 20px;
}
.source-label {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 8px;
  color: var(--muted);
  margin-top: auto;
}
.comparison-card > .read-story {
  margin: 0 0 20px;
}
.comparison-disclaimer {
  font-size: 9px;
  line-height: 1.7;
  color: var(--muted);
  margin: 15px 0 0;
}
.join-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40px 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 31px;
  background: linear-gradient(110deg, var(--background), var(--panel));
}
.join-banner h2 {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.6px;
  margin: 8px 0;
}
.join-banner p {
  font-size: 11px;
  color: var(--fg-2);
  margin: 0;
}
.site-footer {
  max-width: 1352px;
  padding: 26px 0 38px;
  border-top: 1px solid var(--line);
  margin: 40px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
}
.site-footer .brand {
  color: var(--fg-2);
  font-size: 16px;
  flex-wrap: wrap;
}
.site-footer .brand i {
  flex-basis: 100%;
  font-size: 9px;
  color: var(--muted);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  margin-top: 9px;
}
.site-footer > div {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 12px;
  font-size: 9px;
}
.empty-state {
  padding: 44px 25px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.empty-symbol {
  color: var(--muted);
  font-size: 30px;
}
.empty-state h3 {
  margin: 14px 0 10px;
  font-size: 17px;
  font-weight: 500;
}
.empty-state p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--fg-2);
  max-width: 440px;
  margin: auto;
}
.quiet-state {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  padding: 16px 0;
}
.notice {
  color: var(--fg-2);
  border: 1px solid var(--line-strong);
  background: var(--background);
  border-radius: 6px;
  padding: 12px 16px;
  margin: 12px 0 20px;
  font-size: 12px;
  line-height: 1.6;
}
.notice.error {
  color: var(--la-text);
  background: var(--panel);
  border-color: var(--la);
}
.notice button {
  margin-left: 16px;
  background: transparent;
  border: 0;
  color: inherit;
  text-decoration: underline;
}
.skeleton-card {
  height: 243px;
  background: linear-gradient(
    120deg,
    var(--panel),
    var(--background),
    var(--panel)
  );
  border: 1px solid var(--line);
  border-radius: 9px;
}
.welcome-empty {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  padding-top: 15px;
}
.welcome-empty h2 {
  font-size: 34px;
  line-height: 1.3;
  letter-spacing: -1px;
  margin: 19px 0;
  position: relative;
  z-index: 1;
}
.welcome-empty p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 370px;
  margin-bottom: 23px;
  position: relative;
  z-index: 1;
}
.empty-orbit {
  position: absolute;
  right: 8px;
  bottom: -25px;
  width: 220px;
  height: 220px;
  z-index: 0;
  opacity: 0.15;
}
.welcome-empty .button {
  position: relative;
  z-index: 1;
}
.proposals {
  margin-top: 28px;
}
.proposals > h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.proposals > p {
  color: var(--muted);
  font-size: 11px;
}
.proposal-row {
  display: flex;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding: 16px 0;
  align-items: center;
}
.proposal-row span {
  font-size: 9px;
  color: var(--muted);
}
.proposal-row strong {
  font-size: 12px;
  font-weight: 500;
  flex: 1;
}
.detail-page {
  padding-top: 28px;
}
.detail-breadcrumb {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}
.back-link {
  font-size: 12px;
  color: var(--fg-2);
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(290px, 1fr);
  gap: 34px;
}
.detail-heading {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 15px 0 27px;
}
.detail-heading h1 {
  font-size: 30px;
  line-height: 1.4;
  letter-spacing: -0.8px;
  font-weight: 550;
  margin: 8px 0 0;
}
.detail-heading .save-button {
  margin-left: auto;
}
.detail-chart-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 25px;
}
.market-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  padding: 23px 0;
  gap: 16px;
}
.market-stat-row div {
  display: grid;
  gap: 8px;
}
.market-stat-row span {
  font-size: 10px;
  color: var(--muted);
}
.market-stat-row strong {
  font-size: 13px;
  font-weight: 500;
}
.rules-panel {
  padding: 23px 0;
}
.rules-panel h2 {
  font-size: 20px;
  margin: 20px 0 12px;
  font-weight: 550;
}
.rules-panel h3 {
  font-size: 14px;
  margin: 25px 0 12px;
}
.rules-panel p {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.8;
  margin-bottom: 15px;
}
.preserve-lines {
  white-space: pre-line;
}
.resolution-source {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  padding: 17px;
  border-radius: 7px;
}
.resolution-source span {
  color: var(--muted);
  font-size: 10px;
}
.resolution-source a {
  color: var(--foreground);
  font-size: 12px;
}
.position-panel {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 25px;
  margin: 15px 0 32px;
  background: var(--panel);
}
.position-panel h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 10px 0 23px;
}
.indicative-price {
  display: flex;
  justify-content: space-between;
  padding: 14px 15px;
  border: 1px solid var(--ndio);
  border-radius: 6px;
  margin: 9px 0;
  background: var(--panel);
  color: var(--ndio-text);
}
.indicative-price.no {
  color: var(--la-text);
  border-color: var(--la);
  background: var(--panel);
}
.position-panel > p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin: 17px 0;
}
.availability-note {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 0 20px;
  color: var(--fg-2);
  font-size: 10px;
  line-height: 1.5;
}
.availability-note .status-dot {
  flex: 0 0 6px;
}
.small-print {
  display: block;
  font-size: 9px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
  margin: 14px 0 0;
}
.portfolio-page {
  min-height: 60vh;
}
.portfolio-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 20px 0 35px;
}
.portfolio-stats > div {
  padding: 27px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  gap: 15px;
}
.portfolio-stats span {
  color: var(--muted);
  font-size: 12px;
}
.portfolio-stats strong {
  font-size: 28px;
  font-weight: 500;
}
.positions-table {
  overflow: auto;
  margin: 20px 0 30px;
}
.positions-table table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.positions-table th {
  color: var(--muted);
  font-size: 11px;
  padding: 15px;
  font-weight: 500;
}
.positions-table td {
  border-top: 1px solid var(--line);
  padding: 17px 15px;
  font-size: 12px;
}
.yes {
  color: var(--ndio-text);
}
.no {
  color: var(--la-text);
}
.learning-page {
  max-width: 1050px;
  padding-top: 60px;
}
.learning-page h1 {
  font-size: 49px;
  letter-spacing: -2px;
  font-weight: 550;
  line-height: 1.15;
  margin: 16px 0 24px;
}
.learning-page h1 em {
  color: var(--foreground);
  font-style: normal;
}
.learning-page .lead {
  color: var(--fg-2);
  font-size: 16px;
  line-height: 1.7;
  max-width: 600px;
}
.learn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 45px 0;
}
.learn-grid section > span {
  color: var(--foreground);
  font-size: 13px;
}
.learn-grid h2 {
  font-size: 18px;
  font-weight: 500;
  margin: 16px 0;
}
.learn-grid p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.login-page {
  min-height: 640px;
}
.login-page header > span {
  letter-spacing: 2px;
}
.login-page header h1 {
  line-height: 1.4;
}
.login-page > p {
  color: var(--muted);
}
@media (min-width: 1450px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1150px) {
  .header-inner {
    gap: 28px;
    padding: 0 28px;
  }
  .main-nav {
    gap: 18px;
  }
  .main-nav a {
    font-size: 11px;
  }
  .account-nav {
    gap: 12px;
  }
  .currency-label {
    display: none;
  }
  .page-width {
    padding-left: 28px;
    padding-right: 28px;
  }
  .hero-grid,
  .content-grid {
    grid-template-columns: minmax(0, 1.8fr) minmax(265px, 1fr);
    gap: 20px;
  }
  .card-grid {
    gap: 12px;
  }
  .market-card {
    padding: 15px 12px;
  }
  .outcome-links a {
    padding: 9px 7px;
    gap: 4px;
  }
  .outcome-links a > span {
    display: none;
  }
  .market-tabs {
    gap: 12px;
  }
  .market-tabs button {
    font-size: 10px;
  }
  .featured-heading h2 {
    font-size: 20px;
  }
  .site-footer {
    margin-left: 28px;
    margin-right: 28px;
  }
  .featured-market {
    padding: 20px;
  }
  .featured-price .button {
    font-size: 10px;
  }
  .featured-price i {
    display: none;
  }
}
@media (max-width: 900px) {
  .main-nav a:nth-child(2),
  .main-nav a:nth-child(4) {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .pulse-panel {
    display: none;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .content-grid > aside {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 30px;
    margin-top: 20px;
    align-items: start;
  }
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .market-card {
    padding: 20px;
  }
  .market-tabs {
    gap: 22px;
  }
  .market-tabs button {
    font-size: 12px;
  }
  .comparison-grid {
    gap: 12px;
  }
  .comparison-card {
    padding: 17px;
  }
  .comparison-brand h3 {
    font-size: 10px;
  }
  .comparison-brand {
    gap: 7px;
  }
  .comparison-title {
    font-size: 11px;
  }
  .comparison-note {
    font-size: 8px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-grid > aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: start;
  }
  .detail-grid > aside .news-panel {
    padding-top: 20px;
  }
}
@media (max-width: 600px) {
  .header-inner {
    height: 67px;
    padding: 0 18px;
    gap: 23px;
  }
  .brand {
    font-size: 20px;
  }
  .main-nav {
    display: none;
  }
  .account-nav {
    gap: 12px;
  }
  .account-nav > .button {
    font-size: 10px;
    padding: 8px 11px;
  }
  .account-nav .text-button {
    font-size: 11px;
  }
  .page-width {
    padding: 0 18px;
  }
  .market-strip {
    min-height: 40px;
    font-size: 9px;
  }
  .market-strip > span:nth-child(2),
  .market-strip a {
    display: none;
  }
  .welcome-row {
    display: block;
    padding: 27px 0 18px;
  }
  .welcome-row h1 {
    font-size: 32px;
    margin: 9px 0;
  }
  .welcome-row p {
    font-size: 11px;
    line-height: 1.6;
  }
  .welcome-row .eyebrow {
    font-size: 9px;
  }
  .search-field {
    width: 100%;
    margin-top: 23px;
  }
  .category-nav {
    margin-right: -18px;
    padding-bottom: 20px;
    gap: 5px;
  }
  .category-nav button {
    font-size: 11px;
    padding: 8px 12px;
  }
  .hero-grid {
    margin-bottom: 25px;
  }
  .featured-market {
    padding: 18px 16px 14px;
  }
  .featured-heading {
    gap: 13px;
    margin: 15px 0 18px;
    align-items: flex-start;
  }
  .featured-heading h2 {
    font-size: 19px;
    line-height: 1.4;
  }
  .featured-heading p {
    font-size: 9px;
    line-height: 1.7;
  }
  .market-thumbnail.large {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }
  .featured-price > strong {
    font-size: 36px;
  }
  .featured-price > span {
    font-size: 9px;
  }
  .featured-price .button {
    padding: 8px;
    font-size: 9px;
    gap: 5px;
  }
  .featured-price {
    gap: 10px;
  }
  .chart-toolbar {
    font-size: 8px;
  }
  .chart-caption {
    font-size: 7px;
  }
  .browse-toolbar {
    display: block;
  }
  .market-tabs {
    justify-content: space-between;
    gap: 5px;
  }
  .market-tabs button {
    font-size: 10px;
  }
  .sort-control {
    display: block;
    margin: 12px 0 0;
    padding-bottom: 10px;
    text-align: right;
  }
  .card-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .market-card {
    padding: 18px;
  }
  .card-heading {
    min-height: 45px;
    margin: 14px 0;
  }
  .card-heading h3 {
    font-size: 14px;
  }
  .card-probability {
    margin-top: 0;
    margin-bottom: 13px;
  }
  .card-probability > strong {
    font-size: 29px;
  }
  .card-probability > span:nth-child(2) {
    font-size: 10px;
  }
  .card-meta {
    font-size: 9px;
  }
  .outcome-links a {
    padding: 11px 12px;
    font-size: 12px;
  }
  .outcome-links a > span {
    display: inline;
    font-size: 9px;
  }
  .outcome-links a > b {
    font-size: 11px;
  }
  .content-grid > aside {
    display: block;
  }
  .suggest-panel {
    margin-top: 20px;
  }
  .news-item h3 {
    font-size: 13px;
  }
  .comparison-section {
    padding-top: 27px;
    margin-top: 28px;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .comparison-card {
    padding: 22px;
  }
  .comparison-brand h3 {
    font-size: 13px;
  }
  .comparison-title {
    min-height: 0;
    font-size: 13px;
  }
  .comparison-note {
    font-size: 10px;
  }
  .comparison-value {
    margin: 14px 0 10px;
  }
  .comparison-brand {
    margin-bottom: 14px;
  }
  .comparison-section h2 {
    font-size: 25px;
  }
  .context-label {
    display: none;
  }
  .comparison-disclaimer {
    font-size: 9px;
  }
  .join-banner {
    display: block;
    padding: 25px;
    margin: 30px 0;
  }
  .join-banner h2 {
    font-size: 22px;
    line-height: 1.4;
  }
  .join-banner p {
    line-height: 1.7;
  }
  .join-banner > .button {
    margin-top: 22px;
  }
  .site-footer {
    margin: 30px 18px 0;
    display: block;
    padding-bottom: 28px;
  }
  .site-footer > div {
    align-items: flex-start;
    margin-top: 25px;
    font-size: 9px;
  }
  .detail-page {
    padding-top: 20px;
  }
  .detail-heading {
    gap: 12px;
    align-items: flex-start;
  }
  .detail-heading h1 {
    font-size: 23px;
  }
  .detail-heading .save-button {
    font-size: 24px;
  }
  .detail-heading .eyebrow {
    font-size: 8px;
  }
  .detail-chart-panel {
    padding: 18px;
  }
  .market-stat-row {
    gap: 12px;
  }
  .market-stat-row strong {
    font-size: 11px;
    line-height: 1.6;
  }
  .market-stat-row span {
    font-size: 9px;
  }
  .detail-grid > aside {
    display: block;
  }
  .detail-grid {
    gap: 0;
  }
  .position-panel {
    margin-bottom: 25px;
  }
  .portfolio-stats {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .portfolio-stats > div {
    padding: 20px;
  }
  .learning-page {
    padding-top: 38px;
  }
  .learning-page h1 {
    font-size: 39px;
  }
  .learning-page .lead {
    font-size: 14px;
  }
  .learn-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .learn-grid section {
    border-top: 1px solid var(--line);
    padding-top: 20px;
  }
  .welcome-empty {
    min-height: 325px;
  }
  .welcome-empty h2 {
    font-size: 31px;
  }
  .empty-orbit {
    font-size: 190px;
  }
  .proposal-row {
    flex-wrap: wrap;
  }
  .proposal-row strong {
    min-width: 65%;
  }
  .login-page {
    min-height: 650px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 600px) {
  .header-inner {
    height: auto;
    min-height: 67px;
    flex-wrap: wrap;
    padding-top: 17px;
    gap: 12px;
  }
  .main-nav {
    display: flex;
    order: 3;
    width: 100%;
    height: 34px;
    justify-content: space-between;
    gap: 15px;
  }
  .main-nav a,
  .main-nav a:nth-child(2),
  .main-nav a:nth-child(4) {
    display: flex;
    font-size: 10px;
    padding-bottom: 8px;
  }
}

.category-geopolitics {
  --category-accent: var(--accent-geopolitics);
}

.brand-mark {
  display: block;
  flex-shrink: 0;
}
.comparison-brand .brand-mark {
  width: 27px;
  height: 27px;
}
.empty-orbit .brand-mark {
  width: 100%;
  height: 100%;
}

/* Featured market: sourced context beside an inspectable binary chart. */
.featured-layout.hero-grid {
  grid-template-columns: minmax(0, 1fr) 282px;
  align-items: start;
}
.featured-layout > .pulse-panel {
  display: flex;
  min-width: 0;
}
.featured-layout .featured-market {
  padding: 24px 28px;
}
.featured-layout .featured-heading h2 {
  max-width: 850px;
  font-size: 28px;
}
.featured-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px;
}
.featured-information {
  min-width: 0;
}
.featured-columns > .terminal-chart {
  align-self: start;
  padding-top: 24px;
}
.featured-layout .featured-price {
  flex-wrap: wrap;
}
.featured-layout .featured-price > strong {
  font-size: 38px;
}
.featured-news {
  padding: 17px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.featured-news .section-heading h2,
.discussion-panel h2 {
  font-size: 15px;
}
.featured-news .news-item {
  padding: 12px 0;
  gap: 10px;
}
.featured-news .news-number,
.featured-news .read-story {
  display: none;
}
.featured-news .news-item h3 {
  font-size: 13px;
  line-height: 1.55;
  margin: 5px 0 0;
}
.featured-news .news-source {
  font-size: 10px;
}
.chart-legend {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
}
.chart-legend > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.chart-legend strong {
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
}
.chart-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}
.terminal-chart .chart-body svg {
  width: 100%;
  overflow: hidden;
  touch-action: pan-y;
}
.chart-axis-label {
  fill: var(--muted);
  font-size: 12px;
}
.terminal-chart .chart-inspect {
  justify-content: flex-end;
  margin: 6px 0;
}
.terminal-chart .chart-caption {
  font-size: 10px;
  line-height: 1.5;
}
.terminal-chart .chart-placeholder {
  min-height: 260px;
}
.discussion-panel {
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-top: 12px;
  min-width: 0;
}
.discussion-refresh,
.discussion-status button {
  background: none;
  border: 0;
  color: var(--fg-2);
  font-size: 10px;
  padding: 5px 0 5px 8px;
}
.discussion-tabs {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  border-bottom: 1px solid var(--line);
}
.discussion-tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 8px 0;
  color: var(--muted);
  font-size: 12px;
}
.discussion-tabs button[aria-pressed="true"] {
  color: var(--foreground);
  border-bottom-color: var(--foreground);
}
.discussion-tabs span {
  font-size: 10px;
  margin-left: 4px;
}
.discussion-note {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  margin: 10px 0;
}
.discussion-scroll {
  max-height: 228px;
  min-height: 98px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  padding-right: 10px;
}
.discussion-item {
  display: flex;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.discussion-item:last-child {
  border-bottom: 0;
}
.discussion-item > div {
  min-width: 0;
  flex: 1;
}
.comment-avatar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--foreground);
  font-size: 12px;
  background: var(--background);
}
.comment-byline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.comment-byline strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.provider-badge {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 9px;
  color: var(--fg-2);
}
.comment-handle {
  font-size: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.discussion-item p {
  color: var(--fg-2);
  font-size: 12px;
  line-height: 1.6;
  margin: 6px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.discussion-item a,
.discussion-item time {
  font-size: 9px;
  color: var(--muted);
}
.discussion-item a:hover {
  text-decoration: underline;
  color: var(--foreground);
}
.discussion-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 9px;
  margin: 6px 0;
}
.comment-login {
  display: block;
  font-size: 11px;
  padding: 9px 0 0;
  color: var(--fg-2);
}
.comment-form {
  display: grid;
  gap: 9px;
  padding-top: 8px;
}
.comment-form label {
  display: grid;
  gap: 5px;
  font-size: 10px;
  color: var(--fg-2);
}
.comment-form input,
.comment-form textarea {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  padding: 8px;
  background: var(--well);
  color: var(--foreground);
  font: inherit;
  font-size: 12px;
  resize: vertical;
}
.comment-form button {
  justify-self: start;
  font-size: 11px;
}
.comment-form > span {
  font-size: 9px;
  color: var(--muted);
}
.detail-context {
  min-width: 0;
}
@media (max-width: 800px) {
  .featured-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .featured-columns > .terminal-chart {
    grid-row: 1;
    padding-top: 5px;
  }
  .featured-layout .featured-market {
    padding: 18px 16px;
  }
  .featured-layout .featured-heading h2 {
    font-size: 21px;
  }
  .terminal-chart .chart-legend {
    font-size: 12px;
    gap: 18px;
  }
  .terminal-chart .chart-caption {
    font-size: 9px;
  }
}

/* Navigation and headlines remain mounted in the root layout across routes. */
.header-inner {
  gap: 28px;
}
.main-nav {
  gap: 22px;
}
.main-nav a {
  white-space: nowrap;
}
.featured-layout .featured-heading h2 {
  font-size: 24px;
}
.featured-layout .featured-price .button {
  margin-left: 0;
}
@media (max-width: 1200px) {
  .featured-columns {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .featured-columns > .terminal-chart {
    grid-row: 1;
    padding-top: 5px;
  }
}
@media (max-width: 1000px) {
  :root {
    --site-chrome-height: 155px;
  }
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    height: auto;
    gap: 0 16px;
    padding: 14px 24px 0;
  }
  .header-inner > .brand {
    grid-column: 1;
    grid-row: 1;
  }
  .account-nav {
    grid-column: 2;
    grid-row: 1;
  }
  .main-nav {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    width: 100%;
    overflow-x: auto;
    gap: 24px;
    padding: 10px 0;
    margin: 0;
    scrollbar-width: thin;
  }
  .main-nav a,
  .main-nav a:nth-child(2),
  .main-nav a:nth-child(4) {
    display: block;
    padding: 5px 0;
    font-size: 12px;
  }
}
@media (max-width: 760px) {
  .featured-layout.hero-grid {
    grid-template-columns: 1fr;
  }
  .featured-layout > .pulse-panel {
    display: flex;
    padding: 20px 23px 0;
  }
  .featured-layout .featured-heading h2 {
    font-size: 21px;
  }
  .header-inner {
    padding-left: 18px;
    padding-right: 18px;
  }
  .main-nav {
    gap: 20px;
  }
}
