:root {
  --black: #050505;
  --white: #FFFFFF;
  --paper: #F4F4F0;
  --deep: #071A3D;
  --blue: #155BFF;
  --light: #DCE7FF;
  --line: 1px solid var(--black);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--black);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button, input, select { border-radius: 0; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

input[type="checkbox"] { accent-color: var(--blue); }
input::placeholder { color: var(--deep); opacity: .8; }
[hidden] { display: none !important; }

.mono {
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.blue { color: var(--blue); }
.small { font-size: 12px; line-height: 1.7; }
.muted { color: var(--deep); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 10;
  padding: 12px;
  border: var(--line);
  background: var(--white);
}

.skip:focus { top: 12px; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
  padding: 18px 36px;
  border-bottom: var(--line);
  background: var(--white);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -1px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: 27px;
  color: var(--white);
  background: var(--blue);
}

nav { display: flex; align-items: center; gap: 26px; }
nav a:hover { color: var(--blue); }

.badge {
  display: inline-block;
  padding: 9px 11px;
  border: var(--line);
  white-space: nowrap;
}

.shell {
  max-width: 1560px;
  margin: auto;
  padding: 0 36px;
}

.edition {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: 36px;
  padding: 24px 0 40px;
  border-bottom: var(--line);
}

h1 {
  font-size: clamp(68px, 9.5vw, 142px);
  line-height: .84;
  letter-spacing: -.08em;
  font-weight: 900;
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
}

.hero-bottom p { max-width: 350px; font-size: 14px; line-height: 1.7; }

.text-link {
  display: flex;
  gap: 28px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--black);
  white-space: nowrap;
}

.text-link:hover { color: var(--blue); }

.art {
  position: relative;
  height: 280px;
  background: var(--blue);
  color: var(--white);
  overflow: hidden;
}

.orbit {
  position: absolute;
  inset: 28px;
  border: 1px solid var(--white);
  border-radius: 50%;
}

.orbit::before, .orbit::after {
  content: "";
  position: absolute;
  inset: 23px;
  border: 1px solid var(--white);
  border-radius: 50%;
}

.orbit::after { inset: 46px; }

.art-arrow {
  position: absolute;
  top: -7px;
  left: 40px;
  font-size: 235px;
  line-height: 1;
  font-weight: 900;
}

.art-label {
  position: absolute;
  left: 15px;
  bottom: 15px;
  right: 15px;
  display: flex;
  justify-content: space-between;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: var(--line);
}

.metric { padding: 25px 24px; border-right: var(--line); }
.metric:first-child { padding-left: 0; }
.metric:last-child { border-right: 0; }

.metric strong {
  display: block;
  margin: 15px 0 10px;
  font-size: clamp(30px, 3.7vw, 54px);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.section { margin-top: 42px; scroll-margin-top: 24px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin-top: 10px;
  font-size: clamp(40px, 5.5vw, 76px);
  letter-spacing: -.07em;
  line-height: .95;
}

.section-head p { max-width: 290px; }

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  border: var(--line);
  background: var(--white);
}

.chart-panel { min-width: 0; border-right: var(--line); }

.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 18px;
  padding: 24px;
  border-bottom: var(--line);
}

.pair { font-size: 24px; font-weight: 800; letter-spacing: -1px; }

.price {
  margin: 8px 0;
  font-size: 43px;
  font-weight: 800;
  letter-spacing: -2px;
}

.chart-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.chart-tools label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.chart-tools select {
  padding: 7px;
  border: var(--line);
  background: var(--white);
  font-size: 12px;
}

.chart-scroll { overflow-x: auto; padding: 8px; }
.chart { width: 100%; min-width: 570px; height: auto; touch-action: pan-y; }

.chart-readout {
  min-height: 43px;
  padding: 5px 20px 12px;
  line-height: 1.7;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 15px 24px;
  border-top: var(--line);
  font-size: 11px;
}

.key {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  vertical-align: middle;
  background: var(--blue);
}

.key.black { background: var(--black); }
.key.light { background: var(--light); border: 1px solid var(--blue); }

.chart-note {
  display: grid;
  grid-template-columns: 85px 1fr;
  align-items: center;
  gap: 18px;
  padding: 23px;
  border-top: var(--line);
  background: var(--paper);
}

.chart-note-symbol {
  font-size: 68px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -7px;
  color: var(--blue);
}

.builder { padding: 24px; }
.builder h3 { margin-top: 10px; font-size: 29px; letter-spacing: -1.5px; }

.field-label {
  display: block;
  margin: 20px 0 9px;
  font-family: "Courier New", monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.input, .select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 10px 11px;
  border: var(--line);
  background: var(--white);
  font-size: 13px;
}

.levels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.levels button, .presets button {
  border: var(--line);
  padding: 10px 5px;
  background: var(--white);
  font-size: 11px;
  font-weight: 700;
}

.levels button[aria-pressed="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.presets button { padding: 7px; font-weight: 400; background: var(--paper); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.range-summary {
  margin-top: 20px;
  padding: 18px;
  background: var(--black);
  color: var(--white);
}

.range-value {
  margin-top: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.4;
}

.range-percent {
  margin: 12px 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--light);
}

.note { margin-top: 16px; font-size: 11px; line-height: 1.8; }
details summary { cursor: pointer; font-weight: 700; }
details p { margin-top: 10px; }

.monitor {
  border: var(--line);
  background: var(--white);
}

.monitor-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 24px;
  border-bottom: var(--line);
}

.monitor-head h3 { margin-top: 10px; font-size: 29px; letter-spacing: -1.5px; }
.total-pnl { text-align: right; }

