
@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;
  --star-night-2: #161c2e;
  --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;

  --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:      #74767E;
  --ink-dis:   rgba(8, 15, 33, .29);

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

  --acc:        #66A88F;
  --acc-solid:  #3F7A62;
  --acc-weak:   #EFF6F3;
  --acc-weak-2: #D8E9E2;
  --acc-ink:   #3B614F;
  --acc-fg:    #FFFFFF;

  --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);
  --tip-bg:  #2E2F33;
  --tip-ink: #FFFFFF;
  --shadow:    var(--sh-raised);
  --shadow-lg: var(--sh-overlay);

  --focus: #4688EC;

  --topbar-h: 56px;
  --rail-w:   238px;
  --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-tip:     600;
}

:root[data-theme="dark"] {
  --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;

  --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:   #283632;
  --acc-weak-2: #334840;
  --acc-ink:    #9FD3BC;
  --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);

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

.sheet, .sheetview-frame, .rg-logo-row, .rg-avatar.rg-fit, .ds-sheet {
  --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;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

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

html, body { margin: 0; height: 100%; }

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,
.aht b,
.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; }

::-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; }

: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 {
  -webkit-user-select: text; user-select: text;
}

.grip {
  display: flex;
  /* вне шкалы: шаг точек самого знака, а не воздух между вещами */
  gap: 2.5px;
  flex: none;
  touch-action: none;
  user-select: 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;
  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;
}
.sheetview.full > .sheetview-frame > .sheetview-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  border-radius: var(--r-l);
}
.sheetview.full .sheetview-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-100);
  order: 2;
  padding-top: var(--sp-150);
}
.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: 0;
  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; }
}

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;
}
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); }

textarea, .textarea {
  height: auto; min-height: 76px;
  padding: var(--sp-100) var(--sp-150);
  resize: vertical;
}

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;
}

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);
}

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; }
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; }
html.own-selection :is(textarea, input[type=number], input[type=password])::selection {
  background: var(--sel-bg); color: var(--sel-ink); }
.sel-layer { position: fixed; inset: 0; z-index: calc(var(--z-tip) + 1); pointer-events: none; mix-blend-mode: difference; }
.sel-plate { position: absolute; background: #fff; }
.sel-twin { position: fixed; left: -10000px; top: 0; visibility: hidden; white-space: pre; pointer-events: none; }

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)); }
.field-grid > .span-all { grid-column: 1 / -1; }

/* 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, .input-eye:hover   { color: var(--ink); }
.field-clear:active, .input-eye: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;
}

.btn.primary {
  border-color: transparent;
  background: var(--acc-grad, var(--acc-solid));
  background-origin: border-box;
  background-repeat: no-repeat;
  color: #fff;
}
.btn.primary:hover  { filter: brightness(.92); background: var(--acc-grad, var(--acc-solid));
                      background-origin: border-box; background-repeat: no-repeat; color: #fff; }
.btn.primary:active { filter: brightness(.88); }
.btn.primary:disabled { background: var(--a-200); color: var(--ink-dis); filter: none; }

.btn.danger { border-color: transparent; background: var(--danger); color: var(--danger-fg); }
.btn.danger:hover { background: var(--danger-ink); filter: none; }
.btn.danger.subtle { background: var(--a-100); color: var(--danger-ink); border-color: transparent; }
.btn.danger.subtle:hover {
  background: var(--danger-weak);
  color: var(--danger-ink);
}
.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-grad, var(--acc-solid));
  background-origin: border-box;
  background-repeat: no-repeat;
  color: #fff;
}
.icon-btn.primary:hover { filter: brightness(.92); color: #fff;
                          background: var(--acc-grad, var(--acc-solid)); }
.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%; }
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; }

.toast-action { margin-top: var(--sp-100); align-self: flex-start; }

.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: var(--acc-fg);
  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); border-color: var(--acc);
}
.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; }
.pick-mark input:disabled + .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: var(--acc-fg);
  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);
}

.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; }
.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); }
/* 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); }
.link-tag-form { font-weight: 400; }

.note-box,
.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; }

.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; }
.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-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); }

.grid-table:has(.grid-rows > .grid-row > *:last-child
                > :is(.btn, .icon-btn, .row-acts)) :is(.grid-row, .grid-head)
                > *:last-child {
  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 section's own sign after its name in the sidebar (`mark` of the nav item; Star — 15.657) */
