:root {
  color-scheme: dark;
  --bg: #020811;
  --surface: #07131f;
  --surface-2: #0b1a28;
  --field: #040c14;
  --line: #183047;
  --text: #f4f8fb;
  --muted: #8fa2b5;
  --blue: #079cff;
  --teal: #02c7d9;
  --green: #5ee80b;
  --amber: #f5bd62;
  --red: #ff7474;
  --violet: #a891ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% 10%, rgba(0, 126, 255, 0.12), transparent 28%),
    radial-gradient(circle at 5% 90%, rgba(94, 232, 11, 0.06), transparent 24%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body.auth-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.public-site {
  min-height: 100vh;
  overflow: hidden;
  background: #020811;
}

.public-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  width: min(1440px, calc(100% - 64px));
  min-height: 104px;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  transform: translateX(-50%);
}

.public-brand {
  display: block;
  width: 286px;
}

.public-brand img,
.public-footer img {
  display: block;
  width: 100%;
  height: auto;
}

.public-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.public-nav a,
.public-footer button {
  color: #d9e4ed;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.public-nav a:hover {
  color: var(--green);
}

.public-actions,
.hero-actions,
.auth-dialog-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.public-login-link,
.public-footer button {
  min-height: 40px;
  border-color: transparent;
  background: transparent;
}

.public-cta,
.public-secondary {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 800;
  text-decoration: none;
}

.public-cta {
  border-color: transparent;
  background: linear-gradient(100deg, #55df08 0%, #21c935 44%, #087cff 100%);
  color: #02080d;
  box-shadow: 0 10px 30px rgba(28, 163, 109, 0.3);
}

.public-cta:hover {
  border-color: transparent;
  background: linear-gradient(100deg, #66ef10 0%, #23d441 42%, #1592ff 100%);
  color: #02080d;
  transform: translateY(-1px);
}

.public-cta.compact {
  min-height: 44px;
  border-radius: 999px;
  padding: 0 23px;
}

.hero-actions .public-cta,
.hero-actions .public-secondary,
.pricing-panel .public-cta,
.auth-dialog-actions .public-cta,
.auth-dialog-actions .public-secondary {
  border-radius: 8px;
}

.public-secondary {
  border: 1px solid #47718a;
  background: rgba(3, 14, 24, 0.58);
  color: var(--text);
}

.public-secondary:hover {
  border-color: var(--blue);
  color: #fff;
}

.public-hero {
  position: relative;
  min-height: min(780px, 100vh);
  display: flex;
  align-items: center;
  padding: 132px max(32px, calc((100vw - 1440px) / 2)) 112px;
  overflow: hidden;
  border-bottom: 1px solid #12304a;
  background: #010711;
}

.hero-tablet-art {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: relative;
  z-index: 4;
  width: min(580px, 46%);
}

.hero-kicker,
.section-label,
.public-section-heading > span,
.auth-dialog-panel > span {
  display: inline-block;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-kicker {
  margin-bottom: 22px;
  border: 1px solid rgba(94, 232, 11, 0.35);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(94, 232, 11, 0.06);
}

.hero-kicker b {
  color: var(--green);
}

.hero-kicker em {
  color: var(--blue);
  font-style: normal;
}

.hero-content h1 {
  max-width: 650px;
  font-size: 74px;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-content h1 span {
  color: var(--green);
}

.hero-content > p {
  max-width: 520px;
  margin-top: 24px;
  color: #c4d1dc;
  font-size: 19px;
  line-height: 1.55;
}

.hero-content > p strong {
  color: var(--green);
}

.hero-content > p em {
  color: var(--blue);
  font-style: normal;
  font-weight: 800;
}

.hero-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 560px;
  margin-top: 24px;
}

.hero-benefits > span {
  min-height: 56px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  color: #e2edf5;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.hero-benefits i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #1c4059;
  border-radius: 7px;
  background: rgba(6, 22, 35, 0.88);
  color: var(--green);
  font-style: normal;
  font-size: 17px;
}

.hero-actions {
  margin-top: 30px;
}

.hero-trust {
  margin-top: 19px;
  color: #a9bac8;
  font-size: 14px;
}

.hero-trust span {
  margin-right: 8px;
  color: var(--green);
}

.preview-top,
.chart-heading,
.preview-feed span {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-top {
  padding-bottom: 18px;
  border-bottom: 1px solid #173049;
}

.preview-top > span {
  color: var(--green);
  font-size: 12px;
}

.preview-live-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(94, 232, 11, 0.8);
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.preview-metrics > div {
  min-height: 102px;
  display: grid;
  align-content: center;
  padding: 14px;
  border: 1px solid #173049;
  border-radius: 6px;
  background: #081724;
}

.preview-metrics span,
.preview-metrics small,
.preview-feed small {
  color: #7f95a9;
  font-size: 11px;
}

.preview-metrics strong {
  margin: 5px 0;
  color: #fff;
  font-size: 25px;
}

.preview-body {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(180px, 0.8fr);
  gap: 10px;
  margin-top: 10px;
}

.preview-chart,
.preview-feed {
  min-height: 235px;
  padding: 16px;
  border: 1px solid #173049;
  border-radius: 6px;
  background: #071521;
}

.chart-heading span {
  color: var(--blue);
  font-size: 11px;
}

.chart-bars {
  height: 165px;
  display: flex;
  align-items: end;
  gap: 8px;
  margin-top: 24px;
  border-bottom: 1px solid #24445d;
}

.chart-bars i {
  flex: 1;
  min-width: 8px;
  border-radius: 2px 2px 0 0;
  background: var(--blue);
}

.chart-bars i:nth-child(even) {
  background: var(--green);
}

.preview-feed {
  display: grid;
  align-content: start;
  gap: 15px;
}

.preview-feed > strong {
  margin-bottom: 2px;
}

.preview-feed span {
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid #142b40;
  font-size: 12px;
}

.preview-feed em {
  color: var(--green);
  font-style: normal;
}

.public-feature-strip {
  position: relative;
  z-index: 5;
  width: min(1440px, calc(100% - 64px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: -48px auto 0;
  border: 1px solid #183750;
  border-radius: 8px;
  background: #06111d;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.4);
}

.public-feature-strip article {
  min-height: 120px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border-right: 1px solid #183750;
}

.public-feature-strip article:last-child {
  border-right: 0;
}

.feature-symbol {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border: 1px solid #1b455d;
  border-radius: 6px;
  color: var(--green);
  background: #081b28;
  font-size: 22px;
}

.public-feature-strip strong {
  display: block;
  margin-bottom: 5px;
}

.public-feature-strip p,
.workflow-grid p,
.connection-copy p,
.connection-copy li,
.pricing-panel p,
.public-section-heading p {
  color: #91a6b8;
  font-size: 14px;
  line-height: 1.55;
}

.public-section {
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
  padding: 104px 0;
}

.public-section-heading {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.public-section-heading h2,
.connection-copy h2 {
  margin: 10px 0 15px;
  font-size: 40px;
  line-height: 1.1;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #1b3a52;
  border-bottom: 1px solid #1b3a52;
}

.workflow-grid article {
  min-height: 225px;
  padding: 28px;
  border-right: 1px solid #1b3a52;
}

.workflow-grid article:last-child {
  border-right: 0;
}

.workflow-grid span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.workflow-grid strong {
  display: block;
  margin: 32px 0 10px;
  font-size: 18px;
}

.connection-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(560px, 1.1fr);
  align-items: center;
  gap: 70px;
  border-top: 1px solid #112a3f;
}

.connection-copy {
  max-width: 580px;
}

.connection-copy ul {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.connection-copy li {
  position: relative;
  padding-left: 25px;
}

.connection-copy li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 900;
}

.connection-flow {
  min-height: 260px;
  display: grid;
  grid-template-columns: 1fr 70px 130px 70px 1fr;
  align-items: center;
}

.connection-node {
  min-height: 130px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  border: 1px solid #1e435e;
  border-radius: 8px;
  background: #061521;
}

.connection-node > span {
  color: var(--blue);
  font-size: 32px;
}

.connection-node small {
  color: #89a0b3;
}

.connection-core {
  width: 130px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(94, 232, 11, 0.34);
  border-radius: 50%;
  background: #06141e;
  box-shadow: 0 0 42px rgba(7, 156, 255, 0.18);
}

.connection-core img {
  width: 105px;
  height: auto;
}

.connection-line {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.connection-line i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.connection-line.blue i {
  background: var(--blue);
}

.pricing-section {
  padding-top: 50px;
}

.pricing-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 34px;
  border: 1px solid #21435d;
  border-radius: 8px;
  background: #071521;
}

.pricing-panel > div {
  max-width: 760px;
}

.pricing-panel span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.pricing-panel strong {
  display: block;
  margin: 7px 0;
  font-size: 24px;
}

.public-footer {
  width: min(1440px, calc(100% - 64px));
  min-height: 130px;
  display: grid;
  grid-template-columns: 230px 1fr auto;
  align-items: center;
  gap: 30px;
  margin: 0 auto;
  border-top: 1px solid #17334a;
}

.public-footer p {
  color: #8195a7;
  font-size: 13px;
}

.auth-dialog {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-dialog-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: rgba(0, 5, 10, 0.84);
  backdrop-filter: blur(12px);
}

.auth-dialog-panel {
  position: relative;
  z-index: 1;
  width: min(470px, 100%);
  padding: 34px;
  border: 1px solid #24465f;
  border-radius: 8px;
  background: #06121d;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.66);
}

.auth-dialog-panel > img {
  width: 230px;
  height: auto;
  margin-bottom: 30px;
}

.auth-dialog-panel h2 {
  margin: 8px 0 8px;
  font-size: 28px;
}

.auth-dialog-panel > p:not(.helper-text) {
  margin-bottom: 24px;
  color: #91a6b8;
}

.auth-dialog-panel label {
  color: #c9d5de;
}

.auth-dialog-actions {
  margin-top: 6px;
}

.auth-dialog-actions > * {
  flex: 1;
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: #8fa2b5;
  font-size: 25px;
}

.account-session {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.account-session span,
.account-session p {
  color: var(--muted);
  font-size: 13px;
}

.account-session strong {
  display: block;
  margin: 5px 0;
  font-size: 20px;
}

.shell {
  width: min(1540px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
}

.panel,
.trade-message {
  border: 1px solid var(--line);
  background: rgba(7, 19, 31, 0.96);
}

.workspace-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  padding: 4px 2px 16px;
  border-bottom: 1px solid rgba(24, 48, 71, 0.72);
}

.workspace-bar > div:first-child {
  display: grid;
  gap: 3px;
}

.workspace-bar > div:first-child > span {
  color: var(--muted);
  font-size: 12px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 72px;
  padding: 4px 2px 18px;
  border-bottom: 1px solid var(--line);
}

.brand-logo {
  display: block;
  width: 100%;
  max-width: 198px;
  height: auto;
}

.section-title p,
label,
.helper-text,
.signal-item span,
.parser-debug span {
  color: var(--muted);
}

.status-strip,
.button-row,
.toggles,
.panel-head {
  display: flex;
  gap: 10px;
}

.status-strip {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.status {
  min-width: 92px;
  min-height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #071521;
  font-size: 10px;
  text-transform: uppercase;
  white-space: nowrap;
}

.status strong {
  color: var(--text);
  font-size: 15px;
}

.status.live,
.pill.success,
.tag.filled {
  color: var(--green);
  border-color: rgba(94, 232, 11, 0.3);
  background: rgba(94, 232, 11, 0.08);
}

.tag.rejected {
  color: #250606;
  border-color: transparent;
  background: var(--red);
}

.tag.waiting {
  color: #231705;
  border-color: transparent;
  background: var(--amber);
}

.section-block {
  margin-top: 0;
}

.app-layout {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  gap: 0;
  align-items: start;
  min-height: calc(100vh - 40px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 13, 22, 0.97);
  box-shadow: var(--shadow);
}

.side-menu {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 42px);
  padding: 16px 13px;
  border-right: 1px solid var(--line);
  background: #030b14;
}

.menu-list {
  display: grid;
  gap: 5px;
  margin-top: 16px;
}

.menu-item {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  text-align: left;
  padding: 8px 10px;
  border-color: transparent;
  border-radius: 8px;
  background: transparent;
  color: #a8b6c5;
  font-size: 13px;
  font-weight: 650;
}

.menu-item:hover {
  color: var(--text);
  background: rgba(7, 156, 255, 0.08);
}

.menu-item.active {
  color: var(--text);
  border-color: rgba(94, 232, 11, 0.16);
  background: linear-gradient(90deg, rgba(94, 232, 11, 0.13), rgba(7, 156, 255, 0.04));
  box-shadow: inset 3px 0 0 var(--green);
}

.menu-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 16px;
  line-height: 1;
}

.menu-item.active .menu-icon {
  color: var(--green);
}

.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 14px 10px 4px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(94, 232, 11, 0.8);
}

.page-stage {
  min-width: 0;
  padding: 20px 22px 26px;
}

.app-page {
  display: none;
  min-height: calc(100vh - 124px);
}

.app-page.active {
  display: block;
}

.section-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding: 16px 2px 10px;
}

.section-title > span:first-child {
  width: 30px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(7, 156, 255, 0.38);
  border-radius: 6px;
  color: var(--blue);
  font-weight: 900;
  background: rgba(7, 156, 255, 0.1);
}

.section-title h2 {
  font-size: 20px;
  line-height: 1.2;
}

.section-title p {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.4;
}

.panel {
  border-radius: 6px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.panel + .panel,
.trade-message {
  margin-top: 10px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 2px 14px;
}

.dashboard-heading h2 {
  font-size: 24px;
}

.dashboard-heading p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
}

.dashboard-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(94, 232, 11, 0.8);
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-metrics > section,
.dashboard-performance,
.dashboard-recent {
  border: 1px solid #18344a;
  border-radius: 7px;
  background: #071521;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.dashboard-metrics > section {
  min-height: 112px;
  display: grid;
  align-content: center;
  padding: 15px;
}

.dashboard-metrics span,
.dashboard-metrics small,
.dashboard-panel-head span {
  color: #8195a8;
  font-size: 11px;
}

.dashboard-metrics > section > span {
  text-transform: uppercase;
}

.dashboard-metrics strong {
  margin: 6px 0 3px;
  color: #fff;
  font-size: 25px;
}

.dashboard-metrics strong.positive {
  color: var(--green);
}

.dashboard-metrics strong.negative {
  color: var(--red);
}

.dashboard-metrics strong.neutral {
  color: #9aafbf;
}

.dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(250px, 0.75fr);
  gap: 10px;
  margin-top: 10px;
}

.dashboard-performance,
.dashboard-recent {
  min-height: 350px;
  padding: 16px;
}

.dashboard-performance {
  position: relative;
  z-index: 2;
  overflow: visible;
}

.dashboard-recent {
  position: relative;
  z-index: 1;
}

.dashboard-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}

.dashboard-panel-head > div {
  display: grid;
  gap: 4px;
}

.dashboard-panel-head strong {
  font-size: 14px;
}

.dashboard-period {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid #1a3b52;
  border-radius: 5px;
  background: #06111c;
}

.dashboard-chart-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dashboard-chart-controls button {
  width: 30px;
  height: 30px;
  min-height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #1a3b52;
  border-radius: 5px;
  background: #06111c;
  color: #c4d4df;
  font-size: 22px;
  line-height: 1;
}

.dashboard-chart-controls button:hover {
  border-color: var(--blue);
  color: var(--green);
}

.dashboard-chart-controls .dashboard-period {
  justify-content: center;
}

.dashboard-chart {
  position: relative;
  z-index: 2;
  height: 245px;
  overflow: visible;
  border-left: 1px solid #1a3549;
  border-bottom: 1px solid #1a3549;
}

.dashboard-chart:has(button:hover),
.dashboard-chart:has(button:focus) {
  z-index: 20;
}

.dashboard-chart-grid {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(35, 72, 98, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 72, 98, 0.55) 1px, transparent 1px);
  background-size: 25% 25%;
}

.dashboard-chart-bars {
  position: absolute;
  inset: 18px 22px 28px 34px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(5px, 1vw, 13px);
}

.dashboard-activity-bars {
  position: absolute;
  inset: 18px 18px 0;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: clamp(5px, 1vw, 13px);
}

.dashboard-activity-bars i {
  width: min(34px, 6%);
  height: 70%;
  min-width: 6px;
  border-radius: 3px 3px 0 0;
  background: var(--blue);
  box-shadow: 0 0 16px rgba(7, 156, 255, 0.18);
}

.dashboard-activity-bars i.accepted {
  height: 100%;
  background: var(--green);
  box-shadow: 0 0 16px rgba(94, 232, 11, 0.2);
}

.dashboard-checklist-pies {
  position: absolute;
  inset: 20px 20px 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(105px, 1fr));
  align-items: center;
  gap: 14px;
}

.dashboard-checklist-item {
  position: relative;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #dce8f0;
}

.dashboard-checklist-item:focus {
  outline: none;
}

.dashboard-checklist-item > strong {
  overflow: hidden;
  width: 100%;
  font-size: 11px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-checklist-item > small {
  color: #7890a3;
  font-size: 9px;
}

.dashboard-checklist-pie {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0 var(--win-rate), var(--red) var(--win-rate) 100%);
  box-shadow: 0 0 20px rgba(7, 156, 255, 0.1);
}

.dashboard-checklist-pie.empty {
  background: #496071;
}

.dashboard-checklist-pie::before {
  content: "";
  grid-area: 1 / 1;
  width: 64px;
  height: 64px;
  border: 1px solid #19384d;
  border-radius: 50%;
  background: #06131f;
}

.dashboard-checklist-pie > span {
  z-index: 1;
  grid-area: 1 / 1;
  display: grid;
  text-align: center;
}

.dashboard-checklist-pie strong {
  color: #fff;
  font-size: 18px;
}

.dashboard-checklist-pie small {
  color: #7890a3;
  font-size: 8px;
}

.dashboard-checklist-tooltip {
  position: absolute;
  z-index: 9;
  top: -5px;
  left: 50%;
  width: min(238px, calc(100vw - 36px));
  padding: 10px;
  border: 1px solid #285a78;
  border-radius: 6px;
  background: rgba(3, 13, 22, 0.98);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42);
  color: #e6f0f7;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.dashboard-checklist-item:hover .dashboard-checklist-tooltip,
.dashboard-checklist-item:focus .dashboard-checklist-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.dashboard-checklist-item.tooltip-left .dashboard-checklist-tooltip {
  left: 0;
  transform: translate(0, 4px);
}

.dashboard-checklist-item.tooltip-left:hover .dashboard-checklist-tooltip,
.dashboard-checklist-item.tooltip-left:focus .dashboard-checklist-tooltip {
  transform: translate(0, 0);
}

.dashboard-checklist-item.tooltip-right .dashboard-checklist-tooltip {
  right: 0;
  left: auto;
  transform: translate(0, 4px);
}

.dashboard-checklist-item.tooltip-right:hover .dashboard-checklist-tooltip,
.dashboard-checklist-item.tooltip-right:focus .dashboard-checklist-tooltip {
  transform: translate(0, 0);
}

.dashboard-checklist-tooltip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #17384d;
}

