/* ---- Mockup v2 (refactored), lines 37-53: brand tokens and both themes ---- */
:root{
  --ink:#1D2939;--ink-2:#344054;--ink-3:#667085;--paper:#FFFFFF;--paper-2:#F5F7FA;--hair:#E4E7EC;--primary:#022F42;--on-primary:#FFFFFF;--ok:#3E9C6D;--warn:#C79A3A;--info:#5588C7;--idle:#A6AEB9;--reverse:#0E1C2E;--reverse-ink:#DDDFE2;
  /* SOMETHING IS WRONG AND IT IS THE CUSTOMER'S TO FIX. Not --warn, which is
     the amber "published/careful" state the status vocabulary already owns.
     The light value is the red .btn-bad has carried hard-coded since it was
     written; dark gets a red that survives navy, because #B42318 on --paper
     in dark is very nearly unreadable. See the FORM CONTROLS block. */
  --bad:#B42318;
  --head:'Catamaran',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --ui:'Catamaran',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --doc:'Catamaran',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --w-head:700; --w-body:400; --lh-head:1.3; --lh-body:1.6;
  --pad:64px; --wide:1120px;

  /* ONE VERTICAL RHYTHM FOR EVERY LIST AND GRID SCREEN (Sam, 11 Sep 2026):
     "on some screens there is too little space above the search/list toolbar
     and too much underneath it. Business → Memory is a good example. Please
     solve this globally rather than screen by screen."

     Two numbers, and they are the only two. --gap-top is the space a screen
     opens with, and the same space under a sub-menu; --gap-bar is the smaller
     space between a toolbar and the thing it acts on, so the controls read as
     belonging to the list rather than floating over it. Every list/grid screen
     is therefore: sub-menu · gap-top · toolbar · gap-bar · content. Nothing
     page-specific is allowed to restate either of them. */
  --gap-top:30px; --gap-bar:18px;

  /* ONE HEIGHT FOR EVERY CONTROL IN A TOOLBAR (Sam, 11 Sep 2026: sort should be
     a dropdown that matches the search box and the grid/list toggle). They were
     40.4px, 36.4px and 34px — three heights, three borders, three type sizes,
     for three controls that sit on one row and do one job between them. */
  --ctl-h:36px;

  /* THE PRODUCT'S OWN GROUND (Sam, 11 Sep 2026: "I'd like a nice gradient dark
     blue on the background. And top menu should be different colour to main
     background").

     THIS IS GUIDANCE GATE'S CHROME, NOT THE CUSTOMER'S BRAND. §14 keeps the two
     design systems apart, and app.css never loads on a customer-facing page, so
     nothing here can reach their site. No brand token is touched.

     Both themes get the same idea rather than a dark-only look: the page is a
     quiet vertical wash of the palette's own blue, deepest at the top where the
     header sits and settling out further down, and the header is a flat surface
     that is NOT that wash — so the chrome reads as a bar over a ground rather
     than more of the same colour. In dark that is navy over deeper navy; in
     light it is white over a pale blue tint. Deliberately shallow: cards, rows
     and tables all sit on --paper and --paper-2 and have to stay legible on it,
     which is the constraint that sets how far this can go. */
  --app-bg:linear-gradient(180deg,#F2F6FB 0%,#F7FAFD 42%,#FFFFFF 100%);
  --app-bg-fixed:#F5F9FC;
  --top-bg:#FFFFFF;
  /* --wide is the reading column. Card grids are not prose and get their own
     width, set once here so the four of them can never drift apart. */
  --grid-w:1400px;
}
@media (prefers-color-scheme: dark){
  :root{--app-bg:linear-gradient(180deg,#0A1524 0%,#0E1C2E 38%,#132539 100%);--app-bg-fixed:#0E1C2E;--top-bg:#08111D;--ink:#FFFFFF;--ink-2:#DDDFE2;--ink-3:#9FA4AB;--paper:#0E1C2E;--paper-2:#16283C;--hair:#25384F;--primary:#7FC6DE;--on-primary:#0E1C2E;--ok:#74DB9A;--warn:#F5D28A;--bad:#FDA29B;--info:#93C5FD;--idle:#7C8896;--reverse:#F5F7FA;--reverse-ink:#344054;}
}
:root[data-theme="dark"],#ggMain:where(:not(.gg-marked *,.gg-marked)):has(.gg-obj:is([data-gg-style="fields"],[data-gg-style="media"])),#ggMain:is(.ggm-obj-fields,.gg-obj:is([data-gg-style="fields"],[data-gg-style="media"]):not(*)),#ggMain:where(:not(.gg-marked *,.gg-marked)):has(.gg-project-page),#ggMain:is(.ggm-project-page,.gg-project-page:not(*)){--app-bg:linear-gradient(180deg,#0A1524 0%,#0E1C2E 38%,#132539 100%);--app-bg-fixed:#0E1C2E;--top-bg:#08111D;--ink:#FFFFFF;--ink-2:#DDDFE2;--ink-3:#9FA4AB;--paper:#0E1C2E;--paper-2:#16283C;--hair:#25384F;--primary:#7FC6DE;--on-primary:#0E1C2E;--ok:#74DB9A;--warn:#F5D28A;--bad:#FDA29B;--info:#93C5FD;--idle:#7C8896;--reverse:#F5F7FA;--reverse-ink:#344054;}
:root[data-theme="light"]{--app-bg:linear-gradient(180deg,#F2F6FB 0%,#F7FAFD 42%,#FFFFFF 100%);--app-bg-fixed:#F5F9FC;--top-bg:#FFFFFF;--ink:#1D2939;--ink-2:#344054;--ink-3:#667085;--paper:#FFFFFF;--paper-2:#F5F7FA;--hair:#E4E7EC;--primary:#022F42;--on-primary:#FFFFFF;--ok:#3E9C6D;--warn:#C79A3A;--bad:#B42318;--info:#5588C7;--idle:#A6AEB9;--reverse:#0E1C2E;--reverse-ink:#DDDFE2;}

/* 2.8.331 GLASS EVERYWHERE (Sam, 16 Nov 2026: "everything on the platform that is currently a 'solid' colour - should become glass...
   not too transparent, really quite opaque, but glass just gives a bit of gradient where otherwise there is none"; design A from the
   canvas, HQ project "Solid surfaces become glass"). Every panel, menu, drop-down, pop-up, notice and field that sat on flat --paper
   sits on --glass: a gentle top-to-bottom gradient, lighter at the top, about 94% opaque so the picture behind barely shows, with a
   fine light line along its top edge. --glass-ctl is the same for fields and small buttons, without the line. --glass-hi and
   --glass-lo are the two ends, solid, for a sticky head or foot inside a glass panel. Worked out from --paper, --paper-2 and --primary,
   so a copy's own colours carry through. The top bar takes the same gradient over --top-bg. */
:root{--glass-hi:var(--paper);--glass-lo:color-mix(in srgb,var(--paper-2) 94%,var(--info));--glass-shine:color-mix(in srgb,#fff 90%,transparent)}
@media (prefers-color-scheme: dark){:root{--glass-hi:color-mix(in srgb,var(--paper-2) 86%,var(--primary));--glass-lo:var(--paper);--glass-shine:color-mix(in srgb,#fff 13%,transparent)}}
:root[data-theme="dark"],#ggMain:where(:not(.gg-marked *,.gg-marked)):has(.gg-obj:is([data-gg-style="fields"],[data-gg-style="media"])),#ggMain:is(.ggm-obj-fields,.gg-obj:is([data-gg-style="fields"],[data-gg-style="media"]):not(*)),#ggMain:where(:not(.gg-marked *,.gg-marked)):has(.gg-project-page),#ggMain:is(.ggm-project-page,.gg-project-page:not(*)){--glass-hi:color-mix(in srgb,var(--paper-2) 86%,var(--primary));--glass-lo:var(--paper);--glass-shine:color-mix(in srgb,#fff 13%,transparent)}
:root[data-theme="light"]{--glass-hi:var(--paper);--glass-lo:color-mix(in srgb,var(--paper-2) 94%,var(--info));--glass-shine:color-mix(in srgb,#fff 90%,transparent)}
:root,#ggMain{
  --glass:linear-gradient(180deg,var(--glass-shine) 0,var(--glass-shine) 1px,transparent 1px),linear-gradient(180deg,color-mix(in srgb,var(--glass-hi) min(100%,calc(95% * var(--gg-k,1))),transparent) 0%,color-mix(in srgb,var(--glass-lo) min(100%,calc(93% * var(--gg-k,1))),transparent) 100%);
  --glass-ctl:linear-gradient(180deg,color-mix(in srgb,var(--glass-hi) min(100%,calc(96% * var(--gg-k,1))),transparent) 0%,color-mix(in srgb,var(--glass-lo) min(100%,calc(94% * var(--gg-k,1))),transparent) 100%);
  --glass-top:linear-gradient(180deg,color-mix(in srgb,color-mix(in srgb,var(--top-bg) 60%,var(--glass-hi)) min(100%,calc(94% * var(--gg-k,1))),transparent) 0%,color-mix(in srgb,color-mix(in srgb,var(--top-bg) 72%,var(--glass-lo)) min(100%,calc(92% * var(--gg-k,1))),transparent) 100%)}

/* ---- Mockup v2 (refactored), lines 55-112: base, card artwork gradients, chrome, view, status, buttons ---- */
*{box-sizing:border-box}
/* THE GROUND IS THE GRADIENT, THE SURFACES ARE NOT. --paper stays exactly what
   it was and every card, row, panel and table still sits on it; only the page
   behind them changed. The flat fallback is painted first so a screen taller
   than the gradient's own run has no seam at the bottom, and so anything that
   cannot render a gradient still gets the right colour. */
body{margin:0;background:var(--app-bg-fixed);background-image:var(--app-bg);
  background-repeat:no-repeat;background-attachment:fixed;
  color:var(--ink-2);font-family:var(--ui);font-size:16px;
  font-weight:var(--w-body);line-height:var(--lh-body);-webkit-font-smoothing:antialiased}
h1,h2,h3{color:var(--ink);margin:0;font-family:var(--head);font-weight:var(--w-head);
  letter-spacing:0;line-height:var(--lh-head);text-wrap:balance}
p{margin:0}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;text-align:left}
:focus-visible{outline:2px solid var(--primary);outline-offset:3px}

/* ---- MOVED INTO THE KIT (Shared Component Kit, step 0a9b47, 28 October 2026):
   the rules below came from V2's assets/app.css.d/1-art-menu-library.css, unchanged and in
   their own order, because they style kit components. They sit at the end of this file
   because that is where V2 printed them, so no winner changed. ---- */
/* CARD ARTWORK — all blue. The platform's own gradients are blues and teals
   (gg-brand ships linear-gradient(160deg,#5b9bff,#2f6fd6) and #03989e→#026f74),
   and the palette anchors are navy: button #022F42, opposite bg #0E1C2E,
   secondary #130D32. Six covers still have to be told apart, so they separate
   by temperature and value across that blue range — navy to teal to sky —
   rather than by jumping hue into plum, amber and rose the way they used to.
   Named for what they are now; a class called g-azure that renders blue is the
   kind of small lie that costs somebody an afternoon later. */
.g-ocean{background:linear-gradient(124deg,#022F42,#0A5570 55%,#1B87A8)}
.g-teal{background:linear-gradient(124deg,#04303A,#026F74 55%,#03989E)}
.g-azure{background:linear-gradient(124deg,#0B1F38,#21386B 55%,#5B9BFF)}
.g-lagoon{background:linear-gradient(124deg,#022F42,#0A5F63 55%,#35A08C)}
.g-sky{background:linear-gradient(124deg,#0B2440,#2C5E9E 55%,#6FA8E8)}
.g-indigo{background:linear-gradient(124deg,#130D32,#2B3F7A 55%,#6C82D8)}
.g-slate{background:linear-gradient(124deg,#0E1C2E,#24445F 55%,#4E7C9E)}

@media(max-width:860px){:root{--pad:20px}}

/* ---- MOVED INTO THE KIT (Shared Component Kit, step 16b95e, 28 October 2026):
   V2's top bar. The rules below came from V2's assets/app.css.d/1-art-menu-library.css,
   unchanged and in their own order, with their comments. They sit at the end of this file
   because that is where V2 printed them, so no winner changed. The staff bar and the staff
   menu stay in V2's own file: they are V2's, staff only, and not a kit piece. ---- */
/* chrome */
/* THE TOP MENU IS ITS OWN COLOUR (Sam, 11 Sep 2026: "top menu should be
   different colour to main background"). It used to be 86% of --paper over
   whatever was behind it, which on a plain --paper page meant it was the page.
   Now it is --top-bg, a flat surface that is deliberately not the ground's
   wash: white over a pale blue tint in light, and the darkest thing on the
   screen in dark. The blur stays for whatever scrolls under it. */
.top{position:sticky;top:0;z-index:30;background:var(--glass-top);backdrop-filter:blur(14px);border-bottom:1px solid var(--hair)}
/* (2.5.1, Sam 29 Oct 2026) The bar spans the whole screen, the mark at the far left, so the menu has room. */
.top-in{margin:0 auto;padding:0 40px;display:grid;
  grid-template-columns:1fr auto 1fr;align-items:center;height:66px}
.bm{display:inline-flex;align-items:center;gap:10px;font-family:var(--head);font-weight:700;color:var(--ink);letter-spacing:0;white-space:nowrap;text-decoration:none}
/* THE MARK, NOT THE COACH'S BRAND (Sam, 9 October 2026: "we need GG logo top
   left of platform"). Guidance Gate's own chrome and the coach's own brand are
   separate design systems (§14, the comment on the front bar below), so this
   is always the Guidance Gate mark — two PNGs shipped with the plugin, one
   per theme, the same swap every other token on this page already makes. */
.bm-mark{height:28px;width:auto;display:block}
.bm-mark-dark{display:none}
:root[data-theme="dark"] .bm-mark-light{display:none}
:root[data-theme="dark"] .bm-mark-dark{display:block}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .bm-mark-light{display:none}
  :root:not([data-theme="light"]) .bm-mark-dark{display:block}
}
.nav{display:flex;gap:32px;justify-content:center}
.nav button{color:var(--ink-3);font-size:15px;padding:5px 0;position:relative}
.nav button:hover{color:var(--ink)}
.nav button[aria-current="true"]{color:var(--ink);font-weight:500}
.nav button[aria-current="true"]::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--ink)}
/* --------------------------------------------------------------------------
   A DOOR THAT SHOWS ITSELF — the shared nav panel.
   Tools is the first surface to use it (Sam, 11 Sep 2026) and nothing here
   names Tools: a surface answers the gg_v2_nav_panel filter and gets this.

   It hangs from the header, spans the shell's own width rather than the item it
   belongs to, and sits on --paper so it reads as a surface over the ground the
   same way every card does. Hidden with the `hidden` attribute, not with a
   class, so it is genuinely out of the accessibility tree when closed.
   -------------------------------------------------------------------------- */
.nav-i{position:static;display:flex;align-items:center}
/* THE FULL WIDTH OF THE PAGE (Sam, 9 October 2026: "tools mega menu should be
   full width of page"), edge to edge under the header; the tiles keep the
   page's own margins inside it. */
.megap{position:absolute;left:0;right:0;top:100%;z-index:40;width:auto;
  background:var(--glass);border:0;border-bottom:1px solid var(--hair);
  box-shadow:0 18px 40px -24px rgba(8,17,29,.45)}
.megap[hidden]{display:none}
/* NEVER TALLER THAN THE SCREEN UNDER THE HEADER. The Tools menu is a full grid
   of picture tiles (Sam, 28 Sep 2026), and on a short window it scrolls inside
   itself rather than running off the bottom. */
.megap-in{padding:24px max(40px, calc((100vw - var(--shell-w)) / 2));max-height:calc(100vh - 66px - 24px);max-height:calc(100dvh - 66px - 24px);overflow-y:auto;overscroll-behavior:contain}
/* the grid's own break-out width is for a page; inside the panel it fills it */
.megap .grid{width:auto;margin-left:0;transform:none}
/* the door stays lit while its own panel is open */
.nav-i.is-open > a{color:var(--ink)}
/* A MENU THAT SAYS IT IS A MENU (Sam, 9 October 2026: "the tools mega menu is
   not obviously a mega menu"). The door carries a chevron that turns over when
   the panel is open, the panel wears the accent line along its top, and the
   page behind it dims, so it reads as something dropped over the screen rather
   than as the next page. The scrim never takes a click: the outside-click
   handler in app.js still closes the panel. */
.nav-i > a[data-gg-menu]{position:relative;padding-right:15px}
.nav-i > a[data-gg-menu]::before{content:"";position:absolute;right:1px;top:50%;width:5px;height:5px;
  border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;
  transform:translateY(-75%) rotate(45deg);transition:transform .2s ease;opacity:.75}
.nav-i.is-open > a[data-gg-menu]::before{transform:translateY(-25%) rotate(-135deg)}
.megap::before{content:"";position:absolute;left:0;right:0;top:0;height:2px;z-index:1;
  background:linear-gradient(90deg,#03989E,#1B87A8 30%,#5B9BFF 68%,#6C82D8)}
body:where(:not(.gg-marked *,.gg-marked)):has(.nav-i.is-open)::after,body:is(.ggm-nav-open,.nav-i.is-open:not(*))::after{content:"";position:fixed;inset:0;z-index:25;pointer-events:none;
  background:rgba(8,17,29,.30);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);
  animation:megap-dim .18s ease}
/* and blurred, so the open menu is the one thing in focus (Sam, 9 October
   2026: "the mega menu should also blur the background when it drops down") */
@keyframes megap-dim{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:no-preference){
  .megap{animation:megap-in .16s cubic-bezier(.2,.7,.3,1)}
  @keyframes megap-in{from{opacity:0;transform:translateY(-4px)}
    to{opacity:1;transform:none}}
}

/* A PLAIN DROPDOWN (drop: 'list', Sam, 29 October 2026: "we want normal
   dropdowns, same as on gg workspace v1"). The group's names in one column
   just under its door, no tiles and no dimmed page behind; the page it is on
   is marked with the accent along its left edge. */
.nav-i:has(> .megap--list){position:relative}
.megap--list{left:-24px;right:auto;top:calc(100% - 4px);min-width:250px;border:1px solid var(--hair)}
.megap--list .megap-in{padding:10px 0}
/* .nav .megap-link, so the bar's own link rules (.nav a: no side padding, the
   hover underline) do not squash the list */
.nav .megap-link{display:block;padding:12px 26px;border-left:3px solid transparent;white-space:nowrap;
  color:var(--ink-2);font-size:15px;font-weight:600;line-height:1.35;text-decoration:none}
.nav .megap-link::after{display:none}
.nav .megap-link:hover,.nav .megap-link:focus-visible{color:var(--ink);background:var(--paper-2)}
.nav .megap-link[aria-current="page"]{color:var(--ink);border-left-color:var(--primary)}
.nav .megap-link.is-off{color:var(--ink-3)}
/* A GROUP INSIDE A LIST (2.8.321, HQ project "Top menu tidied"): its door is a row like any other with a chevron at the
   end; its links show in a column beside the list when pointed at or tabbed to on a wide screen with a mouse, and
   underneath it after a click or a tap everywhere else. The star marks a page only GG Staff see, plain like every icon. */
.nav .megap-sub-door{width:100%;border-top:0;border-right:0;border-bottom:0;background:none;font:inherit;font-size:15px;font-weight:600;
  text-align:left;cursor:pointer}
.nav .megap-sub-door[data-here]{color:var(--ink);border-left-color:var(--primary)}
.megap-sub-t{flex:1 1 auto}
.megap-sub-ch{width:14px;height:14px;flex:0 0 14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;opacity:.6;
  transition:transform .15s}
.megap-star{width:12px;height:12px;flex:0 0 12px;margin-left:-6px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;opacity:.55;vertical-align:-1px}
.megap-sub{position:relative}
.megap-sub-in{display:none}
.megap-sub.is-open > .megap-sub-in{display:block;padding:2px 0 6px 18px;border-left:1px solid var(--hair);margin-left:26px}
.megap-sub.is-open > .megap-sub-door .megap-sub-ch{transform:rotate(90deg)}
@media (hover:hover) and (pointer:fine) and (min-width:861px){
  .top:not(.is-fold) .megap--list:has(.megap-sub) .megap-in{overflow:visible;max-height:none}
  .top:not(.is-fold) .megap--list .megap-sub:is(:hover,:focus-within) > .megap-sub-in{display:block;position:absolute;left:100%;top:-11px;
    margin:0;padding:10px 0;min-width:240px;background:var(--glass);border:1px solid var(--hair);box-shadow:0 18px 40px -24px rgba(8,17,29,.45);z-index:2}
  .top:not(.is-fold) .megap--list .megap-sub.is-left:is(:hover,:focus-within) > .megap-sub-in{left:auto;right:100%}
  .top:not(.is-fold) .megap--list .megap-sub:is(:hover,:focus-within) > .megap-sub-door{color:var(--ink);background:var(--paper-2)}
  .top:not(.is-fold) .megap--list .megap-sub.is-open > .megap-sub-door .megap-sub-ch{transform:none}
}
/* a group opened underneath in a list laid out across (a phone, a folded bar) takes the whole row */
.megap-in > .megap-sub.is-open{grid-column:1/-1}
/* measuring how wide the groups' columns are, unseen (js/top-bar.js ggPanelFit) */
.megap.is-measuring .megap-sub-in{display:block!important;position:absolute;left:0;top:0;visibility:hidden;min-width:240px;padding:10px 0;margin:0}
body:where(:not(.gg-marked *,.gg-marked)):has(.nav-i.is-open > .megap--list)::after,body:is(.ggm-nav-open-list,.nav-i.is-open > .megap--list:not(*))::after{display:none}

.themer{justify-self:end;display:flex}
.themer button{color:var(--ink-3);font-size:13px;padding:4px 7px}
.themer button:hover{color:var(--ink)}
/* THE STAFF VIEW SWITCH (Sam, 20 October 2026), staff only. The quiet bordered
   treatment of the staff way out to WordPress admin (.gg-escape), with its state
   in a small block: ink when on, the way a pressed segment is (.tb-seg). Off
   draws every screen as the customer sees it. inc/customer-shell.php */
.themer{align-items:center}
@media(max-width:860px){
  /* the mark stays, the wordmark next to it does not — "Guidance Gate" cost
     the nav 110+px of its scroll room; the icon alone costs 30px (Sam, 9
     October 2026: logo must stay visible at phone width too) */
  /* same breathing room from the first nav item as the nav items have from
     each other — the nav's own gap below, stated once, used here too */
  .top-in{grid-template-columns:auto 1fr;padding:0 16px;height:58px;gap:18px}
  .bm-mark{height:22px}
  .bm-text{display:none}
  /* THE NAV SCROLLS FROM ITS START, NOT ITS CENTRE. overflow-x:auto was here
     already, but .nav is justify-content:center, and a centred flex row that
     overflows puts its first items in negative space no scroll can reach. Seven
     doors first clipped around 455px; the eighth brings that to about 525px,
     which takes the whole of Business off the bar. Measured 13 Sep 2026. */
  .nav{gap:18px;overflow-x:auto;justify-content:flex-start;scrollbar-width:none}
  .nav::-webkit-scrollbar{display:none}
  .nav button{font-size:14px;white-space:nowrap}
  .themer{display:none}
  /* a menu-only door opens its panel by tap down here too: edge to edge under
     the bar, three tiles across and two on a phone */
  .megap{width:100%;border-left:0;border-right:0}
  .megap-in{padding:16px;max-height:calc(100vh - 58px);max-height:calc(100dvh - 58px)}
  .megap .grid{--grid-cols:3;--grid-gap:12px}}
/* 2.6.89 (Sam, 1 Nov 2026: "when page is not full width, the words are spaced badly ... Action Studio has
   spilled onto 2 lines"). A door's name is never split over two lines; the bar tightens in steps as the
   screen narrows; and when the doors still do not fit, the bar's script folds them into the one Menu button
   the phone has (.top.is-fold, js/top-bar.js), opening as the phone's list, four across. */
.top .nav :is(a,button){white-space:nowrap}
@media(min-width:861px) and (max-width:1440px){.top-in{padding:0 24px;column-gap:24px}.top .nav{gap:22px}}
@media(min-width:861px) and (max-width:1200px){.top .nav{gap:16px}.top .nav :is(a,button){font-size:14px}.top .bm-text{display:none}}
/* 2.8.28 (Sam, 3 Nov 2026: "give as much space between the menu items as possible, and make icons a little
   closer to their words. use less padding on end left and end right of menu, basically maximise the real
   estate"). On a screen wider than a phone the doors fill all the room between the mark and the cog, spread
   evenly end to end, and the bar keeps only a slim edge each side. The gaps above are the least a door may
   sit from the next; whether the doors fit is measured at those, never at the spread (js/top-bar.js). */
/* 2.8.72 (Sam, 3 Nov 2026: "we want more space to the left and right of the menu. menu centered, with just a
   little spae between menu items"): the doors sit as one group in the middle of the bar, a small even gap between
   them; the mark stays at the far left and the cog and switch at the far right. */
@media(min-width:861px){
  .top-in{padding:0 16px;column-gap:24px}
  .top:not(.is-fold) .top-in{grid-template-columns:1fr auto 1fr}
  /* 2.8.75 (Sam, 3 Nov 2026: "top menu items are a little too close together" ... "just a little"): 22px, a few more than 18 */
  .top:not(.is-fold) .nav{justify-content:center;gap:22px;min-width:0}
  .top:not(.is-fold) .themer{justify-self:end}
}
.top.is-fold .nav{justify-content:flex-start}
.top.is-fold .nav-i:has(> .megap--list){position:static}
.top.is-fold .megap--list{left:0;right:0;top:100%;min-width:0;border-left:0;border-right:0}
.top.is-fold .megap--list .megap-in{display:grid;grid-template-columns:repeat(4,1fr);padding:10px 0}
.top.is-fold .nav .megap--list .megap-link{min-height:44px;display:flex;align-items:center;padding:10px 22px}
/* 2.6.90 (Sam, 1 Nov 2026: "should go to hamburger, not centred thing 'menu' dropdown"). The one Menu
   button, on a phone and on a screen too narrow for every door, is a hamburger at the right-hand end of
   the bar, a cross while its list is open. */
.top .nav:has(.is-burger){justify-content:flex-end}
.top.is-fold .top-in{grid-template-columns:auto 1fr auto auto;column-gap:14px}
.top.is-fold .nav{grid-column:3;grid-row:1}
.top.is-fold .themer{grid-column:4;grid-row:1}
.top .nav .nav-burger{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;
  border:1px solid var(--hair);background:var(--glass-ctl);color:var(--ink)}
.top .nav .nav-burger:hover,.top .nav .nav-burger[aria-expanded="true"]{border-color:var(--ink-3)}
.top .nav .nav-burger::before,.top .nav .nav-burger::after{display:none}
.nav-burger svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:square}
.nav-burger .nav-burger-shut,.nav-burger[aria-expanded="true"] .nav-burger-open{display:none}
.nav-burger[aria-expanded="true"] .nav-burger-shut{display:block}
.nav-burger-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* 2.8.17 (Sam, 3 Nov 2026: "add icons to top menu too, small and neat. When the page gets too small the words
   can disappear and leave just icons instead of going to hamburger"). Each door wears its section's icon,
   small, before its name. When the names do not fit, the bar drops them and keeps the icons (.top.is-icons,
   set by js/top-bar.js on the Workspace and by the header's own measure on V2); only when even the icons
   do not fit does the Workspace bar fold into the one Menu button. */
.top .nav > a:has(> .nav-ic),.top .nav-i > a:has(> .nav-ic){display:inline-flex;align-items:center;gap:5px}
.top .nav .nav-ic{width:15px;height:15px;flex:0 0 15px;fill:none;stroke:currentColor;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round}
/* 2.8.20 (Sam, 3 Nov 2026: "only icons when the screen gets too small"): before the icons stand alone, the bar
   tightens and keeps every icon beside its name (.top.is-tight, 2.8.27): the doors closer together, the mark
   without its word. And "when it's icons - each should have an immediate
   tooltip on hover, no wait"; "use proper branded tooltip too": the door's own name, in the kit's tooltip
   box (.tip, css/3-overlays.css), under the icon the moment the pointer or the keyboard is on it. */
.top.is-tight .nav{gap:14px}
.top.is-tight .nav > a:has(> .nav-ic),.top.is-tight .nav-i > a:has(> .nav-ic){gap:4px}
/* 2.8.46 (Sam, 3 Nov 2026: "Remove icon colours from top menu"). A door may wear its type's icon, which
   comes with that type's colour; on the top menu, and in its drop-downs, every icon takes its word's colour.
   Type icons keep their colours everywhere else. */
.top .nav :is(.nav-ic,.megap-ic) [stroke]:not([stroke="none"]){stroke:currentColor}
.top .nav :is(.nav-ic,.megap-ic) [fill]:not([fill="none"]){fill:currentColor}
/* 2.8.265 (Sam, 10 Nov 2026: "Icons on workspace should not be coloured in the top menu"). A type's icon also
   carries color="...", so currentColor above still meant the type's colour; inside the top menu, and its
   drop-downs, every part of an icon takes its word's colour instead. */
.top .nav :is(.nav-ic,.megap-ic) *{color:inherit}
.top.is-tight .bm-text{display:none}
.top.is-icons .nav .nav-t{position:absolute;left:50%;top:calc(100% + 12px);transform:translateX(-50%);z-index:70;
  padding:6px 10px;background:var(--reverse);color:var(--reverse-ink);font-size:13px;font-weight:400;line-height:1.5;
  white-space:nowrap;pointer-events:none;opacity:0}
.top.is-icons .nav :is(.nav > a,.nav-i > a):is(:hover,:focus-visible) > .nav-t{opacity:1}
.top.is-icons .nav .nav-i.is-open > a > .nav-t{opacity:0}
.top.is-icons .nav .nav-ic{width:18px;height:18px;flex-basis:18px}
@media(hover:hover){.top.is-icons .nav{overflow:visible}}
.top.is-icons .nav{gap:22px}
.top.is-icons .bm-text{display:none}
/* AN APP THAT IS ONLY ITSELF KEEPS ITS NAME (2.8.350; Releases, Sam 13 Nov 2026: "its name always sits beside its logo top
   left, at every width, so the first software tab never reads as the app's name"): home.keep on the top bar */
.top.keeps-name .bm-text,.top.keeps-name.is-tight .bm-text,.top.keeps-name.is-icons .bm-text{display:inline-block}
/* 2.6.91 (Sam, 1 Nov 2026: "hamburger should be to left of light/dark. Light and dark should be icons...
   maybe just a switch? small and clean"). One small switch, a sun and a moon either side; the hamburger sits
   just left of it, on a phone too. V2's own bar keeps its two words until it draws this switch. */
.themer .themer-sw{display:inline-flex;align-items:center;padding:6px 4px;margin-right:6px;background:none;border:0;cursor:pointer;color:var(--ink-3)}
/* the sun and moon on the knob (2.8.332): one track, its knob carrying the icon of the theme showing */
.themer-track{position:relative;display:block;width:34px;height:18px;box-sizing:border-box;border:1px solid var(--hair);background:var(--paper-2)}
.themer-knob{position:absolute;top:1px;left:1px;width:14px;height:14px;display:flex;align-items:center;justify-content:center;
  background:var(--ink-2);transition:transform .15s}
.themer-knob svg{width:10px;height:10px;display:block;fill:none;stroke:var(--paper);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
/* THE MODE A CLICK GIVES (2.8.335, Sam and Paul 16 Nov 2026, HQ project "Top menu tidied"): the knob shows where a click
   takes you, not where you are - a moon in light mode, a sun in dark mode */
.themer-knob .themer-sun{display:none}
.themer-sw:hover .themer-track{border-color:var(--ink-3)}
:root[data-theme="dark"] .themer-knob{transform:translateX(16px)}
:root[data-theme="dark"] .themer-knob .themer-moon{display:none}
:root[data-theme="dark"] .themer-knob .themer-sun{display:block}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .themer-knob{transform:translateX(16px)}
  :root:not([data-theme="light"]) .themer-knob .themer-moon{display:none}
  :root:not([data-theme="light"]) .themer-knob .themer-sun{display:block}}
@media(max-width:860px){
  .top-in:has(.themer-sw){grid-template-columns:auto 1fr auto;column-gap:12px}
  .top .themer:has(.themer-sw){display:flex}}
/* 2.6.92 (Sam, 1 Nov 2026: "make hamburger dropdown just a normal dropdown, with list"). The hamburger
   opens one plain list straight under it, right-aligned to it, one name per line, on a phone too. */
.top .nav:has(.is-burger){overflow:visible}
.top .nav .nav-i.is-burger:has(> .megap--list){position:relative}
.top .nav-i.is-burger > .megap--list{left:auto;right:0;top:calc(100% + 9px);width:max-content;min-width:240px;
  max-width:calc(100vw - 32px);border:1px solid var(--hair);box-shadow:0 12px 32px rgba(8,17,29,.12)}
.top .nav-i.is-burger > .megap--list > .megap-in{display:block;padding:6px 0;max-height:calc(100vh - 90px);
  max-height:calc(100dvh - 90px);overflow-y:auto}
.top .nav .nav-i.is-burger .megap--list .megap-link{display:flex;align-items:center;min-height:0;padding:10px 22px;white-space:nowrap}
@media(max-width:860px){
  /* on a phone the plain list opens edge to edge under the bar, two across */
  .nav-i:has(> .megap--list){position:static}
  .megap--list{left:0;right:0;top:100%;min-width:0;border-left:0;border-right:0}
  .megap--list .megap-in{display:grid;grid-template-columns:1fr 1fr;padding:10px 0}
  .nav .megap--list .megap-link{white-space:normal;min-height:48px;display:flex;align-items:center;padding:10px 18px}}
@media(max-width:640px){.megap .grid{--grid-cols:2}
  .megap .grid.grid--6.grid--tight .tile{aspect-ratio:1/1}}

/* ---- MOVED INTO THE KIT (Shared Component Kit, step 523405, 28 October 2026):
   V2's page column, so a page that loads only the kit gets V2's side gaps. The rule below
   came from the end of V2's assets/app.css.d/1-art-menu-library.css, unchanged, with its
   comment. Its phone rule is the phone value of --pad, already in this file. It sits at the
   end of this file because V2 printed it after this file, and no rule V2 prints between the
   two sets what it sets on the same element with the same weight, so no winner changed. ---- */
/* every screen opens the same distance below the sticky header — the content
   region says it once so no screen has to say it at all */
.page{max-width:var(--wide);margin:0 auto;padding:var(--gap-top) var(--pad) 140px}
/* .gg-glass, the shared glass panel (Sam, 16 Nov 2026: "glass vibes", first on Mail): frosted over the background picture so it
   shows through, a fine edge, a light line along the top and a soft shadow. Sharp corners like every panel. Any page can wear it */
.gg-glass{background:color-mix(in srgb,var(--paper) min(100%,calc(54% * var(--gg-k,1))),transparent);-webkit-backdrop-filter:blur(14px) saturate(140%);backdrop-filter:blur(14px) saturate(140%);
  border:1px solid color-mix(in srgb,var(--ink) 12%,transparent);
  box-shadow:inset 0 1px 0 color-mix(in srgb,#fff 10%,transparent),0 18px 44px -24px rgba(0,0,0,.55)}
:root[data-theme="light"] .gg-glass{background:color-mix(in srgb,var(--paper) min(100%,calc(72% * var(--gg-k,1))),transparent)}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]) .gg-glass{background:color-mix(in srgb,var(--paper) min(100%,calc(72% * var(--gg-k,1))),transparent)}}

/* ---- 2.7.0 (Sam, 2 Nov 2026): EACH PERSON'S OWN SETTINGS, THE COG AND THE FLIP SWITCH ----
   "a flip switch, top left ... you flick it and you end up in the other one, workspace and platform";
   "the two of them needs slightly different colored themes"; "a little cog ... global settings ...
   stored on a per-user basis". The server prints the person's choices onto <html> (data-gg-look,
   data-gg-across, data-gg-width, data-gg-app) and js/prefs.js keeps them in step. */

/* which app you are in: a thin line of its own colour under the bar */
:root{--gg-app:transparent}
:root[data-gg-app="workspace"]{--gg-app:#2BB3A3}
:root[data-gg-app="platform"]{--gg-app:#5B9BFF}
.top{box-shadow:inset 0 -2px 0 var(--gg-app)}

/* top left: the mark (the switch to the other app beside it went on 3 Nov 2026, Sam) */
/* (2.7.1, Sam 2 Nov 2026: "the cog is top left, over top of menu words...should be top right ... should be
   responsive") the cog sits top right, before Light and Dark; the left group never shrinks under the doors */
.top-l{display:flex;align-items:center;gap:14px;flex:0 0 auto;justify-self:start}
.themer .gg-cog{margin-right:6px}
/* full screen (2.8.326, back in 2.8.344 beside Install app): a plain icon, the cog's size and look; its icon swaps once the page fills the screen */
.themer .gg-full{margin-right:6px;padding:0}
.gg-full{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;color:var(--ink-3);
  background:none;border:1px solid transparent;cursor:pointer}
.gg-full svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:square;stroke-linejoin:miter}
.gg-full:hover{color:var(--ink);border-color:var(--hair);background:var(--paper-2)}
.gg-full .gg-full-out,html:fullscreen .gg-full .gg-full-in{display:none}
html:fullscreen .gg-full .gg-full-out{display:block}
/* Install app (2.8.332, replaces 2.8.326's full screen): a plain icon before the name, the cog's size and look; hidden until the browser offers it */
.themer .gg-install{margin-right:6px;padding:0}
.gg-install{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;color:var(--ink-3);
  background:none;border:1px solid transparent;cursor:pointer}
.gg-install[hidden]{display:none}
.gg-install svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:square;stroke-linejoin:miter}
.gg-install:hover{color:var(--ink);border-color:var(--hair);background:var(--paper-2)}
.gg-cog{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;color:var(--ink-3);
  border:1px solid transparent;text-decoration:none}
.gg-cog svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.gg-cog:hover,.gg-cog[aria-current="page"]{color:var(--ink);border-color:var(--hair);background:var(--paper-2)}
/* who is signed in (2.8.217): a circle with their first letter and their name, before the cog */
.gg-me{display:inline-flex;align-items:center;gap:7px;height:30px;padding:0 10px 0 3px;margin-left:6px;color:var(--ink-2);
  text-decoration:none;border:1px solid transparent;border-radius:999px;font-size:13px;font-weight:600;white-space:nowrap}
.gg-me:hover{color:var(--ink);border-color:var(--hair);background:var(--paper-2)}
.gg-me-i{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;
  background:var(--own-main,var(--gg-app,var(--ink-3)));color:#fff;font-size:12px;font-weight:600;line-height:1}
/* its picture (2.8.299), and its own small menu: under the name, right-aligned to it, by click or tap */
.gg-me-i.has-pic{background:none;overflow:hidden}
.gg-me-i img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.themer .gg-me-w{position:relative;display:flex;align-items:center}
.gg-me-w > a.gg-me[data-gg-menu]{padding-right:22px}
.gg-me-w > a.gg-me[data-gg-menu]::before{right:9px}
.gg-me-w.is-open > a.gg-me{color:var(--ink);border-color:var(--hair);background:var(--paper-2)}
.themer .gg-me-w > .gg-me-menu{left:auto;right:0;top:calc(100% + 6px);width:max-content;min-width:200px;
  max-width:calc(100vw - 32px);border:1px solid var(--hair);box-shadow:0 12px 32px rgba(8,17,29,.12)}
.gg-me-menu .megap-in{display:block;padding:6px 0}
/* My profile's Picture row (2.8.302): the person's circle, larger, beside its buttons on one line */
.gg-me-pic{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.gg-me-pic .gg-me-i{width:40px;height:40px;font-size:16px}
.gg-me-menu .megap-link{display:flex;align-items:center;gap:10px;width:100%;padding:10px 22px;border:0;border-left:3px solid transparent;
  background:none;color:var(--ink-2);font:inherit;font-size:15px;font-weight:600;line-height:1.35;text-align:left;white-space:nowrap;
  text-decoration:none;cursor:pointer}
.gg-me-menu .megap-link:hover,.gg-me-menu .megap-link:focus-visible{color:var(--ink);background:var(--paper-2)}
.gg-me-menu .megap-link[aria-current="page"]{color:var(--ink);border-left-color:var(--primary)}
.gg-me-menu .megap-ic{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body:where(:not(.gg-marked *,.gg-marked)):has(.gg-me-w.is-open)::after{display:none}
@media(max-width:860px){
  .top-in:has(.themer .gg-cog){grid-template-columns:auto 1fr auto}
  .themer:has(.gg-cog){display:flex}
  .themer:has(.gg-cog) > :not(.gg-cog,.gg-me,.gg-me-w){display:none}
  .gg-me{padding:0 2px;margin-left:2px}
  .gg-me-w > a.gg-me[data-gg-menu]{padding-right:16px}
  .gg-me-w > a.gg-me[data-gg-menu]::before{right:4px}
  .themer .gg-me-w > .gg-me-menu{right:0}
  .gg-me-n{display:none}
  .themer .gg-cog{margin-right:0}
  .themer .themer-sw{margin-right:2px}
  .top-l{gap:8px}
  .gg-cog{width:28px;height:28px}
}

/* THE THEMES. Each one is the page's ground only: cards, rows and tables keep sitting on --paper, so
   nothing is ever dark on dark. A theme's own picture for a section (js/prefs.js PICTURES) goes over
   its colours, frosted so the words on top stay easy to read. */
:root[data-gg-look="nature"]{--app-bg:linear-gradient(180deg,#E9F4EC 0%,#F1F8EF 42%,#FAFCF6 100%);--app-bg-fixed:#F1F7EF}
:root[data-gg-look="tech"]{--app-bg:linear-gradient(165deg,#ECEFFB 0%,#F2F4FC 45%,#FAFBFE 100%);--app-bg-fixed:#F1F3FB}
:root[data-gg-look="colour"]{--app-bg-fixed:#FBFBFE}
:root[data-gg-look="nature"][data-theme="dark"]{--app-bg:linear-gradient(180deg,#08170F 0%,#0D2118 40%,#132C21 100%);--app-bg-fixed:#0D2118}
:root[data-gg-look="tech"][data-theme="dark"]{--app-bg:linear-gradient(165deg,#090D1C 0%,#0F1530 45%,#151D3D 100%);--app-bg-fixed:#0F1530}
:root[data-gg-look="colour"][data-theme="dark"]{--app-bg-fixed:#0C1424}
@media (prefers-color-scheme: dark){
  :root[data-gg-look="nature"]:not([data-theme="light"]){--app-bg:linear-gradient(180deg,#08170F 0%,#0D2118 40%,#132C21 100%);--app-bg-fixed:#0D2118}
  :root[data-gg-look="tech"]:not([data-theme="light"]){--app-bg:linear-gradient(165deg,#090D1C 0%,#0F1530 45%,#151D3D 100%);--app-bg-fixed:#0F1530}
  :root[data-gg-look="colour"]:not([data-theme="light"]){--app-bg-fixed:#0C1424}
}
/* how thick the frost is over a picture: the Tech pictures are dark, so in light mode they sit under
   a thicker frost and the page stays light (Sam, 2 Nov 2026) */
:root[data-gg-look="tech"]{--gg-look-frost:84%}
:root[data-gg-look="tech"][data-theme="dark"]{--gg-look-frost:62%}
@media (prefers-color-scheme: dark){:root[data-gg-look="tech"]:not([data-theme="light"]){--gg-look-frost:62%}}
/* Picture shade (Sam, 2 Nov 2026): Light covers the picture in white, Medium shows it as it is, Dark
   covers it in black; Auto is the page's own ground. Words that sit straight on the picture (a page's
   title) turn light over Dark and get a soft shadow over Medium, so they stay easy to read. */
/* DARK MODE IS DARK OVER A PICTURE (Sam, 2 Nov 2026: "dark mode ... not dark enough"): with no shade
   chosen, dark mode covers the picture in near-black, much more than before */
:root[data-theme="dark"]:not([data-gg-shade]){--gg-shade-c:#060A12;--gg-look-frost:82%}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]):not([data-gg-shade]){--gg-shade-c:#060A12;--gg-look-frost:82%}}
/* a chosen shade always wins over a theme's own strength */
:root[data-gg-shade="light"][data-gg-shade]{--gg-shade-c:#FFFFFF;--gg-look-frost:58%}
:root[data-gg-shade="medium"][data-gg-shade]{--gg-look-frost:0%}
:root[data-gg-shade="dark"][data-gg-shade]{--gg-shade-c:#05080F;--gg-look-frost:80%}
:root[data-gg-shade="dark"][style*="--gg-look-pic"] #ggMain :is(.head,.phead) :is(h1,h2,p,a,span){color:#fff}
:root[data-gg-shade="medium"][style*="--gg-look-pic"] #ggMain :is(.head,.phead) :is(h1,h2,p,a,span){text-shadow:0 1px 3px rgba(0,0,0,.45),0 0 14px rgba(0,0,0,.25);color:#fff}
:root[style*="--gg-look-pic"] body{background-image:linear-gradient(color-mix(in srgb,var(--gg-shade-c,var(--app-bg-fixed)) var(--gg-look-frost,62%),transparent),color-mix(in srgb,var(--gg-shade-c,var(--app-bg-fixed)) var(--gg-look-frost,62%),transparent)),var(--gg-look-pic);
  background-size:cover;background-position:center;background-attachment:fixed}
/* an upright screen shows the upright slice of the same picture at full sharpness (img/looks/<look>/phone/) */
@media (max-width:900px) and (orientation:portrait){
  :root[style*="--gg-look-pic-phone"] body{background-image:linear-gradient(color-mix(in srgb,var(--gg-shade-c,var(--app-bg-fixed)) var(--gg-look-frost,62%),transparent),color-mix(in srgb,var(--gg-shade-c,var(--app-bg-fixed)) var(--gg-look-frost,62%),transparent)),var(--gg-look-pic-phone)}
}

/* THE COLOURFUL EFFECTS (Sam, 2 Nov 2026: "cool effects - not made of images, but made of colours"):
   soft pools of colour that drift slowly behind the page, in both light and dark. js/prefs.js names
   them (BACKS.colour.fx); the settings page shows each one on its own tile. */
:root{
  --fx-wash:radial-gradient(55% 55% at 8% 6%,rgba(255,120,170,.30),transparent 70%),radial-gradient(55% 55% at 92% 12%,rgba(90,150,255,.30),transparent 70%),
    radial-gradient(55% 55% at 70% 92%,rgba(80,210,140,.26),transparent 70%),radial-gradient(50% 50% at 12% 88%,rgba(255,190,80,.26),transparent 70%);
  --fx-aurora:radial-gradient(70% 50% at 20% 0%,rgba(0,220,170,.38),transparent 70%),radial-gradient(60% 55% at 85% 10%,rgba(120,90,255,.32),transparent 70%),
    radial-gradient(70% 50% at 50% 100%,rgba(0,160,255,.26),transparent 70%);
  --fx-sunset:radial-gradient(60% 55% at 10% 95%,rgba(255,120,60,.38),transparent 70%),radial-gradient(55% 55% at 60% 70%,rgba(255,70,140,.30),transparent 70%),
    radial-gradient(60% 55% at 92% 8%,rgba(150,80,255,.30),transparent 70%);
  --fx-ocean:radial-gradient(60% 60% at 0% 0%,rgba(0,150,255,.34),transparent 70%),radial-gradient(55% 60% at 100% 40%,rgba(0,210,200,.30),transparent 70%),
    radial-gradient(60% 55% at 30% 100%,rgba(40,80,220,.30),transparent 70%);
  --fx-berry:radial-gradient(55% 55% at 15% 15%,rgba(220,40,140,.32),transparent 70%),radial-gradient(55% 55% at 85% 30%,rgba(130,50,220,.32),transparent 70%),
    radial-gradient(60% 55% at 50% 100%,rgba(60,90,255,.26),transparent 70%);
  --fx-citrus:radial-gradient(55% 55% at 10% 10%,rgba(255,210,0,.34),transparent 70%),radial-gradient(55% 55% at 90% 20%,rgba(255,140,0,.30),transparent 70%),
    radial-gradient(60% 55% at 40% 100%,rgba(150,220,40,.30),transparent 70%);
  --fx-mint:radial-gradient(55% 60% at 0% 30%,rgba(60,230,170,.32),transparent 70%),radial-gradient(55% 55% at 100% 0%,rgba(80,200,255,.28),transparent 70%),
    radial-gradient(60% 55% at 70% 100%,rgba(120,240,200,.30),transparent 70%);
  --fx-neon:radial-gradient(55% 55% at 0% 0%,rgba(0,255,240,.34),transparent 70%),radial-gradient(55% 55% at 100% 100%,rgba(255,0,200,.32),transparent 70%),
    radial-gradient(50% 50% at 100% 0%,rgba(120,0,255,.28),transparent 70%);
}
:root[data-gg-look="colour"]{--app-bg:linear-gradient(var(--app-bg-fixed),var(--app-bg-fixed))}
:root[data-gg-look="colour"] body::after{content:"";position:fixed;inset:-12%;z-index:-2;pointer-events:none;background:var(--gg-fx,var(--fx-wash));
  animation:gg-fx-drift 48s ease-in-out infinite alternate}
:root[data-gg-fx="aurora"]{--gg-fx:var(--fx-aurora)}
:root[data-gg-fx="sunset"]{--gg-fx:var(--fx-sunset)}
:root[data-gg-fx="ocean"]{--gg-fx:var(--fx-ocean)}
:root[data-gg-fx="berry"]{--gg-fx:var(--fx-berry)}
:root[data-gg-fx="citrus"]{--gg-fx:var(--fx-citrus)}
:root[data-gg-fx="mint"]{--gg-fx:var(--fx-mint)}
:root[data-gg-fx="neon"]{--gg-fx:var(--fx-neon)}
@keyframes gg-fx-drift{0%{transform:translate(0,0) scale(1)}50%{transform:translate(3%,-2%) scale(1.06)}100%{transform:translate(-3%,2%) scale(1.03) rotate(2deg)}}
@media (prefers-reduced-motion: reduce){:root[data-gg-look="colour"] body::after{animation:none}}

/* THE THEMES ON THE SETTINGS PAGE: each theme a strip of its backgrounds, side to side (Sam, 2 Nov 2026) */
.gg-set-who{display:flex;align-items:center;gap:12px;margin:0 0 16px;padding:12px 16px;border:1px solid var(--hair);border-left:3px solid var(--primary);
  background:var(--glass);color:var(--ink-2);font-size:14px;line-height:1.45}
.gg-set-who svg{width:22px;height:22px;flex:0 0 22px;fill:none;stroke:var(--primary);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.gg-set-who b{color:var(--ink)}
.gg-set-cars{display:flex;flex-direction:column;gap:14px;min-width:0}
.gg-set-car{min-width:0;padding:12px;border:1px solid var(--hair);background:var(--glass)}
.gg-set-car.is-on{border-color:var(--primary);box-shadow:0 0 0 1px var(--primary)}
.gg-set-car-head{display:flex;align-items:baseline;gap:10px;margin-bottom:10px}
.gg-set-car-head b{color:var(--ink);font-size:14px;font-weight:600}
.gg-set-car-head b i{font-style:normal;font-weight:500;font-size:11px;color:var(--ink-3);margin-left:4px}
.gg-set-car-head > span{color:var(--ink-3);font-size:12.5px}
.gg-set-car-nav{margin-left:auto;display:inline-flex;gap:4px;align-self:center}
.gg-set-car-go{width:28px;height:28px;border:1px solid var(--hair);background:var(--glass-ctl);color:var(--ink-2);font-size:18px;line-height:1}
.gg-set-car-go:hover{color:var(--ink);background:var(--paper-2)}
.gg-set-strip{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:thin;padding-bottom:6px}
.gg-set-tile{position:relative;flex:0 0 132px;height:80px;padding:0;border:1px solid var(--hair);background:var(--paper-2) center/cover no-repeat;
  scroll-snap-align:start;overflow:hidden;text-align:left}
.gg-set-tile:hover{border-color:var(--ink-3)}
.gg-set-tile[aria-checked="true"]{outline:3px solid var(--primary);outline-offset:-3px}
.gg-set-tile > span{position:absolute;left:0;right:0;bottom:0;padding:4px 7px;color:var(--ink);font-size:11.5px;font-weight:600;line-height:1.3}
.gg-set-tile[style*="background-image"] > span{width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0 0 0 0)}
.gg-set-tile--mix[data-look="plain"]{background:linear-gradient(180deg,#E6EEF7,#F7FAFD)}
.gg-set-tile--mix[data-look="nature"]{background:linear-gradient(160deg,#CFE8D5,#EEF7E8 60%,#F8FBF2)}
.gg-set-tile--mix[data-look="tech"]{background:linear-gradient(165deg,#0F1530,#1B2B5E)}
.gg-set-tile--mix[data-look="tech"] > span{color:#FFFFFF}
.gg-set-tile--mix[data-look="plain"] > span,.gg-set-tile--mix[data-look="nature"] > span{color:#1D2939}
.gg-set-tile[data-fx]{background:var(--fx-wash),var(--paper)}
.gg-set-tile[data-fx="aurora"]{background:var(--fx-aurora),var(--paper)}
.gg-set-tile[data-fx="sunset"]{background:var(--fx-sunset),var(--paper)}
.gg-set-tile[data-fx="ocean"]{background:var(--fx-ocean),var(--paper)}
.gg-set-tile[data-fx="berry"]{background:var(--fx-berry),var(--paper)}
.gg-set-tile[data-fx="citrus"]{background:var(--fx-citrus),var(--paper)}
.gg-set-tile[data-fx="mint"]{background:var(--fx-mint),var(--paper)}
.gg-set-tile[data-fx="neon"]{background:var(--fx-neon),var(--paper)}
/* Your photos (js/prefs.js): Add photos at the end of the strip, and the picker in the side panel */
.gg-set-tile--add{display:flex;align-items:center;justify-content:center;border-style:dashed;background:var(--glass);color:var(--ink-2)}
.gg-set-tile--add > span{position:static;padding:0;font-size:13px;color:inherit}
.gg-set-tile--add > span::before{content:"+";display:block;font-size:22px;font-weight:400;line-height:1;text-align:center}
.gg-set-tile--add:hover{color:var(--ink);border-color:var(--primary)}
.gg-own{display:flex;flex-direction:column;gap:12px;min-height:0}
.gg-own-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.gg-own-n{margin-right:auto;color:var(--ink);font-weight:600}
.gg-own-up{cursor:pointer}
.gg-own-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px}
.gg-own-tile{position:relative;aspect-ratio:16/10;padding:0;border:1px solid var(--hair);background:var(--paper-2);overflow:hidden}
.gg-own-tile img{display:block;width:100%;height:100%;object-fit:cover}
.gg-own-tile[aria-pressed="true"]{outline:3px solid var(--primary);outline-offset:-3px}
.gg-own-tile[aria-pressed="true"]::after{content:"\2713";position:absolute;top:6px;right:6px;width:22px;height:22px;display:grid;place-items:center;
  background:var(--primary);color:#fff;font-size:13px;font-weight:600}
.gg-own-none{grid-column:1/-1;color:var(--ink-3)}

/* THE LAYOUT PREVIEWS: a small laptop beside each Layout setting, showing it as it is set (Sam, 2 Nov 2026) */
.gg-set-row.gg-set-row--vis{grid-template-columns:220px minmax(0,1fr) 210px}
.gg-set-ctl{min-width:0}
.gg-set-vis{justify-self:end;padding:0 14px 14px}
.gg-vis-lap{position:relative;width:180px}
.gg-vis-lap::after{content:"";position:absolute;left:-14px;right:-14px;bottom:-9px;height:7px;background:var(--reverse);opacity:.85}
.gg-vis{position:relative;height:110px;padding:15px 7px 6px;border:5px solid var(--reverse);border-bottom-width:6px;background:var(--app-bg-fixed);overflow:hidden}
.gg-vis::before{content:"";position:absolute;left:0;right:0;top:0;height:8px;background:var(--paper);border-bottom:1px solid var(--hair)}
.gg-vis-body{margin:0 auto;transition:width .25s}
.gg-vis-cards{display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:3px}
.gg-vis-card{display:block;height:30px;border:1px solid var(--hair);background:linear-gradient(color-mix(in srgb,var(--primary) 30%,var(--paper)) 0 50%,var(--paper) 50%)}
.gg-vis-list{display:flex;flex-direction:column;gap:3px}
.gg-vis-row{display:block;height:9px;border:1px solid var(--hair);background:var(--paper)}
.gg-vis-view.is-both{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:start}
.gg-vis-view.is-both .gg-vis-card{height:22px}
/* (Sam, 2 Nov 2026: "Grids need to be darkened and possibly a bit blur ... currently this is not visible
   at all: Page width") the preview's page is darker, the part the grid uses is a shaded band so its
   width shows, and the cards and rows have a firm edge */
.gg-vis{background:color-mix(in srgb,var(--ink) 14%,var(--paper-2))}
.gg-vis-page .gg-vis-body{padding:4px;background:color-mix(in srgb,var(--ink) 28%,var(--paper-2));backdrop-filter:blur(2px)}
.gg-vis-card,.gg-vis-row{border-color:color-mix(in srgb,var(--ink) 35%,transparent)}
.gg-vis-card{background:linear-gradient(color-mix(in srgb,var(--primary) 55%,var(--paper)) 0 50%,var(--paper) 50%)}

/* GRIDS AND TABLES OVER A PICTURE (Sam, 2 Nov 2026: "Grids need to be darkened and possibly a bit
   blur"): with a theme's picture behind the page, a grid or table sits on a frosted band of the page's
   own colour, dark in dark and light in light, so it stands clear of the picture and its width shows;
   a card grid has none, its cards stand on their own (Sam: "card grid doesn't need an opaque background") */
/* 2.8.288 (Sam, 13 Nov 2026: "the dark background, with the small band at the top, looks shit"; design A1 from the
   canvas): the band is gone. It covered everything under a page's title, so only a strip of the picture showed at the top
   and a List or Table looked nothing like the same page's Grid. The picture now runs behind the whole page in every view;
   the table is one glass panel of its own and the List's rows are glass (css/8-grid-list.css) */
:root[style*="--gg-look-pic"] .gg-gl:not(.gg-vis *):not(.gg-gl--grid){padding-top:10px;padding-bottom:10px}

/* CARDS ACROSS AND PAGE WIDTH, each person's own (js/grid-list.js reads both) */
html:root[data-gg-across="4"] .gg-gl .gg-gl-cards.grid{--grid-cols:4}
html:root[data-gg-across="5"] .gg-gl .gg-gl-cards.grid{--grid-cols:5}
html:root[data-gg-across="fill"] .gg-gl .gg-gl-cards.grid{--grid-cols:12}
@media(min-width:1241px){
  html:root[data-gg-across="4"] .grid:not(.gg-gl-cards){--grid-cols:4}
  html:root[data-gg-across="5"] .grid:not(.gg-gl-cards){--grid-cols:5}
}
/* Page width is a percentage of the window, read by js/grid-list.js from data-gg-width */
.gg-set-range{display:flex;align-items:center;gap:14px;max-width:360px}
.gg-set-range input{flex:1 1 auto;min-width:0;accent-color:var(--primary);cursor:pointer}
.gg-set-range output{flex:0 0 48px;text-align:right;color:var(--ink);font-weight:600;font-size:14px;font-variant-numeric:tabular-nums}

/* THE SETTINGS PAGE: one column, a row per setting, the label on the left and its choices on the right */
.gg-set{max-width:var(--gg-set-w,1000px);margin:0 auto}
.gg-set .head p b{color:var(--ink)}
/* the tabs stand clear of the settings under them, on both apps (Sam, 2 Nov 2026: "need padding underneath") */
#ggMain .gg-set .tabs{margin:0 auto 28px}
.gg-set-card{border:1px solid var(--hair);background:var(--glass)}
.gg-set-row{display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px;padding:20px 22px;border-bottom:1px solid var(--hair);align-items:start}
.gg-set-row:last-child{border-bottom:0}
.gg-set-lab b{display:block;color:var(--ink);font-size:15px;font-weight:600}
.gg-set-lab span{display:block;color:var(--ink-3);font-size:13px;line-height:1.45;margin-top:3px}
/* a setting's name with the kit's ? beside it (2.8.47): the ? keeps its own small square, not a grey line's look */
.gg-set-lab .ggtip-q span{display:inline;margin:0;color:inherit;font-size:10.5px}
.gg-set-who .ggtip-q,.gg-set-foot .ggtip-q{margin-top:0;vertical-align:middle}
.gg-set-seg{display:inline-flex;flex-wrap:wrap;border:1px solid var(--hair)}
.gg-set-seg button{padding:0 16px;height:34px;font-size:13.5px;color:var(--ink-2);border-right:1px solid var(--hair);text-align:center}
.gg-set-seg button:last-child{border-right:0}
.gg-set-seg button:hover{color:var(--ink);background:var(--paper-2)}
.gg-set-seg button[aria-checked="true"]{background:var(--primary);color:var(--on-primary);font-weight:600}
.gg-set-sel,.gg-set-in{height:36px;min-width:260px;max-width:100%;padding:0 10px;border:1px solid var(--hair);background:var(--glass-ctl);color:var(--ink);font:inherit;font-size:14px}
.gg-set-note{color:var(--ink-3);font-size:13.5px;margin-bottom:10px}
.gg-set-foot{margin-top:16px;text-align:center}
@media(max-width:700px){
  .gg-set-row{grid-template-columns:1fr;gap:10px;padding:16px}
  .gg-set-row.gg-set-row--vis{grid-template-columns:1fr}
  .gg-set-vis{justify-self:start}
  .gg-set-sel,.gg-set-in{min-width:0;width:100%}
}

/* Appearance (first Brand Styles): each person's own zoom, text size, icons, fonts and colour scheme (Sam, 3 Nov 2026: "a Brand Styles
   tab - where you can choose fonts, and colourscheme etc"; "zoom, font size, etc...on a per user basis"; "switch icons on
   and off everywhere"). js/prefs.js and the server put each choice on <html> as data-gg-<choice>; these lay it over the
   kit's own (the fonts are in css/7-type.css). Zoom is <html>'s own zoom; text size is --gg-fsa, every text that
   share bigger (font-size-adjust), so no box is redrawn. */
html:root[data-gg-size],html:root[data-gg-size] *,html:root[data-gg-size] *::before,html:root[data-gg-size] *::after{font-size-adjust:var(--gg-fsa,none)}
html:root[data-gg-icons="hidden"] :is([role="tab"],.megap-link,.top:not(.is-icons) .nav a:not(.gg-cog),#ggMain .head h1) svg{display:none!important}
html:root[data-gg-icons="hidden"] :is(.gg-rf-ic,.gg-ev .gg-fact-ic){display:none!important}
html:root[data-gg-scheme="teal"]{--primary:#0B6E6E;--on-primary:#FFFFFF}
@media (prefers-color-scheme:dark){html:root[data-gg-scheme="teal"]:not([data-theme="light"]){--primary:#6FD3C9;--on-primary:#0E1C2E}}
html:root[data-gg-scheme="teal"][data-theme="dark"]{--primary:#6FD3C9;--on-primary:#0E1C2E}
html:root[data-gg-scheme="forest"]{--primary:#1F5C3A;--on-primary:#FFFFFF}
@media (prefers-color-scheme:dark){html:root[data-gg-scheme="forest"]:not([data-theme="light"]){--primary:#8FD6A8;--on-primary:#0E1C2E}}
html:root[data-gg-scheme="forest"][data-theme="dark"]{--primary:#8FD6A8;--on-primary:#0E1C2E}
html:root[data-gg-scheme="plum"]{--primary:#5B2A6E;--on-primary:#FFFFFF}
@media (prefers-color-scheme:dark){html:root[data-gg-scheme="plum"]:not([data-theme="light"]){--primary:#D2A6E8;--on-primary:#0E1C2E}}
html:root[data-gg-scheme="plum"][data-theme="dark"]{--primary:#D2A6E8;--on-primary:#0E1C2E}
html:root[data-gg-scheme="rust"]{--primary:#8A3B12;--on-primary:#FFFFFF}
@media (prefers-color-scheme:dark){html:root[data-gg-scheme="rust"]:not([data-theme="light"]){--primary:#F2A57A;--on-primary:#0E1C2E}}
html:root[data-gg-scheme="rust"][data-theme="dark"]{--primary:#F2A57A;--on-primary:#0E1C2E}
html:root[data-gg-scheme="charcoal"]{--primary:#2B2F36;--on-primary:#FFFFFF}
@media (prefers-color-scheme:dark){html:root[data-gg-scheme="charcoal"]:not([data-theme="light"]){--primary:#C9CED6;--on-primary:#0E1C2E}}
html:root[data-gg-scheme="charcoal"][data-theme="dark"]{--primary:#C9CED6;--on-primary:#0E1C2E}
/* your own colour: --gg-own on <html>, a lighter shade of it on dark pages */
html:root[data-gg-scheme="own"]{--primary:var(--gg-own,#022F42);--on-primary:#FFFFFF}
@media (prefers-color-scheme:dark){html:root[data-gg-scheme="own"]:not([data-theme="light"]){--primary:color-mix(in srgb,var(--gg-own,#022F42) 45%,#FFFFFF);--on-primary:#0E1C2E}}
html:root[data-gg-scheme="own"][data-theme="dark"]{--primary:color-mix(in srgb,var(--gg-own,#022F42) 45%,#FFFFFF);--on-primary:#0E1C2E}
.gg-set-own{margin:12px 0 0}
.gg-set-foot .btn + .btn{margin-left:8px}
/* the Appearance tab's own controls: sliders with minus, plus and a number; drop-downs with a search box */
.gg-ap-num{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.gg-ap-num input[type=range]{flex:1 1 220px;min-width:160px;accent-color:var(--primary)}
.gg-ap-num .gg-ap-step{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--hair);background:var(--glass-ctl);color:var(--ink);font-size:18px;line-height:1;cursor:pointer}
.gg-ap-num .gg-ap-step:hover{border-color:var(--primary)}
.gg-ap-num label{display:inline-flex;align-items:center;gap:4px;color:var(--ink-3)}
.gg-ap-num input[type=number]{width:72px;height:34px;padding:0 8px;border:1px solid var(--hair);background:var(--glass-ctl);color:var(--ink);font:inherit;text-align:right}
.gg-ap-num .gg-ap-usual{font-size:12px;color:var(--ink-3);background:none;border:0;text-decoration:underline;cursor:pointer;padding:0 4px}
.gg-ap-dd{position:relative;max-width:420px}
.gg-ap-dd > button{width:100%;min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 12px;border:1px solid var(--hair);background:var(--glass-ctl);color:var(--ink);cursor:pointer;font-size:16px;text-align:left}
.gg-ap-dd > button:hover{border-color:var(--primary)}
.gg-ap-dd > button svg{width:14px;height:14px;flex:0 0 14px;fill:none;stroke:currentColor;stroke-width:2}
.gg-ap-opt{flex:1 1 auto;min-width:0;display:flex;align-items:baseline;justify-content:space-between;gap:12px;color:var(--ink)}
.gg-ap-opt .n{font-size:18px;line-height:1.25}
.gg-ap-opt .n.gg-ap-n-sm{font-size:15px}
.gg-ap-opt .s{font-size:13px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gg-ap-sw{display:inline-block;width:16px;height:16px;margin-right:9px;vertical-align:-2px;border:1px solid rgba(0,0,0,.15)}
/* SETTINGS' TABS: ONE ROW, NEVER WRAPPED, NEVER A SLIDER (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"). The row may reach past Settings' column; the
   rule for every tab row is in css/6-polish.css */
#ggMain .gg-set .tabs.tabs,.gg-set .tabs.tabs{display:flex;flex-wrap:nowrap;justify-content:center;overflow:visible}
/* TAB SIZE AND SPACING, each person's own (Appearance; Sam, 3 Nov 2026: "tab size should be something you can tweak on
   here ... tabs are currently very small"; "generally spacing - compact, spacious, etc"). Tab size only makes the tabs
   bigger: the one-row rule (css/6-polish.css) is untouched, and a phone still shows a long row as icons. Spacing moves
   the kit's own spacing numbers: the space a screen opens with, under a toolbar, round a tab row, and between cards. */
html:root[data-gg-tabsize="medium"] .tabs :is(a,button){font-size:13.5px;padding:7px 15px}
html:root[data-gg-tabsize="medium"] .tabs :is(a,button) svg{width:15px;height:15px;flex-basis:15px}
html:root[data-gg-tabsize="large"] .tabs :is(a,button){font-size:15px;padding:10px 19px;gap:9px}
html:root[data-gg-tabsize="large"] .tabs :is(a,button) svg{width:17px;height:17px;flex-basis:17px}
@media(min-width:900px){
  html:root[data-gg-tabsize="medium"] .tabs > :is(a,button){min-width:120px}
  html:root[data-gg-tabsize="large"] .tabs > :is(a,button){min-width:136px}
}
html:root[data-gg-space="compact"]{--gap-top:16px;--gap-bar:10px;--tabs-space:10px}
html:root[data-gg-space="compact"] .grid{--grid-gap:14px}
html:root[data-gg-space="spacious"]{--gap-top:46px;--gap-bar:28px;--tabs-space:26px}
html:root[data-gg-space="spacious"] .grid{--grid-gap:42px}

/* THE GLASS SLIDER (16 Nov 2026, HQ project "Workspace pages: glass slider, sensible views, automations linked"): each person's
   Settings, Display, Glass sets data-gg-glass on <html>, 0 (nearly solid) to 100 (clearest), 50 the usual. --gg-k scales how
   opaque every glass surface is: the tokens above, .gg-glass, and the lists' cards, tables and rows (css/8-grid-list.css) */
:root[data-gg-glass="0"]{--gg-k:1.4}:root[data-gg-glass="10"]{--gg-k:1.32}:root[data-gg-glass="20"]{--gg-k:1.24}:root[data-gg-glass="30"]{--gg-k:1.16}:root[data-gg-glass="40"]{--gg-k:1.08}:root[data-gg-glass="60"]{--gg-k:0.92}:root[data-gg-glass="70"]{--gg-k:0.84}:root[data-gg-glass="80"]{--gg-k:0.76}:root[data-gg-glass="90"]{--gg-k:0.68}:root[data-gg-glass="100"]{--gg-k:0.6}
