:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#172033;background:#f4f6f9;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled,input:disabled,textarea:disabled{cursor:not-allowed;opacity:.62}a{color:inherit;text-decoration:none}.brand{display:inline-flex;align-items:center;gap:11px;font-size:15px;font-weight:750}.brand-mark{display:grid;width:38px;height:38px;place-items:center;border-radius:11px;color:#fff;background:linear-gradient(145deg,#5663e8,#7b65d8);box-shadow:0 10px 30px #5361db2b}.eyebrow{margin:0;color:#7e8494;font-size:10px;font-weight:800;letter-spacing:.14em}.auth-page{min-height:100vh;display:grid;grid-template-columns:minmax(360px,.9fr) minmax(480px,1.1fr)}.auth-intro{display:flex;flex-direction:column;justify-content:space-between;min-height:100vh;padding:42px 8vw 38px;color:#fff;background:radial-gradient(circle at 15% 10%,#39467c 0,transparent 42%),#11172a}.auth-intro h1{max-width:610px;margin:14px 0 18px;font-size:clamp(36px,4vw,60px);line-height:1.04;letter-spacing:-.045em}.auth-intro .eyebrow{color:#aeb8df}.intro-copy{max-width:520px;margin:0;color:#c4cada;font-size:16px;line-height:1.65}.intro-footnote{margin:0;color:#8992aa;font-size:12px}.auth-panel{display:grid;min-height:100vh;padding:40px;place-items:center;background:#f6f7fa}.auth-card{width:min(100%,430px)}.auth-card header{margin:38px 0 30px}.auth-card h2{margin:9px 0 8px;font-size:32px;letter-spacing:-.035em}.auth-card header p:last-child{margin:0;color:#72798a;font-size:14px}.mode-switch{display:grid;grid-template-columns:1fr 1fr;padding:4px;border:1px solid #dfe3eb;border-radius:12px;background:#eceff4}.mode-switch button{padding:10px;border:0;border-radius:9px;color:#737b8d;background:transparent;font-weight:700}.mode-switch button.active{color:#25304a;background:#fff;box-shadow:0 3px 10px #222a3c12}.auth-card form{display:grid}.auth-card label{margin:0 0 8px;font-size:12px;font-weight:750}.auth-card input{width:100%;margin:0 0 19px;padding:13px 14px;border:1px solid #d7dce6;border-radius:10px;outline:none;color:#182136;background:#fff}.auth-card input:focus,.composer:focus-within{border-color:#6672df;box-shadow:0 0 0 3px #6672df1f}.primary-button,.send-button{border:0;border-radius:10px;color:#fff;background:#5362db;font-size:13px;font-weight:750;transition:transform .15s ease,background .15s ease}.primary-button{margin-top:5px;padding:14px}.primary-button:hover:not(:disabled),.send-button:hover:not(:disabled){background:#4554cf;transform:translateY(-1px)}.notice{padding:11px 13px;border-radius:9px;font-size:12px;line-height:1.45}.notice.error{margin-bottom:14px;border:1px solid #efc9ca;color:#9d353b;background:#fff2f2}.chat-page{height:100dvh;min-height:100vh;display:flex;flex-direction:column;overflow:hidden;background:#f3f5f8}.topbar{position:relative;z-index:2;display:flex;flex:0 0 68px;height:68px;padding:0 28px;align-items:center;justify-content:space-between;border-bottom:1px solid #e1e4ea;background:#ffffffeb;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.account{display:flex;align-items:center;gap:10px;color:#626a7b;font-size:12px}.online-dot{width:7px;height:7px;border-radius:50%;background:#39af7d;box-shadow:0 0 0 4px #39af7d1c}.secondary-button{padding:8px 11px;border:1px solid #dce0e8;border-radius:8px;color:#4f586b;background:#fff;font-size:11px;font-weight:700}.chat-shell{flex:1 1 auto;display:grid;grid-template-columns:220px minmax(320px,34%) minmax(0,1fr);min-height:0;height:100%;width:100%;margin:0 auto}.chat-sidebar{min-height:0;overflow-y:auto;padding:26px 18px;border-right:1px solid #e0e3e9}.project-nav{display:grid;gap:4px;margin-bottom:28px}.project-nav-item{border:0;border-radius:8px;padding:9px 10px;text-align:left;color:#687184;background:transparent;font-size:12px}.project-nav-item.active,.project-nav-item:hover{color:#29334d;background:#fff;box-shadow:0 4px 14px #1b243808}.sidebar-heading{display:grid;gap:14px}.new-conversation-button{width:100%;padding:11px 13px;border:0;border-radius:10px;color:#fff;background:#5362db;font-size:12px;font-weight:750}.conversation-list{display:grid;gap:7px;margin-top:18px}.conversation-item{display:grid;width:100%;gap:5px;padding:11px 12px;overflow:hidden;border:1px solid transparent;border-radius:10px;text-align:left;color:#4f586b;background:transparent}.builder-panel{display:flex;flex-direction:column;gap:14px;min-width:0;min-height:0;overflow-y:auto;padding:26px 24px 22px;background:#fff}.builder-panel>header,.builder-panel>label,.builder-panel>.builder-workspace-meta,.builder-panel>.recent-projects{display:none!important}.legacy-builder-header,.legacy-project-selector{display:none!important}.builder-panel>.builder-preview{flex:1 1 auto;min-height:0}.builder-deployment{display:grid;gap:10px;padding:16px;border:1px solid #e1e5ed;border-radius:12px;background:#fbfcff}.builder-deployment-heading,.builder-deployment-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}.builder-deployment-heading p{margin:0 0 3px}.builder-deployment-heading strong{color:#172033}.deployment-status{padding:4px 8px;border-radius:999px;font-size:10px;font-weight:800;letter-spacing:.04em}.deployment-status-live{color:#116b45;background:#dff6ea}.deployment-status-deploying{color:#805b00;background:#fff2c7}.deployment-status-failed{color:#a32727;background:#ffe2e2}.deployment-status-ready,.deployment-status-not-configured{color:#596579;background:#edf0f5}.builder-deployment-url{overflow:hidden;color:#5362db;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.preview-empty{display:grid;place-items:center;align-content:center;min-height:52vh;gap:10px;padding:48px 24px;text-align:center;color:#687184;background:#f8f9fc;border:1px dashed #dfe3ea;border-radius:14px}.preview-empty h2{margin:0;color:#172033;font-size:clamp(1.5rem,2.6vw,2.4rem)}.preview-empty p{margin:0}.preview-shell-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.preview-shell-header strong{color:#172033;font-size:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-context{flex:1;min-width:0;margin-left:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#172033;font-size:13px;font-weight:700}.sidebar-project-switcher{display:grid;gap:5px;margin-bottom:18px;color:#626a7b;font-size:11px;font-weight:700}.sidebar-project-switcher select{width:100%;min-width:0;padding:8px;border:1px solid #dce0e8;border-radius:8px;background:#fff;overflow:hidden;text-overflow:ellipsis}.new-project-button{border:0;padding:4px 0;text-align:left;color:#5362db;background:transparent;font-size:11px;font-weight:750}.project-selector-heading{display:flex;align-items:center;justify-content:space-between}.project-manage-button{border:0;padding:0;color:#687184;background:transparent;font-size:10px}.project-management{display:grid;gap:6px;padding-top:6px;border-top:1px solid #eceef3;font-size:10px}.project-management-row{display:flex;align-items:center;justify-content:space-between;gap:6px}.project-management-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-management-row button{border:0;color:#5362db;background:transparent;font-size:10px}.builder-panel.preview-focus{position:fixed;inset:68px 0 0;z-index:5;overflow:auto;padding:30px 5vw}.builder-panel.preview-focus .builder-preview{min-height:calc(100vh - 150px)}.builder-workspace-meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#64748b;font-size:.82rem;margin:.35rem 0 .75rem}.recent-projects{display:grid;gap:6px}.recent-projects>p{margin-bottom:2px}.recent-projects button{display:grid;gap:3px;padding:9px 10px;border:1px solid transparent;border-radius:8px;text-align:left;color:#4f586b;background:#f8f9fb}.recent-projects button.active,.recent-projects button:hover{border-color:#dfe3ed;background:#fff}.recent-projects strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.recent-projects span{color:#8a91a0;font-size:10px}.builder-preview-warning{border:1px solid #f3c969;border-radius:.6rem;color:#7c4a03;padding:.65rem .8rem}.builder-preview-warning p{margin:0}.builder-panel header,.builder-review>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.builder-panel header div{display:grid;gap:4px}.builder-panel label{display:grid;gap:6px;color:#626a7b;font-size:11px;font-weight:700}.builder-panel select{width:100%;padding:8px;border:1px solid #dce0e8;border-radius:8px;background:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.builder-files{display:grid;max-height:130px;gap:4px;overflow:auto;color:#596277;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px}.builder-proposals{display:grid;gap:6px}.builder-proposals>button{display:grid;gap:3px;padding:8px;border:1px solid #e0e3e9;border-radius:8px;text-align:left;background:#fff}.builder-proposals small,.builder-review p,.builder-review small{margin:0;color:#737b8d;font-size:10px}.builder-review{display:grid;gap:8px}.builder-review pre{max-height:240px;margin:0;padding:10px;overflow:auto;border-radius:8px;color:#dbe3ff;background:#171d2d;font-size:9px;line-height:1.45;white-space:pre-wrap}.builder-validations,.builder-validation-detail{display:grid;gap:.65rem}.builder-validations>button,.builder-validation-detail>div{display:grid;gap:.25rem;text-align:left}.builder-validation-detail pre{max-height:12rem;overflow:auto;white-space:pre-wrap}.builder-preview{display:flex;flex-direction:column;min-height:0;gap:.75rem;margin-top:.25rem;padding:1rem;border:1px solid var(--border, #d9deea);border-radius:.75rem;background:#fff}.preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:34px;flex-wrap:wrap}.preview-toolbar>div:first-child{display:flex;align-items:center;gap:10px;min-width:0;flex:1 1 auto}.preview-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}.builder-panel .preview-toolbar .preview-actions{display:flex;flex-direction:row;width:auto;min-width:0}.builder-panel .preview-toolbar .viewport-switch{display:inline-flex;flex-direction:row;width:auto;min-width:0}.status-pill{padding:5px 9px;border-radius:999px;color:#3f4cbd;background:#eef0ff;font-size:10px;font-weight:750}.viewport-switch{display:inline-flex;padding:2px;border:1px solid #e1e4eb;border-radius:8px;background:#f7f8fa}.viewport-switch button{border:0;border-radius:6px;padding:6px 8px;color:#70798b;background:transparent;font-size:10px}.viewport-switch button.active{color:#2e3b9a;background:#fff;box-shadow:0 2px 6px #202a3c14}.preview-viewport{display:flex;flex:1 1 auto;min-height:0;justify-content:center;background:#f4f6f9;padding:12px;border-radius:9px;overflow:hidden}.preview-viewport iframe{min-height:0;height:100%;transition:width .2s ease}.preview-viewport.desktop iframe{width:100%}.preview-viewport.tablet iframe{width:min(768px,100%)}.preview-viewport.mobile iframe{width:min(390px,100%)}.advanced-details{order:3;border-top:1px solid #e6e8ed;padding-top:10px}.advanced-details summary{cursor:pointer;color:#687184;font-size:11px;font-weight:750}.builder-preview iframe{width:100%;min-height:0;border:1px solid var(--border, #d9deea);border-radius:.5rem;background:#fff}.builder-review .primary-button{margin:0;padding:8px 10px}.conversation-item:hover,.conversation-item.active{border-color:#dfe3ed;color:#25304a;background:#fff}.conversation-item strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.conversation-item span,.sidebar-status,.history-status{color:#8a91a0;font-size:10px}.sidebar-status{margin:8px 2px;line-height:1.5}.assistant-card{display:flex;align-items:center;gap:12px;margin:13px 0 30px;padding:14px;border:1px solid #dfe3ed;border-radius:13px;background:#fff}.assistant-avatar{display:grid;width:40px;height:40px;place-items:center;border-radius:12px;color:#5965d9;background:#eef0ff;font-weight:800}.assistant-card strong,.assistant-card div span{display:block}.assistant-card strong{font-size:13px}.assistant-card div span{margin-top:3px;color:#45a57b;font-size:10px}.session-card{padding-top:25px;border-top:1px solid #e0e3e9}.session-card strong,.session-card span{display:block}.session-card strong{margin-top:12px;font-size:13px}.session-card span{margin-top:6px;color:#858c9b;font-size:11px;line-height:1.5}.conversation{display:flex;min-height:0;height:100%;min-width:0;flex-direction:column;padding:38px 48px 24px}.conversation-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.conversation-header h1{margin:8px 0 0;font-size:32px;letter-spacing:-.04em}.session-badge{padding:7px 10px;border-radius:999px;color:#657084;background:#e8ebf0;font-size:10px;font-weight:700}.messages{display:flex;overflow-y:auto;min-height:280px;min-width:0;flex:1;flex-direction:column;gap:19px;padding:42px 4px 28px}.empty-conversation{display:grid;max-width:390px;margin:auto;gap:8px;text-align:center;color:#687184}.empty-conversation strong{color:#343e54;font-size:15px}.empty-conversation span{font-size:12px;line-height:1.5}.quick-starts{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:14px}.quick-starts button{border:1px solid #dfe3eb;border-radius:999px;padding:8px 11px;color:#4f586b;background:#fff;font-size:11px}.quick-starts button:hover{border-color:#aeb7ed;color:#3f4cbd}.history-status{margin:auto}.message{max-width:min(78%,600px)}.message.user{align-self:flex-end}.message>span{display:block;margin:0 0 6px;color:#8a91a0;font-size:10px;font-weight:700}.message.user>span{text-align:right}.message p{margin:0;padding:13px 16px;border:1px solid #e0e4eb;border-radius:15px 15px 15px 4px;background:#fff;box-shadow:0 7px 20px #1b243810;font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.message.user p{border:0;border-radius:15px 15px 4px;color:#fff;background:#5362db}.loading-message p{display:flex;width:59px;gap:4px}.loading-message i{width:6px;height:6px;border-radius:50%;background:#9299a8;animation:pulse 1s infinite ease-in-out}.loading-message i:nth-child(2){animation-delay:.12s}.loading-message i:nth-child(3){animation-delay:.24s}@keyframes pulse{0%,60%,to{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-2px)}}.composer-area .notice{margin-bottom:9px}.composer-area{flex:0 0 auto;min-width:0}.composer{display:grid;grid-template-columns:1fr auto;gap:10px;padding:9px;border:1px solid #d9dee8;border-radius:14px;background:#fff;box-shadow:0 12px 32px #1d263815}.composer textarea{min-height:42px;max-height:140px;padding:11px 9px;resize:none;border:0;outline:0;color:#202a3d;background:transparent}.composer textarea::placeholder{color:#9ba1ad}.send-button{align-self:end;height:42px;padding:0 18px}.composer-hint{margin:8px 0 0;text-align:center;color:#9ba1ae;font-size:9px}.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}.mobile-pane-tabs{display:none}@media(max-width:1023px){.chat-shell{grid-template-columns:72px minmax(0,40%) minmax(0,1fr)}.chat-sidebar{padding:20px 10px}.chat-sidebar .project-nav-item{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.conversation{padding:28px 24px 20px}.builder-panel{padding:20px 16px}.preview-shell-header{gap:8px}.preview-actions{gap:5px;flex-wrap:wrap}}@media(max-width:760px){.auth-page{display:block}.auth-intro{min-height:auto;padding:28px 24px 36px}.auth-intro>div{margin-top:60px}.auth-intro h1{font-size:35px}.intro-footnote{display:none}.auth-panel{min-height:auto;padding:38px 24px 60px}.chat-shell{display:grid;grid-template-columns:1fr}.mobile-pane-tabs{display:flex;flex:0 0 auto;gap:4px;padding:8px 16px;background:#fff;border-bottom:1px solid #e0e3e9}.mobile-pane-tabs button{flex:1;border:0;border-radius:8px;padding:9px;color:#737b8d;background:transparent;font-size:12px;font-weight:750}.mobile-pane-tabs button.active{color:#2e3b9a;background:#eef0ff}.chat-shell.mobile-preview .chat-sidebar,.chat-shell.mobile-preview .conversation,.chat-shell.mobile-chat .builder-panel{display:none}.builder-panel{padding:18px 16px}.preview-actions{justify-content:flex-start}.preview-toolbar{align-items:center}.topbar{height:62px;padding:0 16px}.account-email,.online-dot{display:none}.conversation{min-height:0;height:100%;padding:28px 17px 18px}.chat-sidebar{min-height:0;overflow:hidden;padding:16px 17px;border-right:0;border-bottom:1px solid #e0e3e9}.sidebar-heading{grid-template-columns:1fr auto;align-items:center}.new-conversation-button{width:auto}.conversation-list{display:flex;overflow-x:auto;margin-top:12px;padding-bottom:2px}.conversation-item{min-width:190px;max-width:230px}.conversation-header h1{font-size:26px}.session-badge{display:none}.messages{min-height:0;padding-top:32px}.message{max-width:90%}}
