/* Stratal design system: one stylesheet for the public site, the customer portal and the owner's administration.
   No scripts or inline styles are used (Content-Security-Policy: style-src 'self'); plain CSS, no build step.
   Dark first: graphite surfaces, one electric blue for actions, cyan only for the seam lines, green, amber and red for
   states. Archivo is a variable font: width carries the hierarchy, wide for headings, normal for reading and tables.
   The Stratal motif is the stratum: thin level bands and hairline seams, as on a section drawing.

   1 Tokens  2 Base  3 App frame  4 Messages  5 Surfaces  6 Tables  7 Forms and buttons  8 Small values
   9 Page furniture  10 Components (chips, tabs, empty, states, toasts, modal, loading, meters, timeline, charts)
   11 Stand-alone frame  12 Public site  13 Plugin product pages  14 Small screens  15 Motion and print */

/* 1 Tokens. */
@font-face {
    font-family: Archivo; src: url(../fonts/archivo-variable.woff2) format("woff2");
    font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
}
:root {
    /* Space, radius, type, motion: the same in both schemes. */
    --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px;
    --r-1: 4px; --r-2: 8px; --r-3: 12px; --r-pill: 999px;
    --mono: Consolas, "Cascadia Mono", monospace;
    --ease: cubic-bezier(.2, .7, .2, 1); --fast: 120ms; --slow: 320ms;
    --page: 1240px; --gutter: 40px;
    --legal-page: 1000px; /* legal documents: about 920px of text inside the gutters */
}
/* The dark scheme (the default, and always used by the pieces that sit on a dark picture: the sign-in pane, the 3D
   viewers and the picture viewer). Every rule below reads these names; the light scheme only changes their values. */
:root, .theme-dark, .strata, .lb, .viewer, .demo-stage {
    color-scheme: dark;
    /* Graphite: 950 is the page, 850 a surface, 800 a raised or hovered surface, 700 a hairline, 500 a strong line. */
    --g-950: #0b0d10; --g-900: #101418; --g-850: #151a20; --g-800: #1b2129; --g-750: #212933; --g-700: #27303a; --g-600: #36414d; --g-500: #5d6a78;
    /* Text. */
    --text: #f3f6f9; --text-2: #c7d0da; --text-3: #9aa6b3; --heading: #ffffff; --placeholder: #8a96a5;
    /* Electric blue (actions, links, focus), cyan (seams only). Text on a solid blue is always white. */
    --blue-600: #2259c7; --blue-500: #2a6be8; --blue-400: #4f8dff; --blue-300: #86b4ff; --blue-tint: #152641; --on-accent: #ffffff;
    --cyan: #4fd1e6; --cyan-dim: #1f4a55;
    /* States: the colour, its tinted background, its hairline and, for long text, a softer ink. */
    --ok: #4cc38a; --ok-bg: #11291f; --ok-line: #1f4d39;
    --warn: #e2a63b; --warn-bg: #2e2410; --warn-line: #57431a; --warn-ink: #f3d79d;
    --bad: #ee8078; --bad-bg: #32181a; --bad-line: #5a2a2a; --bad-ink: #ffd9d5; --bad-solid: #c9483f; --bad-solid-hover: #a93a32;
    --info-line: #223f6e;
    /* Glass and shade: the sticky bars, overlays behind dialogs, row hover, the drawing grid, deep shadows. */
    --glass: rgba(11, 13, 16, .86); --glass-2: rgba(16, 20, 24, .94); --overlay: rgba(5, 7, 9, .72);
    --row-hover: rgba(79, 141, 255, .06); --grid-line: rgba(255, 255, 255, .035); --shadow-ink: #000; --line-hover: #7c8998;
    --head-badge-bg: rgba(255, 255, 255, .08); --head-badge-line: rgba(255, 255, 255, .16); --complete-top: #17202c;
    --hero-glow: rgba(42, 107, 232, .20); --facts-bg: rgba(21, 26, 32, .7);
    /* Roles (the names every rule below and every older view uses). */
    --bg: var(--g-950); --panel: var(--g-850); --raised: var(--g-800); --ink: var(--text); --muted: var(--text-3);
    --line: var(--g-700); --line-2: #1f2730; --line-strong: var(--g-500);
    --accent: var(--blue-300); --accent-2: #a9c9ff; --accent-ink: #ffffff; --tint: var(--blue-tint); --code: var(--g-750); --cream: var(--g-800);
    --bedrock: var(--g-900); --bedrock-2: var(--g-750); --on-bedrock: var(--text); --on-bedrock-2: var(--text-3); --seam: var(--cyan);
    --site-panel: var(--g-850); --site-head: var(--g-800); --site-ink: var(--text); --site-hover: var(--g-800); --site-line: var(--g-700); --site-line-2: #1f2730;
    --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 28px -20px rgba(0, 0, 0, .7);
    --strata: linear-gradient(118deg, var(--g-900) 0 66%, #131b26 66.1% 78%, #162a48 78.1% 87%, var(--blue-500) 87.1% 87.5%, #10213a 87.6%);
}
/* The light scheme: the same names with light values. It follows the visitor's system setting unless they chose a scheme
   with the theme button (js/theme.js puts data-theme on <html>). Both blocks must stay identical (ThemeContrastTest). */
:root[data-theme="light"] {
    color-scheme: light;
    --g-950: #f4f6f9; --g-900: #ffffff; --g-850: #ffffff; --g-800: #edf1f5; --g-750: #e4e9ef; --g-700: #d5dce4; --g-600: #c0c9d3; --g-500: #7b8794;
    --text: #0e1621; --text-2: #303d4b; --text-3: #525e6b; --heading: #0a111b; --placeholder: #66717e;
    --blue-600: #1d4fb8; --blue-500: #2a6be8; --blue-400: #2a6be8; --blue-300: #1f57c7; --blue-tint: #e6eeff; --on-accent: #ffffff;
    --cyan: #0b6f80; --cyan-dim: #bfe6ec;
    --ok: #13703f; --ok-bg: #e6f5ed; --ok-line: #a3d9bc;
    --warn: #865400; --warn-bg: #fff3d6; --warn-line: #ecc77a; --warn-ink: #5c3a00;
    --bad: #b3261e; --bad-bg: #fdecea; --bad-line: #f1b3ad; --bad-ink: #7f1a14; --bad-solid: #c9483f; --bad-solid-hover: #a93a32;
    --info-line: #b5cbf5;
    --glass: rgba(255, 255, 255, .88); --glass-2: rgba(255, 255, 255, .95); --overlay: rgba(15, 23, 32, .45);
    --row-hover: rgba(42, 107, 232, .05); --grid-line: rgba(15, 23, 32, .06); --shadow-ink: rgba(15, 23, 32, .28); --line-hover: #5f6b78;
    --head-badge-bg: rgba(15, 23, 32, .05); --head-badge-line: rgba(15, 23, 32, .14); --complete-top: #eaf1ff;
    --hero-glow: rgba(42, 107, 232, .12); --facts-bg: rgba(255, 255, 255, .85);
    --line-2: #e6ebf0; --site-line-2: #e6ebf0; --accent-2: #163f99; --accent-ink: #ffffff;
    --shadow: 0 1px 2px rgba(15, 23, 32, .05), 0 10px 24px -18px rgba(15, 23, 32, .30);
    --strata: linear-gradient(118deg, #ffffff 0 66%, #f1f5fd 66.1% 78%, #e0e9fb 78.1% 87%, var(--blue-500) 87.1% 87.5%, #eaf1ff 87.6%);
}
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        color-scheme: light;
        --g-950: #f4f6f9; --g-900: #ffffff; --g-850: #ffffff; --g-800: #edf1f5; --g-750: #e4e9ef; --g-700: #d5dce4; --g-600: #c0c9d3; --g-500: #7b8794;
        --text: #0e1621; --text-2: #303d4b; --text-3: #525e6b; --heading: #0a111b; --placeholder: #66717e;
        --blue-600: #1d4fb8; --blue-500: #2a6be8; --blue-400: #2a6be8; --blue-300: #1f57c7; --blue-tint: #e6eeff; --on-accent: #ffffff;
        --cyan: #0b6f80; --cyan-dim: #bfe6ec;
        --ok: #13703f; --ok-bg: #e6f5ed; --ok-line: #a3d9bc;
        --warn: #865400; --warn-bg: #fff3d6; --warn-line: #ecc77a; --warn-ink: #5c3a00;
        --bad: #b3261e; --bad-bg: #fdecea; --bad-line: #f1b3ad; --bad-ink: #7f1a14; --bad-solid: #c9483f; --bad-solid-hover: #a93a32;
        --info-line: #b5cbf5;
        --glass: rgba(255, 255, 255, .88); --glass-2: rgba(255, 255, 255, .95); --overlay: rgba(15, 23, 32, .45);
        --row-hover: rgba(42, 107, 232, .05); --grid-line: rgba(15, 23, 32, .06); --shadow-ink: rgba(15, 23, 32, .28); --line-hover: #5f6b78;
        --head-badge-bg: rgba(15, 23, 32, .05); --head-badge-line: rgba(15, 23, 32, .14); --complete-top: #eaf1ff;
        --hero-glow: rgba(42, 107, 232, .12); --facts-bg: rgba(255, 255, 255, .85);
        --line-2: #e6ebf0; --site-line-2: #e6ebf0; --accent-2: #163f99; --accent-ink: #ffffff;
        --shadow: 0 1px 2px rgba(15, 23, 32, .05), 0 10px 24px -18px rgba(15, 23, 32, .30);
        --strata: linear-gradient(118deg, #ffffff 0 66%, #f1f5fd 66.1% 78%, #e0e9fb 78.1% 87%, var(--blue-500) 87.1% 87.5%, #eaf1ff 87.6%);
    }
}

/* 2 Base. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; background: var(--bg); color: var(--ink);
    font: 400 16px/1.55 Archivo, "Segoe UI", system-ui, sans-serif; font-stretch: 100%; font-feature-settings: "tnum"; letter-spacing: 0.006em;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 2px; border-radius: 2px; }
p { margin: 0 0 10px; max-width: 75ch; }
ul, ol { padding-left: 20px; max-width: 75ch; }
code { font: 0.92em var(--mono); background: var(--code); padding: 1px 5px; border-radius: var(--r-1); overflow-wrap: anywhere; }
h1 { font-size: 2.3rem; line-height: 1.15; font-weight: 620; font-stretch: 112%; letter-spacing: -0.012em; margin: 0 0 8px; overflow-wrap: anywhere; }
h2 { font-size: 1.22rem; line-height: 1.3; font-weight: 640; font-stretch: 106%; margin: 36px 0 12px; }
h3 { font-size: 0.98rem; font-weight: 640; margin: 18px 0 6px; }
img { max-width: 100%; }
.muted { color: var(--muted); }
.screen-reader, .visually-hidden { position: absolute; 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: 50; background: var(--blue-500); color: var(--on-accent); padding: 10px 16px; border-radius: var(--r-2); font-weight: 560; text-decoration: none; }
.skip:focus { top: 12px; color: var(--on-accent); }

/* 3 The application frame: the sidebar and the working area. */
.frame { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.side {
    background: var(--bedrock); color: var(--on-bedrock); display: flex; flex-direction: column; position: sticky; top: 0;
    height: 100vh; overflow-y: auto; padding: 22px 12px 14px; border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--on-bedrock); text-decoration: none; padding: 2px 12px; font-weight: 640; font-stretch: 112%; font-size: 1.16rem; }
.brand:hover { color: var(--heading); }
.brand img { width: 34px; height: 34px; display: block; }
.brand small { font-size: 0.8rem; font-weight: 400; font-stretch: 100%; color: var(--on-bedrock-2); margin-left: 1px; }
.side nav { flex: 1; margin-top: 16px; }
.side .group { margin: 22px 12px 6px; font-size: 0.74rem; letter-spacing: .09em; text-transform: uppercase; color: var(--on-bedrock-2); }
.side nav a { display: block; padding: 8px 12px; border-radius: var(--r-2); color: var(--text-2); text-decoration: none; position: relative; }
.side nav a:hover { background: var(--g-800); color: var(--heading); }
.side nav a[aria-current=page] { background: var(--blue-tint); color: var(--heading); font-weight: 560; }
.side nav a[aria-current=page]::before { content: ""; position: absolute; left: -12px; top: 7px; bottom: 7px; width: 3px; background: var(--blue-400); border-radius: 0 2px 2px 0; }
.who { border-top: 1px solid var(--line); margin-top: 14px; padding: 12px 10px 2px; font-size: 0.9rem; }
.who a { color: var(--on-bedrock); text-decoration: none; font-weight: 560; display: block; overflow-wrap: anywhere; }
.who a:hover { color: var(--heading); text-decoration: underline; }
.who span { color: var(--on-bedrock-2); display: block; overflow-wrap: anywhere; }
.who form { margin: 8px 0 0; }
.who button { background: none; border: 0; padding: 0; color: var(--on-bedrock-2); text-decoration: underline; text-underline-offset: 2px; min-height: 0; font-weight: 400; }
.who button:hover { color: var(--heading); background: none; }
.menu-toggle, .menu-label { display: none; }
/* The working area is a column so the header band stays at the top even when a message comes first in the page. */
.work { padding: 0 44px 80px; min-width: 0; display: flex; flex-direction: column; }
.work > * { width: 100%; max-width: var(--page); }
.messages:empty { display: none; }
.messages { order: 1; margin-bottom: 20px; }
.work .flash { max-width: none; }
.grid + .flash { margin-top: 18px; }
.messages .flash { max-width: none; }
.messages .flash:last-child { margin-bottom: 0; }
.work > :not(.page-head):not(.messages) { order: 2; }

/* 4 Messages. */
.flash { padding: 11px 14px; border-radius: var(--r-2); margin-bottom: 16px; border: 1px solid var(--line); border-left: 3px solid var(--line-strong); background: var(--panel); max-width: 75ch; }
.flash.ok { border-color: var(--ok-line); border-left-color: var(--ok); background: var(--ok-bg); }
.flash.error { border-color: var(--bad-line); border-left-color: var(--bad); background: var(--bad-bg); color: var(--bad-ink); }
.flash.warn { border-color: var(--warn-line); border-left-color: var(--warn); background: var(--warn-bg); }
.flash a { color: inherit; }
.panel .flash:last-child { margin-bottom: 0; }

/* 5 Surfaces: one flat surface, a hairline border, no shadows stacked on shadows. */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-3); padding: 24px 26px; margin-bottom: 16px; box-shadow: var(--shadow); }
form.panel { max-width: 720px; }
/* A form straight on the page sits on a surface like every other. */
.work > form:not(.inline):not(.filters):not(.panel) {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-3); padding: 24px 26px; margin-bottom: 16px; box-shadow: var(--shadow); max-width: 720px;
}
.hint-list { list-style: none; padding: 0; margin: 8px 0 0; color: var(--muted); font-size: 0.92rem; }
.hint-list li { padding: 2px 0; }
.hint-list strong { color: var(--ink); font-weight: 560; }
.panel > :last-child { margin-bottom: 0; }
.panel > input[type=hidden]:first-child + label, .panel > label:first-child { margin-top: 0; }
.panel h2:first-child { margin-top: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
/* Both columns start at the same top: the first heading in each has no top margin (beating the general section rule,
   which would push the main column's heading down), and the gap above the columns belongs to the split itself. */
.split:has(> * > h2:first-child) { margin-top: 30px; }
.work .split > * > h2:first-child { margin-top: 0; }
.see-all { display: inline-block; margin-top: 14px; font-size: .92rem; }

/* The readout: a single strip of measures, divided like a drawing's title block. */
.grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--panel); margin: 4px 0 8px;
    border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; box-shadow: var(--shadow);
}
.stat { padding: 18px 22px; box-shadow: -1px -1px 0 var(--line); display: flex; flex-direction: column; justify-content: space-between; }
.stat .value { font-size: 2.2rem; line-height: 1.1; font-weight: 560; font-stretch: 112%; order: 2; margin-top: 2px; }
.stat .muted { font-size: 0.9rem; }
.stat .value.small { font-size: 1.5rem; line-height: 1.84; }
.stat .trend { order: 3; font-size: .86rem; color: var(--muted); margin-top: 4px; }
.stat a { text-decoration: none; }
/* Four measures (dashboard, licence): the cells sit on a hairline so every divider is the same 1px whatever the row count;
   4 across when wide, 2 by 2 at medium widths, one column on phones. No cell carries its own surface beyond the strip's. */
