.agent-main{padding:22px!important;overflow:hidden!important}.agent-main>.content-wrap{max-width:none!important;margin:0!important;padding:0!important}#agent-root{min-width:0}.agent-shell{position:relative;isolation:isolate;display:flex;flex-direction:column;min-height:560px;height:calc(100dvh - 130px);border:1px solid #dde5d1;border-radius:24px;overflow:hidden;background:radial-gradient(#cbd5be80 1px,transparent 1px) 0 0/24px 24px,#f8faf4;color:#253120}.agent-shell:before,.agent-shell:after{content:'';position:absolute;z-index:-1;pointer-events:none;width:320px;height:320px;border-radius:50%;filter:blur(55px);opacity:.38}.agent-shell:before{left:5%;top:4%;background:#d0ed8e}.agent-shell:after{right:8%;bottom:13%;background:#cabade}.agent-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:23px 27px;border-bottom:1px solid #dce5d080;background:#ffffff70;backdrop-filter:blur(16px)}.agent-head h1{font-size:24px;letter-spacing:-.7px;margin:6px 0 0}.agent-head h1 small{font-size:12px;color:#879375;font-weight:550;letter-spacing:0}.agent-head .eyebrow{font-size:9px;color:#698447;letter-spacing:.15em}.agent-head-actions{display:flex;gap:5px}.agent-shell button{cursor:pointer;font:inherit;color:inherit}.agent-shell button:disabled{cursor:not-allowed;opacity:.5}.agent-shell button:focus-visible,.agent-shell textarea:focus-visible,.agent-shell select:focus-visible{outline:2px solid #789e38;outline-offset:3px}.agent-shell [data-agent]{display:inline-flex;align-items:center;justify-content:center;flex:none;width:33px;height:33px;border:0;border-radius:9px;background:transparent;color:#63764f}.agent-shell [data-agent]:hover{background:#e9f0df}.agent-shell svg{width:18px;height:18px;flex:none}.agent-layout{display:grid;grid-template-columns:minmax(0,1fr) 235px;flex:1;min-height:0}.agent-conversation{display:flex;flex-direction:column;min-width:0;min-height:0}.agent-messages{flex:1;overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:24px 32px;scrollbar-width:thin}.agent-welcome{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;min-height:100%;padding:24px 5px}.agent-orb{display:grid;place-items:center;width:78px;height:78px;border-radius:27px;background:linear-gradient(135deg,#e3faba,#f1f5e9);box-shadow:0 10px 45px #74844d20;color:#739735;font-size:39px}.agent-welcome h2{margin:22px 0 9px;font-size:clamp(21px,2.3vw,31px);letter-spacing:-1px}.agent-welcome p{max-width:340px;color:#7e8a73;font-size:13px;line-height:1.7}.agent-suggestions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:17px}.agent-suggestions button{background:#ffffffb5;border:1px solid #dce5d2;border-radius:12px;padding:10px 12px;font-size:11px}.agent-message{max-width:850px;margin:0 auto 22px;line-height:1.7;font-size:13px;overflow-wrap:anywhere}.agent-author{display:block;font-size:10px;font-weight:800;letter-spacing:.02em;color:#6b8054;margin-bottom:7px}.agent-message.user{max-width:80%;margin-right:0;padding:13px 17px;background:#e9f2da;border:1px solid #dce7ce;border-radius:18px 18px 4px 18px}.agent-message.user .agent-author{color:#879376}.agent-prose{white-space:pre-wrap}.agent-prompt{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:12px;background:#ffffffe6;border:1px solid #d9e4cc;border-radius:13px;padding:16px;margin:12px 0;box-shadow:0 5px 18px #41533208}.agent-answer-actions{display:flex;gap:3px;margin-top:8px}.agent-answer-actions [data-agent]{width:29px;height:29px}.agent-answer-actions svg{width:15px;height:15px}.agent-message-images{display:flex;gap:8px;margin:7px 0 10px}.agent-message-images img{max-width:160px;max-height:150px;object-fit:contain;border-radius:10px;background:#fff}.agent-compose-wrap{flex:none;padding:13px 26px 17px;background:linear-gradient(0deg,#f8faf4 70%,#f8faf400)}.agent-compose{padding:12px 13px 9px;border:1px solid #d4dfc7;border-radius:18px;background:#ffffffed;box-shadow:0 7px 28px #3c4c2310}.agent-compose textarea{display:block;width:100%;min-height:65px;max-height:180px;resize:vertical;border:0;background:transparent;color:#26351f;font:inherit;font-size:13px;line-height:1.55;padding:6px 3px;outline:none}.agent-compose textarea::placeholder{color:#94a088}.agent-compose-bottom,.agent-compose-bottom>div{display:flex;align-items:center;gap:5px}.agent-compose-bottom{justify-content:space-between}.agent-compose-status{font-size:9px;color:#839177;margin-left:5px}.agent-send{display:grid;place-items:center;width:34px;height:34px;flex:none;border:0;border-radius:11px;background:#cdf573;color:#3d5c1d}.agent-compose-note{font-size:9px;color:#8a957e;text-align:center;margin:9px 0 0}.agent-attachments{display:flex;gap:8px}.agent-attachments>div{position:relative;width:55px;height:55px}.agent-attachments img{width:100%;height:100%;object-fit:cover;border-radius:8px}.agent-attachments button{position:absolute;right:-5px;top:-5px;border:0;width:20px;height:20px;border-radius:50%;background:#253120;color:#fff}.agent-chat-organize{display:flex;align-items:center;gap:7px;margin:9px 0 -4px;font-size:10px;color:#849178}.agent-chat-organize label{display:flex;align-items:center;gap:5px}.agent-chat-organize select{max-width:160px;border:1px solid #dce5d2;border-radius:6px;padding:4px;background:#ffffff80;color:#627452;font:inherit}.agent-chat-organize>span{margin-left:auto;font-size:9px}.agent-history{display:flex;flex-direction:column;border-left:1px solid #dce5d0;padding:18px 15px;background:#ffffff80;min-height:0}.agent-history-head{display:flex;align-items:center;justify-content:space-between;font-size:12px}.agent-space-filter{width:100%;margin:12px 0;padding:8px 9px;border:1px solid #dce5d2;border-radius:9px;background:#fff;color:#647451;font:inherit;font-size:11px}.agent-history-list{flex:1;min-height:0;overflow:auto;scrollbar-width:thin}.agent-history-group{margin:14px 0}.agent-history-group>span{display:flex;align-items:center;gap:7px;color:#839178;font-size:10px;font-weight:700;margin-bottom:7px}.agent-history-group>span svg{width:14px;height:14px}.agent-history-row>[data-agent-chat]{display:block;max-width:100%;width:100%;border:0;border-radius:8px;background:transparent;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;padding:9px 8px;color:#57634c}.agent-history-row>[data-agent-chat]:hover,.agent-history-row>[data-agent-chat].active{background:#eaf3dc;color:#344f20}.agent-retention{font-size:9px;color:#92a084;line-height:1.5;margin-top:15px}.agent-space-form,.agent-rename-form{display:flex;gap:5px}.agent-space-form input,.agent-rename-form input{width:100%;min-width:0;border:1px solid #d9e3cd;border-radius:7px;font:inherit;font-size:11px;padding:8px}.agent-space-form button,.agent-rename-form button{border:0;border-radius:7px;background:#e3f2cb;padding:7px;font-size:10px}.agent-error,.agent-connection{font-size:11px;margin:0 0 10px;line-height:1.5}.agent-error{color:#9d4536}.agent-error button{border:0;background:none;text-decoration:underline;font:inherit}.agent-connection{color:#7b896e}.agent-thinking{display:flex;align-items:center;gap:4px;color:#82906f;font-size:11px;padding:10px}.agent-thinking i{width:5px;height:5px;border-radius:50%;background:#95b36f;animation:agent-pulse 1.2s infinite}.agent-thinking i:nth-child(2){animation-delay:.2s}.agent-thinking i:nth-child(3){animation-delay:.4s}@keyframes agent-pulse{50%{opacity:.3;transform:translateY(-3px)}}.agent-launcher{position:fixed;right:24px;bottom:24px;z-index:70;display:grid;place-items:center;width:55px;height:55px;border:1px solid #c8e787;border-radius:19px;background:#d1f783;color:#3b581e;box-shadow:0 8px 26px #22311c30;cursor:pointer}.agent-launcher svg{width:24px;height:24px}.agent-launcher[hidden],.agent-floating[hidden]{display:none!important}.agent-floating{position:fixed;right:24px;bottom:90px;z-index:71;width:min(460px,calc(100vw - 32px));height:min(690px,calc(100dvh - 115px));box-shadow:0 18px 80px #15251540;border-radius:22px;overflow:hidden}.agent-floating .agent-shell{height:100%;min-height:0;border-radius:22px}.agent-shell.compact .agent-layout{grid-template-columns:minmax(0,1fr)}.agent-shell.compact .agent-history{display:none}.agent-shell.compact.history-open .agent-conversation{display:none}.agent-shell.compact.history-open .agent-history{display:flex;border-left:0}.agent-shell.compact .agent-head{padding:16px}.agent-shell.compact .agent-head h1{font-size:19px}.agent-shell.compact .agent-head .eyebrow{font-size:8px}.agent-shell.compact .agent-head-actions{gap:0}.agent-shell.compact .agent-messages{padding:18px}.agent-shell.compact .agent-compose-wrap{padding:10px 13px 14px}.agent-shell.compact .agent-compose-status{font-size:8px}.agent-shell.compact .agent-chat-organize{flex-wrap:wrap}.agent-shell.compact .agent-welcome h2{font-size:24px}.agent-shell.compact .agent-message-images img{max-width:110px}.agent-main~*{min-width:0}
@media(max-width:1100px){.agent-layout{grid-template-columns:minmax(0,1fr) 195px}.agent-messages{padding:20px}.agent-compose-wrap{padding:12px 18px 16px}}
@media(max-width:800px){.agent-main{padding:12px!important}.agent-shell{height:calc(100dvh - 152px);min-height:480px;border-radius:19px}.agent-layout{grid-template-columns:minmax(0,1fr)}.agent-history{display:none}.history-open .agent-conversation{display:none}.history-open .agent-history{display:flex}.agent-head{padding:17px}.agent-head h1{font-size:22px}.agent-messages{padding:17px}.agent-compose-wrap{padding:9px 13px 13px}.agent-compose-status{font-size:8px}.agent-launcher{right:16px;bottom:16px}.agent-floating{right:16px;bottom:80px}.agent-message-images img{max-width:110px}.agent-chat-organize>span{display:none}}
@media(prefers-reduced-motion:reduce){.agent-thinking i{animation:none}}
/* Keep the account progress control from covering the Studio chat launcher. */
body:has(.studio-shell) .profile-progress-widget{left:18px;right:auto}
.agent-launcher{z-index:1200}.agent-floating{z-index:1201}
@media(max-width:800px){body:has(.studio-shell) .profile-progress-widget{left:12px;right:auto}}

