.glgh{--gl-border:rgba(120,120,135,.25);--gl-accent:#7843d0;--gl-muted:#73737e;max-width:100%;padding:18px;border:1px solid var(--gl-border);border-radius:14px;box-sizing:border-box;font-family:inherit;line-height:1.5;isolation:isolate}.glgh *{box-sizing:border-box}.glgh .glgh-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px}.glgh .glgh-status{font-size:11px;padding:4px 8px;border-radius:20px;background:rgba(120,120,135,.10)}.glgh .glgh-status[data-state=live]{color:#16874a}.glgh .glgh-status[data-state=stale]{color:#d08319}.glgh .glgh-main{padding:17px 0;border-bottom:1px solid var(--gl-border)}.glgh small,.glgh-time,.glgh-detail,.glgh-note,.glgh-sources{font-size:12px;opacity:.78}.glgh .glgh-total{font-size:clamp(30px,5vw,48px);font-weight:750;line-height:1.2;font-variant-numeric:tabular-nums;letter-spacing:-1px}.glgh .glgh-change{font-size:12px;color:#16874a}.glgh .glgh-change[data-direction=down]{color:#d33b46}.glgh .glgh-platforms{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}.glgh .glgh-platforms strong,.glgh .glgh-metrics strong{display:block;font-size:clamp(16px,3vw,23px);font-variant-numeric:tabular-nums}.glgh .glgh-controls{margin-top:16px}.glgh .glgh-tabs,.glgh .glgh-filters{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.glgh button{font:inherit;font-size:12px;cursor:pointer;border:1px solid var(--gl-border);border-radius:20px;padding:7px 12px;background:transparent;color:inherit;box-shadow:none;text-transform:none;line-height:1.3}.glgh button[aria-pressed=true]{background:var(--gl-accent);color:white;border-color:var(--gl-accent)}.glgh button:focus-visible,.glgh input:focus-visible{outline:2px solid var(--gl-accent);outline-offset:3px}.glgh .glgh-chart svg{width:100%;height:auto;display:block;overflow:visible}.glgh .glgh-chart input{width:100%;accent-color:var(--gl-accent)}.glgh .glgh-chartlegend{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;font-size:11px;margin:5px 0}.glgh .glgh-chartlegend span:before,.glgh .glgh-legend button span:before{content:'';width:8px;height:8px;background:var(--dot);display:inline-block;border-radius:50%;margin-right:6px}.glgh .glgh-detail{min-height:36px;padding:6px 0;overflow-wrap:anywhere}.glgh .glgh-refresh{width:100%;background:#231a38;color:white;font-weight:600}.glgh .glgh-refresh:disabled{opacity:.55;cursor:wait}.glgh .glgh-note{padding:8px 0}.glgh h3{font:inherit;font-size:16px;font-weight:650;margin:18px 0 8px}.glgh .glgh-share{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:center;border:1px solid var(--gl-border);border-radius:12px;padding:12px}.glgh .glgh-donut svg{width:100%;max-width:240px;display:block;margin:auto}.glgh .glgh-legend{display:grid;gap:8px}.glgh .glgh-legend button{display:flex;justify-content:space-between;align-items:center;gap:5px;border:0;border-radius:6px;padding:7px 4px}.glgh .glgh-legend button:hover{background:rgba(120,120,135,.09)}.glgh .glgh-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.glgh .glgh-metrics>div{padding:12px;border:1px solid var(--gl-border);border-radius:10px;min-width:0}.glgh .glgh-empty{padding:42px 8px;text-align:center;opacity:.75}.glgh .glgh-sources{margin:14px 0 0}.glgh a{color:inherit;text-decoration:underline}.glgh .glgh-metrics small{display:block;overflow-wrap:anywhere}@media(max-width:420px){.glgh{padding:12px}.glgh .glgh-share{gap:3px;padding:7px}.glgh .glgh-legend button{font-size:11px}.glgh .glgh-status{font-size:10px}.glgh .glgh-tabs button,.glgh .glgh-filters button{padding:6px 9px}}

/* Floating shell: deliberately independent of theme containers. */
#glgh-float[hidden]{display:none!important}
#glgh-float{--glgh-right:20px;--glgh-y:72vh;--glgh-panel-h:min(800px,calc(100vh - 32px));--glgh-panel-top:clamp(16px,calc(var(--glgh-y) - var(--glgh-panel-h)/2),calc(100vh - var(--glgh-panel-h) - 16px));--glgh-surface:#fff;--glgh-ink:#20182e;--glgh-sub:#756c83;--glgh-edge:#e9e5ef;--glgh-accent:#6634b0;position:fixed;inset:0;z-index:9000;pointer-events:none;font-family:inherit;font-size:14px;line-height:1.5;color:var(--glgh-ink);isolation:isolate;color-scheme:light}
@supports(height:100dvh){#glgh-float{--glgh-panel-h:min(800px,calc(100dvh - 32px));--glgh-panel-top:clamp(16px,calc(var(--glgh-y) - var(--glgh-panel-h)/2),calc(100dvh - var(--glgh-panel-h) - 16px))}}
#glgh-float *,#glgh-float *:before,#glgh-float *:after{box-sizing:border-box}
#glgh-float .glgh-launch,#glgh-float .glgh-close{appearance:none;-webkit-appearance:none;cursor:pointer;text-transform:none;letter-spacing:normal;box-shadow:none;font:inherit;display:flex;align-items:center;justify-content:center;padding:0;border:0;outline-offset:4px}
#glgh-float .glgh-launch{position:absolute;right:var(--glgh-right);top:var(--glgh-y);transform:translateY(-50%) scale(1);width:68px;height:68px;min-width:0;min-height:0;max-width:none;max-height:none;border-radius:50%;background:linear-gradient(145deg,#7939c4,#3b176c);color:#fff;flex-direction:column;gap:0;pointer-events:auto;box-shadow:0 8px 25px rgba(70,27,127,.28),inset 0 0 0 1px rgba(255,255,255,.2);transition:transform .32s cubic-bezier(.2,.8,.2,1),opacity .2s ease;opacity:1;visibility:visible}
#glgh-float .glgh-launch:hover{transform:translateY(-50%) scale(1.06)}
#glgh-float .glgh-launch svg{display:block;width:35px;height:35px;flex:none}
#glgh-float .glgh-launch-label{display:block;font-size:9px;line-height:12px;font-weight:800;letter-spacing:1px;color:#fff}
#glgh-float .glgh-panel{position:absolute;right:var(--glgh-right);top:var(--glgh-panel-top);width:min(560px,calc(100% - var(--glgh-right) - 16px));height:var(--glgh-panel-h);max-height:var(--glgh-panel-h);margin:0;padding:0;background:var(--glgh-surface);color:var(--glgh-ink);border:1px solid var(--glgh-edge);border-radius:20px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 20px 65px rgba(23,10,46,.22),0 4px 16px rgba(23,10,46,.10);opacity:0;visibility:hidden;transform:translateX(15px) scale(.10);transform-origin: right clamp(0px,calc(var(--glgh-y) - var(--glgh-panel-top)),var(--glgh-panel-h));transition:transform .36s cubic-bezier(.22,1,.36,1),opacity .24s ease,visibility 0s linear .36s;pointer-events:none}
#glgh-float.glgh-open .glgh-panel{opacity:1;visibility:visible;transform:translateX(0) scale(1);pointer-events:auto;transition-delay:0s}
#glgh-float.glgh-open .glgh-launch{transform:translateY(-50%) scale(.55);opacity:0;pointer-events:none;visibility:hidden}
#glgh-float .glgh-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;background:var(--glgh-surface);border-bottom:1px solid var(--glgh-edge);flex:none;position:relative;margin:0;color:var(--glgh-ink)}
#glgh-float .glgh-panel-brand{min-width:0;flex:1}
#glgh-float .glgh-panel-kicker{display:block;font-size:10px;font-weight:800;letter-spacing:1.5px;color:var(--glgh-accent);line-height:1.4;margin-bottom:4px}
#glgh-float #glgh-panel-title{font:inherit;font-size:19px;font-weight:750;letter-spacing:-.5px;line-height:1.3;margin:0;color:var(--glgh-ink);text-transform:none}
#glgh-float .glgh-close{width:36px;height:36px;flex:0 0 36px;border:1px solid var(--glgh-edge);border-radius:50%;background:var(--glgh-surface);color:var(--glgh-ink);transition:background .2s,transform .2s}
#glgh-float .glgh-close:hover{background:var(--glgh-edge);transform:scale(1.05)}
#glgh-float .glgh-close svg{width:19px;height:19px}
#glgh-float .glgh-panel-body{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;padding:0 16px 16px;touch-action:pan-y}
#glgh-float .glgh{--gl-accent:var(--glgh-accent);--gl-border:var(--glgh-edge);--gl-muted:var(--glgh-sub);border:none;border-radius:0;padding:16px 0 0;background:transparent;color:var(--glgh-ink);margin:0;width:100%;max-width:100%;font-size:13px}
#glgh-float .glgh .glgh-head{font-size:11px;letter-spacing:.15px}
#glgh-float .glgh .glgh-total{font-size:42px}
#glgh-float .glgh .glgh-platforms strong,#glgh-float .glgh .glgh-metrics strong{font-size:20px;line-height:1.4}
#glgh-float .glgh .glgh-tabs button,#glgh-float .glgh .glgh-filters button{margin:0;min-width:0;min-height:32px;font-weight:600}
#glgh-float .glgh .glgh-refresh{border-radius:9px;min-height:36px;background:#36204d}
#glgh-float .glgh .glgh-chart svg{overflow:hidden}
#glgh-float .glgh .glgh-metrics>div{background:var(--glgh-surface)}
#glgh-float .glgh .glgh-metrics strong{overflow-wrap:anywhere}
#glgh-float .glgh-launch:focus-visible,#glgh-float .glgh-close:focus-visible{outline:2px solid #a477ec}
html[data-theme=dark] #glgh-float,body[data-theme=dark] #glgh-float,html.dark #glgh-float,body.dark #glgh-float,body.dark-mode #glgh-float,html.dark-mode #glgh-float{--glgh-surface:#1b1724;--glgh-ink:#f3edf9;--glgh-sub:#b3a7c5;--glgh-edge:#3c334b;--glgh-accent:#af82f1;color-scheme:dark}
@media(max-width:767px){#glgh-float{--glgh-right:14px!important;--glgh-panel-h:min(760px,calc(100vh - 40px));--glgh-panel-top:auto}#glgh-float .glgh-launch{top:auto;bottom:calc(100px + env(safe-area-inset-bottom,0px));right:calc(14px + env(safe-area-inset-right,0px));transform:scale(1);width:58px;height:58px}#glgh-float .glgh-launch:hover{transform:scale(1.04)}#glgh-float.glgh-open .glgh-launch{transform:scale(.55)}#glgh-float .glgh-launch svg{width:29px;height:29px}#glgh-float .glgh-panel{right:max(10px,env(safe-area-inset-right,0px));left:max(10px,env(safe-area-inset-left,0px));width:auto;top:auto;bottom:calc(12px + env(safe-area-inset-bottom,0px));height:var(--glgh-panel-h);border-radius:16px;transform-origin:right calc(100% - 115px)}#glgh-float .glgh-panel-head{padding:13px 14px}#glgh-float .glgh-panel-body{padding:0 12px 14px}#glgh-float #glgh-panel-title{font-size:16px}#glgh-float .glgh .glgh-total{font-size:36px}#glgh-float .glgh .glgh-platforms strong,#glgh-float .glgh .glgh-metrics strong{font-size:17px}#glgh-float .glgh .glgh-tabs button,#glgh-float .glgh .glgh-filters button{min-height:36px}#glgh-float .glgh-close{height:40px;width:40px;flex-basis:40px}}
@supports(height:100dvh){@media(max-width:767px){#glgh-float{--glgh-panel-h:min(760px,calc(100dvh - 36px - env(safe-area-inset-bottom,0px)))}}}
@media(prefers-reduced-motion:reduce){#glgh-float .glgh-panel,#glgh-float .glgh-launch,#glgh-float .glgh-close{transition:none!important}}

/* Reader Studio's article dock and Hype launcher must not overlap. */
@supports selector(body:has(.gres-studio-dock)) {
  @media(min-width:768px) {
    body:has(.gres-studio-dock:not([hidden])) #glgh-float { --glgh-y:clamp(68px,var(--glgh-config-y,72vh),calc(100vh - 170px)) !important; }
  }
  @media(max-width:767px) {
    body:has(.gres-studio-dock:not([hidden])) #glgh-float .glgh-launch { bottom:calc(140px + env(safe-area-inset-bottom,0px)); }
    body:has(.gres-studio-dock:not([hidden])) #glgh-float .glgh-panel { transform-origin:right calc(100% - 155px); }
  }
}
