/* Portal v3, from notes/header-design/portal-v3/portal.html */

@font-face{font-family:'Bebas Neue';src:url(/fonts/bebas-neue-latin-400-normal.woff2)}
@font-face{font-family:'Noto Sans Ethiopic';src:url(/fonts/NotoSansEthiopic-Variable.ttf);unicode-range:U+1200-139F}
@font-face{font-family:Inter;src:url(/fonts/inter-latin-400-normal.woff2);font-weight:400}
@font-face{font-family:Inter;src:url(/fonts/inter-latin-600-normal.woff2);font-weight:500 700}
/* Dark mode only, palette from skybirdscience.com src/styles/global.css. No light theme. */
:root{color-scheme:dark;--tabs-h:68px;--bg:#000000;--page:#0a0a0c;--card:#111114;--soft:#16161a;--fg:#f2f2f2;--muted:#a3a3a8;--dim:#8e8e96;--red:#c50000;--red-hi:#ff1a1a;--red-text:#ff4d4d;--green:#4cc38a;--amber:#f0b155;--line:rgba(255,255,255,.12);--focus:#ff4d4d}
html{color-scheme:dark;background:#000}
input,select,textarea{color-scheme:dark;background:var(--soft);color:var(--fg);border:1px solid rgba(255,255,255,.18)}
select option{background:var(--soft);color:var(--fg)}
::placeholder{color:var(--dim);opacity:1}
*{box-sizing:border-box}html,body{margin:0}body{background:var(--page);color:var(--fg);font-family:Inter,'Noto Sans Ethiopic',sans-serif}
a,button{color:inherit;text-decoration:none;font:inherit}button{cursor:pointer}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px;border-radius:8px}
svg{flex:none}
/* header */
.ph{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:10px;height:64px;padding:0 20px;background:var(--bg);border-bottom:2px solid var(--red)}
.ph .logo{display:block;flex:none;background:none;border-radius:0;padding:0;line-height:0}.ph .logo img{height:30px;width:auto;display:block}.ph .mark{display:none;flex:none;width:34px;height:34px;background:none;border-radius:0;padding:0;line-height:0}.ph .mark img{width:100%;height:100%;display:block}@media (max-width:767px){.ph .logo{display:none!important}.ph .mark{display:block!important}}
.where{font:400 22px 'Bebas Neue';letter-spacing:.06em;color:var(--muted);padding-left:12px;margin-left:4px;border-left:1px solid var(--line)}
.sp{flex:1}
.ib{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:48px;min-height:48px;padding:0 10px;border:0;border-radius:10px;background:transparent;font-size:14px;font-weight:600;white-space:nowrap}
.ib:hover{background:rgba(255,255,255,.08)}.ib svg{width:22px;height:22px}
.search{display:flex;align-items:center;gap:8px;width:340px;height:44px;padding:0 14px;border:1px solid var(--line);border-radius:999px;background:#111}
.search svg{width:18px;height:18px;color:var(--muted)}.search input{flex:1;min-width:0;border:0;background:transparent;color:#fff;font:15px Inter;outline:none}
.who{display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:0 8px 0 4px;border:1px solid var(--line);border-radius:999px;background:transparent}
.av{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#2a2a33;font-weight:700;font-size:14px}
.av.ph-img{background:#2a2a33;overflow:hidden;padding:0}.av.ph-img img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.who .nm{font-size:14px;font-weight:600}.who .chev{width:14px;height:14px}
.badge{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:3px 8px;border-radius:999px;background:var(--red);color:#fff}
/* layout */
.shell{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:calc(100vh - 64px)}
.side{background:var(--bg);border-right:1px solid var(--line);padding:16px 12px;display:flex;flex-direction:column;gap:4px}
.side h3{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin:16px 12px 6px;display:flex;align-items:center;gap:8px}
.nav{display:flex;align-items:center;gap:12px;min-height:44px;padding:0 12px;border-radius:10px;font-size:15px;font-weight:500;color:#ddd}
.nav svg{width:20px;height:20px}.nav:hover{background:rgba(255,255,255,.06)}
.nav[aria-current=page]{background:rgba(197,0,0,.16);color:#fff;box-shadow:inset 3px 0 0 var(--red);font-weight:700}
.nav .n{margin-left:auto;font-size:12px;font-weight:700;background:#2a2a33;border-radius:999px;padding:2px 8px}
.nav .n.r{background:var(--red)}
.admin-box{margin-top:8px;border:1px solid rgba(197,0,0,.45);border-radius:12px;padding:4px;background:rgba(197,0,0,.05)}
.toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:auto 4px 0;padding:10px 12px;border-top:1px solid var(--line);font-size:14px}
.sw{position:relative;width:44px;height:26px;border-radius:999px;background:#333;border:0}.sw::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:.15s}
.sw[aria-checked=true]{background:var(--red)}.sw[aria-checked=true]::after{left:21px}
main{padding:28px 32px 40px;min-width:0}
h1{font:400 40px/1 'Bebas Neue';letter-spacing:.03em;margin:0 0 4px}.sub{color:var(--muted);margin:0 0 22px}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
.card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:8px}
.card .k{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}.card .v{font:400 34px 'Bebas Neue'}
.card .act{margin-top:auto;display:inline-flex;align-items:center;justify-content:center;min-height:44px;border-radius:999px;background:var(--red);font-weight:700;font-size:14px}
.card .act.o{background:transparent;border:1px solid var(--line)}
.st{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600}.st::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor}
.st.g{color:var(--green)}.st.a{color:var(--amber)}.st.r{color:var(--red-text)}
table{width:100%;border-collapse:collapse;background:var(--card);border:1px solid var(--line);border-radius:14px;overflow:hidden;font-size:14px;margin-top:18px}
th,td{text-align:left;padding:12px 14px;border-bottom:1px solid var(--line)}th{color:var(--muted);font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:.06em}
tr:last-child td{border-bottom:0}
.sec{font-size:15px;font-weight:700;margin:26px 0 0}
/* bottom tabs (mobile) */
.tabs{display:none}
/* popovers */
.menu{position:absolute;right:20px;top:60px;width:280px;background:#121216;border:1px solid var(--line);border-radius:14px;box-shadow:0 20px 50px rgba(0,0,0,.6);padding:8px;z-index:40}
.menu .hd{display:flex;gap:12px;align-items:center;padding:10px 10px 12px;border-bottom:1px solid var(--line);margin-bottom:6px}
.menu .hd b{display:block}.menu .hd span{font-size:13px;color:var(--muted)}
.mi{display:flex;align-items:center;gap:12px;min-height:44px;padding:0 10px;border-radius:8px;font-size:15px}.mi svg{width:20px;height:20px;color:var(--muted)}
.mi:hover,.mi.act{background:rgba(255,255,255,.07)}.mi .r{margin-left:auto;color:var(--muted);font-size:13px}
.hr{height:1px;background:var(--line);margin:6px 0}
.so{position:fixed;inset:0;background:var(--page);z-index:60;display:flex;flex-direction:column}
.so .bar{display:flex;align-items:center;gap:8px;height:64px;padding:0 10px;background:var(--bg);border-bottom:2px solid var(--red)}
.so .field{flex:1;display:flex;align-items:center;gap:8px;height:48px;padding:0 14px;border:2px solid var(--red);border-radius:999px;background:#111}
.so .field input{flex:1;min-width:0;border:0;background:transparent;color:#fff;font:16px Inter;outline:none}
.so .body{padding:8px 16px}.so h4{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:16px 0 6px}
.res{display:flex;align-items:center;gap:12px;min-height:56px;border-bottom:1px solid var(--line);font-size:15px}.res svg{width:20px;height:20px;color:var(--muted)}.res small{display:block;color:var(--muted);font-size:13px}
.chips{display:flex;gap:8px;flex-wrap:wrap}.chip{min-height:40px;padding:0 14px;border:1px solid var(--line);border-radius:999px;display:inline-flex;align-items:center;font-size:14px}

.call{min-height:44px;font-size:13px;padding:0 10px}
.toggle{display:flex!important;flex-direction:column;align-items:stretch!important;gap:4px}.toggle .ib{min-height:44px;font-size:13px;justify-content:flex-start;gap:8px;width:auto;padding:0 10px;display:flex;align-items:center}
.role{font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px;margin-left:4px;vertical-align:1px}.role.client{background:#2a2a33}.role.team{background:#1d3b5c}.role.admin{background:var(--red)}
.filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:18px 0 0}.search.sm{width:240px;height:40px}
.chip{min-height:40px;padding:0 14px;border:1px solid var(--line);border-radius:999px;display:inline-flex;align-items:center;font-size:14px}.chip.on{background:var(--red);border-color:var(--red);color:#fff;font-weight:700}
.act-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border:0;border-radius:999px;background:var(--red);color:#fff;font-weight:700;font-size:14px}
.ghost{min-height:44px;padding:0 16px;border:1px solid var(--line);border-radius:999px;background:transparent;font-weight:600;font-size:14px}.ghost.danger{color:var(--red-text);border-color:rgba(255,107,107,.4)}
.ugrid{display:grid;grid-template-columns:1fr 300px;gap:16px;align-items:start}.ut{margin-top:14px}.ut td:first-child{min-width:150px}.ut td.c,.ut th.c{text-align:center;font-size:12px}.ut th.c{text-transform:none;letter-spacing:0;line-height:1.2}
.selrow td{background:rgba(197,0,0,.1)}.sm2{font-size:12px}
.panel{margin-top:14px;background:var(--card);border:1px solid rgba(197,0,0,.45);border-radius:14px;padding:16px}.panel h2{margin:0 0 2px;font-size:18px}
.fl{display:grid;gap:6px;font-size:13px;font-weight:600}.fl select{min-height:44px;border:1px solid var(--line);border-radius:10px;background:#111;color:#fff;padding:0 10px;font:15px Inter}
.perm{display:flex;align-items:center;justify-content:space-between;min-height:44px;border-bottom:1px solid var(--line);font-size:14px}
.ucard{display:flex;align-items:center;gap:12px;min-height:64px;padding:10px 12px;background:var(--card);border:1px solid var(--line);border-radius:12px}
.scrim,.lscrim{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:50}
.drawer{position:fixed;top:0;bottom:0;left:0;width:82%;max-width:320px;background:var(--bg);border-right:2px solid var(--red);z-index:55;padding:12px;display:flex;flex-direction:column;gap:4px;overflow:auto}
.drawer .dh{display:flex;align-items:center;gap:8px;padding:4px 4px 10px;font-size:18px}.drawer .nav{min-height:48px}
.lh{display:flex;align-items:center;justify-content:space-between;padding:4px 4px 8px;font-size:18px}

@font-face{font-family:'Cormorant Garamond';src:url(/fonts/cormorant-garamond-latin-400-normal.woff2) format('woff2');font-display:swap}
/* polish to match skybirdscience.com */
h1{font-family:'Bebas Neue';font-weight:400;letter-spacing:.03em}
h1::after{content:"";display:block;width:48px;height:3px;background:var(--red);margin-top:6px;border-radius:2px}
.sub{font-family:'Cormorant Garamond',serif;font-style:italic;font-size:20px;color:#d6d6dc}
.card{border-top:2px solid var(--red)}
.card .act,.act-btn{text-transform:uppercase;letter-spacing:.06em;font-size:13px}
.card .act:hover,.act-btn:hover{background:var(--red-hi)}
.loginbtn{min-height:44px;padding:0 20px;border:0;border-radius:999px;background:var(--red);color:#fff;font:700 13px Inter;letter-spacing:.06em;text-transform:uppercase}
body.out .side,body.out .tabs{display:none}body.out .shell,body.out .app{grid-template-columns:1fr!important}
.lb{position:absolute;right:20px;top:58px;width:380px;background:#0d0d10;border:1px solid var(--line);border-top:3px solid var(--red);border-radius:14px;box-shadow:0 24px 60px rgba(0,0,0,.7);padding:22px;z-index:60}
.lb h2{font:400 32px 'Bebas Neue';letter-spacing:.04em;margin:0}.lb .tag{font:italic 19px 'Cormorant Garamond',serif;color:#d6d6dc;margin:2px 0 16px}
.lb label{display:grid;gap:6px;font-size:13px;font-weight:600;margin-bottom:12px}
.lb input{min-height:48px;border:1px solid var(--line);border-radius:10px;background:#111;color:#fff;padding:0 14px;font:16px Inter}.lb input:focus{outline:2px solid var(--focus);outline-offset:1px}
.lb .go{width:100%;min-height:48px;border:0;border-radius:999px;background:var(--red);color:#fff;font:700 14px Inter;letter-spacing:.06em;text-transform:uppercase}
.lb .alt{display:flex;justify-content:space-between;gap:10px;margin-top:14px;font-size:14px}.lb .alt a{color:#fff;text-decoration:underline;text-underline-offset:3px;min-height:44px;display:inline-flex;align-items:center}
.lb .note{font-size:13px;color:var(--muted);margin:10px 0 0}
.otp{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin-bottom:14px}.otp input{width:100%;min-width:0;box-sizing:border-box;text-align:center;font:400 28px 'Bebas Neue';padding:0;min-height:56px}
.mail{width:56px;height:56px;border-radius:50%;background:rgba(197,0,0,.16);display:grid;place-items:center;margin-bottom:10px}
.hero{max-width:640px;margin:40px auto;text-align:center}.hero-logo{display:block;margin:0 auto 12px}.hero h1{font-size:56px;margin:0}.hero h1::after{margin:8px auto 0}
.detail{max-width:520px}.detail .panel{margin-top:6px}.perm span{padding-right:12px}
.mcall{display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;margin-top:14px;border:1px solid var(--line);border-radius:999px;font-weight:700;font-size:15px}
@media (max-width:760px){.lb{position:fixed;left:0;right:0;top:66px;border-top:0;width:auto;border-radius:0 0 18px 18px;border-left:0;border-right:0;padding:20px 16px 24px}.hero h1{font-size:40px}}
@media (max-width:760px){
 .ph{height:60px;padding:0 8px 0 12px;gap:0}.ph .logo,.where,.search.d,.who .nm,.who .chev,.d{display:none}.ph .mark{display:block}
 .who{border:0;padding:0 6px}
 .shell{display:block}.side{display:none}
 main{padding:18px 16px calc(var(--tabs-h) + 28px + env(safe-area-inset-bottom));scroll-padding-bottom:calc(var(--tabs-h) + env(safe-area-inset-bottom))}h1{font-size:32px}.cards{grid-template-columns:1fr;gap:12px}
 table{display:none}
 .tabs{position:fixed;left:0;right:0;bottom:0;z-index:30;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;height:calc(var(--tabs-h) + env(safe-area-inset-bottom));padding:0 4px env(safe-area-inset-bottom);background:var(--bg);border-top:1px solid var(--line)}
 .tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:56px;min-width:48px;font-size:11px;font-weight:600;color:var(--muted);position:relative}
 .tab svg{width:24px;height:24px}.tab[aria-current=page]{color:#fff}.tab[aria-current=page]::before{content:"";position:absolute;top:0;left:22%;right:22%;height:3px;border-radius:0 0 3px 3px;background:var(--red)}
 .tab .dot{position:absolute;top:8px;left:calc(50% + 6px);min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--red);color:#fff;font-size:11px;display:grid;place-items:center}
 .tab.adm[aria-current=page]::before{background:var(--red-hi)}
 .menu{left:8px;right:8px;width:auto}
 .mlist{display:grid;gap:8px}.mlist .nav{background:var(--card);border:1px solid var(--line);min-height:56px;font-size:16px}
}
@media (min-width:761px){.mo{display:none!important}}
button.chip{background:none;color:inherit;cursor:pointer}button.chip.on{background:var(--red);color:#fff}button.tab{background:none;border:0;color:inherit}
.act-btn:disabled,.act-btn[disabled]{opacity:.45;cursor:not-allowed;filter:grayscale(.6)}
/* Header 761-999px: language button collapses to the icon (aria-label keeps the name) and gets room. */
@media (min-width:761px) and (max-width:999px){.who{margin-left:8px}.search.d{width:min(340px,30vw)}}
/* Toasts, all dark. */
.toast,[role=alert].toast{position:fixed;left:50%;bottom:calc(var(--tabs-h,0px) + 20px);transform:translateX(-50%);z-index:50;background:#111114;color:#f2f2f2;border:1px solid var(--line);border-left:3px solid var(--amber);border-radius:10px;padding:10px 14px;font-size:14px;box-shadow:0 8px 24px rgba(0,0,0,.6)}
.toast.err{border-left-color:var(--red-text)}
/* Deposit split lines */
.split{list-style:none;margin:10px 0 0;padding:0;font-size:14px}.split li{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px dashed var(--line)}.split li.tot{font-weight:700}.split li:last-child{border-bottom:0}
/* Header: name and "Project portal" always on one line; long names truncate. */
.where{white-space:nowrap;flex:none}@media (min-width:768px){.who .nm{display:inline-block;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media (min-width:761px) and (max-width:999px){.who .nm{max-width:96px}.search.d{width:auto;flex:0 1 300px;min-width:120px}.ph{gap:8px}}
/* Mobile header order matches the website: logo, Language, Login/avatar, Search, Menu. */
@media (max-width:767px){.ph>.mark{order:0}.ph>.sp{order:1}.ph>.loginbtn,.ph>.who{order:3}.ph>[data-open-search]{order:4}.ph>[data-menu]{order:5}}
/* Media icon (image file, next to a text label) */
.nav img.ico-img{width:20px;height:20px;flex:none}.tab img.ico-img{width:24px;height:24px}.k .ico-img,h1 .ico-img{vertical-align:-4px;margin-right:6px}
/* Media, messages, notifications */
.muted{color:var(--muted)}
[hidden]{display:none !important}
.mtype{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:3px 9px;border-radius:999px;background:#2a2a33}
.mtype svg{width:13px;height:13px}
.ver{font-size:12px;font-weight:700;color:#ddd;border:1px solid var(--line);border-radius:6px;padding:1px 6px}
.head-row{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap}.head-row>div{flex:1;min-width:0}
/* A header with a row of buttons (Media and Website media for admins): on phones the row goes under the title. */
@media (max-width:760px){.head-row>.row{flex:1 1 100%}.head-row>.row>*{flex:1 1 auto}}
.backlink{padding:0 8px 0 0;margin:0 0 8px;justify-content:flex-start}
.meta-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:8px 0 16px}
.verpick{display:inline-flex;align-items:center;gap:8px;font-size:14px}
.verpick select{min-height:40px;border-radius:8px;background:#111;color:#fff;border:1px solid var(--line);padding:0 8px}
.medialist{display:grid;gap:0;margin-top:14px;background:var(--card);border:1px solid var(--line);border-radius:14px;overflow:hidden}
.lr{display:grid;grid-template-columns:72px minmax(0,2fr) 110px 70px minmax(0,1.3fr) 170px minmax(110px,auto);gap:14px;align-items:center;padding:12px 14px;border-bottom:1px solid var(--line);font-size:14px;min-width:0}
.lr:last-child{border-bottom:0}
.lr[role=link]{cursor:pointer}.lr[role=link]:hover{background:rgba(255,255,255,.04)}
.lr.int{background:#26210f}
.thumb{width:72px;height:44px;border-radius:8px;overflow:hidden;position:relative;display:grid;place-items:center;color:#fff;font:400 11px 'Bebas Neue'}
.p-video{background:linear-gradient(135deg,#3a1b10,#7a3b1d 45%,#1b1b22)}.p-doc{background:#1a1a20}.p-gfx{background:radial-gradient(circle at 30% 30%,#ff4d4d,#7a0000 55%,#120000)}
.thumb .play{width:20px;height:20px;border-radius:50%;background:rgba(0,0,0,.55);display:grid;place-items:center}
.thumb.p-doc i{position:absolute;left:12px;right:12px;height:3px;background:#4a4a55;border-radius:2px}
.thumb.p-doc i:nth-child(1){top:12px}.thumb.p-doc i:nth-child(2){top:20px}.thumb.p-doc i:nth-child(3){top:28px}
.acards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
.acard{background:var(--card);border:1px solid var(--line);border-top:2px solid var(--amber);border-radius:14px;overflow:hidden;display:flex;flex-direction:column}
.acard .pv{height:150px;position:relative;display:grid;place-items:center}
.acard .bd{padding:14px 16px 16px;display:flex;flex-direction:column;gap:8px;flex:1}
.acard .mtype{align-self:flex-start}.acard h3{margin:0;font-size:17px}.acard .meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:13px;color:var(--muted)}
.acard .act-btn{margin-top:auto}
.bigplay{width:64px;height:64px;border-radius:50%;background:rgba(197,0,0,.92);display:grid;place-items:center;box-shadow:0 8px 24px rgba(0,0,0,.5);border:0;padding:0;color:#fff}
.gfxart{position:absolute;inset:0;display:grid;place-items:center;text-align:center;color:#fff;font:400 28px/0.95 'Bebas Neue';letter-spacing:.04em;padding:10px}
.gfxart small{display:block;font:italic 16px 'Cormorant Garamond',serif;letter-spacing:0;margin-top:6px}
.docpage{width:62%;height:84%;background:#24242c;border:1px solid var(--line);border-radius:4px;box-shadow:0 6px 18px rgba(0,0,0,.35);padding:12px;display:flex;flex-direction:column;gap:6px}
.docpage b{height:7px;width:60%;background:#c50000;border-radius:2px}.docpage i{height:4px;background:#55555f;border-radius:2px}
.sec2{font:400 24px 'Bebas Neue';letter-spacing:.04em;margin:28px 0 10px}
.iv{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;align-items:start;margin-top:4px;min-width:0}
.viewer{background:#000;border:1px solid var(--line);border-radius:14px;overflow:hidden;min-width:0}
.player{display:block;width:100%;aspect-ratio:16/9;background:#000;border:0}
.vscreen{aspect-ratio:16/9;position:relative;display:grid;place-items:center}
.vscreen .cap{position:absolute;left:16px;bottom:14px;font:400 28px 'Bebas Neue';letter-spacing:.04em;text-shadow:0 2px 10px #000}
.vbar{display:flex;align-items:center;gap:10px;padding:8px 12px;background:#0d0d10;font-size:13px;color:#ddd}
.vbar .trk{flex:1;height:5px;border-radius:3px;background:#333;position:relative;min-width:40px}
.vbar .trk::before{content:"";position:absolute;left:0;top:0;bottom:0;width:var(--p,0%);background:var(--red);border-radius:3px}
.vbar .trk::after{content:"";position:absolute;left:var(--p,0%);top:50%;width:13px;height:13px;margin:-6.5px 0 0 -6.5px;border-radius:50%;background:#fff}
.vbar button{min-width:44px;min-height:44px;border:0;background:transparent;color:#fff;border-radius:8px}
.pdfbar{display:flex;align-items:center;gap:8px;padding:6px 10px;background:#0d0d10;border-bottom:1px solid var(--line);font-size:13px;color:#ddd;flex-wrap:wrap}
.pdfbar .sp{flex:1}.pdfbar button{min-width:44px;min-height:44px;border:1px solid var(--line);background:transparent;color:#fff;border-radius:8px;font-weight:700}
.pdfwrap{background:#2b2b31;padding:22px;display:grid;place-items:center;overflow:auto}
.pdf{width:min(100%,520px);aspect-ratio:8.5/11;background:#16161b;color:#e6e6ea;border:1px solid var(--line);border-radius:3px;box-shadow:0 10px 30px rgba(0,0,0,.5);padding:7% 8%;font-size:12px;line-height:1.45;overflow:auto;transform-origin:top center}
.pdf h4{font:400 26px 'Bebas Neue';letter-spacing:.04em;margin:0 0 2px;color:#fff}.pdf .rule{width:40px;height:3px;background:#c50000;margin:0 0 12px}
.pdf table{display:table!important;margin:10px 0;background:#121216;border:1px solid var(--line);border-radius:0;font-size:11px;width:100%}
.pdf th,.pdf td{padding:5px 7px;border-bottom:1px solid var(--line);color:#e6e6ea}.pdf th{color:var(--muted);font-size:10px}
.pdf-frame{width:min(100%,720px);height:70vh;border:0;background:#16161b}
.gfxwrap{background:repeating-conic-gradient(#1a1a1f 0 25%,#141418 0 50%) 0 0/24px 24px;padding:22px;display:grid;place-items:center}
.gfximg{width:min(100%,560px);aspect-ratio:16/9;position:relative;border-radius:6px;overflow:hidden;box-shadow:0 10px 30px rgba(0,0,0,.6);object-fit:contain;background:#111}
.gfxinfo{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:10px 14px;background:#0d0d10;font-size:13px;color:#ddd}
.decide{background:var(--card);border:1px solid var(--line);border-top:2px solid var(--red);border-radius:14px;padding:16px;display:grid;gap:12px}
.ok-btn{background:#1f6b45!important}
.ghost.on{border-color:var(--red);background:rgba(197,0,0,.14);color:#fff}
.cbox{display:grid;gap:6px;font-size:13px;font-weight:600}
.cbox textarea,.compose textarea,.ccomp textarea,.ni .rep textarea{width:100%;min-height:88px;border:1px solid var(--line);border-radius:10px;background:#111;color:#fff;padding:12px;font:15px/1.4 Inter;resize:vertical}
.kv{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 12px;font-size:14px;margin:0}.kv dt{color:var(--muted)}.kv dd{margin:0}
.note-box{border-left:3px solid var(--red);background:rgba(255,255,255,.04);padding:10px 12px;border-radius:0 10px 10px 0;font-size:14px}
.hist{list-style:none;margin:8px 0 0;padding:0;display:grid}
.hist li{position:relative;padding:0 0 14px 22px;font-size:14px}
.hist li::before{content:"";position:absolute;left:5px;top:6px;width:9px;height:9px;border-radius:50%;background:#555}
.hist li::after{content:"";position:absolute;left:9px;top:18px;bottom:0;width:1px;background:var(--line)}
.hist li:last-child::after{display:none}.hist li.a::before{background:var(--amber)}.hist li.g::before{background:#3fd07f}.hist li.r::before{background:#ff6b6b}
.hist small{display:block;color:var(--muted);font-size:12px}.hist q{display:block;color:#ddd;font-style:italic;margin-top:2px}
.thread{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:16px;display:grid;gap:12px;margin-top:16px;min-width:0}
.thread h3{margin:0;font-size:16px;display:flex;align-items:center;gap:8px}
.msg{display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px}.msg .av{width:36px;height:36px;font-size:13px}.msg .av.sb{background:var(--red)}
.msg .mh{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;font-size:14px}.msg .mh small{color:var(--muted);font-size:12px}
.msg p{margin:3px 0 0;font-size:14px;line-height:1.45;color:#e6e6ea;overflow-wrap:anywhere}
.msg blockquote{margin:4px 0;padding:6px 10px;border-left:3px solid #555;background:rgba(255,255,255,.04);border-radius:0 8px 8px 0;font-size:13px;color:var(--muted)}
.msg blockquote b{color:#ddd;font-weight:600}
.ts{display:inline-flex;align-items:center;gap:4px;min-height:28px;padding:0 9px;margin-right:6px;border:0;border-radius:999px;background:rgba(197,0,0,.2);color:#fff;font-size:12px;font-weight:700;vertical-align:1px}
.compose{display:grid;gap:8px;border-top:1px solid var(--line);padding-top:12px}
.compose .row,.decbar .row,.ccomp .row,.dlg .foot,.ni .rep .row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.mact{display:flex;gap:4px;margin-top:2px}.mact button{min-height:32px;padding:0 8px;border:0;background:transparent;color:var(--muted);font-size:12px;font-weight:600;border-radius:6px}
.mact button:hover{background:rgba(255,255,255,.07);color:#fff}
.msg.int,.bub.int .bx,.lr.int{background:#26210f;border-color:rgba(201,168,76,.4)}
.msg.int{border:1px solid rgba(201,168,76,.4);border-radius:10px;padding:8px}
.msg.int p{color:#ece3c6}
.itag{display:inline-flex;align-items:center;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;padding:2px 7px;border-radius:999px;background:#5c4d1a;color:#f3e3a6;border:1px solid rgba(201,168,76,.5)}
.vtag{display:inline-flex;font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:2px 7px;border-radius:999px;border:1px solid var(--line);color:var(--muted)}
.vis{display:inline-flex;border:1px solid var(--line);border-radius:999px;padding:3px;gap:2px;flex-wrap:wrap}
.vis button{min-height:38px;padding:0 12px;border:0;border-radius:999px;background:transparent;font-size:13px;font-weight:700;color:var(--muted)}
.vis button[aria-pressed=true]{background:var(--red);color:#fff}.vis button.i[aria-pressed=true]{background:#6b5a1f;color:#f3e3a6}
.compose.under{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:12px 16px 14px;margin-top:12px}
.compose.under #cmsg:empty{display:none}.compose.under .pinrow{min-height:44px;font-weight:600}.compose.under .pinrow .ts{font-variant-numeric:tabular-nums}
.compose.int textarea{background:#221d0d;border-color:rgba(201,168,76,.55)}
.decbar{border-top:1px solid var(--line);padding-top:12px;display:grid;gap:10px}
.fileatt{display:flex;align-items:center;gap:10px;margin-top:6px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;font-size:13px;max-width:100%;background:rgba(0,0,0,.25)}
.fileatt .fic,.drop .fic{width:36px;height:36px;border-radius:8px;background:rgba(197,0,0,.16);display:grid;place-items:center;flex:none}
.quoting,.pending{margin:0;font-size:13px;color:var(--muted)}
.bell{position:relative}.bell .cnt,.hamb .cnt{position:absolute;top:4px;right:2px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--red);color:#fff;font-size:11px;font-weight:700;display:grid;place-items:center}
.np{position:fixed;top:0;right:0;bottom:0;width:min(420px,100%);background:#0d0d10;border-left:2px solid var(--red);z-index:80;display:flex;flex-direction:column;box-shadow:-20px 0 60px rgba(0,0,0,.6)}
.np .nh{display:flex;align-items:center;gap:8px;padding:12px 12px 12px 18px;border-bottom:1px solid var(--line)}.np .nh h2{font:400 28px 'Bebas Neue';letter-spacing:.04em;margin:0;flex:1}
.np .nh h2::after{display:none}
.np .nb{overflow:auto;padding:6px 12px 20px;display:grid;gap:8px;align-content:start}
.ni{display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;padding:12px;border-radius:12px;border:1px solid var(--line);background:var(--card);font-size:14px}
.ni .av.sb,.conv .av.sb{background:var(--red)}.ni.un{border-color:rgba(197,0,0,.6);box-shadow:inset 3px 0 0 var(--red)}.ni .av{width:36px;height:36px;font-size:13px}
.ni small{color:var(--muted);font-size:12px}.ni p{margin:4px 0 0;color:#e6e6ea}.ni .where2{font-size:12px;color:#ddd;font-weight:600}
.ni .rep{display:grid;gap:8px;margin-top:8px}
.nscrim{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:75}
.mwrap{display:grid;grid-template-columns:280px minmax(0,1fr);background:var(--card);border:1px solid var(--line);border-radius:14px;overflow:hidden;min-height:560px;min-width:0}
.convs{border-right:1px solid var(--line);display:flex;flex-direction:column;min-width:0}
.convs .ci{display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px;align-items:center;padding:12px 14px;border:0;border-bottom:1px solid var(--line);background:transparent;color:inherit;text-align:left;font-size:14px;width:100%}
.convs .ci.on{background:rgba(197,0,0,.14);box-shadow:inset 3px 0 0 var(--red)}.convs .ci small{display:block;color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.conv{display:flex;flex-direction:column;min-width:0}.conv .ch{display:flex;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid var(--line)}
.conv .cb{flex:1;padding:16px;display:grid;gap:14px;align-content:start;max-height:520px;overflow:auto}
.bub{max-width:min(78%,520px);display:grid;gap:4px;min-width:0}.bub.me{justify-self:end}.bub .bx{padding:10px 12px;border-radius:14px;background:#22222a;font-size:14px;line-height:1.45;overflow-wrap:anywhere}.bub.me .bx{background:#5a0a0a}
.bub small{color:var(--muted);font-size:12px}.bub.me small{text-align:right}
.bub.int .bx{background:#26210f;border:1px solid rgba(201,168,76,.4);color:#ece3c6}
.voice{display:flex;align-items:center;gap:10px;min-width:0}.voice .pb{width:40px;height:40px;border-radius:50%;background:var(--red);display:grid;place-items:center;flex:none;border:0;padding:0}
.wave{flex:1;display:flex;align-items:center;gap:2px;height:32px;min-width:0}.wave i{flex:1;background:#fff;border-radius:2px;opacity:.85}.wave i.p{opacity:.35}
.media-att{position:relative;width:min(260px,100%);aspect-ratio:4/3;border-radius:12px;overflow:hidden;display:grid;place-items:center;object-fit:cover}
.media-att.ph1{background:linear-gradient(160deg,#6b4a2b,#2a1a0e 60%,#0f0a06)}.media-att .lbl{position:absolute;left:8px;bottom:8px;font-size:12px;font-weight:700;background:rgba(0,0,0,.6);padding:3px 8px;border-radius:999px}
.media-att.vd{aspect-ratio:16/9;background:linear-gradient(135deg,#3a1b10,#7a3b1d 45%,#1b1b22)}
.ccomp{border-top:1px solid var(--line);padding:12px 16px;display:grid;gap:8px}
.attb{min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:999px;background:transparent;color:inherit;display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600}
.attb.on{border-color:var(--red);color:#fff}
.dlg{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:min(620px,calc(100% - 24px));max-height:calc(100vh - 40px);overflow:auto;background:#0d0d10;border:1px solid var(--line);border-top:3px solid var(--red);border-radius:16px;box-shadow:0 24px 60px rgba(0,0,0,.7);padding:22px 24px;z-index:70}
.dlg h2{font:400 32px 'Bebas Neue';letter-spacing:.04em;margin:0}.dlg h2::after{display:none}.dlg .tag{font:italic 19px 'Cormorant Garamond',serif;color:#d6d6dc;margin:2px 0 16px}
.dlg .x{position:absolute;right:8px;top:8px}
.fld{display:grid;gap:6px;font-size:13px;font-weight:600;margin-bottom:14px}.fld .hint{font-weight:400;color:var(--muted)}
.fld input,.fld select,.fld textarea{min-height:48px;border:1px solid var(--line);border-radius:10px;background:#111;color:#fff;padding:0 14px;font:16px Inter;width:100%}
.fld textarea{padding:12px 14px;min-height:84px}
.seg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.seg label{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:72px;border:1px solid var(--line);border-radius:12px;font-size:14px;font-weight:700;text-align:center;padding:6px;cursor:pointer}
.seg label small{font-weight:400;color:var(--muted);font-size:12px}.seg label.on{border:2px solid var(--red);background:rgba(197,0,0,.12)}
.seg input{position:absolute;opacity:0;pointer-events:none}
.drop{display:flex;align-items:center;gap:14px;border:2px dashed rgba(255,255,255,.22);border-radius:12px;padding:14px;margin-bottom:14px;font-size:14px;min-width:0}
.drop .fic{width:48px;height:48px;border-radius:10px}
.drop b{display:block;overflow-wrap:anywhere}.drop .ghost{margin-left:auto;flex:none}
.prog{height:6px;border-radius:3px;background:#2a2a33;overflow:hidden;margin-top:6px}.prog i{display:block;height:100%;width:0;background:#3fd07f}
.prog.wait i{width:35%;animation:media-prog 1s ease-in-out infinite}
@keyframes media-prog{from{transform:translateX(-120%)}to{transform:translateX(320%)}}
@media (prefers-reduced-motion:reduce){.prog.wait i{animation:none;width:100%;opacity:.45}}
.chk{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14px}.chk input{width:22px;height:22px;accent-color:#c50000}
.hamb,.pi{display:none}.hamb{position:relative;display:none!important}
.drawer.r{left:auto;right:0;border-right:0;border-left:2px solid var(--red)}
.nav.notif .n{background:var(--red);color:#fff}
.tab span{text-align:center;line-height:1.15}
@media (max-width:1100px){.lr{grid-template-columns:64px minmax(0,1fr) 140px 120px}.lr .c-ver,.lr .c-att{display:none}.iv{grid-template-columns:1fr}}
@media (max-width:760px){
 .lr{grid-template-columns:64px minmax(0,1fr);gap:4px 12px;padding:12px}.lr .thumb{grid-row:span 3;width:64px;height:48px}.lr>*:not(.thumb){grid-column:2}.lr .c-act .ghost{min-height:40px}
 .acards{grid-template-columns:1fr}.iv{grid-template-columns:1fr;gap:14px}
 .head-row .act-btn{width:100%}
 .np{left:0;width:auto;border-left:0}
 .mwrap{grid-template-columns:1fr;min-height:0}.convs{display:none}.bub{max-width:92%}.voice{min-width:0}
 .ccomp .row .attb span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
 .decbar .row>*{min-width:0;flex:1 1 140px}
 .dlg{left:0;right:0;top:auto;bottom:0;transform:none;width:auto;max-height:calc(100vh - 16px);border-radius:20px 20px 0 0;padding:18px 16px calc(16px + env(safe-area-inset-bottom))}
 .seg label small{display:none}.drop{flex-wrap:wrap}.drop .ghost{margin-left:0;width:100%}.dlg .foot>*{flex:1}
 .pdfwrap,.gfxwrap{padding:12px}.vscreen .cap{font-size:22px}
 .ph>*{order:9}.ph .mark{order:0}.ph>.sp{order:1}.ph .who{order:3}.ph [data-open-search]{order:4}
 .ph .bell{display:none}.who .av{display:none}.who .pi{display:block;width:24px;height:24px}:root.has-photo .who .av{display:grid;width:32px;height:32px}:root.has-photo .who .pi{display:none}.who{min-width:48px;justify-content:center}
 .hamb svg{width:26px;height:26px}
 .tab{font-size:10px;gap:2px;padding:0 1px;min-width:0}.tab span{max-width:100%}
 .conv .cb{max-height:none}
 .mwrap.pick .convs{display:flex}
 .mwrap.pick .conv{display:none}
 .lr.hd{display:none}
 .teambar{align-items:flex-start}
 .teambar .muted{flex:1 1 160px}
 .teambar .picker{width:100%}
 .teambar select{flex:1;min-width:0;max-width:100%}
}
/* One menu: Admin is a single group. Team view sits on the shared page. */
.adm-sep{height:1px;background:var(--line);margin:10px 4px}
.nav.adm svg{color:var(--red-text)}
.nav .badge{margin-left:auto;font-size:10px;padding:3px 7px}
.sub-nav{display:flex;flex-direction:column;gap:2px;margin:2px 0 4px 18px;padding-left:8px;border-left:1px solid rgba(197,0,0,.45);min-width:0}
.sub-nav .nav{min-height:40px;font-size:14px;color:#cfcfd6;padding:0 8px;gap:10px;white-space:normal}
.teambar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 16px;padding:10px 12px;border:1px solid rgba(197,0,0,.45);border-radius:12px;background:rgba(197,0,0,.06);font-size:13px;color:#ddd}
.teambar svg{width:16px;height:16px;color:var(--red-text)}
.teambar .sp{flex:1}
.teambar .muted{min-width:0}
.picker{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:600;min-width:0}
.teambar select{min-height:40px;padding:0 12px;border:1px solid rgba(255,255,255,.18);border-radius:10px;background:#16161a;color:#fff;font:500 14px Inter,sans-serif;max-width:100%}
.lr.team{grid-template-columns:72px minmax(0,2fr) 120px minmax(0,1fr) minmax(140px,1.2fr)}
.lr.hd{color:var(--muted);font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;cursor:default}
.lr.hd:hover{background:transparent}
.drawer .sub-nav .nav{min-height:44px}
@media (max-width:760px){
 .lr.team{grid-template-columns:64px minmax(0,1fr);gap:4px 12px}
 .lr.team .thumb{grid-row:span 3}
 .lr.team>*:not(.thumb){grid-column:2;min-width:0}
}
/* Phone: page title, 5-item bar, logo sheet, docked search. No hamburger. Desktop sidebar is unchanged. */
.mtop,.mbar,.lsheet,.mso,.lscrim2{display:none}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
mark{background:rgba(255,77,77,.22);color:#fff;border-radius:3px;padding:0 1px}
.search.live{border:2px solid var(--red);color:#fff;width:420px;max-width:min(420px,46vw);background:#111}
.sdim{position:fixed;inset:64px 0 0 0;background:rgba(0,0,0,.45);z-index:25}
.sdrop{position:fixed;z-index:45;width:min(640px,calc(100vw - 24px));max-height:min(70vh,calc(100vh - 90px));display:flex;flex-direction:column;background:#111114;border:1px solid var(--line);border-top:2px solid var(--red);border-radius:14px;box-shadow:0 24px 60px rgba(0,0,0,.7);overflow:hidden}
.sres{overflow:auto;padding:4px 8px 8px;min-height:0}
.sfilt{display:flex;flex-wrap:wrap;gap:6px;padding:10px 12px 8px;border-bottom:1px solid var(--line)}
.sfilt .chip{min-height:32px;padding:0 10px;font-size:12.5px;background:none;color:inherit;cursor:pointer}
.sfilt .chip b{margin-left:5px;font-weight:700;color:var(--muted)}
.sfilt .chip.on{background:var(--red);border-color:var(--red);color:#fff}
.sfilt .chip.on b{color:#fff}
.sg{margin-top:6px}
.sg h4{display:flex;align-items:center;gap:8px;margin:8px 8px 2px;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.sg h4 .c{font-size:11px;background:#2a2a33;color:#ddd;border-radius:999px;padding:1px 7px;letter-spacing:0}
.sg h4 .all{margin-left:auto;text-transform:none;letter-spacing:0;font-size:12px;color:#ddd;text-decoration:underline}
.sr{display:flex;align-items:center;gap:10px;min-height:52px;padding:4px 8px;border-radius:10px}
.sr .main{flex:1;min-width:0;display:flex;align-items:center;gap:10px;min-height:44px}
.sr.act{background:rgba(255,255,255,.07);box-shadow:inset 3px 0 0 var(--red)}
.sr .ic{width:34px;height:34px;flex:none;border-radius:9px;background:#1c1c22;display:grid;place-items:center}
.sr .ic svg,.sr .ic img{width:18px;height:18px}
.sr .tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.sr .tx b{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sr .tx small{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qa{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border-radius:999px;border:1px solid rgba(255,255,255,.22);background:#1a1a1f;color:#fff;font-size:13px;font-weight:700;white-space:nowrap;flex:none;cursor:pointer}
button.qa{font:700 13px Inter,system-ui,sans-serif}
.qa.red{background:var(--red);border-color:var(--red);color:#fff}
.sfoot{display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:9px 14px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.sfoot kbd{font:600 11px Inter,sans-serif;border:1px solid var(--line);border-radius:5px;padding:1px 5px;color:#ddd}
.sfoot .sp{flex:1}
.sfoot a{text-decoration:underline;color:#ddd}
.sres .empty{padding:16px;color:var(--muted)}
.sres .call{margin:8px}
html.sheet-lock,html.sheet-lock body{overflow:hidden}
@media (max-width:760px){
 html.mnav{--bar-h:72px;--safe:env(safe-area-inset-bottom,0px)}
 html.mnav .ph,html.mnav .tabs{display:none!important}
 html.mnav main{padding:18px 16px calc(var(--bar-h) + var(--safe) + 24px)}
 html.mnav main h1{display:none}
 html.mnav .toast{bottom:calc(var(--bar-h) + var(--safe) + 16px)}
 .mtop{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:10px;height:56px;padding:0 16px;background:var(--bg);border-bottom:2px solid var(--red)}
 .mtop .pic{width:26px;height:26px;display:grid;place-items:center;flex:none}
 .mtop .pic svg,.mtop .pic img{width:24px;height:24px}
 .mtop .pn{font:400 28px/1 'Bebas Neue',sans-serif;letter-spacing:.04em;padding-top:3px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .mbar{position:fixed;left:0;right:0;bottom:0;z-index:58;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;height:calc(var(--bar-h) + var(--safe));padding:0 2px var(--safe);background:var(--bg);border-top:1px solid var(--line)}
 .mb{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:44px;min-width:0;width:100%;font-size:11px;font-weight:600;color:var(--muted);position:relative;border:0;background:none;padding:4px 0}
 .mb .mlb{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .mbar .off{visibility:hidden;pointer-events:none}
 .mb svg,.mb img{width:26px;height:26px}
 .mb[aria-current=page],.mb[aria-expanded=true]{color:#fff}
 .mb[aria-current=page]::before,.mb[aria-expanded=true]::before{content:"";position:absolute;top:-1px;left:30%;right:30%;height:3px;border-radius:0 0 3px 3px;background:var(--red)}
 .mb .dot{position:absolute;top:4px;left:calc(50% + 8px);min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--red);color:#fff;font-size:11px;display:grid;place-items:center}
 .mlogo{justify-self:center;align-self:end;position:relative;width:60px;height:60px;min-width:44px;min-height:44px;padding:0;border:0;background:none;line-height:0;margin-top:-14px}
 .mlogo img{width:60px;height:60px;display:block;background:none}
 .mlogo .dot{position:absolute;top:-6px;right:-10px;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--red);color:#fff;font:700 11px/20px Inter,sans-serif;border:2px solid var(--bg)}
 .mlogo[aria-expanded=true]::before{content:"";position:absolute;top:-6px;left:14px;right:14px;height:3px;border-radius:3px;background:var(--red)}
 .lscrim2{position:fixed;inset:0;display:block;background:rgba(0,0,0,.66);z-index:55}
 .lsheet{position:fixed;left:0;right:0;bottom:calc(var(--bar-h) + var(--safe));z-index:56;max-height:calc(100vh - var(--bar-h) - var(--safe) - 24px);max-height:calc(100dvh - var(--bar-h) - var(--safe) - 24px);display:flex;flex-direction:column;background:#111114;border-top:2px solid var(--red);border-radius:20px 20px 0 0;box-shadow:0 -18px 50px rgba(0,0,0,.7);padding:0 12px 10px;animation:sheet-rise .24s cubic-bezier(.2,.8,.2,1)}
 .lsheet .grab{display:block;width:40px;height:5px;border-radius:3px;background:rgba(255,255,255,.28);margin:8px auto 6px;touch-action:none}
 .lsheet .body{overflow:auto;min-height:0;overscroll-behavior:contain;display:flex;flex-direction:column;gap:2px}
 .prof{display:flex;align-items:center;gap:10px;padding:2px 2px 8px;touch-action:none}
 .prof .av{width:40px;height:40px;flex:none}
 .prof .tx{flex:1;min-width:0}
 .prof b{display:block;font-size:16px}
 .prof small{display:block;font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .prof .x{min-width:44px;min-height:44px;border-radius:50%;border:1px solid var(--line);background:transparent;color:#fff;font-size:16px}
 .pacts{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;padding:0 0 8px;margin-bottom:8px}
 .pacts a,.pacts button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;min-width:0;border:1px solid var(--line);border-radius:999px;background:transparent;color:inherit;font-size:13px;font-weight:600;padding:0 8px}
 .pacts svg{width:16px;height:16px;flex:none}
 .ai{display:flex;align-items:center;gap:10px;min-height:50px;padding:2px 4px 2px 8px;border-radius:12px}
 .ai .main{flex:1;min-width:0;display:flex;align-items:center;gap:12px;min-height:46px}
 .ai .main>svg,.ai .main>img{width:22px;height:22px;flex:none}
 .ai .tx{min-width:0;display:flex;flex-direction:column;gap:1px}
 .ai .tx b{font-size:15px;font-weight:600}
 .ai .tx b .n{font-size:11px;font-weight:700;border-radius:999px;padding:1px 7px;margin-left:6px;background:var(--red);color:#fff;vertical-align:1px}
 .ai .tx small{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .ai.isub{min-height:44px;padding-left:42px}
 .ai.isub .tx b{font-size:13.5px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .lgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:8px 0 4px;border-top:1px solid var(--line);margin-top:4px}
 .lg{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:52px;min-width:0;border-radius:12px;background:#17171c;font-size:12px;font-weight:600;color:#ddd;text-align:center;padding:4px}
 .lg span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .lg svg,.lg img{width:22px;height:22px}
 .lg[aria-current=page]{background:rgba(197,0,0,.18);color:#fff;box-shadow:inset 0 0 0 1px rgba(197,0,0,.7)}
 .lg.adm svg{color:#ff4d4d}
 .lg.adm{box-shadow:inset 0 0 0 1px rgba(197,0,0,.45)}
 .admline{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:6px 0 2px;font-size:12px;color:var(--muted)}
 .admline a{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 10px;border:1px solid rgba(197,0,0,.45);background:rgba(197,0,0,.07);border-radius:10px;font-size:12.5px;font-weight:600;color:#fff}
 .admline a[aria-current=page]{box-shadow:inset 3px 0 0 var(--red)}
 .admline svg{width:14px;height:14px}
 .lfoot{display:grid;grid-template-columns:1fr 1.7fr;gap:8px;padding:0 0 8px;border-bottom:1px solid var(--line);margin:0 0 4px}
 .lfoot a{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border:1px solid var(--line);border-radius:999px;font-size:14px;font-weight:600;white-space:nowrap}
 .lfoot svg{width:18px;height:18px}
 .lfoot.one{grid-template-columns:1fr}
 .lfoot a.adm{color:#fff;border-color:rgba(225,29,46,.55);background:rgba(225,29,46,.10)}
 .lfoot a.adm svg{color:#ff4d4d}
 .lfoot a.adm[aria-current=page]{background:rgba(225,29,46,.22)}
 .mso{position:fixed;left:0;right:0;top:58px;bottom:calc(var(--bar-h) + var(--safe));z-index:57;display:flex;flex-direction:column;background:var(--page)}
 .mso .sres{flex:1}
 .mso .sr{min-height:52px}
 .mso .sfilt{order:2;border-bottom:0;border-top:1px solid var(--line);padding:8px 10px 6px}
 .mso .live{padding:6px 16px 2px;font-size:12px;color:var(--muted)}
 .mso .dock{order:3;padding:2px 10px 10px}
 .mso .field{display:flex;align-items:center;gap:8px;height:50px;padding:0 6px 0 14px;border:2px solid var(--red);border-radius:999px;background:#111}
 .mso .field svg{width:18px;height:18px;color:var(--muted);flex:none}
 .mso .field input{flex:1;min-width:0;border:0;background:transparent;color:#fff;font:16px Inter,sans-serif;outline:none}
 .mso .field .x{margin-left:auto;min-width:40px;min-height:40px;border:0;background:transparent;color:var(--muted);font-size:16px}
}
@keyframes sheet-rise{from{transform:translateY(100%)}to{transform:none}}
@media (prefers-reduced-motion:reduce){
 .lsheet{animation:sheet-fade .1s linear}
}
@keyframes sheet-fade{from{opacity:0}to{opacity:1}}
body.out .mtop,body.out .mbar,html.embed .mtop,html.embed .mbar,html.embed .lsheet,html.embed .mso{display:none!important}

/* ===== Phase 2 pages: Finances, Projects, Messages list, Account (dark only, same palette) ===== */
/* Feature 7: the portal draws its own clear button, so hide the browser's. */
input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none;appearance:none;display:none}
.r{color:var(--red-text)}.g{color:var(--green)}.red{color:var(--red-text)}.amber{color:var(--amber)}
.lnk{text-decoration:underline;text-underline-offset:3px;color:#fff}
.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.row .sp{flex:1}
.act-btn.sm,.ghost.sm{min-height:36px;padding:0 12px;font-size:13px}.ghost.sm{display:inline-flex;align-items:center;gap:6px}
a.ghost{display:inline-flex;align-items:center;justify-content:center}
.act-btn.danger{background:#7a0000}.danger-t{color:var(--red-text)}
.empty{padding:14px 0}
main h1 svg,main h1 img.ico-img{width:30px;height:30px;vertical-align:-3px;margin-right:10px}
.nav .nb{margin-left:auto;font-size:12px;font-weight:700;background:var(--red);color:#fff;border-radius:999px;padding:2px 8px;white-space:nowrap}.nav .nb.soft{background:#2a2a33}
.card2{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:16px}
.card2 h3{display:flex;align-items:center;gap:8px;font-size:15px;margin:0 0 10px}
.c{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#2a2a33;font-size:12px;font-weight:700;color:#ddd}
/* chips that are links (filters) */
.chiprow{display:flex;align-items:center;gap:8px;margin:14px 0 0;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}.chiprow::-webkit-scrollbar{display:none}
.chiprow .chip{flex:none;white-space:nowrap}.chiplab{flex:none;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-right:2px}
.plabel{display:inline-flex;align-items:center;gap:4px;margin-left:6px;font-size:11px;font-weight:600;padding:2px 8px;border-radius:999px;background:#1f1f26;color:#cfcfd6;border:1px solid var(--line);vertical-align:1px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.plabel svg{width:11px;height:11px}
/* Finances */
.sum3{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin:18px 0 6px}
.sum{display:flex;flex-direction:column;gap:6px;background:var(--card);border:1px solid var(--line);border-top:3px solid var(--red);border-radius:14px;padding:16px}
.sum.ta{border-top-color:var(--amber)}.sum.tg{border-top-color:var(--green)}
.sum .k{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.1em}.sum .v{font:400 38px/1 'Bebas Neue';letter-spacing:.02em}
.stabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin:18px 0 8px;overflow-x:auto;scrollbar-width:none}.stabs::-webkit-scrollbar{display:none}
.stabs a{flex:none;display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 16px;font-weight:600;color:#cfcfd6;border-bottom:3px solid transparent}
.stabs a[aria-current]{color:#fff;border-bottom-color:var(--red)}
.sech{display:flex;align-items:center;gap:10px;font-size:18px;margin:26px 0 10px;scroll-margin-top:80px}
.appr{max-width:820px;background:var(--card);border:1px solid var(--line);border-left:3px solid var(--amber);border-radius:14px;padding:16px 18px;margin-bottom:12px}
.appr .ah{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.appr .big{font:400 34px/1 'Bebas Neue'}
.tblwrap{overflow-x:auto;border-radius:14px}
.ftbl{margin-top:0}.ftbl th{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:600}
.ftbl td{vertical-align:middle}.ftbl .c-am{font-weight:700;white-space:nowrap}.ftbl .c-dt{white-space:nowrap}.ftbl .c-act{text-align:right;white-space:nowrap}
/* Projects */
.ostrip{display:flex;gap:22px;flex-wrap:wrap;margin:16px 0 4px;font-size:15px}.ostrip b{font-size:18px}
.chipbar{display:flex;align-items:center;gap:10px;margin:14px 0 0}.chipbar>.chiprow{flex:1 1 auto;min-width:0;margin:0}
@media (max-width:520px){.vtoggle .vlab{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.vtoggle button{padding:0 10px;min-width:40px;justify-content:center}}
.vtoggle{display:inline-flex;border:1px solid var(--line);border-radius:999px;padding:3px;flex:none}
.vtoggle button{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:0 12px;border:0;border-radius:999px;background:transparent;font-size:14px}
.vtoggle button[aria-pressed=true]{background:#2a2a33;font-weight:700}
.vtoggle img.ico-img{width:16px;height:16px}
.plist{display:grid;gap:10px;margin-top:16px}
.prow{display:grid;grid-template-columns:minmax(0,2fr) minmax(140px,1fr) minmax(0,1.3fr) auto;gap:16px;align-items:center;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:14px 16px;cursor:pointer}
.prow:hover,.pcard:hover{border-color:rgba(255,255,255,.28)}
.prow .site,.pcard .site{position:relative;z-index:1}
.pprog{display:grid;gap:6px}
.pbar{display:block;height:6px;border-radius:999px;background:#2a2a33;overflow:hidden}.pbar i{display:block;height:100%;background:var(--red);border-radius:999px}
.faces{display:inline-flex;flex:none}.faces>*{width:28px;height:28px;border-radius:50%;margin-left:-6px;border:2px solid var(--card);display:grid;place-items:center;font-size:10px;font-weight:700;background:#2a2a33;object-fit:cover}
.faces>.t{background:var(--red)}.faces>:first-child{margin-left:0}
.ptag{display:inline-flex;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;padding:3px 8px;border-radius:6px;background:#000;color:#fff;margin-right:6px}
.ptag.unread{background:var(--red)}.ptag.on_hold{color:var(--amber)}.ptag.archived{color:var(--muted)}
.pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;margin-top:16px}
.pcard{display:flex;flex-direction:column;background:var(--card);border:1px solid var(--line);border-radius:14px;overflow:hidden;cursor:pointer}
.pcover{display:flex;align-items:flex-end;height:120px;padding:12px;background:linear-gradient(135deg,#5a2a10,#1d1210)}
.pcover.s-on_hold{background:linear-gradient(135deg,#1b2f4a,#121820)}.pcover.s-done{background:linear-gradient(135deg,#1f3a2a,#121a15)}.pcover.s-archived{background:linear-gradient(135deg,#2a2a33,#141418)}
.pbody{display:grid;gap:8px;padding:14px 16px}
.pfoot{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:10px;margin-top:4px}.pfoot .faces{margin-left:auto}
.psum{display:flex;gap:18px;align-items:center;justify-content:space-between;flex-wrap:wrap;background:var(--card);border:1px solid var(--line);border-left:3px solid var(--amber);border-radius:14px;padding:14px 18px;margin:18px 0 6px}
.psum .pp{display:grid;gap:6px;width:min(320px,100%)}
.ptabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin:14px 0 16px;overflow-x:auto;scrollbar-width:none}.ptabs::-webkit-scrollbar{display:none}
.ptabs a{flex:none;display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 14px;font-weight:600;color:#cfcfd6;border-bottom:3px solid transparent}
.ptabs a[aria-current]{color:#fff;border-bottom-color:var(--red)}.ptabs img.ico-img{width:18px;height:18px}
.pcols{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start}
.pcols.wide{grid-template-columns:minmax(0,1fr)}
.pside{display:grid;gap:14px}
.alist{list-style:none;margin:0;padding:0;display:grid;gap:10px}.alist li{display:grid;gap:2px}.alist small{color:var(--dim);font-size:12px}
.mcols{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start}
.mlist{list-style:none;margin:0;padding:0}
.mrow{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);flex-wrap:wrap}.mrow:last-child{border-bottom:0}
.mtx{flex:1;min-width:160px}
.cav{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:50%;background:#2a2a33;font-weight:700;font-size:14px;color:#fff;overflow:hidden;object-fit:cover}
.cav img{width:100%;height:100%;object-fit:cover}.cav.sm{width:32px;height:32px;font-size:11px}.cav.pend{background:transparent;border:1px dashed var(--amber);color:var(--amber)}
.cav.sb{background:#000}
.rtag{font-size:12px;font-weight:700;padding:3px 10px;border-radius:999px;background:#2a2a33}
.msel{min-height:36px;border-radius:10px;padding:0 8px}
.invbox{border-color:rgba(197,0,0,.6)}.irow{display:grid;grid-template-columns:1fr 1.4fr;gap:10px;margin-bottom:8px}@media (max-width:560px){.irow{grid-template-columns:1fr}}.rtag.pm{background:rgba(201,168,76,.18);color:#e6c76a}.invbox textarea{width:100%;min-height:96px;border-radius:10px;padding:10px;font:14px Inter}
.ires{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:4px;font-size:13px}
.tadd{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:12px}.tadd input[name=title]{flex:1;min-width:200px}
.tadd input,.tadd select{min-height:44px;border-radius:10px;padding:0 10px}
.tlist{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.trow{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:start;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:12px 14px}
.trow.done .ttx b{text-decoration:line-through;color:var(--muted)}.trow.hl{border-color:var(--red)}
.tbox{display:grid;place-items:center;width:28px;height:28px;margin:8px;border-radius:8px;border:2px solid #55555f;background:transparent;font-weight:800;color:#fff}
button.tbox:hover{border-color:var(--red)}.tbox.on{background:var(--green);border-color:var(--green);color:#000}
.tchk{display:grid;place-items:center;min-width:44px;min-height:44px}
.tnotes{display:block;margin-top:6px;white-space:pre-wrap;color:#cfcfd6}
.tact{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.tcom{grid-column:1/-1;border-top:1px solid var(--line);padding-top:10px;display:grid;gap:8px}
.tcm p{margin:2px 0 0;white-space:pre-wrap;font-size:14px}.tcm.int{border-left:3px solid var(--amber);padding-left:8px}
.tcform textarea{width:100%;min-height:70px;border-radius:10px;padding:8px;font:14px Inter}
.pthread{background:var(--card);border:1px solid var(--line);border-radius:14px;overflow:hidden}.pthread .cb{max-height:520px}
/* Messages: conversation list */
.cwrap{display:grid;grid-template-columns:380px minmax(0,1fr);gap:0;background:var(--card);border:1px solid var(--line);border-radius:14px;overflow:hidden;min-height:600px}
.cleft{border-right:1px solid var(--line);min-width:0;display:flex;flex-direction:column}
.clist{display:flex;flex-direction:column;padding:8px}
.csearch{display:flex;align-items:center;gap:8px;margin:4px 4px 8px;padding:0 12px;min-height:40px;border-radius:10px;background:#1b1b21;color:var(--muted)}
.csearch input{flex:1;min-width:0;border:0;background:transparent;font:14px Inter;outline:none;color:#fff}
.crow{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:center;padding:10px 10px;border-radius:12px;position:relative}
.crow::after{content:"";position:absolute;left:66px;right:10px;bottom:0;height:1px;background:var(--line)}
.crow:hover{background:rgba(255,255,255,.05)}
.crow.on{background:var(--red)}.crow.on::after{display:none}.crow.on .cprev,.crow.on time,.crow.on .plabel{color:#fff}
.crow[hidden]{display:none}
.cmid{min-width:0;display:grid;gap:2px}
.ctop{display:flex;align-items:baseline;gap:8px}.ctop b{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ctop time{flex:none;font-size:12px;color:var(--muted)}
.cprev{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cprev.lab{font-style:italic}
.crow.un .cprev{color:#e6e6ea;font-weight:600}
.udot{flex:none;width:9px;height:9px;border-radius:50%;background:#2f7bff}.crow.on .udot{background:#fff}
.crow .plabel{margin-left:0;justify-self:start}
.cact{padding:4px 14px 16px;border-top:1px solid var(--line)}.cact .sec2{font-size:20px;margin:14px 0 8px}
.arow{display:flex;gap:10px;align-items:flex-start;padding:8px 0}
.cempty{display:grid;place-items:center}
.cback{display:none}
.conv .cb{flex:1;overflow:auto;padding:16px;display:grid;align-content:start;gap:12px;min-height:280px}
/* Account */
.acols{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px;align-items:start;max-width:980px}
.acols input{min-height:44px;border-radius:10px;padding:0 12px;font:15px Inter;width:100%}
.acols input[readonly]{color:var(--muted)}
.avrow{display:flex;gap:16px;align-items:center;margin-bottom:16px;flex-wrap:wrap}
.bigav{display:grid;place-items:center;width:88px;height:88px;border-radius:50%;background:#2a2a33;font:700 28px Inter;object-fit:cover;flex:none}
/* Reset page */
.resetm{display:grid;place-items:start center;padding-top:40px}
.lb.static{position:static;width:min(420px,100%)}
.lb .admincode{margin:8px 0 12px;font-size:14px}.lb .admincode summary{cursor:pointer;min-height:44px;display:flex;align-items:center}
.lb a.go{display:flex;align-items:center;justify-content:center}
@media (max-width:1100px){.pcols{grid-template-columns:1fr}.mcols{grid-template-columns:1fr}.prow{grid-template-columns:minmax(0,1fr) auto}.prow .pprog,.prow .pmeta{grid-column:1/-1}}
@media (max-width:760px){
 .cwrap{grid-template-columns:1fr;min-height:0;border:0;background:transparent}
 .cleft{border-right:0}.cwrap.open .cleft{display:none}.cwrap:not(.open) .conv{display:none}
 .cwrap.open .conv{background:var(--card);border:1px solid var(--line);border-radius:14px}
 .cback{display:grid;place-items:center;min-width:44px;min-height:44px;margin-left:-8px}
 .clist{padding:0}.crow.on{background:transparent}.crow.on .cprev,.crow.on time{color:var(--muted)}
 .ftbl{display:block!important;margin-top:0}.ftbl thead{display:none}.ftbl tbody{display:block}
 .ftbl tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;align-items:center;padding:12px 14px;border-bottom:1px solid var(--line)}.ftbl tr:last-child{border-bottom:0}
 .ftbl td{padding:0;border:0}.ftbl .nm,.ftbl .c-cl{grid-column:1/-1}.ftbl .c-cl{color:var(--muted);font-size:13px}
 .ftbl .c-dt{color:var(--muted);font-size:13px}.ftbl .c-am{text-align:right}.ftbl .c-act{text-align:right}
 .sum .v{font-size:32px}
 .ostrip{gap:12px;font-size:14px}
 .trow{grid-template-columns:auto minmax(0,1fr)}.tact{grid-column:1/-1;justify-content:flex-start}
 .prow{padding:12px}
 .resetm{padding:20px 16px}
}

@media (max-width:760px){html.mnav main h1.keep{display:block;font-size:34px}}
.qrbox{display:grid;place-items:center;background:#fff;border-radius:12px;padding:12px;width:220px;margin:0 auto 12px}.qrbox svg{width:196px;height:196px}
.mono{font-family:ui-monospace,Menlo,monospace;font-size:14px;letter-spacing:.04em}.bcodes{columns:2;margin:0 0 12px;padding-left:22px;line-height:2}
/* Phase E people: card list grouped by company on every width (issue #14), type tags */
.role.prospect{background:#4a3a12;color:#f0d38a}.role.collaborator{background:#14403a;color:#9fe3d4}
.ucards{grid-template-columns:minmax(0,1fr) 340px}.ucards .panel{position:sticky;top:76px}
.ulist .mlist{display:grid;gap:8px}.ulist .ucard{color:inherit;text-decoration:none}
.ucard.on{border-color:rgba(197,0,0,.7);background:#1a1012}
.ugrp{margin:18px 0 8px}.ugrp:first-child{margin-top:12px}
.ubtns{display:grid;gap:8px;margin-bottom:14px}.ubtns>*{width:100%}
.panel select{min-height:44px;background:#000;color:#fff;border:1px solid var(--line);border-radius:10px;padding:0 10px}
@media (max-width:760px){.ucards{grid-template-columns:1fr}}
.rtag.collaborator{background:#14403a;color:#9fe3d4}
.ppick{list-style:none;margin:0 0 12px;padding:0;max-height:300px;overflow:auto;border:1px solid var(--line);border-radius:12px}
.prow2{display:flex;align-items:center;gap:10px;padding:8px 10px;border-bottom:1px solid var(--line)}.prow2:last-child{border-bottom:0}
.prow2 label{display:flex;align-items:center;gap:10px;flex:1;min-width:0;cursor:pointer}.prow2 input[type=checkbox]{width:20px;height:20px;accent-color:var(--red);flex:none}
.prow2.off{opacity:.55}.prow2.off label{cursor:default}
.prow2 select{min-height:40px;background:#000;color:#fff;border:1px solid var(--line);border-radius:10px;padding:0 8px;flex:none}
@media (max-width:760px){.prow2{flex-wrap:wrap}.prow2 select{width:100%}}
/* Sidebar collapse: a rail of icons (desktop, and phones held sideways). Below 761px the bottom bar replaces it. */
html.side-anim .shell{transition:grid-template-columns .18s ease}
.sidecol{align-self:flex-end;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;margin:-4px 0 6px;border-radius:10px;border:1px solid var(--line);background:transparent;color:#cfcfd6;cursor:pointer;flex:none}
.sidecol:hover{background:rgba(255,255,255,.06);color:#fff}.sidecol:focus-visible{outline:2px solid var(--red);outline-offset:2px}
.sidecol .chev{transition:transform .18s ease;transform-origin:14.5px 12px}
@media (min-width:761px){
 html.side-mini .shell{grid-template-columns:72px minmax(0,1fr)}
 html.side-mini .side{padding:16px 10px;align-items:center}
 html.side-mini .sidecol{align-self:center}
 html.side-mini .sidecol .chev{transform:scaleX(-1)}
 html.side-mini .side .nav{width:48px;min-height:48px;padding:0;justify-content:center;position:relative;gap:0}
 html.side-mini .side .nav>span:not([class]),html.side-mini .side .nav .badge{display:none}
 html.side-mini .side .nav[aria-current=page]{box-shadow:inset 0 -3px 0 var(--red)}
 /* counts become a small bubble on the icon */
 html.side-mini .side .nav .nb,html.side-mini .side .nav .n,html.side-mini .side .nav .dot{position:absolute;top:2px;right:0;margin:0;font-size:10px;line-height:1;padding:3px 5px;min-width:16px;text-align:center;max-width:44px;overflow:hidden;text-overflow:clip;white-space:nowrap}
 html.side-mini .side .nav.adm svg{color:var(--red-text)}
 html.side-mini .adm-sep{width:40px;margin:10px auto}
 html.side-mini .toggle{margin:auto 0 0;padding:10px 0 0;width:48px}
 html.side-mini .toggle .ib{justify-content:center;padding:0;width:48px}
 html.side-mini .toggle .ib span{display:none}
}
@media (min-width:761px){
 html.side-mini .side .nav [data-n]{font-size:0}
 html.side-mini .side .nav [data-n]::after{content:attr(data-n);font-size:10px}
}
/* Project page (Oct 27): Invite · Upload · gear; the project's conversation in the Messages view; People on the side; Settings pane */
.pact{display:inline-flex;align-items:center;gap:8px}
.pgear{width:48px;padding:0;justify-content:center}.pgear.on{border-color:var(--red);background:rgba(197,0,0,.15)}
.pconv{background:var(--card);border:1px solid var(--line);border-radius:14px;overflow:hidden}.pconv .cb{max-height:560px}
.plist2{list-style:none;margin:0;padding:0;display:grid;gap:10px}.plist2 li{display:flex;align-items:center;gap:10px;min-width:0}
.plist2 li>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis}.plist2 .cav{width:34px;height:34px;flex:none;font-size:13px}
.plist2 img.cav{border-radius:50%;object-fit:cover}.plist2 .cav.pend{border:1px dashed #c9a84c;background:transparent;color:#e6c76a}
.psettings{display:grid;gap:14px}.psettings .mcols{grid-template-columns:1fr}
.pcoverbox{border-radius:10px;overflow:hidden;background:#141418;min-height:80px;display:grid;place-items:center;padding:0}
.pcoverbox img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}.pcoverbox .muted{padding:16px}
.pcover.img{background-size:cover;background-position:center}
.ni{position:relative}.ni .nx{position:absolute;top:8px;right:8px;width:32px;height:32px;border:0;border-radius:8px;background:transparent;color:var(--muted);cursor:pointer;font-size:14px}
.ni .nx:hover{background:rgba(255,255,255,.08);color:#fff}.ni>div{padding-right:28px}
/* Sign-in page (Oct 27): the form is part of the page, under the heading */
.lb.static.inpage{margin:8px auto 40px;border-top:3px solid var(--red);border-radius:14px}
@media (max-width:760px){.lb.static.inpage{position:static;border-left:1px solid var(--line);border-right:1px solid var(--line);border-radius:14px;padding:20px 16px 24px}}
body.out .ph .search,body.out .ph [data-open-search]{display:none}
/* Services (Oct 27): client cards, request bar, team Requests and the estimate editor */
.svc-h{margin:26px 0 10px;font-size:20px}
.svc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}
.svc .svc-n{font-size:17px}.svc-p{font-weight:700;color:#fff}.svc .act-btn,.svc .ghost{margin-top:auto;align-self:flex-start}
.ghost.on{background:var(--red);border-color:var(--red);color:#fff}
.ghost svg,.act-btn svg{flex:none}
.slist{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--card)}
.srow{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:12px;align-items:center;padding:12px 16px;border-top:1px solid var(--line)}.srow:first-child{border-top:0}.srow.off{opacity:.55}
.reqbar{position:sticky;bottom:calc(var(--tabs-h) + 10px);display:flex;align-items:center;gap:12px;margin-top:18px;padding:10px 12px 10px 18px;background:#0d0d10;border:1px solid var(--line);border-top:3px solid var(--red);border-radius:14px;box-shadow:0 12px 30px rgba(0,0,0,.6);z-index:20}
.reqbar .sp{flex:1}
@media (min-width:761px){.reqbar{bottom:16px}}
.sreq{margin-bottom:12px}.sreq-h{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.sreq-h .sp{flex:1}.sreq .row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.rst{min-height:40px;border:1px solid var(--line);border-radius:10px;background:#111;color:#fff;padding:0 10px;font:14px Inter}
.sdone{margin-top:18px}.sdone summary{cursor:pointer;color:var(--muted);margin-bottom:12px}
.fgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}
.dlg.wide{width:min(980px,calc(100% - 24px))}
.ehead,.eline{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1.6fr) 80px 110px 110px 36px;gap:8px;align-items:center}
.ehead{margin:6px 0}.eline{margin-bottom:8px}
.eline select,.eline input{min-height:44px;border:1px solid var(--line);border-radius:10px;background:#111;color:#fff;padding:0 10px;font:15px Inter;width:100%;min-width:0}
.eline .eamt{text-align:right;font-weight:700}.etot{margin:14px 0 4px;font-size:15px}
@media (max-width:760px){
 .srow{grid-template-columns:minmax(0,1fr) auto}.srow>.sm2.muted{display:none}
 .ehead{display:none}.eline{grid-template-columns:1fr 1fr;padding:10px;border:1px solid var(--line);border-radius:10px}.eline select,.eline [name=label]{grid-column:1/-1}
 .fgrid{grid-template-columns:1fr}
}
/* Project actions (Oct 27): Invite, Upload and the gear share one size and one type style, on one row on phones */
.head-row .pact{min-height:44px;padding:0 18px;border-radius:999px;font-size:14px;font-weight:700;text-transform:none;letter-spacing:0;white-space:nowrap}
.head-row .pact.pgear{width:44px;padding:0;flex:none}
.head-row .row:has(.pact){display:flex;gap:8px;align-items:center;flex-wrap:nowrap}
@media (max-width:760px){
 .head-row .row:has(.pact){width:100%;flex:1 1 100%}
 .head-row .row .pact:not(.pgear){flex:1 1 0;width:auto;justify-content:center;min-width:0}
}
/* Admin → Users (Oct 27): contact fields; switches that don't apply to the Type are hidden */
.perm[hidden]{display:none}
.panel .cf{display:grid;gap:4px;font-size:12.5px;font-weight:600;color:var(--muted);margin-bottom:8px}
.panel .cf input{min-height:44px;border:1px solid var(--line);border-radius:10px;background:#000;color:#fff;padding:0 12px;font:15px Inter;width:100%}
/* Search suggestions (Oct 27): the call link is a small row, not a giant icon */
.sres a.call{display:inline-flex;align-items:center;gap:8px;color:#fff;font-weight:600}.sres a.call svg{width:18px;height:18px;flex:none}
/* Notifications (Oct 27): under the staging banner; one header row; every card the same, unread = a red bar */
.np{top:var(--stg-h,0px)}
.np .nh{flex-wrap:nowrap}.np .nh .ghost{min-height:36px!important;padding:0 12px;font-size:13px;white-space:nowrap;flex:none}.np .nh h2{min-width:0;font-size:26px}
.ni.un{border-color:var(--line);box-shadow:inset 3px 0 0 var(--red);background:#141418}
.mso:has(.sres .empty) .live{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
/* Badges (Oct 27): white on red, never pink on red */
.nav .n.r,.side .nav .n.r,.nav[aria-current] .n.r,.tab .dot,.nav .dot{color:#fff!important;background:var(--red);opacity:1}
/* Logo sheet: one row however many squares (Home, Finances, Services, Blog, Admin) */
.lgrid{grid-template-columns:none!important;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
/* Recent, under Home in the sidebar */
.recents{display:grid;gap:2px;margin:2px 0 8px 14px;padding-left:12px;border-left:1px solid var(--line)}
.recents .rlab{margin:4px 0 2px;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.recents .rec{display:flex;align-items:center;gap:8px;min-height:32px;padding:0 8px;border-radius:8px;font-size:13px;color:#cfcfd6;min-width:0}
.recents .rec span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.recents .rec svg{flex:none;opacity:.8}.recents .rec:hover{background:rgba(255,255,255,.06);color:#fff}.recents .rec[aria-current]{color:#fff;background:rgba(197,0,0,.14)}
html.side-mini .recents{display:none}
/* Services → Your website (Oct 27) */
.wcard{margin:8px 0 6px;gap:12px}
.wdl{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:8px 18px;margin:0;font-size:14px}
.wdl dt{color:var(--muted);font-weight:600}.wdl dd{margin:0;min-width:0;overflow-wrap:anywhere}
.wcard .row,.sreq .row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.svc.cur{border-color:var(--green);border-top-color:var(--green)}
.ptag.ok{background:rgba(76,195,138,.16);color:var(--green)}
.svc .ptag{align-self:flex-start}
/* Recent in the phone's logo sheet (Oct 27) */
.srecent{display:grid;gap:2px;padding:8px 0 10px;border-top:1px solid var(--line)}
.srecent .rlab{margin:2px 4px 6px;font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.srecent .rec{display:flex;align-items:center;gap:12px;min-height:48px;padding:0 10px;border-radius:12px;font-size:16px;color:#f2f2f2;min-width:0}
.srecent .rec svg{width:20px;height:20px;flex:none;opacity:.85}
.srecent .rec span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.srecent .rec[aria-current]{background:rgba(197,0,0,.14)}
.dlg fieldset.addons{border:0;padding:0;margin:0 0 8px;min-width:0;display:grid;gap:8px}.dlg fieldset.addons legend{padding:0;margin-bottom:4px}
.mlink{color:#fff;text-decoration:underline;overflow-wrap:anywhere}.mlink:hover{color:#ff8080}

/* Edit / delete your own messages and comments (MESSAGE-EDIT-DELETE-PLAN). */
.rmenu{position:relative;display:inline-block}.bub .rmenu{justify-self:start}.bub.me .rmenu{justify-self:end}
.rmenu>summary{list-style:none;cursor:pointer;min-height:32px;min-width:36px;display:inline-grid;place-items:center;border-radius:6px;color:var(--muted);font-weight:700;letter-spacing:.08em;user-select:none}
.rmenu>summary::-webkit-details-marker{display:none}.rmenu>summary:hover,.rmenu[open]>summary{background:rgba(255,255,255,.07);color:#fff}
.rmenu>summary:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
/* Opens inline (not floating) so a scrolling thread can't clip it. */
.rmenu[open]{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.bub.me .rmenu[open]{flex-direction:row-reverse}
.rmenu-list{display:flex;gap:4px;padding:2px;background:var(--soft);border:1px solid var(--line);border-radius:10px}
.rmenu-list button{min-height:44px;padding:0 12px;border:0;background:transparent;color:var(--fg);text-align:left;font-size:14px;font-weight:600;border-radius:6px}
.rmenu-list button:hover{background:rgba(255,255,255,.07)}.rmenu-list button.danger{background:transparent;color:var(--red-text)}
.edl{font-style:italic}
.bub.del .bx,.msg.del p{font-style:italic;color:var(--muted);background:transparent;border:1px dashed var(--line)}
.msg.del p{border:0;padding:0}
.redit{display:grid;gap:8px;min-width:min(320px,100%)}.redit textarea{width:100%;min-height:80px;resize:vertical;font:inherit;padding:10px 12px;border-radius:12px;border:1px solid var(--line);background:#0f0f12}
.redit .row,.rconfirm{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.rconfirm{margin-top:6px;font-size:14px}.rconfirm .act-btn.danger{background:#7a0000}

/* Players take their video's shape (--ar "W / H", --arn W/H as a number; set by fitPlayer in media/ui.js), so vertical,
   4:3 and wide videos aren't cropped or boxed. A tall video is limited by the screen height and centered. */
.player{aspect-ratio:var(--ar,16/9);width:min(100%,calc(min(78vh,900px) * var(--arn,1.7778)));margin-inline:auto}
video.player{height:auto}
.media-att.vd{aspect-ratio:var(--ar,16/9)}.media-att.vd.is-vertical{width:min(200px,100%)}

.thread .thead{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.thread .thead h3{margin:0}
.csort{min-height:36px;padding:0 14px;font-size:13px;margin-left:auto}

/* Phone logo sheet (Oct 30): recents are compact (3, no heading) and the page squares stay pinned at the bottom of the
   sheet, so Home / Finances / Services / Blog / Admin are never pushed out of view. */
@media (max-width:760px){
 .srecent{padding:4px 0 6px;gap:0}
 .srecent .rec{min-height:40px;padding:0 10px;font-size:15px;gap:10px}
 .srecent .rec svg{width:18px;height:18px}
 .lsheet .lgrid{position:sticky;bottom:0;z-index:1;background:inherit;background-color:var(--card,#111114);padding-bottom:8px}
}
/* Message threads (Oct 30): a frame that scrolls, not a long page. Header on top, composer at the bottom, the messages
   scroll between them and open at the newest (media/ui.js mountConv). Same on the Messages page and a project's tab. */
.cwrap .conv,.pconv{display:flex;flex-direction:column;height:min(calc(100dvh - 220px),820px);min-height:420px}
.cwrap .conv .cb,.pconv .cb{flex:1 1 auto;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain}
.cwrap .conv .ch,.cwrap .conv .ccomp,.pconv .ch,.pconv .ccomp{flex:none}
@media (max-width:760px){
 .cwrap.open .conv,.pconv{height:calc(100dvh - 56px - var(--bar-h,72px) - var(--safe,0px) - 104px);min-height:360px}
 .ccomp textarea{min-height:56px}
}
/* Tasks, GTD (Oct 30; projects/tasks.js): toolbar, stage groups, rows that open the task, the task dialog. */
.ptabs{display:flex;gap:4px;margin:4px 0 14px;border-bottom:1px solid var(--line)}
.ptabs a{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;color:var(--muted);font-weight:600;border-bottom:2px solid transparent;margin-bottom:-1px}
.ptabs a[aria-selected="true"]{color:#fff;border-bottom-color:var(--red)}
.tbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 14px}.tbar .sp{flex:1}
.tbar select{min-height:40px;border-radius:10px;padding:0 10px;max-width:220px}
.tinbox{min-height:40px;padding:0 14px;border-radius:999px;border:1px solid rgba(240,177,85,.5);background:rgba(240,177,85,.1);color:#f0b155;font-weight:700}
.tinbox[aria-pressed="true"]{background:#f0b155;color:#000}.tinbox b{margin-left:4px}
.tgroup{margin:0 0 18px}.tgroup h3{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:#cfcfd6}
.tgroup h3 .lnk{margin-left:auto;text-transform:none;letter-spacing:0;font-weight:600}
.tgroup.s-inbox h3{color:#f0b155}.tgroup.s-in_progress h3{color:#8ab4ff}.tgroup.s-done h3{color:var(--green)}.tgroup.s-someday h3{color:var(--muted)}
.trow{grid-template-columns:auto minmax(0,1fr)}
.tedit{display:block;width:100%;min-width:0;padding:6px 0;border:0;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer}
.tedit:hover b{text-decoration:underline}.tedit:focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:6px}
.tstage{font-weight:700}.tstage.s-inbox{color:#f0b155}.tstage.s-in_progress{color:#8ab4ff}.tstage.s-done{color:var(--green)}
.tproj{display:inline-flex;align-items:center;gap:4px}
@media (min-width:761px){.tdlg{width:min(640px,calc(100vw - 24px))}}.tdlg .ttitle{margin:0 0 6px;font-size:18px}.tdlg .tnotes{white-space:pre-wrap;color:#d8d8de}
.tpeople{display:flex;flex-wrap:wrap;gap:6px 14px;border:1px solid var(--line);border-radius:10px;padding:8px 12px;margin:0 0 12px}
.tpeople legend{padding:0 4px;font-size:13px;font-weight:600}.tpeople label{display:inline-flex;gap:6px;align-items:center;min-height:36px}
.tro{margin:0 0 12px}.tcomments{border-top:1px solid var(--line);margin-top:8px;padding-top:10px}.tcomments h4{margin:0 0 8px}
.tcform textarea{width:100%;min-height:64px;border-radius:10px;padding:10px;margin-top:6px}.tcform .row{display:flex;gap:8px;align-items:center;margin-top:6px}.tcform .sp{flex:1}
@media (max-width:760px){.tbar .sp{display:none}.tbar .tfl{flex:1 1 calc(50% - 4px);min-width:0}.tbar select{max-width:none;width:100%}.tbar .act-btn,.tbar .tinbox{flex:1 1 100%}}
.tgroup h3 [data-fold]{min-height:32px;padding:0 8px;border:0;background:none;color:var(--muted);font:600 13px Inter;text-decoration:underline;cursor:pointer}
.tgroup h3 [data-fold]:hover{color:#fff}.tpeople legend .hint{display:block;font-weight:400}
/* Final Draft scripts (.fdx) in Media (media/ui.js renderScript): a script page in Courier, dark paper. Indents are a
   share of the 6-inch text width (character 2.2", parenthetical 1.6", dialogue 1"–4.5"), so they hold at any width. */
.fdxwrap{max-height:min(78vh,1000px);overflow:auto;background:#08080a;padding:20px 12px}
.fdx{max-width:8.5in;margin:0 auto;background:#141418;border:1px solid var(--line);border-radius:6px;padding:8% 7% 8% 11%;color:#ecece8;
  font:clamp(12px,1.5vw,16px)/1.3 "Courier Prime","Courier New",Courier,monospace;box-shadow:0 10px 30px rgba(0,0,0,.5)}
.fdx p{margin:0 0 1em;white-space:pre-wrap;overflow-wrap:break-word}
.fdx .fdx-sh{text-transform:uppercase;font-weight:700;margin-top:1.5em;position:relative}
.fdx .fdx-sh::before{content:attr(data-n);position:absolute;right:calc(100% + 1.2em);color:var(--muted);font-weight:400}
.fdx .fdx-ch{margin:1em 0 0 37%;text-transform:uppercase}
.fdx .fdx-pa{margin:0 26% 0 27%}
.fdx .fdx-di{margin:0 25% 1em 17%}
.fdx .fdx-ch+.fdx-di,.fdx .fdx-pa+.fdx-di{margin-top:0}
.fdx .fdx-tr{text-align:right;text-transform:uppercase}
.fdx-title{text-align:center;margin:0 0 4em}.fdx-title p{margin:0 0 .4em}
@media (max-width:760px){.fdx{padding:24px 16px;font-size:12px}.fdx .fdx-sh::before{display:none}.fdx .fdx-ch{margin-left:30%}.fdx .fdx-pa{margin:0 12% 0 22%}.fdx .fdx-di{margin:0 8% 1em 12%}}
/* Task board (TASKS-PLAN part 2; projects/tasks.js): five stage columns side by side; swipe between them on a phone. */
/* Board, Basecamp-style (Oct 30): Triage across the top, Next Actions and In Progress below, Not now and Done folded into strips on the right. */
.kbar .kfilter{flex:1 1 200px;max-width:320px}
.kbar .kfilter input{width:100%;min-height:44px;border:1px solid var(--line);border-radius:999px;background:#111;color:#fff;padding:0 16px;font:15px Inter}
.kb2{border-top:1px solid var(--line);margin-top:6px}
.krow{display:grid;grid-template-columns:minmax(0,1fr) 52px}
.kr1{border-bottom:1px solid var(--line)}
.krow>.kcol,.krow>.kcols2{min-width:0;margin-right:14px}
.kgap{border-left:1px solid var(--line)}
.kstrip{min-height:140px;border-left:1px solid var(--line)!important;display:flex;flex-direction:column;align-items:center;gap:10px;padding:14px 0;border:0;border-bottom:1px solid var(--line);background:#0c0c0f;color:var(--muted);cursor:pointer;font:13px Inter}
.kstrip:last-child{border-bottom:0}.kstrip.s-done{background:rgba(76,195,138,.06)}
.kstrip:hover,.kstrip.over{background:rgba(197,0,0,.12);color:#fff}
.kstrip .kv{writing-mode:vertical-rl;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#e6e6ea}
.kstrip:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.kcol{min-width:0;display:flex;flex-direction:column}
.kcol h3{display:flex;gap:6px;align-items:baseline;margin:0;padding:14px 4px 10px;font:700 17px/1.2 Inter;letter-spacing:0;text-transform:none;color:#fff}
.kcol .kn{font-weight:400;color:var(--muted)}
.kfold{margin-left:auto;border:0;background:none;color:var(--muted);font-size:14px;cursor:pointer;padding:2px 6px}
.ktri{padding-bottom:16px}
.ktri .kcards{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));min-height:70px}
.kcols2{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;padding-top:16px;align-items:start}
.kcols2 .kcol{background:#0f0f13;border:1px solid var(--line);border-top:4px solid #8b7cf6;border-radius:10px;padding:0 10px 10px}
.kcols2 .kcol.s-in_progress{border-top-color:#f0a030;background:#13100b}
.kcols2 .kcol.s-done{border-top-color:var(--green)}.kcols2 .kcol.s-someday{border-top-color:#6b6b75}
.kcols2 .kcol h3{padding:12px 4px 10px}
.kcards{list-style:none;margin:0;padding:0;display:grid;gap:10px;align-content:start;min-height:96px;border-radius:8px;transition:background .15s}
.kempty{min-height:96px;border:2px dashed rgba(255,255,255,.12);border-radius:8px;list-style:none}
.ktri .kempty{min-height:70px}
.kcards.over{background:rgba(197,0,0,.08)}
.kcard{position:relative;display:grid;gap:6px;background:var(--card);border:1px solid var(--line);border-radius:8px;padding:14px 14px 12px}
.kcard:hover{border-color:rgba(255,255,255,.24)}
.kcard[draggable]{cursor:grab}.kcard.dragging{opacity:.4}.kcard.done .ktitle{text-decoration:line-through;color:var(--muted)}
.ktop{display:flex;gap:10px;align-items:flex-start;justify-content:space-between}
.ktitle{flex:1;border:0;background:none;color:#fff;font:500 16px/1.35 Inter;text-align:left;padding:0;cursor:pointer;overflow-wrap:anywhere}.ktitle:hover{text-decoration:underline}
.ktitle:focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:4px}
.kface{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#2a2a33;color:#fff;font:700 11px Inter}
.kface.none{background:#1a1a1f;color:var(--muted)}.kface.none img,.kface.none svg{width:14px;height:14px}
.kmeta{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center;font-size:13px;color:var(--muted);padding-right:26px}
.kmeta .tproj{color:#cfcfd6}.kdue.late{color:var(--red-text)}
.kcount{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--red);color:#fff;font:700 11px Inter}
.kmore{position:absolute;right:8px;bottom:8px;width:28px;height:28px;border:0;border-radius:50%;background:transparent;color:var(--muted);font-size:16px;line-height:1;cursor:pointer;opacity:.6}
.kcard:hover .kmore,.kmore:focus-visible,.kmore[aria-expanded=true]{opacity:1;background:#22222a;color:#fff}
.kmenu{position:absolute;right:8px;top:calc(100% - 6px);z-index:20;display:grid;min-width:180px;padding:6px;background:#17171c;border:1px solid var(--line);border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.6)}
.kmenu button{border:0;background:none;color:#f2f2f2;text-align:left;padding:9px 10px;border-radius:6px;font:14px Inter;cursor:pointer}
.kmenu button:hover,.kmenu button:focus-visible{background:rgba(197,0,0,.2);outline:none}
.kmark{min-height:44px;border:2px dashed #f0a030;border-radius:8px;background:rgba(240,160,48,.08);list-style:none}
@media (max-width:760px){.kb2{display:grid;grid-template-columns:1fr 1fr;gap:0 8px}.krow{display:contents}.krow>*{grid-column:1/-1}.krow>.kcol,.krow>.kcols2{margin-right:0}.kr1>.kcol{border-bottom:1px solid var(--line)}.kgap{display:none}
.kb2 .kstrip{grid-column:auto;order:9;margin-top:16px;min-height:48px;flex-direction:row;justify-content:center;border:1px solid var(--line)!important;border-radius:10px}.kstrip .kv{writing-mode:horizontal-tb}
.ktri .kcards{grid-template-columns:1fr}.kmore{opacity:1;width:36px;height:36px}}

/* Board, round 2 (Oct 30): + person assign, quick add, the card side panel. */
.kstrip.over .kv::before{content:"Drop: "}
button.kface{position:relative;border:0;cursor:pointer;padding:0}
button.kface:hover,button.kface:focus-visible{outline:2px solid var(--red-text);outline-offset:1px}
.kface.none{border:1px dashed rgba(255,255,255,.3)!important}
.kface i{position:absolute;right:-3px;bottom:-3px;width:14px;height:14px;border-radius:50%;background:var(--red);color:#fff;font:700 11px/14px Inter;font-style:normal;text-align:center}
.kdue{display:inline-flex;align-items:center;gap:4px}
.kcard.sel{border:2px solid var(--red-text);background:#1c1214}
.kaddtile{list-style:none}.kaddtile button,.kfoot{width:100%;border:1px dashed rgba(255,255,255,.18);border-radius:8px;background:transparent;color:var(--muted);font:600 14px Inter;min-height:56px;cursor:pointer}
.kfoot{border:0;min-height:40px;text-align:left;padding:4px 6px;margin-top:6px}
.kaddtile button:hover,.kfoot:hover{color:#fff;background:rgba(255,255,255,.04)}
.kquick{list-style:none;display:grid;gap:8px;background:#0c0c0f;border:1px solid #8b7cf6;border-radius:8px;padding:10px;margin-top:8px}
.ktri .kquick{margin-top:0}
.kquick textarea{border:0;background:transparent;color:#fff;font:500 15px/1.35 Inter;resize:none;outline:none;min-height:42px;padding:0}
.kquick .row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.kquick .hint{margin-left:auto}
.kassignpop{top:auto;bottom:auto;margin-top:6px;right:8px;top:52px;width:250px}
.kassignpop input{min-height:38px;border-radius:8px;border:1px solid var(--line);background:#0c0c0f;color:#fff;padding:0 10px;font:14px Inter;margin-bottom:4px}
.kalist{display:grid;max-height:260px;overflow:auto}
.kalist button{display:flex;align-items:center;gap:10px}.kalist button[aria-current]{background:rgba(197,0,0,.2)}
.kalist .kface{width:26px;height:26px;font-size:10px}
.kpanel{position:fixed;top:64px;right:0;bottom:0;z-index:25;width:440px;display:flex;flex-direction:column;background:#111114;border-left:1px solid rgba(255,255,255,.14);box-shadow:-20px 0 40px rgba(0,0,0,.45)}
body.kp-open #main{padding-right:460px}
.kph{display:flex;align-items:center;gap:6px;padding:10px 14px;border-bottom:1px solid var(--line)}.kph .sp{flex:1}
.kib{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;border:1px solid rgba(255,255,255,.16);background:transparent;color:#cfcfd6;font:600 15px/1 Inter;cursor:pointer}
.kib:hover,.kib:focus-visible{background:#22222a;color:#fff}
.kpb{flex:1;overflow-y:auto;padding:16px 20px 28px;display:flex;flex-direction:column;gap:12px}
.kpwhere{margin:0;color:var(--muted);font-size:13px}
.kptitle{margin:0;width:100%;min-height:36px;border:1px solid transparent;border-radius:8px;background:transparent;color:#fff;font:700 22px/1.25 Inter;padding:4px 6px;margin-left:-6px;resize:none;overflow:hidden}
textarea.kptitle:hover{border-color:var(--line)}textarea.kptitle:focus{border-color:var(--red-text);outline:none;background:#0c0c0f}
.kpstages{display:flex;gap:4px;flex-wrap:wrap}
.kpstages button{min-height:32px;padding:0 11px;border-radius:999px;border:1px solid rgba(255,255,255,.16);background:transparent;color:#cfcfd6;font:500 13px Inter;cursor:pointer}
.kpstages button[aria-pressed=true]{background:var(--red);border-color:var(--red);color:#fff;font-weight:700}
.kpf{display:grid;grid-template-columns:96px minmax(0,1fr);gap:8px 12px;align-items:center}
.kpl{color:var(--muted);font-size:13px}
.kpf select,.kpf input{width:100%;min-height:38px;border-radius:8px;border:1px solid var(--line);background:#0c0c0f;color:#fff;padding:0 10px;font:14px Inter;color-scheme:dark}
.kpf input.late{color:var(--red-text)}
.kpro{color:#e6e6ea;font-size:14px;margin:0}
.kppeople summary{cursor:pointer;font-size:14px}.kppeople summary .hint{margin-left:6px}
.kppeople label{display:flex;gap:8px;align-items:center;padding:4px 0;font-size:14px}
.kpnotes{width:100%;min-height:90px;border-radius:8px;border:1px solid var(--line);background:#0c0c0f;color:#fff;padding:10px 12px;font:14px/1.5 Inter;resize:vertical}
.kpmsg{margin:0;min-height:1.2em;color:var(--muted)}.kpmsg.r{color:var(--red-text)}
@media (max-width:1099px){.kpanel{display:none}body.kp-open #main{padding-right:0}}
/* Account > Email notifications (Oct 30) */
.emailprefs{grid-column:1/-1}
.emailprefs .eall input{width:22px;min-height:0;height:22px;padding:0}
.erows{display:grid;gap:2px;margin-top:6px}.erows.off{opacity:.45}
.erow{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;border:0;border-top:1px solid var(--line);margin:0;padding:10px 0;min-width:0}
.erow legend{float:left;padding:0;font-size:15px;max-width:100%}
.eseg{display:inline-flex;border:1px solid var(--line);border-radius:999px;padding:3px;flex:none}
.eseg label{position:relative;display:inline-flex}
.eseg input{position:absolute;opacity:0;width:1px!important;height:1px;min-height:0!important;padding:0!important;margin:0}
.eseg span{display:inline-flex;align-items:center;min-height:38px;padding:0 14px;border-radius:999px;font:500 14px Inter;color:#cfcfd6;cursor:pointer}
.eseg input:checked+span{background:var(--red);color:#fff;font-weight:700}
.eseg input:focus-visible+span{outline:2px solid var(--focus);outline-offset:2px}
.erow[disabled] .eseg span{cursor:not-allowed}
@media (max-width:520px){.erow{flex-direction:column;align-items:stretch}.eseg{justify-content:space-between}.eseg label{flex:1}.eseg span{width:100%;justify-content:center;padding:0 8px}}
/* Notify list (email) in uploads and project messages, Oct 30 */
.nfy{border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin:4px 0 8px;min-width:0}
.nfy legend{padding:0 4px;font-size:14px;font-weight:600}.nfy .hint{margin:0;font-size:13px}
.nfy [data-nall]{background:none;border:0;padding:4px 0;color:var(--red-text);text-decoration:underline;cursor:pointer;font:13px Inter;min-height:0}
.nfyl{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
.nchip{position:relative;display:inline-flex}
.nchip input{position:absolute;opacity:0;width:1px;height:1px}
.nchip span{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border-radius:999px;border:1px solid var(--line);font-size:14px;color:var(--muted);cursor:pointer}
.nchip span small{font-size:11px;color:var(--dim)}
.nchip input:checked+span{background:rgba(197,0,0,.2);border-color:var(--red-text);color:#fff}
.nchip input:checked+span::before{content:"✓";font-weight:700}
.nchip input:focus-visible+span{outline:2px solid var(--focus);outline-offset:2px}
.nchip.off span{opacity:.5;cursor:not-allowed}
.ccomp [data-notify]{padding:0 12px}
.nbtn span{white-space:nowrap}
/* Task checklists (Oct 30) */
.ksteps{display:inline-flex;align-items:center;gap:4px;color:var(--muted)}.ksteps.all{color:var(--green)}
.kcheck:empty{display:none}
.kcheck h4{margin:4px 0 6px;font-size:15px;display:flex;align-items:baseline;gap:8px}
.kcbar{height:4px;border-radius:2px;background:#26262c;overflow:hidden;margin-bottom:6px}.kcbar i{display:block;height:100%;background:var(--green)}
.kclist{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.kclist li{display:flex;align-items:center;gap:8px;min-height:40px;padding:0 4px;border-radius:8px}
.kclist li:hover{background:rgba(255,255,255,.04)}
.kcbox{position:relative;display:inline-grid;place-items:center;width:28px;height:28px;flex:none;cursor:pointer}
.kcbox input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.kcbox span{width:20px;height:20px;border-radius:6px;border:2px solid rgba(255,255,255,.35)}
.kcbox input:checked+span{background:var(--green);border-color:var(--green);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2'%3E%3Cpath d='M6 12l4 4 8-9'/%3E%3C/svg%3E");background-size:16px;background-position:center;background-repeat:no-repeat}
.kcbox input:focus-visible+span{outline:2px solid var(--focus);outline-offset:2px}
.kcbox input:disabled+span{opacity:.5}
.kctext{flex:1;min-width:0;border:0;background:none;color:#f2f2f2;font:14px/1.4 Inter;text-align:left;padding:6px 2px;overflow-wrap:anywhere;cursor:text}
li.done .kctext{color:var(--muted);text-decoration:line-through}
.kcact{display:flex;gap:2px;opacity:0}.kclist li:hover .kcact,.kclist li:focus-within .kcact{opacity:1}
.kcact button{width:28px;height:28px;border:0;border-radius:6px;background:transparent;color:var(--muted);font:600 14px Inter;cursor:pointer}
.kcact button:hover,.kcact button:focus-visible{background:#22222a;color:#fff}
.kcedit,.kcadd{flex:1;width:100%;min-height:38px;border-radius:8px;border:1px solid var(--line);background:#0c0c0f;color:#fff;padding:0 10px;font:14px Inter}
.kcadd{margin-top:4px;border-style:dashed}.kcadd:focus{border-style:solid;border-color:var(--red-text);outline:none}
@media (hover:none){.kcact{opacity:1}}
/* Script + printable PDF (Oct 30) */
.pdfbar .act-btn.sm{display:inline-flex;align-items:center;gap:6px;text-decoration:none}
.pdfbar .ghost.sm{text-decoration:none;padding:0 12px;font-weight:600}
.pdfdrop{margin-top:-4px}
.pdfdrop .fic{background:rgba(255,255,255,.06)}

/* A project's Media tab (Oct 30): thumbnail, title (wraps), status; long titles never run into the status. */
.lr.pm{grid-template-columns:72px minmax(0,1fr) auto}
.lr.pm .pmt{min-width:0;overflow-wrap:anywhere}
.lr.pm .pms{justify-self:end;white-space:nowrap}
@media (max-width:640px){.lr.pm{grid-template-columns:64px minmax(0,1fr)}.lr.pm .pms{justify-self:start;white-space:normal}}
/* Task tags (Oct 30) */
.tagc{display:inline-flex;align-items:center;gap:4px;height:22px;padding:0 9px;border-radius:999px;font:600 12px/1 Inter;border:1px solid transparent;white-space:nowrap}
.c-red{background:rgba(229,72,77,.18);color:#ff8a8d;border-color:rgba(229,72,77,.4)}
.c-orange{background:rgba(247,107,21,.18);color:#ffa66b;border-color:rgba(247,107,21,.4)}
.c-amber{background:rgba(240,177,85,.18);color:#f5c97f;border-color:rgba(240,177,85,.4)}
.c-green{background:rgba(76,195,138,.16);color:#7fdcae;border-color:rgba(76,195,138,.4)}
.c-teal{background:rgba(18,165,148,.18);color:#5fd6c6;border-color:rgba(18,165,148,.4)}
.c-blue{background:rgba(70,140,255,.18);color:#9cc0ff;border-color:rgba(70,140,255,.4)}
.c-purple{background:rgba(139,124,246,.2);color:#bdb2ff;border-color:rgba(139,124,246,.45)}
.c-pink{background:rgba(232,84,160,.18);color:#ff9ccd;border-color:rgba(232,84,160,.4)}
.c-gray{background:rgba(255,255,255,.08);color:#d4d4da;border-color:rgba(255,255,255,.18)}
.ktags{display:flex;flex-wrap:wrap;gap:4px}
.ttx .ktags{display:inline-flex;vertical-align:middle;margin-left:4px}
.kptags{display:grid;grid-template-columns:96px minmax(0,1fr);gap:8px 12px;align-items:start}.kptags:empty{display:none}
.kptags .kpl{padding-top:6px}
.ktagpick{display:flex;flex-wrap:wrap;gap:6px}
.ktagpick button.tagc{height:32px;padding:0 12px;cursor:pointer;opacity:.55}
.ktagpick button.tagc[aria-pressed=true]{opacity:1;box-shadow:0 0 0 1px currentColor inset}
.ktagpick button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.tagnew{height:32px;padding:0 12px;border-radius:999px;border:1px dashed rgba(255,255,255,.3);background:transparent;color:var(--muted);font:600 12px Inter;cursor:pointer}
.tagcolors{border:0;padding:0;margin:8px 0;display:flex;flex-wrap:wrap;gap:6px}.tagcolors legend{font-size:14px;margin-bottom:6px;padding:0}
.tagcolors label{position:relative}.tagcolors input{position:absolute;opacity:0}
.tagcolors .tagc{height:30px;cursor:pointer;text-transform:capitalize}.tagcolors input:checked+.tagc{box-shadow:0 0 0 2px #fff inset}
.tagcolors input:focus-visible+.tagc{outline:2px solid var(--focus);outline-offset:2px}
.tagrow{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--line)}.tagrow .sp{flex:1}
/* Swimlanes (Oct 30) */
.kb2.klanesw{display:grid;grid-template-columns:minmax(0,1fr) 52px}
.klanes{display:grid;overflow-x:auto;margin-right:14px;align-items:stretch}
.klh{position:sticky;top:0;z-index:2;background:var(--page,#0a0a0c);padding:12px 10px 10px;font:700 15px Inter;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:6px}
.klh.s-next{box-shadow:inset 0 3px 0 #8b7cf6}.klh.s-in_progress{box-shadow:inset 0 3px 0 #f0a030}.klh.s-inbox{box-shadow:inset 0 3px 0 #f0b155}.klh.s-done{box-shadow:inset 0 3px 0 var(--green)}
.klh .kn{font-weight:400;color:var(--muted)}.klh .kfold{margin-left:auto}
.kll{display:flex;gap:10px;align-items:flex-start;padding:14px 10px;border-bottom:1px solid var(--line)}
.kll b{font-size:15px}
.kcell{padding:10px;border-bottom:1px solid var(--line);border-left:1px solid rgba(255,255,255,.06);min-height:96px;border-radius:0}
.klanesw .krail{display:flex;flex-direction:column}.klanesw .kstrip{flex:1}
@media (max-width:760px){.kb2.klanesw{grid-template-columns:1fr}.klanes{margin:0 -16px;padding:0 16px}.klanesw .krail{flex-direction:row;gap:8px;margin-top:16px}.klanesw .kstrip{min-height:48px;flex-direction:row;justify-content:center;border:1px solid var(--line)!important;border-radius:10px}.klanesw .kstrip .kv{writing-mode:horizontal-tb}}
/* Estimate editor: what happens after saving (Oct 30) */
.eafter{border:1px solid var(--line);border-radius:10px;padding:8px 12px;margin:10px 0 0}
.eafter legend{padding:0 4px;font-size:14px;font-weight:600}
.eafter .chk{min-height:38px}.eafter .chk input{width:20px;height:20px}
/* New request for a client (Oct 30) */
.rpick{border:1px solid var(--line);border-radius:10px;padding:6px 12px 10px;margin:4px 0 10px;max-height:340px;overflow-y:auto}
.rpick legend{padding:0 4px;font-size:14px;font-weight:600}
.rcat{margin:10px 0 2px;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.ritem{display:grid;grid-template-columns:minmax(0,1fr) auto 64px;gap:10px;align-items:center;border-top:1px solid rgba(255,255,255,.06)}
.ritem .chk{min-height:40px}.ritem .chk input{width:20px;height:20px;flex:none}
.rqty input{width:64px;min-height:36px;border-radius:8px;border:1px solid var(--line);background:#0c0c0f;color:#fff;padding:0 8px;font:14px Inter}
.rqty input:disabled{opacity:.35}
@media (max-width:520px){.ritem{grid-template-columns:minmax(0,1fr) 56px}.ritem>.muted{grid-column:1;grid-row:2;margin:-8px 0 6px 30px}.rqty input{width:56px}}
/* Calendar (Oct 30) */
.calbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:16px 0 10px}.calbar .sp{flex:1}
.calnav{display:flex;align-items:center;gap:6px}
.calnav .ib{width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:transparent;color:#fff;font-size:20px;line-height:1}
.calm{margin:0 0 0 8px;font:700 22px Inter;color:#fff;letter-spacing:0;text-transform:none}
.caltypes{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.calt{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 12px;border-radius:999px;border:1px solid var(--line);background:transparent;color:#cfcfd6;font:500 13px Inter;cursor:pointer}
.calt[aria-pressed=false]{opacity:.45;text-decoration:line-through}
.calt i,.calchip i{width:8px;height:8px;border-radius:50%;flex:none;background:currentColor}
.t-event{--c:#5aa9ff}.t-task{--c:#a99cff}.t-project{--c:#f0b155}.t-invoice{--c:#ff6b6b}.t-blog{--c:#45d0bd}
.calt i{background:var(--c)}
.calgrid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid var(--line);border-radius:12px;overflow:visible;background:#0d0d10}
.calh{padding:8px 10px;font:600 11px Inter;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);border-bottom:1px solid var(--line)}
.calday{position:relative;min-height:118px;padding:6px;border-right:1px solid rgba(255,255,255,.06);border-bottom:1px solid rgba(255,255,255,.06);min-width:0}
.calday:nth-child(7n){border-right:0}
.calday.other{background:#0a0a0c}.calday.other .caln{color:#5e5e66}
.calday.wk{background:#0b0b0e}
.caln{display:inline-grid;place-items:center;min-width:26px;height:26px;border-radius:999px;font:600 13px Inter;color:#cfcfd6}
.calday.today .caln{background:var(--red);color:#fff}
.calchips{display:grid;gap:3px;margin-top:4px}
.calchip{display:flex;align-items:center;gap:6px;min-width:0;padding:3px 7px;border-radius:6px;background:color-mix(in srgb,var(--c) 14%,transparent);color:#f2f2f2;text-decoration:none;font:500 12px/1.3 Inter;border-left:3px solid var(--c)}
.calchip i{background:var(--c);display:none}
.calchip:hover,.calchip:focus-visible{background:color-mix(in srgb,var(--c) 26%,transparent);outline:none}
.calchip:focus-visible{box-shadow:0 0 0 2px var(--focus)}
.calchip .ct{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.calchip.done .ct{text-decoration:line-through;color:var(--muted)}
.calchip.late{box-shadow:inset 0 0 0 1px rgba(255,77,77,.55)}
.calchip .cl{font:700 10px Inter;letter-spacing:.06em;text-transform:uppercase;color:#ff6b6b;flex:none}
.calmore{border:0;background:none;color:var(--muted);font:600 12px Inter;text-align:left;padding:2px 4px;cursor:pointer}.calmore:hover{color:#fff}
.calday-pop{position:absolute;z-index:20;top:4px;left:4px;width:max(260px,100%);display:grid;gap:4px;padding:10px;background:#17171c;border:1px solid var(--line);border-radius:10px;box-shadow:0 14px 34px rgba(0,0,0,.65)}
.calday:nth-child(7n) .calday-pop,.calday:nth-child(7n-1) .calday-pop{left:auto;right:4px}
.cph{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px;font-size:13px}.cph .ib{width:30px;height:30px}
.calchip .cs{flex:none;max-width:45%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted);font-size:12px}
.calag{margin-bottom:18px}.calag h3{margin:0 0 6px;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:#cfcfd6}
.calag.late h3{color:#ff6b6b}
.calrow{display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px;padding:8px 0;border-top:1px solid var(--line)}
.cald{font:600 13px Inter;color:#cfcfd6;padding-top:8px}.cald.today{color:#ff6b6b}
.calrowi{display:grid;gap:6px}
.calrowi .calchip{padding:10px 12px;font-size:14px;border-radius:8px}
@media (max-width:760px){.calgrid{border-radius:10px}.calday{min-height:64px;padding:3px}.calchip{padding:2px 4px;font-size:10px;border-left-width:2px}.calchip .cl{display:none}
.calrow{grid-template-columns:1fr;gap:6px}.cald{padding-top:0}.calm{font-size:18px;margin-left:4px}.calbar .tfl{flex:1 1 140px}.calbar .tfl select{width:100%}}
.calbar select{min-height:40px;border-radius:10px;padding:0 10px;max-width:220px;border:1px solid var(--line);background:#111;color:#fff;font:14px Inter;color-scheme:dark}
@media (max-width:760px){.calbar select{max-width:none}}
.calgrid .calchip .cl{display:none}
/* Calendar: week view (Oct 30) */
button.caln{border:0;background:transparent;cursor:pointer;padding:0}
button.caln:hover{background:rgba(255,255,255,.1)}.calday.today button.caln:hover{background:var(--red-hi)}
button.caln:focus-visible{outline:2px solid var(--focus);outline-offset:1px}
.calweek{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid var(--line);border-radius:12px;background:#0d0d10;min-height:420px}
.calwd{min-width:0;border-right:1px solid rgba(255,255,255,.06);display:flex;flex-direction:column}
.calwd:last-child{border-right:0}.calwd.wk{background:#0b0b0e}
.calwd h3{display:flex;align-items:center;gap:6px;margin:0;padding:10px 8px;border-bottom:1px solid var(--line);font:600 12px Inter;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.calwd.today h3 .caln{background:var(--red);color:#fff}
.calwd h3 .caln{font-size:14px;letter-spacing:0}
.cwc{margin-left:auto;font-weight:600;color:#cfcfd6;letter-spacing:0}
.calwl{display:grid;gap:6px;align-content:start;padding:8px;flex:1}
.calwl .calchip{flex-wrap:wrap;padding:8px 9px;font-size:13px;border-radius:8px}
.calwl .calchip .ct{white-space:normal;overflow-wrap:anywhere}
.calwl .calchip .cs{flex-basis:100%;max-width:none;white-space:normal}
.cwe{color:#3e3e46;padding:4px}
@media (max-width:900px){.calweek{grid-template-columns:1fr;min-height:0}.calwd{border-right:0;border-bottom:1px solid rgba(255,255,255,.06)}.calwd:last-child{border-bottom:0}.cwe{display:none}.calwl:empty{display:none}}
/* Start times (Oct 30) */
.fld2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 12px}
.kpdt{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) auto minmax(0,1fr);gap:6px;align-items:center}
.calchip .ctm{flex:none;font-weight:700;color:color-mix(in srgb,var(--c) 70%,#fff)}
.calweek.grid{display:block;min-height:0}
.cwhead,.cwallrow,.cwbody{display:grid;grid-template-columns:56px repeat(7,minmax(0,1fr))}
.cwhead .calwd{border-right:1px solid rgba(255,255,255,.06)}.cwhead .calwd:last-child{border-right:0}
.cwgut{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;font:600 10px Inter;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.cwallrow{border-bottom:1px solid var(--line)}
.cwad{min-width:0;display:grid;gap:3px;align-content:start;padding:6px 4px;border-right:1px solid rgba(255,255,255,.06);min-height:34px}
.cwad:last-child{border-right:0}.cwad.wk,.cwcol.wk{background-color:#0b0b0e}
.cwbody{max-height:620px;overflow-y:auto;position:relative}
.cwhours{position:relative}
.cwhours span{position:absolute;right:8px;transform:translateY(-50%);font:600 11px Inter;color:var(--muted)}
.cwhours span:first-child{transform:none}
.cwcol{position:relative;min-width:0;border-right:1px solid rgba(255,255,255,.06);background-image:repeating-linear-gradient(to bottom,rgba(255,255,255,.07) 0 1px,transparent 1px 52px)}
.cwcol:last-child{border-right:0}.cwcol.today{background-color:rgba(197,0,0,.04)}
.cwev{position:absolute;display:flex}
.cwev .calchip{flex:1;flex-direction:column;align-items:stretch;gap:1px;padding:4px 6px;font-size:12px;border-radius:6px;overflow:hidden}
.cwev .calchip .ct{white-space:normal;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.cwev .calchip .cs{display:none}.cwev .calchip .ctm{font-size:11px}
.cwnow{position:absolute;left:0;right:0;height:2px;background:var(--red-hi);z-index:3}
.cwnow::before{content:"";position:absolute;left:-4px;top:-4px;width:10px;height:10px;border-radius:50%;background:var(--red-hi)}
.calweek.stack{grid-template-columns:1fr;min-height:0}
.calweek.stack .calwd{border-right:0;border-bottom:1px solid rgba(255,255,255,.06)}
.calweek.stack .calwl:empty{display:none}

/* Oct 30: due times on tasks, and events on the Calendar */
.fld3{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr);gap:0 12px}
@media (max-width:520px){.fld3{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.fld3>:first-child{grid-column:1/-1}.kpdt{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto minmax(0,1fr)}.kpdt>:first-child{grid-column:1/-1}}
.head-row [data-addevent]{flex:none;align-self:center}
.evdetail .evrow{display:grid;grid-template-columns:80px minmax(0,1fr);gap:8px;margin:0 0 8px}
.evdetail .evnotes{white-space:pre-wrap;border-top:1px solid var(--line);padding-top:10px;margin:10px 0}
.evdetail .evacts{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 0}
.evdetail .evacts a{display:inline-flex;align-items:center;gap:6px}
.evkind{display:inline-block;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:700;background:rgba(90,169,255,.16);color:#9ccbff}
.dlg .tpeople label .hint{margin-left:4px}

/* iPhone (Oct 30): Safari zooms into any field under 16px and doesn't zoom back, which reads as the page sliding
   around. Every text field, picker and list on phones and touch screens is 16px. Dialogs fit the visible screen
   (dvh, not vh, which on iOS includes the area under Safari's toolbar) and don't scroll the page behind them. Date
   and time boxes keep to their column (iOS draws them at a fixed width otherwise). */
@media (max-width:760px),(pointer:coarse){
 input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select,textarea{font-size:16px!important}
}
.dlg{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
@supports (height:100dvh){.dlg{max-height:calc(100dvh - 40px)}@media (max-width:760px){.dlg{max-height:calc(100dvh - 16px)}}}
input[type=date],input[type=time]{min-width:0;max-width:100%;-webkit-appearance:none;appearance:none}
input[type=date]::-webkit-date-and-time-value,input[type=time]::-webkit-date-and-time-value{text-align:left}
.fld2>.fld,.fld3>.fld,.kpdt>*{min-width:0}

/* Conversations, tighter (Oct 30): the name-and-time line once per run of messages, your own messages show just the
   time, the ⋯ menu beside the bubble instead of on a row of its own. Phones: the open conversation fills the screen
   (header, messages, one-line composer: + / message / mic / send), like a messaging app. media/ui.js mountConv. */
.ch .cht{display:flex;flex-direction:column;min-width:0;flex:1}
.ch .cht b,.ch .cht .sm2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ch .ccall{flex:none;color:#fff}
.conv .cb,.pconv .cb,.cb{gap:2px}
.cb>.bub:not(.cont){margin-top:12px}.cb>.bub:first-child{margin-top:0}
.cb .bub{position:relative;gap:3px}
.cb .bub small{font-size:11px}
.cb .bub.cont .bx{border-top-right-radius:6px}.cb .bub.cont:not(.me) .bx{border-top-right-radius:14px;border-top-left-radius:6px}
.cb .bub>.rmenu{position:absolute;bottom:0}
.cb .bub.me>.rmenu{right:100%;margin-right:2px}.cb .bub:not(.me)>.rmenu{left:100%;margin-left:2px}
.cb .bub>.rmenu>summary{min-height:32px;min-width:28px;opacity:.55}.cb .bub>.rmenu[open]>summary,.cb .bub>.rmenu>summary:hover{opacity:1}
.cb .bub>.rmenu[open]{display:block}
.cb .bub>.rmenu .rmenu-list{position:absolute;bottom:100%;z-index:6;margin-bottom:4px;box-shadow:0 8px 24px rgba(0,0,0,.5)}
.cb .bub.me>.rmenu .rmenu-list{right:0}.cb .bub:not(.me)>.rmenu .rmenu-list{left:0}
.cb .bub{max-width:min(80%,520px)}
#mmsg:empty{display:none}
@media (max-width:760px){
 html.chatfull,html.chatfull body{overflow:hidden;overscroll-behavior:none}
 html.chatfull nav.tabs,html.chatfull .lscrim2,html.chatfull .lsheet{display:none}
 html.chatfull .cwrap.open .conv{position:fixed;left:0;right:0;top:var(--vvt,0px);height:var(--vvh,100dvh);bottom:auto;min-height:0;z-index:65;margin:0;border:0;border-radius:0;background:#0b0b0c;padding-top:env(safe-area-inset-top)}
 .conv .ch{gap:8px;padding:6px 8px;min-height:56px}
 .conv .ch .cav{width:36px;height:36px;font-size:13px}
 .conv .ch .cht b{font-size:16px}.conv .ch .cht .sm2{font-size:12px}
 .conv .ch .cback{margin-left:0;min-width:40px}
 .cb{padding:10px 10px 8px!important}
 .cb .bub{max-width:84%}
 .cb .bub .bx{font-size:16px;line-height:1.35;padding:8px 12px}
}

/* The composer, every size (Oct 31): + (photo or video) / message box that grows / mic / send, on one row. */
.ccomp{display:flex;flex-wrap:wrap;align-items:flex-end;column-gap:6px;row-gap:0;padding:6px 8px calc(6px + env(safe-area-inset-bottom))}
.ccomp::before{content:"";order:1;flex-basis:100%;height:0}
.ccomp>.pending{order:-1;flex-basis:100%;margin:0 0 6px}
.ccomp>[data-notify],.ccomp>#mmsg{order:9;flex-basis:100%}
.ccomp .row{display:contents}
.ccomp .row>*{order:3}
.ccomp .row>.plus{order:1;display:grid}
.ccomp .row>[data-att=photo],.ccomp .row>[data-att=video],.ccomp .row>span[style]{display:none}
.ccomp .row>.vis,.ccomp .row>.nbtn{order:0;margin-bottom:6px}
.ccomp .row>.vis{margin-right:auto}
.ccomp textarea{order:2;flex:1 1 0;min-width:0;min-height:40px!important;height:40px;max-height:150px;padding:9px 14px;border-radius:20px;resize:none;line-height:1.3}
.ccomp .attb{width:40px;height:40px;min-height:40px;min-width:40px;padding:0;border-radius:50%;display:grid;place-items:center}
.ccomp .csend{width:40px;height:40px;min-height:40px;padding:0;border-radius:50%;display:grid;place-items:center}
.ccomp .csend span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.ccomp .csend svg{display:block}
.cb .bub .bx[data-text]{white-space:pre-wrap}
/* Unread (Oct 31): a "New" line above the first message not yet read. */
.cnew{display:flex;align-items:center;gap:10px;margin:14px 0 4px;color:#ff6b6b;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.cnew::before,.cnew::after{content:"";flex:1;height:1px;background:rgba(255,77,77,.45)}
.cb .cnew+.bub{margin-top:4px}
.crow .cprev .ptx{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ucnt{margin-left:auto;flex:none;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#d61f26;color:#fff;font-size:12px;font-weight:700;display:inline-grid;place-items:center;line-height:1}
.crow.un b{color:#fff}.crow.un time{color:#ff6b6b;font-weight:600}
.ccomp .attb span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
@media (min-width:761px){.ccomp{padding:10px 14px;column-gap:8px}}
/* Desktop: the conversation list folds away (the button at the left of the conversation header; remembered). */
.clist-t{flex:none;color:var(--muted)}.clist-t:hover{color:#fff}
/* Folded (Oct 31, like Messages on the Mac): a narrow column of faces with first names; the count sits on the face. */
@media (min-width:761px){
 .cwrap.anim{transition:grid-template-columns .18s ease}
 html.msglistoff .cwrap.open{grid-template-columns:96px minmax(0,1fr)}
 html.msglistoff .cwrap.open .cleft{overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}
 html.msglistoff .cwrap.open .csearch,html.msglistoff .cwrap.open .cact{display:none}
 html.msglistoff .cwrap.open .clist{padding:8px 6px;gap:2px}
 html.msglistoff .cwrap.open .crow{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 4px 8px;text-align:center}
 html.msglistoff .cwrap.open .crow::after{display:none}
 html.msglistoff .cwrap.open .crow .cav{width:52px;height:52px;font-size:17px}
 html.msglistoff .cwrap.open .cmid{width:100%;display:block}
 html.msglistoff .cwrap.open .ctop{display:block}
 html.msglistoff .cwrap.open .ctop b{display:block;font-size:12px;font-weight:500;color:#cfcfd6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 html.msglistoff .cwrap.open .crow.un .ctop b{color:#fff;font-weight:700}
 html.msglistoff .cwrap.open .ctop time,html.msglistoff .cwrap.open .cprev .ptx,html.msglistoff .cwrap.open .crow .plabel{display:none}
 html.msglistoff .cwrap.open .cprev{display:contents}
 html.msglistoff .cwrap.open .ucnt{position:absolute;top:6px;right:calc(50% - 34px);margin:0;box-shadow:0 0 0 2px var(--card)}
 html.msglistoff .cwrap.open .crow.on{background:var(--red)}html.msglistoff .cwrap.open .crow.on .ctop b{color:#fff}
}
@media (max-width:760px){.clist-t{display:none}}
.conv .cb,.pconv .cb{position:relative}
/* Desktop (Oct 31): the list is as tall as the conversation and scrolls inside, so a long list never stretches
   the page below the composer. */
/* (the frame height is set below: it fills the window) */
/* Media grid (Oct 31; media/ui.js mediaCard): cards with the picture on top. */
.mfbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.mfbar .mfchips{display:flex;gap:8px;flex-wrap:wrap;flex:1;min-width:0}
.mfbar .mview{margin-left:auto}.pmbar{justify-content:flex-end;margin:0 0 12px}
.mgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px;margin:4px 0 16px}
.mcard{display:flex;flex-direction:column;min-width:0;background:var(--card);border:1px solid var(--line);border-radius:14px;overflow:hidden;cursor:pointer;color:inherit;text-decoration:none;transition:border-color .15s,transform .15s}
.mcard:hover,.mcard:focus-visible{border-color:rgba(255,255,255,.28);transform:translateY(-1px)}
.mcard.int{border-color:rgba(201,168,76,.45)}
.mpic{position:relative;display:grid;place-items:center;aspect-ratio:16/10;overflow:hidden;background:#17171c}
.mpic.p-video{background:linear-gradient(135deg,#2a0e10,#14141a)}.mpic.p-doc{background:#1b1b22}.mpic.p-gfx{background:linear-gradient(135deg,#1d2433,#14141a)}.mpic.p-aud{background:linear-gradient(135deg,#1c1530,#14141a)}
.mpic .gfxart{font-size:15px}.mpic .docpage{transform:scale(.8)}
.mpic .mimg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#111}
.mpic .mplay{position:absolute;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:rgba(0,0,0,.55);color:#fff;backdrop-filter:blur(2px)}
.mpic .mkind{position:absolute;left:8px;top:8px}.mpic .mkind .mtype{background:rgba(0,0,0,.6);border-radius:999px;padding:3px 8px;color:#fff}
.mbody{display:grid;gap:6px;padding:12px 12px 14px;min-width:0}
.mbody .mt{font-size:15px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.mbody .mmeta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.mbody .mpl .plabel{margin:0}.mbody .mnote{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
@media (max-width:760px){.mgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mbody{padding:10px}.mbody .mt{font-size:14px}.mfbar .mview .vlab{display:none}}
/* Desktop (Oct 31): Messages always fills the window (a conversation open or not), from where it starts down to 16px above the bottom; the conversation
   list and the conversation scroll inside it (media/ui.js fitFrame sets --ctop). */
@media (min-width:761px){
 .cwrap{height:calc(100dvh - var(--ctop,220px) - 40px);min-height:480px}
 .cwrap .conv,.cwrap .cleft{height:auto;max-height:none;min-height:0}
 .cwrap .cleft{overflow-y:auto;overscroll-behavior:contain}
 .cwrap .conv{height:100%}
}
/* Message rows (Oct 31, like Messages on the Mac; media/ui.js bubble/timeSep). One column per side, even spacing:
   2px inside a run, 14px between runs, a centered time when the talk picks up again. */
.cb .ctime{text-align:center;color:var(--muted);font-size:12px;font-weight:600;margin:18px 0 8px}
.cb .ctime:first-child{margin-top:4px}
.cb>.bub{display:flex;flex-direction:column;align-items:flex-start;gap:3px;max-width:none;width:100%;margin-top:2px}
.cb>.bub:not(.cont){margin-top:14px}.cb>.ctime+.bub,.cb>.cnew+.bub,.cb>.bub:first-child{margin-top:0}
.cb>.bub.me{align-items:flex-end}
.cb .bub .bname{font-size:12px;color:var(--muted);margin:0 0 1px 42px;display:flex;align-items:center;gap:6px}
.cb .bub.me .bname{margin:0 4px 1px 0}
.cb .bub .bline{display:flex;align-items:flex-end;gap:8px;max-width:min(78%,560px);min-width:0;position:relative}
.cb .bub.me .bline{flex-direction:row-reverse}
.cb .bub .bav{flex:none;width:34px;height:34px}
.cb .bub .bav>span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;font-size:12px;font-weight:700;color:#fff}
.cb .bub .bstack{display:flex;flex-direction:column;gap:2px;min-width:0;align-items:flex-start}
.cb .bub.me .bstack{align-items:flex-end}
.cb .bub .bx{padding:9px 14px;border-radius:18px;font-size:15px;line-height:1.4;max-width:100%}
.cb .bub.me .bx{background:#8f1414;color:#fff}
.cb .bub.cont:not(.me) .bx{border-top-left-radius:6px}.cb .bub.me.cont .bx{border-top-right-radius:6px}
.cb .bub:not(.last):not(.me) .bx{border-bottom-left-radius:6px}.cb .bub.me:not(.last) .bx{border-bottom-right-radius:6px}
.cb .bub.int .bx,.cb .bub.me.int .bx{background:#3a3014;border:1px solid rgba(201,168,76,.5);color:#f1e7c6}
.cb .bub.del .bx{background:transparent;border:1px dashed var(--line);color:var(--muted);font-style:italic}
/* Photos and videos keep their own shape, up to 340 x 380. */
.cb .bub img.media-att{width:auto;height:auto;max-width:min(340px,100%);max-height:380px;aspect-ratio:auto;object-fit:contain;border-radius:18px;background:#111;display:block}
.cb .bub .media-att.vd{width:min(340px,100%);border-radius:18px}
.cb .bub .bfoot{display:flex;gap:6px;align-items:center;font-size:11px;color:var(--muted);margin:0 0 0 42px}
.cb .bub.me .bfoot{margin:0 4px 0 0}
.cb .bub .bfoot .itag{font-size:10px}
/* ⋯ beside the bubble: on hover (or keyboard focus) where there's a pointer; always faint on touch screens. */
.cb .bub>.bline>.rmenu{position:static;align-self:center;flex:none}
.cb .bub>.bline>.rmenu>summary{min-height:28px;min-width:28px;opacity:0;transition:opacity .12s}
.cb .bub:hover>.bline>.rmenu>summary,.cb .bub>.bline>.rmenu>summary:focus-visible,.cb .bub>.bline>.rmenu[open]>summary{opacity:.8}
/* Touch screens: tap a message to show its ⋯ (like a long press); tap again or another message to hide it. */
@media (hover:none){.cb .bub>.bline>.rmenu{display:none}.cb .bub.sel>.bline>.rmenu{display:block}.cb .bub.sel>.bline>.rmenu>summary{opacity:.9}}
.cb .bub .bname .plabel{border:0;background:none;padding:0;margin:0;font-size:11px;font-weight:500;color:var(--muted);gap:4px}
.cb .bub .bname .plabel::before{content:"·";margin-right:2px}
.cb .bub>.bline>.rmenu{position:relative}
.cb .bub>.bline>.rmenu .rmenu-list{position:absolute;bottom:100%;z-index:6;margin-bottom:4px;box-shadow:0 8px 24px rgba(0,0,0,.5)}
.cb .bub.me>.bline>.rmenu .rmenu-list{right:0}.cb .bub:not(.me)>.bline>.rmenu .rmenu-list{left:0}
.cb .bub .redit{width:min(520px,100%)}
@media (max-width:760px){.cb .bub .bline{max-width:86%}.cb .bub .bav,.cb .bub .bav>span{width:28px;height:28px;font-size:11px}.cb .bub .bname,.cb .bub .bfoot{margin-left:36px}.cb .bub img.media-att{max-width:min(260px,100%);max-height:320px}}
.cb .bub.me .bname .plabel::before{content:none}
/* Project header, compact (Oct 31): back · name over client and status · actions on one row; the tab row carries
   the counts. */
.phead{display:flex;align-items:center;gap:12px;margin:0 0 6px;min-width:0}
.phead .pback{flex:none;width:40px;height:40px;margin-left:-6px;color:var(--muted)}.phead .pback:hover{color:#fff}
.phead .ptitle{flex:1;min-width:0}
.phead h1.keep{font-size:34px;line-height:1.05;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.phead h1.keep::after{display:none}
.phead .psub{margin:2px 0 0;color:var(--muted);font-size:14px;display:flex;flex-wrap:wrap;gap:0 4px;align-items:center}
.phead .pacts{display:flex;gap:8px;align-items:center;flex:none}
.phead .pacts .pact{min-height:40px;padding:0 16px;border-radius:999px;font-size:14px;font-weight:700;text-transform:none;letter-spacing:0;white-space:nowrap}
.phead .pacts .pact.pgear{width:40px;padding:0}
.ptabbar{display:flex;align-items:flex-end;gap:16px;border-bottom:1px solid var(--line);margin:10px 0 16px;min-width:0}
.ptabbar .ptabs{border-bottom:0;margin:0;flex:1 1 auto;min-width:0}
.ptabbar .pstat{flex:none;display:flex;align-items:center;gap:10px;padding:0 0 12px;color:var(--muted);font-size:13px;white-space:nowrap}
.ptabbar .pstat span:not(.pbar)+span:not(.pbar)::before{content:"·";margin-right:10px}
.ptabbar .pstat .pbar{width:90px;height:4px}
@media (max-width:980px){.ptabbar .pstat .pbar,.ptabbar .pstat span:nth-child(2){display:none}}
@media (max-width:760px){
 .phead{gap:8px}
 .phead{flex-wrap:nowrap}
 .phead .pback{width:32px;margin-left:-8px}
 .phead h1.keep{font-size:22px;white-space:nowrap}
 .phead .psub .pcl{min-width:0;overflow:hidden;text-overflow:ellipsis;flex:0 1 auto}
 .phead .psub>*:not(.pcl){flex:none}
 .phead .psub{font-size:13px;flex-wrap:nowrap;white-space:nowrap;overflow:hidden}
 .phead .pacts{gap:4px}.phead .pacts .pact,.phead .pacts .pact.pgear{width:36px;min-height:36px}
 .phead .pacts{width:auto}
 .phead .pacts .pact:not(.pgear){width:40px;padding:0;justify-content:center}.phead .pacts .pact span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
 .ptabbar .pstat{display:none}
}
@media (max-width:760px){html.mnav .phead h1.keep{font-size:24px;display:block}}
/* Slim top bar, every page (Oct 31): 52px, no "Project portal" label, language as an icon, profile as a face. On a
   project the label's place holds a breadcrumb: Projects › Name · client · status (v3.js setPageTitle). */
@media (min-width:761px){
 .ph{height:52px;padding:0 16px}
 .ph .logo img{height:26px}
 .where{display:none}
 .where.crumb{display:flex;align-items:center;gap:8px;min-width:0;flex:0 1 auto;overflow:hidden;font:500 14px Inter,system-ui,sans-serif;letter-spacing:0;color:var(--muted);padding-left:14px;margin-left:6px;white-space:nowrap}
 .where.crumb a{color:var(--muted)}.where.crumb a:hover{color:#fff}
 .where.crumb b{color:#fff;font-weight:600;overflow:hidden;text-overflow:ellipsis}
 .where.crumb .sep{opacity:.6}
 .where.crumb .psub{display:flex;align-items:center;gap:4px;font-size:13px;overflow:hidden;text-overflow:ellipsis;margin-left:4px}
 .where.crumb .psub .pcl{overflow:hidden;text-overflow:ellipsis}
 .where.crumb .ptag{font-size:10px}
 .ph .search.d{height:36px;flex:0 1 320px}
 .ph .who{height:36px;padding:0 6px 0 3px}.ph .who .nm{display:none}
 .ph .ib,.ph .bell{width:36px;height:36px}
}
@media (min-width:761px) and (max-width:1180px){.where.crumb .psub{display:none}}
/* The tab row on a project: tabs · progress · Invite / Upload / Settings. */
.ptabbar{align-items:center;margin:2px 0 14px}
.ptabbar .pacts{display:flex;gap:8px;align-items:center;flex:none;padding:0 0 6px}
.ptabbar .pacts .pact{min-height:36px;padding:0 14px;border-radius:999px;font-size:13px;font-weight:700;text-transform:none;letter-spacing:0;white-space:nowrap}
.ptabbar .pacts .pact.pgear{width:36px;padding:0}
.ptabbar .pstat{padding:0 0 6px}
.ptabbar .pstat span:nth-child(1),.ptabbar .pstat span:nth-child(2){display:none}
@media (max-width:760px){
 .mtop{height:48px}
 .mtop .pic a{display:grid;place-items:center;width:32px;height:32px;margin-left:-6px;color:var(--muted)}
 .mtop .pn{font-size:24px}
 .ptabbar{gap:6px;margin-top:0}
 .ptabbar .pacts{gap:4px}.ptabbar .pacts .pact,.ptabbar .pacts .pact.pgear{width:34px;min-height:34px;padding:0;justify-content:center}
 .ptabbar .pacts .pact span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
}
@media (max-width:760px){.ptabbar .ptabs{gap:0;overflow:visible}.ptabbar .ptabs a{padding:0 10px;gap:6px}.ptabbar .ptabs a[aria-selected="false"] .tl{display:none}}
@media (max-width:760px){
 .mtop .pn{flex:1 1 auto;min-width:0}
 .mtop .pacts{display:flex;gap:4px;margin-left:auto;flex:none;align-self:stretch;align-items:center;padding:0;margin-top:0;margin-bottom:0}
 .mtop .pacts .pact{margin:0}
 .mtop .pacts .pact,.mtop .pacts .pact.pgear{width:34px;min-height:34px;height:34px;padding:0;border-radius:50%;justify-content:center;display:inline-flex;align-items:center}
 .mtop .pacts .pact span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
 .ptabbar .ptabs{overflow-x:auto}
}
/* Videos in a conversation take their own shape (Oct 31): vertical ones are tall and narrow (up to 420px high),
   wide ones up to 340px wide. --arn (W/H) and is-vertical come from fitPlayer in media/ui.js. */
.cb .bub .media-att.vd{aspect-ratio:var(--ar,16/9);height:auto;max-height:none;width:min(340px,100%)}
.cb .bub .media-att.vd.is-vertical{width:min(100%,calc(420px * var(--arn,.5625)))}
@media (max-width:760px){.cb .bub .media-att.vd.is-vertical{width:min(100%,calc(360px * var(--arn,.5625)))}}