.grid.quad { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.grid.quad > .stat { background: var(--panel); box-shadow: none; justify-content: flex-start; min-width: 0; }
@media (max-width: 1040px) and (min-width: 861px) { .grid.quad { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid.quad { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .grid.quad { grid-template-columns: minmax(0, 1fr); } }

/* 6 Tables. */
.table-wrap { overflow-x: auto; margin-bottom: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
/* A row with an inline form (a reason box and a button) is taller than its text; centre every cell so the row reads level. */
tr:has(> td form, > td input, > td select, > td button) > td { vertical-align: middle; }
th { font-weight: 560; font-size: 0.82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; border-bottom-color: var(--line); background: var(--raised); }
tr:last-child > td { border-bottom: 0; }
tbody tr:hover > td { background: var(--row-hover); }
td .muted, td.muted { font-size: 0.9rem; }
td.end, th.end { text-align: right; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* 7 Forms and buttons. */
textarea.wide { width: 100%; }
textarea.mono { font-family: var(--mono); }
pre.email-preview { white-space: pre-wrap; overflow-wrap: anywhere; font: 0.92em var(--mono); background: var(--code); padding: 12px 14px; border-radius: var(--r-2); }
form { margin: 0; }
form.inline { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 3px 8px 3px 0; vertical-align: middle; }
label { display: block; font-weight: 540; margin: 14px 0 5px; }
form.inline label { margin: 0; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=url], input[type=search], input[type=tel], select, textarea {
    width: 100%; min-height: 44px; padding: 9px 13px; border: 1px solid var(--line-strong); border-radius: var(--r-2); background: var(--g-900); color: var(--ink); font: inherit;
    transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
input:hover, select:hover, textarea:hover { border-color: var(--line-hover); }
input[type=file] { font: inherit; max-width: 100%; color: var(--muted); }
::file-selector-button {
    font: inherit; font-weight: 540; color: var(--ink); background: var(--raised); border: 1px solid var(--line-strong); border-radius: var(--r-2);
    padding: 6px 12px; margin-right: 12px; cursor: pointer;
}
::file-selector-button:hover { background: var(--tint); border-color: var(--blue-400); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 0; border-color: var(--blue-400); }
input[aria-invalid=true], select[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--bad); }
input:disabled, select:disabled, textarea:disabled { opacity: .55; cursor: not-allowed; }
::placeholder { color: var(--placeholder); opacity: 1; }
form.inline input, form.inline select { width: auto; }
select { max-width: 100%; }
.checkbox { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.checkbox input { width: auto; }
input[type=checkbox], input[type=radio] { accent-color: var(--blue-500); width: 18px; height: 18px; }
.hint { color: var(--muted); font-size: 0.9rem; margin: 4px 0 0; }
.field-error { color: var(--bad); font-size: .9rem; margin: 4px 0 0; }
.filters { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; margin: 0 0 18px; }
.filters label { margin: 0; font-weight: 500; font-size: 0.92rem; }
.filters label input, .filters label select { display: block; margin-top: 5px; }
.filters input, .filters select { width: auto; }

button, .button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 20px; border-radius: var(--r-2);
    border: 1px solid var(--blue-500); background: var(--blue-500); color: var(--on-accent); font: inherit; font-weight: 560;
    cursor: pointer; text-decoration: none; transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
button:hover, .button:hover { background: var(--blue-600); border-color: var(--blue-600); color: var(--on-accent); }
button:active, .button:active { transform: translateY(1px); }
button:disabled, .button[aria-disabled=true] { opacity: .5; cursor: not-allowed; }
button.secondary, .button.secondary, .button.ghost, .button.quiet, .button.on-dark { background: transparent; color: var(--ink); border-color: var(--line-strong); }
button.secondary:hover, .button.secondary:hover, .button.ghost:hover, .button.quiet:hover, .button.on-dark:hover { background: var(--raised); color: var(--heading); border-color: var(--blue-400); }
button.danger, .button.danger { background: var(--bad-solid); border-color: var(--bad-solid); color: var(--on-accent); }
button.danger:hover, .button.danger:hover { background: var(--bad-solid-hover); border-color: var(--bad-solid-hover); color: var(--on-accent); }
button.small, .button.small { min-height: 34px; padding: 5px 12px; font-size: .9rem; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.actions.centred { justify-content: center; margin: 30px auto 40px; }
button.link { background: none; border: 0; min-height: 0; padding: 0; color: var(--accent); font-weight: 400; text-decoration: underline; text-underline-offset: 2px; }
button.link:hover { background: none; color: var(--accent-2); }
button.wide { width: 100%; }
form.below { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); }

/* 8 Small values. */
.badge, .chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: var(--r-pill); font-size: 0.8rem; font-weight: 560; background: var(--g-750); color: var(--text-2); white-space: nowrap; border: 1px solid var(--line); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.active, .chip.ok, .badge.published, .badge.current, .badge.paid { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }
.badge.suspended, .chip.warn, .badge.pending, .badge.past_due { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-line); }
.badge.revoked, .badge.deactivated, .chip.bad, .badge.failed, .badge.withdrawn { color: var(--bad); background: var(--bad-bg); border-color: var(--bad-line); }
.chip.info { color: var(--blue-300); background: var(--blue-tint); border-color: var(--info-line); }
.secret {
    font: 0.95rem var(--mono); background: var(--g-900); border: 1px solid var(--line); padding: 8px 11px; border-radius: var(--r-2);
    display: inline-block; word-break: break-all; user-select: all;
}
.codes { columns: 2; font-family: var(--mono); }
nav.pages, .pager { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 14px 0; color: var(--muted); font-size: .94rem; }
nav.pages a, .pager a { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-2); text-decoration: none; color: var(--ink); }
nav.pages a:hover, .pager a:hover { border-color: var(--blue-400); background: var(--raised); }
nav.pages span.muted { padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r-2); opacity: .6; }

/* 9 Page furniture. */
.work > .page-head {
    order: 0; width: auto; max-width: none; margin: 0 -44px 28px; padding: 34px 44px 32px; min-height: 148px; color: var(--text);
    display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
    background: var(--strata); border-bottom: 1px solid var(--line);
}
.page-head h1 { margin: 0; color: var(--heading); font-size: 2rem; }
.page-head p { margin: 8px 0 0; color: var(--text-2); font-size: 1.02rem; max-width: 62ch; }
.page-head p a { color: var(--heading); }
.page-head .badge { background: var(--head-badge-bg); color: var(--heading); border-color: var(--head-badge-line); }
/* The header's diagonal band runs under the actions: give outline buttons and fields a solid surface and lift them above it. */
.page-head > :not(div:first-child) { position: relative; z-index: 1; }
.page-head button.secondary, .page-head .button.secondary, .page-head .button.ghost, .page-head .button.quiet, .page-head select, .page-head input { background-color: var(--panel); }
.page-head button.secondary:hover, .page-head .button.secondary:hover, .page-head .button.ghost:hover, .page-head .button.quiet:hover { background-color: var(--raised); }
.work section > h2:first-child { margin-top: 30px; }
.callout { border-color: var(--info-line); box-shadow: inset 0 2px 0 var(--blue-500), var(--shadow); padding-top: 20px; margin-top: 20px; }
.callout h2 { margin-top: 0; font-size: 1.2rem; }
details.more { border-top: 1px solid var(--line); padding: 12px 2px; }
details.more:last-of-type { border-bottom: 1px solid var(--line); }
details.more:first-of-type { margin-top: 24px; }
details.more summary { cursor: pointer; font-weight: 560; }
details.more[open] summary { margin-bottom: 8px; }
.ticks.plain li::before { color: var(--muted); }
.upload-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border: 1px dashed var(--line-strong); border-radius: var(--r-2); padding: 10px 12px; }
.upload-row input[type=file] { flex: 1 1 240px; min-width: 0; }
form.upload { max-width: none; }
.danger-zone { margin-top: 28px; }
.danger-zone summary { color: var(--bad); }

/* Packages: what a customer buys, set out as plans rather than a wide table. */
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin: 28px 0 8px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-3); padding: 26px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan h2 { margin: 0; font-size: 1.35rem; }
.plan .type { color: var(--accent); font-weight: 560; font-size: 0.94rem; margin: 3px 0 6px; }
.plan .about { color: var(--muted); font-size: 0.92rem; margin: 0 0 16px; min-height: 4.2em; }
.plan .price { font-size: 1.7rem; line-height: 1.2; font-weight: 560; font-stretch: 112%; margin: 0 0 14px; }
.plan .price small { font-size: 0.9rem; font-weight: 400; font-stretch: 100%; color: var(--muted); }
.plan .price.none { font-size: 1rem; font-weight: 400; font-stretch: 100%; color: var(--muted); line-height: 1.95; }
.plan .includes { list-style: none; padding: 0; margin: 0 0 14px; flex: 1; }
.plan .includes li { padding: 3px 0 3px 22px; position: relative; }
.plan .includes li::before { content: "\2713"; position: absolute; left: 2px; color: var(--blue-400); font-weight: 700; }
.plan .terms { color: var(--muted); font-size: 0.86rem; margin: 0 0 14px; }
.plan .foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line-2); padding-top: 12px; }

