/* The app's tokens, one source (2026-10-07, step 0 of Concepts/workflows/2610071200-ui-inventory: the palette was written four times, in canvas.html,
   library.html, home.html and the image studio). Every page links this file first, before ui.css, look.css and its own <style>; a page
   keeps in its own :root only what is its own (the board's --dot, the library's --on, the studio's --track) and writes no colour of
   the palette again. The values are the pages' own, unchanged.

   A part of a page can wear the other theme or shape (the primitives' showcase puts dark and light, round and pro side by side):
   data-hy-theme="dark|light" and data-hy-shape="round|pro" on any element redefine the same tokens under it. The page's own look
   stays on the root: data-theme, data-shape, data-shadow. */

/* Geist and Geist Mono from the app's own files (ui/fonts.css, owner 2026-10-07: no request to Google Fonts) */

/* Geist and Geist Mono, served from the app itself (owner 2026-10-07: the pages took 3-13 s to get the font from Google Fonts, and the app
   works offline). One variable file per script, weights 100-900; the browser fetches only the scripts a page's text uses (unicode-range).
   Files: review/design/ui/fonts/*.woff2, @fontsource-variable/geist 5.2.9 and geist-mono 5.2.8, SIL Open Font License 1.1 (OFL-*.txt there).
   tokens.css imports this file, so every page that has the app's tokens has the font; each page's --sans names the system fallbacks. */

@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,
    U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,
    U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/geist-cyrillic.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }

@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/geist-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }

@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/geist-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,
    U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/geist-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,
    U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/geist-mono-cyrillic.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }

@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/geist-mono-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }



/* the palette: light, dark by the system until the page sets its theme, dark */
:root, [data-hy-theme=light] {
  --bg: #f4f4f5; --panel: #ffffff; --raise: #f4f4f5; --ink: #09090b; --sub: #52525b; --muted: #a1a1aa; --line: #e4e4e7; --sel: #2563eb;
  --sans: "Geist", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --hy-sel-text: color-mix(in srgb, var(--sel) 38%, transparent);   /* selected words in a text being written: the letters read through */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #09090b; --panel: #0c0c0e; --raise: #18181b; --ink: #fafafa; --sub: #a1a1aa; --muted: #71717a; --line: #27272a; --sel: #3b82f6; }
}
:root[data-theme="dark"], [data-hy-theme=dark] { --bg: #09090b; --panel: #0c0c0e; --raise: #18181b; --ink: #fafafa; --sub: #a1a1aa; --muted: #71717a; --line: #27272a; --sel: #3b82f6; }
/* A code frame (the bug report's read-only packet, ui/bugreport.css .bug-code): one dark editor palette in both themes, like the picture of a
   3D scene; the frame's ground, its words and its rim, then its header ink, comments, line numbers and the syntax colours of the JSON and log views */
:root { --hy-code-bg: #0e0f12; --hy-code-ink: #c9d1d9; --hy-code-line: rgba(255,255,255,.08); }
:root { --hy-code-head: #8b949e; --hy-code-head-b: #e6edf3; --hy-code-cmt: #7d8590; --hy-code-ln: #484f58; }
/* a technical group: dark in both themes, as a code block (ui/techgroup.js, concept s1 2026-11-20: its ground 74 %) */
:root { --hy-tgroup-ground: rgba(5, 5, 7, .74); --hy-tgroup-area: rgba(255, 255, 255, .035); --hy-tgroup-node: #1c1c1f;
  --hy-tgroup-ink: #fafafa; --hy-tgroup-sub: #a1a1aa; --hy-tgroup-muted: #71717a; }
:root { --hy-code-kw: #79c0ff; --hy-code-str: #a5d6ff; --hy-code-num: #ffa657; --hy-code-lit: #ff7b72; --hy-code-err: var(--hy-code-lit); --hy-code-warn: #d29922; }

/* The five colours of meaning, one palette from the board's blue (owner 2026-10-27 on round 7 of «shell, one look», r7-colours decisions 7 A,
   9 B, 12 A: «все принимаю, но розовый беру B»; what each means, round 21, 2026-10-11): --hy-info happened, new, yours (the board's --sel);
   --hy-ok done, works, current; --hy-warn refused, disputed, missing; --hy-red failed, delete (the resets, a danger button, a count of
   errors); --hy-heart ♥. Every colour of meaning is one of them: a new hex of a meaning anywhere else fails scripts/validate.py meaning-color.
   The places' colours (the studios) and the note colours are sets of their own. */
:root, [data-hy-theme=dark] { --hy-info: var(--sel); --hy-ok: #22c55e; --hy-warn: #f5a524; --hy-red: #ff453a; }
:root[data-theme="light"], [data-hy-theme=light] { --hy-info: var(--sel); --hy-ok: #16a34a; --hy-warn: #b7791f; --hy-red: #d70015; }
/* a search hit and the current one, and the ink on them (⌘F: the rings and words on the board, the found comment pins, the list's marks) */
:root { --hy-found: #f5c84b; --hy-found-cur: #f59a3d; --hy-found-ink: #1b1403; }
:root { --hy-on-accent: #ffffff; }   /* words and marks on a solid accent (a count badge, a checked box) */
:root { --hy-heart: #ff2d6f; }   /* ♥ one pink everywhere (r7-colours 9 B): a card's mark (canvas.html .mk-fav, ui/cardfav.js), the library's ♥ filter, the viewer, the marks */
/* a live page: the ▶ of an HTML card's and an HTML frame's pill, and the whole pill while its page plays (ui/kinds.css, round 29 hp-play A) */
:root { --hy-live: var(--hy-ok); --hy-still: var(--hy-warn); }   /* --hy-still: a still of a page from another engine (round 46, the HTML frame's engine chip) */
/* a line along a card's edge: a video's time line (canvas.html .vbar) and a live page's loading line (ui/kinds.css .kline), over media
   in any theme; the shade lies under the loading line so it reads on a white page too */
:root { --hy-vline: #fff; --hy-vline-track: rgba(255,255,255,.3); --hy-vline-shade: rgba(0,0,0,.18); }
:root { --hy-caption-bg: rgba(8, 8, 10, .76); --hy-caption-ink: #fff; }
/* what lies under media, in either theme: a video's, a canvas preview's and a full screen's black, and the white paper of an HTML page or a
   PDF page before it draws (pages/htmlframes, Dev Studio's live page, media/ui/board-video.css) */
:root { --hy-media-bg: #000; --hy-page-bg: #fff; }
/* words on the warn colour (the library's question mark, the 3D card's waiting step): dark, as the amber is light in both themes */
:root { --hy-on-warn: #111; }   /* captions over a picture, in either theme (ui/captions.js, ui/nativevideo.js) */
/* an audio card and tile (ui/audiocard.js, ui/libaudio.js; review/media/audio.py draws its picture on the same ground): the ground and the file's name */
:root { --hy-wave-bg: #1c1c1f; --hy-wave-name: rgba(255,255,255,.72); }
/* the keyboard's focus ring, only on :focus-visible (round 20, owner 2026-10-11 ★ on misc-b.html P-23), in the place's colour (the board's
   blue, a studio's own). Since round 9 of «shell, one look» (r9-states 78 A, owner 2026-10-27, c25c7c3cf04: «кольцо выделения я бы делал
   потоньше… учитывая, что я… просил… иконки… более утонченными») 1.5 px INSIDE the shape: it never lies on a neighbour, a field and a card
   wear the same; on a filled blue button it is white (look.css). Was 2 px outside with a gap of 2 */
:root { --hy-focus-w: 1.5px; --hy-focus-ring: var(--hy-focus-w) solid var(--hy-sel, var(--sel)); --hy-focus-off: calc(-1 * var(--hy-focus-w)); }
/* what cannot be pressed now (r9-states 76 A): a thing without a fill of its own (an icon, a word, a menu row, a dock key) is the grey
   ink, whole; a thing with a fill (a blue button, a switch, a slider, a check) fades as a whole to .45, or its fill stays loud. The reason
   is in its tooltip, as Undo's «Nothing to undo». No other number in a :disabled rule (scripts/validate.py disabled-op) */
:root { --hy-dis-ink: var(--muted); --hy-dis-op: .45; }
/* the interface's field: a search, a text field, a reply box, a value button with its ⌄ (ui/hy/field.css). Round 14 of «shell, one look», sheet A
   (owner 2026-10-29: «Интерфейс: 2 Тихое поле, кнопка. Студии: как сейчас»): one quiet well a step LIGHTER than its ground, no border and no ring,
   in three steps of the ink: at rest 6.5 %, under the pointer about 8 %, while typing or open 11 %. Taken from the ink, so both themes have it.
   A place with another ground sets all three (the dock's pill); a studio keeps its dark well (--hy-well, field.css) */
/* a box one types in has no fill (owner 2026-11-11: «серое выделение полей… это точно нужно без цвета») */
:root, [data-hy-theme] { --hy-field: transparent; --hy-field-hov: transparent; --hy-field-foc: transparent; }
/* the tray a search and the agent's composer sit in (owner 2026-11-12: the search «был светлым бг… полупрозрачн[ым]», the chat's input area «в такой
   приятной плашке полупрозрачной»): the field's well of before the grid contract; a box one types in stays without a fill (--hy-field) */
:root, [data-hy-theme] { --hy-tray: color-mix(in srgb, var(--ink) 6.5%, transparent); --hy-tray-hov: color-mix(in srgb, var(--ink) 7.85%, transparent);
  --hy-tray-foc: color-mix(in srgb, var(--ink) 11%, transparent); }
/* a chosen tool (a dock's key, an icon button that is on): a light see-through plate, the glyph in ink, not the bright blue (owner 2026-11-12:
   «этот голубой ужасен просто глаза режет»; Concepts/html/panels-r1 mark 6 and redesign-r8: white at the chosen's lightness 12 % × 1.3).
   A place that marks its mode (a Studio's slot, a live page's bar) still sets --hy-dock-on to its colour */
:root, [data-hy-theme] { --hy-on-fill: color-mix(in srgb, var(--ink) 16%, transparent); --hy-on-ink: var(--ink); }
/* every small marker dot of the interface (new, unread, a status, a mode, a person) is one size, the pages menu's unread dot (owner 2026-11-13:
   «сами точки я бы сделал стандартного размера чуть более мелкими вот как эта»); list bullets, colour swatches, knobs and the board's own dots are not */
:root { --hy-dot-sz: 5px; }   /* 7 → 6 → 5 the same day: «точки всё ещё крупные нужно меньше», «все одинаковые стандартные» */
/* the one main action of a place (hy-button variant=accent, the top row's Share, a dialog's main answer): a light neutral plate with dark words in the
   dark theme, a dark one with light words in the light (owner 2026-11-12, «Yes, light grey»; panels-r1 mark 6, redesign-r8 primary 70 %). A Studio
   marks its mode: its root points --hy-pri at its colour (ui/modes.js, ui/studio.css) */
:root, [data-hy-theme] { --hy-pri: color-mix(in srgb, var(--ink) 70%, var(--panel)); --hy-pri-ink: var(--panel); }
/* a text field on the board (Info's description, the version's name): a dark well 32 tall with 9 px corners, no frame, the board's blue
   ring while typing, 1 px inside and half a pixel out (round 3 of «one look», r3-inputs decision 20 A, owner 2026-10-27, c974f65fcbc:
   «А полюбому»); the ring is written in each rule, as a field's border colour while typing (scripts/validate.py focus-ring) */
:root { --hy-tf-h: 32px; --hy-tf-r: 8px; }
/* a section's label in every panel, menu and window: one caps label, 11 / 500, .06em, the third step of ink (round 7 of «shell, one look»,
   r7-type 24 B, owner 2026-10-27); its count right after the word (25 B). A studio block's own head (ui/hy/block.css .hy-sh) stays in plain
   letters 12 / 500 (2026-10-09: «никогда не капс»). A rule with text-transform: uppercase takes these or fails validate.py caps-label */
:root { --hy-cap: 400 var(--hy-fs-11)/16px var(--sans); --hy-cap-ls: .06em; --hy-cap-ink: var(--muted); }
/* round 8 of «shell, one look», r8-type 50-53 A (owner 2026-10-27, note nxv2tr99, 152244-…png): one list row 30 high (menus, the right
   click, «?», the library's folders, the pages); a section label 14 above, 4 under, the first in a list 4 above; a side panel's title
   14 / 600; the grey part of a row (a count, a version, a note at the bottom of a panel, a menu row's step) one size, 11.5 */
:root { --hy-h-item: 28px; --hy-cap-above: var(--hy-sp-16); --hy-cap-below: 4px; --hy-cap-first: 4px; --hy-fs-grey: var(--hy-fs-11-5); }
/* one row for the left column's lists, the Library's folders and the Pages tab's pages (owner 2026-10-31: «у нас они должны быть все 3 едины»;
   design system round 2, hy-tree-row in Concepts/html/ds-shell-r2): its height, corner, a level's step, its sides and the gap in it */
:root { --hy-tree-h: var(--hy-h-item); --hy-tree-r: var(--hy-r-3); --hy-tree-step: 20px; --hy-tree-pad: var(--hy-sp-8); --hy-tree-gap: 8px; }
/* every pop-up, one surface (panels audit P-17, round 20, owner 2026-10-11): the right click, the pages, the library's view and filters, the
   path's «…», Open ▾, Home's menus. Its shadow is --hy-sh-pop, so «No shadows» takes it off everywhere */
:root { --hy-pop-r: var(--hy-r-4); --hy-pop-pad: var(--hy-sp-8); --hy-pop-blur: blur(18px) saturate(1.4); }
/* a pop-up that holds a body (a code, a field, buttons) instead of rows: 12 inset and 12 between its groups, 8 inside a group (--hy-gap-blk), the
   field --hy-tf-h / --hy-tf-r, a picture's tile --hy-well-r (the «On phone» popover, round 1, owner 2026-10-30, ticket rq5f2d0c7635: 3 a). The menu's
   own padding reads --hy-pop-pad, so such a pop-up sets --hy-pop-pad: var(--hy-pop-body) on itself (as #tfPop sets 10) */
:root { --hy-pop-body: var(--hy-sp-12); --hy-pop-gap: var(--hy-sp-12); } :root, [data-hy-theme] { --hy-pop-bg: color-mix(in srgb, var(--panel) 92%, transparent); }
/* the frosted glass of the top row's buttons and plates, the selection bar, the nudges (canvas.html, ui/hy/plate.css, button.css, nudge.css,
   back.css). Settings › Performance › «Glass blur on the interface» off (cv.glassui "0", data-noblur~=ui on the root, ui/look.css): no blur
   here, on the pop-ups or the side panels, and their ground a little more opaque, so their words stay readable over any picture */
:root { --hy-glass-blur: blur(14px); } :root, [data-hy-theme] { --hy-glass-bg: color-mix(in srgb, var(--panel) 82%, transparent); }
:root[data-noblur~=ui] { --hy-glass-blur: none; --hy-pop-blur: none; --hy-side-blur: none; }
:root[data-noblur~=ui], :root[data-noblur~=ui] [data-hy-theme] { --hy-glass-bg: color-mix(in srgb, var(--panel) 95%, transparent); --hy-pop-bg: var(--panel); --hy-side-bg: var(--panel); }
/* a person's avatar and the badge of the agent acting for him (ui/avatar.js, owner 2026-10-07): initials on the note colours, a colour per kind */
:root { --hy-av-ink: #1d1d1f; --hy-ag-claude: #d9774f; --hy-ag-codex: #4f86e8; --hy-ag-gemini: #9b76e8; --hy-ag-kimi: #2fa57f; --hy-ag-opencode: #d39a26;
  --hy-ag-agent: #7c7c86; }
/* the small depths of the primitives: a switch's knob, a swatch's rim against any paper */
:root { --hy-dot-ring: rgba(10, 10, 12, .9); --hy-knob-sh: 0 1px 3px rgba(0, 0, 0, .3); --hy-swatch-rim: rgba(0, 0, 0, .35); }

/* the plates' shadow (owner 2026-10-04, ui/look.css): on the dark paper (#17171a) a soft shadow hardly shows, it is deep and dark there,
   with a hairline of light along the plate's top */
:root, [data-hy-theme=dark] { --plate-sh-up: 0 14px 40px rgba(0, 0, 0, .72), 0 4px 12px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .05); }
:root[data-theme=light], [data-hy-theme=light] { --plate-sh-up: 0 10px 28px rgba(40, 30, 15, .13), 0 2px 6px rgba(40, 30, 15, .1); }
/* two depths for what floats over the board or the library (ui/ui.css): a control lying on the surface, a panel or a menu over it */
:root { --hy-sh-ctl-up: 0 1px 2px rgba(0,0,0,.10), 0 6px 18px rgba(0,0,0,.12); --hy-sh-pop-up: 0 2px 6px rgba(0,0,0,.10), 0 18px 48px rgba(0,0,0,.18); }
:root[data-theme="dark"] { --hy-sh-ctl-up: 0 1px 2px rgba(0,0,0,.40), 0 6px 18px rgba(0,0,0,.35); --hy-sh-pop-up: 0 2px 6px rgba(0,0,0,.35), 0 18px 48px rgba(0,0,0,.50); }
/* A shadow belongs to the part (owner 2026-11-03: «тень это часть компонента»). The setting «Тени» below is only the DEFAULT of every part: a part
   wears shadow="on" (a non-element: data-shadow="on") for its depth whatever the setting, shadow="off" for none, "auto" (no attribute) follows it.
   Who draws which depth (git grep "var(--hy-sh\|--plate-sh\|--hy-bar-sh", 2026-11-03):
     --plate-sh      hy-dialog, hy-tooltip; ui/look.css panels and menus; thread, settings, crop and debug panels; Frame Studio's plates
     --hy-sh-pop     hy-open-in, .hy-side, the sort lift .hy-lift; hyPalette menus; popovers and drawers (ui/ui.css); Home's cards; the board's panels
     --hy-sh-ctl     hy-apin; toasts and .pickbar; the find and timeline pills; the library's filter pills; the video bar
     --hy-sh-row     hy-plate, a plate hy-icon-button, the dock, the side pill (ui/look.css, ui/board-chrome.css); flat at "panels" and "0"
     --hy-sh-row-ctl the crumb, the window buttons, the hint plate, the bars and tools (ui/ui.css); flat at "panels" and "0"
     --hy-bar-sh     hy-bar (= --hy-sh-ctl); --hy-sh-1, -2, -3 the scale below (publish_assets/viewer.css)
   Not shadows of the part: --hy-knob-sh (a switch knob, a handle), --hy-thumb-sh, rings and rims (0 0 0 1px …), --hy-sh-edit-* (a card lifted by a mode)
   The -up tokens hold the values with shadows and never go to none; the live tokens are the -up value or flat by the nearest setting, as before */
:root, [data-hy-theme] { --hy-sh-row-up: var(--plate-sh-up); --hy-sh-row-ctl-up: var(--hy-sh-ctl-up); --hy-sh-3-up: var(--plate-sh-up); }
/* The setting «Тени» (cv.shadow on the root as data-shadow; owner 2026-10-04, the middle choice 2026-10-08: «для панелей тень, а для
   верхнего и нижнего блока тени нет»):
     "1"       everything floats
     "panels"  the side panels, popovers, menus, dialogs and the bars over a selection keep their depth; the top row's plates, a mode's
               hint plate under it and the docks lie flat (they read --hy-sh-row, --hy-sh-row-ctl: ui/look.css, ui/ui.css, ui/hy/plate.css)
     "0"       nothing has a shadow (the default since 2026-10-08)
   A flat depth that may stand in a list beside a ring (0 0 0 1px var(--line), var(--hy-sh-ctl)) is «0 0 #0000», not none */
/* How a setting reaches a part: four flags, set where the setting is made (the root, or a part) and inherited by what is inside, so the NEAREST
   setting wins, theme islands too. A flag with a value flattens a depth, «initial» (no value) leaves it up. --hy-fp-f and --hy-fp-n flatten the
   panels' and controls' depths (as «0 0 #0000» and as none), --hy-fr-f and --hy-fr-n the top row's and the docks' */
:root { --hy-fp-f: initial; --hy-fp-n: initial; --hy-fr-f: initial; --hy-fr-n: initial; }   /* up: the default */
:root[data-shadow="panels"] { --hy-fr-f: 0 0 #0000; --hy-fr-n: none; }
:root[data-shadow="0"] { --hy-fp-f: 0 0 #0000; --hy-fp-n: none; --hy-fr-f: 0 0 #0000; --hy-fr-n: none; }
/* the live tokens, declared again wherever a setting can change (the root, a theme island, a part), because an alias is resolved where it is declared */
:root, [data-hy-theme], [shadow], [data-shadow] {
  --plate-sh: var(--hy-fp-n, var(--plate-sh-up)); --hy-sh-ctl: var(--hy-fp-f, var(--hy-sh-ctl-up)); --hy-sh-pop: var(--hy-fp-f, var(--hy-sh-pop-up));
  --hy-sh-row: var(--hy-fr-n, var(--hy-sh-row-up)); --hy-sh-row-ctl: var(--hy-fr-f, var(--hy-sh-row-ctl-up)); --hy-bar-sh: var(--hy-sh-ctl);
}
/* The shadow scale (2026-10-30, improve-r1 proposal 4, owner: «ну и это делай давай»): three depths by name, the names a new rule uses, each the
   existing token of its depth, so «Тени» takes them off with the rest. 1 a control lying on the surface (--hy-sh-ctl), 2 a menu, popover,
   dialog or panel over it (--hy-sh-pop), 3 a plate of the top row (--plate-sh, deep on the dark paper). A rule that needs another depth
   proposes a step here; a literal blur in box-shadow outside this file is the validator's shadow-literal */
:root, [data-hy-theme], [shadow], [data-shadow] { --hy-sh-1: var(--hy-sh-ctl); --hy-sh-2: var(--hy-sh-pop); --hy-sh-3: var(--hy-fp-f, var(--hy-sh-3-up)); }
/* The part's own switch: shadow="on|off|auto" (data-shadow="on|off|auto" on a menu, toast, dialog or row that is no element of the design system) sets
   the four flags for itself and what is inside, so a nearer setting beats a farther one, a theme island or a quiet-mode plate inside it too. on
   leaves them up, off flattens all four, auto is the app's setting again, whatever the part's parents say. A rule that reads a depth of its own
   adds its token to the live tokens above */
[shadow="on"], [data-shadow="on"], [shadow="auto"], [data-shadow="auto"] { --hy-fp-f: initial; --hy-fp-n: initial; --hy-fr-f: initial; --hy-fr-n: initial; }
:root[data-shadow="panels"] [shadow="auto"], :root[data-shadow="panels"] [data-shadow="auto"] { --hy-fr-f: 0 0 #0000; --hy-fr-n: none; }
:root[data-shadow="0"] [shadow="auto"], :root[data-shadow="0"] [data-shadow="auto"] { --hy-fp-f: 0 0 #0000; --hy-fp-n: none; --hy-fr-f: 0 0 #0000; --hy-fr-n: none; }
[shadow="off"], [data-shadow="off"] { --hy-fp-f: 0 0 #0000; --hy-fp-n: none; --hy-fr-f: 0 0 #0000; --hy-fr-n: none; }

/* The card a mode edits, lifted (ui/editlift.js, owner 2026-10-08: «когда входишь в режим, у объекта ... появляется тень»): a close
   ambient and a far drop, the rest of the board a little dimmer, faded in over --hy-edit-ms. Not the setting «Тени»: data-shadow leaves
   them alone. In screen px through the board's --z; declared on the lift's own layers (.hy-edlift) as well, so --z is the board's at that
   moment, also during a zoom. On the dark paper the shadow is deep, as the plates' */
:root, .hy-edlift { --hy-edit-ms: 420ms;
  --hy-sh-edit-near: 0 calc(2px / var(--z, 1)) calc(12px / var(--z, 1)) rgba(0, 0, 0, .6), 0 0 calc(1px / var(--z, 1)) rgba(0, 0, 0, .6);
  --hy-sh-edit-far: 0 calc(28px / var(--z, 1)) calc(80px / var(--z, 1)) calc(4px / var(--z, 1)) rgba(0, 0, 0, .8);
  --hy-edit-dim: rgba(0, 0, 0, .22); }
:root[data-theme=light], :root[data-theme=light] .hy-edlift {
  --hy-sh-edit-near: 0 calc(2px / var(--z, 1)) calc(8px / var(--z, 1)) rgba(40, 30, 15, .16), 0 0 calc(1px / var(--z, 1)) rgba(40, 30, 15, .22);
  --hy-sh-edit-far: 0 calc(22px / var(--z, 1)) calc(60px / var(--z, 1)) rgba(40, 30, 15, .2);
  --hy-edit-dim: rgba(40, 30, 15, .06); }

/* the selection's colour, the page's --sel (blue), and what is drawn from it */
:root, [data-hy-theme] { --hy-sel: var(--sel, #3b82f6); }
:root[data-theme=light], [data-hy-theme=light] { --hy-sel: var(--sel, #2563eb); }
/* a choice in the tint variant (ui/hy/segmented.css): the chosen option's ground and words, from the selection's blue */
:root, [data-hy-theme] { --hy-tint-bg: color-mix(in srgb, var(--hy-sel) 16%, transparent); --hy-tint-ink: var(--hy-sel); }
/* The wells (owner 2026-10-08, round 11 of Settings, settings-side.html and settings-full.html: «В обеих вроде все нравится»): a control
   lies in a dark well cut into its panel, the chosen thing on a grey plate a step lighter (ui/hy/segmented.css and switch.css, variant
   well; ui/settings-win.css). --hy-blk is the panel they lie on, a step lighter than the paper (--hy-blk-deep a step darker, a rail
   beside it); --hy-pline its hairline */
:root, [data-hy-theme=dark] { --hy-blk: color-mix(in srgb, #fff 3%, var(--paper)); --hy-well: color-mix(in srgb, #000 34%, var(--paper));
  --hy-well-hov: color-mix(in srgb, #000 20%, var(--paper)); --hy-blk-hov: #25262a; --hy-thumb: color-mix(in srgb, var(--ink) 13%, var(--paper)); --hy-thumb-sh: none;
  --hy-pline: color-mix(in srgb, var(--ink) 9%, transparent); --hy-knob-off: color-mix(in srgb, var(--ink) 21%, var(--paper));
  --hy-knob-on: color-mix(in srgb, var(--ink) 84%, var(--paper)); --hy-well-on: var(--hy-well); --hy-blk-deep: color-mix(in srgb, #000 12%, var(--hy-blk)); }
:root[data-theme=light], [data-hy-theme=light] { --hy-blk: color-mix(in srgb, #fff 62%, var(--paper)); --hy-well: color-mix(in srgb, #000 7%, var(--paper));
  --hy-well-hov: color-mix(in srgb, #000 10%, var(--paper)); --hy-blk-hov: #f0f0f2; --hy-thumb: #fff; --hy-thumb-sh: 0 1px 2px rgba(40, 30, 15, .16), 0 0 0 .5px rgba(40, 30, 15, .08);
  --hy-pline: color-mix(in srgb, var(--ink) 10%, transparent); --hy-knob-off: #fff; --hy-knob-on: #fff; --hy-well-on: color-mix(in srgb, var(--ink) 62%, var(--paper));
  --hy-blk-deep: color-mix(in srgb, #000 3%, var(--hy-blk)); }
/* a well's corner and its plate's inside it, in both shapes (the concepts' 8 in 2 px of well, 6 for the plate) */
:root { --hy-well-r: var(--hy-r-3); --hy-well-in-r: var(--hy-r-2); }
/* On / off, three kinds and one set of tokens (owner 2026-10-27 on round 2 of «shell, one look», c0e2027bc13: «да ок отлично»): the well
   44 × 26 for a setting's row (ui/hy/switch.css: the wells' tokens above, a grey knob that goes light), the mini 22 in blocks and bars
   (minitoggle.css), the 14 px box for the items of a list (check.css). Off: a quiet track (--hy-tog-off) or edge (--hy-tog-edge); on:
   the place's colour, --hy-tog-on where a place sets it, else --hy-sel (a Studio's own inside its root), the knob or the mark
   --hy-tog-mark. --hy-tog-on is not set here: a value written on :root would fix the board's blue for every place under it */
:root, [data-hy-theme] { --hy-tog-off: color-mix(in srgb, var(--ink) 18%, transparent); --hy-tog-edge: var(--muted); --hy-tog-mark: var(--hy-on-accent); }
/* A block and its header, round 12 «A · Line» (owner 2026-10-09 on r12/image-headers.html: «реализуй уже A Line версию на весь
   интерфейс»; on r12/image-effects.html and image-raw.html: «реализуй этот дизайн»). ui/hy/block.css draws them. The sizes are r8/scale's:
   a header 34, a section's head 28, a control 24 with 6 px corners in both shapes; the room between things r11/image-spacing's: rows 2,
   controls 4, sections 6, blocks 8. A tab or a header's button on a plate of ink at 8 %; a value (a slider's fill, a chosen option) grey,
   in a Studio the Studio's colour (--hy-val, --hy-val-on: Image Studio sets its purple) */
:root { --hy-blk-r: var(--hy-r-4); --hy-bh-h: 36px; --hy-sec-h: 28px; --hy-ctl-h: 24px; --hy-ctl-r: var(--hy-r-2); --hy-tab-r: 8px;
  --hy-gap-row: var(--hy-sp-2); --hy-gap-ctl: var(--hy-sp-4); --hy-gap-sec: var(--hy-sp-8); --hy-gap-blk: var(--hy-sp-8); }
/* A field row of a panel, ui/hy/prow.css (round 12 of «Панели: одна система», owner 2026-11-18 on a Studio's size row: «вот же элементарное решение»):
   the word's column 72, then A, the 24 px joint (--hy-ctl-h) and B; a section's hairline stands 10 px from what is above and below it (r12 sheet 2, off the
   spacing scale by his sheet), --hy-div-bleed lets that hairline reach a plate's edge (a plate sets it to its own side padding) */
:root { --hy-prow-w: 72px; --hy-sec-gap: 10px; --hy-div-bleed: 0px; --hy-prow-min: 0px; }   /* --hy-prow-min: a row's floor in a box sized by content */
:root, [data-hy-theme] { --hy-tab-on: color-mix(in srgb, var(--ink) 8%, transparent); --hy-hov: color-mix(in srgb, var(--ink) 6%, transparent);
  /* held: a button presses in and darkens a step while the mouse, Space or ↵ holds it (round 10 of «shell, one look», r10-keyboard 109 A):
     the scale, the time of the press and of the release, a filled thing's dimming, the fill under a thing with no ground, ui/hy/button.css */
  --hy-press: .96; --hy-press-t: 90ms; --hy-press-dim: brightness(.82); --hy-press-fill: rgb(0 0 0 / 28%);
  --hy-wbtn: color-mix(in srgb, var(--ink) 7%, transparent); --hy-wbtn-hov: color-mix(in srgb, var(--ink) 11%, transparent);
  --hy-acc: var(--hy-sel); --hy-val: color-mix(in srgb, var(--ink) 15%, transparent); --hy-val-drag: color-mix(in srgb, var(--ink) 21%, transparent);
  --hy-val-on: var(--hy-thumb); --hy-val-ink: var(--ink); }
/* A row of a tree list (ui/look.css): 28 px tall, 8 px corners, the studio step for its hover (--hy-blk-hov); the selected row the cool grey-blue plate, no line (variant D, owner 11-13) */
:root, [data-hy-theme] { --hy-trow-h: 28px; --hy-trow-r: var(--hy-r-3);
  /* a chosen row: variant D of select-r1, the board's blue half mixed with cool grey at 26 %, no ring (owner 2026-11-13: «я перепутал… D»;
     before, 11-12, A: the chosen tool's light grey plate); in a Studio --hy-sel is its colour, so its chosen rows take that hue */
  --hy-trow-on: color-mix(in srgb, color-mix(in srgb, var(--hy-sel) 45%, #9aa3b5) 26%, transparent); --hy-trow-ring: 0 0 #0000;
  --hy-trow-soft: color-mix(in srgb, var(--ink) 3%, transparent); }   /* a row that holds the pick (ui/hy/rows.css .soft): 3D's tint of a model whose part is picked */
/* A side panel, one anatomy for all of them (owner 2026-10-11, round 20's configurator r20/panels-config.html, his choice: «Ширина 340 (как
   История и «?») · Угол 18 · Фон стекло 97 % · Высота по содержимому · Шапка 52, вкладки в шапке · Вкладки капсула 30 · без крестика (как
   Библиотека, Esc) · Кнопки шапки квадрат 24 · Поиск поле 32 · Выбранное и новое синяя заливка и рамка (как дерево и версии) · Подвал сноска
   у всех · Пустой список по центру 14»). ui/hy/side.css draws it, ui/side.js writes its parts. Under the top row at the right, as tall as
   what it holds and never past 12 px over the window's bottom; the same in both themes and both shapes */
:root { --hy-side-w: 412px; --hy-info-w: 320px; --hy-side-r: 16px; --hy-side-top: var(--hy-row-under); --hy-side-gut: var(--hy-row-gut); --hy-side-hd: 52px;
  --hy-side-max: calc(100% - var(--hy-side-top) - var(--hy-side-gut)); --hy-side-btn: var(--hy-h-s); --hy-side-q: var(--hy-h-row); --hy-side-q-r: 8px;
  --hy-side-blur: blur(24px) saturate(1.4);
  /* the left column is one block whose width follows the tab (owner 2026-10-29; ui/sidewidth.js reads these): the Library opens wide, Pages and Agent
     at 360, the room for the tabs strip at its own size and a tab's three buttons (owner 2026-10-31: «почему табы в page/agent имеют другой размер это
     же один элемент... он не должен меняться»; at 320 the strip was made tighter there) */
  --hy-side-w-lib: 560px; --hy-side-w-pages: 360px; --hy-side-w-agent: 360px; }
:root, [data-hy-theme] { --hy-side-bg: color-mix(in srgb, var(--panel) 97%, transparent); --hy-side-line: var(--line);
  --hy-side-q-bg: color-mix(in srgb, var(--raise) 80%, transparent); --hy-side-on: var(--hy-trow-on); --hy-side-ring: var(--hy-trow-ring); }
/* glass panels (owner 2026-10-29, r12-b-glass.html «Стеклянные панели ★ как настройка», note ns38s4eu: «Это отлично, это принимаю»):
   with «Glass blur on the interface» on (cv.glassui, no data-noblur~=ui on the root) the left column, Info and the side panels let the
   board through: ground 80 % instead of 97 % (under 97 % the blur was there but nothing showed through it), 10 % of the page's own
   paper mixed in, corners 24. Grey lines still read at 4.5 : 1 over the five grounds measured in the round from 80 %. Off: as before */
:root:not([data-noblur~=ui]), :root:not([data-noblur~=ui]) [data-hy-theme] {
  --hy-side-bg: color-mix(in srgb, color-mix(in srgb, var(--panel) 90%, var(--paper-d, var(--panel)) 10%) 80%, transparent); --hy-side-r: 24px; }
:root[data-theme=light]:not([data-noblur~=ui]), :root:not([data-noblur~=ui]) [data-hy-theme=light] {
  --hy-side-bg: color-mix(in srgb, color-mix(in srgb, var(--panel) 90%, var(--paper-l, var(--panel)) 10%) 80%, transparent); }
/* a footnote's colour (owner 2026-10-06): --muted is too faint at 11 px on the light paper */
:root, [data-hy-theme] { --hy-hint: var(--muted); } :root[data-theme=light], [data-hy-theme=light] { --hy-hint: var(--sub); }
/* the paper (owner 2026-10-04): --paper-d / --paper-l are the settings cv.paperDark / cv.paperLight, put on the root by each page */
:root, [data-hy-theme=dark] { --paper: var(--paper-d, #17171a); }
:root[data-theme=light], [data-hy-theme=light] { --paper: var(--paper-l, #ebe6dc); }

/* The top row, one rule in every mode (owner 2026-10-07: «breadcrumb area тоже разношерстная»; ui/look.css says how it is laid out) */
:root { --hy-row-top: 12px; --hy-row-gut: 12px; --hy-row-gap: 8px; --hy-plate-h: 36px; --hy-plate-ctl: calc(var(--hy-plate-h) - 2 * var(--hy-sp-4));
  --hy-row-under: calc(var(--hy-row-top) + var(--hy-plate-h) + var(--hy-row-gap)); }
/* the gap between the blocks of the top centre's column (the way back, the group's bar, «N new on this page», the
   Hint bar, the notifications: ui/shell.js; owner 2026-10-21: «расстояние между верхними блоками слишком большое»; one small token) */
:root { --hy-shell-gap: 6px; }
/* the Share pill beside the bell (canvas.html #bshare): the blocks right of it move by its width (the power leaf, the presence avatars) */
:root { --hy-share-w: 104px; }
/* where the row's first plate starts: after what stands at the window's left before it, the app's window buttons and the library's round button
   (the review page tells the board, --row), else the library's edge (--inset) and the board's own window buttons (--wl), as canvas.html
   #crumb computes it. A mode's name in the crumb's place starts here (the bug report's «Idea», owner 2026-10-18: it read «dea» under the
   library's button) */
:root { --hy-row-lead: var(--row, calc(var(--inset, 0px) + var(--wl, var(--hy-row-gut)))); }
/* a thumb's inset in its track on all 4 sides (owner 2026-10-06); a pill's words from its sides is the pill rule just below */
:root { --hy-seg-pad: 3px; }
/* the track reaches this much further out than its box, on every side (owner 2026-10-27 on round 4 of «shell, one look», r4-toolbars
   c72aec8ccab: «нужно меньше на 1 пиксель и слева естественно тоже, при этом внутри соответсвенно pading +1 а внешне -1 и так для всех таких
   примеров»; r4-track ca138817792: «3 оилично но как и сказал margin внешний чуть меньге должен быть»): ui/hy/segmented.css */
:root { --hy-seg-out: 1px; }
/* one of a few's track (ui/look.css .seg): ink at 9 % over whatever it lies on, grey on the dark dock, a panel and a bar alike (round 2 §2,
   owner 2026-10-27: «всё отлично нужно делать»); its thumb is the panel's colour */
:root, [data-hy-theme] { --hy-seg-track: color-mix(in srgb, var(--ink) 9%, transparent);
  --hy-seg-thumb-sh: 0 1px 2px rgba(0, 0, 0, .12), 0 0 0 1px var(--line); }   /* its thumb's edge and small depth (look.css .seg > .st) */
/* the arrow ▾ of a pill or a round button that opens a list (ui/look.css .hy-caret): one thin, dim grey (owner 2026-10-27 on round 4 of «Shell,
   one look», r4-toolbars c037124d0c4: «аккуратная серенькая - консистентно»); a filled button (accent, danger) dims its own words' colour */
:root, [data-hy-theme] { --hy-caret: var(--muted); }
/* the view's percent in a dock: fixed, so the dock keeps its width as the number changes, the pill rule's padding round four characters */
:root { --hy-zoom-w: calc(2 * var(--hy-pad-l) + 34px); }
/* the dock (ui/board-chrome.css .bar, the bug report's .bug-dock, the Studios' through HY.dock): its stand from the bottom, the room inside, the gap
   between keys, its glass (the ground's share of the panel colour and the blur) and its keys' glyph. Read by the bars and the dock key
   (ui/hy/button.css dock); the quiet mode scales the ground (ui/dock.js), the no-blur look raises it to 95 % (ui/look.css). Slice 1g, 2026-10-31 */
:root { --hy-dock-bottom: 18px; --hy-dock-pad: var(--hy-sp-4); --hy-dock-gap: var(--hy-sp-4); --hy-dock-key: 40px;
  --hy-dock-h: calc(var(--hy-dock-key) + 2 * var(--hy-sp-4)); --hy-dock-blur: 18px; --hy-dock-icon: var(--hy-icon-m);
  --hy-dock-bg: color-mix(in srgb, var(--panel) 78%, transparent); }
/* a glyph's size, three steps (audit 2026-11-19 «Dock, Share, icons», owner: «Да окей, отлично принимаю»): s 16 in a key of 28 (the top row's
   corner, the crumb, a Studio's actions), m 18 in a dock key of 40 (the board's and a plugin's dock), l 22 over a picture (the viewer's arrows).
   Each place reads its step, no size written per place */
:root { --hy-icon-s: 16px; --hy-icon-m: 18px; --hy-icon-l: 22px; }
/* a column's edge to drag (<hy-grip>, ui/hy/grip.css): the board's left column's measures (ui/sidetab.css before 2026-11-01: 10 wide, radius 5,
   12 in from the top and the bottom, 14 % ink under the pointer); the Library's grip takes them too (it was 12 wide, 6 px corners) */
:root { --hy-grip-w: 10px; --hy-grip-r: calc(var(--hy-grip-w) / 2); --hy-grip-in: 12px; --hy-grip-hov: color-mix(in srgb, var(--ink) 14%, transparent); }
/* The pill rule (owner 2026-10-21, the dock's «● Dev Studio» and the library's «All 60», words almost on the edge: «у нас почему-то нет паддинга
   справа и слева»): a labelled plate keeps max(--hy-pill-min, --hy-pill-ratio × its height) between its content and each side, an icon or a dot
   included, so the padding of a pill is a token of its height: --hy-pad-s for 24, -opt 28, -m 30, -l 38, -row 32 (a menu's row), -tag 22 (the scale above). Another height writes
   max(var(--hy-pill-min), calc(H * var(--hy-pill-ratio))). round: a capsule's curve needs room, half its height; pro: a 6 to 8 px corner needs
   none, the floor. tests/test_pill_padding.py measures every pill of the app against these two numbers (design/audit.js pills); what is tight on
   purpose, a key cap or a count badge, is listed with its reason in design/contract.json runtime.pill.exceptions. It replaces --hy-cap-pad (10 px). */
:root, [data-hy-shape=round] { --hy-pill-min: 12px; --hy-pill-ratio: .5; }
:root[data-shape=pro], [data-hy-shape=pro] { --hy-pill-ratio: 0; }
:root, [data-hy-shape] { --hy-pad-s: max(var(--hy-pill-min), round(nearest, calc(var(--hy-h-s) * var(--hy-pill-ratio)), 4px));
  --hy-pad-opt: max(var(--hy-pill-min), round(nearest, calc(var(--hy-h-opt) * var(--hy-pill-ratio)), 4px));
  --hy-pad-m: max(var(--hy-pill-min), round(nearest, calc(var(--hy-h-m) * var(--hy-pill-ratio)), 4px));
  --hy-pad-l: max(var(--hy-pill-min), round(nearest, calc(var(--hy-h-l) * var(--hy-pill-ratio)), 4px));
  --hy-pad-row: max(var(--hy-pill-min), round(nearest, calc(var(--hy-h-row) * var(--hy-pill-ratio)), 4px));
  --hy-pad-tag: max(var(--hy-pill-min), round(nearest, calc(var(--hy-h-tag) * var(--hy-pill-ratio)), 4px)); }

/* Heights: a button is one of three (owner 2026-10-14, c16f1241f2f «А давай да»; contract.json heights): s 24 a row, a panel's header,
   beside a field; m 30 a panel, a dialog, a card, a button inside a plate; l 38 the top row's plate and a dock's key. A panel row 32 */
:root { --hy-h-s: 24px; --hy-h-m: 28px; --hy-h-l: var(--hy-plate-h); --hy-h-row: 32px; }
/* not a button: a choice's option, a chip, a block's search field 28; a tag or a chip on a note 22 */
:root { --hy-h-opt: 28px; --hy-h-tag: 20px; }
/* the bar over a selection (ui/board-handles.css .tidy): its height and its controls' as one pair, so a thinner size drops in by these two
   (owner 2026-10-27 on round 2 sheet 3, note nhq3bkdp: «да отлично но только её нужно будет тонкой сделать»; on round 3, r3-toolbars cf8ea2205f1,
   cb94c12595c: «нет, все херня, текущий размер лучше», for the board's bar «нужно делать 38 / 28 как в студиях размер»).
   --hy-bar-pad the room left to the pills inside, from the pair */
:root { --hy-bar-h: var(--hy-plate-h); --hy-bar-ctl: var(--hy-plate-ctl); --hy-bar-pad: max(var(--hy-pill-min), calc(var(--hy-bar-ctl) * var(--hy-pill-ratio))); }
/* its plate (ui/hy/bar.css): the glass of the top row, the controls' shadow, the hairline's room; what the bar drew in its own rules before
   (board-handles.css: panel 82 %, blur 14, --hy-sh-ctl, 0 4px) */
:root { --hy-bar-bg: var(--hy-glass-bg); --hy-bar-blur: var(--hy-glass-blur); --hy-bar-sep-gap: 4px; }
/* the selection's handles (ui/selhandles.js), the owner's numbers from round «Выделение и ручки» 8 (2026-11-01, note n2cb8v7x): a corner bracket
   3.5 thick and 11 long with a 2 px inner corner, 4 off the card; a side bar 4 × 32; tinted glass: blur 30, the place's colour at 80 %, its box
   reaching 40 px into the card; the tone over dark or very light cards 40 %; a press 0.86× in 160 ms; the selection's ring 1 px */
:root { --hy-hd-t: 3.5px; --hy-hd-arm: 11px; --hy-hd-corner: 2px; --hy-hd-gap: 4px; --hy-hd-side-t: 4px; --hy-hd-side-l: 32px; --hy-hd-blur: 30px;
  --hy-hd-tint: 80%; --hy-hd-reach: 40px; --hy-hd-tone: 40%; --hy-hd-press: .86; --hy-hd-press-t: 160ms; --hy-hd-frame: 1px; --hy-hd-frame-off: 0px; }
/* the one ring of the selection: width --hy-hd-frame, off the card by --hy-hd-frame-off (ui/kinds.css for the elements, render/ui/selmarks.js for
   Rust's, both read through ui/selhandles.js frame()). A text or a note being written wears the same ring dashed, so the frame never jumps and the
   dash is the only cue; a drop target and a timeline's label change only --er-w, --er-o, --er-c of that rule (ui/kinds.css «one editing ring») */
/* a note's and a text's corner, CSS px on screen: the elements counter-scale it by --z (ui/board-items.css, ui/board-handles.css) and Rust draws a note with the
   same 3 px (hyrender scene.rs); the selection's Rust ring reads them through ui/selhandles.js corner(), so a card Rust holds out of the page has them too */
:root { --hy-r-note: 4px; --hy-r-text: 4px; }
:root { --hy-edit-ring-w: var(--hy-hd-frame); --hy-edit-ring-off: var(--hy-hd-frame-off); --hy-edit-ring-dash: dashed; }
/* the arrow knob (ui/board-items.css .cn; arrows round 3, owner 2026-11-02: «беру рекомендованные»): tinted glass, the place's colour at 70 %, the paper
   under it 15 %, blur 16, no ring; a line is 1.5 px, 2.4 hovered, 3 picked; a line's tip stops 2 board units short of what it points at */
:root { --hy-knob-tint: 70%; --hy-knob-base: 15%; --hy-knob-blur: 16px; --hy-arrow-w: 1.5px; --hy-arrow-w-hover: 2.4px; --hy-arrow-w-pick: 3px; }
/* Font sizes, one token for each px size the CSS writes at least three times (2026-10-25, from 586 sites in the app's CSS; the tokens hold the
   values that were written, so nothing moved). The scale of design/contract.json is 10 11 12 13 14 15 18; 10.5, 11.5, 12.5 and 13.5 are the
   in-between sizes it names for folding into their neighbours, which is now a change of one token each. Sizes written fewer than three times
   stay in the rule that uses them. A size in a calc() of the board's zoom (calc(11px / var(--z))) is not a token: it scales with the board */
:root {
  --hy-fs-10: 10px; --hy-fs-10-5: 10.5px; --hy-fs-11: 11px; --hy-fs-11-5: 11.5px; --hy-fs-12: 12px;
  --hy-fs-12-5: 12.5px; --hy-fs-13: 13px; --hy-fs-13-5: 13.5px; --hy-fs-14: 14px; --hy-fs-15: 15px;
  --hy-fs-17: 17px; --hy-fs-18: 18px; --hy-fs-20: 20px; --hy-fs-22: 22px;
  --hy-fs-26: 26px; --hy-fs-28: 28px; --hy-fs-44: 44px;   /* display sizes: the bug report's card (text 26, title 44) and the words laid on its canvas (28) */
}
/* The app's curve for new work (contract.json easing) */
:root { --hy-ease: cubic-bezier(.32,.72,0,1); }
/* The other six curves of the contract, one token each (design/contract.json easing.tokens is the list, tests/test_validate_tokens.py keeps the two the
   same; scripts/validate.py easing-literal: a transition or animation names a curve by token, never a cubic-bezier() of its own) */
:root { --hy-ease-out: cubic-bezier(.3,.8,.25,1); --hy-ease-pop: cubic-bezier(.2,.9,.3,1.15); --hy-ease-grow-1: cubic-bezier(.33,0,.2,1);
  --hy-ease-grow-2: cubic-bezier(.45,0,.2,1); --hy-ease-load: cubic-bezier(.16,1,.3,1); --hy-ease-lay: cubic-bezier(.45,0,.15,1); }
/* Motion time, four steps from the spread the CSS wrote (.15 x87, .2 x70, .3 x51, .5 x10; .12 .18 .22 .25 .32 fold into the near step; scripts/validate.py duration-literal) */
:root { --hy-t-fast: .15s; --hy-t-base: .2s; --hy-t-slow: .3s; --hy-t-page: .5s; }
/* Font weight, the four steps the CSS uses (400 x41, 500 x93, 600 x72, 700 x14; scripts/validate.py weight-literal) */
:root { --hy-fw-400: 400; --hy-fw-500: 500; --hy-fw-600: 600; --hy-fw-700: 700; }
/* Distance: one scale for padding, margin and gap (2 4 6 8 12 16 24; scripts/validate.py spacing-literal). The part tokens (--hy-gap-*, --hy-pop-body,
   --hy-pad-*) are names for steps of it or derived from a height; there is no second scale */
:root { --hy-sp-2: 2px; --hy-sp-4: 4px; --hy-sp-6: 6px; --hy-sp-8: 8px; --hy-sp-12: 12px; --hy-sp-16: 16px; --hy-sp-20: 20px; --hy-sp-24: 24px;
  --hy-sp-32: 32px; --hy-sp-40: 40px; --hy-sp-48: 48px; --hy-sp-64: 64px; --hy-hair: 1px; }   /* the grid contract's steps (owner 2026-11-11, Concepts/workflows/2611110300-grid-8px) */
/* Layers: design/contract.json z_layers is the list (tests/test_validate_tokens.py keeps the two the same); z-index takes one of these (scripts/validate.py z-literal) */
:root { --hy-z-under: -1; --hy-z-local: 1; --hy-z-local-2: 2; --hy-z-local-3: 3; --hy-z-content: 20; --hy-z-chrome: 31; --hy-z-overlay: 50; --hy-z-menu: 60;
  --hy-z-dialog: 80; --hy-z-toast: 1000; --hy-z-takeover: 1100; --hy-z-inspector: 2147483647; }
/* The left column's tab bodies (ui/colslide.js, owner 2026-10-31 and 2026-11-15: «левое меню не анимированно вообще… performance efficient»): the incoming body slides this far in this long on
   --hy-ease, transform only (the compositor's), at full opacity from its first frame so the plate is never empty */
:root { --hy-col-slide-x: 12px; --hy-col-slide-ms: 180ms; }
/* a board's state in ⌃Tab's cards and the crumb's list (ui/switcher.js, owner 2026-10-08): open, warm (its page kept), asleep */
:root { --hy-st-open: var(--hy-ok); --hy-st-warm: var(--hy-warn); --hy-st-sleep: #8ea2c8; }
/* the axes' letters of a scrub field X Y Z (ui/hy/scrub.css, round 16's r16-scrub.html): red, green, blue as in 3D */
:root { --hy-axis-x: #ff5f6d; --hy-axis-y: #7bd88f; --hy-axis-z: #6cb6ff; }
/* the base background of a 3D scene (hyimg-3d-studio stage.js and canvas.js, owner 2026-10-13: «кстати офигенный бэкграунд для 3D объекта
   на нашем канвасе базового»): a gradient lit from above, radial-gradient(120% 90% at 50% 20%, hi, lo), and the lines of the floor grid
   that fades out. A studio stage, dark in both themes like the picture a 3D scene is (the stills are drawn with it) */
:root { --hy-3d-bg-hi: #2a2a30; --hy-3d-bg-lo: #121214; --hy-3d-grid: #3a3a42; }

/* Corners: one scale, switched by the setting «Углы» (cv.shape on the root as data-shape, owner 2026-10-04; the scale 2026-10-30, improve-r1
   proposal 4, owner: «ну и это делай давай»). Four steps that are the same in both shapes, and the capsule at three sizes that is not:
     --hy-r-1 4px   a key cap, a check          --hy-r-2 6px   a control in a block, a chip in «pro»
     --hy-r-3 8px   a row control in «pro», a well   --hy-r-4 14px  a pop-up, a block, a bar in «pro»
     --hy-r-pill-s, --hy-r-pill, --hy-r-pill-l   999px in «Круглые»; r-2, r-3, r-4 in «pro»
   A rule takes its corner from here and writes no px of its own (validate.py radius-literal; 6, 8 and 14 px elsewhere are --hy-r-2, 3, 4,
   a pill is --hy-r-pill). The names below are places, aliases of the scale, so «Углы» switches three values and the places follow (a
   top-row plate 12 in «pro» (owner 2026-10-06: «одни круглые другие квадратные») and --pl-r 19 or 12 are the row's own and stay numbers). The
   alias rule sits on [data-hy-shape] too: a showcase cell or an embedded preview carries its own shape and resolves its places from it */
:root { --hy-r-1: 4px; --hy-r-2: 6px; --hy-r-3: 8px; --hy-r-4: 16px; }
:root, [data-hy-shape=round] { --hy-r-pill-s: 999px; --hy-r-pill: 999px; --hy-r-pill-l: 999px; --hy-plate-r: 999px; --pl-r: 19px; }
:root[data-shape=pro], [data-hy-shape=pro] { --hy-r-pill-s: var(--hy-r-2); --hy-r-pill: var(--hy-r-3); --hy-r-pill-l: var(--hy-r-4);
  --hy-plate-r: 12px; --pl-r: 12px; }
/* a row of a pop-up list (the right-click menu, Actions ⌘K, a ▾ list, the token and size lists: ui/palette.js .hy-pm rows, ui/favlist.js): one row
   in every list, inset in the pop-up's padding, its corner the pop-up's corner minus that padding, so the light follows the edge (owner 2026-11-08 on
   Actions next to Dev Studio's token list: «одного поля ягода с вот такими скруглениями… а не 2 разных компонента»). Not a pill in «Круглые» */
:root, [data-hy-shape=round] { --hy-pop-row-r: var(--hy-r-3); }
:root[data-shape=pro], [data-hy-shape=pro] { --hy-pop-row-r: var(--hy-r-2); }
:root, [data-hy-shape] { --hy-row-r: var(--hy-r-pill); --hy-btn-r: var(--hy-r-pill); --hy-seg-r: var(--hy-r-pill); --hy-bar-r: var(--hy-r-pill-l);
  --hy-chip-r: var(--hy-r-pill-s); --hy-switch-r: var(--hy-r-pill-s); --hy-check-r: var(--hy-r-1); }

/* A group's own colour (owner 2026-10-15 on the GIS storyline: «менять цвет наших групп… чтобы были различия… либо приглушенный, либо набор
   цветов приглушенных»): eight muted hues, lighter on a dark board and deeper on a light one (the board's paper decides, #stage[data-bg],
   then the theme). A group mixes its hue into a soft fill, a faint border and its title (ui/diagram.css .grp[data-gc]) by these amounts;
   --hy-gc-tint-a is a diagram step's tint of its participant's colour (ui/diagram.css .dgtint) */
:root, [data-hy-theme=dark], [data-bg]:not([data-bg=light]) { --hy-gc-grey: #9b9ba5; --hy-gc-red: #e07b73; --hy-gc-orange: #df965c; --hy-gc-yellow: #d2b458;
  --hy-gc-green: #6fba8b; --hy-gc-blue: #719fdf; --hy-gc-violet: #a68ddf; --hy-gc-pink: #da80ae;
  --hy-gc-fill-a: 15%; --hy-gc-line-a: 48%; --hy-gc-ink-a: 70%; --hy-gc-tint-a: 11%; }
:root[data-theme=light], [data-hy-theme=light], [data-bg=light] { --hy-gc-grey: #6f6f79; --hy-gc-red: #c2534b; --hy-gc-orange: #bd6a2c; --hy-gc-yellow: #a3812a;
  --hy-gc-green: #3f8b5c; --hy-gc-blue: #3f6fbe; --hy-gc-violet: #7657be; --hy-gc-pink: #ae4f80;
  --hy-gc-fill-a: 12%; --hy-gc-line-a: 50%; --hy-gc-ink-a: 82%; --hy-gc-tint-a: 9%; }

/* The board's content keeps the sizes it had before the grid contract (contract §2: the board's own content is out of its scope, it gets a pass of its
   own; owner 2026-11-11, «применим то что уже сделали»: the live preview kept it so).
  Its Kanban and table cards and the selection's own UI (#handles: the bar over a selection) are interface and take the
   contract's; groups and notes keep 14 and 3 px corners, as the Rust renderer draws them (ui/selhandles.js reads its corners from #world) */
#world {
  --hy-r-4: 14px;
  --hy-h-m: 30px; --hy-plate-h: 38px; --hy-h-l: var(--hy-plate-h); --hy-h-tag: 22px; --hy-h-item: 30px; --hy-tree-h: var(--hy-h-item); --hy-bh-h: 34px; --hy-tab-r: 7px; --hy-bar-h: 38px;
  --hy-bar-ctl: 28px; --hy-bar-pad: max(var(--hy-pill-min), calc(var(--hy-bar-ctl) * var(--hy-pill-ratio))); --hy-dock-gap: 6px; --hy-tf-r: 9px; --hy-r-note: 3px; --hy-pill-min: 10px;
  --hy-gap-sec: var(--hy-sp-6); --hy-pop-pad: 6px; --hy-tree-pad: 10px; --hy-cap-above: 14px; --hy-pop-r: 14px; --hy-blk-r: 14px; --hy-cap: 500 var(--hy-fs-11)/1.3 var(--sans);
  --hy-field: color-mix(in srgb, var(--ink) 6.5%, transparent); --hy-field-hov: color-mix(in srgb, var(--ink) 7.85%, transparent);
  --hy-field-foc: color-mix(in srgb, var(--ink) 11%, transparent); --hy-pad-s: max(var(--hy-pill-min), calc(var(--hy-h-s) * var(--hy-pill-ratio)));
  --hy-pad-opt: max(var(--hy-pill-min), calc(var(--hy-h-opt) * var(--hy-pill-ratio))); --hy-pad-m: max(var(--hy-pill-min), calc(var(--hy-h-m) * var(--hy-pill-ratio)));
  --hy-pad-l: max(var(--hy-pill-min), calc(var(--hy-h-l) * var(--hy-pill-ratio))); --hy-pad-row: max(var(--hy-pill-min), calc(var(--hy-h-row) * var(--hy-pill-ratio)));
  --hy-pad-tag: max(var(--hy-pill-min), calc(var(--hy-h-tag) * var(--hy-pill-ratio))); --hy-zoom-w: calc(2 * var(--hy-pad-l) + 34px); }
#world :is(#handles, .plg[data-type="kanban"], .plg[data-type="table"]) {
  --hy-r-4: 16px;
  --hy-h-m: 28px; --hy-plate-h: 36px; --hy-h-l: var(--hy-plate-h); --hy-h-tag: 20px; --hy-h-item: 28px; --hy-tree-h: var(--hy-h-item); --hy-bh-h: 36px; --hy-tab-r: 8px;
  --hy-bar-h: var(--hy-plate-h); --hy-bar-ctl: calc(var(--hy-plate-h) - 2 * var(--hy-sp-4)); --hy-bar-pad: max(var(--hy-pill-min), calc(var(--hy-bar-ctl) * var(--hy-pill-ratio)));
  --hy-dock-gap: var(--hy-sp-4); --hy-tf-r: 8px; --hy-r-note: 4px; --hy-pill-min: 12px; --hy-gap-sec: var(--hy-sp-8); --hy-pop-pad: var(--hy-sp-8); --hy-tree-pad: var(--hy-sp-8);
  --hy-cap-above: var(--hy-sp-16); --hy-pop-r: 16px; --hy-blk-r: 16px; --hy-cap: 400 var(--hy-fs-11)/16px var(--sans); --hy-field: transparent; --hy-field-hov: transparent;
  --hy-field-foc: transparent; --hy-pad-s: max(var(--hy-pill-min), round(nearest, calc(var(--hy-h-s) * var(--hy-pill-ratio)), 4px));
  --hy-pad-opt: max(var(--hy-pill-min), round(nearest, calc(var(--hy-h-opt) * var(--hy-pill-ratio)), 4px));
  --hy-pad-m: max(var(--hy-pill-min), round(nearest, calc(var(--hy-h-m) * var(--hy-pill-ratio)), 4px));
  --hy-pad-l: max(var(--hy-pill-min), round(nearest, calc(var(--hy-h-l) * var(--hy-pill-ratio)), 4px));
  --hy-pad-row: max(var(--hy-pill-min), round(nearest, calc(var(--hy-h-row) * var(--hy-pill-ratio)), 4px));
  --hy-pad-tag: max(var(--hy-pill-min), round(nearest, calc(var(--hy-h-tag) * var(--hy-pill-ratio)), 4px)); --hy-zoom-w: calc(2 * var(--hy-pad-l) + 34px); }
