:root,
[data-theme="dark"] {
  --bg: #0b0f14;
  --surface: #121820;
  --surface-2: #1a2230;
  --border: #243044;
  --text: #e8edf5;
  --muted: #8b97ab;
  --primary: #3d8bfd;
  --primary-hover: #5a9dff;
  --green: #22c55e;
  --red: #ef4444;
  --red-hover: #ef4444;
  --yellow: #f59e0b;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --overlay: rgba(11, 15, 20, 0.6);
  --gradient-1: rgba(61, 139, 253, 0.12);
  --gradient-2: rgba(34, 197, 94, 0.06);
  --notice-bg: rgba(61, 139, 253, 0.1);
  --notice-border: rgba(61, 139, 253, 0.3);
  --tag-open-bg: rgba(61, 139, 253, 0.15);
  --tag-close-bg: rgba(139, 151, 171, 0.15);
  --chart-pnl-line: #cbd5e1;
  --trade-col-symbol: 13%;
  --trade-col-side: 10%;
  --trade-col-volume: 12%;
  --trade-col-price: 15%;
  --trade-col-profit: 17%;
  --trade-col-opened: 33%;
  --trade-col-type: 11%;
  --trade-col-time: 22%;
}

[data-theme="light"] {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #eef1f6;
  --border: #d8dee8;
  --text: #1a2230;
  --muted: #5c6b82;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --green: #16a34a;
  --red: #dc2626;
  --yellow: #d97706;
  --shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  --overlay: rgba(244, 246, 250, 0.75);
  --gradient-1: rgba(37, 99, 235, 0.08);
  --gradient-2: rgba(22, 163, 74, 0.05);
  --notice-bg: rgba(37, 99, 235, 0.08);
  --notice-border: rgba(37, 99, 235, 0.2);
  --tag-open-bg: rgba(37, 99, 235, 0.12);
  --tag-close-bg: rgba(92, 107, 130, 0.12);
  --chart-pnl-line: #1e293b;
  --trade-col-symbol: 13%;
  --trade-col-side: 10%;
  --trade-col-volume: 12%;
  --trade-col-price: 15%;
  --trade-col-profit: 17%;
  --trade-col-opened: 33%;
  --trade-col-type: 11%;
  --trade-col-time: 22%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, var(--gradient-1), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, var(--gradient-2), transparent);
  pointer-events: none;
  z-index: 0;
}

.app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  min-width: 0;
  overflow-x: clip;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #1d4ed8);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  box-shadow: var(--shadow);
  border: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.logo:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.28);
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.subtitle {
  color: var(--muted);
  font-size: 0.9rem;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--yellow);
}

.badge--demo {
  color: var(--yellow);
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.1);
}

.badge--live {
  color: var(--green);
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn--primary {
  background: var(--primary);
  color: white;
}

.btn--red {
  background: var(--red);
  color: white;
}

.btn--red:hover {
  background: var(--red-hover);
  transform: translateY(-1px);
}

.btn--primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: var(--muted);
}

.btn--lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.select-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.select-wrap__label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding-left: 2px;
}

.custom-select {
  position: relative;
  min-width: 148px;
}

.custom-select__native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 148px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px 10px 14px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.custom-select__trigger:hover {
  border-color: var(--muted);
  background-color: var(--surface-2);
}

.custom-select__trigger:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--tag-open-bg);
}

.custom-select--open .custom-select__trigger {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--tag-open-bg);
  background-color: var(--surface-2);
}

.custom-select__value {
  text-align: left;
}

.custom-select__chevron {
  width: 16px;
  height: 16px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.custom-select--open .custom-select__chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.custom-select__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-height: 240px;
  overflow-y: auto;
}

.custom-select__menu[hidden] {
  display: none;
}

.custom-select__option {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.custom-select__option:hover,
.custom-select__option--focused {
  background: var(--surface-2);
  color: var(--text);
}

.custom-select__option--selected {
  background: var(--tag-open-bg);
  color: var(--primary);
  font-weight: 600;
}

.custom-select__option--selected:hover {
  background: var(--tag-open-bg);
  color: var(--primary);
}

.auth-panel {
  display: grid;
  place-items: center;
  min-height: 60vh;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  max-width: 560px;
  box-shadow: var(--shadow);
}

.auth-card h2 {
  margin-bottom: 12px;
  font-size: 1.6rem;
}

.auth-card--compact {
  text-align: center;
}

.auth-card--compact h2 {
  margin-bottom: 12px;
}

.auth-card--compact p {
  margin-bottom: 28px;
  line-height: 1.6;
}

.auth-card p {
  color: var(--muted);
  margin-bottom: 24px;
}

.steps {
  margin: 0 0 28px 20px;
  color: var(--muted);
}

.steps li {
  margin-bottom: 8px;
}

.steps a {
  color: var(--primary);
}

.steps code {
  background: var(--surface-2);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
}

.theme-toggle__icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: color 0.2s;
}

