/* Administrator app installer connections. Inherits the panel's typography. */
.app-installers-page{--ai-purple:#8352f1;--ai-text:var(--wp-text,#19314b);--ai-muted:var(--wp-muted,#6c7c91);--ai-border:var(--wp-border,#e5e7ee);display:flex;flex-direction:column;gap:20px;min-width:0;color:var(--ai-text)}
.app-installers-page *, .app-installers-page *::before,.app-installers-page *::after{box-sizing:border-box}
.app-installers-page [hidden]{display:none!important}
.app-installers-page h2{font-size:16px;font-weight:600;line-height:1.5;margin:0;color:var(--ai-text)}
.app-installers-page button{font:inherit;font-size:13px;line-height:1.5;white-space:normal;min-height:38px;cursor:pointer}
.app-installers-page button:disabled{cursor:default;opacity:.55}
.app-installers-page button:focus-visible,.app-installers-page input:focus-visible,.app-installers-page select:focus-visible{outline:3px solid #d8c6ff;outline-offset:2px}
.app-installers-page .wp-table-card{background:#fff;border:1px solid var(--ai-border);border-radius:14px;box-shadow:0 2px 5px #1e244003;overflow:hidden}
.ai-page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px}
.app-installers-page .ai-eyebrow{display:block;font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:var(--ai-purple);font-weight:600;margin-bottom:6px}
.app-installers-page .wp-page-title{margin:0 0 8px;font-size:25px;line-height:1.35;display:flex;align-items:center;gap:10px}
.app-installers-page .wp-page-title i{font-size:22px;color:var(--ai-purple)}
.app-installers-page .wp-page-subtitle{font-size:13px;line-height:1.6;margin:0;color:var(--ai-muted)}
.ai-page-heading>button{flex-shrink:0}
#ai-body{display:flex;flex-direction:column;gap:20px;min-width:0}
.ai-provider-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.ai-provider{min-width:0;display:flex;flex-direction:column;background:#fff;border:1px solid var(--ai-border);border-radius:14px;padding:22px;position:relative}
.ai-provider--active{border-color:var(--ai-purple);box-shadow:0 0 0 1px var(--ai-purple)}
.ai-provider-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}
.ai-brand-icon{display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:12px;background:#f0e9ff;color:var(--ai-purple);font-size:21px;flex-shrink:0}
.ai-brand-icon--remote{color:#f59e0b;background:#fff5e1}
.ai-badge{display:inline-flex;align-items:center;justify-content:center;gap:5px;font-size:11px;line-height:1.4;border:1px solid #e6e9f1;border-radius:99px;padding:4px 9px;background:#f7f8fb;color:#64748b;text-align:center;white-space:normal}
.ai-badge--purple{background:#f3eeff;color:#7741dd;border-color:#e9dcff}
.ai-badge--green{background:#ecfdf5;color:#047857;border-color:#b8f1d6}
.ai-provider h2{font-size:18px}
.ai-provider>p{color:var(--ai-muted);font-size:13px;line-height:1.7;margin:8px 0 20px;flex:1}
.ai-provider-bottom{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding-top:18px;border-top:1px solid #f0f1f5}
.ai-muted,.ai-availability{font-size:12px;line-height:1.6;color:var(--ai-muted)}
.ai-availability{display:inline-flex;align-items:center;gap:6px;color:#047857}
.ai-availability>span{width:6px;height:6px;background:#10b981;border-radius:50%}
.ai-current-note,.ai-inline-notice{display:flex;align-items:flex-start;gap:10px;background:#f6f2ff;color:#615379;border:1px solid #eae1ff;border-radius:10px;padding:13px 16px;font-size:12px;line-height:1.7}
.ai-current-note i,.ai-inline-notice i{margin-top:3px;color:var(--ai-purple);flex-shrink:0}
.ai-current-note p,.ai-inline-notice p{margin:0}
.ai-current-note strong{font-weight:600}
.ai-card-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 24px;border-bottom:1px solid var(--ai-border)}
.ai-card-heading>div{position:relative;padding-left:45px;min-width:0}
.ai-step{position:absolute;left:0;top:2px;background:#f4efff;color:var(--ai-purple);font-size:12px;font-weight:600;display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:10px}
.ai-card-heading p{font-size:12px;line-height:1.7;margin:5px 0 0;color:var(--ai-muted)}
.ai-card-heading>.ai-badge{flex-shrink:0;max-width:120px}
.ai-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px;padding:24px}
.ai-form>label{display:flex;flex-direction:column;gap:9px;font-size:12px;font-weight:500;line-height:1.6;min-width:0;color:var(--ai-text)}
.ai-wide{grid-column:1/-1}
.ai-required{font-size:11px;font-weight:400;color:var(--ai-muted)}
.ai-form>label .ai-required{margin-top:-6px;margin-bottom:0}
.app-installers-page .form-control{display:block;width:100%;max-width:100%;min-width:0;font:inherit;color:var(--ai-text);background-color:#fff;border:1px solid #dfe3ed;border-radius:8px;padding:10px 12px;min-height:42px;line-height:1.5;box-shadow:none;margin:0}
.app-installers-page select.form-control{padding-right:36px;background-repeat:no-repeat;background-position:right 12px center;background-size:12px 8px}
.app-installers-page .form-control:focus{border-color:#ab89f7}
.app-installers-page .form-control:disabled{background-color:#f7f8fb;color:#8c96a5}
.app-installers-page .form-control::placeholder{color:#9a9fac;opacity:1;font-weight:400}
.ai-form small,.ai-field-note{font-size:11px;line-height:1.7;color:var(--ai-muted);font-weight:400;margin:0}
.ai-field-note{margin-top:-6px}
.ai-form-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:4px}
.ai-form-actions>div{display:flex;flex-wrap:wrap;gap:9px;justify-content:flex-end}
.ai-connection-foot{padding:14px 24px;border-top:1px solid var(--ai-border);background:#fcfcfe;display:flex;justify-content:space-between;align-items:center;gap:20px}
.ai-connection-foot p{font-size:11px;line-height:1.7;color:var(--ai-muted);margin:0;max-width:650px}
.app-installers-page .ai-text-danger{color:#d43f4c;background:none;border:0;padding:4px 0;min-height:32px;font-size:12px;flex-shrink:0}
.app-installers-page .ai-text-danger:hover:not(:disabled){text-decoration:underline}
.ai-inline-notice{margin:20px 24px 0}
.ai-table-wrap{overflow:auto;max-width:100%;padding:0 24px}
.ai-table{width:100%;border-collapse:collapse;font-size:12px;text-align:left;margin:8px 0;min-width:540px}
.ai-table th{color:var(--ai-muted);font-weight:500;font-size:11px;padding:16px 12px;border-bottom:1px solid var(--ai-border)}
.ai-table td{padding:16px 12px;border-bottom:1px solid #f0f1f5;vertical-align:middle}
.ai-table th:first-child,.ai-table td:first-child{padding-left:0}
.ai-table th:last-child,.ai-table td:last-child{padding-right:0}
.ai-table tr:last-child td{border-bottom:0}
.ai-table td:first-child{width:34%;overflow-wrap:anywhere}
.ai-table td:nth-child(2){width:43%}
.ai-table strong{font-weight:600}
.ai-table td small{display:block;margin-top:5px;font-size:11px;color:var(--ai-muted);overflow-wrap:anywhere}
.ai-owner{overflow-wrap:anywhere;color:var(--ai-muted)}
.ai-mapping-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 24px;background:#fcfcfe;border-top:1px solid var(--ai-border)}
.ai-mapping-actions p{margin:0;font-size:11px;line-height:1.7;color:var(--ai-muted);max-width:650px}
.ai-mapping-actions>button{flex-shrink:0}
.ai-empty{display:flex;align-items:center;flex-direction:column;text-align:center;gap:9px;padding:34px 24px;font-size:13px;line-height:1.7;color:var(--ai-muted)}
.ai-empty>strong{color:var(--ai-text);font-size:14px;font-weight:600}
.ai-empty p{margin:0;max-width:560px;font-size:12px}
.ai-empty-icon{width:42px;height:42px;border-radius:12px;background:#f3efff;color:#a586e5;display:flex;align-items:center;justify-content:center;font-size:19px;margin-bottom:4px}
.ai-workspace{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:0 5px}
.ai-workspace h2{font-size:14px}
.ai-workspace p{font-size:12px;line-height:1.7;margin:5px 0 0;color:var(--ai-muted)}
.ai-workspace>button{flex-shrink:0}
.ai-message{padding:13px 16px;border:1px solid #c0ecd6;border-radius:10px;background:#effcf6;color:#176344;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.ai-message--error{border-color:#f5ccd2;background:#fff3f4;color:#ad2336}
.ai-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Panel module library: its controls deliberately use a single, compact flow. */
.ai-module-card{margin:0}
.ai-module-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 24px;border-bottom:1px solid var(--ai-border)}
.ai-module-heading__copy{display:flex;align-items:flex-start;gap:13px;min-width:0}
.ai-module-heading__icon{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:38px;height:38px;border-radius:11px;background:#f3eeff;color:var(--ai-purple);font-size:16px}
.ai-module-heading .ai-eyebrow{margin-bottom:3px}
.ai-module-heading h2{font-size:17px;line-height:1.35}
.ai-module-heading p{margin:3px 0 0;color:var(--ai-muted);font-size:12px;line-height:1.6}
.ai-module-heading>button{flex:0 0 auto}
.ai-module-content{display:flex;flex-direction:column;gap:18px;padding:22px 24px 24px}
.ai-module-upload{display:grid;grid-template-columns:minmax(230px,.8fr) minmax(360px,1.2fr);align-items:center;gap:24px;padding:18px 20px;border:1px solid #e8e2f8;border-radius:12px;background:#fcfbff}
.ai-module-upload__copy label{display:block;font-size:13px;font-weight:600;color:var(--ai-text)}
.ai-module-upload__copy p{margin:5px 0 0;color:var(--ai-muted);font-size:12px;line-height:1.65}
.ai-module-upload__copy code{font:inherit;color:#5f3bb4;background:#f0ebfc;border-radius:4px;padding:1px 4px}
.ai-module-upload__controls{display:flex;flex-direction:column;gap:11px;min-width:0}
.ai-module-upload__controls input[type=file]{padding:7px 10px;cursor:pointer}
.ai-module-upload__controls input[type=file]::file-selector-button{margin-right:10px;padding:5px 9px;border:1px solid #d7dceb;border-radius:5px;background:#fff;color:var(--ai-text);font:inherit;font-size:12px;cursor:pointer}
.ai-module-upload__actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px}
.ai-module-notice{display:flex;align-items:flex-start;gap:10px;margin:0;padding:12px 14px;border:1px solid #f0dfb7;border-radius:10px;background:#fffbf1;color:#735c23;font-size:12px;line-height:1.65}
.ai-module-notice i{margin-top:3px;color:#b7791f}
.ai-module-notice p{margin:0}
.ai-module-library{border:1px solid var(--ai-border);border-radius:12px;overflow:hidden;background:#fff}
.ai-module-library>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid var(--ai-border);background:#fdfdfe}
.ai-module-library h3,.ai-module-workspace__heading h3{margin:0;font-size:14px;font-weight:600;color:var(--ai-text)}
.ai-module-library p{margin:3px 0 0;color:var(--ai-muted);font-size:11px;line-height:1.6}
.ai-module-library .ai-table-wrap{padding:0 20px}
.ai-module-table{margin:0;min-width:640px}
.ai-module-table th{padding-top:13px;padding-bottom:13px;background:transparent}
.ai-module-table td{padding-top:17px;padding-bottom:17px}
.ai-module-table td:first-child{width:46%}
.ai-module-table td:nth-child(2){width:12%}
.ai-module-table td:nth-child(3){width:15%}
.ai-module-table td:nth-child(4){width:27%}
.ai-module-table td p{margin:5px 0 0;color:var(--ai-muted);font-size:11px;line-height:1.55}
.ai-module-status{display:inline-flex;align-items:center;gap:6px;border:1px solid;border-radius:999px;padding:3px 8px;font-size:11px;font-weight:500;white-space:nowrap}
.ai-module-status::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.ai-module-status--enabled{color:#087758;background:#effbf5;border-color:#c4efd9}
.ai-module-status--disabled{color:#6b7280;background:#f7f8fa;border-color:#e1e4e9}
.ai-module-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.ai-module-actions button{min-height:36px}
.ai-module-remove{color:#a22f3e!important}
.ai-module-workspace__heading{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 0 0}
#pm-workspace{border-top:1px solid var(--ai-border);padding-top:2px}
#pm-frame{margin-top:14px}
@media(max-width:900px){.ai-module-upload{grid-template-columns:1fr;gap:15px}.ai-module-table td:first-child{width:40%}.ai-module-table td:nth-child(4){width:33%}}
@media(min-width:1600px){.ai-provider{padding:26px}.ai-provider-grid{gap:22px}.ai-form{gap:20px 24px}}
@media(max-width:800px){.ai-provider-bottom{align-items:flex-start;flex-direction:column}.ai-form-actions{align-items:flex-start;flex-direction:column}.ai-form-actions>div{justify-content:flex-start;width:100%}.ai-card-heading{align-items:flex-start}.ai-workspace,.ai-mapping-actions{align-items:flex-start;flex-direction:column}.ai-connection-foot{align-items:flex-start;flex-direction:column;gap:8px}.ai-form,.ai-card-heading{padding:20px}.ai-inline-notice{margin:16px 20px 0}.ai-table-wrap{padding:0 20px}.ai-module-heading,.ai-module-content{padding-left:20px;padding-right:20px}.ai-module-upload{padding:16px}.ai-module-library .ai-table-wrap{padding:0 16px}}
@media(max-width:560px){.app-installers-page{gap:16px}.ai-page-heading{padding:20px;align-items:flex-start;flex-direction:column;gap:14px}.app-installers-page .wp-page-title{font-size:23px}.ai-provider-grid{grid-template-columns:1fr;gap:16px}.ai-provider{padding:20px}.ai-provider-bottom{flex-direction:row;align-items:center}.ai-form{grid-template-columns:1fr;gap:17px}.ai-form-actions>div{flex-direction:column}.ai-form-actions>div>button{width:100%}.ai-card-heading{gap:10px}.ai-card-heading>div{padding-left:0}.ai-step{position:static;margin-bottom:12px}.ai-card-heading>.ai-badge{max-width:95px}.ai-workspace{padding:0}.ai-workspace>button,.ai-mapping-actions>button{width:100%}.ai-form-actions>.ai-muted{font-size:11px}.ai-connection-foot{padding:14px 20px}.ai-mapping-actions{padding:16px 20px}.ai-table{min-width:0;display:block;margin:0}.ai-table thead{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0)}.ai-table tbody{display:block}.ai-table tr{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:20px 0;border-bottom:1px solid var(--ai-border)}.ai-table tr:last-child{border-bottom:0}.ai-table td{display:block;width:100%!important;padding:0!important;border:0}.ai-table td::before{content:attr(data-ai-label);display:block;font-size:10px;line-height:1.6;color:var(--ai-muted);margin-bottom:5px}.ai-table td small{margin-top:2px}.ai-module-heading{align-items:flex-start;flex-direction:column;gap:14px}.ai-module-heading>button{width:100%}.ai-module-content{padding:16px}.ai-module-upload{padding:15px;gap:14px}.ai-module-upload__actions{align-items:stretch;flex-direction:column}.ai-module-upload__actions button{width:100%}.ai-module-library>header{padding:15px 16px}.ai-module-library .ai-table-wrap{padding:0 16px}.ai-module-table tr{gap:9px;padding:17px 0}.ai-module-actions{justify-content:flex-start}.ai-module-workspace__heading{align-items:flex-start;flex-direction:column}.ai-module-workspace__heading button{width:100%}}
