.agent-dlg-bg{position:fixed;top:0;right:0;bottom:0;left:0;z-index:80;display:flex;align-items:center;justify-content:center;padding:24px;background:#0000008c}.agent-dlg{position:relative;width:100%;max-width:36rem;max-height:calc(100vh - 48px);overflow:auto;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:16px;box-shadow:0 16px 48px #252a3638;padding:28px 28px 20px}.agent-dlg-x{position:absolute;top:12px;right:14px;width:32px;height:32px;padding:0;border:none;background:transparent;color:var(--muted);font-size:22px;line-height:1;cursor:pointer;border-radius:8px}.agent-dlg-x:hover{color:var(--text);background:var(--row-hover)}.agent-dlg h2{margin:0 36px 6px 0;font-size:20px;font-weight:650}.agent-dlg-sub{margin:0 0 8px;font-size:13px;color:var(--muted);line-height:1.45}.agent-dlg-section{margin:8px 0 0;font-size:13px;font-weight:600;color:var(--muted)}.agent-dlg label{display:block;margin:14px 0 6px;font-size:13px;font-weight:600;color:var(--text)}.agent-dlg .ui-switch{margin:0}.agent-dlg-scope-row{display:flex;justify-content:space-between;align-items:center;gap:16px;width:100%;padding:12px 0;border-bottom:1px solid var(--line)}.agent-dlg input,.agent-dlg select,.agent-dlg textarea{width:100%;box-sizing:border-box;background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:10px 12px;color:var(--text)}.agent-dlg textarea{min-height:88px;resize:vertical;font:inherit}.agent-dlg input:focus,.agent-dlg select:focus,.agent-dlg textarea:focus{outline:none;border-color:var(--accent)}.agent-dlg input[readonly]{color:var(--muted)}.agent-dlg-help{margin:6px 0 0;font-size:12px;color:var(--muted)}.agent-dlg-foot{display:flex;justify-content:flex-end;gap:8px;margin-top:24px;padding-top:16px;border-top:1px solid var(--line)}.agent-dlg-foot .btn{margin:0;min-width:88px}.agent-dlg.agent-settings-dlg{padding:16px 24px 12px;max-height:calc(100vh - 32px)}.agent-settings-dlg h2{margin:0 36px 2px 0;font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.agent-settings-head{margin:10px 0 0;font-size:11px;font-weight:650;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}.agent-settings-dlg label{margin:4px 0}.agent-settings-dlg .agent-dlg-scope-row label.ui-switch-copy{margin:0;cursor:default}.agent-settings-dlg input,.agent-settings-dlg select{padding:8px 10px}.agent-settings-dlg .agent-dlg-scope-row select{width:auto;min-width:14rem}.agent-settings-dlg .ui-switch.has-copy,.agent-settings-dlg .agent-dlg-scope-row{padding:4px 0}.agent-settings-dlg .agent-dlg-private{display:flex;flex-direction:column;gap:4px;padding:4px 0 8px}.agent-settings-group>:last-child,.agent-settings-group>:last-child .ui-switch.has-copy{border-bottom:none}.agent-settings-dlg .ui-switch-title{font-size:13px}.agent-settings-dlg .ui-switch-help{font-size:12px;margin-top:0;line-height:1.3}.agent-settings-dlg .ui-switch-ui{width:32px;height:18px}.agent-settings-dlg .ui-switch-ui:after{width:14px;height:14px;top:2px;left:2px}.agent-settings-dlg .ui-switch-control input:checked+.ui-switch-ui:after{transform:translate(14px)}.agent-settings-dlg .agent-dlg-foot{margin-top:8px;padding-top:10px}
