/* Phone in-call screen, Lark mobile style (public/phone-call.js). Everything here is inside @media(max-width:800px) and scoped to
   body.pcall (set only while a call is full screen on the phone layout) or the pre-join window; desktop and tablet are unchanged.
   Icons: Lucide (ISC, /icons/lucide-*.svg, licence /icons/LICENSE-lucide.txt) drawn as a CSS mask in currentColor. */
:root{--pc-bar:#FFFFFF;--pc-ink:#1F2329;--pc-mut:#646A73;--pc-tile:#F2F3F5;--pc-sheet:#FFFFFF;--pc-line:#E4E6EA;--pc-red:#F54A45;--pc-blue:#3370FF;--pc-stage:#16171A;--pc-on:#E1EAFF;--pc-onink:#245BDB;--pc-scrim:rgba(0,0,0,.42)}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--pc-bar:#17181B;--pc-ink:#EBEBEB;--pc-mut:#A6A9AF;--pc-tile:#2A2C30;--pc-sheet:#202124;--pc-line:#33353A;--pc-red:#F54A45;--pc-blue:#4C83FF;--pc-stage:#0F1012;--pc-on:#22325A;--pc-onink:#8EB0FF;--pc-scrim:rgba(0,0,0,.6)}}
:root[data-theme=dark]{--pc-bar:#17181B;--pc-ink:#EBEBEB;--pc-mut:#A6A9AF;--pc-tile:#2A2C30;--pc-sheet:#202124;--pc-line:#33353A;--pc-stage:#0F1012;--pc-on:#22325A;--pc-onink:#8EB0FF;--pc-scrim:rgba(0,0,0,.6)}
.pc-i{display:inline-block;width:24px;height:24px;flex:none;background:currentColor;-webkit-mask:var(--pi) center/contain no-repeat;mask:var(--pi) center/contain no-repeat}.pc-i.pulsoicon{background:none;-webkit-mask:none;mask:none}/* an animated PulsoIcon drawn inline (public/anicon.js) */
.pc-i[data-pi=mic]{--pi:url(/icons/lucide-mic.svg)}.pc-i[data-pi=mic-off]{--pi:url(/icons/lucide-mic-off.svg)}.pc-i[data-pi=video]{--pi:url(/icons/lucide-video.svg)}.pc-i[data-pi=video-off]{--pi:url(/icons/lucide-video-off.svg)}
.pc-i[data-pi=volume-2]{--pi:url(/icons/lucide-volume-2.svg)}.pc-i[data-pi=users]{--pi:url(/icons/lucide-users.svg)}.pc-i[data-pi=ellipsis]{--pi:url(/icons/lucide-ellipsis.svg)}.pc-i[data-pi=phone-off]{--pi:url(/icons/lucide-phone-off.svg)}
.pc-i[data-pi=chevron-down]{--pi:url(/icons/lucide-chevron-down.svg)}.pc-i[data-pi=switch-camera]{--pi:url(/icons/lucide-switch-camera.svg)}.pc-i[data-pi=smile]{--pi:url(/icons/lucide-smile.svg)}.pc-i[data-pi=message-square]{--pi:url(/icons/lucide-message-square.svg)}
.pc-i[data-pi=vote]{--pi:url(/icons/lucide-vote.svg)}.pc-i[data-pi=captions]{--pi:url(/icons/lucide-captions.svg)}.pc-i[data-pi=languages]{--pi:url(/icons/lucide-languages.svg)}.pc-i[data-pi=screen-share]{--pi:url(/icons/lucide-screen-share.svg)}
.pc-i[data-pi=presentation]{--pi:url(/icons/lucide-presentation.svg)}.pc-i[data-pi=layout-grid]{--pi:url(/icons/lucide-layout-grid.svg)}.pc-i[data-pi=user-plus]{--pi:url(/icons/lucide-user-plus.svg)}.pc-i[data-pi=circle-dot]{--pi:url(/icons/lucide-circle-dot.svg)}
.pc-i[data-pi=settings]{--pi:url(/icons/lucide-settings.svg)}.pc-i[data-pi=message-circle-question]{--pi:url(/icons/lucide-message-circle-question.svg)}.pc-i[data-pi=pen-line]{--pi:url(/icons/lucide-pen-line.svg)}.pc-i[data-pi=file-text]{--pi:url(/icons/lucide-file-text.svg)}
.pc-i[data-pi=copy]{--pi:url(/icons/lucide-copy.svg)}.pc-i[data-pi=sliders-horizontal]{--pi:url(/icons/lucide-sliders-horizontal.svg)}.pc-i[data-pi=sparkles]{--pi:url(/icons/lucide-sparkles.svg)}.pc-i[data-pi=blocks]{--pi:url(/icons/lucide-blocks.svg)}
#pc-tr,#pcbar,.pc-caret{display:none}
@media(max-width:800px){
 /* ---------- the call surface ---------- */
 body.pcall #call{background:var(--pc-stage);color:#fff}
 /* every popup the call opens sits above it (phone-call.js raise(): the root cause of the dead taps) */
 body.pcall [data-pc-up],body.pcall .cmenu,body.pcall #toast{z-index:130!important}
 /* ---------- top bar ---------- */
 body.pcall #ctop{background:var(--pc-bar);color:var(--pc-ink);padding:calc(6px + var(--sa-t,env(safe-area-inset-top))) 8px 6px 4px;margin-top:calc(-1 * var(--sa-t,env(safe-area-inset-top)));min-height:56px;gap:4px;flex-wrap:nowrap;align-items:center}
 body.pcall #msh-cmin-b{background:none;color:var(--pc-ink);margin:0}
 body.pcall #ctop .cl{flex:1;min-width:0;display:flex;flex-wrap:wrap;align-items:center;column-gap:6px;row-gap:0;cursor:pointer;min-height:44px;padding:2px 4px;border-radius:10px;-webkit-tap-highlight-color:transparent}
 body.pcall #ctop .cl:after{content:"";flex-basis:100%;height:0;order:3}
 body.pcall #ctitle{order:1;min-width:0;max-width:calc(100vw - 250px);font:600 16px/1.25 var(--f-b);color:var(--pc-ink)}
 body.pcall .pc-caret{display:inline-flex;order:2;color:var(--pc-mut)}body.pcall .pc-caret .pc-i{width:16px;height:16px}
 body.pcall #ctimer{order:4;font:500 12px/1.3 var(--f-m);color:var(--pc-mut)}
 body.pcall #csig{order:5}
 body.pcall #recbadge{order:6;height:18px;padding:0 6px;font-size:9.5px;gap:4px}
 body.pcall #recbadge span{display:none}body.pcall #recbadge:after{content:"REC"}
 body.pcall #cinfo,body.pcall #ctop .cr #blayout{display:none!important}
 body.pcall #ctop .cr{display:none}
 body.pcall #pc-tr{display:flex;align-items:center;gap:2px;flex:none}
 .pc-tb,.pc-end{width:44px;height:44px;border:0;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:none;color:var(--pc-ink);position:relative;padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
 .pc-tb:active{background:var(--pc-tile)}
 .pc-end{background:var(--pc-red);color:#fff;width:48px;height:44px;border-radius:12px;margin-left:6px}.pc-end:active{filter:brightness(.9)}
 .pc-dot{display:none;position:absolute;top:8px;right:8px;width:8px;height:8px;border-radius:50%;background:var(--pc-red);border:2px solid var(--pc-bar)}
 .pc-tb.unread .pc-dot{display:block}
 /* the consent banner stays (recording notice), compact */
 body.pcall #recbanner{padding:8px 12px;font-size:13px}
 /* ---------- video: speaker fills the screen, self view is a corner tile ---------- */
 body.pcall #cmain{padding:0;gap:0}
 body.pcall #stage{gap:0}
 body.pcall #thumbs:empty{display:none}
 body.pcall #thumbs{position:absolute;left:8px;right:8px;bottom:8px;z-index:3;gap:6px}
 body.pcall #mainv .tile:not(.pc-self){border-radius:0;border:0;box-shadow:none;background:var(--pc-stage)}
 body.pcall .tile.pc-self{position:fixed!important;z-index:20;width:96px!important;height:136px!important;flex:none!important;border-radius:12px!important;box-shadow:0 8px 24px rgba(0,0,0,.45);touch-action:none;transition:left .18s ease,top .18s ease}
 body.pcall .tile.pc-self.drag{transition:none}
 body.pcall .tile.pc-self video{object-fit:cover!important}
 body.pcall .tile.pc-self .avt{width:44px;height:44px;margin:-22px 0 0 -22px;font-size:18px}
 /* ---------- the old call bar: kept laid out (its handlers place their menus from its buttons) but invisible ---------- */
 body.pcall #cbar{position:absolute!important;left:0;right:0;height:0!important;padding:0!important;margin:0;display:block!important;visibility:hidden;pointer-events:none;overflow:visible;z-index:0}
 body.pcall #cbar .cbl,body.pcall #cbar .cbc,body.pcall #cbar .cbr,body.pcall #cbar .split{display:contents!important}
 body.pcall #cbar .cb{position:absolute!important;left:calc(50% - 24px);top:0;visibility:hidden!important}
 /* ---------- bottom bar ---------- */
 body.pcall #pcbar{display:flex;flex:none;align-items:stretch;justify-content:space-around;background:var(--pc-bar);color:var(--pc-ink);padding:6px max(4px,var(--sa-r,env(safe-area-inset-right))) calc(6px + var(--sa-b,env(safe-area-inset-bottom))) max(4px,var(--sa-l,env(safe-area-inset-left)));margin-bottom:calc(-1 * var(--sa-b,env(safe-area-inset-bottom)));position:relative;z-index:5}
 .pc-bb{flex:1 1 0;min-width:0;min-height:56px;border:0;background:none;color:inherit;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:4px 2px;border-radius:12px;position:relative;cursor:pointer;-webkit-tap-highlight-color:transparent;font:500 11.5px/1.2 var(--f-b)}
 .pc-bb[hidden]{display:none}
 .pc-bb:active{background:var(--pc-tile)}
 .pc-bb .pc-l{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;color:var(--pc-mut)}
 .pc-bb.off .pc-i{color:var(--pc-red)}
 .pc-bb.on .pc-i,.pc-bb.on .pc-l{color:var(--pc-blue)}
 .pc-cnt{position:absolute;top:2px;left:calc(50% + 10px);font:600 11px/1 var(--f-m);color:var(--pc-ink)}
 #pc-more .pc-dot{top:6px;right:calc(50% - 18px)}#pc-more.rec .pc-dot{display:block}
 /* ---------- bottom sheets (More, meeting info, End) ---------- */
 .pc-ov{position:fixed;inset:0;z-index:128;background:var(--pc-scrim);display:flex;align-items:flex-end;opacity:0;transition:opacity .15s}
 .pc-ov.in{opacity:1}
 .pc-sh{position:relative;width:100%;max-height:82vh;max-height:82dvh;overflow:auto;background:var(--pc-sheet);color:var(--pc-ink);border-radius:16px 16px 0 0;padding:4px 12px calc(14px + var(--sa-b,env(safe-area-inset-bottom)));box-sizing:border-box;transform:translateY(0);overscroll-behavior:contain}
 .pc-grab{display:flex;justify-content:center;padding:6px 0 8px}.pc-grab i{width:36px;height:4px;border-radius:2px;background:var(--pc-line)}
 .pc-shx{position:absolute;right:6px;top:2px;width:44px;height:44px;border:0;background:none;color:var(--pc-mut);display:flex;align-items:center;justify-content:center;border-radius:12px}
 .pc-sh-t{font:600 17px var(--f-b);padding:4px 48px 12px 4px;overflow-wrap:anywhere}
 .pc-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px 6px;padding:8px 0 6px}
 .pc-tile{border:0;background:none;color:var(--pc-ink);display:flex;flex-direction:column;align-items:center;gap:8px;padding:2px 0;min-height:88px;font:500 12.5px/1.25 var(--f-b);cursor:pointer;-webkit-tap-highlight-color:transparent}
 .pc-sq{position:relative;width:56px;height:56px;border-radius:14px;background:var(--pc-tile);display:flex;align-items:center;justify-content:center}
 .pc-tile:active .pc-sq{filter:brightness(.92)}
 .pc-tile.on .pc-sq{background:var(--pc-on);color:var(--pc-onink)}
 .pc-tile[data-pc=rec].on .pc-sq{color:var(--pc-red)}
 .pc-recdot{position:absolute;top:7px;right:7px;width:9px;height:9px;border-radius:50%;background:var(--pc-red);animation:pcrec 1.4s infinite}
 @keyframes pcrec{50%{opacity:.3}}
 .pc-tl{text-align:center;max-width:84px;overflow-wrap:anywhere}
 .pc-foot{display:flex;gap:10px;border-top:1px solid var(--pc-line);margin-top:8px;padding-top:12px}
 .pc-wide{flex:1;width:100%;min-height:48px;border:0;border-radius:12px;background:var(--pc-tile);color:var(--pc-ink);font:600 15px var(--f-b);display:flex;align-items:center;justify-content:center;gap:8px;margin-top:8px;cursor:pointer}
 .pc-foot .pc-wide{margin-top:0}
 .pc-wide.red{color:var(--pc-red)}.pc-wide.ghost{background:none;color:var(--pc-mut)}
 .pc-info{display:flex;flex-direction:column;gap:10px;padding:0 4px 8px;font:14px var(--f-b)}.pc-info div{display:flex;gap:12px}.pc-info span{color:var(--pc-mut);width:92px;flex:none}.pc-info b{font-weight:500;min-width:0;overflow-wrap:anywhere}
 .pc-note{color:var(--pc-mut);font:14px var(--f-b);padding:0 4px}
 /* ---------- panels opened from the call: back header ---------- */
 .pc-ph{display:none}
 body.pcall .pc-ph{display:flex;align-items:center;gap:6px;min-height:52px;padding:0 8px 0 4px;flex:none;background:var(--pc-bar);color:var(--pc-ink);border-bottom:1px solid var(--pc-line);touch-action:none;position:relative;z-index:2}
 body.pcall .pc-ph b{font:600 16px var(--f-b);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body.pcall .pc-ph:before{content:"";position:absolute;left:50%;top:5px;width:36px;height:4px;margin-left:-18px;border-radius:2px;background:var(--pc-line)}
 .pc-back{width:44px;height:44px;border:0;background:none;color:inherit;display:flex;align-items:center;justify-content:center;border-radius:12px;flex:none;cursor:pointer}
 body.pcall #cside.on{display:flex;flex-direction:column}
 body.pcall #addp.on{left:0;right:0;bottom:0;top:auto;width:100%;max-height:85vh;max-height:85dvh;border-radius:16px 16px 0 0;padding-bottom:var(--sa-b,env(safe-area-inset-bottom))}
 body.pcall #wbpanel.on{z-index:12}
 body.pcall .bo-ov .bo-box{max-height:90vh;max-height:90dvh;display:flex;flex-direction:column}
 /* ---------- pre-join window, Lark style ---------- */
 html body .pj-ov .pj:not(.emb){gap:12px}
 html body .pj-ov .pj:not(.emb) .pj-head{padding:0 52px;min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center}
 html body .pj-ov .pj:not(.emb) .pj-x{left:-4px;top:0;width:44px;height:44px;font-size:28px;line-height:42px;background:none}
 html body .pj-ov .pj:not(.emb) .pj-title{font-size:22px;border-bottom:1px solid var(--line,#DEE0E3);width:100%}
 html body .pj-ov .pj:not(.emb) .pj-stage{flex:1 1 auto;aspect-ratio:auto;max-height:none;min-height:180px}
 html body .pj-ov .pj:not(.emb) .pj-bar{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:auto}
 html body .pj-ov .pj:not(.emb) .pj-bar .pj-flex{display:none}
 html body .pj-ov .pj:not(.emb) .pj-grp{position:relative;height:auto;min-height:72px;flex-direction:column;justify-content:center;align-items:stretch;padding:0;border-radius:12px}
 html body .pj-ov .pj:not(.emb) .pj-grp .sep,html body .pj-ov .pj:not(.emb) .pj-grp .pj-meter,html body .pj-ov .pj:not(.emb) .pj-grp .sp{display:none}
 html body .pj-ov .pj:not(.emb) .pj-grp .tg,html body .pj-ov .pj:not(.emb) .pj-spt{flex:1;width:100%;min-height:72px;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:8px 4px;font-size:13px;border-radius:12px;background:none}
 html body .pj-ov .pj:not(.emb) .pj-spt{font-size:0;display:flex;border:0;color:inherit}
 html body .pj-ov .pj:not(.emb) .pj-spt svg{display:none}
 html body .pj-ov .pj:not(.emb) .pj-spt:before{content:"";width:24px;height:24px;background:currentColor;-webkit-mask:url(/icons/lucide-volume-2.svg) center/contain no-repeat;mask:url(/icons/lucide-volume-2.svg) center/contain no-repeat}
 html body .pj-ov .pj:not(.emb) .pj-spt:after{content:"Speaker";font-size:13px;font-weight:500}
 html body .pj-ov .pj:not(.emb) .pj-grp .chev{position:absolute;top:0;right:0;width:44px;height:44px;min-width:0;padding:0;display:flex;align-items:flex-start;justify-content:flex-end;padding:6px;background:none;opacity:.7}
 html body .pj-ov .pj:not(.emb) .pj-grp .chev svg{width:14px;height:14px}
 html body .pj-ov .pj:not(.emb) .pj-go{grid-column:1/-1;min-height:52px;font-size:17px;border-radius:12px;margin-top:6px}
 html body .pj-ov .pj:not(.emb) .pj-foot{display:none}
}
/* toasts: on the phone they never swallow taps meant for the controls under them, and during a call they sit above the bottom bar */
@media(max-width:800px){
 #ts-toasts .ts-t:not(:has(button,a)){pointer-events:none}
 body.pcall #ts-toasts{bottom:calc(92px + var(--sa-b,env(safe-area-inset-bottom)))!important}
 body:has(.pj-ov) #ts-toasts{bottom:calc(150px + var(--sa-b,env(safe-area-inset-bottom)))!important}
}
@media(max-width:800px){
 html body .pj-ov .pj:not(.emb) .pj-spt.pc-playing{color:var(--pc-blue)}
 html body .pj-ov .pj:not(.emb) .pj-spt.pc-playing:after{content:"Playing…"}
 html body .pj-ov .pj:not(.emb) .pj-spt.pc-playing:before{animation:pcrec 1s infinite}
}
@media(max-width:800px){
 html body .pj-ov .pj:not(.emb) .pj-spt:before{width:22px;height:22px}
 html body .pj-ov .pj:not(.emb) .pj-spt:after{line-height:1.2}
 html body .pj-ov .pj:not(.emb) .pj-grp .tg .lb{line-height:1.2}
 html body .pj-ov .pj:not(.emb) .pj-title{border-width:0 0 1px;border-style:solid;box-shadow:none;outline:0;background:none}
}
