/* ==== theme tokens ==== */
:root {
  --c-bg: #09090b;
  --c-panel: #0b0b0e;
  --c-panel-2: #18181b;
  --c-border: #27272a;
  --c-border-strong: #3f3f46;
  --c-text: #e4e4e7;
  --c-text-dim: #a1a1aa;
  --c-text-mute: #71717a;
  --c-text-faint: #52525b;
  --c-accent: #2dd4bf;
  --c-accent-hover: #5eead4;
  --c-accent-strong: #0f766e;
  --c-positive: #34d399;
  --c-negative: #f87171;
  --c-warn: #fbbf24;
  --c-ask: #f87171;
  --c-bid: #34d399;
  --c-focus: #2dd4bf55;
  --shadow-panel: 0 0 0 1px var(--c-border), 0 1px 2px #0008;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.theme-light {
  --c-bg: #fafafa;
  --c-panel: #ffffff;
  --c-panel-2: #f4f4f5;
  --c-border: #e4e4e7;
  --c-border-strong: #d4d4d8;
  --c-text: #18181b;
  --c-text-dim: #52525b;
  --c-text-mute: #71717a;
  --c-text-faint: #a1a1aa;
  --c-accent: #0d9488;
  --c-accent-hover: #0f766e;
  --c-accent-strong: #115e59;
  --c-positive: #059669;
  --c-negative: #dc2626;
  --c-warn: #ca8a04;
  --c-ask: #dc2626;
  --c-bid: #059669;
  --shadow-panel: 0 0 0 1px var(--c-border), 0 1px 2px #0001;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-thumb {
  background: var(--c-border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--c-border-strong);
}

.hidden {
  display: none !important;
}
.muted {
  color: var(--c-text-mute);
}
.fg {
  color: var(--c-text);
}
.tiny {
  font-size: 10px;
}
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.positive {
  color: var(--c-positive);
}
.negative {
  color: var(--c-negative);
}

a {
  color: var(--c-accent);
}

.link {
  background: none;
  border: none;
  padding: 0;
  color: var(--c-accent);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link:hover {
  color: var(--c-accent-hover);
}

/* ==== layout ==== */
.app {
  display: grid;
  grid-template-columns: 288px 1fr;
  height: 100vh;
}
.app.rail-collapsed {
  grid-template-columns: 0 1fr;
}

.rail {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-panel);
  border-right: 1px solid var(--c-border);
  min-width: 0;
  overflow: hidden;
}
.app.rail-collapsed .rail {
  display: none;
}
.rail-expand {
  position: fixed;
  left: 0;
  top: 12px;
  width: 20px;
  height: 28px;
  background: var(--c-panel-2);
  border: 1px solid var(--c-border);
  color: var(--c-text-dim);
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  z-index: 10;
  font-size: 14px;
}
.rail-expand:hover {
  background: var(--c-border);
}

.rail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 12px 8px;
}
.brand {
  font-weight: 600;
  font-size: 13px;
  color: var(--c-text);
}
.brand-sub {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-mute);
}

.dropzone {
  margin: 0 12px 12px;
  padding: 16px 12px;
  border: 1px dashed var(--c-border-strong);
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  color: var(--c-text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: background 0.15s, border-color 0.15s;
}
.dropzone:hover {
  border-color: var(--c-text-mute);
  color: var(--c-text);
}
.dropzone.active {
  border-color: var(--c-accent);
  background: color-mix(in srgb, var(--c-accent) 10%, transparent);
  color: var(--c-text);
}
.dropzone-primary {
  font-weight: 500;
  color: var(--c-text);
}
.dropzone-secondary {
  font-size: 10px;
  color: var(--c-text-mute);
}

.parse-progress {
  margin: 0 12px 12px;
  padding: 8px;
  border-radius: 6px;
  background: var(--c-panel-2);
  border: 1px solid var(--c-border);
}
.parse-progress-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--c-text-dim);
  margin-bottom: 4px;
}
.parse-progress-track {
  height: 3px;
  background: var(--c-border);
  border-radius: 3px;
  overflow: hidden;
}
.parse-progress-fill {
  height: 100%;
  width: 0;
  background: var(--c-accent);
  transition: width 0.12s linear;
}

.rail-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rail-empty {
  text-align: center;
  color: var(--c-text-mute);
  padding: 16px 8px;
  font-size: 11px;
}