.rail-mark { display: inline-grid; flex: none; place-items: center; color: var(--acc-ink); }
.rail-named { display: inline-flex; align-items: center; gap: var(--sp-075); min-width: 0; }
.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); }
/* larger on a page (15.816: «и размерами больше будто бы должны быть»); in a window, an island or a menu as it was */
.empty-sign { display: inline-grid; flex: none; place-items: center; width: calc(var(--sp-600) * 2.25);
              height: calc(var(--sp-600) * 2.25); border-radius: var(--r-full); background: var(--a-100); color: var(--ink3); }
.empty-state:has(> .empty-sign) { font-size: var(--fs-l); line-height: var(--lh-l); }
:is(.panel-body, .dialog-body, .sblock, .actx, .combo-drop) .empty-sign { width: calc(var(--sp-600) * 1.75);
                                                                         height: calc(var(--sp-600) * 1.75); }
:is(.panel-body, .dialog-body, .sblock, .actx, .combo-drop) .empty-state:has(> .empty-sign) {
  font-size: var(--fs); line-height: var(--lh); }
.screen-error > .empty-sign { width: calc(var(--sp-600) * 2.5); height: calc(var(--sp-600) * 2.5);
                             background: var(--danger-weak); color: var(--danger-ink); }
/* 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); }

.combo-label { flex: 1 1 auto; }
.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); }

.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; }

.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); }

.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, .rate-mine { 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:hover, .combo-option.active { 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); }
.glyph-btn { font-variant-emoji: text; }
.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; }

#toasts {
  position: fixed; z-index: var(--z-toast);
  top: calc(var(--shell-top, 0px) + var(--sp-150)); left: 50%;
  translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-150);
  width: max-content;
  max-width: min(420px, calc(100vw - var(--sp-500)));
  pointer-events: none;
}
:is(:fullscreen, .fs-self) > #toasts { top: var(--sp-150); }
#toasts > * { pointer-events: auto; }

.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); }
.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; }

html[data-nav="drawer"] :is(.app.nav-open ~ #toasts > *, body:has(.app.nav-open) #toasts > *) { pointer-events: none; }

.toast {
  position: relative;
  border: none;
  border-radius: var(--r-l);
  box-shadow: var(--sh-overlay);
  padding: var(--sp-200);
  padding-right: var(--sp-500);
  min-width: 300px;
  background: linear-gradient(100deg,
              var(--acc-weak-2) 0%, var(--acc-weak) 30%, var(--card) 74%);
  opacity: 0; transform: translateY(calc(-1 * var(--sp-150)));
  transition: opacity .22s, transform .22s;
}
.toast.shown { opacity: 1; transform: none; }
.toast.good   { background: linear-gradient(100deg,
                var(--good-weak-2) 0%, var(--good-weak) 30%, var(--card) 74%); }
.toast.warn   { background: linear-gradient(100deg,
                var(--warn-weak-2) 0%, var(--warn-weak) 30%, var(--card) 74%); }
.toast.danger { background: linear-gradient(100deg,
                var(--danger-weak-2) 0%, var(--danger-weak) 30%, var(--card) 74%); }
.toast-title { font-family: var(--font-h); font-weight: var(--fw-bold);
               font-size: var(--fs); line-height: var(--lh); color: var(--ink); }
.toast.danger .toast-title { color: var(--danger-ink); }
.toast.warn .toast-title   { color: var(--warn-ink); }
.toast-text  { font-size: var(--fs-s); line-height: var(--lh-s); color: var(--ink2); margin-top: var(--sp-025); }
.toast-close {
  position: absolute;
  top: var(--sp-100);
  right: var(--sp-100);
}
.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%; }
.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(100vh - 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); }
.dialog-title, .dialog-actions { flex: none; }
/* 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 { 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[data-mob] .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 «Во весь экран» */
/* 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[data-mob] .panel-head:has(> .panel-backrow) { flex-wrap: wrap; row-gap: var(--sp-050); }
html[data-mob] .scrim.panel-scrim { --scrim-pad: 0px; place-items: stretch; }
html[data-mob] .panel:not(.fs-self):not(:fullscreen) { width: 100vw !important; max-width: none; height: 100dvh;
  padding-top: env(safe-area-inset-top, 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); }
.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%; }

.login {
  position: relative;
  display: grid; place-items: center; min-height: 100%; padding: var(--sp-300);
  background: var(--bg);
  overflow: hidden;
}
.login::before, .login::after {
  content: "";
  position: absolute; inset: -10%;
  z-index: 0;
  background:
    radial-gradient(46% 52% at 14% 8%, rgba(244, 204, 205, .85) 0%, rgba(244, 204, 205, 0) 68%),
    radial-gradient(50% 46% at 86% 4%, rgba(247, 233, 196, .80) 0%, rgba(247, 233, 196, 0) 68%),
    radial-gradient(52% 54% at 6% 92%, rgba(181, 224, 223, .80) 0%, rgba(181, 224, 223, 0) 68%),
    radial-gradient(48% 50% at 94% 88%, rgba(158, 214, 223, .78) 0%, rgba(158, 214, 223, 0) 68%),
    radial-gradient(70% 64% at 50% 58%, rgba(219, 221, 209, .55) 0%, rgba(219, 221, 209, 0) 68%);
  pointer-events: none;
}
[data-theme="dark"] .login::before, [data-theme="dark"] .login::after {
  background:
    radial-gradient(46% 52% at 14% 8%, rgba(76, 49, 51, .85) 0%, rgba(76, 49, 51, 0) 68%),
    radial-gradient(50% 46% at 86% 4%, rgba(78, 69, 45, .80) 0%, rgba(78, 69, 45, 0) 68%),
    radial-gradient(52% 54% at 6% 92%, rgba(32, 63, 64, .80) 0%, rgba(32, 63, 64, 0) 68%),
    radial-gradient(48% 50% at 94% 88%, rgba(17, 56, 63, .78) 0%, rgba(17, 56, 63, 0) 68%),
    radial-gradient(70% 64% at 50% 58%, rgba(58, 61, 54, .55) 0%, rgba(58, 61, 54, 0) 68%);
}

.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(214, 78, 92, 0.62) 0%, rgba(214, 78, 92, 0.62) 34%, rgba(214, 78, 92, 0.279) 58%, rgba(214, 78, 92, 0.093) 78%, rgba(214, 78, 92, 0.0) 100%); }
.login-orb-2 { background: radial-gradient(circle closest-side, rgba(232, 160, 40, 0.58) 0%, rgba(232, 160, 40, 0.58) 34%, rgba(232, 160, 40, 0.261) 58%, rgba(232, 160, 40, 0.087) 78%, rgba(232, 160, 40, 0.0) 100%); }
.login-orb-3 { background: radial-gradient(circle closest-side, rgba(28, 176, 170, 0.58) 0%, rgba(28, 176, 170, 0.58) 34%, rgba(28, 176, 170, 0.261) 58%, rgba(28, 176, 170, 0.087) 78%, rgba(28, 176, 170, 0.0) 100%); }
.login-orb-4 { background: radial-gradient(circle closest-side, rgba(24, 132, 176, 0.56) 0%, rgba(24, 132, 176, 0.56) 34%, rgba(24, 132, 176, 0.252) 58%, rgba(24, 132, 176, 0.084) 78%, rgba(24, 132, 176, 0.0) 100%); }
.login-orb-5 { background: radial-gradient(circle closest-side, rgba(168, 96, 168, 0.48) 0%, rgba(168, 96, 168, 0.48) 34%, rgba(168, 96, 168, 0.216) 58%, rgba(168, 96, 168, 0.072) 78%, rgba(168, 96, 168, 0.0) 100%); }

[data-theme="dark"] .login-orb-1 { background: radial-gradient(circle closest-side, rgba(142, 58, 68, 0.62) 0%, rgba(142, 58, 68, 0.62) 34%, rgba(142, 58, 68, 0.279) 58%, rgba(142, 58, 68, 0.093) 78%, rgba(142, 58, 68, 0.0) 100%); }
[data-theme="dark"] .login-orb-2 { background: radial-gradient(circle closest-side, rgba(136, 104, 40, 0.56) 0%, rgba(136, 104, 40, 0.56) 34%, rgba(136, 104, 40, 0.252) 58%, rgba(136, 104, 40, 0.084) 78%, rgba(136, 104, 40, 0.0) 100%); }
[data-theme="dark"] .login-orb-3 { background: radial-gradient(circle closest-side, rgba(28, 116, 116, 0.6) 0%, rgba(28, 116, 116, 0.6) 34%, rgba(28, 116, 116, 0.27) 58%, rgba(28, 116, 116, 0.09) 78%, rgba(28, 116, 116, 0.0) 100%); }
[data-theme="dark"] .login-orb-4 { background: radial-gradient(circle closest-side, rgba(18, 94, 122, 0.58) 0%, rgba(18, 94, 122, 0.58) 34%, rgba(18, 94, 122, 0.261) 58%, rgba(18, 94, 122, 0.087) 78%, rgba(18, 94, 122, 0.0) 100%); }
[data-theme="dark"] .login-orb-5 { background: radial-gradient(circle closest-side, rgba(92, 48, 98, 0.46) 0%, rgba(92, 48, 98, 0.46) 34%, rgba(92, 48, 98, 0.207) 58%, rgba(92, 48, 98, 0.069) 78%, rgba(92, 48, 98, 0.0) 100%); }

@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; }

.login-card {
  position: relative; z-index: 1;
  width: min(420px, 100%);
  padding: var(--sp-400) var(--sp-400) var(--sp-300);
  background: var(--card);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: 0 10px 28px rgba(28, 27, 24, .12), var(--sh-overlay);
}
[data-theme="dark"] .login-card {
  box-shadow: 0 10px 26px rgba(0, 0, 0, .34), var(--sh-overlay);
}
.login-brand { height: 52px; color: var(--ink); margin-bottom: var(--sp-100); } .login-brand svg { display: block; height: 100%; width: auto; }
.login-brand + .login-form { margin-top: var(--sp-300); }
.login-sub   { color: var(--ink2); margin: 0 0 var(--sp-300); font-size: var(--fs-l); }
.login-form  {
  display: flex; flex-direction: column; gap: var(--sp-200);
}

.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;
}
@media print { .theme-switch { display: none; } }

.print-text-root { display: none; }
@media print {
  body.printing-text > *:not(.print-text-root) { display: none !important; }
  .print-text-root {
    display: block;
    padding: 0; margin: 0;
    background: #fff; color: #000;
  }
  .print-text-head {
    margin-bottom: var(--sp-300);
    font-family: var(--font-head, inherit);
    font-size: var(--fs-h); font-weight: 700;
  }
  .print-text-body {
    margin: 0;
    font-family: inherit; font-size: 12pt; line-height: 1.45;
    white-space: pre-wrap; word-break: break-word;
  }
  @page { margin: 18mm 16mm; }
}

.login-note  { margin-top: var(--gap); padding-top: var(--sp-200);
               border-top: var(--bw) solid var(--line);
               font-size: var(--fs-s); color: var(--ink3); }

.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%;
  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); }
.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; }
.frame-move {
  position: fixed; z-index: var(--z-lift); pointer-events: none;
  background: var(--card); border: var(--bw) solid var(--line); box-shadow: var(--sh-overlay);
}
/* the sheet with the screen's picture (15.793): the page's ground, the picture scaled with the frame */
.frame-move.with-mockup { overflow: hidden; background: var(--bg); }
.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 */
.offer-url-row { padding-block: var(--sp-100); }
.offer-url-row > .offer-url { width: 100%; }
/* The watching report's summary (15.824): running text in a row group */
.offer-watch-summary { color: var(--ink); line-height: var(--lh); white-space: normal; text-wrap: pretty; }
/* 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 { display: grid; place-items: center; width: var(--sp-400); height: var(--sp-400); border-radius: 50%;
  background: var(--a-200); color: var(--ink2); }
.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)); }
/* 15.868 («снизу куча места осталась»): a phone's window has its own height — the replay fills its body to the bottom */
html[data-mob] .panel-body:has(> .orp) { display: flex; flex-direction: column; min-height: 0; }
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 */
.panel:is(:fullscreen, .fs-self):has(.orp) { background: var(--media-dark); }
.panel:is(:fullscreen, .fs-self):has(.orp) .panel-head { display: none; }
.panel:is(:fullscreen, .fs-self) .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-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(--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: var(--card);
  box-shadow: var(--sh-raised); transform-origin: center; }
