/* templates.flexdok.com, the site's styles (D-0030). Ported from the mockup A-0217 (round 2, 2026-12-03) by
   port/port.cjs: the mockup's four style blocks, in their order, each under a line naming it; the mockup's own notes
   inside them are kept as they were written. What the real site changed is marked "(the real site)".

   (the real site) Nunito is served by this site (D-0010's rule: fonts from our own server first; D-0030 item 3), the
   editor's own file byte for byte (spike/public/fonts/nunito/nunito-3.602-wght.woff2, OFL.txt beside it): one
   variable face, weights 400 to 900. The family keeps the name "Nunito" so every font stack below is unchanged. */
@font-face { font-family: "Nunito"; src: url("/assets/fonts/nunito-3.602-wght.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }

/* ======== block: base (the mockup's <style>) ======== */
/* ==========================================================================================================
   DIRECTION B, "STUDIO DESK", IN FLEXDOK'S BRAND: VARIANT B2, "MIDNIGHT DESK" (lane st1-lookB-brand, ST-1, Dev Center
   R-0324). A design proposal, not product code. B's desk, stacks, tool drawer and light table stay; its type, its warm
   linen, felt, wood and ink palette and its noise textures go. flexdok.com's brand comes in (read from the site's own
   tailwind.config.js, src/index.css and the classes under src/): Nunito for every word; the desk is the site's dark
   page #0b0d12 under the homepage hero's dot grid (index.css .hero-dot-grid, every 26 px); the drawer is the site's
   dark card #11141b with violet-500 controls; accents run violet-500 to fuchsia-500; links and focus rings take the
   logo's sky-blue #63a6fe; the white logo. Dark first: the bare :root holds the dark tokens, and the system's light
   setting or data-theme="light" brings the lavender desk #F6F4FC (B1's). The paper is never themed: every sheet
   stays white in both themes, and each template's own accent still washes in while its picture decodes.
   ========================================================================================================== */
:root {
  color-scheme: dark;
  /* the desk and the drawer: flexdok.com's three dark grounds */
  --desk: #0b0d12;            /* the site's dark pages (Landing.jsx, index.css .dark body) */
  --desk-deep: #0f1119;       /* the footer band */
  --felt: #11141b;            /* the tool drawer: the site's dark card (earlyAccess/styles.js CARD) */
  --felt-deep: #0b0d12;       /* a drawer bay: the desk showing through */
  --key: #1F2229;             /* a keycap's top: white 6% over the drawer, the site's dark:bg-white/5 buttons */
  --key-2: #181B22;           /* white 3% over the drawer */
  --key-skirt: #06070A;       /* a keycap's side */
  --key-on: #292247;          /* a pressed key: violet-500 at 20% over the drawer */
  --key-hi: rgba(255, 255, 255, .09);
  --lip: rgba(255, 255, 255, .05);
  /* ink: the site's dark text */
  --ink: #FFFFFF;             /* headings and titles: dark:text-white */
  --ink-2: #D1D5DB;           /* body: the homepage's dark:text-gray-300 */
  --ink-3: #9CA3AF;           /* muted: dark:text-gray-400 */
  --violet: #A78BFA;          /* accent words: violet-400, the site's dark links and focus (index.css) */
  --violet-fill: #8B5CF6;     /* violet-500: the drawer's controls, lights and switches */
  --fuchsia-fill: #D946EF;    /* fuchsia-500: where the accent runs to */
  --link: #63A6FE;            /* the logo's sky-blue: links */
  --focus: #63A6FE;           /* and focus rings */
  --focus-paper: #63A6FE;     /* a paper's keyboard ring, drawn on the desk around it */
  --rose: #F472B6;            /* a like: pink-400 (pink-500 #EC4899 measured 4.21:1 on a pressed key) */
  --star: #FBBF24;            /* amber-400 */
  --star-fill: #FBBF24;
  --paper: #FFFFFF;
  --hair: rgba(255, 255, 255, .14);   /* the site's dark:border-white/10, a touch firmer */
  --hair-2: rgba(255, 255, 255, .08);
  --sh: 0 0 0;                /* shadows */
  --glow: 139 92 246;         /* the soft violet light the white sheets glow in: violet-500 */
  --glow-a: .34;
  --stamp: #8B5CF6;           /* the studio's stamp, a shape */
  --stamp-ink: #A78BFA;       /* stamped words: IN REVIEW, FlexDok team */
  --stamp-pale: #C4B5FD;      /* the hero's stamp on dark covers: violet-300 */
  --overlay: rgba(11, 13, 18, .74);
  --tip: #F3F4F6; --tip-ink: #140d24;
  /* the cutting mat (True scale): the logo's navy with sky-blue lines; the light table */
  --mat: #12174C; --mat-line: rgba(107, 177, 229, .12); --mat-line-2: rgba(107, 177, 229, .28); --mat-ink: #6BBED8;
  --table-a: #FFFFFF; --table-b: #EDE9FE; --table-tint: 164 157 235; --table-halo: rgba(139, 92, 246, .36);
  --bezel-a: #1F2229; --bezel-b: #0b0d12; --bezel-ink: #E5E7EB; --led: #63A6FE;
  --light-a: rgba(139, 92, 246, .18);   /* the room's light: the dark hero's violet glow from the top (Hero.jsx) */
  --shade-a: rgba(217, 70, 239, .08);   /* and fuchsia in the far corner */
  --hl-1: #A78BFA; --hl-2: #C084FC; --hl-3: #E879F9;   /* the hero's words: violet-400 via purple-400 to fuchsia-400 */
  /* the desk mat: the homepage hero's dot grid (index.css .hero-dot-grid) */
  --dots: radial-gradient(circle at center, rgb(255 255 255 / .1) 0, rgb(255 255 255 / .1) 1px, transparent 1.6px);
  /* what the theme switches */
  --logo-n: none; --logo-w: block;
  --seal-blend: normal;
  --engr-sh: 0 -1px 0 rgba(0, 0, 0, .7);
  --cm-bg: #11141b; --kpi-bg: #11141b;
  /* fixed inks on white paper, both themes: the site's light text (waitlist/SectionHeader.jsx, TemplateCard.jsx) */
  --pp-ink: #140d24; --pp-ink-2: #4E4766; --pp-ink-3: #6B6480; --pp-acc: #7C3AED;
  --pp-well: #F3F1F9; --pp-skirt: #D6D3F6; --pp-neg: #9F1239; --pp-neg-bg: #FFF1F2;
  /* type: Nunito for every word, flexdok.com's typeface; B's mono labels keep tabular figures */
  --f-display: "Nunito", system-ui, "Segoe UI", sans-serif;
  --f-text: "Nunito", system-ui, "Segoe UI", sans-serif;
  --f-mono: "Nunito", system-ui, "Segoe UI", sans-serif;
  /* motion */
  --spring: cubic-bezier(.2, .8, .2, 1.12);
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* measures */
  --bar-h: 64px;
  --drawer-w: 292px;
  --cell: 196px;
  --stage-h: 248px;
  --k: .8;                    /* True scale: CSS pixels per millimetre */
}
/* the lavender desk: flexdok.com's light pages (#F6F4FC, the waitlist pages) under the site's light dot grid */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --desk: #F6F4FC; --desk-deep: #F3F1F9; --felt: #FFFFFF; --felt-deep: #F3F1F9;
    --key: #FFFFFF; --key-2: #F6F4FC; --key-skirt: #D6D3F6; --key-on: #EDE9FE;
    --key-hi: rgba(255, 255, 255, .7); --lip: rgba(255, 255, 255, .32);
    --ink: #140d24; --ink-2: #213547; --ink-3: #4E4766;
    --violet: #6D28D9; --violet-fill: #7C3AED; --fuchsia-fill: #C026D3;
    --link: #6D28D9; --focus: #7C3AED; --focus-paper: #7C3AED;
    --rose: #BE185D; --star: #B45309; --star-fill: #F59E0B;
    --hair: rgba(20, 13, 36, .14); --hair-2: rgba(20, 13, 36, .07);
    --sh: 20 13 36; --glow: 76 29 149; --glow-a: .22;
    --stamp: #6D28D9; --stamp-ink: #6D28D9;
    --overlay: rgba(20, 13, 36, .42);
    --tip: #140d24; --tip-ink: #FFFFFF;
    --table-b: #F5F3FF; --table-halo: rgba(139, 92, 246, 0);
    --bezel-a: #E8E6FA; --bezel-b: #CDC9F4; --bezel-ink: #140d24; --led: #7C3AED;
    --light-a: rgba(139, 92, 246, .1); --shade-a: rgba(240, 171, 252, .2);
    --hl-1: #7C3AED; --hl-2: #9333EA; --hl-3: #C026D3;
    --dots: radial-gradient(circle at center, rgb(17 24 39 / .12) 0, rgb(17 24 39 / .12) 1px, transparent 1.6px);
    --logo-n: block; --logo-w: none;
    --seal-blend: multiply;
    --engr-sh: 0 1px 0 rgba(255, 255, 255, .55);
    --cm-bg: #FFFFFF; --kpi-bg: #FFFFFF;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --desk: #F6F4FC; --desk-deep: #F3F1F9; --felt: #FFFFFF; --felt-deep: #F3F1F9;
  --key: #FFFFFF; --key-2: #F6F4FC; --key-skirt: #D6D3F6; --key-on: #EDE9FE;
  --key-hi: rgba(255, 255, 255, .7); --lip: rgba(255, 255, 255, .32);
  --ink: #140d24; --ink-2: #213547; --ink-3: #4E4766;
  --violet: #6D28D9; --violet-fill: #7C3AED; --fuchsia-fill: #C026D3;
  --link: #6D28D9; --focus: #7C3AED; --focus-paper: #7C3AED;
  --rose: #BE185D; --star: #B45309; --star-fill: #F59E0B;
  --hair: rgba(20, 13, 36, .14); --hair-2: rgba(20, 13, 36, .07);
  --sh: 20 13 36; --glow: 76 29 149; --glow-a: .22;
  --stamp: #6D28D9; --stamp-ink: #6D28D9;
  --overlay: rgba(20, 13, 36, .42);
  --tip: #140d24; --tip-ink: #FFFFFF;
  --table-b: #F5F3FF; --table-halo: rgba(139, 92, 246, 0);
  --bezel-a: #E8E6FA; --bezel-b: #CDC9F4; --bezel-ink: #140d24; --led: #7C3AED;
  --light-a: rgba(139, 92, 246, .1); --shade-a: rgba(240, 171, 252, .2);
  --hl-1: #7C3AED; --hl-2: #9333EA; --hl-3: #C026D3;
  --dots: radial-gradient(circle at center, rgb(17 24 39 / .12) 0, rgb(17 24 39 / .12) 1px, transparent 1.6px);
  --logo-n: block; --logo-w: none;
  --seal-blend: multiply;
  --engr-sh: 0 1px 0 rgba(255, 255, 255, .55);
  --cm-bg: #FFFFFF; --kpi-bg: #FFFFFF;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 12px); }
/* the room's light: fixed behind everything (z-index -1), so it stays put as the desk scrolls under it, and never
   lies over a paper. B2: flexdok.com's hero glow, violet-500 from the top and a little fuchsia in the far corner */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(64% 72% at 80% 4%, var(--light-a), transparent 72%), radial-gradient(80% 64% at 4% 108%, var(--shade-a), transparent 70%);
}
body {
  margin: 0; min-height: 100vh; color: var(--ink); background-color: var(--desk);
  background-image: var(--dots); background-size: 26px 26px;
  font: 400 15px/1.5 var(--f-text); font-optical-sizing: auto; font-synthesis: none;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--desk); text-decoration: none; font-weight: 700; }
.skip:focus { top: 10px; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; --pl: var(--violet-fill); }
.mono { font-family: var(--f-mono); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- the header bar ---------- */
.bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; height: var(--bar-h);
  display: flex; align-items: center; gap: 22px;
  padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px));
  background: color-mix(in oklch, var(--desk) 93%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair-2); box-shadow: 0 8px 20px -18px rgb(var(--sh) / .5);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 41; background: var(--desk); }.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
/* the logo: flexdok.com's own files (public/logos), never redrawn: the white one on the midnight desk, the navy one on
   the lavender desk. Each is one data: URI drawn as a background, so the markup carries no picture. */
/* (the real site) the logo is the ™ lockup pair (D-0029, D-0030 item 5), 386 x 90 each, copied byte for byte from
   spike/tools/brand/bar-logo-tm-light.webp (the colour lockup, for the lavender desk) and -dark.webp (the white one,
   for the midnight desk); the mockup drew flexdok.com's logo files, 481.732 x 109.638 */
.brand .logo { position: relative; display: block; flex: none; height: 28px; aspect-ratio: 386 / 90; }
.logo > span { position: absolute; inset: 0; background-position: left center; background-size: contain; background-repeat: no-repeat; }
.logo .lg-n { display: var(--logo-n); background-image: url("/assets/brand/logo-tm-light.webp"); }
.logo .lg-w { display: var(--logo-w); background-image: url("/assets/brand/logo-tm-dark.webp"); }
/* the mark alone (flexdok-icon.svg): FlexDok's avatar wherever the author shows */
.mk { display: inline-block; flex: none; background-image: url("/assets/brand/mark.png"); background-position: center; background-size: contain; background-repeat: no-repeat; }
.brand i { width: 1px; height: 20px; background: var(--hair); }
.brand > span:last-child { font: 700 18px/1 var(--f-display); letter-spacing: -.01em; color: var(--ink-2); }
.nav { display: flex; gap: 4px; margin-left: 10px; }
.nav a { padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); background: var(--hair-2); }
.nav a[aria-current="page"] { color: var(--ink); background: color-mix(in oklch, var(--ink) 8%, transparent); }
.bar-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--hair); background: transparent; font-weight: 650; font-size: 13.5px; text-decoration: none; white-space: nowrap;
}
.pill:hover { background: var(--hair-2); }
.pill .ic { width: 18px; height: 18px; }
.lampbtn { width: 40px; padding: 0; justify-content: center; }
.lampbtn[aria-pressed="true"] { background: color-mix(in oklch, var(--violet) 18%, transparent); border-color: color-mix(in oklch, var(--violet) 40%, transparent); }

/* ---------- the layout ---------- */
.layout { display: grid; grid-template-columns: var(--drawer-w) minmax(0, 1fr); align-items: start; }
.layout.wide { grid-template-columns: minmax(0, 1fr); }
.layout.wide > .drawer { display: none; }
main { min-width: 0; padding: 26px max(28px, env(safe-area-inset-right, 0px)) 56px 34px; }

