/* ---------- the phone's other screens (cove-4-ui mockup/phone.html, screens 6 to 45) ----------
   The phone block in style.css holds the lists, a chat, the members sheet and a voice room. This file holds the
   rest: pages (Friends, Inbox, Search, Pinned, Thread, Settings, Add a server), sheets (menus, profile, status,
   emoji, new message, invite), calls and signing in. It is read after style.css.
   `.pho` is markup only a phone shows, `.dsk` only a window. `data-pview` on <html> names the page (friends,
   inbox, dm, group, room, chat), `data-pside` what the side panel holds while it is open (members, pins,
   search, thread). */
@media(min-width:601px){.pho{display:none!important}}
@media(max-width:600px){
  .dsk{display:none!important}
  .btn.wide{width:100%;height:50px;justify-content:center;font-size:15.5px;flex:none}

  /* top bars: a page's name alone, or a person with a line under the name */
  html:is([data-pview=friends],[data-pview=inbox]) .top h1 .ic,
  html:is([data-pview=friends],[data-pview=inbox]) .top .hd p,
  html:is([data-pview=friends],[data-pview=inbox]) .top .sp>.ib{display:none}
  html:is([data-pview=dm],[data-pview=group]) .top .hd{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:10px;align-items:center;margin-left:2px}
  html:is([data-pview=dm],[data-pview=group]) .top .hd>:first-child,html:is([data-pview=dm],[data-pview=group]) .top .hd>.tav:first-child>.av{grid-row:1/3}
  html:is([data-pview=dm],[data-pview=group]) .top .hd h1{font-size:16px;letter-spacing:-.01em;line-height:1.25;display:block;overflow:hidden;text-overflow:ellipsis}
  html:is([data-pview=dm],[data-pview=group]) .top .hd p{font-size:12.5px;line-height:1.3}
  .top .av{--s:32px}.top .av2{--d:36px;--ring:var(--sheet)}
  /* Smaller pictures in their pills (Jesse, 2026-12-01: "shrink the profile circles and decorations so they fit more
     cleanly into the pill they are placed in"): you 44 to 36, a chat list row 40 to 34, beside a message 40 to 36, a chat's top bar 36 to 32.
     The card and the rows keep their height, so the picture and its frame sit inside with room all round. */
  .me-r .av{--s:36px}.me-r{min-height:64px}
  .dm .av{--s:34px}.dm{min-height:62px}
  .m>.avb .av,.m>.av{--s:36px}
  html:is([data-pview=dm],[data-pview=group]) .top .sp>.ib[title=Pinned],html[data-pview=dm] .top .sp>.ib[title="Side panel"]{display:none}
  .tt{min-width:0;margin-left:2px}
  .tt b{display:block;font-size:16px;font-weight:700;letter-spacing:-.01em;line-height:1.25;white-space:nowrap}
  .tt p{color:var(--muted);font-size:12.5px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

  /* pages: Friends and Inbox */
  html:is([data-pview=friends],[data-pview=inbox]) .main{padding:4px 16px 0!important}
  .main>.bar{padding:0 0 8px;align-items:center}
  .main>.bar .seg{background:var(--soft);flex-wrap:nowrap;border-radius:999px;width:fit-content}
  .seg button{height:32px;padding:0 13px}
  /* the page's one button stands in the top bar */
  .main>.bar>.btn{position:fixed;top:calc(env(safe-area-inset-top,0px) + 14px);right:16px;z-index:2;height:30px;padding:0 14px;font-size:13px;margin:0!important;--i:16px}
  .main>.bar>.btn:not(.pri){background:var(--soft);box-shadow:none}
  .sec{padding:10px 12px 6px;display:flex}
  .sec span{margin-left:auto;font-weight:500}
  .fr{gap:12px;min-height:48px;padding:6px 10px;margin:0;border-radius:999px}
  .fr:hover{background:none}
  .list:has(>.fr){padding-inline:0;margin-inline:0}
  .fr .av{--s:36px}
  .fr .l b{font-size:15px;font-weight:550}.fr .l small{color:var(--faint);font-size:13px;display:block}
  .fr .ib{width:40px;height:40px;margin-left:-6px}
  .fr .l+.ib,.fr .l+.btn{margin-left:0}
  .fr .ib[title=More]{display:none}
  .fr .ib.yes{background:var(--accent);color:var(--on-accent)}
  .nb{border-radius:22px;padding:11px 14px 12px;margin-bottom:10px;position:relative}
  .nb .src{gap:6px;min-height:0;padding-bottom:6px;color:var(--faint);--i:13px}
  .nb .src time{margin-left:auto;font-weight:450}
  .nb .m{padding:0}
  /* a tap anywhere on the card goes to its message */
  .nb .src .btn.jmp{position:absolute;inset:0;width:auto;height:auto;opacity:0;margin:0}
  .none .intro{padding:14px 6px 16px}
  .intro .si{width:60px;height:60px;--i:26px;margin-bottom:14px}
  .none .intro h2{font-size:22px;margin-top:0}
  .none .intro p{margin:4px 0 16px}
  .none .intro .hi{margin-top:0}
  .none .intro .hi .btn{height:42px;font-size:14.5px;padding:0 16px}

  /* Pinned, Search and Thread are pages of their own, not sheets */
  html:is([data-pside=pins],[data-pside=search],[data-pside=thread]) .content>.panel{top:0;max-height:none;border-radius:0;box-shadow:none;padding:env(safe-area-inset-top,0px) 0 0}
  html:is([data-pside=pins],[data-pside=search],[data-pside=thread]) .content>.panel::before,
  html:is([data-pside=pins],[data-pside=search],[data-pside=thread]) .content>.dim,
  .pp:is([data-s=pins],[data-s=search],[data-s=thread])>h4{display:none}
  .pp>.top{padding:0 10px 0 8px}
  .pp>.stop{height:58px;flex:none;display:flex;align-items:center;gap:4px;padding:0 10px 0 8px}
  .pp>.stop>.inp{flex:1;width:auto;margin:0 6px 0 0;height:44px;border-radius:999px;background:var(--card);box-shadow:var(--lift);padding:0 18px;gap:10px;font-size:15.5px;--i:18px}
  .pp>.stop>.inp:focus-within{box-shadow:0 0 0 2px var(--accent)}
  .pp>.stop>.inp input{font-size:15.5px;flex:1;min-width:0}
  .pp .pbody{flex:1;min-height:0;overflow-y:auto;scrollbar-width:none;padding:4px 16px calc(16px + var(--sab));display:flex;flex-direction:column}
  .pp .pbody>*{flex:none}
  .pp .box{display:grid;grid-template-columns:38px auto minmax(0,1fr);column-gap:12px;align-items:baseline;border-radius:22px;background:var(--card);box-shadow:var(--lift);padding:11px 14px 12px;margin-bottom:10px}
  .pp .box .src{grid-column:1/-1;font-size:12.5px;font-weight:600;color:var(--faint);display:flex;gap:6px;align-items:center;padding-bottom:6px;--i:13px}
  .pp .box .src time{margin-left:auto;font-weight:450}
  .pp .box .who{display:contents}
  .pp .box .who .av{--s:38px;grid-row:2/4;align-self:start}
  .pp .box .who b{font-size:15px;font-weight:600}
  .pp .box .who time{margin:0 0 0 -3px;font-size:12px;padding:0}
  .pp .box .txt{grid-column:2/-1;font-size:15px;line-height:1.5;color:var(--ink2)}
  .pp .qn.on{padding:8px 12px 0;color:var(--faint);font-size:13px}
  /* a thread reads like its chat */
  .pp[data-s=thread] .tf{padding:0 20px}
  .pp[data-s=thread] .tm,.tm{gap:12px;padding:6px 0;border-radius:0}
  .tm:hover{background:none}
  .tm .av{--s:38px;margin-top:0}
  .tm b{font-size:15px}.tm time{font-size:12px;margin-left:9px}
  .tm p{font-size:15px;line-height:1.5}
  .tsep{width:fit-content;margin:8px auto 6px;padding:3px 13px;border-radius:999px;background:var(--card);box-shadow:var(--lift);color:var(--muted);font-size:12px;font-weight:550}
  .pp[data-s=thread] .comp{margin:0 14px calc(22px + var(--sab));min-height:52px;border-radius:26px;padding:0 6px}
  .pp[data-s=thread] .comp textarea.plain{font-size:15px;padding:15px 6px 15px 14px}
  .pp[data-s=thread] .comp .send{width:40px;height:40px;margin:0 0 0 4px}

  /* sheets: every menu and card comes up from the bottom, the page dimmed behind it */
  .shade{background:rgba(12,12,16,.42)}
  :is([data-theme=dark],[data-theme=black]) .shade{background:rgba(0,0,0,.5)}
  .cm.show:not(.cm .cm){left:0!important;right:0!important;top:auto!important;bottom:0!important;width:auto!important;max-height:calc(100% - 70px);overflow-y:auto;scrollbar-width:none;border-radius:28px 28px 0 0;background:var(--sheet);box-shadow:var(--pop);padding:10px 14px calc(26px + var(--sab));display:flex;flex-direction:column}
  .cm.show:not(.cm .cm)>*{flex:none}
  .cm.show:not(.cm .cm)::before{content:"";order:-9;flex:none;width:40px;height:5px;border-radius:3px;background:var(--soft2);margin:0 auto 6px}
  /* its rows stand in cards: one card for each run of rows */
  .cm.show>.ch,.cm.show>.has-sub{gap:12px;min-height:50px;margin:0;padding:6px 16px 6px 18px;border-radius:0;background:var(--card);font-size:15px;font-weight:550;color:var(--ink)}
  .cm.show>.ch:hover{background:var(--card)}
  .cm.show>.ch .ic{--i:20px;color:var(--muted)}
  .cm.show>.ch.bad,.cm.show>.ch.bad .ic{color:var(--bad)}
  .cm.show>.ch>.r{font-size:14px;font-weight:450;--i:18px}
  .cm.show>.ch>.r .ic{color:var(--accent)}
  .cm.show>:is(.ch,.has-sub):not(:is(.ch,.has-sub)+*){border-radius:22px 22px 0 0;padding-top:12px;min-height:56px;margin-top:6px}
  .cm.show>:is(.ch,.has-sub):not(:has(+:is(.ch,.has-sub))){border-radius:0 0 22px 22px;padding-bottom:12px;min-height:56px;margin-bottom:8px}
  .cm.show>:is(.ch,.has-sub):not(:is(.ch,.has-sub)+*):not(:has(+:is(.ch,.has-sub))){border-radius:22px;min-height:62px}
  .cm.show>.gp{height:4px}
  .cm.show .quick{justify-content:space-between;gap:0;padding:6px 4px 8px}
  .cm.show .quick button{flex:none;width:48px;height:48px;border-radius:50%;background:var(--card);box-shadow:var(--lift);font-size:23px;--i:22px}
  .cm.show>.ch>i.st{margin:0 3px}

  /* a profile */
  .card .hd2{padding:8px 10px 14px;order:0}
  .card .hd2 .av{--s:72px}.card .hd2 .st{--ring:var(--sheet)}
  .card h3{font-size:22px;letter-spacing:-.02em;line-height:1.2}.card .hd2 p{font-size:14px}
  .card .go{order:1;margin:0;padding:0 4px 8px}
  .card .go .btn{height:46px;font-size:15px;background:var(--card);box-shadow:var(--lift);--i:18px}
  .card .go .btn.pri{background:var(--accent)}
  .card .go .ib{width:46px;height:46px;background:var(--card);box-shadow:var(--lift);color:var(--ink)}
  .card .bx{order:2;margin:0;padding:0;background:none;border-radius:0;font-size:15px}
  .card .bx label{padding:12px 10px 4px;margin:0}
  .card .bx>:not(label):not(.pill){margin-left:10px;display:block}
  .card .bx .pill{height:28px;padding:0 12px;background:var(--card);box-shadow:var(--lift);font-size:13px;margin:0 0 6px 8px}
  .card .bx .pill+.pill{margin-left:2px}
  .card .bx input.plain{width:calc(100% - 20px);font-size:15px}

  /* parts of a sheet: who or what it is about, its main buttons, a name with Close */
  .pf{display:flex;gap:14px;align-items:center;padding:8px 10px 14px}
  .pf .av{--s:72px}.pf .av .st{--ring:var(--sheet)}
  .pf .sv{width:60px;height:60px;border-radius:20px;font-size:17px;flex:none}
  .pf h2{font-size:22px;font-weight:700;letter-spacing:-.02em;line-height:1.2}
  .pf p{color:var(--muted);font-size:14px}
  .acts3{display:flex;gap:8px;padding:0 4px 8px}
  .acts3 .btn{flex:1;justify-content:center;height:46px;font-size:15px;background:var(--card);box-shadow:var(--lift);--i:18px}
  .acts3 .btn.pri{background:var(--accent)}
  .sheet-h{padding:4px 0 6px 10px}
  .sheet-h .ib{width:40px;height:40px;color:var(--ink)}
  .vv{margin-left:auto;color:var(--faint);font-size:14px;font-weight:450;display:flex;align-items:center;gap:2px;--i:16px;white-space:nowrap}
  .vv .ic{transform:rotate(-90deg);--i:16px!important;color:var(--faint)!important}
  .cm.show .ch .l{flex:1;min-width:0;text-align:left;line-height:1.3}
  .cm.show .ch .l small{display:block;color:var(--faint);font-size:13px;font-weight:400;line-height:1.35}
  .cm.show>.ch>span:is(.pho,.dsk):not(.vv){display:contents}

  /* your status: the message field first, then the four, then Settings */
  /* Not drawn for the phone in Cove 4 UI (its sheet 30 has the plain picture and name): your own card's look
     from the desktop (`.meh`), at the sheet's sizes. Jesse, 2026-11-15: "Fix it also not appearing on mobile". */
  #pop-status>.meh{order:-3;--pbg:var(--sheet);--ns:22px;--fg:7px;--fw:2.5px;padding:0 0 16px}
  #pop-status>.meh .bn{height:84px;border-radius:20px}
  #pop-status>.meh .bn .bt{right:10px;top:10px}#pop-status>.meh .bn .bt .ib{width:36px;height:36px;--i:17px}
  #pop-status>.meh .hd4{gap:20px;margin-top:-22px;padding:0 6px 0 18px}
  #pop-status>.meh .av{--s:72px;box-shadow:0 0 0 10px var(--pbg)}
  #pop-status>.meh small{font-size:14px}
  #pop-status>.meh .bdg{--s:26px}
  #pop-status>.ch.stm{order:-2;height:48px;min-height:48px!important;margin:0 0 12px!important;padding:0 18px!important;border-radius:999px!important;background:var(--card);box-shadow:var(--lift);font-size:15.5px;font-weight:400;color:var(--faint);gap:10px}
  #pop-status>.ch.stm .ic{--i:18px;color:var(--faint)}
  /* the field is drawn first (order), so the row after it in the page starts its own card: "Clear status message" */
  #pop-status>.ch.stm+:is(.ch,.has-sub){border-radius:22px 22px 0 0;padding-top:12px;min-height:56px;margin-top:6px}
  #pop-status>.ch.stm+:is(.ch,.has-sub):not(:has(+:is(.ch,.has-sub))){border-radius:22px;min-height:62px}
  #pop-status>.gp:first-of-type{display:none}

  /* the server's menu */
  .menu.open{position:fixed;left:0;right:0;top:auto;bottom:0;z-index:30;max-height:calc(100% - 70px);overflow-y:auto;scrollbar-width:none;border-radius:28px 28px 0 0;background:var(--sheet);box-shadow:var(--pop);padding:10px 14px calc(26px + var(--sab));display:flex;flex-direction:column}
  .menu.open::before{content:"";flex:none;width:40px;height:5px;border-radius:3px;background:var(--soft2);margin:0 auto 6px}
  .menu.open>.ch{gap:12px;min-height:50px;margin:0;padding:6px 16px 6px 18px;border-radius:0;background:var(--card);font-size:15px;font-weight:550;color:var(--ink);flex:none}
  .menu.open>.ch:hover{background:var(--card)}
  .menu.open>.ch .ic{--i:20px;color:var(--muted)}
  .menu.open>.ch.bad,.menu.open>.ch.bad .ic{color:var(--bad)}
  .menu.open>.ch>span:is(.pho,.dsk):not(.vv){display:contents}
  .menu.open>.ch .tog{margin:0 0 0 auto}
  .menu.open>:nth-child(1 of .ch:not(.dsk)){border-radius:22px 22px 0 0;padding-top:12px;min-height:56px}
  .menu.open>:nth-last-child(1 of .ch:not(.dsk):not(.bad)){border-radius:0 0 22px 22px;padding-bottom:12px;min-height:56px}
  .menu.open>:nth-child(1 of .ch:not(.dsk)):nth-last-child(1 of .ch:not(.dsk):not(.bad)){border-radius:22px}
  .menu.open>.ch.bad{border-radius:22px;min-height:62px;margin-top:12px}
  .menu.open>.gp{display:none}
  .menu.open>.acts3{padding-bottom:12px}

  /* small windows are sheets too; one that is drawn as a page (`pgd`) fills the screen */
  .ov{padding:0;place-items:end stretch}
  .ov>.dlg.sm{width:100%;max-height:calc(100vh - 70px);border-radius:28px 28px 0 0;padding:10px 14px calc(26px + var(--sab))}
  .ov>.dlg.sm::before{content:"";flex:none;width:40px;height:5px;border-radius:3px;background:var(--soft2);margin:0 auto 6px}
  .dlg.sm>.dh{height:auto;min-height:44px;flex:none;padding:4px 0 6px 10px}
  .dlg.sm>.dh h2{font-size:18px;letter-spacing:-.015em}
  .dlg.sm>.dh .x{width:40px;height:40px;background:var(--card);box-shadow:var(--lift);color:var(--ink)}
  .dlg.sm:not(.pgd)>.dh .bk{display:none}
  .dlg.sm .sr{border-radius:22px;min-height:50px;padding:8px 10px 8px 16px}
  .dlg.sm .sr .l b{font-size:15px;font-weight:550}
  .dlg.sm .inp,.dlg.sm .sr .inp{width:100%;height:48px;font-size:15.5px;padding:0 18px}
  .dlg.sm label.sr,.pg label.sr{--sh:none;flex-direction:column;align-items:stretch;gap:0;background:none;box-shadow:none;padding:0;min-height:0}
  .dlg.sm label.sr .l,.pg label.sr .l{flex:none}
  .dlg.sm label.sr .l b,.pg label.sr .l b{font-size:12px;font-weight:650;color:var(--faint);padding:10px 12px 6px}
  .dlg.sm label.sr .inp,.pg label.sr .inp{background:var(--card);box-shadow:var(--lift);max-width:none;width:100%;height:48px;font-size:15.5px;padding:0 18px}
  .dlg.sm label.sr .inp:focus,.pg label.sr .inp:focus{box-shadow:0 0 0 2px var(--accent)}
  .dlg.sm .foot{margin-top:14px;gap:8px}
  .dlg.sm .foot .btn{height:50px;flex:1;justify-content:center;font-size:15.5px}
  .ov>.dlg.sm.pgd{height:100%;max-height:none;border-radius:0;padding:env(safe-area-inset-top,0px) 16px calc(16px + var(--sab))}
  .ov>.dlg.sm.pgd::before{display:none}
  .dlg.sm.pgd>.dh{height:58px;margin:0 -6px 4px -8px;padding:0;gap:4px}
  .dlg.sm.pgd>.dh h2{font-size:17px}
  .dlg.sm.pgd>.dh .x{display:none}
  .dlg.sm.pgd .pick button{border-radius:22px}

  /* new message: a tall sheet, the people under the field, one wide button */
  .ov>.dlg.sm:has(.newdm){height:calc(100vh - 70px - env(safe-area-inset-top,0px))}
  .newdm{flex:1;min-height:0;display:flex;flex-direction:column}
  .newdm .inp.big{height:48px;margin:8px 0 4px;border-radius:999px}
  .newdm .inp.big:focus-within{box-shadow:0 0 0 2px var(--accent)}
  .newdm .list{flex:1;gap:0;padding-top:8px}
  .newdm .list .sr{--sh:none;background:none;box-shadow:none;min-height:48px;padding:6px 10px;gap:12px;border-radius:999px}
  .newdm .list .sr .av{--s:36px}.newdm .list .sr .st{--ring:var(--sheet)}
  .newdm .list .sr .l small{color:var(--faint)}
  .ck{background:none;box-shadow:inset 0 0 0 2px var(--soft2)}
  .ck.on{background:var(--accent);box-shadow:none}
  .newdm .foot{flex-wrap:wrap;margin-top:8px}
  .newdm .foot small{order:-1;flex:1 1 100%;color:var(--faint);font-size:13px;padding:0 12px 8px}
  .newdm .foot .btn:not(.pri){display:none}

  /* settings: a list of pages, then one page at a time */
  #ov-settings .dlg.lst .dbody,#ov-settings .dlg:not(.lst) .dnav{display:none}
  #ov-settings .dnav{flex:1;min-height:0;width:auto;flex-direction:column;align-items:stretch;gap:0;padding:0 16px 16px;overflow-y:auto;scrollbar-width:none;background:var(--sheet)}
  #ov-settings .dnav>.top{margin:0 -6px 4px -8px;padding:0;flex:none}
  #ov-settings .dnav>*{flex:none}
  .sr.merow{width:100%;min-height:64px;margin-bottom:12px;border-radius:22px;padding:8px 10px 8px 14px;gap:12px;text-align:left;flex-wrap:nowrap}
  .sr.merow .av{--s:48px}
  .sr.merow .l b{font-weight:650;font-size:15px}.sr.merow .l small{color:var(--faint)}
  #ov-settings .dnav .ch{width:100%;min-height:50px;margin:0;padding:6px 10px 6px 18px;gap:12px;border-radius:0;background:var(--card);box-shadow:none;font-size:15px;font-weight:550;color:var(--ink);white-space:nowrap}
  #ov-settings .dnav .ch>span:not(.vv){display:contents}
  #ov-settings .dnav .ch .ic{--i:20px;color:var(--muted)}
  #ov-settings .dnav .ch[data-p=Profile],#ov-settings .dnav .ch[data-p=Games]{border-radius:22px 22px 0 0;padding-top:12px;min-height:56px}
  #ov-settings .dnav .ch[data-p^=Voice],#ov-settings .dnav .ch[data-p=Account]{border-radius:0 0 22px 22px;padding-bottom:12px;min-height:56px;margin-bottom:12px}
  /* What's new is a card of its own between Account and Sign out, with the version at its right (cove-4-ui
     handoff 2026-11-20, screen 31); the version line under Sign out is gone on the phone */
  #ov-settings .dnav .ch[data-p="What's new"]{border-radius:22px;min-height:62px;margin-bottom:12px}
  .vv .nd{margin-right:8px}
  #ov-settings .dnav .ch:is([data-p=Overlay],[data-p="Windows app"]){display:none}
  #ov-settings .dnav .ch.end{border-radius:22px;min-height:62px;color:var(--bad)}
  #ov-settings .dnav .ch.end .ic{color:var(--bad)}
  .ver{display:none}
  #ov-settings .dbody{padding:0;min-height:0}
  #ov-settings .dh{height:58px;gap:4px;padding:0 10px 0 8px}
  #ov-settings .dh h2{font-size:17px;letter-spacing:-.015em}
  #ov-settings .dh .x{display:none}
  #ov-settings .dbody>.pg{margin:0;padding:4px 16px calc(16px + var(--sab));gap:0}
  /* Look & feel keeps scrolling on a phone (the design draws its tabs for the desktop, where the page fits) */
  #ov-settings .pg[data-p=look]{overflow-y:auto}
  .pg[data-p=look]>.tabs{margin-bottom:12px}.tts.six{flex-wrap:wrap}.tts.six .tt{flex:1 0 28%}
  .pg[data-p=look] .sr.col{height:auto;min-height:0}.pg[data-p=look] .sr.col>.l{flex:none}.pg[data-p=look] .tyours{flex-wrap:wrap}
  .pg>.sr{border-radius:22px;min-height:62px;padding:8px 10px 8px 16px;margin-bottom:12px;gap:10px}
  .pg>.sr .l b{font-size:15px;font-weight:550}
  .pg>.sr .l small{color:var(--faint)}
  .pg>.sr .av.big{--s:56px}
  .pg>.sr .btn{height:30px;padding:0 14px;font-size:13px}
  .pg>.sr:has(.seg button:nth-child(3)),.pg>.sr:has(.inp){flex-direction:column;align-items:flex-start;gap:8px;padding:12px 12px 12px 16px}
  .pg>.sr:has(.seg button:nth-child(3)) .l,.pg>.sr:has(.inp) .l{flex:none}
  .pg>label.sr{margin-bottom:4px;padding:0;min-height:0}
  .pg>.sr:has(.av.big){flex-wrap:nowrap}
  .pg>.sr .seg{max-width:100%;flex-wrap:wrap;border-radius:19px}
  .pg>.sr .inp:not(label.sr .inp){width:100%;max-width:none;height:44px}
  .tog{margin-right:0}

  /* signing in: the page itself, not a card on it */
  .ov:has(>.sign),.ov:has(>.load){background:var(--sheet);place-items:stretch}
  .ov>.sign{width:100%;height:100%;border-radius:0;background:none;box-shadow:none;padding:calc(env(safe-area-inset-top,0px) + 80px) 24px calc(34px + var(--sab));overflow-y:auto;scrollbar-width:none}
  .ov>.sign>*{flex:none}
  .sign .sv.cv{width:88px;height:88px}
  .sign h2{font-size:28px;margin-top:20px;text-align:center}
  .sign>p,.sign.up>p{font-size:15.5px;margin:4px 0 26px;text-align:center}
  .sign label{font-size:13.5px}
  .sign .inp,.sign.up .inp,.sign input.inp{height:54px;margin-bottom:16px;font-size:16px;padding:0 22px;background:var(--card);box-shadow:var(--lift)}
  .sign .inp:focus,.sign .inp:focus-within{box-shadow:0 0 0 2px var(--accent)}
  .sign .inp.err{box-shadow:0 0 0 2px var(--bad)}
  .sign .btn{height:54px;font-size:16px}
  .sign .alt{margin-top:8px;height:46px;font-size:15px}
  .sign>small{font-size:15px;margin-top:auto;padding-top:18px}
  .sign .hint{align-self:flex-start;margin:-8px 8px 14px;font-size:13px;color:var(--faint)}
  .sign .hint.bad{color:var(--bad);font-weight:550}
  /* creating an account leaves the icon out, so the fields stay above the keyboard */
  form.sign.up{padding-top:calc(env(safe-area-inset-top,0px) + 66px)}
  form.sign.up>.sv.cv{display:none}
  form.sign.up h2{margin-top:0}
  .otp{gap:8px}
  .otp span{width:50px;height:62px;border-radius:18px;background:var(--card);box-shadow:var(--lift);font-size:25px}
  .otp span.foc::after{height:26px}
  .sign .sr{width:100%;min-height:62px;border-radius:22px;padding:8px 10px 8px 12px;gap:12px;margin-bottom:8px;flex-wrap:nowrap}
  .sign .sr .si{width:46px;height:46px;background:var(--soft);box-shadow:none;color:var(--ink2);--i:20px}
  .sign .sr .l b{font-size:15px;font-weight:550}.sign .sr .l small{color:var(--faint)}
  .sign .sr .btn{width:auto;height:30px;padding:0 14px;font-size:13px;margin:0}
  .load{padding-bottom:60px;gap:14px}
  .load .sv.cv{width:88px;height:88px}
  .load b{font-size:26px;letter-spacing:-.02em;margin-top:6px}
  .load small{font-size:15px}

  /* a call fills the page: the two of you stacked, the dock under them. Chat in the top bar shows the chat again. */
  html:not([data-callchat=on]) .main:has(>.call)>:not(.call){display:none}
  html:not([data-callchat=on]) .call{flex:1;min-height:0;display:flex;flex-direction:column;margin:0 2px;padding:0;background:none;border-radius:0}
  html:not([data-callchat=on]) .call .tiles{flex:1;min-height:0;height:auto}
  html:not([data-callchat=on]) .call .tiles .stage{grid-template-columns:1fr;grid-auto-rows:minmax(0,1fr);gap:12px;padding:3px;margin:-3px;overflow:visible}
  html:not([data-callchat=on]) .call .tiles .stage:has(.tile:nth-child(3)){grid-template-columns:1fr 1fr}
  html:not([data-callchat=on]) .call .tile .av{--s:96px}
  html:not([data-callchat=on]) .call .tiles .stage:has(.tile:nth-child(3)) .tile .av{--s:64px}
  html:not([data-callchat=on]) .call .dock{justify-content:center;gap:8px;padding:16px 0 calc(26px + var(--sab))}
  html:not([data-callchat=on]) .call .dk{width:52px;height:52px;--i:20px}
  html:not([data-callchat=on]) .call .dk.leave{width:auto;padding:0 20px}
  html:not([data-callchat=on]) .call .dock time{display:none}
  /* with the camera on, their picture fills the page and yours stands in the corner */
  html:not([data-callchat=on]) .call .tiles.cam .stage:not(:has(.tile:nth-child(3))){display:block;position:relative}
  html:not([data-callchat=on]) .call .tiles.cam .stage:not(:has(.tile:nth-child(3))) .tile{position:absolute;inset:3px}
  html:not([data-callchat=on]) .call .tiles.cam .stage:not(:has(.tile:nth-child(3))) .tile.me2{inset:15px 15px auto auto;width:106px;height:150px;border-radius:20px;box-shadow:0 0 0 3px var(--sheet);z-index:3}
  html:not([data-callchat=on]) .call .tiles.cam .tile.me2 .av{--s:48px}
  html:not([data-callchat=on]) .call .tiles.cam .tile.me2 .tag{display:none}
  /* switch camera: on your own tile; in a call between two on the large picture, as drawn */
  html[data-cams=many] .tile>.camflip{display:grid}
  html:not([data-callchat=on]) .call .tiles{position:relative}
  html:not([data-callchat=on]) .call .tiles.cam:not(:has(.tile:nth-child(3))) .tile>.camflip{display:none}
  html[data-cams=many]:not([data-callchat=on]) .call .tiles.cam:not(:has(.tile:nth-child(3)))>.camflip{display:grid;z-index:4}

  html:is([data-pview=dm],[data-pview=group]) .top .sp>.ib[title="Leave call"],html:has(.top .ib[title="Leave call"]) .top .sp>.ib[title="Video call"]{display:none}
  .vw-t .ib[title=Close]{order:-1;margin-left:0!important}
  .vw-t span{margin-right:auto}

  /* cards that come in: at the top of the page; a call dims what is behind it */
  .toast{left:12px;right:12px;width:auto;bottom:auto;top:calc(env(safe-area-inset-top,0px) + 6px);border-radius:28px}
  .toast.ring{box-shadow:var(--pop),0 0 0 100vmax rgba(12,12,16,.42)}
  :is([data-theme=dark],[data-theme=black]) .toast.ring{box-shadow:var(--pop),0 0 0 100vmax rgba(0,0,0,.5)}
  .toast .row{gap:12px}.toast .av{--s:50px}
  .toast b{font-size:16px}.toast small{font-size:13.5px}
  .toast .go{margin-top:14px;flex-direction:row-reverse}
  .toast .go .btn{height:46px;font-size:15px}
  .toast.ring~.toast.open,.toast.upd~.toast.open:not(.upd){bottom:auto;top:calc(env(safe-area-inset-top,0px) + 150px)}
  /* the dark pill on a phone (cove-4-ui handoff 2026-11-20, screens 63 and 64): 44px, 104px from the bottom */
  .snack{bottom:calc(104px + var(--sab));height:44px;padding:0 16px;font-size:14px;--i:17px;box-shadow:var(--pop)}
  .snack:has(button){padding-right:6px}
  .snack button{height:32px;padding:0 14px;margin:0 0 0 8px;font-size:13px}

  /* What's new, the page (screen 54) */
  .wn-h{gap:8px;padding:6px 6px 8px;flex-wrap:wrap}.wn-h:first-child{padding-top:6px}
  .wn-h b{font-size:17px}.wn-h time{font-size:13px}
  .pill.now{box-shadow:none;height:26px;padding:0 10px;font-size:12.5px}
  .wn-c{border-radius:22px;padding:4px 6px 8px;margin-bottom:12px}
  .wn-g{font-size:12.5px}
  .wn-i>.ic{--i:18px;margin-top:2px}.wn-i b{font-size:15px}.wn-i small{font-size:13.5px}
  .sr.wn-old{border-radius:22px;min-height:60px;padding:8px 12px 8px 16px;margin-bottom:10px}
  .wn-old>.ic{margin-right:0}.wn-old.open>.ic{transform:none}
  .wn-more{height:40px;margin-top:2px}

  /* Show earlier messages (screens 60 to 62) */
  .earl,.egm{margin:6px 0 8px;height:40px;padding:0 18px 0 14px;font-size:14px;--i:17px}
  .earl .spin{width:16px;height:16px}

  /* in a chat */
  .poll,.lp,.media.file{width:100%}
  .poll .o{height:44px}
  .net{margin:0 14px 6px;min-height:40px;border-radius:999px;background:color-mix(in srgb,var(--bad) 14%,var(--sheet));color:var(--bad);font-weight:600;gap:9px;--i:16px}
  .net .ic,.net b{color:var(--bad)}
  .newbar{left:14px;right:14px;top:6px;height:40px;background:var(--accent);color:var(--on-accent);box-shadow:var(--pop)}
  .newbar::before{display:none}
  .newbar .btn,.newbar .ib{background:none;color:inherit;font-weight:500;opacity:.9}
  .tolast{right:16px;height:42px;padding:0 16px 0 12px;font-size:13.5px;box-shadow:var(--pop)}
  :is([data-theme=dark],[data-theme=black]) .tolast{background:var(--soft2)}
  .cx.r{height:40px;border-radius:999px;background:var(--soft);padding:0 4px 0 16px;--i:16px}
  .cx.r .ib{width:32px;height:32px}
  .cx.a{width:100%}

  /* emoji: a sheet with a search field */
  .cm.emo.show:not(.cm .cm){padding:10px 14px calc(26px + var(--sab))}
  .emo .inp{height:48px;background:var(--card);box-shadow:var(--lift);padding:0 18px;gap:10px;font-size:15.5px;--i:18px;margin:8px 0 4px}
  .emo .inp input.plain{font-size:15.5px}
  .emo .sec{padding:12px 10px 4px;display:block}
  .emo-list{max-height:min(52vh,420px)}
  .eg{row-gap:5px}
  .eg button{height:40px;font-size:27px}
  /* the picker with every server (handoff 2026-11-15, not drawn for the phone): the same rail and list in the sheet */
  /* `:not(.cm .cm)` on these: the sheet rule above carries it, and without it that rule won (the picker stood in
     columns, its list wider than the phone; a profile lost its banner across the top). 4.0.1+33 */
  .cm.emo2.show:not(.cm .cm){flex-direction:row;flex-wrap:wrap;align-content:flex-start;padding:10px 0 var(--sab);height:min(74vh,600px);overflow:hidden}
  .cm.emo2.show:not(.cm .cm)::before{margin:0 calc(50% - 20px) 6px}
  .cm.emo2.show>.erl{height:calc(100% - 11px);background:none;padding-top:4px}
  .cm.emo2.show>.ebd{flex:1 1 0;height:calc(100% - 11px);padding:0 14px 10px 4px}
  .cm.ecd.show:not(.cm .cm){padding:10px 16px calc(26px + var(--sab))}

  /* the picture viewer: always dark, its three actions along the bottom */
  .vw{padding:calc(env(safe-area-inset-top,0px) + 70px) 0 calc(24px + var(--sab));background:#0E0E10}
  .vw-t{left:8px;right:10px;top:calc(env(safe-area-inset-top,0px) + 10px);gap:8px;color:#F4F4F6}
  .vw-t .av{display:none}
  .vw-t small{color:#A8A8B2}
  .vw-t .ib{background:none;color:#D0D0D8}
  .vw>.scene,.vw>img{border-radius:0;max-width:100%}
  .vw-a{display:none}
  /* a voice room with one person: the tile takes the width */
  .main>.stage.grid:has(>.tile:only-child){grid-template-columns:1fr}
  /* in a call the bar reads as the design's: an arrow down, the name, "Call" and the time */
  html:not([data-callchat=on]):has(.top .ib[title="Leave call"]) .top .hd>:first-child{display:none}
  html:not([data-callchat=on]):has(.top .ib[title="Leave call"]) .top .hd{display:block;margin-left:2px}
  html:not([data-callchat=on]):has(.top .ib[title="Leave call"]) .backb .back{transform:none}
  /* a thread's first message is a message like the others, not a card */
  .pp[data-s=thread]>.box{background:none;box-shadow:none;border-radius:0;margin:0;padding:6px 20px}
  .pp[data-s=thread]>.box .who .av{grid-row:1/3}
  /* the picture viewer's actions */
  .vw{padding-bottom:calc(96px + var(--sab))}
  .vw-t .ib:not([title=Close]){display:none}
  .vwb{position:absolute;left:0;right:0;bottom:var(--sab);display:flex;justify-content:space-around;padding:10px 24px 30px}
  .vwb button{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:12.5px;color:#D0D0D8;--i:22px;min-width:64px}
  .vw-s{bottom:calc(100px + var(--sab))}
  /* resetting a password keeps the icon */
  #ov-forgot form.sign.up{padding-top:calc(env(safe-area-inset-top,0px) + 80px)}
  #ov-forgot form.sign.up>.sv.cv{display:grid}
  #ov-forgot form.sign.up h2{margin-top:20px}
  /* The message box wastes no room (Jesse, 2026-11-14; not as drawn): the same 14px on both sides (the window's
     26px right margin with the panel closed reached the phone too), it sits just above the gesture bar and
     not 22px higher, the empty "is typing" line keeps 8px and not 24, and "Jump to latest" stands above the
     box, not on it. */
  :root .main{padding-left:14px;padding-right:14px}
  .comp,.pp[data-s=thread] .comp{margin-bottom:max(10px,var(--sab))}
  .typing:empty{height:8px;padding:0}
  .tolast{bottom:calc(52px + max(10px,var(--sab)) + 16px)}
  /* the keyboard is up: the message box sits 8px above it (phone.html screen 19, `.foot.k`) */
  html[data-kb] .comp,html[data-kb] .pp[data-s=thread] .comp{margin-bottom:8px}

  /* ---------- profile looks on the phone's profile sheet (cove-4-ui final/phone.html, screens 15 and 46 to 48,
     approved 2026-11-14). The design's `.sheet.pfs` is the app's card as a sheet (`.cm.card.pc.show`). ---------- */
  .cm.card.pc.show:not(.cm .cm){--pbg:var(--sheet);--ns:24px;--fg:9px;padding-top:0;overflow-x:hidden;background:var(--pbg)}
  .cm.card.pc.show:not(.cm .cm)::before{position:absolute;top:10px;left:50%;margin:0 0 0 -20px;background:rgba(255,255,255,.75);z-index:4}
  .pc.show>*:not(.bn){margin-left:0;margin-right:0}
  .pc.show>.bn{margin:0 -14px;height:112px;flex:none}
  .pc.show>i.fx{position:absolute}
  .pc.show .hd3{display:flex;align-items:flex-end;gap:28px;margin-top:-32px;padding-left:20px;position:relative;z-index:2}
  .pc.show .hd3 .av{--s:88px;box-shadow:0 0 0 6px var(--pbg)}.pc.show[data-frame] .hd3 .av{box-shadow:0 0 0 13px var(--pbg)}.pc.show .hd3 .st{--ring:var(--pbg)}
  .pc.show:not([data-frame]) .hd3{padding-left:10px;gap:18px}
  .pc.show .nt{max-width:214px;font-size:14px;margin-bottom:-4px}
  .pc.show h3.nm{font-weight:700;letter-spacing:-.02em;line-height:1.25;margin:16px 10px 0}
  .pc.show .un{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:14.5px;padding:1px 10px 0;min-height:28px;margin-top:0}
  .pc.show .bdg{--s:26px}
  .pc.show .mut{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:13.5px;padding:8px 10px 14px;margin-top:0}
  .pc.show .mut .stack .av{--s:24px;box-shadow:0 0 0 2.5px var(--pbg)}
  .pc.show:not(:has(.mut)) .un{padding-bottom:12px}
  .pc.show .go{order:0}.pc.show .bx{order:0}
  /* rows in a card, as the design's `.gc` and `.sr` */
  .pgc{border-radius:22px;background:var(--card);box-shadow:var(--lift);padding:6px;margin:6px 0 4px}
  .pgc .sr{--sh:none;display:flex;align-items:center;gap:12px;min-height:50px;padding:6px 10px 6px 12px;border-radius:16px;font-size:15px;font-weight:550;width:100%;background:none;box-shadow:none}
  .pgc .sr>.ic{color:var(--muted);--i:20px}
  .pgc .sr .l{flex:1;min-width:0}.pgc .sr .l b{display:block;font-weight:550;line-height:1.3}
  .pgc .sr .l small{display:block;color:var(--faint);font-size:13px;font-weight:400;line-height:1.35}
  .pgc .sr .v{margin-left:auto;color:var(--faint);font-size:14px;font-weight:450;white-space:nowrap}
  .pgc .sr .gi{border-radius:12px}.pgc .sr .v.live{color:var(--live);font-weight:600;font-variant-numeric:tabular-nums}
  .pgc .sr.ask{justify-content:center;background:var(--soft);min-height:42px;margin-top:2px}
  .card .bx>.pgc{margin-left:0;display:block}
  .pc.show .bx.fs{margin-top:8px}

  /* Profile look and Look & feel on the phone: cove-4-ui final pictures 224 to 227 (2026-11-16): the page full screen,
     every tab on one line, tiles three across (two for Mode), saved looks two across, no preview card on Profile
     look. Not drawn for the phone: the banner picture window (a stand-in: the window as a page). */
  .plk{flex-direction:column;align-items:stretch}
  .plp{display:none}
  .pg[data-p=prolook]{overflow-y:auto}
  .seg.tabs.it button{font-size:11px;padding:7px 2px 6px}
  .pg[data-p=look] .tts.six{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
  .pg[data-p=look] .tts:not(.six){display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
  .slks{grid-template-columns:repeat(2,1fr)}
  /* the phone: "Play the movement" choices go under the label (cove-4-ui final/cove.html, moving chat backgrounds) */
  .sr.cbm{flex-direction:column;align-items:stretch;gap:10px;padding:13px 14px 14px 18px}.sr.cbm>.seg{align-self:flex-start;max-width:100%}
  .plc .sr.col{height:auto;min-height:0}.plc .sr.col>.l{flex:none}.plc .sr.col>.opts{flex:none}
  .plc [data-look=nc]{flex-wrap:wrap!important}
  #ov-banner .dlg{border-radius:0;height:100%;max-height:none}
  .dz{height:200px}
}
/* A finger on a button (Jesse, 2026-11-14, with a picture of the blue box behind the microphone button; not drawn):
   Android's own box behind whatever is tapped is off, here and in a window alike. In its place the thing gives
   way under the finger and comes back: motion.js, "a finger on a button". */
*{-webkit-tap-highlight-color:transparent}
/* Voice messages on the phone: taken from cove-4-ui/final/phone.html (row 11, screens 49 to 52, "draft 2026-11-15").
   The design's .foot is the bottom of the chat; here that is .main, which holds the typing line and the message box. */
@media(max-width:600px){
  .vm{gap:10px;width:100%;padding:0 8px}
  .vm time{min-width:0}
  .spd{height:28px;min-width:40px;font-size:12.5px}
  .vm .new{margin:0 4px 0 -2px}
  .vm.short{width:auto}.vm.short .wf{width:calc(var(--bars) * 4.9px)}
  /* message box: when it is empty the send button is a mic. Hold it to record. */
  .comp .send.vmhide{display:none}
  .send.mic{--i:20px}
  .htip{position:absolute;right:14px;bottom:84px;height:30px;padding:0 12px;border-radius:999px;background:var(--ink);color:var(--base);font-size:13px;font-weight:600;display:flex;align-items:center;white-space:nowrap;z-index:3}
  .rdot{margin-left:0}
  .wf.live i{background:var(--accent)}.wf.live i.q{background:color-mix(in srgb,var(--faint) 35%,transparent)}
  /* holding to record */
  .comp.recb{gap:10px;padding:0 6px 0 18px;align-items:center}
  .comp.recb time{flex:none;font-size:16px;font-weight:600;font-variant-numeric:tabular-nums;min-width:40px}
  .comp.recb .wf{margin-right:84px}
  .typing.slc{text-align:center;color:var(--muted);font-size:13.5px;font-weight:550;display:flex;align-items:center;justify-content:center;gap:4px;--i:16px;padding:0}
  .bigmic{position:absolute;right:14px;bottom:6px;width:88px;height:88px;border-radius:50%;background:var(--accent);color:var(--on-accent);display:grid;place-items:center;--i:30px;box-shadow:0 0 0 12px color-mix(in srgb,var(--accent) 16%,transparent);z-index:2}
  .lockc{position:absolute;right:36px;bottom:124px;width:44px;height:96px;border-radius:22px;background:var(--card);box-shadow:var(--pop);display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:13px 0 10px;color:var(--muted);--i:18px;z-index:2}
  .lockc .ic+.ic{transform:rotate(180deg);--i:16px;color:var(--faint)}
  .lockl{position:absolute;right:92px;bottom:158px;height:28px;padding:0 12px;border-radius:999px;background:var(--card);box-shadow:var(--lift);color:var(--muted);font-size:12.5px;font-weight:600;display:flex;align-items:center;white-space:nowrap;z-index:2}
  /* locked: hands free, with delete, stop to listen first, and send */
  .rlock{border-radius:26px;background:var(--card);box-shadow:var(--lift);padding:14px 8px 8px;flex:none;margin-bottom:max(10px,var(--sab))}
  .rlock .r1{display:flex;align-items:center;gap:10px;padding:0 10px 0 12px;height:32px}
  .rlock .r1 time{flex:none;font-size:16px;font-weight:600;font-variant-numeric:tabular-nums;min-width:40px}
  .rlock .r1 .wf{height:28px}
  .rlock .r2{display:flex;align-items:center;justify-content:space-between;margin-top:10px}
  .rlock .ib.del{color:var(--bad);background:var(--soft)}
  .rlock .stp{height:40px;padding:0 16px 0 12px;border-radius:999px;background:var(--soft);display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;--i:18px}
  .rlock .stp .ic{color:var(--bad)}
  .typing.lkd{display:flex;align-items:center;gap:6px;--i:14px}
}

/* ---------- Coves on the phone (cove-4-ui final/phone.html, Coves row `?cv=all`, 2026-11-16): the pill under the
   Home tile, the Coves sheet (`.sheet.cvs`), Add a Cove as a page (`.cvlead`, `.cvc`, `.cvhint`, `.cvlan`). ---------- */
@media(max-width:600px){
  .cvsw{width:46px;height:24px;border-radius:12px;background:var(--sheet);color:var(--muted);margin:6px 0 0}
  #pop-coves.show{padding-top:10px}
  #pop-coves.show .cvh{display:none}
  #pop-coves.show>.cvr{min-height:76px;margin:0;padding:8px 16px 8px 14px;border-radius:0;background:var(--card);gap:14px}
  #pop-coves.show>.cvr:not(.cvr+*){border-radius:22px 22px 0 0;margin-top:6px}
  #pop-coves.show>.cvr:not(:has(+.cvr)){border-radius:0 0 22px 22px;margin-bottom:8px}
  #pop-coves.show>.cvr:not(.cvr+*):not(:has(+.cvr)){border-radius:22px}
  #pop-coves.show>.cvr.on{background:var(--card)}
  #pop-coves.show .cvr .ct{width:46px;height:46px;border-radius:16px;font-size:14px}
  #pop-coves.show .cvr .l b{font-size:15.5px;font-weight:700}
  #pop-coves.show .cvr .l small{font:400 12px/1.4 ui-monospace,"Cascadia Mono",Consolas,monospace;color:var(--faint)}
  #pop-coves.show .cvr>.ic{--i:22px}
  #pop-coves.show .lh{padding:10px 12px 6px;font-size:13.5px}
  #ov-addcove .say{color:var(--muted);font-size:15px;line-height:1.5;padding:2px 8px 18px;margin:0}
  #ov-addcove .inp.big{height:56px;font-size:16.5px;padding:0 22px}
  #ov-addcove .exs{padding:12px 6px 0;gap:8px}
  #ov-addcove .exs .pill{height:30px;padding:0 12px;background:var(--soft2);box-shadow:none;color:var(--muted)}
  #ov-addcove .phint{font-size:13px;padding:10px 8px 0;margin:0}
  #ov-addcove .lan{border-radius:24px;padding:6px;margin-top:18px}
  #ov-addcove .cvf{border-radius:24px;padding:18px;margin-top:16px}
  #ov-addcove .dlg{display:flex;flex-direction:column}
  #ov-addcove .acx{flex:1}
  #ov-addcove .foot{margin-top:auto;padding-bottom:30px}
  #ov-addcove .foot .btn{flex:1;height:50px;justify-content:center}
  #ov-addcove .foot .btn.lft{margin-right:0}
  .net.cvn{margin:0 12px 8px}
}
/* Someone's shown screen in a voice room on a phone: as cove-4-ui/final/phone.html draws it (the "is sharing"
   screen: .stage .share 250px on top, the people two by two under it). Until 4.0.1+5 the large tile was 0px high. */
@media(max-width:600px){
  .main>.stage.focus{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:250px;grid-auto-rows:minmax(0,1fr);gap:12px;overflow:visible;padding:0;margin:0;container-type:normal}
  .main>.stage.focus>.tile.big{grid-column:1/-1;grid-row:auto;position:relative;top:auto;height:auto;max-height:none;align-self:stretch}
  .main>.stage.focus>.tile:not(.big){grid-column:auto}
  .main>.stage.focus>.tile:not(.big) .av{--s:64px}
  /* The same in a call (Jesse, 2026-11-17: the stream showed only with the phone turned): until 4.0.1+25 the
     call's own rules left the large tile 0px high above the people. */
  html .call .tiles.big .stage.focus{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:250px;grid-auto-rows:minmax(0,1fr);gap:12px}
  html .call .tiles.big .stage.focus>.tile.big{grid-column:1/-1;grid-row:auto;position:relative;top:auto;height:auto;max-height:none;align-self:stretch}
  html .call .tiles.big .stage.focus>.tile:not(.big){grid-column:auto}
  html .call .tiles.big .stage.focus>.tile:not(.big) .av{--s:64px}
  /* with the chat open under the call: the screen, and the people in one low row */
  html[data-callchat=on] .call .tiles.big{height:342px;min-height:0}
  html[data-callchat=on] .call .tiles.big .stage.focus>.tile:not(.big) .av{--s:40px}
  /* Watch stream (not drawn in Cove 4 UI): the design's accent button under the screen sign, as Discord asks first */
  .tile.share .wstream{position:absolute;left:50%;top:calc(50% + 34px);transform:translateX(-50%);z-index:2;white-space:nowrap}
  .tile.share:has(.wstream) .wait{transform:translateY(-22px)}
  /* Stop watching sits left of the stream's volume button */
  .tile.share .tvol~.wstop{right:52px}
  .tile.share:has(.wstop) .tvol{display:grid}
}
/* A watched stream over the whole phone, turned sideways by the app (not drawn in Cove 4 UI): black around the
   picture. Not inside the phone's width: sideways the phone is wider than 600px. The stage's size container
   would hold a fixed box inside it, so it gives that up meanwhile. */
.stage:has(.tile.sfull),.tiles:has(.tile.sfull),.main:has(.tile.sfull){container-type:normal;contain:none;transform:none;overflow:visible}
/* !important: the larger layouts place the large tile with stronger rules (.stage.focus .tile.big: sticky, align-self start, which also sizes a fixed box) */
.tile.sfull{position:fixed!important;inset:0!important;z-index:200;border-radius:0;background:#000;box-shadow:none;height:auto!important;max-height:none!important;width:auto!important;margin:0!important;align-self:stretch!important;justify-self:stretch!important}
.tile.sfull .vid video{object-fit:contain}
.tile.sfull .tag{left:max(16px,env(safe-area-inset-left,0px));bottom:16px}
.tile.sfull .tvol{right:max(16px,env(safe-area-inset-right,0px));bottom:16px}
.tile.sfull .tpop{display:none}

/* ---------- The phone, put right (4.0.1+33; Jesse 2026-11-18 with three pictures of a 360px-wide phone: "incorrect
   chat and text formatting, emojis keyboard pop up broken, lack of gesture support for menu navigation, lack of
   scrolling support for menus", then "polish the app"). The phone screens were drawn and checked at 390px; on a
   narrower phone things wrapped, overlapped or ran off the screen. Nothing here is a new design: the same parts,
   made to fit. Where Cove 4 UI draws no phone screen (Choose your look, Server settings) the phone's own page and
   list from its Settings stand in. ---------- */
@media(max-width:600px){
  /* the page never drags or bounces as a whole; a sheet's own scrolling stays inside it */
  html,body{overscroll-behavior:none}
  .cm.show,.menu.open,.ov>.dlg,.content>.panel,.pg,.dnav,.emo-list,.lpk-grid,.pp .pbody,.lrow>.side,.rail{overscroll-behavior:contain}

  /* emoji: as many across as fit (eight 42px ones were wider than the sheet) */
  .cm.emo2.show .eg,.cm.emo.show .eg{grid-template-columns:repeat(auto-fill,minmax(40px,1fr))}
  .cm.emo2.show:not(.cm .cm)>.erl{padding-left:6px}

  /* a chat's top bar: a picture that wears a frame keeps the frame clear of Back and of the name */
  html:is([data-pview=dm],[data-pview=group]) .top .hd>.tav[data-frame]>.av{margin:0 6px 0 8px}
  .top .hd h1,.top .hd p{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

  /* the message box: the hint stays on one line, and GIF makes room for the words once you type */
  .comp textarea::placeholder{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .comp:has(textarea:not(:placeholder-shown)) .gifb{display:none}
  .comp .gifb{width:36px;font-size:11.5px}

  /* a profile: its labels on one line */
  .card .bx label{white-space:nowrap}

  /* settings pages: a field is as wide as the cards around it; three or more choices fill their row */
  .pg>label.sr:has(.inp){padding:0;gap:0;align-items:stretch;margin-bottom:12px}
  .pg>.sr:has(.seg button:nth-child(3)) .seg{width:100%}
  .pg>.sr:has(.seg button:nth-child(3)) .seg button{flex:1 1 auto;height:34px;text-align:center}
  /* four choices stand two by two (Status: three and a stray fourth before) */
  .pg>.sr .seg:has(button:nth-child(4)):not(:has(button:nth-child(5))){display:grid;grid-template-columns:1fr 1fr}
  /* what a phone has no use for: a keyboard's send key, and how the PC's screen is shown */
  #ov-settings .sr:is([data-set=send_with],[data-set=share_quality],[data-set=encoder]){display:none}
  /* Profile look: "All" stands under its row's choices, not over the row's words */
  .plc .sr.col>.lpall{position:static;order:9;align-self:flex-start;height:32px;padding:0 14px;font-size:13px}

  /* Choose your look (not drawn for the phone): a page that fills the screen and scrolls, its kinds in one row
     that slides sideways, three tiles across, no preview card (as Profile look on the phone, picture 226) */
  .dlg.lpk,.dlg.abd{width:100%;height:100%}
  .lpk>.dbody{flex:1;min-height:0;padding:0 16px calc(12px + var(--sab))}
  .lpk>.lpk-pv{display:none}
  .lpk .dh{height:auto;min-height:58px;flex-wrap:wrap;column-gap:4px;row-gap:0;margin:0 -6px 0 -8px;padding:9px 0 8px}
  .lpk .dh .x{order:-1;margin:0;display:grid}
  .lpk .dh h2{flex:1;font-size:17px;letter-spacing:-.015em;white-space:nowrap}
  .lpk .dh .lpk-n{flex:1 1 100%;margin:0;padding:0 8px 0 12px;font-size:13px;line-height:1.35}
  .lpk-bar{gap:8px;margin-bottom:8px}
  .lpk-bar>.seg:first-child{flex:1 1 100%;min-width:0;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;border-radius:999px;overscroll-behavior-x:contain}
  .lpk-bar .seg button{flex:none;height:34px}
  .lpk-grid{scrollbar-width:none}
  .lpk-pane{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .lpk-pane.hol{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lpk .foot{flex-wrap:wrap;margin-top:10px}
  .lpk .foot .lpk-hint{flex:1 1 100%;margin:0;padding:0 4px 2px}
  .lpk .foot .btn{flex:1;height:48px;justify-content:center;font-size:15px}

  /* Server settings (not drawn for the phone): a list of pages, then one page at a time, as Settings */
  #ov-server .dlg.lst .dbody,#ov-server .dlg:not(.lst) .dnav{display:none}
  #ov-server .dnav{flex:1;min-height:0;width:auto;flex-direction:column;align-items:stretch;gap:0;padding:0 16px calc(16px + var(--sab));overflow-y:auto;scrollbar-width:none;background:var(--sheet)}
  #ov-server .dnav>*{flex:none}
  #ov-server .dnav>.top{margin:0 -6px 4px -8px;padding:0}
  #ov-server .dnav>.top h1{font-size:17px;letter-spacing:-.015em;min-width:0}
  #ov-server .dnav .gh{padding:6px 12px 8px}
  #ov-server .dnav .ch{width:100%;min-height:50px;margin:0;padding:6px 10px 6px 18px;gap:12px;border-radius:0;background:var(--card);box-shadow:none;font-size:15px;font-weight:550;color:var(--ink);white-space:nowrap}
  #ov-server .dnav .ch .ic{--i:20px;color:var(--muted)}
  #ov-server .dnav .ch .badge{margin-left:auto}
  #ov-server .dnav .ch .badge+.vv{margin-left:6px}
  #ov-server .dnav .gh+.ch{border-radius:22px 22px 0 0;padding-top:12px;min-height:56px}
  #ov-server .dnav .ch:is(:has(+.gh),:last-child){border-radius:0 0 22px 22px;padding-bottom:12px;min-height:56px;margin-bottom:12px}
  #ov-server .dnav .gh+.ch:is(:has(+.gh),:last-child){border-radius:22px;min-height:62px}
  #ov-server .dbody{padding:0;min-height:0}
  #ov-server .dh{height:58px;gap:4px;padding:0 10px 0 8px}
  #ov-server .dh h2{font-size:17px;letter-spacing:-.015em}
  #ov-server .dh .x{display:none}
  #ov-server .dbody>.pg{margin:0;padding:4px 16px calc(16px + var(--sab));gap:0}
}
/* ---------- The phone, made smooth (4.0.1+34; Jesse 2026-11-18: "laggy", "choppy", "stutter a little") ---------- */
@media(max-width:600px){
  /* Looks that move (a frame's leaves, a name's shine) stand still in the chat, the lists and the top bar; they
     move on a profile, on your own card and in Settings. Each one that moves makes the page work out its styles
     again on every picture it draws: with a holiday frame on every row, scrolling a chat cost 13 times as much
     (measured, 325 against 24 ms). */
  .feed .plook,.lrow>.side .plook,.right>.top .plook,.mb .plook,.mb.plook{--cvp:paused}
  /* Look & feel, Accent colour: the preview's badge and Join button stand under the message, inside the box
     (beside it they ran out of the box on the right), and the box keeps clear of the card under it. */
  .pv .m:has(.pvx){flex-wrap:wrap}
  .pv .m:has(.pvx) .b{flex:1;min-width:0}
  .pvx{flex:1 1 100%;justify-content:flex-end;margin:4px 0 4px}
  .pg>.pv{margin-bottom:12px}
  /* Settings, Coves: its rows keep the room every settings row has, and so does the address field */
  .pg>.cvset>.sr{margin-bottom:12px}
  .cvset .addrow{margin:0 0 16px}
  /* Under a window that fills the phone nothing moves: nobody sees it, and it kept the page as busy as before
     (your own card's frame fluttered on under Settings). */
  html[data-modal]:not([data-modal=""]) .left>*,html[data-modal]:not([data-modal=""]) .right>*{--cvp:paused}
  /* The tiles to choose a look from: the chosen one moves, the others stand still until they are chosen. With
     every banner and effect on a page moving at once, Profile look kept the phone busy nine tenths of the
     time while nothing was touched ("opening any customization tabs on phone is laggy and choppy"). */
  .opts .ob:not(.on),.lpt:not(.on),.hlt:not(.on){--cvp:paused}
}
/* A finger dragging a page back or a sheet down (gestures.js): what moves follows the finger at once. */
.dragging{transition:none!important;will-change:transform}
.dragging-dim{transition:none!important}
/* the dark behind a sheet lightens as the sheet is dragged down (--drag: 1 down to 0) */
.shade[style*="--drag"],.content>.dim[style*="--drag"]{opacity:var(--drag)}
.ov[style*="--drag"]{background-color:rgba(12,12,16,calc(.42*var(--drag)))}
:is([data-theme=dark],[data-theme=black]) .ov[style*="--drag"]{background-color:rgba(0,0,0,calc(.5*var(--drag)))}
/* Sideways is never the browser's on a page that is swiped back: it only scrolls these up and down, so it keeps
   reporting every move of the finger (boxes inside that scroll sideways keep doing so, they are their own scrollers). */
/* Not only while a chat is open (`html[data-page=chat] .right`, until 4.0.2_5): what a box does with a finger is
   handed down to everything in it, so taking it away on Back made the phone work out the style of every row of the
   leaving chat again, 900 boxes, before its slide could start (measured 2026-12-02: 68 ms of 85, phone speed). */
@media(max-width:600px){
  .right,.right .feed,.ov>.dlg,.ov>.dlg .dbody,.content>.panel{touch-action:pan-y}
}
/* while a chat is dragged to the right the lists show under it; once it has left they do not slide in again */
html.peek[data-page=chat] .left{display:flex!important;position:fixed;inset:env(safe-area-inset-top,0px) 0 0 0;z-index:0}
html.peek[data-page=chat] .right{position:relative;z-index:1}
html.peek #app{overflow:hidden}
/* While a finger drags the chat back, nothing in the chat or in the lists under it moves by itself (art
   frames, banners, effects): each of them had both pages painted again for every picture of the drag, which
   kept a 120 Hz phone from following the finger at its own rate (Jesse, 2026-11-21). They go on once it settles.
   Here only for the lists, which have just been put on the page. The chat's own ones gestures.js stops one by
   one: switching the chat's --cvp had the browser work out the style of the whole chat, every message of it,
   at the very first move of the finger (Jesse, 2026-12-01: "cove is choppy"). Set on the lists' box itself and
   inherited, not on `.left>*`: a rule that ends in `*` makes the browser style every element of the page again
   when `peek` comes on (measured: 16 ms where the lists alone take 3). The box's own slide is not held. */
html.peek .left{--cvp:paused;animation-play-state:running!important}

/* ---------- 4.0.1+41: the phone's sheets for a conversation and the compact profile sheet, ported from
   cove-4-ui final/phone.html (the `dp`, `dp-s` and `dg` styles, screens 15, 46 to 48 and 65 to 74).
   `.content>.panel` is the design's `.sheet.dp`; `.dp-sc` scrolls it, so the header goes by while the
   tabs (`.dp-tb`) stay pinned. The server profile is the card as a sheet (`.pc.show.dps`). ---------- */
@media(max-width:600px){
  .content>.panel:has(>.dp){top:64px;max-height:none;padding:0;overflow:hidden;display:flex;flex-direction:column}
  .content>.panel:has(>.dp:not(.dg))::before{position:absolute;top:10px;left:50%;margin:0 0 0 -20px;background:rgba(255,255,255,.75);z-index:4}
  .content>.panel:has(>.dg)::before{margin:10px auto 0}
  .content>.panel:has(>.dp)::after{content:"";position:absolute;left:0;right:0;bottom:0;height:56px;background:linear-gradient(transparent,var(--sheet));pointer-events:none;z-index:3}
  .dp{--pbg:var(--sheet);--ns:24px;--fg:9px;flex:1;min-height:0;display:flex;flex-direction:column;position:relative;background:var(--pbg)}
  .dp-sc{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;position:relative;padding:0 14px calc(26px + var(--sab))}
  .dp-sc>*{flex:none}
  .dp-sc>i.fx{position:absolute}
  .dp-sc>.bn{margin:0 -14px;height:100px}
  .dp .hd3,.pc.show.dps .hd3{display:flex;align-items:flex-end;gap:0;justify-content:space-between;margin-top:-32px;padding:0 0 0 20px;position:relative;z-index:2}
  .dp .hd3 .av,.pc.show.dps .hd3 .av{--s:80px;box-shadow:0 0 0 6px var(--pbg)}
  .dp[data-frame] .hd3 .av,.pc.show.dps[data-frame] .hd3 .av{box-shadow:0 0 0 13px var(--pbg)}
  .dp .hd3 .st{--ring:var(--pbg)}
  .dp:not([data-frame]) .hd3{padding-left:10px}
  .dg h2.nm{font-size:21px}
  .dp h2.nm{font-weight:700;letter-spacing:-.02em;line-height:1.25;margin:16px 10px 0}
  .dp .un,.pc.show.dps .un{display:flex;align-items:center;gap:7px;flex-wrap:wrap;color:var(--muted);font-size:14.5px;padding:1px 10px 0;min-height:28px}
  .dp .un>.st,.pc.show.dps .un>.st{width:10px;height:10px;margin-left:5px}
  .dp .un .bdgs,.pc.show.dps .un .bdgs{margin-left:6px}
  .dp .bdg{--s:26px}
  .pc.show.dps>.bn{height:100px}
  .pc.show.dps .nt{display:none}
  .dp-acts{display:flex;gap:8px}
  .dp-acts .ib{width:46px;height:46px;background:var(--card);box-shadow:var(--lift);color:var(--ink)}
  .dp-acts .ib.on{background:var(--accent);color:var(--on-accent)}
  .dp-acts .ib.act{background:var(--ink);color:var(--card)}
  .dp-about{padding:6px 10px 0;font-size:15px;line-height:1.4;color:var(--ink2);margin:0}
  .dp-facts{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;padding:8px 10px 0;margin:0;color:var(--muted);font-size:13.5px}
  .dp-facts span{display:flex;align-items:center;gap:6px;--i:16px}
  .dp-note{margin:8px 10px 0;padding:8px 13px;border-radius:16px;background:var(--soft);font-size:14px;line-height:1.35;color:var(--ink2);width:fit-content;max-width:calc(100% - 20px)}
  .pc.show>.dp-note{margin:8px 10px 0}
  .dp-day{font-size:12px;font-weight:650;color:var(--faint);padding:6px 10px 6px}
  .dp-d1{margin-top:12px}
  .pc.show .pills{display:flex;flex-wrap:wrap;gap:6px;padding:0 8px 4px}
  .pc.show.dps:not(:has(.pills)) .un,.pc.show.dps:has(.dp-facts) .un{padding-bottom:0}
  .dp-tb{position:sticky;top:0;z-index:3;background:var(--pbg);margin:0 -14px;padding:16px 14px 10px}
  .seg.dp-tabs{width:auto;margin:0;padding:4px}
  .dp-tabs button{flex:1;text-align:center;height:38px;font-size:14px;padding:0 13px}
  .dp-tabs small{font-weight:500;opacity:.65;margin-left:6px;font-size:12.5px}
  .dp-body{margin:0 -4px;padding:0 4px;min-height:240px}
  .dp-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
  .dp-grid .dp-t{aspect-ratio:1;border-radius:16px;position:relative;overflow:hidden;display:block;font-style:normal;background:var(--soft)}
  .dp-grid .dp-t img{width:100%;height:100%;object-fit:cover;display:block}
  .dp-grid .dp-t b{left:6px;bottom:6px;height:20px;padding:0 7px;border-radius:10px;font-size:10.5px;z-index:2}
  .dp-body .pgc{margin:0 0 8px}
  .dp-body .pgc .sr{min-height:58px;text-align:left}
  .dp-body .sr .l b,.dp-body .sr .l small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .dp-body .sr>.ib{color:var(--muted)}
  .dp-ft{width:40px;height:40px;border-radius:13px;background:var(--soft);display:grid;place-items:center;flex:none;color:var(--muted);--i:19px}
  .dp-ft.acc{background:var(--accent);color:var(--on-accent)}
  .dp-body .dp-none{padding:14px 10px}
  .dp-body .dp-none b{display:block;font-size:17px;font-weight:650;letter-spacing:-.01em;line-height:1.3}
  .dp-body .dp-none span{display:block;color:var(--muted);font-size:14.5px;margin-top:3px;line-height:1.3}
  .dg .hd3{margin-top:14px;padding-left:10px}
  .dg .hd3 .av2{--d:80px;--ring:var(--sheet)}.dg .hd3 .av2>.av{--s:54px;box-shadow:none}.dg .hd3 .av2>.av+.av{box-shadow:0 0 0 4px var(--sheet)}
  .dg .hd3>.av{--s:80px;box-shadow:none}
  .dg .dp-tabs button{font-size:13.5px;padding:0 4px}.dg .dp-tabs small{margin-left:4px}
  .dg .dp-body .sr>.av{--s:40px}
  .dg .dp-body .sr .st{--ring:var(--card)}
  .dg .dp-body .sr .dp-own{margin-left:auto;font-size:12.5px;font-weight:600;color:var(--muted);background:var(--soft);height:24px;padding:0 10px;border-radius:12px;display:flex;align-items:center}
}