.dashboard-checklist-tooltip-head strong {
  color: #fff;
  font-size: 13px;
}

.dashboard-checklist-tooltip-head b {
  font-size: 12px;
}

.dashboard-checklist-tooltip-head b.positive {
  color: var(--green);
}

.dashboard-checklist-tooltip-head b.negative {
  color: var(--red);
}

.dashboard-checklist-tooltip-head b.neutral {
  color: #9aafbf;
}

.dashboard-checklist-tooltip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  padding: 9px 0;
}

.dashboard-checklist-tooltip-grid > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.dashboard-checklist-tooltip-grid small,
.dashboard-checklist-tooltip-note {
  color: #7890a3;
  font-size: 9px;
}

.dashboard-checklist-tooltip-grid strong {
  color: #dce8f0;
  font-size: 10px;
}

.dashboard-checklist-tooltip-grid strong.positive {
  color: var(--green);
}

.dashboard-checklist-tooltip-grid strong.negative {
  color: var(--red);
}

.dashboard-checklist-tooltip-note {
  display: block;
  padding-top: 7px;
  border-top: 1px solid #17384d;
  line-height: 1.35;
}

.dashboard-chart-zero {
  position: absolute;
  z-index: 1;
  top: calc(50% - 5px);
  right: 22px;
  left: 34px;
  border-top: 1px solid #547086;
}

