/* ==========================================================================
   FX Gliese · product UI kit (dark trading terminal)
   Everything is drawn at design size (1440 px wide) inside .gx and scaled to
   fit by gliese.js, so a scene looks the same as the exported screens.
   Colours: neutral near-black panels, filled fields, FX orange for brand and
   non-directional actions only; green / red only ever mean buy / sell, up / down.
   ========================================================================== */
.gx {
  --bg: #0b0e11; --panel: #15181d; --panel-2: #1c2026; --field: #242a32; --field-hi: #2c333c;
  --line: #22272e; --line-2: #2e353f;
  --text: #eaecef; --sec: #8b94a3; --dim: #5e6673;
  --up: #2ebd85; --down: #f6465d; --up-soft: rgba(46,189,133,.12); --down-soft: rgba(246,70,93,.12);
  --or: #eb5b19; --or-hi: #f47a3d; --or-soft: rgba(235,91,25,.14); --or-line: rgba(235,91,25,.5);
  --warn: #f0a63a; --warn-soft: rgba(240,166,58,.13);
  font-family: "Geist", "MiSans", system-ui, sans-serif; font-size: 12px; line-height: 1.4; color: var(--text);
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; text-align: left; letter-spacing: 0;
  background: var(--bg); position: relative; overflow: hidden; box-sizing: border-box;
}
.gx *, .gx *::before, .gx *::after { box-sizing: border-box; }
.gx b { font-weight: 600; }
.gx .ic { width: 16px; height: 16px; fill: currentColor; flex: none; display: inline-block; vertical-align: middle; }
.gx .up { color: var(--up); } .gx .down { color: var(--down); } .gx .sec { color: var(--sec); } .gx .dim { color: var(--dim); } .gx .or { color: var(--or-hi); }
.gx .num { font-variant-numeric: tabular-nums; }

/* fit wrapper: the page sets the box, the kit fills it at design size */
.gx-fit { position: relative; width: 100%; aspect-ratio: var(--gw) / var(--gh); overflow: hidden; }
.gx-fit > .gx { position: absolute; left: 0; top: 0; width: calc(var(--gw) * 1px); height: calc(var(--gh) * 1px); transform-origin: 0 0; transform: scale(var(--gs, 1)); }

/* ---------- terminal frame ---------- */
.gx-term { display: grid; grid-template-rows: 52px minmax(0, 1fr) 26px; }
.gx-top { display: flex; align-items: center; gap: 28px; padding: 0 20px; background: var(--panel); border-bottom: 1px solid var(--line); }
.gx-logo { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.gx-logo i { position: relative; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffb08a, var(--or) 55%, #b23d08); box-shadow: 0 0 0 3px rgba(235,91,25,.18), 0 0 14px rgba(235,91,25,.45); }
.gx-logo span { color: var(--sec); font-weight: 500; }
.gx-nav { display: flex; gap: 22px; font-size: 13.5px; font-weight: 500; color: var(--sec); }
.gx-nav a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.gx-nav a.on { color: var(--text); }
.gx-nav .ic { width: 14px; height: 14px; }
.gx-top-r { margin-left: auto; display: flex; align-items: center; gap: 14px; color: var(--sec); }
.gx-acct-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px 0 12px; border-radius: 6px; background: var(--field); color: var(--text); font-size: 12.5px; font-weight: 500; white-space: nowrap; transition: box-shadow .4s; }
.gx-acct-chip em { font-style: normal; color: var(--sec); }
.gx-acct-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px var(--up-soft); }
.gx-acct-chip .ic { width: 14px; height: 14px; color: var(--sec); }
.gx-acct-chip.pulse { box-shadow: 0 0 0 2px var(--or), 0 0 0 7px var(--or-soft); }
.gx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 6px; border: 0; font: 600 13px/1 "Geist", sans-serif; cursor: default; white-space: nowrap; }
.gx-btn .ic { width: 15px; height: 15px; }
.gx-btn--or { background: var(--or); color: #120a05; }
.gx-btn--ghost { background: var(--field); color: var(--text); }
.gx-btn--line { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.gx-iconbtn { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; color: var(--sec); position: relative; }
.gx-iconbtn .ic { width: 18px; height: 18px; }
.gx-iconbtn.dot::after { content: ""; position: absolute; top: 5px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--or); }

.gx-main { display: grid; grid-template-columns: 300px minmax(0, 1fr) 320px; grid-template-rows: 64px minmax(0, 1fr) 268px; gap: 4px; padding: 4px; min-height: 0; }
.gx-panel { background: var(--panel); border-radius: 6px; min-width: 0; min-height: 0; overflow: hidden; position: relative; }
.gx-main > .gx-watch { grid-column: 1; grid-row: 1 / 3; }
.gx-main > .gx-head { grid-column: 2; grid-row: 1; }
.gx-main > .gx-chart { grid-column: 2; grid-row: 2; }
.gx-main > .gx-ticket { grid-column: 3; grid-row: 1 / 4; }
.gx-main > .gx-book { grid-column: 1 / 3; grid-row: 3; }

/* tabs: short orange bar under the active label */
.gx-tabs { display: flex; align-items: center; gap: 20px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--sec); white-space: nowrap; }
.gx-tabs > span { position: relative; height: 100%; display: inline-flex; align-items: center; gap: 6px; }
.gx-tabs > span.on { color: var(--text); font-weight: 600; }
.gx-tabs > span.on::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 18px; height: 3px; margin-left: -9px; border-radius: 2px; background: var(--or); }
.gx-tabs small { font-size: 11px; padding: 1px 6px; border-radius: 9px; background: var(--field); color: var(--sec); font-weight: 600; }
.gx-tabs > span.on small { background: var(--or-soft); color: var(--or-hi); }
.gx-tabs .r { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 500; }

