/* ==========================================================
   Trade view — pro terminal (tokens only, dark + light)
   ========================================================== */
#view-trade .tr-grid {
  display: grid; gap: var(--gap);
  grid-template-columns: 260px minmax(0, 1fr) 320px;
  grid-template-areas: "watch chart ticket" "watch ana ticket";
  grid-template-rows: auto 1fr;
  align-items: start;
}
#view-trade .tr-watch { grid-area: watch; position: sticky; top: calc(var(--top-h) + 16px); max-height: calc(100vh - var(--top-h) - 32px); display: flex; flex-direction: column; overflow: hidden; }
#view-trade .tr-chartcard { grid-area: chart; display: flex; flex-direction: column; overflow: hidden; }
#view-trade .tr-ticket { grid-area: ticket; position: sticky; top: calc(var(--top-h) + 16px); display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - var(--top-h) - 32px); overflow-y: auto; }
#view-trade .tr-ana { grid-area: ana; }

/* ---------- watchlist ---------- */
#view-trade .tr-wh { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px; }
#view-trade .tr-wh h3 { font-size: var(--fs-md); display: flex; align-items: center; gap: 8px; }
#view-trade .tr-wh h3 .ic { color: var(--warn); width: 16px; height: 16px; }
#view-trade .tr-search { padding: 0 12px 10px; }
#view-trade .tr-sbox { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--panel-2); transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast); }
#view-trade .tr-sbox:hover { border-color: var(--line-2); }
#view-trade .tr-sbox:focus-within { border-color: var(--accent); background: var(--panel); box-shadow: 0 0 0 3px var(--accent-bg); }
#view-trade .tr-sbox .ic { width: 15px; height: 15px; color: var(--muted); }
#view-trade .tr-sin { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 13px; }
#view-trade .tr-sres { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; max-height: 280px; overflow-y: auto; }
#view-trade .tr-sres .skel { padding: 8px 4px; }
#view-trade .tr-sr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 7px 8px; border-radius: var(--r-sm); cursor: pointer; font-size: 12.5px; }
#view-trade .tr-sr:hover { background: var(--hover); }
#view-trade .tr-sr .mkt-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-trade .tr-sr .num { font-size: 11.5px; color: var(--muted); }
#view-trade .tr-sr .btn .ic { width: 12px; height: 12px; }
#view-trade .tr-snone { padding: 10px 6px; font-size: 12px; color: var(--muted); }

#view-trade .tr-wl { flex: 1; overflow-y: auto; padding: 0 8px 10px; }
#view-trade .tr-wg { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 600; color: var(--dim); padding: 10px 8px 4px; letter-spacing: .02em; }
#view-trade .tr-wg .num { font-size: 10.5px; }
#view-trade .tr-wr {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px;
  padding: 8px 8px; border-radius: var(--r-sm); cursor: pointer; position: relative;
  transition: background .12s; outline: none;
}
#view-trade .tr-wr:hover { background: var(--hover); }
#view-trade .tr-sr:focus-visible, #view-trade .tr-wr:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
#view-trade .tr-wr.active { background: var(--accent-bg); }
#view-trade .tr-wr.active::before { content: ''; position: absolute; inset-inline-start: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--accent); }
#view-trade .tr-star { border: 0; background: none; padding: 2px; border-radius: var(--r-xs); color: var(--warn); opacity: .85; display: grid; place-items: center; }
#view-trade .tr-star svg { width: 14px; height: 14px; }
#view-trade .tr-star:hover { opacity: 1; color: var(--muted); }
#view-trade .tr-wn { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
#view-trade .tr-wn b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-trade .tr-wn small { font-size: 10.5px; color: var(--dim); }
#view-trade .tr-wq { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; min-width: 0; }
#view-trade .tr-wb { font-size: 13px; font-weight: 600; padding: 0 3px; border-radius: 4px; }
#view-trade .tr-wp { font-size: 10.5px; padding: 1px 6px; }