.dashboard-chart-axis,
.dashboard-chart-zero-label {
  position: absolute;
  z-index: 2;
  color: #8195a8;
  font-size: 11px;
  font-weight: 400;
  pointer-events: none;
}

.dashboard-chart-axis-y {
  top: calc(50% - 5px);
  left: 7px;
  transform: translate(-42%, -50%) rotate(-90deg);
  white-space: nowrap;
}

.dashboard-chart-axis-x {
  right: 22px;
  bottom: 7px;
  left: 34px;
  text-align: center;
}

.dashboard-chart-zero-label {
  top: calc(50% - 22px);
  right: 25px;
}

.dashboard-pnl-bar-slot {
  position: relative;
  flex: 1;
  min-width: 6px;
  max-width: 34px;
}

.dashboard-trade-tooltip {
  position: absolute;
  z-index: 8;
  top: -10px;
  left: 50%;
  width: min(248px, calc(100vw - 36px));
  padding: 10px;
  border: 1px solid #285a78;
  border-radius: 6px;
  background: rgba(3, 13, 22, 0.98);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42), 0 0 18px rgba(7, 156, 255, 0.1);
  color: #e6f0f7;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.dashboard-pnl-bar-slot:hover,
.dashboard-pnl-bar-slot:focus {
  z-index: 7;
  outline: none;
}

