/* Cove v2, a window (cove-4-ui final/v2-desk.css, approved by Jesse 2026-12-01): A+ "Panels, modern" on every piece.
   Every area is its own card on the base tone with an 8px gap: server rail buttons, channel list, voice card,
   profile card, chat (header + messages + composer in one card), side panel, and the parts of every window.
   Ported as drawn. Where the design names its own view classes (.panel.v, .side.v, .main.v, data-view) these
   rules name the app's (.content>.panel, .lrow>.side, data-pview). A phone (600px and under) keeps v2-phone.css. */
@media (min-width:601px){

/* ---------- window bar: 48px (no search in it: removed 2026-12-04; Ctrl K still opens Jump anywhere) ---------- */
html #app{padding:48px 8px 8px 0;gap:8px}
html .wbar{height:48px;align-items:center}
html .wbar button{height:48px;width:46px}

html .vw-t{top:56px}

/* ---------- left column: rail on the base, then cards ---------- */
html .left{width:356px;gap:8px}
html .rail{width:68px;flex:none;padding:0 0 8px;gap:8px} /* never squeezed: the server tiles keep their place while the channel list hides and shows */
html .sv{border-radius:14px;background:var(--pnl);box-shadow:var(--psh)}
html .sv:hover{background:var(--pnl);color:var(--ink)}
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 .sv .n{box-shadow:0 0 0 3px var(--base)}
html .lrow>.side{background:var(--pnl);border-radius:16px;box-shadow:var(--psh);padding:4px 8px 8px;margin:0}
html .side-h{height:50px;background:none;box-shadow:none;padding:0 4px 0 10px;margin-bottom:2px;border-radius:12px}
html .side-h .ib:hover{background:var(--in)}
html .menu{top:58px;left:8px;right:8px;border-radius:14px;padding:6px}
html .menu .ch:hover,html .cm .ch:hover{background:var(--in)}
html .gh{padding:14px 10px 6px}
html :is(.ch,.dm){border-radius:10px}
html .ch{padding:8px 10px}
html :is(.ch,.dm):hover{background:color-mix(in srgb,var(--in) 60%,transparent)}
html :is(.ch,.dm).on{background:var(--in);box-shadow:none}
html .room{background:var(--in);box-shadow:none;border-radius:12px}
html .stack .av{box-shadow:0 0 0 2.5px var(--in)}

/* you: the voice card and the profile card sit apart */
html .me{margin:0 0 0 8px;background:none;box-shadow:none;border-radius:0;overflow:visible;display:flex;flex-direction:column;gap:8px}
html .me-v{border-radius:16px;background:color-mix(in srgb,var(--live) 14%,var(--pnl));box-shadow:var(--psh)}
html .me-v .btn{background:var(--pnl)}
html .me-r{border-radius:16px;background:var(--pnl);box-shadow:var(--psh)}
html .me-r .ib:hover{background:var(--in)}
/* collapsed (channel list hidden, or the narrow window): the card is only the avatar, so it is a circle like the server tiles' round neighbours */
html[data-list=off] .me-r{border-radius:26px}

/* avatar status rings take the colour of the surface they sit on */
html .av .st{--ring:var(--pnl)}
html :is(.on,.room,.box,.grp.inr,.fr:hover,.mb:hover) .av .st{--ring:var(--in)}
html .av2>.av+.av{box-shadow:0 0 0 2.5px var(--pnl)}html .on .av2>.av+.av{box-shadow:0 0 0 2.5px var(--in)}

/* ---------- right: the chat is one card (header, messages, composer); the side panel is a second card ---------- */
html .right{background:none;border-radius:0;position:relative;isolation:isolate}
html .right::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:16px;background:var(--pnl);box-shadow:var(--psh);pointer-events:none}
html header.top{height:56px;padding:0 10px 0 20px}
html header.top .ib{border-radius:10px}
html header.top .ib:hover,html header.top .ib.act{background:var(--in)}
html .top .st{--ring:var(--pnl)}
html .main{padding:0 16px 0 20px;--mpl:20px;--mpr:16px}
html .main .feed{-webkit-mask-image:linear-gradient(transparent,#000 40px);mask-image:linear-gradient(transparent,#000 40px)}
@media (min-width:1101px){
  html .right:has(>.content>.panel:not(.gone))>header.top,
  html .right:has(>.content>.panel:not(.gone))>.net{margin-right:300px}
  html .right:has(>.content>.panel:not(.gone))::before{right:300px}
  html .content>.panel{margin:-56px 0 0 8px;width:292px;border-radius:16px;background:var(--pnl);box-shadow:var(--psh);padding:8px 8px 10px}
  html .content>.panel:has(>.pnh){padding-top:0}
}
@media (max-width:1100px){
  html .content>.panel{top:56px;bottom:8px;right:8px;border-radius:16px;background:var(--pnl)}
  html .main{padding-right:16px;--mpr:16px}
}
@media (max-width:820px){
  html .left{width:68px}
  html .lrow>.side{top:48px;left:68px;bottom:8px;border-radius:16px;background:var(--pnl)}
  html .me{margin:0 0 0 8px}
  html .me-r{border-radius:26px;width:52px;align-self:center}
}

/* panel header: title, count, close */
.pnh{height:56px;flex:none;display:flex;align-items:center;gap:8px;padding:0 0 0 10px;font-size:15px;font-weight:700;letter-spacing:-.01em}
.pnh span{color:var(--faint);font-weight:600;font-size:13px}
.pnh .ib{margin-left:auto;--i:17px;border-radius:10px}.pnh .ib:hover{background:var(--in)}
html .panel .grp[data-fold=inroom]{background:var(--in);border-radius:12px;padding-bottom:4px;margin-bottom:4px}
html .panel .grp[data-fold=inroom] .mb:hover{background:color-mix(in srgb,var(--pnl) 60%,transparent)}
html .panel .grp[data-fold=inroom] .av .st{--ring:var(--in)}
html .mb{border-radius:10px}
html .mb:hover{background:var(--in)}

/* things that sat on the old grey sheet as white cards now take the inner tone, flat */
html .m{border-radius:12px}
html .m:hover{background:color-mix(in srgb,var(--in) 70%,transparent)}
html :is(.day,.rx button){background:var(--in);box-shadow:none}
html .rx button.mine{background:color-mix(in srgb,var(--accent) 16%,var(--pnl));box-shadow:inset 0 0 0 1.5px var(--accent);color:var(--accent)}
html .media{border-radius:14px;background:var(--in);box-shadow:none}
html .acts{border-radius:12px}html .acts .ib{border-radius:8px}
html .comp{border-radius:14px;background:var(--in);box-shadow:none;min-height:52px;margin-bottom:16px}
html .comp .ib{border-radius:10px}html .comp .ib:hover{background:var(--pnl)}
html .send{border-radius:11px}
html .fr{border-radius:12px}html .fr:hover{background:var(--in)}
html .fr .ib{background:var(--in);box-shadow:none;border-radius:10px}html .fr:hover .ib{background:var(--pnl)}
html .nb{background:var(--in);box-shadow:none;border-radius:14px}
html .box{background:var(--in);border-radius:14px}
html .box .sv{background:var(--pnl);box-shadow:none;border-radius:8px}
html .prof .go .btn:not(.pri){background:var(--in)}
html .prof .go .ib{border-radius:10px}
html .panel .inp{background:var(--in)}
html .newbar{border-radius:12px;box-shadow:none;background:color-mix(in srgb,var(--accent) 16%,var(--in))}
html .newbar button{border-radius:8px;background:var(--pnl)}
html .tolast{border-radius:12px}
html .drop{border-radius:16px}

/* voice room */
html .tile{border-radius:14px;background:var(--in);box-shadow:none}
html .tile.talk{box-shadow:0 0 0 2.5px var(--live)}
html .tile .tag{border-radius:8px}
html .dk{border-radius:14px;background:var(--in);box-shadow:none}
html .dk:hover{background:var(--soft2)}
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))}

