
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 800;
  font-display: swap; src: url("/fonts/manrope-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 800;
  font-display: swap; src: url("/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2192, U+2212;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900;
  font-display: swap; src: url("/fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900;
  font-display: swap; src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2192, U+2212;
}

:root {
  /* the selection's colours where the browser draws it (15.813): dark on the light theme */
  --sel-bg: #2a2725; --sel-ink: #f6f4f1;
  --round: .375;

  --r-xs:   calc(16px * var(--round));
  --r-xs:   round(calc(16px * var(--round)), 1px);
  --r-s:    calc(var(--h-btn-sm) * var(--round));
  --r-s:    round(calc(var(--h-btn-sm) * var(--round)), 1px);
  --r:      calc(var(--h-btn) * var(--round));
  --r:      round(calc(var(--h-btn) * var(--round)), 1px);
  --r-l:    calc(44px * var(--round));
  --r-l:    round(calc(44px * var(--round)), 1px);
  --r-xl:   calc(60px * var(--round));
  --r-xl:   round(calc(60px * var(--round)), 1px);
  --r-full: 9999px;

  --cur-grab: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path d="M12.2 27.5 C9.6 25.4 7.4 22.6 6.4 20.2 C5.8 18.8 6.3 17.6 7.5 17.2 C8.5 16.9 9.4 17.3 10.1 18.4 L11.2 20.1 L11.2 8.6 C11.2 7.3 12.0 6.5 13.1 6.5 C14.2 6.5 15.0 7.3 15.0 8.6 L15.0 14.6 L15.0 6.2 C15.0 4.9 15.8 4.1 16.9 4.1 C18.0 4.1 18.8 4.9 18.8 6.2 L18.8 14.6 L18.8 6.8 C18.8 5.5 19.6 4.7 20.7 4.7 C21.8 4.7 22.6 5.5 22.6 6.8 L22.6 14.9 L22.6 9.4 C22.6 8.2 23.4 7.4 24.4 7.4 C25.5 7.4 26.3 8.2 26.3 9.4 L26.3 19.4 C26.3 24.0 23.6 27.5 20.0 27.5 Z" fill="%231C1B18" stroke="%23ffffff" stroke-width="2.6" stroke-linejoin="round"/><path d="M12.2 27.5 C9.6 25.4 7.4 22.6 6.4 20.2 C5.8 18.8 6.3 17.6 7.5 17.2 C8.5 16.9 9.4 17.3 10.1 18.4 L11.2 20.1 L11.2 8.6 C11.2 7.3 12.0 6.5 13.1 6.5 C14.2 6.5 15.0 7.3 15.0 8.6 L15.0 14.6 L15.0 6.2 C15.0 4.9 15.8 4.1 16.9 4.1 C18.0 4.1 18.8 4.9 18.8 6.2 L18.8 14.6 L18.8 6.8 C18.8 5.5 19.6 4.7 20.7 4.7 C21.8 4.7 22.6 5.5 22.6 6.8 L22.6 14.9 L22.6 9.4 C22.6 8.2 23.4 7.4 24.4 7.4 C25.5 7.4 26.3 8.2 26.3 9.4 L26.3 19.4 C26.3 24.0 23.6 27.5 20.0 27.5 Z" fill="%231C1B18"/></svg>') 16 16, grab;
  --cur-hold: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path d="M11.2 14.2 A1.9 1.9 0 0 1 15.0 14.2 A1.9 1.9 0 0 1 18.8 14.2 A1.9 1.9 0 0 1 22.6 14.2 A1.9 1.9 0 0 1 26.4 14.2 L26.4 19.6 C26.4 24.1 23.8 27.5 20.2 27.5 L12.4 27.5 C9.9 25.6 7.5 22.9 6.7 20.6 C6.1 19.1 6.7 17.9 7.9 17.6 C8.9 17.3 9.7 17.9 10.4 19.0 L11.2 20.2 Z" fill="%231C1B18" stroke="%23ffffff" stroke-width="2.6" stroke-linejoin="round"/><path d="M11.2 14.2 A1.9 1.9 0 0 1 15.0 14.2 A1.9 1.9 0 0 1 18.8 14.2 A1.9 1.9 0 0 1 22.6 14.2 A1.9 1.9 0 0 1 26.4 14.2 L26.4 19.6 C26.4 24.1 23.8 27.5 20.2 27.5 L12.4 27.5 C9.9 25.6 7.5 22.9 6.7 20.6 C6.1 19.1 6.7 17.9 7.9 17.6 C8.9 17.3 9.7 17.9 10.4 19.0 L11.2 20.2 Z" fill="%231C1B18"/></svg>') 16 16, grabbing;

  --pad: 0px;

  --sp-025:  2px;
  --sp-050:  4px;
  --sp-075:  6px;
  --sp-100:  8px;
  --sp-150: 12px;
  --sp-200: 16px;
  --sp-250: 20px;
  --sp-300: 24px;
  --sp-400: 32px;
  --sp-500: 40px;
  --sp-600: 48px;

  --edge-right: var(--sp-150);
  --gap:    16px;

  --bw:      1px;
  --bw-sel:  2px;
  --bw-foc:  2px;

  --h-btn:      32px;
  --h-btn-sm:   24px;
  --h-field:    40px;
  --h-field-sm: 32px;
  --h-row:      32px;
  --qty-w:      96px;
  --h-row-head: 28px;
  --h-menu:     32px;
  --h-act:      68px;
  --act-reserve: calc(var(--sp-300) * 2 + var(--h-btn));
  --h-chip:     22px;
  --h-chip-sm:  18px;
  --h-demo:     60vh;

  --fade:       var(--sp-500);

  --dur-pop:    .16s;
  --dur-fold:   .22s;
  --dur-reveal: .28s;  /* a control that comes with the pointer (15.818) */
  --ease-reveal: cubic-bezier(.2, .7, .2, 1);
  --dur-zoom:   .34s;
  --ease-out:   cubic-bezier(.2, .8, .2, 1);
  --pop-from:   scale(.96);
  --ink-on-dark: #ffffff;
  --ink-on-light: #14181f;
  /* Star's own night (15.657): its sky is night in either theme; the accent glows in it */
  --star-night: #0b0e17;
  /* 15.2440: a ground that is night in either theme (the subscription's stage) and the words over it */
  --night: #191919; --night-ink: #ffffff; --night-ink-2: rgba(255, 255, 255, .72);
  --star-night-2: #161c2e;
  --star-glow-1: #4c1d95;
  --star-glow-2: #7c3aed;
  --star-glow-3: #c084fc;
  --star-ink: #eef1fa;
  --star-ink-2: rgba(238, 241, 250, .64);
  --star-line: rgba(238, 241, 250, .14);
  --star-glass: rgba(255, 255, 255, .06);
  --star-glass-2: rgba(255, 255, 255, .12);
  /* 15.973 («У Star должен быть свой цвет - сделаем Ai градиент»; «Первый вариант из двух фото был лучше» - «Сияние»):
     Star's gradient, its accent and the accent's light-theme forms (the dark theme's - with the dark accent forms) */
  --star-1: #4f8cff;
  --star-2: #9b72f2;
  --star-3: #d96570;
  --star-grad: linear-gradient(110deg, var(--star-1), var(--star-2), var(--star-3));
  /* 15.964: the labels' palette (Line's labels and stages) - a chip takes its colour faintly as its ground and
     strongly as its words, so one value serves both themes */
  --tag-blue: #4f8cff;  --tag-violet: #9b72f2;  --tag-amber: #d9a33a;  --tag-green: #4fa37f;  --tag-rose: #d96570;
  --tag-slate: #7f8a96; --tag-teal: #3aa8a8;    --tag-olive: #8f9a3a;  --tag-orange: #e0823d; --tag-sky: #49b6e6;
  /* 15.965: Atom's green - the mark of its logo, the same in both themes */
  --atom-1: #9fe0c8;
  --atom-2: #66a88f;
  --atom-3: #3f7a66;
  /* 15.1094: Echo's warm gradient - the mark of its logo; deeper on the light theme to keep its contrast */
  --echo-1: #f08a2c;
  --echo-2: #e8364a;
  --echo-3: #a83aa6;
  /* 15.1096: Line's light - the point deep blue on the light theme, white on the dark */
  --line-1: #2d5bff;
  --line-2: #2f9dff;
  --line-3: #7a6bff;
  /* 15.1144: Ares's muted tones - light-black on the light theme, a light gradient */
  --ares-1: #3b3b42;
  --ares-2: #1c1c21;
  /* 15.1131: Star's «Звёздная пыль» - its logo; on the light theme the white end turns lilac to stay seen */
  --star-dust-1: #a48bff;
  --star-dust-2: #7b5cf5;
  --star-dust-3: #4f33c8;
  --star-acc-solid: #6f4fd0;
  --star-acc-weak: #f2edfd;
  --star-acc-weak-2: #e3d8fb;
  --star-acc-ink: #5634b8;
  --star-acc-fg: #170f2e;

  --part-1: #4687d8; --part-2: #c7692d; --part-3: #9c6dc8; --part-4: #329d5a; --part-5: #0094c9;
  --part-6: #b67700; --part-7: #00a086; --part-8: #787ad8; --part-9: #c75e86; --part-10: #998700;
  --part-11: #b663ab; --part-12: #709528; --part-13: #009dac; --part-14: #cd5f5c; --part-15: #5f7f99;
  /* the dashboard's greeting (15.2974): the day's sky by the hour, the sun and the moon */
  --sky-morning-a: #FFC9A0; --sky-morning-b: #FFEBD2; --sky-day-a: #A9D8FF; --sky-day-b: #E3F2FF;
  --sky-evening-a: #FFB48A; --sky-evening-b: #E2C8F2; --sky-night-a: #AEB8EC; --sky-night-b: #D9D3F4;
  --sun: #F5A524; --moon: #7C86B8;

  --bg:        #F7F6F3;
  --card:      #FFFFFF;
  --field:     #FFFFFF;
  --field2:    #F2F1ED;
  --line:      #DEDCD5;
  --line2:     #B9B6AC;

  --a-100: rgba(23, 23, 23, .03);
  --a-200: rgba(5, 21, 36, .06);
  --a-300: rgba(11, 18, 14, .14);
  --a-400: rgba(8, 15, 33, .29);

  --ink:       #292A2E;
  --ink2:      #57585E;
  --ink3:      #6E7078;
  --ink-dis:   rgba(8, 15, 33, .29);

  --switch-off: #8E9097;
  --grid-line: rgba(5, 21, 36, .05);

  /* the program's own accent «Изумруд» (15.2761) as theme.js counts it, before the script applies a person's choice */
  --acc:        #14A05A;
  --acc-solid:  #11884D;
  --acc-weak:   #E0F3EA;
  --acc-weak-2: #C4E7D6;
  --acc-ink:   #0C5D34;
  --acc-fg:    #1C1B18;
  /* an accent button (15.2760): a deep fill of the accent, its light tone inside; theme.js counts both for any accent */
  --acc-btn:     #0C5F36;
  --acc-btn-ink: #C5FCE0;

  --rail-mark: color-mix(in srgb, var(--acc-solid) 60%, #000);
  /* The desk under paper - the page tone with 6 % ink (14.102): the sheet window and the page view (15.673) */
  --sheet-desk: color-mix(in srgb, var(--bg) 94%, var(--ink));

  --danger:        #C9372C;
  --danger-fg:     #FFFFFF;
  --danger-weak:   #FFEDEB;
  --danger-weak-2: #FFD5D2;
  --danger-ink:    #AE2E24;
  --warn:          #FBC828;
  --warn-weak:     #FFF7D6;
  --warn-weak-2:   #FFEFB8;
  --warn-ink:      #7F5F01;
  --atom-ink:      #5B4BC4;
  --good:          #1F7A4D;
  --good-weak:     #E6F7EF;
  --good-weak-2:   #CFEFDF;
  --good-ink:      #1E5138;
  --info-weak:     #E9F2FF;
  --info-weak-2:   #CCE0FF;
  --info-ink:      #0055CC;

  --fill-acc:    linear-gradient(180deg, var(--acc-weak)    0%, var(--acc-weak-2)    100%);
  --fill-danger: linear-gradient(180deg, var(--danger-weak) 0%, var(--danger-weak-2) 100%);
  --fill-warn:   linear-gradient(180deg, var(--warn-weak)   0%, var(--warn-weak-2)   100%);
  --fill-good:   linear-gradient(180deg, var(--good-weak)   0%, var(--good-weak-2)   100%);
  --fill-info:   linear-gradient(180deg, var(--info-weak)   0%, var(--info-weak-2)   100%);

  --fs-xs:  11px;  --lh-xs: 14px;
  --fs-s:   12px;  --lh-s:  16px;
  --fs:     14px;  --lh:    20px;
  --fs-l:   16px;  --lh-l:  24px;

  --fs-h:      21px;
  --fs-num-s:  22px;
  --fs-num:    24px;
  --fs-pin:    26px;
  --fs-board:  32px;
  --fs-clock:  34px;
  --fs-num-l:  36px;
  --fs-num-xl: 52px;
  --fw-reg:  400;
  --fw-med:  500;
  --fw-semi: 600;
  --fw-bold: 700;

  --font:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --avatar-bg-blue:   linear-gradient(160deg, #72D5FD 0%, #2A9EF1 100%);
  --avatar-bg-green:  linear-gradient(160deg, #A0DE7E 0%, #54CB68 100%);
  --avatar-bg-orange: linear-gradient(160deg, #FFCD6A 0%, #FFA85C 100%);
  --avatar-bg-red:    linear-gradient(160deg, #FF885E 0%, #FF516A 100%);
  --avatar-bg-violet: linear-gradient(160deg, #E0A2F3 0%, #D669ED 100%);
  --avatar-bg-cyan:   linear-gradient(160deg, #53EDD6 0%, #28C9B7 100%);
  --avatar-bg-pink:   linear-gradient(160deg, #FF8AAC 0%, #F6619A 100%);
  --avatar-bg-indigo: linear-gradient(160deg, #82B1FF 0%, #665FFF 100%);
  --font-h: "Manrope", "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --num: var(--font);

  --sh-raised:  0 1px 1px rgba(30, 31, 33, .25), 0 0 1px rgba(30, 31, 33, .31);
  --sh-overlay: 0 8px 12px rgba(30, 31, 33, .15), 0 0 1px rgba(30, 31, 33, .31);
  /* a layer standing over the field it was opened from: its shadow goes up, never onto the field (15.2916) */
  --sh-overlay-up: 0 -6px 14px -6px rgba(30, 31, 33, .16), 0 0 1px rgba(30, 31, 33, .31);
  --tip-bg:  #2E2F33;
  --tip-ink: #FFFFFF;
  /* a handle laid on a colour itself (the picker's square, hue and stops): white with a dark edge on any colour, in both
     themes; the hue scale - the colour space's own (15.2653) */
  --knob:      #FFFFFF;
  --knob-edge: rgba(0, 0, 0, .35);
  --sh-knob:   0 0 0 1px var(--knob-edge), 0 1px 4px rgba(0, 0, 0, .45);
  --hue-scale: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
  --shadow:    var(--sh-raised);
  --shadow-lg: var(--sh-overlay);

  --focus: #4688EC;

  --topbar-h: 56px;
  --rail-w:   238px;
  --side-list-w: 200px;   /* a section list beside its page: `.nd-split` */
  --set-list-w: 232px;    /* the settings place's list: «Оформление документов» whole, the 800 column beside it at 1366 */
  --float-gap: var(--sp-100);
  --shell-top: var(--topbar-h);

  --z-drawer:  120;
  --z-popover: 220;
  --z-overlay: 300;
  --z-dialog:  400;
  --z-pick:    420;
  --z-toast:   500;
  --z-lift:    460;
  --z-fly:     550;  /* a sheet in flight passes over a toast: it lasts a third of a second, the toast stays (15.2573) */
  --z-tip:     600;
}

:root[data-theme="dark"] {
  color-scheme: dark; /* the browser's own marks (a time field's clock, a date's calendar) take the theme */
  --echo-1: #ffb36b; --echo-2: #ff5f6d; --echo-3: #c850c0;
  --line-1: #ffffff; --line-2: #7fd3ff; --line-3: #7a6bff;
  --star-dust-1: #ffffff; --star-dust-2: #c9b8ff; --star-dust-3: #7b5cf5;
  --ares-1: #ece8e1; --ares-2: #bdb8ae;
  --sel-bg: #e9e6e2; --sel-ink: #1c1a18;

  --part-1: #5894e0; --part-2: #d17844; --part-3: #a67cd0; --part-4: #4aa96a; --part-5: #03a0d1;
  --part-6: #c0851f; --part-7: #00ab92; --part-8: #8487e0; --part-9: #d06e92; --part-10: #a4941c;
  --part-11: #c072b5; --part-12: #7ea040; --part-13: #00a8b6; --part-14: #d66f6b; --part-15: #7c98b0;
  --sky-morning-a: #6A3F2A; --sky-morning-b: #2E2520; --sky-day-a: #1F4A6E; --sky-day-b: #1B2733;
  --sky-evening-a: #6B3550; --sky-evening-b: #2C2238; --sky-night-a: #1E2A5E; --sky-night-b: #161B33;
  --sun: #FFB547; --moon: #E6E2D3;

  --bg:     #191919;
  --card:   #242424;
  --field:  #1E1E1E;
  --field2: #2C2C2C;
  --line:   #3E3E3E;
  --line2:  #5C5C5C;

  --a-100: rgba(255, 255, 255, .03);
  --a-200: rgba(255, 255, 255, .07);
  --a-300: rgba(255, 255, 255, .14);
  --a-400: rgba(255, 255, 255, .30);

  --ink:     #DEE0E3;
  --ink2:    #A9ABB2;
  --ink3:    #8C8F97;
  --ink-dis: rgba(255, 255, 255, .28);

  --switch-off: #5A5D64;
  --grid-line: rgba(255, 255, 255, .045);

  --acc-weak:   #183624;
  --acc-weak-2: #17492E;
  --acc-ink:    #8ED1B0;
  --star-acc-weak: #2a2340;
  --star-acc-weak-2: #352b52;
  --star-acc-ink: #c9b6ff;

  --rail-mark: rgba(255, 255, 255, .60);

  --danger:        #B23A31;
  --danger-fg:     #FFFFFF;
  --danger-weak:   #472826;
  --danger-weak-2: #532C29;
  --danger-ink:    #FD9891;
  --warn-weak:     #3E330D;
  --warn-weak-2:   #473A10;
  --warn-ink:      #F5CD47;
  --atom-ink:      #B4A9FF;
  --good:          #48C78E;
  --good-weak:     #22322C;
  --good-weak-2:   #293D35;
  --good-ink:      #86DDAE;
  --info-weak:     #213148;
  --info-weak-2:   #263852;
  --info-ink:      #85B8FF;

  --focus: #669DF1;

  --sh-raised:  0 1px 1px rgba(3, 4, 4, .5), 0 0 1px rgba(3, 4, 4, .5);
  --sh-overlay: 0 8px 12px rgba(3, 4, 4, .36), 0 0 1px rgba(3, 4, 4, .5);
  --sh-overlay-up: 0 -6px 14px -6px rgba(3, 4, 4, .36), 0 0 1px rgba(3, 4, 4, .5);

  --tip-bg:  #46474C;
  --tip-ink: #F4F5F7;
}

.sheet, .sheetview-frame, .rg-logo-row, .rg-avatar.rg-fit, .ds-sheet, .brand-logo.on-plate {
  --sheet-bg:     #FFFFFF;
  --sheet-ink:    #1C1B18;
  --sheet-ink-2:  #6B675E;
  --sheet-line:   #E4E2DC;
  --sheet-accent: #1E5B44;
  --sheet-accent-weak: #E7F0EB;
  --sheet-radius: 12px;
  --sheet-border-width: 1px;
  --sheet-border-style: solid;
}

/* 15.1911: an endless animation ends with the rest: at .01 ms it ran on, the lights of the landing flickering on every
   computer with the system's animations off */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* 15.3023 («предпросмотр жеста назад… чтобы не дублировался»): a «Назад» the browser has already drawn (Android's back
   gesture with its preview of the screen behind) lands without the program's own motion - kit/layers.js marks it */
html[data-drawn-back] *, html[data-drawn-back] *::before, html[data-drawn-back] *::after {
  animation-duration: .01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .01ms !important;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; height: 100%; }
/* 15.1494: no pinch and no double-tap zoom of the program's page on a phone - the browsers that let a page's zoom
   through its viewport (iPhone's Safari does) are held by the touch's own rule; a scene or a picture handling its own
   pinch keeps it (`touch-action: none` there) */
html { touch-action: pan-x pan-y; -webkit-tap-highlight-color: transparent; }   /* 15.2964: the program's own press, kit/press.js */

body {
  font-family: var(--font);
  font-size: var(--fs);
  line-height: 1.45;
  overflow-wrap: break-word;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-h);
  font-weight: var(--fw-bold);
  letter-spacing: -.01em;
  line-height: 1.22;
}
h1 { font-size: var(--fs-h); }
h2 { font-size: var(--fs-l); }
h3 { font-size: var(--fs); }
p  { margin: 0 0 var(--sp-150); }

:is(h1, h2, h3, h4) + * { margin-top: var(--sp-100); }
:is(.col, .row, .seg, .field-row) > :is(h1, h2, h3, h4) + * { margin-top: 0; }

a { color: var(--acc-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

.num    { font-family: var(--num); font-variant-numeric: tabular-nums; }
.muted  { color: var(--ink2); }
.faint  { color: var(--ink3); }
.small  { font-size: var(--fs-s); } .combo-option-note, .topbar-who span, .eco-converted, .quotes-base-n, .vc-off, .rate-unit { color: var(--ink3); font-size: var(--fs-s); }
.switch-row .switch-row-text span, .snums .snum-t {
  color: var(--ink3); font-size: var(--fs-s); line-height: var(--lh-s);
}
.nowrap { white-space: nowrap; }
.grow, .switch-row .switch-row-text,
.mrow .cbCat, .frow2 .cbCat { flex: 1 1 auto; min-width: 0; }
.spacer { flex: 1 1 auto; }

.wblock.fill-grey   { --block-fill: var(--wb-grey);   --block-fill-2: var(--wb-grey-2); }
.wblock.fill-stone  { --block-fill: var(--wb-stone);  --block-fill-2: var(--wb-stone-2); }
.wblock.fill-accent { --block-fill: var(--wb-accent); --block-fill-2: var(--wb-accent-2); }
.wblock.fill-mint   { --block-fill: var(--wb-mint);   --block-fill-2: var(--wb-mint-2); }
.wblock.fill-sand   { --block-fill: var(--wb-sand);   --block-fill-2: var(--wb-sand-2); }
.wblock.fill-peach  { --block-fill: var(--wb-peach);  --block-fill-2: var(--wb-peach-2); }
.wblock.fill-sky    { --block-fill: var(--wb-sky);    --block-fill-2: var(--wb-sky-2); }
.wblock.fill-teal   { --block-fill: var(--wb-teal);   --block-fill-2: var(--wb-teal-2); }
.wblock.fill-rose   { --block-fill: var(--wb-rose);   --block-fill-2: var(--wb-rose-2); }
.wblock.fill-lilac  { --block-fill: var(--wb-lilac);  --block-fill-2: var(--wb-lilac-2); }
.wblock.fill-olive  { --block-fill: var(--wb-olive);  --block-fill-2: var(--wb-olive-2); }
.wblock {
  --wb-mix: 22%;  --wb-mix-2: 34%;
  --wb-own: color-mix(in srgb, var(--block-own, var(--wb-own-ink)) var(--wb-mix), var(--wb-own-base));
  --wb-own-2: color-mix(in srgb, var(--block-own, var(--wb-own-ink)) var(--wb-mix-2), var(--wb-own-base));
  --wb-hex-b: color-mix(in srgb, var(--block-hex-b, transparent) var(--wb-mix), var(--wb-own-base));
  --wb-hex-b-2: color-mix(in srgb, var(--block-hex-b, transparent) var(--wb-mix-2), var(--wb-own-base));
  --wb-hex-c: color-mix(in srgb, var(--block-hex-c, transparent) var(--wb-mix), var(--wb-own-base));
  --wb-hex-c-2: color-mix(in srgb, var(--block-hex-c, transparent) var(--wb-mix-2), var(--wb-own-base));
  --wb-hex-d: color-mix(in srgb, var(--block-hex-d, transparent) var(--wb-mix), var(--wb-own-base));
  --wb-hex-d-2: color-mix(in srgb, var(--block-hex-d, transparent) var(--wb-mix-2), var(--wb-own-base));
  --wb-hex-e: color-mix(in srgb, var(--block-hex-e, transparent) var(--wb-mix), var(--wb-own-base));
  --wb-hex-e-2: color-mix(in srgb, var(--block-hex-e, transparent) var(--wb-mix-2), var(--wb-own-base));
}
.wblock.fill-own { --block-fill: var(--wb-own); --block-fill-2: var(--wb-own-2); }

.wblock:not(.fill-none).pat-solid { background: var(--block-fill); }
.wblock:not(.fill-none).pat-gradient {
  background: linear-gradient(var(--wb-grad-angle),
                              var(--block-fill) 0%,
                              var(--wb-grad-end) var(--wb-grad-stop));
}
.wblock:not(.fill-none).pat-hatch {
  background-color: var(--wb-pat-base);
  background-image: repeating-linear-gradient(45deg,
      var(--block-fill) 0 var(--wb-hatch-step),
      var(--wb-hatch-2) var(--wb-hatch-step) calc(var(--wb-hatch-step) * 2));
}
.wblock:not(.fill-none).pat-dots {
  background-color: var(--wb-pat-base);
  background-image: radial-gradient(var(--wb-dots-ink) var(--wb-dots-r),
                                    var(--wb-dots-gap) var(--wb-dots-edge));
  background-size: var(--wb-dots-size) var(--wb-dots-size);
}

.wblock.fills-2 {
  --wb-stops: var(--block-fill), var(--block-fill-b);
  --wb-hatch-stops:
    var(--block-fill) 0 var(--wb-hatch-step), var(--wb-hatch-2) 0 calc(var(--wb-hatch-step) * 2),
    var(--block-fill-b) 0 calc(var(--wb-hatch-step) * 3), var(--wb-hatch-2) 0 calc(var(--wb-hatch-step) * 4);
}
.wblock.fills-3 {
  --wb-stops: var(--block-fill), var(--block-fill-b), var(--block-fill-c);
  --wb-hatch-stops:
    var(--block-fill) 0 var(--wb-hatch-step), var(--wb-hatch-2) 0 calc(var(--wb-hatch-step) * 2),
    var(--block-fill-b) 0 calc(var(--wb-hatch-step) * 3), var(--wb-hatch-2) 0 calc(var(--wb-hatch-step) * 4),
    var(--block-fill-c) 0 calc(var(--wb-hatch-step) * 5), var(--wb-hatch-2) 0 calc(var(--wb-hatch-step) * 6);
}
.wblock.fills-4 {
  --wb-stops: var(--block-fill), var(--block-fill-b), var(--block-fill-c), var(--block-fill-d);
  --wb-hatch-stops:
    var(--block-fill) 0 var(--wb-hatch-step), var(--wb-hatch-2) 0 calc(var(--wb-hatch-step) * 2),
    var(--block-fill-b) 0 calc(var(--wb-hatch-step) * 3), var(--wb-hatch-2) 0 calc(var(--wb-hatch-step) * 4),
    var(--block-fill-c) 0 calc(var(--wb-hatch-step) * 5), var(--wb-hatch-2) 0 calc(var(--wb-hatch-step) * 6),
    var(--block-fill-d) 0 calc(var(--wb-hatch-step) * 7), var(--wb-hatch-2) 0 calc(var(--wb-hatch-step) * 8);
}
.wblock.fills-5 {
  --wb-stops: var(--block-fill), var(--block-fill-b), var(--block-fill-c), var(--block-fill-d),
              var(--block-fill-e);
  --wb-hatch-stops:
    var(--block-fill) 0 var(--wb-hatch-step), var(--wb-hatch-2) 0 calc(var(--wb-hatch-step) * 2),
    var(--block-fill-b) 0 calc(var(--wb-hatch-step) * 3), var(--wb-hatch-2) 0 calc(var(--wb-hatch-step) * 4),
    var(--block-fill-c) 0 calc(var(--wb-hatch-step) * 5), var(--wb-hatch-2) 0 calc(var(--wb-hatch-step) * 6),
    var(--block-fill-d) 0 calc(var(--wb-hatch-step) * 7), var(--wb-hatch-2) 0 calc(var(--wb-hatch-step) * 8),
    var(--block-fill-e) 0 calc(var(--wb-hatch-step) * 9), var(--wb-hatch-2) 0 calc(var(--wb-hatch-step) * 10);
}
.wblock:is(.fills-2, .fills-3, .fills-4, .fills-5):not(.fill-none).pat-solid {
  background: linear-gradient(135deg, var(--wb-stops));
}
.wblock:is(.fills-2, .fills-3, .fills-4, .fills-5):not(.fill-none).pat-gradient {
  background: linear-gradient(var(--wb-grad-angle), var(--wb-stops),
                              var(--wb-grad-end) var(--wb-grad-stop));
}
.wblock:is(.fills-2, .fills-3, .fills-4, .fills-5):not(.fill-none).pat-hatch {
  background-image: repeating-linear-gradient(45deg, var(--wb-hatch-stops));
}
.wblock:not(.fill-none).pat-glyphs { background-color: var(--wb-pat-base); }

.wblock.has-art { isolation: isolate; }
.wblock.has-art.pat-dots { background-image: none; }
.wblock-art {
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.wblock-art > span {
  position: absolute; inset: 0;
  background: var(--art-ink);
  -webkit-mask: var(--art) 0 0 / var(--art-w) var(--art-h) var(--art-repeat);
          mask: var(--art) 0 0 / var(--art-w) var(--art-h) var(--art-repeat);
}

.st-solid  { --ln-t: var(--ln-base, 1px); --ln-tb: 3px; --ln-fw: var(--ln-base, 1px);
             --block-stroke: solid; }
.st-thick  { --ln-t: 3px; --ln-tb: 5px; --ln-fw: 3px; --block-stroke: solid; }
.st-dashed { --ln-t: 2px; --ln-tb: 3px; --ln-fw: 2px; --block-stroke: dashed; --ln-p: 5;
  --ln-mh: linear-gradient(90deg, transparent 0 20%, #000 20% 80%, transparent 80%);
  --ln-mv: linear-gradient(180deg, transparent 0 20%, #000 20% 80%, transparent 80%); }
.st-dotted { --ln-t: 3px; --ln-tb: 4px; --ln-fw: 3px; --block-stroke: dotted; --ln-p: 2.2;
  --ln-mh: radial-gradient(circle closest-side, #000 calc(100% - .75px), transparent 100%);
  --ln-mv: radial-gradient(circle closest-side, #000 calc(100% - .75px), transparent 100%); }
.st-double { --ln-t: 4px; --ln-tb: 6px; --ln-fw: 4px; --block-stroke: double; --ln-p: 1;
  --ln-mh: linear-gradient(180deg, #000 0 34%, transparent 34% 66%, #000 66%);
  --ln-mv: linear-gradient(90deg, #000 0 34%, transparent 34% 66%, #000 66%); }
.st-wave   { --ln-t: 6px; --ln-tb: 8px; --ln-fw: 0px; --block-stroke: solid; --ln-p: 2;
  --ln-mh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 6' preserveAspectRatio='none'%3E%3Cpath d='M-6 3Q-3 6 0 3T6 3T12 3T18 3' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
  --ln-mv: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 12' preserveAspectRatio='none'%3E%3Cpath d='M3 -6Q6 -3 3 0T3 6T3 12T3 18' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E"); }
.st-zigzag { --ln-t: 6px; --ln-tb: 8px; --ln-fw: 0px; --block-stroke: solid; --ln-p: 1.3333;
  --ln-mh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 6' preserveAspectRatio='none'%3E%3Cpath d='M-4 4.5L0 1.5L4 4.5L8 1.5L12 4.5' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ln-mv: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 8' preserveAspectRatio='none'%3E%3Cpath d='M4.5 -4L1.5 0L4.5 4L1.5 8L4.5 12' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.st-wave {
  --ln-ft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 6' preserveAspectRatio='none'%3E%3Cpath d='M-9 3Q-6 6 -3 3T3 3T9 3T15 3' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ln-fb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 6' preserveAspectRatio='none'%3E%3Cpath d='M-9 3Q-6 0 -3 3T3 3T9 3T15 3' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ln-fl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 12' preserveAspectRatio='none'%3E%3Cpath d='M3 -9Q6 -6 3 -3T3 3T3 9T3 15' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ln-fr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 12' preserveAspectRatio='none'%3E%3Cpath d='M3 -9Q0 -6 3 -3T3 3T3 9T3 15' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ln-fc1: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 6' preserveAspectRatio='none'%3E%3Cpath d='M8 1.5L6 1.5A4.5 4.5 0 0 0 1.5 6L1.5 8' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ln-fc2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 6' preserveAspectRatio='none'%3E%3Cpath d='M-2 1.5L0 1.5A4.5 4.5 0 0 1 4.5 6L4.5 8' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ln-fc3: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 6' preserveAspectRatio='none'%3E%3Cpath d='M4.5 -2L4.5 0A4.5 4.5 0 0 1 0 4.5L-2 4.5' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ln-fc4: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 6' preserveAspectRatio='none'%3E%3Cpath d='M1.5 -2L1.5 0A4.5 4.5 0 0 0 6 4.5L8 4.5' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.st-zigzag {
  --ln-ft: var(--ln-mh);
  --ln-fb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 6' preserveAspectRatio='none'%3E%3Cpath d='M-4 1.5L0 4.5L4 1.5L8 4.5L12 1.5' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ln-fl: var(--ln-mv);
  --ln-fr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 8' preserveAspectRatio='none'%3E%3Cpath d='M1.5 -4L4.5 0L1.5 4L4.5 8L1.5 12' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ln-fc1: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 6' preserveAspectRatio='none'%3E%3Cpath d='M10 4.5L6 1.5L1.5 6L4.5 10' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ln-fc2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 6' preserveAspectRatio='none'%3E%3Cpath d='M-4 4.5L0 1.5L4.5 6L1.5 10' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ln-fc3: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 6' preserveAspectRatio='none'%3E%3Cpath d='M1.5 -4L4.5 0L0 4.5L-4 1.5' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ln-fc4: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 6' preserveAspectRatio='none'%3E%3Cpath d='M4.5 -4L1.5 0L6 4.5L10 1.5' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.st-none   { --ln-t: 0px; }

.wblock { position: relative; }
.wblock.bd-left::before,
.wblock.bd-under::before,
.wblock.bd-line.st-wave::before,
.wblock.bd-line.st-zigzag::before,
.sheet-divider::before,
.notice-divider::before {
  content: "";
  position: absolute;
  pointer-events: none;
  background: var(--block-line, currentColor);
}
.wblock.bd-left::before {
  --t: var(--ln-tb, 3px);
  left: 0; top: var(--ln-inset, 6px); bottom: var(--ln-inset, 6px);
  width: var(--t);
  border-radius: var(--r-full);
  -webkit-mask: var(--ln-mv, none) center top / 100% calc(var(--t) * var(--ln-p, 1)) round;
          mask: var(--ln-mv, none) center top / 100% calc(var(--t) * var(--ln-p, 1)) round;
}
.wblock.bd-under::before,
.sheet-divider::before,
.notice-divider::before,
.line-sample {
  --t: var(--ln-t, 1px);
  border-radius: var(--r-full);
  -webkit-mask: var(--ln-mh, none) left center / calc(var(--t) * var(--ln-p, 1)) 100% round;
          mask: var(--ln-mh, none) left center / calc(var(--t) * var(--ln-p, 1)) 100% round;
}
.wblock.bd-under::before {
  left: var(--ln-ends, 0px); right: var(--ln-ends, 0px); bottom: 0;
  height: var(--t);
}
.sheet-divider::before, .notice-divider::before { inset: 0; }
.line-sample {
  display: block; flex: none;
  width: var(--sp-600); height: var(--t);
  background: currentColor;
}
.wblock.bd-line.st-wave,
.wblock.bd-line.st-zigzag { border-radius: 0; }
.wblock.bd-line.st-wave::before,
.wblock.bd-line.st-zigzag::before {
  --t: var(--ln-t, 6px);
  --ln-fk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cmask id='k'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Crect width='6' height='6'/%3E%3Csvg x='100%25' overflow='visible'%3E%3Crect x='-6' width='6' height='6'/%3E%3C/svg%3E%3Csvg y='100%25' overflow='visible'%3E%3Crect y='-6' width='6' height='6'/%3E%3C/svg%3E%3Csvg x='100%25' y='100%25' overflow='visible'%3E%3Crect x='-6' y='-6' width='6' height='6'/%3E%3C/svg%3E%3C/mask%3E%3Crect width='100%25' height='100%25' mask='url%28%23k%29'/%3E%3C/svg%3E");
  inset: 0;
  padding: var(--t);
  -webkit-mask:
    var(--ln-mh) left top / calc(var(--t) * var(--ln-p)) var(--t) round no-repeat,
    var(--ln-mh) left bottom / calc(var(--t) * var(--ln-p)) var(--t) round no-repeat,
    var(--ln-mv) left top / var(--t) calc(var(--t) * var(--ln-p)) no-repeat round,
    var(--ln-mv) right top / var(--t) calc(var(--t) * var(--ln-p)) no-repeat round;
  mask:
    var(--ln-fc1) left top / var(--t) var(--t) no-repeat border-box border-box add,
    var(--ln-fc2) right top / var(--t) var(--t) no-repeat border-box border-box add,
    var(--ln-fc3) right bottom / var(--t) var(--t) no-repeat border-box border-box add,
    var(--ln-fc4) left bottom / var(--t) var(--t) no-repeat border-box border-box add,
    var(--ln-fk) 0 0 / 100% 100% no-repeat border-box border-box intersect,
    var(--ln-ft) left 0 top calc(var(--t) * -1) / calc(var(--t) * var(--ln-p)) var(--t)
      round no-repeat content-box border-box add,
    var(--ln-fb) left 0 bottom calc(var(--t) * -1) / calc(var(--t) * var(--ln-p)) var(--t)
      round no-repeat content-box border-box add,
    var(--ln-fl) left calc(var(--t) * -1) top 0 / var(--t) calc(var(--t) * var(--ln-p))
      no-repeat round content-box border-box add,
    var(--ln-fr) right calc(var(--t) * -1) top 0 / var(--t) calc(var(--t) * var(--ln-p))
      no-repeat round content-box border-box add;
}

.list-head {
  display: flex;
  align-items: baseline;
  gap: var(--sp-100);
  min-width: 0;
}
.list-head h2, .list-head h3 { margin: 0; }

.list-count {
  margin-left: auto;
  font-size: var(--fs-s);
  color: var(--ink3);
  font-variant-numeric: tabular-nums;
}
.hidden { display: none !important; }

.row { display: flex; align-items: center; gap: var(--sp-150); }
.row.tight { gap: var(--sp-050); }
.col.tight { gap: var(--sp-100); }
.row.wrap { flex-wrap: wrap; }
.col, .cp { display: flex; flex-direction: column; gap: var(--sp-150); }
.row[hidden], .col[hidden] { display: none; }
/* The tools at the start of a work screen's head - «Файл», undo, redo, history, the screen's icons (kit/editsteps.js,
   15.519). Even by what is seen (15.527): icon buttons touch, so glyph to glyph is one glyph's width (16); «Файл» and
   the name keep the same 16 to the nearest glyph - a step of 8 plus the button's 8 of padding (the head row that holds
   the tools and the name declares the 8). */
.work-tools { display: flex; flex-wrap: nowrap; align-items: center; gap: 0; }
.work-tools > .work-file { margin-right: var(--sp-100); }
/* A mark on an icon button: something about it needs a look (15.350 the cut map's own layout) */
.icon-btn.marked { position: relative; }
.icon-btn.marked::after {
  content: ""; position: absolute; top: var(--sp-050); right: var(--sp-050);
  width: var(--sp-075); height: var(--sp-075); border-radius: var(--r-full); background: var(--acc);
}

.ellipsis,
.combo-label,
.list-head > .card-title,
:is(.grid-head, .grid-row) .num
{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn > .ellipsis, .icon-btn > .ellipsis, .chip > .ellipsis { flex: 1 1 auto; }

/* 15.3031: the drawn scrollbar is a mouse's only - on a touch screen a drawn one took 12 px of the page (its overlay bar
   gave way to it), and a page that shortened for a moment lost it and moved what stands in its middle */
@media (hover: hover) and (pointer: fine) {
  ::-webkit-scrollbar { width: 12px; height: 12px; }
  ::-webkit-scrollbar-thumb {
    background: var(--a-300);
    border: 3px solid transparent;
    background-clip: content-box;
    border-radius: var(--r-s);
  }
  ::-webkit-scrollbar-thumb:hover { background: var(--ink3); background-clip: content-box; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-corner { background: transparent; }
}
/* 15.2407 («Появление прокрутки дёргает сайт везде»): a scrollbar coming never moves what is under it - the places that
   scroll keep its room from the start, and the screen and the side panel give that room back from their right inset, so
   their insets stay equal whether the bar shows or not. A phone's scrollbars lie over the content and keep nothing. */
@media (hover: hover) and (pointer: fine) {
  .screen, .panel-body, .dialog-body, .sblock > .sflow, .grid-rows, .oh-side, .stage-layers > .stage-layers-body,
  .msgr-list, .msgr-feed, .rail-scroll { scrollbar-gutter: stable; }
  html .screen, html .panel-body { --pad-end: max(0px, calc(var(--pad-side) - 12px)); padding-right: var(--pad-end); }
  /* the sidebar gives its 12 back too: its groups' names had lost that much and were cut («НАСТРОЙКИ КОМПАН…») */
  html .rail-scroll { padding-right: 0; }
  html:not([data-mob]) #screen:has(.stage-work.full-tab) { scrollbar-gutter: auto; padding: 0; }
  /* 15.2444: a screen of its own ground edge to edge that never scrolls keeps no scrollbar's room - the room showed as a
     seam of the page's ground at its right (the dark theme's board and messages) */
  html .screen:is([data-route="board"], [data-route="messenger"], [data-route="messenger-master"]) { scrollbar-gutter: auto; }
}

:focus-visible { outline: var(--bw-foc) solid var(--focus); outline-offset: 2px; border-radius: var(--r-s); }

html[data-by="mouse"] :focus-visible { outline: none; }

body { -webkit-user-select: none; user-select: none; }
input, textarea, select, [contenteditable="true"], .code-value, .cmd-copy-text, .echo-console {
  -webkit-user-select: text; user-select: text;
}

.grip {
  display: flex;
  /* вне шкалы: шаг точек самого знака, а не воздух между вещами */
  gap: 2.5px;
  flex: none;
  touch-action: none;
  user-select: none;
}
/* 15.2817: the whole holder a finger takes is the holder, not only its dots - a touch beside them scrolled the page */
:has(> .grip) { touch-action: none; }
.grip i {
  display: block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--ink3);
}
/* Six dots in two columns: a holder among icon buttons, where three in a row read as «Ещё» (15.494); the registry's
   «grip» drawing (15.600). */
.grip.six { display: inline-grid; place-items: center; gap: 0; color: var(--ink3); }

.btn, .icon-btn, .pick-dot, .tab,
.chip, .swatch, .avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.switch, .pick-mark, .switch-row {
  align-items: center;
}
.btn, .icon-btn, .chip, .pager-count {
  flex: none;
  max-width: 100%;
}
.btn > *, .icon-btn > *, .pick-dot > *, .chip > * { flex: none; }
.num, td.right, th.right { font-variant-numeric: tabular-nums; }

.sheetview-bar { display: none; }
.sheetview.full {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  gap: var(--sp-150);
  max-height: none;
  padding: var(--gap);
  background: var(--bg);
}
.sheetview.full > .sheetview-frame {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
/* 15.2352: one finger scrolls every way, two scale the sheet (kit/sheetview.js), the page itself never zooms */
.sheetview.full > .sheetview-frame > .sheetview-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
  border-radius: var(--r-l);
}
/* the sheet brought closer grows from the left edge, never past it: all of it can be scrolled to */
.sheetview.full .sheetview-body > .sheetview-host { display: block; width: max-content; min-width: 100%; margin: 0; }
.sheetview.full .sheetview-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-100);
  order: 2;
}
.sheetview-host { zoom: var(--sheet-share, 1); }
.sheetview.full .sheet-block,
.sheetview.full .sheet-signature { pointer-events: none; cursor: default; }
.sheetview-see { display: none; }
@media (max-width: 700px) { .sheetview-see { display: inline-flex; } }

.sheetview-work {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(0, 2fr);
  align-items: start;
  gap: var(--sp-300);
}
.sheetview-work > .sheetview:not(.full) {
  position: sticky;
  top: var(--stick-side);
  display: flex;
  flex-direction: column;
  gap: var(--sp-150);
  max-height: calc(var(--screen-room) - var(--sp-300) - var(--act-reserve));
}
.sheetview-work > .sheetview:not(.full) > .sheetview-frame {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-l);
  border: var(--bw) solid var(--line);
  background: var(--sheet-desk);
  padding: var(--bw);
}
.sheetview-work > .sheetview:not(.full) > .sheetview-frame > .sheetview-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: var(--sp-400) 0;
  border-radius: calc(var(--r-l) - var(--bw) * 2);
  scrollbar-width: none;
}
.sheetview-work > .sheetview:not(.full) > .sheetview-frame .sheet {
  border: 0;
  border-radius: var(--r);
  overflow: clip;
}
.sheetview-work .sheetview-body::-webkit-scrollbar { display: none; }
.sheetview-work > .sheetview:not(.full) > .sheetview-frame > .sheetview-body {
  --sheet-fade-top: min(var(--fade), var(--sheet-gone-top, 0px));
  --sheet-fade-bottom: min(var(--fade), var(--sheet-gone-bottom, 0px));
  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0, #000 var(--sheet-fade-top),
    #000 calc(100% - var(--sheet-fade-bottom)), transparent 100%);
  mask-image: linear-gradient(to bottom,
    transparent 0, #000 var(--sheet-fade-top),
    #000 calc(100% - var(--sheet-fade-bottom)), transparent 100%);
}
@media (max-width: 1100px) {
  .sheetview-work { grid-template-columns: minmax(0, 1fr); }
  .sheetview-work > * { min-width: 0; }
  .sheetview-work > .sheetview:not(.full) { position: static; max-height: none; }
  .sheetview-work > .sheetview:not(.full) > .sheetview-frame { max-height: 70vh; }
}
@media (max-width: 700px) {
  .sheetview-work > .sheetview:not(.full) { display: none; }
}

/* The field's base weighs as a plain element (15.1869: «Исправь уже эти поля для ввода наконец массово»): any class of a component takes it
   over; before, its chain of :not outweighed every class, and each field of its own fought it with a chain of its own. */
:where(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]):not(.wp-num):not(.pin-input)),
textarea,
select,
.input,
.textarea,
.select {
  font: inherit;
  font-size: var(--fs);
  line-height: var(--lh);
  color: var(--ink);
  background: var(--field);
  border: var(--bw) solid var(--line2);
  border-radius: var(--r);
  height: var(--h-field);
  padding: 0 var(--sp-150);
  width: 100%;
  /* The hover layer and the focus ring are inset shadows: animating them drew the layer shrinking into the field on a
     press (15.627, 22.10: «вспышкой происходит странной вовнутрь») - they change at once. */
  transition: border-color .15s, background .15s;
}
:where(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]):not(.wp-num):not(.pin-input)).small,
.input.small, select.small, .select.small { height: var(--h-field-sm); }

/* 15.2195 («Пусть поле ввода будет нужного и красивого по дизайну размера, а на расширение… выходит когда текст переполняет.
   Если недопустимо - то прокрутка»): no handle anywhere; three lines at rest, growing with the text up to twelve, then a
   scroll (`field-sizing`; kit/resize.js where a browser has none); `.fixed` keeps its size and scrolls */
textarea, .textarea {
  height: auto; min-height: calc(3lh + var(--sp-100) * 2);
  padding: var(--sp-100) var(--sp-150);
  resize: none;
}

select, .select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8"><path d="M1 1.5 6 6.5 11 1.5" stroke="%23747680" stroke-width="1.6" fill="none" stroke-linecap="round"/></svg>');
  background-repeat: no-repeat;
  background-position: right var(--sp-150) center;
  padding-right: var(--sp-400);
  cursor: pointer;
}

:where(input:not([type=checkbox]):not([type=radio]):not([type=range]):focus),
textarea:focus, select:focus, .input:focus, .textarea:focus {
  outline: none;
  border-color: var(--acc);
  box-shadow: inset 0 0 0 var(--bw) var(--acc);
}

:where(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]):not(.wp-num):not(.pin-input):hover:not(:disabled):not([readonly]):not(:focus):not(.invalid)),
textarea:hover:not(:disabled):not([readonly]):not(:focus):not(.invalid),
.textarea:hover:not(:disabled):not([readonly]):not(:focus):not(.invalid) {
  box-shadow: inset 0 0 0 100vmax var(--a-200);
}

input::placeholder, textarea::placeholder { color: var(--ink3); opacity: 1; }
:where(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]):not(.wp-num):not(.pin-input):disabled),
input:disabled, textarea:disabled, select:disabled,
.input:disabled, .textarea:disabled {
  background: var(--a-200);
  border-color: var(--a-200);
  color: var(--ink-dis);
  cursor: not-allowed;
}

.input.invalid, .textarea.invalid, input.invalid, textarea.invalid {
  border-color: var(--danger);
  box-shadow: inset 0 0 0 var(--bw) var(--danger);
}
/* a field that holds what is not taken stays red in focus too - never the accent beside a red bubble (15.831) */
input:not([type=checkbox]):not([type=radio]):not([type=range]).invalid:focus,
textarea.invalid:focus, select.invalid:focus, .input.invalid:focus, .textarea.invalid:focus {
  border-color: var(--danger);
  box-shadow: inset 0 0 0 var(--bw) var(--danger);
}
.input.num { text-align: left; font-family: var(--num); font-variant-numeric: tabular-nums; }

.stepper {
  display: inline-flex; align-items: center; gap: var(--sp-025);
  height: var(--h-field-sm); padding: 0 var(--sp-025);
  border: var(--bw) solid var(--line2);
  border-radius: var(--r-s);
  background: var(--field);
  min-width: 0;
}
.stepper-val {
  flex: 1; min-width: 2ch; text-align: center;
  font-family: var(--num); font-variant-numeric: tabular-nums;
  font-size: var(--fs-s); line-height: var(--lh-s); color: var(--ink2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  user-select: none;
}
.stepper-val b {
  display: block; min-width: 0;
  font-family: var(--num); font-variant-numeric: tabular-nums;
  font-weight: var(--fw-semi); color: var(--ink);
}
.stepper-edit::selection { background: var(--acc-weak); color: var(--acc-ink); }
/* 15.813 («на тёмной - светлое, на светлой - тёмное, скруглённое»): the program draws its own selection
   (/kit/selectlook.js) - rounded plates in a layer that inverts what lies under it; the browser paints none. A text
   area, a number field and a password keep the browser's square one in the same colours. */
html.own-selection ::selection { background: transparent; }
.sel-layer { position: fixed; inset: 0; z-index: calc(var(--z-tip) + 1); pointer-events: none; mix-blend-mode: difference; }
.sel-figure { position: absolute; left: 0; top: 0; overflow: visible; }
.sel-figure > path { fill: #fff; }
.sel-twin { position: fixed; left: -10000px; top: 0; visibility: hidden; white-space: pre; pointer-events: none; }
.sel-mirror { position: absolute; left: 0; top: 0; box-sizing: border-box; border: 0; margin: 0; visibility: hidden; pointer-events: none;
  white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; }

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }

.field-row   { display: flex; flex-direction: column; gap: var(--sp-050); }
.field-label { font-size: var(--fs-s); line-height: var(--lh-s);
               font-weight: var(--fw-reg); color: var(--ink2); }
.field-grid  { display: grid; gap: var(--gap);
               grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* A button as Apple draws it (15.643, 23.10: «кнопки вот такого вот образца перерисуй под новый дизайн (apple style
   сделать)»): a quiet grey fill without a frame, darker under the pointer; the main one - the accent fill */
.btn {
  gap: var(--sp-100);
  height: var(--h-btn);
  padding: 0 var(--sp-150);
  border: var(--bw) solid transparent;
  border-radius: var(--r);
  background: var(--a-100);
  color: var(--ink);
  font-weight: var(--fw-med);
  font-size: var(--fs);
  line-height: var(--lh);
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover, .btn.ghost:hover, .icon-btn:hover, .tab:hover
  { background: var(--a-200); color: var(--ink); }
.field-clear:hover { color: var(--ink); }
.field-clear:active { color: var(--acc-ink); }
.btn:active { background: var(--a-300); }
.btn:disabled {
  background: var(--a-200); border-color: transparent;
  color: var(--ink-dis); cursor: not-allowed;
}

/* 15.2760 (his word 23.11 «Кнопки принимаю»): the accent's own tone inside, bold, at 6.5 or more against the fill */
.btn.primary {
  border-color: transparent;
  background: var(--acc-btn-grad, var(--acc-btn));
  background-origin: border-box;
  background-repeat: no-repeat;
  color: var(--acc-btn-ink);
  font-weight: var(--fw-bold);
}
.btn.primary svg, .icon-btn.primary svg { stroke-width: 2.7; }
.btn.primary:hover  { filter: brightness(.92); background: var(--acc-btn-grad, var(--acc-btn));
                      background-origin: border-box; background-repeat: no-repeat; color: var(--acc-btn-ink); }
.btn.primary:active { filter: brightness(.88); }
:root[data-theme="dark"] .btn.primary:hover, :root[data-theme="dark"] .icon-btn.primary:hover { filter: brightness(1.08); }
:root[data-theme="dark"] .btn.primary:active, :root[data-theme="dark"] .icon-btn.primary:active { filter: brightness(.94); }
.btn.primary:disabled { background: var(--a-200); color: var(--ink-dis); filter: none; }

/* A dangerous action is red words on the quiet ground, never a red fill, anywhere (15.103, 15.735, 15.2206: «уродская ублюданская
   красная кнопка убери её здесь и везде где она была и никогда не возвращай»): `.danger` and `.danger.subtle` are one look,
   a primary one too */
.btn.danger, .btn.danger.primary, .btn.danger.subtle {
  border-color: transparent; background: var(--a-100); color: var(--danger-ink); box-shadow: none; filter: none;
  font-weight: var(--fw-med);
}
.btn.danger:hover, .btn.danger.primary:hover, .btn.danger.subtle:hover {
  background: var(--danger-weak);
  color: var(--danger-ink);
}
.btn.danger:active, .btn.danger.subtle:active { background: var(--danger-weak-2); filter: none; }

.btn.ghost { border-color: transparent; background: transparent; color: var(--ink2); }
.btn.tonal { border-color: transparent; background: var(--a-200); color: var(--ink); }
.btn.tonal:hover { background: var(--a-300); }

a.btn, a.btn:hover, a.icon-btn, a.icon-btn:hover { text-decoration: none; }

.btn.small { height: var(--h-btn-sm); padding: 0 var(--sp-150); border-radius: var(--r-s); }
/* a pressed button - a chosen answer, a toggle that is on (15.1061): the accent's ground and ink */
.btn.on, .btn.on:hover { background: var(--acc-weak-2); color: var(--acc-ink); }
.btn.big {
  height: var(--h-field); padding: 0 var(--sp-400);
  border-radius: calc(var(--h-field) * var(--round));
  font-size: var(--fs-l);
}
.btn.block { width: 100%; }
.btn.selected { color: var(--acc-ink); border-color: var(--acc-solid);
  background: var(--fill-acc); }

.icon-btn {
  width: var(--h-btn); height: var(--h-btn);
  font-size: var(--fs-l); line-height: 1;
  color: var(--ink2);
  background: transparent;
  border: none;
  border-radius: var(--r);
  transition: background .15s, color .15s;
}
.icon-btn.danger:hover { background: var(--danger-weak); color: var(--danger-ink); }
.icon-btn.primary {
  background: var(--acc-btn-grad, var(--acc-btn));
  background-origin: border-box;
  background-repeat: no-repeat;
  color: var(--acc-btn-ink);
}
.icon-btn.primary:hover { filter: brightness(.92); color: var(--acc-btn-ink);
                          background: var(--acc-btn-grad, var(--acc-btn)); }
.icon-btn.primary:active { filter: brightness(.88); }
.icon-btn.small {
  width: var(--h-btn-sm); height: var(--h-btn-sm);
  font-size: var(--fs);
  border-radius: var(--r-s);
}

.switch {
  display: inline-flex;
  gap: var(--sp-100);
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
  cursor: pointer;
  user-select: none;
}
.switch input, .pick-mark input {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}

.switch-track {
  --sw-w:   42px;
  --sw-h:   22px;
  --sw-pad:  3px;
  --sw-dot: calc(var(--sw-h) - var(--sw-pad) * 2);
  position: relative;
  flex: none;
  width: var(--sw-w);
  height: var(--sw-h);
  background: var(--switch-off);
  border-radius: var(--r-full);
  transition: background .2s;
}
.switch-track::after {
  content: "";
  position: absolute; top: var(--sw-pad); left: var(--sw-pad);
  width: var(--sw-dot); height: var(--sw-dot);
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.switch input:checked + .switch-track { background: var(--acc); }
.switch input:checked + .switch-track::after {
  transform: translateX(calc(var(--sw-w) - var(--sw-dot) - var(--sw-pad) * 2));
}
.switch input:disabled + .switch-track { background: var(--a-200); }
.switch input:disabled ~ span { color: var(--ink-dis); }

.switch > span:not(.switch-track) { font-size: var(--fs); line-height: var(--lh); color: var(--ink); }

.switch-row {
  display: flex;
  gap: var(--sp-200);
  padding: var(--sp-150) 0;
}
.switch-row + .switch-row { border-top: var(--bw) solid var(--line); }
.switch-row .switch-row-text b { display: block; font-weight: var(--fw-reg); font-size: var(--fs); }
.switch-row .switch { flex: none; }
.switch-row-parts {
  display: flex; align-items: center; gap: var(--sp-100);
  flex: none; align-self: center;
  flex-wrap: wrap; max-width: 100%;
}
.switch-row-parts > .switch { align-self: center; }
.switch-row:has(> .switch-row-parts) { flex-wrap: wrap; }
.switch-row:has(> .switch-row-parts) > .switch-row-text { flex-basis: 240px; }

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }

.field-search { position: relative; display: block; width: 100%; max-width: var(--search-max, none); }
/* a search with nothing to search in is hidden (kit/rowlist.js, a list not received) - its own display kept it */
.field-search[hidden] { display: none; }
input.input.search:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]) {
  width: 100%; padding-right: calc(var(--h-btn-sm) + var(--sp-150));
}
.field-clear {
  position: absolute; top: 50%; right: var(--sp-075);
  transform: translateY(-50%);
  display: none; align-items: center; justify-content: center;
  width: var(--h-btn-sm); height: var(--h-btn-sm);
  padding: 0;
  color: var(--ink3);
  background: none;
  border: none; border-radius: var(--r-s);
  cursor: pointer;
  transition: color .15s;
}
.field-search.filled .field-clear { display: inline-flex; }
.field-search > .field-sign {
  position: absolute; top: 50%; left: var(--sp-150);
  transform: translateY(-50%);
  display: inline-flex;
  color: var(--ink3);
  pointer-events: none;
}
/* the inset, the 16-px sign, the step to the words */
.field-search.signed > input.input.search { padding-left: calc(var(--sp-150) + var(--sp-200) + var(--sp-100)); }

.ic {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
}
.ic svg, .pick-dot svg { width: 100%; height: 100%; display: block; }

.pick-mark { display: inline-flex; gap: var(--sp-100); cursor: pointer; user-select: none;
             width: fit-content; max-width: 100%;
             font-size: var(--fs); line-height: var(--lh); }
.pick-dot {
  --pick-d: 18px;
  flex: none;
  width: var(--pick-d); height: var(--pick-d);
  border: var(--bw) solid var(--line2);
  border-radius: var(--r-xs);
  background: var(--field);
  color: #fff;
  transition: background .12s, border-color .12s;
}
.pick-dot > .ic { opacity: 0; transition: opacity .12s; }
.pick-dot > .ic:last-child { display: none; }
.pick-mark input:is(:checked, [type=checkbox]:indeterminate) + .pick-dot {
  background: var(--acc-solid); border-color: var(--acc-solid);
}
.pick-mark input:checked + .pick-dot > .ic:first-child { opacity: 1; }
.pick-mark input[type=checkbox]:indeterminate + .pick-dot > .ic:first-child { display: none; }
.pick-mark input[type=checkbox]:indeterminate + .pick-dot > .ic:last-child { display: inline-flex; opacity: 1; }
/* a mark that cannot be changed keeps its state readable (15.2768): grey, the tick in the ink - not a white tick lost on
   a pale plate */
.pick-mark:has(input:disabled) { cursor: default; }
.pick-mark input:disabled + .pick-dot { background: var(--a-100); border-color: var(--line); color: var(--ink2); }
.pick-mark input:disabled:is(:checked, [type=checkbox]:indeterminate) + .pick-dot { background: var(--a-200); border-color: var(--a-200); }
.pick-mark input:disabled ~ span { color: var(--ink-dis); }
.switch input:focus-visible + .switch-track,
.pick-mark input:focus-visible + .pick-dot { outline: var(--bw-foc) solid var(--focus); outline-offset: 2px; }

.pick-mark.radio .pick-dot { border-radius: 50%; }
.pick-mark.radio .pick-dot::after {
  content: ""; width: calc(var(--pick-d) / 3); height: calc(var(--pick-d) / 3);
  border-radius: 50%; background: #fff;
  transform: scale(0); transition: transform .12s;
}
.pick-mark.radio input:checked + .pick-dot::after { transform: scale(1); }

.range {
  -webkit-appearance: none;
  appearance: none;
  --range-track: 6px;
  --range-thumb: 16px;
  width: 100%;
  height: 24px;
  background: transparent;
  padding: 0;
  border: none;
  margin: 0;
}
.range::-webkit-slider-runnable-track {
  height: var(--range-track);
  border-radius: var(--r-full);
  background: linear-gradient(var(--acc), var(--acc)) 0/var(--range-fill, 0%) 100% no-repeat,
              var(--a-300);
}
.range::-moz-range-track {
  height: var(--range-track); border-radius: var(--r-full); background: var(--a-300);
}
.range::-moz-range-progress {
  height: var(--range-track); border-radius: var(--r-full); background: var(--acc);
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: var(--range-thumb); height: var(--range-thumb);
  margin-top: calc((var(--range-track) - var(--range-thumb)) / 2);
  border-radius: 50%;
  background: var(--acc);
  border: none;
  cursor: pointer;
}
.range::-moz-range-thumb {
  width: var(--range-thumb); height: var(--range-thumb);
  border-radius: 50%;
  background: var(--acc);
  border: none;
  cursor: pointer;
}
.range:focus-visible::-webkit-slider-thumb { outline: var(--bw-foc) solid var(--focus); outline-offset: 2px; }
.range:disabled { opacity: .4; }

:not(.row):not(.wrap):not(.screen-head):not(.quotes-bar):not(.actrow):not(.switch-row-parts):not(.stage-body > section):not(.float-group)
  > :is(:is(.seg, .segment):not([hidden]), :is(.seg, .segment) + .seg-drop)
  + *:not(.seg):not(.segment):not(.seg-drop):not(.btn):not(.chip) {
  margin-top: var(--sp-250);
}

.seg, .segment {
  --pad: var(--sp-025);
  position: relative;
  display: inline-flex;
  flex-wrap: nowrap;
  width: fit-content; max-width: 100%;
  padding: var(--pad);
  background: var(--a-200);
  border: none;
  border-radius: var(--r);
  -webkit-user-select: none; user-select: none;
}
.seg > button, .segment button {
  position: relative; z-index: 1;
  flex: 0 1 auto;
  min-width: 0;
  height: 28px; padding: 0 var(--sp-150);
  font-size: var(--fs); font-weight: var(--fw-reg); line-height: 1;
  justify-content: center;
  color: var(--ink2); background: none; border: none;
  border-radius: calc(var(--r) - var(--pad));
  transition: color .15s;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: var(--sp-075);
}
.seg > button:hover, .segment button:hover { color: var(--ink); }
.seg > button:disabled, .segment button:disabled {
  color: var(--ink-dis); cursor: not-allowed;
}
.seg > button:disabled:hover, .segment button:disabled:hover {
  color: var(--ink-dis);
}
.seg > button.on, .segment button.active {
  color: var(--acc-ink);
}

/* 15.2684: a finger's hit area of 44 px; the drawn item stays 28 high */
@media (pointer: coarse) {
  .seg > button::before, .segment button::before { content: ""; position: absolute; left: 0; right: 0;
    top: calc((28px - var(--tap, 44px)) / 2); bottom: calc((28px - var(--tap, 44px)) / 2); }
}
.seg > button > svg, .segment button > svg { width: 15px; height: 15px;
                                             flex: none; }

.seg > button[data-seg-tap]:focus-visible,
.segment button[data-seg-tap]:focus-visible { outline: none; }

.seg > button > .seg-label, .segment button > .seg-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seg[hidden], .segment[hidden] { display: none; }

.seg.icons > button, .disc-seg .disc-mode {
  min-width: 44px; padding: 0 var(--sp-100);
}
.seg.icons > button > svg, .disc-seg .disc-mode svg {
  width: 16px; height: 16px; display: block;
}

.opt-line { display: flex; flex-direction: column; gap: var(--sp-050);
            min-width: 0; }
.opt-line > .row { gap: var(--sp-100); align-items: center; flex-wrap: wrap; }
.opt-num { flex: none; display: block; width: 96px; }
.opt-line > .row input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]):not(.wp-num):not(.pin-input),
.switch-row-parts input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]):not(.wp-num):not(.pin-input),
.opt-line > .row .input,
.switch-row-parts .input,
.opt-line > .row > .switch,
.opt-line > .row .chip { height: var(--h-field-sm); }
@keyframes opt-in { from { opacity: 0; transform: translateX(calc(var(--sp-075) * -1)); } }
.opt-in { animation: opt-in var(--dur-pop) var(--ease-out); }
html[data-motion="calm"] .opt-in { animation: none; }
/* 15.2927: a screen comes in by a short fade, not at once */
#screen.screen-arrived { animation: screen-in var(--dur-pop) var(--ease-out); }
@keyframes screen-in { from { opacity: 0; } }
html[data-motion="calm"] #screen.screen-arrived { animation: none; }
@media (prefers-reduced-motion: reduce) { #screen.screen-arrived { animation: none; } }
.opt-num.wide { width: 128px; }

.seg-thumb {
  position: absolute; left: 0; top: 0;
  z-index: 0;
  width: 0; height: 0;
  border-radius: calc(var(--r) - var(--pad));
  opacity: 0;
  pointer-events: none;
  transition: transform .24s cubic-bezier(.2, .8, .3, 1),
              width .24s cubic-bezier(.2, .8, .3, 1),
              height .24s cubic-bezier(.2, .8, .3, 1),
              opacity .15s;
  background: var(--card);
}
.seg-thumb.shown { opacity: 1; }
.seg-thumb.no-anim { transition: none; }

:root[data-theme="dark"] .seg-thumb {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.card, .grid-table, .toast, .dialog, .panel,
.seg, .segment, .wg-quick,
.dash-quota-t, .swatch, .chip, .tab, .btn, .icon-btn,
.pick-dot, .avatar, .cp-pop, .combo-drop,
.sheetview-frame {
  overflow: clip;
}
.grid-rows, .scr, .screen, .rail-scroll, .panel-body { overflow: auto; }

.card {
  background: var(--card);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-l);
}
.card-pad  { padding: var(--gap); }
.card-title { font-family: var(--font-h); font-weight: var(--fw-bold);
              font-size: var(--fs-l); line-height: var(--lh-l); }
.card-title + * { margin-top: var(--sp-200); }
.btn > svg { width: 15px; height: 15px; flex: none; }

.card-title > svg { width: 18px; height: 18px; color: var(--ink3);
                    vertical-align: -0.2em; margin-right: var(--sp-100); }
:is(.row, .row-acts, .panel-head, .panel-title-box, .fold-head, .list-head, .screen-head,
    .seg, .field-row) > .card-title + * {
  margin-top: 0;
}

.chip {
  gap: var(--sp-075);
  height: var(--h-chip);
  padding: 0 var(--sp-100);
  font-size: var(--fs);
  font-weight: var(--fw-med);
  line-height: 1;
  white-space: nowrap;
  max-width: 100%;
  border-radius: calc(var(--h-chip) * var(--round));
  border-radius: round(calc(var(--h-chip) * var(--round)), 1px);
  background: var(--a-200);
  border: none;
  color: var(--ink2);
}
.chip.accent, .chip.kind-update            { color: var(--acc-ink);    background: var(--fill-acc); }
.chip.danger, .chip.notice-urgency.urg-critical { color: var(--danger-ink); background: var(--fill-danger); }
.chip.warn,   .chip.kind-work              { color: var(--warn-ink);   background: var(--fill-warn); }
.chip.good,   .chip.kind-offer             { color: var(--good-ink);   background: var(--fill-good); }
.chip.info,   .chip.notice-urgency.urg-normal   { color: var(--info-ink);   background: var(--fill-info); }
.chip.small  { height: var(--h-chip-sm); font-size: var(--fs-s); }
/* 15.1497: categories as chips (`chipFilter`, /kit/chipfilter.js) - the pressed one in the accent's weak ground, as
   `.btn.on` */
.chip-filter { display: flex; flex-wrap: wrap; gap: var(--sp-075); }
.chip.chip-pick { cursor: pointer; font-weight: var(--fw-reg); }
.chip.chip-pick:hover { background: var(--a-300); }
.chip.chip-pick.on { background: var(--acc-weak); color: var(--acc-ink); }
.chip-pick-n { color: var(--ink3); }
.chip.chip-pick.on .chip-pick-n { color: inherit; }
/* A hidden control takes no place: the display of the controls overrides the browser's own (15.823) */
.btn[hidden], .icon-btn[hidden], .chip[hidden] { display: none; }

.chip.chip-x { padding-right: var(--sp-025); }
.chip-off {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--h-chip-sm); height: var(--h-chip-sm); flex: none;
  padding: 0; border: none; background: none; cursor: pointer;
  color: inherit; opacity: .55;
  border-radius: calc(var(--h-chip-sm) * var(--round));
  border-radius: round(calc(var(--h-chip-sm) * var(--round)), 1px);
  transition: opacity .15s, background .15s;
}
.chip-off:hover { opacity: 1; background: var(--a-300); }
.chip-off:focus-visible {
  opacity: 1;
  outline: var(--bw-foc) solid var(--focus); outline-offset: 1px;
}

.link-tag {
  display: inline;
  padding: 0 var(--sp-050);
  border-radius: var(--r-xs);
  background: var(--acc-weak);
  color: var(--acc-ink);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.link-tag.warn { background: var(--warn-weak); color: var(--warn-ink); }
.link-tag.ask { background: var(--a-200); color: var(--ink2); }

.note-box,
/* живой: Ares's own windows inside DEOS (Ares apps/web/src/deos/feedback.ts) */
.field-hint, .field-error,
.calc-error-line, .actrow-err,
.login-error {
  --note-bg:  var(--a-100);
  --note-ink: var(--ink2);
  position: relative;
  display: block;
  padding: var(--sp-100) var(--sp-150);
  border: none;
  border-radius: var(--r);
  background: var(--note-bg);
  color: var(--note-ink);
  font-size: var(--fs-s);
  line-height: var(--lh-s);
}

.note-box.warn, .calc-error-line, .actrow-err {
  --note-bg:  var(--warn-weak);
  --note-ink: var(--warn-ink);
}
.note-box.danger, .field-error, .login-error {
  --note-bg:  var(--danger-weak);
  --note-ink: var(--danger-ink);
}
.note-box.good {
  --note-bg:  var(--good-weak);
  --note-ink: var(--good-ink);
}

.note-box:empty,
.field-hint:empty, .field-error:empty,
.calc-error-line:empty, .actrow-err:empty,
.login-error:empty { display: none; }
/* 15.2166: a note told hidden is hidden, words in it or not (its display beat the attribute) */
:is(.note-box, .field-hint, .field-error, .calc-error-line, .actrow-err, .login-error)[hidden] { display: none; }

.note-box.noted {
  padding-left: calc(var(--sp-150) + var(--lh-s) + var(--sp-100));
}
.note-box-icon {
  position: absolute;
  left: var(--sp-150);
  top: var(--sp-100);
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--lh-s); height: var(--lh-s);
  color: inherit;
}
.note-box-icon svg, .brand-own svg { width: 100%; height: 100%; }

.note-box p { margin: 0 0 var(--sp-050); }
.note-box > :last-child { margin-bottom: 0; }

.grid-head,
.grid-row { display: grid; grid-template-columns: var(--cols, 1fr);
                        gap: var(--sp-100); align-items: center;
                        padding: var(--sp-075) var(--edge-right)
                                 var(--sp-075) var(--sp-150); }
.grid-table > :is(.grid-head, .grid-foot) {
  padding-right: calc(var(--edge-right) + var(--rows-bar, 0px));
}
.grid-head {
  overflow-x: hidden;
  font-size: var(--fs-s); line-height: var(--lh-s); font-weight: var(--fw-reg);
  color: var(--ink2);
  background-color: var(--card);
  background-image: linear-gradient(var(--a-100), var(--a-100));
  border-bottom: var(--bw-sel) solid var(--a-300);
}
.grid-head .right, .grid-row .right { text-align: right; }
.grid-row { min-height: var(--h-row); }
.grid-row + .grid-row { border-top: var(--bw) solid var(--line); }
@media (hover: hover) { .grid-row:hover { background: var(--a-200); } }
.grid-table {
  border: var(--bw) solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--card);
  flex: 0 1 auto;
  min-height: 0;
}
.sblock .grid-table { display: flex; flex-direction: column; }
.sblock .grid-table > .grid-head,
.sblock .grid-table > .grid-foot { flex: none; }
.sblock:not(.sband) .grid-table > .grid-rows {
  flex: 0 1 auto; min-height: 0; max-height: none;
}
.sblock:not(.sband) > .sflow:has(> .grid-table:only-child) {
  display: flex; flex-direction: column; overflow-y: hidden;
}
.sblock:not(.sband) > .sflow > .grid-table:only-child { flex: 1 1 auto; min-height: 0; }
.sblock:not(.sband) > .sflow > .grid-table:only-child > .grid-rows {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
}

.grid-rows { max-height: min(56vh, 620px); overflow: auto;
             min-height: var(--h-row); }

.sblock.sband[data-fill="1"] .grid-table > .grid-rows { flex: 0 0 auto; }

.sblock.sband.list-fill:is([data-fill="1"], [data-fill="screen"]) .grid-table > .grid-rows {
  flex: 1 1 0;
  max-height: none;
}
.sblock.sband.list-fill:is([data-fill="1"], [data-fill="screen"]) > .fill { min-height: 0; }
.sblock.sband.list-fill:is([data-fill="1"], [data-fill="screen"]) .grid-table {
  flex: 1 1 auto;
  min-height: 0;
}
.sblock.list-fill:not(.sband) > .sflow > .grid-table {
  flex: 1 1 auto;
  min-height: 0;
}
.sblock.list-fill:not(.sband) > .sflow > .grid-table > .grid-rows {
  flex: 1 1 0;
  min-height: 0;
}

.pick-table { min-height: 0; display: flex; flex-direction: column; }
.pick-table > .table-bar { flex: none; }
/* 15.2198: in a stack of groups the stack's step stands before the buttons too - not their own margin over it */
.si-groups > .dialog-actions { margin-top: 0; }
/* 15.2197: the place's bar across a row of a group (the request of more place, a storage's share) */
.rg-row.rg-share { display: block; }
.rg-row.rg-share > .dash-quota { width: 100%; }

/* 15.2192, 15.2194: the selection island right under its table, held at the screen's foot while the table runs below
   it - as iOS's selection toolbar and Linear's; an island of a menu's kind (card ground, line, overlay shadow) */
/* 15.2288: the assortment's list stands its island the same way */
.pick-table > .pick-float-host, .pick-float-host.catalog-float {
  /* bottom 0: the screen's scroller keeps its own padding under it (24, a phone's 12) - the gap at the screen's foot */
  position: sticky; bottom: 0; z-index: 3;
  display: flex; justify-content: center; pointer-events: none;
}
.pick-table > .pick-float-host:empty, .pick-float-host.catalog-float:empty { display: none; }

/* 15.2356: the assortment's «Добавить позицию» heads its list - a row of the new look inside the table's rows, its plus on
   the marks' column, its words where the names' words begin (the field's own inset) */
.grid-rows > .rg-row.ct-add {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: var(--sp-100);
  min-height: var(--h-row); padding: var(--sp-075) var(--edge-right) var(--sp-075) var(--sp-150);
}
/* вне шкалы: the 32 circle centred on an 18 mark - (32 − 18) / 2 */
.grid-rows > .rg-row.ct-add > .rg-plus { justify-self: start; margin-inline: -7px; }
.grid-rows > .rg-row.ct-add > .ct-add-words { padding-left: calc(var(--sp-150) + var(--bw)); }
.grid-rows > .rg-row.ct-add + .grid-row { border-top: var(--bw) solid var(--line); }
html[data-mob] .nd-page .grid-rows > .rg-row.ct-add {
  grid-template-columns: auto minmax(0, 1fr); padding: var(--sp-100) var(--sp-100) var(--sp-100) var(--sp-150);
}
/* 15.2354: a position's «⋯» - the phone's way to its actions; a computer keeps the icons in the row */
.grid-row.ct-row > .ct-more { display: none; }
/* a phone's position in two lines: the mark, the name and «⋯»; the size and the price under the name; a special coefficient
   and price - named lines of their own; a search's section over the name */
html[data-mob] .nd-page .grid-row.ct-row {
  /* 15.2894: as the kit's list row - the name and the price on one line, the size quiet under the name */
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  grid-template-areas:
    "pick where  where  more"
    "pick name   price  more"
    "pick sheet  sheet  more"
    ".    keff   keff   keff"
    ".    sprice sprice sprice";
  column-gap: var(--sp-100); row-gap: 0;
  align-items: center;
  padding: var(--sp-100) var(--sp-100) var(--sp-100) var(--sp-150);
}
html[data-mob] .nd-page .grid-row.ct-row > [data-col="pick"] { grid-area: pick; }
html[data-mob] .nd-page .grid-row.ct-row > [data-col="where"] { grid-area: where; }
html[data-mob] .nd-page .grid-row.ct-row > [data-col="name"] { grid-area: name; }
html[data-mob] .nd-page .grid-row.ct-row > [data-col="sheet"] { grid-area: sheet; }
html[data-mob] .nd-page .grid-row.ct-row > [data-col="price"] { grid-area: price; }
html[data-mob] .nd-page .grid-row.ct-row > [data-col="keff"] { grid-area: keff; }
html[data-mob] .nd-page .grid-row.ct-row > [data-col="sprice"] { grid-area: sprice; }
html[data-mob] .nd-page .grid-row.ct-row > [data-col="acts"] { display: none; }
html[data-mob] .nd-page .grid-row.ct-row > .ct-more { display: inline-flex; grid-area: more; }
html[data-mob] .nd-page .grid-row.ct-row > [data-col="sheet"] { font-size: var(--fs-s); line-height: var(--lh-s); color: var(--ink3); }
html[data-mob] .nd-page .grid-row.ct-row > div[data-col="sheet"]:empty { display: none; }
html[data-mob] .nd-page .grid-row.ct-row > input[data-col="name"] { text-overflow: ellipsis; }
/* the size a quiet line right under the name's words: its field no taller than its line, up into the name field's own inset */
html[data-mob] .nd-page .grid-row.ct-row > input[data-col="sheet"] {
  height: calc(var(--lh-s) + var(--sp-050)); min-height: 0; margin-top: calc(-1 * var(--sp-075)); padding-block: 0;
}
/* the price field as wide as a price of seven digits, the name keeps the rest */
html[data-mob] .nd-page .grid-row.ct-row > [data-col="price"] .input { width: calc(9ch + var(--sp-200)); }
/* 15.2894: the positions are one island of the kit's list, a hairline between them from where the words start */
html[data-mob] .nd-page .grid-row.ct-row { position: relative; }
/* «Выделить всё» over the positions: its mark over theirs, its word over their names */
html[data-mob] .nd-page .grid-table:has(> .grid-rows > .grid-row.ct-row) > .grid-head {
  --row-in: var(--sp-150); --row-lead: calc(18px + var(--sp-100) + var(--sp-150) + var(--bw));
}
html[data-mob] .nd-page :is(.grid-row.ct-row, .rg-row.ct-add) + .grid-row.ct-row { border-top: 0; }
html[data-mob] .nd-page :is(.grid-row.ct-row, .rg-row.ct-add) + .grid-row.ct-row:not(.spotlight)::before {
  /* the row's inset, the mark (the pick mark's 18), the gap, the name field's own inset and edge */
  content: ""; position: absolute; top: 0; right: 0; left: calc(var(--sp-150) + 18px + var(--sp-100) + var(--sp-150) + var(--bw));
  height: var(--bw); background: var(--line);
}
:root .pick-float-host > .bulk-bar.nd-bulk.pick-float {
  margin: 0; width: max-content; max-width: 100%; pointer-events: auto;
  padding: var(--sp-075) var(--sp-075) var(--sp-075) var(--sp-200);
  background: var(--card); border: var(--bw) solid var(--line); border-radius: var(--r-l);
  box-shadow: var(--sh-overlay);
}
:root .pick-float-host .nd-bulk-count { font-size: var(--fs); line-height: var(--lh); }
:root .pick-float-host .nd-bulk-acts { flex: 0 1 auto; }
/* 15.2365: on a phone the island is the count with «Снять выделение» over an even grid of its actions - two to a row, one width
   and height, the quiet fill of a plain button; an odd last one (`.nd-bulk-wide`, kit/table.js) takes the whole row; equal insets */
html[data-mob] .pick-float-host > .bulk-bar.nd-bulk.pick-float { width: 100%; flex-wrap: wrap; row-gap: var(--sp-100);
  padding: var(--sp-150); }
html[data-mob] .pick-float-host .nd-bulk-count { padding-right: 0; }
html[data-mob] .pick-float-host .nd-bulk-clear { padding-inline: 0; }
html[data-mob] .pick-float-host .nd-bulk-acts { flex: 1 1 100%; overflow: visible; display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-100); }
html[data-mob] .pick-float-host .nd-bulk .nd-bulk-acts > .btn.small { width: 100%; max-width: none; height: var(--h-btn);
  justify-content: center; padding-inline: var(--sp-100); background: var(--a-100); }
@media (hover: hover) { html[data-mob] .pick-float-host .nd-bulk .nd-bulk-acts > .btn.small:hover { background: var(--a-200); } }
html[data-mob] .pick-float-host .nd-bulk-acts > .nd-bulk-wide { grid-column: 1 / -1; }
html[data-mob] .pick-float-host .nd-bulk-acts > :not(.btn):not(.nd-bulk-more) { grid-column: 1 / -1; }
.pick-table > .pick-body { flex: 0 1 auto; min-height: 0; display: flex;
                           flex-direction: column; }

.grid-row > .pick-mark, .grid-head .head-pick { justify-self: start; }

.grid-row.hot-row { cursor: pointer; }
.grid-chev, .grid-quiet { display: none; } /* a phone's list row shows them (15.2506) */

.grid-foot {
  border-top: var(--bw-sel) solid var(--a-300);
  background-color: var(--card);
  background-image: var(--fill-acc);
  font-weight: var(--fw-semi);
  color: var(--acc-ink);
}
.grid-foot:hover { background: var(--fill-acc); }

/* 15.2969: a cell of buttons is right-aligned by its own content. A :has() on the table with a classless last part made
   every node put anywhere on a page restyle the whole page (a list's opening paid 35 ms); an action column's head is
   empty, so the head needs no rule */
.grid-row > :last-child:has(> :is(.btn, .icon-btn, .row-acts)) {
  display: flex; align-items: center; justify-content: flex-end;
  gap: var(--sp-050); text-align: right;
}
.grid-row > *:last-child > .row-acts { justify-content: flex-end; }

.grid-head > *, .grid-row > * { min-width: 0; overflow-wrap: anywhere; }

.grid-row b, .grid-row strong, .grid-head b, .grid-head strong {
  font-weight: inherit;
}

.row-acts {
  display: inline-flex; flex-wrap: wrap; align-items: center;
  gap: var(--sp-050); min-width: 0;
}
/* A table's row buttons as the quote's table shows them (15.2722; calc-order.css «.qe-acts»): small icons that come
   under the pointer or the keyboard's focus; a pressed one stays seen; a touch screen shows them all */
.row-acts.reveal { flex-wrap: nowrap; }
.row-acts.reveal .icon-btn {
  width: var(--h-btn-sm); height: var(--h-btn-sm); border-radius: var(--r-s); font-size: var(--fs);
  opacity: 0; transition: opacity var(--dur-pop) var(--ease-out), background .15s, color .15s;
}
.row-acts.reveal .icon-btn svg { width: 16px; height: 16px; }
:is(.grid-row, .rg-row):is(:hover, :focus-within) .row-acts.reveal .icon-btn,
.row-acts.reveal .icon-btn:is(.on, [aria-pressed="true"]) { opacity: 1; }
@media (hover: none), (pointer: coarse) { .row-acts.reveal .icon-btn { opacity: 1; } }
html[data-motion="calm"] .row-acts.reveal .icon-btn { transition: none; }

/* A section's own sign after its name in the sidebar (`mark` of the nav item; Star - 15.657) */
.empty-state { padding: var(--sp-500) var(--sp-300); text-align: center; color: var(--ink3); }
/* The sign of an empty place or a failure (15.655): a soft circle with an icon of the registry over the words, put by
   one watcher (`startEmptySigns`, /kit/emptysign.js) */
/* Large and in the middle of the free space it stands in (15.658, 23.10: «должны были быть гораздо больше и по центру, в
   принципе как и везде»): a scroller holding it lets it fill its height; a page's own list gives it a good share of
   the screen */
.empty-state:has(> .empty-sign) { display: flex; flex-direction: column; align-items: center; justify-content: center;
                                  flex: 1 1 auto; gap: var(--sp-200); }
:is(.sflow, .sbase, .fill):has(> .empty-state > .empty-sign) { display: flex; flex-direction: column; }
/* An island's column keeps its children at their height (`.sblock > .sflow > *`); its empty place takes the rest */
.sblock > .sflow > .empty-state:has(> .empty-sign) { flex: 1 1 auto; }
:is(.nd-page, .nd-order) .empty-state:has(> .empty-sign) { min-height: min(45vh, 420px); }
/* 15.2439 («я тебе говорил везде эти экраны поменять»): the sign is emptyView's picture (failview.css `.fail-art`) - the
   sign in a soft disc of the accent's tint with a glow pulsing round it; a failure's in the danger's; the words a title
   in the main ink. Large on a page (15.816), smaller in a window, an island or a menu. */
.empty-state, .screen-error { --fail-tint: var(--acc); --fail-weak: var(--acc-weak); --fail-ink: var(--acc-ink); }
.screen-error { --fail-tint: var(--danger); --fail-weak: var(--danger-weak); --fail-ink: var(--danger-ink); }
.empty-state:has(> .empty-sign) { gap: var(--sp-100); color: var(--ink); font-family: var(--font-h); font-size: var(--fs-l);
                                  line-height: var(--lh-l); font-weight: var(--fw-semi); }
:is(.panel-body, .dialog-body, .sblock, .actx, .combo-drop) .empty-sign.fail-art { width: calc(var(--sp-600) * 2.5);
                                                                                  height: calc(var(--sp-600) * 2.5); }
:is(.panel-body, .dialog-body, .sblock, .actx, .combo-drop) .empty-sign .fail-glow { inset: var(--sp-200); }
:is(.panel-body, .dialog-body, .sblock, .actx, .combo-drop) .empty-sign .fail-disc { inset: var(--sp-300); }
:is(.panel-body, .dialog-body, .sblock, .actx, .combo-drop) .empty-state:has(> .empty-sign) {
  font-size: var(--fs); line-height: var(--lh); }
@media (prefers-reduced-motion: reduce) { .empty-sign .fail-glow { animation: none; opacity: .6; } }
[data-motion="calm"] .empty-sign .fail-glow { animation: none; opacity: .6; }
/* A failure stands large in the middle of the screen's room (15.663, 23.10: «по центру и больше, везде так сделай») */
.screen-error:has(.empty-sign) { align-content: center; gap: var(--sp-200); font-size: var(--fs-l); line-height: var(--lh-l);
                                 min-height: max(200px, calc(var(--screen-room) * .6)); }
.panel-body .empty-state, .dialog-body .empty-state {
  padding-block: var(--sp-300);
}

.tabs { display: flex; flex-wrap: wrap; gap: var(--sp-050); }
.tab {
  position: relative;
  white-space: nowrap;
  height: var(--h-btn);
  padding: 0 var(--sp-150);
  font-weight: var(--fw-med); font-size: var(--fs); line-height: var(--lh);
  color: var(--ink2);
  background: none; border: none;
  border-radius: var(--r);
  transition: background .15s, color .15s;
}
.tab.active { color: var(--acc-ink); background: var(--fill-acc); }
.tab.active:hover { background: linear-gradient(180deg, var(--acc-weak-2) 0%, var(--acc-weak) 100%); }

.combo { position: relative; width: 100%; max-width: 100%; }
.combo-button {
  display: flex; align-items: center; gap: var(--sp-100);
  text-align: left;
}
.combo-button:hover { background: var(--field2); }
.combo-button:disabled { opacity: .5; cursor: not-allowed; }
.combo.open .combo-button { border-color: var(--acc); background: var(--card); }
.combo.empty .combo-label { color: var(--ink3); }
.combo.invalid .combo-button { border-color: var(--danger); background: var(--danger-weak); }
/* An inline dropdown (15.599): the text of its row, a field only under the pointer, in focus and open - the rows of an
   estimate; the typed text taken as a new item - `.combo-create` */
.combo.inline { width: calc(100% + var(--sp-100) * 2); max-width: none; margin-inline: calc(var(--sp-100) * -1); }
.combo.inline .combo-button { padding-inline: var(--sp-100); border-color: transparent; background: none; box-shadow: none; }
.combo.inline .combo-button:is(:hover, :focus-visible) { background: var(--a-200); }
.combo.inline.open .combo-button { border-color: var(--acc); background: var(--card); }
.combo.inline:not(.open) .combo-button:not(:hover):not(:focus-visible) .combo-caret { visibility: hidden; }
.combo-create .combo-option-title { color: var(--acc-ink); }
/* 15.1498: a typed field - open, the field itself is the search, in the open button's own place and look */
.combo-typed { display: none; }
.combo.typeahead.open .combo-button { visibility: hidden; }
.combo.typeahead.open .combo-typed {
  display: block; position: absolute; inset: 0; width: 100%; margin: 0;
  padding: 0 var(--sp-100); font-size: inherit;
  background: var(--card); border: var(--bw) solid var(--acc); border-radius: var(--r);
}
.combo.typeahead .combo-options { max-height: none; }
/* 15.2969: the open typed field's arrow at its end, where the closed button's caret stood - a press closes the list */
.combo-shut { display: none; }
.combo.typeahead.open > .combo-shut {
  display: inline-flex; align-items: center; justify-content: center;
  position: absolute; top: 0; bottom: 0; right: var(--bw); width: calc(var(--sp-100) * 2 + 14px);
  z-index: calc(var(--z-popover) + 2); padding: 0; border: 0; background: none; color: var(--ink3); cursor: pointer;
}
.combo.typeahead.open > .combo-shut:hover { color: var(--ink); }
/* a field over a phone's keyboard has the arrow of its own (kit/overfield.js, 15.2914): one arrow, never two */
.combo.typeahead.open.kb-spread > .combo-shut { display: none; }
/* its words stop before the arrow (over the inset rules below and the quote table's) */
.combo.typeahead.open:not(.kb-spread):has(> .combo-shut) > input.combo-typed { padding-right: calc(var(--sp-100) * 2 + 14px); }
/* 15.2184 («обводка поля для ввода должна была быть над дропдауном»): an open field lies over its own list - the list's
   ground and shadow covered the frame's foot */
.combo.open > .combo-button, .combo.typeahead.open > .combo-typed { position: relative; z-index: calc(var(--z-popover) + 1); }
/* a phone's list pinned over the keyboard (15.2843) covers the button it was opened from: it stands away from it */
.combo.pinned.open > .combo-button { z-index: auto; }
.combo.typeahead.open > .combo-typed { position: absolute; min-height: 0; height: auto; }
/* 15.2187 («Ну отступы хоть ровняй»): the typed words start where the list's rows do - the list's inset and the row's, less
   the field's own line */
.combo.typeahead.open > .combo-typed { padding-inline: calc(var(--sp-100) + var(--sp-150) - var(--bw)); }

.combo-label { flex: 1 1 auto; }
/* 15.2984: a chosen field shows the name alone; the auxiliary words are a second tier only in the open list, kept here for the row title */
.combo-label-sub { display: none; }
.combo-lead { display: flex; align-items: center; flex: none; }
.combo-lead[hidden] { display: none; }
.combo-caret, .drop-pic-n { color: var(--ink3); font-size: var(--fs-xs); }
/* the caret is the kit's chevron, not a font glyph «▾» (15.2506) */
.combo-caret { display: inline-flex; flex: none; }

.combo-drop {
  position: fixed; z-index: var(--z-popover);
  display: none;
  padding: var(--sp-100);
  background: var(--card);
  border: none;
  border-radius: var(--r-l);
  box-shadow: var(--sh-overlay);
}

.combo.open .combo-drop { display: block; }

/* 15.2967: a layer's origin is its own - a list turned upward no longer restyles its hundred rows */
@property --pop-origin { syntax: "*"; inherits: false; }
.pop-layer {
  opacity: 0; transform: var(--pop-from); pointer-events: none;
  transform-origin: var(--pop-origin, top center);
  transition: opacity var(--dur-pop) var(--ease-out),
              transform var(--dur-pop) var(--ease-out),
              display var(--dur-pop) allow-discrete;
}
.open > .pop-layer, .pop-layer.pop-live {
  opacity: 1; transform: none; pointer-events: auto;
}
@starting-style {
  .open > .pop-layer, .pop-layer.pop-live { opacity: 0; transform: var(--pop-from); }
}
.combo-drop.up, .pop-layer[data-side="above"] { --pop-origin: bottom center; }
html[data-motion="calm"] .pop-layer { transition: none; }
.combo-drop.up .combo-search { margin-bottom: 0; margin-top: var(--sp-075); }
/* a phone's search line, the iPhone field in its box (css/overfield.css), keeps the same gap to the options */
.combo-drop > .kb-field { margin-bottom: var(--sp-075); }
.combo-drop.up > .kb-field { margin-bottom: 0; margin-top: var(--sp-075); }

.combo-search {
  width: 100%; padding: var(--sp-100) var(--sp-150); margin-bottom: var(--sp-075);
  font-size: var(--fs);
  background: var(--field2);
  border: var(--bw) solid var(--line2);
  border-radius: var(--r-s);
}
.combo-options { max-height: 264px; overflow: auto; }
.combo-option { display: flex; align-items: center; gap: var(--sp-100);
                padding: var(--sp-100) var(--sp-150);
                border-radius: var(--r-s); cursor: pointer; }
.combo-drop.measuring .combo-option-body { min-width: auto; }
.combo-drop.measuring .combo-option-title,
.combo-drop.measuring .combo-option-sub { overflow: visible; text-overflow: clip; }
.combo-option-body { flex: 1 1 auto; min-width: 0; display: flex;
                     flex-direction: column; gap: var(--sp-025); }
.combo-option-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-option-sub   { color: var(--ink3); font-size: var(--fs-xs);
                      overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-option.active { background: var(--field2); }
/* a finger leaves no hover: the row under the tap that opened the list stood lit as if chosen (15.2967) */
@media (hover: hover) { .combo-option:hover { background: var(--field2); } }
.combo-option.selected { color: var(--acc-ink); font-weight: var(--fw-reg);
  background: var(--fill-acc); }
.combo-empty { padding: var(--sp-200) var(--sp-150); text-align: center; color: var(--ink3); }

.rate-warn { margin-bottom: var(--sp-300); }
.rate-warn-line + .rate-warn-line { margin-top: var(--sp-075); }

.cp .cp-row, .syscard-top {
  display: flex; align-items: center; gap: var(--sp-100);
}

.swatch {
  --swatch-size: 28;
  width: calc(var(--swatch-size) * 1px); height: calc(var(--swatch-size) * 1px); flex: none;
  border-radius: 50%;
  border: none;
  padding: 0;
  appearance: none; -webkit-appearance: none;
  background-clip: border-box;
  cursor: pointer;
  transition: box-shadow .15s, transform .1s;
}
.swatch:hover { transform: scale(1.07); }
.swatch.on { box-shadow: 0 0 0 2.5px var(--card), 0 0 0 5px var(--ink); }
.swatch:focus-visible, .kp-fill:focus-visible {
  outline: var(--bw-foc) solid var(--focus); outline-offset: 3px;
}

.cp-pop {
  position: fixed; z-index: var(--z-popover);
  width: 248px;
  background: var(--card);
  border: var(--bw) solid var(--line);
  border-radius: var(--r);
  padding: var(--sp-150);
  box-shadow: var(--sh-overlay);
}
.glyph-pick { display: flex; flex-direction: column; gap: var(--sp-100); }
.glyph-head { display: flex; align-items: center; gap: var(--sp-050); }
.glyph-head .field-search { flex: 1 1 auto; min-width: 0; }
.glyph-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--sp-050);
  max-height: calc(var(--h-btn) * 6 + var(--sp-050) * 5);
  overflow: auto;
}
.glyph-grid .empty-state { grid-column: 1 / -1; }
.glyph-cell {
  height: var(--h-btn); padding: 0;
  border: 0; border-radius: var(--r-xs);
  background: transparent; color: var(--ink);
  font-size: var(--fs-l); line-height: 1;
  font-variant-emoji: text;
}
.glyph-cell:hover { background: var(--a-100); }
.glyph-cell.on { background: var(--acc-weak); color: var(--acc-ink); }
.cp .cp-sv {
  position: relative; height: 140px;
  border-radius: var(--r-s);
  cursor: crosshair;
  touch-action: none;
}
.cp .cp-dot {
  position: absolute; width: 16px; height: 16px;
  border: 3px solid #fff; border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 1px 4px rgba(0, 0, 0, .45);
  pointer-events: none;
}
.cp .cp-hue {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 14px; margin: 0; padding: 0; border: none;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
  cursor: pointer;
}
.cp .cp-hue::-webkit-slider-runnable-track { background: none; height: 14px; border: none; }
.cp .cp-hue::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px;
  /* вне шкалы: не отступ, а посадка бегунка серединой на середину полосы
     - половина разницы ростов, своей величины у числа нет */
  margin-top: calc((14px - 18px) / 2);
  border-radius: 50%;
  border: 3px solid #fff; background: transparent;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35);
  cursor: pointer;
}
.cp .cp-hue::-moz-range-track { background: none; height: 14px; border: none; }
.cp .cp-hue::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  border: 3px solid #fff; background: transparent;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35);
}
.cp .cp-prev {
  width: var(--h-field); height: var(--h-field); flex: none;
  border-radius: var(--r); border: var(--bw) solid var(--a-300);
}
.cp .cp-hex  { flex: 1 1 auto; font-family: var(--num); font-variant-numeric: tabular-nums; text-transform: uppercase;
               text-align: center; }

.tip {
  position: fixed; z-index: var(--z-tip);
  max-width: min(320px, calc(100vw - 2 * var(--sp-100)));
  padding: var(--sp-050) var(--sp-100);
  border-radius: var(--r-xs);
  background: var(--tip-bg);
  color: var(--tip-ink);
  box-shadow: var(--sh-overlay);
  font-family: var(--font);
  font-size: var(--fs-s); line-height: var(--lh-s); font-weight: 400;
  white-space: pre-line; overflow-wrap: anywhere;
  pointer-events: none;
  opacity: 0;
  transform: translateY(var(--sp-025));
  transition: opacity .12s ease-out, transform .12s ease-out;
}
.tip[data-side="below"] { transform: translateY(calc(-1 * var(--sp-025))); }
.tip.on { opacity: 1; transform: none; }
html[data-motion="calm"] .tip { transition: none; }
@media (prefers-reduced-motion: reduce) { .tip { transition: none; } }

/* A field's verdict as it is typed (15.829, 15.830; `kit/verdict.js`): a note in the state's colours under the field */
.field-say {
  --note-bg: var(--danger-weak); --note-ink: var(--danger-ink);
  position: fixed; z-index: var(--z-tip);
  display: flex; align-items: flex-start; gap: var(--sp-075);
  max-width: min(360px, calc(100vw - 2 * var(--sp-100)));
  padding: var(--sp-075) var(--sp-100);
  border-radius: var(--r-s);
  background: var(--note-bg); color: var(--note-ink);
  box-shadow: var(--sh-raised);
  font-size: var(--fs-s); line-height: var(--lh-s); font-weight: 400;
  pointer-events: none;
  opacity: 0; transform: translateY(calc(-1 * var(--sp-025)));
  transition: opacity var(--dur-pop) var(--ease-out), transform var(--dur-pop) var(--ease-out);
}
.field-say > svg { flex: none; margin-top: var(--sp-025); }
.field-say.warn { --note-bg: var(--warn-weak); --note-ink: var(--warn-ink); }
.field-say.good { --note-bg: var(--good-weak); --note-ink: var(--good-ink); }
/* 15.2402: a chart's mark that leads somewhere */
.chart-go { cursor: pointer; }
.chart-row.chart-go:hover { background: var(--a-100); border-radius: var(--r-xs); }
.field-say.hint { --note-bg: var(--card); --note-ink: var(--ink2); box-shadow: var(--sh-overlay); }
.field-say.shown { opacity: 1; transform: none; }
html[data-motion="calm"] .field-say { transition: none; }
@media (prefers-reduced-motion: reduce) { .field-say { transition: none; } }
.field-say[hidden] { display: none; }

/* A group's refusal (`kit/verdict.js`: sayAtGroup) - a note in the flow under the group's caption that folds in and out;
   the negative margin takes back the section's gap while it is closed, so nothing moves before it opens */
.group-say {
  display: grid; grid-template-rows: 0fr;
  margin-bottom: calc(-1 * var(--sp-100));
  transition: grid-template-rows var(--dur-fold) var(--ease-out), margin-bottom var(--dur-fold) var(--ease-out);
}
.group-say.shown { grid-template-rows: 1fr; margin-bottom: 0; }
.group-say-in { min-height: 0; overflow: clip; }
.rg-section > :has(+ .group-say) { scroll-margin-top: var(--sp-300); }
html[data-motion="calm"] .group-say { transition: none; }
@media (prefers-reduced-motion: reduce) { .group-say { transition: none; } }

.undo-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-150);
  width: max-content;
  max-width: min(400px, 100%);
  min-height: var(--h-field);
  padding: var(--sp-050) var(--sp-050) var(--sp-050) var(--sp-150);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-l);
  background: var(--card);
  box-shadow: var(--sh-overlay);
  font-size: var(--fs);
  line-height: var(--lh);
  color: var(--ink);
}
.undo-bar-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.undo-timer {
  position: relative; flex: none;
  display: grid; place-items: center;
  width: var(--sp-300); height: var(--sp-300);
}
.progress-ring { transform: rotate(-90deg); }
.progress-ring circle { fill: none; stroke-width: 2; }
.progress-ring-track { stroke: var(--line); }
.progress-ring-run { stroke: var(--acc); stroke-linecap: round; stroke-dasharray: 100; }
.undo-timer > .progress-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
/* a busy button: the ring turns before the action's word; the button stays as wide as it was */
.btn.btn-busy:disabled { cursor: progress; }
.btn-busy > .progress-ring { width: var(--sp-200); height: var(--sp-200); animation: btn-busy-turn .9s linear infinite; }
.btn-busy > .progress-ring .progress-ring-run { stroke-dashoffset: 70; }
@keyframes btn-busy-turn { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) { .btn-busy > .progress-ring { animation: none; } }
.undo-count { font-size: var(--fs-s); line-height: 1; font-weight: var(--fw-med);
              font-variant-numeric: tabular-nums; }
.undo-bar-act {
  flex: none;
  height: var(--h-btn);
  padding: 0 var(--sp-150);
  border: 0; border-radius: var(--r-s);
  background: none;
  color: var(--acc-ink);
  font: inherit; font-weight: var(--fw-med);
  cursor: pointer;
}
.undo-bar-act:hover { background: var(--a-200); }

.scrim {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  --scrim-pad: var(--sp-250);
  padding: var(--scrim-pad);
  background: rgba(24, 22, 18, .44);
  backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .18s;
}
.scrim.shown { opacity: 1; }
.dialog-scrim { z-index: var(--z-dialog); }
.panel-scrim  { z-index: var(--z-overlay); }

.dialog {
  display: flex; flex-direction: column;
  max-height: calc(100dvh - var(--sp-500) * 2);
  width: min(440px, 94vw);
  padding: var(--sp-300);
  background: var(--card);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-lg);
  transform: scale(.92);
  transition: transform .16s;
}
.scrim.shown .dialog { transform: none; }
.dialog:has(.grid-table) { width: min(620px, 94vw); }
/* 15.2775: a window of rows each with a choice at its end (the board's «Поделиться») takes FigJam's share width */
.dialog:has(.dialog-wide) { width: min(560px, 94vw); }
.dialog-title, .dialog-actions { flex: none; }
/* 15.1782 («Просто сука прокрутку сделать надо было и занять высоту правильно»): on a low screen, the keyboard up, a window takes all the height
   there is and scrolls as a whole, its answers staying at its foot */
@media (max-height: 420px) {
  .scrim.dialog-scrim { --scrim-pad: var(--sp-100); }
  .dialog {
    max-height: calc(100dvh - var(--scrim-pad) * 2);
    overflow: auto;
    padding-block: var(--sp-150) 0;
    scroll-padding-block: var(--sp-100) calc(var(--h-field) + var(--sp-300));
  }
  .dialog > .dialog-body { flex: none; overflow: visible; }
  .dialog > .dialog-actions {
    position: sticky;
    bottom: 0;
    margin-top: 0;
    padding-block: var(--sp-100) var(--sp-150);
    background: var(--card);
  }
  /* 15.2996: a question window answers by a list of ways, not by that sticky row - its list keeps the window's foot */
  .dialog:has(> .dialog-ways) { padding-block-end: var(--sp-150); }
}
/* Atom's logo (15.965, `atomLogo` in /kit/atomlogo.js): the mark in Atom's green, the word in the place's ink */
.atom-logo { display: inline-flex; flex: none; align-items: center; color: var(--ink); line-height: 0; }
.atom-logo > svg { display: block; overflow: visible; /* 15.1241: the orbits' edge never clipped */ }
.atom-logo-light { stop-color: var(--atom-1); }
.atom-logo-mid { stop-color: var(--atom-2); }
.atom-logo-deep { stop-color: var(--atom-3); }
.echo-logo, .line-logo, .ares-logo { display: inline-flex; flex: none; align-items: center; color: var(--ink); line-height: 0; }
.echo-logo > svg, .line-logo > svg, .ares-logo > svg { display: block; overflow: visible; }
.echo-logo-light { stop-color: var(--echo-1); }
.echo-logo-mid { stop-color: var(--echo-2); }
.echo-logo-deep { stop-color: var(--echo-3); }
.line-logo-core { stop-color: var(--line-1); }
.line-logo-mid { stop-color: var(--line-2); }
.line-logo-tail { stop-color: var(--line-3); }
.star-logo-kit { display: inline-flex; flex: none; align-items: center; line-height: 0; }
.star-logo-kit > svg { display: block; overflow: visible; }
.star-dust-1 { stop-color: var(--star-dust-1); }
.star-dust-2 { stop-color: var(--star-dust-2); }
.star-dust-3 { stop-color: var(--star-dust-3); }
.ares-tone-1 { stop-color: var(--ares-1); }
.ares-tone-2 { stop-color: var(--ares-2); }
.line-logo-point { fill: var(--line-1); }
.dialog-title { font-family: var(--font-h); font-weight: var(--fw-bold); font-size: var(--fs-l); }
/* 15.968: the window's sign - the empty place's soft circle, tinted by what the question is about; before the title
   of a window with its own content */
.dialog-sign { display: inline-grid; flex: none; place-items: center; border-radius: var(--r-full);
               width: calc(var(--sp-600) * 1.25); height: calc(var(--sp-600) * 1.25);
               background: var(--acc-weak); color: var(--acc-ink); }
.dialog.danger .dialog-sign { background: var(--danger-weak); color: var(--danger-ink); }
.dialog.warn .dialog-sign { background: var(--warn-weak); color: var(--warn-ink); }
.dialog-title:has(> .dialog-sign) { display: flex; align-items: center; gap: var(--sp-150); }
.dialog-title > .dialog-sign { width: var(--sp-500); height: var(--sp-500); }
.dialog-body { flex: 0 1 auto; min-height: 0; overflow: auto;
               margin-top: var(--sp-100); color: var(--ink2);
               font-size: var(--fs); line-height: 1.5; }
.dialog-body .field-row { color: var(--ink); }
.dialog-actions { display: flex; justify-content: flex-end;
                  gap: var(--sp-100); margin-top: var(--sp-300); }
.dialog:not(.asking):has(.dialog-actions > :nth-child(3)) {
  width: fit-content; min-width: min(520px, 94vw);
}
.dialog:not(.asking):has(.dialog-actions > :nth-child(3)) > .dialog-body { contain: inline-size; }

.panel, .dialog {
  max-width: calc(100vw - var(--scrim-pad, var(--sp-250)) * 2);
}
.panel {
  display: flex; flex-direction: column;
  max-height: calc(100vh - 40px);
  background: var(--card);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: scale(.92);
  transition: transform .16s;
}
.scrim.shown .panel { transform: none; }
html[data-mob] .scrim { --scrim-pad: var(--sp-150); }
html:is([data-mob], [data-nav="drawer"]) .panel:not(.fs-self):not(:fullscreen) {
  height: calc(100dvh - var(--scrim-pad) * 2);
  max-height: none;
}
html[data-mob] .dialog { max-height: calc(100dvh - var(--scrim-pad) * 2); }
/* 15.870 («На телефоне нет смысла от такого масштабирования, пусть такие окна сразу в фуллскрине открывает просто»): a
   phone's window takes the whole screen from its opening - no margins, no rounding, no «Во весь экран»; held on its side
   too (`data-nav="drawer"`, 15.2710: «даже в горизонтальном режиме… сразу в фуллскрине»), its notch's side kept clear */
/* 15.887: a phone's window - its back arrow on a row of its own above the title, named with where it returns */
.panel-backrow { display: flex; flex: 0 0 100%; min-width: 0; }
.panel-back { gap: var(--sp-050); max-width: 100%; margin-inline-start: calc(-1 * var(--sp-100)); }
html:is([data-mob], [data-nav="drawer"]) .panel-head:has(> .panel-backrow) { flex-wrap: wrap; row-gap: var(--sp-050); }
/* 15.2878 («Размер заголовка с кнопкой назад… слишком огромный»): a head with no title under its back arrow keeps no
   empty row for it - 48 px of nothing the window's content went under */
html:is([data-mob], [data-nav="drawer"]) .panel-head:has(> .panel-backrow):has(> .panel-name:empty)
  > :is(.panel-name, .panel-tools:empty, .panel-controls:empty) { display: none; }
/* a phone has no pointer to show a cut subtitle whole: it takes two lines («Нацбанк Казахстана» lost «день», 15.2506) */
html:is([data-mob], [data-nav="drawer"]) .panel-sub.ellipsis {
  white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
}
html:is([data-mob], [data-nav="drawer"]) .scrim.panel-scrim { --scrim-pad: 0px; place-items: stretch; }
html:is([data-mob], [data-nav="drawer"]) .panel:not(.fs-self):not(:fullscreen) { width: 100vw !important; max-width: none;
  height: 100dvh; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) 0 env(safe-area-inset-left, 0px);
  border: 0; border-radius: 0; box-shadow: none; }
.panel-head {
  display: flex; align-items: flex-start; gap: var(--sp-100);
  padding: var(--sp-150) var(--sp-150) 0 var(--sp-300);
}
.panel-head :is(.btn, .btn.small) { height: var(--h-btn); }
.panel-name { flex: 0 1 auto; min-width: 0; line-height: var(--h-btn); }
.panel-name.panel-title-box { line-height: normal; gap: 0; }
.panel-title-box > .card-title { line-height: var(--h-btn); }
.panel-tools {
  flex: 1 1 auto; min-width: 0; margin-left: var(--sp-100);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-100) var(--sp-150);
}
.panel-controls { flex: none; display: flex; align-items: center; gap: var(--sp-050); height: var(--h-btn); }
/* a phone's head: the title and the close button on one centre line, the title's box as tall as the button */
html[data-mob] .panel-head { align-items: center; }
html[data-mob] .panel-name { display: flex; align-items: center; min-height: var(--h-btn); line-height: 1.2; }
/* 15.2972: a title with its sub is a column - centred by height, never across: the title stands over its sub's start */
html[data-mob] .panel-name.panel-title-box { flex-direction: column; align-items: stretch; justify-content: center; }
.panel-body { flex: 1 1 auto; overflow: auto;
              --pad-side: var(--sp-300);
              padding: var(--sp-200) var(--pad-side) var(--sp-300); }
.panel:fullscreen {
  width: 100vw !important;
  max-width: none;
  height: 100vh;
  max-height: none;
  border-radius: 0;
  border: 0;
  transform: none;
}
.panel.fs-self {
  inset: var(--fs-top) var(--fs-right) var(--fs-bottom) var(--fs-left);
  width: auto !important;
  max-width: none;
  height: auto;
  max-height: none;
  border-radius: calc(var(--r-l) * (1 - var(--fs-k)));
  border-width: calc(var(--bw) * (1 - var(--fs-k)));
  transform: none;
}
.panel:fullscreen .panel-body, .panel.fs-self .panel-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.panel-body > * + * { margin-top: var(--sp-250); }

.panel.steady { align-self: start; }
.panel-tabs { flex: none; padding: var(--sp-250) var(--sp-300) 0; }
.panel-pane > * + * { margin-top: var(--sp-250); }
.panel-body > .panel-stash { position: relative; height: 0; margin: 0;
                             overflow: hidden; visibility: hidden; }
.panel-stash > .panel-pane { position: absolute; inset: 0 0 auto 0; }

#root { height: 100%; }

/* a tall card (landscape phone, a note above the form) scrolls instead of being clipped; the bottom padding keeps it clear
   of the fixed theme pill; the lights stay fixed to the viewport so they do not scroll away */
.login {
  position: relative;
  display: grid; place-items: safe center; height: 100%;
  padding: var(--sp-300) var(--sp-300) calc(var(--sp-300) * 2 + 34px);
  background: var(--bg);
  overflow-x: hidden; overflow-y: auto;
}
.login > .login-mesh { position: fixed; }
/* 15.2958 («они были свободны, а сейчас прибиты к углам… Это не фирменный градиент»): no still glows pinned to the
   corners (two equal layers of them lay over the moving lights) - the ground is the moving lights alone, in the brand's
   five colours of «Войти» */

.login-mesh {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;
}
.login-orb {
  position: absolute;
  border-radius: 50%;
  width: 78vmax; height: 78vmax;
  margin: -39vmax 0 0 -39vmax;
  will-change: transform;

  mix-blend-mode: multiply;
}
[data-theme="dark"] .login-orb { mix-blend-mode: screen; }
/* 15.1071: the same ground as a layer under a box of a screen («Подписка») */
.login-ground { position: absolute; inset: 0; overflow: hidden; isolation: isolate; container-type: size;
  background: var(--bg); }  /* 15.1110: no gradient of its own under the lights («фоновый градиент можешь убрать») */
/* 15.1082 («почему он так слился? может дело в размере цветовых пятен»): the spots shaped by the box as the
   login's are by the screen - 78 % of its width across, 150 % of its height down; round ones as wide as a low box
   overlapped into grey */
/* 15.1109 («более размытые огни сделай, чтобы их свет распространялся дальше»): half as large again - the glow fades
   over a longer way */
.login-ground .login-orb { width: 115cqw; height: 220cqh; margin: -110cqh 0 0 -57.5cqw; filter: blur(2cqmin); }
/* 15.1092, 15.1106, 15.1107 («пусть двигаются рандомно»): in a box the lights wander - each from the box's middle to
   a random place inside it, corners too, then to another (`wander` of «Подписка»); still for reduced motion - at the
   corners and the middle; their glow breathes as the login's */
.login-ground .login-orb { top: 50%; left: 50%; }
.login-ground .login-orb-1 { translate: -30cqw -30cqh; animation: orb-glow-a 9s ease-in-out infinite; }
.login-ground .login-orb-2 { translate: 30cqw -30cqh; animation: orb-glow-b 13s ease-in-out infinite; }
.login-ground .login-orb-3 { translate: -30cqw 30cqh; animation: orb-glow-a 11s ease-in-out infinite; }
.login-ground .login-orb-4 { translate: 30cqw 30cqh; animation: orb-glow-b 8s ease-in-out infinite; }
.login-ground .login-orb-5 { translate: 0 0; animation: orb-glow-a 7s ease-in-out infinite; }

.login-orb-1 { background: radial-gradient(circle closest-side, rgba(242, 104, 111, 0.62) 0%, rgba(242, 104, 111, 0.62) 34%, rgba(242, 104, 111, 0.279) 58%, rgba(242, 104, 111, 0.093) 78%, rgba(242, 104, 111, 0.0) 100%); }  /* own colour: the brand\'s five hues of «Войти» (.shine-five) */
.login-orb-2 { background: radial-gradient(circle closest-side, rgba(246, 178, 79, 0.62) 0%, rgba(246, 178, 79, 0.62) 34%, rgba(246, 178, 79, 0.279) 58%, rgba(246, 178, 79, 0.093) 78%, rgba(246, 178, 79, 0.0) 100%); }  /* own colour: the brand\'s five hues of «Войти» (.shine-five) */
.login-orb-3 { background: radial-gradient(circle closest-side, rgba(30, 195, 163, 0.58) 0%, rgba(30, 195, 163, 0.58) 34%, rgba(30, 195, 163, 0.261) 58%, rgba(30, 195, 163, 0.087) 78%, rgba(30, 195, 163, 0.0) 100%); }  /* own colour: the brand\'s five hues of «Войти» (.shine-five) */
.login-orb-4 { background: radial-gradient(circle closest-side, rgba(21, 144, 200, 0.56) 0%, rgba(21, 144, 200, 0.56) 34%, rgba(21, 144, 200, 0.252) 58%, rgba(21, 144, 200, 0.084) 78%, rgba(21, 144, 200, 0.0) 100%); }  /* own colour: the brand\'s five hues of «Войти» (.shine-five) */
.login-orb-5 { background: radial-gradient(circle closest-side, rgba(154, 100, 196, 0.52) 0%, rgba(154, 100, 196, 0.52) 34%, rgba(154, 100, 196, 0.234) 58%, rgba(154, 100, 196, 0.078) 78%, rgba(154, 100, 196, 0.0) 100%); }  /* own colour: the brand\'s five hues of «Войти» (.shine-five) */

[data-theme="dark"] .login-orb-1 { background: radial-gradient(circle closest-side, rgba(242, 104, 111, 0.4) 0%, rgba(242, 104, 111, 0.4) 34%, rgba(242, 104, 111, 0.18) 58%, rgba(242, 104, 111, 0.06) 78%, rgba(242, 104, 111, 0.0) 100%); }  /* own colour: the brand\'s five hues of «Войти» (.shine-five) */
[data-theme="dark"] .login-orb-2 { background: radial-gradient(circle closest-side, rgba(246, 178, 79, 0.34) 0%, rgba(246, 178, 79, 0.34) 34%, rgba(246, 178, 79, 0.153) 58%, rgba(246, 178, 79, 0.051) 78%, rgba(246, 178, 79, 0.0) 100%); }  /* own colour: the brand\'s five hues of «Войти» (.shine-five) */
[data-theme="dark"] .login-orb-3 { background: radial-gradient(circle closest-side, rgba(30, 195, 163, 0.38) 0%, rgba(30, 195, 163, 0.38) 34%, rgba(30, 195, 163, 0.171) 58%, rgba(30, 195, 163, 0.057) 78%, rgba(30, 195, 163, 0.0) 100%); }  /* own colour: the brand\'s five hues of «Войти» (.shine-five) */
[data-theme="dark"] .login-orb-4 { background: radial-gradient(circle closest-side, rgba(21, 144, 200, 0.42) 0%, rgba(21, 144, 200, 0.42) 34%, rgba(21, 144, 200, 0.189) 58%, rgba(21, 144, 200, 0.063) 78%, rgba(21, 144, 200, 0.0) 100%); }  /* own colour: the brand\'s five hues of «Войти» (.shine-five) */
[data-theme="dark"] .login-orb-5 { background: radial-gradient(circle closest-side, rgba(154, 100, 196, 0.4) 0%, rgba(154, 100, 196, 0.4) 34%, rgba(154, 100, 196, 0.18) 58%, rgba(154, 100, 196, 0.06) 78%, rgba(154, 100, 196, 0.0) 100%); }  /* own colour: the brand\'s five hues of «Войти» (.shine-five) */

@keyframes orb-a {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  25%  { transform: translate3d(38vw, 14vh, 0) scale(1.16); }
  50%  { transform: translate3d(16vw, 34vh, 0) scale(.89); }
  75%  { transform: translate3d(-26vw, 18vh, 0) scale(1.19); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes orb-b {
  0%   { transform: translate3d(0, 0, 0) scale(1.07); }
  33%  { transform: translate3d(-40vw, 22vh, 0) scale(.9); }
  66%  { transform: translate3d(-14vw, -28vh, 0) scale(1.18); }
  100% { transform: translate3d(0, 0, 0) scale(1.07); }
}
@keyframes orb-c {
  0%   { transform: translate3d(0, 0, 0) scale(.92); }
  30%  { transform: translate3d(30vw, -26vh, 0) scale(1.19); }
  60%  { transform: translate3d(-28vw, -10vh, 0) scale(1); }
  100% { transform: translate3d(0, 0, 0) scale(.92); }
}

@keyframes orb-glow-a {
  0%, 100% { opacity: .62; }
  50%      { opacity: 1; }
}
@keyframes orb-glow-b {
  0%, 100% { opacity: 1; }
  45%      { opacity: .55; }
}

.login-orb-1 { top: 12%; left: 18%;
  animation: orb-a 17s ease-in-out infinite, orb-glow-a 9s ease-in-out infinite; }
.login-orb-2 { top: 8%;  left: 82%;
  animation: orb-b 21s ease-in-out infinite, orb-glow-b 13s ease-in-out infinite; }
.login-orb-3 { top: 86%; left: 12%;
  animation: orb-c 15s ease-in-out infinite, orb-glow-a 11s ease-in-out infinite; }
.login-orb-4 { top: 84%; left: 88%;
  animation: orb-a 23s ease-in-out infinite reverse, orb-glow-b 8s ease-in-out infinite; }
.login-orb-5 { top: 46%; left: 54%;
  animation: orb-c 13s ease-in-out infinite reverse, orb-glow-a 7s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .login-orb, .login-ground .login-orb { animation: none; }
}
[data-motion="calm"] :is(.login-orb, .login-ground .login-orb) { animation: none; }

/* 15.2792 («Переработай окно входа, не трогай фон и логотип»): a glass card on the lights, the DEOS mark above it, the
   company of the address beside DEOS; a brand edge turns slowly round the card, the pointer lights the glass */
@property --edge-turn { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.login-stage {
  position: relative; z-index: 1;
  width: min(420px, 100%);
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-300);
}
.login-brand { height: 52px; color: var(--ink); animation: login-rise .7s var(--ease-out) both; }
.login-brand svg { display: block; height: 100%; width: auto; }
.login-card {
  --glow-x: 50%; --glow-y: 0%;
  position: relative; isolation: isolate;
  width: 100%;
  padding: var(--sp-400) var(--sp-400) var(--sp-300);
  background: color-mix(in srgb, var(--card) 74%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5);
  border-radius: var(--r-xl);
  box-shadow: 0 28px 64px -16px rgba(28, 27, 24, .26), 0 2px 6px rgba(28, 27, 24, .06);  /* own colour: the lights' brand hues and the glass's shadow, as the ground under it */
  animation: login-rise .7s .08s var(--ease-out) both;
}
[data-theme="dark"] .login-card {
  background: color-mix(in srgb, var(--card) 70%, transparent);
  box-shadow: 0 28px 64px -16px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .3);  /* own colour: the lights' brand hues and the glass's shadow, as the ground under it */
}
.login-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  padding: 1.5px; border-radius: inherit;
  background: conic-gradient(from var(--edge-turn), rgba(214, 78, 92, .9), rgba(232, 160, 40, .9) 18%,  /* own colour: the lights' brand hues and the glass's shadow, as the ground under it */
    rgba(255, 255, 255, .5) 30%, rgba(28, 176, 170, .9) 46%, rgba(24, 132, 176, .9) 62%,  /* own colour: the lights' brand hues and the glass's shadow, as the ground under it */
    rgba(255, 255, 255, .5) 76%, rgba(168, 96, 168, .9) 88%, rgba(214, 78, 92, .9));  /* own colour: the lights' brand hues and the glass's shadow, as the ground under it */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);  /* own colour: the lights' brand hues and the glass's shadow, as the ground under it */
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .75;
  animation: login-edge 10s linear infinite;
  pointer-events: none;
}
.login-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--glow-x) var(--glow-y), rgba(255, 255, 255, .42), transparent 62%);  /* own colour: the lights' brand hues and the glass's shadow, as the ground under it */
  opacity: 0; transition: opacity var(--dur-reveal);
  pointer-events: none;
}
[data-theme="dark"] .login-card::after {
  background: radial-gradient(360px circle at var(--glow-x) var(--glow-y), rgba(255, 255, 255, .07), transparent 62%);  /* own colour: the lights' brand hues and the glass's shadow, as the ground under it */
}
.login-card:hover::after { opacity: 1; }
.login-card > * { animation: login-rise .6s var(--ease-out) both; }
.login-card > :nth-child(1) { animation-delay: .16s; }
.login-card > :nth-child(2) { animation-delay: .24s; }
.login-card > :nth-child(3) { animation-delay: .3s; }
.login-card > :nth-child(4) { animation-delay: .36s; }
.login-card.leaving, .login-brand.leaving { animation: login-leave .32s var(--ease-out) forwards; }
/* 15.2962: no blur in the sign-in's motion - a blurred glass card repainted every frame stuttered on a smartphone */
@keyframes login-rise { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@keyframes login-leave { to { opacity: 0; transform: translateY(-18px) scale(.97); } }
@keyframes login-edge { to { --edge-turn: 360deg; } }

.login-head {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-050);
  margin-bottom: var(--sp-300);
  text-align: center;
}
.login-title {
  margin: 0;
  font-family: var(--font-h); font-size: 26px; line-height: 1.2; font-weight: var(--fw-semi);
  letter-spacing: -.01em;
  color: var(--ink);
}
/* 15.2903 («Кривая надпись вход и название компании»): the company's title stands tight under «Вход», one pair */
.login-sub { margin: 0; color: var(--ink2); font-size: var(--fs-l); line-height: 20px; }
.login-text { color: var(--ink2); font-size: var(--fs-s); line-height: var(--lh-s); }
.login-form { display: flex; flex-direction: column; gap: var(--sp-200); }
.login-place { position: relative; }
.login-place.moving { overflow: clip; overflow-clip-margin: var(--sp-400); }
.login-line { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-150); flex-wrap: wrap; }
.login-back { display: flex; justify-content: center; }


