/* Keep the workspace navigation and assistant panel; simplify the conversation itself. */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.first-run{position:relative;min-height:100dvh;background:#fff;color:#8540f5;display:grid;place-items:center;padding:100px 24px 64px}
.first-run-center{width:min(960px,100%);min-width:0;text-align:center}
.first-run-line{min-height:3.4em;margin:0 0 48px;display:flex;flex-wrap:wrap;align-content:center;justify-content:center;font-size:clamp(22px,2.6vw,34px);font-weight:400;line-height:1.7;letter-spacing:.01em;word-break:normal;line-break:strict}
.welcome-phrase{display:block;max-width:100%;overflow-wrap:break-word;text-wrap:balance}
.first-run-brand{position:absolute;top:max(24px,env(safe-area-inset-top));left:max(28px,env(safe-area-inset-left));display:flex;align-items:center;gap:10px;font-size:22px;font-weight:500;color:#8540f5}
.first-run-brand img{display:block;object-fit:contain;padding:4px;border-radius:12px;background:transparent}
@media(max-width:480px){.first-run-brand{top:max(20px,env(safe-area-inset-top));left:max(20px,env(safe-area-inset-left))}}
.first-run-start{--color:#8540f5;position:relative;isolation:isolate;z-index:0;display:flex;justify-content:center;align-items:center;min-height:56px;padding:0;border:0;background:transparent;color:#fff;font:inherit;font-size:16px;transition:transform .5s,filter .5s}
.first-run-start .start-label{display:block;min-width:144px;padding:16px 30px;letter-spacing:2px;font-weight:600;background:var(--color);border-radius:2rem;color:#fff}
.first-run-start::before{content:'';position:absolute;z-index:-1;width:110%;height:100%;background:var(--color);border:2px solid #fff;border-radius:2rem;transform:rotate(10deg);opacity:.2;transition:transform .5s,opacity .5s}
.first-run-start:is(:hover,:focus-visible):not(:disabled){cursor:pointer;filter:brightness(1.12);transform:scale(1.07)}
.first-run-start:is(:hover,:focus-visible):not(:disabled)::before{transform:rotate(0deg);opacity:1}
.first-run-start svg{width:0;height:25px;opacity:0;transform:translateX(-200%);transition:width .5s,transform .5s,opacity .5s,margin .5s;flex-shrink:0}
.first-run-start:is(:hover,:focus-visible):not(:disabled) svg{width:25px;margin-right:16px;transform:translateX(0);opacity:1}
.first-run-start:focus-visible{outline:2px solid #8540f5;outline-offset:8px;border-radius:2rem}
.first-run-start:active:not(:disabled){filter:brightness(1.2)}
.first-run-error{color:#a12c4a;font-size:14px;line-height:1.7;margin:24px 0 0}
.conversation-shell{display:grid;grid-template-columns:minmax(0,1fr)}
.conversation-shell.workspace-shell{grid-template-columns:72px minmax(0,1fr)}
.conversation-shell.workspace-shell.profile-open{grid-template-columns:72px minmax(0,1fr) 340px}
.conversation-shell .main{min-width:0;background:#fff}
.conversation-shell .topbar{height:auto;min-height:76px;padding:16px 28px;gap:16px;flex-shrink:0;background:#fff}
.conversation-brand{font-size:22px;font-weight:600;letter-spacing:-.5px;min-height:44px;color:#2c223f;white-space:nowrap}
.conversation-shell .chats-toggle,.quiet-action{height:44px;min-height:44px;border:0;border-radius:8px;background:transparent;box-shadow:none;color:#625d6b;font-size:14px;padding:10px 12px;white-space:nowrap}
.conversation-shell .top-actions{margin-left:auto;gap:6px;min-width:0}
.conversation-shell .scope select{max-width:160px;min-height:44px;font-size:13px;color:#625d6b;text-overflow:ellipsis}
.conversation-shell .avatar-toggle{width:44px;height:44px;flex-shrink:0}
.conversation-shell .rail-button{min-width:44px;min-height:44px}
.conversation-shell .profile-tabs button{min-height:44px}
.conversation-shell .profile-close{width:44px;height:44px;z-index:3}
.profile-backdrop{position:fixed;inset:0;background:#23192f32;z-index:6}
.conversation-shell .chats-toggle:hover,.quiet-action:hover{background:#f6f3fa;color:#37294b}
.conversation-shell .chat-body{width:min(800px,100%);padding:44px 24px 24px}
.conversation-shell .message{margin:0 0 34px;gap:0}
.conversation-shell .message .body{width:100%;max-width:100%}
.conversation-shell .message.user .body{width:auto;max-width:86%}
.conversation-shell .bubble{font-size:16px;line-height:1.85;box-shadow:none}
.conversation-shell .assistant .bubble{padding:0;border:0;border-radius:0;background:transparent;color:#302b36}
.conversation-shell .user .bubble{padding:10px 18px;background:#f3eef9;color:#392c4b;border:0;border-radius:18px}
.speaker{display:block;color:#72667f;font-size:13px;font-weight:600;line-height:1.5;margin-bottom:10px}
.workspace-shell .speaker{display:flex;align-items:center}
.chat-portrait{display:inline-flex;width:36px;height:36px;margin-right:10px;flex-shrink:0;border-radius:50%;overflow:hidden;opacity:1;transition:width .25s,height .25s,margin .25s,opacity .2s}
.chat-portrait img{width:36px;height:36px;object-fit:cover;object-position:center;flex-shrink:0;border-radius:50%}
.workspace-shell.profile-open .chat-portrait{width:0;height:0;margin-right:0;opacity:0}
.workspace-shell:not(.profile-open) .chat-portrait{animation:chat-portrait-in .25s ease-out both}
@keyframes chat-portrait-in{from{opacity:0;transform:scale(.85)}to{opacity:1;transform:scale(1)}}
.conversation-shell .greeting{padding-top:min(17vh,150px)}
.conversation-shell .greeting .bubble{font-size:16px;line-height:1.85;letter-spacing:normal}
.conversation-shell .compose-area{width:min(824px,100%);padding:16px 24px 26px;background:#fff}
.conversation-shell .compose-box{border:1px solid #ddd7e4;box-shadow:0 4px 20px #30204406;border-radius:22px;background:#fff;padding:12px}
.conversation-shell .composer-line{gap:10px;min-height:44px}
.conversation-shell .compose-box textarea{font-size:16px;line-height:26px;min-height:26px;color:#302b36}
.conversation-shell .compose-box textarea::placeholder{color:#79717f}
.attach-action{display:flex;gap:5px;align-items:center;justify-content:center;min-height:44px;padding:0 8px;flex-shrink:0;color:#72667f;font-size:13px;border-radius:10px}
.attach-action svg{width:20px;height:20px}.attach-action:hover{background:#f6f3fa}
.conversation-shell .send{width:44px;height:44px;background:#7750c9;box-shadow:none}.conversation-shell .send svg{width:21px;height:21px}
.conversation-shell .compose-note{font-size:12px;color:#72667f;line-height:1.7}
.conversation-shell .system-note{font-size:14px;color:#746d7c;line-height:1.8}
.conversation-shell button:focus-visible,.conversation-shell textarea:focus-visible,.conversation-shell select:focus-visible{outline:2px solid #7750c9;outline-offset:3px}
.conversation-shell .chat-drawer{left:72px;width:min(340px,calc(100% - 72px));z-index:12;background:#fbf9fd;padding:24px 20px}
.drawer-backdrop{position:fixed;inset:0;background:#23192f32;z-index:11;cursor:default}
.chat-drawer .icon,.chat-drawer .thread,.chat-drawer .new-chat{min-height:44px}
.chat-drawer .thread{font-size:14px;line-height:1.6}.chat-drawer .drawer-footer{font-size:13px;color:#756c80}
.conversation-menu{display:grid;gap:4px}.conversation-menu button{text-align:left;padding:12px;min-height:44px;border-radius:8px;font-size:15px}.conversation-menu button:hover{background:#f3eef9}
.conversation-shell .interaction-card{border:0;background:transparent;padding:0;margin:8px 0 20px;border-radius:0}
.conversation-shell .interaction-heading strong{font-size:16px;line-height:1.8;font-weight:400}
.conversation-shell .interaction-card p{font-size:15px;color:#62586e;line-height:1.85;margin:6px 0 14px}
.conversation-choices{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0 0}
.conversation-choices button{border:1px solid #d8cce6;border-radius:12px;min-height:44px;padding:10px 18px;background:#fff;color:#59416e;font:inherit;font-size:15px;text-align:left}
.conversation-choices button:hover:not(:disabled){background:#f3edf9;border-color:#ac91ca}
.conversation-shell .interaction-actions{margin-top:10px}.conversation-shell .interaction-actions .text-button{font-size:13px;min-height:44px;color:#756a80;padding-left:0}
@media(min-width:1024px) and (max-width:1200px){
 .conversation-shell.workspace-shell.profile-open{grid-template-columns:72px minmax(0,1fr) 300px}
 .conversation-shell .topbar{padding:12px 16px;gap:8px}
 .conversation-shell .scope select{max-width:130px}
}
@media(max-width:1023px){
 .conversation-shell.workspace-shell,.conversation-shell.workspace-shell.profile-open{grid-template-columns:54px minmax(0,1fr)}
 .conversation-shell .rail{padding:16px 0 12px}
 .conversation-shell .rail-nav{gap:8px}
 .conversation-shell .rail-brand{width:44px;height:44px}
 .conversation-shell .rail-button.active:before{left:-5px}
 .conversation-shell .profile-panel{position:fixed;right:0;top:0;bottom:0;width:min(360px,calc(100% - 54px));z-index:7;box-shadow:-15px 0 40px #00000010}
 .conversation-shell .chat-drawer{left:54px;width:min(340px,calc(100% - 54px))}
 .conversation-shell .thread-heading{display:none}
}
@media(max-width:760px){
 .conversation-shell .topbar{min-height:64px;padding:10px 14px;gap:8px;flex-wrap:wrap}
 .conversation-brand{font-size:21px}.conversation-shell .chats-toggle,.quiet-action{font-size:13px;padding:10px 8px}
 .conversation-shell .top-actions{gap:4px}.conversation-shell .scope select{max-width:132px}
 .conversation-shell .chat-body{padding:28px 20px 12px}.conversation-shell .message.user .body{max-width:92%}
 .conversation-shell .compose-area{padding:12px 12px max(14px,env(safe-area-inset-bottom))}
 .conversation-shell .compose-box{padding:8px}.conversation-shell .composer-line{gap:6px}
 .attach-action{padding:0 5px}.attach-action span{display:none}.attach-action svg{width:22px}
 .conversation-shell .greeting .bubble{font-size:16px}
}
@media(max-width:440px){.conversation-shell .top-actions:has(.scope){width:100%;justify-content:flex-end}.conversation-shell .top-actions .scope{margin-right:auto;min-width:0}.conversation-shell .scope select{max-width:120px}.conversation-choices{flex-direction:column;align-items:stretch}}
@media(prefers-reduced-motion:reduce){.first-run *{animation:none!important;transition:none!important}}
@media(prefers-reduced-motion:reduce){.chat-portrait{animation:none!important;transition:none!important}}

.first-run-action{height:70px;display:flex;justify-content:center;align-items:center}
.first-run-start[hidden]{display:none}
.first-run:focus{outline:none}

.execution-details{margin:0 0 14px;border:1px solid #e4deeb;border-radius:12px;background:#fcfaff;color:#63586e;font-size:13px;line-height:1.7}
.execution-details summary{padding:10px 14px;cursor:pointer;min-height:44px;box-sizing:border-box}
.execution-progress{max-height:180px;overflow-y:auto;overscroll-behavior:contain;padding:0 14px 12px;scrollbar-width:thin;overflow-wrap:anywhere}
.execution-progress:focus-visible{outline:2px solid #7750c9;outline-offset:-2px}
.execution-progress ol{margin:0;padding:0;list-style:none}
.execution-progress li{padding:5px 0 5px 16px;position:relative}
.execution-progress li:before{content:'•';position:absolute;left:0;color:#9873c8}
.execution-progress .progress-tool_failed{color:#96502e}
.execution-progress .progress-tool_done:before{content:'✓'}
.progress-commentary{margin-top:8px;border-top:1px solid #ece6f2;padding-top:8px;font-size:13px}
.conversation-shell .stop-task{display:flex;align-items:center;gap:6px;justify-content:center;min-width:64px;min-height:44px;padding:0 10px;border:1px solid #d8cce6;border-radius:12px;color:#694399;background:#f7f2fc;flex-shrink:0;font-size:13px}
.conversation-shell .stop-task:hover{background:#ece2f8}
.conversation-shell .composer-line textarea{min-width:0}
.delivery-state{font-size:12px;color:#72667f;margin-top:6px;text-align:right}
.delivery-state .text-button,.stream-note .text-button{min-height:44px;padding:0 8px;color:#694399}
@media(max-width:440px){.conversation-shell .stop-task{min-width:44px;padding:0 6px}.execution-progress{max-height:144px}}

@media(max-width:440px){.conversation-shell .composer-line{flex-wrap:wrap}.conversation-shell .composer-line textarea{flex-basis:100%;order:-1;min-height:44px}.conversation-shell .composer-line .attach-action{margin-right:auto}}