/* ---------- market watch ---------- */
.gx-watch { display: flex; flex-direction: column; }
.gx-search { margin: 12px 12px 6px; height: 32px; border-radius: 6px; background: var(--field); display: flex; align-items: center; gap: 8px; padding: 0 10px; color: var(--dim); font-size: 12.5px; }
.gx-search .ic { width: 15px; height: 15px; }
.gx-watch .gx-tabs { height: 36px; gap: 14px; font-size: 12.5px; padding: 0 12px; }
.gx-wl-h, .gx-wl-r { display: grid; grid-template-columns: minmax(0, 1fr) 64px 64px 54px; gap: 6px; align-items: center; padding: 0 12px; }
.gx-wl-h { height: 30px; font-size: 11px; color: var(--dim); }
.gx-wl-h span:not(:first-child), .gx-wl-r > span:not(:first-child) { text-align: right; }
.gx-wl-r { height: 38px; font-size: 12.5px; position: relative; }
.gx-wl-r.sel { background: var(--panel-2); }
.gx-wl-r.sel::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 1px; background: var(--or); }
.gx-wl-r .sym { display: flex; align-items: center; gap: 6px; font-weight: 600; min-width: 0; }
.gx-wl-r .sym .ic { width: 13px; height: 13px; color: var(--dim); }
.gx-wl-r .sym .ic.fav { color: var(--warn); }
.gx-wl-r .sym > span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.gx-wl-r .sym small { font-weight: 400; font-size: 10.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gx-wl-r .px { border-radius: 3px; padding: 2px 3px; margin-right: -3px; transition: background-color .5s; }
.gx-wl-r .px.f-up { background: var(--up-soft); color: var(--up); transition: none; }
.gx-wl-r .px.f-down { background: var(--down-soft); color: var(--down); transition: none; }
.gx-wl-r .chg { font-size: 11.5px; font-weight: 500; }
.gx-wl-foot { margin-top: auto; padding: 10px 12px 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--dim); font-size: 11px; }

