@font-face{font-family:Onest;src:url(/fonts/onest-latin-400-normal.woff2) format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:Onest;src:url(/fonts/onest-cyrillic-400-normal.woff2) format('woff2');font-weight:400;font-display:swap;unicode-range:U+0400-052F,U+2116}
@font-face{font-family:Onest;src:url(/fonts/onest-latin-500-normal.woff2) format('woff2');font-weight:500;font-display:swap}
@font-face{font-family:Onest;src:url(/fonts/onest-cyrillic-500-normal.woff2) format('woff2');font-weight:500;font-display:swap;unicode-range:U+0400-052F,U+2116}
@font-face{font-family:Onest;src:url(/fonts/onest-latin-600-normal.woff2) format('woff2');font-weight:600;font-display:swap}
@font-face{font-family:Onest;src:url(/fonts/onest-cyrillic-600-normal.woff2) format('woff2');font-weight:600;font-display:swap;unicode-range:U+0400-052F,U+2116}
@font-face{font-family:Onest;src:url(/fonts/onest-latin-700-normal.woff2) format('woff2');font-weight:700;font-display:swap}
@font-face{font-family:Onest;src:url(/fonts/onest-cyrillic-700-normal.woff2) format('woff2');font-weight:700;font-display:swap;unicode-range:U+0400-052F,U+2116}

:root {
  color-scheme: dark;
  --page: #0E1319;
  --panel: #131A22;
  --raised: #19222D;
  --hover: #1D2733;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --ink: #EEF2F6;
  --ink-2: #A8B3BF;
  --ink-3: #808B97;
  --rich: #BA8A3A;
  --cheap: #4C8BD8;
  --buy: #22A39B;
  --sell: #DE5C6E;
  --good: #2FB26E;
  --warn: #E7A93A;
  --bad: #D85A5A;
  --focus: #8DB6EA;
  font-family: Onest, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; display: flex; flex-direction: column; background: var(--page); }
[hidden] { display: none !important; }
h1, h2, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
a { color: var(--ink-2); }
a:hover { color: var(--ink); }

