/* Phone shell: the Lark mobile layout language on Dock's own features (see /phone-shell.js). Every rule that changes an existing element
   sits inside @media(max-width:800px); outside it, the elements phone-shell.js adds are hidden, so desktop and tablet layouts are unchanged.
   Colours: Dock's theme tokens plus a few phone surfaces (--ph-*), light and dark. */
.psh-av,.psh-ib,.psh-tb,.psh-ts,#psh-who,#psh-hmeta,#psh-plus,.psh-tiles,.psh-fab,.psh-ill,.psh-rec,#psh-more,#psh-pins,#psh-seg,#psh-mtg,#psh-scrim,#psh-acct,#psh-dim,#psh-tdim,#psh-rarrow{display:none}
#comp .ctool .psh-tb,#appview .mt-tiles .psh-rec{display:none}
.dk-ic{display:none}
.psh-chat-tab-icon{display:none}

@media(max-width:800px){
 :root{--ph-bg:#FFFFFF;--ph-chat:#FFFFFF;--ph-bar:#FFFFFF;--ph-field:#F2F3F5;--ph-bub:#F2F3F5;--ph-mut:#646A73;--ph-band:#F2F3F5;--ph-sheet:#FFFFFF;--ph-tile:#F2F3F5;
  --ph-bot-bg:#FDF3D0;--ph-bot-ink:#A86C00;--ph-tb:#E8EEFF;--ph-tbi:#3370FF;--ph-ti:#EBEBFF;--ph-tii:#5B5BD6;--ph-tg:#E3F7EE;--ph-tgi:#12A06A;--ph-to:#FFF0E0;--ph-toi:#E8770F;--ph-tp:#F1E9FF;--ph-tpi:#7A4DD8;--ph-tt:#DDF6F6;--ph-tti:#0E9AA0;--ph-ty:#FFF6D6;--ph-tyi:#D99A00;--ph-seg:#F2F3F5;--ph-seg-on:#FFFFFF;--ph-mtg:#F5F6F7;--ph-mtg-pill:#FFF0E0;--ph-mtg-ink:#D9640B;--ph-acol:#F2F3F5}
 @media(prefers-color-scheme:dark){:root{--ph-bg:#17181B;--ph-chat:#101113;--ph-bar:#17181B;--ph-field:#26282D;--ph-bub:#26282D;--ph-mut:#8B9098;--ph-band:#0C0D0E;--ph-sheet:#1F2023;--ph-tile:#2A2C31;
  --ph-bot-bg:#3A3110;--ph-bot-ink:#F2C230;--ph-tb:#1B2949;--ph-tbi:#5B97FF;--ph-ti:#24234A;--ph-tii:#8D8BFF;--ph-tg:#123326;--ph-tgi:#3CCB8B;--ph-to:#3A2614;--ph-toi:#FF9A3D;--ph-tp:#2C2147;--ph-tpi:#A783FF;--ph-tt:#0F3133;--ph-tti:#3CC6CC;--ph-ty:#3A3110;--ph-tyi:#F2C230;--ph-seg:#26282D;--ph-seg-on:#4A4D55;--ph-mtg:#232428;--ph-mtg-pill:#46301A;--ph-mtg-ink:#FF9A3D;--ph-acol:#111214}}

 /* ---------- shared bits ---------- */
 .psh-av{display:inline-flex;flex:none;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;border:0;padding:0;overflow:hidden;color:#fff;font:600 16px var(--f-b);cursor:pointer;background:var(--blue-fill,var(--blue))}
 .psh-av.lg{width:44px;height:44px;font-size:18px}.psh-av img{width:100%;height:100%;object-fit:cover;border-radius:50%}
 .psh-ib{display:inline-flex;flex:none;align-items:center;justify-content:center;width:44px;height:44px;border:0;border-radius:12px;background:transparent;color:var(--ink);padding:0;cursor:pointer}
 .psh-ib svg,.psh-tb svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 .psh-ib:active,.psh-tile:active,.psh-app:active{opacity:.6}

 /* ---------- app icons: Lucide (ISC; /icons/lucide-*.svg, licence /icons/LICENSE-lucide.txt), one outline set drawn as a mask in currentColor ---------- */
 .dk-ic{display:block;flex:none;width:var(--dk-s,26px);height:var(--dk-s,26px);background:currentColor;-webkit-mask:var(--dk-i) center/contain no-repeat;mask:var(--dk-i) center/contain no-repeat}
 .dk-ic[data-ic=chat]{--dk-i:url(/icons/lucide-message-square.svg)}.dk-ic[data-ic=docs]{--dk-i:url(/icons/lucide-file-text.svg)}
 .dk-ic[data-ic=calendar]{--dk-i:url(/icons/lucide-calendar-days.svg)}.dk-ic[data-ic=meetings],.dk-ic[data-ic=mtg-new]{--dk-i:url(/icons/lucide-video.svg)}
 .dk-ic[data-ic=drive]{--dk-i:url(/icons/lucide-folder.svg)}.dk-ic[data-ic=workplace]{--dk-i:url(/icons/lucide-house.svg)}
 .dk-ic[data-ic=tasks]{--dk-i:url(/icons/lucide-square-check-big.svg)}.dk-ic[data-ic=contacts]{--dk-i:url(/icons/lucide-contact.svg)}
 .dk-ic[data-ic=mail]{--dk-i:url(/icons/lucide-mail.svg)}.dk-ic[data-ic=mindnotes]{--dk-i:url(/icons/lucide-network.svg)}
 .dk-ic[data-ic=connect]{--dk-i:url(/icons/lucide-plug-zap.svg)}.dk-ic[data-ic=whatsapp]{--dk-i:url(/icons/lucide-message-circle.svg)}
 .dk-ic[data-ic=agents]{--dk-i:url(/icons/lucide-bot.svg)}.dk-ic[data-ic=integrations]{--dk-i:url(/icons/lucide-blocks.svg)}.dk-ic[data-ic=changelog]{--dk-i:url(/icons/lucide-sparkles.svg)}
 .dk-ic[data-ic=admin]{--dk-i:url(/icons/lucide-shield-check.svg)}.dk-ic[data-ic=approval]{--dk-i:url(/icons/lucide-stamp.svg)}
 .dk-ic[data-ic=attendance]{--dk-i:url(/icons/lucide-clock.svg)}.dk-ic[data-ic=leave]{--dk-i:url(/icons/lucide-calendar-x.svg)}.dk-ic[data-ic=claims]{--dk-i:url(/icons/lucide-receipt.svg)}.dk-ic[data-ic=hr]{--dk-i:url(/icons/lucide-users.svg)}.dk-ic[data-ic=okr]{--dk-i:url(/icons/lucide-target.svg)}
 .dk-ic[data-ic=wiki]{--dk-i:url(/icons/lucide-book-open.svg)}.dk-ic[data-ic=sheets]{--dk-i:url(/icons/lucide-sheet.svg)}
 .dk-ic[data-ic=slides]{--dk-i:url(/icons/lucide-presentation.svg)}.dk-ic[data-ic=base]{--dk-i:url(/icons/lucide-database.svg)}
 .dk-ic[data-ic=rooms]{--dk-i:url(/icons/lucide-door-open.svg)}.dk-ic[data-ic=whiteboard]{--dk-i:url(/icons/lucide-pen-tool.svg)}.dk-ic[data-ic=teleprompter]{--dk-i:url(/icons/lucide-scroll-text.svg)}.dk-ic[data-ic=help]{--dk-i:url(/icons/lucide-message-circle-question.svg)}
 .dk-ic[data-ic=github]{--dk-i:url(/icons/lucide-git-branch.svg)}.dk-ic[data-ic=bots]{--dk-i:url(/icons/lucide-bot.svg)}
 .dk-ic[data-ic=workspace]{--dk-i:url(/icons/lucide-building-2.svg)}.dk-ic[data-ic=more]{--dk-i:url(/icons/lucide-layout-grid.svg)}
 .dk-ic[data-ic=star]{--dk-i:url(/icons/lucide-star.svg)}.dk-ic[data-ic=mtg-join]{--dk-i:url(/icons/lucide-log-in.svg)}
 .dk-ic[data-ic=mtg-sched]{--dk-i:url(/icons/lucide-calendar-clock.svg)}.dk-ic[data-ic=mtg-share]{--dk-i:url(/icons/lucide-screen-share.svg)}
 .dk-ic[data-ic=mtg-rec]{--dk-i:url(/icons/lucide-circle-play.svg)}.dk-ic[data-ic=apps]{--dk-i:url(/icons/lucide-store.svg)}
 /* tile colours (Lark-style coloured rounded squares, white glyph: legible on the light and the dark sheet alike) */
 :root{--dk-blue:#3370FF;--dk-indigo:#5B5BD6;--dk-green:#12A06A;--dk-orange:#F27A2C;--dk-purple:#8A5CF5;--dk-teal:#0E9AA0;--dk-pink:#D9488F;--dk-amber:#E08A00;--dk-red:#F0463F;--dk-slate:#5A6475;--dk-sky:#1D8FE1}
 @media(prefers-color-scheme:dark){:root{--dk-blue:#3D6FE8;--dk-indigo:#5F5FD0;--dk-green:#169866;--dk-orange:#E07230;--dk-purple:#8358E0;--dk-teal:#11908F;--dk-pink:#C94786;--dk-amber:#C9800A;--dk-red:#DE4540;--dk-slate:#5C6678;--dk-sky:#2283CC}}

 /* ---------- bottom tab bar: five apps + More ---------- */
 #pwa-tabs{background:var(--ph-bar);border-top:.5px solid var(--line);box-shadow:none}
 #pwa-tabs button{gap:3px;padding:0;font:500 10.5px var(--f-b);letter-spacing:-.01em;color:var(--ph-mut)}#pwa-tabs span{padding:0}
 #pwa-tabs svg{width:26px;height:26px;stroke-width:1.6}#pwa-tabs .dk-ic{--dk-s:25px;margin:1px 0}
 #pwa-tabs button.on{color:var(--blue)}#pwa-tabs button.on svg{fill:currentColor;fill-opacity:.16;stroke-width:1.8}
 #pwa-tabs em{top:3px;left:calc(50% + 5px);min-width:18px;height:18px;line-height:14px;text-align:center;padding:1px 5px;font:600 11px var(--f-b);border:2px solid var(--ph-bar);box-sizing:border-box}
 body.psh-more-on #pwa-tabs button.on:not([data-more]){color:var(--ph-mut)}body.psh-more-on #pwa-tabs button.on:not([data-more]) svg{fill:none}
 body.psh-more-on #pwa-tabs button[data-more]{color:var(--blue)}

 /* ---------- chat list ---------- */
 #side{background:var(--ph-bg)}
 #side .sh2.psh-head{gap:12px;padding:6px 10px 10px 16px;min-height:56px}
 #side .sh2.psh-head>b,#side .sh2.psh-head #fb-btn{display:none}
 #psh-who{display:flex;flex-direction:column;flex:1;min-width:0;cursor:pointer;line-height:1.2}
 #psh-who b{font:600 20px var(--f-d);letter-spacing:-.01em;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #psh-who small{font:400 13px var(--f-b);color:var(--ph-mut);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #psh-who small:empty{display:none}
 #side #pwa-sbtn,#psh-plus{display:inline-flex;width:44px;height:44px;margin:0;color:var(--ink)}
 #side #pwa-sbtn svg,#psh-plus svg{width:26px;height:26px;stroke-width:1.7}
 #wsw-m .wsm-n{display:none}
 /* ---------- inbox top (phone-shell.js inboxTop): the list scrolls under a fixed header with the pinned grid, the band and the meeting row ---------- */
 #side{overflow-y:auto;overscroll-behavior:contain}
 html:root body #side{padding-top:0}
 #side .sh2.psh-head{position:sticky;top:0;z-index:5;background:var(--ph-bg);padding-top:calc(16px + var(--sa-t,env(safe-area-inset-top)))}
 #side #convs{flex:none;overflow:visible;padding-bottom:12px}
 #side #pgrid,#side #cf-rail{display:none!important}
 #psh-who{border:0;background:transparent;padding:0;text-align:left;color:inherit;align-items:flex-start}
 /* workspace switcher (#wsw-m from wslogo-ui.js, opened by the workspace name): a grid of round tiles with names under them like the
    pinned grid, current one ringed, "+" = log into another account. It used to be a flex child of #side that could shrink (flex-shrink 1 +
    overflow) to a few pixels, cutting the tiles off; now flex:none, and it animates open / closed (max-height + opacity) */
 html body #side #wsw-m{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(68px,1fr));gap:4px 0;flex:none;box-sizing:border-box;padding:0 6px;margin:0;max-height:0;opacity:0;visibility:hidden;overflow:hidden;transition:max-height .22s ease,opacity .18s ease,padding .22s ease,visibility 0s linear .22s}
 html body.psh-wsw #side #wsw-m{max-height:min(55vh,440px);opacity:1;visibility:visible;overflow-y:auto;padding:10px 6px 12px;transition:max-height .22s ease,opacity .18s ease,padding .22s ease}
 #side #wsw-m .wst,#side #wsw-m .psh-wadd{position:relative;justify-self:center;width:50px;height:50px;margin:0 0 26px;border-radius:50%;font:700 17px var(--f-b);box-shadow:inset 0 0 0 1px rgba(127,127,127,.18);background-size:cover;background-position:center}
 #side #wsw-m .wst::after,#side #wsw-m .psh-wadd::after{content:attr(data-n);position:absolute;top:calc(100% + 7px);left:50%;transform:translateX(-50%);width:66px;font:400 13px/1.2 var(--f-b);color:var(--ph-mut);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
 #side #wsw-m .wst.on{box-shadow:0 0 0 2px var(--ph-bg),0 0 0 4px var(--blue)}#side #wsw-m .wst.on::after{color:var(--ink);font-weight:500}
 #side #wsw-m .wst .wsn{top:-4px;right:-6px;box-shadow:0 0 0 2px var(--ph-bg)}
 #side #wsw-m .psh-wadd{display:flex;align-items:center;justify-content:center;border:0;padding:0;cursor:pointer;background:var(--ph-tile);color:var(--ph-mut);box-shadow:none}
 #side #wsw-m .psh-wadd svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
 #side #wsw-m .wst:active,#side #wsw-m .psh-wadd:active{opacity:.6}
 #psh-who small::after{content:"";display:inline-block;width:6px;height:6px;margin:0 0 3px 7px;border:solid var(--ph-mut);border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}
 body:not(:has(#wsw-m .wst)) #psh-who small::after{display:none}body.psh-wsw #psh-who small::after{transform:rotate(225deg);margin-bottom:-1px}
 #psh-pins{display:grid;grid-template-columns:repeat(var(--psh-cols,6),minmax(0,1fr));gap:14px 0;padding:6px 6px 16px;flex:none}
 #psh-pins[hidden]{display:none}
 .psh-pin{display:flex;flex-direction:column;align-items:center;gap:7px;min-width:0;border:0;background:transparent;padding:0 3px;color:var(--ph-mut);cursor:pointer;font:400 13px/1.2 var(--f-b);-webkit-touch-callout:none;user-select:none;touch-action:none}
 .psh-pa{position:relative;display:block;width:50px;height:50px}
 .psh-pa .cav{width:50px!important;height:50px!important;min-width:50px;border-radius:50%!important;font:600 19px var(--f-b);display:flex;align-items:center;justify-content:center;color:#fff;overflow:hidden;margin:0;background-size:cover}
 .psh-pa .cav img{width:100%;height:100%;object-fit:cover}
 .psh-pa>.pgo{width:14px;height:14px;border-color:var(--ph-bg)}
 .psh-pa em{position:absolute;top:-4px;right:-6px;min-width:20px;height:20px;padding:0 5px;box-sizing:border-box;border-radius:10px;border:2px solid var(--ph-bg);background:#F54A45;color:#fff;font:600 11px/16px var(--f-b);font-style:normal;text-align:center}
 .psh-pa em.mu{background:var(--ph-mut)}.psh-pa em.dot{min-width:12px;width:12px;height:12px;padding:0;top:-1px;right:-1px}
 .psh-pl{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ph-mut)}
 .psh-tgi{display:flex;align-items:center;justify-content:center;width:50px;height:50px;border-radius:50%;background:var(--ph-tile);color:var(--ph-mut)}
 .psh-tgi svg{fill:currentColor;stroke:none}#psh-pins.psh-col .psh-tgi svg{transform:rotate(180deg)}
 .psh-pin:active{opacity:.6}
 #psh-seg{display:flex;align-items:center;gap:10px;flex:none;padding:10px 16px;background:var(--ph-bg);border-top:.5px solid var(--line)}
 .psh-flt{display:inline-flex;flex:none;align-items:center;justify-content:center;width:40px;height:40px;border:0;border-radius:50%;background:var(--ph-seg);color:var(--ink);padding:0;cursor:pointer}
 .psh-flt svg{fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round}.psh-flt.on{background:var(--blue-wash);color:var(--blue)}
 .psh-sg{display:flex;flex:1;min-width:0;height:40px;padding:3px;box-sizing:border-box;border-radius:20px;background:var(--ph-seg)}
 .psh-sg button{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;gap:5px;border:0;border-radius:17px;background:transparent;color:var(--ph-mut);font:400 15.5px var(--f-b);padding:0 6px;cursor:pointer;white-space:nowrap}
 .psh-sg button i{font-style:normal}.psh-sg button i:empty{display:none}
 .psh-sg button.on{background:var(--ph-seg-on);color:var(--ink);font-weight:500}
 #psh-mtg{display:flex;align-items:center;gap:14px;width:100%;flex:none;border:0;margin:0;padding:12px 16px;min-height:76px;box-sizing:border-box;background:var(--ph-mtg);color:var(--ink);text-align:left;cursor:pointer}
 #psh-mtg:active{opacity:.7}
 .psh-mi{display:flex;flex:none;align-items:center;justify-content:center;width:52px;height:52px;border-radius:50%;background:#F5853F;color:#fff}
 .psh-mi svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.psh-mi svg .f{fill:currentColor}
 .psh-mb{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
 .psh-m1{display:flex;align-items:center;gap:10px;min-width:0}
 .psh-m1 b{flex:1 1 auto;min-width:0;font:500 17px var(--f-b);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .psh-m1 em{flex:none;font:500 13px var(--f-b);font-style:normal;color:var(--ph-mtg-ink);background:var(--ph-mtg-pill);border-radius:4px;padding:3px 7px}
 .psh-mb small{font:400 14.5px var(--f-b);color:var(--ph-mut)}
 #convs .cv.pinned{background:transparent}#convs .cv .pnm{display:none}
 #side{touch-action:pan-y;touch-action:pan-y pinch-zoom}
 /* chat filters (filterbar-ui.js) on phones: a full-height panel from the left over a scrim, like Lark (swipe or the band's filter button) */
 html body.fb-ovl #fbar{position:fixed;left:0!important;top:0!important;bottom:0;width:min(80vw,340px);max-height:none;height:100dvh;border:0;border-radius:0;z-index:9050;background:var(--ph-sheet);box-shadow:none;padding-top:var(--sa-t,env(safe-area-inset-top));animation:psh-l .2s ease-out}
 html body.fb-ovl #fbar .fb-h{height:64px;margin:6px 0 4px;padding:0 14px 0 26px}
 html body.fb-ovl #fbar .fb-h b{font:600 26px var(--f-d);margin-left:0}
 html body.fb-ovl #fbar .fb-h [data-a=icons],html body.fb-ovl #fbar .fb-pin{display:none}
 html body.fb-ovl #fbar .fb-ib{width:44px;height:44px}html body.fb-ovl #fbar .fb-ib svg{width:24px;height:24px}
 html body.fb-ovl #fbar .fb-list{padding:0 8px 24px}
 html body.fb-ovl #fbar .fb-i{height:56px;gap:18px;padding:0 18px;font:400 18px var(--f-b);border-radius:10px}
 html body.fb-ovl #fbar .fb-i svg{width:24px;height:24px}html body.fb-ovl #fbar .fb-i .fb-n{font-size:17px}
 html body.fb-ovl #fbar .fb-i.on{font-weight:500}
 html body.fb-ovl #fbar .fb-i[data-lid]{padding-left:44px}html body.fb-ovl #fbar .fb-add{opacity:1;top:6px}
 html body.fb-ovl #fbar .fb-none{padding-left:62px;font-size:15px}
 #psh-scrim{display:block;position:fixed;inset:0;z-index:9040;background:rgba(0,0,0,.45);opacity:0;pointer-events:none;visibility:hidden;transition:opacity .2s,visibility 0s linear .2s}
 #psh-scrim.on{opacity:1;pointer-events:auto;visibility:visible;transition:opacity .2s,visibility 0s}
 @keyframes psh-l{from{transform:translateX(-100%)}}
 /* account sheet (avatar): workspace column + profile panel over a scrim */
 #psh-acct{display:block;position:fixed;inset:0;z-index:9060;background:rgba(0,0,0,0);pointer-events:none;visibility:hidden;transition:background .2s,visibility 0s linear .22s}
 #psh-acct.on{background:rgba(0,0,0,.45);pointer-events:auto;visibility:visible;transition:background .2s,visibility 0s}
 .psh-acs{display:flex;height:100%;width:min(88vw,380px);background:var(--ph-sheet);transform:translateX(-100%);transition:transform .22s ease-out}
 #psh-acct.on .psh-acs{transform:none}
 .psh-wcol{flex:none;width:92px;display:flex;flex-direction:column;align-items:center;gap:18px;padding:calc(var(--sa-t,env(safe-area-inset-top)) + 24px) 0 24px;background:var(--ph-acol);overflow-y:auto}
 .psh-wt{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;width:84px;border:0;background:transparent;padding:0;color:var(--ph-mut);font:400 12px/1.2 var(--f-b);cursor:pointer}
 .psh-wl{display:flex;align-items:center;justify-content:center;width:50px;height:50px;border-radius:12px;background:var(--blue-fill,var(--blue)) center/cover no-repeat;color:#fff;font:700 18px var(--f-b);overflow:hidden}
 .psh-wl.add{background:var(--ph-tile);color:var(--ph-mut)}.psh-wl svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
 .psh-wl em{display:none}
 .psh-wn{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:80px;text-align:center}
 .psh-wt.on .psh-wn{color:var(--ink)}.psh-wt.on::before{content:"";position:absolute;left:-4px;top:6px;width:4px;height:38px;border-radius:0 3px 3px 0;background:var(--blue-fill,var(--blue))}
 .psh-amain{flex:1;min-width:0;display:flex;flex-direction:column;padding:calc(var(--sa-t,env(safe-area-inset-top)) + 24px) 18px 24px;overflow-y:auto}
 .psh-atop{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
 .psh-aa{display:flex;align-items:center;justify-content:center;width:68px;height:68px;border-radius:50%;overflow:hidden;color:#fff;font:600 26px var(--f-b);flex:none}.psh-aa img{width:100%;height:100%;object-fit:cover}
 .psh-st{flex:none;max-width:60%;height:34px;padding:0 12px;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--ink);font:400 15px var(--f-b);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
 .psh-an{margin-top:12px;font:600 23px var(--f-d);color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .psh-aw{margin-top:4px;font:400 14.5px var(--f-b);color:var(--ph-mut)}
 .psh-sig{display:block;width:100%;margin-top:12px;padding:8px 10px;border:0;border-radius:6px;background:var(--ph-field);color:var(--ph-mut);font:400 14px var(--f-b);text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
 .psh-al{display:flex;flex-direction:column;margin-top:18px}
 .psh-ai2{display:flex;align-items:center;gap:16px;min-height:56px;border:0;background:transparent;padding:0 2px;color:var(--ink);font:400 17px var(--f-b);text-align:left;cursor:pointer}
 .psh-ai2 svg{flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 .psh-ai2 .i-profile,.psh-ai2 .i-switch,.psh-ai2 .i-settings,.psh-ai2 .i-admin,.psh-ai2 .i-apps{color:var(--ph-tbi)}.psh-ai2 .i-contact{color:#F54A45}.psh-ai2 .i-app{color:var(--ph-tti)}
 .psh-ai2:active,.psh-wt:active{opacity:.6}
 #convs .cv{border-radius:0;margin:0;padding:10px 16px;min-height:76px;gap:14px}
 /* a big account has hundreds of rows: rows off screen skip style, layout and paint (they keep their last height, 76 px before the first
    paint), so a list re-render, a class on <body> or the keyboard's resize restyles a screenful instead of every row (phone-fps.check.js) */
 #side #convs .cv{content-visibility:auto;contain-intrinsic-size:auto 76px}
 #convs .cv.on{background:transparent}#convs .cv:active{background:var(--wash)}
 /* avatars are circles: one fixed size on both axes (chatlist.css' #convs .cv .cav is more specific than a plain #convs .cav, so a
    width-only override left 52x44 ovals), never shrunk or stretched by the flex row, photos (center/cover backgrounds or <img>) cropped */
 #convs .cv .cav,#convs .cv .cav.rd{width:52px;height:52px;min-width:52px;max-width:52px;min-height:52px;max-height:52px;flex:0 0 52px;border-radius:50%;font:600 19px var(--f-b)}
 #convs .cv .cav,.psh-av,.psh-aa,.psh-pa .cav,#msgs .m .av,#acb,#side .cav,.gs-mrow .cav,.gs-card .cav.rd,#head .cav.rd{aspect-ratio:1/1;flex-shrink:0;box-sizing:border-box}
 .psh-av img,.psh-aa img,.psh-pa .cav img,#convs .cav img,#msgs .m .av img{width:100%;height:100%;object-fit:cover;border-radius:50%}
 #convs .cn{font:500 17px var(--f-b);color:var(--ink)}#convs .ct{font:400 13px var(--f-b);color:var(--ph-mut)}
 #convs .pv{font:400 14.5px var(--f-b);color:var(--ph-mut)}
 /* the "+" menu (app.js newMenu): no screen sharing where the browser cannot capture the screen (iPhone / iPad) */
 html.ts-nogdm .nmenu .mi[data-arg=newShareScreen]{display:none}
 .nmenu{border-radius:14px;padding:6px 0;min-width:250px}.nmenu .mi{min-height:52px;font:400 16px var(--f-b);gap:14px;padding:0 18px}.nmenu .mi svg{width:24px;height:24px}

 /* ---------- chat header ---------- */
 #head{background:var(--ph-bar);border-bottom:0;gap:2px;padding-right:4px}
 #head #hav{display:none}
 #head .hm{flex:1;align-items:center;text-align:center;min-width:0}
 #head h2{font:600 17px var(--f-d);display:inline-block;position:relative;padding-right:16px;max-width:100%;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #head h2::after{content:"";flex:none;width:7px;height:7px;border:solid var(--ph-mut);border-width:1.6px 1.6px 0 0;transform:rotate(45deg);position:absolute;right:4px;top:calc(50% - 4px)}
 #head #hmeta,#head #psh-hmeta{font:400 12px var(--f-b);color:var(--ph-mut);text-align:center}
 #head #hmeta.psh-has{display:none}#head #psh-hmeta{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}#head #psh-hmeta:empty{display:none}
 #head .hr .ibtn{color:var(--ink)}#head .hr .ibtn svg{width:24px;height:24px}
 #htabs{display:flex;flex:none;align-items:center;gap:6px;padding:8px 16px;background:var(--ph-bar);border-bottom:1px solid var(--line);box-sizing:border-box}
 #htabs button{flex:1;min-width:0;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:7px;box-sizing:border-box;padding:9px 10px;margin:0;border:0;border-radius:10px;background:transparent;color:var(--ph-mut);font:500 14px/1.2 var(--f-b);white-space:nowrap;transition:background .18s,color .18s}
 #htabs button.on{background:var(--blue-wash);color:var(--blue);font-weight:600}
 #htabs .psh-chat-tab-icon{display:block;flex:none;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 #htabs button:focus-visible,.psh-sg button:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
 .psh-sg button .psh-seg-icon{display:inline-flex;align-items:center;justify-content:center;flex:none}
 .psh-seg-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 .psh-sg button{font-size:13px;gap:5px;min-height:44px;padding:0 5px;position:relative;transition:background .18s,color .18s}
 .psh-sg{height:50px;padding:3px;border-radius:15px;align-items:stretch}
 .psh-sg button{border-radius:12px}
 #psh-seg{gap:8px;padding:10px 12px}
 .psh-sg button i:not(:empty){display:inline-flex;align-items:center;justify-content:center;min-width:14px;height:16px;font-size:10px;font-weight:600;line-height:1;padding:0 3px;border-radius:5px;background:var(--ph-seg-on);color:var(--ph-mut);box-sizing:border-box}
 @media(max-width:420px){.psh-sg{height:58px}.psh-sg button{flex-direction:column;gap:4px;padding:5px 2px;font-size:11px}.psh-sg button i:not(:empty){position:absolute;top:4px;right:4px;min-width:14px;height:14px;font-size:9px}#htabs{padding:7px 12px;gap:4px}}
 @media(prefers-reduced-motion:reduce){#htabs button,.psh-sg button{transition:none}}

 /* ---------- messages ---------- */
 #msgwrap,#msgs{background:var(--ph-chat)}
 #msgs .day{font:400 13px var(--f-b);color:var(--ph-mut);margin:18px 0 10px}
 #msgs .day::before,#msgs .day::after{display:none}
 /* time lines (phone-shell.js stamps()): the day divider carries the first message's time; a gap of more than 15 minutes gets its own line */
 #msgs .day{gap:0}#msgs .day[data-psh-t]::after{display:inline;content:attr(data-psh-t);margin:0;flex:none;width:auto;height:auto;background:none;border:0}
 #msgs .psh-ts{display:block;text-align:center;font:400 13px var(--f-b);color:var(--ph-mut);margin:16px 0 8px}
 #msgs .m{gap:10px}
 #msgs .m .av{width:40px;height:40px;min-width:40px;max-width:40px;min-height:40px;max-height:40px;flex:0 0 40px;border-radius:50%;font-size:16px}
 #msgs .m .hd .n{font:400 13px var(--f-b);color:var(--ph-mut)}#msgs .m .hd .t{font:400 12px var(--f-b);color:var(--ph-mut)}
 /* bots (incoming webhooks / API bots post with a negative user id): a BOT tag like the one app.js draws for the built-in "Bot" */
 #msgs .m[data-uid^="-"] .hd:not(:has(.bot)) .n::after{content:"BOT";display:inline-block;margin-left:7px;padding:2px 5px;border-radius:4px;font:600 10.5px/1.1 var(--f-b);letter-spacing:.03em;vertical-align:1px;background:var(--ph-bot-bg);color:var(--ph-bot-ink)}
 #msgs .m .bot{background:var(--ph-bot-bg);color:var(--ph-bot-ink);border:0}
 #msgs .m .body.bub{font-size:16px;line-height:1.45;border-radius:12px;padding:10px 13px;background:var(--ph-bub)}
 #msgs .m.mine .body.bub{background:var(--bub-mine,var(--blue-wash))}
 #msgs .m .body.bub.hascard{padding:0;background:transparent}
 #msgs .m .bft.solo{background:var(--ph-bub)}#msgs .m.mine .bft.solo{background:var(--bub-mine,var(--blue-wash))}#msgs .bft .rx .mrc{min-height:26px;padding:3px 10px}#msgs .bft .tlink,#msgs .bft .trp{font-size:14px;min-height:28px}   /* reactions + thread preview inside the bubble (app.js seatFoot) */
 #msgs .rcard{border-radius:12px;background:var(--ph-bub);border:0;overflow:hidden}
 #msgs .rcb{font-size:16px;line-height:1.5}
 #msgs .rcard .rbtn{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;margin-top:12px;border:1px solid var(--blue);border-radius:8px;background:transparent;color:var(--blue);font:500 16px var(--f-b);text-decoration:none;box-sizing:border-box}

 /* ---------- opening a chat (phone-shell.js "opening a chat"): row highlight on touch; while the chat view slides in / out or follows an
    edge swipe (body.psh-nav), the chat list stays drawn underneath and the chat view is a full-screen layer moved by transform only ---------- */
 #convs .cv.psh-tap,#convs .cv.psh-tap.on{background:var(--wash);transition:none}.psh-pin.psh-tap{opacity:.6}
 /* inside a chat the list stays laid out (hidden, same box as on the list screen: fixed, full width, above the tab bar), so an edge swipe
    or the back button only has to make it visible, never lay it out. Under .psh-nav the list and the tab bar show and move with the
    parallax (phone-shell.js layers: -30% -> 0), a dim layer (#psh-dim) fades over them, the chat view slides on top */
 body.m-in-chat:not(.appmode) #side,body.psh-nav:not(.appmode) #side{display:flex!important}
 body.m-in-chat:not(.appmode) #side{position:fixed;left:0;top:0;width:100%;height:calc(100dvh - var(--tabh));visibility:hidden;pointer-events:none}
 body.psh-nav:not(.appmode) #pwa-tabs{display:flex!important}   /* a small fixed bar: shown only for the slide */
 body.psh-nav:not(.appmode) #side,body.psh-nav:not(.appmode) #pwa-tabs{visibility:visible;will-change:transform}
 body.psh-nav:not(.appmode) #main{display:flex!important;position:fixed;left:0;top:0;width:100%;height:100dvh;z-index:95;background:var(--ph-chat);will-change:transform;box-shadow:-10px 0 28px rgba(0,0,0,.14)}
 body.psh-nav:not(.appmode) #psh-dim{display:block;position:fixed;left:0;top:0;width:100%;height:100dvh;z-index:94;background:rgba(0,0,0,.14);pointer-events:none;will-change:opacity}
 body:not(.appmode) #main{touch-action:pan-y;touch-action:pan-y pinch-zoom}   /* the edge swipe owns horizontal moves on the chat view; vertical scrolling stays native */
 body.psh-drag,body.psh-rdrag{-webkit-user-select:none;user-select:none}
 /* thread swipe (phone-shell.js "thread swipe"): the thread / topic follows the finger off to the side, the view under it slides in from 30% under a
    fading dim layer (#psh-tdim, put right before the thread so it shares its stacking context). The topic panel (#tpanel) is a fixed full-screen
    layer over the chat; the full-page thread chat (#tchat + the composer) is laid over the group's own view (#head, #msgwrap), which
    thread-chat-ui.js shows again for the drag only (body.psh-tpeek) */
 body:not(.appmode).tp-on #tpanel{touch-action:pan-y;touch-action:pan-y pinch-zoom}   /* pinch-zoom: plain pan-y would block a pinch in the topic (Chrome / Android) */
 body.psh-tdrag{-webkit-user-select:none;user-select:none}
 body.psh-tdrag #psh-tdim{display:block;pointer-events:none;background:rgba(0,0,0,.14);will-change:opacity}
 body.psh-tdrag #psh-tdim.k-panel{position:fixed;left:0;top:0;width:100%;height:100dvh;z-index:69}
 body.psh-tdrag #psh-tdim.k-chat{position:absolute;left:0;top:0;right:0;bottom:0;z-index:2}
 body.psh-tdrag.psh-tk-panel #tpanel{will-change:transform;box-shadow:-10px 0 28px rgba(0,0,0,.14)}
 body.psh-tdrag.psh-tk-panel #main,body.psh-tpeek #head,body.psh-tpeek #msgwrap{will-change:transform}
 body.psh-tpeek #main{position:relative}
 body.psh-tpeek #tchat{position:absolute;left:0;top:0;right:0;bottom:var(--tpk-b,0px);z-index:3;will-change:transform;box-shadow:-10px 0 28px rgba(0,0,0,.14)}
 body.psh-tpeek #comp{position:relative;z-index:3;will-change:transform}
 /* swipe-to-reply arrow (phone-shell.js): fixed at the message's left, revealed by the scrubbed animation */
 #psh-rarrow{display:flex;align-items:center;justify-content:center;position:fixed;left:14px;top:0;width:30px;height:30px;border-radius:50%;background:var(--ph-bub);color:var(--ph-mut);z-index:96;pointer-events:none;opacity:0}
 /* long chats: the newest messages first, older ones load as you scroll up (#more is the IntersectionObserver sentinel); images keep a
    reserved box while they load (loading=lazy, decoding=async), so nothing below them jumps */
 #msgs{overflow-anchor:none}   /* the same on every engine (iOS WebKit has no scroll anchoring): app.js keeps the position itself */
 #msgs #more{display:block;width:auto;min-height:36px;margin:4px auto;border:0;background:transparent;box-shadow:none;color:var(--ph-mut);font:400 13px var(--f-b)}
 #msgs img.att{display:block;width:min(240px,100%);max-height:none;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:8px;border:1px solid var(--img-edge);background:var(--ph-bub)}   /* Lark corners + hairline edge (chat-polish.css); the 4:3 box stays: it is reserved before the image loads */
 #msgs .m>div>a:has(>img.att){width:min(240px,100%)}   /* the link around a photo is fit-content (chat-polish.css): give it the box's width, or the img's width:min(240px,100%) resolves against an empty link before the file loads and the reserved 4:3 box collapses (chat-open-ui) */
 #msgs .alb{width:min(260px,100%)} #msgs .alb img.att{width:100%;height:100%;aspect-ratio:auto;border-radius:0;border:0}

 /* ---------- composer: input field, one toolbar row ---------- */
 #comp{background:var(--ph-bar);border-top:0;padding:8px 10px calc(4px + var(--sa-b,env(safe-area-inset-bottom)))}
 #comp .cbox{position:relative;display:flex;flex-direction:column;border:0!important;background:transparent!important;box-shadow:none!important;padding:0;border-radius:0}
 html #comp #tx{background:var(--ph-field)!important;border:0!important;border-radius:12px;padding:13px 48px 13px 14px;min-height:50px;font:400 16px/1.4 var(--f-b);color:var(--ink);box-sizing:border-box}
 #comp #tx::placeholder{color:var(--ph-mut)}#comp #tx:placeholder-shown{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #comp .ctool{position:static;display:flex;align-items:center;justify-content:space-between;gap:0;padding:6px 0 0;border:0;min-height:0}
 #comp .ctool>*{order:20;margin:0!important}
 #comp .ctool .ibtn{width:46px;height:46px;color:var(--ink-soft);border-radius:12px;background:transparent;display:inline-flex;align-items:center;justify-content:center}
 #comp .ctool .ibtn svg{width:26px!important;height:26px!important;stroke-width:1.6}#comp .ctool .ibtn>span{display:inline-flex}
 #comp .ctool .ibtn[data-emo]{order:1}#comp .ctool .ibtn[data-do=insAt]{order:2}#comp .ctool #psh-img{order:3;display:inline-flex}#comp .ctool #psh-mic{order:4;display:inline-flex}
 html #comp .ctool .ibtn.aa{order:5;display:inline-flex!important}#comp .ctool .ibtn[title=More]{order:6}#comp .ctool .sgrp{order:7;margin-left:0;position:static}
 /* files go through "+" (Upload file); the voice recorder button lives in voice mode; Expand sits inside the field */
 #comp .ctool .ibtn[data-do=attach],#comp .ctool #vm-btn,#comp .ctool .sgrp .chev,#comp .ctool #psh-kb{display:none}
 html #comp .ctool .ibtn[title=Expand]{display:inline-flex!important;position:absolute;top:3px;right:2px;width:44px;height:44px;order:0}
 html #comp .ctool .ibtn[title=Expand] svg{width:22px;height:22px}
 #comp .ctool .sgrp{background:transparent!important;border:0;box-shadow:none;border-radius:0}#comp #sendb{width:46px;height:46px;min-height:46px;background:transparent!important;color:var(--blue);border-radius:12px;box-shadow:none}
 #comp #sendb svg{width:28px!important;height:28px!important;fill:currentColor;fill-opacity:.12}
 #comp #sendb.off{color:var(--ph-mut)}#comp #sendb.off svg{fill-opacity:0}
 #comp .fbar{padding:0 0 6px}
 /* editing a message (msg-edit.js): the "Edit message" bar is a rounded field-coloured strip above the text box, x is a full 40 px target */
 #comp .medbar{background:var(--ph-field);border-left:0;border-radius:12px;margin:0 0 8px;padding:4px 2px 4px 12px}#comp .medbar .medx{width:40px;height:40px}#comp .medbar .medx svg{width:18px;height:18px}
 #comp #sendb.med-save .med-ck svg{width:28px!important;height:28px!important}
 /* voice mode: [keyboard] [Hold to Talk]; the big bar is the real recorder button (#vm-btn), so hold / slide / tap behave as before */
 html body.psh-voice #comp #tx,body.psh-voice #comp .fbar{display:none!important}
 html body.psh-voice #comp .ctool{padding:0;gap:10px;justify-content:flex-start}
 html body.psh-voice #comp .ctool>*{display:none!important}
 html body.psh-voice #comp .ctool .ibtn[title=Expand],html body.psh-voice #comp .ctool .ibtn.aa{display:none!important}
 html body.psh-voice #comp .ctool #psh-kb{display:inline-flex!important;order:1;width:54px;height:54px;background:var(--ph-field);color:var(--ink-soft)}
 html body.psh-voice #comp .ctool #vm-btn{display:flex!important;order:2;flex:1;height:54px;width:auto;border-radius:12px;background:var(--ph-field);color:var(--ink);touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
 html body.psh-voice #comp .ctool #vm-btn svg{display:none}
 html body.psh-voice #comp .ctool #vm-btn::after{content:"Hold to Talk";font:500 17px var(--f-b)}
 /* while HELD the button stays rendered (it owns the pointer) under the recording bar; locked / review: the bar alone, never both */
 body.psh-voice.vm-on.vm-hold #comp .cbox{display:flex!important}
 html body.psh-voice.vm-on:not(.vm-hold) #comp .cbox{display:none!important}
 html body.psh-voice #comp .ctool #vm-btn.rec{background:var(--blue-wash);color:var(--blue)}body.psh-voice #comp .ctool #vm-btn.rec::after{content:"Release to send"}
 body.psh-voice.vm-hold #vm-bar.cancel~.cbox #vm-btn.rec::after{content:"Release to cancel"}
 #comp #vm-bar{margin-bottom:8px;border:0;background:var(--ph-field);border-radius:14px}
 #comp #vm-bar .vb:not(.pri),#comp #vm-bar .lk{background:var(--ph-bar);border-color:transparent}
 #comp #vm-bar.cancel{background:color-mix(in srgb,var(--red) 14%,var(--ph-field))}
 #comp #vm-bar .auto{border-color:color-mix(in srgb,var(--ph-mut) 45%,transparent)}
 /* a message with no text (an image / album / file only) has an empty .body: no empty pill above its picture */
 #msgs .m .body.bub:empty{display:none}
 /* one "..." in the chat header: the chat's own settings (#gibtn, Lark); pin / unread live on the row's long-press menu */
 #head .hr #gibtn~#pin-hbtn{display:none}

 /* ---------- app headers (Docs, Meetings and every other app) ---------- */
 body.appmode #appview{background:var(--ph-bg)}
 #appview .ap-head{gap:12px;padding:10px 8px 10px 16px;border-bottom:0;background:transparent;min-height:60px;flex-wrap:nowrap}
 #appview .ap-head h2{flex:1;min-width:0;font:600 24px var(--f-d);letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #appview .ap-head .ap-actions{display:flex;align-items:center;gap:2px;flex:none}
 #appview.psh-docs .ap-head .ap-actions .btn{display:none}
 #appview.psh-docs .psh-hs,#appview.psh-docs .psh-imp,#appview.psh-mtg .psh-hs,#appview.psh-mtg .psh-gear{display:inline-flex}
 #appview .psh-ib svg{width:26px;height:26px}

 /* ---------- Docs home ---------- */
 #appview.psh-docs .ap-body{padding:4px 0 0}
 .psh-tiles{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;padding:8px 8px 22px}
 .psh-tile{display:flex;flex-direction:column;align-items:center;gap:9px;border:0;background:transparent;padding:4px 0;color:var(--ink);font:400 14px var(--f-b);cursor:pointer;min-width:0}
 .psh-ti{display:flex;align-items:center;justify-content:center;width:60px;height:60px;border-radius:16px}
 .psh-ti .dk-ic{--dk-s:28px}.psh-ti{color:#fff}
 .psh-tile.b .psh-ti{background:var(--dk-blue)}.psh-tile.i .psh-ti{background:var(--dk-indigo)}.psh-tile.g .psh-ti{background:var(--dk-green)}.psh-tile.o .psh-ti{background:var(--dk-orange)}.psh-tile.y .psh-ti{background:var(--dk-amber)}
 .psh-tl{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #appview.psh-docs .dx-listbar{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:0 16px;margin:0}
 #appview.psh-docs .tabs2{display:flex;justify-content:center;gap:34px;border:0;background:transparent;padding:0;margin:0;box-shadow:none}
 #appview.psh-docs .tabs2 button{position:relative;border:0!important;background:transparent!important;box-shadow:none!important;padding:10px 0 12px;font:500 16px var(--f-b);color:var(--ph-mut);border-radius:0}
 #appview.psh-docs .tabs2 button.on{color:var(--ink);font-weight:600}
 #appview.psh-docs .tabs2 button.on::after{content:"";position:absolute;left:50%;bottom:2px;width:24px;height:3px;border-radius:2px;background:var(--blue-fill,var(--blue));transform:translateX(-50%)}
 #appview.psh-docs .tabs2{justify-content:flex-start;overflow-x:auto;scrollbar-width:none}#appview.psh-docs .tabs2::-webkit-scrollbar{display:none}
 #appview.psh-docs:not(.psh-q) .dx-search{display:none}
 #appview.psh-docs .dx-empty{border:0;background:transparent;padding:64px 24px 24px;text-align:center}
 #appview.psh-docs .dx-empty h3{display:none}
 #appview.psh-docs .dx-empty p{font:400 16px var(--f-b);color:var(--ink-soft);margin:14px 0 18px}
 #appview.psh-docs .dx-empty .dx-btn.pri{min-height:44px;padding:0 26px;border-radius:8px;font:500 16px var(--f-b)}
 .psh-ill{display:block;margin:0 auto}.psh-ill svg{width:132px;height:106px}
 .psh-ill .a{fill:var(--ph-tb);stroke:var(--ph-tbi);stroke-width:2}.psh-ill .b{fill:var(--ph-tt);stroke:var(--ph-tti);stroke-width:2}.psh-ill .c{fill:var(--ph-to);stroke:var(--ph-toi);stroke-width:2}.psh-ill .l{fill:none;stroke:var(--ph-tbi);stroke-width:2;stroke-linecap:round}
 #appview.psh-docs .psh-fab{display:flex;position:fixed;right:18px;bottom:calc(var(--tabh) + 22px);z-index:60;width:60px;height:60px;border-radius:50%;border:0;align-items:center;justify-content:center;background:var(--blue-fill,var(--blue));color:#fff;box-shadow:0 8px 22px -6px rgba(51,112,255,.65);cursor:pointer}
 #appview.psh-docs .psh-fab svg{fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round}

 /* ---------- Meetings home ---------- */
 #appview.psh-mtg .ap-body{padding:0}
 #appview.psh-mtg .mt-wrap{display:flex;flex-direction:column;gap:0;padding:0;margin:0;height:auto;min-height:0;background:var(--ph-bg);overflow-x:hidden}
 #appview.psh-mtg .mt-left{width:auto;padding:4px 8px 20px;border:0;border-bottom:10px solid var(--ph-band);position:static;background:transparent;overflow:visible}
 #appview.psh-mtg:not(.psh-q) .mt-search{display:none}#appview.psh-mtg .mt-search{margin:0 8px 14px}
 #appview.psh-mtg .rl-open{display:none}
 #appview.psh-mtg .mt-tiles{display:flex;gap:2px;margin:4px 0 0}#appview.psh-mtg .mt-tiles>.mt-t{flex:1 1 0;min-width:0}
 #appview.psh-mtg .mt-t{display:flex!important;flex-direction:column;align-items:center;justify-content:flex-start;gap:9px;background:transparent!important;border:0!important;box-shadow:none!important;min-height:0!important;height:auto!important;padding:4px 0!important;color:var(--ink)!important;font:400 13px var(--f-b)!important;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #appview.psh-mtg .mt-t .tw{display:flex;align-items:center;justify-content:center;width:60px;height:60px;border-radius:16px;margin:0;background:var(--ph-tb);color:var(--ph-tbi)}
 #appview.psh-mtg .mt-t .tw svg{width:28px;height:28px;stroke:currentColor}
 #appview.psh-mtg .mt-t .tw:has(.dk-ic) svg{display:none}#appview.psh-mtg .mt-t .tw .dk-ic{--dk-s:28px}
 #appview.psh-mtg .mt-t .tw{background:var(--dk-blue);color:#fff}
 #appview.psh-mtg .mt-t[data-h=join] .tw{background:var(--dk-indigo)}
 #appview.psh-mtg .mt-t.o .tw{background:var(--dk-orange);color:#fff}#appview.psh-mtg .mt-t.g .tw{background:var(--dk-green);color:#fff}
 #appview.psh-mtg .mt-t.psh-rec{display:flex}#appview.psh-mtg .mt-t.psh-rec .tw{background:var(--dk-purple);color:#fff}
 html.ts-nogdm #appview.psh-mtg .mt-t[data-h=share]{display:none!important}
 #appview.psh-mtg .mt-right{padding:0 16px 24px;width:auto;min-width:0;background:transparent}
 #appview.psh-mtg .mt-sec{font:600 18px var(--f-d);color:var(--ink);margin:20px 0 10px;padding:0;text-transform:none;letter-spacing:0}
 #appview.psh-mtg .mt-card,#appview.psh-mtg .mt-search{background:transparent;border:0;padding:0;box-shadow:none}
 #appview.psh-mtg .mt-none{padding:8px 0;color:var(--ph-mut);border:0;background:transparent}
 #appview.psh-mtg .mt-gh{font:500 13px var(--f-b);color:var(--ph-mut);padding:6px 0 4px;background:transparent}
 /* empty "Live now" / "Upcoming" sections are left out (Lark shows History only); a real live or upcoming meeting still shows */
 #appview.psh-mtg .mt-sec:has(+ .mt-card > .mt-none:only-child):not(:nth-last-child(2)),
 #appview.psh-mtg .mt-sec:has(+ .mt-card > .mt-none:only-child):not(:nth-last-child(2)) + .mt-card{display:none}
 #appview.psh-mtg .mt-r{padding:10px 0;gap:14px;border:0;background:transparent}
 #appview.psh-mtg .mt-r.hist .mt-th{width:128px;height:80px;min-width:128px;border-radius:10px;font:600 26px var(--f-b)}
 #appview.psh-mtg .mt-r .tt b{font:500 16px var(--f-b)}#appview.psh-mtg .mt-r .mm{font:400 14px var(--f-b);color:var(--ph-mut)}

 /* meeting Settings window (meet-ui.js, opened by the Meetings gear and from a call): full screen, sections as a scrolling tab strip */
 #setm{align-items:stretch!important}
 #setm .box{width:100%!important;height:100%!important;border-radius:0!important;grid-template-columns:1fr!important;grid-template-rows:calc(52px + var(--sa-t,env(safe-area-inset-top))) auto 1fr!important;box-shadow:none!important}
 #setm .sset-h{grid-column:1;padding-top:var(--sa-t,env(safe-area-inset-top));font-size:17px}
 #setm .sset-x{left:6px;top:calc(50% + var(--sa-t,env(safe-area-inset-top)) / 2);width:44px;height:44px;border-radius:12px;background:transparent;color:var(--ink);font:400 30px/44px var(--f-b);text-align:center}
 #setm .sset-l{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;border-right:0;border-bottom:.5px solid var(--line);padding:6px 10px}#setm .sset-l::-webkit-scrollbar{display:none}
 #setm .sset-l div{flex:none;height:40px;margin:0;padding:0 12px 0 8px;gap:8px;font-size:15px;white-space:nowrap}
 #setm .sset-r{padding:18px 16px calc(24px + var(--sa-b,env(safe-area-inset-bottom)))}

 /* ---------- More: bottom sheet with every app that is not in the tab bar ---------- */
 /* closed = visibility:hidden once the slide-out ends (visibility switches after the .24s transform), not only translated: the sheet hangs
    below bottom:var(--tabh), and inside a chat (no tab bar) or with the keyboard up that strip is on screen, so a translated-only sheet peeked under the composer */
 #psh-more{display:block;position:fixed;left:0;right:0;top:0;bottom:var(--tabh);z-index:89;background:rgba(0,0,0,0);pointer-events:none;visibility:hidden;transition:background .2s ease,visibility 0s linear .24s}
 #psh-more.on{background:rgba(0,0,0,.5);pointer-events:auto;visibility:visible;transition:background .2s ease,visibility 0s}
 .psh-sh{position:absolute;left:0;right:0;bottom:0;max-height:78%;overflow:auto;background:var(--ph-sheet);border-radius:18px 18px 0 0;padding:8px 16px 20px;transform:translateY(105%);transition:transform .24s ease;overscroll-behavior:contain}
 #psh-more.on .psh-sh{transform:none}
 .psh-grab{width:40px;height:5px;border-radius:3px;background:var(--line);margin:0 auto 14px}
 .psh-shh{display:flex;align-items:center;justify-content:space-between;padding:0 8px 10px}.psh-shh b{font:600 19px var(--f-d);color:var(--ink)}
 .psh-lnk{border:0;background:none;color:var(--blue);font:400 15px var(--f-b);padding:10px 0;min-height:44px;cursor:pointer}
 .psh-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px 4px}
 .psh-app{display:flex;flex-direction:column;align-items:center;gap:9px;border:0;background:transparent;padding:2px 0;color:var(--ink);font:400 14px var(--f-b);min-width:0;cursor:pointer}
 .psh-ai{position:relative;display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:15px;background:var(--dk-slate);color:#fff}
 .psh-ai .dk-ic{--dk-s:28px}
 .psh-ai svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
 .psh-app[data-app=workplace] .psh-ai{background:var(--dk-blue)}.psh-app[data-app=tasks] .psh-ai{background:var(--dk-green)}.psh-app[data-app=contacts] .psh-ai{background:var(--dk-orange)}
 .psh-app[data-app=mail] .psh-ai{background:var(--dk-sky)}.psh-app[data-app=mindnotes] .psh-ai{background:var(--dk-purple)}.psh-app[data-app=teleprompter] .psh-ai{background:var(--dk-pink)}.psh-app[data-app=help] .psh-ai{background:var(--dk-sky)}.psh-app[data-app=connect] .psh-ai{background:var(--dk-pink)}
 .psh-app[data-app=whatsapp] .psh-ai{background:var(--dk-teal)}.psh-app[data-app=integrations] .psh-ai{background:var(--dk-indigo)}.psh-app[data-app=changelog] .psh-ai{background:var(--dk-amber)}
 .psh-app[data-app=admin] .psh-ai{background:var(--dk-slate)}.psh-app[data-app=apps] .psh-ai{background:var(--dk-purple)}
 .psh-ai em{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:#F54A45;color:#fff;font:600 11.5px/20px var(--f-b);font-style:normal;border:2px solid var(--ph-sheet);box-sizing:content-box}
 .psh-apl{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .psh-app.on .psh-apl{color:var(--blue)}
}

/* ---------- long-press on a chat row: the Lark chat menu (phone-shell.js "long-press on a chat row") ---------- */
@media(max-width:800px){
 :root{--ph-lpcard:#FFFFFF;--ph-lpmenu:#FFFFFF;--ph-lpline:rgba(31,35,41,.09);--ph-lpdim:rgba(20,22,26,.22);--ph-lpsh:0 10px 34px rgba(20,30,60,.18)}
 @media(prefers-color-scheme:dark){:root{--ph-lpcard:#1C1D20;--ph-lpmenu:#2A2B2F;--ph-lpline:rgba(255,255,255,.08);--ph-lpdim:rgba(0,0,0,.42);--ph-lpsh:0 12px 36px rgba(0,0,0,.5)}}
 /* rows: no iOS callout, no text selection on a long-press (taps stay touch-action:manipulation, touch-ui.css) */
 #convs .cv{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
 /* row swipe = Done (phone-shell.js): rows pan vertically natively, horizontal moves are the swipe; the content slides over a green action */
 #side #convs .cv{touch-action:pan-y;touch-action:pan-y pinch-zoom}
 #convs .cv.psh-sw{overflow:hidden}
 #convs .cv.psh-sw>*:not(.psh-swa){transform:translate3d(var(--sw,0px),0,0)}
 #convs .cv.psh-swb>*:not(.psh-swa){transition:transform .2s cubic-bezier(.2,.8,.2,1)}
 #convs .cv .psh-swa{position:absolute;top:0;right:0;bottom:0;width:calc(-1 * var(--sw,0px));display:flex;align-items:center;justify-content:center;gap:6px;overflow:hidden;background:var(--ph-swa,#8F959E);color:#fff;font:600 14px var(--f-b);white-space:nowrap;border-radius:0 10px 10px 0}
 #convs .cv.psh-swgo .psh-swa{background:var(--green,#2BA471)}
 #convs .cv .psh-swa .dk-ic{--dk-s:20px;color:#fff}
 @media(prefers-color-scheme:dark){#convs .cv .psh-swa{--ph-swa:#4A4E57}}
 @media(prefers-reduced-motion:reduce){#convs .cv.psh-swb>*:not(.psh-swa){transition:none}}
 #psh-lp{position:fixed;inset:0;z-index:9500;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
 #psh-lp .psh-lpb{position:absolute;inset:0;background:var(--ph-lpdim);-webkit-backdrop-filter:blur(16px) saturate(1.1);backdrop-filter:blur(16px) saturate(1.1);opacity:0;transition:opacity .2s ease}
 #psh-lp .psh-lpc{box-shadow:var(--ph-lpsh);transform:scale(1);opacity:1}
 #psh-lp .psh-lpm{position:fixed;background:var(--ph-lpmenu);border-radius:16px;overflow:hidden;box-shadow:var(--ph-lpsh);transform-origin:24px 0;transform:scale(.72);opacity:0}
 #psh-lp .psh-lpm.up{transform-origin:24px 100%}
 #psh-lp .psh-lpm button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;height:50px;margin:0;padding:0 18px;border:0;border-top:.5px solid var(--ph-lpline);background:transparent;color:var(--ink);font:400 17px var(--f-b);text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
 #psh-lp .psh-lpm button:first-child{border-top:0}
 #psh-lp .psh-lpm button:active{background:var(--ph-lpline)}
 #psh-lp .psh-lpm button span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #psh-lp .psh-lpm .dk-ic{--dk-s:22px;color:var(--ink)}
 #psh-lp.on .psh-lpb{opacity:1}
 #psh-lp.on .psh-lpc{animation:psh-lplift .3s cubic-bezier(.34,1.4,.64,1)}
 #psh-lp.on .psh-lpm{opacity:1;transform:none;transition:transform .32s cubic-bezier(.34,1.45,.64,1),opacity .16s ease}
 #psh-lp.off .psh-lpb,#psh-lp.off .psh-lpc,#psh-lp.off .psh-lpm{opacity:0;transition:opacity .16s ease}
 #psh-lp.still .psh-lpb,#psh-lp.still .psh-lpm,#psh-lp.still .psh-lpc{transition:none;animation:none}
 @keyframes psh-lplift{0%{transform:scale(.97)}55%{transform:scale(1.025)}100%{transform:scale(1)}}
 .dk-ic[data-ic=lp-up]{--dk-i:url(/icons/lucide-arrow-up-to-line.svg)}.dk-ic[data-ic=lp-down]{--dk-i:url(/icons/lucide-arrow-down-to-line.svg)}
 .dk-ic[data-ic=lp-unread]{--dk-i:url(/icons/lucide-message-circle.svg)}.dk-ic[data-ic=lp-read]{--dk-i:url(/icons/lucide-check-check.svg)}
 .dk-ic[data-ic=lp-flag]{--dk-i:url(/icons/lucide-flag.svg)}.dk-ic[data-ic=lp-unflag]{--dk-i:url(/icons/lucide-flag-off.svg)}
 .dk-ic[data-ic=lp-tag]{--dk-i:url(/icons/lucide-tag.svg)}.dk-ic[data-ic=lp-mute]{--dk-i:url(/icons/lucide-bell-off.svg)}
 .dk-ic[data-ic=lp-bell]{--dk-i:url(/icons/lucide-bell.svg)}.dk-ic[data-ic=lp-done]{--dk-i:url(/icons/lucide-check.svg)}
}