/* ---------- the tool drawer ---------- */
.drawer {
  position: sticky; top: calc(var(--bar-h) + env(safe-area-inset-top, 0px)); height: calc(100dvh - var(--bar-h) - env(safe-area-inset-top, 0px));
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  background-color: var(--felt);
  box-shadow: inset -1px 0 0 var(--hair-2), 14px 0 26px -22px rgb(var(--sh) / .55);
  padding: 0 16px 28px max(16px, env(safe-area-inset-left, 0px));
}
.dw-head { display: none; }
.dw-search { position: sticky; top: 0; z-index: 3; padding: 16px 0 12px; margin: 0 -16px 4px; padding-inline: 16px; background-color: var(--felt); box-shadow: 0 10px 12px -12px rgb(var(--sh) / .35); }
.field {
  display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 10px 0 13px; border-radius: 13px;
  background: var(--key); color: var(--ink);
  box-shadow: inset 0 2px 4px rgb(var(--sh) / .16), inset 0 0 0 1px var(--hair);
}
.field:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
.field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 15px; }
.field input::placeholder { color: var(--ink-3); opacity: 1; }
.kbd { font: 600 11px/1 var(--f-mono); font-variant-numeric: tabular-nums; padding: 4px 6px 5px; border-radius: 6px; background: var(--key-2); color: var(--ink-3); box-shadow: 0 1px 0 var(--key-skirt); }
.count-line { margin: 8px 2px 0; font: 500 11.5px/1.3 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink-3); }
.bay {
  margin-top: 12px; padding: 12px 12px 14px; border-radius: 15px;
  background: color-mix(in oklch, var(--felt-deep) 72%, transparent);
  box-shadow: inset 0 2px 5px rgb(var(--sh) / .13), inset 0 0 0 1px var(--hair-2), 0 1px 0 var(--lip);
}
.engr {
  display: flex; align-items: center; justify-content: space-between; width: 100%; margin: 0 0 10px; padding: 0; border: 0; background: none;
  font: 700 10.5px/1 var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
  text-shadow: var(--engr-sh);
}
button.engr { cursor: pointer; }
.hx { margin: 0; font-size: inherit; }
.engr .ic { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.engr[aria-expanded="false"] .ic { transform: rotate(-90deg); }
.engr + [data-body] { margin-top: 0; }
/* keycaps */
.keys { display: flex; flex-wrap: wrap; gap: 7px; }
.key {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 8px 11px 9px;
  border: 0; border-radius: 10px; cursor: pointer; font-weight: 620; font-size: 13px; line-height: 1.1; color: var(--ink); text-align: left;
  background: linear-gradient(var(--key), var(--key-2));
  box-shadow: 0 2.5px 0 var(--key-skirt), 0 4px 7px -3px rgb(var(--sh) / .45), inset 0 1px 0 var(--key-hi);
  transition: transform .09s var(--ease);
}
.key:hover { background: var(--key); }
.key:active, .key[aria-pressed="true"], .key[aria-checked="true"], .key.on {
  transform: translateY(2px);
  box-shadow: 0 .5px 0 var(--key-skirt), inset 0 2px 5px rgb(var(--sh) / .22), inset 0 0 0 1px color-mix(in oklch, var(--violet-fill) 55%, transparent);
  background: var(--key-on);
}
.key[aria-pressed="true"]::after, .key[aria-checked="true"]::after, .key.on::after {
  content: ""; position: absolute; top: 5px; right: 5px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--violet-fill); box-shadow: 0 0 6px 1px color-mix(in oklch, var(--violet-fill) 70%, transparent);
}
.key .n { font: 500 10.5px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink-3); }
.key[disabled], .key[aria-disabled="true"] { opacity: .45; cursor: default; }
a.key { text-decoration: none; }
.key .ic { width: 17px; height: 17px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.seg .key { flex-direction: column; gap: 5px; padding: 9px 4px 8px; font-size: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.grid2 .key { justify-content: space-between; }
/* the surprise key */
.surprise { width: 100%; justify-content: flex-start; gap: 12px; min-height: 52px; padding: 8px 12px; font-size: 14px; font-weight: 700; }
.die { width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--paper); box-shadow: inset 0 0 0 1px rgb(var(--sh) / .18), 0 2px 3px rgb(var(--sh) / .25); display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 5px; transition: transform .6s var(--spring); }
.die i { width: 6px; height: 6px; border-radius: 50%; background: var(--pp-ink); place-self: center; opacity: 0; }
.die[data-n="1"] i:nth-child(5), .die[data-n="2"] i:is(:nth-child(1), :nth-child(9)), .die[data-n="3"] i:is(:nth-child(1), :nth-child(5), :nth-child(9)),
.die[data-n="4"] i:is(:nth-child(1), :nth-child(3), :nth-child(7), :nth-child(9)), .die[data-n="5"] i:is(:nth-child(1), :nth-child(3), :nth-child(5), :nth-child(7), :nth-child(9)),
.die[data-n="6"] i:is(:nth-child(1), :nth-child(3), :nth-child(4), :nth-child(6), :nth-child(7), :nth-child(9)) { opacity: 1; }
.surprise small { display: block; font: 500 11px/1.3 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink-3); margin-top: 3px; }
/* slide switches */
.switch {
  display: flex; align-items: center; gap: 11px; width: 100%; min-height: 40px; padding: 4px 2px; border: 0; background: none; cursor: pointer; text-align: left;
  font-weight: 620; font-size: 13.5px;
}
.switch small { display: block; font: 500 11px/1.35 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink-3); margin-top: 2px; }
.track {
  position: relative; flex: none; width: 50px; height: 26px; border-radius: 999px;
  background: var(--felt-deep); box-shadow: inset 0 2px 4px rgb(var(--sh) / .35), inset 0 0 0 1px var(--hair);
}
.track::before { content: ""; position: absolute; left: 7px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: rgb(var(--sh) / .25); }
.thumb {
  position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: repeating-linear-gradient(90deg, transparent 0 3px, rgb(var(--sh) / .12) 3px 4px) center / 10px 10px no-repeat, linear-gradient(var(--key), var(--key-2));
  box-shadow: 0 2px 3px rgb(var(--sh) / .4), inset 0 1px 0 var(--key-hi);
  transition: transform .22s var(--spring);
}
.switch[aria-checked="true"] .thumb { transform: translateX(24px); }
.switch[aria-checked="true"] .track { background: linear-gradient(90deg, var(--violet-fill), var(--fuchsia-fill)); }
.switch[aria-checked="true"] .track::before { background: #FFFFFF; box-shadow: 0 0 6px 1px rgba(255, 255, 255, .7); }
/* colour chips */
.chipset { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px 7px; }
.swatch { display: grid; justify-items: center; gap: 4px; padding: 0; border: 0; background: none; cursor: pointer; }
.swatch i {
  width: 100%; aspect-ratio: 1 / 1.15; max-width: 40px; border-radius: 7px 7px 4px 4px; background: var(--c);
  box-shadow: 0 2px 0 rgb(var(--sh) / .28), 0 4px 6px -3px rgb(var(--sh) / .4), inset 0 0 0 1px rgb(0 0 0 / .1), inset 0 -9px 0 rgba(255, 255, 255, .22);
  transition: transform .18s var(--spring);
}
.swatch span { font: 500 10px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink-3); }
.swatch[aria-pressed="true"] i { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--desk), 0 0 0 4px var(--violet-fill), 0 8px 10px -4px rgb(var(--sh) / .5); }
.swatch[aria-pressed="true"] span { color: var(--ink); font-weight: 700; }
.swatch[disabled] { opacity: .35; cursor: default; }
/* paper silhouettes */
.papers { display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; gap: 6px; }
.paperbtn { display: grid; justify-items: center; align-content: end; gap: 6px; min-height: 76px; padding: 6px 0 2px; border: 0; border-radius: 9px; background: none; cursor: pointer; }
.paperbtn i { display: block; width: calc(var(--pw) * 1px); height: calc(var(--ph) * 1px); background: var(--paper); border-radius: 1.5px; box-shadow: 0 1px 2px rgb(var(--sh) / .3), 0 0 0 1px rgb(var(--sh) / .1); transition: transform .18s var(--spring); }
.paperbtn span { font: 600 10.5px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink-3); }
.paperbtn[aria-pressed="true"] { background: color-mix(in oklch, var(--ink) 7%, transparent); }
.paperbtn[aria-pressed="true"] i { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--violet-fill), 0 6px 8px -4px rgb(var(--sh) / .5); }
.paperbtn[aria-pressed="true"] span { color: var(--ink); }
/* page stacks */
.pagesel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.pagesel .key { flex-direction: column; gap: 6px; padding: 10px 4px 8px; }
.pst { position: relative; width: 20px; height: 24px; }
.pst i { position: absolute; inset: 0; background: var(--paper); border-radius: 1.5px; box-shadow: 0 0 0 1px rgb(var(--sh) / .22); }
.pst i:nth-child(2) { transform: translate(2px, -2px); } .pst i:nth-child(3) { transform: translate(4px, -4px); } .pst i:nth-child(4) { transform: translate(6px, -6px); }
/* paper tags */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 5px 10px 6px 18px; border: 0; cursor: pointer;
  border-radius: 4px 10px 10px 4px; background: var(--key); color: var(--ink-2); font-size: 12.5px; font-weight: 600; line-height: 1.1;
  box-shadow: 0 1.5px 0 var(--key-skirt), 0 3px 5px -3px rgb(var(--sh) / .4); text-decoration: none;
}
.tag::before { content: ""; position: absolute; left: 7px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--felt); box-shadow: inset 0 1px 1px rgb(var(--sh) / .45); }
.tag .n { font: 500 10px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink-3); }
.tag[aria-pressed="true"] { color: var(--ink); background: var(--key-2); transform: translateY(1.5px); box-shadow: inset 0 1px 3px rgb(var(--sh) / .25), inset 0 0 0 1px var(--hair); }
.tag[aria-pressed="true"]::after { content: ""; position: absolute; right: 6px; top: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--violet-fill); }
/* category rows */
.rows { display: grid; gap: 2px; }
.rowbtn {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 34px; padding: 6px 8px; border: 0; border-radius: 8px; cursor: pointer;
  background: none; font-size: 13.5px; font-weight: 600; text-align: left; color: var(--ink-2);
}
.rowbtn:hover { background: var(--hair-2); color: var(--ink); }
.rowbtn .n { margin-left: auto; font: 500 11px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rowbtn[aria-pressed="true"] { background: var(--key); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair), 0 1px 0 var(--key-skirt); }
.rowbtn[disabled], .tag[disabled], .paperbtn[disabled] { opacity: .42; cursor: default; }
.rowbtn[disabled]:hover { background: none; color: var(--ink-2); }
.rowbtn[aria-pressed="true"] .n { color: var(--violet); font-weight: 700; }
.rowbtn.grp { font-weight: 700; color: var(--ink); }
.rowbtn.grp .ic { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.rowbtn.grp[aria-expanded="false"] .ic { transform: rotate(-90deg); }
.subrows { display: grid; gap: 1px; margin: 2px 0 6px 14px; padding-left: 8px; border-left: 1px dashed var(--hair); }
.subrows .rowbtn { min-height: 31px; font-size: 13px; font-weight: 560; }
.fold-dot { width: 14px; height: 11px; border-radius: 2px 3px 2px 2px; background: var(--tone); flex: none; position: relative; box-shadow: inset 0 -4px 0 rgba(255,255,255,.18); }
.dw-foot { display: grid; gap: 8px; margin-top: 12px; padding: 4px 4px 0; }
.linkbtn { border: 0; background: none; padding: 6px 0; cursor: pointer; font-weight: 650; font-size: 13px; color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-align: left; }
.dw-apply { display: none; }
.msearch { display: none; }

/* ---------- the hero: the desk spread ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(300px, 460px) minmax(0, 1fr); gap: 18px; align-items: center; min-height: 430px; margin-bottom: 10px; }
.hero-copy { position: relative; padding: 26px 26px 28px 4px; }
.crop { position: absolute; width: 16px; height: 16px; border-color: var(--ink-3); border-style: solid; border-width: 0; opacity: .55; }
.crop.tl { top: 0; left: -14px; border-top-width: 1px; border-left-width: 1px; } .crop.tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.crop.bl { bottom: 0; left: -14px; border-bottom-width: 1px; border-left-width: 1px; } .crop.br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.kicker { margin: 0 0 14px; font: 600 11.5px/1.2 var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.kicker b { color: var(--violet); font-weight: 700; }
.hero h1 {
  margin: 0; font: 800 clamp(38px, 2vw + 16px, 54px)/1.02 var(--f-display); letter-spacing: -.025em; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--violet); }
/* the ink line under "the desk.": revealed left to right by two opposite translations (the clip slides in while its
   drawing slides back), so it is transform only; with motion off it is simply there */
.scribble { position: relative; display: inline-block; white-space: nowrap; }
/* the gradient words of flexdok.com's hero headline (Hero.jsx: violet-600 via purple-600 to fuchsia-600; -400 at night) */
.scribble { background: linear-gradient(90deg, var(--hl-1), var(--hl-2) 55%, var(--hl-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.scribble .ink { position: absolute; left: -2%; right: -4%; bottom: -.1em; height: .26em; overflow: hidden; pointer-events: none; }
.scribble .ink > span { display: block; height: 100%; }
.scribble svg { display: block; width: 100%; height: 100%; overflow: visible; }
.scribble path { fill: none; stroke: url(#gInk); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
html:not([data-motion="off"]) .scribble .ink { animation: inkClip .75s 1.15s cubic-bezier(.55, .1, .3, 1) both; }
html:not([data-motion="off"]) .scribble .ink > span { animation: inkDraw .75s 1.15s cubic-bezier(.55, .1, .3, 1) both; }
@keyframes inkClip { from { transform: translateX(-101%); } to { transform: none; } }
@keyframes inkDraw { from { transform: translateX(101%); } to { transform: none; } }
.lede { margin: 18px 0 0; max-width: 37ch; font-size: 16.5px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.promise { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 20px 0 0; padding: 0; list-style: none; font: 500 11.5px/1.2 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink-3); }
.promise li { display: inline-flex; align-items: center; gap: 6px; }
.promise li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); opacity: .6; }
.promise a { color: var(--link); text-underline-offset: 3px; }
/* the spread scales with its own width: every place and size is in cqw, so the hand-laid desk keeps its shape */
.spread { position: relative; width: min(100%, 720px); justify-self: end; aspect-ratio: 1.5; touch-action: pan-y; container-type: inline-size; -webkit-user-select: none; user-select: none; }
.sp {
  position: absolute; left: calc(var(--x) * 1cqw); top: calc(var(--y) * 1cqw); width: calc(var(--w) * 1cqw); aspect-ratio: var(--ar); display: block; z-index: var(--z);
  transform: translate(calc(var(--px, 0px) + var(--dx, 0px)), calc(var(--py, 0px) + var(--dy, 0px))) rotate(var(--r)); transform-origin: 50% 60%;
  transition: transform .9s var(--spring); text-decoration: none; outline: none;
}
.sp .pp { position: absolute; inset: 0; background: var(--wash); border-radius: 2px; overflow: hidden; transition: transform .35s var(--spring); }
.sp .pp img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp::before, .sp::after { content: ""; position: absolute; inset: 0; border-radius: 2px; pointer-events: none; transition: opacity .35s, transform .35s var(--spring); }
.sp::before { box-shadow: 0 1px 2px rgb(var(--sh) / .32), 0 3px 6px -2px rgb(var(--sh) / .28); }
.sp::after { box-shadow: 0 26px 40px -18px rgb(var(--sh) / .62), 0 10px 20px -12px rgb(var(--sh) / .3), 0 0 44px -10px rgb(var(--glow) / var(--glow-a)); opacity: .75; }
.sp:hover, .sp:focus-visible { z-index: 30; }
.sp:hover .pp, .sp:focus-visible .pp { transform: translateY(-10px) scale(1.035); }
.sp:hover::after, .sp:focus-visible::after { opacity: 1; transform: translateY(14px) scale(1.02); }
.sp:focus-visible .pp { outline: 2px solid var(--focus-paper); outline-offset: 5px; }
.spread.piled .sp { transform: translate(var(--pile-x), var(--pile-y)) rotate(var(--pile-r)); }
/* a sheet picked up by the mouse: it follows the hand at once, lifted, and stays where it is put down */
.spread.movable .sp { cursor: grab; }
.sp.carried { transition: none; cursor: grabbing; }
.sp.carried .pp { transform: translateY(-14px) scale(1.05); }
.sp.carried::after { opacity: 1; transform: translateY(22px) scale(1.04); }
/* one class more than the hover rules below, which come later and would otherwise win the tie */
.spread .sp.carried .lbl { opacity: 0; }
.spread .sp.carried .clip { transform: translateY(-14px) rotate(4deg) scale(1.05); }
.sp .lbl {
  position: absolute; left: 50%; bottom: -34px; translate: -50% 0; padding: 5px 9px; border-radius: 7px; white-space: nowrap; max-width: 240px; overflow: hidden; text-overflow: ellipsis;
  background: var(--tip); color: var(--tip-ink); font: 600 12px/1.2 var(--f-text); opacity: 0; transition: opacity .2s; pointer-events: none;
}
.sp:hover .lbl, .sp:focus-visible .lbl { opacity: 1; }
/* the desk's props: a pencil lying across the papers and a clip on one sheet (desktop spread only; drawn in SVG) */
.prop { position: absolute; z-index: 25; pointer-events: none; transform: translate(var(--px, 0px), var(--py, 0px)) rotate(var(--r, 0deg)); transition: transform .9s var(--spring), opacity .5s .7s; }
.prop svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 6px 4px rgb(var(--sh) / .3)) drop-shadow(0 1px 1px rgb(var(--sh) / .35)); }
.pencil { left: 47cqw; top: 58.5cqw; width: 46cqw; --r: -6deg; }
.spread.piled .prop { opacity: 0; transform: translate(0, 3cqw) rotate(var(--r, 0deg)); }
.sp .clip { position: absolute; z-index: 3; left: 12%; top: -7%; width: 9.5%; pointer-events: none; transform: rotate(4deg); transition: transform .35s var(--spring); }
.sp .clip svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 2px 1.5px rgb(var(--sh) / .42)); }
.sp:hover .clip, .sp:focus-visible .clip { transform: translateY(-10px) rotate(4deg) scale(1.035); }

/* ---------- the rubber stamp ---------- */
.seal { position: absolute; width: 56px; height: 56px; left: -15px; bottom: -13px; z-index: 6; color: var(--stamp); transform: rotate(-14deg); pointer-events: none; mix-blend-mode: var(--seal-blend); opacity: .92; }
.seal svg { width: 100%; height: 100%; display: block; overflow: visible; }
.table-seal { width: 92px; height: 92px; left: auto; right: -46px; bottom: 10%; transform: rotate(-12deg); z-index: 3; }
/* the hero's stamp lies on dark covers: a pale ink, not multiplied (round 2: violet multiplied onto dark paper vanished
   in the light theme) */
.hero-seal { left: 47.5cqw; top: 27cqw; bottom: auto; width: 11.5cqw; height: 11.5cqw; z-index: 20; transform: rotate(-16deg); opacity: .88; color: var(--stamp-pale); mix-blend-mode: normal; }

/* ---------- folders (collections) ---------- */
.sec-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 30px 0 14px; }
.sec-head h2 { margin: 0; font: 760 26px/1.05 var(--f-display); letter-spacing: -.025em; }
.sec-head p { margin: 0; color: var(--ink-3); font-size: 14px; }
.folders { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 26px 6px 22px; margin: 0 -6px; scrollbar-width: thin; }
#folders { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent); padding-right: 64px; }
.folder { position: relative; flex: 0 0 206px; height: 164px; scroll-snap-align: start; text-decoration: none; color: inherit; border: 0; padding: 0; background: none; cursor: pointer; text-align: left; }
.folder .back { position: absolute; inset: 14px 0 0; border-radius: 4px 10px 8px 8px; background-color: var(--tone); box-shadow: 0 2px 3px rgb(var(--sh) / .25); }
.folder .back::before { content: ""; position: absolute; left: 0; top: -14px; width: 46%; height: 18px; border-radius: 6px 9px 0 0; background: var(--tone); clip-path: polygon(0 0, 82% 0, 100% 100%, 0 100%); }
.folder .papers-in { position: absolute; inset: 0 16px 62px; }
.folder .papers-in span { position: absolute; bottom: 0; height: 84px; aspect-ratio: var(--ar); background: var(--wash); border-radius: 1.5px; overflow: hidden; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: transform .4s var(--spring); }
.folder .papers-in span img { width: 100%; height: 100%; object-fit: cover; display: block; }
.folder .papers-in span:nth-child(1) { left: 6px; transform: rotate(-7deg) translateY(4px); }
.folder .papers-in span:nth-child(2) { left: 52px; transform: rotate(2deg) translateY(-6px); z-index: 2; }
.folder .papers-in span:nth-child(3) { right: 4px; transform: rotate(8deg) translateY(2px); }
.folder:hover .papers-in span:nth-child(1), .folder:focus-visible .papers-in span:nth-child(1) { transform: rotate(-11deg) translate(-4px, -16px); }
.folder:hover .papers-in span:nth-child(2), .folder:focus-visible .papers-in span:nth-child(2) { transform: rotate(1deg) translateY(-26px); }
.folder:hover .papers-in span:nth-child(3), .folder:focus-visible .papers-in span:nth-child(3) { transform: rotate(12deg) translate(4px, -14px); }
.folder .front {
  position: absolute; left: 0; right: 0; bottom: 0; height: 62%; border-radius: 3px 3px 8px 8px; z-index: 3;
  background-color: color-mix(in oklch, var(--tone) 86%, white);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .25) inset, 0 10px 18px -10px rgb(var(--sh) / .55), 0 2px 3px rgb(var(--sh) / .2);
  display: flex; align-items: flex-end; padding: 0 12px 12px;
}
.folder .label { display: block; width: 100%; padding: 7px 9px 8px; border-radius: 3px; background: #FFFFFF; color: var(--pp-ink); box-shadow: 0 1px 1px rgb(0 0 0 / .18); transform: rotate(-.6deg); }
.folder .label b { display: block; font: 720 13.5px/1.15 var(--f-display); letter-spacing: -.01em; }
.folder .label span { display: block; margin-top: 3px; font: 500 10.5px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--pp-ink-3); }
.folder:focus-visible { outline: none; }
.folder:focus-visible .front { outline: 2px solid var(--focus); outline-offset: 3px; }
.folder[aria-pressed="true"] .label { box-shadow: 0 0 0 2px var(--violet-fill); }

/* ---------- the wall's head ---------- */
.wall-head { display: flex; align-items: flex-end; gap: 16px 20px; flex-wrap: wrap; margin: 26px 0 6px; padding-bottom: 14px; border-bottom: 1px solid var(--hair-2); }
.wall-head h2 { margin: 0; font: 760 26px/1.05 var(--f-display); letter-spacing: -.025em; }
.wall-head .cnt { margin: 6px 0 0; font: 500 12px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 260px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 6px 0 12px; border-radius: 999px; border: 0; cursor: pointer; background: var(--ink); color: var(--desk); font-size: 12.5px; font-weight: 650; }
.chip .ic { width: 16px; height: 16px; }
.chip.clear { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--hair); padding: 0 12px; }
.wh-end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.sortsel { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.sortsel select { height: 36px; padding: 0 30px 0 12px; border-radius: 10px; border: 0; background: var(--key); box-shadow: 0 2px 0 var(--key-skirt), inset 0 0 0 1px var(--hair-2); font-weight: 650; color: var(--ink); appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: right 14px top 16px, right 9px top 16px; background-size: 5px 5px; background-repeat: no-repeat; }
.toolsbtn { display: none; }
.hint { margin: 10px 0 0; font: 500 11.5px/1.4 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink-3); }
.hint kbd { font: inherit; padding: 1px 5px; border-radius: 4px; background: var(--key); box-shadow: 0 1px 0 var(--key-skirt); color: var(--ink-2); }
/* a touch screen (or a phone's width) gets one short line, not the keyboard's shortcuts */
.hint .h-touch { display: none; }
@media (hover: none), (max-width: 720px) { .hint .h-fine, .hint .h-keys { display: none; } .hint .h-touch { display: inline; } .tfoot .hint { display: none; } }