/* ---------- chart header ---------- */
#view-trade .tr-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
#view-trade .tr-title { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; }
#view-trade .tr-title .mkt-name { min-width: 0; }
#view-trade .tr-title .mkt-name b { font-size: var(--fs-lg); max-width: 32ch; }
#view-trade .tr-px { display: flex; flex-direction: column; gap: 2px; }
#view-trade .tr-mid { font-size: var(--fs-hero); font-weight: 700; line-height: 1.1; padding: 0 4px; border-radius: 6px; transition: color .3s; }
#view-trade .tr-bo { display: flex; gap: 12px; font-size: 11.5px; color: var(--muted); }
#view-trade .tr-bo b { font-weight: 600; margin-inline-start: 3px; }
#view-trade .tr-bo .tr-spr { color: var(--text-2); }
#view-trade .tr-day { display: flex; flex-direction: column; gap: 2px; }
#view-trade .tr-day b { font-size: 14px; font-weight: 600; }
#view-trade .tr-range { flex: 1; min-width: 180px; max-width: 320px; display: flex; flex-direction: column; gap: 6px; }
#view-trade .tr-rl { display: flex; justify-content: space-between; align-items: center; direction: ltr; font-size: 11.5px; }
#view-trade .tr-rl .num { color: var(--text-2); }
#view-trade .tr-rbar { position: relative; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--down-bg), var(--panel-3), var(--up-bg)); border: 1px solid var(--line); direction: ltr; }
#view-trade .tr-rpos { position: absolute; top: 50%; width: 12px; height: 12px; margin-left: -6px; margin-top: -6px; border-radius: 50%; background: var(--accent); border: 2px solid var(--panel); box-shadow: 0 0 0 1px var(--accent); transition: left .4s var(--ease); }

/* toolbar */
#view-trade .tr-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
#view-trade .tr-res { flex-wrap: wrap; }
#view-trade .tr-res button { font-family: var(--mono); font-size: 12px; }
#view-trade .tr-inds { display: flex; flex-wrap: wrap; gap: 4px; }
#view-trade .tr-tg:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
#view-trade .tr-tg { height: 28px; padding: 0 10px; border-radius: 20px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 12px; font-weight: 500; transition: all .15s; }
#view-trade .tr-tg:hover { color: var(--text); border-color: var(--line-2); }
#view-trade .tr-tg.active { background: var(--accent-bg); border-color: transparent; color: var(--accent); }
#view-trade .tr-acts { display: flex; gap: 6px; margin-inline-start: auto; }

/* chart area */
#view-trade .tr-cwrap { position: relative; height: clamp(380px, 56vh, 640px); direction: ltr; }
#view-trade .tr-chart { position: absolute; inset: 0; direction: ltr; }
#view-trade .tr-cmsg { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: var(--panel); text-align: center; padding: 16px; }
#view-trade .tr-cmsg .empty p { max-width: 380px; }
#view-trade .tr-cmsg.loading { background: color-mix(in srgb, var(--panel) 70%, transparent); }
#view-trade .tr-cmsg.loading p { color: var(--muted); font-size: 13px; margin-top: 10px; }
#view-trade .tr-cmsg.stale { inset: 10px 10px auto 10px; background: none; padding: 0; display: flex; justify-content: center; pointer-events: none; }
#view-trade .tr-stale { pointer-events: auto; display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 20px; background: var(--warn-bg); color: var(--warn); font-size: 12px; border: 1px solid var(--line); backdrop-filter: blur(6px); }
#view-trade .tr-stale .ic { width: 15px; height: 15px; }
#view-trade .tr-spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; margin: 0 auto; }
#view-trade .tr-cfoot { display: flex; justify-content: space-between; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 11px; color: var(--dim); }
#view-trade .tr-allow .num { color: var(--muted); }
#view-trade .tr-allow.warn .num { color: var(--warn); }

/* fullscreen */
#view-trade .tr-chartcard.tr-full { position: fixed; inset: 0; z-index: 90; border-radius: 0; border: 0; animation: none; translate: none; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
#view-trade .tr-chartcard.tr-full .tr-cwrap { flex: 1; height: auto; }
#view-trade .tr-chartcard.tr-full [data-act="full"] { color: var(--accent); border-color: var(--accent); }
body.tr-noscroll { overflow: hidden; }

