/* Shared visual system carried from the approved wireframes. */
* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 13px/1.5 var(--font-ui);
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
summary {
  font: inherit;
}
button,
input,
select {
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-raised);
  min-height: 32px;
  padding: 5px 10px;
}
button,
summary {
  cursor: pointer;
}
button:hover {
  background: var(--surface-hover);
  border-color: var(--line-strong);
}
button.active,
[aria-pressed="true"] {
  background: var(--surface-selected);
  border-color: var(--accent);
  color: var(--text);
}
input {
  background: var(--bg);
}
input::placeholder {
  color: var(--dim);
}
button:disabled {
  color: var(--dim);
  cursor: default;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.mono,
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.num {
  text-align: right;
}
.muted {
  color: var(--muted);
}
.dim {
  color: var(--dim);
}
.pos,
.positive {
  color: var(--positive);
}
.neg,
.negative {
  color: var(--negative);
}
.warn {
  color: var(--warning);
}
.bn {
  color: var(--v-bn);
}
.bybit {
  color: var(--v-bybit);
}
.bitget {
  color: var(--v-bitget);
}
.gate {
  color: var(--v-gate);
}
.hl {
  color: var(--v-hl);
}
.small {
  font-size: 11px;
}
.topbar {
  height: 56px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 24px;
  background: var(--surface);
}
.brand {
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
  color: var(--text);
}
.brand-mark {
  color: var(--positive);
  margin-right: 8px;
}
.brand small {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 7px;
}
.nav {
  display: flex;
  gap: 4px;
  height: 100%;
  align-items: center;
}
.nav a {
  padding: 8px 12px;
  color: var(--muted);
  border-radius: 6px;
  white-space: nowrap;
}
.nav a.active {
  color: var(--text);
  background: var(--surface-selected);
}
.nav small {
  font-size: 10px;
  margin-left: 4px;
}
.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.seg {
  display: inline-flex;
  padding: 3px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 7px;
  gap: 2px;
}
.seg button {
  border: 0;
  background: transparent;
  min-height: 26px;
  padding: 3px 9px;
  color: var(--muted);
}
.seg button.active {
  background: var(--surface-selected);
  color: var(--text);
}
.page {
  max-width: 1800px;
  margin: 0 auto;
  padding: 22px 24px 32px;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.eyebrow {
  color: var(--positive);
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 650;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 24px;
  line-height: 1.3;
  margin-top: 4px;
}
h1 small {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 10px;
}
h2 {
  font-size: 16px;
}
h3 {
  font-size: 13px;
}
.page-head p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 7px;
}
.status {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}
.demo {
  color: var(--warning);
  font-size: 11px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.panel-head {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}
.metric .label {
  color: var(--muted);
  font-size: 12px;
}
.metric .value {
  font: 30px/1.3 var(--font-mono);
  font-weight: 650;
  margin: 8px 0 4px;
  letter-spacing: -0.7px;
}
.metric small {
  font-size: 11px;
  color: var(--muted);
}
.filters {
  padding: 12px 16px;
  margin-bottom: 14px;
}
.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}
.filter-label {
  width: 56px;
  color: var(--muted);
  font-size: 12px;
  flex-shrink: 0;
}
.chip {
  font-size: 12px;
  border-radius: 6px;
  min-height: 28px;
  padding: 3px 9px;
}
.chip.on {
  background: var(--surface-selected);
  border-color: var(--line-strong);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  line-height: 1.5;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  white-space: nowrap;
}
.badge.ok {
  background: var(--positive-bg);
  color: var(--positive);
  border-color: #386252;
}
.badge.warning {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: #74613b;
}
.badge.weak {
  border-style: dashed;
  color: var(--dim);
}
.badge.funding {
  color: var(--accent);
  background: var(--info-bg);
}
.badge.risk {
  color: var(--negative);
  background: var(--negative-bg);
}
.note {
  color: var(--muted);
  font-size: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}
.note.warning {
  color: var(--warning);
  border-color: #675638;
  background: var(--warning-bg);
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  font-weight: 500;
  color: var(--muted);
  background: var(--surface-raised);
  font-size: 11px;
  padding: 10px 12px;
  white-space: nowrap;
}
td {
  padding: 12px;
  border-bottom: 1px solid #243447;
  vertical-align: middle;
}
td small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: var(--surface-hover);
}
.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 12px 0;
}
.footer-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 14px;
}
.site-footer {
  padding: 0 24px 24px;
}
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: var(--surface-raised);
}
.nowrap {
  white-space: nowrap;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1279px) {
  .topbar {
    gap: 16px;
    padding: 0 20px;
  }
  .nav a {
    padding: 8px;
  }
  .nav small {
    display: none;
  }
  .page {
    padding: 18px 20px 28px;
  }
  .brand small {
    display: none;
  }
}

