:root {
  color-scheme: dark;
  --bg: #141727;
  --panel: #1c2033;
  --field: #23283f;
  --line: #343b55;
  --text: #f0f1fa;
  --muted: #acb4cf;
  --accent: #b7b3ff;
  --mint: #91dcc5;
  --peach: #ffbb93;
  --danger: #ffabb4;
  --heading: Bahnschrift, "Segoe UI", system-ui, sans-serif;
  --mono: Consolas, "Liberation Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body {
  margin: 0;
  min-width: 280px;
  color: var(--text);
  background: radial-gradient(ellipse 800px 420px at 50% -150px, #2c2a50, transparent), var(--bg);
  font: 16px/1.5 "Segoe UI", system-ui, sans-serif;
}
h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.frame { width: min(1220px, calc(100% - 56px)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: clamp(14px, 4vw, 46px); min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font: 680 23px/1 var(--heading); }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 7px;
  background: #28274a;
  border: 1px solid #554f86;
  border-radius: 8px;
}
.brand-mark i { height: 2px; background: var(--accent); border-radius: 4px; }
.brand-mark i:nth-child(2) { width: 65%; background: var(--peach); }
.brand-mark i:nth-child(3) { width: 85%; background: var(--mint); }
nav { display: flex; gap: 18px; color: var(--muted); font-size: .91rem; }
nav a { padding-block: 10px; }
nav a:hover { color: var(--text); }
.mode {
  margin-left: auto;
  border: 1px solid #554f86;
  border-radius: 99px;
  background: #28274a;
  padding: 5px 11px;
  font-size: .8rem;
  color: var(--accent);
  text-align: center;
}
main { padding: 36px 0 60px; }
section + section { margin-top: 38px; }
.hero, .section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.hero { margin-bottom: 15px; }
.eyebrow { margin-bottom: 6px; color: var(--accent); font: .78rem/1.4 var(--mono); letter-spacing: .045em; }
h1 { font: 680 clamp(2.1rem, 6vw, 3.6rem)/1.08 var(--heading); letter-spacing: -.045em; }
h2 { font: 650 1.45rem/1.2 var(--heading); letter-spacing: -.015em; }
.intro { margin-top: 8px; color: var(--muted); }
.feed { display: grid; gap: 3px; min-width: 140px; text-align: right; }
.feed span { font-size: .89rem; font-weight: 650; color: var(--peach); }
.feed span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 7px 2px 0; border-radius: 50%; background: currentColor; }
.feed [data-state="live"] { color: var(--mint); }
.feed time, .fine { color: var(--muted); font-size: .83rem; }
.period:not(:empty) { padding: 9px 0; }
.bots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 10px;
}
.bot, .panel { overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.bot { --result: var(--muted); border-top: 2px solid var(--result); padding: 12px; }
.bot.positive { --result: var(--mint); }
.bot.negative { --result: var(--danger); }
.bot-net { margin: 10px 0 12px; color: var(--result); font: 650 clamp(1.28rem, 2vw, 1.65rem)/1.2 var(--mono); letter-spacing: -.06em; }
.positive { color: var(--mint); }
.negative { color: var(--danger); }
summary { color: var(--text); font-weight: 660; }
summary::marker { color: var(--accent); }
details p { margin-top: 7px; color: var(--muted); font-size: .84rem; }
dl { display: grid; gap: 5px; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
dt { color: var(--muted); font-size: .79rem; }
dd { margin: 0; color: var(--text); font: .85rem/1.4 var(--mono); white-space: nowrap; }
.section-head { margin-bottom: 12px; }
.section-head h2 { margin-bottom: 5px; }
.section-head label { display: grid; gap: 4px; font-size: .79rem; color: var(--muted); }
select { min-height: 40px; padding: 4px 9px; background: var(--field); border: 1px solid var(--line); border-radius: 7px; }
.segmented { display: flex; gap: 3px; width: max-content; padding: 3px; background: var(--field); border: 1px solid var(--line); border-radius: 8px; }
.segmented button { min-height: 38px; padding: 4px 10px; background: transparent; border: 0; border-radius: 5px; font-size: .86rem; }
.segmented [aria-pressed="true"] { background: var(--accent); color: var(--bg); font-weight: 650; }
.panel .period:not(:empty), .empty { padding: 12px 14px; }
.empty { color: var(--muted); }
.data { list-style: none; padding: 0; margin: 0; }
.data li {
  display: grid;
  grid-template-columns: minmax(140px, 1.45fr) minmax(145px, 1fr) minmax(130px, 1fr) minmax(92px, .7fr);
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}
.data li:first-child { border-top: 0; }
.data li > :last-child { text-align: right; }
.data-head { color: var(--muted); background: var(--field); font-size: .79rem; }
.data strong { font-weight: 650; }
.data .money { font-family: var(--mono); white-space: nowrap; }
.mobile-label { display: none; }
@media (max-width: 740px) {
  .frame { width: calc(100% - 32px); }
  .hero { align-items: flex-start; flex-direction: column; gap: 9px; }
  .feed { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; text-align: left; }
  .data li { grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; }
  .data .data-head { display: none; }
  .data li > :first-child { grid-row: 1; }
  .data li > :last-child { grid-row: 1; grid-column: 2; }
  .mobile-label { display: inline; }
}
@media (max-width: 520px) {
  .top-inner { min-height: 0; flex-wrap: wrap; gap: 5px 12px; padding: 12px 0 0; }
  .top-inner nav { order: 1; width: 100%; }
  main { padding-top: 24px; }
  section + section { margin-top: 28px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 9px; }
  .section-head select { width: min(100%, 250px); }
  .bots { grid-template-columns: minmax(0, 1fr); }
}
