/* Cove v2, phone held sideways (cove-4-ui final/v2-land.css, approved by Jesse 2026-12-01; phone.html?set=land).
   844 x 390. No status bar (the phone hides it sideways). The camera sits on the left: 52 px kept clear there,
   22 px on the right, 22 px at the bottom for the home bar. Same panels, radii and motion as the upright phone.
   A phone on its side is wider than 600px, so the app draws its window there (v2-desk.css); these rules turn that
   window into the design's sideways screens. The design's own names map onto the app's:
   .lcol = .side + .me (the rail beside both), .lmain = .right (its ::before is the chat panel), .lpan = .content>.panel,
   .phone.ls.kbd = html[data-kb] (the Android app sets it while the keyboard is up), .snav/.spg = the settings window's
   .dnav/.dbody. Where a phone reports its own safe area (camera, home bar) it counts when larger than the design's. */
@media (orientation:landscape) and (max-height:500px) and (min-width:601px) and (pointer:coarse){

html #app{gap:8px;background:var(--base);
  padding:max(10px,env(safe-area-inset-top)) max(22px,env(safe-area-inset-right)) max(22px,calc(env(safe-area-inset-bottom) - 4px)) max(52px,env(safe-area-inset-left))}
/* no window bar and no search in it */
html .wbar{display:none}

/* rail: the server icons, a little smaller; left column: the list on top, you under it */
html .left{width:302px;display:grid;grid-template-columns:46px 248px;grid-template-rows:minmax(0,1fr) auto;gap:8px}
html .lrow{display:contents}
html .rail{grid-column:1;grid-row:1/3;width:46px;padding:0;gap:7px;flex:none;min-height:0}
html .rail .sv{width:44px;height:44px;flex:none;border-radius:14px;font-size:13px}
html .rail .sv.cv{width:46px;height:46px;margin:0;border-radius:50%}
html .rail .gap{display:none}
html .lrow>.side{grid-column:2;grid-row:1;min-height:0;padding:2px 6px 6px;border-radius:20px;position:relative;top:auto;left:auto;bottom:auto;width:auto;overflow-y:auto;scrollbar-width:none;
  z-index:auto}
html .lrow>.side>*{flex-shrink:0}
/* a phone on its side is 640-820px wide, where a window keeps its list in a drawer and shows you as a picture only
   (style.css, min-width:601px and max-width:820px): sideways the list and your name always show (Jesse's phone, 803px) */
html:not([data-list=off]) .lrow>.side{display:flex}
html:not([data-list=off]) .me-r .who{display:block}
html:not([data-list=off]) .me-r .mebtn{flex:1}
html:not([data-list=off]) .me-r{justify-content:flex-start}
html .navb{display:none}
html .side-h{height:44px;font-size:16px;padding-left:8px}
html .gh{padding:8px 10px 4px}
html .side :is(.ch,.dm){min-height:36px;padding:6px 10px;font-size:14.5px;border-radius:12px}
html .side .dm .av{--s:32px}
html .side .dm{padding:5px 10px 5px 6px}
html .room{padding:9px 10px;margin:2px 0 4px}
html .room-b{margin-top:7px}
html .room-b .btn{height:32px;padding:0 16px;font-size:13px;border-radius:10px}
html .me{grid-column:2;grid-row:2;position:static;flex:none;margin:0;left:auto;right:auto}
html .me-r{padding:7px 6px 7px 8px;gap:10px;border-radius:18px}
html .me-v{border-radius:18px}
html .me .av{--s:36px}
html .me b{font-size:14px}html .me small{font-size:12px}
html .me-r .mebtn{gap:10px}
html .me .ib,html .me-r .tools .ib{width:36px;height:36px;border-radius:12px}
html .me .ib.act{color:var(--bad)}
/* the design draws the microphone and the settings here, as the upright phone does */
html .me-r .tools .ib[title$=eafen]{display:none}

