/* CBTV Control - palette lifted from the channel-200 guide */
:root{
  --bg:#362c34; --panel:#221f21; --panel2:#2b2529; --line:#4a3f48;
  --text:#f5f2f8; --subtle:#beb6c8; --accent:#ffd166; --pill:#e4e8e2; --ink:#221f21;
  --hot:#f5135f; --warm:#f99b1c; --grad:linear-gradient(115deg,#f5135f 0%,#f9553f 50%,#f99b1c 100%);
  --ok:#7bd88f; --warn:#ffd166; --bad:#ff6b6b; --idle:#8d8494;
  --r:12px; --hdr:57px;          /* the sticky header's height: everything else that sticks sits under it */
  --sat:env(safe-area-inset-top,0px);          /* r121: the top inset, plus (below) room for iOS 26's blur under the status bar */
  --hdrh:calc(var(--hdr) + var(--sat));        /* where sticky things sit: app.js replaces it with the header's measured height */
  /* 2.4.0 (iPhone Duo, part A): the other three safe-area insets. Left and right are used separately (never the shorthand): the Duo's
     open screen can put the status bar / Dynamic Island at a side. The header, tab bar / side rail, main, dialogs, sheets, the music bar,
     toasts and the reader pad themselves with these; app.js App.insets() reads the same numbers for the PiP and hold-menu clamps. */
  --sar:env(safe-area-inset-right,0px);
  --sab:env(safe-area-inset-bottom,0px);
  --sal:env(safe-area-inset-left,0px);
}
/* App.insets() reads the insets from this probe (app.js). Top is the raw inset here, not --sat's standalone extra (P8: left as it is until the screen probe measures it). */
#saProbe{position:fixed;left:0;top:0;width:0;height:0;overflow:hidden;visibility:hidden;pointer-events:none;padding:env(safe-area-inset-top,0px) var(--sar) var(--sab) var(--sal)}
html{background:var(--bg)}      /* 2.4.0 (P6): Safari's side column samples the page's edge: one plum all the way down */
/* r121: iOS 26 blurs/fades ~40 pt of the page under the status bar of a home-screen app that draws beneath it (black-translucent).
   index.html now asks for an opaque status bar ("default", tinted by theme-color: takes effect when the icon is added again);
   until then an app that still reports a top inset keeps its header content below the blur band. */
@media (display-mode: standalone){:root{--sat:calc(env(safe-area-inset-top,0px) + min(env(safe-area-inset-top,0px), 34px))}}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}      /* r121: iPhone landscape inflated the player's text ~1.5x */
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{background:var(--bg);color:var(--text);font:15px/1.4 "Helvetica Neue",Helvetica,-apple-system,system-ui,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;overscroll-behavior-y:none}
.hidden{display:none!important}
.grow{flex:1}
button{font:inherit;color:inherit}
a{color:var(--accent);text-decoration:none}
h2{font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--subtle);font-weight:600;margin:22px 4px 10px}
h2:first-child{margin-top:4px}
.num{font-variant-numeric:tabular-nums}

/* login */
.login{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;text-align:center}
.login-logo{width:150px;height:auto}
.login h1{margin:14px 0 2px;font-size:30px;font-weight:700}
.tagline{font-family:"Courier New",monospace;letter-spacing:.22em;font-size:11px;color:var(--subtle);margin:0 0 26px}
.login form{display:flex;flex-direction:column;gap:12px;width:240px}
.login input{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);color:var(--text);font-size:26px;
  text-align:center;letter-spacing:.4em;padding:12px}
.login input:focus{outline:2px solid var(--accent)}
.err{color:var(--bad);min-height:20px;font-size:13px}

/* shell */
.top{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:10px;padding:calc(8px + var(--sat)) calc(14px + var(--sar)) 8px calc(14px + var(--sal));
  background:var(--bg);border-bottom:1px solid var(--line);min-height:var(--hdr);overflow:hidden}
