.agent-dialog{width:min(540px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid #cbd7cc;border-radius:18px;background:#fafbf8;color:#30443a;overflow:auto}.agent-dialog::backdrop{background:#24362c80}.agent-dialog>header{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;align-items:center;padding:18px 20px;background:#fafbf8;border-bottom:1px solid #dce3da}.agent-dialog h2{font-size:21px;margin:3px 0 0}.agent-dialog small{font-size:12px;color:#637468}.agent-dialog header button{font-size:24px;width:44px;border:0;background:transparent}.agent-dialog-body{padding:4px 20px 18px;display:grid;gap:12px}.agent-dialog p{font-size:14px;line-height:1.65;margin:8px 0}.agent-dialog label{font-size:14px;font-weight:600}.agent-dialog textarea{display:block;width:100%;margin-top:7px;font:inherit;font-size:16px;line-height:1.5;padding:10px;border:1px solid #bdcbbf;border-radius:9px;resize:vertical;box-sizing:border-box}.agent-dialog button{min-height:44px;font:inherit;cursor:pointer;padding:10px 12px;border-radius:9px}.agent-dialog button:disabled{opacity:.6;cursor:default}.agent-dialog .primary{background:#405e4d;color:white;border:1px solid #405e4d}.agent-secondary{display:flex;gap:8px}.agent-secondary button{flex:1;background:white;border:1px solid #d5dfd4;font-size:13px}.agent-dialog .agent-status{margin:0}.agent-dialog summary{cursor:pointer;font-size:14px;padding:9px 0}.agent-dialog .agent-privacy{font-size:12px;color:#6f776e;border-top:1px solid #dce3da;padding-top:12px}.agent-dialog a{color:#315d49}.agent-preview-link{display:block;padding:14px;border:1px solid #6d927d;border-radius:10px;text-align:center;text-decoration:none;background:#e8f2e9}.agent-preview-banner{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#edf5eb;border-bottom:1px solid #bbd1bc;padding:10px 16px;font-size:13px;grid-column:1/-1}.agent-preview-banner small{display:block;margin-top:3px}.agent-preview-banner>div:last-child{display:flex;align-items:center;gap:12px}.agent-preview-banner button{min-height:44px;padding:8px 12px;background:#405e4d;color:white;border:0;border-radius:9px;font:inherit}.agent-preview-banner a{color:#405e4d}.agent-preview-mode #save-current-plan,.agent-preview-mode #saved-plan-grid,.agent-preview-mode #recovery-resume{display:none!important}@media(max-width:600px){.agent-dialog>header{padding:12px 16px}.agent-dialog-body{padding:4px 16px 14px}.agent-preview-banner{padding:8px 10px;align-items:start;flex-direction:column;gap:6px}.agent-preview-banner>div:last-child{width:100%;justify-content:space-between}.agent-preview-banner button{font-size:12px}.agent-preview-banner strong{font-size:13px}}.agent-dialog [hidden]{display:none!important}
.agent-preview-mode .workspace>.mode-tools{position:static!important;padding:4px 12px;align-self:flex-end}.agent-preview-banner{flex:none}
.agent-mcp-connection{padding:14px;background:#f0f4ec;border:1px solid #d3dfce;border-radius:12px;min-width:0;color:#30443a;font-size:14px;line-height:1.65}.agent-mcp-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.agent-mcp-heading span{font-size:12px;padding:2px 8px;border:1px solid #b9cbb5;border-radius:20px;background:#fafbf8}.agent-mcp-connection label{display:block;font-weight:600;margin:12px 0 8px}.agent-mcp-connection input{display:block;box-sizing:border-box;width:100%;min-width:0;min-height:44px;margin-top:6px;padding:9px;border:1px solid #bdcbbf;border-radius:8px;background:#fff;color:inherit;font:16px/1.4 ui-monospace,monospace}.agent-mcp-connection button{box-sizing:border-box;min-height:44px;width:100%;padding:10px 12px;border:1px solid #afc4ac;border-radius:9px;background:#fff;color:#315d49;font:inherit;cursor:pointer}.agent-mcp-connection button:disabled{opacity:.6;cursor:default}.agent-mcp-connection :is(button,input,summary):focus-visible{outline:3px solid #598f73;outline-offset:3px}.agent-mcp-connection .agent-mcp-status{margin:6px 0;font-size:13px}.agent-mcp-connection .agent-mcp-status:empty{display:none}.agent-mcp-connection h4{font-size:14px;margin:14px 0 4px}.agent-mcp-connection p{font-size:13px;margin:8px 0;line-height:1.65}.agent-mcp-connection summary{min-height:44px;box-sizing:border-box;padding:10px 0;cursor:pointer;font-size:14px}.agent-mcp-connection pre{margin:8px 0;padding:10px;border-radius:8px;background:#e4ebde;white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.65 ui-monospace,monospace}.agent-mcp-connection code{overflow-wrap:anywhere}.agent-mcp-connection a{color:#315d49;text-underline-offset:3px}.agent-mcp-connection .agent-mcp-cost{padding-top:10px;border-top:1px solid #d3dfce}.agent-dialog .agent-mcp-connection{margin-top:6px}.agent-dialog .agent-privacy+.agent-privacy{border-top:0;padding-top:0;margin-top:-8px}
