.theme-toggle.btn{width:40px;min-width:40px;height:40px;padding:9px;border-radius:12px;display:inline-grid;place-items:center;
  color:var(--text);background:var(--raise);box-shadow:0 2px 5px #0000000a}
.theme-toggle svg{width:22px;height:22px}
::view-transition-old(root),::view-transition-new(root){animation:none;mix-blend-mode:normal}
::view-transition-new(root){z-index:1}::view-transition-old(root){z-index:0}
.profile-theme{display:flex;align-items:center;justify-content:space-between;gap:12px}
.mobile-profile .mobile-more__body{display:grid;gap:12px;padding:16px}
.mobile-profile .mobile-more__body .hq-header-stats,.mobile-profile .profile-theme{box-sizing:border-box;height:48px;padding:3px 8px;border:1px solid var(--line);border-radius:12px;min-width:0}
.mobile-profile .mobile-more__body .hq-header-stats{justify-content:flex-start;flex-wrap:nowrap;gap:2px}
.mobile-profile .mobile-more__body .hq-header-metric{flex:0 1 auto;min-width:40px;height:36px;min-height:36px;padding:0 4px;gap:4px}
.mobile-profile .mobile-more__body .hq-header-metric>span{min-width:1ch;text-align:center}
.mobile-profile .mobile-more__body .hq-header-clock{flex:none;margin-left:auto;height:36px;min-height:36px;padding:0 8px}
.mobile-profile .profile-theme .theme-toggle{width:36px;min-width:36px;height:36px;min-height:36px;padding:7px}
.mobile-profile .profile-settings{margin:0;padding:12px;border:1px solid var(--line);border-radius:12px}
.mobile-profile .profile-settings h2:first-child{margin-top:0}
.profile-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.profile-links>.btn{min-width:0;white-space:nowrap}
.profile-save-row{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.profile-save-row [data-act="notices-save"]{order:0;width:100%}
.profile-save-row [data-notice-status]{order:1;min-width:0;overflow-wrap:anywhere;font-size:12px}
.profile-save-row [data-notice-status]:empty{display:none}
.mobile-profile[open]{display:flex;flex-direction:column;height:auto;max-height:calc(var(--hq-viewport-height,100dvh) - 24px)}
.mobile-profile .mobile-more__head{flex:none}
.mobile-profile .mobile-more__body{min-height:0;overflow:auto;overscroll-behavior:contain;align-content:start}
.mobile-profile [data-profile-notices]:has(>h2){animation:profile-content-in 180ms ease-out both}
.btn.btn--danger{color:var(--chip-red-tx);border-color:var(--chip-red-tx);background:var(--bg)}
.btn.btn--danger:hover{background:var(--chip-red-bg)}
.mobile-profile .mobile-more__body [data-profile-logout]{margin-left:0}
.mobile-profile .mobile-more__head h2{display:flex;align-items:center;gap:8px}
.profile-person-emoji{width:32px;height:32px;flex:none;font-size:26px;line-height:32px;object-fit:contain;text-align:center}
.profile-confirm{padding:20px;border:1px solid var(--line);border-radius:14px;background:var(--bg);color:var(--text);width:min(360px,calc(100% - 32px))}
.profile-confirm::backdrop{background:#0006}
.profile-confirm h2{font-size:17px;margin:0 0 18px}.profile-confirm .actions{justify-content:flex-end}
.profile-settings{margin:16px 0;border-top:1px solid var(--line);padding-top:14px}
.profile-settings h2{font-size:13px;margin:16px 0 8px}
.profile-settings .permrow{font-size:13px;padding:8px 0;display:flex;align-items:center;gap:9px}
.profile-settings input[type=checkbox]{width:18px;min-height:18px;height:18px;flex:none;accent-color:var(--text)}
.profile-settings .muted{font-size:12px;line-height:1.5}
@media(max-width:980px){
  .mobile-dock{overflow:visible}
  .mobile-dock>button{flex:1 1 0;padding:0;min-height:40px}
  .mobile-dock__face>svg{width:23px;height:23px}
  .mobile-search{position:absolute;z-index:4;left:5px;right:calc((100% - 10px)/var(--dock-count) + 5px);bottom:5px;
    transform-origin:right center;animation:mobile-search-open .25s cubic-bezier(.22,.7,.2,1)}
  .mobile-search form{display:flex;align-items:center;height:40px;border-radius:999px;background:var(--bg);border:1px solid var(--text2);overflow:hidden}
  .mobile-search input{min-width:0;flex:1;width:100%;height:100%;padding:0 14px;border:0;outline:0;background:transparent;color:var(--text);font:inherit;font-size:16px}
  .mobile-search input::-webkit-search-cancel-button{display:none}
  .mobile-search.is-closing{animation:mobile-search-close .2s ease-in forwards;pointer-events:none}
  .mobile-search form button{flex:0 0 40px;height:40px;font-size:23px;color:var(--text)}
  .mobile-search:focus-within form{outline:2px solid var(--text2);outline-offset:1px}
  .mobile-search-results:not(:empty){position:absolute;bottom:50px;left:0;right:0;max-height:45dvh;overflow:auto;overscroll-behavior:contain;
    background:var(--bg);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:10px;color:var(--text);font-size:13px}
  .mobile-search-results .results{position:static;max-height:none;box-shadow:none;border:0;min-width:0}
  .mobile-search-results .ritem{white-space:normal;overflow-wrap:anywhere;padding:10px 4px;border-radius:6px;font-size:13px;line-height:1.5}
  .mobile-search-results .ritem__m{font-size:12px}
  :root[data-keyboard=true] .mobile-dock.is-searching{display:flex;bottom:auto;top:calc(var(--hq-viewport-top,0px) + var(--hq-viewport-height,100dvh) - 60px)}
  .mobile-profile{max-height:calc(var(--hq-viewport-height,100dvh) - 24px);width:min(440px,calc(100% - 24px))}
  .mobile-profile .theme-toggle{width:44px;height:44px;min-width:44px}
}
.profile-workspaces{display:flex;gap:8px;flex-wrap:wrap}
.profile-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.profile-sections .btn{min-width:0;white-space:normal}
@media(min-width:981px){.profile-sections [data-profile-section]{display:none}}
.profile-workspaces .btn{flex:1;white-space:nowrap}
.profile-workspaces .btn[aria-pressed=true]{background:var(--text);color:var(--bg);border-color:var(--text)}
@keyframes mobile-search-open{from{clip-path:inset(0 0 0 calc(100% - 40px) round 24px)}to{clip-path:inset(0 0 0 0 round 24px)}}
@keyframes mobile-search-close{from{clip-path:inset(0 0 0 0 round 24px)}to{clip-path:inset(0 0 0 calc(100% - 40px) round 24px)}}
@media(prefers-reduced-motion:reduce){.mobile-search{animation:none}}
@media(prefers-reduced-motion:no-preference){
 /* ⚠️ Одно движение, как у раскрытия панели навигации: 450 мс и та же
    кривая (п. 316). Второй анимации — доращивания высоты после ответа
    сервера — больше нет: содержимое приезжает до открытия. */
 .mobile-profile[open]{animation:profile-enter var(--rail-open-ms,450ms) var(--rail-ease,cubic-bezier(.22,1,.36,1)) both}
 .mobile-profile[open]::backdrop{animation:profile-backdrop-in var(--rail-open-ms,450ms) var(--rail-ease,cubic-bezier(.22,1,.36,1)) both}
 .mobile-profile.is-closing::backdrop{animation:profile-backdrop-out var(--rail-close-ms,350ms) var(--rail-ease,cubic-bezier(.22,1,.36,1)) both}
}
@media(prefers-reduced-motion:reduce){.mobile-profile [data-profile-notices]{animation:none}}
@keyframes profile-enter{from{opacity:0;transform:translateY(18px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes profile-content-in{from{opacity:0}to{opacity:1}}
@keyframes profile-backdrop-in{from{opacity:0}to{opacity:1}}
@keyframes profile-backdrop-out{from{opacity:1}to{opacity:0}}
.screen.is-routing{opacity:.65;transition:opacity 140ms ease-out}
.crm-route-progress{position:fixed;right:16px;bottom:84px;z-index:40;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:var(--bg);color:var(--text2);font-size:12px;box-shadow:var(--shadow);pointer-events:none}
@media(prefers-reduced-motion:reduce){.screen.is-routing{transition:none}}

.notice-channels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.profile-save-row{grid-template-columns:repeat(2,minmax(0,1fr))}
.profile-save-row [data-notice-status]{grid-column:1/-1}