.orp-page { display: block; width: 100%; height: 100%; border: 0; pointer-events: none; }
/* 15.958: the page and the hand zoomed together from the glass's corner; the zoom's chip; the hidden tab's veil */
.orp-view { position: absolute; inset: 0; transform-origin: 0 0; }
.orp-zoom { position: absolute; top: var(--sp-150); left: var(--sp-150); z-index: 2; gap: var(--sp-050); border: 0;
  background: var(--media-veil); color: var(--media-ink); }
.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.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); color: var(--acc-fg);
  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; }
.orp-said { position: absolute; left: 50%; bottom: var(--sp-200); z-index: 2; 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; }
.offer-card:hover { background: var(--a-200); }
.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); } }
.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 { grid-column: 1 / -1; }
.orp-page.oh-live { pointer-events: auto; }
.oh-side { display: flex; flex-direction: column; gap: var(--sp-300); min-height: 0; overflow: auto; }
.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; }
/* 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 { 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 { 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%; }

:is(.grid-rows, .kb-cards, .kb-row, .sflow, .rail-scroll, .side-shelf-body):is(
    [data-edge~="top"], [data-edge~="bottom"],
    [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, .kb-cards, .kb-row, .sflow, .rail-scroll, .side-shelf-body)[data-edge~="top"] {
  --fade-top: var(--fade);
}
:is(.grid-rows, .kb-cards, .kb-row, .sflow, .rail-scroll, .side-shelf-body)[data-edge~="bottom"] {
  --fade-bottom: var(--fade);
}
:is(.grid-rows, .kb-cards, .kb-row, .sflow, .rail-scroll, .side-shelf-body)[data-edge~="left"] {
  --fade-left: var(--fade);
}
:is(.grid-rows, .kb-cards, .kb-row, .sflow, .rail-scroll, .side-shelf-body)[data-edge~="right"] {
  --fade-right: var(--fade);
}
:is(.grid-rows, .kb-cards, .kb-row, .sflow, .rail-scroll, .side-shelf-body):has(.combo.open) {
  -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; }
.rail-group > .ic { flex: 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;
}
.rail-item.shine-fill { color: #FFFFFF; }
.rail-item.shine-fill:hover, .rail-item.shine-fill.active { color: #FFFFFF; }
.rail-shine { display: grid; }
.shine-glow.rail-shine { display: grid; }
.rail-shine {
  --shine-glow-inset: -5px;
  --shine-glow-inset-x: calc(var(--sp-150) * -1);
  --shine-glow-blur: 9px;
  --shine-glow-opacity: .5;
  --shine-glow-radius: calc(var(--shine-radius) + 5px);
}
.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); }
.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 {
  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;
          --pad-under: var(--sp-300);
          --pad-side: var(--sp-300);
          padding: var(--sp-300) var(--pad-side) var(--pad-under); }
.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; }
.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)) .grid-head { display: none; }
:is(.sgrid[data-cols="1"], html[data-mob] :is(.panel, .nd-page)) .grid-rows {
  max-height: none;
  min-width: 0;
}
:is(.sgrid[data-cols="1"], html[data-mob] :is(.panel, .nd-page)) .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)) .grid-row > * { min-width: 0; }
:is(.sgrid[data-cols="1"], html[data-mob] :is(.panel, .nd-page)) .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)) .grid-row > [data-label]::before {
  content: attr(data-label);
  font-size: var(--fs-s); line-height: var(--lh-s);
  color: var(--ink3);
}
:is(.sgrid[data-cols="1"], html[data-mob] :is(.panel, .nd-page)) .grid-row > .right {
  text-align: left;
}
:is(.sgrid[data-cols="1"], html[data-mob] :is(.panel, .nd-page)) .grid-row > .row-acts {
  justify-content: flex-start; padding-top: var(--sp-050);
}

html[data-mob] .sblock:not(.bare):not(.snums) { padding: var(--sp-200); }
html[data-mob] :is(.sblock:not(.bare), .panel-body) .grid-table {
  border: 0; border-radius: 0; background: none;
}
html[data-mob] :is(.sblock:not(.bare), .panel-body) .grid-table .grid-row {
  padding-inline: 0;
}

:root { --mob: 700px; --tap: 44px; }
@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 */
html[data-nav="drawer"] .app { grid-template-columns: minmax(0, 1fr);
                               grid-template-areas: "topbar" "knock" "screen"; }