/* Rows of licences in the customer portal. */
.row-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-3); padding: 20px 24px; margin-bottom: 12px; box-shadow: var(--shadow); transition: border-color var(--fast) var(--ease); }
.row-card:hover { border-color: var(--g-600); }
.row-card .title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.row-card .title a { font-size: 1.08rem; font-weight: 620; font-stretch: 106%; text-decoration: none; color: var(--ink); }
.row-card .title a:hover { color: var(--accent); }
.row-card .title .muted { font-size: 0.88rem; margin-left: auto; }
.row-card p { margin-bottom: 0; color: var(--muted); }

/* Account. */
.profile { display: flex; gap: 14px; align-items: center; }
.avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--blue-tint); border: 1px solid var(--info-line); color: var(--blue-300); display: grid; place-items: center; font-weight: 620; font-size: 1.1rem; }
.profile strong { display: block; font-size: 1.08rem; font-weight: 620; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 22px; margin: 16px 0 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
/* Licence page status: name and badge on one line, the facts as a labelled list, the activation steps in their own box. */
.licence-status-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.panel .licence-status-head h2 { margin: 0; }
.licence-status .facts { gap: 10px 28px; }
.licence-status .facts dt { font-size: .92rem; font-weight: 560; }
.licence-notice { margin: 14px 0 0; }
.licence-note { margin: 14px 0 0; font-size: .92rem; }
.how-to { margin-top: 18px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--raised); }
.how-to h3 { margin: 0 0 6px; font-size: .95rem; }
.how-to ol { margin: 0; padding-left: 1.3em; color: var(--text-2); }
.how-to li { padding: 2px 0; }
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; align-items: start; }
.columns form.panel { max-width: none; }
.enrol { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; max-width: 780px; }
.enrol .qr { background: #fff; padding: 12px; border-radius: 10px; border: 1px solid var(--line); display: block; }
.asset-thumb { display: block; width: 56px; height: 56px; border-radius: 6px; background: #fff; }
.asset-preview { display: block; width: 200px; height: 200px; border-radius: 8px; background: #fff; object-fit: contain; }

/* 10 Components. */
/* Tabs: plain links; the current one is marked with aria-current. */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 0 0 20px; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 540; }
.tabs a:hover { color: var(--heading); }
.tabs a[aria-current=page] { color: var(--heading); border-bottom-color: var(--blue-400); }
/* Empty, error and unavailable states: say what is missing and what to do next. */
.empty, .state { border: 1px dashed var(--line-strong); border-radius: var(--r-3); padding: 34px 26px; text-align: center; color: var(--muted); margin-bottom: 16px; background: transparent; }
.empty h2, .empty h3, .state h2, .state h3 { margin: 0 0 6px; color: var(--ink); font-size: 1.1rem; }
.empty p, .state p { margin: 0 auto 12px; }
.empty > :last-child, .state > :last-child { margin-bottom: 0; }
.state.error { border-style: solid; border-color: var(--bad-line); background: var(--bad-bg); color: var(--bad-ink); }
.state.unavailable { border-style: solid; border-color: var(--line); background: var(--panel); }
/* Toasts: a message fixed to the corner; it stays until the next page (no script). */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 40px)); }
.toast { background: var(--g-800); border: 1px solid var(--line-strong); border-left: 3px solid var(--blue-400); border-radius: var(--r-2); padding: 12px 14px; box-shadow: 0 18px 40px -18px var(--shadow-ink); animation: rise var(--slow) var(--ease) both; }
.toast.ok { border-left-color: var(--ok); }
.toast.warn { border-left-color: var(--warn); }
.toast.error { border-left-color: var(--bad); }
/* Modal: opened by a link to its id, closed by a link to "#" (no script); the page behind stays readable by keyboard. */
.modal { display: none; position: fixed; inset: 0; z-index: 30; background: var(--overlay); align-items: center; justify-content: center; padding: 20px; }
.modal:target { display: flex; }
.modal > .dialog { background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r-3); padding: 26px; width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow: auto; box-shadow: 0 30px 80px -30px var(--shadow-ink); animation: rise var(--slow) var(--ease) both; }
.modal h2 { margin-top: 0; }
.modal .close { float: right; color: var(--muted); text-decoration: none; padding: 2px 8px; border-radius: var(--r-1); }
.modal .close:hover { color: var(--heading); background: var(--raised); }
/* Loading. */
.spinner { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--g-600); border-top-color: var(--blue-400); animation: spin .8s linear infinite; vertical-align: -3px; }
.skeleton { display: block; height: 1em; border-radius: var(--r-1); background: linear-gradient(90deg, var(--g-800) 25%, var(--g-700) 50%, var(--g-800) 75%); background-size: 200% 100%; animation: sheen 1.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sheen { to { background-position: -200% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
/* Meters: seats in use, computers in use. */
meter, progress { width: 100%; height: 8px; border: 0; border-radius: var(--r-pill); background: var(--g-750); overflow: hidden; display: block; margin: 6px 0; appearance: none; -webkit-appearance: none; }
meter::-webkit-meter-bar, progress::-webkit-progress-bar { background: var(--g-750); border: 0; border-radius: var(--r-pill); height: 8px; }
meter::-webkit-meter-optimum-value, progress::-webkit-progress-value { background: var(--blue-400); border-radius: var(--r-pill); }
meter::-webkit-meter-suboptimum-value { background: var(--warn); }
meter::-webkit-meter-even-less-good-value { background: var(--bad); }
meter::-moz-meter-bar, progress::-moz-progress-bar { background: var(--blue-400); border-radius: var(--r-pill); }
/* Timeline: a licence's history, newest first. */
.timeline { list-style: none; padding: 0; margin: 0; max-width: none; }
.timeline li { position: relative; padding: 0 0 18px 26px; border-left: 1px solid var(--line); margin-left: 6px; }
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--g-950); border: 2px solid var(--blue-400); }
.timeline time { display: block; color: var(--muted); font-size: .86rem; }
/* Cards in a grid: dashboard tiles and quick links. */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 16px; }
.cards > .panel { margin-bottom: 0; }
.card-link { display: block; text-decoration: none; color: var(--ink); }
.card-link:hover { border-color: var(--blue-400); color: var(--ink); }
.card-link strong { display: block; font-size: 1.05rem; font-weight: 620; margin-bottom: 4px; }
.card-link span { color: var(--muted); font-size: .94rem; }
.kicker { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin: 0 0 10px; font-weight: 560; }
/* Charts drawn as inline SVG by the server (no script): bars take the accent, axes the line colour. */
.chart { display: block; width: 100%; height: auto; }
.chart .bar { fill: var(--blue-400); }
.chart .bar.alt { fill: var(--cyan-dim); }
.chart .axis { stroke: var(--line); stroke-width: 1; }
.chart text { fill: var(--muted); font: 11px Archivo, "Segoe UI", sans-serif; }
/* Health checks. */
.checks { list-style: none; padding: 0; margin: 0; max-width: none; }
.checks li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.checks li:last-child { border-bottom: 0; }
.checks .chip { flex: none; min-width: 74px; justify-content: center; }
.checks .what { flex: 1; min-width: 0; }
.checks .what span { display: block; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }

/* 11 The stand-alone frame: the strata beside the form, for sign-in, the installer and error pages. */
.stage { display: grid; grid-template-columns: minmax(340px, 42%) minmax(0, 1fr); min-height: 100vh; }
.strata {
    background:
        linear-gradient(180deg, transparent 0 58%, rgba(79, 209, 230, .5) 58% calc(58% + 1px), transparent calc(58% + 1px)),
        linear-gradient(172deg, var(--g-900) 0 58%, #121a25 58.1% 70%, #14233b 70.1% 82%, #17335e 82.1% 92%, var(--blue-600) 92.1%);
    color: var(--on-bedrock); border-right: 1px solid var(--line);
    padding: 30px 36px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow: hidden;
}
.strata .brand { padding: 0; font-size: 1.14rem; }
.strata .lead { font-size: 2.1rem; line-height: 1.22; font-weight: 560; font-stretch: 112%; letter-spacing: -0.01em; margin: 44px 0 0; max-width: 17em; }
.stage-main { display: flex; justify-content: center; padding: 56px 32px; min-width: 0; }
.stage-main > .column { width: 100%; max-width: 480px; margin: auto 0; }
.stage-main > .column.wide { max-width: 620px; margin: 0; }
.stage-main .panel { background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; }
.signed-in { margin-top: 26px; color: var(--muted); }
.signed-in button { background: none; border: 0; padding: 0; min-height: 0; color: var(--accent); text-decoration: underline; font-weight: 400; }
.signed-in button:hover { background: none; color: var(--accent-2); }
/* The installer: its steps are a real sequence, so they are numbered and link to their sections. */
.steps { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: step; }
.steps li { counter-increment: step; }
.steps a { display: flex; gap: 11px; align-items: center; padding: 6px 0; color: var(--on-bedrock); text-decoration: none; }
.steps a::before {
    content: counter(step); width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong);
    display: grid; place-items: center; font-size: 0.8rem; background: var(--g-900);
}
.steps a:hover::before { border-color: var(--blue-400); color: var(--blue-300); }
fieldset { border: 0; border-top: 1px solid var(--line); margin: 18px 0 0; padding: 22px 0 26px; min-width: 0; scroll-margin-top: 12px; }
fieldset:first-of-type { border-top: 0; padding-top: 6px; }
legend { font-size: 1.08rem; font-weight: 640; font-stretch: 106%; padding: 0; float: left; width: 100%; }
legend + * { clear: both; padding-top: 6px; }
fieldset label { clear: both; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 0 14px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; }
.ticks li { padding: 5px 0 5px 26px; position: relative; color: var(--text-2); }
.ticks li::before { content: "\2713"; position: absolute; left: 3px; color: var(--ok); font-weight: 700; }
.tasks { list-style: none; padding: 0; margin: 12px 0 0; counter-reset: task; max-width: none; }
.tasks > li { counter-increment: task; padding: 14px 0 14px 40px; position: relative; border-top: 1px solid var(--line); }
.tasks > li::before {
    content: counter(task); position: absolute; left: 0; top: 14px; width: 26px; height: 26px; border-radius: 50%;
    background: var(--blue-tint); color: var(--blue-300); display: grid; place-items: center; font-size: 0.85rem; font-weight: 640;
}
.tasks strong { display: block; font-weight: 640; }
.path { display: block; margin-top: 6px; padding: 7px 10px; user-select: all; }
/* Sign-in. */
/* The sign-in pane (layouts/_stage-pane): what the portal does, the latest release and what keeps accounts safe, with
   no picture (owner, 16 Nov 2026). The brand sits at the top, the main block is centred in the free height, the release
   and trust lines close it above a short strata band. It scrolls on its own on short screens rather than cutting off. */
.strata.pane { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 30px 44px 0;
    background: radial-gradient(680px 420px at 0% 0%, rgba(42, 107, 232, .17), transparent 70%), linear-gradient(180deg, var(--g-900), #0d1116); }
/* The strata motif: a short band of level lines closing the pane, after its content rather than over it. */
.strata.pane::after { content: ""; display: block; flex: none; height: 44px; margin: 28px -44px 0; border-top: 1px solid rgba(79, 209, 230, .5);
    background: linear-gradient(172deg, #121a25 0 30%, #14233b 30.1% 58%, #17335e 58.1% 82%, var(--blue-600) 82.1%); }
.pane-body { margin: auto 0; padding: 40px 0 24px; max-width: 31em; }
.pane-kicker { margin: 0; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); font-weight: 600; }
.strata.pane .lead { font-size: 2rem; line-height: 1.18; margin: 12px 0 0; max-width: 13em; color: var(--heading); }
.pane-list { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 0; max-width: none; border-top: 1px solid rgba(255, 255, 255, .07); }
.pane-list li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.pane-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--blue-300);
    background: linear-gradient(160deg, rgba(79, 141, 255, .18), rgba(79, 141, 255, .05)); border: 1px solid rgba(134, 180, 255, .22); }
.pane-text { min-width: 0; padding-top: 1px; }
.pane-text strong { display: block; color: var(--heading); font-weight: 620; font-size: 1.02rem; line-height: 1.3; }
.pane-text span { display: block; color: var(--text-2); font-size: .93rem; line-height: 1.5; margin-top: 3px; }
.pane-foot { max-width: 31em; display: grid; gap: 12px; }
.pane-release { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-2); background: rgba(16, 20, 24, .55);
    font-size: .9rem; color: var(--text-2); line-height: 1.5; max-width: none; }
.pane-release a { color: var(--heading); font-weight: 600; }
.pane-date { color: var(--text-3); margin-left: 4px; }
.pane-note { display: block; margin-top: 4px; color: var(--text-2); }
.pane-badge { display: inline-block; margin-right: 8px; padding: 1px 9px; border-radius: var(--r-pill); font-size: .72rem; font-weight: 620;
    letter-spacing: .05em; text-transform: uppercase; color: var(--ok); background: var(--ok-bg); border: 1px solid rgba(76, 195, 138, .35); vertical-align: 1px; }
.pane-trust { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-size: .86rem; line-height: 1.5; color: var(--text-3); max-width: none; }
.pane-trust svg { flex: none; margin-top: 2px; color: var(--ok); }
@media (max-height: 760px) and (min-width: 861px) {
    .pane-body { padding: 18px 0 14px; }
    .strata.pane .lead { font-size: 1.5rem; }
    .pane-list { margin-top: 18px; }
    .pane-list li { padding: 9px 0; }
    .pane-text span { font-size: .88rem; line-height: 1.4; }
    .pane-note { display: none; } /* the release keeps its version and date */
    .strata.pane::after { height: 28px; margin-top: 18px; }
}
.sign-row { display: flex; justify-content: space-between; margin-top: 12px; font-size: .95rem; }
.sign-new { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); }
.stage-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 26px 0 0; color: var(--muted); font-size: .92rem; max-width: none; }
.stage-foot span { margin-right: auto; }

/* The sign-in panel (auth/*): one card with the heading, the form and a short note; links to buy or ask below it. */
.auth-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 34px 34px 26px; box-shadow: var(--shadow); }
.auth-head h1 { font-size: 1.85rem; margin: 0 0 8px; color: var(--heading); }
.auth-head p { margin: 0 0 22px; color: var(--muted); }
.auth-card > .flash { margin: 0 0 18px; }
.auth-form label:first-of-type, .auth-form > input[type=hidden] + label { margin-top: 0; }
.auth-form > button[type=submit] { margin-top: 22px; min-height: 48px; font-size: 1.02rem; }
.auth-form > button[aria-disabled=true] { opacity: .75; cursor: progress; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 16px 0 5px; }
.label-row label { margin: 0; }
.label-link { font-size: .92rem; white-space: nowrap; }
.field-pass { position: relative; }
.field-pass input { padding-right: 76px; }
.reveal { position: absolute; right: 5px; top: 5px; bottom: 5px; min-height: 0; padding: 0 12px; font-size: .9rem; font-weight: 560;
    background: transparent; color: var(--accent); border: 1px solid transparent; border-radius: 6px; }
.reveal:hover { background: var(--raised); color: var(--heading); border-color: transparent; }
.reveal[hidden] { display: none; }
.hint.caps { color: var(--warn); }
.auth-form .field-error { font-weight: 540; }
.auth-form .field-error::before { content: "! "; font-weight: 700; }
.checkbox.remember { margin: 18px 0 0; gap: 10px; font-weight: 450; color: var(--text-2); cursor: pointer; }
.code-input { font: 600 1.35rem/1.2 var(--mono); letter-spacing: .18em; text-align: center; min-height: 54px; }
.auth-alt { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: .92rem; max-width: none; }
.auth-more { margin: 22px 4px 0; color: var(--muted); font-size: .95rem; }
.auth-more p { margin: 0 0 4px; max-width: none; }
.auth-more strong { color: var(--ink); font-weight: 600; }
.stage-main .flash { max-width: none; }

/* The light/dark switch (partials/theme-toggle, js/theme.js): a sun in the dark scheme, a moon in the light one. */
.theme-toggle { min-height: 36px; padding: 6px 9px; gap: 7px; background: transparent; color: var(--text-2); border: 1px solid var(--line-strong); font-weight: 500; font-size: .9rem; }
.theme-toggle:hover { background: var(--raised); color: var(--heading); border-color: var(--blue-400); }
.theme-toggle[hidden] { display: none; }
.theme-toggle .i-sun, .theme-toggle .i-moon { display: block; flex: none; width: 18px; height: 18px; background: currentColor;
    -webkit-mask: url(../img/icons/sun.svg) center / contain no-repeat; mask: url(../img/icons/sun.svg) center / contain no-repeat; }
.theme-toggle .i-moon { -webkit-mask-image: url(../img/icons/moon.svg); mask-image: url(../img/icons/moon.svg); }
.theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .theme-toggle .i-sun { display: none; }
    :root:not([data-theme="dark"]) .theme-toggle .i-moon { display: block; }
}
.site-top > .theme-toggle { order: 3; }
.site-top nav { order: 2; }
.who-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.who-row form { margin: 0; }
.who .theme-toggle { min-height: 30px; padding: 3px 9px; border: 1px solid var(--line); border-radius: var(--r-2); color: var(--on-bedrock-2); text-decoration: none; font-size: .85rem; }
.who .theme-toggle:hover { color: var(--heading); background: var(--raised); border-color: var(--blue-400); text-decoration: none; }
.stage-foot .theme-toggle { min-height: 32px; padding: 4px 10px; }