/* the accounts this device remembers - one press to the password */
.login-caption { font-size: var(--fs-s); color: var(--ink3); }
.login-accounts { display: flex; flex-direction: column; gap: var(--sp-075); }
.login-account { position: relative; }
.login-account-main, .login-who {
  width: 100%; min-height: 64px;
  display: flex; align-items: center; gap: var(--sp-150);
  padding: var(--sp-100) var(--sp-150);
  border-radius: var(--r-l);
  background: color-mix(in srgb, var(--card) 60%, transparent);
  border: var(--bw) solid var(--line);
  color: var(--ink); font: inherit; text-align: left;
}
.login-account-main { cursor: pointer; transition: background var(--dur-pop), border-color var(--dur-pop), transform var(--dur-pop); }
.login-account-main:hover { background: var(--card); border-color: var(--line2); }
.login-account-main:active { transform: scale(.99); }
.login-account-main:focus-visible { outline: var(--bw-foc) solid var(--focus); outline-offset: 2px; }
.login-account-main.other { border-style: dashed; background: transparent; }
.login-account-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.login-account-name { font-weight: var(--fw-med); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.login-account-sub { font-size: var(--fs-s); color: var(--ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.login-account-go { display: inline-flex; color: var(--ink3); transition: transform var(--dur-pop), opacity var(--dur-pop); }
.login-account-main:hover .login-account-go { transform: translateX(3px); color: var(--ink); }
.login-account-drop {
  position: absolute; right: var(--sp-100); top: 50%; translate: 0 -50%;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  border: 0; background: var(--a-200); color: var(--ink2); cursor: pointer;
  opacity: 0; transition: opacity var(--dur-pop), background var(--dur-pop);
}
.login-account-drop:hover { background: var(--a-300); color: var(--ink); }
.login-account:hover .login-account-drop, .login-account-drop:focus-visible { opacity: 1; }
.login-account:hover .login-account-go { opacity: 0; }
@media (hover: none) {
  .login-account-drop { opacity: 1; }
  .login-account .login-account-go { opacity: 0; }
}
.login-who { min-height: 60px; background: var(--a-100); }
.login-person {
  flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgb(214, 78, 92), rgb(232, 160, 40));  /* own colour: the lights' brand hues and the glass's shadow, as the ground under it */
  color: #fff; font-family: var(--font-h); font-weight: var(--fw-bold); font-size: 15px;  /* own colour: the lights' brand hues and the glass's shadow, as the ground under it */
}
.login-person img { width: 100%; height: 100%; object-fit: cover; }
.login-person.other { background: var(--a-200); color: var(--ink2); }

/* fields with their sign at the start; the sign lights with the focus */
.login-field { position: relative; display: flex; align-items: center; }
.login-field .input {
  width: 100%; height: 48px; padding-left: 44px;
  border-radius: var(--r-l);
  background: color-mix(in srgb, var(--card) 66%, transparent);
  transition: border-color var(--dur-pop), box-shadow var(--dur-pop), background var(--dur-pop);
}
.login-field .input:focus { background: var(--card); }
.login-field:has(.login-eye) .input { padding-right: 48px; }
.login-field-sign {
  position: absolute; left: 14px; display: flex;
  color: var(--ink3); pointer-events: none; transition: color var(--dur-pop);
}
.login-field:focus-within .login-field-sign { color: var(--acc-ink); }
.login-eye {
  position: absolute; right: 6px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  border: 0; background: transparent; color: var(--ink3); cursor: pointer;
}
.login-eye:hover { background: var(--a-200); color: var(--ink); }
.login-hint { margin-top: var(--sp-050); font-size: var(--fs-s); color: var(--ink3); }
.login-caps {
  display: flex; align-items: center; gap: var(--sp-075);
  margin-top: calc(var(--sp-100) * -1);
  font-size: var(--fs-s); color: var(--warn-ink);
}
.login-error {
  padding: var(--sp-100) var(--sp-150);
  border-radius: var(--r);
  background: var(--danger-weak); color: var(--danger-ink);
  font-size: var(--fs-s); line-height: var(--lh-s);
}

.login-go { gap: var(--sp-100); }
/* 15.2961: the word and the arrow on one middle line, the pair at the button's middle - the word's box is its capitals
   (Manrope sat its letters 1.5 px low in a full line), the chevron's empty sides (6 px each at 18) leave the pair */
.login-go > .btn-word { text-box: trim-both cap alphabetic; }
.login-go-arrow { display: inline-flex; margin-inline: calc(var(--sp-075) * -1);
  transition: transform var(--dur-fold) var(--ease-out); }
.login-go:hover .login-go-arrow { transform: translateX(4px); }
.login-go.done { pointer-events: none; }
.login-tick { display: inline-flex; animation: login-tick .42s var(--ease-out) both; }
@keyframes login-tick { from { transform: scale(.3) rotate(-30deg); opacity: 0; } 60% { transform: scale(1.2); } }

[data-motion="calm"] :is(.login-brand, .login-card, .login-card > *, .login-card::before,
  .login-tick) { animation: none; }
@media (prefers-reduced-motion: reduce) {
  :is(.login-brand, .login-card, .login-card > *, .login-card::before,
    .login-tick) { animation: none; }
}
@media (max-width: 480px) {
  .login-card { padding: var(--sp-300) var(--sp-250, var(--sp-300)) var(--sp-250, var(--sp-300)); border-radius: calc(var(--r-xl) * .8); }
  .login-title { font-size: 24px; }
}
/* a phone on its side: the mark stands beside the card, not above it */
@media (max-height: 500px) and (min-width: 700px) {
  .login-stage { flex-direction: row; width: min(800px, 100%); gap: var(--sp-400); }
  .login-brand { flex: 1; height: 56px; display: flex; justify-content: center; }
  .login-card { width: 420px; flex: none; }
}

.login-form .btn.primary {
  height: 56px;
  border-radius: calc(56px * var(--round));
  border: none;
  font-family: var(--font-h);
  font-size: var(--fs-h);
  font-weight: 300;
  letter-spacing: .01em;
  text-transform: none;
  color: #fff;
  transition: filter .15s, transform .12s;
}
.login-form .btn.primary:hover { filter: brightness(1.1); }

.login-form .btn.primary:active { transform: translateY(1px); filter: brightness(.96); }
.login-form .btn.primary:disabled { filter: grayscale(.55) brightness(.9); box-shadow: none; }

.bulk-bar {
  z-index: 3;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--sp-100);
  margin-bottom: var(--sp-150);
  padding: var(--sp-100) var(--sp-150);
  background: var(--acc-weak);
  border: var(--bw) solid var(--acc-solid);
  border-radius: var(--r);
}
.bulk-bar b { font-weight: var(--fw-med); color: var(--acc-ink); white-space: nowrap; }

/* the found row's mark - a straight stripe of its own, round caps; a table's first and last rows are rounded (15.1044) */
.grid-row.spotlight::before {
  content: "";
  position: absolute; left: var(--sp-050); top: var(--sp-075); bottom: var(--sp-075);
  width: calc(var(--bw) * 3); border-radius: var(--r-full);
  background: var(--acc-solid);
}
@keyframes row-spotlight {
  0%, 100% { background: var(--acc-weak); }
  50%      { background: var(--acc-weak-2); }
}
.grid-row.spotlight {
  position: relative;
  animation: row-spotlight 1.8s ease-in-out infinite;
  scroll-margin: 120px;
}
@media (prefers-reduced-motion: reduce) {
  .grid-row.spotlight { animation: none; background: var(--acc-weak); }
}

.grid-row.picked { background: var(--acc-weak); }
.grid-row.dim > :not(.row-acts) { opacity: .45; }

.grid-head .head-pick { padding: 0; }

.icon-btn.on, .banner.acting { color: var(--acc-ink); background: var(--acc-weak); }

.theme-switch {
  position: fixed;
  left: 50%;
  bottom: var(--sp-300);
  transform: translateX(-50%);
  z-index: 60;
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-100);
  height: 34px;
  padding: 0 var(--sp-200);
  color: var(--ink2);
  background: var(--a-200);
  border: var(--bw) solid transparent;
  border-radius: var(--r-full);
  font-size: var(--fs-s);
  cursor: pointer;
  opacity: .42;
  backdrop-filter: blur(6px);
  transition: opacity .18s, background .18s, color .18s;
}
.theme-switch-icon { display: inline-flex; }
.theme-switch svg { width: 16px; height: 16px; display: block; }
.theme-switch:hover { opacity: 1; background: var(--a-300); color: var(--ink); }
.theme-switch:active { transform: translateX(-50%) scale(.92); }
.theme-switch:focus-visible {
  opacity: 1;
  outline: var(--bw-foc) solid var(--focus); outline-offset: 2px;
}
/* a short screen (a phone on its side): the pill stands in the corner under the mark, clear of the form (16.11, 15.2792) */
@media (max-height: 500px) and (min-width: 700px) {
  .theme-switch { left: var(--sp-300); transform: none; }
  .theme-switch:active { transform: scale(.92); }
}
/* 15.2872: a field typed in on a touch screen - the pill steps away, never riding the keyboard over the form */
.theme-switch.typing { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .12s, visibility 0s .12s; }
@media print { .theme-switch { display: none; } }

