/* Dashboard look, 2026-11-13 (owner: "el blanco lastima"; Liquid Glass inspired). Loaded last; changes surfaces only, never content.
   Light: no pure white and no near-black. A soft lavender-grey canvas, off-white frosted panels, ink-grey text, a calmer colour mesh.
   Both themes: insight cards (gn-presence.css / gn-insight.js) become frosted glass with a specular top edge; tables stay solid for reading. */

/* ---------- Light: soft canvas and ink text ---------- */
html[data-theme="light"] .app-shell{
  --bg:#ECEBF2; --surface:#F7F6FA; --raised:#F9F8FC; --surface2:#ECEBF2; --row:#E2E1EA;
  --border:rgba(36,34,52,.09); --line:rgba(36,34,52,.09); --line-strong:rgba(36,34,52,.15); --grid-line:rgba(36,34,52,.08);
  --text:#26242F; --text-body:#34313F; --text2:#5F5C6E; --text3:#7B788B;
  --lime-ink:#3D610E; --hover:rgba(36,34,52,.035); --active:rgba(36,34,52,.06);
  color:var(--text);
  background:
    radial-gradient(1100px 680px at 6% -12%,rgba(139,108,255,.18),transparent 60%),
    radial-gradient(900px 620px at 100% 0%,rgba(90,160,255,.13),transparent 58%),
    radial-gradient(1000px 680px at 80% 110%,rgba(255,130,185,.11),transparent 60%),
    #E9E8F0;
  background-attachment:fixed;
}
html[data-theme="light"] .app-shell .card,
html[data-theme="light"] .app-shell .stat-row,
html[data-theme="light"] .app-shell [style*="border:1px solid var(--border)"]:not(#ask-geonos-btn):not([style*="background:var(--surface2)"]),
html[data-theme="light"] .app-shell .act-list,html[data-theme="light"] .app-shell .table-wrap,html[data-theme="light"] .app-shell .gn-panel{
  background:linear-gradient(180deg,rgba(250,249,253,.80),rgba(244,243,249,.66))!important;
  border:1px solid rgba(255,255,255,.55)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.65),0 1px 2px rgba(30,25,60,.05),0 18px 40px -26px rgba(40,30,90,.24)!important;
}
html[data-theme="light"] .app-shell [style*="border:1px solid var(--border)"][style*="background:var(--surface2)"],
html[data-theme="light"] .app-shell .card .clickable:not([style*="background"]),html[data-theme="light"] .app-shell .card [class*="tile"]:not([style*="background"]){
  background:rgba(236,235,242,.62)!important;border:1px solid rgba(255,255,255,.45)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.55);
}
html[data-theme="light"] .app-shell .sidebar{background:linear-gradient(180deg,rgba(248,247,251,.74),rgba(240,239,246,.60))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 0 0 1px rgba(255,255,255,.4),0 30px 60px -34px rgba(40,30,90,.35)!important;}
html[data-theme="light"] .app-shell .nav-item.active{background:rgba(250,249,253,.85)!important;box-shadow:0 6px 16px -10px rgba(94,48,181,.45),inset 0 1px 0 rgba(255,255,255,.8)!important;}
html[data-theme="light"] .app-shell .topbar,html[data-theme="light"] .app-shell .app-topbar,html[data-theme="light"] .app-shell .app-main>header{background:rgba(244,243,249,.62)!important;border-bottom:1px solid rgba(255,255,255,.5)!important;}
html[data-theme="light"] .app-shell .btn:not(.btn-primary){background:rgba(250,249,253,.7);border:1px solid rgba(255,255,255,.6);box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 4px 12px -8px rgba(40,30,90,.3);}
html[data-theme="light"] .app-shell .gn-insight{background:linear-gradient(120deg,rgba(200,180,255,.38),rgba(248,247,251,.7) 50%,rgba(170,205,255,.34))!important;border:1px solid rgba(255,255,255,.6)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 24px 48px -28px rgba(94,48,181,.35)!important;}
html[data-theme="light"] .app-shell table th{color:var(--text2);}
html[data-theme="light"] .app-shell .kpi-value,html[data-theme="light"] .app-shell .stat-row .num{background:linear-gradient(180deg,#26242F,#4A3F78);-webkit-background-clip:text;background-clip:text;}
/* floating menus stay solid, but not stark white */
html[data-theme="light"] .app-shell .card:is([style*="position:absolute"],[style*="position: absolute"]){background:#F8F7FB!important;}

/* ---------- Insight cards: frosted glass in both themes ---------- */
.gp-hero,.gp-tile,.gp-card,.gp-teaser,.gn-tag.gp-how{
  -webkit-backdrop-filter:blur(22px) saturate(170%);backdrop-filter:blur(22px) saturate(170%);
  border-radius:18px;position:relative;
}
.gp-tile{border-radius:16px;}
html:not([data-theme="light"]) .gp-card,html:not([data-theme="light"]) .gp-tile,html:not([data-theme="light"]) .gn-tag.gp-how{
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.018)),rgba(18,18,26,.62);
  border:1px solid rgba(255,255,255,.075);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 24px 48px -30px rgba(0,0,0,.75);
}
html:not([data-theme="light"]) .gp-hero{
  background:radial-gradient(120% 140% at 0% 0%,rgba(184,242,74,.13),transparent 58%),radial-gradient(90% 120% at 100% 100%,rgba(139,108,255,.14),transparent 60%),rgba(18,18,26,.62);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 30px 60px -34px rgba(0,0,0,.8);
}
html[data-theme="light"] .gp-card,html[data-theme="light"] .gp-tile,html[data-theme="light"] .gn-tag.gp-how,html[data-theme="light"] .gp-teaser{
  background:linear-gradient(180deg,rgba(250,249,253,.82),rgba(243,242,248,.66));
  border:1px solid rgba(255,255,255,.6);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 1px 2px rgba(30,25,60,.05),0 20px 44px -28px rgba(40,30,90,.28);
}
html[data-theme="light"] .gp-hero{
  background:radial-gradient(120% 140% at 0% 0%,rgba(166,219,69,.22),transparent 58%),radial-gradient(90% 120% at 100% 100%,rgba(139,108,255,.16),transparent 60%),linear-gradient(180deg,rgba(250,249,253,.84),rgba(243,242,248,.70));
  border:1px solid rgba(255,255,255,.65);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75),0 26px 56px -30px rgba(60,40,140,.32);
}
/* specular top edge, the "liquid" highlight */
.gp-hero::before,.gp-tile::before,.gp-card::before{content:"";position:absolute;left:14px;right:14px;top:0;height:1px;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.35),transparent);}
html[data-theme="light"] .gp-hero::before,html[data-theme="light"] .gp-tile::before,html[data-theme="light"] .gp-card::before{background:linear-gradient(90deg,transparent,rgba(255,255,255,.95),transparent);}
.gp-card.gp-flush::before{left:20px;right:20px;}
/* calmer lime in light: still "you", without the glare */
html[data-theme="light"] .gp{--gp-you:#9ACD3C;}
html[data-theme="light"] .gp-teaser{box-shadow:inset 3px 0 0 #9ACD3C,inset 0 1px 0 rgba(255,255,255,.7),0 20px 44px -28px rgba(40,30,90,.28);}
.gp-tile,.gp-card,.gp-teaser{transition:transform .25s cubic-bezier(.2,.8,.2,1),box-shadow .25s ease;}
@media (hover:hover){ .gp-tile:hover{transform:translateY(-2px);} }
@media (prefers-reduced-motion:reduce){ .gp-tile,.gp-card,.gp-teaser{transition:none;} .gp-tile:hover{transform:none;} }
/* tables inside glass cards stay readable */
.gp-table tr:hover td{background:color-mix(in srgb,var(--accent) 5%,transparent);}

/* the finding reads as a headline, not a poster */
.gp-big{font-size:clamp(30px,3.1vw,42px);}
.gp-grid{align-items:start;}

/* Period chips (7 / 30 / 90 days) */
.gp-rangebar{display:flex;align-items:center;gap:6px;justify-content:flex-end;flex-wrap:wrap;font-size:11.5px;color:var(--text3);}
.gp-rangebar>span{margin-right:4px;letter-spacing:.06em;text-transform:uppercase;font-size:10.5px;}
.gp-range{appearance:none;font:inherit;font-size:12px;padding:6px 12px;border-radius:999px;border:1px solid var(--border);background:color-mix(in srgb,var(--surface) 70%,transparent);color:var(--text2);cursor:pointer;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);transition:background .2s,color .2s;}
.gp-range:hover{color:var(--text);}
.gp-range.on{background:var(--text);color:var(--bg);border-color:transparent;font-weight:600;}
.gp-range:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}