.strat-item {
  position: relative;
  padding: 8px 8px;
  background: var(--c-panel-2);
  border: 1px solid var(--c-border);
  border-radius: 5px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.strat-item.ref {
  border-color: var(--c-accent-strong);
  background: color-mix(in srgb, var(--c-accent) 10%, var(--c-panel-2));
}
.strat-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-top: 4px;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}
.strat-swatch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.strat-body {
  flex: 1;
  min-width: 0;
}
.strat-name {
  font-size: 12px;
  font-weight: 500;
  background: none;
  border: none;
  color: var(--c-text);
  text-align: left;
  padding: 0;
  cursor: pointer;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.strat-name:hover {
  color: var(--c-accent);
}
.strat-rename {
  width: 100%;
  background: var(--c-panel);
  border: 1px solid var(--c-border-strong);
  color: var(--c-text);
  padding: 2px 4px;
  font-size: 12px;
  border-radius: 3px;
  font: inherit;
  font-family: inherit;
}
.strat-meta {
  display: flex;
  gap: 6px;
  font-size: 10px;
  color: var(--c-text-mute);
  margin-top: 2px;
}
.strat-controls {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  font-size: 10px;
  color: var(--c-text-dim);
}
.strat-controls label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}
.strat-remove {
  background: none;
  border: none;
  color: var(--c-text-mute);
  cursor: pointer;
  margin-left: auto;
  padding: 0 2px;
}
.strat-remove:hover {
  color: var(--c-negative);
}

.rail-footer {
  padding: 12px;
  border-top: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--c-text-dim);
  cursor: pointer;
}
.switch input {
  accent-color: var(--c-accent);
}

/* ==== main ==== */
.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.topbar {
  border-bottom: 1px solid var(--c-border);
  background: var(--c-panel);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.topbar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar-row.small {
  font-size: 11px;
}

.speed-group {
  display: flex;
  gap: 2px;
  padding: 2px;
  background: var(--c-panel-2);
  border: 1px solid var(--c-border);
  border-radius: 5px;
}
.speed-btn {
  background: none;
  border: none;
  color: var(--c-text-mute);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 500;
  font: inherit;
  font-family: inherit;
}
.speed-btn:hover {
  color: var(--c-text);
}
.speed-btn.active {
  background: var(--c-accent-strong);
  color: white;
}

.scrubber-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.scrubber {
  flex: 1;
  height: 4px;
  appearance: none;
  background: var(--c-border);
  border-radius: 4px;
  cursor: pointer;
  accent-color: var(--c-accent);
}
.scrubber:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.scrubber-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-text-dim);
  white-space: nowrap;
}
.inline-num {
  width: 5ch;
  padding: 1px 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-text);
  background: var(--c-panel-2);
  border: 1px solid var(--c-border);
  border-radius: 3px;
  text-align: right;
  -moz-appearance: textfield;
}
.inline-num.wide {
  width: 9ch;
}
.inline-num:focus {
  outline: 1px solid var(--c-accent);
  outline-offset: 0;
}
.inline-num:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.inline-num::-webkit-outer-spin-button,
.inline-num::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--c-panel-2);
  border: 1px solid var(--c-border);
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 10px;
  color: var(--c-text-mute);
}
.right {
  margin-left: auto;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-positive);
}

/* ==== buttons + inputs ==== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--c-panel-2);
  color: var(--c-text);
  border: 1px solid var(--c-border);
  border-radius: 5px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.btn:hover:not(:disabled) {
  background: var(--c-border);
  color: var(--c-text);
}
.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.btn.icon {
  padding: 4px 8px;
  min-width: 28px;
}
.btn.full {
  width: 100%;
  justify-content: center;
}
.btn.play {
  padding: 4px 12px;
  background: var(--c-accent-strong);
  color: white;
  border-color: var(--c-accent-strong);
}
.btn.play:hover:not(:disabled) {
  background: var(--c-accent);
  border-color: var(--c-accent);
}

.input {
  padding: 3px 6px;
  background: var(--c-panel);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  border-radius: 4px;
  font: inherit;
  font-size: 12px;
}
.input:focus {
  outline: none;
  border-color: var(--c-accent);
}
.tiny-num {
  width: 60px;
  padding: 1px 4px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--c-text-dim);
  cursor: pointer;
}
.check.small {
  font-size: 11px;
}
.check input {
  accent-color: var(--c-accent);
}

.position-limit-wrap {
  gap: 4px;
  color: var(--c-text-dim);
}

/* ==== dashboard ==== */
.dashboard {
  flex: 1;
  overflow-y: scroll;
  overflow-x: hidden;
  padding: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(12, 1fr);
  /* +50% taller panels — was 28px */
  grid-auto-rows: 42px;
}

