/* Yeeqi design system v3 (public/docs/design.html is the reference).
   Brand: tomato #FF5A36 (key actions only), ink #1A1A1A, paper #F6F3EE; warm grays; semantic green #1FB36B, blue #3D63F5.
   Inside a room the page takes the room's own ground; covers stay paper stickers. */
:root{--paper:#F6F3EE;--ink:#1A1A1A;--ink2:#5A554E;--line:#E4DED4;--tomato:#FF5A36;--blue:#3D63F5;--green:#1FB36B;--gray:#9A948A;
  --warm:rgba(70,50,30,.14)}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--paper);color:var(--ink);font-family:Inter,'Noto Sans SC',system-ui,sans-serif;-webkit-font-smoothing:antialiased}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit;padding:0}
button:disabled{opacity:.6}
input{font-family:inherit}
a{color:inherit;text-decoration:none}
#app{max-width:480px;margin:0 auto;min-height:100vh;position:relative}
.page{padding:max(20px,env(safe-area-inset-top)) 18px 140px;position:relative;display:flex;flex-direction:column;gap:14px}

/* logo: a tomato rounded square tilted -7°, an ink "y" with a white stroke */
.logo{display:flex;align-items:center;gap:10px}
.mark{width:40px;height:40px;background:url(/mark.svg) center/contain no-repeat;filter:drop-shadow(0 1px 2px rgba(70,50,30,.18));flex-shrink:0;display:inline-block}
.mark span{display:none}
/* The Yeeqi logo (design system v3, A): a tomato and an ink sticker overlapping; brand colors tomato, ink, paper. */
.mark.lg{width:72px;height:72px;margin:0 auto 14px;display:block}
.wordmark{font-family:Fredoka;font-weight:700;font-size:30px;letter-spacing:-.02em}
.hdr{display:flex;align-items:center;justify-content:space-between;margin:10px 0 2px}
.hdr-r{display:flex;align-items:center;gap:12px}
.me{border-radius:50%}
.plus{width:46px;height:46px;border-radius:23px;background:var(--tomato);color:#fff;font-size:28px;line-height:1;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 3px #fff,0 6px 14px rgba(255,90,54,.35)}

/* the AI speaks in a bubble beside a small tilted y */
.ai-say{display:flex;align-items:flex-end;gap:8px}
.ymark{width:26px;height:26px;flex-shrink:0;display:block;background:url(/mark.svg) center/contain no-repeat}
.bub{background:#fff;border-radius:16px 16px 16px 4px;padding:9px 13px;font-size:14px;font-weight:600;line-height:1.45;box-shadow:0 4px 12px rgba(60,40,20,.1)}
.fresh .bub{animation:fold .35s ease-out}
.world .bub{box-shadow:0 6px 14px var(--edge)}
.ai-say.thinking .bub{animation:breathe 1.4s ease-in-out infinite}
@keyframes fold{from{transform:scale(.92);opacity:.4}}

/* status sticker: top centre of a cover or the first card, never tilted */
.tag{position:absolute;left:50%;top:-15px;transform:translateX(-50%);display:inline-flex;align-items:center;gap:6px;background:#fff;padding:7px 14px 7px 11px;border-radius:999px;font-size:14px;font-weight:800;white-space:nowrap;box-shadow:0 0 0 3px #fff,0 6px 12px rgba(60,40,20,.2);z-index:2;max-width:92%;overflow:hidden;text-overflow:ellipsis;color:var(--ink)}
.tag.sm{top:-13px;padding:5px 11px 5px 9px;font-size:12px;gap:5px}
.tag i{width:9px;height:9px;border-radius:5px;display:inline-block;flex-shrink:0}.tag.sm i{width:7px;height:7px}
.k-act{background:var(--tomato)}.k-time{background:var(--blue)}.k-done{background:#1FB36B}.k-info{background:var(--gray)}

/* covers: a 7px white die-cut edge around the World's ground */
.st{position:relative;border-radius:26px;background:#fff;padding:7px;box-shadow:0 10px 22px var(--warm);display:block}
.art{width:100%;height:100%;border-radius:20px;overflow:hidden;position:relative;display:flex;align-items:center;justify-content:center;text-align:center}
.art-in{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding:0 16px}
.art-in.side{flex-direction:row;gap:18px;text-align:left}
.art-sub{font-size:12px;font-weight:800;letter-spacing:.04em;max-width:150px}
.side .art-sub{font-size:14px;line-height:1.5}
.display{line-height:.95;display:block}
.deco{position:absolute;pointer-events:none}
.spark{position:absolute;line-height:1;pointer-events:none}

/* home */
.big{margin-top:16px}
.big .st{height:196px}
.nb{display:flex;align-items:center;justify-content:space-between;margin-top:12px;padding:0 4px;gap:10px}
.nbl{display:flex;align-items:center;gap:10px;min-width:0}
.nb b{font-size:17px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.go{height:40px;padding:0 18px;border-radius:20px;background:var(--tomato);color:#fff;font-size:15px;font-weight:800;display:inline-flex;align-items:center;box-shadow:0 0 0 3px #fff,0 5px 12px rgba(60,40,20,.2);white-space:nowrap;flex-shrink:0}
.sec{font-size:13px;font-weight:800;color:var(--ink2);margin:14px 4px 4px}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 16px;margin-top:14px}
.grid .st{aspect-ratio:1;border-radius:22px;padding:6px}.grid .art{border-radius:17px}
.n{font-size:15px;font-weight:800;padding:0 2px 0 4px;margin-top:9px;display:flex;align-items:center;justify-content:space-between;gap:6px}
.n span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stk{display:inline-flex;flex-shrink:0}
.stk i{font-style:normal;width:var(--z);height:var(--z);border-radius:50%;margin-left:calc(var(--z)*-0.2);color:#fff;font-size:calc(var(--z)*.38);font-weight:800;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 2px var(--paper);overflow:hidden}
.stk i:first-child{margin-left:0}
.world .stk i{box-shadow:0 0 0 2.5px #fff}
.av{border-radius:50%;color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 2.5px #fff;flex-shrink:0;overflow:hidden}
.av img,.stk i img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.empty-home{text-align:center;color:var(--ink2);padding:40px 0;font-size:15px}

/* a World: the page is its ground */
.world{min-height:100vh;position:relative}
.world .frame{position:fixed}
.sparks{position:absolute;inset:0 0 auto;height:280px;pointer-events:none}
.wtop{display:flex;align-items:center;justify-content:space-between;position:relative;margin-top:4px}
.back{width:44px;height:44px;border-radius:22px;background:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 3px #fff,0 4px 10px var(--edge);flex-shrink:0}
.ppl{display:flex}
.inv{height:40px;padding:0 16px;border-radius:20px;font-size:14px;font-weight:800;box-shadow:0 0 0 3px #fff,0 4px 10px var(--edge);flex-shrink:0;background:#fff;color:var(--ink)}
.lt .inv{background:var(--ink);color:#fff}
.hero{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:6px 4px 10px;position:relative}
.hero-t{display:flex;flex-direction:column;gap:8px;min-width:0}
.hero-sub{font-size:13px;font-weight:800;color:var(--on)}
.motif{border-radius:50%;background:#fff;box-shadow:0 0 0 4px #fff,0 8px 16px var(--edge);transform:rotate(14deg);display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-bottom:18px}

/* paper sticker cards */
.card{position:relative;background:var(--pp,#fff);color:var(--pink,var(--ink));border-radius:22px;padding:14px 16px;box-shadow:0 0 0 4px #fff,0 10px 22px var(--edge,var(--warm));display:flex;flex-direction:column;gap:10px}
.card.tagged{padding-top:26px;margin-top:10px}
.blk{cursor:pointer;transition:box-shadow .2s}
.card.focused{box-shadow:0 0 0 4px #fff,0 0 0 7px var(--ink),0 10px 22px var(--edge)}
.ct{font-size:12.5px;font-weight:800;color:var(--ink2);display:flex;justify-content:space-between;gap:8px}
.ct.on{color:var(--on);padding:0 4px}
.chips-blk{position:relative;display:flex;flex-direction:column;gap:8px}
.chips-blk.tagged,.chips-blk .tag{display:none}
.dchips{display:flex;gap:8px}
.dchip{flex:1;min-width:0;background:var(--pp);border-radius:12px;padding:9px 10px;box-shadow:0 0 0 3px #fff,0 5px 12px var(--edge);display:flex;flex-direction:column;gap:2px}
.dchip b{font-size:12px;color:var(--acc2)}.dchip span{font-size:13px;font-weight:700}.dchip small{font-size:11px;color:var(--ink2)}
.bignum{font-size:34px;line-height:1;font-weight:900}
.row{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:700}
.grow{flex:1;min-width:0}
.muted{color:var(--ink2);font-size:13px;font-weight:600}
.done .grow{color:var(--ink2);text-decoration:line-through}
.bar{height:8px;border-radius:4px;background:rgba(0,0,0,.07);overflow:hidden;flex:1}.bar b{display:block;height:100%;border-radius:4px;background:var(--ink)}
.btns{display:flex;gap:10px}
.btn{flex:1;height:46px;border-radius:23px;background:var(--ink);color:#fff;font-size:15px;font-weight:800;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 3px #fff,0 5px 12px rgba(60,40,20,.2)}
.btn.hl{background:var(--acc2)}
.btn2{flex:1;height:46px;border-radius:23px;background:#fff;color:var(--ink);font-size:15px;font-weight:800;display:flex;align-items:center;justify-content:center;box-shadow:inset 0 0 0 1.5px var(--line)}
.btn.wide,.btn2.wide{width:100%;flex:none}
.btns.wrap{flex-wrap:wrap}.btns.wrap .btn2{flex:1 1 40%}

/* roster */
.roster{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 6px;background:rgba(0,0,0,.035);border-radius:14px;padding:14px 6px}
.cell{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0}.cell small{font-size:11px;color:var(--ink2);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.seat{display:flex}
.seat.mine .av{box-shadow:0 0 0 2.5px #fff,0 0 0 5px var(--acc)}
.seat.open{width:30px;height:30px;border-radius:15px;border:2px dashed #C9C2B6;color:#B5AEA2;font-size:16px;align-items:center;justify-content:center}
button.seat.open{animation:breathe 1.6s ease-in-out infinite}
@keyframes breathe{0%,100%{opacity:.5}50%{opacity:1}}
.courts{display:grid;gap:10px}
.court{height:92px;border-radius:14px;background:#2E7D4F;position:relative;box-shadow:inset 0 0 0 2px rgba(255,255,255,.55)}
.court>i{position:absolute;left:50%;top:8px;bottom:8px;width:2px;background:rgba(255,255,255,.6)}
.pos{position:absolute}.p0{left:14px;top:12px}.p1{left:22px;bottom:12px}.p2{right:16px;top:12px}.p3{right:22px;bottom:12px}
.court .seat.open{border-color:#fff;color:#fff;width:28px;height:28px}

/* poll */
.tiles{display:grid;gap:8px}
.tile{height:68px;border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:#fff;box-shadow:inset 0 0 0 1.5px var(--line)}
.tile .tn{font-size:24px;line-height:1.1}.tile .tl{font-size:12px;font-weight:800}
.tile.on{background:var(--solid);color:var(--solidT);box-shadow:0 0 0 3px #fff,0 6px 14px var(--edge)}
.opt{width:100%;display:flex;align-items:center;gap:10px;padding:4px 0;text-align:left;font-size:14px;font-weight:700}
.opt .ol{width:30%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.opt.on .ol::after{content:' ✓'}
.opt .ov{display:flex;align-items:center;gap:2px}.opt .ov .av{box-shadow:0 0 0 1.5px #fff;margin-left:-4px}.opt .ov em{font-style:normal;font-weight:800;margin-left:6px;min-width:14px;text-align:right}

/* checklist */
.chkrow{min-height:32px}
.chk{width:24px;height:24px;border-radius:7px;border:2px solid #C9C2B6;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:13px}
.chk.on{background:var(--ink);border-color:var(--ink);color:var(--acc)}
.lt .chk.on{color:#fff}
.claim{height:32px;padding:0 12px;border-radius:16px;font-size:12px;font-weight:800;box-shadow:inset 0 0 0 1.5px var(--tomato);color:#E8461F;flex-shrink:0}
.claim.mine{background:var(--ink);color:var(--acc);box-shadow:none}
.lt .claim.mine{color:#fff}

/* money */
.money{display:flex;align-items:center;gap:12px}
.mt{font-size:13px;font-weight:800;display:block;margin-bottom:7px}
.dots{display:flex;gap:4px;flex-wrap:wrap;align-items:center}
.dots i{width:11px;height:11px;border-radius:8px;border:2px dashed #B5AEA2}
.dots i.on{width:15px;height:15px;border:none;background:var(--solid)}
.pay{height:36px;padding:0 14px;border-radius:18px;font-size:13px;font-weight:800;box-shadow:inset 0 0 0 1.5px var(--line);background:#fff;flex-shrink:0}
.pay.on{background:var(--green);color:#fff;box-shadow:none}
.time{width:52px;flex-shrink:0;color:var(--acc2)}
.pl{width:64px;flex-shrink:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pv{width:42px;text-align:right}
.body{font-size:15px;line-height:1.6;white-space:pre-wrap;font-weight:500}

/* 啪! — every change lands as a tilted sticker beside what changed: who did what, and an undo, for about 5 s */
.pa{position:absolute;right:-6px;top:-24px;transform:rotate(7deg);background:var(--pop,#FFE14D);color:var(--ink);border-radius:14px;padding:7px 8px 7px 12px;box-shadow:0 0 0 3px #fff,0 8px 16px rgba(0,0,0,.25);display:flex;align-items:center;gap:8px;z-index:4;max-width:92%;animation:pa 5s cubic-bezier(.34,1.4,.64,1) both}
.pa b{font-family:Fredoka,'Noto Sans SC';font-weight:700;font-size:15px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pa button{height:26px;padding:0 9px;border-radius:13px;background:var(--ink);color:#fff;font-size:11px;font-weight:800;flex-shrink:0}
.hero .pa{top:auto;bottom:70px;right:10px}
@keyframes pa{0%{transform:rotate(-8deg) scale(.2);opacity:0}5%{transform:rotate(10deg) scale(1.12);opacity:1}9%{transform:rotate(7deg) scale(1)}92%{transform:rotate(7deg) scale(1);opacity:1}100%{transform:translateY(40px) rotate(0) scale(.4);opacity:0}}
.card.hl{background:#FFF3B0;transition:background .4s}
.byav{position:absolute;left:-8px;top:-8px}
.card.tagged .pa{top:-50px}
/* empty World */
.sug-h{font-size:12.5px;font-weight:800;color:var(--on);padding:4px 4px 0}
.sugs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.sug{height:96px;border-radius:20px;border:2.5px dashed var(--acc2);background:rgba(255,255,255,.45);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--ink)}
.sug b{font-size:15px}.sug span{font-size:12px;font-weight:700;color:var(--on)}
.bigshare{align-self:center;height:48px;padding:0 22px;border-radius:24px;background:var(--acc2);color:#fff;font-size:15px;font-weight:800;box-shadow:0 0 0 3px #fff,0 6px 14px var(--edge);margin-top:6px}

/* quiet way into the whole chat */
.lastmsg{display:flex;align-items:center;gap:8px;width:100%;text-align:left;font-size:13px;color:var(--on,var(--ink2));padding:2px 4px;font-weight:600}
.lastmsg>span:not(.av){white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;opacity:.85}
.lastmsg em{font-style:normal;font-size:12px;opacity:.7;flex-shrink:0}

/* composer: a white capsule */
.cmp{position:fixed;left:50%;transform:translateX(-50%);bottom:max(18px,env(safe-area-inset-bottom));width:min(452px,calc(100% - 28px));height:56px;border-radius:28px;background:#fff;display:flex;align-items:center;gap:6px;padding:0 6px 0 20px;box-shadow:0 0 0 4px #fff,0 10px 24px var(--edge,rgba(60,40,20,.15));z-index:5}
.cmp input{flex:1;border:none;outline:none;font-size:16px;background:transparent;color:var(--ink);min-width:0}
.send{width:44px;height:44px;border-radius:22px;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.world .send{background:var(--solid);color:var(--solidT)}
.focus{flex-shrink:0;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:var(--ink);color:#fff;font-size:12px;font-weight:800;height:32px;padding:0 10px;border-radius:16px;margin-left:-12px}
.toast{position:fixed;left:50%;bottom:90px;transform:translateX(-50%);background:var(--ink);color:#fff;font-size:13px;font-weight:700;padding:9px 14px;border-radius:999px;z-index:9;box-shadow:0 0 0 3px #fff;animation:pop .3s cubic-bezier(.34,1.4,.64,1)}
@keyframes pop{from{transform:translate(-50%,10px);opacity:0}}

/* sheets */
.sheet{position:fixed;inset:0;background:rgba(26,26,26,.35);z-index:20;display:flex;align-items:flex-end;justify-content:center}
.sheet[hidden]{display:none}
.pane{width:min(480px,100%);background:var(--paper);color:var(--ink);border-radius:28px 28px 0 0;padding:24px 18px max(24px,env(safe-area-inset-bottom));animation:up .25s ease-out}
@keyframes up{from{transform:translateY(40px);opacity:.5}}
.pane h2{margin:0 0 6px;font-size:22px;font-weight:900}
.pane p{margin:0 0 16px;color:var(--ink2);font-size:14px}
.field{width:100%;height:52px;border-radius:16px;border:none;background:#fff;box-shadow:0 0 0 1.5px var(--line);padding:0 16px;font-size:16px;outline:none;margin-bottom:12px}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.chip{background:#fff;border-radius:999px;padding:8px 12px;font-size:13px;font-weight:700;box-shadow:0 0 0 1.5px var(--line)}
.welcome{text-align:center;margin-bottom:20px}.welcome h2{font-family:Fredoka;font-size:32px;margin:0 0 6px}.welcome p{margin:0;color:var(--ink2);font-size:15px}
.gbtn{display:flex;align-items:center;justify-content:center;gap:10px;height:52px;border-radius:26px;background:#fff;box-shadow:0 0 0 1.5px var(--line),0 4px 10px rgba(60,40,20,.08);font-size:16px;font-weight:800;margin-bottom:14px}
.or{text-align:center;color:var(--ink2);font-size:13px;margin:4px 0 12px}
.row.acct{gap:12px;margin-bottom:16px}
.who-row{display:flex;gap:12px;overflow-x:auto;padding:4px 2px 14px}.who-row span{display:flex;flex-direction:column;align-items:center;gap:4px}.who-row small{font-size:11px;color:var(--ink2);white-space:nowrap}
.fulllog{max-height:56vh;overflow:auto;display:flex;flex-direction:column;gap:12px;padding-right:4px}
.lrow{display:flex;gap:10px;font-size:14px;line-height:1.5}.lmeta{font-size:12px;color:var(--ink2)}.lmeta b{color:var(--ink)}.lfocus{background:#fff;padding:1px 6px;border-radius:6px}
@media (min-width:700px){#app{max-width:520px}}

/* chat, mode 围坐: a soft paper band fades up from the World's ground; the others sit in a row; words pop from heads */
.world{--kb:0px}
.world .page{padding-bottom:230px}
.sit{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(var(--kb) + 84px);width:min(480px,100%);z-index:5;padding:0 10px;pointer-events:none}
.sit>*{pointer-events:auto}
.sitfade{position:absolute;left:-40px;right:-40px;bottom:-84px;height:200px;background:linear-gradient(to top,color-mix(in srgb,var(--pp,#FFFBF2) 96%,transparent) 62%,transparent);pointer-events:none!important;z-index:-1}
.heads{display:flex;gap:12px;align-items:flex-end;padding-left:4px;touch-action:none}
.hd{width:44px;display:flex;flex-direction:column;align-items:center;gap:3px}
.hd small{font-size:11px;font-weight:800;color:var(--ink2);max-width:56px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hd.off{opacity:.45}
.hav{position:relative;display:flex}
.hav .av{box-shadow:0 0 0 3px #fff,0 6px 12px rgba(60,40,20,.2)}
.hav .dots{position:absolute;left:50%;top:-14px;transform:translateX(-50%);background:#fff;border-radius:10px;padding:0 7px;font-size:13px;font-weight:900;font-style:normal;letter-spacing:1px;box-shadow:0 2px 6px rgba(0,0,0,.15);animation:breathe 1s infinite}
.ghost{width:44px;height:44px;border-radius:22px;border:2px dashed #D59A7C;color:#B06A48;font-size:20px;display:flex;align-items:center;justify-content:center}.ghost.g2{border-color:#E5BBA4}.ghost.g3{border-color:#EECDBB}
.hint{display:block;margin:8px auto 0;width:60px;height:12px}.hint i{display:block;width:36px;height:5px;border-radius:3px;background:#C9BFAE;margin:0 auto}
.says{position:absolute;left:10px;right:10px;bottom:72px;display:flex;flex-direction:column;align-items:flex-start;gap:6px;pointer-events:none}
.say{display:flex;flex-direction:column;align-items:flex-start;max-width:230px;pointer-events:auto;cursor:pointer;animation:popup .35s cubic-bezier(.34,1.4,.64,1) both;transform-origin:bottom left}
.say.old{opacity:calc(1 - var(--age) * .35);transform:scale(calc(1 - var(--age) * .04));transition:opacity .4s,transform .4s}
.sb{background:#fff;color:var(--ink);border-radius:18px 18px 18px 4px;padding:8px 12px;font-size:14px;font-weight:600;line-height:1.4;box-shadow:0 0 0 3px #fff,0 6px 14px rgba(60,40,20,.18);word-break:break-word}
.say.me{align-self:flex-end;align-items:flex-end;transform-origin:bottom right}
.say.me .sb{background:var(--ink);color:#fff;border-radius:18px 18px 4px 18px}
@keyframes popup{from{transform:translateY(24px) scale(.5);opacity:0}}
.chg{align-self:flex-start;font-size:11px;font-weight:800;background:#FFF3B0;border-radius:999px;padding:2px 8px;margin-top:4px;box-shadow:0 0 0 2px #fff;color:var(--ink)}
.say.me .chg,.m.mine .chg{align-self:flex-end}
.cmp2{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(var(--kb) + max(22px,env(safe-area-inset-bottom)));width:min(452px,calc(100% - 28px));height:48px;border-radius:24px;background:#fff;box-shadow:0 0 0 1.5px #E6DCC8,0 6px 16px rgba(60,40,20,.12);display:flex;align-items:center;padding:0 5px 0 18px;gap:8px;z-index:8}
.cmp2 input{flex:1;border:none;outline:none;background:transparent;font-size:16px;color:var(--ink);min-width:0}
.cmp2 .send,.world .cmp2 .send{width:38px;height:38px;border-radius:19px;background:var(--ink);color:#fff}
/* chat, mode 展开: an ordinary group chat over the app */
.dim{position:fixed;inset:0;background:rgba(60,40,20,.15);opacity:0;pointer-events:none;transition:opacity .25s;z-index:6}.dim.on{opacity:1;pointer-events:auto}
.chat{position:fixed;left:50%;bottom:0;width:min(480px,100%);top:96px;background:#fff;border-radius:28px 28px 0 0;box-shadow:0 -10px 30px rgba(60,40,20,.22);z-index:7;display:flex;flex-direction:column;color:var(--ink);transform:translate(-50%,105%);transition:transform .3s cubic-bezier(.3,.9,.3,1)}
.world.open .chat{transform:translate(-50%,0)}
.world.open .sit{opacity:0;pointer-events:none}.world.open .sit>*{pointer-events:none}
.chead{display:flex;flex-direction:column;align-items:center;gap:8px;padding:8px 16px 10px;border-bottom:1px solid #F0EBE3;touch-action:none}
.grab2{width:36px;height:5px;border-radius:3px;background:#D9D2C6}
.chrow{width:100%;display:flex;align-items:center;justify-content:space-between}
.cx{width:32px;height:32px;border-radius:16px;background:var(--paper);font-size:15px;font-weight:800}
.ctt{display:flex;flex-direction:column;align-items:center}.ctt b{font-size:16px}.ctt span{font-size:12px;font-weight:600;color:#8E8A82}
.chead .stk i{box-shadow:0 0 0 2.5px #fff}
.msgs{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:6px;padding:12px 14px calc(var(--kb) + 90px)}
.tline{text-align:center;font-size:12px;font-weight:600;color:#8E8A82;margin:8px 0 2px}
.ailine{align-self:center;display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:#8E8A82;margin:4px 0;text-align:center}
.ymark.xs{width:16px;height:16px}
.m{display:flex;align-items:flex-end;gap:8px;padding-right:60px}
.m.last{margin-bottom:6px}
.mav{width:30px;flex-shrink:0;display:flex}
.mcol{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.mn{font-size:12px;font-weight:700;color:#8E8A82;margin:0 0 3px 12px}
.mb{background:#F1EDE6;border-radius:18px;padding:8px 12px;font-size:15px;font-weight:500;line-height:1.4;word-break:break-word}
.m.last .mb{border-radius:18px 18px 18px 4px}
.m.mine{flex-direction:column;align-items:flex-end;padding:0 0 0 70px;gap:0}
.m.mine .mb{background:var(--tomato);color:#fff}
.m.mine.last .mb{border-radius:18px 18px 4px 18px}
.card.hl{background:#FFF3B0!important}
/* demo */
.demo-chip{font-size:12px;font-weight:800;background:var(--ink);color:#fff;border-radius:999px;padding:3px 9px;margin-left:2px}
/* stage blocks: a whole scene inside a paper sticker */
.card.stage{padding:12px}
.card.bare{background:transparent;box-shadow:none;padding:6px 0}
.mapv{position:relative;height:330px;border-radius:16px;overflow:hidden}
.mapv svg{position:absolute;inset:0;width:100%;height:100%}
.pin{position:absolute;transform:translate(-50%,-100%);display:flex;flex-direction:column;align-items:center}
.pin b{background:#fff;color:var(--ink);border-radius:10px;padding:3px 8px;font-size:11px;font-weight:800;box-shadow:0 0 0 2.5px #fff,0 3px 8px rgba(0,0,0,.18);white-space:nowrap}
.pin.goal b{background:var(--ink);color:#fff}
.pin.goal i{width:3px;height:20px;background:var(--ink)}
.who{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:3px;transition:left .8s,top .8s}
.who.me .av{box-shadow:0 0 0 3px #fff,0 0 0 7px rgba(255,90,54,.35)}
.who em{font-style:normal;background:#fff;border-radius:999px;padding:2px 8px;font-size:10.5px;font-weight:800;white-space:nowrap;box-shadow:0 2px 6px rgba(0,0,0,.15)}
.night{background:radial-gradient(circle,#3A2A5C,#241A3D)!important;color:#fff}
.night .muted{color:rgba(255,255,255,.7)}
.ring{position:relative;height:300px}
.rcore{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:150px;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center}
.rcore .rk{font-size:12px;font-weight:800;color:var(--acc)}.rcore b{font-size:22px;line-height:1.15}.rcore .rs{font-size:12px;font-weight:700;opacity:.8}
.pl{position:absolute;transform:translate(-50%,-50%);display:flex}
.pl.out .av{filter:grayscale(1);opacity:.5}.pl i{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-style:normal;font-size:22px;color:#fff}
.pl.pick .av{box-shadow:0 0 0 3px #fff,0 0 0 6px #FF5A36}
.pl em{position:absolute;right:-6px;top:-6px;background:#FF5A36;color:#fff;font-style:normal;font-size:11px;font-weight:900;border-radius:9px;min-width:18px;height:18px;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 2px #fff}
.scoreb{position:relative;margin:4px 12px 12px;background:#111;color:#fff;border-radius:22px;padding:14px 18px;box-shadow:0 0 0 4px #fff,0 10px 20px rgba(0,0,0,.3);display:flex;align-items:center;justify-content:space-between}
.scoreb b{font-size:15px}.scoreb .sc{display:flex;flex-direction:column;align-items:center}.scoreb .sc span{font-size:44px;line-height:1}.scoreb .sc em{font-style:normal;font-size:12px;font-weight:800;color:var(--acc)}
.scoreb .tag{top:-15px}
.guess{display:flex;gap:8px;flex-wrap:wrap}
.gchip{display:flex;align-items:center;gap:5px;background:#F1EDE6;border-radius:999px;padding:3px 10px 3px 3px;font-size:13px;font-weight:800}
.gchip.hit{background:#FFF3B0}
.picks{display:flex;gap:6px;flex-wrap:wrap}.picks button{height:32px;padding:0 12px;border-radius:16px;background:#fff;box-shadow:inset 0 0 0 1.5px var(--line);font-size:13px;font-weight:800}.picks button.on{background:var(--ink);color:#fff;box-shadow:none}
.tbls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 14px;padding:14px 10px}
.tbl{position:relative;aspect-ratio:1;border-radius:50%;background:#fff;box-shadow:0 0 0 4px #fff,0 8px 18px var(--edge);margin:14px}
.tbl.mine{box-shadow:0 0 0 4px #fff,0 0 0 7px var(--acc2),0 8px 18px var(--edge)}
.tbl .top{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:18px;color:var(--acc2);white-space:nowrap}
.seat2{position:absolute;transform:translate(-50%,-50%);display:flex}.seat2 i{width:22px;height:22px;border-radius:50%;border:2px dashed var(--acc2);opacity:.6;background:rgba(255,255,255,.7)}
.wait{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.wait span{font-size:12px;font-weight:800;color:var(--ink2)}.wait em{font-style:normal;background:#fff;border-radius:999px;padding:4px 9px;font-size:11px;font-weight:800;box-shadow:0 0 0 2px var(--line)}
.plan{position:relative;aspect-ratio:1.07;border:5px solid var(--acc2);border-radius:10px;background:var(--pp)}
.room{position:absolute;border:2px solid var(--acc2);box-sizing:border-box}.room b{position:absolute;left:6px;top:4px;font-size:11px;font-weight:900;color:var(--acc2);letter-spacing:.1em}
.furn{position:absolute;border-radius:8px;border:2px dashed #B5AEA2;background:#F1EDE6;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:2px;overflow:hidden}
.furn.done{border:2.5px solid #2F7A4F;background:#C9E4D3}
.furn b{font-size:12px;font-weight:800}.furn small{font-size:10px;font-weight:700;color:var(--ink2);white-space:nowrap}
.nowp{position:relative;display:flex;align-items:center;gap:16px;padding:6px 4px 12px;color:var(--on)}
.disc{width:120px;height:120px;border-radius:50%;flex-shrink:0;background:repeating-radial-gradient(circle,#111 0 3px,#1E1E1E 3px 6px);box-shadow:0 0 0 4px #fff,0 10px 24px rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;animation:spin 6s linear infinite}
.disc i{width:40px;height:40px;border-radius:50%;background:var(--acc);box-shadow:0 0 0 3px #fff}
@keyframes spin{to{transform:rotate(360deg)}}
.nowp div{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}.nowp small{font-size:11px;font-weight:800;letter-spacing:.1em;opacity:.75}.nowp b{font-size:20px}.nowp span{font-size:13px;opacity:.8}
.pbar{display:block;height:4px;border-radius:2px;background:rgba(255,255,255,.25);margin-top:6px}.pbar i{display:block;width:60%;height:4px;border-radius:2px;background:var(--acc)}
.qrow{gap:10px}.qn{width:18px;color:var(--acc2)}
.up{display:flex;align-items:center;gap:3px;background:#FFE4EF;border-radius:999px;padding:3px 9px;font-size:12px;font-weight:800;color:#C2185B}.up.on{background:#C2185B;color:#fff}
.polas{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 18px;padding:8px 6px}
.pola{position:relative;background:#fff;padding:8px 8px 34px;box-shadow:0 8px 18px rgba(0,0,0,.18);transform:rotate(var(--r));text-align:left}
.pola .ph{display:block;height:110px;position:relative}.pola .ph em{position:absolute;right:6px;bottom:6px;font-style:normal;font-size:10px;font-weight:800;background:rgba(255,255,255,.85);border-radius:999px;padding:1px 7px}
.pola b{position:absolute;left:10px;bottom:6px;font-size:18px;color:#333}
.pola>i{position:absolute;right:8px;bottom:8px;font-style:normal;font-size:11px;font-weight:800;color:#C2185B}.pola>i.on{color:#fff;background:#C2185B;border-radius:999px;padding:0 6px}
.pillchip{display:inline-block;background:#fff;border-radius:999px;padding:6px 12px;font-size:13px;font-weight:800;box-shadow:0 0 0 3px #fff,0 4px 10px rgba(0,0,0,.18)}
.dishes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.dish{background:var(--pp);border-radius:16px;padding:10px;box-shadow:0 0 0 3px var(--acc),0 6px 14px rgba(0,0,0,.18);display:flex;flex-direction:column;gap:6px;align-items:flex-start;text-align:left}
.dish b{font-size:15px;color:#8A0F17}.dish span{display:flex;align-items:center;gap:5px;font-size:12px;font-weight:700}
.dish .nobody{color:#B3121D;font-weight:800}.dish.free{box-shadow:0 0 0 3px #FF5A36,0 6px 14px rgba(0,0,0,.18)}.dish.mine{box-shadow:0 0 0 3px var(--ink),0 6px 14px rgba(0,0,0,.18)}

/* AI at work: the block it is probably changing glows with a sweep */
.card.working{box-shadow:0 0 0 4px #FFE14D,0 10px 22px var(--edge);overflow:hidden}
.card.working::after{content:'';position:absolute;inset:0;background:linear-gradient(100deg,transparent 30%,rgba(255,225,77,.45) 50%,transparent 70%);transform:translateX(-100%);animation:sweep 1.4s ease-in-out infinite;pointer-events:none}
@keyframes sweep{to{transform:translateX(100%)}}
.working-tag{position:absolute;right:10px;top:-14px;background:#FFE14D;color:var(--ink);border-radius:999px;padding:4px 10px;font-size:12px;font-weight:800;box-shadow:0 0 0 3px #fff;z-index:3;animation:breathe 1.2s ease-in-out infinite}
.hero .working-tag{top:auto;bottom:6px;right:auto;left:4px}
/* coming in: the cover grows into the page; cards stick on one by one */
.enter{animation:grow .45s cubic-bezier(.2,.9,.3,1) both}
@keyframes grow{from{transform:scale(.9);opacity:0;border-radius:40px}}
.enter .card,.enter .chips-blk,.enter .scoreb,.enter .nowp{animation:stick .45s cubic-bezier(.34,1.5,.64,1) both;animation-delay:calc(.12s + var(--i,0) * .07s)}
@keyframes stick{from{transform:translateY(24px) rotate(-2deg) scale(.94);opacity:0}}
/* people sheet */
.plist{display:flex;flex-direction:column;gap:10px;max-height:48vh;overflow:auto;margin-bottom:14px}
.prow{display:flex;align-items:center;gap:12px}.prow b{display:block;font-size:15px}.prow small{font-size:12px;color:var(--ink2)}
.btn2.sm{flex:none;height:34px;padding:0 14px;font-size:13px}.btn2.danger{background:var(--tomato);color:#fff;box-shadow:none}
.chrow [data-people]{display:flex}

/* the new-World tile: first in the grid, the size of a World, dashed; full width when there are no Worlds yet */
.newtile{width:100%;aspect-ratio:1;border:2.5px dashed #C9BFAE;border-radius:22px;background:rgba(246,243,238,.6);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}
.newtile i{width:56px;height:56px;border-radius:50%;background:var(--tomato);color:#fff;font-style:normal;font-size:32px;font-weight:700;line-height:1;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 3px #fff,0 6px 14px rgba(255,90,54,.3)}
.newtile b{font-size:14px;font-weight:800}
.newtile.first{aspect-ratio:auto;height:300px;margin-top:10px}.newtile.first i{width:72px;height:72px;font-size:42px}.newtile.first b{font-size:17px}.newtile.first small{font-size:13px;color:var(--ink2)}

/* a new World building itself */
.building-t{font-family:Fredoka;font-size:34px;line-height:1.1;margin:8px 4px 4px;color:var(--ink)}
.ghost-card{border-radius:22px;background:rgba(255,255,255,.7);box-shadow:0 0 0 4px #fff;position:relative;overflow:hidden}
.ghost-card::after{content:'';position:absolute;inset:0;background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.9) 50%,transparent 70%);transform:translateX(-100%);animation:sweep 1.3s linear infinite}

/* ---------- the glass dock: one floating pane of glass holding the others' heads and the input (every room) ---------- */
.sitfade{display:none}
.dockglass{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(var(--kb) + max(14px,env(safe-area-inset-bottom)));width:min(460px,calc(100% - 20px));height:136px;border-radius:32px;z-index:4;
  background:rgba(255,255,255,.42);backdrop-filter:blur(22px) saturate(180%);-webkit-backdrop-filter:blur(22px) saturate(180%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.65),inset 0 1px 0 rgba(255,255,255,.9),0 12px 32px rgba(0,0,0,.14);transition:opacity .25s}
.dockglass i{display:block;width:36px;height:5px;border-radius:3px;background:rgba(0,0,0,.18);margin:8px auto 0}
.sit{bottom:calc(var(--kb) + max(14px,env(safe-area-inset-bottom)) + 64px);width:min(460px,calc(100% - 20px));padding:0 14px}
.heads{gap:10px}
.hd{width:46px}.hd small{color:#3A3631}
.hav .av{box-shadow:0 0 0 2.5px #fff,0 4px 10px rgba(0,0,0,.16)}
.hint{display:none}
.says{bottom:82px}
.cmp2{bottom:calc(var(--kb) + max(14px,env(safe-area-inset-bottom)) + 10px);width:min(440px,calc(100% - 40px));height:46px;border-radius:23px;background:rgba(255,255,255,.62);box-shadow:inset 0 0 0 1px rgba(255,255,255,.8),0 2px 8px rgba(0,0,0,.06)}
.world .page{padding-bottom:190px}
.world.open .dockglass{opacity:0}
/* 展开: the same glass grows into a tall panel; the app stays visible, blurred, behind it */
.dim{background:rgba(0,0,0,.06)}
.chat{left:50%;width:min(460px,calc(100% - 20px));top:150px;bottom:calc(var(--kb) + max(14px,env(safe-area-inset-bottom)));border-radius:32px;
  background:rgba(255,255,255,.66);backdrop-filter:blur(26px) saturate(180%);-webkit-backdrop-filter:blur(26px) saturate(180%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.7),0 16px 40px rgba(0,0,0,.18);transform:translate(-50%,calc(100% + 40px))}
.chead{border-bottom:none}
.msgs{padding-bottom:70px}
.m .sb,.chat .bub{box-shadow:0 2px 8px rgba(0,0,0,.06)}

/* ---------- a room whose app is HTML: full-bleed frame, glass top bar ---------- */
.world.html{min-height:100vh}
.roomhost{position:fixed;top:0;bottom:0;left:50%;transform:translateX(-50%);width:min(480px,100%);z-index:1}
.roomframe{display:block;width:100%;height:100%;border:0;background:transparent}
.roomhost .building{padding:0 18px;display:flex;flex-direction:column;gap:14px}
.gtop{position:fixed;left:50%;transform:translateX(-50%);top:max(10px,env(safe-area-inset-top));width:min(480px,100%);padding:0 12px;z-index:5;display:flex;align-items:center;gap:8px}
.glb,.glp{background:rgba(255,255,255,.55);backdrop-filter:blur(22px) saturate(180%);-webkit-backdrop-filter:blur(22px) saturate(180%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.7),0 6px 18px rgba(0,0,0,.12);color:#1A1A1A}
.glb{height:44px;min-width:44px;border-radius:22px;display:inline-flex;align-items:center;justify-content:center;font-size:14px;font-weight:800;flex-shrink:0}
.glb.inv2{padding:0 14px}
.glp{flex:1;min-width:0;height:44px;border-radius:22px;padding:0 16px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;text-align:left}
.glp b{font-size:15px;font-weight:900;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.glp span{font-size:11.5px;font-weight:700;color:#5C574F;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gwork{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(var(--kb) + max(14px,env(safe-area-inset-bottom)) + 146px);z-index:5;padding:6px 14px;border-radius:999px;font-size:12.5px;font-weight:800;color:#1A1A1A;
  background:linear-gradient(90deg,rgba(255,255,255,.6),rgba(255,236,150,.9),rgba(255,255,255,.6));background-size:200% 100%;animation:shine 1.4s linear infinite;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:0 4px 12px rgba(0,0,0,.12)}
@keyframes shine{to{background-position:-200% 0}}
.gpa{position:fixed;right:max(14px,calc(50% - 226px));left:auto;top:calc(max(10px,env(safe-area-inset-top)) + 112px);z-index:6}
.world.html #wapp,.world.html #wdeco{display:none}
/* an invite link before signing in: the room's cover, who invited, then Google */
.welcome.invite h2{font-size:24px;margin:14px 0 2px}
.st.sq{aspect-ratio:1}.st.sq .art{height:100%}
.inv-cover{width:min(240px,64vw);margin:0 auto;display:block;transform:rotate(-2deg)}
.inv-title{font-size:18px!important;font-weight:900;color:var(--ink)!important}
.inv-people{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:10px;font-size:13px;font-weight:700;color:var(--ink2)}
.inv-note{margin-top:12px!important;font-size:13px!important}
.guest{display:flex;gap:8px;margin-top:14px}.guest input{flex:1;min-width:0;height:46px;border-radius:23px;border:0;padding:0 16px;font:700 16px Inter,"Noto Sans SC",sans-serif;background:#fff;box-shadow:inset 0 0 0 1.5px var(--line,#E6DED0);outline:none}.guest .btn{flex:none;padding:0 20px;background:var(--tomato,#FF5A36)}

/* ---------- room frame: back · status capsule · ⋯ (all glass) ---------- */
.gtop{justify-content:space-between}
.glb.more{width:44px;font-size:12px;letter-spacing:1px}
.cap{flex:0 1 auto;max-width:calc(100% - 120px);min-width:150px;margin:0 auto;display:flex;flex-direction:column;align-items:center;gap:1px;padding:6px 18px 7px;border-radius:24px;color:#1A1A1A;
  background:rgba(255,255,255,.58);backdrop-filter:blur(22px) saturate(180%);-webkit-backdrop-filter:blur(22px) saturate(180%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.7),0 6px 18px rgba(0,0,0,.12);
  animation:capin .5s cubic-bezier(.34,1.4,.64,1) both}
@keyframes capin{from{transform:translateY(40px) scale(.8);opacity:0}}
.cap small{font-size:11px;font-weight:800;color:#5C574F;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cap b{display:flex;align-items:center;gap:6px;font-size:14.5px;font-weight:900;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cap b i{width:8px;height:8px;border-radius:4px;background:#9A948A;flex-shrink:0}.cap b i.k-act{background:#FF5A36}.cap b i.k-time{background:#3D63F5}.cap b i.k-done{background:#1FB36B}
.cap b em{font-style:normal;font-size:10px;color:#8C877E}
.pdots{display:flex;gap:4px;margin-top:3px}.pdots i{width:5px;height:5px;border-radius:3px;background:rgba(0,0,0,.2);transition:width .25s}.pdots i.on{width:16px;background:var(--acc,#1A1A1A)}
.gmenu{position:fixed;top:calc(max(10px,env(safe-area-inset-top)) + 64px);left:50%;transform:translateX(-50%);width:min(300px,calc(100% - 40px));z-index:9;border-radius:22px;padding:8px 6px;
  background:rgba(255,255,255,.72);backdrop-filter:blur(26px) saturate(180%);-webkit-backdrop-filter:blur(26px) saturate(180%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.7),0 16px 40px rgba(0,0,0,.18);animation:gm .22s ease-out both}
@keyframes gm{from{opacity:0;transform:translate(-50%,-8px) scale(.97)}}
.gmenu.right{left:auto;right:max(12px,calc(50% - 228px));transform:none;width:200px;animation:gm2 .2s ease-out both}@keyframes gm2{from{opacity:0;transform:translateY(-8px)}}
.gmenu button{width:100%;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 12px;border-radius:14px;font-size:15px;text-align:left;color:#1A1A1A}
.gmenu button+button{box-shadow:0 -1px 0 rgba(0,0,0,.06)}
.gmenu button span{font-size:12.5px;font-weight:700;color:#6B665C;white-space:nowrap}
.gmenu button.on b{color:var(--acc,#1A1A1A)}.gmenu button.danger b{color:#D93B2B}
.gmh{font-size:12px;font-weight:800;color:#6B665C;padding:2px 12px 4px}.gmf{font-size:12px;font-weight:700;color:#6B665C;padding:8px 12px 2px;border-top:1px solid rgba(0,0,0,.06);margin-top:4px}
.heads .hd.invh small{color:#8C877E}
/* status kinds: wait (someone must act) · time · prog · done; none shows nothing */
.k-wait{background:var(--tomato,#FF5A36)}.k-prog{background:#9A948A}
.cap b i.k-wait{background:#FF5A36}.cap b i.k-prog{background:#9A948A}
.cap b.plain{font-size:15px}
.grid.g3{grid-template-columns:repeat(3,minmax(0,1fr));gap:26px 12px}
.grid.g3 .n{font-size:13.5px;margin-top:7px}
.unread{font-style:normal;flex-shrink:0;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--tomato,#FF5A36);color:#fff;font-size:11px;font-weight:900;display:inline-flex;align-items:center;justify-content:center}
.lastline{font-size:11.5px;font-weight:600;color:var(--ink2);padding:2px 4px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* HTML rooms: the app on top, the chat below (not over it); the chat's height follows the finger */
.world.html .roomhost{bottom:var(--chat-h,160px)}
.world.html .chat{top:auto;height:calc(var(--chat-h,50vh) - 8px);bottom:calc(var(--kb) + 8px);transform:translate(-50%,0);opacity:0;pointer-events:none;transition:opacity .18s}
.world.html.open .chat{opacity:1;pointer-events:auto}
.world.html .dim{display:none}
.world.html.settling .roomhost,.world.html.settling .chat{transition:bottom .3s cubic-bezier(.3,.9,.3,1),height .3s cubic-bezier(.3,.9,.3,1),opacity .18s}
.world.html .gpa{top:calc(max(10px,env(safe-area-inset-top)) + 64px)}
.world.html .dockglass,.world.html .sit,.world.html .chead{user-select:none;-webkit-user-select:none;touch-action:none}
/* the chat is a solid white sheet across the bottom (top corners 28); its top edge is the divider you drag */
.world.html .dockglass{left:0;right:0;width:100%;transform:none;bottom:0;height:calc(150px + max(0px,env(safe-area-inset-bottom)));border-radius:28px 28px 0 0;background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:0 -6px 20px rgba(0,0,0,.08)}
.world.html .chat{left:0;width:100%;transform:none;bottom:0;height:var(--chat-h,50vh);border-radius:28px 28px 0 0;background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:0 -6px 20px rgba(0,0,0,.08)}
.world.html .cmp2{background:#F4F1EC;box-shadow:none}
.world.html .sit{bottom:calc(var(--kb) + max(14px,env(safe-area-inset-bottom)) + 66px)}
@media (min-width:500px){.world.html .dockglass,.world.html .chat{left:50%;width:480px;transform:translateX(-50%)}}
/* signed out: rooms to try, then sign in */
.page.try{padding-bottom:120px}
.try-h{font-family:Fredoka,'Noto Sans SC';font-size:30px;margin:6px 4px 4px}
.try-p{margin:0 4px 6px;color:var(--ink2);font-size:14.5px;line-height:1.5}
.try-bar{position:fixed;left:50%;transform:translateX(-50%);bottom:0;width:min(480px,100%);padding:14px 18px max(18px,env(safe-area-inset-bottom));background:linear-gradient(to top,var(--paper,#F6F3EE) 70%,transparent);z-index:5}
.try-bar .gbtn{margin:0}
/* new-room sheet: templates to start from */
.tpl-h{font-size:13px;font-weight:900;color:var(--ink2);margin:18px 2px 8px}
.tpl-row{display:flex;gap:12px;overflow-x:auto;padding:4px 2px 8px;scrollbar-width:none}.tpl-row::-webkit-scrollbar{display:none}
.tpl{flex:none;width:104px;display:flex;flex-direction:column;gap:6px;text-align:left;font-size:12.5px}
.tpl .st{display:block;aspect-ratio:1;border-radius:18px;padding:4px;position:relative}.tpl .art{border-radius:14px}
.tpl b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* signed out: swipe through room cards like invitations, each with its live app; sign in at the bottom */
.invite-try{position:relative;min-height:100vh;display:flex;flex-direction:column;overflow:hidden}
.it-bg{position:fixed;inset:0;z-index:-1;transition:background .5s ease}
.it-top{display:flex;align-items:center;justify-content:space-between;padding:max(14px,env(safe-area-inset-top)) 20px 0}
.it-top .wordmark{color:#1A1A1A}
.it-h{font-family:Fredoka,'Noto Sans SC';font-size:30px;margin:10px 20px 2px;color:#1A1A1A}
.it-p{margin:0 20px 6px;color:rgba(26,26,26,.7);font-size:14px;line-height:1.5}
.it-rail{display:flex;gap:4px;overflow-x:auto;scroll-snap-type:x mandatory;padding:18px calc(50% - min(39vw,170px)) 10px;scrollbar-width:none}
.it-rail::-webkit-scrollbar{display:none}
.it-card{flex:none;width:min(78vw,340px);height:min(62vh,540px);scroll-snap-align:center;background:#fff;border-radius:30px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 0 0 5px #fff,0 24px 50px rgba(0,0,0,.25);transition:transform .15s ease-out,opacity .15s;will-change:transform}
.it-head{position:relative;height:96px;flex:none;display:flex;align-items:center;justify-content:center;padding:0 14px}
.it-tag{position:absolute;left:50%;bottom:-13px;top:auto;transform:translateX(-50%);z-index:3}
.it-app{position:relative;flex:1;min-height:0;margin-top:2px}
.it-app .roomframe{width:100%;height:100%;border:0}
.it-foot{flex:none;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px 12px;border-top:1px solid #F0EBE3}
.it-foot>span{display:flex;align-items:center;gap:8px;min-width:0}.it-foot b{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.it-foot .go{flex:none}
.it-dots{display:flex;justify-content:center;gap:6px;margin:6px 0 0}.it-dots i{width:6px;height:6px;border-radius:3px;background:rgba(0,0,0,.25);transition:width .25s}.it-dots i.on{width:18px;background:#1A1A1A}
.it-bar{margin-top:auto;padding:16px 20px max(20px,env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:center;gap:8px}
.it-bar .gbtn{margin:0;width:100%}.it-bar small{font-size:12px;color:rgba(26,26,26,.6)}
.invite-try{isolation:isolate}.invite-try>*{position:relative;z-index:1}.invite-try>.it-bg{position:fixed;z-index:0}
.it-head .it-tag{top:auto;bottom:-13px;height:auto}
/* split screen details: the divider is its own bar between the app and the chat; the dock shows the latest line;
   invite and expand sit to the right of the input */
.divider,.latest,.dockbtns{display:none}
.world.html{--sb:max(12px,env(safe-area-inset-bottom));--side:max(0px,calc((100vw - 480px) / 2))}
.world.html .roomhost{bottom:calc(var(--app-b,var(--chat-h,160px)) + 22px)}
.world.html .divider{display:flex;position:fixed;left:var(--side);right:var(--side);bottom:var(--chat-h,160px);height:22px;z-index:7;align-items:center;justify-content:center;cursor:ns-resize;touch-action:none;user-select:none;-webkit-user-select:none}
.world.html .divider i{width:44px;height:5px;border-radius:3px;background:rgba(0,0,0,.28)}
.world.html .dockglass{height:calc(152px + var(--sb) - 12px);border-radius:22px 22px 0 0;left:var(--side);right:var(--side);width:auto}
.world.html .dockglass i,.world.html .chead .grab2{display:none}
.world.html .chat{border-radius:22px 22px 0 0;left:var(--side);right:var(--side);width:auto}
.world.html .sit{left:var(--side);transform:none;width:calc(100vw - 2 * var(--side));bottom:calc(var(--kb) + var(--sb) + 84px);padding:0 16px}
.world.html .latest{display:flex;align-items:center;gap:6px;position:fixed;left:calc(var(--side) + 18px);right:calc(var(--side) + 18px);bottom:calc(var(--kb) + var(--sb) + 62px);z-index:6;font-size:13px;font-weight:600;color:#3A3631;white-space:nowrap;overflow:hidden}
.world.html .latest b{font-weight:900;color:#1A1A1A;flex:none}
.world.html .latest .chg{margin:0}
.world.html.open .latest,.world.html.open .sit{opacity:0;pointer-events:none}
.world.html .cmp2{left:calc(var(--side) + 14px);transform:none;width:calc(100vw - 2 * var(--side) - 28px - 100px);bottom:calc(var(--kb) + var(--sb))}
.world.html .dockbtns{display:flex;gap:8px;position:fixed;right:calc(var(--side) + 14px);bottom:calc(var(--kb) + var(--sb) + 3px);z-index:9}
.world.html .db{width:42px;height:42px;border-radius:21px;background:#F4F1EC;color:#1A1A1A;display:inline-flex;align-items:center;justify-content:center}
.world.html .db#expand svg{transition:transform .25s}.world.html .db#expand.up svg{transform:rotate(180deg)}
.world.html .msgs{padding-bottom:calc(var(--sb) + 64px)}
/* new room page */
.newpage .np-h{font-size:30px;font-weight:900;margin:8px 4px 10px}
.np-say{display:flex;gap:8px;align-items:center}.np-say .field{flex:1;margin:0}.np-say .btn{flex:none;width:64px;height:52px;border-radius:16px}
.tplbig{display:block;width:100%;border:none;padding:6px;background:#fff;cursor:pointer}.tplbig.busy{opacity:.5}
.grid.g2 .lastline{margin-top:2px}
/* the tab bar at the bottom: rooms, +, me (glass) */
.tabwrap{position:fixed;left:50%;transform:translateX(-50%);bottom:max(12px,env(safe-area-inset-bottom));width:min(420px,calc(100% - 32px));display:flex;align-items:center;gap:12px;z-index:20}
.plusbtn{width:62px;height:62px;flex-shrink:0;border-radius:50%;background:var(--tomato);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 20px rgba(255,90,54,.35)}
.plusbtn:active{transform:scale(.92)}
.ltitle{font-size:34px;font-weight:800;margin:4px 0 14px;letter-spacing:-.01em}
.seg{display:flex;gap:4px;padding:4px;border-radius:999px;background:rgba(26,26,26,.06);width:100%}.seg button{flex:1;height:36px;border-radius:999px;font-weight:800;font-size:14px;color:var(--ink2)}.seg button.on{background:#fff;color:var(--ink);box-shadow:0 1px 4px rgba(0,0,0,.1)}
.tabbar{position:relative;flex:1;height:62px;border-radius:31px;display:flex;align-items:center;justify-content:space-around;
  background:rgba(255,255,255,.62);backdrop-filter:blur(22px) saturate(180%);-webkit-backdrop-filter:blur(22px) saturate(180%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.7),0 10px 28px rgba(0,0,0,.16)}
.tabbar a{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:10.5px;font-weight:800;color:#8C877E;text-decoration:none;min-width:56px}
.tabbar a svg{fill:currentColor}.tabbar a.on{color:var(--tomato)}
.tabbar a.plus{width:52px;height:52px;min-width:0;border-radius:26px;background:#1A1A1A;color:#fff;justify-content:center}
.tabbar a.plus svg{fill:none}
.tabbar .av{box-shadow:0 0 0 2px #fff}
.page{padding-bottom:110px}
.mepage{align-items:center;text-align:center}.mepage h1{font-size:26px;margin:12px 0 2px}.me-av{display:flex;justify-content:center;margin-top:40px}
.me-count{display:inline-block;margin:14px auto 26px;padding:7px 16px;border-radius:999px;background:#fff;font-weight:800;font-size:14px}
.btn2.danger{color:#D93B2B;background:#fff;box-shadow:inset 0 0 0 1.5px #ECE6DC}

/* in an HTML room the page itself never scrolls (only the app inside its frame does) */
body:has(.world.html){overflow:hidden;height:100%;overscroll-behavior:none}
body:has(.world.html) .world.html{height:100vh;height:100dvh;overflow:hidden}

/* the app's key buttons sit in the bottom bar, next to the latest line */
.world.html .latest .lt{flex:1;min-width:0;display:flex;align-items:center;gap:6px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.world.html .latest .actbtn{flex:none;height:30px;padding:0 14px;border-radius:15px;background:#1A1A1A;color:#fff;font-size:13px;font-weight:800}
.world.html .latest{pointer-events:auto}

.qrsheet{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.qrsheet .qr-cover{width:112px;display:block;margin-top:6px;border-radius:22px;padding:5px}.qrsheet h2{margin:6px 0 0}
.qrsheet .qr{width:220px;height:220px;border-radius:18px;background:#fff;padding:8px;box-shadow:0 0 0 1px #ECE6DC}
#sheet{z-index:100}
/* the chat at the bottom is glass (like the system's), over the room's ground */
.world.html .dockglass,.world.html .chat{background:rgba(255,255,255,.5);backdrop-filter:blur(26px) saturate(180%);-webkit-backdrop-filter:blur(26px) saturate(180%);box-shadow:inset 0 1px 0 rgba(255,255,255,.9),inset 0 0 0 1px rgba(255,255,255,.55),0 -8px 24px rgba(0,0,0,.08)}
.world.html .cmp2,.world.html .db{background:rgba(255,255,255,.7)}

/* while dragging, the dock's glass grows with the finger (its content stays put) */
.world.html.dragging .dockglass{height:var(--chat-h)}
.world.html .chat{transition:none}
/* Consent under sign-in, the me page's links, and report sheets. */
.consent{font-size:11.5px;color:#8A8A8A;text-align:center;margin:10px 8px 0;line-height:1.5}.consent a{color:inherit;text-decoration:underline}
.me-links{display:flex;gap:18px;justify-content:center;margin:22px 0 14px;font-size:14px;font-weight:700}.me-links a{color:#555;text-decoration:none}
.me-h{font-size:13px;color:#8A8A8A;margin:22px 0 6px;align-self:flex-start}
.mepage .plist{width:100%}
.quote{font-size:15px;color:#333;background:#F4F4F4;border-radius:14px;padding:10px 12px;margin:0 0 12px}

/* The first version being written: three steps and a bar (as in the app). */
.bsteps{display:flex;flex-direction:column;gap:10px;margin:6px 0 18px;padding:14px 16px;border-radius:20px;background:rgba(255,255,255,.7)}
.bstep{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:700;color:#9A948A}
.bstep i{width:18px;height:18px;border-radius:50%;box-shadow:inset 0 0 0 2px #C9BFAE;flex:none;position:relative}
.bstep.now{color:var(--ink)}.bstep.now i{box-shadow:inset 0 0 0 2px var(--tomato);animation:bpulse 1s ease-in-out infinite}
.bstep.done{color:var(--ink)}.bstep.done i{background:var(--tomato);box-shadow:none}
.bstep.done i::after{content:'';position:absolute;left:6px;top:3px;width:4px;height:8px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.bbar{height:6px;border-radius:3px;background:rgba(26,26,26,.08);overflow:hidden;margin-top:4px}.bbar b{display:block;height:100%;width:8%;background:var(--tomato);border-radius:3px;transition:width .5s}
@keyframes bpulse{50%{transform:scale(.8)}}
/* ---- HTML rooms, as in the app (v3): one pane of glass at the bottom ----
   Folded it is just the input box (10px from the edges, rounder at the bottom like the phone's corners); pulled up it
   grows into the chat (half, or full up to the top bar, where the app folds away); the input stays at its bottom. */
.cpanel{display:none}
.world.html .sit,.world.html .dockglass,.world.html .chat,.world.html .divider,.world.html .latest,.world.html .dockbtns,.world.html .cmp2,.world.html .dim{display:none!important}
.world.html .cpanel{display:flex;flex-direction:column;justify-content:flex-end;position:fixed;left:max(10px,calc((100vw - 460px) / 2));right:max(10px,calc((100vw - 460px) / 2));bottom:calc(var(--kb,0px) + 10px);z-index:30;overflow:hidden;
  border-radius:24px 24px 34px 34px;background:rgba(255,255,255,.62);backdrop-filter:blur(24px) saturate(180%);-webkit-backdrop-filter:blur(24px) saturate(180%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.75),0 10px 30px rgba(0,0,0,.18);user-select:none;-webkit-user-select:none}
.world.html .cpanel.folded{height:auto!important}
.world.html.settling .cpanel{transition:height .32s cubic-bezier(.3,.9,.3,1)}
.world.html .phead{flex:none;display:flex;align-items:center;justify-content:space-between;padding:10px 14px 6px;touch-action:none;cursor:ns-resize}
.world.html .pht{display:flex;flex-direction:column;align-items:center}.world.html .pht b{font-size:15px;font-weight:900}.world.html .pht span{font-size:11px;color:var(--ink2);font-weight:600}
.world.html .cx2{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.6);display:flex;align-items:center;justify-content:center;color:var(--ink)}.world.html .cx2.ghost{background:none}
.world.html .pbody{flex:1;min-height:0;display:flex;gap:6px;padding-left:6px}
.world.html .pcol{width:62px;flex:none;overflow-y:auto;display:flex;flex-direction:column;align-items:center;gap:12px;padding:6px 0}
.world.html .pc{display:flex;flex-direction:column;align-items:center;gap:3px}.world.html .pc small{font-size:11px;font-weight:800;color:var(--ink2);max-width:56px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.world.html .pc.off{filter:grayscale(.7);opacity:.7}
.world.html .pcol .invh small{font-size:11px}
.world.html .pmsgs{flex:1;min-width:0;overflow-y:auto;padding:4px 10px 8px 0;user-select:text;-webkit-user-select:text}
.world.html .cpanel.folded .phead,.world.html .cpanel.folded .pbody{display:none}
.world.html .cbox{flex:none;padding:10px 8px 10px 14px;display:flex;flex-direction:column;gap:10px;touch-action:none}
.world.html .cblatest{display:flex;align-items:center;gap:6px;min-height:28px}.world.html .cblatest.empty{display:none}
.world.html.open .cblatest{display:none}
.world.html .plt{flex:1;min-width:0;display:flex;align-items:center;gap:6px;font-size:13px;color:var(--ink2);overflow:hidden;white-space:nowrap}
.world.html .plt b{color:var(--ink);font-weight:800;flex:none}.world.html .plt span{overflow:hidden;text-overflow:ellipsis}
.world.html .cblatest .actbtn{flex:none;height:30px;padding:0 14px;border-radius:15px;background:var(--ink);color:#fff;font-size:14px;font-weight:800;white-space:nowrap}
.world.html .cblatest .remix{flex:none;height:28px;padding:0 10px;border-radius:14px;box-shadow:inset 0 0 0 1px rgba(26,26,26,.25);font-size:13px;font-weight:700;white-space:nowrap}
.world.html .cbin{display:flex;align-items:flex-end;gap:8px}
.world.html .cbin textarea{flex:1;min-width:0;border:none;outline:none;resize:none;background:none;font:inherit;font-size:16px;line-height:22px;padding:6px 0 6px 4px;color:var(--ink);max-height:122px}
.world.html .cbin textarea::placeholder{color:#8C877E}
.world.html .mic{width:34px;height:34px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--ink)}.world.html .mic.on{background:var(--ink);color:#fff}
.world.html .send2{width:34px;height:34px;flex:none;border-radius:50%;background:var(--tomato);color:#fff;display:flex;align-items:center;justify-content:center}.world.html .send2:disabled{background:rgba(154,148,138,.45)}
.world.html .roomhost{bottom:var(--app-b,0px)!important;transition:opacity .3s,scale .3s}
.world.html.full .roomhost{opacity:0;scale:.9;transform-origin:top center;pointer-events:none}

.world.html .cx2.ghost{box-shadow:none;border:none}

/* The status capsule as the live line (as in the app): the AI working shows a twinkling spark and a soft shimmer; each
   new line slides up in. */
.cap.live b .ln{display:inline-block;animation:capin .35s cubic-bezier(.3,.9,.3,1)}
.cap.live b.ai .ln{animation:capin .35s cubic-bezier(.3,.9,.3,1),capbreath 1.6s ease-in-out .35s infinite}
.cap .spark{flex:none;animation:sparkle 1.2s ease-in-out infinite}
@keyframes capin{from{transform:translateY(10px);opacity:0}to{transform:none;opacity:1}}
@keyframes capbreath{50%{opacity:.55}}
@keyframes sparkle{50%{transform:scale(.75) rotate(20deg);opacity:.7}}
.world.html.building .cpanel{display:none}
.cap.live b{display:flex;align-items:center;gap:6px}
.world.html .pcol .ghost{border-color:rgba(90,85,78,.55);color:var(--ink2)}
.cap .stepn{font-style:normal;font-size:11px;font-weight:800;color:#8C877E;margin-left:2px}
.cap .cbar{display:block;width:140px;height:3px;border-radius:2px;background:rgba(26,26,26,.12);overflow:hidden;margin-top:3px}.cap .cbar i{display:block;height:100%;width:12%;background:var(--tomato);border-radius:2px;transition:width .5s}

/* Status capsule, one line (v3): as tall as the back button; the build's progress fills it from the left. */
.cap.one{position:relative;overflow:hidden;flex-direction:row;align-items:center;gap:6px;height:44px;padding:0 16px;min-width:120px}
.cap.one .ln{font-size:15px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;animation:capin .35s cubic-bezier(.3,.9,.3,1)}
.cap.one.ai .ln{animation:capin .35s cubic-bezier(.3,.9,.3,1),capbreath 1.6s ease-in-out .35s infinite}
.cap.one i{width:8px;height:8px;border-radius:4px;background:#9A948A;flex:none}.cap.one i.k-act,.cap.one i.k-wait{background:#FF5A36}.cap.one i.k-time{background:#3D63F5}.cap.one i.k-done{background:#1FB36B}
.cap.one em{font-style:normal;font-size:13px;font-weight:700;color:#8C877E}
.cap.one .cfill{position:absolute;left:0;top:0;bottom:0;width:0;background:rgba(255,90,54,.18);transition:width .5s;pointer-events:none;z-index:-1}
.cap.one > *:not(.cfill){position:relative}
/* The logo loader: two stickers circling each other, the front one a little bigger. */
.mloader{position:relative;display:block;width:96px;height:96px;margin:60px auto 0}
.empty-home .mloader{width:72px;height:72px;margin-top:40px}
.mloader .mi{position:absolute;left:50%;top:50%;width:58%;height:58%;margin:-29% 0 0 -29%;border-radius:50%;background:#fff;box-shadow:0 3px 8px rgba(0,0,0,.12)}
.mloader .mi::after{content:'';position:absolute;inset:8.6%;border-radius:50%}
.mloader .ink::after{background:#1A1A1A}.mloader .tom::after{background:#FF5A36}
.mloader .tom{animation:morbit 1.1s linear infinite}.mloader .ink{animation:morbit 1.1s linear infinite;animation-delay:-.55s}
@keyframes morbit{0%{transform:translate(29%,0) scale(1);z-index:1}25%{transform:translate(0,13%) scale(1.04);z-index:2}50%{transform:translate(-29%,0) scale(1);z-index:2}75%{transform:translate(0,-13%) scale(.94);z-index:1}100%{transform:translate(29%,0) scale(1);z-index:1}}
@media (prefers-reduced-motion:reduce){.mloader .mi{animation:none}.mloader .tom{transform:translate(-22%,6%);z-index:2}.mloader .ink{transform:translate(22%,-6%)}}
.art .art-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:2;border-radius:inherit}

/* 开个房间: words + an optional pick (as in the app). */
.np-ta{width:100%;min-height:56px;resize:none;font:inherit;font-size:16px;line-height:22px;padding:14px 16px;border-radius:16px}
.np-pick{display:flex;align-items:center;gap:8px;height:40px;padding:0 8px 0 14px;border-radius:20px;background:rgba(255,90,54,.12);font-weight:800;font-size:14px;margin:4px 0}
.np-pick span{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.np-pick button{width:28px;height:28px;border-radius:14px;font-size:18px;color:#9A948A}
.newpage .btn.wide{width:100%;height:48px;margin:6px 0 4px}.newpage .btn.wide:disabled{background:rgba(154,148,138,.5)}
.newpage .sm-w.sel .st{box-shadow:0 0 0 4px #FF5A36,0 10px 22px var(--warm)}
.newpage .sm-w.sel .st::after{content:'✓';position:absolute;top:8px;right:8px;width:24px;height:24px;border-radius:12px;background:#FF5A36;color:#fff;font-size:14px;font-weight:900;display:flex;align-items:center;justify-content:center;z-index:3}
.newpage .chips[hidden],.np-pick[hidden]{display:none!important}
.newpage .btn.wide{background:var(--tomato);color:#fff}
.empty-say{margin:28px 16px 14px;text-align:center;font-size:17px;font-weight:800;color:var(--on,#1A1A1A)}
.aispark{display:inline-flex;width:14px;height:14px}

.emptyroom{position:absolute;inset:0;overflow:auto;padding:0 18px 160px;background:#F6F3EE}
.emptyroom h2{margin:0;font-size:24px;font-weight:900;color:#1A1A1A}
.emptyroom p{margin:6px 0 0;font-size:14px;color:#6B665E}
.er-h{margin-top:26px;font-size:13px;font-weight:800;color:#6B665E}
.er-row{display:flex;gap:12px;overflow-x:auto;margin:4px -18px 0;padding:8px 18px;scrollbar-width:none}
.er-row::-webkit-scrollbar{display:none}
.er-t{flex:0 0 96px;display:flex;flex-direction:column;align-items:center;gap:6px;background:none;border:0;padding:0;cursor:pointer}
.er-t .st{width:96px;height:96px;border-radius:18px}
.er-t b{font-size:12px;font-weight:800;color:#1A1A1A;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:96px}
.er-share{margin-top:18px;display:inline-flex;align-items:center;gap:6px;background:none;border:0;padding:0;font-size:14px;font-weight:700;color:#6B665E;cursor:pointer}
/* ---- One Liquid Glass, as in the app: the input box (folded, half, full), the top bar's buttons and capsule ----
   A light milky tint over a strong blur and saturation, a bright top edge and a soft shadow: glass over any app. */
:root{--lg-bg:rgba(255,255,255,.34);--lg-filter:blur(24px) saturate(190%) brightness(1.04);--lg-edge:inset 0 1px 0 rgba(255,255,255,.9),inset 0 0 0 1px rgba(255,255,255,.5),inset 0 -1px 0 rgba(255,255,255,.25),0 10px 28px rgba(0,0,0,.14)}
.world.html .cpanel,.glb,.glp,.gtop .cap{background:var(--lg-bg);backdrop-filter:var(--lg-filter);-webkit-backdrop-filter:var(--lg-filter);box-shadow:var(--lg-edge)}

/* ---- build 51: the input box's heads, voice first, the two-line capsule, the new-space page ---- */
.world.html .cpanel{bottom:calc(var(--kb,0px) + max(10px, env(safe-area-inset-bottom) - 10px))}
.world.html .cpanel.folded{overflow:visible}
.pheads{display:none}
.world.html .cpanel.folded .pheads{display:flex;align-items:center;gap:8px;touch-action:pan-y}
.ph{position:relative;display:inline-flex;cursor:pointer}.ph.off{filter:grayscale(.7)}
.ph .dots{position:absolute;top:-12px;left:50%;transform:translateX(-50%);font-style:normal;font-size:11px;font-weight:900;background:#fff;border-radius:9px;padding:0 5px;box-shadow:0 2px 4px rgba(0,0,0,.15)}
.phb{position:absolute;left:4px;bottom:40px;width:max-content;max-width:170px;font-size:13px;font-weight:600;line-height:1.3;padding:6px 10px;background:#fff;color:#1A1A1A;border-radius:16px 16px 16px 4px;box-shadow:0 4px 12px rgba(0,0,0,.14);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;animation:pop .3s cubic-bezier(.3,1.4,.5,1) both;z-index:2}
.phb.me{background:#1A1A1A;color:#fff}
@keyframes pop{from{transform:scale(.5);opacity:0}}
.phinv{height:28px;padding:0 10px;border-radius:14px;border:1.5px dashed rgba(26,26,26,.45);background:none;font-size:13px;font-weight:700;color:#1A1A1A}
.world.html .cpanel.folded .cblatest.empty{display:none}
.hold{display:none;width:34px;height:34px;border-radius:50%;border:0;background:#FF5A36;color:#fff;align-items:center;justify-content:center;flex:none;touch-action:none;transition:transform .2s}
.cbox.vfirst .hold{display:inline-flex}.cbox.vfirst .mic,.cbox.vfirst .send2{display:none}
.cbox.holding .hold{display:inline-flex;transform:scale(1.25)}.cbox.holding .mic,.cbox.holding .send2,.cbox.holding textarea{display:none}
.holdwave{display:none;flex:1;align-items:center;gap:10px;min-height:34px;font-size:15px;color:#6B665E}
.cbox.holding .holdwave{display:flex}
.wv{display:inline-flex;gap:3px;align-items:center}.wv b{width:3px;height:8px;border-radius:2px;background:#FF5A36;animation:wv .9s ease-in-out infinite}
.wv b:nth-child(2){animation-delay:.1s}.wv b:nth-child(3){animation-delay:.2s}.wv b:nth-child(4){animation-delay:.3s}.wv b:nth-child(5){animation-delay:.4s}.wv b:nth-child(6){animation-delay:.5s}.wv b:nth-child(7){animation-delay:.6s}
@keyframes wv{50%{height:20px}}
.cap.one.two{flex-direction:column;gap:0;justify-content:center}
.cap .cn{font-size:11px;font-weight:600;opacity:.6;line-height:1.1;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cap .cl{display:inline-flex;align-items:center;gap:6px;max-width:100%}.cap.two .ln{font-size:14px}
.er-top{min-height:120px}
.er-l{font-size:14px;font-weight:800;color:#6B665E}
.er-big{margin-top:8px;font-size:30px;font-weight:900;line-height:1.3;color:#1A1A1A}
.er-type{color:#9A948A}.er-type .cur{font-style:normal;color:#FF5A36;animation:blink 1s step-end infinite}
@keyframes blink{50%{opacity:0}}
.er-dots{display:flex;gap:4px;margin-top:12px}.er-dots i{width:5px;height:5px;border-radius:3px;background:#ECE6DC;transition:width .2s}.er-dots i.on{width:14px;background:#FF5A36}
.er-sk{display:flex;align-items:center;gap:14px;margin-top:10px}.er-sk b{display:block;font-size:22px;font-weight:900}.er-sk small{font-size:13px;color:#6B665E;font-weight:600}
.er-cv{width:72px;height:72px;flex:none;border-radius:18px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#FFF6E8;font-size:34px}.er-cv img{width:100%;height:100%;object-fit:cover}
.er-parts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px;animation:pop .3s both}
.er-parts div{padding:12px;border-radius:16px;background:rgba(255,255,255,.7);border:1.5px solid rgba(255,90,54,.35)}.er-parts b{display:block;font-size:14px}.er-parts small{font-size:12px;color:#6B665E}
.er-cap{text-align:center;font-size:12px;color:#9A948A;margin:12px 0 0}
.er-t .st{width:60px;height:60px;border-radius:14px}.er-t{flex-basis:64px}.er-t b{font-size:11px;color:#6B665E;max-width:64px}
.enter-zoom{animation:zoomin .32s cubic-bezier(.2,.9,.3,1) both}
@keyframes zoomin{from{transform:scale(.9);opacity:.3;border-radius:28px}}
.er-row[hidden],.er-h[hidden]{display:none!important}

/* The full chat page (spaces with an app): the whole screen is the conversation; the three glass buttons stay on top. */
.world.html.cpage .cpanel{top:0;left:0;right:0;bottom:0;height:auto!important;border-radius:0;background:#F6F3EE;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none;padding-top:calc(env(safe-area-inset-top) + 64px);animation:cpin .28s cubic-bezier(.2,.9,.3,1) both}
.world.html.cpage .phead,.world.html.cpage .pcol{display:none}
.world.html.cpage .cbox{margin:0 10px max(10px, calc(env(safe-area-inset-bottom) - 10px));border-radius:24px 24px 34px 34px;background:var(--lg-bg);backdrop-filter:var(--lg-filter);-webkit-backdrop-filter:var(--lg-filter);box-shadow:var(--lg-edge)}
.world.html.cpage .gtop{z-index:40}
@keyframes cpin{from{transform:translateX(40%);opacity:0}}

/* Covers as widgets (as in the app) */
.art.widget{position:relative;display:flex;flex-direction:column;justify-content:space-between;padding:14px;container-type:inline-size;overflow:hidden}
.wg-top{display:flex;align-items:center;gap:6px;font-size:max(11px,7.5cqw);font-weight:800;opacity:.75;min-width:0}.wg-top span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wg-top>*:first-child{flex:none;width:max(22px,15cqw)!important;height:max(22px,15cqw)!important}
.wg-big{margin-top:auto;font-size:17cqw;font-weight:900;line-height:1.08;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-all}
.wg-sub{margin-top:4px;font-size:max(11px,7cqw);font-weight:600;opacity:.8;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.art.widget.big .wg-big{font-size:11cqw}.art.widget.big .wg-sub,.art.widget.big .wg-top{font-size:3.6cqw}
.art.widget{align-items:stretch!important;text-align:left!important;justify-content:flex-start!important}.art.widget .wg-big{text-align:left}

/* build 53: the heads above the box, richer widget covers */
.world.html .pheads{display:flex;position:fixed;left:max(16px,calc((100vw - 448px) / 2));right:max(16px,calc((100vw - 448px) / 2));bottom:calc(var(--kb,0px) + max(10px, env(safe-area-inset-bottom) - 10px) + var(--boxh,64px) + 8px);z-index:31;align-items:center;gap:8px}
.world.html.cpage .pheads,.world.html.open .pheads{display:none}
.art.widget .decor,.art.widget svg.decor{opacity:.55}
.wg-icon{position:absolute;width:62%;opacity:.38;pointer-events:none}.wg-icon svg{width:100%;height:auto;display:block}.wg-icon i{font-style:normal;font-size:48cqw}
.wg-icon.l0{right:-14%;bottom:-12%;transform:rotate(-12deg)}.wg-icon.l1{right:-14%;top:-10%;transform:rotate(10deg)}
.art.widget.l0 .wg-big{margin-top:0}.art.widget.l1 .wg-big,.art.widget.l2 .wg-big{margin-top:auto}
.wg-st{position:relative}
.art.widget .wg-big,.art.widget .wg-sub{position:relative;z-index:1}
.world.html .pheads{transition:opacity .2s}.world.html .pheads:empty{display:none}
.world.html .pheads{right:auto;padding:5px 6px;border-radius:22px;background:var(--lg-bg);backdrop-filter:var(--lg-filter);-webkit-backdrop-filter:var(--lg-filter);box-shadow:var(--lg-edge)}
.gtop .ctog{display:none;margin-left:8px}.world.html:not(.blankroom) .gtop .ctog{display:inline-flex;align-items:center;justify-content:center}
.ctog .ic-app{display:none}.world.cpage .ctog .ic-app{display:inline-flex}.world.cpage .ctog .ic-chat{display:none}

/* Two capsules (as in the app): the app's and the chat's; on the chat page they swap */
.gtop .caps{display:flex;align-items:center;gap:8px;margin:0 auto;min-width:0;max-width:calc(100% - 110px)}
.gtop .caps .cap{margin:0;max-width:230px;transition:max-width .3s,padding .3s}
.gtop .ctog{margin-left:0!important;height:44px;min-width:44px;border-radius:22px;padding:0;gap:6px;transition:padding .3s}
.ctog .ctl{display:none;flex-direction:column;align-items:flex-start;line-height:1.1}.ctog .ctl small{font-size:11px;opacity:.6;font-weight:600}.ctog .ctl b{font-size:14px;font-weight:800;white-space:nowrap}
.capapp{display:none}
.world.cpage .gtop .caps .cap{display:none}
.world.cpage .gtop .capapp{display:inline-flex;width:44px;height:44px;border-radius:50%;align-items:center;justify-content:center;background:var(--lg-bg);backdrop-filter:var(--lg-filter);-webkit-backdrop-filter:var(--lg-filter);box-shadow:var(--lg-edge);cursor:pointer}
.world.cpage .ctog{padding:0 16px}.world.cpage .ctog .ctl{display:flex}.world.cpage .ctog .ic-chat{color:#FF5A36}
.world.html .cpanel{border-radius:26px!important}.world.html.cpage .cbox{border-radius:26px!important}

/* round 11-28: two pages pushed together, top bar A, heads on the ground, hot card */
.world.html #roomhost{transition:transform .38s cubic-bezier(.2,.9,.3,1)}
.world.html.cpage #roomhost{transform:translateX(-100%)}
.world.html.cpage .cpanel{background:transparent!important;animation:cpslide .38s cubic-bezier(.2,.9,.3,1) both}
@keyframes cpslide{from{transform:translateX(100%)}}
.world.html .cpage .pmsgs,.world.html.cpage .pmsgs{padding-left:10px}
.gtop .ctog{width:44px}.world.cpage .gtop .ctog{width:auto}
.gtop .capapp .st{width:34px;height:34px;border-radius:50%;overflow:hidden;display:block}.gtop .capapp .st .art{transform:scale(.3);transform-origin:top left;width:333%;height:333%}
.world.html .pheads{background:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important;padding:0!important;gap:12px;align-items:flex-start}
.world.html.cpage .pheads{display:flex!important}
.ph{flex-direction:column;align-items:center;gap:3px}.ph small{font-size:10.5px;font-weight:600;color:var(--on,#1A1A1A);opacity:.8;max-width:46px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.phb{bottom:56px}
.phinv{height:auto;padding:0;border:0;display:flex;flex-direction:column;align-items:center;gap:3px;background:none}.phinv i{width:34px;height:34px;border-radius:50%;border:1.5px dashed rgba(26,26,26,.5);display:flex;align-items:center;justify-content:center;font-style:normal;font-size:16px}.phinv small{font-size:10.5px;font-weight:600;opacity:.8}
.gmenu.card{left:50%;right:auto;transform:translateX(-50%);top:calc(env(safe-area-inset-top) + 64px);min-width:240px}
.hotcard{position:relative;display:block;width:100%;height:210px;border:0;padding:0;border-radius:26px;overflow:hidden;box-shadow:0 0 0 6px #fff,0 10px 26px rgba(0,0,0,.14);margin:6px 0 22px;text-align:left;cursor:pointer}
.hc-bg,.hc-bg .art{position:absolute;inset:0}.hc-bg::after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 40%,rgba(0,0,0,.45))}
.hc-tag{position:absolute;left:14px;top:14px;font-style:normal;font-size:13px;font-weight:800;color:#fff;background:#FF5A36;border-radius:14px;padding:4px 12px}
.hc-txt{position:absolute;left:18px;bottom:18px;color:#fff;display:flex;flex-direction:column}.hc-txt b{font-size:26px;font-weight:900}.hc-txt small{font-size:13px;opacity:.85}
.hc-go{position:absolute;right:18px;bottom:18px;background:#fff;color:#1A1A1A;font-weight:800;font-size:16px;border-radius:22px;padding:11px 20px}

/* Covers read at a glance: a big icon, the space's colour, a little motion, one tiny value */
.art.vis{position:relative;container-type:size;overflow:hidden}
.art.vis .decor,.art.vis svg.decor{opacity:.5}
.cic{position:absolute;left:50%;top:50%;width:56cqmin;height:56cqmin;transform:translate(-50%,-50%);animation:bob 3.4s ease-in-out infinite alternate}
.cic.up{top:44%}
.cdisc{position:absolute;inset:0;border-radius:50%;background:#fff;box-shadow:0 4cqmin 8cqmin rgba(0,0,0,.14);display:flex;align-items:center;justify-content:center}
.cdisc svg{width:62%;height:62%}.cdisc .ce{font-style:normal;font-size:28cqmin;line-height:1}
.cring{position:absolute;inset:-5cqmin;border-radius:50%;background:conic-gradient(#FF5A36 calc(var(--p)*1%),rgba(255,255,255,.6) 0);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 3.5cqmin),#000 0);mask:radial-gradient(farthest-side,transparent calc(100% - 3.5cqmin),#000 0)}
.ckey{position:absolute;left:50%;top:84%;transform:translate(-50%,-50%);background:#fff;color:#1A1A1A;border-radius:99px;padding:1.5cqmin 6cqmin;font-size:15cqmin;font-weight:900;white-space:nowrap;box-shadow:0 2px 6px rgba(0,0,0,.12)}
.cwait{position:absolute;right:7cqmin;top:7cqmin;width:7cqmin;height:7cqmin;border-radius:50%;background:#FF5A36;border:2px solid #fff;animation:wpulse .9s ease-in-out infinite alternate}
@keyframes bob{from{transform:translate(-50%,-47%) rotate(-4deg)}to{transform:translate(-50%,-53%) rotate(4deg)}}
@keyframes wpulse{to{transform:scale(1.35)}}

/* Templates as 2:3 posters (spaces are square stickers) */
.poster{position:relative;display:block;width:100%;aspect-ratio:2/3;border-radius:14px;overflow:hidden;box-shadow:0 4px 12px rgba(0,0,0,.14)}
.poster.big{border-radius:22px;box-shadow:0 8px 22px rgba(0,0,0,.18)}
.poster .art{position:absolute;inset:0}
.pfade{position:absolute;inset:0;background:linear-gradient(transparent 45%,rgba(0,0,0,.55))}
.ptxt{position:absolute;left:8px;right:8px;bottom:8px;color:#fff;display:flex;flex-direction:column;text-align:left}.ptxt b{font-size:13px;font-weight:900}.ptxt small{font-size:12px;opacity:.85}
.poster.big .ptxt{left:16px;bottom:16px}.poster.big .ptxt b{font-size:24px}
.pbtn{position:relative;border:0;padding:0;background:none;cursor:pointer;display:block;width:100%}
.prow{display:flex;gap:14px;overflow-x:auto;margin:6px -20px 10px;padding:8px 20px;scrollbar-width:none;scroll-snap-type:x mandatory}.prow::-webkit-scrollbar{display:none}
.prow .pbtn.big{flex:0 0 230px;scroll-snap-align:start}
.prow .hc-tag{left:12px;top:12px}
.grid.g3{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.sec.big{font-size:17px;font-weight:800;color:#1A1A1A}
.er-t.pbtn.sm{flex:0 0 72px;width:72px}.er-t.pbtn.sm .poster{border-radius:12px}.er-t.pbtn.sm .ptxt b{font-size:11px}
.gtop .ctog,.gtop .capapp{display:none!important}

/* Sitting around (no chat page): bubbles over the heads, mine at the right in tomato; pull the box up for the chat */
.world.html .pheads{flex-direction:column;align-items:stretch;gap:8px}
.world.html.open .pheads{display:none!important}
.hsay{display:flex;flex-direction:column;gap:6px}
.hb{align-self:flex-start;max-width:250px;background:#fff;color:#1A1A1A;font-size:14px;font-weight:600;padding:8px 12px;border-radius:18px 18px 18px 4px;box-shadow:0 4px 12px rgba(0,0,0,.12);opacity:calc(1 - var(--age) * .3);transform:scale(calc(1 - var(--age) * .04));transform-origin:bottom left;animation:pop .3s both}
.hb.me{align-self:flex-end;background:#FF5A36;color:#fff;border-radius:18px 18px 4px 18px;transform-origin:bottom right}
.hb em{display:block;font-style:normal;font-size:11px;font-weight:700;opacity:.9;margin-top:3px}
.hrow{display:flex;gap:12px;align-items:flex-start}
.ph.off{filter:none;opacity:.45}
.world.html .pheads{right:max(16px,calc((100vw - 448px) / 2))!important;pointer-events:none}.world.html .pheads .hrow,.world.html .pheads .hb{pointer-events:auto}

/* Covers as the app drawn small (a non-interactive frame of the app, faded in once drawn) */
.appcv{position:absolute;inset:0;overflow:hidden;pointer-events:none;opacity:0;transition:opacity .4s;border-radius:inherit}
.appcv.on{opacity:1}
.acbox{position:absolute;left:0;top:0;transform-origin:top left;background:#fff}
.acbox .roomframe{width:100%;height:100%;border:0;display:block}
.st{position:relative}.poster .appcv{z-index:0}.poster .pfade,.poster .ptxt{z-index:1}
.poster .part{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top;z-index:0}.pfade{background:linear-gradient(transparent 45%,rgba(0,0,0,.15) 60%,rgba(0,0,0,.62))!important}

/* 智能聊天室: the 要点 card, then the whole conversation */
.chatspace{position:absolute;inset:0;display:flex;flex-direction:column;gap:8px;box-sizing:border-box}
.pts{margin:0 12px;background:#fff;border-radius:22px;padding:14px 16px;box-shadow:0 8px 22px rgba(0,0,0,.08);display:flex;flex-direction:column;gap:10px;flex:none}
.pts.empty{background:rgba(255,255,255,.6);box-shadow:none;border:1.5px dashed #B9B3A8;gap:4px}.pts.empty small{font-size:12px;font-weight:800;color:#6B665E}.pts.empty b{font-size:16px}.pts.empty span{font-size:12px;color:#6B665E}
.pts-h{display:flex;align-items:center;justify-content:space-between;cursor:pointer}.pts-h small{font-size:12px;font-weight:800;color:#6B665E}.pts-h b{font-size:13px}.pts-h i{font-style:normal;color:#6B665E}
.pr{display:flex;gap:10px;align-items:flex-start}.pr b{display:block;font-size:17px;font-weight:900}.pr span{font-size:12px;color:#6B665E}
.pi{flex:none;width:22px;height:22px;border-radius:7px;background:rgba(255,90,54,.12);color:#FF5A36;font-style:normal;font-weight:900;display:flex;align-items:center;justify-content:center;font-size:12px}.pi.q{background:rgba(124,92,255,.12);color:#7C5CFF}
.pl{display:block;font-size:11px;font-weight:800;color:#FF5A36}.pl.q{color:#7C5CFF}
.pt{display:flex;align-items:center;gap:10px;padding-left:32px;font-size:14px;font-weight:600}.pt span{flex:1}.pt button{width:18px;height:18px;border-radius:5px;border:1.5px solid #B9B3A8;background:#fff;color:#fff;font-size:12px;padding:0;display:flex;align-items:center;justify-content:center}
.pt.done span{color:#9A948A;text-decoration:line-through}.pt.done button{background:#2EAD5B;border-color:#2EAD5B}
.cmsgs{flex:1;overflow-y:auto;padding:0 12px}
.pt .av,.pt img{flex:none;width:20px!important;height:20px!important}
.pt{padding-left:0!important}.phinv.pill{flex-direction:row;height:30px;padding:0 12px;border:1.5px dashed rgba(26,26,26,.5);border-radius:15px;font-size:13px;font-weight:700}