@media (max-width: 1023px) {
  .topbar {
    flex-wrap: wrap;
    height: auto;
    min-height: 56px;
    padding-top: 10px;
    padding-bottom: 8px;
    gap: 8px;
  }
  .nav {
    order: 3;
    width: 100%;
    height: 40px;
  }
  .top-actions {
    margin-left: auto;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page {
    padding: 16px;
  }
  .page-head {
    align-items: flex-start;
  }
  .status {
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  .topbar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .nav {
    overflow: auto;
  }
  .nav a {
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 6px 10px;
  }
  .page {
    padding: 16px 12px 24px;
  }
  .page-head {
    display: block;
  }
  .page-head .status {
    max-width: none;
    text-align: left;
    margin-top: 10px;
  }
  .top-actions {
    gap: 6px;
  }
  .top-actions .demo {
    display: none;
  }
  h1 {
    font-size: 22px;
  }
  .metric {
    padding: 12px;
  }
  .metric .value {
    font-size: 24px;
  }
  .filters {
    padding: 10px;
  }
  .filter-label {
    width: 48px;
  }
  .panel-head {
    padding: 12px;
    flex-wrap: wrap;
  }
  button,
  input,
  select,
  .button-link {
    min-height: 44px;
  }
  .seg button {
    min-height: 36px;
  }
  .table-footer {
    flex-wrap: wrap;
  }
  .filter-row {
    gap: 5px;
  }
  .chip {
    min-height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

[hidden] {
  display: none !important;
}
html {
  overflow-x: hidden;
  scroll-padding-top: 110px;
}
body {
  min-width: 320px;
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
}
button:disabled {
  opacity: 0.6;
}
button {
  white-space: nowrap;
}
input,
select {
  max-width: 100%;
}
p + p {
  margin-top: 8px;
}
strong {
  font-weight: 650;
}
small {
  font-size: 11px;
}
code {
  font: 12px/1.6 var(--font-mono);
  color: var(--accent);
  overflow-wrap: anywhere;
}
kbd {
  font: 11px var(--font-mono);
  color: var(--muted);
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  gap: 18px;
}
.nav {
  min-width: 0;
}
.top-actions {
  gap: 8px;
  flex-shrink: 0;
}
.nav a {
  padding: 8px 10px;
}
.top-actions button {
  white-space: nowrap;
}
.legacy-menu {
  position: relative;
}
.legacy-menu summary {
  padding: 8px 10px;
  white-space: nowrap;
  color: var(--muted);
  list-style: none;
}
.legacy-menu.active summary {
  background: var(--surface-selected);
  color: var(--text);
  border-radius: 6px;
}
.legacy-menu > div {
  position: fixed;
  top: 52px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  box-shadow: var(--shadow-overlay);
  z-index: 30;
}
.legacy-menu a {
  display: block;
}
.page {
  min-height: calc(100dvh - 56px);
  min-width: 0;
}
.page > * {
  min-width: 0;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 100;
  background: var(--surface);
  padding: 12px;
}
.skip-link:focus {
  top: 4px;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--surface-selected);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 12px 20px;
  z-index: 100;
  max-width: 90vw;
}
#global-notice {
  margin: 12px 24px 0;
}
.filters {
  overflow: visible;
}
.filter-row + .filter-row {
  padding-top: 8px;
  border-top: 1px solid var(--chart-grid);
}
.filter-label {
  width: auto;
  min-width: 52px;
}
.filter-row label {
  color: var(--muted);
  font-size: 12px;
}
.search-group {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-group input {
  width: 220px;
}
.search-group label {
  white-space: nowrap;
}
.autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  width: 320px;
  max-width: 90vw;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  z-index: 25;
  padding: 4px;
  box-shadow: var(--shadow-overlay);
}
.autocomplete button {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 0;
  background: none;
}
.autocomplete [aria-selected="true"] {
  background: var(--surface-selected);
}
.pair-picker {
  position: relative;
  max-width: 320px;
}
.pair-picker summary {
  padding: 6px 9px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.pair-options {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 26;
  min-width: 230px;
  display: grid;
  padding: 12px;
  gap: 6px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-overlay);
}
.pair-options label {
  display: flex;
  gap: 8px;
  align-items: center;
}
.pair-options input,
.checkbox-label input {
  min-height: auto;
  accent-color: var(--accent);
}
.more-filters > summary {
  display: none;
}
.more-filters .filter-row {
  border-top: 1px solid var(--chart-grid);
  padding-top: 8px;
}
.threshold-input {
  width: 74px;
}
.page-input {
  width: 62px;
}
.active-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
}
.active-strip > div {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.condition {
  min-height: 26px;
  font-size: 11px;
  padding: 3px 7px;
}
.mobile-filter-bar {
  display: none;
}
.source-line {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 11px;
  margin: 12px 0;
}
.source-line > span:last-child {
  margin-left: auto;
}
.range-caption {
  color: var(--muted);
  font-size: 12px;
  margin: 10px 0;
}
.table-wrap {
  overflow: auto;
  max-width: 100%;
  max-height: calc(100dvh - 280px);
  min-height: 100px;
  scrollbar-color: var(--line-strong) var(--bg);
}
th {
  position: sticky;
  top: 0;
  z-index: 3;
}
th button {
  border: 0;
  padding: 0;
  min-height: 24px;
  background: none;
  color: inherit;
}
td {
  font-size: 13px;
}
td small {
  line-height: 1.6;
}
table .num {
  white-space: nowrap;
}
.boardtable {
  min-width: 1492px;
}
.boardtable td {
  height: 88px;
}
.boardtable th:nth-child(1),
.boardtable td:nth-child(1),
.events-table th:nth-child(1),
.events-table td:nth-child(1) {
  position: sticky;
  left: 0;
  min-width: 120px;
  background: var(--surface);
  z-index: 2;
}
.boardtable th:nth-child(2),
.boardtable td:nth-child(2),
.events-table th:nth-child(2),
.events-table td:nth-child(2) {
  position: sticky;
  left: 120px;
  min-width: 158px;
  background: var(--surface);
  z-index: 2;
  border-right: 1px solid var(--line);
}
.boardtable th:nth-child(-n + 2),
.events-table th:nth-child(-n + 2) {
  z-index: 5;
  background: var(--surface-raised);
}
.boardtable tr.selected td:nth-child(-n + 2) {
  background: var(--surface-selected);
}
.boardtable td:nth-child(n + 3):nth-child(-n + 7) {
  min-width: 112px;
}
.primarynum {
  font-size: 20px;
  color: var(--positive);
  white-space: nowrap;
}
.unconfirmed {
  color: var(--muted);
  text-decoration: underline dashed;
  text-underline-offset: 5px;
}
.symbol {
  font-size: 15px;
  font-weight: 650;
}
.expand {
  border: 0;
  background: none;
  padding: 0 4px;
  min-height: 32px;
}
.text-button {
  border: 0;
  background: none;
  padding: 2px 0;
  color: var(--accent);
  min-height: 24px;
}
.events-table {
  min-width: 1492px;
}
.expanded-event > td:first-child {
  position: static !important;
  background: var(--surface-raised) !important;
}
.detail-content {
  padding: 16px;
}
.detail-content > p,
.detail-content > code {
  display: block;
  margin: 10px 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.detail-grid p {
  color: var(--muted);
  font-size: 12px;
  margin: 6px 0;
}
.exposure {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 0;
  font-size: 12px;
}
.row-detail {
  margin-top: 16px;
}
.empty {
  padding: 44px 20px;
  text-align: center;
  color: var(--muted);
}
.empty p {
  margin-bottom: 16px;
}
.mobile-data {
  display: none;
}
.event-card,
.live-card {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.event-card header,
.live-card header {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.event-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0;
}
.event-card .event-area {
  font-size: 24px;
  color: var(--text);
  margin: 10px 0;
}
.weak-card {
  border: 1px dashed var(--line-strong);
}
.card-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}
.card-metrics small,
.card-metrics strong {
  display: block;
}
.card-metrics small {
  color: var(--muted);
}
.hero {
  font-size: 28px;
  color: var(--positive);
  margin: 10px 0;
}
.card-funding {
  font-size: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.card-funding small {
  display: inline-block;
  margin-left: 8px;
  color: var(--muted);
}
.venue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}
.venue-grid > div {
  padding: 8px;
  background: var(--surface-raised);
  border-radius: 6px;
}
.venue-grid b,
.venue-grid small,
.venue-grid span {
  display: block;
  font-size: 11px;
}
.live-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.calendar-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}
.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 16px;
  align-items: start;
}
.calendar-panel {
  padding-bottom: 12px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  padding: 12px;
}
.weekday-row,
.calendar-week {
  display: contents;
}
.weekday-row span {
  text-align: center;
  color: var(--muted);
  padding: 5px 0;
  font-size: 11px;
}
.cal-cell {
  min-height: 112px;
  min-width: 0;
  padding: 9px 8px;
  text-align: left;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  white-space: normal;
  overflow: hidden;
}
.cal-day-top {
  display: flex;
  justify-content: space-between;
  gap: 3px;
}
.cal-day-top small {
  color: var(--muted);
}
.cal-count {
  font-size: 20px;
  font-weight: 650;
}
.cal-count small {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.cal-area {
  font-size: 12px;
}
.cal-peak {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.cal-symbols {
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.cal-open {
  font-size: 11px;
  color: var(--accent);
}
.cal-cell.level-0 {
  background: var(--calendar-0);
}
.cal-cell.level-1 {
  background: var(--calendar-1);
}
.cal-cell.level-2 {
  background: var(--calendar-2);
}
.cal-cell.level-3 {
  background: var(--calendar-3);
}
.cal-cell.level-4 {
  background: var(--calendar-4);
  border-color: var(--line-strong);
}
.cal-cell.selected {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.cal-cell.missing,
.cal-cell.uncovered,
.cal-cell.future {
  border-style: dashed;
  color: var(--muted);
}
.calendar-legend {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 11px;
}
.day-panel {
  position: sticky;
  top: 72px;
  max-height: calc(100dvh - 90px);
  overflow-y: auto;
}
.day-summary {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.day-summary p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}
.day-area {
  font-size: 30px;
  margin: 8px 0;
}
.day-area small {
  font-size: 12px;
}
.day-panel .table-footer {
  flex-wrap: wrap;
  padding: 12px;
}
.day-panel .event-card {
  padding: 14px;
}
.day-panel .event-card .detail-grid {
  grid-template-columns: 1fr;
}
dialog {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-dialog);
  box-shadow: var(--shadow-overlay);
  max-width: calc(100vw - 24px);
  max-height: 90dvh;
  padding: 0;
}
dialog::backdrop {
  background: var(--backdrop);
}
.health-dialog {
  width: 760px;
}
.copy-dialog {
  padding: 20px;
  width: 560px;
}
.copy-dialog textarea {
  width: 100%;
  min-height: 120px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  margin: 12px 0;
  padding: 10px;
}
.modal-open {
  overflow: hidden;
}
.filter-dialog {
  position: fixed;
  inset: auto 0 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  max-height: 85dvh;
  border-radius: 20px 20px 0 0;
}
.filter-dialog header,
.filter-dialog footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.filter-dialog footer {
  border-top: 1px solid var(--line);
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  background: var(--surface-raised);
}
.sheet-content {
  max-height: calc(85dvh - 160px);
  overflow: auto;
}
.filter-dialog .filters {
  display: block !important;
  border: 0;
  border-radius: 0;
  margin: 0;
}
.filter-dialog .pair-options {
  position: static;
  box-shadow: none;
}
.filter-dialog .pair-picker {
  max-width: 100%;
}
.filter-dialog .search-group {
  display: block;
  width: 100%;
}
.filter-dialog .search-group input {
  width: 100%;
  margin-top: 5px;
}
.filter-dialog .filter-label {
  width: 100%;
  margin-top: 8px;
}
.filter-dialog .active-strip {
  flex-wrap: wrap;
}
@media (min-width: 1280px) {
  .metrics .metric:first-child {
    background: #132232;
    border-color: #506b86;
  }
}
@media (max-width: 1279px) {
  .topbar {
    gap: 10px;
  }
  .top-actions {
    gap: 5px;
  }
  .nav a {
    padding: 8px;
  }
  .calendar-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 12px;
  }
  .cal-cell {
    min-height: 96px;
  }
  .search-group input {
    width: 190px;
  }
  .cal-symbols {
    max-height: 16px;
  }
}
@media (max-width: 1023px) {
  .topbar {
    height: 96px;
    min-height: 96px;
    padding: 7px 16px 0;
    align-content: space-between;
  }
  .nav {
    height: 40px;
    overflow-x: auto;
    flex-shrink: 0;
  }
  .nav a,
  .legacy-menu summary {
    min-height: 40px;
  }
  .legacy-menu > div {
    top: 94px;
  }
  .page {
    padding: 16px;
  }
  .calendar-layout {
    grid-template-columns: 1fr;
  }
  .day-panel {
    position: static;
    max-height: none;
  }
  .more-filters > summary {
    display: list-item;
    padding: 8px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .source-line > span:last-child {
    margin-left: 0;
  }
  .top-actions #health-button {
    font-size: 11px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .topbar {
    padding: 7px 12px 0;
  }
  .brand {
    font-size: 13px;
  }
  .brand-mark {
    margin-right: 5px;
  }
  .top-actions {
    gap: 4px;
  }
  .top-actions .seg button {
    padding: 4px 6px;
    font-size: 11px;
    min-height: 36px;
  }
  .top-actions #health-button {
    padding: 4px 6px;
    min-height: 36px;
  }
  .top-actions #mock-label {
    position: absolute;
    right: 12px;
    top: 99px;
    font-size: 10px;
    z-index: 1;
  }
  .page {
    padding: 20px 12px 24px;
  }
  .page-head h1 {
    padding-right: 70px;
  }
  .filters:not(.sheet-panel) {
    display: none;
  }
  .mobile-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 12px 0;
  }
  .mobile-data {
    display: block;
  }
  .desktop-data {
    display: none;
  }
  .metric {
    padding: 12px;
    min-height: 110px;
  }
  .metric .value {
    font-size: 24px;
    overflow-wrap: anywhere;
  }
  .metric small {
    font-size: 11px;
  }
  .toolbar {
    gap: 6px;
  }
  .source-line {
    gap: 8px 12px;
  }
  .table-wrap {
    max-height: none;
  }
  .day-panel .event-card .toolbar a {
    flex: 1;
  }
  .calendar-grid {
    padding: 8px;
    gap: 4px;
  }
  .cal-cell {
    min-height: 82px;
    padding: 6px 4px;
    border-radius: 5px;
  }
  .cal-day-top b {
    font-size: 11px;
  }
  .cal-day-top small {
    font-size: 10px;
  }
  .cal-count {
    font-size: 14px;
  }
  .cal-count small {
    display: none;
  }
  .cal-area {
    font-size: 11px;
  }
  .cal-area small {
    display: block;
    font-size: 11px;
  }
  .cal-symbols,
  .cal-open,
  .cal-peak {
    display: none;
  }
  .calendar-toolbar {
    gap: 6px;
  }
  .calendar-toolbar button {
    padding: 5px 9px;
  }
  .calendar-toolbar input {
    width: 145px;
  }
  .day-panel {
    margin-top: 8px;
  }
  .calendar-legend {
    font-size: 11px;
  }
  .panel-head {
    flex-wrap: wrap;
  }
  .filter-dialog .filter-row .seg {
    max-width: 100%;
  }
  .filter-dialog .seg button {
    padding: 4px 7px;
    min-width: 38px;
  }
  .event-card .detail-content {
    padding: 12px 0;
  }
  .event-card .detail-content p {
    overflow-wrap: anywhere;
  }
  .event-card .detail-content .button-link {
    margin-top: 8px;
  }
  #global-notice {
    margin: 12px 12px 0;
  }
  .topbar .nav a {
    min-height: 40px;
  }
  button,
  .button-link,
  summary {
    min-height: 44px;
  }
  .text-button {
    min-height: 44px;
  }
  .event-card {
    padding: 14px;
  }
  .detail-content {
    overflow-wrap: anywhere;
  }
  .table-footer {
    padding: 12px;
  }
  .panel-head .toolbar {
    width: 100%;
  }
  .health-dialog .table-wrap {
    overflow: auto;
  }
  .filter-dialog header h2 {
    font-size: 18px;
  }
  .filter-dialog footer button {
    flex: 1;
    margin: 0 4px;
  }
}
@media (max-width: 374px) {
  .brand {
    font-size: 12px;
  }
  .brand-mark {
    display: none;
  }
  .top-actions .seg button {
    font-size: 10px;
    padding: 4px;
  }
  .top-actions #health-button {
    font-size: 10px;
    padding: 4px;
  }
  .page {
    padding-left: 10px;
    padding-right: 10px;
  }
  .calendar-grid {
    padding: 6px;
    gap: 3px;
  }
  .cal-cell {
    padding: 5px 3px;
  }
  .cal-day-top small {
    display: none;
  }
  .calendar-toolbar input {
    width: 130px;
  }
  .calendar-toolbar button {
    padding: 4px 7px;
  }
  .metric .value {
    font-size: 21px;
  }
  .card-funding small {
    display: block;
    margin: 4px 0;
  }
  .venue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* R3 Live: compact rows, all data columns visible from 1280 px. */