.theme-toggle:hover .theme-toggle__icon {
  color: var(--text);
}

[data-theme="dark"] .theme-toggle__icon--sun { display: block; }
[data-theme="dark"] .theme-toggle__icon--moon { display: none; }
[data-theme="light"] .theme-toggle__icon--sun { display: none; }
[data-theme="light"] .theme-toggle__icon--moon { display: block; }

.notice {
  background: var(--notice-bg);
  border: 1px solid var(--notice-border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--muted);
}

.notice strong {
  color: var(--text);
}

.auth-card h3 {
  font-size: 1rem;
  margin: 20px 0 10px;
}

.token-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.connect-greeting {
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
}

.account-select__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.account-select__header h2 {
  margin-bottom: 0;
}

.accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.account-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.account-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.account-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.account-card__id {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.1rem;
  font-weight: 600;
}

.account-card__meta {
  color: var(--muted);
  font-size: 0.85rem;
}

#dashboard {
  max-width: 100%;
  min-width: 0;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
  min-width: 0;
}

.toolbar__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar__right {
  display: flex;
  gap: 10px;
  align-items: center;
}

.account-info {
  font-size: 0.95rem;
  color: var(--muted);
}

.stats-section {
  position: relative;
  margin-bottom: 24px;
}

.stats-section--menu-open {
  z-index: 100;
}

.stats-section__header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.stat-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.stat-card__handle {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: grab;
  opacity: 0;
  transition: opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.stat-card__handle svg {
  width: 16px;
  height: 16px;
}

.stat-card:hover .stat-card__handle,
.stat-card--chosen .stat-card__handle {
  opacity: 1;
}

.stat-card__handle:hover {
  background: var(--surface-2);
  color: var(--text);
}

.stat-card__handle:active {
  cursor: grabbing;
}

.stat-card--ghost {
  opacity: 0.45;
}

.stat-card--chosen {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 35%, transparent);
}

.stat-card--drag {
  opacity: 1;
}

.stat-card__label {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-card__value {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.4rem;
  font-weight: 600;
}

.chart-panel {
  margin-bottom: 24px;
  padding: 24px;
}

.chart-panel__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.chart-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 20px;
}

.chart-summary__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chart-summary__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}

.chart-summary__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.chart-summary__value {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.chart-wrap {
  position: relative;
  height: 300px;
  margin-bottom: 12px;
}

.chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.chart-legend-bottom {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 20px;
  font-size: 0.82rem;
  color: var(--muted);
}

.chart-legend-bottom__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chart-legend-bottom__line {
  display: inline-block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
}

.chart-legend-bottom__line--yield {
  background: var(--primary);
}

.chart-legend-bottom__line--pnl {
  background: var(--chart-pnl-line);
}

.chart-periods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.chart-period {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.chart-period:hover {
  border-color: var(--muted);
  color: var(--text);
}

.chart-period--active {
  background: var(--surface-2);
  border-color: var(--muted);
  color: var(--text);
  font-weight: 600;
}

.panels {
  display: grid;
  gap: 24px;
  max-width: 100%;
  min-width: 0;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  z-index: 1;
  max-width: 100%;
  min-width: 0;
}

.panel--menu-open {
  z-index: 100;
}

.panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  min-width: 0;
}

.panel__header h3 {
  font-size: 1rem;
}

.panel__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.column-settings {
  position: relative;
}

.column-settings__btn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.column-settings__icon {
  width: 18px;
  height: 18px;
}

.column-settings__menu {
  position: fixed;
  z-index: 1000;
  min-width: 210px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  pointer-events: auto;
}

.column-settings__menu:not(.hidden) {
  display: block;
}

.column-settings__title {
  margin: 0 0 8px;
  padding: 0 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.column-settings__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
}

.column-settings__item:hover {
  background: var(--surface-2);
}

.column-settings__item input {
  accent-color: var(--primary);
}

.trade-table {
  table-layout: fixed;
  width: 100%;
  min-width: 720px;
}

.trade-table col[data-col="symbol"] { width: var(--trade-col-symbol); }
.trade-table col[data-col="side"] { width: var(--trade-col-side); }
.trade-table col[data-col="volume"] { width: var(--trade-col-volume); }
.trade-table col[data-col="price"] { width: var(--trade-col-price); }
.trade-table col[data-col="pnl"],
.trade-table col[data-col="profit"] { width: var(--trade-col-profit); }
.trade-table col[data-col="opened"] { width: var(--trade-col-opened); }
.trade-table col[data-col="type"] { width: var(--trade-col-type); }
.trade-table col[data-col="time"] { width: var(--trade-col-time); }

.trade-table th,
.trade-table td {
  white-space: nowrap;
  vertical-align: middle;
  line-height: 1.35;
}

#positions-table tbody td[data-col].col-masked {
  color: transparent !important;
  text-shadow: 0 0 12px var(--text);
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
  overflow: hidden;
  isolation: isolate;
}

