:root {
  color-scheme: dark;
  --ink: #0b0d0d;
  --ink-soft: #101312;
  --panel: rgba(19, 23, 22, 0.88);
  --panel-solid: #141817;
  --panel-raised: #191e1c;
  --line: rgba(232, 239, 229, 0.12);
  --line-strong: rgba(232, 239, 229, 0.22);
  --text: #f2f0e9;
  --muted: #929b96;
  --muted-2: #66706a;
  --lime: #c9ff69;
  --lime-soft: rgba(201, 255, 105, 0.11);
  --blue: #89d9ff;
  --amber: #ffac68;
  --red: #ff7878;
  --sidebar: 226px;
  --radius: 13px;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", ui-monospace, monospace;
  --sans: Inter, "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    var(--ink);
  background-size: 48px 48px;
  font-family: var(--sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }

::selection { color: #10130d; background: var(--lime); }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #303632; border: 2px solid var(--ink); border-radius: 8px; }

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

.ambient {
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(100px);
  opacity: .07;
  z-index: 0;
}

.ambient-one { width: 440px; height: 440px; top: -180px; right: 12%; background: var(--lime); }
.ambient-two { width: 380px; height: 380px; bottom: 0; left: 42%; background: var(--blue); opacity: .035; }

.app-shell {
  position: relative;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 26px 18px 20px;
  border-right: 1px solid var(--line);
  background: rgba(10, 12, 12, .92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 29px;
  height: 34px;
  display: block;
}

.brand-mark i {
  position: absolute;
  display: block;
  width: 8px;
  height: 29px;
  background: var(--lime);
  transform: skew(-31deg);
  border-radius: 1px;
}

.brand-mark i:first-child { left: 7px; top: 0; }
.brand-mark i:last-child { right: 4px; bottom: 0; height: 23px; background: var(--text); opacity: .76; }

.brand-type { display: grid; line-height: .88; font-size: 17px; letter-spacing: .12em; }
.brand-type strong:last-child { color: var(--lime); }

.primary-nav { margin-top: 72px; }
.nav-label, .build-label, .kicker {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 9px;
  color: var(--muted-2);
}

.nav-label { margin: 0 11px 11px; }
.nav-item {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 0 11px;
  margin: 3px 0;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #a4aca7;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: .18s ease;
}

.nav-item:hover { color: var(--text); background: rgba(255,255,255,.035); }
.nav-item.active { color: var(--text); border-color: var(--line); background: rgba(255,255,255,.055); }
.nav-item.active::before {
  content: "";
  position: absolute;
  left: -19px;
  width: 3px;
  height: 19px;
  border-radius: 0 3px 3px 0;
  background: var(--lime);
  box-shadow: 0 0 18px rgba(201,255,105,.45);
}

.nav-count {
  margin-left: auto;
  padding: 2px 6px;
  color: var(--muted);
  background: rgba(255,255,255,.05);
  border-radius: 4px;
  font: 9px var(--mono);
}

.nav-icon { position: relative; display: inline-block; width: 15px; height: 15px; opacity: .75; }
.nav-item.active .nav-icon { opacity: 1; color: var(--lime); }
.icon-grid { border: 1px solid currentColor; }
.icon-grid::before, .icon-grid::after { content: ""; position: absolute; background: currentColor; opacity: .8; }
.icon-grid::before { width: 1px; inset: 0 auto 0 6px; }
.icon-grid::after { height: 1px; inset: 6px 0 auto; }
.icon-list { border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.icon-list::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; border-top: 1px solid currentColor; }
.icon-flask::before { content: ""; position: absolute; width: 7px; height: 8px; left: 4px; bottom: 1px; border: 1px solid currentColor; border-radius: 1px 1px 5px 5px; transform: rotate(45deg); }
.icon-flask::after { content: ""; position: absolute; width: 8px; top: 3px; left: 1px; border-top: 1px solid currentColor; transform: rotate(-45deg); }
.icon-pulse::before { content: ""; position: absolute; inset: 7px 0 auto; border-top: 1px solid currentColor; }
.icon-pulse::after { content: ""; position: absolute; width: 7px; height: 7px; left: 4px; top: 4px; border-left: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(135deg); }

.sidebar-spacer { flex: 1; }
.mode-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: linear-gradient(135deg, var(--lime-soft), rgba(255,255,255,.018));
}

.mode-card-head { display: flex; align-items: center; gap: 8px; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .07em; color: #dfe9d6; }
.mode-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 9px rgba(201,255,105,.6); }
.mode-card p { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.build-label { margin: 18px 2px 0; font-size: 8px; }

.main-content { position: relative; z-index: 1; grid-column: 2; min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 4vw, 62px);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 13, 13, .8);
  backdrop-filter: blur(18px);
}

.breadcrumb { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.breadcrumb span { color: var(--muted-2); }
.breadcrumb b { color: #3c4540; font-weight: 400; }
.breadcrumb strong { font-weight: 550; }
.topbar-status { display: flex; align-items: center; gap: 10px; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.topbar-label { color: var(--muted-2); }
.topbar-status strong { font-weight: 500; color: #b7beb9; }
.status-beacon { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #67706b; }
.status-beacon.ok { background: var(--lime); box-shadow: 0 0 9px rgba(201,255,105,.5); }
.status-beacon.partial { background: var(--amber); }
.status-beacon.failed { background: var(--red); }
.mobile-menu { display: none; }

.page-wrap { width: min(1440px, 100%); margin: 0 auto; padding: 0 clamp(24px, 4vw, 62px) 88px; }
.view { display: none; animation: viewIn .3s ease; }
.view.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.hero { min-height: 530px; display: flex; flex-direction: column; justify-content: center; padding: 74px 0 48px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr); gap: 60px; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #87918b; font: 9px var(--mono); letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; border-top: 1px solid #4d5751; }
.eyebrow span { color: var(--lime); }
.hero h1, .page-intro h1 {
  margin: 22px 0 20px;
  max-width: 780px;
  font-size: clamp(48px, 6.4vw, 91px);
  line-height: .91;
  letter-spacing: -.063em;
  font-weight: 620;
}

.hero h1 em { color: var(--lime); font-style: normal; font-weight: 350; }
.hero-copy { max-width: 630px; margin: 0; color: #a4aca7; font-size: 16px; line-height: 1.65; }
.hero-actions { display: flex; gap: 11px; margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 43px;
  padding: 0 17px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--text);
  background: rgba(255,255,255,.025);
  cursor: pointer;
  font-weight: 570;
  transition: .18s ease;
}
.button:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.06); }
.button-primary { color: #12150f; border-color: var(--lime); background: var(--lime); }
.button-primary:hover { color: #12150f; border-color: #d8ff94; background: #d8ff94; }
.button-ghost { color: #b5bdb8; }
.button-small { min-height: 34px; padding: 0 12px; font-size: 11px; }

.hero-orbit { position: relative; justify-self: center; width: min(36vw, 430px); aspect-ratio: 1; }
.orbit-ring { position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.ring-one { inset: 7%; }
.ring-two { inset: 23%; border-style: dashed; animation: orbitSpin 45s linear infinite; }
.orbit-axis { position: absolute; left: 50%; top: 3%; bottom: 3%; border-left: 1px solid var(--line); transform: rotate(38deg); }
.orbit-axis::after { content: ""; position: absolute; width: 7px; height: 7px; top: 14%; left: -4px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 15px rgba(255,172,104,.6); }
.orbit-core {
  position: absolute;
  inset: 32%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201,255,105,.3);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(201,255,105,.13), rgba(14,17,16,.95) 67%);
  box-shadow: 0 0 70px rgba(201,255,105,.06);
}
.orbit-core span { color: var(--lime); font: 9px var(--mono); letter-spacing: .18em; }
.orbit-core strong { margin-top: 7px; font: 500 clamp(25px, 3vw, 40px) var(--mono); letter-spacing: -.06em; }
.orbit-core small { color: var(--muted-2); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.orbit-tag { position: absolute; padding: 5px 7px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); background: var(--ink-soft); font: 8px var(--mono); letter-spacing: .12em; }
.tag-k { top: 13%; right: 6%; }
.tag-p { bottom: 14%; left: 3%; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.metric-card { position: relative; min-height: 162px; padding: 22px; border-right: 1px solid var(--line); }
.metric-card:last-child { border-right: 0; }
.metric-card::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 0; height: 2px; opacity: .7; }
.accent-lime::after { background: var(--lime); }
.accent-blue::after { background: var(--blue); }
.accent-amber::after { background: var(--amber); }
.accent-muted::after { background: #505853; }
.metric-top { display: flex; justify-content: space-between; gap: 12px; color: #bbc2bd; font-size: 11px; }
.metric-top small { color: var(--muted-2); font: 8px var(--mono); letter-spacing: .1em; }
.metric-card > strong { display: block; margin-top: 22px; font: 500 32px var(--mono); letter-spacing: -.05em; }
.metric-card > p { margin: 7px 0 0; color: var(--muted-2); font-size: 11px; }

.section-heading { margin: 105px 0 28px; }
.split-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: end; }
.section-heading h2, .workflow-copy h2, .gate-copy h2 { margin: 16px 0 0; font-size: clamp(31px, 4vw, 52px); line-height: 1.02; letter-spacing: -.045em; font-weight: 530; }
.split-heading > p { max-width: 500px; margin: 0 0 3px; color: var(--muted); line-height: 1.65; }

.strategy-grid { display: grid; grid-template-columns: 1.2fr .9fr .9fr; gap: 12px; }
.strategy-card { position: relative; min-height: 382px; display: flex; flex-direction: column; padding: 25px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.strategy-card.featured { background: linear-gradient(150deg, rgba(201,255,105,.075), rgba(19,23,22,.9) 42%); }
.strategy-card.featured::after { content: "/"; position: absolute; right: -7px; bottom: -72px; color: rgba(201,255,105,.035); font-size: 280px; font-weight: 800; transform: skew(-12deg); }
.strategy-index { position: absolute; right: 23px; top: 20px; color: #3d4640; font: 38px var(--mono); }
.strategy-status { display: flex; align-items: center; gap: 7px; width: max-content; padding: 5px 8px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); font: 8px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.strategy-status span { width: 5px; height: 5px; border-radius: 50%; background: var(--muted-2); }
.strategy-status.ready { color: #d9e9c9; background: var(--lime-soft); }
.strategy-status.ready span { background: var(--lime); }
.strategy-status.model span { background: var(--blue); }
.strategy-status.queued span { background: var(--amber); }
.strategy-card h3 { margin: 37px 0 16px; font-size: clamp(25px, 2.6vw, 37px); line-height: .99; letter-spacing: -.04em; font-weight: 530; }
.strategy-card p { max-width: 390px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.strategy-formula { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; margin: auto 0 20px; padding: 15px; border: 1px solid var(--line); border-radius: 7px; background: rgba(8,10,9,.55); font: 12px var(--mono); }
.strategy-formula b { color: #566059; font-weight: 400; }
.strategy-formula strong { color: var(--lime); font-weight: 500; }
.strategy-formula sub { font-size: 7px; color: var(--muted); }
.text-link, .text-button { position: relative; z-index: 2; width: max-content; padding: 0; border: 0; color: #c5ccc7; background: transparent; cursor: pointer; font-size: 11px; }
.text-link { display: flex; gap: 30px; align-items: center; padding-bottom: 4px; border-bottom: 1px solid #3d4640; }
.text-link span { color: var(--lime); }
.text-button { color: var(--muted); }
.text-button:hover, .text-link:hover { color: var(--text); }
.mini-meter { height: 4px; margin-top: auto; overflow: hidden; background: rgba(255,255,255,.045); border-radius: 5px; }
.mini-meter i { display: block; height: 100%; width: var(--meter); background: linear-gradient(90deg, #425047, var(--blue)); }
.strategy-card:last-child .mini-meter i { background: linear-gradient(90deg, #4d433a, var(--amber)); }
.strategy-foot { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted-2); font-size: 10px; }
.strategy-foot strong { color: #b9c0bb; font: 9px var(--mono); text-transform: uppercase; }

.workflow-panel { display: grid; grid-template-columns: .78fr 1.22fr; gap: 70px; margin-top: 94px; padding: 55px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(105deg, rgba(255,255,255,.025), rgba(201,255,105,.022)); }
.workflow-copy p, .gate-copy p { color: var(--muted); line-height: 1.65; }
.workflow-steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; align-self: center; margin: 0; padding: 0; list-style: none; }
.workflow-steps::before { content: ""; position: absolute; left: 8%; right: 8%; top: 18px; border-top: 1px dashed #3c4640; }
.workflow-steps li { position: relative; text-align: center; }
.workflow-steps li > span { position: relative; z-index: 2; display: grid; place-items: center; width: 37px; height: 37px; margin: 0 auto 16px; border: 1px solid #465047; border-radius: 50%; color: var(--lime); background: var(--panel-solid); font: 8px var(--mono); }
.workflow-steps strong, .workflow-steps small { display: block; }
.workflow-steps strong { font-size: 11px; font-weight: 550; }
.workflow-steps small { margin-top: 5px; color: var(--muted-2); font-size: 8px; line-height: 1.4; }

.two-col-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.topic-panel, .recent-panel { min-height: 300px; padding: 24px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.panel-head h3 { margin: 7px 0 0; font-size: 17px; font-weight: 530; letter-spacing: -.02em; }
.panel-head > small { color: var(--muted-2); font: 8px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.topic-bars { display: grid; gap: 14px; margin-top: 28px; }
.topic-bar-head { display: flex; justify-content: space-between; color: #b6beb8; font-size: 10px; }
.topic-bar-head strong { font: 9px var(--mono); font-weight: 500; }
.topic-bar-track { height: 4px; margin-top: 7px; overflow: hidden; border-radius: 3px; background: rgba(255,255,255,.045); }
.topic-bar-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lime), #80b75f); }
.topic-row:nth-child(2) i { background: linear-gradient(90deg, var(--blue), #5685a0); }
.topic-row:nth-child(3) i { background: linear-gradient(90deg, var(--amber), #9c6a45); }
.topic-row:nth-child(n+4) i { background: linear-gradient(90deg, #87928b, #465047); }
.skeleton-line { height: 24px; border-radius: 4px; background: linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,.07), rgba(255,255,255,.03)); background-size: 200%; animation: shimmer 1.4s infinite; }
.skeleton-line.short { width: 73%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.compact-runs { margin-top: 18px; }
.compact-run { display: grid; grid-template-columns: 17px 1fr auto; gap: 11px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.compact-run:last-child { border-bottom: 0; }
.run-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
.run-dot.ok { background: var(--lime); box-shadow: 0 0 8px rgba(201,255,105,.3); }
.run-dot.partial { background: var(--amber); }
.run-dot.failed { background: var(--red); }
.compact-run p { margin: 0; color: #c5cbc7; font-size: 10px; }
.compact-run small { display: block; margin-top: 3px; color: var(--muted-2); font-size: 8px; }
.compact-run > strong { color: var(--muted); font: 8px var(--mono); font-weight: 400; text-transform: uppercase; }
.empty-inline { padding: 30px 0; color: var(--muted-2); text-align: center; font-size: 11px; }

.page-intro { padding: 74px 0 38px; }
.page-intro h1 { margin: 18px 0 14px; font-size: clamp(46px, 5vw, 70px); }
.page-intro p { max-width: 650px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.catalog-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) auto auto auto; gap: 10px; align-items: center; padding: 12px; }
.search-box { height: 43px; display: flex; align-items: center; gap: 11px; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; background: rgba(3,5,4,.35); }
.search-box > span { position: relative; width: 14px; height: 14px; border: 1px solid #727c76; border-radius: 50%; }
.search-box > span::after { content: ""; position: absolute; width: 5px; right: -4px; bottom: -2px; border-top: 1px solid #727c76; transform: rotate(45deg); }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 12px; }
.search-box input::placeholder { color: #5e6761; }
.search-box kbd { padding: 3px 5px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted-2); background: rgba(255,255,255,.025); font: 8px var(--mono); }
.venue-filter { height: 43px; display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: rgba(3,5,4,.35); }
.venue-filter button { padding: 0 12px; border: 0; border-radius: 4px; color: var(--muted); background: transparent; cursor: pointer; font-size: 10px; }
.venue-filter button.active { color: var(--text); background: #252b28; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.select-wrap select { height: 43px; padding: 0 32px 0 12px; border: 1px solid var(--line); border-radius: 7px; outline: 0; color: #b9c0bc; background: #111413; cursor: pointer; font-size: 10px; }
.catalog-meta { display: flex; justify-content: space-between; align-items: center; margin: 19px 2px 11px; color: var(--muted); font-size: 10px; }
.catalog-meta p { margin: 0; }
.catalog-meta strong { color: var(--text); font: 11px var(--mono); font-weight: 500; }
.metadata-note { display: flex; align-items: center; gap: 7px; }
.metadata-note span { display: grid; place-items: center; width: 15px; height: 15px; border: 1px solid var(--line-strong); border-radius: 50%; font: 8px var(--mono); }

.market-table { overflow: hidden; }
.market-table-head, .market-row { display: grid; grid-template-columns: minmax(300px, 1.6fr) minmax(90px, .45fr) minmax(105px, .5fr) minmax(100px, .4fr) 30px; gap: 20px; align-items: center; }
.market-table-head { padding: 13px 20px; border-bottom: 1px solid var(--line); color: var(--muted-2); font: 8px var(--mono); text-transform: uppercase; letter-spacing: .09em; }
.market-row { min-height: 77px; padding: 13px 20px; border: 0; border-bottom: 1px solid var(--line); background: transparent; cursor: pointer; text-align: left; transition: .15s ease; }
.market-row:hover { background: rgba(255,255,255,.025); }
.market-row:focus-visible { outline: 1px solid var(--lime); outline-offset: -1px; }
.market-question { min-width: 0; }
.market-question strong { display: block; overflow: hidden; color: #dce0dd; font-size: 12px; line-height: 1.45; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.market-question small { display: block; margin-top: 5px; overflow: hidden; color: var(--muted-2); font: 8px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.topic-chip { width: max-content; max-width: 100%; padding: 5px 7px; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; color: #9ba49e; background: rgba(255,255,255,.025); font: 8px var(--mono); text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; }
.market-close { color: #a7afa9; font: 9px var(--mono); line-height: 1.45; }
.market-close small { display: block; color: var(--muted-2); font-size: 8px; }
.venue-badge { display: flex; align-items: center; gap: 7px; color: #b5bdb7; font-size: 9px; text-transform: capitalize; }
.venue-badge i { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 4px; color: #18200e; background: var(--lime); font: 700 9px var(--mono); }
.venue-badge.polymarket i { color: #0b1a23; background: var(--blue); }
.market-arrow { color: #56605a; font-size: 18px; transition: .15s; }
.market-row:hover .market-arrow { color: var(--lime); transform: translateX(2px); }
.table-loading { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; color: var(--muted-2); font-size: 10px; }
.table-loading i { width: 19px; height: 19px; border: 1px solid #39423d; border-top-color: var(--lime); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.catalog-pagination { display: flex; align-items: center; justify-content: space-between; min-height: 57px; padding: 0 20px; }
.catalog-pagination p { color: var(--muted-2); font: 8px var(--mono); }
.catalog-pagination div { display: flex; gap: 6px; }
.catalog-pagination button { width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 5px; color: #b2bab4; background: rgba(255,255,255,.025); cursor: pointer; }
.catalog-pagination button:disabled { opacity: .3; cursor: default; }
.catalog-empty { min-height: 220px; display: grid; place-items: center; padding: 30px; color: var(--muted); text-align: center; }

.lab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lab-card { padding: 27px; }
.lab-card-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.lab-number { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid var(--line); border-radius: 6px; color: var(--lime); background: rgba(255,255,255,.025); font: 9px var(--mono); }
.lab-card-head h2 { margin: 5px 0 0; font-size: 20px; font-weight: 520; letter-spacing: -.025em; }
.lab-state { padding: 5px 7px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); font: 8px var(--mono); text-transform: uppercase; }
.lab-state.ready { color: #cde8af; background: var(--lime-soft); }
.lab-state.model { color: #b5ddf2; background: rgba(137,217,255,.08); }
.lab-intro { min-height: 58px; margin: 23px 0 20px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.calculator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.calculator-grid label { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 51px; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; color: #929b95; background: rgba(5,7,6,.33); font-size: 9px; }
.calculator-grid label > span { display: flex; align-items: baseline; gap: 4px; color: var(--muted-2); font: 9px var(--mono); white-space: nowrap; }
.calculator-grid input { width: 58px; padding: 5px 2px; border: 0; border-bottom: 1px solid #3d4741; outline: 0; color: var(--text); background: transparent; text-align: right; font: 13px var(--mono); }
.calculator-grid input:focus { border-color: var(--lime); }
.calculator-result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--line); }
.calculator-result > div { padding: 16px 13px; background: #111513; }
.calculator-result span, .calculator-result strong { display: block; }
.calculator-result span { color: var(--muted-2); font-size: 8px; }
.calculator-result strong { margin-top: 7px; font: 500 17px var(--mono); }
.calculator-result.positive strong { color: var(--lime); }
.calculator-result.negative strong { color: var(--red); }
.formula-caption { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 13px; }
.formula-caption code { color: #747e78; font: 8px var(--mono); }
.formula-caption span { color: var(--muted); font-size: 8px; text-align: right; }

.gate-panel { display: grid; grid-template-columns: .72fr 1.28fr; gap: 68px; margin-top: 12px; padding: 45px; }
.gate-copy h2 { margin-top: 18px; }
.gate-list { display: grid; }
.gate-list > div { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: center; min-height: 72px; border-bottom: 1px solid var(--line); }
.gate-list > div:last-child { border: 0; }
.gate-check { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid rgba(201,255,105,.2); border-radius: 50%; color: var(--lime); background: var(--lime-soft); font: 10px var(--mono); }
.gate-list p, .gate-list strong, .gate-list small { display: block; margin: 0; }
.gate-list strong { color: #cbd1cd; font-size: 11px; font-weight: 520; }
.gate-list small { margin-top: 5px; color: var(--muted-2); font-size: 9px; line-height: 1.45; }

.data-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.data-stats article { min-height: 145px; padding: 21px; }
.data-stats span, .data-stats small { display: block; color: var(--muted-2); }
.data-stats span { font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.data-stats strong { display: block; margin-top: 18px; font: 500 28px var(--mono); text-transform: uppercase; }
.data-stats small { margin-top: 7px; font-size: 9px; }
.data-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 12px; margin-top: 12px; }
.lineage-panel, .venue-panel, .runs-panel { padding: 24px; }
.live-chip { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font: 8px var(--mono); text-transform: uppercase; }
.live-chip i { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }
.lineage-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 12px; align-items: center; margin-top: 38px; }
.lineage-flow > div { min-width: 0; }
.lineage-flow > div > span, .lineage-flow strong, .lineage-flow small { display: block; }
.lineage-flow > div > span { color: var(--lime); font: 8px var(--mono); }
.lineage-flow strong { margin-top: 9px; font-size: 11px; font-weight: 550; }
.lineage-flow small { margin-top: 5px; color: var(--muted-2); font-size: 8px; line-height: 1.4; }
.lineage-flow > i { color: #424b45; font-style: normal; }
.lineage-note { display: grid; grid-template-columns: 24px 1fr; gap: 12px; margin-top: 31px; padding: 13px; border: 1px solid rgba(255,172,104,.16); border-radius: 7px; background: rgba(255,172,104,.045); }
.lineage-note > span { display: grid; place-items: center; width: 21px; height: 21px; border: 1px solid rgba(255,172,104,.3); border-radius: 50%; color: var(--amber); font: 9px var(--mono); }
.lineage-note p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.lineage-note strong { color: #d7c0ad; }
.venue-chart { margin-top: 32px; }
.venue-row { display: flex; align-items: center; justify-content: space-between; }
.venue-row > div { display: flex; align-items: center; gap: 10px; }
.venue-row > div > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 5px; color: #15200d; background: var(--lime); font: 700 10px var(--mono); }
.venue-row.polymarket { margin-top: 25px; }
.venue-row.polymarket > div > span { color: #0c1c24; background: var(--blue); }
.venue-row p, .venue-row strong, .venue-row small { display: block; margin: 0; }
.venue-row strong { font-size: 10px; font-weight: 550; }
.venue-row small { margin-top: 2px; color: var(--muted-2); font-size: 8px; }
.venue-row > b { color: #cbd1cd; font: 500 15px var(--mono); }
.coverage-track { height: 4px; margin-top: 10px; overflow: hidden; border-radius: 5px; background: rgba(255,255,255,.045); }
.coverage-track i { display: block; width: 0; height: 100%; background: var(--lime); transition: width .5s ease; }
.venue-row.polymarket + .coverage-track i { background: var(--blue); }
.runs-panel { margin-top: 12px; }
.runs-table { margin-top: 20px; overflow-x: auto; }
.runs-head, .run-row { min-width: 650px; display: grid; grid-template-columns: 110px minmax(170px, 1fr) 100px 110px minmax(150px, .8fr); gap: 15px; align-items: center; }
.runs-head { min-height: 34px; padding: 0 12px; border-bottom: 1px solid var(--line); color: var(--muted-2); font: 8px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.run-row { min-height: 57px; padding: 0 12px; border-bottom: 1px solid var(--line); color: #aeb6b0; font-size: 9px; }
.run-row:last-child { border-bottom: 0; }
.run-status { width: max-content; display: flex; align-items: center; gap: 7px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 3px; font: 8px var(--mono); text-transform: uppercase; }
.run-status i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted-2); }
.run-status.ok i { background: var(--lime); }
.run-status.partial i { background: var(--amber); }
.run-status.failed i { background: var(--red); }
.run-row time, .run-artifact { color: var(--muted); font: 8px var(--mono); }
.run-artifact { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.footer { display: flex; justify-content: space-between; gap: 20px; padding: 22px clamp(24px, 4vw, 62px); border-top: 1px solid var(--line); color: var(--muted-2); font: 8px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.footer p { margin: 0; }
.footer span { color: var(--lime); }

.market-dialog {
  width: min(680px, calc(100vw - 30px));
  max-height: min(760px, calc(100vh - 30px));
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: var(--text);
  background: #131716;
  box-shadow: 0 30px 120px rgba(0,0,0,.7);
}
.market-dialog::backdrop { background: rgba(3,5,4,.72); backdrop-filter: blur(5px); }
.dialog-close { position: sticky; float: right; top: 16px; right: 16px; z-index: 2; width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: #1b201e; cursor: pointer; font-size: 18px; line-height: 1; }
.dialog-close:hover { color: var(--text); }
.dialog-content { padding: 40px 42px 44px; }
.dialog-venue { display: flex; align-items: center; gap: 9px; color: var(--lime); font: 8px var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.dialog-venue.polymarket { color: var(--blue); }
.dialog-content h2 { max-width: 560px; margin: 19px 0 12px; font-size: clamp(25px, 4vw, 38px); line-height: 1.08; letter-spacing: -.04em; font-weight: 540; }
.dialog-id { overflow: hidden; color: var(--muted-2); font: 8px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.dialog-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 28px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--line); }
.dialog-meta > div { padding: 14px; background: #101312; }
.dialog-meta span, .dialog-meta strong { display: block; }
.dialog-meta span { color: var(--muted-2); font-size: 8px; text-transform: uppercase; }
.dialog-meta strong { margin-top: 6px; overflow: hidden; color: #bcc4be; font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.dialog-section { margin-top: 25px; }
.dialog-section h3 { margin: 0 0 9px; color: var(--muted-2); font: 8px var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.dialog-section p { max-height: 180px; margin: 0; overflow: auto; color: #a5ada7; font-size: 11px; line-height: 1.65; white-space: pre-line; }
.dialog-actions { display: flex; gap: 10px; margin-top: 29px; }
.dialog-actions a { text-decoration: none; }
.dialog-loading { display: grid; place-items: center; min-height: 340px; color: var(--muted); }

.toast { position: fixed; right: 20px; bottom: 20px; z-index: 100; max-width: 340px; padding: 12px 15px; border: 1px solid var(--line-strong); border-radius: 7px; color: #cbd1cd; background: #1a1f1d; box-shadow: 0 15px 40px rgba(0,0,0,.4); font-size: 10px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s; }
.toast.visible { opacity: 1; transform: none; }
.mobile-scrim { display: none; }

@media (max-width: 1120px) {
  :root { --sidebar: 208px; }
  .hero-grid { grid-template-columns: 1.25fr .75fr; gap: 20px; }
  .hero-orbit { width: 330px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-card:nth-child(2) { border-right: 0; }
  .metric-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .strategy-grid { grid-template-columns: 1fr 1fr; }
  .strategy-card.featured { grid-column: span 2; min-height: 340px; }
  .workflow-panel { grid-template-columns: 1fr; gap: 40px; }
  .catalog-toolbar { grid-template-columns: 1fr 1fr; }
  .search-box { grid-column: span 2; }
  .market-table-head, .market-row { grid-template-columns: minmax(250px, 1.5fr) 100px 100px 28px; }
  .market-table-head span:nth-child(2), .market-row > .topic-chip { display: none; }
  .lab-grid { grid-template-columns: 1fr; }
  .lab-intro { min-height: 0; }
  .data-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  :root { --sidebar: 245px; }
  .app-shell { display: block; }
  .sidebar { transform: translateX(-100%); transition: transform .23s ease; box-shadow: 20px 0 60px rgba(0,0,0,.55); }
  body.menu-open .sidebar { transform: none; }
  .main-content { width: 100%; }
  .mobile-menu { width: 35px; height: 35px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; margin-right: 12px; border: 1px solid var(--line); border-radius: 6px; background: transparent; }
  .mobile-menu span { width: 14px; border-top: 1px solid var(--text); }
  .mobile-scrim { position: fixed; inset: 0; z-index: 25; background: rgba(0,0,0,.55); }
  body.menu-open .mobile-scrim { display: block; }
  .breadcrumb { margin-right: auto; }
  .topbar-label { display: none; }
  .hero { min-height: auto; padding-top: 76px; }
  .hero-grid { display: block; }
  .hero-orbit { width: min(420px, 88vw); margin: 45px auto 0; }
  .split-heading { grid-template-columns: 1fr; gap: 20px; }
  .two-col-row { grid-template-columns: 1fr; }
  .gate-panel { grid-template-columns: 1fr; gap: 32px; }
  .data-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  body { background-size: 34px 34px; }
  .topbar { height: 61px; padding: 0 15px; }
  .breadcrumb span, .breadcrumb b { display: none; }
  .topbar-status { gap: 6px; }
  .topbar-status strong { max-width: 94px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 8px; }
  .page-wrap { padding: 0 15px 65px; }
  .hero { padding-top: 56px; }
  .hero h1 { font-size: clamp(45px, 15vw, 66px); }
  .hero-copy { font-size: 14px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-orbit { margin-top: 24px; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 135px; border-right: 0; border-bottom: 1px solid var(--line); }
  .metric-card:last-child { border-bottom: 0; }
  .section-heading { margin-top: 75px; }
  .strategy-grid { display: block; }
  .strategy-card, .strategy-card.featured { min-height: 355px; margin-bottom: 10px; }
  .strategy-card.featured { grid-column: auto; }
  .workflow-panel { padding: 28px 20px; }
  .workflow-steps { grid-template-columns: 1fr; gap: 7px; }
  .workflow-steps::before { left: 18px; right: auto; top: 20px; bottom: 20px; border-left: 1px dashed #3c4640; border-top: 0; }
  .workflow-steps li { display: flex; align-items: center; gap: 14px; text-align: left; }
  .workflow-steps li > span { flex: 0 0 auto; margin: 0; }
  .topic-panel, .recent-panel { padding: 19px; }
  .page-intro { padding-top: 50px; }
  .page-intro h1 { font-size: 47px; }
  .catalog-toolbar { display: flex; flex-direction: column; align-items: stretch; }
  .search-box { grid-column: auto; }
  .venue-filter button { flex: 1; }
  .select-wrap select { width: 100%; }
  .catalog-meta { align-items: flex-start; gap: 12px; }
  .metadata-note { text-align: right; }
  .market-table-head { display: none; }
  .market-row { grid-template-columns: 1fr 24px; gap: 12px; min-height: 98px; padding: 16px; }
  .market-row > .topic-chip, .market-row > .market-close { display: none; }
  .market-row .venue-badge { grid-column: 1; grid-row: 2; }
  .market-row .market-arrow { grid-column: 2; grid-row: 1 / span 2; }
  .market-question strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .calculator-grid { grid-template-columns: 1fr; }
  .calculator-result { grid-template-columns: 1fr; }
  .calculator-result > div { display: flex; justify-content: space-between; align-items: center; }
  .calculator-result strong { margin: 0; }
  .formula-caption { align-items: flex-start; flex-direction: column; }
  .formula-caption span { text-align: left; }
  .lab-card { padding: 20px 16px; }
  .lab-card-head { grid-template-columns: auto 1fr; }
  .lab-state { display: none; }
  .gate-panel { padding: 28px 20px; }
  .data-stats { grid-template-columns: 1fr; }
  .data-stats article { min-height: 120px; }
  .lineage-panel, .venue-panel, .runs-panel { padding: 19px; }
  .lineage-flow { grid-template-columns: 1fr; gap: 16px; }
  .lineage-flow > i { transform: rotate(90deg); width: max-content; }
  .footer { display: block; padding: 20px 15px; }
  .footer p:last-child { margin-top: 6px; }
  .dialog-content { padding: 38px 20px 28px; }
  .dialog-meta { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