/* the chat: one panel with its header, messages and the composer */
html .right::before{border-radius:20px}
html header.top{height:48px;padding:0 6px 0 12px;gap:4px}
html .top h1{font-size:16px}
html header.top .ib{width:40px;height:40px;border-radius:12px}
html header.top .sp{gap:2px}
html header.top .ib.act{background:var(--pnl);box-shadow:var(--psh)}
html .top .hd{gap:6px}
html .top .hd p{font-size:13px}
html .top .listb,html .top .navb{display:none}
/* the topic shows when the chat has the room (the list hidden, L2) */
html .top .hd p{display:none}
html #app .main{padding:0 14px;--mpl:14px;--mpr:14px}
html .m{padding:5px 8px;margin:0 -6px}
html .mt{font-size:14.5px;line-height:1.45}
html .m>.av{--s:34px}
html .typing{height:20px;margin:0 -6px;padding:0 0 4px 6px;font-size:12px}
html .comp{min-height:42px;margin:0 -6px 8px;padding:0 4px}
html .comp .ib{width:40px;height:40px;margin-bottom:1px}
html .comp textarea{height:42px;padding:10px 6px}
html .send{width:36px;height:36px;margin:0 0 3px 4px}

/* members: a second panel on the right; the list makes room for it and the header gets a way back */
html:has(.right>.content>.panel:not(.gone)) .left{display:none}
html:has(.right>.content>.panel:not(.gone)) .top .backb{display:grid}
html:has(.right>.content>.panel:not(.gone)) .top .hd p{display:block}
html .right:has(>.content>.panel:not(.gone))>header.top,
html .right:has(>.content>.panel:not(.gone))>.net{margin-right:232px}
html .right:has(>.content>.panel:not(.gone))::before{right:232px}
html .content>.panel{position:relative;top:auto;bottom:auto;right:auto;z-index:auto;margin:-48px 0 0 8px;width:224px;flex:none;
  border-radius:20px;background:var(--pnl);box-shadow:var(--psh);padding:4px 6px 6px;overflow-y:auto}
html .content>.panel:has(>.pnh){padding-top:4px}
html .pnh{height:44px;padding-left:8px;font-size:16px;letter-spacing:-.015em}
html .pnh span{font-size:13px}
html .pnh .ib{border-radius:12px;width:36px;height:36px}
html .panel .grp>h4{font-size:12px;font-weight:650;color:var(--faint);padding:8px 10px 3px}
html .panel .mb{min-height:38px;padding:4px 8px;border-radius:12px;gap:10px}
html .panel .mb .av{--s:30px}
html .panel .mb b{font-size:14px}html .panel .mb small{font-size:12px}
html .panel .mb .st{--ring:var(--pnl)}

/* typing: the keyboard takes the lower half, the chat keeps the upper half */
html[data-kb] #app{padding:8px max(52px,env(safe-area-inset-right)) 6px max(52px,env(safe-area-inset-left))}
html[data-kb] .left{display:none}
html[data-kb] header.top{height:40px}
html[data-kb] .top .ib[title=Pinned]{display:none}

/* settings: the list of pages on the left, the open page on the right, its rows joined into one block.
   The app's settings and server settings are one long page beside their list (.dlg.lpw); sideways they fill the screen. */
html :is(#ov-settings,#ov-server):has(>.dlg.lpw){background:var(--base);place-items:stretch;
  padding:max(10px,env(safe-area-inset-top)) max(22px,env(safe-area-inset-right)) max(22px,calc(env(safe-area-inset-bottom) - 4px)) max(52px,env(safe-area-inset-left))}