/* 12 The public site. Same tokens as the portal: one identity, one dark scheme. */
body.public { background: var(--bg); color: var(--ink); }
.site-top {
    display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 13px var(--gutter); min-height: 67px;
    background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line);
}
.site-brand { display: flex; align-items: center; gap: 12px; font-weight: 640; font-stretch: 112%; font-size: 1.25rem; color: var(--heading); text-decoration: none; white-space: nowrap; }
.site-brand:hover { color: var(--heading); }
.site-top nav { display: flex; align-items: center; gap: 24px; }
.site-top nav a { white-space: nowrap; }
.site-top nav a:not(.button) { color: var(--text-2); text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-top nav a:not(.button):hover { color: var(--heading); }
.site-top nav a[aria-current=page]:not(.button) { color: var(--heading); border-bottom-color: var(--blue-400); }
.site-top .button { min-height: 40px; padding: 7px 16px; }
.nav-toggle, .nav-label { display: none; }
.amount-small { font-weight: 620; color: var(--heading) !important; margin: 10px 0 0; }

/* Home hero: the headline beside a real screenshot, on a drawing grid. */
.hero {
    position: relative; overflow: hidden; padding: 84px var(--gutter) 72px; border-bottom: 1px solid var(--line);
    background:
        radial-gradient(900px 420px at 78% 12%, var(--hero-glow), transparent 70%),
        linear-gradient(var(--g-950), var(--g-950));
}
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 48px 48px; mask-image: linear-gradient(180deg, #000 0, transparent 92%); -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 92%);
}
.hero-inner { position: relative; max-width: var(--page); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1.04; font-weight: 640; font-stretch: 118%; letter-spacing: -0.02em; color: var(--heading); margin: 0 0 20px; }
.hero h1 span { display: block; color: var(--blue-300); }
.hero p.lead { font-size: 1.2rem; color: var(--text-2); max-width: 34em; text-align: left; margin: 0; }
.hero .actions { margin-top: 30px; }
.hero-shot { margin: 0; position: relative; }
.hero-shot img { display: block; width: 100%; height: auto; border-radius: var(--r-3); border: 1px solid var(--g-600); box-shadow: 0 40px 90px -40px var(--shadow-ink), 0 0 0 1px rgba(79, 141, 255, .12); }
.hero-shot::after { content: ""; position: absolute; left: -18px; right: -18px; bottom: -14px; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: .6; }
.hero-shot figcaption { margin-top: 22px; color: var(--muted); font-size: .92rem; }
.hero-facts { position: relative; max-width: var(--page); margin: 56px auto 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border: 1px solid var(--line); border-radius: var(--r-3); background: var(--facts-bg); overflow: hidden; }
.hero-facts li { padding: 16px 20px; box-shadow: -1px -1px 0 var(--line); color: var(--text-2); font-size: .96rem; }
.hero-facts strong { display: block; color: var(--heading); font-weight: 620; font-stretch: 106%; }

.site-hero img { display: block; width: 100%; height: auto; max-height: 78vh; object-fit: cover; object-position: top left; }
.site-intro, .site-close { text-align: center; padding: 72px 24px; max-width: 880px; margin: 0 auto; }
.site-intro h1 { font-size: 3rem; line-height: 1.1; color: var(--heading); margin-bottom: 18px; }
.site-intro p { font-size: 1.22rem; margin: 0 auto; color: var(--text-2); }
.site-intro .actions, .site-close .actions { justify-content: center; margin-top: 28px; }
.site-close h2 { margin-bottom: 10px; }
/* Centred bands: a paragraph keeps the reading measure (p is 75ch wide everywhere) but its box sits on the band's centre
   line, under the heading and over the buttons; without auto side margins the 75ch box hugged the band's left edge. */
.site-intro p, .site-close p, .site-band p.lead, .site-pricing p.lead, .empty p, .state p { margin-left: auto; margin-right: auto; }
.site-band { background: var(--g-900); padding: var(--s-8) var(--gutter); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.site-band > *, .site-pricing > * { max-width: var(--page); margin-left: auto; margin-right: auto; }
.site-band h2, .site-pricing h2, .site-close h2 { font-size: 2.2rem; font-stretch: 114%; color: var(--heading); margin-top: 0; text-align: center; }
body.public p.lead { text-align: center; font-size: 1.15rem; color: var(--text-2); max-width: none; }
body.public .hero p.lead { text-align: left; max-width: 34em; }
.site-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; margin-top: 32px; }
.site-cols article { background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--blue-500); border-radius: var(--r-3); padding: 26px; }
.site-cols h3 { font-size: 1.3rem; color: var(--heading); margin: 0 0 8px; }
.site-cols p { color: var(--text-2); }
.site-cols a.more { font-weight: 560; text-decoration: none; }
.site-pricing { padding: var(--s-8) var(--gutter); }
.amount { font-size: 2.1rem; font-weight: 600; font-stretch: 110%; color: var(--heading); line-height: 1.15; margin: 0 0 16px; }
.amount small { font-size: .95rem; font-weight: 400; font-stretch: 100%; color: var(--muted); }
.pay-notes { list-style: none; padding: 16px 20px; margin: 24px auto 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-3); max-width: 760px; color: var(--text-2); text-align: left; }
.pay-notes li { padding: 3px 0; }
/* "We accept": a compact row in the customer portal and website footers; official marks when supplied, else name badges. */
.work-foot { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); }
.pay-accept { color: var(--muted); font-size: .86rem; }
.pay-accept-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.pay-accept-label { font-weight: 560; color: var(--text-2); }
/* Marks 20px high with clear space round each; PayPal's colour wordmark sits on a white chip so it reads on both themes,
   GoCardless swaps its dark wordmark (light theme) for its light one (dark theme, the default) like the theme toggle. */
.pay-chip, .pay-plain { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: var(--r-2); }
.pay-chip { background: #fff; border: 1px solid var(--line); }
.pay-chip.dark { background: #111; }
.pay-mark { height: 20px; width: auto; display: block; }
.pay-mark.on-light { display: none; }
:root[data-theme="light"] .pay-mark.on-light { display: block; }
:root[data-theme="light"] .pay-mark.on-dark { display: none; }
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .pay-mark.on-light { display: block; }
    :root:not([data-theme="dark"]) .pay-mark.on-dark { display: none; }
}
.pay-badge { display: inline-block; padding: 2px 9px; border: 1px solid var(--line); border-radius: var(--r-1); background: var(--panel); color: var(--text-2); font-weight: 560; line-height: 1.5; }
.pay-accept-line { margin: 6px 0 0; max-width: 90ch; }
.site-foot .foot-pay { grid-column: 1 / -1; }

.site-page-head { background: var(--strata); color: var(--text); padding: 60px var(--gutter); border-bottom: 1px solid var(--line); }
.site-page-head h1 { font-size: 2.8rem; font-stretch: 116%; color: var(--heading); max-width: var(--page); margin: 0 auto 12px; }
.site-page-head p { font-size: 1.2rem; color: var(--text-2); max-width: var(--page); margin: 0 auto; }
.jump { background: var(--glass-2); border-bottom: 1px solid var(--line); padding: 14px max(var(--gutter), calc((100% - var(--page)) / 2)); display: flex; gap: 26px; flex-wrap: wrap; position: sticky; top: 67px; z-index: 4; }
.jump a { font-weight: 500; text-decoration: none; color: var(--text-2); }
.jump a:hover { color: var(--heading); }
.feature-area { padding: 60px var(--gutter) 12px; max-width: 1320px; margin: 0 auto; scroll-margin-top: 130px; }
.feature-area > h2 { font-size: 2rem; font-stretch: 112%; color: var(--heading); margin: 0 0 24px; scroll-margin-top: 90px; }
.narrow-area, .narrow-page { max-width: 860px; padding-bottom: 60px; }
.narrow-page { margin: 0 auto; padding: 48px var(--gutter) 72px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.feature-grid article { background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--blue-500); border-radius: var(--r-3); padding: 26px; display: flex; flex-direction: column; }
.feature-grid h3 { font-size: 1.28rem; margin: 0 0 4px; color: var(--heading); }
.feature-grid .edition { color: var(--cyan); font-weight: 560; font-size: .86rem; letter-spacing: .04em; margin: 0 0 12px; }
.feature-grid article > p { color: var(--text-2); }
.feature-grid ul { list-style: none; padding: 0; margin: 4px 0 0; flex: 1; }
.feature-grid li { padding: 4px 0 4px 24px; position: relative; color: var(--text-2); font-size: .96rem; line-height: 1.45; }
.feature-grid li::before { content: "\2713"; position: absolute; left: 2px; color: var(--blue-400); font-weight: 700; }
.plugins .edition { order: -1; }
.plugin-price { font-weight: 620; font-size: 1.15rem; color: var(--heading) !important; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line-2); }
.plugin-price small { font-weight: 400; font-size: .9rem; color: var(--muted); }
/* Price cards and the Monthly / Yearly switch (owner, 22 Nov 2026: "ensure all block heights and widths match", a Monthly
   Yearly button that swaps the prices, "Pay yearly" or "Pay monthly"). Every card has five rows (heading, price, note,
   what is included, buttons) that line up across the cards (subgrid); the "included" row is a flexible track, so every
   row of cards is the same height and the buttons sit level. Cards fill the content width: four a row, three on small
   laptops, two on tablets, one on phones, with no sideways scroll (owner, 9 Nov 2026). The switch is two radio buttons
   ahead of the cards: the checked one hides the other period's prices and buttons, so it needs no script. */
.billing { max-width: 1240px; margin: 0 auto; }
.billing-input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.billing-bar { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 26px; }
.billing-switch { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--site-panel); }
.billing-switch label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; box-sizing: border-box; margin: 0; padding: 8px 22px;
    border-radius: var(--r-pill); color: var(--text-2); font-weight: 560; cursor: pointer; }
.billing-switch label:hover { color: var(--heading); }
.billing-switch .save { padding: 2px 9px; border-radius: var(--r-pill); background: var(--ok-bg); color: var(--ok); font-size: .78rem; font-weight: 620; white-space: nowrap; }
#billing-month:checked ~ .billing-bar label[for="billing-month"], #billing-year:checked ~ .billing-bar label[for="billing-year"] { background: var(--blue-500); color: var(--on-accent); }
#billing-year:checked ~ .billing-bar label[for="billing-year"] .save { background: var(--on-accent); color: var(--blue-500); }
#billing-month:focus-visible ~ .billing-bar label[for="billing-month"], #billing-year:focus-visible ~ .billing-bar label[for="billing-year"] { outline: 2px solid var(--blue-300); outline-offset: 2px; }
#billing-month:checked ~ * .when-year, #billing-year:checked ~ * .when-month { display: none; }
.billing-vat { margin: 0; color: var(--muted); font-size: .93rem; text-align: center; }
.package-grid { max-width: 1240px; margin: 30px auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(8.5rem, auto) minmax(6.5rem, auto) minmax(3.8rem, auto) 1fr minmax(5.6rem, auto);
    column-gap: 20px; row-gap: 0; text-align: left; }
.package { grid-row: span 5; display: grid; grid-template-rows: subgrid; row-gap: 0; position: relative; min-width: 0; margin-bottom: 20px;
    background: var(--site-panel); border: 1px solid var(--site-line); border-top: 2px solid var(--g-500); border-radius: var(--r-3); padding: 24px 22px; }