/* ---------- analysis ---------- */
#view-trade .tr-ana-top { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; align-items: center; }
#view-trade .tr-gauge { position: relative; display: flex; flex-direction: column; align-items: center; }
#view-trade .tr-gauge svg { width: 100%; max-width: 220px; height: auto; overflow: visible; }
#view-trade .tr-arc { fill: none; stroke-width: 14; stroke-linecap: round; }
#view-trade .tr-arc.s0 { stroke: var(--down); }
#view-trade .tr-arc.s1 { stroke: var(--down); opacity: .45; }
#view-trade .tr-arc.s2 { stroke: var(--line-2); }
#view-trade .tr-arc.s3 { stroke: var(--up); opacity: .45; }
#view-trade .tr-arc.s4 { stroke: var(--up); }
#view-trade .tr-needle { transform-box: view-box; transform-origin: 100px 100px; transition: transform .9s var(--ease); }
#view-trade .tr-needle line { stroke: var(--text); stroke-width: 3.5; stroke-linecap: round; }
#view-trade .tr-needle circle { fill: var(--text); stroke: var(--panel); stroke-width: 3; }
#view-trade .tr-g-v { font-size: 26px; font-weight: 700; margin-top: -4px; }
#view-trade .tr-g-l { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
#view-trade .tr-gauge.up .tr-g-v, #view-trade .tr-gauge.up .tr-g-l { color: var(--up); }
#view-trade .tr-gauge.down .tr-g-v, #view-trade .tr-gauge.down .tr-g-l { color: var(--down); }
#view-trade .tr-g-ends { position: absolute; top: 96px; inset-inline: 0; display: flex; flex-direction: row-reverse; justify-content: space-between; font-size: 10.5px; color: var(--dim); pointer-events: none; }
#view-trade .tr-ana-info { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
#view-trade .tr-summary { font-size: 14px; line-height: 1.75; color: var(--text); }
#view-trade .tr-facts { display: flex; flex-wrap: wrap; gap: 6px; }
#view-trade .tr-pivots { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
#view-trade .tr-pv { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line); font-size: 12px; }
#view-trade .tr-pv i { font: 600 10.5px var(--mono); font-style: normal; color: var(--muted); }
#view-trade .tr-pv.up i { color: var(--up); }
#view-trade .tr-pv.down i { color: var(--down); }

#view-trade .tr-sigs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 18px; }
#view-trade .tr-sig { transition: border-color var(--t-fast); padding: 11px 12px; border-radius: var(--r); background: var(--panel-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; min-width: 0; }
#view-trade .tr-sig-h { display: flex; align-items: center; gap: 7px; font-size: 12.5px; }
#view-trade .tr-sig-h b { font-weight: 600; }
#view-trade .tr-sig-h .num { margin-inline-start: auto; font-size: 11.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
#view-trade .tr-sig p { font-size: 12px; color: var(--muted); line-height: 1.55; }
#view-trade .tr-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
#view-trade .tr-dot.up { background: var(--up); box-shadow: 0 0 0 3px var(--up-bg); }
#view-trade .tr-dot.down { background: var(--down); box-shadow: 0 0 0 3px var(--down-bg); }

#view-trade .tr-lvls { margin-top: 18px; display: flex; flex-direction: column; gap: 3px; }
#view-trade .tr-lvls-h { display: flex; justify-content: space-between; margin-bottom: 4px; }
#view-trade .tr-lv { display: grid; grid-template-columns: 90px minmax(0, 1fr) 90px 80px; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--r-sm); font-size: 12.5px; }
#view-trade .tr-lv .num { text-align: end; }
#view-trade .tr-lv b.num { text-align: start; font-weight: 600; }
#view-trade .tr-lv.r { background: var(--down-bg); }
#view-trade .tr-lv.r .tr-lv-k { color: var(--down); }
#view-trade .tr-lv.s { background: var(--up-bg); }
#view-trade .tr-lv.s .tr-lv-k { color: var(--up); }
#view-trade .tr-lv.now { border: 1px dashed var(--line-2); background: var(--panel-2); }
#view-trade .tr-lv.now .tr-lv-k { color: var(--accent); font-weight: 600; }
#view-trade .tr-disc { margin-top: 14px; font-size: 11px; color: var(--dim); text-align: center; }