/* ---------- every window (settings, server settings, small dialogs, pop-ups) ---------- */
html .dlg{border-radius:20px}
html .dlg:not(.sm){background:var(--base);padding:8px;gap:8px;overflow:visible}  /* its cards sit 8px in; their shadows may reach past its edge */
html .dlg:not(.sm) .dnav{background:var(--pnl);border-radius:14px;box-shadow:var(--psh);padding:12px 8px 8px}
html .dlg:not(.sm) .dbody{background:var(--pnl);border-radius:14px;box-shadow:var(--psh);overflow:hidden;padding:0 18px 12px 20px}
html :is(#ov-settings,#ov-server) .dbody>.pg{margin:0 -18px -12px -20px;padding:0 18px 12px 20px}
html .dlg.sm{background:var(--pnl)}
html .dnav .ch.on{background:var(--in)}
/* the long pages' sliding marker is that row's fill: --in, a 10px row, no shadow (it was a white pill, unseen on the white list) */
html :is(#ov-settings,#ov-server) .lpw .glide{background:var(--in);box-shadow:none;border-radius:10px}
html .sr{border-radius:12px;background:var(--in);box-shadow:none;--sh:none}
/* Profile look keeps the cards' outer shadow that ui-check asks for ("stacked cards keep their shadow ..."); cove.html draws none there: Jesse decides. */
html .plc>.sr{--sh:var(--lift)}
html .sr :is(.seg,.inp,.btn:not(.pri):not(.bad)){background:var(--pnl)}
html .sr .ib:hover{background:var(--pnl)}
html .sr .lvl{background:var(--pnl)}
html .seg{border-radius:10px;background:var(--in)}
html .seg button{border-radius:8px}
html .seg.tabs.it{border-radius:14px}html .seg.tabs.it button{border-radius:10px}
html .inp{border-radius:10px;background:var(--in)}
html .pill{border-radius:8px;background:var(--in)}
html .kr{border-radius:12px;background:var(--in);box-shadow:none}
html .pt{border-radius:14px;background:var(--in);box-shadow:none}
html .pt :is(.ib,.dk:not(.onn),.inp,.seg){background:var(--pnl)}
html .pv{border-radius:14px;background:var(--in)}
html .cm{border-radius:14px}
html .cm .ch{border-radius:8px}
html .cm.card{border-radius:18px}
html .otp span{border-radius:14px}

/* the rest of the parts that were white cards on the old grey sheet: inner tone, flat */
html :is(.dlg.sm .inp.big,.bar .btn:not(.pri),.intro .facts .pill,.intro .hi .btn:not(.pri),.poll,#ov-poll .opt .inp,.dlg.sm .inp.wide,
  .lp,.fc,.upl,.ln3 span,.wq,.vm,.evc,.evx,.evfacts,.tph,.tpv,.tpme,.tpc,#ov-addcove .inp.big,.exs .pill,.steps,.cvf,.lan,
  .cvset .addrow .inp,.lpt,.bt3,.hol-auto,.hlt,.afsheet figure,.wn-c,.earl){background:var(--in);box-shadow:none}

/* settings windows: the rows of a page are joined into one block (cove.html, final/v2-desk.css): square inside,
   radius 16 on the block's outer corners, rows touching. v2.js marks the first row of a run .v2-f, the rows after
   it .v2-j and the last one .v2-l, as the design's join() does. */
html .dlg:not(.sm):not(.lpw) .pg .sr{border-radius:0}
html .dlg:not(.sm):not(.lpw) .pg .sr.v2-j{margin-top:-8px}
html .dlg:not(.sm):not(.lpw) .pg .sr.v2-f{border-top-left-radius:16px;border-top-right-radius:16px}
html .dlg:not(.sm):not(.lpw) .pg .sr.v2-l{border-bottom-left-radius:16px;border-bottom-right-radius:16px}
/* the sideways phone's long page joins its rows with sibling rules; a row with its own background breaks the run */
html .dlg.lpw .pg .sr:not([style*=background]){border-radius:16px}
html .dlg.lpw .pg .sr:not([style*=background])+.sr:not([style*=background]){margin-top:-8px;border-top-left-radius:0;border-top-right-radius:0}
html .dlg.lpw .pg .sr:not([style*=background]):has(+.sr:not([style*=background])){border-bottom-left-radius:0;border-bottom-right-radius:0}
html .dlg .pg .sr{transition-property:background-color,color,box-shadow,opacity}
}

/* ---------- the long pages (Settings and Server settings in a window) in the v2 look: cove-4-ui final/v2-win.css,
   the layer on final/settings.html and final/server-settings.html (picture 316). The page is the --pnl card, each
   group is one flat --in card with 16px corners, and what sits in it (fields, segmented controls, buttons, level
   bars, pills) is --pnl with 10px corners. Missing until 4.0.2_11: the groups were still white cards with a shadow
   and their controls had no box (Jesse 2026-12-04: "These UI elements dont match"). A phone held sideways keeps
   v2-land.css. */
@media (min-width:601px) and (not ((orientation:landscape) and (max-height:500px) and (pointer:coarse))){
html :is(#ov-settings,#ov-server) .dlg.lpw .dnav h3{padding:4px 10px 10px}
html :is(#ov-settings,#ov-server) .dlg.lpw .find{height:36px;border-radius:10px;background:var(--in);margin:0 0 8px}
html :is(#ov-settings,#ov-server) .dlg.lpw .find:focus-within{background:var(--in);box-shadow:0 0 0 2px var(--accent)}
html :is(#ov-settings,#ov-server) .dlg.lpw .find .clr{border-radius:8px;background:var(--pnl)}
html :is(#ov-settings,#ov-server) .dlg.lpw .dnav .ch{border-radius:10px;padding:0 10px}
html :is(#ov-settings,#ov-server) .dlg.lpw .dnav .ch:hover:not(.on){background:color-mix(in srgb,var(--in) 55%,transparent)}
html :is(#ov-settings,#ov-server) .dlg.lpw .dnav .gh{padding:12px 10px 5px}
html :is(#ov-settings,#ov-server) .dlg.lpw:not(.full)>.dbody>.x{border-radius:10px;right:14px;top:12px}
html :is(#ov-settings,#ov-server) .dlg.lpw:not(.full)>.dbody>.x:hover{background:var(--in)}
html :is(#ov-settings,#ov-server) .dlg.lpw .sect h2{background:linear-gradient(var(--pnl) 78%,transparent)}
html :is(#ov-settings,#ov-server) .dlg.lpw .sect>.card{background:var(--in);border-radius:16px;box-shadow:none}
html :is(#ov-settings,#ov-server) .dlg.lpw .card :is(.sr,.addrow):not(:where(.ov .ov *)){border-radius:12px}
html :is(#ov-settings,#ov-server) .dlg.lpw .card :is(.sr,.addrow):not(:where(.ov .ov *)):not(.free):not([style*="background:none"]):hover{background:color-mix(in srgb,var(--pnl) 60%,transparent)}
html :is(#ov-settings,#ov-server) .dlg.lpw .card :is(.seg,.inp,.lvl,.btn:not(.pri),.pill:not(.now):not(.live),.sbe,.gt.em):not(:where(.ov .ov *)){background:var(--pnl)}
html :is(#ov-settings,#ov-server) .dlg.lpw .card :is(.btn:not(.pri),.inp.dd):not(:where(.ov .ov *)):hover{background:var(--soft2)}
html :is(#ov-settings,#ov-server) .dlg.lpw .card .seg:not(:where(.ov .ov *)){border-radius:10px}
html :is(#ov-settings,#ov-server) .dlg.lpw .card .seg:not(:where(.ov .ov *)) button,
html :is(#ov-settings,#ov-server) .dlg.lpw .card .seg:not(:where(.ov .ov *))::before{border-radius:8px}
html :is(#ov-settings,#ov-server) .dlg.lpw .card .inp:not(:where(.ov .ov *)){border-radius:10px}
html :is(#ov-settings,#ov-server) .dlg.lpw .card .pill:not(:where(.ov .ov *)){border-radius:8px}
html :is(#ov-settings,#ov-server) .dlg.lpw .card .btn:not(:where(.ov .ov *)){border-radius:10px}
html :is(#ov-settings,#ov-server) .dlg.lpw .card .ib:not(:where(.ov .ov *)){border-radius:10px}
html :is(#ov-settings,#ov-server) .dlg.lpw .card .ib:not(:where(.ov .ov *)):hover{background:var(--in)}
html :is(#ov-settings,#ov-server) .dlg.lpw .card .sws button.on{box-shadow:0 0 0 3px var(--in),0 0 0 5px var(--c)}
html #ov-server .dlg.lpw .svbg.one .bgs .tt.on .bgt{box-shadow:0 0 0 2px var(--in),0 0 0 4px var(--accent)}
/* a tab or count bar stands 16px inside its group, its button ending where the fields end (server-settings.html, Roles) */
html #ov-server .dlg.lpw .card>.bar{padding-left:10px!important;padding-right:10px!important}
}