/* 15.905 («убрать скругления, пусть открывается во всю высоту»): the drawer stands at the screen's left edge from its
   top to its bottom, square, a line on its right */
html[data-nav="drawer"] :is(.brand-cell, .rail) {
  position: fixed; left: 0;
  z-index: var(--z-drawer);
  width: min(82vw, 320px);
  transform: translateX(calc(-100% - var(--sp-500)));
  transition: transform .22s ease;
  display: flex;
  border: 0;
  border-right: var(--bw) solid var(--line);
  box-shadow: var(--sh-overlay);
}
html[data-nav="drawer"] .brand-cell {
  top: 0; height: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: grid;
  clip-path: inset(calc(-1 * var(--sp-500)) calc(-1 * var(--sp-500)) 0 calc(-1 * var(--sp-500)));
}
html[data-nav="drawer"] .rail {
  top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px)); bottom: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  clip-path: inset(0 calc(-1 * var(--sp-500)) calc(-1 * var(--sp-500)) calc(-1 * var(--sp-500)));
}
html[data-nav="drawer"] .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; }
html[data-nav="drawer"] .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;
}
html[data-nav="drawer"] .app.nav-open .nav-veil { opacity: 1; pointer-events: auto; }
html[data-nav="drawer"] .nav-burger { display: inline-flex; flex: none; }
html[data-nav="drawer"] :is(.rail-item, .rail-foot .btn) { min-height: var(--tap); }

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

  .screen { --pad-side: var(--sp-150);
            --pad-under: var(--pad-side);
            padding: var(--sp-200) 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; }

  .topbar { padding: 0 var(--sp-150); gap: var(--sp-100); }
  #inboxBtn { min-height: var(--tap); }

  .actrow .btn:has(> svg) > .btn-word { display: none; }
  .actrow .btn:has(> svg) { 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)); }