#positions-table tbody td[data-col].col-masked * {
  color: transparent !important;
}

.count {
  background: var(--surface-2);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.table-wrap table {
  width: 100%;
  min-width: 640px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--border);
}

.pagination__btn {
  min-width: 88px;
  padding: 8px 14px;
  font-size: 0.85rem;
}

.pagination__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination__info {
  font-size: 0.85rem;
  color: var(--muted);
  min-width: 110px;
  text-align: center;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

td {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
}

tr:last-child td {
  border-bottom: none;
}

.empty {
  text-align: center !important;
  color: var(--muted) !important;
  font-family: "DM Sans", sans-serif !important;
  padding: 32px !important;
}

.side-buy { color: var(--green); }
.side-sell { color: var(--red); }
.positive { color: var(--green); }
.negative { color: var(--red); }

.tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.tag--open { background: var(--tag-open-bg); color: var(--primary); }
.tag--close { background: var(--tag-close-bg); color: var(--muted); }

.hidden { display: none !important; }

canvas.hidden { display: none !important; }

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 14px 20px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 10000;
  max-width: 360px;
}

.toast--success {
  top: 20px;
  bottom: auto;
  right: auto;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--surface);
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  transform: translateX(-50%) translateY(-120%);
  opacity: 0;
  transition: transform 0.32s ease, opacity 0.32s ease;
  pointer-events: none;
}

.toast--success.toast--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast__icon {
  display: flex;
  color: var(--green);
  flex-shrink: 0;
}

.toast__message {
  font-size: 0.92rem;
  font-weight: 500;
}

.loader {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  display: grid;
  place-items: center;
  z-index: 200;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .app { padding: 16px; }
  .auth-card { padding: 24px; }
  .stats-section {
    margin-bottom: 16px;
  }

  .stats-section__header {
    margin-bottom: 6px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .stat-card {
    padding: 10px 12px 10px 10px;
    gap: 4px;
  }

  .stat-card__handle {
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    opacity: 1;
  }
  .stat-card__label {
    font-size: 0.65rem;
    letter-spacing: 0.02em;
    line-height: 1.2;
  }
  .stat-card__value {
    font-size: 0.95rem;
    line-height: 1.2;
    word-break: break-word;
  }
  .chart-summary { grid-template-columns: 1fr; }
  .chart-summary__value { font-size: 1.4rem; }
  .chart-panel { padding: 16px; }
  .panel__header {
    padding: 12px 14px;
    flex-wrap: wrap;
  }
  .panel__actions {
    flex-shrink: 0;
  }
  .account-select__header {
    flex-direction: column;
    align-items: flex-start;
  }
  th, td {
    padding: 10px 12px;
  }
  .table-wrap table:not(.trade-table) {
    min-width: 560px;
  }
  .panels .table-wrap {
    overscroll-behavior-x: contain;
  }
  .table-wrap .trade-table {
    width: max-content;
    min-width: 100%;
    table-layout: fixed;
  }
  .trade-table col[data-col="symbol"] { width: 96px; }
  .trade-table col[data-col="side"] { width: 76px; }
  .trade-table col[data-col="volume"] { width: 80px; }
  .trade-table col[data-col="price"] { width: 128px; }
  .trade-table col[data-col="pnl"],
  .trade-table col[data-col="profit"] { width: 132px; }
  .trade-table col[data-col="opened"] { width: 228px; }
  .trade-table col[data-col="type"] { width: 108px; }
  .trade-table col[data-col="time"] { width: 156px; }
  .trade-table th,
  .trade-table td {
    padding: 9px 10px;
    font-size: 0.78rem;
  }
  .trade-table th {
    font-size: 0.68rem;
    letter-spacing: 0.02em;
  }
}
