:root{color-scheme:dark;--bg: #11131a;--ink: #e6e8ef;--muted: #9aa1b2;--line: #2b2f3a;--accent: #3b82f6;--accent-soft: #1e3a6e;--ok: #34c77b;--danger: #ff6b7a;--vs-side: #1f2228;--vs-edit: #1a1c21;--vs-bar: #2a2d35;--vs-row: #2c313c;--radius: 8px;font-family:Inter,system-ui,sans-serif;color:var(--ink)}*{box-sizing:border-box}html,body,#root{margin:0;height:100%;background:var(--bg);overflow:hidden}button{font:inherit;cursor:pointer;color:inherit}button:disabled{cursor:default}.desktop{position:fixed;inset:0;background-size:cover;background-position:center}.desktop:before{content:"";position:absolute;inset:0;background:#08090e8c}.desk-area{position:absolute;inset:0 0 56px}.desk-icons{position:absolute;left:12px;top:14px;display:flex;flex-direction:column;gap:10px;z-index:1}.desk-icon{width:88px;padding:8px 4px 6px;border:1px solid transparent;border-radius:var(--radius);background:none;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:.78rem;font-weight:600;text-shadow:0 1px 3px rgba(0,0,0,.9);user-select:none}.desk-icon svg{width:46px;height:46px}.desk-icon:hover{background:#ffffff14}.desk-icon.picked{background:#3b82f647;border-color:#3b82f699}.taskbar{position:fixed;left:50%;bottom:8px;transform:translate(-50%);min-width:260px;height:44px;padding:4px 10px;display:flex;justify-content:center;gap:6px;background:#1e212aeb;border:1px solid var(--line);border-radius:12px;z-index:9000}.task{width:36px;height:36px;border:0;border-radius:7px;background:none;padding:5px;position:relative}.task svg{width:26px;height:26px}.task:hover{background:#ffffff14}.task:after{content:"";position:absolute;left:13px;right:13px;bottom:1px;height:3px;border-radius:2px;background:var(--muted)}.task.on:after{background:var(--accent);left:9px;right:9px}.new-brief{position:fixed;right:14px;bottom:8px;height:44px;padding:0 20px;border:0;border-radius:12px;background:var(--accent);color:#fff;font-weight:700;z-index:9000}.done-chip{position:fixed;right:14px;bottom:8px;height:44px;padding:0 18px;display:flex;align-items:center;border-radius:12px;background:#173326f2;border:1px solid var(--ok);color:#7ee0aa;font-weight:700;z-index:9000}.win{position:absolute;display:flex;flex-direction:column;border-radius:10px;overflow:hidden;background:#23262e;border:1px solid #3a3f4c;box-shadow:0 18px 50px #0000008c}.win.focused{border-color:#566078}.win-bar{height:34px;flex:none;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 4px 0 8px;background:var(--vs-bar);user-select:none;cursor:default}.win-light .win-bar{background:#dfe3ea;color:#23262e}.win-title{display:flex;align-items:center;gap:7px;font-size:.82rem;font-weight:600;white-space:nowrap;overflow:hidden}.win-icon svg{width:17px;height:17px;display:block}.win-left{display:flex;align-items:center;min-width:0}.win-buttons{justify-self:end;display:flex}.win-buttons button{width:34px;height:28px;border:0;border-radius:6px;background:none;display:grid;place-items:center}.win-buttons svg{width:12px;height:12px;stroke:currentColor;stroke-width:1.4;fill:none}.win-buttons button:hover{background:#80808040}.win-buttons .close:hover{background:#d9364a;color:#fff}.win-body{flex:1;min-height:0;display:flex;flex-direction:column}.win-corner{position:absolute;right:0;bottom:0;width:16px;height:16px;cursor:nwse-resize}.cm{flex:1;min-height:0;display:grid;grid-template-columns:minmax(170px,21%) 1fr minmax(230px,28%);background:var(--vs-edit);font-size:.84rem}.cm-files{background:var(--vs-side);border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0}.cm-files-head,.cm-chat-head{height:34px;flex:none;display:flex;align-items:center;gap:2px;padding:0 6px 0 12px;font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}.cm-files-head span{flex:1}.icon-btn{width:26px;height:26px;border:0;border-radius:5px;background:none;display:grid;place-items:center;color:var(--ink)}.icon-btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.3}.icon-btn:hover{background:#ffffff1a}.tree{flex:1;overflow:auto;padding-bottom:8px}.tree-row{height:26px;display:flex;align-items:center;gap:5px;padding-right:8px;cursor:pointer;border:1px solid transparent;white-space:nowrap;user-select:none}.tree-row:hover{background:#ffffff0d}.tree-row.selected{background:var(--vs-row)}.tree-row.drop{background:var(--accent-soft);border-color:var(--accent)}.tree-name{overflow:hidden;text-overflow:ellipsis}.chev{width:12px;flex:none;color:var(--muted);font-size:1rem;line-height:1;display:inline-block;transition:none}.chev.open{transform:rotate(90deg)}.name-box{flex:1;min-width:0;height:22px;background:#11131a;color:var(--ink);border:1px solid var(--accent);border-radius:3px;font:inherit;padding:0 4px;outline:none}.tree-error{margin:2px 8px 4px;padding:4px 6px;font-size:.76rem;background:#4a1d25;border:1px solid #a33a4a;border-radius:3px}.cm-note{min-height:34px;padding:8px 12px;font-size:.78rem;color:#ffcf6e}.glyph{width:16px;height:16px;flex:none;display:inline-grid;place-items:center;font-size:.62rem;font-weight:800;font-family:JetBrains Mono,monospace}.glyph.folder{background:#d9a441;border-radius:2px 2px 3px 3px;height:12px;clip-path:polygon(0 0,40% 0,50% 18%,100% 18%,100% 100%,0 100%)}.glyph.folder.open{background:#f0c25e}.glyph.pic{border-radius:3px;background:linear-gradient(160deg,#8ecae6 0 55%,#5aa36b 55%);height:13px}.glyph.f-md{color:#5fb3f9}.glyph.f-html{color:#f0883e;font-size:.56rem}.glyph.f-css{color:#6f9bff;font-size:.8rem}.cm-editor{display:flex;flex-direction:column;min-width:0;min-height:0}.tabs{height:34px;flex:none;display:flex;background:var(--vs-side);overflow-x:auto;scrollbar-width:none}.tab{display:flex;align-items:center;gap:6px;padding:0 4px 0 12px;border-right:1px solid var(--line);color:var(--muted);cursor:pointer;white-space:nowrap;border-top:2px solid transparent}.tab.active{background:var(--vs-edit);color:var(--ink);border-top-color:var(--accent)}.tab button{border:0;background:none;width:22px;height:22px;border-radius:4px;color:var(--muted);font-size:1rem}.tab button:hover{background:#ffffff1a}.code-edit,.code-view{flex:1;min-height:0;display:flex;font-family:JetBrains Mono,ui-monospace,monospace;font-size:.82rem;line-height:1.55}.code-view{overflow:auto}.gutter{flex:none;width:44px;padding:10px 8px 10px 0;text-align:right;color:#5c6370;overflow:hidden;user-select:none}.code-view .gutter{overflow:visible;height:max-content}.code-edit{overflow:auto}.md-wrap{position:relative;flex:1;min-height:100%;height:max-content;margin-left:44px}.mirror,textarea.code{padding:10px 14px 60px 6px;font:inherit;line-height:inherit;white-space:pre-wrap;overflow-wrap:anywhere;tab-size:2}.mirror{color:transparent;pointer-events:none}.ln{position:relative}.ln:before{content:attr(data-n);position:absolute;left:-50px;width:36px;text-align:right;color:#5c6370}textarea.code{position:absolute;inset:0;width:100%;height:100%;margin:0;border:0;outline:none;resize:none;overflow:hidden;background:transparent;color:var(--ink)}pre.code{margin:0;padding:10px 14px 40px 6px;font:inherit;white-space:pre;color:#d4d4d4}pre.code i{font-style:normal}.code .t{color:#569cd6}.code .a{color:#9cdcfe}.code .v{color:#ce9178}.code .p{color:#9cdcfe}.code .s{color:#d7ba7d}.code .c{color:#6a9955}.cm-picture{flex:1;display:grid;place-items:center;padding:16px;min-height:0}.cm-picture img{max-width:100%;max-height:100%;object-fit:contain;border-radius:4px}.cm-empty{flex:1}.cm-chat{background:var(--vs-side);border-left:1px solid var(--line);display:flex;flex-direction:column;min-height:0}.cm-chat.drop{outline:2px dashed var(--accent);outline-offset:-4px;background:#1c2537}.chat-list{flex:1;overflow:auto;padding:4px 10px 10px;display:flex;flex-direction:column;gap:10px}.msg{display:flex;flex-direction:column;gap:6px}.msg.me{align-self:flex-end;align-items:flex-end;max-width:92%}.msg.me .msg-text{background:var(--accent-soft);padding:7px 10px;border-radius:10px 10px 2px;white-space:pre-wrap}.msg.ai .msg-text{line-height:1.45}.msg.problem .msg-text{color:#ffb3bc}.msg-files{display:flex;flex-direction:column;gap:3px}.msg-files button,.writing{display:flex;align-items:center;gap:6px;border:1px solid var(--line);background:var(--vs-edit);border-radius:5px;padding:4px 8px;font-size:.78rem;text-align:left}.writing .lines{margin-left:auto;color:var(--muted)}.chips{display:flex;flex-wrap:wrap;gap:4px}.chip{display:inline-flex;align-items:center;gap:4px;padding:2px 4px 2px 6px;border:1px solid var(--line);border-radius:5px;background:var(--vs-row);font-size:.76rem}.chip button{border:0;background:none;color:var(--muted);padding:0 3px}.chat-box{margin:8px;padding:6px;border:1px solid #3a3f4c;border-radius:8px;background:var(--vs-edit);display:flex;flex-direction:column;gap:6px}.chat-box:focus-within{border-color:var(--accent)}.chat-box textarea{border:0;outline:none;resize:none;background:transparent;color:var(--ink);font:inherit;padding:2px 4px}.chat-foot{display:flex;align-items:center;gap:8px}.chat-hint{flex:1;min-height:1em;font-size:.76rem;color:#ffcf6e}.run{border:0;border-radius:6px;background:var(--accent);color:#fff;font-weight:700;padding:6px 16px}.run:disabled{background:#3a3f4c;color:var(--muted)}.ctx-menu{position:fixed;z-index:10000;min-width:170px;padding:4px;background:#2a2d35;border:1px solid #454b5a;border-radius:7px;box-shadow:0 10px 30px #00000080;display:flex;flex-direction:column}.ctx-menu button{border:0;background:none;text-align:left;padding:6px 10px;border-radius:4px;font-size:.84rem}.ctx-menu button:hover{background:var(--accent);color:#fff}.assets{flex:1;overflow:auto;padding:12px;display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px;align-content:start;background:#1d2027}.asset{display:flex;flex-direction:column;align-items:center;gap:5px;padding:6px;border-radius:6px;cursor:grab;font-size:.72rem;text-align:center;overflow-wrap:anywhere}.asset:hover{background:#ffffff12}.asset img{width:96px;height:72px;object-fit:cover;border-radius:4px;background:#2a2d35}.browser{flex:1;min-height:0;display:flex;flex-direction:column;background:#fff}.address{height:32px;flex:none;margin:0;display:flex;align-items:center;gap:8px;padding:0 12px;background:#eef1f5;border-bottom:1px solid #d3d8e0;color:#4a5160;font-size:.8rem}.lock{width:9px;height:9px;border:1.6px solid #7b8696;border-radius:2px}.browser iframe{flex:1;border:0;width:100%;background:#fff}.browser-empty{flex:1;background:#fff}.publish{display:flex;align-items:center}.pub-btn{height:24px;padding:0 12px;border:0;border-radius:5px;background:var(--accent);color:#fff;font-size:.78rem;font-weight:700}.pub-btn:disabled{background:#b9c0cc;color:#eef1f5}.pub-form{position:relative;display:flex;gap:4px;align-items:center}.pub-form input{width:150px;height:24px;border:1px solid #9aa4b4;border-radius:5px;padding:0 6px;font:inherit;font-size:.8rem;background:#fff;color:#1d2027}.pub-x{border:0;background:none;color:#4a5160;font-size:1rem}.pub-error{position:absolute;top:30px;left:0;white-space:nowrap;background:#4a1d25;color:#fff;border-radius:4px;padding:4px 8px;font-size:.76rem;z-index:5}.note{flex:1;overflow:auto;padding:16px 18px;background:#f4ecd8;color:#3b3123}.note img{width:76px;height:76px;object-fit:cover;border-radius:8px;float:right;margin:0 0 8px 12px}.note h2{margin:0 0 8px;font-size:1.05rem}.note p{margin:0;line-height:1.5}.surfer{flex:1;overflow:auto;padding:14px;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px;align-content:start;background:#1d2027}.site-card{border:1px solid var(--line);border-radius:8px;background:#262a33;display:flex;flex-direction:column}.site-open{border:0;background:none;text-align:left;padding:12px;display:flex;flex-direction:column;gap:3px;font-size:.84rem}.site-open strong{font-size:.98rem}.site-open:hover:not(:disabled){background:#ffffff0d}.site-dl{border:0;border-top:1px solid var(--line);background:none;padding:7px;font-size:.8rem;color:var(--accent);font-weight:600}.muted{color:var(--muted)}.surfer-empty{flex:1;display:grid;place-items:center;color:var(--muted);background:#1d2027}.picker{position:fixed;inset:0;background-size:cover;background-position:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;padding:24px;overflow:auto}.picker:before{content:"";position:fixed;inset:0;background:#08090e9e}.picker>*{position:relative}.picker h1{margin:0;font-size:2rem;text-shadow:0 2px 10px rgba(0,0,0,.7)}.picker-cards{display:grid;grid-template-columns:repeat(4,minmax(0,250px));gap:18px}.brief-card{background:#1c1f27f2;border:1px solid #3a3f4c;border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:12px}.brief-card h2{margin:0;font-size:1.05rem;min-height:2.6em}.brief-card img{width:100%;aspect-ratio:4 / 3;object-fit:cover;border-radius:8px}.brief-card p{margin:0;flex:1;font-size:.86rem;line-height:1.5;color:#c9cdd8}.brief-card button{border:0;border-radius:8px;background:var(--accent);color:#fff;font-weight:700;padding:9px}.brief-card.done{border-color:var(--ok)}.brief-card.done button{background:#173326;color:#7ee0aa;border:1px solid var(--ok)}@media(max-width:1100px){.picker-cards{grid-template-columns:repeat(2,minmax(0,260px))}}.locked{position:fixed;inset:0;display:flex;flex-direction:column;gap:14px;align-items:center;justify-content:center}.locked h1{margin:0;font-size:1.5rem}.locked input{height:36px;padding:0 10px;border-radius:6px;border:1px solid var(--line);background:#1d2027;color:var(--ink);font:inherit}.locked button{border:0;border-radius:8px;background:var(--accent);color:#fff;font-weight:700;padding:9px 22px}
