*{box-sizing:border-box}body,html{min-height:100%;margin:0;background:var(--bgColor-default);color:var(--fgColor-default);font-family:var(--fontStack-system,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif)}button,input,select,textarea{font:inherit}button{color:inherit}.app-shell{height:100dvh;min-height:620px;overflow:hidden;background:var(--bgColor-inset);color:var(--fgColor-default);font-size:12px;flex-direction:column}.app-shell,.titlebar{display:flex;position:relative}.titlebar{height:48px;background:var(--bgColor-default);border-bottom:1px solid var(--borderColor-default);align-items:center;justify-content:space-between;padding:0 16px;flex:0 0 auto}.home-brand{display:flex;align-items:center;gap:8px;border:0;background:transparent;cursor:pointer;font-size:13px;font-weight:600;color:var(--fgColor-default);padding:0}.brand-mark{height:24px;width:24px;display:grid;place-items:center;border-radius:var(--borderRadius-medium,6px);background:var(--bgColor-success-emphasis);color:var(--fgColor-onEmphasis)}.titlebar-center{display:flex;align-items:center;gap:8px;color:var(--fgColor-default);font-size:12px;font-weight:600;position:absolute;left:50%;transform:translateX(-50%)}.title-divider{color:var(--borderColor-default)}.project-name{color:var(--fgColor-muted);font-weight:500}.titlebar-actions{display:flex;align-items:center;gap:12px}.icon-btn{background:none;border:0;padding:5px;border-radius:var(--borderRadius-small,4px);color:var(--fgColor-muted);cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.icon-btn:hover{background:var(--bgColor-muted);color:var(--fgColor-default)}.projects-home{flex:1 1;overflow:auto;background:var(--bgColor-inset);padding:48px clamp(24px,6vw,88px)}.home-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;max-width:1120px;margin:0 auto 24px}.home-heading h1{margin:8px 0 6px}.home-heading p{margin:0;font-size:13px}.eyebrow,.home-heading p{color:var(--fgColor-muted)}.eyebrow{display:block;font-size:10px;letter-spacing:.08em;font-weight:700;text-transform:uppercase}.home-search{display:flex;align-items:center;gap:8px;max-width:1120px;margin:0 auto 22px;color:var(--fgColor-muted);background:var(--bgColor-default);border:1px solid var(--borderColor-default);border-radius:var(--borderRadius-medium,6px);height:38px;padding:0 12px}.home-search input{border:0;outline:0;background:transparent;flex:1 1;color:var(--fgColor-default);font-size:12px}.project-cards{max-width:1120px;margin:0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:18px;gap:18px}.project-card{min-width:0;text-align:left;border:1px solid var(--borderColor-default);background:var(--bgColor-default);border-radius:var(--borderRadius-large,10px);padding:0;overflow:hidden;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;display:flex;flex-direction:column}.project-card:hover{transform:translateY(-2px);border-color:var(--borderColor-accent-emphasis);box-shadow:var(--shadow-resting-medium)}.project-card-preview{height:170px;width:100%;display:grid;place-items:center;background:var(--bgColor-muted);padding:20px;border-bottom:1px solid var(--borderColor-muted)}.project-card-preview svg{width:100%;height:100%}.project-card-info{display:flex;align-items:center;gap:10px;padding:12px 14px;width:100%}.project-card-icon{height:30px;width:30px;border-radius:var(--borderRadius-medium,6px);background:var(--bgColor-success-muted);color:var(--fgColor-success);display:grid;place-items:center;flex-shrink:0}.project-card-info>div{display:flex;flex-direction:column;gap:3px;flex:1 1;min-width:0}.project-card-info strong{color:var(--fgColor-default);font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-card-info span:not(.project-card-icon){color:var(--fgColor-muted);font-size:10px}.new-project-card{min-height:225px;align-items:center;justify-content:center;gap:8px;border-style:dashed;color:var(--fgColor-success);background:var(--bgColor-default)}.new-project-card strong{font-size:13px}.new-project-card span{color:var(--fgColor-muted);font-size:11px}.workspace{flex:1 1;min-height:0;display:flex}.left-sidebar{width:236px;flex:0 0 236px;background:var(--bgColor-default);border-right:1px solid var(--borderColor-default);padding:16px 12px 12px;display:flex;flex-direction:column}.sidebar-head{justify-content:space-between;padding:0 4px 14px}.sidebar-head,.workspace-title{display:flex;align-items:center}.workspace-title{gap:6px;margin-top:4px;font-size:12px}.project-row-button{width:100%;display:flex;align-items:center;gap:10px;border:1px solid var(--borderColor-default);padding:8px;background:var(--bgColor-muted);cursor:default;text-align:left}.folder-glyph,.project-row-button{border-radius:var(--borderRadius-medium,6px)}.folder-glyph{width:28px;height:28px;display:grid;place-items:center;background:var(--bgColor-success-muted);color:var(--fgColor-success);flex-shrink:0}.project-row-button>div{display:flex;flex-direction:column;gap:2px;flex:1 1;min-width:0}.project-row-button strong{font-size:11px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-row-button span:not(.folder-glyph){font-size:10px;color:var(--fgColor-muted)}.tree-heading{display:flex;justify-content:space-between;align-items:center;margin:20px 4px 8px}.page-list{display:flex;flex-direction:column;gap:2px;overflow-y:auto}.page-item{display:flex;align-items:center;gap:8px;border:0;background:transparent;border-radius:var(--borderRadius-medium,6px);color:var(--fgColor-muted);padding:7px 8px;text-align:left;font-size:12px;cursor:pointer}.page-item:hover{background:var(--bgColor-muted);color:var(--fgColor-default)}.page-item.selected{background:var(--bgColor-success-muted);color:var(--fgColor-success);font-weight:600}.page-dot{width:6px;height:6px;background:var(--bgColor-success-emphasis);border-radius:99px;margin-left:auto}.sidebar-spacer{flex:1 1}.sidebar-bottom{display:flex;flex-direction:column;gap:6px}.storage{border-top:1px solid var(--borderColor-muted);margin-top:8px;padding:10px 4px 2px;display:flex;gap:8px;align-items:center}.storage-icon{height:26px;width:26px;border-radius:var(--borderRadius-medium,6px);background:var(--bgColor-muted);display:grid;place-items:center;color:var(--fgColor-muted)}.storage>div:last-child{display:flex;flex-direction:column;gap:2px}.storage strong{font-size:11px;font-weight:600}.storage span{font-size:10px;color:var(--fgColor-muted)}.main-workspace{flex:1 1;min-width:360px;display:flex;flex-direction:column;background:var(--bgColor-inset)}.project-heading{height:46px;justify-content:space-between;padding:0 16px;flex-shrink:0;background:var(--bgColor-default)}.breadcrumb,.project-heading{display:flex;align-items:center}.breadcrumb{gap:6px;color:var(--fgColor-muted);font-size:12px;margin-bottom:0}.breadcrumb button{border:0;background:none;color:var(--fgColor-accent);cursor:pointer;display:inline-flex;align-items:center;gap:4px;font-size:11px;padding:0}.heading-actions,.page-title{display:flex;align-items:center;gap:8px}.saved-indicator{font-size:11px;color:var(--fgColor-muted);margin-right:4px;display:flex;align-items:center;gap:6px}.live-dot,.saved-indicator>span,.status-online{width:7px;height:7px;border-radius:50%;background:var(--bgColor-success-emphasis)}.editor-topline{height:42px;border-bottom:1px solid var(--borderColor-default);border-top:1px solid var(--borderColor-muted);display:flex;justify-content:space-between;align-items:center;padding:0 20px;background:var(--bgColor-default)}.tabs{align-items:stretch;height:100%;gap:18px}.tab,.tabs{display:flex}.tab{position:relative;border:0;background:none;align-items:center;gap:6px;color:var(--fgColor-muted);font-size:12px;cursor:pointer;padding:0 2px}.tab.active{color:var(--fgColor-default);font-weight:600}.tab.active:after{content:"";position:absolute;height:2px;left:0;right:0;bottom:-1px;border-radius:2px}.tab-ready,.tab.active:after{background:var(--bgColor-success-emphasis)}.tab-ready{width:6px;height:6px;border-radius:50%}.page-meta{color:var(--fgColor-muted);font-size:11px;display:flex;gap:6px}.editor{display:flex;flex-direction:column;min-height:0;flex:1 1}.canvas-toolbar{height:46px;padding:0 16px;gap:12px;background:var(--bgColor-inset);border-bottom:1px solid var(--borderColor-muted)}.canvas-toolbar,.tool-group{display:flex;align-items:center}.tool-group{height:32px;gap:2px;padding:2px 4px;border:1px solid var(--borderColor-default);background:var(--bgColor-default);border-radius:var(--borderRadius-medium,6px)}.tool-button{border:0;background:transparent;height:26px;width:28px;display:grid;place-items:center;color:var(--fgColor-muted);border-radius:var(--borderRadius-small,4px);cursor:pointer}.tool-button:hover{background:var(--bgColor-muted);color:var(--fgColor-default)}.tool-button.active{color:var(--fgColor-success);background:var(--bgColor-success-muted)}.tool-separator{width:1px;height:16px;background:var(--borderColor-default);margin:0 4px}.zoom-control{margin-left:auto;height:28px;display:flex;align-items:center;gap:8px;background:var(--bgColor-default);border:1px solid var(--borderColor-default);border-radius:var(--borderRadius-medium,6px);padding:0 6px;color:var(--fgColor-muted);font-size:11px}.zoom-control button{display:grid;place-items:center;border:0;background:transparent;color:var(--fgColor-muted);cursor:pointer;padding:3px}.canvas-area{flex:1 1;min-height:240px;background-color:var(--bgColor-inset);background-image:radial-gradient(var(--borderColor-muted) 1px,transparent 1px);background-size:18px 18px;position:relative;display:flex;overflow:auto;padding:24px}.canvas-sheet-wrap{margin:auto;flex-shrink:0;position:relative}.canvas-sheet{width:720px;height:510px;flex-shrink:0;position:relative;background:#ffffff;border:1px solid var(--borderColor-default);box-shadow:var(--shadow-resting-medium);border-radius:var(--borderRadius-small,4px);transform-origin:top left}.canvas-sheet canvas{display:block;width:100%;height:100%;touch-action:none}.canvas-float-note{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);background:var(--bgColor-default);border:1px solid var(--borderColor-default);border-radius:99px;padding:5px 12px;font-size:11px;color:var(--fgColor-muted);display:flex;align-items:center;gap:8px;box-shadow:var(--shadow-resting-small)}.note-dot{width:6px;height:6px;background:var(--bgColor-success-emphasis);border-radius:50%}.editor-footer{height:52px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;background:var(--bgColor-default);border-top:1px solid var(--borderColor-default);flex-shrink:0}.footer-left,.footer-right{display:flex;align-items:center;gap:8px;color:var(--fgColor-muted);font-size:11px}.generated-message{color:var(--fgColor-success);font-weight:500}.output-stage,.prototype-stage{flex:1 1;min-height:0;display:flex;flex-direction:column}.output-toolbar,.prototype-bar{height:42px;flex:0 0 auto;display:flex;justify-content:space-between;align-items:center;padding:0 16px;background:var(--bgColor-default);border-bottom:1px solid var(--borderColor-default)}.output-version{display:flex;align-items:center;gap:8px;color:var(--fgColor-muted);font-size:11px}.output-check{height:18px;width:18px;display:grid;place-items:center;border-radius:50%;background:var(--bgColor-success-muted);color:var(--fgColor-success);font-size:10px}.output-canvas{flex:1 1;min-height:240px;position:relative;background-color:var(--bgColor-inset);display:flex;overflow:auto;padding:24px}.wireframe-sheet{margin:auto;flex-shrink:0;width:min(640px,100%);aspect-ratio:1/1;background:#ffffff;border:1px solid var(--borderColor-default);box-shadow:var(--shadow-resting-medium);border-radius:var(--borderRadius-small,4px);overflow:hidden}.wireframe-sheet svg{width:100%;height:100%;display:block}.browser-address{height:26px;gap:6px;color:var(--fgColor-muted);padding:0 10px;font-size:11px}.browser-address,.responsive-controls{display:flex;align-items:center;border:1px solid var(--borderColor-default);background:var(--bgColor-muted);border-radius:var(--borderRadius-medium,6px)}.responsive-controls{padding:2px;gap:2px}.responsive-controls button{border:0;border-radius:var(--borderRadius-small,4px);background:transparent;color:var(--fgColor-muted);padding:4px 10px;font-size:11px;cursor:pointer}.responsive-controls button.selected{background:var(--bgColor-default);color:var(--fgColor-default);font-weight:600;box-shadow:var(--shadow-resting-small)}.prototype-preview-wrap{flex:1 1;min-height:0;display:flex;justify-content:center;overflow:auto;padding:14px;background:var(--bgColor-inset)}.prototype-preview{width:100%;height:100%;min-height:360px;background:#ffffff;border:1px solid var(--borderColor-default);border-radius:var(--borderRadius-medium,6px);overflow:hidden;box-shadow:var(--shadow-resting-medium);transition:max-width .2s ease}.prototype-preview.viewport-tablet{max-width:768px}.prototype-preview.viewport-mobile{max-width:390px}.prototype-preview iframe{width:100%;height:100%;border:0;display:block}.right-sidebar{width:310px;flex:0 0 310px;border-left:1px solid var(--borderColor-default);background:var(--bgColor-default);display:flex;flex-direction:column;min-height:0}.copilot-head{height:58px;padding:0 14px;justify-content:space-between;border-bottom:1px solid var(--borderColor-muted)}.copilot-head,.copilot-title{display:flex;align-items:center}.copilot-title{gap:8px}.copilot-icon{width:28px;height:28px;background:var(--bgColor-success-muted);color:var(--fgColor-success);display:grid;place-items:center;border-radius:var(--borderRadius-medium,6px)}.copilot-title>div:last-child{display:flex;flex-direction:column;gap:2px}.copilot-title strong{font-size:12px;font-weight:600}.copilot-title>div span{color:var(--fgColor-muted);font-size:10px}.chat-body{flex:1 1;min-height:0;overflow:auto;padding:14px}.message-row{display:flex;align-items:flex-start;gap:8px;margin-bottom:14px}.message-avatar{width:22px;height:22px;flex:0 0 22px;border-radius:var(--borderRadius-medium,6px);display:grid;place-items:center;color:var(--fgColor-success);background:var(--bgColor-success-muted)}.message-content{flex:1 1;min-width:0}.message-author{font-size:10px;font-weight:600;color:var(--fgColor-muted);display:block;margin-bottom:4px}.message-content p{font-size:12px;color:var(--fgColor-default);line-height:1.5;margin:0}.message-row.user{justify-content:flex-end}.message-row.user .message-content{background:var(--bgColor-muted);padding:8px 10px;border-radius:8px;flex:0 1 auto;max-width:90%}.suggestion-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.suggestion-chips button{background:var(--bgColor-default);border:1px solid var(--borderColor-default);border-radius:99px;color:var(--fgColor-muted);padding:4px 8px;font-size:10px;cursor:pointer}.suggestion-chips button:hover{border-color:var(--borderColor-accent-emphasis);color:var(--fgColor-default)}.chat-bottom{padding:0 12px 12px}.composer{border:1px solid var(--borderColor-default);border-radius:var(--borderRadius-medium,6px);padding:8px;background:var(--bgColor-default)}.composer textarea{width:100%;height:44px;border:0;outline:none;resize:none;font-size:12px;color:var(--fgColor-default);background:transparent}.composer-tools{display:flex;justify-content:space-between;align-items:center;margin-top:4px}.composer-foot{font-size:10px;padding:6px 2px 0}.composer-foot,.statusbar{display:flex;justify-content:space-between;color:var(--fgColor-muted)}.statusbar{height:28px;background:var(--bgColor-default);border-top:1px solid var(--borderColor-default);align-items:center;padding:0 12px;font-size:11px;flex:0 0 auto}.statusbar>div{display:flex;align-items:center;gap:8px}.statusbar button{border:0;background:none;color:var(--fgColor-muted);cursor:pointer;font-size:11px;display:inline-flex;align-items:center;gap:4px}.modal-backdrop{position:fixed;z-index:30;inset:0;background:rgba(27,31,36,.5);display:flex;align-items:center;justify-content:center;padding:20px}.primer-dialog{width:min(500px,100%);max-height:min(720px,calc(100dvh - 40px));overflow:auto;background:var(--bgColor-default);border:1px solid var(--borderColor-default);border-radius:var(--borderRadius-large,12px);box-shadow:var(--shadow-floating-large);padding:20px;display:flex;flex-direction:column;gap:14px}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.dialog-field{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600}.dialog-field input:not([type=checkbox]):not([type=radio]),.dialog-field select,.dialog-field textarea{width:100%;border:1px solid var(--borderColor-default);border-radius:var(--borderRadius-medium,6px);padding:6px 10px;background:var(--bgColor-default);color:var(--fgColor-default);font-weight:400}.export-mode{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;gap:10px}.export-mode button{display:flex;align-items:center;gap:10px;text-align:left;border:1px solid var(--borderColor-default);border-radius:var(--borderRadius-medium,6px);background:var(--bgColor-default);padding:10px;cursor:pointer}.export-mode button.selected{border-color:var(--borderColor-success-emphasis);background:var(--bgColor-success-muted)}.export-page-option{display:flex;align-items:center;gap:10px;padding:8px;border-radius:var(--borderRadius-medium,6px);cursor:pointer}.export-page-option:hover{background:var(--bgColor-muted)}@media (max-width:980px){.left-sidebar{width:196px;flex-basis:196px}.right-sidebar{width:260px;flex-basis:260px}}@media (max-width:780px){.project-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.right-sidebar{display:none}}@media (max-width:600px){.project-cards{grid-template-columns:1fr}.left-sidebar,.titlebar-center{display:none}}