@font-face {
  font-family: Oswald;
  src: url("oswald-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --night: #070b1b;
  --blue: #315dff;
  --line: #252d46;
  --text: #f1f3ff;
  --muted: #a6afc8;
  --gold: #d1b98c;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font:
    15px/1.6 Arial,
    sans-serif;
}
a {
  color: inherit;
}
button,
input,
select {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 14px 23px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition:
    background 0.2s,
    transform 0.2s;
}
button:hover,
.button:hover {
  background: #4770ff;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button.secondary {
  border-color: #3f4a69;
  background: transparent;
  color: #c2cbe4;
}
button.secondary:hover {
  background: #1d2945;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 5px;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  top: 10px;
  left: 10px;
  background: #16235b;
  padding: 10px;
  z-index: 20;
}
header {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  width: 100%;
  height: 96px;
  padding: 0 max(4.5vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #b7c8ff22;
}
.wordmark {
  font:
    700 32px/1 Oswald,
    Arial,
    sans-serif;
  letter-spacing: 2px;
  text-decoration: none;
}
.wordmark small {
  font: 11px Arial;
  letter-spacing: 3px;
  margin-left: 10px;
  color: #bdc7eb;
}
nav {
  display: flex;
  gap: 36px;
}
nav a {
  text-decoration: none;
  font-size: 13px;
  color: #d2d8ef;
}
nav a:hover {
  color: #fff;
}
.hero {
  isolation: isolate;
  position: relative;
  height: min(900px, 100svh);
  min-height: 760px;
  overflow: hidden;
  background: #020822;
}
.hero-image {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  animation: athena-arrives 1.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, #02071eaa 0%, #02071e20 49%, transparent 76%),
    linear-gradient(0deg, #070b1b 0%, transparent 20%);
}
.hero-copy {
  position: relative;
  padding-top: clamp(178px, 19vh, 235px);
  margin-left: 6vw;
  width: 64%;
  animation: copy-arrives 1s 0.16s both;
}
.hero-kicker {
  font-size: 14px;
  color: #aebce8;
  margin: 0 0 28px;
}
.hero h1 {
  font:
    700 clamp(78px, 8.2vw, 140px)/1.02 Oswald,
    "Arial Narrow",
    sans-serif;
  letter-spacing: -0.045em;
  margin: 0 0 30px;
  max-width: 100%;
  text-shadow: 0 2px 35px #01051b33;
}
.hero-description {
  font-size: 19px;
  line-height: 1.6;
  color: #c0cae6;
  margin: 0 0 30px;
}
.hero .button {
  min-height: 55px;
  box-shadow: 0 8px 40px #164bff35;
}
.hero .button span {
  font-size: 23px;
  font-weight: 400;
}
.hero-note {
  font-size: 11px;
  color: #98a6d0;
  margin: 17px 0;
}
.hero-bottom {
  position: absolute;
  bottom: 28px;
  left: 6vw;
  right: 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #9aa8cb;
  border-top: 1px solid #7187c33d;
  padding-top: 24px;
}
.hero-bottom a {
  text-decoration: none;
}
.manifesto {
  max-width: 1400px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 60px 5vw;
  border-bottom: 1px solid var(--line);
}
.manifesto > span {
  font:
    700 31px/1.3 Oswald,
    sans-serif;
}
.manifesto p {
  color: var(--muted);
  font-size: 14px;
  max-width: 480px;
}
.section,
.terminal {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
.section {
  padding: 85px 40px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 40px;
}
h2 {
  font:
    700 42px/1.17 Oswald,
    sans-serif;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
h3 {
  font:
    700 25px/1.2 Oswald,
    sans-serif;
  margin: 0 0 12px;
}
.section-head p {
  max-width: 360px;
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.plans {
  display: flex;
  border-top: 1px solid #455276;
  border-bottom: 1px solid var(--line);
}
.plan {
  flex: 1;
  padding: 29px 30px 34px;
  border-right: 1px solid var(--line);
}
.plan:last-child {
  border-right: 0;
}
.plan:first-child {
  padding-left: 0;
}
.plan:last-child {
  padding-right: 0;
}
.plan h3 {
  font-size: 18px;
  color: #a5b4df;
}
.plan.featured h3 {
  color: var(--gold);
}
.price {
  font:
    700 56px/1 Oswald,
    sans-serif;
  letter-spacing: -1px;
  margin: 23px 0 13px;
}
.price small {
  font: 12px Arial;
  letter-spacing: 0;
  color: #9aa9c8;
}
.virtual {
  font-size: 12px;
  color: #909cba;
}
.plan ul {
  padding: 20px 0 20px 16px;
  color: #b1bbd4;
  font-size: 12px;
  line-height: 2;
}
.plan button {
  width: 100%;
  font-size: 12px;
  background: #172440;
  border-color: #394b76;
}
.plan.featured button {
  background: var(--blue);
  border-color: var(--blue);
}
.terminal {
  background: #0c1124;
  border: 1px solid #2e3c62;
  padding: 32px;
  scroll-margin-top: 20px;
  box-shadow: 0 20px 100px #0003;
}
.terminal-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.terminal h2 {
  font-size: 32px;
}
.note {
  color: var(--muted);
  font-size: 12px;
}
.status {
  font-size: 11px;
  color: #ddb787;
  max-width: 360px;
  text-align: right;
}
.status[data-fresh="true"] {
  color: #88cfb9;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric {
  padding: 19px 20px;
  border-right: 1px solid var(--line);
}
.metric:first-child {
  padding-left: 0;
}
.metric:last-child {
  border: 0;
}
.metric span {
  display: block;
  font-size: 11px;
  color: #8f9bb7;
}
.metric strong {
  font:
    500 23px/1.6 Arial,
    sans-serif;
  display: block;
  font-variant-numeric: tabular-nums;
  margin-top: 5px;
}
.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
}
.chartbox {
  min-width: 0;
  background: #0b1023;
}
.chart-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.chart-top select {
  max-width: 145px;
  display: block;
  margin-top: 3px;
}
.chart-price {
  font: 500 28px Arial;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.chart-meta {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  color: #8c99b8;
  padding: 20px 0 8px;
}
#candles {
  display: block;
  width: 100%;
  height: 390px;
  position: relative;
}
.chart-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0;
}
.chart-controls label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.chart-controls select {
  width: 80px;
}
.chart-controls button {
  font-size: 12px;
  padding: 10px;
}
.chart-attribution a {
  text-decoration: underline;
  color: #bacaff;
}
.chart-meta {
  flex-wrap: wrap;
}
.chart-label {
  color: #aab7da;
  font-size: 12px;
  white-space: normal;
}
.chartbox .note {
  font-size: 10px;
  max-width: 650px;
}
.ticket {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-content: start;
  padding: 22px;
  background: #11192e;
  border: 1px solid var(--line);
}
.ticket h3 {
  font-size: 22px;
}
.ticket label {
  font-size: 11px;
  color: #acb9d7;
}
.ticket .wide {
  grid-column: 1/-1;
  margin-bottom: 5px;
}
.ticket .note {
  font-size: 10px;
}
.ticket input,
.ticket select,
select {
  background: #0b1226;
  border: 1px solid #3e4b68;
  color: #f1f4ff;
  min-width: 0;
  width: 100%;
  padding: 10px;
  border-radius: 2px;
}
.ticket label input,
.ticket label select {
  margin-top: 5px;
}
.ticket button {
  font-size: 12px;
  padding: 13px 5px;
  margin-top: 5px;
  background: #1c695d;
}
.ticket .short {
  background: #793e52;
}
.feedback {
  font-size: 12px;
  color: #d1b98c;
  min-height: 24px;
  margin: 22px 0;
}
.scroll {
  max-width: 100%;
  overflow-x: auto;
}
.scroll table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  white-space: nowrap;
  text-align: left;
}
.scroll th,
.scroll td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
}
.scroll th {
  font-weight: 400;
  color: #8f9fbd;
}
.scroll td {
  color: #c8d1e7;
}
.scroll td button {
  padding: 5px 10px;
  background: transparent;
  border-color: #586a96;
  font-size: 11px;
}
.subheading {
  font: 600 16px Arial;
  margin: 25px 0 8px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 25px 0 15px;
}
.actions button {
  font-size: 11px;
}
.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.rules-table td,
.rules-table th {
  white-space: normal;
}
.rules-text {
  font-size: 13px;
  color: var(--muted);
  max-width: 1000px;
}
.rules-text p {
  margin: 0 0 19px;
}
.rules-text strong {
  color: #d9e0f3;
}
.positive {
  color: #69d7bd;
}
.negative {
  color: #ef8495;
}
#about {
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
#about h2 {
  font-size: 30px;
}
footer {
  padding: 35px max(5vw, 24px);
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: #8593b5;
}
noscript p {
  background: #33304a;
  padding: 20px;
}
@keyframes athena-arrives {
  from {
    opacity: 0.3;
    filter: blur(7px);
    scale: 1.065;
  }
  to {
    opacity: 1;
    filter: blur(0);
    scale: 1;
  }
}
@keyframes copy-arrives {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1650px) {
  .hero-copy {
    margin-left: calc((100vw - 1450px) / 2);
  }
  .hero h1 {
    font-size: 145px;
  }
}
@media (max-width: 1050px) {
  .hero h1 {
    font-size: 9vw;
  }
  .hero {
    min-height: 720px;
  }
  .workbench {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .terminal {
    margin: 0 24px;
    padding: 25px;
  }
  .metric strong {
    font-size: 19px;
  }
  .plan {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media (max-width: 780px) {
  header {
    height: 76px;
    padding: 0 22px;
  }
  .wordmark {
    font-size: 26px;
  }
  .wordmark small {
    font-size: 9px;
    margin-left: 5px;
  }
  nav {
    gap: 20px;
  }
  nav a {
    font-size: 11px;
  }
  nav a:last-child {
    display: none;
  }
  .hero {
    height: 850px;
    min-height: 0;
    max-height: 1100px;
  }
  .hero-image {
    object-position: 71% top;
    height: 600px;
    object-fit: cover;
    opacity: 0.88;
  }
  .hero-shade {
    background:
      linear-gradient(0deg, #070b1b 1%, #070b1b 18%, #02071e10 73%),
      linear-gradient(90deg, #02071e88, transparent);
  }
  .hero-copy {
    padding-top: 345px;
    margin: 0 24px;
    width: calc(100% - 48px);
  }
  .hero-kicker {
    font-size: 11px;
    margin-bottom: 18px;
  }
  .hero h1 {
    font-size: clamp(52px, 11.7vw, 85px);
    letter-spacing: -0.035em;
    margin-bottom: 21px;
    line-height: 1.04;
  }
  .hero-description {
    font-size: 16px;
    margin-bottom: 22px;
  }
  .hero .button {
    min-height: 52px;
    padding: 12px 20px;
    font-size: 13px;
  }
  .hero-note {
    font-size: 9px;
  }
  .hero-bottom {
    bottom: 24px;
    left: 24px;
    right: 24px;
    padding-top: 17px;
    font-size: 9px;
  }
  .hero-bottom > span {
    max-width: 145px;
  }
  .manifesto {
    padding: 35px 24px;
    display: block;
  }
  .manifesto > span {
    font-size: 25px;
  }
  .manifesto p {
    font-size: 12px;
    margin-top: 20px;
  }
  .section {
    padding: 50px 24px;
  }
  .section-head {
    display: block;
    margin-bottom: 25px;
  }
  .section-head p {
    margin-top: 18px;
    max-width: 100%;
  }
  h2 {
    font-size: 33px;
  }
  .plans {
    display: block;
  }
  .plan,
  .plan:first-child,
  .plan:last-child {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 20px;
  }
  .plan h3 {
    grid-column: 1;
    font-size: 15px;
  }
  .plan .price {
    grid-row: 1/3;
    grid-column: 2;
    margin: 0;
    font-size: 42px;
  }
  .plan .virtual {
    margin: 0;
    font-size: 10px;
  }
  .plan ul {
    grid-column: 1/-1;
    margin: 10px 0;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .plan button {
    grid-column: 1/-1;
  }
  .terminal {
    margin: 0 12px;
    padding: 20px 14px;
  }
  .terminal-top {
    display: block;
  }
  .terminal h2 {
    font-size: 29px;
  }
  .status {
    text-align: left;
    max-width: none;
    margin-top: 14px;
    font-size: 10px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    margin: 22px 0;
  }
  .metric,
  .metric:first-child {
    padding: 14px 10px;
  }
  .metric:nth-child(2) {
    border-right: 0;
  }
  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .metric strong {
    font-size: 19px;
  }
  .metric span {
    font-size: 10px;
  }
  .workbench {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .chart-price {
    font-size: 25px;
  }
  .ticket {
    padding: 18px;
  }
  .rules-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .rules-text {
    font-size: 12px;
  }
  #about h2 {
    font-size: 27px;
  }
  footer {
    font-size: 11px;
  }
  .hero-image {
    will-change: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-image {
    will-change: auto;
    transform: none !important;
  }
}

/* V3 preserves the v2 art direction; separate information and working surfaces. */
[hidden] {
  display: none !important;
}
header {
  position: relative;
  min-height: 96px;
  height: auto;
  padding-top: 24px;
  padding-bottom: 24px;
  gap: 24px;
}
body.landing header {
  position: absolute;
}
nav {
  gap: 24px;
  flex-wrap: wrap;
}
nav a[aria-current="page"] {
  color: #fff;
  border-bottom: 2px solid #6f8cff;
  padding-bottom: 6px;
}
nav a:last-child {
  display: inline;
}
.page-title {
  font:
    700 clamp(42px, 6vw, 76px)/1.12 Oswald,
    Arial,
    sans-serif;
  margin: 0 0 24px;
}
.intro {
  max-width: 750px;
  color: var(--muted);
  margin-bottom: 35px;
}
.disclosure {
  padding: 18px 22px;
  border-left: 2px solid var(--gold);
  background: #121b32;
  color: #b9c5e0;
  font-size: 13px;
  margin: 28px 0;
}
.page-banner {
  background: linear-gradient(100deg, #101c43, #070b1b);
  border-bottom: 1px solid var(--line);
}
.page-banner .section {
  padding-top: 55px;
  padding-bottom: 50px;
}
.dashboard {
  max-width: 1320px;
  padding: 45px 40px;
  margin: auto;
}
.dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 25px;
}
.dashboard-summary {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  padding: 25px 0;
}
progress {
  width: 100%;
  height: 9px;
  accent-color: #5076ff;
}
.dashboard .metrics {
  margin-top: 18px;
}
.dashboard h1 {
  font-size: 48px;
}
.dashboard .subheading {
  margin-top: 36px;
}
.empty {
  max-width: 780px;
  padding: 65px 30px;
  margin: 50px auto;
  border: 1px solid var(--line);
  background: #0c142b;
}
.terminal-page header {
  padding: 18px 24px;
  min-height: 78px;
}
.terminal-page .wordmark {
  font-size: 27px;
}
.terminal-page .terminal {
  max-width: none;
  width: 100%;
  margin: 0;
  min-height: calc(100svh - 78px);
  padding: 24px;
  border: 0;
  box-shadow: none;
}
.terminal-page .metrics {
  margin: 18px 0;
}
.terminal-page .metric {
  padding-top: 12px;
  padding-bottom: 12px;
}
.terminal-page .terminal h2 {
  font-size: 27px;
}
.terminal-page .workbench {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
}
.terminal-page .chartbox {
  border: 1px solid var(--line);
  padding: 16px;
}
.terminal-page .feedback {
  margin: 12px 0;
}
.terminal-page .terminal-top {
  align-items: start;
}
.writer-status {
  color: #d1b98c;
  font-size: 12px;
  margin: 0 0 12px;
}
.terminal-page .actions {
  margin-top: 15px;
}
.terminal-page .subheading {
  margin-top: 17px;
}
.terminal-page .note {
  max-width: 1000px;
}
.terminal-page .chartbox .note {
  margin-bottom: 0;
}
.plan .reference {
  color: var(--gold);
  font-size: 14px;
  margin-top: 0;
}
.plan .price {
  font-size: 52px;
}
@media (max-width: 780px) {
  header,
  .terminal-page header {
    padding: 18px 20px;
    display: block;
    min-height: 112px;
  }
  nav {
    gap: 10px 19px;
    margin-top: 17px;
  }
  nav a {
    font-size: 12px;
  }
  .hero-copy {
    padding-top: 320px;
  }
  .hero {
    height: 840px;
  }
  .hero-image {
    height: 600px;
  }
  .dashboard {
    padding: 30px 20px;
  }
  .dashboard-head {
    display: block;
  }
  .dashboard-head .button {
    margin-top: 12px;
  }
  .dashboard-summary {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .terminal-page .terminal {
    padding: 20px 12px;
  }
  .terminal-page .workbench {
    grid-template-columns: 1fr;
  }
  .terminal-page .chartbox {
    padding: 12px;
  }
  .terminal-page .status {
    text-align: left;
  }
  .dashboard .metric strong {
    font-size: 17px;
  }
  .plan .price {
    font-size: 42px;
  }
  .plan .reference {
    grid-column: 1/-1;
    margin: 14px 0 0;
  }
  .section-head {
    display: block;
  }
  .page-title {
    font-size: 44px;
  }
  .terminal-top {
    display: block;
  }
  .terminal-page .ticket {
    padding: 18px;
  }
}
/* Exchange workspace: ink #080c12, panels #0e141d, rules #242d39,
   text #e4eaf2, bid #34c99a, ask #f17185. Chart is the visual anchor. */
.terminal-page { background:#080c12; font:12px/1.45 Arial,sans-serif; --line:#242d39; --muted:#a3afbe; --text:#e4eaf2; font-variant-numeric:tabular-nums; }
.terminal-page header { min-height:46px; padding:7px 16px; gap:16px; background:#10151f; border-bottom:1px solid var(--line); }
.terminal-page .wordmark {font-size:22px;white-space:nowrap;}
.terminal-page nav {margin-left:auto;gap:18px;}
.terminal-page nav a {font-size:11px;}
.local-badge {font-size:10px;color:#a8baff;border:1px solid #394976;padding:3px 7px;border-radius:3px;}
.terminal-page .terminal {padding:0; background:#080c12;min-height:calc(100svh - 46px);}
.account-bar {display:flex;align-items:center;gap:20px;min-height:32px;padding:5px 16px;border-bottom:1px solid var(--line);background:#0e141d;font-size:11px;}
.account-bar a {margin-left:auto;color:#a9b9d8;}
.terminal-page .writer-status {margin:0;font-size:10px;}
.market-bar {display:flex;align-items:center;gap:16px;padding:10px 16px;min-height:66px;border-bottom:1px solid var(--line);}
.market-bar #price {font-size:22px;color:#f0f4fa;white-space:nowrap;}
.market-bar select {font-weight:bold;min-height:34px;background:#131c28;border:1px solid var(--line);font-size:14px;width:132px;}
.venue {font-size:10px;color:var(--muted);max-width:80px;}
#market-stats {display:flex;gap:22px;align-items:center; flex:1;}
#market-stats span {font-size:10px;color:var(--muted);white-space:nowrap;}
#market-stats b {display:block;color:#e4eaf2;font-size:12px;margin-top:4px;font-weight:500;}
.connection-bar {font-size:10px;color:var(--muted);padding:4px 16px;border-bottom:1px solid var(--line);}
.terminal-page .workbench {display:grid;grid-template-columns:minmax(0,1fr) 240px 294px;gap:0;align-items:stretch;}
.terminal-page .chartbox {padding:0;border:0;min-width:0;}
.terminal-page .chart-controls {display:flex;align-items:center;gap:16px;min-height:40px;padding:5px 12px;border-bottom:1px solid var(--line);}
.terminal-page .chart-controls label {display:flex;align-items:center;gap:8px;font-size:11px;}
.terminal-page button,.terminal-page input,.terminal-page select {border-radius:4px;}
.terminal-page .chart-controls button,.terminal-page .chart-controls select {font-size:11px;min-height:28px;padding:3px 8px;}
.terminal-page #candles {height:clamp(340px,47vh,610px);min-height:340px;}
.terminal-page .chart-meta,.terminal-page .chart-label,.terminal-page #stream-price {font-size:10px;padding:3px 12px;margin:0;}
.terminal-page .chart-attribution {font-size:9px;line-height:1.5;margin:0;padding:5px 12px;color:#a3afbe;}
.orderbook {border-left:1px solid var(--line);border-right:1px solid var(--line);min-width:0;background:#0b1018;display:flex;flex-direction:column;}
.panel-tabs {display:flex;gap:12px;min-height:40px;align-items:stretch;padding:0 12px;border-bottom:1px solid var(--line);}
.terminal-page .panel-tabs button {background:none;border:0;border-radius:0;color:var(--muted);padding:9px 0;min-height:40px;font-size:11px;}
.terminal-page .panel-tabs button[aria-pressed=true] {color:#f2f5fa;border-bottom:2px solid #7290ff;}
.depth-head,.depth-row,.trade-row {display:grid;grid-template-columns:1.1fr 1fr 1fr;text-align:right;gap:5px;padding:2px 10px;font-size:11px;min-height:20px;}
.depth-head {font-size:10px;color:var(--muted);padding-top:8px;padding-bottom:8px;}
.depth-head span:first-child,.depth-row span:first-child,.trade-row span:first-child {text-align:left;}
.depth-row {background:linear-gradient(to left,var(--depth-color) var(--depth,0%),transparent var(--depth,0%));}
.asks {--depth-color:#ee597b18;}.bids {--depth-color:#28c69c18;}
.asks .depth-row span:first-child,.trade-row.sell span:first-child {color:#f17185;}
.bids .depth-row span:first-child,.trade-row.buy span:first-child {color:#34c99a;}
.spread {padding:9px 10px;font-weight:bold;border-block:1px solid #202938;color:#c8d5e8;min-height:36px;}
.terminal-page .orderbook .note {font-size:10px;padding:8px 10px;margin:0;line-height:1.55;}
#book-status {margin-top:auto!important;border-top:1px solid var(--line);}
#book-status[data-fresh=false] {color:#e4be85;}
.terminal-page .ticket {padding:12px;display:grid;grid-template-columns:1fr 1fr;gap:12px 8px;background:#0e141d;border:0;align-content:start;}
.terminal-page .ticket label {font-size:11px;color:var(--muted);display:flex;flex-direction:column;gap:5px;min-width:0;}
.terminal-page .ticket input,.terminal-page .ticket select {width:100%;min-width:0;background:#141c28;border:1px solid #303c4d;padding:9px;color:#eff3f9;min-height:38px;}
.terminal-page .ticket h2,.terminal-page .ticket h3 {font:600 12px Arial;margin:0;}
.ticket-title {display:flex;justify-content:space-between;gap:10px;align-items:center;}
#ticket-symbol {color:#95afff;font-size:11px;}
.terminal-page .ticket .note {font-size:10px;margin:0;line-height:1.6;}
.terminal-page #long,.terminal-page #short {font-size:12px;padding:10px 5px;min-height:42px;border:0;background:#148867;color:white;}
.terminal-page #short {background:#bb3e58;}
.ticket-estimate,.ticket-account {display:flex;flex-direction:column;gap:8px;font-size:11px;}
.ticket-account {border-top:1px solid var(--line);padding-top:16px;}
.ticket-estimate span,.ticket-account span {display:flex;justify-content:space-between;color:var(--muted);gap:8px;}
.ticket-estimate b,.ticket-account b {color:var(--text);font-weight:500;}
.terminal-page .feedback {padding:0 12px;margin:0; font-size:11px;}
.terminal-page .feedback:not(:empty) {padding-block:8px;border-block:1px solid var(--line);}
.ledger {border-top:1px solid var(--line);min-width:0;min-height:150px;}
.terminal-page .scroll table {font-size:11px;min-width:680px;}
.terminal-page .scroll th,.terminal-page .scroll td {padding:10px 14px;}
.terminal-page .scroll th {font-size:10px;font-weight:500;background:#0e141d;}
.terminal-page .scroll button {font-size:11px;min-height:30px;padding:4px 12px;background:#26334c;}
.terminal-details {padding:10px 14px;border-top:1px solid var(--line);font-size:11px;color:var(--muted);}
.terminal-details summary {cursor:pointer;}
.mobile-tabs {display:none;}
.terminal-page [hidden] {display:none!important;}
@media(max-width:1150px) and (min-width:781px) {.terminal-page .workbench {grid-template-columns:minmax(0,1fr) 210px 260px;} .venue {display:none;} #market-stats {gap:12px;} #market-stats span {font-size:9px;} .market-bar {gap:10px;padding-inline:10px;} }
@media(max-width:780px) {
 .terminal-page header {display:flex;min-height:44px;padding:7px 10px;flex-wrap:wrap;gap:8px;}
 .terminal-page nav {margin:0 0 0 auto;gap:10px;}.terminal-page nav a {display:none;}.terminal-page nav a[href='dashboard.html'] {display:inline;}
 .terminal-page .wordmark {font-size:20px;}.local-badge {font-size:9px;}
 .account-bar {padding:5px 10px;gap:8px;flex-wrap:wrap;font-size:10px;}.account-bar a {display:none;}.account-bar #writer-status {font-size:9px;}
 .market-bar {padding:8px 10px;gap:12px;flex-wrap:wrap;}.market-bar #price {font-size:20px;}.venue {display:inline;max-width:none;}
 #market-stats {flex-basis:100%;gap:14px;overflow-x:auto;padding-bottom:4px;}#market-stats span {font-size:9px;}#market-stats b {font-size:11px;}
 .connection-bar {font-size:9px;padding:4px 10px;}
 .terminal-page .terminal {padding:0;}.terminal-page .workbench {display:block;}.terminal-page .chartbox {padding:0;}
 .mobile-tabs {display:flex;border-bottom:1px solid var(--line);background:#111926;position:sticky;top:0;z-index:5;}
 .terminal-page .mobile-tabs button {flex:1;border:0;background:none;border-radius:0;padding:12px 2px;font-size:11px;color:var(--muted);min-height:44px;}
 .terminal-page .mobile-tabs button[aria-pressed=true] {color:white;box-shadow:inset 0 -2px #7290ff;}
 .terminal-page .chart-controls {gap:10px;}.terminal-page .chart-controls label {font-size:10px;}.terminal-page .chart-controls button {font-size:10px;margin-left:auto;}
 .terminal-page #candles {height:390px;min-height:300px;}
 .terminal-page .ticket {padding:16px;gap:16px 12px;}.terminal-page .ticket input,.terminal-page .ticket select {font-size:16px;min-height:44px;}
 .orderbook {min-height:530px;border:0;}.depth-row,.trade-row {min-height:24px;font-size:12px;padding-inline:16px;}.depth-head {padding-inline:16px;}.spread {padding-inline:16px;}
 .terminal[data-mobile=chart] .orderbook,.terminal[data-mobile=chart] .ticket,.terminal[data-mobile=chart] .ledger,
 .terminal[data-mobile=book] .chartbox,.terminal[data-mobile=book] .ticket,.terminal[data-mobile=book] .ledger,
 .terminal[data-mobile=trade] .chartbox,.terminal[data-mobile=trade] .orderbook,.terminal[data-mobile=trade] .ledger,
 .terminal[data-mobile=pnl] .workbench {display:none;}
 .terminal-details {margin-top:0;}.terminal-page .scroll th,.terminal-page .scroll td {padding:10px;}
}
@media (max-width: 360px) {
  nav {
    gap: 10px 14px;
  }
  .wordmark {
    font-size: 24px;
  }
  .metric strong {
    font-size: 15px;
  }
  .chart-price {
    font-size: 22px;
  }
}