.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); }
.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-tile-arrow { display: inline-flex; }
.dash-card { min-width: 0; }
@media (min-width: 1180px) { .dash-card.wide { grid-column: span 2; } }
.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; }

.import-state {
  flex: 1 1 auto; color: var(--ink3); font-size: var(--fs-s);
}

.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; }

.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) { .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) { .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; }

[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; } }

.drawer-grip {
  position: absolute;
  top: 50%; left: calc(var(--tap) / -2);
  translate: 0 -50%;
  width: calc(var(--tap) / 2); height: calc(var(--tap) * 1.5);
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  background: var(--card);
  border: var(--bw) solid var(--line); border-right: none;
  border-radius: var(--r) 0 0 var(--r);
  box-shadow: var(--sh-raised);
  touch-action: none;
  z-index: 1;
}
.drawer-grip::before {
  content: "";
  width: 4px; height: var(--sp-300);
  border-radius: var(--r-xs);
  background: var(--ink3);
}

.float-hint {
  position: fixed; bottom: var(--sp-200); left: 50%; z-index: 4;
  translate: -50% 0;
  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;
}
.side-shelf.quarter { --shelf-w: max(320px, 25vw); }
.screen.shelf-moving { transition: transform .22s ease; }
@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; }
.side-shelf-body {
  flex: 1 1 auto; min-height: 0;
  overflow-x: hidden; overflow-y: auto;
  margin-inline: calc(var(--sp-300) * -1);
  padding-inline: var(--sp-300);
}
html[data-mob] .side-shelf { left: var(--float-gap); width: auto; }