.dashboard-pnl-bar-slot:hover .dashboard-trade-tooltip,
.dashboard-pnl-bar-slot:focus .dashboard-trade-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.dashboard-pnl-bar-slot:first-child .dashboard-trade-tooltip {
  left: 0;
  transform: translate(0, 4px);
}

.dashboard-pnl-bar-slot:first-child:hover .dashboard-trade-tooltip,
.dashboard-pnl-bar-slot:first-child:focus .dashboard-trade-tooltip {
  transform: translate(0, 0);
}

.dashboard-pnl-bar-slot:last-child .dashboard-trade-tooltip {
  right: 0;
  left: auto;
  transform: translate(0, 4px);
}

.dashboard-pnl-bar-slot:last-child:hover .dashboard-trade-tooltip,
.dashboard-pnl-bar-slot:last-child:focus .dashboard-trade-tooltip {
  transform: translate(0, 0);
}

.dashboard-trade-tooltip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #17384d;
}

.dashboard-trade-tooltip-head > span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dashboard-trade-tooltip-head strong {
  color: #fff;
  font-size: 14px;
}

.dashboard-trade-tooltip-head small {
  padding: 2px 5px;
  border: 1px solid rgba(94, 232, 11, 0.35);
  border-radius: 4px;
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
}

.dashboard-trade-tooltip-head small.sell {
  border-color: rgba(255, 98, 98, 0.35);
  color: var(--red);
}

.dashboard-trade-tooltip-head b {
  font-size: 15px;
}

.dashboard-trade-tooltip-head b.positive {
  color: var(--green);
}

.dashboard-trade-tooltip-head b.negative {
  color: var(--red);
}

.dashboard-trade-tooltip-head b.neutral {
  color: #9aafbf;
}

.dashboard-trade-tooltip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
  padding: 9px 0 8px;
}

.dashboard-trade-tooltip-grid > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.dashboard-trade-tooltip-grid small,
.dashboard-trade-tooltip-time {
  color: #7890a3;
  font-size: 9px;
}

.dashboard-trade-tooltip-grid strong {
  overflow: hidden;
  color: #dce8f0;
  font-size: 10px;
  text-overflow: ellipsis;
  text-transform: capitalize;
  white-space: nowrap;
}

.dashboard-trade-tooltip-time {
  display: block;
  padding-top: 7px;
  border-top: 1px solid #17384d;
}

.dashboard-pnl-bar-slot i {
  position: absolute;
  right: 0;
  left: 0;
  min-height: 2px;
}

.dashboard-pnl-bar-slot i.positive {
  bottom: 50%;
  border-radius: 3px 3px 0 0;
  background: var(--green);
  box-shadow: 0 0 16px rgba(94, 232, 11, 0.2);
}

.dashboard-pnl-bar-slot i.negative {
  top: 50%;
  border-radius: 0 0 3px 3px;
  background: var(--red);
  box-shadow: 0 0 16px rgba(255, 98, 98, 0.2);
}

.dashboard-pnl-bar-slot i.neutral {
  top: calc(50% - 1px);
  background: #9aafbf;
}

.dashboard-chart-empty,
.dashboard-trade-empty {
  min-height: 100%;
  display: grid;
  place-items: center;
  color: #667e91;
  font-size: 12px;
}

.dashboard-profit-chart {
  position: absolute;
  inset: 8px 22px 28px 34px;
  width: calc(100% - 56px);
  height: calc(100% - 36px);
  overflow: visible;
}

.dashboard-profit-points {
  position: absolute;
  z-index: 4;
  inset: 8px 22px 28px 34px;
  pointer-events: none;
}

