:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#171b35;background:#fafbf9;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer;border:1px solid transparent;background:transparent;color:inherit;padding:9px 14px;border-radius:10px}button:hover{background:#eceff8}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #4058ff;outline-offset:2px}[hidden]{display:none!important}.brand{font-size:24px;font-weight:750;letter-spacing:-.8px;white-space:nowrap}.brand span{font-weight:350}.primary{background:#2948ef;color:white;display:flex;justify-content:space-between}.primary:hover{background:#1836d0}#login{min-height:100vh;background:radial-gradient(ellipse at 75% 25%,#e9edff66,transparent 55%);padding:36px 48px}#login form{max-width:360px;margin:10vh auto 0}h1{font-size:40px;line-height:1.18;letter-spacing:-1.7px;font-weight:550;margin:18px 0}p,small{color:#777d91;line-height:1.6}.eyebrow{font-size:10px;letter-spacing:2px;color:#747b97}label{display:block;font-size:12px;margin-top:22px}input{width:100%;padding:13px;border:1px solid #dfe2eb;border-radius:9px;background:#fff;margin-top:8px}#login .primary{width:100%;margin-top:26px;padding:14px}small{font-size:11px}footer{position:absolute;bottom:28px;color:#969bad;font-size:12px}#login-message{font-size:12px;min-height:38px}header{height:62px;display:flex;align-items:center;padding:0 28px;border-bottom:1px solid #e7e8ee;background:#fcfcfd;gap:60px}header .brand{font-size:22px}nav{display:flex;align-items:center;gap:6px;overflow:auto;flex:1}nav button{white-space:nowrap}.active{background:#e6ecff!important;color:#173cff}.avatar{border:1px solid #dde1eb;background:#eff1f8;width:34px;height:34px;border-radius:50%;padding:0}#subtabs{display:flex;gap:6px;padding:7px 28px;border-bottom:1px solid #e7e8ee}#subtabs:empty{display:none}#board{height:calc(100vh - 62px);position:relative;overflow:hidden;background-color:#fcfdfc;background-image:radial-gradient(#cbd4ea 0.7px,transparent .7px);background-size:20px 20px;touch-action:none}.overview{padding:28px;display:grid;grid-template-columns:1.2fr 1fr;grid-auto-rows:minmax(300px,1fr);gap:14px;overflow:auto!important;align-content:start}.project-window{border:1px solid #dce0eb;border-radius:8px;position:relative;min-height:300px;overflow:hidden}.project-window h2{font-size:18px;font-weight:550;margin:14px 18px}.project-window h2 button{padding:0}.mini{position:relative;height:240px;overflow:hidden}.mini-note{position:absolute;padding:10px;border-radius:5px;background:#fff3bf;width:145px;white-space:pre-wrap;font-size:11px}.empty{position:absolute;top:38%;left:50%;transform:translate(-50%,-50%);text-align:center;color:#8e94a5;width:90%}.empty h2{color:#444c68;font-size:22px;font-weight:450}.empty button{margin-top:8px;color:#2948ef;border:1px solid #dce2f4;background:#fff}.node{position:absolute;width:220px;height:160px;border:1px solid #e7dcad;border-radius:7px;background:#fff4c6;box-shadow:0 3px 9px #20284807;resize:both;overflow:auto;min-width:140px;min-height:100px}.node .handle{height:24px;cursor:grab;display:flex;justify-content:space-between;padding-left:10px;align-items:center;color:#b4a666}.node .handle button{padding:0 8px}.node textarea{width:100%;height:calc(100% - 28px);border:0;outline:none;background:transparent;resize:none;padding:4px 16px 12px;color:#353a50;line-height:1.6}#world{position:absolute;inset:0;transform-origin:0 0;pointer-events:none}.node{pointer-events:auto}.bottom{position:fixed;bottom:22px;left:28px;right:28px;display:flex;justify-content:space-between;pointer-events:none;align-items:center}.bottom>div{pointer-events:auto;border:1px solid #e5e7ef;background:#ffffffeb;border-radius:12px;box-shadow:0 3px 14px #252b4510}.bottom>span{font-size:11px;color:#7b8395;background:#fafbf9;padding:5px 8px}#menu{position:absolute;right:22px;top:57px;width:250px;background:white;padding:12px;border:1px solid #e0e4ee;border-radius:12px;box-shadow:0 12px 40px #1d28501a;z-index:10}#menu button{display:block;width:100%;text-align:left}#menu p{overflow-wrap:anywhere;font-size:12px;padding:0 10px}dialog{border:1px solid #e1e4ec;border-radius:16px;padding:28px;width:380px;box-shadow:0 20px 100px #111b4020}dialog::backdrop{background:#19203330;backdrop-filter:blur(3px)}h2{font-size:20px;font-weight:550}.actions{display:flex;justify-content:flex-end;gap:8px;margin-top:26px}@media(max-width:700px){header{padding:0 14px;gap:18px}header .brand{font-size:18px}.overview{grid-template-columns:1fr;padding:16px}#login{padding:28px}h1{font-size:36px}.bottom{left:12px;right:12px}nav button{font-size:12px}}

