/* What every page shares in both looks (owner 2026-10-04: «standardised»). The tokens (--hy-red, --hy-sh-ctl, --hy-sh-pop) are in ui/tokens.css. */

/* What only the Mac app can do (Finder, local models, power modes) carries data-desktop-only; the online adapter sets <html data-online> before the page
   runs and the one rule below hides it (owner 2026-10-28: one code, adapters only). */
[data-online] [data-desktop-only] { display: none !important; }

/* Reset buttons: the 3D editor's dock (everything) and the end of each editor panel. Always in their place:
   pale and not pressable while there is nothing to take back, red once there is. */
.hy-reset { transition: color var(--hy-t-fast), background-color var(--hy-t-fast), opacity var(--hy-t-fast); }
.hy-reset:disabled { color: var(--hy-dis-ink); cursor: default; }
/* the danger hy-button's tint (ui/hy/button.css [variant=danger]): the dock's reset and the popover's are one button */
.hy-reset:not(:disabled) { color: var(--hy-red) !important; background: color-mix(in srgb, var(--hy-red) 14%, transparent) !important; }
.hy-reset:not(:disabled):hover { background: color-mix(in srgb, var(--hy-red) 22%, transparent) !important; }
/* in a dock it carries its word (owner 2026-10-04: «why is there no reset in the 3D studio»: a bare ↺ read as one more tool); red words on
   the red tint as every reset, the danger kind of the buttons (owner 2026-10-14, c16f1241f2f: «Опасная вбирает reset») */
.bar button.hy-reset { width: auto !important; padding: 0 var(--hy-rpad, var(--hy-pad-l)) !important;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--hy-sp-6); white-space: nowrap; }
.bar button.hy-reset svg { width: 15px; height: 15px; flex: none; }

/* Shadows (owner 2026-10-04: «at the bottom and on the right there are some, elsewhere none: standardise»). Two depths for everything
   that floats over the board or the library, set here once instead of per element:
   - a control lying on the surface: the round keys and the plate at the top, the docks, the view switch, the bars over a selection,
     the notes at the top;
   - a panel or a menu opened over it: settings, history, notifications, keys, pages, the right-click menu, the frame card, the
     library beside the canvas, the viewer's side, popovers, the 3D editor's panels.
   Darker in the dark theme, where a light shadow does not show. The controls of the top row, a mode's hint plate and the docks read
   --hy-sh-row-ctl, flat with «Тени: только панели»; the bars over a selection and the toasts keep theirs (ui/tokens.css). */
:is(#bset, #bhist, #bshare, #crumb, #jump > hy-button, .hy-back, #hint, .bar, .tools) { box-shadow: var(--hy-sh-row-ctl) !important; }
:is(#hyToasts .ht, .pickbar) { box-shadow: var(--hy-sh-ctl) !important; }
hy-bar { box-shadow: var(--hy-bar-sh) !important; }   /* the bar over a selection: its token aliases --hy-sh-ctl (ui/tokens.css) */
:is(#sets, #hist, #ntf, #keys, #pages, #ctx, #info, .pop, .side, body.cv-on main, .fdrawer.open:not(body.fdock .fdrawer), .m3p) { box-shadow: var(--hy-sh-pop) !important; }
