:root {
  color-scheme: dark;
  --bg: #080c11;
  --surface: #0d131a;
  --surface-2: #111923;
  --surface-3: #16212c;
  --ink: #edf2f6;
  --muted: #a9b4bf;
  --dim: #7e8b97;
  --line: #263746;
  --line-soft: #1b2935;
  --blue: #49a8ff;
  --cyan: #31c9eb;
  --mint: #4fd7b0;
  --bad: #ed7c86;
  --warn: #d8bd76;
  --max: 1760px;
  --page-pad: clamp(18px, 3.2vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  left: 14px;
  top: -60px;
  z-index: 100;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
}
.skip-link:focus { top: 14px; }

.preview-bar {
  padding: 8px var(--page-pad);
  border-bottom: 1px solid rgba(216, 189, 118, .35);
  background: #17150e;
  color: #e3cf92;
  text-align: center;
  font-size: 12px;
  letter-spacing: .02em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(38, 55, 70, .8);
  background: rgba(8, 12, 17, .96);
  backdrop-filter: blur(12px);
}
.header-inner {
  width: min(var(--max), 100%);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 var(--page-pad);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: .035em;
  white-space: nowrap;
}
.brand img { width: 34px; height: 34px; }
.brand small {
  margin-right: -5px;
  color: var(--dim);
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 19px;
  margin-left: auto;
}
.main-nav a { color: var(--muted); font-size: 14px; }
.main-nav a[aria-current="page"], .main-nav a:hover { color: var(--ink); }
.main-nav .telegram { color: var(--blue); }
.lang-switch { display: flex; gap: 3px; margin-left: 8px; }
.lang-switch button {
  min-width: 34px;
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.lang-switch button:hover { border-color: var(--line); color: var(--ink); }
.lang-switch button.active { border-color: rgba(49, 201, 235, .45); color: var(--cyan); }
.menu-toggle {
  display: none;
  margin-left: auto;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
}

.container { width: min(var(--max), 100%); margin: 0 auto; padding-left: var(--page-pad); padding-right: var(--page-pad); }
.narrow { width: min(860px, 100%); margin: 0 auto; padding-left: var(--page-pad); padding-right: var(--page-pad); }
.page-main { min-height: 70vh; padding: 30px 0 72px; }
.eyebrow {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
}
h1, h2, h3 { text-wrap: balance; }
h1 { margin: 10px 0 14px; font-size: clamp(34px, 6vw, 64px); line-height: 1.06; letter-spacing: -.035em; }
h2 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 34px); line-height: 1.16; letter-spacing: -.02em; }
h3 { margin: 0; font-size: 17px; line-height: 1.3; }
p { color: #d5dde4; }
.lead { max-width: 760px; color: #dce4eb; font-size: clamp(17px, 2vw, 20px); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.section { padding: 62px 0; border-top: 1px solid var(--line-soft); }
.section-head { max-width: 760px; margin-bottom: 24px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
  gap: 52px;
  align-items: center;
  min-height: 0;
  padding: 56px 0 48px;
}
.hero h1 span { color: var(--blue); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border: 1px solid var(--ink);
  border-radius: 9px;
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  font-weight: 750;
}
.button:hover { border-color: var(--blue); background: var(--blue); color: var(--bg); }
.button.secondary { border-color: var(--line); background: transparent; color: var(--ink); }
.button.ghost { border-color: transparent; background: transparent; color: var(--blue); }
.button.small-button { min-height: 34px; padding: 6px 10px; font-size: 13px; }

.hero-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
}
.panel-kicker { padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.status-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.status-row:last-child { border-bottom: 0; }
.status-row strong { font-size: 15px; }
.status-row span { color: var(--muted); font-size: 13px; }
.status-value { color: var(--mint) !important; font-size: 28px !important; font-weight: 750; }
.status-value-secondary { color: var(--ink) !important; font-size: 22px !important; }
.status-row-primary { background: #0f1822; }
.proof-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.proof-table caption {
  caption-side: top;
  padding: 10px 16px 6px;
  color: var(--dim);
  font-size: 11px;
  letter-spacing: .04em;
  text-align: left;
  text-transform: uppercase;
}
.proof-table td {
  padding: 8px 10px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
}
.proof-table td:first-child { padding-left: 16px; white-space: nowrap; }
.proof-table td:nth-child(2) { text-align: right; }
.proof-table td:last-child { padding-right: 16px; text-align: right; font-weight: 750; }
.proof-table .r-pos { color: var(--mint); }
.proof-table .r-neg { color: var(--bad); }
.proof-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 4px 12px;
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.hero-panel .proof-tabs { margin: 0; background: transparent; }
.hero-panel .proof-tabs button { padding: 7px 11px; font-size: 13px; }
.info-btn {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  font-style: italic;
  line-height: 1;
}
.info-btn:hover, .info-btn:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
}
.proof-notes-body p { margin: 0 0 12px; color: var(--muted); }
.proof-notes-body p:last-child { margin-bottom: 0; }
.panel-cta {
  display: block;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
}
.panel-cta:hover { background: var(--surface-2); color: var(--ink); }

.feature-grid, .pricing-grid, .link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.feature, .price-card, .link-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}
.feature p, .price-card p, .link-card p { margin: 7px 0 0; color: var(--muted); }
.feature-index { color: var(--blue); font: 750 12px/1 ui-monospace, monospace; }
.price { margin: 12px 0 5px; font-size: 30px; font-weight: 780; }
.price-card.featured { border-color: rgba(79, 215, 176, .55); }
.tagline { color: var(--mint); font-size: 12px; font-weight: 750; text-transform: uppercase; }
.trust-note {
  margin-top: 20px;
  padding: 14px 16px;
  border-left: 3px solid var(--blue);
  background: var(--surface);
  color: var(--muted);
}

.origin-lead { max-width: 760px; margin: 0 0 22px; }
.origin-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.origin-step {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}
.origin-step h3 { margin: 0; }
.origin-step p { margin: 0; color: var(--muted); font-size: 14px; }
.origin-step p + p { margin-top: 0; }
.origin-author {
  display: inline-block;
  margin-top: auto;
  padding: 5px 10px;
  border: 1px solid rgba(73, 168, 255, .35);
  border-radius: 999px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.origin-step .origin-author { margin-top: auto; align-self: flex-start; }
.origin-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}
.origin-flow b {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}
.origin-arrow {
  color: var(--dim);
  font-size: 13px;
}
.origin-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
}
.origin-tags span {
  padding: 4px 9px;
  border: 1px solid rgba(79, 215, 176, .35);
  border-radius: 999px;
  color: var(--mint);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .03em;
}
.origin-windows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
}
.origin-windows strong {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  text-align: center;
  font-size: 13px;
}
.origin-note { margin-top: 10px; color: #dce4eb; }
.origin-showcase { margin-top: 42px; }
.origin-showcase .section-head { margin-bottom: 14px; }
.origin-shot {
  display: block;
  width: min(480px, 100%);
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: inherit;
  cursor: zoom-in;
  font: inherit;
  text-align: left;
}
.origin-shot:hover { border-color: var(--blue); }
.origin-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 9px;
  background: #0a1016;
}
.origin-shot-hint {
  margin: 10px 0 0;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}