body:has(.agent-main) .profile-progress-widget,body:has(.agent-floating:not([hidden])) .profile-progress-widget{display:none}

@media(max-width:800px){.agent-main .agent-shell{min-height:360px}}

.agent-history-row{display:flex;align-items:center;gap:3px;min-width:0}.agent-history-row>[data-agent-chat]{flex:1;min-width:0}.agent-history-row>[data-agent="delete-chat"]{width:30px;height:30px;color:#8b7269}.agent-history-row>[data-agent="delete-chat"]:hover{background:#f7e7e2;color:#a3402b}
.agent-group-heading{display:flex;align-items:center;justify-content:space-between;gap:5px}.agent-group-heading>span{display:flex;align-items:center;gap:7px;min-width:0;overflow-wrap:anywhere;color:#718260;font-size:10px;font-weight:700}.agent-group-heading svg{width:14px;height:14px;flex:none}.agent-group-heading [data-agent],.agent-history-row>[data-agent="manage-chat"]{flex:none;width:28px;height:28px}.agent-manage-form{display:grid;gap:8px;margin:6px 0 12px;padding:10px;background:#f0f6e7;border:1px solid #d4dfc7;border-radius:10px;font-size:11px}.agent-manage-form label{display:grid;gap:4px}.agent-manage-form input,.agent-manage-form select{width:100%;min-width:0;border:1px solid #cbd8bd;border-radius:6px;padding:7px;background:#fff;color:#354929;font:inherit}.agent-manage-form>div{display:flex;flex-wrap:wrap;gap:5px}.agent-manage-form button{border:0;border-radius:6px;padding:7px;background:#dcecc7;color:#354929;font:inherit;cursor:pointer}.agent-manage-form [data-agent^="delete-"]{background:#f7e7e2;color:#963c2b}.agent-manage-form small,.agent-empty-history{color:#7a896f;font-size:10px;line-height:1.5}.agent-chat-organize{flex-wrap:wrap}.agent-chat-switch-label{min-width:0}.agent-chat-switch{max-width:165px}.agent-chat-organize label{min-width:0}.agent-history button:focus-visible,.agent-manage-form input:focus-visible,.agent-manage-form select:focus-visible,.agent-chat-organize select:focus-visible{outline:2px solid #6a923f;outline-offset:2px}
.agent-shell .agent-manage-form [data-agent]{display:inline-block;width:auto;height:auto;min-height:32px;padding:7px;white-space:nowrap}
.agent-history-item{padding:4px 0 10px;border-bottom:1px solid #e4e9de}.agent-shell .agent-history-controls{display:flex;flex-wrap:wrap;gap:5px;padding:2px 8px 4px}.agent-shell .agent-history-controls [data-agent]{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;min-height:28px;padding:5px;border:0;border-radius:6px;background:transparent;color:#4e653e;cursor:pointer}.agent-shell .agent-history-controls [data-agent]:hover{background:#eaf3dc}.agent-shell .agent-history-controls [data-agent^="delete-"]{color:#9a4935}.agent-shell .agent-space-actions{padding-left:0;margin:4px 0 7px}.agent-history .agent-error{background:#fff0eb;border-radius:8px;padding:9px}

.agent-shell .agent-history-controls [data-agent] svg{width:16px;height:16px;flex:none}.agent-shell .agent-history-controls [data-agent]:focus-visible{outline:2px solid #789c47;outline-offset:2px}

.agent-shell .agent-group-heading,.agent-shell .agent-history-row{display:flex;align-items:center;gap:4px;min-width:0}
.agent-shell .agent-group-heading>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.agent-shell .agent-history-row>[data-agent-chat]{flex:1;min-width:0;width:auto}
.agent-shell .agent-history-controls{flex:none;flex-wrap:nowrap;gap:1px;padding:0;margin:0}
.agent-shell .agent-history-controls [data-agent]{width:24px;height:26px;min-height:26px;padding:4px}
.agent-shell .agent-history-item{padding:2px 0 5px}.agent-shell .agent-group-heading{margin-bottom:4px}
/* Keep identities and prompt-specific controls beside their content. */
.agent-message{display:grid;grid-template-columns:32px minmax(0,1fr);gap:11px;align-items:start}.agent-avatar{display:grid;place-items:center;width:32px;height:32px;overflow:hidden;border-radius:50%;background:#e4ecd9;color:#52623e;font-size:11px;font-weight:750;flex:none}.agent-avatar img{display:block;width:100%;height:100%;object-fit:cover}.agent-avatar-brand{background:#171814;border-radius:10px}.agent-avatar-brand img{object-fit:contain}.agent-message-body{min-width:0}.agent-message.user{padding:0;background:none;border:0;border-radius:0;grid-template-columns:minmax(0,1fr) 32px}.agent-message.user>.agent-avatar{grid-column:2;grid-row:1}.agent-message.user>.agent-message-body{grid-column:1;grid-row:1;padding:13px 17px;background:#e9f2da;border:1px solid #dce7ce;border-radius:18px 18px 4px 18px}.agent-prompt-wrap{display:flex;align-items:flex-start;gap:8px;margin:12px 0}.agent-prompt-wrap .agent-prompt{flex:1;min-width:0;margin:0}.agent-shell .agent-prompt-copy{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:none;border:1px solid #d9e4cc;border-radius:9px;padding:9px;background:#fff;color:#57733c;font-size:10px;font-weight:700}.agent-prompt-copy svg{width:14px;height:14px}.agent-prompt-copy:hover{background:#e9f0df}.agent-thinking{align-items:flex-start;gap:11px;padding:0;max-width:850px;margin:0 auto 22px}.agent-thinking>div{padding-top:7px}.agent-thinking i{display:inline-block;margin-right:3px}.agent-messages{overflow-anchor:none}@media(max-width:600px){.agent-message.user{max-width:94%}.agent-prompt-copy span{display:none}.agent-shell .agent-prompt-copy{padding:9px}.agent-message{gap:8px}}

.agent-reference-image{display:inline-flex;position:relative;max-width:160px;max-height:150px;overflow:hidden;border-radius:10px;background:#fff}.agent-reference-image img[hidden]{display:none!important}.agent-image-unavailable{display:none}.agent-reference-image.unavailable{width:160px;min-height:95px;border:1px dashed #cbd8be;background:#f5f8ef}.agent-reference-image.unavailable .agent-image-unavailable{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;width:100%;padding:12px 7px;color:#758367;font-size:11px;line-height:1.4;text-align:center}.agent-image-unavailable svg{width:23px;height:23px}.agent-message-images{flex-wrap:wrap}.agent-attachments .agent-reference-image{width:55px;height:55px;min-height:0}.agent-attachments .agent-image-unavailable{padding:3px!important;gap:2px!important;font-size:8px!important}.agent-attachments .agent-image-unavailable svg{width:14px;height:14px}.agent-shell.compact .agent-reference-image{max-width:110px}@media(max-width:800px){.agent-reference-image{max-width:110px}}
