@font-face {
  font-family: "JetBrains Mono Slashed";
  src: url("/fonts/JetBrainsMonoSlashed-ExtraLight.woff2") format("woff2");
  font-style: normal;
  font-weight: 200;
  font-display: swap;
}

/* Account · modern live trading setup */
.account-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.account-trading-view {
  width: min(100%, 1160px);
  margin: 0 auto;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
.account-trading-heading {
  align-items: center;
  padding-bottom: 22px;
}
.account-trading-heading h2 {
  color: #f3f3f5;
  font: 650 27px/1.15 Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: -.035em;
}
.account-trading-heading > div > p:last-child {
  max-width: 720px;
  margin-top: 8px;
  color: #898a91;
  font: 400 12px/1.55 Inter, "Segoe UI", Arial, sans-serif;
}
.account-binance-form {
  margin-top: 18px;
  padding: 17px 18px 14px;
  border-color: #303137;
  border-radius: 10px;
  background:
    radial-gradient(circle at 100% 0, rgba(210, 168, 66, .055), transparent 35%),
    #18181b;
}
.account-binance-summary {
  min-height: 38px;
  gap: 13px;
}
.account-binance-icon {
  width: 34px;
  height: 34px;
  border-color: #574a28;
  background: #2b2517;
  font-size: 17px;
}
.account-binance-summary > div { gap: 4px; }
.account-binance-summary b {
  color: #e7e7e9;
  font: 650 12px/1.2 Inter, "Segoe UI", Arial, sans-serif;
}
.account-binance-summary small {
  color: #797a81;
  font: 400 10px/1.25 Inter, "Segoe UI", Arial, sans-serif;
}
.account-binance-summary em {
  padding: 5px 7px;
  border: 1px solid #34353a;
  border-radius: 5px;
  background: #1d1d21;
  font-size: 7px;
}
.account-binance-summary em[data-tone="connected"] {
  border-color: rgba(66, 163, 116, .3);
  background: rgba(42, 125, 83, .1);
}
.account-binance-connected {
  min-height: 44px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  margin-top: 15px;
  padding: 14px 0 0;
  border-top: 1px solid #2a2b30;
}
.account-binance-identity {
  gap: 8px;
  padding-right: 18px;
  border-right: 1px solid #2a2b30;
}
.account-binance-connected b { font-size: 8px; }
.account-binance-connected small { font-size: 9px; }
.account-futures-balance { gap: clamp(16px, 3vw, 34px); }
.account-futures-balance > span {
  min-width: 94px;
  gap: 4px;
  text-align: left;
}
.account-futures-balance small { font-size: 7px; }
.account-futures-balance strong {
  color: #e4e4e6;
  font-size: 12px;
}
.account-binance-connected button {
  height: 29px;
  padding: 0 9px;
  border-color: #3f3034;
  background: transparent;
  font-size: 7px;
}
.account-futures-balance .account-balance-privacy {
  width: 28px;
  height: 28px;
}
.account-binance-form > p {
  margin: 12px 0 0 47px;
  color: #66676e;
  font: 400 9px/1.45 Inter, "Segoe UI", Arial, sans-serif;
}
.account-binance-help > a { font-size: 7px; }

.account-trading-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  padding-top: 16px;
}
.account-trade-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #2d2e33;
  border-radius: 10px;
  background: #18181b;
}
.account-card-heading {
  min-height: 67px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 19px;
  border-bottom: 1px solid #2a2b30;
  background: linear-gradient(180deg, rgba(255, 255, 255, .012), transparent);
}
.account-card-heading > div:first-child {
  display: grid;
  gap: 5px;
}
.account-card-heading > div:first-child > span,
.account-position-summary span,
.account-protection-estimate > span,
.account-risk-summary > span {
  color: #777880;
  font: 700 7px/1 "JetBrains Mono Slashed", "JetBrains Mono", monospace;
  letter-spacing: .12em;
}
.account-card-heading h3 {
  margin: 0;
  color: #ececef;
  font: 650 16px/1.1 Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: -.015em;
}
.account-trade-mode {
  display: flex;
  gap: 5px;
}
.account-trade-mode span,
.account-protection-state {
  padding: 5px 7px;
  border: 1px solid #35363b;
  border-radius: 4px;
  background: #1e1e22;
  color: #92939a;
  font: 700 7px/1 "JetBrains Mono Slashed", "JetBrains Mono", monospace;
  letter-spacing: .07em;
}
.account-protection-state {
  border-color: rgba(67, 161, 115, .3);
  background: rgba(48, 136, 91, .08);
  color: #71bb92;
}
.account-trading-control {
  min-height: 91px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 19px;
  border-bottom: 1px solid #292a2f;
}
.account-control-copy {
  min-width: 145px;
  display: grid;
  gap: 6px;
}
.account-control-copy b {
  color: #d9d9dc;
  font: 600 12px/1.2 Inter, "Segoe UI", Arial, sans-serif;
}
.account-control-copy small {
  color: #76777e;
  font: 400 9px/1.45 Inter, "Segoe UI", Arial, sans-serif;
}
.account-control-editor {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}
.account-value-presets {
  display: flex;
  gap: 4px;
}
.account-value-presets button {
  min-width: 34px;
  height: 30px;
  padding: 0 7px;
  border: 1px solid #33343a;
  border-radius: 5px;
  outline: none;
  background: #1d1d21;
  color: #898a91;
  font: 650 8px "JetBrains Mono Slashed", "JetBrains Mono", monospace;
  cursor: pointer;
}
.account-value-presets button:hover,
.account-value-presets button:focus-visible {
  border-color: #53545a;
  color: #d0d0d3;
}
.account-value-presets button.active {
  border-color: #665630;
  background: #282319;
  color: #e2c77d;
}
.account-trading-form .account-main-input {
  flex-basis: 112px;
}
.account-trading-form .account-main-input input {
  width: 112px;
  height: 34px;
  border-radius: 5px;
  background: #202025;
  font-size: 11px;
}
.account-position-summary {
  min-height: 75px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 0 19px;
  background: rgba(210, 168, 66, .025);
}
.account-position-summary > div {
  display: grid;
  gap: 7px;
}
.account-position-summary strong {
  color: #f0f0f2;
  font: 700 20px/1 "JetBrains Mono Slashed", "JetBrains Mono", monospace;
  letter-spacing: -.03em;
}
.account-position-summary p {
  margin: 0;
  color: #878880;
  font: 500 9px/1.4 "JetBrains Mono Slashed", "JetBrains Mono", monospace;
  text-align: right;
}

