:root {
  --bg: #0a0e13; --card: #121821; --card-2: #182130; --line: #1f2a38; --text: #e8eef5; --muted: #8b98a9; --faint: #5b6675;
  --up: #30d158; --down: #ff453a; --accent: #0a84ff; --amber: #ffb340; --up-soft: rgba(48,209,88,.14); --down-soft: rgba(255,69,58,.14);
  --radius: 14px; --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Inter, Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 18px 16px 80px; }

/* top bar */
.top { display: flex; align-items: center; gap: 14px; padding: 6px 0 16px; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.brand .mode { font-size: 12px; color: var(--muted); padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; }
.status { margin-left: auto; font-size: 12.5px; color: var(--muted); text-align: right; line-height: 1.3; }
.status b { color: var(--text); font-weight: 600; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); margin-right: 6px; vertical-align: middle; }
.dot.live { background: var(--up); box-shadow: 0 0 0 3px var(--up-soft); }

/* search */
.search { position: relative; flex: 0 1 320px; }
.search input { width: 100%; background: var(--card); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 9px 12px 9px 34px; font-size: 14px; outline: none; }
.search input:focus { border-color: var(--accent); }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); }
.results { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.results button { display: flex; width: 100%; text-align: left; gap: 10px; padding: 10px 12px; align-items: center; }
.results button:hover, .results button:focus-visible { background: rgba(255,255,255,.05); outline: none; }
.results .sym { font-weight: 700; min-width: 64px; }
.results .nm { color: var(--muted); flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13.5px; }
.results .add { font-size: 12px; color: var(--accent); }

/* hero */
.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-bottom: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.card h2 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.equity { font-size: 40px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.equity small { font-size: 16px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 8px; font-weight: 600; font-size: 13.5px; }
.pill.up { background: var(--up); color: #04210c; } .pill.down { background: var(--down); color: #2b0602; } .pill.flat { background: var(--card-2); color: var(--muted); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px 16px; margin-top: 14px; }
.kv div { font-size: 12.5px; color: var(--muted); }
.kv b { display: block; font-size: 16px; color: var(--text); font-weight: 600; margin-top: 2px; }
.alloc { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--card-2); margin-top: 14px; }
.alloc span { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.week { margin-top: 12px; }
.bar { height: 8px; border-radius: 5px; background: var(--card-2); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); }
.week .row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }

/* tabs */
.tabs { display: flex; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 14px; overflow-x: auto; }
.tabs button { flex: 1; padding: 9px 12px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--card-2); color: var(--text); }
.tabs button:focus-visible { outline: 2px solid var(--accent); }
.panel[hidden] { display: none; }