.dashboard-profit-point {
  position: absolute;
  top: var(--point-y);
  left: var(--point-x);
  width: 12px;
  height: 12px;
  min-height: 12px;
  padding: 0;
  border: 2px solid #06131f;
  border-radius: 50%;
  background: var(--point-color);
  box-shadow: 0 0 7px color-mix(in srgb, var(--point-color) 62%, transparent);
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.dashboard-profit-point:hover,
.dashboard-profit-point:focus {
  z-index: 9;
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

.dashboard-profit-point .dashboard-trade-tooltip {
  top: auto;
  bottom: 18px;
}

.dashboard-profit-point.tooltip-below .dashboard-trade-tooltip {
  top: 18px;
  bottom: auto;
}

.dashboard-profit-point:hover .dashboard-trade-tooltip,
.dashboard-profit-point:focus .dashboard-trade-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.dashboard-profit-point.tooltip-left .dashboard-trade-tooltip {
  left: -4px;
  transform: translate(0, 4px);
}

.dashboard-profit-point.tooltip-left:hover .dashboard-trade-tooltip,
.dashboard-profit-point.tooltip-left:focus .dashboard-trade-tooltip {
  transform: translate(0, 0);
}

.dashboard-profit-point.tooltip-right .dashboard-trade-tooltip {
  right: -4px;
  left: auto;
  transform: translate(0, 4px);
}

.dashboard-profit-point.tooltip-right:hover .dashboard-trade-tooltip,
.dashboard-profit-point.tooltip-right:focus .dashboard-trade-tooltip {
  transform: translate(0, 0);
}

.dashboard-profit-zero {
  position: absolute;
  z-index: 2;
  top: var(--zero-top);
  right: 22px;
  left: 34px;
  border-top: 1px solid #547086;
  pointer-events: none;
}

.dashboard-profit-axis,
.dashboard-profit-zero-label {
  position: absolute;
  z-index: 3;
  color: #8195a8;
  font-size: 11px;
  font-weight: 400;
  pointer-events: none;
}

.dashboard-profit-axis-y {
  top: calc(50% - 5px);
  left: 7px;
  transform: translate(-42%, -50%) rotate(-90deg);
  white-space: nowrap;
}

.dashboard-profit-axis-x {
  right: 22px;
  bottom: 7px;
  left: 34px;
  text-align: center;
}

.dashboard-profit-zero-label {
  top: calc(var(--zero-top) - 17px);
  right: 25px;
}

.dashboard-distribution-bars {
  position: absolute;
  inset: 18px 22px 34px 40px;
  display: grid;
  grid-template-columns: repeat(7, minmax(30px, 1fr));
  align-items: end;
  gap: clamp(6px, 1.1vw, 15px);
}

.dashboard-distribution-slot {
  position: relative;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 0 0 18px;
  border: 0;
  background: transparent;
  color: #8195a8;
}

.dashboard-distribution-slot > i {
  width: min(38px, 72%);
  min-height: 2px;
  border-radius: 3px 3px 0 0;
}

.dashboard-distribution-slot > i.positive {
  background: var(--green);
  box-shadow: 0 0 16px rgba(94, 232, 11, 0.2);
}

.dashboard-distribution-slot > i.negative {
  background: var(--red);
  box-shadow: 0 0 16px rgba(255, 98, 98, 0.2);
}

.dashboard-distribution-slot > i.neutral {
  background: #9aafbf;
}

.dashboard-distribution-slot > small {
  position: absolute;
  right: -3px;
  bottom: -2px;
  left: -3px;
  overflow: hidden;
  font-size: 9px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-distribution-count {
  position: absolute;
  z-index: 2;
  bottom: calc(18px + var(--bar-height, 0%));
  color: #d8e4ec;
  font-size: 10px;
  font-weight: 750;
  transform: translateY(-4px);
}

.dashboard-distribution-slot:focus {
  outline: none;
}

.dashboard-distribution-tooltip {
  position: absolute;
  z-index: 9;
  top: 3px;
  left: 50%;
  width: min(230px, calc(100vw - 36px));
  padding: 10px;
  border: 1px solid #285a78;
  border-radius: 6px;
  background: rgba(3, 13, 22, 0.98);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42);
  color: #e6f0f7;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.dashboard-distribution-slot:hover .dashboard-distribution-tooltip,
.dashboard-distribution-slot:focus .dashboard-distribution-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.dashboard-distribution-slot.tooltip-left .dashboard-distribution-tooltip {
  left: 0;
  transform: translate(0, 4px);
}

.dashboard-distribution-slot.tooltip-left:hover .dashboard-distribution-tooltip,
.dashboard-distribution-slot.tooltip-left:focus .dashboard-distribution-tooltip {
  transform: translate(0, 0);
}

.dashboard-distribution-slot.tooltip-right .dashboard-distribution-tooltip {
  right: 0;
  left: auto;
  transform: translate(0, 4px);
}

.dashboard-distribution-slot.tooltip-right:hover .dashboard-distribution-tooltip,
.dashboard-distribution-slot.tooltip-right:focus .dashboard-distribution-tooltip {
  transform: translate(0, 0);
}

.dashboard-distribution-tooltip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #17384d;
}

.dashboard-distribution-tooltip-head strong {
  color: #fff;
  font-size: 13px;
}

.dashboard-distribution-tooltip-head b {
  font-size: 11px;
}

.dashboard-distribution-tooltip-head b.positive {
  color: var(--green);
}

.dashboard-distribution-tooltip-head b.negative {
  color: var(--red);
}

.dashboard-distribution-tooltip-head b.neutral {
  color: #9aafbf;
}

.dashboard-distribution-tooltip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  padding-top: 9px;
}

.dashboard-distribution-tooltip-grid > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.dashboard-distribution-tooltip-grid small {
  color: #7890a3;
  font-size: 9px;
}

.dashboard-distribution-tooltip-grid strong {
  overflow: hidden;
  color: #dce8f0;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-distribution-tooltip-grid strong.positive {
  color: var(--green);
}

.dashboard-distribution-tooltip-grid strong.negative {
  color: var(--red);
}

.dashboard-distribution-axis {
  position: absolute;
  z-index: 3;
  color: #8195a8;
  font-size: 11px;
  pointer-events: none;
}

.dashboard-distribution-axis-y {
  top: calc(50% - 5px);
  left: 7px;
  transform: translate(-42%, -50%) rotate(-90deg);
  white-space: nowrap;
}

.dashboard-distribution-axis-x {
  right: 22px;
  bottom: 7px;
  left: 40px;
  text-align: center;
}

.dashboard-drawdown-chart {
  position: absolute;
  inset: 8px 22px 28px 40px;
  width: calc(100% - 62px);
  height: calc(100% - 36px);
  overflow: visible;
}

.dashboard-drawdown-points {
  position: absolute;
  z-index: 4;
  inset: 8px 22px 28px 40px;
  pointer-events: none;
}

.dashboard-drawdown-point {
  position: absolute;
  top: var(--point-y);
  left: var(--point-x);
  width: 12px;
  height: 12px;
  min-height: 12px;
  padding: 0;
  border: 2px solid #06131f;
  border-radius: 50%;
  background: var(--point-color);
  box-shadow: 0 0 7px color-mix(in srgb, var(--point-color) 62%, transparent);
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.dashboard-drawdown-point:hover,
.dashboard-drawdown-point:focus {
  z-index: 9;
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

.dashboard-drawdown-tooltip {
  position: absolute;
  z-index: 10;
  bottom: 18px;
  left: 50%;
  width: min(248px, calc(100vw - 36px));
  padding: 10px;
  border: 1px solid #285a78;
  border-radius: 6px;
  background: rgba(3, 13, 22, 0.98);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42);
  color: #e6f0f7;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.dashboard-drawdown-point.tooltip-below .dashboard-drawdown-tooltip {
  top: 18px;
  bottom: auto;
}

.dashboard-drawdown-point:hover .dashboard-drawdown-tooltip,
.dashboard-drawdown-point:focus .dashboard-drawdown-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.dashboard-drawdown-point.tooltip-left .dashboard-drawdown-tooltip {
  left: -4px;
  transform: translate(0, 4px);
}

.dashboard-drawdown-point.tooltip-left:hover .dashboard-drawdown-tooltip,
.dashboard-drawdown-point.tooltip-left:focus .dashboard-drawdown-tooltip {
  transform: translate(0, 0);
}

.dashboard-drawdown-point.tooltip-right .dashboard-drawdown-tooltip {
  right: -4px;
  left: auto;
  transform: translate(0, 4px);
}

.dashboard-drawdown-point.tooltip-right:hover .dashboard-drawdown-tooltip,
.dashboard-drawdown-point.tooltip-right:focus .dashboard-drawdown-tooltip {
  transform: translate(0, 0);
}

.dashboard-drawdown-tooltip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #17384d;
}

.dashboard-drawdown-tooltip-head > span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dashboard-drawdown-tooltip-head strong {
  color: #fff;
  font-size: 14px;
}

.dashboard-drawdown-tooltip-head small {
  padding: 2px 5px;
  border: 1px solid rgba(94, 232, 11, 0.35);
  border-radius: 4px;
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
}

.dashboard-drawdown-tooltip-head small.sell {
  border-color: rgba(255, 98, 98, 0.35);
  color: var(--red);
}

.dashboard-drawdown-tooltip-head b {
  font-size: 15px;
}

.dashboard-drawdown-tooltip-head b.positive {
  color: var(--green);
}

.dashboard-drawdown-tooltip-head b.negative {
  color: var(--red);
}

.dashboard-drawdown-tooltip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  padding-top: 9px;
}