/* ---------- symbol header ---------- */
.gx-head { display: flex; align-items: center; gap: 22px; padding: 0 18px; white-space: nowrap; }
.gx-pair { display: flex; align-items: center; gap: 10px; }
.gx-flags { position: relative; width: 34px; height: 24px; flex: none; }
.gx-flags i { position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--panel); overflow: hidden; }
.gx-flags i:first-child { left: 0; top: 0; z-index: 1; background: #1f4bb5; }
.gx-flags i:first-child::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1.5px dotted #ffd34d; }
.gx-flags i:last-child { left: 12px; top: 2px; background: repeating-linear-gradient(180deg, #c8323b 0 2.4px, #f4f4f4 2.4px 4.8px); }
.gx-flags i:last-child::after { content: ""; position: absolute; left: 0; top: 0; width: 9px; height: 9px; background: #2a3f8a; }
.gx-pair b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.gx-pair small { display: block; font-size: 11px; color: var(--sec); }
.gx-last { font-size: 22px; font-weight: 600; letter-spacing: -.01em; min-width: 104px; transition: color .25s; }
.gx-stats { display: flex; gap: 20px; }
.gx-stats div { display: flex; flex-direction: column; gap: 3px; }
.gx-stats span { font-size: 11px; color: var(--sec); }
.gx-stats b { font-size: 12.5px; font-weight: 500; }
.gx-sess { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--sec); }
.gx-sess i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px var(--up-soft); }

/* ---------- chart ---------- */
.gx-chart { display: flex; flex-direction: column; }
.gx-ctool { display: flex; align-items: center; gap: 16px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--sec); white-space: nowrap; }
.gx-ctool .tf { display: flex; gap: 12px; }
.gx-ctool .tf span.on { color: var(--or-hi); font-weight: 600; }
.gx-ctool .sep { width: 1px; height: 16px; background: var(--line-2); }
.gx-ctool .ic { width: 16px; height: 16px; }
.gx-ctool .r { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.gx-ctool .r span.on { color: var(--text); }
.gx-cwrap { position: relative; flex: 1; min-height: 0; display: flex; }
.gx-crail { width: 40px; flex: none; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 12px; color: var(--sec); }
.gx-crail .ic { width: 17px; height: 17px; }
.gx-cplot { position: relative; flex: 1; min-width: 0; }
.gx-cplot svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: hidden; }
.gx-legend { position: absolute; left: 10px; top: 8px; z-index: 2; font-size: 11.5px; color: var(--sec); display: flex; flex-direction: column; gap: 3px; pointer-events: none; white-space: nowrap; }
.gx-legend b { color: var(--text); font-weight: 500; margin-right: 2px; }
.gx-legend .ma1 { color: #f2a65a; } .gx-legend .ma2 { color: #a689ff; }
.gx-wm { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); font-size: 54px; font-weight: 800; letter-spacing: -.02em; color: rgba(255,255,255,.025); white-space: nowrap; pointer-events: none; }
/* svg chart parts */
.gx-cplot .grid line { stroke: #1e232a; stroke-width: 1; }
.gx-cplot text { font: 500 11px "Geist", sans-serif; fill: var(--sec); }
.gx-cplot .c-up { fill: var(--up); stroke: var(--up); }
.gx-cplot .c-down { fill: var(--down); stroke: var(--down); }
.gx-cplot .vol rect { opacity: .28; }
.gx-cplot .ma1 { fill: none; stroke: #f2a65a; stroke-width: 1.2; }
.gx-cplot .ma2 { fill: none; stroke: #a689ff; stroke-width: 1.2; }
.gx-cplot .pl { stroke-dasharray: 2 3; stroke-width: 1; }
.gx-cplot .tag rect { rx: 3px; }
.gx-cplot .tag text { fill: #fff; font-weight: 600; font-size: 11.5px; }
.gx-cplot .ask { stroke: #6b7482; stroke-dasharray: 2 3; }
.gx-cplot .draw { animation: gx-draw 1.4s cubic-bezier(.3,.7,.2,1) both; }
@keyframes gx-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* position / SL / TP lines on the chart (HTML so they can be dragged) */
.gx-plines { position: absolute; inset: 0 64px 0 0; pointer-events: none; }
.gx-pline { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed var(--c); transition: top .08s linear; }
.gx-pline > span { position: absolute; top: -11px; left: 14px; display: inline-flex; align-items: stretch; height: 22px; border-radius: 4px; overflow: hidden; font-size: 11.5px; font-weight: 600; box-shadow: 0 4px 10px rgba(0,0,0,.35); white-space: nowrap; }
.gx-pline > span em { font-style: normal; padding: 0 8px; display: flex; align-items: center; background: var(--c); color: #fff; }
.gx-pline > span u { text-decoration: none; padding: 0 8px; display: flex; align-items: center; background: #0f1216; color: var(--c); }
.gx-pline > span u.up { color: var(--up); } .gx-pline > span u.down { color: var(--down); }
.gx-pline > i { position: absolute; right: -64px; top: -11px; width: 64px; height: 22px; border-radius: 3px; background: var(--c); color: #fff; font: 600 11px/22px "Geist", sans-serif; font-style: normal; text-align: center; }
.gx-pline .grip { position: absolute; left: 50%; top: -7px; width: 30px; height: 14px; margin-left: -15px; border-radius: 4px; background: var(--c); display: grid; place-items: center; }
.gx-pline .grip::before { content: ""; width: 14px; height: 4px; border-block: 1px solid rgba(255,255,255,.8); }
.gx-pline.entry { --c: var(--up); }
.gx-pline.entry.sell { --c: var(--down); }
.gx-pline.sl { --c: var(--down); }
.gx-pline.tp { --c: var(--up); }
.gx-pline.pend { --c: #7f8fa6; }
.gx-pline.hide { opacity: 0; }
.gx-pline { transition: opacity .3s, top .08s linear; }

/* ---------- order ticket ---------- */
.gx-ticket { display: flex; flex-direction: column; }
.gx-ticket .gx-tabs .r .ic { width: 15px; height: 15px; }
.gx-1c { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 12px; background: var(--field); color: var(--sec); font-size: 11.5px; }
.gx-1c.on { background: var(--or-soft); color: var(--or-hi); }
.gx-tk { padding: 14px 14px 0; display: flex; flex-direction: column; gap: 12px; }
.gx-side { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gx-side > div { position: relative; height: 66px; border-radius: 6px; background: var(--field); padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; transition: background-color .25s, box-shadow .25s; }
.gx-side > div:last-child { align-items: flex-end; }
.gx-side small { font-size: 11px; font-weight: 600; color: var(--sec); letter-spacing: .04em; text-transform: uppercase; }
.gx-side .bp { font-size: 15px; font-weight: 600; line-height: 1.1; color: var(--text); white-space: nowrap; }
.gx-side .bp big { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.gx-side .bp sup { font-size: 13px; vertical-align: 10px; margin-left: 1px; }
.gx-side .sell.on { background: var(--down-soft); box-shadow: inset 0 0 0 1px var(--down); }
.gx-side .sell.on small, .gx-side .sell.on .bp { color: var(--down); }
.gx-side .buy.on { background: var(--up-soft); box-shadow: inset 0 0 0 1px var(--up); }
.gx-side .buy.on small, .gx-side .buy.on .bp { color: var(--up); }
.gx-spread { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; min-width: 40px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--panel); box-shadow: 0 0 0 4px var(--panel); font-size: 11.5px; font-weight: 600; color: var(--sec); display: grid; place-items: center; transition: color .3s, background-color .3s; }
.gx-spread.wide { color: var(--warn); }
.gx-fl { display: flex; flex-direction: column; gap: 6px; }
.gx-fl > label { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--sec); }
.gx-field { height: 40px; border-radius: 6px; background: var(--field); display: flex; align-items: center; gap: 8px; padding: 0 10px; font-size: 14px; font-weight: 600; transition: box-shadow .2s; }
.gx-field.focus { box-shadow: inset 0 0 0 1px var(--or); }
.gx-field .v { flex: 1; text-align: center; }
.gx-field .u { color: var(--sec); font-size: 12px; font-weight: 500; }
.gx-field .pm { width: 26px; height: 26px; border-radius: 4px; display: grid; place-items: center; color: var(--sec); background: var(--field-hi); }
.gx-field .pm .ic { width: 15px; height: 15px; }
.gx-field.lr .v { text-align: left; }
.gx-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.gx-chips span { height: 26px; border-radius: 4px; background: var(--panel-2); color: var(--sec); font-size: 11.5px; font-weight: 600; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); transition: all .2s; }
.gx-chips span.on { color: var(--or-hi); box-shadow: inset 0 0 0 1px var(--or); background: var(--or-soft); }
.gx-hint { font-size: 11px; color: var(--dim); }
.gx-hint b { color: var(--sec); font-weight: 500; }
.gx-prot { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.gx-prow { display: grid; grid-template-columns: 16px minmax(0,1fr) auto; gap: 8px; align-items: center; font-size: 12.5px; font-weight: 500; }
.gx-check { width: 16px; height: 16px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--dim); display: grid; place-items: center; transition: all .2s; }
.gx-check.on { background: var(--or); box-shadow: none; }
.gx-check.on::after { content: ""; width: 8px; height: 4px; border-left: 2px solid #120a05; border-bottom: 2px solid #120a05; transform: translateY(-1px) rotate(-45deg); }
.gx-seg { display: inline-flex; padding: 2px; border-radius: 5px; background: var(--panel-2); font-size: 11px; font-weight: 600; color: var(--dim); }
.gx-seg span { padding: 3px 7px; border-radius: 3px; }
.gx-seg span.on { background: var(--field-hi); color: var(--text); }
.gx-pfield { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; height: 36px; border-radius: 6px; background: var(--field); padding: 0 10px; font-size: 13px; font-weight: 600; overflow: hidden; max-height: 36px; transition: max-height .35s ease, opacity .3s, margin .35s; }
.gx-pfield.off { max-height: 0; opacity: 0; margin-top: -8px; }
.gx-pfield em { font-style: normal; font-size: 12px; font-weight: 600; }
.gx-pfield small { color: var(--dim); font-weight: 500; font-size: 11px; margin-left: 6px; }
.gx-kv { display: flex; flex-direction: column; gap: 7px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; }
.gx-kv div { display: flex; justify-content: space-between; gap: 10px; }
.gx-kv span { color: var(--sec); border-bottom: 1px dotted transparent; }
.gx-kv b { font-weight: 500; }
.gx-go { height: 46px; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: #fff; font-size: 14px; font-weight: 700; transition: background-color .25s, transform .12s, filter .2s; }
.gx-go small { font-size: 11px; font-weight: 500; opacity: .85; }
.gx-go.buy { background: #2aa877; } .gx-go.sell { background: #e13f55; }
.gx-go.press { transform: scale(.97); filter: brightness(1.15); }
.gx-go.off { background: var(--field); color: var(--dim); }

/* account card at the bottom of the ticket column */
.gx-acc { margin-top: auto; border-top: 4px solid var(--bg); padding: 14px; display: flex; flex-direction: column; gap: 9px; font-size: 12px; background: var(--panel); }
.gx-acc-h { display: flex; justify-content: space-between; align-items: center; }
.gx-acc-h b { font-size: 13px; }
.gx-acc-h small { color: var(--sec); font-size: 11px; }
.gx-acc .rows { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.gx-acc .rows div { display: flex; flex-direction: column; gap: 1px; }
.gx-acc .rows span { color: var(--sec); font-size: 11px; }
.gx-acc .rows b { font-size: 13px; font-weight: 600; }
.gx-ml { display: flex; flex-direction: column; gap: 7px; padding-top: 10px; border-top: 1px solid var(--line); }
.gx-ml-top { display: flex; align-items: center; gap: 8px; }
.gx-ml-top span { color: var(--sec); font-size: 11.5px; }
.gx-ml-top b { margin-left: auto; font-size: 16px; font-weight: 700; transition: color .3s; }
.gx-pill { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 10px; font-size: 11px; font-weight: 700; white-space: nowrap; transition: all .3s; }
.gx-pill.ok { background: var(--up-soft); color: var(--up); }
.gx-pill.watch { background: var(--warn-soft); color: var(--warn); }
.gx-pill.call { background: var(--down-soft); color: var(--down); }
.gx-pill.so { background: var(--down); color: #fff; }
.gx-meter { position: relative; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--down) 0 12.5%, #e06a3e 12.5% 25%, var(--warn) 25% 37.5%, var(--up) 37.5%); opacity: .35; }
.gx-meter-wrap { position: relative; }
.gx-meter-wrap .knob { position: absolute; top: -4px; width: 4px; height: 14px; margin-left: -2px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 2px var(--panel); transition: left .15s linear; }
.gx-meter-wrap .tick { position: absolute; top: 10px; font-size: 10px; color: var(--dim); transform: translateX(-50%); white-space: nowrap; }
.gx-meter-wrap .tick::before { content: ""; position: absolute; left: 50%; top: -6px; width: 1px; height: 4px; background: var(--dim); }
.gx-ml-note { margin-top: 14px; font-size: 11px; color: var(--sec); line-height: 1.45; min-height: 16px; }
.gx-ml-note.call { color: var(--down); }

/* ---------- positions / orders / history ---------- */
.gx-book { display: flex; flex-direction: column; }
.gx-tbl { width: 100%; border-collapse: collapse; font-size: 12px; white-space: nowrap; }
.gx-tbl th { height: 32px; padding: 0 10px; text-align: right; font-weight: 500; font-size: 11px; color: var(--dim); }
.gx-tbl td { height: 36px; padding: 0 10px; text-align: right; border-top: 1px solid var(--line); }
.gx-tbl th:first-child, .gx-tbl td:first-child { text-align: left; padding-left: 14px; }
.gx-tbl td.l, .gx-tbl th.l { text-align: left; }
.gx-tbl .sym b { font-weight: 600; margin-right: 6px; }
.gx-tag { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 3px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; }
.gx-tag.buy { background: var(--up-soft); color: var(--up); }
.gx-tag.sell { background: var(--down-soft); color: var(--down); }
.gx-tag.n { background: var(--field); color: var(--sec); }
.gx-tag.so { background: var(--down); color: #fff; }
.gx-tag.tp { background: var(--up-soft); color: var(--up); }
.gx-tbl .pl { font-weight: 600; }
.gx-tbl .act { display: inline-flex; gap: 4px; }
.gx-tbl .act span { width: 24px; height: 24px; border-radius: 4px; display: grid; place-items: center; color: var(--sec); background: var(--panel-2); }
.gx-tbl .act span .ic { width: 14px; height: 14px; }
.gx-tbl .act span.x:hover { color: var(--down); }
.gx-tbl tr.new td { animation: gx-new 2.4s ease; }
@keyframes gx-new { 0%, 40% { background: var(--or-soft); } 100% { background: transparent; } }
.gx-tbl tr.out { opacity: 0; transition: opacity .5s; }
.gx-tbl td .sub { color: var(--dim); font-size: 11px; margin-left: 4px; }
.gx-book-foot { margin-top: auto; height: 34px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 22px; padding: 0 14px; font-size: 11.5px; color: var(--sec); white-space: nowrap; }
.gx-book-foot b { color: var(--text); font-weight: 600; margin-left: 4px; }
.gx-book-foot .r { margin-left: auto; }
.gx-cbox { display: inline-flex; align-items: center; gap: 6px; }
.gx-cbox i { width: 13px; height: 13px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px var(--dim); }

/* banner inside a panel (margin call etc.) */
.gx-banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 12.5px; border-bottom: 1px solid var(--line); background: var(--warn-soft); color: var(--warn); overflow: hidden; max-height: 0; padding-block: 0; opacity: 0; transition: max-height .4s ease, padding .4s ease, opacity .3s; }
.gx-banner.show { max-height: 60px; padding-block: 10px; opacity: 1; }
.gx-banner.call { background: var(--down-soft); color: var(--down); }
.gx-banner .ic { width: 18px; height: 18px; }
.gx-banner p { flex: 1; color: var(--text); margin: 0; }
.gx-banner p b { color: inherit; }
.gx-banner .gx-btn { height: 28px; font-size: 12px; padding: 0 12px; }

/* ---------- status bar ---------- */
.gx-status { display: flex; align-items: center; gap: 18px; padding: 0 14px; background: var(--panel); border-top: 1px solid var(--line); font-size: 11.5px; color: var(--sec); white-space: nowrap; overflow: hidden; }
.gx-status .conn { color: var(--up); display: inline-flex; align-items: center; gap: 6px; }
.gx-status .conn i { width: 6px; height: 6px; border-radius: 50%; background: var(--up); }
.gx-marq { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.gx-marq > div { display: inline-flex; gap: 22px; animation: gx-marq 60s linear infinite; }
.gx-marq b { color: var(--text); font-weight: 500; margin-right: 5px; }
@keyframes gx-marq { to { transform: translateX(-50%); } }

/* ---------- overlays: confirm sheet, modal, toast ---------- */
.gx-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; background: var(--panel-2); border-top: 1px solid var(--line-2); border-radius: 10px 10px 0 0; padding: 16px 14px 14px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 -20px 40px rgba(0,0,0,.45); transform: translateY(105%); transition: transform .38s cubic-bezier(.2,.8,.2,1); }
.gx-sheet.show { transform: none; }
.gx-sheet h4 { margin: 0; font-size: 14px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.gx-sheet h4 .ic { color: var(--sec); }
.gx-sum { border-radius: 6px; background: var(--field); padding: 10px 12px; display: flex; flex-direction: column; gap: 7px; font-size: 12px; }
.gx-sum div { display: flex; justify-content: space-between; }
.gx-sum span { color: var(--sec); }
.gx-sum .big { font-size: 15px; font-weight: 700; }
.gx-sheet .gx-cbox { font-size: 11.5px; color: var(--sec); }
.gx-sheet .btns { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; }
.gx-sheet .btns .gx-go { height: 40px; font-size: 13px; }
.gx-scrim { position: absolute; inset: 0; z-index: 8; background: rgba(5,6,8,.62); opacity: 0; transition: opacity .3s; pointer-events: none; }
.gx-scrim.show { opacity: 1; }
.gx-modal { position: absolute; left: 50%; top: 50%; z-index: 9; width: 420px; transform: translate(-50%, -46%) scale(.97); opacity: 0; border-radius: 10px; background: var(--panel-2); box-shadow: 0 0 0 1px var(--line-2), 0 30px 70px rgba(0,0,0,.6); padding: 20px; display: flex; flex-direction: column; gap: 14px; transition: all .3s cubic-bezier(.2,.8,.2,1); }
.gx-modal.show { opacity: 1; transform: translate(-50%, -50%); }
.gx-modal h4 { margin: 0; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.gx-modal h4 .ic { width: 20px; height: 20px; }
.gx-modal p { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--sec); }
.gx-modal .btns { display: flex; justify-content: flex-end; gap: 8px; }
.gx-toast { position: absolute; z-index: 10; display: flex; align-items: center; gap: 10px; padding: 11px 14px 11px 12px; border-radius: 8px; background: #20252d; box-shadow: 0 0 0 1px var(--line-2), 0 16px 40px rgba(0,0,0,.55); font-size: 12.5px; white-space: nowrap; opacity: 0; transform: translateY(-10px); transition: all .35s cubic-bezier(.2,.8,.2,1); }
.gx-toast.show { opacity: 1; transform: none; }
.gx-toast .ic { width: 20px; height: 20px; color: var(--up); }
.gx-toast.warn .ic { color: var(--down); }
.gx-toast b { font-weight: 600; }
.gx-toast small { display: block; color: var(--sec); font-size: 11.5px; margin-top: 1px; }

/* animated pointer used by the demo scenes (lives inside .gx at design size) */
.gx-cursor { position: absolute; z-index: 20; left: 0; top: 0; width: 22px; height: 22px; pointer-events: none; transition: transform .9s cubic-bezier(.65,0,.35,1); filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); }
.gx-cursor svg { width: 100%; height: 100%; fill: #fff; stroke: #0b0e11; stroke-width: 1.3; }
.gx-cursor::after { content: ""; position: absolute; left: -10px; top: -10px; width: 22px; height: 22px; border-radius: 50%; background: rgba(235,91,25,.55); transform: scale(0); opacity: 0; }
.gx-cursor.click::after { animation: gx-click .5s ease-out; }
.gx-cursor.grab svg { transform: scale(.9); }
@keyframes gx-click { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

/* static states used by the exported details */
.gx-closed { position: absolute; inset: 40px 0 0; z-index: 4; background: rgba(21,24,29,.95); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 30px; }
.gx-closed > .ic { width: 30px; height: 30px; color: var(--sec); }
.gx-closed b { font-size: 15px; }
.gx-closed p { margin: 0; color: var(--sec); font-size: 12.5px; line-height: 1.5; }
.gx-note { display: flex; gap: 8px; align-items: flex-start; padding: 9px 10px; border-radius: 6px; font-size: 11.5px; line-height: 1.45; background: var(--warn-soft); color: var(--text); }
.gx-note .ic { width: 15px; height: 15px; color: var(--warn); margin-top: 1px; }
.gx-note b { color: var(--warn); }

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