:root{color-scheme:dark}.editor .e-stage{right:0!important}.resource-editor #content{max-width:1800px}.e-top-actions{font-size:11px;color:#aaa;gap:16px}.cloud-sync{font-size:10px;color:#89aa89}.resource-editor .resource-thumb{display:flex;align-items:center;justify-content:center;width:100%;cursor:pointer}.resource-editor .resource-thumb>img{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}.resource-card-info .pill{font-size:10px;white-space:nowrap;margin-top:3px}.cloud-file-icon{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;color:#999;height:100%;font-size:12px}.cloud-file-icon svg{width:30px;height:30px}.cloud-panel{border:1px solid #2a2a2a;background:#111;padding:26px;margin-bottom:24px;border-radius:3px}.cloud-panel h2{font-size:16px;margin:0 0 18px;color:#ddd}.cloud-panel p,.drawer p{font-size:12px;line-height:1.9;color:#aaa}.cloud-panel input,.cloud-panel select,.cloud-panel textarea,.drawer input,.drawer select,.drawer textarea,.auth input{background:#1a1a1a;color:#eee;border:1px solid #3a3a3a;border-radius:3px;padding:11px;width:100%;box-sizing:border-box;font:inherit;font-size:12px}.cloud-panel textarea,.drawer textarea{min-height:140px;resize:vertical}.cloud-panel label,.drawer label,.auth label{display:block;font-size:12px;color:#bbb;margin:18px 0 8px}.cloud-panel button,.drawer button{border-radius:3px}.cloud-panel .checkbox,.drawer .checkbox{display:flex;gap:8px;align-items:center}.checkbox input{width:auto;accent-color:#49d64a}.muted{font-size:11px!important;color:#929292!important}.prewrap{white-space:pre-wrap}.full{width:100%}.plain{background:transparent!important;border:0!important;text-align:left;padding-left:0!important}.danger{color:#c18f8f!important}.button-link{display:inline-block;padding:9px 12px;border:1px solid #444;border-radius:3px;color:#ddd;font-size:12px;text-decoration:none}.actions{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.primary{background:#49d64a!important;color:#102210!important;border-color:#49d64a!important}.cloud-preview{display:flex;align-items:center;justify-content:center;min-height:180px;max-height:500px;padding:20px;margin:20px 0;background:#1b1b1b;border:1px solid #303030}.cloud-preview img{max-width:100%;max-height:460px;object-fit:contain}.cloud-comments{margin:24px 0}.cloud-comments .feedback{border-left:2px solid #444;margin:14px 0;padding:3px 0 3px 14px}.cloud-comments .feedback small{font-size:10px;color:#888}.brand-color{display:flex;align-items:center;gap:12px;color:#aaa;font-size:12px;margin:20px 0}.brand-color i{width:32px;height:32px;border-radius:3px}.member-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid #292929;font-size:12px;color:#bbb}.member-row strong{display:block;font-weight:500}.member-row small{display:block;color:#999;margin-top:7px;font-size:11px}.member-row span{font-size:11px}.task-result{border-bottom:1px solid #303030;padding:16px 0}.task-result summary{cursor:pointer;font-size:12px;color:#ddd}.task-result summary small{display:block;color:#888;margin-top:8px;font-size:10px}.task-result pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.9 ui-monospace,monospace;color:#bbb;background:#0b0b0b;padding:20px;max-height:600px;overflow:auto}.auth{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#0b0b0b;padding:30px;box-sizing:border-box}.auth-card{width:360px;padding:36px;border:1px solid #303030;background:#121212;border-radius:4px}.auth-brand{font-size:15px;letter-spacing:3px;color:#ddd;margin-bottom:38px}.auth-card h1{font-size:24px;font-weight:500;color:#eee;margin:0 0 15px}.auth-card p{font-size:12px;color:#999;line-height:1.9}.auth-card button{margin-top:24px;border-radius:3px}.auth-card small{display:block;margin-top:25px;color:#888;line-height:1.8;font-size:11px}.form-error{color:#e0aaaa!important}.overlay[hidden]{display:none!important}.drawer{max-width:620px;width:100%;overflow:auto}button:disabled{opacity:.45;cursor:wait}#aiReferences{min-height:90px}#taskButton{margin-top:16px}.resource-table td,.resource-table th{text-align:left}input[type=color]{height:42px;max-width:90px}@media(max-width:720px){.cloud-sync{display:none}.e-top-actions{gap:9px}.auth-card{padding:25px}.cloud-panel{padding:18px}.member-row{flex-wrap:wrap}.resource-editor #content{padding:25px 18px}.cloud-panel .titlebar{display:block}}
.workflow-layout{display:grid;grid-template-columns:minmax(280px,380px) minmax(0,1fr);gap:24px;align-items:start}.workflow-layout>section{min-width:0}.workflow-layout form small{display:block;color:#999;font-size:12px;line-height:1.6;margin:10px 0 18px}.workflow-layout textarea{min-height:130px}.workflow-result{padding:24px 0;border-top:1px solid #303030}.workflow-result:first-child{border-top:0;padding-top:8px}.workflow-result h3{font-size:15px;line-height:1.5;max-width:75%;margin:0}.workflow-steps{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0;font-size:11px;color:#888}.workflow-steps span{padding:5px 8px;background:#222;border-radius:4px}.workflow-steps .done{color:#49D64A}.generated-screens{display:flex;gap:16px;overflow:auto;background:#151515;padding:20px;align-items:flex-start}.design-preview{flex-shrink:0;overflow:hidden;box-shadow:0 0 0 1px #333}.design-node{position:absolute;box-sizing:border-box;overflow:hidden}.generated-image{width:100%;max-height:620px;object-fit:contain;display:block;background:#111}.workflow-result details{margin-top:18px;font-size:12px;color:#aaa;line-height:1.7}.workflow-result .actions{margin-top:18px;flex-wrap:wrap}.workflow-empty{padding:50px 15px;color:#ccc;text-align:center}.workflow-empty p{font-size:12px;color:#888}.mini-design{pointer-events:none;max-height:220px;overflow:hidden;justify-content:center;padding:0}.mini-design .design-preview{transform:scale(.6);transform-origin:top center;margin-bottom:-220px}.drawer li{margin:12px 0;line-height:1.7}.drawer a{color:#49D64A}.workflow-layout [hidden]{display:none!important}@media(max-width:1000px){.workflow-layout{grid-template-columns:1fr}.workflow-layout>section{width:100%}}
.reference-zone{border:1px dashed #4a4a4a;background:#161616;border-radius:8px;padding:16px;margin-bottom:12px;outline:none;transition:border-color .15s,background .15s}.reference-zone:focus,.reference-zone:focus-within,.reference-zone.drag-over{border-color:#49D64A;background:#1b241b}.reference-drop-hint{display:flex;flex-direction:column;align-items:center;text-align:center;gap:9px;padding:8px 2px}.reference-drop-hint strong{font-size:12px;font-weight:500;line-height:1.7;color:#ddd}.reference-drop-hint small{color:#777!important;margin:0!important;font-size:11px!important}.reference-drop-hint button{margin-top:3px;font-size:11px}.reference-items:empty{display:none}.reference-item{position:relative;border:1px solid #333;background:#111;border-radius:6px;padding:10px;display:grid;grid-template-columns:52px 1fr 24px;gap:10px;align-items:center;margin-bottom:10px}.reference-item img{width:52px;height:64px;object-fit:contain;background:#252525}.reference-item span{overflow:hidden;text-overflow:ellipsis;font-size:11px;color:#aaa}.reference-item button{padding:4px 7px}.reference-help{font-size:11px!important;color:#888!important;line-height:1.6!important;margin:0 0 18px!important}.space-references{color:#aaa;font-size:11px;margin:16px 0}.reference-library{max-height:220px;overflow:auto}.reference-library button{display:flex;align-items:center;gap:10px;margin-top:8px;text-align:left;max-width:100%}.reference-library img{width:35px;height:35px;object-fit:contain}.reference-zone input[hidden]{display:none!important}.style-token-note{font-size:11px;color:#49D64A;display:flex;align-items:center;gap:10px}
.task-purpose{font-size:12px;line-height:1.7;color:#c5c5c5;padding:12px 14px;border-left:2px solid #49D64A;background:#191919;margin:14px 0 20px}.check-report{margin-top:18px;padding:16px;background:#161616;border:1px solid #303030;border-radius:6px}.check-report h4{margin:0 0 12px;font-size:13px;font-weight:500}.check-report details{margin-top:12px}.check-report li{margin:12px 0;line-height:1.7;overflow-wrap:anywhere}.check-report li strong{color:#ddd;font-weight:500}.check-report li p{color:#aaa;margin:5px 0}.check-report li span{color:#bbb}.check-report ol,.check-report ul{padding-left:22px}.change-summary{font-size:12px;color:#ddd;background:#1b1b1b;padding:12px;margin-top:14px}.change-summary small{display:block;color:#888;margin-top:7px}.measurement-note{font-size:12px;color:#a5a5a5;padding:10px 0;margin-bottom:0}.workflow-result .sectionhead h3{max-width:80%;overflow-wrap:anywhere}.workflow-result .pill{white-space:nowrap}
.task-mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0 16px}.task-mode-grid button{padding:12px 8px;font-size:12px;border:1px solid #383838;border-radius:5px;background:#1b1b1b;color:#aaa;min-height:44px}.task-mode-grid button[aria-pressed=true]{border-color:#49D64A;color:#e5e5e5;background:#202820}.task-mode-grid button:hover{border-color:#777}#taskKind[hidden]{display:none!important}
/* This workspace contains long forms and lists, so its stage scrolls vertically. */
.resource-editor .e-stage{overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#555 #111;-webkit-overflow-scrolling:touch}
.resource-editor .e-stage>#content{box-sizing:border-box;min-height:100%}
.resource-editor .e-stage::-webkit-scrollbar{width:9px}
.resource-editor .e-stage::-webkit-scrollbar-track{background:#111}
.resource-editor .e-stage::-webkit-scrollbar-thumb{background:#555;border:2px solid #111;border-radius:8px}