/* Top bar */
.topbar {
  height: 56px; padding: 0 24px; display: flex; align-items: center; gap: 28px;
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
  background: rgba(14, 19, 25, 0.92); backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.brand svg { width: 28px; height: 28px; }
.feeds { display: flex; gap: 18px; margin-left: auto; }
.feeds li { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); cursor: default; }
.feeds i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); opacity: .6; }
.feeds li[data-state="ok"] i { background: var(--good); opacity: 1; box-shadow: 0 0 0 3px rgba(47, 178, 110, 0.16); }
.feeds li[data-state="partial"] i { background: var(--warn); opacity: 1; }
.feeds li[data-state="down"] i { background: var(--bad); opacity: 1; }
.clock { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.clock time { color: var(--ink-2); }

.fatal { margin: 24px; padding: 14px 16px; border-radius: 10px; background: rgba(216, 90, 90, 0.1); border: 1px solid rgba(216, 90, 90, 0.35); display: grid; gap: 2px; }

/* Three columns: markets, chart, trade */
.layout {
  flex: 1; width: 100%; max-width: 1720px; margin: 0 auto;
  display: grid; grid-template-columns: 252px minmax(0, 1fr) 356px; grid-template-areas: "list desk ticket";
}
.watchlist { grid-area: list; padding: 18px 12px 24px; border-right: 1px solid var(--line); }
.desk { grid-area: desk; padding: 22px 28px 28px; min-width: 0; }
.ticket { grid-area: ticket; padding: 22px 22px 28px; border-left: 1px solid var(--line); background: var(--panel); }

/* Market list */
.group-title { margin: 14px 10px 6px; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.group-title:first-child { margin-top: 2px; }
.market {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 1px;
  padding: 10px 10px 11px 12px; border-radius: 10px; text-align: left; position: relative;
}
.market:hover { background: var(--hover); }
.market[aria-current="true"] { background: var(--raised); }
.market[aria-current="true"]::before {
  content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: var(--ink);
}
.market-ticker { font-weight: 600; font-size: 14px; }
.market-value { font-weight: 600; font-size: 14px; text-align: right; white-space: nowrap; }
.market-name { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-state { font-size: 12px; color: var(--ink-3); text-align: right; white-space: nowrap; }
.market-state[data-zone="rich"], .market-state[data-zone="cheap"] { color: var(--ink); }
.market-state i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.market-state[data-zone="rich"] i { background: var(--rich); }
.market-state[data-zone="cheap"] i { background: var(--cheap); }
.gauge { grid-column: 1 / -1; position: relative; height: 6px; margin-top: 8px; border-radius: 3px; background: rgba(255, 255, 255, 0.05); }
.gauge-band { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: rgba(255, 255, 255, 0.14); }
.gauge-zero { position: absolute; top: -2px; bottom: -2px; width: 1px; background: rgba(255, 255, 255, 0.35); }
.gauge-dot { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--ink); border: 2px solid var(--page); }
.gauge-dot[data-zone="rich"] { background: var(--rich); }
.gauge-dot[data-zone="cheap"] { background: var(--cheap); }
.market[aria-current="true"] .gauge-dot { border-color: var(--raised); }

/* Pair heading */
.pair-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; }
.pair-title { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.pair-title h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.pair-title span { color: var(--ink-2); font-size: 15px; }
.pair-legs { grid-column: 1 / -1; color: var(--ink-3); font-size: 13px; }
.zero-window { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.pair-legs b { color: var(--ink-2); font-weight: 500; }

/* Current reading */
.reading { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 32px; margin: 22px 0 18px; }
.figure { display: grid; }
.figure > span:first-child { font-size: 54px; font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.figure .unit { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.verdict { display: grid; gap: 4px; min-width: 0; }
.zone { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 600; line-height: 1.3; }
.zone i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); }
.zone[data-zone="rich"] i { background: var(--rich); }
.zone[data-zone="cheap"] i { background: var(--cheap); }
.zone[data-zone="median"] i, .zone[data-zone="normal"] i { background: var(--ink-2); }
.action { font-size: 15px; color: var(--ink); }
.action .verb { font-weight: 600; }
.verb.buy, .side.buy { color: var(--buy); }
.verb.sell, .side.sell { color: var(--sell); }
.normal { font-size: 13px; color: var(--ink-2); }

.notice { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; font-size: 13px; color: var(--ink-2); background: var(--panel); border: 1px solid var(--line); }
.notice strong { color: var(--ink); font-weight: 600; }

/* Chart */
.chart-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-height: 34px; }
.chart-tools .link { margin-left: auto; }
.chart-tools { margin-bottom: 10px; }
.link { color: var(--ink-2); font-size: 13px; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.link:hover { color: var(--ink); text-decoration-color: var(--ink-3); }
.chart-frame {
  position: relative; height: clamp(320px, 48vh, 580px); background: var(--panel);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.chart { position: absolute; inset: 10px 66px 2px 6px; }
.profile { position: absolute; top: 10px; right: 6px; width: 58px; height: 0; pointer-events: none; }
.chart-frame[data-view="legs"] .chart { right: 6px; }
.chart-frame[data-view="legs"] .profile { display: none; }
.chart-empty {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px;
  text-align: center; padding: 24px; background: rgba(19, 26, 34, 0.86); z-index: 2;
}
.chart-empty strong { font-size: 16px; font-weight: 600; }
.chart-empty span { max-width: 46ch; color: var(--ink-2); font-size: 13px; }
.chart-empty .link { margin-top: 6px; }
.tooltip {
  position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; min-width: 170px;
  padding: 9px 12px; border-radius: 10px; background: rgba(25, 34, 45, 0.97); border: 1px solid var(--line-2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); font-size: 12px;
}
.tip-time { color: var(--ink-3); margin-bottom: 4px; }
.tip-lines { display: grid; gap: 2px; }
.tip-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 7px; }
.tip-line strong { font-size: 14px; font-weight: 600; text-align: right; }
.tip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-2); }
.tip-dot.rich { background: var(--rich); }
.tip-dot.cheap { background: var(--cheap); }
.tip-note, .tip-empty { color: var(--ink-3); }
.tip-empty { font-size: 14px; color: var(--ink-2); }
.tip-prices { display: grid; gap: 1px; margin-top: 5px; padding-top: 5px; border-top: 1px solid var(--line); color: var(--ink-2); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 12px; color: var(--ink-3); }
.legend li { display: flex; align-items: center; gap: 7px; }
.legend li strong { color: var(--ink-2); font-weight: 600; }
.chart-help { margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.chart-help summary { cursor: pointer; list-style: none; color: var(--ink-3); }
.chart-help summary::-webkit-details-marker { display: none; }
.chart-help summary:hover { color: var(--ink-2); }
.chart-help p { margin-top: 6px; max-width: 90ch; line-height: 1.5; }
.swatch.line-rich, .swatch.line-cheap, .swatch.line-zero { height: 0; border-radius: 0; border-top: 2px solid var(--rich); }
.swatch.line-cheap { border-top-color: var(--cheap); }
.swatch.line-zero { border-top: 1px solid rgba(238, 242, 246, 0.55); }
.swatch { width: 14px; height: 10px; border-radius: 3px; }
.swatch.rich { background: linear-gradient(var(--rich) 0 2px, rgba(186, 138, 58, 0.3) 2px); }
.swatch.cheap { background: linear-gradient(rgba(76, 139, 216, 0.3) 0 8px, var(--cheap) 8px); }
.swatch.corridor { background: rgba(255, 255, 255, 0.08); border-block: 1px dashed rgba(255, 255, 255, 0.35); }
.swatch.profile { background: linear-gradient(90deg, rgba(168, 179, 191, 0.5) 0 60%, transparent 60%); height: 3px; box-shadow: 0 -4px 0 rgba(168, 179, 191, 0.3), 0 4px 0 rgba(168, 179, 191, 0.3); }

.facts { margin-top: 22px; }
.facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 24px; }
.facts dt { font-size: 12px; color: var(--ink-3); }
.facts dd { font-size: 16px; font-weight: 500; margin-top: 2px; white-space: nowrap; }
.facts dd small { font-size: 12px; color: var(--ink-3); font-weight: 400; }

/* Controls */
.segmented { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--page); border: 1px solid var(--line); }
.segmented button { height: 28px; padding: 0 11px; border-radius: 7px; color: var(--ink-2); font-size: 13px; font-weight: 500; white-space: nowrap; }
.segmented button:hover { color: var(--ink); background: var(--hover); }
.segmented button[aria-pressed="true"] { color: var(--ink); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-2); }
.ticket .segmented { background: rgba(0, 0, 0, 0.18); }

