/* Cove v2 phone (cove-4-ui final/v2-phone.css, approved by Jesse 2026-12-01): A+ "Panels, modern" on every phone screen.
   The phone's base tone shows at the edges; each area is its own card 8px in from the edge: the list, the messages,
   the composer, you, every settings group. Sheets sit on the base tone, their groups as cards.
   Mapped onto the app's phone (the window's own page under 600px, phone.css): the design's .foot (typing line and
   composer in one card) has no box of its own here, so the composer is that card and the typing line sits above it. */
@media (max-width:600px){

/* lists: rail on the base, the list is a card, you float as a card under it */
html .left{background:var(--base)}
html .lrow{padding:0 8px 0 0}
html .rail{width:64px;padding:2px 0 0}
html .sv{border-radius:15px;background:var(--pnl);box-shadow:var(--psh)}
html .sv.on{background:var(--ink);color:var(--base);box-shadow:none}
html .sv.add{background:none;box-shadow:none}
html .sv.cv{border-radius:50%}
html .lrow>.side{background:var(--pnl);border-radius:20px;box-shadow:var(--psh);padding:4px 8px 8px;margin:0 0 0 0}
/* the bottom cards sit higher, clear of the rounded corners of the screen (design: you 26px, composer and call dock 28px, the
   list ends 98px above the bottom, the message box 8px above the keyboard: phone.css `html[data-kb] .comp`). On a phone with
   a gesture bar they sit just above its pill (Jesse 2026-12-01: "bring it down and keep it close to the little white pill"):
   the bar's own height less 4px, never less than the design's; the list always ends 8px above you (it ran under you). */
html .lrow:has(~.me){margin-bottom:calc(72px + max(26px,calc(var(--sab) - 4px)))}
html .side-h{height:50px;margin-bottom:2px;background:none;box-shadow:none;border-radius:12px;padding:0 0 0 10px;font-size:17px}
html .side-h .ib{border-radius:12px}
html .find{height:42px;border-radius:12px;background:var(--in);box-shadow:none;padding:0 14px;margin:0 0 6px}
html .gh{padding:14px 10px 6px}
html :is(.ch,.dm){border-radius:12px}
html .room{background:var(--in);box-shadow:none;border-radius:14px}
html .stack .av{box-shadow:0 0 0 2.5px var(--in)}
html .me{left:8px;right:8px;bottom:max(26px,calc(var(--sab) - 4px));border-radius:20px;background:var(--pnl);box-shadow:var(--psh)}
html .me-v,html .me-r{background:none;box-shadow:none}
html .me .st{--ring:var(--pnl)}
html .me .ib{border-radius:12px}
html .side .av .st{--ring:var(--pnl)}
html .side .av2>.av+.av{box-shadow:0 0 0 2.5px var(--pnl)}

/* chat: header on the base, messages in a card, the composer in a second card */
html .right{background:var(--base)}
html .top .ib{border-radius:12px}
html .top .ib.act{background:var(--pnl);box-shadow:var(--psh)}
html .top .av .st,html .top .av2{--ring:var(--base)}
html .main{padding:0 8px}
html .feed:not(.o-w .feed){margin:0;background:var(--pnl);border-radius:20px;box-shadow:var(--psh);padding:0 12px 6px}
html .feed{-webkit-mask-image:linear-gradient(transparent,#000 24px);mask-image:linear-gradient(transparent,#000 24px)}
html .m{border-radius:12px}
html :is(.day,.rx button,.rx span){background:var(--in);box-shadow:none}
html .rx :is(button,span){border-radius:10px}
html .rx button.mine{background:color-mix(in srgb,var(--accent) 18%,var(--in));color:var(--ink)}
html :is(.media,.lk,.fl,.poll){border-radius:14px;background:var(--in);box-shadow:none}
html .typing{padding:6px 0 0 10px}
html .comp{min-height:52px;border-radius:20px;background:var(--pnl);box-shadow:var(--psh);padding:0 6px;margin-bottom:max(28px,calc(var(--sab) - 4px))}
html .comp .ib{border-radius:10px}
html .send{border-radius:11px}
html .net{margin:0 8px 8px;border-radius:14px}
html .newbar{border-radius:14px}

/* voice and calls: tiles and dock as panels */
html .main:has(>.stage){padding:0 8px!important}
html .tile{border-radius:20px;background:var(--pnl);box-shadow:var(--psh)}
html .tile.talk{box-shadow:0 0 0 2.5px var(--live)}
html .tile .tag{border-radius:10px}
html .dock{margin:8px 8px max(28px,calc(var(--sab) - 4px));padding:8px;gap:8px;border-radius:20px;background:var(--pnl);box-shadow:var(--psh)}
html .dk{border-radius:14px;background:var(--in);box-shadow:none}
html .dk.onn{background:var(--ink);color:var(--pnl)}
html .dk.leave{border-radius:14px;background:color-mix(in srgb,var(--bad) 14%,var(--in))}

/* pages (friends, inbox, settings): rows have rounded corners, controls sit on cards */
html .sr{border-radius:12px}
html .seg{border-radius:12px}
html .seg button{border-radius:9px}
html .sr .seg{background:var(--in)}
html .inp{border-radius:14px}
html .pill{border-radius:9px}
html .mb{border-radius:12px}

/* sheets: on the base tone like the desktop windows; their groups are panel cards */
html .content>.panel{background:var(--base);border-radius:24px 24px 0 0;padding:10px 8px calc(24px + var(--sab))}
html .panel .mb .st{--ring:var(--base)}
html .sheet-h .ib{background:var(--pnl);box-shadow:var(--psh);border-radius:12px}
html :is(.cm.show:not(.cm .cm),.menu.open){background:var(--base)}
/* every sheet has the design's .sheet corners and padding (v2-phone.css .sheet: 24px, 10px 8px 24px) */
html :is(.cm.show:not(.cm .cm),.menu.open,.ov>.dlg.sm){border-radius:24px 24px 0 0;padding:10px 8px calc(24px + var(--sab))}
html .pc.show>.bn{margin:0 -8px} /* the profile sheet's banner still meets both edges */
html .toast{border-radius:22px;background:var(--pnl)}
html .otp span{border-radius:14px}
}