/* Shared identity from VaeChat: original icon and auth wordmark typography. */
.brand{display:inline-flex;align-items:center;gap:9px;font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;font-size:25px;font-weight:600;letter-spacing:-.9px;line-height:1;color:#141927;-webkit-font-smoothing:antialiased}
.brand span{font-weight:600}.brand img{display:block;width:43px;height:43px;object-fit:contain}header .brand{font-size:22px}header .brand img{width:34px;height:34px}
@media(max-width:700px){header .brand{font-size:18px}header .brand img{width:28px;height:28px}}

#boot{min-height:100vh;display:grid;place-items:center;color:#777d91;font-size:13px}

/* Rounded project labels and a clear, quiet canvas. */
nav button,#subtabs button{border:1px solid #e4e7ee;border-radius:999px;background:#fff;padding:10px 19px;box-shadow:0 2px 7px #22283c05;transition:background .15s,box-shadow .15s}nav button:hover,#subtabs button:hover{background:#fff7df;box-shadow:0 4px 14px #b17b1612}nav button.active,#subtabs button.active{background:#fff2ce!important;color:#78500b;border-color:#e9cd8a;box-shadow:0 3px 12px #b17b1614}header{gap:28px}#subtabs{padding:10px 28px}.overview{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));grid-auto-rows:minmax(320px,auto);gap:24px;padding:32px 32px 70px}.project-window{border-radius:24px;border-color:#e4e6ee;background:#ffffff80;box-shadow:0 8px 30px #23304c05}.project-window h2{margin:20px}.project-window h2 button{padding:10px 20px;border:1px solid #e9d7a8;border-radius:999px;background:#fff5d9;color:#624610;box-shadow:0 3px 10px #b17b160b}.project-window .mini{height:230px;margin:0 16px}.mini-note{cursor:pointer;box-shadow:0 3px 10px #22283c08;border:1px solid #f0dfaa;border-radius:10px}.project-children{display:flex;gap:8px;flex-wrap:wrap;padding:0 20px 20px}.project-children button{border:1px solid #e2e6ed;border-radius:999px;background:#fff;font-size:12px}.bottom{display:none}#board{height:calc(100dvh - 62px)}#workspace:has(#subtabs:not(:empty)) #board{height:calc(100dvh - 119px)}@media(max-width:700px){.overview{grid-template-columns:1fr;padding:18px;gap:18px}header{gap:14px}nav button{padding:9px 14px}}

.save-alert{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#fff7e3;color:#71500d;border:1px solid #e7d49d;border-radius:14px;padding:12px 18px;max-width:90vw;box-shadow:0 4px 18px #30200012;z-index:20;font-size:12px}