/* Trade ticket */
/* Every block after the first visible one is set off by a rule; hidden blocks stay in the DOM. */
.ticket > .entry, .ticket > .flow, .ticket > .position:not([hidden]) + .track {
  margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line);
}
.ticket header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ticket h2 { font-size: 16px; font-weight: 600; }
.ticket header > span { font-size: 12px; color: var(--ink-3); }
.size label { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 6px; }
.size-row { display: flex; gap: 8px; align-items: center; }
.money { flex: 1; min-width: 0; height: 36px; display: flex; align-items: center; gap: 4px; padding: 0 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.18); border: 1px solid var(--line); color: var(--ink-3); }
.money:focus-within { border-color: var(--focus); }
.money input { width: 100%; min-width: 0; background: none; border: 0; outline: none; color: var(--ink); font-weight: 500; }
input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
input::-webkit-inner-spin-button, input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.legs { margin-top: 16px; display: grid; gap: 8px; }
.leg { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 10px; align-items: baseline; padding: 11px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.16); border: 1px solid var(--line); }
.side { font-weight: 600; font-size: 13px; }
.leg-where { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leg-where small { color: var(--ink-3); font-weight: 400; font-size: 12px; margin-left: 4px; }
.leg-px { font-weight: 600; text-align: right; white-space: nowrap; }
.leg-qty, .leg-meta { font-size: 12px; color: var(--ink-3); }
.leg-qty { grid-column: 1 / 3; }
.leg-meta { text-align: right; white-space: nowrap; }
.swap { margin-top: 8px; font-size: 13px; color: var(--ink-2); padding: 4px 2px; }
.swap:hover { color: var(--ink); }
.swap span { display: inline-block; margin-right: 4px; }
.calc-note { margin-top: 10px; font-size: 12px; color: var(--ink-2); padding: 8px 10px; border-radius: 8px; background: rgba(231, 169, 58, 0.08); border: 1px solid rgba(231, 169, 58, 0.25); }

.totals { display: grid; gap: 9px; margin-top: 16px; }
.totals > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.totals dt { color: var(--ink-2); font-size: 13px; }
.totals dt small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 11px; }
.totals dd { font-weight: 500; text-align: right; white-space: nowrap; }
.totals dd small { color: var(--ink-3); font-weight: 400; font-size: 12px; margin-left: 6px; }
.totals .key { padding-top: 11px; margin-top: 2px; border-top: 1px solid var(--line); }
.totals .key dt { color: var(--ink); font-weight: 500; }
.totals .key dd { font-size: 20px; font-weight: 600; }
.totals dd[data-sign="loss"] { color: var(--sell); }
.totals dd[data-sign="gain"] { color: var(--buy); }

