.ix-page{max-width:1440px;margin:auto;padding:30px 32px 36px}.ix-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:22px}.ix-back{font-size:13px;color:#58798b;text-decoration:none}.ix-heading h1{font-size:30px;letter-spacing:-1px;margin:10px 0 6px;color:#173b4b}.ix-heading h1 span{font-size:12px;font-weight:500;letter-spacing:0;background:#e5eff4;border:1px solid #d1e3ea;padding:5px 9px;border-radius:8px;margin-left:12px;vertical-align:middle}.ix-heading p{font-size:14px;color:#6a8594;margin:0}.ix-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;align-items:start;margin-top:24px}.ix-conversation{background:rgba(255,255,255,.92);border:1px solid #dce8ed;border-radius:22px;box-shadow:0 14px 40px #29465c08;display:flex;flex-direction:column;min-height:650px;height:calc(100dvh - 270px);max-height:1000px;overflow:hidden}.ix-chat-top{display:flex;align-items:center;gap:12px;padding:18px 24px;border-bottom:1px solid #e9f0f4}.ix-agent-orb{display:grid;place-items:center;width:40px;height:40px;background:linear-gradient(135deg,#d7f3f3,#e7e6ff);color:#157c98;font-size:25px;border-radius:14px}.ix-chat-top strong{font-size:14px}.ix-chat-top small{display:block;font-size:11px;color:#8da1b1;margin-top:3px}.ix-live-dot{margin-left:auto;width:7px;height:7px;border-radius:50%;background:#6bbca7;box-shadow:0 0 0 5px #f0f8f5}.ix-feed{flex:1;overflow-y:auto;overscroll-behavior:contain;scroll-behavior:auto;min-height:220px;padding:26px}.ix-message{margin-bottom:25px;max-width:94%;overflow-wrap:anywhere}.ix-message>small{color:#8199a8;font-size:11px}.ix-message>p{font-size:14px;line-height:1.85;color:#314e60;white-space:pre-wrap;margin:9px 0}.ix-message.user{background:#eef5f8;border:1px solid #dfedf3;border-radius:16px 16px 4px 16px;padding:8px 17px;margin-left:auto;width:fit-content;max-width:85%}.ix-message.user>p{margin:0}.ix-composer{padding:16px 22px 18px;border-top:1px solid #e5edf2;background:#fbfdfe}.ix-composer textarea{width:100%;resize:vertical;min-height:78px;max-height:200px;border:0;outline:none;background:transparent;font:14px/1.7 inherit;color:#284c5e;padding:4px}.ix-composer textarea:focus-visible{outline:2px solid #90c6d5;border-radius:8px;outline-offset:3px}.ix-composer>div{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:10px}.ix-composer small{font-size:11px;line-height:1.5;color:#8a9eaa;max-width:400px}.ix-composer .error:empty{display:none}.ix-side{display:grid;gap:16px}.ix-panel{padding:22px;border:1px solid #dce7ed;background:#ffffffd9;border-radius:18px;min-width:0}.ix-panel h2{font-size:14px;margin:0 0 14px;color:#33586c}.ix-panel p{font-size:12px;line-height:1.75;color:#6a8494;overflow-wrap:anywhere}.ix-panel>strong{font-size:14px;display:block;overflow-wrap:anywhere}.ix-panel small{display:block;font-size:11px;line-height:1.65;color:#8a9fab;margin-top:12px}.ix-panel-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}.ix-panel-title h2{margin:0}.ix-status{display:inline-block;color:#7e92a1;background:#eef3f6;border-radius:6px;padding:4px 7px;font-size:10px;line-height:1.4;max-width:65%}.ix-status.succeeded{background:#e8f7f0;color:#28886b}.ix-status.draft{background:#e9f2fb;color:#4486b6}.ix-status.failed{background:#fcf0ed;color:#b46758}.ix-connection-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.ix-connection-actions .button{font-size:12px;padding:10px 13px}.ix-guide{font-size:12px;line-height:1.8;color:#607d8e;margin-top:18px}.ix-guide summary{cursor:pointer;color:#497083}.ix-guide ol{padding-left:17px;margin-bottom:0}.ix-guide li{margin:10px 0;overflow-wrap:anywhere}.ix-code-label{display:block;font-size:11px;color:#5a8196;margin:15px 0 8px}.ix-code{display:flex;gap:6px}.ix-code input{width:100%;min-width:0;border:1px solid #cbdfe9;border-radius:7px;padding:7px;font:11px monospace;color:#36677f;background:#f5fafb}.ix-code button{padding:5px;font-size:11px}.ix-frame-symbol{width:42px;height:42px;display:grid;place-items:center;color:#739faf;background:#edf5f8;border-radius:11px;margin:4px 0 12px}.ix-results img{max-height:240px;width:100%;object-fit:contain;border-radius:10px;background:#eef4f7}.ix-empty-grid{height:110px;border:1px dashed #cfdee7;border-radius:12px;display:grid;place-items:center;background:radial-gradient(#d4e5ed 1px,transparent 1px);background-size:12px 12px;color:#94b2c1}.ix-empty-grid span{font-size:37px;background:#f8fbfd}.ix-proposal{border:1px solid #d8e7ee;border-radius:15px;padding:16px;margin:16px 0;background:#fbfdfe}.ix-proposal-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:13px}.ix-proposal p{font-size:12px;color:#6a8494;line-height:1.6}.ix-proposal ul{padding-left:20px;font-size:12px;line-height:1.8}.ix-proposal details{margin-top:14px;font-size:12px;cursor:pointer}.ix-proposal code{background:#edf3f6;padding:2px 4px;border-radius:4px}.ix-proposal-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:16px}.ix-proposal-actions .button{font-size:12px}.ix-draft-preview{background:#eaf0f4;padding:16px;border-radius:10px;margin-top:14px;text-align:center}.ix-sketch{max-height:330px;max-width:100%;display:block;margin:auto;box-shadow:0 8px 20px #35516614}.ix-result-image{max-width:100%;max-height:420px;object-fit:contain;display:block;margin:16px auto;border-radius:8px}.ix-thinking{font-size:13px;color:#4393a7}.ix-page button:disabled{cursor:wait;opacity:.55}.ix-page .project-tabs{overflow-x:auto;white-space:nowrap}.ix-page .quiet-button{white-space:normal}.ix-heading .button{flex-shrink:0}.ix-page .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
#app:has(.ix-page){width:100%;max-width:1504px;padding:0}.ix-page{padding-top:24px}.ix-heading{margin-bottom:16px}.ix-layout{margin-top:18px}.ix-conversation{min-height:380px;height:calc(100dvh - 292px)}.ix-side{max-height:calc(100dvh - 292px);overflow:auto;scrollbar-width:thin;padding-right:4px}.ix-feed{min-height:100px}.ix-composer textarea{font-family:inherit;font-size:14px;line-height:1.7}.ix-guide form{display:grid;gap:9px;margin-top:14px}.ix-guide input{width:100%;padding:9px;border:1px solid #cedfe7;border-radius:7px;color:#365365;background:#fff}.ix-guide label{font-size:11px}.ix-guide .button{font-size:12px}.ix-guide input:focus-visible{outline:2px solid #90c6d5}
@media(min-width:1500px){.ix-layout{grid-template-columns:minmax(0,1fr) 380px}.ix-heading h1{font-size:34px}}
@media(max-width:1000px){.ix-page{padding:24px 20px}.ix-layout{grid-template-columns:minmax(0,1fr) 300px;gap:16px}.ix-panel{padding:17px}.ix-heading{align-items:flex-start}.ix-heading h1{font-size:26px}}
@media(max-width:760px){.ix-page{padding:20px 14px}.ix-heading{display:block}.ix-heading>.button{margin-top:16px}.ix-layout{display:flex;flex-direction:column}.ix-conversation{width:100%;min-height:550px;height:70dvh}.ix-side{width:100%}.ix-feed{padding:18px}.ix-message{max-width:100%}.ix-composer{padding:15px}.ix-composer>div{align-items:flex-end}.ix-composer small{max-width:180px}.ix-heading h1{font-size:25px}.ix-chat-top{padding:16px}.ix-proposal-actions .button{width:100%}}
@media(max-width:760px){.ix-side{max-height:none;overflow:visible;padding-right:0}}

/* Use the same conversation and composer components as the ID workspace.
   Only the middle grid row scrolls; growing replies cannot displace the input. */
body:has(.ix-page)>header{min-height:64px;padding-inline:28px;background:#ffffffc9}
#app:has(.ix-page){width:100%;max-width:1920px;height:calc(100dvh - 64px);min-height:560px;padding:14px 24px 20px}
.ix-page{display:flex;flex-direction:column;width:100%;max-width:none;height:100%;min-height:0;padding:0}
.ix-page>.design-project-bar{flex-shrink:0;margin-bottom:6px}
.ix-page .work-project-name{margin:0;font-size:11px;overflow-wrap:anywhere}
.ix-page>.project-tabs{flex-shrink:0;margin-bottom:14px;padding-bottom:9px;gap:6px}
.ix-page .project-tabs a{padding:7px 12px}
.ix-layout{flex:1;min-height:0;margin-top:0;align-items:stretch;grid-template-columns:minmax(0,1fr) clamp(310px,29vw,440px);gap:18px}
.ix-conversation{display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-width:0;min-height:0;height:100%;max-height:none;border-radius:18px;background:#fff}
.ix-chat-top{padding:16px 25px;flex-shrink:0;background:linear-gradient(100deg,#fff,#f9fbff)}
.ix-chat-top .chat-avatar{background:#eaf0ff;border:1px solid #dce6ff;color:#315deb}
.ix-chat-top .conversation-identity strong{font-size:15px;font-weight:650}
.ix-feed{min-height:0;min-width:0;padding:26px clamp(20px,4vw,64px);overflow-y:auto;overflow-anchor:auto;scrollbar-width:thin}
.ix-feed .workspace-message:last-child{margin-bottom:4px}
.ix-feed .pending-message{padding-bottom:12px}
.ix-composer-area{min-width:0;padding-top:12px;background:#fff;border-top:1px solid #edf1f4}
.ix-composer-area .workspace-error{max-height:64px;overflow:auto;overflow-wrap:anywhere}
.workspace-composer.ix-composer{margin:0 20px 16px;padding:12px 14px;border:1px solid #cfdde9;border-radius:14px;background:#fff}
.workspace-composer.ix-composer:focus-within{border-color:#89a8f7}
.ix-composer textarea{display:block;min-height:72px;max-height:180px;padding:4px;resize:vertical;font-family:inherit;font-size:14px;line-height:1.7;color:var(--ink)}
.ix-composer textarea:disabled{opacity:1;color:var(--muted);-webkit-text-fill-color:var(--muted);cursor:wait}
.ix-composer textarea:focus-visible{outline:none}
.ix-composer>.composer-tools{gap:10px;margin-top:8px;align-items:center}
.ix-composer .composer-hint{min-width:0}
.ix-composer .composer-attach{border-color:transparent;padding:3px 0}
.ix-composer #ixReference{display:block;margin:0 0 10px}
.ix-composer #ixReference:empty{display:none}
.ix-side{height:100%;min-height:0;max-height:none;align-content:start;overflow:auto;overscroll-behavior:contain}
@media(max-width:1000px){
  .ix-layout{grid-template-columns:minmax(0,1fr) 290px;gap:14px}
  .ix-chat-top{padding:14px 18px}.ix-feed{padding:22px}
  .workspace-composer.ix-composer{margin-inline:16px}
}
@media(max-width:760px){
  #app:has(.ix-page){height:auto;min-height:0;padding:12px 14px 20px}
  .ix-page{height:auto}.ix-layout{gap:16px}
  .ix-conversation{height:calc(100dvh - 185px);min-height:460px;flex-shrink:0}
  .ix-feed{padding:20px 18px}.ix-feed .workspace-message.user{max-width:92%}
  .ix-side{height:auto;overflow:visible;padding:0}
  .ix-composer>.composer-tools{align-items:center}
  .workspace-composer.ix-composer{margin:0 12px 12px;padding:10px 12px}
  .ix-composer textarea{max-height:130px}
}

/* Keep the sync state on the original design preview instead of repeating it. */
.ix-preview-art{position:relative;display:inline-block;max-width:100%;vertical-align:top}
.ix-preview-art>a{display:block;line-height:0;border-radius:8px}
.ix-preview-art>a:focus-visible{outline:3px solid #65bba1;outline-offset:4px}
.ix-preview-art .ix-result-image{margin:0;max-height:330px}
.ix-synced-badge{position:absolute;right:8px;bottom:8px;max-width:calc(100% - 16px);display:inline-flex;align-items:center;gap:6px;padding:5px 9px 5px 5px;border:1px solid #b9e3d3;border-radius:999px;background:#effbf5;color:#146849;box-shadow:0 3px 12px #153e2e26;font-size:11px;font-weight:700;line-height:1.3;text-align:left;overflow-wrap:anywhere}
.ix-synced-check{display:grid;flex:0 0 20px;place-items:center;width:20px;height:20px;border-radius:50%;background:#23966b;color:white}
.ix-synced-check svg{width:13px;height:13px;stroke:currentColor;stroke-width:2.5;fill:none}
@media(max-width:760px){.ix-draft-preview{padding:10px}.ix-synced-badge{right:6px;bottom:6px;font-size:10px}.ix-preview-art .ix-result-image,.ix-sketch{max-width:100%;height:auto}}
