/* Ogenso 2.0 DS: tokens.
   One source for colour, type, space, radius, elevation, glass, the photo grade and motion, for the website and the app.
   Three themes, set with data-theme on any element:
   - paper (the default): linen pages people read, and the app's neutral window by day;
   - night: neutral charcoal, a viewer's preference, everywhere (the app, the design system and any Night on the website);
   - dusk: Ogenso's fixed deep forest-green (#0B2E20), only for the website's always-dark chapters and the AI engine page's dusk sheet (/ai-engine).
   Two grounds by purpose (BRAND "Grounds"): --o2-ground-read (linen) for pages people read, and the app window
   (--o2-ground-frame for the rail and side, --o2-ground-pane for the white page) for the owner's workspace. data-ground="app"
   on the frame also darkens the secondary ink for working sessions.
   Names are by role, never by hue. Values are literal in every theme block: a token that read another token would keep the
   value of the element it was declared on, and not flip inside a Night or dusk subtree.
   Fixed tokens (dusk, paper-fixed, forest, ring ink, orb) are declared once, here, and never flip. */
@font-face { font-family: "Satoshi"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/satoshi/Satoshi-Light.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/satoshi/Satoshi-Regular.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/satoshi/Satoshi-Medium.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/satoshi/Satoshi-Bold.woff2") format("woff2"); }
/* Only 300, 400, 500 and 700 ship. Never 600: the browser draws it as 700. */

:root, [data-theme="paper"] {
  /* Grounds by purpose */
  --o2-ground-read: #F7F2E7;   /* linen: the website, customer pages (enquiry page, quote page, acceptance) and emails */
  --o2-ground-frame: #F7F7F6;  /* the app window: rail, side and top bar of the owner's workspace */
  --o2-ground-pane: #FFFFFF;   /* the white page pane inside the app window */

  /* Ground and ink */
  --o2-bg: #F7F2E7;            /* the page: linen unless a frame says otherwise */
  --o2-bg-sunken: #EFE8DA;     /* a recess in paper */
  --o2-surface: #FFFFFF;       /* cards and panels */
  --o2-surface-raised: #FCF9F2;/* card stock: the compliment slip */
  --o2-fill: rgb(14 27 18 / 0.035);
  --o2-fill-strong: rgb(14 27 18 / 0.06);
  --o2-line: rgb(14 27 18 / 0.1);
  --o2-line-soft: rgb(14 27 18 / 0.06);
  --o2-ink: #0E1B12;           /* FDS forest-black */
  --o2-ink-2: rgb(14 27 18 / 0.78);
  --o2-ink-3: rgb(14 27 18 / 0.68);
  --o2-ink-4: rgb(14 27 18 / 0.62);
  --o2-inverse: #0E1B12;       /* ink buttons and chips */
  --o2-on-inverse: #F7F2E7;
  --o2-window-bg: #F7F7F6;     /* older name for --o2-ground-frame; kept, the app and the site use it */
  --o2-tile-bg: #FFFFFF;       /* the app's icon tile */
  --o2-focus: #0C6E39;         /* the one focus ring: 2px, offset 2–3px */
  --o2-ink-2-app: rgb(14 27 18 / 0.84); --o2-ink-3-app: rgb(14 27 18 / 0.72); --o2-ink-4-app: rgb(14 27 18 / 0.62); /* the workspace's ink (data-ground="app") */
  --o2-overlay: rgb(14 27 18 / 0.48); /* the dim behind a dialog or the edit panel */
  --o2-switch-thumb: #FFFFFF;

  /* Fixed: the always-dark chapters, and paper that never flips */
  --o2-dusk: #0B2E20;           /* deep forest-green, between the old green-black and forest */
  --o2-dusk-raised: #123727;
  --o2-on-dusk: #F1F6F2;
  --o2-on-dusk-2: rgb(241 246 242 / 0.86);  /* leads and links on dusk and over photographs */
  --o2-on-dusk-3: rgb(241 246 242 / 0.66);   /* quiet lines in the footer */
  --o2-on-dusk-4: rgb(241 246 242 / 0.62);  /* the footer's column heads and base line */
  --o2-on-dusk-hover: rgb(241 246 242 / 0.12);
  --o2-paper-fixed: #F7F2E7;
  --o2-paper-hover: #FFFFFF;
  --o2-ink-fixed: #0E1B12;

  /* Ogenso green: the brand, the one action that moves a quote forward, and what has been sent */
  --o2-green: #0E793E;
  --o2-green-action: #0E793E;  /* Send in the product */
  --o2-green-hover: #0E5E30;
  --o2-green-text: #0C6E39;     /* green words: 5.6:1 on paper, 4.9:1 on the done tint */
  --o2-green-tint: rgb(14 121 62 / 0.1);
  --o2-glow: #51E889;          /* done, and only done */
  --o2-leaf: #58A061;          /* the found green in drawings */
  --o2-on-green: #FFFFFF;
  --o2-orb: #0E793E;           /* fixed: the core of the one primary button */
  --o2-on-orb: #FFFFFF;
  --o2-stop: #58A061;          /* the brand's full stop: leaf on paper */

  /* The reply in the business's name: one light green bubble everywhere, ink words; a draft has a dashed edge */
  --o2-reply-bg: #ECF4F0;              /* 8% green-action on white */
  --o2-reply-edge: rgb(14 121 62 / 0.22);
  --o2-reply-draft-edge: rgb(14 121 62 / 0.55);

  /* Forest: Ogenso's one deliberate brand place (fixed) */
  --o2-forest: #06452A;
  --o2-on-forest: #F1F6F2;
  --o2-on-forest-muted: #B9D3BE;
  --o2-stop-on-forest: #9DC28F;

  /* The open ring: ground texture, clock and loader */
  --o2-ring-ink: #F0F6EE;      /* fixed: reverse logo ink on forest and dusk */
  --o2-ring-faint: #06452A;    /* faint forest on paper */
  --o2-ring-faint-o: 0.12;
  --o2-logo-ink: #06452A;
  --o2-logo-core: #58A061;

  /* A person's move: orange is only ever this */
  --o2-move: #F26A21;
  --o2-move-bg: #FFF1E6;
  --o2-move-text: #9A3A06;
  --o2-move-halo: rgb(242 106 33 / 0.2);
  --o2-move-line: rgb(242 106 33 / 0.45);

  /* Something that went wrong */
  --o2-danger: #B42318;
  --o2-danger-text: #B42318;
  --o2-danger-bg: #FDECEA;
  --o2-on-danger: #FFFFFF;

  /* Time of day */
  --o2-sun: #E58A2F;
  --o2-moon: #5F82D1;
  --o2-bulb: #FFD58A;

  /* Avatars, from the customer's name; never meaning, and never on icons, tiles or charts */
  --o2-av-1: #9F53CA; --o2-av-2: #2F6EEB; --o2-av-3: #C25031; --o2-av-4: #9F6A17; --o2-av-5: #2D8177; /* white initials at 4.6:1 or more */

  /* Drawings: forest line, lit from the top right */
  --o2-iso-line: #06452A;
  --o2-iso-top: #FFFFFF;
  --o2-iso-lit: #F4F0E6;
  --o2-iso-shade: #E4DDCE;
  --o2-iso-roof: #ECE5D7;
  --o2-iso-roof-2: #F7F2E7;
  --o2-iso-wood: #E5DAC7;
  --o2-iso-glass: #DCE7EE;
  --o2-iso-shadow: rgb(14 27 18 / 0.07);

  /* Type: Satoshi for every word, Funnel Display for money */
  --o2-font: "Satoshi", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --o2-font-figure: "Funnel Display", "Satoshi", system-ui, sans-serif; /* money and figures only */
  --o2-font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --o2-t-display: clamp(40px, 5vw, 64px);   /* the close headline */
  --o2-t-h1: clamp(32px, 3.4vw, 48px);
  --o2-t-h2: clamp(30px, 3.3vw, 46px);
  --o2-t-h3: 30px;                          /* tile titles over photographs */
  --o2-t-h4: 20px;                          /* cell and card titles */
  --o2-t-row: clamp(24px, 2.4vw, 30px);     /* words beside an object */
  --o2-t-lead: clamp(16px, 1.32vw, 19px);
  --o2-t-read: 16.5px;                      /* rows, prose, the close line */
  --o2-t-body: 16px;
  --o2-t-cell: 15px;                        /* lines in cells, cards and rails */
  --o2-t-small: 14px;
  --o2-t-label: 13.5px;                     /* eyebrows, captions on the site */
  --o2-t-ui: 13px;                          /* inside pictures of the product, and bezels */
  --o2-t-caption: 12px;
  --o2-t-micro: 11px;
  --o2-tracking-display: -0.03em;
  --o2-tracking-head: -0.025em;
  /* The owner's workspace from 768px */
  --o2-t-app-title: 22px;    /* the page title, 700 */
  --o2-t-app-record: 19px;   /* an open enquiry's title, 700 */
  --o2-t-app-panel: 14.5px;  /* panel and section titles, 500 */
  --o2-t-app-body: 14px;     /* words, rows and values */
  --o2-t-app-meta: 13px;     /* subtitles and meta */
  --o2-t-app-caption: 12px;  /* side counts, group labels, figure labels */
  --o2-t-app-figure: 22px;   /* figure tiles, Funnel Display 300 */

  /* Space: a 4px grid */
  --o2-s-1: 4px; --o2-s-2: 8px; --o2-s-3: 12px; --o2-s-4: 16px; --o2-s-5: 20px; --o2-s-6: 24px; --o2-s-7: 28px; --o2-s-8: 32px; --o2-s-10: 40px; --o2-s-12: 48px; --o2-s-16: 64px; --o2-s-24: 96px; --o2-s-32: 128px;
  --o2-section: clamp(96px, 11vw, 136px);      /* between sections */
  --o2-section-near: clamp(48px, 6vw, 72px);   /* a section that continues the one above */
  --o2-hero-top: clamp(40px, 6vw, 88px);       /* the header to a hero's eyebrow */
  --o2-head-gap: clamp(32px, 4vw, 48px);       /* a section head to its content */
  --o2-col-gap: clamp(48px, 6vw, 96px);        /* two columns apart */
  --o2-col-gap-tight: clamp(32px, 6vw, 96px);  /* a sticky head beside its list */
  --o2-chapter-top: clamp(80px, 11vw, 132px);  /* a dusk chapter's padding */
  --o2-chapter-bottom: clamp(64px, 8vw, 100px);
  --o2-cell-pad: 32px 28px 36px;               /* a framed cell */
  --o2-cell-pad-sm: 24px 24px 28px;            /* a framed cell on a phone */
  --o2-max: 1240px;
  --o2-gutter: 32px;
  --o2-nav-h: 68px;                            /* the header bar; 60px at 640 and under */
  --o2-sticky-top: 96px;                       /* sticky heads and columns */
  --o2-anchor-gap: 96px;                       /* where an anchor lands under the header */
  --o2-card-max: 420px;                        /* a card inside a photo tile */
  --o2-box-max: 560px;                         /* the website box */
  --o2-toc-w: 220px;                           /* "On this page" beside prose */
  --o2-measure-prose: 42em;
  --o2-node: 20px;                             /* the ring on a thread */
  --o2-node-ic: 32px;                          /* a step ring with its own icon */
  --o2-thread-w: 1.5px;
  --o2-thread-o: 0.35;
  /* The app window */
  --o2-rail-w: 56px;          /* the rail of sections: icons only */
  --o2-side-w: 232px;         /* the section's side: groups, pages and their counts */
  --o2-list-w: 300px;         /* the enquiry list beside an open enquiry, from 1280px */
  --o2-aside-w: 360px;        /* a record's side column */
  --o2-content-max: 1200px;
  --o2-thread-max: 1160px;    /* an open enquiry */
  --o2-settings-max: 880px;   /* settings and forms: one column, centred */
  --o2-reading-max: 560px;
  --o2-enquiry-max: 640px;    /* the customer's quote page */
  --o2-edit-w: 480px;         /* the edit panel; 640px when wide */
  --o2-edit-w-wide: 640px;
  --o2-control-sm: 32px; --o2-control-md: 40px; --o2-control-lg: 46px; --o2-control-xl: 56px;
  --o2-control-app-xs: 26px; --o2-control-app-sm: 30px; --o2-control-app-md: 34px; --o2-control-app-lg: 38px; /* the workspace from 768px */
  /* Breakpoints (CSS can't read a custom property in a media query, so these are the agreed values):
     359 the narrowest phones · 480 · 560 the website box wraps · 640/641 phones · 768 the app's rail · 900/901 the header beside
     a hero's box · 960/961 the site's columns · 1024 the app's side · 1100 · 1180 four across · 1280 the app's list pane */

  /* Radius: by role, growing with importance */
  --o2-r-tag: 5px;
  --o2-r-control: 8px;      /* buttons, inputs, segmented controls */
  --o2-r-icon: 10px;        /* icon boxes, the menu button */
  --o2-r-window: 10px;      /* app windows, panels in the app, quote cards */
  --o2-r-box: 12px;         /* the website box, the header pill, toasts */
  --o2-r-card: 14px;        /* frames, tiles, cards, photo frames */
  --o2-r-panel: 16px;       /* large panels, the forest greeting */
  --o2-r-slip: 16px;        /* the quote slip; a bezel adds its rim */
  --o2-r-menu: 22px;        /* menus and sheets */
  --o2-r-feature: 24px;     /* the close card and forest cards; 20px on phones */
  --o2-r-pill: 999px;

  /* Elevation. Resting things are flat: a hairline, or a flat offset on paper. Only floating layers (the docked bar, the edit
     panel, a tip, a menu, a toast, a window over a photograph) take a soft shadow. */
  --o2-e-hair: 0 0 0 1px rgb(14 27 18 / 0.06);
  --o2-e-1: 0 1px 2px rgb(14 27 18 / 0.08);
  --o2-e-tile: 0 1px 2px rgb(14 27 18 / 0.06);           /* the app's icon tile and current item */
  --o2-e-flat: 0 0 0 1px rgb(14 27 18 / 0.08), 0 3px 0 rgb(14 27 18 / 0.06);
  --o2-e-flat-sm: inset 0 0 0 1px rgb(14 27 18 / 0.1), 0 3px 0 rgb(14 27 18 / 0.05); /* the website box, the New chip */
  --o2-e-flat-lg: 0 0 0 1px rgb(14 27 18 / 0.08), 0 6px 0 -1px rgb(14 27 18 / 0.07);
  --o2-e-drop: drop-shadow(0 3px 0 rgb(14 27 18 / 0.07));  /* a filter: the flat offset under a notched slip */
  --o2-e-on-forest: 0 6px 0 -1px rgb(0 0 0 / 0.18);        /* the website box on forest */
  --o2-e-2: 0 10px 30px -12px rgb(14 27 18 / 0.25);        /* toasts */
  --o2-e-3: 0 24px 60px -24px rgb(14 27 18 / 0.28);        /* menus, sheets */
  --o2-e-bar: 0 10px 30px -14px rgb(14 27 18 / 0.35);      /* the docked action bar */
  --o2-e-sheet: -24px 0 60px -30px rgb(14 27 18 / 0.35);   /* the edit panel, from the right */
  --o2-e-tip: 0 8px 24px -8px rgb(14 27 18 / 0.35);        /* the (i) tip, tooltips */
  --o2-e-window: 0 40px 120px -30px rgb(14 27 18 / 0.45);

  /* Glass: light for menus, dark for the story's channel tabs */
  --o2-glass-light-bg: rgba(255, 253, 248, 0.8);
  --o2-glass-light-blur: blur(24px) saturate(1.3);
  --o2-glass-light-edge: rgba(255, 255, 255, 0.6);
  --o2-glass-dark-bg: rgb(11 46 32 / 0.78);
  --o2-glass-dark-blur: blur(24px) saturate(1.3);
  --o2-glass-dark-edge: rgb(241 246 242 / 0.14);

  /* The bezel: FDS glass for cards and slips on a photograph */
  --o2-bezel-core: #FFFFFF;
  --o2-bezel-rim: rgba(255, 255, 255, 0.42);
  --o2-bezel-rim-edge: rgba(255, 255, 255, 0.78);
  --o2-bezel-hair: rgb(14 27 18 / 0.1);
  --o2-bezel-core-edge: rgb(14 27 18 / 0.06);
  --o2-bezel-drop: 0 8px 0 -2px rgb(14 27 18 / 0.08);
  --o2-art-tag-bg: #FFFFFF;

  /* Photography: one grade for every photo, then grain */
  --o2-grade: saturate(0.9) contrast(1.04) sepia(0.06);
  --o2-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23s)'/%3E%3C/svg%3E");
  --o2-grain-opacity: 0.55;
  --o2-shade-top: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.2) 45%, rgba(0, 0, 0, 0) 75%);
  --o2-shade-bottom: linear-gradient(to top, rgb(10 20 13 / 0.72) 0%, rgb(10 20 13 / 0.25) 34%, rgb(10 20 13 / 0) 55%);
  /* The photo hero: a fade under the clear header, a deep fade from the bottom and a light one from the left */
  --o2-shade-hero: linear-gradient(rgb(10 20 13 / 0.5), rgb(10 20 13 / 0) 24%), linear-gradient(to top, rgb(10 20 13 / 0.8) 0%, rgb(10 20 13 / 0.45) 38%, rgb(10 20 13 / 0) 72%), linear-gradient(90deg, rgb(10 20 13 / 0.4), rgb(10 20 13 / 0) 60%);
  --o2-shade-dusk: rgb(11 46 32 / 0.34);   /* a dusk wash over a photograph (the AI engine page, /ai-engine) */
  /* Fine grain for the forest field (FDS, 180px tile, laid in overlay) */
  --o2-grain-fine: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  --o2-grain-fine-o: 0.16;   /* on forest */
  --o2-grain-dusk-o: 0.1;    /* on the AI engine page's dusk sheet (/ai-engine) only */

  /* Motion */
  --o2-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --o2-spring: cubic-bezier(0.3, 1.4, 0.5, 1); /* FDS landing curve, for the orb */
  --o2-fast: 150ms; --o2-med: 250ms; --o2-slow: 400ms;
  --o2-stagger: 60ms;        /* reveal: each item after the one before, six at most to a group */
  --o2-rise: 16px;           /* reveal: how far a block rises */
  --o2-draw: 600ms;          /* a thread grows across, all its segments together */
  --o2-trace: 1.1s;          /* an iso drawing traces its lines */
  --o2-trace-fill: 0.85s;    /* then its fills fade in after */
  --o2-ledger-delay: 300ms;  /* a record line fills in word by word */
  --o2-ledger-step: 280ms;
  --o2-turn-max: 8deg;       /* the close card's rings turn with the scroll, -4° to +4° */
  --o2-breathe: 2.4s;        /* the one breathing ring */
  --o2-sheet-in: 180ms;      /* the edit panel slides 24px in */
  --o2-tip-in: 120ms;        /* the (i) tip fades and rises 2px */

  color-scheme: light;
}
@media (max-width: 640px) { :root { --o2-gutter: 16px; --o2-nav-h: 60px; --o2-r-feature: 20px; } }