.primary { width: 100%; height: 44px; margin-top: 16px; border-radius: 10px; background: var(--ink); color: var(--page); font-weight: 600; font-size: 14px; }
.primary:hover:not(:disabled) { background: #FFFFFF; }
.secondary { width: 100%; height: 38px; margin-top: 14px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--ink-2); font-size: 13px; }
.secondary:hover { color: var(--ink); border-color: var(--ink-3); }

.fees { margin-top: 14px; font-size: 13px; }
.fees summary, .edit summary { cursor: pointer; color: var(--ink-2); list-style: none; }
.fees summary::-webkit-details-marker, .edit summary::-webkit-details-marker { display: none; }
.fees summary::after, .edit summary::after { content: ' ▾'; color: var(--ink-3); }
.fees[open] summary::after, .edit[open] summary::after { content: ' ▴'; }
.fees p { margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.fee-grid, .edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.fee-grid label, .edit-grid label { display: grid; gap: 4px; font-size: 12px; color: var(--ink-3); }
.fee-grid input, .edit-grid input { height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.18); color: var(--ink); min-width: 0; }
.fee-grid input:focus, .edit-grid input:focus { outline: none; border-color: var(--focus); }

/* Open position */
.position-legs { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.position-legs b { color: var(--ink); font-weight: 500; }
.progress { margin-top: 14px; }
.progress-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); }
.progress-scale span:last-child { color: var(--ink); }
.progress-track { height: 6px; margin-top: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.progress-track i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--ink-2); transition: width .4s ease; }
.progress p { margin-top: 6px; font-size: 12px; color: var(--ink-2); }
.edit { margin-top: 12px; font-size: 13px; }

/* Premium flow */
.flow ul { display: grid; gap: 8px; }
.flow li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13px; }
.flow-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.flow-bar i { display: block; height: 100%; background: var(--ink-2); border-radius: 3px; }
.flow li strong { font-weight: 600; }
.flow li small { grid-column: 2 / -1; font-size: 12px; color: var(--ink-3); margin-top: -6px; }