.live-table-wrap .boardtable {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
.live-table-wrap .live-col-symbol { width: 106px; }
.live-table-wrap .live-col-spread { width: 120px; }
.live-table-wrap .live-col-area { width: 98px; }
.live-table-wrap .live-col-duration { width: 92px; }
.live-table-wrap .live-col-funding { width: 118px; }
.live-table-wrap .live-col-probe { width: 81px; }
.live-table-wrap .boardtable th,
.live-table-wrap .boardtable td {
  min-width: 0;
  padding: 7px 6px;
  white-space: nowrap;
  line-height: 1.3;
}
.live-table-wrap .boardtable td {
  height: 62px;
  font-size: 12px;
}
.live-table-wrap .boardtable td small {
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
}
.live-table-wrap .boardtable th:nth-child(2),
.live-table-wrap .boardtable td:nth-child(2) {
  left: 106px;
}
.live-table-wrap .primarynum { font-size: 17px; }
.live-symbol-line,
.live-spread-line,
.live-symbol-meta {
  display: flex;
  align-items: center;
  gap: 4px;
}
.live-symbol-line { gap: 0; }
.live-symbol-line .symbol {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-symbol-line .expand {
  min-height: 20px;
  padding: 0 3px 0 0;
  flex: 0 0 auto;
}
.live-symbol-meta .badge {
  font-size: 10px;
  padding: 0 3px;
}
.live-confirm {
  padding: 0 3px;
  font-size: 10px;
  line-height: 15px;
}
.live-source-kind {
  display: inline-block;
  margin-left: 4px;
  font-size: 10px;
  opacity: .85;
}
.venue-mid { white-space: nowrap; }
.venue-quality {
  font-size: 10px;
  line-height: 14px;
  padding: 0 3px;
  margin-left: 3px;
}
.quote-token,
.quote-separator,
.live-funding,
.live-funding small,
.live-probe-button {
  white-space: nowrap;
}
.live-probe-button {
  min-height: 28px;
  padding: 3px 7px;
  font-size: 11px;
}
.live-recent { margin-top: 14px; }
.live-recent-list { padding: 0 14px; }
.live-recent-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) minmax(160px, 1.4fr) 150px 130px 120px 65px;
  align-items: center;
  gap: 12px;
  min-height: 45px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 12px;
}
.live-recent-row:last-child { border-bottom: 0; }
.live-recent-row:hover {
  background: var(--surface-hover);
  text-decoration: none;
}
.live-recent-symbol {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.live-recent-symbol .symbol {
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-recent-row time,
.live-recent-row small { color: var(--muted); }
.cal-count.cal-state {
  font-size: 14px;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (max-width: 1279px) and (min-width: 769px) {
  .live-table-wrap .boardtable { min-width: 1280px; }
  .live-table-wrap .boardtable th:nth-child(2)::after,
  .live-table-wrap .boardtable td:nth-child(2)::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: -1px;
    right: -13px;
    width: 12px;
    background: linear-gradient(90deg, rgba(0, 0, 0, .42), transparent);
    pointer-events: none;
  }
  .live-recent-row {
    grid-template-columns: minmax(140px, 1.1fr) minmax(135px, 1fr) 125px 105px 100px 55px;
    gap: 8px;
  }
}
@media (max-width: 768px) {
  .venue-grid .venue-quotes,
  .venue-grid .quote-token {
    display: block;
    white-space: nowrap;
  }
  .venue-grid .quote-separator { display: none; }
  .venue-grid .venue-quality { display: inline-flex; }
  .venue-grid .venue-mid { display: block; }
  .live-card .live-probe-button {
    min-height: 44px;
    padding: 5px 10px;
    font-size: 13px;
  }
  .live-recent-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 10px;
    padding: 11px 0;
    font-size: 11px;
  }
  .live-recent-symbol { gap: 5px; }
  .live-recent-direction { text-align: right; }
  .live-recent-row > :nth-child(even) { text-align: right; }
  .cal-count.cal-state { font-size: 10px; }
}

/* R4: keep compact mobile controls usable without changing the 96px shell. */
@media (max-width: 768px) {
  .topbar {
    padding-top: 0;
    padding-bottom: 0;
    row-gap: 4px;
  }
  .topbar .nav {
    height: 44px;
  }
  .topbar .nav a,
  .topbar .legacy-menu summary,
  .top-actions .seg button,
  .top-actions #health-button,
  .page .seg button,
  .filter-dialog .seg button,
  .filter-dialog .chip,
  .condition {
    min-height: var(--control-touch-h);
  }
  .top-actions .seg {
    padding: 0;
  }
  .top-actions .seg button,
  .page .seg button,
  .filter-dialog .seg button {
    min-width: var(--control-touch-h);
  }
  .filter-dialog .checkbox-label,
  .filter-dialog .pair-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: var(--control-touch-h);
  }
  .calendar-toolbar {
    flex-wrap: wrap;
  }
  .calendar-toolbar [data-month-delta] {
    min-width: var(--control-touch-h);
  }
}

