/* CDAN UI kit for the web (web/ui; user, 24 Oct 2026: "Lots of the buttons have visual issues, can we actually start
 * having standardised reusable UI"). The one place the controls are drawn: every window makes its buttons, pop-ups,
 * fields, check boxes, lists, tabs, alerts, progress bars and the watch through window.CUI (ui.js), which puts these
 * classes on them. The Tab5's toolkit, mac/cdanui (SPEC-cdanui-v2.md), is the model: the same System 7 look and,
 * where they fit, the same names.
 *
 * Everything is in Mac pixels, calc(N * var(--px)), and --px is a whole number of device pixels (app.js applyScale),
 * so every edge is sharp. Rounded controls are pixel art drawn as flat background rectangles placed from the nearest
 * edge (tools/ui_shapes.py writes them, below): the corners are the same at any width, nothing is a scaled picture.
 * No rule here needs a style attribute or an inline script (the page's Content-Security-Policy). The ES5 build
 * (legacy-build) writes every custom property out for the oldest TV browsers, so a state never relies on changing
 * one: each state's look is spelled out. Labels are never underlined; only a real link is (cui-link, a[href]). */

/* ---- the design tokens (SPEC-design-system.md, #327): every colour, size and space the kit draws with ------------
 * One Mac pixel is --px (style.css, snapped by app.js). Spaces step 2, 4, 6, 8, 12, 16, 24 Mac pixels. A window, an app
 * or a test reads these names; no rule writes a number the token already says. The ES5 build writes them out (each
 * token's first value), so a token is never redefined per state, only per device below. The fonts are style.css's
 * (--chicago, --geneva, --monaco), the only place a font file is named. */
:root {
  /* colour: System 7's black and white, its greys, and its eight colours for the few places colour means something */
  --cui-ink: #000; --cui-paper: #fff; --cui-dim: #888; --cui-quiet: #444; --cui-rule: #aaa; --cui-faint: #ddd;
  --cui-track: #ccc; --cui-desk: #777; --cui-desk-2: #999;   /* the desktop's grey pattern, its two greys (style.css --desk-a/-b) */
  /* #776 themes (themes.json): the fill of anything chosen and its words (System 7 inverts: ink and paper), the text a
     person selects (the browser's own in Platinum's Light, the chosen colours in any other), and the one hard shadow under windows, menus and alerts */
  --cui-hilite: var(--cui-ink); --cui-hilite-ink: var(--cui-paper); --cui-select: var(--cui-hilite); --cui-select-ink: var(--cui-hilite-ink);
  --cui-shadow-ink: var(--cui-ink);
  /* #776 slice 2: each part of the OS a theme may colour on its own (themes.json parts), Platinum's ink and paper
     unless a theme says: a window's ground, the menus', the scroll box, an icon's lines and inside, and chat's two sides */
  --cui-win-paper: var(--cui-paper); --cui-menu-paper: var(--cui-paper); --cui-menu-ink: var(--cui-ink);
  --cui-scroll-thumb: var(--cui-paper); --cui-icon-ink: var(--cui-ink); --cui-icon-paper: var(--cui-paper);
  --cui-chat-mine: var(--cui-ink); --cui-chat-mine-ink: var(--cui-paper); --cui-chat-his: var(--cui-paper); --cui-chat-his-ink: var(--cui-ink);
  /* #776: a 1-bit glyph (glyphs/*.svg) as drawn, on a chosen row or item (--cui-hilite) and on a pressed or latched
     control (inverted, ink). A theme points these at the kit's own filters, made from its colours (CUI.theme), so every
     glyph follows the theme with no app drawing one again; Platinum draws a glyph as it is and inverts it on either */
  --cui-glyph: none; --cui-glyph-on: invert(1); --cui-glyph-inv: invert(1);
  --cui-red: #dd0806; --cui-orange: #ff6403; --cui-yellow: #fcf305; --cui-green: #1fb714; --cui-blue: #0000d4;
  /* #1819: the rest of System 7's label colours (CUI.TINTS), for a kind of thing told apart by colour, as Oscar's actions */
  --cui-cyan: #02abea; --cui-magenta: #f20884; --cui-purple: #4700a5; --cui-brown: #90713a;
  --cui-near: #ffc864; --cui-full: #ff6b5e; --cui-warn-tint: #fff4d6; --cui-error-tint: #ffe0dc;
  --cui-temp: #ffec80; --cui-temp-line: #d9a400;      /* #2074: a temporary file's yellow and its stripes */
  /* a line a change adds (its removed line is --cui-error-tint), and a note pinned to a line (Studio's diffs) */
  --cui-ok-tint: #dff5d8; --cui-note-tint: #ffffcc;
  /* a line a change updates (#414, CUI.diff's ~ rows, under --cui-blue) */
  --cui-change-tint: #e3e6fb;
  /* CUI.diff's marks (#414): + added, ~ updated, - removed, unchanged */
  --cui-diff-add: var(--cui-green); --cui-diff-upd: var(--cui-orange); --cui-diff-del: var(--cui-red); --cui-diff-same: var(--cui-dim);
  --cui-diff-chg: #ffd28a;
  /* Rainbow (#380): Oscar's magic, a colour choice like the others; the old Apple's six colours, as Present's Six Colours */
  --cui-rainbow-1: #61bb46; --cui-rainbow-2: #fdb827; --cui-rainbow-3: #f5821f; --cui-rainbow-4: #e03a3e;
  --cui-rainbow-5: #963d97; --cui-rainbow-6: #009ddc;
  --cui-rainbow: linear-gradient(90deg, #61bb46 0%, #fdb827 20%, #f5821f 40%, #e03a3e 60%, #963d97 80%, #009ddc 100%);
  /* #1828: a row or menu item with news: the paper over its rainbow so words read, and its slower pace */
  --cui-news-wash: rgba(255, 255, 255, .55); --cui-news-time: 16s;
  /* #1390: the top of Oscar's emails (richmail.rainbow_bar): the six colours as six equal bands, not blended */
  --cui-topband: linear-gradient(90deg, var(--cui-rainbow-1) 0 16.67%, var(--cui-rainbow-2) 16.67% 33.33%, var(--cui-rainbow-3) 33.33% 50%, var(--cui-rainbow-4) 50% 66.67%, var(--cui-rainbow-5) 66.67% 83.33%, var(--cui-rainbow-6) 83.33%);
  --cui-secure: #e34d03; --cui-secure-tint: #ffe9de; --cui-secure-wash: rgba(227, 77, 3, .16);
  --cui-soft: #1f5fd6; --cui-soft-tint: #e6eeff;
  /* #1892 the schemes (ui.js SCHEMES): Dreams deep blue with moonlight for its moon and stars, its quieter words and
     its lines; Memory yellow (#949: "memory history ... should be yellow with dream history deep blue") and its tint */
  --cui-dream: #0b1a5c; --cui-dream-ink: #fff; --cui-dream-quiet: #c3cdf2; --cui-dream-rule: #4a5a9e; --cui-dream-glow: #fff2b8;
  --cui-memory: #fcf305; --cui-memory-tint: #fff9c4;
  /* #1922: what a person quoted in a message: blue on paper, and a blue that reads on the ink of an inverted message */
  --cui-quote: var(--cui-blue); --cui-quote-on-ink: #8fb4ff;
  --cui-secure-mark: #ff8c00; --cui-secure-mark-wash: rgba(255, 140, 0, .14);   /* #435: the underline, plain orange */
  /* WhatsApp's own green, under a message that went that way; always with its WhatsApp tag (the Tab5's Messages) */
  --cui-wa-tint: #dcf8c6;
  /* WhatsApp's own green on its tag (a message's route, #1742: Messages and Oscar's channels) */
  --cui-wa: #25a244;
  /* #1973: the Oscar standard's category hues (cli/seeds/design/tokens.json category*), each with a pale tint, for a
     widget kind's theme (cdanmedia/widgetkinds.json themes); their dark values are in apps/magic/doc.css. Ink reads on
     every one, as the standard's onAccent does. */
  --cui-cat-gold: #ac8700; --cui-cat-gold-tint: #f2ecd6; --cui-cat-green: #2a9f63; --cui-cat-green-tint: #ddf0e6;
  --cui-cat-lime: #779722; --cui-cat-lime-tint: #e9eedc; --cui-cat-violet: #8e7cf0; --cui-cat-violet-tint: #edeafd;
  --cui-cat-teal: #009e8e; --cui-cat-teal-tint: #d6efed; --cui-cat-blue: #398eee; --cui-cat-blue-tint: #dfedfc;
  --cui-cat-sky: #4b93c2; --cui-cat-sky-tint: #e2eef5; --cui-cat-pink: #d96592; --cui-cat-pink-tint: #f9e6ee;
  --cui-cat-orange: #cc781c; --cui-cat-orange-tint: #f7e9db; --cui-cat-lilac: #9480cf; --cui-cat-lilac-tint: #eeebf7;
  /* a price that went up or down: the standard's success and danger, always with its arrow beside it */
  --cui-up: #1f8a4c; --cui-down: #c42b1c;
  /* the white veil over the part of a picture outside what is chosen (a film strip's trim) */
  --cui-veil: rgba(255, 255, 255, .55);
  /* the grey laid over the cells of a range chosen in a grid (Graph), with the range's frame round it */
  --cui-shade: rgba(0, 0, 0, .12);
  /* the page dimmed round the one part a tutorial is showing (#1680, apps/tutorials.css) */
  --cui-scrim: rgba(0, 0, 0, .45);
  /* type: Chicago for every control, title and menu; Geneva for text; Monaco for code; sizes in Mac pixels */
  --cui-font-ui: var(--chicago); --cui-font-text: var(--geneva); --cui-font-code: var(--monaco);
  /* #2308: every font size and line height is a type token, N Mac pixels of type: N * --tpx + --tlift. On a computer
     --tpx is the Mac pixel and --tlift nothing, so a token is N Mac pixels. On a phone (style.css and app.js; site.js
     for a Magic page) a Mac pixel is one CSS pixel and 9 of them drew labels 9 px high; there --tpx is 3/4 of a Mac
     pixel and --tlift 8, so 8 draws 14, 9 draws 14.75, 12 draws 17, 18 draws 21.5 and 32 stays 32: small words grow
     most, headings keep their order. Lines, frames and glyphs keep the whole Mac pixel. */
  --cui-type-8: calc(8 * var(--tpx, var(--px)) + var(--tlift, 0px)); --cui-type-9: calc(9 * var(--tpx, var(--px)) + var(--tlift, 0px));
  --cui-type-10: calc(10 * var(--tpx, var(--px)) + var(--tlift, 0px)); --cui-type-11: calc(11 * var(--tpx, var(--px)) + var(--tlift, 0px));
  --cui-type-12: calc(12 * var(--tpx, var(--px)) + var(--tlift, 0px)); --cui-type-13: calc(13 * var(--tpx, var(--px)) + var(--tlift, 0px));
  --cui-type-14: calc(14 * var(--tpx, var(--px)) + var(--tlift, 0px)); --cui-type-15: calc(15 * var(--tpx, var(--px)) + var(--tlift, 0px));
  --cui-type-16: calc(16 * var(--tpx, var(--px)) + var(--tlift, 0px)); --cui-type-18: calc(18 * var(--tpx, var(--px)) + var(--tlift, 0px));
  --cui-type-20: calc(20 * var(--tpx, var(--px)) + var(--tlift, 0px)); --cui-type-22: calc(22 * var(--tpx, var(--px)) + var(--tlift, 0px));
  --cui-type-24: calc(24 * var(--tpx, var(--px)) + var(--tlift, 0px)); --cui-type-28: calc(28 * var(--tpx, var(--px)) + var(--tlift, 0px));
  --cui-type-32: calc(32 * var(--tpx, var(--px)) + var(--tlift, 0px));
  --cui-text-xs: var(--cui-type-9); --cui-text-sm: var(--cui-type-10); --cui-text-md: var(--cui-type-12);
  --cui-text-lg: var(--cui-type-14); --cui-text-xl: var(--cui-type-18);
  /* space */
  --cui-space-2: calc(2 * var(--px)); --cui-space-4: calc(4 * var(--px)); --cui-space-6: calc(6 * var(--px));
  --cui-space-8: calc(8 * var(--px)); --cui-space-12: calc(12 * var(--px)); --cui-space-16: calc(16 * var(--px));
  --cui-space-24: calc(24 * var(--px));
  /* the spacing rules: between controls in a row, under a button or a row of them (#326), round a window's content */
  --cui-gap-row: calc(6 * var(--px)); --cui-space-under: calc(6 * var(--px)); --cui-bar-pad: calc(3 * var(--px)); --cui-pad-win: calc(8 * var(--px)) calc(10 * var(--px));
  /* sizes: glyphs, controls */
  --cui-icon-sm: calc(12 * var(--px)); --cui-icon: calc(16 * var(--px)); --cui-icon-lg: calc(32 * var(--px));
  /* #612, #2423: a spinner beside words is half as big again as them, never under its own size. A type token adds the
     phone's lift (12 draws 17, 18 only 21.5), so no type token is a fixed multiple of another: these hold the multiple
     of the words' own size (1.5em, taken where they are used). In place of words, Oscar's thinking spinner: the 18 token
     on a computer (1.5 of his 12), on a phone 1.5 of his words. Beside a status line (#1357): the icon's size on a
     computer, on a phone 1.5 of the status's words. */
  --cui-spool-words: max(var(--cui-type-18), 1.5em); --cui-spool-status: max(var(--cui-icon), 1.5em);
  /* #1901 (Lloyd, 9 Nov 2026: "make the scroll bars thinner"): the scroll bar as drawn on a computer and on a phone,
     and on a touch screen the strip a press on it takes, a finger's width round the thinner bar */
  --cui-scrollbar: calc(11 * var(--px)); --cui-scrollbar-touch: calc(16 * var(--px));
  --cui-scrollbar-phone: calc(6 * var(--px)); --cui-scrollbar-phone-touch: calc(10 * var(--px));
  /* #536: a glyph is drawn only at a whole multiple of its own 16 x 16 pixels; in a small slot (12) it is drawn at 16
     and pulled in 2 on every side, so it takes 12 and its clear edge overlaps (shrunk to 12 it lost rows: rough) */
  --cui-icon-sm-inset: calc(-2 * var(--px));
  --cui-control-h: calc(20 * var(--px)); --cui-control-h-sm: calc(16 * var(--px)); --cui-control-h-lg: calc(28 * var(--px));
  /* #2308: the least a finger presses on a phone, both ways (html.dev-phone below) */
  --cui-touch: calc(44 * var(--px));
  --cui-field-h: calc(22 * var(--px)); --cui-row-h: calc(22 * var(--px));
  /* lines, corners and shadows: one Mac pixel, square or the button's pixel-art round rect, one hard shadow */
  --cui-line: var(--px); --cui-radius: 0; --cui-radius-tag: calc(3 * var(--px)); --cui-radius-bubble: calc(6 * var(--px));
  --cui-shadow: var(--px) var(--px) 0 var(--cui-shadow-ink); --cui-focus: var(--px) dotted var(--cui-ink);
  /* ---- Oscar Platinum (#2667; Lloyd, 15 Nov 2026: "all current and future work to implement this new UI mockup design
     from a central framework"): the look html.cui-os draws every kit component in, the Oscar Platinum canvas's. One
     token set: these are its day values; its night ones are the Oscar Platinum theme's dark set (cdanmedia/themes.json),
     which the kit's theme code puts on the root like any theme's, so every component follows with nothing of its own.
     Sizes are in design pixels (the token cui-os-u): one CSS px on a computer, 1.3 on a phone or tablet. Nothing here
     changes how the System 7 look draws: only rules under html.cui-os read these. */
  --cui-os-ink: #231e1b; --cui-os-quiet: #605954; --cui-os-faint: #a9a49e; --cui-os-menu-ink: #4a423d;
  --cui-os-desk: #f3ece1; --cui-os-desk-2: #e8dfd1; --cui-os-desk-dot: rgba(35, 30, 27, .1);
  --cui-os-win: #fbf8f3; --cui-os-card: #ffffff; --cui-os-side: #f2ece2; --cui-os-bar: #fffdf9;
  --cui-os-line: #ece6dc; --cui-os-edge: #d8d2c8; --cui-os-hover: #e6e1d8; --cui-os-shade: rgba(35, 30, 27, .5); --cui-os-tile-shade: rgba(35, 30, 27, .22);
  --cui-os-dark: #231e1b; --cui-os-dark-ink: #fffdf9; --cui-os-coral: #ff6b6b; --cui-os-coral-ink: #121212;
  /* the title strip's three square buttons: their fills, their dark edge and their thin white glyphs */
  --cui-os-close: #e03a3e; --cui-os-min: #3fae49; --cui-os-size: #0b8fd0; --cui-os-tbb-edge: #000000; --cui-os-tbb-glyph: #ffffff;
  /* the six soft tints an app tile, a card or a chip sits on, in rainbow order */
  --cui-os-tint-1: #e6f4e2; --cui-os-tint-2: #fff3d6; --cui-os-tint-3: #ffe9d6; --cui-os-tint-4: #ffe6e5;
  --cui-os-tint-5: #f1e4f1; --cui-os-tint-6: #e1f2fa;
  /* status chips: working, waiting, done, failed, queued; each a ground, its words and its dot */
  --cui-os-work: #e1f2fa; --cui-os-work-ink: #0b5f86; --cui-os-helper-head: #9fd6ef; --cui-os-work-dot: #009ddc;
  --cui-os-wait: #fff3d6; --cui-os-wait-ink: #8d5e02; --cui-os-amber: #d99a0b; --cui-os-wait-dot: #fdb827;
  --cui-os-done: #e6f4e2; --cui-os-done-ink: #137d41; --cui-os-done-dot: #2eb45c;
  --cui-os-fail: #ffe6e5; --cui-os-fail-ink: #ba0c09; --cui-os-fail-dot: #e03a3e;
  --cui-os-queued: #efeae2; --cui-os-queued-ink: #605954; --cui-os-queued-dot: #a9a49e;
  /* a feature the edition, licence, mode or plan limits (CUI.features): its chip, and how far an unavailable one fades */
  --cui-os-limit: #fff3d6; --cui-os-limit-ink: #8d5e02;
  /* slice 5, the controls as the canvas draws them: a switch's green when on and its knob, the soft track segments and
     tabs sit in and the lift of the chosen one, a running bar's light stripe, and the veil behind a dialog */
  --cui-os-on: #3fae49; --cui-os-knob: #ffffff; --cui-os-track: #efeae2;
  --cui-os-lift: 0 var(--cui-os-u) calc(3 * var(--cui-os-u)) rgba(35, 30, 27, .2);
  --cui-os-run: #66c4ea; --cui-os-scrim: rgba(35, 30, 27, .18);
  --cui-os-u: var(--cui-os-scale, 1px);
  --cui-os-text-font: var(--plexsans, sans-serif); --cui-os-ui-font: var(--chicago);
  --cui-os-type-sm: calc(12 * var(--cui-os-u)); --cui-os-type: calc(13 * var(--cui-os-u)); --cui-os-type-md: calc(14 * var(--cui-os-u));
  --cui-os-btn-h: calc(34 * var(--cui-os-u)); --cui-os-btn-h-sm: calc(28 * var(--cui-os-u)); --cui-os-btn-pad: calc(14 * var(--cui-os-u));
  --cui-os-gap: calc(6 * var(--cui-os-u));
  --cui-os-tb-h: calc(34 * var(--cui-os-u)); --cui-os-collar: calc(4 * var(--cui-os-u));
  --cui-os-tbb: calc(15 * var(--cui-os-u)); --cui-os-tbb-line: calc(1.5 * var(--cui-os-u)); --cui-os-tbb-gap: calc(6 * var(--cui-os-u));
  --cui-os-radius-win: calc(18 * var(--cui-os-u)); --cui-os-radius-card: calc(16 * var(--cui-os-u));
  --cui-os-radius-item: calc(10 * var(--cui-os-u)); --cui-os-radius-pill: 9999px;
  --cui-os-faded: .45;
  /* the phone's own sizes, from the canvas's Mobile page (M1), in CSS px as a phone measures them and never scaled by the
     design pixel: the least a finger presses (#2308) and the glyph inside it. The phone layouts (slice 6) and the
     Android kit (apps/android/kit) draw every control at these. */
  --cui-os-phone-touch: 44px; --cui-os-phone-icon: 20px;
  /* one phone px: the unit M1 measures the phone's parts in (slice 6), a CSS px on every device */
  --cui-os-ph: 1px;
  --cui-os-shadow-win: 0 calc(30 * var(--cui-os-u)) calc(60 * var(--cui-os-u)) calc(-30 * var(--cui-os-u)) var(--cui-os-shade),
    0 0 0 var(--cui-os-u) var(--cui-os-line);
  --cui-os-shadow-card: 0 0 0 var(--cui-os-u) var(--cui-os-line), 0 calc(10 * var(--cui-os-u)) calc(22 * var(--cui-os-u)) calc(-18 * var(--cui-os-u)) var(--cui-os-shade);
  --cui-os-shadow-btn: 0 calc(2 * var(--cui-os-u)) calc(4 * var(--cui-os-u)) calc(-2 * var(--cui-os-u)) var(--cui-os-shade);
  --cui-os-focus: 0 0 0 calc(2 * var(--cui-os-u)) var(--cui-os-win), 0 0 0 calc(4 * var(--cui-os-u)) var(--cui-os-size);
  /* slice 2, the desktop's parts: the six rainbow bands in order (the dock's window strip, the pip, the breakdown
     bars), the frosted ground the menu bar, dock and desktop buttons stand on, and their sizes */
  --cui-os-rb-1: #61bb46; --cui-os-rb-2: #fdb827; --cui-os-rb-3: #f5821f; --cui-os-rb-4: #e03a3e; --cui-os-rb-5: #963d97; --cui-os-rb-6: #009ddc;
  --cui-os-label: rgba(255, 253, 249, .85);
  --cui-os-glass: rgba(255, 253, 249, .82); --cui-os-glass-edge: rgba(35, 30, 27, .12); --cui-os-pip-ink: #ffffff; --cui-os-pip-shade: rgba(0, 0, 0, .7);
  --cui-os-menubar-h: calc(34 * var(--cui-os-u)); --cui-os-dock-tile: calc(46 * var(--cui-os-u));
  --cui-os-band-w: calc(8 * var(--cui-os-u)); --cui-os-band-h: calc(6 * var(--cui-os-u)); --cui-os-paw: calc(11 * var(--cui-os-u));
  --cui-os-shadow-float: 0 calc(12 * var(--cui-os-u)) calc(24 * var(--cui-os-u)) calc(-14 * var(--cui-os-u)) var(--cui-os-shade),
    0 0 0 var(--cui-os-u) var(--cui-os-glass-edge);
  /* #2667 the sign-in and lock screen (CUI.lockScreen, canvas P2-Lock; night P2b in the theme's dark set) */
  --cui-os-lock-sky-1: #fbf6ee; --cui-os-lock-sky-2: #f1e7d8; --cui-os-lock-hole: #f1e7d8; --cui-os-lock-scan: rgba(255, 255, 255, .18);
  --cui-os-lock-star-1: transparent; --cui-os-lock-star-2: transparent; --cui-os-lock-plate: #fffdf9; --cui-os-lock-halo: rgba(255, 253, 249, .6);
  --cui-os-lock-plate-shade: rgba(35, 30, 27, .6); --cui-os-lock-pill: rgba(255, 253, 249, .92); --cui-os-lock-ring: #ece6dc; --cui-os-lock-drop: rgba(35, 30, 27, .55);
  --cui-os-badge: #e03a3e; --cui-os-badge-ink: #ffffff;   /* the bell's count, canvas P1 */
  --cui-os-lock-guest-paper: rgba(255, 253, 249, .7); --cui-os-lock-guest-disc: #efeae2; --cui-os-lock-guest-ink: #231e1b;
}

/* ---- #776 themes (CUI.theme, themes.py): every 1-bit glyph through the theme's glyph filter; the text a person selects
 * in the theme's chosen colours once a theme is on (Platinum's Light keeps the browser's own); the kit's filters live
 * in a picture of no size, never display: none, where Firefox would not apply them */
img[src*="/glyphs/"][src*=".svg"] { filter: var(--cui-glyph); }
:root[data-cui-themed] ::selection { background: var(--cui-select); color: var(--cui-select-ink); }
.cui-themefx { position: absolute; left: 0; top: 0; width: 0; height: 0; overflow: hidden; pointer-events: none; }

/* ---- a glyph: 16 Mac pixels unless where it sits says otherwise. The glyphs are viewBox-only SVGs, so without this a
 * glyph with no rule of its own fills the width it is given (the giant caution of Oscar's Allow, 28 Oct) */

.cui-icon { width: var(--cui-icon); height: var(--cui-icon); flex: 0 0 auto; image-rendering: pixelated; }

/* ---- push buttons (cdanui CUI_Button, R65-R70) ------------------------------------------------------------- */

.cui-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: calc(4 * var(--px));
  box-sizing: border-box; height: calc(20 * var(--px)); min-width: calc(58 * var(--px)); margin: 0;
  padding: 0 calc(10 * var(--px)); border: 0; border-radius: 0; box-shadow: none; outline: none;
  font-family: var(--chicago); font-size: var(--cui-type-12); font-weight: normal; line-height: 1;
  color: var(--cui-ink); text-decoration: none; white-space: nowrap; vertical-align: middle;
  cursor: default; user-select: none; -webkit-user-select: none; -webkit-appearance: none; appearance: none;
  -webkit-tap-highlight-color: transparent; flex: 0 0 auto;
}
.cui-btn::-moz-focus-inner { border: 0; padding: 0; }
.cui-btn > .cui-label { display: block; overflow: hidden; text-overflow: ellipsis; text-decoration: none;
  line-height: 1.3; }   /* #536: room for a descender (the y of Deny was cut by a line one em high) */
.cui-btn > .cui-icon, .cui-bevel > .cui-icon {
  display: block; flex: 0 0 auto; width: var(--cui-icon); height: var(--cui-icon); image-rendering: pixelated;
  pointer-events: none;
}
.cui-btn.cui-on, .cui-btn:active:not(:disabled):not(.cui-off) { color: var(--cui-paper); }
.cui-btn.cui-on > .cui-icon, .cui-btn:active:not(:disabled):not(.cui-off) > .cui-icon { filter: var(--cui-glyph-inv); }
/* #1800: a glyph coloured whole (iconButton's tint) sits where the glyph would and keeps its colour when pressed; its
   black lines show white on the pressed button's black, so its shape stays whole */
.cui-btn > .cui-tint.cui-btntint { display: block; pointer-events: none; }
.cui-btn.cui-on > .cui-tint.cui-btntint > .cui-tintlines,
.cui-btn:active:not(:disabled):not(.cui-off) > .cui-tint.cui-btntint > .cui-tintlines { mix-blend-mode: screen; filter: invert(1) !important; }
.cui-btn:disabled > .cui-tint.cui-btntint { opacity: .35; }
/* latched and pressed: the normal look again while a finger is on it (R65) */
.cui-btn.cui-on:active:not(:disabled) { color: var(--cui-ink); }
/* small: beside a name or in a busy bar (Stop, Retry): Geneva's compact words, but the one button height (#564, the
   user, 31 Oct: "lots of buttons don't align in size and placement across the app"): every push button is
   --cui-control-h high (20, 28 on a phone, 24 on a tablet), so buttons in a row are the same size and share a centre
   line; small only narrows the words */
.cui-btn.cui-small { height: var(--cui-control-h); min-width: calc(36 * var(--px)); padding: 0 calc(6 * var(--px));
  font-family: var(--geneva); font-size: var(--cui-type-10); font-weight: bold; }
/* inside a row of a list or table (a row 22 high) the small button keeps the list row's own 16, as System 7's list
   rows did; every button in such a row is small, so the row still shares one height */
tr .cui-btn.cui-small, .cui-row .cui-btn.cui-small, .srow .cui-btn.cui-small { height: var(--cui-control-h-sm); }
tr .cui-btn.cui-small.cui-iconly, .cui-row .cui-btn.cui-small.cui-iconly, .srow .cui-btn.cui-small.cui-iconly { width: calc(20 * var(--px)); }
/* #1352: a 16 glyph and the button's two borders need 18, or the glyph's top and bottom are cut and it looks squashed.
   :where keeps the weight under a phone's touch size. */
:where(tr, .cui-row, .srow) .cui-btn.cui-small.cui-iconly { height: calc(18 * var(--px)); }
/* large: the touch size, 28 Mac px high (R70) */
.cui-btn.cui-large { height: calc(28 * var(--px)); min-width: calc(64 * var(--px)); padding: 0 calc(12 * var(--px)); }
/* a button with only a glyph: one size everywhere (#564), 30 x 20, small or not */
.cui-btn.cui-iconly { min-width: 0; width: calc(30 * var(--px)); padding: 0; }
/* #1633: a button folded to its icon while its bar's title would not fit whole (ui.js foldToFit) */
.cui-btn.cui-folded > .cui-label { display: none; }
/* a square one (#928, iconButton opts.square): as wide as the button is high in each profile (20, 24 a tablet, 28 a phone) */
.cui-btn.cui-iconly.cui-square { width: calc(20 * var(--px)); }
html.dev-tablet .cui-btn.cui-iconly.cui-square { width: calc(24 * var(--px)); }
html.dev-phone .cui-btn.cui-iconly.cui-square:where(:not(.cui-asdrawn *)) { width: var(--cui-touch); }
/* a square one stands alone, so a finger always has its 44 CSS px on it, whatever the Mac pixel is there */
@media (pointer: coarse) { :root .cui-btn.cui-iconly.cui-square { min-width: 44px; min-height: 44px; } }   /* :root: over a profile's min-width 0 */
.cui-btn.cui-wide { width: 100%; }

/* the default button: the 3 px ring with a white gap, 4 px outside it. Room is kept above, below and before it, not
   after (#564): its frame lines up with the buttons above and below it, the ring standing out past the row's edge as
   System 7 drew it */
.cui-default { margin: calc(4 * var(--px)) 0 calc(4 * var(--px)) calc(4 * var(--px)); }
/* the buttons beside it keep the same room above and below, so their frames share its line whether the row is centred
   or aligned to its foot (the chat's attach beside Send stood 4 lower) */
:where(*):has(> .cui-default) > .cui-btn:not(.cui-default) { margin-top: calc(4 * var(--px)); margin-bottom: calc(4 * var(--px)); }
.cui-default::before {
  content: ""; position: absolute; left: calc(-4 * var(--px)); top: calc(-4 * var(--px)); right: calc(-4 * var(--px));
  bottom: calc(-4 * var(--px)); pointer-events: none;
}

/* disabled and dimmed (R66): the frame stays solid; the label and glyph in System 7's grey, every other pixel */
.cui-btn:disabled, .cui-btn.cui-dim, .cui-bevel:disabled, .cui-bevel.cui-dim { color: var(--cui-dim); }
.cui-btn:disabled > .cui-icon, .cui-btn.cui-dim > .cui-icon, .cui-bevel:disabled > .cui-icon, .cui-bevel.cui-dim > .cui-icon { opacity: .4; }
@supports ((-webkit-mask-image: url("dim.svg")) or (mask-image: url("dim.svg"))) {
  .cui-btn:disabled, .cui-btn.cui-dim, .cui-bevel:disabled, .cui-bevel.cui-dim { color: var(--cui-ink); }
  .cui-btn:disabled > *, .cui-btn.cui-dim > *, .cui-bevel:disabled > *, .cui-bevel.cui-dim > *,
  .cui-check.cui-disabled > span, .cui-radios.cui-disabled .cui-radiolabel, .cui-segb:disabled > * {
    opacity: 1;
    -webkit-mask-image: url("dim.svg"); mask-image: url("dim.svg");
    -webkit-mask-size: calc(2 * var(--px)) calc(2 * var(--px)); mask-size: calc(2 * var(--px)) calc(2 * var(--px));
    -webkit-mask-repeat: repeat; mask-repeat: repeat;
  }
  /* a glyph is drawn grey instead: the checker would take every pixel of a one-pixel diagonal (the pencil) */
  .cui-btn:disabled > .cui-icon, .cui-btn.cui-dim > .cui-icon, .cui-bevel:disabled > .cui-icon, .cui-bevel.cui-dim > .cui-icon,
  .cui-segb:disabled > .cui-icon {
    -webkit-mask-image: none; mask-image: none; opacity: .35;
  }
}

/* keyboard focus: a dotted frame on a computer; a TV gets its own big ring (style.css, body.tv :focus) */
.cui-btn:focus-visible, .cui-bevel:focus-visible, .cui-segb:focus-visible, .cui-tab:focus-visible, .cui-plain:focus-visible,
.cui-link:focus-visible, .cui-sort:focus-visible {
  outline: var(--cui-focus); outline-offset: calc(2 * var(--px));
}
.cui-default:focus-visible { outline-offset: calc(6 * var(--px)); }
/* a disabled default button: its ring in the grey too */
.cui-default:disabled::before { -webkit-mask-image: url("dim.svg"); mask-image: url("dim.svg");
  -webkit-mask-size: calc(2 * var(--px)) calc(2 * var(--px)); mask-size: calc(2 * var(--px)) calc(2 * var(--px)); }

/* ---- bevel buttons with a glyph (the player's bar, cdanui's glyph buttons) ------------------------------------ */

.cui-bevel {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  box-sizing: border-box; width: calc(28 * var(--px)); height: calc(22 * var(--px)); margin: 0; padding: 0;
  border: 0; border-radius: 0; box-shadow: none; outline: none; color: var(--cui-ink); line-height: 0;
  cursor: default; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
}
.cui-bevel::-moz-focus-inner { border: 0; padding: 0; }
.cui-bevel.cui-on > .cui-icon, .cui-bevel:active:not(:disabled):not(.cui-off) > .cui-icon { filter: var(--cui-glyph-inv); }
.cui-bevel.cui-on:active:not(:disabled) > .cui-icon { filter: none; }
.cui-bevel.cui-small { width: calc(22 * var(--px)); height: calc(20 * var(--px)); }
.cui-bevel.cui-large { width: calc(44 * var(--px)); height: calc(28 * var(--px)); }

/* ---- plain pressables: a tile, a row, a crumb, an icon; the kit's button with no frame of its own --------- */

.cui-plain {
  margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; outline: none;
  font: inherit; color: inherit; text-align: inherit; text-decoration: none; line-height: inherit;
  cursor: default; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
}
.cui-plain::-moz-focus-inner { border: 0; padding: 0; }

/* ---- tiles (#327): a framed square pressable, a glyph or picture with its name; inverted when on ------------------ */

.cui-tile { position: relative; box-sizing: border-box; min-width: 0; overflow: hidden; border: var(--cui-line) solid var(--cui-ink);
  border-radius: var(--cui-radius); background: var(--cui-paper); color: var(--cui-ink); }
.cui-tilestack { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: var(--cui-space-2);
  padding: var(--cui-space-4) var(--cui-space-2); text-align: center; }
.cui-tilerow { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: var(--cui-space-6);
  align-items: center; padding: var(--cui-space-4) var(--cui-space-6); text-align: left; }
.cui-tilerow > .cui-icon { grid-row: 1 / 3; }
.cui-tilename { font-family: var(--cui-font-ui); font-size: var(--cui-text-sm); max-width: 100%; min-width: 0; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.cui-tilestack > .cui-tilename { font-family: var(--cui-font-text); font-size: var(--cui-text-xs); }
.cui-tilesub { font-family: var(--cui-font-text); font-size: var(--cui-text-xs); color: var(--cui-quiet); min-width: 0; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.cui-tile.cui-on, .cui-tile:active:not(:disabled) { background: var(--cui-ink); color: var(--cui-paper); }
.cui-tile.cui-on .cui-tilesub, .cui-tile:active:not(:disabled) .cui-tilesub { color: var(--cui-paper); }
.cui-tile.cui-on > .cui-icon, .cui-tile:active:not(:disabled) > .cui-icon { filter: var(--cui-glyph-inv); }
.cui-tile:disabled { color: var(--cui-dim); border-style: dotted; }
.cui-tile:disabled > .cui-icon { opacity: .35; }
.cui-tile:focus-visible { outline: var(--cui-focus); outline-offset: var(--cui-space-2); }
/* the template view (#1762): Oscar's prompt, the search under it, the tabs, then a grid of row tiles that scrolls */
.cui-tplview { display: flex; flex-direction: column; gap: var(--cui-space-4); min-height: 0; min-width: 0; }
/* #2501: under Oscar's prompt and its buttons, the space every button keeps under it */
.cui-tplview > :has(.cui-btn) + * { margin-top: calc(var(--cui-space-under) - var(--cui-space-4)); }
.cui-tplsearch.cui-field { width: 100%; box-sizing: border-box; }
.cui-tpltabs { min-width: 0; }
.cui-tpltabs > .cui-tabs { margin-bottom: 0; }      /* the tabs wrap onto a second row on a narrow window */
.cui-tplgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(120 * var(--px)), 1fr)); grid-auto-rows: max-content; gap: var(--cui-space-4);
  align-content: start; overflow-y: auto; min-height: 0; padding: var(--cui-space-2); }
.cui-tplgrid > .cui-tplnone { grid-column: 1 / -1; }
.cui-tpltile.cui-tilerow > .cui-icon { width: calc(16 * var(--px)); height: calc(16 * var(--px)); }
/* a word that does something, inside text: chosen inverted, as a menu item is */
.cui-plain.cui-word { padding: 0 calc(3 * var(--px)); font-family: var(--chicago); }
.cui-plain.cui-word:active, .cui-plain.cui-word.cui-on { background: var(--cui-ink); color: var(--cui-paper); }

/* a real link: the only underlined words */
.cui-link {
  display: inline; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left;
  text-decoration: underline; text-underline-offset: calc(2 * var(--px)); cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.cui-link:active { background: var(--cui-ink); color: var(--cui-paper); }

/* ---- check boxes and radio buttons ---------------------------------------------------------------------------- */

.cui-check { display: inline-flex; align-items: center; gap: calc(6 * var(--px)); cursor: default; }
.cui-check > span, .cui-radiolabel { font-size: var(--cui-type-12); }
/* #2667 slice 5: the on/off switch (CUI.switch); System 7 has none of its own, so a small framed track with a round knob,
   filled black when on */
.cui-switchrow { display: inline-flex; align-items: center; gap: calc(6 * var(--px)); cursor: default; font-size: var(--cui-type-12); }
.cui-switchrow.cui-disabled { color: var(--cui-dim); }
.cui-switch { position: relative; flex: none; box-sizing: border-box; width: calc(26 * var(--px)); height: calc(14 * var(--px)); margin: 0; padding: 0;
  border: var(--px) solid var(--cui-ink); border-radius: calc(7 * var(--px)); background: var(--cui-paper); outline: none; cursor: default;
  -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; }
.cui-switch > .cui-knob { position: absolute; left: var(--px); top: var(--px); width: calc(10 * var(--px)); height: calc(10 * var(--px));
  border-radius: 50%; background: var(--cui-ink); }
.cui-switch[aria-checked="true"] { background: var(--cui-ink); }
.cui-switch[aria-checked="true"] > .cui-knob { left: calc(13 * var(--px)); background: var(--cui-paper); }
.cui-switch:disabled { border-color: var(--cui-dim); }
.cui-switch:disabled > .cui-knob { background: var(--cui-dim); }
.cui-switch:focus-visible { outline: var(--cui-focus); outline-offset: var(--px); }
/* #2595: the recorder (CUI.recorder): Record, the running time and Stop in a row, a video's live preview over them */
.cui-recorder { display: inline-flex; flex-direction: column; gap: calc(6 * var(--px)); max-width: 100%; }
.cui-recbar { display: flex; align-items: center; gap: calc(8 * var(--px)); }
.cui-rectime { min-width: calc(36 * var(--px)); font-family: var(--chicago); font-size: var(--cui-type-12); font-variant-numeric: tabular-nums; }
.cui-recdot { flex: none; width: calc(8 * var(--px)); height: calc(8 * var(--px)); border-radius: 50%; background: transparent; }
.cui-recorder.cui-recon .cui-recdot { background: var(--cui-ink); }
.cui-recpreview { display: block; width: calc(240 * var(--px)); max-width: 100%; aspect-ratio: 4 / 3; background: #000; border: var(--px) solid var(--cui-ink); }
/* #2595: a locked place's card (CUI.unlockCard): the padlock, the name, the key field and Unlock, drawn in its place */
.cui-unlock { display: flex; flex-direction: column; align-items: center; gap: calc(8 * var(--px)); box-sizing: border-box; max-width: calc(320 * var(--px));
  margin: calc(16 * var(--px)) auto; padding: calc(16 * var(--px)); background: var(--cui-paper); border: var(--px) solid var(--cui-ink); box-shadow: var(--cui-shadow);
  font-family: var(--chicago); font-size: var(--cui-type-12); text-align: center; }
.cui-unlockmark > .cui-icon { width: var(--cui-icon-lg); height: var(--cui-icon-lg); }
.cui-unlockrow { display: flex; align-items: center; gap: calc(6 * var(--px)); align-self: stretch; }
.cui-unlockrow > .cui-field { flex: 1 1 auto; min-width: 0; }
.cui-unlocknote:empty { display: none; }
.cui-unlock.cui-unlocked { display: none; }
.cui-repeatdays { display: flex; flex-wrap: wrap; gap: calc(4 * var(--px)) calc(10 * var(--px)); }   /* #1749: CUI.repeat's days */
.cui-stmark { display: inline-flex; align-items: center; gap: calc(4 * var(--px)); white-space: nowrap; }   /* #1749: CUI.statusMark */
.cui-stmark .cui-icon { width: var(--cui-icon); height: var(--cui-icon); flex: none; }
input.cui-checkbox, input.cui-radio {
  -webkit-appearance: none; appearance: none; flex: 0 0 auto; margin: 0; padding: 0; border-radius: 0; outline: none;
  width: calc(12 * var(--px)); height: calc(12 * var(--px)); cursor: default; vertical-align: middle;
  background-repeat: no-repeat; background-position: center; image-rendering: pixelated;
}
input.cui-checkbox { border: var(--px) solid var(--cui-ink); background-color: var(--cui-paper); }
input.cui-checkbox:checked { background-image: url("check-x.svg"); background-size: calc(10 * var(--px)) calc(10 * var(--px)); }
/* while pressed, a doubled frame, as System 7 tracks it */
input.cui-checkbox:active:not(:disabled) { box-shadow: inset 0 0 0 var(--px) var(--cui-ink); }
input.cui-radio { border: 0; background-color: transparent; background-image: url("radio.svg");
  background-size: calc(12 * var(--px)) calc(12 * var(--px)); }
input.cui-radio:checked { background-image: url("radio-on.svg"); }
input.cui-radio:active:not(:disabled) { background-image: url("radio-down.svg"); }
input.cui-radio:checked:active:not(:disabled) { background-image: url("radio-on-down.svg"); }
input.cui-checkbox:disabled, input.cui-radio:disabled { opacity: .5; }
input.cui-checkbox:focus-visible, input.cui-radio:focus-visible { outline: var(--cui-focus); outline-offset: calc(2 * var(--px)); }
.cui-radios { display: flex; flex-direction: column; gap: calc(4 * var(--px)); margin: 0; padding: 0; border: 0; }
.cui-radios.cui-across { flex-direction: row; flex-wrap: wrap; gap: calc(4 * var(--px)) calc(12 * var(--px)); }

/* ---- pop-up menus and the menus they open ---------------------------------------------------------------------- */

.cui-popup {
  -webkit-appearance: none; appearance: none; box-sizing: border-box; display: inline-flex; align-items: center;
  height: calc(19 * var(--px)); max-width: 100%; min-width: calc(56 * var(--px)); margin: 0 var(--px) var(--px) 0;
  padding: 0 calc(22 * var(--px)) 0 calc(6 * var(--px));
  font-family: var(--chicago); font-size: var(--cui-type-12); line-height: 1; color: var(--cui-ink); text-align: left;
  border: var(--px) solid var(--cui-ink); border-radius: 0; box-shadow: var(--cui-shadow); outline: none;
  background: var(--cui-paper) url("tri.svg") no-repeat right calc(6 * var(--px)) center / calc(7 * var(--px)) calc(4 * var(--px));
  image-rendering: pixelated; cursor: default; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* #2105: a pop-up is as wide as its longest choice; in a row with less room it narrows, never past the choice it shows
   (ui.js fitChosen), and a menu it opens is as wide as its longest item within the screen */
.cui-popup::-ms-expand { display: none; }
.cui-popup:active:not(:disabled), .cui-popup.cui-on { background-color: var(--cui-ink); color: var(--cui-paper);
  background-image: none; }
.cui-popup:disabled { color: var(--cui-dim); }
.cui-popup:focus-visible { outline: var(--cui-focus); outline-offset: calc(2 * var(--px)); }
.cui-popup .cui-icon { width: var(--cui-icon); height: var(--cui-icon); image-rendering: pixelated; display: block; }
.cui-popup.cui-on .cui-icon { filter: var(--cui-glyph-inv); }
.cui-popup option { font-family: var(--geneva); }

/* #1728: a menu is over everything that stays a while, the message band (9500) included: its own menu opens over it */
.cui-menu {
  position: fixed; z-index: 9550; display: flex; flex-direction: column; box-sizing: border-box;
  min-width: calc(120 * var(--px)); max-width: calc(100vw - 8px); max-height: calc(100vh - 8px);   /* #2105: its longest item, within the screen */
  overflow-y: auto; margin: 0; padding: var(--px) 0; list-style: none;
  background: var(--cui-menu-paper); color: var(--cui-menu-ink); border: var(--px) solid var(--cui-ink); box-shadow: var(--cui-shadow);
  font-family: var(--chicago); font-size: var(--cui-type-12);
}
.cui-menuitem {
  display: flex; align-items: center; gap: calc(4 * var(--px)); width: 100%; box-sizing: border-box;
  min-height: calc(16 * var(--px)); margin: 0; padding: calc(1 * var(--px)) calc(14 * var(--px)) calc(1 * var(--px)) calc(2 * var(--px));
  border: 0; border-radius: 0; background: var(--cui-paper); color: var(--cui-ink); font: inherit; text-align: left; white-space: nowrap;
  text-decoration: none; cursor: default; outline: none; -webkit-appearance: none; appearance: none;
}
.cui-menuitem .cui-mark { flex: 0 0 auto; width: calc(12 * var(--px)); display: flex; justify-content: center; }
.cui-menuitem .cui-mark img { width: calc(9 * var(--px)); height: calc(9 * var(--px)); image-rendering: pixelated; }
.cui-menuitem .cui-icon { width: var(--cui-icon); height: var(--cui-icon); image-rendering: pixelated; display: block; }
.cui-menuitem:hover:not(:disabled), .cui-menuitem:focus { background: var(--cui-hilite); color: var(--cui-hilite-ink); }
.cui-menuitem:hover:not(:disabled) img, .cui-menuitem:focus img { filter: var(--cui-glyph-on); }
.cui-menuitem:disabled { color: var(--cui-dim); }
.cui-menuitem.cui-strong { font-weight: bold; }
.cui-menusep { height: var(--px); margin: calc(3 * var(--px)) 0; flex: 0 0 auto;
  background: repeating-linear-gradient(90deg, var(--cui-ink) 0, var(--cui-ink) var(--px), transparent var(--px), transparent calc(2 * var(--px))); }
.cui-menuitem > .cui-mlabel { flex: 1 1 auto; }
/* an item's shortcut or note (#486: its own class; it was cui-key, the chart key's, and drew as that key's box): a column
   at the right, the item's colour, so a dimmed item's key is dimmed with it and a chosen one's is white */
.cui-menuitem > .cui-mkey { flex: 0 0 auto; margin-left: auto; padding-left: calc(16 * var(--px)); color: inherit; white-space: nowrap; }
.cui-menuitem > .cui-mlabel { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* a submenu's item: System 7's small solid triangle at the right; open, it stays inverted. #2193: any menu's item that
   opens a submenu (the kit's, and the menu bar's, which opens the kit's) */
.cui-subtri { flex: 0 0 auto; width: 0; height: 0; margin: 0 calc(-8 * var(--px)) 0 calc(12 * var(--px));
  border-style: solid; border-color: transparent transparent transparent var(--cui-ink);
  border-width: calc(4 * var(--px)) 0 calc(4 * var(--px)) calc(4 * var(--px)); }
.cui-menuitem.cui-open, .cui-menuitem.cui-open:hover { background: var(--cui-hilite); color: var(--cui-hilite-ink); }
.cui-open > .cui-subtri, [aria-haspopup="menu"]:hover:not(:disabled) > .cui-subtri, [aria-haspopup="menu"]:focus > .cui-subtri { border-left-color: var(--cui-paper); }
[aria-haspopup="menu"]:disabled > .cui-subtri { border-left-color: var(--cui-dim); }
/* #1752: a Magic item (Magic Categorise): its words in the moving rainbow, bold so the lighter colours read, as #531's
   @Name; on the black of the item under the pointer too. Where text cannot be clipped to a fill it is plain */
.cui-menuitem > .cui-mlabel.cui-rainbow-text { font-weight: bold; }
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .cui-menuitem > .cui-mlabel.cui-rainbow-text { color: inherit; -webkit-text-fill-color: currentColor; background-image: none; animation: none; } }
.cui-menu.cui-submenu { z-index: 9551; }
.cui-floataway { visibility: hidden; pointer-events: none; }   /* #1796: a bubble with no room beside an open menu */
/* #1796: a bubble put where CUI.floatClear said, in screen places: the kit's own layer, over its app's own placing */
body .cui-floated { position: fixed; max-width: calc(100vw - 16px); }
/* a menu of icons only (an icon popup with menuCls cui-icongrid): rows of eight, the chosen one framed */
.cui-menu.cui-icongrid { display: grid; grid-template-columns: repeat(8, auto); max-height: min(60vh, calc(260 * var(--px))); padding: var(--px); }
.cui-icongrid .cui-menuitem { width: auto; padding: calc(3 * var(--px)); justify-content: center; }
.cui-icongrid .cui-menuitem .cui-mark { display: none; }
.cui-icongrid .cui-menuitem .cui-icon { width: calc(24 * var(--px)); height: calc(24 * var(--px)); object-fit: contain; }
.cui-icongrid .cui-menuitem[aria-checked="true"] { outline: var(--px) solid var(--cui-ink); outline-offset: calc(-1 * var(--px)); }
html.dev-phone .cui-icongrid .cui-menuitem { min-height: 0; }
.cui-menuhead { padding: calc(1 * var(--px)) calc(14 * var(--px)); color: var(--cui-dim); white-space: nowrap; }

/* ---- text fields ------------------------------------------------------------------------------------------------- */

.cui-field {
  box-sizing: border-box; min-width: 0; height: calc(22 * var(--px)); margin: 0; padding: 0 calc(4 * var(--px));
  font-family: var(--geneva); font-size: var(--cui-type-12); line-height: normal; color: var(--cui-ink);
  background: var(--cui-paper); border: var(--px) solid var(--cui-ink); border-radius: 0; box-shadow: none; outline: none;
  -webkit-appearance: none; appearance: none;
}
.cui-field::placeholder { color: var(--cui-dim); opacity: 1; }
.cui-field:focus { box-shadow: inset 0 0 0 var(--px) var(--cui-ink); }
.cui-field:disabled { color: var(--cui-dim); border-color: var(--cui-dim); }
.cui-field.cui-area { height: auto; min-height: calc(60 * var(--px)); padding: calc(3 * var(--px)) calc(4 * var(--px)); resize: vertical;
  line-height: 1.3; }
.cui-field.cui-mono { font-family: var(--cui-font-code); font-size: var(--cui-type-10); }
.cui-field.cui-num { width: calc(64 * var(--px)); }
.cui-field.cui-wide { width: 100%; }
.cui-field[type=search]::-webkit-search-cancel-button, .cui-field[type=search]::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.cui-labelled { display: flex; flex-direction: column; gap: calc(2 * var(--px)); }
.cui-labelled > span { font-size: var(--cui-type-10); }
.cui-labelled.cui-across { flex-direction: row; align-items: center; gap: calc(6 * var(--px)); }
/* #1663 #1664: a service's real logo (serviceLogo), the height of the words beside it, drawn smooth; the head of every
   sign-in card (serviceHead); the one sign-in dialog (signInDialog) is the kit's dialog, form, codeShow and statusLine */
.cui-svclogo { display: block; flex: none; width: 1.5em; height: 1.5em; object-fit: contain; image-rendering: auto; }
.cui-icon[src^="/icons/services/"] { image-rendering: auto; object-fit: contain; }
/* #1912: the one sign-in button (serviceButton): the kit's push button, the service's small logo where the glyph sits */
.cui-btn > .cui-svcbtnlogo { width: var(--cui-icon); height: var(--cui-icon); pointer-events: none; }
.cui-svchead { display: flex; align-items: center; gap: calc(8 * var(--px)); font-family: var(--cui-font-ui); }
.cui-svchead > .cui-icon { flex: none; }
.cui-sibody { display: flex; flex-direction: column; gap: calc(8 * var(--px)); min-width: min(calc(300 * var(--px)), 80vw); }
/* #1666: a waiting button that takes the press that cancels it (buttonWait's cancel) */
.cui-btn.cui-btncancel { cursor: pointer; }

/* ---- segments and tabs (cdanui CUI_Segments, R71) ------------------------------------------------------------- */

.cui-seg { display: inline-flex; flex-wrap: nowrap; max-width: 100%; margin: 0 0 calc(8 * var(--px)); }
.cui-segb {
  position: relative; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  height: calc(20 * var(--px)); min-width: calc(40 * var(--px)); margin: 0 0 0 calc(-1 * var(--px)); padding: 0 calc(10 * var(--px));
  font-family: var(--chicago); font-size: var(--cui-type-12); line-height: 1; color: var(--cui-ink); white-space: nowrap;
  background: var(--cui-paper); border: var(--px) solid var(--cui-ink); border-radius: 0; outline: none; cursor: default;
  -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
}
.cui-segb:first-child { margin-left: 0; }
.cui-segb:first-child, .cui-segb:last-child { border: 0; }
.cui-segb.cui-on, .cui-segb:active:not(:disabled) { background-color: var(--cui-ink); color: var(--cui-paper); }
.cui-segb.cui-on img, .cui-segb:active:not(:disabled) img { filter: var(--cui-glyph-inv); }
.cui-segb:disabled { color: var(--cui-dim); }
.cui-seg.cui-wrap { flex-wrap: wrap; }
/* #2308: on a phone a row of choices whose buttons are a finger wide wraps when it is wider than the room it has (a
   form's column, a table's cell), as the kit's wrap does, never pushing the page wider; a bar that keeps one row
   (cui-ovbar, overflow) and side tabs keep their own rule */
html.dev-phone :not(.cui-ovbar) > .cui-seg:not(.cui-sidetabs) { flex-wrap: wrap; }
.cui-segb > .cui-icon { display: block; flex: 0 0 auto; width: var(--cui-icon); height: var(--cui-icon); image-rendering: pixelated; }
.cui-toolbar > .cui-seg { margin: 0; }
/* #1473: the room under a switch is for one on its own line. Beside another control, in whatever row an app made, it
   pushed the switch off the row's centre line: 4 Mac px higher than the buttons beside it */
:is(.cui-btn, .cui-bevel, .cui-popup, .cui-field, .cui-check, .cui-seg, .cui-number, .cui-spacer) ~ .cui-seg,
.cui-seg:has(~ :is(.cui-btn, .cui-bevel, .cui-popup, .cui-field, .cui-check, .cui-seg, .cui-number, .cui-spacer)) { margin-bottom: 0; }

.cui-tabs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 calc(2 * var(--px));
  margin: 0 0 calc(6 * var(--px)); padding: 0 calc(4 * var(--px)); border-bottom: var(--px) solid var(--cui-ink); }
.cui-tab {
  display: inline-flex; align-items: center; height: calc(19 * var(--px)); margin: 0 0 calc(-1 * var(--px)); padding: 0 calc(10 * var(--px));
  font-family: var(--chicago); font-size: var(--cui-type-12); line-height: 1; color: var(--cui-ink); white-space: nowrap;
  border: 0; border-radius: 0; outline: none; cursor: default; -webkit-appearance: none; appearance: none;
}
.cui-tab.cui-on { color: var(--cui-paper); }

/* #1628: segments(..., { side: true }), a window's tabs down its side, each drawn by ui_shapes.py's SIDE_TAB and open on
   the page. Whatever follows the set in its row is the page: its line is the one the tabs meet, and it runs the page's
   whole height while the set stays in view. On a phone, a TV or with { across: true } the set runs over the page as
   folder tabs on the page's top line; the row (or a window's own rule) stacks them. Across, they are one row that
   slides sideways, every tab on the page's line: wrapped, the rows above stood on the tops of the tabs below (#1628,
   9 Nov). segments() brings the chosen tab into view. Down the side in a row shorter than the set (#2105: a window
   whose page scrolls on its own, its head and foot kept in view), the set scrolls on its own, never past the row. */
.cui-seg.cui-sidetabs { display: flex; flex-direction: column; align-items: stretch; gap: calc(2 * var(--px)); flex: none; margin: 0;
  align-self: flex-start; position: sticky; top: 0; max-height: 100%; overflow-y: auto; overscroll-behavior-y: contain; }
.cui-seg.cui-sidetabs > .cui-segb { display: flex; justify-content: flex-start; flex: none; min-width: calc(96 * var(--px)); max-width: 100%; margin: 0;
  padding: 0 calc(8 * var(--px)) 0 calc(10 * var(--px)); border: 0; text-align: left; }
.cui-seg.cui-sidetabs > .cui-segb > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cui-seg.cui-sidetabs ~ :not(.cui-edge):not(.cui-panebtn) { align-self: stretch; box-sizing: border-box; min-width: 0;
  border-left: var(--px) solid var(--cui-ink); padding-left: calc(8 * var(--px)); }
.cui-seg.cui-sidetabs.cui-across { flex-direction: row; flex-wrap: nowrap; align-items: flex-end; align-self: stretch; position: static; padding: 0 calc(4 * var(--px));
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; }
.cui-seg.cui-sidetabs.cui-across > .cui-segb { min-width: 0; padding: 0 calc(10 * var(--px)); }
/* #2308: across, the set is as wide as its row and no wider, so it slides inside it: with flex none it took the width of
   all its tabs, which on a phone's bigger words ran past the window */
.cui-seg.cui-sidetabs.cui-across { flex: 0 1 auto; min-width: 0; max-width: 100%; }
.cui-seg.cui-sidetabs.cui-across ~ :not(.cui-edge):not(.cui-panebtn) { border-left: 0; padding-left: 0;
  border-top: var(--px) solid var(--cui-ink); padding-top: calc(6 * var(--px)); }
html.dev-tv .cui-seg.cui-sidetabs { flex-direction: row; flex-wrap: nowrap; align-items: flex-end; align-self: stretch; position: static; padding: 0 calc(4 * var(--px));
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; }
html.dev-tv .cui-seg.cui-sidetabs > .cui-segb { min-width: 0; padding: 0 calc(10 * var(--px)); }
html.dev-tv .cui-seg.cui-sidetabs ~ :not(.cui-edge):not(.cui-panebtn) { border-left: 0; padding-left: 0;
  border-top: var(--px) solid var(--cui-ink); padding-top: calc(6 * var(--px)); }
@media (max-width: 700px) {
  .cui-seg.cui-sidetabs { flex-direction: row; flex-wrap: nowrap; align-items: flex-end; align-self: stretch; position: static; padding: 0 calc(4 * var(--px));
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; }
  .cui-seg.cui-sidetabs > .cui-segb { min-width: 0; padding: 0 calc(10 * var(--px)); }
  .cui-seg.cui-sidetabs ~ :not(.cui-edge):not(.cui-panebtn) { border-left: 0; padding-left: 0;
    border-top: var(--px) solid var(--cui-ink); padding-top: calc(6 * var(--px)); }
}

/* ---- lists and tables --------------------------------------------------------------------------------------------- */

.cui-list { display: flex; flex-direction: column; border: var(--px) solid var(--cui-ink); background: var(--cui-paper); }
.cui-list.cui-bare { border: 0; }
.cui-row {
  display: flex; align-items: center; gap: calc(6 * var(--px)); width: 100%; box-sizing: border-box;
  min-height: calc(22 * var(--px)); margin: 0; padding: calc(2 * var(--px)) calc(6 * var(--px));
  border: 0; border-bottom: var(--px) solid var(--cui-ink); border-radius: 0; background: var(--cui-paper); color: var(--cui-ink);
  font: inherit; text-align: left; cursor: default; outline: none; -webkit-appearance: none; appearance: none;
}
.cui-row:last-child { border-bottom: 0; }
.cui-list.cui-dots .cui-row { border-bottom-style: dotted; }
.cui-row.cui-on, .cui-row:active:not(.cui-static), .cui-row.cui-drop { background: var(--cui-hilite); color: var(--cui-hilite-ink); }
.cui-row.cui-on img, .cui-row:active:not(.cui-static) img, .cui-row.cui-drop img { filter: var(--cui-glyph-on); }
/* #2012: a coloured icon on a chosen row keeps its outline, drawn light over the colour, as a pressed button does */
.cui-row.cui-on .cui-tint > .cui-tintlines, .cui-row:active:not(.cui-static) .cui-tint > .cui-tintlines, .cui-row.cui-drop .cui-tint > .cui-tintlines { mix-blend-mode: screen; }
.cui-row:focus-visible { box-shadow: inset 0 0 0 calc(2 * var(--px)) var(--cui-ink), inset 0 0 0 calc(3 * var(--px)) var(--cui-paper); }
.cui-row.cui-on:focus-visible { box-shadow: inset 0 0 0 calc(2 * var(--px)) var(--cui-paper); }
.cui-row .cui-icon { flex: 0 0 auto; width: var(--cui-icon); height: var(--cui-icon); image-rendering: pixelated; }
/* #583 (the user's phone, 31 Oct: a watched episode's tick filled its row, hid the title and ran off the screen): a
   picture a row is given as its own (kids, extra) is icon sized unless its own rule says otherwise. A glyph has a viewBox
   and no size of its own, so left alone it grew to the row's whole free width. Lowest weight, so any class rule wins. */
:where(.cui-row) > img { flex: 0 0 auto; width: var(--cui-icon); height: var(--cui-icon); image-rendering: pixelated; }
.cui-rowmain { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.cui-rowtitle { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: var(--cui-type-12); }
.cui-rowsub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: var(--cui-type-9); }
/* #1660: an item's number before its title, whole, on the title's line; the title is cut short first */
.cui-rowhead { display: flex; align-items: baseline; gap: calc(4 * var(--px)); min-width: 0; }
.cui-rowhead > .cui-rowtitle { flex: 0 1 auto; min-width: 0; }
.cui-rowref, .cui-ref { flex: none; white-space: nowrap; font-weight: bold; font-variant-numeric: tabular-nums; }
.cui-rowref { font-size: var(--cui-type-12); }
/* the number as a label that copies itself: a label to look at, no button frame, the size of the words round it */
.cui-ref { appearance: none; -webkit-appearance: none; border: 0; background: none; padding: 0; margin: 0; color: inherit;
  font-family: inherit; font-size: inherit; line-height: inherit; cursor: copy; }
.cui-ref:focus-visible { outline: calc(1 * var(--px)) dotted var(--cui-ink); outline-offset: calc(1 * var(--px)); }
.cui-rowextra { flex: 0 0 auto; font-size: var(--cui-type-9); }
.cui-row.cui-static { cursor: default; }
/* #639 #648: what was done to the item, beside its leftmost icon: green plus, red minus, blue tilde, grey dot; the
   label of it first in the row's second line. #2114: the tilde is the blue Lloyd chose under #639 ("I think we go for a
   blue ~"), the kit's blue; in amber or orange it reads as a loader. In the 1-bit look each mark is black and told apart by its shape. */
.cui-did { flex: 0 0 calc(8 * var(--px)); width: calc(8 * var(--px)); margin-right: calc(-4 * var(--px)); text-align: center;
  font-weight: bold; font-size: var(--cui-type-12); line-height: 1; align-self: center; }
.cui-did[data-did="added"] { color: #008000; }
.cui-did[data-did="deleted"] { color: #dd0806; }
.cui-did[data-did="updated"] { color: var(--cui-blue); }   /* #2114: the item's blue tilde; a code diff's line is #2028's orange */
.cui-did[data-did="read"] { color: #808080; font-size: var(--cui-type-10); }
.cui-rowdid { font-weight: bold; }
.cui-row.cui-on .cui-did, .cui-row:active:not(.cui-static) .cui-did { color: inherit; }
@media (monochrome) { .cui-did { color: #000 !important; } }

/* what plays now (ui.js setPlaying): the number gives way to a speaker, a pause glyph while paused; the name bold */
.cui-playnum { flex: 0 0 calc(18 * var(--px)); display: flex; align-items: center; justify-content: flex-end; font-size: var(--cui-type-9); }
.cui-playnum.cui-playonly { display: none; flex-basis: calc(16 * var(--px)); }
.cui-playing .cui-playnum.cui-playonly { display: inline-flex; }
.cui-playglyph { display: none; width: calc(16 * var(--px)); height: calc(16 * var(--px)); image-rendering: pixelated; }
.cui-playing .cui-playglyph { display: block; }
.cui-playing .cui-numtext { display: none; }
.cui-playing .cui-rowtitle, .cui-playing .cui-lvtext, .cui-playing .tt { font-weight: bold; }
.cui-lvcell > .cui-playnum { flex: 0 0 auto; }

.cui-tablewrap { overflow-x: auto; }
.cui-table { width: 100%; border-collapse: collapse; border: var(--px) solid var(--cui-ink); background: var(--cui-paper); font-size: var(--cui-type-10); }
.cui-table th {
  padding: calc(2 * var(--px)) calc(4 * var(--px)); text-align: left; white-space: nowrap; vertical-align: bottom;
  font-family: var(--chicago); font-size: var(--cui-type-12); font-weight: normal; border-bottom: var(--px) solid var(--cui-ink);
}
.cui-table td { padding: calc(3 * var(--px)) calc(4 * var(--px)); vertical-align: middle; border-top: var(--px) dotted var(--cui-dim); }
.cui-table tr:first-child td { border-top: 0; }
.cui-table td.cui-num { text-align: right; white-space: nowrap; }
.cui-table tr.cui-on td, .cui-table tr.cui-drop td { background: var(--cui-hilite); color: var(--cui-hilite-ink); }
.cui-table tr.cui-on img, .cui-table tr.cui-drop img { filter: var(--cui-glyph-on); }
.cui-table tr[tabindex]:focus-visible td { box-shadow: inset 0 calc(2 * var(--px)) 0 var(--cui-ink), inset 0 calc(-2 * var(--px)) 0 var(--cui-ink); }
.cui-table tr.cui-on[tabindex]:focus-visible td { box-shadow: inset 0 calc(2 * var(--px)) 0 var(--cui-paper), inset 0 calc(-2 * var(--px)) 0 var(--cui-paper); }
.cui-sort {
  display: inline-flex; align-items: center; gap: calc(4 * var(--px)); margin: 0; padding: 0; border: 0; background: none;
  font: inherit; color: inherit; text-decoration: none; cursor: default; -webkit-appearance: none; appearance: none;
}
.cui-sort img { width: calc(7 * var(--px)); height: calc(4 * var(--px)); image-rendering: pixelated; }
.cui-sort.cui-on { font-weight: bold; }

/* ---- progress bars (cdanui's bar) and the wristwatch -------------------------------------------------------- */

.cui-progress { position: relative; box-sizing: border-box; height: calc(10 * var(--px)); min-width: calc(40 * var(--px));
  border: var(--px) solid var(--cui-ink); background: var(--cui-paper); overflow: hidden; }
.cui-progress > .cui-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--cui-ink); }
.cui-progress.cui-near > .cui-fill { background: var(--cui-near); }
.cui-progress.cui-full > .cui-fill { background: var(--cui-full); }
.cui-progress.cui-run > .cui-fill {
  width: 100%; background: var(--cui-paper) url("barber.svg") repeat 0 0 / calc(8 * var(--px)) calc(8 * var(--px));
  image-rendering: pixelated; animation: cui-run .8s steps(8) infinite;
}
@keyframes cui-run { from { background-position: 0 0; } to { background-position: calc(8 * var(--px)) 0; } }
@media (prefers-reduced-motion: reduce) { .cui-progress.cui-run > .cui-fill { animation: none; } }
.cui-progress.cui-small { height: calc(6 * var(--px)); }
.cui-progress.cui-large { height: calc(14 * var(--px)); }
.cui-progress .cui-mark { position: absolute; top: 0; bottom: 0; width: var(--px); background: var(--cui-ink);
  box-shadow: var(--px) 0 0 var(--cui-paper), calc(-1 * var(--px)) 0 0 var(--cui-paper); }

img.cui-watch { display: inline-block; width: var(--cui-icon); height: var(--cui-icon); image-rendering: pixelated; vertical-align: middle; }
/* Oscar's spinner (#612, #1287: the one loader, black on every theme; what holds it sets its size by its font size).
   #1974: one picture, the half-filled circle, turned clockwise; ui.js gives each one the turn's length and where in
   the turn the page's one clock stands, so all of them turn together */
.cui-spool { display: inline-block; flex: none; color: #000; font-size: var(--cui-icon); line-height: 1; width: 1em; height: 1em;
  vertical-align: middle; background: currentColor; -webkit-mask: url("spin.svg") center / contain no-repeat;
  mask: url("spin.svg") center / contain no-repeat; animation: cui-spin linear infinite; }
@keyframes cui-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cui-spool { animation: none; } }
.cui-spool[hidden] { display: none; }
/* #2255: a busy picture an app draws turns the same way, on the same clock (spinPicture) */
img.cui-spinpic { animation: cui-spin linear infinite; }
@media (prefers-reduced-motion: reduce) { img.cui-spinpic { animation: none; } }
/* #1965: the Try Again line: the caution sign, the words and the refresh button, in a row */
.cui-tryagain { display: flex; align-items: center; gap: calc(4 * var(--px)); }
.cui-tryagain[hidden] { display: none; }
.cui-tryagain > .cui-icon { flex: none; }
@media (forced-colors: active) { .cui-spool { forced-color-adjust: none; background: CanvasText; } }
/* #1929: the lit bulb over Oscar's head while he thinks. The glyph's own lines in ink over its shape in yellow, both
   masks so they follow the tokens; two stepped colours, still with reduced motion, and no colour on a one-colour screen */
.cui-thinkbulb { position: absolute; z-index: 1; display: block; pointer-events: none; forced-color-adjust: none;
  width: calc(16 * var(--px)); height: calc(16 * var(--px)); }
.cui-thinkbulb[hidden] { display: none; }
@supports ((mask-image: none) or (-webkit-mask-image: none)) and (--a: 0) {
.cui-thinkbulb::before, .cui-thinkbulb::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
.cui-thinkbulb::before { background: var(--cui-yellow); animation: cui-thinkbulb-glow 1.2s steps(1) infinite;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Cpath d='M5 1h6v1h1v1h1v4h-1v1h-1v5h-1v1h-4v-1h-1v-5h-1v-1h-1v-4h1v-1h1z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Cpath d='M5 1h6v1h1v1h1v4h-1v1h-1v5h-1v1h-4v-1h-1v-5h-1v-1h-1v-4h1v-1h1z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.cui-thinkbulb::after { background: var(--cui-ink);
  -webkit-mask: url(../glyphs/bulb.svg) 0 0 / 100% 100% no-repeat; mask: url(../glyphs/bulb.svg) 0 0 / 100% 100% no-repeat; }
}
@keyframes cui-thinkbulb-glow { 0% { background-color: var(--cui-yellow); } 50% { background-color: var(--cui-near); } }
@media (prefers-reduced-motion: reduce) { .cui-thinkbulb::before { animation: none; } }
.cui-loading { display: flex; align-items: center; justify-content: center; min-height: calc(120 * var(--px)); height: 100%; }

/* ---- toolbars -------------------------------------------------------------------------------------------------- */

.cui-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cui-space-under) var(--cui-gap-row); min-width: 0; }
.cui-toolbar.cui-end { justify-content: flex-end; }
.cui-toolbar.cui-nowrap { flex-wrap: nowrap; }
.cui-toolbar > .cui-spacer { flex: 1 1 auto; }
.cui-toolbar > .cui-field.cui-wide { flex: 1 1 0; width: auto; min-width: 0; }   /* #687: a search leading a bar takes the room the buttons leave */
.cui-toolbar > .cui-gap { flex: 0 0 auto; width: calc(6 * var(--px)); }
/* #1473 (the user, 6 Nov: "a shared framework containing a layout skeleton and UI components"): the row skeleton. Any
   control put in a toolbar or a form's row has the one height, --cui-bar-h, no margin of its own to push it off the row's
   centre line, and that is all an app need do: C.toolbar(...), or class formrow. A row with a label stacked over a
   field lines the controls up along their feet. render_controls_guard.py fails a row in any window that does not. */
:root { --cui-bar-h: var(--cui-control-h); }
/* a phone's row is a finger high: #2308 makes every button there --cui-touch, so the row's pop-ups, fields and segments
   take the same height and the row keeps one line (13 Nov: at 28 they stood 16 short of the buttons beside them) */
html.dev-phone { --cui-bar-h: var(--cui-touch); }
html.dev-tablet { --cui-bar-h: calc(24 * var(--px)); }
:root :is(.cui-toolbar, .formrow) :is(.cui-popup, .cui-field:not(.cui-area), .cui-bevel) {
  height: var(--cui-bar-h); margin-top: 0; margin-bottom: 0; }
:root :is(.cui-toolbar, .formrow) .cui-seg > .cui-segb { height: var(--cui-bar-h); }
/* the two arrows stacked in the bar's height; a phone keeps its own, side by side and each a finger square (#2423: the
   stacking reached a phone and left More and Less 22 px high) */
:root:not(.dev-phone) :is(.cui-toolbar, .formrow) .cui-number > .cui-arrow, :root:not(.dev-phone) :is(.cui-toolbar, .formrow) .cui-number > * > .cui-arrow {
  height: calc((var(--cui-bar-h) + var(--px)) / 2); }
:root :is(.cui-toolbar, .formrow) .cui-check { min-height: var(--cui-bar-h); }
/* a switch whose segments wrap onto more lines (Magician's views beside New Puppy, #2105): the row's line is its first */
:is(.cui-toolbar, .formrow):has(> .cui-seg.cui-wrap) { align-items: flex-start; }
/* a phone's switches wrap as cui-wrap does (#2308), so a row holding one lines up by its first line in the same way: beside
   a pop-up or a button a finger high, a switch that went onto two lines stood its other controls in its middle */
html.dev-phone :is(.cui-toolbar, .formrow):has(> .cui-seg:not(.cui-sidetabs)):not(:has(> .cui-labelled > :is(.cui-popup, .cui-field, .cui-number))) {
  align-items: flex-start; }
:is(.cui-toolbar, .formrow):has(> .cui-labelled > :is(.cui-popup, .cui-field, .cui-number)),
.form .formrow:has(> .lab > :is(.cui-popup, .cui-field, .cui-number)) { align-items: flex-end; }
td:has(.cui-check), td:has(.cui-btn) { vertical-align: middle; }
td .cui-check { vertical-align: middle; }   /* on the cell's centre line, as a button is, not on a line of text's foot */

/* ---- a row's actions (#1724): glyph buttons on the status line; the line wraps, never clips or squeezes. The status
 * takes what is left and wraps by itself; the bar keeps its whole width and goes under the status when there is no
 * room. A line under 44 of its own em (440 Mac px at the status's 10) folds the minor actions into More: a phone, a
 * narrow window or a sidebar. em in a container query is the container's own, so it follows the Mac pixel. */
.cui-actline { container: cui-actline / inline-size; display: flex; flex-wrap: wrap; align-items: center;
  gap: calc(2 * var(--px)) calc(8 * var(--px)); min-width: 0; font-size: var(--cui-type-10); }
.cui-actline > .cui-actlead { flex: 1 1 calc(120 * var(--px)); min-width: 0; overflow-wrap: anywhere; }
.cui-actline > .cui-actions { margin-left: auto; }
.cui-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; flex: 0 1 auto;
  gap: calc(4 * var(--px)); min-width: 0; max-width: 100%; }
.cui-actions > * { flex: 0 0 auto; margin-top: 0; margin-bottom: 0; }
.cui-actions > .cui-default { margin: calc(4 * var(--px)); }
.cui-actions > .cui-popup { width: auto; max-width: none; overflow: visible; text-overflow: clip; }
.cui-actions > .cui-act-more { display: none; }
@container cui-actline (max-width: 44em) {
  .cui-actions > .cui-act-minor { display: none; }
  .cui-actions > .cui-act-more { display: inline-flex; }
}
/* #2308: a bar that keeps one row (ui.js overflow): what went into More, or stands in as a pop-up, is not drawn */
div.cui-ovbar { flex-wrap: nowrap; }                    /* one row whatever the app's own sheet says */
.cui-ovbar > * { flex-shrink: 0; }
.cui-ovbar > .cui-seg { flex-wrap: nowrap; }
.cui-ovbar > .cui-ov-out { display: none !important; }

/* ---- the notice panel and the message band (cdanui CUI_Say, 1.5 M1) ------------------------------------------- */

.cui-notice { display: flex; align-items: center; gap: calc(8 * var(--px)); width: fit-content; max-width: 100%; box-sizing: border-box;
  margin: calc(6 * var(--px)) 0; padding: calc(6 * var(--px)) calc(10 * var(--px)); background: var(--cui-paper); color: var(--cui-ink);
  border: var(--px) solid var(--cui-ink); box-shadow: var(--cui-shadow); font-family: var(--chicago); font-size: var(--cui-type-12); }
.cui-notice > .cui-icon { flex: 0 0 auto; width: var(--cui-icon-lg); height: var(--cui-icon-lg); image-rendering: pixelated; }
/* #1777: a warning's border and glyph in the kit's warning colour (ui.js NTONES); the 1-bit look keeps them black */
.cui-notice.cui-ntone.caution { border-color: var(--cui-secure); }
.cui-notice > .cui-tint.cui-ntint { width: var(--cui-icon-lg); height: var(--cui-icon-lg); }
html.cdan-bw .cui-notice.cui-ntone, body.cdan-bw .cui-notice.cui-ntone { border-color: var(--cui-ink); }
.cui-notice > .cui-text { min-width: 0; overflow-wrap: anywhere; cursor: text; user-select: text; -webkit-user-select: text; }

.cui-band {
  position: fixed; z-index: 9500; left: 50%; bottom: calc(8 * var(--px) + var(--safe-y, 0px) + var(--minbar-space, 0px)); transform: translateX(-50%);
  display: flex; align-items: center; gap: calc(10 * var(--px)); box-sizing: border-box;
  max-width: calc(100vw - 16px); min-height: calc(22 * var(--px)); padding: calc(2 * var(--px)) calc(4 * var(--px)) calc(2 * var(--px)) calc(8 * var(--px));
  background: var(--cui-ink); color: var(--cui-paper); font-family: var(--geneva); font-size: var(--cui-type-10); line-height: 1.3;
}
/* #1728: the words are text to choose and copy, never a button; the close box and an error's Copy are kit buttons */
.cui-band > .cui-text { min-width: 0; overflow-wrap: anywhere; cursor: text; user-select: text; -webkit-user-select: text;
  -webkit-touch-callout: default; }
.cui-band > .cui-text::selection { background: var(--cui-paper); color: var(--cui-ink); }
.cui-band > .cui-btn { flex: 0 0 auto; }
/* #1996: in what it is about, in the run of it and over none of it (ui.js bandHome): a dialog's row above its buttons;
   a window's own line under its body, the close box clear of the corner a window is sized by. A long message scrolls
   inside itself, so it never takes the room of the buttons */
.cui-band > .cui-text { max-height: 40vh; overflow-y: auto; }
.cui-alert > .cui-band { grid-column: 1 / -1; max-width: none; }
.win > .cui-band { flex: 0 0 auto; max-width: none; padding-right: calc(4 * var(--px) + 16px); }
.cui-band > .cui-bandcopy { margin-left: auto; }
.cui-band > .cui-bandcopy + .cui-bandx { margin-left: calc(-4 * var(--px)); }
.cui-band > .cui-bandbtn {
  flex: 0 0 auto; margin: 0; height: calc(18 * var(--px)); padding: 0 calc(8 * var(--px)); background: var(--cui-ink); color: var(--cui-paper);
  border: var(--px) solid var(--cui-paper); border-radius: 0; font-family: var(--geneva); font-size: var(--cui-type-10); font-weight: bold;
  cursor: default; -webkit-appearance: none; appearance: none; outline: none;
}
.cui-band > .cui-bandbtn:active, .cui-band > .cui-bandbtn:focus-visible { background: var(--cui-paper); color: var(--cui-ink); }
/* ---- an icon coloured whole (#540, tint()): the colour cut to the glyph's whole shape (its inside made white), its
   black lines over it multiplied (white takes the colour, black stays black); a glyph that closes nothing in shows the
   colour alone, its lines coloured; until the glyph is read, the glyph as drawn.
   Never inverted in a chosen row: the colour is the point, and its black lines read on the row's black too. ---- */
.cui-tint { position: relative; display: inline-block; flex: 0 0 auto; width: var(--cui-icon); height: var(--cui-icon);
  isolation: isolate; vertical-align: middle; }
.cui-tint > .cui-tintfill { position: absolute; inset: 0; -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.cui-tint > .cui-tintlines { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: multiply;
  image-rendering: pixelated; filter: none !important; }
.cui-tint.cui-tint-line > .cui-tintlines { display: none; }
.cui-tint.cui-tint-wait > .cui-tintfill { display: none; }
.cui-tint.cui-tint-wait > .cui-tintlines { mix-blend-mode: normal; }
/* #1819: tint(..., { bw }) in the 1-bit look: the glyph as drawn, white inside its black lines, a glyph of lines alone in
   black, so it reads on a monochrome screen as every other glyph does */
html.cdan-bw .cui-tint.cui-tint-1bit > .cui-tintfill, body.cdan-bw .cui-tint.cui-tint-1bit > .cui-tintfill { background-color: var(--cui-paper) !important; background-image: none !important; }
html.cdan-bw .cui-tint.cui-tint-1bit.cui-tint-line > .cui-tintfill, body.cdan-bw .cui-tint.cui-tint-1bit.cui-tint-line > .cui-tintfill { background-color: var(--cui-ink) !important; }
/* ---- Rainbow (#380): a fill, the moving letters of a magic word, its underline; still when motion is turned off ---- */
.cui-rainbow, .cui-well > .cui-chip.cui-rainbow, .cui-swatch.cui-rainbow, .cui-tagkey.cui-rainbow, .cui-tag.cui-on .cui-tagkey.cui-rainbow {
  background-color: var(--cui-paper); background-image: var(--cui-rainbow); background-repeat: no-repeat; background-size: 100% 100%; }
.cui-rainbow-text { background-image: var(--cui-rainbow), var(--cui-rainbow); background-size: 200% 100%; background-repeat: repeat-x;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: cui-rainbow-move 4s steps(24) infinite; }
.cui-rainbow-line { background-image: var(--cui-rainbow); background-repeat: no-repeat; background-position: left bottom;
  background-size: 100% calc(2 * var(--px)); padding-bottom: var(--px); }
@keyframes cui-rainbow-move { from { background-position: 0 0; } to { background-position: 200% 0; } }
@media (prefers-reduced-motion: reduce) { .cui-rainbow-text { animation: none; } }
/* #1874 (Lloyd, 9 Nov: "the link tree icon should be animated rainbow colour"): a rainbow fill that moves as his logo's
   does, cui-rainbow-moving (tint()'s moving); still when motion is turned off. The black and white look has no colour:
   the rainbow's solid stand-in, ink, as the containers' rainbow top has (#1390) */
.cui-rainbow.cui-rainbow-moving { background-image: var(--cui-rainbow), var(--cui-rainbow); background-size: 200% 100%;
  background-repeat: repeat-x; animation: cui-rainbow-move 4s steps(24) infinite; }
@media (prefers-reduced-motion: reduce) { .cui-rainbow.cui-rainbow-moving { animation: none; } }
html.cdan-bw .cui-rainbow.cui-rainbow-moving, body.cdan-bw .cui-rainbow.cui-rainbow-moving {
  animation: none; background-image: none; background-color: var(--cui-ink); }
@media (monochrome), (forced-colors: active) {
  .cui-rainbow.cui-rainbow-moving { animation: none; forced-color-adjust: none; background-image: none; background-color: #000; }
}
/* #1638 (Lloyd, 8 Nov: "its meant to be animated rainbow"): the rainbow part of a chart, Other in a drive's bar, its
   slice and its key move as the rainbow words do; still when motion is turned off; a one-bit dither of its own in
   black and white, where no colour can show */
.cui-seg.cui-rainbow, .cui-key.cui-rainbow { background-image: var(--cui-rainbow), var(--cui-rainbow); background-size: 200% 100%;
  background-repeat: repeat-x; animation: cui-rainbow-move 4s steps(24) infinite; }
@media (prefers-reduced-motion: reduce) { .cui-seg.cui-rainbow, .cui-key.cui-rainbow { animation: none; } }
@media (monochrome), (forced-colors: active) {
  .cui-stack .cui-seg, .cui-key { forced-color-adjust: none; }
  .cui-seg.cui-rainbow, .cui-key.cui-rainbow { animation: none; forced-color-adjust: none; background-color: #fff;
    background-image: repeating-conic-gradient(#000 0 25%, #fff 0 100%); background-size: calc(3 * var(--px)) calc(3 * var(--px)); }
}
/* #1828 (Lloyd, 9 Nov: "can the session background go animated rainbow and a number show on the right of the session
   name with the number of things hes completed"): news(), a row or menu item with things finished in it since it was
   looked at. Behind it the moving rainbow of his logo and the rainbow words, under a wash of paper so its black words
   read on every colour, moving slowly so a list of them stays calm; still when motion is turned off. The count after
   its name is the kit's count, in the line. The black and white look has no colour: the rainbow's solid stand-in, a
   band of ink, as the containers' rainbow top has (#1390), down the item's left edge. */
.cui-row.cui-news, .cui-menuitem.cui-news {
  background-color: var(--cui-paper);
  background-image: linear-gradient(var(--cui-news-wash), var(--cui-news-wash)), var(--cui-rainbow), var(--cui-rainbow);
  background-size: 100% 100%, 200% 100%, 200% 100%; background-repeat: repeat-x;
  animation: cui-rainbow-move var(--cui-news-time) steps(96) infinite; }
/* #2029: a row's count is its last part, right of its date and time, centred in the row's height (the row centres its
   parts); a menu item's stays after its label */
.cui-row > .cui-count-in, .cui-mhead > .cui-count-in { flex: 0 0 auto; }
.cui-count.cui-count-in { position: static; display: inline-block; vertical-align: middle; align-self: center;
  min-width: calc(14 * var(--px)); height: calc(13 * var(--px)); line-height: var(--cui-type-11); border-color: var(--cui-ink); }
.cui-mhead { display: flex; align-items: center; gap: calc(4 * var(--px)); flex: 1 1 auto; min-width: 0; }
.cui-mhead > .cui-mlabel { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cui-row.cui-news:active:not(.cui-static), .cui-menuitem.cui-news:hover:not(:disabled), .cui-menuitem.cui-news:focus {
  background: var(--cui-ink); animation: none; }
@media (prefers-reduced-motion: reduce) { .cui-row.cui-news, .cui-menuitem.cui-news { animation: none; } }
html.cdan-bw .cui-row.cui-news, body.cdan-bw .cui-row.cui-news, html.cdan-bw .cui-menuitem.cui-news, body.cdan-bw .cui-menuitem.cui-news {
  animation: none; background-image: none; background-color: var(--cui-paper);
  box-shadow: inset calc(4 * var(--px)) 0 0 var(--cui-ink); }
@media (monochrome), (forced-colors: active) {
  .cui-row.cui-news, .cui-menuitem.cui-news { animation: none; background-image: none; box-shadow: inset calc(4 * var(--px)) 0 0 CanvasText; }
}
/* #531: a helper named in a conversation, @Name in the moving rainbow, bold so its lighter colours still read; kept
 * on one line. Where text cannot be clipped to a fill it stays plain black */
/* #1922: a quoted section: colour only, its letters' font and size the words', so nothing moves under the caret */
.cui-quoted { color: var(--cui-quote); }
.cui-mention { font-weight: bold; white-space: nowrap; }
/* #619: in a conversation it is a link to that helper: underlined under the pointer and when focused */
.cui-mention[role=link] { cursor: pointer; }
.cui-mention.cui-linkish:hover, .cui-mention.cui-linkish:focus-visible { text-decoration: underline; text-decoration-color: currentColor; outline: none; }
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .cui-mention.cui-rainbow-text { color: #000; -webkit-text-fill-color: #000; background-image: none; animation: none; } }
/* Sad Oscar where a picture could not be loaded: drawn as pixels, inside the picture's own box */
img.cui-sad { image-rendering: pixelated; object-fit: contain; background: var(--cui-paper); }

/* CUI.copy's hidden text area, for the browsers whose clipboard needs a selection: never seen */
.cui-clip { position: fixed; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cui-band.cui-inwin { position: absolute; left: 0; right: 0; bottom: 0; transform: none; max-width: none; }

/* ---- alerts and dialogs (cdanui CUI_Alert, 4.11): black, white, thick black, a shadow ---------------------- */

.cui-modal { position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 9000; display: flex; align-items: center;
  justify-content: center; padding: calc(10 * var(--px)); }
/* #633: Oscar attachments, one look everywhere (ui.js attachment): as Requests drew them, a picture small in its own shape
   and any other file by its mark, name and size in a box; nothing is wider than what holds it */
.cui-atts { display: flex; flex-wrap: wrap; align-items: flex-start; gap: calc(4 * var(--px)); max-width: 100%; min-width: 0; box-sizing: border-box; }
.cui-att { position: relative; display: inline-flex; align-items: center; max-width: 100%; min-width: 0; box-sizing: border-box; }
.cui-attopen { display: inline-flex; align-items: center; gap: calc(3 * var(--px)); min-width: 0; max-width: 100%; }
.cui-attcan { cursor: pointer; }
.cui-attcan:focus-visible { outline: calc(2 * var(--px)) solid var(--cui-ink); outline-offset: var(--px); }
/* the limit is on the picture itself, and in lengths: a limit in per cent does not count when its box measures itself,
   and the box stood as wide as the whole picture beside a small one. In a narrower holder it shrinks as a flex item. */
.cui-attimg { display: block; width: auto; height: auto; max-width: calc(96 * var(--px)); max-height: calc(72 * var(--px));
  min-width: calc(16 * var(--px)); min-height: calc(16 * var(--px)); object-fit: contain; border: var(--px) solid var(--cui-ink); background: var(--cui-paper); box-sizing: border-box; }
/* Remove beside a picture, never over it: on a small picture it took every tap */
.cui-att-pic { gap: calc(2 * var(--px)); }
/* #1537: a picture comes after its row is drawn (it loads as it nears the screen, or is fetched with the sign-in's key).
   Its height is kept from the start, so what is under it never moves: in Firefox a row grew by the picture between press
   and release, and the click on the control below went nowhere. #1802: only until it is there (ui.js attachment takes
   cui-att-late off at its load, after any press), then the box is the picture's own size (#633) */
.cui-att-pic .cui-attopen { position: relative; }
.cui-att-late .cui-attopen { min-height: calc(72 * var(--px)); }
/* #2256 #2257: while a picture comes, the one loader in its box; the picture shows only once it is whole */
.cui-attimg.cui-attimg-wait { visibility: hidden; position: absolute; }
.cui-attwait { margin: auto; }
.cui-att-late .cui-attopen { display: flex; align-items: center; justify-content: center; }
/* #1537: and never what a list holds still by. A browser keeps the first thing showing at the top of a list where it is
   while the page changes (scroll anchoring). Before it loads, the picture is a 16-pixel box in the middle of that kept
   height, and it fills the height as it loads, so its top rises 28 Mac pixels. Firefox held still by the picture across
   the top of the Requests window, so it scrolled the whole list 56 screen pixels as the picture arrived, the picture
   loading as the pointer brought it into view, between press and release, and the click on Blocking went nowhere. Left
   out, the list holds still by what comes after it, which does not move. */
.cui-att-late { overflow-anchor: none; }
.cui-att-pic .cui-attopen > .cui-watch, .cui-att-pic .cui-attopen > .cui-icon { position: absolute; left: var(--px); bottom: var(--px); }
.cui-att-file { border: var(--px) solid var(--cui-ink); background: var(--cui-paper); color: var(--cui-ink); padding: 0 calc(2 * var(--px)) 0 calc(3 * var(--px));
  font-size: var(--cui-type-10); min-height: calc(18 * var(--px)); }
.cui-attface { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: var(--cui-icon); height: var(--cui-icon); overflow: hidden; }
.cui-attface .cui-icon { flex: none; width: var(--cui-icon); height: var(--cui-icon); image-rendering: pixelated; }
.cui-attpage { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; }
.cui-attpaged { outline: var(--px) solid var(--cui-ink); }
.cui-attpaged .cui-attpage { opacity: 1; }
.cui-attpaged .cui-icon { visibility: hidden; }
.cui-attname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: calc(150 * var(--px)); }
.cui-attsize, .cui-attnote { flex: none; color: var(--cui-quiet); white-space: nowrap; }
.cui-attnote { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cui-att[data-state="up"].cui-att-file { border-style: dotted; }
.cui-att[data-state="unreadable"].cui-att-file, .cui-att[data-state="blocked"].cui-att-file { border-style: dashed; }
.cui-att[data-state="blocked"] .cui-attname { text-decoration: line-through; }
.cui-att .cui-watch { flex: none; width: calc(12 * var(--px)); height: calc(12 * var(--px)); }
/* #1905: the kit's small close box (ui.js closeBox), the one a tag has: 12 Mac pixels, no push-button frame, its reach
   wider than it looks on a touch screen; what takes an attachment off, never a 30-wide button beside it */
.cui-btn.cui-small.cui-iconly.cui-closebox { flex: none; min-width: 0; width: calc(12 * var(--px)); height: calc(12 * var(--px)); padding: 0;
  border: 0; box-shadow: none; background: transparent; position: relative; align-self: flex-start; }
.cui-btn.cui-small.cui-iconly.cui-closebox img { width: calc(9 * var(--px)); height: calc(9 * var(--px)); }
.cui-btn.cui-closebox::after, .cui-btn.cui-closebox.cui-on::after, .cui-btn.cui-closebox:active::after { border: 0; border-image: none; }
html.dev-phone .cui-btn.cui-closebox::before { content: ""; position: absolute; inset: calc((12 * var(--px) - var(--cui-touch)) / 2); }   /* #2308 */
/* #2442: an attachment's Remove reaches away from what it removes, never over it: its finger-wide reach lay over a small
   picture beside it, so a tap on the picture took Remove (render_attach_633 phone). The next attachment is that reach
   away, so it covers none of it either */
html.dev-phone .cui-att > .cui-btn.cui-closebox::before { left: 0; }
html.dev-phone .cui-atts { column-gap: calc((var(--cui-touch) - 12 * var(--px)) / 2 + 4 * var(--px)); }
.cui-btn.cui-closebox:focus-visible { outline: var(--px) dotted var(--cui-ink); outline-offset: var(--px); }
/* #1390 (Lloyd, 5 Nov 2026: "Our HTML emails ... contain a coloured top with several colours. I love it and it should be
   standard for containers"): a container's top, inside its border, the emails' band; only decoration, it says nothing.
   The 1-bit look has it as a solid line of ink */
.cui-topband, .cui-dialog { position: relative; }
.cui-topband::before, .cui-dialog::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: calc(4 * var(--px));
  background: var(--cui-topband); pointer-events: none; }
html.cdan-bw .cui-topband::before, body.cdan-bw .cui-topband::before, html.cdan-bw .cui-dialog::before, body.cdan-bw .cui-dialog::before { background: var(--cui-ink); }
.cui-alert {
  display: grid; grid-template-columns: auto 1fr; gap: calc(12 * var(--px)); box-sizing: border-box;
  width: calc(340 * var(--px)); max-width: 100%; min-width: 0; max-height: calc(100vh - 20px); overflow: auto;
  padding: calc(16 * var(--px)) calc(16 * var(--px)) calc(12 * var(--px));
  background: var(--cui-paper); border: var(--px) solid var(--cui-ink);
  box-shadow: inset 0 0 0 calc(2 * var(--px)) var(--cui-paper), inset 0 0 0 calc(5 * var(--px)) var(--cui-ink), var(--px) var(--px) 0 var(--cui-ink);
}
.cui-alert > div { min-width: 0; }
.cui-alert .cui-aicon { width: var(--cui-icon-lg); height: var(--cui-icon-lg); image-rendering: pixelated; }
.cui-alert .cui-atext { font-family: var(--chicago); font-size: var(--cui-type-12); line-height: 1.35; white-space: pre-line; overflow-wrap: anywhere; }
.cui-alert .cui-abuttons { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center;
  gap: calc(6 * var(--px)) calc(10 * var(--px)); }
.cui-alert.cui-wide { width: calc(460 * var(--px)); }
.cui-modal > .cui-alert, .cui-modeless > .cui-alert { max-width: calc(100vw - 20px); }
.cui-alert.cui-plainalert { grid-template-columns: 1fr; }
/* ---- schemes (#1892, ui.js scheme()): a part of the system in its own colours, spelled out per scheme for old browsers.
 * Dreams: deep blue, moonlit words; lists and rows let the night show through, a row picked is moonlight with blue
 * words; the controls stay System 7's own. Its art, the crescent moon top right with stars beside it (#2244) and
 * more stars bottom left (tools/scheme_art.py), is a mask over --cui-dream-glow on the box's ::after, faint and behind everything in it.
 * Memory: yellow; a row of it (a memory's history in a dream's list) is the tint with ink words. The 1-bit look keeps
 * them apart by shape: the dream scheme is night, white on black, its art white; memory is paper. */
.cui-scheme-dream { background-color: var(--cui-dream); color: var(--cui-dream-ink); }
.cui-alert.cui-scheme-dream { box-shadow: inset 0 0 0 calc(2 * var(--px)) var(--cui-dream), inset 0 0 0 calc(5 * var(--px)) var(--cui-ink), var(--px) var(--px) 0 var(--cui-ink); }
.cui-scheme-dream .cui-list { background: transparent; border-color: var(--cui-dream-rule); }
.cui-scheme-dream .cui-row { background: transparent; color: var(--cui-dream-ink); border-bottom-color: var(--cui-dream-rule); }
.cui-scheme-dream .cui-rowsub { color: var(--cui-dream-quiet); }
.cui-scheme-dream .cui-row.cui-on, .cui-scheme-dream .cui-row:active:not(.cui-static) { background: var(--cui-dream-ink); color: var(--cui-dream); }
.cui-scheme-dream .cui-row.cui-on .cui-rowsub, .cui-scheme-dream .cui-row:active:not(.cui-static) .cui-rowsub { color: var(--cui-dream); }
.cui-scheme-dream .cui-row:focus-visible { box-shadow: inset 0 0 0 calc(2 * var(--px)) var(--cui-dream-ink); }
/* the art's box: relative only where nothing else places it (a window keeps its own place) */
:where(.cui-scheme-art) { position: relative; }
.cui-scheme-art { isolation: isolate; }
.cui-scheme-art.cui-scheme-dream::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .4;
  background-color: var(--cui-dream-glow);
  -webkit-mask-image: url("scheme-moon.svg"), url("scheme-stars.svg"), url("scheme-nearmoon.svg");
  mask-image: url("scheme-moon.svg"), url("scheme-stars.svg"), url("scheme-nearmoon.svg");
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: right calc(10 * var(--px)) top calc(10 * var(--px)), left calc(8 * var(--px)) bottom calc(8 * var(--px)), right calc(68 * var(--px)) top calc(4 * var(--px));
  mask-position: right calc(10 * var(--px)) top calc(10 * var(--px)), left calc(8 * var(--px)) bottom calc(8 * var(--px)), right calc(68 * var(--px)) top calc(4 * var(--px));
  -webkit-mask-size: calc(56 * var(--px)) calc(56 * var(--px)), calc(96 * var(--px)) calc(56 * var(--px)), calc(80 * var(--px)) calc(56 * var(--px));
  mask-size: calc(56 * var(--px)) calc(56 * var(--px)), calc(96 * var(--px)) calc(56 * var(--px)), calc(80 * var(--px)) calc(56 * var(--px)); }
.cui-scheme-memory { background-color: var(--cui-memory-tint); color: var(--cui-ink); }
/* a window in a scheme: its body's own colour, under the window's frame and title bar */
.win.cui-scheme-dream { background-color: var(--cui-dream); color: var(--cui-dream-ink); }
.win.cui-scheme-memory { background-color: var(--cui-memory-tint); }
.cui-row.cui-scheme-memory, .cui-scheme-dream .cui-row.cui-scheme-memory { background: var(--cui-memory-tint); color: var(--cui-ink); }
.cui-scheme-dream .cui-row.cui-scheme-memory .cui-rowsub { color: var(--cui-quiet); }
.cui-scheme-dream .cui-row.cui-scheme-memory.cui-on, .cui-scheme-dream .cui-row.cui-scheme-memory:active:not(.cui-static) { background: var(--cui-memory); color: var(--cui-ink); }
.cui-schememark { display: inline-block; padding: 0 calc(3 * var(--px)); border: var(--px) solid var(--cui-ink); white-space: nowrap;
  line-height: var(--cui-type-11); font-weight: bold; }
.cui-schememark.cui-scheme-memory { background: var(--cui-memory); }
html.cdan-bw .cui-scheme-dream, body.cdan-bw .cui-scheme-dream { background-color: var(--cui-ink); color: var(--cui-paper); }
html.cdan-bw .cui-alert.cui-scheme-dream, body.cdan-bw .cui-alert.cui-scheme-dream { box-shadow: inset 0 0 0 calc(2 * var(--px)) var(--cui-ink), inset 0 0 0 calc(3 * var(--px)) var(--cui-paper), var(--px) var(--px) 0 var(--cui-ink); }
html.cdan-bw .cui-scheme-dream .cui-list, body.cdan-bw .cui-scheme-dream .cui-list { border-color: var(--cui-paper); }
html.cdan-bw .cui-scheme-dream .cui-row, body.cdan-bw .cui-scheme-dream .cui-row { color: var(--cui-paper); border-bottom-color: var(--cui-paper); }
html.cdan-bw .cui-scheme-dream .cui-rowsub, body.cdan-bw .cui-scheme-dream .cui-rowsub { color: var(--cui-paper); }
html.cdan-bw .cui-scheme-dream .cui-row.cui-on, body.cdan-bw .cui-scheme-dream .cui-row.cui-on,
html.cdan-bw .cui-scheme-dream .cui-row.cui-on .cui-rowsub, body.cdan-bw .cui-scheme-dream .cui-row.cui-on .cui-rowsub { background: var(--cui-paper); color: var(--cui-ink); }
html.cdan-bw .cui-scheme-art.cui-scheme-dream::after, body.cdan-bw .cui-scheme-art.cui-scheme-dream::after { background-color: var(--cui-paper); opacity: .6; }
html.cdan-bw .cui-scheme-memory, body.cdan-bw .cui-scheme-memory,
html.cdan-bw .cui-row.cui-scheme-memory, body.cdan-bw .cui-row.cui-scheme-memory,
html.cdan-bw .cui-scheme-dream .cui-row.cui-scheme-memory, body.cdan-bw .cui-scheme-dream .cui-row.cui-scheme-memory,
html.cdan-bw .cui-schememark.cui-scheme-memory, body.cdan-bw .cui-schememark.cui-scheme-memory { background: var(--cui-paper); color: var(--cui-ink); }
html.cdan-bw .cui-scheme-dream .cui-row.cui-scheme-memory .cui-rowsub, body.cdan-bw .cui-scheme-dream .cui-row.cui-scheme-memory .cui-rowsub { color: var(--cui-ink); }
@media (monochrome) {
  .cui-scheme-dream { background-color: var(--cui-ink); color: var(--cui-paper); }
  .cui-scheme-dream .cui-list, .cui-scheme-dream .cui-row { border-color: var(--cui-paper); }
  .cui-scheme-dream .cui-rowsub { color: var(--cui-paper); }
  .cui-scheme-art.cui-scheme-dream::after { background-color: var(--cui-paper); opacity: .6; }
  .cui-scheme-memory, .cui-row.cui-scheme-memory, .cui-scheme-dream .cui-row.cui-scheme-memory, .cui-schememark.cui-scheme-memory { background: var(--cui-paper); color: var(--cui-ink); }
  .cui-scheme-dream .cui-row.cui-scheme-memory .cui-rowsub { color: var(--cui-ink); }
}
/* an alert drawn in place (Oscar's Allow): the 32 px icon at the top left, the words wrapping beside it, what it is
 * about and the buttons under both, all inside the frame at any width */
.cui-acard { display: grid; grid-template-columns: calc(32 * var(--px)) minmax(0, 1fr); align-items: start;
  gap: calc(6 * var(--px)) calc(10 * var(--px)); box-sizing: border-box; width: calc(360 * var(--px)); max-width: 100%; min-width: 0;
  padding: calc(8 * var(--px)) calc(10 * var(--px)); background: var(--cui-paper); color: var(--cui-ink);
  border: var(--px) solid var(--cui-ink); box-shadow: var(--cui-shadow); }
.cui-acard > .cui-aicon { display: block; width: var(--cui-icon-lg); height: var(--cui-icon-lg); image-rendering: pixelated; }
.cui-acard > .cui-atext { min-width: 0; align-self: center; font-family: var(--chicago); font-size: var(--cui-type-12);
  line-height: 1.35; white-space: pre-line; overflow-wrap: anywhere; }
.cui-acard > .cui-abody, .cui-acard > .cui-abuttons { grid-column: 1 / -1; min-width: 0; }
.cui-acard > .cui-abody { display: flex; flex-direction: column; gap: calc(4 * var(--px)); }
.cui-acard > .cui-abuttons { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: calc(6 * var(--px)) calc(10 * var(--px)); }
.cui-acard .cui-adone { display: flex; align-items: center; gap: calc(4 * var(--px)); font-family: var(--chicago); font-size: var(--cui-type-11); }
.cui-acard .cui-adone > .cui-icon { width: var(--cui-icon); height: var(--cui-icon); margin: var(--cui-icon-sm-inset); }
/* #533: the person's own words as the answer, where the buttons were: as they wrote them, with the files they sent */
.cui-acard .cui-adoneown { align-items: flex-start; font-family: inherit; font-size: var(--cui-type-12); max-width: 100%; }
.cui-acard .cui-adoneown > .cui-icon { flex: none; margin-top: calc(1 * var(--px)); }
.cui-acard .cui-adonebody { display: flex; flex-direction: column; gap: calc(4 * var(--px)); min-width: 0; }
.cui-acard .cui-adoneown .cui-adonetext { white-space: pre-wrap; overflow-wrap: anywhere; }
.cui-acard .cui-labelled .cui-field { width: 100%; box-sizing: border-box; }
/* several requests on one card (#43): each its own words, what it is about and its buttons, a rule above each */
.cui-acard .cui-aitem { display: flex; flex-direction: column; gap: calc(4 * var(--px)); min-width: 0;
  padding-top: calc(6 * var(--px)); border-top: var(--px) solid var(--cui-ink); }
.cui-acard .cui-aitem > .cui-aitext { font-family: var(--chicago); font-size: var(--cui-type-12); line-height: 1.35;
  white-space: pre-line; overflow-wrap: anywhere; }
.cui-acard .cui-aitem > .cui-abuttons { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center;
  gap: calc(6 * var(--px)) calc(10 * var(--px)); }
/* #386: a soft approval (blue, routine) and a hard one (Oscar Secure orange, asked every time): the frame and a band
 * of the colour at the top, the kind of a hard one named in it */
.cui-acard.cui-asoft, .cui-acard.cui-ahard { border-width: calc(2 * var(--px)); border-style: solid; }
.cui-acard.cui-asoft { border-color: var(--cui-soft); box-shadow: var(--px) var(--px) 0 var(--cui-soft);
  background: linear-gradient(var(--cui-soft-tint), var(--cui-soft-tint)) top / 100% calc(4 * var(--px)) no-repeat, var(--cui-paper); }
.cui-acard.cui-ahard { border-color: var(--cui-secure); box-shadow: var(--px) var(--px) 0 var(--cui-secure);
  background: linear-gradient(var(--cui-secure-tint), var(--cui-secure-tint)) top / 100% calc(4 * var(--px)) no-repeat, var(--cui-paper); }
.cui-acard > .cui-atag { grid-column: 1 / -1; justify-self: start; font-family: var(--chicago); font-size: var(--cui-type-10);
  padding: 0 calc(6 * var(--px)); border-radius: calc(3 * var(--px)); background: var(--cui-secure); color: var(--cui-paper); }
.cui-acard .cui-aitem > .cui-atag { align-self: flex-start; font-family: var(--chicago); font-size: var(--cui-type-10);
  padding: 0 calc(6 * var(--px)); border-radius: calc(3 * var(--px)); background: var(--cui-secure); color: var(--cui-paper); }
.cui-acard .cui-aitem.cui-ahard { border-top-color: var(--cui-secure); }
.cui-acard .cui-aitem.cui-asoft { border-top-color: var(--cui-soft); }
.cui-acard.cui-asoft .cui-default, .cui-acard.cui-asoft .cui-btn.cui-def { outline-color: var(--cui-soft); }
.cui-acard.cui-amany > .cui-abuttons { padding-top: calc(6 * var(--px)); border-top: var(--px) solid var(--cui-ink); }
/* #531: a request's answers (answers()): this once, then the lasting ones in the same two columns, no on the left and
 * yes on the right, each button filling its cell; the answer in other words apart under a dotted rule */
.cui-abuttons > .cui-answers { flex: 1 1 100%; min-width: 0; }
.cui-answers { display: flex; flex-direction: column; gap: calc(6 * var(--px)); min-width: 0; }
.cui-anspair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(10 * var(--px)); align-items: center; }
.cui-anspair > .cui-btn { width: 100%; min-width: 0; }
/* the default's ring sits in its margin: the button shrinks by it, so ring and all stay in the cell, centred */
.cui-anspair > .cui-btn.cui-default { width: calc(100% - 8 * var(--px)); justify-self: center; margin-left: 0; margin-right: 0; }
.cui-anspair > .cui-btn > .cui-label { max-width: 100%; }
.cui-ansalways + .cui-ansalways { margin-top: calc(-2 * var(--px)); }
.cui-ansother { display: flex; justify-content: flex-start; padding-top: calc(6 * var(--px)); border-top: var(--px) dotted var(--cui-ink); }
.cui-ansother > .cui-btn { min-width: calc(50% - 5 * var(--px)); }
/* too narrow for two buttons side by side (a very small phone): one column, this once first */
@media (max-width: 300px) { .cui-anspair { grid-template-columns: minmax(0, 1fr); } .cui-ansother > .cui-btn { width: 100%; } }

/* ---- window chrome and scroll bars (the windows app.js openWin makes) ----------------------------------------- */

.win {
  position: absolute; display: flex; flex-direction: column;
  min-width: calc(160 * var(--px)); min-height: calc(80 * var(--px)); max-width: 100%;
  background: var(--cui-win-paper); border: var(--px) solid var(--cui-ink); box-shadow: var(--cui-shadow);
  resize: both; overflow: hidden;
}
/* #2511: the title bar's one height, read by what sits just under it (Oscar's sheet in a window), so a phone's finger-high
   bar never hides under them */
:root { --cui-titlebar-h: calc(19 * var(--px)); }
html.dev-phone { --cui-titlebar-h: var(--cui-touch); }
.titlebar {
  position: relative; flex: 0 0 auto; height: var(--cui-titlebar-h);
  border-bottom: var(--px) solid var(--cui-ink);
  font-family: var(--chicago); font-size: var(--cui-type-12); text-align: center;
  user-select: none; -webkit-user-select: none; touch-action: none; cursor: default;
}
/* #1658 (Lloyd, 8 Nov 2026: "When a window is in focus instead of showing the lines, I want it to have the same rainbow
   top we show in the email templates"): the front window's title bar carries Oscar's six-colour band where System 7
   drew its six stripes; the black and white look keeps the stripes, which have no colour to lose */
.win.front .titlebar {
  background-image: var(--cui-topband);
  background-repeat: no-repeat;
  background-position: var(--px) calc(4 * var(--px));
  background-size: calc(100% - 2 * var(--px)) calc(11 * var(--px));
}
html.cdan-bw .win.front .titlebar, body.cdan-bw .win.front .titlebar {
  background-image: repeating-linear-gradient(to bottom, var(--cui-ink) 0 var(--px), transparent var(--px) calc(2 * var(--px)));
}
.wtitle {
  display: inline-block; max-width: calc(100% - 90 * var(--px));   /* clear of the close, minimise, Oscar and size boxes */
  padding: 0 calc(6 * var(--px)); background: var(--cui-paper);
  line-height: var(--cui-type-18); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: top;
}
.win:not(.front) .wtitle { color: var(--dim); }
/* #1821: the title's words chosen by a double click, to copy (app.js pickableTitle) */
.titlebar.wpick .wtitle { user-select: text; -webkit-user-select: text; cursor: text; }
/* a window Oscar opened behind the one in use: its title bar blinks once, inverted, as System 7 drew a hilite */
.titlebar.blink, .titlebar.blink .wtitle { background-color: var(--cui-ink); color: var(--cui-paper); }
.closebox {
  position: absolute; left: calc(8 * var(--px)); top: calc(4 * var(--px));
  width: calc(11 * var(--px)); height: calc(11 * var(--px)); padding: 0;
  border: var(--px) solid var(--cui-ink); background: var(--cui-paper); box-shadow: 0 0 0 var(--px) var(--cui-paper); cursor: default;
}
/* pressed (req-closebox-pop): System 7's starburst, the box "pops" - eight rays out from the centre, drawn while the
   pointer is down on it (TrackGoAway: off the box it goes away), held a moment on release before the window zooms
   shut, so a quick tap on a phone shows it too */
.closebox.pressed, .closebox:active {
  background: var(--cui-paper) url("../glyphs/closebox-pop.svg") center / calc(9 * var(--px)) calc(9 * var(--px)) no-repeat;
  image-rendering: pixelated;
}
.win:not(.front) .closebox { visibility: hidden; }
/* #1679 (Lloyd, 8 Nov: "Can the close button be red"): the close box is filled with the rainbow's red, pressed too; the
   black and white look keeps it white, having no colour */
.closebox, .closebox.pressed, .closebox:active { background-color: var(--cui-rainbow-4); }
html.cdan-bw .closebox, body.cdan-bw .closebox { background-color: var(--cui-paper); }
/* the minimise box (#245): beside the close box, the same frame, a bar along its foot, as a window gone down */
.minbox {
  position: absolute; left: calc(25 * var(--px)); top: calc(4 * var(--px));
  width: calc(11 * var(--px)); height: calc(11 * var(--px)); padding: 0;
  border: var(--px) solid var(--cui-ink); background: var(--cui-paper); box-shadow: 0 0 0 var(--px) var(--cui-paper); cursor: default;
}
.minbox::before {
  content: ""; position: absolute; left: var(--px); right: var(--px); bottom: var(--px); height: calc(2 * var(--px)); background: var(--cui-ink);
}
.minbox:active { background: var(--cui-ink); }
.minbox:active::before { background: var(--cui-paper); }
.win:not(.front) .minbox { visibility: hidden; }
.minbox:focus { outline: none; }
.minbox:focus-visible { outline: var(--px) dotted var(--cui-ink); outline-offset: calc(2 * var(--px)); }
.win.minimised { display: none !important; }
/* the size box (req-window-size-button-tv): where System 7's zoom box sits, the same frame, a smaller box inside at
   the top left whose size shows the window's, Small, Medium or Large; a window as it opened shows the zoom box's own */
.sizebox {
  position: absolute; right: calc(8 * var(--px)); top: calc(4 * var(--px));
  width: calc(11 * var(--px)); height: calc(11 * var(--px)); padding: 0;
  border: var(--px) solid var(--cui-ink); background: var(--cui-paper); box-shadow: 0 0 0 var(--px) var(--cui-paper); cursor: default;
}
.sizebox::before {
  content: ""; position: absolute; left: 0; top: 0; box-sizing: border-box;
  width: calc(6 * var(--px)); height: calc(6 * var(--px)); border: var(--px) solid var(--cui-ink);
  border-width: 0 var(--px) var(--px) 0;
}
.win.sz-s .sizebox::before { width: calc(3 * var(--px)); height: calc(3 * var(--px)); }
.win.sz-m .sizebox::before { width: calc(5 * var(--px)); height: calc(5 * var(--px)); }
.win.sz-l .sizebox::before { width: calc(8 * var(--px)); height: calc(8 * var(--px)); }
/* #673: Extra Large fills the box's inside; Full Screen too, with a black inside as the screen it fills */
.win.sz-x .sizebox::before, .win.sz-f .sizebox::before { left: var(--px); top: var(--px); width: calc(100% - 2 * var(--px));
  height: calc(100% - 2 * var(--px)); border-width: var(--px); }
.win.sz-f .sizebox::before { background: var(--cui-ink); border-width: 0; }
/* Extra Large and Full Screen: no frame or shadow past the desktop's edge, the resize grip not needed */
.win.sz-x, .win.sz-f { box-shadow: none; resize: none; }
.sizebox:active, .sizebox.pressed { background: var(--cui-ink); }
.sizebox:active::before { border-color: var(--cui-paper); }
.win:not(.front) .sizebox { visibility: hidden; }
.sizebox:focus { outline: none; }
.sizebox:focus-visible { outline: var(--cui-focus); outline-offset: calc(2 * var(--px)); }
/* #1712 (Lloyd, 8 Nov: "Can our close button have a x that touches each corner. Can the minimize button be green to fit
   in with the green bar, and can the maximize button be blue to fit into the blue. Can we change the maximise so it
   doesn't look like mac"): the three boxes take the band's colours - close red with an X from corner to corner, minimise
   green, size blue - and the size box shows two corner marks pointing out, our own, not System 7's box in a box. The
   black and white look keeps them white with the same marks. */
.closebox, .closebox.pressed, .closebox:active {
  background-image:
    linear-gradient(to top right, transparent calc(50% - 0.4 * var(--px)), var(--cui-ink) calc(50% - 0.4 * var(--px)),
      var(--cui-ink) calc(50% + 0.4 * var(--px)), transparent calc(50% + 0.4 * var(--px))),
    linear-gradient(to bottom right, transparent calc(50% - 0.4 * var(--px)), var(--cui-ink) calc(50% - 0.4 * var(--px)),
      var(--cui-ink) calc(50% + 0.4 * var(--px)), transparent calc(50% + 0.4 * var(--px)));
  background-size: 100% 100%; background-repeat: no-repeat; background-position: center;
}
.closebox.pressed, .closebox:active { filter: brightness(.75); }
.minbox { background-color: var(--cui-rainbow-1); }
.minbox:active { background-color: var(--cui-ink); }
/* Lloyd, 9 Nov: "Can the lines on these be thinner": the X above, the minimise bar and the size marks drawn finer */
.minbox::before { height: var(--px); }
/* out to the top right and the bottom left; once it fills the screen the marks turn in */
.sizebox::before, .win.sz-s .sizebox::before, .win.sz-m .sizebox::before, .win.sz-l .sizebox::before,
.win.sz-x .sizebox::before, .win.sz-f .sizebox::before { content: none; }
.sizebox {
  background: var(--cui-rainbow-6) no-repeat center / 100% 100%
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9' shape-rendering='crispEdges'%3E%3Cpath d='M5 1.5H7.5V4M1.5 5V7.5H4' fill='none' stroke='%23000' stroke-width='0.6'/%3E%3C/svg%3E");
}
.win.sz-f .sizebox {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9' shape-rendering='crispEdges'%3E%3Cpath d='M5.5 1V3.5H8M1 5.5H3.5V8' fill='none' stroke='%23000' stroke-width='0.6'/%3E%3C/svg%3E");
}
.sizebox:active, .sizebox.pressed { filter: invert(1); }
html.cdan-bw .minbox, body.cdan-bw .minbox, html.cdan-bw .sizebox, body.cdan-bw .sizebox { background-color: var(--cui-paper); }
body.tv .sizebox:focus, body.tv .closebox:focus, body.tv .minbox:focus {
  outline: calc(2 * var(--px)) solid var(--cui-ink) !important; outline-offset: calc(2 * var(--px)); box-shadow: 0 0 0 calc(2 * var(--px)) var(--cui-paper);
}
/* a TV, a touch screen without a mouse: no drag grip (it cannot be reached there); the size box sizes the window */
body.tv .win { resize: none; }
.touchonly .win { resize: none; }
.touchonly .sizebox::after { content: ""; position: absolute; inset: calc(-6 * var(--px)); }
body.tv .sizebox::after { content: ""; position: absolute; inset: calc(-4 * var(--px)); }
/* #2308: on a phone the title bar is a finger high; its three boxes keep their 11 x 11 drawing, each centred in a
   press area of --cui-touch, side by side, and the title stays centred clear of them */
html.dev-phone .win.front .titlebar { background-position: var(--px) calc((var(--cui-touch) - 12 * var(--px)) / 2); }
html.dev-phone .wtitle { max-width: calc(100% - 4 * var(--cui-touch)); line-height: calc(var(--cui-touch) - var(--px)); }
html.dev-phone .closebox, html.dev-phone .minbox, html.dev-phone .sizebox { top: calc((var(--cui-touch) - 12 * var(--px)) / 2); }
html.dev-phone .closebox { left: calc((var(--cui-touch) - 11 * var(--px)) / 2); }
html.dev-phone .minbox { left: calc((var(--cui-touch) - 11 * var(--px)) / 2 + var(--cui-touch)); }
html.dev-phone .sizebox { right: calc((var(--cui-touch) - 11 * var(--px)) / 2); }
html.dev-phone .closebox::after, html.dev-phone .minbox::after, html.dev-phone .sizebox::after {
  content: ""; position: absolute; inset: calc((9 * var(--px) - var(--cui-touch)) / 2); }
.wbody {
  flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain;
  padding: var(--cui-pad-win);
}

/* Mac-style scroll bars everywhere (req-mac-scrollbars-only, 18 Oct: "We should only ever display the mac style
   scroll bar"): every element that scrolls (window bodies, lists inside windows, menus, tables, text areas, the mail
   viewer) gets the System 7 bar, a grey checker track with a white thumb in a black frame and no arrow buttons,
   through one universal rule, so nothing made later by the script can fall back to the browser's own bar. Wheel,
   touch, keys and dragging the thumb are the browser's own and keep working. Firefox draws only the colours. */
/* #1901: the bar is drawn --cui-scrollbar wide (a phone's --cui-scrollbar-phone). On a touch screen the strip a press
   takes is wider (--cui-scrollbar-touch): the bar lies along the strip's far edge and the rest stays clear, a
   transparent border with the frame's lines drawn inside, and the thumb takes a press across the whole strip. The
   same widths set Firefox's drawn bar (macbars.js, style.css .mbar) and .cui-sbprobe, which the script measures. */
*::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
/* #2116 (Lloyd, 10 Nov 2026: "the deskscreen background bleeds through to the scroll bar background and we make it a
   feature", as the Pup does): a bar's track shows the desktop's own background where it lies, the picture or pattern
   fixed to the screen as the desktop draws it (--desk-bg-*, desk.js and style.css); a page with no desktop keeps the
   grey checker */
*::-webkit-scrollbar-track {
  background-color: var(--desk-bg-color, var(--cui-track));
  background-image: var(--desk-bg-image, conic-gradient(var(--cui-rule) 25%, var(--cui-faint) 0 50%, var(--cui-rule) 0 75%, var(--cui-faint) 0));
  background-size: var(--desk-bg-size, calc(2 * var(--px)) calc(2 * var(--px)));
  background-position: var(--desk-bg-pos, 0 0); background-repeat: var(--desk-bg-repeat, repeat); background-attachment: fixed;
  image-rendering: var(--desk-bg-render, auto); background-clip: padding-box; border: 0 solid transparent;
}
*::-webkit-scrollbar-track:vertical { box-shadow: inset var(--px) 0 0 var(--cui-ink); }
*::-webkit-scrollbar-track:horizontal { box-shadow: inset 0 var(--px) 0 var(--cui-ink); }
*::-webkit-scrollbar-thumb { background: var(--cui-scroll-thumb); background-clip: padding-box; border: 0 solid transparent;
  box-shadow: inset 0 0 0 var(--px) var(--cui-ink); min-height: calc(16 * var(--px)); min-width: calc(16 * var(--px)); }
*::-webkit-scrollbar-corner { background-color: var(--desk-bg-color, var(--cui-track)); background-image: var(--desk-bg-image, none);
  background-size: var(--desk-bg-size, auto); background-position: var(--desk-bg-pos, 0 0); background-repeat: var(--desk-bg-repeat, repeat);
  background-attachment: fixed; image-rendering: var(--desk-bg-render, auto); }
/* #2116 requirements 3 and 4: where the see-through track is not wanted or not cheap, the solid track the kit had,
   for every bar (Chromium's, Firefox's drawn .mbar and the corner, all read --desk-bg-*): a high-contrast screen
   (forced colours, the system's own; more contrast), a person who asks for less transparency, and a screen that redraws
   slowly (e-ink), where a picture fixed to the screen repaints with every scroll. Above desk.js's values, which it sets
   on the page itself. tests/render_desktop2.py checks each one it can bring about. */
@media (forced-colors: active), (prefers-contrast: more), (prefers-reduced-transparency: reduce), (update: slow) {
  :root { --desk-bg-color: var(--cui-track) !important; --desk-bg-image: none !important; --desk-bg-size: auto !important;
    --desk-bg-pos: 0 0 !important; --desk-bg-repeat: repeat !important; --desk-bg-render: auto !important; }
}
@media (forced-colors: active) { :root { --desk-bg-color: Canvas !important; } }
.cui-sbprobe { position: absolute; visibility: hidden; pointer-events: none; left: 0; top: 0; }
.cui-attface > .cui-attpx { display: none; }   /* Oscar Platinum's file icon (ui.js attachment): its look draws it */
.cui-notice > .cui-npx { display: none; }   /* Oscar Platinum's pixel icon for a notice (ui.js notice): its look draws it */
/* #2667 setupOptions (ui.js): System 7 draws each choice as a framed box, the chosen one's frame thick */
.cui-setopts { display: grid; grid-template-columns: repeat(auto-fit, minmax(calc(150 * var(--px)), 1fr)); gap: calc(8 * var(--px)); }
.cui-setopt { position: relative; display: flex; flex-direction: column; gap: calc(4 * var(--px)); padding: calc(8 * var(--px));
  border: var(--px) solid var(--cui-ink); background: var(--cui-paper); cursor: pointer; }
.cui-setopt.cui-on { box-shadow: inset 0 0 0 calc(2 * var(--px)) var(--cui-ink); }
.cui-setopt:focus-visible { outline: var(--px) dotted var(--cui-ink); outline-offset: calc(2 * var(--px)); }
.cui-setill { display: none; }
.cui-setline { font-size: var(--cui-text-sm, inherit); }
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-color: var(--cui-paper) #bbb; }
}
/* each rule apart: a browser that knows no -webkit- part drops a whole list that names one */
.mbar { background-clip: padding-box; border: 0 solid transparent; }
*::-webkit-scrollbar { width: var(--cui-scrollbar); height: var(--cui-scrollbar); }
*::-webkit-scrollbar-track:vertical, *::-webkit-scrollbar-thumb:vertical { border-left-width: 0; }
*::-webkit-scrollbar-track:horizontal, *::-webkit-scrollbar-thumb:horizontal { border-top-width: 0; }
.cui-sbprobe { width: var(--cui-scrollbar); height: var(--cui-scrollbar); }
.mbar-v { border-left-width: 0; }
.mbar-h { border-top-width: 0; }
.mbar-v .mthumb::after { left: 0; }
.mbar-h .mthumb::after { top: 0; }
@media (pointer: coarse) {                               /* a touch screen: the bar as thin, a finger's strip round it */
  *::-webkit-scrollbar { width: var(--cui-scrollbar-touch); height: var(--cui-scrollbar-touch); }
  *::-webkit-scrollbar-track:vertical, *::-webkit-scrollbar-thumb:vertical { border-left-width: calc(var(--cui-scrollbar-touch) - var(--cui-scrollbar)); }
  *::-webkit-scrollbar-track:horizontal, *::-webkit-scrollbar-thumb:horizontal { border-top-width: calc(var(--cui-scrollbar-touch) - var(--cui-scrollbar)); }
  .cui-sbprobe { width: var(--cui-scrollbar-touch); height: var(--cui-scrollbar-touch); }
  .mbar-v { border-left-width: calc(var(--cui-scrollbar-touch) - var(--cui-scrollbar)); }
  .mbar-h { border-top-width: calc(var(--cui-scrollbar-touch) - var(--cui-scrollbar)); }
  .mbar-v .mthumb::after { left: calc(var(--cui-scrollbar) - var(--cui-scrollbar-touch)); }
  .mbar-h .mthumb::after { top: calc(var(--cui-scrollbar) - var(--cui-scrollbar-touch)); }
}
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse) {                    /* phones: a slimmer bar of the same look */
  *::-webkit-scrollbar { width: var(--cui-scrollbar-phone); height: var(--cui-scrollbar-phone); }
  *::-webkit-scrollbar-track:vertical, *::-webkit-scrollbar-thumb:vertical { border-left-width: 0; }
  *::-webkit-scrollbar-track:horizontal, *::-webkit-scrollbar-thumb:horizontal { border-top-width: 0; }
  .cui-sbprobe { width: var(--cui-scrollbar-phone); height: var(--cui-scrollbar-phone); }
  .mbar-v { border-left-width: 0; }
  .mbar-h { border-top-width: 0; }
  .mbar-v .mthumb::after { left: 0; }
  .mbar-h .mthumb::after { top: 0; }
}
@media (max-width: 600px) and (pointer: coarse), (max-height: 500px) and (pointer: coarse) {
  *::-webkit-scrollbar { width: var(--cui-scrollbar-phone-touch); height: var(--cui-scrollbar-phone-touch); }
  *::-webkit-scrollbar-track:vertical, *::-webkit-scrollbar-thumb:vertical { border-left-width: calc(var(--cui-scrollbar-phone-touch) - var(--cui-scrollbar-phone)); }
  *::-webkit-scrollbar-track:horizontal, *::-webkit-scrollbar-thumb:horizontal { border-top-width: calc(var(--cui-scrollbar-phone-touch) - var(--cui-scrollbar-phone)); }
  .cui-sbprobe { width: var(--cui-scrollbar-phone-touch); height: var(--cui-scrollbar-phone-touch); }
  .mbar-v { border-left-width: calc(var(--cui-scrollbar-phone-touch) - var(--cui-scrollbar-phone)); }
  .mbar-h { border-top-width: calc(var(--cui-scrollbar-phone-touch) - var(--cui-scrollbar-phone)); }
  .mbar-v .mthumb::after { left: calc(var(--cui-scrollbar-phone) - var(--cui-scrollbar-phone-touch)); }
  .mbar-h .mthumb::after { top: calc(var(--cui-scrollbar-phone) - var(--cui-scrollbar-phone-touch)); }
}

/* the TV's big focus ring: 3 Mac px of black with a white halo, on whatever has the remote's focus */
body.tv :focus, body.tv :focus-visible {
  outline: calc(3 * var(--px)) solid var(--cui-ink) !important; outline-offset: calc(2 * var(--px));
  box-shadow: 0 0 0 calc(5 * var(--px)) var(--cui-paper);
}

/* ---- icon buttons, toggles, the toolbar's separator ---------------------------------------------------------- */

.cui-sep { flex: 0 0 auto; align-self: center; width: var(--px); height: calc(16 * var(--px)); margin: 0 calc(2 * var(--px)); background: var(--cui-ink); }

/* ---- a tag: colour key and name, a close box when it can be taken off --------------------------------------------- */

/* #1529: a chip, a small framed run of parts read with the words around it (CUI.chip) */
.cui-chip { display: inline-flex; align-items: center; gap: calc(3 * var(--px)); margin: 0 calc(3 * var(--px)); padding: 0 calc(4 * var(--px)); border: var(--px) solid var(--cui-ink); border-radius: calc(6 * var(--px)); font-size: 0.85em; vertical-align: baseline; white-space: nowrap; }
.cui-tag {
  display: inline-flex; align-items: center; flex: 0 0 auto; max-width: 100%; box-sizing: border-box; gap: calc(2 * var(--px));
  height: calc(16 * var(--px)); padding: 0 calc(3 * var(--px)); border: var(--px) solid var(--cui-ink); border-radius: calc(3 * var(--px));
  background: var(--cui-paper); color: var(--cui-ink); font-size: var(--cui-type-9); line-height: 1; white-space: nowrap; vertical-align: middle;
}
/* #542 (the user, 31 Oct: "I can't see any text on the tag"): a tag draws its own black on white wherever it sits; in a
   chosen row (white words on black) it took the row's white and showed only its colour key. Its close box likewise. */
.cui-tag:not(.cui-on) .cui-tagx img { filter: none !important; }
.cui-tag.cui-small { height: calc(13 * var(--px)); font-size: var(--cui-type-8); }
/* #2308: a tag is never wider than the line it sits in: its words end in an ellipsis, also
   in a row of tags that is itself only as wide as its tags (inline-flex) */
.cui-tag { min-width: 0; }
.cui-tagmain { max-width: 100%; }   /* no overflow of its own: on a phone its ::after is the finger-wide press area */
.cui-tagmain { display: inline-flex; align-items: center; gap: calc(3 * var(--px)); min-width: 0; color: inherit; font: inherit; padding: 0; }
.cui-tagmain > span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cui-tagkey { display: inline-block; flex: none; width: calc(7 * var(--px)); height: calc(7 * var(--px)); border: var(--px) solid var(--cui-ink); background: var(--cui-paper); }
.cui-tagkey.cui-none { background: var(--cui-paper); }
.cui-tag.cui-on { background: var(--cui-ink); color: var(--cui-paper); }
.cui-tag.cui-on .cui-tagkey { border-color: var(--cui-paper); }
.cui-tag .cui-tagx { min-width: 0; width: calc(12 * var(--px)); height: calc(12 * var(--px)); padding: 0; margin-right: calc(-2 * var(--px));
  border: 0; box-shadow: none; background: transparent; }
.cui-tag .cui-tagx img { width: calc(9 * var(--px)); height: calc(9 * var(--px)); }
/* a phone's touch sizes are not for the tag's close box: it stays inside the tag, its reach widened instead */
html.dev-phone .cui-tag .cui-btn.cui-tagx { width: calc(12 * var(--px)); height: calc(12 * var(--px)); min-width: 0; position: relative; }
html.dev-phone .cui-tag .cui-btn.cui-tagx::after { content: ""; position: absolute; inset: calc((12 * var(--px) - var(--cui-touch)) / 2); }   /* #2308 */
/* #536: the close box draws no push-button frame (the kit's frame is on ::after) */
.cui-tag .cui-btn.cui-tagx::after, .cui-tag .cui-btn.cui-tagx.cui-on::after, .cui-tag .cui-btn.cui-tagx:active::after {
  border: 0; border-image: none; }
.cui-tag.cui-on .cui-tagx img { filter: var(--cui-glyph-inv); }
button.cui-tagmain:focus-visible { outline: var(--px) dotted currentColor; outline-offset: var(--px); }
body.tv button.cui-tagmain:focus, body.tv .cui-tag .cui-tagx:focus { background: var(--cui-ink); color: var(--cui-paper); outline: none; }

/* ---- an offer (#1715): its own card, the rainbow round it, the price now large and the normal price struck through */

/* the kit's space under a control above and below it, so it never touches the rows of a form round it */
.cui-offer { box-sizing: border-box; max-width: 100%; margin: var(--cui-space-under) 0; padding: calc(3 * var(--px)); border: var(--px) solid var(--cui-ink);
  background-color: var(--cui-paper); background-image: var(--cui-rainbow); box-shadow: var(--cui-shadow); }
.cui-offerin { display: flex; flex-direction: column; gap: calc(4 * var(--px)); padding: calc(6 * var(--px)) calc(8 * var(--px));
  border: var(--px) solid var(--cui-ink); background: var(--cui-paper); color: var(--cui-ink); }
.cui-offerhead { display: flex; align-items: center; gap: calc(6 * var(--px)); min-width: 0; }
.cui-offerbadge { flex: none; padding: calc(2 * var(--px)) calc(4 * var(--px)); background: var(--cui-ink); color: var(--cui-paper);
  font-family: var(--cui-font-ui); font-size: var(--cui-text-xs); line-height: 1; }
.cui-offerhead { flex-wrap: wrap; }
.cui-offername, .cui-offerplan { min-width: 0; overflow-wrap: anywhere; font-family: var(--cui-font-ui); font-size: var(--cui-text-md); }
.cui-offername + .cui-offerplan { font-family: var(--cui-font-text); font-size: var(--cui-text-sm); color: var(--cui-quiet); }
.cui-offerrow { display: flex; flex-wrap: wrap; align-items: baseline; gap: calc(2 * var(--px)) calc(8 * var(--px)); }
.cui-offerprice { display: flex; align-items: baseline; gap: calc(4 * var(--px)); }
.cui-offernow { font-family: var(--cui-font-ui); font-size: var(--cui-text-xl); line-height: 1.1; }
.cui-offerper, .cui-offerwas, .cui-offerterms { font-family: var(--cui-font-text); font-size: var(--cui-text-sm); }
.cui-offerwas { color: var(--cui-quiet); text-decoration: line-through; text-decoration-thickness: var(--px); }
.cui-offerterms { display: flex; flex-wrap: wrap; gap: calc(2 * var(--px)) calc(8 * var(--px)); color: var(--cui-quiet); }
/* in black and white, and where colours are the system's, the rainbow is the kit's one-bit dither */
html.cdan-bw .cui-offer, body.cdan-bw .cui-offer {
  background-image: repeating-conic-gradient(var(--cui-ink) 0 25%, var(--cui-paper) 0 100%); background-size: calc(2 * var(--px)) calc(2 * var(--px)); }
@media (monochrome), (forced-colors: active) {
  .cui-offer { forced-color-adjust: none; background-image: repeating-conic-gradient(var(--cui-ink) 0 25%, var(--cui-paper) 0 100%);
    background-size: calc(2 * var(--px)) calc(2 * var(--px)); }
}

/* ---- the colour well and its palette --------------------------------------------------------------------------- */

.cui-well {
  position: relative; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; flex: 0 0 auto;
  width: calc(28 * var(--px)); height: calc(20 * var(--px)); margin: 0; padding: calc(3 * var(--px));
  background: var(--cui-paper); border: var(--px) solid var(--cui-ink); border-radius: 0; box-shadow: var(--cui-shadow); outline: none;
  cursor: default; -webkit-appearance: none; appearance: none;
}
.cui-well > .cui-chip { display: block; width: 100%; height: 100%; box-sizing: border-box; border: var(--px) solid var(--cui-ink); background: var(--cui-paper); }
.cui-well.cui-on, .cui-well:active:not(:disabled) { background: var(--cui-ink); }
.cui-well:disabled > .cui-chip { opacity: .4; }
.cui-well:focus-visible { outline: var(--cui-focus); outline-offset: calc(2 * var(--px)); }
.cui-chip.cui-none, .cui-swatch.cui-none {
  background: var(--cui-paper) linear-gradient(to top right, transparent 46%, var(--cui-red) 46%, var(--cui-red) 54%, transparent 54%);
}
/* #1933: a pattern shows dot for dot, whatever the size of the screen */
.cui-patchip, .cui-patswatch { background-repeat: repeat; background-size: calc(8 * var(--px)) calc(8 * var(--px)); image-rendering: pixelated; }
.cui-dotgrid { display: grid; gap: 0; width: max-content; border: var(--px) solid var(--cui-ink); }
.cui-dot { width: calc(12 * var(--px)); height: calc(12 * var(--px)); margin: 0; padding: 0; box-sizing: border-box; background: var(--cui-paper);
  border: var(--px) solid var(--cui-dim); border-radius: 0; cursor: default; -webkit-appearance: none; appearance: none; }
.cui-dot.cui-on { background: var(--cui-ink); }
.cui-dot:focus-visible { outline: var(--cui-focus); outline-offset: calc(-2 * var(--px)); }
.cui-palette {
  position: fixed; z-index: 9100; display: grid; grid-template-columns: repeat(8, calc(14 * var(--px))); gap: calc(2 * var(--px));
  padding: calc(4 * var(--px)); background: var(--cui-paper); border: var(--px) solid var(--cui-ink); box-shadow: var(--cui-shadow);
}
/* #776: colorWell(..., { custom: true }): any colour as #rrggbb, a field across the palette under its swatches */
.cui-palette .cui-palhex { grid-column: 1 / -1; width: 100%; box-sizing: border-box; font-family: var(--cui-font-code); }
.cui-palette .cui-palhex.cui-bad { outline: var(--px) solid var(--cui-red); }
.cui-swatch { width: calc(14 * var(--px)); height: calc(14 * var(--px)); margin: 0; padding: 0; box-sizing: border-box;
  border: var(--px) solid var(--cui-ink); border-radius: 0; outline: none; cursor: default; -webkit-appearance: none; appearance: none; }
.cui-swatch.cui-on { box-shadow: 0 0 0 var(--px) var(--cui-paper), 0 0 0 calc(2 * var(--px)) var(--cui-ink); }
.cui-swatch:focus, .cui-swatch:hover { box-shadow: 0 0 0 var(--px) var(--cui-paper), 0 0 0 calc(3 * var(--px)) var(--cui-ink); }

/* ---- the slider and the number field's little arrows ------------------------------------------------------------ */

input.cui-slider { -webkit-appearance: none; appearance: none; box-sizing: border-box; height: calc(16 * var(--px));
  min-width: calc(80 * var(--px)); margin: 0; padding: 0; background: transparent; outline: none; cursor: default; }
input.cui-slider::-webkit-slider-runnable-track { height: calc(4 * var(--px)); background: var(--cui-paper); border: var(--px) solid var(--cui-ink); }
input.cui-slider::-moz-range-track { height: calc(4 * var(--px)); background: var(--cui-paper); border: var(--px) solid var(--cui-ink); }
input.cui-slider::-webkit-slider-thumb { -webkit-appearance: none; width: calc(11 * var(--px)); height: calc(14 * var(--px));
  margin-top: calc(-8 * var(--px)); border: 0; border-radius: 0; background: url("slider-thumb.svg") 0 0 / 100% 100% no-repeat;
  image-rendering: pixelated; }
input.cui-slider::-moz-range-thumb { width: calc(11 * var(--px)); height: calc(14 * var(--px)); border: 0; border-radius: 0;
  background: url("slider-thumb.svg") 0 0 / 100% 100% no-repeat; image-rendering: pixelated; }
input.cui-slider:active::-webkit-slider-thumb { filter: invert(1); }
input.cui-slider:active::-moz-range-thumb { filter: invert(1); }
input.cui-slider:disabled { opacity: .5; }
input.cui-slider:focus-visible { outline: var(--cui-focus); outline-offset: calc(2 * var(--px)); }
.cui-number { display: inline-flex; align-items: center; gap: calc(2 * var(--px)); }
.cui-number > .cui-field.cui-num { width: calc(48 * var(--px)); text-align: right; }
.cui-arrows { display: flex; flex-direction: column; justify-content: center; }
.cui-arrow { display: flex; align-items: center; justify-content: center; box-sizing: border-box; overflow: hidden;
  width: calc(13 * var(--px)); height: calc(11 * var(--px)); margin: 0; padding: 0; background: var(--cui-paper);
  border: var(--px) solid var(--cui-ink); border-radius: 0; cursor: default; outline: none; -webkit-appearance: none; appearance: none; }
.cui-arrow + .cui-arrow { margin-top: calc(-1 * var(--px)); }
/* the triangles are the button's picture, centred, so the 11 px button never clips a 16 px glyph */
.cui-arrow { background-repeat: no-repeat; background-position: center; background-size: calc(16 * var(--px)) calc(16 * var(--px));
  image-rendering: pixelated; }
.cui-arrow.cui-arrow-up-sm { background-image: url("../glyphs/arrow-up-sm.svg"); }
.cui-arrow.cui-arrow-down-sm { background-image: url("../glyphs/arrow-down-sm.svg"); }
.cui-arrow:active:not(:disabled) { filter: invert(1); }
.cui-arrow:disabled { opacity: .4; }

/* ---- the Finder's list view (CUI.listView): one column model; heading and rows share the table's columns ------- */

.cui-lvwrap { width: 100%; min-width: 0; box-sizing: border-box; background: var(--cui-paper); }
.cui-lvwrap.cui-frame { border: var(--px) solid var(--cui-ink); }
.cui-lvwrap.cui-scroll { overflow: auto; height: 100%; }
table.cui-lv { width: 100%; table-layout: fixed; border-collapse: collapse; border-spacing: 0; margin: 0; border: 0;
  background: var(--cui-paper); font-family: var(--geneva); font-size: var(--cui-type-10); color: var(--cui-ink); }
.cui-lv th, .cui-lv td { box-sizing: border-box; padding: 0 calc(4 * var(--px)); border: 0; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; vertical-align: middle; text-align: left; line-height: var(--cui-type-12); }
.cui-lv th { position: -webkit-sticky; position: sticky; top: 0; z-index: 1; height: calc(18 * var(--px)); background: var(--cui-paper);
  font-family: var(--geneva); font-size: var(--cui-type-10); font-weight: normal; box-shadow: inset 0 calc(-1 * var(--px)) 0 var(--cui-ink); }
.cui-lv td { height: calc(18 * var(--px)); }
.cui-lv td:where(:has(.cui-btn)) { height: var(--cui-row-h); }   /* a row with a button keeps its space round it (#326) */
.cui-lv th:first-child, .cui-lv td:first-child { padding-left: calc(6 * var(--px)); }
.cui-lv th:last-child, .cui-lv td:last-child { padding-right: calc(6 * var(--px)); }
.cui-lv .cui-r { text-align: right; }
.cui-lv .cui-c { text-align: center; }
.cui-lv .cui-sort { display: flex; align-items: center; gap: calc(3 * var(--px)); width: 100%; height: calc(18 * var(--px)); min-width: 0;
  margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: inherit; text-decoration: none;
  cursor: default; -webkit-appearance: none; appearance: none; }
.cui-lv .cui-r .cui-sort { justify-content: flex-end; }
.cui-lv .cui-c .cui-sort { justify-content: center; }
.cui-lv .cui-sort.cui-on { font-weight: bold; }
.cui-lv .cui-sort:focus-visible { outline: var(--cui-focus); outline-offset: calc(-2 * var(--px)); }
.cui-lv .cui-tri { flex: 0 0 auto; width: var(--cui-icon); height: var(--cui-icon); margin: 0 calc(-4 * var(--px));
  image-rendering: pixelated; }
.cui-lvlabel { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cui-lvcell { display: flex; align-items: center; gap: calc(4 * var(--px)); min-width: 0; height: 100%; }
.cui-r .cui-lvcell { justify-content: flex-end; }
.cui-c .cui-lvcell { justify-content: center; }
.cui-lvcell > .cui-icon { flex: 0 0 auto; width: var(--cui-icon); height: var(--cui-icon); image-rendering: pixelated; }
.cui-lvtext { display: block; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cui-lvmain { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.cui-lvsub { display: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--cui-type-9); }
.cui-lv.cui-lines td { box-shadow: inset 0 calc(-1 * var(--px)) 0 var(--cui-rule); }
.cui-lv tbody tr { cursor: default; outline: none; }
.cui-lv tbody tr.cui-on td, .cui-lv tbody tr.cui-drop td { background: var(--cui-hilite); color: var(--cui-hilite-ink); }
.cui-lv tbody tr.cui-on img, .cui-lv tbody tr.cui-drop img { filter: var(--cui-glyph-on); }
.cui-lv tbody tr:focus-visible td { box-shadow: inset 0 calc(2 * var(--px)) 0 var(--cui-ink), inset 0 calc(-2 * var(--px)) 0 var(--cui-ink); }
.cui-lv tbody tr:focus-visible td:first-child { box-shadow: inset calc(2 * var(--px)) 0 0 var(--cui-ink), inset 0 calc(2 * var(--px)) 0 var(--cui-ink),
  inset 0 calc(-2 * var(--px)) 0 var(--cui-ink); }
.cui-lv tbody tr:focus-visible td:last-child { box-shadow: inset calc(-2 * var(--px)) 0 0 var(--cui-ink), inset 0 calc(2 * var(--px)) 0 var(--cui-ink),
  inset 0 calc(-2 * var(--px)) 0 var(--cui-ink); }
.cui-lv tbody tr.cui-on:focus-visible td { box-shadow: inset 0 calc(2 * var(--px)) 0 var(--cui-paper), inset 0 calc(-2 * var(--px)) 0 var(--cui-paper); }
.cui-disc { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: calc(12 * var(--px));
  height: calc(16 * var(--px)); margin: 0; padding: 0; border: 0; background: none; cursor: default; -webkit-appearance: none; appearance: none; }
.cui-disc > .cui-icon { width: var(--cui-icon); height: var(--cui-icon); flex: 0 0 auto; image-rendering: pixelated; }
.cui-lv tbody tr.cui-lvdetail td { height: auto; padding: calc(4 * var(--px)) calc(6 * var(--px)) calc(6 * var(--px)) calc(22 * var(--px));
  white-space: normal; overflow: visible; background: var(--cui-paper); color: var(--cui-ink); box-shadow: inset 0 calc(-1 * var(--px)) 0 var(--cui-rule); }
/* #1577: too narrow for a row's buttons: they go on a line of their own at the foot of the row, right-aligned, still its
   own cell; the other cells keep the room (--cui-lvact, measured) */
.cui-lvunder .cui-lv th.cui-lvact { width: 1px; padding: 0; }   /* its column stays, or a table's columns share out as if it had a width */
.cui-lvunder .cui-lv tbody tr { position: relative; }
.cui-lvunder .cui-lv tbody tr.cui-lvhasact td:not(.cui-lvact) { padding-bottom: var(--cui-lvact, 0); }
.cui-lvunder .cui-lv tbody td.cui-lvact { position: absolute; left: 0; right: 0; bottom: 0; height: auto; padding: 0 calc(6 * var(--px)) calc(4 * var(--px));
  overflow: visible; white-space: normal; box-shadow: none; background: transparent; }
.cui-lvunder tr.cui-lvhasact .cui-lvcell { height: auto; }   /* at the cell's height Firefox cuts the words off the top */
.cui-lvunder td.cui-lvact .cui-lvtext { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: calc(4 * var(--px)); overflow: visible; white-space: normal; }
.cui-lvunder td.cui-lvact .formrow { flex-wrap: wrap; justify-content: flex-end; }
.cui-lvempty { padding: calc(10 * var(--px)); text-align: center; font-size: var(--cui-type-10); color: var(--cui-quiet); }
.cui-lv .cui-lvprobe { position: absolute; visibility: hidden; height: 0; width: calc(100 * var(--cui-lvw, var(--px))); }
.cui-lv .cui-w16 { width: calc(16 * var(--cui-lvw, var(--px))); }
.cui-lv .cui-w24 { width: calc(24 * var(--cui-lvw, var(--px))); }
.cui-lv .cui-w32 { width: calc(32 * var(--cui-lvw, var(--px))); }
.cui-lv .cui-w40 { width: calc(40 * var(--cui-lvw, var(--px))); }
.cui-lv .cui-w48 { width: calc(48 * var(--cui-lvw, var(--px))); }
.cui-lv .cui-w56 { width: calc(56 * var(--cui-lvw, var(--px))); }
.cui-lv .cui-w64 { width: calc(64 * var(--cui-lvw, var(--px))); }
.cui-lv .cui-w72 { width: calc(72 * var(--cui-lvw, var(--px))); }
.cui-lv .cui-w80 { width: calc(80 * var(--cui-lvw, var(--px))); }
.cui-lv .cui-w88 { width: calc(88 * var(--cui-lvw, var(--px))); }
.cui-lv .cui-w96 { width: calc(96 * var(--cui-lvw, var(--px))); }
.cui-lv .cui-w104 { width: calc(104 * var(--cui-lvw, var(--px))); }
.cui-lv .cui-w112 { width: calc(112 * var(--cui-lvw, var(--px))); }
.cui-lv .cui-w120 { width: calc(120 * var(--cui-lvw, var(--px))); }
.cui-lv .cui-w128 { width: calc(128 * var(--cui-lvw, var(--px))); }
.cui-lv .cui-w144 { width: calc(144 * var(--cui-lvw, var(--px))); }
.cui-lv .cui-w160 { width: calc(160 * var(--cui-lvw, var(--px))); }
.cui-lv .cui-w176 { width: calc(176 * var(--cui-lvw, var(--px))); }
.cui-lv .cui-w192 { width: calc(192 * var(--cui-lvw, var(--px))); }
.cui-lv .cui-w208 { width: calc(208 * var(--cui-lvw, var(--px))); }
.cui-lv .cui-w224 { width: calc(224 * var(--cui-lvw, var(--px))); }
.cui-lv .cui-w240 { width: calc(240 * var(--cui-lvw, var(--px))); }
.cui-lv .cui-w272 { width: calc(272 * var(--cui-lvw, var(--px))); }
.cui-lv .cui-w304 { width: calc(304 * var(--cui-lvw, var(--px))); }
/* a phone: the minor columns go and the name gets a second line; a tablet: taller rows; a TV: the row in focus inverted */
html.dev-phone .cui-lv .cui-minor { display: none; }
@media (max-width: 600px) { .cui-lv .cui-minor { display: none; } }
html.dev-phone .cui-lvsub { display: block; }
.cui-lvwrap.cui-compact .cui-lv .cui-minor { display: none; }
.cui-lvwrap.cui-compact .cui-lvsub { display: block; }
.cui-lvwrap.cui-compact .cui-lv td { height: calc(28 * var(--px)); }
html.dev-phone .cui-lvwrap.cui-compact .cui-lv td { height: var(--cui-touch); }
html.dev-phone .cui-lv td { height: var(--cui-touch); }
/* #2501: a row with a button keeps the space round it on a phone too, where the button is a finger high (#2308) and
   the row was no taller, so the button met the next row */
/* every row of that list, so its rows stay one height and line up with its headings (render_uikit: 44 and 50 mixed) */
html.dev-phone :is(.cui-lvwrap, .cui-lvwrap.cui-compact) .cui-lv:has(td .cui-btn) td { height: calc(var(--cui-touch) + 2 * var(--cui-bar-pad)); }
html.dev-phone .cui-lv td, html.dev-phone .cui-lv th { font-size: var(--cui-type-12); line-height: var(--cui-type-15); }
html.dev-tablet .cui-lv td { height: calc(26 * var(--px)); }
body.tv .cui-lv tbody tr:focus { outline: none !important; box-shadow: none; }
body.tv .cui-lv tbody tr:focus td { background: var(--cui-hilite); color: var(--cui-hilite-ink); box-shadow: none; }
body.tv .cui-lv tbody tr:focus img { filter: var(--cui-glyph-on); }
body.tv .cui-lv td { height: calc(22 * var(--px)); }

/* ---- dialogs with a body, the modeless kind, and the Open and Save dialog --------------------------------------- */

.cui-dialog .cui-dtitle { margin: 0 0 calc(8 * var(--px)); font-family: var(--chicago); font-size: var(--cui-type-12); }
/* #1733 (Lloyd, 8 Nov: "I'm still seeing this double border, popups are meant to use shared components"): a dialog is
   one frame, its rainbow top inside it; the alert's inner System 7 ring drawn under that band read as a second, thick
   frame. Plain alerts, with no band, keep the ring */
.cui-alert.cui-dialog { box-shadow: var(--px) var(--px) 0 var(--cui-ink); }
/* a dialog's title with the service's or app's own logo left of it, the size of its words */
.cui-dialog .cui-dtitle.cui-dhaslogo { display: flex; align-items: center; gap: calc(8 * var(--px)); }
.cui-dlogo { display: block; flex: none; width: 1.5em; height: 1.5em; object-fit: contain; image-rendering: auto; }
/* form(rows): labels left of their controls, every row on one grid */
.cui-form { display: grid; grid-template-columns: auto 1fr; gap: calc(6 * var(--px)) calc(8 * var(--px)); align-items: center; }
.cui-form > .cui-flabel { font-size: var(--cui-type-11); white-space: nowrap; }
.cui-form > .cui-field, .cui-form > .cui-fcontrol { width: 100%; min-width: 0; box-sizing: border-box; }
/* statusLine(): what a dialog's service said, a step in the page's ink, a refusal in red */
.cui-dstate { font-size: var(--cui-type-11); overflow-wrap: anywhere; }
.cui-dstate.cui-refused { color: var(--cui-red, #c00); }
.cui-codeshow { font-size: var(--cui-type-22); font-weight: bold; letter-spacing: 0.12em; font-family: var(--cui-font-code);
  user-select: text; }
.cui-dbody { min-width: 0; }
.cui-modeless { position: fixed; z-index: 8900; right: calc(16 * var(--px)); top: calc(40 * var(--px)); max-width: calc(100vw - 16px); }
/* a floating window never runs off the screen (Mail Merge at 900 high, demo dry run 21 Nov): it scrolls inside itself */
.cui-modeless > .cui-alert { box-sizing: border-box; max-height: calc(100vh - 56 * var(--px)); overflow-y: auto; }
.cui-abuttons > .cui-spacer { flex: 1 1 auto; }
.cui-fd { display: flex; flex-direction: column; gap: calc(6 * var(--px)); }
.cui-fd.cui-fdhasplaces { display: grid; grid-template-columns: calc(96 * var(--px)) 1fr; }
.cui-fd.cui-fdhasplaces > .cui-labelled { grid-column: 1 / -1; }
.cui-fdplaces { border: var(--px) solid var(--cui-ink); }
.cui-fdmain { display: flex; flex-direction: column; gap: calc(6 * var(--px)); min-width: 0; }
.cui-fdwhere { display: flex; align-items: center; gap: calc(6 * var(--px)); }
.cui-fdlist { height: calc(160 * var(--px)); overflow: auto; border: var(--px) solid var(--cui-ink); background: var(--cui-paper); }
html.dev-phone .cui-fd.cui-fdhasplaces { grid-template-columns: 1fr; }
html.dev-phone .cui-fdplaces .cui-list { flex-direction: row; overflow-x: auto; }
html.dev-phone .cui-fdplaces .cui-row { width: auto; flex: 0 0 auto; }
.cui-fd.cui-fdhastree { grid-template-columns: calc(150 * var(--px)) 1fr; }
.cui-fdhastree > .cui-fdplaces { display: flex; flex-direction: column; min-height: 0; height: calc(200 * var(--px)); overflow: auto; background: var(--cui-paper); }
.cui-fdplacelist { border-bottom: var(--px) solid var(--cui-ink); }
.cui-fdpath { min-width: 0; }
@media (max-width: 700px), (max-height: 500px) and (pointer: coarse) {
  .cui-fd.cui-fdhastree { grid-template-columns: 1fr; }
  .cui-fdhastree > .cui-fdplaces { height: auto; max-height: calc(110 * var(--px)); }
}

/* ---- the folder tree and the path bar (fileDialog, the office apps' start window) ------------------------------- */

.cui-tree { display: flex; flex-direction: column; min-width: 0; padding: calc(2 * var(--px)) 0; }
.cui-treerow { display: flex; align-items: center; min-width: 0; padding-left: calc(2 * var(--px)); }
.cui-treerow.cui-d1 { padding-left: calc(14 * var(--px)); } .cui-treerow.cui-d2 { padding-left: calc(26 * var(--px)); }
.cui-treerow.cui-d3 { padding-left: calc(38 * var(--px)); } .cui-treerow.cui-d4 { padding-left: calc(50 * var(--px)); }
.cui-treerow.cui-d5 { padding-left: calc(62 * var(--px)); } .cui-treerow.cui-d6 { padding-left: calc(74 * var(--px)); }
.cui-treerow.cui-d7 { padding-left: calc(86 * var(--px)); } .cui-treerow.cui-d8 { padding-left: calc(98 * var(--px)); }
.cui-treerow .cui-disc { background: none; border: 0; padding: 0; margin: 0; height: calc(18 * var(--px)); }
.cui-treepick { display: flex; align-items: center; gap: calc(4 * var(--px)); flex: 1 1 auto; min-width: 0;
  min-height: calc(18 * var(--px)); margin: 0; padding: calc(1 * var(--px)) calc(4 * var(--px)); border: 0; border-radius: 0;
  background: var(--cui-paper); color: var(--cui-ink); font: inherit; text-align: left; cursor: default; outline: none; -webkit-appearance: none; appearance: none; }
.cui-treepick > .cui-icon { width: var(--cui-icon); height: var(--cui-icon); flex: 0 0 auto; image-rendering: pixelated; }
.cui-treename { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cui-treepick.cui-on, .cui-treepick:active, .cui-treerow.cui-drop .cui-treepick { background: var(--cui-hilite); color: var(--cui-hilite-ink); }
.cui-treepick.cui-on img, .cui-treepick:active img, .cui-treerow.cui-drop .cui-treepick img { filter: var(--cui-glyph-on); }
.cui-treepick:focus-visible { box-shadow: inset 0 0 0 calc(2 * var(--px)) var(--cui-ink), inset 0 0 0 calc(3 * var(--px)) var(--cui-paper); }
.cui-treepick.cui-on:focus-visible { box-shadow: inset 0 0 0 calc(2 * var(--px)) var(--cui-paper); }
body.tv .cui-treepick { min-height: calc(22 * var(--px)); }
.cui-path { display: flex; align-items: center; flex-wrap: wrap; gap: calc(2 * var(--px)); min-width: 0; font-size: var(--cui-type-12); }
.cui-pathbtn { margin: 0; padding: 0 calc(3 * var(--px)); border: 0; border-radius: 0; background: none; color: var(--cui-ink); font: inherit;
  cursor: default; -webkit-appearance: none; appearance: none; }
.cui-pathbtn:active, .cui-pathbtn.cui-drop { background: var(--cui-ink); color: var(--cui-paper); }
.cui-pathbtn:focus-visible { outline: var(--cui-focus); outline-offset: calc(1 * var(--px)); }
.cui-pathsep { padding: 0 calc(1 * var(--px)); }
.cui-pathhere { padding: 0 calc(3 * var(--px)); font-weight: bold; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cui-fdfolders tbody tr { color: var(--cui-ink); }

/* ---- an app's menu bar in its window, split panes, the console -------------------------------------------------- */

.cui-mbar { display: flex; align-items: center; min-height: calc(20 * var(--px)); border-bottom: var(--px) solid var(--cui-ink); background: var(--cui-paper); }
.cui-mtitles { display: flex; align-items: stretch; flex-wrap: nowrap; min-width: 0; overflow: hidden; }
.cui-mtitle { display: inline-flex; align-items: center; height: calc(19 * var(--px)); margin: 0; padding: 0 calc(8 * var(--px));
  background: var(--cui-paper); color: var(--cui-ink); border: 0; border-radius: 0; outline: none; font-family: var(--chicago); font-size: var(--cui-type-12);
  line-height: 1; white-space: nowrap; cursor: default; -webkit-appearance: none; appearance: none; }
.cui-mtitle.cui-on, .cui-mtitle:active { background: var(--cui-hilite); color: var(--cui-hilite-ink); }
.cui-mtitle:focus-visible { outline: var(--cui-focus); outline-offset: calc(-3 * var(--px)); }
.cui-mbar > .cui-mbarall { display: none; margin: var(--cui-bar-pad) calc(4 * var(--px)); }
html.dev-phone .cui-mbar > .cui-mtitles { display: none; }
html.dev-phone .cui-mbar > .cui-mbarall { display: inline-flex; }
body.tv .cui-mtitle:focus { background: var(--cui-hilite); color: var(--cui-hilite-ink); outline: none !important; box-shadow: none; }

.cui-split { display: flex; flex-direction: row; width: 100%; height: 100%; min-width: 0; min-height: 0; }
.cui-split.cui-vertical { flex-direction: column; }
.cui-pane { flex: 0 0 auto; min-width: 0; min-height: 0; overflow: auto; }
.cui-pane.cui-panelast { flex: 1 1 0; }
.cui-divider { flex: 0 0 auto; width: calc(5 * var(--px)); background: var(--cui-paper); outline: none; cursor: col-resize; touch-action: none;
  border-left: var(--px) solid var(--cui-ink); border-right: var(--px) solid var(--cui-ink); box-sizing: border-box; }
.cui-vertical > .cui-divider { width: auto; height: calc(5 * var(--px)); cursor: row-resize; border: 0;
  border-top: var(--px) solid var(--cui-ink); border-bottom: var(--px) solid var(--cui-ink); }
.cui-divider:focus-visible, .cui-divider:active { background: var(--cui-ink); }
.cui-divider:hover { background: #000; }
/* a closed pane's divider (report 470): a white bar with a dotted grip; a click or tap opens the pane again */
.cui-divider.cui-edgeshut { width: var(--cui-panebtn, calc(16 * var(--px))); cursor: pointer;
  background: #fff repeating-linear-gradient(to bottom, #000 0 var(--px), transparent var(--px) calc(2 * var(--px))) center / var(--px) calc(24 * var(--px)) no-repeat; }
/* report 470: the edge a sidebar or side panel is sized by (edge() in ui.js). It lies over the pane's own 1-bit border,
   no room of its own; the resize pointer and, on hover, focus and drag, a black line show where it is. A finger gets a
   wider strip to land on. */
.cui-edgehost { position: relative; }
.cui-edge { position: absolute; top: 0; z-index: 4; width: calc(8 * var(--px)); margin-left: calc(-4 * var(--px)); outline: none;
  cursor: col-resize; touch-action: none; -webkit-user-select: none; user-select: none; }
.cui-edge::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(3 * var(--px)); width: calc(2 * var(--px)); background: transparent; }
.cui-edge:hover::after, .cui-edge:focus-visible::after, .cui-edge.cui-edgeon::after { background: #000; }
.cui-edge.cui-edgeoff { display: none; }
/* a TV is driven by the remote: its arrows move between panes, so no edge takes the focus there (#470) */
body.tv .cui-edge { visibility: hidden; pointer-events: none; }
/* report 470: a cut name shown whole after a long press (a finger cannot hover) */
.cui-cuttip { position: fixed; z-index: 9600; max-width: min(92vw, calc(360 * var(--px))); box-sizing: border-box;
  padding: calc(2 * var(--px)) calc(4 * var(--px)); background: #fff; color: #000; border: var(--px) solid #000;
  box-shadow: var(--cui-shadow); font-family: var(--cui-font-text); font-size: var(--cui-type-10);
  overflow-wrap: anywhere; pointer-events: none; }
/* a closed pane: a thin white bar with a dotted grip over the pane's own few pixels */
.cui-edge.cui-edgeshut { margin-left: 0; cursor: pointer; background: #fff; border-left: var(--px) solid #000; border-right: var(--px) solid #000; box-sizing: border-box; }
.cui-edge.cui-edgeshut::after { left: 50%; top: 50%; bottom: auto; width: var(--px); height: calc(24 * var(--px)); margin: calc(-12 * var(--px)) 0 0 calc(-0.5 * var(--px));
  background: repeating-linear-gradient(to bottom, #000 0 var(--px), transparent var(--px) calc(2 * var(--px))); }
.cui-edge.cui-edgeshut:hover, .cui-edge.cui-edgeshut:focus-visible { background: #000; }
.cui-edge.cui-edgeshut:hover::after, .cui-edge.cui-edgeshut:focus-visible::after { background: repeating-linear-gradient(to bottom, #fff 0 var(--px), transparent var(--px) calc(2 * var(--px))); }
.cui-edgeshut-pane { overflow: hidden !important; padding-left: 0 !important; padding-right: 0 !important; }
.cui-edgeshut-pane > * { visibility: hidden; }
/* #1412: Hide and Show, a box the width of the scroll bar at the top of its column, the arrow the way the pane will go.
   The pane keeps a strip clear for it and its own scroll bar starts just under it. ui.js sets the size and the place;
   a finger gets more room round the box to land on. */
.cui-panebtn { position: absolute; z-index: 5; padding: 0; box-sizing: border-box; background: var(--cui-paper); color: var(--cui-ink);
  border: var(--px) solid var(--cui-ink); cursor: default; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.cui-panebtn.cui-edgeoff { display: none; }
.cui-panebtn::before { content: ""; position: absolute; inset: 0; background: url("../glyphs/tri-right.svg") center / contain no-repeat; image-rendering: pixelated; }
.cui-panebtn::after { content: ""; position: absolute; inset: calc(-4 * var(--px)); }

.cui-panebtn.cui-paneL::before { transform: scaleX(-1); }
.cui-panebtn.cui-paneU::before { transform: rotate(-90deg); }
.cui-panebtn.cui-paneD::before { transform: rotate(90deg); }
.cui-panebtn:hover, .cui-panebtn:active { background: var(--cui-ink); }
.cui-panebtn:hover::before, .cui-panebtn:active::before { filter: invert(1); }
.cui-panebtn:focus-visible { outline: var(--cui-focus); outline-offset: var(--px); }
body.tv .cui-panebtn { display: none; }
.cui-edgepane { padding-top: var(--cui-panebtn, calc(16 * var(--px))) !important; }
.cui-edgepane::-webkit-scrollbar-track { margin-top: var(--cui-panebtn, calc(16 * var(--px))); }
.cui-edgestack { padding-right: var(--cui-panebtn, calc(16 * var(--px))) !important; min-height: var(--cui-panebtn, calc(16 * var(--px))); }
.cui-edgefold { flex: 0 0 auto !important; height: var(--cui-panebtn, calc(16 * var(--px))) !important; min-height: 0 !important; max-height: none !important;
  overflow: hidden !important; padding: 0 !important; box-sizing: content-box; }
.cui-edgefold > * { visibility: hidden; }
@media (pointer: coarse), (any-pointer: coarse) {
  .cui-edge:not(.cui-edgeshut) { width: calc(14 * var(--px)); margin-left: calc(-7 * var(--px)); }
  .cui-edge:not(.cui-edgeshut)::after { left: calc(6 * var(--px)); }
  .cui-divider { width: calc(9 * var(--px)); }
  .cui-vertical > .cui-divider { width: auto; height: calc(9 * var(--px)); }
}
html.dev-phone .cui-divider { width: calc(9 * var(--px)); }
html.dev-phone .cui-vertical > .cui-divider { width: auto; height: calc(9 * var(--px)); }
/* #1472: the top edge a bottom drawer is sized by (drawer() in ui.js): the side edge laid on its side, the same strip
   and black line, wider for a finger, and the same thin bar with a dotted grip when closed */
.cui-edge.cui-edgev { height: calc(8 * var(--px)); margin: calc(-4 * var(--px)) 0 0; cursor: row-resize; }
.cui-edge.cui-edgev::after { top: calc(3 * var(--px)); bottom: auto; left: 0; right: 0; width: auto; height: calc(2 * var(--px)); }
.cui-edge.cui-edgev.cui-edgeshut { margin: 0; cursor: pointer; border-left: 0; border-right: 0; border-top: var(--px) solid #000; border-bottom: var(--px) solid #000; }
.cui-edge.cui-edgev.cui-edgeshut::after { left: 50%; right: auto; top: 50%; width: calc(24 * var(--px)); height: var(--px); margin: calc(-0.5 * var(--px)) 0 0 calc(-12 * var(--px));
  background: repeating-linear-gradient(to right, #000 0 var(--px), transparent var(--px) calc(2 * var(--px))); }
.cui-edge.cui-edgev.cui-edgeshut:hover::after, .cui-edge.cui-edgev.cui-edgeshut:focus-visible::after {
  background: repeating-linear-gradient(to right, #fff 0 var(--px), transparent var(--px) calc(2 * var(--px))); }
.cui-edgev-pane.cui-edgeshut-pane { padding-top: 0 !important; padding-bottom: 0 !important; }
@media (pointer: coarse), (any-pointer: coarse) {
  .cui-edge.cui-edgev:not(.cui-edgeshut) { height: calc(14 * var(--px)); margin: calc(-7 * var(--px)) 0 0; }
  .cui-edge.cui-edgev:not(.cui-edgeshut)::after { left: 0; top: calc(6 * var(--px)); }
}

.cui-console { overflow: auto; min-height: 0; background: var(--cui-paper); border: var(--px) solid var(--cui-ink); outline: none;
  font-family: var(--cui-font-code); font-size: var(--cui-type-10); line-height: var(--cui-type-13); }
.cui-console:focus-visible { box-shadow: inset 0 0 0 var(--px) var(--cui-ink); }
.cui-cline { display: flex; align-items: flex-start; gap: calc(4 * var(--px)); padding: calc(1 * var(--px)) calc(4 * var(--px));
  border-bottom: var(--px) solid var(--cui-faint); }
.cui-cline > .cui-icon { flex: 0 0 auto; width: var(--cui-icon); height: var(--cui-icon); margin: var(--cui-icon-sm-inset); image-rendering: pixelated; }
.cui-ctext { min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cui-cline.cui-warn { background: var(--cui-warn-tint); }
.cui-cline.cui-error { background: var(--cui-error-tint); }

.cui-field.cui-area.cui-mono { tab-size: 2; -moz-tab-size: 2; white-space: pre; overflow-wrap: normal; }

/* ---- the position bar (CUI.seek): a dithered track and the scroll box ---------------------------------------- */

.cui-seek {
  position: relative; height: calc(16 * var(--px)); border: var(--px) solid var(--cui-ink); touch-action: none; cursor: default;
  background: url("../glyphs/dither.svg") 0 0 / calc(2 * var(--px)) calc(2 * var(--px)); image-rendering: pixelated;
}
.cui-seek .fill { display: none; }
/* req-seekbar-gestures: "-5s", "+30s", "« 10s" over the position bar while a tap or a hold moves it */
.cui-seek .sbub { position: absolute; bottom: calc(100% + 6 * var(--px)); left: calc(var(--bub, 0) * 100%); transform: translateX(-50%);
  background: var(--cui-paper); color: var(--cui-ink); border: var(--px) solid var(--cui-ink); box-shadow: var(--cui-shadow);
  padding: 0 calc(4 * var(--px)); font-family: var(--chicago); font-size: var(--cui-type-12);
  line-height: var(--cui-type-16); white-space: nowrap; pointer-events: none; z-index: 5; }
.cui-seek .sbub[hidden] { display: none; }
.cui-seek .buf { position: absolute; top: 0; bottom: 0; left: 0; width: 0; background: var(--cui-paper); pointer-events: none; }
/* #2595: a moment on the bar (seek().moments), a black tick a press goes to */
.cui-seekmark { position: absolute; top: calc(-3 * var(--px)); bottom: calc(-3 * var(--px)); left: calc(var(--m, 0) * 100%); width: calc(3 * var(--px));
  margin: 0 0 0 calc(-1 * var(--px)); padding: 0; border: 0; background: var(--cui-ink); z-index: 2; cursor: default; -webkit-appearance: none; appearance: none; }
.cui-seekmark:focus-visible { outline: var(--cui-focus); outline-offset: var(--px); }
.cui-seek .thumb {
  position: absolute; top: calc(-1 * var(--px)); width: var(--cui-icon); height: var(--cui-icon);
  left: calc(var(--at, 0) * (100% - 14 * var(--px)) - var(--px));
  background: url("../glyphs/thumb.svg") 0 0 / 100% 100%; image-rendering: pixelated;
}

/* ---- the profiles: a phone and a tablet get touch sizes, a TV a bigger ring (device.js, app.js) ---------------- */

/* #2308: on a phone every control is a touch target of --cui-touch (44 CSS px) both ways, its words the type tokens'
   phone sizes; the look is the same System 7 drawing, only larger. */
/* #2456: a part marked cui-asdrawn (a Magic page's canvas) is a design drawn the same on every device, as its visitors
   see it; the phone's touch sizes stay outside it (:where keeps each rule's weight as it was) */
html.dev-phone .cui-btn:where(:not(.cui-asdrawn *)) { height: var(--cui-touch); min-width: calc(56 * var(--px)); }
html.dev-phone .cui-btn.cui-small:where(:not(.cui-asdrawn *)) { height: var(--cui-touch); min-width: var(--cui-touch); }   /* #564: one height */
html.dev-phone .cui-btn.cui-iconly:where(:not(.cui-asdrawn *)) { width: var(--cui-touch); min-width: 0; }
html.dev-phone .cui-bevel:where(:not(.cui-asdrawn *)) { width: var(--cui-touch); height: var(--cui-touch); }
html.dev-phone .cui-popup:where(:not(.cui-asdrawn *)) { height: var(--cui-touch); font-size: 16px; }
html.dev-phone .cui-field:where(:not(.cui-asdrawn *)) { height: var(--cui-touch); font-size: 16px; }
html.dev-phone .cui-field.cui-area:where(:not(.cui-asdrawn *)) { height: auto; min-height: var(--cui-touch); }
html.dev-phone .cui-segb { height: var(--cui-touch); min-width: var(--cui-touch); }
html.dev-phone .cui-tab { height: var(--cui-touch); min-width: var(--cui-touch); }
html.dev-phone .cui-row { min-height: var(--cui-touch); }
/* #2501: and a row holding a button, a finger high there, keeps the bar's room above and below it */
html.dev-phone .cui-row:has(.cui-btn) { padding-top: var(--cui-bar-pad); padding-bottom: var(--cui-bar-pad); }
html.dev-phone .cui-menuitem { min-height: var(--cui-touch); }
html.dev-phone .cui-check { min-height: var(--cui-touch); min-width: var(--cui-touch); }
html.dev-phone input.cui-checkbox, html.dev-phone input.cui-radio { width: var(--cui-icon); height: var(--cui-icon); }
html.dev-phone input.cui-checkbox:checked { background-size: calc(14 * var(--px)) calc(14 * var(--px)); }
html.dev-phone input.cui-radio { background-size: calc(16 * var(--px)) calc(16 * var(--px)); }
/* #2308: a control drawn smaller than a finger keeps its System 7 size and takes the press in an area of --cui-touch round
   it, its ::after spread evenly to 44 x 44 (never smaller than it is); one rule for the whole kit, and a page's own small
   control joins it with the cui-touchpad class */
html.dev-phone :is(.cui-link, .cui-plain.cui-word, .cui-disc, .cui-sort, .cui-tagmain, .cui-grip, .cui-pathbtn) { position: relative; }   /* a cui-touchpad is placed by its page */
html.dev-phone :is(.cui-link, .cui-plain.cui-word, .cui-disc, .cui-sort, .cui-tagmain, .cui-grip, .cui-pathbtn, .cui-rmark,
  .cui-touchpad, .cui-pweye)::after {
  content: ""; position: absolute; display: block;
  top: min(0px, calc((100% - var(--cui-touch)) / 2)); bottom: min(0px, calc((100% - var(--cui-touch)) / 2));
  left: min(0px, calc((100% - var(--cui-touch)) / 2)); right: min(0px, calc((100% - var(--cui-touch)) / 2)); }
/* #2462: a pane's Hide and Show button is placed by the kit, which spreads its press area only where the pane's parent
   has room (paneButtonReach in ui.js), so it never widens the window; its own rule, as the list above outranks one
   that names only it; it takes the place of #2494's rule, which spread it inward at a right edge only */
html.dev-phone .cui-panebtn::after { content: ""; position: absolute; display: block; left: var(--cui-reach-l, min(0px, calc((100% - var(--cui-touch)) / 2)));
  right: var(--cui-reach-r, min(0px, calc((100% - var(--cui-touch)) / 2))); top: var(--cui-reach-t, min(0px, calc((100% - var(--cui-touch)) / 2)));
  bottom: var(--cui-reach-b, min(0px, calc((100% - var(--cui-touch)) / 2))); }
/* lists, trees and wells a finger picks from: their rows and boxes are a finger high */
html.dev-phone .cui-lv th { height: var(--cui-touch); }
html.dev-phone .cui-lv .cui-sort { height: var(--cui-touch); }
html.dev-phone .cui-sort { min-height: var(--cui-touch); }
html.dev-phone .cui-treepick { min-height: var(--cui-touch); }
html.dev-phone .cui-treerow .cui-disc { height: var(--cui-touch); }
html.dev-phone .cui-well { width: var(--cui-touch); height: var(--cui-touch); }
html.dev-phone .cui-dot { width: var(--cui-touch); height: var(--cui-touch); }
html.dev-phone .cui-tile { min-height: var(--cui-touch); }
html.dev-phone input.cui-slider { height: var(--cui-touch); }   /* the track and thumb keep their drawing, centred */
/* the little arrows: side by side, each a finger square, as a phone's stepper */
html.dev-phone .cui-arrows { flex-direction: row; }
html.dev-phone .cui-arrow { width: var(--cui-touch); height: var(--cui-touch); }
html.dev-phone .cui-arrow + .cui-arrow { margin-top: 0; margin-left: calc(-1 * var(--px)); }
/* a fold's heading */
html.dev-phone summary { min-height: var(--cui-touch); line-height: var(--cui-touch); }
/* a strip of letters a finger slides along (Contacts' A to Z): the strip is the control, a finger wide and the list's
   height; ui.js's scrub picks the letter under the finger as it moves */
html.dev-phone .cui-scrub { min-width: var(--cui-touch); touch-action: none; }
html.dev-tablet .cui-btn { height: calc(24 * var(--px)); }
html.dev-tablet .cui-row { min-height: calc(28 * var(--px)); }
html.dev-tablet .cui-menuitem { min-height: calc(24 * var(--px)); }
body.tv .cui-row:focus, body.tv .cui-menuitem:focus { outline: none !important; box-shadow: none; background: var(--cui-hilite); color: var(--cui-hilite-ink); }
body.tv .cui-row:focus img, body.tv .cui-menuitem:focus img { filter: var(--cui-glyph-on); }
body.tv .cui-default:focus { outline-offset: calc(6 * var(--px)); }

/* chosen and no longer answerable (a question's answer, 28 Oct: "the text is black and I can't see the text"): a latched
 * button is white on black in every state, never the disabled grey or black on its black */
.cui-btn.cui-on:disabled, .cui-btn.cui-on.cui-dim, .cui-btn.cui-on.cui-disabled { color: var(--cui-paper); }
.cui-btn.cui-on:disabled > *, .cui-btn.cui-on.cui-dim > *, .cui-btn.cui-on.cui-disabled > * {
  opacity: 1; -webkit-mask-image: none; mask-image: none; }
.cui-btn.cui-on:disabled > .cui-icon, .cui-btn.cui-on.cui-dim > .cui-icon { filter: var(--cui-glyph-inv); }

/* ---- the shapes -------------------------------------------------------------------------------------------------- */
/* ---- generated by tools/ui_shapes.py: do not edit by hand ---- */
/* each rounded control draws its frame and face on its ::after, one nine-slice picture of the pixel art (#536), under
   its label; the control's own box stays clear */
.cui-btn, .cui-bevel, .cui-seg > .cui-segb:first-child, .cui-seg > .cui-segb:last-child, .cui-tab, .cui-seg.cui-sidetabs > .cui-segb {
  background-color: transparent; background-image: none; position: relative; z-index: 0;   /* its own stacking: the frame under the label */
}
.cui-btn::after, .cui-bevel::after, .cui-seg > .cui-segb:first-child::after, .cui-seg > .cui-segb:last-child::after, .cui-tab::after, .cui-seg.cui-sidetabs > .cui-segb::after {
  content: ""; position: absolute; left: 0; top: 0; right: 0; bottom: 0; box-sizing: border-box; z-index: -1;
  pointer-events: none;
}
/* the push button (cui-btn): normal, then pressed or latched, the whole round rect inverted */
.cui-btn::after {
  border-style: solid; border-color: transparent; border-width: calc(4 * var(--px)) calc(4 * var(--px)) calc(4 * var(--px)) calc(4 * var(--px));
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9' width='9' height='9' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M3 0h3v1h-3zM1 1h2v1h-2zM6 1h2v1h-2zM1 2h1v1h-1zM7 2h1v1h-1zM0 3h1v1h-1zM8 3h1v1h-1zM0 4h1v1h-1zM8 4h1v1h-1zM0 5h1v1h-1zM8 5h1v1h-1zM1 6h1v1h-1zM7 6h1v1h-1zM1 7h2v1h-2zM6 7h2v1h-2zM3 8h3v1h-3z'/%3E%3Cpath fill='%23fff' d='M3 1h3v1h-3zM2 2h5v1h-5zM1 3h7v1h-7zM1 4h7v1h-7zM1 5h7v1h-7zM2 6h5v1h-5zM3 7h3v1h-3z'/%3E%3C/svg%3E") 4 4 4 4 fill stretch;
}
.cui-btn.cui-on::after, .cui-btn:active:not(:disabled):not(.cui-off)::after {
  border-style: solid; border-color: transparent; border-width: calc(4 * var(--px)) calc(4 * var(--px)) calc(4 * var(--px)) calc(4 * var(--px));
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9' width='9' height='9' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M3 0h3v1h-3zM1 1h7v1h-7zM1 2h7v1h-7zM0 3h9v1h-9zM0 4h9v1h-9zM0 5h9v1h-9zM1 6h7v1h-7zM1 7h7v1h-7zM3 8h3v1h-3z'/%3E%3C/svg%3E") 4 4 4 4 fill stretch;
}
/* the default button's ring, 4 Mac px outside the button */
.cui-default::before {
  border-style: solid; border-color: transparent; border-width: calc(10 * var(--px)) calc(10 * var(--px)) calc(10 * var(--px)) calc(10 * var(--px));
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21' width='21' height='21' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M6 0h9v1h-9zM4 1h13v1h-13zM3 2h15v1h-15zM2 3h5v1h-5zM14 3h5v1h-5zM1 4h4v1h-4zM16 4h4v1h-4zM1 5h3v1h-3zM17 5h3v1h-3zM0 6h4v1h-4zM17 6h4v1h-4zM0 7h3v1h-3zM18 7h3v1h-3zM0 8h3v1h-3zM18 8h3v1h-3zM0 9h3v1h-3zM18 9h3v1h-3zM0 10h3v1h-3zM18 10h3v1h-3zM0 11h3v1h-3zM18 11h3v1h-3zM0 12h3v1h-3zM18 12h3v1h-3zM0 13h3v1h-3zM18 13h3v1h-3zM0 14h4v1h-4zM17 14h4v1h-4zM1 15h3v1h-3zM17 15h3v1h-3zM1 16h4v1h-4zM16 16h4v1h-4zM2 17h5v1h-5zM14 17h5v1h-5zM3 18h15v1h-15zM4 19h13v1h-13zM6 20h9v1h-9z'/%3E%3Cpath fill='%23fff' d='M7 3h7v1h-7zM5 4h2v1h-2zM14 4h2v1h-2zM4 5h1v1h-1zM16 5h1v1h-1zM4 6h1v1h-1zM16 6h1v1h-1zM3 7h1v1h-1zM17 7h1v1h-1zM3 8h1v1h-1zM17 8h1v1h-1zM3 9h1v1h-1zM17 9h1v1h-1zM3 10h1v1h-1zM17 10h1v1h-1zM3 11h1v1h-1zM17 11h1v1h-1zM3 12h1v1h-1zM17 12h1v1h-1zM3 13h1v1h-1zM17 13h1v1h-1zM4 14h1v1h-1zM16 14h1v1h-1zM4 15h1v1h-1zM16 15h1v1h-1zM5 16h2v1h-2zM14 16h2v1h-2zM7 17h7v1h-7z'/%3E%3C/svg%3E") 10 10 10 10 stretch;
}
/* the bevel button with a glyph (cui-bevel) */
.cui-bevel::after {
  border-style: solid; border-color: transparent; border-width: calc(3 * var(--px)) calc(3 * var(--px)) calc(3 * var(--px)) calc(3 * var(--px));
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7' width='7' height='7' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M1 0h5v1h-5zM0 1h1v1h-1zM6 1h1v1h-1zM0 2h1v1h-1zM6 2h1v1h-1zM0 3h1v1h-1zM6 3h1v1h-1zM0 4h1v1h-1zM6 4h1v1h-1zM0 5h1v1h-1zM6 5h1v1h-1zM1 6h5v1h-5z'/%3E%3Cpath fill='%23fff' d='M1 1h5v1h-5zM1 2h1v1h-1zM1 3h1v1h-1zM1 4h1v1h-1z'/%3E%3Cpath fill='%23ddd' d='M2 2h3v1h-3zM2 3h3v1h-3zM2 4h3v1h-3z'/%3E%3Cpath fill='%23888' d='M5 2h1v1h-1zM5 3h1v1h-1zM5 4h1v1h-1zM1 5h5v1h-5z'/%3E%3C/svg%3E") 3 3 3 3 fill stretch;
}
.cui-bevel.cui-on::after, .cui-bevel:active:not(:disabled):not(.cui-off)::after {
  border-style: solid; border-color: transparent; border-width: calc(3 * var(--px)) calc(3 * var(--px)) calc(3 * var(--px)) calc(3 * var(--px));
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7' width='7' height='7' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M1 0h5v1h-5zM0 1h7v1h-7zM0 2h7v1h-7zM0 3h7v1h-7zM0 4h7v1h-7zM0 5h7v1h-7zM1 6h5v1h-5z'/%3E%3C/svg%3E") 3 3 3 3 fill stretch;
}
/* segments (cui-seg): the end caps, plain and chosen */
.cui-seg > .cui-segb:first-child::after {
  border-style: solid; border-color: transparent; border-width: calc(4 * var(--px)) calc(3 * var(--px)) calc(4 * var(--px)) calc(3 * var(--px));
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 9' width='7' height='9' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M3 0h4v1h-4zM1 1h2v1h-2zM6 1h1v1h-1zM1 2h1v1h-1zM6 2h1v1h-1zM0 3h1v1h-1zM6 3h1v1h-1zM0 4h1v1h-1zM6 4h1v1h-1zM0 5h1v1h-1zM6 5h1v1h-1zM1 6h1v1h-1zM6 6h1v1h-1zM1 7h2v1h-2zM6 7h1v1h-1zM3 8h4v1h-4z'/%3E%3Cpath fill='%23fff' d='M3 1h3v1h-3zM2 2h4v1h-4zM1 3h5v1h-5zM1 4h5v1h-5zM1 5h5v1h-5zM2 6h4v1h-4zM3 7h3v1h-3z'/%3E%3C/svg%3E") 4 3 4 3 fill stretch;
}
.cui-seg > .cui-segb:last-child::after {
  border-style: solid; border-color: transparent; border-width: calc(4 * var(--px)) calc(3 * var(--px)) calc(4 * var(--px)) calc(3 * var(--px));
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 9' width='7' height='9' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M0 0h4v1h-4zM0 1h1v1h-1zM4 1h2v1h-2zM0 2h1v1h-1zM5 2h1v1h-1zM0 3h1v1h-1zM6 3h1v1h-1zM0 4h1v1h-1zM6 4h1v1h-1zM0 5h1v1h-1zM6 5h1v1h-1zM0 6h1v1h-1zM5 6h1v1h-1zM0 7h1v1h-1zM4 7h2v1h-2zM0 8h4v1h-4z'/%3E%3Cpath fill='%23fff' d='M1 1h3v1h-3zM1 2h4v1h-4zM1 3h5v1h-5zM1 4h5v1h-5zM1 5h5v1h-5zM1 6h4v1h-4zM1 7h3v1h-3z'/%3E%3C/svg%3E") 4 3 4 3 fill stretch;
}
.cui-seg > .cui-segb:only-child::after {
  border-style: solid; border-color: transparent; border-width: calc(4 * var(--px)) calc(4 * var(--px)) calc(4 * var(--px)) calc(4 * var(--px));
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9' width='9' height='9' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M3 0h3v1h-3zM1 1h2v1h-2zM6 1h2v1h-2zM1 2h1v1h-1zM7 2h1v1h-1zM0 3h1v1h-1zM8 3h1v1h-1zM0 4h1v1h-1zM8 4h1v1h-1zM0 5h1v1h-1zM8 5h1v1h-1zM1 6h1v1h-1zM7 6h1v1h-1zM1 7h2v1h-2zM6 7h2v1h-2zM3 8h3v1h-3z'/%3E%3Cpath fill='%23fff' d='M3 1h3v1h-3zM2 2h5v1h-5zM1 3h7v1h-7zM1 4h7v1h-7zM1 5h7v1h-7zM2 6h5v1h-5zM3 7h3v1h-3z'/%3E%3C/svg%3E") 4 4 4 4 fill stretch;
}
.cui-seg > .cui-segb.cui-on:first-child::after, .cui-seg > .cui-segb:active:first-child::after {
  border-style: solid; border-color: transparent; border-width: calc(4 * var(--px)) calc(3 * var(--px)) calc(4 * var(--px)) calc(3 * var(--px));
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 9' width='7' height='9' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M3 0h4v1h-4zM1 1h6v1h-6zM1 2h6v1h-6zM0 3h7v1h-7zM0 4h7v1h-7zM0 5h7v1h-7zM1 6h6v1h-6zM1 7h6v1h-6zM3 8h4v1h-4z'/%3E%3C/svg%3E") 4 3 4 3 fill stretch;
}
.cui-seg > .cui-segb.cui-on:last-child::after, .cui-seg > .cui-segb:active:last-child::after {
  border-style: solid; border-color: transparent; border-width: calc(4 * var(--px)) calc(3 * var(--px)) calc(4 * var(--px)) calc(3 * var(--px));
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 9' width='7' height='9' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M0 0h4v1h-4zM0 1h6v1h-6zM0 2h6v1h-6zM0 3h7v1h-7zM0 4h7v1h-7zM0 5h7v1h-7zM0 6h6v1h-6zM0 7h6v1h-6zM0 8h4v1h-4z'/%3E%3C/svg%3E") 4 3 4 3 fill stretch;
}
.cui-seg > .cui-segb.cui-on:only-child::after, .cui-seg > .cui-segb:active:only-child::after {
  border-style: solid; border-color: transparent; border-width: calc(4 * var(--px)) calc(4 * var(--px)) calc(4 * var(--px)) calc(4 * var(--px));
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9' width='9' height='9' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M3 0h3v1h-3zM1 1h7v1h-7zM1 2h7v1h-7zM0 3h9v1h-9zM0 4h9v1h-9zM0 5h9v1h-9zM1 6h7v1h-7zM1 7h7v1h-7zM3 8h3v1h-3z'/%3E%3C/svg%3E") 4 4 4 4 fill stretch;
}
/* folder tabs (cui-tab) */
.cui-tab::after {
  border-style: solid; border-color: transparent; border-width: calc(4 * var(--px)) calc(4 * var(--px)) 0 calc(4 * var(--px));
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 5' width='9' height='5' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M3 0h3v1h-3zM1 1h2v1h-2zM6 1h2v1h-2zM1 2h1v1h-1zM7 2h1v1h-1zM0 3h1v1h-1zM8 3h1v1h-1zM0 4h1v1h-1zM8 4h1v1h-1z'/%3E%3Cpath fill='%23fff' d='M3 1h3v1h-3zM2 2h5v1h-5zM1 3h7v1h-7zM1 4h7v1h-7z'/%3E%3C/svg%3E") 4 4 0 4 fill stretch;
}
.cui-tab.cui-on::after {
  border-style: solid; border-color: transparent; border-width: calc(4 * var(--px)) calc(4 * var(--px)) 0 calc(4 * var(--px));
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 5' width='9' height='5' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M3 0h3v1h-3zM1 1h7v1h-7zM1 2h7v1h-7zM0 3h9v1h-9zM0 4h9v1h-9z'/%3E%3C/svg%3E") 4 4 0 4 fill stretch;
}
/* tabs down a window's side (#1628): each the same, open on the page; plain, then chosen */
.cui-seg.cui-sidetabs > .cui-segb::after {
  border-style: solid; border-color: transparent; border-width: calc(4 * var(--px)) 0 calc(4 * var(--px)) calc(4 * var(--px));
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 9' width='5' height='9' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M3 0h2v1h-2zM1 1h2v1h-2zM1 2h1v1h-1zM0 3h1v1h-1zM0 4h1v1h-1zM0 5h1v1h-1zM1 6h1v1h-1zM1 7h2v1h-2zM3 8h2v1h-2z'/%3E%3Cpath fill='%23fff' d='M3 1h2v1h-2zM2 2h3v1h-3zM1 3h4v1h-4zM1 4h4v1h-4zM1 5h4v1h-4zM2 6h3v1h-3zM3 7h2v1h-2z'/%3E%3C/svg%3E") 4 0 4 4 fill stretch;
}
.cui-seg.cui-sidetabs > .cui-segb.cui-on::after, .cui-seg.cui-sidetabs > .cui-segb:active::after {
  border-style: solid; border-color: transparent; border-width: calc(4 * var(--px)) 0 calc(4 * var(--px)) calc(4 * var(--px));
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 9' width='5' height='9' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M3 0h2v1h-2zM1 1h4v1h-4zM1 2h4v1h-4zM0 3h5v1h-5zM0 4h5v1h-5zM0 5h5v1h-5zM1 6h4v1h-4zM1 7h4v1h-4zM3 8h2v1h-2z'/%3E%3C/svg%3E") 4 0 4 4 fill stretch;
}
/* where the set runs across the top (a phone, a TV, or asked for): folder tabs on the page's top line */
.cui-seg.cui-sidetabs.cui-across > .cui-segb::after, html.dev-tv .cui-seg.cui-sidetabs > .cui-segb::after {
  border-style: solid; border-color: transparent; border-width: calc(4 * var(--px)) calc(4 * var(--px)) 0 calc(4 * var(--px));
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 5' width='9' height='5' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M3 0h3v1h-3zM1 1h2v1h-2zM6 1h2v1h-2zM1 2h1v1h-1zM7 2h1v1h-1zM0 3h1v1h-1zM8 3h1v1h-1zM0 4h1v1h-1zM8 4h1v1h-1z'/%3E%3Cpath fill='%23fff' d='M3 1h3v1h-3zM2 2h5v1h-5zM1 3h7v1h-7zM1 4h7v1h-7z'/%3E%3C/svg%3E") 4 4 0 4 fill stretch;
}
.cui-seg.cui-sidetabs.cui-across > .cui-segb.cui-on::after, .cui-seg.cui-sidetabs.cui-across > .cui-segb:active::after, html.dev-tv .cui-seg.cui-sidetabs > .cui-segb.cui-on::after, html.dev-tv .cui-seg.cui-sidetabs > .cui-segb:active::after {
  border-style: solid; border-color: transparent; border-width: calc(4 * var(--px)) calc(4 * var(--px)) 0 calc(4 * var(--px));
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 5' width='9' height='5' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M3 0h3v1h-3zM1 1h7v1h-7zM1 2h7v1h-7zM0 3h9v1h-9zM0 4h9v1h-9z'/%3E%3C/svg%3E") 4 4 0 4 fill stretch;
}
@media (max-width: 700px) {
.cui-seg.cui-sidetabs > .cui-segb::after {
  border-style: solid; border-color: transparent; border-width: calc(4 * var(--px)) calc(4 * var(--px)) 0 calc(4 * var(--px));
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 5' width='9' height='5' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M3 0h3v1h-3zM1 1h2v1h-2zM6 1h2v1h-2zM1 2h1v1h-1zM7 2h1v1h-1zM0 3h1v1h-1zM8 3h1v1h-1zM0 4h1v1h-1zM8 4h1v1h-1z'/%3E%3Cpath fill='%23fff' d='M3 1h3v1h-3zM2 2h5v1h-5zM1 3h7v1h-7zM1 4h7v1h-7z'/%3E%3C/svg%3E") 4 4 0 4 fill stretch;
}
.cui-seg.cui-sidetabs > .cui-segb.cui-on::after, .cui-seg.cui-sidetabs > .cui-segb:active::after {
  border-style: solid; border-color: transparent; border-width: calc(4 * var(--px)) calc(4 * var(--px)) 0 calc(4 * var(--px));
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 5' width='9' height='5' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M3 0h3v1h-3zM1 1h7v1h-7zM1 2h7v1h-7zM0 3h9v1h-9zM0 4h9v1h-9z'/%3E%3C/svg%3E") 4 4 0 4 fill stretch;
}
}
/* ---- end of generated shapes ---- */
/* #1722: the wait before a button's action happens by itself (dictated words sending): a pie on its corner that empties,
   --cui-wait 1 to 0, set by CUI.setWait */
.cui-wait { position: relative; }
.cui-wait::before {
  content: ""; position: absolute; top: calc(-4 * var(--px)); right: calc(-4 * var(--px)); left: auto; bottom: auto;
  width: calc(11 * var(--px)); height: calc(11 * var(--px)); box-sizing: border-box; border-radius: 50%; z-index: 2;
  border: var(--px) solid var(--cui-ink); border-image: none; pointer-events: none;
  background: conic-gradient(var(--cui-ink) calc(var(--cui-wait, 1) * 360deg), var(--cui-paper) 0);
}

/* ---- drawn in place, and the gallery (ui/gallery.js, /admin/ui-gallery) ------------------------------------ */

.cui-menu.cui-inline { position: static; transform: none; max-height: none; }
/* #1996: in the run of what holds it. Relative, offsets off, not static: a scroll bar drawn beside its long words
   (macbars.js, Firefox) makes a static holder relative with the fixed band's offsets still on it */
.cui-band.cui-inline { position: relative; left: auto; bottom: auto; z-index: auto; transform: none; max-height: none; }
.cui-alert.cui-inline { width: calc(340 * var(--px)); max-width: 100%; }
.cui-btn.cui-showfocus, .cui-bevel.cui-showfocus { outline: var(--cui-focus); outline-offset: calc(2 * var(--px)); }
.cui-field.cui-showfocus { box-shadow: inset 0 0 0 var(--px) var(--cui-ink); }
body.tv .cui-showfocus { outline: calc(3 * var(--px)) solid var(--cui-ink) !important; outline-offset: calc(2 * var(--px)); box-shadow: 0 0 0 calc(5 * var(--px)) var(--cui-paper); }
.cuig { display: flex; flex-direction: column; gap: calc(10 * var(--px)); }
.cuig-head { margin: 0 0 calc(6 * var(--px)); padding-bottom: calc(2 * var(--px)); border-bottom: var(--px) solid var(--cui-ink);
  font-family: var(--chicago); font-size: var(--cui-type-12); font-weight: normal; }
.cuig-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: calc(10 * var(--px)) calc(14 * var(--px)); margin-bottom: calc(8 * var(--px)); }
.cuig-cell { display: flex; flex-direction: column; align-items: flex-start; gap: var(--cui-space-under); margin: 0; min-width: 0; }
.cuig-cell > figcaption { font-size: var(--cui-type-9); color: var(--cui-quiet); }
.cuig-wide .cuig-cell { flex: 1 1 calc(160 * var(--px)); }
/* #2667: a window frame drawn still in the gallery, at a size that shows its title bar and a little body */
.win.cuig-win { position: relative; left: auto; top: auto; width: calc(150 * var(--px)); height: calc(54 * var(--px));
  min-width: 0; min-height: 0; resize: none; }
.cuig-reg { width: 100%; }
/* #2667 slice 2: a desktop drawn still in the gallery, its bar over its ground, the search pill under the bar and the
   foot's three parts on one line */
.cuig-deskdemo { width: 100%; display: flex; flex-direction: column; gap: calc(8 * var(--px)); }
.cuig-desk { display: flex; flex-direction: column; justify-content: space-between; align-items: center; min-height: calc(120 * var(--px));
  padding: calc(8 * var(--px)); }
.cuig-deskfoot { align-self: stretch; display: flex; align-items: flex-end; justify-content: space-between; gap: calc(8 * var(--px)); flex-wrap: wrap; }
.cuig-pipdemo { position: relative; display: inline-block; width: calc(24 * var(--px)); height: calc(24 * var(--px)); }
.cuig-tile { display: inline-flex; width: calc(32 * var(--px)); height: calc(32 * var(--px)); }
.cuig-bar { display: block; width: calc(160 * var(--px)); margin-top: calc(40 * var(--px)); }   /* room above for its key */
html.cui-os .cuig-tile { width: calc(46 * var(--cui-os-u)); height: calc(46 * var(--cui-os-u)); }
.cuig-sidedemo { display: flex; align-self: stretch; }
.cuig-places { align-items: stretch; }
.cuig-places .cui-sidebar { width: calc(105 * var(--px)); height: 100%; }
.cuig-table { width: calc(230 * var(--px)); }
.cuig-sheet { width: calc(170 * var(--px)); }
.cuig-grow { flex: 1 1 auto; }
html.cui-os .cuig-places .cui-sidebar { width: calc(210 * var(--cui-os-u)); }
html.cui-os .cuig-lockbox { width: calc(426 * var(--cui-os-u)); height: calc(240 * var(--cui-os-u)); border-radius: var(--cui-os-radius-item); overflow: hidden; }
html.cui-os .cui-setup.cuig-setupdemo { position: relative; z-index: auto; width: calc(720 * var(--cui-os-u)); height: calc(420 * var(--cui-os-u)); padding: calc(20 * var(--cui-os-u)); }
html.cui-os .cuig-table { width: calc(460 * var(--cui-os-u)); }
html.cui-os .cuig-sheet { width: calc(340 * var(--cui-os-u)); }
.cuig-asks { width: calc(150 * var(--px)); }
html.cui-os .cuig-asks { width: calc(300 * var(--cui-os-u)); }
.cuig-sidedemo > :last-child { flex: 1; }
html.dev-tv .cuig-sidedemo { flex-direction: column; }
@media (max-width: 700px) { .cuig-sidedemo { flex-direction: column; } }
.cuig-tile { width: calc(64 * var(--px)); height: calc(48 * var(--px)); }
.cuig-wide .cuig-cell > .cui-list, .cuig-wide .cuig-cell > .cui-tablewrap, .cuig-wide .cuig-cell > .cui-progress,
.cuig-wide .cuig-cell > .cui-tabs, .cuig-wide .cuig-cell > .cui-toolbar { align-self: stretch; }
.cuig-lv, .cuig-cell > .cui-lvwrap, .cuig-cell > .cui-mbar { align-self: stretch; }
.cuig-split { align-self: stretch; height: calc(110 * var(--px)); border: var(--px) solid var(--cui-ink); }
.cuig-split .cui-area { width: 100%; height: 100%; min-height: 0; border: 0; resize: none; box-sizing: border-box; }
.cuig-console { align-self: stretch; height: calc(66 * var(--px)); }
.cuig-chat { align-self: stretch; height: calc(180 * var(--px)); border: var(--px) solid var(--cui-ink); }
.cuig-ctx { padding: calc(10 * var(--px)) calc(16 * var(--px)); border: var(--px) dashed var(--cui-ink); background: var(--cui-paper); outline: none; }
.cuig-ctx:focus-visible { outline: var(--cui-focus); outline-offset: calc(2 * var(--px)); }

/* a conversation (CUI.chat): the one who answers on the left, plain; the person's own words on the right in a frame */
.cui-chat { display: flex; flex-direction: column; min-height: 0; height: 100%; background: var(--cui-paper); }
.cui-chatlog { flex: 1; min-height: 0; overflow: auto; outline: none; padding: calc(6 * var(--px)); display: flex; flex-direction: column;
  gap: calc(8 * var(--px)); font-family: var(--geneva); font-size: var(--cui-type-11); line-height: var(--cui-type-15); }
.cui-chatlog:focus-visible { box-shadow: inset 0 0 0 var(--px) var(--cui-ink); }
/* #443: the conversation and, over its bottom edge while new messages wait below, Scroll to New Messages */
.cui-chatlogbox { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.cui-chatnew { position: absolute; left: 0; right: 0; bottom: calc(4 * var(--px)); display: flex; justify-content: center; pointer-events: none; }
.cui-chatnew > .cui-btn { pointer-events: auto; }
.cui-chatnew[hidden] { display: none; }
.cui-msg { max-width: 92%; min-width: 0; overflow-wrap: anywhere; }
.cui-msg-me { align-self: flex-end; background: #eee; border: var(--px) solid var(--cui-ink); padding: calc(3 * var(--px)) calc(6 * var(--px));
  white-space: pre-wrap; box-shadow: var(--cui-shadow); }
.cui-msg-them { align-self: flex-start; }
.cui-msg-me.cui-msg-own { background: none; border: 0; padding: 0; box-shadow: none; }
.cui-msg-note { align-self: center; color: #555; font-size: var(--cui-type-10); text-align: center; }
.cui-msgwho { font-family: var(--chicago); font-size: var(--cui-type-10); margin-bottom: calc(2 * var(--px)); }
/* #1792: a conversation of many people names each sender and says when; the words can be selected and copied */
.cui-msgwho { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 calc(6 * var(--px)); }
.cui-msgname { min-width: 0; overflow-wrap: anywhere; }
.cui-msgwhen { font-family: var(--geneva); font-size: var(--cui-type-9); color: #555; white-space: nowrap; }
.cui-msg-me .cui-msgwho { justify-content: flex-end; }
.cui-chatlog .cui-msgtext { user-select: text; -webkit-user-select: text; cursor: text; }
.cui-msgtext a { color: inherit; text-decoration: underline; }
/* #1792: how many are waiting, at a button's shoulder (count in ui.js), as the bell's count is drawn */
.cui-btn.cui-hascount { position: relative; overflow: visible; }
.cui-count { position: absolute; top: calc(-4 * var(--px)); right: calc(-4 * var(--px)); min-width: calc(11 * var(--px)); height: calc(11 * var(--px));
  padding: 0 calc(2 * var(--px)); box-sizing: border-box; background: var(--cui-ink); color: var(--cui-paper); border: var(--px) solid var(--cui-paper);
  font-family: var(--geneva); font-size: var(--cui-text-xs, var(--cui-type-9)); font-weight: bold; line-height: var(--cui-type-9);
  text-align: center; pointer-events: none; }
.cui-msgtext p { margin: 0 0 calc(5 * var(--px)); }
.cui-msgtext p:last-child { margin-bottom: 0; }
.cui-msgtext ul, .cui-msgtext ol { margin: 0 0 calc(5 * var(--px)); padding-left: calc(16 * var(--px)); }
.cui-msgtext code, .cui-chatcode { font-family: var(--cui-font-code); font-size: var(--cui-type-10); }
.cui-chatcode { background: #f2f2f2; border: var(--px) solid var(--cui-track); padding: calc(3 * var(--px)); overflow-x: auto; margin: 0 0 calc(5 * var(--px)); white-space: pre; }
.cui-chathead { font-weight: bold; }
/* #432: a source's number beside the statement, raised and small, and the numbered References at the end */
/* #1530: a source's chip beside the words that rest on it: its number and its site, small, on the line */
.cui-cite { white-space: nowrap; margin-left: calc(2 * var(--px)); }
.cui-citechip { display: inline-flex; align-items: center; gap: calc(3 * var(--px)); padding: 0 calc(4 * var(--px)); margin: 0 calc(1 * var(--px));
  border: var(--px) solid currentColor; border-radius: calc(6 * var(--px)); font-size: 0.78em; line-height: 1.4; color: inherit;
  text-decoration: none; vertical-align: baseline; }
.cui-citechip:hover, .cui-citechip:focus-visible { background: var(--cui-ink); color: var(--cui-paper); }
.cui-citen { font-weight: bold; }
.cui-citesite { max-width: 12em; overflow: hidden; text-overflow: ellipsis; }
.cui-refshead { margin-top: calc(6 * var(--px)); font-size: var(--cui-type-10); }
.cui-refs { margin: 0; padding-left: calc(18 * var(--px)); font-size: var(--cui-type-10); overflow-wrap: anywhere; }
.cui-refs li { padding: calc(1 * var(--px)) 0; }
.cui-refs a { color: inherit; text-decoration: underline; }
.cui-refs li.cui-refon { background: var(--cui-hilite); color: var(--cui-hilite-ink); }
.cui-msgacts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cui-space-under) var(--cui-gap-row); margin-top: calc(3 * var(--px)); }
.cui-msgacts:empty { display: none; }
.cui-msgwait { display: flex; align-items: center; gap: calc(4 * var(--px)); color: #555; font-size: var(--cui-type-10); margin-top: calc(3 * var(--px)); }
.cui-msg-going .cui-msgtext:empty { display: none; }
.cui-chatbox { flex: none; display: flex; align-items: flex-end; gap: calc(4 * var(--px)); padding: calc(4 * var(--px)) calc(6 * var(--px));
  border-top: var(--px) solid var(--cui-ink); background: var(--cui-paper); }
.cui-chatbox[hidden] { display: none; }
.cui-chatentry > * { flex: 1 1 auto; min-width: 0; }      /* #1723: an app's own typing row fills the box */
/* #1708, #1736: the row a person types in, with its buttons: the kit's chat box and every app's own composer (Oscar's)
   use it. The box keeps a few words' width; in a narrow window the buttons go under it, at the right */
.cui-entryrow { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: flex-end; gap: calc(3 * var(--px)) calc(4 * var(--px)); }
.cui-entryrow > .cui-area { flex: 1 1 0; min-width: min(10em, 100%); }
.cui-chatin.cui-area { resize: none; min-height: calc(32 * var(--px)); max-height: calc(120 * var(--px)); }
.cui-chatlock { flex: none; padding: calc(6 * var(--px)); border-top: var(--px) solid var(--cui-ink); font-family: var(--geneva);
  font-size: var(--cui-type-10); display: flex; align-items: center; gap: calc(4 * var(--px)); }
.cui-chatlock[hidden] { display: none; }

/* chart keys and bars (bug-storage-legend-keys, 26 Oct): twelve one-bit patterns, the same in a bar and in its key */
.cui-stack { position: relative; display: flex; box-sizing: border-box; height: calc(10 * var(--px)); min-width: calc(40 * var(--px));
  border: var(--px) solid var(--cui-ink); background: var(--cui-paper); cursor: default; }
/* the parts in their own clipped strip, so the bar's key opens past the bar */
.cui-stackbars { display: flex; flex: 1 1 auto; min-width: 0; height: 100%; overflow: hidden; }
.cui-stack .cui-seg { flex: none; height: 100%; box-sizing: border-box; border-right: var(--px) solid var(--cui-ink); }
/* #2667: a bar's key on a press, in System 7 a framed box under the bar with each part's pattern (Oscar Platinum below) */
.cui-stackkey { position: absolute; left: calc(-1 * var(--px)); top: calc(100% + 2 * var(--px)); z-index: 5; display: flex; flex-direction: column;
  gap: calc(2 * var(--px)); padding: calc(3 * var(--px)) calc(5 * var(--px)); border: var(--px) solid var(--cui-ink); background: var(--cui-paper);
  box-shadow: var(--px) var(--px) 0 var(--cui-ink); color: var(--cui-ink); font-size: var(--cui-type-12); }
.cui-stackkey-row { display: flex; align-items: center; gap: calc(4 * var(--px)); white-space: nowrap; }
.cui-stackkey-row > b { margin-left: auto; padding-left: calc(8 * var(--px)); font-weight: normal; }
.cui-pie .cui-pie-os { display: none; }                  /* #2667: the smooth double pie, Oscar Platinum's */
.cui-key { display: inline-block; flex: none; box-sizing: border-box; width: calc(12 * var(--px)); height: calc(8 * var(--px));
  border: var(--px) solid var(--cui-ink); vertical-align: baseline; margin-right: calc(4 * var(--px)); }
.cui-legend { display: flex; flex-direction: column; gap: calc(2 * var(--px)); }
.cui-lrow { display: flex; align-items: center; gap: calc(4 * var(--px)); }
.cui-lrow .cui-key { margin-right: 0; }
.cui-lval { margin-left: auto; }
.cui-pat-0 { background: var(--cui-ink); }
.cui-pat-1 { background: repeating-linear-gradient(45deg, var(--cui-ink) 0 var(--px), var(--cui-paper) var(--px) calc(3 * var(--px))); }
.cui-pat-2 { background: repeating-linear-gradient(0deg, var(--cui-ink) 0 var(--px), var(--cui-paper) var(--px) calc(2 * var(--px))); }
.cui-pat-3 { background: conic-gradient(var(--cui-ink) 0 25%, var(--cui-paper) 0 100%) 0 0 / calc(4 * var(--px)) calc(4 * var(--px)); }
.cui-pat-4 { background: repeating-linear-gradient(45deg, var(--cui-ink) 0 var(--px), transparent var(--px) calc(4 * var(--px))),
  repeating-linear-gradient(-45deg, var(--cui-ink) 0 var(--px), var(--cui-paper) var(--px) calc(4 * var(--px))); }
.cui-pat-5 { background: repeating-linear-gradient(90deg, var(--cui-ink) 0 var(--px), var(--cui-paper) var(--px) calc(2 * var(--px))); }
.cui-pat-6 { background: repeating-linear-gradient(-45deg, var(--cui-ink) 0 var(--px), var(--cui-paper) var(--px) calc(3 * var(--px))); }
.cui-pat-7 { background: repeating-conic-gradient(var(--cui-ink) 0 25%, var(--cui-paper) 0 50%) 0 0 / calc(2 * var(--px)) calc(2 * var(--px)); }
.cui-pat-8 { background: repeating-linear-gradient(0deg, var(--cui-ink) 0 var(--px), transparent var(--px) calc(4 * var(--px))),
  repeating-linear-gradient(90deg, var(--cui-ink) 0 var(--px), var(--cui-paper) var(--px) calc(4 * var(--px))); }
.cui-pat-9 { background: repeating-linear-gradient(0deg, var(--cui-ink) 0 calc(2 * var(--px)), var(--cui-paper) calc(2 * var(--px)) calc(4 * var(--px))); }
.cui-pat-10 { background: conic-gradient(var(--cui-paper) 0 25%, var(--cui-ink) 0 100%) 0 0 / calc(4 * var(--px)) calc(4 * var(--px)); }
.cui-pat-11 { background: var(--cui-paper); }

/* #672: a control pulses once after it did its work (CUI.pulse, a copy that worked): drawn inverted twice in about a
   second, in steps, as System 7 flashes a menu item */
.cui-pulse { animation: cui-pulse 1s steps(1, end) 1; }
@keyframes cui-pulse { 0% { filter: invert(1); } 25% { filter: none; } 50% { filter: invert(1); } 75% { filter: none; } }
/* a question as a card (CUI.choice): framed like a dialog's inner box, the question in Chicago, its choices wrapping */
.cui-choice { border: var(--px) solid var(--cui-ink); box-shadow: var(--cui-shadow); background: var(--cui-paper); padding: calc(6 * var(--px));
  display: flex; flex-direction: column; gap: calc(6 * var(--px)); max-width: 100%; }
.cui-choiceq { font-family: var(--chicago); font-size: var(--cui-type-11); line-height: var(--cui-type-15); overflow-wrap: anywhere; }
/* the tag picker (#359): the chosen tags as chips with their glyph, then a field with suggestions */
.cui-tagpicker { display: flex; flex-wrap: wrap; align-items: center; gap: calc(4 * var(--px)); }
.cui-tagchips { display: inline-flex; flex-wrap: wrap; gap: calc(4 * var(--px)); }
.cui-tagpick { display: inline-flex; align-items: center; gap: calc(2 * var(--px)); }
.cui-tagpick > .cui-icon { width: var(--cui-icon); height: var(--cui-icon); margin: var(--cui-icon-sm-inset); }
.cui-tagadd.cui-field { width: calc(120 * var(--px)); }
/* the people picker (#1756): the people chosen as a framed list, each with Remove, then a search and what it found */
.cui-peoplepicker { display: flex; flex-direction: column; gap: calc(4 * var(--px)); min-width: 0; }
.cui-peoplelist, .cui-peoplehits:not(:empty) { display: flex; flex-direction: column; border: var(--px) solid var(--cui-ink);
  background: var(--cui-paper); max-height: calc(160 * var(--px)); overflow-y: auto; }
.cui-peopleempty { padding: calc(4 * var(--px)) calc(6 * var(--px)); color: var(--cui-dim); }
.cui-peopleextra { display: inline-flex; align-items: center; gap: calc(6 * var(--px)); flex: 0 0 auto; margin-left: auto; }
.cui-peoplerow .cui-rowmain { min-width: 0; }
/* suggestions as you type (#529): the menu's look, under the field, the one chosen by the arrows inverted */
.cui-menu.cui-suggest { max-height: min(50vh, calc(200 * var(--px))); }
.cui-suggest .cui-sugitem { cursor: pointer; }
.cui-suggest .cui-sugitem.cui-on { background: #000; color: #fff; }
/* #1741: a suggestion's smaller second line (suggestField's search) */
.cui-suggest .cui-sugitem { flex-wrap: wrap; }
.cui-suggest .cui-sugsub { flex: 0 0 100%; font-size: var(--cui-type-10); }
/* #1741: what a search found nothing for (No matches, or offline), under the field, not a choice; a row's glyph */
.cui-suggest .cui-sugnone { padding: calc(2 * var(--px)) calc(6 * var(--px)); font-size: var(--cui-type-12); }
.cui-suggest .cui-sugitem > .cui-icon, .cui-suggest .cui-sugitem > canvas { flex: 0 0 auto; margin-right: calc(4 * var(--px)); }
/* #1741: the layer over the whole screen (cover) and what is being dragged (ghost) */
body.cui-covered { overflow: hidden; }
.cui-cover { position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 9500; background: var(--cui-ink); outline: none; overflow: hidden; }
.cui-ghost { position: fixed; left: 0; top: 0; z-index: 10000; pointer-events: none; }
.cui-ghost.cui-ghosttext { padding: calc(2 * var(--px)) calc(6 * var(--px)); background: var(--cui-paper); color: var(--cui-ink);
  border: var(--px) solid var(--cui-ink); box-shadow: var(--cui-shadow); font-family: var(--chicago); font-size: var(--cui-type-11); }
.cui-popmark { display: inline-flex; align-items: center; gap: calc(3 * var(--px)); }
.cui-choicedetails { margin: 0; padding-left: calc(14 * var(--px)); overflow-wrap: anywhere; }
.cui-choicebtns { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cui-space-under) var(--cui-gap-row); }   /* #564: one centre line */
/* #1970 (congamerite: "some content is not responsive and can overflow"): a choice longer than the card wraps inside its
   button, never past the card's edge on a phone */
.cui-choice { min-width: 0; box-sizing: border-box; }
.cui-choicebtns > .cui-btn { max-width: 100%; height: auto; min-height: calc(20 * var(--px)); white-space: normal; }
.cui-choicebtns > .cui-btn > .cui-label { white-space: normal; overflow-wrap: anywhere; text-align: left;
  padding: calc(2 * var(--px)) 0; }
.cui-choicefields { display: flex; flex-direction: column; gap: calc(4 * var(--px)); }
.cui-choicedone .cui-btn:not(.cui-on) { opacity: .5; }
.cui-choiceother { display: flex; flex-direction: column; gap: calc(4 * var(--px)); }
.cui-choiceother > .cui-area { width: 100%; box-sizing: border-box; }
/* the row Send sits in at the right; #457: only the row - the Send button carries the same class, and as a flex row
   ending at the right it pushed its paper plane off centre */
div.cui-choicesend { display: flex; justify-content: flex-end; }
.cui-btn.cui-iconly { justify-content: center; align-items: center; }
/* #468: an answered card as a filled-in view: the question, the answer in place, Edit; no field, no Send */
.cui-choicewrap { display: contents; }
.cui-choiceans { font-size: var(--cui-type-12); white-space: pre-wrap; overflow-wrap: anywhere; border: var(--px) solid var(--cui-ink);
  background: var(--cui-paper); padding: calc(3 * var(--px)) calc(6 * var(--px)); }
/* #468: a form answered: its fields as they were asked, each with its answer in place of the box */
.cui-choiceanswered { display: flex; flex-direction: column; gap: calc(6 * var(--px)); min-width: 0; }
.cui-choicefield { display: flex; flex-direction: column; gap: calc(2 * var(--px)); min-width: 0; }
.cui-choiceflabel { font-size: var(--cui-type-11); overflow-wrap: anywhere; }
.cui-choicenone { opacity: 0.6; }
.cui-ansline { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.cui-ansline + .cui-ansline { margin-top: calc(6 * var(--px)); }
.cui-anslabel { display: block; font-family: var(--chicago); }
.cui-choicefilled { box-shadow: none; }
.cui-choicedone.cui-choicefilled .cui-btn { opacity: 1; }
.cui-choiceedit, .cui-choicecancel { justify-content: flex-end; }
.cui-choicesaid { font-size: var(--cui-type-11); white-space: pre-wrap; overflow-wrap: anywhere; border-left: calc(2 * var(--px)) solid var(--cui-ink);
  padding-left: calc(6 * var(--px)); }
.cui-choicesaid[hidden] { display: none; }
/* #351: every kind of question and forms (ui.js choiceFields) */
.cui-choicectx { font-size: var(--cui-type-10); overflow-wrap: anywhere; color: #333; }
.cui-askfield { display: flex; flex-direction: column; gap: calc(2 * var(--px)); min-width: 0; }
.cui-askfield.cui-askvoice { outline: var(--cui-focus); outline-offset: var(--cui-space-2); }   /* #646: the field Oscar asked by voice */
.cui-askfield .cui-labelled { display: flex; flex-direction: column; gap: calc(2 * var(--px)); }
.cui-askfield .cui-field, .cui-askfield .cui-area { width: 100%; box-sizing: border-box; }
.cui-askrow { display: flex; align-items: center; gap: calc(6 * var(--px)); flex-wrap: wrap; min-width: 0; }
.cui-askunit, .cui-askval { font-size: var(--cui-type-11); white-space: nowrap; }
.cui-askslider .cui-slider { flex: 1; min-width: calc(80 * var(--px)); }
.cui-askstars { gap: calc(2 * var(--px)); }
.cui-askchecks { display: flex; flex-direction: column; gap: calc(3 * var(--px)); }
/* #1925: a check list of what he found: the line under each item, Select All, Clear and how many are ticked */
.cui-askchecks { max-height: calc(320 * var(--px)); overflow-y: auto; overscroll-behavior: contain; }
.cui-askcheckitem { display: grid; grid-template-columns: auto 1fr; column-gap: calc(6 * var(--px)); align-items: start; }
.cui-askcheckitem > span { min-width: 0; overflow-wrap: anywhere; }
.cui-askcheckline { grid-column: 2; font-size: var(--cui-type-10); color: var(--cui-quiet); }
.cui-askchecktools { display: flex; align-items: center; gap: calc(6 * var(--px)); flex-wrap: wrap; position: sticky; top: 0;
  background: var(--cui-paper); z-index: 1; }
.cui-askcheckcount { font-size: var(--cui-type-11); margin-left: auto; }
.cui-askrank { margin: 0; padding-left: calc(18 * var(--px)); display: flex; flex-direction: column; gap: calc(2 * var(--px)); }
.cui-askrankrow { display: flex; align-items: center; gap: calc(4 * var(--px)); }
.cui-askranktext { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: var(--cui-type-11); }
/* #625: a search card: the box, its matches under it as the person types */
.cui-asksearchbox { display: flex; flex-direction: column; gap: calc(2 * var(--px)); min-width: 0; }
.cui-asksearch { display: flex; flex-direction: column; border: var(--px) solid var(--cui-ink); max-height: calc(160 * var(--px)); overflow-y: auto; }
.cui-asksearch[hidden] { display: none; }
.cui-asksearchrow { display: flex; align-items: baseline; gap: calc(6 * var(--px)); text-align: left; padding: calc(3 * var(--px)) calc(6 * var(--px));
  background: none; border: 0; font: inherit; color: inherit; cursor: pointer; min-width: 0; }
.cui-asksearchrow.cui-on, .cui-asksearchrow:hover { background: var(--cui-hilite); color: var(--cui-hilite-ink); }
.cui-asksearchlabel { overflow-wrap: anywhere; }
.cui-asksearchsub { font-size: var(--cui-type-10); opacity: 0.75; overflow-wrap: anywhere; }
.cui-askfilebox { display: flex; flex-direction: column; gap: calc(3 * var(--px)); align-items: flex-start; }
.cui-askfile { display: flex; align-items: center; gap: calc(4 * var(--px)); font-size: var(--cui-type-11); overflow-wrap: anywhere; }
.cui-askfile .cui-icon { width: var(--cui-icon); height: var(--cui-icon); margin: var(--cui-icon-sm-inset); flex: none; }
.cui-askerr { font-size: var(--cui-type-10); color: #b00000; }
.cui-askerr[hidden] { display: none; }
.cui-askbtns { justify-content: flex-end; }

/* a word processor's ruler (CUI.ruler): the scale with the margins shaded above, the indents and tab stops below. Its
   length is the page's, set by the script in the page's own pixels; the markers are Mac pixels, and bigger for a finger */
.cui-ruler { --rk: var(--px); position: relative; flex: none; background: var(--cui-paper); color: var(--cui-ink); user-select: none; -webkit-user-select: none;
  font-family: var(--geneva); font-size: var(--cui-type-9); line-height: 1; }
.cui-ruler-h { height: calc(30 * var(--rk)); border-bottom: var(--px) solid var(--cui-ink); }
.cui-ruler-v { width: calc(20 * var(--rk)); border-right: var(--px) solid var(--cui-ink); }
.cui-ruler.cui-disabled .cui-rmarks { opacity: 0.4; pointer-events: none; }
.cui-rscale, .cui-rtrack, .cui-rmarks { position: absolute; }
.cui-ruler-h .cui-rscale { left: 0; right: 0; top: 0; height: calc(13 * var(--rk)); border-bottom: var(--px) solid var(--cui-ink); overflow: hidden; }
.cui-ruler-h .cui-rtrack { left: 0; right: 0; top: calc(13 * var(--rk)); bottom: 0; cursor: copy; }
.cui-ruler-v .cui-rscale { top: 0; bottom: 0; left: 0; width: 100%; overflow: hidden; }
.cui-ruler-v .cui-rtrack { display: none; }
.cui-rtrack:focus-visible { outline: var(--cui-focus); outline-offset: calc(-2 * var(--px)); }
.cui-rmarks { inset: 0; pointer-events: none; }
.cui-rmargin { position: absolute; background: #bbb; }
.cui-ruler-h .cui-rmargin { top: 0; bottom: 0; left: 0; }
.cui-ruler-v .cui-rmargin { left: 0; right: 0; top: 0; }
.cui-rtick { position: absolute; background: var(--cui-ink); }
.cui-ruler-h .cui-rtick { bottom: 0; width: 1px; height: calc(2 * var(--rk)); }
.cui-ruler-h .cui-rquarter { height: calc(3 * var(--rk)); }
.cui-ruler-h .cui-rhalf { height: calc(5 * var(--rk)); }
.cui-ruler-h .cui-rmajor { height: calc(8 * var(--rk)); }
.cui-ruler-v .cui-rtick { right: 0; height: 1px; width: calc(2 * var(--rk)); }
.cui-ruler-v .cui-rquarter { width: calc(3 * var(--rk)); }
.cui-ruler-v .cui-rhalf { width: calc(5 * var(--rk)); }
.cui-ruler-v .cui-rmajor { width: calc(8 * var(--rk)); }
.cui-rnum { position: absolute; }
.cui-ruler-h .cui-rnum { top: calc(2 * var(--rk)); margin-left: calc(2 * var(--px)); }
.cui-ruler-v .cui-rnum { left: calc(2 * var(--rk)); margin-top: calc(1 * var(--px)); }

/* the markers: each is a point on the ruler; its shape is drawn round that point and its press area is bigger still */
.cui-rmark { position: absolute; pointer-events: auto; touch-action: none; cursor: ew-resize; outline: none; }
.cui-ruler-v .cui-rmark { cursor: ns-resize; }
.cui-rmark::after { content: ''; position: absolute; inset: calc(-2 * var(--rk)); }
.cui-rmark:focus-visible { box-shadow: 0 0 0 var(--px) var(--cui-paper), 0 0 0 calc(2 * var(--px)) var(--cui-ink); }
.cui-rmark.cui-on { filter: invert(1); background-color: var(--cui-paper); }
.cui-rmark.cui-roff { opacity: 0.35; }
/* margins: a black tab on the scale, across or down */
.cui-r-mleft, .cui-r-mright { top: 0; width: calc(5 * var(--rk)); height: calc(12 * var(--rk)); margin-left: calc(-2.5 * var(--rk));
  background: var(--cui-ink); border: var(--px) solid var(--cui-paper); box-sizing: border-box; }
.cui-r-mtop, .cui-r-mbot { left: 0; height: calc(5 * var(--rk)); width: calc(19 * var(--rk)); margin-top: calc(-2.5 * var(--rk));
  background: var(--cui-ink); border: var(--px) solid var(--cui-paper); box-sizing: border-box; }
/* indents: the first line's triangle points down, the hanging and right indents' point up, the left indent is the box */
.cui-r-first, .cui-r-hang, .cui-r-right { width: 0; height: 0; margin-left: calc(-4 * var(--rk));
  border-left: calc(4 * var(--rk)) solid transparent; border-right: calc(4 * var(--rk)) solid transparent; }
.cui-r-first { top: calc(13 * var(--rk)); border-top: calc(5 * var(--rk)) solid var(--cui-ink); }
.cui-r-hang { top: calc(18 * var(--rk)); border-bottom: calc(5 * var(--rk)) solid var(--cui-ink); }
.cui-r-right { top: calc(18 * var(--rk)); border-bottom: calc(5 * var(--rk)) solid var(--cui-ink); }
.cui-r-left { top: calc(24 * var(--rk)); width: calc(8 * var(--rk)); height: calc(5 * var(--rk)); margin-left: calc(-4 * var(--rk));
  background: var(--cui-paper); border: var(--px) solid var(--cui-ink); box-sizing: border-box; }
.cui-r-first.cui-on, .cui-r-hang.cui-on, .cui-r-right.cui-on { filter: none; background: none; opacity: 0.6; }
/* a tab stop: its glyph, the stem on the stop */
.cui-r-tab { top: calc(15 * var(--rk)); width: calc(14 * var(--rk)); height: calc(14 * var(--rk)); margin-left: calc(-7 * var(--rk)); }
.cui-r-tab .cui-icon { width: var(--cui-icon); height: var(--cui-icon); margin: calc((14 * var(--rk) - 16 * var(--px)) / 2);
  display: block; image-rendering: pixelated; pointer-events: none; }   /* #536: the glyph at its own 16, centred on the stop */
.cui-r-tab.cui-rk-l { margin-left: calc(-4.8 * var(--rk)); }
.cui-r-tab.cui-rk-r { margin-left: calc(-9.2 * var(--rk)); }
/* a finger: the markers and the press areas round them half as big again */
@media (pointer: coarse) {
  .cui-ruler { --rk: calc(1.6 * var(--px)); }
  .cui-rmark::after { inset: calc(-5 * var(--rk)); }
}
/* the gallery's Icons: every shared glyph at 1x and 2x with its name */
.cuig-icons { display: flex; flex-wrap: wrap; gap: calc(6 * var(--px)); }
.cuig-iconcell { width: calc(64 * var(--px)); align-items: center; }
.cuig-iconpair { display: flex; align-items: flex-end; gap: calc(6 * var(--px)); }
.cuig-iconpair .cui-icon { width: var(--cui-icon); height: var(--cui-icon); image-rendering: pixelated; }
.cuig-iconpair .cui-icon.cuig-icon2 { width: var(--cui-icon-lg); height: var(--cui-icon-lg); }
.cuig-iconcell > figcaption { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* a stack bar whose small parts keep a minimum width (CUI.stackBar opts.min), its legend across, a greyed part */
.cui-stack.cui-stackmin .cui-seg { flex-shrink: 1; }
.cui-legend.cui-legend-across { flex-direction: row; flex-wrap: wrap; gap: calc(2 * var(--px)) calc(10 * var(--px)); font-size: var(--cui-type-9); }
.cui-legend-across .cui-lrow { gap: calc(3 * var(--px)); }
.cui-legend-across .cui-lval { margin-left: calc(3 * var(--px)); }
.cui-seg.cui-dimseg, .cui-lrow .cui-key.cui-dimseg { opacity: .45; }

/* pies (T125): a limit's use; the four states in the System 7 palette */
.cui-pie { display: inline-block; vertical-align: middle; flex: none; }
/* #1813: a timer's clock (timerClock): the pie of the time left, then the time and its label */
.cui-timer { display: flex; align-items: center; gap: calc(8 * var(--px)); min-width: 0; }
.cui-timertext { display: flex; flex-direction: column; min-width: 0; }
.cui-timerleft { font-size: var(--cui-type-20); font-weight: bold; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cui-timerlabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cui-pie .cui-pie-bg { fill: var(--cui-paper); }
.cui-pie .cui-pie-rim { fill: var(--cui-ink); }   /* #536: the rim is its own pixels, not a stroke */
.cui-pie-red .cui-pie-fill { fill: var(--cui-red); }
.cui-pie-orange .cui-pie-fill { fill: var(--cui-orange); }
.cui-pie-green .cui-pie-fill { fill: var(--cui-green); }
.cui-pie-blue .cui-pie-fill { fill: var(--cui-blue); }
.cui-pie .cui-pie-open { fill-opacity: 0.35; }
.cui-pie .cui-pie-none { fill-opacity: 0.15; }
/* #573: the inner disc of a two-ring pie has its own state */
.cui-pie .cui-pie-fill.cui-pie-in-red { fill: #dd0806; }
.cui-pie .cui-pie-fill.cui-pie-in-orange { fill: #ff6403; }
.cui-pie .cui-pie-fill.cui-pie-in-green { fill: #1fb714; }
.cui-pie .cui-pie-fill.cui-pie-in-blue { fill: #0000d4; }

/* ---- locked secrets in a message box (req-vault-lock, secrets.js) -------------------------------------------
 * A mirror of the box's text lies over it, its letters clear: only the dashed orange line under what Oscar found
 * and the tint of a locked value's chip show. It never takes a click; the box keeps its caret and keys. */
.cui-sanchor { position: relative; }
.cui-smirror { position: absolute; overflow: hidden; pointer-events: none; z-index: 1; box-sizing: border-box;
  margin: 0; border: 0; background: transparent; }
.cui-sinner { box-sizing: border-box; margin: 0; border: 0; color: transparent; white-space: pre-wrap;
  overflow-wrap: break-word; word-wrap: break-word; }
/* #435: the mark is clearly orange and not a squiggle, so it never reads as a spelling (red dots) or grammar mark:
   a thick band of long dashes with a dot between them, over a light orange wash. Drawn as a background, so the
   pattern is the same in every browser and on every wrapped line. In 1-bit (a monochrome screen, forced colours
   or print) the same dash-dot band is drawn in black: a pattern the spell check's even dots never make. */
.cui-smatch { color: transparent; border-bottom: 0;
  background-color: var(--cui-secure-mark-wash);
  background-image: repeating-linear-gradient(90deg, var(--cui-secure-mark) 0 calc(6 * var(--px)),
    transparent calc(6 * var(--px)) calc(8 * var(--px)), var(--cui-secure-mark) calc(8 * var(--px)) calc(10 * var(--px)),
    transparent calc(10 * var(--px)) calc(12 * var(--px)));
  background-repeat: repeat-x; background-position: 0 100%; background-size: 100% calc(2 * var(--px));
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (monochrome), print {
  .cui-smatch { background-color: transparent;
    background-image: repeating-linear-gradient(90deg, #000 0 calc(6 * var(--px)), transparent calc(6 * var(--px)) calc(8 * var(--px)),
      #000 calc(8 * var(--px)) calc(10 * var(--px)), transparent calc(10 * var(--px)) calc(12 * var(--px))); }
  .cui-thinkbulb::before { background: #fff; animation: none; }   /* #1929: no colour on a one-colour screen, written out */
}
@media (forced-colors: active) {
  .cui-smatch { forced-color-adjust: none; background-color: transparent;
    background-image: repeating-linear-gradient(90deg, CanvasText 0 calc(6 * var(--px)), transparent calc(6 * var(--px)) calc(8 * var(--px)),
      CanvasText calc(8 * var(--px)) calc(10 * var(--px)), transparent calc(10 * var(--px)) calc(12 * var(--px))); }
}
.cui-slocked { color: transparent; background: var(--cui-secure-wash); box-shadow: 0 0 0 calc(1 * var(--px)) var(--cui-secure);
  border-radius: calc(2 * var(--px)); }
.cui-sguarded.cui-sbusy { cursor: url(../glyphs/spin0.svg) 8 8, progress; }
/* Lock, under a match the caret is in (keys and the TV remote) */
.cui-slockbtn { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: calc(3 * var(--px));
  height: calc(18 * var(--px)); padding: 0 calc(6 * var(--px)); border: calc(1 * var(--px)) solid var(--cui-ink); background: var(--cui-paper);
  font-family: var(--geneva); font-size: var(--cui-type-10); font-weight: bold; color: var(--cui-ink); cursor: default;
  box-shadow: calc(1 * var(--px)) calc(1 * var(--px)) 0 var(--cui-ink); }
.cui-slockbtn[hidden] { display: none; }
.cui-slockbtn > .cui-icon { width: var(--cui-icon); height: var(--cui-icon); margin: var(--cui-icon-sm-inset); image-rendering: pixelated; }
.cui-slockbtn:focus { outline: calc(2 * var(--px)) solid var(--cui-secure); }
/* a locked value in a message on the page: the padlock and its label, Unlock and Edit on a tap */
.cui-schip { display: inline-flex; align-items: center; gap: calc(3 * var(--px)); vertical-align: baseline;
  margin: 0 calc(1 * var(--px)); padding: 0 calc(4 * var(--px)); border: calc(1 * var(--px)) solid var(--cui-secure);
  border-radius: calc(3 * var(--px)); background: var(--cui-secure-tint); color: var(--cui-ink); font: inherit; line-height: 1.3; cursor: default;
  -webkit-appearance: none; appearance: none; }
.cui-schip > .cui-icon { width: var(--cui-icon); height: var(--cui-icon); margin: var(--cui-icon-sm-inset); image-rendering: pixelated; }
.cui-schip:focus { outline: calc(2 * var(--px)) solid var(--cui-ink); }
.cui-sedit { display: flex; flex-direction: column; gap: calc(6 * var(--px)); min-width: calc(260 * var(--px)); }
.cui-sreveal { font-family: var(--cui-font-code); }
/* @mentions (#548): the names under a comment box, and each @Name in a comment */
.cui-mentionwrap { position: relative; display: flex; flex-direction: column; }
.cui-mentions { position: absolute; left: 0; top: 100%; z-index: 9000; display: flex; flex-direction: column;
  min-width: calc(140 * var(--px)); max-width: 100%; max-height: calc(160 * var(--px)); overflow-y: auto; padding: var(--px) 0;
  background: #fff; border: var(--px) solid #000; box-shadow: var(--cui-shadow); font-family: var(--chicago); font-size: var(--cui-type-12); }
.cui-mentions[hidden] { display: none; }
.cui-mentionitem { display: block; width: 100%; box-sizing: border-box; min-height: calc(18 * var(--px)); margin: 0;
  padding: var(--px) calc(8 * var(--px)); border: 0; background: #fff; color: #000; font: inherit; text-align: left;
  white-space: nowrap; -webkit-appearance: none; appearance: none; cursor: default; }
.cui-mentionitem.cui-on, .cui-mentionitem:hover { background: #000; color: #fff; }
.cui-mention { font-weight: bold; white-space: nowrap; }       /* as #531's: @Oscar in the moving rainbow */
.cui-mention.cui-mentionperson { color: var(--cui-blue); }
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .cui-mention.cui-rainbow-text { color: #000; -webkit-text-fill-color: #000; background-image: none; animation: none; } }
/* Lock and Hide (#628): the padlock and the eye on an item, their marks in a row, Settings > Oscar's list */
.cui-guard { display: inline-flex; gap: calc(2 * var(--px)); align-items: center; vertical-align: middle; }
.cui-guardmarks { display: inline-flex; gap: calc(2 * var(--px)); align-items: center; margin-left: calc(4 * var(--px)); vertical-align: middle; }
.cui-guardmark { width: calc(10 * var(--px)); height: calc(10 * var(--px)); opacity: .75; image-rendering: pixelated; }
.cui-guardlist { display: flex; flex-direction: column; gap: calc(4 * var(--px)); margin-bottom: calc(8 * var(--px)); }
.cui-guardrow { align-items: center; gap: calc(6 * var(--px)); }
.cui-guardname { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: clip; white-space: nowrap; }
.cui-guardwhat { flex: 0 1 auto; white-space: nowrap; }
.cui-guardlog { font-size: .92em; }

/* #414: a change as a diff (CUI.diff): + green added, ~ orange updated (#2028, Lloyd, 10 Nov 2026; blue before), - red
   removed, grey unchanged, a wavy broken line for each stretch not shown. Lloyd's look, 31 Oct 2026;
   SPEC-design-system.md 4.2. The colours are the kit's. */
.cui-diff {
  --cui-diff-add-tint: var(--cui-ok-tint); --cui-diff-upd-tint: var(--cui-warn-tint); --cui-diff-del-tint: var(--cui-error-tint);
  border: var(--cui-line) solid var(--cui-ink); background: var(--cui-paper); color: var(--cui-ink); min-width: 0; max-width: 100%;
  font-size: var(--cui-text-sm); }
.cui-diffs { display: flex; flex-direction: column; gap: var(--cui-space-6); min-width: 0; }
.cui-diff-head { display: flex; align-items: center; gap: var(--cui-space-6); padding: var(--cui-space-2) var(--cui-space-6);
  border-bottom: var(--cui-line) solid var(--cui-ink); background: var(--cui-faint); font-family: var(--cui-font-ui); min-width: 0; }
.cui-diff-path { font-weight: bold; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.cui-diff-word, .cui-diff-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cui-diff-count.cui-diff-add { color: var(--cui-diff-add); }
.cui-diff-count.cui-diff-upd { color: var(--cui-diff-upd); }
.cui-diff-count.cui-diff-del { color: var(--cui-diff-del); }
.cui-diff-body { font-family: var(--cui-font-code); font-size: var(--cui-text-sm); overflow-x: auto; }
.cui-diff-row { display: flex; width: 100%; min-width: max-content; white-space: pre; line-height: 1.4; margin: 0; padding: 0;
  border: 0; border-left: calc(3 * var(--px)) solid transparent; background: var(--cui-paper); color: var(--cui-diff-same);
  font: inherit; text-align: left; }
button.cui-diff-row { cursor: pointer; }
button.cui-diff-row:focus-visible { outline: var(--cui-focus); }
.cui-diff-row.cui-diff-add { background: var(--cui-diff-add-tint); border-left-color: var(--cui-diff-add); color: var(--cui-ink); }
.cui-diff-row.cui-diff-upd { background: var(--cui-diff-upd-tint); border-left-color: var(--cui-diff-upd); color: var(--cui-ink); }
.cui-diff-row.cui-diff-del { background: var(--cui-diff-del-tint); border-left-color: var(--cui-diff-del); color: var(--cui-ink); }
.cui-diff-no { flex: none; width: calc(30 * var(--px)); text-align: right; padding-right: var(--cui-space-4); color: var(--cui-diff-same);
  user-select: none; }
.cui-diff-mark { flex: none; width: calc(12 * var(--px)); text-align: center; font-weight: bold; user-select: none; }
.cui-diff-add > .cui-diff-mark { color: var(--cui-diff-add); }
.cui-diff-upd > .cui-diff-mark { color: var(--cui-diff-upd); }
.cui-diff-del > .cui-diff-mark { color: var(--cui-diff-del); }
.cui-diff-text { flex: none; padding-right: var(--cui-space-6); }
/* the changed part of an updated line: bold on a deeper orange (never underlined: only links are, test_uikit) */
.cui-diff-chg { font-weight: bold; background: var(--cui-diff-chg); }
/* #2028: the head closes and opens its file; a long line scrolls sideways inside the block, or wraps (Admin) */
.cui-diff-head { cursor: pointer; }
.cui-diff-disc { cursor: pointer; }
.cui-diff-disc:focus-visible { outline: var(--cui-focus); }
.cui-diff-body[hidden] { display: none; }
.cui-diff[data-shut="1"] > .cui-diff-head { border-bottom: 0; }
.cui-diff-wrap .cui-diff-row { min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.cui-diff-wrap .cui-diff-text { flex: 1 1 0; min-width: 0; }
/* #2028: in a one-colour look (the black and white look, a one-colour screen, forced colours) no kind is told by
   colour: each keeps its mark and has an edge and a weight of its own: added a solid edge and bold, updated a dotted
   edge with its changed part boxed, removed a dashed edge and struck through, unchanged plain */
html.cdan-bw .cui-diff-row, body.cdan-bw .cui-diff-row { background: var(--cui-paper); color: var(--cui-ink); }
html.cdan-bw .cui-diff-row.cui-diff-add, body.cdan-bw .cui-diff-row.cui-diff-add { border-left: calc(3 * var(--px)) solid var(--cui-ink); font-weight: bold; }
html.cdan-bw .cui-diff-row.cui-diff-upd, body.cdan-bw .cui-diff-row.cui-diff-upd { border-left: calc(3 * var(--px)) dotted var(--cui-ink); }
html.cdan-bw .cui-diff-row.cui-diff-del, body.cdan-bw .cui-diff-row.cui-diff-del { border-left: calc(3 * var(--px)) dashed var(--cui-ink); }
html.cdan-bw .cui-diff-del > .cui-diff-text, body.cdan-bw .cui-diff-del > .cui-diff-text { text-decoration: line-through; }
html.cdan-bw .cui-diff-chg, body.cdan-bw .cui-diff-chg { background: none; outline: var(--cui-line) solid var(--cui-ink); }
html.cdan-bw .cui-diff-count, html.cdan-bw .cui-diff-mark, html.cdan-bw .cui-diff-no,
body.cdan-bw .cui-diff-count, body.cdan-bw .cui-diff-mark, body.cdan-bw .cui-diff-no { color: var(--cui-ink); }
@media (monochrome), (forced-colors: active) {
  .cui-diff .cui-diff-row { background: var(--cui-paper); color: var(--cui-ink); }
  .cui-diff .cui-diff-row.cui-diff-add { border-left: calc(3 * var(--px)) solid var(--cui-ink); font-weight: bold; }
  .cui-diff .cui-diff-row.cui-diff-upd { border-left: calc(3 * var(--px)) dotted var(--cui-ink); }
  .cui-diff .cui-diff-row.cui-diff-del { border-left: calc(3 * var(--px)) dashed var(--cui-ink); }
  .cui-diff-del > .cui-diff-text { text-decoration: line-through; }
  .cui-diff-chg { background: none; outline: var(--cui-line) solid var(--cui-ink); }
  .cui-diff-count, .cui-diff-mark, .cui-diff-no { color: var(--cui-ink); }
}
/* forced colours draw a clear border as a line: an unchanged row's edge takes the page's own colour, so it stays plain */
@media (forced-colors: active) {
  .cui-diff .cui-diff-row.cui-diff-same { border-left-color: Canvas; }
}
.cui-diff-gap { display: block; width: 100%; height: calc(12 * var(--px)); margin: 0; padding: calc(2 * var(--px)) 0; border: 0;
  background: var(--cui-paper); color: var(--cui-diff-same); }
button.cui-diff-gap { cursor: pointer; }
button.cui-diff-gap:focus-visible { outline: var(--cui-focus); }
.cui-diff-wave { display: block; width: 100%; height: calc(8 * var(--px)); }
.cui-diff-wavepath { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-dasharray: 7 3; }
.cui-diff-note { padding: var(--cui-space-2) var(--cui-space-6); font-family: var(--cui-font-ui); color: var(--cui-quiet); }
.cui-diff-foot { padding: var(--cui-space-2) var(--cui-space-6); border-top: var(--cui-line) solid var(--cui-faint); }

/* #976: the card step (ui.js cardChoice): a remembered card picked, or New Card with Remember Card */
.cui-cardform { display: flex; flex-direction: column; gap: calc(6 * var(--px)); }
.cui-cardform [hidden] { display: none !important; }

/* #990: the one code input (ui.js codeInput): a box a digit, in fours, big enough for a finger and a remote */
.cui-code { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: calc(6 * var(--px)) calc(16 * var(--px)); }
.cui-codegroup { display: flex; flex: none; gap: calc(4 * var(--px)); }
.cui-field.cui-digit {
  width: calc(26 * var(--px)); height: calc(34 * var(--px)); min-width: 0; text-align: center; font-family: var(--chicago);
  font-size: var(--cui-type-22); border: calc(2 * var(--px)) solid var(--cui-ink); background: var(--cui-paper); color: var(--cui-ink); padding: 0;
}
/* #2667 Oscar Platinum: each digit its own rounded box, the field's paper and edge, sized in design units, so a code's
   two groups of four sit side by side on a card (the lock screen's Register) */
html.cui-os .cui-field.cui-digit { width: calc(30 * var(--cui-os-u)); height: calc(40 * var(--cui-os-u)); padding: 0; box-sizing: border-box;
  border: var(--cui-os-u) solid var(--cui-os-edge); border-radius: var(--cui-os-radius-item); background: var(--cui-os-card); color: var(--cui-os-ink);
  font: 500 calc(20 * var(--cui-os-u)) var(--plexsans); }
html.cui-os .cui-code { gap: calc(8 * var(--cui-os-u)) calc(14 * var(--cui-os-u)); }
html.cui-os .cui-codegroup { gap: calc(4 * var(--cui-os-u)); }
html.dev-phone .cui-field.cui-digit { width: calc(22 * var(--px)); height: calc(30 * var(--px)); font-size: var(--cui-type-18); }
html.dev-phone .cui-code { column-gap: calc(8 * var(--px)); }

/* ---- the shared code view (ui/codeview.js, #1146 #1147): MoN, JSONata, JSONLogic and JSON coloured and checked ---- */
.cui-codeview { display: flex; flex-direction: column; gap: var(--cui-space-4); min-width: 0; }
.cui-code-bar { display: flex; gap: var(--cui-space-6); align-items: center; }
.cui-code-box { position: relative; min-height: calc(60 * var(--px)); }
.cui-code-box > .cui-code-hl, .cui-code-box > .cui-code-input { margin: 0; box-sizing: border-box; width: 100%;
  font-family: var(--cui-font-code); font-size: var(--cui-type-10); line-height: 1.3; tab-size: 2; -moz-tab-size: 2;
  padding: calc(3 * var(--px)) calc(4 * var(--px)); white-space: pre; overflow-wrap: normal; letter-spacing: 0; }
.cui-code-box > .cui-code-hl { position: absolute; top: 0; left: 0; right: 0; bottom: 0; overflow: hidden; pointer-events: none;
  border: var(--px) solid transparent; color: var(--cui-ink); background: var(--cui-paper, #fff); }
.cui-code-box > .cui-code-input { position: relative; display: block; min-height: calc(60 * var(--px)); color: transparent;
  caret-color: var(--cui-ink); background: transparent; }
.cui-code-box > .cui-code-input::selection { color: transparent; background: rgba(0, 0, 0, 0.25); }
.cui-code-status { min-height: calc(12 * var(--px)); font-family: var(--cui-font-text); font-size: var(--cui-type-10); color: var(--cui-dim); }
.cui-code-status.cui-code-bad { color: var(--cui-ink); font-weight: bold; }
.cui-hl-com { color: #777; font-style: italic; }
.cui-hl-str, .cui-hl-tpl { color: #0a6a0a; }
.cui-hl-num { color: #1a4ac0; }
.cui-hl-kw { color: #8a2a8a; font-weight: bold; }
.cui-hl-key { color: #7a3a00; }
.cui-hl-tag, .cui-hl-op { color: #b00060; font-weight: bold; }
.cui-hl-anc { color: #006a8a; font-weight: bold; }
.cui-hl-var, .cui-hl-fn { color: #1a4ac0; font-weight: bold; }
.cui-hl-err { text-decoration: underline wavy #c00; }

/* #1273: the show-password eye at the right end of every password field (ui.js passwordEye) */
.cui-pwwrap { position: relative; display: inline-block; max-width: 100%; vertical-align: middle; }
.cui-pwwrap.cui-pwblock { display: block; }
.cui-pwwrap.cui-pwblock > input { width: 100%; box-sizing: border-box; }
.cui-pwwrap > input { padding-right: calc(22 * var(--px, 1px)); }
.cui-pweye { position: absolute; right: calc(3 * var(--px, 1px)); top: 50%; transform: translateY(-50%); width: calc(16 * var(--px, 1px));
  height: calc(16 * var(--px, 1px)); padding: 0; margin: 0; border: 0; background: none; cursor: pointer; opacity: .55; }
.cui-pweye img { width: 100%; height: 100%; display: block; pointer-events: none; }
.cui-pweye.cui-pwshown, .cui-pweye:hover, .cui-pweye:focus-visible { opacity: 1; }
.cui-pweye:focus-visible { outline: var(--px, 1px) solid var(--cui-ink); }

/* ---- generated by tools/oscar_assets.py: Oscar's logo (#1486), do not edit by hand ---- */
.cui-oscarlogo { display: inline-block; position: relative; width: 32px; height: 32px; line-height: 0; vertical-align: middle; transform: translateZ(0); }
.cui-oscarlogo > img { display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
@supports ((mask-image: none) or (-webkit-mask-image: none)) and (--a: 0) {
.cui-oscarlogo::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none;
  background-image: var(--cui-rainbow), var(--cui-rainbow); background-size: 200% 100%; background-repeat: repeat-x;
  animation: cui-oscarlogo-move 4s steps(24) infinite; }
.cui-oscarlogo::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Cpath d='M3 1h2v1h-2zM27 1h2v1h-2zM2 2h4v1h-4zM26 2h3v1h-3zM2 3h2v1h-2zM6 3h1v1h-1zM25 3h5v1h-5zM2 4h4v1h-4zM7 4h1v1h-1zM24 4h6v1h-6zM2 5h4v1h-4zM8 5h1v1h-1zM23 5h7v1h-7zM2 6h4v1h-4zM8 6h1v1h-1zM23 6h7v1h-7zM2 7h5v1h-5zM8 7h1v1h-1zM22 7h8v1h-8zM2 8h4v1h-4zM8 8h1v1h-1zM22 8h7v1h-7zM3 9h3v1h-3zM8 9h1v1h-1zM10 9h8v1h-8zM21 9h8v1h-8zM3 10h3v1h-3zM8 10h11v1h-11zM20 10h9v1h-9zM3 11h2v1h-2zM7 11h12v1h-12zM21 11h8v1h-8zM2 12h3v1h-3zM6 12h2v1h-2zM9 12h11v1h-11zM22 12h7v1h-7zM3 13h1v1h-1zM6 13h1v1h-1zM9 13h9v1h-9zM20 13h1v1h-1zM23 13h6v1h-6zM3 14h1v1h-1zM5 14h17v1h-17zM25 14h3v1h-3zM5 15h2v1h-2zM8 15h16v1h-16zM26 15h1v1h-1zM5 16h1v1h-1zM7 16h1v1h-1zM9 16h8v1h-8zM20 16h5v1h-5zM4 17h3v1h-3zM10 17h2v1h-2zM14 17h2v1h-2zM17 17h1v1h-1zM21 17h5v1h-5zM4 18h3v1h-3zM15 18h3v1h-3zM21 18h5v1h-5zM5 19h1v1h-1zM14 19h1v1h-1zM16 19h2v1h-2zM21 19h5v1h-5zM4 20h2v1h-2zM8 20h1v1h-1zM15 20h1v1h-1zM20 20h6v1h-6zM4 21h5v1h-5zM15 21h2v1h-2zM18 21h5v1h-5zM24 21h2v1h-2zM3 22h2v1h-2zM6 22h4v1h-4zM14 22h12v1h-12zM3 23h2v1h-2zM6 23h5v1h-5zM13 23h8v1h-8zM22 23h4v1h-4zM3 24h1v1h-1zM5 24h6v1h-6zM12 24h9v1h-9zM23 24h3v1h-3zM4 25h1v1h-1zM6 25h4v1h-4zM13 25h8v1h-8zM22 25h4v1h-4zM4 26h1v1h-1zM6 26h3v1h-3zM14 26h6v1h-6zM21 26h5v1h-5zM5 27h1v1h-1zM20 27h5v1h-5zM6 28h18v1h-18zM8 29h2v1h-2zM11 29h11v1h-11zM13 30h6v1h-6z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Cpath d='M3 1h2v1h-2zM27 1h2v1h-2zM2 2h4v1h-4zM26 2h3v1h-3zM2 3h2v1h-2zM6 3h1v1h-1zM25 3h5v1h-5zM2 4h4v1h-4zM7 4h1v1h-1zM24 4h6v1h-6zM2 5h4v1h-4zM8 5h1v1h-1zM23 5h7v1h-7zM2 6h4v1h-4zM8 6h1v1h-1zM23 6h7v1h-7zM2 7h5v1h-5zM8 7h1v1h-1zM22 7h8v1h-8zM2 8h4v1h-4zM8 8h1v1h-1zM22 8h7v1h-7zM3 9h3v1h-3zM8 9h1v1h-1zM10 9h8v1h-8zM21 9h8v1h-8zM3 10h3v1h-3zM8 10h11v1h-11zM20 10h9v1h-9zM3 11h2v1h-2zM7 11h12v1h-12zM21 11h8v1h-8zM2 12h3v1h-3zM6 12h2v1h-2zM9 12h11v1h-11zM22 12h7v1h-7zM3 13h1v1h-1zM6 13h1v1h-1zM9 13h9v1h-9zM20 13h1v1h-1zM23 13h6v1h-6zM3 14h1v1h-1zM5 14h17v1h-17zM25 14h3v1h-3zM5 15h2v1h-2zM8 15h16v1h-16zM26 15h1v1h-1zM5 16h1v1h-1zM7 16h1v1h-1zM9 16h8v1h-8zM20 16h5v1h-5zM4 17h3v1h-3zM10 17h2v1h-2zM14 17h2v1h-2zM17 17h1v1h-1zM21 17h5v1h-5zM4 18h3v1h-3zM15 18h3v1h-3zM21 18h5v1h-5zM5 19h1v1h-1zM14 19h1v1h-1zM16 19h2v1h-2zM21 19h5v1h-5zM4 20h2v1h-2zM8 20h1v1h-1zM15 20h1v1h-1zM20 20h6v1h-6zM4 21h5v1h-5zM15 21h2v1h-2zM18 21h5v1h-5zM24 21h2v1h-2zM3 22h2v1h-2zM6 22h4v1h-4zM14 22h12v1h-12zM3 23h2v1h-2zM6 23h5v1h-5zM13 23h8v1h-8zM22 23h4v1h-4zM3 24h1v1h-1zM5 24h6v1h-6zM12 24h9v1h-9zM23 24h3v1h-3zM4 25h1v1h-1zM6 25h4v1h-4zM13 25h8v1h-8zM22 25h4v1h-4zM4 26h1v1h-1zM6 26h3v1h-3zM14 26h6v1h-6zM21 26h5v1h-5zM5 27h1v1h-1zM20 27h5v1h-5zM6 28h18v1h-18zM8 29h2v1h-2zM11 29h11v1h-11zM13 30h6v1h-6z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.cui-oscarlogo-s::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Cpath d='M1 1h2v1h-2zM1 2h2v1h-2zM13 2h2v1h-2zM1 3h2v1h-2zM12 3h2v1h-2zM1 4h2v1h-2zM11 4h3v1h-3zM2 5h1v1h-1zM4 5h6v1h-6zM11 5h3v1h-3zM1 6h1v1h-1zM3 6h6v1h-6zM13 6h1v1h-1zM2 7h10v1h-10zM2 8h1v1h-1zM5 8h4v1h-4zM10 8h3v1h-3zM2 9h1v1h-1zM8 9h1v1h-1zM11 9h2v1h-2zM1 10h3v1h-3zM7 10h2v1h-2zM10 10h3v1h-3zM2 11h3v1h-3zM7 11h6v1h-6zM2 12h3v1h-3zM7 12h3v1h-3zM11 12h2v1h-2zM3 13h1v1h-1zM8 13h1v1h-1zM10 13h3v1h-3zM2 14h1v1h-1zM4 14h7v1h-7zM12 14h1v1h-1z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Cpath d='M1 1h2v1h-2zM1 2h2v1h-2zM13 2h2v1h-2zM1 3h2v1h-2zM12 3h2v1h-2zM1 4h2v1h-2zM11 4h3v1h-3zM2 5h1v1h-1zM4 5h6v1h-6zM11 5h3v1h-3zM1 6h1v1h-1zM3 6h6v1h-6zM13 6h1v1h-1zM2 7h10v1h-10zM2 8h1v1h-1zM5 8h4v1h-4zM10 8h3v1h-3zM2 9h1v1h-1zM8 9h1v1h-1zM11 9h2v1h-2zM1 10h3v1h-3zM7 10h2v1h-2zM10 10h3v1h-3zM2 11h3v1h-3zM7 11h6v1h-6zM2 12h3v1h-3zM7 12h3v1h-3zM11 12h2v1h-2zM3 13h1v1h-1zM8 13h1v1h-1zM10 13h3v1h-3zM2 14h1v1h-1zM4 14h7v1h-7zM12 14h1v1h-1z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
}
@keyframes cui-oscarlogo-move { from { background-position: 0 0; } to { background-position: 200% 0; } }
@media (prefers-reduced-motion: reduce) { .cui-oscarlogo::after { animation: none; } }
@media (monochrome), (forced-colors: active), print { .cui-oscarlogo::after { display: none; } }
.cui-oscarlogo.cui-oscarlogo-plain::after { display: none; }
/* ---- end of Oscar's logo ---- */

/* ---- #1657: marks beside a name (marks()), each glyph whole at its own 16: no see-through, never pulled in (a glyph
 * with no clear edge loses its ears and chin to an inset), in a box as tall as itself so nothing round it cuts it ---- */
.cui-marks { display: inline-flex; align-items: center; gap: calc(2 * var(--px)); margin-left: calc(4 * var(--px)); flex: 0 0 auto;
  height: var(--cui-icon); line-height: 0; vertical-align: middle; }
.cui-marks > .cui-mark-g { width: var(--cui-icon); height: var(--cui-icon); flex: 0 0 auto; display: block; image-rendering: pixelated; }
/* ---- #2074: a temporary file, wherever it is shown (temp()): yellow with vertical stripes, its words in ink so
 * they read on it in either scheme; what it is and when it goes are said by .cui-tempsay, read out and never drawn ---- */
.cui-temp, .cui-plain.cui-temp, .cui-tile.cui-temp { background-color: var(--cui-temp); color: #000; --dim: #444;
  background-image: repeating-linear-gradient(90deg, var(--cui-temp-line) 0 var(--px), transparent var(--px) calc(4 * var(--px))); }
/* the words on it stay ink in either scheme, a chosen tile's included; the kit's tokens are never redefined here (the
 * ES5 build keeps their first value) */
.cui-temp *, .cui-tile.cui-on.cui-temp, .cui-tile.cui-temp:active:not(:disabled) .cui-tilesub { color: #000; }
.cui-tempsay { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
/* in a list the marks sit just after the words, which alone are cut short when the column is narrow */
.cui-lvline { display: flex; align-items: center; min-width: 0; flex: 0 1 auto; }
.cui-lvline > .cui-marks { margin-left: calc(4 * var(--px)); }

/* ---- #1657: a special folder's own icon (specialIcon()): at a glyph's 16, or at 32 with big, on its own grid ---- */
.cui-special { flex: 0 0 auto; image-rendering: pixelated; }
.cui-oscarlogo.cui-special { width: var(--cui-icon); height: var(--cui-icon); }
.cui-special.cui-special-lg, .cui-oscarlogo.cui-special.cui-special-lg { width: var(--cui-icon-lg); height: var(--cui-icon-lg); }
.cui-oscarlogo.cui-special > img { image-rendering: pixelated; }

/* ---- #2011: a folder at 32 (folderPicture()): ChiCherry's tabbed folder, and the picture of what it holds laid on its
   face at its own 16, 8 Mac pixels in and 11 down, where Movies' and Music's own pictures sit ---- */
.cui-fpic { position: relative; display: inline-block; flex: 0 0 auto; width: var(--cui-icon-lg); height: var(--cui-icon-lg);
  line-height: 0; vertical-align: middle; }
.cui-fpic > img.cui-fpic-folder { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.cui-fpic > .cui-fpic-mark { position: absolute; left: 25%; top: 34.375%; width: 50%; height: 50%; image-rendering: pixelated; }
.cui-fpic > img.cui-fpic-os { display: none; }                  /* #2667: Oscar Platinum's drawn folder (html.cui-os) */
.cui-oscarlogo > img.cui-oscarlogo-os { display: none; object-fit: contain; image-rendering: auto; }   /* #2667: the graphic logo */

/* ---- the quick search bar (CUI.commandBar, #1753): a framed bar near the top centre of the screen, under the menu
   bar, with its results grouped under it; on a phone the screen's width less the gutters ---- */
.cui-cbar {
  position: fixed; z-index: 8500; top: calc(var(--menubar-h, calc(20 * var(--px))) + 6 * var(--px)); left: 50%;
  width: min(calc(100vw - 32px), calc(440 * var(--px))); transform: translateX(-50%); box-sizing: border-box;
  display: flex; flex-direction: column; max-height: calc(100vh - var(--menubar-h, calc(20 * var(--px))) - 16 * var(--px));
  background: var(--cui-paper); color: var(--cui-ink); border: var(--px) solid var(--cui-ink); box-shadow: var(--cui-shadow);
  font-family: var(--cui-font-ui); font-size: var(--cui-text-md);
}
.cui-cbar[hidden] { display: none; }
.cui-cbartop { flex: none; display: flex; align-items: center; gap: calc(4 * var(--px)); padding: calc(4 * var(--px)); }
.cui-cbartop > .cui-icon { flex: none; width: var(--cui-icon); height: var(--cui-icon); image-rendering: pixelated; }
.cui-cbarfield { flex: 1 1 auto; min-width: 0; width: auto; }
.cui-cbarout { flex: 1 1 auto; min-height: 0; overflow-y: auto; border-top: var(--px) solid var(--cui-ink); padding: 0 0 calc(2 * var(--px)); }
.cui-cbarout[hidden] { display: none; }
.cui-cbarhead { padding: calc(3 * var(--px)) calc(6 * var(--px)) calc(1 * var(--px)); font-size: var(--cui-text-sm); color: var(--cui-quiet);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cui-cbarlist .cui-row.cui-cbarrow { border-bottom: 0; min-height: var(--cui-row-h); }
@media (max-width: 600px) {
  .cui-cbar { left: 16px; right: 16px; width: auto; transform: none; }
}

/* ---- #1808: widgets (widgetkit.js), one look for every kind in Oscar's replies, on the desktop and in a Magic page or
 * canvas: a frame with its bar of controls, then its parts in order. Black on white with the kit's lines; a pick is a
 * thick edge and a Best tag, never a colour alone, so the 1-bit look says the same. ---- */
.cui-wgt { box-sizing: border-box; width: 100%; max-width: calc(360 * var(--px)); border: var(--px) solid var(--cui-ink);
  background: var(--cui-paper); color: var(--cui-ink); font-family: var(--cui-font-text); font-size: var(--cui-text-md); min-width: 0; }
.cui-wgt.cui-wgt-wide { max-width: none; }
.cui-wgt-bar { display: flex; align-items: center; gap: calc(4 * var(--px)); padding: calc(2 * var(--px)) calc(4 * var(--px));
  border-bottom: var(--px) solid var(--cui-ink); font-family: var(--cui-font-ui); font-size: var(--cui-text-sm); min-width: 0; }
.cui-wgt-bar > .cui-icon { flex: 0 0 auto; }
.cui-wgt-fold { display: inline-flex; align-items: center; justify-content: center; width: var(--cui-icon); height: var(--cui-icon); flex: 0 0 auto; }
.cui-wgt-kind { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cui-wgt-gap { flex: 1 1 auto; }
.cui-wgt-updated { font-size: var(--cui-text-xs); border: var(--px) solid var(--cui-ink); border-radius: var(--cui-radius-tag); padding: 0 calc(3 * var(--px)); white-space: nowrap; }
.cui-wgt-shut > .cui-wgt-body { display: none; }
.cui-wgt-shut > .cui-wgt-bar { border-bottom: 0; }
.cui-wgt-body { display: flex; flex-direction: column; gap: calc(8 * var(--px)); padding: calc(8 * var(--px)); min-width: 0; }
.cui-wgt-part { min-width: 0; }
.cui-wgt-label { font-family: var(--cui-font-ui); font-size: var(--cui-text-sm); margin-bottom: calc(3 * var(--px)); }
.cui-wgt-dim { color: var(--cui-quiet); font-size: var(--cui-text-sm); }
.cui-wgt-media { display: flex; justify-content: center; border: var(--px) solid var(--cui-faint); background: var(--cui-paper); }
.cui-wgt-hero { display: block; max-width: 100%; max-height: calc(180 * var(--px)); object-fit: contain; }
.cui-wgt-pic, .cui-wgt-thumb, .cui-wgt-gpic { display: block; max-width: 100%; object-fit: contain; background: var(--cui-paper); }
.cui-wgt-thumb { width: calc(48 * var(--px)); height: calc(48 * var(--px)); flex: 0 0 auto; border: var(--px) solid var(--cui-faint); }
.cui-wgt-nopic { visibility: hidden; }
.cui-wgt-title { font-family: var(--cui-font-ui); font-size: var(--cui-text-lg); line-height: 1.25; overflow-wrap: anywhere; }
.cui-wgt-sub { color: var(--cui-quiet); font-size: var(--cui-text-sm); margin-top: calc(2 * var(--px)); }
.cui-wgt-stars { display: inline-flex; align-items: center; gap: var(--px); margin-top: calc(3 * var(--px)); }
.cui-wgt-stars > .cui-wgt-dim { margin-left: calc(4 * var(--px)); }
.cui-wgt-priceline { display: flex; align-items: baseline; flex-wrap: wrap; gap: calc(6 * var(--px)); }
.cui-wgt-price { font-family: var(--cui-font-ui); font-size: var(--cui-text-md); white-space: nowrap; }
.cui-wgt-pricebox .cui-wgt-price { font-size: var(--cui-text-xl); }
.cui-wgt-was { color: var(--cui-quiet); font-size: var(--cui-text-sm); }
.cui-wgt-summary { line-height: 1.4; overflow-wrap: anywhere; white-space: pre-line; }
.cui-wgt-facts { display: grid; grid-template-columns: max-content 1fr; gap: calc(2 * var(--px)) calc(8 * var(--px)); margin: 0; font-size: var(--cui-text-sm); }
.cui-wgt-facts dt { color: var(--cui-quiet); }
.cui-wgt-facts dd { margin: 0; overflow-wrap: anywhere; }
.cui-wgt-rows { display: flex; flex-direction: column; border: var(--px) solid var(--cui-ink); }
.cui-wgt-seller, .cui-wgt-lrow { display: flex; align-items: center; gap: calc(6 * var(--px)); padding: calc(4 * var(--px)) calc(6 * var(--px));
  border: 0; border-top: var(--px) dotted var(--cui-dim); background: var(--cui-paper); color: var(--cui-ink); font: inherit; text-align: left;
  width: 100%; box-sizing: border-box; }
.cui-wgt-seller:first-child, .cui-wgt-lrow:first-child { border-top: 0; }
button.cui-wgt-seller, button.cui-wgt-lrow { cursor: pointer; }
button.cui-wgt-seller:active, button.cui-wgt-lrow:active { background: var(--cui-ink); color: var(--cui-paper); }
.cui-wgt-sname { font-family: var(--cui-font-ui); font-size: var(--cui-text-sm); }
.cui-wgt-isbest { box-shadow: inset calc(3 * var(--px)) 0 0 var(--cui-ink); }
.cui-wgt-best { font-family: var(--cui-font-ui); }
.cui-wgt-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: calc(8 * var(--px)); }
.cui-wgt-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: calc(2 * var(--px)); font-size: var(--cui-text-sm); }
.cui-wgt-lines > li { display: flex; align-items: flex-start; gap: calc(3 * var(--px)); }
.cui-wgt-lines > li > .cui-icon { flex: 0 0 auto; }
.cui-wgt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(120 * var(--px)), 1fr)); gap: calc(6 * var(--px)); }
.cui-wgt-card { display: flex; flex-direction: column; gap: calc(3 * var(--px)); padding: calc(6 * var(--px)); border: var(--px) solid var(--cui-ink); min-width: 0; }
.cui-wgt-cardtitle { font-family: var(--cui-font-ui); font-size: var(--cui-text-sm); overflow-wrap: anywhere; }
.cui-wgt-cardlink { align-self: flex-start; }
.cui-wgt-links { display: flex; flex-wrap: wrap; gap: var(--cui-gap-row); }
/* #2096: the things compared share the widget's width evenly, each no narrower than its picture and a few words; the
   row names take their own width beside them, or sit above their values where that column would not fit (the kit sets
   cui-wgt-cstack by measuring), so a second thing never needs scrolling to while the room can hold it */
.cui-wgt-ctable { display: grid; grid-template-columns: max-content repeat(var(--cui-wgt-n, 2), minmax(calc(64 * var(--px)), 1fr)); }
.cui-wgt-ctable thead, .cui-wgt-ctable tbody, .cui-wgt-ctable tr { display: contents; }
.cui-wgt-ctable th, .cui-wgt-ctable td { min-width: 0; overflow-wrap: anywhere; }
.cui-wgt-cstack .cui-wgt-ctable { grid-template-columns: repeat(var(--cui-wgt-n, 2), minmax(calc(64 * var(--px)), 1fr)); }
.cui-wgt-cstack .cui-wgt-ctable thead td:first-child, .cui-wgt-cstack .cui-wgt-ctable tbody th:empty { display: none; }
.cui-wgt-cstack .cui-wgt-ctable tbody th { grid-column: 1 / -1; padding-bottom: 0; }
.cui-wgt-cstack .cui-wgt-ctable tbody td { border-top: 0; }
.cui-wgt-cstack .cui-wgt-ctable tbody th:empty + td, .cui-wgt-cstack .cui-wgt-ctable tbody th:empty ~ td { border-top: var(--px) dotted var(--cui-dim); }
.cui-wgt-ctable th, .cui-wgt-ctable td { vertical-align: top; text-align: left; }
.cui-wgt-ctable thead th { font-family: var(--cui-font-ui); font-weight: normal; padding: calc(4 * var(--px)); white-space: normal; }
/* #2096: where even stacked the things would not fit their room, a rating is one star and its number; the full rating
   stays in its label */
.cui-wgt-cnarrow .cui-wgt-ctable .cui-wgt-stars > .cui-icon:not(:first-child) { display: none; }
.cui-wgt-cnarrow .cui-wgt-ctable .cui-wgt-stars > .cui-wgt-dim { margin-left: calc(2 * var(--px)); }
.cui-wgt-ctable tbody th { font-family: var(--cui-font-ui); font-weight: normal; color: var(--cui-quiet); white-space: nowrap;
  padding: calc(3 * var(--px)) calc(4 * var(--px)); border-top: var(--px) dotted var(--cui-dim); }
/* the row names stay in view while the things scroll past them on a narrow screen */
.cui-wgt-ctable tbody th, .cui-wgt-ctable thead td:first-child { position: sticky; left: 0; z-index: 1; background: var(--cui-paper); }
.cui-wgt-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(96 * var(--px)), 1fr)); gap: calc(6 * var(--px)); }
.cui-wgt-gfig { margin: 0; display: flex; flex-direction: column; gap: calc(2 * var(--px)); }
.cui-wgt-gpic { width: 100%; height: calc(96 * var(--px)); border: var(--px) solid var(--cui-faint); }
.cui-wgt-gfig figcaption { font-size: var(--cui-text-sm); }
.cui-wgt-tap { cursor: pointer; }
.cui-wgt-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(90 * var(--px)), 1fr)); gap: calc(6 * var(--px)); }
.cui-wgt-stat { border: var(--px) solid var(--cui-ink); padding: calc(6 * var(--px)); }
.cui-wgt-statval { display: flex; align-items: center; gap: calc(3 * var(--px)); font-family: var(--cui-font-ui); font-size: var(--cui-text-xl); }
.cui-wgt-statlbl { font-size: var(--cui-text-sm); }
.cui-wgt-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cui-wgt-ev { display: flex; gap: calc(8 * var(--px)); padding-bottom: calc(6 * var(--px)); }
.cui-wgt-evdot { flex: 0 0 auto; width: calc(9 * var(--px)); height: calc(9 * var(--px)); margin-top: calc(3 * var(--px)); box-sizing: border-box;
  border: var(--px) solid var(--cui-ink); background: var(--cui-paper); }
.cui-wgt-ev-done .cui-wgt-evdot, .cui-wgt-ev-now .cui-wgt-evdot { background: var(--cui-ink); }
.cui-wgt-ev-now .cui-wgt-evtitle { font-weight: bold; }
.cui-wgt-evtitle { font-family: var(--cui-font-ui); font-size: var(--cui-text-sm); }
.cui-wgt-evtext { font-size: var(--cui-text-sm); }
.cui-wgt-plot { display: block; width: 100%; height: auto; border: var(--px) solid var(--cui-ink); background: var(--cui-paper); }
.cui-wgt-pin { fill: var(--cui-ink); }
.cui-wgt-pinnum { fill: var(--cui-paper); font-family: var(--cui-font-ui); font-size: 11px; }
.cui-wgt-chart { display: flex; flex-direction: column; gap: calc(3 * var(--px)); }
.cui-wgt-crow { display: grid; grid-template-columns: minmax(0, calc(80 * var(--px))) 1fr max-content; align-items: center; gap: calc(6 * var(--px));
  font-size: var(--cui-text-sm); }
.cui-wgt-barlbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cui-wgt-bars { display: flex; flex-direction: column; gap: var(--px); }
.cui-wgt-barfill { display: block; height: calc(8 * var(--px)); background: var(--cui-ink); }
.cui-wgt-barfill.cui-wgt-ser1 { background: var(--cui-dim); }
.cui-wgt-barfill.cui-wgt-ser2 { background: var(--cui-track); border: var(--px) solid var(--cui-ink); box-sizing: border-box; }
.cui-wgt-line { display: block; width: 100%; height: auto; border: var(--px) solid var(--cui-ink); }
.cui-wgt-line polyline { fill: none; stroke: var(--cui-ink); stroke-width: 2; }
.cui-wgt-line polyline.cui-wgt-ser1 { stroke-dasharray: 6 3; }
.cui-wgt-line polyline.cui-wgt-ser2 { stroke-dasharray: 2 2; }
.cui-wgt-axis { display: flex; justify-content: space-between; font-size: var(--cui-text-sm); color: var(--cui-quiet); }
.cui-wgt-rowlist { display: flex; flex-direction: column; border: var(--px) solid var(--cui-ink); }
.cui-wgt-lmain { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.cui-wgt-ltitle { font-family: var(--cui-font-ui); font-size: var(--cui-text-sm); overflow-wrap: anywhere; }
/* #1968/#1973: a kind's theme, the Oscar standard's category hue (widgetkinds.json themes): its glyph on a badge of the
 * hue under the bar's ink, a rule of the hue under the bar, and the hue's tint behind the parts that carry it. The ink,
 * the frame and every word stay, so it reads the same with the colour gone. The kit's glyphs are 16 Mac pixels drawn
 * whole: shown big they are 3 of the glyph's pixels to 1, never smoothed. */
.cui-wgt-badge { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; box-sizing: border-box;
  width: calc(18 * var(--px)); height: calc(18 * var(--px)); }
.cui-wgt-themed .cui-wgt-badge { background: var(--cui-wgt-accent); border: var(--px) solid var(--cui-ink); }
.cui-wgt-themed > .cui-wgt-bar { box-shadow: inset 0 calc(-3 * var(--px)) 0 var(--cui-wgt-accent); padding-bottom: calc(5 * var(--px)); }
.cui-wgt-theme-gold { --cui-wgt-accent: var(--cui-cat-gold); --cui-wgt-tint: var(--cui-cat-gold-tint); }
.cui-wgt-theme-green { --cui-wgt-accent: var(--cui-cat-green); --cui-wgt-tint: var(--cui-cat-green-tint); }
.cui-wgt-theme-lime { --cui-wgt-accent: var(--cui-cat-lime); --cui-wgt-tint: var(--cui-cat-lime-tint); }
.cui-wgt-theme-violet { --cui-wgt-accent: var(--cui-cat-violet); --cui-wgt-tint: var(--cui-cat-violet-tint); }
.cui-wgt-theme-teal { --cui-wgt-accent: var(--cui-cat-teal); --cui-wgt-tint: var(--cui-cat-teal-tint); }
.cui-wgt-theme-blue { --cui-wgt-accent: var(--cui-cat-blue); --cui-wgt-tint: var(--cui-cat-blue-tint); }
.cui-wgt-theme-sky { --cui-wgt-accent: var(--cui-cat-sky); --cui-wgt-tint: var(--cui-cat-sky-tint); }
.cui-wgt-theme-pink { --cui-wgt-accent: var(--cui-cat-pink); --cui-wgt-tint: var(--cui-cat-pink-tint); }
.cui-wgt-theme-orange { --cui-wgt-accent: var(--cui-cat-orange); --cui-wgt-tint: var(--cui-cat-orange-tint); }
.cui-wgt-theme-lilac { --cui-wgt-accent: var(--cui-cat-lilac); --cui-wgt-tint: var(--cui-cat-lilac-tint); }
.cui-wgt-bigglyph, .cui-wgt-skyglyph { display: block; flex: 0 0 auto; width: calc(48 * var(--px)); height: calc(48 * var(--px)); image-rendering: pixelated; }
.cui-wgt-nomedia { align-items: center; min-height: calc(96 * var(--px)); background: var(--cui-wgt-tint, var(--cui-faint)); }
/* the sky now */
.cui-wgt-sky { display: flex; align-items: center; gap: calc(12 * var(--px)); padding: calc(10 * var(--px)) calc(12 * var(--px));
  margin: calc(-8 * var(--px)) calc(-8 * var(--px)) 0; background: var(--cui-wgt-tint, var(--cui-paper)); border-bottom: var(--px) solid var(--cui-ink); }
.cui-wgt-skymain { display: flex; flex-direction: column; gap: calc(2 * var(--px)); min-width: 0; }
.cui-wgt-skynow { display: flex; align-items: center; gap: calc(8 * var(--px)); flex-wrap: wrap; }
.cui-wgt-temp { font-family: var(--cui-font-ui); font-size: var(--cui-type-32); line-height: 1; }
.cui-wgt-skywords { display: flex; flex-direction: column; font-family: var(--cui-font-ui); font-size: var(--cui-text-md); }
.cui-wgt-skymore { display: flex; flex-wrap: wrap; gap: calc(2 * var(--px)) calc(10 * var(--px)); font-size: var(--cui-text-sm); }
/* the next hours: as many to a row as fit, never a scroll bar */
.cui-wgt-hours { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(44 * var(--px)), 1fr)); gap: calc(4 * var(--px)); }
.cui-wgt-hour { display: flex; flex-direction: column; align-items: center; gap: calc(2 * var(--px)); padding: calc(4 * var(--px)) 0;
  border: var(--px) solid var(--cui-ink); font-size: var(--cui-text-sm); }
.cui-wgt-htemp { font-family: var(--cui-font-ui); }
/* the coming days: name, sky, rain, low, the span of the day on one scale for all of them, high */
.cui-wgt-days { display: grid; grid-template-columns: max-content max-content minmax(calc(26 * var(--px)), max-content) max-content minmax(calc(40 * var(--px)), 1fr) max-content;
  align-items: center; gap: calc(4 * var(--px)) calc(6 * var(--px)); font-size: var(--cui-text-sm); }
.cui-wgt-day { display: contents; }
.cui-wgt-dayname { font-family: var(--cui-font-ui); white-space: nowrap; }
.cui-wgt-dayrain { color: var(--cui-quiet); text-align: right; }
.cui-wgt-daylo { color: var(--cui-quiet); text-align: right; }
.cui-wgt-dayhi { font-family: var(--cui-font-ui); }
.cui-wgt-range { position: relative; display: block; height: calc(6 * var(--px)); background: var(--cui-faint); }
.cui-wgt-rangefill { position: absolute; top: 0; bottom: 0; box-sizing: border-box; background: var(--cui-wgt-accent, var(--cui-ink)); border: var(--px) solid var(--cui-ink); }
/* market prices and their moves */
.cui-wgt-quotes { display: flex; flex-direction: column; border: var(--px) solid var(--cui-ink); }
.cui-wgt-quote { display: flex; align-items: center; gap: calc(8 * var(--px)); padding: calc(4 * var(--px)) calc(6 * var(--px)); border-top: var(--px) dotted var(--cui-dim); }
.cui-wgt-quote:first-child { border-top: 0; }
.cui-wgt-qright { display: flex; flex-direction: column; align-items: flex-end; flex: 0 0 auto; text-align: right; }
.cui-wgt-move { display: inline-flex; align-items: center; gap: var(--px); justify-content: flex-end;
  font-family: var(--cui-font-ui); font-size: var(--cui-text-sm); white-space: nowrap; }
.cui-wgt-move.cui-wgt-up { color: var(--cui-up); }
.cui-wgt-move.cui-wgt-down { color: var(--cui-down); }
/* how far along */
.cui-wgt-progress { display: flex; align-items: center; gap: calc(8 * var(--px)); }
.cui-wgt-progbar { position: relative; flex: 1 1 auto; height: calc(10 * var(--px)); box-sizing: border-box; border: var(--px) solid var(--cui-ink); background: var(--cui-paper); }
.cui-wgt-progfill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--cui-wgt-accent, var(--cui-ink)); }
.cui-wgt-foot { font-size: var(--cui-text-xs); }
/* a canvas (a Magic page of the kind canvas, doc.js): its widgets in a grid the person arranges */
.cdan-canvas { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(260 * var(--px)), 1fr)); gap: calc(12 * var(--px)); align-items: start; }
.cdan-canvas > .cdan-widget { margin: 0; min-width: 0; }
.cdan-canvas > .cdan-widget.cdan-span2 { grid-column: span 2; }
.cdan-canvas .cui-wgt { max-width: none; }
.cdan-cvbar { display: flex; flex-wrap: wrap; gap: calc(4 * var(--px)); margin-top: calc(4 * var(--px)); }
@media (max-width: 600px) {
  .cui-wgt-proscons { grid-template-columns: 1fr; }
  .cdan-canvas > .cdan-widget.cdan-span2 { grid-column: auto; }
}
/* ---- #1814: Listen, a guide's steps and their pictures (listen(), steps(), stepShot()) -------------------------------
 * A step's picture keeps its own shape at any width; the area to use is boxed or ringed in the kit's red with a white
 * edge so it reads on any screen, and its few words sit beside it on the paper with the ink's frame. */
.cui-listen { display: inline-flex; align-items: center; gap: var(--cui-space-4); flex: none; }
.cui-steps { display: flex; flex-direction: column; gap: var(--cui-space-6); min-width: 0; }
.cui-stepshead { display: flex; align-items: center; gap: var(--cui-space-8); min-width: 0; }
.cui-stepstitle { font-family: var(--cui-font-ui); font-size: var(--cui-text-md); min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.cui-steplist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--cui-space-8); }
.cui-step { display: flex; align-items: flex-start; gap: var(--cui-space-8); padding: var(--cui-space-4);
  border: var(--cui-line) solid transparent; min-width: 0; }
.cui-step.cui-stepon { border-color: var(--cui-ink); background: var(--cui-paper); }
.cui-stepnum { flex: none; width: calc(18 * var(--px)); height: calc(18 * var(--px)); border-radius: 50%;
  border: var(--cui-line) solid var(--cui-ink); background: var(--cui-paper); color: var(--cui-ink);
  font-family: var(--cui-font-ui); font-size: var(--cui-text-sm); line-height: var(--cui-type-16); text-align: center; }
.cui-step.cui-stepon .cui-stepnum { background: var(--cui-ink); color: var(--cui-paper); }
.cui-stepbody { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: var(--cui-space-6); }
.cui-stepwords { font-size: var(--cui-text-md); }
.cui-shot { position: relative; margin: 0; max-width: 100%; border: var(--cui-line) solid var(--cui-ink); background: var(--cui-faint);
  line-height: 0; overflow: hidden; }
.cui-shotimg { display: block; width: 100%; height: auto; }
.cui-shotmark { position: absolute; box-sizing: border-box; pointer-events: none;
  border: calc(3 * var(--px)) solid var(--cui-red); box-shadow: 0 0 0 var(--cui-line) var(--cui-paper), inset 0 0 0 var(--cui-line) var(--cui-paper); }
.cui-shotbox { border-radius: var(--cui-radius-tag); }
.cui-shotring { border-radius: 50%; }
.cui-shotlabel { position: absolute; max-width: 60%; margin: var(--cui-space-4) 0; padding: var(--cui-space-2) var(--cui-space-6);
  background: var(--cui-paper); color: var(--cui-ink); border: var(--cui-line) solid var(--cui-red); line-height: normal;
  font-family: var(--cui-font-ui); font-size: var(--cui-text-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cui-shotgone .cui-shotmark, .cui-shotgone .cui-shotlabel { display: none; }
.cui-silisten { align-self: flex-start; }

/* #1895: the one drag and drop (CUI.sortable, dragSource, dropTarget, grip). The grip and a palette's tiles take a
   finger at once, so the page does not scroll under them; the ghost follows the pointer, a line shows the place. */
.cui-grip { display: inline-flex; align-items: center; justify-content: center; flex: none; cursor: grab; touch-action: none;
  width: calc(16 * var(--px)); min-height: calc(16 * var(--px)); padding: 0; }
.cui-grip .cui-icon { margin: 0; }
.cui-dndsrc { touch-action: none; cursor: grab; }
.cui-dndghost { position: fixed; z-index: 100000; pointer-events: none; margin: 0; opacity: 0.85; box-sizing: border-box;
  box-shadow: calc(2 * var(--px)) calc(2 * var(--px)) 0 var(--cui-ink); background-color: var(--cui-paper); }
.cui-dndlifted { opacity: 0.35; }
/* #1907: what follows the pointer for a row whose own copy would not (a table's row, a block on a zoomed canvas) */
.cui-dndlabel { display: inline-flex; align-items: center; gap: calc(4 * var(--px)); padding: calc(3 * var(--px)) calc(6 * var(--px));
  background: var(--cui-paper); color: var(--cui-ink); border: var(--cui-line) solid var(--cui-ink); white-space: nowrap; max-width: calc(220 * var(--px)); overflow: hidden; }
.cui-dndlabel .cui-icon { width: var(--cui-icon); height: var(--cui-icon); flex: none; }
.cui-dndready { outline: var(--cui-line) dashed var(--cui-ink); outline-offset: calc(1 * var(--px)); }
.cui-dndmark { flex: none; align-self: stretch; height: calc(2 * var(--px)); margin: calc(-1 * var(--px)) 0; background: var(--cui-ink); pointer-events: none; }
.cui-dndmark.cui-dndmarkx { width: calc(2 * var(--px)); height: auto; margin: 0 calc(-1 * var(--px)); }
.cui-dndover { outline: calc(2 * var(--px)) solid var(--cui-ink); outline-offset: calc(-2 * var(--px)); }
html.cui-dragging, html.cui-dragging * { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.cui-dndlive { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cuig-dndlist { display: flex; flex-direction: column; gap: calc(2 * var(--px)); width: calc(160 * var(--px)); }
.cuig-dnditem { display: flex; align-items: center; gap: calc(4 * var(--px)); padding: calc(2 * var(--px)); border: var(--cui-line) solid var(--cui-ink); background: var(--cui-paper); font-size: var(--cui-text-sm); }
/* ---- #1742: where something was pressed for the person (CUI.pressMark: Oscar pressing on the page), a ring in CSS
   pixels round the point, over everything for a moment; the 1-bit look draws it in ink ---- */
.cui-pressmark { position: fixed; z-index: 2147483647; pointer-events: none; width: 28px; height: 28px; margin: -14px 0 0 -14px;
  box-sizing: content-box; border: 3px solid var(--cui-orange); border-radius: 50%; }
html.cdan-bw .cui-pressmark, body.cdan-bw .cui-pressmark { border-color: var(--cui-ink); }
/* #1736: what a message or comment being written is about, over its box (CUI.aboutChip) */
.cui-aboutchip { flex: none; display: flex; align-items: center; gap: calc(4 * var(--px)); padding: calc(3 * var(--px)) calc(6 * var(--px));
  border-top: var(--px) solid var(--cui-ink); font-family: var(--geneva); font-size: var(--cui-type-10); }
.cui-aboutchip[hidden] { display: none; }
.cui-aboutchip > .cui-icon { flex: none; width: var(--cui-icon); height: var(--cui-icon); margin: var(--cui-icon-sm-inset); image-rendering: pixelated; }
.cui-abouttext { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* #1736: popover(o), the one card on what it points at (ui.js): its frame, its point on what it points at, what scrolls
   above its footer and buttons; the Magic look is the rainbow frame (#1346) */
.cui-popover { position: fixed; z-index: 100000; display: flex; flex-direction: column; gap: var(--cui-space-6);
  width: calc(300 * var(--px)); max-width: calc(100vw - 16px); box-sizing: border-box;
  padding: var(--cui-space-8) var(--cui-space-10, calc(10 * var(--px))); color: var(--cui-ink); background: var(--cui-paper);
  border: max(2px, calc(2 * var(--px))) solid var(--cui-ink); border-radius: calc(6 * var(--px));
  box-shadow: calc(2 * var(--px)) calc(2 * var(--px)) 0 rgba(0, 0, 0, .35); font-size: var(--cui-text-md); line-height: 1.35; }
.cui-popover:focus { outline: none; }
.cui-popover::after { content: ""; position: absolute; left: var(--cui-poppoint, 24px); bottom: calc(-7 * var(--px));
  width: calc(10 * var(--px)); height: calc(10 * var(--px)); background: var(--cui-paper);
  border-right: max(2px, calc(2 * var(--px))) solid var(--cui-ink); border-bottom: max(2px, calc(2 * var(--px))) solid var(--cui-ink);
  transform: rotate(45deg); }
.cui-popover.cui-popover-below::after { bottom: auto; top: calc(-7 * var(--px)); transform: rotate(225deg); }
.cui-popover.cui-popover-aside::after { display: none; }
.cui-popover-magic { border-color: transparent;
  background: linear-gradient(var(--cui-paper), var(--cui-paper)) padding-box, var(--cui-rainbow) border-box; }
.cui-popover-magic::after { border-right-color: var(--cui-rainbow-3); border-bottom-color: var(--cui-rainbow-2); }
.cui-popover-scroll { display: flex; flex-direction: column; gap: var(--cui-space-6); min-height: 0; overflow-y: auto;
  overscroll-behavior: contain; max-height: min(var(--cui-popmax, 70vh), 70vh); touch-action: pan-y; -webkit-overflow-scrolling: touch; }
.cui-popover-scroll > * { flex: none; }
.cui-popover-scroll:empty, .cui-popover-foot:empty, .cui-popover-btns:empty { display: none; }
.cui-popover-foot { flex: none; min-width: 0; }
.cui-popover-btns { flex: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--cui-space-6); }

/* pageChat (#2302 slice 6; #2105, #2306): a page with a chat set in its corner, as an embedded chat sits on a site. The
   corner chat is at the interface's own scale; Larger gives it most of the page, the page beside it still in view */
.cui-pagechat { position: relative; flex: 1 1 auto; width: 100%; height: 100%; min-height: 0; overflow: hidden; }
.cui-pagechatpage { position: absolute; inset: 0; display: flex; flex-direction: column; }
.cui-pagechatpage > * { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.cui-pagechatpage iframe { width: 100%; height: 100%; border: 0; }
.cui-pagechatbox { position: absolute; right: calc(16 * var(--px)); bottom: calc(16 * var(--px)); width: min(calc(440 * var(--px)), calc(100% - 32 * var(--px)));
  height: min(calc(640 * var(--px)), calc(100% - 32 * var(--px))); display: flex; flex-direction: column; background: var(--cui-paper);
  border: var(--px) solid var(--cui-ink); border-radius: var(--cui-radius); box-shadow: var(--cui-shadow); overflow: hidden; z-index: 2; }
.cui-pagechat .cui-pagechatbox.cui-pagechatbig { width: min(calc(720 * var(--px)), calc(100% - 32 * var(--px))); height: calc(100% - 32 * var(--px)); }
.cui-pagechathead { display: flex; align-items: center; gap: calc(8 * var(--px)); padding: calc(8 * var(--px)) calc(10 * var(--px)); border-bottom: var(--px) solid var(--cui-ink); }
.cui-pagechatname { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--chicago); font-size: var(--cui-type-14); }
.cui-pagechatbody { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: calc(6 * var(--px)); }

/* ---- the desktop's parts (#2667 slice 2: ui.js activity, pip, dockMark, dock, searchPill, minimiseAll, miniOscar,
   menuBar, deskGround) as System 7 draws them, one Mac pixel and ink; the Oscar Platinum section below redraws them */
.cui-menubar { display: flex; align-items: center; gap: calc(10 * var(--px)); height: calc(20 * var(--px));
  padding: 0 calc(8 * var(--px)); background: var(--cui-menu-paper); color: var(--cui-menu-ink);
  border-bottom: var(--px) solid var(--cui-ink); font-family: var(--chicago); font-size: var(--cui-type-12); white-space: nowrap; }
.cui-menubar-logo { flex: none; }
.cui-menubar-app { font-weight: bold; }
.cui-menubar-gap { flex: 1 1 auto; }
/* #2667: the floating tool bar (CUI.toolPill): in System 7 a framed row of its buttons */
.cui-toolpill { display: inline-flex; align-items: center; gap: calc(2 * var(--px)); padding: calc(2 * var(--px));
  border: var(--px) solid var(--cui-ink, #000); background: var(--cui-paper, #fff); }
.cui-activity { display: inline-flex; align-items: center; gap: calc(4 * var(--px)); padding: 0 calc(4 * var(--px));
  border: 0; background: none; font: inherit; color: inherit; cursor: default; white-space: nowrap; }
.cui-pip { position: absolute; right: calc(-3 * var(--px)); top: calc(-3 * var(--px)); z-index: 2; min-width: calc(9 * var(--px));
  height: calc(9 * var(--px)); padding: 0 var(--px); display: flex; align-items: center; justify-content: center;
  background: var(--cui-ink); color: var(--cui-paper); font-family: var(--chicago); font-size: var(--cui-type-9); line-height: 1; }
.cui-dock { display: inline-flex; align-items: flex-end; gap: calc(6 * var(--px)); padding: calc(4 * var(--px)) calc(6 * var(--px)) var(--px);
  background: var(--cui-paper); border: var(--px) solid var(--cui-ink); }
.cui-dockitem { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--px);
  padding: 0; border: 0; background: none; cursor: default; }
/* the pip stands over the tile's corner by its own overhang: the button reaches out under it by that much (and takes
   it back in margin), so the pip is part of the button it counts for and the tile stays where it was */
.cui-dockitem { padding: calc(3 * var(--px)) calc(3 * var(--px)) 0 0; margin: calc(-3 * var(--px)) calc(-3 * var(--px)) 0 0; }
.cui-dockitem > .cui-pip { top: 0; right: 0; }
.cui-docktile { display: flex; align-items: center; justify-content: center; width: calc(32 * var(--px)); height: calc(32 * var(--px)); }
.cui-docktile > img, .cui-docktile > .cui-appicon { max-width: 100%; max-height: 100%; }
.cui-dockmark { position: relative; display: flex; align-items: center; justify-content: center; height: calc(5 * var(--px)); }
.cui-dockstrip { display: flex; }
.cui-dockstrip > i { display: block; width: calc(4 * var(--px)); height: calc(3 * var(--px)); background: var(--cui-ink); }
.cui-dockstrip > i + i { margin-left: var(--px); }
.cui-dockstrip > i > b { display: block; width: var(--px); height: var(--px); margin: var(--px) auto 0; background: var(--cui-paper); }
.cui-paw { position: absolute; left: 50%; top: 0; width: calc(5 * var(--px)); height: calc(5 * var(--px)); transform: translateX(-50%);
  background: var(--cui-ink); -webkit-mask: url("paw.svg") center / contain no-repeat; mask: url("paw.svg") center / contain no-repeat; }
.cui-dockprev { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); display: none; gap: calc(4 * var(--px));
  padding: calc(4 * var(--px)); background: var(--cui-paper); border: var(--px) solid var(--cui-ink); }
.cui-dockslot { position: relative; display: flex; align-items: flex-end; }
.cui-chipdot { display: inline-block; width: calc(3 * var(--px)); height: calc(3 * var(--px)); margin-right: calc(2 * var(--px)); background: var(--cui-ink); }
/* app tiles (#2667): System 7 shows the icon; Oscar Platinum the drawn object on its own shape (html.cui-os below) */
.cui-apptile { display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; height: 100%; }
.cui-apptile > .cui-apptile-old { max-width: 100%; max-height: 100%; }
.cui-apptile-os { display: none; }
/* the desktop's dock and search pill are Oscar Platinum's only (app.js drawDock) */
#deskdock, #deskpill { display: none; }
.cui-dockslot:hover > .cui-dockprev, .cui-dockslot:focus-within > .cui-dockprev { display: flex; }
.cui-searchpill { display: inline-flex; align-items: center; justify-content: center; width: calc(66 * var(--px)); height: calc(16 * var(--px));
  padding: 0; border: var(--px) solid var(--cui-ink); background: var(--cui-paper); cursor: default; }
.cui-minioscar { display: inline-flex; align-items: flex-end; justify-content: center; width: calc(20 * var(--px)); height: calc(20 * var(--px));
  padding: 0; overflow: hidden; border: var(--px) solid var(--cui-ink); background: var(--cui-paper); cursor: default; }
/* his picture's top 88% (256 x 271 of 256 x 308): the same framing as the picture set 12% below the edge, drawn inside */
.cui-minioscar-pic { flex: none; width: 84%; height: 0; padding-bottom: 88.92%; background: center top / 100% auto no-repeat; }
.cui-desk { position: relative; background-color: var(--cui-desk-2);
  background-image: conic-gradient(var(--cui-desk) 25%, var(--cui-desk-2) 0 50%, var(--cui-desk) 0 75%, var(--cui-desk-2) 0);
  background-size: calc(2 * var(--px)) calc(2 * var(--px)); }
/* the Oscar Platinum pip's moving rainbow */
@keyframes cui-os-pipslide { to { background-position: 150% 0; } }
@keyframes cui-os-run { to { background-position: calc(17 * var(--cui-os-u)) 0; } }

/* slice 5 (#2667): the kit's sidebar, a window's places down its left (CUI.sidebar), and the kit's sheet (CUI.sheet), as
   System 7 draws them; Oscar Platinum's rules are below */
.cui-sidebar { display: flex; flex-direction: column; flex: none; box-sizing: border-box; min-height: 0; padding: calc(4 * var(--px));
  gap: calc(4 * var(--px)); border-right: var(--px) solid var(--cui-ink); background: var(--cui-paper); overflow-y: auto; }
.cui-sidelist { display: flex; flex-direction: column; gap: calc(6 * var(--px)); flex: 1 1 auto; min-height: 0; }
.cui-sidegroup { display: flex; flex-direction: column; gap: 0; }
.cui-sideend { margin-top: auto; }
.cui-sidelabel { padding: calc(2 * var(--px)) calc(6 * var(--px)); font-size: var(--cui-type-9); color: var(--cui-ink); opacity: .7; }
.cui-sideitem { display: flex; align-items: center; gap: calc(6 * var(--px)); min-height: var(--cui-row-h); margin: 0; padding: 0 calc(6 * var(--px));
  border: 0; background: none; color: var(--cui-ink); font: inherit; text-align: left; cursor: default; }
.cui-sideitem > .cui-icon { flex: none; width: var(--cui-icon); height: var(--cui-icon); }
.cui-sidename { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cui-sidecount { flex: none; font-family: var(--monaco); font-size: var(--cui-type-9); }
.cui-sidecount:empty { display: none; }
.cui-sideitem.cui-on { background: var(--cui-hilite); color: var(--cui-hilite-ink); }
.cui-sideitem.cui-on > .cui-icon { filter: var(--cui-glyph-on); }
.cui-sideitem:disabled { opacity: .5; }
.cui-sideitem:focus-visible { outline: var(--cui-focus); outline-offset: calc(-2 * var(--px)); }
.cui-sidefoot { flex: none; display: flex; flex-direction: column; gap: calc(4 * var(--px)); }
.cui-sheet { display: flex; flex-direction: column; box-sizing: border-box; min-height: 0; background: var(--cui-paper); }
.cui-sheet[hidden] { display: none; }
.cui-sheethead, .cui-sheetfoot { flex: none; display: flex; align-items: center; gap: calc(4 * var(--px)); padding: calc(4 * var(--px)); }
.cui-sheethead { border-bottom: var(--px) solid var(--cui-ink); }
.cui-sheetfoot { border-top: var(--px) solid var(--cui-ink); }
.cui-sheetbody { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: calc(4 * var(--px)); display: flex; flex-direction: column; gap: calc(4 * var(--px)); }

.cui-asks { display: flex; flex-direction: column; gap: calc(4 * var(--px)); padding: calc(4 * var(--px)); border: var(--px) solid var(--cui-ink); background: var(--cui-paper); }
.cui-asks[hidden] { display: none; }
.cui-askrow { display: flex; align-items: center; gap: calc(4 * var(--px)); min-width: 0; }
.cui-askrow > .cui-asktile { flex: none; width: calc(16 * var(--px)); height: calc(16 * var(--px)); }
.cui-askwords { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.cui-asktitle { font-weight: bold; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cui-askdetail { font-size: var(--cui-type-9); color: var(--cui-quiet); }

/* ---- slice 6, the phone's own parts (CUI.phoneBar, bubble, allowCard, composer and kin; ui.js), as the canvas's Mobile
 * page (M1) draws them. Laid out the same in every look; System 7 draws them plainly framed, Oscar Platinum as M1. */
.cui-pixel { display: inline-block; flex: none; width: var(--cui-pixel-size, calc(20 * var(--cui-os-ph))); height: var(--cui-pixel-size, calc(20 * var(--cui-os-ph)));
  background: currentColor; -webkit-mask: var(--cui-pixel) center / contain no-repeat; mask: var(--cui-pixel) center / contain no-repeat; }
.cui-phonebtn { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: var(--cui-os-phone-touch); height: var(--cui-os-phone-touch); padding: 0; border: 0; background: transparent; color: inherit; }
.cui-phonebtn > .cui-count { top: calc(6 * var(--cui-os-ph)); right: calc(6 * var(--cui-os-ph)); }
.cui-phonebar { display: flex; align-items: center; flex: none; gap: calc(6 * var(--cui-os-ph)); height: var(--cui-os-phone-touch);
  padding: 0 calc(10 * var(--cui-os-ph)); box-sizing: content-box; }
.cui-phonelogo { display: inline-flex; align-items: center; justify-content: center; flex: none; height: var(--cui-os-phone-touch);
  margin: 0 calc(6 * var(--cui-os-ph)); padding: 0; border: 0; background: transparent; }
.cui-phonelogo .cui-oscarlogo, .cui-phonelogo .cui-oscarlogo img { width: calc(24 * var(--cui-os-ph)); height: calc(29 * var(--cui-os-ph)); object-fit: contain; }
.cui-phonetitle { display: inline-flex; align-items: center; gap: calc(4 * var(--cui-os-ph)); min-width: 0; height: var(--cui-os-phone-touch);
  padding: 0; border: 0; background: transparent; color: inherit; font: inherit; white-space: nowrap; }
.cui-phonetitle > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.cui-phonegap { flex: 1 1 auto; }
.cui-rainbowstrip { flex: none; height: calc(4 * var(--cui-os-ph));
  background: linear-gradient(90deg, var(--cui-os-rb-1) 0 16.66%, var(--cui-os-rb-2) 0 33.33%, var(--cui-os-rb-3) 0 50%, var(--cui-os-rb-4) 0 66.66%, var(--cui-os-rb-5) 0 83.33%, var(--cui-os-rb-6) 0); }
.cui-phonehead { display: flex; flex-direction: column; flex: none; }

.cui-phoneact > .cui-spool { font-size: calc(20 * var(--cui-os-ph)); }
.cui-bubblerow { display: flex; align-items: flex-end; gap: calc(8 * var(--cui-os-ph)); }
.cui-bubblehead { flex: none; width: calc(26 * var(--cui-os-ph)); height: calc(31 * var(--cui-os-ph)); object-fit: contain; }
.cui-bubble { max-width: 78%; box-sizing: border-box; padding: calc(10 * var(--cui-os-ph)) calc(14 * var(--cui-os-ph)); line-height: 1.5; overflow-wrap: anywhere; }
.cui-bubble-me { align-self: flex-end; }
.cui-indent { margin-left: calc(34 * var(--cui-os-ph)); }
.cui-allowcard { display: flex; flex-direction: column; gap: calc(10 * var(--cui-os-ph)); padding: calc(12 * var(--cui-os-ph)) calc(14 * var(--cui-os-ph)); }
.cui-allowhead { display: flex; align-items: center; gap: calc(10 * var(--cui-os-ph)); }
.cui-allowhead > .cui-apptile { flex: none; width: calc(30 * var(--cui-os-ph)); height: calc(30 * var(--cui-os-ph)); }
.cui-allowwords, .cui-needswords { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.cui-allowans { display: flex; gap: calc(8 * var(--cui-os-ph)); }
.cui-allowans > .cui-btn { flex: 1 1 0; }
.cui-btn.cui-phoneans { min-height: var(--cui-os-phone-touch); }
.cui-choicepills { display: flex; flex-wrap: wrap; gap: calc(8 * var(--cui-os-ph)); }
.cui-helperline { display: flex; align-items: center; gap: calc(8 * var(--cui-os-ph)); font-size: calc(13 * var(--cui-os-ph)); }
.cui-helperline > .cui-spool { font-size: calc(16 * var(--cui-os-ph)); }
.cui-composer { display: flex; align-items: center; gap: calc(8 * var(--cui-os-ph));
  padding: calc(8 * var(--cui-os-ph)) calc(12 * var(--cui-os-ph)) calc(14 * var(--cui-os-ph) + env(safe-area-inset-bottom, 0px)); }
.cui-composerpill { position: relative; display: flex; align-items: center; flex: 1 1 auto; min-width: 0; height: var(--cui-os-phone-touch); border-radius: calc(var(--cui-os-phone-touch) / 2); box-sizing: border-box; }
.cui-composerfield { flex: 1 1 0; width: 0; min-width: 0; height: 100%; box-sizing: border-box; padding: 0 calc(16 * var(--cui-os-ph)); border: 0; outline: none;
  background: transparent; color: inherit; font: inherit; }
.cui-composerpill > .cui-composersend { margin-right: -1px; }
.cui-phonebtn.cui-round { border-radius: 50%; box-sizing: border-box; }
.cui-phonebtn.cui-tone-coral { border-radius: 50%; background: var(--cui-ink); color: var(--cui-paper); }   /* System 7: ink; Oscar Platinum's coral is its token, below */
.cui-needsrow { display: flex; align-items: center; gap: calc(12 * var(--cui-os-ph)); width: 100%; box-sizing: border-box; min-height: var(--cui-os-phone-touch);
  padding: calc(12 * var(--cui-os-ph)) calc(14 * var(--cui-os-ph)); background: transparent; color: inherit; font: inherit; text-align: left; }
.cui-needshead { flex: none; width: calc(30 * var(--cui-os-ph)); height: calc(36 * var(--cui-os-ph)); object-fit: contain; }
.cui-needsdetail, .cui-allowdetail { font-size: calc(13 * var(--cui-os-ph)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cui-clockcard { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(4 * var(--cui-os-ph)); padding: calc(12 * var(--cui-os-ph)); }
.cui-clocktime { font-size: calc(36 * var(--cui-os-ph)); line-height: 1.25; padding-top: calc(2 * var(--cui-os-ph)); }
.cui-clockday { font-size: calc(9 * var(--cui-os-ph)); letter-spacing: .14em; text-transform: uppercase; }
.cui-weathercard { display: flex; align-items: center; gap: calc(10 * var(--cui-os-ph)); padding: calc(12 * var(--cui-os-ph)); }
.cui-weathersun { flex: none; width: calc(38 * var(--cui-os-ph)); height: calc(38 * var(--cui-os-ph)); border-radius: 50%;
  background: repeating-linear-gradient(to bottom, var(--cui-os-rb-2) 0 calc(4 * var(--cui-os-ph)), transparent calc(4 * var(--cui-os-ph)) calc(7 * var(--cui-os-ph))); }
.cui-weatherwords { display: flex; flex-direction: column; min-width: 0; }
.cui-weathertemp { font-size: calc(24 * var(--cui-os-ph)); }
.cui-weatherplace { font-size: calc(11 * var(--cui-os-ph)); }
.cui-appgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(16 * var(--cui-os-ph)) calc(6 * var(--cui-os-ph)); padding: 0 calc(14 * var(--cui-os-ph)); }
.cui-appgriditem { display: flex; flex-direction: column; align-items: center; gap: calc(6 * var(--cui-os-ph)); min-width: 0; padding: 0; border: 0; background: transparent;
  color: inherit; font: inherit; font-size: calc(12 * var(--cui-os-ph)); }
.cui-appgriditem > .cui-apptile { width: calc(56 * var(--cui-os-ph)); height: calc(56 * var(--cui-os-ph)); }
.cui-appgridname { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cui-winstrip { display: flex; align-items: center; flex: none; gap: calc(6 * var(--cui-os-ph)); height: var(--cui-os-phone-touch);
  padding: 0 calc(6 * var(--cui-os-ph)) 0 calc(12 * var(--cui-os-ph)); }
.cui-winpills { display: flex; align-items: center; flex: 1 1 auto; gap: calc(6 * var(--cui-os-ph)); min-width: 0; overflow-x: auto; }   /* the one Mac scroll bar, like every scrolling place (req-mac-scrollbars-only) */
.cui-winpill { display: inline-flex; align-items: center; flex: none; gap: calc(6 * var(--cui-os-ph)); height: calc(32 * var(--cui-os-ph)); max-width: 60%;
  padding: 0 calc(10 * var(--cui-os-ph)) 0 calc(6 * var(--cui-os-ph)); border-radius: 9999px; background: transparent; color: inherit;
  font: inherit; font-size: calc(12 * var(--cui-os-ph)); white-space: nowrap; }
.cui-winpill > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.cui-winpill > .cui-apptile { flex: none; width: calc(22 * var(--cui-os-ph)); height: calc(22 * var(--cui-os-ph)); }
.cui-phonebtn:focus-visible, .cui-phonelogo:focus-visible, .cui-phonetitle:focus-visible, .cui-needsrow:focus-visible, .cui-appgriditem:focus-visible,
.cui-winpill:focus-visible { outline: var(--cui-focus); outline-offset: calc(-2 * var(--px)); }
/* System 7: the same parts plainly framed in its own ink */
html:not(.cui-os) .cui-phonebar { border-bottom: 1px solid var(--cui-rule, #888); }
html:not(.cui-os) .cui-bubble-o { border: 1px solid var(--cui-rule, #888); }
html:not(.cui-os) .cui-bubble-me { background: var(--cui-ink, #000); color: var(--cui-paper, #fff); }
html:not(.cui-os) .cui-allowcard { border: 1px solid var(--cui-rule, #888); }
html:not(.cui-os) .cui-composerpill { border: 1px solid var(--cui-rule, #888); }
html:not(.cui-os) .cui-phonebtn.cui-round { border: 1px solid var(--cui-rule, #888); }
html:not(.cui-os) .cui-needsrow { border: 1px solid var(--cui-rule, #888); }
html:not(.cui-os) .cui-clockcard { border: 1px solid var(--cui-rule, #888); }
html:not(.cui-os) .cui-weathercard { border: 1px solid var(--cui-rule, #888); }
html:not(.cui-os) .cui-winstrip { border-top: 1px solid var(--cui-rule, #888); }
html:not(.cui-os) .cui-winpill { border: 1px solid var(--cui-rule, #888); }

/* slice 6's three phones in the gallery: a 390 by 760 phone screen under its own status bar, as M1 draws them */
.cuig-phones { align-items: flex-start; }
.cuig-phone { position: relative; display: flex; flex-direction: column; overflow: hidden; box-sizing: border-box;
  width: calc(390 * var(--cui-os-ph)); max-width: calc(100vw - 32 * var(--cui-os-ph)); height: calc(760 * var(--cui-os-ph)); border: 1px solid var(--cui-rule, #888); }
.cuig-phonebody { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden; gap: calc(14 * var(--cui-os-ph)); padding: calc(14 * var(--cui-os-ph)) 0; }
.cuig-phonebody > .cui-needsrow { margin: 0 calc(14 * var(--cui-os-ph)); width: auto; }
.cuig-phonebody > .cui-appgrid { margin-top: calc(6 * var(--cui-os-ph)); }
.cuig-phonecards { display: flex; gap: calc(12 * var(--cui-os-ph)); padding: 0 calc(14 * var(--cui-os-ph)); }
.cuig-phonecards > * { flex: 1 1 0; min-width: 0; }
.cuig-phone-desk > .cui-winstrip { margin-bottom: calc(20 * var(--cui-os-ph)); }
.cuig-talk { gap: calc(10 * var(--cui-os-ph)); padding: calc(14 * var(--cui-os-ph)); }
.cuig-helpers { display: inline-flex; align-items: center; gap: calc(3 * var(--cui-os-ph)); }
.cuig-helperhead { width: calc(18 * var(--cui-os-ph)); height: calc(18 * var(--cui-os-ph)); flex: none; }
.cuig-helpersbtn { width: auto; padding: 0 calc(8 * var(--cui-os-ph)); font: 500 calc(13 * var(--cui-os-ph)) var(--plexsans, sans-serif); }
.cuig-askhead { width: calc(22 * var(--cui-os-ph)); height: calc(26 * var(--cui-os-ph)); object-fit: contain; }
.cuig-mailread { gap: calc(8 * var(--cui-os-ph)); padding: calc(16 * var(--cui-os-ph)) calc(18 * var(--cui-os-ph)); line-height: 1.5; }
.cuig-mailsubj { font-family: var(--chicago); font-weight: normal; font-size: calc(20 * var(--cui-os-ph)); }
.cuig-phonesheet { position: absolute; left: 0; right: 0; bottom: 0; height: calc(410 * var(--cui-os-ph)); }
.cuig-phonesheet > .cui-sheetbody { display: flex; flex-direction: column; gap: calc(10 * var(--cui-os-ph)); }
.cuig-phonesheet > .cui-sheetfoot { margin-top: auto; }
.cuig-phonesheet .cui-composer { padding: 0; flex: 1 1 auto; }
.cuig-full { max-width: 100%; }

/* ---- Oscar Platinum (#2667) ------------------------------------------------------------------------------------
 * The look the Oscar Platinum canvas draws (design/oscar-platinum-*.png), put on by a theme whose set has "os"
 * (themes.json Oscar Platinum: html.cui-os). Every rule here reads the --cui-os-* tokens at the top of this sheet, so
 * day and night are the theme's two sets and nothing else. The components keep their markup and their API: an app
 * written for the kit draws in this look with no change. SPEC-design-system.md section 12 lists each component, what
 * it takes, and where this look stands for it. Keep this section last in the sheet. */

/* the design pixel: one CSS px on a computer; 1.3 on a phone or tablet, so a 34 high button is a finger high, 44 */
html.cui-os.dev-phone, html.cui-os.dev-tablet { --cui-os-scale: 1.3px; }

/* type: Plex Sans for words, Chicago for titles and menus, as the canvas */
html.cui-os body { font-family: var(--cui-os-text-font); color: var(--cui-os-ink); }

/* ---- window chrome: the rainbow strip along the top, the title centred under it, square red, green and blue buttons
   with a dark edge and thin white glyphs; opaque, the top corners square and the foot rounded (canvas P15) */
html.cui-os:not(.dev-phone) { --cui-titlebar-h: var(--cui-os-tb-h); }
html.cui-os .win {
  background: var(--cui-os-win); color: var(--cui-os-ink); border: 0;
  border-radius: 0 0 var(--cui-os-radius-win) var(--cui-os-radius-win); box-shadow: var(--cui-os-shadow-win);
}
html.cui-os .win.sz-f { border-radius: 0; box-shadow: none; }
html.cui-os .titlebar, html.cui-os .win.front .titlebar {
  height: var(--cui-titlebar-h); box-sizing: border-box; padding-top: var(--cui-os-collar);
  border-bottom: var(--cui-os-u) solid var(--cui-os-line); background: none;
  font-family: var(--cui-os-ui-font); font-size: var(--cui-os-type); color: var(--cui-os-ink);
}
/* the strip: the six bands, full width; behind the front window it keeps its place, faded */
html.cui-os .titlebar::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--cui-os-collar);
  background: var(--cui-topband); pointer-events: none;
}
html.cui-os .win:not(.front) .titlebar::before { filter: saturate(.2) brightness(1.08); }
html.cui-os .wtitle {
  background: none; color: var(--cui-os-ink); padding: 0 calc(10 * var(--cui-os-u));
  line-height: calc(var(--cui-titlebar-h) - var(--cui-os-collar) - var(--cui-os-u));
  max-width: calc(100% - 4 * (var(--cui-os-tbb) + var(--cui-os-tbb-gap)) - 20 * var(--cui-os-u));
}
html.cui-os .win:not(.front) .wtitle { color: var(--cui-os-quiet); }
html.cui-os .titlebar.blink, html.cui-os .titlebar.blink .wtitle { background-color: var(--cui-os-tint-6); color: var(--cui-os-ink); }
html.cui-os .closebox, html.cui-os .minbox, html.cui-os .sizebox,
html.cui-os .closebox.pressed, html.cui-os .closebox:active, html.cui-os .minbox:active, html.cui-os .sizebox:active, html.cui-os .sizebox.pressed {
  top: calc(var(--cui-os-collar) + (var(--cui-titlebar-h) - var(--cui-os-collar) - var(--cui-os-tbb)) / 2);
  width: var(--cui-os-tbb); height: var(--cui-os-tbb); box-sizing: border-box; padding: 0; border-radius: 0;
  border: var(--cui-os-tbb-line) solid var(--cui-os-tbb-edge); box-shadow: none; background-image: none; filter: none; overflow: hidden;
}
html.cui-os .closebox, html.cui-os .closebox.pressed, html.cui-os .closebox:active { left: calc(10 * var(--cui-os-u)); background-color: var(--cui-os-close); }
html.cui-os .minbox, html.cui-os .minbox:active { left: calc(10 * var(--cui-os-u) + var(--cui-os-tbb) + var(--cui-os-tbb-gap)); background-color: var(--cui-os-min); }
html.cui-os .sizebox, html.cui-os .sizebox:active, html.cui-os .sizebox.pressed { right: calc(10 * var(--cui-os-u)); background-color: var(--cui-os-size); }
html.cui-os .closebox.pressed, html.cui-os .closebox:active, html.cui-os .minbox:active, html.cui-os .sizebox:active, html.cui-os .sizebox.pressed { filter: brightness(.8); }
/* the glyphs: drawn in --cui-os-tbb-glyph through a mask, so a theme recolours them; one for each size the window is */
html.cui-os .closebox::before, html.cui-os .minbox::before, html.cui-os .sizebox::before,
html.cui-os .win.sz-s .sizebox::before, html.cui-os .win.sz-m .sizebox::before, html.cui-os .win.sz-l .sizebox::before,
html.cui-os .win.sz-x .sizebox::before, html.cui-os .win.sz-f .sizebox::before {
  content: ""; position: absolute; left: var(--cui-os-u); top: var(--cui-os-u); right: var(--cui-os-u); bottom: var(--cui-os-u);
  width: auto; height: auto; border: 0; background: var(--cui-os-tbb-glyph);
  -webkit-mask: var(--cui-os-glyph) center / 100% 100% no-repeat; mask: var(--cui-os-glyph) center / 100% 100% no-repeat;
}
html.cui-os .closebox::before { left: 0; top: 0; right: 0; bottom: 0; --cui-os-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M0 0L10 10M10 0L0 10' fill='none' stroke='%23000' stroke-width='1.1' stroke-linecap='butt' stroke-linejoin='miter'/%3E%3C/svg%3E"); }
html.cui-os .minbox::before { --cui-os-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M.6 8.4H9.4' fill='none' stroke='%23000' stroke-width='1.1' stroke-linecap='butt' stroke-linejoin='miter'/%3E%3C/svg%3E"); }
html.cui-os .sizebox::before, html.cui-os .win.sz-m .sizebox::before { --cui-os-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3.70 3.70L1.60 1.60M2.90 1.60H1.60V2.90M3.70 6.30L1.60 8.40M2.90 8.40H1.60V7.10M6.30 3.70L8.40 1.60M7.10 1.60H8.40V2.90M6.30 6.30L8.40 8.40M7.10 8.40H8.40V7.10' fill='none' stroke='%23000' stroke-width='1.1' stroke-linecap='butt' stroke-linejoin='miter'/%3E%3C/svg%3E"); }
html.cui-os .win.sz-s .sizebox::before { --cui-os-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M4.10 4.10L2.50 2.50M3.80 2.50H2.50V3.80M4.10 5.90L2.50 7.50M3.80 7.50H2.50V6.20M5.90 4.10L7.50 2.50M6.20 2.50H7.50V3.80M5.90 5.90L7.50 7.50M6.20 7.50H7.50V6.20' fill='none' stroke='%23000' stroke-width='1.1' stroke-linecap='butt' stroke-linejoin='miter'/%3E%3C/svg%3E"); }
html.cui-os .win.sz-l .sizebox::before { --cui-os-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3.30 3.30L0.70 0.70M2.00 0.70H0.70V2.00M3.30 6.70L0.70 9.30M2.00 9.30H0.70V8.00M6.70 3.30L9.30 0.70M8.00 0.70H9.30V2.00M6.70 6.70L9.30 9.30M8.00 9.30H9.30V8.00' fill='none' stroke='%23000' stroke-width='1.1' stroke-linecap='butt' stroke-linejoin='miter'/%3E%3C/svg%3E"); }
html.cui-os .win.sz-x .sizebox::before { --cui-os-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M0.8 3.2V0.8H3.2M6.8 0.8H9.2V3.2M9.2 6.8V9.2H6.8M3.2 9.2H0.8V6.8' fill='none' stroke='%23000' stroke-width='1.1' stroke-linecap='butt' stroke-linejoin='miter'/%3E%3C/svg%3E"); }
html.cui-os .win.sz-f .sizebox::before { --cui-os-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M0.8 3.2V0.8H3.2M6.8 0.8H9.2V3.2M9.2 6.8V9.2H6.8M3.2 9.2H0.8V6.8M4.40 4.40L2.40 2.40M3.70 2.40H2.40V3.70M4.40 5.60L2.40 7.60M3.70 7.60H2.40V6.30M5.60 4.40L7.60 2.40M6.30 2.40H7.60V3.70M5.60 5.60L7.60 7.60M6.30 7.60H7.60V6.30' fill='none' stroke='%23000' stroke-width='1.1' stroke-linecap='butt' stroke-linejoin='miter'/%3E%3C/svg%3E"); }
html.cui-os .closebox:focus-visible, html.cui-os .minbox:focus-visible, html.cui-os .sizebox:focus-visible { outline: none; box-shadow: var(--cui-os-focus); }
/* a phone: each button centred in its finger-wide press area, as the System 7 look does */
html.cui-os.dev-phone .closebox, html.cui-os.dev-phone .closebox:active, html.cui-os.dev-phone .closebox.pressed { left: calc((var(--cui-touch) - var(--cui-os-tbb)) / 2); }
html.cui-os.dev-phone .minbox, html.cui-os.dev-phone .minbox:active { left: calc((var(--cui-touch) - var(--cui-os-tbb)) / 2 + var(--cui-touch)); }
html.cui-os.dev-phone .sizebox, html.cui-os.dev-phone .sizebox:active, html.cui-os.dev-phone .sizebox.pressed { right: calc((var(--cui-touch) - var(--cui-os-tbb)) / 2); }
html.cui-os.dev-phone .wtitle { max-width: calc(100% - 4 * var(--cui-touch)); }

/* ---- push buttons: pills. Plain white with a soft edge; the default (the one action Return does) dark; a coral one
   for the warm call to act (tone: 'coral'); a glyph alone is a full circle. No ring, no pixel frame. */
html.cui-os .cui-btn {
  height: var(--cui-os-btn-h); min-width: 0; padding: 0 var(--cui-os-btn-pad); gap: var(--cui-os-gap); margin: 0;
  border-radius: var(--cui-os-radius-pill); border: var(--cui-os-u) solid var(--cui-os-edge);
  background: var(--cui-os-card); color: var(--cui-os-ink);
  font-family: var(--cui-os-text-font); font-size: var(--cui-os-type); font-weight: 500;
}
html.cui-os .cui-btn::after, html.cui-os .cui-btn.cui-on::after, html.cui-os .cui-btn:active::after,
html.cui-os .cui-default::before { content: none; border: 0; border-image: none; }
html.cui-os :where(*):has(> .cui-default) > .cui-btn:not(.cui-default) { margin-top: 0; margin-bottom: 0; }
html.cui-os .cui-btn:hover:not(:disabled) { background: var(--cui-os-hover); }
html.cui-os .cui-btn.cui-on, html.cui-os .cui-btn:active:not(:disabled):not(.cui-off) { background: var(--cui-os-hover); color: var(--cui-os-ink); }
html.cui-os .cui-btn.cui-on > .cui-icon, html.cui-os .cui-btn:active:not(:disabled):not(.cui-off) > .cui-icon { filter: var(--cui-glyph); }
html.cui-os .cui-btn.cui-default, html.cui-os .cui-btn.cui-default:hover:not(:disabled) {
  background: var(--cui-os-dark); border-color: var(--cui-os-dark); color: var(--cui-os-dark-ink);
}
html.cui-os .cui-btn.cui-default > .cui-icon { filter: var(--cui-glyph-inv); }
html.cui-os .cui-btn.cui-tone-coral, html.cui-os .cui-btn.cui-tone-coral:hover:not(:disabled) {
  background: var(--cui-os-coral); border-color: var(--cui-os-coral); color: var(--cui-os-coral-ink);
}
html.cui-os .cui-btn.cui-default:active:not(:disabled), html.cui-os .cui-btn.cui-tone-coral:active:not(:disabled) { filter: brightness(.88); }
html.cui-os .cui-btn.cui-small, html.cui-os :where(tr, .cui-row, .srow) .cui-btn.cui-small {
  height: var(--cui-os-btn-h-sm); padding: 0 calc(11 * var(--cui-os-u)); font-family: var(--cui-os-text-font);
  font-size: var(--cui-os-type-sm); font-weight: 500;
}
html.cui-os .cui-btn.cui-large { height: calc(40 * var(--cui-os-u)); padding: 0 calc(18 * var(--cui-os-u)); font-size: var(--cui-os-type-md); }
/* a glyph alone: the full circle (canvas .cbtn: Save is the disk, Undo, Share, Versions) */
html.cui-os .cui-btn.cui-iconly, html.cui-os .cui-btn.cui-iconly.cui-square {
  width: var(--cui-os-btn-h); min-width: 0; padding: 0; box-shadow: var(--cui-os-shadow-btn);
}
html.cui-os .cui-btn.cui-small.cui-iconly, html.cui-os :where(tr, .cui-row, .srow) .cui-btn.cui-small.cui-iconly { width: var(--cui-os-btn-h-sm); height: var(--cui-os-btn-h-sm); }
/* a glyph in a button at its own 16 grid on a computer, as the canvas's icons sit in a 34 circle; a phone keeps the
   kit's glyph size, a whole multiple of the grid there */
html.cui-os:not(.dev-phone):not(.dev-tablet) .cui-btn > .cui-icon { width: calc(16 * var(--cui-os-u)); height: calc(16 * var(--cui-os-u)); }
html.cui-os .cui-btn:focus-visible { outline: none; box-shadow: var(--cui-os-focus); }
html.cui-os .cui-btn:disabled, html.cui-os .cui-btn.cui-dim { color: var(--cui-os-ink); opacity: var(--cui-os-faded); background: var(--cui-os-card); }
html.cui-os .cui-btn:disabled > *, html.cui-os .cui-btn.cui-dim > * { -webkit-mask-image: none; mask-image: none; }
html.cui-os .cui-btn.cui-default:disabled { background: var(--cui-os-dark); color: var(--cui-os-dark-ink); }   /* faded, its words still light on dark */

/* ---- a feature the edition, licence, mode or plan limits (CUI.features, #2673, #2674, #2669): a limited one works
   and carries a small chip naming what limits it; an unavailable one that is still shown is faded, can't be pressed,
   and carries the same chip; a hidden one is not drawn at all. The words on the chip come from the data. */
.cui-limit {
  display: inline-flex; align-items: center; flex: none; vertical-align: middle; white-space: nowrap;
  margin-left: calc(4 * var(--px)); padding: 0 calc(3 * var(--px)); border: var(--px) solid var(--cui-ink);
  font-family: var(--cui-font-text); font-size: var(--cui-type-9); line-height: 1.4;
}
html.cui-os .cui-limit {
  margin-left: var(--cui-os-gap); padding: calc(2 * var(--cui-os-u)) calc(8 * var(--cui-os-u)); border: 0;
  border-radius: var(--cui-os-radius-pill); background: var(--cui-os-limit); color: var(--cui-os-limit-ink);
  font-family: var(--cui-os-text-font); font-size: calc(11 * var(--cui-os-u)); font-weight: 500;
}
html.cui-os .cui-btn > .cui-limit { margin-right: calc(-8 * var(--cui-os-u)); }
html.cui-os .cui-unavailable:not(.cui-btn) { opacity: var(--cui-os-faded); }

/* ---- slice 2, the desktop's parts as Oscar Platinum draws them (canvas P1, P1b): a frosted bar 34 high, Chicago for the menus, Activities with the coral spinner; the dock a frosted
   pill of app tiles with the window strip under each; the search pill and the round desktop buttons on the same glass */
html.cui-os:not(.dev-phone) { --menubar-h: var(--cui-os-menubar-h); }
html.cui-os #menubar, html.cui-os .cui-menubar {
  background: var(--cui-os-glass); color: var(--cui-os-ink); border-bottom: var(--cui-os-u) solid var(--cui-os-glass-edge);
  font-family: var(--cui-os-ui-font); font-size: var(--cui-os-type);
  -webkit-backdrop-filter: blur(calc(16 * var(--cui-os-u))); backdrop-filter: blur(calc(16 * var(--cui-os-u)));
}
html.cui-os.dev-phone #menubar { background-clip: content-box; }   /* #2680: the phone's status bar over the page's ground */
html.cui-os .cui-menubar { height: var(--cui-os-menubar-h); gap: calc(20 * var(--cui-os-u)); padding: 0 calc(16 * var(--cui-os-u)); }
html.cui-os .cui-menubar-title, html.cui-os #menus .mtitle { color: var(--cui-os-menu-ink); }
html.cui-os .cui-menubar-app { font-weight: normal; color: var(--cui-os-ink); }
html.cui-os .cui-spool { color: var(--cui-os-coral); }
html.cui-os .cui-activity { gap: var(--cui-os-gap); font-family: var(--cui-os-ui-font); font-size: var(--cui-os-type); color: var(--cui-os-ink); }
html.cui-os .cui-activity > .cui-spool { font-size: calc(15 * var(--cui-os-u)); }
html.cui-os .cui-activity:focus-visible, html.cui-os .cui-dockitem:focus-visible, html.cui-os .cui-searchpill:focus-visible,
html.cui-os .cui-minioscar:focus-visible { outline: none; box-shadow: var(--cui-os-focus); }
/* the pip: one per app, the moving rainbow, white Chicago figures with a soft dark edge */
html.cui-os .cui-pip {
  right: calc(-5 * var(--cui-os-u)); top: calc(-5 * var(--cui-os-u)); min-width: calc(18 * var(--cui-os-u)); height: calc(18 * var(--cui-os-u));
  padding: 0 calc(4 * var(--cui-os-u)); border-radius: calc(5 * var(--cui-os-u)); color: var(--cui-os-pip-ink);
  font-family: var(--cui-os-ui-font); font-size: calc(11 * var(--cui-os-u));
  text-shadow: 0 0 calc(2 * var(--cui-os-u)) var(--cui-os-pip-shade), 0 var(--cui-os-u) 0 var(--cui-os-pip-shade);
  box-shadow: 0 0 0 calc(2 * var(--cui-os-u)) var(--cui-os-bar);
  background: linear-gradient(90deg, var(--cui-os-rb-1), var(--cui-os-rb-2), var(--cui-os-rb-3), var(--cui-os-rb-4), var(--cui-os-rb-5),
    var(--cui-os-rb-6), var(--cui-os-rb-1)) 0 0 / 300% 100%;
  animation: cui-os-pipslide 3s linear infinite;
}
@media (prefers-reduced-motion: reduce) { html.cui-os .cui-pip { animation: none; } }
/* app tiles (#2667): System 7 shows the icon, Oscar Platinum the drawn object on its app's own shape */
html.cui-os .cui-apptile.cui-has-tile > .cui-apptile-old { display: none; }
html.cui-os .cui-apptile.cui-has-tile > .cui-apptile-os { display: block; width: 100%; height: 100%; overflow: visible;
  filter: drop-shadow(0 calc(3 * var(--cui-os-u)) calc(5 * var(--cui-os-u)) var(--cui-os-tile-shade)); }
html.cui-os .cui-dock {
  gap: calc(11 * var(--cui-os-u)); padding: calc(9 * var(--cui-os-u)) calc(14 * var(--cui-os-u)) calc(3 * var(--cui-os-u));
  border: 0; border-radius: calc(22 * var(--cui-os-u)); background: var(--cui-os-glass); box-shadow: var(--cui-os-shadow-float);
  -webkit-backdrop-filter: blur(calc(18 * var(--cui-os-u))); backdrop-filter: blur(calc(18 * var(--cui-os-u)));
}
html.cui-os .cui-dockitem { gap: calc(2 * var(--cui-os-u)); border-radius: calc(14 * var(--cui-os-u));
  padding: calc(5 * var(--cui-os-u)) calc(5 * var(--cui-os-u)) 0 0; margin: calc(-5 * var(--cui-os-u)) calc(-5 * var(--cui-os-u)) 0 0; }
html.cui-os .cui-dockitem > .cui-pip { top: 0; right: 0; }
html.cui-os .cui-docktile { width: var(--cui-os-dock-tile); height: var(--cui-os-dock-tile); }
html.cui-os .cui-dockmark { height: var(--cui-os-paw); }
html.cui-os .cui-dockstrip { border-radius: var(--cui-os-band-h); overflow: hidden; }
html.cui-os .cui-dockstrip > i { width: var(--cui-os-band-w); height: var(--cui-os-band-h); }
html.cui-os .cui-dockstrip > i + i { margin-left: 0; }
html.cui-os .cui-dockstrip > .cui-band-1 { background: var(--cui-os-rb-1); }
html.cui-os .cui-dockstrip > .cui-band-2 { background: var(--cui-os-rb-2); }
html.cui-os .cui-dockstrip > .cui-band-3 { background: var(--cui-os-rb-3); }
html.cui-os .cui-dockstrip > .cui-band-4 { background: var(--cui-os-rb-4); }
html.cui-os .cui-dockstrip > .cui-band-5 { background: var(--cui-os-rb-5); }
html.cui-os .cui-dockstrip > .cui-band-6 { background: var(--cui-os-rb-6); }
html.cui-os .cui-dockstrip > i > b { width: calc(2 * var(--cui-os-u)); height: calc(2 * var(--cui-os-u)); margin-top: calc(2 * var(--cui-os-u));
  background: var(--cui-os-pip-ink); }
html.cui-os .cui-paw { width: var(--cui-os-paw); height: var(--cui-os-paw); background: var(--cui-os-ink);
  filter: drop-shadow(0 0 var(--cui-os-u) var(--cui-os-bar)) drop-shadow(0 0 var(--cui-os-u) var(--cui-os-bar)); }
html.cui-os .cui-dockprev { bottom: calc(100% + 8 * var(--cui-os-u)); gap: calc(8 * var(--cui-os-u)); padding: calc(8 * var(--cui-os-u));
  border: 0; border-radius: var(--cui-os-radius-item); background: var(--cui-os-bar); box-shadow: var(--cui-os-shadow-float); }
html.cui-os .cui-searchpill {
  width: calc(132 * var(--cui-os-u)); height: calc(32 * var(--cui-os-u)); border: 0; border-radius: var(--cui-os-radius-pill);
  background: var(--cui-os-glass); box-shadow: var(--cui-os-shadow-float); cursor: pointer;
  -webkit-backdrop-filter: blur(calc(16 * var(--cui-os-u))); backdrop-filter: blur(calc(16 * var(--cui-os-u)));
}
html.cui-os .cui-searchpill > .cui-icon { width: calc(16 * var(--cui-os-u)); height: calc(16 * var(--cui-os-u)); filter: var(--cui-glyph); }
/* minimise-all: the kit's circle glyph button on the glass, the desktop's own one included */
html.cui-os .cui-btn.cui-minall, html.cui-os #showdeskbtn.cui-btn {
  border: 0; border-radius: 50%; background: var(--cui-os-glass); box-shadow: var(--cui-os-shadow-float);
  -webkit-backdrop-filter: blur(calc(14 * var(--cui-os-u))); backdrop-filter: blur(calc(14 * var(--cui-os-u)));
}
html.cui-os #showdeskbtn { left: calc(14 * var(--cui-os-u)); bottom: calc(14 * var(--cui-os-u) + env(safe-area-inset-bottom, 0px)); }
/* the desktop's dock at its foot, centred, and the search pill centred under the menu bar (app.js drawDock) */
html.cui-os #deskdock { display: inline-flex; left: 50%; transform: translateX(-50%); bottom: calc(10 * var(--cui-os-u) + env(safe-area-inset-bottom, 0px)); }
html.cui-os #deskpill { display: inline-flex; position: absolute; z-index: var(--z-deskctl); left: 50%; transform: translateX(-50%); top: calc(10 * var(--cui-os-u)); }
html.cui-os #deskdock[hidden], html.cui-os #deskpill[hidden] { display: none; }
/* the Minimise bar keeps the windows the dock does not hold (a system window's), just above the dock */
html.cui-os body.hasdock #minbar { bottom: calc(var(--cui-os-dock-tile) + var(--cui-os-paw) + 34 * var(--cui-os-u) + env(safe-area-inset-bottom, 0px)); }
html.cui-os .dicon .cui-apptile { width: calc(32 * var(--px)); height: calc(32 * var(--px)); }   /* the icon's own room: names in line */
html.cui-os #oscarminiicon { right: calc(14 * var(--cui-os-u)); bottom: calc(14 * var(--cui-os-u) + env(safe-area-inset-bottom, 0px)); }
/* Mini Oscar folded: the 3D Oscar in a round button with the coral ring */
html.cui-os .cui-minioscar {
  width: calc(38 * var(--cui-os-u)); height: calc(38 * var(--cui-os-u)); border: 0; border-radius: 50%; background: var(--cui-os-bar);
  box-shadow: 0 0 0 calc(2 * var(--cui-os-u)) var(--cui-os-bar), 0 0 0 calc(4 * var(--cui-os-u)) var(--cui-os-coral),
    0 calc(12 * var(--cui-os-u)) calc(22 * var(--cui-os-u)) calc(-12 * var(--cui-os-u)) var(--cui-os-shade);
  cursor: pointer;
}
/* the ground: warm paper with fine dots; a picture the person chose is drawn over it (desk.js) */
html.cui-os #desktop, html.cui-os .cui-desk {
  background-color: var(--cui-os-desk);
  background-image: radial-gradient(circle, var(--cui-os-desk-dot) calc(1 * var(--cui-os-u)), transparent calc(1.4 * var(--cui-os-u))),
    linear-gradient(160deg, var(--cui-os-desk), var(--cui-os-desk-2));
  background-size: calc(10 * var(--cui-os-u)) calc(10 * var(--cui-os-u)), 100% 100%;
}
/* ---- review-gate-9b on a9694844: the real desktop as the canvas draws it (P1) ---- */
/* Oscar's logo: the graphic logo with the rainbow bow tie by day, the night cap at night; never the pixel mark */
html.cui-os .cui-oscarlogo > img:not(.cui-oscarlogo-os) { display: none; }
html.cui-os .cui-oscarlogo::after { display: none; }
html.cui-os:not([data-cui-mode="dark"]) .cui-oscarlogo > img.cui-oscarlogo-day,
html.cui-os[data-cui-mode="dark"] .cui-oscarlogo > img.cui-oscarlogo-night { display: block; }
/* Oscar's tile: his logo on the paper in a coral ring (the registry's shape ring) */
html.cui-os .cui-apptile-os .cui-ground-ring { fill: var(--cui-os-bar); stroke: var(--cui-os-coral); }
/* a folder: the drawn folder, the picture of what it holds on its face */
html.cui-os .cui-fpic > img.cui-fpic-folder { display: none; }
html.cui-os .cui-fpic > img.cui-fpic-os { display: block; width: 100%; height: 100%; }
html.cui-os .cui-fpic > .cui-fpic-mark { left: 31.25%; top: 45%; width: 37.5%; height: 37.5%; }
/* the bar on a computer: the logo, the front app's name in bold, the menus; then Activities, search, the bell and the
   day and time at the right end, each on the bar's glass with no box of its own */
html.cui-os:not(.dev-phone) #menubar { align-items: center; padding: 0 calc(16 * var(--cui-os-u)); gap: calc(14 * var(--cui-os-u)); }
html.cui-os:not(.dev-phone) #menus { margin-right: auto; padding: 0; gap: calc(6 * var(--cui-os-u)); align-self: stretch; }
html.cui-os:not(.dev-phone) #menus .mtitle { color: var(--cui-os-menu-ink); }
html.cui-os:not(.dev-phone) #menus .appname .mtitle { color: var(--cui-os-ink); font-weight: bold; }
html.cui-os:not(.dev-phone) #menus .mtitle .cui-oscarlogo, html.cui-os .cui-menubar-logo {
  width: calc(20 * var(--cui-os-u)); height: calc(24 * var(--cui-os-u)); }
html.cui-os:not(.dev-phone) #menubar > #nowbtn, html.cui-os:not(.dev-phone) #menubar > #nowctl,
html.cui-os:not(.dev-phone) #menubar > #strip, html.cui-os:not(.dev-phone) #menubar > .findbtn,
html.cui-os:not(.dev-phone) #menubar > .notebtn {
  margin-left: 0; border: 0; background: transparent; align-self: stretch; }
html.cui-os:not(.dev-phone) #menubar > #nowbtn, html.cui-os:not(.dev-phone) #menubar > #nowctl { order: 1; }
html.cui-os:not(.dev-phone) #menubar > #strip { order: 2; padding: 0; font-family: var(--cui-os-ui-font); font-size: var(--cui-os-type); color: var(--cui-os-ink); }
html.cui-os:not(.dev-phone) #menubar > .findbtn { order: 3; }
html.cui-os:not(.dev-phone) #menubar > .notebtn { order: 4; }
html.cui-os:not(.dev-phone) #menubar > #barclock { order: 5; }
html.cui-os #strip .actitem { gap: calc(6 * var(--cui-os-u)); font: inherit; color: inherit; background: transparent; border: 0; }
html.cui-os #strip .actitem > .cui-spool { font-size: calc(15 * var(--cui-os-u)); }
html.cui-os .cui-menuclock { flex: none; white-space: nowrap; font-family: var(--cui-os-ui-font); font-size: var(--cui-os-type); color: var(--cui-os-ink); }
/* desktop icons: the tile, its name under it on the soft paper with round corners, never a white box */
html.cui-os #desktop .dicon { font-family: var(--cui-os-ui-font); font-size: calc(12 * var(--cui-os-u)); color: var(--cui-os-ink); }
html.cui-os #desktop .dicon .dname { margin-top: calc(6 * var(--cui-os-u)); padding: var(--cui-os-u) calc(6 * var(--cui-os-u));
  border-radius: calc(5 * var(--cui-os-u)); background: var(--cui-os-label); color: var(--cui-os-ink); line-height: 1.25; }
html.cui-os #desktop .dicon.sel .dname { background: var(--cui-os-dark); color: var(--cui-os-dark-ink); }
html.cui-os #desktop .dicon.sel .cui-apptile, html.cui-os #desktop .dicon.sel .cui-fpic { filter: brightness(.8); }
html.cui-os #desktop .dicon:focus-visible .dname { outline: none; box-shadow: var(--cui-os-focus); }
/* the minimised windows the dock does not hold (a system window's): the canvas's preview cards on the glass above
   the dock, each a small picture of its window and its title, never System 7's black strip */
html.cui-os body.hasdock #minbar .mintray { gap: calc(10 * var(--cui-os-u)); padding: calc(10 * var(--cui-os-u));
  border-radius: calc(18 * var(--cui-os-u)); background: var(--cui-os-glass); color: var(--cui-os-ink); box-shadow: var(--cui-os-shadow-float);
  -webkit-backdrop-filter: blur(calc(16 * var(--cui-os-u))); backdrop-filter: blur(calc(16 * var(--cui-os-u))); }
html.cui-os body.hasdock #minbar .minitem { flex-direction: column; align-items: flex-start; gap: calc(6 * var(--cui-os-u));
  color: var(--cui-os-ink); font-family: var(--cui-os-text-font); font-size: calc(12 * var(--cui-os-u)); font-weight: 500; }
html.cui-os body.hasdock #minbar .minprev { border-radius: calc(10 * var(--cui-os-u)); background: var(--cui-os-win);
  box-shadow: 0 0 0 var(--cui-os-u) var(--cui-os-hover); }
html.cui-os body.hasdock #minbar .minprev .minblank { background: var(--cui-os-win); }
html.cui-os body.hasdock #minbar .minname { padding: 0 calc(4 * var(--cui-os-u)); border-radius: calc(5 * var(--cui-os-u)); background: transparent; color: var(--cui-os-ink);
  font: inherit; max-width: calc(170 * var(--cui-os-u)); }
html.cui-os body.hasdock #minbar .minitem:hover .minname, html.cui-os body.hasdock #minbar .minitem:focus-visible .minname {
  background: var(--cui-os-hover); color: var(--cui-os-ink); }
/* ---- slice 4: the floating tool bar and the line glyphs (#2660) ---- */
html.cui-os .cui-toolpill { gap: calc(2 * var(--cui-os-u)); padding: calc(4 * var(--cui-os-u)) calc(6 * var(--cui-os-u)); border: 0;
  border-radius: var(--cui-os-radius-pill); background: var(--cui-os-glass); box-shadow: var(--cui-os-shadow-float);
  -webkit-backdrop-filter: blur(calc(16 * var(--cui-os-u))); backdrop-filter: blur(calc(16 * var(--cui-os-u))); }
html.cui-os .cui-toolpill > .cui-btn:not(.cui-default):not(.cui-tone-coral) { background: transparent; box-shadow: none; }
html.cui-os .cui-toolpill > .cui-btn:hover:not(:disabled):not(.cui-default):not(.cui-tone-coral) { background: var(--cui-os-hover); }
/* the tool in use: latched in the accent tint, its glyph in the accent's ink */
html.cui-os .cui-btn.cui-iconly.cui-on, html.cui-os .cui-toolpill > .cui-btn.cui-iconly.cui-on { background: var(--cui-os-tint-6); }
html.cui-os img.cui-icon[data-line] { image-rendering: auto; }
/* ---- slice 4: rainbow breakdown bars with their keys, the double usage pie with no numbers ---- */
html.cui-os .cui-stack { height: calc(8 * var(--cui-os-u)); border: 0; border-radius: calc(4 * var(--cui-os-u)); background: var(--cui-os-line);
  box-shadow: inset 0 0 0 var(--cui-os-u) var(--cui-os-glass-edge); cursor: pointer; overflow: visible; outline: none; }
html.cui-os .cui-stack .cui-seg { border: 0; background-image: none; }
html.cui-os .cui-stack .cui-seg:first-child { border-radius: calc(4 * var(--cui-os-u)) 0 0 calc(4 * var(--cui-os-u)); }
html.cui-os .cui-stack:focus-visible { box-shadow: var(--cui-os-focus); }
html.cui-os .cui-stack .cui-rb-1, html.cui-os .cui-stackkey .cui-rb-1 { background: var(--cui-os-rb-1); }
html.cui-os .cui-stack .cui-rb-2, html.cui-os .cui-stackkey .cui-rb-2 { background: var(--cui-os-rb-2); }
html.cui-os .cui-stack .cui-rb-3, html.cui-os .cui-stackkey .cui-rb-3 { background: var(--cui-os-rb-3); }
html.cui-os .cui-stack .cui-rb-4, html.cui-os .cui-stackkey .cui-rb-4 { background: var(--cui-os-rb-4); }
html.cui-os .cui-stack .cui-rb-5, html.cui-os .cui-stackkey .cui-rb-5 { background: var(--cui-os-rb-5); }
html.cui-os .cui-stack .cui-rb-6, html.cui-os .cui-stackkey .cui-rb-6 { background: var(--cui-os-rb-6); }
html.cui-os .cui-stackbars { overflow: visible; }
html.cui-os .cui-stackkey { position: absolute; left: 0; top: auto; bottom: calc(16 * var(--cui-os-u)); z-index: 5; display: flex; flex-direction: column;
  gap: calc(5 * var(--cui-os-u)); min-width: calc(200 * var(--cui-os-u)); padding: calc(10 * var(--cui-os-u)) calc(12 * var(--cui-os-u));
  border-radius: calc(12 * var(--cui-os-u)); background: var(--cui-os-bar); box-shadow: var(--cui-os-shadow-float); cursor: default;
  font-family: var(--cui-os-text-font); font-size: calc(12 * var(--cui-os-u)); color: var(--cui-os-ink); }
html.cui-os .cui-stackkey-row { display: flex; align-items: center; gap: calc(8 * var(--cui-os-u)); white-space: nowrap; }
html.cui-os .cui-stackkey-row > i { flex: none; width: calc(10 * var(--cui-os-u)); height: calc(10 * var(--cui-os-u)); border-radius: calc(3 * var(--cui-os-u)); }
html.cui-os .cui-stackkey-row > b { margin-left: auto; padding-left: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
html.cui-os .cui-stackkey-free { color: var(--cui-os-quiet); }
html.cui-os .cui-stackkey-free > i { background: var(--cui-os-line); box-shadow: inset 0 0 0 var(--cui-os-u) var(--cui-os-edge); }
html.cui-os .cui-ringpie > path { display: none; }
html.cui-os .cui-pie .cui-pie-os { display: inline; }
html.cui-os .cui-pie-os-face { fill: var(--cui-os-card); stroke: var(--cui-os-ink); }
html.cui-os .cui-pie-os-track { fill: none; stroke: var(--cui-os-line); }
html.cui-os .cui-pie-os-on { fill: none; }
html.cui-os .cui-pie-os-green { stroke: var(--cui-os-done-dot); }
html.cui-os .cui-pie-os-orange { stroke: var(--cui-os-rb-3); }
html.cui-os .cui-pie-os-red { stroke: var(--cui-os-fail-dot); }
html.cui-os .cui-pie-os-blue { stroke: var(--cui-os-rb-6); }
/* ---- slice 3: inputs, cards, chips and tags in the look (canvas base.css .inp, .card, .st) ---- */
/* fields: pills on the card's white with a soft edge; a text area is a card-round box; a number has no arrows */
html.cui-os .cui-field {
  height: calc(40 * var(--cui-os-u)); padding: 0 calc(16 * var(--cui-os-u)); font-family: var(--cui-os-text-font);
  font-size: calc(14 * var(--cui-os-u)); color: var(--cui-os-ink); background: var(--cui-os-card);
  border: var(--cui-os-u) solid var(--cui-os-edge); border-radius: var(--cui-os-radius-pill);
}
html.cui-os .cui-field::placeholder { color: var(--cui-os-faint); }
html.cui-os .cui-field:focus { border-color: var(--cui-os-size); box-shadow: var(--cui-os-focus); }
html.cui-os .cui-field:disabled { opacity: var(--cui-os-faded); border-color: var(--cui-os-line); }
html.cui-os .cui-field.cui-area { min-height: calc(80 * var(--cui-os-u)); padding: calc(10 * var(--cui-os-u)) calc(16 * var(--cui-os-u));
  border-radius: var(--cui-os-radius-card); }
html.cui-os .cui-field.cui-num { width: calc(88 * var(--cui-os-u)); -moz-appearance: textfield; }
html.cui-os .cui-number > .cui-arrows { display: none; }   /* no arrows: typed, or the keyboard's up and down */
html.cui-os .cui-field.cui-num::-webkit-inner-spin-button, html.cui-os .cui-field.cui-num::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
/* pop-ups: a pill with a thin chevron */
html.cui-os .cui-popup {
  height: calc(34 * var(--cui-os-u)); padding: 0 calc(34 * var(--cui-os-u)) 0 calc(14 * var(--cui-os-u)); margin: 0;
  font-family: var(--cui-os-ui-font); font-size: var(--cui-os-type); color: var(--cui-os-ink); image-rendering: auto;
  background: var(--cui-os-card) url("os-chevron.svg") no-repeat right calc(12 * var(--cui-os-u)) center / calc(12 * var(--cui-os-u)) calc(12 * var(--cui-os-u));
  border: var(--cui-os-u) solid var(--cui-os-edge); border-radius: var(--cui-os-radius-pill); box-shadow: none;
}
html.cui-os .cui-popup:active:not(:disabled), html.cui-os .cui-popup.cui-on { background-color: var(--cui-os-hover); color: var(--cui-os-ink); }
html.cui-os .cui-popup:disabled { opacity: var(--cui-os-faded); }
html.cui-os .cui-popup:focus-visible, html.cui-os input.cui-checkbox:focus-visible, html.cui-os input.cui-radio:focus-visible,
html.cui-os input.cui-slider:focus-visible, html.cui-os .cui-well:focus-visible { outline: none; box-shadow: var(--cui-os-focus); }
html.cui-os .cui-popup .cui-icon { image-rendering: auto; }
/* check boxes and radio buttons: rounded and round, coral when on */
html.cui-os input.cui-checkbox, html.cui-os input.cui-radio {
  width: calc(18 * var(--cui-os-u)); height: calc(18 * var(--cui-os-u)); border: calc(1.5 * var(--cui-os-u)) solid var(--cui-os-edge);
  background: var(--cui-os-card); image-rendering: auto;
}
html.cui-os input.cui-checkbox { border-radius: calc(5 * var(--cui-os-u)); }
html.cui-os input.cui-radio { border-radius: 50%; }
html.cui-os input.cui-checkbox:checked { border-color: var(--cui-os-coral);
  background: var(--cui-os-coral) url("os-check.svg") no-repeat center / calc(12 * var(--cui-os-u)) calc(12 * var(--cui-os-u)); }
html.cui-os input.cui-radio:checked { border-color: var(--cui-os-coral);
  background: radial-gradient(circle, var(--cui-os-coral-ink) calc(3.5 * var(--cui-os-u)), var(--cui-os-coral) calc(4 * var(--cui-os-u))); }
html.cui-os input.cui-checkbox:active:not(:disabled), html.cui-os input.cui-radio:active:not(:disabled) { box-shadow: 0 0 0 calc(3 * var(--cui-os-u)) var(--cui-os-hover); }
html.cui-os input.cui-checkbox:disabled, html.cui-os input.cui-radio:disabled { opacity: var(--cui-os-faded); }
/* the slider: a soft round track, the part up to the knob in the ink, a white round knob */
html.cui-os input.cui-slider { height: calc(20 * var(--cui-os-u)); background: transparent; }
html.cui-os input.cui-slider::-webkit-slider-runnable-track { height: calc(6 * var(--cui-os-u)); border: 0; border-radius: calc(3 * var(--cui-os-u)); background: var(--cui-os-line); }
html.cui-os input.cui-slider::-moz-range-track { height: calc(6 * var(--cui-os-u)); border: 0; border-radius: calc(3 * var(--cui-os-u)); background: var(--cui-os-line); }
html.cui-os input.cui-slider::-moz-range-progress { height: calc(6 * var(--cui-os-u)); border-radius: calc(3 * var(--cui-os-u)); background: var(--cui-os-ink); }
html.cui-os input.cui-slider::-webkit-slider-thumb { width: calc(18 * var(--cui-os-u)); height: calc(18 * var(--cui-os-u)); margin-top: calc(-6 * var(--cui-os-u));
  border: 0; border-radius: 50%; background: var(--cui-os-card); box-shadow: var(--cui-os-shadow-btn), 0 0 0 var(--cui-os-u) var(--cui-os-edge); image-rendering: auto; }
html.cui-os input.cui-slider::-moz-range-thumb { width: calc(18 * var(--cui-os-u)); height: calc(18 * var(--cui-os-u)); border: 0; border-radius: 50%;
  background: var(--cui-os-card); box-shadow: var(--cui-os-shadow-btn), 0 0 0 var(--cui-os-u) var(--cui-os-edge); }
/* the colour well: a round swatch in a soft ring */
html.cui-os .cui-well { border-radius: 50%; background: var(--cui-os-card); box-shadow: 0 0 0 var(--cui-os-u) var(--cui-os-edge); }
html.cui-os .cui-well > .cui-chip { border: 0; border-radius: 50%; }
html.cui-os .cui-well.cui-on, html.cui-os .cui-well:active:not(:disabled) { background: var(--cui-os-hover); }
/* cards: white, 16 round, a soft edge and shadow */
html.cui-os .cui-notice {
  padding: calc(12 * var(--cui-os-u)) calc(16 * var(--cui-os-u)); gap: calc(10 * var(--cui-os-u)); border: 0;
  border-radius: var(--cui-os-radius-card); background: var(--cui-os-card); color: var(--cui-os-ink); box-shadow: var(--cui-os-shadow-card);
  font-family: var(--cui-os-text-font); font-size: calc(14 * var(--cui-os-u));
}
/* chips: pills with a dot, in the status's tint: Working, Waiting, Done, Failed, Queued */
html.cui-os :not(.cui-well) > .cui-chip {
  display: inline-flex; align-items: center; gap: calc(6 * var(--cui-os-u)); padding: calc(3 * var(--cui-os-u)) calc(9 * var(--cui-os-u));
  border: 0; border-radius: var(--cui-os-radius-pill); font-family: var(--cui-os-ui-font); font-size: var(--cui-os-type-sm); font-weight: 500;
  background: var(--cui-os-queued); color: var(--cui-os-queued-ink);
}
html.cui-os :not(.cui-well) > .cui-chip.st-ok, html.cui-os :not(.cui-well) > .cui-chip.st-done { background: var(--cui-os-done); color: var(--cui-os-done-ink); }
html.cui-os :not(.cui-well) > .cui-chip.st-warn, html.cui-os :not(.cui-well) > .cui-chip.st-wait { background: var(--cui-os-wait); color: var(--cui-os-wait-ink); }
html.cui-os :not(.cui-well) > .cui-chip.st-err, html.cui-os :not(.cui-well) > .cui-chip.st-fail { background: var(--cui-os-fail); color: var(--cui-os-fail-ink); }
html.cui-os :not(.cui-well) > .cui-chip.st-work { background: var(--cui-os-work); color: var(--cui-os-work-ink); }
html.cui-os .cui-chipdot { display: block; width: calc(7 * var(--cui-os-u)); height: calc(7 * var(--cui-os-u)); border-radius: 50%; background: var(--cui-os-queued-dot); }
html.cui-os .st-ok > .cui-chipdot, html.cui-os .st-done > .cui-chipdot { background: var(--cui-os-done-dot); }
html.cui-os .st-warn > .cui-chipdot, html.cui-os .st-wait > .cui-chipdot { background: var(--cui-os-wait-dot); }
html.cui-os .st-err > .cui-chipdot, html.cui-os .st-fail > .cui-chipdot { background: var(--cui-os-fail-dot); }
html.cui-os .st-work > .cui-chipdot { background: var(--cui-os-work-dot); }
/* tags: pills on the soft grey, their colour key a round dot; on, the dark pill */
html.cui-os .cui-tag { border: 0; border-radius: var(--cui-os-radius-pill); background: var(--cui-os-hover); color: var(--cui-os-ink);
  font-family: var(--cui-os-ui-font); font-size: var(--cui-os-type-sm); }
html.cui-os .cui-tag.cui-on { background: var(--cui-os-dark); color: var(--cui-os-dark-ink); }
html.cui-os .cui-tagkey { border: 0; border-radius: 50%; }

/* slice 5: sidebars, tables and sheets, as the canvas's Drive, Mail and Settings draw them (A7, P10, P12) */
html.cui-os .cui-sidebar { padding: calc(12 * var(--cui-os-u)) calc(10 * var(--cui-os-u)); gap: calc(8 * var(--cui-os-u)); border-right: var(--cui-os-u) solid var(--cui-os-line);
  background: var(--cui-os-side); font-family: var(--cui-os-text-font); }
html.cui-os .cui-sidelist { gap: calc(8 * var(--cui-os-u)); }
html.cui-os .cui-sidegroup { gap: calc(2 * var(--cui-os-u)); }
html.cui-os .cui-sidelabel, html.cui-os .cui-lv th .cui-lvlabel { font-family: var(--monaco); font-size: calc(11 * var(--cui-os-u)); letter-spacing: .14em;
  text-transform: uppercase; color: var(--cui-os-quiet); opacity: 1; }
html.cui-os .cui-sidelabel { padding: calc(4 * var(--cui-os-u)) calc(10 * var(--cui-os-u)); }
html.cui-os .cui-sideitem, html.cui-os .cui-seg.cui-sidetabs:not(.cui-across) > .cui-segb, html.cui-os .cui-treepick {
  min-height: calc(32 * var(--cui-os-u)); gap: calc(10 * var(--cui-os-u)); padding: calc(7 * var(--cui-os-u)) calc(10 * var(--cui-os-u));
  border: 0; border-radius: var(--cui-os-radius-item); background: transparent; box-shadow: none; color: var(--cui-os-ink);
  font-family: var(--cui-os-text-font); font-size: var(--cui-os-type-md); }
html.cui-os .cui-sideitem > .cui-icon, html.cui-os .cui-treepick > .cui-icon { width: calc(14 * var(--cui-os-u)); height: calc(14 * var(--cui-os-u)); filter: var(--cui-glyph); }
html.cui-os .cui-sidecount { font-size: calc(12 * var(--cui-os-u)); color: var(--cui-os-quiet); }
html.cui-os .cui-sideend .cui-sideitem:not(.cui-on) { color: var(--cui-os-quiet); }
html.cui-os .cui-sideitem:hover:not(:disabled):not(.cui-on), html.cui-os .cui-seg.cui-sidetabs:not(.cui-across) > .cui-segb:hover:not(:disabled):not(.cui-on),
html.cui-os .cui-treepick:hover:not(.cui-on) { background: var(--cui-os-hover); }
html.cui-os .cui-sideitem.cui-on, html.cui-os .cui-seg.cui-sidetabs:not(.cui-across) > .cui-segb.cui-on, html.cui-os .cui-treepick.cui-on {
  background: var(--cui-os-card); color: var(--cui-os-ink); box-shadow: 0 0 0 var(--cui-os-u) var(--cui-os-hover), var(--cui-os-shadow-btn); }
html.cui-os .cui-sideitem.cui-on > .cui-icon, html.cui-os .cui-treepick.cui-on > .cui-icon { filter: var(--cui-glyph); }
html.cui-os .cui-sideitem:disabled { opacity: var(--cui-os-faded); }
html.cui-os .cui-sideitem:focus-visible, html.cui-os .cui-seg.cui-sidetabs > .cui-segb:focus-visible, html.cui-os .cui-treepick:focus-visible { outline: none; box-shadow: var(--cui-os-focus); }
html.cui-os .cui-sidefoot { gap: calc(5 * var(--cui-os-u)); padding: calc(8 * var(--cui-os-u)) calc(10 * var(--cui-os-u)) 0; font-size: var(--cui-os-type-sm); color: var(--cui-os-quiet); }
html.cui-os .cui-seg.cui-sidetabs:not(.cui-across) { gap: calc(2 * var(--cui-os-u)); padding: calc(12 * var(--cui-os-u)) calc(10 * var(--cui-os-u)); border: 0;
  border-right: var(--cui-os-u) solid var(--cui-os-line); background: var(--cui-os-side); }
html.cui-os table.cui-lv { border-collapse: separate; border-spacing: 0 calc(2 * var(--cui-os-u)); font-family: var(--cui-os-text-font); font-size: var(--cui-os-type); }
/* a column's width is in the look's own unit, as its words are: a System 7 width on Oscar Platinum's smaller type */
html.cui-os .cui-lv { --cui-lvw: calc(1.3 * var(--cui-os-u)); }
html.cui-os .cui-lv th { height: calc(30 * var(--cui-os-u)); background: var(--cui-os-win); border: 0; box-shadow: none; }
html.cui-os .cui-lv .cui-sort { height: calc(30 * var(--cui-os-u)); font: inherit; }
html.cui-os .cui-lv .cui-sort.cui-on .cui-lvlabel { color: var(--cui-os-ink); }
html.cui-os .cui-lv .cui-tri { image-rendering: auto; filter: var(--cui-glyph); }
html.cui-os .cui-lv td { height: calc(34 * var(--cui-os-u)); color: var(--cui-os-quiet); }
html.cui-os .cui-lv td:first-child { color: var(--cui-os-ink); }
/* #2701: a row's second line is the look's small type, under the name's, never System 7's larger --cui-type-9 */
html.cui-os .cui-lvsub { font-size: var(--cui-os-type-sm); color: var(--cui-os-quiet); }
html.cui-os .cui-lv th:first-child, html.cui-os .cui-lv td:first-child { padding-left: calc(10 * var(--cui-os-u)); }
html.cui-os .cui-lv th:last-child, html.cui-os .cui-lv td:last-child { padding-right: calc(10 * var(--cui-os-u)); }
html.cui-os .cui-lv td:first-child { border-radius: calc(9 * var(--cui-os-u)) 0 0 calc(9 * var(--cui-os-u)); }
html.cui-os .cui-lv td:last-child { border-radius: 0 calc(9 * var(--cui-os-u)) calc(9 * var(--cui-os-u)) 0; }
html.cui-os .cui-lv td:only-child { border-radius: calc(9 * var(--cui-os-u)); }
html.cui-os .cui-lv .cui-lvcell > .cui-icon { width: calc(16 * var(--cui-os-u)); height: calc(16 * var(--cui-os-u)); filter: var(--cui-glyph); }
html.cui-os .cui-lv.cui-lines td { box-shadow: inset 0 calc(-1 * var(--cui-os-u)) 0 var(--cui-os-line); border-radius: 0; }
html.cui-os .cui-lv tbody tr:hover:not(.cui-on):not(.cui-lvdetail) td { background: var(--cui-os-hover); }
html.cui-os .cui-lv tbody tr.cui-on td, html.cui-os .cui-lv tbody tr.cui-drop td { background: var(--cui-os-dark); color: var(--cui-os-dark-ink); }
html.cui-os .cui-lv tbody tr.cui-on img, html.cui-os .cui-lv tbody tr.cui-drop img { filter: var(--cui-glyph-on); }
html.cui-os .cui-lv tbody tr:focus-visible td, html.cui-os .cui-lv tbody tr:focus-visible td:first-child, html.cui-os .cui-lv tbody tr:focus-visible td:last-child,
html.cui-os .cui-lv tbody tr.cui-on:focus-visible td { box-shadow: inset 0 calc(2 * var(--cui-os-u)) 0 var(--cui-os-size), inset 0 calc(-2 * var(--cui-os-u)) 0 var(--cui-os-size); }
html.cui-os .cui-lv tbody tr.cui-lvdetail td { background: var(--cui-os-win); color: var(--cui-os-ink); box-shadow: none; border-radius: 0; }
html.cui-os .cui-disc > .cui-icon { image-rendering: auto; filter: var(--cui-glyph); }
html.cui-os .cui-sheet { background: var(--cui-os-bar); border: 0; border-radius: 0 0 var(--cui-os-radius-win) var(--cui-os-radius-win);
  box-shadow: var(--cui-os-shadow-win); overflow: hidden; font-family: var(--cui-os-text-font); color: var(--cui-os-ink); }
html.cui-os .cui-sheet > .cui-sheethead, html.cui-os .cui-sheet > .cui-toolbar:first-child {
  gap: calc(10 * var(--cui-os-u)); padding: calc(12 * var(--cui-os-u)) calc(14 * var(--cui-os-u)); border-bottom: var(--cui-os-u) solid var(--cui-os-line); background: var(--cui-os-tint-3); }
html.cui-os .cui-sheetbody { gap: calc(10 * var(--cui-os-u)); padding: calc(14 * var(--cui-os-u)); }
html.cui-os .cui-sheetfoot { gap: calc(8 * var(--cui-os-u)); padding: calc(10 * var(--cui-os-u)) calc(12 * var(--cui-os-u)); border-top: var(--cui-os-u) solid var(--cui-os-line); }
html.cui-os.dev-phone .cui-sheet, html.cui-os body.tv .cui-sheet, html.cui-os .cui-sheet.cui-phone { top: auto; height: min(70%, calc(410 * var(--cui-os-u))); width: 100%;
  border-radius: calc(26 * var(--cui-os-u)) calc(26 * var(--cui-os-u)) 0 0;
  box-shadow: 0 calc(-20 * var(--cui-os-u)) calc(40 * var(--cui-os-u)) calc(-20 * var(--cui-os-u)) var(--cui-os-shade), 0 0 0 var(--cui-os-u) var(--cui-os-line); }
html.cui-os.dev-phone .cui-sheet::before, html.cui-os body.tv .cui-sheet::before, html.cui-os .cui-sheet.cui-phone::before { content: ''; flex: none; align-self: center; width: calc(40 * var(--cui-os-u));
  height: calc(5 * var(--cui-os-u)); margin: calc(8 * var(--cui-os-u)) 0 calc(2 * var(--cui-os-u)); border-radius: calc(3 * var(--cui-os-u)); background: var(--cui-os-edge); }
/* M1's phone sheet draws no line over its foot */
html.cui-os.dev-phone .cui-sheet > .cui-sheetfoot, html.cui-os .cui-sheet.cui-phone > .cui-sheetfoot { border-top: 0; }
html.cui-os.dev-phone .cui-sheet > .cui-toolbar:first-child, html.cui-os.dev-phone .cui-sheet > .cui-sheethead, html.cui-os .cui-sheet.cui-phone > .cui-sheethead { background: transparent; border-bottom: 0; }
html.cui-os.dev-phone .cui-sheet > :last-child { padding-bottom: calc(10 * var(--cui-os-u) + env(safe-area-inset-bottom, 0px)); }

/* slice 5 (#2689): the card under Oscar's greeting (canvas P1, by Mini Oscar) */
html.cui-os .cui-asks { gap: calc(8 * var(--cui-os-u)); padding: calc(10 * var(--cui-os-u)) calc(12 * var(--cui-os-u)); border: 0; border-radius: var(--cui-os-radius-card);
  background: var(--cui-os-card); color: var(--cui-os-ink); box-shadow: var(--cui-os-shadow-card); font-family: var(--cui-os-text-font); }
html.cui-os .cui-askrow { gap: calc(8 * var(--cui-os-u)); }
html.cui-os .cui-askrow > .cui-asktile { width: calc(26 * var(--cui-os-u)); height: calc(26 * var(--cui-os-u)); }
html.cui-os .cui-asktitle { font-weight: 500; font-size: calc(13 * var(--cui-os-u)); }
html.cui-os .cui-askdetail { font-size: calc(11 * var(--cui-os-u)); color: var(--cui-os-quiet); }

/* slice 5, the controls as the canvas draws them (Connections, Updates, Calendar, the Bridge's tray menu, the wizard's
   window). A switch: a pill green when on, its white knob at the right (L1, L2) */
html.cui-os .cui-switchrow { gap: calc(10 * var(--cui-os-u)); font-family: var(--cui-os-text-font); font-size: var(--cui-os-type); color: var(--cui-os-ink); }
html.cui-os .cui-switchrow.cui-disabled { color: var(--cui-os-faint); }
html.cui-os .cui-switch { width: calc(38 * var(--cui-os-u)); height: calc(22 * var(--cui-os-u)); border: 0; border-radius: calc(11 * var(--cui-os-u));
  background: var(--cui-os-edge); transition: background-color .15s; }
html.cui-os .cui-switch > .cui-knob { left: calc(3 * var(--cui-os-u)); top: calc(3 * var(--cui-os-u)); width: calc(16 * var(--cui-os-u));
  height: calc(16 * var(--cui-os-u)); background: var(--cui-os-knob); transition: left .15s; }
html.cui-os .cui-switch[aria-checked="true"] { background: var(--cui-os-on); }
html.cui-os .cui-switch[aria-checked="true"] > .cui-knob { left: calc(19 * var(--cui-os-u)); background: var(--cui-os-knob); }
html.cui-os .cui-switch:disabled { opacity: var(--cui-os-faded); }
html.cui-os .cui-switch:disabled > .cui-knob { background: var(--cui-os-knob); }
html.cui-os .cui-switch:focus-visible { outline: none; box-shadow: var(--cui-os-focus); }
@media (prefers-reduced-motion: reduce) { html.cui-os .cui-switch, html.cui-os .cui-switch > .cui-knob { transition: none; } }
/* menus and the pop-ups that open one: the warm paper, round, its rows round and pale blue under the pointer, thin rules
   between groups (M2, the Bridge's tray menu) */
html.cui-os .cui-menu { padding: calc(6 * var(--cui-os-u)); border: 0; border-radius: calc(12 * var(--cui-os-u)); background: var(--cui-os-win);
  color: var(--cui-os-ink); font-family: var(--cui-os-text-font); font-size: var(--cui-os-type);
  box-shadow: 0 calc(20 * var(--cui-os-u)) calc(40 * var(--cui-os-u)) calc(-18 * var(--cui-os-u)) var(--cui-os-shade), 0 0 0 var(--cui-os-u) var(--cui-os-line); }
html.cui-os .cui-menuitem { gap: calc(10 * var(--cui-os-u)); min-height: calc(32 * var(--cui-os-u)); padding: calc(6 * var(--cui-os-u)) calc(12 * var(--cui-os-u));
  border-radius: calc(8 * var(--cui-os-u)); background: transparent; color: var(--cui-os-ink); font-family: inherit; font-size: inherit; }
html.cui-os .cui-menuitem:hover:not(:disabled), html.cui-os .cui-menuitem:focus, html.cui-os .cui-menuitem.cui-open,
html.cui-os .cui-menuitem.cui-open:hover { background: var(--cui-os-tint-6); color: var(--cui-os-ink); }
html.cui-os .cui-menuitem:hover:not(:disabled) img, html.cui-os .cui-menuitem:focus img { filter: var(--cui-glyph); }
html.cui-os .cui-menuitem:disabled { color: var(--cui-os-faint); }
html.cui-os .cui-menuitem.cui-strong { font-weight: 600; }
html.cui-os .cui-menuitem > .cui-mkey { color: var(--cui-os-quiet); }
html.cui-os .cui-menusep { height: var(--cui-os-u); margin: calc(4 * var(--cui-os-u)) calc(6 * var(--cui-os-u)); background: var(--cui-os-line); border: 0; }
/* segments and tabs: small pills in a soft track, the chosen one white and lifted (Calendar's Day, Week, Month). Only
   the tab set's own role: the breakdown bar's bands share the name cui-seg */
html.cui-os .cui-seg[role="tablist"]:not(.cui-sidetabs), html.cui-os .cui-tabs {
  gap: calc(2 * var(--cui-os-u)); padding: calc(3 * var(--cui-os-u)); border: 0; border-radius: var(--cui-os-radius-pill); background: var(--cui-os-track); }
html.cui-os .cui-tabs { display: inline-flex; flex-wrap: wrap; align-items: center; margin: 0 0 calc(10 * var(--cui-os-u)); }
html.cui-os .cui-seg[role="tablist"]:not(.cui-sidetabs) > .cui-segb, html.cui-os .cui-tabs > .cui-tab {
  height: var(--cui-os-btn-h-sm); min-width: 0; margin: 0; padding: 0 calc(11 * var(--cui-os-u)); border: 0; border-radius: var(--cui-os-radius-pill);
  background: transparent; color: var(--cui-os-ink); font-family: var(--cui-os-text-font); font-size: var(--cui-os-type-sm); font-weight: 500; }
html.cui-os .cui-seg[role="tablist"]:not(.cui-sidetabs) > .cui-segb:hover:not(:disabled):not(.cui-on),
html.cui-os .cui-tabs > .cui-tab:hover:not(.cui-on) { background: var(--cui-os-hover); }
html.cui-os .cui-seg[role="tablist"]:not(.cui-sidetabs) > .cui-segb.cui-on, html.cui-os .cui-tabs > .cui-tab.cui-on,
html.cui-os .cui-seg[role="tablist"]:not(.cui-sidetabs) > .cui-segb:active:not(:disabled) {
  background: var(--cui-os-card); color: var(--cui-os-ink); box-shadow: var(--cui-os-lift); }
html.cui-os .cui-seg[role="tablist"]:not(.cui-sidetabs) > .cui-segb.cui-on img, html.cui-os .cui-seg[role="tablist"]:not(.cui-sidetabs) > .cui-segb:active img { filter: var(--cui-glyph); }
html.cui-os .cui-seg[role="tablist"]:not(.cui-sidetabs) > .cui-segb:disabled { color: var(--cui-os-faint); }
html.cui-os .cui-seg[role="tablist"]:not(.cui-sidetabs) > .cui-segb:focus-visible, html.cui-os .cui-tabs > .cui-tab:focus-visible { outline: none; box-shadow: var(--cui-os-focus); }
html.cui-os .cui-tabs > .cui-tab::before, html.cui-os .cui-tabs > .cui-tab::after { content: none; }
/* System 7's end caps and the dither on a disabled one are its own: the pill draws neither */
html.cui-os .cui-seg[role="tablist"]:not(.cui-sidetabs) > .cui-segb::before, html.cui-os .cui-seg[role="tablist"]:not(.cui-sidetabs) > .cui-segb::after {
  content: none; border: 0; border-image: none; }
html.cui-os .cui-seg[role="tablist"]:not(.cui-sidetabs) > .cui-segb:disabled > * { -webkit-mask-image: none; mask-image: none; opacity: 1; }
/* progress bars: a thin round track, the fill in the working blue, amber near the limit and red at it; a bar whose
   length is not known runs blue stripes (Updates) */
html.cui-os .cui-progress { height: calc(6 * var(--cui-os-u)); border: 0; border-radius: calc(3 * var(--cui-os-u)); background: var(--cui-os-line); }
html.cui-os .cui-progress.cui-small { height: calc(4 * var(--cui-os-u)); border-radius: calc(2 * var(--cui-os-u)); }
html.cui-os .cui-progress.cui-large { height: calc(8 * var(--cui-os-u)); border-radius: calc(4 * var(--cui-os-u)); }
html.cui-os .cui-progress > .cui-fill { border-radius: inherit; background: var(--cui-os-rb-6); }
html.cui-os .cui-progress.cui-near > .cui-fill { background: var(--cui-os-rb-2); }
html.cui-os .cui-progress.cui-full > .cui-fill { background: var(--cui-os-rb-4); }
html.cui-os .cui-progress.cui-run > .cui-fill { image-rendering: auto; animation: cui-os-run 1s linear infinite;
  background: repeating-linear-gradient(-45deg, var(--cui-os-rb-6) 0 calc(6 * var(--cui-os-u)), var(--cui-os-run) calc(6 * var(--cui-os-u)) calc(12 * var(--cui-os-u)))
    0 0 / calc(17 * var(--cui-os-u)) calc(17 * var(--cui-os-u)); }
@media (prefers-reduced-motion: reduce) { html.cui-os .cui-progress.cui-run > .cui-fill { animation: none; } }
html.cui-os .cui-progress .cui-mark { top: calc(-2 * var(--cui-os-u)); bottom: calc(-2 * var(--cui-os-u)); width: calc(2 * var(--cui-os-u));
  background: var(--cui-os-ink); opacity: .45; box-shadow: none; }
/* dialogs and alerts: a window as the wizard's is drawn (A16), the rainbow strip on top, the words in the text face, the
   title centred over a thin rule and the buttons at the right of a ruled foot; a soft veil behind a modal one (P14) */
html.cui-os .cui-modal { background: var(--cui-os-scrim); }
html.cui-os .cui-alert { position: relative; gap: calc(12 * var(--cui-os-u)) calc(14 * var(--cui-os-u));
  padding: calc(20 * var(--cui-os-u)) calc(16 * var(--cui-os-u)) 0; border: 0;
  border-radius: 0 0 var(--cui-os-radius-win) var(--cui-os-radius-win); background: var(--cui-os-win); color: var(--cui-os-ink);
  box-shadow: var(--cui-os-shadow-win); font-family: var(--cui-os-text-font); }
html.cui-os .cui-alert::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: var(--cui-os-collar);
  background: linear-gradient(90deg, var(--cui-os-rb-1) 0 16.66%, var(--cui-os-rb-2) 0 33.33%, var(--cui-os-rb-3) 0 50%, var(--cui-os-rb-4) 0 66.66%,
    var(--cui-os-rb-5) 0 83.33%, var(--cui-os-rb-6) 0); }
html.cui-os .cui-alert .cui-atext { font-family: var(--cui-os-text-font); font-size: var(--cui-os-type); line-height: 1.45; color: var(--cui-os-ink); }
html.cui-os .cui-alert .cui-aicon { width: calc(32 * var(--cui-os-u)); height: calc(32 * var(--cui-os-u)); }
html.cui-os .cui-alert .cui-abuttons { gap: calc(8 * var(--cui-os-u)); margin: 0 calc(-16 * var(--cui-os-u)); padding: calc(10 * var(--cui-os-u)) calc(14 * var(--cui-os-u));
  border-top: var(--cui-os-u) solid var(--cui-os-line); }
html.cui-os .cui-dialog .cui-dtitle { margin: calc(-8 * var(--cui-os-u)) calc(-16 * var(--cui-os-u)) calc(12 * var(--cui-os-u)); padding: 0 calc(16 * var(--cui-os-u)) calc(8 * var(--cui-os-u));
  border-bottom: var(--cui-os-u) solid var(--cui-os-line); text-align: center; justify-content: center;
  font-family: var(--cui-os-ui-font); font-size: var(--cui-os-type-sm); color: var(--cui-os-ink); }
html.cui-os .cui-alert.cui-dialog { box-shadow: var(--cui-os-shadow-win); }
html.cui-os .cui-alert.cui-scheme-dream { box-shadow: inset 0 0 0 calc(2 * var(--cui-os-u)) var(--cui-dream), var(--cui-os-shadow-win); }
/* #2595: the recorder in the look: the coral dot beside the running time while it records */
html.cui-os .cui-recorder { gap: calc(10 * var(--cui-os-u)); }
html.cui-os .cui-recbar { gap: calc(10 * var(--cui-os-u)); }
html.cui-os .cui-rectime { font-family: var(--cui-os-text-font); font-size: var(--cui-os-type); color: var(--cui-os-ink); }
html.cui-os .cui-recdot { width: calc(10 * var(--cui-os-u)); height: calc(10 * var(--cui-os-u)); background: var(--cui-os-line); }
html.cui-os .cui-recorder.cui-recon .cui-recdot { background: var(--cui-os-coral); box-shadow: 0 0 0 calc(3 * var(--cui-os-u)) var(--cui-os-tint-4); }
html.cui-os .cui-recpreview { width: calc(240 * var(--cui-os-u)); border: 0; border-radius: var(--cui-os-radius-card); box-shadow: var(--cui-os-shadow-card); }
/* the position bar (seek): the thin round track the canvas's Music draws, the place filled in the working blue, what is
   loaded a shade darker, a round white knob at the place; a recording's moments are coral marks across it */
html.cui-os .cui-seek { height: calc(16 * var(--cui-os-u)); border: 0; background: none; image-rendering: auto; }
html.cui-os .cui-seek::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: calc(6 * var(--cui-os-u));
  margin-top: calc(-3 * var(--cui-os-u)); border-radius: calc(3 * var(--cui-os-u)); background: var(--cui-os-line); }
html.cui-os .cui-seek .buf { top: 50%; bottom: auto; height: calc(6 * var(--cui-os-u)); margin-top: calc(-3 * var(--cui-os-u));
  border-radius: calc(3 * var(--cui-os-u)); background: var(--cui-os-edge); }
html.cui-os .cui-seek .fill { display: block; position: absolute; left: 0; top: 50%; bottom: auto; height: calc(6 * var(--cui-os-u));
  margin-top: calc(-3 * var(--cui-os-u)); border-radius: calc(3 * var(--cui-os-u)); background: var(--cui-os-rb-6); pointer-events: none; }
html.cui-os .cui-seek .thumb, html.cui-os.dev-phone .vctl .cui-seek .thumb { top: 50%; bottom: auto; width: calc(14 * var(--cui-os-u)); height: calc(14 * var(--cui-os-u));
  margin-top: calc(-7 * var(--cui-os-u)); left: calc(var(--at, 0) * (100% - 14 * var(--cui-os-u))); border-radius: 50%; background: var(--cui-os-knob);
  box-shadow: 0 0 0 var(--cui-os-u) var(--cui-os-edge), var(--cui-os-shadow-btn); z-index: 1; }
html.cui-os .cui-seek .sbub { padding: calc(2 * var(--cui-os-u)) calc(8 * var(--cui-os-u)); border: 0; border-radius: var(--cui-os-radius-pill);
  background: var(--cui-os-dark); color: var(--cui-os-dark-ink); box-shadow: var(--cui-os-shadow-float); font-family: var(--cui-os-text-font); font-size: var(--cui-os-type-sm); }
html.cui-os .cui-seekmark { top: 50%; bottom: auto; width: calc(4 * var(--cui-os-u)); height: calc(12 * var(--cui-os-u));
  margin: calc(-6 * var(--cui-os-u)) 0 0 calc(-2 * var(--cui-os-u)); border-radius: calc(2 * var(--cui-os-u)); background: var(--cui-os-coral); }
html.cui-os .cui-seekmark:focus-visible { outline: none; box-shadow: var(--cui-os-focus); }
/* #2595: the Unlock card in the look: a white card, the padlock on a warm round tint, the field and Unlock in a row */
html.cui-os .cui-unlock { gap: calc(10 * var(--cui-os-u)); padding: calc(20 * var(--cui-os-u)); border: 0; border-radius: var(--cui-os-radius-card);
  background: var(--cui-os-card); color: var(--cui-os-ink); box-shadow: var(--cui-os-shadow-card); font-family: var(--cui-os-text-font); font-size: var(--cui-os-type); }
html.cui-os .cui-unlockmark { display: flex; align-items: center; justify-content: center; width: calc(44 * var(--cui-os-u)); height: calc(44 * var(--cui-os-u));
  border-radius: 50%; background: var(--cui-os-tint-2); }
html.cui-os .cui-unlockmark > .cui-icon { width: calc(22 * var(--cui-os-u)); height: calc(22 * var(--cui-os-u)); filter: var(--cui-glyph); }
html.cui-os .cui-unlocktitle { font-weight: 600; font-size: var(--cui-os-type-md); }
html.cui-os .cui-unlockwords { color: var(--cui-os-quiet); }
html.cui-os .cui-unlockrow { gap: calc(8 * var(--cui-os-u)); }
html.cui-os .cui-unlocknote { color: var(--cui-os-fail-ink); }

/* Oscar Platinum's own look of slice 6's phone parts; their layout, in every look, is before the Oscar Platinum section */

/* Oscar Platinum: as M1 draws them */
html.cui-os .cui-phonebar { font-family: var(--cui-os-ui-font); font-size: calc(15 * var(--cui-os-ph)); color: var(--cui-os-ink);
  background: var(--cui-os-glass); border-bottom: 1px solid var(--cui-os-glass-edge); }
html.cui-os .cui-phonebtn, html.cui-os .cui-needsrow, html.cui-os .cui-winpill, html.cui-os .cui-appgriditem { color: var(--cui-os-ink); }
html.cui-os .cui-phonebtn:focus-visible, html.cui-os .cui-phonelogo:focus-visible, html.cui-os .cui-phonetitle:focus-visible,
html.cui-os .cui-needsrow:focus-visible, html.cui-os .cui-appgriditem:focus-visible, html.cui-os .cui-winpill:focus-visible { outline: none; box-shadow: var(--cui-os-focus); }
html.cui-os .cui-count { min-width: calc(16 * var(--cui-os-ph)); height: calc(16 * var(--cui-os-ph));
  padding: 0 calc(4 * var(--cui-os-ph)); box-sizing: border-box; border: 0; border-radius: calc(8 * var(--cui-os-ph)); background: var(--cui-os-rb-4); color: var(--cui-os-pip-ink);
  font: 500 calc(10 * var(--cui-os-ph)) / calc(16 * var(--cui-os-ph)) var(--cui-os-text-font); text-align: center; }
html.cui-os .cui-count.cui-count-in { line-height: calc(16 * var(--cui-os-ph)); }
html.cui-os .cui-rainbowstrip { background: linear-gradient(90deg, var(--cui-os-rb-1) 0 16.66%, var(--cui-os-rb-2) 0 33.33%, var(--cui-os-rb-3) 0 50%,
  var(--cui-os-rb-4) 0 66.66%, var(--cui-os-rb-5) 0 83.33%, var(--cui-os-rb-6) 0); }
html.cui-os .cui-bubble { font-family: var(--cui-os-text-font); font-size: calc(15 * var(--cui-os-ph)); }
html.cui-os .cui-bubble-o { border: 0; background: var(--cui-os-card); color: var(--cui-os-ink);
  border-radius: calc(16 * var(--cui-os-ph)) calc(16 * var(--cui-os-ph)) calc(16 * var(--cui-os-ph)) calc(5 * var(--cui-os-ph)); box-shadow: 0 0 0 1px var(--cui-os-line); }
html.cui-os .cui-bubble-me { background: var(--cui-os-dark); color: var(--cui-os-dark-ink);
  border-radius: calc(16 * var(--cui-os-ph)) calc(16 * var(--cui-os-ph)) calc(5 * var(--cui-os-ph)) calc(16 * var(--cui-os-ph)); }
html.cui-os .cui-allowcard, html.cui-os .cui-needsrow, html.cui-os .cui-clockcard, html.cui-os .cui-weathercard {
  border: 0; border-radius: var(--cui-os-radius-card); background: var(--cui-os-card); color: var(--cui-os-ink); box-shadow: var(--cui-os-shadow-card);
  font-family: var(--cui-os-text-font); font-size: calc(15 * var(--cui-os-ph)); }
html.cui-os .cui-allowwords > b, html.cui-os .cui-needswords > b { font-weight: 500; }
html.cui-os .cui-allowdetail, html.cui-os .cui-needsdetail, html.cui-os .cui-weatherplace { color: var(--cui-os-quiet); }
html.cui-os .cui-btn.cui-phoneans { height: var(--cui-os-phone-touch); padding: 0 calc(14 * var(--cui-os-ph)); font-size: calc(13 * var(--cui-os-ph)); }
html.cui-os .cui-helperline { font-family: var(--cui-os-text-font); color: var(--cui-os-work-ink); }
html.cui-os .cui-composerpill { border: 0; background: var(--cui-os-card); box-shadow: 0 0 0 1px var(--cui-os-edge); }
html.cui-os .cui-composerfield { font-family: var(--cui-os-text-font); font-size: calc(15 * var(--cui-os-ph)); color: var(--cui-os-ink); }
html.cui-os .cui-composerfield::placeholder { color: var(--cui-os-faint); }
html.cui-os .cui-phonebtn.cui-round { border: 0; background: var(--cui-os-card); box-shadow: 0 0 0 1px var(--cui-os-edge); }
html.cui-os .cui-phonebtn.cui-tone-coral { background: var(--cui-os-coral); color: var(--cui-os-coral-ink); }
html.cui-os .cui-clocktime { font-family: var(--cui-os-ui-font); color: transparent;
  background: repeating-linear-gradient(to bottom, var(--cui-os-ink) 0 calc(6 * var(--cui-os-ph)), transparent calc(6 * var(--cui-os-ph)) calc(10 * var(--cui-os-ph)));
  -webkit-background-clip: text; background-clip: text; }
html.cui-os .cui-clockday { font-family: var(--monaco); color: var(--cui-os-quiet); }
html.cui-os .cui-weathersun { background: repeating-linear-gradient(to bottom, var(--cui-os-rb-2) 0 calc(4 * var(--cui-os-ph)), transparent calc(4 * var(--cui-os-ph)) calc(7 * var(--cui-os-ph))); }
html.cui-os .cui-appgriditem { font-family: var(--cui-os-text-font); }
html.cui-os .cui-winstrip { background: var(--cui-os-glass); border-top: 1px solid var(--cui-os-glass-edge); }
html.cui-os .cui-winpill { border: 0; background: var(--cui-os-card); box-shadow: 0 0 0 1px var(--cui-os-line); font-family: var(--cui-os-text-font); }
/* slice 6's three phones in the gallery: their layout is before the Oscar Platinum section */
html.cui-os .cuig-phone { border: 0; box-shadow: 0 0 0 1px var(--cui-os-line); background: var(--cui-os-win); font-family: var(--cui-os-text-font); color: var(--cui-os-ink); }
html.cui-os .cuig-phone-desk { background: radial-gradient(circle, var(--cui-os-desk-dot) 1px, transparent 1.4px) 0 0 / 10px 10px,
  linear-gradient(160deg, var(--cui-os-desk), var(--cui-os-desk-2)); }
html.cui-os .cuig-helpersbtn { color: var(--cui-os-work-ink); }
html.cui-os .cuig-phone .cui-sheet > .cui-sheethead { font-family: var(--cui-os-ui-font); font-size: calc(16 * var(--cui-os-ph)); }
/* ---- #2667 the sign-in and lock screen, CUI.lockScreen (canvas P2-Lock by day, P2b-Lock-Night at night). The canvas's
 * 1280 x 720 stage is laid out in its own design units, sized to the screen it is on (container units), so the arc,
 * the plate and the clock keep the canvas's places on any computer; the sky and the arc reach every edge. Every colour
 * is a --cui-os-lock-* token: day here, night in the Oscar Platinum theme's dark set. */
html.cui-os .cui-px { display: inline-block; flex: none; width: calc(16 * var(--cui-os-u)); height: calc(16 * var(--cui-os-u));
  background: currentColor; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
html.cui-os .cui-lock { position: relative; width: 100%; height: 100%; overflow: hidden; overflow: clip; container-type: size; box-sizing: border-box;
  font-family: var(--plexsans); color: var(--cui-os-ink); -webkit-user-select: none; user-select: none;
  background: radial-gradient(circle, var(--cui-os-lock-star-1) 1px, transparent 1.5px) 0 0 / 97px 83px,
    radial-gradient(circle, var(--cui-os-lock-star-2) 1px, transparent 1.6px) 40px 30px / 151px 127px,
    linear-gradient(180deg, var(--cui-os-lock-sky-1), var(--cui-os-lock-sky-2)); }
html.cui-os .cui-lockstage { --u: min(100cqw / 1280, 100cqh / 720); position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  font-size: calc(14 * var(--u)); }
html.cui-os .cui-lockframe { position: absolute; left: 50%; bottom: 0; width: calc(1280 * var(--u)); height: calc(720 * var(--u)); transform: translateX(-50%); }
/* the arc: six bands from blue inside to green outside, its centre below the foot, with fine scan lines over the bands */
html.cui-os .cui-lockarc, html.cui-os .cui-lockarc::after { position: absolute; left: 50%; top: calc(330 * var(--u)); width: calc(1180 * var(--u)); height: calc(1180 * var(--u));
  transform: translateX(-50%); border-radius: 50%; }
html.cui-os .cui-lockarc { background: radial-gradient(circle closest-side, var(--cui-os-lock-hole) 0 calc(340 * var(--u)),
  var(--cui-os-rb-6) calc(341 * var(--u)) calc(380 * var(--u)), var(--cui-os-rb-5) calc(381 * var(--u)) calc(420 * var(--u)),
  var(--cui-os-rb-4) calc(421 * var(--u)) calc(460 * var(--u)), var(--cui-os-rb-3) calc(461 * var(--u)) calc(500 * var(--u)),
  var(--cui-os-rb-2) calc(501 * var(--u)) calc(540 * var(--u)), var(--cui-os-rb-1) calc(541 * var(--u)) calc(580 * var(--u)), transparent calc(581 * var(--u))); }
html.cui-os .cui-lockarc::after { content: ""; left: 0; top: 0; transform: none;
  background: repeating-linear-gradient(to bottom, var(--cui-os-lock-scan) 0 calc(2 * var(--u)), transparent calc(2 * var(--u)) calc(6 * var(--u)));
  -webkit-mask: radial-gradient(circle closest-side, transparent calc(340 * var(--u)), black calc(341 * var(--u)) calc(580 * var(--u)), transparent calc(581 * var(--u)));
  mask: radial-gradient(circle closest-side, transparent calc(340 * var(--u)), black calc(341 * var(--u)) calc(580 * var(--u)), transparent calc(581 * var(--u))); }
html.cui-os .cui-lockhead .cui-px { width: calc(16 * var(--u)); height: calc(16 * var(--u)); }
html.cui-os .cui-lockhead { position: absolute; left: 0; right: 0; top: 0; height: calc(52 * var(--u)); display: flex; align-items: center;
  gap: calc(16 * var(--u)); padding: 0 calc(28 * var(--u)); box-sizing: border-box; font-size: calc(14 * var(--u)); color: var(--cui-os-quiet); }
html.cui-os .cui-locksys { font-family: var(--chicago); color: var(--cui-os-ink); }
html.cui-os .cui-lockgap { flex: 1; }
html.cui-os .cui-lockstat { display: inline-flex; align-items: center; gap: calc(6 * var(--u)); }
html.cui-os .cui-lockclock { position: absolute; left: 0; right: 0; top: calc(64 * var(--u)); display: flex; flex-direction: column; align-items: center; gap: calc(2 * var(--u)); }
html.cui-os .cui-locktime { font-weight: 500; font-size: calc(120 * var(--u)); line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums;
  background: repeating-linear-gradient(to bottom, var(--cui-os-ink) 0 .05em, transparent .05em .0834em);   /* 6 and 10 at the canvas's 120 */
  -webkit-background-clip: text; background-clip: text; color: transparent; }
html.cui-os .cui-lockdate { font-size: calc(17 * var(--u)); color: var(--cui-os-quiet); margin-top: calc(6 * var(--u)); }
html.cui-os .cui-lockplate { position: absolute; left: 50%; top: calc(296 * var(--u)); width: calc(290 * var(--u)); height: calc(290 * var(--u));
  transform: translateX(-50%); border-radius: 50%; background: var(--cui-os-lock-plate); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 calc(30 * var(--u)) calc(60 * var(--u)) calc(-30 * var(--u)) var(--cui-os-lock-plate-shade), 0 0 0 calc(10 * var(--u)) var(--cui-os-lock-halo); }
html.cui-os .cui-lockplate .cui-oscarlogo { display: block; flex: none; width: calc(192 * var(--u)); height: calc(232 * var(--u)); margin-top: calc(14 * var(--u)); transform: none; }
html.cui-os .cui-lockplate .cui-oscarlogo > img { object-fit: contain; }
html.cui-os .cui-lockgreetrow { position: absolute; left: 0; right: 0; top: calc(618 * var(--u)); display: flex; justify-content: center; }
html.cui-os .cui-lockgreet { font-family: var(--plexserif); font-weight: 300; font-size: calc(21 * var(--u)); background: var(--cui-os-lock-pill);
  padding: calc(7 * var(--u)) calc(20 * var(--u)); border-radius: var(--cui-os-radius-pill); }
html.cui-os .cui-lockpeople { position: absolute; left: calc(44 * var(--u)); top: calc(300 * var(--u)); display: flex; flex-direction: column; gap: calc(12 * var(--u)); }
html.cui-os .cui-lockperson.cui-plain { display: flex; align-items: center; gap: calc(12 * var(--u)); padding: calc(8 * var(--u)) calc(18 * var(--u)) calc(8 * var(--u)) calc(8 * var(--u));
  border: 0; border-radius: var(--cui-os-radius-pill); background: var(--cui-os-card); box-shadow: 0 0 0 var(--u) var(--cui-os-lock-ring), 0 calc(10 * var(--u)) calc(22 * var(--u)) calc(-18 * var(--u)) var(--cui-os-lock-drop); cursor: pointer;
  font: 500 calc(15 * var(--u)) var(--plexsans); color: var(--cui-os-ink); text-align: left; }
html.cui-os .cui-lockperson.cui-plain:focus-visible { outline: none; box-shadow: 0 0 0 var(--u) var(--cui-os-lock-ring), 0 calc(10 * var(--u)) calc(22 * var(--u)) calc(-18 * var(--u)) var(--cui-os-lock-drop), 0 0 0 calc(3 * var(--u)) var(--cui-os-size); }
html.cui-os .cui-lockdisc { width: calc(40 * var(--u)); height: calc(40 * var(--u)); border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  background: var(--cui-lock-tone, var(--cui-os-lock-guest-disc)); color: var(--cui-os-ink); font: calc(15 * var(--u)) var(--chicago); }
html.cui-os .cui-lockdisc .cui-px { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
html.cui-os .cui-lockwho { display: flex; flex-direction: column; align-items: flex-start; }
html.cui-os .cui-lockstatus { font-size: calc(12 * var(--u)); font-weight: 400; color: var(--cui-os-quiet); }
html.cui-os .cui-lockperson.cui-lockguest { border: var(--u) dashed var(--cui-os-faint); background: var(--cui-os-lock-guest-paper); box-shadow: none; }
html.cui-os .cui-lockguest .cui-lockdisc { color: var(--cui-os-lock-guest-ink); }
html.cui-os .cui-lockaway { position: absolute; right: calc(44 * var(--u)); top: calc(300 * var(--u)); width: calc(300 * var(--u)); display: flex; flex-direction: column; gap: calc(10 * var(--u)); }
html.cui-os .cui-locklabel { padding-left: calc(4 * var(--u)); font-family: var(--monaco); font-size: calc(11 * var(--u)); letter-spacing: .14em; text-transform: uppercase; color: var(--cui-os-quiet); }
html.cui-os .cui-lockcard { display: flex; align-items: flex-start; gap: calc(10 * var(--u)); padding: calc(10 * var(--u)) calc(12 * var(--u));
  border-radius: var(--cui-os-radius-card); background: var(--cui-os-card); box-shadow: 0 0 0 var(--u) var(--cui-os-lock-ring), 0 calc(10 * var(--u)) calc(22 * var(--u)) calc(-18 * var(--u)) var(--cui-os-lock-drop); }
html.cui-os .cui-lockcard .cui-apptile { width: calc(30 * var(--u)); height: calc(30 * var(--u)); flex: none; }
html.cui-os .cui-lockcardwords { display: flex; flex-direction: column; min-width: 0; }
html.cui-os .cui-lockcardwords b { font-weight: 500; font-size: calc(13 * var(--u)); }
html.cui-os .cui-lockcardwords span { font-size: calc(12 * var(--u)); color: var(--cui-os-quiet); }
/* asking: the sign-in form on a card under the plate, which moves up and smaller to make room */
html.cui-os .cui-lockask { position: absolute; left: 50%; top: calc(152 * var(--u)); margin-left: calc(-180 * var(--u)); width: calc(360 * var(--u)); box-sizing: border-box;
  max-height: calc(548 * var(--u)); overflow: auto; z-index: 1; padding: calc(18 * var(--u)) calc(20 * var(--u)); border-radius: var(--cui-os-radius-card);
  background: var(--cui-os-card); box-shadow: 0 0 0 var(--u) var(--cui-os-lock-ring), 0 calc(10 * var(--u)) calc(22 * var(--u)) calc(-18 * var(--u)) var(--cui-os-lock-drop), 0 calc(30 * var(--u)) calc(60 * var(--u)) calc(-30 * var(--u)) var(--cui-os-lock-plate-shade); }
html.cui-os .cui-lockasktitle { margin: 0 0 calc(12 * var(--u)); text-align: center; font: calc(17 * var(--u)) var(--chicago); color: var(--cui-os-ink); }
html.cui-os .cui-lockask .cui-field:not(.cui-digit), html.cui-os .cui-lockask input:not([type]):not(.cui-digit), html.cui-os .cui-lockask input[type="text"]:not(.cui-digit), html.cui-os .cui-lockask input[type="password"], html.cui-os .cui-lockask input[type="email"] { width: 100%; box-sizing: border-box; }
/* osdev-poc-7 (#2667 15498): a code's one-digit boxes keep their own size on the card, never a field's full width, and
 * twelve of them in their fours fit the card's width (Register's claim code) */
html.cui-os .cui-lockask .cui-field.cui-digit { width: calc(22 * var(--u)); height: calc(34 * var(--u)); font-size: calc(17 * var(--u)); }
html.cui-os .cui-lockask .cui-code { gap: calc(8 * var(--u)); justify-content: center; }
html.cui-os .cui-lockask .cui-codegroup { gap: calc(3 * var(--u)); }
/* what the card holds is drawn at the lock's own design size, in either look of the kit: its labels, ticks and words */
html.cui-os .cui-lockask { font-size: calc(14 * var(--u)); }
html.cui-os .cui-lockask label, html.cui-os .cui-lockask .cui-check > span, html.cui-os .cui-lockask p, html.cui-os .cui-lockask .cui-link, html.cui-os .cui-lockask .notice { font-size: calc(13 * var(--u)); }
/* a window's body handed to the card (Sign In's steps) is the card's own: no frame, padding or scroller of its own */
html.cui-os .cui-lockask > .wbody { position: static; overflow: visible; height: auto; padding: 0; margin: 0; background: none; border: 0; box-shadow: none; }
html.cui-os .cui-lockask .form { padding: 0; gap: calc(8 * var(--u)); }
/* review-gate-19: asking, the clock stays as P2 draws it, large and striped, a little higher; Oscar's plate and the
 * greeting give the card their place, so a whole form (Register: the code, two fields, two ticks, Create Account, then
 * Sign In and Recover Account) fits a 1280 by 800 screen, and a longer one scrolls inside the card */
html.cui-os .cui-lockasking .cui-lockclock { top: calc(30 * var(--u)); }
/* review-gate-23 (#2701 note 15859): Register on the stick, with its Magic Cast foot, scrolled and reached the foot of a
 * 1280 by 800 PC. Asking, the striped clock is a little smaller (92 of the design's 120), so the card starts at 152 and
 * holds 548 before it scrolls, ending 20 above the frame's foot. A phone keeps its own sizes below */
html.cui-os .cui-lockasking .cui-locktime { font-size: calc(92 * var(--u)); }
html.cui-os .cui-lockasking .cui-lockplate, html.cui-os .cui-lockasking .cui-lockgreetrow { display: none; }
html.cui-os .cui-lockask .cui-code { flex-wrap: nowrap; }
html.cui-os .cui-lockask .cui-field.cui-digit { min-width: 0; padding: 0; }
/* review-gate-21: the full lock is over everything but an alert: the say band (9500), a modeless window (8900), the
 * cbar (8500) and a full-screen player (10000) included; while it is up an alert, and the menus in it, come over it */
html.cui-os .cui-lock.cui-lockfull { position: fixed; left: 0; top: 0; right: 0; bottom: 0; width: auto; height: auto; z-index: 10010; }
html.cui-os:has(.cui-lockfull) .cui-modal { z-index: 10020; }
html.cui-os:has(.cui-lockfull) .cui-menu { z-index: 10030; }

/* ---- #2667 the desktop's widgets as the canvas draws them (P1): CUI.analogClock, CUI.stripedSun, and the widget cards
 * (widgets.js) on the warm glass with the canvas's clock, weather and Up next */
html.cui-os .cui-aclock { display: block; width: calc(150 * var(--cui-os-u)); height: calc(150 * var(--cui-os-u)); flex: none; }
html.cui-os .cui-aclock-face { fill: var(--cui-os-bar); stroke: var(--cui-os-ink); stroke-width: 2; }
html.cui-os .cui-aclock-tick { stroke: var(--cui-os-ink); stroke-width: 1; }
html.cui-os .cui-aclock-tick5 { stroke: var(--cui-os-ink); stroke-width: 3; }
html.cui-os .cui-aclock-hour { stroke: var(--cui-os-ink); stroke-width: 6; stroke-linecap: round; }
html.cui-os .cui-aclock-min { stroke: var(--cui-os-ink); stroke-width: 4; stroke-linecap: round; }
html.cui-os .cui-aclock-sec { stroke: var(--cui-os-close); stroke-width: 2; stroke-linecap: round; }
html.cui-os .cui-aclock-hub { fill: var(--cui-os-close); }
html.cui-os .cui-aclock-pin { fill: var(--cui-os-bar); }
html.cui-os .cui-sun { display: block; flex: none; width: calc(74 * var(--cui-os-u)); height: calc(74 * var(--cui-os-u)); border-radius: 50%;
  background: repeating-linear-gradient(to bottom, var(--cui-os-rb-2) 0 calc(6 * var(--cui-os-u)), var(--cui-os-rb-3) calc(6 * var(--cui-os-u)) calc(7 * var(--cui-os-u)),
    transparent calc(7 * var(--cui-os-u)) calc(10 * var(--cui-os-u))); }
html.cui-os .cui-stripe { background: repeating-linear-gradient(to bottom, var(--cui-os-ink) 0 .087em, transparent .087em .13em);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
/* ---- #2667 (osdev-poc-7 15381 item 2): the menu bar's own drop-downs (app.js #menus .mdrop, the desktop's File, Edit,
 * View and the app's menus) are the kit's menu in Oscar Platinum: the same paper, radius, rows and rules as .cui-menu,
 * a little below the frosted bar; never System 7's square frame, dotted rules or inverted row */
html.cui-os .mdrop { top: calc(var(--cui-os-menubar-h) + 4 * var(--cui-os-u)); min-width: calc(200 * var(--cui-os-u)); padding: calc(6 * var(--cui-os-u));
  border: 0; border-radius: calc(12 * var(--cui-os-u)); background: var(--cui-os-win); color: var(--cui-os-ink);
  font-family: var(--cui-os-text-font); font-size: var(--cui-os-type);
  box-shadow: 0 calc(20 * var(--cui-os-u)) calc(40 * var(--cui-os-u)) calc(-18 * var(--cui-os-u)) var(--cui-os-shade), 0 0 0 var(--cui-os-u) var(--cui-os-line); }
html.cui-os .mitem { gap: calc(10 * var(--cui-os-u)); height: auto; min-height: calc(32 * var(--cui-os-u)); padding: calc(6 * var(--cui-os-u)) calc(12 * var(--cui-os-u)) calc(6 * var(--cui-os-u)) calc(26 * var(--cui-os-u));
  border-radius: calc(8 * var(--cui-os-u)); color: var(--cui-os-ink); font-family: inherit; font-size: inherit; }
html.cui-os .mitem:hover:not(:disabled), html.cui-os .mitem:focus-visible, html.cui-os .mitem.cui-open { background: var(--cui-os-tint-6); color: var(--cui-os-ink); }
html.cui-os .mitem:hover:not(:disabled) .mcheck, html.cui-os .mitem:focus-visible .mcheck { filter: var(--cui-glyph); }
html.cui-os .mitem:disabled { color: var(--cui-os-faint); }
html.cui-os .mitem .mkey { color: var(--cui-os-quiet); }
html.cui-os .mcheck { left: calc(9 * var(--cui-os-u)); width: calc(10 * var(--cui-os-u)); height: calc(10 * var(--cui-os-u)); }
html.cui-os .msep { height: var(--cui-os-u); margin: calc(4 * var(--cui-os-u)) calc(6 * var(--cui-os-u)); background: var(--cui-os-line); }
html.cui-os .mhead, html.cui-os .mwho { padding: calc(6 * var(--cui-os-u)) calc(12 * var(--cui-os-u)) calc(2 * var(--cui-os-u)); height: auto; color: var(--cui-os-quiet);
  font-family: var(--monaco); font-size: calc(11 * var(--cui-os-u)); letter-spacing: .1em; text-transform: uppercase; font-weight: 400; }
html.cui-os .mitem.flash { background: var(--cui-os-card) !important; color: var(--cui-os-ink) !important; }

/* ---- #2667 the installer's and first-run's page, CUI.setupView (canvas L3-Installer) */
html.cui-os .cui-setup { position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 8000;   /* the whole screen, over the menu bar (5000), under an alert (9000) */
  display: flex; align-items: center; justify-content: center;
  padding: calc(40 * var(--cui-os-u)) calc(60 * var(--cui-os-u)); box-sizing: border-box; font-family: var(--plexsans); color: var(--cui-os-ink);
  background-color: var(--cui-os-desk); background-image: radial-gradient(circle, var(--cui-os-desk-dot) calc(1 * var(--cui-os-u)), transparent calc(1.4 * var(--cui-os-u))),
    linear-gradient(160deg, var(--cui-os-desk), var(--cui-os-desk-2)); background-size: calc(10 * var(--cui-os-u)) calc(10 * var(--cui-os-u)), 100% 100%; }
html.cui-os .cui-setupstrip, html.cui-os .cui-setupcollar { position: absolute; left: 0; right: 0; top: 0; height: calc(6 * var(--cui-os-u));
  background: linear-gradient(90deg, var(--cui-os-rb-1) 0 16.66%, var(--cui-os-rb-2) 0 33.33%, var(--cui-os-rb-3) 0 50%, var(--cui-os-rb-4) 0 66.66%, var(--cui-os-rb-5) 0 83.33%, var(--cui-os-rb-6) 0); }
html.cui-os .cui-setupcollar { height: var(--cui-os-collar); z-index: 1; }
html.cui-os .cui-setupwin { position: relative; display: flex; width: 100%; max-width: calc(1160 * var(--cui-os-u)); height: 100%; max-height: calc(640 * var(--cui-os-u)); overflow: hidden;
  background: var(--cui-os-win); border-radius: 0 0 var(--cui-os-radius-win) var(--cui-os-radius-win); box-shadow: var(--cui-os-shadow-win); }
html.cui-os .cui-setupside { flex: none; width: calc(250 * var(--cui-os-u)); display: flex; flex-direction: column; gap: calc(14 * var(--cui-os-u)); padding: calc(26 * var(--cui-os-u)) calc(14 * var(--cui-os-u)) calc(20 * var(--cui-os-u));
  box-sizing: border-box; background: var(--cui-os-side); border-right: var(--cui-os-u) solid var(--cui-os-line); }
html.cui-os .cui-setuphead { display: flex; align-items: center; gap: calc(8 * var(--cui-os-u)); padding: 0 calc(6 * var(--cui-os-u)); }
html.cui-os .cui-setuphead .cui-oscarlogo { width: calc(36 * var(--cui-os-u)); height: calc(42 * var(--cui-os-u)); flex: none; }
html.cui-os .cui-setuptitle { font: calc(16 * var(--cui-os-u)) var(--chicago); line-height: 1.15; max-width: calc(110 * var(--cui-os-u)); text-wrap: balance; }   /* L3: "Install / Oscar OS" in every browser */
html.cui-os .cui-setupsteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: calc(2 * var(--cui-os-u)); }
html.cui-os .cui-setupstep { display: flex; align-items: center; gap: calc(12 * var(--cui-os-u)); min-height: calc(40 * var(--cui-os-u)); padding: 0 calc(10 * var(--cui-os-u)); border-radius: calc(10 * var(--cui-os-u)); font-size: calc(14 * var(--cui-os-u)); }
html.cui-os .cui-setupstep.cui-setup-now { background: var(--cui-os-card); box-shadow: 0 0 0 var(--cui-os-u) var(--cui-os-hover), 0 calc(6 * var(--cui-os-u)) calc(12 * var(--cui-os-u)) calc(-10 * var(--cui-os-u)) var(--cui-os-shade); }
html.cui-os .cui-setupdisc { width: calc(22 * var(--cui-os-u)); height: calc(22 * var(--cui-os-u)); border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  font: 500 calc(11 * var(--cui-os-u)) var(--plexsans); background: var(--cui-os-queued); color: var(--cui-os-quiet); }
html.cui-os .cui-setup-done .cui-setupdisc { background: var(--cui-os-done-dot); color: var(--cui-os-card); }
html.cui-os .cui-setup-done .cui-setupdisc .cui-px { width: calc(13 * var(--cui-os-u)); height: calc(13 * var(--cui-os-u)); }
html.cui-os .cui-setup-now .cui-setupdisc { background: var(--cui-os-dark); color: var(--cui-os-dark-ink); }
html.cui-os .cui-setupdevice { margin-top: auto; display: flex; flex-direction: column; gap: calc(5 * var(--cui-os-u)); padding: calc(12 * var(--cui-os-u)); border-radius: var(--cui-os-radius-card);
  background: var(--cui-os-card); box-shadow: var(--cui-os-shadow-card); font-size: calc(12 * var(--cui-os-u)); }
html.cui-os .cui-setuplabel { font: calc(11 * var(--cui-os-u)) var(--monaco); letter-spacing: .14em; text-transform: uppercase; color: var(--cui-os-quiet); margin-bottom: calc(2 * var(--cui-os-u)); }
html.cui-os .cui-setuprow { display: flex; align-items: center; gap: calc(8 * var(--cui-os-u)); }
html.cui-os .cui-setuprow .cui-px { width: calc(14 * var(--cui-os-u)); height: calc(14 * var(--cui-os-u)); }
html.cui-os .cui-setupmain { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: calc(30 * var(--cui-os-u)) calc(28 * var(--cui-os-u)) calc(26 * var(--cui-os-u)); box-sizing: border-box; }
html.cui-os .cui-setuph { margin: 0; font: calc(28 * var(--cui-os-u)) var(--chicago); line-height: 1.15; }
html.cui-os .cui-setupsub { margin: calc(4 * var(--cui-os-u)) 0 0; color: var(--cui-os-quiet); font-size: calc(14 * var(--cui-os-u)); }
html.cui-os .cui-setupbody { flex: 1; min-height: 0; overflow: auto; margin-top: calc(20 * var(--cui-os-u)); }
html.cui-os .cui-setupfoot { flex: none; display: flex; align-items: center; gap: calc(12 * var(--cui-os-u)); margin-top: calc(16 * var(--cui-os-u)); }
html.cui-os .cui-setuposcar { display: flex; align-items: center; gap: calc(8 * var(--cui-os-u)); min-width: 0; flex: 1; }
html.cui-os .cui-setuphead-pic { display: block; width: calc(34 * var(--cui-os-u)); height: calc(40 * var(--cui-os-u)); flex: none; object-fit: contain; }
html.cui-os .cui-setupsay { padding: calc(9 * var(--cui-os-u)) calc(14 * var(--cui-os-u)); border-radius: calc(16 * var(--cui-os-u)); background: var(--cui-os-card); box-shadow: 0 0 0 var(--cui-os-u) var(--cui-os-line); font-size: calc(13 * var(--cui-os-u)); }
html.cui-os .cui-setupgap { flex: 1; }
html.cui-os .cui-setupacts { display: flex; align-items: center; gap: calc(10 * var(--cui-os-u)); flex: none; }
/* ---- #2667 (osdev-poc-7 15381 item 6): the bell's count as canvas P1 draws it, a small red rounded badge at the bell's
 * shoulder in the white ink, never System 7's black square */
html.cui-os .notebtn { position: relative; }
html.cui-os .notebtn .notecount { position: absolute; left: calc(9 * var(--cui-os-u)); top: calc(-1 * var(--cui-os-u)); min-width: calc(16 * var(--cui-os-u));
  height: calc(16 * var(--cui-os-u)); padding: 0 calc(4 * var(--cui-os-u)); box-sizing: border-box; border: 0; border-radius: calc(8 * var(--cui-os-u));
  background: var(--cui-os-badge); color: var(--cui-os-badge-ink); font: 500 calc(10 * var(--cui-os-u)) / calc(16 * var(--cui-os-u)) var(--plexsans); text-align: center; }
html.cui-os .notebtn.remind .notecount { background: var(--cui-os-badge); }
/* ---- #2667 (osdev-poc-7 15498): the lock on a phone. The canvas draws the lock at 1280 by 720 only; a portrait screen
 * gets the same parts stacked in a 390 by 844 frame: the clock, Oscar's plate, the greeting, the people in a row and
 * what came while away under them, the arc low behind. Asking, the clock and plate shrink to the top and the card
 * has the rest of the height, so a form's last button is on the screen. */
@container (max-aspect-ratio: 1 / 1) {
  html.cui-os .cui-lockstage { --u-ph: min(100cqw / 390, 100cqh / 844); --u: var(--u-ph); }
  html.cui-os .cui-lockframe { width: calc(390 * var(--u)); height: calc(844 * var(--u)); }
  html.cui-os .cui-lockhead { height: calc(44 * var(--u)); padding: 0 calc(16 * var(--u)); gap: calc(10 * var(--u)); white-space: nowrap; }
  html.cui-os .cui-lockhead > * { flex: none; }
  html.cui-os .cui-lockhead > .cui-lockdevice { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  html.cui-os .cui-lockhead > .cui-lockgap { flex: 1 1 0; min-width: 0; }
  html.cui-os .cui-lockarc { --u: calc(var(--u-ph) * .6); top: calc(940 * var(--u)); }
  html.cui-os .cui-lockclock { top: calc(70 * var(--u)); }
  html.cui-os .cui-locktime { font-size: calc(88 * var(--u)); }
  html.cui-os .cui-lockdate { font-size: calc(15 * var(--u)); }
  html.cui-os .cui-lockplate { top: calc(226 * var(--u)); width: calc(200 * var(--u)); height: calc(200 * var(--u)); }
  html.cui-os .cui-lockplate .cui-oscarlogo { width: calc(132 * var(--u)); height: calc(160 * var(--u)); margin-top: calc(10 * var(--u)); }
  html.cui-os .cui-lockgreetrow { top: calc(452 * var(--u)); }
  html.cui-os .cui-lockgreet { font-size: calc(18 * var(--u)); }
  html.cui-os .cui-lockpeople { left: calc(12 * var(--u)); right: calc(12 * var(--u)); top: calc(506 * var(--u)); flex-direction: row; flex-wrap: wrap; justify-content: center; gap: calc(8 * var(--u)); }
  html.cui-os .cui-lockperson.cui-plain { flex-direction: column; gap: calc(4 * var(--u)); width: calc(80 * var(--u)); padding: calc(8 * var(--u)) calc(4 * var(--u)); border-radius: calc(18 * var(--u)); text-align: center; }
  html.cui-os .cui-lockperson .cui-lockwho { align-items: center; min-width: 0; max-width: 100%; }
  html.cui-os .cui-lockperson .cui-lockwho > * { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html.cui-os .cui-lockperson .cui-lockstatus { font-size: calc(11 * var(--u)); }
  html.cui-os .cui-lockaway { left: calc(20 * var(--u)); right: calc(20 * var(--u)); top: auto; bottom: calc(16 * var(--u)); width: auto; }
  html.cui-os .cui-lockask { top: calc(240 * var(--u)); margin-left: calc(-179 * var(--u)); width: calc(358 * var(--u)); max-height: calc(592 * var(--u)); }
  html.cui-os .cui-lockasking .cui-lockplate { display: flex; }
  html.cui-os .cui-lockasking .cui-lockclock { top: calc(52 * var(--u)); }
  html.cui-os .cui-lockasking .cui-locktime { font-size: calc(44 * var(--u)); }
  html.cui-os .cui-lockasking .cui-lockplate { top: calc(132 * var(--u)); width: calc(88 * var(--u)); height: calc(88 * var(--u)); }
  html.cui-os .cui-lockasking .cui-lockplate .cui-oscarlogo { width: calc(58 * var(--u)); height: calc(70 * var(--u)); margin-top: calc(4 * var(--u)); }
  html.cui-os .cui-lockasking .cui-lockpeople, html.cui-os .cui-lockasking .cui-lockaway { display: none; }
}
/* ---- #2667 (osdev-poc-7 15498): setupView on a phone. The window is the whole screen under the rainbow strip: the
 * logo, the title and the steps as numbered discs in one row at the top (each step's name kept for a screen reader,
 * the current one's shown), no This Device card, and the page at the full width with Oscar's words over the buttons. */
@media (max-width: 700px) {
  html.cui-os .cui-setup { padding: calc(6 * var(--cui-os-u)) 0 0; align-items: stretch; }
  html.cui-os .cui-setupwin { flex-direction: column; max-width: none; max-height: none; border-radius: 0; }
  html.cui-os .cui-setupside { width: auto; flex: none; flex-direction: row; flex-wrap: wrap; align-items: center; gap: calc(8 * var(--cui-os-u)) calc(12 * var(--cui-os-u));
    padding: calc(14 * var(--cui-os-u)) calc(14 * var(--cui-os-u)) calc(10 * var(--cui-os-u)); border-right: 0; border-bottom: var(--cui-os-u) solid var(--cui-os-line); }
  html.cui-os .cui-setuphead { padding: 0; }
  html.cui-os .cui-setuphead .cui-oscarlogo { width: calc(26 * var(--cui-os-u)); height: calc(30 * var(--cui-os-u)); }
  html.cui-os .cui-setuptitle { max-width: none; font-size: calc(14 * var(--cui-os-u)); }
  html.cui-os .cui-setupsteps { flex-direction: row; flex-wrap: wrap; align-items: center; gap: calc(4 * var(--cui-os-u)); margin-left: auto; }
  html.cui-os .cui-setupstep { min-height: 0; padding: 0; gap: calc(6 * var(--cui-os-u)); background: none; box-shadow: none; }
  html.cui-os .cui-setupstep.cui-setup-now { background: none; box-shadow: none; }
  html.cui-os .cui-setupstep:not(.cui-setup-now) .cui-setupname { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  html.cui-os .cui-setupdevice { display: none; }
  html.cui-os .cui-setupmain { flex: 1; min-height: 0; padding: calc(16 * var(--cui-os-u)) calc(14 * var(--cui-os-u)) calc(14 * var(--cui-os-u)); }
  html.cui-os .cui-setuph { font-size: calc(22 * var(--cui-os-u)); }
  html.cui-os .cui-setupbody { margin-top: calc(14 * var(--cui-os-u)); }
  html.cui-os .cui-setupfoot { flex-wrap: wrap; gap: calc(10 * var(--cui-os-u)); }
  html.cui-os .cui-setuposcar { flex-basis: 100%; }
  html.cui-os .cui-setupacts { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
}
/* ---- #2667 (review-gate-19, osdev-poc-7 15381 item 5): Oscar Platinum's scroll bars, every one: a slim round thumb in
 * the faint ink on no track, Chromium's own (::-webkit-scrollbar) and the bar macbars.js draws in Firefox (.mbar),
 * never System 7's framed white thumb on its checker */
html.cui-os *::-webkit-scrollbar { width: calc(10 * var(--cui-os-u)); height: calc(10 * var(--cui-os-u)); }
html.cui-os .cui-sbprobe { width: calc(10 * var(--cui-os-u)); height: calc(10 * var(--cui-os-u)); }
html.cui-os *::-webkit-scrollbar-track, html.cui-os *::-webkit-scrollbar-track:vertical, html.cui-os *::-webkit-scrollbar-track:horizontal,
html.cui-os *::-webkit-scrollbar-corner { background: transparent; box-shadow: none; border-width: 0; }
html.cui-os *::-webkit-scrollbar-thumb, html.cui-os *::-webkit-scrollbar-thumb:vertical, html.cui-os *::-webkit-scrollbar-thumb:horizontal {
  background: var(--cui-os-faint); background-clip: padding-box; border: calc(2 * var(--cui-os-u)) solid transparent; border-radius: calc(8 * var(--cui-os-u)); box-shadow: none; }
html.cui-os .mbar, html.cui-os .mbar-v, html.cui-os .mbar-h { background: transparent; box-shadow: none; border-width: 0; }
html.cui-os .mthumb { background: var(--cui-os-faint); border: 0; border-radius: calc(8 * var(--cui-os-u)); }
html.cui-os .mbar-v .mthumb { left: calc(2 * var(--cui-os-u)); right: calc(2 * var(--cui-os-u)); }
html.cui-os .mbar-h .mthumb { top: calc(2 * var(--cui-os-u)); bottom: calc(2 * var(--cui-os-u)); }
html.cui-os .mthumb::after { display: none; }
/* ---- #2667 (review-gate-19, 15381 item 4): a notice's icon is the canvas's pixel icon in Oscar Platinum, in its kind's
 * ink: a note quiet, done green, a caution amber, a stop red; System 7 keeps its own glyph */
html.cui-os .cui-notice > .cui-npx { display: block; order: -1; width: calc(20 * var(--cui-os-u)); height: calc(20 * var(--cui-os-u)); color: var(--cui-os-quiet); }
html.cui-os .cui-notice > .cui-nicon { display: none; }
html.cui-os .cui-notice.done > .cui-npx, html.cui-os .cui-notice.ok > .cui-npx { color: var(--cui-os-done-dot); }
html.cui-os .cui-notice.caution > .cui-npx { color: var(--cui-os-wait-ink); }
html.cui-os .cui-notice.stop > .cui-npx { color: var(--cui-os-fail-ink); }
/* ---- #2667 (osdev-poc-9 15570): setupOptions as canvas L3 draws its .opt cards: white round cards three to a row,
 * the picture on its tint 74 high, the name in Chicago, the quiet line, the chip top right, the chosen one ringed in
 * ink 2.5; one to a row on a phone */
html.cui-os .cui-setopts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(14 * var(--cui-os-u)); padding: calc(3 * var(--cui-os-u)); }   /* room for the chosen ring inside a scroller */
html.cui-os .cui-setopt { gap: calc(8 * var(--cui-os-u)); padding: calc(14 * var(--cui-os-u)); border: 0; border-radius: var(--cui-os-radius-card);
  background: var(--cui-os-card); box-shadow: 0 0 0 var(--cui-os-u) var(--cui-os-line); color: var(--cui-os-ink); font-family: var(--plexsans); }
html.cui-os .cui-setopt.cui-on { box-shadow: 0 0 0 calc(2.5 * var(--cui-os-u)) var(--cui-os-ink); }
html.cui-os .cui-setopt:focus-visible { outline: calc(2 * var(--cui-os-u)) solid var(--cui-os-focus, var(--cui-os-ink)); outline-offset: calc(3 * var(--cui-os-u)); }
html.cui-os .cui-setopt > .cui-chip { font-family: var(--plexsans); position: absolute; right: calc(12 * var(--cui-os-u)); top: calc(12 * var(--cui-os-u)); }
html.cui-os .cui-setill { display: flex; align-items: center; justify-content: center; gap: calc(8 * var(--cui-os-u)); height: calc(74 * var(--cui-os-u));
  border-radius: calc(10 * var(--cui-os-u)); color: var(--cui-os-ink); }
html.cui-os .cui-setill.cui-tint-1 { background: var(--cui-os-tint-1); } html.cui-os .cui-setill.cui-tint-2 { background: var(--cui-os-tint-2); }
html.cui-os .cui-setill.cui-tint-3 { background: var(--cui-os-tint-3); } html.cui-os .cui-setill.cui-tint-4 { background: var(--cui-os-tint-4); }
html.cui-os .cui-setill.cui-tint-5 { background: var(--cui-os-tint-5); } html.cui-os .cui-setill.cui-tint-6 { background: var(--cui-os-tint-6); }
html.cui-os .cui-setill .cui-setpic { width: calc(30 * var(--cui-os-u)); height: calc(30 * var(--cui-os-u)); }
html.cui-os .cui-setjoin { font: calc(20 * var(--cui-os-u)) var(--chicago); }
html.cui-os .cui-setdash { width: calc(26 * var(--cui-os-u)); border-top: calc(2 * var(--cui-os-u)) dashed var(--cui-os-ink); }
html.cui-os .cui-setname { font: calc(16 * var(--cui-os-u)) var(--chicago); font-weight: normal; }
html.cui-os .cui-setline { font-size: calc(13 * var(--cui-os-u)); color: var(--cui-os-quiet); line-height: 1.35; }
@media (max-width: 700px) { html.cui-os .cui-setopts { grid-template-columns: minmax(0, 1fr); } }
/* ---- #2667 (osdev-poc-11 15658): setupSettings and setupChips as canvas L3 draws them, in Oscar Platinum: the white
 * round card of rows split by a hairline, each with its icon in its band's ink, its name, its quiet line and a switch or
 * a quiet value at the right; then "Installs on" in spaced capitals and grey round-ended chips that wrap */
html.cui-os .cui-setsettings { display: flex; flex-direction: column; padding: calc(4 * var(--cui-os-u)) 0; border-radius: var(--cui-os-radius-card);
  background: var(--cui-os-card); box-shadow: var(--cui-os-shadow-card); color: var(--cui-os-ink); font-family: var(--plexsans); }
html.cui-os .cui-setsrow { display: flex; align-items: center; gap: calc(12 * var(--cui-os-u)); padding: calc(10 * var(--cui-os-u)) calc(16 * var(--cui-os-u)); position: relative; }
html.cui-os .cui-setsrow + .cui-setsrow::before { content: ""; position: absolute; left: calc(16 * var(--cui-os-u)); right: calc(16 * var(--cui-os-u)); top: 0;
  height: var(--cui-os-u); background: var(--cui-os-line); }
html.cui-os .cui-setsrow > .cui-setsicon { width: calc(18 * var(--cui-os-u)); height: calc(18 * var(--cui-os-u)); color: var(--cui-os-quiet); }
html.cui-os .cui-setsink-1 > .cui-setsicon { color: var(--cui-os-rb-1); } html.cui-os .cui-setsink-2 > .cui-setsicon { color: var(--cui-os-amber); }
html.cui-os .cui-setsink-3 > .cui-setsicon { color: var(--cui-os-rb-3); } html.cui-os .cui-setsink-4 > .cui-setsicon { color: var(--cui-os-rb-4); }
html.cui-os .cui-setsink-5 > .cui-setsicon { color: var(--cui-os-rb-5); } html.cui-os .cui-setsink-6 > .cui-setsicon { color: var(--cui-os-rb-6); }
html.cui-os .cui-setswords { display: flex; flex-direction: column; flex: 1; min-width: 0; }
html.cui-os .cui-setsname { font-weight: 500; font-size: calc(14 * var(--cui-os-u)); }
html.cui-os .cui-setsline { font-size: calc(12 * var(--cui-os-u)); color: var(--cui-os-quiet); }
html.cui-os .cui-setsvalue { flex: none; font-size: calc(12 * var(--cui-os-u)); color: var(--cui-os-quiet); }
html.cui-os .cui-setsrow > .cui-switchrow { flex: none; }
html.cui-os .cui-setchips { display: flex; flex-wrap: wrap; align-items: center; gap: calc(8 * var(--cui-os-u)); font-family: var(--plexsans); }
html.cui-os .cui-setchipslabel { margin-right: calc(4 * var(--cui-os-u)); font: calc(11 * var(--cui-os-u)) var(--monaco); letter-spacing: .14em; text-transform: uppercase; color: var(--cui-os-quiet); }
html.cui-os .cui-setchip { display: inline-flex; align-items: center; padding: calc(3 * var(--cui-os-u)) calc(9 * var(--cui-os-u)); border-radius: var(--cui-os-radius-pill);
  background: var(--cui-os-queued); color: var(--cui-os-queued-ink); font-size: calc(12 * var(--cui-os-u)); font-weight: 500; }
html.cui-os .cui-setupbody { display: flex; flex-direction: column; gap: calc(14 * var(--cui-os-u)); }   /* L3: the page's parts a little apart */
/* ---- #2667 (review-gate-21, canvas M1's Mail): an attachment in Oscar Platinum, a white round row: the file's pixel icon
 * in red, its name, its size quiet at the right; never System 7's framed box and paperclip */
html.cui-os .cui-att-file { display: flex; border: 0; border-radius: calc(12 * var(--cui-os-u)); background: var(--cui-os-card); box-shadow: var(--cui-os-shadow-card);
  padding: calc(10 * var(--cui-os-u)) calc(12 * var(--cui-os-u)); min-height: 0; font: calc(13 * var(--cui-os-u)) var(--plexsans); color: var(--cui-os-ink); }
html.cui-os .cui-att-file .cui-attopen { display: flex; align-items: center; gap: calc(10 * var(--cui-os-u)); flex: 1; min-width: 0; }
html.cui-os .cui-att-file .cui-attface { width: calc(18 * var(--cui-os-u)); height: calc(18 * var(--cui-os-u)); }
html.cui-os .cui-att-file .cui-attface > .cui-icon { display: none; }
html.cui-os .cui-att-file .cui-attface > .cui-attpx { display: block; width: calc(18 * var(--cui-os-u)); height: calc(18 * var(--cui-os-u)); color: var(--cui-os-rb-4); }
html.cui-os .cui-att-file .cui-attname { max-width: none; flex: 0 1 auto; }
html.cui-os .cui-att-file .cui-attsize { margin-left: auto; color: var(--cui-os-quiet); }
html.cui-os .cuig-mailread .cuig-talkline { font-size: calc(13 * var(--cui-os-ph)); }

/* ---- #2785 (Lloyd, 17 Nov): the installer's and boot menu's top is the kit's menu bar, not the strip: setupView's
 * o.bar is CUI.menuBar along the screen's top (logo, the app's name, its menus' titles, the clock at the right) on the
 * bar's glass; the page under it keeps its 40 of desk. And the rainbow top: a card's top edge carries the canvas
 * window's six-band collar, its top corners square (setupSettings, setupOptions { rainbowTop }, .cui-rainbowtop) */
html.cui-os .cui-setup-hasbar { padding-top: calc(var(--cui-os-menubar-h) + 40 * var(--cui-os-u)); }
html.cui-os .cui-setup.cuig-setupdemo.cui-setup-hasbar { padding-top: calc(var(--cui-os-menubar-h) + 20 * var(--cui-os-u)); }
html.cui-os .cui-setup > .cui-setupbar { position: absolute; left: 0; right: 0; top: 0; z-index: 2; box-sizing: border-box; }
html.cui-os .cui-setupbar .cui-mbar { align-self: stretch; min-height: 0; margin: 0 calc(-6 * var(--cui-os-u)); border: 0; background: transparent; }   /* the titles' own 6 of padding sits outside the bar's 20 gaps, so their words are where the desktop bar's are, and each title's ground stays whole inside its row */
html.cui-os .cui-setupbar .cui-mtitles { align-items: center; gap: calc(8 * var(--cui-os-u)); }
html.cui-os .cui-setupbar .cui-mtitle { height: calc(26 * var(--cui-os-u)); padding: 0 calc(6 * var(--cui-os-u)); margin: 0;
  border-radius: calc(6 * var(--cui-os-u)); background: transparent; color: var(--cui-os-menu-ink); font-family: var(--cui-os-ui-font); font-size: var(--cui-os-type); }
html.cui-os .cui-setupbar .cui-mtitle.cui-on, html.cui-os .cui-setupbar .cui-mtitle:active { background: var(--cui-os-hover); color: var(--cui-os-ink); }
html.cui-os .cui-setupbar .cui-mbarall { margin: 0; }
html.cui-os .cui-rainbowtop { position: relative; border-top-left-radius: 0; border-top-right-radius: 0; }
html.cui-os .cui-rainbowtop::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--cui-os-collar); z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--cui-os-rb-1) 0 16.66%, var(--cui-os-rb-2) 0 33.33%, var(--cui-os-rb-3) 0 50%, var(--cui-os-rb-4) 0 66.66%, var(--cui-os-rb-5) 0 83.33%, var(--cui-os-rb-6) 0); }
html.cui-os .cui-setsettings.cui-rainbowtop { padding-top: calc(var(--cui-os-collar) + 4 * var(--cui-os-u)); }
html.cui-os .cui-setopts.cui-rainbowtop { padding: calc(var(--cui-os-collar) + 14 * var(--cui-os-u)) calc(14 * var(--cui-os-u)) calc(14 * var(--cui-os-u));
  border-radius: 0 0 var(--cui-os-radius-card) var(--cui-os-radius-card); background: var(--cui-os-card); box-shadow: var(--cui-os-shadow-card); }
@media (max-width: 700px) {   /* a phone: the page's own head names the app, so the bar keeps the logo, the menus and the clock */
  html.cui-os .cui-setup-hasbar { padding-top: var(--cui-os-menubar-h); }
  html.cui-os .cui-setupbar .cui-menubar-app { display: none; } }
