/* Catalog follows the admin light surface; teal identifies the active profile. */
.ap-panel{border:1px solid #e2e8f0;background:#fff;border-radius:16px;padding:24px;color:#0f172a}
.ap-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:20px}
.ap-head h2,.ap-head h3{font-size:18px;font-weight:650;margin:0}
.ap-muted{color:#64748b;font-size:13px;line-height:1.6}
.ap-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
.ap-card{padding:20px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;color:#0f172a;min-width:0}
.ap-card.active{border-color:#339b87;background:#f0fdfa}
.ap-card h3{font-size:15px;font-weight:650;margin:12px 0 6px}
.ap-card code{font-size:12px;overflow-wrap:anywhere;color:#334155}
.ap-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.ap-button{border:1px solid #cbd5e1;background:#fff;color:#334155;padding:8px 12px;border-radius:8px;font-size:12px;cursor:pointer}
.ap-button:hover{background:#f1f5f9}
.ap-button.primary{background:#137c6d;border-color:#137c6d;color:#fff}
.ap-button:disabled{opacity:.5;cursor:default}
.ap-tag{font-size:10px;text-transform:uppercase;letter-spacing:.09em;border:1px solid #cbd5e1;border-radius:20px;padding:4px 8px;color:#475569;display:inline-block}
.ap-card.active .ap-tag{color:#116653;border-color:#74bba9}
.ap-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.ap-toolbar .selected{background:#e0f2ed;border-color:#74bba9;color:#115e4f}
.ap-field{display:flex;flex-direction:column;gap:7px;min-width:0}
.ap-field label{font-size:12px;color:#334155;font-weight:550}
.ap-field input,.ap-field select,.ap-field textarea,.ap-select{width:100%;background:#fff;color:#0f172a;border:1px solid #cbd5e1;border-radius:8px;padding:10px 12px;font-size:13px;outline:none}
.ap-field input:focus,.ap-field select:focus,.ap-field textarea:focus,.ap-select:focus{border-color:#137c6d;box-shadow:0 0 0 2px #137c6d26}
.ap-field textarea{min-height:90px;font-family:ui-monospace,monospace;line-height:1.6}
.ap-span{grid-column:1/-1}
.ap-dialog{position:fixed;inset:0;background:#0f172a88;z-index:100;display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(5px)}
.ap-dialog[hidden],.ap-panel[hidden]{display:none}
.ap-dialog-inner{max-width:800px;width:100%;max-height:90vh;overflow:auto;box-shadow:0 24px 90px #0f172a40}
.ap-dialog details{margin-top:20px}
.ap-dialog summary{cursor:pointer;color:#475569;font-size:13px;margin-bottom:12px}
.ap-error{color:#b42318;white-space:pre-wrap;font-size:13px;margin-top:12px}
.ap-result{padding:16px;border-radius:10px;background:#eaf7f2;color:#145b48;white-space:pre-wrap;font-size:13px;margin-top:18px}
.ap-result:empty{display:none}
.ap-connection{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-top:1px solid #e2e8f0}
.ap-empty{padding:36px 16px;text-align:center;color:#64748b}
.ap-small{font-size:11px}
.ap-hidden{display:none!important}
#legacy-provider-fields>div:not(:has(#setting-no-context-policy)):not(:has(#setting-no-context-response)){display:none}
@media(max-width:640px){.ap-panel{padding:17px}.ap-grid{grid-template-columns:1fr}.ap-dialog{padding:8px}.ap-dialog-inner{max-height:96vh}.ap-head{align-items:flex-start}}