@supports not (grid-template-rows: subgrid) {
    .package-grid { grid-auto-rows: auto; }
    .package { grid-row: auto; display: flex; flex-direction: column; }
    .package .includes { flex: 1; }
}
.package.trade { border-top-color: var(--blue-500); }
.package.complete { border-top-color: var(--cyan); background: linear-gradient(180deg, var(--complete-top) 0, var(--site-panel) 160px); }
.package.best { border-color: var(--blue-500); box-shadow: 0 0 0 1px var(--blue-500), 0 24px 50px -30px rgba(42, 107, 232, .7); }
.package.plugin-card, .package.extra { border-style: dashed; border-top-style: solid; border-top-color: var(--cyan); }
.package .flag { position: absolute; top: -13px; left: 22px; margin: 0; padding: 3px 12px; border-radius: var(--r-pill); background: var(--blue-500); color: var(--on-accent); font-size: .82rem; font-weight: 560; }
.package h3 { margin: 0; font-size: 1.22rem; line-height: 1.25; color: var(--heading); }
.package .for { margin: 6px 0 0; color: var(--muted); font-size: .93rem; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.package .price-row { padding-top: 16px; }
.package .amount { margin: 0 0 4px; font-size: 1.9rem; }
.package .amount.none { font-size: 1.05rem; font-weight: 560; font-stretch: 100%; line-height: 1.4; color: var(--text-2); }
.package .amount.range { font-size: 1.45rem; }
.package .terms { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.package .terms.first { color: var(--ok); }
.package .terms.no-option { color: var(--text-2); }
.package .note:not(:empty) { padding-top: 10px; }
.package .saving { margin: 0; padding: 6px 10px; border-radius: var(--r-2); background: var(--ok-bg); color: var(--ok); font-size: .88rem; line-height: 1.35; }
.package .includes { align-self: start; list-style: none; padding: 14px 0 0; margin: 14px 0 18px; border-top: 1px solid var(--site-line-2); }
.package .includes li { padding: 3px 0 3px 22px; position: relative; color: var(--text-2); font-size: .94rem; line-height: 1.4; }
.package .includes li::before { content: "\2713"; position: absolute; left: 1px; color: var(--blue-400); font-weight: 700; }
.package .includes li.base { font-weight: 600; color: var(--heading); }
.package .includes li.fact { color: var(--muted); }
.package .includes li.more::before { content: "+"; }
.package .buy { align-self: end; display: flex; }
.package .buy .button { flex: 1; justify-content: center; text-align: center; }
.package-note { max-width: 760px; margin: 22px auto 0; text-align: center; color: var(--muted); font-size: .95rem; }
.more-title { margin: 56px 0 0; text-align: center; font-size: 1.6rem; font-stretch: 110%; color: var(--heading); }
.plugin-prices { scroll-margin-top: 80px; }
.plugin-prices .lead { max-width: 760px; margin: 8px auto 0; text-align: center; color: var(--text-2); }
.plugin-tiles { list-style: none; max-width: none; margin: 26px auto 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 14px; text-align: left; }
.plugin-tiles li { display: flex; flex-direction: column; min-width: 0; padding: 16px 18px; background: var(--site-panel); border: 1px solid var(--site-line); border-radius: var(--r-3); }
.plugin-tiles h4 { margin: 0; font-size: 1.02rem; line-height: 1.3; color: var(--heading); }
.plugin-tiles .for { margin: 4px 0 12px; color: var(--muted); font-size: .88rem; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.plugin-tiles .amount { margin: auto 0 0; font-size: 1.3rem; }
.plugin-tiles .beta { font-size: .95rem; font-weight: 560; font-stretch: 100%; color: var(--text-2); }
.plugin-tiles .terms { margin: 2px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.35; }
.plugin-tiles .details { margin-top: 8px; font-size: .92rem; font-weight: 560; }
@media (max-width: 1180px) {
    .package-grid, .plugin-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .package-grid, .plugin-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .package-grid, .plugin-tiles { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
    .billing-switch label { padding: 8px 16px; }
}
.site-foot { background: var(--g-900); color: var(--text-2); padding: 44px var(--gutter) 30px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); gap: 28px; align-items: start; }
.site-foot a { color: var(--text-2); text-decoration: none; }
.site-foot a:hover { color: var(--heading); text-decoration: underline; }
.site-foot p { margin: 0; color: var(--muted); }
.site-foot .foot-brand { display: block; }
.foot-brand div { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; color: var(--heading); }
.foot-brand p { margin: 8px 0 0; }
.site-foot nav { display: flex; flex-direction: column; gap: 7px; }
.site-foot nav h2 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; font-stretch: 100%; font-weight: 560; }
.site-foot .foot-legal { grid-column: 1 / -1; max-width: none; margin: 0; border-top: 1px solid var(--line); padding-top: 16px; font-size: .92rem; }
/* The business details from Admin > Settings: contact lines under the brand, company and VAT numbers on the legal line. */
.foot-contact { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; font-style: normal; font-size: .95rem; overflow-wrap: anywhere; }
.foot-contact span { color: var(--muted); }
.foot-numbers { display: inline-block; margin-left: 12px; }
.site-showcase { background: var(--g-900); color: var(--text); padding: var(--s-8) var(--gutter); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.showcase-inner { max-width: var(--page); margin: 0 auto; }
.site-showcase h2 { font-size: 2.3rem; font-stretch: 114%; color: var(--heading); margin: 0 0 10px; }
.site-showcase .showcase-inner > p { font-size: 1.2rem; color: var(--text-2); margin: 0 0 34px; max-width: 46em; }
.screen { margin: 0; }
.screen img { display: block; width: 100%; height: auto; border-radius: var(--r-3); border: 1px solid var(--g-600); box-shadow: 0 24px 60px -30px var(--shadow-ink); }
.screen figcaption { margin-top: 12px; font-size: .96rem; color: var(--muted); }
.screen-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 30px; }
.feature-area > .screen { margin-bottom: 30px; }
.checkout { display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 560px); gap: 48px; justify-content: center; padding: 56px var(--gutter) 80px; align-items: start; }
.order { background: var(--strata); border: 1px solid var(--line); color: var(--text); border-radius: var(--r-3); padding: 30px; position: sticky; top: 90px; }
.order h1 { font-size: 1.9rem; color: var(--heading); }
.order .amount, .order .amount small, .order .muted, .order .hint { color: var(--text-2); }
.order .ticks li { color: var(--text); }
.order .ticks li::before { color: var(--cyan); }
.order-form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-3); padding: 30px; }
.order-form h2 { margin-top: 0; color: var(--heading); }
.order-form h2:not(:first-of-type) { margin-top: 28px; }
.plugin-ticks h3 { margin-top: 0; }
/* Prose pages: About, legal drafts, documentation. */
.prose { max-width: 820px; margin: 0 auto; padding: 48px var(--gutter) 72px; }
.prose h2 { font-size: 1.5rem; color: var(--heading); margin: 40px 0 12px; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.1rem; color: var(--heading); margin: 24px 0 8px; }
.prose p, .prose li { color: var(--text-2); font-size: 1.04rem; line-height: 1.65; }
.prose ul, .prose ol { max-width: none; }
.prose .draft { border: 1px solid var(--warn-line); background: var(--warn-bg); color: var(--warn-ink); border-radius: var(--r-2); padding: 12px 16px; margin: 0 0 28px; }
.prose .draft strong { color: var(--warn); }
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; max-width: var(--page); margin: 0 auto; padding: 48px var(--gutter) 72px; align-items: start; }
.doc-layout .prose { padding: 0; margin: 0; }
/* Legal documents (and their version pages) read wider than other prose: the page width, and lines no longer held to
   75 characters. Phones keep the gutter set for small screens. */
.prose.legal-doc { max-width: var(--legal-page); }
.legal-doc p, .legal-doc li, .legal-doc .flash { max-width: none; }
.doc-nav { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); padding-left: 16px; }
.doc-nav a { text-decoration: none; color: var(--text-2); padding: 4px 0; }
.doc-nav a:hover { color: var(--heading); }
.release { border-top: 1px solid var(--line); padding: 26px 0; }
.release:first-of-type { border-top: 0; }
.release h2 { margin: 0 0 4px; }
.release time { color: var(--muted); font-size: .92rem; }

/* 13 Plugin product pages (sales/plugin-pages): head, hero render, gallery, numbers and specifications. */
.plugin-head-inner { max-width: var(--page); margin: 0 auto; }
.site-page-head .plugin-kicker { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin: 0 auto 10px; }
.site-page-head .plugin-head-price { font-size: 1.5rem; font-weight: 620; color: var(--heading); margin: 18px auto 0; }
.site-page-head .plugin-head-price small { font-size: 1rem; font-weight: 400; color: var(--text-2); }
.plugin-hero { margin: 0; background: var(--g-900); border-bottom: 1px solid var(--line); }
.plugin-hero img { display: block; width: 100%; height: auto; max-height: 82vh; object-fit: cover; }
.plugin-hero figcaption { max-width: var(--page); margin: 0 auto; padding: 12px var(--gutter); color: var(--muted); font-size: .96rem; }
.plugin-lead { color: var(--text-2); font-size: 1.1rem; max-width: 60em; margin: -8px 0 26px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.screen.wide { margin-top: 30px; }
.plugin-data h3 { color: var(--heading); font-size: 1.2rem; margin: 0 0 12px; }
/* Section heads on a product page start at the same edge as the content below them, like every other section. */
body.public .plugin-data > h2, body.public .plugin-data > p.lead { text-align: left; }
.plugin-data > p.lead { margin-top: -6px; }
.plugin-data .ticks { list-style: none; padding: 0; margin: 0; }
.plugin-data .ticks li { padding: 6px 0 6px 26px; position: relative; color: var(--text-2); border-bottom: 1px solid var(--site-line-2); }
.plugin-data .ticks li:last-child { border-bottom: 0; }
.plugin-data .ticks li::before { content: "\2713"; position: absolute; left: 2px; color: var(--blue-400); font-weight: 700; }
.plugin-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.plugin-stats div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-3); padding: 22px 24px; }
.plugin-stats strong { display: block; font-size: 2rem; font-stretch: 112%; color: var(--heading); line-height: 1.1; }
.plugin-stats span { display: block; margin-top: 6px; color: var(--text-2); }
.data-pair { margin-top: 40px; align-items: start; }
.spec-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.spec-table th, .spec-table td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; color: var(--text-2); text-transform: none; letter-spacing: 0; font-size: 1rem; }
.spec-table thead th { background: var(--raised); color: var(--heading); font-weight: 600; }
.spec-table.wide th { width: 190px; color: var(--heading); font-weight: 600; background: var(--raised); white-space: normal; }
.plugin-note { max-width: 70em; margin-top: 16px; }
.plugin-more { margin: 12px 0 0; font-weight: 560; }
.plugin-pdfs { margin: 0 0 26px; }
.plugin-pdfs li { color: var(--text-2); }
.plugin-limits-title { color: var(--heading); font-size: 1.2rem; margin: 28px 0 10px; }
.plugin-limits { max-width: 70em; margin: 0; padding-left: 1.2em; color: var(--text-2); }
.plugin-limits li { padding: 4px 0; }

/* 14 Small screens. */
@media (max-width: 1100px) {
    .split, .columns { grid-template-columns: minmax(0, 1fr); }
    .gallery, .plugin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .data-pair { grid-template-columns: minmax(0, 1fr); }
    .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .site-foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-foot .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
    /* The public menu folds behind a Menu button (a checkbox, so it works with no script). */
    .site-top { flex-wrap: wrap; }
    .nav-toggle { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; }
    .nav-label { display: inline-flex; align-items: center; min-height: 40px; margin: 0; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-2); cursor: pointer; font-weight: 540; color: var(--ink); }
    .nav-toggle:focus-visible + .nav-label { outline: 2px solid var(--blue-400); outline-offset: 2px; }
    .site-top nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0 10px; }
    .site-top { gap: 10px; }
    .site-brand { margin-right: auto; }
    .site-top nav { order: 4; }
    .nav-toggle:checked ~ nav { display: flex; }
    .site-top nav a:not(.button) { padding: 12px 2px; border-bottom: 1px solid var(--line-2); }
    .site-top nav .button { margin-top: 12px; }
    .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .doc-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px 16px; border-left: 0; padding-left: 0; }
}
@media (max-width: 860px) {
    :root { --gutter: 16px; }
    .plugin-hero figcaption { padding: 10px 16px; }
    .spec-table.wide th { width: auto; }
    .site-brand { font-size: 1.1rem; gap: 8px; }
    .site-brand img { width: 30px; height: 30px; }
    .hero { padding: 48px 16px 44px; }
    .hero-facts { margin-top: 36px; }
    .site-showcase { padding: 42px 16px; }
    .site-showcase h2 { font-size: 1.8rem; }
    .screen-pair { grid-template-columns: minmax(0, 1fr); }
    .site-page-head { padding: 38px 16px; }
    .site-page-head h1 { font-size: 2rem; }
    .jump { position: static; padding: 12px 16px; gap: 14px; }
    .feature-area { padding: 36px 16px 8px; }
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-intro { padding: 40px 16px; }
    .site-intro h1 { font-size: 2rem; }
    .site-band, .site-pricing { padding: 48px 16px; }
    .site-band h2, .site-pricing h2, .site-close h2 { font-size: 1.7rem; }
    .checkout { grid-template-columns: minmax(0, 1fr); padding: 24px 16px 48px; gap: 20px; }
    .order { position: static; }
    .site-foot { padding: 28px 16px; }
    .frame { display: block; }
    .side { position: static; height: auto; padding: 10px 16px; display: grid; grid-template-columns: 1fr auto; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
    .menu-toggle { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; }
    .menu-label { display: block; margin: 0; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-2); cursor: pointer; font-weight: 540; }
    .menu-toggle:focus-visible + .menu-label { outline: 2px solid var(--blue-400); outline-offset: 2px; }
    .side nav, .who { display: none; grid-column: 1 / -1; }
    .menu-toggle:checked ~ nav, .menu-toggle:checked ~ .who { display: block; }
    .side nav a[aria-current=page]::before { display: none; }
    .work { padding: 0 16px 48px; }
    .work > .page-head { margin: 0 -16px 16px; padding: 24px 16px; min-height: 0; }
    .page-head h1 { font-size: 1.6rem; }
    .page-head p { font-size: 1rem; }
    h1 { font-size: 1.7rem; }
    .stat .value { font-size: 1.9rem; }
    .panel { padding: 18px; }
    th, td { padding: 11px 14px; }
    .stage { display: block; }
    .strata { position: static; height: auto; min-height: 130px; padding: 18px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
    .strata .lead { font-size: 1.15rem; margin-top: 14px; }
    .strata .steps { display: none; }
    /* Phones: the pane folds above the form: brand, what the portal is, and the four things it does as compact tiles. */
    .strata.pane { overflow: visible; padding: 18px 16px; }
    .strata.pane::after { display: none; }
    .pane-body { margin: 0; padding: 12px 0 0; }
    .pane-kicker { display: none; }
    .strata.pane .lead { font-size: 1.05rem; margin-top: 0; max-width: none; color: var(--text-2); font-weight: 500; }
    .pane-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; border-top: 0; }
    /* The form comes first on a phone: the pane keeps the brand and one line; the four things it does, the release and
       the trust line stay on wider screens (the sign-in card says what matters on a phone). */
    .strata.pane { min-height: 0; }
    .strata.pane .pane-list, .strata.pane .pane-foot { display: none; }
    .auth-card { padding: 24px 18px 20px; border-radius: 12px; }
    .auth-head h1 { font-size: 1.6rem; }
    .stage-foot { font-size: .88rem; }
    .pane-list li { gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-2); background: rgba(16, 20, 24, .6); }
    .pane-icon { width: 28px; height: 28px; border-radius: 7px; }
    .pane-icon svg { width: 16px; height: 16px; }
    .pane-text { padding-top: 0; }
    .pane-text strong { font-size: .86rem; line-height: 1.25; }
    .pane-text span, .pane-release { display: none; }
    .pane-foot { margin-top: 12px; }
    .pane-trust { font-size: .82rem; }
    .stage-main { padding: 26px 16px 40px; }
    .stage-main > .column { margin: 0; }
    .codes { columns: 1; }
    .enrol { grid-template-columns: minmax(0, 1fr); }
    .toasts { right: 12px; left: 12px; bottom: 12px; max-width: none; }
    /* A table marked "stack" turns each row into a card, each cell labelled by its data-label. */
    table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
    table.stack tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
    table.stack tr:last-child { border-bottom: 0; }
    table.stack td { border: 0; padding: 4px 14px; text-align: left; }
    table.stack td[data-label]::before { content: attr(data-label); display: block; font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
}
@media (max-width: 600px) {
    .gallery, .plugin-stats { grid-template-columns: minmax(0, 1fr); }
    .feature-grid { grid-template-columns: minmax(0, 1fr); }
    .site-foot { grid-template-columns: minmax(0, 1fr); }
    /* The bend sheet's six columns fit a phone: tighter cells, headings that wrap. */
    .data-pair .spec-table th, .data-pair .spec-table td { padding: 8px 5px; font-size: .84rem; white-space: normal; }
}
@media (max-width: 420px) {
    .pair { grid-template-columns: minmax(0, 1fr); }
}

