:root{--spacey-width:clamp(340px,29vw,440px)}
.spacey-launcher{position:fixed;right:18px;bottom:18px;z-index:65;border:0;border-radius:999px;background:#5143e9;color:#fff;padding:12px 18px;font:700 .88rem/1.2 var(--body,Arial,sans-serif);box-shadow:0 12px 30px #17233c36;cursor:pointer}
.spacey-launcher:hover,.spacey-launcher:focus-visible{background:#382bc3;transform:translateY(-2px)}
.spacey-panel{position:fixed;right:0;top:0;bottom:0;width:var(--spacey-width);z-index:64;box-sizing:border-box;display:flex;flex-direction:column;border-left:1px solid #dce0ef;background:#f8f9ff;color:#18243c;box-shadow:-10px 0 36px #15203816;font:400 .9rem/1.5 var(--body,Arial,sans-serif)}
.spacey-panel[hidden]{display:none!important}.spacey-open .spacey-launcher{display:none}
.spacey-header{display:flex;justify-content:space-between;align-items:center;padding:18px 19px 14px;background:#fff;border-bottom:1px solid #e7e9f2}.spacey-header h2{font:750 1.18rem/1.2 var(--display,var(--body,Arial,sans-serif));margin:0;color:#17233c}.spacey-header p{margin:3px 0 0;color:#68758e;font-size:.76rem}.spacey-close{width:34px;height:34px;border:1px solid #e1e5f0;border-radius:10px;background:#fff;color:#33415d;font-size:1.35rem;cursor:pointer}
.spacey-scope{padding:12px 18px 0}.spacey-scope label{display:flex;align-items:center;gap:8px;font-size:.76rem;font-weight:700;color:#53627c}.spacey-scope select{flex:1;min-width:0;border:1px solid #dbe0ed;border-radius:9px;background:#fff;color:#263550;padding:9px;font:inherit}
.spacey-intro{margin:14px 18px 10px;color:#455570;font-size:.85rem}.spacey-suggestions{display:flex;flex-wrap:wrap;gap:7px;padding:0 18px 13px}.spacey-suggestions button{border:1px solid #ded9ff;border-radius:999px;padding:7px 10px;background:#f0edff;color:#4139a4;font:600 .75rem var(--body,Arial,sans-serif);cursor:pointer}.spacey-suggestions button:hover{background:#e4deff}
.spacey-log{flex:1;min-height:100px;overflow:auto;padding:13px 18px;background:#fff;border-top:1px solid #e8eaf3;border-bottom:1px solid #e8eaf3}.spacey-event{margin:0 0 10px;padding:10px 12px;border-radius:12px;background:#f2f4fa;color:#2e3e58;max-width:94%;overflow-wrap:anywhere}.spacey-event p{margin:0;white-space:pre-wrap}.spacey-event a{display:inline-block;margin-top:7px;color:#473acc;font-weight:700;text-decoration:none}.spacey-event a:hover{text-decoration:underline}.spacey-user{margin-left:auto;background:#eae6ff;color:#302583}.spacey-tool{background:#e8f5ed;color:#1f5d43}.spacey-error{background:#fff0ea;color:#8c3829}.spacey-progress{background:#edf0fb}
.spacey-status{margin:0;padding:8px 18px;color:#586985;font-size:.76rem;min-height:1.4em}.spacey-form{padding:0 18px 8px}.spacey-form textarea{box-sizing:border-box;width:100%;resize:vertical;min-height:70px;max-height:180px;border:1px solid #cfd5e5;border-radius:12px;padding:11px 12px;color:#1c2941;background:#fff;font:inherit}.spacey-form textarea:focus{outline:2px solid #8176fa;outline-offset:1px}.spacey-controls{display:flex;justify-content:flex-end;gap:8px;padding-top:8px}.spacey-controls button{border-radius:9px;padding:9px 15px;font:700 .82rem var(--body,Arial,sans-serif);cursor:pointer}.spacey-send{border:1px solid #5143e9;background:#5143e9;color:#fff}.spacey-send:disabled{opacity:.5;cursor:not-allowed}.spacey-stop{border:1px solid #ced4e4;background:#fff;color:#34415b}.spacey-disclosure{margin:0;padding:5px 18px 15px;color:#78849b;font-size:.68rem;line-height:1.4}
.spacey-review{padding:14px 18px;max-height:45vh;overflow:auto;background:#f1efff;border-top:1px solid #dcd6ff}.spacey-review[hidden]{display:none}.spacey-review h3{margin:0 0 8px;font-size:1rem}.spacey-review p{margin:7px 0;font-size:.79rem}.spacey-review strong{display:block;margin-top:10px}.spacey-review dl{display:grid;grid-template-columns:1fr auto;gap:3px 12px;margin:10px 0;padding:10px;border-radius:10px;background:#fff;font-size:.78rem}.spacey-review dt{color:#52607a}.spacey-review dd{margin:0;font-weight:750}.spacey-review label{display:block;margin:11px 0;font-size:.78rem}.spacey-review a{color:#4139a4}.spacey-confirm{width:100%;border:0;border-radius:9px;background:#5143e9;color:#fff;padding:10px 12px;font:700 .82rem var(--body,Arial,sans-serif);cursor:pointer}.spacey-confirm:disabled{opacity:.5;cursor:not-allowed}.spacey-funding-note{padding:10px 12px;border-radius:9px;background:#f0edff;color:#352c81;font-weight:650}
@media(min-width:1024px){html.spacey-open body{width:calc(100% - var(--spacey-width));min-width:0}html.spacey-open .owner-header,html.spacey-open .member-header{max-width:100%}html.spacey-open .spacey-panel{width:var(--spacey-width)}}
@media(min-width:1201px) and (max-width:1580px){html[data-owner-workspace].spacey-open body.studio-page .studio-shell{grid-template-columns:150px minmax(255px,var(--studio-editor-track,42fr)) minmax(255px,58fr)!important;gap:12px}html[data-owner-workspace].spacey-open body.studio-page .studio-sidebar{font-size:.85rem}html[data-owner-workspace].spacey-open body.studio-page .editor-panel{padding:18px}html[data-owner-workspace].spacey-open body.studio-page .live-preview{padding:10px}}
@media(max-width:1023px){.spacey-panel{width:100%;max-width:none}.spacey-launcher{right:12px;bottom:12px}.spacey-open body{overflow:hidden}.spacey-panel{padding-bottom:env(safe-area-inset-bottom)}}
@media(prefers-reduced-motion:no-preference){.spacey-launcher{transition:background .2s,transform .2s}}
.spacey-guide-link{display:inline-block;margin:8px 16px 0;color:#5046df;font-size:.82rem;font-weight:800;text-decoration:none}
.spacey-guide-link:hover,.spacey-guide-link:focus-visible{text-decoration:underline}
