/* ===== Phone layout (iPhone friendly) — loaded only on screens <= 820px ===== */
:root{--sat:env(safe-area-inset-top,0px);--sab:env(safe-area-inset-bottom,0px);--sal:env(safe-area-inset-left,0px);--sar:env(safe-area-inset-right,0px);--tab:64px}
html{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent;overflow-x:hidden}
body{overflow-x:hidden;overscroll-behavior-y:none;font-size:14.5px}
a,button,label,summary{touch-action:manipulation}

/* --- shell --- */
.shell{display:block;min-height:100dvh}
.side{display:none}
.content{min-height:100dvh}
.top{position:sticky;top:0;z-index:20;height:auto;flex:none;padding:calc(10px + var(--sat)) calc(14px + var(--sar)) 8px calc(14px + var(--sal));gap:10px;background:linear-gradient(180deg,rgba(13,9,32,.96) 70%,rgba(13,9,32,0))}
.search{display:none}
.brand-m{display:flex;align-items:center;gap:10px;color:var(--text);min-width:0}.brand-m:hover{text-decoration:none}
.brand-m .logo{width:44px;height:44px}
.brand-m .bn b{font-size:21px}.brand-m .bn small{font-size:12px;margin-top:3px}
.top-r{gap:10px}
.health{height:34px;padding:0 10px}.health span:last-child{display:none}
.bell{width:38px;height:38px}
.who{display:none}.av{width:40px;height:40px}
.pop{position:fixed;left:12px;right:12px;top:calc(60px + var(--sat));min-width:0}
main{padding:2px calc(14px + var(--sar)) calc(var(--tab) + 26px + var(--sab)) calc(14px + var(--sal))}
h1{font-size:24px;margin:2px 0 6px;letter-spacing:-.01em}
p.muted{font-size:14px;margin:0 0 12px}
.card{padding:14px;border-radius:18px;margin-bottom:12px}
.sec-head{margin-bottom:8px}.sec-head h2{font-size:17px}
.flash{border-radius:14px;padding:12px 14px;font-size:14px}