/* 15 Motion and print. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media print {
    :root {
        color-scheme: light;
        --bg: #fff; --panel: #fff; --raised: #f2f4f6; --ink: #000; --muted: #444; --line: #bbb; --line-2: #ddd; --line-strong: #888;
        --text: #000; --text-2: #222; --text-3: #444; --accent: #0b3d91; --code: #eee; --shadow: none;
    }
    .side, .strata, .site-top, .site-foot, .toasts, .skip { display: none; }
    .frame, .stage { display: block; }
    .work > .page-head { background: none; color: #000; min-height: 0; padding: 0 0 12px; margin: 0 0 12px; }
    .page-head h1 { color: #000; }
    .badge, .chip { background: none; border-color: #888; color: #000; }
}
.row-card-head h2 { margin: 0 0 4px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.message-body { max-width: none; overflow-wrap: anywhere; color: var(--text-2); }
.site-pricing, .site-band, .site-showcase { scroll-margin-top: 70px; }
.stat meter, .stat progress { order: 3; margin: 8px 0 0; flex: none; box-shadow: none; }
.stat .value .muted { font-size: 1rem; font-weight: 400; font-stretch: 100%; }

/* The live model on the home page. The screenshot is the content; the canvas covers it once the model is drawing. */
.demo-stage { position: relative; max-width: 1040px; margin: 32px auto 0; border: 1px solid var(--g-600); border-radius: var(--r-3); overflow: hidden; aspect-ratio: 16 / 9;
    background: radial-gradient(700px 320px at 50% 30%, rgba(42, 107, 232, .16), transparent 70%), var(--g-950); }
.demo-fallback { display: block; width: 100%; height: 100%; object-fit: cover; }
.demo-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.demo-canvas:active { cursor: grabbing; }
.demo-canvas[hidden], .demo-tools[hidden], .demo-start[hidden] { display: none; }
.demo-stage.is-live .demo-fallback { visibility: hidden; }
.demo-tools { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.demo-tools button { background: rgba(16, 20, 24, .86); }
.demo-tools button[aria-pressed=true] { background: var(--blue-tint); border-color: var(--blue-400); color: #fff; }
.demo-state { display: none; position: absolute; left: 12px; top: 12px; margin: 0; padding: 6px 12px; border-radius: var(--r-2); background: rgba(16, 20, 24, .9); border: 1px solid var(--line); color: var(--text-2); font-size: .92rem; }
.demo-stage.is-loading .demo-loading, .demo-stage.is-unavailable .demo-unavailable { display: block; }
.demo-start { position: absolute; right: 12px; top: 12px; min-height: 36px; padding: 6px 14px; }
.demo-stage.is-live .demo-start, .demo-stage.is-loading .demo-start, .demo-stage.is-unavailable .demo-start { display: none; }
@media (max-width: 600px) { .demo-stage { aspect-ratio: 4 / 5; } .demo-tools button { min-height: 40px; } }
/* 16 Made in Stratal CAD: a demo job on a product page (sales/plugin-pages/_showcase), and its 3D model (js/viewer3d.js).
   The render is the content; the canvas covers it only once the model the visitor asked for is drawing. */
.made { background: var(--g-900); color: var(--text); padding: var(--s-8) var(--gutter); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scroll-margin-top: 70px; }
.made-inner { max-width: var(--page); margin: 0 auto; }
.made-kicker { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin: 0 0 10px; }
.made h2 { font-size: 2rem; font-stretch: 112%; color: var(--heading); margin: 0 0 14px; max-width: 34em; }
.made-summary { font-size: 1.12rem; color: var(--text-2); max-width: 62em; margin: 0 0 14px; }
.made-note { color: var(--text-3); font-size: .95rem; max-width: 70em; margin: 0 0 8px; }
.made-head { color: var(--heading); font-size: 1.25rem; font-stretch: 106%; margin: 44px 0 16px; }
.made-hint { max-width: 70em; margin-top: 12px; }
.made-lead { margin-top: 30px; }
.made-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; }
.made-figures div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-3); padding: 16px 18px; min-width: 0; }
.made-figures dt { color: var(--text-3); font-size: .9rem; margin: 0 0 6px; }
.made-figures dd { margin: 0; color: var(--heading); font-size: 1.08rem; font-weight: 600; overflow-wrap: anywhere; }
.made-gallery { margin-top: 0; }
.made-sheets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 20px; }
.made-pdfs { list-style: none; padding: 0; margin: 0; max-width: none; }
.made-pdfs li { color: var(--text-2); padding: 6px 0; }
.made-features { columns: 2; column-gap: 40px; max-width: none; color: var(--text-2); padding-left: 1.2em; margin: 0; }
.made-features li { padding: 3px 0; break-inside: avoid; }
.viewer { position: relative; border: 1px solid var(--g-600); border-radius: var(--r-3); overflow: hidden; aspect-ratio: 16 / 9;
    background: radial-gradient(700px 320px at 50% 30%, rgba(42, 107, 232, .16), transparent 70%), var(--g-950); }
.viewer-poster { display: block; width: 100%; height: 100%; object-fit: contain; } /* the whole render, never cropped */
/* Until the visitor takes control, a finger on the model scrolls (or zooms) the page; only then does it turn the model. */
.viewer-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; touch-action: pan-x pan-y pinch-zoom; }
.viewer.is-active .viewer-canvas { cursor: grab; touch-action: none; }
.viewer.is-active .viewer-canvas:active { cursor: grabbing; }
.viewer.is-active { border-color: var(--blue-400); }
.viewer-canvas:focus-visible { outline: 3px solid var(--blue-400); outline-offset: -3px; border-radius: var(--r-3); }
.viewer-canvas[hidden], .viewer-tools[hidden], .viewer-start[hidden], .viewer-state[hidden], .viewer-hint[hidden] { display: none; }
.viewer-hint { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 24px); margin: 0; padding: 5px 12px;
    border-radius: var(--r-2); background: rgba(16, 20, 24, .88); border: 1px solid var(--line); color: var(--text); font-size: .88rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.viewer.is-live .viewer-poster { visibility: hidden; }
/* Behind a drawn model: lighter in the middle, so black parts (ducts, cables, bases) stand out as well as pale ones. */
.viewer.is-live { background: radial-gradient(ellipse 70% 75% at 50% 48%, #4a5561 0%, #2b323a 55%, #15191e 100%); }
.viewer-tools { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.viewer-tools button { background: rgba(16, 20, 24, .88); color: var(--text); }
.viewer-state { position: absolute; left: 12px; top: 12px; right: 12px; width: fit-content; max-width: calc(100% - 24px); margin: 0; padding: 6px 12px; border-radius: var(--r-2);
    background: rgba(16, 20, 24, .92); border: 1px solid var(--line); color: var(--text); font-size: .92rem; }
.viewer-start { position: absolute; right: 12px; bottom: 12px; min-height: 40px; padding: 8px 16px; }
.viewer.is-loading .viewer-start { display: none; }
/* The home page's strip: one real render per plugin page. */
.made-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 30px; list-style: none; padding: 0; max-width: var(--page); }
.made-strip li { margin: 0; }
.made-strip a { display: block; color: var(--text); text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; height: 100%; }
.made-strip a:hover { border-color: var(--blue-400); color: var(--heading); }
.made-strip img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.made-strip strong { display: block; padding: 12px 14px 2px; font-size: 1.02rem; }
.made-strip span { display: block; padding: 0 14px 14px; color: var(--text-3); font-size: .9rem; }
@media (max-width: 1100px) { .made-figures, .made-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
    .made { padding: 42px 16px; }
    .made h2 { font-size: 1.6rem; }
    .made-sheets { grid-template-columns: minmax(0, 1fr); }
    .made-features { columns: 1; }
}
@media (max-width: 600px) {
    .made-figures, .made-strip { grid-template-columns: minmax(0, 1fr); }
    .viewer { aspect-ratio: 4 / 3; }
    .viewer-tools button { min-height: 40px; }
}

/* Admin > Settings: a read-only value with its copy button (public/js/copy.js shows the button). */
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row input { flex: 1; min-width: 0; }

/* Support desk, knowledge base, legal drafts and beta (owner, 14 Nov 2026). */
.pre-lines { white-space: pre-line; }
.licence-key { font-size: 1.1rem; letter-spacing: .04em; user-select: all; }
.key-once { border-color: var(--blue-500); }
form.wide-panel { max-width: 1000px; }
textarea.code { font-family: ui-monospace, Consolas, monospace; font-size: .92rem; }
.crash-text { white-space: pre-wrap; max-height: 320px; overflow: auto; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-2); padding: 12px 14px; font-size: .86rem; }
.thread { list-style: none; padding: 0; margin: 0 0 16px; }
.thread .message.from-staff { border-left: 3px solid var(--blue-500); }
.thread .message.from-customer { border-left: 3px solid var(--line-strong); }
.thread .files { margin: 10px 0 0; padding-left: 18px; }
.help-search label { display: block; font-weight: 560; color: var(--heading); margin-bottom: 8px; }
.help-search-row { display: flex; gap: 10px; }
.help-search-row input { flex: 1; min-width: 0; }
.help-results, .help-topics, .legal-list { padding-left: 20px; }
.help-results li, .legal-list li { margin-bottom: 12px; }
.help-topics { columns: 2 280px; column-gap: 32px; }
.help-topics li { break-inside: avoid; margin-bottom: 4px; }
.help-article table, .legal-doc table { display: block; overflow-x: auto; margin: 12px 0 20px; }
.help-article pre, .legal-doc pre { white-space: pre-wrap; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-2); padding: 12px 14px; }
.legal-foot { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 16px; }
.checkout-terms { margin-top: 18px; }
.checkout-terms .checkbox { align-items: flex-start; }