html :is(#ov-settings,#ov-server)>.dlg.lpw{width:100%;height:100%;max-width:none;max-height:none;padding:0;gap:8px;background:none;box-shadow:none;border-radius:0}
html :is(#ov-settings,#ov-server) .lpw .dnav{width:224px;border-radius:20px;padding:4px 6px 6px;overflow-y:auto;scrollbar-width:none}
html :is(#ov-settings,#ov-server) .lpw .dnav h3{height:44px;flex:none;display:flex;align-items:center;margin:0;padding:0 0 0 8px;font-size:16px}
html :is(#ov-settings,#ov-server) .lpw .find{display:none}
html :is(#ov-settings,#ov-server) .lpw .dnav .ch{min-height:36px;height:36px;padding:6px 10px;gap:10px;font-size:14.5px;border-radius:12px}
html :is(#ov-settings,#ov-server) .lpw .dnav .ch.on{font-weight:600;color:var(--ink)}
html :is(#ov-settings,#ov-server) .lpw .glide{height:36px;border-radius:12px}
html :is(#ov-settings,#ov-server) .lpw:not(.full)>.dbody{background:none;box-shadow:none;border-radius:0;padding:0;overflow:visible}
html :is(#ov-settings,#ov-server) .lpw .dbody>.lpg{padding:0 0 6px;margin:0}
/* the close button sits in the list's header, at its right end (the design's .snav .side-h) */
html :is(#ov-settings,#ov-server) .lpw:not(.full)>.dbody>.x{left:-50px;right:auto;top:8px;border-radius:12px}
html :is(#ov-settings,#ov-server) .lpw .sect h2{height:44px;margin:0 0 8px;padding:0 0 0 6px;font-size:18px;letter-spacing:-.015em;background:linear-gradient(var(--base) 78%,transparent)}
html :is(#ov-settings,#ov-server) .lpw .sect>.card{background:var(--pnl);border-radius:16px;box-shadow:var(--psh);padding:0;overflow:hidden}
html :is(#ov-settings,#ov-server) .lpw .card .sr:not(:where(.ov .ov *)){min-height:52px;padding:8px 14px;border-radius:0;font-size:14.5px;font-weight:550}
html :is(#ov-settings,#ov-server) .lpw .card .sr .l b{font-size:14.5px;font-weight:550}
html :is(#ov-settings,#ov-server) .lpw .card .sr .l small{color:var(--faint);font-size:12.5px}
html :is(#ov-settings,#ov-server) .lpw .card .sr:not(:where(.ov .ov *))>.lvl{width:180px}
html :is(#ov-settings,#ov-server) .lpw .card .sr:not(:where(.ov .ov *))>.inp:not(.fix):not(.code){width:auto;height:34px;border-radius:10px;font-size:13.5px}
html :is(#ov-settings,#ov-server) .lpw .card .sr :is(.seg,.inp,.btn:not(.pri):not(.bad),.lvl){background:var(--in)}

/* voice room (L3): the shared screen large, people in a column, the controls in a strip on the right.
   The room's top bar floats on the screen (the design's .float); Back shows the list again (data-page=list). */
html[data-pview=room][data-page=chat] .left{display:none}
html[data-pview=room][data-page=chat] .right::before{display:none}
html[data-pview=room][data-page=chat] header.top{position:absolute;left:10px;top:10px;z-index:3;width:auto;height:36px;padding:0 12px 0 4px;gap:6px;
  border-radius:12px;background:rgba(15,15,17,.62);backdrop-filter:blur(10px);color:#fff;box-shadow:none}
html[data-pview=room][data-page=chat] header.top .sp{display:none}
html[data-pview=room][data-page=chat] header.top .backb{display:grid;width:30px;height:30px;border-radius:9px;color:#fff;background:none}
html[data-pview=room][data-page=chat] header.top .backb .ic{--i:20px;width:20px;height:20px}
html[data-pview=room][data-page=chat] .top .hd{gap:0;align-items:center}
html[data-pview=room][data-page=chat] .top .hd h1{display:flex;align-items:center;gap:6px;font-size:13.5px;font-weight:600;letter-spacing:0;color:#fff}
html[data-pview=room][data-page=chat] .top .hd h1 .ic{--i:16px;width:16px;height:16px;color:#fff}
html[data-pview=room][data-page=chat] .top .hd p{display:block;margin-left:4px;font-size:11.25px;font-weight:500;color:#fff;opacity:.75}
html[data-pview=room][data-page=chat] #app .main{flex-direction:row;gap:8px;padding:0!important}
html[data-pview=room][data-page=chat] .main>.stage.focus{flex:1;min-width:0;grid-template-columns:minmax(0,1fr) 172px;grid-template-rows:repeat(4,minmax(0,1fr));
  grid-auto-rows:minmax(0,1fr);gap:8px;padding:0;margin:0;overflow:visible}
html[data-pview=room][data-page=chat] .main>.stage.focus>.tile{border-radius:16px;background:var(--pnl);box-shadow:var(--psh)}
html[data-pview=room][data-page=chat] .main>.stage.focus>.tile.talk{box-shadow:0 0 0 2.5px var(--live)}
html[data-pview=room][data-page=chat] .main>.stage.focus>.tile.big{grid-column:1;grid-row:1/-1;position:relative;top:auto;align-self:stretch;height:auto;max-height:none;border-radius:20px}
html[data-pview=room][data-page=chat] .main>.stage.focus>.tile:not(.big){display:flex;align-items:center;gap:10px;padding:0 10px}
html[data-pview=room][data-page=chat] .main>.stage.focus>.tile:not(.big) .av{--s:36px}
html[data-pview=room][data-page=chat] .main>.stage.focus>.tile:not(.big)>.tag{position:static;flex:1;min-width:0;height:auto;padding:0;border-radius:0;background:none;backdrop-filter:none;
  color:var(--ink);font-size:14px;font-weight:600;--i:16px}
html[data-pview=room][data-page=chat] .main>.stage.focus>.tile:not(.big)>.tag .ic{order:2;margin-left:auto;color:var(--bad)}
html[data-pview=room][data-page=chat] .main>.stage.focus>.tile:not(.big)>:is(.tvol,.sbn){display:none}
html[data-pview=room][data-page=chat] .main>.stage.focus>.tile:not(.big)>.ltalk{display:flex;flex:none;color:var(--live);--i:16px}
html[data-pview=room][data-page=chat] .tile.share>.tag{left:10px;bottom:10px}
html[data-pview=room][data-page=chat] .tile.share:not(.sfull)>:is(.tvol,.qtag){display:none}
html :is(.tile.share>.float,.tile.sfull .lfs>.float){position:absolute;left:10px;top:10px;z-index:3;display:flex;align-items:center;gap:6px;height:36px;padding:0 12px 0 4px;border-radius:12px;
  background:rgba(15,15,17,.62);backdrop-filter:blur(10px);color:#fff;font-size:13.5px;font-weight:600}
html .tile.share .float .ib{color:#fff;width:30px;height:30px;border-radius:9px;--i:18px}
html .tile.share .float small{font-weight:500;opacity:.75;margin-left:4px}
html .tile.share>.float.r{left:auto;right:10px;padding:0 4px}
html[data-pview=room][data-page=chat] .tile.share:not(.sfull)>.tfull{display:flex}
/* the app's own Watch stream ask, placed as the upright phone places it (phone.css) */
html .tile.share .wstream{position:absolute;left:50%;top:calc(50% + 34px);transform:translateX(-50%);z-index:2;white-space:nowrap}
html .tile.share:has(.wstream) .wait{transform:translateY(-22px)}
html[data-pview=room][data-page=chat] .main>.dock{flex:none;flex-direction:column;justify-content:center;gap:8px;padding:8px;margin:0;
  border-radius:20px;background:var(--pnl);box-shadow:var(--psh)}
html[data-pview=room][data-page=chat] .main>.dock>.dk{width:48px;height:48px;flex:none}
html[data-pview=room][data-page=chat] .main>.dock>.dk.dsk{display:none}
html[data-pview=room][data-page=chat] .main>.dock>.dk.leave{padding:0;gap:0;justify-content:center;font-size:0;color:#fff;background:var(--bad)}
html[data-pview=room][data-page=chat] .main>.dock>.dk.leave>svg{display:none}
html[data-pview=room][data-page=chat] .main>.dock>.dk.leave>.lend{display:contents}

/* full screen (L4): the stream edge to edge on black; in glass, Leave full screen with the title, who is there
   (a green ring on whoever talks) and the controls. They hide after 3 s and come back on a tap (voice.rs). */
html .tile.sfull>.lfs{display:block;position:absolute;inset:0;z-index:3;pointer-events:none;color:#fff;transition:opacity 120ms cubic-bezier(.32,0,.67,0)}
html .tile.sfull>.lfs.calm{opacity:0}
html .tile.sfull>.lfs:not(.calm)>*{pointer-events:auto}
html .tile.share.sfull>:is(.tag,.tvol,.tpop,.qtag,.float.tfull){display:none}
html .tile.share.sfull .lfs>.float{left:max(56px,env(safe-area-inset-left));top:12px}
html .tile.sfull .ppl2{position:absolute;right:max(22px,env(safe-area-inset-right));top:12px;display:flex;gap:6px}
html .tile.sfull .ppl2 .av{--s:38px;box-shadow:0 0 0 2.5px rgba(0,0,0,.5)}
html .tile.sfull .ppl2 .talk .av{box-shadow:0 0 0 2.5px #22CF6E}
html .tile.sfull .gdock{position:absolute;left:50%;bottom:max(24px,env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;gap:6px;padding:6px;
  border-radius:18px;background:rgba(15,15,17,.62);backdrop-filter:blur(14px)}
html .tile.sfull .gdock .dk{width:44px;height:44px;border-radius:12px;background:rgba(255,255,255,.12);color:#fff;box-shadow:none}
html .tile.sfull .gdock .dk.leave{width:auto;padding:0 16px;display:flex;align-items:center;gap:8px;background:#E5342A;color:#fff;font-size:14.5px;font-weight:600}
}
/* only the phone held sideways draws these (above) */
.tile>.tfull,.tile>.lfs,.tile>.ltalk,.dk.leave>.lend{display:none}