.input-with-eye { position: relative; display: block; }
.input-with-eye .input { width: 100%; padding-right: calc(var(--h-btn) + var(--sp-050)); }
.input-eye {
  position: absolute;
  top: 50%; right: var(--sp-050);
  transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--h-btn-sm); height: var(--h-btn-sm);
  color: var(--ink3);
  background: none; border: none;
  border-radius: var(--r-s);
}
.input-eye svg { display: block; }

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

.import-card { padding: 0; overflow: hidden; }

.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; }

.import-head {
  display: flex; align-items: center; gap: var(--sp-150);
  width: 100%; padding: var(--sp-150) var(--gap);
  background: none; border: none; cursor: pointer; text-align: left;
}
.import-head:hover { background: var(--a-100); }
.import-t { font-weight: var(--fw-semi); }
.import-chev { display: inline-flex; color: var(--ink3); transition: transform .18s; }
.import-card.collapsed .import-chev { transform: rotate(-90deg); }
.import-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: var(--gap);
  padding: 0 var(--gap) var(--gap);
}
.import-card.collapsed .import-body { display: none; }
.import-area { font-family: var(--num); font-size: var(--fs-s); resize: vertical; }
.import-side { gap: var(--sp-075); }
.import-paste { width: 100%; }

.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; }
.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,
html[data-mob] .panel .grid-table > .grid-rows {
  max-height: min(56vh, 620px);
  overflow-y: auto;
}