.total-pnl strong {
  display: block;
  margin-top: 9px;
  font-size: 35px;
  letter-spacing: -1.5px;
}

.entry-form {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  align-items: end;
  gap: 12px;
  padding: 0 24px 20px;
}

.primary {
  min-height: 42px;
  padding: 12px 16px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

.primary:hover { background: var(--deep); border-color: var(--deep); }
.message { padding: 0 24px 18px; font-size: 12px; line-height: 1.7; }

.controls { display: flex; gap: 12px; margin-bottom: 16px; }

.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
  padding: 0 15px;
  border: var(--line);
  background: var(--white);
}

.search input {
  width: 100%;
  min-width: 0;
  height: 45px;
  border: 0;
  background: transparent;
}

.controls .select { width: auto; }

.watch-filter {
  padding: 10px 15px;
  border: var(--line);
  background: var(--white);
  font-size: 13px;
}

.watch-filter[aria-pressed="true"] {
  background: var(--black);
  color: var(--white);
}

.table-wrap {
  overflow-x: auto;
  border-top: var(--line);
  border-bottom: var(--line);
  background: var(--white);
}

table { width: 100%; min-width: 760px; border-collapse: collapse; text-align: left; }
.monitor table { min-width: 990px; }
.monitor .table-wrap { border-bottom: 0; }

th {
  padding: 15px 16px;
  border-bottom: var(--line);
  background: var(--paper);
  font-family: "Courier New", monospace;
  font-size: 10px;
  letter-spacing: .05em;
  white-space: nowrap;
}

th button { padding: 0; border: 0; background: transparent; font: inherit; }

td {
  padding: 19px 16px;
  border-bottom: 1px solid var(--paper);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--light); }
.numeric { text-align: right; }

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

.protocol-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--deep);
  color: var(--white);
  font-size: 17px;
  font-weight: 900;
}

.subline { display: block; margin-top: 5px; font-size: 11px; line-height: 1.5; }
.chain { padding: 5px 7px; background: var(--paper); font-size: 11px; }

.icon-button {
  width: 32px;
  height: 32px;
  border: var(--line);
  background: var(--white);
  font-size: 20px;
}

.icon-button[aria-pressed="true"] {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.status {
  display: inline-block;
  padding: 5px 7px;
  border: var(--line);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.status.in {
  background: var(--light);
  border-color: var(--blue);
  color: var(--deep);
}

.disclaimer {
  padding: 16px 24px;
  border-top: var(--line);
  font-size: 11px;
  line-height: 1.8;
}

.table-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  line-height: 1.7;
}

.methodology {
  display: grid;
  grid-template-columns: 100px 1fr 170px;
  align-items: center;
  gap: 28px;
  padding: 30px 0;
  margin-top: 34px;
  border-top: var(--line);
  border-bottom: var(--line);
}

.method-mark {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 65px;
}

.methodology h2 { margin-bottom: 10px; font-size: 29px; letter-spacing: -1px; }

.pattern {
  height: 70px;
  background: repeating-linear-gradient(
    135deg,
    var(--black) 0,
    var(--black) 3px,
    var(--paper) 3px,
    var(--paper) 10px
  );
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
}

@media (max-width: 1100px) {
  nav { gap: 15px; }
  .hero { grid-template-columns: minmax(0, 1fr) 230px; gap: 24px; }
  .art { height: 250px; }
  .orbit { inset: 20px 5px; }
  .art-arrow { left: 17px; top: -18px; }
  .hero-bottom { align-items: flex-start; flex-direction: column; }
  .workspace { grid-template-columns: minmax(0, 1fr) 290px; }
  .builder { padding: 20px; }
  .entry-form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .topbar { padding: 18px 20px; flex-wrap: wrap; gap: 18px; }
  nav { order: 3; width: 100%; justify-content: space-between; gap: 10px; }
  nav a { font-size: 10px; }
  .shell { padding: 0 20px; }
  .edition { font-size: 9px; }
  .hero { grid-template-columns: 1fr; padding-top: 10px; }
  h1 { font-size: clamp(62px, 14vw, 112px); }
  .art { height: 145px; }
  .orbit { width: 220px; height: 220px; inset: -40px 12px auto auto; }
  .art-arrow { inset: -68px 23px auto auto; }
  .art-label { flex-direction: column; gap: 7px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric { padding: 22px 16px; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: var(--line); }
  .metric:nth-child(3) { padding-left: 0; }
  .workspace { grid-template-columns: 1fr; }
  .chart-panel { border-right: 0; border-bottom: var(--line); }
  .builder { padding: 24px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 16px; }
  .monitor-head { align-items: flex-start; flex-direction: column; }
  .total-pnl { text-align: left; }
  .controls { flex-wrap: wrap; }
  .search { flex-basis: 100%; }
  .controls .select, .watch-filter { flex: 1; min-width: 0; }
  .table-footer { flex-direction: column; gap: 5px; }
  .methodology { grid-template-columns: 64px 1fr; gap: 20px; }
  .method-mark { width: 64px; height: 64px; font-size: 48px; }
  .pattern { display: none; }
  footer { flex-direction: column; font-size: 10px; }
}

@media (max-width: 480px) {
  .entry-form { grid-template-columns: 1fr; }
  .chart-head { padding: 20px; }
  .chart-note { grid-template-columns: 55px 1fr; gap: 12px; padding: 18px; }
  .chart-note-symbol { font-size: 48px; }
  .badge { font-size: 9px; }
  .brand { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}