.studio-agent-frame{width:100%;height:960px;min-height:650px;display:block;border:0;border-radius:14px;background:transparent}
.agent-revision-text{max-width:850px;margin:20px auto;padding:24px;background:#fffef7;border-radius:12px;font:17px/2 system-ui,"Microsoft YaHei",sans-serif;white-space:pre-wrap;overflow-wrap:anywhere}.agent-engine-page #revision h3{margin-top:20px}.agent-engine-page #revision .agent-diff pre{max-height:72vh}
.agent-engine-page{margin:0;color:#283440;background:#f5f4ef;font:14px/1.6 system-ui,"Microsoft YaHei",sans-serif;color-scheme:light}
.agent-engine-page *{box-sizing:border-box}.agent-engine-page main{padding:18px;max-width:1250px;margin:auto}.agent-engine-page h2,.agent-engine-page h3{margin:0 0 8px}.agent-engine-page p{margin:5px 0 12px}.agent-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.agent-engine-page button{font:inherit;border:1px solid #c9cec9;border-radius:8px;padding:8px 13px;background:#fff;color:#26372e;cursor:pointer}.agent-engine-page button:hover{background:#eef2e9}.agent-engine-page button:disabled{opacity:.5;cursor:default}.agent-engine-page button.agent-primary{background:#345b49;color:#fff;border-color:#345b49}.agent-engine-page label{display:grid;gap:6px;margin:12px 0}.agent-engine-page select,.agent-engine-page textarea{font:inherit;color:inherit;border:1px solid #cbd2ca;border-radius:8px;background:#fff;padding:9px;width:100%;min-width:0}.agent-engine-page textarea{resize:vertical;min-height:110px}.agent-connections{display:grid;grid-template-columns:1fr 1fr;gap:16px}.agent-connections>section,.agent-trial,#agent-result:not(:empty){background:#fffdfa;border:1px solid #dce0d5;border-radius:12px;padding:20px}.agent-buttons{display:flex;flex-wrap:wrap;align-items:center;gap:9px}.agent-note{font-size:12px;color:#647068}.agent-settings{display:flex;gap:14px;align-items:center}.agent-settings label{width:260px}.agent-trial{margin:12px 0 20px}.agent-engine-page a{color:#246b57}.agent-engine-page #agent-message{color:#826326;min-height:24px}.agent-engine-page #agent-message.error{color:#a33223}.agent-result-heading{display:flex;gap:12px;align-items:center;justify-content:space-between}.agent-badge{display:inline-block;background:#edf1e7;padding:3px 10px;border-radius:20px;white-space:nowrap}.agent-output{white-space:pre-wrap;overflow-wrap:anywhere;max-height:320px;overflow:auto;background:#f4f5f0;padding:12px;border-radius:8px}.agent-log{max-height:260px;overflow:auto;padding-left:24px}.agent-log li{margin:8px 0}.agent-engine-page details{margin:12px 0}.agent-engine-page summary{cursor:pointer;font-weight:600;padding:5px}.agent-diff{display:grid;grid-template-columns:1fr 1fr;gap:12px}.agent-diff pre{font:13px/1.7 system-ui,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;max-height:380px;overflow:auto;margin:0;background:#f4f3eb;padding:12px;border-radius:8px}.agent-diff .agent-after{background:#edf5ea}.agent-history-label{max-width:750px}.agent-module-details{color:#637167;font-size:13px}.agent-login-card{padding:12px;margin-top:12px;border-radius:8px;background:#edf4ec}.agent-login-card code{font-size:18px;font-weight:bold;letter-spacing:2px}.agent-engine-page :focus-visible{outline:3px solid #85a890;outline-offset:2px}@media(max-width:780px){.agent-connections,.agent-diff{grid-template-columns:1fr}.agent-engine-page main{padding:12px}.agent-heading{display:block}.agent-settings{flex-wrap:wrap}.studio-agent-frame{height:1100px}}
/* Embedded engine settings share the studio palette. */
.studio-agent-frame{min-height:520px;height:650px}
.agent-engine-page{color:var(--text);background:var(--surface);font-family:var(--sans);color-scheme:inherit}
.agent-engine-page [hidden]{display:none!important}
.agent-engine-page button,.agent-engine-page select,.agent-engine-page textarea{background:var(--surface-raised);color:var(--text);border-color:var(--line)}
.agent-engine-page button:hover{background:var(--accent-wash)}
.agent-connections{grid-template-columns:1fr}
.agent-connections>section,.agent-trial,#agent-result:not(:empty){background:var(--surface-soft);border-color:var(--line)}
.agent-note,.agent-module-details{color:var(--muted)}
.agent-engine-page a,#agent-saved-state{color:var(--accent)}
.agent-output,.agent-diff pre,.agent-diff .agent-after,.agent-badge,.agent-login-card{background:var(--surface-raised)}
.agent-engine-page label:has(input[type=checkbox]){display:flex;align-items:center;gap:10px}
.agent-settings{flex-wrap:wrap}.agent-settings label{min-width:220px;flex:1}
.agent-settings #agent-saved-state{font-size:13px}.agent-module-details{margin-bottom:0}
