:root{font-family:Segoe UI,Microsoft YaHei,sans-serif;color:#213b35;background:#f2f5f1;font-size:14px}*{box-sizing:border-box}body{margin:0}header{max-width:1320px;margin:auto;padding:30px 32px 20px;display:flex;justify-content:space-between;align-items:center}h1{font-size:32px;letter-spacing:-1px;margin:8px 0}h1 small{font-size:18px;font-weight:400;color:#70867e}header p{color:#6a7c74;margin:0}.badge{font-size:11px;letter-spacing:2px;color:#39836c}main{max-width:1320px;padding:0 32px 32px;margin:auto;display:grid;grid-template-columns:340px 1fr;gap:22px}section,article{background:white;border:1px solid #dde7df;border-radius:16px}section{padding:22px;margin-bottom:18px}h2{font-size:16px;margin:0 0 18px}label{display:block;font-size:12px;color:#63766d;margin:12px 0}input,textarea,select{font:inherit;border:1px solid #d6e1d8;border-radius:8px;padding:10px;width:100%;margin-top:6px;background:#fcfdfb;color:#213b35}textarea{resize:vertical}input:focus,textarea:focus,select:focus{outline:2px solid #a5cbb7}.hint{font-size:12px;line-height:1.7;color:#7a8881}.row{display:flex;gap:8px}button,.upload{cursor:pointer;border:0;border-radius:8px;padding:10px 14px;font:inherit;background:#276b52;color:white}button:disabled{opacity:.5;cursor:wait}.secondary{background:#eaf1eb;color:#39654f}.subtle{background:transparent;color:#7b8e83}.toggle{display:flex;align-items:center;gap:8px;font-size:14px}.toggle input{width:auto;margin:0}.upload{display:block;text-align:center}.upload input{display:none}article{padding:24px;min-width:0;min-height:650px}.statusbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:20px;border-bottom:1px solid #edf0ea}#status{font-size:13px;line-height:1.6}#history{display:flex;gap:8px;overflow:auto;padding:14px 0}#history button{white-space:nowrap;font-size:12px;background:#f1f4ef;color:#56705f}#history button.active{background:#d8e9dd;color:#26553c}#empty{text-align:center;padding:110px 12px;color:#849789}#empty h2{font-size:24px;color:#4a6556}#preview{max-width:100%;max-height:240px;border:1px solid #e2e9e0;border-radius:8px;object-fit:contain}#meta{font-size:12px;color:#809082;margin:16px 0}pre{font:15px/1.9 Segoe UI,Microsoft YaHei,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere}#error,#notice{font-size:12px;line-height:1.6;color:#a64d3e}#error:empty{display:none}@media(max-width:850px){main{grid-template-columns:1fr;padding:0 14px}header{padding:24px 18px}article{min-height:440px}}
#content{font-size:15px;line-height:1.85;overflow-wrap:anywhere}
/* Shared scrollbars */
*{scrollbar-width:thin;scrollbar-color:#b5c5ba transparent}
*::-webkit-scrollbar{width:8px;height:8px}
*::-webkit-scrollbar-track{background:transparent}
*::-webkit-scrollbar-thumb{background:#b5c5ba;border:2px solid transparent;background-clip:padding-box;border-radius:20px}
*::-webkit-scrollbar-thumb:hover{background-color:#8aa492}
*::-webkit-scrollbar-corner{background:transparent}
html{scrollbar-gutter:stable}
header{padding-top:22px;padding-bottom:18px}header h1{margin:0}
#notice:empty{display:none}
.field{font-size:12px;color:#63766d;margin:12px 0 18px}
.dropdown{position:relative;margin-top:6px}
.select-button{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;color:#213b35;border:1px solid #d6e1d8;background:#fcfdfb;padding:11px 12px}
.select-button:hover{border-color:#a6bdad}
.select-button:focus-visible,.select-button[aria-expanded="true"]{outline:2px solid #b8d2c0;outline-offset:1px}
.chevron{width:7px;height:7px;border-right:1.5px solid #698471;border-bottom:1.5px solid #698471;transform:rotate(45deg);margin:0 3px 4px 10px;transition:transform .15s}
[aria-expanded="true"] .chevron{transform:rotate(225deg);margin-bottom:0}
.select-options{position:absolute;left:0;right:0;top:calc(100% + 7px);padding:5px;max-height:230px;overflow-y:auto;background:#fff;border:1px solid #dce6dd;border-radius:10px;box-shadow:0 8px 28px #25472a1a;z-index:20}
.select-options button{display:flex;align-items:center;justify-content:space-between;width:100%;background:transparent;color:#526958;text-align:left;padding:10px 12px;border-radius:6px;font-size:13px}
.select-options button:hover,.select-options button:focus-visible{background:#f0f5ef;outline:none}
.select-options button[aria-selected="true"]{background:#e4efe6;color:#276b52}
.select-options button[aria-selected="true"]::after{content:'✓';font-size:13px}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
[hidden]{display:none!important}
.header-nav{display:flex;gap:6px;align-items:center;padding:4px;background:#e6eee7;border-radius:11px;margin-left:auto;margin-right:20px}.header-nav a{padding:9px 22px;text-decoration:none;color:#697e6e;border-radius:8px;font-size:14px}.header-nav a.active{background:white;color:#276b52;box-shadow:0 1px 4px #24432b0d}.header-nav a:hover{color:#276b52}
main.page-results,main.page-chat{display:block}main.page-config{grid-template-columns: minmax(320px,440px) 1fr}.network-card{align-self:start;min-width:0}.network-card .row{align-items:center;justify-content:space-between}.network-card h2{margin:0}.address-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 0;border-bottom:1px solid #edf1eb}.address-row strong{font-weight:500;font-size:14px;overflow-wrap:anywhere}.address-row small{display:block;font-size:11px;color:#859387;margin-top:5px;overflow-wrap:anywhere}.address-row button{flex-shrink:0;font-size:12px}.address-row:last-child{border-bottom:0}#share-panel{max-height:300px;overflow:auto;border-bottom:1px solid #e0e8df;padding:0 12px}#status{flex:1}.copy-buffer{position:fixed;top:0;left:-9999px}.chat-view{max-width:1000px;margin:auto}#chat-messages{height:52vh;min-height:240px;overflow:auto;padding:20px 8px;display:flex;flex-direction:column;gap:18px}.chat-message{max-width:90%;padding:14px 18px;border-radius:12px;background:#f3f6f0;align-self:flex-start;white-space:pre-wrap;line-height:1.8;overflow-wrap:anywhere}.chat-message.user{background:#e4efe6;align-self:flex-end}.chat-message small{display:block;font-size:11px;color:#6f8a75;margin-bottom:6px}.chat-failure:empty{display:none}.chat-failure,#chat-error{color:#a64d3e;font-size:12px}#chat-form{border-top:1px solid #e3eae0;padding-top:14px}#chat-form .row{justify-content:space-between;margin-top:10px}#chat-input{resize:vertical}#custom_trigger{font-size:12px}@media(max-width:850px){main.page-config{grid-template-columns:1fr}.header-nav{margin-right:5px}.header-nav a{padding:8px 13px}header h1{font-size:24px}header h1 small{display:none}.statusbar{flex-wrap:wrap}}
#addresses{max-height:570px;overflow-y:auto;padding-right:6px}.header-nav a:focus-visible{outline:2px solid #a5cbb7;outline-offset:2px}.chat-message>div{white-space:pre-wrap}
/* Configuration workspace */
main.page-config{display:block}.config-grid{display:grid;grid-template-columns:minmax(300px, .9fr) minmax(400px,1.4fr);grid-template-areas:'connection prompt' 'capture prompt' 'network network';gap:20px;align-items:stretch}.config-grid section{margin:0;padding:24px}.connection-card{grid-area:connection}.prompt-card{grid-area:prompt;display:flex;flex-direction:column}.capture-card{grid-area:capture}.network-card{grid-area:network}.prompt-card>label{flex:1;display:flex;margin:0 0 18px}.prompt-card textarea{min-height:470px;resize:vertical;line-height:1.8;height:100%;margin:0}.prompt-card .row{justify-content:flex-end}.connection-card>button{margin-top:5px}.capture-card .field{margin-top:0}.config-grid #addresses{display:grid;grid-template-columns:1fr 1fr;column-gap:30px;max-height:270px}.header-nav{margin-right:0}.result-view #result-title{font-size:23px;margin:22px 0 18px}#history button{max-width:220px;overflow:hidden;text-overflow:ellipsis}#history{padding-bottom:16px}@media(max-width:850px){.config-grid{display:flex;flex-direction:column}.prompt-card textarea{min-height:360px}.config-grid #addresses{grid-template-columns:1fr}.config-grid section{padding:20px}}
/* Keep configuration actions and their feedback in the relevant section. */
.config-grid{grid-template-areas:'connection prompt' 'capture prompt' 'network network' 'actions actions'}
.config-actions{grid-area:actions;display:flex;align-items:center;justify-content:flex-end;gap:16px;padding:4px 0 10px}.config-actions #notice{margin:0}.config-grid #addresses{max-height:none;overflow:visible;padding-right:0}.inline-status{font-size:12px;line-height:1.6;margin:12px 0 0;color:#647e6e}.inline-status:empty,.app-status:empty{display:none}.app-status{max-width:1256px;margin:0 auto 14px;padding:10px 16px;border-radius:8px;color:#a64d3e;background:#fff3ef;font-size:13px}.result-view .statusbar #status:empty{display:block}.prompt-card>label{margin-bottom:0}.capture-card .upload{margin-bottom:0}
.result-view #history{padding-top:0}.result-view #cancel{margin:0 0 14px;font-size:12px;padding:7px 10px}
.config-grid{grid-template-areas:'actions actions' 'connection prompt' 'capture prompt' 'network network'}
.config-toolbar{grid-area:actions;width:100%;max-width:none;margin:0;padding:16px 22px;display:flex;align-items:center;justify-content:flex-end;gap:16px;background:#fff;border:1px solid #dde7df;border-radius:14px}
.config-toolbar h2{margin:0 auto 0 0;font-size:16px}.config-toolbar #notice{margin:0;font-size:12px}.config-toolbar #save{flex-shrink:0}
@media(max-width:850px){.config-toolbar{padding:14px 18px}}
.connection-test-row{display:flex;align-items:center;gap:12px;margin-top:16px}.connection-test-row #test{flex-shrink:0}.connection-test-row #connection-status{margin:0;min-width:0;overflow-wrap:anywhere}
/* Conversation workspace */
body.chat-page{height:100dvh;overflow:hidden}body.chat-page>header{height:86px;padding-top:18px;padding-bottom:18px}body.chat-page .app-status:empty{display:none}main.page-chat{height:calc(100dvh - 86px);padding-bottom:22px}.chat-view{height:100%;min-height:0;max-width:1060px;padding:0;display:flex;flex-direction:column;overflow:hidden;background:#fff}.chat-top{display:flex;align-items:center;justify-content:space-between;padding:18px 28px;border-bottom:1px solid #edf1ec;flex-shrink:0}.chat-top>div{display:flex;align-items:center;gap:12px}.chat-top h2{margin:0;font-size:15px}.chat-top #chat-model{font-size:12px;color:#84968a}.chat-top button{font-size:12px;padding:8px 12px;background:transparent;color:#819387}.chat-top button:hover{background:#f0f4ef;color:#39654f}#chat-messages{height:auto;min-height:0;flex:1;padding:30px clamp(20px,5vw,64px);gap:28px;overscroll-behavior:contain;scrollbar-gutter:stable;position:relative}#chat-empty{margin:auto;text-align:center;font-size:18px;color:#94a299;letter-spacing:.02em}.chat-message{max-width:100%;padding:0;border-radius:0;background:transparent;align-self:stretch;white-space:normal;line-height:1.8}.chat-message.user{align-self:flex-end;max-width:85%;background:#ecf3ee;border:1px solid #e0eae2;border-radius:16px 16px 4px 16px;padding:12px 18px}.message-role{font-size:11px;font-weight:600;color:#6a8674;margin-bottom:8px}.chat-message.user .message-role{display:none}.chat-message .message-body{white-space:normal;min-width:0;font-size:15px;line-height:1.9;overflow-wrap:anywhere}.chat-message.user .message-body{white-space:pre-wrap}.message-actions{display:flex;align-items:center;gap:10px;min-height:22px;margin-top:10px;color:#8a9b8f;font-size:11px}.message-actions button{background:transparent;color:#87968c;padding:3px 0;font-size:11px}.message-actions button:hover{color:#286c52}.chat-message.user .message-actions{margin-top:5px;min-height:0;justify-content:flex-end}.generating .message-actions span::before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:#5c9274;margin-right:7px;animation:chatPulse 1.2s ease-in-out infinite}.chat-failure{margin:8px 0 0}.chat-jump{height:0;position:relative;z-index:2;display:flex;justify-content:center}#chat-bottom{position:absolute;bottom:10px;box-shadow:0 3px 15px #23483113;border:1px solid #dce7df;border-radius:20px;background:#fff;font-size:12px;padding:8px 15px}#chat-form{padding:0 clamp(20px,5vw,64px) 22px;margin:0;border:0;flex-shrink:0;background:white}.composer{border:1px solid #d8e4dc;border-radius:16px;background:#fafcf9;box-shadow:0 3px 12px #2c503507;overflow:hidden}.composer:focus-within{border-color:#91b59d;box-shadow:0 0 0 3px #eaf2eb}#chat-input{width:100%;display:block;border:0;outline:none!important;box-shadow:none;background:transparent;margin:0;padding:16px 18px 8px;min-height:66px;max-height:180px;resize:none;font:14px/1.7 Segoe UI,Microsoft YaHei,sans-serif}.composer-bottom{display:flex;align-items:center;justify-content:space-between;padding:6px 12px 12px 18px;gap:12px}.composer-hint{font-size:11px;color:#93a196}.composer-bottom>div{display:flex;gap:8px}.composer-bottom button{padding:8px 15px;font-size:13px;border-radius:9px}#chat-error{margin:8px 0 0;line-height:1.5}#chat-error:empty{display:none}.markdown p{margin:0 0 12px}.markdown>:last-child{margin-bottom:0}.markdown h1,.markdown h2,.markdown h3,.markdown h4{margin:24px 0 12px;line-height:1.5;color:#244e3a}.markdown h1{font-size:23px}.markdown h2{font-size:20px}.markdown h3{font-size:17px}.markdown h4{font-size:15px}.markdown>:first-child{margin-top:0}.markdown ul,.markdown ol{padding-left:24px;margin:10px 0 16px}.markdown li{padding-left:3px;margin:4px 0}.markdown li>p{margin:0}.markdown blockquote{margin:16px 0;border-left:3px solid #a6c8b0;padding:8px 16px;background:#f5f8f2;color:#718276;border-radius:0 8px 8px 0}.markdown a{color:#277958;text-decoration:underline;text-underline-offset:3px}.markdown hr{border:0;border-top:1px solid #e3ebe1;margin:22px 0}.markdown :not(pre)>code{font:13px/1.5 Consolas,monospace;background:#eff3ed;padding:2px 6px;border-radius:5px;color:#346950}.code-block{margin:16px 0;border:1px solid #23362b;border-radius:12px;overflow:hidden;background:#18241e}.code-toolbar{display:flex;align-items:center;justify-content:space-between;padding:8px 14px;background:#223229;color:#aebfb4;font-size:11px}.code-toolbar button{font:inherit;color:#c6d6ca;background:transparent;padding:2px 0}.code-toolbar button:hover{color:white}.markdown .code-block pre{margin:0;padding:16px 18px;overflow:auto;border:0;background:#18241e;color:#dce9df;white-space:pre;font:13px/1.8 Consolas,monospace}.markdown .code-block code{padding:0;background:transparent;font:inherit;color:inherit;white-space:pre}.md-table{overflow:auto;margin:16px 0;border:1px solid #e0e8dd;border-radius:10px}.markdown table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}.markdown th{background:#f1f6ee;color:#45664d;font-weight:600}.markdown th,.markdown td{padding:10px 14px;border-bottom:1px solid #e5ece1;min-width:90px}.markdown tr:last-child td{border:0}.markdown del{color:#86968a}@keyframes chatPulse{50%{opacity:.25}}@media(max-width:600px){body.chat-page>header{height:72px}main.page-chat{height:calc(100dvh - 72px);padding:0 8px 8px}.chat-top{padding:14px 18px}.chat-top #chat-model{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#chat-messages{padding:22px 18px;gap:22px}#chat-form{padding:0 12px 12px}.composer-hint{display:none}.composer-bottom{justify-content:flex-end}.chat-message.user{max-width:94%}.chat-message .message-body{font-size:14px}.markdown .code-block pre{padding:12px}}

/* Compact actions and header controls */
.icon{width:18px;height:18px;display:block;flex-shrink:0;pointer-events:none}
button.icon-button{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:7px;flex-shrink:0}
button.icon-button:focus-visible{outline:2px solid #79a68d;outline-offset:3px}
button.icon-button:disabled{cursor:default}
.message-actions button.icon-button:hover{background:#edf3ee}
.code-toolbar button.icon-button{width:28px;height:28px;padding:5px}
.code-toolbar button.icon-button:hover{background:#ffffff12}
.message-role .icon{width:23px;height:23px;color:#60836d}
.composer-bottom #send-chat{width:36px;height:36px;border-radius:10px}
.result-heading{display:flex;align-items:center;gap:14px;margin:22px 0 18px}
.result-view .result-heading #result-title{margin:0;overflow-wrap:anywhere}
.result-view .result-heading #cancel{margin:0;flex-shrink:0}
.result-stats{display:flex;align-items:center;flex-wrap:wrap;gap:6px 18px;margin:16px 0;color:#809082;font-size:12px}
.result-stats #meta,.result-stats #usage{margin:0;font-size:12px;line-height:1.7}
.result-stats #usage:empty{display:none}
.capture-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.capture-heading h2{margin:0}
.hotkey-switch{position:relative;display:inline-flex;width:40px;height:24px;margin:0;cursor:pointer;flex-shrink:0}
.hotkey-switch input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;z-index:1}
.hotkey-switch span{width:40px;height:24px;border-radius:20px;background:#c7d2ca;transition:background .18s}
.hotkey-switch span::before{content:'';position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:white;box-shadow:0 1px 3px #243b3520;transition:transform .18s}
.hotkey-switch input:checked+span{background:#34785a}
.hotkey-switch input:checked+span::before{transform:translateX(16px)}
.hotkey-switch input:focus-visible+span{outline:2px solid #79a68d;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.hotkey-switch span,.hotkey-switch span::before{transition:none}}

.markdown .katex-display{overflow-x:auto;overflow-y:hidden;padding:8px 2px;margin:16px 0}.markdown .katex{font-size:1.1em}.math-fallback{white-space:pre-wrap}#content.markdown{line-height:1.9;overflow-wrap:anywhere}

/* Shared standalone page toolbars. */
.page-toolbar{width:100%;max-width:none;margin:0 0 20px;padding:16px 22px;background:#fff;border:1px solid #dde7df;border-radius:14px;min-height:0;height:auto;flex-shrink:0}
.page-toolbar h2{margin:0;font-size:16px}
.results-toolbar #history{width:100%;padding:0;min-height:34px;align-items:center}
@media(max-width:850px){.page-toolbar{padding:14px 18px}}

.results-toolbar{gap:18px}.results-toolbar #history{flex:1;min-width:0;width:auto}.results-toolbar #clear-results{flex-shrink:0;white-space:nowrap}

#access-panel{max-width:620px;margin:64px auto;padding:32px;background:#fff;border:1px solid #dde7df;border-radius:16px;text-align:center}#access-panel h2{margin:0;font-size:18px}#access-description{color:#75857b;line-height:1.8;margin:14px 0 0}#access-description:empty{display:none}@media(max-width:680px){#access-panel{margin:40px 14px;padding:28px 20px}}

.brand-link{color:inherit;text-decoration:none}.brand-link:focus-visible{outline:2px solid #a5cbb7;outline-offset:5px;border-radius:4px}

#logout{margin-left:12px}.server-mode .capture-card,.server-mode .network-card{display:none}.server-mode .config-grid{grid-template-areas:"actions actions" "connection prompt"}

.provider-tabs{display:flex;gap:5px;padding:4px;background:#f0f4ef;border-radius:9px;margin-bottom:18px}.provider-tabs button{flex:1;background:transparent;color:#6a7c70}.provider-tabs button.active{background:#fff;color:#276b52}.provider-tabs button:focus-visible{outline:2px solid #a5cbb7}#codex-login-link{color:#276b52}

/* Account controls share the compact configuration rhythm. */
#passkey-card{grid-column:1/-1;min-width:0}
#passkey-card h2{margin:0 0 20px}
.passkey-create{display:flex;align-items:center;gap:12px}
.passkey-create input{flex:1;min-width:0;margin:0;height:44px}
.passkey-create button{flex-shrink:0;white-space:nowrap;height:44px;padding:0 18px}
#passkey-hint:empty{display:none}
#passkey-list{margin-top:18px}
#passkey-list:empty{display:none}
.passkey-item{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 0;border-top:1px solid #e8eeea}
.passkey-item:last-child{padding-bottom:0}
.passkey-item span{min-width:0;overflow-wrap:anywhere;font-size:14px}
.passkey-item button{flex-shrink:0;padding:8px 14px;font-size:13px}
.codex-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:14px}
.codex-actions button{padding:10px 14px;white-space:nowrap;font-size:14px}
.codex-actions #codex-account{margin:0;font-size:12px;color:#527763}
.connection-test-row{padding-top:18px;margin-top:18px;border-top:1px solid #e8eeea}
.provider-tabs button{font-size:14px;padding:10px 14px}
.login-page{min-height:100vh;box-sizing:border-box}
.login-page>header{margin-bottom:0}
.login-page #access-panel{width:100%;max-width:420px;box-sizing:border-box;margin:8vh auto 40px;padding:32px;text-align:left;border-radius:18px}
.login-page #access-panel h2{font-size:22px;margin-bottom:26px;text-align:center}
#login-form label{margin:0 0 18px;font-size:13px}
#login-form input{box-sizing:border-box;height:46px;margin-top:8px}
#login-form button{display:block;width:100%;min-height:44px;font-size:14px;white-space:nowrap}
.login-divider{display:flex;align-items:center;gap:12px;margin:18px 0;color:#8b9990;font-size:12px}
.login-divider:before,.login-divider:after{content:'';height:1px;background:#e6ece7;flex:1}
#login-error{color:#aa5145;font-size:13px;line-height:1.6;margin:16px 0 0}
#login-error:empty{display:none}
@media(max-width:600px){.login-page #access-panel{width:calc(100% - 28px);padding:28px 22px;margin:5vh auto 28px}.passkey-create{flex-wrap:wrap}.passkey-create input{flex-basis:100%}.passkey-create button{width:100%}.codex-actions #codex-account{flex-basis:100%}}

#mode-card{grid-column:1/-1;grid-area:mode}#mode-card h2{margin-top:0}#mode-options{max-width:560px}#mode-description{margin-bottom:18px}#client-fields{max-width:680px;margin-bottom:20px}#mode-card>.row{align-items:center;gap:14px}#mode-status{margin:0}#mode-card button{white-space:nowrap}.config-grid{grid-template-areas:'actions actions' 'mode mode' 'connection prompt' 'capture prompt' 'network network'}.server-mode .config-grid{grid-template-areas:'actions actions' 'mode mode' 'connection prompt'}.client-config{display:block}.client-config section{margin-bottom:20px}.client-config #mode-card{width:auto}.client-config .capture-heading{margin-bottom:18px}.client-config #client-trigger{max-width:420px}

.client-shortcut{max-width:560px}.client-shortcut>label{display:block;margin:18px 0 8px}.client-shortcut input{display:block;width:100%;box-sizing:border-box;margin-top:8px}.client-shortcut .select-button{width:100%}.client-shortcut #client-trigger{max-width:none}

.fixed-server-mode .config-grid{grid-template-areas:"actions actions" "connection prompt"}

/* Results: sticky question list beside the answer. */
main.page-results{display:grid;grid-template-columns:minmax(200px,260px) minmax(0,1fr);gap:22px;align-items:start}
.page-results .results-toolbar{position:sticky;top:20px;display:flex;flex-direction:column;align-items:stretch;gap:14px;margin:0;padding:14px;max-height:calc(100dvh - 40px);min-width:0}
.page-results .results-toolbar #history{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-height:0;overflow-y:auto;overflow-x:hidden;padding:0;flex:1}
.page-results #history button{width:100%;max-width:none;white-space:normal;text-align:left;overflow-wrap:anywhere;line-height:1.6;padding:12px 14px;font-size:13px;border-radius:9px;background:transparent}
.page-results #history button:hover{background:#f0f5f1}
.page-results #history button.active{background:#d8e9dd;color:#26553c;font-weight:600}
.page-results .results-toolbar #clear-results{width:100%;border-top:1px solid #e4ece6;border-radius:8px;padding:11px 14px;font-size:13px}
.page-results>article.result-view{width:100%;margin:0;min-width:0}
@media(max-width:760px){main.page-results{grid-template-columns:minmax(0,1fr);gap:16px}.page-results .results-toolbar{position:static;max-height:260px}.page-results .results-toolbar #history{max-height:160px}.page-results>article.result-view{padding:20px}}
