/* Nebula conversation workspace. Scoped so it does not alter other agents' pages. */
.workspace-main{max-width:1580px;margin:auto;padding:124px 24px 80px}
.workspace-heading{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:25px}
.workspace-heading h1{font-size:clamp(38px,4.4vw,62px);font-weight:770;letter-spacing:-.058em;line-height:1.12;margin:10px 0 11px}
.workspace-heading p{font-size:14px;color:#aebbd2;line-height:1.7}
.workspace-preview-mark{display:inline-flex;align-items:center;gap:9px;border:1px solid #9c93d950;border-radius:999px;padding:10px 13px;background:#ffffff08;color:#a9dcee;font-size:11px;white-space:nowrap;margin-bottom:9px}
.nebula-workspace{display:grid;grid-template-columns:260px minmax(0,1fr);height:min(800px,calc(100dvh - 242px));min-height:530px;border:1px solid #a78bfa47;border-radius:23px;background:linear-gradient(127deg,#0a0e1f,#070c1e 55%,#0e0a25);box-shadow:0 30px 100px #0008,0 0 55px #7152ce1f;overflow:hidden}
.workspace-sidebar{display:flex;flex-direction:column;min-width:0;border-right:1px solid #ffffff18;background:linear-gradient(153deg,#11102c,#090d1a);padding:23px 13px 19px}
.workspace-sidebrand{display:flex;align-items:center;gap:10px;padding:6px 9px 23px;margin-bottom:17px;border-bottom:1px solid #ffffff14}
.workspace-sidebrand img{width:40px;height:40px;object-fit:contain;border-radius:50%;filter:drop-shadow(0 0 12px #965fff87)}
.workspace-sidebrand strong,.workspace-sidebrand span{display:block}
.workspace-sidebrand strong{letter-spacing:.11em;font-size:12px}
.workspace-sidebrand span{margin-top:5px;color:#929fbd;font-size:10px}
.workspace-sidelabel{font-size:10px;letter-spacing:.15em;font-weight:700;color:#8c9cba;padding:0 13px 14px}
.workspace-topic-stack{display:grid;gap:5px}
.workspace-topic-stack button{display:flex;align-items:center;gap:12px;width:100%;border:1px solid transparent;border-radius:12px;padding:13px 11px;text-align:left;background:transparent;color:#cbd6ee;cursor:pointer;font-size:12px;font-weight:600}
.workspace-topic-stack button>i:first-child{color:#a78bfa;font-size:14px;width:20px;text-align:center}
.workspace-topic-stack button>i:last-child{margin-left:auto;color:#69738f;font-size:10px}
.workspace-topic-stack button:hover{background:#a78bfa20;border-color:#a78bfa38}
.workspace-sidebottom{margin-top:auto;padding:14px 7px 0}
.workspace-offline-badge{background:#66d7d10b;border:1px solid #78d6d12e;border-radius:13px;padding:12px;font-size:11px;line-height:1.55;color:#9faec9;margin-bottom:16px}
.workspace-offline-badge i{color:#72e4d4;margin-right:7px}
.workspace-offline-badge strong{color:#d9edf3;font-size:11px}
.workspace-offline-badge span{display:block;margin-top:6px}
.workspace-side-link{display:block;padding:11px 5px;color:#abb8d5;font-size:11px}
.workspace-side-link:hover{color:#67e8f9}
.workspace-side-link i{padding-right:8px}
.workspace-chat{display:flex;flex-direction:column;min-width:0;min-height:0;background:radial-gradient(ellipse 44% 32% at 50% 21%,#6b35bd1c,transparent 100%),linear-gradient(180deg,#070c1a,#050815)}
.workspace-chat-header{display:flex;gap:12px;align-items:center;padding:17px 23px;border-bottom:1px solid #ffffff13;background:#0e132660}
.workspace-avatar{width:43px;height:43px;border:1px solid #a78bfa49;border-radius:50%;background:#9b59fe19;display:grid;place-items:center;box-shadow:0 0 22px #9967eb2d}
.workspace-avatar img{width:36px;height:36px;object-fit:contain}
.workspace-chat-identity{flex:1;min-width:0}
.workspace-chat-identity strong{display:block;font-weight:750;font-size:15px}
.workspace-chat-identity>span{display:flex;align-items:center;gap:7px;color:#9dafce;font-size:10px;margin-top:5px}
.workspace-status-dot{width:7px;height:7px;background:#88e8d1;border-radius:50%;box-shadow:0 0 8px #5fdbc5}
.workspace-toolbar{display:flex;gap:7px}
.workspace-toolbar button{border:1px solid #ffffff18;background:#ffffff0a;border-radius:11px;width:39px;height:39px;display:grid;place-items:center;color:#b9c4df;cursor:pointer;font-size:14px}
.workspace-toolbar button:hover{border-color:#9b84fa;color:#fff}
.workspace-transcript{flex:1;min-height:0;overflow-y:auto;padding:25px clamp(16px,3.6vw,55px);scrollbar-width:thin;scrollbar-color:#b18dfb45 transparent;overscroll-behavior:contain}
.workspace-welcome{max-width:680px;margin:7px auto 0;display:flex;flex-direction:column;align-items:center;text-align:center}
.workspace-welcome-orbit{display:grid;place-items:center;width:130px;height:130px;border:1px solid #a78bfa57;border-radius:50%;box-shadow:0 0 48px #8952fa35,inset 0 0 30px #7e50c92b;animation:workspace-breath 7s ease-in-out infinite alternate;margin-bottom:20px;background:#40207a14}
.workspace-welcome-orbit img{width:120px;height:120px;object-fit:contain}
.workspace-welcome h2{font-size:clamp(27px,3vw,39px);font-weight:750;letter-spacing:-.05em;margin:13px 0 9px}
.workspace-welcome>p{color:#a4b2ca;font-size:13px;line-height:1.8;max-width:530px}
.workspace-starters{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:min(100%,540px);margin-top:23px}
.workspace-starters button{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 17px;border:1px solid #978cf444;border-radius:13px;background:linear-gradient(125deg,#18162fa8,#0a14249c);color:#d9e3f5;font-weight:650;text-align:left;font-size:12px;cursor:pointer}
.workspace-starters button:hover{border-color:#68daf1;background:#1d2949b5}
.workspace-starters button i{font-size:10px;color:#8cdaf2}
.workspace-turn{display:flex;flex-direction:column;gap:10px;margin-bottom:22px;max-width:min(680px,93%)}
.workspace-turn.is-user{align-items:flex-end;margin-left:auto;max-width:min(600px,90%)}
.workspace-turn.is-assistant{align-items:flex-start;margin-right:auto}
.workspace-turn-label{display:flex;align-items:center;gap:8px;font-size:10px;color:#9dabce;font-weight:700;letter-spacing:.04em}
.workspace-turn.is-user .workspace-turn-label{display:none}
.workspace-turn-label img{width:20px;height:20px;object-fit:contain}
.workspace-turn-bubble{background:#18213b9c;border:1px solid #ffffff16;padding:14px 17px;border-radius:16px 16px 16px 5px;line-height:1.85;font-size:13px;color:#e5eafa;white-space:pre-wrap;overflow-wrap:anywhere}
.workspace-turn.is-user .workspace-turn-bubble{background:linear-gradient(128deg,#6843bb,#385aaf);color:#fff;border-color:#929af963;border-radius:16px 16px 5px 16px}
.workspace-references{display:flex;gap:8px;flex-wrap:wrap}
.workspace-references a{border:1px solid #67e8f946;border-radius:999px;padding:9px 12px;background:#67e8f912;color:#9ce5ee;font-weight:650;font-size:11px}
.workspace-references a:hover{background:#67e8f92c}
.workspace-references i{margin-left:7px;font-size:9px}
.workspace-compose-wrap{padding:18px clamp(16px,3.6vw,55px) 15px;border-top:1px solid #ffffff10;background:#070a17}
.workspace-compose{display:flex;align-items:end;gap:10px;border:1px solid #a78bfa5a;border-radius:17px;background:#13172ae8;padding:11px 12px 11px 17px;box-shadow:0 0 25px #8d62ec14}
.workspace-compose:focus-within{border-color:#67e8f9b5}
.workspace-compose textarea{flex:1;resize:none;min-width:0;min-height:47px;max-height:150px;background:transparent;color:#f3f5ff;border:0;outline:0;font:inherit;font-size:13px;line-height:1.6;padding:12px 0}
.workspace-compose textarea::placeholder{color:#8492b2}
.workspace-send{width:44px;height:44px;flex-shrink:0;border:1px solid #ffffff29;background:linear-gradient(110deg,#7c3aed,#345ddb);border-radius:12px;color:#fff;display:grid;place-items:center;cursor:pointer}
.workspace-send:hover{filter:brightness(1.16)}
.workspace-compose-wrap>p{font-size:10px;color:#929ebb;text-align:center;margin:11px 0 0;line-height:1.5}
.workspace-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@keyframes workspace-breath{to{box-shadow:0 0 67px #8952fa63,inset 0 0 40px #7e50c950;transform:scale(1.03)}}
@media(max-width:1100px){.nebula-workspace{grid-template-columns:228px minmax(0,1fr)}.workspace-sidebar{padding:16px 8px}.workspace-heading p{max-width:520px}.workspace-preview-mark{font-size:10px}}
@media(max-width:800px){.workspace-main{padding:108px 14px 48px}.nebula-workspace{grid-template-columns:1fr;height:min(750px,calc(100dvh - 225px));min-height:470px}.workspace-sidebar{display:none}.workspace-heading{display:block}.workspace-preview-mark{margin-top:9px}.workspace-chat-header{padding:13px 15px}.workspace-compose-wrap{padding:12px 12px 13px}.workspace-transcript{padding:20px 17px}}
@media(max-width:500px){.workspace-main{padding:105px 10px 27px}.workspace-heading{padding:0 7px}.workspace-heading h1{font-size:35px}.workspace-heading p{font-size:12px}.workspace-preview-mark{font-size:9px}.nebula-workspace{height:calc(100dvh - 250px);min-height:460px;border-radius:17px}.workspace-welcome-orbit{width:88px;height:88px;margin:0 0 15px}.workspace-welcome-orbit img{width:84px;height:84px}.workspace-welcome h2{font-size:25px}.workspace-welcome>p{font-size:12px}.workspace-starters{grid-template-columns:1fr 1fr;gap:8px;margin-top:17px}.workspace-starters button{font-size:10px;padding:12px 10px}.workspace-transcript{padding:15px}.workspace-turn-bubble{font-size:12px;padding:11px 12px}.workspace-compose textarea{font-size:12px}.workspace-compose-wrap>p{font-size:9px}}
@media(prefers-reduced-motion:reduce){.workspace-welcome-orbit{animation:none!important}}