.login-knock { margin-bottom: var(--sp-200); }
.login-note  { display: flex; align-items: flex-start; gap: var(--sp-075);
               margin-top: var(--gap); padding-top: var(--sp-200);
               border-top: var(--bw) solid var(--line);
               font-size: var(--fs-s); color: var(--ink3); }
.login-note svg { flex: none; margin-top: 1px; }

.app {
  position: relative;
  --shine-bar: 2.5px;
  --shine-bar-top: calc(var(--topbar-h) - 2.5px);
  --shine-bar-bottom: auto;
  display: grid;
  grid-template-rows: var(--topbar-h) auto 1fr;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  grid-template-areas: "brand topbar" "rail knock" "rail screen";
  height: 100%;
  transition: grid-template-rows .24s cubic-bezier(.2, 0, 0, 1);
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.brand-cell {
  grid-area: brand;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  min-height: 0; min-width: 0;
  padding: var(--sp-100) var(--sp-150);
  overflow: hidden;
  background: var(--card);
  border-right: var(--bw) solid var(--line);
}
.brand-cell:has(.brand-line) { grid-template-columns: 1fr 1px 1fr; }
.brand-half {
  display: flex; align-items: center; justify-content: center;
  min-width: 0; min-height: 0; height: 100%;
  overflow: hidden;
  padding: var(--sp-050) var(--sp-100);
}
.brand-cell:has(.brand-line) > .brand-half:first-child { justify-content: flex-end; }
.brand-cell:has(.brand-line) > .brand-half:last-child  { justify-content: flex-start; }
.brand-line { align-self: stretch; width: 1px; background: var(--line2); opacity: .55; }

.topbar {
  grid-area: topbar;
  display: flex; align-items: center; gap: var(--sp-150);
  padding: 0 var(--sp-300);
  background: var(--card);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.topbar .banner, .topbar-who { flex: none; }

.topbar.measuring > *,
.topbar.measuring .row > * { flex: none; }
.topbar-title { font-family: var(--font-h); font-weight: var(--fw-semi); font-size: var(--fs-l); }
.topbar-title svg { display: block; }
.topbar-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tray { display: flex; align-items: center; gap: var(--sp-050); flex: none; margin-left: var(--sp-150); }
.tray[hidden] { display: none; }
.tray-item { max-width: 100%; }
.tray-name { max-width: calc(var(--sp-500) * 3); }
.tray-ring { display: inline-grid; width: var(--sp-200); height: var(--sp-200); }
.tray-ring > .progress-ring { width: 100%; height: 100%; }
.tray-item.ready, .tray-pack.ready { background: var(--acc-weak); color: var(--acc-ink); border-color: transparent; }
/* every flying sheet lives in one layer: adding and removing a body child restyles the whole page (15.2573) */
.fly-layer { position: fixed; inset: 0; z-index: var(--z-fly); pointer-events: none; contain: strict; overflow: clip; }
.fly-layer.fly-faces { z-index: calc(var(--z-fly) + 1); }
.frame-move {
  position: absolute; left: 0; top: 0; box-sizing: border-box; transform-origin: 0 0; will-change: transform, opacity;
  background: var(--card); border: var(--bw) solid var(--line); box-shadow: var(--sh-overlay);
}
/* the tab's look carried by a sheet: its ground scales with the sheet, its content only moves */
.frame-face { position: absolute; left: 0; top: 0; box-sizing: border-box; transform-origin: 0 0; will-change: transform, opacity; }
.frame-face-in {
  position: absolute; left: 0; top: 0; box-sizing: border-box; will-change: transform, opacity;
  display: flex; align-items: center; white-space: nowrap; overflow: hidden;
}
/* the sheet with the screen's picture (15.793): the page's ground, the picture scaled with the frame */
/* a sheet carrying the screen's picture: its line is drawn over the picture and takes no room, so the picture stands
   at the sheet's own edge - at landing on the very pixels of the screen under it */
.frame-move.with-mockup {
  overflow: hidden; background: var(--bg);
  border: 0; outline: var(--bw) solid var(--line); outline-offset: calc(-1 * var(--bw));
}
.frame-mockup-wrap { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.frame-mockup { position: absolute; }
.frame-mockup > .skeleton-shape { opacity: 1; }
.topbar-who { text-align: right; line-height: 1.25; min-width: 0; }
.topbar-who > * { display: block; }
.topbar-who b { font-weight: var(--fw-med); font-size: var(--fs); }
.topbar-avatar {
  flex: none; display: grid; place-items: center;
  padding: 0; border: 0; border-radius: var(--r-full); background: none; cursor: pointer;
}
.topbar-avatar > .rg-avatar { transition: box-shadow var(--dur-pop) var(--ease-out); }
.topbar-avatar:hover > .rg-avatar { box-shadow: 0 0 0 var(--sp-025) var(--a-300); }
.topbar .topbar-me > :is(.topbar-who, .topbar-exit) { display: none; }
/* 15.904: a phone's header keeps the avatar alone - the company's chip, its exit and «read only» are in its menu */
html[data-mob] .topbar .topbar-extra { display: none; }
/* «Режим салона» (15.784): the plate in the head while the mode is on - a press asks for the PIN */
.showroom-plate { flex: none; display: inline-flex; align-items: center; gap: var(--sp-075); height: var(--h-btn);
  padding: 0 var(--sp-150); border: 0; border-radius: var(--r-full); background: var(--acc-weak); color: var(--acc-ink);
  font: inherit; font-weight: var(--fw-med); white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur-pop) var(--ease-out); }
.showroom-plate:hover { background: color-mix(in srgb, var(--acc-weak), var(--acc) 18%); }
.showroom-wrong:empty { display: none; }
/* 15.815 («иконку открытия (лупа с плюсиком)… перерисовал на наш лад»): the pointer over what opens to view - the
   registry's magnifier with a plus, its lines rounded, a light halo so it reads on any photo */
:root { --cur-zoom: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cg%20stroke='white'%20stroke-opacity='.95'%20stroke-width='5'%3E%3Ccircle%20cx='13'%20cy='13'%20r='8'/%3E%3Cpath%20d='M19.2%2019.2l6.3%206.3'/%3E%3C/g%3E%3Ccircle%20cx='13'%20cy='13'%20r='8'%20fill='white'%20fill-opacity='.88'/%3E%3Cg%20stroke='%231d1d1f'%20stroke-width='2'%3E%3Ccircle%20cx='13'%20cy='13'%20r='8'/%3E%3Cpath%20d='M13%209.6v6.8M9.6%2013h6.8'/%3E%3C/g%3E%3Cpath%20d='M19.2%2019.2l6.3%206.3'%20stroke='%231d1d1f'%20stroke-width='2.6'/%3E%3C/svg%3E") 13 13, zoom-in; }
/* a proposal's link (15.783): the address over the whole row, selectable */
/* The watching report's summary (15.824): running text in a row group */
/* The report's «Итог» (15.861, 15.862): the interest in percent on the scale of its three levels, the figures, the main
   points as rows with their marks */
.ow-score { display: flex; flex-direction: column; gap: var(--sp-100); width: 100%; }
.ow-score-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-150); }
.ow-score-num { font-size: calc(var(--fs-h) * 1.6); font-weight: var(--fw-bold); line-height: 1; }
.ow-score-scale { position: relative; height: var(--sp-100); margin-top: var(--sp-100); border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--a-300) 0 30%, color-mix(in srgb, var(--warn) 35%, var(--a-300)) 30% 60%,
                              color-mix(in srgb, var(--good) 40%, var(--a-300)) 60% 100%); }