/* Executive view and crossed metrics (gn-insight.js) */
.gp-sec{margin-top:8px;}
.gp-tile-v .gp-spark{display:inline-block;vertical-align:middle;margin-left:10px;color:var(--gp-you,var(--lime));opacity:.95;}
.gp-vs{font-size:.62em;font-weight:600;color:var(--text3);letter-spacing:0;}
.gp-bignum{font-size:34px;font-weight:800;letter-spacing:-.03em;color:var(--text);font-variant-numeric:tabular-nums;line-height:1;}
.gp-bignum small{font-size:12px;font-weight:500;color:var(--text3);letter-spacing:0;margin-left:8px;}
.gp-seg{display:flex;height:14px;border-radius:999px;overflow:hidden;background:var(--surface2);gap:2px;}
.gp-seg i{display:block;height:100%;}
.gp-seg i:first-child{border-radius:999px 0 0 999px;} .gp-seg i:last-child{border-radius:0 999px 999px 0;}
.gp-sq{display:inline-block;width:10px;height:10px;border-radius:3px;}
html .gp .gp-seg i.pos,.gp-sq.pos{background:var(--gp-you,var(--lime))!important;}
html .gp .gp-seg i.neu,.gp-sq.neu{background:color-mix(in srgb,var(--text3) 45%,transparent)!important;}
html .gp .gp-seg i.neg,.gp-sq.neg{background:var(--danger)!important;}
html .gp .gp-seg i.swing,.gp-sq.swing{background:#F5C242!important;}
html .gp .gp-seg i.you,.gp-sq.you{background:var(--gp-you,var(--lime))!important;}
html .gp .gp-seg i.comp,.gp-sq.comp{background:color-mix(in srgb,var(--accent) 70%,transparent)!important;}
html .gp .gp-seg i.s1,.gp-sq.s1{background:#8B6CFF!important;} html .gp .gp-seg i.s2,.gp-sq.s2{background:#5AA0FF!important;} html .gp .gp-seg i.s3,.gp-sq.s3{background:#2FBF8A!important;}
html .gp .gp-seg i.s4,.gp-sq.s4{background:#F5C242!important;} html .gp .gp-seg i.s5,.gp-sq.s5{background:#FF7AA8!important;} html .gp .gp-seg i.s6,.gp-sq.s6{background:#A3A3B0!important;}
.gp-callout{font-size:12.5px;line-height:1.5;color:var(--text2);padding:10px 12px;border-radius:12px;background:color-mix(in srgb,var(--accent) 7%,transparent);}
.gp-callout.warn{background:color-mix(in srgb,#F5C242 14%,transparent);color:var(--text);}
.gp-callout.ok{background:color-mix(in srgb,var(--gp-you,var(--lime)) 12%,transparent);}
.gp-x{display:flex;flex-direction:column;gap:8px;}
.gp-x-i{appearance:none;font:inherit;text-align:left;display:grid;grid-template-columns:26px minmax(0,1fr) 16px;gap:10px;align-items:start;padding:12px 14px;border-radius:14px;border:1px solid var(--border);background:color-mix(in srgb,var(--surface) 55%,transparent);color:var(--text);cursor:pointer;transition:transform .2s cubic-bezier(.2,.8,.2,1),border-color .2s;}
.gp-x-i:hover{border-color:color-mix(in srgb,var(--accent) 45%,var(--border));transform:translateX(2px);}
.gp-x-i:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
.gp-x-n{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-size:11.5px;font-weight:700;background:var(--tint-lilac);color:var(--accent);}
.gp-x-i.do .gp-x-n{background:color-mix(in srgb,var(--gp-you,var(--lime)) 22%,transparent);color:var(--lime-ink);}
.gp-x-t{font-size:13px;line-height:1.5;}
.gp-x-go{color:var(--text3);font-size:14px;line-height:1.5;}
@media (prefers-reduced-motion:reduce){ .gp-x-i{transition:none;} .gp-x-i:hover{transform:none;} }
