* { box-sizing: border-box; }
:root {
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  color: #f4f0ff;
  background: #110d1e;
  --muted: #bbb0cf;
  --outline: #45375d;
}
body { margin: 0; min-width: 280px; }
.shell { width: min(1120px, calc(100% - 46px)); margin-inline: auto; }
.topbar { border-bottom: 1px solid var(--outline); background: #161023; }
.topbar-inner, .page-heading, .panel-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.topbar-inner { min-height: 76px; }
.brand { display: flex; gap: 11px; align-items: center; }
.brand-mark {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px;
  background: url("jomtrade-brand.png") 68.1% 22.8% / 784% auto no-repeat;
}
.brand strong { display: block; font-size: 1.03rem; letter-spacing: .09em; }
.brand small { color: var(--muted); }
a { color: #e1caff; text-underline-offset: .25em; }
.page-heading { padding-block: 48px 28px; align-items: end; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.8rem, 4.7vw, 3.5rem); letter-spacing: -.05em; line-height: 1.08; }
h2 { font-size: 1.2rem; }
#feed-status { margin-top: 11px; color: var(--muted); line-height: 1.45; }
button, select { font: inherit; min-height: 43px; border-radius: 9px; }
button { padding: 7px 15px; font-weight: 650; color: #1c0e26; background: #dac1ff; border: 1px solid #dac1ff; cursor: pointer; flex: 0 0 auto; }
button:disabled { opacity: .65; cursor: default; }
:focus-visible { outline: 2px solid #f0ceff; outline-offset: 3px; }
.panel { overflow: hidden; border: 1px solid var(--outline); border-radius: 15px; background: #1b1429; margin-bottom: 40px; }
.panel-header, .filters { padding: 18px 20px; }
.panel-header > span { color: var(--muted); font-size: .875rem; }
.filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; border-top: 1px solid var(--outline); }
.filters label { display: grid; gap: 7px; color: var(--muted); font-size: .9rem; }
select { display: block; padding: 8px 10px; border: 1px solid var(--outline); color: #f4f0ff; background: #211730; width: 100%; }
.table-scroll { overflow-x: auto; }
.table-scroll:focus-visible { outline-offset: -3px; }
table { border-collapse: collapse; width: 100%; min-width: 610px; text-align: left; }
th, td { padding: 13px 20px; border-top: 1px solid var(--outline); white-space: nowrap; }
th { color: var(--muted); font-size: .86rem; font-weight: 620; }
td, time { font-variant-numeric: tabular-nums; }
.side { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: .79rem; font-weight: 730; }
.side.buy { color: #9ff5c9; background: #203c34; }
.side.sell { color: #ffb7ce; background: #4c2c40; }
.empty { color: var(--muted); padding: 28px 20px; border-top: 1px solid var(--outline); }
@media (max-width: 590px) {
  .shell { width: calc(100% - 28px); }
  .page-heading { align-items: flex-start; flex-direction: column; padding-block: 32px 22px; }
  .panel-header, .filters { padding-inline: 14px; }
  .filters { grid-template-columns: 1fr; gap: 11px; }
  th, td { padding-inline: 14px; }
}