.dashboard-drawdown-tooltip-grid > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.dashboard-drawdown-tooltip-grid small {
  color: #7890a3;
  font-size: 9px;
}

.dashboard-drawdown-tooltip-grid strong {
  overflow: hidden;
  color: #dce8f0;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-drawdown-tooltip-grid strong.positive {
  color: var(--green);
}

.dashboard-drawdown-tooltip-grid strong.negative {
  color: var(--red);
}

.dashboard-drawdown-tooltip-grid strong.neutral {
  color: #9aafbf;
}

.dashboard-drawdown-zero {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 22px;
  left: 40px;
  border-top: 1px solid #5ee80b;
  opacity: 0.65;
}

.dashboard-drawdown-axis,
.dashboard-drawdown-zero-label {
  position: absolute;
  z-index: 3;
  color: #8195a8;
  font-size: 11px;
  pointer-events: none;
}

.dashboard-drawdown-axis-y {
  top: calc(50% - 5px);
  left: 7px;
  transform: translate(-42%, -50%) rotate(-90deg);
  white-space: nowrap;
}

.dashboard-drawdown-axis-x {
  right: 22px;
  bottom: 7px;
  left: 40px;
  text-align: center;
}

.dashboard-drawdown-zero-label {
  top: 11px;
  left: 44px;
}

.dashboard-drawdown-summary {
  position: absolute;
  z-index: 8;
  top: 13px;
  right: 15px;
  display: grid;
  justify-items: start;
  gap: 1px;
  padding: 6px 8px;
  border: 1px solid #4a3037;
  border-radius: 5px;
  background: rgba(4, 14, 23, 0.9);
  white-space: nowrap;
}

.dashboard-drawdown-summary[hidden] {
  display: none;
}

.dashboard-drawdown-summary strong {
  color: var(--red);
  font-size: 12px;
}

.dashboard-drawdown-summary small {
  color: #9aafbf;
  font-size: 9px;
}

.dashboard-profit-total {
  position: absolute;
  top: 13px;
  right: 15px;
  padding: 5px 8px;
  border: 1px solid #1d435b;
  border-radius: 5px;
  background: rgba(4, 14, 23, 0.88);
  font-size: 14px;
  font-weight: 850;
}

.dashboard-profit-total.positive {
  color: var(--green);
}

.dashboard-profit-total.negative {
  color: var(--red);
}

.dashboard-profit-total.neutral {
  color: #9aafbf;
}

.dashboard-chart-legend {
  display: flex;
  position: relative;
  z-index: 3;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 13px;
  color: #8195a8;
  font-size: 11px;
}

.dashboard-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dashboard-chart-legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue);
}

.dashboard-chart-legend i.accepted {
  background: var(--green);
}

.dashboard-chart-legend i.profit {
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(94, 232, 11, 0.48);
}

.dashboard-chart-legend i.positive {
  background: var(--green);
}

.dashboard-chart-legend i.negative {
  background: var(--red);
}

.dashboard-trade-list {
  display: grid;
}

.dashboard-trade-row {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(72px, 1fr) minmax(48px, auto) minmax(72px, auto) minmax(62px, auto);
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #142d40;
  font-size: 12px;
}

.dashboard-trade-row span {
  color: var(--green);
  font-weight: 750;
}

.dashboard-trade-row span.sell {
  color: #ff6262;
}

.dashboard-trade-row small {
  color: #8398aa;
  text-align: right;
}

.dashboard-trade-row .dashboard-trade-lot {
  color: #b9c8d4;
  white-space: nowrap;
}

.dashboard-trade-row .dashboard-trade-pnl {
  font-weight: 750;
  white-space: nowrap;
}

