/* ============================================================================
   AurumGamma Gamma Dashboard — v2 layout (same design language as the COT v4 page)
   Scoped under .gx. Element ids, gating classes and the inline renderer are
   unchanged; this file only regroups and restyles them. Inline style="" on the
   legacy blocks wins over normal rules, hence the !important on layout props
   (never on the colours the renderer sets, e.g. the regime banner).
   ============================================================================ */

.gx {
    --gx-bg: #07090e;
    --gx-panel: #0f141c;
    --gx-panel-2: #131a25;
    --gx-line: rgba(148, 163, 184, 0.14);
    --gx-line-strong: rgba(148, 163, 184, 0.28);
    --gx-ink: #f1f5f9;
    --gx-ink-2: #cbd5e1;
    --gx-ink-3: #8b97a8;
    --gx-cyan: #00f0ff;
    --gx-gold: #ffd700;
    --gx-cw: #00f0ff;
    --gx-pw: #ff0080;
    --gx-flip: #ffd700;
    --gx-oi: #00ff9d;
    --gx-up: #22c55e;
    --gx-up-soft: rgba(34, 197, 94, 0.14);
    --gx-dn: #ef4444;
    --gx-dn-soft: rgba(239, 68, 68, 0.14);
    --gx-neu: #f59e0b;
    --gx-neu-soft: rgba(245, 158, 11, 0.14);
    --gx-radius: 14px;
    --gx-mono: 'Share Tech Mono', ui-monospace, Consolas, monospace;
    --gx-sans: 'Inter', 'Outfit', system-ui, sans-serif;
    background:
        radial-gradient(1200px 500px at 15% -5%, rgba(0, 240, 255, 0.06), transparent 60%),
        radial-gradient(900px 500px at 95% 5%, rgba(255, 215, 0, 0.05), transparent 60%),
        var(--gx-bg);
    color: var(--gx-ink);
    font-family: var(--gx-sans);
}

/* overflow-x:hidden on these makes them scroll containers and breaks the sticky
   section nav; clip keeps the no-sideways-scroll guarantee without that. */
html, body.saas-layout, .saas-page.gx { overflow-x: clip !important; overflow-y: visible !important; }

.gx .gx-container { max-width: 1320px !important; margin: 0 auto; padding: 0 16px !important; width: 100%; }
.gx *, .gx *::before, .gx *::after { box-sizing: border-box; }
.gx .tone-bull { color: var(--gx-up); }
.gx .tone-bear { color: var(--gx-dn); }
.gx .tone-neu { color: var(--gx-neu); }

/* ---------- HERO (= #dashboard-header-bar) ---------- */
.gx #dashboard-header-bar.gx-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    padding: 1.75rem;
    margin: 0 0 1rem;
    border: 1px solid var(--gx-line);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.07), rgba(255, 215, 0, 0.04) 55%, transparent), var(--gx-panel);
    position: relative;
    overflow: hidden;
    min-height: 220px;
    z-index: 10;
}
.gx-hero::after {
    content: ""; position: absolute; inset: auto -10% -60% auto;
    width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.09), transparent 65%);
    pointer-events: none;
}
.gx-eyebrow { font-family: var(--gx-mono); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--gx-cyan); margin-bottom: 0.55rem; }
.gx .gx-title { font-size: clamp(1.55rem, 2.6vw, 2.25rem); line-height: 1.15; font-weight: 800; margin: 0 0 0.6rem; color: var(--gx-ink); letter-spacing: -0.01em; font-family: var(--gx-sans); }
.gx-lede { color: var(--gx-ink-2); font-size: 0.98rem; line-height: 1.55; max-width: 62ch; margin: 0 0 1rem; }
.gx-hero-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; position: relative; z-index: 1; }
.gx-hero-actions > a, .gx-hero-actions > button { padding: 8px 14px !important; border-radius: 9px !important; font-size: 0.82rem !important; }
.gx-hero-side { position: relative; z-index: 1; min-width: 0; }