.ow-score-scale::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--score); border-radius: inherit;
  background: var(--lvl, var(--ink3)); }
.ow-score.good { --lvl: var(--good); }
.ow-score.warn { --lvl: var(--warn); }
.ow-score-scale > i { position: absolute; top: 50%; left: var(--score); width: var(--sp-200); height: var(--sp-200);
  margin: calc(var(--sp-200) / -2) 0 0 calc(var(--sp-200) / -2); border-radius: 50%; background: var(--card);
  box-shadow: 0 0 0 3px var(--ink), var(--sh-raised); }
.ow-score-marks { display: grid; grid-template-columns: 30fr 30fr 40fr; color: var(--ink3); font-size: var(--fs-xs);
  text-align: center; }
.ow-score-advice { margin: var(--sp-050) 0 0; color: var(--ink2); line-height: var(--lh); text-wrap: pretty; }
.ow-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: var(--sp-100); width: 100%; }
.ow-fig { display: flex; flex-direction: column; gap: var(--sp-025); padding: var(--sp-150); border-radius: var(--r);
  background: var(--a-100); }
.ow-fig > b { font-size: var(--fs-l); font-weight: var(--fw-bold); line-height: var(--lh-l); }
.ow-fig > span { color: var(--ink3); font-size: var(--fs-xs); }
.ow-ico { flex: none; display: grid; place-items: center; width: var(--sp-400); height: var(--sp-400); border-radius: 50%;
  background: var(--a-200); color: var(--ink2); }
/* 15.2677: the picked variants as a list - the product and its variant side by side; in a narrow row one under the
   other, a pair apart from the next */
.ow-picks { display: block; container-type: inline-size; }
.ow-pick-list { display: grid; grid-template-columns: fit-content(40%) minmax(0, 1fr); gap: var(--sp-075) var(--sp-150); }
/* a part's code without spaces wraps inside its column - it squeezed the variant's column to nothing */
.ow-pick-list > * { min-width: 0; overflow-wrap: anywhere; }
.ow-pick-name { color: var(--ink3); }
.ow-pick-val { color: var(--ink2); }
/* 15.2689: a session's row - the device, the reading and the picks each on a line; past three picks the rest counted */
.ow-line { display: block; }
/* 15.2689: past three picks the rest unfold in place, in the list's own columns, under a quiet «Ещё N» */
.ow-pick-rest { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; grid-template-rows: 0fr; row-gap: inherit;
  transition: grid-template-rows var(--dur-fold) var(--ease-out); }
.ow-pick-rest-in { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: inherit; min-height: 0;
  overflow: hidden; }
.ow-picks.open .ow-pick-rest { grid-template-rows: 1fr; }
.ow-pick-more { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: var(--sp-050);
  margin-top: var(--sp-050); padding: 0; border: 0; background: none; font: inherit; color: var(--acc-ink); cursor: pointer; }
.ow-pick-more svg { transition: transform var(--dur-fold) var(--ease-out); }
.ow-picks.open .ow-pick-more svg { transform: rotate(180deg); }
html[data-motion="calm"] .ow-pick-rest, html[data-motion="calm"] .ow-pick-more svg { transition: none; }
@media (prefers-reduced-motion: reduce) { .ow-pick-rest, .ow-pick-more svg { transition: none; } }
/* in the list the variants of every row stand in one column, the lines as close as the row's other lines */
.ow-picks-row .ow-pick-list { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); row-gap: 0; }
.ow-line, .ow-pick-list > * { text-wrap: pretty; }
.ow-ua { overflow-wrap: anywhere; font-size: var(--fs-s); line-height: var(--lh-s); color: var(--ink3); }
@container (max-width: 22rem) {
  .ow-pick-list, .ow-picks-row .ow-pick-list { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .ow-pick-name:not(:first-child), .ow-pick-rest-in > .ow-pick-name:first-child, .ow-pick-more,
  .ow-picks-row .ow-pick-list > .ow-pick-name:first-child { margin-top: var(--sp-075); }
}
.ow-ico.good { background: var(--good-weak); color: var(--good-ink); }
.ow-ico.warn { background: var(--warn-weak); color: var(--warn-ink); }
/* The replay of an opening (15.859, 15.863): a video's window - the client's screen as large as the stage lets it, the
   presses as fading rings, the pause mark in the middle, the skips' animated marks at the sides, the held speed at the top;
   under it the last action's words and the bar - play, −5 с, +5 с, the time, the timeline with the hills of interest,
   the speeds */
.orp { --media-dark: #0c0c0c; --media-veil: color-mix(in srgb, var(--media-dark) 60%, transparent); --media-ink: #ffffff;
  --touch-fill: color-mix(in srgb, color-mix(in srgb, var(--media-dark) 30%, var(--media-ink)) 72%, transparent);
  display: flex; flex-direction: column; gap: var(--sp-150); height: max(360px, calc(100dvh - 190px));
  flex: 0 1 auto; min-height: 0; }
/* 15.2678: the player never outgrows its window - on a low screen (a phone on its side) its 360 px stood taller than the
   window's body, which scrolled under it; it yields to the room instead */
.panel-body:has(> .orp) { display: flex; flex-direction: column; min-height: 0; }
/* 15.868 («снизу куча места осталась»): a phone's window has its own height - the replay fills its body to the bottom */
html[data-mob] .panel-body > .orp { flex: 1 1 auto; height: auto; min-height: 0; }
.panel:fullscreen .orp, .panel.fs-self .orp { flex: 1 1 auto; height: auto; min-height: 0; }
/* 15.957 («как типичный просмотр видео»): the full screen is the player alone - the picture over the whole screen, the
   bar over its foot on a shade, hidden while it plays and the hand rests (`calm`); a phone's window is so always, a tap
   shows and hides the bar and the middle mark, which plays and pauses */
/* 15.2460 («Возвращение из фуллскрина при просмотре кривое»): going back the window takes its own look at once and shrinks
   in it, never as the player snapping into the window at the end */
.panel:is(:fullscreen, .fs-self:not(.fs-leaving)):has(.orp) { background: var(--media-dark); }
.panel:is(:fullscreen, .fs-self:not(.fs-leaving)):has(.orp) .panel-head { display: none; }
.panel:is(:fullscreen, .fs-self:not(.fs-leaving)) .panel-body:has(> .orp) { --pad-side: 0px; padding: 0; }
.orp.overlay { position: relative; gap: 0; }
html[data-mob] .panel-body:has(> .orp) { --pad-side: 0px; padding: 0; }
.orp.overlay .orp-stage { border-radius: 0; background: var(--media-dark); }
.orp.overlay .orp-screen { border-radius: 0; }
.orp.overlay .orp-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: var(--sp-500) var(--sp-200) var(--sp-150);
  background: linear-gradient(to top, color-mix(in srgb, var(--media-dark) 88%, transparent), transparent);
  --ink: var(--media-ink); --ink2: color-mix(in srgb, var(--media-ink) 78%, transparent);
  --ink3: color-mix(in srgb, var(--media-ink) 55%, transparent);
  --a-100: rgba(255, 255, 255, .08); --a-200: rgba(255, 255, 255, .14); --a-300: rgba(255, 255, 255, .24);
  color: var(--media-ink); transition: opacity var(--dur-fold) var(--ease-out); }
