/* Geopolitics Globe node (SLUG gpg) — styles. Loaded globally by Dash from /assets, so every rule is scoped under
   .gpg-app. Shared tokens (as the World Exchanges Globe): 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 #3cc878, down #e5534b.
   The app toolbar (Documentation · Clone · ✕) sits top-right: the header stays left, the panel starts below it. */

.gpg-app { --gpg-up: #3cc878; --gpg-down: #e5534b; --gpg-amber: #f0a030; --gpg-muted: #9fb3c8; --gpg-head: #cfefff;
           --gpg-text: #e8e8e8; --gpg-panel: rgba(4, 10, 18, 0.9); --gpg-chip: rgba(255, 255, 255, 0.06);
           --gpg-line: rgba(255, 255, 255, 0.08);
           position: absolute; inset: 0; color: var(--gpg-text); font-size: 13px; overflow: hidden; }
.gpg-app * { box-sizing: border-box; }
.gpg-root { position: absolute; inset: 0; overflow: hidden; }
.gpg-stage { position: absolute; inset: 0; z-index: 0; isolation: isolate; cursor: grab; touch-action: none;
             background: radial-gradient(ellipse at 50% 50%, rgba(30, 70, 140, 0.16) 0%, rgba(5, 12, 26, 0) 46%),
                         var(--gpg-stars) repeat, radial-gradient(ellipse at 50% 40%, #050b16 0%, #010206 70%); }
.gpg-stage:active { cursor: grabbing; }
.gpg-app .up { color: var(--gpg-up); }
.gpg-app .down { color: var(--gpg-down); }
.gpg-app .amber { color: var(--gpg-amber); }
.gpg-mut { color: #7f93a6; }

/* ---------- loading veil, toast, tooltip ------------------------------------------------------------- */
.gpg-veil { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
            gap: 14px; color: var(--gpg-muted); pointer-events: none; transition: opacity .6s; z-index: 6; }
.gpg-veil.gone { opacity: 0; }
.gpg-orbit { width: 54px; height: 54px; border-radius: 50%; border: 2px solid rgba(240, 160, 48, 0.25);
             border-top-color: var(--gpg-amber); animation: gpg-spin 1s linear infinite; }
.gpg-err { color: #ffd0cb; max-width: 420px; text-align: center; }
@keyframes gpg-spin { to { transform: rotate(360deg); } }
.gpg-toast { position: absolute; left: 50%; top: 18px; transform: translate(-50%, -12px); z-index: 9; opacity: 0; pointer-events: none;
             background: rgba(10, 18, 30, 0.95); border: 1px solid rgba(240, 160, 48, 0.45); color: #ffe2a8; border-radius: 10px;
             padding: 7px 14px; font-size: .78rem; transition: opacity .25s, transform .25s; max-width: 70%; text-align: center; }
.gpg-toast.gpg-on { opacity: 1; transform: translate(-50%, 0); }
.gpg-tip { position: absolute; left: 0; top: 0; z-index: 8; pointer-events: none; opacity: 0; transition: opacity .12s;
           background: rgba(6, 12, 22, 0.95); border: 1px solid rgba(207, 239, 255, 0.16); border-radius: 10px; padding: 8px 10px;
           width: 250px; font-size: .74rem; line-height: 1.4; box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55); }
.gpg-tip.gpg-on { opacity: 1; }
.gpg-tip b { color: var(--gpg-head); font-size: .84rem; }
.gpg-spark { display: block; width: 100%; height: 30px; margin: 5px 0 3px; }
.gpg-arc-tip { background: rgba(6, 12, 22, 0.95); border: 1px solid rgba(240, 160, 48, 0.4); border-radius: 8px; padding: 5px 9px;
               font-size: .74rem; color: #e8e8e8; }
.gpg-arc-tip b { color: #ffe2a8; }

/* ---------- header: title, global GPR strip, layer chips ---------------------------------------------- */
.gpg-head { position: absolute; top: 12px; left: 18px; right: 230px; z-index: 4; display: flex; flex-wrap: wrap; align-items: flex-start;
            gap: 10px 18px; pointer-events: none; }
.gpg-head > * { pointer-events: auto; }
.gpg-root.sheet .gpg-head { right: 600px; }
.gpg-title b { display: block; font-size: 1.32rem; color: var(--gpg-head); font-weight: 600; letter-spacing: .2px; }
.gpg-title span { color: var(--gpg-muted); font-size: .74rem; }
.gpg-gl { display: flex; align-items: center; gap: 10px; background: rgba(0, 0, 0, 0.5); border: 1px solid var(--gpg-line);
          border-radius: 10px; padding: 5px 10px; }
.gpg-gl .gpg-spark { width: 200px; height: 34px; margin: 0; }
.gpg-gl-k span { display: block; font-size: .62rem; color: var(--gpg-muted); text-transform: uppercase; letter-spacing: .7px; }
.gpg-gl-k b { font-size: 1.35rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.gpg-gl-k em { display: block; font-style: normal; font-size: .62rem; color: #7f93a6; }
.gpg-tools { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; }
.gpg-chip { border: 1px solid var(--gpg-line); background: rgba(8, 14, 24, 0.72); color: #cfdbe7; backdrop-filter: blur(3px); font-size: .76rem; padding: 5px 11px;
            border-radius: 10px; cursor: pointer; white-space: nowrap; transition: border-color .15s, background .15s, box-shadow .15s; }
.gpg-chip:hover { border-color: rgba(207, 239, 255, 0.35); }
.gpg-chip.gpg-on { border-color: rgba(240, 160, 48, 0.75); background: rgba(240, 160, 48, 0.16); color: #ffe2a8;
               box-shadow: 0 0 14px rgba(240, 160, 48, 0.25); }
.gpg-chip i { margin-right: 4px; opacity: .9; }

/* ---------- legend --------------------------------------------------------------------------------------- */
.gpg-legend { position: absolute; left: 18px; bottom: 18px; width: 320px; z-index: 3; font-size: .7rem; color: var(--gpg-muted);
              background: rgba(0, 0, 0, 0.55); border: 1px solid var(--gpg-line); border-radius: 10px; padding: 9px 11px;
              display: flex; flex-direction: column; gap: 7px; backdrop-filter: blur(4px); }
.gpg-lg-h { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 5px; }
.gpg-lg-h b { color: var(--gpg-head); font-size: .78rem; }
.gpg-segs { display: inline-flex; gap: 2px; padding: 2px; border-radius: 9px; background: rgba(0, 0, 0, 0.5); border: 1px solid var(--gpg-line); }
.gpg-seg { border: 0; background: transparent; color: var(--gpg-muted); font-size: .66rem; font-weight: 600; padding: 3px 8px;
           border-radius: 7px; cursor: pointer; white-space: nowrap; }
.gpg-seg.gpg-on { background: rgba(240, 160, 48, 0.18); color: #ffd79c; box-shadow: inset 0 0 0 1px rgba(240, 160, 48, 0.45); }
.gpg-grad { height: 9px; border-radius: 5px; box-shadow: 0 0 10px rgba(240, 160, 48, 0.18); }
.gpg-grad-l { display: flex; justify-content: space-between; margin-top: 3px; }
.gpg-lg-n { margin-top: 4px; color: #7f93a6; }
.gpg-keys { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.gpg-keys em { font-style: normal; color: #7f93a6; flex-basis: 100%; }
.gpg-keys i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.gpg-keys i.up { background: var(--gpg-up); box-shadow: 0 0 6px var(--gpg-up); }
.gpg-keys i.amber { background: var(--gpg-amber); box-shadow: 0 0 6px var(--gpg-amber); }
.gpg-keys i.down { background: var(--gpg-down); box-shadow: 0 0 6px var(--gpg-down); }
.gpg-keys i.arc { width: 18px; height: 3px; border-radius: 2px; vertical-align: 2px; }
.gpg-keys i.arc.x { background: linear-gradient(90deg, #f0a030, #ffe2a8); }
.gpg-keys i.arc.m { background: linear-gradient(90deg, rgba(90, 200, 250, .4), #5ac8fa); }
.gpg-keys i.air { background: #ffe066; width: 4px; height: 12px; border-radius: 2px; box-shadow: 0 0 6px #ffe066; }
.gpg-about summary { cursor: pointer; color: #b9c8d8; }
.gpg-about div { margin-top: 4px; line-height: 1.45; max-height: 150px; overflow-y: auto; }

/* ---------- chokepoint markers (HTML elements on the globe) ----------------------------------------------- */
.gpg-cp { position: relative; width: 0; height: 0; cursor: pointer; --c: var(--gpg-up); }
.gpg-cp.amber { --c: var(--gpg-amber); }
.gpg-cp.down { --c: var(--gpg-down); }
.gpg-cp.na { --c: #6f86a0; }
.gpg-cp-core { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 6px; transform: rotate(45deg);
               background: rgba(6, 12, 22, 0.88); border: 2px solid var(--c); box-shadow: 0 0 12px var(--c), inset 0 0 8px var(--c);
               display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.gpg-cp-core i { transform: rotate(-45deg); font-size: 10px; color: var(--c); }
.gpg-cp:not(.oil) .gpg-cp-core { left: -7px; top: -7px; width: 14px; height: 14px; border-width: 1.5px; }
.gpg-cp:not(.oil) .gpg-cp-core i { font-size: 7px; }
.gpg-cp-ring { position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--c);
               opacity: 0; animation: gpg-ring 2.2s ease-out infinite; pointer-events: none; }
.gpg-cp.down .gpg-cp-ring { animation-duration: 1.2s; border-width: 3px; }
.gpg-cp:not(.oil) .gpg-cp-ring { display: none; }
@keyframes gpg-ring { 0% { transform: scale(.4); opacity: .95; } 100% { transform: scale(1.6); opacity: 0; } }
.gpg-cp-l { position: absolute; left: 16px; top: -10px; white-space: nowrap; font-size: .7rem; font-weight: 600; color: #f2f6fa;
            background: rgba(4, 10, 18, 0.78); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 7px; padding: 1px 6px;
            pointer-events: none; text-shadow: 0 1px 2px #000; }
.gpg-cp-l em { font-style: normal; color: var(--c); margin-left: 5px; }
.gpg-cp:not(.oil) .gpg-cp-l { display: none; }
.gpg-cp:not(.oil):hover .gpg-cp-l { display: block; }
.gpg-cp:hover .gpg-cp-core, .gpg-cp.sel .gpg-cp-core { transform: rotate(45deg) scale(1.35); }
.gpg-cp.sel .gpg-cp-core { border-color: #ffe2a8; }
.gpg-small { position: relative; width: 0; height: 0; cursor: pointer; }
.gpg-small i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff;
               box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
.gpg-small b { position: absolute; left: 10px; top: -8px; font-size: .64rem; color: #dfe9f3; white-space: nowrap; text-shadow: 0 1px 2px #000;
               pointer-events: none; }
.gpg-small.sel i { border-color: #ffe2a8; transform: scale(1.4); }

/* ---------- the server's panel (chokepoint / country) ------------------------------------------------------ */
.gpg-panel { position: absolute; top: 58px; right: 16px; bottom: 16px; width: 470px; z-index: 5; display: none; flex-direction: column;
             gap: 9px; overflow-y: auto; background: var(--gpg-panel); border: 1px solid rgba(240, 160, 48, 0.28); border-radius: 10px;
             padding: 12px 14px 14px; backdrop-filter: blur(8px); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); scrollbar-width: thin;
             animation: gpg-in .35s cubic-bezier(.2, .8, .2, 1); }
.gpg-panel.gpg-on { display: flex; }
.gpg-panel > * { flex-shrink: 0; }                 /* a scrolling column: nothing (the figure) is squeezed to 0 */
@keyframes gpg-in { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
.gpg-ph { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.gpg-ph h4 { margin: 3px 0 1px; color: var(--gpg-head); font-size: 1.2rem; font-weight: 600; }
.gpg-sub { color: var(--gpg-muted); font-size: .72rem; }
.gpg-chip-k { display: inline-block; font-size: .6rem; text-transform: uppercase; letter-spacing: .8px; color: #ffd79c;
              background: rgba(240, 160, 48, 0.14); border: 1px solid rgba(240, 160, 48, 0.4); border-radius: 6px; padding: 1px 6px; }
.gpg-pclose { border: 0; background: rgba(255, 255, 255, 0.06); color: #e8e8e8; border-radius: 8px; width: 28px; height: 28px;
              cursor: pointer; flex: 0 0 28px; }
.gpg-pclose:hover { background: rgba(229, 83, 75, 0.25); }
.gpg-verdict { font-weight: 600; font-size: .82rem; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); }
.gpg-verdict i { font-size: .6rem; vertical-align: 2px; }
.gpg-verdict.down { background: rgba(229, 83, 75, 0.14); box-shadow: inset 0 0 0 1px rgba(229, 83, 75, 0.45); }
.gpg-verdict.amber { background: rgba(240, 160, 48, 0.12); box-shadow: inset 0 0 0 1px rgba(240, 160, 48, 0.4); }
.gpg-verdict.up { background: rgba(60, 200, 120, 0.1); box-shadow: inset 0 0 0 1px rgba(60, 200, 120, 0.35); }
.gpg-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gpg-kpi { background: rgba(255, 255, 255, 0.06); border-radius: 10px; padding: 7px 9px; min-width: 0; }
.gpg-kpi span { display: block; font-size: .64rem; color: var(--gpg-muted); }
.gpg-kpi b { display: block; font-size: 1.12rem; font-weight: 700; color: #f2f6fa; font-variant-numeric: tabular-nums; }
.gpg-kpi b.up { color: var(--gpg-up); } .gpg-kpi b.down { color: var(--gpg-down); }
.gpg-kpi em { display: block; font-style: normal; font-size: .62rem; color: #8ea3b8; line-height: 1.3; }
.gpg-graph { border-radius: 10px; overflow: hidden; }
.gpg-foot { font-size: .66rem; color: #8ea3b8; line-height: 1.45; }
.gpg-foot.warn { color: #ffcf8a; }
.gpg-foot b { color: #b9c8d8; }
.gpg-sec-t { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.gpg-sec-t b { color: var(--gpg-head); font-size: .86rem; }
.gpg-sec-t span { font-size: .64rem; color: var(--gpg-muted); }
.gpg-trade { display: flex; flex-direction: column; gap: 5px; background: rgba(255, 255, 255, 0.03); border-radius: 10px; padding: 8px; }
.gpg-tp2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gpg-sec-h { font-size: .62rem; text-transform: uppercase; letter-spacing: .7px; color: var(--gpg-muted); margin-bottom: 3px; }
.gpg-tp { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n b" "bar e"; gap: 0 6px; padding: 3px 4px;
          border-radius: 7px; cursor: pointer; font-size: .7rem; }
.gpg-tp:hover { background: rgba(255, 255, 255, 0.06); }
.gpg-tp-n { grid-area: n; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #dfe9f3; }
.gpg-tp b { grid-area: b; font-variant-numeric: tabular-nums; color: #f2f6fa; }
.gpg-tp em { grid-area: e; font-style: normal; font-size: .62rem; text-align: right; }
.gpg-tp-bar { grid-area: bar; height: 4px; align-self: center; background: rgba(255, 255, 255, 0.05); border-radius: 2px; overflow: hidden; }
.gpg-tps:first-child .gpg-tp-bar i { background: linear-gradient(90deg, #f0a030, #ffe2a8); }
.gpg-tps:last-child .gpg-tp-bar i { background: linear-gradient(90deg, rgba(90, 200, 250, .5), #5ac8fa); }
.gpg-tp-bar i { display: block; height: 100%; border-radius: 2px; }

/* =========================================================================================================
   NEW-18: resource screens (oil, uranium, chips, minerals)
   ========================================================================================================= */
.gpg-app { --gpg-oil: #f0a030; --gpg-u: #c8f03c; --gpg-chip-c: #5ac8fa; --gpg-min: #e07a3a; --gpg-cyan: #5ac8fa; }
.gpg-app .cyan { color: var(--gpg-cyan); }
/* a mood for each screen: a coloured glow behind the Earth */
/* the glow sits on the stage, behind the WebGL canvas (stage is an isolated stacking context) */
.gpg-stage::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
                     transition: opacity 1.2s; }
.gpg-root.scr-oil .gpg-stage::before { opacity: 1; background: radial-gradient(circle at 50% 52%, rgba(240, 140, 30, 0) 0%, rgba(240, 140, 30, 0) 27%, rgba(240, 130, 30, 0.22) 33%, rgba(240, 120, 30, 0.05) 46%, transparent 60%); }
.gpg-root.scr-uranium .gpg-stage::before { opacity: 1; background: radial-gradient(circle at 50% 52%, transparent 27%, rgba(200, 240, 60, 0.18) 33%, rgba(120, 200, 40, 0.04) 46%, transparent 60%); }
.gpg-root.scr-chips .gpg-stage::before { opacity: 1; background: radial-gradient(circle at 50% 52%, transparent 27%, rgba(90, 200, 250, 0.22) 33%, rgba(90, 160, 250, 0.05) 46%, transparent 60%); }
.gpg-root.scr-minerals .gpg-stage::before { opacity: 1; background: radial-gradient(circle at 50% 52%, transparent 27%, rgba(224, 122, 58, 0.22) 33%, rgba(229, 83, 75, 0.05) 46%, transparent 60%); }
.gpg-root.scen-hormuz .gpg-stage::before, .gpg-root.scen-taiwan .gpg-stage::before { opacity: 1; animation: gpg-alarm-bg 2.4s ease-in-out infinite;
  background: radial-gradient(circle at 50% 52%, transparent 26%, rgba(229, 83, 75, 0.32) 33%, rgba(229, 83, 75, 0.06) 48%, transparent 64%); }
@keyframes gpg-alarm-bg { 50% { opacity: .55; } }

/* screens: a big segmented switch */
.gpg-screens { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, 0.55);
               border: 1px solid var(--gpg-line); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45); }
.gpg-scr { --c: #cfefff; border: 0; background: transparent; color: #a9bccd; font-size: .8rem; font-weight: 600; padding: 7px 13px;
           border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: background .2s, color .2s, box-shadow .2s; }
.gpg-scr i { font-size: .95rem; }
.gpg-scr:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.gpg-scr.s-oil { --c: var(--gpg-oil); } .gpg-scr.s-uranium { --c: var(--gpg-u); } .gpg-scr.s-chips { --c: var(--gpg-chip-c); }
.gpg-scr.s-minerals { --c: var(--gpg-min); } .gpg-scr.s-risk { --c: #ff6b8a; }
.gpg-scr.gpg-on { color: #0b1220; background: var(--c); box-shadow: 0 0 18px var(--c), inset 0 0 0 1px rgba(255, 255, 255, 0.35); }

/* the price ticker */
.gpg-ticker { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; }
.gpg-tk { background: rgba(0, 0, 0, 0.55); border: 1px solid var(--gpg-line); border-radius: 10px; padding: 4px 10px; min-width: 92px;
          backdrop-filter: blur(4px); }
.gpg-tk span { display: block; font-size: .58rem; text-transform: uppercase; letter-spacing: .6px; color: var(--gpg-muted); white-space: nowrap; }
.gpg-tk b { display: block; font-size: 1.08rem; font-weight: 700; color: #f2f6fa; font-variant-numeric: tabular-nums; line-height: 1.2; }
.gpg-tk b.up { color: var(--gpg-up); } .gpg-tk b.down { color: var(--gpg-down); }
.gpg-tk em { display: block; font-style: normal; font-size: .6rem; color: #8ea3b8; white-space: nowrap; }
.gpg-counter { border-color: rgba(240, 160, 48, 0.55); background: linear-gradient(135deg, rgba(240, 160, 48, 0.16), rgba(0, 0, 0, 0.55));
               box-shadow: 0 0 16px rgba(240, 160, 48, 0.22); min-width: 240px; }
.gpg-counter b { color: #ffd79c; font-size: 1.3rem; letter-spacing: .5px; text-shadow: 0 0 12px rgba(240, 160, 48, 0.55); }
.gpg-alarm { cursor: pointer; border-color: rgba(229, 83, 75, 0.8); background: linear-gradient(135deg, rgba(229, 83, 75, 0.28), rgba(0, 0, 0, 0.55));
             animation: gpg-pulse 1.6s ease-in-out infinite; }
.gpg-alarm span { color: #ffb4ae; } .gpg-alarm b { color: #ffd0cb; }
@keyframes gpg-pulse { 50% { box-shadow: 0 0 22px rgba(229, 83, 75, 0.65); } }
.gpg-chip.gpg-cta { border-color: rgba(240, 160, 48, 0.6); color: #ffe2a8; background: rgba(240, 160, 48, 0.1); }
.gpg-chip.gpg-cta.gpg-on { background: #f0a030; color: #0b1220; }
.gpg-chip.gpg-warn { border-color: rgba(229, 83, 75, 0.65); color: #ffc2bc; background: rgba(229, 83, 75, 0.1); }
.gpg-chip.gpg-warn.gpg-on { background: #e5534b; color: #fff; box-shadow: 0 0 18px rgba(229, 83, 75, 0.6); }
.gpg-head.scr-uranium .gpg-chip.gpg-cta { border-color: rgba(200, 240, 60, 0.6); color: #ecffb0; background: rgba(200, 240, 60, 0.1); }
.gpg-head.scr-chips .gpg-chip.gpg-cta { border-color: rgba(90, 200, 250, 0.6); color: #d6f3ff; background: rgba(90, 200, 250, 0.1); }
.gpg-head.scr-minerals .gpg-chip.gpg-cta { border-color: rgba(224, 122, 58, 0.6); color: #ffd9b0; background: rgba(224, 122, 58, 0.12); }

/* legend extras */
.gpg-steps { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 6px; }
.gpg-steps .gpg-seg { background: rgba(255, 255, 255, 0.05); }
.gpg-legend.scr-chips .gpg-seg.gpg-on { background: rgba(90, 200, 250, 0.22); color: #d6f3ff; box-shadow: inset 0 0 0 1px rgba(90, 200, 250, 0.6); }
.gpg-legend.scr-minerals .gpg-seg.gpg-on { background: rgba(224, 122, 58, 0.25); color: #ffd9b0; box-shadow: inset 0 0 0 1px rgba(224, 122, 58, 0.65); }
.gpg-legend.scr-uranium .gpg-seg.gpg-on { background: rgba(200, 240, 60, 0.2); color: #ecffb0; box-shadow: inset 0 0 0 1px rgba(200, 240, 60, 0.55); }
.gpg-flip .gpg-seg { font-size: .72rem; padding: 4px 10px; }
.gpg-keys i.lane { width: 22px; height: 4px; border-radius: 2px; background: repeating-linear-gradient(90deg, #ffd678 0 4px, transparent 4px 7px); vertical-align: 2px; }
.gpg-keys i.lane.cut { background: repeating-linear-gradient(90deg, #e5534b 0 3px, transparent 3px 7px); }
.gpg-keys i.pipe { width: 22px; height: 4px; border-radius: 2px; background: #d9b8ff; vertical-align: 2px; }
.gpg-keys i.pipe.by { background: #3cc878; box-shadow: 0 0 6px #3cc878; }
.gpg-keys i.arc.ro { background: linear-gradient(90deg, #e5534b, #c8f03c); }
.gpg-keys i.arc.tw { background: linear-gradient(90deg, #f0a030, #5ac8fa); }
.gpg-keys i.arc.ore { background: linear-gradient(90deg, #e07a3a, #e5534b); }
.gpg-keys i.k { width: 11px; height: 11px; border-radius: 50%; border: 2px solid; background: rgba(0, 0, 0, 0.5); }
.gpg-keys i.k.mine { border-color: #c8f03c; } .gpg-keys i.k.conv { border-color: #8fb7ff; } .gpg-keys i.k.enr { border-color: #49d3b8; }
.gpg-keys i.k.fab { border-color: #5ac8fa; } .gpg-keys i.k.tool { border-color: #c9a7ff; } .gpg-keys i.k.mat { border-color: #ffd166; }
.gpg-keys i.k.pack { border-color: #8ce0c8; }

/* sites: round badges with an icon, sized by capacity */
.gpg-site { position: relative; width: 0; height: 0; cursor: pointer; --c: #f0a030; }
.gpg-site.t-field { --c: #ffb84d; } .gpg-site.t-refi { --c: #5ac8fa; } .gpg-site.t-term { --c: #e8e8e8; }
.gpg-site.t-mine { --c: #c8f03c; } .gpg-site.t-conv { --c: #8fb7ff; } .gpg-site.t-enr { --c: #49d3b8; }
.gpg-site.t-fab { --c: #5ac8fa; } .gpg-site.t-tool { --c: #c9a7ff; } .gpg-site.t-mat { --c: #ffd166; } .gpg-site.t-pack { --c: #8ce0c8; }
.gpg-site.t-min { --c: #e07a3a; }
.gpg-site.hot { --c: #e5534b; }
.gpg-site-c { position: absolute; border-radius: 50%; display: flex; align-items: center; justify-content: center;
              background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.18), rgba(6, 12, 22, 0.92) 60%);
              border: 2px solid var(--c); color: var(--c); box-shadow: 0 0 12px var(--c), inset 0 0 6px rgba(0, 0, 0, 0.6);
              transition: transform .18s; }
.gpg-site:hover .gpg-site-c { transform: scale(1.4); z-index: 3; }
.gpg-site.hot .gpg-site-c { animation: gpg-hot 1.2s ease-in-out infinite; }
@keyframes gpg-hot { 50% { box-shadow: 0 0 26px var(--c), 0 0 4px var(--c); } }
/* value pills on the leading countries */
.gpg-pill { position: relative; width: 0; height: 0; cursor: pointer; --c: #f0a030; }
.gpg-pill.scr-uranium { --c: #c8f03c; } .gpg-pill.scr-chips { --c: #5ac8fa; } .gpg-pill.scr-minerals { --c: #e07a3a; }
.gpg-pill.imp { --c: #5ac8fa; }
.gpg-pill > * { pointer-events: none; }
.gpg-pill b, .gpg-pill span { position: absolute; left: -60px; width: 120px; text-align: center; white-space: nowrap; text-shadow: 0 1px 3px #000; }
.gpg-pill b { top: -38px; font-size: .64rem; color: #f2f6fa; font-weight: 600; }
.gpg-pill span { top: -24px; font-size: .92rem; font-weight: 800; color: var(--c); font-variant-numeric: tabular-nums; }
.gpg-pill span small { font-size: .6rem; font-weight: 600; opacity: .85; }
.gpg-pill::after { content: ''; position: absolute; left: -3px; top: -6px; width: 6px; height: 6px; border-radius: 50%; background: var(--c);
                   box-shadow: 0 0 10px var(--c); }
/* the oil screen's chokepoints show barrels */
.gpg-cp.big .gpg-cp-core { left: -13px; top: -13px; width: 26px; height: 26px; }
.gpg-cp.big .gpg-cp-l { font-size: .74rem; top: -11px; left: 20px; }
.gpg-cp.big.down .gpg-cp-ring { width: 60px; height: 60px; left: -30px; top: -30px; }
/* the tour's tanker */
.gpg-tanker { position: relative; width: 0; height: 0; }
.gpg-tanker i { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center;
                justify-content: center; font-size: 15px; color: #0b1220; background: #ffe2a8; box-shadow: 0 0 0 4px rgba(255, 226, 168, 0.35), 0 0 26px #ffe2a8; }
.gpg-tanker b { position: absolute; left: 20px; top: -9px; white-space: nowrap; font-size: .7rem; color: #ffe2a8; text-shadow: 0 1px 3px #000; }

/* bottom card: tour / replay */
.gpg-card { position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 30px); width: min(760px, calc(100% - 380px)); z-index: 7;
            opacity: 0; pointer-events: none; transition: opacity .35s, transform .35s; background: rgba(4, 10, 18, 0.92);
            border: 1px solid rgba(240, 160, 48, 0.4); border-radius: 14px; padding: 12px 14px; backdrop-filter: blur(8px);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(240, 160, 48, 0.12); }
.gpg-card.gpg-on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.gpg-stepper { display: flex; align-items: center; gap: 2px; margin-bottom: 10px; }
.gpg-stepper button { border: 0; background: transparent; color: #7f93a6; display: flex; flex-direction: column; align-items: center; gap: 3px;
                      cursor: pointer; font-size: .6rem; text-transform: uppercase; letter-spacing: .5px; padding: 2px 4px; min-width: 56px; }
.gpg-stepper button i { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .85rem;
                        border: 2px solid #34465a; background: rgba(0, 0, 0, 0.5); transition: all .3s; }
.gpg-stepper button.done { color: #c9a26a; } .gpg-stepper button.done i { border-color: #a8661a; color: #f0a030; }
.gpg-stepper button.gpg-on { color: #ffe2a8; } .gpg-stepper button.gpg-on i { border-color: #ffe2a8; background: #f0a030; color: #0b1220; box-shadow: 0 0 16px #f0a030; transform: scale(1.12); }
.gpg-stl { flex: 1; height: 2px; background: linear-gradient(90deg, #34465a, #a8661a); min-width: 8px; margin-bottom: 16px; }
.gpg-card-b h3 { margin: 2px 0 4px; color: #ffe2a8; font-size: 1.2rem; font-weight: 700; }
.gpg-card-b p { margin: 0 0 6px; font-size: .84rem; line-height: 1.5; color: #dfe9f3; }
.gpg-card-k { font-size: .62rem; color: var(--gpg-muted); text-transform: uppercase; letter-spacing: .7px; }
.gpg-card-ctl { position: absolute; right: 12px; bottom: 10px; display: flex; gap: 5px; }
.gpg-card-ctl button, .gpg-rp-bar button { border: 1px solid var(--gpg-line); background: rgba(255, 255, 255, 0.07); color: #e8e8e8; border-radius: 8px;
                                           width: 32px; height: 30px; cursor: pointer; }
.gpg-card-ctl button:hover, .gpg-rp-bar button:hover { background: rgba(240, 160, 48, 0.25); }
.gpg-card-ctl button:disabled { opacity: .3; cursor: default; }
.gpg-card.tour .gpg-card-b { padding-right: 150px; }
.gpg-live { font-size: .78rem; font-weight: 600; padding: 6px 9px; border-radius: 9px; margin-top: 4px; background: rgba(255, 255, 255, 0.05); }
.gpg-live.down { background: rgba(229, 83, 75, 0.16); box-shadow: inset 0 0 0 1px rgba(229, 83, 75, 0.5); }
.gpg-live.amber { background: rgba(240, 160, 48, 0.12); box-shadow: inset 0 0 0 1px rgba(240, 160, 48, 0.4); }
.gpg-live.up { background: rgba(60, 200, 120, 0.1); }
.gpg-yield { display: flex; gap: 2px; margin-top: 7px; height: 24px; border-radius: 7px; overflow: hidden; font-size: .62rem; font-weight: 700; }
.gpg-yield span { display: flex; align-items: center; justify-content: center; color: #0b1220; white-space: nowrap; overflow: hidden; }
.gpg-yield .g { background: #f0a030; } .gpg-yield .d { background: #ffd166; } .gpg-yield .j { background: #5ac8fa; } .gpg-yield .o { background: #6f86a0; color: #e8e8e8; }
.gpg-rp-top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.gpg-rp-date { font-size: 1.9rem; font-weight: 800; color: #ffe2a8; font-variant-numeric: tabular-nums; letter-spacing: 1px;
               text-shadow: 0 0 18px rgba(240, 160, 48, 0.5); }
.gpg-rp-brent span { display: block; font-size: .6rem; color: var(--gpg-muted); text-transform: uppercase; }
.gpg-rp-brent b { font-size: 1.4rem; color: #ff6b8a; font-variant-numeric: tabular-nums; }
.gpg-rp-cps { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .74rem; font-weight: 600; }
.gpg-rp-cps span { padding: 2px 7px; border-radius: 7px; background: rgba(255, 255, 255, 0.05); }
.gpg-rp-bar { display: flex; align-items: center; gap: 8px; margin: 8px 0 4px; }
.gpg-rp-bar input { flex: 1; accent-color: #f0a030; }
.gpg-rp-n { font-size: .64rem; color: #8ea3b8; }

/* the panel: dashboards, scenarios */
.gpg-panel.wide { width: 560px; }
.gpg-chip-k.scr-oil { color: #ffd79c; } .gpg-chip-k.scr-uranium { color: #ecffb0; background: rgba(200, 240, 60, 0.12); border-color: rgba(200, 240, 60, 0.45); }
.gpg-chip-k.scr-chips { color: #d6f3ff; background: rgba(90, 200, 250, 0.12); border-color: rgba(90, 200, 250, 0.45); }
.gpg-chip-k.scr-minerals { color: #ffd9b0; background: rgba(224, 122, 58, 0.14); border-color: rgba(224, 122, 58, 0.5); }
.gpg-chip-k.live { color: #fff; background: #e5534b; border-color: #e5534b; animation: gpg-pulse 1.4s infinite; }
.gpg-chip-k.scen { color: #ffc2bc; background: rgba(229, 83, 75, 0.15); border-color: rgba(229, 83, 75, 0.5); }
.gpg-dtabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--gpg-line); padding-bottom: 7px; }
.gpg-dtab { border: 1px solid var(--gpg-line); background: rgba(255, 255, 255, 0.04); color: #b9c8d8; font-size: .74rem; font-weight: 600;
            padding: 5px 12px; border-radius: 9px; cursor: pointer; }
.gpg-dtab:hover { color: #fff; border-color: rgba(207, 239, 255, 0.35); }
.gpg-dtab.gpg-on { background: rgba(240, 160, 48, 0.2); color: #ffe2a8; border-color: rgba(240, 160, 48, 0.7); box-shadow: 0 0 12px rgba(240, 160, 48, 0.25); }
.gpg-verdict.big { font-size: .9rem; padding: 9px 12px; line-height: 1.45; }
.gpg-pbtn { margin-left: 8px; border: 1px solid currentColor; background: rgba(0, 0, 0, 0.3); color: inherit; font-size: .7rem; font-weight: 700;
            border-radius: 8px; padding: 3px 9px; cursor: pointer; }
.gpg-pbtn:hover { background: rgba(255, 255, 255, 0.12); }
.gpg-bigs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.gpg-bign { background: rgba(255, 255, 255, 0.05); border-radius: 10px; padding: 8px 9px; border: 1px solid var(--gpg-line); }
.gpg-bign span { display: block; font-size: .6rem; text-transform: uppercase; letter-spacing: .5px; color: var(--gpg-muted); }
.gpg-bign b { display: block; font-size: 1.25rem; font-weight: 800; color: #f2f6fa; font-variant-numeric: tabular-nums; line-height: 1.25; }
.gpg-bign b.down { color: #ff7b72; text-shadow: 0 0 14px rgba(229, 83, 75, 0.45); } .gpg-bign b.up { color: var(--gpg-up); }
.gpg-bign em { display: block; font-style: normal; font-size: .6rem; color: #8ea3b8; line-height: 1.3; }
.gpg-tbl { width: 100%; border-collapse: collapse; font-size: .7rem; }
.gpg-tbl th { text-align: left; color: var(--gpg-muted); font-weight: 600; font-size: .62rem; text-transform: uppercase; letter-spacing: .4px;
              border-bottom: 1px solid var(--gpg-line); padding: 4px 5px; }
.gpg-tbl td { padding: 4px 5px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); font-variant-numeric: tabular-nums; }
.gpg-tbl tr.live td { background: rgba(229, 83, 75, 0.12); font-weight: 700; }
.gpg-depbar { display: inline-block; width: 80px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.06); overflow: hidden; vertical-align: 1px; }
.gpg-depbar i { display: block; height: 100%; background: linear-gradient(90deg, #f0a030, #e5534b); }
.gpg-evs { display: flex; flex-direction: column; gap: 3px; }
.gpg-ev { display: grid; grid-template-columns: 84px 1fr; gap: 8px; font-size: .72rem; padding: 3px 6px; border-left: 2px solid rgba(240, 160, 48, 0.5);
          background: rgba(255, 255, 255, 0.03); border-radius: 0 7px 7px 0; }
.gpg-ev b { color: #ffd79c; font-variant-numeric: tabular-nums; }
.gpg-assets { display: flex; flex-direction: column; gap: 2px; }
.gpg-as { display: grid; grid-template-columns: 90px 1fr auto; gap: 6px; font-size: .72rem; padding: 3px 5px; border-radius: 6px; }
.gpg-as:nth-child(even) { background: rgba(255, 255, 255, 0.03); }
.gpg-as-k { color: var(--gpg-muted); } .gpg-as b { color: #ffd79c; font-variant-numeric: tabular-nums; }
.gpg-tp.tw { grid-template-columns: 1fr auto; }
.gpg-tp.tw .gpg-tp-bar i { background: linear-gradient(90deg, #f0a030, #5ac8fa); }

/* ---------- phones: the panel becomes a bottom sheet, the legend shrinks --------------------------------- */
@media (max-width: 760px) {
  .gpg-head { right: 10px; left: 10px; top: 48px; }            /* below the app toolbar (Documentation · Clone · ✕) */
  .gpg-title b { font-size: 1.05rem; }
  .gpg-title span { display: none; }
  .gpg-gl { display: none; }
  .gpg-chip { font-size: .68rem; padding: 4px 8px; }
  .gpg-scr { padding: 6px 8px; } .gpg-scr span { display: none; } .gpg-scr.gpg-on span { display: inline; }
  .gpg-tk { min-width: 0; padding: 3px 7px; } .gpg-tk b { font-size: .9rem; } .gpg-tk em { display: none; }
  .gpg-counter { min-width: 0; } .gpg-counter b { font-size: 1rem; }
  .gpg-legend { width: auto; right: 10px; left: 10px; bottom: 10px; max-height: 32%; overflow-y: auto; }
  .gpg-panel, .gpg-panel.wide { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 58%; border-radius: 14px 14px 0 0; }
  .gpg-root.sheet .gpg-legend { display: none; }
  .gpg-kpis, .gpg-tp2 { grid-template-columns: 1fr; }
  .gpg-bigs { grid-template-columns: 1fr 1fr; }
  .gpg-card { width: calc(100% - 16px); bottom: 8px; padding: 9px 10px; }
  .gpg-card.tour .gpg-card-b { padding-right: 0; padding-bottom: 34px; }
  .gpg-stepper button { min-width: 0; } .gpg-stepper button span { display: none; }
  .gpg-root.carded .gpg-legend { display: none; }
  .gpg-tools { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .gpg-tools::-webkit-scrollbar { display: none; }
  .gpg-chip { flex: 0 0 auto; }
  .gpg-ticker { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .gpg-tk.tk-sec { display: none; }
  .gpg-counter span { font-size: .5rem; }
  .gpg-legend .gpg-lg-n, .gpg-legend .gpg-keys em, .gpg-legend .gpg-about { display: none; }
  .gpg-cp.big .gpg-cp-l { font-size: .62rem; }
  .gpg-pill b { font-size: .56rem; } .gpg-pill span { font-size: .78rem; }
}
.gpg-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.gpg-cp.big.quiet .gpg-cp-l { display: none; }
.gpg-cp.big.quiet:hover .gpg-cp-l { display: block; }
.gpg-cp.big.quiet .gpg-cp-core { left: -9px; top: -9px; width: 18px; height: 18px; opacity: .85; }
