/* =====================================================================================================
   glass_app.css

   The glass look of the website editor, for every page a customer sees (docs/glass_ui/PROJECT.md).
   Loaded by elements/web_app_head.html (and by the few pages with their own head that include the nav).
   The editor's own sheet is website_editor/_partials/_glass.html; this file copies its layers 1 and 2 under
   the SAME custom property names and values, and home/tests_glass_app.py checks that they still match, so
   the two never drift. The editor does not load this file.

   HOW TO USE THIS FILE (for Jake)
   The file has seven parts, in this order:
     1. BASE VALUES   colours, corner radii, blur strengths, shadows, once each (--gl-pen, --gl-r-panel ...).
     2. MATERIALS     each kind of surface as a set of properties built from the base values:
                        desk     the page background (cool white-blue, cyan light top right, blue bottom left)
                        panel    the floating nav rail, the phone Menu              (blur, lit rim)
                        bar      the phone's capsule dock, a sticky top bar         (blur, lit rim)
                        sheet    dialogs                                            (blur, frosted near white)
                        float    toasts and tooltips                                (blur)
                        ink-bar  Pixlel's own notices: the blue banner              (blur)
                        cell     cards, tiles, rows. No blur.
                        well     the small tinted square an icon sits in
                        jewel    the one primary action on a screen (pen-blue glass)
                        key      secondary buttons: clear glass, pen-blue icon, ink words
                        chip     round icon buttons (close, more)
                        field    text boxes
                        on       a selected row, tab or card: tint + a 2 px pen ring (shape, not hue alone)
                        recess   a track pressed into a surface: tabs, the Menu's quiet strip
                        danger   red outline + the icon of the act; solid red for the final yes
                        accent   a second action that is Pixlel's own (light blue, pen ring)
                        scrim    the dim behind a sheet
                      and, under --gx- names, the few values only the app pages have (frostier bars, the solid
                      focus ring, the lighter field shadow on a card, the 72% card for text-heavy pages).
     3. COMPONENTS    the gx- classes pages use (gx-card, gx-btn, gx-key, gx-field ...). One rule per component.
     4. THE SHELL     the one nav (user/user_nav.html): the desktop rail, the phone dock and its Menu.
     5. PAGE ROOM     what keeps every page clear of the nav, old pages included, without editing them.
     6. THE REMAP     today's Tailwind colour classes (bg-brand-black, bg-warm-beige ...) drawn as glass, so a
                      page that has not had its own pass yet already looks close. It shrinks as pages move to gx-.
     7. SHARED PAGE PARTS  rules a few owner pages share (the messages stack, the search's clear chip, the
                      store notice and order badges, a message and a chat, a contact's form, the referral
                      dashboards), kept once here instead of copied into each page's <style>.

   To change how every element of one kind looks (all cards, all buttons), change the material in part 2.
   To make ONE element different, set one of the material's properties on that element only, for example:
       .gx-card.my-big-card { --gl-cell-r: 22px; }
   The custom properties are read where they are used, so one line on one element changes only that element.

   RULES THE FILE KEEPS (docs/pixel_guide/build/20_glass.md)
   - Blur (backdrop-filter) only on floating surfaces: panel, bar, sheet, float, ink-bar. Never on a card or
     anything inside a floating surface (no glass on glass; an old phone draws every blur each frame).
   - The lit edge of glass is a thin ring drawn by a mask (::after), brightest top left and bottom right.
   - Where the browser has no backdrop-filter, or the phone asks for less transparency, the FALLBACKS blocks
     turn every material opaque; nothing else changes.
   - Black is for words only (headings, body text, the logo). Nothing is filled black.
   - Every state differs by shape, ring or weight as well as colour (Jake is colour-blind).
   - No url() to a file (collectstatic fails on a missing target); the only url() is an inline data: icon.

   WHY SOME SELECTORS START WITH "html"
   The pages load Tailwind from its CDN, which writes its own style block after this file. A rule there with
   the same weight as one here would win (its reset clears the background of every button, for one). So the
   rules here that must hold start with "html", which outweighs it wherever the two meet.
   ===================================================================================================== */

/* =====================================================================================================
   1. BASE VALUES  (same names and values as _glass.html layer 1; the test lists the two that differ on purpose)
   ===================================================================================================== */
:root {
    /* Pixlel blue: pen blue for what is on and what to do next, light blue for its tints, cyan for light */
    --gl-pen: #2B44B0;
    --gl-blue: #4D66DD;
    --gl-blue-hi: #5C74E8;
    --gl-cyan: #7FDDF7;
    --gl-cyan-edge: rgba(150, 228, 255, .95);
    --gl-tint: #EEF1FC;
    --gl-tint-line: #D9DFF8;
    /* words stay dark */
    --gl-ink: #1A1A1A;
    --gl-ink-2: #3F4454;           /* second lines, small words */
    --gl-ink-3: #8A8F9E;           /* chevrons only, never words */
    --gl-ink-soft: #464E68;
    --gl-dim: #8B8780;
    --gl-dim-line: #BDB6AA;
    --gl-paper: #FFFEF9;
    /* the lit edge of glass: brightest top left and bottom right */
    --gl-rim: linear-gradient(135deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .3) 28%, rgba(255, 255, 255, .06) 55%, rgba(255, 255, 255, .6) 100%);
    --gl-rim-w: 1.2px;
    --gl-hair: 1px solid rgba(43, 68, 176, .12);
    --gl-halo: #F7F8FD;            /* the opaque ring round the badges */
    /* space */
    --gl-gap: 8px;
    --gl-safe-b: env(safe-area-inset-bottom, 0px);                 /* app pages only: the editor measures its own */
    --gl-lift: max(var(--gl-gap), calc(var(--gl-safe-b) - 14px));  /* DIFFERS: the editor reads --pxg-safe-b here */
    /* corners */
    --gl-r-bar: 34px;
    --gl-r-tab: 28px;              /* a dock key: the capsule's 34 less the 6 px of bar round it */
    --gl-r-panel: 30px;
    --gl-r-banner: 28px;
    --gl-r-cell: 16px;
    --gl-r-card: 14px;
    --gl-r-well: 13px;
    --gl-r-bubble: 20px;
    --gl-r-field: 14px;            /* DIFFERS: the editor's 28 is its chat box; forms are denser (style rule T9) */
    --gl-r-float: 22px;
    /* blur */
    --gl-blur-bar: blur(22px) saturate(180%);
    --gl-blur-panel: blur(20px) saturate(185%) contrast(.82) brightness(1.1);
    --gl-blur-ink: blur(14px) saturate(190%);
    --gl-blur-float: blur(14px) saturate(190%);
    /* shadows */
    --gl-lift-sm: 0 1px 4px rgba(16, 24, 64, .08);
    --gl-lift-md: 0 2px 8px rgba(16, 24, 64, .08);
    --gl-lift-lg: 0 12px 32px rgba(16, 24, 64, .24);
    --gl-lift-xl: 0 20px 50px rgba(16, 24, 64, .27);
    --gl-blue-glow: 0 6px 16px rgba(43, 68, 176, .38);
}

/* =====================================================================================================
   2. MATERIALS  (same names and values as _glass.html layer 2, plus the desk from its DESKTOP section)
   ===================================================================================================== */