/* --- tab bar with the round + button --- */
.tabbar{display:grid;grid-template-columns:1fr 1fr 74px 1fr 1fr;align-items:end;position:fixed;left:0;right:0;bottom:0;z-index:50;height:calc(var(--tab) + var(--sab));padding:6px calc(8px + var(--sar)) var(--sab) calc(8px + var(--sal));background:rgba(14,9,34,.94);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border-top:1px solid var(--line)}
.tabbar a,.tabbar button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:52px;color:var(--muted);font-size:11px;font-weight:600;background:none;border:0;padding:0}
.tabbar a:hover{text-decoration:none}
.tabbar .ic{width:23px;height:23px}
.tabbar .on{color:#b794ff}.tabbar .on .ic{color:#b794ff}
.tabbar .fab{align-self:start;justify-self:center;width:58px;height:58px;border-radius:50%;margin-top:-20px;background:linear-gradient(135deg,#7c3aed,#a855f7);color:#fff;box-shadow:0 10px 26px rgba(124,58,237,.65),0 0 0 6px rgba(13,9,32,.96);justify-content:center}
.tabbar .fab .ic{width:28px;height:28px;stroke-width:2.2}
.tabbar .fab:active{transform:scale(.94)}
.sheet{position:fixed;inset:0;z-index:70;background:rgba(5,3,15,.62);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);align-items:flex-end}
.sheet.open{display:flex}
.sheet-box{width:100%;background:#1a1340;border:1px solid var(--line);border-bottom:0;border-radius:26px 26px 0 0;padding:10px 14px calc(18px + var(--sab));display:grid;grid-template-columns:1fr 1fr;gap:10px;animation:sheet .22s ease-out}
.sheet-box .grab{grid-column:1/-1;width:42px;height:5px;border-radius:3px;background:var(--line);margin:2px auto 6px}
.sheet-box a{display:flex;align-items:center;gap:12px;padding:15px 14px;border-radius:16px;background:rgba(255,255,255,.06);color:var(--text);font-weight:700}
.sheet-box a .ic{color:#b794ff;width:22px;height:22px}.sheet-box a:hover{text-decoration:none}
@keyframes sheet{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}

/* --- controls: 44px+ touch targets, 16px text so iOS never zooms --- */
input,select,textarea{font-size:16px;min-height:48px;border-radius:14px;padding:12px 14px;-webkit-appearance:none;appearance:none;max-width:100%}
textarea{min-height:110px}
input[type=date],input[type=datetime-local],input[type=time]{min-width:0;width:100%;display:block;text-align:left}
input[type=checkbox],input[type=radio]{-webkit-appearance:auto;appearance:auto;width:24px;height:24px;min-height:0;padding:0;margin:0;accent-color:#7c3aed;flex-shrink:0;border-radius:6px}
.seg input[type=radio]{display:none}
input[type=file]{padding:10px;min-height:0;font-size:14px}
select{background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 20px) 21px,calc(100% - 14px) 21px;background-size:6px 6px;background-repeat:no-repeat;padding-right:36px}
.btn{min-height:48px;padding:11px 16px;border-radius:14px;font-size:15px;white-space:nowrap}
.btn.sm{min-height:42px;min-width:42px;padding:8px 12px;border-radius:12px}
.btn:active{transform:scale(.97);filter:brightness(1.1)}
.link{min-height:40px;padding:8px 10px}
label.check{min-height:46px;padding:6px 2px;gap:12px;font-size:15px}
.actions{gap:8px}.actions .btn,.actions form{flex:1 1 calc(50% - 8px)}.actions form .btn{width:100%}
.inline-form{flex-direction:column}
.seg{display:flex;align-self:stretch;width:100%}.seg label{flex:1}.seg span{display:block;text-align:center;padding:11px 8px;font-size:14px}
.filters{overflow-x:auto;scrollbar-width:none;margin:10px -14px;padding:0 14px}.filters::-webkit-scrollbar{display:none}
.filters button{flex:0 0 auto;min-height:40px;padding:8px 16px;border-radius:999px}
.row{flex-wrap:wrap;gap:10px;padding:12px 0}.row .grow{flex:1 1 55%;min-width:0}.row.sub{padding-left:8px}
.pathrow{flex-direction:column}
code{font-size:12px}
.two-in{grid-template-columns:1fr}
.media-grid{grid-template-columns:repeat(2,1fr);gap:10px}.mtile{border-radius:14px}
#pick.media-grid.compact{display:grid;grid-template-columns:repeat(3,1fr);overflow:visible;margin:0;padding:0}
#pick .mtile{flex:none}
#composeForm>.btn.primary,#ruleForm>.btn.primary{position:sticky;bottom:calc(var(--tab) + 12px + var(--sab));z-index:4;width:100%;min-height:52px;font-size:16px}
.cal-head{display:grid;grid-template-columns:48px 1fr 48px;gap:8px;align-items:center}.cal-head h2{text-align:center}.cal-head #today{grid-column:1/-1}
.cal{gap:4px}.cal .day{min-height:58px;padding:5px 3px;border-radius:12px;align-items:center;flex-direction:row;flex-wrap:wrap;justify-content:center;align-content:flex-start;gap:3px}
.cal .day .dn{flex:0 0 100%;text-align:center;font-size:13px}.cal .dow{font-size:11px}
.cpost{font-size:0;padding:0;height:6px;width:6px;border-left-width:0;border-radius:50%;background:var(--accent2)}.cpost.published{background:var(--good)}.cpost.failed{background:var(--bad)}
#dayList .row{align-items:flex-start}
.nums{flex-wrap:wrap;gap:14px 24px}
.tchip{padding:7px 8px 7px 14px;font-size:14px}.tchip button{width:24px;height:24px}
.ws-block .row{align-items:center}.ws-block .actions .btn{flex:1 1 100%}
.modal{align-items:flex-end;padding:0;background:rgba(5,3,15,.62);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:80}
.modal .box{max-width:none;border-radius:24px 24px 0 0;max-height:90dvh;padding:18px 16px calc(18px + var(--sab));border-bottom:0;animation:sheet .22s ease-out}
.modal .box::before{content:"";display:block;width:42px;height:5px;border-radius:3px;background:var(--line);margin:-6px auto 8px}
.modal .list div{padding:14px 12px}
.authpage{padding:calc(20px + var(--sat)) 16px calc(20px + var(--sab));min-height:100dvh}.authbox{padding:22px;border-radius:24px}
@media (hover:none){.btn:hover{border-color:var(--line)}.btn.primary:hover{filter:none}}

/* ===== Home: everything on ONE screen, no scrolling ===== */
.page-home .content{height:100dvh;overflow:hidden;display:flex;flex-direction:column;min-height:0}
.page-home .top{position:relative;flex:0 0 auto;background:none;padding-bottom:6px}
.page-home main{flex:1;min-height:0;padding:0 calc(14px + var(--sar)) calc(var(--tab) + 14px + var(--sab)) calc(14px + var(--sal));overflow:hidden}
.hm{gap:10px}
.hello{padding-top:0}.hello h1{font-size:25px;margin:0}.hello p{font-size:13px;margin:2px 0 0}.script{display:none}
.wsrow{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.wsrow>:nth-child(n+3){display:none}
.wsc{padding:11px;gap:7px;border-radius:18px}
.wsc-h{gap:9px}.wav{width:40px;height:40px;font-size:18px;border-radius:12px}
.wn b{font-size:15px}.wn small{font-size:12px}
.pfs{min-height:22px}
.wsc .nums b{font-size:18px}.wsc .nums span{font-size:11px}
.wsc .open{height:36px;border-radius:11px;font-size:14px}.wsc .open .lg{display:none}.wsc .open .sm{display:inline}
.wsc.new{min-height:0;padding:10px}.plusc{width:40px;height:40px}.plusc .ic{width:22px;height:22px}.newbtn b{font-size:14px}.newbtn small{display:none}
.wsc.autoc{display:none}
.statrow{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.statrow .stc:nth-child(5),.quote{display:none}
.stc{flex-direction:column;align-items:flex-start;gap:6px;padding:9px 10px;border-radius:15px}
.stc>div{display:flex;flex-direction:column-reverse}
.sti{width:30px;height:30px;border-radius:10px}.sti .ic{width:17px;height:17px}
.stc b{font-size:21px;line-height:1.05}.stc small{font-size:11px;overflow:hidden;text-overflow:ellipsis;max-width:100%;white-space:nowrap}.stc small .lg{display:none}.stc small .sm{display:inline}.stc em{display:none}
.rowa{display:flex;flex-direction:column;gap:10px;flex:1;min-height:0}
.pn-quick,.rowb,.pn-up{display:none}
.pn-up{flex:1;min-height:0;padding:11px 12px;border-radius:18px}
.pn-up .ph{margin-bottom:6px}.pn-up .ph h2{font-size:16px}
.up{padding:6px 8px;gap:10px;border-radius:14px}
.th{width:44px;height:44px;border-radius:11px}
.ub b{font-size:14px}.when{font-size:12px}.tg em{font-size:12px}
.up .st{display:none}
.kebab{width:36px;height:36px}
.pn-cal{order:2;flex:0 0 auto;padding:8px;border-radius:18px}
.pn-cal .ph,.pn-cal .cal-title,.pn-cal .cal2,.pn-cal .cal-foot{display:none}
.wstrip{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;color:var(--text)}
.wstrip,.wstrip:hover{text-decoration:none}
.wstrip .sd{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 0 5px;border-radius:12px;background:rgba(255,255,255,.04);border:1px solid rgba(142,112,255,.14)}
.wstrip .sd.today{border-color:#a855f7;background:rgba(168,85,247,.2)}
.wstrip span{font-size:10.5px;color:var(--muted)}.wstrip b{font-size:15px}
.wstrip i{font-style:normal;font-size:11px;min-width:18px;height:18px;border-radius:9px;display:flex;align-items:center;justify-content:center;color:transparent}
.wstrip i.has{background:#7c3aed;color:#fff;font-weight:700}
@media (min-height:850px){.wsrow>:nth-child(n+3):not(.autoc):not(.new):not(:nth-child(n+5)){display:flex}.hello p{font-size:14px}.th{width:48px;height:48px}.up{padding:8px 10px}}
@media (max-height:740px){.wstrip .sd{padding:4px 0}.hello p{display:none}.pfs{display:none}.wav{width:34px;height:34px;font-size:16px}.stc{padding:7px 9px}}
@media (max-height:660px){.pn-cal{display:none}.statrow{display:none}.wsc .nums{display:none}}

/* ===== Workspace page on phone: tabs, one pane at a time ===== */
.wp{gap:12px}
.wp-head{padding:12px;gap:12px;border-radius:20px}
.wp-back{display:flex;width:38px;height:38px;border-radius:12px;align-items:center;justify-content:center;background:rgba(255,255,255,.08);color:var(--text);flex:0 0 auto}.wp-back:hover{text-decoration:none}
.wp-head .wav{width:46px;height:46px;font-size:21px}
.wp-head h1{font-size:20px;margin:0}.wp-head .sub{font-size:12.5px}.wp-head .pfs{display:none}
.wp-actions{margin-left:auto}.wp-actions .btn:not(.primary) span{display:none}.wp-actions .btn:not(.primary){min-width:44px;padding:0}.wp-actions .btn.primary{padding:0 14px;min-height:44px}
.wp-tabs{display:flex;gap:4px;background:rgba(255,255,255,.05);border-radius:14px;padding:4px;overflow-x:auto;scrollbar-width:none}
.wp-tabs button{flex:1 0 auto;height:38px;padding:0 14px;border-radius:11px;border:0;background:none;color:var(--muted);font:inherit;font-weight:700;font-size:13.5px}
.wp-tabs .on{background:linear-gradient(135deg,#7c3aed,#a855f7);color:#fff}
.wp-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.wp-grid{grid-template-columns:1fr;gap:12px}
.wp .panel,.wp .wp-stats{display:none}
.wp[data-tab=ov] .p-ov,.wp[data-tab=po] .p-po,.wp[data-tab=ca] .p-ca,.wp[data-tab=me] .p-me{display:flex}
.wp[data-tab=ov] .wp-stats{display:grid}
.wp .pn-cal .ph,.wp .pn-cal .cal-title,.wp .pn-cal .cal2,.wp .pn-cal .cal-foot{display:none}
.wp[data-tab=ca] .pn-cal .ph{display:flex}.wp[data-tab=ca] .pn-cal .cal-title{display:block}.wp[data-tab=ca] .pn-cal .cal2{display:grid}.wp[data-tab=ca] .pn-cal .cal-foot{display:flex}
.wp[data-tab=ca] .wstrip,.wp[data-tab=ov] .pn-cal .wstrip{display:grid}.wp[data-tab=ca] .wstrip{display:none}
.wp[data-tab=ca] .cal2.week{grid-template-columns:repeat(7,minmax(0,1fr))}
.wp .cal2{min-height:0}
.wp .calctl .segb{display:none}
.wp .cb{min-height:180px}
.wp[data-tab=ca] .cc .cx b{display:none}.wp[data-tab=ca] .ct{height:28px}
.wp-media{grid-template-columns:repeat(3,1fr)}
.wp .up .st{display:inline-block}

@media (max-width:360px){.brand-m .bn small{display:none}.stc small{font-size:10px}}

/* workspace header on phones: back, avatar, title, gear on one row; Create Post on its own row */
.wp-head{flex-wrap:wrap}
.wp-head .wh-t{flex:1;min-width:0}.wp-head h1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wp-head .sub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wp-actions{display:contents}
.wp-actions .btn:not(.primary){order:1;flex:0 0 44px;margin-left:0}
.wp-actions .btn.primary{order:2;flex:1 0 100%;min-height:46px;margin-top:2px}
.wp-actions .btn.primary span{display:inline}

/* quick actions on phone */
.qtop{display:none}
.qpop .qgrid{grid-template-columns:1fr 1fr}
.qbar{display:block;flex:0 0 auto}
.qbar .qa{flex-direction:column}
.qbar .qgrid{grid-template-columns:1fr 1fr;gap:8px}
.qbar .qb{padding:11px 12px;border-radius:15px}.qbar .qb b{font-size:14px}.qbar .qb small{display:block;font-size:11px}
.qbar .qnote{display:none}.qbar .qsel{width:100%;height:42px}
.page-home .hello{flex-direction:column;align-items:stretch;gap:8px}
@media (max-height:740px){.qbar .qb small{display:none}.qbar .qb{padding:8px 10px}}
@media (max-height:660px){.qbar .qgrid{grid-template-columns:repeat(4,1fr)}.qbar .qb span b{font-size:11px}.qbar .qb .ic{display:none}}
.qbar .qgrid{grid-template-columns:1fr 1fr}.qclear{display:none!important}
@media (max-height:740px){.qbar .qclear .qb{padding:6px 10px}}
.qbar{width:100%;flex:0 0 auto}
.qbar .qa{align-items:stretch}.qbar .qgrid{width:100%}

/* ===== Phone Home v2: scrolling, app-like ===== */
.page-home .content{height:auto;min-height:100dvh;overflow:visible;display:block}
.page-home .top{position:sticky;top:0;z-index:20;background:linear-gradient(180deg,rgba(13,9,32,.96) 70%,rgba(13,9,32,0))}
.page-home main{overflow:visible;padding:2px calc(14px + var(--sar)) calc(var(--tab) + 28px + var(--sab)) calc(14px + var(--sal))}
.hm{display:flex;flex-direction:column;gap:14px;flex:none;min-height:0}
.hello{order:0;gap:12px}
.hello h1{font-size:26px}.hello p{display:block;font-size:13.5px;margin:3px 0 0}
.newsm{order:1}.statrow{order:2}.wsrow{order:3}.rowa{order:4}.rowb{order:5}
.flash.slim{order:0}

/* quick actions as an app dock */
.qbar .qgrid{grid-template-columns:repeat(4,1fr);gap:8px}
.qbar .qb{flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:6px;padding:12px 4px 10px;border-radius:18px;min-height:78px}
.qbar .qb .ic,.qbar .qb i{display:block;width:26px;height:26px;font-size:26px}
.qbar .qb span{align-items:center}
.qbar .qb b{font-size:11.5px;white-space:normal;line-height:1.15}
.qbar .qb small{display:none!important}
.qbar .qsel{height:44px;border-radius:14px}

/* trending now: hero carousel */
.newsm{display:flex;flex-direction:column;padding:14px 14px 12px;border-radius:24px;background:radial-gradient(120% 140% at 0% 0%,rgba(168,85,247,.38),rgba(20,12,48,.9) 60%),var(--card);border:1px solid rgba(168,85,247,.4);box-shadow:0 14px 34px rgba(60,20,120,.4);overflow:hidden}
.newsm .ph{margin-bottom:8px}
.newsm .ph h2{font-size:17px;display:flex;align-items:center;gap:8px}.newsm .ph h2 .ic{width:20px;height:20px;color:#d8b4fe}
.newsm .newsref{height:30px;padding:0 13px;font-size:12.5px}
.newsm .pills{margin-bottom:10px;gap:6px}
.newsm .pills button{height:32px;padding:0 15px;font-size:13px;border-radius:999px}
.newsm .nc{flex:none;height:128px;border-radius:16px}
.newsm .ntrack{height:calc(100% - 18px)}
.newsm .ntrack .ni{padding:12px 14px;gap:6px;border-radius:16px;background:rgba(8,4,24,.55);border:1px solid rgba(255,255,255,.1);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.newsm .ntrack .ni b{font-size:17px;line-height:1.25;-webkit-line-clamp:3}
.newsm .ntrack .ni span{font-size:12px}
.newsm .ndots{height:14px;gap:6px}.newsm .ndots i{width:7px;height:7px}.newsm .ndots i.on{width:22px}

/* stat tiles */
.statrow{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.stc{padding:11px 11px 10px;border-radius:18px}
.stc b{font-size:24px}

/* workspaces: swipe sideways */
.wsrow{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -14px;padding:2px 14px 6px;scrollbar-width:none}
.wsrow::-webkit-scrollbar{display:none}
.wsrow>.wsc{display:flex!important;flex:0 0 78%;scroll-snap-align:center}
.wsrow>.wsc.new{flex:0 0 44%}
.wsrow>.wsc.autoc{display:none!important}
.wsc .pfs{display:flex}
.wsc .nums span{font-size:11.5px}
.wsc .open .lg{display:inline}.wsc .open .sm{display:none}
.wsc .open{height:42px;font-size:15px}

/* week strip */
.rowa{display:flex;flex-direction:column;flex:none;gap:0}
.pn-cal{padding:12px;border-radius:22px}
.wstrip .sd{padding:9px 0 8px;border-radius:14px}
.wstrip b{font-size:17px}.wstrip span{font-size:11px}

/* ---------- publishing queue v2 (phone) ---------- */
.page-queue .qhead{align-items:stretch}.page-queue .qhead h1{font-size:24px}.page-queue .qhead-r{width:100%}.page-queue .qhead-r .qbtn{flex:1;justify-content:center}.page-queue .qhead-r form{flex:1;display:flex}.page-queue .qhead-r form .qbtn{width:100%}
.qbar2{position:static;padding:10px;gap:10px}
.qacc,.qsel2{width:100%;min-width:0}
.qaccpop{left:0;right:0;width:auto;max-width:none;top:62px}
.qseg{width:100%}.qseg button{flex:1}
.qtabs{margin-left:0;flex-wrap:nowrap;overflow-x:auto;width:100%;scrollbar-width:none;padding-bottom:2px}.qtabs::-webkit-scrollbar{display:none}.qtabs button{flex:0 0 auto}
.qr{display:grid;grid-template-columns:54px 1fr auto;grid-template-areas:"th mid kb" "th tm pill";gap:6px 12px;align-items:start;padding:12px}
.qthumb{grid-area:th}.qmid{grid-area:mid}.kb{grid-area:kb}
.qtime{grid-area:tm;width:auto;flex-direction:row;align-items:center;gap:10px}.qt{font-size:16px}
.qpill{grid-area:pill;justify-self:end;align-self:center}
.page-queue .qmanage{right:0}

.wsapp{flex-wrap:wrap}.wsapp select{max-width:100%;width:100%}

.wsec-add{margin-left:0;width:100%}.wspick{max-width:none}

.wsw{height:38px;padding:0 10px}.wsw-t small{display:none}.wsw-t b{max-width:84px;font-size:13px}.wsw .ic{display:none}
.wsw-wrap{order:-1}.wswpop{left:0}
.brand-m .bn{display:none}.top-r{gap:8px}.wsw-wrap{order:0}.wsw-t b{max-width:110px}
.wswpop{position:fixed;left:12px;right:12px;top:66px;min-width:0}

.ds-add{grid-template-columns:1fr}

.hello{flex-wrap:wrap;gap:8px}.igq{max-width:100%;width:100%;order:3;padding:6px 10px;gap:8px}.igq-t b{display:none}.igq-a{width:46px}.igq-a small{display:none}.igq-av{width:34px;height:34px;font-size:14px}
.newsm.igm{order:4;display:flex}.igm .igg{grid-template-columns:repeat(auto-fill,minmax(58px,1fr));max-height:150px}.rowa{order:5}.rowb{order:6}
.newsm.igm .igg{max-height:300px;grid-template-columns:repeat(auto-fill,minmax(88px,1fr))}
.igm .igg .igq-av{width:64px;height:64px;border-radius:22px}.igm .igg .igq-av img{border-radius:22px}.igm .igg .igq-av::before{border-radius:27px}
/* Home v3 on phone */
.page-home .screens{flex:none;min-height:0;margin-top:6px;order:3}
.page-home .sc-track{scroll-snap-type:x mandatory;margin:0 -14px;padding:4px 14px 10px}
.page-home .sc{flex:0 0 76%;scroll-snap-align:center}
.page-home .sc-th{min-height:110px}
.page-home .sc-arrows button{width:38px;height:38px}
.qbar .qplat{margin:0 0 8px}
.page-home .sc.live{flex-basis:calc(100vw - 48px)}
.page-home .screens .sc{flex-basis:170px}.page-home .screens .sc.live{flex-basis:calc(100vw - 48px)}
.livetop span{display:none}.livetop{padding:0 12px}
.page-home .dash .screens{order:0!important}

/* ===== Home v5 on phone ===== */
.dh2{gap:12px}
.h2-hero{position:relative;display:block;min-height:150px;padding-right:0}
.h2-hero .hl{max-width:62%}.h2-hero h1{font-size:25px;margin:0}.h2-hero p{font-size:13px;margin:6px 0 0;color:#b9aedf}
.h2-art{position:absolute;right:-18px;top:-4px;width:190px;height:150px}.h2-art img{position:absolute;right:0;top:0;height:150px;width:auto;-webkit-mask-image:radial-gradient(ellipse 60% 62% at 50% 55%,#000 60%,transparent 100%);mask-image:radial-gradient(ellipse 60% 62% at 50% 55%,#000 60%,transparent 100%)}
.h2-art .script,.h2-date{display:none}
.h2-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.h2-st{display:flex;align-items:center;gap:9px;padding:10px 11px;border-radius:14px;background:linear-gradient(165deg,rgba(40,28,96,.55),rgba(22,15,56,.82));border:1px solid rgba(139,92,246,.24);color:#fff;text-decoration:none;min-width:0}
.h2-si{flex:0 0 38px;height:38px;border-radius:11px;display:flex;align-items:center;justify-content:center;background:rgba(124,58,237,.22);color:#c4a8ff}.h2-si .ic{width:19px;height:19px}.h2-si.b{background:rgba(59,130,246,.18);color:#7db3ff}.h2-si.p,.h2-si.r{background:rgba(236,72,153,.16);color:#f58fc4}
.h2-tx{flex:1;min-width:0}.h2-tx small{display:block;font-size:11px;color:#c9bdf0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.h2-v{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}.h2-v b{font-size:20px;line-height:1.2}.h2-v em{font-style:normal;font-size:10px;color:#b9aedf}.h2-v em.good{color:#4ade80}.h2-v em.bad{color:#ff7b7b}
.h2-st .spk{flex:0 0 40px;width:40px;height:30px}
.h2-grid,.h2-main,.h2-rail{display:flex;flex-direction:column;gap:12px;min-width:0}
.dh2 .h2-card{background:linear-gradient(165deg,rgba(40,28,96,.55),rgba(22,15,56,.82));border:1px solid rgba(139,92,246,.24);border-radius:16px;padding:13px 13px}
.dh2 .ph{display:flex;align-items:center;justify-content:space-between;margin:0 0 10px}.dh2 .ph h2{display:flex;align-items:center;gap:8px;font-size:16px;margin:0}.dh2 .ph h2 .ic{color:#b79cff;width:18px;height:18px}
.dh2 .ph>a{font-size:12px;font-weight:700;padding:5px 11px;border-radius:9px;background:rgba(255,255,255,.07);color:#ddd0ff;text-decoration:none}
.h2-create{display:flex;flex-wrap:wrap;align-items:center;gap:9px}
.h2-create .qbar,.h2-create .qbar .qa,.h2-create .qbar .qgrid{display:contents!important}
.h2-create .pn-h{order:1;flex:1 1 55%}.h2-create .pn-h h2{margin:0;font-size:16px}.h2-create .pn-h small{display:block;font-size:11.5px;color:#b9aedf;margin-top:2px}
.h2-as{order:2;display:flex;align-items:center;gap:4px;padding:0 4px 0 10px;height:34px;border-radius:10px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);font-size:11px;color:#c9bdf0;margin:0;flex:0 0 auto}
.h2-as select{background:transparent;border:0;color:#fff;font:inherit;font-weight:800;font-size:12px;min-height:0;height:32px;padding:0 4px;width:auto;max-width:90px}
.h2-as select option{background:#1a1340}
.h2-create .qsel{order:3;flex:1 1 100%;min-height:40px;height:40px;font-size:14px;border-radius:12px}
.h2-create .qplat{order:4;flex:1 1 100%;margin:0}
.h2-create .qclear{order:9;flex:1 1 100%;margin:0;display:block!important}.h2-create .qclear .qb{width:100%;height:38px;min-height:0;padding:0 12px;border-radius:12px;background:transparent;border:1px solid rgba(239,68,68,.45);color:#fca5a5;flex-direction:row;justify-content:center;gap:8px}
.h2-create .qclear .qb small{display:none!important}
.h2-create .h2-br{order:6;flex:1 1 100%;height:0}
.h2-create form:not(.qclear):not(.qsetup),.h2-create .qcustom{order:7;flex:1 1 calc(33.3% - 8px);min-width:0;margin:0}
.h2-create .qb{width:100%;min-height:92px;padding:10px 10px;border-radius:14px;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:5px;text-align:left}
.h2-create .qb .ic{width:22px;height:22px;display:block!important}.h2-create .qb b{font-size:13px;white-space:normal;line-height:1.15}.h2-create .qb small{display:block!important;font-size:10.5px;opacity:.85;line-height:1.2}
.h2-create .qcustom{display:flex!important;flex-direction:column;align-items:flex-start;gap:5px;min-height:92px;padding:10px;border-radius:14px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14);color:#fff;text-decoration:none}
.h2-create .qcustom .ic{width:22px;height:22px}.h2-create .qcustom b{font-size:13px;display:block;line-height:1.15}.h2-create .qcustom small{font-size:10.5px;opacity:.8;display:block}
.h2-create .qnote{display:none!important}.h2-create .qnote[data-nostory]{order:10;flex:1 1 100%;display:block!important}.h2-create .qsetup{order:7;flex:1 1 100%}
.h2-acc .sc-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 10px}
.h2-acc .sc-head h2{display:flex;align-items:center;gap:8px;font-size:16px;margin:0}.h2-acc .sc-head h2 small{background:rgba(255,255,255,.1);padding:2px 8px;border-radius:999px;font-size:12px}
.h2-acc .sc-arrows{display:flex;align-items:center;gap:6px}.h2-acc .sc-arrows select,.h2-acc .sc-arrows button{display:none}
.h2-acc .sc-all{height:32px;display:inline-flex;align-items:center;gap:6px;padding:0 11px;border-radius:9px;font-size:12px;font-weight:700;background:rgba(255,255,255,.07);color:#ddd0ff;text-decoration:none;margin:0}.h2-acc .sc-all.live i{width:8px;height:8px;border-radius:50%;background:#ef4444}.h2-acc .sc-all:not(.live){display:none}
.h2-acc .sc-track{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -13px;padding:2px 13px 6px;scrollbar-width:none;align-items:flex-start}
.h2-acc .sc{flex:0 0 150px;scroll-snap-align:start;padding:11px 9px 9px;gap:8px;border-radius:14px;background:linear-gradient(170deg,rgba(54,40,128,.55),rgba(28,20,72,.8));border:1px solid rgba(139,92,246,.28);display:flex;flex-direction:column;position:relative}
.h2-acc .sc.live{flex-basis:calc(100vw - 52px)}.h2-acc .sc.live .sc-num,.h2-acc .sc.live .sc-act{display:none}
.h2-acc .sc-top{display:flex;flex-direction:column;align-items:center;gap:5px;margin:0;color:#fff;text-decoration:none}
.h2-acc .sc-av{width:54px;height:54px;border-radius:50%;position:relative;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#7c3aed,#c026d3);font-weight:800;font-size:19px;border:2px solid rgba(255,255,255,.85)}
.h2-acc .sc-av img{position:absolute;inset:0;width:100%;height:100%;border-radius:50%;object-fit:cover}.h2-acc .sc-av::before,.h2-acc .sc-av::after{display:none}
.sc-pf{position:absolute;right:-5px;bottom:-3px;width:21px;height:21px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:2px solid #1b1245;z-index:2}.sc-pf .ic{width:11px;height:11px;color:#fff}.sc-pf.ig{background:linear-gradient(135deg,#f58529,#dd2a7b 55%,#8134af)}.sc-pf.fb{background:#1877f2}
.h2-acc .sc-top b{font-size:12.5px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.h2-acc .sc-top small{display:inline-block!important;font-size:10px;color:#ff9a9a}
.h2-acc .sc-num{display:grid;grid-template-columns:1fr 1fr;gap:5px}.h2-acc .sc-num div{padding:5px 2px;border-radius:9px;background:rgba(255,255,255,.07);text-align:center;display:flex;flex-direction:column;align-items:center}.h2-acc .sc-num b{font-size:14px}.h2-acc .sc-num span{font-size:9.5px;color:#b9aedf}
.h2-acc .sc-act{display:grid;grid-template-columns:1fr 1fr 34px;gap:4px}.h2-acc .sc-act form{display:flex;margin:0}
.h2-acc .sc-act form button,.h2-acc .sc-act .b3{width:100%;height:30px;border-radius:8px;border:0;font:inherit;font-weight:800;font-size:10.5px;color:#fff;display:flex;align-items:center;justify-content:center;gap:3px;padding:0;text-decoration:none;grid-column:auto}
.h2-acc .sc-act .ic{width:11px;height:11px}.h2-acc .sc-act .b1{background:linear-gradient(135deg,#7c3aed,#a855f7)}.h2-acc .sc-act .b2{background:linear-gradient(135deg,#db2777,#f472b6)}
.h2-acc .sc-act .b3{background:rgba(255,255,255,.1)}.h2-acc .sc-act .b3.golive{background:linear-gradient(135deg,#f58529,#dd2a7b 55%,#8134af)}.h2-acc .sc-act .b3.golive span{display:none}
.h2-acc .sc-k{display:none}
.h2-bottom{display:flex;flex-direction:column;gap:12px}.hp-cal{display:none}
.h2-bottom .up-list{display:flex;flex-direction:column;gap:8px}.h2-bottom .up{padding:8px 10px;border-radius:12px;background:rgba(255,255,255,.04);border:1px solid rgba(139,92,246,.14);gap:11px}
.h2-bottom .th{width:46px;height:46px;flex:0 0 46px;border-radius:10px}
.aibox,.bt{display:none}
.h2-duo{display:flex;flex-direction:column;gap:12px}
.nt-l{display:flex;flex-direction:column;gap:8px}.nt-i{display:flex;align-items:flex-start;gap:10px;padding:9px 10px;border-radius:12px;background:rgba(255,255,255,.04)}.nt-d{flex:0 0 9px;height:9px;border-radius:50%;background:#22c55e;margin-top:5px}.nt-d.bad{background:#ef4444}
.nt-x b{display:block;font-size:13px}.nt-x em{font-style:normal;font-size:11px;color:#9d90cf}
.pq-n{display:flex;align-items:baseline;gap:8px}.pq-n b{font-size:30px;line-height:1}.pq-n span{font-size:12px;color:#b9aedf}
.pq-th{display:flex;gap:6px;margin:10px 0}.pq-th span{flex:1;aspect-ratio:1;border-radius:9px;overflow:hidden;background:rgba(255,255,255,.07);max-width:64px}.pq-th img,.pq-th video{width:100%;height:100%;object-fit:cover}
.pq-go{display:block;text-align:center;padding:10px;border-radius:11px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);color:#fff;font-weight:800;font-size:13px;text-decoration:none}
.brand-m .bn{display:block!important}.brand-m .bn b{font-size:20px}.brand-m .bn small{display:block!important;font-size:11px;margin-top:2px;white-space:nowrap}
.health{display:none!important}.wsw-wrap{display:block!important;order:-1;margin-right:auto}.wsw{height:44px;padding:0 12px;border-radius:14px}.wsw-t small{display:block!important;font-size:10px}.wsw-t b{max-width:120px;font-size:14px}.wsw .ic{display:inline-block!important}.wswpop{top:auto;margin-top:6px}
.h2-art img{-webkit-mask-image:linear-gradient(90deg,transparent,#000 14%,#000 86%,transparent),linear-gradient(180deg,transparent,#000 22%,#000 82%,transparent);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent,#000 14%,#000 86%,transparent),linear-gradient(180deg,transparent,#000 22%,#000 82%,transparent);mask-composite:intersect}
.h2-create .h2-as{display:flex!important;flex-direction:row!important;white-space:nowrap;width:auto}
.h2-grid{align-items:stretch!important}.h2-grid>*{width:100%}
.tabbar{grid-template-columns:repeat(5,1fr)!important}

/* create post phone */
@media(max-width:760px){
.cp-head h1{font-size:22px}
.cp-tabs{width:100%}.cp-tabs label{flex:1}.cp-tabs span{justify-content:center;padding:9px 6px}
.cp-mgrid{grid-template-columns:1fr}.cp-prev{max-height:240px;aspect-ratio:16/10}
.cp-list{grid-template-columns:1fr 1fr;max-height:300px}
.cp-wrow{grid-template-columns:1fr 1fr}
.cp-tools{margin-left:0;width:100%}.cp-search{flex:1}.cp-search input{width:100%}
}
@media(max-width:760px){
.cp,.cp-grid,.cp-main,.cp-card{max-width:100%;min-width:0;box-sizing:border-box}
.cp input.cp-sw{width:40px!important;height:22px!important;-webkit-appearance:none!important;appearance:none!important;border-radius:999px!important}
.cp .cp-acc input{width:18px!important;height:18px!important}
.cp-lib #pick.media-grid.compact{grid-template-columns:repeat(3,1fr);max-height:300px;overflow:auto}
.cp-wrow{grid-template-columns:1fr}
.cp-opt>span{min-width:0}
.cp-list{grid-template-columns:1fr}
.cp-dt input{width:100%;box-sizing:border-box;min-width:0}
}

/* Home calendar on the phone: a vertical list of days */
.dh2 .hp-cal.pn-cal{display:block!important}
.dh2 .hp-cal .ph{display:flex!important;flex-wrap:wrap;gap:8px;align-items:center}
.dh2 .hp-cal .calctl{display:flex;flex-wrap:wrap;gap:6px;width:100%}
.dh2 .hp-cal .cal-title{display:block!important}
.dh2 .hp-cal .cal-foot{display:flex!important;flex-wrap:wrap;gap:8px}
.dh2 .hp-cal .cal2{display:flex!important;flex-direction:column;gap:8px;height:auto!important;min-height:0!important;flex:none!important;overflow:visible!important}
.dh2 .hp-cal .cal2 .cd{display:flex!important;flex-direction:row;align-items:stretch;gap:10px;height:auto!important;min-height:52px;overflow:visible!important;padding:8px 10px}
.dh2 .hp-cal .cal2 .ch{flex:0 0 46px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.dh2 .hp-cal .cal2 .cb{flex:1;min-width:0;overflow:visible!important;max-height:none!important;display:flex;flex-direction:column;gap:6px}
.dh2 .hp-cal .cal2 .cd.today{border-color:#8b5cf6;background:rgba(139,92,246,.16)}
.dh2 .hp-cal .cal2 .cc{flex-direction:row;align-items:center;gap:10px;padding:5px 8px 5px 5px}
.dh2 .hp-cal .cal2 .cc .ct{width:38px;height:38px;flex:0 0 38px;border-radius:8px;overflow:hidden}
.dh2 .hp-cal .cal2 .cc .ct *{width:100%;height:100%;object-fit:cover}
.dh2 .hp-cal .cal2 .cx{min-width:0}.dh2 .hp-cal .cal2 .cx b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}
.dh2 .hp-cal .cal2 .cx i{font-size:11.5px;font-style:normal;color:#cdb8ff}
.dh2 .hp-cal .cal2 .cb{max-height:200px!important;overflow-y:auto!important}
.dh2 .hp-cal.pn-cal{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;flex:none!important}
.dh2 .hp-cal .cal2 .cempty{flex-direction:row;gap:8px;padding:8px;min-height:0;height:auto}.dh2 .hp-cal .cal2 .cempty i{font-style:normal}.dh2 .hp-cal .cal2 .cd{min-height:0}
.ytbox{display:block!important}
.h2-create .qplat{width:100%!important}.h2-create .qplat button{flex:1}

/* ===================== Phone redesign: Home, + sheet, Content planner ===================== */
/* header: logo + name left, bell and avatar right, search under it on Home */
.top{flex-wrap:wrap;row-gap:10px}
.top-r .livetop,.top-r .me .mechev{display:none}
.page-home .search{display:flex!important;order:9;flex:1 1 100%;height:46px;border-radius:16px;margin:0;background:rgba(255,255,255,.06)}
.page-home .search kbd{display:none}
.page-home .search input{font-size:14px}
.brand-m .bn{display:block!important}.brand-m .bn b{font-size:22px}.brand-m .bn small{font-size:12px;color:#d6c9ff}
.top-r{margin-left:auto}

/* home */
.page-home .dh2{display:none!important}
.page-home .mh{display:flex;flex-direction:column;gap:14px}
.mh-hero{position:relative;overflow:hidden;border-radius:22px;padding:16px 16px 14px;border:1px solid rgba(139,92,246,.35);background:radial-gradient(120% 140% at 85% 20%,rgba(168,85,247,.38),rgba(26,19,64,.9) 60%),linear-gradient(165deg,#241a5e,#150f3a);min-height:150px}
.mh-ht{position:relative;z-index:2;max-width:57%}
.mh-hero h1{font-size:24px;line-height:1.12;margin:0 0 6px;font-weight:800}.mh-hero p{margin:0 0 12px;max-width:100%;color:#d9ceff;font-size:14.5px;line-height:1.3}
.mh-hb{display:flex;align-items:center;gap:8px;padding:9px 12px;border-radius:14px;background:rgba(10,6,30,.82);border:1px solid rgba(255,255,255,.14);color:#fff;font-size:11.5px;line-height:1.3;text-decoration:none;width:max-content;max-width:100%}.mh-hb .ic{width:16px;height:16px;flex:none}
.mh-art{position:absolute;right:-38px;bottom:-8px;height:168px;width:auto;z-index:1;-webkit-mask-image:radial-gradient(ellipse 58% 62% at 52% 54%,#000 60%,transparent 100%);mask-image:radial-gradient(ellipse 58% 62% at 52% 54%,#000 60%,transparent 100%)}
.mh-h{display:flex;align-items:center;justify-content:space-between;margin:2px 2px 10px}
.mh-h h2{display:flex;align-items:center;gap:9px;font-size:18px;margin:0;font-weight:800}.mh-h h2 .ic{width:20px;height:20px;color:#a78bfa}
.mh-per,.mh-va{display:flex;align-items:center;gap:4px;font-size:12.5px;font-weight:700;padding:7px 12px;border-radius:12px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);color:#e6dcff;text-decoration:none}
.mh-per .ic{width:13px;height:13px;transform:rotate(90deg)}.mh-va .ic{width:13px;height:13px}
.mh-pg{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mh-pc{position:relative;display:flex;flex-direction:column;gap:6px;padding:12px;border-radius:18px;border:1px solid rgba(139,92,246,.3);background:linear-gradient(165deg,rgba(40,28,96,.7),rgba(22,15,56,.9));color:#fff;text-decoration:none;overflow:hidden;min-height:112px}
.mh-pc>div{display:flex;flex-direction:column;margin-left:52px;margin-top:-4px;min-height:42px;justify-content:center}.mh-pc b{font-size:23px;line-height:1.1;font-weight:800}.mh-pc small{font-size:12px;color:#cdbff5}
.mh-pi{position:absolute;left:12px;top:12px;width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:rgba(124,58,237,.3);border:1px solid rgba(167,139,250,.4);color:#c4b0ff}.mh-pi .ic{width:21px;height:21px}
.mh-pc.c2 .mh-pi{background:rgba(236,72,153,.22);border-color:rgba(236,72,153,.45);color:#f9a8d4}
.mh-pc.c3 .mh-pi{background:rgba(99,102,241,.28);border-color:rgba(129,140,248,.5);color:#a5b4fc}
.mh-pc.c4 .mh-pi{background:rgba(59,130,246,.22);border-color:rgba(96,165,250,.45);color:#93c5fd}
.mh-spk{width:100%;height:30px;color:#a855f7;margin-top:2px}.mh-pc.c2 .mh-spk{color:#ec4899}.mh-pc.c4 .mh-spk{color:#60a5fa}.mh-pc.c3 .mh-spk{color:#818cf8}
.mh-pc em{font-style:normal;font-size:10.5px;color:#a99ad6;margin-top:-2px}
.mh-sl,.mc-list{display:flex;flex-direction:column;gap:8px}
.mh-empty{margin:4px 2px;padding:14px;border-radius:14px;background:rgba(255,255,255,.04);color:#c9bdf0;font-size:13.5px}.mh-empty a{color:#cdb8ff;font-weight:700}
.mrow{display:flex;align-items:center;gap:12px;padding:8px 10px;border-radius:16px;border:1px solid rgba(139,92,246,.22);background:linear-gradient(165deg,rgba(40,28,96,.55),rgba(22,15,56,.8))}
.mr-th{width:54px;height:54px;flex:0 0 54px;border-radius:12px;overflow:hidden;background:rgba(255,255,255,.07)}.mr-th img,.mr-th video{width:100%;height:100%;object-fit:cover;display:block}
.mr-b{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.mr-b small{font-size:12px;color:#cdbff5}
.mr-b b{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700;min-width:0}.mr-b b span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.mr-b .pfb{width:22px;height:22px;flex:0 0 22px;border-radius:7px}.mr-b .pfb .ic{width:13px;height:13px}
.mr-st{font-size:11.5px;font-weight:800;padding:6px 11px;border-radius:12px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:#e2d9ff;white-space:nowrap}
.mr-st.ok{background:rgba(16,185,129,.18);border-color:rgba(16,185,129,.5);color:#4ade80}.mr-st.bad{background:rgba(239,68,68,.18);border-color:rgba(239,68,68,.5);color:#fca5a5}.mr-st.warn{background:rgba(245,158,11,.18);border-color:rgba(245,158,11,.5);color:#fcd34d}
.mr-k{width:28px;height:36px;border:0;background:none;color:#e2d9ff;font-size:22px;line-height:1;padding:0;flex:none}.mr-k.off{visibility:hidden}

/* tab bar: five slots with the round + in the middle */
.tabbar{grid-template-columns:1fr 1fr 76px 1fr 1fr}
.tabbar .fab{display:flex;position:relative}
.tabbar .fab .ic:last-child{display:none}.cs-open .tabbar .fab .ic:first-child{display:none}.cs-open .tabbar .fab .ic:last-child{display:block}

/* create sheet (phone positioning; shared look lives in style.css) */
.cs{inset:0 0 calc(var(--tab) + var(--sab)) 0;z-index:45;align-items:flex-end}
.cs-box{width:100%;border-radius:28px 28px 0 0;border-bottom:0}
/* calendar: Content planner */
.page-cal .mc{display:block}.page-cal .mc-old{display:none}
.page-cal.mc-month .mc-old{display:block}.page-cal.mc-month .mc-wk,.page-cal.mc-month .mc-old>h1{display:none}
.mc-top{display:flex;align-items:center;gap:10px;margin:2px 0 12px}
.mc-ic{width:30px;height:30px;color:#c4b0ff;flex:none}.mc-ic .ic{width:26px;height:26px}
.mc-top h1{flex:1;font-size:22px;margin:0}
.mc-create{display:flex;align-items:center;gap:6px;height:40px;padding:0 14px;border-radius:13px;background:linear-gradient(135deg,#7c3aed,#a855f7);color:#fff;font-weight:800;font-size:14px;text-decoration:none;box-shadow:0 8px 20px rgba(124,58,237,.45)}.mc-create .ic{width:16px;height:16px}
.mc-tabs{display:grid;grid-template-columns:repeat(3,1fr);padding:4px;border-radius:15px;background:rgba(255,255,255,.06);border:1px solid rgba(139,92,246,.25);margin-bottom:12px}
.mc-tabs button{height:38px;border:0;border-radius:11px;background:none;color:#d4cbf7;font:inherit;font-weight:700;font-size:15px}.mc-tabs button.on{background:linear-gradient(135deg,#7c3aed,#a855f7);color:#fff}
.mc-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.mc-nav b{font-size:16px}.mc-nav button{width:44px;height:44px;border-radius:50%;border:1px solid rgba(139,92,246,.4);background:rgba(255,255,255,.05);color:#fff;display:grid;place-items:center;padding:0}.mc-nav .ic{width:18px;height:18px}
.mc-days{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin-bottom:12px}
.mc-d{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 0;border-radius:13px;border:1px solid rgba(139,92,246,.3);background:rgba(255,255,255,.04);color:#e2d9ff;font:inherit}
.mc-d span{font-size:11.5px;color:#cdbff5}.mc-d b{font-size:17px}.mc-d i{position:absolute;bottom:4px;width:5px;height:5px;border-radius:50%;background:#a855f7}
.mc-d.today{border-color:#a855f7}.mc-d.sel{background:linear-gradient(160deg,#7c3aed,#a855f7);border-color:transparent;color:#fff}.mc-d.sel span{color:#efe6ff}.mc-d.sel i{background:#fff}
.mc-list{margin-bottom:12px}.mc-all h4{margin:8px 2px 2px;font-size:13px;color:#cdbff5;font-weight:700}
.mc-duo{display:grid;grid-template-columns:1.1fr .9fr;gap:10px;margin-bottom:12px}
.mc-card{padding:12px;border-radius:18px;border:1px solid rgba(139,92,246,.28);background:linear-gradient(165deg,rgba(40,28,96,.6),rgba(22,15,56,.85))}
.mc-card h3{display:flex;align-items:center;gap:7px;font-size:14.5px;margin:0 0 3px}.mc-card h3 .ic{width:17px;height:17px;color:#b79cff}.mc-card>small{display:block;font-size:11.5px;color:#b9aedf;margin-bottom:8px}
.mc-bt{display:grid;grid-template-columns:58px 1fr 34px;align-items:center;gap:6px;font-size:12px;margin:5px 0}.mc-bt div{height:7px;border-radius:4px;background:rgba(255,255,255,.1);overflow:hidden}.mc-bt i{display:block;height:100%;border-radius:4px;background:linear-gradient(90deg,#7c3aed,#d946ef)}.mc-bt b{text-align:right;font-size:12px}
.mc-q{display:flex;align-items:baseline;gap:8px;margin-top:6px}.mc-q b{font-size:34px;line-height:1}.mc-q small{font-size:12px;color:#cdbff5}
.mc-qt{display:flex;margin-top:10px}.mc-qt span{width:34px;height:34px;border-radius:9px;overflow:hidden;margin-left:-8px;border:2px solid #1b1245;background:rgba(255,255,255,.1)}.mc-qt span:first-child{margin-left:0}.mc-qt img,.mc-qt video{width:100%;height:100%;object-fit:cover}
.mc-ai{display:flex;align-items:center;gap:12px;padding:14px;border-radius:18px;border:1px solid rgba(167,139,250,.55);background:linear-gradient(135deg,rgba(124,58,237,.3),rgba(168,85,247,.12));color:#fff;text-decoration:none}
.mc-aii{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;border:1px solid rgba(251,191,36,.6);color:#fcd34d;flex:none}.mc-aii .ic{width:21px;height:21px}
.mc-ai>div{flex:1;display:flex;flex-direction:column;gap:3px;font-size:13px;color:#e2d9ff}.mc-ai b{font-size:15px;color:#fff}.mc-ai em{font-style:normal;font-size:11px;font-weight:800;background:#7c3aed;color:#fff;padding:3px 9px;border-radius:9px;margin-left:8px}
.mc-ai>.ic{width:18px;height:18px;flex:none}

.mc-list[hidden],.mc-wk[hidden]{display:none!important}
.page-cal.mc-month .mc-duo,.page-cal.mc-month .mc-ai,.page-cal.mc-month .mc-all{display:none!important}
.mc-old .cal-head{display:flex;align-items:center;gap:8px}.mc-old .cal-head h2{flex:1;text-align:center;font-size:17px;margin:0}.mc-old .cal-head .btn{min-width:44px;height:44px;display:grid;place-items:center;padding:0 10px}.mc-old .cal-head .btn .ic{width:18px;height:18px}

.wp[data-tab=ca] .cal2.week{height:360px;flex:0 0 360px}
.wp[data-tab=ca] .cal2 .cd{min-height:0;height:100%}
.wp[data-tab=ca] .cal2 .cb{overflow-y:auto;max-height:100%}

/* quick login buttons above the tab bar, two each side of the + button */
.qlog{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(var(--tab) + var(--sab) + 10px);z-index:49;display:flex;align-items:center;gap:12px;pointer-events:none}
.ql-gap{width:80px;flex:0 0 80px}
.ql{pointer-events:auto;position:relative;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;color:#fff;border:2px solid rgba(255,255,255,.2);box-shadow:0 6px 16px rgba(0,0,0,.5);animation:qlpop .5s cubic-bezier(.2,1.4,.4,1) both,qlfloat 3.4s ease-in-out infinite;animation-delay:calc(var(--d)*.12s),calc(var(--d)*.5s)}
.ql:active{transform:scale(.9)}
.ql .ic{width:20px;height:20px;stroke:#fff}
.ql::after{content:"";position:absolute;inset:-5px;border-radius:50%;border:2px solid var(--rc,#fff);opacity:0;animation:qlring 2.8s ease-out infinite;animation-delay:calc(var(--d)*.45s)}
.ql span{display:none}
.ql.ig{background:linear-gradient(45deg,#f9a03f,#e1306c 55%,#833ab4);--rc:#e1306c}
.ql.fb{background:#1877f2;--rc:#1877f2}.ql.yt{background:#ff0033;--rc:#ff0033}.ql.tt{background:linear-gradient(135deg,#25f4ee,#111 45%,#fe2c55);--rc:#fe2c55}
.cs-open .qlog{opacity:0;pointer-events:none}
main{padding-bottom:calc(var(--tab) + 62px + var(--sab))}
@media (prefers-reduced-motion:reduce){.ql,.ql::after{animation:none}}

/* ===== Workspaces page on the phone ===== */
@media (max-width:820px){
  .wsx-hero{padding:14px;gap:12px}.wsx-ico{width:56px;height:56px;flex-basis:56px;font-size:26px;border-radius:16px}
  .wsx-hd{flex:1 1 200px}.wsx-hd h2{font-size:21px}.wsx-art{display:none}
  .wsx-stats{width:100%;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.wsx-st{width:auto}
  .wsx-tools{grid-template-columns:repeat(2,minmax(0,1fr))}.wsx-tool{min-height:0}
  .wsx-plats{grid-template-columns:1fr}.wsx-grid{grid-template-columns:1fr}
  .wsx-new input{flex:1 1 100%}.wsx-new .btn{width:100%}
  .crumb{display:none}
}

/* ===== Messages on the phone: list first, then the conversation ===== */
@media (max-width:820px){
  .msg-wrap{grid-template-columns:1fr;height:auto;min-height:0}
  .msg-wrap.has-cur .msg-list{display:none}
  .msg-wrap:not(.has-cur) .msg-conv{display:none}
  .msg-conv{height:calc(100vh - 250px);min-height:420px}
  .msg-back{display:flex;width:34px;height:34px;align-items:center;justify-content:center;border-radius:10px;background:rgba(255,255,255,.07);color:var(--text)}
  .msg-b{max-width:86%}.msg-bar>form:last-child{margin-left:0}.msg-f a{padding:7px 10px}
}

.mh-fv{margin:14px 0}
.mh-fvq{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0}
.mh-fvq form{margin:0;display:contents}
.fvb{display:flex;align-items:center;gap:8px;padding:12px;border-radius:14px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);color:inherit;font-weight:600;font-size:14px;text-decoration:none;font-family:inherit;width:100%;cursor:pointer}
.fvb .ic{width:18px;height:18px;flex:none}
.fvb.pri{background:linear-gradient(135deg,#10d9a4,#0ea5a0);color:#04201a;border:0}
.mh-lp{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07);border-radius:16px;padding:12px;margin:8px 0}
.mh-fva{display:flex;flex-direction:column;gap:6px}
.mh-fva a{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.04);color:inherit;text-decoration:none}
.mh-fva em{margin-left:auto;font-style:normal;font-size:12px}.mh-fva em.ok{color:#10d9a4}.mh-fva em.bad{color:#f59e0b}
.fvp .tp-drive .yp-h small{display:none}
.fvp .tp-drive .yp-h h2{white-space:normal}
.fvp .yp-st{padding:12px}

/* "More" menu: header with a close button, never taller than the screen, scrolls inside */
.sheet-box{max-height:86vh;max-height:86dvh;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;align-content:start}
.sheet-box .sh-top{grid-column:1/-1;position:sticky;top:-10px;z-index:3;display:flex;align-items:center;justify-content:space-between;margin:-10px -14px 0;padding:18px 14px 8px;background:rgb(26,11,48);border-radius:26px 26px 0 0}
.sheet-box .sh-top .grab{position:absolute;left:50%;top:7px;transform:translateX(-50%);width:42px;height:5px;border-radius:3px;background:var(--line);margin:0}
.sheet-box .sh-top b{font-size:18px;font-weight:800}
.sh-x{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;padding:0;border:1px solid var(--line);background:rgba(255,255,255,.08);color:var(--text);cursor:pointer}
.sh-x .ic{width:20px;height:20px}
body.sheet-open{overflow:hidden}
