/* Общая «оболочка» и палитра пространств Eventer — как в Таскере (iOS, Liquid Glass).
   Тему ставит shell.js атрибутом data-theme на <html>. */
:root {
  --sh-bg: #F2F2F7; --sh-card: #FFFFFF; --sh-fill: rgba(120,120,128,.12);
  --sh-sheet-rgb: 255,255,255; --sh-glass-rgb: 250,250,252; --sh-hl: rgba(255,255,255,.9); --sh-hl2: rgba(255,255,255,.35); --sh-edge: rgba(0,0,0,.06);
  --sh-shadow: 0 8px 32px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.06); --sh-label: #000; --sh-label2: rgba(60,60,67,.6);
  --sh-label3: rgba(60,60,67,.3); --sh-sep: rgba(60,60,67,.14);
  /* бренд (docs/23-brand.md): лайм – заливки с тёмным текстом; текст и линии акцентом – --sh-tint-ink
     (в светлой теме лайм на белом не читается, контраст 1,3 – поэтому оливковый #4F6B00: 6,1 на белом, 5,5 на фоне) */
  --sh-tint: #C6F432; --sh-tint-ink: #4F6B00; --sh-on-tint: #111311; --sh-green: #34C759; --sh-red: #FF3B30; --sh-orange: #FF9500; --sh-purple: #AF52DE;
  --sh-safe-b: max(env(safe-area-inset-bottom), var(--tg-safe-area-inset-bottom, 0px));
  --sh-tint-rgb: 198,244,50; --sh-logo-stub: #111311; --sh-logo-hole: var(--sh-bg);
  --sh-safe-t: calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px));
}
:root[data-theme="dark"] {
  --sh-bg: #111311; --sh-card: #1D201D; --sh-fill: rgba(120,128,120,.24);  /* графит бренда, карточки – на тон светлее */
  --sh-sheet-rgb: 29,32,29; --sh-glass-rgb: 38,41,38; --sh-hl: rgba(255,255,255,.28); --sh-hl2: rgba(255,255,255,.08); --sh-edge: rgba(0,0,0,.4);
  --sh-shadow: 0 8px 32px rgba(0,0,0,.5); --sh-label: #fff; --sh-label2: rgba(235,235,245,.6); --sh-label3: rgba(235,235,245,.3);
  --sh-tint-rgb: 198,244,50; --sh-logo-stub: #F4F2EA; --sh-logo-hole: var(--sh-bg);
  --sh-sep: rgba(84,84,88,.5); --sh-tint: #C6F432; --sh-tint-ink: #C6F432; --sh-green: #30D158; --sh-red: #FF453A; --sh-orange: #FF9F0A; --sh-purple: #BF5AF2;
}

.sh-glass { background: linear-gradient(180deg, rgba(var(--sh-glass-rgb), calc(var(--sh-ga, .42) + .08)), rgba(var(--sh-glass-rgb), var(--sh-ga, .42)));
  -webkit-backdrop-filter: blur(var(--sh-gb, 22px)) saturate(180%) brightness(1.04); backdrop-filter: blur(var(--sh-gb, 22px)) saturate(180%) brightness(1.04);
  box-shadow: inset 0 1px .5px var(--sh-hl), inset 0 -1px .5px var(--sh-hl2), inset 0 0 0 .5px var(--sh-hl2), 0 0 0 .5px var(--sh-edge), var(--sh-shadow); }

/* переключатель пространств (тема — в «Модули» → «Настройки»).
   Ширина пункта — по тексту (иначе «Календарь» не влезает), последний пункт — «Модули» одной иконкой. */
.ws-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--sh-safe-b) + 12px); z-index: 20; display: flex; gap: 8px; align-items: center; max-width: 640px; margin: 0 auto; padding: 0 16px;
  transition: transform .3s cubic-bezier(.3,1,.4,1), opacity .2s; }  /* разделы – внизу (28.10), подразделы – вверху */
html.typing .ws-bar, body.dragging .ws-bar { transform: translateY(calc(100% + 40px)); opacity: 0; pointer-events: none; }
.ws-gap { height: calc(var(--sh-safe-t) + 18px); pointer-events: none; }  /* место сверху: у страниц с подразделами – под их меню */
html.has-dock .ws-gap { height: calc(var(--sh-safe-t) + 88px); }
.ws { position: relative; flex: 1; min-width: 0; display: flex; padding: 3px; border-radius: 99px; touch-action: pan-x; -webkit-touch-callout: none;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  transition: transform .3s cubic-bezier(.3,1.5,.6,1); }
.ws.drag { transform: scale(1.03); }
.ws.fits { overflow: visible; }  /* влезает целиком – пузырь линзы выходит за края меню (shell.js) */
.ws::-webkit-scrollbar { display: none; }
.ws-i { flex-shrink: 0 !important; }  /* не сжимаем — лучше прокрутка, чем обрезанное «Подрядчики» */
.ws-i { flex: 1 1 auto; position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; padding: 7px 7px; border-radius: 99px;
  font: 600 13px -apple-system, "SF Pro Text", sans-serif; letter-spacing: -.1px; white-space: nowrap; color: var(--sh-label2);
  background: none; border: 0; cursor: pointer; transition: color .3s; -webkit-user-select: none; user-select: none; }
.ws-i.on { color: var(--sh-label); }
.ws-i svg { width: 19px; height: 19px; }
.ws-set { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; padding: 0; border: 0; cursor: pointer; color: var(--sh-label);
  transition: color .4s ease, transform .3s cubic-bezier(.3,1.6,.5,1); }
.ws-set svg { width: 21px; height: 21px; }
.ws-set:active { transform: scale(.92); }
.ws-set.on { color: var(--sh-tint-ink); }
.ws-set svg { transition: transform .5s cubic-bezier(.3,1.5,.45,1); }
.ws-set.on svg { transform: rotate(90deg); }
/* нажатие: оборот с перехлёстом; кончается на 450° = 90° – как у горящей шестерёнки на странице Настроек, рывка нет */
.ws-set.ws-spin svg { animation: ws-gear-spin .6s cubic-bezier(.3,1,.4,1) forwards; }  /* свой класс, не .spin: в Таскере .spin – крутилка загрузки 12 px, шестерёнка сжималась и падала (31.10) */
.ws-set.on.ws-spin svg { animation-name: ws-gear-spin-on; }
@keyframes ws-gear-spin { 0% { transform: rotate(0); } 70% { transform: rotate(480deg); } 100% { transform: rotate(450deg); } }
@keyframes ws-gear-spin-on { 0% { transform: rotate(90deg); } 70% { transform: rotate(540deg); } 100% { transform: rotate(450deg); } }
@media (prefers-reduced-motion: reduce) { .ws-set.ws-spin svg { animation: none; } }  /* загорается – чуть проворачивается, как от толчка втёкшей линзы */
.ws .shl { transition: opacity .25s ease; }
.ws.none .shl { transition: opacity .35s ease; }  /* открыли Настройки – линза плавно гаснет на месте (30.10: раньше летела к первому пункту) */
.ws.none .shl:not(.lift) { opacity: 0; }  /* в Настройках линза в меню не стоит ни на одном пункте */
.ws-i:not(.on) { color: color-mix(in srgb, var(--sh-label) 78%, transparent); }  /* серые иконки на стекле казались размытыми */