:root {
    /* desk: the page background. Glass reads only over something, so this comes first. */
    --gl-desk-bg:
        radial-gradient(1000px 560px at 100% 0%, rgba(127, 221, 247, .34), rgba(127, 221, 247, 0) 70%),
        radial-gradient(900px 640px at 0% 100%, rgba(77, 102, 221, .24), rgba(77, 102, 221, 0) 70%),
        radial-gradient(760px 520px at 42% 48%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 72%),
        radial-gradient(circle, rgba(43, 68, 176, .10) 1px, transparent 1.2px) 0 0 / 20px 20px,
        linear-gradient(160deg, #F4F6FD 0%, #E9EEFA 55%, #E2E9F9 100%);

    /* bar: the capsule dock, a sticky top bar */
    --gl-bar-bg: rgba(255, 255, 255, .6);
    --gl-bar-blur: var(--gl-blur-bar);
    --gl-bar-shadow: var(--gl-lift-lg), inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 -10px 18px -12px rgba(43, 68, 176, .22);
    --gl-bar-edge: var(--gl-rim);
    --gl-bar-r: var(--gl-r-bar);

    /* ink-bar: Pixlel's own notices */
    --gl-ink-bar-bg: linear-gradient(180deg, rgba(58, 80, 199, .8), rgba(43, 68, 176, .84));
    --gl-ink-bar-blur: var(--gl-blur-ink);
    --gl-ink-bar-shadow: 0 10px 28px rgba(16, 24, 64, .3), inset 0 1px 0 rgba(255, 255, 255, .4);
    --gl-ink-bar-edge: var(--gl-rim);
    --gl-ink-bar-r: var(--gl-r-banner);

    /* panel: the nav rail, the phone Menu */
    --gl-panel-bg: linear-gradient(180deg, rgba(246, 248, 255, .64), rgba(246, 248, 255, .56));
    --gl-panel-blur: var(--gl-blur-panel);
    --gl-panel-shadow: var(--gl-lift-xl), inset 0 1.5px 0 rgba(255, 255, 255, .88), inset 0 0 22px rgba(255, 255, 255, .22);
    --gl-panel-edge: var(--gl-rim);
    --gl-panel-r: var(--gl-r-panel);
    --gl-panel-head-line: var(--gl-hair);
    --gl-panel-line: rgba(255, 255, 255, .72);

    /* cell: cards, tiles, rows. No blur. */
    --gl-cell-bg: rgba(255, 255, 255, .6);
    --gl-cell-border: 1px solid rgba(255, 255, 255, .9);
    --gl-cell-shadow: var(--gl-lift-sm);
    --gl-cell-r: var(--gl-r-cell);

    /* well: the small tinted square an icon sits in */
    --gl-well-bg: rgba(238, 241, 252, .9);
    --gl-well-border: 1px solid rgba(43, 68, 176, .16);
    --gl-well-r: var(--gl-r-well);

    /* jewel: the one primary action. The dock key's glass in solid pen blue; white words measure 6:1 on it. */
    --gl-jewel-color: var(--gl-pen);
    --gl-jewel-bg: linear-gradient(180deg, #5270E0 0%, #3852C6 50%, #2B44B0 100%);
    --gl-jewel-shadow: inset 0 0 7px 1.5px rgba(150, 196, 255, .50), inset 0 2px 1.5px -1px rgba(255, 255, 255, .9), inset 0 -2.5px 1.5px -1px rgba(150, 228, 255, .6),
                       0 .5px 0 .5px rgba(20, 32, 100, .30), 0 2px 3px rgba(27, 42, 120, .26), 0 8px 14px -4px rgba(43, 68, 176, .60);
    --gl-jewel-shadow-sm: inset 0 0 5px 1px rgba(150, 196, 255, .45), inset 0 1.5px 1px -.5px rgba(255, 255, 255, .85), inset 0 -2px 1px -1px rgba(150, 228, 255, .55),
                          0 .5px 0 .5px rgba(20, 32, 100, .28), 0 2px 3px rgba(27, 42, 120, .22), 0 5px 10px -3px rgba(43, 68, 176, .50);
    --gl-jewel-fg: #fff;
    --gl-jewel-rim: linear-gradient(150deg, #fff 0%, rgba(190, 236, 255, .85) 24%, rgba(255, 255, 255, .16) 50%, rgba(255, 255, 255, .16) 65%, rgba(170, 228, 255, .85) 100%);
    --gl-jewel-rim-w: 1.2px;

    /* chip: round icon buttons */
    --gl-chip-bg: rgba(255, 255, 255, .72);
    --gl-chip-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(43, 68, 176, .14), 0 2px 6px rgba(16, 24, 64, .1);
    --gl-chip-fg: var(--gl-pen);

    /* field: text boxes */
    --gl-field-bg: rgba(255, 255, 255, .8);
    --gl-field-border: 1px solid rgba(255, 255, 255, .95);
    --gl-field-shadow: 0 4px 16px rgba(16, 24, 64, .12), inset 0 1px 0 #fff;
    --gl-field-focus: 0 4px 16px rgba(16, 24, 64, .12), inset 0 1px 0 #fff, 0 0 0 2px rgba(77, 102, 221, .45);
    --gl-field-r: var(--gl-r-field);

    /* scrim: the page behind an open sheet. Deep (30% navy, a slight blur) behind anything that asks a question. */
    --gl-scrim: rgba(28, 40, 96, .14);
    --gl-scrim-deep: rgba(20, 30, 80, .3);
    --gl-scrim-blur: blur(3px);

    /* on: selected. Differs from off by its ring, not by its tint alone. */
    --gl-on-bg: rgba(238, 241, 252, .9);
    --gl-on-ring: inset 0 0 0 2px var(--gl-pen);

    /* float: toasts and tooltips */
    --gl-float-bg: rgba(255, 255, 255, .7);
    --gl-float-blur: var(--gl-blur-float);
    --gl-float-border: 1px solid rgba(255, 255, 255, .8);
    --gl-float-shadow: 0 8px 24px rgba(16, 24, 64, .2), inset 0 1px 0 #fff;
    --gl-float-r: var(--gl-r-float);

    /* sheet: a dialog, or a floating surface full of small words: the panel frosted closer to white */
    --gl-sheet-bg: linear-gradient(180deg, rgba(249, 250, 255, .9), rgba(244, 246, 254, .87));
    --gl-sheet-blur: blur(24px) saturate(170%);
    --gl-sheet-shadow: var(--gl-panel-shadow);
    --gl-sheet-r: var(--gl-r-panel);

    /* danger: a restrained red, always with an icon and an outline (off) or a fill (the final yes) */
    --gl-danger-fg: #B42318;
    --gl-danger-bg: rgba(255, 244, 243, .86);
    --gl-danger-line: rgba(180, 35, 24, .38);
    --gl-danger-fill: linear-gradient(180deg, #C8372A, #A61F14);
    --gl-danger-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 3px 10px rgba(166, 31, 20, .3);

    /* accent: a second action that is Pixlel's, beside or below the jewel */
    --gl-accent-bg: var(--gl-tint);
    --gl-accent-fg: var(--gl-pen);
    --gl-accent-ring: inset 0 0 0 1.5px rgba(43, 68, 176, .42);

    /* key: clear glass. Body nearly clear, edge lit unevenly, a lip at the foot, a soft pen-navy shadow. No blur. */
    --gl-key-bg: linear-gradient(180deg, rgba(255, 255, 255, .30) 0%, rgba(255, 255, 255, .12) 55%, rgba(255, 255, 255, .22) 100%);
    --gl-key-shadow: inset 0 0 7px 1.5px rgba(255, 255, 255, .62), inset 0 2px 1.5px -1px #fff, inset 0 -2.5px 1.5px -1px rgba(255, 255, 255, .8),
                     0 .5px 0 .5px rgba(27, 42, 120, .10), 0 2px 3px rgba(27, 42, 120, .14), 0 8px 14px -4px rgba(27, 42, 120, .30);
    --gl-key-rim: linear-gradient(150deg, #fff 0%, rgba(255, 255, 255, .8) 25%, rgba(255, 255, 255, .3) 50%, rgba(255, 255, 255, .3) 65%, rgba(255, 255, 255, .85) 100%);
    --gl-key-rim-w: 1.2px;
    --gl-key-icon: var(--gl-pen);
    --gl-key-fg: var(--gl-ink);
    --gl-key-r: var(--gl-r-tab);
    --gl-key-pri-bg: var(--gl-jewel-bg);
    --gl-key-pri-shadow: var(--gl-jewel-shadow);
    --gl-key-pri-rim: var(--gl-jewel-rim);
    --gl-key-pri-fg: var(--gl-jewel-fg);
    /* key-on: a pressed or current key: tinted glass, its ring drawn inside it */
    --gl-key-on-bg: linear-gradient(180deg, rgba(240, 243, 253, .96), rgba(224, 230, 250, .84));
    --gl-key-on-ring: inset 0 0 0 2px var(--gl-pen);
    --gl-key-on-shadow: inset 0 2px 1.5px -1px #fff, 0 2px 3px rgba(27, 42, 120, .14), 0 6px 12px -4px rgba(43, 68, 176, .30);

    /* recess: a track pressed into a surface */
    --gl-recess-bg: rgba(43, 68, 176, .075);
    --gl-recess-shadow: inset 0 1px 2px rgba(27, 42, 120, .12), inset 0 0 0 1px rgba(43, 68, 176, .06), 0 1px 0 rgba(255, 255, 255, .7);
    --gl-recess-r: 26px;
    --gl-recess-fg: #2A2F3F;

    /* ---- not in the editor's sheet: only the app pages have these ---- */
    /* small labels (style rule T7): 5.6:1 on the desk's lightest card */
    --gl-label: #5B6275;
    /* warning keeps its meaning (style rule T10), always with an icon */
    --gl-warn-fg: #8A4B00;
    --gl-warn-bg: rgba(255, 247, 230, .9);
    --gl-warn-line: rgba(176, 106, 0, .4);

    /* ---- the approved changes A3, A5 and A8, under --gx- names so the editor's values above stay untouched ---- */
    --gx-top-bg: rgba(255, 255, 255, .88);         /* A3: a top bar over dense words (the editor's bar is .6 over a site) */
    --gx-dock-bg: rgba(255, 255, 255, .74);        /* A3: the dock over dense words */
    --gx-focus: 0 0 0 2px var(--gl-pen);           /* A5: the focus ring, solid pen blue (the editor's 45% ring is too faint) */
    --gx-field-shadow-card: 0 1px 3px rgba(16, 24, 64, .08), inset 0 1px 0 #fff;   /* A5: a field on a card, many to a card */
    --gx-card-read-bg: rgba(255, 255, 255, .72);   /* A8: cards on text-heavy pages */
    --gx-card-read-border: 1px solid rgba(43, 68, 176, .14);
    /* a nav key (the rail's rows): the key's inner light and lip, its outer shadow pulled in so keys 5 px apart stay
       clean; hover is brighter glass on the key's full shadow */
    --gx-navkey-shadow: inset 0 0 7px 1.5px rgba(255, 255, 255, .62), inset 0 2px 1.5px -1px #fff, inset 0 -2.5px 1.5px -1px rgba(255, 255, 255, .8),
                        0 .5px 0 .5px rgba(27, 42, 120, .12), 0 1px 2px rgba(27, 42, 120, .16), 0 5px 8px -5px rgba(27, 42, 120, .34);
    --gx-navkey-hover-bg: linear-gradient(180deg, rgba(255, 255, 255, .78) 0%, rgba(255, 255, 255, .46) 55%, rgba(255, 255, 255, .62) 100%);
    --gx-navkey-hover-shadow: inset 0 0 7px 1.5px rgba(255, 255, 255, .62), inset 0 2px 1.5px -1px #fff, inset 0 -2.5px 1.5px -1px rgba(255, 255, 255, .8),
                              0 .5px 0 .5px rgba(27, 42, 120, .12), 0 2px 3px rgba(27, 42, 120, .16), 0 9px 12px -6px rgba(27, 42, 120, .38);
    /* the shell's measures (part 5) */
    --gx-rail: 0px;                                /* the column the desktop rail stands in: 256 px, 88 px folded */
    --gx-foot: 0px;                                /* the room a page keeps at its foot for the phone dock */
}

/* ---- FALLBACKS: no backdrop-filter, or the phone asks for less transparency. The same materials, opaque. ---- */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    :root {
        --gl-bar-bg: #F6F7FB; --gl-ink-bar-bg: var(--gl-pen); --gl-panel-bg: #F6F8FE; --gl-float-bg: #FFFFFF;
        --gl-cell-bg: #FFFFFF; --gl-chip-bg: #FFFFFF; --gl-field-bg: #FFFFFF;
        --gl-well-bg: var(--gl-tint); --gl-on-bg: var(--gl-tint); --gl-scrim: rgba(28, 40, 96, .28);
        --gl-cell-border: 1px solid var(--gl-tint-line); --gl-field-border: 1px solid var(--gl-tint-line); --gl-float-border: 1px solid var(--gl-tint-line);
        --gl-sheet-bg: #F7F8FD; --gl-panel-line: var(--gl-tint-line); --gl-danger-bg: #FFF4F3; --gl-scrim-deep: rgba(20, 30, 80, .42);
        --gl-key-bg: linear-gradient(180deg, #FFFFFF, #F1F3FB); --gl-key-on-bg: var(--gl-tint);
        --gl-recess-bg: #E7EBF8;
        --gx-top-bg: #F6F7FB; --gx-dock-bg: #F6F7FB; --gx-card-read-bg: #FFFFFF; --gx-navkey-hover-bg: #FFFFFF;
    }
}
@media (prefers-reduced-transparency: reduce) {
    :root {
        --gl-bar-bg: #F6F7FB; --gl-ink-bar-bg: var(--gl-pen); --gl-panel-bg: #F6F8FE; --gl-float-bg: #FFFFFF;
        --gl-cell-bg: #FFFFFF; --gl-chip-bg: #FFFFFF; --gl-field-bg: #FFFFFF;
        --gl-well-bg: var(--gl-tint); --gl-on-bg: var(--gl-tint); --gl-scrim: rgba(28, 40, 96, .28);
        --gl-cell-border: 1px solid var(--gl-tint-line); --gl-field-border: 1px solid var(--gl-tint-line); --gl-float-border: 1px solid var(--gl-tint-line);
        --gl-sheet-bg: #F7F8FD; --gl-panel-line: var(--gl-tint-line); --gl-danger-bg: #FFF4F3; --gl-scrim-deep: rgba(20, 30, 80, .42);
        --gl-key-bg: linear-gradient(180deg, #FFFFFF, #F1F3FB); --gl-key-on-bg: var(--gl-tint);
        --gl-recess-bg: #E7EBF8;
        --gx-top-bg: #F6F7FB; --gx-dock-bg: #F6F7FB; --gx-card-read-bg: #FFFFFF; --gx-navkey-hover-bg: #FFFFFF;
        --gl-bar-blur: none; --gl-ink-bar-blur: none; --gl-panel-blur: none; --gl-float-blur: none; --gl-sheet-blur: none; --gl-scrim-blur: none;
        --gl-desk-bg: linear-gradient(180deg, #EEF1F9, #E6EBF8);
    }
}

/* =====================================================================================================
   3. COMPONENTS. What pages use. Each reads its material's properties, so a page can change one element
      by setting one property on it.
   ===================================================================================================== */

/* ---- the desk. The light is a fixed layer behind the page (background-attachment: fixed stutters on
   iPhones), so floating glass always has it to bend. Three ways in:
     body.gx-page          a page that has had its glass pass (also sets the page's type and resets)
     html.gx-shell         any page with the nav (user_nav.html's first script adds the class), restyled or not;
                           !important because a few old pages set their beige on the body's style attribute
     .bg-dot-pattern       the old head's dot background, wherever a page uses it ---- */
body.gx-page, body.bg-dot-pattern { background: #E9EEFA; }
html.gx-shell body { background: #E9EEFA !important; }
body.gx-page::before, body.bg-dot-pattern::before, html.gx-shell body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--gl-desk-bg); }
:not(body).bg-dot-pattern { background: var(--gl-desk-bg); }

.gx-page {
    margin: 0; min-height: 100vh; min-height: 100dvh; color: var(--gl-ink);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.45;
    -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
.gx-page *, .gx-page *::before, .gx-page *::after { box-sizing: border-box; }
:where(.gx-page) a { color: inherit; text-decoration: none; }
:where(.gx-page) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:where(.gx-page) :is(h1, h2, h3, h4, p, dl, dd, ul) { margin: 0; padding: 0; }
:where(.gx-page) ul { list-style: none; }
/* A5: what the keyboard is on wears a solid 2 px pen ring */
.gx-page :focus-visible, .gx-nav :focus-visible, .gx-dock :focus-visible, .gx-menu :focus-visible, .gx-modal :focus-visible, .gx-crumb :focus-visible { outline: 2px solid var(--gl-pen); outline-offset: 2px; }
.gx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- words (style rule T7) ---- */
.gx-t2 { color: var(--gl-ink-2); }                               /* a second line */
.gx-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gl-label); }
.gx-fine { font-size: 13px; color: var(--gl-label); }
.gx-link { color: var(--gl-pen); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
/* an icon: <svg class="gx-ic"><use href="#gxi-name"/></svg>. The sprite is in user_nav.html (ids gxi-...). */
.gx-ic { display: inline-block; width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gx-grow { flex: 1 1 auto; min-width: 0; }
.gx-spin { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid rgba(43, 68, 176, .25); border-top-color: var(--gl-pen); animation: gx-spin .6s linear infinite; }
@keyframes gx-spin { to { transform: rotate(360deg); } }

/* ---- the lit edge: a thin ring drawn by a mask over the element's own corners. Used by every floating
   surface and by keys and jewels. The element must be position: relative, fixed, sticky or absolute. ---- */
.gx-panel::after, .gx-bar::after, .gx-sheet::after, .gx-banner::after, .gx-key::after, .gx-btn::after, .gx-dock-key::after, .gx-menu-key::after, .gx-nav-row::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
    padding: var(--gx-rim-w, var(--gl-rim-w)); background: var(--gx-rim, var(--gl-rim));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* ---- gx-head: THE page header (elements/_gx_head.html writes it). Title, one line under it, the page's
   actions on the right (on a phone, under the title). .row keeps one small action on the title's row. ---- */
.gx-head { display: flex; flex-direction: column; gap: 14px; margin: 0 0 18px; }
.gx-head-main { min-width: 0; }
.gx-head-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--gl-ink-2); min-width: 0; }
.gx-head-eyebrow img { width: 24px; height: 24px; border-radius: 7px; flex: none; }
.gx-head-eyebrow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-head h1 { margin: 0; font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--gl-ink); overflow-wrap: anywhere; }   /* a title made of one long word (an email address) wraps instead of pushing the page sideways on a phone */
.gx-head-sub { margin: 4px 0 0; font-size: 15px; color: var(--gl-ink-2); }
.gx-head-count { margin-left: 8px; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--gl-ink-2); white-space: nowrap; }
.gx-head-actions { display: flex; gap: 8px; }
.gx-head-actions:empty { display: none; }
.gx-head-actions > * { flex: 1 1 0; min-width: 0; }
.gx-head.row { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 12px; }
.gx-head.row .gx-head-actions > * { flex: none; }
.gx-wide-only { display: none; }
@media (max-width: 599.98px) { .gx-head.row .gx-head-sub { display: none; } }
@media (min-width: 1024px) {
    .gx-head { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
    .gx-head h1 { font-size: 34px; }
    .gx-head-eyebrow { display: none; }
    .gx-head-actions { gap: 10px; flex: none; }
    .gx-head-actions > * { flex: none; }
    .gx-head.row { align-items: center; }
    .gx-head-count { font-size: 17px; }
    .gx-wide-only { display: revert; }
    .gx-phone-only { display: none !important; }
}
/* gx-back: the way back to the list, above a detail card */
.gx-back { margin: 0 0 12px; }

/* ---- gx-card: cell glass. No blur. .read (A8) is for text-heavy pages: 72% white, a faint pen edge. ---- */
.gx-card {
    position: relative; background: var(--gl-cell-bg); border: var(--gl-cell-border); box-shadow: var(--gl-cell-shadow);
    border-radius: var(--gl-cell-r); padding: 16px; margin: 0 0 14px;
}
.gx-card.read { --gl-cell-bg: var(--gx-card-read-bg); --gl-cell-border: var(--gx-card-read-border); }
.gx-card.flush { padding: 0; overflow: hidden; }
.gx-card-head { display: flex; align-items: center; gap: 12px; }
.gx-card-title { margin: 0; font-size: 17px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.gx-card-line { margin: 2px 0 0; font-size: 14px; color: var(--gl-ink-2); }
a.gx-card, button.gx-card { display: block; width: 100%; text-align: left; transition: box-shadow .2s, transform .2s; }
@media (hover: hover) { a.gx-card:hover, button.gx-card:hover, a.gx-tile:hover { box-shadow: var(--gl-lift-md), 0 0 0 1px rgba(43, 68, 176, .2); transform: translateY(-1px); } }
@media (min-width: 1024px) { .gx-card { padding: 22px 24px; margin-bottom: 18px; } .gx-card.flush { padding: 0; } }

/* ---- gx-tile: a small card inside a card (a stat, a quick link). Still the cell material, a little
   whiter so it stands on its parent without a blur. ---- */
.gx-tile {
    display: block; background: rgba(255, 255, 255, .62); border: 1px solid rgba(43, 68, 176, .12); border-radius: var(--gl-r-card);
    padding: 14px; transition: box-shadow .2s, transform .2s;
}
/* gx-inset: the accent tint with a pen line, inside a card, for the thing the page is about. No blur. */
.gx-inset { padding: 16px; border-radius: var(--gl-r-cell); background: var(--gl-accent-bg); box-shadow: inset 0 0 0 1px rgba(43, 68, 176, .2); }
.gx-inset > .gx-label { color: var(--gl-pen); }
@media (min-width: 1024px) { .gx-inset { padding: 20px 22px; } }

/* ---- the two offer cards (Jake's pick B4, 2026-11-23: no black cards). No blur: they are cards.
     gx-card ink   Pixlel's main offer on a page (Town pages): blue ink glass, deep pen blue about 94% solid so white
                   words measure about 6:1 on it; white words; its button is gx-white, its links gx-link on-ink.
     gx-card lit   a second offer (Google and ChatGPT): light glass, a lit pen-blue rim and a blue glow under it; dark
                   words; its button is the accent key.
   At most one of each on a page, or neither stands out. ---- */
.gx-card.ink {
    color: #fff; border: 0; border-radius: 24px; overflow: hidden;
    background: linear-gradient(180deg, rgba(56, 78, 196, .94), rgba(43, 68, 176, .96)); box-shadow: 0 14px 34px -8px rgba(27, 42, 120, .55), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.gx-card.ink::after {
    content: ''; position: absolute; inset: 0; z-index: 403; pointer-events: none; border-radius: inherit; padding: var(--gl-rim-w); background: var(--gl-rim);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.gx-card.lit {
    border: 0; border-radius: 24px; background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(246, 248, 255, .84));
    box-shadow: inset 0 0 0 2px rgba(43, 68, 176, .62), 0 0 0 5px rgba(127, 221, 247, .28), 0 16px 34px -10px rgba(77, 102, 221, .6);
}
/* gx-white: the button on an ink card. White, pen words. .ghost is its quiet form: a white outline. */
html .gx-white {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px;
    background: #fff; color: var(--gl-pen); font-size: 15px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; white-space: nowrap; text-decoration: none; cursor: pointer;
    box-shadow: 0 2px 4px rgba(16, 24, 64, .2), 0 8px 16px -6px rgba(16, 24, 64, .45);
}
html .gx-white.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .8); }
.gx-white:active { filter: brightness(.95); }
.gx-white[disabled] { opacity: .6; cursor: default; }
.gx-white svg { width: 18px; height: 18px; }
html .gx-link.on-ink { color: #fff; background: none; border: 0; padding: 6px 0; font-size: 15px; cursor: pointer; }
.gx-card.ink :focus-visible { outline-color: #fff; }

/* ---- gx-panel: a floating surface with blur and the lit rim (the nav rail, the phone Menu) ---- */
.gx-panel {
    position: relative; background: var(--gl-panel-bg); -webkit-backdrop-filter: var(--gl-panel-blur); backdrop-filter: var(--gl-panel-blur);
    box-shadow: var(--gl-panel-shadow); border-radius: var(--gl-panel-r);
}
/* ---- gx-bar: the capsule dock. gx-bar gx-top: a sticky bar at the head of a phone page (A3: frostier). ---- */
.gx-bar {
    background: var(--gl-bar-bg); -webkit-backdrop-filter: var(--gl-bar-blur); backdrop-filter: var(--gl-bar-blur);
    box-shadow: var(--gl-bar-shadow); border-radius: var(--gl-bar-r);
}
.gx-top { position: sticky; z-index: 30; top: 8px; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 6px 0 10px; margin: 0 0 12px; --gl-bar-bg: var(--gx-top-bg); --gl-bar-r: 26px; }

/* ---- gx-btn: the jewel. The one primary action on a screen. .sm small, .lg tall, .block full width. ---- */
html .gx-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
    border: 0; border-radius: 999px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; white-space: nowrap; text-decoration: none; cursor: pointer;
    color: var(--gl-jewel-fg); background-color: var(--gl-jewel-color); background-image: var(--gl-jewel-bg); box-shadow: var(--gl-jewel-shadow);
    text-shadow: 0 1px 1px rgba(20, 32, 100, .35); --gx-rim: var(--gl-jewel-rim); --gx-rim-w: var(--gl-jewel-rim-w);
}
.gx-btn:active { filter: brightness(.93); }
.gx-btn[disabled], .gx-btn[aria-disabled="true"] { opacity: .55; cursor: default; }
html .gx-btn.sm { min-height: 36px; padding: 0 14px; font-size: 14px; box-shadow: var(--gl-jewel-shadow-sm); }
html .gx-btn.lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.gx-btn.block, .gx-key.block, .gx-danger.block, .gx-danger-fill.block { display: flex; width: 100%; }
.gx-btn .gx-ic { width: 18px; height: 18px; }

/* ---- gx-key: clear key glass. Secondary buttons: pen-blue icon, ink words. .accent (A1) is a second
   action that is Pixlel's own (an offer, "Get found"): light blue, pen ring. A page has one jewel at most;
   everything else that matters is an accent key, everything plain a key. ---- */
html .gx-key {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
    border: 0; border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; white-space: nowrap; text-decoration: none; cursor: pointer;
    color: var(--gl-key-fg); background: var(--gl-key-bg); box-shadow: var(--gl-key-shadow); --gx-rim: var(--gl-key-rim); --gx-rim-w: var(--gl-key-rim-w);
}
.gx-key .gx-ic { color: var(--gl-key-icon); width: 18px; height: 18px; }
html .gx-key:active, html .gx-key[aria-pressed="true"], html .gx-key.on { background: var(--gl-key-on-bg); box-shadow: var(--gl-key-on-ring), var(--gl-key-on-shadow); color: var(--gl-pen); }
.gx-key:active::after, .gx-key[aria-pressed="true"]::after, .gx-key.on::after { content: none; }
html .gx-key.sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
html .gx-key.lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
html .gx-key.accent { background: var(--gl-accent-bg); color: var(--gl-accent-fg); font-weight: 700; box-shadow: var(--gl-accent-ring), 0 2px 6px rgba(43, 68, 176, .14); }
.gx-key.accent::after { content: none; }

/* ---- gx-chip: a round icon button ---- */
html .gx-chip {
    display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    background: var(--gl-chip-bg); color: var(--gl-chip-fg); box-shadow: var(--gl-chip-shadow);
}
html .gx-chip.sm { width: 32px; height: 32px; }
.gx-chip.sm .gx-ic { width: 16px; height: 16px; }

/* ---- gx-well: the tinted square an icon sits in (card headers; nav rows use bare icons, A4) ---- */
.gx-well {
    display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; color: var(--gl-pen);
    background: var(--gl-well-bg); border: var(--gl-well-border); border-radius: var(--gl-well-r);
}
.gx-well.sm { width: 36px; height: 36px; border-radius: 11px; }
.gx-well.round { border-radius: 50%; }
.gx-well b { font-size: 14px; font-weight: 800; letter-spacing: -.02em; }

/* ---- gx-on: selected. Tint + a 2 px pen ring + pen words, heavier. Add it to a row, a tab or a card. ---- */
.gx-on { background: var(--gl-on-bg) !important; box-shadow: var(--gl-on-ring) !important; color: var(--gl-pen) !important; font-weight: 700; }

/* ---- gx-field: text boxes. Above it a gx-flabel (A5: 14 px, weight 600); under it a gx-hint.
   On a card, or inside a gx-form, the field's shadow is lighter (many fields to a card). .bad is a field
   with a mistake in it: a red ring and, under it, a gx-field-msg with its icon (never the ring alone). ---- */
.gx-field {
    display: block; width: 100%; min-height: 46px; padding: 11px 14px; font: inherit; font-size: 16px; line-height: 1.35; color: var(--gl-ink);
    background: var(--gl-field-bg); border: var(--gl-field-border); box-shadow: var(--gl-field-shadow), 0 0 0 1px rgba(43, 68, 176, .10);
    border-radius: var(--gl-field-r); outline: none; -webkit-appearance: none; appearance: none;
}
.gx-field::placeholder { color: #6A7186; opacity: 1; }
html .gx-field:focus, html .gx-field.focus { box-shadow: var(--gl-field-shadow), var(--gx-focus); outline: none; border-color: transparent; }
textarea.gx-field { resize: vertical; line-height: 1.45; }
select.gx-field {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B44B0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"), linear-gradient(rgba(255,255,255,.8), rgba(255,255,255,.8));
    background-repeat: no-repeat; background-position: right 12px center, 0 0; background-size: 18px, auto;
}
.gx-card .gx-field, .gx-form .gx-field, .gx-sheet .gx-field, .gx-field.on-card {
    --gl-field-shadow: var(--gx-field-shadow-card); background-color: rgba(255, 255, 255, .9);
    box-shadow: var(--gl-field-shadow), 0 0 0 1px rgba(43, 68, 176, .18);
}
html .gx-field.bad { box-shadow: var(--gl-field-shadow), 0 0 0 2px var(--gl-danger-fg); }
.gx-field-msg { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14.5px; font-weight: 600; color: var(--gl-danger-fg); }
.gx-field-msg .gx-ic { width: 16px; height: 16px; }
/* gx-form: label above its field, a hint under it; .two puts a pair side by side from 600 px */
.gx-form { display: grid; gap: 18px; }
.gx-form label, .gx-flabel { display: block; margin: 0 0 7px; font-size: 14px; font-weight: 600; color: var(--gl-ink); }
.gx-hint { margin: 7px 0 0; font-size: 13px; line-height: 1.45; color: var(--gl-label); }
.gx-form .two { display: grid; gap: 18px 14px; }
@media (min-width: 600px) { .gx-form .two { grid-template-columns: 1fr 1fr; } .gx-form .two.city { grid-template-columns: 2fr 1fr; } }
/* gx-search: a field with its icon inside */
.gx-search { position: relative; display: block; }
.gx-search > .gx-ic { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--gl-pen); pointer-events: none; }
.gx-search .gx-field { padding-left: 42px; }
.gx-search .gx-field::-webkit-search-cancel-button { -webkit-appearance: none; }
/* gx-drop: a file drop zone. Dashed pen line: the dashes are the "drop here" sign. */
.gx-drop { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--gl-r-cell); background: rgba(238, 241, 252, .6); border: 1.5px dashed rgba(43, 68, 176, .42); cursor: pointer; }
.gx-drop b { display: block; font-size: 15px; font-weight: 600; }
.gx-drop small { display: block; margin-top: 2px; font-size: 13px; color: var(--gl-label); }

/* ---- gx-switch: a button with role="switch". Off: an empty recess track with a pen outline, the knob on
   the left, the word Off. On: pen-blue fill, the knob on the right with a check in it, the word On.
   Fill, position, check and word all change, so it reads without colour.
     <span class="gx-switch-wrap on"><span class="gx-switch-word">On</span>
       <button type="button" class="gx-switch" role="switch" aria-checked="true"><i><svg class="gx-ic">..check..</svg></i></button></span> ---- */
.gx-switch-wrap { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.gx-switch-word { min-width: 22px; text-align: right; font-size: 13px; font-weight: 600; color: var(--gl-label); }
html .gx-switch { position: relative; flex: none; width: 54px; height: 32px; padding: 0; border: 0; border-radius: 999px; cursor: pointer; background: var(--gl-recess-bg); box-shadow: var(--gl-recess-shadow), inset 0 0 0 1.5px rgba(43, 68, 176, .3); transition: box-shadow .18s; }
.gx-switch::before { content: ''; position: absolute; inset: -6px -4px; }          /* a 44 px target */
.gx-switch i { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: transparent;
               box-shadow: 0 1px 3px rgba(16, 24, 64, .3), inset 0 0 0 1px rgba(43, 68, 176, .16); transition: transform .18s; }
.gx-switch i .gx-ic { width: 15px; height: 15px; stroke-width: 3.2; }
html .gx-switch[aria-checked="true"] { background-color: var(--gl-jewel-color); background-image: var(--gl-jewel-bg); box-shadow: var(--gl-jewel-shadow-sm); }
.gx-switch[aria-checked="true"] i { transform: translateX(22px); color: var(--gl-pen); box-shadow: 0 1px 3px rgba(16, 24, 64, .35); }
.gx-switch-wrap.on .gx-switch-word { color: var(--gl-pen); font-weight: 800; }
/* gx-set: a setting row. The title and the switch share a line; the explanation runs full width under them
   on a phone, and beside the switch from 600 px. */
.gx-set { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t s" "d d"; column-gap: 14px; align-items: center; }
.gx-set > .gx-grow { display: contents; }
.gx-set-t { grid-area: t; font-size: 15px; font-weight: 600; }
.gx-set .gx-fine { grid-area: d; margin-top: 6px; }
.gx-set .gx-switch-wrap { grid-area: s; }
@media (min-width: 600px) { .gx-set { grid-template-areas: "t s" "d s"; column-gap: 28px; align-items: start; } .gx-set .gx-fine { margin-top: 2px; } }

/* ---- gx-badge: a count (pen-blue pill, white number, light halo).
   .quiet (A2) is a status word, not a count: tint, pen words, and a tick or dot for "on" (Live, Verified).
   .quiet.off is "not yet" (Draft, Not set): clear, dashed ring, slate words. It differs from on by its ring
   and its icon, not by colour. .sm is a tag on a row; .plain .warn .bad carry their icon. ---- */
.gx-badge {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 22px; height: 22px; padding: 0 7px; flex: none;
    border-radius: 999px; background: var(--gl-pen); color: #fff; font-size: 12px; font-weight: 700; line-height: 1; box-shadow: 0 0 0 2px var(--gl-halo);
}
.gx-badge.quiet { height: 28px; padding: 0 11px; background: var(--gl-tint); color: var(--gl-pen); font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(43, 68, 176, .2); }
.gx-badge.quiet i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.gx-badge.quiet .gx-ic { width: 14px; height: 14px; stroke-width: 2.6; }
.gx-badge.quiet.off { background: transparent; color: var(--gl-ink-2); box-shadow: none; border: 1.5px dashed rgba(43, 68, 176, .45); }
.gx-badge.quiet.sm { height: 22px; padding: 0 8px; font-size: 12px; gap: 4px; }
.gx-badge.quiet.sm .gx-ic { width: 12px; height: 12px; }
.gx-badge.quiet.sm i { width: 6px; height: 6px; }
.gx-badge.quiet.plain { background: rgba(255, 255, 255, .7); color: var(--gl-ink-2); }
.gx-badge.quiet.warn { background: var(--gl-warn-bg); color: var(--gl-warn-fg); box-shadow: inset 0 0 0 1px var(--gl-warn-line); }
.gx-badge.quiet.bad { background: var(--gl-danger-bg); color: var(--gl-danger-fg); box-shadow: inset 0 0 0 1px var(--gl-danger-line); }
/* gx-tag: a small fact pill (what an app may do). Not a status, so no dot and no icon. */
.gx-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--gl-pen); background: var(--gl-tint); box-shadow: inset 0 0 0 1px rgba(43, 68, 176, .16); white-space: nowrap; }

/* ---- gx-banner: Pixlel's own notice, the blue ink-bar glass. .warn and .bad keep amber and red, always
   with an icon. .bad.gx-banner-tall is the payment banner (A6): a pale red card, ink words, the icon in a
   red-ringed disc (gx-banner-ic), and a solid red button (gx-banner-act). It wraps on a phone. ---- */
.gx-banner {
    position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 8px 8px 16px; margin: 0 0 14px; color: #fff; font-size: 14px; font-weight: 600;
    background: var(--gl-ink-bar-bg); -webkit-backdrop-filter: var(--gl-ink-bar-blur); backdrop-filter: var(--gl-ink-bar-blur);
    box-shadow: var(--gl-ink-bar-shadow); border-radius: var(--gl-ink-bar-r);
}
.gx-banner .gx-ic { width: 18px; height: 18px; }
html .gx-banner-act { position: relative; z-index: 1; margin-left: auto; display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: #fff; color: var(--gl-pen); font-weight: 700; white-space: nowrap; text-decoration: none; cursor: pointer; box-shadow: 0 1px 3px rgba(16, 24, 64, .2); }
.gx-banner.warn, .gx-banner.bad { -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--gl-lift-sm); }
.gx-banner.warn { background: var(--gl-warn-bg); color: var(--gl-warn-fg); border: 1px solid var(--gl-warn-line); }
.gx-banner.bad { background: var(--gl-danger-bg); color: var(--gl-danger-fg); border: 1px solid var(--gl-danger-line); }
.gx-banner.warn::after, .gx-banner.bad::after { content: none; }
.gx-banner.bad.gx-banner-tall { align-items: center; flex-wrap: wrap; gap: 10px 12px; padding: 12px 14px; border-radius: 20px; border-width: 1.5px; color: var(--gl-ink); font-weight: 500; line-height: 1.4; }
.gx-banner-tall > span:not(.gx-banner-ic) { flex: 1 1 200px; min-width: 0; }
.gx-banner-tall b { font-weight: 700; }
.gx-banner-ic { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; color: var(--gl-danger-fg); background: #fff; box-shadow: inset 0 0 0 1.5px var(--gl-danger-line); }
html .gx-banner.bad .gx-banner-act { min-height: 40px; padding: 0 18px; color: #fff; background: var(--gl-danger-fill); box-shadow: var(--gl-danger-shadow); }
@media (max-width: 599.98px) { html .gx-banner-tall .gx-banner-act { flex: 1 1 100%; justify-content: center; min-height: 44px; margin-left: 0; } }
.gx-banner.bad + .gx-banner.bad { margin-top: -6px; }
/* gx-note: a notice inside a card. .warn is amber with its icon; .ask is Pixlel asking something (tint, pen line). */
.gx-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--gl-r-card); font-size: 14px; line-height: 1.45; }
.gx-note > .gx-ic { width: 18px; height: 18px; margin-top: 1px; }
.gx-note.warn { background: var(--gl-warn-bg); color: var(--gl-warn-fg); border: 1px solid var(--gl-warn-line); }
.gx-note.bad { background: var(--gl-danger-bg); color: var(--gl-danger-fg); border: 1px solid var(--gl-danger-line); }
.gx-note.ask { background: var(--gl-accent-bg); box-shadow: inset 0 0 0 1px rgba(43, 68, 176, .2); }
.gx-note.ask > .gx-ic { color: var(--gl-pen); }

/* ---- gx-float: toasts and tooltips (style rule T11: float glass, dark words). gx-toast is the one at the
   foot of the screen (window.gxSay(text) in user_nav.html shows it); gx-tip is the nav's tooltip. ---- */
.gx-float {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; font-size: 14px; font-weight: 600; color: var(--gl-ink);
    background: var(--gl-float-bg); -webkit-backdrop-filter: var(--gl-float-blur); backdrop-filter: var(--gl-float-blur);
    border: var(--gl-float-border); box-shadow: var(--gl-float-shadow); border-radius: var(--gl-float-r);
}
.gx-float .gx-ic { color: var(--gl-pen); width: 18px; height: 18px; }
.gx-toast { width: max-content; position: fixed; z-index: 95; left: 50%; bottom: calc(24px + var(--gx-foot, 0px)); transform: translate(-50%, 12px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, transform .2s, visibility 0s .2s; max-width: calc(100vw - 32px); }
.gx-toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.gx-tip { position: fixed; z-index: 96; padding: 7px 12px; font-size: 13px; white-space: nowrap; border-radius: 12px; --gl-float-bg: rgba(255, 255, 255, .92); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-50%); transition: opacity .12s; }
.gx-tip.show { opacity: 1; visibility: visible; }

/* ---- gx-scrim + gx-sheet + gx-dialog: a dialog over the navy dim (style rule T12).
   Two ways to build one:
     a gx-scrim and a gx-sheet gx-dialog side by side, each given .show (a short question), or
     a gx-modal wrapping one gx-sheet gx-modal-box, given .show (a taller sheet that may scroll; the Support
     form in user_nav.html is one). ---- */
.gx-scrim {
    position: fixed; inset: 0; z-index: 85; background: var(--gl-scrim-deep); -webkit-backdrop-filter: var(--gl-scrim-blur); backdrop-filter: var(--gl-scrim-blur);
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, visibility 0s .2s;
}
.gx-scrim.light { background: var(--gl-scrim); -webkit-backdrop-filter: none; backdrop-filter: none; }
.gx-scrim.show { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.gx-sheet {
    position: relative; background: var(--gl-sheet-bg); -webkit-backdrop-filter: var(--gl-sheet-blur); backdrop-filter: var(--gl-sheet-blur);
    box-shadow: var(--gl-sheet-shadow); border-radius: var(--gl-sheet-r); color: var(--gl-ink);
}
.gx-sheet > * { position: relative; z-index: 1; }      /* above the lit edge, so everything in a sheet can be pressed */
.gx-dialog {
    position: fixed; z-index: 90; left: 50%; top: 50%; width: min(420px, calc(100vw - 24px)); padding: 22px; transform: translate(-50%, -46%); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .2s, transform .2s, visibility 0s .2s;
}
.gx-dialog.show { opacity: 1; visibility: visible; transform: translate(-50%, -50%); pointer-events: auto; transition-delay: 0s; }
.gx-dialog h3, .gx-modal-box h3 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.gx-dialog p { margin: 6px 0 0; color: var(--gl-ink-2); }
.gx-dialog-actions { position: relative; z-index: 1; display: flex; gap: 10px; margin-top: 20px; }
.gx-dialog-actions > * { flex: 1 1 0; }
.gx-modal {
    position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 12px;
    background: var(--gl-scrim-deep); -webkit-backdrop-filter: var(--gl-scrim-blur); backdrop-filter: var(--gl-scrim-blur);
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, visibility 0s .2s;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.45;
}
.gx-modal.show { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.gx-modal-box { width: min(560px, 100%); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); display: flex; flex-direction: column; transform: translateY(10px) scale(.98); transition: transform .2s; }
.gx-modal.show .gx-modal-box { transform: none; }
.gx-modal-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 12px 20px; border-bottom: var(--gl-panel-head-line); }
.gx-modal-head p { margin: 2px 0 0; font-size: 14px; color: var(--gl-ink-2); }
.gx-modal-body { padding: 16px 20px 20px; overflow-y: auto; overscroll-behavior: contain; }
.gx-modal-body > * + * { margin-top: 14px; }

/* ---- gx-danger: red outline + an icon. gx-danger-fill: the final yes. The icon fits the act (A7):
   the bin for delete, the broken link for disconnect, the door for remove access. ---- */
html .gx-danger, html .gx-danger-fill {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; font-size: 15px; font-weight: 700; line-height: 1.2; white-space: nowrap; text-decoration: none; cursor: pointer;
}
html .gx-danger { color: var(--gl-danger-fg); background: var(--gl-danger-bg); box-shadow: inset 0 0 0 1.5px var(--gl-danger-line); }
html .gx-danger-fill { color: #fff; background: var(--gl-danger-fill); box-shadow: var(--gl-danger-shadow); }
html .gx-danger.sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.gx-danger .gx-ic, .gx-danger-fill .gx-ic { width: 16px; height: 16px; }

/* ---- gx-list: rows with pen hairlines between them (style rule T8) ---- */
.gx-list > * { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: var(--gl-hair); }
.gx-list > *:first-child { border-top: 0; }
.gx-hr { border: 0; border-top: var(--gl-hair); margin: 18px 0; }
/* gx-kv: label left, value right of it; .stack puts the value under its label */
.gx-kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 15px; }
.gx-kv dt { font-size: 14px; color: var(--gl-label); padding-top: 1px; }
.gx-kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.gx-kv dd.long { font-weight: 400; line-height: 1.5; white-space: pre-line; }
@media (max-width: 599.98px) { .gx-kv .w { grid-column: 1 / -1; } .gx-kv dd.w { margin-top: -6px; } }
.gx-kv.stack { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.gx-kv.stack dd { margin-bottom: 10px; font-weight: 500; }

/* ---- gx-rows: rows inside a flush card (a list of messages, orders, contacts). A row that needs an
   answer is .unread: a pen bar on its left edge, a dot on its icon, heavier name and time, darker words.
   Four differences, none of them hue alone. .quiet is a row with nothing to answer: it sits back. ---- */
.gx-rows > * { position: relative; display: flex; gap: 12px; padding: 14px 16px; border-top: var(--gl-hair); color: var(--gl-ink); text-decoration: none; }
.gx-rows > *:first-child { border-top: 0; }
@media (hover: hover) { a.gx-row:hover { background: rgba(255, 255, 255, .55); } }
.gx-row-main { flex: 1 1 auto; min-width: 0; display: block; }
.gx-row-top { display: flex; align-items: baseline; gap: 8px; }
.gx-row-name { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-row-time { flex: none; font-size: 13px; color: var(--gl-label); white-space: nowrap; }
.gx-row-sum { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 1px; font-size: 14px; line-height: 1.4; color: var(--gl-ink-2); }
.gx-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 7px; font-size: 13px; color: var(--gl-label); }
.gx-row .gx-well { position: relative; margin-top: 1px; }
.gx-row.unread { background: rgba(255, 255, 255, .5); box-shadow: inset 3px 0 0 var(--gl-pen); }
.gx-row.unread .gx-row-name { font-weight: 800; }
.gx-row.unread .gx-row-time { font-weight: 700; color: var(--gl-pen); }
.gx-row.unread .gx-row-sum { color: var(--gl-ink); }
.gx-row.unread .gx-well::after { content: ''; position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--gl-pen); box-shadow: 0 0 0 2px #fff; }
.gx-row.quiet .gx-well { background: transparent; border-style: dashed; border-color: rgba(43, 68, 176, .32); }
.gx-row.quiet .gx-row-top { display: block; }
.gx-row.quiet .gx-row-time { float: right; margin-left: 12px; line-height: 1.55; }
.gx-row.quiet .gx-row-name { display: inline; white-space: normal; font-size: 14.5px; font-weight: 500; line-height: 1.4; color: var(--gl-ink-2); }
@media (min-width: 1024px) { .gx-rows > * { padding: 16px 22px; gap: 14px; } }
/* gx-thread: a chat's lines. Who said it is told by the label and the side, not by the tint. */
.gx-thread { display: flex; flex-direction: column; gap: 10px; }
.gx-thread > div { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.gx-thread small { display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--gl-label); }
.gx-thread .v { align-self: flex-end; background: var(--gl-tint); box-shadow: inset 0 0 0 1px rgba(43, 68, 176, .2); border-bottom-right-radius: 4px; }
.gx-thread .a { align-self: flex-start; background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px rgba(43, 68, 176, .12), var(--gl-lift-sm); border-bottom-left-radius: 4px; }
.gx-thread .card { align-self: stretch; max-width: none; font-size: 14px; color: var(--gl-ink-2); border: 1.5px dashed rgba(43, 68, 176, .3); }

/* ---- gx-stat: a number tile. .main is the one the section is about (pen number, tint, pen ring). ---- */
.gx-stats { display: flex; gap: 8px; margin: 0; }
.gx-stats > * { flex: 1 1 auto; }
.gx-stat { background: rgba(255, 255, 255, .62); border: 1px solid rgba(43, 68, 176, .12); border-radius: var(--gl-r-card); padding: 11px 12px; min-width: 0; }
.gx-stat b, .gx-stat dt { display: block; font-size: 20px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--gl-ink); white-space: nowrap; }
.gx-stat span, .gx-stat dd { display: block; margin: 2px 0 0; font-size: 13px; line-height: 1.3; color: var(--gl-ink-2); }
.gx-stat.main { background: var(--gl-tint); border-color: rgba(43, 68, 176, .3); }
.gx-stat.main b, .gx-stat.main dt { color: var(--gl-pen); }
@media (min-width: 1024px) { .gx-stat { padding: 14px 16px; } .gx-stat b, .gx-stat dt { font-size: 26px; } }

/* ---- gx-tabs: the recess track with an "on" segment (white glass, pen ring, heavier words).
   .fill is a row of page filters: full width on a phone; a tab may carry a count in <em> (.new = pen pill). ---- */
.gx-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--gl-recess-bg); box-shadow: var(--gl-recess-shadow); border-radius: var(--gl-recess-r); }
html .gx-tabs > * { min-height: 36px; padding: 0 16px; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 22px; background: none; font-size: 14px; font-weight: 600; color: var(--gl-recess-fg); text-decoration: none; cursor: pointer; }
html .gx-tabs > .on, html .gx-tabs > [aria-selected="true"], html .gx-tabs > [aria-current="page"] { background: var(--gl-key-on-bg); box-shadow: var(--gl-key-on-ring), var(--gl-key-on-shadow); color: var(--gl-pen); font-weight: 700; }
.gx-tabs.fill { display: flex; max-width: 100%; }
html .gx-tabs.fill > * { flex: 1 1 auto; justify-content: center; padding: 0 10px; min-height: 40px; white-space: nowrap; }
.gx-tabs em { font-style: normal; font-size: 12px; font-weight: 700; line-height: 1; padding: 4px 7px; border-radius: 999px; background: rgba(43, 68, 176, .1); color: var(--gl-ink-2); }
.gx-tabs em.new { background: var(--gl-pen); color: #fff; }
@media (max-width: 599.98px) { html .gx-tabs.fill > * { padding: 0 6px; gap: 5px; font-size: 13.5px; } .gx-tabs.fill em { padding: 4px 6px; font-size: 11.5px; } }
@media (min-width: 600px) { .gx-tabs.fill { display: inline-flex; } html .gx-tabs.fill > * { flex: none; padding: 0 16px; } }

/* ---- gx-pager: Previous, "Page 2 of 5", Next ---- */
.gx-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; font-size: 14px; color: var(--gl-ink-2); }
.gx-pager > :first-child { justify-self: start; }
.gx-pager > :last-child { justify-self: end; }

/* ---- gx-more: a quiet disclosure (details/summary; the chevron turns) ---- */
.gx-more > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 600; color: var(--gl-pen); }
.gx-more > summary::-webkit-details-marker { display: none; }
.gx-more > summary .gx-ic { width: 16px; height: 16px; transition: transform .15s; }
.gx-more[open] > summary .gx-ic { transform: rotate(180deg); }

/* ---- gx-empty: nothing here yet. In a card: a well, a bold line, a sentence. .page is the whole page's
   empty state (no websites yet): larger, with room for a button under it. ---- */
.gx-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 36px 24px; }
.gx-empty .gx-well { width: 56px; height: 56px; border-radius: 18px; margin-bottom: 12px; }
.gx-empty .gx-well .gx-ic { width: 26px; height: 26px; }
.gx-empty b, .gx-empty h3 { display: block; margin: 0; font-size: 17px; font-weight: 700; }
.gx-empty p { max-width: 24em; margin: 4px 0 0; font-size: 14px; color: var(--gl-ink-2); }
.gx-empty.page { padding: 56px 16px 40px; }
.gx-empty.page .gx-well { width: 72px; height: 72px; border-radius: 22px; margin-bottom: 18px; }
.gx-empty.page .gx-well .gx-ic { width: 32px; height: 32px; stroke-width: 1.7; }
.gx-empty.page h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.gx-empty.page p { max-width: 22em; margin: 6px 0 22px; font-size: 15px; }

/* =====================================================================================================
   4. THE SHELL: the one nav for every owner page (user/user_nav.html).
     Desktop (1024 px up)   .gx-nav is a floating panel rail standing in a 256 px column; html.gx-mini folds
                            it to icons (the fold is remembered per browser).
     Phone (under 1024 px)  .gx-dock, the editor's capsule (H5 keys, J3 spacing), and .gx-menu, its Menu
                            (direction D: keys, then the quiet strip on a recess). No top bar.
   Layers: page content, then the rail and the dock's scrim (41), the Menu (42), the dock (43), then the
   pages' own dialogs (Tailwind z-50), then gx- dialogs (85 to 96).
   ===================================================================================================== */
.gx-nav, .gx-dock, .gx-menu, .gx-crumb { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; line-height: 1.45; -webkit-font-smoothing: antialiased; }
/* the nav's buttons and links on pages without Tailwind's reset (the data pages): same font, no underline */
.gx-nav button, .gx-dock button, .gx-menu button, .gx-modal button { font: inherit; }
.gx-modal a, a.gx-crumb { text-decoration: none; }
.gx-modal p { margin-bottom: 0; }
.gx-nav, .gx-nav *, .gx-dock, .gx-dock *, .gx-menu, .gx-menu *, .gx-modal, .gx-modal *, .gx-crumb, .gx-crumb * { box-sizing: border-box; }
.gx-nav a, .gx-dock a, .gx-menu a, .gx-crumb a { text-decoration: none; }
.gx-nav, .gx-dock, .gx-menu { display: none; }

/* ---- the nav's rows. Every row is its own glass key (Jake 2026-11-23: "make each button on the nav its own
   little glass button"; the owners are older, so a row must read as something to press at a glance).
     at rest   key glass: nearly clear, the unevenly lit rim, a lip at its foot, a soft shadow; a capsule 40 px high
     hover     brighter glass, lifted 1 px on a deeper shadow (mouse only)
     pressed   key-on while the button is down
     gx-on     the page you are on: key-on (tinted glass, a 2 px pen ring inside it, pen words, bold)
     locked    not open yet: no glass at all, a dashed outline, a lock, slate words; it does not lift
   The shadow is the key's, pulled in (--gx-navkey-shadow) so 5 px between keys stays clean. ---- */
.gx-nav-head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 8px; }
.gx-nav-brand { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: var(--gl-ink); }
.gx-nav-brand img { width: 32px; height: 32px; border-radius: 9px; flex: none; }
.gx-nav-site { display: flex; align-items: center; gap: 10px; padding: 6px 8px; margin-bottom: 6px; border-radius: 14px; color: var(--gl-ink); background: var(--gl-cell-bg); box-shadow: var(--gl-cell-shadow), inset 0 0 0 1px rgba(255, 255, 255, .9); }
.gx-nav-site b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 15.5px; line-height: 1.2; font-weight: 700; overflow: hidden; overflow-wrap: anywhere; }   /* a long business name wraps to two lines, never cut to one */
.gx-nav-site small { display: flex; align-items: center; gap: 3px; font-size: 13.5px; font-weight: 600; color: var(--gl-pen); }
.gx-nav-site small .gx-ic { width: 12px; height: 12px; stroke-width: 2.6; }
/* the keys stand in a column, 5 px apart; the room round them is for their shadows (a scroller clips what leaves it) */
.gx-nav-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 5px; margin: 0 -6px; padding: 2px 6px 6px; scrollbar-width: thin; scrollbar-color: rgba(43, 68, 176, .25) transparent; }
.gx-nav-sec { flex: none; padding: 4px 12px 0; font-size: 12px; line-height: 1.3; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--gl-label); }
html .gx-nav-row {
    position: relative; display: flex; align-items: center; gap: 11px; flex: none; width: 100%; height: 44px; padding: 0 14px 0 12px; margin: 0; border: 0; border-radius: 22px;
    background: var(--gl-key-bg); box-shadow: var(--gx-navkey-shadow); --gx-rim: var(--gl-key-rim); --gx-rim-w: var(--gl-key-rim-w);
    font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; color: var(--gl-key-fg); white-space: nowrap; text-align: left; cursor: pointer;   /* 17 px: older owners (Jake 2026-11-23) */
    transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.gx-nav-row .gx-ic { color: var(--gl-key-icon); width: 24px; height: 24px; }   /* larger icons for older owners (Jake 2026-11-23) */
.gx-nav-row > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.gx-nav-row .gx-badge { position: relative; z-index: 1; }      /* over the lit edge */
@media (hover: hover) {
    html .gx-nav-row:not(.gx-on):not(.locked):hover { background: var(--gx-navkey-hover-bg); box-shadow: var(--gx-navkey-hover-shadow); transform: translateY(-1px); }
}
/* pressed (while the button is down), and the page you are on */
html .gx-nav-row:not(.locked):active, html .gx-nav-row.gx-on { background: var(--gl-key-on-bg); box-shadow: var(--gl-key-on-ring), var(--gl-key-on-shadow); color: var(--gl-pen); transform: none; }
.gx-nav-row:not(.locked):active::after, .gx-nav-row.gx-on::after { content: none; }
html .gx-nav-row.gx-on { font-weight: 800; }
.gx-nav-row.gx-on .gx-ic { stroke-width: 2.4; }
/* a row that is not open yet (Analytics before the site is live): no glass, a dashed outline, a lock, slate
   words (the Menu's locked key, as a row); its float says why ("Publish to unlock") */
html .gx-nav-row.locked { background: none; box-shadow: none; border: 1.5px dashed rgba(43, 68, 176, .38); padding: 0 12.5px 0 10.5px; font-weight: 500; color: var(--gl-label); cursor: default; transition: none; }
.gx-nav-row.locked::after { content: none; }
.gx-nav-row.locked > .gx-ic:first-child { color: var(--gl-ink-3); }
.gx-nav-row.locked .gx-nav-lock { width: 17px; height: 17px; color: var(--gl-label); }
/* gx-nav-new: "New Website" at the head of the no-site nav: the same key, bold, with room under it; the page
   keeps its one jewel in its header. Folds to a round plus. */
html .gx-nav-row.gx-nav-new { margin: 2px 0 10px; font-weight: 700; }
.gx-nav-foot { margin-top: 2px; padding-top: 8px; border-top: var(--gl-hair); }
.gx-nav-user { display: flex; align-items: center; gap: 10px; padding: 8px 4px 0 6px; color: var(--gl-ink); }
.gx-nav-user b { display: block; font-size: 15.5px; line-height: 1.25; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-nav-user small { display: block; font-size: 13.5px; color: var(--gl-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-nav-mini { display: none; }

/* ---- gx-crumb: the small logo and site name at the head of a phone page that has no gx-head yet (the
   dock has no top bar). A page with a gx-head carries the same line in its header, so this one goes. ---- */
.gx-crumb { display: none; }

/* ---- desktop: the floating rail, inside the 256 px column every page already leaves for the nav ---- */
@media (min-width: 1024px) {
    html.gx-shell { --gx-rail: 256px; }
    html.gx-shell.gx-mini { --gx-rail: 88px; }
    .gx-nav {
        position: fixed; z-index: 40; left: 12px; top: 12px; bottom: 12px; width: 236px; display: flex; flex-direction: column; padding: 12px;
        /* the editor's side panel: radius 20, a lighter shadow at rest, a little frostier for the small words */
        --gl-panel-r: 20px; --gl-panel-shadow: 0 8px 26px rgba(16, 24, 64, .14), inset 0 1.5px 0 rgba(255, 255, 255, .88);
        --gl-panel-bg: linear-gradient(180deg, rgba(246, 248, 255, .74), rgba(246, 248, 255, .68));
    }
    .gx-nav > * { position: relative; z-index: 1; }
    /* the dashboard's launch offer bar is fixed across the top (elements/_launch_offer_bar.html) */
    body.has-launch-bar .gx-nav { top: calc(var(--launch-bar-h, 0px) + 12px); }
    html .gx-nav-mini { display: inline-grid; }
    /* folded to icons */
    html.gx-mini .gx-nav { width: 64px; padding: 12px 8px; }
    html.gx-mini .gx-nav-brand b, html.gx-mini .gx-nav-site > span:not(.gx-well), html.gx-mini .gx-nav-row > span, html.gx-mini .gx-nav-user > span:not(.gx-well),
    html.gx-mini .gx-nav-user > .gx-chip, html.gx-mini .gx-nav-row .gx-nav-lock { display: none; }
    html.gx-mini .gx-nav-head { flex-direction: column; gap: 8px; padding: 2px 0 8px; }
    html.gx-mini .gx-nav-brand { flex: none; }
    html.gx-mini .gx-nav-site { justify-content: center; padding: 6px; }
    html.gx-mini .gx-nav-sec { align-self: stretch; height: 1px; padding: 0; margin: 0 10px; overflow: hidden; background: rgba(43, 68, 176, .14); color: transparent; }
    /* folded: every icon is its own round glass key, 40 px across */
    html.gx-mini .gx-nav-row, html.gx-mini .gx-nav-row.locked { justify-content: center; width: 40px; padding: 0; margin-left: auto; margin-right: auto; border-radius: 50%; }
    html.gx-mini .gx-nav-row .gx-badge { position: absolute; top: -4px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; }
    html.gx-mini .gx-nav-row.gx-nav-new { margin-bottom: 10px; }
    html.gx-mini .gx-nav-user { justify-content: center; padding: 6px 0 2px; }
    html.gx-mini .gx-nav-scroll { scrollbar-width: none; }
    html.gx-mini .gx-nav-scroll::-webkit-scrollbar { display: none; }
}

/* ---- phone and tablet (under 1024 px): the capsule dock and its Menu ---- */
@media (max-width: 1023.98px) {
    html.gx-shell { --gx-foot: calc(68px + var(--gl-lift) + 12px); }      /* the room every page keeps at its foot */
    .gx-crumb { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 12px 16px 10px; font-size: 13px; font-weight: 600; color: var(--gl-ink-2); }
    .gx-crumb img { width: 24px; height: 24px; border-radius: 7px; flex: none; }
    .gx-crumb span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    body:has(.gx-head) .gx-crumb { display: none; }

    .gx-dock {
        position: fixed; z-index: 43; left: calc(var(--gl-gap) + env(safe-area-inset-left, 0px)); right: calc(var(--gl-gap) + env(safe-area-inset-right, 0px)); bottom: var(--gl-lift);
        max-width: 520px; margin: 0 auto;
        /* J3 spacing: 6 px of bar on every side of the keys; the capsule is 56 + 12 = 68 high, radius 34; keys radius 28 */
        display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 5px; padding: 6px;
        --gl-bar-bg: var(--gx-dock-bg);
    }
    /* a dock key (H5): clear glass, an icon over its word */
    html .gx-dock-key {
        position: relative; height: 56px; padding: 0; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: var(--gl-key-r);
        background: var(--gl-key-bg); box-shadow: var(--gl-key-shadow); color: var(--gl-key-icon); cursor: pointer;
        --gx-rim: var(--gl-key-rim); --gx-rim-w: var(--gl-key-rim-w);
    }
    .gx-dock-key .gx-ic { width: 22px; height: 22px; }
    .gx-dock-key > span { font-size: 13px; font-weight: 600; letter-spacing: -.2px; line-height: 1.15; color: var(--gl-key-fg); }
    /* key-on: the page you are on, or Menu while it is open. Tinted, a pen ring inside it, no lit edge, pen words, heavier. */
    html .gx-dock-key.on, html .gx-dock-key[aria-expanded="true"] { background: var(--gl-key-on-bg); box-shadow: var(--gl-key-on-ring), var(--gl-key-on-shadow); }
    .gx-dock-key.on::after, .gx-dock-key[aria-expanded="true"]::after { content: none; }
    .gx-dock-key.on > span, .gx-dock-key[aria-expanded="true"] > span { color: var(--gl-pen); font-weight: 700; }
    @media (max-width: 389.98px) { .gx-dock-key > span { letter-spacing: -.45px; } }
    .gx-dock-key .gx-badge { position: absolute; z-index: 1; top: 4px; left: calc(50% + 6px); }

    #gxMenuScrim { z-index: 41; }
    .gx-menu {
        position: fixed; z-index: 42; left: var(--gl-gap); right: var(--gl-gap); bottom: calc(68px + var(--gl-lift) + var(--gl-gap)); max-width: 520px; margin: 0 auto;
        max-height: calc(100vh - 68px - var(--gl-lift) - 3 * var(--gl-gap)); max-height: calc(100dvh - 68px - var(--gl-lift) - 3 * var(--gl-gap) - env(safe-area-inset-top, 0px));
        overflow-y: auto; overscroll-behavior: contain;
        display: block; padding: 12px; --gl-panel-bg: linear-gradient(180deg, rgba(246, 248, 255, .86), rgba(246, 248, 255, .8));
        opacity: 0; visibility: hidden; transform: translateY(14px) scale(.98); transform-origin: bottom right; pointer-events: none; transition: opacity .18s, transform .18s, visibility 0s .18s;
    }
    html.gx-menu-open .gx-menu { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
    .gx-menu > * { position: relative; z-index: 1; }
    .gx-menu-head { display: flex; align-items: center; gap: 10px; padding: 2px 2px 12px; color: var(--gl-ink); }
    .gx-menu-head a { color: var(--gl-ink); }
    .gx-menu-head b { display: block; font-size: 17px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .gx-menu-head small { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--gl-pen); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .gx-menu-head small .gx-ic { width: 13px; height: 13px; stroke-width: 2.6; }
    .gx-menu-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .gx-menu-sec { grid-column: 1 / -1; padding: 6px 6px 0; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--gl-label); }
    .gx-menu-sec:first-child { padding-top: 0; }
    /* a Menu key: the dock key's glass on the Menu's panel (no blur of its own), an icon over its word */
    html .gx-menu-key {
        position: relative; min-height: 64px; padding: 8px 4px; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 20px;
        text-align: center; background: var(--gl-key-bg); box-shadow: var(--gl-key-shadow); color: var(--gl-key-icon); cursor: pointer;
        --gx-rim: var(--gl-key-rim); --gx-rim-w: var(--gl-key-rim-w);
    }
    .gx-menu-key .gx-ic { width: 25px; height: 25px; }
    .gx-menu-key > span { font-size: 14.5px; font-weight: 600; letter-spacing: -.2px; line-height: 1.15; color: var(--gl-key-fg); }
    .gx-menu-key .gx-badge { position: absolute; z-index: 1; top: 6px; left: calc(50% + 6px); }
    @media (hover: hover) { html .gx-menu-key:not(.on):not(.locked):hover { background: var(--gx-navkey-hover-bg); transform: translateY(-1px); } }
    html .gx-menu-key:not(.locked):active, html .gx-menu-key.on { background: var(--gl-key-on-bg); box-shadow: var(--gl-key-on-ring), var(--gl-key-on-shadow); transform: none; }
    .gx-menu-key:not(.locked):active::after, .gx-menu-key.on::after { content: none; }
    .gx-menu-key.on > span { color: var(--gl-pen); font-weight: 800; }
    /* a key that is not open yet (Analytics before the site is live): no glass, a dashed outline, a lock, slate words */
    html .gx-menu-key.locked { background: none; box-shadow: none; border: 1.5px dashed rgba(43, 68, 176, .38); color: var(--gl-ink-3); }
    .gx-menu-key.locked::after { content: none; }
    .gx-menu-key.locked > span { color: var(--gl-label); }
    .gx-menu-key.locked .gx-nav-lock { position: absolute; top: 7px; right: 9px; width: 14px; height: 14px; color: var(--gl-label); }
    /* recess: the quiet strip (Settings, Support, Account, Sign Out): ghosts on a track pressed into the panel */
    .gx-menu-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; margin-top: 10px; padding: 4px; background: var(--gl-recess-bg); box-shadow: var(--gl-recess-shadow); border-radius: var(--gl-recess-r); }
    .gx-menu-strip.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    html .gx-menu-strip > * { min-height: 52px; padding: 0; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 22px; font-size: 13px; font-weight: 600; line-height: 1.15; color: var(--gl-recess-fg); cursor: pointer; }
    html .gx-menu-strip > *:active, html .gx-menu-strip > .on { background: var(--gl-key-on-bg); }
    .gx-menu-strip > .on { box-shadow: var(--gl-key-on-ring); color: var(--gl-pen); font-weight: 700; }
}

/* ---- the Support sheet's own layout (user_nav.html) ---- */
.gx-support-ways { display: grid; gap: 8px; }
.gx-support-ways .gx-tile { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: var(--gl-ink); }
.gx-support-ways b { display: block; font-size: 15px; font-weight: 700; }
.gx-support-ways small { display: block; font-size: 13px; color: var(--gl-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-support-ways .gx-tile > .gx-ic { color: var(--gl-ink-3); width: 18px; height: 18px; }
.gx-support-or { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: var(--gl-label); }
.gx-support-or::before, .gx-support-or::after { content: ''; flex: 1 1 auto; border-top: var(--gl-hair); }
@media (min-width: 600px) {
    .gx-support-ways { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gx-support-ways .gx-tile { display: block; padding: 14px; }
    .gx-support-ways .gx-well { margin-bottom: 10px; }
    .gx-support-ways .gx-tile > .gx-ic { display: none; }
}

/* =====================================================================================================
   5. PAGE ROOM. What keeps a page clear of the nav. One place, so no page needs editing for the new nav.
      html.gx-shell is added by user_nav.html's first script, so these touch only pages that have the nav.
        desktop   --gx-rail is the column the rail stands in (256 px; 88 px folded). The old pages already
                  leave 256 px with lg:ml-64 / lg:pl-64 / lg:left-64; those follow --gx-rail, so they move
                  when the rail folds. A restyled page uses <main class="gx-main">.
        phone     no top bar any more: the old 64 px spacer (<div class="lg:hidden h-16">) and the old top
                  padding (pt-16 lg:pt-8) are taken back. --gx-foot is the dock's height; the body keeps
                  that much room at its foot so the dock never covers the last thing on a page.
   ===================================================================================================== */
.gx-main { padding: 16px 16px 32px; max-width: none; }   /* fills the screen (Jake 2026-11-23: no empty band on the right); a page that needs a reading width caps its own card */
@media (max-width: 1023.98px) and (min-width: 600px) { .gx-main { padding-left: 24px; padding-right: 24px; margin: 0 auto; } }
@media (min-width: 1024px) {
    .gx-main { margin-left: var(--gx-rail); padding: 28px 36px 48px 28px; max-width: none; }
    html.gx-shell .lg\:ml-64 { margin-left: var(--gx-rail); }
    html.gx-shell .lg\:pl-64 { padding-left: var(--gx-rail); }
    html.gx-shell .lg\:left-64 { left: var(--gx-rail); }
}
@media (max-width: 1023.98px) {
    html.gx-shell body { padding-bottom: var(--gx-foot); }
    html.gx-shell body > .lg\:hidden.h-16 { display: none; }
    html.gx-shell .pt-16.lg\:pt-8, html.gx-shell .pt-16.lg\:pt-0 { padding-top: 1rem; }
    /* an old page's toast or round button pinned near the foot of the screen (fixed bottom-6 right-6) stands above the dock */
    html.gx-shell .fixed.bottom-4:not(.inset-0), html.gx-shell .fixed.bottom-6:not(.inset-0), html.gx-shell .fixed.bottom-8:not(.inset-0) { bottom: calc(var(--gx-foot) + 8px); }
}

/* ---- the payment banner (billing_banner.html, which the editor shares, so it is restyled from here and not
   edited): a pale red card with a solid red "Update card" button (A6), at the top of the content. ---- */
html.gx-shell .pxl-bb-wrap { margin: 12px 16px 0; }
html.gx-shell .pxl-bb {
    flex-wrap: wrap; gap: 10px 12px; padding: 12px 14px; margin: 0 0 8px; color: var(--gl-ink);
    background: var(--gl-danger-bg); border: 1.5px solid var(--gl-danger-line); border-radius: 20px; box-shadow: var(--gl-lift-sm);
}
html.gx-shell .pxl-bb + .pxl-bb { border-top: 1.5px solid var(--gl-danger-line); }
html.gx-shell .pxl-bb-icon { width: 36px; height: 36px; padding: 8px; margin: 0; border-radius: 50%; color: var(--gl-danger-fg); background: #fff; box-shadow: inset 0 0 0 1.5px var(--gl-danger-line); }
html.gx-shell .pxl-bb-text { flex: 1 1 200px; color: var(--gl-ink); font-weight: 500; line-height: 1.4; }
html.gx-shell .pxl-bb-btn { height: 40px; margin: 0; padding: 0 18px; color: #fff; background: var(--gl-danger-fill); box-shadow: var(--gl-danger-shadow); }
html.gx-shell .pxl-bb-btn:hover { background: var(--gl-danger-fill); filter: brightness(1.06); transform: none; }
@media (max-width: 599.98px) { html.gx-shell .pxl-bb-btn { flex: 1 1 100%; justify-content: center; height: 44px; } }
@media (min-width: 600px) and (max-width: 1023.98px) { html.gx-shell .pxl-bb-wrap { margin: 12px 24px 0; } }
@media (min-width: 1024px) { html.gx-shell .pxl-bb-wrap { margin: 16px 32px 0 calc(var(--gx-rail) + 32px); } }

/* =====================================================================================================
   6. THE REMAP. Today's Tailwind colour classes, drawn as glass, for pages that have not had their pass.
      The colour NAMES keep their meaning in elements/web_app_head.html's Tailwind config (off-white, cream,
      warm-beige and taupe are now the desk's near-whites and pen tints; the greys are cool slates; brand-blue
      is pen blue; brand-black stays #1A1A1A because it is also the colour of words). What a changed value
      cannot do is here: black FILLS become the jewel, black overlays the navy scrim, beige lines the pen
      hairline, black focus rings the pen ring, and green (fills, panels, words) pen blue. Delete a block when no page uses its class any more.
   ===================================================================================================== */
/* ---- T3: a black fill is the jewel (pen-blue glass). The glow is only on things that are pressed. ---- */
html .bg-brand-black, html .bg-black, html .hover\:bg-brand-black:hover, html .hover\:bg-black:hover, html .group:hover .group-hover\:bg-brand-black,
html .peer:checked ~ .peer-checked\:bg-brand-black {
    background-color: var(--gl-jewel-color); background-image: var(--gl-jewel-bg);
}
html a.bg-brand-black, html button.bg-brand-black, html input.bg-brand-black, html a.bg-black, html button.bg-black, html input.bg-black { box-shadow: var(--gl-jewel-shadow-sm); text-shadow: 0 1px 1px rgba(20, 32, 100, .35); }
html a.bg-brand-black:hover, html button.bg-brand-black:hover, html a.bg-black:hover, html button.bg-black:hover { filter: brightness(1.07); }
html .hover\:bg-dark-gray:hover { background-color: var(--gl-pen); }
/* words on such a fill: the greys and the blue that were picked to sit on black are dim on pen blue, so there they
   are a soft white. Not inside an overlay (bg-opacity), and not on a light card that itself sits on the fill. */
html :is(.bg-brand-black, .bg-black):not([class*="bg-opacity-"]) :is(.text-light-gray, .text-medium-gray, .text-deep-taupe, .text-taupe, .text-brand-blue):not(:is(.bg-brand-black, .bg-black) :is(.bg-white, .bg-cream, .bg-off-white, .bg-warm-beige) *),
html :is(.bg-brand-black, .bg-black):not([class*="bg-opacity-"]) [style*="color: #4D66DD"]:not(:is(.bg-brand-black, .bg-black) :is(.bg-white, .bg-cream, .bg-off-white, .bg-warm-beige) *) { color: rgba(255, 255, 255, .82) !important; }
/* ---- T12: a black overlay is the navy scrim. Tailwind's own opacity still counts (bg-opacity-0 stays clear),
   scaled so its usual 50% lands on the scrim's 30%. A full-screen one also softens the page behind it. ---- */
html .bg-brand-black[class*="bg-opacity-"], html .bg-black[class*="bg-opacity-"] { background-color: rgb(20 30 80 / calc(var(--tw-bg-opacity, 1) * .6)); background-image: none; box-shadow: none; }
html .fixed.inset-0.bg-black\/40, html .fixed.inset-0.bg-black\/50, html .fixed.inset-0.bg-black\/60, html .fixed.inset-0.bg-brand-black\/40, html .fixed.inset-0.bg-brand-black\/50,
html .fixed.inset-0.bg-brand-black\/55, html .fixed.inset-0.bg-brand-black\/60 { background-color: var(--gl-scrim-deep); }
html .fixed.inset-0.bg-black\/40, html .fixed.inset-0.bg-black\/50, html .fixed.inset-0.bg-black\/60, html .fixed.inset-0.bg-brand-black\/40, html .fixed.inset-0.bg-brand-black\/50,
html .fixed.inset-0.bg-brand-black\/55, html .fixed.inset-0.bg-brand-black\/60, html .fixed.inset-0.bg-brand-black[class*="bg-opacity-"], html .fixed.inset-0.bg-black[class*="bg-opacity-"] {
    -webkit-backdrop-filter: var(--gl-scrim-blur); backdrop-filter: var(--gl-scrim-blur);
}
/* a see-through black that is NOT a full-screen overlay (a label on a photo, a hover veil) keeps its strength, in navy,
   so white words on it stay readable */
html :not(.fixed).bg-black\/40, html :not(.fixed).bg-brand-black\/40 { background-color: rgba(20, 30, 80, .4); }
html :not(.fixed).bg-black\/50, html :not(.fixed).bg-brand-black\/50 { background-color: rgba(20, 30, 80, .5); }
html :not(.fixed).bg-black\/60, html :not(.fixed).bg-brand-black\/60 { background-color: rgba(20, 30, 80, .6); }
html .bg-black\/75, html .bg-black\/80, html .bg-brand-black\/80 { background-color: rgba(16, 24, 64, .78); }
/* ---- T8, T6: beige lines are the pen hairline; beige fills the tint ---- */
html .border-warm-beige { border-color: rgba(43, 68, 176, .12); }
html .bg-warm-beige { background-color: var(--gl-tint); }
/* ---- T9, T5: black and taupe rings and edges are pen blue (A5: solid) ---- */
html .border-brand-black, html .hover\:border-brand-black:hover, html .focus\:border-brand-black:focus, html .focus\:border-taupe:focus,
html .peer:checked ~ .peer-checked\:border-brand-black { border-color: var(--gl-pen); }
html .focus\:ring-taupe:focus, html .focus\:ring-brand-black:focus, html .focus\:ring-brand-blue:focus { --tw-ring-color: var(--gl-pen); }
html .ring-brand-black { --tw-ring-color: var(--gl-pen); }

/* ---- A1 (Jake 2026-11-23): no green anywhere. Red-green colour-blind eyes see green as a dull yellow-brown, close to
   the amber of a warning, so "go" and "good news" are pen blue: a strong green FILL (a Publish button, a Go Live
   gradient, a status dot) is the jewel; a pale green panel is the tint with a pen line; green words and icons are pen
   blue (the tick or check icon beside them is what says "done"). Light greens that were picked to sit on a black card
   become a pale blue, because that card is now the pen-blue jewel. Tailwind's own hover rules outweigh a plain class,
   so each hover has its own line. ---- */
html :is(.bg-green-400, .bg-green-500, .bg-green-600, .bg-green-700, .bg-green-800, .bg-emerald-400, .bg-emerald-500, .bg-emerald-600, .bg-emerald-700),
html :is(.hover\:bg-green-500, .hover\:bg-green-600, .hover\:bg-green-700, .hover\:bg-green-800, .hover\:bg-emerald-600, .hover\:bg-emerald-700):hover {
    background-color: var(--gl-jewel-color); background-image: var(--gl-jewel-bg);
}
html :is(a, button, input):is(.bg-green-400, .bg-green-500, .bg-green-600, .bg-green-700, .bg-emerald-500, .bg-emerald-600, .from-green-400, .from-green-500, .from-green-600, .from-emerald-400, .from-emerald-500, .from-emerald-600) {
    box-shadow: var(--gl-jewel-shadow-sm); text-shadow: 0 1px 1px rgba(20, 32, 100, .35);
}
html :is(a, button):is(.bg-green-500, .bg-green-600, .bg-green-700, .bg-emerald-500, .bg-emerald-600, .from-green-500, .from-green-600, .from-emerald-500):hover { filter: brightness(1.07); }
/* green gradients (bg-gradient-to-r from-green-500 to-emerald-600): the same stops, in pen blue */
html :is(.from-green-400, .from-green-500, .from-green-600, .from-green-700, .from-emerald-400, .from-emerald-500, .from-emerald-600),
html :is(.hover\:from-green-600, .hover\:from-green-700, .hover\:from-emerald-600):hover {
    --tw-gradient-from: #5270E0 var(--tw-gradient-from-position); --tw-gradient-to: rgb(82 112 224 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
html :is(.to-green-500, .to-green-600, .to-green-700, .to-emerald-500, .to-emerald-600, .to-emerald-700),
html :is(.hover\:to-green-700, .hover\:to-emerald-700):hover { --tw-gradient-to: #2B44B0 var(--tw-gradient-to-position); }
html :is(.from-green-50, .from-green-100, .from-emerald-50, .from-emerald-100) {
    --tw-gradient-from: #F4F6FD var(--tw-gradient-from-position); --tw-gradient-to: rgb(244 246 253 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
html :is(.to-green-50, .to-green-100, .to-emerald-50, .to-emerald-100) { --tw-gradient-to: #E1E6F8 var(--tw-gradient-to-position); }
html :is(.via-green-200, .via-green-300) { --tw-gradient-to: rgb(217 223 248 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), #D9DFF8 var(--tw-gradient-via-position), var(--tw-gradient-to); }
/* pale green panels and pills: the tint, with a pen line where they had a green one */
html :is(.bg-green-50, .bg-green-100, .bg-green-200, .bg-green-300, .bg-emerald-50, .bg-emerald-100, .bg-green-500\/20, .bg-green-500\/10),
html :is(.hover\:bg-green-50, .hover\:bg-green-100):hover { background-color: var(--gl-tint); }
html .bg-green-800\/50 { background-color: rgba(255, 255, 255, .16); }
html :is(.border-green-100, .border-green-200, .border-green-300, .border-emerald-100, .border-emerald-200, .border-emerald-300, .border-green-500\/20, .border-green-500\/30, .border-emerald-400\/20),
html .hover\:border-green-200:hover { border-color: rgba(43, 68, 176, .3); }
html :is(.border-green-400, .border-green-500, .border-green-600, .border-emerald-500) { border-color: var(--gl-pen); }
html :is(.ring-green-100, .ring-green-500\/20, .ring-green-500), html .focus\:ring-green-500:focus { --tw-ring-color: var(--gl-pen); }
/* green words and icons: pen blue. On a fill that is now the jewel they are white, or they would vanish. */
html :is(.text-green-400, .text-green-500, .text-green-600, .text-green-700, .text-green-800, .text-green-900, .text-emerald-500, .text-emerald-600, .text-emerald-700, .text-emerald-800),
html :is(.hover\:text-green-600, .hover\:text-green-800, .hover\:text-green-900):hover { color: var(--gl-pen); }
html :is(.text-green-100, .text-green-200, .text-green-300, .text-emerald-300, .text-emerald-300\/80) { color: #DCE6FF; }
html :is(.bg-brand-black, .bg-black, .bg-gray-900, .bg-green-500, .bg-green-600, .bg-green-700, .bg-emerald-500, .bg-emerald-600):not([class*="bg-opacity-"]) :is(.text-green-400, .text-green-500, .text-emerald-500):not(:is(.bg-white, .bg-cream, .bg-off-white, .bg-warm-beige, .bg-green-50, .bg-green-100) *) { color: #fff; }

@media (prefers-reduced-motion: reduce) {
    .gx-page *, .gx-page *::before, .gx-page *::after, .gx-nav *, .gx-dock *, .gx-menu, .gx-menu *, .gx-modal, .gx-modal *, .gx-scrim, .gx-toast, .gx-tip { transition: none !important; animation: none !important; }
}

/* A jewel whose words may wrap to two lines (long calls to action on phones). Also in glass_marketing.css part 5, where it began. */
html .gx-btn.wrap { white-space: normal; text-align: center; line-height: 1.2; padding-top: 10px; padding-bottom: 10px; border-radius: 28px; }

/* =====================================================================================================
   7. SHARED PAGE PARTS. Rules two or more owner pages used to keep as identical copies in their own <style>
      (tidy-up 2026-11-23). Each block says which pages use it. They sit last, after THE REMAP, because that is
      where the copies used to win the cascade: a page's own <style> still comes after this file, so a page can
      change any of them for itself. A rule only one page uses stays on that page.
   ===================================================================================================== */

/* ---- gx-msgs: the stack of Django messages at the top of a page (gx-note rows). The Inbox, Contacts, a
   message, a chat, the orders list, an order and the products list. ---- */
.gx-msgs { display: grid; gap: 8px; margin: 0 0 14px; }
.gx-msgs .gx-note p { margin: 0; }
.gx-msgs .gx-note b { display: block; font-weight: 700; }      /* a note's first line, bold, above its sentence */

/* ---- gx-search with a "clear" chip at its right end (label.gx-search.has-clear, the chip a.gx-chip.sm
   .gx-search-clear). The Inbox and Contacts. ---- */
.gx-search.has-clear .gx-field { padding-right: 50px; }
html .gx-search-clear { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); }

/* ---- gx-toast.bad: a toast that says something went wrong (red words, a red ring). The products list
   and the product page. ---- */
.gx-toast.bad { color: var(--gl-danger-fg); box-shadow: var(--gl-float-shadow), inset 0 0 0 1.5px var(--gl-danger-line); }

/* ---- the store pages (store_orders, store_products, store_product_edit, store_settings) ----
   so-setup: the "not taking orders yet" notice. A warn note with its sentence, a second line from 600 px
   (so-setup-sub), and the keys that fix it. The product and settings pages also give it a reading width. */
.so-setup { margin: 0 0 14px; }
.so-setup-sub { display: none; margin-top: 2px !important; }
.so-setup-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
@media (min-width: 600px) { .so-setup-sub { display: block; } }
/* so-st: an order's state as a quiet badge (the orders list and an order). Each state has its own icon, so
   no state is told by colour:
     paid       tint, a tick                    pending    dashed ring, a clock
     processing white, a box                    shipped    white, a truck
     delivered  tint, a house with a tick       cancelled  dashed ring, an x, the word struck through
     refunded   dashed ring, the arrow that turns back */
.so-st { white-space: nowrap; }
.so-st-x { text-decoration: line-through; text-decoration-thickness: 1.5px; }

/* ---- a message and a chat (crm_submission_detail, crm_chat_detail): ms- ---- */
.ms-card { max-width: 860px; }      /* a message or a chat is for reading: the card keeps a reading width */
.ms-kind { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.ms-kind .gx-ic { width: 15px; height: 15px; }
.ms-card h2 { font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.ms-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ms-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font-size: 14px; color: var(--gl-label); }
.ms-meta b { font-weight: 600; color: var(--gl-ink); overflow-wrap: anywhere; }
/* a section of the card: the chat */
.ms-sec { margin-top: 22px; padding-top: 18px; border-top: var(--gl-hair); }
.ms-sec h3 { font-size: 16px; font-weight: 700; }
.ms-sec > p { margin-top: 2px; font-size: 14px; color: var(--gl-ink-2); }
.ms-sec .gx-thread { margin-top: 14px; }
.ms-card .gx-thread > div { white-space: pre-wrap; }
.ms-card .gx-thread small { white-space: normal; }
.ms-card .gx-thread > a { align-self: flex-start; margin: -4px 0 4px 4px; font-size: 14px; }      /* the link under an answer ("This answer was wrong? Fix it ...") */
/* the foot: the keys share the row on a phone; from 600 px they keep their size and delete goes right */
.ms-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: var(--gl-hair); }
.ms-foot form { display: flex; flex: 1 1 auto; margin: 0; }
html .ms-foot .gx-key, html .ms-foot .gx-danger { flex: 1 1 auto; padding: 0 14px; }
@media (min-width: 600px) {
    .ms-foot form { flex: none; }
    html .ms-foot .gx-key, html .ms-foot .gx-danger { flex: none; padding: 0 18px; }
    .ms-foot > .gx-danger { margin-left: auto; }
}

/* ---- adding and editing a contact by hand (crm_contact_add, crm_contact_edit): cf-. The form's card keeps a
   reading width; its foot holds Cancel and the jewel, sharing the row on a phone. ---- */
.cf-card { max-width: 720px; }
.cf-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: var(--gl-hair); }
@media (max-width: 599.98px) { html .cf-foot > * { flex: 1 1 0; padding: 0 12px; } }

/* ---- the referral dashboards (partner_program/partner_dashboard.html, affiliate_dashboard.html): pd- ---- */
/* number tiles: two across on a phone, four from 760 px */
.pd-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.pd-stats .gx-stat span { display: flex; align-items: center; gap: 6px; }
.pd-stats .gx-stat span .gx-ic { width: 15px; height: 15px; stroke-width: 2.6; }
@media (min-width: 760px) { .pd-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1024px) { .pd-stats { margin-bottom: 18px; } }
/* the link card: the link and its copy key (#copy-btn, both pages), the offer or the counts beside them */
.pd-link { display: flex; flex-direction: column; gap: 14px; }
.pd-link-label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 15px; font-weight: 700; color: var(--gl-pen); }
.pd-link-label .gx-ic { width: 18px; height: 18px; }
.pd-link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pd-link code { min-width: 0; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px rgba(43, 68, 176, .16); font-size: 15px; font-weight: 600; color: var(--gl-ink); overflow-wrap: anywhere; }
#copy-btn svg { width: 18px; height: 18px; color: var(--gl-pen); }
.pd-link-side { font-size: 14.5px; color: var(--gl-ink-2); }
.pd-link-side b { color: var(--gl-ink); }
@media (min-width: 760px) { .pd-link { flex-direction: row; align-items: center; justify-content: space-between; } }
/* a section's head inside a flush card */
.pd-sec-head { padding: 16px 16px 14px; border-bottom: var(--gl-hair); }
@media (min-width: 1024px) { .pd-sec-head { padding: 20px 22px 16px; } }
/* referral rows: the amount on the right, its note under it */
.pd-row { align-items: center; }
.pd-row .gx-row-name { font-weight: 700; }
.pd-amt { flex: none; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.pd-amt small { display: block; font-size: 12.5px; font-weight: 500; color: var(--gl-label); }
/* the quiet foot: Terms, Privacy, Support */
.pd-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 18px; margin-top: 26px; padding-top: 16px; border-top: var(--gl-hair); font-size: 14px; color: var(--gl-label); }
@media (max-width: 599.98px) { .pd-foot > span { flex: 1 1 100%; text-align: center; } }
.pd-foot a { display: inline-flex; align-items: center; min-height: 36px; color: var(--gl-ink-2); font-weight: 600; }