.gx .header-metadata-grid.gx-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    font-size: 0.82rem;
    line-height: 1.35;
}
.gx .header-metadata-grid.gx-meta > .hdr-slot {
    min-width: 0 !important;
    white-space: normal;
    display: flex; flex-direction: column; gap: 2px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--gx-line);
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
    text-align: left;
    color: var(--gx-ink-3);
}
.gx-meta .hdr-slot em { font-style: normal; font-size: 0.66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gx-ink-3); }
.gx-meta .hdr-slot strong { font-family: var(--gx-mono); font-weight: 400; font-size: 0.92rem; overflow-wrap: anywhere; }
.gx .header-metadata-grid.gx-meta > #header-oi-source-badge {
    grid-column: 1 / -1;
    display: block !important;
    padding: 0.55rem 0.7rem !important;
    border-radius: 10px !important;
    font-family: var(--gx-mono);
    font-size: 0.8rem;
    text-align: left !important;
}

/* ---------- SECTION NAV ---------- */
.gx-steps {
    position: sticky; top: var(--gx-sticky-top, 110px); z-index: 40;
    display: flex; gap: 0.35rem;
    overflow-x: auto; scrollbar-width: none;
    padding: 0.45rem; margin: 0 0 1.75rem;
    background: rgba(7, 9, 14, 0.82);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--gx-line); border-radius: 12px;
}
.gx-steps::-webkit-scrollbar { display: none; }
.gx-steps a {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.45rem 0.8rem; border-radius: 8px;
    color: var(--gx-ink-3); text-decoration: none; font-size: 0.84rem; font-weight: 600;
    transition: color .15s, background .15s;
}
.gx-steps a b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; font: 700 0.7rem var(--gx-mono); background: rgba(255, 255, 255, 0.06); color: var(--gx-ink-2); }
.gx-steps a:hover { color: var(--gx-ink); background: rgba(255, 255, 255, 0.04); }
.gx-steps a.active { color: var(--gx-ink); background: rgba(0, 240, 255, 0.1); }
.gx-steps a.active b { background: var(--gx-cyan); color: #000; }

/* ---------- SECTIONS ---------- */
.gx-sec { margin: 0 0 2.75rem; scroll-margin-top: 130px; }
.gx-sec-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.gx-sec-num { font: 700 0.85rem var(--gx-mono); color: var(--gx-cyan); border: 1px solid rgba(0, 240, 255, 0.35); background: rgba(0, 240, 255, 0.06); border-radius: 8px; padding: 0.3rem 0.5rem; margin-top: 0.15rem; flex-shrink: 0; }
.gx-sec-head h2 { font-size: 1.3rem; font-weight: 800; margin: 0 0 0.25rem; color: var(--gx-ink); letter-spacing: -0.005em; font-family: var(--gx-sans); }
.gx-sec-head p { margin: 0; color: var(--gx-ink-3); font-size: 0.92rem; line-height: 1.5; max-width: 80ch; }
.gx-sec-head .gx-pill-tag { display: inline-block; margin-left: 0.4rem; vertical-align: 2px; font: 700 0.66rem var(--gx-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--gx-gold); border: 1px solid rgba(255, 215, 0, 0.4); border-radius: 6px; padding: 2px 6px; }

.gx-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 40%), var(--gx-panel);
    border: 1px solid var(--gx-line);
    border-radius: var(--gx-radius);
    padding: 1.25rem;
    position: relative;
    min-width: 0;
}
.gx-card-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--gx-ink-3); margin-bottom: 0.85rem; }

/* status banners keep their own colours; tidy the box */
.gx #stale-warning-banner, .gx #low-dte-warning-banner { border-radius: 12px !important; margin-bottom: 1rem !important; }

/* ---------- 1. LEVELS ---------- */
.gx #regime-banner {
    border-radius: 14px !important;
    padding: 1rem 1.25rem !important;
    margin: 0 0 1rem !important;
    font-size: 1rem !important;
    line-height: 1.45;
    box-shadow: none !important;
    align-items: flex-start !important;
}
.gx #regime-banner #regime-dot { line-height: 1.1; }
.gx .institutional-levels-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.gx .institutional-levels-grid > div {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 40%), var(--gx-panel) !important;
    border-radius: var(--gx-radius) !important;
    border-top-width: 3px !important;
    box-shadow: none !important;
    padding: 1.15rem 1.15rem 1rem !important;
    min-width: 0;
    transition: transform .2s, border-color .2s;
}
.gx .institutional-levels-grid > div:hover { transform: translateY(-2px); }
.gx .institutional-levels-grid [id^="card-"] { font-size: 2rem !important; letter-spacing: -0.01em; }
.gx-card-dist { display: flex; align-items: center; gap: 0.4rem; margin: -0.2rem 0 0.65rem; font: 600 0.8rem var(--gx-mono); }
.gx-card-dist .gx-chip { padding: 0.12rem 0.45rem; border-radius: 6px; }
.gx-chip.up { color: var(--gx-up); background: var(--gx-up-soft); }
.gx-chip.dn { color: var(--gx-dn); background: var(--gx-dn-soft); }
.gx-chip.flat { color: var(--gx-ink-3); background: rgba(255, 255, 255, 0.05); }