/* Переход между пространствами. View Transitions между страницами отключены (20.10): на iPhone снимки стеклянных панелей
   по нескольку секунд показывались размытыми полосами. Теперь: панели сверху и снизу стоят на месте, линза едет пружиной
   от прежнего пункта (shell.js), уезжает и въезжает только содержимое. */
/* старая страница уезжает, новая въезжает с той же стороны – кроме панелей */
@keyframes ws-out-r { to { opacity: 0; transform: translateX(-28px); } }
@keyframes ws-out-l { to { opacity: 0; transform: translateX(28px); } }
@keyframes ws-in-r { from { opacity: 0; transform: translateX(36px); } }
@keyframes ws-in-l { from { opacity: 0; transform: translateX(-36px); } }
/* свайп между подразделами (shell.js, swipeFlip): содержимое едет за пальцем, панели стоят */
html.sw-nav body > :not(.ws-bar):not(.dock) { transform: translateX(var(--swx, 0)); }
html.sw-back body > :not(.ws-bar):not(.dock) { transition: transform .3s cubic-bezier(.3,1.4,.5,1); }
html.ws-out-r body > :not(.ws-bar):not(.dock) { animation: ws-out-r .16s ease-in forwards; }
html.ws-out-l body > :not(.ws-bar):not(.dock) { animation: ws-out-l .16s ease-in forwards; }
html.ws-in-r body > :not(.ws-bar):not(.dock) { animation: ws-in-r .4s cubic-bezier(.2,.9,.3,1); }
html.ws-in-l body > :not(.ws-bar):not(.dock) { animation: ws-in-l .4s cubic-bezier(.2,.9,.3,1); }
/* пришли с другого раздела – содержимое скрыто, пока не появится, потом один раз въезжает (shell.js) */
html.ws-wait body > :not(.ws-bar):not(.dock) { opacity: 0; }
/* меню сверху проявляется вместе с содержимым, а не раньше (30.10): до появления – стоп-кадр в начале анимации */
html.ws-wait .dock-morph, html.ws-wait .dock-morph > * { animation-play-state: paused !important; }
/* Cross-document View Transitions: переход между страницами – старый экран держится, пока новый не отрисован.
   Меню (нижнее и верхнее) – свои группы, стоят на месте; содержимое: новое въезжает со стороны ws-dir (класс vt-r/vt-l ставит shell.js).
   Старое не гасим (фон страницы входит в снимок, при двух полупрозрачных слоях был бы тёмный провал) – новое проявляется поверх. */
@view-transition { navigation: auto; }
/* имена меню – только на время перехода (html.vt-nav, shell.js): элемент с view-transition-name отрезает стекло от страницы,
   и backdrop-filter меню переставал размывать текст под ним (31.10) */