.origin-shot-caption {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.origin-check {
  max-width: 760px;
  margin-top: 36px;
  padding: 20px 20px 18px;
  border: 1px solid rgba(73, 168, 255, .35);
  border-radius: 15px;
  background: var(--surface-2);
}
.origin-check h2 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.25; }
.origin-check p { color: var(--muted); }
.origin-limit {
  max-width: 760px;
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--blue);
  background: var(--surface);
  color: var(--muted);
}
.origin-lightbox {
  width: min(calc(100vw - 16px), 3440px);
  max-width: calc(100vw - 16px);
  max-height: calc(100dvh - 16px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #070a0e;
  color: var(--ink);
  overflow: hidden;
}
.origin-lightbox::backdrop { background: rgba(0, 0, 0, .78); }
.origin-lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.origin-lightbox-bar span { color: var(--muted); font-size: 13px; }
.origin-lightbox-bar button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.origin-lightbox-body {
  overflow: auto;
  max-height: calc(100dvh - 72px);
  padding: 10px;
  -webkit-overflow-scrolling: touch;
}
.origin-lightbox-body img {
  display: block;
  width: 100%;
  max-width: 3440px;
  height: auto;
}

.page-heading { padding: 34px 0 20px; }
.page-heading h1 { font-size: clamp(31px, 5vw, 48px); }
.page-heading .lead { margin-bottom: 0; }

.scope-tabs, .view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}
.scope-tabs { width: fit-content; margin-top: 23px; }
.scope-tabs button, .view-tabs button {
  padding: 8px 13px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.scope-tabs button.active, .view-tabs button.active {
  background: var(--surface-3);
  color: var(--ink);
  font-weight: 700;
}

.data-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: start;
  margin: 18px 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}
