/* Compact Agent workspace. */
body:has(#editor:not([hidden]))>.top{display:none}body:has(#editor:not([hidden])){overflow:hidden;background:#101016}#editor .editor-top{height:56px;min-height:56px;display:grid;grid-template-columns:320px minmax(170px,1fr) auto;align-items:center;padding:0 14px 0 16px;gap:14px;border-bottom:1px solid #ffffff0c;background:#111117;flex-wrap:nowrap}#editor .workspace-project{display:flex;align-items:center;gap:10px;margin:0;width:auto;min-width:0;overflow:hidden}#editor .workspace-brand{flex-shrink:0;display:flex;align-items:center;margin-right:2px}#editor .workspace-brand img{display:block;width:28px;height:28px;object-fit:contain}#editor #back-projects{padding:5px 3px;border:0;background:transparent;color:#a69aaa;font-size:17px;min-width:22px}#editor #project-name{width:135px;max-width:180px;padding:7px 5px;font-size:13px;color:#ebe3f0;font-weight:500;border:0;background:none}#editor #workspace-save-state{font-size:10px;color:#7d7488;white-space:nowrap;margin:0;overflow:hidden;text-overflow:ellipsis}#editor .workspace-view-tabs{justify-self:start;margin:0!important;padding:3px;gap:2px;border:1px solid #ffffff10;border-radius:9px;background:#19171f;width:auto!important}#editor .workspace-view-tabs button{padding:7px 12px;font-size:12px;color:#a89bb3;border:0;background:none;border-radius:6px}#editor .workspace-view-tabs button[aria-pressed=true]{background:#3d2c50;color:#f0dfff}#editor .workspace-actions{margin:0!important;display:flex;align-items:center;gap:5px;width:auto!important;overflow:visible!important}#editor .workspace-actions>button{padding:7px 9px;font-size:11px;border:0;background:transparent;color:#b9acbf;box-shadow:none;min-height:30px}#editor .workspace-actions>button:hover{background:#ffffff08}#editor .workspace-actions>#save{padding:8px 14px;background:#8550da;color:white;border-radius:8px;margin-left:5px}#editor .workspace-actions>#save:hover{background:#9864e8}#editor .workspace-actions>#undo,#editor .workspace-actions>#redo,#editor .workspace-actions>#refresh-preview{font-size:18px;padding:4px 8px;min-width:27px}#editor .workspace-actions button:disabled{opacity:.25;cursor:default}#editor .editor-account-menu{position:relative;margin-left:9px}#editor .editor-account-menu>summary{list-style:none;display:flex;width:31px;height:31px;align-items:center;justify-content:center;border-radius:50%;border:1px solid #b991e82e;background:#9e73c71a;color:#d4bce7;cursor:pointer}#editor .editor-account-menu>summary::-webkit-details-marker{display:none}#editor .editor-account-menu svg{width:17px;height:17px}#editor #editor-account-items{position:absolute;right:0;top:42px;width:205px;padding:9px;border-radius:12px;border:1px solid #5a4269;background:#1b1621;z-index:80;box-shadow:0 15px 45px #0007;display:grid;gap:4px}#editor .editor-account-menu:not([open]) #editor-account-items{display:none}#editor #editor-account-items>#account-name{display:block;padding:10px;font-size:12px;color:#a995b8;border-bottom:1px solid #ffffff0b;margin-bottom:3px;overflow-wrap:anywhere}#editor #editor-account-items>button{display:block;width:100%;text-align:left;padding:10px;border:0;background:transparent;font-size:12px;color:#e0cee8}#editor #editor-account-items>button:hover{background:#ffffff08}#editor .editor-grid{grid-template-columns:320px minmax(0,1fr);height:calc(100dvh - 56px);overflow:hidden}#editor .left-panel{background:#121118;border-right:1px solid #ffffff0b;overflow:hidden}#editor .panel-tabs{height:43px;min-height:43px;align-items:center;padding:0 17px;gap:20px;border-bottom:1px solid #ffffff09}#editor .panel-tabs button{height:43px;padding:0 1px;font-size:12px;border:0;border-radius:0;color:#8e819b;background:none;position:relative;box-shadow:none}#editor .panel-tabs button.active{color:#dfc6f3;background:none;border:0}#editor .panel-tabs button.active:after{content:'';position:absolute;left:0;right:0;bottom:0;height:2px;border-radius:3px;background:#a175d8}#editor #ai-panel{gap:0;min-height:0;overflow:hidden}#editor .agent-conversation{padding:25px 20px 18px;scrollbar-width:none;overflow:auto;min-height:70px}#editor .agent-conversation::-webkit-scrollbar,#editor #blocks-panel::-webkit-scrollbar,#editor .right-panel::-webkit-scrollbar{display:none}#editor .conversation-intro>img{width:30px;height:30px;margin:0 0 19px;opacity:.85}#editor .conversation-intro h2{font-size:19px;letter-spacing:-.45px;line-height:1.35;font-weight:550;margin:0 0 12px;max-width:230px}#editor .conversation-intro>p{font-size:12px;line-height:1.85;color:#9a8da6;margin:0 0 22px}#editor .conversation-intro>button{font-size:11px;line-height:1.5;padding:10px 12px;margin:8px 0;background:#ffffff03;border:1px solid #ffffff0b;border-radius:9px;color:#bcb0c8}#editor .conversation-intro>button:hover{border-color:#9d73c83d;background:#9d73c80b}#editor .conversation-message{padding-bottom:20px;margin-bottom:20px;border-color:#ffffff08}#editor .conversation-message p{font-size:12px;line-height:1.85}#editor .conversation-message.is-user p{background:#4e355c3d;border:1px solid #9f74c314;padding:12px;border-radius:10px}#editor .agent-composer{margin:10px 12px 13px;padding:12px 12px 9px;border:1px solid #9271ac4d;border-radius:15px;background:linear-gradient(135deg,#211a29,#1b1720);box-shadow:0 8px 25px #0002;flex-shrink:0}#editor #prompt{min-height:70px;height:70px;max-height:130px;resize:none;font-size:12px;line-height:1.8;color:#ece2f2;padding:0;margin:0}#editor #prompt::placeholder{color:#8a7a97}#editor .composer-actions{margin-top:7px;gap:8px;min-height:30px}#editor .composer-actions .check{font-size:10px;gap:6px;color:#9d89ad}#editor .composer-actions .check input{width:12px;height:12px;accent-color:#9a6bcf}#editor .composer-actions #generate{width:30px;height:30px;padding:6px;display:flex;align-items:center;justify-content:center;border-radius:9px;background:#9260d5;box-shadow:none;border:0}#editor .composer-actions #generate svg{width:17px;height:17px}#editor .agent-composer .terms{font-size:9px!important;line-height:1.5;margin:8px 0 0;color:#776781}#editor #blocks-panel{scrollbar-width:none;padding:6px 17px 24px}#editor #blocks-panel h2{color:#c7b2d5;font-size:12px;margin-top:20px}#editor #blocks-panel button{background:#ffffff03;border-color:#ffffff0b;font-size:11px}#editor #blocks-panel .image-section{margin-top:22px;padding:15px 0 0;border-color:#ffffff0b}#editor .workspace-main{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);background:#ebe7ed;min-height:0;overflow:hidden}#editor .canvas-wrap{position:relative;grid-column:1;grid-row:1;min-height:0;padding:0;overflow:hidden;align-items:stretch;justify-content:center;background:#e6e1ea}#editor #canvas{height:100%;width:100%;min-height:0;border:0;border-radius:0;transition:opacity .12s;display:block}#editor #canvas[hidden]{display:none}#editor #canvas.mobile{max-width:390px;box-shadow:0 0 45px #382a4425;margin:0 auto}#editor .canvas-state{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px;background:radial-gradient(ellipse at 48% 40%,#fcfaff,#f0ebf5 80%)}#editor .canvas-state[hidden]{display:none}#editor .canvas-state>img{width:53px;height:53px;object-fit:contain;margin-bottom:30px;filter:drop-shadow(0 8px 18px #8657b830)}#editor .canvas-state h2{font-size:31px;line-height:1.15;font-weight:550;color:#36283f;letter-spacing:-1px;margin:0 0 17px;max-width:420px}#editor .canvas-state p{font-size:14px;line-height:1.85;max-width:365px;color:#918199;margin:0 0 27px}#editor .canvas-state>button{font-size:12px;padding:12px 21px;background:#8a5bc5;border:0;border-radius:10px;color:white;box-shadow:0 5px 20px #8a5bc522}#editor .canvas-state>button>span{margin-left:12px}#editor .canvas-state>.state-secondary{background:transparent;color:#93819f;margin-top:10px;font-size:11px;box-shadow:none}#editor .canvas-state>.state-secondary:hover{color:#674b7b;background:#8a5bc50a}#editor #canvas-loading img{animation:pulse 1.8s ease-in-out infinite;margin-bottom:20px}#editor .right-panel{grid-row:1;grid-column:2;border-left:1px solid #d3c8dc;background:#17131d;scrollbar-width:none;padding:20px 17px}#editor .right-panel h2{font-size:13px;color:#d8c4e6}#editor .right-panel p,#editor .right-panel label{font-size:11px}#editor .right-panel input,#editor .right-panel textarea,#editor .right-panel select{padding:10px;font-size:11px}#editor.workspace-mode-panel .workspace-main{grid-template-columns:minmax(0,1fr) 250px}#editor #busy{background:#f4eef9f2;color:#48334f;backdrop-filter:blur(10px)}#editor #busy h2{font-size:20px;color:#4b3655;font-weight:550;letter-spacing:-.5px}#editor #busy p{font-size:12px;color:#96849e}#editor #busy>div{background:transparent;border:0;box-shadow:none;padding:20px}#editor #busy img{width:56px;height:56px;object-fit:contain}#editor button:focus-visible,#editor summary:focus-visible{outline:2px solid #bc93ea;outline-offset:3px}
@media(max-width:1100px){#editor .editor-top{grid-template-columns:280px minmax(145px,1fr) auto;gap:10px}#editor .editor-grid{grid-template-columns:280px minmax(0,1fr)}#editor #workspace-save-state{display:none}#editor .workspace-actions>#export{font-size:0;min-width:28px}#editor .workspace-actions>#export:after{content:'↓';font-size:18px}#editor #project-name{width:150px}#editor .workspace-view-tabs button{font-size:11px;padding:7px 10px}}@media(max-width:850px){#editor .editor-top{grid-template-columns:minmax(135px,1fr) auto;grid-template-rows:46px 39px;height:85px;min-height:85px;padding:0 12px;gap:0 10px}#editor .workspace-project{grid-column:1;grid-row:1}#editor .workspace-view-tabs{grid-column:1;grid-row:2;padding:2px}#editor .workspace-actions{grid-column:2;grid-row:1/3;justify-content:flex-end;flex-wrap:nowrap;width:auto!important;gap:3px}#editor .workspace-actions>#undo,#editor .workspace-actions>#redo,#editor .workspace-actions>#refresh-preview{display:none}#editor .workspace-actions>#view-mode{font-size:10px;padding:7px}#editor .workspace-actions>#save{font-size:10px;padding:9px}#editor #project-name{width:120px}#editor .editor-grid{height:calc(100dvh - 85px);grid-template-columns:265px minmax(0,1fr)}#editor.workspace-mode-panel .workspace-main{grid-template-columns:minmax(0,1fr)}#editor.workspace-mode-panel .right-panel{grid-row:1;grid-column:1;z-index:5;width:min(250px,100%);justify-self:end;box-shadow:-15px 0 40px #0004}.editor-account-menu{margin-left:3px!important}}@media(max-width:600px){body:has(#editor:not([hidden])){overflow:auto}#editor .editor-grid{height:auto;display:flex;flex-direction:column;overflow:visible}#editor .left-panel{height:480px;min-height:480px;border-right:0}#editor .workspace-main{height:550px;min-height:550px}#editor .agent-conversation{padding-top:20px}#editor .workspace-brand img{width:24px;height:24px}#editor #back-projects{min-width:17px;font-size:15px}#editor #project-name{font-size:12px;width:105px}#editor .workspace-actions>#view-mode{display:none}#editor .workspace-actions>#export{min-width:25px}#editor .canvas-state{padding:30px}#editor .canvas-state h2{font-size:26px}#editor .canvas-state p{font-size:13px}#editor .canvas-state>img{width:45px;height:45px}}
#editor .conversation-intro>p,#editor .conversation-message p{font-size:13px}#editor .conversation-intro>button{font-size:12px}#editor #prompt{font-size:13px}#editor .agent-composer .terms{font-size:10px!important}#editor .canvas-state p{color:#796781}#editor .canvas-state>.state-secondary{color:#7d6889}#editor #workspace-save-state{color:#968a9f}#editor .workspace-actions>#save:disabled{opacity:.4;background:#5e446d;color:#c4aacd}
/* Project library */
.dashboard{max-width:1600px;padding:44px 44px 70px;margin:auto}.dashboard-title{align-items:center;margin-bottom:30px}.dashboard h1{font-size:42px;letter-spacing:-1.7px;margin:0 0 12px}.dashboard-description{font-size:15px;color:#b7adbf;margin:0 0 17px}#project-counter{font-size:12px;color:#95859f;margin:0}#access-source{font-size:11px!important;margin:8px 0 0}.dashboard-title #create{font-size:13px;padding:13px 20px;border-radius:9px}.project-tools{display:flex;gap:24px;align-items:center;justify-content:space-between;margin:32px 0}.project-search{display:flex;align-items:center;gap:11px;border:1px solid #ffffff24;border-radius:9px;padding:0 15px;width:min(45%,510px);height:44px}.project-search span{font-size:25px;color:#a99cb6}.project-search input{border:0;background:none;color:#f0eaf5;padding:0;width:100%;outline:none;font-size:13px}.project-filters{display:flex;align-items:center;gap:13px}.project-filters select{background:#12121a;color:#c5b8cf;border:1px solid #ffffff10;border-radius:7px;padding:10px;font-size:12px}.project-layout{display:flex;padding:3px;border:1px solid #ffffff1a;border-radius:8px}.project-layout button{border:0;background:none;padding:5px 9px;font-size:17px;color:#9b8da8}.project-layout button[aria-pressed=true]{background:#3b2d4d;color:#e6d2f8;border-radius:5px}.dashboard .project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.dashboard .project{padding:16px;border-radius:13px;border:1px solid #ffffff17;background:#121119;min-width:0;transition:transform .22s,border-color .22s}.dashboard .project:hover{border-color:#a576cf66;transform:translateY(-3px)}.dashboard .project-thumb{display:block;width:100%;height:auto;aspect-ratio:16/9;padding:0;overflow:hidden;border:0;border-radius:8px;background:#251733}.dashboard .project-thumb img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .6s}.dashboard .project:hover .project-thumb img{transform:scale(1.035)}.project-body{padding:17px 3px 1px}.project-badge{display:inline-block;font-size:10px;padding:4px 7px;color:#c0b2cc;background:#ffffff07;border:1px solid #ffffff12;border-radius:4px}.project-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:10px 0 9px}.dashboard .project-name{padding:0;border:0;background:none;font-size:20px;font-weight:550;letter-spacing:-.4px;color:#f2eaf9;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-owner{font-size:12px!important;color:#a297ad!important;margin:0 0 18px!important}.project-date{font-size:11px!important;color:#85788f!important;margin:0!important}.project-menu{position:relative}.project-menu summary{list-style:none;cursor:pointer;color:#ac9cba;padding:6px;font-size:13px}.project-menu summary::-webkit-details-marker{display:none}.project-menu>div{position:absolute;right:0;top:30px;z-index:10;background:#21192b;border:1px solid #ffffff20;padding:5px;border-radius:9px;min-width:145px;box-shadow:0 12px 35px #0006}.project-menu:not([open])>div{display:none}.project-menu button{display:block;width:100%;border:0;background:none;text-align:left;font-size:12px;padding:10px}.project-menu button:hover{background:#ffffff08}.projects-empty{grid-column:1/-1;min-height:250px;display:grid;align-content:center;text-align:center;border:1px dashed #ffffff1a;border-radius:15px;color:#a99ab5}.projects-empty h2{font-size:22px;color:#e4d7ee}.dashboard .project-grid.is-list{grid-template-columns:1fr}.is-list .project{display:flex;align-items:center;gap:24px;padding:12px}.dashboard .is-list .project-thumb{width:160px;flex-shrink:0}.is-list .project-body{flex:1;padding:0}.is-list .project-owner{margin-bottom:8px!important}.is-list .project-heading{margin:5px 0}.dashboard>.terms{margin-top:35px}@media(max-width:1000px){.dashboard .project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.project-tools{align-items:stretch;flex-direction:column;gap:14px}.project-search{width:100%;max-width:none}.project-filters{justify-content:flex-end}}@media(max-width:600px){.dashboard{padding:30px 20px}.dashboard-title{align-items:flex-start;gap:14px}.dashboard h1{font-size:34px}.dashboard-description{font-size:13px}.dashboard .project-grid{grid-template-columns:1fr}.project-filters{gap:7px;justify-content:space-between}.project-filters select{font-size:10px;padding:9px 5px}.dashboard .is-list .project-thumb{width:90px}.dashboard .project-name{font-size:18px}}
#editor .panel-tabs{justify-content:space-between;color:#d6c6e2;font-size:12px}.assistant-status{color:#897a96;font-size:10px}#editor.workspace-mode-files .workspace-main{display:block}#editor #file-workspace{height:100%;display:grid;grid-template-columns:190px minmax(0,1fr);background:#121017}#file-list{padding:17px 10px;border-right:1px solid #ffffff10;overflow:auto}#file-list button{display:block;width:100%;text-align:left;border:0;background:none;font-size:12px;padding:10px;color:#a89bb4;margin-bottom:3px;overflow-wrap:anywhere}#file-list button.active{background:#8a5bc521;color:#d5b7f5}.file-editor{display:flex;flex-direction:column;min-width:0;min-height:0}#file-label{height:44px;padding:14px 20px;font-size:11px;color:#ac96bd;border-bottom:1px solid #ffffff0b}#editor #file-content{width:100%;height:100%;min-height:0;flex:1;resize:none;border:0;border-radius:0;padding:22px;background:#15111b;color:#d8c7e6;font:12px/1.8 Consolas,monospace;tab-size:2;white-space:pre;overflow:auto}#editor .workspace-actions>#publish{background:#8750d2;color:white;padding:8px 14px;border-radius:8px}#editor .workspace-actions>#save{background:transparent;color:#b5a2c4;margin-left:0}#editor #canvas-loading{pointer-events:none;background:#f0ebf5d9}#editor .canvas-wrap[hidden]{display:none!important}.agent-dialog select{display:block;width:100%;padding:12px;margin:12px 0;background:#21172c;border:1px solid #6d4c88;color:white;border-radius:8px}.agent-dialog>a{display:inline-block;background:#8750d2;color:white;padding:12px 16px;border-radius:8px;margin-right:12px}@media(max-width:800px){#editor #file-workspace{grid-template-columns:120px minmax(0,1fr)}#file-list button{font-size:10px;padding:9px 6px}#editor #file-content{font-size:11px;padding:12px}#editor .workspace-actions>#publish{font-size:11px;padding:8px 10px}}
.dashboard .project>.project-body{display:block}.dashboard .project-badge{width:max-content;min-height:0}.dashboard .project-body .project-heading{display:flex}.project-filters select{min-width:150px}html{scrollbar-width:none}html::-webkit-scrollbar,body::-webkit-scrollbar{display:none}@media(max-width:600px){.project-filters select{min-width:0}}
.project-menu a{display:block;padding:10px;font-size:12px;color:#d4b7ec;white-space:nowrap}.project-menu a:hover{background:#ffffff08}

/* Separate workspace windows: toolbar, assistant, and preview. */
#editor:not([hidden]){box-sizing:border-box;display:flex;flex-direction:column;gap:12px;height:100dvh;padding:12px;background:radial-gradient(ellipse at 60% 0,#25173455,transparent 65%),#0c0b10}
#editor .editor-top{flex-shrink:0;border:1px solid #69517b59;border-radius:14px;background:#17131de8;box-shadow:0 8px 26px #0002}
#editor .editor-grid{flex:1;height:auto;min-height:0;gap:12px;background:transparent}
#editor .left-panel{min-height:0;border:1px solid #69517b59;border-radius:14px;background:#15111b;box-shadow:0 8px 26px #0002}
#editor .workspace-main{min-height:0;border:1px solid #69517b59;border-radius:14px;grid-template-rows:40px minmax(0,1fr);box-shadow:0 8px 26px #0002}
#editor .preview-window-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 17px;grid-column:1/-1;grid-row:1;background:#17131d;color:#d9cbe3;border-bottom:1px solid #69517b40;font-size:12px}
#editor .preview-window-title{font-size:12px;font-weight:500}.preview-window-indicator{width:6px;height:6px;border-radius:50%;background:#ae85de;box-shadow:0 0 12px #ac78e855}
#editor .canvas-wrap,#editor #file-workspace{grid-row:2}#editor .canvas-wrap{border-radius:0 0 13px 13px}
@media(max-width:1000px){#editor:not([hidden]){padding:8px;gap:8px}#editor .editor-grid{gap:8px}#editor .editor-top{border-radius:12px}#editor .left-panel,#editor .workspace-main{border-radius:12px}}