/* Night: neutral charcoal, the viewer's preference, everywhere. Green, the forest greeting, the orange move and the signs
   keep their colours. Literal values only. */
[data-theme="night"] {
  --o2-ground-read: #111213;
  --o2-ground-frame: #141516;
  --o2-ground-pane: #1A1B1D;
  --o2-bg: #111213;
  --o2-bg-sunken: #0C0D0E;
  --o2-surface: #1A1B1D;
  --o2-surface-raised: #212225;
  --o2-fill: rgb(236 237 239 / 0.04);
  --o2-fill-strong: rgb(236 237 239 / 0.08);
  --o2-line: rgb(236 237 239 / 0.1);
  --o2-line-soft: rgb(236 237 239 / 0.06);
  --o2-ink: #ECEDEF;
  --o2-ink-2: rgb(236 237 239 / 0.82);
  --o2-ink-3: rgb(236 237 239 / 0.68);
  --o2-ink-4: rgb(236 237 239 / 0.56);
  --o2-inverse: #F7F7F6;
  --o2-on-inverse: #111213;
  --o2-window-bg: #141516;
  --o2-tile-bg: #212225;
  --o2-focus: #6BEA9F;
  --o2-ink-2-app: rgb(236 237 239 / 0.86); --o2-ink-3-app: rgb(236 237 239 / 0.72); --o2-ink-4-app: rgb(236 237 239 / 0.58);
  --o2-overlay: rgb(0 0 0 / 0.64);
  --o2-switch-thumb: #E4E5E7;
  --o2-green-text: #6BEA9F;
  --o2-green-tint: rgb(107 234 159 / 0.12);
  --o2-stop: #9DC28F;
  --o2-reply-bg: #19231F;
  --o2-reply-edge: rgb(107 234 159 / 0.2);
  --o2-reply-draft-edge: rgb(107 234 159 / 0.5);
  --o2-ring-faint: #F0F6EE;
  --o2-ring-faint-o: 0.07;
  --o2-logo-ink: #F0F6EE;
  --o2-logo-core: #9DC28F;
  --o2-move-bg: #2A1608;
  --o2-move-text: #FFA36B;
  --o2-danger: #FF8E84;
  --o2-danger-text: #FF8E84;
  --o2-danger-bg: #2E100E;
  --o2-on-danger: #2A0703;
  /* Drawings: the charcoal set, the same forest-light line */
  --o2-iso-line: #B9D3BE;
  --o2-iso-top: #212225;
  --o2-iso-lit: #1C1D1F;
  --o2-iso-shade: #151618;
  --o2-iso-roof: #1A1B1D;
  --o2-iso-roof-2: #26272A;
  --o2-iso-wood: #2F2D2A;
  --o2-iso-glass: #232A30;
  --o2-iso-shadow: rgb(0 0 0 / 0.3);
  --o2-e-hair: 0 0 0 1px rgb(236 237 239 / 0.06);
  --o2-e-1: 0 1px 2px rgb(0 0 0 / 0.4);
  --o2-e-tile: 0 1px 2px rgb(0 0 0 / 0.35);
  --o2-e-flat: 0 0 0 1px rgb(236 237 239 / 0.08), 0 3px 0 rgb(0 0 0 / 0.4);
  --o2-e-flat-sm: inset 0 0 0 1px rgb(236 237 239 / 0.1), 0 3px 0 rgb(0 0 0 / 0.3);
  --o2-e-flat-lg: 0 0 0 1px rgb(236 237 239 / 0.08), 0 6px 0 -1px rgb(0 0 0 / 0.4);
  --o2-e-drop: drop-shadow(0 3px 0 rgb(0 0 0 / 0.4));
  --o2-e-2: 0 10px 30px -12px rgb(0 0 0 / 0.6);
  --o2-e-3: 0 24px 60px -24px rgb(0 0 0 / 0.65);
  --o2-e-bar: 0 10px 30px -14px rgb(0 0 0 / 0.7);
  --o2-e-sheet: -24px 0 60px -30px rgb(0 0 0 / 0.7);
  --o2-e-tip: 0 8px 24px -8px rgb(0 0 0 / 0.6);
  --o2-e-window: 0 40px 120px -30px rgba(0, 0, 0, 0.8);
  --o2-bezel-core: rgba(12, 13, 14, 0.64);
  --o2-bezel-rim: rgba(255, 255, 255, 0.07);
  --o2-bezel-rim-edge: rgba(255, 255, 255, 0.14);
  --o2-bezel-hair: rgba(0, 0, 0, 0.45);
  --o2-bezel-core-edge: rgba(255, 255, 255, 0.07);
  --o2-bezel-drop: 0 8px 0 -2px rgba(0, 0, 0, 0.5);
  --o2-art-tag-bg: rgba(12, 13, 14, 0.62);
  color-scheme: dark;
}