.orp.overlay.calm .orp-bar { opacity: 0; pointer-events: none; }
.orp.overlay.calm .orp-stage { cursor: none; }
.orp.overlay .orp-said { bottom: calc(var(--orp-lift, var(--sp-600) * 2) + var(--sp-200));
  transition: bottom var(--dur-fold) var(--ease-out); }
.orp.overlay.calm .orp-said { bottom: var(--sp-200); }
html[data-mob] .orp.overlay .orp-big.nod { animation: none; }
html[data-mob] .orp.overlay:not(.calm) .orp-big { opacity: 1; }
html[data-mob] .orp.overlay.calm .orp-big { opacity: 0; }
.orp-stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; border-radius: var(--r-l);
  background: var(--a-200); }
.orp-screen { position: absolute; left: 50%; top: 50%; overflow: hidden; border-radius: var(--r); background: #fff; color-scheme: light; /* own colour: the client's page is its own paper */
  box-shadow: var(--sh-raised); transform-origin: center; }
.orp-page { display: block; width: 100%; height: 100%; border: 0; pointer-events: none; }
/* 15.2678: the client's page is shown once the replay has dressed it - until then it stood with its own scroll bar */
.orp-view > .orp-page:not(.dressed) { visibility: hidden; }
/* the page and the hand together; the hidden tab's veil (the zoom left with 15.2456) */
.orp-view { position: absolute; inset: 0; }
.orp-away { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: var(--sp-100); background: var(--media-veil); color: var(--media-ink);
  font-size: var(--fs-s); }
/* 15.2166 («Просмотр кп по ссылке постоянно показывает "вкладка скрыта" хотя она не скрыта»): the veil's own display beat
   the hidden attribute - it stood over every replay */
.orp-away[hidden] { display: none; }
/* 15.872, 15.876: the hand over the page in the client's screen pixels, never smaller than legible for the viewer
   (--un - one viewer's pixel in the page's): the finger on the glass, the ring where a press began, the mouse's arrow
   with the wheel's turn, a pick or a switch ringed with its word */
.orp-taps { --un: 1; position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.orp-finger, .orp-ripple { position: absolute; width: max(44px, calc(28px * var(--un))); aspect-ratio: 1;
  border-radius: 50%; translate: -50% -50%; }
.orp-finger { background: var(--touch-fill);
  box-shadow: 0 0 0 max(2px, calc(1.5px * var(--un))) var(--media-ink),
    0 0 0 max(3px, calc(2.5px * var(--un))) var(--media-veil), var(--sh-raised);
  opacity: calc(1 - var(--age)); scale: calc(1 + var(--age) * .3); }
.orp-finger.down { scale: .9; }
.orp-ripple { box-sizing: border-box; border: max(3px, calc(2px * var(--un))) solid var(--acc);
  opacity: calc(1 - var(--age)); scale: calc(1 + var(--age) * 1.2); }
.orp-cursor { position: absolute; width: 0; height: 0; }
.orp-cursor > .ic { position: absolute; left: 0; top: 0; translate: -21% -12.5%; transform-origin: 21% 12.5%;
  filter: drop-shadow(0 1px 2px var(--media-veil)); transition: scale var(--dur-pop) var(--ease-out); }
.orp-cursor > .ic path { fill: var(--media-dark); stroke: var(--media-ink); stroke-width: 1.5px; }
.orp-cursor.down > .ic { scale: .86; }
.orp-wheel { position: absolute; left: max(var(--sp-250), calc(var(--sp-200) * var(--un)));
  top: max(var(--sp-300), calc(var(--sp-250) * var(--un))); display: flex; align-items: center;
  padding: max(var(--sp-025), calc(var(--sp-025) * var(--un))) max(var(--sp-050), calc(var(--sp-050) * var(--un)));
  border-radius: var(--r-full); background: var(--media-veil); color: var(--media-ink); }
.orp-wheel.alone { left: auto; right: 6%; top: 50%; translate: 0 -50%; }
.orp-hit { position: absolute; box-sizing: border-box; border-radius: var(--r);
  outline: max(3px, calc(2px * var(--un))) solid var(--acc);
  outline-offset: max(var(--sp-025), calc(var(--sp-025) * var(--un)));
  background: color-mix(in srgb, var(--acc) 16%, transparent);
  opacity: clamp(0, min(var(--age) * 12, (1 - var(--age)) * 4), 1); scale: calc(1 + max(0, .1 - var(--age)) * 2); }
.orp-hit > b { position: absolute; left: 50%; bottom: 100%;
  translate: -50% calc(-1 * max(var(--sp-100), calc(var(--sp-075) * var(--un))));
  padding: max(var(--sp-075), calc(var(--sp-075) * var(--un))) max(var(--sp-100), calc(var(--sp-100) * var(--un)));
  border-radius: var(--r-full); background: var(--acc-solid); color: #fff;
  font-size: max(var(--fs-s), calc(12px * var(--un))); font-weight: var(--fw-semi); white-space: nowrap; }
.orp-hit.below > b { top: 100%; bottom: auto; translate: -50% max(var(--sp-100), calc(var(--sp-075) * var(--un))); }
.orp-touch { position: absolute; inset: 0; z-index: 1; cursor: pointer; touch-action: none; -webkit-user-select: none;
  user-select: none; -webkit-tap-highlight-color: transparent; outline: none; }
.orp-big { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 64px; height: 64px;
  margin: -32px 0 0 -32px; border-radius: 50%; background: var(--media-veil);
  color: var(--media-ink); pointer-events: none; transition: opacity var(--dur-pop) var(--ease-out); }
.orp-stage.playing .orp-big, .orp-stage.started .orp-big { opacity: 0; }
.orp-big.nod { animation: orp-nod .45s var(--ease-out); }
@keyframes orp-nod { 0% { transform: scale(.8); } 60% { transform: scale(1.08); } 100% { transform: none; } }
.orp-stage.playing .orp-big.nod, .orp-stage.started .orp-big.nod { animation: orp-nod-out .5s var(--ease-out); }
@keyframes orp-nod-out { 0% { opacity: 1; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.25); } }
.orp-skip { position: absolute; top: 50%; display: flex; flex-direction: column; align-items: center; gap: var(--sp-050);
  padding: var(--sp-200) var(--sp-250); border-radius: 50%; background: var(--media-veil);
  color: var(--media-ink); font-weight: var(--fw-semi); opacity: 0; pointer-events: none; transform: translateY(-50%); }
.orp-skip.at-left { left: 8%; }
.orp-skip.at-right { right: 8%; }
.orp-skip.at-left .orp-chev { flex-direction: row-reverse; }
.orp-skip.at-left .orp-chev i { transform: rotate(180deg); }
.orp-skip.on { animation: orp-skip .7s var(--ease-out); }
@keyframes orp-skip { 0% { opacity: 0; transform: translateY(-50%) scale(.85); } 20% { opacity: 1; transform: translateY(-50%); }
  70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-50%) scale(1.05); } }
.orp-chev { display: flex; gap: 2px; }
.orp-chev i { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 10px;
  border-color: transparent transparent transparent currentColor; opacity: .3; }
.orp-skip.on .orp-chev i, .orp-hold.on .orp-chev i { animation: orp-chev .7s linear infinite; }
.orp-chev i:nth-child(2) { animation-delay: .12s !important; }
.orp-chev i:nth-child(3) { animation-delay: .24s !important; }
@keyframes orp-chev { 0%, 100% { opacity: .3; } 40% { opacity: 1; } }
.orp-hold { position: absolute; left: 50%; top: var(--sp-200); display: flex; align-items: center; gap: var(--sp-100);
  padding: var(--sp-075) var(--sp-150); border-radius: var(--r-full); background: var(--media-veil);
  color: var(--media-ink); font-weight: var(--fw-semi); opacity: 0; pointer-events: none; transform: translate(-50%, -6px);
  transition: opacity var(--dur-pop) var(--ease-out), transform var(--dur-pop) var(--ease-out); }
.orp-hold.on { opacity: 1; transform: translate(-50%, 0); }
.orp-hold .orp-chev i { border-width: 5px 0 5px 7px; }
/* its own width up to the screen's (15.2463: placed from the middle it took half of it and broke its words early) */
.orp-said { position: absolute; left: 50%; bottom: var(--sp-200); z-index: 2; width: max-content; max-width: calc(100% - var(--sp-400));
  padding: var(--sp-075) var(--sp-150); border-radius: var(--r-s); background: var(--media-veil);
  color: var(--media-ink); font-size: var(--fs-s); line-height: var(--lh-s); text-align: center; pointer-events: none;
  transform: translateX(-50%); }
.orp-bar { display: flex; flex-direction: column; gap: var(--sp-050); }
.orp-track { position: relative; padding-top: var(--sp-400); }
.orp-hills { position: absolute; left: 0; right: 0; top: 0; height: var(--sp-400); pointer-events: none; }
.orp-hills svg { display: block; width: 100%; height: 100%; overflow: visible; }
.orp-stop-all { stop-color: var(--ink3); stop-opacity: .45; }
.orp-stop-seen { stop-color: var(--acc); stop-opacity: .65; }
.orp-stop-end { stop-opacity: 0; }
.orp-hills-line { fill: none; stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.orp-hills-all .orp-hills-line { stroke: color-mix(in srgb, var(--ink3) 70%, transparent); }
.orp-hills-seen .orp-hills-line { stroke: var(--acc); }
.orp-hills-seen { clip-path: inset(0 calc(100% - var(--played, 0%)) 0 0); }
.orp-line { display: block; width: 100%; }
.orp-ctrl { display: flex; align-items: center; gap: var(--sp-050); }
.orp-time { margin-left: var(--sp-100); color: var(--ink2); font-size: var(--fs-s); }
.orp-cc { margin-left: auto; }
/* 15.883: live - the chip at the time: «В эфире» with its beating dot at the live edge, «К эфиру» behind it */
.orp-live { gap: var(--sp-075); }
.orp-dot { flex: none; width: var(--sp-100); height: var(--sp-100); border-radius: 50%; background: var(--ink3); }
.orp-live.on .orp-dot, .rg-row .orp-dot { background: var(--acc); animation: orp-beat 1.6s ease-in-out infinite; }
@keyframes orp-beat { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--acc) 55%, transparent); }
  50% { box-shadow: 0 0 0 var(--sp-075) color-mix(in srgb, var(--acc) 0%, transparent); } }
/* 15.901 («Панель управления ссылкой тоже переоформи, более красиво сделай»): the link's window - the link as a
   messenger shows it (its picture, its title, its address; a press opens it), its four actions under it, icons above
   their words; the proposal built for «Обновить» from «Ссылки» is laid out out of sight */
.offer-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-l); background: var(--a-100);
  color: inherit; text-decoration: none; }
/* the card is pressed whole: the program's underline of a link under the pointer is not its (15.2463) */
.offer-card:hover { background: var(--a-200); text-decoration: none; }
.offer-card > img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--a-200); }
.offer-card-blank { display: grid; place-items: center; aspect-ratio: 1200 / 630; background: var(--a-200);
  color: var(--ink3); }
.offer-card-text { display: flex; flex-direction: column; gap: var(--sp-025); min-width: 0; padding: var(--sp-150) var(--sp-200); }
.offer-card-text > b { font-weight: var(--fw-semi); }
.offer-card-text > span { color: var(--ink3); font-size: var(--fs-s); line-height: var(--lh-s); overflow-wrap: anywhere; }
.offer-acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-100); }
.offer-acts > .btn { flex-direction: column; height: auto; min-height: 0; padding: var(--sp-150) var(--sp-050);
  gap: var(--sp-075); white-space: normal; }
html[data-mob] .offer-acts > .btn { padding-inline: var(--sp-025); font-size: var(--fs-s); }
.offer-build { position: fixed; left: -30000px; top: 0; width: 900px; visibility: hidden; pointer-events: none; }
/* 15.884: «Ссылки» - a link open now: its beating dot in the row's circle and «Сейчас онлайн», which opens the live
   view, breathing; the bell of a link whose new openings the user is told of */
.ow-ico.lk-on { background: var(--acc-weak); }
.chip.lk-online { gap: var(--sp-075); border: 0; background: var(--acc-weak); color: var(--acc-ink); cursor: pointer;
  animation: lk-breath 1.6s ease-in-out infinite; }
@keyframes lk-breath { 50% { box-shadow: 0 0 0 var(--sp-050) color-mix(in srgb, var(--acc) 22%, transparent); } }
/* 15.2713: the interest's score inside its ring */
.lk-score { font-size: var(--fs-xs); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; color: var(--ink); }
.lk-bell { display: inline-grid; place-items: center; color: var(--ink3); }
/* 15.879: the heat map - the client's screen with the parts tinted (scrolled by the viewer, it answers no presses) and
   the parts ranked beside it; on a phone one under the other */
.oh { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: var(--sp-300);
  height: max(360px, calc(100dvh - 190px)); }
.oh > .screen-loading, .oh > .fail { grid-column: 1 / -1; margin-inline: auto; }
.orp-page.oh-live { pointer-events: auto; }
.oh-side { display: flex; flex-direction: column; gap: var(--sp-300); min-height: 0; overflow: auto; }
.oh { --heat-spot: #e8590c; --heat-dot: #c92a2a; --heat-ring: #fff; } /* own colour: the heat scale is data, one in both themes */
.oh-body { display: flex; flex-direction: column; gap: var(--sp-300); }
.oh-body > .fail, .oh-body > .screen-loading { margin-inline: auto; }
.oh-side > .segment > button { flex: 1 1 auto; }
.oh-side > .segment, .oh-side > .seg-drop { margin-inline: 0; max-width: 100%; box-sizing: border-box; }
@media (pointer: coarse), (max-height: 500px) { .oh-side > .segment > button, .oh-side > .seg-drop, .oh-side > .seg-drop > * { min-height: 44px; } }
html[data-mob] .oh-side { padding-bottom: var(--sp-400); }
.oh-note { padding: var(--sp-150) var(--sp-200); border-radius: var(--r); background: var(--a-200); color: var(--ink2);
  font-size: var(--fs-s); line-height: var(--lh-s); }
.oh-measure { position: fixed; left: -30000px; top: 0; border: 0; visibility: hidden; pointer-events: none; }
.ow-ico.oh-heat { background: color-mix(in srgb, var(--acc) calc(var(--heat) * 85%), var(--a-200)); }
html[data-mob] .oh { grid-template-columns: minmax(0, 1fr); grid-template-rows: 62dvh auto; height: auto; }
html[data-mob] .oh-side { overflow: visible; }
.orp-speed { min-width: 3.5em; }
html[data-mob] .orp-step { display: none; }
/* 15.2682: a finger presses the player: every control of its bar is a tap target */
@media (pointer: coarse), (max-height: 500px) {
  .orp-ctrl > :is(button, .btn) { min-width: var(--tap); min-height: var(--tap); }
  .orp-line { height: var(--tap); }
}
html[data-mob] .orp-ctrl > :is(button, .btn) { min-width: var(--tap); min-height: var(--tap); }
html[data-mob] .orp-line { height: var(--tap); }
/* a cell of a list censored in «Режим салона» */
.censor-bar { display: inline-block; width: 6em; max-width: 100%; height: .9em; border-radius: var(--r-xs);
  background: var(--a-300); vertical-align: middle; }
.rail-foot .topbar-me > .topbar-avatar { display: none; }
.actx-node:has(> .topbar-card) { padding-inline: var(--sp-150); }
.topbar-card { display: flex; align-items: center; gap: var(--sp-100); min-width: 0; }
.topbar-card-text { display: grid; min-width: 0; line-height: var(--lh-s); }
.topbar-card-text b { font-weight: var(--fw-med); }
.topbar-card-text span { color: var(--ink3); font-size: var(--fs-s); }
#inboxBtn, .icon-btn.counted { position: relative; overflow: visible; }
/* the count sits on the icon's top right corner, whatever the button's height (15.982, 25.10: «На телефоне чип с
   количеством уведомлений обрезается» - on a phone the button is a finger's 44 high and the chip stood 2 px above the
   header, which clips) */
#inboxBtn > .topbar-badge, .icon-btn.counted > .topbar-badge { position: absolute; top: calc(50% - var(--sp-250)); right: calc(50% - var(--sp-250)); }

.banner { display: inline-flex; align-items: center; gap: var(--sp-100);
          padding: var(--sp-075) var(--sp-150);
          font-size: var(--fs-s); font-weight: var(--fw-med);
          border-radius: calc(26px * var(--round)); }
.banner.read-only { background: var(--warn-weak); color: var(--warn-ink); }

.rail {
  grid-area: rail;
  display: flex; flex-direction: column;
  min-width: 0; min-height: 0;
  background: var(--card);
  border-right: var(--bw) solid var(--line);
}
.rail-scroll > :first-child { margin-top: var(--sp-100); }
.rail-scroll > :last-child { margin-bottom: var(--sp-300); }
.rail-scroll {
  flex: 1 1 auto;
  min-width: 0; min-height: 0;
  display: flex; flex-direction: column; gap: var(--sp-025);
  padding: 0 var(--sp-150);
  overflow: auto;
}
.rail-foot:empty { display: none; }
.rail-foot {
  display: flex; flex-direction: column; align-items: stretch;
  gap: var(--sp-100);
  padding-top: var(--sp-150);
  margin-top: var(--sp-100);
  border-top: var(--bw) solid var(--line);
}
.rail-foot .row { flex-direction: column; align-items: stretch; gap: var(--sp-100); }
.rail-foot .btn { justify-content: center; }
.rail-foot .topbar-who { text-align: left; }
.rail-foot .banner { align-self: flex-start; max-width: 100%; }

/* 15.2987: the one fade of a scroller's edge - a list, the rail, a row of tabs: the kit marks the edge where more lies
   (`data-edge`, kit/edges.js) and this one mask fades it, `--fade` long (a row of tabs - sideways only, its own shorter length;
   the proposal sheet's strip of variants - sideways only) */
:is(.grid-rows, .sflow, .rail-scroll):is(
    [data-edge~="top"], [data-edge~="bottom"],
    [data-edge~="left"], [data-edge~="right"]),
:is([data-part="tabs"] > .segment, .qv-hs-many):is([data-edge~="left"], [data-edge~="right"]) {
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0, #000 var(--fade-top, 0px),
                    #000 calc(100% - var(--fade-bottom, 0px)), transparent 100%),
    linear-gradient(to right, transparent 0, #000 var(--fade-left, 0px),
                    #000 calc(100% - var(--fade-right, 0px)), transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0, #000 var(--fade-top, 0px),
                    #000 calc(100% - var(--fade-bottom, 0px)), transparent 100%),
    linear-gradient(to right, transparent 0, #000 var(--fade-left, 0px),
                    #000 calc(100% - var(--fade-right, 0px)), transparent 100%);
  mask-composite: intersect;
}
:is(.grid-rows, .sflow, .rail-scroll)[data-edge~="top"] { --fade-top: var(--fade-own, var(--fade)); }
:is(.grid-rows, .sflow, .rail-scroll)[data-edge~="bottom"] { --fade-bottom: var(--fade-own, var(--fade)); }
:is(.grid-rows, .sflow, .rail-scroll, [data-part="tabs"] > .segment, .qv-hs-many)[data-edge~="left"] { --fade-left: var(--fade-own, var(--fade)); }
:is(.grid-rows, .sflow, .rail-scroll, [data-part="tabs"] > .segment, .qv-hs-many)[data-edge~="right"] { --fade-right: var(--fade-own, var(--fade)); }
/* a row of tabs that scrolls fades at the edge it scrolls toward, so a tab cut by the edge reads as «more this way» (16.11) */
[data-part="tabs"] > .segment { --fade-own: var(--sp-300); }
/* a list open inside a fading scroller: the scroller is marked by the list itself (kit/combo.js) - a :has() naming
   «open» restyled the whole page at every list opened (15.2969) */
.list-open-in:is(.grid-rows, .sflow, .rail-scroll) {
  -webkit-mask-image: none;
  mask-image: none;
}

.rail-group {
  position: relative;
  display: flex; align-items: center; gap: var(--sp-100);
  margin-top: var(--sp-250);
  padding: var(--sp-200) var(--sp-150) var(--sp-075);
  font-size: var(--fs-xs); font-weight: var(--fw-semi); letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink3);
}
.rail-group::before {
  content: ""; position: absolute; left: var(--sp-150); right: var(--sp-150); top: 0;
  height: var(--bw); background: var(--line);
}
.rail-group:first-child { margin-top: 0; padding-top: var(--sp-050); }
.rail-group:first-child::before { display: none; }
/* 15.2803: a hidden item stays hidden - «Установить DEOS» showed inside the installed app */
.rail-item[hidden] { display: none; }
.rail-item {
  display: flex; align-items: center; gap: var(--sp-150);
  padding: var(--sp-100) var(--sp-150);
  font-weight: var(--fw-reg); font-size: var(--fs);
  line-height: var(--lh);
  text-align: left;
  color: var(--ink2);
  background: none; border: none;
  border-radius: var(--r);
  transition: background .15s, color .15s;
}
/* the item's lead (the shell sketch, 15.2557): the icon's 16-px box; a system's logo mark fills the same box, centred
   on the icons' line; a wide mark (Line) keeps the box in the layout and is drawn wider, overflowing it sideways */
.rail-lead { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; line-height: 0; }
.rail-lead > * { flex: none; }
.rail-lead:not(.wide) > :not(.ic) { display: flex; width: 100%; height: 100%; }
.rail-lead:not(.wide) > :not(.ic) svg { width: 100%; height: 100%; min-width: 0; }
.rail-lead.wide > *, .rail-lead.wide svg { width: auto; height: auto; overflow: visible; }
/* the search at the sidebar's top while the sidebar is attached; in a drawer it stands in the header (placeChrome) */
.rail-head { flex: none; padding: var(--sp-150) var(--sp-150) 0; }
.rail-head:empty { display: none; }
.rail-item.shine-fill { color: #FFFFFF; }
.rail-item.shine-fill:hover, .rail-item.shine-fill.active { color: #FFFFFF; }
.rail-item.shine-fill:hover { filter: brightness(1.07); }
.rail-item.shine-fill.active { box-shadow: inset 0 0 0 2px var(--rail-mark); }
.rail-item:hover { background: var(--field2); color: var(--ink); }
.rail-item.active { color: var(--acc-ink); background: var(--fill-acc); }
/* «Настройки» pinned at the sidebar's foot under the scrolling list (the shell sketch, 15.2558) */
.rail-pin { flex: none; display: flex; flex-direction: column; padding: var(--sp-150); border-top: var(--bw) solid var(--line); }
.rail-pin:empty { display: none; }
.rail-spacer { flex: 1 1 auto; min-height: var(--sp-150); }
/* 15.949 («Самый низ без отступа отрисован»): with no foot the spacer is the list's end - it keeps the end's room */
.rail-spacer:has(+ .rail-foot:empty) { min-height: var(--sp-300); }

/* A digit or a letter in a shape (15.567, 21.10: «выровнять цифры вот в этих кругах и больше никогда не допускать такой
   ошибки»): centred by its cap height, not by its line box - every font sits its digits differently in the line
   (Manrope 1-1.5 px low, the variant digit 1 px high); a badge with text joins this list, its own rule sets a block or
   inline-block display and no line-height or padding nudges. Checked by pixels. */
.rail-badge, .topbar-badge, .tree-count, .qo-alt-n, .float-badge, .msgr-unread, .rg-avatar, .qv-alt, .orp-hit > b,
.help-steps > li::before, .sd-n, .sd-key.n, .sd-plan-mark {
  text-align: center; align-content: center; line-height: 1; text-box: trim-both cap alphabetic;
}

.rail-badge {
  flex: none;
  display: inline-block;
  min-width: 20px; height: 20px; padding: 0 var(--sp-075);
  border-radius: var(--r-full);
  background: var(--danger); color: var(--danger-fg);
  font-family: var(--num); font-variant-numeric: tabular-nums; font-size: var(--fs-xs); font-weight: var(--fw-semi);
  animation: badgepulse 1.4s ease-in-out infinite;
}
@keyframes badgepulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 55, 44, .55); }
  55%      { box-shadow: 0 0 0 6px rgba(201, 55, 44, 0); }
}

.knock-strip { grid-area: knock; min-width: 0; padding: var(--sp-150) var(--sp-300) 0; }
@media (hover: hover) and (pointer: fine) {
  .screen[data-route="dashboard"] { scrollbar-gutter: stable; }
}
.screen { grid-area: screen; overflow: auto; min-width: 0;
          container: screen / inline-size;
          /* the foot: its own room or the home strip's, whichever is larger - never the two added (15.2925) */
          --pad-under: max(var(--sp-300), env(safe-area-inset-bottom, 0px));
          --pad-side: var(--sp-300);
          /* the top padding: what sticks at the screen's top (hung tools, a table's head) rises by it (15.2810) */
          --pad-top: var(--sp-300);
          padding: var(--pad-top) var(--pad-side) var(--pad-under); }
/* 15.2987, 15.2971 («везде по разному»): one place for what sticks on every screen - a bar or a table's head flush
   under the top bar, over the screen's top padding; a side column (a list, a receipt, a sheet) where it stands, at the
   screen's top padding, so it never moves. A screen never writes these numbers. */
.screen, .panel-body { --stick-bar: calc(-1 * var(--pad-top, var(--sp-300))); --stick-side: 0px; }
.screen > * + * { margin-top: var(--sp-300); }
.screen > :empty { margin-top: 0; }
.screen-head { display: flex; align-items: flex-start; gap: var(--gap);
              margin-bottom: var(--sp-300); }
.screen-head h1 { font-size: var(--fs-h); }
.screen-head .screen-sub {
  color: var(--ink2); margin-top: var(--sp-050); font-size: var(--fs);
}

.screen-loading, .screen-error { display: grid; place-items: center; min-height: 200px; color: var(--ink3); }
.screen-skeleton {
  position: fixed; z-index: var(--z-drawer); pointer-events: none; overflow: hidden;
  background: var(--bg);
  transition: opacity var(--dur-fold) var(--ease-out);
}
.screen-skeleton.out { opacity: 0; }
.screen-skeleton.see:not(.shown) { background: none; }
/* the screen in hand held still over its place while the next one mounts (shell/skeleton.js stillCopy) */
.screen-held { position: fixed; z-index: calc(var(--z-drawer) - 1); margin: 0; overflow: hidden; background: var(--bg);
               pointer-events: none; animation: none; }
.skeleton-shape {
  position: absolute; background: var(--a-200); opacity: 0;
  transition: opacity var(--dur-pop) var(--ease-out);
}
.skeleton-shape.sk-surface { background: var(--card); }
.skeleton-shape.sk-frame { background: none; border: var(--bw) solid var(--line); }
.skeleton-shape.sk-text { background: var(--a-300); }
.screen-skeleton.shown .skeleton-shape { opacity: 1; }
.screen-skeleton.shown .skeleton-shape:is(.sk-text, .sk-control, .sk-media) {
  animation: skeleton-breathe 1.2s ease-in-out infinite alternate;
}
@keyframes skeleton-breathe { from { opacity: 1; } to { opacity: .5; } }
html[data-motion="calm"] .screen-skeleton .skeleton-shape { animation: none; }
@media (prefers-reduced-motion: reduce) { .screen-skeleton .skeleton-shape { animation: none; } }
.screen-error { color: var(--danger); text-align: center; }

:is(.sgrid[data-cols="1"], html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list)) .grid-head { display: none; }
/* the head's «Выделить всё» lives on as a row of its own where the head is hidden (15.2841, as Mail on a phone);
   its word shows only there - the desktop head keeps the bare mark */
.grid-head .head-pick > span:not(.pick-dot) { display: none; }
:is(.sgrid[data-cols="1"], html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list)) .grid-head:has(> .head-pick) {
  --row-in: var(--sp-200); --row-lead: calc(var(--sp-200) + var(--sp-150));
  display: flex; align-items: center;
  min-height: var(--h-field); padding: 0 var(--row-in);
}
/* its mark and word stand over the rows' marks and titles: the same inset, the same lead column */
:is(.sgrid[data-cols="1"], html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list)) .grid-head:has(> .head-pick) > .head-pick {
  display: grid; grid-template-columns: var(--row-lead) auto; align-items: center; gap: 0;
}html[data-mob] :is(.sblock:not(.bare), .panel-body) .grid-table .grid-head { --row-in: 0px; }
:is(.sgrid[data-cols="1"], html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list)) .grid-head > .head-pick ~ * { display: none; }
:is(.sgrid[data-cols="1"], html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list)) .grid-head .head-pick > span:not(.pick-dot) {
  display: inline; color: var(--ink);
}
/* 15.2894 («таблицы… каждая сама по себе»): that row comes with the first row picked, as Mail's «Выбрать все» - a lone
   mark over a table nothing in which is picked hung there for nothing */
:is(.sgrid[data-cols="1"], html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list)) .grid-table:not(:has(.grid-row.picked)) > .grid-head {
  display: none;
}
:is(.sgrid[data-cols="1"], html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list)) .grid-rows {
  max-height: none;
  min-width: 0;
}
:is(.sgrid[data-cols="1"], html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list)) .grid-row {
  grid-template-columns: 1fr;
  gap: var(--sp-050);
  align-items: stretch;
  padding: var(--sp-150);
}
:is(.sgrid[data-cols="1"], html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list)) .grid-row > * { min-width: 0; }
:is(.sgrid[data-cols="1"], html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list)) .grid-row > [data-label] {
  display: grid; grid-template-columns: 40% 1fr;
  gap: var(--sp-100); align-items: baseline;
}
:is(.sgrid[data-cols="1"], html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list)) .grid-row > [data-label]::before {
  content: attr(data-label);
  font-size: var(--fs-s); line-height: var(--lh-s);
  color: var(--ink3);
}
/* a card's values in one size: a dense table's small cells (a date, a login) stood smaller than their neighbours (15.2562) */
:is(.sgrid[data-cols="1"], html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list)) .grid-row > [data-label] .small {
  font-size: var(--fs); line-height: var(--lh);
}
/* and whole: a card has the room a table's column lacked (15.2159 for the storage, 15.2562 for every card; a screen's own
   one-column grid too - the decomposer's weights were cut, 15.2506) */
:is(.sgrid[data-cols="1"], html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list)) .grid-row > [data-label] .ellipsis {
  overflow: visible; white-space: normal; text-overflow: clip;
}
/* a number pressed right in the table stands with its card's other values (its own `.right` inside the cell too) */
:is(.sgrid[data-cols="1"], html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list)) .grid-row > .right,
:is(.sgrid[data-cols="1"], html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list)) .grid-row > [data-label] .right {
  text-align: left;
}
/* a table standing on the page itself: each card apart, the cards' step between them (15.2562); inside an island or a
   window the rows stay a list under hairlines (below) */
html[data-mob] :is(.nd-page, .nd-col, .qimg-list) .grid-table:not(:is(.sblock:not(.bare), .panel-body) .grid-table) {
  background: none; box-shadow: none; border-radius: 0; overflow: visible;
}
html[data-mob] :is(.nd-page, .nd-col, .qimg-list) .grid-table:not(:is(.sblock:not(.bare), .panel-body) .grid-table) > .grid-rows {
  display: flex; flex-direction: column; gap: var(--gap);
}
html[data-mob] :is(.nd-page, .nd-col, .qimg-list) .grid-table:not(:is(.sblock:not(.bare), .panel-body) .grid-table) :is(.grid-row, .grid-foot) {
  border: 0; border-radius: var(--r); overflow: clip;
  background: var(--card); box-shadow: 0 0 0 var(--bw) var(--nd-ring, transparent);
}
html[data-mob] :is(.nd-page, .nd-col, .qimg-list) .grid-table:not(:is(.sblock:not(.bare), .panel-body) .grid-table) > .grid-foot {
  margin-top: var(--gap);
}
:is(.sgrid[data-cols="1"], html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list)) .grid-row > .row-acts {
  justify-content: flex-start; padding-top: var(--sp-050);
}
/* 15.2506 (sketch): on a phone a table's row reads as a list row, as «Добавить из просчёта» and «Ссылки» (the kit's
   rowItem, after Telegram): the title and the value on the right, under them the quiet line of the other columns joined
   by « · », no captions; a row that opens shows a chevron; a page's table is one island under hairlines */
/* --row-in: the row's side inset (none where a window or a block already gives one); --row-lead: a leading mark's
   column. The hairline starts where the words do: at their sum */
html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list) .grid-row[data-list] {
  --row-in: var(--sp-200);
  position: relative;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas: "title end acts" "quiet aside acts";
  gap: 0; align-items: baseline; align-content: center;
  min-height: calc(var(--h-field) + var(--sp-100));
  padding: var(--sp-075) var(--row-in);
}
html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list) .grid-row[data-list] + .grid-row { border-top: 0; }
html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list) .grid-row[data-list] + .grid-row[data-list]:not(.spotlight)::before {
  content: ""; position: absolute; top: 0; right: 0; left: calc(var(--row-in) + var(--row-lead, 0px));
  height: var(--bw); background: var(--line);
}
/* the cells stand in the row's places; a "sub" cell's words stand in the quiet line */
html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list) .grid-row[data-list] > [data-phone] { display: none; min-width: 0; }
html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list) .grid-row[data-list] > [data-phone]::before { content: none; }
html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list) .grid-row[data-list] > [data-phone="title"] { display: block; grid-area: title; }
html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list) .grid-row[data-list] > [data-phone="title"] :is(.nd-cell2-sub, * + .small) { display: none; }
/* a long title takes two lines at most, cut by an ellipsis */
html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list) .grid-row[data-list] > [data-phone="title"]:not(:has(*)),
html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list) .grid-row[data-list] > [data-phone="title"] :is(.ellipsis, :not(:has(*))):not(.nd-cell2-sub, .nd-cell2-sub *, * + .small) {
  white-space: normal; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list) .grid-row[data-list] > :is([data-phone="end"], [data-phone="aside"]):not([data-blank]) {
  display: block; padding-left: var(--sp-150); white-space: nowrap; text-align: right;
}
/* 15.2809: a value of two parts («от …», «до …») stands in two lines, never pushing the name aside */
html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list) .grid-row[data-list] > [data-phone="end"] .sum-part { display: block; }
html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list) .grid-row[data-list] > [data-phone="end"] { grid-area: end; }
html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list) .grid-row[data-list] > [data-phone="end"] .right { text-align: right; }
html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list) .grid-row[data-list] > [data-phone="aside"] { grid-area: aside; }
html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list) .grid-row[data-list] > :is([data-phone="aside"], .grid-quiet) {
  font-size: var(--fs-s); line-height: var(--lh-s); color: var(--ink3);
}
html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list) .grid-row[data-list] > [data-phone="aside"] * {
  font-size: inherit; line-height: inherit; color: inherit;
}
html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list) .grid-row[data-list] > [data-phone="acts"] {
  display: flex; grid-area: acts; align-self: center; padding-left: var(--sp-100);
}
/* the quiet line: two lines at most, cut by an ellipsis, a date never broken */
html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list) .grid-row[data-list] > .grid-quiet {
  grid-area: quiet; min-width: 0; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list) .grid-row[data-list] > .grid-quiet:empty { display: none; }
.grid-quiet :is(div, p) { display: inline; }
.grid-quiet :is(.small, .muted, .ellipsis) { font-size: inherit; line-height: inherit; color: inherit; }
.grid-quiet .ellipsis { overflow: visible; white-space: normal; }
.grid-quiet .num { white-space: nowrap; }
/* a short part is never broken inside; its dot holds to it, so a line breaks after « · » and never starts with it */
.grid-quiet > .whole { white-space: nowrap; }
.grid-quiet > span:not(:last-child)::after { content: "\00a0·"; }
html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list) .grid-row[data-list].hot-row { padding-right: calc(var(--row-in) + var(--sp-200) + var(--sp-100)); }
html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list) .grid-row[data-list] > .grid-chev {
  display: flex; align-items: center; position: absolute; top: 0; bottom: 0; right: var(--row-in); color: var(--ink3);
}
/* a selection mark leads the row in a column of its own, over both its lines */
html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list) .grid-row[data-list]:has(> [data-cell="__pick"]) {
  --row-lead: calc(var(--sp-200) + var(--sp-150));
  grid-template-columns: var(--row-lead) minmax(0, 1fr) auto auto;
  grid-template-areas: "lead title end acts" "lead quiet aside acts";
}
html[data-mob] :is(.panel, .nd-page, .nd-col, .qimg-list) .grid-row[data-list] > [data-cell="__pick"] {
  display: flex; align-items: center; grid-area: lead; align-self: center; position: static;
}
html[data-mob] :is(.nd-page, .nd-col, .qimg-list) .grid-table:not(:is(.sblock:not(.bare), .panel-body) .grid-table):has(> .grid-rows > :is(.grid-row[data-list], .grid-row.ct-row)) {
  background: var(--card); border-radius: var(--r); overflow: clip;
  box-shadow: 0 0 0 var(--bw) var(--nd-ring, transparent);
}
html[data-mob] :is(.nd-page, .nd-col, .qimg-list) .grid-table:not(:is(.sblock:not(.bare), .panel-body) .grid-table):has(> .grid-rows > :is(.grid-row[data-list], .grid-row.ct-row)) > .grid-rows {
  display: block;
}
/* 15.2969: a list row is known by its own mark; a :has() on the table over every row restyled them all at every node put
   on the page */
