/* ============================================================================
   Gruff — the light skin of the same v0.94/v0.95 shell (Gruff spec v0.96 §0.1, prototype Gruff_v0.96).
   Loaded on every page AFTER v94.css; every rule is scoped to html[data-brand="gruff"], so Stargazer is untouched.
   Tokens: bg #FFF8EC, sheet #FFFFFF, text #2B2320, muted #6B5E55, faint #A09284, accent #C77A1E (fill #F6D9A8),
   buy #2FA36B, sell #E0566B; axes ink / tan / pink #F2A7B8 / mint #9ED8C3. Nunito 800 for brand, headings and
   buttons; Inter for numbers and text; Comic Neue only in stickers. */
html[data-brand="gruff"]{color-scheme:light;
 --bg:#FFF8EC;--sheet:#FFFFFF;--tx:#2B2320;--mu:#6B5E55;--fa:#A09284;--acc:#C77A1E;--accfill:#F6D9A8;
 --pink:#F2A7B8;--mint:#9ED8C3;--butter:#FBE7A1;
 --line:rgba(43,35,32,.09);--dash:rgba(43,35,32,.07);--accbg:rgba(199,122,30,.1);--accln:rgba(199,122,30,.4);
 --k1:#2B2320;--k2:#E0A85A;--k3:#F2A7B8;--k4:#9ED8C3;
 --buy:#2FA36B;--sell:#E0566B}
html[data-brand="gruff"],html[data-brand="gruff"] body{background:var(--bg);color:var(--tx)}
html[data-brand="gruff"] .z-sky{background:none}
html[data-brand="gruff"] .z-app,html[data-brand="gruff"] .z-menu-ov,html[data-brand="gruff"] .z-sheet,html[data-brand="gruff"] .z-toast{color:var(--tx)}

/* Nunito 800 where the prototype uses it: brand, crumb, buttons, titles, hero numbers, tiles, menu. */
html[data-brand="gruff"] :is(.z-logo,.z-crumb,.z-btn,.z-btn2.z-l,.z-ttl,.z-rvh,.z-mlist a,.z-mlist button,.z-thead2 .z-nm,.z-hero b,.z-big,.z-pn,.z-tile .z-tk,.z-tile .z-em,.z-h1,.z-pname){font-family:'Nunito','Inter',system-ui,sans-serif;font-weight:800}
html[data-brand="gruff"] .z-logo{letter-spacing:.22em}
html[data-brand="gruff"] .z-logo img{width:32px;height:auto;border-radius:0}

/* Pack avatars (one of three doges, chosen by the address hash) and the plain avatar disc on a light sheet. */
html[data-brand="gruff"] .z-av{background:var(--accfill);color:var(--tx)}
html[data-brand="gruff"] .z-av.z-doge{background:#fff;border:1px solid var(--line);overflow:hidden}
html[data-brand="gruff"] .z-av.z-doge img{width:100%;height:100%;object-fit:cover;display:block}

/* doge-speak stickers: only in empty states, Done screens, the welcome and while loading (spec §0.1). */
html[data-brand="gruff"] .z-stks{display:flex;flex-wrap:wrap;justify-content:flex-start;padding:0;margin-bottom:var(--s1)}
html[data-brand="gruff"] .z-stk{display:inline-block;font-family:'Comic Neue','Comic Sans MS',cursive;font-weight:700;font-size:var(--f2);color:var(--tx);padding:4px 12px;border-radius:100px;transform:rotate(-3deg);margin:0 6px 6px 0}
html[data-brand="gruff"] .z-stk.z-s1{background:var(--accfill)}
html[data-brand="gruff"] .z-stk.z-s2{background:var(--pink)}
html[data-brand="gruff"] .z-stk.z-s3{background:var(--mint)}
html[data-brand="gruff"] .z-stk.z-s4{background:var(--butter)}
html[data-brand="gruff"] .z-stks.z-c{justify-content:center;padding:var(--s2) 0 0}

/* Welcome sheet (spec §0.4): the big number and the two actions. */
html[data-brand="gruff"] .z-welcome{text-align:center;padding:var(--s2) 0}
html[data-brand="gruff"] .z-welcome .z-big{font-size:var(--f5);line-height:1.1;margin:var(--s2) 0 var(--s1)}
html[data-brand="gruff"] .z-welcome img{width:96px;height:auto;margin:0 auto}

/* Light-theme fixes for pieces the dark shell styled with fixed colours. */
html[data-brand="gruff"] .z-pill{background:var(--accbg);color:var(--tx)}
html[data-brand="gruff"] .z-pill.z-acc{background:var(--accfill);color:var(--tx)}
html[data-brand="gruff"] .z-btn{background:var(--tx);color:#fff}
html[data-brand="gruff"] .z-btn:hover{background:#3b312d}
html[data-brand="gruff"] .z-btn2{border-color:var(--line);color:var(--tx)}
html[data-brand="gruff"] .z-btn2.z-act{background:var(--accfill);border-color:transparent}
html[data-brand="gruff"] .z-up{color:var(--buy)}
html[data-brand="gruff"] .z-dn{color:var(--sell)}
html[data-brand="gruff"] .z-search,html[data-brand="gruff"] .z-inp,html[data-brand="gruff"] .z-amt input{background:#fff;color:var(--tx);border-color:var(--line)}
html[data-brand="gruff"] .z-menu-ov{background:var(--bg)}
html[data-brand="gruff"] .z-sheet{background:rgba(43,35,32,.35)}
html[data-brand="gruff"] .z-sh{background:var(--sheet)}
html[data-brand="gruff"] .z-legacy{color:var(--tx)}
html[data-brand="gruff"] .z-legacy .table,html[data-brand="gruff"] .z-legacy .muted{color:var(--mu)}

/* Sign-in page (AccountLayout, static SSR): the dark-page colours of its scoped CSS inverted for the light skin. */
html[data-brand="gruff"] .auth-page{background:var(--bg);color:var(--tx)}
html[data-brand="gruff"] .auth-divider{background:linear-gradient(to bottom,transparent,rgba(43,35,32,.18),transparent)}
html[data-brand="gruff"] .brand-tagline{color:var(--mu)}
html[data-brand="gruff"] .auth-loading{color:var(--mu)}
html[data-brand="gruff"] .app-logo-gruff{max-block-size:120px}
html[data-brand="gruff"] .brand-name-gruff{font-family:'Nunito','Inter',system-ui,sans-serif;font-weight:800;font-size:34px;letter-spacing:.22em;color:var(--tx)}
@media (max-width:900px){
 html[data-brand="gruff"] .auth-divider{background:linear-gradient(to right,transparent,rgba(43,35,32,.18),transparent)}
 html[data-brand="gruff"] .brand-name-gruff{font-size:26px}
}

/* Sign in with DogeOS on the home page (owner 5 Nov 2026; AlphaSearch.razor, js/almagest-dogeos.js). */
html[data-brand="gruff"] .z-signin{display:flex;align-items:center;gap:var(--s2);padding:var(--s2);margin-bottom:var(--s2);border:1px solid var(--line);border-radius:16px;background:#fff}
html[data-brand="gruff"] .z-signin img{width:44px;height:44px;flex:none}
html[data-brand="gruff"] .z-signin-txt{flex:1;min-width:0}
html[data-brand="gruff"] .z-signin .z-sub{font-size:var(--f2);font-weight:500;color:var(--fa);margin-top:2px}
html[data-brand="gruff"] .z-signin .z-note{margin-top:4px}
html[data-brand="gruff"] .z-signin .z-note:empty{display:none}
html[data-brand="gruff"] .z-signin .z-btn{flex:none}
html[data-brand="gruff"] .auth-note{font-size:14px;color:var(--mu);margin:8px 0 0}
html[data-brand="gruff"] .auth-note:empty{display:none}

/* The DogeOS SDK sign-in modal (HeroUI, rendered inside #dogeos-kit-root by js/almagest-dogeos.js) on Gruff — Nazar
   6 Nov 2026: "кнопки якось виділялись… білим по білому", hide the bare "X" label, and the menu's button "нічого не
   робить". Facts behind each rule (live DOM probed 6 Nov 2026, SDK 4.0.6):
   - the modal wrapper is `.fixed.inset-0.z-50` (z-index 50) while the burger menu is z-index 95 and sheets 97, so a
     sign-in started from the menu opened UNDER the menu → raised to 120;
   - the SDK's provider buttons compute to border 0 / transparent background here (its `border-medium`,
     `bg-background` and `border-primary` lose to the site's Bootstrap rules — `.border-primary` is Bootstrap's, with
     !important), hence the explicit colours below, following Google's custom "Sign in with Google" light button spec
     (white fill, 1px #747775 stroke, 14/20 medium #1F1F1F, 20px logo) applied to both providers for equal prominence;
   - the SDK labels the buttons "X" / "Google" next to the provider icon (hard-coded, not configurable), so the label
     is replaced with "Continue with X" / "Continue with Google" (Google's recommended wording).
   Selectors are bound to the SDK's class names (h-12 rounded-2xl, border-primary, data-dogeos-social-login) — re-check
   after an SDK bump with tools/build-dogeos-kit. */
html[data-brand="gruff"] #dogeos-kit-root .fixed.z-50{z-index:120}
html[data-brand="gruff"] #dogeos-kit-root button.h-12.rounded-2xl{position:relative;display:flex;width:100%;height:48px;justify-content:center;align-items:center;gap:10px;padding:0 16px;border:1px solid #747775!important;border-radius:12px;background:#fff;color:#1F1F1F;font-family:'Inter',system-ui,sans-serif;font-size:15px;font-weight:500;line-height:20px;transition:background-color .15s,box-shadow .15s}
html[data-brand="gruff"] #dogeos-kit-root button.h-12.rounded-2xl:hover{background:#F3F3F4;box-shadow:0 1px 2px rgba(0,0,0,.08)}
html[data-brand="gruff"] #dogeos-kit-root button.h-12.rounded-2xl:focus-visible{outline:2px solid var(--acc);outline-offset:2px}
html[data-brand="gruff"] #dogeos-kit-root button.h-12.rounded-2xl>svg{width:20px;height:20px;flex:none}
html[data-brand="gruff"] #dogeos-kit-root .flex.gap-3.pb-6{flex-direction:column;gap:10px;padding-bottom:8px}
/* The SDK labels the buttons "X" and "Google" (an icon plus the bare name); say what the button does instead. */
html[data-brand="gruff"] #dogeos-kit-root button.h-12.rounded-2xl>span{display:none}
html[data-brand="gruff"] #dogeos-kit-root button.h-12.border-primary::after{content:"Continue with X"}
html[data-brand="gruff"] #dogeos-kit-root button[data-dogeos-social-login]::after{content:"Continue with Google"}
/* Title, footer links, close button in the house colours. */
html[data-brand="gruff"] #dogeos-kit-root .font-medium.text-lg{font-family:'Nunito','Inter',system-ui,sans-serif;font-weight:800;font-size:20px;color:var(--tx)}
html[data-brand="gruff"] #dogeos-kit-root a{color:var(--acc)!important}
html[data-brand="gruff"] #dogeos-kit-root .pt-8{padding-top:8px!important}
html[data-brand="gruff"] #dogeos-kit-root .flex.gap-3.pb-6::before{content:"Use the Google or X account linked to your DogeOS wallet.";font-size:14px;line-height:1.4;color:var(--mu);margin-bottom:6px}
html[data-brand="gruff"] #dogeos-kit-root section[role="dialog"]{border-radius:20px;box-shadow:0 24px 64px rgba(43,35,32,.28)}