.gx #context-row-card {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
    padding: 1rem 1.25rem !important;
    margin-bottom: 0 !important;
    background: var(--gx-panel) !important;
    border: 1px solid var(--gx-line) !important;
    border-radius: var(--gx-radius) !important;
    font-size: 0.8rem !important;
    color: var(--gx-ink-3) !important;
}
.gx #context-row-card > div:not(.component-simulated-watermark) { display: flex; flex-direction: column; gap: 3px; min-width: 0; text-transform: uppercase; letter-spacing: .06em; font-family: var(--gx-sans); font-size: 0.68rem; }
.gx #context-row-card strong { font-family: var(--gx-mono); font-size: 1rem !important; letter-spacing: 0; text-transform: none; overflow-wrap: anywhere; }

/* ---------- 2. PRICE MAP (gamma-terminal.js) ---------- */
.gx-map-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem; }
.gx-map-card { overflow: hidden; }
.gx-map { position: relative; height: 210px; margin: 0.5rem 0 0.25rem; }
.gx-map-zone { position: absolute; top: 92px; height: 26px; border-radius: 6px; transition: left .7s cubic-bezier(.2, .8, .2, 1), width .7s cubic-bezier(.2, .8, .2, 1); }
.gx-map-zone.short { background: repeating-linear-gradient(135deg, rgba(239, 68, 68, 0.16) 0 6px, rgba(239, 68, 68, 0.07) 6px 12px); }
.gx-map-zone.long { background: repeating-linear-gradient(135deg, rgba(34, 197, 94, 0.16) 0 6px, rgba(34, 197, 94, 0.07) 6px 12px); }
.gx-map-em { position: absolute; top: 86px; height: 38px; border: 1px dashed rgba(203, 213, 225, 0.55); border-radius: 8px; background: rgba(203, 213, 225, 0.06); transition: left .7s cubic-bezier(.2, .8, .2, 1), width .7s cubic-bezier(.2, .8, .2, 1); }
.gx-map-em.macro { top: 80px; height: 50px; border-color: rgba(203, 213, 225, 0.22); background: transparent; }
.gx-map-axis { position: absolute; left: 0; right: 0; top: 104px; height: 2px; background: var(--gx-line-strong); }
.gx-map-mk { position: absolute; top: 0; bottom: 0; width: 0; transition: left .7s cubic-bezier(.2, .8, .2, 1); }
.gx-map-mk i { position: absolute; left: -1px; top: 84px; width: 2px; height: 42px; border-radius: 2px; background: var(--c); }
.gx-map-mk .gx-mk-dot { position: absolute; left: -7px; top: 98px; width: 14px; height: 14px; border-radius: 50%; background: var(--c); border: 3px solid var(--gx-panel); box-shadow: 0 0 0 1px var(--gx-line-strong); }
.gx-map-mk .gx-mk-lbl {
    position: absolute; transform: translateX(-50%);
    white-space: nowrap; text-align: center;
    font-size: 0.72rem; line-height: 1.25; color: var(--gx-ink-2);
}
.gx-map-mk .gx-mk-lbl b { display: block; font: 400 0.82rem var(--gx-mono); color: var(--gx-ink); }
.gx-map-mk .gx-mk-lbl.r0 { bottom: 132px; }
.gx-map-mk .gx-mk-lbl.r1 { bottom: 172px; }
.gx-map-mk .gx-mk-lbl.r2 { top: 132px; }
.gx-map-mk .gx-mk-lbl.r3 { top: 172px; }
.gx-map-mk .gx-mk-lbl.edge-l { transform: translateX(-8px); text-align: left; }
.gx-map-mk .gx-mk-lbl.edge-r { transform: translateX(calc(-100% + 8px)); text-align: right; }
.gx-map-mk .gx-mk-tag { display: none; position: absolute; transform: translateX(-50%); font: 700 0.62rem var(--gx-sans); color: var(--c); white-space: nowrap; }
.gx-map-mk .gx-mk-tag.edge-l { transform: translateX(-6px); }
.gx-map-mk .gx-mk-tag.edge-r { transform: translateX(calc(-100% + 6px)); }
.gx-map-mk.is-spot i { width: 3px; left: -1.5px; top: 78px; height: 54px; }
.gx-map-mk.is-spot .gx-mk-dot { width: 18px; height: 18px; left: -9px; top: 96px; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12); }
.gx-map-mk.is-live .gx-mk-dot { animation: gx-pulse 1.8s infinite; }
@keyframes gx-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .45); } 70% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.gx-map-scale { display: flex; justify-content: space-between; font: 0.7rem var(--gx-mono); color: var(--gx-ink-3); }
.gx-map-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: 0.75rem; font-size: 0.74rem; color: var(--gx-ink-3); }
.gx-map-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.gx-map-legend i { display: inline-block; width: 16px; height: 9px; border-radius: 3px; }
.gx-map-legend .lg-short { background: rgba(239, 68, 68, 0.35); }
.gx-map-legend .lg-long { background: rgba(34, 197, 94, 0.35); }
.gx-map-legend .lg-em { border: 1px dashed rgba(203, 213, 225, 0.6); }