html[data-mob] :is(.nd-page, .nd-col, .qimg-list) .grid-table:not(:is(.sblock:not(.bare), .panel-body) .grid-table) > .grid-rows > :is(.grid-row[data-list], .grid-row.ct-row),
html[data-mob] :is(.nd-page, .nd-col, .qimg-list) .grid-table:not(:is(.sblock:not(.bare), .panel-body) .grid-table):has(> .grid-rows > :is(.grid-row[data-list], .grid-row.ct-row)) > .grid-foot {
  border-radius: 0; box-shadow: none;
}
html[data-mob] :is(.nd-page, .nd-col, .qimg-list) .grid-table:not(:is(.sblock:not(.bare), .panel-body) .grid-table) > .grid-rows > :is(.grid-row[data-list], .grid-row.ct-row).picked {
  background: var(--acc-weak);
}
html[data-mob] :is(.nd-page, .nd-col, .qimg-list) .grid-table:not(:is(.sblock:not(.bare), .panel-body) .grid-table):has(> .grid-rows > :is(.grid-row[data-list], .grid-row.ct-row)) > .grid-foot {
  margin-top: 0; border-top: var(--bw) solid var(--line);
}

html[data-mob] .sblock:not(.bare):not(.snums) { padding: var(--sp-200); }
/* no box on a phone: the new design's hairline ring would leave the cards' text and buttons touching it (16.11) */
html[data-mob] :is(.sblock:not(.bare), .panel-body) .grid-table {
  border: 0; border-radius: 0; background: none; box-shadow: none;
}
html[data-mob] :is(.sblock:not(.bare), .panel-body) .grid-table .grid-row { --row-in: 0px; }
html[data-mob] :is(.sblock:not(.bare), .panel-body) .grid-table .grid-row:not([data-list]) {
  padding-inline: 0;
}
/* with the box gone the first row's top padding pads nothing: an island's title stood 40 above its first row, the rows
   24 apart (15.2506) */
html[data-mob] .sblock:not(.bare) .grid-table > .grid-rows > .grid-row:first-child { padding-top: 0; }

:root { --mob: 700px; --tap: 44px;
        /* the phone's drawer, as a navigation drawer is (Material): ~288 wide, rows a finger's 48, icons 24 */
        --tap-l: 48px; --drawer-w: 288px; --drawer-lead: 24px; }
/* 15.2704: on a touch screen a small control is pressed by a finger's 44 (Apple's HIG; Material's 48), its look kept: the
   hit area (::before) reaches past the drawn box, and the parts that clip their content (below, «overflow: clip») let it
   out by the most it needs (11 px of a 22 px chip). :where - no weight, a part placed by its own rule keeps its position.
   The tabs and the side lists, which scroll and so clip whatever reaches out, stand a finger's height (design-new.css) */
@media (pointer: coarse) {
  :where(.icon-btn, .topbar-avatar, .rg-link, .rg-back, .chip, .btn, .switch, .combo-button, .title-field-view) {
    position: relative; }
  :where(.icon-btn, .topbar-avatar, .segment button, .seg > button, .rg-link, .rg-back, .chip, .btn, .switch,
         .combo-button, .title-field-view, .rg-hero-badge)::before {
    content: ""; position: absolute;
    inset: min(0px, calc((100% - var(--tap)) / 2));
  }
  /* a plain length: the property takes no calc() (Chrome 2026) */
  :where(.icon-btn, .chip, .btn, .seg, .segment) { overflow-clip-margin: var(--sp-150); }
  /* 15.2734: a list's search line - the combo's and the menu's - is typed into by a finger too; a field has no ::before */
  .combo-search { min-height: var(--tap); }
  /* the menu's lines under that search line too: a phone without the shell's mark (Ares) had them 36 */
  .actx button:not(.actx-slot, .kb-close):not(.segment > button) { min-height: var(--tap); }
}
@media (max-width: 700px) {
  :root {
    --h-field: 36px;
    --topbar-h: 48px;
    --fs-num-s: 18px;
    --fs-num: 20px;
    --fs-num-l: 28px;
    --fs-num-xl: 40px;
  }
}

.nav-burger, .nav-veil { display: none; }

/* The side menu as a drawer behind the burger (`data-nav="drawer"`): a narrow window, and (15.895, 24.10: «Мне на мобиле
   не нужна боковая панель… просто бургер был бы норм же») a phone in any rotation - its landscape is wider than the
   phone's width, the rest of its layout follows the width */
:is(html[data-nav="drawer"], html[data-rail="hidden"]) .app { grid-template-columns: minmax(0, 1fr);
                                                              grid-template-areas: "topbar" "knock" "screen"; }
/* 15.2798: an iPhone's installed app runs under its status bar and beside its notch (viewport-fit=cover): the top bar
   grows by the status bar and stands under it, its buttons and the screen's content keep clear of a side notch (the
   borders take the insets over each part's own padding; 0 everywhere else). The bars' colours run under the cutout
   to the screen's edge, so the notch sits in the bar. On its side a phone reports the notch on both sides: only the
   notch's side keeps clear (data-notch, shell/app.js). 15.2799 («Просто в цвет панели вверх уведи и всё, без полос»):
   the status bar is the top bar's own colour - the system paints it from theme-color (kit/theme.js), its words dark
   or light by that colour; where the page runs under it, the bar's padding carries the same colour, no strip, no line */
:root { --notch-l: env(safe-area-inset-left, 0px); --notch-r: env(safe-area-inset-right, 0px); }
:root[data-notch="left"] { --notch-r: 0px; }
:root[data-notch="right"] { --notch-l: 0px; }
:is(html[data-nav="drawer"], html[data-rail="hidden"]) .app {
  grid-template-rows: calc(var(--topbar-h) + env(safe-area-inset-top, 0px)) auto 1fr;
  --shine-bar-top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) - 2.5px);
}
:is(html[data-nav="drawer"], html[data-rail="hidden"]) .app > .topbar {
  padding: env(safe-area-inset-top, 0px) calc(var(--bar-side, var(--sp-300)) + var(--notch-r)) 0 calc(var(--bar-side, var(--sp-300)) + var(--notch-l));
}
:is(html[data-nav="drawer"], html[data-rail="hidden"]) .app > .screen {
  padding-left: calc(var(--pad-side) + var(--notch-l)); padding-right: calc(var(--pad-side) + var(--notch-r));
}
:is(html[data-nav="drawer"], html[data-rail="hidden"]) .app > .knock-strip {
  border-style: solid; border-color: transparent;
  border-width: 0 var(--notch-r) 0 var(--notch-l);
}
/* 15.905 («убрать скругления, пусть открывается во всю высоту»): the drawer stands at the screen's left edge from its
   top to its bottom, square, a line on its right */
:is(html[data-nav="drawer"], html[data-rail="hidden"]) :is(.brand-cell, .rail) {
  position: fixed; left: 0;
  z-index: var(--z-drawer);
  width: min(76vw, var(--drawer-w));
  transform: translateX(calc(-100% - var(--sp-500)));
  transition: transform .22s ease, width .22s ease;
  display: flex;
  border: 0;
  border-right: var(--bw) solid var(--line);
  box-shadow: var(--sh-overlay);
}
/* 15.2693 («При поиске окно должно расширяется до конца»): a phone's drawer (a finger's screen, in any rotation) while the
   search is in use takes the screen's whole width, so the field and the answers are not cut; the logos keep their places:
   the brand cell's tracks stay the closed drawer's and the added width stays empty */
@media (pointer: coarse) {
  html[data-nav="drawer"][data-search-open] .app :is(.brand-cell, .rail) { width: 100vw; }
  html[data-nav="drawer"][data-search-open] .app .brand-cell {
    --brand-in: calc(min(76vw, var(--drawer-w)) - 2 * var(--sp-150) - var(--bw));
    grid-template-columns: var(--brand-in);
    justify-content: start;
  }
  html[data-nav="drawer"][data-search-open] .app .brand-cell:has(.brand-line) {
    grid-template-columns: calc((var(--brand-in) - 1px) / 2) 1px calc((var(--brand-in) - 1px) / 2);
  }
}
/* 15.1438 («Обрезался отступ над логотипом сверху»): the space above the logo is its own plus the screen's notch, never
   the notch alone (0 on Android) - the same above and below, the logo as tall as the bar's items */
:is(html[data-nav="drawer"], html[data-rail="hidden"]) .brand-cell {
  top: 0; height: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
  padding-block: calc(var(--sp-050) + env(safe-area-inset-top, 0px)) var(--sp-050);
  display: grid;
  clip-path: inset(calc(-1 * var(--sp-500)) calc(-1 * var(--sp-500)) 0 calc(-1 * var(--sp-500)));
}
:is(html[data-nav="drawer"], html[data-rail="hidden"]) .rail {
  top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px)); bottom: 0;
  /* 15.2925 («под кнопкой настроек… огромные отступы»): the foot button keeps clear of the home strip's line, not of its
     whole band - its own padding stands inside that band */
  padding-bottom: max(0px, calc(env(safe-area-inset-bottom, 0px) - var(--sp-300)));
  clip-path: inset(0 calc(-1 * var(--sp-500)) calc(-1 * var(--sp-500)) calc(-1 * var(--sp-500)));
}
:is(html[data-nav="drawer"], html[data-rail="hidden"]) .app.nav-open :is(.brand-cell, .rail) { transform: none; }
/* the scroller's own: a touch's action is read up to the nearest scroller only */
html[data-nav="drawer"] :is(.brand-cell, .rail, .rail-scroll, .nav-veil) { touch-action: pan-y; }
:is(html[data-nav="drawer"], html[data-rail="hidden"]) .nav-veil {
  display: block;
  position: fixed; inset: 0;
  z-index: calc(var(--z-drawer) - 1);
  background: rgba(24, 22, 18, .44);
  backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease;
}
:is(html[data-nav="drawer"], html[data-rail="hidden"]) .app.nav-open .nav-veil { opacity: 1; pointer-events: auto; }
/* 15.2798: the drawer's logo and items keep clear of a side notch (after the drawer's own border rule) */
:is(html[data-nav="drawer"], html[data-rail="hidden"]) :is(.brand-cell, .rail) {
  width: calc(min(76vw, var(--drawer-w)) + var(--notch-l));
  border-left: var(--notch-l) solid transparent;
}
/* on its side the home bar stands in the screen's middle, never under the drawer: its foot needs no room for it */
:is(html[data-nav="drawer"], html[data-rail="hidden"])[data-notch] .rail { padding-bottom: 0; }
:is(html[data-nav="drawer"], html[data-rail="hidden"]) .nav-burger { display: inline-flex; flex: none; }
html[data-nav="drawer"] :is(.rail-item, .rail-foot .btn) { min-height: var(--tap); }
/* 15.2649: a computer's side menu out of sight (`data-rail="hidden"`, the person's «Боковое меню») comes over the
   screen by the burger at its own width */
html[data-rail="hidden"] :is(.brand-cell, .rail) { width: var(--rail-w); }

@media (max-width: 700px) {
  .knock-strip { padding: var(--sp-150) var(--sp-150) 0; }

  .screen { --pad-side: var(--sp-150);
            --pad-under: max(var(--pad-side), env(safe-area-inset-bottom, 0px));
            /* 15.2895 («НАХУЯ ВЕЗДЕ… ОТСТУПЫ СВЕРХУ»): the top as the sides */
            --pad-top: var(--pad-side);
            padding: var(--pad-top) var(--pad-side) var(--pad-under); }
  .screen-head { flex-direction: column; align-items: stretch;
                 gap: var(--sp-150); margin-bottom: var(--sp-200); }
  .screen-head > .row { flex-wrap: wrap; }
  .screen-head > .btn { align-self: flex-start; }
  .screen .row { flex-wrap: wrap; }
  .search { width: 100%; }

  .actrow > .btn { flex: none; min-width: var(--tap); }

  .actrow > .spacer { display: none; }
  .actrow { justify-content: center; }

  /* 15.2814: the side is a variable - the notch's padding above (15.2798) had outranked this one, the bar stood 24 px in */
  .topbar { --bar-side: var(--sp-150); padding: 0 var(--bar-side); gap: var(--sp-100); }
  /* 15.2815 («И распределены неравномерно»): the signs, not their boxes, keep the bar's lines - the burger's sign on the
     left line as the avatar on the right one (its box 6 px wider than the sign), the avatar as far from the chat's
     sign as the signs from each other (24 px) */
  .topbar > .nav-burger { margin-inline-start: calc(-1 * var(--sp-075)); }
  .topbar-acts > .topbar-me { margin-inline-start: var(--sp-075); }
  #inboxBtn { min-height: var(--tap); }

  .actrow .btn:has(> svg:not(.progress-ring)) > .btn-word { display: none; }
  .actrow .btn:has(> svg:not(.progress-ring)) { padding-inline: var(--sp-100); }
}

.chart { display: block; width: 100%; height: var(--chart-h, 132px); overflow: visible; }
.chart-line, .chart-dot { vector-effect: non-scaling-stroke; }

.chart-bar { fill: var(--acc-weak-2); transition: fill .12s; }
.chart-bar.hot { fill: var(--acc); }
.chart-bar.zero.hot { fill: var(--acc-weak-2); }
.chart-bar.on { fill: var(--acc); }
.chart-bar.zero { fill: var(--a-300); }

.chart-line { fill: none; stroke: var(--acc-solid); stroke-width: 2;
              stroke-linejoin: round; stroke-linecap: round;
              vector-effect: non-scaling-stroke; }
.chart-area { stroke: none; }
.chart-area-top { stop-color: var(--acc); stop-opacity: .34; }
.chart-area-low { stop-color: var(--acc); stop-opacity: 0; }
.chart-dot { fill: var(--acc-solid); }

.chart-ring { stroke: var(--a-200); }
.chart-arc { transition: opacity .12s; }
.chart-arc:hover { opacity: .82; }
.chart-center {
  font-family: var(--font-h); font-size: var(--fs-num-s); font-weight: var(--fw-bold);
  fill: var(--ink);
}

.tone-0 { stroke: color-mix(in srgb, var(--acc) 72%, var(--ink));
          color:  color-mix(in srgb, var(--acc) 72%, var(--ink)); }
.tone-1 { stroke: var(--acc); color: var(--acc); }
.tone-2 { stroke: color-mix(in srgb, var(--acc) 72%, var(--card));
          color:  color-mix(in srgb, var(--acc) 72%, var(--card)); }
.tone-3 { stroke: color-mix(in srgb, var(--acc) 52%, var(--card));
          color:  color-mix(in srgb, var(--acc) 52%, var(--card)); }
.tone-4 { stroke: color-mix(in srgb, var(--acc) 34%, var(--card));
          color:  color-mix(in srgb, var(--acc) 34%, var(--card)); }
.tone-5 { stroke: color-mix(in srgb, var(--acc) 20%, var(--card));
          color:  color-mix(in srgb, var(--acc) 20%, var(--card)); }

/* 15.1786 («Пусть будут разных цвета. Тут можно»): a category of the company's place keeps a colour of its own wherever it stands; validated in both
   themes, neighbours in the list's order apart under colour blindness (worst 11.9 of the 8 asked) */
.tone-c1 { color: var(--part-1); }
.tone-c2 { color: var(--part-2); }
.tone-c3 { color: var(--part-3); }
.tone-c4 { color: var(--part-4); }
.tone-c5 { color: var(--part-5); }
.tone-c6 { color: var(--part-6); }
.tone-c7 { color: var(--part-7); }
.tone-c8 { color: var(--part-8); }
.tone-c9 { color: var(--part-9); }
.tone-c10 { color: var(--part-10); }
.tone-c11 { color: var(--part-11); }
.tone-c12 { color: var(--part-12); }
.tone-c13 { color: var(--part-13); }
.tone-c14 { color: var(--part-14); }
.tone-c15 { color: var(--part-15); }
.tone-c0 { color: var(--ink3); }

.dash-donut { display: flex; align-items: center; gap: var(--gap); flex-wrap: wrap; }
.dash-donut .chart-donut { width: 132px; flex: none; }

.chart-legend { list-style: none; margin: 0; padding: 0; flex: 1 1 160px; min-width: 0; }
.chart-legend li {
  display: flex; align-items: center; gap: var(--sp-100);
  padding: var(--sp-050) 0;
  font-size: var(--fs-s);
}
.chart-legend i {
  width: 10px; height: 10px; flex: none; border-radius: 3px;
  background: currentColor;
}

.chart-rows { display: grid; align-content: start; gap: var(--sp-100); }
.chart-row {
  display: grid; grid-template-columns: minmax(0, 96px) 1fr auto;
  align-items: center; gap: var(--sp-100);
  font-size: var(--fs-s);
}
.chart-row-t { color: var(--ink2); overflow: hidden; text-overflow: ellipsis;
               white-space: nowrap; }
.chart-row-bar {
  height: 8px; border-radius: var(--r-full);
  background: var(--a-200);
  overflow: hidden;
}
.chart-row-bar i {
  display: block; height: 100%;
  background: var(--acc-solid);
  border-radius: var(--r-full);
}
.chart-row-n { color: var(--ink2); }

/* 15.2246: a whole split into its parts - one bar, the parts in the place's validated colours, a 2 px gap of the ground between */
.share-bar { display: flex; flex-direction: column; gap: var(--sp-100); min-width: 0; }
.share-bar > .dash-quota-l { margin-bottom: 0; }
.share-track {
  display: flex; gap: var(--sp-025); height: var(--sp-150);
  border-radius: var(--r-full); overflow: hidden;
}
.share-seg {
  flex: 1 1 0; min-width: var(--sp-050); height: 100%;
  background: currentColor; transition: opacity .12s;
}
.share-track:has(.share-seg.hot) .share-seg:not(.hot) { opacity: .45; }
.share-legend {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto;
  column-gap: var(--sp-150); row-gap: var(--sp-050);
  font-size: var(--fs-s); line-height: var(--lh-s);
}
.share-key { display: contents; }
.share-key > .usage-dot { align-self: center; }
.share-key-t { color: var(--ink2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-key-p { color: var(--ink3); text-align: right; }
.share-key-n { color: var(--ink); text-align: right; }
.share-key.hot > .share-key-t { color: var(--ink); }
.dash-tile {
  display: flex; flex-direction: column; gap: var(--sp-025);
  min-height: 92px;
  padding: var(--sp-150) var(--sp-200);
  background: var(--card);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-l);
}
button.dash-tile { font: inherit; color: inherit; text-align: left; cursor: pointer; }
button.dash-tile:hover { background: var(--a-200); }
button.dash-tile[aria-pressed="true"] { background: var(--acc-weak); }
.dash-tile-d {
  display: flex; align-items: center; gap: var(--sp-050);
  min-height: 16px;
  font-size: var(--fs-s); line-height: 1.3; color: var(--ink3);
}
.dash-tile-d.up { color: var(--good-ink); }
.dash-tile-d.down { color: var(--danger-ink); }
.dash-card { min-width: 0; }
.dash-card .grid-head > *, .dash-card .grid-row > * {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dash-note { font-size: var(--fs-s); }

.dash-seg { container-type: inline-size; }
.dash-seg button {
  font-size: clamp(var(--fs-xs), 4.9cqi, var(--fs-s));
  padding: 0 var(--sp-075);
}
@container (max-width: 240px) {
  .dash-seg button { padding: 0 var(--sp-050); }
}

.dash-facts { display: grid; grid-template-columns: 1fr auto; gap: 0; margin: 0; }
.dash-facts dt, .dash-facts dd {
  margin: 0; padding: var(--sp-100) 0;
  border-bottom: var(--bw) solid var(--line);
  font-size: var(--fs-s);
}
.dash-facts dt { color: var(--ink2); padding-right: var(--sp-200); }
.dash-facts dd {
  text-align: right; font-weight: var(--fw-med); font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  min-width: 0;
}
.dash-facts dt:nth-last-of-type(1), .dash-facts dd:nth-last-of-type(1) { border-bottom: 0; }

.dash-facts dt.sum, .dash-facts dd.sum {
  font-weight: var(--fw-semi); color: var(--acc-ink);
}

.dash-quota { margin-top: var(--sp-150); }

.dash-quota-l {
  display: flex; justify-content: space-between; gap: var(--sp-150);
  font-size: var(--fs-s); color: var(--ink2); margin-bottom: var(--sp-075);
}
.dash-quota-t {
  height: 7px; border-radius: var(--r-full);
  background: var(--field2);
  border: var(--bw) solid var(--line);
  overflow: hidden;
}
.dash-quota-f { height: 100%; background: var(--acc); border-radius: var(--r-full); }
.usage-track { display: flex; gap: var(--bw); overflow: hidden; }
.dash-quota.usage .dash-quota-l { flex-wrap: wrap; }
.row.usage-name { flex-wrap: nowrap; }
.usage-part { flex: none; min-width: var(--sp-025); height: 100%; background: currentColor; }
.usage-dot {
  flex: none; width: var(--sp-100); height: var(--sp-100);
  border-radius: var(--r-full); background: currentColor;
}
.dash-quota.over .dash-quota-f { background: var(--danger); }
.dash-quota.over .dash-quota-l { color: var(--danger-ink); }
.dash-quota.tight .dash-quota-f { background: var(--warn); }
.dash-quota.tight .dash-quota-l { color: var(--warn-ink); }
.dash-quota-note {
  margin-top: var(--sp-075);
  font-size: var(--fs-s); line-height: 1.45;
  color: var(--ink2);
}
.dash-quota.over .dash-quota-note { color: var(--danger-ink); }

.swatches { display: flex; flex-wrap: wrap; gap: var(--sp-150); align-items: center; }
/* 15.2653 («ПОЧЕМУ ОТСТУПЫ НЕРАВНОМЕРНЫЕ?»): palettes one under another share one grid of `--columns` - their swatches
   stand in the same places and every row starts at one edge; on a phone a row fills its width in one line */
.swatches.swatch-grid {
  display: grid;
  grid-template-columns: repeat(var(--columns, 9), calc(var(--swatch-size, 28) * 1px));
}
@media (max-width: 700px) {
  .swatches.swatch-grid { width: 100%; grid-template-columns: repeat(var(--columns, 9), minmax(0, 1fr)); column-gap: 0; }
  .swatches.swatch-grid > .swatch {
    width: min(calc(var(--swatch-size) * 1px), calc(100% - var(--sp-075))); height: auto; aspect-ratio: 1;
  }
}

.eco-title {
  font-family: var(--font-h);
  font-size: var(--fs); font-weight: var(--fw-bold);
  margin-bottom: var(--sp-100);
}

.eco-step {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-025) var(--sp-150);
  align-items: baseline;
  padding: var(--sp-100) var(--sp-150);
  border-bottom: var(--bw) solid var(--line);
  font-size: var(--fs);
}
.eco-step:first-of-type { border-top: var(--bw) solid var(--line); }
.eco-step-t { color: var(--ink2); }
.eco-step-sum {
  font-family: var(--num); font-variant-numeric: tabular-nums;
  color: var(--ink); white-space: nowrap;
}
.eco-step-note {
  grid-column: 1 / -1;
  color: var(--ink3); font-size: var(--fs-s); line-height: var(--lh-s);
}
.eco-step-note:empty { display: none; }
.eco-step.total {
  background: var(--acc-weak);
  border-bottom: none;
  border-radius: 0 0 var(--r-s) var(--r-s);
}
.eco-step.total .eco-step-t { color: var(--acc-ink); font-weight: var(--fw-semi); }
.eco-step.total .eco-step-sum { color: var(--acc-ink); font-weight: var(--fw-semi); }
.eco-step-delta {
  grid-column: 2; justify-self: end;
  font-family: var(--num); font-variant-numeric: tabular-nums;
  font-size: var(--fs-s); line-height: var(--lh-s); color: var(--acc-ink);
  white-space: nowrap;
}

.input.eco-code {
  width: 5.5em;
  text-transform: uppercase;
  font-family: var(--num);
  letter-spacing: .04em;
}

.spoiler { position: relative; border-radius: var(--r-s); }
.spoiler.veiled { -webkit-text-fill-color: transparent; cursor: pointer; user-select: none; }
.spoiler-dust {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.spoiler.revealing > .spoiler-dust {
  left: calc(-1 * var(--sp-150)); top: calc(-1 * var(--sp-150));
  width: calc(100% + 2 * var(--sp-150)); height: calc(100% + 2 * var(--sp-150));
}
.spoiler.revealing {
  -webkit-text-fill-color: transparent;
  background-image: radial-gradient(circle at var(--spoiler-x) var(--spoiler-y),
    currentColor calc(var(--spoiler-r) - var(--sp-200)), transparent var(--spoiler-r));
  -webkit-background-clip: text; background-clip: text;
}
.manual-mark {
  display: inline-grid; place-items: center; flex: none;
  width: var(--sp-250); height: var(--sp-250);
  border-radius: var(--r-xs);
  background: var(--warn-weak-2);
  color: var(--warn-ink);
}
.grid-row.row-manual { background: var(--warn-weak); }
.grid-row.row-manual:hover { background: var(--warn-weak-2); }
.grid-row.row-manual:hover .manual-mark { background: var(--warn-weak); }

.code-value {
  font-family: var(--num); font-variant-numeric: tabular-nums;
  font-size: var(--fs-clock); line-height: 1;
  font-weight: var(--fw-semi); letter-spacing: .16em;
}

.quotes-bar { display: flex; flex-wrap: wrap; align-items: center;
              gap: var(--sp-100); margin-bottom: var(--sp-200); }
.quotes-bar > .combo { width: min(280px, 100%); flex: none; }
.quotes-bar[hidden] { display: none; }

.quote-nums { border: var(--bw) solid var(--line); border-radius: var(--r); }
.quote-nums.snums > * { padding: var(--sp-150) var(--sp-200); }
.quote-nums .quote-who .snum-v { font-family: inherit; font-size: var(--fs-l); line-height: var(--lh-l);
                   font-weight: 500; }

.variant-name { display: inline-flex; align-items: center; gap: var(--sp-050); }
.variant-sum { color: var(--ink3); }
.variant-name > .ic { color: var(--acc); }
.variant-star { display: inline-grid; color: var(--acc); }
.variant-star:not(.final) {
  color: var(--ink3); opacity: 0; cursor: pointer;
  transition: opacity var(--dur-pop) var(--ease-out);
}
.variant-star:not(.final) path { fill: none; }
.segment button:hover .variant-star:not(.final) { opacity: 1; }
.variant-star:not(.final):hover { color: var(--acc); }
@media (hover: none), (pointer: coarse) { .variant-star:not(.final) { opacity: .6; } }
html[data-motion="calm"] .variant-star { transition: none; }
/* The «по умолчанию» star of a list row (15.531, starButton in kit/icons.js) */
.icon-btn.star-btn.on { color: var(--acc); }
.icon-btn.star-btn:not(.on) { color: var(--ink3); opacity: 0; transition: opacity var(--dur-reveal) var(--ease-reveal); }
.rg-row:hover .icon-btn.star-btn:not(.on), .icon-btn.star-btn:not(.on):focus-visible { opacity: 1; }
.icon-btn.star-btn:not(.on):hover { color: var(--acc); }
@media (hover: none), (pointer: coarse) { .icon-btn.star-btn:not(.on) { opacity: .6; } }
html[data-motion="calm"] .icon-btn.star-btn { transition: none; }
.cmp-diff { width: fit-content; padding: 0 var(--sp-050); border-radius: var(--r-xs);
            background: var(--acc-weak); color: var(--acc-ink); }

/* the sheet on its ground - the same margin of ground on every side (15.776, 23.10: «Фоновая подложка предпросмотра
   вылезает только сверху, а по краям отсутствует… чтобы было равномерно»): a phone's sheet as wide as the host kept it
   only above and below */
.kp-sheet-host {
  display: flex; justify-content: center;
  padding: var(--sp-200);
  background: var(--a-100);
  border-radius: var(--r-l);
}

.brand-logo {
  display: block;
  width: 100%; height: 100%;
  max-width: 100%; max-height: 100%;
  min-width: 0; min-height: 0;
  object-fit: contain; object-position: center;
}

.brand-own {
  display: flex;
  width: 100%; height: 100%; min-width: 0;
  color: var(--ink);
}

[data-theme="dark"] .brand-half.file { border-radius: var(--r-s); }

.brand-logo.for-dark { display: none; }
:root[data-theme="dark"] .brand-half.file .brand-logo.for-light:not(:only-child) {
  display: none;
}
:root[data-theme="dark"] .brand-logo.for-dark { display: block; }
/* a company's mark with no dark version that the dark header would swallow stands on a light plate there (15.2550,
   1920-dark#0; the plate as the companies' list has it, 15.113): `plateIfDark` of kit/darkmark.js marks it; the logo
   page's dark preview shows the same */
:root[data-theme="dark"] .brand-logo.on-plate, .rg-logo-tile.rg-logo-dark img.on-plate {
  width: auto; max-width: 100%; height: 100%;
  padding: var(--sp-025) var(--sp-075);
  border-radius: var(--r-xs);
  background: var(--sheet-bg);
}

[data-theme="dark"] .brand-line { background: var(--line2); }

body.dragging-now,
body.dragging-now * { cursor: var(--cur-hold) !important; }
body.dragging-now,
body.dragging-now * { -webkit-user-select: none !important; user-select: none !important; }

.drag-lift {
  position: fixed; z-index: var(--z-lift);
  margin: 0;
  pointer-events: none;
  opacity: .82;
  animation: drag-lift-in var(--dur-zoom) ease-in-out both !important;
  box-shadow: var(--sh-overlay);
  cursor: var(--cur-hold);
  transition: none !important;
}
@keyframes drag-lift-in { from { opacity: 1; } to { opacity: .82; } }
.drag-left { opacity: .3; }
.drag-away { visibility: hidden !important; }

[data-block].drag-live {
  position: relative; z-index: 1;
  background-color: var(--drag-ground, var(--card));
  box-shadow: var(--sh-overlay);
}

.hold-ring {
  position: absolute;
  z-index: 5;
  width: var(--tap); height: var(--tap);
  margin: calc(var(--tap) / -2) 0 0 calc(var(--tap) / -2);
  pointer-events: none;
}
.hold-ring svg { display: block; width: 100%; height: 100%; rotate: -90deg; }
.hold-ring circle { fill: none; stroke-width: 3; }
.hold-ring-bg { stroke: var(--line); }
.hold-ring-arc {
  stroke: var(--acc-solid); stroke-linecap: round;
  stroke-dasharray: 119.4; stroke-dashoffset: 119.4;
  animation: hold-fill var(--hold-ms, 1500ms) linear forwards;
}
@keyframes hold-fill { to { stroke-dashoffset: 0; } }


.float-hint {
  /* 15.2651: centred by its margins, not by left 50% - a shrinking box measured its width from the middle and broke
     a phone's one line into three */
  position: fixed; bottom: var(--sp-200); left: 0; right: 0; z-index: 4;
  margin-inline: auto;
  width: fit-content; max-width: calc(100% - var(--sp-300));
  padding: var(--sp-100) var(--sp-200);
  border: none;
  border-radius: var(--r-l);
  background: color-mix(in srgb, var(--card) 72%, transparent);
  color: var(--ink2); font-size: var(--fs-s); line-height: var(--lh-s);
  backdrop-filter: blur(6px);
  pointer-events: none;
}
button.float-hint {
  pointer-events: auto;
  box-shadow: var(--sh-raised);
  color: var(--ink);
}
.float-hint.inside { position: absolute; }

.side-shelf {
  position: fixed; top: calc(var(--shell-top) + var(--float-gap));
  right: var(--float-gap);
  bottom: var(--float-gap); z-index: var(--z-dialog);
  display: flex; flex-direction: column; gap: var(--sp-150);
  width: var(--shelf-w, min(420px, 34vw)); padding: var(--sp-300);
  background: var(--card);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-overlay);
  overflow: hidden;
  animation: side-shelf-in .22s ease;
}
/* 15.2166: the shelf waits hidden while another one goes (its own display beat the attribute) */
.side-shelf[hidden] { display: none; }
.side-shelf.quarter { --shelf-w: max(320px, 25vw); }
@keyframes side-shelf-in {
  from { transform: translateX(calc(100% + var(--float-gap) + var(--sp-300))); }
  to { transform: none; } }
@keyframes side-shelf-out {
  from { transform: none; }
  to { transform: translateX(calc(100% + var(--float-gap) + var(--sp-300))); } }
.side-shelf.out { animation: side-shelf-out .2s ease forwards; }
html[data-mob] .side-shelf { left: var(--float-gap); width: auto; }

.vc-preview .sheet > :not([data-kind="vcard"]) {
  opacity: .35;
  pointer-events: none;
}

.notice-text { white-space: pre-wrap; color: var(--ink); line-height: 1.55; }

.notice-shot img {
  display: block;
  max-width: 100%; max-height: 420px;
  border: var(--bw) solid var(--line);
  border-radius: var(--r);
}

.chip.notice-kind { gap: var(--sp-050); }
.chip.notice-kind svg { flex: none; }

.chip.notice-urgency.urg-light { color: var(--ink3); }
.topbar-badge {
  flex: none;
  display: inline-block;
  min-width: 18px; height: 18px; padding: 0 var(--sp-050);
  border-radius: var(--r-full);
  background: var(--acc-solid); color: #FFFFFF;
  font-family: var(--num); font-variant-numeric: tabular-nums;
  font-size: var(--fs-xs); font-weight: var(--fw-semi);
}

.alpha { gap: var(--sp-150); }

.sys-view { display: flex; flex-direction: column; gap: var(--gap); container-type: inline-size; }
.syscards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
.syscards > .syscard { aspect-ratio: 1; min-width: 0; justify-self: stretch; align-self: stretch; }
@container (width < 760px) {
  .syscards { grid-template-columns: minmax(0, 1fr); }
  .syscards > .syscard { aspect-ratio: auto; }
}
.syscard {
  position: relative;
  display: flex; flex-direction: column; gap: var(--sp-100);
  padding: var(--sp-250) var(--sp-200);
  text-align: left;
  background: var(--card);
  border: var(--bw) solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.syscard:hover, .addrow:hover, .drop-pic.over {
  border-color: var(--acc); background: var(--acc-weak);
}
.syscard b { font-size: var(--fs-l); color: var(--ink); }
.syscard-note { font-size: var(--fs-s); color: var(--ink2); line-height: 1.5; }
.paste-box {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-drawer) - 2);
  width: min(560px, calc(100vw - var(--sp-200) * 2));
  height: fit-content;
  margin: auto;
  padding: var(--sp-300);
  text-align: center;
  background: var(--card);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-overlay);
  --pop-origin: center;
}
.syscard-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--sp-500);
  height: var(--sp-500);
  border-radius: var(--r-full);
  background: var(--acc-weak);
  color: var(--acc-ink);
  transition: background-color .15s;
}
.syscard:hover .syscard-icon { background: var(--card); }
.paste-box > .drop-pic {
  display: grid;
  min-height: calc(var(--sp-600) * 5);
  border: 0;
  background: none;
}
.paste-box .drop-pic-pick { gap: var(--sp-150); }
.paste-box .drop-pic-ic svg { stroke-width: 1.5; }
.paste-box .drop-pic-t {
  font-family: var(--font-h);
  font-size: var(--fs-l);
  line-height: var(--lh-l);
  font-weight: var(--fw-semi);
  color: var(--ink);
}
.paste-box .drop-pic-n { font-size: var(--fs); }
.paste-mock { min-width: 0; }
.kbd-variants { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; align-items: center;
                gap: var(--sp-100); }
.kbd-combo { display: inline-flex; align-items: center; gap: var(--sp-050); white-space: nowrap; }
.kbd-alt { display: inline-flex; align-items: center; gap: var(--sp-100); }
.kbd-plus { font-size: var(--fs-s); line-height: var(--lh-s); color: var(--ink3); }
.kbd-word { font-size: var(--fs-s); line-height: var(--lh-s); color: var(--ink3); white-space: nowrap; }
.mouse-sign { display: inline-flex; align-items: center; gap: var(--sp-025); color: var(--ink2); }
.mouse-sign .ic { flex: none; }
.mouse-sign .press { fill: var(--acc); stroke: var(--acc); }
/* 15.1199: a command for the server with its copy button (`commandCopy`, /kit/feedback.js) */
.cmd-copy { display: flex; align-items: flex-start; gap: var(--sp-100); margin-block: var(--sp-100);
  padding: var(--sp-075) var(--sp-075) var(--sp-075) var(--sp-150); border-radius: var(--r-s); background: var(--a-200);
  color: var(--ink); }
.cmd-copy-text { flex: 1; min-width: 0; padding-block: var(--sp-025); font-family: var(--font-mono); font-size: var(--fs-s);
  line-height: var(--lh-s); overflow-wrap: anywhere; cursor: text; }
.cmd-copy-btn { flex: none; }

.kbd {
  display: inline-block;
  min-width: var(--sp-300);
  padding: var(--sp-025) var(--sp-100);
  border: var(--bw) solid var(--line2);
  border-bottom-width: calc(var(--bw) * 2);
  border-radius: var(--r-xs);
  background: var(--a-100);
  font-family: var(--num);
  font-size: var(--fs-s);
  line-height: var(--lh);
  text-align: center;
  color: var(--ink);
}
.syscard-foot { margin-top: auto; }