/* ---------- the wall of stacks ---------- */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--cell), 1fr)); gap: 48px 30px; margin: 30px 0 0; padding: 0; list-style: none; }
.card { position: relative; content-visibility: auto; contain-intrinsic-block-size: auto calc(var(--stage-h) + 104px); container-type: inline-size; min-width: 0; }
.hit { display: block; color: inherit; text-decoration: none; outline: none; -webkit-tap-highlight-color: transparent; }
.stage { position: relative; height: var(--stage-h); display: flex; align-items: flex-end; justify-content: center; perspective: 900px; touch-action: pan-y; }
.stack {
  position: relative; isolation: isolate; width: min(100% - 20px, calc((var(--stage-h) - 18px) * var(--ar))); aspect-ratio: var(--ar);
  transform: rotate(var(--rr, 0deg)) translateY(var(--lift, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--spring);
}
.stack::before, .stack::after { content: ""; position: absolute; inset: 0; z-index: -2; border-radius: 2px; pointer-events: none; transition: opacity .4s, transform .5s var(--spring); }
.stack::before { box-shadow: 0 1px 1.5px rgb(var(--sh) / .34), 0 2px 5px -1px rgb(var(--sh) / .24); }
.stack::after { box-shadow: 0 24px 34px -20px rgb(var(--sh) / .7), 0 8px 16px -10px rgb(var(--sh) / .32), 0 0 40px -8px rgb(var(--glow) / var(--glow-a)); opacity: .55; }
.leaf {
  position: absolute; inset: 0; z-index: -1; background: var(--paper); border-radius: 2px; overflow: hidden; transform-origin: 16% 96%;
  box-shadow: 0 0 0 .5px rgb(var(--sh) / .14), 0 1px 2px rgb(var(--sh) / .2);
  transition: transform .5s var(--spring);
}
.leaf img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .3s; }
.leaf.l1 { transform: translate(3px, 2.5px) rotate(.8deg); }
.leaf.l2 { transform: translate(6px, 5px) rotate(-.5deg); }
.leaf.l3 { transform: translate(8.5px, 7.5px) rotate(1.2deg); }
/* absolute, as the leaves are: a height of 100% does not resolve against a box sized by aspect-ratio (seen in round 1:
   every sheet collapsed to nothing and only the white leaves showed) */
.sheet { position: absolute; inset: 0; border-radius: 2px; overflow: hidden; background-color: color-mix(in oklch, var(--wash) 92%, var(--paper)); }
.sheet img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .35s; }
.sheet img.in { opacity: 1; }
.sheet img.fr { opacity: 0; transition: opacity .09s; }
.sheet img.fr.cur { opacity: 1; }
.glare { position: absolute; left: -50%; top: -50%; width: 200%; height: 200%; pointer-events: none; opacity: 0; transition: opacity .35s; mix-blend-mode: soft-light;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0) 62%); transform: translate(var(--gx, 0%), var(--gy, 0%)); }
.pgc { position: absolute; top: 6px; right: 6px; padding: 3px 6px 4px; border-radius: 5px; background: rgba(11, 13, 18, .8); color: #FFFFFF; font: 600 10px/1 var(--f-mono); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .2s; pointer-events: none; }
.ticks { position: absolute; left: 0; right: 0; bottom: -13px; display: flex; justify-content: center; gap: 3px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.ticks i { flex: 0 1 13px; height: 3px; border-radius: 2px; background: var(--hair); }
.ticks i.cur { background: var(--violet); }
.flag { position: absolute; top: -10px; right: 16%; z-index: 4; width: 12px; height: 30px; border-radius: 1px 1px 2px 2px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 40%), linear-gradient(180deg, var(--violet-fill), var(--fuchsia-fill));
  box-shadow: 0 1px 2px rgb(0 0 0 / .2); opacity: 0; transform: translateY(16px) scaleY(.35); transform-origin: 50% 100%; transition: transform .35s var(--spring), opacity .2s; }
.saved .flag { opacity: 1; transform: none; }
/* the hover: the stack lifts, fans and tilts under the pointer */
.card.on .stack { --lift: -6px; }
.card.on .stack::after { opacity: 1; transform: translateY(10px); }
.card.on .stack::before { opacity: .6; }
.card.on .leaf.l1 { transform: translate(-4px, -1px) rotate(-3.6deg); }
.card.on .leaf.l2 { transform: translate(-8px, -1px) rotate(-7.2deg); }
.card.on .leaf.l3 { transform: translate(-12px, 0) rotate(-10.8deg); }
.card.on .leaf img.in { opacity: 1; }
.card.on .glare { opacity: .9; }
.card.on.multi .pgc, .card.on.multi .ticks { opacity: 1; }
.hit:focus-visible .stack { outline: 2px solid var(--focus-paper); outline-offset: 6px; }
.card.on.multi .seal { opacity: .35; }
/* the caption */
.t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 22px 2px 0; font: 650 14.5px/1.28 var(--f-text); letter-spacing: -.008em; text-wrap: pretty; min-height: 2.56em; }
.meta { display: flex; align-items: center; gap: 8px; margin: 9px 2px 0; }
.who { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 2px 9px 2px 3px; border-radius: 999px; text-decoration: none; font-size: 12.5px; font-weight: 680; color: var(--ink-2); background: color-mix(in oklch, var(--ink) 5.5%, transparent); }
.who:hover { color: var(--ink); background: color-mix(in oklch, var(--ink) 10%, transparent); }
.who .mk { width: 22px; height: 22px; border-radius: 50%; background-color: var(--paper); background-size: 72% auto; box-shadow: 0 0 0 1px rgb(var(--sh) / .12); }
.stars { display: inline-flex; align-items: center; gap: 3px; font: 600 11.5px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.stars .ic { width: 13px; height: 13px; fill: currentColor; stroke: none; color: var(--star); }
.stars.none { color: var(--ink-3); font-weight: 500; }
.acts { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; }
.act { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 32px; height: 32px; padding: 0 7px; border: 0; border-radius: 999px; background: none; cursor: pointer; color: var(--ink-2); font: 600 11.5px/1 var(--f-mono); font-variant-numeric: tabular-nums; font-variant-numeric: tabular-nums; }
.act:hover { background: var(--hair-2); color: var(--ink); }
.act .ic { width: 18px; height: 18px; }
.like[aria-pressed="true"] { color: var(--rose); }
.like[aria-pressed="true"] .ic { fill: currentColor; }
.save[aria-pressed="true"] { color: var(--violet); }
.save[aria-pressed="true"] .ic { fill: currentColor; }
.like .ic { transition: transform .35s var(--spring); }
.like.pop .ic { animation: pop .45s var(--spring); }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.38); } 100% { transform: scale(1); } }
.burst { position: absolute; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: var(--rose); animation: burst .55s var(--ease) forwards; }
@keyframes burst { from { transform: rotate(var(--a)) translateY(0) scale(1); opacity: 1; } to { transform: rotate(var(--a)) translateY(-17px) scale(.3); opacity: 0; } }
/* a narrower card (the profile's wall, More like this, a phone): the author chip keeps the FlexDok mark and says its
   name to a screen reader and as a tooltip, so like and Save stay on the one line. Round 2 saw Save pushed out of
   sight at 205 px and a ragged second row on a phone (the row needs about 244 px with the name shown). */
@container (max-width: 245px) { /* B2: B's 235 px + 10, as Nunito sets "FlexDok" a little wider (the next shoot measures it) */
  .meta { gap: 6px; }
  .who { padding: 3px; gap: 0; }
  .who .nm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .acts { gap: 0; }
  .act { padding: 0 4px; min-width: 36px; }
  .t { font-size: 13.5px; }
}
/* narrower still (a 360 px phone): the stars stay on the template page, the like and Save stay on the card */
@container (max-width: 171px) {
  .meta .stars { display: none; }
}
/* the wall's views */
.wall.spreads { --cell: 330px; gap: 52px 34px; }
.book { position: relative; width: 100%; display: flex; align-items: flex-end; justify-content: center; perspective: 1100px; transform: rotate(var(--rr, 0deg)); transition: transform .5s var(--spring); }
.book .pg { position: relative; width: min(50% - 2px, (var(--stage-h) - 24px) * var(--ar)); aspect-ratio: var(--ar); background-color: color-mix(in oklch, var(--wash) 92%, var(--paper)); overflow: hidden;
  box-shadow: 0 1px 2px rgb(var(--sh) / .3), 0 22px 30px -20px rgb(var(--sh) / .6), 0 0 36px -12px rgb(var(--glow) / var(--glow-a)); }
.book.solo .pg { width: min(100% - 24px, (var(--stage-h) - 24px) * var(--ar)); }
.book .pg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .35s; }
.book .pg img.in { opacity: 1; }
.book .pg.l { transform-origin: 100% 50%; transform: rotateY(10deg); border-radius: 3px 0 0 3px; }
.book .pg.r { transform-origin: 0 50%; transform: rotateY(-10deg); border-radius: 0 3px 3px 0; }
.book .pg.l::after, .book .pg.r::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.book .pg.l::after { background: linear-gradient(90deg, transparent 72%, rgba(0, 0, 0, .16)); }
.book .pg.r::after { background: linear-gradient(90deg, rgba(0, 0, 0, .2), transparent 26%); }
.card.on .book .pg.l { transform: rotateY(4deg) translateY(-4px); } .card.on .book .pg.r { transform: rotateY(-4deg) translateY(-4px); }
.book .pg { transition: transform .5s var(--spring); }
.hit:focus-visible .book { outline: 2px solid var(--focus-paper); outline-offset: 6px; }
.solo-note { position: absolute; bottom: -16px; left: 0; right: 0; text-align: center; font: 500 10.5px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink-3); }
/* True scale: the cutting mat */
.wall.true {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 46px 30px; padding: 58px 34px 40px; border-radius: 18px; position: relative;
  background-color: var(--mat);
  background-image:
    repeating-linear-gradient(45deg, transparent 0 calc(200px * var(--k) - 1px), var(--mat-line) calc(200px * var(--k) - 1px) calc(200px * var(--k))),
    linear-gradient(var(--mat-line-2) 1px, transparent 1px), linear-gradient(90deg, var(--mat-line-2) 1px, transparent 1px),
    linear-gradient(var(--mat-line) 1px, transparent 1px), linear-gradient(90deg, var(--mat-line) 1px, transparent 1px);
  background-size: auto, calc(50px * var(--k)) calc(50px * var(--k)), calc(50px * var(--k)) calc(50px * var(--k)), calc(10px * var(--k)) calc(10px * var(--k)), calc(10px * var(--k)) calc(10px * var(--k));
  background-position: 0 0, 34px 58px, 34px 58px, 34px 58px, 34px 58px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25), inset 0 2px 0 rgba(255, 255, 255, .06), 0 20px 40px -26px rgb(var(--sh) / .7);
}
.matrule { position: absolute; left: 34px; right: 12px; top: 14px; height: 26px; pointer-events: none; overflow: hidden; font: 600 9.5px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--mat-ink); }
.matrule i { position: absolute; top: 0; width: 1px; background: var(--mat-ink); opacity: .55; height: 7px; }
.matrule i.big { height: 12px; opacity: .85; }
.matrule span { position: absolute; top: 15px; translate: -50% 0; opacity: .9; }
.matnote { position: absolute; right: 18px; bottom: 12px; font: 500 10.5px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--mat-ink); opacity: .85; }
.wall.true .card { width: auto; content-visibility: visible; contain-intrinsic-block-size: none; container-type: normal; }
.wall.true .book { width: auto; }
.wall.true .stage { height: auto; perspective: none; }
.wall.true .stack { width: calc(var(--wmm) * var(--k) * 1px); height: calc(var(--hmm) * var(--k) * 1px); aspect-ratio: auto; }
.wall.true .t, .wall.true .meta { display: none; }
.wall.true .hit .tt { position: absolute; left: 50%; top: calc(100% + 10px); translate: -50% 0; width: max-content; max-width: 220px; padding: 5px 9px; border-radius: 7px; background: var(--tip); color: var(--tip-ink); font: 600 11.5px/1.25 var(--f-text); opacity: 0; pointer-events: none; z-index: 8; transition: opacity .15s; }
.wall.true .hit:hover .tt, .wall.true .hit:focus-visible .tt { opacity: 1; }
.tt { display: none; }
.wall.true .tt { display: block; }
.wall.true .book .pg { height: calc(var(--hmm) * var(--k) * 1px); width: calc(var(--wmm) * var(--k) * 1px); max-width: none; aspect-ratio: auto; }
.wall.true .seal { width: 46px; height: 46px; left: -12px; bottom: -10px; }

/* ---------- Focus: one template at a time ---------- */
.focus { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(260px, 340px) 56px; align-items: center; gap: 22px; margin-top: 26px; min-height: 560px; }
.focus .nav-k { width: 56px; height: 56px; border-radius: 50%; padding: 0; }
.focus .nav-k .ic { width: 24px; height: 24px; }
.focus .fstage { display: grid; place-items: center; height: min(68vh, 640px); perspective: 1200px; }
.focus .card { content-visibility: visible; contain-intrinsic-size: none; container-type: normal; width: 100%; height: 100%; display: grid; place-items: center; }
.focus .card .hit { width: 100%; height: 100%; display: grid; place-items: center; }
.focus .card .stage { height: 100%; width: 100%; }
.focus .card .stack { width: min(100% - 40px, calc((min(68vh, 640px) - 30px) * var(--ar))); }
.focus .card .t, .focus .card .meta { display: none; }
.facts h2 { margin: 6px 0 10px; font: 800 30px/1.08 var(--f-display); letter-spacing: -.02em; text-wrap: balance; }
.facts .kind { font: 600 11.5px/1 var(--f-mono); font-variant-numeric: tabular-nums; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.facts .pos { margin: 18px 0 0; font: 500 12px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink-3); }
.facts .meta { margin: 14px 0 0; }
.facts .keys { margin-top: 18px; }
.focus-strip { display: flex; gap: 12px; overflow-x: auto; padding: 18px 4px 8px; margin-top: 14px; border-top: 1px solid var(--hair-2); }
.focus-strip button { flex: none; height: 74px; aspect-ratio: var(--ar); padding: 0; border: 0; border-radius: 2px; background: var(--wash); overflow: hidden; cursor: pointer; box-shadow: 0 1px 2px rgb(var(--sh) / .3); opacity: .82; }
.focus-strip button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.focus-strip button.cur { opacity: 1; outline: 2px solid var(--focus-paper); outline-offset: 3px; }

/* ---------- more, empty ---------- */
.morebar { display: flex; justify-content: center; margin: 46px 0 0; }
.morebar .key { min-height: 46px; padding: 10px 22px 11px; font-size: 14px; }
.empty { display: grid; justify-items: center; gap: 10px; margin: 60px auto; max-width: 460px; text-align: center; }
.empty .ghost { width: 110px; height: 140px; border: 2px dashed var(--hair); border-radius: 4px; transform: rotate(-4deg); }
.empty h3 { margin: 8px 0 0; font: 760 22px/1.15 var(--f-display); }
.empty p { margin: 0; color: var(--ink-2); }

/* ---------- the template page: the light table ---------- */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; font: 500 12px/1.3 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink-3); }
.crumbs a { color: var(--link); text-underline-offset: 3px; }
.crumbs .sep { opacity: .6; }
.crumbs span[aria-current] { max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.backbtn { margin-left: auto; }
.tpl-grid { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 30px; align-items: start; }
.table {
  position: relative; padding: 12px; border-radius: 22px;
  background: linear-gradient(165deg, var(--bezel-a), var(--bezel-b));
  box-shadow: 0 0 90px -10px var(--table-halo), 0 34px 60px -34px rgb(var(--sh) / .75), inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(0, 0, 0, .25);
}
.table::before { content: ""; position: absolute; left: 22px; bottom: 4px; width: 7px; height: 4px; border-radius: 2px; background: var(--led); box-shadow: 0 0 6px var(--led); opacity: .85; }
.surface {
  position: relative; height: clamp(380px, 100vh - 316px, 800px); border-radius: 12px; overflow: hidden; display: grid; place-items: center; container-type: size;
  background: radial-gradient(ellipse 70% 60% at 50% 46%, var(--table-a), var(--table-b) 92%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95), inset 0 0 46px rgb(var(--table-tint) / .38);
}
.surface::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, rgba(124, 58, 237, .045) 0 1px, transparent 1px 64px); }
/* the light table switches on as the stack is laid on it: one soft warm-up, no repeat (none when motion is off) */
.surface::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: #0b0d12; opacity: 0; }
html:not([data-motion="off"]) .surface::before { animation: tableOn .85s cubic-bezier(.3, .7, .3, 1) .12s both; }
@keyframes tableOn { 0% { opacity: .5; } 14% { opacity: .2; } 22% { opacity: .34; } 100% { opacity: 0; } }
/* the page fits the light table both ways: the table is a size container, so its own width and height bound it */
.bigwrap { position: relative; width: min(100cqw - 132px, (100cqh - 56px) * var(--ar)); aspect-ratio: var(--ar); z-index: 1; }
.big { position: absolute; inset: 0; background: var(--wash); border-radius: 2px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(20, 13, 36, .07), 0 0 26px 6px rgba(255, 255, 255, .95), 0 2px 6px rgba(20, 13, 36, .12); }
.big img { width: 100%; height: 100%; object-fit: contain; display: block; background: var(--paper); }
.big.enter-r { animation: slideR .32s var(--ease); } .big.enter-l { animation: slideL .32s var(--ease); }
@keyframes slideR { from { transform: translateX(26px) rotate(.6deg); opacity: .2; } to { transform: none; opacity: 1; } }
@keyframes slideL { from { transform: translateX(-26px) rotate(-.6deg); opacity: .2; } to { transform: none; opacity: 1; } }
/* the loupe: a designer's glass on the light table. It shows the same picture larger, so it appears only where the
   picture holds more than the screen shows (the featured pages at 640 px); it moves by transform, and only the glass
   repaints as it slides. A mouse that hovers only: touch and keyboard never meet it. */
.loupe {
  position: absolute; left: 0; top: 0; z-index: 4; width: 184px; height: 184px; margin: -92px 0 0 -92px; border-radius: 50%; pointer-events: none;
  background-color: var(--paper); background-repeat: no-repeat; opacity: 0; transform: translate(var(--lx, 0px), var(--ly, 0px)) scale(.86);
  box-shadow: 0 0 0 5px #11141b, 0 0 0 6.5px #8B5CF6, 0 0 0 8px #0b0d12, 0 18px 28px -6px rgba(11, 13, 18, .55), 0 4px 8px rgba(11, 13, 18, .3), inset 0 0 18px rgba(20, 13, 36, .28);
  transition: opacity .18s, transform .22s var(--spring);
}
/* a small glint, high on the glass (round 3's was large and milky and veiled what the glass showed) */
.loupe::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(34% 20% at 34% 14%, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 72%); }
.bigwrap.lens.looking { cursor: none; } /* the glass is the pointer; a zoom-in cursor would promise a click that zooms */
.bigwrap.lens.looking .loupe { opacity: 1; transform: translate(var(--lx, 0px), var(--ly, 0px)); }
/* the loupe's one-line tip lives in the hint line under the table (round 2 drew it as a pill on the table, over the
   page's foot); it shows only when the glass is offered */
.loupe-tip { display: none; }
.loupe-tip.on { display: inline; }
.loupe-tip .ic { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; }
.tnav { position: absolute; top: 50%; z-index: 2; translate: 0 -50%; width: 48px; height: 48px; padding: 0; border-radius: 50%; }
.tnav.prev { left: 18px; } .tnav.next { right: 18px; }
.tnav .ic { width: 22px; height: 22px; }
.tfoot { display: flex; align-items: center; gap: 14px; padding: 12px 6px 2px 10px; color: var(--ink-2); }
.tfoot .pgn { flex: none; font: 600 12px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink); }
/* room under the thumbnails for their numbers: a strip that scrolls sideways clips whatever leaves its padding box
   (round 2 showed the numbers cut in half) */