.dashboard-trade-row small.positive {
  color: var(--green);
}

.dashboard-trade-row small.negative {
  color: var(--red);
}

.dashboard-trade-row small.neutral {
  color: #9aafbf;
}

.dashboard-connection-row {
  min-height: 114px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 80px 90px 80px minmax(180px, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 14px 22px;
  border: 1px solid #18344a;
  border-radius: 7px;
  background: #06131f;
}

.dashboard-connection-row > div:not(.dashboard-core) {
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 3px 10px;
}

.dashboard-connection-row strong {
  font-size: 13px;
}

.dashboard-connection-row small {
  color: #8195a8;
  font-size: 11px;
}

.dashboard-connection-icon {
  grid-row: 1 / 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #1d4964;
  border-radius: 50%;
  color: var(--blue);
  background: #081b29;
  font-size: 20px;
}

.dashboard-connection-icon.locker {
  color: var(--green);
}

.dashboard-connector {
  display: flex;
  justify-content: space-around;
}

.dashboard-connector i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.dashboard-connector.blue i {
  background: var(--blue);
}

.dashboard-core {
  width: 90px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(94, 232, 11, 0.25);
  border-radius: 50%;
  background: #071722;
}

.dashboard-core img {
  width: 72px;
  height: auto;
}

.dashboard-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 118px;
}

.dashboard-card-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--field);
  font-size: 22px;
}

.dashboard-card-icon.telegram-accent,
.dashboard-card-icon.blue-accent {
  color: var(--blue);
}

.dashboard-card-icon.green-accent {
  color: var(--green);
}

.dashboard-card span:not(.dashboard-card-icon) {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.dashboard-card strong {
  display: block;
  margin: 3px 0;
  font-size: 18px;
}

.dashboard-card p,
.flow-steps p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.flow-panel {
  margin-top: 10px;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
}

.flow-steps > div {
  min-height: 112px;
  padding: 15px;
  background: var(--field);
}

.flow-steps > div > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border: 1px solid rgba(7, 156, 255, 0.35);
  border-radius: 50%;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.flow-steps strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.panel-head {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

h3 {
  font-size: 17px;
  line-height: 1.2;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--field);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 176px;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7, 156, 255, 0.14);
}

button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  border-color: var(--blue);
}

button.primary {
  color: #061014;
  border: 0;
  background: linear-gradient(105deg, var(--green), var(--blue));
}

.button-row {
  flex-wrap: wrap;
  align-items: center;
}

.action-row button {
  min-width: 96px;
}

.connection-form,
.risk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
}

.inline-linker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
  align-items: end;
}

.compact-actions {
  grid-column: 1 / -1;
  margin-bottom: 12px;
}

.telegram-profile-bar {
  display: grid;
  grid-template-columns: minmax(260px, 520px) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 10px;
}

.tradelocker-profile-bar {
  display: grid;
  grid-template-columns: minmax(260px, 520px) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 10px;
}

.tradelocker-profile-bar label {
  margin-bottom: 0;
}

.tradelocker-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.55fr);
  gap: 10px;
  align-items: start;
}

.tradelocker-settings {
  display: grid;
  gap: 10px;
}

.tradelocker-settings .panel + .panel {
  margin-top: 0;
}

.tradelocker-summary {
  position: sticky;
  top: 20px;
}

.tradelocker-summary .trade-message {
  margin-top: 0;
  background: var(--field);
}

.telegram-profile-bar label {
  margin-bottom: 0;
}

.telegram-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 10px;
  align-items: start;
}

.telegram-settings {
  display: grid;
  gap: 10px;
}

.telegram-settings .panel + .panel {
  margin-top: 0;
}

.telegram-signal-panel {
  position: sticky;
  top: 20px;
}

.manual-route-fields {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 0 10px;
}

.manual-route-instrument {
  grid-column: 1 / -1;
}

.manual-route-actions {
  margin-bottom: 12px;
}

.hidden-routing-fields {
  display: none;
}

.connection-form.compact {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  max-width: 760px;
}

.account-panel {
  display: grid;
  gap: 2px;
}

.helper-text {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.helper-text.success {
  color: var(--green);
}

.helper-text.error {
  color: var(--red);
}

.telegram-status {
  position: sticky;
  top: 8px;
  z-index: 5;
  max-height: 112px;
  overflow: auto;
  margin: 0 0 14px;
  border: 1px solid rgba(7, 156, 255, 0.38);
  border-left: 3px solid var(--blue);
  border-radius: 5px;
  background: #071521;
  color: var(--text);
  padding: 10px 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
  overflow-wrap: anywhere;
}

.signal-feed {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  max-height: 420px;
  overflow: auto;
}

.signal-item,
.order-ticket div,
.parser-debug {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
}

.signal-item {
  padding: 12px;
  cursor: pointer;
}

.signal-item:hover {
  border-color: var(--blue);
}

.signal-item strong,
.signal-item span {
  display: block;
}

.signal-item span {
  margin-top: 4px;
  font-size: 12px;
}

.signal-item pre {
  min-height: 0;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  white-space: pre-wrap;
}

.order-ticket {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.order-ticket div {
  min-height: 82px;
  padding: 13px;
}

.order-ticket span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.order-ticket strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.parser-debug {
  display: grid;
  gap: 6px;
  padding: 12px;
}

.parser-debug span {
  font-size: 13px;
  line-height: 1.45;
}

.switch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}

.switch input {
  width: 18px;
  min-height: 18px;
}

.trade-message {
  border-radius: 8px;
  color: var(--muted);
  padding: 12px;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.trade-message.success {
  color: var(--green);
  border-color: color-mix(in srgb, var(--green) 55%, var(--line));
}

.trade-message.error {
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 55%, var(--line));
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 10px;
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.payload-panel {
  padding: 0;
  overflow: hidden;
}

.diagnostics-check {
  margin-bottom: 18px;
}

.diagnostics-check .panel-head {
  align-items: flex-start;
  justify-content: space-between;
}

.diagnostics-check .panel-head > div {
  display: grid;
  gap: 5px;
}

.diagnostics-check .panel-head p {
  margin: 0;
  color: var(--muted);
}

.diagnostics-check pre {
  margin-top: 14px;
  border: 1px solid var(--line);
}

.payload-panel .panel-head {
  padding: 16px 16px 0;
}

pre {
  min-height: 230px;
  max-height: 560px;
  overflow: auto;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: #080d12;
  color: #c9f4ff;
  padding: 16px;
  line-height: 1.5;
}

@media (max-width: 1220px) {
  .public-header {
    grid-template-columns: 250px 1fr auto;
  }

  .public-brand {
    width: 236px;
  }

  .public-nav {
    gap: 20px;
  }

  .hero-content {
    width: min(560px, 50%);
  }

  .hero-content h1 {
    font-size: 64px;
  }

  .hero-tablet-art {
    object-position: 58% center;
  }

  .connection-section {
    grid-template-columns: 1fr;
  }

  .connection-copy {
    max-width: 760px;
  }
}

@media (max-width: 980px) {
  .public-header {
    width: min(100% - 40px, 1440px);
    grid-template-columns: 230px 1fr;
  }

  .public-nav {
    display: none;
  }

  .public-actions {
    justify-content: flex-end;
  }

  .public-hero {
    min-height: 760px;
    align-items: flex-start;
    padding: 170px 32px 110px;
  }

  .hero-content {
    width: min(650px, 75%);
  }

  .hero-tablet-art {
    object-position: 66% center;
    opacity: 0.48;
  }

  .hero-content h1 {
    font-size: 58px;
  }

  .hero-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 500px;
  }

  .public-feature-strip,
  .workflow-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .public-feature-strip article:nth-child(2) {
    border-right: 0;
  }

  .public-feature-strip article:nth-child(-n + 2) {
    border-bottom: 1px solid #183750;
  }

  .workflow-grid article:nth-child(2) {
    border-right: 0;
  }

  .workflow-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid #1b3a52;
  }

  .connection-flow {
    grid-template-columns: 1fr 48px 110px 48px 1fr;
  }

  .connection-core {
    width: 110px;
  }

  .connection-core img {
    width: 90px;
  }
}

