@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");:root{--bg:#f6f6f8;--surface:#ffffff;--surface-2:#fbfbfc;--border:#ececf1;--text:#17171c;--muted:#71717f;--accent-a:#6a1ff7;--accent-b:#0a8ff0;--accent-grad:linear-gradient(135deg,#6a1ff7,#00b4fd);--accent-soft:#eef2ff;--shadow:0 1px 2px rgba(20,20,40,0.04),0 8px 24px rgba(20,20,40,0.06)}*{box-sizing:border-box}body,html{margin:0;padding:0;height:100%;font-family:Inter,system-ui,sans-serif;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}.app{display:grid;grid-template-columns:400px 1fr}.app,.chat{height:100vh}.chat{display:flex;flex-direction:column;background:var(--surface);border-right:1px solid var(--border)}.chat-head{display:flex;align-items:center;gap:10px;padding:18px 20px;border-bottom:1px solid var(--border)}.brand-logo{height:46px;width:auto;display:block}.brand{font-weight:800;font-size:17px;letter-spacing:-.02em}.brand-dot{width:26px;height:26px;border-radius:9px;background:var(--accent-grad);box-shadow:0 4px 12px rgba(80,60,240,.4)}.messages{flex:1 1;min-height:0;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:14px}.empty{margin:auto;text-align:center;max-width:320px;padding:24px 0}.empty-emoji{font-size:34px}.empty-title{font-size:22px;font-weight:800;letter-spacing:-.02em;margin:12px 0 6px}.empty-sub{color:var(--muted);font-size:14px;margin:0 0 20px;line-height:1.5}.chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}.chip{border:1px solid var(--border);background:var(--surface-2);color:var(--text);border-radius:999px;padding:8px 14px;font-size:13px;font-weight:500;cursor:pointer;transition:all .15s ease}.chip:hover{border-color:var(--accent-b);color:var(--accent-b);transform:translateY(-1px)}.msg-row{display:flex}.msg-row.user{justify-content:flex-end}.msg-row.assistant{justify-content:flex-start}.bubble{max-width:88%;padding:11px 14px;border-radius:16px;font-size:14px;line-height:1.5;animation:rise .25s ease}.bubble.user{background:var(--accent-grad);color:#fff;border-bottom-right-radius:5px;box-shadow:0 6px 16px rgba(80,60,240,.28)}.bubble.assistant{background:var(--surface);border:1px solid var(--border);border-bottom-left-radius:5px;box-shadow:var(--shadow)}.bubble.error{background:#fff2f2;border:1px solid #ffd4d4;color:#b42318}@keyframes rise{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.meta-chip{font-size:11px;font-weight:600;padding:3px 9px;border-radius:999px;background:var(--accent-soft);color:var(--accent-b);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.meta-chip.muted{background:var(--surface-2);color:var(--muted)}.building,.meta-chip.muted{border:1px solid var(--border)}.building{background:var(--surface);border-radius:16px;border-bottom-left-radius:5px;padding:12px 14px;box-shadow:var(--shadow);max-width:88%}.building-route{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:var(--accent-b)}.pulse{width:9px;height:9px;border-radius:50%;background:var(--accent-b);animation:pulse 1s ease-in-out infinite}@keyframes pulse{0%,to{opacity:.3;transform:scale(.8)}50%{opacity:1;transform:scale(1.1)}}.building-sub{margin:6px 0 0;font-size:12px;color:var(--muted)}.builderror{margin:0 20px 12px;border:1px solid #ffe0b0;background:#fff8ee;border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:8px}.builderror-title{margin:0;font-size:13px;font-weight:700;color:#b25e09}.builderror-msg{margin:0;font-size:12px;color:#8a5a22;font-family:ui-monospace,monospace;white-space:pre-wrap;word-break:break-word;max-height:100px;overflow-y:auto}.fixbtn{align-self:flex-start;padding:8px 14px;border:none;border-radius:10px;background:#e88a1e;color:#fff;font-size:13px;font-weight:700;cursor:pointer}.fixbtn:hover{background:#f59a2e}.composer{padding:16px 20px 20px;border-top:1px solid var(--border)}.composer-box{display:flex;align-items:flex-end;gap:8px;background:var(--surface-2);border:1px solid var(--border);border-radius:16px;padding:8px 8px 8px 14px;transition:border-color .15s ease}.composer-box:focus-within{border-color:var(--accent-b);box-shadow:0 0 0 3px rgba(60,120,240,.15)}.composer textarea{flex:1 1;resize:none;outline:none;font-family:inherit;font-size:14px;line-height:1.5;color:var(--text);max-height:160px;min-height:22px;padding:5px 0}.composer textarea,.send{border:none;background:transparent}.send{flex-shrink:0;height:38px;padding:0 6px;cursor:pointer;display:grid;place-items:center;transition:transform .12s ease,opacity .12s ease}.send-mark{height:24px;width:auto;display:block}.send:hover:not(:disabled){transform:translateY(-1px)}.send:disabled{opacity:.4;cursor:not-allowed}.composer-hint{margin:8px 2px 0;font-size:11px;color:var(--muted)}.preview{padding:16px;height:100vh}.frame{height:100%;background:var(--surface);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow);overflow:hidden;display:flex;flex-direction:column}.frame-bar{display:flex;align-items:center;gap:8px;padding:11px 14px;border-bottom:1px solid var(--border);background:var(--surface-2)}.dots{display:flex;gap:6px}.dot{width:11px;height:11px;border-radius:50%}.dot.r{background:#ff5f57}.dot.y{background:#febc2e}.dot.g{background:#28c840}.frame-pill{margin:0 auto;background:var(--surface);border:1px solid var(--border);border-radius:999px;padding:4px 16px;font-size:12px;color:var(--muted)}.frame-body{flex:1 1;min-height:0;overflow:hidden}.frame-body>div{height:100%}.tabs{display:flex;gap:4px;margin:0 auto;background:var(--surface);border:1px solid var(--border);border-radius:999px;padding:3px}.tab{border:none;background:transparent;color:var(--muted);font-size:12px;font-weight:600;padding:5px 16px;border-radius:999px;cursor:pointer;transition:all .15s ease}.tab.active{background:var(--accent-grad);color:#fff}.loading{display:flex;align-items:center;justify-content:center;height:100%;color:var(--muted)}.mobile-switch{display:none}@media (max-width:768px){.app{display:flex;flex-direction:column;grid-template-columns:none;height:100vh;height:100dvh}.chat,.preview{flex:1 1;width:100%;height:auto;min-height:0}.chat{border-right:none}.preview{padding:10px}.app.show-chat .preview,.app.show-preview .chat{display:none}.mobile-switch{display:flex;flex:none;gap:6px;padding:8px 10px calc(8px + env(safe-area-inset-bottom));border-top:1px solid var(--border);background:var(--surface)}.mobile-switch button{flex:1 1;padding:11px 0;border:1px solid var(--border);border-radius:12px;background:var(--surface-2);color:var(--muted);font-family:inherit;font-size:14px;font-weight:700;cursor:pointer;transition:all .15s ease}.mobile-switch button.active{background:var(--accent-grad);color:#fff;border-color:transparent}}@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/f639721981034f88-s.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/9766a7e9e2e0ad5a-s.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/b66cf8e69499582a-s.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/aa016aab0e6d1295-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/22a5144ee8d83bca-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Geist Fallback;src:local("Arial");ascent-override:95.94%;descent-override:28.16%;line-gap-override:0.00%;size-adjust:104.76%}.__className_246ccd{font-family:Geist,Geist Fallback;font-style:normal}.__variable_246ccd{--font-geist-sans:"Geist","Geist Fallback"}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/013b72fa676f92e0-s.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/b9408752a0c24fb9-s.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/65f03d54ccadf4a8-s.woff2) format("woff2");unicode-range:u+2000-2001,u+2004-2008,u+200a,u+23b8-23bd,u+2500-259f}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/e038a29029a234f2-s.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/2b5b02fc7e511755-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/7d4881bb7e1bf84d-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Geist Mono Fallback;src:local("Arial");ascent-override:74.67%;descent-override:21.92%;line-gap-override:0.00%;size-adjust:134.59%}.__className_c29908{font-family:Geist Mono,Geist Mono Fallback;font-style:normal}.__variable_c29908{--font-geist-mono:"Geist Mono","Geist Mono Fallback"}