.gx-ladder { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.gx-ladder li {
    display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; gap: 0.6rem; align-items: center;
    padding: 0.5rem 0.6rem; border-radius: 10px; border: 1px solid transparent;
    font-size: 0.85rem; color: var(--gx-ink-2);
}
.gx-ladder li i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.gx-ladder li .px { font-family: var(--gx-mono); color: var(--gx-ink); }
.gx-ladder li .d { font-family: var(--gx-mono); font-size: 0.78rem; min-width: 4.6em; text-align: right; }
.gx-ladder li.is-spot { background: rgba(255, 255, 255, 0.05); border-color: var(--gx-line-strong); }
.gx-ladder li.is-spot span:not(.px):not(.d) { font-weight: 700; color: var(--gx-ink); }
.gx-ladder li small { display: block; font-size: 0.7rem; color: var(--gx-ink-3); }
.gx-net { margin-top: 0.9rem; padding-top: 0.8rem; border-top: 1px dashed var(--gx-line-strong); display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.82rem; color: var(--gx-ink-3); flex-wrap: wrap; }
.gx-net b { font-family: var(--gx-mono); font-weight: 400; }

.gx-brief-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1rem; margin-top: 1rem; }
.gx-brief { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.gx-brief li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 0.6rem; align-items: start; font-size: 0.92rem; line-height: 1.5; color: var(--gx-ink-2); }
.gx-brief li b { color: var(--gx-ink); }
.gx-brief-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 0.72rem; background: rgba(255, 255, 255, 0.05); border: 1px solid currentColor; }
.gx-changes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.gx-change { background: rgba(0, 0, 0, 0.25); border: 1px solid var(--gx-line); border-radius: 10px; padding: 0.55rem 0.7rem; min-width: 0; }
.gx-change .k { font-size: 0.66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gx-ink-3); }
.gx-change .v { font: 400 0.95rem var(--gx-mono); color: var(--gx-ink); margin: 2px 0; overflow-wrap: anywhere; }
.gx-change .gx-chip { font: 600 0.72rem var(--gx-mono); padding: 0.1rem 0.4rem; border-radius: 5px; display: inline-block; }
.gx-changes-note { font-size: 0.74rem; color: var(--gx-ink-3); margin-top: 0.6rem; }

/* ---------- 3. EXPECTED MOVE + AI ---------- */
.gx .gx-em-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 1rem !important; margin-bottom: 0 !important; }
.gx #expected-move-card, .gx #ai-advisor-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 40%), var(--gx-panel) !important;
    border: 1px solid var(--gx-line) !important;
    border-radius: var(--gx-radius) !important;
    box-shadow: none !important;
    padding: 1.25rem !important;
    min-width: 0;
}
.gx-em-bar { position: relative; height: 34px; margin: 1rem 0 0.4rem; }
.gx-em-bar .t { position: absolute; left: 0; right: 0; top: 15px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.06); }
.gx-em-bar .b { position: absolute; top: 9px; height: 16px; border-radius: 6px; transition: left .7s ease, width .7s ease; }
.gx-em-bar .b.macro { background: rgba(0, 240, 255, 0.16); border: 1px solid rgba(0, 240, 255, 0.45); }
.gx-em-bar .b.day { background: rgba(255, 215, 0, 0.28); border: 1px solid rgba(255, 215, 0, 0.7); top: 12px; height: 10px; }
.gx-em-bar .s { position: absolute; top: 4px; width: 2px; height: 26px; margin-left: -1px; background: var(--gx-ink); border-radius: 2px; transition: left .7s ease; }
.gx-em-scale { display: flex; justify-content: space-between; font: 0.7rem var(--gx-mono); color: var(--gx-ink-3); }

