/* World Exchanges Globe node — styles. Loaded globally by Dash from /assets, so every rule is scoped under
   .wxg-app / .wxg-root. Shared tokens: panels rgba(0,0,0,0.6), chips rgba(255,255,255,0.06), radius 10px,
   text #e8e8e8, muted #9fb3c8, headings #cfefff, accent #f0a030; up = seagreen family, down = firebrick family.
   The app toolbar (Documentation · Clone · ✕) sits top-right: the header stays left, the panel starts below it. */

.wxg-app { --wxg-up: #3cc878; --wxg-down: #e5534b; --wxg-amber: #f0a030; --wxg-muted: #9fb3c8; --wxg-head: #cfefff;
           --wxg-text: #e8e8e8; --wxg-panel: rgba(4, 10, 18, 0.9); --wxg-chip: rgba(255, 255, 255, 0.06);
           --wxg-line: rgba(255, 255, 255, 0.08);
           position: absolute; inset: 0; color: var(--wxg-text); font-size: 13px; overflow: hidden; }
.wxg-app * { box-sizing: border-box; }
.wxg-root { position: absolute; inset: 0; overflow: hidden; }
.wxg-stage { position: absolute; inset: 0; z-index: 0; isolation: isolate; cursor: grab; touch-action: none;
             transition: opacity .45s, visibility 0s; }