/* Dusk: Ogenso's deep forest-green, fixed: between the old green-black and forest, so it sits with the forest close card. Only the website's always-dark chapters (the home page's facts band and story, each selling
   page's dark chapter, the dusk hero), the AI engine page's dusk sheet (/ai-engine) and the footer. Never the app, never a viewer's preference. */
[data-theme="dusk"] {
  --o2-ground-read: #0B2E20;
  --o2-ground-frame: #0F3224;
  --o2-ground-pane: #123727;
  --o2-bg: #0B2E20;
  --o2-bg-sunken: #07271B;
  --o2-surface: #123727;
  --o2-surface-raised: #19402F;
  --o2-fill: rgb(241 246 242 / 0.04);
  --o2-fill-strong: rgb(241 246 242 / 0.08);
  --o2-line: rgb(241 246 242 / 0.1);
  --o2-line-soft: rgb(241 246 242 / 0.06);
  --o2-ink: #F1F6F2;
  --o2-ink-2: rgb(241 246 242 / 0.82);
  --o2-ink-3: rgb(241 246 242 / 0.68);
  --o2-ink-4: rgb(241 246 242 / 0.6);
  --o2-inverse: #F7F2E7;
  --o2-on-inverse: #0E1B12;
  --o2-window-bg: #0F3224;
  --o2-tile-bg: #19402F;
  --o2-focus: #6BEA9F;
  --o2-ink-2-app: rgb(241 246 242 / 0.82); --o2-ink-3-app: rgb(241 246 242 / 0.68); --o2-ink-4-app: rgb(241 246 242 / 0.6);
  --o2-overlay: rgb(0 0 0 / 0.64);
  --o2-switch-thumb: #E4E9E5;
  --o2-green-text: #6BEA9F;
  --o2-green-tint: rgb(107 234 159 / 0.12);
  --o2-stop: #9DC28F;
  --o2-reply-bg: #113E2A;
  --o2-reply-edge: rgb(107 234 159 / 0.2);
  --o2-reply-draft-edge: rgb(107 234 159 / 0.5);
  --o2-ring-faint: #F0F6EE;
  --o2-ring-faint-o: 0.07;
  --o2-logo-ink: #F0F6EE;
  --o2-logo-core: #9DC28F;
  --o2-move-bg: #2A1608;
  --o2-move-text: #FFA36B;
  --o2-danger: #FF8E84;
  --o2-danger-text: #FF8E84;
  --o2-danger-bg: #2E100E;
  --o2-on-danger: #2A0703;
  --o2-iso-line: #B9D3BE;
  --o2-iso-top: #19402F;
  --o2-iso-lit: #153A2A;
  --o2-iso-shade: #0F3325;
  --o2-iso-roof: #123727;
  --o2-iso-roof-2: #1C4433;
  --o2-iso-wood: #2B4E3A;
  --o2-iso-glass: #21494A;
  --o2-iso-shadow: rgb(2 18 11 / 0.3);
  --o2-e-hair: 0 0 0 1px rgb(241 246 242 / 0.06);
  --o2-e-1: 0 1px 2px rgb(2 18 11 / 0.4);
  --o2-e-tile: 0 1px 2px rgb(2 18 11 / 0.35);
  --o2-e-flat: 0 0 0 1px rgb(241 246 242 / 0.08), 0 3px 0 rgb(2 18 11 / 0.4);
  --o2-e-flat-sm: inset 0 0 0 1px rgb(241 246 242 / 0.1), 0 3px 0 rgb(2 18 11 / 0.3);
  --o2-e-flat-lg: 0 0 0 1px rgb(241 246 242 / 0.08), 0 6px 0 -1px rgb(2 18 11 / 0.4);
  --o2-e-drop: drop-shadow(0 3px 0 rgb(2 18 11 / 0.4));
  --o2-e-2: 0 10px 30px -12px rgb(2 18 11 / 0.6);
  --o2-e-3: 0 24px 60px -24px rgb(2 18 11 / 0.65);
  --o2-e-bar: 0 10px 30px -14px rgb(2 18 11 / 0.7);
  --o2-e-sheet: -24px 0 60px -30px rgb(2 18 11 / 0.7);
  --o2-e-tip: 0 8px 24px -8px rgb(2 18 11 / 0.6);
  --o2-e-window: 0 40px 120px -30px rgba(2, 18, 11, 0.8);
  --o2-bezel-core: rgba(6, 28, 19, 0.64);
  --o2-bezel-rim: rgba(255, 255, 255, 0.07);
  --o2-bezel-rim-edge: rgba(255, 255, 255, 0.14);
  --o2-bezel-hair: rgba(0, 0, 0, 0.45);
  --o2-bezel-core-edge: rgba(255, 255, 255, 0.07);
  --o2-bezel-drop: 0 8px 0 -2px rgba(0, 0, 0, 0.5);
  --o2-art-tag-bg: rgba(6, 28, 19, 0.62);
  color-scheme: dark;
}

/* The owner's workspace (data-ground="app" on the app frame): the app window's grounds, and darker secondary ink for long
   working sessions. ink-4 stays at 62% on Paper, so the faintest words keep 4.5:1 on white, the frame and linen. */
/* Read from the nearest theme, so a Paper frame inside a Night page (or the reverse) gets its own theme's values */
[data-ground="app"] { --o2-bg: var(--o2-ground-frame); --o2-ink-2: var(--o2-ink-2-app); --o2-ink-3: var(--o2-ink-3-app); --o2-ink-4: var(--o2-ink-4-app); }
