/* The look of the controls over the board, the library and Home, in two settings of the whole app (owner 2026-10-04: «make a
   setting with shadows or without, I decide later; and one where every element is round, or a more pro direction: a little square
   with a moderate radius»).
     cv.shadow  "1" everything floats with a shadow, "panels" the panels do and the top row and the docks lie flat, "0" nothing has
                one (the default since 2026-10-08); the tokens and what each choice does: ui/tokens.css
     cv.shape   "round" pills and circles (the default), "pro" squarer, a moderate radius
   Each page puts both on its root before its first paint (data-shadow, data-shape). Loaded by canvas.html, library.html and home.html;
   the !important wins over each page's own radius and shadow, so a control keeps one look whichever page draws it. */
/* The tokens these rules read (--plate-sh, --hy-row-*, --hy-row-r, --pl-r, --hy-sel, --hy-trow-*, --paper, --hy-seg-pad, --hy-pad-*,
   --hy-hint) live in ui/tokens.css, which every page links before this file. */

/* The hand on everything that acts, the arrow on what cannot (owner 2026-10-20: «нет pointer cursor при наведении на это action-кнопку
   справа»; the Board button of the dock and the menus' rows said `cursor: default`). One rule for every button, menu row, tab and link of the
   board, the library and Home that has no cursor of its own, so a new control wears the hand without saying so. :where() keeps it at
   specificity 0: a control that wants another pointer (a drag handle's grab, a resize edge, the 3D card's arrow) says so in its own rule and
   wins; the one menu's rows, chips and presets are in ui/palette.js on the same terms. Never write `cursor: default` on something that acts:
   grey it with :disabled or aria-disabled=true, which this rule leaves to the arrow. tests/test_actions_menu.py reads the dock, the menus and the pills. */
:where(button, [role=button], [role=menuitem], [role=menuitemcheckbox], [role=menuitemradio], [role=tab], [role=option], [role=switch], summary, a[href]):where(:not(:disabled, [aria-disabled=true])) { cursor: pointer; }
:where(button:disabled, [aria-disabled=true]) { cursor: default; }

/* the plates: the board's panels and menus, the floating library, Home's sidebar and buttons, their depth --plate-sh; then the top row
   (the board's crumb and round buttons, the window buttons' capsule, the library button, «Go to original», Home's search, «New board»
   and loading crumb) and the docks (the board's, the library's), their depth --hy-sh-row, flat with «Тени: только панели» (ui/tokens.css).
   The row's rule comes second: a plate both lists name (Home's «New board» in its top row) is a plate of the row */
