/* Телефон (до 760): правила прототипа v72 (.mp-*), рамка-макет заменена настоящим экраном (.mpx). */
.mp{position:relative;height:min(844px,calc(100vh - 110px));aspect-ratio:390/844;border-radius:48px;background:#0c0c0f;box-shadow:0 0 0 10px #1c1c21,0 0 0 11px #2c2c33,0 50px 120px -30px #000;overflow:hidden;display:flex;flex-direction:column;font-family:var(--font-ui);container-type:size}
.mp-home{flex:1;min-height:0;overflow-y:auto;padding:8px 16px 170px;display:flex;flex-direction:column;gap:10px;scrollbar-width:none;background:radial-gradient(rgba(255,255,255,.05) 1px,transparent 1.3px) 0 0/18px 18px}
.mp-home::-webkit-scrollbar{display:none}
.mp-greet{display:flex;flex-direction:column;gap:3px;padding:10px 4px 8px}
.mp-greet b{font-size:22px;font-weight:600;letter-spacing:-.01em}
.mp-greet span{font-size:12.5px;color:var(--text-4)}
.mp-greet em{font-style:normal;color:#f7c870;font-weight:600}
.mp-notif{display:flex;align-items:center;gap:12px;height:58px;padding:0 14px 0 12px;border-radius:18px;background:#f6dca4;border:1px solid rgba(255,236,190,.55);color:#2a1d08;text-align:left;box-shadow:0 16px 40px -22px rgba(246,220,164,.35)}
.mp-notif b{flex:1;font-size:15px;font-weight:600}
.mp-notif i{font-style:normal;min-width:24px;height:24px;border-radius:12px;background:#f0a52f;color:#2a1d08;font:700 12px var(--font-ui);display:grid;place-items:center;padding:0 6px}
.mp-notif .mp-ri{background:rgba(42,29,8,.08);color:#2a1d08}
.mp-quiet{padding:6px 4px;font-size:13px;color:var(--text-4)}
.mp-voice{display:flex;align-items:center;gap:12px;min-height:62px;padding:10px 12px;border-radius:18px;background:var(--bg-2);border:1px solid var(--line);text-align:left}
.mp-vt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.mp-vt b{font-size:15px;font-weight:600}
.mp-vt small{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mp-vt small i{width:7px;height:7px;border-radius:50%;background:#6fd08f;flex:none}
.mp-va{display:flex}
.mp-va .av{width:24px;height:24px;border-radius:8px;font-size:10px;margin-left:-5px;box-shadow:0 0 0 2px var(--bg-2);opacity:.6}
.mp-va .vin .av{opacity:1;box-shadow:0 0 0 2px var(--bg-2),0 0 0 3.5px #6fd08f}
.mp-list{display:flex;flex-direction:column;border-radius:18px;background:var(--bg-2);border:1px solid var(--line-soft);overflow:hidden;margin-top:4px}
.mp-row{display:flex;align-items:center;gap:12px;height:52px;padding:0 12px;text-align:left;border-bottom:1px solid var(--line-soft)}
.mp-row:last-child{border-bottom:0}
.mp-row:active{background:var(--bg-3)}
.mp-row b{flex:1;font-size:15px;font-weight:500}
.mp-rs{font-size:13px;color:var(--text-3);display:flex;align-items:center;gap:6px}
.mp-late{color:var(--accent);font-weight:600}
.mp-badge{font-style:normal;min-width:20px;height:20px;border-radius:10px;background:var(--text-1);color:var(--bg-1);font:700 11px var(--font-ui);display:grid;place-items:center;padding:0 5px}
.mp-ch{display:grid;color:var(--text-4)}
.mp-ch svg{width:15px;height:15px}
.mp-ri{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:var(--bg-3);color:var(--text-2);flex:none}
.mp-ri svg{width:16px;height:16px}
.mp-ri .cw-pd{width:11px;height:11px}
.mp-ri.late{background:rgba(245, 184, 79,.15);color:#f7c870}
.mp-cat{width:76px;height:76px;filter:drop-shadow(0 10px 20px rgba(0,0,0,.6))}
.mp-cat svg{width:100%;height:100%}
.mp-bar{display:flex;align-items:center;gap:4px;height:52px;padding:0 6px;border-radius:999px;background:rgba(28,28,33,.92);border:1px solid var(--line);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.mp-bar>button{display:inline-flex;align-items:center;gap:6px;height:40px;min-width:40px;padding:0 10px;border-radius:14px;color:var(--text-2);font-size:13px;justify-content:center}
.mp-bar svg{width:18px;height:18px}
.mp-bar .mp-plus{background:var(--bg-4);color:var(--text-1)}
.mp-me{position:relative;display:grid;margin:0 4px}
.mp-me .av{width:34px;height:34px;border-radius:12px;font-size:14px}
.mp-me i{position:absolute;right:-2px;bottom:-2px;width:10px;height:10px;border-radius:50%;box-shadow:0 0 0 2px #1c1c21}
.mp-dock{position:absolute;left:0;right:0;bottom:22px;z-index:8;display:flex;flex-direction:column;align-items:center;gap:6px;pointer-events:none}
.mp-dock>*{pointer-events:auto}
:root[data-theme="light"] :is(.mp-greet em,.mp-ri.late,.mp-tr em.late,.mp-week i,.mp-call em,.mp-kt small.late){color:#8a5c0a}
.mp-sheet{position:absolute;left:0;right:0;top:58px;bottom:0;z-index:6;display:flex;flex-direction:column;border-radius:28px 28px 0 0;background:#141418;border-top:1px solid var(--line);box-shadow:0 -30px 60px -20px #000;animation:mpup .34s cubic-bezier(.2,.9,.22,1.04);transition:transform .2s}
.mp-sheet.hot{background:linear-gradient(180deg,#2b2312,#141418 120px)}
.mp-grab{height:22px;display:grid;place-items:center;flex:none;cursor:grab;touch-action:none}
.mp-grab i{width:40px;height:5px;border-radius:3px;background:var(--text-4)}
.mp-sh{display:flex;align-items:center;gap:8px;padding:0 14px 10px 18px;flex:none;touch-action:none}
.mp-sh b{font-size:20px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mp-x,.mp-back{width:34px;height:34px;border-radius:12px;display:grid;place-items:center;color:var(--text-3);background:var(--bg-3);flex:none}
.mp-x svg,.mp-back svg{width:16px;height:16px}
.mp-back{margin-left:-6px}
.mp-scope{display:flex;gap:2px;margin-left:8px}
.mp-scope button{height:28px;padding:0 10px;border-radius:9px;font-size:12.5px;color:var(--text-3)}
.mp-scope button.on{background:var(--bg-4);color:var(--text-1);font-weight:600}
.mp-seg{display:flex;gap:2px;margin:0 16px 10px;padding:3px;border-radius:12px;background:var(--bg-2);border:1px solid var(--line-soft);flex:none}
.mp-seg button{flex:1;height:32px;border-radius:9px;font-size:13px;color:var(--text-3)}
.mp-seg button.on{background:var(--bg-4);color:var(--text-1);font-weight:600}
.mp-sb{flex:1;min-height:0;overflow-y:auto;padding:0 14px 170px;scrollbar-width:none;display:flex;flex-direction:column;gap:4px}
.mp-sb::-webkit-scrollbar{display:none}
.mp-gt{display:flex;align-items:center;gap:8px;padding:12px 4px 4px;font:600 11px var(--font-ui);letter-spacing:.07em;text-transform:uppercase;color:var(--text-4)}
.mp-gt span{font-family:var(--font-mono);letter-spacing:0}
.mp-sw{position:relative;border-radius:14px;overflow:hidden;flex:none}
.mp-swl,.mp-swr{position:absolute;top:0;bottom:0;display:flex;align-items:center;gap:6px;padding:0 16px;font-size:13px;font-weight:600;opacity:0}
.mp-swl{left:0;right:0;background:#2d6b46;color:#d9ffe6}
.mp-swr{left:0;right:0;justify-content:flex-end;background:#3b3550;color:#e2dcff}
.mp-swl svg,.mp-swr svg{width:16px;height:16px}
.mp-sw.r .mp-swl,.mp-sw.l .mp-swr{opacity:1}
.mp-tr{position:relative;display:flex;align-items:center;gap:10px;min-height:56px;padding:6px 12px 6px 6px;background:var(--bg-2);border-radius:14px;touch-action:pan-y;user-select:none;transition:transform .18s}
.mp-tt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.mp-tt b{font-size:14.5px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mp-tt small{font-size:12px;color:var(--text-4);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mp-tt small.late{color:var(--accent)}
.mp-tr em,.mp-cr em{font-style:normal;font-size:11.5px;color:var(--text-3);white-space:nowrap}
.mp-tr em.late{color:#f7c870;font-weight:600}
.mp-hint{margin:12px 4px 0;font-size:12px;color:var(--text-4);text-align:center}
.mp-empty{padding:16px 4px;font-size:13px;color:var(--text-4)}
.mp-week{display:flex;gap:6px;overflow-x:auto;padding:4px 2px 6px;scrollbar-width:none;flex:none}
.mp-week::-webkit-scrollbar{display:none}
.mp-week button{flex:none;width:46px;height:64px;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:var(--bg-2);border:1px solid var(--line-soft);color:var(--text-3)}
.mp-week span{font-size:11px}
.mp-week b{font-size:17px;color:var(--text-1)}
.mp-week i{font-style:normal;height:8px;font-size:12px;line-height:6px;color:#f7c870;letter-spacing:1px}
.mp-week button.today{border-color:var(--line-strong)}
.mp-week button.on{background:var(--text-1);border-color:var(--text-1)}
.mp-week button.on span,.mp-week button.on b{color:var(--bg-1)}
.mp-call{display:flex;align-items:center;gap:10px;min-height:52px;padding:6px 12px 6px 6px;border-radius:14px;background:rgba(245, 184, 79,.1);border:1px solid rgba(245, 184, 79,.3);text-align:left}
.mp-call b{flex:1;font-size:14px;font-weight:500}
.mp-call em{font-style:normal;font-size:12px;color:#f7c870}
.mp-kb{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:6px;scrollbar-width:none;flex:none}
.mp-kb::-webkit-scrollbar{display:none}
.mp-kc{flex:none;width:82%;scroll-snap-align:start;display:flex;flex-direction:column;gap:6px;padding:4px 10px 10px;border-radius:16px;background:var(--bg-2)}
.mp-kt{padding:10px 12px;border-radius:12px;background:var(--bg-3);display:flex;flex-direction:column;gap:3px}
.mp-kt b{font-size:13.5px;font-weight:500}
.mp-kt small{font-size:11.5px;color:var(--text-4)}
.mp-kt small.late{color:#f7c870}
.mp-cr,.mp-nc{display:flex;align-items:center;gap:12px;min-height:60px;padding:6px 12px 6px 6px;border-radius:14px;text-align:left;flex:none}
.mp-cr:active,.mp-nc:active{background:var(--bg-3)}
.mp-cr>.av,.mp-nc>.av{width:32px;height:32px;border-radius:10px;font-size:13px}
.mp-nc{background:var(--bg-2);margin-bottom:2px}
.mp-nc.hot{background:rgba(245, 184, 79,.14);border:1px solid rgba(245, 184, 79,.35)}
.mp-ask{display:flex;align-items:center;justify-content:center;gap:8px;height:46px;margin-top:10px;border-radius:14px;background:var(--text-1);color:var(--bg-1);font-size:14px;font-weight:600;flex:none}
.mp-ask svg{width:16px;height:16px}
.mp.sheet-on .mp-cat{width:56px;height:56px}
.mp-vs{position:absolute;inset:46px 0 0;z-index:7;display:flex;flex-direction:column;align-items:center;padding:14px 18px 150px;background:radial-gradient(90% 60% at 50% 30%,#1e2a22,#0c0c0f 70%);animation:mpup .34s cubic-bezier(.2,.9,.22,1.04)}
.mp-vmin{align-self:flex-start;width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:rgba(255,255,255,.08);color:var(--text-1)}
.mp-vmin svg{width:18px;height:18px}
.mp-vh{display:flex;flex-direction:column;align-items:center;gap:4px;margin:10px 0 30px}
.mp-vh b{font-size:22px}
.mp-vh span{font-size:12.5px;color:var(--text-3)}
.mp-vg{display:grid;grid-template-columns:repeat(2,1fr);gap:24px 30px}
.mp-vp{display:flex;flex-direction:column;align-items:center;gap:10px;font-size:13.5px}
.mp-vp .av{width:82px;height:82px;border-radius:28px;font-size:30px}
.mp-vp.talk .av{box-shadow:0 0 0 4px rgba(111,208,143,.6),0 0 30px rgba(111,208,143,.35)}
.mp-vc{position:absolute;left:50%;bottom:150px;transform:translateX(-50%);display:flex;gap:6px;padding:6px;border-radius:999px;background:rgba(28,28,33,.92);border:1px solid var(--line)}
.mp-reactions{position:absolute;left:50%;bottom:calc(100% + 12px);transform:translateX(-50%);display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:8px;border-radius:16px;background:var(--bg-2);border:1px solid var(--line)}
@media(max-width:760px){#vxchat,#vxsb,#vxss,#vxinvite,#vxpip{display:none!important}}
.mp-vc button{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;color:var(--text-2);background:rgba(255,255,255,.06)}
.mp-vc button.off{color:var(--accent);background:var(--accent-soft)}
.mp-vc button.leave{background:var(--accent);color:#1f1606}
.mp-vc svg{width:20px;height:20px}
.mp.voice-on .mp-cat{width:56px;height:56px}
.mp-live{position:absolute;left:50%;bottom:162px;transform:translateX(-50%);z-index:8;display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 8px 0 14px;border-radius:999px;background:#1e3a29;border:1px solid rgba(111,208,143,.45);color:#c9f2d6;font-size:12.5px;font-weight:600;white-space:nowrap}
.mp-live i{width:8px;height:8px;border-radius:50%;background:#6fd08f;animation:chrec 1.2s infinite}
.mp-live span{display:grid;transform:rotate(180deg)}
.mp-live svg{width:15px;height:15px}
.mp-shs{font-size:13px;color:var(--text-3);margin-left:8px;white-space:nowrap}
.mp-home > *{flex-shrink:0}
:root[data-theme="light"] .mp-cat svg{filter:invert(.9) sepia(.08)}
:root[data-theme="light"] .mp-cat{filter:drop-shadow(0 10px 18px rgba(40,32,24,.18))}
:root[data-theme="light"] :is(.mp-bar,.mp-vc){background:rgba(255,255,255,.96);box-shadow:0 0 0 1px var(--line),var(--shadow-lift)}
:root[data-theme="light"] :is(.mp,.mp-sheet){background:var(--bg-1)}
:root[data-theme="light"] .mp-sheet{background:var(--bg-2)}
:root[data-theme="light"] .mp-live{background:#d9efe0;color:#1f5a35}
:root[data-theme="light"] .mp-vs{background:radial-gradient(90% 60% at 50% 30%,#dcebe0,var(--bg-1) 70%)}
@keyframes mpup{from{transform:translateY(100%)}}

/* ---------- настоящий экран вместо рамки ---------- */
.mpx[hidden]{display:none}
.mp.mpx{position:absolute;inset:0;z-index:11;height:auto;aspect-ratio:auto;border-radius:0;box-shadow:none;background:var(--bg-1);container-type:normal}
.mpx .mp-home{padding:calc(14px + env(safe-area-inset-top,0px)) 16px 190px;background:radial-gradient(var(--dots) 1px,transparent 1.3px) 0 0/18px 18px}
.mpx .mp-list{margin-top:6px}
.mpx a.mp-row{color:inherit;text-decoration:none}
.mpx .mp-quiet{text-align:left}
.mpx .mp-hint{margin:6px 4px 0}
.mpx .mp-dock{bottom:calc(14px + env(safe-area-inset-bottom,0px))}
.mpx .mp-cat{padding:0;background:none;border:0}
.mpx .mp-cat .cat-host{width:100%;height:100%}
.mpx .mp-me{padding:0;background:none;height:auto;min-width:0}
.mpx .mp-me .av{width:34px;height:34px;border-radius:12px;font-size:14px}
.mpx .mp-me i{right:-2px;bottom:-2px}
.mpx .mp-sheet{top:calc(14px + env(safe-area-inset-top,0px));z-index:6}
.mpx .mp-sheet[hidden]{display:none}
.mpx .mp-sb{padding-bottom:180px}
.mpx .mp-shb{height:30px;padding:0 11px;border-radius:10px;font-size:12.5px;color:var(--text-2);background:var(--bg-3);margin-left:8px;white-space:nowrap}
.mpx .mp-kt{text-align:left}
.mpx .mp-cr .mp-ch,.mpx .mp-cr .mp-badge{margin-left:auto}
.mpx .mp-cr .mp-tt small .cw-pd,.mpx .mp-tr .mp-tt small .cw-pd{width:7px;height:7px;border-radius:2px;margin-right:2px;vertical-align:1px}
.mpx .mp-tr .ks-st{width:24px}
.mpx .mp-vr .mp-pill,.mpx .mp-pill{margin-left:auto;height:32px;padding:0 14px;border-radius:11px;font-size:13px;font-weight:600;color:var(--text-2);background:var(--bg-3);flex:none}
.mpx .mp-pill.go{background:var(--text-1);color:var(--bg-1)}
.mpx .mp-pill[disabled]{opacity:.5}
.mpx .mp-seg2{display:flex;gap:2px;padding:3px;border-radius:11px;background:var(--bg-3)}
.mpx .mp-seg2 button{height:30px;padding:0 12px;border-radius:8px;font-size:13px;color:var(--text-3)}
.mpx .mp-seg2 button.on{background:var(--bg-1);color:var(--text-1);font-weight:600}
.mpx .mp-row .mp-ri .av{width:32px;height:32px;border-radius:10px;font-size:13px}
.mpx .mp-out{height:46px;margin-top:14px;border-radius:14px;border:1px solid var(--line);color:#f6d79b;font-size:14px;font-weight:500;flex:none}
.mpx .mp-sb>.mp-list{margin-top:8px}
.mpx .mp-vs{inset:0;padding:calc(14px + env(safe-area-inset-top,0px)) 18px 170px;overflow-y:auto}
.mpx .mp-vs[hidden]{display:none}
.mpx .mp-vp{position:relative}
.mpx .mp-vp .av{width:82px;height:82px;border-radius:28px;font-size:30px}
.mpx .mp-vp.talk .av{box-shadow:0 0 0 4px rgba(111,208,143,.6),0 0 30px rgba(111,208,143,.35)}
.mpx .mp-vmu{position:absolute;top:58px;right:-4px;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--bg-1);color:var(--accent);box-shadow:0 0 0 2px var(--bg-1)}
.mpx .mp-vmu svg{width:15px;height:15px}
.mpx .mp-vscr{width:100%;margin:-14px 0 22px;border-radius:16px;overflow:hidden;background:#000;display:flex;flex-direction:column}
.mpx .mp-vscr video{width:100%;max-height:40vh;object-fit:contain;display:block}
.mpx .mp-vscr span{padding:8px 12px;font-size:12px;color:var(--text-3);background:var(--bg-2)}
.mpx .mp-verr{margin:-16px 0 18px;font-size:13px;color:#f6d79b;text-align:center}
.mpx .mp-vc{bottom:calc(140px + env(safe-area-inset-bottom,0px))}
.mpx .mp-vc button.on{background:var(--text-1);color:var(--bg-1)}
.mpx .mp-live{bottom:calc(152px + env(safe-area-inset-bottom,0px))}
.mpx .mp-live span{display:grid;transform:rotate(180deg)}
/* котик — в центре нижней панели, приподнят над ней (поиска в дизайне нет: котик — вход к AVE) */
.mpx .mp-bar{position:relative;width:min(296px,calc(100% - 24px));justify-content:space-between;padding:0 8px}
.mpx .mp-bz{flex:1;display:flex;align-items:center;gap:4px;min-width:0}
.mpx .mp-bz.r{justify-content:flex-end}
.mpx .mp-bz>button{display:inline-flex;align-items:center;justify-content:center;height:40px;min-width:40px;border-radius:14px;color:var(--text-2)}
.mpx .mp-bz>.mp-plus{background:var(--bg-4);color:var(--text-1)}
.mpx .mp-bar .mp-cat svg{width:100%;height:100%}
.mpx .mp-bar .mp-cat{flex:none;padding:0;min-width:0;border-radius:0;width:68px;height:68px;margin:-30px 6px 0;filter:drop-shadow(0 8px 16px rgba(0,0,0,.55))}
.mpx.voice-on .mp-bar .mp-cat,.mpx.sheet-on .mp-bar .mp-cat{width:68px;height:68px}
.mpx .mp-home{padding-bottom:120px}
.mpx .mp-sb{padding-bottom:110px}
.mpx .mp-live{bottom:calc(92px + env(safe-area-inset-bottom,0px))}
.mpx .mp-vc{bottom:calc(84px + env(safe-area-inset-bottom,0px))}
.mpx .mp-vs{padding-bottom:150px}
/* полный лист — без нижней панели, сверху «Назад» */
.mpx.full .mp-dock,.mpx.full .mp-live{display:none}
.mp-top{position:absolute;left:0;right:0;top:0;z-index:31;height:calc(48px + env(safe-area-inset-top,0px));padding:env(safe-area-inset-top,0px) 10px 0;display:flex;align-items:center}
.mp-top[hidden]{display:none}
.mp-tb{display:inline-flex;align-items:center;gap:4px;height:36px;padding:0 14px 0 8px;border-radius:12px;color:var(--text-2);font-size:14px;font-weight:500;background:var(--bg-3)}
.mp-tb svg{width:17px;height:17px}

/* ---------- полные листы на телефоне ---------- */
body.mp-on #hx,body.mp-on #um,body.mp-on #cwt{display:none!important}
body.mp-on #desk{right:0!important}
body.mp-on #desk .cwx{top:calc(48px + env(safe-area-inset-top,0px))!important;bottom:0!important;left:0;right:0;width:auto!important;margin:0;border-radius:22px 22px 0 0;border-bottom:0;animation:mpup .32s cubic-bezier(.2,.9,.22,1.04);z-index:20}
body.mp-on .cwx.chx,body.mp-on .cwx.chx.th-on{display:flex;flex-direction:column}
body.mp-on .cwx.chx .ch-side{display:none}
body.mp-on .cwx.chx .ch-main{flex:1;min-height:0}
body.mp-on .cwx.chx .ch-head{padding:12px 12px 10px 16px}
body.mp-on .cwx.chx .ch-thread{position:absolute;inset:0;z-index:5;width:auto;background:var(--bg-2)}
body.mp-on .ch-hint{display:none}
body.mp-on .ch-say{padding:0 10px calc(10px + env(safe-area-inset-bottom,0px))}
body.mp-on .ch-m .ch-acts{display:none}
body.mp-on #gx{bottom:0!important}
body.mp-on .tw{z-index:32}
body.mp-on .agent{z-index:33}
@keyframes chrec{50%{box-shadow:0 0 0 6px rgba(245, 184, 79,.18)}}

/* окно задачи — во весь экран под «Назад» */
body.mp-on #desk .tw{left:0;right:0;top:calc(48px + env(safe-area-inset-top,0px));bottom:0;width:auto;max-width:none;max-height:none;height:auto;border-radius:22px 22px 0 0;border-bottom:0;animation:mpup .32s cubic-bezier(.2,.9,.22,1.04)}
.mpx.full .mp-home,.mpx.full .mp-sheet{visibility:hidden}
/* листы компьютера в одну колонку */
body.mp-on #desk .cw-head{padding:12px 14px 10px 16px;flex-wrap:wrap;row-gap:8px}
body.mp-on #desk .cw-body{padding:4px 14px 24px}
body.mp-on #desk :is(.mt-cols,.pj-over,.pf-mods,.pj-grid,.pj-ppl,.st-pjs){grid-template-columns:minmax(0,1fr)!important}
body.mp-on #desk .mt-cols>*{min-width:0}
body.mp-on #desk .mt-main{padding:14px 16px 22px}
body.mp-on #desk .mt-tabs{overflow-x:auto;scrollbar-width:none;padding:6px 12px 0}
body.mp-on #desk .mt-tabs::-webkit-scrollbar{display:none}
body.mp-on #desk .mt-tabs button{flex:none}
body.mp-on #desk .pj-crumb{display:none}
body.mp-on #desk .pf-sp{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
body.mp-on #desk .pf-nav{flex-direction:row;overflow-x:auto;border-right:0;border-bottom:1px solid var(--line-soft);padding:8px 10px;scrollbar-width:none}
body.mp-on #desk .pf-nav::-webkit-scrollbar{display:none}
body.mp-on #desk .pf-nav button{flex:none;height:34px}
body.mp-on #desk .pf-spb{padding:14px 14px 24px}
body.mp-on #desk .pf-tr2,body.mp-on #desk .um-tbl .pf-tr2{grid-template-columns:minmax(0,1fr) 128px 36px}
body.mp-on #desk .pf-tr2>:nth-child(3),body.mp-on #desk .pf-tr2>:nth-child(4){display:none}
body.mp-on #desk .um-pr:not(.r6){grid-template-columns:minmax(0,1.2fr) repeat(4,minmax(0,1fr));font-size:12px}
body.mp-on #desk .um-pr.r6{font-size:12px}
body.mp-on #desk .pf-log code{width:40px}
body.mp-on #desk .tl-lr{grid-template-columns:110px minmax(0,1fr)}
body.mp-on #desk .tl-lr>:nth-child(3){display:none}
body.mp-on #cwm .cw-ht{flex:1 1 100%;min-width:0}
body.mp-on #cwm .cw-ht span{white-space:normal}
.mpx .mp-vg{display:flex;flex-wrap:wrap;justify-content:center;gap:24px 30px}
.mpx .mp-ping{display:inline-flex;align-items:center;gap:5px;margin-left:6px;font:500 11.5px var(--font-mono);color:var(--text-3);white-space:nowrap;font-variant-numeric:tabular-nums}
.mpx .mp-ping i{width:7px;height:7px;border-radius:50%;flex:none}
.mpx .mp-vp .mp-vcam{position:absolute;top:0;left:50%;transform:translateX(-50%);width:82px;height:82px;border-radius:28px;overflow:hidden;background:#000}
.mpx .mp-vp .mp-vcam video{width:100%;height:100%;object-fit:cover;display:block}
.mpx .mp-vp.talk .mp-vcam{box-shadow:0 0 0 4px rgba(111,208,143,.6)}
.mpx .mp-pq{margin:0 16px 8px;height:40px}.mpx .mp-ppl{padding:0;overflow:visible}.mpx .mp-ppl .um-r{width:100%}
/* неделя на главной телефона и «Новое дело» (прототип v71, .mc) */
.mc{margin:4px 0 12px;padding:12px;border-radius:20px;background:var(--bg-2);border:1px solid var(--line-soft)}
.mc-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.mc-h b{font-size:14px;color:var(--text-1)}
.mc-h button{height:26px;padding:0 10px;border-radius:8px;background:var(--bg-3);color:var(--text-2);font-size:12px;font-weight:600}
.mc-wd,.mc-g{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}
.mc-wd span{text-align:center;font-size:10.5px;color:var(--text-4);padding-bottom:2px}
.mc-d{display:flex;flex-direction:column;align-items:center;gap:3px;height:42px;padding-top:5px;border-radius:11px;box-sizing:border-box}
.mc-d b{font-size:14px;font-weight:600;color:var(--text-1);line-height:1.1}
.mc-d.out b{color:var(--text-4)}
.mc-d.td b{color:var(--accent)}
.mc-d.on{background:var(--text-1)}
.mc-d.on b{color:var(--bg-1)}
.mc-d span{display:flex;gap:3px;height:5px}
.mc-d span i{width:5px;height:5px;border-radius:50%;background:var(--text-3)}
.mc-d span i.c{background:#8b7fd1}
.mc-d span i.l{background:var(--accent)}
.mc-day{margin-top:10px;padding-top:10px;border-top:1px solid var(--line-soft);display:flex;flex-direction:column;gap:4px}
.mc-dh{display:flex;align-items:baseline;gap:8px;margin-bottom:2px}
.mc-dh b{font-size:13.5px;color:var(--text-1)}
.mc-dh span{font-size:12px;color:var(--text-4)}
.mc-it{display:flex;align-items:center;gap:10px;min-height:40px;padding:0 8px;border-radius:11px;text-align:left}
.mc-it:active{background:var(--bg-3)}
.mc-ic{width:26px;height:26px;border-radius:8px;display:grid;place-items:center;background:var(--bg-3);color:var(--text-3);flex:none}
.mc-ic svg{width:14px;height:14px}
.mc-t{flex:1;min-width:0;font-size:13.5px;color:var(--text-1);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mc-it em{font-style:normal;font-size:12px;color:var(--text-3)}
.mc-it.late em{color:var(--accent)}
.mc-it.done .mc-t{color:var(--text-4);text-decoration:line-through}
.mc-new{display:flex;align-items:center;justify-content:center;gap:6px;height:38px;margin-top:4px;border-radius:12px;border:1px dashed var(--line-strong);color:var(--text-2);font-size:13px;font-weight:600}
.mc-new svg{width:15px;height:15px}
.mc-nf{display:flex;flex-direction:column;gap:10px;padding-bottom:10px}
.mc-k{align-self:stretch}
.mc-k button{flex:1;height:34px;font-size:13px}
.mc-in{height:46px;padding:0 14px;border-radius:14px;background:var(--bg-1);border:1px solid var(--line);color:var(--text-1);font:15px var(--font-ui);outline:0}
.mc-in:focus{border-color:var(--text-3)}
.mc-l{font-size:12px;font-weight:600;color:var(--text-3)}
.mc-days{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.mc-days::-webkit-scrollbar{display:none}
.mc-days button{display:inline-flex;align-items:center;gap:6px;flex:none;height:34px;padding:0 12px;border-radius:11px;background:var(--bg-2);border:1px solid var(--line-soft);font-size:13px;color:var(--text-2);white-space:nowrap}
.mc-days button.on{background:var(--text-1);color:var(--bg-1);border-color:transparent}
.mc-n{margin:0;font-size:12px;color:var(--text-4)}
.mc-go{height:48px;border-radius:14px;background:var(--text-1);color:var(--bg-1);font:650 15px var(--font-ui);margin-top:4px}

.mpx .mp-bz>.mp-find{gap:6px;padding:0 10px;font-size:13px;color:var(--text-2)}
.mpx .mp-find svg{width:17px;height:17px}
.mpx .mp-tt small.late{color:var(--accent)}
@media (max-width:360px){.mpx .mp-find span{display:none}}
.mpx .mp-find span{display:none}
/* «Стол» на телефоне: строка — название, что сделать, кто ждёт; версия справа */
.mp-dk{display:flex;align-items:center;gap:10px;width:100%;min-height:58px;padding:10px 14px;border-radius:14px;background:var(--bg-2);border:1px solid var(--line-soft);text-align:left;margin-bottom:6px}
.mp-dk .mp-tt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.mp-dk .mp-tt b{font-size:15px;font-weight:600;color:var(--text-1)}
.mp-dk .mp-tt small{font-size:13px;color:var(--text-2);line-height:1.35}
.mp-dk .mp-tt em{font-style:normal;font-size:12px;color:var(--text-3)}
.mp-dk.long{border-color:rgba(245, 184, 79,.45)}
.mp-dk.long .mp-tt em{color:var(--accent);font-weight:600}
.mp-gt.hot{color:var(--accent)}

.mp-dk .vst{flex:none;align-self:flex-start;margin-top:2px}
.mp-dk .mp-tt small,.mp-dk .mp-tt em{white-space:normal;overflow-wrap:anywhere}
.mp-dk{height:auto!important;align-items:flex-start}
.mp-dk .mp-tt{white-space:normal}
.mp-dk{flex:none}
/* нижняя панель с котиком — неподвижная полоса внизу экрана (реш. владельца 23.10): главная прокручивается над ней
   и под неё не заезжает; полоса того же цвета, что и экран, — без серой плашки и без наложений */
.mpx .mp-dock{position:relative;left:auto;right:auto;bottom:auto;flex:none;padding:30px 0 calc(10px + env(safe-area-inset-bottom,0px));background:var(--bg-1)}
.mpx .mp-home{padding-bottom:16px}
/* пинг рядом с аватаром не наезжает на него: аватар не сжимается, пинг ужимается сам */
.mpx .mp-bz>#mpMe>.mp-me,.mpx .mp-me{flex:none}
.mpx .mp-ping{flex:0 1 auto;min-width:0;overflow:hidden}
/* iPhone, AVE с экрана «Домой»: fixed + inset:0 и 100% не доходят до низа экрана — под приложением оставалась
   серая полоса, а нижняя панель поднималась вместе с коротким контейнером (замечание владельца 23.10).
   На телефоне контейнер — на всю высоту большого экрана, фон страницы — цвета приложения. */
body.mp-on{background:var(--bg-1)}
html:has(body.mp-on){background:var(--bg-1)}
body.mp-on #desk{bottom:auto;height:100vh;height:100dvh}
/* с экрана «Домой» iOS 26 укорачивает окно снизу на высоту строки состояния (WebKit 301108) — отсюда полоса внизу.
   Добираем её: высота окна + верхний отступ, но не больше 100lvh (WebKit 316008). Так же чинит frappe-ui #1284 (23.10) */
@media (display-mode:standalone){body.mp-on #desk{top:0;bottom:auto;height:100%;height:min(100lvh,calc(100% + env(safe-area-inset-top,0px)))}}
/* приложение с экрана «Домой» в режиме black-translucent: часы и батарея iOS всегда белые —
   в светлой теме под ними тёмная полоска высотой строки состояния, иначе их не видно */
@media (display-mode:standalone){:root[data-theme="light"] body.mp-on::after{content:"";position:fixed;top:0;left:0;right:0;height:env(safe-area-inset-top,0px);background:#18171b;z-index:9999;pointer-events:none}}
/* запасной вариант: если iOS всё же оставит полоску внизу, она будет цвета нижней панели */
@media (max-width:760px){html{background:var(--bg-1)}}

/* ---------- правки мобилки 24.10 (замечания владельца с iPhone) ---------- */
/* главная: без поля точек; полоса под часами — цвета экрана, лента под часы не заезжает */
.mpx .mp-home{background:none;padding:calc(12px + env(safe-area-inset-top,0px)) 16px calc(118px + env(safe-area-inset-bottom,0px))}
.mpx::before{content:"";position:absolute;left:0;right:0;top:0;height:env(safe-area-inset-top,0px);background:var(--bg-1);z-index:9;pointer-events:none}
/* нижняя панель — без чёрной полосы под ней: плавает над экраном и шторками, выше от края экрана */
.mpx .mp-dock{position:absolute;left:0;right:0;bottom:0;padding:0 0 calc(22px + env(safe-area-inset-bottom,0px));background:none;z-index:8}
.mpx .mp-bar{width:min(252px,calc(100% - 24px))}
/* шторки: до самого низа экрана под панелью; сверху не видно главной под часами */
.mpx .mp-sheet{top:calc(10px + env(safe-area-inset-top,0px));bottom:0}
.mpx .mp-sb{padding-bottom:calc(118px + env(safe-area-inset-bottom,0px))}
.mpx .mp-sheet.fit{top:auto;max-height:calc(100% - 10px - env(safe-area-inset-top,0px))}
.mpx .mp-sheet.fit .mp-sb{flex:0 1 auto}
/* под шторкой главная притушена; нажатие по ней сворачивает шторку */
.mpx .mp-home{transition:opacity .2s}
.mpx.sheet-on .mp-home{opacity:.18}
/* строки списков в шторках — лёгкими плашками, чтобы чаты, комнаты и проекты не сливались */
.mpx .mp-sb>.mp-cr{background:rgba(128,128,128,.07);border:1px solid var(--line-soft);min-height:58px}
.mpx .mp-sb>.mp-cr.live{border-color:rgba(111,208,143,.35)}
/* полные листы (чат, профиль, проект, встречи, задача): страницей на весь экран, без рамки и стекла —
   под ними не остаётся чёрной полосы; «Назад» — круглой кнопкой в строке заголовка, крестик не нужен */
body.mp-on #desk .cwx:not(#dcx),body.mp-on #desk .tw{top:0!important;bottom:0!important;border:0;border-radius:0;background:var(--bg-1);backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none;padding-top:env(safe-area-inset-top,0px)}
body.mp-on #desk .cwx:not(#dcx) .ch-head{padding-left:60px!important;min-height:58px}
/* у заголовков с переносом отступ под «Назад» — только у первой строки: кнопки второй строкой от левого края */
body.mp-on #desk .cwx:not(#dcx) .cw-head{min-height:58px;padding-left:16px!important}
body.mp-on #desk .cwx:not(#dcx) .cw-head>:is(.cw-ht,.mt-ic):not(.mt-ic ~ .cw-ht){margin-left:44px}
body.mp-on #desk .cwx:not(#dcx) :is(.ch-head,.cw-head)>.cw-x,body.mp-on #desk .win-tool{display:none!important}
.mp-top{top:calc(10px + env(safe-area-inset-top,0px));left:10px;right:auto;height:auto;padding:0;z-index:34}
.mp-tb{width:38px;height:38px;padding:0;justify-content:center;border-radius:12px}
.mp-tb svg{width:19px;height:19px}
/* профиль: нижняя панель остаётся — повторное нажатие на аватар сворачивает лист */
.mpx.full.dock{z-index:21;background:none;pointer-events:none}
.mpx.full.dock .mp-dock{display:flex}
body.mp-on #desk:has(> .mpx.dock) .cwx :is(.cw-body,.mt-body,.pf-spb){padding-bottom:calc(120px + env(safe-area-inset-bottom,0px))}
/* заголовки листов: название — своей строкой, кнопки — под ним, ничего не наезжает */
body.mp-on #desk .cwx .cw-head>.cw-ht{flex:1 1 calc(100% - 20px);min-width:0}
body.mp-on #desk .cwx .cw-head>.cw-ht span{white-space:normal}
/* поле ввода в чате — выше от края, без полосы под ним */
body.mp-on .ch-say{padding:0 10px calc(16px + env(safe-area-inset-bottom,0px))}
/* карточка человека на телефоне — по ширине экрана над панелью, не уезжает за край */
body.mp-on .pf-card{left:12px!important;right:12px;width:auto;top:auto!important;bottom:calc(100px + env(safe-area-inset-bottom,0px))}
/* проект: обложка-квадратик не занимает строку — название сразу рядом с «Назад» */
body.mp-on #desk .pj-head>.pj-cov{display:none}
/* подпись под названием листа переносится, а не обрезается */
body.mp-on #desk .cwx:not(#dcx) .ch-head .ch-ht span{white-space:normal}
/* окно котика — над поднятой панелью; главная под ним притушена */
body.mp-on #desk .agent{bottom:calc(112px + env(safe-area-inset-bottom,0px))}
body.mp-on:has(#agent:not([hidden])) .mpx .mp-home{opacity:.18}
/* карточка встречи: значок не занимает строку */
body.mp-on #desk #cwm .cw-head>.mt-ic{display:none}
body.mp-on #desk #cwm .cw-head>.mt-ic ~ .cw-ht{margin-left:44px}
/* терракоты в дизайне больше нет (акцент — пастельный жёлтый с 18.10): уведомления на главной и в шторке — как плашка на компьютере */
:root[data-theme="light"] .mp-notif{background:#fde8bf;border-color:rgba(212,145,26,.35)}
:root[data-theme="light"] .mp-sheet.hot{background:linear-gradient(180deg,#fdf0d4,var(--bg-2) 120px)}
.mp-notif .mp-ch{color:rgba(42,29,8,.5)}
/* светлая тема на телефоне: старые терракотовые акценты (общий список из chat/home/login.css) — тёмно-жёлтым */
:root[data-theme="light"] body.mp-on :is(.ch-at, .ch-rx.me b, .ch-thl b, .ks-ic.ave, .ks-note, .mt-badge.soon, .mt-ave, .dc-mk, .dc-q em, .dc-ds.q, .dc-ask, .kz-tc, .kz-dr, .kz-at b, .kz-dn, .kz-tools > button.on, .pf-own, .pf-log em, .mp-tc, .ks2-link svg, .af-ask svg, .bv-meta span.hot, .mp-greet em, .mp-ri.late, .mp-tr em.late, .mp-week i, .mp-call em, .mp-kt small.late, .pj-goalr em, .ln-err, .st-left.soon, .st-b.dim:hover, .st-danger .mt-st, .st-rm:hover, .bx-pa button:last-child:hover, .bx-dd .danger, .ma-st.s-changes, .ma-hist em, .vx-vol.off button, .vx-mod button.on, .vs-p .vx-sm, .vx-live, .tl-p.p1, .tl-pc.p1, .tl-sum em, .dx-link:hover){color:#8a5c0a}
/* шапка главной (владелец 24.10: «без шапки и отступа сверху дизайн кажется неполноценным»): заголовок с воздухом,
   прилипает к верху — лента уходит под неё, тонкая линия появляется только при прокрутке */
.mpx .mp-home{padding-top:0}
.mpx .mp-hd{position:sticky;top:0;z-index:3;margin:0 -16px 6px;padding:calc(22px + env(safe-area-inset-top,0px)) 20px 14px;background:var(--bg-1);display:flex;align-items:flex-end;border-bottom:1px solid transparent;transition:border-color .2s}
.mpx .mp-hd b{font-size:30px;font-weight:700;letter-spacing:-.02em;line-height:1.1}
.mpx .mp-home.scrolled .mp-hd{border-bottom-color:var(--line-soft)}
/* вариант Б: компактная шапка по центру */
.mpx.hdB .mp-hd{justify-content:center;padding:calc(14px + env(safe-area-inset-top,0px)) 20px 12px}
.mpx.hdB .mp-hd b{font-size:17px;font-weight:600;letter-spacing:0}
/* нижняя панель отделена от ленты без плашки: лента плавно растворяется к низу экрана, у панели — плотный фон и тень */
.mpx .mp-home,.mpx .mp-sb{-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 150px - env(safe-area-inset-bottom,0px)),transparent calc(100% - 46px - env(safe-area-inset-bottom,0px)));mask-image:linear-gradient(to bottom,#000 calc(100% - 150px - env(safe-area-inset-bottom,0px)),transparent calc(100% - 46px - env(safe-area-inset-bottom,0px)))}
.mpx .mp-bar{background:rgba(30,30,36,.97);border-color:var(--line-strong,rgba(255,255,255,.14));box-shadow:0 14px 34px -10px rgba(0,0,0,.75)}
:root[data-theme="light"] .mpx .mp-bar{background:rgba(255,255,255,.98)}
/* ---------- главная = календарь с делами + агент (владелец 24.10, реф. календарь плитками) ---------- */
.mpx .mp-hd.cal{position:relative;top:auto;flex-direction:column;align-items:stretch;margin:0 -16px;padding:calc(10px + env(safe-area-inset-top,0px)) 16px 4px;border:0;background:none}
.mp-hc{display:flex;align-items:center;min-height:42px}
.mp-corner{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;min-width:40px;padding:0 11px;border-radius:20px;background:var(--bg-2);border:1px solid var(--line-soft);color:var(--text-3)}
.mp-corner svg{width:18px;height:18px}
.mp-corner.hot{color:var(--text-1)}
.mp-corner i.n{position:absolute;top:-5px;right:-5px;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:#f0a52f;color:#2a1d08;font:700 10.5px var(--font-ui);font-style:normal;display:grid;place-items:center;box-shadow:0 0 0 2px var(--bg-1)}
/* голосовые: пусто — тихая кнопка; кто-то есть — зелёная пилюля с аватарами и комнатой */
.mp-corner.live{padding:0 13px 0 11px;background:rgba(111,208,143,.12);border-color:rgba(111,208,143,.42);color:#c9f2d6}
.mp-corner .dot{width:8px;height:8px;border-radius:50%;background:#6fd08f;flex:none;animation:mppulse 1.8s infinite}
@keyframes mppulse{50%{box-shadow:0 0 0 5px rgba(111,208,143,.18)}}
.mp-cav{display:flex}
.mp-cav .av{width:22px;height:22px;border-radius:8px;font-size:10px;margin-left:-6px;box-shadow:0 0 0 2px var(--bg-1)}
.mp-cav .av:first-child{margin-left:0}
.mp-cn{font-size:13px;font-weight:600;max-width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:root[data-theme="light"] .mp-corner.live{color:#1f5a35;background:#e3f3e8}
.mp-mo{display:flex;align-items:center;justify-content:center;gap:8px;margin:14px 0 16px}
.mp-mo b{font-size:40px;font-weight:700;letter-spacing:-.035em;line-height:1;text-align:center}
.mp-mo button{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;color:var(--text-4)}
.mp-mo button svg{width:17px;height:17px}
.cl-wd,.cl-g{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.cl-wd{margin-bottom:6px}
.cl-wd span{height:22px;border-radius:11px;background:var(--bg-2);display:grid;place-items:center;font-size:10px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--text-3)}
.cl-d{min-width:0;height:68px;padding:6px 5px 4px;border-radius:13px;background:var(--bg-2);border:1px solid var(--line-soft);display:flex;flex-direction:column;align-items:stretch;gap:2px;text-align:left;overflow:hidden}
.cl-d b{font-size:14.5px;font-weight:700;line-height:1.1;color:var(--text-1);padding-left:2px;margin-bottom:2px}
.cl-d.out{background:none;border-color:transparent}
.cl-d.out b{color:var(--text-4);opacity:.45;font-weight:600}
.cl-d.on{background:var(--bg-4,#2a2a31);border-color:var(--line)}
.cl-d.td{box-shadow:inset 0 0 0 2px var(--text-1)}
.cl-d:active{transform:scale(.96)}
.cl-l{position:relative;display:block;padding-left:5px;font-style:normal;font-size:8.5px;line-height:11px;color:var(--text-3);white-space:nowrap;overflow:hidden}
.cl-l::before{content:"";position:absolute;left:0;top:2px;bottom:2px;width:2.5px;border-radius:2px;background:var(--c)}
.cl-l.late{color:var(--accent)}
.cl-d em{font-style:normal;font-size:8.5px;line-height:10px;color:var(--text-4);padding-left:5px}
.cl-ch{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}
.cl-ch button{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border-radius:15px;background:var(--bg-2);border:1px solid var(--line-soft);font-size:12.5px;color:var(--text-2)}
.cl-ch button.on{background:var(--text-1);color:var(--bg-1);border-color:transparent}
.cl-ch i{width:7px;height:7px;border-radius:50%;flex:none}
.cl-day{margin-top:16px;display:flex;flex-direction:column;gap:2px}
.cl-day .mc-it{min-height:44px}
.cl-bar{width:3px;height:22px;border-radius:2px;flex:none}
.cl-ask{height:46px;margin-top:4px;border-radius:14px;border:1px dashed var(--line-strong,var(--line));color:var(--text-3);font-size:13px}
.mp-von{color:#6fd08f;font-weight:600;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:root[data-theme="light"] .mp-von{color:#1f7a45}
:root[data-theme="light"] .mpx .mp-sheet{box-shadow:0 -18px 44px -26px rgba(40,32,24,.28)}
/* разгрузка главной-календаря (владелец 24.10: «перегружено», «воздуха сверху не даёшь — там чёлка и индикаторы»):
   под строкой состояния iPhone — свободная полоса, месяц ниже с воздухом; в плитке только число и цветные чёрточки */
.mpx .mp-hd.cal{padding:calc(16px + env(safe-area-inset-top,0px)) 16px 0}
.mp-hc{min-height:40px}
.mp-mo{margin:30px 0 24px}
.mp-mo button{width:auto;height:auto;padding:0 6px;color:var(--text-1);border-radius:12px}
.mp-mo b{font-size:44px}
.cl-wd{margin-bottom:8px}
.cl-g{gap:6px}
.cl-d{height:62px;padding:7px 6px 6px;justify-content:space-between}
.cl-d b{font-size:15px;margin:0}
.cl-dots{display:flex;flex-direction:column;gap:3px;padding:0 1px}
.cl-dots i{display:block;height:3px;border-radius:2px;background:var(--c);opacity:.9}
.cl-dots i.late{background:var(--accent)}
.cl-day{margin-top:22px}
/* владелец 24.10: календарь ниже по высоте, нижняя панель шире и чуть выше */
.cl-d{height:50px;padding:6px 6px 5px;border-radius:12px}
.cl-g{gap:5px}
.mpx .mp-bar{width:min(340px,calc(100% - 32px));height:58px;padding:0 10px}
.mpx .mp-bz>button{height:44px;min-width:44px}
.cl-d{box-sizing:border-box}
/* владелец 24.10: в днях календаря точки вместо чёрточек — до трёх в ряд */
.cl-dots{flex-direction:row;gap:3px;padding:0 2px}
.cl-dots i{width:5px;height:5px;border-radius:50%;opacity:1}

/* ---------- единая схема экранов телефона (владелец 24.10: «окей» на «подружить окна с главной») ----------
   верх как у главной: воздух под чёлкой, круглые кнопки по углам, крупный заголовок; списки плитками; состояние точками */
/* шторки разделов — страницей на весь экран, тем же цветом, что главная */
.mpx .mp-sheet.page{top:0;bottom:0;border:0;border-radius:0;background:var(--bg-1);box-shadow:none}
:root[data-theme="light"] .mpx .mp-sheet.page{background:var(--bg-1)}
.mpx .mp-sheet.page .mp-hd.pg{position:relative;flex:none;display:block;margin:0;padding:calc(16px + env(safe-area-inset-top,0px)) 16px 0;background:none;border:0;touch-action:none}
.mpx .mp-sheet.page .mp-mo{margin:22px 0 18px}
.mpx .mp-sheet.page .mp-mo b{font-size:36px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mpx .mp-sheet.page .mp-sb{padding-left:16px;padding-right:16px}
.mp-corner.txt{padding:0 14px;font-size:13px;font-weight:600;color:var(--text-2)}
.mpx .mp-sheet.page .mp-seg,.mpx .mp-sheet.page .mp-pq{margin-left:16px;margin-right:16px}
/* под шторкой-страницей главная не видна */
.mpx.sheet-on:has(.mp-sheet.page:not([hidden])) .mp-home{visibility:hidden}
/* списки — плитками, как дни календаря */
.mpx .mp-sb>.mp-cr,.mpx .mp-nc,.mpx .mp-dk,.mpx .mp-ppl .um-r{background:var(--bg-2);border:1px solid var(--line-soft);border-radius:14px}
.mpx .mp-ppl{display:flex;flex-direction:column;gap:5px}
.mpx .mp-ppl .um-r{padding:8px 10px;min-height:52px}
.mpx .mp-ppl .um-gt,.mpx .mp-ppl [class*="-gt"]{margin-top:10px}
/* уведомления: строка-плитка, новые — жёлтой точкой слева */
.mpx .mp-nc,.mpx .mp-nc.hot{background:var(--bg-2);border:1px solid var(--line-soft);padding:8px 12px 8px 10px;gap:10px;min-height:58px;margin-bottom:0}
.mp-ndot{width:8px;height:8px;border-radius:50%;flex:none;background:transparent}
.mp-nc.hot .mp-ndot{background:#f0a52f}
.mpx .mp-nc:not(.hot) .mp-tt b{font-weight:500;color:var(--text-2)}
.mpx .mp-ask{margin-top:14px}
/* полные листы (проект, профиль, встречи, видео, доски): тот же верх — «Назад» в углу, ниже крупный заголовок */
body.mp-on #desk .cwx:not(.chx) .cw-head{padding-top:60px!important;padding-left:16px!important}
body.mp-on #desk .cwx:not(.chx) .cw-head>:is(.cw-ht,.mt-ic):not(.mt-ic ~ .cw-ht){margin-left:0}
body.mp-on #desk #cwm .cw-head>.mt-ic ~ .cw-ht{margin-left:0}
body.mp-on #desk .cwx:not(.chx) .cw-head .cw-ht h2{font-size:32px;font-weight:700;letter-spacing:-.03em;line-height:1.1}
body.mp-on #desk .cwx:not(.chx) .ch-head:not(.dc-head){padding-top:60px!important;padding-left:16px!important}
body.mp-on #desk .cwx:not(.chx) .ch-head:not(.dc-head) .ch-ht b{font-size:28px;font-weight:700;letter-spacing:-.02em}
body.mp-on #desk .cwx:not(.chx) .ch-head:not(.dc-head)>.mt-ic{display:none}
.mp-top{top:calc(16px + env(safe-area-inset-top,0px));left:16px}
.mp-tb{width:40px;height:40px;border-radius:20px;background:var(--bg-2);border:1px solid var(--line-soft)}
/* в переписке «Назад» остаётся в строке заголовка */
body.mp-on #desk:has(> .cwx.chx:not([hidden])) > .mp-top{top:calc(10px + env(safe-area-inset-top,0px));left:10px}
/* нижняя панель поверх полных листов: содержимому — место под ней */
body.mp-on #desk:has(> .mpx.dock) .cwx :is(.cw-body,.mt-body,.pf-spb,.pj-body,.bd-list,.vd-list){padding-bottom:calc(120px + env(safe-area-inset-bottom,0px))!important}
/* документы — по той же схеме: «Назад» в углу, без своего крестика */
body.mp-on #desk #dcx{top:0!important;bottom:0!important;border:0;border-radius:0;background:var(--bg-1);box-shadow:none;padding-top:env(safe-area-inset-top,0px)}
body.mp-on #desk #dcx .dc-head{padding-top:60px!important;padding-left:16px!important}
body.mp-on #desk #dcx .dc-head>.cw-x{display:none!important}
@media (max-width:760px){body.mp-on #desk:has(> #dcx:not([hidden])) > #mpTop:not([hidden]){display:flex}}
/* котик: невысокая шторка над панелью, поле ввода внизу; растёт вместе с разговором */
@media (max-width:760px){
  body.mp-on #desk .agent{top:auto;bottom:calc(104px + env(safe-area-inset-bottom,0px));max-height:calc(100% - 130px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));left:12px;right:12px;border-radius:22px}
  body.mp-on #desk .agent .ag-top{order:20;padding:10px 10px 10px 12px}
  body.mp-on #desk .agent>#agChat:empty~.ag-find{flex:0 1 auto}
}
/* старые отступы под «Назад» в строке заголовка (правила с #dcx сильнее) — в новой схеме заголовок с левого края */
body.mp-on #desk .cwx:not(#dcx):not(.chx) .cw-head>:is(.cw-ht,.mt-ic){margin-left:0!important}
body.mp-on #desk .cwx:not(#dcx):not(.chx) :is(.cw-head,.ch-head){padding-left:16px!important;padding-top:60px!important}
.mpx .mp-sb>*{flex-shrink:0}
body.mp-on #desk .cwx:not(.chx) .cw-head .cw-ht :is(h2,.mt-ti){font-size:28px;font-weight:700;letter-spacing:-.02em;line-height:1.15}
/* ---------- котик: полноценный разговор страницей (владелец 24.10) ----------
   «Назад» в углу и заголовок, как у разделов; лента сообщений; поле ввода внизу над панелью с котиком */
.ag-ph{display:none}
@media (max-width:760px){
  body.mp-on #desk .agent{top:0;left:0;right:0;bottom:calc(96px + env(safe-area-inset-bottom,0px));max-height:none;border-radius:0;box-shadow:none;background:var(--bg-1);padding:env(safe-area-inset-top,0px) 0 0;display:flex;flex-direction:column}
  body.mp-on #desk .agent .ag-ph{display:block;flex:none;padding:16px 16px 0}
  body.mp-on #desk .agent .ag-phc{display:flex;align-items:center;min-height:40px}
  body.mp-on #desk .agent .ag-ph>b{display:block;margin:22px 0 4px;text-align:center;font-size:36px;font-weight:700;letter-spacing:-.035em;line-height:1}
  body.mp-on #desk .agent #agChat{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;padding:0 16px}
  body.mp-on #desk .agent .ag-prov{justify-content:center;text-align:center;margin:0 0 10px}
  body.mp-on #desk .agent .ag-chat{flex:1 1 auto;min-height:0;overflow-y:auto;padding:6px 0 12px;display:flex;flex-direction:column;gap:10px}
  body.mp-on #desk .agent .msg{max-width:86%;padding:10px 13px;border-radius:18px;font-size:15px;line-height:1.4}
  body.mp-on #desk .agent .msg.me{align-self:flex-end;background:var(--text-1);color:var(--bg-1);border-bottom-right-radius:6px}
  body.mp-on #desk .agent .msg.ave{align-self:flex-start;background:var(--bg-2);border:1px solid var(--line-soft);border-bottom-left-radius:6px}
  body.mp-on #desk .agent .msg.ave small{display:block;margin-bottom:3px;font-size:11px;font-weight:600;color:var(--text-4)}
  body.mp-on #desk .agent .ag-top{order:20;flex:none;padding:8px 12px 10px;border-top:1px solid var(--line-soft);background:var(--bg-1)}
  body.mp-on #desk .agent .ag-find:empty,body.mp-on #desk .agent .ag-chips:empty{display:none}
  body.mp-on:has(#agent:not([hidden])) .mpx .mp-home{visibility:hidden}
  .ag-hello{margin:auto 0;padding:10px 4px 20px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px}
  .ag-hello b{font-size:20px;font-weight:650}
  .ag-hello p{margin:0;max-width:30ch;font-size:14px;line-height:1.45;color:var(--text-3)}
  .ag-say{display:flex;flex-direction:column;gap:6px;width:100%;margin-top:10px}
  .ag-say button{height:46px;border-radius:14px;background:var(--bg-2);border:1px solid var(--line-soft);font-size:14px;color:var(--text-1)}
}
@media (max-width:760px){body.mp-on #desk .agent :is(#agTabs,#agChat,.ag-prov){border:0!important;box-shadow:none}body.mp-on #desk .agent .ag-prov{margin-top:6px}}
/* владелец 24.10: в разговоре AVE Chat без заголовка и подписи — минимализм (переключатель AVE / AVE Pro у руководства остаётся) */
@media (max-width:760px){body.mp-on #desk .agent .ag-ph>b,body.mp-on #desk .agent .ag-prov>span{display:none}body.mp-on #desk .agent .ag-prov:not(:has(button)){display:none}body.mp-on #desk .agent .ag-chat{padding-top:14px}}
@media (max-width:760px){body.mp-on #desk .agent .ag-chat{-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 28px);mask-image:linear-gradient(to bottom,transparent 0,#000 28px)}}
/* голосовая на телефоне, 27.10: много людей в комнате и одна нижняя панель
   — блоки экрана не ужимаются: в колонке с прокруткой показ экрана (overflow:hidden) сплющивался до нуля, и стрим пропадал;
   — отдельного пульта над панелью больше нет: кнопки голосовой встают в нижнюю панель по бокам от котика
     (слева микрофон, звук, реакции и рука; справа камера, запись, выход), профиль, «+» и меню на это время прячутся;
   — внизу прокрутки распорка под панель — последний ряд людей не уходит под неё. */
.mpx .mp-vs>*{flex-shrink:0}
.mpx .mp-vs{padding-bottom:0}
.mpx .mp-vs::after{content:"";flex:none;height:calc(84px + env(safe-area-inset-bottom,0px))}
.mpx .mp-vbz{display:none}
.mpx.voice-on .mp-bar{width:calc(100% - 24px);max-width:400px}
.mpx.voice-on #mpMe>*,.mpx.voice-on .mp-bz>.mp-plus,.mpx.voice-on .mp-bz>[data-mpgo="set"]{display:none}
.mpx.voice-on .mp-vbz{flex:1;min-width:0;display:flex;align-items:center;justify-content:space-around;gap:2px}
.mpx .mp-vbz button{flex:0 1 40px;min-width:30px;height:40px;border-radius:14px;display:grid;place-items:center;color:var(--text-2);font-size:17px}
.mpx .mp-vbz svg{width:19px;height:19px}
.mpx .mp-vbz button.off{color:var(--accent);background:var(--accent-soft)}
.mpx .mp-vbz button.on{background:var(--text-1);color:var(--bg-1)}
.mpx .mp-vbz button.leave{background:var(--accent);color:#1f1606}
.mpx .mp-bar .mp-reactions{bottom:calc(100% + 34px)}
.mpx .mp-reactions .mp-rh{grid-column:1/-1;height:40px;border-radius:12px;font-size:14px;font-weight:500;color:var(--text-1);background:var(--bg-3)}
.mpx .mp-reactions .mp-rh.on{background:var(--text-1);color:var(--bg-1)}