/* R5: trade outcomes are the primary reading layer. */
.trade-summary {
  margin: 0 0 18px;
  background: linear-gradient(115deg, #172c37 0%, #122330 52%, #142230 100%);
  border: 1px solid #597e90;
  border-top: 3px solid var(--positive);
  border-radius: 10px;
  box-shadow: 0 8px 28px #00000020;
  overflow: hidden;
}
.trade-summary-head { padding: 20px 22px 12px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.trade-eyebrow { color: var(--positive); font-size: 10px; font-weight: 650; letter-spacing: 1.7px; margin-bottom: 5px; }
.trade-summary h2 { font-size: 24px; margin: 0; }
.trade-summary h2 span { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 12px; }
.trade-controls { display: flex; gap: 12px 22px; align-items: center; flex-wrap: wrap; padding: 10px 22px 16px; }
.trade-controls label, .trade-mode { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.trade-controls .seg { display: inline-flex; flex-wrap: nowrap; }
.trade-controls .seg button { white-space: nowrap; }
.trade-controls .seg button span { font-size: 11px; }
.trade-size input { width: 118px; font-family: var(--font-mono); }
.trade-size input[aria-invalid="true"] { border-color: var(--negative); }
.trade-overview { display: grid; grid-template-columns: minmax(250px, 1.25fr) minmax(280px, 1.05fr) minmax(220px, .8fr); gap: 24px; margin: 0 22px; padding: 22px 0; border-top: 1px solid #385469; border-bottom: 1px solid #385469; }
.trade-net > div:first-child, .trade-risk > span { font-size: 13px; color: var(--muted); }
.trade-net small { color: var(--muted); margin-left: 5px; font-size: 11px; }
.trade-net > strong { display: block; font-size: clamp(28px, 3.1vw, 46px); line-height: 1.4; letter-spacing: -1px; white-space: nowrap; }
.trade-usd { font-family: var(--font-mono); font-size: 18px; }
.trade-usd small { font-family: var(--font-ui); }
.trade-score { margin: 0; align-self: center; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 20px; }
.trade-score dd { font-size: 27px; }
.trade-stat dt { color: var(--muted); font-size: 12px; margin-bottom: 7px; }
.trade-stat dd { margin: 0; font-size: 20px; font-weight: 650; white-space: nowrap; }
.trade-score .trade-stat dd { font-size: 27px; }
.trade-score-note { grid-column: 1 / -1; font-size: 11px; color: var(--muted); margin-top: 6px; }
.trade-risk { border-left: 1px solid #385469; padding-left: 24px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.trade-risk > strong { font-size: 29px; white-space: nowrap; }
.trade-risk small { color: var(--muted); font-size: 11px; }
.trade-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 20px 22px; }
.trade-summary-foot { padding: 14px 22px; background: #0b172255; border-top: 1px solid #385469; }
.trade-status-counts { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--muted); font-size: 12px; }
.trade-status-counts b { color: var(--text); margin-left: 4px; }
.trade-summary-foot p, .trade-rule-line { font-size: 11px; color: var(--muted); margin: 9px 0 0; }
.trade-summary-foot a, .trade-rule-line a { white-space: nowrap; margin-left: 6px; }
.trade-state { color: var(--muted); font-size: 12px; }
.event-evidence-metrics .metric { min-height: 86px; padding: 12px 16px; background: var(--surface); border-color: var(--line); }
.event-evidence-metrics .metric:first-child { background: var(--surface); border-color: var(--line); }
.event-evidence-metrics .metric .value { font-size: 22px; }
.events-table { min-width: 2170px; }
.events-table th:first-child, .events-table td:first-child { width: 130px; min-width: 130px; }
.events-table th:nth-child(2), .events-table td:nth-child(2) { left: 130px; width: 155px; min-width: 155px; }
.events-table th:nth-child(3), .events-table td:nth-child(3) { min-width: 160px; }
.events-table th:nth-child(4), .events-table td:nth-child(4),
.events-table th:nth-child(5), .events-table td:nth-child(5),
.events-table th:nth-child(6), .events-table td:nth-child(6),
.events-table th:nth-child(7), .events-table td:nth-child(7) { min-width: 125px; }
.trade-net-cell { background: #72d6ad06; }
.trade-net-cell strong { font-size: 17px; }
.trade-breakdown { background: #0d1b27; border: 1px solid #496679; border-radius: 8px; overflow: hidden; margin-bottom: 16px; }
.trade-breakdown > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px 8px; }
.trade-breakdown h3 { margin: 0; font-size: 18px; }
.trade-breakdown h3 small { color: var(--muted); font-size: 12px; margin-left: 8px; font-weight: 400; }
.trade-breakdown .trade-controls { padding: 6px 16px 14px; }
.trade-breakdown-scroll { overflow: auto; }
.trade-breakdown table { width: 100%; min-width: 440px; table-layout: auto; }
.trade-breakdown table th, .trade-breakdown table td { position: static; left: auto; width: auto; min-width: 0; background: transparent; white-space: normal; padding: 9px 16px; text-align: left; }
.trade-breakdown table tbody th { color: var(--muted); font-size: 12px; width: 105px; white-space: nowrap; font-weight: 400; }
.trade-breakdown table td { font-size: 13px; }
.trade-breakdown td small { display: block; color: var(--muted); margin-top: 4px; }
.trade-breakdown tr.trade-net-row > * { background: #213b3d55; padding-top: 13px; padding-bottom: 13px; }
.trade-net-row .mono { font-size: 23px; font-weight: 700; }
.trade-mae-row .mono { font-weight: 650; }
.trade-detail-note { margin: 0; padding: 12px 16px; color: var(--muted); font-size: 11px; }
.event-trade-result { padding: 12px 0; }
.event-trade-result > span { color: var(--muted); font-size: 12px; }
.event-trade-result > strong { display: block; font-size: 28px; margin: 3px 0 8px; }
.event-trade-result > div { display: flex; gap: 5px 18px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.event-card .event-area { font-size: 16px; margin: 4px 0; }
.cal-cell { min-height: 156px; }
.cal-trade { font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.cal-trade-wins { color: var(--muted); font-size: 10px; }
.cal-cell.cal-net-neutral { background: #0e1a25; }
.cal-cell.cal-net-positive { background: #142c29; }
.cal-cell.cal-net-positive.cal-net-level-2 { background: #193c31; }
.cal-cell.cal-net-positive.cal-net-level-3 { background: #204b3b; }
.cal-cell.cal-net-positive.cal-net-level-4 { background: #285c47; border-color: #4a8768; }
.cal-cell.cal-net-negative { background: #2e2029; }
.cal-cell.cal-net-negative.cal-net-level-2 { background: #412632; }
.cal-cell.cal-net-negative.cal-net-level-3 { background: #542c3a; }
.cal-cell.cal-net-negative.cal-net-level-4 { background: #683444; border-color: #a1586b; }
.day-summary .day-trade-net { font-size: 30px; font-weight: 650; }
.day-summary .day-trade-net small { font-size: 12px; }
.live-trade-panel > .panel-head { border: 0; padding: 20px 22px 10px; }
.live-trade-panel .eyebrow { color: var(--positive); font-size: 10px; letter-spacing: 1.5px; }
.live-trade-panel .panel-head p { margin: 5px 0; }
.live-trade-panel .trade-controls { padding: 0; }
.live-trade-summary { display: flex; gap: 32px; flex-wrap: wrap; align-items: center; padding: 10px 22px 20px; }
.live-trade-summary > div > span { color: var(--muted); }
.live-trade-summary p { font-size: 12px; color: var(--muted); }
.live-trade-total { display: block; font-size: 38px; line-height: 1.5; }
.live-trade-list { border-top: 1px solid #385469; }
.live-trade-item { display: grid; grid-template-columns: minmax(170px, .7fr) minmax(0, 2fr) 16px; gap: 16px; align-items: center; padding: 14px 22px; border-bottom: 1px solid #385469; color: var(--text); }
.live-trade-item:last-child { border: 0; }
.live-trade-item:hover { background: #ffffff05; text-decoration: none; }
.live-trade-item small { display: block; font-size: 11px; margin-top: 3px; color: var(--muted); }
.live-trade-line { font-size: 16px; font-family: var(--font-mono); line-height: 1.65; }
.live-trade-panel .trade-rule-line { margin: 0; padding: 13px 22px; background: #0b172255; }
.live-table-wrap .boardtable { min-width: 1540px; }
.live-table-wrap .live-col-trade { width: 270px; }
.live-table-wrap .boardtable td.live-trade-cell { white-space: normal; }
.live-table-wrap .live-trade-line { display: block; font-size: 12px; white-space: normal; }
.live-card .live-trade-cell { margin-top: 12px; padding: 10px; background: #152b32; border: 1px solid #426477; border-radius: 6px; }
.live-card .live-trade-line { font-size: 13px; }
@media (max-width: 1100px) {
  .trade-overview { grid-template-columns: minmax(230px, 1fr) minmax(240px, 1fr); }
  .trade-risk { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; border: 0; border-top: 1px solid #385469; padding: 15px 0 0; gap: 16px; }
  .trade-risk strong { font-size: 24px; }
  .trade-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .trade-summary-head { padding: 16px 14px 8px; gap: 10px; }
  .trade-summary h2 { font-size: 22px; }
  .trade-summary h2 span { display: block; margin: 5px 0 0; font-size: 12px; }
  .trade-controls { padding: 10px 14px 14px; gap: 12px; }
  .trade-mode { display: block; width: 100%; }
  .trade-mode > span { display: block; margin-bottom: 5px; }
  .trade-controls .seg { width: 100%; padding: 2px; }
  .trade-controls .seg button { min-width: 0; flex: 1; padding: 6px; font-size: 12px; }
  .trade-controls .seg button span { display: block; font-size: 10px; }
  .trade-overview { display: flex; flex-direction: column; gap: 20px; margin: 0 14px; padding: 18px 0; }
  .trade-net > strong { font-size: clamp(27px, 8.3vw, 40px); }
  .trade-score { width: 100%; gap: 8px 10px; }
  .trade-score .trade-stat dd { font-size: 25px; }
  .trade-risk { flex-wrap: wrap; padding-top: 16px; gap: 6px 14px; }
  .trade-risk small { width: 100%; }
  .trade-stats { padding: 18px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 8px; }
  .trade-stat dd { font-size: 17px; }
  .trade-summary-foot { padding: 14px; }
  .trade-status-counts { gap: 6px 15px; }
  .event-evidence-metrics .metric { min-height: 80px; }
  .event-evidence-metrics .metric .value { font-size: 20px; }
  .trade-breakdown > header { flex-wrap: wrap; padding: 12px; }
  .trade-breakdown h3 small { display: block; margin: 4px 0 0; }
  .trade-breakdown .trade-controls { padding: 0 12px 12px; }
  .trade-breakdown table { min-width: 410px; }
  .trade-breakdown table th, .trade-breakdown table td { padding: 9px 12px; }
  .trade-net-row .mono { font-size: 21px; }
  .cal-cell { min-height: 141px; }
  .cal-trade { font-size: 10px; font-family: var(--font-ui); }
  .cal-trade-wins { font-size: 9px; }
  .cal-area { font-size: 10px; }
  .live-trade-panel > .panel-head { padding: 16px 14px; gap: 14px; }
  .live-trade-panel .trade-controls { width: 100%; }
  .live-trade-summary { padding: 0 14px 16px; gap: 8px 20px; }
  .live-trade-total { font-size: 30px; }
  .live-trade-item { grid-template-columns: 1fr 16px; gap: 6px; padding: 13px 14px; }
  .live-trade-item > .live-trade-line { grid-column: 1; grid-row: 2; font-size: 13px; }
  .live-trade-item > span:last-child { grid-row: 1 / 3; grid-column: 2; }
  .live-trade-panel .trade-rule-line { padding: 12px 14px; }
}
.live-table-wrap .boardtable td:nth-child(n + 4):nth-child(-n + 8) { min-width: 112px; }
.live-trade-list { max-height: 420px; overflow-y: auto; scrollbar-color: var(--line-strong) var(--bg); }
.expanded-event .detail-content { width: min(1320px, calc(100vw - 90px)); }
.events-table .trade-breakdown table th,
.events-table .trade-breakdown table td {
  position: static; left: auto; min-width: 0; width: auto;
  background: transparent; border-right: 0; z-index: auto;
}
.events-table .trade-breakdown tr.trade-net-row > * { background: #213b3d55; }
@media (min-width: 769px) and (max-width: 1279px) {
  .cal-trade { font-family: var(--font-ui); font-size: 11px; }
}
.live-trade-line .warning { color: var(--warning); }