:is(#sets, #pages, #ctx, aside, .menu), body.cv-on main#list { box-shadow: var(--plate-sh) !important; }
:is(#crumb, #bset, #bhist, #bshare, #bpow, #dock,
  #wl, #load .crumb, #jump > hy-button, .hy-back) { box-shadow: var(--hy-sh-row) !important; }

/* The top row, one rule in every mode (owner 2026-10-07: «breadcrumb area тоже разношерстная»): the window buttons' capsule, the library
   button, the crumb, a title plate after it (a long group's stuck title, the 3D scene's path), «Go to original» and the round buttons on
   the right stand --hy-row-top from the window's top, --hy-row-gut from its sides, --hy-plate-h tall, --hy-row-gap apart; a mode's hint
   plate and the side panels start --hy-row-under from the top. design/audit.js «top-row» measures it in every mode.
   .hy-plate is the look of a plate that rides in the row without one of its own: the crumb's glass, edge, shadow, corners and words; its
   long text ends in … inside the capsule's padding. A page places it and never restyles it (scripts/validate.py «row-plate») */
/* the look of .hy-plate and <hy-plate> is ui/hy/plate.css */

/* One radius for every control that is a row of a panel: a slider, a select, a field, a button in a row (owner 2026-10-06: «почему они
   опять несинхронны, одни круглые другие квадратные», the 3D editor's dropdowns were rounded rectangles beside pill sliders). A pill in
   the round look, 8 px in «pro»; the slider (ui/slider.css --hy-sl-r), the settings' choices, the 3D editor's DialKit rows and the frame
   editor's --r-ctl all read it, so a panel never mixes two shapes. */
/* A row of a tree list: the media library's folder row (review/library.html .frow) is the look (owner 2026-10-06: «why so much inconsistencies in
   ui, just make all ui consistant»), and the 3D editor's layer list reads it from here: 28 px tall, 8 px corners, a grey hover. The selected
   row is the image editor's selected layer (hyimg-frame-studio editor .lr.sel, owner 2026-10-07: «выбранный объект вообще незаметен, должно быть,
   как вот здесь в эдиторе фото»): a fill and a line in the selection colour then; since 11-13 the cool grey-blue plate with no line (--hy-trow-on, variant A); a
   selected row under the pointer stays selected */

/* «Pro»: no pills; a 38 px plate takes 11 px, a bar 14 px, a button inside a plate 8 px */
:root[data-shape=pro] :is(#crumb, #bset, #bhist, #bshare, #bpow, #wl, #load .crumb, .hy-back) {
  border-radius: var(--hy-plate-r) !important; }
/* the bug report's dock is a .bar too: its keys took Pro's 8 px with the dock key (slice 1c), the bar follows */
:root[data-shape=pro] :is(#dock, #bugfz .bug-dock) { border-radius: var(--hy-bar-r) !important; }
:root[data-shape=pro] :is(#crumb button, #crumb :is(hy-button, hy-icon-button), #dock button, .fcr) { border-radius: var(--hy-r-3) !important; }

/* How the top line comes in (owner 2026-10-04: «the crumb and this button must grow out of scale 0, not just drop in; the crumb
   from 1:1 widens, and its parts fade in one after another, home › board › page»): the library button pops out of its centre, the
   crumb grows as a circle at its left end, opens to its width, then its parts come one by one. It runs for the canvas's #crumb on
   load (hy-open), Home's loading plate and button when a board opens (#load.on), and what has .hy-grow / .hy-pop. The clip is
   only for the move (backwards fill), so the shadow is whole after it. */
@keyframes hyPop { from { transform: scale(0); } to { transform: none; } }
/* the crumb grows in grey, as a control not ready yet (the library button's lib-wait), and turns active the moment it is a whole circle,
   before it opens to its width (owner 2026-10-04) */
@keyframes hyGrow {
  0% { transform: scale(0); opacity: .4; clip-path: inset(0 calc(100% - 38px) 0 0 round var(--pl-r)); animation-timing-function: cubic-bezier(.33, 0, .2, 1); }
  40% { transform: none; opacity: .4; clip-path: inset(0 calc(100% - 38px) 0 0 round var(--pl-r)); animation-timing-function: cubic-bezier(.45, 0, .2, 1); }
  52% { opacity: 1; } 100% { transform: none; opacity: 1; clip-path: inset(0 0 0 0 round var(--pl-r)); } }
@keyframes hyPart { from { opacity: 0; } to { opacity: 1; } }
:is(.hy-pop) { animation: hyPop var(--hy-t-page) var(--hy-ease-pop) var(--pop-d, .1s) backwards; }
/* hy-allow: duration-literal the staggered reveal of the loading mark (hyGrow), a choreography longer than --hy-t-page */
:is(.hy-grow, :root.hy-open #crumb, #load.on .crumb) { transform-origin: 19px 50%; animation: hyGrow 1.1s linear var(--grow-d, .1s) backwards; }
:is(.hy-grow, :root.hy-open #crumb, #load.on .crumb) > * { animation: hyPart var(--hy-t-page) ease backwards; }
/* the house is there from the start: it grows in the grey circle and turns active with it (owner 2026-10-04); the rest come after */
:is(.hy-grow, :root.hy-open #crumb, #load.on .crumb) > :nth-child(1) { animation: none; }
/* hy-allow: duration-literal the staggered reveal of the loading mark (hyGrow), a choreography longer than --hy-t-page */
:is(.hy-grow, :root.hy-open #crumb, #load.on .crumb) > :nth-child(2) { animation-delay: calc(var(--grow-d, .1s) + .72s); }
/* hy-allow: duration-literal the staggered reveal of the loading mark (hyGrow), a choreography longer than --hy-t-page */
:is(.hy-grow, :root.hy-open #crumb, #load.on .crumb) > :nth-child(3) { animation-delay: calc(var(--grow-d, .1s) + .8s); }
/* hy-allow: duration-literal the staggered reveal of the loading mark (hyGrow), a choreography longer than --hy-t-page */
:is(.hy-grow, :root.hy-open #crumb, #load.on .crumb) > :nth-child(4) { animation-delay: calc(var(--grow-d, .1s) + .88s); }
/* hy-allow: duration-literal the staggered reveal of the loading mark (hyGrow), a choreography longer than --hy-t-page */
:is(.hy-grow, :root.hy-open #crumb, #load.on .crumb) > :nth-child(5) { animation-delay: calc(var(--grow-d, .1s) + .96s); }
/* hy-allow: duration-literal the staggered reveal of the loading mark (hyGrow), a choreography longer than --hy-t-page */
:is(.hy-grow, :root.hy-open #crumb, #load.on .crumb) > :nth-child(n+6) { animation-delay: calc(var(--grow-d, .1s) + 1.04s); }
#load.on .crumb { --grow-d: .35s; --pop-d: .3s; }   /* Home's loading screen comes in over .3 s first */
@media (prefers-reduced-motion: reduce) { :is(.hy-pop), :is(.hy-grow, :root.hy-open #crumb, #load.on .crumb), :is(.hy-grow, :root.hy-open #crumb, #load.on .crumb) > * { animation: none; } }

/* the library button's picture shows the library: a thin strip when closed, the panel when open, sliding between the two */
.lbi .pane { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(.34); opacity: .4; transition: transform var(--hy-t-slow) var(--hy-ease-out), opacity var(--hy-t-base) ease; }
[aria-pressed=true] > .lbi .pane { transform: none; opacity: .85; }

/* Menus: one kind of item everywhere (owner 2026-10-04, ui/menu.js): an icon, the label, the shortcut on the right in key caps as
   in the shortcuts panel; the board's right click, the pages menu, the library's card menu, Home's menus */
:is(#ctx, #lctx, .menu) button { gap: var(--hy-sp-8); }
:is(#ctx, #lctx, .menu) button > svg { flex: none; opacity: .75; }
:is(#ctx, #lctx, .menu) .ml { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
:is(#ctx, #lctx, .menu) button.danger { color: var(--hy-red); } :is(#ctx, #lctx, .menu) button.danger > svg { opacity: 1; }   /* what removes something: red */
:is(#ctx, #lctx, .menu) button.danger:hover { background: color-mix(in srgb, var(--hy-red) 14%, transparent); color: var(--hy-red); }
/* the row that fits the moment (owner 2026-10-20: «первостепенно»; the zoom's «Zoom to selection» with a selection): the selection's blue */
:is(#ctx, #lctx, .menu) button.pri:not([aria-disabled=true]) { color: var(--hy-sel); }
:is(#ctx, #lctx, .menu) button.pri:not([aria-disabled=true]) > svg { opacity: 1; }
:is(#ctx, #lctx, .menu) button.pri:not([aria-disabled=true]):is(:hover, :focus-visible, .hot) { background: color-mix(in srgb, var(--hy-sel) 16%, transparent); color: var(--hy-sel); }
.mi0 { width: 15px; flex: none; }
.mk { display: inline-flex; gap: var(--hy-sp-4); margin-left: var(--hy-sp-16); flex: none; }
/* A submenu (ui/menu.js hyMenuSub, owner 2026-10-06): the item ends in the app's chevron; its panel opens beside it, a child of the menu, and
   takes the menu's own panel look (background, border, radius, padding, blur), so the board's, the library's and Home's submenus each look
   like their menu. It grows out of the opener's side with the app's easing; the opener keeps its row lit while its panel is open. */
.msub { display: inline-grid; place-items: center; margin: 0 0 0 var(--hy-sp-12); flex: none; }
/* a row with an action of its own (hyMenuSub act): its chevron is a target of its own, the row's height and a little wider, lit under the pointer;
   a row that turns something on and off shows the app's mini toggle before it (hyMenuSub toggle; owner 2026-11-20, the zoom menu's «Perspective») */
[data-hysubact] > .msub { align-self: stretch; margin: 0 calc(-1 * var(--hy-sp-4)) 0 var(--hy-sp-6); padding: 0 var(--hy-sp-4); border-radius: var(--hy-r-2);
  transition: background var(--hy-t-fast) var(--hy-ease); }
[data-hysubact] > .msub:hover { background: var(--hy-hov); }   /* over the row's own light: a step lighter */
[data-hysub] > hy-minitoggle[static] { margin-left: var(--hy-sp-12); }
:is(#ctx, #lctx, .menu, [data-hymenu]) .hy-sub { position: absolute; z-index: var(--hy-z-local); display: block; box-sizing: border-box; width: max-content; min-width: 180px;
  max-width: min(360px, calc(100vw - 16px));
  padding: inherit; border: inherit; border-radius: inherit; background: inherit; -webkit-backdrop-filter: inherit; backdrop-filter: inherit; box-shadow: var(--plate-sh);
  overscroll-behavior: contain; transform-origin: 0 0; animation: hySubIn var(--hy-t-base) var(--hy-ease); }
:is(#ctx, #lctx, .menu, [data-hymenu]) .hy-sub[data-side=left] { transform-origin: 100% 0; }
@keyframes hySubIn { from { opacity: 0; transform: scale(.96); } }
:is(#ctx, #lctx) button[aria-expanded=true] { background: var(--raise); color: var(--ink); }
.menu button[aria-expanded=true] { background: var(--raise2); }
:is(#ctx, #lctx, .menu) button[aria-expanded=true] .hy-chev { color: var(--sub); }
@media (prefers-reduced-motion: reduce) { :is(#ctx, #lctx, .menu, [data-hymenu]) .hy-sub { animation: none; } }
/* a quiet line in a menu, not an item: what the clipboard holds under «Paste properties ›» (owner 2026-10-06) */
:is(#ctx, #lctx, .menu, [data-hymenu]) .mhint { max-width: 320px; padding: var(--hy-sp-6) var(--hy-sp-8) var(--hy-sp-6); color: var(--muted); font: var(--hy-fs-12) var(--sans);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The one disabled item of every menu (owner 2026-10-06: «if some options are not available they must simply be grey»): the muted colour,
   no row light under the pointer, its icon and keys in the same grey; its reason is its tooltip (ui/menu.js hyMenuOff) */
:is(#ctx, #lctx, .menu, [data-hymenu]) :is(button:disabled, button[aria-disabled=true]), :is(#ctx, #lctx, .menu, [data-hymenu]) :is(button:disabled, button[aria-disabled=true]):hover {
  color: var(--hy-dis-ink); background: none; cursor: default; }
/* round 9 (r9-states 76 A): a row has no fill of its own, so it is the grey ink whole, its icon and keys too (was its icon at .45) */
:is(#ctx, #lctx, .menu, [data-hymenu]) :is(button:disabled, button[aria-disabled=true]) > :is(svg, img, .mk, .msub),
:is(#ctx, #lctx, .menu, [data-hymenu]) :is(button:disabled, button[aria-disabled=true]) > .mk > :is(kbd, hy-kbd) { color: var(--hy-dis-ink); }
/* Two rows that can each be lit never touch (owner 2026-10-09 on the board's name menu, the open board's row and the one under the pointer one
   block: «опять проблема с расстоянием ... в менюшках, в наших сайдбарах. Это все нужно поправить»): --hy-gap-row between what two rows paint.
   A row keeps its pitch and the pointer never falls between two rows: its light stands half the gap in from its top and its bottom (a clear
   border, the background clipped inside it), so a 32 px item is lit 30 px tall. Every menu and submenu, the pages, the library's folders,
   the history, Home's bell and Dropbox rows, a searching menu's list (.plist, a grey row too), Image Studio's History and
   Channels. The core's row list (ui/hy/rows.css: Dev Studio's tree, 3D's layers) paints the same gap itself.
   A list that spaces its rows itself (Home's sidebar and list, the bell, Info's notes, the comments, Image Studio's Layers) keeps its gap; tests/test_design_rowgap.py */
:is(#ctx, #lctx, .menu, [data-hymenu], .hy-sub, .hy-oi-menu, .hy-pm .plist) > button, #pages .row:not(.dv), .frow, #ntf .hb-h, .dbx-row,
#histList :is(.hv, .hgrp), #evList .ev, #phist .hrow, #pchan .chr {
  box-sizing: border-box; border-block: calc(var(--hy-gap-row) / 2) solid transparent !important; background-clip: padding-box !important; }
/* the history's timeline runs on through the rows' gap */
#histList :is(.hv, .hgrp):not(.first)::before, #evList .ev:not(.first)::before { top: calc(var(--hy-gap-row) / -2); }
#histList :is(.hv, .hgrp):not(.last)::before, #evList .ev:not(.last)::before { bottom: calc(var(--hy-gap-row) / -2); }

/* The settings panel, the same on Home and on the board: ui/setpanel.js and setpanel.css (owner 2026-10-07) */
.ml .mh { color: var(--muted); margin-left: var(--hy-sp-4); }   /* a quiet note after a label («доски останутся») */
/* the library over the whole window: the picture's panel fills its frame (owner 2026-10-04: «the icon does not move when it widens») */

/* The paper (owner 2026-10-04: «why is the library black and not the board's colour; a variable for the standard colour, and the
   colour for the light and the dark theme changeable in the settings»): one colour for the board, Home, the loading screen, the
   library's panel and the window under them. --paper-d / --paper-l are the settings cv.paperDark / cv.paperLight, put on the root
   by each page; --paper is the one of the theme in use. Its two colours are in the settings panel (ui/setpanel.js). */

/* No focus ring under the mouse (owner 2026-10-05: «убери эти уебищные focus выделения»): a clicked control shows no outline, menus keep
   their row highlight for the arrow keys, text fields their border colour while typing. Since round 20 (owner 2026-10-11, ★ on misc-b.html,
   panels audit P-23: «кольцо только с клавиатуры (Tab), мышь его не вызывает») a control reached by the keyboard shows a 2 px ring of the
   selection's blue, as Apple's HIG and Figma do: before, a Tab through the top row moved the focus where no one could see it. The browser's
   :focus-visible tells the keyboard from the mouse; menu rows, tree rows and fields keep their own light */
/* Round 9 of «shell, one look» (r9-states 78 A, owner 2026-10-27, c25c7c3cf04: «кольцо выделения я бы делал потоньше… тогда вариант А
   берем и делаем сразу»): the ring is 1.5 px INSIDE the shape (--hy-focus-off is minus its width), so in the dock it never lies on the
   neighbour (Zoom out's ring used to cover the 64 % pill); a field and a card wear the same ring; the colour is the place's (--hy-sel where
   the ring is drawn, so a studio's root gives its own) and white on a filled blue button. A field that is its own shape (the search, a
   well field of a studio, a list) takes it while it has the cursor; a field of the interface (.hy-fld, ui/hy/field.css, round 14 sheet A, owner
   2026-10-29: «Тихое поле») has none: its well one step brighter is its focus; a bare editor (a note's words, the bug report's text) keeps its caret only. An on state is never a ring: only the focus. */
:focus { outline: none !important; }
:is(button, a[href], summary, [role=button], [role=tab], [role=switch], [role=checkbox], [role=radio],
  select, input[type=color]):not([role=menuitem], [role=option], [role=treeitem], .hy-fld):focus-visible, :is(.hy-q-well > input, .hy-blk button).hy-fld:focus-visible {
  --hy-focus-ring: var(--hy-focus-w) solid var(--hy-focus-c, var(--hy-sel, var(--sel)));
  outline: var(--hy-focus-ring) !important; outline-offset: var(--hy-focus-off); }
/* a row of a layer list or tree that has the keyboard (ui/hy/tabzones.js, r10-keyboard 108 A): its hover light and the same ring; its own
   buttons show while it has the focus (ui/hy/micro.css) */
.hy-hovrow:focus-visible { --hy-focus-ring: var(--hy-focus-w) solid var(--hy-focus-c, var(--hy-sel, var(--sel)));
  outline: var(--hy-focus-ring) !important; outline-offset: var(--hy-focus-off); background: var(--hy-blk-hov); }
:is(hy-button, hy-icon-button, hy-open-in)[variant=accent], #hyTop > #bshare { --hy-focus-c: var(--hy-pri-ink, #fff); }

/* The one chevron (owner 2026-10-04: «the arrow differs at the end and between the steps; it must be the same everywhere, in the 3D
   studio, the library, the crumb, the folders»): ui/menu.js HY_CHEV, 12 px, a 1.2 px line, the muted colour; turned down (.dn) it opens a
   list, turned down on an open folder of a tree. The crumbs give it the same room on either side: steps 8 px in, 1 px around it. */
.hy-chev { display: block; width: 12px; height: 12px; flex: none; color: var(--muted); }
.hy-chev.dn { transform: rotate(90deg); } .hy-chev.bk { transform: rotate(180deg); }   /* back: the same chevron turned left */
/* a list's step marker and a text disclosure draw it as a mask (ui/icons.js --hy-ic-chev): the loading steps, a code block's summary */
/* ▾ on a pill or a round button that opens a list (the split button's arrow, «More ▾», a button with its value, a studio's list): that chevron
   turned down, 12 px, its 1.2 px line, in --hy-caret (ui/tokens.css), one look in every place (owner 2026-10-27, round 4, c037124d0c4) */
.hy-caret { color: var(--hy-caret); }

/* The search field is ui/hy/search.css (one element, ui/hy/search.js). */

/* a project's icon (ui/projicon.js): a line icon in its colour or an emoji, the same box either way; Home, the board's crumb */
.pji { display: inline-grid; place-items: center; width: var(--pj); height: var(--pj); flex: none; line-height: 1; }
.pji svg { width: 100%; height: 100%; }
.pji.emo { font-size: calc(var(--pj) * .8); }   /* an emoji is wider than its letters: a little smaller, the same room beside it as an icon has */

/* One choice component app-wide (owner 2026-10-06: «why isn't this a switch like ours», about Home's cards/list switch): a .seg is one
   capsule of options, the chosen one sits on a thumb that slides under it, eased (ui/seg.js puts the thumb in and moves it), as the
   frame editor's switch. Home's views, the settings of Home and the board, the library's rating filter. Round in the round look,
   8 px with a 6 px thumb in «pro». */
.seg { position: relative; display: inline-flex; align-items: center; gap: var(--hy-sp-2); padding: round(down, var(--hy-seg-pad), var(--hy-sp-2));
  border-radius: var(--hy-r-pill); background: var(--hy-seg-track);
  isolation: isolate; }
.seg > .st { position: absolute; left: 0; top: 0; z-index: 0; width: 0; height: 0; border-radius: var(--hy-r-pill); background: var(--panel); pointer-events: none;
  box-shadow: var(--hy-seg-thumb-sh);
  transition: transform var(--hy-t-slow) var(--hy-ease-out), width var(--hy-t-slow) var(--hy-ease-out), height var(--hy-t-slow) var(--hy-ease-out), opacity var(--hy-t-base) var(--hy-ease-out); }
.seg > .st.now { transition: none; }
.seg > button { position: relative; z-index: var(--hy-z-local); border: 0; background: transparent; border-radius: var(--hy-r-pill); color: var(--sub); cursor: pointer;
  transition: color var(--hy-t-base) var(--hy-ease-out); }
.seg > button:hover { color: var(--ink); }
/* the thumb is the one selected look: a chosen button draws no ground of its own */
.seg.has-st > button[aria-pressed=true], .seg.has-st > button.on { background: transparent !important; box-shadow: none !important; color: var(--ink); }
.seg > button:focus, .seg > button:focus-visible { outline: none; }
/* DialKit's choice in a row (the 3D studio's «Off | On», the library's criteria) is this switch too (owner 2026-10-06: its chosen pill
   touched the row's top and bottom, the row 28 px and the switch 34): the row is its track, the switch fills it to the row's right end
   and its pill sits var(--hy-seg-pad) in on every side, its radius the row's less that inset, so the curves stay concentric */
html .dialkit-root .dialkit-labeled-control:has(> .dialkit-segmented) { padding-block: 0; padding-right: 0; }
html .dialkit-root .dialkit-labeled-control > .dialkit-segmented { align-self: stretch; margin: 0; padding: round(down, var(--hy-seg-pad), var(--hy-sp-2)); }
html .dialkit-root .dialkit-labeled-control > .dialkit-segmented .dialkit-segmented-button { padding-block: 0; }
html .dialkit-root .dialkit-segmented > .dialkit-segmented-pill { top: var(--hy-seg-pad); bottom: var(--hy-seg-pad); border-radius: max(0px, calc(var(--dial-radius, 8px) - var(--hy-seg-pad))); }
:root[data-shape=pro] .seg { border-radius: var(--hy-seg-r) !important; } :root[data-shape=pro] .seg > :is(.st, button) { border-radius: calc(var(--hy-seg-r) - var(--hy-seg-pad)) !important; }
:root[data-ui="studio"] .seg > .st { background: var(--raise2); box-shadow: var(--st-shadow-s, 0 1px 2px rgba(0, 0, 0, .2)); }
/* hy-allow: duration-literal a quick fade, shorter than --hy-t-fast (token gap: a .1 s step) */
@media (prefers-reduced-motion: reduce) { .seg > .st { transition: opacity .1s; } }

/* Hints: .hy-hint and .hy-info, <hy-hint> and <hy-info> (owner 2026-10-06) are ui/hy/hint.css */

/* The W ↔ H link (.hy-link, ui/icons.js linkWH) is the pair's: ui/hy/pair.css */

/* The padlock of every lock toggle (ui/icons.js hyLockIcon; owner 2026-10-07: «чтобы поворачивалась эта дуга, когда открывается»):
   locked, the shackle closed and the icon at full contrast; open, the shackle lifted 1.5 and swung 30° about its right leg (the pivot at
   16, 11 on the 24 grid), the icon dimmer. A change of «locked» on a drawn icon moves it along the app's curve in 260 ms; .go plays the
   last move on a freshly drawn one. The arch leaves the 24 box when open: the svg does not clip it */
.hy-lock { overflow: visible; transition: opacity var(--hy-t-slow) var(--hy-ease); }
.hy-lock:not(.locked) { opacity: .6; }
.hy-lock .sh { transform-box: view-box; transform-origin: 16px 11px; transition: transform var(--hy-t-slow) var(--hy-ease); }
.hy-lock:not(.locked) .sh { transform: translateY(-1.5px) rotate(30deg); }
.hy-lock.go.locked .sh { animation: hyLockShut var(--hy-t-slow) var(--hy-ease); }
.hy-lock.go:not(.locked) .sh { animation: hyLockLift var(--hy-t-slow) var(--hy-ease); }
.hy-lock.go.locked { animation: hyLockOn var(--hy-t-slow) var(--hy-ease); }
.hy-lock.go:not(.locked) { animation: hyLockOff var(--hy-t-slow) var(--hy-ease); }
@keyframes hyLockShut { from { transform: translateY(-1.5px) rotate(30deg); } to { transform: none; } }
@keyframes hyLockLift { from { transform: none; } to { transform: translateY(-1.5px) rotate(30deg); } }
@keyframes hyLockOn { from { opacity: .6; } }
@keyframes hyLockOff { from { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hy-lock, .hy-lock .sh { transition: none; animation: none !important; } }
/* «New page» sticks to the bottom of a long page list, wherever it is scrolled (owner 2026-10-15: «он должен быть прилипший к низу»);
   it covers the list's bottom padding and the rows scroll under its plate */
#pages > .add { position: sticky; bottom: calc(-1 * var(--hy-pop-pad)); z-index: var(--hy-z-local); margin-bottom: calc(-1 * var(--hy-pop-pad));
  background: var(--hy-pop-bg); backdrop-filter: var(--hy-pop-blur); -webkit-backdrop-filter: var(--hy-pop-blur); }
/* the unread dot (ui/unread.js, owner 2026-10-20): one blue dot after a name, the pages menu's row, the page button and Home's cards and
   rows (ui/homebell.js); where it sits is each page's own rule. A span: the page button (a button) also gets the class .un as its state */
span.un { display: inline-block; width: var(--hy-dot-sz); height: var(--hy-dot-sz); border-radius: 50%; background: var(--hy-sel); flex: none; }
/* the dot as a badge (owner 2026-10-24 on the page button «Ideation ● ⌄»: «синяя точно не должна занимать место она как. badge над правым
   врхнем углом тайтла страницы»): .un-at holds a name and its dot, the dot lies over the name's top-right corner out of the flow, so the
   name and what follows it sit as if there were no dot. The name is cut with an ellipsis inside it, so the dot cannot be the name's child */
.un-at { position: relative; display: inline-flex; align-items: center; min-width: 0; max-width: 100%; }
.un-at > span.un { position: absolute; top: -3px; right: -6px; }

/* Glass blur, two switches of Settings › Performance (owner 2026-10-24: «ну давай прост онастройку такую сделаем где можно отдельно для
   элементов на доске или ui элементов это выключить»). On «Project - MetaSecret» › «Ideation» with GPU (beta) the blur under the bars, the
   dock and the glass notes took most of a frame: pan p95 565 ms with it, 18 ms without (Concepts/workflows/2610241700-rust-view).
     cv.glassitems "0"  what lies on the board (#world: glass notes, their arrow knobs, the corner squares, a card's own glass)
     cv.glassui "0"     the window around it: the top row, the dock, panels, menus, tooltips and the selection bar (a toolbar riding in #world)
   The page puts data-noblur="items ui" on its root before its first paint and on every change (canvas.html applyLook). Off, an element keeps
   its look without the blur and on a more opaque ground: the tokens in ui/tokens.css (--hy-glass-bg, --hy-pop-bg, --hy-side-bg) and below.
   The veil over a board during a switch (ui/switcher.css) keeps its blur: it is the switch's look, drawn over a board at rest, not a bar
   over a moving one (owner 2026-10-28, ticket rq7c526c88d8: «нет, сейчас блюр эффекта, который был раньше»). */
:root[data-noblur~=items] #world :not(.tidy, .tidy *), :root[data-noblur~=items] #world :not(.tidy, .tidy *)::before,
:root[data-noblur~=ui] :not(#world, #world *, .hysw-veil), :root[data-noblur~=ui] :not(#world, #world *, .hysw-veil)::before,
:root[data-noblur~=ui] #world :is(.tidy, .tidy *) { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
:root[data-noblur~=items] #stage.glass #world .note { background: color-mix(in srgb, var(--note) 92%, transparent); }   /* ui/noteglass.css: 76 % */
:root[data-noblur~=items] #stage.glass .cn { background: color-mix(in srgb, var(--note) 85%, transparent); }
:root[data-noblur~=ui] :is(hy-keyhint:not([bare]), hy-tip[glass], .tidy) { background: color-mix(in srgb, var(--panel) 95%, transparent); }   /* 66 %, 82 % */
:root[data-noblur~=ui] #dock.bar { --hy-dock-bg: color-mix(in srgb, var(--panel) 95%, transparent);
  background: color-mix(in srgb, var(--hy-dock-bg) calc(var(--q-a, 1) * 100%), transparent); }   /* 78 %; quiet mode scales it (plate.css) */

/* Full screen in the Mac app: the window's four corners are rounded in black, as the display of a MacBook Pro is at its top (owner 2026-11-11: «по краям… черные
   скругления как у макбука pro… когда в полноэкранном режиме… только в приложении десктопном»). One box over the page with the corner's radius and a black shadow
   around it: only what the radius cuts off is painted, nothing takes the pointer. in-app and hy-fs are set by the top pages (library.html, home.html) when the app says
   so (hyimgFS); a board in a browser, or the app in a window, has neither. --hy-fs-corner: the radius */
:root.in-app.hy-fs::after { content: ""; position: fixed; inset: 0; z-index: var(--hy-z-inspector); pointer-events: none;
  border-radius: var(--hy-fs-corner, 20px); box-shadow: 0 0 0 48px var(--hy-media-bg); }   /* 12 px read as nothing («слабо нужно больше»), at 26 the
   backlight showed in the black of the corner («видно подсветку… что-то между первым и текущим вариантом») */