.data-banner .dot { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--mint); }
.data-banner.warn .dot { background: var(--warn); }
.data-banner p { margin: 0; color: var(--muted); font-size: 13px; }
.data-banner strong { color: var(--ink); }

.report-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; align-items: start; }
.filters {
  position: sticky;
  top: 87px;
  max-height: calc(100dvh - 105px);
  overflow-y: auto;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}
.filters h2 { margin: 0; font-size: 16px; }
.filter-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.filter-section { padding: 13px 0; border-top: 1px solid var(--line-soft); }
.filter-section:first-of-type { border-top: 0; }
.filter-head-mini { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.filter-head-mini .field-label { margin: 0; }
.picker-actions { display: flex; gap: 0; }
.picker-actions .small-button { min-height: 28px; padding: 2px 8px; font-size: 12px; }
.picker-count { margin: 5px 0 0; color: var(--dim); font-size: 11px; }
.setup-picker {
  display: grid;
  gap: 1px;
  max-height: 240px;
  overflow-y: auto;
  margin-top: 8px;
  padding-right: 2px;
}
.setup-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  border-radius: 7px;
  color: #d8e0e7;
  cursor: pointer;
  font-size: 12.5px;
  line-height: 1.25;
}
.setup-pick:hover { background: rgba(73, 168, 255, .06); }
.setup-pick input { width: 15px; height: 15px; flex: 0 0 auto; accent-color: var(--blue); }
.setup-pick .pick-name { font-weight: 650; }
.setup-pick .pick-tf { color: var(--dim); font-weight: 500; }
tbody tr.is-unpicked td { opacity: .38; }
.field-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.field, .select {
  width: 100%;
  min-height: 39px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
}
.check-list { display: grid; gap: 7px; }
.check { display: flex; align-items: flex-start; gap: 8px; color: #d8e0e7; cursor: pointer; }
.check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--blue); }
.check small { display: block; color: var(--dim); }
.filter-actions { display: flex; gap: 8px; }
.filter-toggle { display: none; }
.year-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.year-range-field {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.year-range-field .select { min-height: 36px; }
.year-bar { cursor: pointer; }
.year-bar:hover i { outline: 1px solid var(--blue); }
.year-bar.is-muted { opacity: .35; }
#year-table-body tr.is-muted { opacity: .4; }
.page-size { display: flex; align-items: center; gap: 8px; margin-right: auto; color: var(--muted); font-size: 12px; }
.page-size .select { width: auto; min-height: 34px; padding: 4px 8px; }
.pagination-spacer { flex: 1; }

.report-main { min-width: 0; }
.control-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 15px;
  margin-bottom: 13px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}
