/* Gully ID Light theme: the ONE token re-map shared by the wallet, the landing, the developer pages, the sign-in, consent and
   recover cards. Every Gully ID stylesheet reads --ui-* (gid/ui.css, dark by default); html[data-theme=light] (set by
   gid/theme.js: Dark default, Light, System) swaps the values. Contrast pairs checked AA: text #0F1B2E on #FFFFFF 16:1,
   muted #4B5F7A on #FFFFFF 6.6:1, link #00697A on #FFFFFF 6.4:1, white-on-teal button #0098AD 4.0:1 large/bold text only. */
html[data-theme=light]{
  --ui-night:#F2F5FA;--ui-ink:#FFFFFF;--ui-ink-2:#F7F9FC;--ui-deep:#EEF2F8;--ui-hover:#E8EEF7;
  --ui-line:#DCE4EF;--ui-line-2:#CBD6E5;--ui-line-3:#B6C4D8;
  --ui-white:#0A1220;--ui-text:#0F1B2E;--ui-text-2:#22324A;--ui-soft:#364A66;--ui-muted:#4B5F7A;--ui-faint:#5F7390;
  --ui-cyan:#0098AD;--ui-cyan-2:#00697A;--ui-cyan-3:#00566A;--ui-on-cyan:#FFFFFF;--ui-gold:#8A5A00;
  --ui-green:#14803A;--ui-red:#B42318;--ui-cyan-soft:rgba(0,152,173,.12);
  --ui-shadow:0 18px 48px rgba(15,27,46,.12);--ui-glow:0 6px 18px rgba(0,152,173,.25);
  --ui-wash:radial-gradient(900px 360px at 50% -14%,rgba(0,152,173,.10),transparent 60%);
  --amber:#8A5A00;--glow:none;color-scheme:light
}
/* the kit lockup: on-dark file on Dark, on-light file on Light (byte-identical kit files) */
.gs-brand .gid-lockup+.gid-lockup,.gx-brand .gid-lockup+.gid-lockup{display:none}
html[data-theme=light] .gs-brand .gid-lockup:first-child,html[data-theme=light] .gx-brand .gid-lockup:first-child{display:none}
html[data-theme=light] .gs-brand .gid-lockup+.gid-lockup,html[data-theme=light] .gx-brand .gid-lockup+.gid-lockup{display:block}
/* header theme button (site pages, cards) */
.gs-theme{font:600 12.5px var(--ui-font);min-height:44px;min-width:44px;padding:0 12px;border-radius:10px;border:1px solid var(--ui-line-2);background:var(--ui-ink);color:var(--ui-text-2);cursor:pointer;margin-left:auto}
.gs-theme:hover{border-color:var(--ui-line-3);color:var(--ui-white)}
.gs-cta{margin-left:0}
.gs-theme:focus-visible{outline:2px solid var(--ui-cyan);outline-offset:2px}
/* base surfaces on Light */
html[data-theme=light] body{background:var(--ui-wash),var(--ui-night);color:var(--ui-text)}
html[data-theme=light] a{color:#00697A}html[data-theme=light] a:hover{color:#00566A}
html[data-theme=light] .ui-btn--primary,html[data-theme=light] .primary{background:linear-gradient(135deg,#0098AD,#2563FF);color:#fff;box-shadow:0 6px 18px rgba(0,152,173,.25)}
html[data-theme=light] .ui-btn--primary:hover,html[data-theme=light] .primary:hover{color:#fff}
html[data-theme=light] input,html[data-theme=light] select,html[data-theme=light] textarea{background:var(--ui-deep);color:var(--ui-text)}
html[data-theme=light] .gs-top{background:rgba(255,255,255,.92)}
html[data-theme=light] .gid-install{background:var(--ui-ink);color:var(--ui-text);border-color:var(--ui-line-2)}
html[data-theme=light] .secondary:hover,html[data-theme=light] .ui-btn--secondary:hover{border-color:#6F87A8;color:var(--ui-white)}
html[data-theme=light] .msg.err{color:var(--ui-red)}html[data-theme=light] .msg.ok{color:var(--ui-green)}
html[data-theme=light] .gid-trust-by,html[data-theme=light] .gid-trust p{color:var(--ui-muted)}
html[data-theme=light] .gid-trust a{color:#00697A}
html[data-theme=light] .lg-body code,html[data-theme=light] .gid-products li,html[data-theme=light] .lg-toc details{background:var(--ui-deep);border-color:var(--ui-line-2);color:var(--ui-text)}
html[data-theme=light] .notice{background:var(--ui-deep)}
/* consent: what the app gets, as a clear list */
ul.scopes li{display:flex;gap:12px;align-items:flex-start}ul.scopes li>svg{flex:none;margin-top:3px;color:var(--ui-green)}
ul.scopes li>span{display:flex;flex-direction:column;gap:2px}
/* the theme button is small even where a global button rule stretches buttons (cards) */
.gs-top .gs-theme{width:auto;flex:none}
/* trust lines and tabs that hardcode night colours */
html[data-theme=light] .gid-operator{color:var(--ui-text-2)}
html[data-theme=light] .gid-operator .nav-ic{color:#00697A}html[data-theme=light] .gid-operator a{color:#00697A}
html[data-theme=light] .gid-noseed{background:#FFF6E0;border-color:#E3C16F;color:#4A3500}
html[data-theme=light] .gid-noseed svg{color:#8A5A00}
html[data-theme=light] .lx-tab[aria-selected="true"]{background:#DCE9F7}
/* Terminal components (developer pages, console, landing charts) on Light: gid/app.css maps --t-* only for
   data-theme="dark", so on Light they fell back to the Terminal's dark defaults (near-white headings on a white page,
   found by the design gate 2026-11-26). Re-point them at the one --ui-* set here. */
html[data-theme=light][data-product="id"]{
  --t-bg:var(--ui-night);--t-surface:var(--ui-ink);--t-surface-2:var(--ui-ink-2);--t-line:var(--ui-line);--t-line-strong:var(--ui-line-2);
  --t-grid:rgba(0,152,173,.06);--t-text:var(--ui-text);--t-muted:var(--ui-muted);--t-faint:var(--ui-faint);--t-idle:var(--ui-faint);
  --t-accent:var(--ui-cyan);--t-accent-2:var(--ui-gold);--t-on-accent:var(--ui-on-cyan);--t-accent-soft:var(--ui-cyan-soft);
  --t-accent-line:color-mix(in srgb,var(--ui-cyan) 40%,transparent);--t-font-sans:var(--ui-font);--t-maxw:1176px;--t-r:10px;--t-r-sm:6px;
  --gid-accent:var(--ui-cyan-2);--gid-link:var(--ui-cyan-2);--gid-link-hover:var(--ui-cyan-3)
}
html[data-theme=light] .t-body .t-h1,html[data-theme=light] .t-body .t-h2,html[data-theme=light] .t-body .t-h3{color:var(--ui-white)}
/* header: the theme button sits beside Sign in, not in the middle of the bar */
.gs-top .gs-cta{margin-left:0}
@media (max-width:899px){.gs-top .gs-theme{margin-left:auto}}
