/* ==========================================================================
   THE POLISH LAYER - 9 October 2026.

   Sam: "make the platform just look a bit more exciting... a bit more
   intricate visually, stylish, something cooler... Make the changes global.
   only subtle. the structure is good." And: "do it with rollback in case I
   don't like".

   So it is ONE FILE, loaded after app.css by inc/polish.php, and it only adds:
   no rule in app.css was edited to make room for it. Taking it away is taking
   this file's <link> away, and the platform is exactly what it was.

   Nothing here moves a box. It is light, edge, depth and motion on the
   structure that is already there. Sharp corners throughout.
   ========================================================================== */

:root{
  /* the product's own blues, navy to teal to sky, as one line of colour */
  --pz-accent:linear-gradient(90deg,#03989E 0%,#1B87A8 30%,#5B9BFF 68%,#6C82D8 100%);
  --pz-glow-1:color-mix(in srgb,#1B87A8 9%,transparent);
  --pz-glow-2:color-mix(in srgb,#6C82D8 7%,transparent);
  --pz-lift:0 1px 2px rgba(8,17,29,.06),0 10px 24px -8px rgba(8,17,29,.20),0 22px 44px -22px rgba(8,17,29,.28);
  --pz-ring:color-mix(in srgb,var(--primary) 22%,transparent);
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --pz-glow-1:color-mix(in srgb,#1B87A8 16%,transparent);
    --pz-glow-2:color-mix(in srgb,#6C82D8 12%,transparent);
    --pz-lift:0 1px 2px rgba(0,0,0,.3),0 12px 28px -8px rgba(0,0,0,.55),0 24px 48px -24px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"]{
  --pz-glow-1:color-mix(in srgb,#1B87A8 16%,transparent);
  --pz-glow-2:color-mix(in srgb,#6C82D8 12%,transparent);
  --pz-lift:0 1px 2px rgba(0,0,0,.3),0 12px 28px -8px rgba(0,0,0,.55),0 24px 48px -24px rgba(0,0,0,.6);
}

/* ---- the ground: two soft glows that fade out down the page, behind everything, never catching a
   click. No dot grid and no line grid, ever (Sam, 2 Nov 2026). */
body::before{
  content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:
    radial-gradient(60% 45% at 12% -6%,var(--pz-glow-1),transparent 70%),
    radial-gradient(50% 40% at 96% 4%,var(--pz-glow-2),transparent 70%);
  -webkit-mask-image:linear-gradient(180deg,#000 0%,rgba(0,0,0,.55) 38%,transparent 78%);
          mask-image:linear-gradient(180deg,#000 0%,rgba(0,0,0,.55) 38%,transparent 78%);
}

/* ---- the top bar: a hairline of brand colour along its top edge */
.top{box-shadow:0 1px 0 rgba(255,255,255,.04),0 8px 24px -18px rgba(8,17,29,.35)}
.top::before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background:var(--pz-accent);pointer-events:none}
/* this copy's own identity (Sam, 4 Nov 2026): a circle of its logo, its colours as the menu's accent and a tint of them from the left */
.top.has-own{--pz-accent:linear-gradient(90deg,var(--own-main) 0%,var(--own-glow) 55%,var(--own-main) 100%);
  background:linear-gradient(90deg,color-mix(in srgb,var(--own-main) 16%,var(--top-bg)) 0,color-mix(in srgb,var(--own-main) 3%,var(--top-bg)) 34%,var(--top-bg) 70%)}
.top.has-own::before{height:3px}
.bm-own{display:inline-flex;align-items:center;justify-content:center;flex:0 0 38px;width:38px;height:38px;border-radius:50%;overflow:hidden;color:var(--own-glow);
  background:radial-gradient(circle at 30% 20%,color-mix(in srgb,var(--own-main) 55%,var(--own-deep)),var(--own-deep) 72%);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--own-glow) 60%,transparent),0 0 12px -2px var(--own-main)}
.bm-own svg{width:24px;height:24px;fill:currentColor;filter:drop-shadow(0 0 2px var(--own-glow))}
.bm-own img{width:100%;height:100%;object-fit:cover}
/* Settings > Brand (kit/js/brand-form.js) */
.gg-br-ctl{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.gg-br-sel{height:36px;min-width:240px;max-width:100%;padding:0 10px;border:1px solid var(--hair);background:var(--glass-ctl);color:var(--ink);font:inherit}
.gg-br-col{width:48px;height:36px;padding:2px;border:1px solid var(--hair);background:var(--paper);cursor:pointer}
.gg-br-fav{width:32px;height:32px;display:block;object-fit:contain}
.gg-br-file{display:none}
.gg-br-ctl :disabled{opacity:.7;cursor:default}
@media(max-width:860px){.bm-own{flex-basis:30px;width:30px;height:30px}.bm-own svg{width:19px;height:19px}}
/* the gradient is on the wordmark's text, not on .bm itself — .bm now also
   wraps the logo image (9 October 2026), and the old selector would have
   inherited a transparent text-fill onto that span with nothing painted
   behind it */
.bm-text{background:linear-gradient(90deg,var(--ink) 0%,var(--ink) 62%,color-mix(in srgb,var(--ink) 55%,#1B87A8) 100%);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}

/* the menu's underline is the accent line, and the others grow one on hover */
:is(.nav,.tabs) :is(a,button){position:relative}
:is(.nav,.tabs) :is(a,button)::after{
  content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;
  background:var(--pz-accent);transform:scaleX(0);transform-origin:left;
  transition:transform .28s cubic-bezier(.2,.7,.2,1);opacity:.55}
:is(.nav,.tabs) :is(a,button):hover::after{transform:scaleX(1)}
.nav :is(a,button)[aria-current="true"]::after,
.tabs :is(a,button)[aria-selected="true"]::after{transform:scaleX(1);opacity:1;background:var(--pz-accent)}

/* ---- THE PAGE'S OWN ICON AT THE START OF THE TRAIL (Sam, 9 October 2026:
   "could we have actions, with an icon? so everything has icons in that
   place, each page, the breadcrumbs essentially? global design change").
   The first step of every trail wears the icon of the section it is in, drawn
   in the accent line's colours; the section is read from the menu, so a page
   needs to declare nothing and a new section only adds one line here. */
.tb-crumb > :first-child{display:inline-flex;align-items:center;gap:9px}
.tb-crumb > :first-child::before{content:"";width:17px;height:17px;flex:0 0 17px;
  background:var(--pz-accent);
  -webkit-mask:no-repeat center/contain;mask:no-repeat center/contain;
  -webkit-mask-image:none;mask-image:none}
body:where(:not(.gg-marked *,.gg-marked)):has(.nav [data-view="roadmap"][aria-current="true"]) .tb-crumb > :first-child::before,body:is(.ggm-view-roadmap,.nav [data-view="roadmap"][aria-current="true"]:not(*)) .tb-crumb > :first-child::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l6-3 6 3 6-3v15l-6 3-6-3-6 3z'/%3E%3Cpath d='M9 3v15M15 6v15'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l6-3 6 3 6-3v15l-6 3-6-3-6 3z'/%3E%3Cpath d='M9 3v15M15 6v15'/%3E%3C/svg%3E")}
body:where(:not(.gg-marked *,.gg-marked)):has(.nav [data-view="timeline"][aria-current="true"]) .tb-crumb > :first-child::before,body:is(.ggm-view-timeline,.nav [data-view="timeline"][aria-current="true"]:not(*)) .tb-crumb > :first-child::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4v16'/%3E%3Cpath d='M8 6h9M8 12h12M8 18h6'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4v16'/%3E%3Cpath d='M8 6h9M8 12h12M8 18h6'/%3E%3C/svg%3E")}
body:where(:not(.gg-marked *,.gg-marked)):has(.nav [data-view="actions"][aria-current="true"]) .tb-crumb > :first-child::before,body:is(.ggm-view-actions,.nav [data-view="actions"][aria-current="true"]:not(*)) .tb-crumb > :first-child::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2L4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2L4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E")}
body:where(:not(.gg-marked *,.gg-marked)):has(.nav [data-view="outreach"][aria-current="true"]) .tb-crumb > :first-child::before,body:is(.ggm-view-outreach,.nav [data-view="outreach"][aria-current="true"]:not(*)) .tb-crumb > :first-child::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2L11 13'/%3E%3Cpath d='M22 2l-7 20-4-9-9-4z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2L11 13'/%3E%3Cpath d='M22 2l-7 20-4-9-9-4z'/%3E%3C/svg%3E")}
body:where(:not(.gg-marked *,.gg-marked)):has(.nav [data-view="offers"][aria-current="true"]) .tb-crumb > :first-child::before,body:is(.ggm-view-offers,.nav [data-view="offers"][aria-current="true"]:not(*)) .tb-crumb > :first-child::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4l-7.2 7.2a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4l-7.2 7.2a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E")}
body:where(:not(.gg-marked *,.gg-marked)):has(.nav [data-view="content"][aria-current="true"]) .tb-crumb > :first-child::before,body:is(.ggm-view-content,.nav [data-view="content"][aria-current="true"]:not(*)) .tb-crumb > :first-child::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E")}
body:where(:not(.gg-marked *,.gg-marked)):has(.nav [data-view="website"][aria-current="true"]) .tb-crumb > :first-child::before,body:is(.ggm-view-website,.nav [data-view="website"][aria-current="true"]:not(*)) .tb-crumb > :first-child::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E")}
body:where(:not(.gg-marked *,.gg-marked)):has(.nav [data-view="clients"][aria-current="true"]) .tb-crumb > :first-child::before,body:is(.ggm-view-clients,.nav [data-view="clients"][aria-current="true"]:not(*)) .tb-crumb > :first-child::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0'/%3E%3Cpath d='M16 4.5a3.5 3.5 0 0 1 0 7M18 14a6 6 0 0 1 3.5 6'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0'/%3E%3Cpath d='M16 4.5a3.5 3.5 0 0 1 0 7M18 14a6 6 0 0 1 3.5 6'/%3E%3C/svg%3E")}
body:where(:not(.gg-marked *,.gg-marked)):has(.nav [data-view="tools"][aria-current="true"]) .tb-crumb > :first-child::before,body:is(.ggm-view-tools,.nav [data-view="tools"][aria-current="true"]:not(*)) .tb-crumb > :first-child::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.4 5.4L3 18l3 3 6.3-6.3a4 4 0 0 0 5.4-5.4l-2.6 2.6-2.4-.6-.6-2.4z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.4 5.4L3 18l3 3 6.3-6.3a4 4 0 0 0 5.4-5.4l-2.6 2.6-2.4-.6-.6-2.4z'/%3E%3C/svg%3E")}
body:where(:not(.gg-marked *,.gg-marked)):has(.nav [data-view="business"][aria-current="true"]) .tb-crumb > :first-child::before,body:is(.ggm-view-business,.nav [data-view="business"][aria-current="true"]:not(*)) .tb-crumb > :first-child::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13'/%3E%3Cpath d='M8 7V4h8v3M3 12h18'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13'/%3E%3Cpath d='M8 7V4h8v3M3 12h18'/%3E%3C/svg%3E")}
/* 2.8.31: a trail whose page has drawn its section's own icon in (.gg-crumb-typed, the icon its door wears,
   which follows the type's look from Settings, Object types; Sam, 3 Nov 2026) shows that one, not the mask */
.tb-crumb > :first-child.gg-crumb-typed::before{display:none}
.tb-crumb > :first-child.gg-crumb-typed > .gg-crumb-ic{width:17px;height:17px;flex:0 0 17px;fill:none;stroke:var(--pz-accent);
  stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* ---- cards and tiles: real depth when lifted, the picture drifts in a
   touch, and a fine light edge so a dark tile on a dark page has a border */
:is(.card,.tile){transition:var(--motion-lift),box-shadow .3s ease}
/* no jump and no zoom on hover, only a very subtle shadow (2.8.33, the card rule, Sam, 3 Nov 2026) */
:is(.card,.tile):hover{box-shadow:0 2px 12px -6px color-mix(in srgb,var(--ink) 35%,transparent)}
.card{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--hair) 70%,transparent)}
.card:hover{box-shadow:0 2px 12px -6px color-mix(in srgb,var(--ink) 35%,transparent),inset 0 0 0 1px color-mix(in srgb,var(--primary) 30%,transparent)}
.tile{box-shadow:inset 0 0 0 1px rgba(255,255,255,.07)}
:is(.tile,.cover) > .art img{transition:transform .9s cubic-bezier(.2,.7,.2,1)}
/* the tile lifts and its picture eases in on hover; the thin line that was drawn under the name is gone
   (Sam, 31 Oct 2026: "a weird line appears at the bottom ... I like the animation but just make it so that
   doesn't happen") */

/* ---- BUTTONS: QUIET, EXACT, EXPENSIVE (Sam, 9 October 2026, twice: "buttons
   need to look WAY sexier... the block blue looks super shit. keep square
   edges", then "buttons still look tacky. the shiny animation is lame").

   No sheen, no glow, no gradient edge, no corner marks. The main button is a
   solid slab of ink - near-black on a light page, near-white on a dark one -
   with small capitals tracked wide. Hover is a step in tone and the arrow
   moving four pixels; nothing flashes. The quiet button is a hairline that
   firms up on hover. Square throughout. */
/* and a gradient through it (Sam, same day: "more gradient in button?"):
   ink into the product's deep blue into teal, laid wider than the
   button so hover slides it along rather than flashing anything. The same
   in both themes, a touch brighter at the far end on a dark page. */
:root{--pz-btn:#0E1826;--pz-btn-hover:#1F3048;--pz-btn-ink:#FFFFFF;
  --pz-btn-grad:linear-gradient(110deg,#0B1420 0%,#16304F 38%,#1B6E8F 72%,#22A3B8 100%)}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){--pz-btn:#16304F;--pz-btn-hover:#1B6E8F;
    --pz-btn-grad:linear-gradient(110deg,#13253B 0%,#1E4A78 38%,#1F86AA 72%,#3FC1CF 100%)}
}
:root[data-theme="dark"]{--pz-btn:#16304F;--pz-btn-hover:#1B6E8F;
  --pz-btn-grad:linear-gradient(110deg,#13253B 0%,#1E4A78 38%,#1F86AA 72%,#3FC1CF 100%)}

:is(.btn,.tb-add){
  text-transform:uppercase;letter-spacing:.16em;font-size:12px;font-weight:600;
  box-shadow:none;transition:background-color .2s ease,color .2s ease,border-color .2s ease}
:is(.btn:not(.btn-q),.tb-add:not(.quiet)){
  background:var(--pz-btn-grad);background-size:140% 100%;background-position:0 0;background-origin:border-box;
  color:var(--pz-btn-ink);border:1px solid transparent;
  transition:background-position .45s cubic-bezier(.2,.7,.2,1),color .2s ease}
:is(.btn:not(.btn-q),.tb-add:not(.quiet)):hover{
  background:var(--pz-btn-grad);background-size:140% 100%;background-position:100% 0;background-origin:border-box;
  transform:none;box-shadow:none;opacity:1}
:is(.btn,.tb-add) svg{transition:transform .2s ease}
.btn:hover svg{transform:translateX(4px)}
:is(.btn-q,.tb-add.quiet){background:transparent;color:var(--ink);border:1px solid var(--hair)}
:is(.btn-q,.tb-add.quiet):hover{background:transparent;border-color:var(--ink);color:var(--ink);box-shadow:none;transform:none}
:is(.btn,.tb-add):focus-visible{outline:1px solid var(--ink);outline-offset:3px}
.btn-sm:is(.btn,.btn-q){font-size:10.5px;letter-spacing:.14em}
@media (prefers-reduced-motion: reduce){:is(.btn,.tb-add) svg{transition:none}}

/* ---- fields: focus wears a soft ring of the brand colour */
/* a search box is one box (Sam, 5 Nov 2026: "another weird box appears"): its frame lights up, so the input inside wears no ring */
:is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not(:is(.tb-q,.gg-pick-q) input),textarea,select):focus{
  box-shadow:0 0 0 3px var(--pz-ring);border-color:color-mix(in srgb,var(--primary) 55%,var(--hair))}

/* ---- list rows: an accent edge slides in at the left on hover */
.row.row--cols{transition:background .2s,box-shadow .2s}
.row.row--cols:hover{box-shadow:inset 3px 0 0 #1B87A8}

/* ---- the view switch: the chosen one carries the accent along its foot */
.tb-seg [aria-pressed="true"]{box-shadow:inset 0 -2px 0 #5B9BFF}

/* ---- arrival: a screen's cards rise into place one after another */
@keyframes pz-rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.grid > :is(.card,.tile),.lst > .row{animation:pz-rise .5s cubic-bezier(.2,.7,.2,1) backwards}
.grid > :nth-child(2),.lst > .row:nth-child(2){animation-delay:.04s}
.grid > :nth-child(3),.lst > .row:nth-child(3){animation-delay:.08s}
.grid > :nth-child(4),.lst > .row:nth-child(4){animation-delay:.12s}
.grid > :nth-child(5),.lst > .row:nth-child(5){animation-delay:.16s}
.grid > :nth-child(6),.lst > .row:nth-child(6){animation-delay:.20s}
.grid > :nth-child(7),.lst > .row:nth-child(7){animation-delay:.24s}
.grid > :nth-child(n+8),.lst > .row:nth-child(n+8){animation-delay:.28s}

/* a menu's tiles are there the moment it opens; only a page's rise in */
.megap .grid > *{animation:none}
/* a page that has just opened shows its cards at once; they rise in only on a move between screens
   (GG Platform feels fast, Sam, 9 Nov 2026: drop the rise-in on first load). The page puts .pz-first
   on its main region and takes it off on its first move. */
.pz-first .grid > :is(.card,.tile),.pz-first .lst > .row{animation:none}

/* ---- small things: selection and scrollbars in the brand's colours */
::selection{background:color-mix(in srgb,#5B9BFF 30%,transparent)}
html{scrollbar-color:color-mix(in srgb,var(--ink-3) 45%,transparent) transparent;scrollbar-width:thin}

@media (prefers-reduced-motion: reduce){
  .grid > :is(.card,.tile),.lst > .row{animation:none}
  :is(.tile,.cover) > .art img,
  :is(.btn,.tb-add)::before,
  :is(.nav,.tabs) :is(a,button)::after{transition:none}
}

/* ONE ROW OF TABS, ALWAYS (2.8.48, Sam, 3 Nov 2026: "one row of tabs only, NEVER 2 rows! You can make the page wider to
   accommodate the extra tabs"). A tab row never wraps and never scrolls sideways: it is as wide as its tabs and
   may reach past the page's column, centred on it, up to the window's width less a small gap. Only when even the
   window is too narrow (a phone) do the tabs give up width, then their names, keeping their icons. */
.tabs,.page.page--hero .tabs,.page > .tabs,.gg-gl-grouptabs.tabs,#ggMain .gg-set .tabs.tabs,.gg-set .tabs.tabs{
  flex-wrap:nowrap;overflow:visible;justify-content:center;width:max-content;max-width:calc(100vw - 24px);
  margin-left:50%;margin-right:0;transform:translateX(-50%)}
.tabs > :is(a,button),.page.page--hero .tabs > :is(a,button),.gg-set .tabs.tabs > :is(a,button){flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis}
.tabs > :is(a,button) > svg{flex:0 0 auto}
@media(min-width:900px){.tabs > :is(a,button),.page.page--hero .tabs > :is(a,button),.gg-set .tabs.tabs > :is(a,button){min-width:96px;flex:1 0 auto}}
@media(max-width:899px){:is(#ggMain,body) .tabs:has(> :nth-child(5)) > :is(a,button):has(> svg){font-size:0;gap:0;padding-left:6px;padding-right:6px;flex:1 1 0;min-width:34px}}

/* A TAB'S ICON TAKES THE TAB'S TEXT COLOUR (2.8.57, Sam, 3 Nov 2026: "icons in tabs are bad too", after "icons on this grid
   should not be coloured"): never a type's colour, on every tab row of both apps; white on the chosen tab, as its words */
.tabs svg *{stroke:currentColor}

/* THE TOP BAR OVER THE PAGE (2.8.73, Sam, 3 Nov 2026: "top dropdowns n workspace are appearing behijnd things, z index is wrong.
   they should be on top. this applies when you are on the admin page"): the bar and its dropdowns sit above every part of
   a page (Admin's tab groups sat at the bar's own 30 and covered them), still under tips (70), toasts (80) and pop-ups (90) */
header.top{z-index:65}

/* SETTINGS IS ONE COLUMN (Sam, 4 Nov 2026: "this page should always visually look equal"): the tab row and everything under it
   share the same two edges, on every tab, whatever the tabs are called. The column is 1000px, or as wide as the tabs need
   (prefs.js fitSettings sets --gg-set-w); the tabs share the row evenly. No box round what is below: sections are parted by
   space and one faint line, with a soft frosted ground so words stay readable on a picture theme. */
html body #ggMain .gg-set .tabs.tabs,html body .gg-set .tabs.tabs{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(max-content,1fr);
  width:100%;max-width:100%;margin-left:0;margin-right:0;transform:none;box-sizing:border-box}
html body .gg-set .tabs.tabs > :is(a,button){min-width:0;flex:none;justify-content:center}
html body #ggMain .gg-set .tabs.gg-set-tabs--icons,html body .gg-set .tabs.gg-set-tabs--icons{grid-auto-columns:minmax(0,1fr)}
html body .gg-set .tabs.gg-set-tabs--icons > :is(a,button){font-size:0;gap:0;padding-left:0;padding-right:0}
html body .gg-set .tabs.gg-set-tabs--tight > :is(a,button){gap:4px;padding-left:5px;padding-right:5px}
/* TWO GROUPS, STILL ONE ROW (2.8.405, HQ project "App Shell"): You and This app side by side, each with its name above it,
   each as wide as its share of the tabs; together they keep the column's two edges, as the one row did */
.gg-set-groups{display:flex;align-items:flex-end;column-gap:18px;width:100%;margin:0 auto 28px;box-sizing:border-box}
.gg-set-group{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:6px}
.gg-set-group-name{font-size:12px;font-weight:600;letter-spacing:.02em;color:var(--ink-3);padding-left:2px;white-space:nowrap}
html body #ggMain .gg-set .gg-set-groups .tabs.tabs,html body .gg-set .gg-set-groups .tabs.tabs{margin:0}
/* icons alone: the groups share the row by their number of tabs, with no smallest tab width pushing one past the edge */
html body #ggMain .gg-set .gg-set-groups .tabs.gg-set-tabs--icons > :is(a,button),html body .gg-set .gg-set-groups .tabs.gg-set-tabs--icons > :is(a,button){min-width:0}
.gg-set-panel{max-width:var(--gg-set-w,1000px);margin:0 auto}
/* the same page around it on every tab, so the column never moves as tabs change */
html body .page:where(:not(.gg-marked *,.gg-marked)):has(.gg-set),html body .page:is(.ggm-set,.gg-set:not(*)){max-width:none;margin-left:0;margin-right:0;padding-left:20px;padding-right:20px;box-sizing:border-box}
.gg-set-card,.gg-set-who{border:0;background:color-mix(in srgb,var(--paper) 72%,transparent);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.gg-set-who{border-left:0;padding:10px 16px}
.gg-set-row{padding:20px 16px;border-bottom:1px solid color-mix(in srgb,var(--hair) 70%,transparent)}
.gg-set-row:has(.gg-set-cars){grid-template-columns:minmax(0,1fr);gap:12px;padding-left:0;padding-right:0}
.gg-set-row:has(.gg-set-cars) > .gg-set-lab{padding:0 16px}
/* EVERY SETTINGS TAB ON ONE PANEL (2.8.336, Sam and Paul 16 Nov 2026, HQ project "Top menu tidied": "every Settings tab's
   content the same width ... on the same slightly darkened backdrop panel that Display has, fields on top"). A tab drawn
   by its own page (Calls, Parts, Identities, Roles, Users, Platform, Report to) sits in the Settings column on Display's
   panel, whatever it holds; its fields keep their own width on it. The kit's own tabs (Theme, Display, Brand) already
   draw that panel, so they are left as they are. */
body:where(:not(.gg-marked *,.gg-marked)):has([data-gg-settings-tabs]) #ggMain > [data-gg-part]:not([data-gg-part="head"]):not(:has(.gg-set-card,[data-gg-settings])),
body:is(.ggm-settings-tabs,[data-gg-settings-tabs]:not(*)) #ggMain > [data-gg-part]:not([data-gg-part="head"]):not(:has(.gg-set-card,[data-gg-settings])){
  width:100%;max-width:var(--gg-set-w,1000px);margin-left:auto;margin-right:auto;box-sizing:border-box;padding:20px 16px;
  background:color-mix(in srgb,var(--paper) 72%,transparent);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
/* a list on a Settings tab sits in the same column */
body:where(:not(.gg-marked *,.gg-marked)):has([data-gg-settings-tabs]) #ggMain .gg-gl,body:is(.ggm-settings-tabs,[data-gg-settings-tabs]:not(*)) #ggMain .gg-gl,.gg-set-panel .gg-gl{max-width:var(--gg-set-w,1000px);margin-left:auto;margin-right:auto}