.account-protection-row {
  min-height: 112px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: stretch;
  border-bottom: 1px solid #292a2f;
}
.account-protection-main {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px 0 19px;
}
.account-trading-form .account-protection-toggle {
  min-width: 0;
  min-height: auto !important;
  display: flex !important;
  align-items: center;
  justify-content: flex-start !important;
  gap: 10px !important;
  border: 0 !important;
  color: inherit;
}
.account-protection-toggle > span {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.account-protection-toggle > span b {
  color: #d4d4d7;
  font: 600 12px/1.1 Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}
.account-protection-toggle > span small {
  color: #717279;
  font: 400 9px/1.2 Inter, "Segoe UI", Arial, sans-serif;
}
.account-protection-main > .account-input-unit {
  flex-basis: 86px;
}
.account-protection-main > .account-input-unit input {
  width: 86px;
  height: 34px;
  border-radius: 5px;
  background: #202025;
}
.account-protection-estimate {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 0 15px;
  border-left: 1px solid #292a2f;
  background: #161619;
}
.account-protection-estimate strong {
  color: #a5a6ac;
  font: 700 12px/1 "JetBrains Mono Slashed", "JetBrains Mono", monospace;
}
.account-protection-estimate small {
  color: #6d6e75;
  font: 400 8px/1.3 Inter, "Segoe UI", Arial, sans-serif;
}
.account-auto-protection-control.enabled .account-protection-estimate.loss strong { color: #df7b88; }
.account-auto-protection-control.enabled .account-protection-estimate.profit strong { color: #68c795; }
.account-auto-protection-control:not(.enabled) .account-protection-estimate { opacity: .48; }
.account-risk-summary {
  min-height: 75px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 6px 15px;
  padding: 0 19px;
}
.account-risk-summary > span { grid-column: 1; }
.account-risk-summary strong {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  color: #e7d19a;
  font: 700 18px/1 "JetBrains Mono Slashed", "JetBrains Mono", monospace;
}
.account-risk-summary small {
  grid-column: 1;
  color: #6c6d74;
  font: 400 9px/1.3 Inter, "Segoe UI", Arial, sans-serif;
}
.account-trading-form footer {
  min-height: 58px;
  padding: 0 16px;
  border-color: #302f2c;
  border-radius: 8px;
  background: #181817;
  transition: border-color .18s ease, background .18s ease;
}
.account-trading-form.has-unsaved-changes footer {
  border-color: rgba(191, 150, 65, .5);
  background: rgba(91, 67, 23, .08);
}
.account-trading-form footer p {
  color: #858179;
  font: 400 10px/1.4 Inter, "Segoe UI", Arial, sans-serif;
}
#accountTradingStatus {
  font-size: 8px;
  font-weight: 700;
}
#accountTradingSave,
.account-trading-reset {
  height: 32px;
  padding: 0 13px;
  border-radius: 5px;
  font: 750 8px "JetBrains Mono Slashed", "JetBrains Mono", monospace;
  letter-spacing: .07em;
  cursor: pointer;
}
#accountTradingSave {
  border: 1px solid #66542e;
  background: #2b2518;
  color: #e2c477;
}
.account-trading-reset {
  border: 1px solid #36373c;
  background: transparent;
  color: #8d8e95;
}
.account-trading-reset:hover { color: #cdced2; border-color: #4b4c52; }

@media (max-width: 1120px) {
  .account-trading-form { grid-template-columns: 1fr; }
  .account-trading-form footer { grid-column: 1; }
}

@media (max-width: 720px) {
  .account-trading-view {
    width: 100%;
    padding: 23px 14px 30px;
  }
  .account-trading-heading { align-items: flex-start; }
  .account-trading-heading h2 { font-size: 23px; }
  .account-binance-form { padding: 14px; }
  .account-binance-summary small { font-size: 9px; }
  .account-binance-connected {
    grid-template-columns: 1fr auto;
    padding-top: 12px;
  }
  .account-binance-identity { border-right: 0; }
  .account-futures-balance {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: 8px;
  }
  .account-futures-balance > span { min-width: 0; }
  .account-binance-form > p { margin-left: 0; }
  .account-card-heading { min-height: 62px; padding: 0 14px; }
  .account-trading-control {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    padding: 16px 14px;
  }
  .account-control-editor {
    width: 100%;
    justify-content: space-between;
  }
  .account-value-presets {
    min-width: 0;
    flex: 1;
  }
  .account-value-presets button {
    min-width: 0;
    flex: 1;
  }
  .account-position-summary { padding: 0 14px; }
  .account-position-summary strong { font-size: 18px; }
  .account-protection-row { grid-template-columns: 1fr 126px; }
  .account-protection-main { padding: 0 12px 0 14px; }
  .account-protection-estimate { padding: 0 11px; }
  .account-protection-toggle > span small { display: none; }
  .account-risk-summary { padding: 0 14px; }
  .account-trading-form footer {
    align-items: stretch;
    flex-direction: column;
    padding: 12px 14px;
  }
  .account-trading-form footer > span { justify-content: flex-end; }
}
@font-face {
  font-family: "JetBrains Mono Slashed";
  src: url("/fonts/JetBrainsMonoSlashed-Light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono Slashed";
  src: url("/fonts/JetBrainsMonoSlashed-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono Slashed";
  src: url("/fonts/JetBrainsMonoSlashed-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono Slashed";
  src: url("/fonts/JetBrainsMonoSlashed-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono Slashed";
  src: url("/fonts/JetBrainsMonoSlashed-ExtraBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #101012;
  --panel: #151517;
  --panel-soft: #1a1a1d;
  --toolbar: #121214;
  --button: #25252a;
  --border: #2d2e33;
  --grid: #25262b;
  --text: #c8c9cf;
  --text-strong: #ececf0;
  --muted: #85868e;
  --green: #00c875;
  --red: #f0445c;
  --toolbar-height: 58px;
  font-family: "JetBrains Mono Slashed", "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--background);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input { font: inherit; }
button { color: inherit; }

.toolbar {
  position: relative;
  z-index: 50;
  isolation: isolate;
  height: var(--toolbar-height);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 13px 0 10px;
  background:
    linear-gradient(90deg, rgba(129, 68, 235, .075) 0%, rgba(129, 68, 235, .025) 34%, transparent 68%),
    linear-gradient(180deg, #17171a 0%, #131316 100%);
  border-bottom: 0;
  box-shadow: inset 0 1px rgba(255, 255, 255, .025), 0 5px 18px rgba(0, 0, 0, .22);
  user-select: none;
}
.toolbar::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, #8e55ef 0%, rgba(142, 85, 239, .48) 23%, rgba(142, 85, 239, .12) 58%, #303137 100%);
  pointer-events: none;
}

.brand {
  width: 164px;
  flex: 0 0 164px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding-right: 17px;
  border-right: 1px solid #303037;
  color: #eeeeF2;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .13em;
  text-decoration: none;
  cursor: pointer;
}
.brand:hover { color: #fff; }
.brand:focus-visible { outline: 1px solid #555; outline-offset: -3px; }
.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(125, 51, 255, .18));
}
.brand-wordmark > span { color: #a45cff; }

.tool-group { display: flex; gap: 2px; }

.tool,
.icon-button,
.rail-button {
  min-width: 34px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid #2d2d2d;
  border-radius: 2px;
  background: var(--button);
  color: #a7a7a7;
  font-size: 11px;
  cursor: pointer;
}

.tool:hover,
.icon-button:hover,
.rail-button:hover { color: #ddd; background: #2c2c2c; }
.rail-button:disabled {
  color: #4e4e52;
  background: transparent;
  cursor: default;
  opacity: .5;
}
.tool.active { color: #ededed; background: #303030; border-color: #3a3a3a; }

.interval-group {
  height: 34px;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid #292a2e;
  border-radius: 4px;
  background: #171719;
  box-shadow: inset 0 1px rgba(255, 255, 255, .018);
}
.interval-group .tool {
  min-width: 38px;
  height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #777980;
  font-size: 10px;
  font-weight: 600;
  transition: color .12s ease, background .12s ease, box-shadow .12s ease;
}
.interval-group .tool:hover { background: #202024; color: #c7c7ca; }
.interval-group .tool.active {
  color: #f0edef;
  background: #343034;
  box-shadow: inset 0 0 0 1px #443b40, inset 0 2px #8b545d;
}

.toolbar-spacer { flex: 1 1 auto; }

.active-position-shell {
  position: relative;
  flex: 0 0 auto;
}
.active-position-shell[hidden] { display: none; }
.active-position-button {
  min-width: 206px;
  height: 32px;
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr) auto 12px;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  border: 1px solid #3b3630;
  border-radius: 5px;
  outline: none;
  background:
    linear-gradient(90deg, rgba(209, 166, 66, .055), transparent 48%),
    #19191c;
  color: #d8d8dc;
  cursor: pointer;
  transition: border-color .14s ease, background .14s ease;
}
.active-position-button:hover,
.active-position-button:focus-visible,
.active-position-button[aria-expanded="true"] {
  border-color: #665635;
  background:
    linear-gradient(90deg, rgba(209, 166, 66, .09), transparent 55%),
    #1e1e21;
}
.active-position-button > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e4b84e;
  box-shadow: 0 0 8px rgba(228, 184, 78, .42);
}
.active-position-shell.syncing .active-position-button > i {
  background: #73747a;
  box-shadow: none;
  animation: active-position-sync 1.2s ease-in-out infinite;
}
@keyframes active-position-sync {
  50% { opacity: .35; }
}
.active-position-button > span {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  overflow: hidden;
}
.active-position-button small {
  overflow: hidden;
  color: #e8e8eb;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.active-position-button strong {
  color: #a3a4aa;
  font-size: 8px;
  font-weight: 650;
  white-space: nowrap;
}
.active-position-button strong.positive,
.active-position-button em.positive { color: #65c692; }
.active-position-button strong.negative,
.active-position-button em.negative { color: #df7482; }
.active-position-button em {
  color: #a3a4aa;
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
  white-space: nowrap;
}
.active-position-button > b {
  color: #73747b;
  font-size: 10px;
  font-weight: 500;
}
.active-position-menu {
  position: absolute;
  z-index: 90;
  top: calc(100% + 6px);
  right: 0;
  width: 300px;
  overflow: hidden;
  padding: 6px;
  border: 1px solid #34353a;
  border-radius: 7px;
  background: #17171a;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .42);
}
.active-position-menu[hidden] { display: none; }
.active-position-menu > span {
  display: block;
  padding: 6px 8px 8px;
  color: #707178;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .1em;
}
.active-position-menu button {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 14px;
  padding: 7px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.active-position-menu button:hover,
.active-position-menu button:focus-visible {
  background: #222226;
  outline: none;
}
.active-position-menu button > span {
  display: grid;
  gap: 3px;
}
.active-position-menu button b {
  color: #e1e1e4;
  font-size: 10px;
}
.active-position-menu button small {
  color: #77787f;
  font-size: 7px;
}
.active-position-menu button strong {
  grid-column: 2;
  grid-row: 1;
  color: #c7c8cc;
  font-size: 10px;
  text-align: right;
}
.active-position-menu button em {
  grid-column: 2;
  grid-row: 2;
  color: #77787f;
  font-size: 8px;
  font-style: normal;
  text-align: right;
}
.active-position-menu button strong.positive,
.active-position-menu button em.positive { color: #65c692; }
.active-position-menu button strong.negative,
.active-position-menu button em.negative { color: #df7482; }

.account-button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #292a2e;
  border-radius: 4px;
  background: #171719;
  color: #777980;
  cursor: pointer;
  transition: border-color .12s ease, color .12s ease, background .12s ease;
}
.account-button:hover,
.account-button:focus-visible {
  border-color: #3a3b40;
  background: #1d1d20;
  color: #c9c9ce;
  outline: none;
}
.account-button.authenticated { border-color: rgba(0, 200, 117, .28); }
.signal-sound-button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  display: grid;
  padding: 0;
  place-items: center;
  border: 1px solid #292a2e;
  border-radius: 4px;
  background: #171719;
  color: #676970;
  cursor: pointer;
  transition: border-color .12s ease, color .12s ease, background .12s ease;
}
.signal-sound-button:hover,
.signal-sound-button:focus-visible {
  border-color: #3a3b40;
  background: #1d1d20;
  color: #c9c9ce;
  outline: none;
}
.signal-sound-button.active {
  border-color: #5c4925;
  background: #241f16;
  color: #e0b254;
}
.signal-sound-button svg {
  grid-area: 1 / 1;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.signal-sound-on-icon { display: none; }
.signal-sound-button.active .signal-sound-on-icon { display: block; }
.signal-sound-button.active .signal-sound-off-icon { display: none; }
.account-avatar {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 3px;
}
.account-avatar svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.account-avatar img,
.account-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-avatar-initials {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: #292a2e;
  color: #e2e2e5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}

.connection-dot {
  position: relative;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-right: 3px;
  border-radius: 50%;
  background: #555;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .025);
}
.connection-dot.connected {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 200, 117, .07), 0 0 8px rgba(0, 200, 117, .24);
}
.connection-dot.error {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(240, 68, 92, .07), 0 0 8px rgba(240, 68, 92, .2);
}

.search-shell {
  width: min(340px, calc(100vw - 32px));
  position: fixed;
  top: 6px;
  left: 50%;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -8px) scale(.985);
  transform-origin: top center;
  transition: opacity .12s ease, transform .12s ease, visibility 0s linear .12s;
}

.search-shell.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
  transition: opacity .12s ease, transform .12s ease;
}

.search-box {
  width: 100%;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid #3a3b40;
  border-radius: 3px;
  background: rgba(25, 25, 28, .985);
  color: #777;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .38);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #c6c6c6;
  font-size: 11px;
  text-transform: uppercase;
}

.search-shell:focus-within .search-box {
  border-color: #484950;
  background: #1d1d20;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .025), 0 4px 14px rgba(0, 0, 0, .22);
}

.search-suggestions {
  width: 100%;
  max-height: 344px;
  position: absolute;
  z-index: 1;
  top: 37px;
  left: 0;
  overflow: auto;
  border: 1px solid #323338;
  border-radius: 3px;
  background: rgba(20, 20, 22, .985);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .48);
  user-select: none;
}

.search-suggestions[hidden] { display: none; }

.search-suggestion {
  width: 100%;
  height: 42px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 0;
  border-bottom: 1px solid #27282c;
  background: transparent;
  color: #b9bac0;
  text-align: left;
  cursor: pointer;
}

.search-suggestion:last-child { border-bottom: 0; }
.search-suggestion:hover,
.search-suggestion.active {
  background: #25262a;
  color: #f0f0f3;
}

.search-suggestion-icon {
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #25262a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .13);
  color: #bfc0c5;
  font-size: 8px;
  font-weight: 700;
}

.search-suggestion-icon img {
  width: 13px;
  height: 13px;
  display: block;
  border-radius: 50%;
  object-fit: contain;
}

.search-suggestion-icon > span { display: none; }
.search-suggestion-icon.fallback img { display: none; }
.search-suggestion-icon.fallback > span { display: block; }
.search-suggestion-symbol { min-width: 0; }
.search-suggestion-symbol strong {
  display: block;
  overflow: hidden;
  color: inherit;
  font-size: 11px;
  text-overflow: ellipsis;
}
.search-suggestion-symbol small,
.search-suggestion-volume {
  color: #707179;
  font-size: 8px;
  font-weight: 400;
}
.search-suggestion-volume { color: #94959c; }
.search-suggestion-status {
  padding: 13px 11px;
  color: #777880;
  font-size: 9px;
  letter-spacing: .03em;
}

.icon-button { min-width: 30px; padding: 0; font-size: 16px; }

.workspace {
  height: calc(100vh - var(--toolbar-height));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px 38px;
}

.chart-grid {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  background: var(--border);
  gap: 1px;
}

.chart-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 34px minmax(0, 1fr);
  background: var(--panel);
  overflow: hidden;
}

.chart-card.expanded {
  position: fixed;
  inset: calc(var(--toolbar-height) + 6px) 44px 6px 6px;
  z-index: 31;
  grid-template-rows: 38px minmax(0, 1fr);
  border: 1px solid #373737;
  box-shadow: 0 14px 50px rgba(0, 0, 0, .62);
}

.chart-card.coin-preview .chart-pin-button { display: none; }
.coin-row.preview-loading { opacity: .48; }

.chart-card.active { box-shadow: inset 0 0 0 1px #666; }
.chart-card.active .chart-header { background: #1b1b1e; }
.chart-card.chart-loading .chart-canvas-wrap { opacity: .38; }
.chart-card.chart-loading .chart-canvas-wrap::after {
  content: "Loading chart…";
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  color: #8a8a8a;
  font-size: 10px;
}

.chart-card.history-loading .chart-canvas-wrap::before {
  content: "LOADING HISTORY";
  position: absolute;
  top: 7px;
  left: 9px;
  z-index: 4;
  padding: 3px 5px;
  border: 1px solid #303030;
  background: rgba(20, 20, 20, .88);
  color: #777;
  font-size: 7px;
  letter-spacing: .08em;
  pointer-events: none;
}

.chart-header {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-bottom: 1px solid #292a2e;
  white-space: nowrap;
  overflow: hidden;
  font-size: 10px;
  color: #96979f;
}

.chart-header[title] { cursor: default; }

.chart-metrics {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  overflow: hidden;
}

.chart-token-icon {
  width: 15px;
  height: 15px;
  display: block;
  position: relative;
  flex: 0 0 15px;
  margin-right: -5px;
  box-sizing: border-box;
  padding: 1px;
  border-radius: 50%;
  overflow: hidden;
  background: #202126;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 1px 3px rgba(0, 0, 0, .3);
}

.chart-token-icon img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: block;
  border-radius: 50%;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
}

.chart-token-icon > span {
  width: 100%;
  height: 100%;
  display: none;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #d9dade, #8c8e95);
  color: #202125;
  font-size: 8px;
  font-weight: 800;
}

.chart-token-icon.fallback img { display: none; }
.chart-token-icon.fallback > span { display: grid; }

.chart-symbol {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #eeeef2;
  font-size: 13px;
  font-weight: 650;
}
.chart-metric-chip {
  height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  border-radius: 2px;
  color: #a4a5ad;
  background: transparent;
  white-space: nowrap;
}

.chart-metric-chip svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-metric-chip .chart-metric-lightning {
  width: 12px;
  height: 14px;
  stroke-width: 1.5;
}

.chart-metric-chip b {
  color: #c6c7cd;
  font-size: 10px;
  font-weight: 550;
}

.chart-metric-chip.chip-up {
  color: #83d7ae;
  background: rgba(0, 200, 117, .08);
}
.chart-metric-chip.chip-up b { color: #75dba8; }
.chart-metric-chip.chip-down {
  color: #d998a2;
  background: rgba(240, 68, 92, .09);
}
.chart-metric-chip.chip-down b { color: #e4a2ac; }
.chart-metric-chip.chip-warm {
  color: #d5b491;
  background: rgba(183, 111, 66, .08);
}
.chart-metric-chip.chip-warm b { color: #d9b99a; }
.chart-metric-chip.chip-hot {
  color: #d99da5;
  background: rgba(175, 67, 74, .12);
}
.chart-metric-chip.chip-hot b { color: #e0adb4; }

.chart-trades-rate-chip {
  display: none;
  flex: 0 0 auto;
  height: 24px;
  gap: 5px;
  border: 1px solid rgba(106, 145, 143, .32);
  margin: 0 7px 0 3px;
  padding: 0 8px;
  border-radius: 3px;
  background: rgba(27, 39, 39, .64);
  color: #6d9695;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .015);
}

.chart-card.expanded .chart-trades-rate-chip {
  display: inline-flex;
  position: absolute;
  z-index: 2;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
}

.chart-trades-rate-chip > i {
  display: inline;
  color: #4e6262;
  font-size: 8px;
  font-style: normal;
}

.chart-trades-rate-chip b {
  min-width: 0;
  color: #b7c8c7;
  font-size: 9px;
  font-weight: 650;
  line-height: 22px;
  font-variant-numeric: tabular-nums;
}

.chart-trades-rate-chip small {
  margin-right: 2px;
  color: #78908f;
  font-size: 6px;
  font-weight: 750;
  letter-spacing: .1em;
  line-height: 22px;
}

.chart-trades-rate-chip.is-active {
  border-color: rgba(95, 161, 156, .44);
  color: #75c5bf;
  background: rgba(31, 58, 56, .56);
}

.chart-trades-rate-chip.is-active b {
  color: #8dd8d1;
}

.chart-trades-rate-chip[data-activity="active"] .chart-rate-activity {
  color: #d9c386;
}

.chart-trades-rate-chip[data-activity="hot"] .chart-rate-activity {
  color: #f0c765;
}

.chart-trades-rate-chip[data-flow="buy"] .chart-rate-flow {
  color: #76d7a7;
}

.chart-trades-rate-chip[data-flow="sell"] .chart-rate-flow {
  color: #e58f9d;
}

.chart-trades-rate-chip[data-flow="balanced"] .chart-rate-flow {
  color: #b8bac2;
}

.chart-controls {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.chart-trade-button {
  height: 24px;
  margin-right: 3px;
  padding: 0 8px;
  display: none;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  border: 1px solid #303137;
  border-radius: 2px;
  background: #1a1b1e;
  color: #aeb0b7;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .8px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.chart-card.expanded .chart-trade-button { display: inline-flex; }
.chart-trade-button svg { width: 12px; height: 12px; color: #d0a84d; }
.chart-trade-button:hover {
  border-color: #49443a;
  background: #24231f;
  color: #f0f0f2;
}
.chart-trade-button.active,
.chart-trade-button[aria-pressed="true"] {
  border-color: rgba(211, 166, 65, .74);
  background: linear-gradient(180deg, rgba(112, 82, 24, .34), rgba(48, 39, 23, .7));
  color: #f1d690;
  box-shadow: inset 0 0 0 1px rgba(255, 208, 96, .06);
}
.chart-trade-button:disabled { opacity: .48; cursor: wait; }

.chart-window-button,
.chart-pin-button,
.chart-back-button {
  width: 26px;
  min-width: 26px;
  height: 24px;
  padding: 0;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: #777;
  cursor: pointer;
}

.chart-back-button { display: none; }

.chart-window-button:hover,
.chart-pin-button:hover,
.chart-pin-button.pinned {
  border-color: #363636;
  background: #242424;
  color: #d0d0d0;
}

.chart-window-button svg,
.chart-pin-button svg { width: 13px; height: 13px; }
.chart-window-button .collapse-icon { display: none; }
.chart-card.expanded .chart-window-button .expand-icon { display: none; }
.chart-card.expanded .chart-window-button .collapse-icon { display: block; }

.chart-canvas-wrap { min-width: 0; min-height: 0; position: relative; }
.chart-card.expanded.trading-armed::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 40;
  border: 2px solid rgba(220, 170, 58, .82);
  box-shadow:
    inset 0 0 24px rgba(201, 149, 41, .045),
    0 0 12px rgba(216, 165, 53, .12);
  pointer-events: none;
}
.chart-card.expanded.trading-armed .chart-header {
  background:
    linear-gradient(90deg, rgba(150, 105, 25, .13), transparent 42%),
    #1b1a18;
}
.chart-card.trading-armed .drawing-dock {
  opacity: .24;
  pointer-events: none;
}
.chart-card.trading-armed .tv-chart,
.chart-card.trading-armed .tv-chart canvas { cursor: grab !important; }
.chart-card.trading-armed .tv-chart:active,
.chart-card.trading-armed .tv-chart canvas:active { cursor: grabbing !important; }
.chart-card.trading-armed.trade-shift .tv-chart,
.chart-card.trading-armed.trade-shift .tv-chart canvas { cursor: crosshair !important; }
.chart-card.trade-pending .chart-canvas-wrap { cursor: wait; }
.trade-protection-layer {
  position: absolute;
  inset: 0;
  z-index: 24;
  overflow: hidden;
  pointer-events: none;
}
.trade-protection-layer[hidden] { display: none; }
.trade-protection-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  box-sizing: border-box;
  margin-top: -7px;
  padding: 0 78px 0 8px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #b9b6ae;
  font: 750 7px "JetBrains Mono Slashed", "JetBrains Mono", monospace;
  pointer-events: auto;
  cursor: ns-resize;
  touch-action: none;
}
.trade-protection-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 7px;
  border-top: 1px dashed currentColor;
  opacity: .58;
  pointer-events: none;
}
.trade-protection-line > * {
  position: relative;
  z-index: 1;
}
.trade-protection-line span,
.trade-protection-line b,
.trade-protection-line .trade-protection-outcome,
.trade-protection-line em {
  padding: 2px 5px;
  border-radius: 2px;
  background: rgba(18, 18, 19, .94);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .04);
}
.trade-protection-line b {
  font: inherit;
}
.trade-protection-outcome {
  color: #8c8982;
  font: 700 7px "JetBrains Mono Slashed", "JetBrains Mono", monospace;
}
.trade-protection-outcome[data-tone="positive"] { color: #67c997; }
.trade-protection-outcome[data-tone="negative"] { color: #df7b89; }
.trade-protection-line em {
  color: #6e6b65;
  font-size: 6px;
  font-style: normal;
  letter-spacing: .08em;
  opacity: 0;
  transition: opacity .15s ease;
}
.trade-protection-line:hover em,
.trade-protection-line.dragging em { opacity: 1; }
.trade-protection-line.protection-placement {
  z-index: 2;
  pointer-events: none;
}
.trade-protection-line.protection-placement::before {
  border-top-style: solid;
  opacity: .82;
}
.trade-protection-line.protection-placement em { opacity: 1; }
.trade-protection-line.stop-loss { color: #db7180; }
.trade-protection-line.take-profit { color: #5fc491; }
.trade-protection-line.dragging::before {
  border-top-style: solid;
  opacity: .9;
}
.trade-protection-line.invalid { color: #f09a52; }
.chart-card.protection-dragging .tv-chart,
.chart-card.protection-dragging .tv-chart canvas { cursor: ns-resize !important; }
.chart-card.protection-placing .tv-chart,
.chart-card.protection-placing .tv-chart canvas { cursor: crosshair !important; }
.chart-card[data-trade-notice]::after {
  content: attr(data-trade-notice);
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 41;
  transform: translateX(-50%);
  padding: 7px 10px;
  border: 1px solid #454139;
  border-radius: 3px;
  background: rgba(24, 23, 21, .94);
  color: #c8baa0;
  font-size: 9px;
  letter-spacing: .04em;
  pointer-events: none;
}
.paper-trade-hud {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 32;
  width: min(610px, calc(100% - 32px));
  transform: translateX(-50%);
  overflow: hidden;
  border: 1px solid rgba(177, 132, 39, .72);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(178, 129, 30, .035), transparent 42%),
    rgba(19, 19, 20, .965);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, .44),
    inset 0 1px rgba(255, 255, 255, .018);
  backdrop-filter: blur(10px);
  color: #d0cec8;
}
.paper-trade-hud[hidden] { display: none; }
.paper-trade-hud.live-mode {
  border-color: rgba(177, 132, 39, .76);
}
.paper-trade-hud.live-confirm {
  border-color: rgba(178, 67, 82, .55);
  background:
    linear-gradient(135deg, rgba(153, 48, 61, .07), transparent 48%),
    rgba(22, 18, 19, .97);
}
.paper-trade-hud.live-mode .paper-trade-live { color: #da7683; }
.paper-trade-hud.live-mode .paper-trade-live i {
  background: #e15a6c;
  box-shadow: 0 0 9px rgba(225, 90, 108, .64);
}
.paper-trade-hud.trade-complete {
  border-color: rgba(62, 151, 108, .56);
  background: rgba(18, 22, 19, .94);
}
.paper-trade-hud.trade-complete .paper-trade-live { color: #71c99c; }
.paper-trade-hud.trade-complete .paper-trade-live i {
  background: #49bd84;
  box-shadow: 0 0 7px rgba(73, 189, 132, .52);
}
.paper-trade-hud.trade-complete .paper-trade-main,
.paper-trade-hud.trade-complete .paper-trade-footer { display: none; }
.paper-trade-hud-top {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 9px 0 13px;
  border-bottom: 1px solid rgba(110, 88, 46, .33);
  background: rgba(12, 12, 13, .28);
}
.paper-trade-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d4b05b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .085em;
}
.paper-trade-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d65668;
  box-shadow: 0 0 8px rgba(214, 86, 104, .58);
}
.paper-trade-arm-state {
  margin-left: auto;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.paper-trade-arm-state b {
  color: #9d8a5e;
  font-size: 7px;
  letter-spacing: .11em;
}
.paper-trade-arm-state em {
  min-width: 20px;
  color: #d7ba73;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .02em;
}
.paper-trade-disarm {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7f7a70;
  font-size: 15px;
  cursor: pointer;
}
.paper-trade-disarm:hover { color: #e0d7c5; }
.paper-trade-main { padding: 13px; }
.paper-trade-main [hidden] { display: none; }
.paper-trade-hud.live-confirm .paper-trade-main { display: none; }
.paper-trade-flat-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 16px;
}
.paper-trade-flat-title {
  grid-column: 1 / -1;
  margin-bottom: 5px;
  color: #f0ede5;
  font-size: 13px;
  letter-spacing: .035em;
}
.paper-trade-preset {
  min-width: 0;
  overflow: hidden;
  color: #d2c8ae;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.paper-trade-mode {
  color: #77736b;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .1em;
  white-space: nowrap;
}
.paper-trade-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.paper-trade-actions > span {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-sizing: border-box;
  padding: 0 11px;
  border: 1px solid;
  border-radius: 3px;
  background: rgba(255, 255, 255, .012);
}
.paper-trade-actions strong {
  font-size: 9px;
  letter-spacing: .055em;
}
.paper-trade-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.paper-trade-shortcut i {
  color: #77736b;
  font-size: 7px;
  font-style: normal;
}
.paper-trade-shortcut kbd:first-child { min-width: 38px; }
.paper-trade-actions kbd,
.paper-trade-footer kbd {
  min-width: 28px;
  box-sizing: border-box;
  padding: 3px 5px;
  border: 1px solid currentColor;
  border-radius: 2px;
  background: rgba(0, 0, 0, .16);
  font: 700 7px "JetBrains Mono Slashed", "JetBrains Mono", monospace;
  text-align: center;
}
.paper-trade-action-buy {
  border-color: rgba(48, 151, 106, .48) !important;
  color: #69c496;
}
.paper-trade-action-sell {
  border-color: rgba(181, 68, 84, .46) !important;
  color: #d97987;
}
.paper-trade-open-view { min-width: 0; }
.paper-trade-position-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.paper-trade-position-value {
  overflow: hidden;
  color: #dbd8d0;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.paper-trade-position-value[data-tone="long"] { color: #73cba0; }
.paper-trade-position-value[data-tone="short"] { color: #dc8490; }
.paper-trade-position-pnl {
  color: #aaa69d;
  font-size: 17px;
  line-height: 1;
  white-space: nowrap;
}
.paper-trade-position-pnl[data-tone="positive"] { color: #62c18e; }
.paper-trade-position-pnl[data-tone="negative"] { color: #da7482; }
.paper-trade-position-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #33322f;
  border-radius: 3px;
  background: rgba(0, 0, 0, .12);
}
.paper-trade-position-metrics > span {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 8px 10px;
}
.paper-trade-position-metrics > span + span { border-left: 1px solid #33322f; }
.paper-trade-position-metrics small {
  color: #706d66;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .1em;
}
.paper-trade-position-metrics b {
  overflow: hidden;
  color: #c7c3ba;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.paper-trade-exposure {
  margin: 8px 0;
  color: #817d74;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .07em;
}
.paper-trade-protection-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.paper-trade-protection-control {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.paper-trade-protection-control.has-order {
  grid-template-columns: minmax(0, 1fr) 28px;
}
.paper-trade-set-protection,
.paper-trade-remove-protection {
  height: 30px;
  border: 1px solid;
  background: rgba(255, 255, 255, .012);
  font: 750 8px "JetBrains Mono Slashed", "JetBrains Mono", monospace;
  letter-spacing: .055em;
  cursor: pointer;
}
.paper-trade-set-protection {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 9px;
  border-radius: 3px;
}
.paper-trade-set-protection span,
.paper-trade-set-protection b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.paper-trade-set-protection b {
  color: #c2beb4;
  font: inherit;
}
.paper-trade-remove-protection {
  margin-left: 4px;
  padding: 0;
  border-radius: 3px;
  color: #716e67;
}
.paper-trade-remove-protection[hidden] { display: none; }
.paper-trade-protection-control.stop-loss .paper-trade-set-protection {
  border-color: rgba(181, 68, 84, .46);
  color: #d97987;
}
.paper-trade-protection-control.take-profit .paper-trade-set-protection {
  border-color: rgba(48, 151, 106, .48);
  color: #69c496;
}
.paper-trade-protection-control.stop-loss .paper-trade-remove-protection {
  border-color: rgba(181, 68, 84, .34);
}
.paper-trade-protection-control.take-profit .paper-trade-remove-protection {
  border-color: rgba(48, 151, 106, .34);
}
.paper-trade-protection-control.placing .paper-trade-set-protection {
  background: rgba(190, 145, 49, .09);
  box-shadow: inset 0 0 0 1px rgba(214, 170, 75, .08);
}
.paper-trade-set-protection:hover:not(:disabled),
.paper-trade-remove-protection:hover:not(:disabled) {
  background: rgba(255, 255, 255, .035);
  color: #eee7d8;
}
.paper-trade-set-protection:disabled,
.paper-trade-remove-protection:disabled {
  opacity: .3;
  cursor: default;
}
.paper-trade-position-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.paper-trade-cancel-all,
.paper-trade-close-position {
  position: relative;
  height: 35px;
  overflow: hidden;
  border: 1px solid #3d3b36;
  border-radius: 3px;
  background: #1c1b19;
  color: #aaa69c;
  font: 750 8px "JetBrains Mono Slashed", "JetBrains Mono", monospace;
  letter-spacing: .055em;
  cursor: pointer;
}
.paper-trade-cancel-all { padding: 0 12px; }
.paper-trade-cancel-all[hidden] { display: none; }
.paper-trade-cancel-all b {
  color: #c0a35f;
  font: inherit;
}
.paper-trade-close-position {
  width: 100%;
  padding: 0;
  border-color: rgba(147, 65, 76, .48);
  background: rgba(83, 35, 42, .18);
  color: #c88a92;
}
.paper-trade-close-position i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: rgba(181, 66, 81, .24);
  pointer-events: none;
}
.paper-trade-close-position span { position: relative; z-index: 1; }
.paper-trade-close-position.holding i {
  width: 100%;
  transition: width .9s linear;
}
.paper-trade-cancel-all:hover:not(:disabled) {
  border-color: #595348;
  color: #ded4c1;
}
.paper-trade-close-position:hover:not(:disabled) {
  border-color: rgba(194, 78, 92, .7);
  color: #e6abb2;
}
.paper-trade-cancel-all:disabled,
.paper-trade-close-position:disabled {
  opacity: .28;
  cursor: default;
}
.paper-trade-arm-live {
  position: relative;
  width: calc(100% - 26px);
  height: 42px;
  display: block;
  overflow: hidden;
  margin: 13px;
  border: 1px solid rgba(194, 71, 87, .58);
  border-radius: 3px;
  background: rgba(102, 31, 41, .18);
  color: #e49aa3;
  font: 750 9px "JetBrains Mono Slashed", "JetBrains Mono", monospace;
  letter-spacing: .075em;
  cursor: pointer;
}
.paper-trade-arm-live[hidden] { display: none; }
.paper-trade-arm-live i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: rgba(193, 55, 72, .25);
}
.paper-trade-arm-live span { position: relative; z-index: 1; }
.paper-trade-arm-live.holding i {
  width: 100%;
  transition: width 1.2s linear;
}
.paper-trade-arm-live:disabled { opacity: .45; cursor: wait; }
.paper-trade-status {
  margin: 0 13px;
  padding: 7px 0;
  border-top: 1px solid rgba(72, 67, 56, .26);
  color: #8a867e;
  font-size: 8px;
  line-height: 1.3;
}
.paper-trade-status:empty { display: none; }
.paper-trade-status[data-tone="buy"] { color: #6fd3a0; }
.paper-trade-status[data-tone="sell"],
.paper-trade-status[data-tone="error"] { color: #df7d8a; }
.paper-trade-status[data-tone="pending"] { color: #cdb268; }
.paper-trade-status[data-tone="paper"] { color: #918773; }
.paper-trade-status[data-tone="live"] { color: #d48993; }
.paper-trade-footer {
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 0 12px;
  border-top: 1px solid rgba(77, 70, 57, .25);
  color: #625f59;
  font-size: 7px;
  letter-spacing: .08em;
}
.paper-trade-footer kbd {
  min-width: auto;
  padding: 2px 4px;
}
@media (max-width: 700px) {
  .paper-trade-hud {
    top: 8px;
    width: calc(100% - 16px);
  }
  .paper-trade-main { padding: 10px; }
  .paper-trade-actions { gap: 6px; margin-top: 10px; }
  .paper-trade-actions > span { min-height: 36px; padding: 0 8px; }
  .paper-trade-flat-title,
  .paper-trade-position-value { font-size: 11px; }
  .paper-trade-position-pnl { font-size: 14px; }
  .paper-trade-preset { font-size: 9px; }
}
.tv-chart { position: absolute; inset: 0; }
.current-price-countdown {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  height: 26px;
  display: grid;
  grid-template-rows: 16px 10px;
  box-sizing: border-box;
  padding: 0;
  border-radius: 0;
  background: rgba(162, 163, 170, .94);
  color: #151517;
  font-family: "JetBrains Mono Slashed", "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  overflow: hidden;
}
.current-price-countdown-price,
.current-price-countdown-time {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 0;
  color: inherit;
  white-space: nowrap;
}
.current-price-countdown-price {
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: -.025em;
}
.current-price-countdown-time {
  font-size: 8px;
  font-weight: 600;
  line-height: 10px;
  background: rgba(21, 21, 23, .08);
}
.chart-card:not(.expanded) .current-price-countdown {
  height: 22px;
  grid-template-rows: 14px 8px;
  margin-top: 1px;
  background: rgba(162, 163, 170, .88);
}
.chart-card:not(.expanded) .current-price-countdown-price {
  font-size: 9px;
  line-height: 14px;
}
.chart-card:not(.expanded) .current-price-countdown-time {
  font-size: 7px;
  line-height: 8px;
}
.current-price-countdown[hidden] { display: none; }
.mobile-price-scale-handle { display: none; }

.chart-drawing-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}
.chart-drawing-overlay.capturing { pointer-events: none; }
.chart-drawing-overlay.hidden { visibility: hidden; }
.chart-drawing-shape {
  stroke: #b8b8b8;
  stroke-width: 1;
  fill: rgba(184, 184, 184, .07);
  shape-rendering: geometricPrecision;
}
.chart-drawing-hit-target {
  stroke: transparent;
  stroke-width: 12;
  fill: none;
  pointer-events: stroke;
  cursor: grab;
}
.chart-drawing-hit-target:hover + .chart-drawing-shape {
  stroke: #ededed;
  stroke-width: 1.35;
}
.chart-drawing-anchor {
  fill: #d2d2d2;
  stroke: #171717;
  stroke-width: .5;
  pointer-events: none;
  shape-rendering: crispEdges;
}
.chart-drawing-anchor-hit {
  fill: transparent;
  stroke: transparent;
  pointer-events: all;
  cursor: grab;
}
.chart-drawing-anchor-hit:hover + .chart-drawing-anchor {
  width: 6px;
  height: 6px;
  transform: translate(-1.25px, -1.25px);
  fill: #f0f0f2;
  stroke: #4b4b50;
}
.chart-drawing-overlay.dragging .chart-drawing-anchor-hit,
.chart-drawing-overlay.dragging .chart-drawing-hit-target { cursor: grabbing; }
line.chart-drawing-shape { fill: none; }
.chart-drawing-shape.preview {
  stroke: #d0d0d0;
  stroke-dasharray: 5 4;
  opacity: .82;
}
.chart-drawing-shape.alert {
  stroke: rgba(224, 174, 73, .88);
  stroke-width: 1;
  stroke-dasharray: 6 4;
}
.chart-drawing-shape.alert.triggered {
  stroke: rgba(139, 142, 151, .58);
  stroke-dasharray: 2 5;
}
.chart-drawing-hit-target:hover + .chart-drawing-shape.alert.armed {
  stroke: #f0c768;
  stroke-width: 1.35;
}
.chart-drawing-alert-label {
  fill: rgba(31, 27, 18, .96);
  stroke: rgba(218, 170, 73, .7);
  stroke-width: .8;
  pointer-events: none;
}
.chart-drawing-alert-label[data-drawing-id] {
  pointer-events: all;
  cursor: grab;
}
.chart-drawing-alert-label.triggered {
  fill: rgba(27, 28, 31, .94);
  stroke: rgba(127, 130, 139, .48);
}
.chart-drawing-alert-text {
  fill: #efc667;
  font-family: "JetBrains Mono Slashed", "JetBrains Mono", monospace;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .055em;
  pointer-events: none;
}
.chart-drawing-alert-text.triggered { fill: rgba(177, 179, 185, .72); }
.chart-drawing-price-label,
.chart-drawing-price-pointer {
  fill: rgba(37, 38, 42, .94);
  stroke: rgba(191, 192, 198, .48);
  stroke-width: .8;
  pointer-events: none;
  shape-rendering: geometricPrecision;
}
.chart-drawing-price-label.scale,
.chart-drawing-price-pointer.scale {
  fill: rgba(54, 55, 61, .96);
  stroke: rgba(210, 211, 216, .38);
}
.chart-drawing-price-text {
  fill: #dedee2;
  font-family: "JetBrains Mono Slashed", "JetBrains Mono", monospace;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: -.02em;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, .28);
  stroke-width: .4;
}
.chart-drawing-price-text.scale { fill: #eeeeef; }
.chart-drawing-price-label.preview,
.chart-drawing-price-pointer.preview,
.chart-drawing-price-text.preview { opacity: .72; }
.chart-drawing-measure-area {
  stroke-width: 1;
  stroke-dasharray: 4 4;
}
.chart-drawing-measure-line {
  fill: none;
  stroke-width: 1.15;
}
.chart-drawing-measure-area.positive { fill: rgba(0, 200, 117, .08); stroke: rgba(36, 218, 143, .7); }
.chart-drawing-measure-line.positive { stroke: #2bd792; }
.chart-drawing-measure-area.negative { fill: rgba(240, 68, 92, .08); stroke: rgba(255, 91, 113, .72); }
.chart-drawing-measure-line.negative { stroke: #ff6178; }
.chart-drawing-measure-area.neutral { fill: rgba(190, 190, 196, .06); stroke: rgba(198, 198, 204, .58); }
.chart-drawing-measure-line.neutral { stroke: #c8c8ce; }
.chart-drawing-measure-area.preview,
.chart-drawing-measure-line.preview { opacity: .72; }
.chart-drawing-measure-label {
  fill: rgba(22, 22, 25, .96);
  stroke-width: 1;
  pointer-events: none;
}
.chart-drawing-measure-label.positive { stroke: rgba(43, 215, 146, .58); }
.chart-drawing-measure-label.negative { stroke: rgba(255, 97, 120, .6); }
.chart-drawing-measure-label.neutral { stroke: rgba(200, 200, 206, .42); }
.chart-drawing-measure-label[data-drawing-id] { pointer-events: all; cursor: grab; }
.chart-drawing-measure-text {
  fill: #d8d8dd;
  font-family: "JetBrains Mono Slashed", "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .01em;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, .22);
  stroke-width: .4;
}

.drawing-dock {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 8;
  display: none;
  align-items: center;
  transform: translateY(-50%);
  pointer-events: none;
}
.chart-card.expanded .drawing-dock { display: flex; }
.chart-card:not(.expanded) .chart-drawing-overlay { display: none; }
.drawing-toolbar {
  width: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 5px 4px;
  border: 1px solid #363636;
  border-left: 0;
  border-radius: 0 5px 5px 0;
  background: rgba(17, 17, 17, .94);
  box-shadow: 5px 6px 22px rgba(0, 0, 0, .42);
  backdrop-filter: blur(8px);
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 150ms ease, opacity 120ms ease;
}
.drawing-dock.open .drawing-toolbar {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.drawing-dock-toggle {
  position: absolute;
  left: 0;
  top: 50%;
  width: 25px;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0;
  border: 1px solid #363636;
  border-left: 0;
  border-radius: 0 5px 5px 0;
  background: rgba(19, 19, 19, .92);
  color: #858585;
  box-shadow: 4px 3px 14px rgba(0, 0, 0, .28);
  transform: translateY(-50%);
  pointer-events: auto;
  cursor: pointer;
  transition: left 150ms ease, color 120ms ease, background 120ms ease;
}
.drawing-dock.open .drawing-dock-toggle { left: 42px; color: #b6b6b6; }
.drawing-dock.tool-active:not(.open) .drawing-dock-toggle {
  border-color: #5c4b2d;
  background: #29241b;
  color: #efad42;
}
.drawing-dock-toggle svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.drawing-dock-toggle .dock-chevron {
  width: 11px;
  height: 11px;
  transition: transform 150ms ease;
}
.drawing-dock.open .dock-chevron { transform: rotate(180deg); }
.drawing-tool {
  position: relative;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: #909090;
  cursor: pointer;
}
.drawing-tool svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.drawing-tool::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 9px);
  top: 50%;
  z-index: 2;
  padding: 5px 7px;
  border: 1px solid #3a3a3a;
  border-radius: 3px;
  background: #171717;
  color: #aaa;
  font-size: 8px;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-3px, -50%);
  pointer-events: none;
  transition: opacity 100ms ease, transform 100ms ease;
}
.drawing-tool:hover::after { opacity: 1; transform: translate(0, -50%); }
.drawing-tool:hover,
.drawing-tool.active {
  border-color: #4d4433;
  background: #29251e;
  color: #f0b454;
}
.drawing-tool:disabled {
  opacity: .28;
  cursor: default;
}
.drawing-tool:disabled:hover {
  border-color: transparent;
  background: transparent;
  color: #909090;
}
.drawing-tool:disabled::after { display: none; }
.drawing-divider {
  width: 22px;
  height: 1px;
  margin: 3px 0;
  background: #343434;
}
.drawing-active .mobile-price-scale-handle { pointer-events: none; }
.drawing-active,
.drawing-active .tv-chart,
.drawing-active .tv-chart canvas { cursor: crosshair !important; }
.drawing-active { touch-action: none; }

.side-panel {
  min-width: 0;
  min-height: 0;
  border-left: 1px solid var(--border);
  background: var(--panel);
}
.side-tabs { height: 37px; display: flex; align-items: end; gap: 3px; padding: 0 8px; border-bottom: 1px solid #292a2e; }
.side-tab { height: 29px; padding: 0 7px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #777980; font-size: 9px; font-weight: 700; letter-spacing: .055em; cursor: pointer; }
.side-tab:hover { color: #c7c8cc; }
.side-tab.active { color: #e8e8eb; border-bottom-color: #ca747e; }
.side-tab.tape-tab.active { color: #a8d9d8; border-bottom-color: #58aaac; }
.coins-panel, .tape-panel { height: calc(100% - 37px); min-height: 0; overflow: hidden; }
.coins-panel[hidden], .tape-panel[hidden] { display: none; }

.mobile-coin-search { display: none; }

.panel-title {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 11px;
  color: #dedfe4;
  font-size: 12px;
  font-weight: 600;
}

.coin-list-title {
  justify-content: flex-start;
  gap: 6px;
}

.coin-list-title svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #a6a7ae;
  stroke-width: 1.15;
  stroke-linecap: round;
}

.coin-list-title .muted { margin-left: -3px; }

.muted { color: #7e7f87; font-size: 9px; font-weight: 500; letter-spacing: 0.05em; }

.coin-header,
.coin-row {
  display: grid;
  grid-template-columns: minmax(56px, 1fr) 48px 45px 43px 50px 46px;
  align-items: center;
  gap: 3px;
  padding: 0 8px;
}

.coin-header {
  height: 38px;
  border-top: 1px solid #242424;
  border-bottom: 1px solid #292929;
  color: #7f8089;
  font-size: 8px;
  line-height: 1.2;
}

.coin-sort-button {
  position: relative;
  min-width: 0;
  height: 100%;
  padding: 0 9px 0 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}
.coin-sort-button:not(:first-child) { text-align: right; }
.coin-sort-button:hover,
.coin-sort-button.active { color: #c0c1c7; }
.coin-sort-button.active::after {
  position: absolute;
  top: 50%;
  right: 0;
  color: #888;
  font-size: 7px;
  transform: translateY(-50%);
}
.coin-sort-button.active.asc::after { content: "▲"; }
.coin-sort-button.active.desc::after { content: "▼"; }
.coin-ticker-header {
  height: 100%;
  display: flex;
  align-items: center;
  min-width: 0;
}
.coin-ticker-header .coin-sort-button {
  width: auto;
  flex: 0 1 auto;
  padding-right: 9px;
}
.coin-row > span:not(:first-child) { text-align: right; }

.coin-list { height: calc(100% - 74px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #333 transparent; }

.tape-panel {
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(50, 118, 119, .025), transparent 160px),
    #151517;
}
.tape-title {
  min-height: 39px;
  justify-content: flex-start;
  gap: 6px;
  border-bottom: 1px solid #262a2d;
}
.tape-title > span:first-child { color: #dfe2e4; }
.tape-context {
  margin: 0;
  padding: 8px 10px;
  border-bottom: 1px solid #272a2e;
  color: #747b80;
  font-size: 8px;
  line-height: 1.45;
}
.tape-header,
.tape-row {
  display: grid;
  grid-template-columns: minmax(58px, 1fr) 38px 52px 45px 48px;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
}
.tape-header {
  min-height: 34px;
  border-bottom: 1px solid #292d30;
  color: #747b80;
  font-size: 7px;
  line-height: 1.15;
}
.tape-header > span:not(:first-child),
.tape-row > :not(:first-child) { text-align: right; }
.tape-list {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}
.tape-row {
  width: 100%;
  min-height: 28px;
  border: 0;
  border-bottom: 1px solid #23272a;
  background: transparent;
  color: #aeb4b8;
  font-size: 9px;
  cursor: pointer;
}
.tape-row:hover,
.tape-row:focus-visible {
  outline: none;
  background: rgba(65, 151, 155, .075);
}
.tape-row.retained { opacity: .68; }
.tape-row strong {
  color: #69b9b9;
  font-size: 10px;
}
.tape-ticker {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  text-align: left;
}
.tape-ticker small {
  width: 13px;
  flex: 0 0 13px;
  color: #555c61;
  font-size: 7px;
  text-align: right;
}
.tape-ticker b {
  overflow: hidden;
  color: #e1e3e5;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tape-legend {
  flex: 0 0 auto;
  margin: 0;
  padding: 9px 10px;
  border-top: 1px solid #292d30;
  color: #557f81;
  font-size: 7px;
  letter-spacing: .06em;
}
.tape-empty {
  padding: 32px 14px;
  color: #70777b;
  font-size: 9px;
  line-height: 1.55;
  text-align: center;
}

.coin-row {
  height: 24px;
  border-bottom: 1px solid #232323;
  color: #afb0b8;
  font-size: 10px;
  cursor: pointer;
}
.coin-row:hover { background: #202024; }
.coin-row.active { background: #2a2a30; box-shadow: inset 2px 0 #a2a3aa; }
.coin-row:focus-visible { outline: 1px solid #666; outline-offset: -1px; }
.coin-symbol {
  display: flex;
  align-items: center;
  min-width: 0;
  color: #dddde2;
  overflow: hidden;
}
.coin-symbol-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.coin-row.loaded .coin-symbol::after {
  content: "";
  width: 4px;
  height: 4px;
  margin: auto 0 auto auto;
  border-radius: 50%;
  background: #555;
}
.coin-row.pinned .coin-symbol::after { background: #aaa; }
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }

.right-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 3px;
  border-left: 1px solid var(--border);
  background: #121214;
  box-shadow: inset 1px 0 rgba(255, 255, 255, .012);
}

.window-backdrop {
  position: fixed;
  inset: var(--toolbar-height) 0 0;
  z-index: 30;
  display: none;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  background: rgba(5, 5, 5, .76);
  cursor: default;
}

body.chart-expanded .window-backdrop { display: block; }

.rail-button {
  position: relative;
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: #5f6066;
  transition: color .12s ease, background .12s ease, border-color .12s ease;
}
.rail-button svg {
  grid-area: 1 / 1;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rail-button:hover {
  color: #bfc0c5;
  border-color: #292a2e;
  background: #1c1c1f;
}
.rail-button.active {
  color: #ececef;
  border-color: #303137;
  background: #222327;
  box-shadow: inset 2px 0 #c9cacf;
}
.rail-spacer { flex: 1 1 auto; }
.rail-fullscreen { margin-bottom: 1px; }
.rail-collapse-icon { display: none; }
.rail-fullscreen.active .rail-expand-icon { display: none; }
.rail-fullscreen.active .rail-collapse-icon { display: block; }

.loading-overlay {
  position: fixed;
  inset: var(--toolbar-height) 0 0;
  z-index: 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 32px;
  background:
    radial-gradient(circle at 50% 46%, rgba(132, 70, 237, .055), transparent 34%),
    rgba(16, 16, 18, .965);
  color: #7d7e86;
  transition: opacity .2s ease;
}
.loading-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/watcherx-mark.png") center / min(34vw, 420px) auto no-repeat;
  opacity: .018;
  pointer-events: none;
}
.loading-overlay.hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, visibility 0s linear .2s;
}
.loading-copy {
  position: relative;
  width: min(480px, 100%);
  text-align: center;
}
.loading-brand-mark {
  display: grid;
  grid-template-columns: minmax(28px, 96px) auto minmax(28px, 96px);
  align-items: center;
  justify-content: center;
  gap: 17px;
  margin-bottom: 21px;
}
.loading-brand-mark img {
  width: 78px;
  height: 78px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(70, 28, 139, .24));
}
.loading-brand-mark > span {
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(153, 94, 240, .42));
}
.loading-brand-mark > span:last-child {
  background: linear-gradient(90deg, rgba(153, 94, 240, .42), transparent);
}
.loading-copy > p:first-of-type {
  margin: 0 0 11px;
  color: #85868e;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .18em;
}
.loading-copy h1 {
  margin: 0;
  display: grid;
  gap: 8px;
  color: #e6e6e9;
  line-height: 1;
}
.loading-wordmark {
  font-size: clamp(25px, 2.5vw, 34px);
  font-weight: 750;
  letter-spacing: .2em;
  text-indent: .2em;
}
.loading-wordmark > span { color: #a45cff; }
.loading-copy h1 small {
  color: #a1a2a9;
  font-size: 10px;
  font-weight: 550;
  letter-spacing: .08em;
}
.loading-copy > p:last-of-type {
  max-width: 390px;
  margin: 18px auto 0;
  color: #72737b;
  font-size: 10px;
  line-height: 1.55;
}
.loading-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 24px;
  color: #85868d;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .12em;
}
.loading-status > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9e5ced;
  box-shadow: 0 0 0 3px rgba(158, 92, 237, .09);
}
.loading-progress {
  width: min(230px, 72vw);
  height: 1px;
  margin: 13px auto 0;
  overflow: hidden;
  background: #292a2f;
}
.loading-progress::after {
  content: "";
  width: 44%;
  height: 100%;
  display: block;
  background: linear-gradient(90deg, transparent, #a45cff, transparent);
  transform: translateX(-120%);
  animation: loading-progress 1.35s ease-in-out infinite;
}
.loading-overlay noscript {
  width: min(520px, calc(100vw - 40px));
  color: #b89954;
  text-align: center;
  line-height: 1.55;
}

@keyframes loading-progress {
  55%, 100% { transform: translateX(260%); }
}

@media (prefers-reduced-motion: reduce) {
  .loading-progress::after { animation: none; transform: translateX(65%); }
}

.workspace[hidden],
.account-page[hidden] { display: none; }
.account-page {
  height: calc(100dvh - var(--toolbar-height));
  overflow: auto;
  border-top: 1px solid #242529;
  background:
    radial-gradient(circle at 78% 5%, rgba(111, 76, 88, .065), transparent 31%),
    #111113;
  color: var(--text);
}
.account-page-shell {
  width: 100%;
  min-height: 100%;
  display: grid;
  grid-template-rows: 72px minmax(0, 1fr);
  padding: 18px 24px 24px;
}
.account-page-header {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid #292a2e;
}
.account-page-header h1 {
  margin: 0;
  color: #f2f2f4;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.035em;
}
.account-page-header .account-kicker { margin-bottom: 5px; }
.account-back-button {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px 0 9px;
  border: 1px solid #2e2f34;
  border-radius: 3px;
  background: #18181b;
  color: #a4a5ab;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .06em;
  cursor: pointer;
}
.account-back-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.account-back-button:hover,
.account-back-button:focus-visible {
  border-color: #424349;
  background: #1e1e22;
  color: #d0d0d4;
  outline: none;
}
.account-page-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  min-height: 0;
  padding-top: 18px;
}
.account-page-nav {
  min-height: 100%;
  padding: 18px 16px;
  border: 1px solid #28292d;
  border-radius: 5px;
  background: rgba(22, 22, 25, .82);
}
.account-page-nav-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 3px 5px 19px;
  border-bottom: 1px solid #292a2e;
}
.account-page-nav-mark img { width: 30px; height: 30px; }
.account-page-nav-mark div { display: grid; gap: 4px; }
.account-page-nav-mark b {
  color: #dedee2;
  font-size: 12px;
  letter-spacing: .07em;
}
.account-page-nav-mark span { color: #8f9097; font-size: 10px; }
.account-page-nav-item {
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: #96979e;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .04em;
  text-align: left;
  cursor: pointer;
}
.account-page-nav-item.active {
  border-color: #33343a;
  background: #202024;
  color: #d6d6da;
}
.account-page-nav-item svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.account-page-nav-item b {
  min-width: 20px;
  margin-left: auto;
  color: #8e8f96;
  font-size: 9px;
  text-align: right;
}
.account-page-nav-note {
  margin: 24px 11px 0;
  color: #82838a;
  font-size: 11px;
  line-height: 1.65;
}
.account-page-content {
  min-height: 100%;
  overflow: hidden;
  border: 1px solid #2b2c30;
  border-radius: 5px;
  background: rgba(21, 21, 24, .9);
  box-shadow: inset 0 1px rgba(255, 255, 255, .018);
}
.account-state { min-height: 100%; }
.account-state[hidden] { display: none; }
.account-state-logged-out {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr);
}
.account-auth-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 54px;
  border-right: 1px solid #292a2e;
}
.account-telegram-mark,
.account-profile-avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 26px;
  border: 1px solid #34353a;
  border-radius: 6px;
  background: #1d1d20;
  color: #bfc0c5;
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}
.account-telegram-mark svg {
  width: 31px;
  height: 31px;
  stroke: #b6b7bd;
  fill: rgba(174, 176, 182, .06);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.account-kicker {
  margin: 0 0 10px;
  color: #8c8d94;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
}
.account-state h2 {
  margin: 0;
  color: #f1f1f3;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -.03em;
}
.account-copy {
  max-width: 430px;
  margin: 16px 0 26px;
  color: #adaeb5;
  font-size: 13px;
  line-height: 1.65;
}
.telegram-login-button {
  width: min(340px, 100%);
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #3a3b40;
  border-radius: 4px;
  background: #242529;
  color: #e8e8eb;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .12s ease, background .12s ease;
}
.telegram-login-button:hover,
.telegram-login-button:focus-visible {
  border-color: #505158;
  background: #2a2b30;
  outline: none;
}
.telegram-login-button svg {
  width: 18px;
  height: 18px;
  fill: rgba(200, 201, 207, .08);
  stroke: #c8c9cf;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.telegram-login-button.disabled {
  color: #696a70;
  border-color: #292a2e;
  background: #1a1a1d;
  cursor: default;
}
.telegram-login-button.disabled svg { stroke: #64656b; }
.account-privacy {
  max-width: 390px;
  margin: 15px 0 0;
  color: #7b7c83;
  font-size: 11px;
  line-height: 1.6;
}
.account-feature-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
}
.account-feature-list div {
  display: grid;
  gap: 8px;
  padding: 22px 0;
  border-bottom: 1px solid #292a2e;
}
.account-feature-list div:last-child { border-bottom: 0; }
.account-feature-list b { color: #c3c4c9; font-size: 11px; letter-spacing: .1em; }
.account-feature-list span { color: #93949b; font-size: 12px; line-height: 1.5; }
.account-state-logged-in { padding: 44px 48px; }
.account-profile-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 32px;
  border-bottom: 1px solid #292a2e;
}
.account-profile-avatar {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  margin: 0;
  border-radius: 7px;
}
.account-profile-initials {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #e6e6e9;
  font-size: 19px;
  font-weight: 700;
}
.account-profile-identity .account-kicker { margin-bottom: 8px; }
.account-profile-username {
  min-height: 17px;
  margin: 8px 0 0;
  color: #9a9ba2;
  font-size: 13px;
}
.account-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 32px 0 11px;
  color: #9a9ba2;
  font-size: 11px;
  letter-spacing: .09em;
}
.account-section-heading b { color: #69c293; font-size: 10px; }
.account-sync-state {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 15px;
  border: 1px solid #2b342f;
  border-radius: 4px;
  background: rgba(0, 200, 117, .035);
  color: #a9c3b5;
  font-size: 12px;
}
.account-sync-state span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #39b77d;
  box-shadow: 0 0 7px rgba(57, 183, 125, .38);
}
.account-sync-state b { font: inherit; font-weight: 400; }
.account-sync-state[data-state="offline"] { border-color: #39352b; color: #aa9d7f; }
.account-sync-state[data-state="offline"] span {
  background: #b99a52;
  box-shadow: 0 0 7px rgba(185, 154, 82, .3);
}
.account-sync-list { margin-top: 11px; border: 1px solid #292a2e; border-radius: 4px; }
.account-sync-list div {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  border-bottom: 1px solid #292a2e;
  color: #c0c1c6;
  font-size: 12px;
}
.account-sync-list div:last-child { border-bottom: 0; }
.account-sync-list b { color: #92939a; font-size: 10px; font-weight: 500; }
.account-logout-button {
  margin-top: 25px;
  padding: 9px 0;
  border: 0;
  background: transparent;
  color: #92939a;
  font-size: 12px;
  cursor: pointer;
}
.account-logout-button:hover { color: #b4b5ba; }
.account-console { min-height: 100%; }
.account-console-view {
  min-height: 100%;
  padding: 34px 40px 38px;
}
.account-console-view[hidden] { display: none; }
.account-console-heading,
.account-watchlist-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 26px;
  border-bottom: 1px solid #292a2e;
}
.account-trading-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #292a2e;
}
.account-trading-heading h2 { margin: 0; }
.account-trading-heading > div > p:last-child {
  max-width: 640px;
  margin: 10px 0 0;
  color: #85868d;
  font-size: 11px;
  line-height: 1.6;
}
.account-paper-badge {
  height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 0 9px;
  border: 1px solid rgba(176, 134, 48, .45);
  border-radius: 3px;
  background: rgba(111, 77, 21, .11);
  color: #c8a95e;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .08em;
}
.account-paper-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d0a742;
  box-shadow: 0 0 7px rgba(208, 167, 66, .45);
}
.account-paper-badge.live {
  border-color: rgba(208, 73, 89, .52);
  background: rgba(123, 33, 45, .13);
  color: #e18a94;
}
.account-paper-badge.live i {
  background: #e35f70;
  box-shadow: 0 0 8px rgba(227, 95, 112, .52);
}
.account-binance-form {
  margin-top: 20px;
  padding: 14px 16px 12px;
  border: 1px solid #2d2e32;
  border-radius: 4px;
  background: #17171a;
}
.account-binance-summary {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.account-binance-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #4b432c;
  border-radius: 50%;
  background: #282317;
  color: #e0ba55;
  font-size: 15px;
}
.account-binance-summary > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.account-binance-summary b {
  color: #d7d7da;
  font-size: 11px;
}
.account-binance-summary small {
  color: #73747b;
  font-size: 8px;
}
.account-binance-summary em {
  margin-left: auto;
  color: #77787e;
  font-size: 8px;
  font-style: normal;
  font-weight: 750;
  letter-spacing: .09em;
}
.account-binance-summary em[data-tone="connected"] { color: #68c28f; }
.account-binance-summary em[data-tone="error"] { color: #d47482; }
.account-binance-fields {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 9px;
  margin-top: 13px;
}
.account-binance-fields[hidden] { display: none; }
.account-binance-fields label {
  display: grid;
  gap: 5px;
  color: #77787e;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .07em;
}
.account-binance-fields input,
.account-binance-fields select {
  min-width: 0;
  height: 32px;
  box-sizing: border-box;
  padding: 0 9px;
  border: 1px solid #34353a;
  border-radius: 3px;
  outline: none;
  background: #202024;
  color: #dedee2;
  font: 9px "JetBrains Mono Slashed", "JetBrains Mono", monospace;
}
.account-binance-fields input:focus,
.account-binance-fields select:focus { border-color: #665737; }
.account-binance-fields button,
.account-binance-connected button {
  align-self: end;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #51462f;
  border-radius: 3px;
  background: #282319;
  color: #dbc17e;
  font: 750 8px "JetBrains Mono Slashed", "JetBrains Mono", monospace;
  letter-spacing: .07em;
  cursor: pointer;
}
.account-binance-fields button:disabled { opacity: .45; cursor: wait; }
.account-binance-connected {
  min-height: 36px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding: 0 0 0 40px;
}
.account-binance-connected[hidden] { display: none; }
.account-binance-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}
.account-binance-connected b {
  color: #68c28f;
  font-size: 8px;
  letter-spacing: .08em;
}
.account-binance-connected small { color: #77787e; font-size: 8px; }
.account-binance-connected button {
  align-self: center;
  border-color: #493036;
  background: #241a1d;
  color: #c97d88;
}
.account-futures-balance {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}
.account-futures-balance > span {
  min-width: 76px;
  display: grid;
  gap: 3px;
  text-align: right;
}
.account-futures-balance small {
  color: #64656b;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: .09em;
}
.account-futures-balance strong {
  color: #d2d2d5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .01em;
}
.account-futures-balance strong.positive { color: #68c28f !important; }
.account-futures-balance strong.negative { color: #d47482 !important; }
.account-futures-balance[data-state="error"] strong {
  color: #77787e;
}
.account-futures-balance .account-balance-privacy {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  padding: 0;
  border-color: #34353a;
  background: #1c1c20;
  color: #77787e;
  font-size: 11px;
}
.account-futures-balance .account-balance-privacy:hover,
.account-futures-balance .account-balance-privacy:focus-visible {
  border-color: #4a4b50;
  color: #c1c2c7;
  outline: none;
}
.account-binance-form > p {
  margin: 10px 0 0 40px;
  color: #696a70;
  font-size: 7px;
  line-height: 1.5;
}
.account-binance-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.account-binance-help > span {
  min-width: 0;
}
.account-binance-help > a {
  flex: 0 0 auto;
  color: #a79261;
  font-size: 7px;
  font-weight: 750;
  letter-spacing: .08em;
  text-decoration: none;
}
.account-binance-help > a:hover,
.account-binance-help > a:focus-visible {
  color: #d0b879;
  text-decoration: underline;
  outline: none;
}
.account-trading-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 20px;
}
.account-trading-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 7px 17px 4px;
  border: 1px solid #2b2c30;
  border-radius: 4px;
  background: #17171a;
}
.account-trading-form legend {
  padding: 0 7px;
  color: #8d8e95;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .12em;
}
.account-protection-development {
  border-color: #29292d !important;
  background: #161619 !important;
}
.account-protection-development legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.account-protection-development legend > span {
  padding: 2px 5px;
  border: 1px solid #3a3835;
  border-radius: 2px;
  background: #211f1c;
  color: #81786a;
  font-size: 6px;
  letter-spacing: .1em;
}
.account-protection-development label {
  opacity: .42;
}
.account-protection-development label.temporarily-disabled {
  opacity: .68;
}
.account-protection-development label.temporarily-disabled > span:first-child {
  color: #c29b58;
}
.account-protection-development label.temporarily-disabled small {
  color: #8f7446;
}
.account-protection-development.protection-off {
  border-color: #332d25 !important;
}
.account-protection-development.protection-off legend > span {
  border-color: #5a4328;
  background: #251f17;
  color: #c49a55;
}
.account-protection-development.protection-off label {
  opacity: .3;
}
.account-protection-development.protection-off label.temporarily-disabled {
  opacity: .38;
}
.account-protection-development .account-auto-protection-control,
.account-protection-development.protection-off .account-auto-protection-control {
  opacity: .72;
}
.account-protection-development .account-auto-protection-control.enabled,
.account-protection-development.protection-off .account-auto-protection-control.enabled {
  opacity: 1;
}
.account-protection-toggle {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: max-content;
  min-height: 0 !important;
  border-bottom: 0 !important;
  cursor: pointer;
  opacity: 1 !important;
}
.account-protection-toggle input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  opacity: 0;
}
.account-protection-toggle i {
  position: relative;
  width: 28px;
  height: 15px;
  flex: 0 0 auto;
  border: 1px solid #414247;
  border-radius: 10px;
  background: #202125;
  transition: border-color .18s ease, background .18s ease;
}
.account-protection-toggle i::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #77787e;
  transition: transform .18s ease, background .18s ease;
}
.account-protection-toggle input:checked + i {
  border-color: #4a9d78;
  background: rgba(49, 168, 116, .14);
}
.account-protection-toggle input:checked + i::after {
  transform: translateX(13px);
  background: #65c595;
}
.account-protection-toggle b {
  color: #9a9ba1;
  font-size: 9px;
  letter-spacing: .07em;
}
.account-auto-protection-control.enabled .account-protection-toggle b { color: #c8d7ce; }
.account-auto-protection-control:not(.enabled) .account-input-unit { opacity: .38; }
.account-protection-development.protection-off .account-protection-development-note {
  color: #8f7446;
}
.account-protection-development input[readonly] {
  pointer-events: none;
  cursor: not-allowed;
  filter: saturate(.35);
}
.account-protection-development-note {
  margin: 8px 0 10px;
  color: #5f5f65;
  font-size: 7px;
  line-height: 1.45;
}
.account-trading-form label,
.account-trading-form .account-trading-setting {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #28292d;
  color: #c4c5ca;
  font-size: 11px;
}
.account-trading-form label:last-child,
.account-trading-form .account-trading-setting:last-child { border-bottom: 0; }
.account-trading-form label > span:first-child,
.account-trading-form .account-trading-setting > span:first-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.account-trading-form label small,
.account-trading-form .account-trading-setting small {
  color: #707178;
  font-size: 8px;
  font-weight: 400;
  line-height: 1.45;
}
.account-trading-form input,
.account-trading-form select {
  width: 132px;
  height: 32px;
  box-sizing: border-box;
  border: 1px solid #34353a;
  border-radius: 3px;
  outline: 0;
  background: #202024;
  color: #dedee2;
  font: 10px "JetBrains Mono Slashed", "JetBrains Mono", monospace;
}
.account-trading-form select { padding: 0 8px; }
.account-trading-form input {
  padding: 0 34px 0 9px;
  text-align: right;
}
.account-trading-form input:focus,
.account-trading-form select:focus {
  border-color: #64563a;
  box-shadow: 0 0 0 2px rgba(172, 130, 43, .08);
}
.account-input-unit {
  position: relative;
  flex: 0 0 132px;
}
.account-input-unit b {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  color: #77736b;
  font-size: 7px;
  font-weight: 650;
  pointer-events: none;
}
.account-trading-form footer {
  grid-column: 1 / -1;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 14px;
  border: 1px solid #383126;
  border-radius: 4px;
  background: rgba(93, 66, 19, .07);
}
.account-trading-form footer p {
  margin: 0;
  color: #8f8779;
  font-size: 9px;
}
.account-trading-form footer p b { color: #c4ac76; }
.account-trading-form footer > span {
  display: flex;
  align-items: center;
  gap: 14px;
}
#accountTradingStatus {
  color: #7f7f84;
  font-size: 8px;
  font-style: normal;
  letter-spacing: .05em;
}
#accountTradingStatus[data-tone="success"] { color: #65be91; }
#accountTradingStatus[data-tone="error"] { color: #d47482; }
#accountTradingStatus[data-tone="pending"] { color: #b8a060; }
#accountTradingSave {
  height: 32px;
  padding: 0 13px;
  border: 1px solid #51462f;
  border-radius: 3px;
  background: #282319;
  color: #dbc17e;
  font: 750 8px "JetBrains Mono Slashed", "JetBrains Mono", monospace;
  letter-spacing: .08em;
  cursor: pointer;
}
#accountTradingSave:hover { border-color: #71603d; background: #30291c; }
#accountTradingSave:disabled { opacity: .5; cursor: wait; }
.account-console-heading h2,
.account-watchlist-heading h2 {
  margin: 0;
  color: #f1f1f3;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -.03em;
}
.account-console-heading > div:first-child > p:last-child,
.account-watchlist-heading > div > p:last-child {
  max-width: 620px;
  margin: 10px 0 0;
  color: #999aa1;
  font-size: 11px;
  line-height: 1.6;
}
.account-overview-avatar {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  flex: 0 0 60px;
  overflow: hidden;
  border: 1px solid #34353a;
  border-radius: 6px;
  background: #1d1d20;
}
.account-overview-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-overview-avatar .account-profile-initials { font-size: 17px; }
.account-overview-sync {
  height: 54px;
  margin-top: 22px;
}
.account-overview-sync em {
  margin-left: auto;
  color: #69c293;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .09em;
}
.account-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin-top: 11px;
}
.account-overview-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid #2b2c30;
  border-radius: 4px;
  background: #161619;
  color: inherit;
  text-align: left;
}
button.account-overview-card {
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}
button.account-overview-card:hover,
button.account-overview-card:focus-visible {
  border-color: #4a4b51;
  background: #1a1a1e;
  outline: none;
}
.account-overview-card.primary {
  border-color: #3b443f;
  background: linear-gradient(145deg, rgba(0, 200, 117, .045), #161619 58%);
}
.account-overview-card-label {
  color: #92939a;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .1em;
}
.account-overview-card strong {
  margin-top: 20px;
  color: #ededf0;
  font-size: 19px;
  font-weight: 600;
}
.account-overview-card strong b { font: inherit; }
.account-overview-card small {
  margin-top: 8px;
  color: #898a91;
  font-size: 10px;
  line-height: 1.45;
}
.account-overview-card em {
  margin-top: auto;
  padding-top: 14px;
  color: #a5a6ad;
  font-size: 9px;
  font-style: normal;
  font-weight: 650;
}
.account-overview-card:not(.primary) em { color: #717279; }
.account-next-module {
  min-height: 66px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  margin-top: 11px;
  padding: 12px 15px;
  border: 1px solid #332f26;
  border-radius: 4px;
  background: rgba(224, 174, 62, .025);
}
.account-next-module-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #56451f;
  border-radius: 3px;
  color: #d6aa45;
}
.account-next-module div { display: grid; gap: 5px; }
.account-next-module div b { color: #c7c3b9; font-size: 11px; }
.account-next-module div small { color: #77746c; font-size: 9px; line-height: 1.45; }
.account-next-module em {
  color: #a88c4d;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .09em;
}
.account-watchlist-heading > b {
  color: #9a9ba2;
  font-size: 10px;
  letter-spacing: .08em;
  white-space: nowrap;
}
.account-watchlist-search {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 0 13px;
  border: 1px solid #34353a;
  border-radius: 4px;
  background: #19191c;
  color: #8d8e95;
}
.account-watchlist-search:focus-within {
  border-color: #505158;
  background: #1d1d20;
}
.account-watchlist-search svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
}
.account-watchlist-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #e1e1e4;
  font-size: 12px;
  text-transform: uppercase;
}
.account-watchlist-search input::placeholder {
  color: #6f7077;
  text-transform: none;
}
.account-watchlist-search kbd {
  padding: 4px 6px;
  border: 1px solid #33343a;
  border-radius: 3px;
  background: #202024;
  color: #76777e;
  font: inherit;
  font-size: 8px;
}
.account-watchlist-suggestions {
  position: relative;
  z-index: 2;
  display: grid;
  margin-top: 6px;
  overflow: hidden;
  border: 1px solid #34353a;
  border-radius: 4px;
  background: #1b1b1e;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
}
.account-watchlist-suggestions[hidden] { display: none; }
.account-watchlist-suggestion {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 7px 12px;
  border: 0;
  border-bottom: 1px solid #292a2e;
  background: transparent;
  color: #d7d8dc;
  text-align: left;
  cursor: pointer;
}
.account-watchlist-suggestion:last-child { border-bottom: 0; }
.account-watchlist-suggestion:hover,
.account-watchlist-suggestion:focus-visible {
  background: #242428;
  outline: none;
}
.account-watchlist-token {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.account-watchlist-token img {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  object-fit: contain;
  border-radius: 50%;
}
.account-watchlist-token span { display: grid; gap: 4px; }
.account-watchlist-token strong { color: #e0e0e3; font-size: 12px; }
.account-watchlist-token small { color: #74757c; font-size: 9px; }
.account-watchlist-suggestion > b {
  color: #71bd94;
  font-size: 9px;
  letter-spacing: .08em;
}
.account-watchlist-table-head,
.account-watchlist-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 110px 110px 120px 34px;
  align-items: center;
  gap: 8px;
}
.account-watchlist-table-head {
  height: 36px;
  margin-top: 14px;
  padding: 0 12px;
  color: #707178;
  font-size: 8px;
  letter-spacing: .06em;
}
.account-watchlist-rows {
  overflow: hidden;
  border: 1px solid #2b2c30;
  border-radius: 4px;
}
.account-watchlist-rows:empty { display: none; }
.account-watchlist-row {
  min-height: 54px;
  padding: 0 12px;
  border-bottom: 1px solid #292a2e;
  background: #161619;
  color: #c2c3c8;
  font-size: 11px;
}
.account-watchlist-row:last-child { border-bottom: 0; }
.account-watchlist-open {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.account-watchlist-open:hover strong { color: #fff; }
.account-watchlist-metric { text-align: right; }
.account-watchlist-metric.positive { color: var(--green); }
.account-watchlist-metric.negative { color: var(--red); }
.account-watchlist-remove {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #6f7077;
  font-size: 17px;
  cursor: pointer;
}
.account-watchlist-remove:hover,
.account-watchlist-remove:focus-visible {
  background: #28282c;
  color: #d58e98;
  outline: none;
}
.account-watchlist-empty {
  min-height: 210px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  margin-top: 14px;
  border: 1px dashed #303136;
  border-radius: 4px;
  color: #787980;
  text-align: center;
}
.account-watchlist-empty[hidden] { display: none; }
.account-watchlist-empty > span { color: #9a9ba2; font-size: 26px; }
.account-watchlist-empty b { color: #c2c3c8; font-size: 12px; }
.account-watchlist-empty p { margin: 0; color: #787980; font-size: 10px; }
body.account-view .interval-group,
body.account-view .connection-dot,
body.account-view .search-shell { visibility: hidden; pointer-events: none; }
.account-button.active {
  border-color: #4b4146;
  background: #292529;
  color: #e4dfe2;
}

.toast {
  position: fixed;
  right: 48px;
  bottom: 10px;
  z-index: 20;
  max-width: 420px;
  padding: 8px 10px;
  border: 1px solid #4d2c2c;
  background: #251717;
  color: #d1a1a1;
  font-size: 11px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: .2s ease;
}
.toast.visible { opacity: 1; transform: translateY(0); }

.signal-toast-stack {
  position: fixed;
  right: 48px;
  bottom: 18px;
  z-index: 95;
  display: grid;
  width: min(348px, calc(100vw - 72px));
  gap: 8px;
  pointer-events: none;
}
.signal-toast-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #3a3b40;
  border-left: 2px solid #4e8f72;
  border-radius: 5px;
  background:
    linear-gradient(115deg, rgba(65, 143, 108, .08), transparent 44%),
    rgba(23, 23, 26, .97);
  box-shadow: 0 14px 42px rgba(0, 0, 0, .46);
  opacity: 0;
  transform: translateX(18px);
  animation: signal-toast-in .24s ease forwards;
  pointer-events: auto;
  backdrop-filter: blur(10px);
}
.signal-toast-card[data-status="price-alert"] {
  border-color: #66532e;
  border-left-color: #e0ad47;
  background:
    linear-gradient(115deg, rgba(215, 164, 61, .12), transparent 48%),
    rgba(24, 23, 21, .98);
}
.signal-toast-card.leaving {
  animation: signal-toast-out .2s ease forwards;
}
.signal-toast-main {
  display: grid;
  width: 100%;
  gap: 6px;
  padding: 12px 34px 12px 13px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.signal-toast-main:focus-visible {
  outline: 1px solid #777980;
  outline-offset: -3px;
}
.signal-toast-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.signal-toast-kicker {
  color: #8d8e95;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .13em;
}
.signal-toast-state {
  min-width: 45px;
  padding: 3px 5px;
  border: 1px solid #37644f;
  border-radius: 2px;
  background: #16251e;
  color: #68d19d;
  font-size: 8px;
  line-height: 1;
  letter-spacing: .08em;
  text-align: center;
}
.signal-toast-card[data-status="price-alert"] .signal-toast-state {
  border-color: #765a24;
  background: #2b2415;
  color: #f0c465;
}
.signal-toast-card[data-status="price-alert"] .signal-toast-context { color: #d6b66d; }
.signal-toast-title {
  overflow: hidden;
  color: #e5e6e9;
  font-size: 13px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.signal-toast-context {
  color: #aaaab0;
  font-size: 9px;
  letter-spacing: .035em;
}
.signal-toast-card[data-direction="up"] .signal-toast-context { color: #77bf9b; }
.signal-toast-card[data-direction="down"] .signal-toast-context { color: #d4868f; }
.signal-toast-note {
  display: -webkit-box;
  overflow: hidden;
  color: #75767d;
  font: 400 9px/1.4 Inter, "Segoe UI", Arial, sans-serif;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.signal-toast-close {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  width: 22px;
  height: 22px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: #686970;
  font: 400 16px/1 Inter, "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}
.signal-toast-close:hover { color: #d2d3d7; }

@keyframes signal-toast-in {
  to { opacity: 1; transform: translateX(0); }
}
@keyframes signal-toast-out {
  to { opacity: 0; transform: translateX(18px); }
}

@media (max-width: 1450px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 330px 34px; }
  .brand { width: 148px; flex-basis: 148px; }
  .chart-header { gap: 7px; padding: 0 7px; }
  .chart-metrics { gap: 2px; }
  .chart-card:not(.expanded) .chart-range-chip,
  .chart-card:not(.expanded) .chart-volume-chip,
  .chart-card:not(.expanded) .chart-trades-rate-chip { display: none; }
  .chart-card:not(.expanded) .chart-symbol { max-width: 112px; }
  .chart-card:not(.expanded) .chart-lane-chip { max-width: 78px; padding: 0 4px; }
  .chart-card:not(.expanded) .chart-tape-meta { display: none; }
  .chart-card:not(.expanded) .chart-metric-chip { gap: 3px; padding: 0 4px; }
  .market-source, .tv-attribution { display: none; }
}

@media (max-width: 1100px) {
  .brand { width: 130px; flex-basis: 130px; padding-right: 12px; }
  .workspace { grid-template-columns: minmax(0, 1fr) 320px 32px; }
  .chart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, minmax(180px, 1fr)); overflow-y: auto; }
  .chart-card:last-child { grid-column: 1 / -1; }
  .chart-card.expanded { inset: calc(var(--toolbar-height) + 5px) 38px 5px 5px; display: grid; }
}

@media (min-width: 721px) and (max-width: 900px) {
  .brand { width: 106px; flex-basis: 106px; }
}

@media (max-width: 720px) {
  :root { --toolbar-height: 44px; }

  .loading-overlay {
    padding:
      max(24px, env(safe-area-inset-top))
      max(20px, env(safe-area-inset-right))
      max(24px, env(safe-area-inset-bottom))
      max(20px, env(safe-area-inset-left));
  }
  .loading-overlay::before { background-size: min(76vw, 300px) auto; opacity: .014; }
  .loading-brand-mark { gap: 11px; margin-bottom: 18px; }
  .loading-brand-mark img { width: 62px; height: 62px; }
  .loading-brand-mark > span { width: min(16vw, 50px); }
  .loading-wordmark { font-size: 25px; }
  .loading-copy h1 small { font-size: 9px; }
  .loading-copy > p:last-of-type { max-width: 30ch; font-size: 9px; }
  .loading-status { margin-top: 21px; }

  .signal-toast-stack {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    left: max(10px, env(safe-area-inset-left));
    width: auto;
  }
  .signal-toast-main { padding: 11px 32px 11px 12px; }
  .signal-sound-button {
    width: 30px;
    min-width: 30px;
    height: 30px;
  }

  .toolbar {
    gap: 4px;
    padding: 0 max(6px, env(safe-area-inset-right)) 0 max(8px, env(safe-area-inset-left));
  }
  .brand {
    width: 84px;
    flex: 0 0 84px;
    gap: 5px;
    padding-right: 8px;
    font-size: 10px;
  }
  .brand-mark { width: 27px; height: 27px; flex-basis: 27px; }
  body.has-live-position .brand {
    width: 32px;
    flex-basis: 32px;
    padding-right: 5px;
  }
  body.has-live-position .brand span { display: none; }
  .interval-group {
    min-width: 0;
    flex: 1 1 auto;
  }
  .interval-group .tool {
    min-width: 0;
    height: 30px;
    flex: 1 1 0;
    padding: 0;
    font-size: 9px;
  }
  .market-source,
  .tv-attribution,
  .search-shell { display: none; }
  .icon-button {
    width: 30px;
    min-width: 30px;
    height: 30px;
  }
  .active-position-button {
    min-width: 94px;
    height: 30px;
    grid-template-columns: 5px minmax(0, 1fr) auto;
    gap: 5px;
    padding: 0 7px;
  }
  .active-position-button > span { display: block; }
  .active-position-button small { display: block; font-size: 7px; }
  .active-position-button strong,
  .active-position-button > b { display: none; }
  .active-position-button em { font-size: 8px; }
  .active-position-menu {
    position: fixed;
    top: calc(var(--toolbar-height) + 6px);
    right: 7px;
    left: 7px;
    width: auto;
  }
  body.account-view .interval-group { display: none; }
  body.account-view .toolbar-spacer { display: block; }
  .account-page {
    height: calc(100dvh - var(--toolbar-height));
    background: #111113;
  }
  .account-page-shell {
    width: 100%;
    min-height: 0;
    display: block;
    padding: 0 0 env(safe-area-inset-bottom);
  }
  .account-page-header {
    height: 58px;
    gap: 12px;
    padding: 0 12px;
  }
  .account-page-header h1 { font-size: 20px; }
  .account-page-header .account-kicker { margin-bottom: 3px; }
  .account-back-button {
    width: 32px;
    padding: 0;
    justify-content: center;
  }
  .account-back-button span { display: none; }
  .account-page-grid {
    display: block;
    padding: 0;
  }
  .account-page-nav {
    min-height: 0;
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 10px 12px;
    overflow-x: auto;
    border-width: 0 0 1px;
    border-radius: 0;
    background: #151518;
    scrollbar-width: none;
  }
  .account-page-nav::-webkit-scrollbar { display: none; }
  .account-page-nav-mark,
  .account-page-nav-note { display: none; }
  .account-page-nav-item {
    width: max-content;
    flex: 0 0 auto;
    height: 30px;
    margin: 0;
    padding: 0 9px;
  }
  .account-page-content {
    min-height: calc(100dvh - var(--toolbar-height) - 99px);
    border: 0;
    border-radius: 0;
    background: #141416;
  }
  .account-state { min-height: 0; }
  .account-console,
  .account-console-view { min-height: 0; }
  .account-console-view { padding: 24px 18px 32px; }
  .account-console-heading,
  .account-watchlist-heading {
    gap: 16px;
    padding-bottom: 22px;
  }
  .account-console-heading h2,
  .account-watchlist-heading h2 { font-size: 21px; }
  .account-console-heading > div:first-child > p:last-child,
  .account-watchlist-heading > div > p:last-child {
    font-size: 10px;
  }
  .account-overview-avatar {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }
  .account-overview-grid { grid-template-columns: 1fr; }
  .account-overview-card { min-height: 126px; }
  .account-next-module { grid-template-columns: auto minmax(0, 1fr); }
  .account-next-module > em { grid-column: 2; }
  .account-trading-heading { gap: 14px; }
  .account-trading-heading h2 { font-size: 21px; }
  .account-binance-fields { grid-template-columns: 1fr; }
  .account-binance-connected { padding-left: 0; }
  .account-binance-connected {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .account-futures-balance {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: 8px;
  }
  .account-futures-balance > span {
    min-width: 0;
    text-align: left;
  }
  .account-binance-form > p { margin-left: 0; }
  .account-binance-help {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
  .account-trading-form { grid-template-columns: 1fr; }
  .account-trading-form footer {
    grid-column: 1;
    align-items: flex-start;
    flex-direction: column;
    padding: 12px;
  }
  .account-trading-form footer > span {
    width: 100%;
    justify-content: space-between;
  }
  .account-watchlist-heading > b { display: none; }
  .account-watchlist-search kbd { display: none; }
  .account-watchlist-table-head {
    grid-template-columns: minmax(100px, 1fr) 74px 64px 28px;
    gap: 5px;
    padding: 0 8px;
  }
  .account-watchlist-table-head span:nth-child(4) { display: none; }
  .account-watchlist-row {
    grid-template-columns: minmax(100px, 1fr) 74px 64px 28px;
    gap: 5px;
    padding: 0 8px;
  }
  .account-watchlist-row > :nth-child(4) { display: none; }
  .account-watchlist-token { gap: 8px; }
  .account-watchlist-token img {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }
  .account-watchlist-token strong { font-size: 11px; }
  .account-watchlist-token small { font-size: 8px; }
  .account-state-logged-out { display: block; }
  .account-auth-card {
    padding: 32px 22px 27px;
    border-right: 0;
    border-bottom: 1px solid #292a2e;
  }
  .account-telegram-mark {
    width: 50px;
    height: 50px;
    margin-bottom: 21px;
  }
  .account-state h2 { font-size: 22px; }
  .account-copy {
    margin: 13px 0 22px;
    font-size: 12px;
  }
  .account-feature-list { padding: 8px 22px 22px; }
  .account-feature-list div { padding: 15px 0; }
  .account-state-logged-in { padding: 28px 18px 36px; }
  .account-profile-card {
    gap: 14px;
    padding-bottom: 24px;
  }
  .account-profile-avatar {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }
  .account-section-heading { margin-top: 25px; }

  .workspace {
    display: block;
    height: calc(100dvh - var(--toolbar-height));
  }
  .chart-grid,
  .right-rail { display: none; }
  .side-panel {
    width: 100%;
    height: 100%;
    border-left: 0;
  }
  .panel-title {
    height: 42px;
    padding: 0 12px;
    font-size: 13px;
  }
  .mobile-coin-search {
    height: 42px;
    margin: 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    border: 1px solid #2d2d2d;
    border-radius: 3px;
    background: #191919;
    color: #777;
  }
  .mobile-coin-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #d0d0d0;
    font: inherit;
    font-size: 12px;
    text-transform: uppercase;
  }
  .coin-header,
  .coin-row {
    grid-template-columns: minmax(46px, 1fr) 44px 41px 41px 46px 43px;
    gap: 3px;
    padding: 0 8px;
  }
  .coin-header {
    height: 44px;
    margin-top: 6px;
    font-size: 8px;
  }
  .coin-list {
    height: calc(100% - 134px);
    padding-bottom: env(safe-area-inset-bottom);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .coin-row {
    height: 36px;
    color: #bfc0c7;
    font-size: 11px;
  }
  .coin-sort-button { padding-right: 8px; }

  .window-backdrop { inset: var(--toolbar-height) 0 0; }
  .chart-card.expanded,
  .chart-card.coin-preview {
    inset: var(--toolbar-height) 0 env(safe-area-inset-bottom) 0;
    display: grid;
    grid-template-rows: 42px minmax(0, 1fr);
    border: 0;
    box-shadow: none;
  }
  .coin-preview .chart-header {
    gap: 7px;
    padding: 0 8px;
  }
  .coin-preview .chart-back-button {
    width: 28px;
    min-width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #bcbcbc;
  }
  .coin-preview .chart-back-button svg { width: 16px; height: 16px; }
  .coin-preview .chart-window-button { display: none; }
  .chart-card.expanded .chart-trade-button,
  .chart-card.coin-preview .chart-trade-button { display: none; }
  .coin-preview .chart-symbol { font-size: 14px; }
  .coin-preview .chart-metrics { gap: 2px; }
  .coin-preview .chart-range-chip,
  .coin-preview .chart-natr-chip,
  .coin-preview .chart-volume-chip { display: none; }
  .coin-preview .chart-trades-rate-chip {
    margin-left: 0;
    padding-inline: 5px;
  }
  .drawing-toolbar { width: 44px; padding: 5px; }
  .drawing-dock.open .drawing-dock-toggle { left: 44px; }
  .drawing-tool { width: 34px; height: 34px; }
  .drawing-tool::after { display: none; }
  .chart-drawing-measure-text { font-size: 8px; }
  .coin-preview .mobile-price-scale-handle {
    position: absolute;
    z-index: 7;
    top: 0;
    right: 0;
    bottom: 0;
    width: 58px;
    display: block;
    border: 0;
    outline: 0;
    background: transparent;
    cursor: ns-resize;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
  }
  .coin-preview .mobile-price-scale-handle::after {
    content: "↕";
    position: absolute;
    top: 50%;
    right: 2px;
    width: 15px;
    height: 28px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 1px solid #353535;
    border-radius: 3px;
    background: rgba(20, 20, 20, .78);
    color: #6f6f6f;
    font-size: 11px;
  }
  .coin-preview .mobile-price-scale-handle.active::after,
  .coin-preview .mobile-price-scale-handle:focus-visible::after {
    border-color: #52705b;
    color: #a9b4ab;
  }
  .toast {
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    left: 8px;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .signal-toast-card,
  .signal-toast-card.leaving { animation-duration: .01ms; }
}

/* Keep the trading redesign above the legacy account cascade. */
.account-trading-view.account-console-view {
  width: min(100%, 1160px);
  margin: 0 auto;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
.account-trading-view .account-trading-heading {
  align-items: center;
  padding-bottom: 22px;
}
.account-trading-view .account-trading-heading h2 {
  color: #f3f3f5;
  font: 650 27px/1.15 Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: -.035em;
}
.account-trading-view .account-trading-heading > div > p:last-child {
  max-width: 720px;
  margin-top: 8px;
  color: #898a91;
  font: 400 12px/1.55 Inter, "Segoe UI", Arial, sans-serif;
}
.account-trading-view .account-binance-form {
  margin-top: 18px;
  padding: 17px 18px 14px;
  border-color: #303137;
  border-radius: 10px;
  background:
    radial-gradient(circle at 100% 0, rgba(210, 168, 66, .055), transparent 35%),
    #18181b;
}
.account-trading-view .account-binance-summary {
  min-height: 38px;
  gap: 13px;
}
.account-trading-view .account-binance-icon {
  width: 34px;
  height: 34px;
  border-color: #574a28;
  background: #2b2517;
  font-size: 17px;
}
.account-trading-view .account-binance-summary > div { gap: 4px; }
.account-trading-view .account-binance-summary b {
  color: #e7e7e9;
  font: 650 12px/1.2 Inter, "Segoe UI", Arial, sans-serif;
}
.account-trading-view .account-binance-summary small {
  color: #797a81;
  font: 400 10px/1.25 Inter, "Segoe UI", Arial, sans-serif;
}
.account-trading-view .account-binance-summary em {
  padding: 5px 7px;
  border: 1px solid #34353a;
  border-radius: 5px;
  background: #1d1d21;
  font-size: 7px;
}
.account-trading-view .account-binance-connected {
  min-height: 44px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  margin-top: 15px;
  padding: 14px 0 0;
  border-top: 1px solid #2a2b30;
}
.account-trading-view .account-binance-identity {
  gap: 8px;
  padding-right: 18px;
  border-right: 1px solid #2a2b30;
}
.account-trading-view .account-futures-balance { gap: clamp(16px, 3vw, 34px); }
.account-trading-view .account-futures-balance > span {
  min-width: 94px;
  gap: 4px;
  text-align: left;
}
.account-trading-view .account-futures-balance small { font-size: 7px; }
.account-trading-view .account-futures-balance strong { font-size: 12px; }
.account-trading-view .account-binance-connected button {
  height: 29px;
  padding: 0 9px;
  border-color: #3f3034;
  background: transparent;
  font-size: 7px;
}
.account-trading-view .account-binance-form > p {
  margin: 12px 0 0 47px;
  color: #66676e;
  font: 400 9px/1.45 Inter, "Segoe UI", Arial, sans-serif;
}
.account-trading-view .account-trading-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  padding-top: 16px;
}
.account-trading-view .account-trading-form .account-protection-toggle {
  min-height: auto !important;
  border: 0 !important;
}
.account-trading-view .account-trading-form .account-protection-toggle > span {
  display: grid;
  gap: 5px;
}
.account-trading-view .account-trading-form .account-protection-toggle > span b {
  color: #d4d4d7;
  font: 600 12px/1.1 Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}
.account-trading-view .account-trading-form .account-protection-toggle > span small {
  color: #717279;
  font: 400 9px/1.2 Inter, "Segoe UI", Arial, sans-serif;
}
.account-trading-view .account-trading-form .account-main-input { flex-basis: 112px; }
.account-trading-view .account-trading-form .account-main-input input {
  width: 112px;
  height: 34px;
  border-radius: 5px;
  background: #202025;
  font-size: 11px;
}
.account-trading-view .account-trading-form footer {
  grid-column: 1 / -1;
  min-height: 58px;
  padding: 0 16px;
  border-color: #302f2c;
  border-radius: 8px;
  background: #181817;
}
.account-trading-view .account-trading-form footer p {
  color: #858179;
  font: 400 10px/1.4 Inter, "Segoe UI", Arial, sans-serif;
}

@media (max-width: 1120px) {
  .account-trading-view .account-trading-form { grid-template-columns: 1fr; }
  .account-trading-view .account-trading-form footer { grid-column: 1; }
}

@media (max-width: 720px) {
  .account-trading-view.account-console-view {
    width: 100%;
    padding: 23px 14px 30px;
  }
  .account-trading-view .account-trading-heading { align-items: flex-start; }
  .account-trading-view .account-trading-heading h2 { font-size: 23px; }
  .account-trading-view .account-binance-form { padding: 14px; }
  .account-trading-view .account-binance-connected {
    grid-template-columns: 1fr auto;
    padding-top: 12px;
  }
  .account-trading-view .account-binance-identity { border-right: 0; }
  .account-trading-view .account-futures-balance {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 8px;
  }
  .account-trading-view .account-futures-balance > span { min-width: 0; }
  .account-trading-view .account-binance-form > p { margin-left: 0; }
  .account-trading-view .account-trading-form footer {
    align-items: stretch;
    flex-direction: column;
    padding: 12px 14px;
  }
}

/* Account control center */
.account-control-heading {
  align-items: flex-start;
}
.account-control-heading h2,
.account-journal-heading h2 {
  font: 600 clamp(24px, 2vw, 30px)/1.12 Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: -.035em;
}
.account-control-heading > div:first-child > p:last-child {
  max-width: 680px;
  color: #909198;
  font: 400 12px/1.55 Inter, "Segoe UI", Arial, sans-serif;
}
.account-control-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr);
  gap: 14px;
  margin-top: 18px;
}
.account-readiness-card,
.account-access-card,
.account-performance-card,
.account-activity-card,
.account-workspace-card,
.account-journal-panel {
  border: 1px solid #2d2e33;
  border-radius: 8px;
  background: #17171a;
  box-shadow: inset 0 1px rgba(255, 255, 255, .018);
}
.account-readiness-card {
  overflow: hidden;
  border-color: #36352f;
  background:
    linear-gradient(135deg, rgba(206, 164, 72, .045), transparent 48%),
    #17171a;
}
.account-readiness-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 20px 14px;
}
.account-readiness-card header div,
.account-intelligence-heading > div,
.account-journal-panel > header > div {
  display: grid;
  gap: 6px;
}
.account-readiness-card header span,
.account-access-card header span,
.account-intelligence-heading span,
.account-journal-panel > header span,
.account-journal-summary span,
.account-performance-grid span,
.account-workspace-metrics span {
  color: #77787f;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .12em;
}
.account-readiness-card h3,
.account-access-card h3,
.account-intelligence-heading h3,
.account-journal-panel h3 {
  margin: 0;
  color: #dedee2;
  font: 600 15px/1.2 Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: -.012em;
}
.account-readiness-card > header > strong {
  color: #d2b566;
  font: 650 20px/1 Inter, "Segoe UI", Arial, sans-serif;
}
.account-readiness-progress {
  height: 3px;
  margin: 0 20px;
  overflow: hidden;
  border-radius: 2px;
  background: #28292d;
}
.account-readiness-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a88438, #e0bd69);
  box-shadow: 0 0 10px rgba(219, 178, 81, .28);
  transition: width .28s ease;
}
.account-readiness-list {
  padding: 8px 20px 9px;
}
.account-readiness-list > div {
  min-height: 39px;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #292a2e;
}
.account-readiness-list > div:last-child { border-bottom: 0; }
.account-readiness-list i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #55565c;
}
.account-readiness-list span {
  color: #a7a8ae;
  font: 450 11px/1.3 Inter, "Segoe UI", Arial, sans-serif;
}
.account-readiness-list b {
  color: #77787f;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .08em;
}
.account-readiness-list > div.ready i {
  background: #45bd82;
  box-shadow: 0 0 7px rgba(69, 189, 130, .38);
}
.account-readiness-list > div.ready b { color: #67c795; }
.account-readiness-list > div.pending i {
  background: #c89a3d;
  box-shadow: 0 0 7px rgba(200, 154, 61, .28);
}
.account-readiness-list > div.pending b { color: #c2a25c; }
.account-readiness-list > div.error i { background: #c75b68; }
.account-readiness-list > div.error b { color: #d27782; }
.account-readiness-card > button,
.account-intelligence-heading button {
  border: 0;
  background: transparent;
  color: #bba363;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .09em;
  cursor: pointer;
}
.account-readiness-card > button {
  width: 100%;
  min-height: 40px;
  padding: 0 20px;
  border-top: 1px solid #302f2b;
  text-align: left;
}
.account-readiness-card > button:hover,
.account-readiness-card > button:focus-visible,
.account-intelligence-heading button:hover,
.account-intelligence-heading button:focus-visible {
  color: #e0c57d;
  outline: none;
}
.account-access-card {
  padding: 19px 20px 16px;
}
.account-access-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.account-access-card > header b {
  padding: 5px 7px;
  border: 1px solid #3d3b32;
  border-radius: 4px;
  background: #211f1a;
  color: #b59b5b;
  font-size: 7px;
  letter-spacing: .08em;
}
.account-access-card h3 { margin-top: 19px; }
.account-access-card > p {
  min-height: 48px;
  margin: 9px 0 13px;
  color: #85868d;
  font: 400 10px/1.55 Inter, "Segoe UI", Arial, sans-serif;
}
.account-access-card > div {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid #292a2e;
}
.account-access-card > div span {
  color: #8b8c93;
  font-size: 8px;
  letter-spacing: .08em;
}
.account-access-card > div b {
  color: #60bd8b;
  font-size: 8px;
  letter-spacing: .07em;
}
.account-access-card > small {
  display: block;
  margin-top: 10px;
  color: #62636a;
  font: 400 8px/1.5 Inter, "Segoe UI", Arial, sans-serif;
}
.account-performance-card,
.account-activity-card,
.account-workspace-card {
  margin-top: 14px;
}
.account-performance-card,
.account-activity-card {
  overflow: hidden;
}
.account-intelligence-heading {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 20px;
  border-bottom: 1px solid #2a2b2f;
}
.account-intelligence-heading em,
.account-journal-panel > header em {
  color: #686970;
  font-size: 7px;
  font-style: normal;
  font-weight: 750;
  letter-spacing: .09em;
}
.account-performance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.account-performance-grid > div {
  min-height: 102px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border-right: 1px solid #292a2e;
}
.account-performance-grid > div:last-child { border-right: 0; }
.account-performance-grid strong,
.account-journal-summary strong {
  color: #e5e5e8;
  font: 600 18px/1.1 Inter, "Segoe UI", Arial, sans-serif;
}
.account-performance-grid small {
  color: #686970;
  font: 400 8px/1.4 Inter, "Segoe UI", Arial, sans-serif;
}
.account-performance-note {
  margin: 0;
  padding: 10px 20px;
  border-top: 1px solid #292a2e;
  color: #73747b;
  font: 400 9px/1.45 Inter, "Segoe UI", Arial, sans-serif;
}
.account-activity-list {
  display: grid;
}
.account-activity-row {
  min-height: 50px;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 0 20px;
  border-bottom: 1px solid #292a2e;
}
.account-activity-row:last-child { border-bottom: 0; }
.account-activity-row > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #696a70;
}
.account-activity-row[data-tone="positive"] > i { background: #4abd81; }
.account-activity-row[data-tone="negative"] > i { background: #d15f6f; }
.account-activity-row[data-tone="warning"] > i { background: #c79a45; }
.account-activity-row > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.account-activity-row b {
  overflow: hidden;
  color: #c8c8cc;
  font: 550 10px/1.25 Inter, "Segoe UI", Arial, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-activity-row small {
  color: #696a71;
  font: 400 8px/1.3 Inter, "Segoe UI", Arial, sans-serif;
}
.account-activity-row > time {
  color: #717279;
  font-size: 8px;
  white-space: nowrap;
}
.account-intelligence-empty {
  min-height: 74px;
  display: grid;
  place-items: center;
  padding: 18px 20px;
  color: #686970;
  font: 400 9px/1.5 Inter, "Segoe UI", Arial, sans-serif;
  text-align: center;
}
.account-intelligence-empty[hidden] { display: none; }
.account-workspace-card {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr);
  overflow: hidden;
}
.account-workspace-card .account-overview-sync {
  height: auto;
  min-height: 72px;
  margin: 0;
  padding: 0 20px;
  border-right: 1px solid #292a2e;
  border-bottom: 0;
}
.account-workspace-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.account-workspace-metrics > * {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 0;
  border-right: 1px solid #292a2e;
  background: transparent;
  color: inherit;
  text-align: left;
}
.account-workspace-metrics > *:last-child { border-right: 0; }
.account-workspace-metrics button { cursor: pointer; }
.account-workspace-metrics button:hover,
.account-workspace-metrics button:focus-visible {
  background: #1b1b1f;
  outline: none;
}
.account-workspace-metrics strong {
  color: #c7c7cb;
  font: 550 11px/1.2 Inter, "Segoe UI", Arial, sans-serif;
}
.account-workspace-metrics strong b { font: inherit; }

.account-journal-view {
  width: min(1260px, 100%);
  margin: 0 auto;
}
.account-journal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #292a2e;
}
.account-journal-heading p:last-child {
  max-width: 700px;
  margin: 10px 0 0;
  color: #8f9097;
  font: 400 11px/1.55 Inter, "Segoe UI", Arial, sans-serif;
}
.account-journal-heading > span {
  padding: 7px 9px;
  border: 1px solid #38383d;
  border-radius: 4px;
  color: #85868d;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .1em;
}
.account-journal-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid #2d2e33;
  border-radius: 8px;
  background: #17171a;
}
.account-journal-summary > div {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border-right: 1px solid #292a2e;
}
.account-journal-summary > div:last-child { border-right: 0; }
.account-journal-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 14px;
  margin-top: 14px;
}
.account-journal-panel {
  min-width: 0;
  overflow: hidden;
}
.account-journal-panel > header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  border-bottom: 1px solid #292a2e;
}
.account-result-row {
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(64px, .55fr) minmax(112px, 1fr) minmax(100px, .85fr) minmax(92px, .8fr) minmax(104px, .9fr);
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-bottom: 1px solid #292a2e;
}
.account-result-row:last-child { border-bottom: 0; }
.account-result-row > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.account-result-row span,
.account-result-row small {
  color: #686970;
  font-size: 7px;
  letter-spacing: .07em;
}
.account-result-row b,
.account-result-row strong {
  overflow: hidden;
  color: #c9c9cd;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-result-row strong { text-align: right; }
.account-result-row time {
  color: #77787f;
  font-size: 8px;
  text-align: right;
  white-space: nowrap;
}
.account-result-row[data-tone="positive"] strong { color: #5dc58f; }
.account-result-row[data-tone="negative"] strong { color: #dc6e7d; }
.account-activity-list.full .account-activity-row { padding-inline: 18px; }

@media (max-width: 1120px) {
  .account-control-grid { grid-template-columns: 1fr; }
  .account-access-card > p { min-height: 0; }
  .account-journal-columns { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .account-performance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-performance-grid > div:nth-child(2) { border-right: 0; }
  .account-performance-grid > div:nth-child(-n+2) { border-bottom: 1px solid #292a2e; }
  .account-workspace-card { grid-template-columns: 1fr; }
  .account-workspace-card .account-overview-sync {
    border-right: 0;
    border-bottom: 1px solid #292a2e;
  }
  .account-workspace-metrics > * { min-height: 68px; }
  .account-journal-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .account-journal-summary > div:nth-child(3) { border-right: 0; }
  .account-journal-summary > div:nth-child(-n+3) { border-bottom: 1px solid #292a2e; }
}

@media (max-width: 620px) {
  .account-performance-grid { grid-template-columns: 1fr 1fr; }
  .account-performance-grid > div { min-height: 86px; padding-inline: 14px; }
  .account-workspace-metrics { grid-template-columns: 1fr; }
  .account-workspace-metrics > * {
    min-height: 56px;
    border-right: 0;
    border-bottom: 1px solid #292a2e;
  }
  .account-workspace-metrics > *:last-child { border-bottom: 0; }
  .account-journal-summary { grid-template-columns: 1fr 1fr; }
  .account-journal-summary > div,
  .account-journal-summary > div:nth-child(3) { border-right: 1px solid #292a2e; }
  .account-journal-summary > div:nth-child(2n) { border-right: 0; }
  .account-journal-summary > div { border-bottom: 1px solid #292a2e; }
  .account-journal-summary > div:last-child { border-bottom: 0; }
  .account-result-row {
    grid-template-columns: minmax(70px, 1fr) minmax(90px, 1fr);
    padding-block: 10px;
  }
  .account-result-row > span,
  .account-result-row > small { display: none; }
}

/* Account · flat, readable trading settings */
.account-trading-view.account-console-view {
  width: 100%;
  max-width: none;
  margin: 0;
}
.account-page-content:has(#accountTradingView:not([hidden])) {
  overflow: visible;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.account-trading-view .account-binance-form {
  margin-top: 12px;
  padding: 20px 0 18px;
  border-width: 0 0 1px;
  border-color: #2b2c31;
  border-radius: 0;
  background: transparent;
}
.account-trading-view .account-binance-connected {
  min-height: 54px;
  padding-right: 0;
  padding-left: 0;
}
.account-trading-view .account-binance-summary {
  min-height: 46px;
}
.account-trading-view .account-binance-icon {
  width: 38px;
  height: 38px;
  font-size: 19px;
}
.account-trading-view .account-binance-summary b {
  font-size: 13px;
}
.account-trading-view .account-binance-summary small {
  font-size: 11px;
}
.account-trading-view .account-futures-balance {
  justify-content: flex-end;
  gap: clamp(28px, 4vw, 64px);
}
.account-trading-view .account-futures-balance > span {
  min-width: 112px;
}
.account-trading-view .account-futures-balance strong {
  font-size: 14px;
}
.account-trading-view .account-trading-heading h2 {
  font-size: 31px;
}
.account-trading-view .account-trading-heading > div > p:last-child {
  max-width: 820px;
  font-size: 13px;
}
.account-trading-view .account-trading-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  margin-top: 0;
  padding-top: 0;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid #2b2c31;
  border-radius: 0;
  background: transparent;
}
.account-trading-view .account-trade-card {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.account-trading-view .account-order-card {
  border-right: 1px solid #2b2c31;
}
.account-trading-view .account-card-heading {
  min-height: 82px;
  padding: 0 24px;
  border-bottom: 1px solid #2b2c31;
  background: transparent;
}
.account-trading-view .account-card-heading h3 {
  font-size: 18px;
}
.account-trading-view .account-trading-control {
  min-height: 112px;
  padding: 0 24px;
}
.account-trading-view .account-control-copy {
  min-width: 170px;
}
.account-trading-view .account-control-copy b {
  font-size: 13px;
}
.account-trading-view .account-control-copy small {
  max-width: 240px;
  font-size: 10px;
}
.account-trading-view .account-value-presets button {
  min-width: 40px;
  height: 34px;
  font-size: 9px;
}
.account-trading-view .account-trading-form .account-main-input {
  flex-basis: 126px;
}
.account-trading-view .account-trading-form .account-main-input input {
  width: 126px;
  height: 38px;
  font-size: 12px;
}
.account-trading-view .account-position-summary,
.account-trading-view .account-risk-summary {
  min-height: 88px;
  padding-right: 24px;
  padding-left: 24px;
  border-top: 0;
  background: rgba(255, 255, 255, .012);
}
.account-trading-view .account-position-summary strong {
  font-size: 23px;
}
.account-trading-view .account-protection-row {
  min-height: 112px;
  grid-template-columns: minmax(0, 1fr) 180px;
}
.account-trading-view .account-protection-main {
  padding-right: 20px;
  padding-left: 24px;
}
.account-trading-view .account-trading-form .account-protection-toggle > span b {
  font-size: 13px;
}
.account-trading-view .account-trading-form .account-protection-toggle > span small {
  font-size: 10px;
}
.account-trading-view .account-protection-main > .account-input-unit,
.account-trading-view .account-protection-main > .account-input-unit input {
  width: 96px;
  flex-basis: 96px;
  height: 38px;
}
.account-trading-view .account-protection-estimate {
  padding: 0 18px;
}
.account-trading-view .account-protection-estimate strong {
  font-size: 14px;
}
.account-trading-view .account-protection-estimate {
  background: rgba(255, 255, 255, .009);
}
.account-trading-view .account-trading-form footer {
  grid-column: 1 / -1;
  min-height: 70px;
  margin: 0;
  padding: 0 24px;
  border: 0;
  border-top: 1px solid #2b2c31;
  border-radius: 0;
  background: transparent;
}
.account-trading-view .account-trading-form footer p {
  font-size: 11px;
}
.account-trading-view .account-trading-form.has-unsaved-changes footer {
  border-color: rgba(191, 150, 65, .42);
  background: linear-gradient(90deg, rgba(91, 67, 23, .09), transparent 55%);
}

@media (max-width: 1120px) {
  .account-trading-view .account-trading-form {
    grid-template-columns: 1fr;
  }
  .account-trading-view .account-order-card {
    border-right: 0;
    border-bottom: 1px solid #2b2c31;
  }
}

@media (min-width: 1500px) {
  .account-trading-view.account-console-view {
    padding-right: 48px;
    padding-left: 48px;
  }
}

@media (max-width: 720px) {
  .account-page-content:has(#accountTradingView:not([hidden])) {
    overflow: hidden;
  }
  .account-trading-view .account-binance-form {
    padding: 14px 0;
  }
  .account-trading-view .account-trading-heading h2 {
    font-size: 27px;
  }
  .account-trading-view .account-futures-balance {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }
  .account-trading-view .account-futures-balance > span {
    min-width: 0;
    flex: 1 1 0;
    text-align: left;
  }
  .account-trading-view .account-futures-balance strong {
    font-size: 11px;
  }
  .account-trading-view .account-futures-balance .account-balance-privacy {
    flex: 0 0 28px;
  }
  .account-trading-view .account-card-heading,
  .account-trading-view .account-position-summary,
  .account-trading-view .account-risk-summary {
    padding-right: 0;
    padding-left: 0;
  }
  .account-trading-view .account-trading-control {
    padding: 16px 0;
  }
  .account-trading-view .account-card-heading {
    min-height: 68px;
    padding: 0;
  }
  .account-trading-view .account-card-heading h3 {
    font-size: 16px;
  }
  .account-trading-view .account-trading-control {
    min-height: 0;
  }
  .account-trading-view .account-protection-row {
    min-height: 104px;
    grid-template-columns: minmax(0, 1fr) 126px;
  }
  .account-trading-view .account-protection-main {
    padding-right: 12px;
  }
  .account-trading-view .account-protection-estimate {
    padding: 0 10px;
  }
  .account-trading-view .account-protection-main {
    padding-left: 0;
  }
  .account-trading-view .account-trading-form footer {
    padding: 13px 0;
  }
}