/* ---------- 4-6. CHART CARDS (gated legacy blocks) ---------- */
.gx #dashboard-futures-chart-container,
.gx #plotly-gex-container,
.gx #gex-distribution-section,
.gx #strikes-profile-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 30%), var(--gx-panel) !important;
    border: 1px solid var(--gx-line) !important;
    border-radius: var(--gx-radius) !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
}
.gx #dashboard-futures-chart-container:not(.is-fullscreen),
.gx #plotly-gex-container:not(.is-fullscreen),
.gx #gex-distribution-section { padding: 1.25rem !important; }
.gx #dashboard-futures-chart-container h3, .gx #plotly-gex-container h3, .gx #gex-distribution-section h3 { font-size: 1rem !important; color: var(--gx-ink-2) !important; }
.gx #freemium-delayed-banner { margin-bottom: 1.75rem; }
.gx .gx-sec .futures-toolbar-container, .gx .gex-dist-toolbar { border-radius: 10px; }

/* ---------- 7. STRIKES ---------- */
.gx #toggle-strikes-btn { padding: 1rem 1.25rem !important; font-size: 0.95rem !important; }
.gx #strikes-table-wrapper { padding: 0.5rem 1.25rem 1.25rem !important; }
.gx #strikes-table-body tr:hover { background: rgba(255, 255, 255, 0.035); }
.gx-disclaimer { background: rgba(255, 255, 255, 0.02) !important; border: 1px solid var(--gx-line) !important; border-radius: 12px !important; text-align: left !important; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
    .gx .institutional-levels-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gx-map-grid, .gx-brief-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
    .gx #dashboard-header-bar.gx-hero { grid-template-columns: minmax(0, 1fr); padding: 1.25rem; }
    .gx .gx-em-grid { grid-template-columns: minmax(0, 1fr) !important; }
    .gx #context-row-card { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 600px) {
    .gx .gx-container { padding: 0 12px !important; }
    .gx .institutional-levels-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
    .gx .institutional-levels-grid > div { padding: 0.9rem 0.8rem 0.8rem !important; }
    .gx .institutional-levels-grid [id^="card-"] { font-size: 1.35rem !important; }
    .gx .institutional-levels-grid > div > div:first-of-type > div:first-child { white-space: normal !important; font-size: 0.74rem !important; }
    .gx .institutional-levels-grid > div > div:last-child { font-size: 0.72rem !important; }
    .gx-card-dist { font-size: 0.72rem; flex-wrap: wrap; }
    .gx .header-metadata-grid.gx-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gx-sec-head h2 { font-size: 1.15rem; }
    .gx-map { height: 116px; margin-top: 0.25rem; }
    .gx-map-mk .gx-mk-lbl { display: none; }
    .gx-map-mk .gx-mk-tag { display: block; }
    .gx-map-mk .gx-mk-tag.t0 { top: 66px; }
    .gx-map-mk .gx-mk-tag.t1 { top: 80px; }
    .gx-map-mk .gx-mk-tag.t2 { top: 94px; }
    .gx-map-zone { top: 20px; }
    .gx-map-em { top: 14px; }
    .gx-map-em.macro { top: 8px; }
    .gx-map-axis { top: 32px; }
    .gx-map-mk i { top: 12px; }
    .gx-map-mk .gx-mk-dot { top: 26px; }
    .gx-map-mk.is-spot i { top: 6px; }
    .gx-map-mk.is-spot .gx-mk-dot { top: 24px; }
    .gx-ladder li { grid-template-columns: 10px minmax(0, 1fr) auto; }
    .gx-ladder li .d { grid-column: 2 / -1; text-align: left; min-width: 0; margin-top: -0.3rem; }
    .gx-changes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
    .gx .institutional-levels-grid { grid-template-columns: minmax(0, 1fr); }
    .gx #context-row-card { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (prefers-reduced-motion: reduce) {
    .gx *, .gx *::before, .gx *::after { transition: none !important; animation: none !important; }
}
