/* Project use and authoring share a quiet shell, not a version-management UI. */
.project-chat-tabs{display:flex!important;gap:8px;margin-bottom:12px;flex:none}.project-chat-tabs button{border:0;padding:8px 14px;background:#edf1f7;color:#69809f}.project-chat-tabs .selected{background:#dae7fc;color:#2453a4}
.project-panes.chat-first:not(.preview-open){display:flex;flex-direction:column}.project-panes.chat-first:not(.preview-open)>.project-preview{display:none}.project-panes.chat-first:not(.preview-open)>.cw-conversation{flex:1}
.project-panes.chat-first:not(.preview-open) #st-messages{padding:24px max(18px,calc((100% - 780px)/2))}.project-panes.chat-first:not(.preview-open) .cw-message{font-size:14px}.project-panes.chat-first .cw-message.user{max-width:85%}
.cw-deliverable{border:1px solid #dce5f1;border-radius:12px;padding:16px;margin:16px 0;background:#f7faff;font-size:13px;line-height:1.8;overflow-wrap:anywhere}.cw-deliverable p{color:#65758c;margin:8px 0;white-space:pre-wrap}.cw-deliverable .tool-downloads{display:flex;align-items:flex-start;flex-direction:column;gap:8px}.cw-deliverable a{max-width:100%;white-space:normal}.cw-deliverable summary{cursor:pointer}
.project-panes{display:grid;grid-template-columns:minmax(300px,.9fr) minmax(350px,1.1fr);gap:20px;flex:1;min-height:0;overflow:hidden}
.project-panes>.cw-conversation,.project-preview{min-width:0;min-height:0;display:flex;flex-direction:column;background:#fff;border:1px solid #e1e7ef;border-radius:14px;overflow:hidden}
.project-pane-title{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px 16px;border-bottom:1px solid #edf0f5;flex:none;font-size:13px;color:#536782}
.project-pane-title button{padding:5px 8px;border:0;background:transparent;color:#5479b3;font-size:12px}.project-pane-title>div{display:flex;gap:3px}
.project-edit .cw-editor-head,.project-use .cw-editor-head{flex:none;margin-bottom:18px}
.cw-editor-head .cw-back{display:inline-flex;align-items:center;justify-content:center;gap:7px;width:auto;height:36px;padding:0 11px;font-size:12px!important;font-weight:500;line-height:1;border:1px solid #dce4ef;border-radius:9px;background:#fff;color:#51647f;white-space:nowrap;box-sizing:border-box}.cw-back svg{width:17px;height:17px;flex:none}.cw-back:hover{background:#f0f5fc;border-color:#bdcde3;color:#2458a9}.cw-back:focus-visible{outline:2px solid #5689d5;outline-offset:3px}.cw-more>div{width:172px}.cw-more .cw-menu-danger{border-top:1px solid #edf0f5;margin-top:4px;padding-top:12px;color:#b44444}.cw-more button:hover{background:#f4f7fc;border-radius:6px}
.cw-lifecycle-mask[hidden]{display:none}.cw-lifecycle-mask .wsx-dialog{width:min(560px,calc(100vw - 32px));box-sizing:border-box}.cw-lifecycle-mask .cw-action-name{font-weight:600;color:#263b58;font-size:16px;margin-bottom:12px}.cw-dialog-note{font-size:13px;line-height:1.7;color:#7a879b}.cw-trash-list{max-height:55vh;overflow:auto}.cw-trash-list article>div{overflow-wrap:anywhere}.cw-trash-empty{padding:36px 12px;text-align:center;color:#8593a8}.cw-impact-list{max-height:38vh;overflow:auto}.cw-impact details{margin:16px 0;font-size:13px}.cw-impact summary{cursor:pointer;color:#657c9d}.cw-text-danger{color:#b44444!important}.cw-lifecycle-mask .cw-danger-primary{background:#b84a4a!important;border-color:#b84a4a!important}.cw-lifecycle-mask .wsx-actions{justify-content:flex-end}
@media(max-width:600px){.cw-editor-head{flex-wrap:wrap}.cw-editor-head .cw-back{height:32px;padding:0 9px}.cw-editor-head>div:nth-child(2){flex:1;min-width:130px}.cw-editor-head .cw-head-actions{margin-left:auto}.cw-trash-list article{gap:8px}.cw-trash-list article>div{flex-basis:100%}}
.project-panes .cw-artifact{margin:0;padding:16px;border:0;border-radius:0;min-height:0;flex:1;overflow:auto}
.project-panes .cw-conversation #st-messages{padding:18px;flex:1;min-height:0;overflow:auto}
.project-panes .cw-compose-wrap{padding:0 12px 8px;flex:none}.project-panes .cw-compose{padding:12px}.project-panes .cw-compose textarea{min-height:70px}
.project-panes .cw-message{max-width:100%;margin-bottom:22px;font-size:13px}.project-panes .cw-welcome{padding:40px 10px}.project-panes .cw-welcome h2{font-size:20px}
.project-panes.expanded{grid-template-columns:1fr}.project-panes.expanded>.cw-conversation{display:none}
.project-runtime{min-height:0;overflow:auto;flex:1;border:1px solid #e1e7ef;background:white;border-radius:14px;padding:22px}
.project-runtime>.tool-use{max-width:1250px;margin:auto}.project-runtime .tool-use-frame{min-height:65vh}
.project-mobile-tabs{display:none}.project-agent{display:flex;flex-direction:column;min-height:500px;height:100%;max-width:1050px;margin:auto}
.pa-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#7a889c;flex-wrap:wrap;flex:none}.pa-toolbar>div{display:flex;gap:6px}.pa-toolbar button{background:#f7f9fc;border:1px solid #e4eaf3;padding:6px 10px}
.pa-steps{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 9px;flex:none;max-height:120px;overflow:auto}.pa-steps:empty{display:none}.pa-steps button{display:inline-flex;align-items:center;gap:7px;background:white;color:#466a9d;border:1px solid #d4e0f1;border-radius:20px;padding:5px 11px 5px 5px;font-size:12px;text-align:left}.pa-steps button:hover{background:#f2f6fd;border-color:#a8bfdf}.pa-step-number{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;flex:none;border-radius:50%;background:#2e61cf;color:white;font-size:12px}
.pa-description{font-size:12px;color:#8190a5;line-height:1.7;margin:10px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;flex:none}.pa-description[hidden]{display:none}.pa-config-content{max-height:55vh;overflow:auto}.pa-config-content h3{font-size:14px;margin:18px 0 8px}.pa-config-content pre{font-family:inherit;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;color:#52647d}
.pa-messages{flex:1;min-height:120px;overflow:auto;padding:14px 6px}.pa-messages .cw-message{font-size:14px;margin-bottom:24px}.pa-messages .cw-message>div{white-space:pre-wrap;overflow-wrap:anywhere}.pa-welcome{text-align:center;padding:50px 10px;color:#99a6b8}
.pa-composer{border:1px solid #dde5f1;border-radius:12px;padding:12px;flex:none}.pa-composer textarea{width:100%;border:0!important;outline:0;resize:vertical;min-height:65px;font:inherit;font-size:14px;box-sizing:border-box}.pa-composer>div{display:flex;align-items:center;gap:10px}.pa-composer label{cursor:pointer;color:#557bb7;font-size:12px}.pa-composer span{font-size:11px;color:#97a3b4}.pa-composer .pa-send{margin-left:auto;padding:8px 15px}
.project-panes .cw-compose,.project-agent .pa-composer{padding:10px 12px;border-radius:12px}
.project-panes .cw-compose textarea,.project-agent .pa-composer textarea{height:48px;min-height:48px;max-height:120px;line-height:1.6;padding:2px 3px;box-sizing:border-box;font-size:13px;resize:vertical;background:transparent;outline:none!important;box-shadow:none!important}
.project-agent .pa-composer:focus-within{border-color:#a2b9df}
.project-panes .cw-compose-bottom{margin-top:5px;gap:7px}
.creation-workbench .composer-icon,.project-agent .composer-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:34px;height:34px;padding:7px!important;border-radius:8px;box-sizing:border-box;cursor:pointer}
.composer-icon svg{width:20px;height:20px;pointer-events:none}.composer-icon:hover{background:#edf2fa}.composer-icon:has(input:focus-visible){outline:2px solid #86a6d1;outline-offset:2px}
.composer-icon input[type=file]{display:block!important;position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.cw-compose-bottom #st-send{margin-left:auto;min-width:34px}.pa-composer .pa-send[aria-busy=true]{opacity:.5;cursor:wait}
.project-panes .cw-compose-hint{margin:6px 0 0;font-size:10px}.project-panes #st-progress:empty{display:none}
.pa-error,.pa-changed{font-size:12px;color:#a35c36;line-height:1.7;margin:8px 0}.pa-error:empty,.pa-files:empty{display:none}.pa-files{font-size:11px;color:#7385a0;padding:7px 0}.pa-history{max-height:220px;overflow:auto;border:1px solid #e1e8f3;border-radius:9px;margin-top:10px}.pa-history button{display:flex;justify-content:space-between;gap:10px;width:100%;text-align:left;padding:10px;border:0;background:white;border-bottom:1px solid #edf0f5}.pa-history small{color:#8c9bb0;white-space:nowrap}
.cw-message>.md{white-space:normal;min-width:0;overflow-wrap:anywhere}.cw-message>.chat-plain{white-space:pre-wrap}.cw-message .md pre{white-space:pre;max-width:100%;overflow:auto}.cw-message .md table{display:block;max-width:100%;overflow:auto}.chat-interrupted{font-size:12px;color:#a35c36}.chat-live>small:after{content:' ·';animation:chat-pulse 1s infinite}@keyframes chat-pulse{50%{opacity:.3}}@media(prefers-reduced-motion:reduce){.chat-live>small:after{animation:none}}
@media(max-width:1100px){.project-panes{gap:12px;grid-template-columns:minmax(280px,1fr) minmax(300px,1fr)}.project-panes .cw-compose-bottom{flex-wrap:wrap}.project-panes .cw-compose-bottom #st-send{margin-left:auto}}
@media(max-width:760px){.project-mobile-tabs{display:flex;gap:8px;margin-bottom:12px;flex:none}.project-mobile-tabs button{border:0;padding:8px 14px;background:#edf1f7;color:#69809f}.project-mobile-tabs .selected{background:#dae7fc;color:#2453a4}.project-panes{display:flex;flex-direction:column;gap:0}.project-panes>.cw-conversation{flex:1}.project-panes>.project-preview{display:none;flex:1}.project-panes.mobile-preview>.cw-conversation,.project-panes.expanded>.cw-conversation{display:none}.project-panes.mobile-preview>.project-preview,.project-panes.expanded>.project-preview{display:flex}.project-panes .cw-artifact{padding:10px}.project-runtime{padding:12px}.project-agent{min-height:420px}.pa-toolbar{gap:8px}.pa-composer span{display:none}.cw-head-actions>button{font-size:12px;padding:7px}.project-pane-title{padding:10px}.pa-history button{flex-wrap:wrap}}
