/* HashOps — expert mode (Premium): one full screen, everything for the pair being traded,
   live, without scrolling on a computer. Same palette, type and glass as the terminal. */
body.xp {
  --card: #101216;
  --ice: #dffbff;
  --line: rgba(255,255,255,.08);
  --gap: 10px;
  margin: 0; height: 100vh; height: 100dvh; overflow: hidden; color: var(--text);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 73% 9%, rgba(78,225,255,.055), transparent 29rem),
    radial-gradient(circle at 8% 70%, rgba(124,108,245,.035), transparent 30rem),
    linear-gradient(180deg, #0b0c10 0%, #0a0b0e 42%, #0d0e12 100%);
  display: flex; flex-direction: column;
}
.xp .xi { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -3px; }
.xp .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.xp .up { color: var(--green); } .xp .down { color: var(--red); } .xp .mut { color: var(--muted); }
.xp :where(button) { font: inherit; color: inherit; }

/* ---- top bar ---- */
.xp-top { display: flex; align-items: center; gap: 14px; padding: 10px 14px 8px; min-width: 0; }
.xp-logo img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.xp-mode { font: 600 9.5px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--amber); padding: 5px 9px; border: 1px solid rgba(244,184,96,.35); border-radius: 999px; white-space: nowrap; }
.xp-pair { display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); cursor: pointer; white-space: nowrap; min-width: 0; }
.xp-pair b { font: 700 17px var(--mono); letter-spacing: -.01em; }
.xp-pair .q { color: var(--muted); font: 500 13px var(--mono); }
.xp-live { display: inline-flex; align-items: center; gap: 6px; font: 500 9.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #9aa3ad; }
.xp-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.xp-live.lag i { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.xp-price { display: flex; align-items: baseline; gap: 14px; min-width: 0; white-space: nowrap; overflow: hidden; }
.xp-price .p { font: 600 26px var(--mono); letter-spacing: -.03em; transition: color .25s; }
.xp-price .p.tick-up { color: var(--green); } .xp-price .p.tick-down { color: var(--red); }
.xp-price .kv { display: flex; flex-direction: column; font: 500 11px var(--mono); }
.xp-price .kv small { font: 500 8.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.xp-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.xp-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.xp-seg button { border: 0; background: none; padding: 6px 10px; border-radius: 8px; font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #aab1ba; cursor: pointer; white-space: nowrap; }
.xp-seg button.on { background: var(--ice); color: #051114; }
.xp-seg.sm button { padding: 4px 8px; font-size: 9.5px; }
.xp .xp-ibtn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255,255,255,.02); font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #c3c9d0; text-decoration: none; cursor: pointer; white-space: nowrap; }
.xp-ibtn span { font: inherit; }
.xp-ibtn:hover, .xp-pair:hover { border-color: rgba(78,225,255,.35); }

/* ---- watched coins ---- */
.xp-watch { display: flex; gap: 8px; padding: 0 14px 8px; overflow-x: auto; scrollbar-width: none; }
.xp-watch::-webkit-scrollbar { display: none; }
.xw { display: grid; grid-template-columns: auto auto; gap: 0 12px; align-items: baseline; padding: 6px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; text-align: left; flex: none; }
.xw b { font: 600 12px var(--mono); }
.xw .p { font: 500 12px var(--mono); text-align: right; }
.xw .c { font: 500 10.5px var(--mono); grid-column: 2; text-align: right; }
.xw .al { grid-column: 1; font: 500 10px var(--mono); color: var(--amber); }
.xw.add { display: inline-flex; align-items: center; gap: 6px; border-style: dashed; color: var(--faint); font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; background: transparent; }

/* ---- the grid: one screen, no scrolling ---- */
.xp-grid { display: grid; gap: var(--gap); padding: 0 14px 6px; min-height: 0; flex: 1 1 auto; }   /* columns and areas: expert.js layout() */
.xb { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 30px 90px rgba(0,0,0,.3); overflow: hidden; }
.xb[hidden] { display: none; }
.xb-h { display: flex; align-items: center; gap: 8px; padding: 9px 12px 6px; min-width: 0; }
.xb-h h2 { margin: 0; font: 500 9.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #b9c1cb; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.xb-src { margin-left: auto; font: 500 9px var(--mono); letter-spacing: .08em; color: var(--faint); white-space: nowrap; }
.xb-h .xp-seg { margin-left: 8px; }
.xb-body { flex: 1 1 auto; min-height: 0; padding: 0 12px 10px; overflow: hidden; }

/* ---- HashOps identity: blocks glow by what they measure ---- */
.xb::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(78,225,255,.45), transparent); opacity: .6; }
.xb-pulse::before { background: linear-gradient(90deg, transparent, rgba(155,123,255,.55), transparent); }
.xb-read::before { background: linear-gradient(90deg, transparent, rgba(244,184,96,.5), transparent); }
.xb-legend { display: inline-flex; align-items: center; gap: 6px; font: 500 9px var(--mono); color: var(--faint); white-space: nowrap; overflow: hidden; }
.xb-legend i { width: 14px; height: 6px; border-radius: 3px; display: inline-block; margin-left: 6px; }
.xb-legend .lg-s { background: linear-gradient(90deg, transparent, #4ee1ff); }
.xb-legend .lg-l { background: linear-gradient(90deg, transparent, #9b7bff); }
.xb-legend .lg-e { width: 7px; height: 7px; border-radius: 50%; background: #f4b860; }

/* pressure map */
#b-chart { padding: 0 6px 6px; }
.xc-svg { width: 100%; height: 100%; display: block; }
.xc-u { fill: #69e6a6; } .xc-d { fill: #ff6b6b; }
.xc-wu { stroke: #69e6a6; } .xc-wd { stroke: #ff6b6b; }
.xc-ax { font: 500 9.5px var(--mono); fill: #7d8690; }
.xc-last { stroke: var(--ice); stroke-dasharray: 2 4; opacity: .7; } .xc-lastb { fill: var(--ice); } .xc-lastt { font: 600 10px var(--mono); fill: #051114; }
.xc-mk { font: 600 9px var(--mono); } .xc-mk-b { fill: #69e6a6; } .xc-mk-s { fill: #ff8f8f; } .xc-mk-n { fill: #f4b860; }
.xc-lv { stroke-dasharray: 6 5; stroke-width: 1; } .xc-lv-liq { stroke: rgba(223,251,255,.45); } .xc-lv-mp { stroke: rgba(244,184,96,.7); }
.xc-lvt { font: 600 9.5px var(--mono); paint-order: stroke; stroke: #101216; stroke-width: 3px; } .xc-lvt-liq { fill: #dffbff; } .xc-lvt-mp { fill: #f4b860; }
.xc-ev line { stroke-dasharray: 2 4; stroke-width: 1; }
.xc-ev circle { stroke: #101216; stroke-width: 2; }
.xc-ev-news line { stroke: rgba(244,184,96,.45); } .xc-ev-news circle { fill: #f4b860; }
.xc-ev-anom line { stroke: rgba(155,123,255,.5); } .xc-ev-anom circle { fill: #9b7bff; }

/* HashOps pulse */
#b-pulse { display: flex; flex-direction: column; gap: 12px; overflow-y: auto; scrollbar-width: none; }
.xg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 6px; }
.xg { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.xg svg { width: 100%; max-width: 86px; aspect-ratio: 1; }
.xg-bg { fill: none; stroke: rgba(255,255,255,.06); stroke-width: 6; }
.xg-fg { fill: none; stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 5px currentColor); transition: stroke-dasharray .6s; }
.xg > b { position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 1; max-width: 86px; margin: 0 auto; display: grid; place-items: center; font: 600 19px var(--mono); }
.xg-l { font: 500 8.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #b9c1cb; margin-top: 2px; }
.xg-s { font: 500 10px var(--sans); color: var(--muted); }
.xp-narr, .xp-scen { padding: 9px 10px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.05); }
.xp-narr small, .xp-scen small { display: block; font: 500 8.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 3px; }
.xp-narr b { display: block; font: 600 14px var(--sans); }
.xp-narr span { font: 500 10.5px var(--mono); }
.xp-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.xp-duo .xp-narr { min-width: 0; }
.xp-duo .xp-narr b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-att b.hot { color: #f4b860; }
.xs-r { display: grid; grid-template-columns: 54px minmax(0, 1fr) 34px; grid-template-rows: auto auto; align-items: center; gap: 2px 8px; margin-top: 6px; font: 500 10.5px var(--sans); }
.xs-r i { height: 6px; border-radius: 3px; max-width: 100%; }
.xs-r b { font: 600 11px var(--mono); text-align: right; }
.xs-r em { grid-column: 2 / 4; font: 500 9.5px var(--mono); font-style: normal; color: var(--faint); }
.xs-up i { background: linear-gradient(90deg, rgba(105,230,166,.25), #69e6a6); } .xs-up span { color: #69e6a6; }
.xs-base i { background: linear-gradient(90deg, rgba(223,251,255,.15), #dffbff); }
.xs-down i { background: linear-gradient(90deg, rgba(255,107,107,.25), #ff6b6b); } .xs-down span { color: #ff8f8f; }

/* HashOps reading */
#b-read { display: flex; flex-direction: column; gap: 11px; overflow-y: auto; scrollbar-width: thin; }
.xr-sec h3 { margin: 0 0 4px; font: 500 8.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.xr-sec p { margin: 0; font: 400 13px/1.5 var(--sans); color: #e7ebef; }
.xr-sec ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.xr-sec li { font: 400 12px/1.42 var(--sans); color: #cdd3d9; padding-left: 12px; position: relative; }
.xr-sec li::before { content: ""; position: absolute; left: 0; top: 7px; width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.3); }
.xr-watch li b { font: 600 11.5px var(--mono); color: var(--ice); }
.xr-sig li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 6px 8px; border-radius: 9px; background: rgba(255,255,255,.025); }
.xr-sig li::before { display: none; }
.xr-sig li i { width: 7px; height: 7px; border-radius: 50%; align-self: center; }
.xr-sig .xs-b i { background: var(--green); box-shadow: 0 0 8px var(--green); } .xr-sig .xs-s i { background: var(--red); box-shadow: 0 0 8px var(--red); } .xr-sig .xs-n i { background: #9b7bff; box-shadow: 0 0 8px #9b7bff; }
.xr-sig em { font: 500 9.5px var(--mono); font-style: normal; color: var(--faint); white-space: nowrap; }
.xr-sig li.new { animation: xs-in 1.4s ease-out; }
@keyframes xs-in { from { background: rgba(78,225,255,.18); } to { background: rgba(255,255,255,.025); } }
.xa-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.xa-chips button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 4px 9px; font: 500 10.5px var(--sans); color: #c3c9d0; cursor: pointer; }
.xa-chips button:hover { border-color: rgba(244,184,96,.5); }
.xp-ask { display: flex; gap: 6px; padding: 8px 10px 10px; border-top: 1px solid rgba(255,255,255,.05); }
.xp-ask input { flex: 1; min-width: 0; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--text); padding: 0 10px; font: 400 12.5px var(--sans); }
.xp-ask button { width: 38px; border-radius: 10px; border: 0; background: var(--ice); color: #051114; cursor: pointer; }

/* live timeline */
#b-timeline { padding: 0 10px 6px; }
.xt-l { font: 500 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; fill: #8b949e; }
.xt-ln { stroke: rgba(255,255,255,.06); }
.xt-e circle { stroke: #101216; stroke-width: 1.5; opacity: .92; }
.xt-news circle { fill: #f4b860; } .xt-anom circle { fill: #9b7bff; }
.xt-liq.xt-l circle { fill: #ff6b6b; } .xt-liq.xt-s circle { fill: #4ee1ff; }
.xt-pat circle { fill: #69e6a6; } .xt-pat.xt-s circle { fill: #ff6b6b; }
.xt-t { font: 500 9.5px var(--mono); fill: #cdd3d9; }

/* derivatives */
.xd-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.xd-kv div { padding: 6px 8px; border-radius: 9px; background: rgba(255,255,255,.03); min-width: 0; }
.xd-kv small { display: block; font: 500 8.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.xd-kv b { font: 600 13px var(--mono); white-space: nowrap; }

/* order book as depth */
#b-book { display: flex; flex-direction: column; }
#b-book .xc-svg { flex: 1; min-height: 0; }
.xk-b { fill: rgba(105,230,166,.18); stroke: #69e6a6; stroke-width: 1.2; }
.xk-a { fill: rgba(255,107,107,.18); stroke: #ff6b6b; stroke-width: 1.2; }
.xk-imb { margin-top: 4px; font: 500 10px var(--mono); color: var(--muted); }

/* watch sparkline */
.xw { grid-template-columns: auto auto auto; }
.xw-sp { grid-row: 1 / 3; grid-column: 3; width: 54px; height: 18px; align-self: center; }
.xw-sp path { fill: none; stroke-width: 1.4; } .xw-sp.up path { stroke: #69e6a6; } .xw-sp.down path { stroke: #ff6b6b; }
.xw .c { grid-column: 2; grid-row: 2; }

.xb-help { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); background: transparent; color: #9aa3ad; font: 600 10px var(--mono); cursor: pointer; display: grid; place-items: center; padding: 0; flex: none; }
.xb-help:hover, .xb-help:focus-visible { border-color: var(--amber); color: var(--amber); }
.xp-help { position: fixed; z-index: 45; width: min(340px, calc(100vw - 20px)); border-radius: 14px; background: #0f1115; border: 1px solid rgba(244,184,96,.3); box-shadow: 0 30px 90px rgba(0,0,0,.6); padding: 12px 14px; }
.xp-help[hidden] { display: none; }
.xh-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.xh-h b { font: 500 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.xh-x { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px; }
.xp-help ul { margin: 0 0 10px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.xp-help li { font: 400 12.5px/1.45 var(--sans); color: #d5dadf; }
.xh-ask { display: inline-flex; align-items: center; gap: 7px; width: 100%; justify-content: center; height: 36px; border-radius: 10px; border: 0; background: var(--ice); color: #051114; font: 600 12.5px var(--sans); cursor: pointer; }
.xa-chips button.hl { border-color: rgba(244,184,96,.55); color: var(--amber); }
.xa-qa { display: flex; flex-direction: column; gap: 6px; }
.xa-m { font: 400 12.5px/1.45 var(--sans); padding: 8px 10px; border-radius: 10px; background: rgba(244,184,96,.07); border: 1px solid rgba(244,184,96,.18); }
.xa-m.me { align-self: flex-end; max-width: 88%; background: rgba(78,225,255,.08); border-color: rgba(78,225,255,.2); }
.xa-m small { display: block; font: 500 8.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 2px; }
.xp-hint { display: flex; align-items: center; gap: 10px; margin: 0 14px 8px; padding: 7px 10px 7px 12px; border-radius: 12px; border: 1px solid rgba(244,184,96,.25); background: rgba(244,184,96,.06); font: 400 12px var(--sans); color: #d5dadf; min-width: 0; }
.xp-hint .xi { color: var(--amber); }
.xp-hint span { flex: 1; min-width: 0; }
.xp-hint b { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); font: 600 9px var(--mono); }
.xp-hint button { border: 1px solid rgba(244,184,96,.5); background: transparent; color: var(--amber); border-radius: 999px; padding: 5px 11px; font: 500 11px var(--sans); cursor: pointer; white-space: nowrap; }
.xp-hint button.ok { border-color: var(--line); color: #c3c9d0; }
.xp-legal { margin: 0; padding: 0 14px 6px; font: 500 9.5px var(--mono); color: var(--faint); }
.xp-dots { display: none; }

/* ---- pair picker ---- */
.xp-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(5,6,8,.72); backdrop-filter: blur(8px); padding: 16px; }
.xp-modal[hidden] { display: none; }
.xm-orb { position: absolute; top: -80px; right: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(78,225,255,.18), transparent 70%); pointer-events: none; }
.xm-card { position: relative; width: min(720px, 100%); max-height: calc(100dvh - 32px); overflow: auto; border-radius: 20px; background: #0f1115; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 40px 120px rgba(0,0,0,.6); padding: 22px; }
.xm-card h2 { margin: 0 0 4px; font-size: 20px; }
.xm-card p { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.xm-search { width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--text); padding: 0 14px; font: 400 14px var(--sans); }
.xm-step { margin: 16px 0 8px; font: 500 9.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #b9c1cb; }
.xm-coins { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; max-height: 236px; overflow-y: auto; }
.xm-coin { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 10px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255,255,255,.02); cursor: pointer; text-align: left; }
.xm-coin b { font: 600 12.5px var(--mono); } .xm-coin small { font: 500 10px var(--sans); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.xm-coin.main { border-color: var(--ice); background: rgba(223,251,255,.08); }
.xm-coin.watch { border-color: rgba(244,184,96,.55); }
.xm-coin .tag { font: 600 8.5px var(--mono); letter-spacing: .1em; color: var(--amber); }
.xm-foot { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.xm-go { margin-left: auto; height: 42px; padding: 0 18px; border-radius: 12px; border: 0; background: var(--ice); color: #051114; font: 600 13px var(--sans); cursor: pointer; }
.xm-note { font: 500 11px var(--sans); color: var(--muted); }

/* ---- blocks menu ---- */
.xp-menu { position: fixed; z-index: 40; top: 54px; right: 14px; width: 240px; border-radius: 14px; background: #0f1115; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 90px rgba(0,0,0,.55); padding: 8px; }
.xp-menu[hidden] { display: none; }
.xp-menu label { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 9px; font: 500 12.5px var(--sans); cursor: pointer; }
.xp-menu label:hover { background: rgba(255,255,255,.04); }

/* ---- tablets: two columns, still one screen ---- */
@media (max-width: 1180px) {
  .xp-tools .xp-seg { display: none; }
  .xp-price .kv.opt { display: none; }
  .xb-legend { display: none; }
  .xg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .xg svg, .xg > b { max-width: 70px; }
  .xg > b { font-size: 16px; }
}
@media (max-width: 760px) { .xg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .xg svg, .xg > b { max-width: 80px; } }
@media (max-width: 1600px) { .xp-price .kv.opt2 { display: none; } }

/* ---- phones: price, chart and key signals fixed on top; the rest swipes sideways ---- */
@media (max-width: 760px) {
  .xp-top { flex-wrap: wrap; gap: 8px; padding: 8px 10px 6px; }
  .xp-mode, .xp-tools span { display: none; }
  .xp-price { order: 5; width: 100%; gap: 12px; }
  .xp-price .p { font-size: 22px; }
  .xp-pair b { font-size: 15px; }
  .xp-watch { padding: 0 10px 6px; }
  .xp-grid { display: grid; padding: 0 10px 4px; gap: 8px;
    grid-template-columns: 100%; grid-template-rows: minmax(0, 46%) minmax(0, 1fr); }
  .xb-chart { grid-row: 1; }
  .xp-swipe { grid-row: 2; display: grid; grid-auto-flow: column; grid-auto-columns: 92%; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none; min-height: 0; }
  .xp-swipe::-webkit-scrollbar { display: none; }
  .xp-swipe > .xb { scroll-snap-align: start; grid-area: auto; }
  .xp-dots { display: flex; justify-content: center; gap: 6px; padding: 2px 0 4px; }
  .xp-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.18); }
  .xp-dots i.on { background: var(--ice); }
  .xp-legal { display: none; }
  .xp-hint { margin: 0 10px 6px; flex-wrap: wrap; font-size: 11.5px; }
  .xp-hint span { flex-basis: calc(100% - 30px); }
  .xp-menu { top: 46px; right: 10px; }
}
.xp-top, .xp-watch, .xp-hint, .xp-dots, .xp-legal { flex: none; }
.xc-lv-hl { stroke: rgba(255,255,255,.28); } .xc-lvt-hl { fill: #c3c9d0; }
.xa-m.wait { color: var(--muted); animation: xa-wait 1.4s ease-in-out infinite; }
@keyframes xa-wait { 50% { opacity: .55; } }
.xp-status { position: fixed; z-index: 30; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 8px 14px; border-radius: 999px; background: #0f1115; border: 1px solid rgba(244,184,96,.35); color: #d5dadf; font: 500 12px var(--sans); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.xm-err { color: #ffb4b4 !important; background: rgba(255,107,107,.08); border: 1px solid rgba(255,107,107,.25); border-radius: 10px; padding: 8px 10px; }
.xm-lock { max-width: 520px; }
.xm-back { color: var(--muted); font: 500 13px var(--sans); text-decoration: none; }
.xm-lock .xm-go { display: inline-grid; place-items: center; text-decoration: none; }
/* extra blocks */
.xe-msg { font: 400 12px/1.45 var(--sans); color: var(--muted); margin: 6px 0; }
.xe-tot { display: flex; justify-content: space-between; font: 600 11px var(--mono); margin-bottom: 4px; }
.xe-sv { color: #4ee1ff; }
.xe-l { fill: rgba(255,107,107,.75); } .xe-s { fill: rgba(78,225,255,.75); }
.xe-c { fill: rgba(105,230,166,.75); } .xe-p { fill: rgba(255,107,107,.7); }
.xe-chart { margin-top: 8px; }
#b-liq, #b-opts { display: flex; flex-direction: column; }
#b-liq .xc-svg, #b-opts .xc-svg { flex: 1; min-height: 0; }
#b-sent, #b-narr { display: flex; flex-direction: column; gap: 5px; overflow-y: auto; scrollbar-width: none; }
.xe-sc { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.xe-sc b { font: 600 24px var(--mono); color: var(--ice); } .xe-sc span { font: 500 12px var(--sans); color: #c3c9d0; }
.xe-pr, .xe-nr { display: grid; grid-template-columns: minmax(70px, 1fr) minmax(40px, 1.4fr) 34px; gap: 8px; align-items: center; font: 500 11px var(--sans); color: #cdd3d9; }
.xe-pr { grid-template-columns: minmax(70px, 1fr) minmax(40px, 1.4fr) 26px 30px; }
.xe-pr i, .xe-nr i { height: 6px; border-radius: 3px; background: rgba(255,255,255,.06); overflow: hidden; display: block; }
.xe-pr em, .xe-nr em { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, rgba(78,225,255,.3), #4ee1ff); }
.xe-nr em.i { background: linear-gradient(90deg, rgba(105,230,166,.3), #69e6a6); } .xe-nr em.o { background: linear-gradient(90deg, rgba(255,107,107,.3), #ff6b6b); }
.xe-pr b, .xe-nr b { font: 600 10.5px var(--mono); text-align: right; } .xe-pr small { font: 500 9px var(--mono); color: var(--faint); text-align: right; }
.xe-nr.mine span { color: var(--amber); } .xe-nr span em { font: 500 9px var(--mono); font-style: normal; color: var(--amber); background: none; display: inline; }
.xe-nr span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#b-heat { display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: none; }
.xe-heat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 6px; }
.xe-heat-cell { display: flex; flex-direction: column; justify-content: space-between; gap: 3px; padding: 7px 9px; border-radius: 8px; border: 1px solid var(--line); font-family: var(--sans); text-align: left; cursor: pointer; transition: transform .15s, border-color .15s; min-height: 76px; min-width: 0; overflow: hidden; }
.xe-heat-cell:hover { transform: translateY(-1px); border-color: rgba(78,225,255,.5); }
.xe-heat-cell-top { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.xe-heat-cell b { font: 700 11.5px var(--sans); color: var(--text); display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.xe-heat-cell span.px { font: 600 11px var(--mono); color: #cdd3d9; white-space: nowrap; }
.xe-heat-cell-bot { display: flex; justify-content: space-between; align-items: center; gap: 4px; flex-wrap: wrap; }
.xe-heat-cell small { font: 600 10px var(--mono); white-space: nowrap; }
.xe-heat-cell small.up { color: var(--green); }
.xe-heat-cell small.down { color: var(--red); }
.xe-heat-cell small.mut { color: var(--muted); }
.xe-heat-cell .xe-hbadge { font: 600 8.5px var(--mono); letter-spacing: .04em; color: #dbe2ea; text-transform: uppercase; white-space: nowrap; }
.xe-hdiv { padding: 0 4px; border-radius: 4px; background: rgba(244,184,96,.22); border: 1px solid rgba(244,184,96,.5); color: var(--amber); font: 700 9px var(--mono); }
.xe-heat-why { font: 400 10px/1.3 var(--sans); color: #c3c9d0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xe-heat-cell .hm-pillar-dots { display: flex; flex-wrap: wrap; gap: 3px 5px; margin-top: 1px; }
.xe-heat-cell .hm-pdot { display: inline-flex; align-items: center; gap: 2px; font: 600 8px var(--mono); color: #94a3b8; text-transform: uppercase; }
.xe-heat-cell .hm-pdot i { width: 5px; height: 5px; border-radius: 50%; display: inline-block; background: rgba(255,255,255,.22); }
.xe-heat-cell .hm-pdot.up { color: #b9f5d8; }
.xe-heat-cell .hm-pdot.up i { background: var(--green); }
.xe-heat-cell .hm-pdot.dn { color: #ffc2c2; }
.xe-heat-cell .hm-pdot.dn i { background: var(--red); }
.xe-heat-cell .hm-pdot.nt i { background: #4ee1ff; }
.xe-heat-cell .hm-pdot.lk { opacity: .5; }
@media (max-width: 760px) { .xe-heat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* alerts */
.xp-badge { min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--amber); color: #1a1205; font: 700 9.5px var(--mono); display: inline-grid; place-items: center; margin-left: 2px; }
.xp-badge[hidden] { display: none; }
.xr-bell { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 2px; vertical-align: -2px; }
.xr-bell:hover, .xr-bell:focus-visible { color: var(--amber); }
.xr-bell .xi { width: 13px; height: 13px; }
.xal { max-width: 520px; }
.xal h2 { margin: 0; font: 600 16px var(--sans); }
.xal-list { list-style: none; margin: 8px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 5px; max-height: 30vh; overflow-y: auto; }
.xal-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-rows: auto auto; gap: 0 8px; align-items: center; padding: 7px 9px; border-radius: 10px; background: rgba(255,255,255,.03); font: 400 12.5px var(--sans); }
.xal-list li.off { opacity: .55; }
.xal-list li small { grid-column: 1; font: 500 10px var(--mono); color: var(--faint); }
.xal-list li .xal-sw { grid-row: 1 / 3; grid-column: 2; } .xal-list li .xal-del { grid-row: 1 / 3; grid-column: 3; border: 0; background: none; color: var(--muted); cursor: pointer; }
.xal-new { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.xal-sub { font: 500 9px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.xal-row { display: flex; gap: 8px; align-items: center; }
.xal-row select, .xal-row input { height: 36px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--text); padding: 0 10px; font: 500 13px var(--sans); min-width: 0; }
.xal-row input { flex: 1; font-family: var(--mono); }
.xal-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.xal-chips button { border: 1px solid var(--line); background: transparent; color: #c3c9d0; border-radius: 999px; padding: 4px 9px; font: 500 11px var(--sans); cursor: pointer; }
.xal-chips button:hover { border-color: rgba(244,184,96,.5); }
.xal-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 10px; font: 400 12.5px var(--sans); color: #cdd3d9; }
.xal-checks.ch { grid-template-columns: repeat(3, auto); justify-content: start; }
.xal-tg { color: var(--ice); font: 500 12px var(--sans); }
.xal-note { margin: 0; font: 400 11px var(--sans); color: var(--muted); }
.xal-err { margin: 0; min-height: 14px; font: 500 11.5px var(--sans); color: #ffb4b4; }
.xal .xm-go { align-self: flex-end; }
.xp-toasts { position: fixed; z-index: 60; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.xp-toast { pointer-events: auto; padding: 10px 14px; border-radius: 12px; background: #0f1115; border: 1px solid var(--line); color: #e7ebef; font: 500 12.5px/1.4 var(--sans); box-shadow: 0 20px 60px rgba(0,0,0,.5); transition: opacity .4s, transform .4s; }
.xp-toast.ok { border-color: rgba(105,230,166,.4); } .xp-toast.bad { border-color: rgba(255,107,107,.45); } .xp-toast.hit { border-color: rgba(244,184,96,.6); background: #17130b; }
.xp-toast.out { opacity: 0; transform: translateY(8px); }
@media (max-width: 760px) { .xal-checks { grid-template-columns: 1fr; } .xal-checks.ch { grid-template-columns: 1fr; } #xp-alerts-btn span { display: none; } }
@media (max-width: 1500px) { .xp-price .kv.opt { display: none; } }
.xal-list li small.warn { color: #f4b860; }