@media (max-width: 700px) {
  .actrow:has(> .chip, > .actrow-err),
  .screen:is([data-edge~="top"], [data-edge~="bottom"]) .actrow:has(> .chip, > .actrow-err),
  .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 {
    flex: 1 0 100%;
    order: -1;
    max-width: none;
  }
}

.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 {
  left: calc(var(--act-edge) * -1); right: calc(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 .okv {
  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, .input-eye: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; }
.import-chev svg { width: 16px; height: 16px; }
.addrow { margin-top: var(--sp-050); }
.fcat .addrow { margin-top: var(--sp-075); }

textarea:not(.fixed), textarea.input:not(.fixed) {
  resize: vertical; min-height: 84px;
}

.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; }

.order-panel { padding: var(--sp-025) 0 var(--sp-150);
               display: flex; flex-direction: column; gap: var(--sp-300); }
.order-panel > section { display: flex; flex-direction: column; gap: var(--sp-200); }
.order-panel > section > .card-title + * { margin-top: 0; }
.order-panel > section + section {
  padding-top: var(--sp-300);
  border-top: var(--bw) solid var(--line);
}
.order-dash { color: var(--ink3); flex: none; }
.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) { .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) { .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: var(--sp-300);
  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; }
.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); }
  .snums.snums-pick { grid-template-columns: repeat(2, 1fr); }
  .snums.snums-pick > *:nth-child(2) { border-top: 0; }
  .snums.snums-pick > *:nth-child(even) { border-left: var(--bw) solid var(--line); }
}

.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); }
:root { --screen-room: calc((100dvh - var(--shell-top)) / var(--screen-zoom)); }

.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-fills-stack { display: flex; flex-direction: column; gap: var(--sp-100); min-width: 0; }
.kp-fills > .color-stops { display: contents; }
.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);
}

.swatch.stop-add, .kp-fill.stop-add {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  background: none;
  border: none;
  color: var(--ink3);
}
.stop-add svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.stop-add .stop-ring {
  stroke: var(--line2);
  stroke-width: calc(24 / var(--swatch-size, 28));
  stroke-linecap: butt;
  r: calc(12px - 12px / var(--swatch-size, 28));
  stroke-dasharray: .6 .4;
  stroke-dashoffset: .3;
}
.stop-add .stop-plus {
  transform: scale(calc(var(--glyph-size, 16) / var(--swatch-size, 28)));
  transform-origin: 12px 12px;
}