html.vt-nav .ws-bar { view-transition-name: ws-bar; }
html.vt-nav .dock { view-transition-name: ws-dock; }
::view-transition-group(root) { animation-duration: .28s; animation-timing-function: cubic-bezier(.2,.9,.3,1); }
::view-transition-old(root), ::view-transition-new(root) { mix-blend-mode: normal; animation-duration: .28s; animation-timing-function: cubic-bezier(.2,.9,.3,1); }
::view-transition-group(ws-bar), ::view-transition-group(ws-dock) { animation-duration: .01s; }
@keyframes vt-in-r { from { opacity: 0; transform: translateX(36px); } 60% { opacity: 1; } }
@keyframes vt-in-l { from { opacity: 0; transform: translateX(-36px); } 60% { opacity: 1; } }
html.vt-r::view-transition-new(root) { animation-name: vt-in-r; }
html.vt-l::view-transition-new(root) { animation-name: vt-in-l; }
html.vt-r::view-transition-old(root), html.vt-l::view-transition-old(root) { animation: none; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
/* смена вкладки нижнего меню (Shell.tabIn): содержимое въезжает с той стороны, куда переключили */
.tab-in-r { animation: ws-in-r .4s cubic-bezier(.2,.9,.3,1); }
.tab-in-l { animation: ws-in-l .4s cubic-bezier(.2,.9,.3,1); }
/* смена темы без View Transitions — мягкое затухание цветов; с ними — круг из точки нажатия (свою анимацию задаёт shell.js) */
html.theme-fade, html.theme-fade * { transition: background-color .4s, color .4s, border-color .4s, fill .4s !important; }
html.vt-theme::view-transition-old(root), html.vt-theme::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.vt-theme::view-transition-group(*) { animation: none; }
/* пока круг расходится, цвета не плавают: у пунктов меню, переключателей и прочего свои переходы цвета (.35 с) – без этого
   внутри круга они ещё полсекунды тянулись из старой темы, и текст выглядел блёклым (31.10) */
html.vt-theme *, html.vt-theme *::before, html.vt-theme *::after { transition: none !important; }

/* нижнее меню */
.dock { position: fixed; left: 0; right: 0; top: calc(var(--sh-safe-t) + 10px); display: flex; justify-content: center; padding: 0 16px; pointer-events: none; z-index: 30; transition: transform .3s cubic-bezier(.3,1,.4,1), opacity .2s; }
html.typing .dock { transform: translateY(calc(-100% - 40px)); opacity: 0; pointer-events: none; }
.tabs { position: relative; display: flex; border-radius: 34px; padding: 4px; pointer-events: auto; flex: 1; max-width: 360px; touch-action: none; -webkit-touch-callout: none; transition: transform .3s cubic-bezier(.3,1.5,.6,1); }
.tabs.drag { transform: scale(1.04); }
/* круглая кнопка рядом с меню (Shell.dock side) – переход на соседнюю страницу со своим меню (CRM ↔ Агентство) */
.dock:has(.dock-side) { gap: 10px; }
.dock-side { flex: none; width: 62px; height: 62px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  pointer-events: auto; padding: 0; border: 0; cursor: pointer; color: var(--sh-tint-ink); font: 600 9px -apple-system, sans-serif; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.dock-side svg { width: 24px; height: 24px; }
.dock-side:active { transform: scale(.88); }
html.compact-labels .dock-side span { display: none; }
.dock-act svg { width: 28px; height: 28px; }
.dock-act { position: fixed; right: 16px; bottom: calc(var(--sh-safe-b) + 72px); }  /* «+» – над меню разделов, под большим пальцем (28.10) */
.dock-side[hidden] { display: none; }
/* кнопка соседней страницы в шапке справа (Shell.topSide) – как шестерёнка сверху */
.top-side { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; padding: 0; border: 0; cursor: pointer; color: var(--sh-tint-ink);
  transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.top-side svg { width: 22px; height: 22px; }
.top-side:active { transform: scale(.88); }
/* подписи – как у меню: в подробном режиме кнопка – капсула со значком и словом, в компактном – круг с одним значком */
.top-side span { display: none; }
html:not(.compact-labels) .top-side:has(span) { width: auto; display: flex; align-items: center; gap: 6px; padding: 0 16px 0 13px; border-radius: 99px; font: 600 15px -apple-system, sans-serif; }
html:not(.compact-labels) .top-side span { display: inline; }
/* выбор в шапке рядом с заголовком (год в Итогах) – такая же стеклянная капсула, как кнопки шапки,
   а сам список – системный, прозрачный поверх капсулы: тап открывает обычный выбор */
.top-pick { position: relative; flex: none; height: 44px; display: flex; align-items: center; gap: 4px; padding: 0 12px 0 16px; border-radius: 99px;
  color: var(--sh-label); font: 600 17px -apple-system, sans-serif; cursor: pointer; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.top-pick svg { width: 16px; height: 16px; color: var(--sh-label2); }
.top-pick select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.top-pick:active { transform: scale(.94); }
.top-pick:has(select:focus-visible) { outline: 2px solid var(--sh-tint-ink); outline-offset: 2px; }
/* смена меню: при уходе старое сжимается и гаснет, на новой странице меню проявляется из капли, у кнопки сменяется значок */
html.dock-out .dock .tabs { animation: dock-out .16s ease-in forwards; }
.dock .tabs.dock-in { animation: dock-in .5s cubic-bezier(.3,1.35,.5,1) both; }
.dock-side.dock-in:not(.dock-act) > * { animation: dock-ico .45s cubic-bezier(.3,1.6,.5,1) both; }  /* «+» и «Поделиться» – без анимации (26.10) */
/* смена раздела: капсула перетекает из формы прежнего меню (shell.js dockMorph), пункты проявляются чуть позже */
.dock-morph > :not(.shl) { animation: dock-tab-in .42s cubic-bezier(.2,.9,.3,1) .1s both; }
.dock-morph > .shl, .dock-morph > .lens { animation: dock-tab-in .3s ease .14s both; }
/* то же меню по ширине, другой набор пунктов: капсула проявляется из капли (shell.js dockMorph) */
.dock-appear { animation: dock-appear .55s cubic-bezier(.3,1.35,.5,1) both; }
@keyframes dock-appear { from { opacity: 0; transform: scale(.82); filter: blur(8px); } }
/* шестерёнка – вместе с верхним меню (shell.js gearIn): из капли, как меню, или чуть позже, как его пункты */
.ws-set.ws-set-in { animation: dock-appear .55s cubic-bezier(.3,1.35,.5,1) both; }
.ws-set.ws-set-pop { animation: dock-tab-in .42s cubic-bezier(.2,.9,.3,1) .1s both; }
html.ws-wait .ws-set:is(.ws-set-in, .ws-set-pop) { animation-play-state: paused !important; }
.dock-morph > :nth-child(n+3):not(.shl) { animation-delay: .16s; }
.dock-morph > :nth-child(n+4):not(.shl) { animation-delay: .21s; }
.dock-morph > :nth-child(n+5):not(.shl) { animation-delay: .26s; }
.dock-morph > :nth-child(n+6):not(.shl) { animation-delay: .31s; }
@keyframes dock-tab-in { from { opacity: 0; transform: scale(.85); } }
@keyframes dock-out { to { opacity: 0; transform: scale(.94); filter: blur(4px); } }
@keyframes dock-in { from { opacity: 0; transform: scale(.9); filter: blur(6px); } }
/* «+» справа от меню: появляется из точки, пропадает сжимаясь (shell.js setAction) */
.dock-act.dock-act-in { animation: dock-act-in .45s cubic-bezier(.3,1.5,.5,1) both; }
.dock-act-out { z-index: 31; animation: dock-act-out .22s ease-in forwards; }
@keyframes dock-act-in { from { opacity: 0; transform: scale(.3); } }
@keyframes dock-act-out { to { opacity: 0; transform: scale(.3); } }
@keyframes dock-ico { from { opacity: 0; transform: scale(.5) rotate(-20deg); } }
@media (prefers-reduced-motion: reduce) { .ws-set.ws-set-in, .ws-set.ws-set-pop, .dock-appear, .dock-morph > *, .dock .tabs.dock-in, .dock-side.dock-in > *, html.dock-out .dock .tabs, .dock-act.dock-act-in, .dock-act-out { animation: none; } }
.tab { flex: 1; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px 6px; border-radius: 28px; font: 600 10px -apple-system, sans-serif; color: var(--sh-label); background: none; border: 0; cursor: pointer; transition: color .35s; -webkit-user-select: none; user-select: none; }
.tab svg { width: 24px; height: 24px; }
.tab.on { color: var(--sh-tint-ink); }
.tab.on svg { animation: sh-pop .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes sh-pop { 0% { transform: scale(1); } 40% { transform: scale(1.22) translateY(-1px); } 100% { transform: scale(1); } }

/* Линза (как в Таскере): обычно — светлая плашка под выбранным пунктом. Тап и удержание — плашка поднимается
   прозрачным пузырём, как в iOS 27 (31.10): сквозь него видно меню и страницу, пункты под ним увеличены (сами пункты
   под пузырём shell.js гасит маской, чтобы не двоились), белый блик по кромке – ярче сверху слева и снизу справа,
   у самой кромки иконка расходится на оттенки цвета темы (преломление: лайм и соседние по кругу тона), мягкая тень снизу. --s: 0 — плашка, 1 — пузырь. */
.shl { position: absolute; left: 0; z-index: 0; border-radius: 99px; overflow: hidden; pointer-events: none; transform-origin: 50% 50%; will-change: transform, width;
  background: linear-gradient(180deg, rgba(var(--sh-glass-rgb), calc(.55 * (1 - var(--s, 0)))), rgba(var(--sh-glass-rgb), calc(.25 * (1 - var(--s, 0)))));
  box-shadow: inset 0 1px .5px var(--sh-hl), inset 0 0 0 .5px var(--sh-hl2), 0 2px 10px rgba(0,0,0,.08); }
.tabs .shl { top: 4px; bottom: 4px; border-radius: 28px; }
.ws .shl { top: 3px; bottom: 3px; }
:root[data-theme="dark"] .shl { background: linear-gradient(180deg, rgba(255,255,255, calc(.16 * (1 - var(--s, 0)))), rgba(255,255,255, calc(.07 * (1 - var(--s, 0))))); }
/* поднятый пузырь – почти прозрачный: чуть светлее того, что под ним, и с тенью, будто приподнят над меню.
   Селектор сильнее тёмной темы выше. */
:root .tabs .shl.lift, :root .ws .shl.lift { z-index: 2;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255, calc(var(--s, 0) * .1)), rgba(255,255,255, calc(var(--s, 0) * .03)) 60%, rgba(255,255,255, calc(var(--s, 0) * .06)));
  box-shadow: 0 calc(var(--s, 0) * 8px) calc(var(--s, 0) * 22px) rgba(0,0,0, calc(var(--s, 0) * .22)); }
/* кромка: тонкая светлая линия по краю, блик сверху и снизу, лёгкий цветной отсвет по бокам */
.shl::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; opacity: var(--s, 0);
  box-shadow: inset 0 0 0 .7px rgba(255,255,255,.45), inset 0 1.8px 1.2px rgba(255,255,255,.7), inset 0 -1.6px 1.2px rgba(255,255,255,.35),
    inset 4px 0 6px color-mix(in srgb, var(--sh-tint) 16%, transparent), inset -4px 0 6px color-mix(in srgb, var(--sh-tint) 12%, transparent), inset 0 0 14px rgba(255,255,255,.07), 0 0 0 .5px rgba(0,0,0,.18); }
/* блик бежит по кромке: ярко сверху слева и снизу справа, по бокам почти гаснет (как у стекла Apple) */
.shl::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.4px; pointer-events: none; z-index: 3; opacity: calc(var(--s, 0) * .9);
  background: conic-gradient(from 0deg, rgba(255,255,255,.15) 0deg, rgba(255,255,255,.05) 70deg, rgba(255,255,255,.5) 125deg, rgba(255,255,255,.95) 145deg, rgba(255,255,255,.4) 170deg,
    rgba(255,255,255,.05) 230deg, rgba(255,255,255,.5) 300deg, rgba(255,255,255,.95) 320deg, rgba(255,255,255,.4) 345deg, rgba(255,255,255,.15) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); filter: blur(.5px); }
.shl-c, .shl-rim { position: absolute; top: 0; height: 100%; pointer-events: none; opacity: var(--s, 0); }
.shl-rim { left: 0; right: 0; z-index: 1; opacity: calc(var(--s, 0) * .7); -webkit-mask: radial-gradient(closest-side, transparent 66%, #000 96%); mask: radial-gradient(closest-side, transparent 66%, #000 96%); }
.shl-c { will-change: transform; }
.shl-c > * { position: absolute; top: 0; height: 100%; margin: 0; box-sizing: border-box; color: inherit !important; animation: none !important; }
.shl-main { z-index: 0; color: var(--sh-label); }
/* расхождение – в цветах темы: сам цвет акцента и два соседних тона по кругу (у лайма – тёплый жёлтый и холодный зелёный).
   Сменится акцент – сменится и преломление. В светлой теме – от тёмного варианта акцента (--sh-tint-ink), иначе не видно */
.shl-r, .shl-g, .shl-b { --rf: var(--sh-tint); mix-blend-mode: screen; }
:root:not([data-theme="dark"]) :is(.shl-r, .shl-g, .shl-b) { --rf: var(--sh-tint-ink); mix-blend-mode: multiply; opacity: calc(var(--s, 0) * .55); }
.shl-r { color: var(--rf); color: oklch(from var(--rf) l c calc(h + 38)); }
.shl-g { color: var(--rf); }
.shl-b { color: var(--rf); color: oklch(from var(--rf) l c calc(h - 38)); }

/* Пространства с нижним меню (Календарь, Ивенты, CRM, Модули — класс ставит Shell.dock). Карточки матовые, как в iOS (24.10):
   стекло – только у меню, кнопок и листов, иначе всё сливалось. Цветные пятна на фоне убраны (20.10). Таскер оформлен сам. */
.sh-amb main .group, .sh-amb main .kpi, .sh-amb main .ev, .sh-amb main .card, .sh-amb main .rolecard {
  background: var(--sh-card); -webkit-backdrop-filter: none; backdrop-filter: none; border-color: transparent; box-shadow: none; }
/* кнопки-плитки и круглые кнопки – стекло, прозрачность из настроек */
.sh-amb main .act, .sh-amb .round {
  background: linear-gradient(180deg, rgba(var(--sh-glass-rgb), calc(var(--sh-ga, .42) + .2)), rgba(var(--sh-glass-rgb), calc(var(--sh-ga, .42) + .08)));
  -webkit-backdrop-filter: blur(var(--sh-gb, 20px)) saturate(170%); backdrop-filter: blur(var(--sh-gb, 20px)) saturate(170%); border-color: transparent;
  box-shadow: inset 0 1px .5px var(--sh-hl), inset 0 -1px .5px var(--sh-hl2), inset 0 0 0 .5px var(--sh-hl2), 0 6px 22px rgba(0,0,0,.08); }
.sh-amb main .group .item, .sh-amb main .group .lead, .sh-amb main .group .card { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* Синие кнопки действий – как в iOS 27 (26.10): цветное стекло – синяя капсула с бликом сверху, светлой кромкой внутри
   и тонкой тёмной обводкой снаружи. Плотность – от ползунка «Стекло» в Настройках (--sh-ga): прозрачнее стекло – прозрачнее
   и кнопка, фон под ней просвечивает. Одно правило на все разделы: «+» у меню, «+» Таскера, .btn.p, .sh-gl.tint и обычная .btn
   там, где она синяя (в Ивентах и Настройках обычная .btn – серая, у них на body .btn-plain). Так же – выбранный чип
   (пилюля .pk-pill в Таскере), выбранный день в Календаре и главная кнопка Календаря. */
:root :is(.dock-act, .fab, .btn.p, .sh-gl.tint:not(.tg), .pk-pill, #v-calendar .dsel:not(.lift), #v-calendar .gbtn.main),
:root body:not(.btn-plain) .btn:not(.g):not(.no):not(.ok):not(.tg):not(.sh-gl) {
  --ta: calc(.4 + var(--sh-ga, .42) * .64);
  color: var(--sh-on-tint) !important; border: 0 !important;
  background: radial-gradient(120% 90% at 50% -15%, rgba(255,255,255,.3), rgba(255,255,255,0) 58%),
    linear-gradient(180deg, rgba(var(--sh-tint-rgb), calc(var(--ta) + .08)), rgba(var(--sh-tint-rgb), var(--ta))) !important;
  -webkit-backdrop-filter: blur(var(--sh-gb, 22px)) saturate(190%); backdrop-filter: blur(var(--sh-gb, 22px)) saturate(190%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.5), inset 0 -1px 1.5px rgba(255,255,255,.2), inset 0 0 0 .5px rgba(255,255,255,.26),
    0 0 0 .5px rgba(0,0,0,.3), 0 8px 24px rgba(var(--sh-tint-rgb), .3) !important; }
:root :is(.dock-act, .fab) { color: var(--sh-on-tint) !important; }
/* «+» висит над списком – прозрачнее остальных лаймовых кнопок и с лёгким размытием: текст под ним просвечивает (01.11) */
:root :is(.dock-act, .fab) { --ta: calc(.2 + var(--sh-ga, .42) * .4) !important;  /* !important: правило выше сильнее из-за #v-calendar в списке */
  -webkit-backdrop-filter: blur(8px) saturate(170%) !important; backdrop-filter: blur(8px) saturate(170%) !important; }
/* стеклянная кнопка или поле (iOS 26): .sh-gl – нейтральное стекло, .sh-gl.tint – цветное (--c, по умолчанию лайм; свой --c – белый текст) */
.sh-gl { background: rgba(var(--sh-glass-rgb), .5) !important; -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%); border: 0 !important;
  box-shadow: inset 0 1px .5px var(--sh-hl), inset 0 0 0 .5px var(--sh-hl2), 0 6px 18px rgba(0,0,0,.16); }
.sh-gl.tint { color: var(--sh-on-tint) !important; background: linear-gradient(180deg, color-mix(in srgb, var(--c, var(--sh-tint)) 88%, #fff), color-mix(in srgb, var(--c, var(--sh-tint)) 74%, transparent)) !important;
  box-shadow: inset 0 1px .5px rgba(255,255,255,.55), inset 0 0 0 .5px rgba(255,255,255,.25), inset 0 -1px 2px rgba(0,0,0,.12), 0 8px 22px color-mix(in srgb, var(--c, var(--sh-tint)) 35%, transparent); }
.sh-gl.tint[style*="--c:"] { color: #fff !important; }  /* свой цвет кнопки (Telegram, роли) – текст белый */
.sh-gl:focus { box-shadow: inset 0 0 0 1.5px var(--sh-tint), 0 6px 18px rgba(0,0,0,.16); }
/* поля со стеклом – тоже матовые (24.10): стекло только у кнопок и меню */
:is(input, textarea).sh-gl:not(.tint) { background: var(--sh-fill) !important; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
:is(input, textarea).sh-gl:not(.tint):focus { box-shadow: inset 0 0 0 1.5px var(--sh-tint), 0 0 0 4px color-mix(in srgb, var(--sh-tint) 18%, transparent); }
/* выпадающие списки – без системного вида (на iPhone он серый и выбивается), своя стрелка; в стекле – тоже */
:root select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238E8E93' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px !important; }
select.sh-gl { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238E8E93' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E"), linear-gradient(var(--sh-fill), var(--sh-fill)) !important; background-repeat: no-repeat !important; background-position: right 14px center, 0 0 !important; background-size: 16px, 100% 100% !important;
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
/* поля в разделах и листах – матовые серые, как в iOS (24.10): поле – содержимое, а не меню, и стекло на стеклянной карточке выбивалось.
   Цвет фона отдельно, чтобы у выпадающих списков осталась своя стрелка */
.sh-amb :is(main, .sheet) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]), textarea, select):not(.sh-gl) {
  background-color: var(--sh-fill); border-color: transparent; border-radius: 14px; box-shadow: none; transition: box-shadow .2s; }
.sh-amb :is(main, .sheet) :is(input, textarea, select):not(.sh-gl):focus { box-shadow: inset 0 0 0 1.5px var(--sh-tint), 0 0 0 4px color-mix(in srgb, var(--sh-tint) 18%, transparent); }
/* время и дата в листах и формах: на iPhone системное поле шире колонки и с текстом по центру – лист из-за него
   уезжал вбок (26.10). Без системного вида поле занимает ширину колонки, текст – слева, как в остальных полях */
:is(.sheet, .field) input:is([type=time], [type=date], [type=datetime-local]) { -webkit-appearance: none; appearance: none; min-width: 0; max-width: 100%; min-height: 46px; }
:is(.sheet, .field) input::-webkit-date-and-time-value { text-align: left; }
.sh-amb .sheet { overflow-x: hidden; }
/* открыта клавиатура – лист стоит над ней (--sh-kb ставит shell.js), а не уходит под неё */
.sh-amb .sheet { margin-bottom: var(--sh-kb, 0px); max-height: calc(100% - 50px - var(--sh-kb, 0px)); transition-property: transform, margin-bottom, max-height; }
/* незаполненное обязательное поле (shell.js) */
.sh-bad { box-shadow: inset 0 0 0 1.5px var(--sh-red), 0 0 0 4px color-mix(in srgb, var(--sh-red) 20%, transparent) !important; animation: sh-shake .35s; }
@keyframes sh-shake { 25% { translate: -4px 0; } 75% { translate: 4px 0; } }
.sh-tip { position: fixed; left: 50%; bottom: calc(var(--sh-safe-b) + 96px); translate: -50% 0; z-index: 90; padding: 10px 16px; border-radius: 99px; font-size: 14px; color: var(--sh-label); animation: sh-tip .25s ease-out; }
@keyframes sh-tip { from { opacity: 0; translate: -50% 10px; } }
/* листы снизу – стеклянные, как в Таскере: фон просвечивает, светлая кромка сверху */
.sh-amb .sheet { background: rgba(var(--sh-sheet-rgb), .86); -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%);
  box-shadow: inset 0 1px .5px var(--sh-hl), inset 0 0 0 .5px var(--sh-hl2), 0 -4px 40px rgba(0,0,0,.25); }

/* Переключатель как в iOS 27 (по видео 26.10). Дорожка 62×28, белая капсула. Нажал – капсула раздувается в крупную
   прозрачную линзу (выше дорожки), сквозь неё видно дорожку, светлая кромка с бликами и тонкая тёмная обводка;
   линзу можно вести пальцем – зелёная заливка идёт за ней. Отпустил – линза пружиной встаёт на край и снова белеет.
   Положение – --sh-p: 0 выключен, 1 включён (shell.js: при ведении ставит --sh-p сам, анимирует её через registerProperty; не --p – это имя занято ползунками-диапазонами).
   Обычный <input type="checkbox"> shell.js оборачивает в .sh-sw сам. */
.sh-sw { --sh-p: 0; position: relative; flex: none; display: inline-block; width: 62px; height: 28px; border-radius: 99px; vertical-align: middle;
  background: rgba(120,120,128,.16); touch-action: pan-y; -webkit-tap-highlight-color: transparent;
  transition: --sh-p .55s cubic-bezier(.3,1.3,.45,1); }
:root[data-theme="dark"] .sh-sw { background: rgba(120,120,128,.36); }
.sh-sw:has(input:checked) { --sh-p: 1; }
.sh-sw.drag { transition: none; }
.sh-sw input { position: absolute; inset: -6px; width: calc(100% + 12px) !important; height: calc(100% + 12px) !important; margin: 0; padding: 0;
  opacity: 0; cursor: pointer; z-index: 2; -webkit-appearance: none; appearance: none; }
/* зелёная заливка – до правого края капсулы, едет вместе с ней */
.sh-sw b { position: absolute; inset: 0; border-radius: inherit; background: var(--sh-green); pointer-events: none;
  opacity: calc(var(--sh-p) * 3); clip-path: inset(0 calc((1 - var(--sh-p)) * 23px) 0 0 round 99px); }
.sh-sw i { position: absolute; top: 2px; left: 2px; width: 37px; height: 24px; border-radius: 99px; background: #fff; pointer-events: none; z-index: 1;
  transform: translateX(calc(var(--sh-p) * 21px));
  box-shadow: 0 3px 8px rgba(0,0,0,.16), 0 1px 1px rgba(0,0,0,.1), 0 0 0 .5px rgba(0,0,0,.04);
  transition: width .32s cubic-bezier(.3,1.4,.5,1), scale .4s cubic-bezier(.3,1.5,.45,1), background .3s, box-shadow .3s,
    -webkit-backdrop-filter .3s, backdrop-filter .3s; }
/* браузер без registerProperty – --sh-p не анимируется, анимируем сам сдвиг */
html:not(.sh-prop) .sh-sw i { transition: transform .5s cubic-bezier(.3,1.45,.45,1), width .32s cubic-bezier(.3,1.4,.5,1), scale .4s cubic-bezier(.3,1.5,.45,1), background .3s, box-shadow .3s; }
html:not(.sh-prop) .sh-sw.drag i { transition: width .32s, scale .4s, background .3s, box-shadow .3s; }
/* нажатие: линза шире и заметно выше дорожки, прозрачная, со светлой кромкой и бликами сверху и снизу */
.sh-sw.press i { width: 44px; transform: translateX(calc(var(--sh-p) * 14px)); scale: 1.26 1.62;
  background: rgba(255,255,255,.07); -webkit-backdrop-filter: blur(1.5px) saturate(160%) brightness(1.12); backdrop-filter: blur(1.5px) saturate(160%) brightness(1.12);
  box-shadow: inset 0 0 0 .6px rgba(255,255,255,.6), inset 0 1.6px 1.2px rgba(255,255,255,.75), inset 0 -1.4px 1.2px rgba(255,255,255,.4),
    inset 0 0 6px rgba(255,255,255,.12), 0 0 0 .6px rgba(0,0,0,.42), 0 5px 14px rgba(0,0,0,.24); }
.sh-sw:has(input:disabled) { opacity: .45; }
@media (prefers-reduced-motion: reduce) { .sh-sw, .sh-sw i { transition: none !important; } .sh-sw.press i { scale: 1.1 1.2; } }
/* Ползунок как в iOS 26 (31.10): синяя полоса до белой капсулы. Нажал – капсула раздувается в прозрачную линзу,
   сквозь неё видна полоса; ведёшь – линза едет за пальцем, отпустил – снова белеет. Тап по полосе – ручка переезжает туда.
   Положение – --sh-v от 0 до 1 (shell.js). Обычный <input type="range"> shell.js оборачивает в .sh-rg сам (кроме [data-native]). */
.sh-rg { --sh-v: .5; position: relative; display: block; flex: 1; min-width: 0; height: 28px; touch-action: pan-y; -webkit-tap-highlight-color: transparent; cursor: pointer; }
.sh-rg input { position: absolute; inset: 0; width: 100% !important; height: 100% !important; margin: 0; padding: 0; opacity: 0; pointer-events: none; -webkit-appearance: none; appearance: none; }
.sh-rg b { position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; pointer-events: none;
  background: linear-gradient(90deg, var(--sh-tint) calc(19px + var(--sh-v) * (100% - 38px)), var(--sh-fill) 0); }
.sh-rg i { position: absolute; top: 2px; left: calc(var(--sh-v) * (100% - 38px)); width: 38px; height: 24px; border-radius: 99px; background: #fff; pointer-events: none;
  box-shadow: 0 3px 8px rgba(0,0,0,.16), 0 1px 1px rgba(0,0,0,.1), 0 0 0 .5px rgba(0,0,0,.04);
  transition: left .45s cubic-bezier(.3,1.3,.45,1), scale .4s cubic-bezier(.3,1.5,.45,1), background .3s, box-shadow .3s, -webkit-backdrop-filter .3s, backdrop-filter .3s; }
.sh-rg.drag i { transition: scale .4s cubic-bezier(.3,1.5,.45,1), background .3s, box-shadow .3s, -webkit-backdrop-filter .3s, backdrop-filter .3s; }
/* нажатие: линза, как у переключателя */
.sh-rg.press i { scale: 1.45 1.6; background: rgba(255,255,255,.07);
  -webkit-backdrop-filter: blur(1.5px) saturate(160%) brightness(1.12); backdrop-filter: blur(1.5px) saturate(160%) brightness(1.12);
  box-shadow: inset 0 0 0 .6px rgba(255,255,255,.6), inset 0 1.6px 1.2px rgba(255,255,255,.75), inset 0 -1.4px 1.2px rgba(255,255,255,.4),
    inset 0 0 6px rgba(255,255,255,.12), 0 0 0 .6px rgba(0,0,0,.42), 0 5px 14px rgba(0,0,0,.24); }
.sh-rg:has(input:focus-visible) i { outline: 2px solid var(--sh-tint); outline-offset: 2px; }
.sh-rg:has(input:disabled) { opacity: .45; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .sh-rg i { transition: none !important; } .sh-rg.press i { scale: 1.1 1.2; } }

/* строки с подписью: переключатель справа, как в настройках iPhone */
.check:has(.sh-sw) { align-items: center !important; }
.check .sh-sw { order: 2; margin-left: auto; }
.check:has(.sh-sw) > span:not(.sh-sw) { flex: 1; }

/* свайп по строке */
.sw-wrap { position: relative; overflow: hidden; }
[data-swipe] { position: relative; touch-action: pan-y; }
[data-swipe].sw-move { transition: none; }
[data-swipe].sw-snap { transition: transform .38s cubic-bezier(.25,1.1,.4,1); }
.sw-act { position: absolute; top: 0; bottom: 0; left: calc(100% + 8px); display: flex; gap: 6px; }
.sw-act span { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #fff; font: 600 12px -apple-system, sans-serif; overflow: hidden; white-space: nowrap; transition: flex .25s; cursor: pointer; }
.sw-act svg { width: 21px; height: 21px; flex: none; }
.sw-full .sw-act { gap: 0; } .sw-full .sw-act span:not(:first-child) { flex: 0; }
.sw-act span { border-radius: var(--sw-r, 18px); }  /* каждая кнопка – скруглённая, как карточка */

/* Роли: категории с подписью сверху (не сворачиваются) и выбор одной специализации. */
.rp-picker { display: grid; gap: 12px; margin: 12px 0; }
.rp-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.rp-sec { display: grid; gap: 8px; }
.rp-h { margin: 4px 6px 0; font-size: 13px; text-transform: uppercase; letter-spacing: .3px; color: var(--sh-label2); }
.rp-choice { position: relative; min-width: 0; cursor: pointer; }
.rp-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rp-choice > span { position: relative; display: flex; align-items: center; gap: 9px; min-height: 56px; padding: 11px; border-radius: 18px;
  background: var(--sh-fill); box-shadow: inset 0 0 0 1.5px transparent; transition: transform .25s cubic-bezier(.3,1.5,.5,1), background .3s, box-shadow .3s; color: var(--sh-label); font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.rp-tile { width: var(--s,30px); height: var(--s,30px); border-radius: calc(var(--s,30px) * .29); color: #fff; display: inline-grid; place-items: center; flex: none;  /* плашка роли, как .ic.tile в Настройках */
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 85%, #fff), var(--c)); box-shadow: inset 0 1px .5px rgba(255,255,255,.45), 0 2px 6px color-mix(in srgb, var(--c) 30%, transparent); }
.rp-tile svg { width: calc(var(--s,30px) * .6); height: calc(var(--s,30px) * .6); }
.rp-t { min-width: 0; -webkit-hyphens: auto; hyphens: auto; }  /* длинное слово – с переносом «Контент-мейкер», а не «Контентмейке р» */
.rp-choice:active > span { transform: scale(.96); }
.rp-choice input:checked + span { background: color-mix(in srgb, var(--c) 16%, var(--sh-fill)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 75%, transparent); }
.rp-choice input:checked + span .rp-tile { animation: rp-pop .5s cubic-bezier(.3,1.5,.5,1); }
.rp-ok { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--c);
  box-shadow: 0 0 0 2px var(--sh-card), 0 2px 6px color-mix(in srgb, var(--c) 40%, transparent); transform: scale(0); transition: transform .35s cubic-bezier(.3,1.5,.5,1); }
.rp-ok svg { width: 12px; height: 12px; }
.rp-choice input:checked + span .rp-ok { transform: scale(1); }
@keyframes rp-pop { 0% { transform: scale(1); } 45% { transform: scale(1.18); } 100% { transform: scale(1); } }
/* Настройки: блок выбора раскрывается по высоте, карточки выезжают каскадом; плашка в строке «Роль» меняется с эффектом */
.rp-wrap { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .35s cubic-bezier(.3,.8,.3,1), opacity .3s; }
.rp-wrap.open { grid-template-rows: 1fr; opacity: 1; }
.rp-wrap > .rp-in { min-height: 0; overflow: hidden; padding: 8px; margin: -8px; }  /* поле под значок-галочку и подпрыгивание, иначе обрежет */
.rp-wrap.cascade .rp-choice { animation: rp-in .4s cubic-bezier(.3,.8,.3,1) backwards; animation-delay: calc(var(--i,0) * 25ms + 80ms); }
@keyframes rp-in { from { opacity: 0; transform: translateY(10px); } }
.rp-swap-out { animation: rp-out .2s ease-in forwards; }
.rp-swap-in { animation: rp-jump .55s cubic-bezier(.3,1.5,.5,1) backwards; }
.rp-fade { animation: rp-fadein .4s ease backwards; }
@keyframes rp-out { to { transform: scale(.5); opacity: 0; } }
@keyframes rp-jump { from { transform: scale(.3) rotate(-25deg); opacity: 0; } 60% { transform: scale(1.15) rotate(6deg); opacity: 1; } to { transform: none; } }
@keyframes rp-fadein { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rp-wrap, .rp-ok, .rp-choice > span { transition: none; } .rp-choice input:checked + span .rp-tile, .rp-wrap.cascade .rp-choice, .rp-swap-out, .rp-swap-in, .rp-fade { animation: none; } }
.rp-choice input:focus-visible + span { outline: 2px solid var(--sh-label); outline-offset: 2px; }
.rp-custom label { display: grid; gap: 7px; font-size: 14px; }
.rp-custom input { width: 100%; min-height: 44px; }
.rp-custom[hidden] { display: none; }

/* Компактный режим (Настройки, 22.10) – для тех, кто уже освоил приложение: в меню и переключателях только иконки,
   поясняющие тексты (подсказки, подписи под заголовками, легенды) скрыты. Ошибки (.bad) и то, что помечено .keep, – видны. */
/* подписи – по html.compact-labels: он ставится сразу, а html.compact – когда тексты досхлопывались (shell.js applyCompact) */
html.compact-labels .tabs .tab:has(svg) { font-size: 0 !important; gap: 0 !important; justify-content: center; padding-top: 6px; padding-bottom: 6px; }  /* меню вытянуто по круглой кнопке рядом – иконка по центру */
html.compact-labels .tabs .tab:has(svg) svg { width: 26px; height: 26px; }
.tabs .tab:has(svg) { transition: color .35s, font-size .3s cubic-bezier(.3,.8,.3,1), gap .3s; }
.tabs .tab svg { transition: width .3s cubic-bezier(.3,.8,.3,1), height .3s cubic-bezier(.3,.8,.3,1); }

/* Размеры меню поменяны местами (29.10): разделы внизу – крупные, на всю ширину; подразделы вверху – компактные, иконка над подписью,
   справа от них – шестерёнка (fixed сверху справа, на одной линии с меню). Стоит после правил выше и таскера (.dock .tab сильнее .tab). */
.ws { padding: 4px; }
/* пункт – иконка над подписью (меню ~58 px); в минимализме подпись сворачивается, иконка по центру */
.ws-i { flex-direction: column; gap: 2px; padding: 5px 10px; min-height: 50px; font-size: 11.5px; line-height: 14px; }
.ws-i svg { width: 24px; height: 24px; transition: width .3s cubic-bezier(.3,.8,.3,1), height .3s cubic-bezier(.3,.8,.3,1); }
.ws-t { max-height: 14px; overflow: hidden; transition: max-height .3s cubic-bezier(.3,.8,.3,1), opacity .25s; }
.ws-i { transition: color .3s, gap .3s; }
html.compact-labels .ws-i { gap: 0; }
html.compact-labels .ws-i svg { width: 26px; height: 26px; }
html.compact-labels .ws-t { max-height: 0; opacity: 0; }
.ws-set { position: fixed; top: calc(var(--sh-safe-t) + 10px); right: 16px; width: 48px; height: 48px; }
.ws-set svg { width: 23px; height: 23px; }
/* сам .ws-bar при печати не двигаем (иначе fixed-шестерёнка прыгнет вместе с ним): уезжает меню, а шестерёнка гаснет вместе с панелью */
html.typing .ws-bar, body.dragging .ws-bar { transform: none; }
html.typing .ws, body.dragging .ws { transform: translateY(calc(100% + 40px)); }
html .dock { padding-right: 74px; }  /* справа место под шестерёнку: 16 + 48 + 10 */
.dock .tabs { padding: 3px; border-radius: 99px; }
.dock .tab { flex-direction: column; justify-content: center; gap: 1px; padding: 5px 1px 4px; border-radius: 99px; font-size: 10px; min-width: 0; }
.dock .tab-t { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock .tab svg { width: 20px; height: 20px; }
html.compact-labels .dock .tab:has(svg) { font-size: 0 !important; gap: 0 !important; padding-top: 6px; padding-bottom: 6px; }
html.compact-labels .dock .tab:has(svg) svg { width: 24px; height: 24px; }
.dock .dock-side:not(.dock-act) { width: 48px; height: 48px; }
.dock .dock-side:not(.dock-act) span { display: none; }
.dock .dock-side:not(.dock-act) svg { width: 22px; height: 22px; }
.dock-act, .fab { bottom: calc(var(--sh-safe-b) + 84px) !important; }  /* «+» – над крупным меню разделов */
html.has-dock .ws-gap { height: calc(var(--sh-safe-t) + 76px); }
html.compact :is(.hint, .foot, .ppl-hint, .legend, .sub):not(.bad):not(.keep) { display: none !important; }

/* Плашка «Аккаунт будет удалён» (shell.js, deleteBanner) */
.del-banner { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin: 0 16px 10px; padding: 10px 14px; border-radius: 16px;
  background: color-mix(in srgb, var(--sh-red) 14%, var(--sh-card, transparent)); color: var(--sh-label); font-size: 14px; line-height: 1.3; }
.del-banner button { flex: none; border: 0; border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 600; background: var(--sh-red); color: #fff; cursor: pointer; }

/* чипы ролей при двух ролях (решение 30.10): Таскер, Календарь, Ивенты */
.role-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 4px 12px; }
.role-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 7px 10px; border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--sh-label); background: var(--sh-fill); transition: opacity .2s, transform .2s cubic-bezier(.3,1.5,.5,1); }
.role-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px var(--c); transition: background .2s; }
.role-chip[aria-pressed="false"] { opacity: .5; }
.role-chip[aria-pressed="false"] i { background: transparent; }
.role-chip:active { transform: scale(.94); }

/* заставка при входе – браслет-билет (shell.js, splash). Фон – графит бренда, в светлой теме – светлый (shell.js задаёт сам, 01.11) */
.sh-splash { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: #111311; transition: opacity .3s ease; }
.sh-splash svg { overflow: visible; }  /* падающий корешок уходит ниже картинки – не обрезать */
.sh-splash.out { opacity: 0; pointer-events: none; }
.sh-logo { display: block; width: auto; max-width: 100%; }

/* подсказки при первом входе (shell.js, coach): затемнение проявляется на месте, карточка-лист, лаймовая обводка того, о чём шаг */
.sh-coach { position: fixed; inset: 0; z-index: 95; animation: sh-coach-in .25s ease-out; }
.sh-coach.out { opacity: 0; transition: opacity .2s; }
@keyframes sh-coach-in { from { opacity: 0; } }
.sh-coach-dim { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.sh-coach-card { --sh-ga: .82; display: block; position: absolute; left: 16px; right: 16px; top: 0; max-width: 420px; margin: 0 auto; padding: 16px 18px 14px; border-radius: 26px; color: var(--sh-label); box-shadow: var(--sh-shadow); overflow: hidden;
  transition: top .45s cubic-bezier(.3,1.15,.5,1), height .34s cubic-bezier(.3,1,.5,1); }
.sh-coach-probe { position: absolute; left: 0; width: 0; top: calc(var(--sh-safe-t) + 96px); bottom: calc(var(--sh-safe-b) + 140px); visibility: hidden; pointer-events: none; }
.sh-coach-card[hidden] { display: none; }
.sh-coach-card.enter { animation: sh-coach-enter .34s cubic-bezier(.3,1.3,.5,1) both; }
.sh-coach-card.from-top.enter { animation-name: sh-coach-enter-up; }
@keyframes sh-coach-enter { from { opacity: 0; transform: translateY(18px) scale(.95); } }
@keyframes sh-coach-enter-up { from { opacity: 0; transform: translateY(-18px) scale(.95); } }
/* текст шага: старый уходит вверх и гаснет, новый въезжает снизу */
.sh-coach-body { transition: opacity .26s ease, transform .32s cubic-bezier(.3,1.2,.5,1); }
.sh-coach-body.out { opacity: 0; transform: translateY(-8px); transition: opacity .14s ease, transform .14s ease; }
.sh-coach-body.pre { opacity: 0; transform: translateY(10px); transition: none; }
.sh-coach-card b { display: block; font-size: 17px; margin: 8px 0 4px; }
.sh-coach-card p { margin: 0; font-size: 15px; line-height: 1.4; color: var(--sh-label2); }
/* индикатор шага: активная точка вытягивается в лаймовую полоску, соседняя плавно сжимается обратно */
.sh-coach-dots { display: flex; gap: 5px; } .sh-coach-dots[hidden] { display: none; }
.sh-coach-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--sh-fill); transition: width .38s cubic-bezier(.3,1.4,.5,1), background-color .3s ease; }
.sh-coach-dots i.on { width: 18px; background: var(--sh-tint); }
.sh-coach-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.sh-coach-btns button { border: 0; border-radius: 99px; padding: 9px 18px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.sh-coach-skip { background: transparent; color: var(--sh-label2); transition: opacity .2s; }
.sh-coach-skip.gone { opacity: 0; pointer-events: none; }
.sh-coach-next { background: var(--sh-tint); color: var(--sh-on-tint); }
/* обводка переезжает от шага к шагу, появляется – сжимаясь к цели, и всё время мягко пульсирует */
.sh-coach-ring { position: absolute; pointer-events: none; border: 2.5px solid var(--sh-tint); transition: left .35s cubic-bezier(.3,1.2,.5,1), top .35s cubic-bezier(.3,1.2,.5,1), width .35s cubic-bezier(.3,1.2,.5,1), height .35s cubic-bezier(.3,1.2,.5,1), border-radius .35s;
  animation: sh-coach-pulse 1.6s ease-in-out infinite; }
.sh-coach-ring.in { animation: sh-coach-ring-in .35s cubic-bezier(.3,1.3,.5,1), sh-coach-pulse 1.6s ease-in-out .35s infinite; }
@keyframes sh-coach-ring-in { from { opacity: 0; transform: scale(1.25); } }
@keyframes sh-coach-pulse { 0%, 100% { box-shadow: 0 0 10px rgba(198,244,50,.35); } 50% { box-shadow: 0 0 26px 3px rgba(198,244,50,.6); } }
.sh-coach-ring.gone { opacity: 0; transition: opacity .15s; }
@media (prefers-reduced-motion: reduce) { .sh-coach-ring, .sh-coach-ring.in, .sh-coach-card.enter { animation: none; } .sh-coach-card, .sh-coach-body, .sh-coach-dots i { transition: none; } }