.control-group { min-width: 190px; }
.segmented { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); }
.segmented button { flex: 1; padding: 7px 9px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap; }
.segmented button.active { background: var(--surface-3); color: var(--ink); font-weight: 700; }
.deposit-wrap { display: flex; align-items: center; }
.deposit-wrap span { margin-right: -27px; z-index: 1; color: var(--blue); font-weight: 750; }
.deposit-wrap input { padding-left: 29px; }
.control-group-risk { min-width: 120px; }
.risk-wrap span { margin-right: 0; margin-left: -22px; }
.risk-wrap input { padding-left: 12px; padding-right: 26px; }

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.snapshot {
  min-height: 116px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.snapshot.primary { border-color: rgba(73, 168, 255, .5); background: var(--surface-2); }
.snapshot.clickable { cursor: pointer; }
.snapshot.clickable:hover, .metric.clickable:hover { border-color: var(--blue); }
.snapshot.is-active, .metric.is-active {
  border-color: rgba(73, 168, 255, .55);
  background: var(--surface-2);
}
.snapshot-label, .metric-label { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .045em; text-transform: uppercase; }
.snapshot-value { margin-top: 6px; font-size: 28px; font-weight: 780; letter-spacing: -.03em; }
.snapshot-sub { margin-top: 5px; color: var(--dim); font-size: 12px; line-height: 1.4; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(135px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.metric {
  min-height: 108px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.metric.primary { border-color: rgba(73, 168, 255, .5); background: var(--surface-2); }
.metric.clickable { cursor: pointer; }
.metric.clickable:hover { border-color: var(--blue); }
.metric-label { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .045em; text-transform: uppercase; }
.metric-value { margin-top: 5px; font-size: 24px; font-weight: 780; letter-spacing: -.02em; }
.metric-sub { margin-top: 3px; color: var(--dim); font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.positive { color: var(--mint) !important; }
.negative { color: var(--bad) !important; }
.warning { color: var(--warn) !important; }

.view-tabs { margin-bottom: 13px; }
.view-panel { display: none; }
.view-panel.active { display: block; }
.panel-shell {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  overflow: hidden;
}
.panel-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.panel-toolbar p { margin: 0; color: var(--muted); font-size: 13px; }
.table-scroll { overflow: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
th {
  padding: 10px 11px;
  border-bottom: 1px solid var(--line);
  background: #0a1016;
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .035em;
  text-transform: uppercase;
}
td { padding: 10px 11px; border-bottom: 1px solid var(--line-soft); color: #dce3e9; vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(73, 168, 255, .035); }
.num { text-align: right; white-space: nowrap; }
.windows-cell { text-align: right; white-space: normal; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.setup-title { font-weight: 730; }
.setup-meta { margin-top: 2px; color: var(--dim); font-size: 12px; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.pill.approved { border-color: rgba(79, 215, 176, .45); color: var(--mint); }
.pill.testing { border-color: rgba(73, 168, 255, .45); color: var(--blue); }
.pill.tentative, .pill.unknown { border-color: rgba(216, 189, 118, .45); color: var(--warn); }
.pill.sl, .pill.loss { border-color: rgba(237, 124, 134, .4); color: var(--bad); }
.pill.tp, .pill.profit { border-color: rgba(79, 215, 176, .4); color: var(--mint); }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 11px 14px; border-top: 1px solid var(--line); }
.pagination button { padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--ink); cursor: pointer; }
.pagination button:disabled { opacity: .35; cursor: default; }

.year-bars { display: flex; align-items: end; gap: 4px; height: 180px; padding: 18px 14px 8px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.year-bar {
  display: flex;
  min-width: 34px;
  flex: 1;
  height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.year-bar i { display: block; width: min(24px, 70%); min-height: 2px; border-radius: 3px 3px 0 0; background: var(--mint); }
.year-bar i.neg { background: var(--bad); }
.year-bar.is-empty i { opacity: .25; background: var(--line); }
.year-bar span { color: var(--dim); font-size: 10px; writing-mode: vertical-rl; transform: rotate(180deg); }
.window-line { display: inline-block; font-size: 12px; line-height: 1.45; }

.detail-drawer {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto 12px auto auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
}
.detail-drawer::backdrop { background: rgba(0, 0, 0, .72); }
.detail-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 17px; border-bottom: 1px solid var(--line); }
.detail-head button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 20px; }
.detail-body { padding: 17px; overflow-y: auto; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.detail-cell { padding: 11px; border: 1px solid var(--line); border-radius: 9px; }
.detail-cell span { display: block; color: var(--dim); font-size: 11px; text-transform: uppercase; }
.detail-cell strong { display: block; margin-top: 3px; }
.source-list { margin: 14px 0 0; padding: 0; list-style: none; }
.source-list li { padding: 6px 0; border-bottom: 1px solid var(--line-soft); color: var(--muted); font: 12px/1.45 ui-monospace, monospace; overflow-wrap: anywhere; }

.steps { counter-reset: step; }
.step { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; gap: 13px; padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.step::before { content: counter(step); width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--blue); font-weight: 750; }
.step p { margin: 5px 0 0; color: var(--muted); }
code { padding: 2px 5px; border-radius: 5px; background: var(--surface-3); color: var(--ink); font-size: .9em; }
.news-list { display: grid; gap: 16px; }
.news-item {
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}
.news-item time {
  display: block;
  margin-bottom: 8px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.news-item h2 { margin: 0 0 10px; font-size: 22px; }
.news-item p { margin: 0 0 10px; color: var(--muted); }
.news-item p:last-child { margin-bottom: 0; }

.legal-card { padding: clamp(18px, 4vw, 34px); border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.legal-card h2 { margin-top: 30px; font-size: 19px; }
.legal-card h2:first-of-type { margin-top: 18px; }

.site-footer { border-top: 1px solid var(--line); background: #070a0e; }
.footer-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 28px var(--page-pad) 32px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}
.footer-nav a { color: var(--muted); font-size: 14px; }
.footer-nav a:hover { color: var(--ink); }
.footer-risk {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .footer-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 28px; }
  .hero-panel { max-width: 620px; }
  .report-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; max-height: none; }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; }
  .metric-grid { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
}

@media (max-width: 1080px) {
  .header-inner { min-height: 60px; flex-wrap: wrap; padding: 10px var(--page-pad); }
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    order: 3;
    width: 100%;
    margin: 0;
    padding: 10px 0 4px;
    border-top: 1px solid var(--line-soft);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 8px 4px; }
  .lang-switch { margin-left: 0; }
}

@media (max-width: 820px) {
  .feature-grid, .pricing-grid, .link-grid, .origin-steps { grid-template-columns: 1fr; }
  .origin-lightbox-body img {
    width: 1400px;
    max-width: none;
  }
  .metric-grid { grid-template-columns: repeat(2, minmax(130px, 1fr)); }
  .snapshot-value { font-size: 24px; }
  .data-banner { grid-template-columns: auto 1fr; }
  .data-banner .banner-action { grid-column: 2; }
}

@media (max-width: 560px) {
  body { font-size: 14px; }
  .hero { padding: 45px 0 55px; }
  h1 { font-size: 38px; }
  .section { padding: 44px 0; }
  .actions .button { width: 100%; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .snapshot-grid { grid-template-columns: 1fr; }
  .metric { min-height: 98px; padding: 11px; }
  .metric-value { font-size: 20px; }
  .control-strip { align-items: stretch; }
  .control-group { width: 100%; }
  .scope-tabs { width: 100%; }
  .scope-tabs button { flex: 1; }
  .view-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .view-tabs button { white-space: nowrap; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-drawer { width: calc(100% - 12px); margin: auto 6px 6px; }
}

@media (max-width: 420px) {
  .header-inner { gap: 8px; }
  .brand { font-size: 16px; }
  .brand img { width: 30px; height: 30px; }
  .menu-toggle { order: 2; }
  .lang-switch {
    order: 3;
    width: 100%;
    justify-content: flex-end;
    padding-bottom: 2px;
  }
  .main-nav { order: 4; }
}
