/* Unified online creation: all styles stay within the web product. */
[hidden]{display:none!important}
.studio-modes{margin-bottom:24px}.studio-modes button{min-height:52px}
.assistant-studio{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px;align-items:start}
.assistant-sidebar{display:flex;flex-direction:column;gap:18px;min-width:0;padding:6px 0}.assistant-sidebar>.primary{width:100%}
.assistant-search-label{font-size:12px;color:#65758a}.assistant-search-label input{margin-top:8px;width:100%;background:#fff}
.assistant-list{display:grid;gap:8px;max-height:540px;overflow:auto}
.assistant-thread-row{display:grid;grid-template-columns:1fr auto;gap:2px;padding:6px;border:1px solid transparent;border-radius:12px}.assistant-thread-row:has([aria-pressed=true]){border-color:#d5dfed;background:#eaf0f7}
.assistant-thread-name{justify-content:flex-start;grid-column:1/-1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left!important;color:#29476b!important;font-weight:600!important}
.assistant-thread-row button{border:0;background:transparent;padding:8px;font-size:12px}.assistant-thread-row button:not(.assistant-thread-name){text-align:left;color:#758297}
.assistant-main{min-width:0;overflow:hidden;border:1px solid #dce4ec;border-radius:22px;background:#fff;box-shadow:0 12px 40px #13315108}
.assistant-heading{display:flex;gap:16px;justify-content:space-between;align-items:center;border-bottom:1px solid #edf0f4;padding:24px 28px}.assistant-heading>div{min-width:0}.assistant-heading h1{font-size:21px;line-height:1.5;overflow-wrap:anywhere;margin:6px 0 0}.assistant-heading>button{flex-shrink:0;font-size:12px}
.assistant-messages{height:min(58vh,660px);min-height:330px;overflow:auto;padding:28px;overscroll-behavior:contain;scrollbar-gutter:stable}
.assistant-empty{display:flex;min-height:320px;flex-direction:column;justify-content:center;align-items:center;text-align:center}.assistant-empty h2{font-size:30px;color:#19395d;letter-spacing:-1px;margin:18px 0 12px}.assistant-empty p{max-width:430px;line-height:1.8;color:#6a7c91}.assistant-examples{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;margin:14px 0}.assistant-examples button{max-width:280px;font-size:13px;background:#f8fafc;text-align:left;line-height:1.7}
.assistant-message{max-width:92%;width:fit-content;margin-bottom:28px;overflow-wrap:anywhere}.assistant-user{margin-left:auto;background:#eff4f9;border:1px solid #e5ecf4;padding:16px 20px;border-radius:18px 18px 4px 18px}.assistant-reply{padding:0 2px}.assistant-speaker{font-size:11px;display:block;color:#7c8da2;margin-bottom:10px;letter-spacing:.04em}.assistant-markdown{font-size:14px;line-height:1.8;color:#233b57}.assistant-markdown p{margin:8px 0;white-space:pre-wrap}.assistant-markdown h3,.assistant-markdown h4,.assistant-markdown h5{font-size:16px;margin:14px 0 8px}.assistant-markdown ul{padding-left:23px}.assistant-markdown pre{overflow:auto;white-space:pre-wrap;max-width:100%;padding:16px;background:#f2f5f9;border-radius:10px}.assistant-markdown code{background:#edf1f7;border-radius:4px;padding:2px 4px}.assistant-stream-state,.assistant-image-state{color:#68819d;font-size:13px;line-height:1.8}
.assistant-images{display:flex;flex-wrap:wrap;gap:14px}.assistant-image-card{margin:12px 0 0;max-width:320px;min-width:120px}.assistant-image-open{display:block;padding:0;border:0;background:transparent}.assistant-image-card img{display:block;max-width:100%;max-height:340px;object-fit:contain;border-radius:12px}.assistant-image-card figcaption{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.assistant-image-card figcaption button{font-size:12px;padding:8px 10px}
.assistant-composer{border-top:1px solid #e6ebf2;padding:20px 26px;background:#fbfcfe}.assistant-composer>label{font-size:12px;color:#75879c}.assistant-composer textarea{width:100%;margin:8px 0 0;min-height:90px;max-height:240px;resize:vertical;line-height:1.8;background:#fff}.assistant-composer-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:12px}.assistant-composer-actions .primary{margin-left:auto;min-width:90px}.assistant-composer-actions>.quiet{font-size:11px}.assistant-attach{position:relative;padding:9px 6px;cursor:pointer;margin:0!important;font-size:13px}.assistant-attach input{position:absolute;opacity:0;width:1px;height:1px}.assistant-attach:focus-within{outline:2px solid #527ba9;outline-offset:3px;border-radius:6px}.assistant-tip{font-size:11px!important;line-height:1.7!important}.assistant-composer p{margin:8px 0 0}.assistant-references{display:flex;flex-wrap:wrap;gap:8px}.assistant-reference{margin-top:12px;display:grid;gap:3px}.assistant-reference img{width:64px;height:64px;object-fit:contain;border:1px solid #dce4ed;border-radius:8px}.assistant-reference button{font-size:11px;padding:4px}
.online-image-viewer{width:min(94vw,1000px);max-width:1000px}.online-image-viewer .actions{flex-wrap:wrap}.online-image-frame{height:60vh;overflow:auto;background:#f0f3f6;display:block;text-align:center;border-radius:12px;padding:16px}.online-image-frame img{width:100%;height:auto;object-fit:contain;vertical-align:top}.online-image-viewer input[type=range]{width:140px}.online-watermark-dialog{width:min(92vw,520px)}.online-watermark-dialog label:has([type=checkbox]){display:flex;align-items:center;gap:12px}.online-watermark-dialog input[type=checkbox]{width:18px;height:18px}.watermark-logo-preview{width:100px;height:80px;object-fit:contain;border:1px solid #dde5ee;border-radius:8px}.online-product-editor{width:min(92vw,650px)}.online-product-editor textarea{min-height:110px}.online-reference-selector{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.online-reference-selector label{position:relative;border:1px solid #d6e1ed;border-radius:10px;padding:10px;cursor:pointer}.online-reference-selector input{position:absolute;top:8px;left:8px;width:20px;height:20px;accent-color:#315d8c}.online-reference-selector img{width:100%;height:100px;object-fit:contain}.online-reference-selector label:has(:checked){border-color:#3c6d9e;background:#edf4fb}.shot-body>button{margin:8px 8px 0 0;font-size:12px}.shot-image[role=button],.references img[role=button]{cursor:zoom-in}.project-top{flex-wrap:wrap;gap:8px}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[role=button]:focus-visible{outline:3px solid #6398ca;outline-offset:3px}
@media(max-width:900px){.assistant-studio{grid-template-columns:minmax(0,1fr);gap:16px}.assistant-sidebar{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:end;gap:12px}.assistant-sidebar>.quiet{display:none}.assistant-search-label{margin:0}.assistant-search-label input{margin-top:4px}.assistant-list{grid-column:1/-1;display:flex;max-height:140px;overflow:auto}.assistant-thread-row{flex:0 0 190px}.assistant-heading{padding:18px}.assistant-messages{height:52vh}.assistant-sidebar>.primary{height:46px}}
@media(max-width:520px){.assistant-messages{padding:20px 14px;min-height:280px;height:48vh}.assistant-message{max-width:100%}.assistant-user{max-width:95%;padding:12px 15px}.assistant-composer{padding:16px}.assistant-composer-actions>.quiet{width:100%;order:5}.assistant-empty h2{font-size:26px}.assistant-heading h1{font-size:18px}.assistant-heading{gap:8px}.assistant-heading .eyebrow{font-size:9px}.online-image-frame{height:55vh}.online-reference-selector{grid-template-columns:repeat(2,minmax(0,1fr))}.assistant-main{border-radius:16px}}
@media(prefers-reduced-motion:reduce){.assistant-messages{scroll-behavior:auto}}

@media(max-width:520px){.studio-modes button{flex-direction:column;gap:3px;white-space:nowrap}.studio-modes span{font-size:10px;white-space:normal}}

/* Local UI candidate: one viewport for chat, independent scrolling regions.
   The suite project columns and cards keep their existing layout. */
.account-menu{position:relative;font-size:13px}
.account-menu>summary{cursor:pointer;list-style:none;padding:9px 14px;border:1px solid #dce1e8;border-radius:8px;background:white;white-space:nowrap}
.account-menu>summary::after{content:'⌄';margin-left:10px;color:#78869b}
.account-menu>summary::-webkit-details-marker{display:none}
#account-menu-items{position:absolute;right:0;top:calc(100% + 8px);z-index:35;width:190px;padding:8px;display:grid;gap:4px;background:#fff;border:1px solid #dce4ed;border-radius:12px;box-shadow:0 12px 32px #17314d20;max-height:60dvh;overflow:auto;overscroll-behavior:contain}
#account-menu-items button{text-align:left;justify-content:flex-start;width:100%;border:0;margin:0}
html:has(body.assistant-viewport){overflow:hidden}
body.assistant-viewport{height:var(--assistant-viewport-height,100dvh);overflow:hidden;display:flex;flex-direction:column}
.assistant-viewport .app-header{flex:none;position:relative;min-height:64px;padding:10px 24px;gap:16px}
.assistant-viewport .brand-mark{width:36px;height:36px}
.assistant-viewport .brand-copy small{display:none}
.assistant-viewport main{flex:1;min-height:0;width:100%;max-width:1600px;padding:14px 24px 20px;display:flex}
.assistant-viewport #workspace{display:flex;flex:1;min-height:0;min-width:0;flex-direction:column}
.assistant-viewport .studio-modes{flex:none;margin:0 0 12px}
.assistant-viewport .studio-modes button{min-height:40px;padding:8px 16px}
.assistant-viewport .footer-note,.assistant-viewport .site-footer{display:none}
.assistant-viewport #capture-connection-panel{flex:none;max-height:35%;overflow:auto;overscroll-behavior:contain}
.assistant-studio{flex:1;min-height:0;position:relative;grid-template-columns:220px minmax(0,1fr);gap:18px;align-items:stretch}
.assistant-sidebar{min-height:0;overflow:hidden;padding:4px 0;gap:12px}
.assistant-sidebar>.primary,.assistant-search-label,.assistant-sidebar>.quiet{flex:none}
.assistant-sidebar>.quiet{font-size:11px;margin:0}
.assistant-list{display:flex;flex-direction:column;flex:1;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
.assistant-thread-row{flex:none;min-width:0}
.assistant-thread-name{display:block;min-width:0;max-width:100%}
.assistant-main{display:flex;flex-direction:column;min-height:0;border-radius:16px}
.assistant-heading{flex:none;padding:12px 22px;gap:12px}
.assistant-heading>div{flex:1}
.assistant-heading .eyebrow{display:none}
.assistant-heading h1{font-size:16px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.assistant-heading>button{min-height:32px;padding:5px 10px}
.assistant-message-pane{flex:1;min-height:0;position:relative;overflow:hidden}
.assistant-messages{height:100%;min-height:0;padding:24px max(22px,calc((100% - 860px)/2));overflow-x:hidden;overflow-y:auto;overflow-anchor:none}
.assistant-empty{min-height:100%;padding:20px 0}
.assistant-empty h2{font-size:26px;margin:10px 0}
.assistant-message{max-width:100%;margin-bottom:22px}
.assistant-user{max-width:88%;padding:12px 16px}
.assistant-image-card{width:260px;max-width:100%;min-width:0}
.assistant-image-open{width:100%;aspect-ratio:3/4;background:#f4f6f8;border-radius:12px;overflow:hidden}
.assistant-image-card img{width:100%;height:100%;max-height:none;object-fit:contain}
.assistant-image-card small{font-size:10px;color:#7b8796}
#assistant-latest{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);border-radius:24px;box-shadow:0 3px 14px #17314d1a;min-height:34px;padding:6px 16px;font-size:12px;background:#fff}
.assistant-composer{flex:none;padding:10px max(22px,calc((100% - 860px)/2)) 12px;position:relative}
.assistant-composer>label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.assistant-composer textarea{display:block;margin:0;min-height:52px;height:52px;max-height:140px;resize:none;padding:12px 14px;line-height:24px;overscroll-behavior:contain}
.assistant-composer-actions{margin-top:6px;gap:8px}
.assistant-composer-actions button{min-height:34px;padding:6px 14px}
.assistant-composer-actions .primary{min-width:72px}
.assistant-references{max-height:88px;overflow-y:auto;overscroll-behavior:contain}
.assistant-reference{margin-top:6px;display:flex;align-items:center;background:#eef3f8;border-radius:8px;padding:4px;gap:6px}
.assistant-reference img{width:40px;height:40px}
#assistant-quota{font-size:11px;line-height:1.5;margin:5px 0 0}
#assistant-error:empty{display:none}
#assistant-error{max-height:64px;overflow:auto;overscroll-behavior:contain}
.assistant-rules{font-size:11px;color:#75879c;margin-top:3px}
.assistant-rules>summary{cursor:pointer;width:fit-content}
.assistant-rules[open]{position:absolute;bottom:12px;left:16px;right:16px;z-index:5;padding:12px 16px;background:#fff;border:1px solid #dce4ed;border-radius:10px;box-shadow:0 5px 24px #17314d20;max-height:200px;overflow:auto}
.assistant-mobile-only{display:none}
html:has(dialog[open]),body:has(dialog[open]){overflow:hidden}
dialog{overscroll-behavior:contain;max-height:calc(100dvh - 24px)}
.online-image-viewer[open]{display:flex;flex-direction:column;height:min(800px,calc(100dvh - 32px));overflow:hidden;padding:20px}
.online-image-viewer .dialog-head{flex:none;margin-bottom:12px}
.online-image-viewer .actions{flex:none;gap:8px;margin-top:12px}
.online-image-viewer>p:empty{display:none}
.online-image-frame{flex:1;min-height:0;height:auto;padding:0;overscroll-behavior:contain}
.online-image-frame img{display:block;width:100%;height:100%;object-fit:contain;margin:auto}
.online-image-frame.is-zoomed img{max-width:none;object-fit:fill;margin:0}
@media(max-width:900px){
 .assistant-viewport .app-header{padding:8px 16px;min-height:58px}
 .assistant-viewport main{padding:10px 12px 12px}
 .assistant-viewport .account-name{display:none}
 .assistant-studio{grid-template-columns:minmax(0,1fr);gap:0}
 .assistant-mobile-only{display:inline-flex}
 .assistant-sidebar{display:none;position:absolute;inset:0 auto 0 0;width:min(300px,88%);z-index:22;background:#fff;padding:14px;box-shadow:8px 0 25px #17314d20;border-radius:12px}
 .assistant-studio.history-open .assistant-sidebar{display:flex}
 #assistant-history-close{align-self:flex-end;min-height:30px}
 #assistant-history-shade:not([hidden]){position:absolute;inset:0;z-index:21;border:0;border-radius:16px;background:#10274366;width:100%;height:100%}
 .assistant-list{display:flex;flex-direction:column;max-height:none}
 .assistant-thread-row{flex:none}
 .assistant-sidebar>.quiet{display:block}
 .assistant-heading{padding:10px 14px}
 .assistant-messages{height:100%;padding:20px 16px}
}
@media(max-width:520px){
 .assistant-viewport .app-header{padding:7px 10px;gap:8px;min-height:52px}
 .assistant-viewport .brand-mark{width:28px;height:28px}
 .assistant-viewport .brand-copy strong{font-size:15px}
 .assistant-viewport #account-nav{gap:6px;width:auto}
 .assistant-viewport #account-nav>button,.assistant-viewport .account-menu>summary{padding:6px 8px;font-size:11px;min-height:32px}
 .assistant-viewport main{padding:6px 6px 0}
 .assistant-viewport .studio-modes{margin-bottom:6px}
 .assistant-viewport .studio-modes button{min-height:36px;flex-direction:row;flex:1;padding:6px 12px}
 .assistant-viewport .studio-modes span{display:none}
 .assistant-main{border-radius:12px 12px 0 0}
 .assistant-heading h1{font-size:14px}
 .assistant-heading{gap:6px;padding:8px 10px}
 .assistant-heading>button{font-size:11px}
 .assistant-messages{min-height:0;padding:16px 12px}
 .assistant-empty h2{font-size:23px}
 .assistant-empty p{font-size:12px}
 .assistant-examples{gap:6px}
 .assistant-examples button{font-size:12px;padding:8px}
 .assistant-image-card{width:220px}
 .assistant-composer{padding:8px 10px max(8px,env(safe-area-inset-bottom))}
 .assistant-composer textarea{font-size:16px;max-height:110px}
 .assistant-composer-actions>.quiet{display:none}
 .assistant-composer-actions{flex-wrap:nowrap}
 .assistant-attach{font-size:12px}
 #assistant-quota{font-size:10px}
 .online-image-viewer[open]{padding:12px;width:calc(100% - 16px)}
 .online-image-viewer .actions button{font-size:11px;padding:6px 8px}
 .online-image-viewer input[type=range]{width:100%;margin:0}
}
@media(max-height:520px){
 .assistant-viewport .brand-copy,.assistant-viewport .assistant-rules{display:none}
 .assistant-viewport .app-header{min-height:40px;padding-block:4px}
 .assistant-viewport .studio-modes{margin-bottom:4px}
 .assistant-viewport main{padding-top:4px;padding-bottom:0}
 .assistant-composer textarea{min-height:42px;max-height:72px;padding-block:7px}
 .assistant-composer{padding-top:6px;padding-bottom:6px}
}
.assistant-thread-row button{min-height:28px;padding:4px 8px}
.assistant-thread-row button:not(.assistant-thread-name){font-size:11px}

/* Workspace chrome stays compact; login and project-detail content keep their layout. */
body[data-view="workspace"] .app-header{min-height:56px;padding:8px 24px;gap:16px}
body[data-view="workspace"] .brand{gap:9px}
body[data-view="workspace"] .brand-mark{width:32px;height:32px;border-radius:7px}
body[data-view="workspace"] .brand-copy strong{font-size:17px}
body[data-view="workspace"] .brand-copy small{display:none}
body[data-view="workspace"] #account-nav{gap:8px}
body[data-view="workspace"] #account-nav>button,body[data-view="workspace"] .account-menu>summary{min-height:32px;padding:6px 11px;font-size:12px}
body[data-view="workspace"] main{padding-top:16px;padding-bottom:24px}
body[data-view="workspace"] main:has(#workspace[data-mode="list"]):not(:has(.assistant-studio:not([hidden]))){width:calc(100% - 48px);max-width:1600px}
body[data-view="workspace"] .studio-modes{padding:3px;gap:3px;margin-bottom:16px;border-radius:9px}
body[data-view="workspace"] .studio-modes button{min-height:34px;padding:6px 16px;font-size:13px;border-radius:6px}
body[data-view="workspace"] .studio-modes span{display:none}
#workspace[data-mode="list"] #sets-heading{padding:0 0 12px;margin-bottom:16px;gap:16px}
#workspace[data-mode="list"] #sets-heading>div:first-child{display:flex;align-items:baseline;gap:16px;flex-wrap:wrap}
#workspace[data-mode="list"] #sets-heading .eyebrow{display:none}
#workspace[data-mode="list"] #sets-heading h1{font-size:20px;line-height:1.4;margin:0;letter-spacing:-.3px}
#workspace[data-mode="list"] #membership-summary{margin:0;font-size:12px}
#workspace[data-mode="list"] #sets-heading>div:last-child{display:flex;gap:8px;flex-shrink:0}
#workspace[data-mode="list"] #sets-heading button{min-height:34px;padding:6px 12px;font-size:12px}
#workspace[data-mode="list"] .projects{gap:18px}
body[data-view="workspace"] .footer-note{margin-top:20px;padding-top:12px}
body[data-view="workspace"] .site-footer{display:none}
@media(max-width:650px){
 body[data-view="workspace"] .app-header{padding:8px 12px;gap:8px;flex-wrap:nowrap}
 body[data-view="workspace"] .brand-copy strong{font-size:15px}
 body[data-view="workspace"] #account-nav{gap:5px;width:auto}
 body[data-view="workspace"] #account-nav>button,body[data-view="workspace"] .account-menu>summary{padding:7px 8px;min-height:36px;font-size:11px}
 body[data-view="workspace"] main:has(#workspace[data-mode="list"]):not(:has(.assistant-studio:not([hidden]))){width:calc(100% - 24px)}
 body[data-view="workspace"] .studio-modes{margin-bottom:12px}
 body[data-view="workspace"] .studio-modes button{min-height:38px;padding:7px 13px;flex-direction:row}
 #workspace[data-mode="list"] #sets-heading{align-items:flex-start;flex-wrap:wrap;gap:10px;margin-bottom:12px}
 #workspace[data-mode="list"] #sets-heading>div:first-child{gap:4px;flex-direction:column}
 #workspace[data-mode="list"] #sets-heading h1{font-size:18px}
 #workspace[data-mode="list"] #sets-heading button{min-height:38px}
 #workspace[data-mode="list"] .projects{gap:12px}
}
/* Retain the chat viewport's small-screen padding and independent scrolling. */
body.assistant-viewport main{padding:12px 24px 16px}
@media(max-width:900px){body.assistant-viewport main{padding:10px 12px 12px}}
@media(max-width:520px){body.assistant-viewport main{padding:6px 6px 0}body.assistant-viewport .studio-modes{margin-bottom:6px}}

/* Conversation-first layout: a single input surface, quiet controls, compact history. */
.sr-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.assistant-studio{grid-template-columns:200px minmax(0,1fr);gap:16px}
.assistant-sidebar{gap:10px}
.assistant-sidebar>.primary{min-height:36px;padding:8px 12px;font-size:13px;background:#fff;color:#29476b;border-color:#dce4ed;box-shadow:none}
.assistant-search-label{margin:0}
.assistant-search-label input{min-height:36px;padding:8px 11px;margin:0;font-size:12px}
.assistant-list{gap:3px}
.assistant-thread-row{grid-template-columns:minmax(0,1fr) 26px 26px;gap:0;padding:4px;border-radius:8px;align-items:center}
.assistant-thread-name{grid-column:auto;font-weight:500!important}
.assistant-thread-row button{min-height:30px;padding:5px;font-size:12px}
.assistant-thread-row button:not(.assistant-thread-name){font-size:17px;text-align:center}
.assistant-sidebar>.quiet{font-size:10px;line-height:1.6;color:#8592a3}
.assistant-main{border-radius:12px;box-shadow:none}
.assistant-heading{padding:9px 18px;min-height:48px;gap:12px}
.assistant-heading>div{display:flex;align-items:baseline;gap:18px;flex-wrap:wrap}
.assistant-heading h1{font-size:14px;max-width:400px}
.assistant-heading #assistant-quota{margin:0;font-size:11px;color:#8290a1}
.assistant-heading>button{border:0;background:transparent;font-size:11px;color:#78869b}
.assistant-messages{padding:24px max(20px,calc((100% - 1040px)/2))}
.assistant-empty{padding:16px 0}
.assistant-empty>.eyebrow{display:none}
.assistant-empty h2{font-size:24px;margin:0 0 12px}
.assistant-empty p{font-size:13px;max-width:420px}
.assistant-examples{gap:8px;margin:8px 0}
.assistant-examples button{font-size:12px;padding:8px 12px;min-height:34px}
.assistant-composer{border:0;background:#fff;padding:8px max(18px,calc((100% - 1040px)/2)) 16px}
.assistant-input-shell{border:1px solid #dce3eb;border-radius:16px;background:#f8fafc;box-shadow:0 3px 12px #17314d06;padding:6px;transition:border-color .2s,box-shadow .2s}
.assistant-input-shell:focus-within{border-color:#9bb3d0;box-shadow:0 0 0 3px #315d8c08}
.assistant-input-row{display:flex;gap:8px;align-items:flex-end}
.assistant-input-row .assistant-attach{display:flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;min-width:36px;padding:0;margin-bottom:8px!important;border-radius:10px;color:#61748c;font-size:24px;font-weight:400}
.assistant-attach:hover{background:#eaf0f6}
.assistant-input-row textarea{flex:1;min-width:0;border:0;background:transparent;box-shadow:none;padding:14px 4px;margin:0;border-radius:0;font-size:14px;line-height:24px}
.assistant-input-row .assistant-composer-actions{flex:none;align-items:center;margin:0 4px 8px 0;gap:6px;flex-wrap:nowrap}
.assistant-composer-actions button{height:36px;min-height:36px;padding:6px 12px;border-radius:10px;font-size:12px}
.assistant-composer-actions .primary{min-width:56px;margin:0;background:#203e60;border-color:#203e60;box-shadow:none}
.assistant-references:empty{display:none}
.assistant-input-shell .assistant-references{padding:0 6px}
.assistant-input-shell .assistant-reference{margin:4px 0}
.assistant-composer #assistant-error:not(:empty){font-size:12px;margin:8px 6px 0}
@media(hover:hover){.assistant-thread-row button:not(.assistant-thread-name){opacity:0}.assistant-thread-row:hover button,.assistant-thread-row:focus-within button{opacity:1}}
@media(max-width:900px){.assistant-studio{grid-template-columns:minmax(0,1fr)}.assistant-heading>div{display:block}.assistant-heading h1{max-width:100%}.assistant-heading #assistant-quota{margin-top:2px}}
@media(max-width:520px){
 .assistant-heading{padding:8px 10px;gap:6px}.assistant-heading h1{font-size:13px}.assistant-heading #assistant-quota{font-size:10px}
 .assistant-heading>button{font-size:10px;padding:5px}
 .assistant-messages{padding:18px 12px}.assistant-composer{padding:6px 8px 10px}
 .assistant-input-shell{padding:4px;border-radius:13px}.assistant-input-row{gap:4px}
 .assistant-input-row .assistant-attach{width:32px;min-width:32px}
 .assistant-composer-actions button{padding:6px 9px}.assistant-composer-actions .primary{min-width:44px}
 .assistant-input-row textarea{font-size:16px}
 .assistant-empty h2{font-size:22px}.assistant-examples{flex-direction:column;align-items:center}
}

/* Shared settings surfaces and conversation navigation. */
.assistant-studio{grid-template-columns:216px minmax(0,1fr);gap:14px}
.assistant-sidebar{padding:12px 10px;background:#eef2f6;border:1px solid #e1e7ee;border-radius:12px;gap:10px}
.assistant-sidebar>.primary{border-radius:9px;transition:background .18s,box-shadow .18s,transform .18s}
.assistant-sidebar>.primary:hover{background:#fff;box-shadow:0 3px 10px #203e6010;transform:translateY(-1px)}
.assistant-search-label input{border-color:transparent;background:#e5ebf1;border-radius:8px;transition:background .18s,border-color .18s}
.assistant-search-label input:focus{background:#fff;border-color:#9eb4ce}
.history-caption{flex:none;font-size:10px;letter-spacing:1px;color:#8290a2;margin:6px 7px 0}
.assistant-thread-row{position:relative;border-color:transparent;border-radius:8px;transition:background .18s,transform .18s,border-color .18s}
.assistant-thread-row:hover{background:#e5ebf2;transform:translateX(2px)}
.assistant-thread-row:has([aria-pressed=true]){background:#fff;border-color:#dce4ee;box-shadow:0 2px 5px #203e6006}
.assistant-thread-row:has([aria-pressed=true])::before{content:"";position:absolute;left:-1px;top:10px;bottom:10px;width:3px;border-radius:3px;background:#42668e}
.assistant-thread-row button{transition:opacity .16s,background .16s;color:#566f8d}
.assistant-thread-row button:not(.assistant-thread-name):hover{background:#dce5ef;border-radius:5px;color:#203e60}
.assistant-sidebar>.quiet{padding:10px 5px 0;border-top:1px solid #dae2eb;margin-top:2px}
#account-menu-items{padding:6px;width:204px;border-radius:12px;box-shadow:0 12px 35px #142d4b18;animation:settings-appear .16s ease-out}
#account-menu-items button{border-radius:7px;min-height:36px;padding:8px 12px;font-size:12px;transition:background .16s,transform .16s}
#account-menu-items button:hover{background:#eef3f8;transform:translateX(2px)}
#account-menu-items #logout{color:#9b5353;border-top:1px solid #edf0f4;border-radius:0;margin-top:3px}
.settings-dialog{width:calc(100% - 32px);max-width:500px;padding:24px;border:1px solid #e0e6ed;border-radius:18px;background:#fff;box-shadow:0 24px 90px #162d4930;max-height:calc(100dvh - 40px);overscroll-behavior:contain;scrollbar-width:thin}
.settings-dialog.capture-connection-panel{margin:auto}
.settings-dialog[open]{animation:settings-appear .2s ease-out}
.settings-dialog::backdrop{background:#172b4559;backdrop-filter:blur(4px)}
.settings-dialog .dialog-head{align-items:center;gap:16px;padding-bottom:16px;margin:0 0 18px;border-bottom:1px solid #edf0f4}
.settings-dialog .dialog-head h2{font-size:20px;font-weight:600;letter-spacing:-.4px;line-height:1.3}
.settings-dialog .dialog-head .form-eyebrow{color:#8b98a9;font-size:10px;letter-spacing:1px}
.settings-dialog .dialog-head button{flex:none;border:0;background:#f1f4f8;border-radius:8px;color:#718097;min-height:30px;padding:5px 10px}
.settings-dialog p{font-size:12px;line-height:1.7;color:#7a8899;margin:0 0 14px;overflow-wrap:anywhere}
.settings-dialog label{font-size:12px;font-weight:500;color:#536479;margin:14px 0}
.settings-dialog input:not([type=checkbox]):not([type=file]),.settings-dialog select,.settings-dialog textarea{font:inherit;font-size:13px;width:100%;margin-top:7px;padding:10px 12px;border:1px solid #dce3eb;border-radius:9px;background:#f8fafc;color:#263e59;min-height:40px;box-sizing:border-box}
.settings-dialog input:focus,.settings-dialog select:focus,.settings-dialog textarea:focus{outline:none;border-color:#8fa9c8;background:#fff;box-shadow:0 0 0 3px #315d8c09}
.settings-dialog button{min-height:34px;border-radius:8px;font-size:12px;padding:7px 12px}
.settings-dialog button.primary{background:#203e60;border-color:#203e60;box-shadow:none}
.settings-dialog button.primary:hover{background:#2d5076;border-color:#2d5076}
.settings-dialog form>button.primary{margin-top:8px;min-height:38px;width:100%}
.settings-dialog .error:empty{display:none}
.settings-dialog .error:not(:empty){color:#a34141;background:#fff5f4;border-radius:8px;padding:9px 12px;margin:10px 0;font-size:12px}
.settings-dialog details{border:1px solid #e4e9ef;border-radius:10px;padding:11px 13px;margin-top:14px;background:#fafbfd;font-size:12px;color:#687b92}
.settings-dialog details>summary{cursor:pointer;font-size:12px;color:#506780}
.settings-dialog details[open]>summary{margin-bottom:12px}
.membership-dialog{max-width:620px}
body[data-commercial=true] #member-detail{display:none}
#commercial-entitlements{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:18px}
.entitlement-card{min-width:0;padding:17px;border:1px solid #dfe6ee;border-radius:12px;background:linear-gradient(135deg,#f2f6fb,#fff)}
.entitlement-card h3{font-size:12px;font-weight:500;color:#6b7f96;margin:0 0 14px}
.entitlement-card p{color:#294765;margin:0;font-size:13px}
.entitlement-balances{display:flex;gap:28px}
.entitlement-balances strong{display:block;font-size:26px;font-weight:600;line-height:1.15;letter-spacing:-.7px;color:#203e60;font-variant-numeric:tabular-nums}
.entitlement-balances span{display:block;font-size:10px;color:#8694a5;margin-top:7px}
#commercial-entitlements .entitlement-lots{grid-column:1/-1;margin-top:0}
.entitlement-lots p{border-top:1px solid #e5eaf1;padding-top:10px;margin:10px 0 0;font-variant-numeric:tabular-nums}
#activate-form{border-top:1px solid #e8edf3;padding-top:3px}
#auth-recovery-settings-dialog form,#auth-recovery-result{padding:14px 16px;background:#f6f8fb;border:1px solid #e3e9f0;border-radius:12px}
#auth-recovery-settings-dialog form label:first-child{margin-top:0}
#auth-recovery-settings-dialog #auth-recovery-status:empty{display:none}
#auth-recovery-result{margin-top:16px}
#auth-recovery-result textarea{font-family:ui-monospace,monospace;font-size:12px;resize:none}
#auth-recovery-result button{margin:5px 4px 0 0}
.watermark-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.watermark-settings-grid>label{margin:0;grid-column:1/-1;min-width:0}
.watermark-settings-grid .watermark-field-enabled{justify-content:space-between;padding:11px 13px;background:#f2f6fa;border:1px solid #e1e8f0;border-radius:10px}
.watermark-field-enabled input{accent-color:#315b87}
.watermark-settings-grid .watermark-field-opacity,.watermark-settings-grid .watermark-field-size,.watermark-settings-grid .watermark-field-position{grid-column:auto}
.watermark-settings-grid>p,.watermark-settings-grid>button{grid-column:1/-1;margin:0}
.watermark-settings-grid>button:not(.primary){justify-self:start;min-height:28px;padding:3px 8px;color:#7c8ba0;border:0;background:transparent}
.watermark-field-logo{padding:12px;border:1px dashed #cdd9e6;border-radius:10px;background:#fafbfd;font-size:11px!important}
.watermark-field-logo input{margin-top:9px;width:100%;font-size:11px}
.watermark-field-logo input::file-selector-button{border:1px solid #dbe4ee;border-radius:6px;background:#fff;color:#506984;padding:6px 9px;margin-right:8px}
.watermark-logo-preview{grid-column:1/-1;border:1px solid #e1e8f0;border-radius:9px;background:#f7f9fb;padding:5px}
body.assistant-viewport #capture-connection-panel{max-height:calc(100dvh - 40px);overflow:auto}
#capture-connection-list>p{padding:26px 20px;text-align:center;border:1px dashed #d8e2ed;border-radius:12px;background:#f7f9fc;margin:16px 0 0}
.capture-connection-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;border:1px solid #e1e8f0;border-radius:10px;background:#f7f9fc;font-size:12px;margin-top:10px}
.capture-connection-row button{flex:none;color:#9b5353;background:#fff;border-color:#e4dcdc}
#capture-approval{padding:14px;background:#f4f7fb;border-radius:12px;margin:12px 0}
@keyframes settings-appear{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:900px){.assistant-studio{grid-template-columns:minmax(0,1fr)}.assistant-studio.history-open .assistant-sidebar{background:#f4f7fa;animation:settings-appear .2s ease-out}}
@media(max-width:520px){.settings-dialog{padding:18px;border-radius:14px}.settings-dialog .dialog-head h2{font-size:18px}#commercial-entitlements{grid-template-columns:minmax(0,1fr)}.entitlement-balances{gap:36px}.settings-dialog button{min-height:38px}.watermark-settings-grid{gap:10px}.settings-dialog .dialog-head{margin-bottom:14px}.watermark-settings-grid .watermark-field-position{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){.assistant-thread-row,.assistant-sidebar>.primary,#account-menu-items button{transition:none}.assistant-thread-row:hover,.assistant-sidebar>.primary:hover,#account-menu-items button:hover{transform:none}.settings-dialog[open],#account-menu-items,.assistant-studio.history-open .assistant-sidebar{animation:none}}

/* Extension download shares the compact settings visual language. */
.plugin-download-card{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px 16px;padding:16px;margin:12px 0 18px;background:#f5f8fc;border:1px solid #e3e9f2;border-radius:14px}
.plugin-download-card strong{display:block;font-size:14px;color:#233d5c}.plugin-download-card span{display:block;margin-top:5px;font-size:12px;color:#718198}
.plugin-download-card .button{display:inline-flex;align-items:center;justify-content:center;padding:9px 14px;border-radius:9px;text-decoration:none;background:#1260ed;color:#fff;font-size:13px;font-weight:600}
.plugin-install-link{grid-column:1/-1;font-size:12px;color:#42658b;text-decoration:none;justify-self:start}.plugin-install-link:hover{text-decoration:underline}
@media(max-width:420px){.plugin-download-card{grid-template-columns:1fr}.plugin-download-card .button{justify-self:start}}