/* ---------- order ticket ---------- */
#view-trade .tr-tk-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#view-trade .tr-tk-h .mkt-name b { font-size: 15px; }
#view-trade .tr-type { display: flex; }
#view-trade .tr-type button { flex: 1; }
#view-trade .tr-dirs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 6px; }
#view-trade .tr-dir {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 10px 6px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--panel-2);
  transition: all .15s var(--ease); min-width: 0;
}
#view-trade .tr-dir span { font-size: 12px; font-weight: 600; color: var(--muted); }
#view-trade .tr-dir b { font-size: 17px; font-weight: 700; white-space: nowrap; }
#view-trade .tr-dir.sell b { color: var(--down); }
#view-trade .tr-dir.buy b { color: var(--up); }
#view-trade .tr-dir:hover { border-color: var(--line-2); }
#view-trade .tr-dir.sell:hover { background: var(--down-bg); }
#view-trade .tr-dir.buy:hover { background: var(--up-bg); }
#view-trade .tr-dir:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
#view-trade .tr-dir.sell.active { background: var(--down-strong); border-color: var(--down-strong); box-shadow: 0 6px 18px -8px var(--down); }
#view-trade .tr-dir.buy.active { background: var(--up-strong); border-color: var(--up-strong); box-shadow: 0 6px 18px -8px var(--up); }
#view-trade .tr-dir.sell.active span, #view-trade .tr-dir.sell.active b { color: var(--on-down); }
#view-trade .tr-dir.buy.active b, #view-trade .tr-dir.buy.active span { color: var(--on-up); }
#view-trade .tr-tk-spr { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 2px; }
#view-trade .tr-tk-spr b { font-size: 12px; color: var(--text-2); }
#view-trade .tr-tk-spr small { font-size: 10px; color: var(--dim); }
#view-trade .tr-hint { font-size: 11px; color: var(--dim); }
#view-trade .tr-ticket .field > span small { font-weight: 400; }

#view-trade .tr-sltp { border: 1px solid var(--line); border-radius: var(--r); padding: 9px 10px; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, background .15s; }
#view-trade .tr-sltp .check { font-weight: 500; }
#view-trade .tr-sltp .seg button { padding: 3px 8px; font-size: 11.5px; }
#view-trade .tr-sltp-b { display: none; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
#view-trade .tr-sltp.on .tr-sltp-b { display: grid; }
#view-trade .tr-sl.on { border-color: color-mix(in srgb, var(--down) 45%, var(--line)); background: var(--down-bg); }
#view-trade .tr-tp.on { border-color: color-mix(in srgb, var(--up) 45%, var(--line)); background: var(--up-bg); }
#view-trade .tr-sltp .tr-val { height: 34px; background: var(--panel); }
#view-trade .tr-sltp-i { display: flex; flex-direction: column; align-items: flex-end; font-size: 11.5px; line-height: 1.35; min-width: 84px; }
#view-trade .tr-other { color: var(--text-2); }
#view-trade .tr-money { font-weight: 600; }
#view-trade .tr-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
#view-trade .tr-quick .btn { font-family: var(--mono); }
#view-trade .tr-rr { margin-inline-start: auto; font-size: 12px; color: var(--accent); font-weight: 600; }

#view-trade .tr-risk { padding: 10px; border-radius: var(--r); background: var(--panel-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
#view-trade .tr-risk .kpi-l .ic { width: 14px; height: 14px; color: var(--accent); }
#view-trade .tr-rin { display: inline-flex; align-items: center; gap: 4px; }
#view-trade .tr-rin input { width: 64px; height: 30px; padding: 0 8px; background: var(--panel); }
#view-trade .tr-rin i { font-style: normal; color: var(--muted); font-size: 12px; }
#view-trade .tr-rsug { font-size: 12px; color: var(--muted); line-height: 1.5; }
#view-trade .tr-rsug b { color: var(--text); }
#view-trade .tr-rsug small { font-size: 10px; }
#view-trade .tr-sumry { display: grid; gap: 6px; font-size: 12.5px; padding: 0 2px; }
#view-trade .tr-err { font-size: 12px; min-height: 18px; color: var(--muted); }
#view-trade .tr-err.bad { color: var(--down); }
#view-trade .tr-err.soft { color: var(--warn); }
#view-trade .tr-submit { min-height: 48px; height: auto; padding-block: 10px; font-size: 15px; border-radius: var(--r); white-space: normal; line-height: 1.25; }
#view-trade .tr-note { font-size: 10.5px; color: var(--dim); text-align: center; margin-top: -4px; }

