*,:before,:after{box-sizing:border-box;margin:0;padding:0}:root{--bg:#212121;--sidebar:#171717;--text:#ececec;--muted:#9b9b9b;--line:#2f2f2f;--hover:#2f2f2f;--input:#303030;--user-bubble:#303030;--font:-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif}html,body,#root{height:100%}body{background:var(--bg);color:var(--text);font-family:var(--font);font-size:16px;line-height:1.6;overflow:hidden}button{color:inherit;cursor:pointer;font-family:inherit}a{color:inherit}.app{grid-template-columns:260px 1fr;height:100vh;transition:grid-template-columns .18s;display:grid}.app.collapsed{grid-template-columns:0 1fr}.app.collapsed .sidebar{opacity:0;pointer-events:none}.sidebar{background:var(--sidebar);border-right:1px solid var(--line);flex-direction:column;height:100vh;transition:opacity .12s;display:flex;overflow:hidden}.side-top{padding:8px}.brand{align-items:center;gap:8px;padding:10px 8px 14px;font-size:1.05rem;font-weight:600;display:flex}.brand .bname{flex:1}.brand svg,.navitem svg,.panel-btn svg{width:20px;height:20px}.panel-btn{width:32px;height:32px;color:var(--muted);background:0 0;border:0;border-radius:8px;flex:none;justify-content:center;align-items:center;display:inline-flex}.panel-btn:hover{background:var(--hover);color:var(--text)}.reopen{z-index:60;position:absolute;top:11px;left:12px}.app.collapsed .topbar{padding-left:52px}.navitem{text-align:left;width:100%;color:var(--text);background:0 0;border:0;border-radius:8px;align-items:center;gap:10px;padding:10px;font-size:.95rem;text-decoration:none;display:flex}.navitem:hover{background:var(--hover)}.navtext{flex:1;min-width:0}.notify-dot{background:#ff4d4d;border-radius:50%;flex:none;width:9px;height:9px;box-shadow:0 0 0 3px #ff4d4d1f}.recents-label{color:var(--muted);padding:16px 12px 6px;font-size:.85rem;font-weight:600}.recents{flex:1;padding:0 8px 12px;overflow-y:auto}.recent{text-align:left;width:100%;color:var(--text);white-space:nowrap;background:0 0;border:0;border-radius:8px;align-items:center;gap:8px;padding:8px 10px;font-size:.95rem;display:flex;overflow:hidden}.recent:hover,.recent.active{background:var(--hover)}.recent .nm{text-overflow:ellipsis;flex:1;overflow:hidden}.recent .spin{border:2px solid var(--muted);border-top-color:var(--text);border-radius:50%;flex:none;width:11px;height:11px;animation:.8s linear infinite spin}.recent .del{opacity:.55;color:var(--muted);border-radius:4px;padding:2px 6px;font-size:.85rem}.recent .del.arm{opacity:1;color:#ff6b6b;background:#ff6b6b1f;font-size:.78rem;font-weight:600}@media (hover:hover){.recent .del{opacity:0}.recent:hover .del{opacity:.7}.recent .del:hover{opacity:1;background:#00000040}}.recents-empty{color:var(--muted);padding:8px 12px;font-size:.85rem}.main{flex-direction:column;height:100vh;display:flex;position:relative;overflow:hidden}.topbar{z-index:9;background:var(--bg);flex:none;align-items:center;gap:10px;height:52px;padding:0 14px;font-size:1rem;font-weight:600;display:flex;position:relative}.topbar .ttl{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tochat{color:var(--muted);border:1px solid var(--line);background:0 0;border-radius:999px;flex:none;margin-left:auto;padding:5px 14px;font-size:.9rem;font-weight:500}.tochat:hover{background:var(--hover);color:var(--text)}.stage{flex:1;min-height:0;position:relative;overflow:hidden}.canvas{z-index:2;background:var(--bg);opacity:0;pointer-events:none;transition:opacity .25s;position:absolute;inset:0;overflow:hidden}.canvas.show{opacity:1;pointer-events:auto}.canvas iframe{background:var(--bg);border:0;width:100%;height:100%;display:block}.thread{position:absolute;inset:0;overflow-y:auto}.thread-inner{max-width:760px;margin:0 auto;padding:8px 24px 20px}.welcome{pointer-events:none;flex-direction:column;align-items:center;padding:24px;display:flex;position:absolute;top:34%;left:0;right:0;transform:translateY(-50%)}.welcome h1{letter-spacing:-.01em;font-size:1.85rem;font-weight:500}.msg{margin:18px 0;display:flex}.msg.user{justify-content:flex-end}.bubble{background:var(--user-bubble);white-space:pre-wrap;word-wrap:break-word;border-radius:20px;max-width:70%;padding:10px 16px}.msg.bot{flex-direction:column;max-width:100%}.who{color:var(--muted);align-items:center;gap:6px;margin-bottom:6px;font-size:.8rem;display:flex}.who svg{width:15px;height:15px}.say{word-wrap:break-word}.say p{margin:0 0 10px}.say p:last-child{margin-bottom:0}.say ul,.say ol{margin:4px 0 10px;padding-left:22px}.say li{margin:3px 0}.say code{background:#00000045;border-radius:6px;padding:1px 6px;font-size:.9em}.say pre{background:#00000045;border-radius:10px;margin:6px 0 10px;padding:10px 12px;overflow-x:auto}.say pre code{background:0 0;padding:0}.say h1,.say h2,.say h3{margin:10px 0 6px;font-size:1.05em}.notices{flex-direction:column;gap:8px;max-width:860px;margin-top:12px;display:flex}.notice{color:var(--text);background:#ffffff08;border:1px solid #ffffff20;border-radius:14px;align-items:flex-start;gap:10px;padding:12px 14px;font-size:.98rem;line-height:1.45;display:flex}.notice-icon{border-radius:50%;flex:none;place-items:center;width:20px;height:20px;font-size:.8rem;font-weight:800;display:grid}.notice.security,.notice.warning{color:#ffe2ae;background:#38270f;border-color:#ffb84d66;box-shadow:inset 3px 0 #ffb84d}.notice.security .notice-icon,.notice.warning .notice-icon{color:#1d1407;background:#ffb84d}.notice.info{color:#d7efff;background:#172533;border-color:#66c8ff50}.notice.info .notice-icon{color:#07131a;background:#66c8ff}.dots{align-items:center;gap:5px;padding:2px 0 4px;display:flex}.dots span{background:var(--muted);border-radius:50%;width:7px;height:7px;animation:1.2s ease-in-out infinite dot}.dots span:nth-child(2){animation-delay:.2s}.dots span:nth-child(3){animation-delay:.4s}@keyframes dot{0%,60%,to{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}.plan{flex-direction:column;gap:7px;margin:10px 0;display:flex}.step{color:var(--muted);align-items:center;gap:9px;font-size:.94rem;display:flex}.step .mk{flex:none;place-items:center;width:16px;height:16px;display:grid}.step.doing{color:var(--text)}.step.doing .mk:after{content:"";border:2px solid var(--muted);border-top-color:var(--text);border-radius:50%;width:12px;height:12px;animation:.8s linear infinite spin}.step.pending .mk:after{content:"";background:var(--muted);opacity:.5;border-radius:50%;width:6px;height:6px}.step.done .mk:after{content:"✓";color:#7ac67a;font-size:.85rem}@keyframes spin{to{transform:rotate(360deg)}}.composer-wrap{flex:none;padding:8px 24px 18px}.composer{max-width:760px;margin:0 auto}.input-row{background:var(--input);border-radius:26px;align-items:flex-end;gap:8px;padding:10px 10px 10px 20px;display:flex}textarea{color:var(--text);font:inherit;resize:none;background:0 0;border:0;outline:0;flex:1;max-height:200px;padding:8px 0;font-size:1rem;line-height:1.5}.send{color:#111;background:#fff;border:0;border-radius:50%;flex:none;place-items:center;width:36px;height:36px;font-size:1.1rem;display:grid}.send:disabled{color:#8a8a8a;background:#4a4a4a}.chips{flex-wrap:wrap;justify-content:center;gap:10px;margin-top:14px;display:flex}.chip{border:1px solid var(--line);color:var(--muted);background:0 0;border-radius:999px;align-items:center;gap:9px;padding:9px 15px;font-size:.92rem;display:inline-flex}.chip:hover{background:var(--hover);color:var(--text)}.gate{z-index:1000;background:var(--bg);text-align:center;flex-direction:column;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.gate .mark{width:44px;height:44px;margin-bottom:18px}.gate h1{margin-bottom:8px;font-size:1.6rem;font-weight:600}.gate p{color:var(--muted);max-width:380px;margin-bottom:22px}.gate-row{background:var(--input);border-radius:26px;gap:8px;width:min(92vw,420px);padding:8px 8px 8px 20px;display:flex}.gate-row input{color:var(--text);font:inherit;background:0 0;border:0;outline:0;flex:1;font-size:1.05rem}.gate-row button{color:#111;background:#fff;border:0;border-radius:50%;width:38px;height:38px;font-size:1.1rem}.gate-row button:disabled{color:#8a8a8a;background:#4a4a4a}.gate .hint{color:var(--muted);margin-top:14px;font-size:.82rem}.gate .err{color:#ff6b6b;min-height:1.2em;margin-top:10px;font-size:.85rem}.modal-scrim{z-index:200;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#000000a0;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.settings{background:var(--bg);border:1px solid var(--line);border-radius:20px;flex-direction:column;width:100%;max-width:560px;max-height:min(88vh,760px);display:flex;overflow:hidden;box-shadow:0 24px 60px #000000b0}.settings-top{border-bottom:1px solid var(--line);flex:none;align-items:center;gap:10px;height:56px;padding:0 8px 0 18px;font-size:1.05rem;font-weight:600;display:flex}.settings-top .grow{flex:1}.settings-body{flex:1;width:100%;padding:20px 20px 24px;overflow-y:auto}.scard{border:1px solid var(--line);background:#2a2a2a;border-radius:16px;margin-bottom:18px;padding:20px}.scard h3{margin-bottom:4px;font-size:1.05rem;font-weight:650}.scard .opt{color:var(--muted);vertical-align:2px;background:#00000030;border-radius:999px;margin-left:6px;padding:2px 8px;font-size:.72rem;font-weight:500}.scard .sub{color:var(--muted);margin-bottom:14px;font-size:.88rem}.sfield{background:var(--input);border:1px solid var(--line);width:100%;height:46px;color:var(--text);font:inherit;border-radius:12px;outline:0;margin-bottom:10px;padding:0 14px}.sfield:focus{border-color:#777}.sfield[readonly]{opacity:.7;cursor:default}.sbtn{color:#111;background:#fff;border:0;border-radius:12px;height:46px;margin-top:4px;padding:0 22px;font-size:.95rem;font-weight:650}.sbtn.ghost{color:var(--text);border:1px solid var(--line);background:0 0}.smsg{margin:2px 0 10px;font-size:.85rem}.smsg.err{color:#ff6b6b}.smsg.ok{color:#7ac67a}.scard.owner{background:#2a2740;border-color:#8e7bff55}.scard.owner .opt{color:#c9beff;background:#8e7bff33}.opchecks{flex-direction:column;gap:8px;margin-bottom:12px;display:flex}.opcheck{border:1px solid var(--line);background:var(--input);cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:12px;align-items:center;gap:12px;height:46px;padding:0 14px;display:flex}.opcheck.on{background:#8e7bff1f;border-color:#8e7bff}.opcheck input{opacity:0;width:0;height:0;position:absolute}.opcheck-box{border:1.5px solid var(--muted);border-radius:6px;flex:none;place-items:center;width:20px;height:20px;display:grid}.opcheck.on .opcheck-box{background:#8e7bff;border-color:#8e7bff}.opcheck.on .opcheck-box:after{content:"✓";color:#fff;font-size:.8rem;line-height:1}.opcheck-name{flex:1;font-weight:600}.opcheck .opt{flex:none;margin-left:0}.opcheck input:focus-visible+.opcheck-box{outline-offset:2px;outline:2px solid #8e7bff}.oppill-root{flex:none;align-self:center;position:relative}.oppill{border:1px solid var(--line);height:30px;color:var(--muted);font:inherit;cursor:pointer;background:0 0;border-radius:999px;align-items:center;gap:5px;padding:0 10px;font-size:.82rem;font-weight:600;display:inline-flex}.oppill:hover{background:var(--hover);color:var(--text)}.oppill-dot{color:#8e7bff;font-size:.7rem}.oppill-caret{opacity:.8;font-size:.8rem}.oppop{z-index:20;border:1px solid var(--line);background:#2a2a2a;border-radius:12px;min-width:168px;padding:6px;position:absolute;bottom:calc(100% + 8px);right:0;box-shadow:0 12px 32px #00000080}.oppop-item{width:100%;height:38px;color:var(--text);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:center;gap:8px;padding:0 10px;font-size:.9rem;display:flex}.oppop-item:hover{background:var(--hover)}.oppop-name{flex:1;font-weight:600}.oppop-item.on .oppop-name{color:#c9beff}.oppop-check{color:#8e7bff;flex:none}@media (width<=760px){.app,.app.collapsed{grid-template-columns:1fr}.sidebar{z-index:200;border-right:1px solid var(--line);width:min(82vw,320px);transition:transform .22s;position:fixed;inset:0 auto 0 0;transform:translate(-100%)}.app.side-open .sidebar{opacity:1;pointer-events:auto;transform:translate(0)}.app.side-open:after{content:"";z-index:150;background:#0007;position:fixed;inset:0}.scrim{z-index:160;position:fixed;inset:0}.thread-inner{padding:8px 16px 20px}.composer-wrap{padding:8px 12px 14px}.chip{padding:8px 13px;font-size:.88rem}}
