@font-face {
  font-family: Inter;
  src: url("/fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
[hidden] {
  display: none !important;
}
:root {
  --bg: #101719;
  --panel: #151e20;
  --panel2: #1b2528;
  --line: #2b383b;
  --text: #e5eceb;
  --muted: #9eafaf;
  --accent: #bee8bc;
  --accent-ink: #17291a;
  --green: #70d6ae;
  --red: #ff9c9c;
  --input: #10191b;
  --shadow: 0 16px 60px #0005;
  color-scheme: dark;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
}
:root[data-theme="light"] {
  --bg: #f1f3ef;
  --panel: #fff;
  --panel2: #e8eeea;
  --line: #d5ded8;
  --text: #162725;
  --muted: #586c67;
  --accent: #23553e;
  --accent-ink: #fff;
  --green: #18734f;
  --red: #b22d39;
  --input: #f6f8f5;
  --shadow: 0 16px 60px #19362920;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel2);
  color: var(--text);
  padding: 10px 14px;
  min-height: 40px;
}
button:hover:not(:disabled) {
  filter: brightness(1.12);
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  background: var(--input);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
}
input::placeholder {
  color: var(--muted);
  opacity: 1;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}
input[type="file"] {
  font-size: 12px;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
form {
  display: grid;
  gap: 18px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 38px;
  letter-spacing: -1.5px;
  font-weight: 600;
  line-height: 1.15;
}
h2 {
  font-size: 24px;
  letter-spacing: -0.6px;
  font-weight: 600;
}
h3 {
  font-size: 16px;
  font-weight: 550;
}
p {
  line-height: 1.6;
}
small,
.small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.positive {
  color: var(--green);
}
.negative,
.danger-text {
  color: var(--red);
}
.num {
  font-variant-numeric: tabular-nums;
}
.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}
.secondary {
  background: transparent;
}
.full {
  width: 100%;
}
.text-button {
  border: 0;
  background: transparent;
  padding: 0;
  min-height: 30px;
  font-weight: 550;
}
.icon-button {
  font-size: 23px;
  line-height: 1;
  padding: 6px 12px;
  background: transparent;
}
.check {
  display: flex;
  align-items: flex-start;
  font-weight: 400;
  gap: 10px;
  line-height: 1.6;
}
.check input {
  flex-shrink: 0;
  margin-top: 2px;
}
.form-error {
  color: var(--red);
  font-size: 12px;
  margin: 0;
  min-height: 0;
}
.form-error:empty {
  display: none;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 600;
  color: var(--muted);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.5px;
  text-decoration: none;
  white-space: nowrap;
}
.brand-light {
  font-weight: 400;
  color: var(--muted);
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 15px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}
.boot {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.boot span {
  color: var(--muted);
  font-size: 13px;
}
.auth-header {
  height: 110px;
  max-width: 1320px;
  margin: auto;
  padding: 0 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.auth-layout {
  max-width: 1210px;
  margin: 70px auto 100px;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 100px;
  align-items: start;
}
.auth-intro {
  padding: 32px 0;
}
.auth-intro h1 {
  font-size: clamp(36px, 4.1vw, 60px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin: 26px 0;
}
.auth-intro h1 span {
  color: var(--accent);
}
.intro-copy {
  max-width: 450px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}
.intro-facts {
  display: flex;
  gap: 50px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
  margin-top: 40px;
}
.intro-facts div {
  display: grid;
  gap: 10px;
}
.intro-facts strong {
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -1px;
}
.intro-facts span {
  font-size: 11px;
  color: var(--muted);
}
.practice-note {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 45px;
}
.practice-note p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.note-mark {
  font-size: 30px;
  font-weight: 300;
  color: var(--accent);
}
.intro-foot {
  font-size: 11px;
  color: var(--muted);
  margin: 40px 0 0;
}
.auth-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 36px;
  border-radius: 10px;
  max-width: 420px;
}
.auth-panel h2 {
  margin: 20px 0 12px;
}
.auth-panel > p {
  font-size: 12px;
  margin-bottom: 28px;
}
.auth-panel input {
  height: 48px;
}
.auth-panel .primary {
  height: 48px;
  margin-top: 2px;
}
.auth-switch {
  font-size: 12px;
  text-align: center;
  margin: 22px 0 4px;
  color: var(--muted);
}
.auth-switch button {
  font-size: 12px;
  color: var(--text);
}
.telegram-link {
  display: block;
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 22px;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
}
.auth-footer {
  display: flex;
  justify-content: space-between;
  max-width: 1210px;
  margin: auto;
  padding: 20px 40px;
  color: var(--muted);
  font-size: 11px;
}
.legal {
  max-width: 780px;
  margin: 50px auto;
  padding: 0 24px 60px;
}
.legal h1 {
  margin: 20px 0 35px;
}
.legal h2 {
  font-size: 21px;
  margin-top: 35px;
}
.legal p {
  color: var(--muted);
  font-size: 14px;
}
.mfa-panel {
  max-width: 410px;
  margin: 70px auto;
  padding: 25px;
}
.mfa-panel h1 {
  font-size: 29px;
  margin-top: 20px;
}
.mfa-panel p {
  font-size: 13px;
}
.qr {
  display: block;
  margin: 15px auto 25px;
  max-width: 220px;
  border-radius: 8px;
}
.mfa-panel details {
  margin-bottom: 20px;
  font-size: 12px;
}
.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.topbar .brand {
  font-size: 17px;
}
.demo-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 5px 7px;
  border: 1px solid #73957966;
  color: var(--accent);
  border-radius: 4px;
}
.topnav {
  display: flex;
  gap: 24px;
  margin-left: 20px;
  height: 72px;
  align-items: center;
}
.topnav a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  height: 100%;
  border-bottom: 2px solid transparent;
}
.topnav a.selected {
  color: var(--text);
  border-color: var(--accent);
}
.top-actions {
  margin-left: auto;
  display: flex;
  gap: 16px;
  align-items: center;
}
.reward-button {
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 650;
  border: 0;
}
.account-button {
  font-size: 12px;
  background: transparent;
  border: 0;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-button span {
  margin-left: 10px;
  color: var(--muted);
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  color: var(--muted);
  padding: 16px 28px;
  border-top: 1px solid var(--line);
}
.footer > div {
  display: flex;
  gap: 18px;
}
.footer a {
  text-decoration: none;
}
.account-strip {
  display: flex;
  align-items: center;
  gap: 36px;
  min-height: 87px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
}
.metric {
  display: grid;
  gap: 8px;
}
.metric small {
  font-size: 10px;
  color: var(--muted);
}
.metric strong {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.metric:first-child strong {
  color: var(--accent);
}
.feed-status {
  margin-left: auto;
  font-size: 10px;
  display: grid;
  gap: 7px;
  text-align: right;
  color: var(--muted);
}
.feed-status strong {
  font-size: 11px;
  font-weight: 500;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 6px;
}
.status-dot.stale {
  background: var(--red);
}
.terminal-grid {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr) 280px;
  min-height: 535px;
  border-bottom: 1px solid var(--line);
}
.watchlist {
  border-right: 1px solid var(--line);
  padding: 18px 0;
}
.section-label {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  padding: 0 18px;
  margin-bottom: 18px;
}
.watch-item {
  border: 0;
  border-radius: 0;
  background: transparent;
  width: 100%;
  display: flex;
  justify-content: space-between;
  text-align: left;
  gap: 10px;
  padding: 14px 18px;
  min-height: 65px;
}
.watch-item.active {
  background: var(--panel2);
  border-left: 1px solid var(--accent);
  padding-left: 17px;
}
.watch-item > span {
  display: grid;
  gap: 6px;
}
.watch-item strong {
  font-size: 12px;
  font-weight: 550;
}
.watch-item small {
  font-size: 10px;
  color: var(--muted);
}
.watch-item .watch-price {
  text-align: right;
  align-content: center;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.watch-foot {
  font-size: 10px;
  color: var(--muted);
  padding: 25px 18px 0;
  line-height: 1.7;
}
.chart-section {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.chart-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 20px 11px;
  gap: 10px;
}
.chart-heading h1 {
  font-size: 20px;
  margin: 0;
  letter-spacing: -0.5px;
}
.chart-heading .subprice {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.chart-last {
  font-size: 23px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.chart-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.chart-tools select {
  width: auto;
  min-height: 30px;
  padding: 5px 7px;
  font-size: 10px;
  background: transparent;
  border: 0;
}
.chart-tools button {
  font-size: 10px;
  padding: 4px 8px;
  min-height: 30px;
  background: transparent;
}
.chart-wrap {
  position: relative;
  flex: 1;
  min-height: 340px;
}
.chart-canvas {
  position: absolute;
  inset: 0;
}
.drawing-svg {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
  touch-action: none;
}
.chart-message {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: var(--muted);
  font-size: 12px;
  z-index: 6;
}
.chart-credit {
  display: flex;
  justify-content: space-between;
  padding: 9px 16px;
  font-size: 9px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.chart-credit a {
  color: var(--muted);
}
.oscillator {
  height: 120px;
  border-top: 1px solid var(--line);
  position: relative;
}
.order-panel {
  padding: 22px 20px;
  border-left: 1px solid var(--line);
  background: var(--panel);
}
.order-panel h2 {
  font-size: 15px;
  margin: 0 0 22px;
}
.order-panel form {
  gap: 14px;
}
.order-panel label {
  font-size: 10px;
  gap: 6px;
}
.order-panel input,
.order-panel select {
  min-height: 39px;
  padding: 9px 10px;
  font-size: 12px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.order-estimate {
  border-top: 1px solid var(--line);
  padding-top: 13px;
  display: grid;
  gap: 9px;
}
.order-estimate div {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
}
.order-estimate b {
  color: var(--text);
  font-weight: 450;
  font-variant-numeric: tabular-nums;
}
.trade-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 3px;
}
.trade-buttons button {
  min-height: 49px;
  font-size: 13px;
  font-weight: 600;
  display: grid;
  gap: 4px;
}
.trade-buttons small {
  font-size: 10px;
  font-weight: 400;
}
.buy {
  background: #224b3c;
  color: #a9e2c5;
  border: 1px solid #396351;
}
.sell {
  background: #4a2c30;
  color: #ffc0c1;
  border: 1px solid #71444a;
}
.order-notice {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.6;
  margin: 14px 0 0;
}
.book-section {
  padding: 0 28px 25px;
  min-height: 230px;
}
.book-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
  overflow-x: auto;
}
.book-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
  min-height: 54px;
  padding: 10px 0;
}
.book-tabs button.active {
  color: var(--text);
  border-color: var(--accent);
}
.book-tabs .export {
  margin-left: auto;
  font-size: 10px;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
  white-space: nowrap;
}
th {
  padding: 13px 12px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
th:first-child,
td:first-child {
  padding-left: 0;
}
td button {
  min-height: 29px;
  font-size: 10px;
  padding: 5px 10px;
  margin-right: 7px;
  background: transparent;
}
.side-tag {
  font-size: 10px;
  font-weight: 600;
}
.empty {
  text-align: center;
  padding: 47px 20px;
  color: var(--muted);
}
.empty strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.empty p {
  font-size: 11px;
  margin: 10px auto 0;
  max-width: 420px;
}
.pill {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 9px;
}
.market-alert {
  font-size: 11px;
  padding: 10px 28px;
  background: #593d222b;
  color: var(--red);
  border-bottom: 1px solid var(--line);
}
dialog {
  padding: 0;
  width: min(480px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
  max-height: 90dvh;
}
dialog::backdrop {
  background: #061012b8;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.dialog-head h2 {
  font-size: 19px;
  margin: 0;
}
.dialog-body {
  padding: 24px;
}
.dialog-body p {
  font-size: 13px;
}
.dialog-body .secondary {
  margin-top: 12px;
}
.account-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.recovery-code {
  display: block;
  overflow-wrap: anywhere;
  user-select: all;
  font-size: 16px;
  line-height: 1.8;
  padding: 16px;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 16px 0 22px;
}
.poster {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  background: var(--bg);
  margin-bottom: 20px;
}
.poster img {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  display: block;
}
.poster-copy {
  padding: 26px 22px;
}
.poster-copy h3 {
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.7px;
}
.poster-copy p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 0;
}
.reward-timer {
  height: 3px;
  background: var(--line);
  margin: 20px 0;
}
.reward-timer span {
  display: block;
  height: 100%;
  background: var(--accent);
  width: 0;
}
.ad-label {
  text-align: left;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 14px;
  color: var(--muted);
}
#toasts {
  position: fixed;
  bottom: 22px;
  right: 24px;
  display: grid;
  gap: 10px;
  z-index: 1000;
  max-width: 370px;
}
.toast {
  background: var(--panel2);
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-left: 1px solid var(--accent);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 12px;
  line-height: 1.5;
}
.toast.error {
  border-left-color: var(--red);
}
.crm-layout {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  min-height: calc(100vh - 120px);
}
.crm-nav {
  border-right: 1px solid var(--line);
  padding: 26px 14px;
  background: var(--panel);
}
.crm-nav .eyebrow {
  padding: 0 13px;
  display: block;
  margin: 0 0 20px;
}
.crm-nav button {
  width: 100%;
  text-align: left;
  display: block;
  margin-bottom: 6px;
  padding: 13px;
  border: 0;
  background: transparent;
  font-size: 12px;
  color: var(--muted);
}
.crm-nav button.active {
  background: var(--panel2);
  color: var(--text);
}
.crm-main {
  padding: 35px 36px;
  min-width: 0;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.page-heading h1 {
  font-size: 30px;
  margin: 0 0 10px;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.page-heading button {
  font-size: 12px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 30px 0 35px;
}
.stats-grid > div {
  padding: 25px 20px;
  border-right: 1px solid var(--line);
  display: grid;
  gap: 13px;
}
.stats-grid > div:first-child {
  padding-left: 0;
}
.stats-grid > div:last-child {
  border: 0;
}
.stats-grid small {
  color: var(--muted);
  font-size: 11px;
}
.stats-grid strong {
  font-size: 32px;
  font-weight: 450;
  letter-spacing: -1px;
}
.data-block {
  margin: 30px 0;
}
.data-block h2 {
  font-size: 17px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
}
.toolbar input {
  max-width: 300px;
}
.toolbar button {
  font-size: 12px;
}
.campaign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.campaign-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}
.campaign-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.campaign-card .content {
  padding: 20px;
}
.campaign-card h3 {
  margin: 14px 0 10px;
}
.campaign-card p {
  font-size: 12px;
  color: var(--muted);
}
.campaign-metrics {
  display: flex;
  gap: 22px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin: 20px 0;
}
.campaign-metrics > div {
  display: grid;
  gap: 7px;
}
.campaign-metrics strong {
  font-size: 18px;
  font-weight: 450;
}
.campaign-metrics span {
  font-size: 9px;
  color: var(--muted);
}
.settings-form {
  max-width: 640px;
}
.settings-form .two-col {
  gap: 20px;
}
.settings-form button {
  max-width: 240px;
  margin-top: 10px;
}
.news-list {
  display: grid;
  gap: 0;
}
.news-row {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
}
.news-row h3 {
  font-size: 15px;
  max-width: 700px;
  line-height: 1.5;
  margin: 10px 0;
}
.news-body {
  white-space: pre-line;
  max-width: 76ch;
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 16px;
}
.news-row p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.news-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.news-actions button {
  font-size: 10px;
  min-height: 32px;
  padding: 7px 10px;
}
.source-row {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.mini-chart {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 130px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.mini-chart > div {
  background: var(--accent);
  opacity: 0.7;
  min-width: 8px;
  flex: 1;
  position: relative;
}
.mini-chart > div:hover {
  opacity: 1;
}
@media (min-width: 1600px) {
  .terminal-grid {
    grid-template-columns: 230px minmax(0, 1fr) 300px;
    min-height: 620px;
  }
  .watch-item {
    padding-top: 17px;
    padding-bottom: 17px;
  }
  .chart-wrap {
    min-height: 410px;
  }
  .order-panel {
    padding: 25px;
  }
  .account-strip {
    gap: 60px;
  }
}
@media (max-width: 1100px) {
  .topbar {
    padding: 0 18px;
    gap: 15px;
  }
  .topnav {
    margin-left: 0;
    gap: 16px;
  }
  .demo-label {
    font-size: 8px;
  }
  .terminal-grid {
    grid-template-columns: 165px minmax(0, 1fr) 250px;
  }
  .watch-item {
    padding-left: 12px;
    padding-right: 12px;
  }
  .watch-item.active {
    padding-left: 11px;
  }
  .watch-item strong {
    font-size: 11px;
  }
  .watch-price {
    font-size: 10px !important;
  }
  .account-strip {
    gap: 25px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .metric strong {
    font-size: 18px;
  }
  .order-panel {
    padding: 20px 15px;
  }
  .auth-layout {
    gap: 55px;
  }
  .crm-main {
    padding: 30px 24px;
  }
  .stats-grid strong {
    font-size: 25px;
  }
}
@media (max-width: 850px) {
  .auth-layout {
    gap: 35px;
    margin-top: 35px;
    padding: 0 24px;
    grid-template-columns: 1fr 1fr;
  }
  .auth-header {
    padding: 0 25px;
    height: 90px;
  }
  .auth-intro h1 {
    font-size: 38px;
  }
  .intro-facts {
    gap: 24px;
  }
  .intro-facts strong {
    font-size: 24px;
  }
  .auth-panel {
    padding: 27px;
  }
  .topnav {
    display: flex;
    order: 4;
    flex-basis: 100%;
    height: 40px;
    margin: 0;
    gap: 24px;
  }
  .topbar {
    flex-wrap: wrap;
    padding-top: 10px;
  }
  .topbar {
    min-height: 64px;
  }
  .top-actions {
    gap: 4px;
  }
  .account-button {
    max-width: 130px;
  }
  .terminal-grid {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .watchlist {
    grid-column: 1/-1;
    display: flex;
    overflow: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0;
  }
  .watchlist .section-label,
  .watch-foot {
    display: none;
  }
  .watch-item {
    min-width: 140px;
    width: 140px;
    min-height: 59px;
  }
  .watch-item.active {
    border-left: 0;
    border-bottom: 2px solid var(--accent);
    padding-left: 12px;
  }
  .chart-section {
    min-height: 430px;
  }
  .feed-status {
    display: none;
  }
  .account-strip {
    gap: 25px;
    overflow: auto;
    min-height: 80px;
  }
  .metric {
    min-width: 90px;
  }
  .metric small {
    white-space: nowrap;
  }
  .metric strong {
    font-size: 17px;
  }
  .crm-layout {
    grid-template-columns: 1fr;
  }
  .crm-nav {
    display: flex;
    overflow: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 8px 16px;
    gap: 5px;
  }
  .crm-nav .eyebrow {
    display: none;
  }
  .crm-nav button {
    width: auto;
    white-space: nowrap;
    margin: 0;
    min-height: 36px;
    padding: 9px 13px;
  }
  .crm-main {
    padding: 24px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }
  .stats-grid > div {
    padding-left: 0;
  }
  .stats-grid > div:nth-child(2) {
    border: 0;
    padding-left: 20px;
  }
  .stats-grid > div:nth-child(4) {
    padding-left: 20px;
  }
  .news-row {
    grid-template-columns: 1fr;
  }
  .news-actions {
    justify-content: flex-start;
  }
  .footer {
    font-size: 9px;
    padding: 14px 18px;
  }
}
@media (max-width: 600px) {
  .auth-header {
    height: 76px;
    padding: 0 20px;
  }
  .auth-header > a:last-child {
    font-size: 10px;
  }
  .auth-layout {
    display: flex;
    flex-direction: column;
    margin: 15px auto 35px;
    padding: 0 20px;
    gap: 28px;
  }
  .auth-intro {
    padding: 10px 0;
    width: 100%;
  }
  .auth-intro .eyebrow {
    font-size: 8px;
  }
  .auth-intro h1 {
    font-size: 36px;
    letter-spacing: -0.04em;
    margin: 18px 0 16px;
  }
  .intro-copy {
    font-size: 13px;
    margin-bottom: 0;
  }
  .intro-facts {
    margin-top: 24px;
    padding-top: 20px;
    justify-content: space-between;
    gap: 12px;
  }
  .intro-facts strong {
    font-size: 24px;
  }
  .intro-facts span {
    font-size: 9px;
  }
  .practice-note,
  .intro-foot {
    display: none;
  }
  .auth-panel {
    max-width: none;
    width: 100%;
    padding: 26px;
  }
  .auth-panel > .eyebrow {
    display: none;
  }
  .auth-panel h2 {
    margin-top: 0;
  }
  .auth-footer {
    padding: 15px 20px;
    font-size: 9px;
  }
  .topbar {
    padding: 10px 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .topbar .brand {
    font-size: 13px;
    gap: 7px;
  }
  .topbar .brand img {
    width: 26px;
    height: 26px;
  }
  .reward-button {
    padding: 9px 10px;
    min-height: 34px;
    font-size: 10px;
  }
  .account-button {
    max-width: 84px;
    padding: 5px;
    font-size: 10px;
    min-height: 34px;
  }
  .account-button span {
    display: none;
  }
  .top-actions {
    gap: 4px;
  }
  .account-strip {
    padding: 14px 14px;
    gap: 22px;
    min-height: 75px;
  }
  .metric {
    min-width: 84px;
  }
  .metric strong {
    font-size: 16px;
  }
  .metric small {
    font-size: 9px;
  }
  .terminal-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .watch-item {
    min-width: 132px;
    width: 132px;
    padding: 10px 12px;
    min-height: 55px;
  }
  .watch-item strong {
    font-size: 11px;
  }
  .watch-item small {
    font-size: 9px;
  }
  .chart-section {
    min-height: 395px;
  }
  .chart-heading {
    padding: 15px 14px 8px;
  }
  .chart-heading h1 {
    font-size: 17px;
  }
  .chart-last {
    font-size: 20px;
  }
  .chart-tools {
    padding: 5px 10px;
    gap: 3px;
  }
  .chart-tools select {
    max-width: 125px;
    font-size: 10px;
  }
  .chart-wrap {
    min-height: 270px;
  }
  .chart-credit {
    font-size: 8px;
    padding: 8px 12px;
  }
  .order-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 20px 16px;
  }
  .order-panel h2 {
    margin-bottom: 16px;
  }
  .order-panel form {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .order-panel form > .two-col,
  .order-estimate,
  .trade-buttons,
  .order-panel .form-error {
    grid-column: 1/-1;
  }
  .order-estimate {
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
  }
  .order-panel label {
    font-size: 11px;
  }
  .order-panel input,
  .order-panel select {
    min-height: 42px;
  }
  .trade-buttons button {
    min-height: 50px;
  }
  .order-notice {
    font-size: 10px;
  }
  .book-section {
    padding: 0 16px 18px;
    min-height: 220px;
  }
  .book-tabs {
    gap: 20px;
  }
  .book-tabs button {
    font-size: 11px;
  }
  .book-tabs .export {
    font-size: 9px;
  }
  .footer {
    flex-direction: column;
    gap: 9px;
    font-size: 9px;
    padding: 15px 16px;
  }
  .footer > div {
    gap: 15px;
  }
  .crm-main {
    padding: 24px 16px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .page-heading button {
    font-size: 10px;
    padding: 8px 10px;
  }
  .stats-grid {
    margin: 20px 0;
  }
  .stats-grid > div {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .stats-grid strong {
    font-size: 28px;
  }
  .settings-form .two-col {
    grid-template-columns: 1fr;
  }
  .dialog-head {
    padding: 17px 20px;
  }
  .dialog-body {
    padding: 20px;
  }
  .dialog-head h2 {
    font-size: 17px;
  }
  #toasts {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
  .legal {
    margin-top: 25px;
  }
  .legal h1 {
    font-size: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Finish: visible demo context and navigation on every viewport. */
::selection {
  background: var(--accent);
  color: var(--accent-ink);
}
* {
  scrollbar-color: var(--muted) var(--bg);
  scrollbar-width: thin;
}
input,
textarea {
  caret-color: var(--accent);
}
.activity-range {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}
.mini-chart {
  gap: 4px;
}
.mini-chart > div {
  min-width: 0;
  flex: 1;
  opacity: 1;
  background: transparent;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
}
.mini-chart span {
  font-size: 9px;
  color: var(--muted);
}
.mini-chart i {
  display: block;
  width: 100%;
  background: var(--accent);
  min-height: 1px;
}
@media (max-width: 850px) {
  td button,
  .news-actions button {
    min-height: 44px;
  }
  .topnav a {
    min-height: 40px;
  }
  .demo-label {
    display: inline-block;
    white-space: nowrap;
  }
  .topbar {
    padding-bottom: 0;
  }
  .market-alert {
    padding: 12px 16px;
  }
}
@media (max-width: 600px) {
  .topbar .brand-light {
    display: none;
  }
  .topbar .brand {
    font-size: 14px;
  }
  .topnav {
    height: 44px;
  }
  .topnav a {
    min-height: 44px;
  }
  .reward-button,
  .account-button {
    min-height: 44px;
  }
  .topbar {
    padding-top: max(8px, env(safe-area-inset-top));
  }
  .footer {
    padding-bottom: max(15px, env(safe-area-inset-bottom));
  }
}