.contact { display: flex; gap: 10px; overflow-x: auto; padding: 8px 4px 24px; scrollbar-width: thin; }
.contact button { position: relative; flex: none; height: 74px; aspect-ratio: var(--ar); padding: 0; border: 0; border-radius: 2px; background: var(--wash); cursor: pointer; overflow: visible; box-shadow: 0 1px 2px rgb(0 0 0 / .3); }
.contact button img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 2px; }
.contact button span { position: absolute; left: 0; right: 0; bottom: -2px; translate: 0 100%; text-align: center; font: 600 9.5px/1.4 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--bezel-ink); opacity: .8; }
.contact button[aria-current="true"] { outline: 2px solid var(--bezel-ink); outline-offset: 3px; }
.contact button[aria-current="true"] span { opacity: 1; font-weight: 800; }
.contact .more-pages { display: grid; place-items: center; height: 74px; padding: 0 12px; border-radius: 4px; border: 1px dashed var(--bezel-ink); font: 500 10.5px/1.3 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--bezel-ink); text-align: center; flex: none; }
.tfoot-wrap { padding: 4px 6px 16px; }
.reader-note { display: flex; gap: 10px; align-items: flex-start; margin: 16px 4px 0; padding: 12px 14px; border-radius: 12px; color: var(--ink-2); font-size: 13.5px; line-height: 1.45; background: color-mix(in oklch, var(--ink) 4%, transparent); box-shadow: inset 0 0 0 1px var(--hair-2); }
.reader-note .ic { margin-top: 1px; color: var(--violet); }
/* (slice R, version 0.3.0) the live document: the Reader's frame fills the light table, loads unseen BEHIND the page
   picture (opacity 0, under .bigwrap's z-index 1, no pointer), and the page crossfades to it in 200 ms once the Reader
   says it is ready with no error (site.js readerShow()); html[data-motion="off"] (line 989) makes that a cut. While
   live, the picture's own controls (arrows, strip, page count) go: the Reader turns its own pages. */
.live-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 0; opacity: 0; pointer-events: none; background: transparent; transition: opacity .2s ease; }
.table.live .live-frame { z-index: 2; opacity: 1; pointer-events: auto; }
.bigwrap { transition: opacity .2s ease; }
.table.live .bigwrap { opacity: 0; pointer-events: none; }
.table.live .tnav, .table.live .tfoot-wrap, .table.live + .tfoot { display: none; }
.reader-note .live-open { height: 34px; margin: -6px 0; font-size: 13.5px; }
/* a phone's Expand: the stage covers the screen with a floating Close and Edit (not final; it works). The SURFACE is
   what goes fixed, never the frame: moving an iframe in the document reloads it. */
.live-expand, .live-cap { display: none; }
@media (max-width: 720px) {
  .table.live .live-expand { display: inline-flex; position: absolute; right: 10px; bottom: 10px; z-index: 5; height: 40px; }
  html.live-full { overflow: hidden; }
  html.live-full .table.live .surface { position: fixed; inset: 0; z-index: 90; height: auto; min-height: 0; border-radius: 0; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
  html.live-full .table.live .live-expand { display: none; }
  html.live-full .table.live .live-cap { display: flex; gap: 8px; position: absolute; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; z-index: 5; padding: 6px; border-radius: 999px;
    background: color-mix(in oklch, var(--desk) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 8px 24px -8px rgb(var(--sh) / .6), inset 0 0 0 1px var(--hair); }
  html.live-full .live-cap .key { height: 40px; white-space: nowrap; }
}
/* the info rail */
.info { position: sticky; top: calc(var(--bar-h) + 18px); display: grid; gap: 18px; }
.info h1 { margin: 0; font: 800 30px/1.08 var(--f-display); letter-spacing: -.02em; text-wrap: balance; }
.info .kind { font: 600 11.5px/1 var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.bizcard { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 4px; background: var(--paper); color: var(--pp-ink); text-decoration: none; transform: rotate(-.7deg);
  box-shadow: 0 1px 2px rgb(var(--sh) / .3), 0 14px 22px -16px rgb(var(--sh) / .55); }
.bizcard .mk { width: 46px; height: 36px; }
.bizcard b { display: block; font: 780 16px/1.1 var(--f-display); }
.bizcard small { display: block; margin-top: 3px; font: 500 11px/1.25 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--pp-ink-3); }
.bizcard .team { margin-left: auto; padding: 4px 7px; border: 1.5px solid var(--pp-acc); border-radius: 4px; color: var(--pp-acc); font: 700 9.5px/1 var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: .06em; text-transform: uppercase; transform: rotate(-4deg); opacity: .85; }
.copy-line { margin: -8px 2px 0; font: 500 11.5px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink-3); }
.counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--hair-2); border-bottom: 1px solid var(--hair-2); }
.counts > div { padding: 10px 0 9px; }
.counts > div + div { padding-left: 14px; border-left: 1px solid var(--hair-2); }
.counts dt { font: 600 10px/1 var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.counts dd { display: flex; align-items: center; gap: 4px; margin: 6px 0 0; font: 500 12px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.counts dd b { font: 780 20px/1 var(--f-display); letter-spacing: -.02em; color: var(--ink); }
.counts dd .ic { width: 16px; height: 16px; fill: var(--star-fill); stroke: var(--star); }
/* the Edit door: the brand's own button, the logo's D with its three pages */
.edit {
  position: relative; display: flex; align-items: center; height: 54px; margin-left: 30px; border: 0; padding: 0; background: none; cursor: pointer; isolation: isolate;
  border-radius: 0 999px 999px 0; color: #FFFFFF; text-decoration: none; outline: 2px solid transparent; outline-offset: 3px;
}
.edit:focus-visible { outline-color: var(--focus); }
.edit .fan { position: absolute; right: 100%; top: 0; z-index: 0; height: 100%; width: auto; overflow: visible; pointer-events: none; }
.edit .fan > g { transform-origin: 177px 469px; transition: transform .45s cubic-bezier(.3, 1.45, .5, 1); }
.edit:hover .p1, .edit:focus-visible .p1 { transform: rotate(-2deg); } .edit:hover .p2, .edit:focus-visible .p2 { transform: rotate(-5deg); } .edit:hover .p3, .edit:focus-visible .p3 { transform: rotate(-8deg); }
.edit .d { position: relative; z-index: 1; flex: 1; display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0 7px 0 20px; border-radius: 0 999px 999px 0; font: 760 16.5px/1 var(--f-display); letter-spacing: -.01em; white-space: nowrap;
  /* the site's hero words as a door: violet-600 via purple-600 to fuchsia-600, where white holds 4.7:1 or more on every stop */
  background: linear-gradient(90deg, #7C3AED 0%, #9333EA 55%, #C026D3 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 24px -10px rgba(124, 58, 237, .75), 0 0 30px -8px rgba(217, 70, 239, .42), 0 2px 4px rgba(76, 29, 149, .22); }
.edit .go { flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin-left: 14px; border-radius: 50%; background: #FFFFFF; color: #7C3AED; box-shadow: 0 2px 6px rgba(76, 29, 149, .3); transition: transform .3s var(--spring); }
.edit:hover .go, .edit:focus-visible .go { transform: translateX(3px); }
.edit .go .ic { width: 20px; height: 20px; stroke-width: 2.2; }
.edit-note { margin: -8px 0 0 30px; font-size: 12.5px; color: var(--ink-3); }
/* (the real site) the counts above are samples, and say so (D-0030 item 4) */
.cnt-note { margin: -10px 0 0; font-size: 12px; color: var(--ink-3); }
.acts-row { display: flex; flex-wrap: wrap; gap: 8px; }
.acts-row .key { min-height: 40px; padding: 9px 13px 10px; }
.acts-row .key .ic { width: 18px; height: 18px; }
.acts-row .like[aria-pressed="true"] { color: var(--rose); } .acts-row .like[aria-pressed="true"] .ic { fill: currentColor; }
.acts-row .save[aria-pressed="true"] { color: var(--violet); } .acts-row .save[aria-pressed="true"] .ic { fill: currentColor; }
.sharebox { display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: var(--key); box-shadow: inset 0 0 0 1px var(--hair); }
.sharebox label { font: 600 11px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.sharebox input { width: 100%; height: 38px; padding: 0 10px; border-radius: 8px; border: 0; background: var(--desk); box-shadow: inset 0 0 0 1px var(--hair); font: 500 12px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.sharebox p { margin: 0; font-size: 12px; color: var(--ink-3); }
.rate { display: grid; gap: 8px; }
.rate-h { font-weight: 700; font-size: 14px; }
.starset { display: inline-flex; gap: 2px; border: 0; padding: 0; margin: 0; }
.starset input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.starset label { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; cursor: pointer; color: var(--ink-3); }
.starset label .ic { width: 26px; height: 26px; stroke-width: 1.5; }
/* the stars light up to the one under the pointer or the keyboard, else to the one chosen (set by the script) */
.starset[data-h="1"] label:nth-of-type(-n+1) .ic, .starset[data-h="2"] label:nth-of-type(-n+2) .ic, .starset[data-h="3"] label:nth-of-type(-n+3) .ic,
.starset[data-h="4"] label:nth-of-type(-n+4) .ic, .starset[data-h="5"] label:nth-of-type(-n+5) .ic,
.starset:not([data-h])[data-v="1"] label:nth-of-type(-n+1) .ic, .starset:not([data-h])[data-v="2"] label:nth-of-type(-n+2) .ic, .starset:not([data-h])[data-v="3"] label:nth-of-type(-n+3) .ic,
.starset:not([data-h])[data-v="4"] label:nth-of-type(-n+4) .ic, .starset:not([data-h])[data-v="5"] label:nth-of-type(-n+5) .ic { fill: var(--star-fill); stroke: var(--star); }
.starset input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 1px; }
.rated { font-size: 13.5px; color: var(--ink-2); }
.dl { display: grid; grid-template-columns: 104px 1fr; gap: 9px 12px; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--hair-2); }
.dl dt { font: 600 10.5px/1.6 var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.dl dd { margin: 0; font-size: 14px; color: var(--ink); }
.dl dd .mono { font-size: 12px; color: var(--ink-2); }
/* the template's index card: the facts and tags on a catalogue card, paper-white in both themes (the paper is never
   themed), so its inks are fixed: the site's light inks on white, and the accent gradient as its rule (B2: B's cream
   card and red rule go; tools/contrast.cjs measures each ink on white and on the well) */
.indexcard { position: relative; padding: 12px 16px 14px; border-radius: 3px; color: var(--pp-ink); transform: rotate(.35deg);
  background: linear-gradient(90deg, #8B5CF6, #D946EF) 0 38px / 100% 2px no-repeat, #FFFFFF;
  box-shadow: 0 1px 2px rgb(var(--sh) / .28), 0 16px 24px -18px rgb(var(--sh) / .55); }
.indexcard .ixh { display: flex; justify-content: space-between; margin: 0 0 15px; padding-top: 4px; font: 700 10.5px/1 var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: .12em; text-transform: uppercase; color: var(--pp-acc); }
.indexcard .dl { border-top: 0; padding: 0; }
.indexcard .dl dt, .indexcard .dl dd .mono { color: var(--pp-ink-3); }
.indexcard .dl dd { color: var(--pp-ink); }
.indexcard .pal span { color: var(--pp-ink-2); }
.indexcard .tags { margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(20, 13, 36, .2); }
.indexcard .tag { background: var(--pp-well); color: var(--pp-ink-2); box-shadow: 0 1.5px 0 var(--pp-skirt), 0 3px 5px -3px rgba(20, 13, 36, .35); }
.indexcard .tag::before { background: #FFFFFF; box-shadow: inset 0 1px 1px rgba(20, 13, 36, .45); }
.indexcard :focus-visible { outline-color: var(--pp-acc); }
.pal { display: flex; flex-wrap: wrap; gap: 8px; }
.pal span { display: inline-flex; align-items: center; gap: 5px; font: 500 10.5px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.pal i { width: 18px; height: 22px; border-radius: 3px 3px 2px 2px; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12), 0 1px 0 rgb(var(--sh) / .25); }
.below { margin-top: 46px; }
/* six to a row on a desk, two on a phone (round 3: eight narrow columns for six cards, two of them empty) */
.minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 34px 22px; margin: 16px 0 0; padding: 0; list-style: none; --stage-h: 190px; }
@media (max-width: 720px) { .minis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 14px; } }
.minis .card { contain-intrinsic-size: auto 290px; }
/* comments */
.cm-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; margin-top: 16px; align-items: start; }
.cm-form { display: grid; gap: 12px; padding: 20px; border-radius: 6px; background: var(--paper); color: var(--pp-ink); box-shadow: 0 1px 2px rgb(var(--sh) / .28), 0 18px 30px -22px rgb(var(--sh) / .6); }
.cm-form .note { margin: 0; font-size: 13px; color: var(--pp-ink-2); }
/* (the real site) the comment box is a note until comments can be sent */
.cm-soon .note b { color: var(--pp-ink); }
.cm-form label { display: grid; gap: 6px; font-weight: 650; font-size: 13px; }
.cm-form label small { font-weight: 500; color: var(--pp-ink-3); }
.cm-form input, .cm-form textarea { width: 100%; border: 0; border-radius: 9px; padding: 10px 12px; background: var(--pp-well); color: var(--pp-ink); box-shadow: inset 0 1px 2px rgb(0 0 0 / .12), inset 0 0 0 1px rgb(0 0 0 / .1); font-size: 14.5px; }
.cm-form textarea { min-height: 112px; resize: vertical; line-height: 1.45; }
.cm-form input:focus-visible, .cm-form textarea:focus-visible { outline: 2px solid var(--pp-acc); outline-offset: 1px; }
.cm-form ::placeholder { color: var(--pp-ink-3); opacity: 1; }
.cm-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cm-len { margin-left: auto; font: 500 11px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--pp-ink-3); }
.cm-why { margin: 0; padding: 10px 12px; border-radius: 9px; background: var(--pp-neg-bg); color: var(--pp-neg); font-size: 13px; line-height: 1.4; }
.cm-why b { font-weight: 700; }
.send { min-height: 42px; padding: 9px 16px 10px; border: 0; border-radius: 10px; cursor: pointer; background: var(--pp-acc); color: #FFFFFF; font-weight: 700; font-size: 14px; box-shadow: 0 2px 0 #4C1D95, 0 8px 18px -8px rgba(124, 58, 237, .6); }
.send[disabled] { opacity: .4; cursor: not-allowed; }
.send:focus-visible { outline: 2px solid var(--pp-acc); outline-offset: 2px; }
.cm-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.cm { position: relative; padding: 14px 16px 12px; border-radius: 4px; background: var(--cm-bg); box-shadow: 0 1px 2px rgb(var(--sh) / .2), inset 0 0 0 1px var(--hair-2); }
.cm-h { display: flex; align-items: center; gap: 9px; }
.cm-h .av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in oklch, var(--ink) 10%, transparent); font: 700 12px/1 var(--f-text); color: var(--ink-2); }
.cm-h b { font-size: 13.5px; }
.cm-h time { font: 500 11px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink-3); }
.cm p { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.cm .rep { margin-left: auto; }
.cm .rep .act { font-family: var(--f-text); font-size: 12px; font-weight: 650; }
.repmenu { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.repmenu .key { min-height: 32px; font-size: 12.5px; padding: 6px 10px 7px; }
.cm.pending { background: var(--cm-bg); box-shadow: 0 0 0 1px color-mix(in oklch, var(--violet) 55%, transparent), 0 1px 2px rgb(var(--sh) / .2); }
.inreview { position: absolute; right: 14px; top: -12px; padding: 5px 9px 6px; border: 2.5px double var(--stamp-ink); border-radius: 5px; color: var(--stamp-ink); font: 800 12px/1 var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: .12em; transform: rotate(-5deg); background: color-mix(in oklch, var(--desk) 30%, transparent); }
.cm .wait { margin: 8px 0 0; font: 500 11.5px/1.35 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--violet); }
.cm-empty { color: var(--ink-3); font-size: 14px; }

/* ---------- the profile ---------- */
.pf-band { position: relative; height: 290px; margin: -26px -28px 0 -34px; overflow: hidden; touch-action: pan-y; }
.pf-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 26%, color-mix(in oklch, var(--desk) 62%, transparent) 58%, var(--desk) 90%); pointer-events: none; }
.pf-band .bp { position: absolute; left: var(--x); top: var(--y); width: var(--w); aspect-ratio: var(--ar); background: var(--wash); border-radius: 2px; overflow: hidden;
  transform: translate(var(--px, 0px), var(--py, 0px)) rotate(var(--r)); transition: transform 1.2s var(--ease); box-shadow: 0 1px 2px rgb(var(--sh) / .3), 0 20px 30px -18px rgb(var(--sh) / .6); }
.pf-band .bp img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-id { position: relative; z-index: 2; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: end; margin-top: -86px; }
.pf-av { width: 118px; height: 118px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; box-shadow: 0 0 0 6px var(--desk), 0 18px 30px -14px rgb(var(--sh) / .6); }
.pf-av .mk { width: 78px; height: 60px; }
.pf-id h1 { margin: 0; font: 800 clamp(36px, 2.4vw + 18px, 54px)/1 var(--f-display); letter-spacing: -.025em; text-shadow: 0 0 22px var(--desk), 0 0 8px var(--desk); }
.pf-handle { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; font: 500 13px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink-3); }
.teamstamp { padding: 5px 8px 6px; border: 2px solid var(--stamp-ink); border-radius: 5px; color: var(--stamp-ink); font: 800 10.5px/1 var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: .1em; text-transform: uppercase; transform: rotate(-3deg); }
.pf-bio { max-width: 62ch; margin: 18px 0 0; font-size: 16px; color: var(--ink-2); text-wrap: pretty; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 26px 0 0; }
.kpi { padding: 16px 18px 15px; border-radius: 14px; background: var(--kpi-bg); box-shadow: inset 0 0 0 1px var(--hair-2), 0 1px 0 var(--lip); }
.kpi dt { font: 600 10.5px/1 var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.kpi dd { margin: 10px 0 0; font: 800 34px/1 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi dd small { display: block; margin-top: 6px; font: 500 11px/1.3 var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; color: var(--ink-3); }
.kpi dd .ic { width: 26px; height: 26px; fill: var(--star-fill); stroke: var(--star); vertical-align: -3px; }
.howcount { margin: 14px 0 0; font-size: 13px; color: var(--ink-2); }
.howcount summary { cursor: pointer; font-weight: 650; color: var(--ink); width: max-content; }
.howcount p { margin: 8px 0 0; max-width: 72ch; }
.tabs { display: flex; gap: 4px; margin: 34px 0 0; border-bottom: 1px solid var(--hair); }
.tabs button { position: relative; padding: 12px 16px 13px; border: 0; background: none; cursor: pointer; font-weight: 700; font-size: 15px; color: var(--ink-3); }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--violet-fill), var(--fuchsia-fill)); }
.pf-about { max-width: 66ch; margin-top: 22px; font-size: 15.5px; color: var(--ink-2); }
.pf-about h3 { margin: 22px 0 6px; font: 760 18px/1.2 var(--f-display); color: var(--ink); }

/* ---------- privacy: the receipt ---------- */
.priv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 470px); gap: 46px; align-items: start; margin-top: 6px; }
.priv h1 { margin: 0; font: 800 clamp(34px, 2.2vw + 18px, 50px)/1.02 var(--f-display); letter-spacing: -.025em; text-wrap: balance; }
.priv .lede { max-width: 44ch; }
.keeps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.kp { padding: 16px 16px 14px; border-radius: 4px; background: var(--paper); color: var(--pp-ink); box-shadow: 0 1px 2px rgb(var(--sh) / .25), 0 14px 22px -18px rgb(var(--sh) / .55); }
.kp:nth-child(1) { transform: rotate(-.8deg); } .kp:nth-child(2) { transform: rotate(.6deg); } .kp:nth-child(3) { transform: rotate(-.4deg); }
.kp h2 { margin: 0 0 8px; font: 800 11px/1.2 var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: .1em; text-transform: uppercase; color: var(--pp-acc); }
.kp.never h2 { color: var(--pp-neg); }
.kp ul { margin: 0; padding-left: 16px; font-size: 13.5px; line-height: 1.45; color: var(--pp-ink-2); }
.kp li + li { margin-top: 6px; }
@media (max-width: 1280px) { .keeps { grid-template-columns: minmax(0, 1fr); } .kp { transform: none !important; } }
.receipt { position: relative; margin: 14px 0 26px; padding: 26px 26px 30px; background: #FFFFFF; color: var(--pp-ink); transform: rotate(.8deg);
  font: 500 12.5px/1.55 var(--f-mono); font-variant-numeric: tabular-nums; box-shadow: 0 2px 3px rgb(var(--sh) / .2), 0 28px 40px -28px rgb(var(--sh) / .7); }