#view-trade .tr-mine { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
#view-trade .tr-mine:empty { display: none; }
#view-trade .tr-mine-h { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
#view-trade .tr-mine-none { font-size: 11.5px; color: var(--dim); text-align: center; }
#view-trade .tr-mp { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto 28px 28px; align-items: center; gap: 6px; padding: 6px 8px; border-radius: var(--r-sm); background: var(--panel-2); font-size: 12px; }
#view-trade .tr-mp-d { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
#view-trade .tr-mp-pnl { font-weight: 600; font-size: 12px; }
#view-trade .tr-mp.ord { background: transparent; border: 1px dashed var(--line-2); }

/* ---------- responsive ---------- */
@media (pointer: coarse) {
  #view-trade .tr-tg { height: 36px; padding: 0 12px; }
  #view-trade .tr-sbox { height: 42px; }
  #view-trade .tr-star { padding: 8px; margin: -6px; }
  #view-trade .tr-mp { grid-template-columns: auto minmax(0, 1fr) auto 36px 36px; }
  #view-trade .tr-rin input { height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  #view-trade .tr-needle, #view-trade .tr-rpos { transition: none; }
  #view-trade .tr-spin { animation-duration: 1.6s !important; animation-iteration-count: infinite !important; }
}
@media (max-width: 1280px) {
  #view-trade .tr-grid {
    grid-template-columns: 240px minmax(0, 1fr);
    grid-template-areas: "watch chart" "watch ticket" "watch ana";
    grid-template-rows: auto auto 1fr;
  }
  #view-trade .tr-ticket { position: static; max-height: none; overflow: visible; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px 16px; }
  #view-trade .tr-ticket > .tr-tk-h, #view-trade .tr-ticket > .tr-type, #view-trade .tr-ticket > .tr-dirs,
  #view-trade .tr-ticket > .tr-err, #view-trade .tr-ticket > .tr-submit, #view-trade .tr-ticket > .tr-note,
  #view-trade .tr-ticket > .tr-mine { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
  #view-trade .tr-ana-top { grid-template-columns: 1fr; }
  #view-trade .tr-gauge { max-width: 260px; margin: 0 auto; }
}
@media (max-width: 960px) {
  #view-trade .tr-ticket { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  #view-trade .tr-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "watch" "chart" "ticket" "ana"; grid-template-rows: auto; }
  #view-trade .tr-watch { position: static; max-height: none; overflow: visible; }
  #view-trade .tr-wh { padding: 10px 12px 6px; }
  #view-trade .tr-wl { display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; padding: 0 12px 12px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  #view-trade .tr-wl .empty { padding: 12px; flex: 1; }
  #view-trade .tr-wg { display: none; }
  #view-trade .tr-wr { flex: none; grid-template-columns: auto auto; gap: 2px 8px; padding: 7px 12px; min-height: 40px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel-2); scroll-snap-align: start; }
  #view-trade .tr-wr.active { border-color: var(--accent); }
  #view-trade .tr-wr.active::before { display: none; }
  #view-trade .tr-star, #view-trade .tr-wsp, #view-trade .tr-wp { display: none; }
  #view-trade .tr-wn b { font-size: 12px; max-width: 120px; }
  #view-trade .tr-wq { flex-direction: row; }
  #view-trade .tr-wb { font-size: 12px; }
  #view-trade .tr-head { gap: 10px 18px; padding: 12px 14px 10px; }
  #view-trade .tr-mid { font-size: 22px; }
  #view-trade .tr-title .mkt-name b { max-width: 20ch; }
  #view-trade .tr-px, #view-trade .tr-day { min-width: 0; }
  #view-trade .tr-range { min-width: 100%; max-width: none; }
  #view-trade .tr-tools { padding: 8px 10px; }
  #view-trade .tr-res { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
  #view-trade .tr-acts { margin-inline-start: 0; }
  #view-trade .tr-cwrap { height: 340px; }
  #view-trade .tr-sigs { grid-template-columns: 1fr; }
  #view-trade .tr-lv { grid-template-columns: 70px minmax(0, 1fr) auto auto; gap: 6px; padding: 6px 8px; font-size: 12px; }
  #view-trade .tr-lvls-h .kpi-l:last-child { display: none; }
  #view-trade .tr-dir b { font-size: 15px; }
}