.wxg-stage:active { cursor: grabbing; }
/* flat map view (.wxg-root.map): the globe fades out (hidden, so its dots stop taking clicks), the map fades in */
.wxg-root.map .wxg-stage { opacity: 0; visibility: hidden; transition: opacity .45s, visibility 0s .45s; }
.wxg-flat { position: absolute; inset: 0; z-index: 0; overflow: hidden; cursor: grab; touch-action: none; opacity: 0; visibility: hidden;
            transition: opacity .45s, visibility 0s .45s;
            background: var(--wxg-stars) repeat, radial-gradient(ellipse at 50% 40%, #050b16 0%, #010206 70%); }
.wxg-flat:active { cursor: grabbing; }
.wxg-root.map .wxg-flat { opacity: 1; visibility: visible; transition: opacity .45s, visibility 0s; }
.wxg-flat-in { position: absolute; left: 0; top: 0; transform-origin: 0 0; --ik: 1; will-change: transform; }
.wxg-flat-in.anim { transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.wxg-flat-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border-radius: 6px;
               box-shadow: 0 0 70px rgba(50, 110, 200, 0.22); }
.wxg-flat-arcs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.wxg-farc { fill: none; stroke: #5ac8fa; stroke-linecap: round; vector-effect: non-scaling-stroke; pointer-events: stroke;
            stroke-dasharray: 9 7; animation: wxg-dash 2.6s linear infinite; }
.wxg-farc.cmp { stroke: var(--wxg-amber); stroke-dasharray: 12 4; animation-duration: 1.6s; }
@keyframes wxg-dash { to { stroke-dashoffset: -64; } }
.wxg-flat-pins { position: absolute; inset: 0; }
/* realistic look: deep space behind the photographic Earth (stars + a faint blue glow around the planet) */
.wxg-root.real .wxg-stage { background: radial-gradient(ellipse at 50% 50%, rgba(30, 70, 140, 0.16) 0%, rgba(5, 12, 26, 0.0) 46%),
                            var(--wxg-stars) repeat, radial-gradient(ellipse at 50% 40%, #050b16 0%, #010206 70%); }
.wxg-root .up { color: var(--wxg-up); }
.wxg-root .down { color: var(--wxg-down); }
.wxg-root .amber { color: var(--wxg-amber); }

/* ---------- loading veil ---------------------------------------------------------------------- */
.wxg-veil { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
            gap: 14px; color: var(--wxg-muted); pointer-events: none; transition: opacity .6s; z-index: 6; }
.wxg-veil.gone { opacity: 0; }
.wxg-orbit { width: 54px; height: 54px; border-radius: 50%; border: 2px solid rgba(90, 174, 240, 0.25);
             border-top-color: #5aaef0; animation: wxg-spin 1s linear infinite; }
.wxg-err { color: #ffd0cb; max-width: 420px; text-align: center; }
@keyframes wxg-spin { to { transform: rotate(360deg); } }

/* ---------- header ----------------------------------------------------------------------------- */
.wxg-head { position: absolute; top: 12px; left: 18px; right: 230px; z-index: 4; display: flex; flex-direction: column;
            gap: 8px; pointer-events: none; }
.wxg-head > * { pointer-events: auto; }
.wxg-title b { display: block; font-size: 1.32rem; color: var(--wxg-head); font-weight: 600; letter-spacing: .2px; }
.wxg-title span { color: var(--wxg-muted); font-size: .78rem; }
.wxg-modes { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(0, 0, 0, 0.55);
             border: 1px solid var(--wxg-line); align-self: flex-start; transition: opacity .2s; }
.wxg-modes.off { opacity: .35; pointer-events: none; }
.wxg-seg { border: 0; background: transparent; color: var(--wxg-muted); font-size: .8rem; font-weight: 600; padding: 5px 11px;
           border-radius: 8px; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.wxg-seg:hover { color: var(--wxg-head); }
.wxg-seg.on { background: rgba(240, 160, 48, 0.16); color: #ffd79c; box-shadow: inset 0 0 0 1px rgba(240, 160, 48, 0.45); }
.wxg-seg.sm { font-size: .7rem; padding: 3px 8px; }
.wxg-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.wxg-chip { border: 1px solid var(--wxg-line); background: var(--wxg-chip); color: #cfdbe7; font-size: .74rem; padding: 4px 10px;
            border-radius: 10px; cursor: pointer; white-space: nowrap; transition: border-color .15s, background .15s; }
.wxg-chip:hover { border-color: rgba(207, 239, 255, 0.35); }
.wxg-chip.on { border-color: rgba(90, 200, 250, 0.6); background: rgba(90, 200, 250, 0.12); color: #e6f7ff; }
.wxg-chip i { margin-right: 3px; opacity: .85; }
.wxg-only-m { display: none; }

/* ---------- leaderboard -------------------------------------------------------------------------- */
.wxg-board { position: absolute; left: 18px; top: 150px; width: 272px; max-height: calc(100% - 370px); overflow-y: auto; z-index: 3;
             background: var(--wxg-panel); border: 1px solid var(--wxg-line); border-radius: 10px; padding: 9px 9px 7px;
             backdrop-filter: blur(6px); scrollbar-width: thin; }
.wxg-board.shut { display: none; }
.wxg-board-h b { display: block; color: var(--wxg-head); font-size: .86rem; }
.wxg-board-h span { color: var(--wxg-muted); font-size: .68rem; }
.wxg-board-k { color: var(--wxg-muted); font-size: .62rem; text-transform: uppercase; letter-spacing: .7px; margin: 9px 2px 3px; }
.wxg-board-e { color: #7f93a6; font-size: .7rem; margin: 6px 2px 0; }
.wxg-row { display: flex; align-items: center; gap: 7px; width: 100%; border: 0; background: transparent; color: var(--wxg-text);
           padding: 4px 5px; border-radius: 8px; cursor: pointer; text-align: left; font-size: .76rem; }
.wxg-row:hover { background: rgba(255, 255, 255, 0.06); }
.wxg-dotmini { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; box-shadow: 0 0 6px currentColor; }
.wxg-row-n { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #b9c8d8; }
.wxg-row-n b { color: var(--wxg-head); font-weight: 600; margin-right: 2px; }
.wxg-row-n em { color: #7f93a6; font-style: normal; font-size: .64rem; margin-left: 4px; }
.wxg-row-v { flex: 0 0 auto; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- legend ---------------------------------------------------------------------------------- */
.wxg-legend { position: absolute; left: 18px; bottom: 52px; width: 300px; z-index: 3; font-size: .7rem; color: var(--wxg-muted);
              background: rgba(0, 0, 0, 0.45); border: 1px solid var(--wxg-line); border-radius: 10px; padding: 8px 10px; }
.wxg-grad { height: 7px; border-radius: 4px; }
.wxg-grad-l { display: flex; justify-content: space-between; margin-top: 3px; }
.wxg-keys { display: flex; gap: 12px; }
.wxg-keys i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.wxg-legend-n { margin-top: 5px; color: #7f93a6; }
.wxg-about { margin-top: 4px; }
.wxg-about summary { cursor: pointer; color: #b9c8d8; }
.wxg-about div { margin-top: 4px; line-height: 1.45; max-height: 160px; overflow-y: auto; }

/* ---------- globe dots (HTML elements on the globe) -------------------------------------------------- */
.wxg-pin { position: relative; width: 0; height: 0; cursor: pointer; transition: opacity .25s; }
.wxg-pin.behind { opacity: 0; pointer-events: none !important; }
.wxg-dot { --c: #9fb3c8; --s: 12px; position: absolute; left: 0; top: 0; width: var(--s); height: var(--s);
           transform: translate(calc(-50% + var(--ox, 0px)), calc(-50% + var(--oy, 0px))); transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
.wxg-dot i { position: absolute; inset: 0; border-radius: 50%; display: block; }
/* a solid marble: light rim + dark outline so it reads on the bright day side and on the night side alike; glow = in session */
.wxg-core { background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.92) 0, var(--c) 40%, var(--c) 72%, rgba(0, 0, 0, 0.18) 100%);
            box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.82), 0 0 0 3px rgba(2, 7, 14, 0.5), 0 0 calc(var(--s) * .8) var(--c);
            transition: background .35s, box-shadow .35s, transform .22s cubic-bezier(.2, .8, .2, 1); }
.wxg-halo { inset: calc(var(--s) * -0.6) !important; background: radial-gradient(circle, var(--c) 0, rgba(0, 0, 0, 0) 66%);
            opacity: .42; transition: background .35s, transform .22s cubic-bezier(.2, .8, .2, 1); }
.wxg-pulse { border: 2px solid var(--c); opacity: 0; }
/* the pulse of the exchanges in session is drawn in 3D (globe rings); the CSS ring is kept for the selection */
.wxg-pin.sel .wxg-pulse { animation: wxg-pulse 1.8s ease-out infinite; }
.wxg-pin.closed .wxg-dot { opacity: .9; }
.wxg-pin.closed .wxg-core { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.6), 0 0 0 3px rgba(2, 7, 14, 0.5); }
.wxg-pin.closed .wxg-halo { opacity: .14; }
.wxg-pin.nodata .wxg-dot { --c: #5b6b7c !important; opacity: .75; }
.wxg-pin.nodata .wxg-pulse { animation: none; }
.wxg-pin.sel .wxg-dot { opacity: 1; }
.wxg-pin:hover .wxg-core { transform: scale(1.22); }
.wxg-pin.sel .wxg-core { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(2, 7, 14, 0.5), 0 0 calc(var(--s) * 1.1) var(--c); }
/* the label: a small dark pill under the dot, shown where there is room (.lbl, set by wxg_globe.js) or on hover / selection;
   the value (in the dot's colour) appears on hover, on the selection and in a fan */
.wxg-code { position: absolute; left: 50%; top: calc(100% + 5px); transform: translateX(-50%); display: flex; align-items: baseline; gap: 5px;
            padding: 1px 6px 2px; border-radius: 7px; background: rgba(4, 10, 19, 0.78); border: 1px solid rgba(207, 239, 255, 0.14);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); font-size: 9.5px; font-weight: 700; letter-spacing: .4px; line-height: 1.35;
            color: #e3edf7; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .2s; }
.wxg-code em { display: none; font-style: normal; font-weight: 600; letter-spacing: 0; color: var(--c); }
.wxg-pin.lbl .wxg-code { opacity: .92; }
.wxg-pin:hover .wxg-code, .wxg-pin.sel .wxg-code, .wxg-pin.fan .wxg-code { opacity: 1; color: #fff; }
.wxg-pin:hover .wxg-code em, .wxg-pin.sel .wxg-code em, .wxg-pin.fan .wxg-code em { display: inline; }
.wxg-pin:hover, .wxg-pin.sel { z-index: 99990 !important; }
/* crowded dots fanned out under the mouse (wxg_globe.js fanAt): a dark lens under the group, the dots bigger on a ring,
   each label turned outwards; a leader line and a pin-point keep the true place */
.wxg-pin.fan { z-index: 100001 !important; }
.wxg-pin.fan.lens { z-index: 100000 !important; }
.wxg-pin.fan .wxg-core, .wxg-pin.fan .wxg-halo { transform: scale(var(--fk, 1.4)); }
.wxg-pin.fan:hover .wxg-core { transform: scale(calc(var(--fk, 1.4) * 1.18)); }
.wxg-pin.fan[data-side="r"] .wxg-code { left: calc(50% + var(--s) * var(--fk, 1.4) / 2 + 7px); top: 50%; transform: translateY(-50%); }
.wxg-pin.fan[data-side="l"] .wxg-code { left: auto; right: calc(50% + var(--s) * var(--fk, 1.4) / 2 + 7px); top: 50%; transform: translateY(-50%); }
.wxg-pin.fan[data-side="t"] .wxg-code { top: auto; bottom: calc(50% + var(--s) * var(--fk, 1.4) / 2 + 6px); }
.wxg-pin.fan[data-side="b"] .wxg-code { top: calc(50% + var(--s) * var(--fk, 1.4) / 2 + 6px); }
.wxg-lens { position: absolute; z-index: -1; left: var(--lx, 0px); top: var(--ly, 0px); width: calc(var(--lr, 0px) * 2); height: calc(var(--lr, 0px) * 2);
            margin: calc(var(--lr, 0px) * -1) 0 0 calc(var(--lr, 0px) * -1); border-radius: 50%; pointer-events: none;
            background: radial-gradient(circle, rgba(3, 9, 18, 0.82) 0, rgba(3, 9, 18, 0.7) 62%, rgba(3, 9, 18, 0) 100%);
            box-shadow: inset 0 0 0 1px rgba(207, 239, 255, 0.12); opacity: 0; transform: scale(.4);
            transition: opacity .2s, transform .26s cubic-bezier(.2, .8, .2, 1); }
.wxg-pin.lens .wxg-lens { opacity: 1; transform: scale(1); }
.wxg-leg { position: absolute; left: 0; top: 0; height: 1.5px; width: var(--ll, 0px); margin-top: -.75px; transform-origin: 0 50%;
           transform: rotate(var(--la, 0rad)); background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(207, 239, 255, 0.35));
           border-radius: 1px; opacity: 0; pointer-events: none; transition: width .22s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
.wxg-pin.fan .wxg-leg { opacity: 1; }
.wxg-pin.fan::before { content: ''; position: absolute; left: -2.5px; top: -2.5px; width: 5px; height: 5px; border-radius: 50%;
                       background: #fff; box-shadow: 0 0 0 1.5px rgba(2, 7, 14, 0.7), 0 0 5px rgba(255, 255, 255, 0.6); pointer-events: none; }
@keyframes wxg-pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.1); opacity: 0; } }
/* the same dots on the flat map: placed in % of the map, kept at their size on screen whatever the zoom (--ik = 1 / zoom);
   the 3D column becomes a bar above the dot, the 3D rings a pulse (green = open, amber = lunch break) */
.wxg-fpin { position: absolute; transform: scale(var(--ik)); }
.wxg-flat-in.anim .wxg-fpin { transition: transform .9s cubic-bezier(.2, .8, .2, 1), opacity .25s; }
.wxg-bar { position: absolute; left: 50%; bottom: 50%; width: 4px; margin-left: -2px; height: var(--h, 0px); border-radius: 2px 2px 0 0;
           background: linear-gradient(to top, var(--c) 0, var(--c) 45%, rgba(255, 255, 255, 0)); opacity: .9; pointer-events: none;
           transition: height .7s cubic-bezier(.2, .8, .2, 1), background .35s; }
.wxg-fpin.open .wxg-pulse { border-color: var(--wxg-up); animation: wxg-pulse 1.8s ease-out infinite; }
.wxg-fpin.lunch .wxg-pulse { border-color: var(--wxg-amber); animation: wxg-pulse 3.2s ease-out infinite; }
.wxg-fpin.nodata .wxg-pulse { animation: none; }

/* ---------- tooltip / toast ------------------------------------------------------------------------- */
.wxg-tip { position: absolute; left: 0; top: 0; z-index: 8; pointer-events: none; opacity: 0; transition: opacity .12s;
           background: rgba(3, 8, 14, 0.92); border: 1px solid rgba(207, 239, 255, 0.18); border-radius: 10px; padding: 7px 10px;
           font-size: .74rem; color: #c9d6e3; max-width: 240px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5); }
.wxg-tip.on { opacity: 1; }
.wxg-tip b { color: var(--wxg-head); font-size: .8rem; }
.wxg-tip-s { color: #7f93a6; font-size: .66rem; margin-top: 2px; }
.wxg-arc-tip { background: rgba(3, 8, 14, 0.92); border: 1px solid rgba(207, 239, 255, 0.18); border-radius: 10px; padding: 6px 9px;
               font-size: .72rem; color: #e8f4ff; }
.wxg-arc-tip span { color: #9fb3c8; font-size: .66rem; }
.wxg-toast { position: absolute; left: 50%; top: 18px; transform: translate(-50%, -12px); z-index: 9; opacity: 0; pointer-events: none;
             background: rgba(3, 8, 14, 0.94); border: 1px solid rgba(240, 160, 48, 0.5); border-radius: 10px; padding: 7px 12px;
             font-size: .76rem; color: #ffe2b8; transition: opacity .2s, transform .2s; max-width: min(560px, 80vw); text-align: center; }
.wxg-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- stats panel (slides in from the right; bottom sheet on mobile) --------------------------- */
.wxg-panel { position: absolute; top: 58px; right: 14px; bottom: 50px; width: 390px; z-index: 5; display: flex; flex-direction: column;
             background: var(--wxg-panel); border: 1px solid var(--wxg-line); border-radius: 10px; backdrop-filter: blur(10px);
             transform: translateX(calc(100% + 30px)); opacity: 0; transition: transform .38s cubic-bezier(.2, .8, .2, 1), opacity .25s, width .3s;
             box-shadow: -10px 0 40px rgba(0, 0, 0, 0.35); }
.wxg-panel.on { transform: none; opacity: 1; }
.wxg-panel.two { width: min(720px, calc(100% - 330px)); }
.wxg-pbar-top { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--wxg-line); }
.wxg-btn { border: 1px solid var(--wxg-line); background: var(--wxg-chip); color: #cfdbe7; font-size: .72rem; padding: 4px 9px;
           border-radius: 10px; cursor: pointer; }
.wxg-btn:hover { border-color: rgba(240, 160, 48, 0.55); color: #ffe2b8; }
.wxg-x { margin-left: auto; border: 0; background: transparent; color: #cfdbe7; font-size: 17px; line-height: 1; padding: 3px 7px;
         cursor: pointer; border-radius: 8px; }
.wxg-x:hover { background: rgba(255, 255, 255, 0.08); }
.wxg-vs { color: #ffd79c; font-weight: 600; font-size: .8rem; }
.wxg-vs span { color: var(--wxg-muted); font-weight: 400; font-size: .68rem; }
.wxg-pbody { flex: 1 1 auto; overflow-y: auto; padding: 10px 14px 14px; scrollbar-width: thin; }
.wxg-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.wxg-col { min-width: 0; }
.wxg-col + .wxg-col { border-left: 1px solid var(--wxg-line); padding-left: 14px; }
.wxg-ph { display: flex; align-items: flex-start; gap: 10px; }
.wxg-ph h4 { margin: 3px 0 0; font-size: 1.08rem; color: var(--wxg-head); font-weight: 600; line-height: 1.2; }
.wxg-sub { color: var(--wxg-muted); font-size: .74rem; }
.wxg-code-chip { display: inline-block; font-size: .64rem; font-weight: 700; letter-spacing: .6px; color: #ffd79c;
                 background: rgba(240, 160, 48, 0.12); border: 1px solid rgba(240, 160, 48, 0.4); border-radius: 6px; padding: 1px 6px; }
.wxg-status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; margin: 8px 0 4px; font-size: .74rem; color: #b9c8d8; }
.wxg-badge { font-size: .64rem; font-weight: 800; letter-spacing: .8px; padding: 2px 7px; border-radius: 6px; }
.wxg-badge.open { color: #062b16; background: var(--wxg-up); box-shadow: 0 0 10px rgba(60, 200, 120, 0.5); }
.wxg-badge.lunch { color: #2b1a02; background: var(--wxg-amber); }
.wxg-badge.closed { color: #cfdbe7; background: rgba(255, 255, 255, 0.1); }
.wxg-count { color: var(--wxg-muted); }
.wxg-pick { margin: 6px 0; padding: 7px 10px; border-radius: 10px; font-size: .74rem; color: #ffe2b8;
            background: rgba(240, 160, 48, 0.08); border: 1px dashed rgba(240, 160, 48, 0.5); }
.wxg-rp-now { margin: 4px 0; padding: 6px 9px; border-radius: 10px; font-size: .76rem; background: rgba(90, 200, 250, 0.08);
              border: 1px solid rgba(90, 200, 250, 0.3); color: #dff3ff; }
.wxg-sec { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--wxg-line); }
.wxg-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.wxg-sec-h b { color: var(--wxg-head); font-size: .8rem; font-weight: 600; }
.wxg-sec-h > span { color: #7f93a6; font-size: .66rem; }
.wxg-segs { display: inline-flex; gap: 1px; padding: 2px; border-radius: 8px; background: rgba(0, 0, 0, 0.45); }
.wxg-hero { border-top: 0; margin-top: 4px; padding-top: 4px; }
.wxg-idx { color: #ffd79c; font-weight: 700; font-size: .95rem; }
.wxg-idx span { color: #7f93a6; font-weight: 400; font-size: .7rem; margin-left: 4px; }
.wxg-last { font-size: 1.7rem; font-weight: 600; color: #f3f8fc; font-variant-numeric: tabular-nums; line-height: 1.15; margin-top: 2px; }
.wxg-last small { font-size: .7rem; color: var(--wxg-muted); font-weight: 400; }
.wxg-asof { color: #7f93a6; font-size: .68rem; line-height: 1.4; }
.wxg-asof .warn { color: #ffcf8a; }
.wxg-chg { font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 6px; line-height: 1.1; }
.wxg-chg .wxg-pts { font-size: .95rem; font-weight: 600; margin-left: 10px; opacity: .9; }
.wxg-rets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.wxg-rets > div { background: var(--wxg-chip); border-radius: 8px; padding: 5px 4px; text-align: center; }
.wxg-rets span { display: block; color: #7f93a6; font-size: .62rem; text-transform: uppercase; letter-spacing: .5px; }
.wxg-rets b { font-size: .84rem; font-variant-numeric: tabular-nums; }
.wxg-foot { color: #7f93a6; font-size: .66rem; margin-top: 5px; line-height: 1.4; }
.wxg-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 10px; }
.wxg-kv { min-width: 0; }
.wxg-kv span { display: block; color: #7f93a6; font-size: .64rem; }
.wxg-kv b { display: block; font-size: .86rem; font-weight: 600; font-variant-numeric: tabular-nums; color: #eaf2f9; }
.wxg-kv b.up { color: var(--wxg-up); }
.wxg-kv b.down { color: var(--wxg-down); }
.wxg-kv em { display: block; font-style: normal; color: #6f8396; font-size: .62rem; line-height: 1.3; }
.wxg-pbar { display: inline-block; width: 100%; max-width: 120px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.1);
            overflow: hidden; vertical-align: middle; }
.wxg-pbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--wxg-up), #9fb3c8, var(--wxg-down)); }
.wxg-reg { text-transform: uppercase; font-size: .7rem; letter-spacing: .6px; }
.wxg-spark { width: 100%; height: 70px; display: block; }
.wxg-col .wxg-spark { height: 54px; }
.wxg-spark-l { display: flex; justify-content: space-between; gap: 6px; color: #6f8396; font-size: .6rem; margin-top: 2px; }
.wxg-link { margin-top: 7px; border: 1px solid rgba(240, 160, 48, 0.4); background: rgba(240, 160, 48, 0.07); color: #ffd79c;
            font-size: .72rem; padding: 5px 9px; border-radius: 10px; cursor: pointer; text-align: left; }
.wxg-link:hover { background: rgba(240, 160, 48, 0.14); }
.wxg-nodata { margin-top: 6px; padding: 10px 12px; border-radius: 10px; background: rgba(91, 107, 124, 0.18);
              border: 1px solid rgba(159, 179, 200, 0.25); color: #cfdbe7; font-size: .78rem; line-height: 1.5; }

/* ---------- replay bar ----------------------------------------------------------------------------- */
.wxg-replay { position: absolute; left: 50%; bottom: 52px; transform: translate(-50%, 140%); width: min(860px, calc(100% - 660px));
              min-width: 520px; z-index: 4; opacity: 0; transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .25s;
              background: var(--wxg-panel); border: 1px solid var(--wxg-line); border-radius: 10px; padding: 9px 12px 8px;
              backdrop-filter: blur(8px); pointer-events: none; }
.wxg-replay.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.wxg-rp-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wxg-rp-custom { display: inline-flex; align-items: center; gap: 4px; color: var(--wxg-muted); }
.wxg-rp-custom input { background: rgba(0, 0, 0, 0.5); border: 1px solid var(--wxg-line); color: #e8e8e8; border-radius: 8px;
                       font-size: .72rem; padding: 2px 6px; color-scheme: dark; }
.wxg-rp-main { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.wxg-play { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; border: 1px solid rgba(240, 160, 48, 0.6);
            background: rgba(240, 160, 48, 0.15); color: #ffd79c; cursor: pointer; font-size: .9rem; }
.wxg-rp-date { flex: 0 0 auto; min-width: 190px; }
.wxg-rp-date b { display: block; font-size: 1.45rem; color: #f3f8fc; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.wxg-rp-date span { color: #7f93a6; font-size: .62rem; }
.wxg-scrub { flex: 1 1 auto; min-width: 80px; accent-color: #f0a030; }
.wxg-speeds { display: inline-flex; gap: 1px; padding: 2px; border-radius: 8px; background: rgba(0, 0, 0, 0.45); }
.wxg-rp-blurb { color: #7f93a6; font-size: .68rem; margin-top: 5px; }

/* ---------- mobile / narrow ---------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .wxg-replay { width: calc(100% - 36px); min-width: 0; }
  .wxg-panel.two { width: calc(100% - 28px); }
}
@media (max-width: 760px) {
  .wxg-head { top: 52px; left: 10px; right: 10px; gap: 6px; }
  .wxg-title b { font-size: 1.05rem; }
  .wxg-title span { font-size: .68rem; }
  .wxg-modes { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .wxg-seg { padding: 5px 9px; font-size: .74rem; }
  .wxg-only-m { display: inline-block; }
  .wxg-board { top: auto; bottom: 64px; left: 10px; right: 10px; width: auto; max-height: 38%; }
  .wxg-legend { left: 10px; right: 10px; bottom: 8px; width: auto; padding: 6px 9px; }
  .wxg-legend-n, .wxg-about { display: none; }
  /* bottom sheet open: the globe slides up into the free top band, the header keeps only its title */
  .wxg-stage { transition: transform .4s cubic-bezier(.2, .8, .2, 1), opacity .45s, visibility 0s; }
  .wxg-root.sheet .wxg-stage { transform: translateY(-31%); }
  .wxg-root.sheet .wxg-modes, .wxg-root.sheet .wxg-tools, .wxg-root.sheet .wxg-board,
  .wxg-root.sheet .wxg-legend, .wxg-root.sheet .wxg-title span { display: none; }
  .wxg-panel { top: auto; left: 0; right: 0; bottom: 0; width: 100% !important; max-height: 60%; border-radius: 14px 14px 0 0;
               transform: translateY(105%); box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5); }
  .wxg-panel.on { transform: none; }
  .wxg-pbar-top::before { content: ''; position: absolute; left: 50%; top: 5px; width: 38px; height: 4px; margin-left: -19px;
                          border-radius: 2px; background: rgba(255, 255, 255, 0.2); }
  .wxg-cols { grid-template-columns: minmax(0, 1fr); }
  .wxg-col + .wxg-col { border-left: 0; padding-left: 0; border-top: 2px solid rgba(240, 160, 48, 0.35); padding-top: 10px; }
  .wxg-chg { font-size: 1.6rem; }
  .wxg-replay { bottom: 8px; width: calc(100% - 20px); padding: 8px 9px; }
  .wxg-rp-main { flex-wrap: wrap; gap: 8px; }
  .wxg-rp-date { min-width: 0; flex: 1 1 auto; }
  .wxg-rp-date b { font-size: 1.15rem; }
  .wxg-scrub { flex-basis: 100%; order: 5; }
  .wxg-rp-custom input { width: 118px; }
  .wxg-code { display: none; }
  .wxg-pin.sel .wxg-code, .wxg-pin.fan .wxg-code { display: flex; }
}
/* inside the mobile shell (no idea-app toolbar above: the shell has its own app bar) */
.mb-appbody .wxg-head { top: 10px; right: 10px; }
.mb-appbody .wxg-title b { font-size: 1rem; }

/* ---------- market pulse tape ------------------------------------------------------------------ */
.wxg-ticker { position: absolute; left: 0; right: 0; bottom: 0; height: 38px; z-index: 6; display: flex; align-items: center;
              background: linear-gradient(180deg, rgba(2, 6, 12, 0.55), rgba(2, 6, 12, 0.92)); border-top: 1px solid var(--wxg-line);
              backdrop-filter: blur(8px); }
.wxg-tk-lbl { flex: 0 0 auto; padding: 0 14px; color: #ffd79c; font-size: .7rem; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
              border-right: 1px solid var(--wxg-line); height: 100%; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.wxg-tk-lbl span { color: #6f8396; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .64rem; }
.wxg-tk-win { flex: 1 1 auto; overflow: hidden; height: 100%; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
              -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.wxg-tk-track { display: flex; width: max-content; height: 100%; animation: wxg-tape 110s linear infinite; }
.wxg-ticker:hover .wxg-tk-track { animation-play-state: paused; }
.wxg-tk-run { display: flex; align-items: center; height: 100%; padding-right: 24px; }
.wxg-tk { border: 0; background: transparent; color: #b9c8d8; font-size: .76rem; padding: 4px 9px; border-radius: 8px; cursor: pointer;
          display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wxg-tk:hover { background: rgba(255, 255, 255, 0.06); }
.wxg-tk b { color: var(--wxg-head); font-size: .74rem; }
.wxg-tk span { color: #7f93a6; font-size: .7rem; }
.wxg-tk em { font-style: normal; color: #eaf2f9; }
.wxg-tk i { font-style: normal; font-weight: 700; }
.wxg-tk-sep { color: #33475a; }
@keyframes wxg-tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- trading day timeline ------------------------------------------------------------------ */
.wxg-day { position: absolute; left: 50%; bottom: 52px; width: min(760px, calc(100% - 680px)); min-width: 460px; z-index: 4;
           transform: translate(-50%, 140%); opacity: 0; pointer-events: none; transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .25s;
           background: var(--wxg-panel); border: 1px solid var(--wxg-line); border-radius: 10px; padding: 9px 12px 10px; backdrop-filter: blur(8px); }
.wxg-day.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.wxg-day-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.wxg-day-h b { color: var(--wxg-head); font-size: .82rem; }
.wxg-day-h span { color: #7f93a6; font-size: .66rem; }
.wxg-day-g { position: relative; }
.wxg-day-rows { display: grid; grid-auto-rows: 9px; gap: 2px; }
.wxg-dr { display: flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 0; height: 9px; cursor: pointer; }
.wxg-dr b { flex: 0 0 40px; text-align: right; font-size: 7.5px; color: #7f93a6; letter-spacing: .3px; line-height: 9px; }
.wxg-dr.open b, .wxg-dr.lunch b { color: #dff7ea; }
.wxg-dr-t { position: relative; flex: 1 1 auto; height: 100%; background: rgba(255, 255, 255, 0.035); border-radius: 3px; }
.wxg-dr-t i { position: absolute; top: 1px; bottom: 1px; border-radius: 3px; background: rgba(111, 134, 160, 0.55); }
.wxg-dr-t i.past { background: rgba(111, 134, 160, 0.28); }
.wxg-dr-t i.live { background: linear-gradient(90deg, rgba(60, 200, 120, 0.65), #3cc878); box-shadow: 0 0 8px rgba(60, 200, 120, 0.7); }
.wxg-dr.lunch .wxg-dr-t i.past:last-of-type { background: rgba(240, 160, 48, 0.45); }
.wxg-dr-t em { position: absolute; left: 6px; top: -1px; font-style: normal; font-size: 7.5px; color: #55687a; }
.wxg-dr:hover .wxg-dr-t { background: rgba(255, 255, 255, 0.08); }
.wxg-day-ax { position: relative; height: 14px; margin-left: 46px; margin-top: 3px; }
.wxg-day-ax span { position: absolute; transform: translateX(-50%); font-size: .58rem; color: #55687a; }
.wxg-day-now { position: absolute; top: -4px; bottom: 12px; width: 0; border-left: 1.5px solid var(--wxg-amber); box-shadow: 0 0 8px rgba(240, 160, 48, 0.7); }
.wxg-day-now span { position: absolute; top: -12px; left: 0; transform: translateX(-50%); font-size: .58rem; font-weight: 700; color: #ffd79c; }

/* ---------- panel chart, return bars, leaderboard bars, tooltip spark ---------------------------- */
.wxg-chart { position: relative; cursor: crosshair; }
.wxg-chart svg { width: 100%; height: 104px; display: block; }
.wxg-col .wxg-chart svg { height: 72px; }
.wxg-ch-x { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0; }
.wxg-ch-dot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; opacity: 0; pointer-events: none; }
.wxg-ch-tip { position: absolute; top: 4px; width: 120px; padding: 4px 7px; border-radius: 8px; background: rgba(3, 8, 14, 0.92);
              border: 1px solid rgba(207, 239, 255, 0.18); font-size: .66rem; color: #9fb3c8; line-height: 1.35; opacity: 0; pointer-events: none;
              }
.wxg-ch-tip b { color: #f3f8fc; font-size: .76rem; }
.wxg-chart.hov .wxg-ch-x, .wxg-chart.hov .wxg-ch-dot, .wxg-chart.hov .wxg-ch-tip { opacity: 1; }
.wxg-rets > div { position: relative; overflow: hidden; }
.wxg-rets u { position: absolute; left: 0; bottom: 0; height: 2px; opacity: .85; text-decoration: none; }
.wxg-row { position: relative; overflow: hidden; }
.wxg-row > * { position: relative; }
.wxg-row .wxg-row-bar { position: absolute; left: 0; top: 2px; bottom: 2px; opacity: .13; border-radius: 6px; pointer-events: none; }
.wxg-mini { display: block; width: 100%; height: 30px; margin: 4px 0 2px; }
.wxg-panel.on .wxg-pbody { animation: wxg-in .35s ease-out; }
@keyframes wxg-in { from { opacity: .3; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) { .wxg-day { width: calc(100% - 36px); min-width: 0; } }
@media (max-width: 760px) {
  .wxg-ticker { height: 32px; }
  .wxg-tk-lbl span { display: none; }
  .wxg-legend { bottom: 40px; }
  .wxg-board { bottom: 96px; }
  .wxg-replay { bottom: 40px; }
  .wxg-day { display: none; }
  .wxg-root.sheet .wxg-ticker { display: none; }
}