.kp-fill-none {
  background-image: linear-gradient(45deg,
    transparent calc(50% - 1px), var(--danger) calc(50% - 1px),
    var(--danger) calc(50% + 1px), transparent calc(50% + 1px));
}
.kp-fill-grey   { --fill-shown: #ECECE9; }
.kp-fill-stone  { --fill-shown: #E6E8EA; }
.kp-fill-accent { --fill-shown: #E7F0EB; }
.kp-fill-mint   { --fill-shown: #E4F0E8; }
.kp-fill-sand   { --fill-shown: #FBF0D5; }
.kp-fill-peach  { --fill-shown: #FBEBDD; }
.kp-fill-sky    { --fill-shown: #E4EEF6; }
.kp-fill-teal   { --fill-shown: #DFEEEE; }
.kp-fill-rose   { --fill-shown: #F7E8EA; }

.kp-fill.kp-line-green { --fill-shown: #1E5B44; }
.kp-fill.kp-line-ink   { --fill-shown: #2E2C27; }
.kp-fill.kp-line-grey  { --fill-shown: #8C887E; }
.kp-fill.kp-line-amber { --fill-shown: #A8741C; }
.kp-fill.kp-line-blue  { --fill-shown: #245D96; }
.kp-fill.kp-line-rose  { --fill-shown: #A03A5C; }
.kp-fill.kp-line-plum  { --fill-shown: #6A4A93; }
.kp-fill-lilac  { --fill-shown: #EDE8F6; }
.kp-fill-olive  { --fill-shown: #EDEFDC; }
.kp-fill.kp-line-olive { --fill-shown: #5F7028; }
.kp-fill.kp-line-clay  { --fill-shown: #8F4526; }
.kp-fill.kp-line-steel { --fill-shown: #45596F; }

: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; }

.rate-flow { display: flex; flex-direction: column; }
.rate-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  grid-auto-rows: minmax(132px, 1fr);
  gap: var(--sp-150);
  align-content: stretch;
  height: 100%;
}
.rate-card {
  display: flex; flex-direction: column; gap: var(--sp-025);
  padding: var(--sp-100);
  background: var(--a-100);
  border: var(--bw) solid var(--line);
  border-radius: var(--r);
  min-width: 0; min-height: 0;
  overflow: hidden;
}
.rate-top { display: flex; align-items: center; gap: var(--sp-100);
            justify-content: space-between; }
.rate-name { font-size: var(--fs-s); color: var(--ink2); min-width: 0;
             white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rate-now { display: flex; align-items: baseline; gap: var(--sp-050); }
.rate-now b { font-size: var(--fs-num); font-weight: var(--fw-bold);
              line-height: 1.1; color: var(--ink); }
.rate-move { display: flex; align-items: center; gap: var(--sp-075);
             flex-wrap: wrap; color: var(--ink3); }
.rate-move.up   { color: var(--good-ink); }
.rate-move.down { color: var(--danger-ink); }
.rate-spark { display: flex; flex: 1 1 auto; min-height: 12px;
              margin-top: var(--sp-025); }
.rate-spark > .chart { height: 100%; }

.rate-foot { display: flex; flex-direction: column; gap: 0;
             margin-top: auto; padding-top: var(--sp-025); }

/* 15.684: the licence card is built of the hero and the row groups; only its lock tile and texts are its own. */
.lic-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--sp-600); height: var(--sp-600); flex: none;
  border-radius: var(--r-full);
  background: var(--acc-weak);
  color: var(--acc-ink);
}
.lic-note > .rg-hero .rg-sub { color: var(--acc-ink); font-weight: var(--fw-med); }
.lic-text { color: var(--ink); line-height: var(--lh-l); }
.lic-text.lic-now { color: var(--ink2); }
.lic-acts { display: flex; justify-content: center; }

.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);
}
.lic-whole > .lic-note { width: min(560px, 100%); }

.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;
}
.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;
}
.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 > :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; }
.stage > .scene-name {
  position: absolute;
  top: calc(var(--sp-200) + var(--stage-top-bar, var(--h-btn)) + var(--sp-150));
  left: calc(var(--sp-150) + var(--stage-cover-left, 0px));
  z-index: 2;
  max-width: calc(100% - var(--sp-150) * 2 - var(--stage-cover, 0px) - var(--stage-cover-left, 0px));
  font-size: var(--fs-l);
}
.stage > .scene-name .title-field-text { font-weight: var(--fw-reg); }
.stage > .scene-name .title-field-view,
.stage > .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; }