@media (max-width: 1360px) {
  .layout { grid-template-columns: 224px minmax(0, 1fr) 320px; }
  .desk { padding-inline: 22px; }
  .figure > span:first-child { font-size: 46px; }
}
@media (max-width: 1120px) {
  .layout { grid-template-columns: 224px minmax(0, 1fr); grid-template-areas: "list desk" "list ticket"; }
  .ticket { border-left: 0; border-top: 1px solid var(--line); background: transparent; padding: 22px 28px 28px; }
  .ticket { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; align-items: start; }
  .ticket > .entry, .ticket > .flow { margin-top: 22px; }
  .ticket > .position, .ticket > .track { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .topbar { padding: 0 14px; gap: 14px; }
  .feeds { gap: 12px; }
  .feeds span { display: none; }
  .feeds li::after { content: attr(data-short); font-size: 12px; color: var(--ink-2); }
  .layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "list" "desk" "ticket"; }
  .watchlist { display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .watchlist::-webkit-scrollbar { display: none; }
  .group-title { display: none; }
  .market { flex: 0 0 auto; width: 168px; padding: 8px 10px 9px; }
  .market-ticker { white-space: nowrap; }
  .market-name { display: none; }
  .market-state { grid-column: 1 / -1; text-align: left; }
  .desk { padding: 16px 14px 20px; }
  .pair-head { grid-template-columns: minmax(0, 1fr); }
  .ranges { justify-self: start; }
  .reading { grid-template-columns: minmax(0, 1fr); margin: 16px 0 14px; gap: 10px; }
  .figure > span:first-child { font-size: 42px; }
  .zone { font-size: 17px; }
  .chart-frame { height: 300px; border-radius: 12px; }
  .chart-tools { flex-wrap: wrap; gap: 6px 12px; }
  .chart-tools .link { margin-left: 0; }
  .zero-window { flex-wrap: wrap; white-space: normal; }
  .chart { right: 46px; }
  .profile { width: 40px; right: 4px; }
  .brand { font-size: 0; gap: 0; }
  .ticket { display: block; padding: 18px 14px 24px; }

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

/* Position tracking */
.position-legs li { line-height: 1.5; }
.position-warning { margin-top: 10px; font-size: 12px; color: var(--warn); }
.position-actions { display: flex; gap: 16px; margin-top: 14px; }
.track { font-size: 13px; }
.track > summary { cursor: pointer; list-style: none; font-size: 16px; font-weight: 600; color: var(--ink); }
.track > summary::-webkit-details-marker { display: none; }
.track > summary::after { content: ' ▾'; color: var(--ink-3); font-weight: 400; }
.track[open] > summary::after { content: ' ▴'; }
.wallet-form { margin-top: 14px; }
.wallet-form label, .tracked-paid { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 6px; }
.wallet-row { display: flex; gap: 8px; }
.wallet-row input, .tracked-legs input, .tracked-legs select, .tracked-paid input {
  height: 36px; min-width: 0; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18); color: var(--ink); font: inherit;
}
.wallet-row input { flex: 1; font-size: 13px; }
.wallet-row input:focus, .tracked-legs input:focus, .tracked-legs select:focus, .tracked-paid input:focus { outline: none; border-color: var(--focus); }
.wallet-row .secondary { width: auto; height: 36px; margin: 0; padding: 0 14px; }
.wallet-status { margin-top: 8px; font-size: 12px; color: var(--ink-2); }
.wallet-status:empty { display: none; }
.tracked-form { margin-top: 14px; display: grid; gap: 10px; }
.tracked-leg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; }
.tracked-leg > span { grid-column: 1 / -1; font-size: 12px; color: var(--ink-2); }
.tracked-leg > span small { color: var(--ink-3); margin-left: 6px; }
.tracked-leg select { grid-column: 1 / -1; }
.tracked-legs { display: grid; gap: 12px; }
.tracked-paid input { display: block; width: 100%; margin-top: 6px; }
.tracked-error { font-size: 12px; color: var(--sell); }
.tracked-form .primary { margin-top: 2px; }
.market-badge { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 4px; background: var(--raised); color: var(--ink-2); font-size: 11px; font-weight: 500; vertical-align: 1px; }
.market-state b.tracked { font-weight: 500; color: var(--ink); }