.receipt::before, .receipt::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; background-size: 14px 10px; background-repeat: repeat-x; }
.receipt::before { top: -10px; background-image: linear-gradient(135deg, transparent 50%, #FFFFFF 50%), linear-gradient(225deg, transparent 50%, #FFFFFF 50%); background-position: 0 0, 7px 0; background-size: 14px 10px; }
.receipt::after { bottom: -10px; background-image: linear-gradient(45deg, transparent 50%, #FFFFFF 50%), linear-gradient(315deg, transparent 50%, #FFFFFF 50%); background-position: 0 0, 7px 0; transform: scaleY(-1); }
.receipt h2 { margin: 0; text-align: center; font: 800 15px/1.2 var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: .14em; }
.receipt .c { text-align: center; color: var(--pp-ink-3); }
.receipt hr { border: 0; border-top: 1.5px dashed #A49DEB; margin: 14px 0; }
.receipt .ln { display: flex; gap: 6px; }
.receipt .ln span:first-child { white-space: nowrap; }
.receipt .ln .dots { flex: 1; overflow: hidden; color: #A49DEB; white-space: nowrap; }
.receipt .ln .dots::before { content: "................................................................................................"; }
.receipt .ln b { white-space: nowrap; font-weight: 700; }
.receipt h3 { margin: 14px 0 2px; font: 800 12.5px/1.3 var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: .1em; }
.receipt p { margin: 0; }
.receipt .last { margin-top: 6px; font-weight: 700; }
.barcode { height: 46px; margin: 18px auto 4px; width: 78%; }
.receipt .tiny { text-align: center; font-size: 10.5px; color: var(--pp-ink-3); }

/* ---------- dialogs ---------- */
dialog { padding: 0; border: 0; background: transparent; color: var(--ink); max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow: visible; }
dialog::backdrop { background: var(--overlay); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dlg { position: relative; overflow: auto; max-height: calc(100dvh - 32px); border-radius: 22px; background-color: var(--felt); box-shadow: 0 40px 80px -30px rgb(0 0 0 / .6), inset 0 1px 0 var(--key-hi), inset 0 0 0 1px var(--hair-2); }
.dlg-x { position: absolute; right: 14px; top: 14px; z-index: 3; width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.handoff { width: min(860px, calc(100vw - 24px)); display: grid; grid-template-columns: 320px minmax(0, 1fr); }
.ho-art { position: relative; min-height: 420px; border-radius: 22px 0 0 22px; overflow: hidden; background: linear-gradient(165deg, var(--bezel-a), var(--bezel-b)); }
.ho-art .lt { position: absolute; inset: 14px; border-radius: 12px; background: radial-gradient(ellipse at 50% 40%, var(--table-a), var(--table-b)); box-shadow: inset 0 0 30px rgb(var(--table-tint) / .4); }
.ho-art .orig, .ho-art .copy { position: absolute; left: 50%; top: 52px; width: 150px; aspect-ratio: var(--ar); background: var(--wash); border-radius: 2px; overflow: hidden; translate: -50% 0; }
.ho-art .orig img, .ho-art .copy img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ho-art .orig { box-shadow: 0 0 18px 4px rgba(255, 255, 255, .9), 0 0 0 1px rgba(0, 0, 0, .06); }
.ho-art .copy { z-index: 3; box-shadow: 0 16px 26px -12px rgba(0, 0, 0, .55); transition: transform 1.1s cubic-bezier(.5, 0, .2, 1), opacity .4s .9s; }
.ho-art .tagorig { position: absolute; left: 50%; top: 20px; translate: -50% 0; font: 700 10px/1 var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: .1em; text-transform: uppercase; color: var(--pp-ink-2); }
.ho-art .fold { position: absolute; left: 50%; bottom: 26px; width: 210px; height: 96px; translate: -50% 0; z-index: 4; }
.ho-art .fold .fb { position: absolute; inset: 12px 0 0; border-radius: 3px 8px 6px 6px; background: #6D28D9; }
.ho-art .fold .fb::before { content: ""; position: absolute; left: 0; top: -12px; width: 44%; height: 15px; border-radius: 5px 8px 0 0; background: #6D28D9; clip-path: polygon(0 0, 82% 0, 100% 100%, 0 100%); }
.ho-art .fold .ff { position: absolute; left: 0; right: 0; bottom: 0; height: 70%; border-radius: 3px 3px 7px 7px; background: linear-gradient(160deg, #8B5CF6, #C026D3); box-shadow: 0 8px 14px -8px rgba(0, 0, 0, .5); display: flex; align-items: center; justify-content: center; z-index: 5; }
.ho-art .fold .ff span { padding: 5px 9px; border-radius: 3px; background: #FFFFFF; color: var(--pp-ink); font: 700 11px/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.handoff.copied .copy { transform: translateY(190px) scale(.7) rotate(-6deg); opacity: 0; }
.ho-body { padding: 34px 32px 28px; display: grid; gap: 16px; align-content: start; }
.ho-body h2 { margin: 0; padding-right: 40px; font: 800 27px/1.08 var(--f-display); letter-spacing: -.02em; }
.ho-body .sub { margin: 0; color: var(--ink-2); font-size: 15px; }
.steps { display: grid; gap: 12px; margin: 4px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--key); box-shadow: 0 2px 0 var(--key-skirt); font: 800 14px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--violet); }
.steps b { display: block; font-size: 15px; }
.steps span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--ink-2); }
.steps code { font: 600 12.5px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--link); overflow-wrap: anywhere; }
.ho-small { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.ho-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 4px; }
.ho-acts .edit { flex: 1 1 280px; max-width: 360px; }
.ho-note { display: grid; gap: 6px; padding: 14px 16px; border-radius: 12px; background: var(--key); box-shadow: inset 0 0 0 1px var(--hair); font-size: 13.5px; color: var(--ink-2); }
.ho-note b { color: var(--ink); }
.ho-note code { font: 600 12px/1.4 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--link); overflow-wrap: anywhere; }
/* the job ticket: a drawer that slides in from the right edge */
dialog.ticket, dialog.ticket:modal { width: min(560px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; inset: 0 0 0 auto; }
dialog.ticket .dlg { height: 100%; max-height: 100dvh; border-radius: 22px 0 0 22px; }
dialog.ticket[open] .dlg { animation: drawerIn .42s var(--spring); }
@keyframes drawerIn { from { transform: translateX(60px); opacity: .3; } to { transform: none; opacity: 1; } }
.tk-band { display: flex; align-items: center; gap: 14px; padding: 18px 64px 16px 24px; border-radius: 22px 0 0 0; background: linear-gradient(90deg, #7C3AED, #9333EA 55%, #C026D3); color: #FFFFFF; }
.tk-band .hole { width: 14px; height: 14px; border-radius: 50%; background: var(--felt); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5); flex: none; }
.tk-band b { font: 800 13px/1 var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: .14em; text-transform: uppercase; }
.tk-band span { margin-left: auto; font: 600 12px/1 var(--f-mono); font-variant-numeric: tabular-nums; opacity: .8; }
.tk-body { padding: 18px 24px 24px; }
.tk-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--hair); }
.tk-row dt { font: 700 10.5px/1.6 var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.tk-row dd { margin: 0; font-size: 14px; color: var(--ink); line-height: 1.45; }
.tk-row dd ul { margin: 4px 0 0; padding-left: 18px; }
.tk-row dd li { margin: 3px 0; }
.leave { width: min(460px, calc(100vw - 24px)); }
.leave .dlg { padding: 28px 26px 24px; }
.leave h2 { margin: 0 40px 8px 0; font: 800 24px/1.1 var(--f-display); }
.leave p { margin: 8px 0 0; color: var(--ink-2); }
.leave code { font: 600 12.5px/1.4 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--link); }
.leave .key { margin-top: 18px; }

/* ---------- toast, footer ---------- */
.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 80; translate: -50% 0; display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 12px;
  background: var(--tip); color: var(--tip-ink); font-weight: 600; font-size: 14px; box-shadow: 0 16px 34px -14px rgb(0 0 0 / .6); opacity: 0; transform: translateY(14px); transition: opacity .2s, transform .3s var(--spring); pointer-events: none; }
.toast.show { opacity: 1; transform: none; }
/* its own width (left: 50% alone gave it half the screen to wrap in: three lines on a phone, round 1), and above
   the phone's bottom controls rather than on them */
.toast { width: max-content; max-width: calc(100vw - 32px); }
@media (max-width: 720px) {
  .toolsfab:not([hidden]) ~ .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .tbar.show ~ .toast { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
}
.toast .ic { width: 18px; height: 18px; }
.foot { padding: 30px max(20px, env(safe-area-inset-right, 0px)) calc(34px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); border-top: 1px solid var(--hair-2); background: color-mix(in oklch, var(--desk-deep) 60%, transparent); }
.foot-in { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: flex-start; justify-content: space-between; max-width: 1500px; margin: 0 auto; }
.foot .brand .logo { height: 24px; }
.foot .brand > span:last-child { font-size: 16px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; font-weight: 600; }
.foot nav a, .foot nav button { color: var(--ink-2); text-decoration: none; background: none; border: 0; padding: 4px 0; cursor: pointer; font: inherit; }
.foot nav a:hover, .foot nav button:hover { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.notice { margin: 14px 0 0; font: 500 12px/1.6 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink-2); }

/* ---------- scroll-driven arrival (modern CSS, a plain page without it) ---------- */
@supports (animation-timeline: view()) {
  html:not([data-motion="off"]) .wall:not(.true) > .card { animation: arrive linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  @keyframes arrive { from { opacity: .35; transform: translateY(26px) scale(.975); } to { opacity: 1; transform: none; } }
}
/* ---------- the View Transition: the stack is lifted onto the light table ---------- */
::view-transition-group(lift) { animation-duration: .56s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); z-index: 50; }
::view-transition-old(lift), ::view-transition-new(lift) { animation-duration: .4s; }
::view-transition-image-pair(lift) { animation: liftpair .56s cubic-bezier(.2, .8, .2, 1); }
@keyframes liftpair { 45% { transform: scale(1.05) translateY(-10px); } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .26s; }

/* ---------- motion off: the visitor's switch, or the system's reduced motion ---------- */
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { transition-duration: 0s !important; animation: none !important; }

/* ---------- widths ---------- */
@media (min-width: 1600px) { :root { --drawer-w: 316px; --cell: 214px; --stage-h: 268px; } }
@media (max-width: 1280px) { .tpl-grid { grid-template-columns: minmax(0, 1fr) 340px; } .focus { grid-template-columns: 48px minmax(0, 1fr) 280px 48px; } }
@media (max-width: 1099px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .drawer { position: fixed; z-index: 60; left: 0; top: calc(var(--bar-h) + env(safe-area-inset-top, 0px)); bottom: 0; width: min(340px, 88vw); height: auto; transform: translateX(-104%); transition: transform .38s var(--spring); box-shadow: 24px 0 60px -20px rgb(0 0 0 / .5); }
  .drawer.open { transform: none; }
  .dw-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 0; }
  .dw-head h2 { margin: 0; font: 760 20px/1 var(--f-display); }
  .toolsbtn { display: inline-flex; }
  .msearch { display: block; margin: 0 0 18px; }
  main { padding-left: max(24px, env(safe-area-inset-left, 0px)); }
  .scrim { position: fixed; inset: 0; z-index: 55; background: var(--overlay); }
  .tpl-grid { grid-template-columns: minmax(0, 1fr); }
  .info { position: static; }
  .pf-band { margin-left: -24px; }
  .focus { grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .focus .facts { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .spread { justify-self: center; width: min(100%, 560px); }
  .cm-wrap { grid-template-columns: minmax(0, 1fr); }
  .priv { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .handoff { grid-template-columns: minmax(0, 1fr); }
  .ho-art { min-height: 250px; border-radius: 22px 22px 0 0; }
  .ho-art .orig, .ho-art .copy { width: 104px; top: 34px; }
  .ho-art .fold { bottom: 14px; width: 170px; height: 80px; }
  .handoff.copied .copy { transform: translateY(120px) scale(.7) rotate(-6deg); }
}
@media (max-width: 720px) {
  :root { --bar-h: 58px; --cell: 150px; --stage-h: 196px; --k: .52; }
  .bar { gap: 10px; padding-inline: max(14px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px)); }
  .brand > span:last-child { font-size: 16px; }
  .brand .logo { height: 24px; }
  .bar .pill .lbl { display: none; }
  .bar .pill { width: 40px; padding: 0; justify-content: center; }
  .bar .to-editor { display: none; }
  main { padding: 16px max(16px, env(safe-area-inset-right, 0px)) 120px max(16px, env(safe-area-inset-left, 0px)); }
  .drawer {
    top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 86dvh; border-radius: 24px 24px 0 0; transform: translateY(104%);
    padding: 0 16px calc(88px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -20px 60px -20px rgb(0 0 0 / .55);
  }
  .dw-head { position: sticky; top: 0; z-index: 4; padding: 10px 16px 4px; margin: 0 -16px; background-color: var(--felt); flex-wrap: wrap; }
  .dw-head::before { content: ""; flex: 0 0 100%; height: 5px; margin-bottom: 8px; background: radial-gradient(closest-side, var(--hair) 100%, transparent) center / 44px 5px no-repeat; }
  .dw-search { top: 60px; }
  .dw-apply { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, var(--felt) 30%); }
  .dw-apply .key { width: 100%; min-height: 50px; font-size: 15px; justify-content: center; }
  .key, .tag, .rowbtn, .act, .swatch { min-height: 44px; }
  .act { min-width: 40px; }
  .hero { gap: 6px; }
  .hero-copy { padding: 8px 4px 6px 2px; }
  .crop { display: none; }
  .hero h1 { font-size: 40px; }
  .lede { font-size: 15px; }
  .spread { width: 100%; aspect-ratio: 1.42; }
  .folders { gap: 18px; }
  .folder { flex-basis: 178px; height: 146px; }
  .wall { gap: 34px 14px; }
  .wall.spreads { --cell: 100%; }
  .wall.true { padding: 50px 16px 34px; gap: 30px 18px; }
  .t { font-size: 13.5px; margin-top: 18px; }
  .seal { width: 48px; height: 48px; left: -10px; bottom: -10px; }
  .sec-head h2, .wall-head h2 { font-size: 22px; }
  .wh-end { margin-left: 0; width: 100%; justify-content: space-between; }
  .focus { grid-template-columns: 1fr; gap: 14px; }
  .focus .fstage { height: 56vh; order: 1; }
  .focus .nav-k { display: none; }
  /* the current crumb and the separator before it go (round 2 left a dangling "/" on Privacy, which has one) */
  .crumbs span[aria-current], .crumbs .sep:has(+ span[aria-current]) { display: none; }
  .backbtn { height: 36px; padding: 0 12px 0 8px; }
  .backbtn .long { display: none; }
  .surface { height: 62vh; min-height: 300px; }
  .bigwrap { width: min(100cqw - 28px, (100cqh - 70px) * var(--ar)); margin-bottom: 40px; }
  .tnav { width: 40px; height: 40px; bottom: 10px; top: auto; translate: none; }
  .tnav.prev { left: 10px; } .tnav.next { right: 10px; }
  .info h1 { font-size: 28px; }
  .tbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; gap: 8px; padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    background: color-mix(in oklch, var(--desk) 90%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--hair); }
  .tbar .edit { flex: 1; height: 48px; margin-left: 24px; }
  .tbar .edit .d { font-size: 14.5px; padding-left: 14px; }
  .tbar .edit .go { width: 36px; height: 36px; margin-left: 8px; }
  .tbar .key { min-width: 48px; min-height: 48px; padding: 0 10px; }
  .pf-band { height: 170px; margin: -16px -16px 0; }
  .pf-id { grid-template-columns: 1fr; margin-top: -56px; gap: 12px; }
  .pf-av { width: 92px; height: 92px; }
  .pf-av .mk { width: 60px; height: 46px; }
  .kpi dd { font-size: 28px; }
  .receipt { transform: none; padding: 22px 18px 26px; font-size: 11.5px; }
  .toolsfab { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 44; translate: -50% 0; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--ink); color: var(--desk); font-weight: 750; font-size: 15px; box-shadow: 0 14px 30px -10px rgb(0 0 0 / .55), 0 2px 0 rgb(0 0 0 / .4); }
  .toolsfab .badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #7C3AED; color: #FFFFFF; font: 700 12px/22px var(--f-mono); font-variant-numeric: tabular-nums; text-align: center; }
  .wall-head .toolsbtn { display: none; }
  .tk-row { grid-template-columns: 1fr; gap: 4px; }
  dialog.ticket .dlg, .tk-band { border-radius: 0; }
  .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .ho-body { padding: 24px 20px 22px; }
  .ho-body h2 { font-size: 26px; }
}
.toolsfab { display: none; }
@media (max-width: 720px) { .toolsfab { display: inline-flex; } .layout.wide ~ .toolsfab { display: none; } }
/* the phone's bottom bar, compact: it needed about 375 px and cut Save off at 360 (round 2); about 323 px now */
@media (max-width: 420px) {
  .tbar { gap: 6px; }
  .tbar .edit { margin-left: 16px; }
  .tbar .edit .d { font-size: 12.5px; padding-left: 12px; padding-right: 5px; }
  .tbar .edit .go { width: 32px; height: 32px; margin-left: 6px; }
  .tbar .key { min-width: 44px; min-height: 44px; padding: 0 8px; }
}
.tbar { display: none; }
@media (max-width: 720px) { .tbar.show { display: flex; } }
@media (forced-colors: active) {
  .key, .tag, .rowbtn, .swatch i, .paperbtn i, .sheet, .leaf { border: 1px solid CanvasText; }
  .edit .d { border: 1px solid CanvasText; }
}

/* ======== block: dg-style (the mockup's <style id="dg-style">) ======== */
/* ═════ THE DOCUMENTS GALLERY ON THE DESK (2026-12-01, session 7c02b44b, Dev Center R-0324; tools/dg-patch.cjs) ═════
   The operator: "the way documents are displayed inside our Editor Documents page is so nice and i will like if you can
   do the same ofr the documents card displays". A port of the editor's Documents page (app.html DESIGN C and Pearl's
   Desk), in this desk's own tokens. Wall view only. */
.wall.dg-gal { --gal-pad: 9px; --gal-cap: 61px; display: flex !important; flex-wrap: wrap; align-items: flex-start;
  gap: 0 !important; grid-template-columns: none !important; margin: 18px calc(-1 * var(--gal-pad)) 0 !important;
  padding: 0 !important; list-style: none; }
.wall.dg-gal > li.card.dg { position: relative; flex: 0 0 auto; box-sizing: border-box; padding: var(--gal-pad) !important;
  width: calc(var(--gal-h, 176px) * var(--gal-ar, .7071) + 2 * var(--gal-pad)) !important;
  height: calc(var(--gal-h, 176px) + var(--gal-cap) + 2 * var(--gal-pad)) !important; margin: 0 !important;
  transform: none !important; perspective: none !important; contain-intrinsic-size: auto 246px; }
.wall.dg-gal > li.card.dg.gal-end { flex-grow: 1; }
.wall.dg-gal > li.card.dg > a.hit { display: block !important; position: relative; height: 100%; margin: 0;
  padding: var(--gal-h, 176px) 0 0 !important; color: inherit; text-decoration: none; background: none !important;
  border: 0 !important; box-shadow: none !important; transform: none !important; outline: none; }
.wall.dg-gal > li.card.dg .dg-paper { display: block !important; position: absolute !important; top: 0; left: 0; right: 0;
  height: var(--gal-h, 176px) !important; width: auto !important; margin: 0 !important; padding: 0 !important;
  border-radius: 6px; overflow: hidden; background: var(--wash, #fff);
  box-shadow: 0 1px 2px rgba(22, 26, 34, .10), 0 8px 18px -10px rgba(22, 26, 34, .32);
  transform: none !important; perspective: none !important;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s; z-index: 1; }
.wall.dg-gal > li.card.dg .dg-paper .sheet { position: absolute !important; inset: 0 !important; width: 100% !important;
  height: 100% !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  transform: none !important; rotate: none !important; translate: none !important; scale: none !important;
  aspect-ratio: auto !important; background: transparent !important; }
.wall.dg-gal > li.card.dg .dg-paper img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.wall.dg-gal > li.card.dg .dg-paper img.pg1 { opacity: 0; transition: opacity .3s; }
.wall.dg-gal > li.card.dg .dg-paper img.pg1.in { opacity: 1; }
.wall.dg-gal > li.card.dg .dg-paper .glare { display: none !important; }
.wall.dg-gal > li.card.dg .dg-paper .pgc { top: 7px !important; left: 7px !important; right: auto !important; bottom: auto !important; z-index: 3; }
.wall.dg-gal > li.card.dg:hover .dg-paper, .wall.dg-gal > li.card.dg.on .dg-paper,
.wall.dg-gal > li.card.dg:focus-within .dg-paper { transform: translateY(-4px) !important;
  box-shadow: 0 2px 4px rgba(22, 26, 34, .12), 0 16px 28px -12px rgba(22, 26, 34, .42); }
.wall.dg-gal > li.card.dg.dg-sel .dg-paper,
.wall.dg-gal > li.card.dg > a.hit:focus-visible .dg-paper {
  box-shadow: 0 0 0 2px var(--focus, #7C3AED), 0 0 0 8px color-mix(in srgb, var(--focus, #7C3AED) 22%, transparent),
    0 8px 18px -10px rgba(22, 26, 34, .32); }
@media (prefers-reduced-motion: reduce) { .wall.dg-gal > li.card.dg .dg-paper { transition: none; } }
.wall.dg-gal > li.card.dg .dg-cap { display: block; height: var(--gal-cap); padding: 9px 2px 0; overflow: hidden; }
.wall.dg-gal > li.card.dg .dg-cap .dg-t { display: block !important; position: static !important; margin: 0 !important;
  padding: 0 !important; font: 800 14.5px/1.3 var(--f-text, "Nunito", system-ui, sans-serif) !important; color: var(--ink) !important;
  text-align: start !important; white-space: nowrap !important; text-wrap: nowrap !important; -webkit-line-clamp: unset !important; line-clamp: none !important; overflow: hidden !important; text-overflow: ellipsis; letter-spacing: 0 !important; min-height: 0 !important; height: auto !important; /* dg-fix1: one line, as the editor's; dg-fix2: B's .t reserves two lines (min-height: 2.68em, src/page.html:514), which pushed the meta row out of the 52px caption */
  text-transform: none !important; opacity: 1 !important; transform: none !important; }
/* (2026-12-03, round 2, the operator: "don't show the language flag, show the Likes number with a nice heart icon
   (bigger little in size than the actual one), and also show the Author name in a nice tag and profile circle pic ..
   and the pages count in a nice design"): under the title, the author's tag on the left and the likes on the right;
   the page count is a small tab on the paper itself (.dg-pp). The flag's rules below stay for the template's page. */
.wall.dg-gal > li.card.dg .dg-m { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; margin: 7px 0 0;
  overflow: hidden; white-space: nowrap; font: 700 12px/1.3 var(--f-text, "Nunito", system-ui, sans-serif); color: var(--ink-2); }
/* the author's tag: a round picture in the logo's three colours, the name beside it (shared with the big paper) */
.dg-by { display: inline-flex; align-items: center; gap: 5px; min-width: 0; height: 22px; padding: 0 9px 0 2px; border-radius: 999px; flex: 0 1 auto;
  font: 800 11px/1 var(--f-text, "Nunito", system-ui, sans-serif); color: var(--ink); white-space: nowrap;
  background: color-mix(in oklch, var(--violet-fill) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--violet-fill) 24%, transparent); }
.dg-av { flex: none; display: block; box-sizing: border-box; width: 18px; height: 18px; padding: 1.5px; border-radius: 50%;
  background: conic-gradient(from 200deg, #63a6fe, #5f60f1, #c458f7, #dd74fc, #63a6fe); }
.dg-av .mk { display: block; width: 100%; height: 100%; border-radius: 50%; background-color: #FFFFFF; background-size: 64% auto; }
.dg-bn { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* the page count: a little tab on the paper's lower corner, two sheets and the number, on smoked glass so it reads on
   any cover; it steps aside while the paper is leafed through (the counter at the top says 1 / 12 then) */
.dg-pp { position: absolute; z-index: 3; right: 7px; bottom: 7px; display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 6px 0 4px; border-radius: 6px;
  color: #FFFFFF; font: 800 10.5px/1 var(--f-mono); font-variant-numeric: tabular-nums; background: rgba(17, 12, 30, .66);
  -webkit-backdrop-filter: blur(6px) saturate(1.4); backdrop-filter: blur(6px) saturate(1.4); box-shadow: 0 1px 2px rgba(0, 0, 0, .25), inset 0 0 0 1px rgba(255, 255, 255, .14);
  transition: opacity .2s, transform .2s; pointer-events: none; }
.dg-pp .ic { width: 13px; height: 13px; stroke-width: 2; }
.wall.dg-gal > li.card.dg.on.multi .dg-pp { opacity: 0; transform: translateY(4px); }
.wall.dg-gal > li.card.dg .dg-m .dg-dot { flex: none; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .45; }
.dg-lang { display: inline-flex; align-items: center; gap: 4px; flex: none; color: var(--ink-3); font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.dg-flag { display: inline-block; width: 14px; height: 10px; border-radius: 2px; overflow: hidden; flex: none;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 14%, transparent); }
.dg-flag svg { display: block; width: 100%; height: 100%; }
/* the likes: a bigger heart (11 px before; 16 now), tinted with the like colour, filled with its gradient once liked */
.wall.dg-gal > li.card.dg .dg-lk { display: inline-flex; align-items: center; gap: 3px; flex: none; min-width: 0; color: var(--ink-2); font: 800 12px/1 var(--f-text, "Nunito", system-ui, sans-serif); font-variant-numeric: tabular-nums; }
.wall.dg-gal > li.card.dg .dg-lk .ic, .pop-lk .ic { width: 16px; height: 16px; flex: none; stroke: var(--rose); stroke-width: 1.9; fill: color-mix(in srgb, var(--rose) 16%, transparent); }
.wall.dg-gal > li.card.dg .dg-lk.liked, .pop-lk.liked { color: var(--rose); }
.wall.dg-gal > li.card.dg .dg-lk.liked .ic, .pop-lk.liked .ic { fill: url(#gHeart); stroke: url(#gHeart); }
/* a narrow paper (an A4 portrait is 124 px wide at the wall's 176 px rows, 112 px in a tall row): the author's tag
   tightens in two steps, and on the narrowest the likes too, so "FlexDok" is never cut. Round 2's first shots cut it
   on 30 of 45 cards at 2048 px; a second pass with the tag alone still cut it by under 2 px on the 112 px captions at
   1440, which a whole-pixel check with 1 px of slack could not see (lx-shoot now measures the text itself). These
   rules come after the likes' own on purpose: at the same weight, the later rule wins. The heart stays 16 px down to
   122 px and 15 px below, bigger than the 11 px it was. */
.wall.dg-gal > li.card.dg .dg-cap { container-type: inline-size; }
@container (max-width: 140px) {
  .wall.dg-gal > li.card.dg .dg-m { gap: 4px; }
  .wall.dg-gal > li.card.dg .dg-by { gap: 3px; padding-right: 6px; font-size: 10.5px; letter-spacing: -.01em; }
  .wall.dg-gal > li.card.dg .dg-av { width: 16px; height: 16px; padding: 1.25px; }
}
@container (max-width: 122px) {
  .wall.dg-gal > li.card.dg .dg-m { gap: 3px; }
  .wall.dg-gal > li.card.dg .dg-by { gap: 2px; padding-right: 5px; font-size: 10px; letter-spacing: -.02em; }
  .wall.dg-gal > li.card.dg .dg-av { width: 15px; height: 15px; }
  .wall.dg-gal > li.card.dg .dg-lk { gap: 2px; font-size: 11px; letter-spacing: -.02em; }
  .wall.dg-gal > li.card.dg .dg-lk .ic { width: 15px; height: 15px; }
}
.wall.dg-gal > li.card.dg .dg-acts { position: absolute; top: calc(var(--gal-pad) + 8px); right: calc(var(--gal-pad) + 8px);
  display: flex; gap: 6px; opacity: 0; transform: translateY(-8px); transition: opacity .18s, transform .18s; z-index: 4; }
.wall.dg-gal > li.card.dg:hover .dg-acts, .wall.dg-gal > li.card.dg:focus-within .dg-acts,
.wall.dg-gal > li.card.dg.on .dg-acts { opacity: 1; transform: translateY(-4px); }
.wall.dg-gal > li.card.dg .dg-acts .act { position: static !important; display: grid !important; place-items: center;
  width: 30px !important; height: 30px !important; min-width: 0 !important; padding: 0 !important; margin: 0 !important; border: 0 !important;
  border-radius: 50% !important; background: rgba(255, 255, 255, .95) !important; color: #22252B !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .18), 0 4px 10px -2px rgba(0, 0, 0, .28) !important; cursor: pointer; }
.wall.dg-gal > li.card.dg .dg-acts .act:hover { background: var(--focus, #8B5CF6) !important; color: #fff !important; }
.wall.dg-gal > li.card.dg .dg-acts .act .ic { width: 15px; height: 15px; }
.wall.dg-gal > li.card.dg .dg-acts .act.like[aria-pressed="true"] { color: var(--like, #C026D3) !important; }
.wall.dg-gal > li.card.dg .dg-acts .act.save[aria-pressed="true"] { color: var(--focus, #7C3AED) !important; }
.wall.dg-gal > li.card.dg .dg-acts .act .n { display: none !important; }
@media (hover: none) { .wall.dg-gal > li.card.dg .dg-acts { opacity: 1; transform: none; } }
:root[data-theme="dark"] .wall.dg-gal > li.card.dg .dg-paper { box-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 22px -10px rgba(0, 0, 0, .7); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wall.dg-gal > li.card.dg .dg-paper { box-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 22px -10px rgba(0, 0, 0, .7); } }

/* THE SPLIT AND THE PANE: on a screen 1280px or wider the paper a mouse rests on (or the keyboard's focus) fills
   Pearl's Desk's detail pane beside the wall; a press opens the template's own page at every width. (Corrected
   2026-12-02, dg-fix4: it read "1200px" and "a selected paper", from the first port's press-to-select.) */
.dg-split { display: block; }
.dg-peek { display: none; }
@media (min-width: 1280px) { /* dg-fix4: the editor's panel shows from 1280 px */
  .dg-split.has-peek { display: grid; grid-template-columns: minmax(0, 1fr) clamp(330px, 25vw, 420px); gap: 26px; align-items: start; }
  .dg-split.has-peek > .dg-peek { display: block; position: sticky; top: calc(var(--bar-h, 64px) + 14px); margin-top: 18px;
    max-height: calc(100vh - var(--bar-h, 64px) - 28px); overflow: auto; overscroll-behavior: contain; border-radius: 16px;
    background: var(--key, #fff); color: var(--ink); border: 1px solid var(--hair);
    box-shadow: 0 1px 2px rgba(22, 26, 34, .06), 0 18px 40px -24px rgba(22, 26, 34, .45); }
}
.dgp-stage { position: relative; padding: 18px 46px 6px; background: color-mix(in srgb, var(--ink) 4%, transparent); }
.dgp-paper { position: relative; margin: 0 auto; aspect-ratio: var(--ar, .7071); max-height: 46vh; max-width: 100%;
  border-radius: 6px; overflow: hidden; background: var(--wash, #fff);
  box-shadow: 0 1px 2px rgba(22, 26, 34, .10), 0 12px 26px -12px rgba(22, 26, 34, .45); }
.dgp-paper img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.dgp-nav { position: absolute; top: 46%; width: 32px; height: 32px; margin: 0; padding: 0; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--hair); background: var(--key, #fff); color: var(--ink); cursor: pointer;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .25); }
.dgp-nav.prev { left: 8px; } .dgp-nav.next { right: 8px; }
.dgp-nav:hover { background: var(--focus, #7C3AED); color: #fff; border-color: transparent; }
.dgp-nav .ic { width: 15px; height: 15px; }
.dgp-cap { margin: 8px 0 0; padding: 0 18px; text-align: center; font: 700 12px/1.4 var(--f-text, "Nunito", sans-serif); color: var(--ink-3); }
.dgp-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 18px 12px; scrollbar-width: thin; }
.dgp-thumbs button { flex: none; height: 58px; aspect-ratio: var(--ar, .7071); padding: 0; margin: 0; border-radius: 4px; overflow: hidden;
  border: 1px solid var(--hair); background: #fff; cursor: pointer; position: relative; }
.dgp-thumbs button[aria-current="true"] { box-shadow: 0 0 0 2px var(--focus, #7C3AED); border-color: transparent; }
.dgp-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dgp-body { padding: 4px 18px 20px; }
.dgp-title { margin: 6px 0 8px; font: 800 18px/1.25 var(--f-display, "Nunito", sans-serif); color: var(--ink); }
.dgp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dgp-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink-2); font: 700 11.5px/1.5 var(--f-text, "Nunito", sans-serif); }
.dgp-acts { margin: 14px 0 8px; }
.dgp-acts .edit { width: calc(100% - 30px) !important; max-width: none !important; height: 48px; } /* dg-fix1: .edit keeps 30px for its fan */
.dgp-acts .edit .d { font-size: 16px; padding-left: 16px; }
.dgp-acts .edit .go { width: 34px; height: 34px; margin-left: 10px; }
.dgp-row { display: flex; gap: 8px; flex-wrap: wrap; }
.dgp-ib { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; margin: 0; border-radius: 999px;
  border: 1px solid var(--hair); background: var(--key, #fff); color: var(--ink); cursor: pointer;
  font: 700 13px/1 var(--f-text, "Nunito", sans-serif); }
.dgp-ib .ic { width: 15px; height: 15px; }
.dgp-ib:hover { border-color: var(--focus, #7C3AED); }
.dgp-ib.tpl-like[aria-pressed="true"] { color: var(--like, #C026D3); }
.dgp-ib.tpl-save[aria-pressed="true"] { color: var(--focus, #7C3AED); }
.dgp-h { margin: 18px 0 8px; font: 800 11px/1.3 var(--f-text, "Nunito", sans-serif); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.dgp-info { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font: 600 13px/1.35 var(--f-text, "Nunito", sans-serif); }
.dgp-info dt { color: var(--ink-3); }
.dgp-info dd { margin: 0; color: var(--ink); text-align: end; min-width: 0; overflow-wrap: anywhere; }
.dgp-info a, .dgp-link { color: var(--violet, #6D28D9); font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* ======== block: hx-style (the mockup's <style id="hx-style">) ======== */
/* ============ HERO IDEAS (mockup, session 7c02b44b, R-0324, 2026-12-02) ============
   The operator, on B2's page at about 2,000 px wide: "what ideas and design you can propose for that Hero header space"
   (the free band between the headline and the papers, which opens on screens wider than about 1,700 px; at 1,440 px
   the two columns already meet). Five answers, switched by the floating "Hero idea" bar (a mockup control, never part
   of the site): 1 a search with paper chips, 2 a template of the day that turns its own pages, 3 the three steps from
   a paper to your own copy, 4 an index card of the week, 5 a wider desk dealt afresh. Ideas 1 to 4 sit in a middle
   column from 1,780 px wide and become a band under the hero below that; idea 5 widens the desk itself. */
.hx-mid { display: none; min-width: 0; }
.hero.hx-on .hx-mid { display: block; grid-column: 1 / -1; order: 3; }
@media (min-width: 1780px) {
  .hero.hx-on { grid-template-columns: minmax(300px, 430px) minmax(380px, 1fr) minmax(520px, 700px); gap: 34px; }
  .hero.hx-on .hx-mid { grid-column: auto; order: 0; }
  .hero.hx-wide { grid-template-columns: minmax(300px, 430px) minmax(0, 1fr); }
  .hero.hx-wide .spread { width: 100%; aspect-ratio: 2.3; }
  .hero.hx-wide .pencil { left: 50cqw; top: 33.5cqw; width: 27cqw; }
  .hero.hx-wide .hero-seal { left: 37cqw; top: 13.5cqw; width: 6.6cqw; height: 6.6cqw; }
}
.hx-k { margin: 0 0 12px; font: 700 11.5px/1.2 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.hx-k b { color: var(--violet); }
.hx-mid h2 { margin: 0; font: 800 26px/1.08 var(--f-display); letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }

/* ---- 1 · search with paper chips ---- */
.hx1 { padding: 8px 0; }
.hx1 h2 { margin-bottom: 16px; }
.hx1 h2 .g { background: linear-gradient(90deg, var(--hl-1), var(--hl-2) 55%, var(--hl-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx1-f { position: relative; display: flex; align-items: center; gap: 10px; height: 62px; padding: 0 8px 0 20px; border-radius: 18px; background: var(--felt); border: 1px solid var(--hair);
  box-shadow: 0 1px 0 var(--lip) inset, 0 18px 40px -22px rgb(var(--glow) / .55), 0 3px 10px -4px rgb(var(--sh) / .25); transition: box-shadow .25s, border-color .25s; }
.hx1-f:focus-within { border-color: color-mix(in oklch, var(--violet-fill) 60%, transparent); box-shadow: 0 0 0 4px color-mix(in oklch, var(--violet-fill) 22%, transparent), 0 18px 40px -20px rgb(var(--glow) / .7); }
.hx1-f .ic { width: 22px; height: 22px; flex: none; color: var(--ink-3); }
.hx1-f input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: 650 17px/1 var(--f-text); color: var(--ink); }
.hx1-f input::placeholder { color: var(--ink-3); opacity: 1; }
.hx1-f input::-webkit-search-cancel-button { display: none; }
.hx1-go { flex: none; height: 46px; padding: 0 20px; border: 0; border-radius: 13px; cursor: pointer; font: 800 15px/1 var(--f-display); color: #FFFFFF;
  background: linear-gradient(90deg, #7C3AED 0%, #9333EA 55%, #C026D3 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 18px -8px rgba(124, 58, 237, .8); }
.hx1-go:hover { filter: brightness(1.06); }
.hx1-sub { margin: 20px 0 10px; font: 700 12.5px/1.2 var(--f-text); color: var(--ink-3); }
.hx1-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.hx1-chip { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 12px 6px 8px; border: 1px solid var(--hair-2); border-radius: 13px; cursor: pointer; text-align: left;
  background: color-mix(in oklch, var(--felt) 78%, transparent); color: var(--ink); font: 700 13.5px/1.15 var(--f-text); transition: transform .25s var(--spring), border-color .2s, background .2s; }
.hx1-chip:hover, .hx1-chip:focus-visible { transform: translateY(-2px); border-color: color-mix(in oklch, var(--violet-fill) 45%, transparent); background: var(--felt); }
.hx1-chip .pp { flex: none; position: relative; width: 30px; height: 40px; isolation: isolate; }
.hx1-chip .pp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 2px; box-shadow: 0 1px 2px rgb(var(--sh) / .3), 0 4px 8px -3px rgb(var(--sh) / .35); transition: transform .3s var(--spring); }
.hx1-chip .pp img + img { transform: rotate(7deg) translate(4px, 1px); z-index: -1; opacity: .9; }
.hx1-chip:hover .pp img:first-child { transform: rotate(-5deg) translateY(-2px); }
.hx1-chip .w { flex: 1; min-width: 0; }
.hx1-chip .n { display: block; margin-top: 2px; font: 600 11.5px/1 var(--f-mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.hx1-chip.rtl .ar { font-size: 15px; }

/* ---- 2 · template of the day: a booklet that turns its pages ---- */
.hx2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; justify-items: center; }
.hx2-book { position: relative; display: flex; width: min(100%, 440px); perspective: 1800px; filter: drop-shadow(0 22px 26px rgb(var(--sh) / .32)) drop-shadow(0 0 40px rgb(var(--glow) / var(--glow-a))); }
.hx2-pg { display: block; position: relative; flex: 1 1 50%; aspect-ratio: var(--ar); background: #FFFFFF; overflow: hidden; }
.hx2-pg img, .hx2-leaf img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hx2-pg.l { border-radius: 3px 0 0 3px; } .hx2-pg.r { border-radius: 0 3px 3px 0; }
/* the gutter: a soft fold where the two pages meet */
.hx2-pg.l::after, .hx2-pg.r::after { content: ""; position: absolute; top: 0; bottom: 0; width: 18%; pointer-events: none; }
.hx2-pg.l::after { right: 0; background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .16)); }
.hx2-pg.r::after { left: 0; background: linear-gradient(270deg, transparent, rgba(0, 0, 0, .2)); }
.hx2-leaf { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-origin: 0 50%; transform-style: preserve-3d; z-index: 3; visibility: hidden; }
.hx2-leaf.go { visibility: visible; transition: transform .95s cubic-bezier(.45, .05, .25, 1); transform: rotateY(-180deg); }
.hx2-leaf.set { visibility: visible; }
.hx2-leaf > div { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; background: #FFFFFF; }
.hx2-leaf .f { border-radius: 0 3px 3px 0; }
.hx2-leaf .b { transform: rotateY(180deg); border-radius: 3px 0 0 3px; }
.hx2-leaf .f::after, .hx2-leaf .b::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.hx2-leaf.go .f::after { animation: hxShade .95s ease-in both; background: linear-gradient(270deg, rgba(0, 0, 0, .0), rgba(0, 0, 0, .28)); }
@keyframes hxShade { from { opacity: 0; } to { opacity: 1; } }
.hx2-info { width: min(100%, 440px); }
.hx2-t { font-size: 22px !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hx2-t a { color: inherit; text-decoration: none; } .hx2-t a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hx2-by { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 10px 0 14px; font: 650 13px/1.3 var(--f-text); color: var(--ink-2); }
.hx2-by .mk { width: 20px; height: 20px; }
.hx2-by .who { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--ink); }
.hx2-by .st { color: var(--star); } .hx2-by .lk { color: var(--rose); }
.hx2-by .ic { width: 14px; height: 14px; vertical-align: -2px; fill: currentColor; stroke: none; }
.hx2-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.hx2-acts .key { min-height: 46px; padding: 0 18px; font-size: 14.5px; font-weight: 750; }
.hx2-acts .edit { height: 46px; } .hx2-acts .edit .d { font-size: 15px; } .hx2-acts .edit .go { width: 34px; height: 34px; }
.hx2-nav { display: flex; align-items: center; gap: 8px; margin-top: 14px; font: 650 12px/1 var(--f-mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.hx2-nav button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--hair); background: var(--felt); color: var(--ink); cursor: pointer; }
.hx2-nav button .ic { width: 16px; height: 16px; }
.hx2-dots { display: flex; gap: 5px; } .hx2-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--hair); } .hx2-dots i.on { background: var(--violet-fill); width: 16px; border-radius: 3px; }

/* ---- 3 · from a paper to your own copy, in three steps ---- */
.hx3 { position: relative; display: grid; gap: 4px; padding: 4px 0; }
.hx3 > h2 { margin-bottom: 6px; }
.hx3 h2 .g { background: linear-gradient(90deg, var(--hl-1), var(--hl-2) 55%, var(--hl-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* the pencil's dotted route from one step to the next: step 2 sits 100 px to the right, so each arrow is drawn once */
.hx3-arr { position: absolute; z-index: 0; bottom: -26px; width: 92px; height: 34px; overflow: visible; pointer-events: none; }
.hx3-arr.a1 { left: 70px; } .hx3-arr.a2 { left: -30px; }
.hx3-arr path { fill: none; stroke: var(--violet-fill); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hx3-arr path.d { stroke-dasharray: 1.5 7; }
html:not([data-motion="off"]) .hx3-arr path.d { animation: hxMarch 1.4s linear infinite; }
@keyframes hxMarch { to { stroke-dashoffset: -17; } }
.hx3-st { position: relative; z-index: 1; display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: center; gap: 16px; width: min(calc(100% - 100px), 420px); padding: 10px 0; }
.hx3-st:nth-of-type(2) { margin-left: 100px; }
.hx3-st .ill { position: relative; height: 112px; }
.hx3-st h3 { margin: 0 0 4px; display: flex; align-items: center; gap: 9px; font: 800 17px/1.15 var(--f-display); color: var(--ink); }
.hx3-st h3 .no { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; font: 800 13px/1 var(--f-display); color: #FFFFFF; background: linear-gradient(135deg, #7C3AED, #C026D3); box-shadow: 0 4px 10px -4px rgba(124, 58, 237, .8); }
.hx3-st p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
/* step 1: a fan of papers */
.hx3-fan img { position: absolute; left: 50%; bottom: 4px; width: 62px; aspect-ratio: .707; object-fit: cover; border-radius: 2px; transform-origin: 50% 120%; box-shadow: 0 2px 3px rgb(var(--sh) / .3), 0 10px 16px -8px rgb(var(--sh) / .5); transition: transform .5s var(--spring); }
.hx3-fan img:nth-child(1) { transform: translateX(-50%) rotate(-16deg); } .hx3-fan img:nth-child(2) { transform: translateX(-50%) rotate(0deg); z-index: 2; } .hx3-fan img:nth-child(3) { transform: translateX(-50%) rotate(16deg); }
.hx3-st:hover .hx3-fan img:nth-child(1) { transform: translateX(-50%) rotate(-24deg); } .hx3-st:hover .hx3-fan img:nth-child(3) { transform: translateX(-50%) rotate(24deg); } .hx3-st:hover .hx3-fan img:nth-child(2) { transform: translateX(-50%) translateY(-8px); }
/* step 2: a light table */
.hx3-lt { position: absolute; left: 4px; right: 4px; bottom: 6px; height: 70px; border-radius: 12px; background: linear-gradient(160deg, var(--table-a), var(--table-b)); box-shadow: 0 0 0 1px var(--hair-2), 0 0 34px -4px rgba(139, 92, 246, .55), 0 12px 20px -12px rgb(var(--sh) / .5); }
.hx3-lt::before { content: ""; position: absolute; inset: 7px; border-radius: 7px; border: 1px dashed rgba(124, 58, 237, .25); }
.hx3-lt img { position: absolute; left: 50%; bottom: 14px; width: 58px; aspect-ratio: .707; object-fit: cover; border-radius: 2px; transform: translateX(-50%) rotate(-3deg); box-shadow: 0 0 22px 2px rgba(255, 255, 255, .9), 0 8px 14px -6px rgb(var(--sh) / .45); }
html:not([data-motion="off"]) .hx3-lt img { animation: hxLift 3.2s ease-in-out infinite; }
@keyframes hxLift { 0%, 100% { transform: translateX(-50%) rotate(-3deg) translateY(0); } 50% { transform: translateX(-50%) rotate(-1deg) translateY(-7px); } }
/* step 3: the editor */
.hx3-ed { position: absolute; left: 0; right: 0; top: 8px; bottom: 4px; border-radius: 10px; background: var(--felt); border: 1px solid var(--hair); overflow: hidden; box-shadow: 0 14px 26px -14px rgb(var(--sh) / .6), 0 0 30px -12px rgb(var(--glow) / .6); }
.hx3-ed .tb { display: flex; align-items: center; gap: 4px; height: 18px; padding: 0 7px; background: color-mix(in oklch, var(--violet-fill) 12%, var(--felt)); border-bottom: 1px solid var(--hair-2); font: 800 8.5px/1 var(--f-text); color: var(--ink-2); }
.hx3-ed .tb i { width: 5px; height: 5px; border-radius: 50%; background: var(--hair); } .hx3-ed .tb .mk { width: 10px; height: 10px; margin-left: 4px; }
.hx3-ed .pg { position: absolute; left: 50%; top: 24px; width: 58px; bottom: -30px; transform: translateX(-50%); background: #FFFFFF; box-shadow: 0 2px 6px rgb(var(--sh) / .25); overflow: hidden; }
.hx3-ed .pg img { width: 100%; display: block; opacity: .9; }
.hx3-ed .bx { position: absolute; left: 6px; right: 6px; top: 26px; padding: 3px 3px 2px; border: 1.5px solid #7C3AED; border-radius: 2px; background: rgba(255, 255, 255, .94); font: 800 6.6px/1.1 var(--f-text); color: #140d24; white-space: nowrap; overflow: hidden; }
.hx3-ed .bx .typed { display: inline-block; vertical-align: bottom; overflow: hidden; }
html:not([data-motion="off"]) .hx3-ed .bx .typed { animation: hxType 4.2s steps(14) infinite; }
@keyframes hxType { 0% { width: 0; } 55%, 85% { width: 14ch; } 100% { width: 0; } }
.hx3-ed .bx .caret { display: inline-block; width: 1px; height: 7px; margin-left: 1px; background: #7C3AED; vertical-align: -1px; }
html:not([data-motion="off"]) .hx3-ed .bx .caret { animation: hxBlink 1s steps(2) infinite; }
@keyframes hxBlink { 50% { opacity: 0; } }
.hx3-ed .side { position: absolute; right: 6px; top: 26px; width: 26px; display: grid; gap: 4px; } .hx3-ed .side i { height: 5px; border-radius: 3px; background: var(--hair); } .hx3-ed .side i:first-child { background: linear-gradient(90deg, #7C3AED, #C026D3); }
.hx3-foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 0; padding: 0; list-style: none; font: 650 12px/1.2 var(--f-text); color: var(--ink-3); }
.hx3-foot li::before { content: "✓ "; color: var(--violet); font-weight: 800; }

/* ---- 4 · an index card of the week ---- */
.hx4 { display: grid; justify-items: center; padding: 10px 0; }
.hx4-card { position: relative; width: min(100%, 460px); padding: 26px 26px 20px; border-radius: 4px; color: var(--pp-ink); transform: rotate(-1.2deg);
  /* an index card: one fuchsia rule under its heading; the blue rules are the rows' own lines (round 1 drew them every
     28 px behind the rows, and the rows' text sat across them) */
  background-color: #FFFFFF;
  background-image: linear-gradient(transparent 52px, rgba(192, 38, 211, .35) 52px, rgba(192, 38, 211, .35) 53.5px, transparent 53.5px);
  box-shadow: 0 1px 2px rgb(var(--sh) / .3), 0 24px 40px -22px rgb(var(--sh) / .6), 0 0 44px -14px rgb(var(--glow) / var(--glow-a)); }
.hx4-list li { border-bottom: 1px solid rgba(107, 177, 229, .3); }
.hx4-n { padding-bottom: 12px; border-bottom: 1px solid rgba(107, 177, 229, .3); }
/* the clip holds the card's right-hand corner (round 1 put it over the heading's first word) */
.hx4-card .clip { position: absolute; z-index: 3; right: 34px; top: -16px; width: 22px; transform: rotate(5deg); pointer-events: none; }
.hx4-card .clip svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 2px 1.5px rgb(var(--sh) / .42)); }
.hx4-card .hx-k { color: var(--pp-ink-3); margin: 0 0 18px; }
.hx4-card .hx-k b { color: var(--pp-acc); }
.hx4-n { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.hx4-n div { min-width: 0; }
.hx4-n dd { margin: 0; font: 800 26px/1 var(--f-display); letter-spacing: -.02em; color: #140d24; font-variant-numeric: tabular-nums; }
.hx4-n dt { margin-top: 4px; font: 700 11px/1.2 var(--f-text); color: var(--pp-ink-3); }
.hx4-card h3 { margin: 10px 0 4px; font: 800 12px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--pp-acc); }
.hx4-list { margin: 0; padding: 0; list-style: none; }
.hx4-list a { display: grid; grid-template-columns: 18px 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 40px; padding: 3px 4px; border-radius: 6px; color: #140d24; text-decoration: none; }
.hx4-list a:hover, .hx4-list a:focus-visible { background: rgba(124, 58, 237, .07); }
.hx4-list .r { font: 800 13px/1 var(--f-display); color: var(--pp-ink-3); text-align: center; }
.hx4-list img { width: 26px; height: 34px; object-fit: cover; border-radius: 2px; box-shadow: 0 1px 3px rgba(20, 13, 36, .3); }
.hx4-list .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 13.5px/1.2 var(--f-text); }
.hx4-list .v { font: 700 12.5px/1 var(--f-mono); color: #BE185D; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hx4-list .v.new { color: var(--pp-acc); }
.hx4-list .v .ic { width: 13px; height: 13px; fill: currentColor; stroke: none; vertical-align: -2px; }
.hx4-sign { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font: 700 12px/1.2 var(--f-text); color: var(--pp-ink-3); }
.hx4-sign .mk { width: 18px; height: 18px; }

/* ---- 5 · a wider desk, dealt afresh ---- */
.hx-deal { position: absolute; right: 6px; bottom: -6px; z-index: 40; }
.hx-deal .key { min-height: 38px; padding: 0 14px; font-size: 13px; font-weight: 750; }
.hx-deal .ic { width: 16px; height: 16px; }

/* ---- the bands under the hero (below 1,780 px wide) ---- */
@media (max-width: 1779.98px) {
  .hero.hx-on .hx-mid { margin-top: 18px; padding-top: 22px; border-top: 1px dashed var(--hair); }
  .hx1 { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 10px 28px; align-items: start; }
  .hx1 h2 { grid-column: 1; } .hx1-f { grid-column: 1; } .hx1 .hx1-sub { grid-column: 2; grid-row: 1; margin: 2px 0 0; align-self: end; } .hx1-chips { grid-column: 2; grid-row: 2 / span 2; }
  .hx2 { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); align-items: center; justify-items: start; gap: 30px; }
  .hx3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } .hx3 > h2 { grid-column: 1 / -1; } .hx3-foot { grid-column: 1 / -1; }
  .hx3-st, .hx3-st:nth-of-type(2) { justify-self: stretch; width: auto; margin-left: 0; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hx3-st .ill { max-width: 170px; width: 100%; }
  .hx3-arr { display: none; }
  .hx4-card { width: 100%; max-width: 880px; transform: rotate(-.5deg); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0 26px; }
  .hx4-card > .hx-k, .hx4-card > .hx4-sign { grid-column: 1 / -1; }
  .hx4-n { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; border-bottom: 0; }
}
@media (max-width: 860px) {
  .hx1, .hx2 { grid-template-columns: minmax(0, 1fr); }
  .hx1 .hx1-sub { grid-column: 1; grid-row: auto; margin-top: 10px; } .hx1-chips { grid-column: 1; grid-row: auto; }
  .hx3 { grid-template-columns: minmax(0, 1fr); }
  .hx3-st, .hx3-st:nth-of-type(2) { grid-template-columns: 120px minmax(0, 1fr); }
  .hx4-card { grid-template-columns: minmax(0, 1fr); }
  .hx2-book { width: 100%; }
}
@media (max-width: 720px) { .hx1-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hx1-f { height: 56px; } .hx1-go { padding: 0 14px; } .hx4-n dd { font-size: 22px; } }

/* ---- the switcher: a mockup control, never part of the site ---- */
.hx-bar { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 90; translate: -50% 0; display: flex; align-items: center; gap: 6px; max-width: calc(100vw - 24px); overflow-x: auto; scrollbar-width: none;
  padding: 7px 8px 7px 14px; border-radius: 16px; background: color-mix(in oklch, var(--cm-bg) 88%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--hair); box-shadow: 0 18px 40px -14px rgb(var(--sh) / .55), 0 0 0 1px rgba(124, 58, 237, .12); }
.hx-bar .l { flex: none; margin-right: 4px; font: 800 11px/1.1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--violet); white-space: nowrap; }
.hx-bar button { flex: none; height: 34px; padding: 0 12px; border: 0; border-radius: 10px; cursor: pointer; white-space: nowrap; background: transparent; color: var(--ink-2); font: 700 13px/1 var(--f-text); }
.hx-bar button:hover { background: var(--hair-2); color: var(--ink); }
.hx-bar button[aria-checked="true"] { color: #FFFFFF; background: linear-gradient(90deg, #7C3AED, #9333EA 55%, #C026D3); box-shadow: 0 6px 14px -6px rgba(124, 58, 237, .8); }
.hx-bar button b { font-weight: 800; margin-right: 4px; opacity: .75; }
/* on a phone the bar sits above the Tools button, smaller, and scrolls sideways */
@media (max-width: 720px) {
  .hx-bar { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); left: 12px; right: 12px; translate: none; max-width: none; padding: 5px 6px 5px 10px; gap: 2px; }
  .hx-bar .l { font-size: 10px; } .hx-bar button { height: 30px; padding: 0 9px; font-size: 12px; }
}

/* ======== block: cx-style (the mockup's <style id="cx-style">) ======== */
/* ============ COLLECTIONS DESIGNS, NO SIDE PANELS (mockup, session 7c02b44b, R-0324, 2026-12-03) ============
   The operator, on A-0212: "I loved this choice (1-Search) . and i want to remove that right side preview Panel from the
   Templates section, also based in the design of the (1-Search) i want you to design for me 5 variants for the section
   of folders "Collections" something nicer, creative and little compact in size and height", then "also i want to
   remove/hide the left side Search/Filters panel". */

/* ---- the filters panel: hidden at every width, slid in by Tools (the tablet's drawer, now everywhere) ---- */
@media (min-width: 721px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .drawer { position: fixed; z-index: 60; left: 0; top: calc(var(--bar-h) + env(safe-area-inset-top, 0px)); bottom: 0; width: min(340px, 88vw); height: auto; transform: translateX(-104%); transition: transform .38s var(--spring); box-shadow: 24px 0 60px -20px rgb(0 0 0 / .5); }
  .drawer.open { transform: none; }
  .dw-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 0; }
  .dw-head h2 { margin: 0; font: 760 20px/1 var(--f-display); }
  .toolsbtn { display: inline-flex; }
  .scrim { position: fixed; inset: 0; z-index: 55; background: var(--overlay); }
  main { padding-left: max(34px, env(safe-area-inset-left, 0px)); }
}
/* the small search above the hero is the tablet's: the hero's own search stands in for it while the hero shows */
#vGallery:has(#hero:not([hidden])) .msearch { display: none; }

/* ---- the section: a slimmer heading, and today's folders hidden while a design is shown ---- */
#foldersWrap.cx-on #folders { display: none; }
.cx { display: none; }
#foldersWrap.cx-on .cx { display: block; }
#foldersWrap.cx-on .sec-head { margin: 22px 0 12px; }
#foldersWrap.cx-on .sec-head h2 { font-size: 24px; }
.cx-row { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; padding: 14px 4px 14px; margin: 0 -4px; scrollbar-width: thin; }
.cx-row > * { scroll-snap-align: start; }
.cx button, .cx a { font: inherit; color: inherit; }
.cx .n { font: 650 11.5px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink-3); }
/* a tone dark enough to carry white words, whatever the collection's colour (sky-blue and lavender are light) */
.cx [style*="--tone"] { --tone-d: color-mix(in oklch, var(--tone) 70%, #1e1240); }

/* ---- 1 · slim folders: a folder a third shorter, its name on the folder itself ---- */
.cx1 { position: relative; flex: 0 0 176px; height: 112px; border: 0; padding: 0; background: none; cursor: pointer; text-align: left; transition: transform .3s var(--spring); }
.cx1 .bk { position: absolute; inset: 12px 0 0; border-radius: 4px 12px 10px 10px; background: var(--tone-d); }
.cx1 .bk::before { content: ""; position: absolute; left: 0; top: -12px; width: 44%; height: 16px; border-radius: 6px 9px 0 0; background: var(--tone-d); clip-path: polygon(0 0, 80% 0, 100% 100%, 0 100%); }
.cx1 .in { position: absolute; left: 18px; right: 18px; top: 2px; height: 70px; }
.cx1 .in img { position: absolute; bottom: 0; height: 64px; aspect-ratio: .72; object-fit: cover; border-radius: 1.5px; box-shadow: 0 1px 3px rgb(0 0 0 / .35); transition: transform .4s var(--spring); }
.cx1 .in img:nth-child(1) { left: 2px; transform: rotate(-8deg) translateY(4px); } .cx1 .in img:nth-child(2) { left: 46px; transform: rotate(2deg) translateY(-4px); z-index: 2; } .cx1 .in img:nth-child(3) { right: 0; transform: rotate(9deg) translateY(3px); }
.cx1:hover .in img:nth-child(1), .cx1:focus-visible .in img:nth-child(1) { transform: rotate(-12deg) translate(-3px, -10px); }
.cx1:hover .in img:nth-child(2), .cx1:focus-visible .in img:nth-child(2) { transform: rotate(1deg) translateY(-16px); }
.cx1:hover .in img:nth-child(3), .cx1:focus-visible .in img:nth-child(3) { transform: rotate(13deg) translate(3px, -9px); }
.cx1 .fr { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 58px; display: flex; flex-direction: column; justify-content: center; padding: 0 13px; border-radius: 3px 3px 10px 10px; color: #FFFFFF;
  background: linear-gradient(160deg, color-mix(in oklch, var(--tone) 92%, #FFFFFF), var(--tone-d)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 16px -10px rgb(var(--sh) / .6); transform-origin: 50% 100%; transition: transform .35s var(--spring); }
.cx1:hover .fr, .cx1:focus-visible .fr { transform: perspective(500px) rotateX(-14deg); }
.cx1 .fr b { font: 800 14px/1.12 var(--f-display); letter-spacing: -.01em; text-shadow: 0 1px 1px rgba(0, 0, 0, .2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx1 .fr span { margin-top: 3px; font: 700 11px/1 var(--f-mono); opacity: .88; }

/* ---- 2 · paper chips: the hero's chips, grown into a collection's card ---- */
/* eight collections in two rows of four (round 1's auto-fill set seven on the operator's width and left one alone) */
.cx2 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 6px 0 4px; }
.cx2-c { position: relative; display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 8px 14px 8px 12px; border: 1px solid var(--hair-2); border-radius: 14px; cursor: pointer; text-align: left;
  background: color-mix(in oklch, var(--felt) 80%, transparent); transition: transform .25s var(--spring), border-color .2s, background .2s, box-shadow .25s; overflow: hidden; }
.cx2-c::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--tone); }
.cx2-c:hover, .cx2-c:focus-visible { transform: translateY(-2px); border-color: color-mix(in oklch, var(--tone) 55%, transparent); background: var(--felt); box-shadow: 0 14px 26px -18px color-mix(in oklch, var(--tone) 80%, transparent); }
.cx2-c .st { flex: none; position: relative; width: 50px; height: 50px; isolation: isolate; }
.cx2-c .st img { position: absolute; top: 2px; width: 34px; height: 46px; object-fit: cover; border-radius: 2px; box-shadow: 0 1px 2px rgb(var(--sh) / .3), 0 4px 8px -3px rgb(var(--sh) / .35); transition: transform .3s var(--spring); }
.cx2-c .st img:nth-child(1) { left: 0; transform: rotate(-9deg); z-index: 1; } .cx2-c .st img:nth-child(2) { left: 8px; z-index: 2; } .cx2-c .st img:nth-child(3) { left: 16px; transform: rotate(9deg); z-index: 3; }
.cx2-c:hover .st img:nth-child(1) { transform: rotate(-15deg) translateX(-3px); } .cx2-c:hover .st img:nth-child(3) { transform: rotate(15deg) translateX(4px); }
.cx2-c .w { flex: 1; min-width: 0; }
.cx2-c .w b { display: block; font: 800 14.5px/1.15 var(--f-display); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx2-c .w span { display: block; margin-top: 3px; font: 600 12px/1.3 var(--f-text); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx2-c .ct { flex: none; padding: 5px 9px; border-radius: 999px; font: 800 12px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink); background: color-mix(in oklch, var(--tone) 18%, transparent); }

/* ---- 3 · envelopes: a pocket of the collection's colour, three papers sticking out, a stamp in the corner ---- */
.cx3 { position: relative; flex: 0 0 190px; height: 128px; border: 0; padding: 0; background: none; cursor: pointer; text-align: left; }
.cx3 .flap { position: absolute; left: 0; right: 0; top: 18px; height: 50px; background: var(--tone-d); clip-path: polygon(0 100%, 50% 0, 100% 100%); opacity: .9; }
.cx3 .in { position: absolute; left: 26px; right: 26px; top: 4px; height: 80px; }
.cx3 .in img { position: absolute; bottom: 0; width: 52px; height: 72px; object-fit: cover; border-radius: 1.5px; box-shadow: 0 1px 3px rgb(0 0 0 / .35); transition: transform .45s var(--spring); }
.cx3 .in img:nth-child(1) { left: 0; transform: rotate(-6deg); } .cx3 .in img:nth-child(2) { left: 44px; transform: translateY(-6px) rotate(1deg); z-index: 2; } .cx3 .in img:nth-child(3) { right: 0; transform: rotate(7deg); }
.cx3:hover .in img:nth-child(1), .cx3:focus-visible .in img:nth-child(1) { transform: translateY(-14px) rotate(-9deg); }
.cx3:hover .in img:nth-child(2), .cx3:focus-visible .in img:nth-child(2) { transform: translateY(-24px) rotate(1deg); }
.cx3:hover .in img:nth-child(3), .cx3:focus-visible .in img:nth-child(3) { transform: translateY(-12px) rotate(10deg); }
/* the pocket: two side folds and a bottom fold drawn as soft triangles over the envelope's colour */
.cx3 .pk { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 74px; border-radius: 4px 4px 9px 9px; overflow: hidden; background: var(--tone);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 18px -12px rgb(var(--sh) / .7); }
.cx3 .pk::before, .cx3 .pk::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.cx3 .pk::before { background: linear-gradient(32deg, rgba(0, 0, 0, .14) 0 49.6%, transparent 50%), linear-gradient(-32deg, rgba(0, 0, 0, .1) 0 49.6%, transparent 50%); background-size: 50% 100%, 50% 100%; background-position: 0 0, 100% 0; background-repeat: no-repeat; }
.cx3 .pk::after { background: linear-gradient(180deg, transparent 52%, rgba(255, 255, 255, .1) 52%); }
.cx3 .lab { position: absolute; z-index: 4; left: 10px; right: 46px; bottom: 10px; padding: 6px 8px 7px; border-radius: 3px; background: #FFFFFF; color: #140d24; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transform: rotate(-1deg); }
.cx3 .lab b { display: block; font: 800 12.5px/1.15 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx3 .lab span { display: block; margin-top: 2px; font: 700 10.5px/1 var(--f-mono); color: #6B6480; }
/* the stamp: a white square with a dashed frame and the FlexDok mark (round 1's perforation mask punched holes all over
   it and read as a checkerboard) */
.cx3 .stamp { position: absolute; z-index: 4; right: 9px; bottom: 11px; width: 32px; height: 38px; display: grid; place-items: center; background: #FFFFFF; border-radius: 2px; transform: rotate(5deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.cx3 .stamp::before { content: ""; position: absolute; inset: 3px; border: 1.5px dashed var(--tone-d); border-radius: 1px; opacity: .6; }
.cx3 .stamp .mk { position: relative; width: 18px; height: 18px; }

/* ---- 4 · binder tabs: one row of tabs; the open tab shows its papers on a strip below ---- */
.cx4 { padding-top: 4px; }
.cx4-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 0 2px; }
.cx4-t { flex: none; display: flex; align-items: baseline; gap: 7px; height: 40px; padding: 0 16px; border: 0; border-radius: 12px 12px 0 0; cursor: pointer; white-space: nowrap;
  background: color-mix(in oklch, var(--tone) 14%, var(--felt)); color: var(--ink-2); font: 750 13.5px/40px var(--f-display); transition: background .2s, color .2s, transform .2s var(--spring); transform: translateY(5px); }
.cx4-t:hover { transform: translateY(2px); background: color-mix(in oklch, var(--tone) 24%, var(--felt)); }
.cx4-t .n { font-size: 11px; }
.cx4-t[aria-selected="true"] { color: #FFFFFF; background: var(--tone-d); transform: none; }
.cx4-t[aria-selected="true"] .n { color: rgba(255, 255, 255, .8); }
.cx4-p { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 16px 20px; border-radius: 0 14px 14px 14px; background: var(--felt); border: 1px solid var(--hair-2); border-top: 3px solid var(--tone-d); box-shadow: 0 16px 30px -24px rgb(var(--sh) / .7); }
.cx4-p h3 { margin: 0 0 4px; font: 800 18px/1.15 var(--f-display); color: var(--ink); }
.cx4-p p { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.cx4-strip { display: flex; gap: 10px; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.cx4-strip a { flex: none; display: block; height: 84px; border-radius: 2px; overflow: hidden; box-shadow: 0 1px 2px rgb(var(--sh) / .3), 0 6px 12px -6px rgb(var(--sh) / .45); transition: transform .3s var(--spring); }
.cx4-strip a:hover, .cx4-strip a:focus-visible { transform: translateY(-5px) rotate(-1.5deg); }
.cx4-strip img { height: 100%; width: auto; display: block; }
.cx4-go { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 0; border-radius: 12px; cursor: pointer; white-space: nowrap; font: 800 13.5px/1 var(--f-display); color: #FFFFFF;
  background: linear-gradient(90deg, #7C3AED 0%, #9333EA 55%, #C026D3 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 18px -8px rgba(124, 58, 237, .8); }
.cx4-go .ic { width: 16px; height: 16px; }

/* ---- 5 · banded stacks: each collection a small stack of its papers, held by a paper band in its colour ----
   (2026-12-03, the operator's choice "i like the (Banded stacks)"; round 2: the band carries the collection's NAME, in
   as many lines as the name needs, and the count moves under the stack) */
.cx5 { flex: 0 0 136px; display: grid; justify-items: center; gap: 10px; border: 0; padding: 4px 0 0; background: none; cursor: pointer; text-align: center; }
.cx5 .st { position: relative; width: 88px; height: 116px; }
.cx5 .st img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 2px; box-shadow: 0 1px 2px rgb(var(--sh) / .35), 0 8px 14px -8px rgb(var(--sh) / .5); transition: transform .4s var(--spring); }
.cx5 .st img:nth-child(1) { transform: translate(7px, 5px) rotate(5deg); } .cx5 .st img:nth-child(2) { transform: translate(-6px, 3px) rotate(-4deg); } .cx5 .st img:nth-child(3) { transform: rotate(-.5deg); }
.cx5:hover .st img:nth-child(1), .cx5:focus-visible .st img:nth-child(1) { transform: translate(20px, -2px) rotate(11deg); }
.cx5:hover .st img:nth-child(2), .cx5:focus-visible .st img:nth-child(2) { transform: translate(-19px, -2px) rotate(-10deg); }
.cx5:hover .st img:nth-child(3), .cx5:focus-visible .st img:nth-child(3) { transform: translateY(-6px); }
/* the band: wider than the stack, its two ends folded under (the darker tips), the collection's name written on it. It
   has no height of its own: a short name is one line, "Magazines & long reads" two, and the band grows to hold them,
   always centred on the same line across the stack (top 60%, pulled up by half its own height) */
.cx5 .bd { position: absolute; z-index: 5; left: -15px; right: -15px; top: 60%; display: block; padding: 6px 11px 7px; border-radius: 2px; color: #FFFFFF;
  font: 800 12.5px/1.18 var(--f-display); letter-spacing: .005em; text-wrap: balance; overflow-wrap: anywhere; text-shadow: 0 1px 1px rgb(0 0 0 / .22);
  background: linear-gradient(90deg, color-mix(in oklch, var(--tone-d) 70%, #000) 0 6px, var(--tone-d) 6px calc(100% - 6px), color-mix(in oklch, var(--tone-d) 70%, #000) calc(100% - 6px));
  box-shadow: 0 2px 5px rgb(var(--sh) / .38), inset 0 1px 0 rgba(255, 255, 255, .25); transform: translateY(-50%) rotate(-3deg); transition: transform .35s var(--spring); }
.cx5:hover .bd, .cx5:focus-visible .bd { transform: translateY(calc(-50% + 5px)) rotate(-3deg) scaleX(1.04); }
.cx5 .bd[dir="rtl"], .cx5 .bd:lang(ar) { font-size: 14px; }
.cx5 .ct { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 4px; border-radius: 999px; font: 800 11.5px/1 var(--f-mono); color: var(--ink-2); font-variant-numeric: tabular-nums;
  background: color-mix(in oklch, var(--tone) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--tone) 26%, transparent); }
.cx5 .ct i { width: 6px; height: 6px; border-radius: 50%; background: var(--tone-d); }

/* the rows of folders, envelopes and stacks spread to fill a wide screen (round 1 left the right third of the row
   empty on the operator's width), and scroll sideways once they reach their smallest size */
.cx1 { flex: 1 0 176px; max-width: 236px; } .cx3 { flex: 1 0 196px; max-width: 240px; } .cx5 { flex: 1 0 136px; max-width: 220px; }
@media (max-width: 1100px) { .cx2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .cx4-p { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cx4-go { justify-self: start; }
}
/* a phone: the chips two by two without their line of description (round 1 stacked them in one column 610 px tall) */
@media (max-width: 720px) {
  .cx2 { gap: 8px; }
  .cx2-c { gap: 9px; min-height: 58px; padding: 7px 9px 7px 10px; }
  .cx2-c .st { width: 40px; height: 44px; } .cx2-c .st img { width: 28px; height: 38px; }
  .cx2-c .w b { font-size: 13px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .cx2-c .w span { display: none; }
  .cx2-c .ct { padding: 4px 7px; font-size: 11px; }
  .cx1 { flex-basis: 158px; } .cx3 { flex-basis: 180px; } .cx5 { flex-basis: 118px; }
}

/* ============================== THE BIG PAPER (round 2, 2026-12-03) ==============================
   The operator: "when hovered, the document become so big in screen and appears nice with an opening effect, the same
   nice effect and size do it for the section (Or start from a kind of paper)", and on the wall "when a template is
   hovered, display it in big size and high quality first page". A mouse that rests on a banded stack, a kind-of-paper
   chip or a template opens one big paper beside it, on the side with more room: it swings open from the edge facing
   what the mouse is on, like a cover opening, its page one at the best picture the page holds; a stack or a chip fans
   its next two papers out behind it. It never takes a press (pointer-events none) and is hidden from screen readers:
   the thing under the mouse keeps its own name and its own press. A mouse only; a touch screen never shows it. */
.pop { position: fixed; z-index: 95; left: 0; top: 0; width: var(--pw); pointer-events: none; perspective: 1900px; perspective-origin: var(--po) 42%; }
.pop-in { transform-origin: var(--po) 46%; opacity: 0;
  transform: translateX(calc(var(--dir) * -22px)) rotateY(calc(var(--dir) * 76deg)) scale(.7);
  transition: transform .24s cubic-bezier(.4, 0, .8, .3), opacity .2s; will-change: transform, opacity; }
.pop.open .pop-in { opacity: 1; transform: none; transition: transform .66s cubic-bezier(.15, 1, .3, 1.04), opacity .2s; }
/* moving on to the next paper while one is open: a short swing, not the whole opening again */
.pop.quick .pop-in { opacity: .2; transform: translateX(calc(var(--dir) * -10px)) rotateY(calc(var(--dir) * 28deg)) scale(.94); transition: none; }
.pop.open.swap .pop-in { transition: transform .34s cubic-bezier(.2, .9, .3, 1), opacity .16s; }
.pop-pg { position: relative; width: var(--pw); height: var(--ph); }
.pop-bk, .pop-sheet { position: absolute; inset: 0; border-radius: 4px; overflow: hidden; background: var(--wash, #FFFFFF); }
.pop-sheet { box-shadow: 0 0 0 1px rgb(var(--sh) / .06), 0 2px 5px rgb(var(--sh) / .18), 0 34px 70px -22px rgb(var(--sh) / .62); }
.pop-bk { box-shadow: 0 1px 3px rgb(var(--sh) / .22), 0 16px 34px -16px rgb(var(--sh) / .5); transition: transform .72s cubic-bezier(.2, .9, .25, 1.08) .1s; }
.pop.open .pop-bk.b1 { transform: translate(8%, 1.5%) rotate(4.5deg); }
.pop.open .pop-bk.b2 { transform: translate(-7.5%, 3%) rotate(-5deg); }
.pop-bk.plain { background: #FFFFFF; }
.pop-sheet img, .pop-bk img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* while it swings the page is in the hinge's shade; a light runs across it as it lands */
.pop-sheet::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 1; transition: opacity .55s;
  background: linear-gradient(calc(180deg - var(--dir) * 90deg), rgb(10 6 24 / .34), rgb(10 6 24 / 0) 65%); }
.pop.open .pop-sheet::after { opacity: 0; }
.pop-sh { position: absolute; inset: 0; transform: translateX(-120%); background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .5) 47%, transparent 62%); }
.pop.open .pop-sh { transform: translateX(120%); transition: transform .95s cubic-bezier(.3, .6, .3, 1) .16s; }
.pop-cap { box-sizing: border-box; width: max(var(--pw), 280px); margin: 16px 0 0; padding: 11px 14px 12px; border-radius: 13px;
  background: color-mix(in srgb, var(--felt) 90%, transparent); -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
  box-shadow: inset 0 0 0 1px var(--hair), 0 18px 40px -20px rgb(var(--sh) / .6); opacity: 0; transform: translateY(-10px); transition: opacity .16s, transform .16s; }
/* on the left of what the mouse is on, a caption wider than the paper grows leftwards, away from it */
.pop.lt .pop-cap { margin-left: calc(var(--pw) - max(var(--pw), 280px)); }
.pop.open .pop-cap { opacity: 1; transform: none; transition: opacity .3s .22s, transform .5s var(--spring) .22s; }
.pop-t { display: block; font: 800 16px/1.22 var(--f-display); color: var(--ink); text-wrap: balance; }
.pop-s { display: block; margin-top: 4px; font-size: 13px; line-height: 1.42; color: var(--ink-2); }
.pop-m { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; font: 800 12.5px/1 var(--f-text); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pop-m > span { display: inline-flex; align-items: center; gap: 5px; }
.pop-m .dg-by { display: inline-flex; gap: 5px; }
.pop-pp .ic, .pop-st .ic { width: 15px; height: 15px; }
.pop-st .ic { fill: var(--star-fill); stroke: var(--star-fill); }
.pop-pa { color: var(--ink-3); }
.pop-ct { padding: 4px 10px 5px; border-radius: 999px; color: var(--ink); background: color-mix(in oklch, var(--tone, #7C3AED) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--tone, #7C3AED) 30%, transparent); }
.pop-ct i { width: 7px; height: 7px; border-radius: 50%; background: var(--tone, #7C3AED); }
.pop-go { color: var(--violet); }
.pop-go .ic { width: 15px; height: 15px; }
/* the page's own motion switch (and the system's reduced motion through it): the paper fades in, flat */
.pop.still .pop-in, .pop.still .pop-bk, .pop.still .pop-cap { transform: none !important; transition: opacity .15s !important; }
.pop.still.open .pop-bk.b1 { transform: translate(8%, 1.5%) rotate(4.5deg) !important; }
.pop.still.open .pop-bk.b2 { transform: translate(-7.5%, 3%) rotate(-5deg) !important; }
.pop.still .pop-sh, .pop.still .pop-sheet::after { display: none; }

