@font-face{font-family:Magic;src:local('Segoe UI')}*{box-sizing:border-box}html,body{margin:0;height:100%;font-family:Magic,system-ui,sans-serif;color:#e5edf8;background:#09111f}body{overflow:hidden}button,textarea,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}.hidden{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}:focus-visible{outline:2px solid #2dd4bf;outline-offset:3px}.login-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 50% 20%,#113846,#09111f 65%)}.login-card{width:min(100%,425px);background:#0f1b2d;border:1px solid #2a3b52;padding:32px;border-radius:14px;display:flex;flex-direction:column;gap:15px;box-shadow:0 32px 90px #02091080}.login-card h1{margin:0;font-size:29px}.login-card p{margin:0 0 10px;color:#8ea0b8;line-height:1.5}.login-card label{font-size:13px}.login-card input{height:48px;background:#09111f;border:1px solid #2a3b52;color:#fff;padding:12px;border-radius:8px}.mark{font-size:35px;color:#2dd4bf}.error{color:#f87171;min-height:15px;font-size:13px}.app{height:100vh;display:flex;flex-direction:column}.topbar{height:60px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 24px;background:#0f1b2d;border-bottom:1px solid #2a3b52}.brand{display:flex;align-items:center;gap:8px;font-size:18px;letter-spacing:-.3px}.brand-mark{color:#2dd4bf;font-size:23px}.brand strong{font-weight:800}.brand small{margin-left:12px;font-size:10px;color:#8ea0b8;letter-spacing:1.2px}.top-right{display:flex;align-items:center;gap:12px}.small-badge{font-size:12px;color:#b8c4d4;padding:7px 10px;border-radius:20px;background:#152238}.ghost{background:transparent;border:0;color:#8ea0b8;font-size:12px;padding:8px}.workspace{display:grid;grid-template-columns:225px minmax(320px,390px) minmax(360px,1fr);min-height:0;flex:1}.sidebar{background:#0f1b2d;border-right:1px solid #2a3b52;display:flex;flex-direction:column;min-width:0}.sidebar-heading{display:flex;justify-content:space-between;align-items:center;padding:22px 16px 15px;font-size:12px;font-weight:750;color:#b8c4d4;text-transform:uppercase;letter-spacing:.5px}.square-btn{border:1px solid #2a3b52;color:#e5edf8;background:#152238;border-radius:7px;width:32px;height:32px;font-size:19px}.project-list{padding:0 10px;overflow:auto;flex:1}.project-item{display:flex;gap:9px;align-items:center;text-align:left;width:100%;border:1px solid transparent;background:transparent;color:#b8c4d4;border-radius:8px;padding:13px 10px;margin-bottom:5px;font-size:13px;overflow:hidden;text-overflow:ellipsis}.project-item.active{background:#1b2a41;border-color:#2a3b52;color:#f8fafc}.project-item:before{content:'▣';color:#2dd4bf}.sidebar-footer{border-top:1px solid #2a3b52;padding:18px 16px;display:grid;gap:8px;font-size:11px;color:#8ea0b8}.chat-column{display:flex;flex-direction:column;min-height:0;border-right:1px solid #2a3b52;background:#0c1726}.panel-heading{height:76px;flex:none;padding:16px 20px;border-bottom:1px solid #2a3b52;display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-heading h2{font-size:16px;line-height:1.3;margin:0 0 4px;font-weight:700}.panel-heading p{font-size:12px;color:#8ea0b8;margin:0}.chip{font-size:11px;border:1px solid #2a3b52;padding:6px 9px;border-radius:20px;color:#60a5fa}.messages{flex:1;overflow-y:auto;padding:18px;display:flex;flex-direction:column;gap:16px}.intro{margin:auto 0;display:grid;gap:12px;text-align:left}.intro-icon{font-size:28px;color:#2dd4bf}.intro h3{margin:0;font-size:20px}.intro p{font-size:13px;color:#8ea0b8;line-height:1.65;margin:0 0 8px}.prompt-example{display:block;width:100%;background:#152238;color:#d7e3f1;border:1px solid #2a3b52;border-radius:8px;text-align:left;padding:13px;font-size:12px;line-height:1.5}.bubble{max-width:96%;border:1px solid #2a3b52;border-radius:11px;padding:12px 13px;font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.bubble.user{align-self:flex-end;background:#173a3c;color:#e0fff8;border-color:#23645e}.bubble.assistant{align-self:flex-start;background:#152238}.bubble-label{font-size:10px;color:#8ea0b8;margin-bottom:6px;text-transform:uppercase;letter-spacing:.5px}.composer{margin:12px;padding:12px;background:#0f1b2d;border:1px solid #2a3b52;border-radius:12px}.composer textarea{resize:vertical;max-height:175px;min-height:75px;display:block;width:100%;border:0;outline:0;background:transparent;color:#f8fafc;font-size:13px;line-height:1.65}.composer textarea::placeholder{color:#6f8198}.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px}.composer-bottom small{font-size:10px;color:#8ea0b8}.primary{border:0;border-radius:8px;background:linear-gradient(90deg,#82ee77,#2dd4bf);color:#07111e;padding:11px 15px;font-size:12px;font-weight:800;min-height:39px}.secondary{border:1px solid #2a3b52;color:#e5edf8;background:#1b2a41;padding:9px 13px;border-radius:8px;font-size:12px;min-height:39px}.progress{padding:10px 18px;font-size:12px;color:#8ea0b8;display:flex;align-items:center;gap:10px}.spinner{width:14px;height:14px;border-radius:50%;border:2px solid #2a3b52;border-top-color:#2dd4bf;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.preview-column{min-width:0;min-height:0;display:flex;flex-direction:column;background:#09111f}.header-actions{display:flex;gap:8px}.preview-wrap{min-height:320px;flex:1;display:flex;flex-direction:column;padding:16px 18px 0;overflow:hidden}.preview-caption{font-size:10px;color:#8ea0b8;padding:8px 0 12px;letter-spacing:.6px}.live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#34d399;margin-right:6px}#preview{width:100%;flex:1;border:1px solid #2a3b52;border-radius:10px;background:#0f1b2d}.render-panel{margin:14px 18px;border:1px solid #2a3b52;background:#0f1b2d;border-radius:10px;padding:16px;display:flex;justify-content:space-between;align-items:center;gap:10px}.render-panel strong{font-size:13px}.render-panel p{color:#8ea0b8;margin:6px 0 0;font-size:12px}.download{color:#2dd4bf;font-size:12px;font-weight:700;text-decoration:none;white-space:nowrap}.notice{margin:0 18px 16px;border:1px solid #57623a;border-radius:8px;color:#fbbf24;padding:12px;font-size:12px;line-height:1.6}@media(max-width:1100px){.workspace{grid-template-columns:160px minmax(280px,35%) minmax(320px,1fr)}.brand small{display:none}}@media(max-width:760px){body{overflow:auto}.app{height:auto;min-height:100vh}.workspace{display:flex;flex-direction:column}.sidebar{border:0}.sidebar-footer{display:none}.project-list{display:flex;overflow-x:auto;padding-bottom:5px}.project-item{white-space:nowrap;width:auto}.chat-column{min-height:440px}.preview-column{min-height:600px}.panel-heading{height:auto;min-height:70px}.topbar{padding:0 12px}.header-actions{flex-wrap:wrap}.preview-wrap{height:450px;flex:none}}@media(prefers-reduced-motion:reduce){.spinner{animation:none}}

.settings-overlay{position:fixed;inset:0;background:#030812c9;z-index:300;display:grid;place-items:center;padding:16px;overflow:auto}
.settings-dialog{width:min(100%,520px);max-height:94vh;overflow-y:auto;background:#0f1b2d;border:1px solid #2a3b52;box-shadow:0 25px 70px #0009;border-radius:12px;padding:24px;display:grid;gap:10px}
.settings-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:10px}
.settings-header h2{margin:0 0 6px;font-size:20px}
.settings-header p{color:#8ea0b8;font-size:12px;line-height:1.5;margin:0}
.settings-dialog label{font-size:12px;font-weight:650;line-height:1.4;margin-top:6px}
.settings-dialog input,.settings-dialog select{width:100%;background:#09111f;border:1px solid #2a3b52;padding:12px;height:42px;border-radius:8px;color:#e5edf8;font-size:13px}
.settings-dialog input::placeholder{color:#8ea0b8}
.settings-note{color:#8ea0b8;font-size:12px;line-height:1.55;margin:6px 0}
.config-note{font-weight:400;color:#34d399;margin-left:8px}
.settings-actions{display:flex;justify-content:flex-end}