/* stock rows */
.section { margin-bottom: 18px; }
.section h3 { margin: 0 0 8px 4px; font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; gap: 8px; }
.section h3 .count { color: var(--faint); font-weight: 500; text-transform: none; letter-spacing: 0; }
.list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.row { display: grid; grid-template-columns: minmax(120px, 1.3fr) 96px minmax(120px, 1fr) 96px 96px; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); width: 100%; text-align: left; }
.row:first-child { border-top: 0; }
.row:hover { background: rgba(255,255,255,.03); }
.row .id .sym { font-weight: 700; font-size: 15.5px; }
.row .id .nm { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row canvas { width: 96px; height: 30px; display: block; }
.row .hold { font-size: 12.5px; color: var(--muted); }
.row .hold b { color: var(--text); font-weight: 600; display: block; font-size: 13.5px; }
.row .px { text-align: right; font-weight: 600; font-size: 15.5px; }
.row .chg { text-align: right; }
.row .pill { min-width: 84px; text-align: right; }
.row.head { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 8px 16px; cursor: default; }
.row.head:hover { background: none; }
.empty { padding: 26px 18px; color: var(--muted); text-align: center; font-size: 14px; }
.empty b { color: var(--text); }

/* politics */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; padding: 2px 7px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.tag.buy { background: var(--up-soft); color: var(--up); } .tag.sell { background: var(--down-soft); color: var(--down); } .tag.n { background: var(--card-2); color: var(--muted); }
.pressure { display: grid; gap: 7px; }
.pressure .p { display: grid; grid-template-columns: 64px 1fr 40px; gap: 10px; align-items: center; font-size: 13px; }
.pressure .p b { font-weight: 700; }
.pressure .p .track { height: 8px; background: var(--card-2); border-radius: 5px; overflow: hidden; position: relative; }
.pressure .p .track span { position: absolute; top: 0; bottom: 0; }
.pressure .p .v { text-align: right; color: var(--muted); }
.tbl-wrap { overflow-x: auto; }
.note { font-size: 13px; color: var(--muted); padding: 10px 12px; border-left: 3px solid var(--amber); background: rgba(255,179,64,.08); border-radius: 0 8px 8px 0; margin-bottom: 12px; }

/* activity */
.fills .f { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--line); font-size: 13.5px; align-items: start; }
.fills .f:first-child { border-top: 0; }
.fills .when { color: var(--muted); font-size: 12.5px; font-family: var(--mono); }
.fills .what b { font-weight: 700; }
.fills .why { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.fills .ev { color: var(--faint); font-size: 12px; margin-top: 2px; }
.fills .amt { font-weight: 600; text-align: right; white-space: nowrap; }
.chips { display: inline-flex; gap: 4px; flex-wrap: wrap; margin-left: 6px; vertical-align: middle; }
.chips span { font-size: 11px; padding: 1px 6px; border-radius: 5px; background: var(--card-2); color: var(--muted); }
pre.log { margin: 0; padding: 14px 16px; font: 12.5px/1.5 var(--mono); color: #c9d4e0; white-space: pre-wrap; word-break: break-word; max-height: 460px; overflow: auto; }
pre.log .h { color: var(--accent); font-weight: 700; }
pre.log .buy { color: var(--up); } pre.log .sell { color: var(--amber); } pre.log .dim { color: var(--faint); }
.lessons li { margin: 6px 0; color: #c9d4e0; font-size: 13.5px; }
.lessons .d { color: var(--faint); font-family: var(--mono); font-size: 12px; margin-right: 6px; }

/* detail sheet */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); z-index: 40; }
.sheet { position: fixed; z-index: 41; right: 0; top: 0; bottom: 0; width: min(560px, 100%); background: var(--bg); border-left: 1px solid var(--line); overflow-y: auto; padding: 18px 20px 40px; }
.sheet .close { position: absolute; right: 14px; top: 12px; width: 32px; height: 32px; border-radius: 50%; background: var(--card-2); color: var(--muted); font-size: 18px; }
.sheet .title .sym { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.sheet .title .nm { color: var(--muted); font-size: 14px; }
.sheet .price { font-size: 34px; font-weight: 700; margin: 10px 0 4px; letter-spacing: -.02em; }
.sheet .sub { color: var(--muted); font-size: 13px; }
.ranges { display: inline-flex; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 3px; margin: 14px 0 8px; }
.ranges button { padding: 6px 11px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--muted); }
.ranges button[aria-pressed="true"] { background: var(--card-2); color: var(--text); }
.chart { width: 100%; height: 240px; display: block; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 14px; margin: 14px 0; }
.stats div { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; }
.stats b { display: block; color: var(--text); font-size: 14.5px; font-weight: 600; margin-top: 2px; }
.sheet h4 { margin: 18px 0 8px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.news li { list-style: none; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.news li .src { color: var(--faint); font-size: 12px; margin-top: 2px; }
.news { margin: 0; padding: 0; }
.actions { display: flex; gap: 8px; margin-top: 10px; }
.btn { padding: 8px 12px; border-radius: 9px; background: var(--card-2); border: 1px solid var(--line); font-weight: 600; font-size: 13px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

footer { margin-top: 30px; color: var(--faint); font-size: 12px; text-align: center; line-height: 1.6; }

@media (max-width: 760px) {
  .hero, .grid2 { grid-template-columns: 1fr; }
  .top { flex-wrap: wrap; } .search { flex: 1 1 100%; order: 3; } .status { flex: 1; }
  .row { grid-template-columns: minmax(90px, 1fr) 72px 84px 88px; gap: 8px; padding: 11px 12px; }
  .row canvas { width: 72px; height: 28px; }
  .row .hold { display: none; }
  .equity { font-size: 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* full-screen trading view */
.trade { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column; height: 100dvh; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.t-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px 6px; }
.t-close { width: 34px; height: 34px; border-radius: 50%; background: var(--card-2); color: var(--muted); font-size: 20px; flex: none; }
.t-title { display: flex; flex-direction: column; min-width: 0; }
.t-sym { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.t-name { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-price { margin-left: auto; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.t-price > .num { font-size: 22px; font-weight: 700; }
.t-chg .dim { color: var(--muted); font-size: 12px; margin-left: 4px; }
.t-bar { display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 4px 14px 6px; }
.chips { display: inline-flex; gap: 3px; background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 3px; }
.chips button { padding: 5px 9px; border-radius: 7px; font-weight: 600; font-size: 12.5px; color: var(--muted); }
.chips button[aria-pressed="true"] { background: var(--card-2); color: var(--text); }
.chips button:focus-visible { outline: 2px solid var(--accent); }
.t-read { padding: 4px 14px; font-size: 12.5px; min-height: 22px; color: var(--text); white-space: nowrap; overflow-x: auto; }
.t-read .dim, .t-foot .dim { color: var(--muted); }
.t-chart { flex: 1; min-height: 240px; margin: 0 6px; position: relative; }
.t-foot { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; align-items: center; padding: 8px 14px 10px; border-top: 1px solid var(--line); font-size: 13px; }
.t-entry { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.t-entry label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.t-entry input { width: 96px; background: var(--card); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 8px; font: 600 13px var(--font); font-variant-numeric: tabular-nums; }
.t-entry input:focus { outline: none; border-color: var(--accent); }
.t-pl { display: grid; gap: 2px; font-size: 13px; }
.t-open { margin-left: auto; }
@media (max-width: 760px) {
  .t-foot { grid-template-columns: 1fr; }
  .t-price > .num { font-size: 18px; }
  .t-bar { gap: 6px; }
}

/* positions the agent actually holds — highlighted and floated up */
.row.held { background: linear-gradient(90deg, rgba(10,132,255,.10), rgba(10,132,255,0) 60%); box-shadow: inset 3px 0 0 var(--accent); }
.row.held:hover { background: linear-gradient(90deg, rgba(10,132,255,.16), rgba(10,132,255,.02) 60%); }
.row.held .id .sym { color: #cfe4ff; }
.heldchip { display: inline-block; margin-left: 7px; padding: 1px 7px; border-radius: 6px; background: var(--accent); color: #fff; font: 700 11px/1.5 var(--font); font-variant-numeric: tabular-nums; vertical-align: 1px; }
.heldcount { color: var(--accent); font-weight: 600; }

.pill{display:inline-block;border-radius:6px;padding:1px 7px;font-size:11px;font-weight:700;letter-spacing:.04em;vertical-align:middle}
.pill.paused{background:var(--down);color:#fff}

/* standing orders: what the agent is waiting for */
.working .w { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.working .w > div { min-width: 0; }   /* without this a long reason pushes the price off the row */
.working .w:last-child { border-bottom: 0; }
.working .w:hover { background: var(--card-2); }
.working .k { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 6px; border-radius: 5px; text-align: center; }
.working .k.buy { background: var(--up-soft); color: var(--up); }
.working .k.sell { background: var(--down-soft); color: var(--down); }
.working .w .why { font-size: 12.5px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.working .w .lvl { text-align: right; font-variant-numeric: tabular-nums; }
.working .w .away { font-size: 12px; color: var(--muted); }
.working .w .away.near { color: var(--amber); font-weight: 600; }

/* --- chart overlays: the volume profile is painted on our own canvas above the chart --- */
.t-chart { position: relative; }
.t-liq { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.t-legend { position: absolute; left: 10px; top: 8px; z-index: 3; pointer-events: none;
  background: rgba(10,14,19,.78); border: 1px solid #1f2a38; border-radius: 6px;
  padding: 4px 8px; font-size: 11px; color: #8b98a9; letter-spacing: .01em; }
.t-legend b { color: #e8edf4; font-weight: 600; }
.t-legend b.num { font-variant-numeric: tabular-nums; }
/* the hold clock: a position is sold automatically when this reaches zero */
.t-clock { margin-left: 10px; font-size: 11px; font-variant-numeric: tabular-nums;
  padding: 2px 7px; border-radius: 999px; background: rgba(10,132,255,.15);
  color: #0a84ff; border: 1px solid rgba(10,132,255,.35); white-space: nowrap; }
.t-clock.soon { background: rgba(255,179,64,.15); color: #ffb340; border-color: rgba(255,179,64,.4); }
.t-clock.over { background: rgba(255,69,58,.15); color: #ff453a; border-color: rgba(255,69,58,.4); }

/* the price ticks: a brief flash so a live update is visible without being noisy */
@keyframes sa-pulse { 0% { opacity: .45; } 100% { opacity: 1; } }
.t-price > .num.pulse { animation: sa-pulse .35s ease-out; }
@media (prefers-reduced-motion: reduce) { .t-price > .num.pulse { animation: none; } }

/* each holding's auto-sell countdown (same look as the chart's hold clock), and a flash on a live price change */
.sellclock { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums;
  padding: 1px 7px; border-radius: 999px; background: rgba(10,132,255,.15); color: var(--accent);
  border: 1px solid rgba(10,132,255,.35); white-space: nowrap; vertical-align: 1px; }
.sellclock:empty { display: none; }
.sellclock.soon { background: rgba(255,179,64,.15); color: var(--amber); border-color: rgba(255,179,64,.4); }
.sellclock.over { background: rgba(255,69,58,.15); color: var(--down); border-color: rgba(255,69,58,.4); }
.row .px.pulse { animation: sa-pulse .35s ease-out; }

/* calendar tab: each trading day's result, plus the plan's milestones */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cal-head h2 { margin: 0; }
.cal-head button { padding: 3px 12px; font-size: 18px; line-height: 1.3; border: 1px solid var(--line); border-radius: 8px; color: var(--text); }
.cal-head button:hover { background: var(--card-2); }
.cal-sum { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 12px; font-size: 13px; color: var(--muted); }
.cal-sum b { color: var(--text); font-variant-numeric: tabular-nums; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; text-align: center; padding: 2px 0 4px; }
.cal-day { min-height: 82px; background: var(--card-2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 6px; font-size: 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-day.off { background: transparent; border-style: dashed; opacity: .6; }
.cal-day.blank { background: transparent; border: 0; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-day .n { color: var(--muted); font-size: 11px; }
.cal-day .pl { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13px; }
.cal-day .pl.up { color: var(--up); } .cal-day .pl.down { color: var(--down); } .cal-day .pl.flat { color: var(--muted); }
.cal-day .sub { color: var(--faint); font-size: 10.5px; }
.cal-ms { font-size: 10.5px; line-height: 1.25; padding: 2px 5px; border-radius: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ms.fix { background: rgba(10,132,255,.16); color: #64b5ff; }
.cal-ms.check, .cal-ms.test { background: rgba(255,179,64,.14); color: var(--amber); }
.cal-ms.verdict { background: rgba(191,90,242,.16); color: #d59bff; }
.cal-ms.money { background: var(--up-soft); color: var(--up); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 10px; }
.cal-up { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.cal-up:last-child { border-bottom: 0; }
.cal-up .when { color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-up .why { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
@media (max-width: 640px) { .cal-day { min-height: 62px; padding: 4px; } .cal-ms { white-space: normal; font-size: 9.5px; } .cal-day .sub { display: none; } }
#next-update, #next-check { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .row .px.pulse { animation: none; } }

/* how fresh the price is, so "is this thing even updating" is answerable at a glance */
.t-live { margin-left: 8px; font-size: 10px; font-weight: 700; letter-spacing: .06em;
  padding: 2px 7px; border-radius: 999px; background: rgba(48,209,88,.15);
  color: #30d158; border: 1px solid rgba(48,209,88,.35); white-space: nowrap; }
.t-live.stale { background: rgba(139,152,169,.15); color: #8b98a9; border-color: rgba(139,152,169,.35); }
#t-reset button { font-weight: 600; }

/* The one number the owner opens the chart to see: how far up or down this position is.
   The buy-in LINE says where; this says how much, at a size that cannot be missed. */
.t-pos { display: flex; align-items: baseline; gap: 8px; margin-top: 6px;
  padding: 6px 12px; border-radius: 10px; border: 1px solid transparent; white-space: nowrap; }
.t-pos.up   { background: rgba(48,209,88,.12);  border-color: rgba(48,209,88,.35); color: #30d158; }
.t-pos.down { background: rgba(255,69,58,.12);  border-color: rgba(255,69,58,.35); color: #ff453a; }
.t-pos-arrow { font-size: 13px; }
.t-pos-big { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.t-pos-pct { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; opacity: .9; }
.t-pos-sub { font-size: 11px; color: var(--muted); font-weight: 500; margin-left: 2px; }
@media (max-width: 560px) {
  .t-pos { flex-wrap: wrap; gap: 4px 8px; }
  .t-pos-big { font-size: 20px; }
  .t-pos-sub { width: 100%; }
}

/* the trade's shape: how much it is playing for against how much it is risking */
.t-zonelegend { top: auto; bottom: 8px; left: 10px; }