.panel {
  display: flex;
  flex-direction: column;
  background: var(--c-panel);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-bottom: 1px solid var(--c-border);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-mute);
  gap: 8px;
}
.panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: normal;
  color: var(--c-text-dim);
}
.panel-body {
  flex: 1;
  padding: 10px;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.panel-kpi {
  grid-column: 1 / span 12;
  grid-row: span 3;
}
.panel-pnl {
  grid-column: 1 / span 8;
  grid-row: span 7;
}
.panel-summary {
  grid-column: 9 / span 4;
  grid-row: span 7;
}
.panel-price {
  grid-column: 1 / span 8;
  grid-row: span 7;
}
.panel-book {
  grid-column: 9 / span 2;
  grid-row: span 7;
}
.panel-pressure {
  grid-column: 11 / span 2;
  grid-row: span 3;
}
.panel-position {
  grid-column: 1 / span 6;
  grid-row: span 6;
}
.panel-fills {
  grid-column: 7 / span 3;
  grid-row: span 6;
}
.panel-logs {
  grid-column: 10 / span 3;
  grid-row: span 6;
}

@media (max-width: 1200px) {
  .dashboard {
    grid-template-columns: repeat(6, 1fr);
  }
  .panel-kpi {
    grid-column: 1 / span 6;
  }
  .panel-pnl {
    grid-column: 1 / span 6;
  }
  .panel-summary {
    grid-column: 1 / span 6;
  }
  .panel-price {
    grid-column: 1 / span 6;
  }
  .panel-book {
    grid-column: 1 / span 3;
  }
  .panel-pressure {
    grid-column: 4 / span 3;
    grid-row: span 7;
  }
  .panel-position {
    grid-column: 1 / span 6;
  }
  .panel-fills {
    grid-column: 1 / span 3;
  }
  .panel-logs {
    grid-column: 4 / span 3;
  }
}

/* ==== KPI ==== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}
.kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kpi-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  color: var(--c-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.02em;
}

/* ==== chart ==== */
.chart-body {
  padding: 0;
}
.chart {
  display: block;
  width: 100%;
  height: 100%;
}
.chart-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-mute);
  font-size: 12px;
}
/* Legend sits between the panel header and the chart canvas (outside
   the plot area). Renders as horizontally-flowing chips. */
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 4px 10px;
  border-bottom: 1px solid var(--c-border);
  font-family: var(--font-mono);
  font-size: 10px;
  min-height: 22px;
  align-items: center;
  color: var(--c-text-dim);
  overflow: hidden;
}
.chart-legend.hidden {
  display: none;
}
.chart-legend:empty::before {
  content: "— hover the chart to sample values, drag horizontally to zoom, right-click to reset, double-click to seek";
  color: var(--c-text-faint);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.02em;
}
.legend-row {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.legend-swatch {
  width: 10px;
  height: 2px;
  display: inline-block;
  flex-shrink: 0;
  border-radius: 1px;
}
.legend-swatch.dash {
  background-image: repeating-linear-gradient(
    to right,
    currentColor 0 3px,
    transparent 3px 5px
  );
  height: 2px;
}
.legend-swatch.marker-up,
.legend-swatch.marker-down,
.legend-swatch.marker-dot {
  width: 10px;
  height: 10px;
  border-radius: 0;
}
.legend-swatch.marker-up {
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.legend-swatch.marker-down {
  clip-path: polygon(50% 100%, 100% 0, 0 0);
}
.legend-swatch.marker-dot {
  border-radius: 50%;
}
.legend-name {
  color: var(--c-text-dim);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.legend-value {
  color: var(--c-text);
  min-width: 2ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.legend-value.muted {
  color: var(--c-text-faint);
}

/* ==== summary table ==== */
.table-body {
  padding: 0;
  overflow: auto;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
table.data th {
  position: sticky;
  top: 0;
  background: var(--c-panel);
  border-bottom: 1px solid var(--c-border);
  padding: 4px 8px;
  text-align: right;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text-mute);
  font-weight: normal;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
table.data th.left {
  text-align: left;
}
table.data th:hover {
  color: var(--c-text-dim);
}
table.data td {
  padding: 3px 8px;
  border-bottom: 1px solid var(--c-panel-2);
  text-align: right;
  white-space: nowrap;
}
table.data td.left {
  text-align: left;
}
table.data tr {
  cursor: pointer;
}
table.data tr:hover {
  background: var(--c-panel-2);
}
table.data tr.ref {
  background: color-mix(in srgb, var(--c-accent) 10%, transparent);
}
table.data .name-cell {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}
table.data .badge-mini {
  font-size: 9px;
  color: var(--c-accent);
  margin-left: 4px;
}

table.data .empty {
  text-align: center;
  color: var(--c-text-mute);
  padding: 16px;
}

/* ==== order book ==== */
.book-body {
  padding: 6px;
  overflow: auto;
}
.book-row {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr 50px;
  gap: 6px;
  padding: 1px 4px;
  font-size: 11px;
  font-family: var(--font-mono);
  border-radius: 2px;
}
.book-bar {
  position: absolute;
  top: 1px;
  bottom: 1px;
  border-radius: 2px;
  z-index: 0;
}
.book-row > span {
  position: relative;
  z-index: 1;
}
.book-bar.ask {
  right: 0;
  background: color-mix(in srgb, var(--c-ask) 15%, transparent);
}
.book-bar.bid {
  left: 0;
  background: color-mix(in srgb, var(--c-bid) 15%, transparent);
}
.book-level {
  color: var(--c-text-mute);
}
.book-price-ask {
  color: var(--c-ask);
}
.book-price-bid {
  color: var(--c-bid);
}
.book-qty {
  text-align: right;
  color: var(--c-text-dim);
}
.book-mid-divider {
  margin: 4px 0;
  padding: 3px 6px;
  border-top: 1px dashed var(--c-border-strong);
  border-bottom: 1px dashed var(--c-border-strong);
  font-size: 10px;
  color: var(--c-text-dim);
  display: flex;
  gap: 8px;
  font-family: var(--font-mono);
}
.book-mid-divider .right {
  margin-left: auto;
}
.book-empty {
  padding: 16px;
  text-align: center;
  color: var(--c-text-mute);
  font-size: 11px;
}

/* ==== pressure ==== */
.pressure-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 14px;
}
.pressure-scale {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--c-text-mute);
}
.pressure-bar {
  position: relative;
  height: 10px;
  background: var(--c-border);
  border-radius: 10px;
  overflow: hidden;
}
.pressure-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: color-mix(in srgb, var(--c-bid) 60%, transparent);
  transition: width 0.1s;
}
.pressure-mid {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--c-text-mute);
}
.pressure-nums {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-text-dim);
}
.dot-bid {
  color: var(--c-bid);
}
.dot-ask {
  color: var(--c-ask);
}