@media (max-width: 680px) {
  .public-header {
    min-height: 82px;
    width: calc(100% - 28px);
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .public-brand {
    width: min(190px, 50vw);
  }

  .public-login-link {
    display: none;
  }

  .public-cta.compact {
    min-height: 40px;
    padding: 0 14px;
    font-size: 12px;
  }

  .public-hero {
    min-height: 720px;
    padding: 132px 20px 96px;
  }

  .hero-content {
    width: 100%;
  }

  .hero-content h1 {
    max-width: 350px;
    font-size: 43px;
  }

  .hero-content > p {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 330px;
  }

  .hero-tablet-art {
    object-position: 74% center;
    opacity: 0.22;
  }

  .hero-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 360px;
  }

  .hero-benefits > span {
    font-size: 11px;
  }

  .public-feature-strip,
  .public-section,
  .public-footer {
    width: calc(100% - 28px);
  }

  .public-feature-strip {
    grid-template-columns: 1fr;
    margin-top: -35px;
  }

  .public-feature-strip article,
  .public-feature-strip article:nth-child(2) {
    min-height: 100px;
    border-right: 0;
    border-bottom: 1px solid #183750;
  }

  .public-feature-strip article:last-child {
    border-bottom: 0;
  }

  .public-section {
    padding: 76px 0;
  }

  .public-section-heading {
    margin-bottom: 30px;
    text-align: left;
  }

  .public-section-heading h2,
  .connection-copy h2 {
    font-size: 32px;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .workflow-grid article,
  .workflow-grid article:nth-child(2) {
    min-height: 175px;
    border-right: 0;
    border-bottom: 1px solid #1b3a52;
  }

  .workflow-grid article:last-child {
    border-bottom: 0;
  }

  .connection-section {
    gap: 42px;
  }

  .connection-flow {
    min-height: 570px;
    grid-template-columns: 1fr;
    grid-template-rows: 120px 42px 110px 42px 120px;
  }

  .connection-line {
    height: 42px;
    flex-direction: column;
  }

  .connection-core {
    justify-self: center;
  }

  .pricing-panel,
  .account-session {
    align-items: stretch;
    flex-direction: column;
  }

  .public-footer {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 30px 0;
  }

  .public-footer img {
    width: 220px;
  }

  .public-footer button {
    justify-self: start;
    padding-left: 0;
  }

  .auth-dialog-panel {
    padding: 28px 20px 24px;
  }

  .auth-dialog-panel > img {
    width: 205px;
  }
}

@media (max-width: 1120px) {
  .app-layout {
    grid-template-columns: 202px minmax(0, 1fr);
  }

  .side-menu {
    min-height: calc(100vh - 40px);
  }

  .menu-item {
    padding-inline: 8px;
  }

  .app-page {
    min-height: auto;
  }

  .two-column,
  .order-ticket,
  .dashboard-grid,
  .telegram-layout,
  .tradelocker-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-main-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(230px, 0.75fr);
  }

  .dashboard-connection-row {
    grid-template-columns: minmax(150px, 1fr) 44px 76px 44px minmax(150px, 1fr);
    padding-inline: 14px;
  }

  .dashboard-core {
    width: 76px;
  }

  .dashboard-core img {
    width: 62px;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 20px, 1440px);
    padding-top: 10px;
  }

  .workspace-bar,
  .status-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .app-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .side-menu {
    position: static;
    min-height: 0;
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-brand {
    justify-content: flex-start;
    padding-bottom: 10px;
  }

  .brand-logo {
    max-width: 184px;
  }

  .menu-list {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .menu-item {
    width: 44px;
    min-width: 44px;
    flex: 0 0 44px;
    grid-template-columns: 1fr;
    justify-items: center;
    padding-inline: 6px;
  }

  .menu-item > span:last-child {
    display: none;
  }

  .sidebar-foot {
    display: none;
  }

  .page-stage {
    padding: 12px;
  }

  .section-title {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .section-title > .pill {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .two-column,
  .connection-form,
  .connection-form.compact,
  .inline-linker,
  .manual-route-fields,
  .telegram-profile-bar,
  .telegram-layout,
  .tradelocker-profile-bar,
  .tradelocker-layout,
  .risk-grid,
  .order-ticket,
  .dashboard-grid,
  .flow-steps {
    grid-template-columns: 1fr;
  }

  .dashboard-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-metrics,
  .dashboard-main-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-performance,
  .dashboard-recent {
    min-height: 320px;
  }

  .dashboard-connection-row {
    grid-template-columns: 1fr;
    justify-items: stretch;
    padding: 18px;
  }

  .dashboard-connector {
    min-height: 30px;
    align-items: center;
    flex-direction: column;
  }

  .dashboard-core {
    justify-self: center;
  }

  .telegram-signal-panel {
    position: static;
  }

  .tradelocker-summary {
    position: static;
  }

  .button-row button {
    flex: 1 1 100%;
  }
}