/* Client share links (SHR): the page a client opens from a link (share.js draws the sheets). */
.share-area { max-width: var(--page); margin: 0 auto; padding: 24px var(--gutter) 60px; }
.share-head h1 { margin-bottom: 4px; }
.share-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 12px; }
.share-tab { min-height: 36px; padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--panel); color: var(--ink); cursor: pointer; }
.share-tab[aria-selected="true"] { border-color: var(--blue-400); background: var(--tint); }
.share-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.share-stage[hidden], .share-model[hidden] { display: none; }
.share-toolbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.share-toolbar [aria-pressed="true"] { border-color: var(--blue-400); background: var(--tint); }
.share-gap { flex: 1; }
.share-canvas-wrap { position: relative; border: 1px solid var(--g-600); border-radius: var(--r-3); overflow: hidden; height: 72vh; min-height: 360px; }
.share-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.share-canvas:focus-visible { outline: 3px solid var(--blue-400); outline-offset: -3px; }
.share-state { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; padding: 8px 14px; border-radius: var(--r-2); background: rgba(10, 14, 20, .82); color: #fff; max-width: 80%; text-align: center; }
.share-state[hidden] { display: none; }
.share-side h2 { margin-top: 18px; }
.share-layers summary { cursor: pointer; font-weight: 600; }
.share-layer-list { list-style: none; margin: 6px 0 0; padding: 0; max-height: 260px; overflow: auto; }
.share-layer-list label { display: flex; align-items: center; gap: 6px; padding: 2px 0; }
.share-swatch { display: inline-block; width: 12px; height: 12px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--swatch, #808080); }
.share-comment-form label { display: block; margin-bottom: 8px; }
.share-comment-form input, .share-comment-form textarea { width: 100%; }
.share-form-row { display: flex; gap: 8px; flex-wrap: wrap; }
.share-comments { padding-left: 0; list-style: none; }
.share-comments li { border-top: 1px solid var(--line); padding: 8px 0; }
.share-comment-head { margin: 0; color: var(--muted); font-size: .9rem; }
.share-comment-placed { cursor: pointer; }
.link-button { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; text-decoration: underline; min-height: 0; }
.viewer-page .viewer-steps { padding-left: 1.2em; }
@media (max-width: 900px) { .share-body { grid-template-columns: 1fr; } .share-canvas-wrap { height: 60vh; } }

/* 16 Site content (Admin > Site content, App\Content): the page editor, the picture chooser, the media library and the
   blocks pages of the owner's own show. Quill's own stylesheet (third-party/quill-2.0.3) is loaded on editor pages only. */
.preview-bar { display: block; width: 100%; box-sizing: border-box; grid-column: 1 / -1; margin: 0; padding: 8px 16px; background: var(--warn-bg); color: var(--warn); border-bottom: 1px solid var(--warn-line); text-align: center; font-size: .92rem; }
.content-form fieldset { border: 1px solid var(--line); border-radius: var(--r-2); padding: 12px 16px 16px; margin: 16px 0 0; min-width: 0; }
.content-form legend { padding: 0 6px; font-weight: 600; color: var(--ink); float: none; width: auto; font-size: 1rem; }
.content-form legend + * { padding-top: 0; }
.content-form .content-group > legend { font-size: 1.02rem; }
.content-note { margin: 16px 0 0; padding: 10px 14px; border-left: 3px solid var(--blue-400); background: var(--tint); border-radius: var(--r-1); font-size: .92rem; color: var(--text-2); max-width: 75ch; }
.content-note strong { color: var(--ink); margin-right: 4px; }
.content-items { display: grid; gap: 10px; margin-top: 8px; }
.content-item { border: 1px solid var(--line-2); border-radius: var(--r-2); padding: 10px 12px; background: var(--raised); }
.content-item > label:first-child, .content-item > .content-tuple > label:first-child { margin-top: 0; }
.content-item-tools { display: flex; gap: 6px; justify-content: flex-end; margin-top: 8px; }
.content-tuple { display: grid; gap: 0; }
.content-image-row { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: start; }
.content-thumb { width: 160px; height: 100px; object-fit: contain; background: var(--g-950); border: 1px solid var(--line); border-radius: var(--r-1); }
.content-image-fields .actions { margin-top: 8px; }
.content-block-type { margin: 0 0 4px; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); }
.content-add-block { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-top: 12px; }
.content-add-block label { margin: 0; width: 100%; }
.content-add-block select { width: auto; }
.content-actions { position: sticky; bottom: 0; background: var(--panel); padding: 12px 0; border-top: 1px solid var(--line); margin-top: 20px; z-index: 2; }
.slug-row { display: flex; align-items: center; gap: 6px; }
.slug-row input { flex: 1; }
.rich-source.code { font-family: var(--mono); font-size: .88rem; }
.rich-editor, .rich-editor.ql-container { background: #fff; color: #111; border-radius: 0 0 var(--r-1) var(--r-1); min-height: 160px; height: auto; }
.rich-editor .ql-editor { max-height: 70vh; overflow-y: auto; }
.ql-toolbar.ql-snow { background: #eef1f5; border-radius: var(--r-1) var(--r-1) 0 0; margin-top: 4px; }
.rich-editor .ql-editor { min-height: 160px; font-size: 1rem; line-height: 1.55; }
.rich-editor .ql-editor img { max-width: 100%; height: auto; }
.content-picker { width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-3); padding: 20px; }
.content-picker::backdrop { background: var(--overlay); }
.content-picker-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.content-picker-head h2 { margin: 0; }
.content-picker-upload { border: 1px solid var(--line); border-radius: var(--r-2); padding: 12px 14px; margin: 12px 0; }
.content-picker-grid, .media-grid { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.content-picker-grid button, .media-grid a { display: grid; gap: 6px; width: 100%; padding: 6px; text-align: left; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-2); color: var(--ink); font-weight: 400; min-height: 0; text-decoration: none; }
.content-picker-grid button:hover, .media-grid a:hover { border-color: var(--blue-400); background: var(--g-750); }
.content-picker-grid img, .media-grid img { width: 100%; height: 100px; object-fit: contain; background: var(--g-950); border-radius: var(--r-1); }
.content-picker-grid span, .media-grid span { font-size: .85rem; overflow-wrap: anywhere; }
.media-preview { margin: 0 0 16px; }
.media-preview img { max-width: 100%; height: auto; display: block; background: var(--g-950); border-radius: var(--r-1); }
.crop-stage { position: relative; display: inline-block; overflow: hidden; max-width: 100%; margin-top: 12px; cursor: crosshair; touch-action: none; user-select: none; }
.crop-stage img { display: block; max-width: 100%; max-height: 70vh; height: auto; pointer-events: none; }
.crop-box { position: absolute; border: 2px solid var(--cyan); box-shadow: 0 0 0 9999px rgba(5, 7, 10, .55); pointer-events: none; }
.crop-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.content-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 1.2em 0; }
.content-cols > div > :first-child { margin-top: 0; }
.content-figure { margin: 1.6em 0; }
.content-figure img { width: 100%; height: auto; border-radius: var(--r-2); border: 1px solid var(--line); }
.content-figure figcaption { color: var(--muted); font-size: .92rem; margin-top: 8px; }
.content-page .table-wrap { margin: 1.2em 0; }
.prose img { max-width: 100%; height: auto; border-radius: var(--r-2); }
@media (max-width: 760px) {
    .content-image-row { grid-template-columns: 1fr; }
    .content-thumb { width: 100%; height: 140px; }
    .crop-fields { grid-template-columns: 1fr 1fr; }
    .content-cols { grid-template-columns: 1fr; gap: 0; }
    .content-actions { flex-wrap: nowrap; gap: 6px; padding: 8px 0; }
    .content-actions button { flex: 1 1 0; min-width: 0; padding: 6px 8px; min-height: 40px; }
}

/* Customer Plugins > Get plugins: one compact row per plugin, the buy form in a native drawer under it. The "Buy" toggle
   sits at the row's right on wide screens and drops under the row on phones; the open drawer spans the whole row. */
.offers { list-style: none; padding: 0; margin: 0 0 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--shadow); max-width: none; }
.offer { position: relative; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.offer:last-child { border-bottom: 0; }
.offer-row { display: grid; grid-template-columns: minmax(0, 1fr) 11rem 17rem; gap: 6px 20px; align-items: center; padding-right: 96px; }
.offer-row .muted { font-size: .9rem; }
.offer-buy-why { grid-column: 1 / -1; font-size: .9rem; }
.offer-try form.inline { margin: 0; }
.offer-buy > summary { position: absolute; top: 14px; right: 18px; list-style: none; cursor: pointer; }
.offer-buy > summary::-webkit-details-marker { display: none; }
.offer-buy > summary::after { content: "\25BE"; margin-left: 6px; display: inline-block; transition: transform .12s; }
.offer-buy[open] > summary::after { transform: rotate(180deg); }
.offer-buy > summary:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 2px; }
.offer-buy[open] > .buy-form { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.buy-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.buy-fields label { margin-top: 0; }
.buy-fields select, .buy-fields input { width: 100%; }
.buy-form fieldset { margin: 12px 0; }
@media (max-width: 1180px) { .offer-row { grid-template-columns: minmax(0, 1fr) 11rem; } .offer-try { grid-column: 1 / -1; } }
@media (max-width: 860px) {
    .offer-row { grid-template-columns: minmax(0, 1fr); padding-right: 0; }
    .offer-buy > summary { position: static; margin-top: 10px; display: inline-flex; }
}

/* Confirm boxes: a button that opens the confirmation and its form in place (no script, so the CSP stays strict). */
.confirm-box { margin-top: 12px; }
.confirm-box > summary { list-style: none; display: inline-flex; cursor: pointer; }
.confirm-box > summary::-webkit-details-marker { display: none; }
.confirm-box[open] > summary { margin-bottom: 12px; }
.confirm-box form { border: 1px solid var(--warn-line); background: var(--warn-bg); border-radius: var(--r-2); padding: 14px 16px; max-width: 720px; }
.confirm-box form p { color: var(--text); }
.retired-text dt { font-weight: 600; margin-top: 10px; }
.retired-text dd { margin: 2px 0 0; white-space: pre-wrap; color: var(--text-2); }