.work-list { gap: var(--sp-075); }
.work-empty { padding: var(--sp-150) 0; color: var(--ink3); font-size: var(--fs-s); }
.mat .pick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(92px, max-content);
  gap: var(--sp-075); align-items: center; }
.mat .pick > .conv { align-self: stretch; display: grid; place-items: center; }
.mat .pick:has(.cbcat) { grid-template-columns: minmax(0, 1fr) minmax(92px, max-content);
  grid-template-areas: "cat cat" "vid conv"; }
.mat .pick:has(.cbcat) > .cbcat { grid-area: cat; }
.mat .pick:has(.cbcat) > .cb { grid-area: vid; }
.mat .pick:has(.cbcat) > .conv { grid-area: conv; } .frow, .frow2, .mrow, .xrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-050);
}

.actrow { position: sticky; bottom: 0; z-index: 5;
          display: flex; align-items: center; gap: var(--sp-150); }
.screen:is([data-edge~="top"], [data-edge~="bottom"]) .actrow,
.panel-body:is([data-edge~="top"], [data-edge~="bottom"]) .dialog-actions {
  --act-edge: var(--pad-side, var(--sp-300));
  --act-ground: var(--bg);
  --act-fade: calc(var(--sp-500) * 2);
  --act-under: var(--pad-under, var(--sp-300));
  position: sticky; bottom: 0; z-index: 5;
  display: flex; align-items: center; gap: var(--sp-150);
  flex-wrap: nowrap;
  min-height: var(--h-btn);
  margin-top: var(--act-edge);
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}
.actrow > * { align-self: center; }
.actrow .btn, .bulk-bar .btn, .panel-body .dialog-actions .btn { will-change: transform; }
/* 15.2995: on a touch screen such a button, a layer of its own, took a finger only in its drawn box: Chrome lets the finger area
   (::before, 15.2704) out of «overflow: clip» by overflow-clip-margin in the paint, not in the hit test. There the button
   does not clip; its words do not wrap, so nothing leaves its fill */
@media (pointer: coarse) { .actrow .btn, .bulk-bar .btn, .panel-body .dialog-actions .btn { overflow: visible; } }
/* A bar short of width (footerBarToWidth's last step): the buttons beside the main one keep their icons, words in the tooltip */
.actrow[data-bare] .btn:not(.primary):has(> svg:not(.progress-ring)) > .btn-word { display: none; }
.actrow[data-bare] .btn:not(.primary):has(> svg:not(.progress-ring)) { padding-inline: var(--sp-100); }
.row > .switch { align-self: center; }
.screen:is([data-edge~="top"], [data-edge~="bottom"]) .col > .actrow,
.panel-body:is([data-edge~="top"], [data-edge~="bottom"]) .col > .dialog-actions {
  margin-top: calc(var(--act-edge) - var(--sp-150));
}
.sgrid[data-cols="1"] .sblock .grid-table > .grid-rows,
.dash-grid[data-cols="1"] .dash-card .grid-table > .grid-rows {
  max-height: min(56vh, 620px);
  overflow-y: auto;
}
/* a phone panel's list runs down the panel's own scroll - no second scroll box inside it (16.11); a card shows no label
   for an empty cell, on a page too (15.533: an order number not filled is shown nowhere) */
html[data-mob] .panel .grid-table > .grid-rows { max-height: none; overflow: visible; }
:is(.sgrid[data-cols="1"], html[data-mob] :is(.panel, .nd-page, .nd-spec, .qimg-list)) .grid-row > [data-label]:empty {
  display: none;
}

@media (max-width: 700px) {
  /* 15.2892 («что за обрезанная надпись снизу»): the save bar's note stands whole on its own line over its buttons */
  .actrow:has(> .chip, > .actrow-err, > .rg-save-note),
  .screen:is([data-edge~="top"], [data-edge~="bottom"]) .actrow:has(> .chip, > .actrow-err, > .rg-save-note),
  .panel-body:is([data-edge~="top"], [data-edge~="bottom"]) .dialog-actions:has(> .chip, > .actrow-err) {
    flex-wrap: wrap;
    row-gap: var(--sp-100);
  }
  .actrow > .chip,
  .actrow > .actrow-err,
  .actrow > .rg-save-note {
    flex: 1 0 100%;
    order: -1;
    max-width: none;
  }
  .actrow > .rg-save-note { text-align: center; }
}

.screen:is([data-edge~="top"], [data-edge~="bottom"]) .actrow::before,
.screen:is([data-edge~="top"], [data-edge~="bottom"]) .actrow::after,
.panel-body:is([data-edge~="top"], [data-edge~="bottom"]) .dialog-actions::before,
.panel-body:is([data-edge~="top"], [data-edge~="bottom"]) .dialog-actions::after {
  content: ""; position: absolute; z-index: -1;
  pointer-events: none;
}
.screen:is([data-edge~="top"], [data-edge~="bottom"]) .actrow::before,
.panel-body:is([data-edge~="top"], [data-edge~="bottom"]) .dialog-actions::before {
  /* 15.2409: the fade ends at the scroller's own right inset - reaching past it, it scrolled the screen sideways */
  left: calc(var(--act-edge) * -1); right: calc(var(--pad-end, var(--act-edge)) * -1);
  top: calc(var(--act-fade) * -1);
  bottom: calc(var(--act-under) * -1);
  background: linear-gradient(to bottom,
      transparent 0,
      color-mix(in srgb, var(--act-ground) 1%, transparent) calc(var(--act-fade) * .088),
      color-mix(in srgb, var(--act-ground) 3%, transparent) calc(var(--act-fade) * .176),
      color-mix(in srgb, var(--act-ground) 7%, transparent) calc(var(--act-fade) * .279),
      color-mix(in srgb, var(--act-ground) 13%, transparent) calc(var(--act-fade) * .368),
      color-mix(in srgb, var(--act-ground) 21%, transparent) calc(var(--act-fade) * .456),
      color-mix(in srgb, var(--act-ground) 31%, transparent) calc(var(--act-fade) * .544),
      color-mix(in srgb, var(--act-ground) 43%, transparent) calc(var(--act-fade) * .647),
      color-mix(in srgb, var(--act-ground) 56%, transparent) calc(var(--act-fade) * .735),
      color-mix(in srgb, var(--act-ground) 69%, transparent) calc(var(--act-fade) * .824),
      color-mix(in srgb, var(--act-ground) 85%, transparent) calc(var(--act-fade) * .912),
      var(--act-ground) var(--act-fade),
      var(--act-ground) 100%);
}
.screen:is([data-edge~="top"], [data-edge~="bottom"]) .actrow::before,
.panel-body:is([data-edge~="top"], [data-edge~="bottom"]) .dialog-actions::before {
  opacity: 0;
  transition: opacity .18s ease;
}
.screen[data-edge~="bottom"] .actrow::before,
.panel-body[data-edge~="bottom"] .dialog-actions::before { opacity: 1; }
[data-motion="calm"] .actrow::before,
[data-motion="calm"] .dialog-actions::before { transition: none; }
.panel-body:is([data-edge~="top"], [data-edge~="bottom"]) .dialog-actions {
  --act-ground: var(--card);
  justify-content: flex-end;
  gap: var(--sp-100);
}
.actrow-err { max-width: 46%; }
.kp-btns { display: none; gap: var(--sp-100); }
.kp-btns.on { display: flex; }

.mat {
  padding: var(--sp-150) var(--sp-150) var(--sp-150);
  border: var(--bw) solid var(--line); border-radius: var(--r-s);
  background: var(--a-100);
}
.mat .top {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: baseline;
  gap: 0 var(--sp-150); margin-bottom: var(--sp-100);
}
.mat .tech { font-weight: var(--fw-med); }
.mat .mat-glass {
  margin-top: var(--sp-150); padding-top: var(--sp-150);
  border-top: var(--bw) solid var(--line);
}
.mat .qty {
  font-family: var(--num); font-variant-numeric: tabular-nums;
  font-size: var(--fs-s); color: var(--ink2);
}
.mat .unit-price,
.mrow .unit-price,
.frow .unit-price,
.frow2 .unit-price,
.xrow .unit-price {
  flex-basis: auto; text-align: right;
  font-family: var(--num); font-variant-numeric: tabular-nums;
  font-size: var(--fs-xs); color: var(--ink3);
}
.mat .unit-price:empty,
.mrow .unit-price:empty,
.frow .unit-price:empty,
.frow2 .unit-price:empty,
.xrow .unit-price:empty { display: none; }
.mat .unit-price, .mrow .unit-price, .frow .unit-price,
.frow2 .unit-price, .xrow .unit-price { margin-left: var(--sp-100); }
.conv {
  padding: var(--sp-075) var(--sp-100); border-radius: var(--r-s);
  background: var(--acc-weak); color: var(--acc-ink);
  font-family: var(--num); font-size: var(--fs-s); font-weight: var(--fw-semi);
  text-align: center; white-space: nowrap;
}
.conv.wait { background: var(--a-200); color: var(--ink3); }

.reserve { margin-top: var(--sp-100); }
.reserve.on {
  margin-top: var(--sp-150);
  padding-top: var(--sp-150);
  border-top: var(--bw) solid var(--line);
}
.reserve .chip:empty { display: none; }

.fcat {
  padding: var(--sp-150);
  border: var(--bw) solid var(--line); border-radius: var(--r-s);
  background: var(--a-100);
}
.fcat .qty-sum {
  font-family: var(--num); font-size: var(--fs-s); color: var(--ink2);
}
.counter {
  margin-left: auto; padding: var(--sp-050) var(--sp-100); border-radius: var(--r-s);
  background: var(--warn-weak); color: var(--warn-ink);
  font-family: var(--num); font-size: var(--fs-s); font-weight: var(--fw-semi);
}
.counter.ok { background: var(--good-weak); color: var(--good-ink); }

.mrow .cbCat, .frow2 .cbCat { flex: 1 1 100%; min-width: 0; }
.frow .cb, .xrow .cb,
.mrow .cbItem, .frow2 .cbItem { flex: 1 1 100%; min-width: 0; }
.xrow input { flex: 0 0 var(--qty-w); width: var(--qty-w); text-align: left; }
.mrow .field-affix, .frow .field-affix,
.frow2 .field-affix, .xrow .field-affix { flex: 0 0 auto; }
.frow .xdel, .frow2 .xdel, .mrow .xdel, .xrow .xdel { margin-left: auto; }

.xdel {
  flex: none; width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: var(--bw) solid transparent; border-radius: var(--r-s);
  background: none; color: var(--ink3); cursor: pointer; line-height: 1;
  transition: color .12s, background .12s, border-color .12s;
}
.xdel:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-weak); }
.xdel:focus-visible, .wp-step:focus-visible {
  outline: var(--bw-foc) solid var(--focus); outline-offset: 1px;
}
.xdel svg, .chip.notice-kind svg { width: 14px; height: 14px; }
.addrow { margin-top: var(--sp-050); }
.fcat .addrow { margin-top: var(--sp-075); }

textarea:not(.fixed), textarea.input:not(.fixed) {
  height: auto;
  field-sizing: content;
  max-height: min(40vh, calc(12lh + var(--sp-100) * 2));
  overflow-y: auto;
}

.field-row > .req { color: var(--danger); }
.field-label .req { color: var(--danger); }
.field-row .row .input { flex: 1 1 0; min-width: 0; }
.input.invalid { border-color: var(--danger); }

.actrow .ar-calc.done { opacity: .75; }

/* 15.2228: the order's data as groups of rows - a chosen value and a pair of numbers at a row's end, a row of several parts in a
   stack under its name */
.order-panel { padding-bottom: var(--sp-150); }
.order-panel .order-pick { display: flex; justify-content: flex-end; flex: 1 1 auto; min-width: 0; }
.order-panel .order-end { display: flex; align-items: center; justify-content: flex-end; gap: var(--sp-075);
                          flex: 1 1 auto; min-width: 0; }
.order-panel .order-range { display: flex; align-items: center; gap: var(--sp-075); flex: none; }
.order-panel .order-range > .numfield { width: calc(var(--sp-600) + var(--sp-300)); }
.order-panel .rg-row.order-stack { flex-direction: column; align-items: stretch; gap: var(--sp-075); }
.order-panel .order-pick > .combo.inline { flex: 0 1 auto; width: auto; max-width: 100%; margin-inline: 0 calc(var(--sp-100) * -1); }
/* a chosen value at a row's end keeps its sign, as a choice row's does */
.order-panel .order-pick .combo.inline:not(.open) .combo-button:not(:hover):not(:focus-visible) .combo-caret { visibility: visible; }
.order-panel .order-end > .numfield { flex: none; width: auto; }
/* a pair of numbers: each its own width, centred, not pulled to the row's edge as a lone number is */
:root .rg-group .rg-row .order-range > .numfield:not(.with-steps) > input.input.num:not([type=checkbox]):not([type=radio]) {
  width: 100%; margin-right: 0; text-align: center;
}
.order-dash { color: var(--ink3); flex: none; }
/* 15.2729 (his «а», m:2026-11-24:265): on a phone every value of the order's data stands under its label, from the
   label's line, over the row's whole width - one form for every field, never now beside and now under */
@media (max-width: 599px) {
  .order-panel .rg-row.rg-field { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; }
  .order-panel .rg-row.rg-field > .rg-main { flex: none; }
  .order-panel .rg-row.rg-field > *, :root .order-panel .rg-group .rg-row.rg-field > .field-icon { flex: none; }
  .order-panel .rg-row.rg-field > :not(.rg-main) { margin-left: 0; max-width: none; }
  .order-panel .rg-row.rg-field > :is(.field-icon, .order-pick, .order-end) { width: 100%; justify-content: flex-start; }
  .order-panel :is(.order-pick, .order-end) { justify-content: flex-start; }
  .order-panel .order-pick > .combo.inline { margin-inline: calc(var(--sp-100) * -1) 0; }
  :root .order-panel .rg-group .rg-row.rg-field > .order-range { align-self: flex-start; margin-left: 0; }
  :root .order-panel .rg-group .rg-row .order-range > .numfield:not(.with-steps) > input.input.num:not([type=checkbox]):not([type=radio]) {
    text-align: left; padding-left: 0;
  }
  :root .order-panel .rg-group .rg-row.rg-field > .numfield { margin-left: 0; align-self: flex-start; }
  :root .order-panel .rg-group .rg-row.rg-field .numfield:not(.with-steps) > input.input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]):not(.wp-num):not(.pin-input) {
    text-align: left; padding-left: 0; margin-right: 0;
  }
  :root .order-panel .rg-group .rg-row.rg-field > input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]):not(.wp-num):not(.pin-input),
  :root .order-panel .rg-group .rg-row.rg-field .field-icon > input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]):not(.wp-num):not(.pin-input) {
    flex: none; width: 100%; text-align: left; padding-top: var(--sp-025); padding-left: 0;
  }
}
.row.nowrap { display: flex; flex-wrap: nowrap; align-items: center; gap: var(--sp-075); }

.field-icon > .input { width: 100%;
                       padding-right: calc(var(--field-icon-w) + var(--sp-100)); }

.drop-pic {
  display: block; min-height: 108px;
  border: var(--bw) dashed var(--line2); border-radius: var(--r);
  background: var(--a-100); overflow: hidden;
}
.drop-pic.full { border-style: solid; padding: 0; }
/* Every picture one square tile (15.713: «список обложек будто бы больше размерами стал, верни прошлый масштаб» -
   tall photos stretched their tiles to their own height) */
.pic-list {
  display: grid; gap: var(--sp-100);
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
}
.pic-list .drop-pic { min-height: 96px; }
.pic-list .drop-pic-pick { min-height: 96px; padding: var(--sp-100); }
.pic-list-one {
  position: relative; overflow: hidden; aspect-ratio: 1;
  border: var(--bw) solid var(--line); border-radius: var(--r);
  background: var(--a-100);
}
.pic-list-one img {
  display: block; width: 100%; height: 100%; object-fit: cover; cursor: var(--cur-zoom);
}
/* The add tile (15.818): a square with a plus; «Вставить» comes inside it with the pointer */
.pic-list .pic-add { position: relative; display: grid; place-items: center; aspect-ratio: 1; min-height: 0;
  color: var(--ink3); cursor: pointer; transition: background-color var(--dur-pop) var(--ease-out); }
.pic-list .pic-add:hover { background: var(--a-200); color: var(--ink2); }
.pic-add-paste { position: absolute; left: 50%; bottom: var(--sp-100); translate: -50% 0; gap: var(--sp-050);
  white-space: nowrap; opacity: 0; scale: .86; background: var(--card); box-shadow: var(--sh-raised);
  transition: opacity var(--dur-reveal) var(--ease-reveal), scale var(--dur-reveal) var(--ease-reveal); }
.pic-add:is(:hover, :focus-within) > .pic-add-paste { opacity: 1; scale: 1; }
@media (hover: none), (pointer: coarse) { .pic-add-paste { opacity: 1; scale: 1; } }
.pic-list-one .icon-btn {
  position: absolute; top: var(--sp-050); right: var(--sp-050);
  background: var(--card); border: var(--bw) solid var(--line);
}
/* A picture's buttons come with the pointer (15.712: «кресты должны быть при наведении»); the main picture's star
   stays; on a touch screen all stay */
.pic-list-one > .icon-btn { opacity: 0; scale: .82;
  transition: opacity var(--dur-reveal) var(--ease-reveal), scale var(--dur-reveal) var(--ease-reveal); }
.pic-list-one:is(:hover, :focus-within) > .icon-btn, .pic-list-one.starred > .pic-star { opacity: 1; scale: 1; }
@media (hover: none), (pointer: coarse) { .pic-list-one > .icon-btn { opacity: 1; scale: 1; } }
.pic-list-one > .pic-star { left: var(--sp-050); right: auto; }
.pic-list-one.starred > .pic-star { color: var(--acc); }
.pic-list-one.starred { box-shadow: 0 0 0 calc(var(--bw) * 2) var(--acc); border-color: var(--acc); }
/* A button over a picture keeps its ground under the pointer - the shared hover's translucent ground let the picture
   through (15.703: «у них почему-то пропадает фон») */
:is(.pic-list-one, .star-card-pic) .icon-btn:hover { background: linear-gradient(var(--a-200), var(--a-200)), var(--card); }
.drop-pic img { display: block; width: 100%; max-height: 200px; object-fit: contain; }
.drop-pic-pick {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-050); width: 100%; min-height: 108px; padding: var(--sp-150);
  color: var(--ink2); text-align: center;
}
/* The pointer changes no size (15.662, 23.10: «При наведении меняется размер блока - это грубая ошибка»): the weight
   stays the same under it, so the words keep their lines */
.drop-pic .btn.drop-pic-act, .drop-pic .btn.drop-pic-act:hover {
  color: var(--acc-ink);
}
.drop-pic .btn.drop-pic-act {
  white-space: normal; height: auto; min-height: var(--h-btn-sm);
  padding-top: var(--sp-025); padding-bottom: var(--sp-025);
}
.drop-pic-ic { display: inline-flex; color: var(--ink3); }
.drop-pic-ic svg { width: 100%; height: 100%; }
.drop-pic-t { font-size: var(--fs-s); font-weight: var(--fw-reg); }

.input.pin {
  width: 100%; text-align: center;
  font-family: var(--num); font-size: var(--fs-pin); font-weight: var(--fw-semi);
  line-height: 1.2;
  letter-spacing: .34em; text-indent: .34em;
  padding: var(--sp-150) var(--sp-100);
}

.sgrid {
  display: grid;
  gap: var(--sp-300);
  align-items: stretch;
}
.sblock {
  display: flex; flex-direction: column; justify-content: flex-start;
  gap: var(--sp-150);
  min-width: 0; min-height: 0;
  padding: var(--sp-300);
  background: var(--card);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
}

.sblock.tight { padding: var(--sp-200) var(--sp-300); }
.sblock.bare {
  background: none; border: 0; padding: 0;
  border-radius: 0; overflow: visible;
}

.sband { grid-column: 1 / -1; min-width: 0; }

.sblock[data-fill="screen"] {
  position: sticky;
  top: var(--stick-top, var(--sp-300));
  z-index: 1;
}
.screen:has(> .sgrid > .sblock[data-fill="screen"]) {
  --pad-under: max(var(--sp-300), env(safe-area-inset-bottom, 0px));
  padding-bottom: var(--pad-under);
}

.sblock > .sflow { flex: 1; min-height: 0; overflow-y: auto; }
.sblock > .sflow > * { flex: none; }

.sgrid > .sblock:not(.sband) { zoom: var(--island-share, 1); }

.sblock > .grid-table,
.sblock > .pick-table,
.sblock > .col { min-height: 0; }
.sblock > .sflow::-webkit-scrollbar-thumb {
  background: var(--a-200); background-clip: content-box;
}
.sblock:hover > .sflow::-webkit-scrollbar-thumb {
  background: var(--a-300); background-clip: content-box;
}

.snums { display: grid; grid-template-columns: repeat(var(--snums-n, 4), 1fr); padding: 0; }
/* 15.2166: the quote's figures hide on its «Заказ» tab (15.272) - their grid beat the attribute */
.snums[hidden] { display: none; }
.snums > * { padding: var(--sp-300); border-left: var(--bw) solid var(--line); min-width: 0; }
.snums > *:first-child { border-left: 0; }
.snums .snum-v {
  font-family: var(--display, inherit); font-weight: var(--fw-bold);
  font-size: var(--fs-num-l); line-height: 44px; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; margin-top: var(--sp-050);
}
@media (max-width: 1000px) {
  .snums { grid-template-columns: repeat(2, 1fr); }
  .snums > *:nth-child(3) { border-left: 0; }
  .snums > *:nth-child(n+3) { border-top: var(--bw) solid var(--line); }
}
@media (max-width: 660px) {
  .snums { grid-template-columns: 1fr; }
  .snums > * { padding: var(--sp-200) var(--sp-150);
               border-left: 0; border-top: var(--bw) solid var(--line); }
  .snums > *:first-child { border-top: 0; }
  .snums .snum-v { font-size: var(--fs-num); line-height: 30px;
                   margin-top: var(--sp-025); }
}

.sgrid[data-rows="auto"] .sblock { overflow: visible; }
.sgrid[data-rows="auto"] .sblock > .sflow { overflow-y: visible; }
.sgrid[data-cols="1"] .sblock { overflow: visible; }
.sgrid[data-cols="1"] .sblock > .sflow { overflow-y: visible; }

:root { --screen-zoom: 1; }
:root[data-wide="1"] { --screen-zoom: 1.15; }
:root[data-wide="2"] { --screen-zoom: 1.3; }
:root[data-wide] .screen { zoom: var(--screen-zoom); }
/* 15.1921 («На больших экранах подсказка при наведении так же криво появляется»): a stage in the full screen takes the page's
   layers inside it: under the screen's zoom a tooltip, a menu and a window at a button were reckoned twice */
:root[data-wide]:has(:fullscreen) { --screen-zoom: 1; }
:root { --screen-room: calc((100dvh - var(--shell-top)) / var(--screen-zoom)); }
/* 15.1623, 15.1627: a screen of a scene is not zoomed. Ares's canvas, the pointer and every layer over it reckon in the screen's own
   pixels: under a zoom the picture and the pointer parted by the zoom's share, growing away from the corner: a part landed aside of the
   pointer, a module was picked up and left of where it stood, holders and windows slid off. One rule here, for all of it. */
/* живой: Ares's editor window inside DEOS (Ares apps/web, its `ares-work`) */
.screen:has(.ares-work) {
  --screen-zoom: 1;
  --screen-room: calc(100dvh - var(--shell-top));
}

.pic-field { gap: var(--sp-150); max-width: 420px; }
.pic-field .drop-pic { width: 100%; }
.pic-field .drop-pic img {
  display: block; width: 100%; max-height: 180px; object-fit: contain;
}

.found-where { min-width: 0; }
.found-where .btn { max-width: 100%; }

.textarea.fixed {
  resize: none; overflow-y: auto; overflow-x: hidden;
  flex: 0 1 auto; min-height: calc(var(--h-row) * 2);
}
.field-row:has(> .textarea.fixed) {
  display: flex; flex-direction: column; min-height: 0; flex: 0 1 auto;
}
.sblock:not(.sband) > .sflow > .field-row:has(> .textarea.fixed):only-child {
  flex: 1 1 auto;
}
.sblock:not(.sband) > .sflow > .field-row:has(> .textarea.fixed):only-child
  > .textarea.fixed { flex: 1 1 auto; }

.sblock > .fill {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: var(--sp-150);
}

.kp-fills { display: flex; flex-wrap: wrap; gap: var(--sp-100); }
.kp-fill {
  --swatch-size: 26;
  width: calc(var(--swatch-size) * 1px); height: calc(var(--swatch-size) * 1px); flex: none;
  border-radius: 50%;
  border: var(--bw) solid var(--line2);
  background: var(--fill-shown, transparent);
  cursor: pointer;
  transition: box-shadow .12s, transform .12s;
}
.kp-fill:hover { transform: scale(1.07); }
.kp-fill:disabled { cursor: default; opacity: .5; }
.kp-fill.on {
  box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--acc-solid);
}

:root {
  --wheel: conic-gradient(from 0deg,
    #FF3B30, #FF9500, #FFCC00, #34C759, #00C7BE, #32ADE6,
    #007AFF, #5856D6, #AF52DE, #FF2D55, #FF3B30);
}
.color-well {
  --well: transparent;
  background: var(--wheel) border-box;
}
.color-well.is-set { background: var(--well) border-box; }

.io-scope { gap: var(--sp-050); margin: var(--sp-150) 0; }
.io-diff {
  margin-top: var(--sp-150);
  padding-top: var(--sp-150);
  border-top: var(--bw) solid var(--line);
}

.wp-tf { display: flex; flex-direction: column; align-items: center;
         gap: var(--sp-050); }
.wp-num {
  width: 46px;
  height: 34px;
  padding: 0;
  text-align: center;
  font-family: var(--num);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-l);
  color: var(--ink);
  background: var(--field);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-s);
}
.wp-num:focus-visible {
  outline: var(--bw-foc) solid var(--focus);
  outline-offset: 1px;
  border-color: var(--acc);
}
.wp-step {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 26px; padding: 0;
  color: var(--ink2);
  background: var(--a-100);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-s);
  line-height: 1; cursor: pointer;
  transition: background .15s, color .15s;
}
.wp-step:hover { background: var(--acc-weak); color: var(--acc-ink);
                 border-color: var(--acc-solid); }
.wp-step:active { background: var(--acc-weak-2); }
.wp-time {
  display: flex; gap: var(--sp-100); align-items: center; justify-content: center;
}
.wp-time i { font-style: normal; font-family: var(--num);
             font-variant-numeric: tabular-nums; font-weight: 700; }

/* 15.2235: the parts' presentation of a locked thing - the landing's slides, the part's action centred under them */
.lic-show-act { justify-content: center; margin-top: var(--sp-200); }
.lic-whole-show > .lic-show-act { margin-top: 0; }
.lic-show-held { display: inline-flex; align-items: center; gap: var(--sp-075); }
.lic-show-note { color: var(--ink2); font-size: var(--fs-s); }
.lic-whole.lic-whole-show { display: flex; flex-direction: column; gap: var(--sp-200); width: min(1040px, 100%); margin-inline: auto; padding: 0; }
/* on a phone the picture keeps to the screen's padding and its corners: run to the edges it met the head with a seam of the
   screen's ground (15.2236) */
@media (max-width: 700px) {
  .lic-whole-show .ld-tour .slides-view { margin-inline: 0; }
  .lic-whole-show .ld-tour .slides-pic { border-radius: var(--r-l); }
}

.lic-screen { gap: var(--sp-300); }

[data-locked] {
  opacity: .55;
  filter: saturate(.72);
  user-select: none;
  cursor: default;
}
[data-locked] * { cursor: default !important; }

.spill-list {
  margin: 0; padding-left: var(--sp-250);
  max-height: 40vh; overflow: auto;
  line-height: var(--lh-l);
}
.spill-list > li + li { margin-top: var(--sp-050); }
.spill-list > li.faint { color: var(--ink3); }

.row-locked { opacity: .62; }
.row-locked:hover { background: transparent; }

.syscard.locked { opacity: .55; filter: saturate(.72); }
.syscard.locked:hover { border-color: var(--line2); }
.syscard-lock {
  position: absolute; top: var(--sp-150); right: var(--sp-150);
  color: var(--ink3);
}