.top::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--grad)}
.logo{height:34px;width:auto;display:block}
.logobtn{border:0;background:none;padding:0;margin:0;cursor:pointer;border-radius:8px;line-height:0}      /* the logo is the reload button (Kyle) */
.logobtn:hover .logo{filter:brightness(1.15)}
.logobtn:active .logo{transform:scale(.94)}
.logobtn.spin .logo{animation:logospin .6s ease-in-out}
@keyframes logospin{to{transform:rotate(360deg)}}
.brand{font-size:18px;letter-spacing:.02em;white-space:nowrap;flex-shrink:0}      /* 2.4.0 (P4): one line; the LIVE chip beside it is the one that shortens */
.brand b{font-weight:800}
@media (max-width:389px){.brand .brandw{display:none}}      /* 2.4.0 (P4): narrower than an iPhone (folded Duo, ⅓ Split View): "CBTV" and the logo, on one line */
.hdr-clock{color:var(--subtle);font-size:14px}
.iconbtn{background:none;border:0;font-size:20px;cursor:pointer;padding:6px 8px;border-radius:8px;color:var(--subtle)}
.iconbtn:hover{color:var(--text);background:var(--panel)}
.chip{background:var(--pill);color:var(--ink);font-weight:700;font-size:12px;border-radius:999px;padding:3px 10px;white-space:nowrap;min-width:0;overflow:hidden;text-overflow:ellipsis}
@media (max-width:479px){.hdr-clock{display:none}}          /* a phone: the LIVE chip and the buttons come first */
.chip.live{background:var(--grad);color:#fff}

.tabs{position:fixed;left:0;right:0;bottom:0;z-index:40;display:flex;background:var(--panel);border-top:1px solid var(--line);
  padding-bottom:var(--sab);padding-left:var(--sal);padding-right:var(--sar)}
.tabs button{flex:1;background:none;border:0;padding:8px 2px 7px;display:flex;flex-direction:column;align-items:center;gap:2px;
  color:var(--subtle);cursor:pointer;font-size:10.5px;min-width:0}
.tabs button i{font-style:normal;font-size:18px;line-height:1}
.tabs button.on{color:var(--accent)}
main{padding:14px calc(14px + var(--sar)) calc(84px + var(--sab)) calc(14px + var(--sal));max-width:1500px;margin:0 auto}
@media (min-width:900px){      /* 2.4.0: the rail grows by the left inset (its buttons stay 104 wide); main keeps the right and bottom insets */
  .tabs{top:var(--hdrh);bottom:0;right:auto;width:calc(104px + var(--sal));padding-right:0;overflow-y:auto;flex-direction:column;justify-content:flex-start;border-top:0;border-right:1px solid var(--line);padding-top:10px}
  .tabs button{flex:0 0 auto;padding:9px 4px;font-size:11.5px}
  .tabs button.on{background:var(--bg);box-shadow:inset 3px 0 0 var(--hot)}
  main{margin-left:calc(104px + var(--sal));padding:20px calc(24px + var(--sar)) calc(40px + var(--sab)) 24px;max-width:none}
  .toast{bottom:calc(28px + var(--sab))}
  .verline{margin-left:calc(120px + var(--sal))}
}
@media (pointer:coarse){.btn.sm{min-height:34px;padding-top:6px;padding-bottom:6px}}       /* a finger needs more than 24 px (2.4.0: 44, at the end of this file) */

/* cards */
.grid{display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(min(250px,100%),1fr))}
.card{background:var(--panel);border-radius:var(--r);padding:12px 14px;min-width:0}
.card.pad0{padding:0;overflow:hidden}
.row{display:flex;align-items:center;gap:10px;min-width:0}
.wrap{flex-wrap:wrap}
.muted{color:var(--subtle)}
.small{font-size:12.5px}
.ell{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.dot{width:10px;height:10px;border-radius:50%;flex:0 0 10px;background:var(--idle)}
.dot.up{background:var(--ok);box-shadow:0 0 8px rgba(123,216,143,.6)}
.dot.warn{background:var(--warn)}
.dot.down{background:var(--bad);box-shadow:0 0 8px rgba(255,107,107,.6)}
.svc .name{font-weight:700}
.svc .acts{margin-top:8px;display:flex;gap:6px;flex-wrap:wrap}
.btn{background:var(--panel2);border:1px solid var(--line);border-radius:9px;padding:7px 12px;cursor:pointer;font-weight:600;font-size:13px;white-space:nowrap}
.btn:hover{border-color:var(--subtle)}
.btn:disabled{opacity:.45;cursor:default}
.btn.primary{background:var(--grad);border:0;color:#fff}
.btn.amber{background:var(--accent);border:0;color:var(--ink)}
.btn.danger{border-color:#7d3c46;color:#ffb3b3}
.btn.sm{padding:4px 9px;font-size:12px}
.btn.on{background:var(--pill);color:var(--ink);border-color:var(--pill)}
.kpis{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr));margin-bottom:6px}
.kpi .v{font-size:26px;font-weight:700;line-height:1.15}
.kpi .l{font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--subtle)}
.kpi .s{font-size:12.5px;color:var(--subtle)}
.bar{height:8px;border-radius:99px;background-color:#151214;overflow:hidden}
.bar>i{display:block;height:100%;background:var(--grad);border-radius:99px}
.bar.ok>i{background:var(--ok)} .bar.warnc>i{background:var(--warn)} .bar.badc>i{background:var(--bad)}
.banner{background:#4b2530;border:1px solid #7d3c46;border-radius:var(--r);padding:10px 14px;margin-bottom:12px}
.banner.info{background:#3d3527;border-color:#6b5a2e}
table{width:100%;border-collapse:collapse}
td,th{padding:7px 10px;text-align:left;border-top:1px solid var(--bg);vertical-align:middle}
th{font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--subtle);font-weight:600;border-top:0}
.tablewrap{overflow-x:auto}
pre.log{background:#151214;border-radius:var(--r);padding:12px;font:12px/1.45 ui-monospace,Menlo,monospace;overflow:auto;max-height:60vh;white-space:pre-wrap;word-break:break-all;margin:0}
select,input[type=text],input[type=search],input[type=number],input[type=password],input[type=email],input[type=url],input:not([type]),textarea{background:#151214;border:1px solid var(--line);border-radius:8px;color:var(--text);padding:7px 9px;font:inherit;max-width:100%}
input[type=color]{background:none;border:1px solid var(--line);border-radius:8px;width:44px;height:32px;padding:2px}
input[type=range]{accent-color:#f9553f;width:100%}

/* remote */
.remote{display:grid;gap:14px;grid-template-columns:minmax(0,1fr)}
/* 2.4.0: two columns from a 640-px page (a container), not a 1000-px window: the part C block at the end of this file */
.chlist,.card.pad0.chlist{max-height:calc(100vh - 170px);max-height:calc(100dvh - 170px);overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;border-radius:var(--r)}
@media (max-width:999px){.chlist,.card.pad0.chlist{max-height:46vh;max-height:46dvh}}      /* 2.4.0 (P5): dvh = the screen that is really there (Safari's bars counted); the vh line is for older browsers */
.chrow{display:flex;gap:10px;align-items:center;padding:9px 12px;background:var(--panel);border-bottom:2px solid var(--bg);cursor:pointer}
.chrow:hover{background:var(--panel2)}
.chrow.sel{box-shadow:inset 4px 0 0 var(--hot);background:var(--panel2)}
.chrow img,.chicon{width:54px;height:30px;object-fit:contain;flex:0 0 54px;background:var(--pill);border-radius:6px;padding:2px}
.chrow .t{font-weight:700}
.np{padding:18px}
.np .show{font-size:26px;font-weight:800;line-height:1.15}
.np .ep{color:var(--subtle);margin-top:2px}
.scrub{position:relative;height:16px;border-radius:99px;background:#151214;margin:16px 0 4px;cursor:pointer;touch-action:none}
.scrub>i{position:absolute;left:0;top:0;bottom:0;border-radius:99px;background:var(--grad)}
.scrub>b{position:absolute;top:-4px;width:6px;height:24px;border-radius:3px;background:var(--accent);transform:translateX(-3px);display:none}
.transport{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:14px}
.transport .btn{padding:14px 4px;font-size:15px;text-align:center;white-space:normal;min-width:0;line-height:1.2}      /* 2.4.0 (B5): a label wraps in its cell instead of pushing a 317-px page sideways */
.transport .wide{grid-column:span 2}
@media (max-width:360px){.transport .btn{font-size:13px}}
.pending{color:var(--accent);min-height:20px;margin-top:8px;font-weight:700}
.up-next-row{display:flex;gap:10px;padding:8px 0;border-top:1px solid var(--bg)}
.up-next-row .tm{color:var(--accent);font-weight:700;flex:0 0 78px}

/* guide */
.gbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:10px}
.gwrap{background:var(--panel);border-radius:var(--r);overflow:auto;max-height:calc(100vh - 190px);max-height:calc(100dvh - 190px);position:relative}
.ggrid{position:relative}
.ghead{position:sticky;top:0;z-index:6;height:30px;background:var(--bg)}
.ghead .tick{position:absolute;top:0;height:30px;border-left:1px solid var(--line);padding:6px 6px;font-size:12px;color:var(--subtle);white-space:nowrap}
.gcorner{position:sticky;left:0;z-index:8;width:var(--chw);height:30px;background:var(--bg);float:left}
.grow-line{position:relative;height:52px;border-top:2px solid var(--bg)}
.gch{position:sticky;left:0;z-index:5;width:var(--chw);height:100%;background:var(--panel2);display:flex;align-items:center;gap:6px;padding:0 6px;
  border-right:2px solid var(--bg);font-size:11.5px;font-weight:700;line-height:1.15;float:left}
.gch img{width:40px;height:24px;object-fit:contain;background:var(--pill);border-radius:4px;padding:1px;flex:0 0 40px}
.gp{position:absolute;top:0;height:100%;padding:6px 8px;border-left:2px solid var(--bg);overflow:hidden;cursor:pointer;background:var(--panel)}
.gp:hover{background:#3a3237}
.gp.now{background:#33292f}
.gp .t{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13.5px}
.gp .s{color:var(--subtle);font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gp .s b{color:var(--accent);font-weight:700}
.gnow{position:absolute;top:0;bottom:0;width:2px;background:var(--hot);z-index:4;pointer-events:none}
.ggrid.gnarrow .gch span span{display:none}.ggrid.gnarrow .gch>span{font-size:11px}.ggrid.gnarrow .gch img{width:32px;flex-basis:32px}      /* a narrow grid (a phone, or the grid beside the picture): the number stays, the name goes. 2.4.0: the grid's own width (app.js guideScale), not the window's */

/* modal + toast */
.modal{position:fixed;inset:0;z-index:100;background:rgba(15,10,14,.72);display:flex;align-items:center;justify-content:center;
  padding:calc(16px + var(--sat)) calc(16px + var(--sar)) calc(16px + var(--sab)) calc(16px + var(--sal))}      /* 2.4.0: inside the safe areas */
.modal-card{background:var(--bg);border:1px solid var(--line);border-radius:16px;padding:18px;max-width:640px;width:100%;max-height:90vh;max-height:90dvh;overflow:auto}
.modal-card.wide{max-width:1100px}
.modal-card h3{margin:0 0 10px;font-size:19px}
.modal-acts{display:flex;gap:8px;justify-content:flex-end;margin-top:16px;flex-wrap:wrap}
.toast{position:fixed;left:calc(50% + (var(--sal) - var(--sar)) / 2);bottom:calc(86px + var(--sab));transform:translateX(-50%);background:var(--pill);color:var(--ink);
  font-weight:700;border-radius:999px;padding:9px 18px;z-index:120;max-width:calc(90vw - var(--sal) - var(--sar));text-align:center;box-shadow:0 6px 24px rgba(0,0,0,.4)}      /* 2.4.0: centred between the side insets */
.toast.bad{background:var(--bad);color:#2a0d10}

/* sparkline */
.spark{width:100%;height:70px;display:block}

/* FLEX designer */
.fx{display:grid;gap:14px;grid-template-columns:minmax(0,1fr)}
@media (min-width:1100px){.fx{grid-template-columns:minmax(0,1fr) minmax(360px,440px)}.fxleft{align-self:start}}
/* the stage stays in view while you scroll its settings. 2.4.0 (part B, A3): only while it fits - stacked, at most 45 % of the screen
   (it covered 81-88 % of the Duo's Split View and folded app); beside the settings, the screen's height under the header.
   flex.js fxStickFit() decides (.fxstick), on every size change of the stage column. */
.fxleft{background:var(--bg);padding-bottom:6px;min-width:0}
.fxleft.fxstick{position:sticky;top:var(--hdrh);z-index:6}
.fx.fxtwo .fxleft.fxstick{top:calc(var(--hdrh) + 10px)}
.fxbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:10px}
.stagebox{position:relative;width:100%;aspect-ratio:16/9;background:#000;border-radius:var(--r);overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none}
.stage{position:absolute;left:0;top:0;width:1920px;height:1080px;transform-origin:0 0;background-size:cover;background-position:center}
.stage.program{background:linear-gradient(135deg,#16222e,#5a4632)}
.stage .safe{position:absolute;inset:54px 96px;border:2px dashed rgba(255,255,255,.18);pointer-events:none}
.el{position:absolute;white-space:pre;line-height:1;cursor:move;padding:0}
.el.sel{outline:3px solid var(--accent);outline-offset:6px}
.el.hid{opacity:.25!important}
.el img{display:block;width:100%;height:auto;pointer-events:none}
.props label{display:block;font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--subtle);margin:10px 0 4px}
.props .two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.props input[type=number],.props select,.props textarea,.props input[type=text]{width:100%}
.anch{display:grid;grid-template-columns:repeat(3,26px);gap:3px}
.anch button{width:26px;height:22px;border-radius:5px;border:1px solid var(--line);background:#151214;cursor:pointer;padding:0}
.anch button.on{background:var(--accent);border-color:var(--accent)}
.ellist .it{display:flex;align-items:center;gap:8px;padding:7px 8px;border-radius:8px;cursor:pointer}
.ellist .it.sel{background:var(--panel2);box-shadow:inset 3px 0 0 var(--accent)}
.assets{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(84px,100%),1fr));gap:6px}
.assets img{width:100%;height:56px;object-fit:contain;background:#151214;border-radius:8px;cursor:pointer;border:2px solid transparent}
.assets img.on{border-color:var(--accent)}

/* bell */
.bell{position:relative}
.bell b{position:absolute;top:0;right:0;min-width:17px;height:17px;border-radius:99px;background:var(--hot);color:#fff;font-size:10.5px;line-height:17px;text-align:center;padding:0 4px;font-weight:700}
.nitem{display:flex;gap:10px;padding:10px 2px;border-top:1px solid var(--line)}
.nitem:first-child{border-top:0}
.nitem .lv{width:8px;border-radius:4px;flex:0 0 8px;background:var(--idle)}
.nitem .lv.critical{background:var(--bad)} .nitem .lv.warning{background:var(--warn)} .nitem .lv.info{background:#6bb6ff}
/* services hub */
.subnav{display:flex;gap:6px;overflow-x:auto;padding-bottom:8px;margin-bottom:8px;-webkit-overflow-scrolling:touch}
.subnav button{flex:0 0 auto}
.field{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid var(--bg)}
.field:first-child{border-top:0}
.field .lab{flex:1;min-width:0}
.field .lab small{display:block;color:var(--subtle);font-size:12px}
.field input[type=number]{width:110px}
.switch{position:relative;width:44px;height:26px;flex:0 0 44px}
.switch input{opacity:0;width:100%;height:100%;position:absolute;margin:0;cursor:pointer;z-index:2}
.switch i{position:absolute;inset:0;border-radius:99px;background:#151214;border:1px solid var(--line);transition:.15s}
.switch i::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:var(--subtle);transition:.15s}
.switch input:checked+i{background:var(--grad);border-color:transparent}
.switch input:checked+i::after{left:21px;background:#fff}
.two-col{display:grid;gap:12px;grid-template-columns:minmax(0,1fr)}
@container (min-width:640px){.two-col{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}      /* 2.4.0: by the page's own width (the Stats page, a Services panel: containers, part C), not the window's */
@media (min-width:1000px){.modal-card .two-col{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}      /* (a dialog is no container: the old rule) */
textarea.wide,input.wide{width:100%}
/* FLEX presets / themes / stations */
.presets{display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(min(230px,100%),1fr))}
.preset{background:var(--panel);border-radius:var(--r);overflow:hidden;cursor:pointer;border:2px solid transparent}
.preset:hover{border-color:var(--accent)}
.preset .thumb{aspect-ratio:16/9;background:#151214 center/cover no-repeat;display:flex;align-items:flex-end;justify-content:flex-end;padding:6px}
.preset .body{padding:9px 12px 12px}
.preset b{display:block}
.tslots{display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(min(150px,100%),1fr))}
.tslot{background:var(--panel2);border-radius:10px;overflow:hidden}
.tslot img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block;cursor:pointer}
.tslot .cap{padding:5px 8px 8px;font-size:12px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.tslot.cur{outline:2px solid var(--accent)}
.stlist{max-height:50vh;overflow-y:auto}
.strow{display:flex;gap:8px;align-items:center;padding:7px 4px;border-top:1px solid var(--bg)}
.strow.sel{background:var(--panel2);box-shadow:inset 3px 0 0 var(--accent)}

/* navigation: full list in the desktop sidebar, overflow "More" sheet on phones */
.navsep{display:none}
.only-mobile{display:flex}
.tabs .more-item{display:none}
@media (min-width:900px){
  .tabs .more-item{display:flex}
  .tabs .navsep.more-item{display:block;font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--idle);padding:12px 0 4px;text-align:center;border-top:1px solid var(--line);margin-top:6px}
  .only-mobile{display:none!important}
}
.moregrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.moregrid button{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:16px 6px;display:flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer;font-size:12.5px;font-weight:600}
.moregrid button i{font-style:normal;font-size:24px;line-height:1}
.moregrid button.on{border-color:var(--accent);color:var(--accent)}

/* FLEX designer: add palette, panel style pickers, guides */
.addrow{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:6px 0;border-top:1px solid var(--bg)}
.addrow:first-child{border-top:0}
.addlab{width:118px;flex:0 0 118px;letter-spacing:.08em;text-transform:uppercase;font-size:11px}
@media (max-width:640px){.addlab{width:100%;flex-basis:100%}}
.stylegrid{display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(min(250px,100%),1fr))}
.stylecard{display:grid;grid-template-columns:92px 1fr;column-gap:10px;align-items:center;text-align:left;background:var(--panel2);border:2px solid transparent;border-radius:12px;padding:8px;color:var(--text);cursor:pointer;font:inherit}
.stylecard:hover{border-color:var(--line)}
.stylecard.on{border-color:var(--accent)}
.stylecard:disabled{opacity:.4;cursor:not-allowed}
.stylecard b{grid-column:2;align-self:end}
.stylecard small{grid-column:2;color:var(--subtle);font-size:11.5px;line-height:1.3;align-self:start}
.mini{grid-row:1 / span 2;position:relative;display:block;width:92px;aspect-ratio:16/9;border-radius:6px;background:linear-gradient(180deg,#2b3a5e,#c9785a 70%,#3a2a33);overflow:hidden}
.mini i{position:absolute;background:rgba(18,14,20,.8);border-radius:1.5px;box-shadow:0 0 0 1px rgba(255,255,255,.2)}
.pgrid{display:grid;gap:4px 16px;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr))}
.pfield label,.plab{display:block;font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--subtle);margin:10px 0 4px}
.pfield label b{color:var(--text);letter-spacing:0}
.pfield input[type=range]{width:100%}
.pcheck{display:inline-flex;gap:6px;align-items:center;margin-right:12px;font-size:13.5px}
.chkgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(210px,100%),1fr));gap:2px 12px;max-height:280px;overflow-y:auto;margin-top:10px;padding:8px;background:#151214;border-radius:10px;font-size:13px}
.chkgrid label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chkgrid label.ota b{color:var(--accent)}
.stage .gl{position:absolute;background:rgba(255,255,255,.12);pointer-events:none}
.stage .gl.v{left:959px;top:0;width:2px;height:1080px}
.stage .gl.h{top:539px;left:0;height:2px;width:1920px}
.el.lock{pointer-events:none}
.el.lock.sel{outline-style:dashed}
.algn .btn{min-width:34px;padding-left:0;padding-right:0}

/* FLEX exact view: the stage is the real ffmpeg frame; the editable elements become invisible handles on top of it */
.stage .exactimg{position:absolute;left:0;top:0;width:1920px;height:1080px;pointer-events:none}
.stage.exact .el{background:none!important;box-shadow:none!important}
.stage.exact .el > *{visibility:hidden}
.stage.exact .el:hover{outline:2px dashed rgba(255,255,255,.55);outline-offset:4px}
.stage.exact .el.sel{outline:3px solid var(--accent);outline-offset:6px}
.stage.exact > img:not(.exactimg){visibility:hidden}
.stage.exact > div:not(.el):not(.safe):not(.gl):not(.pbox){visibility:hidden}
.exactchip{position:absolute;right:10px;bottom:8px;font-size:11px;padding:3px 8px;border-radius:99px;background:rgba(0,0,0,.55);color:var(--subtle);pointer-events:none}
.exactchip.ok{color:#9be7a8}
.el.txt{overflow:visible}

/* Watch tab (r120: laid out like CBTV for Apple TV — mini player + info + clock over the channel rows; one stage that goes full screen with drawers) */
.watch{display:grid;gap:14px;grid-template-columns:minmax(0,1fr)}      /* r100: minmax(0,…) — with a plain 1fr the track grows to the channel list's nowrap titles and the page runs off the right edge on iPhone */
.wlist,.wtop,.winfo,.wclock,.wstagewrap{min-width:0}
.wtop{display:grid;gap:14px;grid-template-columns:minmax(0,1fr)}
@container tv (min-width:1000px){.wtop{grid-template-columns:minmax(0,5fr) minmax(0,4fr) 190px;align-items:stretch}}      /* 2.4.0: by the page's own width (a container), not the window's; 640-999 is side by side (part B block at the end) */
.wstage{position:relative;width:100%;aspect-ratio:16/9;background:#000;border-radius:var(--r);overflow:hidden;cursor:pointer;-webkit-tap-highlight-color:transparent}
.wstage video{width:100%;height:100%;display:block;object-fit:contain;background:#000}
.wstage.full{position:fixed;inset:0;z-index:90;border-radius:0;aspect-ratio:auto;width:auto;height:auto;cursor:default}
html.wfull,html.wfull body{overflow:hidden}
.wover{position:absolute;inset:0;display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center;background:rgba(0,0,0,.55);color:var(--text);font-size:17px;text-align:center;padding:20px;z-index:1}
.wstage.full .wover{background:transparent;justify-content:flex-start;padding-top:calc(60px + var(--sat));pointer-events:none;text-shadow:0 1px 6px #000}
.wstage.full .wover button{pointer-events:auto}
.wfs{display:none;position:absolute;inset:0;z-index:2;color:#fff;user-select:none;-webkit-user-select:none}
.wstage.full .wfs{display:block}
.wbadge{position:absolute;top:calc(14px + var(--sat));left:calc(16px + env(safe-area-inset-left));background:rgba(0,0,0,.62);padding:8px 13px;border-radius:10px;font-weight:700;font-size:14px;z-index:4;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.wfsnote{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:rgba(0,0,0,.66);padding:12px 20px;border-radius:14px;font-weight:700;font-size:18px;z-index:4;white-space:nowrap;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.wback,.wedge{position:absolute;background:rgba(0,0,0,.5);color:#fff;border:0;font:inherit;font-weight:700;font-size:13px;cursor:pointer;opacity:0;transition:opacity .25s;z-index:3;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);pointer-events:none}
.wstage.ctl .wback,.wstage.ctl .wedge,.wstage.dr-guide .wback,.wstage.dr-recent .wback{opacity:.95;pointer-events:auto}
.wback{top:calc(12px + var(--sat));left:calc(14px + env(safe-area-inset-left));padding:9px 15px 9px 12px;border-radius:999px;font-size:14px;z-index:6}
.wstage.dr-guide .wback{left:auto;right:calc(14px + env(safe-area-inset-right))}
.wbadge{left:auto!important;right:calc(16px + env(safe-area-inset-right))}
.wdhead{display:flex;align-items:center;gap:8px}
.wdhead .x,.wmtabs .x{margin-left:auto;background:rgba(255,255,255,.14);color:#fff;border:0;border-radius:999px;padding:6px 12px;font:inherit;font-weight:700;font-size:13px;cursor:pointer;letter-spacing:0;text-transform:none}
.wdfil{display:flex;gap:6px;flex-wrap:wrap;padding:0 8px 10px}
.wdfil button{background:rgba(255,255,255,.12);color:#fff;border:0;border-radius:999px;padding:5px 12px;font:inherit;font-weight:700;font-size:12.5px;cursor:pointer}
.wdfil button.on{background:var(--accent);color:var(--ink)}
.wlag{display:inline-block;margin-left:8px;color:var(--accent);font-weight:700}
.wkey.exit{background:rgba(255,255,255,.28)}
.wedge.l,.wedge.r{top:50%;transform:translateY(-50%);padding:14px 0;width:32px;display:flex;align-items:center;justify-content:center}
.wedge.l{left:env(safe-area-inset-left,0px);border-radius:0 12px 12px 0}.wedge.r{right:env(safe-area-inset-right,0px);border-radius:12px 0 0 12px}
@supports (left:max(1px,env(safe-area-inset-left))){.wedge.l{border-radius:max(0px,min(12px,env(safe-area-inset-left))) 12px 12px max(0px,min(12px,env(safe-area-inset-left)))}.wedge.r{border-radius:12px max(0px,min(12px,env(safe-area-inset-right))) max(0px,min(12px,env(safe-area-inset-right))) 12px}}
.wedge.l span,.wedge.r span{writing-mode:vertical-rl;letter-spacing:.06em}
.wedge.r span{transform:rotate(180deg)}
.wedge.t{top:0;left:50%;transform:translateX(-50%);padding:calc(6px + var(--sat)) 18px 7px;border-radius:0 0 12px 12px}
.wctl{position:absolute;left:0;right:0;bottom:0;padding:26px calc(20px + env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left));background:linear-gradient(transparent,rgba(0,0,0,.82) 45%);transform:translateY(102%);opacity:0;transition:transform .25s,opacity .25s;z-index:3}
.wstage.ctl .wctl{transform:none;opacity:1}
.wnow{color:#fff;font-size:15px}
.wnow .muted{color:rgba(255,255,255,.7)}
.wlogo.sm{flex:0 0 58px;height:36px;background:rgba(255,255,255,.12)}
.wlogo.sm img{max-width:50px;max-height:30px}
.wkeys{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.wkey{background:rgba(255,255,255,.16);color:#fff;border:0;border-radius:12px;padding:10px 14px;font:inherit;font-weight:700;font-size:14px;cursor:pointer;white-space:nowrap;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.wkey:hover{background:rgba(255,255,255,.28)}
.wkey.big{font-size:17px;padding:10px 20px}
.wkey.on{background:var(--accent);color:var(--ink)}
.wdrawer{position:absolute;top:0;bottom:0;width:min(420px,86vw);background:rgba(22,17,21,.84);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);transform:translateX(-105%);transition:transform .28s;overflow:auto;padding:calc(12px + var(--sat)) 10px calc(12px + env(safe-area-inset-bottom));z-index:5;overscroll-behavior:contain}
.wdrawer.l{left:0;padding-left:calc(10px + env(safe-area-inset-left))}
.wdrawer.r{right:0;transform:translateX(105%);padding-right:calc(10px + env(safe-area-inset-right))}
.wstage.dr-guide .wdrawer.l,.wstage.dr-recent .wdrawer.r{transform:none}
.wdhead{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.6);padding:6px 10px 10px}
.wdrow{display:flex;gap:10px;align-items:center;padding:8px 10px;border-radius:12px;cursor:pointer;color:#fff}
.wdrow .muted{color:rgba(255,255,255,.65)}
.wdrow:hover{background:rgba(255,255,255,.09)}
.wdrow.sel{background:rgba(255,209,102,.16);box-shadow:inset 0 0 0 2px var(--accent)}
.wdrow .wlogo{flex-basis:62px;height:40px;background:rgba(255,255,255,.1)}
.wdrow .wlogo img{max-width:54px;max-height:32px}
.wdrow .chip{background:var(--accent);color:var(--ink)}
.wmenu{position:absolute;left:0;right:0;top:0;max-height:min(78%,560px);overflow:auto;background:rgba(22,17,21,.88);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);transform:translateY(-105%);transition:transform .28s;padding:calc(12px + var(--sat)) calc(18px + env(safe-area-inset-right)) 18px calc(18px + env(safe-area-inset-left));z-index:5;overscroll-behavior:contain}
.wstage.dr-menu .wmenu{transform:none}
.wmtabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px}
.wmtabs button{background:rgba(255,255,255,.12);color:#fff;border:0;border-radius:999px;padding:8px 16px;font:inherit;font-weight:700;font-size:14px;cursor:pointer}
.wmtabs button.on{background:var(--accent);color:var(--ink)}
.wmenu .muted{color:rgba(255,255,255,.65)}
.wmshow{font-size:24px;font-weight:700;line-height:1.15;margin:2px 0 4px}
.wmdesc{color:rgba(255,255,255,.85);max-width:760px;margin:10px 0 0}
.wmenu .wupitem{border-top-color:rgba(255,255,255,.1)}
.wcards{display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(min(180px,100%),1fr))}
.wcard{background:rgba(255,255,255,.1);border:0;border-radius:14px;padding:12px;color:#fff;text-align:left;font:inherit;cursor:pointer;display:flex;flex-direction:column;gap:6px;min-width:0}
.wcard:hover{background:rgba(255,255,255,.18)}
.wcard .wlogo{background:rgba(255,255,255,.1);flex:0 0 44px;width:74px}
.wsets{display:flex;flex-direction:column;gap:6px;max-width:640px}
.wset{display:flex;flex-direction:column;gap:2px;background:rgba(255,255,255,.1);border:0;border-radius:12px;padding:10px 14px;color:#fff;text-align:left;font:inherit;cursor:pointer}
.wset:hover{background:rgba(255,255,255,.18)}
.wprog{height:4px;border-radius:2px;background:rgba(255,255,255,.18);margin:5px 0 3px;overflow:hidden}
.wprog i{display:block;height:100%;background:var(--accent);border-radius:2px}
.wprog.big{height:7px;margin:10px 0 4px}
.winfo{display:flex;flex-direction:column;gap:3px;justify-content:center}
.winfo .show{font-size:22px;font-weight:700;line-height:1.15}
.winfo .wprog{background:#151214}
.wclock{display:flex;flex-direction:column;justify-content:center;align-items:flex-end;text-align:right}
.wclock .tm{font-size:46px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.wclock .tm small{font-size:16px;margin-left:5px;color:var(--subtle)}
.wclock .dt{color:var(--subtle);margin-top:8px;font-size:14px}
@container tv (max-width:999.98px){.wclock{flex-direction:row;justify-content:space-between;align-items:baseline;padding:8px 14px}.wclock .tm{font-size:26px}.wclock .dt{margin:0}}      /* 2.4.0: one line under the picture (phone, and the left column side by side); a column of its own only in the computer's three-across top */
.wrow{display:flex;gap:10px;align-items:center;padding:9px 12px;border-top:1px solid var(--bg);cursor:pointer}
.wrow:first-child{border-top:0}
.wrow:hover{background:var(--panel2)}
.wrow.sel{background:var(--panel2);box-shadow:inset 3px 0 0 var(--accent)}
.wrow .wprog{background:#151214}
.wlogo{flex:0 0 74px;height:44px;display:flex;align-items:center;justify-content:center;background:#151214;border-radius:8px;overflow:hidden;color:var(--subtle)}
.wlogo img{max-width:64px;max-height:36px}
@media (max-width:999px){.wstagewrap{position:sticky;top:var(--hdrh);z-index:5;background:var(--bg);padding-bottom:6px}}
@media (max-width:999px) and (max-height:500px){.wstagewrap{position:static}}      /* phone landscape: the picture would fill the screen */
html.wfull .wstagewrap{position:static;z-index:auto}
@media (max-height:500px),(max-width:480px){
  .wnow{font-size:13px}.wlogo.sm{display:none}
  .wkeys{gap:6px;margin-top:7px}
  .wkey{font-size:12.5px;padding:7px 10px;border-radius:10px}.wkey.big{font-size:14px;padding:7px 14px}
  .wctl{padding-top:18px;padding-bottom:calc(10px + env(safe-area-inset-bottom))}
  .wmenu{max-height:92%;padding-top:calc(8px + var(--sat))}
  .wmtabs{margin-bottom:8px}.wmtabs button{font-size:12.5px;padding:6px 12px}
  .wmshow{font-size:18px}.wmdesc{font-size:13px;margin-top:6px}
  .wmenu .wupitem{padding:4px 0;font-size:13px}.wmenu .wuptime{flex-basis:66px}
  .wset{padding:7px 12px;font-size:13px}
  .wback{font-size:13px;padding:7px 12px 7px 10px}
  .wedge.t{font-size:12px}
  .wdrow{padding:6px 8px}.wdrow .wlogo{flex-basis:50px;height:32px}
}
@media (max-height:500px){.wkeys{gap:5px}.wkey{font-size:12px;padding:6px 9px}.wkey.big{font-size:13px;padding:6px 12px}.wctl{padding-top:12px}}      /* 2.0.20: phone landscape keeps every label (two rows) */
@media (max-width:600px){.wstage.dr-guide .wback,.wstage.dr-recent .wback{opacity:0;pointer-events:none}}      /* 2.0.20: on a phone the open drawer's own ✕ closes it; the big Close sat on top of it */      /* full screen: the sticky wrapper must not pin the stage under the header and tabs */

.wupitem{display:flex;gap:12px;align-items:baseline;padding:7px 0;border-top:1px solid var(--bg)}
.wupitem.first{border-top:0}
.wuptime{flex:0 0 78px;color:var(--accent);font-weight:700;font-variant-numeric:tabular-nums}

.skybox{background:var(--panel2);border-radius:12px;padding:6px 12px 12px;margin-top:10px}

.skgrid{display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(min(150px,100%),1fr))}
.skgrid .tslot{cursor:pointer}
.skph{position:relative;aspect-ratio:16/9;background:#0b0f1a}
.skph img{width:100%;height:100%;object-fit:cover;display:block;opacity:0;transition:opacity .25s}
.skph.ok img{opacity:1}
.skph .spin{position:absolute;left:50%;top:50%;width:18px;height:18px;margin:-9px;border-radius:50%;border:2px solid rgba(255,255,255,.18);border-top-color:var(--accent);animation:skspin 1s linear infinite}
.skph.ok .spin,.skph.bad .spin{display:none}
.skph.bad::after{content:"could not draw";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:11px;color:var(--subtle)}
@keyframes skspin{to{transform:rotate(360deg)}}

.slidelist{display:flex;flex-direction:column;gap:4px;margin-top:6px}
.sliderow{display:flex;align-items:center;gap:10px;background:var(--panel2);border-radius:10px;padding:6px 10px;flex-wrap:wrap}
.sliderow small{color:var(--subtle)}
.sliderow.offrow{opacity:.6}
.sliderow .btn.sm{min-width:34px}

/* FLEX designer v2: tabbed inspector, panels as layers */
.fxside{min-width:0}
.fxtabs{display:flex;gap:4px;flex-wrap:wrap;background:var(--panel2);padding:4px;border-radius:12px;margin-bottom:12px}
.fxtabs button{flex:1;min-width:64px;border:0;background:none;color:var(--subtle);font:inherit;font-weight:600;font-size:13px;padding:8px 6px;border-radius:9px;cursor:pointer}
.fxtabs button.on{background:var(--accent);color:var(--ink)}
.fxtabs.sub button{font-size:12px;padding:6px}
.fxside h2{margin-top:14px}
.fxside [data-pane] > div > h2:first-child,.fxside [data-pane] > h2:first-child{margin-top:0}
.fxopts{margin-top:0;gap:14px}
.fxopts select{padding:2px 6px;font-size:12px}
.itsep{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--subtle);padding:10px 4px 4px}
.it.panelit{border-left:3px solid var(--accent)}
.it.offrow{opacity:.55}
.pbox{position:absolute;cursor:move;border-radius:18px;outline:2px dashed rgba(255,255,255,0);outline-offset:4px;visibility:visible!important}
.pbox:hover{outline-color:rgba(255,255,255,.55)}
.pbox.sel{outline:3px solid var(--accent)}
.pbox.lock{cursor:default}
.pbox .ptag{position:absolute;left:0;bottom:100%;margin-bottom:8px;transform:scale(var(--hs,1));transform-origin:0 100%;font:600 11px/1 Helvetica Neue,Arial;color:var(--ink);background:var(--accent);padding:4px 7px;border-radius:6px;display:none;white-space:nowrap}
.pbox.sel .ptag{display:block}
.ph{position:absolute;width:16px;height:16px;border-radius:50%;background:var(--accent);border:3px solid #1d1a1e;box-sizing:border-box;z-index:3;visibility:visible!important;transform:scale(var(--hs,1));touch-action:none}
.ph.e{right:-8px;top:50%;margin-top:-8px;cursor:ew-resize}
.ph.s{bottom:-8px;left:50%;margin-left:-8px;cursor:ns-resize}
.ph.se{right:-8px;bottom:-8px;cursor:nwse-resize}
.el .ph.se{right:-14px;bottom:-14px}
.el .ph.se.inx{right:4px}
.el .ph.se.iny{bottom:4px}

/* Sky life */
.lifegrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr));gap:10px}
.lifecard.off .lifebody{opacity:.35;pointer-events:none}
.lifefield{margin-top:10px}
.lifefield .lab{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:13px}
.lifefield .lab small{color:var(--subtle);font-size:12px}

/* version line under every page */
.verline { margin: 18px calc(16px + var(--sar)) calc(14px + var(--sab)) calc(16px + var(--sal)); text-align: center; font-size: 12px; opacity: .55; }
.verline b { font-weight: 600; } .verline a { color: var(--accent); }
@media (max-width: 899px) { .verline { margin-bottom: calc(86px + env(safe-area-inset-bottom)); } }      /* under the bottom tab bar's width, not a guess */
/* panel density + the slide browser */
.densrow{gap:6px;margin-top:2px}
.densrow .btn.sm{min-width:64px}
.slstrip{background:var(--panel2);border-radius:12px;padding:8px 10px 10px;margin-top:6px}
.slstrip .plab{margin:0 0 6px}
.slchips{display:flex;flex-wrap:wrap;gap:4px;margin-top:8px}
.slchips .chip{cursor:pointer;border:1px solid transparent;font:inherit;font-size:11.5px;padding:3px 8px;border-radius:999px;background:rgba(255,255,255,.06);color:var(--subtle)}
.slchips .chip.on{background:var(--accent);color:var(--ink)}
.slchips .chip:hover{border-color:var(--line)}

/* r109: the Today tab */
.tdhead{margin-bottom:6px}
.tddate{font-size:20px;font-weight:800;letter-spacing:-.01em}
.today{display:grid;gap:14px;grid-template-columns:minmax(0,1fr)}
@container (min-width:640px){.today{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}      /* 2.4.0: by the page's own width, not the window's */
.today .card.pad0{max-height:62vh;overflow-y:auto;overscroll-behavior:contain}
.lrow{display:flex;gap:10px;align-items:center;padding:9px 12px;border-top:1px solid var(--bg);min-width:0}
.lrow:first-child{border-top:0}
.lrow[data-mail],.lrow[data-chat]{cursor:pointer}
.lrow[data-mail]:hover,.lrow[data-chat]:hover{background:var(--panel2)}
.lrow.live{box-shadow:inset 3px 0 0 var(--accent)}
.lrow .dot{flex:0 0 8px;width:8px;height:8px;border-radius:50%;background:transparent}
.lrow.unread .dot{background:var(--accent)}
.lrow.unread b{color:var(--text)}
.lrow b.bad{color:var(--bad)}
.tdtime{flex:0 0 76px;color:var(--subtle);font-variant-numeric:tabular-nums;font-size:13px}
.tdday{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--subtle);padding:10px 12px 2px;font-weight:600}
.tdcall{flex:0 0 26px;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--panel2);color:var(--subtle);font-weight:700}
.tdcall.missed{background:var(--bad);color:#fff}
.tdcall.out{color:var(--ok)}
.tdmsg{border-top:1px solid var(--line);padding:10px 0}
.tdmsg:first-of-type{border-top:0}
.tdbody{white-space:pre-wrap;font:inherit;margin:8px 0 0;color:var(--text);max-height:50vh;overflow:auto}
.tdthread{max-height:60vh;overflow:auto;display:flex;flex-direction:column;gap:6px;padding:4px 2px}
.bub{max-width:82%;background:var(--panel2);border-radius:14px 14px 14px 4px;padding:7px 11px;align-self:flex-start;white-space:pre-wrap;word-break:break-word}
.bub.me{background:#2f5a8a;align-self:flex-end;border-radius:14px 14px 4px 14px}

/* ---- r113: the Remote's new parts (favourites, artwork, pause, lineup, Apple TV) */
.star{background:none;border:0;cursor:pointer;font-size:20px;line-height:1;color:var(--subtle);padding:2px 4px;flex:0 0 auto}
.star.on{color:var(--accent)}
.chsec{padding:6px 12px 4px;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--subtle);background:var(--bg);font-weight:700}
.rc-art{width:96px;height:144px;flex:0 0 96px;border-radius:10px;background:var(--panel2) center/cover no-repeat;box-shadow:0 6px 18px rgba(0,0,0,.35)}
@media (max-width:520px){.rc-art{width:72px;height:108px;flex-basis:72px}.np .show{font-size:21px}}
.rc-paused{display:flex;gap:12px;align-items:flex-start;background:rgba(255,209,102,.1);border:1px solid rgba(255,209,102,.4);border-radius:12px;padding:10px;margin:8px 0}
.rc-paused img{width:160px;border-radius:8px;flex:0 0 auto}
@media (max-width:520px){.rc-paused img{width:96px}}
.transport .big-pp{grid-column:1/-1;font-size:18px;padding:16px 4px}
.seg{display:inline-flex;gap:4px}
.lu-list{max-height:56vh;overflow:auto}
.lu-list .up-next-row{cursor:pointer;align-items:center}
.lu-list .up-next-row:hover{background:var(--panel)}
#rcNext .up-next-row{cursor:pointer}
#rcNext .up-next-row:hover{background:var(--panel2)}
.atv-pad{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,150px);gap:10px;margin-top:10px}
.atv-pad .dpad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,56px);gap:6px}
.atv-pad .dpad .btn{font-size:18px}
.atv-side{display:flex;flex-direction:column;gap:6px}
.atv-side .btn,.atv-side .row .btn{flex:1}
.atv-pad .btn.on{outline:2px solid var(--accent)}

/* ---- r113: the Widgets tab and its builder */
.wb-grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(min(320px,100%),1fr))}
.wb-card{display:flex;flex-direction:column;gap:10px}
.wb-card.wb-flash{outline:2px solid var(--accent);outline-offset:2px}      /* 2.5.0: the card a #widgets/<id> link scrolled to */
.wb-ic{font-size:22px;width:30px;text-align:center;flex:0 0 30px}
.wb-prev{display:flex;justify-content:center;background:repeating-conic-gradient(#2b2529 0 25%,#262126 0 50%) 0 0/16px 16px;border-radius:10px;padding:12px;min-height:120px;align-items:center}
.wb-frame{border-radius:18px;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.45);flex:0 0 auto;background:#000}
.wb-frame.acc{border-radius:12px;background:#1d1b20}
.wb-frame iframe{border:0;display:block;background:transparent}
.wb-addr input{flex:1;min-width:0;background:var(--panel2);border:1px solid var(--line);color:var(--text);border-radius:8px;padding:6px 8px;font-size:12px}
.wb-kinds{display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(min(200px,100%),1fr));margin-top:10px}
.wb-kinds button{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:12px;cursor:pointer}
.wb-kinds button:hover,.wb-kinds button.on{border-color:var(--accent)}
.wb-ed{display:grid;gap:16px;grid-template-columns:minmax(0,1fr);margin-top:12px}
@media (min-width:900px){.wb-ed{grid-template-columns:minmax(0,1fr) 380px}.wb-edl{position:sticky;top:0;align-self:start}}
.wb-stage{display:flex;justify-content:center;align-items:center;min-height:260px;border-radius:12px;padding:16px;background:radial-gradient(120% 120% at 30% 20%,#5a6c8a 0%,#2c3448 45%,#15161c 100%)}
.wb-edr{max-height:70vh;overflow:auto;padding-right:4px}
.wb-f{display:flex;align-items:center;gap:10px;justify-content:space-between;padding:6px 0;border-bottom:1px solid rgba(255,255,255,.05);font-size:13.5px}
.wb-f>span:first-child{color:var(--text)}
.wb-f.wide{flex-direction:column;align-items:stretch}
.wb-f select,.wb-f input:not([type=checkbox]){background:var(--panel2);border:1px solid var(--line);color:var(--text);border-radius:8px;padding:5px 8px;font-size:13px;max-width:230px}
.wb-f.wide input.wb-find{max-width:none}
.wb-checks{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(150px,100%),1fr));gap:2px 10px;font-size:13px}
.wb-checks label{display:flex;gap:6px;align-items:center;padding:3px 0;min-width:0}
.wb-checks.scroll{max-height:190px;overflow:auto;background:var(--panel);border-radius:8px;padding:6px 8px}
.wb-checks.tall{max-height:260px}
.wb-gh{grid-column:1/-1;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--subtle);margin-top:6px;font-weight:700}

/* Plex (r123): the Plex tab, laid out like CBTV for Apple TV, and the player's scrub bar */
.px{min-width:0}
.pxbar{display:flex;gap:10px;align-items:center;margin-bottom:12px;min-width:0}
.pxbar input{flex:1;min-width:0}
.pxwho{display:flex;align-items:center;gap:8px;background:var(--panel);border:1px solid var(--line);border-radius:999px;padding:4px 12px 4px 4px;color:var(--text);font:inherit;font-weight:700;cursor:pointer;max-width:45%;min-width:0}
.pxwho span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pxav{flex:0 0 30px;width:30px;height:30px;border-radius:50%;overflow:hidden;background:var(--panel2);display:flex;align-items:center;justify-content:center;color:var(--accent);font-weight:800}
.pxav img{width:100%;height:100%;object-fit:cover}
.pxav.big{flex-basis:88px;width:88px;height:88px;font-size:34px}
.pxload{padding:40px;display:flex;justify-content:center}
.pxload i{width:26px;height:26px;border-radius:50%;border:3px solid rgba(255,255,255,.15);border-top-color:var(--accent);animation:skspin 1s linear infinite}
.pxwhoview{text-align:center;padding:12px 0}
.pxwhoview h2{font-size:26px;margin:10px 0 18px}
.pxpeople{display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(min(120px,100%),1fr));max-width:900px;margin:0 auto 14px}
.pxperson{display:flex;flex-direction:column;align-items:center;gap:6px;background:none;border:0;color:var(--text);font:inherit;font-weight:700;cursor:pointer;padding:10px;border-radius:14px;min-width:0}
.pxperson:hover,.pxperson.on{background:var(--panel)}
.pxperson.on .pxav{box-shadow:0 0 0 3px var(--accent)}
.pxperson span.ell{max-width:100%}
.pxpin{text-align:center}
.pxpin .pxav{margin:0 auto 6px}
.pxdots{display:flex;gap:14px;justify-content:center;margin:16px 0 4px}
.pxdots i{width:16px;height:16px;border-radius:50%;border:2px solid var(--subtle)}
.pxdots i.on{background:var(--accent);border-color:var(--accent)}
.pxdots.shake{animation:pxshake .4s}
@keyframes pxshake{20%,60%{transform:translateX(-8px)}40%,80%{transform:translateX(8px)}}
.pxpad{display:grid;grid-template-columns:repeat(3,72px);gap:10px;justify-content:center;margin-top:10px}
.pxkey{height:56px;border-radius:14px;border:1px solid var(--line);background:var(--panel2);color:var(--text);font:inherit;font-size:22px;font-weight:700;cursor:pointer}
.pxkey:active{background:var(--accent);color:var(--ink)}
.pxhero{position:relative;border-radius:var(--r);overflow:hidden;min-height:clamp(240px,42vw,460px);display:flex;align-items:flex-end;background:#151214 var(--art) center/cover no-repeat;margin-bottom:6px}
.pxhero::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(21,16,20,.94) 0%,rgba(21,16,20,.7) 42%,rgba(21,16,20,.08) 75%),linear-gradient(0deg,rgba(21,16,20,.9) 0%,transparent 55%)}
.pxheroin{position:relative;padding:22px;max-width:680px;min-width:0}
.pxhero.detail .pxheroin{max-width:none;width:100%}
.pxkick{color:var(--accent);font-weight:700;letter-spacing:.08em;text-transform:uppercase;font-size:12px}
.pxhero h1{font-size:clamp(24px,4vw,40px);line-height:1.08;margin:4px 0 6px}
.pxmeta{color:var(--subtle);font-size:14px}
.pxtag{font-style:italic;color:var(--subtle);margin-top:6px}
.pxsum{margin:8px 0 12px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;color:#e8e2ee}
.pxposter{width:clamp(110px,16vw,190px);border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.5);flex:0 0 auto}
@media (max-width:640px){.pxposter{display:none}.pxheroin{padding:16px}}
.pxdesc{max-width:900px;line-height:1.5}
.pxsec{margin-top:18px;min-width:0}
.pxsech{display:flex;align-items:baseline;gap:10px}
.pxsech h3{margin:0 0 8px;font-size:17px}
.pxmore{margin-left:auto;background:none;border:0;color:var(--accent);font:inherit;font-weight:700;cursor:pointer}
.pxrow{display:flex;gap:12px;overflow-x:auto;padding-bottom:8px;scroll-snap-type:x proximity;scrollbar-width:thin;min-width:0}
.pxcard{flex:0 0 auto;width:132px;display:flex;flex-direction:column;gap:3px;background:none;border:0;padding:0;color:var(--text);font:inherit;text-align:left;cursor:pointer;scroll-snap-align:start;min-width:0}
.pxcard.still{width:236px}
.pximg{position:relative;display:block;width:100%;aspect-ratio:2/3;border-radius:9px;overflow:hidden;background:var(--panel2);border:0;padding:0;cursor:pointer}
.pxcard.still .pximg,.pxep .pximg{aspect-ratio:16/9}
.pximg img{width:100%;height:100%;object-fit:cover;display:block}
.pximg>b{position:absolute;inset:8px;display:flex;align-items:center;justify-content:center;text-align:center;color:var(--subtle);font-size:13px}
.pxcard:hover .pximg,.pxcard:focus-visible .pximg{outline:3px solid var(--accent);outline-offset:2px}
.pxt{font-weight:700;font-size:13.5px}
.pxs{font-size:12px}
.pxprog{position:absolute;left:6px;right:6px;bottom:6px;height:4px;border-radius:2px;background:rgba(0,0,0,.55);overflow:hidden}
.pxprog i{display:block;height:100%;background:var(--accent)}
.pxunw{position:absolute;top:6px;right:6px;min-width:22px;height:22px;border-radius:11px;background:var(--accent);color:var(--ink);font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center;padding:0 6px}
.pxplay{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:44px;height:44px;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;display:flex;align-items:center;justify-content:center;font-size:18px;opacity:0;transition:opacity .2s}
.pxcard:hover .pxplay,.pxep:hover .pxplay{opacity:1}
@media (hover:none){.pxplay{opacity:.85}}
.pxgrid{display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(min(128px,100%),1fr))}
.pxgrid .pxcard{width:auto}
.pxgridh{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:12px}
.pxgridh h2{margin:0;flex:1 1 100%;font-size:22px}
@media (min-width:700px){.pxgridh h2{flex:1 1 auto}}
.pxseasons{display:flex;gap:8px;overflow-x:auto;margin:14px 0 10px;padding-bottom:4px}
.pxchip{flex:0 0 auto;background:var(--panel2);border:1px solid var(--line);color:var(--text);border-radius:999px;padding:6px 14px;font:inherit;font-weight:700;cursor:pointer}
.pxchip.on{background:var(--accent);color:var(--ink);border-color:var(--accent)}
.pxep{display:flex;gap:14px;align-items:flex-start;padding:10px;border-radius:12px;min-width:0}
.pxep:hover,.pxep.focus{background:var(--panel)}
.pxep .pximg{flex:0 0 clamp(140px,26vw,240px);width:auto}
.pxepsum{font-size:13px;margin-top:4px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.pxcast{flex:0 0 auto;width:96px;display:flex;flex-direction:column;align-items:center;gap:4px;background:none;border:0;color:var(--text);font:inherit;font-size:12.5px;font-weight:700;cursor:pointer;min-width:0}
.pxcast span.ell,.pxcast small{max-width:100%}
.pxchan{display:flex;gap:12px;align-items:center;width:100%;background:var(--panel);border:0;border-radius:12px;padding:10px 12px;margin-bottom:8px;color:var(--text);font:inherit;text-align:left;cursor:pointer;min-width:0}
.pxchan>b{flex:0 0 52px;height:36px;display:flex;align-items:center;justify-content:center;background:#151214;border-radius:8px;color:var(--accent)}
.pxchan>span.ell{flex:1;white-space:normal}
.wscrub{display:flex;align-items:center;gap:10px;margin-top:6px;font-size:13px;font-variant-numeric:tabular-nums;color:rgba(255,255,255,.85)}
.wsbar{position:relative;flex:1;height:22px;cursor:pointer;touch-action:none}
.wsbar::before{content:"";position:absolute;left:0;right:0;top:9px;height:5px;border-radius:3px;background:rgba(255,255,255,.25)}
.wsbar>i{position:absolute;left:0;top:9px;height:5px;border-radius:3px;background:var(--accent)}
.wsbar>b{position:absolute;top:4px;width:15px;height:15px;margin-left:-7px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.5)}
.wsthumb{position:absolute;bottom:28px;transform:translateX(-50%);background:#000;border:2px solid #fff;border-radius:8px;overflow:hidden;pointer-events:none;display:flex;flex-direction:column;align-items:center}
.wsthumb img{width:min(240px,40vw);display:block}
.wsthumb span{font-weight:700;padding:3px 8px;font-size:13px}
@media (max-height:500px){.wsthumb img{width:170px}}

/* Plex, phase 2 (r125): Skip intro / credits, the FLEX break card, the On-demand strip and Plex rows in Watch */
.wskip{position:absolute;right:calc(20px + env(safe-area-inset-right));bottom:calc(26px + env(safe-area-inset-bottom));z-index:6;background:rgba(0,0,0,.62);color:#fff;border:2px solid rgba(255,255,255,.85);border-radius:12px;padding:11px 18px;font:inherit;font-weight:800;font-size:15px;cursor:pointer;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);transition:bottom .25s}
.wskip:hover{background:#fff;color:#000}
.wstage.ctl .wskip,.wstage.ctl .wbreak{bottom:calc(150px + env(safe-area-inset-bottom))}
.wstage:not(.full) .wskip{font-size:12px;padding:6px 10px;right:10px;bottom:10px}
.wbreak{position:absolute;right:calc(18px + env(safe-area-inset-right));bottom:calc(22px + env(safe-area-inset-bottom));z-index:6;width:min(380px,calc(100% - 36px));background:rgba(22,17,21,.86);color:#fff;border-radius:16px;padding:14px;box-shadow:0 12px 36px rgba(0,0,0,.5);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);transition:opacity .4s,bottom .25s}
.wbreak.dim{opacity:.18}.wbreak.dim:hover{opacity:1}
.wbreak .muted{color:rgba(255,255,255,.7)}
.wbkh{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--accent);font-weight:800;margin-bottom:8px}
.wbkh span{color:#fff;letter-spacing:0;text-transform:none;margin-left:6px;font-variant-numeric:tabular-nums}
.wbkrow{display:flex;gap:12px;align-items:center;min-width:0}
.wbkrow img{width:128px;aspect-ratio:16/9;object-fit:cover;border-radius:8px;flex:0 0 auto}
.wstage:not(.full) .wbreak{transform:scale(.72);transform-origin:bottom right;right:8px;bottom:8px}
@media (max-height:500px){.wbreak{width:min(330px,calc(100% - 36px));padding:10px}.wbkrow img{width:96px}}
.wod{margin-bottom:12px;min-width:0}
.wodh{display:flex;align-items:baseline;gap:8px;margin-bottom:6px}
.wodrow{display:flex;gap:10px;overflow-x:auto;padding-bottom:6px;min-width:0}
.wodc{flex:0 0 auto;width:172px;display:flex;flex-direction:column;gap:2px;background:none;border:0;padding:0;color:var(--text);font:inherit;text-align:left;cursor:pointer;min-width:0}
.wodi{position:relative;display:block;width:100%;aspect-ratio:16/9;border-radius:9px;overflow:hidden;background:var(--panel2)}
.wodi img{width:100%;height:100%;object-fit:cover;display:block}
.wodc.sel .wodi{outline:3px solid var(--accent);outline-offset:2px}
.wcard .wodi{margin-bottom:4px}
.wpximg{padding:0}
.wpximg img{max-width:none!important;max-height:none!important;width:100%;height:100%;object-fit:cover}
.wpxhead{padding:10px 12px 4px;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--subtle);font-weight:700}
.wdrawer .wpxhead{color:rgba(255,255,255,.6)}

/* r126: Continue in Plex, watched ticks, season watched */
.wcont{margin-top:10px;padding:10px 12px;border-radius:10px;background:var(--panel2)}
.pxcont{display:flex;flex-wrap:wrap;gap:10px;align-items:center;background:var(--panel);border-radius:var(--r);padding:10px 14px;margin-bottom:10px;min-width:0}
.pxcont>span{flex:1 1 220px}
.pxtick{flex:0 0 auto;width:34px;height:34px;border-radius:50%;border:2px solid var(--line);background:none;color:var(--subtle);font:inherit;font-weight:800;cursor:pointer;align-self:center}
.pxtick.on{background:var(--accent);border-color:var(--accent);color:var(--ink)}
.pxchip.ghost{background:none;border-style:dashed}

/* r127: Play on a TV — the remote card */
.castbarhost:empty{display:none}
.castbarhost{display:flex;flex-direction:column;gap:10px;margin-bottom:12px}
.castcard{border:1px solid var(--accent)}
.castic{font-size:18px}
.castscrub{position:relative;height:10px;border-radius:5px;background:#151214;margin:10px 0 4px;cursor:pointer;overflow:hidden}
.castscrub>i{display:block;height:100%;background:var(--accent)}
/* r137: a TV's multiview on the remote card */
.mvtiles{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.mvrow{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:6px 8px;border-radius:10px;background:#151214;border:1px solid transparent}
.mvrow.on{border-color:var(--accent)}
.mvsnd{font-size:17px}
.mvrow .bad{color:var(--bad)}
.mvbig{font-size:11px;padding:1px 6px;border-radius:8px;background:var(--accent);color:#221f21;font-weight:700}
.mvpick{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(210px,100%),1fr));gap:8px;max-height:60vh;overflow:auto;margin-top:10px}
.mvch{text-align:left;white-space:normal;line-height:1.3}
.mvch.dim{opacity:.45}
@media (max-width:560px){.mvrow .grow{flex-basis:100%}}
/* r129: Plex libraries (home row, Watch list / full-screen menu, library switcher in a library) */
.pxlibs,.wpxlibs{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 8px;scrollbar-width:thin;min-width:0}
.wpxlibs{flex-wrap:wrap;overflow:visible;padding:6px 8px 10px}
.pxlib{flex:0 0 auto;display:inline-flex;align-items:center;gap:7px;padding:9px 14px;border-radius:999px;border:1px solid var(--line,#3a3136);background:var(--panel2,#2a2327);color:var(--text);font:inherit;font-weight:650;cursor:pointer;white-space:nowrap}
.pxlib:hover,.pxlib:focus-visible{border-color:var(--accent);color:var(--accent)}
.pxall .pximg{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:var(--panel2,#2a2327);border:1px dashed var(--accent);text-align:center;padding:8px}
.pxall .pximg b{font-size:14px;line-height:1.25}
.pxall .pximg i{font-style:normal;font-size:26px;color:var(--accent)}
.pxlibsel{font-size:20px;font-weight:800;padding:4px 8px;max-width:100%}

/* r131: five tabs; the Watch and CBTVm groups' own bar; Home; the Settings page */
.groupnav{display:flex;gap:6px;overflow-x:auto;padding:0 0 10px;margin:0 0 4px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.groupnav::-webkit-scrollbar{display:none}
.groupnav button{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;padding:7px 13px;border-radius:999px;border:1px solid var(--line);background:var(--panel);color:var(--subtle);font-weight:650;font-size:13px;cursor:pointer}
.groupnav button i{font-style:normal;font-size:13px}
.groupnav button.on{background:var(--accent);border-color:var(--accent);color:var(--ink)}
html.wfull .groupnav{display:none}
.home{max-width:1180px;margin:0 auto}
.hhead{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:2px 2px 12px}
.hhello{font-size:26px;font-weight:800;letter-spacing:-.01em}
.hhead select{max-width:170px}
#hBody{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
@container home (min-width:640px){#hBody{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.hsec.hs-l{grid-column:1 / -1}}      /* 2.4.0: two columns from a 640-px page (the open Duo, an iPad), not a 1000-px window; Large spans both */
.hsec{padding:12px 14px;min-width:0}
.hsec.hoff{opacity:.45;border-style:dashed}
.hsech{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.hsech h3{margin:0;font-size:16px;display:flex;align-items:center;gap:8px;flex:1;min-width:0}
.hic{color:var(--accent);font-size:14px;width:18px;text-align:center}
.htools{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}
.htools button{background:var(--panel2);border:1px solid var(--line);border-radius:8px;padding:4px 8px;cursor:pointer;font-size:12px;font-weight:700;color:var(--text)}
.htools button.on{background:var(--accent);color:var(--ink);border-color:var(--accent)}
.hrow{display:flex;align-items:center;gap:10px;padding:8px 6px;border-top:1px solid var(--bg);cursor:pointer;width:100%;background:none;border-left:0;border-right:0;border-bottom:0;color:var(--text);font:inherit;text-align:left;border-radius:8px}
.hrow:first-child{border-top:0}
.hrow:hover{background:var(--panel2)}
.hdev{width:26px;flex:0 0 26px;text-align:center;font-size:17px}
.htime{min-width:54px;flex:0 0 auto;color:var(--accent);font-weight:700;font-size:13px;font-variant-numeric:tabular-nums}
.hlive{box-shadow:inset 3px 0 0 var(--hot)}
.hnext{background:var(--panel2);border-top:0;margin-bottom:4px}
.hlab{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--subtle);margin:10px 4px 6px;font-weight:700}
.hchip{background:var(--panel2);border:1px solid var(--line);border-radius:999px;padding:5px 11px;font-size:12.5px;font-weight:650;color:var(--text);cursor:pointer}
.hchip.hot{border-color:var(--accent);color:var(--accent)}
.hchip.bad{border-color:var(--bad);color:var(--bad)}
.hposters{display:flex;gap:10px;overflow-x:auto;padding-bottom:6px;scrollbar-width:thin}
.hposter{flex:0 0 150px;display:flex;flex-direction:column;gap:2px;background:none;border:0;padding:0;color:var(--text);text-align:left;cursor:pointer;min-width:0}
.hs-l .hposter{flex-basis:200px}
.hpimg{position:relative;display:block;aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:var(--panel2)}
.hpimg img{width:100%;height:100%;object-fit:cover;display:block}
.hposter:hover .hpimg{outline:3px solid var(--accent);outline-offset:2px}
.setpage{max-width:880px;margin:0 auto}
.sethead{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:0 4px 10px}
.sethead h2{margin:0;font-size:22px;letter-spacing:0;text-transform:none;color:var(--text);font-weight:800}
.setnav{display:flex;gap:6px;overflow-x:auto;padding-bottom:10px;scrollbar-width:none;position:sticky;top:var(--hdrh);z-index:5;background:var(--bg);padding-top:6px}
.setnav::-webkit-scrollbar{display:none}
.setnav button{flex:0 0 auto;padding:6px 12px;border-radius:999px;border:1px solid var(--line);background:var(--panel);color:var(--subtle);font-weight:650;font-size:12.5px;cursor:pointer}
.setsec{margin-bottom:12px;scroll-margin-top:calc(var(--hdrh) + 56px)}
.setsec>h2{margin-top:2px}
.setsub{font-size:14px;margin:14px 2px 6px}
.setgo{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;position:relative;background:var(--panel2);border:1px solid var(--line);border-radius:12px;padding:11px 36px 11px 14px;margin:6px 0;cursor:pointer;color:var(--text);text-align:left}
.setgo i{position:absolute;right:14px;top:50%;transform:translateY(-50%);font-style:normal;font-size:22px;color:var(--subtle)}
.setgo:hover{border-color:var(--accent)}
/* r132: Screens & people */
.mechip{background:var(--panel2);color:var(--text);border:1px solid var(--line);cursor:pointer}
.pcard{background:var(--panel2);border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin:8px 0}
.pcard.padd{border-style:dashed}
.pname{font-weight:700;width:170px}
.pcard label{display:inline-flex;align-items:center;gap:5px}
.pdevs{display:flex;flex-direction:column;gap:6px}
.pdev{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:var(--panel2);border:1px solid var(--line);border-radius:12px;padding:8px 10px}
.pdev>.grow{flex:1 1 220px}
.pdev.off{opacity:.55}
.pdev select{max-width:200px}
html.notowner .hdr-clock{display:none}

/* r133 the Lake (lake.js): the launcher page, then the full-screen lake with widgets in nine spots, an info panel and drawers */
.lkpage{max-width:900px}
.lkhero{position:relative;border-radius:16px;overflow:hidden;background:#000;aspect-ratio:16/9;max-height:56vh}
.lkhero img{width:100%;height:100%;object-fit:cover;display:block}
.lkheroin{position:absolute;left:0;right:0;bottom:0;padding:18px;background:linear-gradient(transparent,rgba(0,0,0,.75))}
.lkheroin h2{margin:0;font-size:28px}
html.lakeon,html.lakeon body{overflow:hidden}
.lakefs{position:fixed;inset:0;z-index:110;background:#000;color:#fff;overflow:hidden;user-select:none;-webkit-user-select:none;touch-action:none}
.lkstill,.lkvideo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.lkvideo{opacity:0;transition:opacity 1.2s}
.lkvideo.on{opacity:1}
.lkdim{position:absolute;inset:0;background:#000;opacity:0;pointer-events:none;transition:opacity 2s}
.lkcatch{position:absolute;inset:0;z-index:2}
.lkover{position:absolute;inset:0;z-index:1;pointer-events:none;transition:transform 3s ease}
.lkspot{position:absolute;display:flex;flex-direction:column;gap:10px;max-width:44vw}
.lkspot.sp0,.lkspot.sp3,.lkspot.sp6{left:max(4vw,env(safe-area-inset-left));align-items:flex-start;text-align:left}
.lkspot.sp2,.lkspot.sp5,.lkspot.sp8{right:max(4vw,env(safe-area-inset-right));align-items:flex-end;text-align:right}
.lkspot.sp1,.lkspot.sp4,.lkspot.sp7{left:50%;transform:translateX(-50%);align-items:center;text-align:center}
.lkspot.sp0,.lkspot.sp1,.lkspot.sp2{top:max(4vh,env(safe-area-inset-top))}
.lkspot.sp6,.lkspot.sp7,.lkspot.sp8{bottom:max(5vh,env(safe-area-inset-bottom))}
.lkspot.sp3,.lkspot.sp5{top:50%;transform:translateY(-50%)}
.lkspot.sp4{top:50%;transform:translate(-50%,-50%)}
.lkw{text-shadow:0 2px 10px rgba(0,0,0,.7),0 0 2px rgba(0,0,0,.6);font-size:clamp(14px,2.1vmin,26px);line-height:1.2}
.lkw.ws0{font-size:clamp(12px,1.6vmin,20px)}
.lkw.ws2{font-size:clamp(16px,2.8vmin,34px)}
.lkw.wst1{background:rgba(20,16,20,.55);border-radius:14px;padding:.45em .8em;text-shadow:none;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.lkw.wst2{opacity:.72}
.lkclock{white-space:nowrap;font-weight:300;font-size:3.2em;line-height:1;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.lkw.ws0 .lkclock{font-size:2.6em}.lkw.ws2 .lkclock{font-size:4.4em}
.lkdate{font-weight:500;font-size:1.15em}
.lkwx span{display:block;font-weight:600}
.lkwx small{display:block;opacity:.85;font-size:.8em}
.lkfc{display:flex;gap:1.1em}
.lkfc div{display:flex;flex-direction:column;align-items:center;gap:.1em}
.lkfc small{font-size:.75em;opacity:.85}.lkfc i{font-style:normal;font-size:1.3em}
.lkradio{font-weight:600;max-width:40vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lklogo{height:2.2em;display:block;filter:drop-shadow(0 2px 6px rgba(0,0,0,.6))}
.lkw.ws0 .lklogo{height:1.6em}.lkw.ws2 .lklogo{height:3.2em}
.lkchurch{display:flex;align-items:center;gap:.5em;font-weight:600}
.lkchurch i{width:.8em;height:.8em;border-radius:50%;flex:0 0 auto;box-shadow:0 0 0 2px rgba(255,255,255,.4)}
.lkcd{font-weight:600}
/* the info panel */
.lkpanel{width:clamp(240px,30vw,420px);background:rgba(20,16,20,.72);border-radius:18px;padding:14px 16px;text-align:left;font-size:clamp(13px,1.7vmin,20px);box-shadow:0 8px 30px rgba(0,0,0,.35)}
.lkpanel.ps0{width:clamp(210px,24vw,340px);font-size:clamp(12px,1.45vmin,17px)}
.lkpanel.ps2{width:clamp(280px,38vw,560px);font-size:clamp(14px,2vmin,24px)}
.lkpanel.pst1{background:rgba(24,19,23,.32);backdrop-filter:blur(18px) saturate(1.3);-webkit-backdrop-filter:blur(18px) saturate(1.3);border:1px solid rgba(255,255,255,.18)}
.lkpanel.pst2{width:min(88vw,1100px);border-radius:12px;background:rgba(20,16,20,.8);border-top:3px solid var(--accent)}
.lkph{display:flex;align-items:center;gap:10px;margin-bottom:.6em}
.lkph b{flex:1;font-size:.8em;letter-spacing:.12em;text-transform:uppercase;color:var(--accent)}
.lkph span{display:flex;gap:4px}
.lkph i{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.3)}
.lkph i.on{background:#fff}
.lkpb{display:flex;flex-direction:column;gap:.35em}
.lkpanel.pst2 .lkpb{flex-direction:row;flex-wrap:wrap;gap:.4em 1.4em}
.lkl{display:flex;gap:.7em;align-items:baseline}
.lkl b{flex:0 0 auto;min-width:4.2em;color:var(--subtle);font-weight:600;font-size:.9em}
.lkl span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lkl span.st{font-weight:600}
.lknow{display:flex;gap:.8em;align-items:center}
.lknow>i{font-style:normal;font-size:3em}
.lknow b{font-size:2.4em;font-weight:300;line-height:1}
.lknow small{display:block;opacity:.8;font-size:.8em;margin-top:.2em}
.lkfrow{display:grid;grid-template-columns:5.2em 1.6em 2.6em 1fr;gap:.4em;align-items:baseline}
.lkfrow i{font-style:normal}.lkfrow span{opacity:.85;font-size:.9em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lkhours{display:flex;gap:.9em;flex-wrap:wrap}
.lkhours div{display:flex;flex-direction:column;align-items:center}
.lkhours i{font-style:normal;font-size:1.3em}.lkhours small{font-size:.75em;opacity:.8}.lkhours .pop{color:#8ecbff}
.lkalert{border-left:3px solid var(--hot);padding-left:.6em}
.lkalert b{color:#ff8fa6}
.lkradar{width:100%;border-radius:10px;display:block}
.lkstory small{color:var(--accent);font-size:.75em;display:block}
.lkstory div{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.lkbig{font-size:1.45em;font-weight:600;line-height:1.2}
.lkchurch.big{font-size:.85em;color:var(--subtle)}
.lkcounts{display:flex;gap:1.2em}
.lkcounts div{display:flex;flex-direction:column;align-items:center;opacity:.6}
.lkcounts div.hot{opacity:1}.lkcounts i{font-style:normal;font-size:1.4em}.lkcounts b{font-size:1.6em}
/* edge handles: show on a touch or a mouse move, then fade */
.lkedge{position:absolute;z-index:3;background:rgba(20,16,20,.55);color:#fff;border:1px solid rgba(255,255,255,.2);border-radius:99px;padding:7px 14px;font:600 13px/1 inherit;cursor:pointer;opacity:0;transition:opacity .4s;pointer-events:none}
.lakefs.awake .lkedge{opacity:.85;pointer-events:auto}
.lakefs.drawing .lkedge{opacity:0;pointer-events:none}
.lkedge.l{left:calc(10px + var(--sal));top:50%;transform:translateY(-50%)}.lkedge.r{right:calc(10px + var(--sar));top:50%;transform:translateY(-50%)}
.lkedge.t{top:max(10px,env(safe-area-inset-top));left:50%;transform:translateX(-50%)}.lkedge.b{bottom:max(12px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%)}
/* drawers */
.lkdrawer{position:absolute;z-index:5;background:rgba(24,19,23,.97);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);color:var(--text);box-shadow:0 10px 40px rgba(0,0,0,.5);display:none;flex-direction:column;touch-action:pan-y;user-select:text;-webkit-user-select:text}
.lkdrawer.on{display:flex}
.lkdrawer.quick{left:50%;bottom:0;transform:translateX(-50%);width:min(760px,100vw);border-radius:18px 18px 0 0;padding:14px calc(16px + var(--sar)) max(14px,var(--sab)) calc(16px + var(--sal));animation:lkUp .22s ease-out}
.lkdrawer.radio{left:0;top:0;bottom:0;width:min(calc(380px + var(--sal)),92vw);border-radius:0 18px 18px 0;padding:max(14px,var(--sat)) 14px max(14px,var(--sab)) calc(14px + var(--sal));animation:lkL .22s ease-out}
.lkdrawer.scene{right:0;top:0;bottom:0;width:min(calc(380px + var(--sar)),92vw);border-radius:18px 0 0 18px;padding:max(14px,var(--sat)) calc(14px + var(--sar)) max(14px,var(--sab)) 14px;animation:lkR .22s ease-out}
.lkdrawer.layout{left:0;right:0;top:0;max-height:78vh;max-height:78dvh;border-radius:0 0 18px 18px;padding:max(14px,var(--sat)) calc(14px + var(--sar)) 14px calc(14px + var(--sal));animation:lkD .22s ease-out}      /* 2.4.0: the Lake's drawers inside the side insets too */
@keyframes lkUp{from{transform:translate(-50%,100%)}to{transform:translate(-50%,0)}}
@keyframes lkL{from{transform:translateX(-100%)}}
@keyframes lkR{from{transform:translateX(100%)}}
@keyframes lkD{from{transform:translateY(-100%)}}
.lkdh{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.lkdh h3{margin:0;flex:1;font-size:19px}
.lkdscroll{overflow-y:auto;-webkit-overflow-scrolling:touch;min-height:0;flex:1;padding-right:4px}
.lkdrawer .field{border-top-color:rgba(255,255,255,.08)}
.lkdrawer .field.sub{padding-left:18px}
.lkdrawer select{max-width:190px}
.lkdrawer input[type=range]{width:150px;accent-color:var(--accent)}
.lkdsub{font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--subtle);margin:14px 0 6px}
.lkst{display:flex;flex-direction:column;align-items:flex-start;width:100%;text-align:left;background:rgba(255,255,255,.05);border:1px solid transparent;border-radius:10px;padding:9px 12px;margin:4px 0;color:var(--text);cursor:pointer;font:inherit}
.lkst:hover{background:rgba(255,255,255,.1)}
.lkst.on{border-color:var(--accent);background:rgba(255,209,102,.12)}
.lkst b{max-width:100%}.lkst small{color:var(--subtle);font-size:12px;max-width:100%}
.lkquick{display:flex;flex-direction:column;gap:10px}
.lkkeys{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:8px}
.lkkeys button{display:flex;flex-direction:column;align-items:center;gap:4px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.08);border-radius:12px;color:var(--text);padding:10px 4px;font-size:20px;cursor:pointer}
.lkkeys button span{font-size:11.5px;color:var(--subtle);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.lkkeys button:hover{background:rgba(255,255,255,.14)}
.lkkeys button.exit{background:rgba(245,19,95,.18);border-color:rgba(245,19,95,.4)}
.lklayout{display:grid;grid-template-columns:minmax(200px,300px) minmax(0,1fr);gap:14px;min-height:0;flex:1;max-height:calc(78vh - 60px);max-height:calc(78dvh - 60px)}
.lknav{display:flex;align-items:center;gap:8px;width:100%;background:transparent;border:0;border-radius:9px;padding:8px 10px;color:var(--text);cursor:pointer;text-align:left;font:inherit}
.lknav b{flex:1;font-weight:500}.lknav span{color:var(--subtle);font-size:12px;white-space:nowrap}
.lknav:hover{background:rgba(255,255,255,.07)}
.lknav.on{background:rgba(255,209,102,.14)}.lknav.on span{color:var(--accent)}
.lkchk{display:flex;align-items:center;gap:8px;padding:5px 0;font-size:14px;cursor:pointer}
.lktoast{position:absolute;z-index:6;left:50%;top:max(18px,env(safe-area-inset-top));transform:translateX(-50%);background:rgba(20,16,20,.85);border:1px solid rgba(255,255,255,.15);border-radius:99px;padding:8px 16px;font-size:14px;font-weight:600;pointer-events:none}
@media (max-width:640px){
  .lklayout{grid-template-columns:minmax(0,1fr);max-height:calc(78vh - 60px);max-height:calc(78dvh - 60px)}
  .lklayout .lknavs{max-height:30vh;border-bottom:1px solid rgba(255,255,255,.1)}
  .lkspot{max-width:48vw}
  .lkkeys{grid-template-columns:repeat(auto-fill,minmax(min(70px,100%),1fr))}
  .lkw{font-size:13px}.lkw.ws0{font-size:11.5px}.lkw.ws2{font-size:15px}
  .lkspot .lkclock{font-size:min(3.2em,11vw)}
  .lkpanel,.lkpanel.ps2{width:min(64vw,360px)}
  .lkpanel.pst2{width:92vw}
}

/* r134 hold menus (hold.js): a sheet from the bottom on a phone, a pop-over by the pointer on a computer */
.pxcard,.pxep,.hposter,.wodc,.wcard,.wrow,[data-wch],[data-wpx],[data-htune],.gp,.pxchan{-webkit-touch-callout:none}
.pxcard img,.pxep img,.hposter img,.wodc img,[data-wpx] img{-webkit-user-drag:none;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}
#holdMenu{position:fixed;inset:0;z-index:130}
#holdMenu .hmback{position:absolute;inset:0;background:rgba(10,6,10,.5);animation:hmFade .15s ease-out}
#holdMenu .hmsheet{position:absolute;left:0;right:0;bottom:0;max-height:82vh;max-height:82dvh;display:flex;flex-direction:column;background:var(--panel);border-top:1px solid var(--line);border-radius:18px 18px 0 0;box-shadow:0 -10px 40px rgba(0,0,0,.45);padding:6px var(--sar) max(10px,var(--sab)) var(--sal);animation:hmUp .2s ease-out}
#holdMenu .hmsheet::before{content:"";display:block;width:40px;height:4px;border-radius:2px;background:var(--line);margin:4px auto 6px}
#holdMenu.pop .hmback{background:rgba(10,6,10,.18)}
#holdMenu.pop .hmsheet{left:auto;right:auto;bottom:auto;width:min(360px,calc(100vw - 24px));max-height:80vh;max-height:80dvh;border:1px solid var(--line);border-radius:14px;padding:4px 0 6px;animation:hmPop .14s ease-out}
#holdMenu.pop .hmsheet::before{display:none}
@keyframes hmFade{from{opacity:0}}
@keyframes hmUp{from{transform:translateY(100%)}}
@keyframes hmPop{from{opacity:0;transform:scale(.97)}}
.hmhead{display:flex;align-items:center;gap:12px;padding:8px 16px 10px;border-bottom:1px solid var(--line)}
.hmhead img{width:44px;height:66px;object-fit:cover;border-radius:6px;flex:0 0 auto;background:var(--bg)}
.hmhead img.wide{width:96px;height:54px}
.hmhead img.logo{width:44px;height:44px;object-fit:contain;background:#fff1;padding:4px}
.hmhead b{display:block;font-size:15.5px}
.hmleft{color:var(--accent);margin-top:2px}
.hmbody{overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:2px 0}
.hmg{padding:4px 0}
.hmg+.hmg{border-top:1px solid var(--bg)}
.hmgt{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--subtle);padding:6px 16px 2px}
.hmi{display:flex;align-items:center;gap:12px;width:100%;background:none;border:0;color:var(--text);text-align:left;padding:10px 16px;font:inherit;font-size:15px;cursor:pointer;min-height:44px}
#holdMenu.pop .hmi{padding:7px 14px;min-height:0;font-size:14px}
@media (pointer:coarse){#holdMenu.pop .hmi{min-height:44px;padding-top:10px;padding-bottom:10px}}      /* 2.4.0 (A1): a finger keeps 44-px rows even in a pop-over (hold.js gives touch the sheet anyway) */
.hmi:hover,.hmi:focus-visible{background:var(--panel2);outline:none}
.hmi>i{font-style:normal;width:22px;text-align:center;flex:0 0 22px;opacity:.9}
.hmi>span{flex:1;min-width:0}
.hmi small{display:block;color:var(--subtle);font-size:12px}
.hmi em{font-style:normal;color:var(--subtle);font-size:12px}
.hmi.hot>span{color:var(--accent);font-weight:700}
.hmnote{padding:6px 16px;font-size:13.5px;color:var(--subtle)}
.hmnote b{color:var(--text);margin-right:6px}
.hmload{padding:10px 16px}
.hmload i{display:block;width:18px;height:18px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* r135 alerts over the picture (alerts.js): lower third, news alert, banner, card, ticker, pill; S/M/L; four themes */
#alLayer{position:fixed;inset:0;z-index:125;pointer-events:none;font-family:inherit}
.al{position:absolute;pointer-events:auto;color:#fff;--al-bg:rgba(24,19,23,.94);--al-edge:var(--grad);--al-sub:rgba(255,255,255,.78);--al-btn:rgba(255,255,255,.12);
  background:var(--al-bg);box-shadow:0 12px 40px rgba(0,0,0,.45);font-size:15px;transition:transform .45s cubic-bezier(.2,.9,.25,1),opacity .35s;opacity:0;max-width:calc(100vw - 24px)}
.al.in{opacity:1}
.al.out{opacity:0;transition-duration:.3s}
.al.busy{opacity:.6;pointer-events:none}
.al.al-s{font-size:13px}.al.al-l{font-size:19px}
.al-th-glass{--al-bg:rgba(30,26,32,.55);backdrop-filter:blur(18px) saturate(1.4);-webkit-backdrop-filter:blur(18px) saturate(1.4)}
.al-th-brand{--al-bg:linear-gradient(115deg,#8a0b3a 0%,#b3361f 60%,#c7690f 100%);--al-sub:rgba(255,255,255,.9);--al-btn:rgba(0,0,0,.22)}
.al-th-light{--al-bg:rgba(250,248,245,.97);--al-sub:#5b5360;--al-btn:rgba(0,0,0,.07);color:#221f21}
.al.vip{--al-edge:linear-gradient(90deg,#ffd166,#f99b1c)}
.al b{font-weight:700}
.al .alic{font-size:1.5em;line-height:1;flex:0 0 auto}
.al .almain{display:flex;gap:.7em;align-items:flex-start}
.al .altext{min-width:0;flex:1}
.al .altext b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.al .albody{color:var(--al-sub);margin-top:.15em;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.al .alsmall{font-size:.78em;color:var(--al-sub);margin-top:.3em}
.al .altag{display:inline-block;font-size:.72em;font-weight:800;letter-spacing:.14em;padding:.25em .7em;background:var(--hot);color:#fff}
.al.vip .altag{background:var(--accent);color:var(--ink)}
.al .albtns{display:flex;gap:.4em;flex-wrap:wrap;margin-top:.6em}
.al .alb{background:var(--al-btn);color:inherit;border:0;border-radius:99px;padding:.42em .95em;font:inherit;font-size:.88em;font-weight:600;cursor:pointer}
.al .alb:hover,.al .alb:focus-visible{background:rgba(255,255,255,.26);outline:none}
.al-th-light .alb:hover{background:rgba(0,0,0,.14)}
.al .alb.pri{background:var(--accent);color:var(--ink)}
.al .alb.x{margin-left:auto;padding:.42em .7em;opacity:.8}
.al .alreply{margin-top:.6em;display:flex;flex-direction:column;gap:.5em}
.al .alreply.hidden{display:none}
.al .alchips{display:flex;gap:.35em;flex-wrap:wrap}
.al .alchip{background:var(--al-btn);border:1px solid rgba(255,255,255,.18);color:inherit;border-radius:99px;padding:.35em .8em;font:inherit;font-size:.85em;cursor:pointer}
.al .alchip:hover{background:rgba(255,255,255,.22)}
.al .alin{flex:1;min-width:0;background:rgba(0,0,0,.28);color:inherit;border:1px solid rgba(255,255,255,.2);border-radius:10px;padding:.5em .7em;font:inherit;font-size:.95em;resize:vertical}
.al-th-light .alin{background:#fff;border-color:#d8d0d8}
.al .alsnz{display:flex;gap:.35em;flex-wrap:wrap}
.al .altime{position:absolute;left:0;bottom:0;height:3px;width:100%;background:var(--al-edge);display:block}
/* lower third: a bar low on the left with a coloured tag, sliding up */
.al-lower{bottom:max(9vh,calc(env(safe-area-inset-bottom) + 70px));left:max(4vw,12px);width:min(620px,calc(100vw - 24px));padding:.8em 1em .9em;border-left:.35em solid transparent;border-image:var(--al-edge) 1;transform:translateY(40px)}
.al-lower.al-w-center{left:50%;transform:translate(-50%,40px)}
.al-lower .altag{position:absolute;top:0;left:0;transform:translateY(-100%)}
.al-lower.in{transform:translateY(0)}.al-lower.al-w-center.in{transform:translate(-50%,0)}
.al-lower.al-l{width:min(820px,calc(100vw - 24px))}
/* news alert: slides in from the side, big red tag */
.al-news{top:max(10vh,70px);right:0;width:min(470px,calc(100vw - 16px));padding:0 0 .9em;border-radius:14px 0 0 14px;transform:translateX(110%)}
.al-news.al-w-left{right:auto;left:0;border-radius:0 14px 14px 0;transform:translateX(-110%)}
.al-news .altag{display:block;padding:.45em 1em;font-size:.8em;border-radius:14px 0 0 0}
.al-news.al-w-left .altag{border-radius:0 14px 0 0}
.al-news .almain,.al-news .albtns,.al-news .alreply{padding:0 1em}.al-news .almain{padding-top:.8em}
.al-news.in{transform:translateX(0)}
.al-news.al-l{width:min(620px,calc(100vw - 16px))}
/* banner: full width, top or bottom, buttons on the right */
.al-banner{left:50%;top:max(10px,env(safe-area-inset-top));width:min(980px,calc(100vw - 20px));transform:translate(-50%,-140%);border-radius:16px;padding:.8em 1em;display:flex;align-items:center;gap:1em;flex-wrap:wrap}
.al-banner.al-w-bottom{top:auto;bottom:max(12px,env(safe-area-inset-bottom));transform:translate(-50%,140%)}
.al-banner .almain{flex:1 1 280px}.al-banner .albtns{margin-top:0}.al-banner .alreply{flex:1 1 100%}
.al-banner.in{transform:translate(-50%,0)}
/* card: a corner card */
.al-card{width:min(360px,calc(100vw - 24px));border-radius:16px;padding:.9em 1em;transform:scale(.9)}
.al-card.al-w-br{right:max(16px,env(safe-area-inset-right));bottom:max(16px,calc(env(safe-area-inset-bottom) + 12px))}
.al-card.al-w-tr{right:max(16px,env(safe-area-inset-right));top:max(16px,env(safe-area-inset-top))}
.al-card.al-w-bl{left:max(16px,env(safe-area-inset-left));bottom:max(16px,calc(env(safe-area-inset-bottom) + 12px))}
.al-card.al-w-tl{left:max(16px,env(safe-area-inset-left));top:max(16px,env(safe-area-inset-top))}
.al-card.al-l{width:min(460px,calc(100vw - 24px))}.al-card.al-s{width:min(300px,calc(100vw - 24px))}
.al-card.in{transform:scale(1)}
/* ticker: one line crawling along the bottom (or top) */
.al-ticker{left:0;right:0;bottom:0;display:flex;align-items:center;gap:.6em;padding:.45em .6em;border-radius:0;transform:translateY(110%)}
.al-ticker.al-w-top{bottom:auto;top:0;transform:translateY(-110%)}
.al-ticker .altrack{flex:1;overflow:hidden;white-space:nowrap;mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent)}
.al-ticker .altrack span{display:inline-block;padding-left:100%;animation:alcrawl 14s linear infinite}
.al-ticker .albtns{margin:0;flex-wrap:nowrap}
.al-ticker.in{transform:translateY(0)}
@keyframes alcrawl{to{transform:translateX(-100%)}}
/* pill: small, quiet */
.al-pill{left:50%;top:max(12px,env(safe-area-inset-top));transform:translate(-50%,-150%);border-radius:99px;padding:.45em .6em .45em .9em;display:flex;align-items:center;gap:.55em;max-width:min(640px,calc(100vw - 24px))}
.al-pill.al-w-bottom{top:auto;bottom:max(16px,env(safe-area-inset-bottom));transform:translate(-50%,150%)}
.al-pill .albody{-webkit-line-clamp:1;margin:0;max-width:260px}.al-pill .albtns{margin:0;flex-wrap:nowrap}.al-pill .alb{padding:.3em .7em}
.al-pill.in{transform:translate(-50%,0)}
.al-pill .altime{border-radius:99px}
@media (max-width:640px){
  .al-lower,.al-lower.al-w-center{left:8px;right:8px;width:auto;transform:translateY(40px)}.al-lower.in,.al-lower.al-w-center.in{transform:translateY(0)}
  .al-news{width:calc(100vw - 16px)}
  .al-card.al-w-br,.al-card.al-w-bl{left:8px;right:8px;width:auto}
  .al-card.al-w-tr,.al-card.al-w-tl{left:8px;right:8px;width:auto}
}
/* settings */
.alrow{border-top:1px solid var(--bg);padding:8px 0}
.alrowh{display:flex;align-items:center;gap:10px}.alrowh b{flex:1}
.algrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(150px,100%),1fr));gap:6px;margin-top:6px}
.algrid select{width:100%}
.altab{width:100%;border-collapse:collapse;margin:6px 0}.altab td,.altab th{padding:5px 4px;text-align:left;font-size:13.5px}.altab th{color:var(--subtle);font-weight:600}
.altab td+td,.altab th+th{text-align:center;width:90px}
.alcode{display:block;word-break:break-all;background:var(--bg);border-radius:6px;padding:6px;margin:4px 0;font-size:11.5px;user-select:all}
.altab .switch{display:inline-block;vertical-align:middle}
.alset .field select{max-width:58%}
@media (max-width:640px){ .al-news{top:max(10px,env(safe-area-inset-top))} }

/* r136 the AI desk (ai.js): My Day's brief, approvals, to-dos by area, bills, prep, time to leave */
.aidesk{margin-bottom:14px}
.aihead{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.aihead h2{margin:0}
.aibrief{border-left:4px solid var(--accent)}
.aikick{font-size:11.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--subtle)}
.aihl{font-size:18px;font-weight:600;margin:4px 0 8px;line-height:1.35}
.aisec{margin-top:8px}.aisec b{font-size:13.5px}.aisec ul,.aiprep ul{margin:4px 0 0 18px;padding:0}.aisec li,.aiprep li{margin:2px 0;font-size:14px}
.aih3{margin:16px 0 8px;font-size:15px;display:flex;align-items:center;gap:8px}
.aisugg textarea,.aisugg input{width:100%;margin-top:6px;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:8px;font:inherit;font-size:14px}
.aiwhy{margin-top:2px}
.aievgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(170px,100%),1fr));gap:6px}
.aiareas{gap:6px;margin-bottom:8px}.aicnt{background:var(--hot);color:#fff;border-radius:99px;padding:0 6px;font-size:11px;margin-left:2px}
.airow{display:flex;align-items:center;gap:10px;padding:9px 12px;border-top:1px solid var(--bg)}.airow:first-child{border-top:0}
.airow.done{opacity:.55}.airow.done .grow>div:first-child{text-decoration:line-through}
.aichk{width:24px;height:24px;flex:0 0 24px;border-radius:50%;border:2px solid var(--line);background:none;color:var(--ink);cursor:pointer;font-weight:800;padding:0}
.aichk.on{background:var(--accent);border-color:var(--accent)}
.aiic{font-size:18px;flex:0 0 auto}.aiamt{color:var(--accent);font-weight:700;margin-left:6px}
.aiadd{gap:6px;padding:8px 10px;border-top:1px solid var(--bg)}.aiadd input{flex:1;min-width:0}
.aidone{border-top:1px dashed var(--line)}
.aiprep a{font-size:13px}
.haibrief{background:var(--panel2);border-left:3px solid var(--accent);border-radius:8px;padding:8px 10px;margin-bottom:8px;cursor:pointer;font-size:14px}
/* r139: multiview in the app (mv.js) */
html.mvon,html.mvon body{overflow:hidden}
html.mvon .modal{z-index:120}
html.mvon .toast{z-index:121}
.mvfs{position:fixed;inset:0;z-index:110;background:#000;color:#fff;overflow:hidden;user-select:none;-webkit-user-select:none}
.mvstage{position:absolute;inset:0}
.mvtile{position:absolute;overflow:hidden;background:#000;border-radius:12px;border:1px solid rgba(255,255,255,.12);transition:left .3s ease,top .3s ease,width .3s ease,height .3s ease;cursor:pointer}
.mvtile.edge{border-radius:0;border-color:transparent}
.mvtile.sel{border:4px solid var(--accent)}
.mvtile.hide{opacity:0;pointer-events:none}
.mvtile video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000}
.mvlab{position:absolute;left:10px;top:10px;padding:4px 12px;border-radius:999px;background:rgba(0,0,0,.62);font-weight:700;font-size:15px;max-width:calc(100% - 130px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
.mvlab .spk{margin-right:6px}
.mvtile.small .mvlab{font-size:12px;padding:2px 8px;left:6px;top:6px}
.mvinfo{position:absolute;left:0;right:0;bottom:0;padding:18px 14px 10px;background:linear-gradient(transparent,rgba(0,0,0,.78));font-size:14px;font-weight:600;pointer-events:none}
.mvtile.small .mvinfo{font-size:11px;padding:12px 8px 6px}
.mvinfo .row span{white-space:nowrap}
.mvtile.small .mvlab{max-width:calc(100% - 46px)}
.mvsheetin .bad{color:var(--bad);margin-top:6px}
.mvbar2{height:5px;border-radius:3px;background:rgba(255,255,255,.25);margin-top:6px;overflow:hidden}
.mvbar2>i{display:block;height:100%;background:var(--accent)}
.mvstate{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;padding:14px;background:rgba(0,0,0,.55);font-size:15px}
.mvstate.err{background:rgba(0,0,0,.86)}
.mvtile.small .mvstate.err{padding-top:34px}
.mvstate.tap{background:rgba(0,0,0,.35)}
.mvtile.small .mvstate{font-size:12px;padding:6px}
.mvspin{width:26px;height:26px;border-radius:50%;border:3px solid rgba(255,255,255,.2);border-top-color:var(--accent);animation:skspin 1s linear infinite}
.mvbtns{position:absolute;right:8px;top:8px;display:flex;gap:6px;opacity:0;transition:opacity .2s;pointer-events:none}
.mvtile:hover .mvbtns,.mvtile.sel .mvbtns,.mvfs.barup .mvbtns{opacity:1;pointer-events:auto}
.mvtile.hide .mvbtns{pointer-events:none}
.mvbtns button{width:34px;height:34px;border-radius:50%;border:0;background:rgba(0,0,0,.65);color:#fff;font-size:17px;cursor:pointer}
.mvbtns button:hover{background:var(--accent);color:#221f21}
.mvtile.small .mvbtns button{width:28px;height:28px;font-size:14px}
.mvbar{position:absolute;left:0;right:0;top:0;z-index:20;padding:calc(10px + env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) 14px max(14px,env(safe-area-inset-left));background:linear-gradient(rgba(0,0,0,.9),rgba(0,0,0,.4) 75%,transparent);transform:translateY(-110%);transition:transform .25s}
.mvfs.barup .mvbar{transform:none}
.mvbartab{position:absolute;left:50%;top:calc(4px + env(safe-area-inset-top));transform:translateX(-50%);z-index:19;border:0;border-radius:999px;background:rgba(0,0,0,.55);color:#fff;padding:4px 14px;font-size:13px;opacity:.7;cursor:pointer}
.mvfs.barup .mvbartab{opacity:0;pointer-events:none}
.mvtoast{position:absolute;left:50%;bottom:calc(30px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:30;background:rgba(34,31,33,.95);border:2px solid var(--accent);border-radius:999px;padding:8px 18px;font-weight:600}
.mvsheet{position:absolute;inset:0;z-index:40;background:rgba(0,0,0,.72);display:flex;align-items:center;justify-content:center;padding:max(14px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left))}
.mvsheetin{background:var(--panel);border-radius:16px;padding:16px;width:min(920px,100%);max-height:88vh;max-height:88dvh;overflow:auto;color:var(--text)}
.mvpick{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(190px,100%),1fr));gap:8px}
.mvch{display:flex;flex-direction:column;gap:2px;text-align:left;padding:10px 12px;border-radius:12px;border:1px solid rgba(255,255,255,.1);background:#151214;color:inherit;cursor:pointer;min-width:0}
.mvch:hover{border-color:var(--accent)}
.mvch.dim,.mvpx.dim{opacity:.4;cursor:default}
.mvpxgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(180px,100%),1fr));gap:10px}
.mvpx{display:flex;flex-direction:column;gap:3px;text-align:left;padding:6px;border-radius:12px;border:1px solid rgba(255,255,255,.1);background:#151214;color:inherit;cursor:pointer;min-width:0}
.mvpx img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:8px;background:#2b2529}
.mvcol{display:flex;flex-direction:column}
.mvsect{margin:16px 0 8px;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--subtle);font-weight:700}
.mvpage .mvsect:first-of-type{margin-top:18px}
.mvstart{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(150px,100%),1fr));gap:10px}
.mvlay{display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px;cursor:pointer;color:inherit;border:1px solid transparent}
.mvlay:hover{border-color:var(--accent)}
.mvglyph{width:100%;max-width:150px;height:auto}
.mvglyph .bg{fill:rgba(0,0,0,.45)}
.mvglyph .a{fill:var(--accent)}
.mvglyph .b{fill:rgba(190,182,200,.55)}
.mvsetups{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(280px,100%),1fr));gap:10px}
.mvsetup{display:flex;align-items:center;gap:8px;padding:10px}
.mvsetupgo{display:flex;align-items:center;gap:12px;flex:1;min-width:0;text-align:left;background:none;border:0;color:inherit;cursor:pointer;padding:0}
.mvsetupgo .mvglyph{width:90px;flex:0 0 90px}
.mvopt{display:flex;align-items:flex-start;gap:10px;padding:8px 0;cursor:pointer}
.mvopt input{margin-top:3px}
@media (max-width:700px){.mvlbl{display:none}.mvbar .btn{padding:6px 10px}}

/* r144: photos and logos */
.av{position:relative;flex:0 0 36px;width:36px;height:36px;border-radius:50%;overflow:hidden;background:var(--panel2);display:inline-flex;align-items:center;justify-content:center;align-self:center}
.av img{width:100%;height:100%;object-fit:cover;display:block}
.av i{display:none;font-style:normal;font-weight:700;font-size:13px;letter-spacing:.02em;color:var(--subtle)}
.av.noimg i{display:block}
.av.logo{border-radius:0;background:transparent}.av.logo img{object-fit:contain}
.av.sm{flex-basis:26px;width:26px;height:26px}.av.sm i{font-size:10px}
.av.grp.noimg i{font-size:15px}
.lrow .av{margin-right:2px}.airow .av{margin:0 2px}
.al .alav{flex:0 0 46px;width:46px;height:46px}.al .alav.sm{flex-basis:30px;width:30px;height:30px}

/* r145: My Day's sections, the AI's questions on rows, replying to texts */
.tdsecs{margin:6px 0 10px}
.tdsecrow{position:relative;display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}.tdsecrow::-webkit-scrollbar{display:none}
.tdsec{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;border:1px solid var(--line,#3a3344);background:var(--panel);color:var(--text);font:inherit;font-weight:600;white-space:nowrap;cursor:pointer}
.tdsec img{width:24px;height:24px;object-fit:contain}.tdsec span{font-size:18px}
.tdsec b{background:var(--accent);color:#111;border-radius:999px;padding:0 7px;font-size:12px;line-height:18px}
.tdsec.on{background:var(--accent);color:#111;border-color:var(--accent)}.tdsec.on b{background:#111;color:var(--accent)}
.tdsubrow{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}.tdsubrow img{width:18px;height:18px;object-fit:contain;margin-right:5px;vertical-align:-4px}
.tdq{border:0;background:none;font-size:18px;cursor:pointer;padding:0 2px;flex:none;line-height:1}
.tdreply textarea{flex:1;min-width:0;resize:vertical}

/* r145: the CBTV AI tab */
.caihead{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}.caihead h2{margin:0}
.caichat{display:flex;flex-direction:column;gap:8px}
.caimsgs{display:flex;flex-direction:column;gap:8px;max-height:60vh;min-height:160px;overflow:auto;padding:4px 2px}
.bub.ai{background:var(--panel2);white-space:normal}.bub.ai p{margin:4px 0}.bub.ai ul{margin:4px 0 4px 18px;padding:0}
.caichips{display:flex;gap:4px;flex-wrap:wrap;margin-top:6px}
.caiq{margin-top:4px;color:var(--accent)}
.caiquick{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}.caiquick::-webkit-scrollbar{display:none}.caiquick .btn{white-space:nowrap}
.caiin{gap:6px;align-items:stretch}.caiin textarea{flex:1;min-width:0;resize:vertical}
.caiideas{margin-top:8px;display:flex;flex-direction:column;gap:4px}.caiidea{font-size:14px}
.caithink{display:flex;gap:4px;padding:10px 12px}.caithink span{width:7px;height:7px;border-radius:50%;background:var(--subtle);animation:caib 1.2s infinite}
.caithink span:nth-child(2){animation-delay:.2s}.caithink span:nth-child(3){animation-delay:.4s}
@keyframes caib{0%,80%,100%{opacity:.25}40%{opacity:1}}

/* r148: the Mac's calendars and Reminders (what Fantastical shows) in My Day */
.caldot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px;vertical-align:1px;flex:0 0 9px}
.tdcheck{flex:0 0 16px;width:16px;height:16px;border-radius:50%;border:2px solid var(--subtle);box-sizing:border-box}
.tdflag{color:#ff9f0a}
.tdprio{color:var(--warn)}
.tdmc{margin:4px 0 10px}
.tdmc.off{opacity:.45;pointer-events:none}
.tdmc-r{display:grid;grid-template-columns:14px minmax(0,1fr) 44px 44px 128px;gap:10px;align-items:center;padding:7px 0;border-top:1px solid var(--bg)}
.tdmc-r.tdmc-h{border-top:0;padding:2px 0;font-size:11px;color:var(--subtle);text-transform:uppercase;letter-spacing:.04em}
.tdmc-r.off>div{opacity:.5}
.tdmc-r select{width:100%;min-width:0}
.tdmc-c{display:flex;flex-direction:column;align-items:center;gap:2px}
.tdmc-c .switch{flex:0 0 auto}
.tdmc-c small{display:none;font-size:10px;color:var(--subtle)}
@media (max-width:520px){
  .tdmc-c small{display:block}
  .tdmc-r{grid-template-columns:14px minmax(0,1fr) 44px 44px}
  .tdmc-r select{grid-column:2/-1}
  .tdmc-r.tdmc-h span:last-child{display:none}
}
.lrow span.bad{color:var(--bad)}

/* r149: whose event on a shared calendar (Mom, Dad, Ian, Family) */
.tdwho{display:inline-block;margin-left:7px;padding:1px 7px;border-radius:9px;font-size:11px;font-weight:600;line-height:16px;background:rgba(190,182,200,.18);color:var(--subtle);vertical-align:1px}

/* r152: mail groups */
.tdgrp{border:1px solid var(--line);background:transparent;color:inherit;border-radius:10px;padding:0 7px;margin-right:6px;font-size:11px;line-height:18px;cursor:pointer;vertical-align:1px}
.tdgrp.q{border-style:dashed;color:var(--accent)}
.msgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(128px,100%),1fr));gap:6px}
.msbtn{display:flex;align-items:center;gap:8px;justify-content:flex-start;min-height:40px}
.msbtn img{width:20px;height:20px;object-fit:contain}
.msbtn.on{outline:2px solid var(--accent)}
/* r153: People (where the people in Kyle's life are: a map and a card each) */
.ppgrid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:14px;align-items:start;margin-top:8px}
.ppmapcard{position:sticky;top:calc(var(--hdrh) + 8px)}
.ppmap{height:min(64vh,580px);background:#1b181a}
@media (max-width:899px){.ppgrid{grid-template-columns:minmax(0,1fr)}.ppmapcard{position:relative;top:0}.ppmap{height:42vh;min-height:250px}}      /* 2.4.0 (part B follow-up): beside the list (two columns) the map stays stuck, as on the Mac - it covers nothing there; stacked (under 900 px) it never sticks */
.pplist{display:flex;flex-direction:column;gap:10px;min-width:0}
.ppcard{cursor:pointer;min-width:0}
.ppav{flex:0 0 auto;display:inline-flex;border-radius:50%;box-shadow:0 0 0 2px var(--c)}
.chip.ppnow{background:var(--ok);color:var(--ink)}
.ppitems{margin-top:8px}
.pprow{display:flex;gap:10px;align-items:center;padding:7px 0;border-top:1px solid var(--bg);min-width:0}
.ppwhen{flex:0 0 104px;font-size:12px;color:var(--accent);font-weight:700;line-height:1.25}
@media (max-width:520px){.ppwhen{flex-basis:78px;font-size:11.5px}}
.pprow .btn.ghost{background:none;border-color:transparent;padding:4px 6px}
.pprow[data-ppopen]{cursor:pointer}
.linkbtn{background:none;border:0;padding:0;color:var(--accent);font:inherit;font-size:12px;cursor:pointer;text-decoration:underline}
.pppin{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:var(--c);color:#221f21;cursor:pointer;
  font:800 11px/1 "Helvetica Neue",Helvetica,Arial,sans-serif;border:2px solid #221f21;box-shadow:0 1px 6px rgba(0,0,0,.55)}
.pppin.now{animation:pppulse 2s ease-in-out infinite;z-index:2}
@keyframes pppulse{0%,100%{box-shadow:0 0 0 3px rgba(255,255,255,.35),0 1px 6px rgba(0,0,0,.55)}50%{box-shadow:0 0 0 9px rgba(255,255,255,0),0 1px 6px rgba(0,0,0,.55)}}
.pphome{width:12px;height:12px;border-radius:50%;border:2px solid #beb6c8;background:rgba(190,182,200,.3)}
.ppmapnote{position:absolute;right:10px;top:10px;z-index:3;background:rgba(34,31,33,.92);padding:6px 10px;border-radius:8px;font-size:12px;color:var(--subtle);max-width:calc(100% - 70px)}
.ppmapcard .maplibregl-popup-content{background:var(--panel);color:var(--text);box-shadow:0 3px 14px rgba(0,0,0,.6);border-radius:10px;padding:9px 12px;font-size:13px;line-height:1.4}
.ppmapcard .maplibregl-popup-content .muted{color:var(--subtle)}
.ppmapcard .maplibregl-popup-anchor-bottom .maplibregl-popup-tip{border-top-color:var(--panel)}
.ppmapcard .maplibregl-popup-anchor-top .maplibregl-popup-tip{border-bottom-color:var(--panel)}
.ppmapcard .maplibregl-ctrl-group{background:var(--panel2)}
.ppmapcard .maplibregl-ctrl-group button .maplibregl-ctrl-icon{filter:invert(1)}
.ppmapcard .maplibregl-ctrl.maplibregl-ctrl-attrib,.ppmapcard .maplibregl-ctrl-attrib.maplibregl-compact,.ppmapcard .maplibregl-ctrl-attrib.maplibregl-compact-show{background:rgba(34,31,33,.88)!important;color:var(--subtle)}
.ppmapcard .maplibregl-ctrl-attrib a{color:var(--subtle)}
.ppmapcard .maplibregl-ctrl-attrib-button{filter:invert(1);background-color:transparent}
.tdmsg .tdatt{margin-top:6px}
/* r153 end */
/* r154: Drive search (CBTV AI tab) */
.drvcard{margin-bottom:12px}
.drvcard input[type=search]{font-size:15px;padding:8px 10px}
.drvchips{gap:6px;margin-top:8px}.drvchips:empty{display:none}
.drvres{margin-top:6px}.drvres:empty{display:none}
.drvrow{display:flex;gap:10px;align-items:flex-start;padding:8px 4px;border-top:1px solid var(--bg);color:var(--text);text-decoration:none;min-width:0}
.drvrow:first-child{border-top:0}.drvrow:hover{background:var(--panel2);border-radius:8px}
.drvrow .grow{display:flex;flex-direction:column;gap:1px}
.drvname{font-weight:700}
.drvic{font-size:18px;flex:0 0 auto;line-height:1.3}
.drvmeta{flex:0 0 auto;text-align:right;white-space:nowrap}
.drvsnip{color:var(--subtle);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.drvsnip mark{background:rgba(255,209,102,.28);color:var(--text);border-radius:3px;padding:0 1px}
.drvfiles{display:flex;flex-direction:column;gap:4px;margin-top:8px}
.drvfile{display:flex;gap:6px;align-items:center;padding:6px 9px;border:1px solid var(--line);border-radius:9px;color:var(--text);text-decoration:none;min-width:0;background:var(--panel2)}
.drvfile .ell{flex:1;min-width:0}.drvfile .muted{flex:0 0 auto}
.caitext a{color:var(--accent);word-break:break-all}
/* r154 end */
/* r155: the ⋯ on every My Day row (where it belongs, dismiss / snooze, tell the AI) */
.itbtn{flex:0 0 auto;margin-left:auto;min-width:32px;height:32px;border-radius:9px;border:1px solid transparent;background:none;color:var(--subtle);
  font-size:17px;line-height:1;cursor:pointer;padding:0 6px;align-self:center}
.itbtn:hover{border-color:var(--line);background:var(--panel2);color:var(--text)}
.itbtn.has{font-size:14px}
.lrow .itbtn{margin-left:4px}
.lrow > div[style*="min-width:0"]:not([style*="flex"]){flex:1}
.ppcard .itbtn{margin-left:4px}
.chip.hidchip{background:var(--panel2);color:var(--subtle);border:1px dashed var(--line);cursor:pointer}
.itchips .btn{font-weight:500}
#itNote{width:100%;box-sizing:border-box}
/* r155 end */
/* r156: click into a message / event / item (ctx.js), and WhatsApp */
[data-ctx]{cursor:pointer}
.ctxgo{color:var(--accent);font-weight:700;margin-left:2px}
.ctxlink:hover .ctxgo,[data-ctx]:hover .ctxgo{text-decoration:underline}
.aiopen{display:inline-block;margin-top:4px;font-size:13px;color:var(--accent);cursor:pointer}
.ctxfacts{display:flex;flex-direction:column;gap:6px;margin:12px 0 4px;font-size:14px}
.ctxfacts>div{display:flex;gap:8px;align-items:baseline;min-width:0;overflow-wrap:anywhere}
.ctxfacts>div>span:first-child{flex:0 0 20px;text-align:center}
.ctxdesc{margin-top:10px;padding:10px 12px;background:var(--panel2);border:1px solid var(--line);border-radius:10px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.45;max-height:50vh;overflow:auto}
.ctxinline{margin:8px 0 4px;padding:10px 12px;background:var(--panel2);border:1px solid var(--line);border-radius:10px;max-height:40vh;overflow:auto}
.ctxinline .tdbody{max-height:none}
.wabadge{flex:0 0 auto;font-size:10px;font-weight:700;letter-spacing:.3px;color:#0b3d1c;background:#25d366;border-radius:6px;padding:1px 5px;align-self:center}
.al.alctx .almain{cursor:pointer}
.ppmore{margin-left:6px;color:var(--subtle);font-size:12px}
.ppabout{margin-top:10px;padding-top:8px;border-top:1px solid var(--line);cursor:default}
.ppsec{margin:8px 0 4px;font-size:12px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--subtle)}
.pplearn{display:flex;flex-direction:column;gap:6px;margin-top:6px}
.pplearn>div{padding:6px 8px;background:var(--panel2);border-radius:8px;overflow-wrap:anywhere}
.ppalist{display:flex;flex-direction:column}
.pparow{display:flex;gap:8px;align-items:center;padding:7px 2px;border-top:1px solid var(--bg);min-width:0}
.pparow .chip{margin-left:4px}
.ppaic{flex:0 0 22px;text-align:center}
.ppplace{display:flex;align-items:baseline;gap:6px;min-width:0}
.ppplace>b{flex:0 1 auto;min-width:0}
.ppplace>.linkbtn{flex:0 0 auto}
.ppplace>span{flex:1 1 0;min-width:0}
/* r156 end */

/* r159: the Wyze cameras (Watch → Cameras, Watch rows, Home, alerts) */
.campage{max-width:1500px}
.camgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr));gap:12px}
.camcard{padding:0;overflow:hidden;display:flex;flex-direction:column}
.camimg{position:relative;display:block;width:100%;aspect-ratio:16/9;padding:0;border:0;background:#0d0b0d;cursor:pointer;overflow:hidden}
.camimg img{width:100%;height:100%;object-fit:cover;display:block;transition:opacity .3s}
.camimg img.camwait{opacity:.35}
.camimg .camname{position:absolute;left:10px;bottom:8px;font-weight:800;color:#fff;text-shadow:0 1px 4px #000;font-size:15px}
.camimg .camst{position:absolute;right:8px;top:8px;font-size:11px;font-weight:800;border-radius:99px;padding:2px 8px;background:rgba(0,0,0,.55);color:#fff;letter-spacing:.04em}
.camimg .camst.ok{background:rgba(46,160,90,.85)}
.camimg .camst.bad{background:rgba(210,50,50,.9)}
.camimg .camplay{position:absolute;inset:0;display:grid;place-items:center;font-size:42px;color:#fff;opacity:0;transition:opacity .2s;text-shadow:0 2px 8px #000}
.camimg:hover .camplay,.camimg:focus-visible .camplay{opacity:.9}
.camcard.moving .camimg{box-shadow:inset 0 0 0 3px var(--warn)}
.cambar{height:3px;background:rgba(255,255,255,.06)}
.cambar i{display:block;height:100%;width:0;background:var(--warn);transition:width .5s}
.camrow{gap:6px;padding:8px 10px;align-items:center}
.camsub{min-width:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.camoff{grid-column:1/-1;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.camoffl{flex:1 1 300px;display:flex;flex-direction:column;gap:4px;line-height:1.4}
.camoffl b{font-weight:600;color:var(--text,inherit)}
.camempty{grid-column:1/-1;max-width:640px}
.camevents{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(280px,100%),1fr));gap:8px}
.camev{display:flex;gap:10px;align-items:center;background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:6px;color:var(--text);cursor:pointer;min-width:0;font:inherit}
.camev img{flex:0 0 96px;width:96px;height:54px;object-fit:cover;border-radius:6px;background:#000}
.camev>span{display:flex;flex-direction:column;gap:1px}
.camevbig{width:100%;border-radius:10px;margin-top:10px;background:#000;display:block}
.camsrow{margin:8px 0;padding:10px 12px}
.camsens input{vertical-align:middle;width:110px}
.camsens b{display:inline-block;min-width:1.4em;text-align:right}
.wlogo .wcamth{width:100%;height:100%;object-fit:cover;border-radius:6px;max-width:none;max-height:none}
.hcams{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.hs-l .hcams{grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr))}
.hcam{position:relative;aspect-ratio:16/9;border:0;padding:0;border-radius:10px;overflow:hidden;background:#0d0b0d;cursor:pointer}
.hcam img{width:100%;height:100%;object-fit:cover;display:block}
.hcamname{position:absolute;left:8px;bottom:6px;color:#fff;font-weight:800;font-size:13px;text-shadow:0 1px 4px #000}
.hcamst{position:absolute;right:6px;top:6px;font-size:10.5px;font-weight:800;border-radius:99px;padding:1px 7px;background:rgba(210,50,50,.9);color:#fff}
.hcamst.mo{background:rgba(0,0,0,.6);color:var(--warn)}
.al .alcam{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:10px;margin-bottom:.6em;background:#000}
.al-banner .alcam{float:left;width:11em;margin:0 .9em .2em 0}
.al-s .alcam{max-height:7.5em}
.camsrow input[data-cs="name"]{background:var(--panel2);border:1px solid var(--line);color:var(--text);border-radius:8px;padding:7px 10px;font:inherit;font-weight:700}
.camsrow select{background:var(--panel2);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:4px 6px;font:inherit}

/* r161: Face ID / Touch ID */
.pkbtn{margin-top:4px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:15px}
.pkbtn .pkic{font-size:20px;line-height:1}
#pkHint:empty{display:none}
.pklist{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.pkrow{display:flex;align-items:center;gap:10px;background:var(--panel2);border:1px solid var(--line);border-radius:10px;padding:8px 10px}
#pkLockLayer{position:fixed;inset:0;z-index:400;background:rgba(34,31,33,.96);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);display:flex;align-items:center;justify-content:center}
#pkLockLayer.hidden{display:none}
.pklock{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;padding:24px}
.pklock h2{margin:6px 0 8px}

/* r162: one row per event across calendars (small tags), Also happening, the calendar check, the family copy */
.cstags{display:flex;flex-wrap:wrap;gap:4px;margin-top:3px;cursor:pointer}
.cstag{display:inline-flex;align-items:center;gap:4px;font-size:11px;line-height:1;padding:3px 7px;border-radius:999px;background:var(--panel2);color:var(--subtle);border:1px solid var(--line);white-space:nowrap}
.cstag i{width:7px;height:7px;border-radius:50%;display:inline-block}
.cstag.msp{color:var(--text)}
.cstag.fam{color:var(--ok)}
.tdalso{display:flex;align-items:center;gap:8px;width:100%;text-align:left;background:none;border:0;border-top:1px solid var(--bg);color:var(--subtle);font:inherit;font-size:13px;padding:8px 12px;cursor:pointer;min-width:0}
.tdalso .muted{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1}
.tdalso:hover{background:var(--panel2)}
.lrow.fyi{opacity:.72}
.lrow.fyi b{font-weight:500}
.csrow{flex-wrap:wrap}
.csbtns{display:flex;flex-wrap:wrap;gap:4px;justify-content:flex-end}
.csans{display:flex;flex-direction:column;gap:6px;margin:12px 0 8px}
.aifam{display:flex;align-items:center;gap:6px;font-size:13px;margin-top:8px;flex-wrap:wrap}
.aifam b{font-weight:600}
@media (max-width:600px){.csbtns{width:100%;justify-content:flex-start}}

/* r163: the Calendar page (My Day -> Calendar): day / week (time grid), 2 weeks / month (day boxes), agenda */
.calhead{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:6px}
.caltitle{font-size:20px;font-weight:700;letter-spacing:-.01em;min-width:0}
.calviews{display:flex;gap:4px;flex-wrap:wrap;order:5}
.calviews .btn.on{background:var(--grad);color:#fff;border-color:transparent}
#calNote{margin:0 0 8px}
.calbody{min-width:0}
.calgrid-x{overflow-x:auto;border:1px solid var(--line);border-radius:var(--r);background:var(--panel)}
.calgrid{--gut:46px;min-width:0}
.calgrid.week{min-width:640px}
.calgh{display:grid;grid-template-columns:var(--gut) repeat(var(--n),minmax(0,1fr));border-bottom:1px solid var(--line);background:var(--panel)}
.calgday{padding:6px 4px;text-align:center;font-size:12px;color:var(--subtle);cursor:pointer;border-left:1px solid var(--bg)}
.calgday b{font-weight:600}
.calgday.caltoday{color:var(--text)}
.calgday.caltoday .calnum{background:var(--grad);color:#fff;border-radius:999px;padding:1px 7px}
.calnum{font-weight:700;color:var(--text)}
.calall .calallcol{padding:3px;display:flex;flex-direction:column;gap:2px;border-left:1px solid var(--bg);min-width:0}
.calgrid-scroll{max-height:calc(100vh - var(--hdrh, 60px) - 210px);max-height:calc(100dvh - var(--hdrh, 60px) - 210px);min-height:320px;overflow-y:auto;position:relative}
.calgrid-body{display:grid;grid-template-columns:var(--gut) repeat(var(--n),minmax(0,1fr));position:relative}
.calhours div{font-size:10px;color:var(--subtle);text-align:right;padding-right:6px;transform:translateY(-6px);box-sizing:border-box}
.calcol{position:relative;border-left:1px solid var(--bg);cursor:copy}
.calcol.caltoday{background:rgba(255,209,102,.035)}
.calhr{position:absolute;left:0;right:0;border-top:1px solid rgba(255,255,255,.05);pointer-events:none}
.calnow{position:absolute;left:0;right:0;height:2px;background:#ff5a5a;z-index:3;pointer-events:none}
.calnow::before{content:"";position:absolute;left:-4px;top:-3px;width:8px;height:8px;border-radius:50%;background:#ff5a5a}
.calev{position:absolute;z-index:2;box-shadow:0 0 0 1px var(--panel);overflow:hidden;border-radius:6px;padding:2px 5px;box-sizing:border-box;cursor:pointer;
  background:color-mix(in srgb,var(--c) 30%,var(--panel2));border-left:3px solid var(--c);font-size:12px;line-height:1.25}
.calev:hover{filter:brightness(1.15)}
.calev-t{font-weight:600;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}
.calev-s{color:var(--subtle);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.calev-n{float:right;margin:0 0 0 3px;font-style:normal;font-size:10px;line-height:15px;color:var(--subtle);white-space:nowrap}      /* 2.4.0 (P2): beside the title, not over it (calendar.js puts it first) */
.calev.fyi,.calchip.fyi,.calrow.fyi{opacity:.42}
.calev.ask{box-shadow:inset 0 0 0 1px var(--amber,#ffd166)}
.calchip{font-size:11.5px;line-height:1.3;padding:1px 5px;border-radius:5px;border-left:3px solid var(--c);background:color-mix(in srgb,var(--c) 22%,var(--panel2));
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;min-width:0}
.calchip-t{color:var(--subtle);margin-right:4px}
.calmore{background:none;border:0;color:var(--subtle);font-size:11px;text-align:left;padding:1px 4px;cursor:pointer}
.calbox-h{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));font-size:11px;color:var(--subtle);text-align:center;padding:2px 0 4px}
.calboxes{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.calbox{background:var(--panel);border-radius:8px;padding:4px;min-height:104px;display:flex;flex-direction:column;gap:2px;cursor:pointer;min-width:0;border:1px solid transparent}
.calboxes.\32w .calbox{min-height:180px}
.calbox.out{opacity:.45}
.calbox.caltoday{border-color:var(--amber,#ffd166)}
.calbox.sel{background:var(--panel2);border-color:var(--line)}
.calbox-d{font-size:12px;color:var(--subtle)}
.calbox.caltoday .calnum{color:var(--amber,#ffd166)}
.caldots{display:flex;flex-wrap:wrap;gap:3px;margin-top:2px}
.caldots i{width:6px;height:6px;border-radius:50%;display:block}
.caldots i.fyi{opacity:.4}
.caldots b{font-size:9px;line-height:6px;color:var(--subtle)}
.calrow{cursor:pointer}
.caldesc{white-space:pre-wrap;margin-top:8px;max-height:160px;overflow:auto}
.calform{display:flex;flex-direction:column;gap:8px;margin:8px 0}
.calform input,.calform select,.calform textarea{background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:8px 10px;font:inherit;min-width:0;color-scheme:dark}
.calform input[type=checkbox]{padding:0}
#cnDot{width:12px;height:12px;flex:0 0 12px}
@media (max-width:640px){
  .calbox{min-height:54px;padding:3px}
  .calboxes.\32w .calbox{min-height:120px}
  .calgrid-scroll{max-height:calc(100vh - var(--hdrh, 60px) - 250px);max-height:calc(100dvh - var(--hdrh, 60px) - 250px)}
  .caltitle{font-size:17px;width:100%;order:-1}
  .calhead .grow{display:none}
  .calviews{width:100%;flex-wrap:nowrap;overflow-x:auto}
  #calNote{font-size:11px}
}

/* ---------------------------------------------------------------- CBTV 2.0 (phase 2) */
.groupnav .gback{color:var(--accent);font-weight:700}
.livebar{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.hb{max-width:1100px}
.hbhead{display:flex;align-items:center;gap:10px;margin:2px 0 10px}
.hbhead h2{margin:0}
.hbrow{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.04);margin-bottom:6px;border-left:3px solid var(--idle)}
.hbrow.hb-bad{border-left-color:var(--bad)} .hbrow.hb-warn{border-left-color:var(--warn)} .hbrow.hb-info{border-left-color:var(--subtle)} .hbrow.hb-ok{border-left-color:var(--ok)}
.hbic{width:16px;text-align:center}
.hb-bad .hbic{color:var(--bad)} .hb-warn .hbic{color:var(--warn)} .hb-ok .hbic{color:var(--ok)}
.hbgood{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 4px}
.hbgood .chip{background:rgba(123,216,143,.16);color:var(--text);font-weight:600}
.hbsub{margin:18px 0 8px}
.hbmore{margin-top:18px}
.hbmore summary{cursor:pointer;color:var(--subtle);padding:8px 0}
.setadv{display:flex;align-items:center;gap:8px;margin-left:auto}
.setpage:not(.adv) .advrow{display:none}
.hpre{font-size:12px;color:var(--subtle)}
.hpre b{color:var(--text)}
.hhealth{cursor:pointer}
.hwx{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.hwx img{max-width:100%;border-radius:10px}
.hdl .bar{height:4px;border-radius:2px;background:rgba(255,255,255,.12);overflow:hidden;margin-top:4px}
.hdl .bar i{display:block;height:100%;background:var(--accent)}
.login .pkfirst{width:100%;margin-bottom:12px}
.login.pkmode #pin, .login.pkmode #loginForm > .btn.primary{display:none}
/* 2.0.2 Home: weather + radar, downloads, the health chip */
.hwxnow{display:flex;gap:12px;align-items:center}
.hwxnow > b{font-size:34px;font-weight:700;line-height:1}
.hwxhr{display:flex;gap:6px;overflow-x:auto;margin:8px 0 4px;padding-bottom:2px}
.hwxhr span{display:flex;flex-direction:column;align-items:center;min-width:44px;padding:6px 4px;border-radius:10px;background:rgba(255,255,255,.05)}
.hwxhr small{color:var(--subtle);font-size:11px}
.hwxhr .pop{color:#7cb7ff}
.hradar{display:block;width:100%;max-height:340px;object-fit:contain;border-radius:10px;margin-top:8px;background:#000}
.hhead .hhealth{margin-right:4px;white-space:nowrap}
.hdl{align-items:center}
.setadv .switch{margin:0}
.oneaddr{position:fixed;left:calc(12px + var(--sal));right:calc(12px + var(--sar));bottom:calc(12px + var(--sab));z-index:9999;background:var(--panel2);border:1px solid var(--accent);border-radius:14px;padding:12px 40px 12px 14px;font-size:14px;box-shadow:0 8px 30px rgba(0,0,0,.5)}
.oneaddr a{color:var(--accent);font-weight:700}
.oneaddr button{position:absolute;top:8px;right:8px;background:none;border:0;color:var(--subtle);font-size:16px;cursor:pointer}
.login #pinAlt{margin-top:2px;margin-bottom:10px}
/* 2.0.2 My Day search */
.mdsearch{margin:4px 0 12px;position:relative}
.mdsearch input{width:100%;box-sizing:border-box}
.mdsres{margin-top:8px;max-height:60vh;overflow:auto;padding:8px 10px}
.mdsh{font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--subtle);margin:10px 2px 4px}
.mdsrow{display:flex;gap:10px;align-items:center;padding:7px 4px;border-radius:10px;cursor:pointer}
.mdsrow:hover{background:rgba(255,255,255,.05)}
.mdscap{display:block;width:100%;text-align:left;background:var(--panel2);border:1px solid var(--accent);color:var(--accent);border-radius:10px;padding:9px 12px;font-weight:650;cursor:pointer}

.setpage.adv .setsimple{display:none}

/* 2.0.4 Online channels (online.js) */
.oltabs{display:flex;gap:6px;margin:12px 0 10px;flex-wrap:wrap}
.oltabs button{font:inherit;font-size:13px;font-weight:700;border-radius:999px;padding:6px 14px;border:1px solid var(--line);background:transparent;color:var(--subtle);cursor:pointer}
.oltabs button.on{background:var(--accent);color:var(--ink);border-color:var(--accent)}
#olRes,#olBody{max-height:min(58vh,560px);overflow:auto;overscroll-behavior:contain}
#olQ{margin-bottom:8px}
.olrow{display:flex;align-items:center;gap:12px;padding:10px 4px;border-bottom:1px solid var(--line)}
.olrow:last-child{border-bottom:0}
.ollogo{width:64px;height:40px;flex:0 0 64px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.05);border-radius:8px;overflow:hidden}
.ollogo img{max-width:60px;max-height:36px;object-fit:contain}
.ell2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.olform{display:grid;gap:10px}
.olform label{display:grid;gap:4px;font-size:13px;font-weight:700;color:var(--subtle)}
.olform input{width:100%}
.olacts{gap:6px;flex-wrap:wrap;justify-content:flex-end}
@media (max-width:600px){.olrow{align-items:flex-start;flex-wrap:wrap}.ollogo{width:48px;flex-basis:48px;height:32px}.ollogo img{max-width:44px;max-height:28px}.olrow .grow{flex:1 1 calc(100% - 64px)}.olacts{width:100%;justify-content:flex-start;padding-left:60px}}

/* 2.0.5 Music, Audiobooks, the audio player (music.js), Home: Coming to Plex / Music / Audiobooks */
.mushead{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:4px 0 6px}
.mushead input{flex:1 1 260px;max-width:460px}
.mgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(150px,100%),1fr));gap:14px}
.mgrid.books{grid-template-columns:repeat(auto-fill,minmax(min(130px,100%),1fr))}
.mrow{display:flex;gap:14px;overflow-x:auto;padding-bottom:6px;scroll-snap-type:x proximity}
.mrow .mcard,.mrow .bkcont{flex:0 0 150px;scroll-snap-align:start}
.mcard{display:flex;flex-direction:column;gap:3px;text-align:left;background:none;border:0;padding:0;color:var(--text);cursor:pointer;min-width:0;font:inherit}
.mcart{position:relative;aspect-ratio:1;border-radius:10px;overflow:hidden;background:var(--panel2);display:flex;align-items:center;justify-content:center;margin-bottom:4px}
.mcart.book{aspect-ratio:2/3}
.mcart img{width:100%;height:100%;object-fit:cover;display:block}
.mcart b{font-size:34px;color:var(--subtle)}
.mcard:hover .mcart,.mcard:focus-visible .mcart{outline:2px solid var(--accent);outline-offset:2px}
.mcard .ell2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px}
.bkbar{position:absolute;left:6px;right:6px;bottom:6px;height:4px;border-radius:2px;background:rgba(0,0,0,.55);overflow:hidden;display:block}
.bkbar i{display:block;height:100%;background:var(--accent)}
.bkbar.wide{position:static;margin-top:8px;max-width:360px;height:5px;background:var(--line)}
.bkdone{position:absolute;top:6px;right:6px;background:var(--ok);color:#173;font-weight:800;border-radius:999px;padding:1px 7px;font-size:12px}
.bkcont{display:flex;flex-direction:column;gap:2px}
.mhead{display:flex;gap:20px;align-items:flex-end;margin:14px 0 8px;flex-wrap:wrap}
.mcart.big{width:min(220px,40vw);flex:0 0 auto;margin:0}
.mtitle{font-size:26px;letter-spacing:0;text-transform:none;color:var(--text);margin:2px 0 4px;font-weight:800}
.mtracks{display:flex;flex-direction:column;margin-top:8px}
.mtr{display:flex;align-items:center;gap:12px;padding:8px 6px;border:0;border-bottom:1px solid var(--line);background:none;color:var(--text);text-align:left;cursor:pointer;font:inherit;min-width:0}
.mtr .ell{flex:1;min-width:0}
.mtr .n{width:30px;text-align:right;color:var(--subtle);font-variant-numeric:tabular-nums}
.mtr:hover{background:var(--panel2)}
.mtr.on{color:var(--accent)} .mtr.on .n{color:var(--accent)}
.bkdesc{max-width:820px;color:var(--subtle);white-space:pre-line;margin:14px 2px}
.mpbar{position:fixed;left:calc(8px + var(--sal));right:calc(8px + var(--sar));bottom:calc(64px + var(--sab));z-index:45;background:rgba(43,37,41,.97);border:1px solid var(--line);border-radius:14px;box-shadow:0 10px 40px rgba(0,0,0,.5);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.mpin{display:flex;align-items:center;gap:12px;padding:8px 10px}
.mpart{width:52px;height:52px;flex:0 0 52px;border-radius:8px;overflow:hidden;background:var(--panel);display:flex;align-items:center;justify-content:center}
.mpart img{width:100%;height:100%;object-fit:cover}
.mptxt{flex:1;min-width:0;display:flex;flex-direction:column}
.mpprog{display:flex;align-items:center;gap:8px;font-size:11.5px;color:var(--subtle);font-variant-numeric:tabular-nums}
.mpprog input{flex:1;min-width:60px;accent-color:var(--accent);height:16px;margin:0}
.mpbtns{display:flex;align-items:center;gap:2px}
.mpbtns button{background:none;border:0;color:var(--text);font:inherit;font-size:15px;font-weight:700;min-width:38px;height:38px;border-radius:999px;cursor:pointer}
.mpbtns button:hover,.mpbtns button.on{background:var(--panel)}
.mpbtns .mpbig{background:var(--accent);color:var(--ink);min-width:44px;height:44px}
.mppanel{border-top:1px solid var(--line);padding:8px 10px 10px;max-height:min(50vh,420px);display:flex;flex-direction:column;gap:8px}
.mpopts{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.mpopts button[data-mprate]{font:inherit;font-size:12px;font-weight:700;border-radius:999px;padding:3px 9px;border:1px solid var(--line);background:none;color:var(--subtle);cursor:pointer}
.mpopts button[data-mprate].on{background:var(--accent);color:var(--ink);border-color:var(--accent)}
.mplist{overflow:auto;display:flex;flex-direction:column}
.mplist button{display:flex;gap:10px;align-items:center;padding:6px 4px;background:none;border:0;border-bottom:1px solid var(--line);color:var(--text);text-align:left;font:inherit;font-size:13.5px;cursor:pointer;min-width:0}
.mplist button .ell{flex:1;min-width:0}
.mplist button .n{width:26px;text-align:right;color:var(--subtle)}
.mplist button.on{color:var(--accent)}
html.mpon main{padding-bottom:calc(160px + env(safe-area-inset-bottom))}
@media (min-width:900px){.mpbar{left:calc(120px + var(--sal));right:calc(20px + var(--sar));bottom:calc(16px + var(--sab));max-width:1100px;margin:0 auto}}
@media (max-width:600px){.mpart{width:42px;height:42px;flex-basis:42px}.mpbtns button[data-mp="more"],.mpbtns button[data-mp="close"]{min-width:30px}.mgrid{grid-template-columns:repeat(auto-fill,minmax(min(120px,100%),1fr));gap:10px}.mgrid.books{grid-template-columns:repeat(auto-fill,minmax(min(100px,100%),1fr))}}
.hadded{display:flex;gap:10px;overflow-x:auto;padding-bottom:4px}
.hadded button{flex:0 0 96px;display:flex;flex-direction:column;gap:2px;background:none;border:0;padding:0;color:var(--text);text-align:left;cursor:pointer;font:inherit;font-size:12.5px;min-width:0}
.hadded button span{width:96px;height:96px;border-radius:8px;overflow:hidden;background:var(--panel2);display:block}
.hadded button img{width:100%;height:100%;object-fit:cover}
.hbk{width:38px;height:56px;flex:0 0 38px;border-radius:5px;overflow:hidden;background:var(--panel2)}
.hbk img{width:100%;height:100%;object-fit:cover}
.mhead>div:last-child{flex:1 1 280px;min-width:0}

/* 2.0.7: Done (✓ on My Day's rows, the reminder's circle, Home's to-dos and Needs you; Undo in the toast) */
.itdone{flex:0 0 auto;margin-left:auto;min-width:32px;height:32px;border-radius:9px;border:1px solid var(--line);background:none;color:var(--subtle);
  font-size:15px;font-weight:800;line-height:1;cursor:pointer;padding:0 6px;align-self:center}
.itdone:hover,.itdone:focus-visible{background:var(--ok);border-color:var(--ok);color:#10261a}
.lrow .itdone{margin-left:6px}
.lrow .itdone + .itbtn,.aisugg .itdone + .itbtn{margin-left:4px}
.hrow .itdone{min-width:30px;height:30px;font-size:14px;margin-left:6px}
button.tdcheck{flex:0 0 20px;width:20px;height:20px;padding:0;background:none;cursor:pointer;position:relative;color:var(--text)}
button.tdcheck:hover::after,button.tdcheck:focus-visible::after{content:'✓';position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:900}
.tdcheck.on{background:var(--ok);border-color:var(--ok)!important}
.itgone{display:none!important}
.toast .toastbtn{margin-left:12px;border:0;border-radius:999px;padding:3px 12px;background:var(--ink);color:var(--pill);font:inherit;font-weight:800;cursor:pointer}
@media (max-width:600px){.lrow .itdone{min-width:28px;height:28px;font-size:13px;margin-left:4px;padding:0 4px}.lrow .itbtn{min-width:24px;padding:0 2px}.lrow .itdone + .itbtn{margin-left:2px}}

/* 2.0.9: My stations (stations.js); Sky life Advanced */
.mysthead{display:flex;align-items:center;gap:10px}
.mystbody{max-height:min(56vh,560px);overflow:auto;border:1px solid var(--line);border-radius:12px;padding:4px}
.mystrow{display:flex;align-items:center;gap:8px;padding:7px 8px;border-radius:10px}
.mystrow+.mystrow{border-top:1px solid var(--bg)}
.mystrow.playing{background:var(--panel2)}
.mystplay{flex:0 0 34px;height:34px;border-radius:50%;border:1px solid var(--line);background:none;color:var(--text);cursor:pointer}
.mystrow.playing .mystplay{background:var(--accent);color:var(--ink);border-color:var(--accent)}
.mystdead{font-size:11px;color:var(--bad);font-weight:600}
.mystbar{display:flex;align-items:center;gap:10px;margin-top:10px;padding:8px 10px;background:var(--panel2);border-radius:12px}
.lifeadv>summary{cursor:pointer;padding:6px 0}

/* 2.0.10: book covers in their own shape (square or portrait), standing on one line */
.mcart.book{background:none;align-items:flex-end;overflow:visible}
.mcart.book img{height:auto;aspect-ratio:1;object-fit:cover;border-radius:10px;background:var(--panel2)}
.mcart.book b{align-self:center;margin:auto}
.mcard:hover .mcart.book,.mcard:focus-visible .mcart.book{outline:none}
.mcard:hover .mcart.book img,.mcard:focus-visible .mcart.book img{outline:2px solid var(--accent);outline-offset:2px}
.hbk{display:flex;align-items:flex-end;background:none}
.hbk img{height:auto;aspect-ratio:1;border-radius:5px}
.mpart.book img{object-fit:contain}

/* 2.0.10: the one Lake design drawn on the 1920 x 1080 stage */
.lkstage{position:absolute;left:0;top:0;width:1920px;height:1080px;transform-origin:0 0}
.lkde{position:absolute;white-space:nowrap;line-height:1;font-weight:500;text-box:trim-both cap alphabetic}
.lkdpanel{position:absolute;padding:24px 28px;overflow:hidden;text-align:left;line-height:1.3}
.lkdpanel .lkph b{color:var(--acc);font-size:.75em}
.lkdpanel.lines .lkstory,.lkdpanel.lines .lkl,.lkdpanel.lines .lkfrow{border-bottom:1px solid rgba(255,255,255,.18);padding:.35em 0}
.lkdpanel .lkstory small{display:inline-block;background:rgba(255,255,255,.9);color:#171318;border-radius:6px;padding:1px 8px;margin-right:10px;font-weight:700;font-size:.62em;vertical-align:.15em}
.lkdpanel .lkstory div{display:inline}
.lkdpanel,.lkde{text-shadow:0 2px 6px rgba(0,0,0,.6)}
.mcart.book{aspect-ratio:auto;flex:1 1 auto;min-height:0}
.mcard.bk .ell2{min-height:2.5em}
.bkcont>.mcard{flex:1 1 auto}
.bkcont>span{min-height:1.4em}

/* 2.0.11b: the People log */
.pplogp{margin-bottom:12px}
.pplogday{font-size:.78em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.6;margin:8px 0 2px}
.pplogrow{display:flex;align-items:baseline;gap:10px;padding:5px 0;border-bottom:1px solid rgba(255,255,255,.07)}
.pplogrow.move{opacity:.55;font-style:italic}
.pplogt{flex:0 0 9.5em;font-variant-numeric:tabular-nums;opacity:.8;font-size:.92em}

/* 2.6.0 (location): Settings → Places, the My Day home / away chip and People → Where I went (places.js) */
.plstat{margin:0 0 8px}
.plwords{font-size:16px}
.plwords.home{color:var(--ok)}
.plphone{gap:8px;margin-top:8px;align-items:center}
.plrow{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:9px 0;border-top:1px solid var(--bg)}
.plrow:first-child{border-top:0}
.plname{flex:1 1 150px;min-width:0}
.plname small{display:block;color:var(--subtle);font-size:12px}
@media (max-width:520px){.plname{flex-basis:100%}}      /* a phone: the name has its own line, the radius and the buttons sit under it */
.plhours select{width:auto}
.chip.wherechip{border:0;font-family:inherit;font-size:12px;font-weight:700;cursor:pointer}
.chip.wherechip.home{background:var(--ok);color:var(--ink)}
.chip.wherechip.away{background:var(--accent);color:var(--ink)}
.plgonow{color:var(--ok);font-weight:700}

/* 2.0.11: WhatsApp's own icon */
.waicon{width:1.15em;height:1.15em;border-radius:24%;vertical-align:-.2em;display:inline-block;flex:0 0 auto;object-fit:contain}
.hdev .waicon,.ppaic .waicon,.aiic .waicon,.alic .waicon{width:1.25em;height:1.25em}
.tdhead .waicon,h3 .waicon{vertical-align:-.15em}

/* 2.0.12: every alert's own logo; a contact's photo wears it as a badge */
.al .almark{position:relative;display:inline-flex;flex:0 0 auto;align-self:center;overflow:visible;background:none}
.al .almark .av{margin:0}
.al .albadge{position:absolute;right:-5px;bottom:-5px;width:46%;height:46%;object-fit:contain;filter:drop-shadow(0 1px 2px rgba(0,0,0,.5))}
.al .av.logo.alav{border-radius:0}
.al .altkl{width:1.35em;height:1.35em;object-fit:contain;vertical-align:-.3em;margin-right:.15em}
.nitem .nlogo{flex:0 0 34px;width:34px;height:34px;align-self:flex-start;margin-top:1px}

/* 2.0.18: cbAI (Captain's looks, its log) and People on My Day */
.caihead{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.cblook{margin:8px 0 4px}
.cbrun{display:flex;align-items:center;gap:8px;margin-top:6px;font-size:13px;color:var(--amber,#f2b33d)}
.cbrun .caithink{display:inline-flex;gap:3px;padding:0;background:none}
.cblog{display:flex;gap:10px;align-items:flex-start;padding:9px 12px;border-top:1px solid var(--line)}
.cblog:first-child{border-top:0}
.cblog .cbic{flex:0 0 20px;text-align:center}
.cblog .cbts{white-space:nowrap}
.cblog.skip{opacity:.65}
.cblog.error .cbic{filter:none}
.tdpplist{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(240px,100%),1fr));gap:2px;padding:6px}
.tdpp{display:flex;gap:10px;align-items:center;text-align:left;background:none;border:0;border-radius:10px;padding:8px;color:var(--text);font:inherit;cursor:pointer;min-width:0}
.tdpp:hover{background:rgba(255,255,255,.05)}
.tdpp .grow{display:flex;flex-direction:column;min-width:0}

/* 2.0.18: the record button */
.memo{text-align:center}
.memobig{display:flex;flex-direction:column;align-items:center;gap:10px;margin:18px 0 14px}
.memodot{width:92px;height:92px;border-radius:50%;border:4px solid rgba(255,255,255,.18);background:#c8323c;color:#fff;font-size:34px;cursor:pointer;transition:transform .15s}
.memodot.on{animation:memopulse 1.4s ease-in-out infinite;border-radius:24px}
@keyframes memopulse{0%,100%{transform:scale(1)}50%{transform:scale(.92)}}
.memotime{font-variant-numeric:tabular-nums;font-size:15px}

/* 2.0.19: the one Alerts page, tones */
.als .alstabs{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0 8px;position:sticky;top:-14px;background:var(--panel,#2c2430);padding:6px 0;z-index:2}
.als .alstabs .btn.on{background:var(--amber,#f2b33d);color:#1b1418}
.alstone{display:flex;align-items:center;gap:8px;padding:6px 0;border-top:1px solid var(--line)}
.alstone select{min-width:140px}
.alslogo{width:20px;height:20px;border-radius:50%;vertical-align:-5px}
.alsalw{font-size:12px;color:var(--subtle,#a99fb0);white-space:nowrap}
.alstall{display:flex;flex-wrap:wrap;gap:6px}
.alsmore summary{cursor:pointer;margin:6px 0}

/* 2.0.19: Siri & Shortcuts steps */
ol.alsvoice{margin:6px 0 8px 18px;padding:0}
ol.alsvoice li{margin:2px 0}
@media (max-width:480px){.alstone{flex-wrap:wrap;row-gap:4px}.alstone>.grow{flex:1 0 100%}.alstone select{min-width:0;flex:1 1 auto}}

/* 2.0.20: the channel editor (static/chedit.js) */
.cegrid{grid-template-columns:repeat(auto-fill,minmax(min(250px,100%),1fr))}
.cech{display:flex;gap:10px;align-items:center;text-align:left;cursor:pointer;color:inherit;font:inherit}
.cech img{width:48px;height:36px;object-fit:contain;flex:none}
.celogo{height:28px;max-width:60px;object-fit:contain}
.celist{max-height:70vh;overflow:auto;padding:4px 10px}
.ceitem{display:flex;gap:10px;align-items:center;padding:6px 0;border-top:1px solid var(--line)}
.ceitem:first-child{border-top:0}
.ceitem img{width:34px;height:50px;object-fit:cover;border-radius:4px;flex:none;background:var(--panel2,#2a2230)}
.ceitem.gone b{text-decoration:line-through;opacity:.55}
.cechip{display:inline-flex;align-items:center;gap:4px;margin:6px 6px 0 0;padding:3px 4px 3px 10px;border-radius:14px;background:var(--panel2,#2a2230);font-size:13px}
.cechip button{border:0;background:none;color:inherit;font-size:16px;cursor:pointer;padding:0 4px}
.cechk{font-size:13px;white-space:nowrap}

/* 2.0.20: Stats (static/stats.js) - one series, hours per day */
.stchart{display:flex;align-items:flex-end;gap:2px;height:160px;position:relative;padding:12px 12px 26px}
.stbar{flex:1;height:100%;display:flex;align-items:flex-end;cursor:default}
.stbar i{display:block;width:100%;background:var(--accent);border-radius:4px 4px 0 0}
.stbar:hover i{filter:brightness(1.25)}
.stax{position:absolute;left:12px;right:12px;bottom:4px;display:flex;justify-content:space-between;font-size:12px;color:var(--subtle,#a99fb0)}

/* 2.0.20: Audiobookshelf panel book rows */
.absrow{display:flex;gap:12px;overflow-x:auto;padding:4px 0 10px}
.absbk{width:110px;flex:none;display:flex;flex-direction:column;gap:2px;min-width:0}
.absbk img{width:110px;height:110px;object-fit:cover;border-radius:8px;background:var(--panel2,#2a2230)}
.absbk b{font-size:13px}

/* 2.0.20: the channel editor on a phone */
.ce .two-col>div{min-width:0}
.ce select{max-width:100%;min-width:0}
@media (max-width:600px){.ce .field{flex-wrap:wrap;gap:6px}.ce .field>input,.ce .field>select{width:100%!important}.ce .card.row{flex-wrap:wrap}}

/* 2.0.20: a full-screen picture has black around it, not plum */
html.mediafull,html.mediafull body{background:#000}

/* 2.0.20: ambient mode (watch.js wAmbient) - the bars glow with the picture's colours */
.wamb{position:absolute;inset:0;width:100%;height:100%;filter:blur(36px) saturate(1.35);opacity:0;transition:opacity .8s;pointer-events:none;z-index:1}
.wstage.amb.ambon .wamb{opacity:.8}
.wamb{mix-blend-mode:lighten}      /* the overlay's clock, logo and Up next in the bars stay on top of the glow */
/* 2.0.21 (46): --ambH cuts the overlays (clock, weather, logo, Up next) out of the glow: a second mask layer */
.wamb{-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-composite:source-in;mask-composite:intersect}
.wstage[data-amb=x] .wamb{-webkit-mask-image:linear-gradient(to right,#000 0,#000 calc(var(--ambA) - 1px),transparent var(--ambA),transparent calc(100% - var(--ambB)),#000 calc(100% - var(--ambB) + 1px)),var(--ambH,linear-gradient(#000,#000));mask-image:linear-gradient(to right,#000 0,#000 calc(var(--ambA) - 1px),transparent var(--ambA),transparent calc(100% - var(--ambB)),#000 calc(100% - var(--ambB) + 1px)),var(--ambH,linear-gradient(#000,#000))}
.wstage[data-amb=y] .wamb{-webkit-mask-image:linear-gradient(to bottom,#000 0,#000 calc(var(--ambA) - 1px),transparent var(--ambA),transparent calc(100% - var(--ambB)),#000 calc(100% - var(--ambB) + 1px)),var(--ambH,linear-gradient(#000,#000));mask-image:linear-gradient(to bottom,#000 0,#000 calc(var(--ambA) - 1px),transparent var(--ambA),transparent calc(100% - var(--ambB)),#000 calc(100% - var(--ambB) + 1px)),var(--ambH,linear-gradient(#000,#000))}

/* 2.0.21: trailers & extras */
.pxxvid{display:block;width:min(960px,86vw);max-height:70vh;aspect-ratio:16/9;background:#000;border-radius:10px;margin:10px 0}
.pxextra{display:flex;flex-direction:column;gap:4px;width:240px;flex:0 0 auto;text-align:left;background:none;border:0;color:inherit;padding:0;cursor:pointer}
.pxextra .pximg{position:relative;display:block;width:240px;aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:var(--panel2,#2a2230)}
.pxextra .pximg img{width:100%;height:100%;object-fit:cover}
.pxextra:hover .pximg,.pxextra:focus-visible .pximg{outline:2px solid var(--amber,#f0b429)}
@media (max-width:600px){.pxextra{width:180px}.pxextra .pximg{width:180px}}
.pxextra:hover .pxplay,.pxextra:focus-visible .pxplay{opacity:1}
.remrow{gap:10px;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.06)}
/* 2.0.21: Storage */
.stobar{flex:1;height:10px;border-radius:6px;background:rgba(255,255,255,.08);overflow:hidden;min-width:80px}
.stobar i{display:block;height:100%;background:var(--ok,#4caf50)}.stobar i.warn{background:var(--amber,#f0b429)}.stobar i.bad{background:var(--bad,#e5484d)}
.stodrv{padding:10px 0;border-bottom:1px solid rgba(255,255,255,.06)}.stotop{margin-top:6px;display:flex;flex-wrap:wrap;gap:6px}
.stoplan{padding:4px 0}.stodup{padding:8px 0;border-bottom:1px solid rgba(255,255,255,.06)}
.wkgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:12px;margin-top:8px}
.pxpick{display:flex;flex-direction:column;flex:0 0 auto;gap:2px}.pxwhy{font-size:12px;color:var(--muted,#aaa);max-width:180px;line-height:1.3}
/* 2.0.21: brightness of the picture on this device (watch.js wBright): channels, Plex, the lake, multiview, cameras */
html.cbright video,html.cbright .lkstill{filter:brightness(var(--cbright,1))}
html.cbright .wamb{filter:blur(36px) saturate(1.35) brightness(var(--cbright,1))}
.wbright .wkey[disabled]{opacity:.4}
/* 2.0.21: iPhone widths (Kyle: "A lot of screens are too wide on iPhone") - nothing in a dialog wider than the dialog */
.modal-card{min-width:0}
.modal-card img,.modal-card video,.modal-card canvas,.modal-card table,.modal-card pre,.modal-card select{max-width:100%}
.modal-card .wb-frame{max-width:none}
.wb-edl,.wb-edr{min-width:0}
@media (max-width:600px){.modal-card{padding:14px}.wb-stage{padding:10px;min-height:200px}.wb-f{flex-wrap:wrap}.wb-f select,.wb-f input:not([type=checkbox]){max-width:100%;min-width:0}}

/* 2.0.24 Retro TV (Kyle Oct 10 00:58): the picture in a rendered cabinet; the cabinet's own clock/weather display, Up next label
   and logo plate are filled in here (watch.js wRetro*; frames from tools/retro, static/share/retro) */
@font-face{font-family:'CBTV DSEG7';src:url(/static/share/retro/DSEG7Classic-Bold.ttf) format('truetype');font-display:swap}
@font-face{font-family:'CBTV Oswald';src:url(/static/share/retro/Oswald.ttf) format('truetype');font-weight:200 700;font-display:swap}
.wtv{position:absolute;inset:0;pointer-events:none;z-index:1;display:none;overflow:hidden}
.wstage.retro .wtv{display:block}
.wstage.retro .wamb{display:none}
.wtvbox{position:absolute;left:0;top:0;width:100%;height:100%}
.wtvart{position:absolute;inset:0;width:100%;height:100%;display:block}
.wtvart:not([src]){visibility:hidden}
.wtvplate{position:absolute;display:flex;align-items:center;justify-content:center;overflow:hidden;line-height:1}
.wtvclock{color:#8bffe2;font-family:'CBTV DSEG7',ui-monospace,monospace;text-shadow:0 0 .12em rgba(45,227,181,.95),0 0 .45em rgba(45,227,181,.45)}
.wtvclock .tm{position:relative;display:inline-flex;align-items:flex-start}
.wtvclock .tm .gh{position:absolute;left:0;top:0;opacity:.07;text-shadow:none}
.wtvclock .ap{font:600 .3em 'CBTV Oswald',sans-serif;letter-spacing:.12em;margin:.18em 0 0 .35em}
.wtvclock .wx{display:inline-flex;align-items:center;gap:.25em}
.wtvclock .wx svg{width:1.05em;height:1.05em;flex:none;filter:drop-shadow(0 0 .12em rgba(45,227,181,.9))}
.wtvclock .wx .dg{font:600 .55em 'CBTV Oswald',sans-serif;margin-left:.08em;align-self:flex-start}
.wtv[data-fam=console] .wtvclock{flex-direction:column;gap:.24em}
.wtv[data-fam=console] .wtvclock .wx{font-size:.5em}
.wtv[data-fam=wide] .wtvclock{gap:.6em}
.wtv[data-fam=wide] .wtvclock .wx{font-size:.62em}
@font-face{font-family:'CBTV DSEG14';src:url(/static/share/retro/DSEG14Classic-Bold.ttf) format('truetype');font-display:swap}
/* 2.0.25: the channel and Up next windows are VFDs like the clock (Kyle 02:41) */
.wtvlogo,.wtvnext{color:#8bffe2;text-shadow:0 0 .12em rgba(45,227,181,.95),0 0 .45em rgba(45,227,181,.45)}
.wtvlogo .vrow{display:inline-flex;align-items:center;gap:.5em;white-space:nowrap}
.wtvlogo .vnum{position:relative;font-family:'CBTV DSEG7',monospace;font-size:1.7em}
.wtv .gh{position:absolute;left:0;top:0;opacity:.07;text-shadow:none}
.wtv .v14,.wtv .vnum{position:relative;display:inline-block;white-space:nowrap}
.wtv .v14{font-family:'CBTV DSEG14',monospace;letter-spacing:.04em}
.wtvnext{justify-content:center}

/* 2026-10-12: the inbox in My Day (mail.js) */
.mailtools{display:inline-flex;gap:6px;align-items:center;flex-wrap:wrap}
.mailq{background:var(--panel2);color:var(--ink);border:1px solid var(--bg);border-radius:8px;padding:4px 8px;font-size:12px;width:170px}
.mailgrps{width:100%;margin-top:6px;gap:4px}
.mailgrps .chip{cursor:pointer;border:0;opacity:.75}.mailgrps .chip.on{background:var(--grad);color:#fff;opacity:1}
.mrow{position:relative}
.mrow .macts{display:none;gap:4px;flex:none}
.mrow:hover .macts,.mrow:focus-within .macts{display:flex}
.mact{background:var(--panel2);color:var(--ink);border:0;border-radius:8px;width:30px;height:30px;font-size:14px;cursor:pointer}
.mact:hover{background:var(--pill)}
.mrow.sel{background:var(--panel2)}
.mcheck{font-size:18px;width:18px;text-align:center}
.mailbar{display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding:8px 12px;border-bottom:1px solid var(--bg)}
.mailwarn{padding:8px 12px;border-bottom:1px solid var(--bg)}
.mailmore{margin:10px 12px}
.macct{opacity:.8}
.mbody{white-space:pre-wrap;word-break:break-word;max-height:55vh;overflow:auto;margin-top:10px;padding:10px;background:var(--panel2);border-radius:10px;font-size:14px;line-height:1.4}
.mpile-acct{margin-top:12px}.mpile{padding:6px 0 6px 10px;border-left:3px solid var(--bg);margin-top:6px}
@media (max-width:700px){.mrow .macts{display:flex}.mact{width:34px;height:34px}.mailq{width:130px}}

/* 2026-10-13: My Day = the Now card + folded sections (now.js) */
.mdnow{padding:16px 16px 12px;margin:10px 0 14px;border:1px solid var(--accent);box-shadow:0 0 0 1px rgba(255,210,74,.08)}
.nowhero{padding-bottom:10px}
.nowkick{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--accent);margin-bottom:2px}
.nowbig{font-size:28px;font-weight:800;line-height:1.15;letter-spacing:-.01em}
.nowhero.soon .nowbig{color:var(--accent)}
.nowhero.urgent .nowbig{color:var(--bad)}
.nowsub{font-size:16px;margin-top:4px}
.nowmeta{font-size:13px;color:var(--subtle);margin-top:6px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.nowmeta.soon,.soon{color:var(--accent)}
.nowmaps{margin-left:auto}
.nowbtns{gap:8px;margin-top:10px}
.nowrow{display:flex;gap:8px;align-items:center;padding:9px 0;border-top:1px solid var(--bg);min-width:0}
.nowtodo{display:flex;gap:10px;align-items:center;padding:8px 0;border-top:1px solid var(--bg);cursor:pointer;min-width:0}
.nowtt{font-size:15px}
.nowdue{font-size:11px;font-weight:800;padding:1px 8px;border-radius:999px;background:var(--subtle);color:var(--ink);margin-left:4px;white-space:nowrap;vertical-align:1px}
.nowdue.duesoon{background:var(--accent)}
.nowdue.late{background:var(--bad)}
.nownote{margin-top:4px;white-space:normal}
.nowadd{border-top:1px solid var(--bg);padding-top:8px}
.nowadd input{width:100%;background:transparent;border:0;color:var(--text);font-size:15px;padding:6px 2px}
.nowadd input:focus{outline:none;border-bottom:1px solid var(--accent)}
.nowtom{border-top:1px solid var(--bg);margin-top:8px;padding-top:10px;display:grid;gap:3px}
.nowchips{gap:6px;margin-top:10px}
.nowchip{cursor:pointer;border:0}
.mdfolds{display:grid;gap:6px;margin-top:8px}
.mdfold{border-radius:12px;background:var(--panel);overflow:hidden}
.mdfh{display:flex;align-items:center;gap:10px;width:100%;background:none;border:0;color:var(--text);padding:13px 14px;font-size:16px;font-weight:700;cursor:pointer;text-align:left}
.mdfa{display:inline-block;transition:transform .15s;color:var(--subtle);width:12px}
.mdfold.open .mdfa{transform:rotate(90deg)}
.mdft{flex:1;min-width:0}
.mdfc{font-size:13px;font-weight:600;color:var(--subtle);white-space:nowrap}
.mdfc.hot{color:var(--ink);background:var(--accent);border-radius:999px;padding:2px 9px}
.mdfb{display:none;padding:0 12px 12px}
.mdfold.open .mdfb{display:block}
.mdfb .card{background:var(--panel2)}
.aidonetoggle{margin:8px}

/* 2026-10-16 the programme card (progcard.js): a sheet from the bottom on a phone, a centred 560-px dialog on a computer.
   Under the toast (120), over the pages, the players and a dialog; the old hold menu (130) opens over it from More. */
.gmark{font-style:normal;font-size:11px;margin-right:4px}
#pcard{position:fixed;inset:0;z-index:119;display:flex;align-items:flex-end;justify-content:center}
#pcard .pcback{position:absolute;inset:0;background:rgba(10,6,10,.55);animation:hmFade .15s ease-out}
#pcard .pcsheet{position:relative;width:100%;max-height:92vh;max-height:92dvh;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;outline:none;
  background:var(--panel);border-top:1px solid var(--line);border-radius:18px 18px 0 0;box-shadow:0 -10px 40px rgba(0,0,0,.45);padding-bottom:max(12px,var(--sab));padding-left:var(--sal);padding-right:var(--sar);animation:hmUp .2s ease-out}
@media (min-width:700px){
  #pcard{align-items:center;padding:calc(16px + var(--sat)) calc(16px + var(--sar)) calc(16px + var(--sab)) calc(16px + var(--sal))}
  #pcard .pcsheet{width:min(560px,100%);max-height:86vh;max-height:86dvh;border:1px solid var(--line);border-radius:16px;padding-bottom:12px;padding-left:0;padding-right:0;animation:hmPop .14s ease-out}      /* 2.4.0 (P5): keeps its dvh like the sheet */
}
#pcard .pchead{position:relative;padding:18px 16px 8px;overflow:hidden}
#pcard .pcart{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.3;z-index:0}
#pcard .pchead::after{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(180deg,rgba(34,31,33,.15),var(--panel) 95%);pointer-events:none}
#pcard .pchin{position:relative;z-index:1}
#pcard .pcx{position:absolute;top:-8px;right:-8px;width:36px;height:36px;border-radius:50%;border:0;background:rgba(0,0,0,.4);color:var(--text);font-size:15px;cursor:pointer}
#pcard .pcx:hover{background:rgba(0,0,0,.6)}
#pcard .pctop{display:flex;gap:14px;align-items:flex-start;padding-right:34px}
#pcard .pcposter{width:72px;height:108px;object-fit:cover;border-radius:8px;flex:0 0 auto;background:var(--bg);box-shadow:0 4px 14px rgba(0,0,0,.45)}
#pcard .pctext{min-width:0;flex:1}
#pcard .pctitle{font-size:21px;font-weight:700;line-height:1.2;overflow-wrap:anywhere}
#pcard .pcsub{color:var(--accent);margin-top:3px;font-weight:600;font-size:14px;overflow-wrap:anywhere}
#pcard .pctags{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
#pcard .pctag{font-size:11.5px;font-weight:700;letter-spacing:.03em;border:1px solid var(--line);border-radius:6px;padding:1px 7px;color:var(--subtle);font-style:normal;white-space:nowrap}
#pcard .pctag.new{background:var(--hot);border-color:var(--hot);color:#fff}
#pcard .pcmeta{margin-top:10px;font-size:13.5px;color:var(--subtle);display:flex;flex-direction:column;gap:3px}
#pcard .pcmeta b{color:var(--text);font-weight:600}
#pcard .pcch{display:flex;align-items:center;gap:8px;min-width:0}
#pcard .pclogo{width:34px;height:20px;object-fit:contain;background:var(--pill);border-radius:3px;padding:1px;flex:0 0 auto}
#pcard .pcsum{margin-top:10px;font-size:14.5px;line-height:1.4;white-space:pre-line;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
@media (min-width:700px){#pcard .pcsum{-webkit-line-clamp:6}}
#pcard .pcsum.open{display:block;-webkit-line-clamp:unset}
#pcard .pcsumbtn{background:none;border:0;color:var(--accent);font-weight:700;font-size:13.5px;padding:4px 0;cursor:pointer}
#pcard .pcbtns{display:flex;flex-wrap:wrap;gap:8px;padding:8px 16px 12px}
#pcard .pcb{flex:1 1 150px;min-height:46px;border-radius:12px;border:1px solid var(--line);background:var(--panel2);color:var(--text);font-weight:700;font-size:15px;padding:10px 14px;cursor:pointer}
#pcard .pcb:hover{border-color:var(--subtle)}
#pcard .pcb:focus-visible,#pcard .pcrow:focus-visible,#pcard .pcperson:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#pcard .pcb:disabled{opacity:.5;cursor:default}
#pcard .pcb.pri{flex:1 1 100%;background:var(--grad);border:0;color:#fff}
#pcard .pcb.sm{flex:0 0 auto;min-height:36px;font-size:13.5px;padding:6px 12px}
#pcard .pcnote{flex:1 1 100%;font-size:12.5px;color:var(--subtle);margin:-2px 2px 2px}
#pcard .pcbody{padding:0 16px 4px}
#pcard .pcbody .pcnote{margin:8px 0}
#pcard .pcload{padding:10px 0}
#pcard .pcload i{display:block;width:18px;height:18px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}
#pcard .pcsec{padding:12px 0 6px;border-top:1px solid var(--bg)}
#pcard .pcsech{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--subtle);margin-bottom:8px}
#pcard .pctxt{margin:0 0 8px;font-size:14px;line-height:1.4;white-space:pre-line;overflow-wrap:anywhere}
#pcard .pcfacts{color:var(--subtle);font-size:13.5px}
#pcard .pcrow2{display:flex;align-items:center;gap:10px}
#pcard .pclink{background:none;border:0;color:var(--accent);font-weight:600;font-size:13.5px;padding:6px 0;cursor:pointer;text-align:left}
#pcard .pcppl{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px}
#pcard .pcperson{display:flex;gap:10px;align-items:center;min-width:0;background:var(--panel2);border:1px solid var(--line);border-radius:12px;padding:6px 8px;text-align:left;color:var(--text)}
#pcard button.pcperson{cursor:pointer}
#pcard .pcav{position:relative;width:40px;height:40px;border-radius:50%;background:var(--bg);overflow:hidden;flex:0 0 40px;display:grid;place-items:center;color:var(--subtle);font-weight:700;font-size:14px}
#pcard .pcav i{font-style:normal}
#pcard .pcav img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
#pcard .pcpn{min-width:0;flex:1}
#pcard .pcpn b{display:block;font-size:13.5px}
#pcard .pcpn small{display:block;color:var(--subtle);font-size:12px}
#pcard .pcrates{display:flex;flex-wrap:wrap;gap:8px}
#pcard .pcrate{background:var(--panel2);border:1px solid var(--line);border-radius:10px;padding:5px 10px;font-size:13px;color:var(--subtle)}
#pcard .pcrate b{color:var(--text);font-size:15px;margin-right:2px}
#pcard .pcrow{display:flex;align-items:center;gap:12px;width:100%;background:none;border:0;border-radius:10px;color:var(--text);text-align:left;padding:8px 6px;font:inherit;cursor:pointer;min-height:44px}
#pcard .pcrow:hover{background:var(--panel2)}
#pcard .pcrt{flex:0 0 92px;color:var(--accent);font-size:12.5px;font-weight:700}
#pcard .pcrm{flex:1;min-width:0}
#pcard .pcrm b{display:block;font-size:14px}
#pcard .pcrm small{display:block;color:var(--subtle);font-size:12px}

/* 2.1.0 (DVR step 2): the red ● in the guide, the card's Record level (progcard.js), the Recordings page (recordings.js) */
.gmark.rec{color:#ff3b4a;font-size:12px;line-height:1}
.gmark.rec.now{animation:recpulse 1.4s ease-in-out infinite}
@keyframes recpulse{0%,100%{opacity:1}50%{opacity:.25}}
@media (prefers-reduced-motion:reduce){.gmark.rec.now,.recdot.now{animation:none}}
.hmi.rec>i{color:#ff4d5a}
.hmi>span.wrap{overflow-wrap:anywhere}
html.notowner .owner{display:none!important}
.livebar .recdotb{color:#ff4d5a}
.recpage{max-width:900px;margin:0 auto}
.recpage .recfree{margin:0 4px 10px}
.recpage .recfree.low{color:var(--warm)}
.recdown{background:#4b2530;border:1px solid #7d3c46;border-radius:var(--r);padding:12px 14px;margin:4px 0 12px;overflow-wrap:anywhere}
.recsec{margin-bottom:6px}
.recshow{margin-bottom:10px}
.recshown{display:flex;align-items:center;gap:8px;margin:10px 4px 6px;font-size:15px;font-weight:700;overflow-wrap:anywhere}
.recdot{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--accent);flex:0 0 9px}
.recdot.now{background:#ff3b4a;animation:recpulse 1.4s ease-in-out infinite}
.recitem{background:var(--panel);border-radius:var(--r);padding:10px 12px;margin-bottom:8px;min-width:0}
.rectitle{display:flex;align-items:center;gap:8px;font-weight:650;overflow-wrap:anywhere;min-width:0}
.rectitle>span{min-width:0;overflow-wrap:anywhere}
.recmeta,.recgoes,.recnote{margin-top:2px;font-size:12.5px;color:var(--subtle);overflow-wrap:anywhere}
.recgoes{color:var(--accent)}
.recclash{color:var(--warm);font-weight:700}
.recbtns{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.recbtns .btn{min-height:34px;white-space:normal;text-align:left;max-width:100%}
.recbtns .btn.pinned{border-color:var(--accent);color:var(--accent)}
.recempty{margin:4px 4px 12px}

/* ---------------------------------------------------------------- CBTV 2.2.0: Home + My Day, charts, Books (reader), Radio page */
.hsec[data-hs="md"] .tdhead{margin:0 0 8px}
.hsec[data-hs="md"] .mdnow{margin-top:6px}
.chbars{display:flex;flex-direction:column;gap:6px}
.chbar{display:flex;align-items:center;gap:8px;min-width:0}
.chbar .chlab{flex:0 0 92px;font-size:12.5px}
.chtrack{flex:1;position:relative;height:12px;background:rgba(255,255,255,.07);border-radius:6px;overflow:hidden}
.chtrack i{position:absolute;left:0;top:0;bottom:0;border-radius:0 4px 4px 0;background:var(--accent)}
.chtrack b{position:absolute;top:0;bottom:0;left:0;opacity:.9}
.chval{flex:0 0 auto;font-size:12px;color:var(--subtle);min-width:36px;text-align:right}
.chcols{display:flex;align-items:flex-end;gap:6px;height:calc(var(--h) + 34px);padding-top:16px}
.chcol{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;min-width:0;height:100%;position:relative}
.chcol .chstack{display:flex;flex-direction:column-reverse;width:100%;max-width:38px;gap:2px;justify-content:flex-start}
.chcol .chstack i{display:block;width:100%;border-radius:4px 4px 0 0;background:var(--accent);min-height:0}
.chcol .chstack i:not(:first-child){border-radius:4px 4px 0 0}
.chcol .chstack i:first-child{border-radius:0 0 2px 2px}
.chcol .chstack i:only-child{border-radius:4px 4px 2px 2px}
.chcolv{position:absolute;top:-16px;font-size:10.5px;color:var(--subtle)}
.chcoll{font-size:11px;color:var(--subtle);margin-top:4px;white-space:nowrap}
.chcol.today .chcoll{color:var(--accent);font-weight:700}
.chrings{display:flex;flex-wrap:wrap;gap:10px 14px}
.chring{display:flex;flex-direction:column;align-items:center;width:84px;text-align:center;font-size:12px;gap:2px}
.chring b{max-width:84px}
.chringv{fill:var(--text);font-size:13px;font-weight:700}
.chline{width:100%;display:block}
.chleg{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:6px;font-size:11.5px;color:var(--subtle)}
.chleg i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px;vertical-align:-1px}
.chday{position:relative;height:40px;margin:14px 0 4px;background:rgba(255,255,255,.05);border-radius:6px}
.chday .chdh{position:absolute;top:-14px;font-size:10px;color:var(--idle);transform:translateX(-50%)}
.chday i{position:absolute;top:8px;height:24px;border-radius:4px;opacity:.9;min-width:3px;box-shadow:0 0 0 2px var(--panel)}
.chday .chnow{position:absolute;top:0;bottom:0;width:2px;background:var(--hot);box-shadow:0 0 6px var(--hot)}
.chtip{position:fixed;z-index:200;background:#121014;color:var(--text);border:1px solid var(--line);border-radius:8px;padding:6px 9px;font-size:12px;max-width:280px;pointer-events:none;box-shadow:0 6px 24px rgba(0,0,0,.5)}
.bkkinds{display:flex;gap:4px;margin-left:10px}
.bkboth{position:absolute;right:4px;bottom:4px;font-size:11px;background:rgba(0,0,0,.55);border-radius:6px;padding:1px 4px}
.mcart.book{position:relative}
.myst.page .mystbody.page{max-height:none;border:0;padding:0}
.myst.page .mystbar{position:sticky;bottom:calc(64px + env(safe-area-inset-bottom));background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:8px 10px;margin-top:10px}
/* the e-reader */
.rdov{position:fixed;inset:0;z-index:120;display:flex;flex-direction:column;background:#141018;color:#e6e0ea}
.rdov[data-theme="sepia"]{background:#f1e6cf;color:#3a2f22}
.rdov[data-theme="paper"]{background:#fbfbf8;color:#1d1d1d}
.rdov[data-theme="sepia"] .btn,.rdov[data-theme="paper"] .btn{background:rgba(0,0,0,.07);color:inherit;border-color:rgba(0,0,0,.15)}
.rdtop,.rdbot{display:flex;align-items:center;gap:8px;padding:8px 12px;flex:0 0 auto}
.rdtop{padding-top:calc(8px + env(safe-area-inset-top))}
.rdbot{padding-bottom:calc(8px + var(--sab))}
.rdtop,.rdbot{padding-left:calc(12px + var(--sal));padding-right:calc(12px + var(--sar))}      /* 2.4.0: the reader's bars and text inside the side insets */
.rdtitle{font-weight:700;font-size:14px;min-width:0}
.rdbody{flex:1;position:relative;min-height:0}
.rdview{position:absolute;top:0;bottom:0;left:calc(16px + var(--sal));right:calc(16px + var(--sar));overflow:hidden}
.rdpdf{height:100%;overflow:auto;display:flex;align-items:flex-start;justify-content:center;padding:4px}
.rdpdf canvas{background:#fff;box-shadow:0 2px 12px rgba(0,0,0,.4);border-radius:3px}
.rdzone{position:absolute;top:0;bottom:0;width:16px;cursor:pointer}
.rdzone.l{left:var(--sal)}.rdzone.r{right:var(--sar)}
.rdprog{flex:1;min-width:0}
.rdprog input[type=range]{width:100%;margin:0}
.rdline{display:flex;font-size:11px;opacity:.75;gap:8px}
.rdpanel{position:absolute;top:8px;right:calc(12px + var(--sar));width:min(360px,calc(100% - 24px - var(--sal) - var(--sar)));max-height:calc(100% - 16px);overflow:auto;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:12px;padding:12px 14px;box-shadow:0 10px 40px rgba(0,0,0,.5);z-index:3}
.rdpanel h3{margin:0 0 8px}
.rdtoc{display:flex;flex-direction:column;gap:2px}
.rdtoc button{text-align:left;background:none;border:0;color:var(--text);padding:7px 8px;border-radius:8px;cursor:pointer;font-size:13.5px}
.rdtoc button.sub{padding-left:22px;font-size:12.5px;color:var(--subtle)}
.rdtoc button:hover{background:rgba(255,255,255,.06)}
.rdrow{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0}
.rdsw{border:2px solid transparent;border-radius:8px;padding:5px 10px;cursor:pointer;font-size:12.5px}
.rdsw.on{border-color:var(--accent)}
.rdmsg{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:rgba(0,0,0,.6);color:#fff;padding:10px 16px;border-radius:10px;font-size:14px;max-width:80%;text-align:center}
html.rdon .tabs,html.rdon .mpbar{display:none}

/* ---------------------------------------------------------------- CBTV 2.2.1: the player's drawers - channels + recent (left), Home (right), the second levels */
.wstage.dr-home .wdrawer.r{transform:none}
.wstage.dr-home .wback{opacity:.95;pointer-events:auto}
.wstage.dr-guide2 .wback,.wstage.dr-home2 .wback{opacity:0;pointer-events:none}      /* the second level has its own ✕ */
.wstage.dr-home .wback{left:calc(14px + env(safe-area-inset-left));right:auto}
@media (max-width:600px){.wstage.dr-home .wback,.wstage.dr-guide2 .wback,.wstage.dr-home2 .wback{opacity:0;pointer-events:none}}
.wdhead .wdhint{font-size:10.5px;letter-spacing:.04em;text-transform:none;color:rgba(255,255,255,.4);margin-left:8px;font-weight:400}
.wdstrip{padding:0 8px 6px}
.wdlab{font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.5);padding:4px 10px 4px}
.wdchips{display:flex;flex-wrap:wrap;gap:6px;padding:0 10px 6px}
.wdchip{background:rgba(255,255,255,.12);color:#fff;border:0;border-radius:999px;padding:5px 11px;font:inherit;font-size:12.5px;cursor:pointer;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wdchip b{color:var(--accent)}
.wdchip.hot{background:var(--accent);color:var(--ink)} .wdchip.bad{background:var(--bad);color:#fff}
.wdq{padding:0 8px 8px}
.wdq input,.wover2 .wdhead input{width:100%;background:rgba(255,255,255,.1);color:#fff;border:1px solid rgba(255,255,255,.14);border-radius:999px;padding:7px 12px;font:inherit;font-size:13.5px}
.wdq input::placeholder,.wover2 .wdhead input::placeholder{color:rgba(255,255,255,.45)}
.wdhome{color:#fff;padding-bottom:10px}
.wdclock{padding:4px 10px 10px}
.wdclock b{display:block;font-size:34px;line-height:1.05;font-weight:800}
.wdclock span{display:block;color:rgba(255,255,255,.65);font-size:12.5px;margin-top:2px}
.wdnext{display:flex;flex-direction:column;gap:2px;margin:4px 8px 8px;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.08)}
.wdnext.live{box-shadow:inset 0 0 0 2px var(--accent)}
.wdnext .wdlab{padding:0}
.wdrow2{display:flex;align-items:center;gap:8px;padding:6px 10px;color:#fff;font-size:13.5px;min-width:0}
.wdrow2.live{background:rgba(255,209,102,.14);border-radius:10px}
.wdrow2 .ell{flex:1;min-width:0}
.wdrow2 .wdtime{flex:0 0 64px;color:var(--accent);font-weight:700;font-size:12.5px}
.wdrow2 .bad{color:var(--bad)}
.wdrow2 .lv{width:8px;height:18px;border-radius:4px;flex:0 0 8px;background:var(--idle)} .wdrow2 .lv.critical{background:var(--bad)} .wdrow2 .lv.warning{background:var(--warn)} .wdrow2 .lv.info{background:#6bb6ff}
.wddot{width:9px;height:9px;border-radius:50%;flex:0 0 9px}
.wdcams{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:4px 8px}
.wh2body .wdcams{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
.wdcam{position:relative;border:0;padding:0;border-radius:10px;overflow:hidden;background:#000;aspect-ratio:16/9;cursor:pointer}
.wdcam img{width:100%;height:100%;object-fit:cover;display:block}
.wdcam span{position:absolute;left:6px;bottom:4px;color:#fff;font-size:11.5px;font-weight:700;text-shadow:0 1px 3px #000}
.wdfoot{padding:8px 10px 0;color:rgba(255,255,255,.45)}
/* level 2 */
.wover2{position:absolute;top:0;bottom:0;width:min(1100px,96vw);background:rgba(22,17,21,.92);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);transition:transform .28s;z-index:4;display:flex;flex-direction:column;color:#fff;padding-top:calc(6px + var(--sat))}
.wover2.l{left:0;transform:translateX(-105%);padding-left:env(safe-area-inset-left)}
.wover2.r{right:0;transform:translateX(105%);padding-right:env(safe-area-inset-right)}
.wstage.dr-guide2 .wover2.l,.wstage.dr-home2 .wover2.r{transform:none}
.wover2 .wdhead{flex:0 0 auto;gap:10px;padding:8px 12px}
.wover2 .wdhead input{width:auto;flex:1;min-width:120px;max-width:340px}
.wover2 .wdhead .wdfil{padding:0;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.wover2 .wdhead .x.back{margin-left:0}
.wg2body{flex:1;overflow:auto;position:relative;background:var(--panel);margin:0 10px 10px;border-radius:12px}
.wg2body .ggrid{min-width:100%}
.wg2body .grow-line.sel .gch{box-shadow:inset 0 0 0 2px var(--accent)}
.wg2body .gch{cursor:pointer}
.wg2body .gp.hit{background:rgba(255,209,102,.22);box-shadow:inset 0 0 0 1px var(--accent)}
.wh2body{flex:1;overflow:auto;padding:0 10px 10px}
.wh2grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:10px}
.wh2sec{background:rgba(255,255,255,.06);border-radius:12px;padding:10px 6px}
.wh2sec h4{margin:0 10px 6px;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.6)}
.wh2sec .chday{margin:16px 10px 8px}
@media (max-width:600px){.wover2{width:100vw}.wover2 .wdhead{flex-wrap:wrap}.wover2 .wdhead input{max-width:none;order:5;flex-basis:100%}}
.gp.hit{background:rgba(255,209,102,.22);box-shadow:inset 0 0 0 1px var(--accent)}      /* 2.2.1: a guide search match */
.mvalpha{display:inline-flex;align-items:center;gap:6px;color:#fff}.mvalpha input{width:90px}

/* ---------------------------------------------------------------- CBTV 2.2.2: themes */
.thgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(150px,100%),1fr));gap:8px}
.thcard{display:flex;flex-direction:column;align-items:flex-start;gap:4px;background:var(--panel2);border:2px solid var(--line);border-radius:12px;padding:8px;color:var(--text);cursor:pointer;text-align:left;font:inherit}
.thcard.on{border-color:var(--accent)}
.thcard b{font-size:13px}
.thsw{display:flex;align-items:flex-end;gap:3px;width:100%;height:34px;border-radius:8px;padding:4px;position:relative;overflow:hidden}
.thsw b{position:absolute;inset:0 0 0 55%;}
.thsw s{display:block;width:14px;height:14px;border-radius:4px;text-decoration:none;position:relative;z-index:1}
html[data-theme]:not([data-theme="plum"]) .tabs button.on{color:var(--accent)}

/* 2.2.4: the CBTVm graphs */
.hbgraphs{padding:12px 14px}
.hbgr{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:14px 22px}
.hbg{min-width:0}
.hbgt{font-weight:700;margin-bottom:4px}

/* 2.3.0: the player's host (wdock.js) - docked over a page's .wslot, or a small movable picture anywhere in the app */
.wslot{width:100%;aspect-ratio:16/9;min-width:0;border-radius:var(--r);background:#000}      /* 2.4.0 (B3): the 640-999 "own full row" rule is gone (it also hit the Guide's slot); see part B at the end */
.whost{position:fixed;z-index:20;left:0;top:0;width:0;height:0;transition:transform .25s ease}
.whost.off{display:none}
.whost.rpip{visibility:hidden;pointer-events:none}      /* 2.5.0 (Task 5b): the video is in the iPhone's own picture in picture: none of CBTV's small picture shows. visibility, not display: the <video> keeps its box (wdock.js still places it) */
.whost.full{position:static;transition:none}
.whost .wstagewrap{position:static;padding:0;background:none;z-index:auto}
.whost.dock .wstagewrap,.whost.dock .wstage{height:100%}
.whost.dock .wstage{aspect-ratio:auto}
.whost.pip{z-index:60;border-radius:12px;box-shadow:0 12px 40px rgba(0,0,0,.6);background:var(--panel);overflow:visible;touch-action:none}
.whost.pip .wstage{border-radius:0 0 12px 12px;aspect-ratio:auto;height:calc(100% - var(--pipbar,28px))}
.whost.dragging{transition:none;cursor:grabbing}
.wpipbar{display:none;height:var(--pipbar,28px);align-items:center;gap:2px;padding:0 4px 0 10px;font-size:12px;font-weight:700;cursor:grab;user-select:none;border-radius:12px 12px 0 0;background:var(--panel2)}
.whost.pip .wpipbar{display:flex}
.wpipbar .wpiptitle{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}
.wpipbar button{background:none;border:0;color:var(--text);font:inherit;font-size:15px;line-height:1;padding:4px 7px;border-radius:6px;cursor:pointer}
.wpipbar button:hover{background:var(--panel)}
.wpiphandle{display:none;position:absolute;top:50%;transform:translateY(-50%);width:26px;height:64px;border:0;border-radius:10px;background:var(--accent);color:var(--ink,#221f21);font-size:14px;cursor:pointer;z-index:2}
.whost.tuck-l .wpiphandle{display:block;right:0;border-radius:0 10px 10px 0}
.whost.tuck-r .wpiphandle{display:block;left:0;border-radius:10px 0 0 10px;transform:translateY(-50%) rotate(180deg)}
.whost.tuck-l .wstage,.whost.tuck-r .wstage,.whost.tuck-l .wpipbar,.whost.tuck-r .wpipbar{pointer-events:none}
/* the Guide's top: the docked picture top-left, what's on and the keys to the right; the grid scrolls underneath.
   2.4.0 (part B): this is the stacked layout (a phone; a computer's page of 1000 px or more). 640-999 is side by side (part B, end of file).
   The picture is never taller than 38 % of the screen; the block sticks only while it is at most 40 % of it (wdock.js tvFit: .nostick). */
.gtop{display:grid;gap:12px;grid-template-columns:auto minmax(0,1fr);align-items:start;margin-bottom:10px;position:sticky;top:var(--hdrh);z-index:6;background:var(--bg);padding-bottom:6px}
.gtop.nostick{position:relative;top:auto}
html[data-wdock=s] .gtop{--gslot:250px}
html[data-wdock=m] .gtop{--gslot:340px}
html[data-wdock=l] .gtop{--gslot:460px}
html[data-wdock=s]{--gpw:60cqw;--gpk:30cqw}
html[data-wdock=m]{--gpw:80cqw;--gpk:40cqw}
html[data-wdock=l]{--gpw:100cqw;--gpk:50cqw}
.gslot{width:min(var(--gslot,340px),calc(38vh * 16 / 9));width:min(var(--gslot,340px),calc(38dvh * 16 / 9))}
.gside{display:flex;flex-direction:column;gap:8px;min-width:0}
.gside .winfo{padding:10px 12px}
.gside .winfo .show{font-size:18px}
.gsizes{gap:6px;align-items:center}
@container tv (max-width:639.98px){.gtop{grid-template-columns:minmax(0,1fr)}.gslot{width:min(var(--gpw,80cqw),calc(38vh * 16 / 9));width:min(var(--gpw,80cqw),calc(38dvh * 16 / 9))}}      /* a phone: Small / Medium / Large = 60 / 80 / 100 % of the page, never taller than 38 % of the screen */
html.wfull .gtop{position:static;z-index:auto}
.gq{min-width:140px;flex:1;max-width:320px}
#tab-guide .gwrap{max-height:max(240px,calc(100vh - var(--hdrh) - var(--gstick,0px) - var(--gbarh,54px) - var(--tvpb,84px) - 6px));max-height:max(240px,calc(100dvh - var(--hdrh) - var(--gstick,0px) - var(--gbarh,54px) - var(--tvpb,84px) - 6px))}      /* 2.4.0 (B2): what is left under the stuck block (if it sticks) and the Earlier/Now/Later bar, never under 240 px (it was 0 at 951x543) */
/* 2.3.0: Home's All / Personal / Work */
.hscope{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:-4px 0 12px}
.hscope .hscopenote{margin-left:6px}
/* 2.3.1 (Kyle): the channel drawer's RECENT chips - one row that scrolls sideways and fades out at the drawer's edge, never past it */
#wDrRecentStrip{max-width:100%;overflow:hidden}
#wDrRecentStrip .wdchips{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;padding-right:48px;scrollbar-width:none;-webkit-overflow-scrolling:touch;-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 56px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 56px),transparent)}
#wDrRecentStrip .wdchips::-webkit-scrollbar{display:none}
#wDrRecentStrip .wdchip{flex:0 0 auto;max-width:200px}
/* 2.3.2: the Skip button while it counts down to skipping by itself (tap = keep watching) */
.wskip.arming{border-color:var(--accent);color:var(--accent);animation:wskipPulse 1s ease-in-out infinite alternate}
.wskip.arming:hover{background:var(--accent);color:var(--ink)}
@keyframes wskipPulse{from{box-shadow:0 0 0 0 rgba(255,209,102,.0)}to{box-shadow:0 0 0 6px rgba(255,209,102,.25)}}

/* ---------------------------------------------------------------- CBTV 2.4.0 (iPhone Duo) part A: touch first, short screens
   BRIEF decisions 1 and 3. Mouse-only behaviour (pop-overs, hover reveals, small rows) keys on (hover:hover) and (pointer:fine);
   a finger gets always-visible actions and 44-px targets at every width. Short = 500 px tall or less (the folded Duo sideways is
   340; the open Duo sideways, 543, is not short). These come last so they win over the older rules of the same weight. */
:root{--pipbar:28px}      /* the in-app PiP's bar (wdock.js reads it to size and clamp the picture) */

/* A2, P1: what a mouse finds by hovering is simply there on a touch screen */
@media (hover:none){
  .mrow .macts{display:flex}                                  /* Inbox rows' quick actions (were hover-only above 700 px) */
  .mact{width:34px;height:34px}
  .camimg .camplay{opacity:.6}                                /* Cameras: the ▶ on each picture */
  .mvtile .mvbtns{opacity:.9;pointer-events:auto}             /* Multiview: each picture's buttons without a first tap to select it */
  button.tdcheck::after{content:'✓';position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:900;opacity:.35}      /* to-dos: the circle shows its ✓ */
}

/* A4: 44-px targets for a finger (Apple's minimum). The boxes grow; the type and the layout stay as they were. */
@media (pointer:coarse){
  :root{--pipbar:44px}
  .btn.sm{min-height:44px}                                    /* every small button: the reader's ‹ › Contents Aa Close, Home's Customize, ... */
  .btn.sm::before{content:"";display:block;width:44px;height:0}      /* ...and at least 44 wide. Not min-width: that would let a flex row squeeze a button below its words */
  a.btn.sm{display:inline-block;padding-top:13px;padding-bottom:13px;line-height:16px}      /* (a link has no centring of its own) */
  .top{padding-top:calc(6px + var(--sat));padding-bottom:6px}  /* the header stays 57 px tall with 44-px buttons in it */
  .top .iconbtn{min-width:44px;min-height:44px;padding:0 8px}  /* the bell and the gear */
  .logobtn{min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center}
  .groupnav button{min-height:44px}                           /* the pills under the header (Channels / Guide / Remote ...) */
  .wkey{min-height:44px}                                      /* the player's keys */
  .wedge.l,.wedge.r{width:44px}                               /* the player's edge tabs */
  .wedge.t{min-height:44px}
  .wdhead .x,.wmtabs .x{min-height:44px;min-width:44px;flex-shrink:0}      /* the drawers' close / back buttons */
  .wpipbar{padding-left:8px}
  .wpipbar button{min-width:44px;height:44px;font-size:17px}  /* the PiP's ‹ › ⤢ ✕ */
  .whost.narrow .wpiptitle{display:none}                      /* (a picture under 260 px: the four buttons, no title) */
}
.ellist{container:ellist / inline-size}
@media (pointer:coarse){@container ellist (max-width:320px){.ellist .it{flex-wrap:wrap}.ellist .it>.grow{flex-basis:100%}}}      /* Studio's layer rows in a narrow list (⅓ Split View; 2.4.0 part B: the settings column beside the stage on the open screen): the name over its four 44-px buttons */

/* A5: short screens - a slimmer header and tab bar (together under 22 % of a 340-px screen), and nothing else stuck on top of them */
@media (max-height:500px){
  :root{--hdr:44px}
  .top{padding-top:var(--sat);padding-bottom:0;gap:8px}
  .logo{height:30px}
  .brand{font-size:16px}
  .setnav{position:static}                                    /* Settings: the area pills scroll away with the page */
  #tab-remote .chlist{max-height:none;overflow-y:visible}     /* Remote: the channel list is part of the page, not a small box that scrolls inside it */
  .wedge.l,.wedge.r{top:34%}                                  /* the player's side tabs sit above its (taller, 44-px) controls */
}

/* A1: a finger gets the sheet at every width; on a wide screen it is a centred sheet, not a 950-px strip */
@media (min-width:700px){#holdMenu:not(.pop) .hmsheet{width:min(600px,100%);margin:0 auto;border-left:1px solid var(--line);border-right:1px solid var(--line)}}
@media (max-height:500px) and (max-width:899px){              /* (from 900 px the tabs are the side rail) */
  .tabs button{flex-direction:row;justify-content:center;gap:5px;padding:6px 2px 6px;font-size:11px}
  .tabs button i{font-size:15px}
  main{padding-bottom:calc(52px + var(--sab))}
  .mpbar{bottom:calc(36px + var(--sab))}
  .toast{bottom:calc(42px + var(--sab))}
  .verline{margin-bottom:calc(46px + var(--sab))}
}

/* P3: on the sign-in screen a toast (the theme's "Halloween look") shows at the top, clear of the PIN box and its hint */
body:has(#login:not(.hidden)) .toast{top:calc(12px + var(--sat));bottom:auto}

/* ---------------------------------------------------------------- CBTV 2.4.0 (iPhone Duo) part B: TV side by side
   Kyle chose "side by side" for the open screen. The Guide and Channels pages are CSS containers ("tv"), so their layout follows the
   page's own width (BRIEF decision 2: the side rail and Split View count), not the window's:
   - under 640 px: the phone layout - stacked, the picture sized from the screen's height, the Guide's card two lines with More;
     short and narrow (500 px tall or less): a strip - a small picture with the card beside it;
   - 640-999 px: side by side - the picture column (Small / Medium / Large = 34 / 44 / 54 % of the page; the grid / list keeps at least
     340 px; the picture leaves 56 px of its column for what's on) beside the grid or the channel list. Each column scrolls on its own;
     the picture never scrolls away. The columns fill the screen from under the group pills to the tab bar (wdock.js tvFit: --tvtop,
     --tvbot; html.tvfill gives main that bottom padding, so the page itself doesn't scroll);
   - 1000 px and up (a computer): as in 2.3 - Kyle's picture top-left with what's on beside it, the grid under it.
   The <video> never moves: it lives in #wHost (wdock.js), which sits over whichever .wslot is shown. */
#tab-guide,#tab-watch{container:tv / inline-size}
:root{--tvpct:.44}
html[data-wdock=s]{--tvpct:.34}
html[data-wdock=l]{--tvpct:.54}
html.tvfill main{padding-bottom:var(--tvbot,60px)}            /* side by side, and the Guide at any width: the page ends at the tab bar, */
html.tvfill .verline:not(:has(#verNow)){display:none}          /* so the grid / columns reach it (the version line shows here only to offer an update) */
.watch{gap:0}                                                  /* (the 14 px between the picture block and what follows is .wmore's margin now) */
.wmain,.wmore{min-width:0}
.wmore{margin-top:14px}
.wq{flex:1;min-width:120px}

/* the card's More / Less: only where the card is compact (below) */
.wimore{display:none}
.winfo.open .wm1,.winfo:not(.open) .wm2{display:none}

/* Earlier / Now / Later, the search and the filters: one row that scrolls sideways (a phone, and the grid's column side by side),
   instead of three wrapped rows that took the grid's room */
@container tv (max-width:999.98px){
  .gbar{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
  .gbar::-webkit-scrollbar{display:none}
  .gbar>*{flex:0 0 auto}
  .gbar .gq{flex:1 0 150px;min-width:150px}
  .gbar .grow{flex:1 1 0;min-width:0}
}

/* a phone: the Guide's card is two lines (the channel, what's on) and More; the picture (Small / Medium / Large = 60 / 80 / 100 %)
   is never taller than 38 % of the screen (the rule is with .gslot above); the block sticks only while it is at most 40 % */
@container tv (max-width:639.98px){
  #gInfo{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;row-gap:3px;align-items:center}
  #gInfo>*{grid-column:1;min-width:0}
  #gInfo:not(.open)>:nth-child(n+3):not(.wimore){display:none}
  #gInfo .wimore{display:inline-block;grid-column:2;grid-row:1 / span 2;align-self:center;justify-self:end}
  #gInfo .show{font-size:16px}
  .gside:not(:has(#gInfo.open)) .gsizes{display:none}          /* Small / Medium / Large open with More, with the keys */
  .wtop .wslot{width:min(100%,calc(38vh * 16 / 9));width:min(100%,calc(38dvh * 16 / 9))}      /* Channels (B1): the same height rule */
}

/* short and narrow (a phone held sideways in a narrow window; Split View on a short screen): the strip - a small picture with the
   card beside it (two lines and More), so the grid / list keeps the screen */
@media (max-height:500px){
  @container tv (max-width:639.98px){
    .gtop,.wtop{grid-template-columns:auto minmax(0,1fr);align-items:start}
    .gslot{width:min(var(--gpk,40cqw),calc(34vh * 16 / 9));width:min(var(--gpk,40cqw),calc(34dvh * 16 / 9))}
    .wtop .wslot{width:min(40cqw,calc(34vh * 16 / 9));width:min(40cqw,calc(34dvh * 16 / 9))}
    .wtop .wclock{grid-column:1 / -1}
    #wInfo{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;row-gap:3px;align-items:center;padding:10px 12px}
    #wInfo>*{grid-column:1;min-width:0}
    #wInfo:not(.open)>:nth-child(n+3):not(.wimore){display:none}
    #wInfo .wimore{display:inline-block;grid-column:2;grid-row:1 / span 2;align-self:center;justify-self:end}
    #wInfo .show{font-size:16px}
  }
}

/* the open screen: side by side */
@container tv (min-width:640px) and (max-width:999.98px){
  .gpage,.watch{
    --tvh:calc(100dvh - var(--tvtop,130px) - var(--tvbot,60px));
    --tvl:max(180px,min(calc(var(--tvpct) * 100%),calc((var(--tvh) - 56px) * 16 / 9),calc(100% - 352px)));
    display:grid;grid-template-columns:var(--tvl) minmax(0,1fr);column-gap:12px;row-gap:0;
    height:calc(100vh - var(--tvtop,130px) - var(--tvbot,60px));height:var(--tvh)}
  /* the Guide: the picture column (picture, what's on, then, the keys, the sizes) | Earlier/Now/Later over the grid */
  .gpage{grid-template-rows:auto minmax(0,1fr)}
  .gtop,.gtop.nostick{grid-column:1;grid-row:1 / span 2;display:flex;flex-direction:column;align-items:stretch;gap:10px;position:relative;top:auto;z-index:auto;margin:0;padding:0 0 6px;background:none;
    min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  .gslot{width:100%;flex:none;position:sticky;top:0;z-index:2}
  .gside{flex:none}
  .gbar{grid-column:2;grid-row:1;margin-bottom:8px}
  #tab-guide .gwrap{grid-column:2;grid-row:2;max-height:none;min-height:0}
  /* Channels: the picture column (picture, what's on, the clock, the page buttons, Continue watching) | the filters over the list */
  .watch{grid-template-rows:minmax(0,1fr)}
  .wmain{grid-column:1;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:6px}
  .wtop{grid-template-columns:minmax(0,1fr);gap:10px}
  .wtop .wslot{position:sticky;top:0;z-index:2}
  .wmore{margin-top:10px}
  .wlist{grid-column:2;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  .wlist .wfil{position:sticky;top:0;z-index:3;background:var(--bg);flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:8px}
  .wlist .wfil::-webkit-scrollbar{display:none}
  .wlist .wfil>*{flex:0 0 auto}
  .wlist .wfil .wq{flex:1 0 150px}
  .wlist .card.pad0.chlist{max-height:none}                    /* the column scrolls, not a box inside it */
}
html.wfull .gtop{position:static}
/* side by side on a short screen (500 px tall or less: the folded Duo sideways, a phone sideways): the picture column's width comes from
   its height - the picture at most ~45 % of the column's height (Small / Medium / Large still apply, capped by this) - and the column
   holds just that picture, one line of what's on and the More row (the keys and the sizes open with More; the clock is in the header);
   the grid / list column gets the rest of the width (74 % at 678x340) */
@media (max-height:500px){
  @container tv (min-width:640px) and (max-width:999.98px){
    .gpage,.watch{--tvl:max(140px,min(calc(var(--tvpct) * 100%),calc(var(--tvh) * .45 * 16 / 9),calc(100% - 352px)))}
    #gInfo,#wInfo{display:flex;flex-direction:column;gap:6px;padding:8px 10px}
    #gInfo:not(.open)>:not(.show):not(.wimore),#wInfo:not(.open)>:not(.show):not(.wimore){display:none}
    #gInfo:not(.open) .show,#wInfo:not(.open) .show{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    #gInfo .wimore,#wInfo .wimore{display:inline-block;align-self:flex-start}
    .gside:not(:has(#gInfo.open)) .gsizes{display:none}
    .wtop .wclock{display:none}
  }
}
.whost.dock.small .wover{font-size:12.5px;padding:6px;gap:6px}      /* a small docked picture: "Select a channel to watch it here" still fits */
.whost.dock.small .wover .btn{padding:5px 9px;font-size:12px}

/* Studio (the FLEX designer): the stage beside its settings from a page of 640 px (the old line was a 1100-px window, which stays) */
#tab-flex{container:fx / inline-size}
@media (max-width:1099.98px){@container fx (min-width:640px){.fx{grid-template-columns:minmax(0,1fr) minmax(300px,42%)}.fxleft{align-self:start}}}

/* ---------------------------------------------------------------- CBTV 2.4.0 (iPhone Duo) part C: side by side for the Inbox, Home,
   Settings, Services and the Remote; the group pills in the header on short screens.
   Each page is a CSS container, so "the open screen" is the page's own width of 640 px or more (BRIEF decision 2: the side rail and
   Split View count) - the same line as App.wide() in the JS. Under 640 each page is its phone layout, as before. Blocks that sit beside
   a list and fill the screen (the Inbox's message pane, the Settings / Services lists, the Remote's channels) stick under the header and
   end above the bottom tab bar (--tabsh, app.js). */
#tab-home{container:home / inline-size}
#tab-inbox{container:inbox / inline-size}
#tab-settings{container:set / inline-size}
#tab-services{container:svc / inline-size}
#tab-remote{container:rem / inline-size}
#tab-stats,#panel{container-type:inline-size}                 /* (.two-col: the Stats page, and a Services panel by its own width) */

/* the Inbox: the list (about 40 %, at least 300 px) and the open email / conversation / call beside it, in place of the dialog */
.ibpane{display:none}
@container inbox (min-width:640px){
  .ibpage{display:grid;grid-template-columns:minmax(300px,41%) minmax(0,1fr);column-gap:14px;align-items:start}
  .iblist{min-width:0;container:iblist / inline-size}
  .ibpane{display:flex;flex-direction:column;position:sticky;top:calc(var(--hdrh) + 10px);min-width:0;
    height:calc(100vh - var(--hdrh) - var(--tabsh,60px) - 24px);height:calc(100dvh - var(--hdrh) - var(--tabsh,60px) - 24px);min-height:200px;
    background:var(--panel);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
}
.ibpane .ibview{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding:14px 16px 16px;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;overflow-wrap:anywhere}
.ibpane .ibview>h3:first-child{margin:0 44px 10px 0;font-size:19px}
.ibpane .ibview .mbody{max-height:none}                       /* (the pane scrolls as one; in the dialog the body is its own box, as before) */
.ibpane .ib-text{display:flex;flex-direction:column}
.ibpane .ib-text .tdthread{flex:1 1 auto;min-height:96px;max-height:none}
.ibpane .ib-text .tdreply textarea{flex:1;min-width:0}
.ibx{position:absolute;top:4px;right:4px;z-index:2;width:44px;height:44px;border:0;border-radius:50%;background:var(--panel);box-shadow:0 0 0 1px var(--line);color:var(--subtle);font-size:17px;cursor:pointer}
.ibx:hover{color:var(--text);background:var(--panel2)}
/* the list beside the message: the account buttons and the section chips are one row each that scrolls sideways (on a phone they wrap, as before) */
.mailaccts{display:contents}
@container inbox (min-width:640px){
  .mailaccts{display:flex;gap:8px;flex:1 0 100%;min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
  .mailaccts::-webkit-scrollbar,.mailgrps::-webkit-scrollbar{display:none}
  .mailaccts>.btn{flex:0 0 auto}
  .mailtools{flex:1 1 100%}
  .mailtools .mailq{flex:1 1 120px;width:auto;min-width:0}
  .mailgrps{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;padding:2px 0}
  .mailgrps .chip{flex:0 0 auto}
}
.ibpane:not(.has) .ibx,.ibpane.has .ibempty{display:none}
.ibempty{margin:auto;padding:24px;text-align:center;color:var(--subtle)}
.ibempty i{display:block;font-style:normal;font-size:34px;line-height:1;opacity:.45;margin-bottom:8px}
.lrow.ibon,.lrow.mrow.ibon{background:var(--panel2);box-shadow:inset 3px 0 0 var(--accent)}      /* the open one's row */
@container iblist (max-width:419.98px){#tdMail .mrow .av{display:none}}      /* a list column of 300-420 px: an email's initials give way to its sender and subject (the row keeps ✓ ↩ ⬇) */
.mact{color:var(--subtle)}.mact:hover{color:var(--ink)}       /* the row's ✓ ↩ ⬇ were drawn dark on dark (they only showed lit up on a mouse's hover; on touch they are always there) */

/* Remote: the channel list beside Now playing (it was a 1000-px window); the list sticks and scrolls on its own */
@container rem (min-width:640px){
  .remote{grid-template-columns:clamp(260px,40%,380px) minmax(0,1fr);align-items:start}
  .remote>div:first-child{position:sticky;top:calc(var(--hdrh) + 8px);z-index:2}
  #tab-remote .chlist,#tab-remote .card.pad0.chlist{overflow-y:auto;
    max-height:calc(100vh - var(--hdrh) - var(--tabsh,0px) - 84px);max-height:calc(100dvh - var(--hdrh) - var(--tabsh,0px) - 84px)}
}

/* Settings: the areas down the left, the chosen area's page beside it (settings.js setArea: .setsec.cur) */
.setnav button.on{background:var(--accent);border-color:var(--accent);color:var(--ink)}
@container set (min-width:640px){
  .setpage{max-width:1100px;display:grid;grid-template-columns:clamp(170px,26%,230px) minmax(0,1fr);column-gap:16px;align-items:start}
  .sethead{grid-column:1 / -1}
  .setnav{grid-column:1;grid-row:2;flex-direction:column;gap:4px;position:sticky;top:calc(var(--hdrh) + 10px);z-index:2;margin:0;padding:0;background:none;
    max-height:max(160px,calc(100vh - var(--navtop,calc(var(--hdrh) + 10px)) - var(--tabsh,0px) - 12px));max-height:max(160px,calc(100dvh - var(--navtop,calc(var(--hdrh) + 10px)) - var(--tabsh,0px) - 12px));
    overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
  .setnav button{flex:0 0 auto;width:100%;min-height:44px;text-align:left;border-radius:10px;padding:10px 14px;font-size:14px}
  .setsec{grid-column:2;grid-row:2;margin-bottom:0}
  .setsec:not(.cur){display:none}
}

/* Services: the panels down the left (Channels ... Storage, This Mac), the chosen panel beside them; on a phone the row that scrolls sideways */
@container svc (min-width:640px){
  .svcpage{display:grid;grid-template-columns:clamp(150px,24%,210px) minmax(0,1fr);column-gap:16px;align-items:start}
  .svcpage>.subnav{flex-direction:column;gap:4px;margin:0;padding:0;position:sticky;top:calc(var(--hdrh) + 10px);z-index:2;
    max-height:max(160px,calc(100vh - var(--navtop,calc(var(--hdrh) + 10px)) - var(--tabsh,0px) - 12px));max-height:max(160px,calc(100dvh - var(--navtop,calc(var(--hdrh) + 10px)) - var(--tabsh,0px) - 12px));
    overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
  .svcpage>.subnav button{width:100%;min-height:44px;text-align:left;padding:10px 14px;font-size:14px}
  .svcpage>#panel{min-width:0}
}

/* short screens (500 px tall or less): the group pills are in the header line (app.js gnPlace) - 44-px targets, a slimmer pill drawn inside */
.top .groupnav{flex:0 1 auto;min-width:0;align-self:stretch;align-items:center;gap:2px;margin:0;padding:0}
.top.gnin .brandw{display:none}
.top.gnin .hdr-clock{white-space:nowrap;flex-shrink:0}        /* (the pills take the room, never the clock's: "7:00 PM" stays on one line) */
.top .groupnav button{position:relative;z-index:0;min-height:44px;padding:0 11px;border:0;background:none;font-size:12.5px;color:var(--subtle)}
.top .groupnav button::before{content:"";position:absolute;inset:6px 1px;z-index:-1;border-radius:999px;border:1px solid var(--line);background:var(--panel)}
.top .groupnav button.on{background:none;color:var(--ink)}
.top .groupnav button.on::before{background:var(--accent);border-color:var(--accent)}
.top .groupnav .gback{color:var(--accent)}
@media (max-height:500px){main{padding-top:8px}}              /* (and the page starts a little higher; wdock.js tvFit leaves 4 px, not 10, above the tab bar) */

/* touch (BRIEF decision 1): 44-px targets on these pages - the Inbox (and its message, in the pane or the dialog), Home, Settings, Services,
   the Remote. A box grows where that costs nothing; inside a row that must not get taller only the part you can tap does (negative
   margins, or a transparent border outside the drawn pill), so the look stays as it was */
@media (pointer:coarse){
  .setnav button,#tab-services .subnav button{min-height:44px}
  .setsec{scroll-margin-top:calc(var(--hdrh) + 66px)}         /* (the pills under the header are 44 px now) */
  :is(#tab-inbox,#tab-home,#tab-settings,#tab-services,#tab-remote,.ibview) .btn{min-height:44px}
  :is(#tab-inbox,#tab-home,#tab-settings,#tab-services,#tab-remote,.ibview) a.btn{display:inline-flex;align-items:center;justify-content:center}
  :is(#tab-inbox,#tab-home,#tab-settings,#tab-services,#tab-remote,.ibview) a.btn.sm{min-width:44px}      /* a flex link: min-width is safe here... */
  :is(#tab-inbox,#tab-home,#tab-settings,#tab-services,#tab-remote,.ibview) a.btn.sm::before{display:none}  /* ...and the 44-px spacer would push its words right */
  :is(#tab-inbox,#tab-home,#tab-settings,#tab-services,#tab-remote) :is(select,input[type=text],input[type=search],input[type=number],input[type=password],input:not([type])){min-height:44px}
  :is(#tab-inbox,#tab-home,#tab-settings,#tab-services,#tab-remote) .switch input{top:-9px;height:calc(100% + 18px)}      /* the switch's hit area 44 tall; it is drawn as before */
  #tab-inbox .tdsec,#tab-home .tdsec{min-height:44px}
  #tab-home .hchip{position:relative}
  #tab-home .hchip::after{content:"";position:absolute;inset:-7px -1px}                  /* (Home's chips: 30 drawn, 44 to tap) */
  #tab-home .pxmore{min-height:44px;margin-top:-10px;margin-bottom:-10px}
  #tab-remote .star{min-width:44px;min-height:44px;margin:-10px -8px -10px -6px}      /* the ☆ on each channel and on Now playing: 44 to tap, the row as tall as before */
  .setnav button{min-width:44px}                               /* ("TV") */
  @container inbox (min-width:640px){                          /* the section chips' strip beside the message: 23 drawn, 44 to tap */
    #tab-inbox .mailgrps{padding-top:11px;padding-bottom:11px}
    #tab-inbox .mailgrps .chip{border-top:11px solid transparent;border-bottom:11px solid transparent;background-clip:padding-box;margin-top:-11px;margin-bottom:-11px}
  }
}
@media (max-height:500px){.setsec{scroll-margin-top:calc(var(--hdrh) + 8px)}}      /* (a short screen: Settings' pills scroll away with the page, part A, so nothing else sits over an area's top) */

/* ---------------------------------------------------------------- CBTV 2.4.0 (iPhone Duo) part D: Books side by side, the reader's two-page
   spread, the last 44-px targets.
   Books is a CSS container ("books"), so "the open screen" is the page's own width of 640 px or more, the same line as App.wide() in
   music.js. There the library (.bklib: Continue listening / reading, the shelves, the search) is on the left and the open book's page in a
   pane on the right (#bkPane): it sticks under the header, ends above the tab bar / home indicator / music bar, and scrolls on its own;
   with nothing open it says "Pick a book". Under 640 (a phone, the folded Duo, Split View) the book's page takes the library's place
   (.bks.viewing), with "‹ Books" back, as before. */
#tab-books{container:books / inline-size}
.bkx,.bkempty{display:none}
@container books (max-width:639.98px){
  .bks.viewing #bkBody{display:none}
  .bks:not(.viewing) .bkpane{display:none}
}
@container books (min-width:640px){
  .bks{display:grid;grid-template-columns:minmax(0,1fr) clamp(320px,46%,540px);column-gap:16px;align-items:start}
  .bklib{min-width:0;container:bklib / inline-size}
  .bkpane{display:flex;flex-direction:column;position:sticky;top:calc(var(--hdrh) + 10px);min-width:0;container:bkpane / inline-size;
    height:calc(100vh - var(--hdrh) - max(var(--tabsh,60px),var(--mpcover,0px)) - 24px);height:calc(100dvh - var(--hdrh) - max(var(--tabsh,60px),var(--mpcover,0px)) - 24px);min-height:180px;
    background:var(--panel);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
  .bkview{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding:14px 16px 16px;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;overflow-wrap:anywhere}
  .bkpane:not(.has) .bkview,.bkpane .bkback{display:none}
  .bkpane.has .bkx{display:block}
  .bkpane:not(.has) .bkempty{display:block}
  #bkBody .mcard.bkon .mcart.book img,#bkBody .mcard.bkon .mcart.book>b{outline:3px solid var(--accent);outline-offset:2px}      /* the open one in the library */
  #bkBody .mcard.bkon .ell2{color:var(--accent)}
}
.bkx{position:absolute;top:4px;right:4px;z-index:2;width:44px;height:44px;border:0;border-radius:50%;background:var(--panel);box-shadow:0 0 0 1px var(--line);color:var(--subtle);font-size:17px;cursor:pointer}
.bkx:hover{color:var(--text);background:var(--panel2)}
.bkempty{margin:auto;padding:24px;text-align:center;color:var(--subtle)}
.bkempty i{display:block;font-style:normal;font-size:34px;line-height:1;opacity:.45;margin-bottom:8px}
/* the book's page in the pane: the cover at the left of the title and details (a float, so the text uses the width beside it whatever it
   holds), the buttons under both, then the description and the chapters. (On a phone the page is as before: the cover across the top.) */
@container books (min-width:640px){
  .bkpane .mhead{display:block;margin:0 0 6px}
  .bkpane .mhead::after{content:"";display:block;clear:both}
  .bkpane .mcart.big{float:left;width:clamp(92px,32cqw,170px);margin:2px 16px 10px 0}
  .bkpane .mhead>div:last-child{display:block}
  .bkpane .mhead>div:last-child>div:first-child,.bkpane .mtitle{margin-right:36px}      /* (clear of the ✕) */
  .bkpane .mtitle{font-size:22px}
  .bkpane .mhead .row.wrap{clear:both;padding-top:2px}
  .bkpane .bkbar.wide{max-width:none}
  .bkpane .bkdesc{margin:12px 0 4px}
}
@media (max-height:500px){@container books (min-width:640px){.bkpane .mcart.big{width:clamp(72px,22cqw,110px)}}}      /* (a short screen: a smaller cover, so the buttons are on the first screen of the pane) */
/* the library beside the book: a narrower column, so smaller covers (three across at about 330 px) */
@container bklib (max-width:560px){
  .mgrid.books{grid-template-columns:repeat(auto-fill,minmax(min(96px,100%),1fr));gap:10px}
  .bklib .mrow .mcard,.bklib .mrow .bkcont{flex-basis:120px}
}

/* the reader (REPORT A7): a two-page spread on a screen held sideways that is wide enough, one page otherwise - and the text's box no wider
   than about 70 characters a page either way, centred (reader.js sets --rdw1 / --rdw2 from the text size; the spread itself is epub.js's
   spread 'auto' with minSpreadWidth 800, on while this same media query matches). The edges beside a narrower box turn the page too. */
.rdov.rdepub{--rdcap:var(--rdw1,454px)}
@media (orientation:landscape) and (min-width:832px){.rdov.rdepub{--rdcap:var(--rdw2,998px)}}
.rdov.rdepub .rdview{max-width:var(--rdcap);margin:0 auto}
.rdov.rdepub .rdzone.l{width:max(16px,calc((100% - var(--rdcap)) / 2 - var(--sal) - 2px))}
.rdov.rdepub .rdzone.r{width:max(16px,calc((100% - var(--rdcap)) / 2 - var(--sar) - 2px))}

/* Radio's "now playing" bar sticks at the bottom just above what covers it (the tab bar and the home indicator, beside the side rail just
   the indicator, or the music bar): it was 64 px up, a phone's tab bar, so beside the rail and on a short screen it floated mid-list */
.myst.page .mystbar{bottom:calc(max(var(--tabsh,64px),var(--mpcover,0px)) + 8px)}

/* the Inbox's message pane (part C) ends above the music bar too, when it is up */
@container inbox (min-width:640px){
  .ibpane{height:calc(100vh - var(--hdrh) - max(var(--tabsh,60px),var(--mpcover,0px)) - 24px);height:calc(100dvh - var(--hdrh) - max(var(--tabsh,60px),var(--mpcover,0px)) - 24px)}
}

/* touch: the last targets under 44 px (BRIEF decision 1) */
@media (pointer:coarse){
  #tab-books .btn{min-height:44px}                            /* Books: Play, Read, From the start, Mark finished, More */
  #tab-books :is(select,input[type=search]){min-height:44px}
  #tab-books .mtr{min-height:44px}                            /* (a chapter row) */
  .rdtoc button,.rdsw{min-height:44px}                        /* the reader's Contents rows and Dark / Sepia / Paper */
  /* the Inbox rows' ✓ ↩ ⬇: 44 x 44 to tap, the same 34-px square drawn inside (padding + background-clip); the group eats into the row's
     own padding and gap, so the sender and subject lose 8 px, not 22 */
  .mrow .macts{gap:0;margin-left:-6px;margin-right:-8px}
  .mact{width:44px;height:44px;padding:5px;background-clip:content-box;border-radius:13px}
  /* My Day: the chips (6 waiting for your OK, 7 unread mail ...; 3 put away · show) are 44 to tap with the pill drawn as before (a clear
     border outside it); wrapped onto two lines they keep 44-px rows apart. The to-do circles: 44 to tap around the 24-px circle */
  .nowchips,#tdCounts{row-gap:27px}
  .nowchip,.chip.hidchip,.chip.wherechip{position:relative;z-index:1;border-top:11px solid transparent;border-bottom:11px solid transparent;background-clip:padding-box;margin-top:-11px;margin-bottom:-11px}      /* (above the block under it, so its lower half is the chip's) */
  .chip.hidchip{border-left:0;border-right:0;box-shadow:inset 0 0 0 1px var(--line)}      /* (its outline drawn round the pill: a hairline, not dashed, on touch) */
  .aichk{position:relative}
  .aichk::after{content:"";position:absolute;inset:-12px}
}

/* 2.5.0 (CBTV for iPhone, Task 4): tabletop - the Duo bent like a laptop on a desk. body.tabletop (tabletop.js) with --fold (where the fold
   starts) and --foldb (where the screen below it starts), CSS px from the top. Only the full-screen player changes (.wstage.full: a channel,
   a Plex title or recording, one camera): the picture from under the top inset to 8 px above the fold, letterboxed in that box; below the fold
   #wTT: the now / next line and the keys (#wCtl, moved in by watch.js wTTApply, always shown), then the channel list, or Up next and the
   chapters, scrolling. Multiview, the docked picture and the small floating picture are never .wstage.full. The Ambient glow and the Retro TV
   cabinet measure the whole stage, so they rest while it is on (the Retro TV's own placing of the picture is overridden, then comes back). */
.wtt{display:none}
body.tabletop .wstage.full{--tttop:max(var(--sat),0px)}
body.tabletop .wstage.full video{position:absolute!important;left:0!important;top:var(--tttop)!important;width:100%!important;height:calc(var(--fold) - 8px - var(--tttop))!important;max-width:none!important;max-height:none!important;object-fit:contain!important;clip-path:none!important;-webkit-clip-path:none!important}
body.tabletop .wstage.full .wamb,body.tabletop .wstage.full .wtv{display:none}
body.tabletop .wstage.full .wover{bottom:auto;height:calc(var(--fold) - 8px)}                  /* "Tuning…", Tap to play: on the picture */
body.tabletop .wstage.full .wfsnote,body.tabletop .wstage.full .wedge.l,body.tabletop .wstage.full .wedge.r{top:calc((var(--tttop) + var(--fold) - 8px) / 2)}
body.tabletop .wstage.full .wskip,body.tabletop .wstage.full .wbreak{bottom:calc(100% - var(--fold) + 20px)}      /* Skip intro, the break card: on the picture's bottom corner */
body.tabletop .wstage.full .wtt{display:flex;flex-direction:column;position:absolute;left:0;right:0;top:var(--foldb,var(--fold));bottom:0;z-index:3;background:#161115;color:#fff;padding:0 var(--sar) var(--sab) var(--sal)}
body.tabletop .wstage.full .wtt .wctl{position:static;flex:none;transform:none;opacity:1;transition:none;background:none;padding:10px 14px 10px;border-bottom:1px solid rgba(255,255,255,.1)}
body.tabletop .wstage.full .wtt .wkeys{gap:6px;margin-top:8px}                               /* the keys a little tighter (two rows at 669 px, not three): the list gets the room */
body.tabletop .wstage.full .wtt .wkey{padding:7px 11px;font-size:13.5px;border-radius:10px}
body.tabletop .wstage.full .wtt .wkey.big{font-size:15px;padding:7px 14px}
body.tabletop .wstage.full .wttlist{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:6px 6px 8px}
.wttchap{display:flex;gap:12px;align-items:baseline;width:100%;padding:9px 10px;border:0;border-radius:10px;background:none;color:#fff;font:inherit;text-align:left;cursor:pointer}
.wttchap:hover{background:rgba(255,255,255,.09)}
.wtt .wupitem{border-top:0;padding:4px 10px;align-items:center}
.wtt .wmdesc{padding:4px 10px;margin:0}
@media (pointer:coarse){.wttchap{min-height:44px;align-items:center}}
/* 2.7.0 synced playback: the badge on the picture, and the members / Sound / Leave at the top of the player's menu */
.wsyncbadge{position:absolute;top:10px;left:10px;background:rgba(0,0,0,.62);color:#fff;padding:5px 11px;border-radius:9px;font-weight:700;font-size:13px;z-index:6;cursor:pointer;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.wsyncbadge.bad{background:rgba(150,60,20,.85)}
.wsyncmenu{margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid rgba(255,255,255,.14)}
.wsyncrow{display:flex;gap:10px;align-items:center;padding:4px 0}