/* ==== logs ==== */
.tabs {
  display: flex;
  gap: 3px;
}
.tab {
  background: none;
  border: none;
  color: var(--c-text-mute);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
  font: inherit;
  font-family: inherit;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.tab.active {
  background: var(--c-accent-strong);
  color: white;
}
.tab:not(.active):hover {
  color: var(--c-text);
}
.logs-body {
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--c-text-dim);
  white-space: pre-wrap;
  word-break: break-all;
  padding: 8px;
}
.logs-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--c-text-mute);
  font-size: 11px;
  padding: 10px;
  font-family: inherit;
  white-space: normal;
}
.logs-empty .hint {
  font-size: 10px;
  color: var(--c-text-faint);
  margin-top: 4px;
  max-width: 32em;
}

/* ==== modal ==== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #000a;
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fade 0.15s;
}
@keyframes fade {
  from { opacity: 0; }
}
.modal {
  background: var(--c-panel);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  max-width: 640px;
  width: calc(100% - 32px);
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 40px #000a;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: var(--c-text-mute);
  cursor: pointer;
  font-size: 18px;
  padding: 4px 8px;
}
.modal-close:hover {
  color: var(--c-text);
}
.modal h2 {
  margin: 0 0 8px;
  font-size: 18px;
}
.modal h3 {
  margin: 20px 0 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-mute);
  font-weight: 500;
}
.modal-body {
  padding: 24px;
}
.modal p, .modal li {
  font-size: 13px;
  color: var(--c-text-dim);
  line-height: 1.5;
}
.modal ol, .modal ul {
  padding-left: 20px;
}
.modal code {
  font-family: var(--font-mono);
  color: var(--c-accent);
  font-size: 12px;
}
.modal-footer {
  border-top: 1px solid var(--c-border);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-mute);
}

/* ==== own fills table ==== */
.fills-row-buy .side { color: var(--c-positive); }
.fills-row-sell .side { color: var(--c-negative); }