.shine-fill, .shine-glow, .shine-bar, .shine-colors {
  --shine-1: rgb(176, 140, 66);
  --shine-2: rgb(182, 112, 74);
  --shine-3: rgb(176, 88, 94);
  --shine-4: rgb(154, 95, 166);
  --shine-5: rgb(96, 96, 150);
  --shine-6: rgb(24, 110, 128);
  --shine-7: rgb(47, 134, 130);
  --shine-time: 10s;
}
:root:not([data-theme="dark"]) .shine-colors {
  --shine-1: rgb(200, 164, 98);
  --shine-2: rgb(206, 142, 112);
  --shine-3: rgb(198, 124, 138);
  --shine-4: rgb(164, 128, 190);
  --shine-5: rgb(126, 132, 192);
  --shine-6: rgb(92, 148, 178);
  --shine-7: rgb(92, 160, 152);
}
.shine-fill, .shine-glow, .shine-bar {
  position: relative;
  isolation: isolate;
  --shine-radius: var(--r);
  --shine-under: color-mix(in srgb, var(--shine-6) 55%, #000);
  --shine-sizes: 60% 180%, 60% 180%, 60% 180%, 60% 180%, 60% 180%, 60% 180%, 60% 180%, 200% 100%;
  --shine-start: -213% 20%, -138% 55%, -63% 70%, 12% 40%, 87% 78%, 162% 85%, 237% 30%, 100% 50%;
  --shine-mesh:
    radial-gradient(ellipse 50% var(--shine-cr, 150%)
                    at 50% calc(50% + var(--shine-flat, 1) * 38%),
      var(--shine-1) 0%,
      color-mix(in srgb, var(--shine-1) 76%, transparent) 46%,
      transparent 100%),
    radial-gradient(ellipse 50% var(--shine-cr, 150%)
                    at 50% calc(50% + var(--shine-flat, 1) * -20%),
      var(--shine-2) 0%,
      color-mix(in srgb, var(--shine-2) 76%, transparent) 46%,
      transparent 100%),
    radial-gradient(ellipse 50% var(--shine-cr, 150%)
                    at 50% calc(50% + var(--shine-flat, 1) * -24%),
      var(--shine-3) 0%,
      color-mix(in srgb, var(--shine-3) 76%, transparent) 46%,
      transparent 100%),
    radial-gradient(ellipse 50% var(--shine-cr, 150%)
                    at 50% calc(50% + var(--shine-flat, 1) * 30%),
      var(--shine-4) 0%,
      color-mix(in srgb, var(--shine-4) 76%, transparent) 46%,
      transparent 100%),
    radial-gradient(ellipse 50% var(--shine-cr, 150%)
                    at 50% calc(50% + var(--shine-flat, 1) * -6%),
      var(--shine-5) 0%,
      color-mix(in srgb, var(--shine-5) 76%, transparent) 46%,
      transparent 100%),
    radial-gradient(ellipse 50% var(--shine-cr, 150%)
                    at 50% calc(50% + var(--shine-flat, 1) * -32%),
      var(--shine-6) 0%,
      color-mix(in srgb, var(--shine-6) 76%, transparent) 46%,
      transparent 100%),
    radial-gradient(ellipse 50% var(--shine-cr, 150%)
                    at 50% calc(50% + var(--shine-flat, 1) * 22%),
      var(--shine-7) 0%,
      color-mix(in srgb, var(--shine-7) 76%, transparent) 46%,
      transparent 100%),
    linear-gradient(var(--shine-tilt, 100deg),
      color-mix(in srgb, var(--shine-1) 88%, #000) 0%,
      color-mix(in srgb, var(--shine-2) 88%, #000) 17%,
      color-mix(in srgb, var(--shine-3) 88%, #000) 33%,
      color-mix(in srgb, var(--shine-4) 88%, #000) 50%,
      color-mix(in srgb, var(--shine-5) 88%, #000) 67%,
      color-mix(in srgb, var(--shine-6) 88%, #000) 83%,
      color-mix(in srgb, var(--shine-7) 88%, #000) 100%);
}
.shine-fill.shine-fill {
  background-color: var(--shine-under);
  background-image: var(--shine-mesh);
  background-size: var(--shine-sizes);
  background-position: var(--shine-start);
  background-repeat: no-repeat;
  background-origin: border-box;
  animation: var(--shine-anim, shine-sheen) var(--shine-time) ease-in-out infinite;
}

.btn.shine-fill:hover, .btn.shine-fill:active, .btn.shine-fill:focus-visible {
  background-color: var(--shine-under);
  background-image: var(--shine-mesh);
  background-size: var(--shine-sizes);
  background-position: var(--shine-start);
  background-repeat: no-repeat;
  background-origin: border-box;
}

@keyframes shine-sheen {
  0% {
    background-position: var(--shine-start);
  }
  25% {
    background-position: -115% 72%, -64% 18%, -109% 22%, 132% 84%, 27% 34%, 248% 34%, 277% 62%, 62% 50%;
  }
  50% {
    background-position: -49% 34%, -168% 84%, 25% 82%, 68% 16%, 161% 62%, 140% 62%, 355% 90%, 24% 50%;
  }
  75% {
    background-position: -145% 80%, -18% 40%, -23% 30%, -22% 60%, 215% 12%, 222% 12%, 187% 45%, 66% 50%;
  }
  100% {
    background-position: var(--shine-start);
  }
}

@property --five-x1 { syntax: "<percentage>"; inherits: true; initial-value: -20%; }
@property --five-x2 { syntax: "<percentage>"; inherits: true; initial-value: 15%; }
@property --five-x3 { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --five-x4 { syntax: "<percentage>"; inherits: true; initial-value: 85%; }
@property --five-x5 { syntax: "<percentage>"; inherits: true; initial-value: 120%; }
@property --five-sway { syntax: "<percentage>"; inherits: true; initial-value: 0%; }
@property --five-y1 { syntax: "<percentage>"; inherits: true; initial-value: 70%; }
@property --five-y2 { syntax: "<percentage>"; inherits: true; initial-value: 30%; }
@property --five-y3 { syntax: "<percentage>"; inherits: true; initial-value: 65%; }
@property --five-y4 { syntax: "<percentage>"; inherits: true; initial-value: 25%; }
@property --five-y5 { syntax: "<percentage>"; inherits: true; initial-value: 60%; }
.shine-five {
  --shine-anim: none;
  --shine-under: var(--acc-solid);
  --five-1: #F6B24F;
  --five-2: #F2686F;
  --five-3: #9A64C4;
  --five-4: #1590C8;
  --five-5: #1EC3A3;
  --five-deep: 100%;
  --shine-sizes: 50% 100%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 100% 100%;
  --shine-start: calc(var(--five-x1) + var(--five-sway)) 50%,
                 calc(var(--five-x2) + var(--five-sway)) 50%,
                 calc(var(--five-x3) + var(--five-sway)) 50%,
                 calc(var(--five-x4) + var(--five-sway)) 50%,
                 calc(var(--five-x5) + var(--five-sway)) 50%, 0% 50%;
  --shine-glow-inset: -12px;
  --shine-glow-blur: 22px;
  --shine-glow-opacity: .7;
  --shine-glow-hover: .95;
  --shine-glow-radius: calc(68px * var(--round));
  --shine-mesh:
    radial-gradient(ellipse 50% 85% at 50% var(--five-y1),
      color-mix(in srgb, var(--five-1) 97%, transparent) 0%,
      color-mix(in srgb, var(--five-1) 74%, transparent) 46%, transparent 100%),
    radial-gradient(ellipse 50% 85% at 50% var(--five-y2),
      color-mix(in srgb, var(--five-2) 97%, transparent) 0%,
      color-mix(in srgb, var(--five-2) 74%, transparent) 46%, transparent 100%),
    radial-gradient(ellipse 50% 85% at 50% var(--five-y3),
      color-mix(in srgb, var(--five-3) 97%, transparent) 0%,
      color-mix(in srgb, var(--five-3) 74%, transparent) 46%, transparent 100%),
    radial-gradient(ellipse 50% 85% at 50% var(--five-y4),
      color-mix(in srgb, var(--five-4) 97%, transparent) 0%,
      color-mix(in srgb, var(--five-4) 74%, transparent) 46%, transparent 100%),
    radial-gradient(ellipse 50% 85% at 50% var(--five-y5),
      color-mix(in srgb, var(--five-5) 97%, transparent) 0%,
      color-mix(in srgb, var(--five-5) 74%, transparent) 46%, transparent 100%),
    linear-gradient(100deg,
      color-mix(in srgb, var(--five-1) var(--five-deep), #000) 0%,
      color-mix(in srgb, var(--five-2) var(--five-deep), #000) 26%,
      color-mix(in srgb, var(--five-3) var(--five-deep), #000) 52%,
      color-mix(in srgb, var(--five-4) var(--five-deep), #000) 76%,
      color-mix(in srgb, var(--five-5) var(--five-deep), #000) 100%);
}
[data-theme="dark"] .shine-five {
  --five-1: rgb(176, 140, 66);
  --five-2: rgb(176, 88, 94);
  --five-3: rgb(154, 95, 166);
  --five-4: rgb(24, 110, 128);
  --five-5: rgb(47, 134, 130);
  --five-deep: 88%;
}
.shine-glow.shine-five {
  animation:
    five-x1 9.7s cubic-bezier(.37, 0, .63, 1) infinite,
    five-x2 12.3s cubic-bezier(.37, 0, .63, 1) infinite,
    five-x3 10.9s cubic-bezier(.37, 0, .63, 1) infinite,
    five-x4 13.7s cubic-bezier(.37, 0, .63, 1) infinite,
    five-x5 11.3s cubic-bezier(.37, 0, .63, 1) infinite,
    five-y1 7.1s cubic-bezier(.37, 0, .63, 1) infinite,
    five-y2 8.3s cubic-bezier(.37, 0, .63, 1) infinite,
    five-y3 6.7s cubic-bezier(.37, 0, .63, 1) infinite,
    five-y4 9.1s cubic-bezier(.37, 0, .63, 1) infinite,
    five-y5 7.9s cubic-bezier(.37, 0, .63, 1) infinite,
    five-sway 17.3s cubic-bezier(.37, 0, .63, 1) infinite;
}
@keyframes five-x1 { 0%, 100% { --five-x1: -20%; } 23% { --five-x1: -11.2%; }
                     48% { --five-x1: -31%; } 74% { --five-x1: -14.5%; } }
@keyframes five-x2 { 0%, 100% { --five-x2: 15%; } 27% { --five-x2: 26%; }
                     52% { --five-x2: 7.3%; } 78% { --five-x2: 21.6%; } }
@keyframes five-x3 { 0%, 100% { --five-x3: 50%; } 26% { --five-x3: 40.1%; }
                     51% { --five-x3: 61%; } 77% { --five-x3: 43.4%; } }
@keyframes five-x4 { 0%, 100% { --five-x4: 85%; } 24% { --five-x4: 94.9%; }
                     50% { --five-x4: 74%; } 75% { --five-x4: 92.7%; } }
@keyframes five-x5 { 0%, 100% { --five-x5: 120%; } 28% { --five-x5: 109%; }
                     53% { --five-x5: 126.6%; } 79% { --five-x5: 111.2%; } }
@keyframes five-sway { 0%, 100% { --five-sway: 0%; } 30% { --five-sway: 7%; }
                       65% { --five-sway: -7%; } }
@keyframes five-y1 { 0%, 100% { --five-y1: 70%; } 34% { --five-y1: 22%; } 67% { --five-y1: 84%; } }
@keyframes five-y2 { 0%, 100% { --five-y2: 30%; } 31% { --five-y2: 78%; } 64% { --five-y2: 16%; } }
@keyframes five-y3 { 0%, 100% { --five-y3: 65%; } 36% { --five-y3: 18%; } 70% { --five-y3: 80%; } }
@keyframes five-y4 { 0%, 100% { --five-y4: 25%; } 33% { --five-y4: 82%; } 68% { --five-y4: 34%; } }
@keyframes five-y5 { 0%, 100% { --five-y5: 60%; } 29% { --five-y5: 15%; } 63% { --five-y5: 76%; } }

.shine-bar {
  --shine-sizes: 40% 100%, 40% 100%, 40% 100%, 40% 100%, 40% 100%,
                 40% 100%, 40% 100%, 200% 100%;
  --shine-time: 6s;
  --shine-under: var(--acc);
}
.shine-bar::after { filter: saturate(1.25); }
.shine-bar::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: var(--shine-bar-top, auto);
  bottom: var(--shine-bar-bottom, 0);
  height: var(--shine-bar, 2px);
  pointer-events: none;
  background-color: var(--shine-under);
  background-image: var(--shine-mesh);
  background-size: var(--shine-sizes);
  background-position: var(--shine-start);
  background-repeat: no-repeat;
  filter: blur(6px);
  opacity: .5;
  animation: var(--shine-anim, shine-sheen) var(--shine-time) ease-in-out infinite;
}
.shine-bar::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: var(--shine-bar-top, auto);
  bottom: var(--shine-bar-bottom, 0);
  height: var(--shine-bar, 2px);
  z-index: 1;
  pointer-events: none;
  background-color: var(--shine-under);
  background-image: var(--shine-mesh);
  background-size: var(--shine-sizes);
  background-position: var(--shine-start);
  background-repeat: no-repeat;
  animation: var(--shine-anim, shine-sheen) var(--shine-time) ease-in-out infinite;
}

.shine-glow { position: relative; isolation: isolate; display: inline-block; }
.shine-glow::after {
  content: "";
  position: absolute;
  inset: var(--shine-glow-inset-y, var(--shine-glow-inset, -8px))
         var(--shine-glow-inset-x, var(--shine-glow-inset, -8px));
  z-index: -2;
  border-radius: var(--shine-glow-radius, inherit);
  background-image: var(--shine-mesh);
  background-size: var(--shine-sizes);
  background-position: var(--shine-start);
  background-repeat: no-repeat;
  filter: blur(var(--shine-glow-blur, 14px));
  opacity: var(--shine-glow-opacity, .68);
  transition: opacity .2s;
  pointer-events: none;
  animation: var(--shine-anim, shine-sheen) var(--shine-time) ease-in-out infinite;
}
.shine-glow:hover::after {
  opacity: var(--shine-glow-hover, var(--shine-glow-opacity, .68));
}
.shine-glow:has(.btn:disabled)::after { opacity: 0; }
.shine-glow > .shine-fill, .shine-glow > .btn { position: relative; z-index: 1; }

.shine-acc {
  --shine-1: var(--acc-solid);
  --shine-2: var(--acc);
  --shine-3: var(--acc-weak-2);
  --shine-4: var(--acc-ink);
  --shine-5: var(--acc-solid);
  --shine-6: var(--acc);
  --shine-7: var(--acc-weak-2);
}
@supports (color: hsl(from red h s l)) {
  .shine-acc {
    --shine-hue: 12;
    --shine-l: 46%;
    --shine-lum: 12%;
    --shine-1: hsl(from var(--acc) calc(h - var(--shine-hue))
               calc(s * 1.20) calc(var(--shine-l) - var(--shine-lum) * 1));
    --shine-2: hsl(from var(--acc) calc(h - var(--shine-hue) * .67)
               calc(s * 1.35) calc(var(--shine-l) + var(--shine-lum) * .38));
    --shine-3: hsl(from var(--acc) calc(h - var(--shine-hue) * .33)
               calc(s * 1.45) calc(var(--shine-l) - var(--shine-lum) * .5));
    --shine-4: hsl(from var(--acc) h
               calc(s * 1.50) calc(var(--shine-l) + var(--shine-lum) * 1));
    --shine-5: hsl(from var(--acc) calc(h + var(--shine-hue) * .33)
               calc(s * 1.40) calc(var(--shine-l) - var(--shine-lum) * .75));
    --shine-6: hsl(from var(--acc) calc(h + var(--shine-hue) * .67)
               calc(s * 1.30) calc(var(--shine-l) + var(--shine-lum) * .63));
    --shine-7: hsl(from var(--acc) calc(h + var(--shine-hue))
               calc(s * 1.22) calc(var(--shine-l) - var(--shine-lum) * .25));
  }
}

@supports (color: oklch(from red l c h)) {
  .shine-acc {
    --shine-base: var(--acc);
    --shine-hue: 14;
    --shine-lum: .11;
    --shine-1: oklch(from var(--shine-base) calc(l - var(--shine-lum) * 1)
               calc(c * 1.06) calc(h - var(--shine-hue)));
    --shine-2: oklch(from var(--shine-base) calc(l + var(--shine-up, var(--shine-lum)) * .38)
               calc(c * 1.12) calc(h - var(--shine-hue) * .67));
    --shine-3: oklch(from var(--shine-base) calc(l - var(--shine-lum) * .5)
               calc(c * 1.16) calc(h - var(--shine-hue) * .33));
    --shine-4: oklch(from var(--shine-base) calc(l + var(--shine-up, var(--shine-lum)) * 1)
               calc(c * 1.18) h);
    --shine-5: oklch(from var(--shine-base) calc(l - var(--shine-lum) * .75)
               calc(c * 1.14) calc(h + var(--shine-hue) * .33));
    --shine-6: oklch(from var(--shine-base) calc(l + var(--shine-up, var(--shine-lum)) * .63)
               calc(c * 1.10) calc(h + var(--shine-hue) * .67));
    --shine-7: oklch(from var(--shine-base) calc(l - var(--shine-lum) * .25)
               calc(c * 1.06) calc(h + var(--shine-hue)));
  }
  .shine-fill.shine-acc { --shine-base: var(--acc-solid); --shine-up: 0; }
  .shine-glow:has(> .shine-fill) { --shine-base: var(--acc-solid); --shine-up: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .shine-fill, .shine-glow::after, .shine-glow.shine-five { animation: none; }
}
[data-motion="calm"] .shine-fill,
[data-motion="calm"] .shine-glow::after,
[data-motion="calm"] .shine-glow.shine-five { animation: none; }

.lic-whole {
  display: flex;
  justify-content: center;
  padding: var(--sp-500) var(--gap);
}

.stage-work {
  --stage-aside-w: clamp(248px, 20vw, 304px);
  --stage-layers-w: var(--stage-aside-w);
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--stage-aside-w);
  gap: var(--gap);
  height: calc(var(--screen-room) - var(--sp-300) - var(--sp-500));
  min-height: 420px;
}
/* dark theme: the same hues with less chroma, so the category colours do not glare on the dark panel (16.11) */
[data-theme="dark"] .stage {
  --scene-pal-1: #C95E5F; --scene-pal-2: #5780D4; --scene-pal-3: #D3B357;
  --scene-pal-4: #4D9C74; --scene-pal-5: #D1853E; --scene-pal-6: #8D62B1;
  --scene-pal-7: #399DB0; --scene-pal-8: #BE5896; --scene-pal-9: #95B147;
  --scene-pal-10: #9A7253; --scene-pal-11: #D18CA3; --scene-pal-12: #428E81;
  --scene-pal-13: #96404C; --scene-pal-14: #415896; --scene-pal-15: #AA8B2A;
  --scene-pal-16: #3F7658; --scene-pal-17: #A76534; --scene-pal-18: #60498B;
  --scene-pal-19: #347883; --scene-pal-20: #8D4170; --scene-pal-21: #6B8036;
  --scene-pal-22: #C0A789; --scene-pal-23: #B57173; --scene-pal-24: #6B7681;
}
.stage {
  --scene-pal-1: #E5484D;  --scene-pal-2: #3E7BFA;  --scene-pal-3: #F5C542;
  --scene-pal-4: #30A46C;  --scene-pal-5: #F2811D;  --scene-pal-6: #8E4EC6;
  --scene-pal-7: #12A5C4;  --scene-pal-8: #D6409F;  --scene-pal-9: #99C22A;
  --scene-pal-10: #A0663C; --scene-pal-11: #F28CB1; --scene-pal-12: #1F8F80;
  --scene-pal-13: #9B1C31; --scene-pal-14: #1D3F9E; --scene-pal-15: #B88A00;
  --scene-pal-16: #1B6B43; --scene-pal-17: #B4530F; --scene-pal-18: #4B2A8F;
  --scene-pal-19: #0B6E82; --scene-pal-20: #8E1E66; --scene-pal-21: #5C7A12;
  --scene-pal-22: #D9B38C; --scene-pal-23: #C9656B; --scene-pal-24: #5B6B7F;
  --scene-plain: color-mix(in srgb, var(--ink) 22%, var(--card));
  --scene-junk: #8C8C84;
  --scene-unknown: #A97FA0;
  --scene-line: color-mix(in srgb, var(--ink) 45%, var(--bg));
  --scene-grid: color-mix(in srgb, var(--ink) 30%, var(--bg));
  --scene-grid-major: color-mix(in srgb, var(--ink) 55%, var(--bg));
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--bg);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-l);
}
.stage > .scene3d-canvas {
  position: absolute; inset: 0;
  display: block;
  outline: none;
  touch-action: none;
  user-select: none;
  cursor: default;
}
.stage > .scene3d-canvas.dragging { cursor: var(--cur-hold); }
.stage.select-tool > .scene3d-canvas:not(.dragging) { cursor: crosshair; }
.stage.scene-preview { height: min(70vh, 760px); }
.panel:fullscreen .scene-preview, .panel.fs-self .scene-preview {
  flex: 1 1 auto; height: auto; min-height: 0;
}
/* the frame grows from the element's place (`--fs-*`, 0 at rest): every own full screen moves (15.692) */
.fs-self { position: fixed; inset: var(--fs-top) var(--fs-right) var(--fs-bottom) var(--fs-left);
           z-index: var(--z-overlay); margin: 0; }
body.fs-self-host { overflow: hidden; }
@property --fs-k { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --fs-top { syntax: "<length>"; inherits: true; initial-value: 0px; }
@property --fs-right { syntax: "<length>"; inherits: true; initial-value: 0px; }
@property --fs-bottom { syntax: "<length>"; inherits: true; initial-value: 0px; }
@property --fs-left { syntax: "<length>"; inherits: true; initial-value: 0px; }
.fs-moving {
  transition: --fs-k var(--dur-zoom) var(--ease-out), --fs-top var(--dur-zoom) var(--ease-out),
              --fs-right var(--dur-zoom) var(--ease-out), --fs-bottom var(--dur-zoom) var(--ease-out),
              --fs-left var(--dur-zoom) var(--ease-out);
}
html[data-motion="calm"] .fs-moving { transition: none; }
@media (prefers-reduced-motion: reduce) { .fs-moving { transition: none; } }
html:not([data-mob]) #screen:has(.stage-work.full-tab) { padding: 0; }
html:not([data-mob]) .stage-work.full-tab:not(.fs-self):not(:fullscreen) {
  position: relative;
  --fs-top: 0px !important; --fs-right: 0px !important; --fs-bottom: 0px !important;
  --fs-left: 0px !important; --fs-k: 1 !important;
}
/* the browser's full screen fills the screen with the window, its scene and islands framed by `--fs-*`; the own full screen
   (`.fs-self`, the browser's one leaving in it too) frames the window itself - its inhabitants take no frame a second time
   (counted twice, the scene went 238 px narrower than its rest while leaving and sprang back at the end) */
.stage-work.fs-self:not(.stage-phone) > :is(.stage, .stage-aside, .stage-layers) { --fs-top: 0px; --fs-right: 0px; --fs-bottom: 0px; --fs-left: 0px; }
.stage-work:fullscreen, .stage-work.fs-self, html:not([data-mob]) .stage-work.full-tab {
  display: block;
  height: auto;
  background: color-mix(in srgb, var(--bg) calc(var(--fs-k) * 100%), transparent);
  padding: 0;
}
html:not([data-mob]) .stage-work.full-tab:not(.fs-self):not(:fullscreen) { height: var(--screen-room); }
.stage-work::backdrop { background: var(--bg); }
.stage-work:fullscreen > .stage, .stage-work.fs-self > .stage,
html:not([data-mob]) .stage-work.full-tab > .stage {
  position: absolute;
  top: var(--fs-top);
  left: calc(var(--fs-left) + (var(--stage-layers-w) + var(--gap)) * (1 - var(--fs-k)));
  bottom: var(--fs-bottom);
  right: calc(var(--fs-right) + (var(--stage-aside-w) + var(--gap)) * (1 - var(--fs-k)));
  border-width: calc(var(--bw) * (1 - var(--fs-k)));
  border-radius: calc(var(--r-l) * (1 - var(--fs-k)));
  --stage-cover: max(0px, calc((var(--stage-aside-w) + var(--gap) + var(--sp-200)) * var(--fs-k) - var(--gap)));
  --stage-cover-left: max(0px, calc((var(--stage-layers-w) + var(--gap) + var(--sp-200)) * var(--fs-k) - var(--gap)));
}
.stage-work:fullscreen > .stage-aside, .stage-work.fs-self > .stage-aside,
html:not([data-mob]) .stage-work.full-tab > .stage-aside {
  position: absolute;
  top: calc(var(--fs-top) + var(--sp-200) * var(--fs-k));
  right: calc(var(--fs-right) + var(--sp-200) * var(--fs-k));
  bottom: calc(var(--fs-bottom) + var(--sp-200) * var(--fs-k));
  width: var(--stage-aside-w);
  z-index: 3;
}
.stage-work:fullscreen > .stage-layers, .stage-work.fs-self > .stage-layers,
html:not([data-mob]) .stage-work.full-tab > .stage-layers {
  position: absolute;
  top: calc(var(--fs-top) + var(--sp-200) * var(--fs-k));
  left: calc(var(--fs-left) + var(--sp-200) * var(--fs-k));
  bottom: calc(var(--fs-bottom) + var(--sp-200) * var(--fs-k));
  width: var(--stage-layers-w);
  z-index: 3;
}
.stage-work.aside-left { grid-template-columns: var(--stage-aside-w) minmax(0, 1fr); }
.stage-work.aside-left > .stage-aside { order: -1; }
.stage-work.aside-left:fullscreen > .stage, .stage-work.aside-left.fs-self > .stage,
html:not([data-mob]) .stage-work.aside-left.full-tab > .stage {
  left: calc(var(--fs-left) + (var(--stage-aside-w) + var(--gap)) * (1 - var(--fs-k)));
  right: calc(var(--fs-right) + (var(--stage-layers-w) + var(--gap)) * (1 - var(--fs-k)));
  --stage-cover: max(0px, calc((var(--stage-layers-w) + var(--gap) + var(--sp-200)) * var(--fs-k) - var(--gap)));
  --stage-cover-left: max(0px, calc((var(--stage-aside-w) + var(--gap) + var(--sp-200)) * var(--fs-k) - var(--gap)));
}
.stage-work.aside-left:fullscreen > .stage-aside, .stage-work.aside-left.fs-self > .stage-aside,
html:not([data-mob]) .stage-work.aside-left.full-tab > .stage-aside {
  right: auto;
  left: calc(var(--fs-left) + var(--sp-200) * var(--fs-k));
}
.stage-work.aside-left:fullscreen > .stage-layers, .stage-work.aside-left.fs-self > .stage-layers,
html:not([data-mob]) .stage-work.aside-left.full-tab > .stage-layers {
  left: auto;
  right: calc(var(--fs-right) + var(--sp-200) * var(--fs-k));
}
.stage-work.panels-joined > .stage-layers, .stage-work.panels-hidden:not(.panels-leaving) > :is(.stage-layers, .stage-aside) { display: none; }
.stage-work.panels-joined:not(.aside-left):fullscreen > .stage, .stage-work.panels-joined:not(.aside-left).fs-self > .stage,
html:not([data-mob]) .stage-work.panels-joined:not(.aside-left).full-tab > .stage {
  left: var(--fs-left);
  --stage-cover-left: 0px;
}
.stage-work.panels-joined.aside-left:fullscreen > .stage, .stage-work.panels-joined.aside-left.fs-self > .stage,
html:not([data-mob]) .stage-work.panels-joined.aside-left.full-tab > .stage {
  right: var(--fs-right);
  --stage-cover: 0px;
}
.stage-work.panels-hidden:fullscreen > .stage, .stage-work.panels-hidden.fs-self > .stage,
html:not([data-mob]) .stage-work.panels-hidden.full-tab > .stage {
  left: var(--fs-left);
  right: var(--fs-right);
  --stage-cover: 0px;
  --stage-cover-left: 0px;
}
.fov-pop { width: 240px; padding: var(--sp-075) var(--sp-050); }
.fov-pop .range { flex: 1 1 auto; min-width: 0; }
.cp-pop:has(> .texture-fills) { width: max-content; }
.texture-fills { display: grid; grid-template-columns: repeat(4, auto); }
.texture-fills > .kp-fill { --swatch-size: 44; }
/* 15.1739 («а почему интерфейсы не сделал едиными? название не сделал как везде»): a project's name at the panel's top on every stage, as Ares's,
   never over the scene */
.stage-aside .scene-name {
  margin-block: var(--sp-100) var(--sp-150);
  margin-inline-start: var(--sp-050);
  font-size: var(--fs);
}
.stage-aside .scene-name .title-field-text { font-weight: var(--fw-semi); }
.stage-aside .scene-name .title-field-view,
.stage-aside .scene-name input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]):not(.wp-num):not(.pin-input).title-field-input {
  margin-inline: 0;
  max-width: 100%;
}
#screen .stage-work :is(.card-title, .rg-caption) {
  font-family: var(--font);
  font-size: var(--fs);
  line-height: var(--lh);
  font-weight: var(--fw-semi);
  color: var(--ink);
}
#screen .stage-work > :is(.stage-aside, .stage-layers) :is(.card-title, .rg-caption) {
  font-size: var(--fs-s);
  line-height: var(--lh-s);
}
.stage-work .float-toolbar { top: var(--sp-200); }
:root[data-design] .stage-work:is(.full-tab, :fullscreen, .fs-self) > :is(.stage-aside, .stage-layers) {
  border-color: var(--line);
  box-shadow: var(--sh-raised);
}
.stage-work .float-bar:is(.bottom-left, .bottom-right) { bottom: var(--sp-200); }
.scene3d-pins { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.scene3d-pins > * { position: absolute; left: 0; top: 0; pointer-events: auto; }
.scene3d-pins > [hidden] { display: none; }
.edge-pin {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-050);
  height: var(--h-btn-sm);
  padding: 0 var(--sp-100);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-full);
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--sh-raised);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur-pop) var(--ease-out), border-color var(--dur-pop) var(--ease-out);
}
.edge-pin::before {
  content: "";
  width: var(--sp-150);
  height: var(--sp-050);
  border-radius: var(--r-full);
  border: var(--bw) dashed var(--ink3);
}
.edge-pin.on { background: var(--edge, var(--acc)); border-color: transparent; color: var(--edge-ink, var(--acc-fg)); }
.edge-pin.on::before { border: 0; background: currentColor; }
.edge-pin:hover { border-color: var(--acc); }
html[data-motion="calm"] .edge-pin { transition: none; }
.scene3d-lasso {
  position: absolute;
  pointer-events: none;
  border: var(--bw) solid var(--acc);
  background: color-mix(in srgb, var(--acc) 12%, transparent);
  border-radius: var(--r-xs);
}
.stage-aside {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  min-height: 0;
}
.stage-aside > .stage-head { flex: none; padding: var(--sp-150); }
.stage-aside > .stage-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.stage-body > :is(section, .stage-selection, .empty-state) { padding: var(--sp-150); }
.stage-body > section { display: flex; flex-direction: column; gap: var(--sp-100); min-width: 0; }
.stage-body > section > .card-title + * { margin-top: 0; }
.stage-aside > .stage-foot { flex: none; padding: var(--sp-150); }
.stage-selection:empty { display: none; }
.stage-aside .rg-section { gap: var(--sp-100); }
.stage-aside .rg-caption { padding: 0; color: var(--ink); }
.stage-aside .rg-group { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.stage-aside .rg-row {
  min-height: var(--h-btn-sm);
  margin-inline: calc(-1 * var(--sp-050));
  padding: var(--sp-025) var(--sp-050);
  border-radius: var(--r-xs);
  font-size: var(--fs-s);
  line-height: var(--lh-s);
}
.stage-aside .rg-row + .rg-row::before { display: none; }
.stage-aside .rg-row .rg-title { color: var(--ink2); }
.stage-aside .rg-row .rg-val { color: var(--ink); }
.stage-aside .rg-row .rg-sub { overflow-wrap: anywhere; }
.stage-selection-box { gap: var(--sp-150); }
.stage-selection-box > .rg-section + .rg-section { padding-top: var(--sp-050); }
.atom-verdict-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-075, 6px);
  padding: var(--sp-100);
  border: var(--bw) solid color-mix(in srgb, var(--atom-ink) 22%, var(--line));
  border-radius: var(--r-s);
  background: color-mix(in srgb, var(--atom-ink) 5%, var(--card));
}
.atom-verdict-head { display: flex; align-items: center; gap: var(--sp-075, 6px); min-width: 0; }
.atom-verdict-dot { flex: none; width: var(--sp-150); height: var(--sp-150); border-radius: var(--r-full); }
.atom-verdict-cat { flex: 1 1 auto; min-width: 0; font-weight: var(--fw-semi); color: var(--ink); overflow-wrap: normal; word-break: normal; }
.atom-verdict-flags { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-050); }
.atom-verdict-p { flex: none; font-size: var(--fs-s); color: var(--atom-ink); font-variant-numeric: tabular-nums; }
.atom-verdict-doubt {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-050);
  height: calc(var(--sp-200) + var(--sp-050));
  padding: 0 var(--sp-100) 0 var(--sp-075);
  border-radius: var(--r-full);
  background: var(--warn-weak);
  color: var(--warn-ink);
  font-size: var(--fs-xs);
  line-height: 1;
}
.atom-odds {
  display: flex;
  gap: 2px;
  height: 6px;
  border-radius: var(--r-full);
  overflow: hidden;
}
.atom-odds-seg { flex-basis: 0; min-width: 3px; background: color-mix(in srgb, var(--ink) 16%, transparent); }
.atom-odds-seg.lead { background: var(--atom-ink); }
.atom-odds-legend, .atom-verdict-why { font-size: var(--fs-xs); line-height: var(--lh-xs); color: var(--ink3); }
.atom-verdict-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--sp-100);
  font-size: var(--fs-s);
  line-height: var(--lh-s);
}
.atom-verdict-label { color: var(--ink2); }
.atom-verdict-value { text-align: right; color: var(--ink); }
.atom-verdict-why { grid-column: 1 / -1; }
.atom-votes-title { font-size: var(--fs-s); line-height: var(--lh-s); color: var(--ink2); }
.atom-votes { display: flex; flex-direction: column; gap: var(--sp-075, 6px); margin: 0; padding: 0; list-style: none; }
/* A vote (15.463, 15.525, 15.526): the sign - a registry icon in a 20 px circle on the first text line; the bar of its
   strength - one width for every vote at the row's end, under the label when they do not fit together. */
.atom-vote {
  display: grid;
  grid-template-columns: var(--sp-250) minmax(0, 1fr);
  column-gap: var(--sp-100);
  row-gap: var(--sp-025);
  font-size: var(--fs-s);
  line-height: var(--lh-s);
}
.atom-vote-sign {
  display: inline-grid;
  place-items: center;
  width: var(--sp-250);
  height: var(--sp-250);
  margin-top: calc((var(--lh-s) - var(--sp-250)) / 2);
  border-radius: var(--r-full);
}
.atom-vote-dot { width: var(--sp-075); height: var(--sp-075); border-radius: var(--r-full); background: currentColor; }
.atom-vote.for .atom-vote-sign { background: var(--good-weak); color: var(--good-ink); }
.atom-vote.against .atom-vote-sign { background: var(--danger-weak); color: var(--danger-ink); }
.atom-vote-text { color: var(--ink); overflow-wrap: anywhere; }
.atom-vote-meta { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-050) var(--sp-100); min-width: 0; }
.atom-vote-tag { flex: 1 1 auto; min-width: 0; font-size: var(--fs-xs); }
.atom-vote.for .atom-vote-tag { color: var(--good-ink); }
.atom-vote.against .atom-vote-tag { color: var(--danger-ink); }
.atom-vote-bar {
  flex: none;
  width: calc(var(--sp-400) * 2);
  height: 4px;
  border-radius: var(--r-full);
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  overflow: hidden;
}
.atom-vote-bar > i { display: block; height: 100%; border-radius: inherit; }
.atom-vote.for .atom-vote-bar > i { background: var(--good); }
.atom-vote.against .atom-vote-bar > i { background: var(--danger); }
.atom-vote.fact .atom-vote-sign { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink3); }
.atom-vote.fact .atom-vote-text { color: var(--ink2); }
.actx-node > .kind-why {
  max-width: 280px;
  padding: 0 var(--sp-150) var(--sp-050);
  font-size: var(--fs-xs);
  line-height: var(--lh-s);
  color: var(--ink3);
}
.stage-layers {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  min-height: 0;
}
.stage-work > :is(.stage-aside, .stage-layers).card-pad { padding: 0; }
.stage-layers > .card-title { flex: none; padding: var(--sp-150) var(--sp-150) var(--sp-050); }
.stage-layers > .card-title + * { margin-top: 0; }
.stage-layers > .stage-layers-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 0 var(--sp-100) var(--sp-100); }
.stage-aside .grid-table, .trash-panel .grid-table, .legend-pop .grid-table { border: 0; border-radius: 0; background: none; }
.stage-aside .grid-head, .trash-panel .grid-head, .legend-pop .grid-head {
  background: none;
  border-bottom: 0;
  padding-top: 0;
  padding-bottom: var(--sp-050);
  font-size: var(--fs-xs);
  color: var(--ink3);
}
.stage-aside .grid-row, .trash-panel .grid-row, .legend-pop .grid-row {
  padding-top: var(--sp-050);
  padding-bottom: var(--sp-050);
  border-radius: var(--r-s);
  font-size: var(--fs-s);
  line-height: var(--lh-s);
}
.stage-aside .grid-row + .grid-row, .trash-panel .grid-row + .grid-row,
.legend-pop .grid-row + .grid-row { border-top: 0; }
.stage-aside .grid-table { --edge-right: var(--sp-050); }
.stage-aside :is(.grid-row, .grid-head) { padding-left: var(--sp-050); gap: var(--sp-050); }
html[data-mob] .stage-work { grid-template-columns: minmax(0, 1fr); height: auto; }
html[data-mob] .stage-layers { order: 1; max-height: 50vh; }
html[data-mob] .stage { height: 60vh; }

.float-swatch {
  display: inline-block;
  width: var(--sp-200);
  height: var(--sp-200);
  padding: 0;
  border: var(--bw) solid var(--line);
  border-radius: var(--r-full);
}
button.float-swatch { cursor: pointer; }
.float-panel .tree-doubt { width: var(--sp-200); }
.stage > .legend-host > .float-bar.bottom-right {
  right: calc(var(--sp-150) * 2 + var(--h-btn) + var(--stage-cover, 0px));
}

.edge-sketch { display: block; width: 260px; height: 180px; }
.edge-sketch .plate { fill: var(--edge); fill-opacity: .14; stroke: none; }
.edge-sketch .edge {
  stroke: var(--ink3);
  stroke-width: 2;
  stroke-dasharray: 4 4;
  stroke-linecap: round;
  pointer-events: none;
  transition: stroke var(--dur-pop) var(--ease-out), stroke-width var(--dur-pop) var(--ease-out);
}
.edge-sketch .edge.on { stroke: var(--edge); stroke-width: 6; stroke-dasharray: none; }
.edge-sketch .hit { stroke: transparent; stroke-width: 16; stroke-linecap: round; cursor: pointer; }
.edge-sketch .hit:hover { stroke: color-mix(in srgb, var(--acc) 22%, transparent); }
.edge-sketch .size { font-size: var(--fs-xs); fill: var(--ink2); font-variant-numeric: tabular-nums; pointer-events: none; }
html[data-motion="calm"] .edge-sketch .edge { transition: none; }
.stage > .float-panel:is(.trash-panel, .legend-pop) {
  bottom: calc(var(--sp-150) * 2 + var(--h-btn));
  width: min(440px, calc(100% - var(--sp-150) * 2 - var(--stage-cover, 0px)));
  max-width: none;
  max-height: calc(100% - var(--sp-150) * 4 - var(--h-btn) * 2);
  display: flex;
  flex-direction: column;
  gap: var(--sp-100);
  padding: var(--sp-150);
}
.trash-panel .grid-rows, .legend-pop .grid-rows { max-height: min(40vh, 360px); }
.stage-work .grid-row.doubt:not(.picked) { color: var(--warn-ink); }
.stage-work .grid-row.picked:has(+ .grid-row.picked) {
  border-bottom-left-radius: 0; border-bottom-right-radius: 0;
}
.stage-work .grid-row.picked + .grid-row.picked {
  border-top-left-radius: 0; border-top-right-radius: 0;
}
.trash-head { justify-content: space-between; align-items: center; }

/* 15.2088: the top bar gives way - the tray's tabs as icons with a preview on the pointer, the search as «Поиск» and as its
   magnifier (the field opening over the bar on a press), the tabs gathered at the tray's right in one button with their count */
.tray-item.tray-icon { width: var(--h-btn); padding: 0; justify-content: center; }
.tray-more { position: relative; gap: var(--sp-050); }
.tray-count { min-width: 1.25rem; height: 1.25rem; padding: 0 0.3rem; border-radius: var(--r-full); background: var(--acc-solid);
              color: #fff; font-size: var(--fs-xs); line-height: 1.25rem; text-align: center; }
.tray-peek { position: fixed; z-index: var(--z-tip); width: 256px; padding: 8px; border-radius: var(--r); background: var(--card);
             box-shadow: 0 16px 40px rgba(0, 0, 0, .3), 0 0 0 var(--bw) var(--line); pointer-events: none; }
.tray-peek-name { font-size: var(--fs-s); font-weight: var(--fw-med); padding: 0 2px 6px; }
.tray-peek-pic { position: relative; overflow: hidden; width: 240px; border-radius: var(--r-s); background: var(--bg); }

/* 15.2246: the place's measure at a list row's end */
.dash-quota.row-meter { display: block; flex: none; margin-top: 0; width: calc(var(--sp-500) * 2); }
.dash-quota.row-meter > .dash-quota-t, .dash-quota.row-meter .dash-quota-f { display: block; }
/* 15.2713: it grows to its share as it comes in */
.dash-quota.row-meter .dash-quota-f { animation: meter-in .9s var(--ease-out) .08s both; }
@keyframes meter-in { from { clip-path: inset(0 100% 0 0 round var(--r-full)); } to { clip-path: inset(0 0 0 0 round var(--r-full)); } }
[data-motion="calm"] .dash-quota.row-meter .dash-quota-f { animation: none; }
@media (prefers-reduced-motion: reduce) { .dash-quota.row-meter .dash-quota-f { animation: none; } }

/* 15.2246: the log's records by day over its list */
.day-flow { display: flex; flex-direction: column; gap: var(--sp-150); flex: none; container-type: inline-size; }
.day-flow > .row > .dash-note { flex: none; }
.day-flow .chart-box > .chart { height: calc(var(--h-row) * 3); }
/* 15.2246: a chart as a group's row - its own height, the row's insets */
.rg-row.rg-chart { display: block; padding-block: var(--sp-200) var(--sp-150); }
.rg-row.rg-chart .chart-box > .chart { height: calc(var(--h-row) * 2.5); }

/* 15.2251: Atom's choice of a project's products - a card each: its live model, its name and sizes, what it holds */
.atom-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(var(--sp-600) * 5), 1fr)); gap: var(--gap); }
.atom-pick-card {
  display: grid; gap: var(--sp-150); align-content: start; min-width: 0; padding: var(--sp-150);
  border-radius: var(--r-l); background: var(--a-100); box-shadow: inset 0 0 0 var(--bw) transparent;
  transition: box-shadow var(--dur-pop) ease, background var(--dur-pop) ease;
}
.atom-pick-card.on { background: var(--acc-weak); box-shadow: inset 0 0 0 var(--bw) var(--acc); }
.atom-pick-view {
  position: relative; display: grid; place-items: center; height: calc(var(--sp-600) * 4);
  border-radius: calc(var(--r-l) - var(--sp-150)); overflow: hidden; background: var(--bg);
}
.atom-pick-view > .stage.atom-pick-stage, html[data-mob] .atom-pick-view > .stage.atom-pick-stage {
  position: absolute; inset: 0; height: auto; border: 0; border-radius: 0;
}
.atom-pick-head { display: flex; align-items: flex-start; gap: var(--sp-100); }
.atom-pick-name { display: grid; gap: var(--sp-025); min-width: 0; }
.atom-pick-name > b { color: var(--ink); font-weight: var(--fw-semi); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atom-pick-name > span { color: var(--ink2); font-size: var(--fs-s); line-height: var(--lh-s); }
.atom-pick-facts { display: grid; gap: var(--sp-050); font-size: var(--fs-s); line-height: var(--lh-s); }
.atom-pick-facts > div { display: flex; justify-content: space-between; gap: var(--sp-100); min-width: 0; color: var(--ink2); }
.atom-pick-facts b { flex: none; color: var(--ink); font-weight: var(--fw-med); }
.atom-pick-facts > .atom-pick-sum { padding-top: var(--sp-050); border-top: var(--bw) solid var(--line); color: var(--ink); }
.atom-pick-facts > .atom-pick-sum b { font-weight: var(--fw-semi); }
.atom-pick-note.chip {
  justify-self: start; display: inline-flex; align-items: center; gap: var(--sp-050);
  background: color-mix(in srgb, var(--atom-2) 18%, transparent); color: var(--ink); font-size: var(--fs-s);
}
.atom-pick-note.chip > svg { flex: none; color: var(--atom-2); }
.atom-pick-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--sp-100); }

/* 15.2870: a smartphone on its side - the top bar leaves while the screen is scrolled down (shell/app.js watchTopAway) */
:is(html, html[data-nav="drawer"], html[data-rail="hidden"]) .app.top-away { grid-template-rows: 0 auto 1fr; --shine-bar-top: -4px; }
.app.top-away > .topbar { visibility: hidden; transition: visibility 0s .24s; }
:is(html, html[data-nav="drawer"], html[data-rail="hidden"]) .app.top-away::before,
:is(html, html[data-nav="drawer"], html[data-rail="hidden"]) .app.top-away::after,
:root[data-design="new"] .app.shine-bar.top-away::after { top: -4px; transition: none; }
[data-motion="calm"] .app { transition: none; }

/* 15.2871: the installed app's launch - the system's first frame repeated (launch.js), and the logo's two halves in
   flight (launch-play.js) */
#launch-cover { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; background: var(--bg); }
#launch-cover img { display: block; width: 120px; height: auto; }
.launch-twin { position: fixed; margin: 0; z-index: 2147483001; pointer-events: none; }

/* 15.2964 («водсветка нажатых кнопок встроенная браузеровская - убрать… или перерисовать на свою»): a finger's press on
   anything that answers a press and has no press look of its own - the thing itself dims, as a native app's */
[data-press] { opacity: .6; transition: opacity 0s; }
[data-press-out] { transition: opacity var(--dur-pop) var(--ease-out); }
