/* Pewit AI Schema Builder — plugin-specific admin (shell: pewit-admin-shell.css) */
.aisb-notice-bar{min-height:0;margin-bottom:12px;font-size:13px;font-weight:500}
.aisb-notice-ok{color:#065f46}
.aisb-notice-error{color:#b91c1c}
.aisb-notice-warn{color:#92400e}
.aisb-notice{padding:10px 12px;border-radius:8px;font-size:13px;margin:0 0 12px}
.aisb-notice-warn{background:#fff8e6;border:1px solid #f6e2b8}
.aisb-settings-card label{display:block;margin:14px 0 6px;font-weight:600;font-size:13px}
.aisb-settings-card .description{font-size:12px;color:var(--pewit-muted)}
.aisb-inline{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:8px 0}
.aisb-inline-fields{display:flex;gap:16px;align-items:center;margin-top:12px;flex-wrap:wrap}
.aisb-api-key-field{margin-bottom:8px}
.aisb-api-key-field code{font-family:var(--pewit-mono);font-size:13px;padding:6px 10px;background:#f8fafc;border-radius:6px}
.aisb-status{font-size:13px;margin:8px 0}
.aisb-status.ok{color:#065f46}
.aisb-status.error{color:#b91c1c}
.aisb-filter-tabs{display:flex;gap:8px;flex-wrap:wrap}
.aisb-filter-tabs .is-active{background:#eef4ff;border-color:#dbe7ff}
.aisb-list-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.aisb-table{margin-top:8px}
.aisb-badge{display:inline-block;font-size:11px;font-weight:600;padding:2px 8px;border-radius:999px}
.aisb-badge-ok{background:#f0fbf6;color:#065f46}
.aisb-badge-missing{background:#f1f5f9;color:#64748b}
.aisb-badge-error{background:#fef2f2;color:#b91c1c}
.aisb-progress{height:8px;background:#e7eaf1;border-radius:999px;overflow:hidden;margin:12px 0}
.aisb-progress-bar{height:100%;background:linear-gradient(90deg,#1f4fe6,var(--pewit-primary));transition:width .3s}
.aisb-job-log{margin-top:12px;font-size:12px}
.aisb-job-log ul{margin:8px 0 0;padding-left:18px;max-height:200px;overflow:auto;font-family:var(--pewit-mono)}
.aisb-log-error{color:#b91c1c}
.aisb-log-success{color:#065f46}
.aisb-log-warning{color:#92400e}

/* Post editor metabox */
.aisb-metabox{font-family:var(--pewit-font)}
.aisb-metabox-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:12px}
.aisb-metabox-row label{font-weight:600;margin-right:4px}
.aisb-json-preview{width:100%;font-family:var(--pewit-mono);font-size:12px;line-height:1.5;border:1px solid var(--pewit-border);border-radius:8px;padding:10px;background:#f8fafc}
.aisb-metabox-actions{display:flex;gap:8px;align-items:center;margin:12px 0;flex-wrap:wrap}
.aisb-metabox-status{font-size:13px;font-weight:500}
.aisb-validation-result{padding:12px;border-radius:8px;font-size:13px;margin-top:8px}
.aisb-validation-ok{background:#f0fbf6;border:1px solid #bdebd6}
.aisb-validation-error{background:#fef2f2;border:1px solid #fecaca}
.aisb-validation-warnings{color:var(--pewit-muted)}

/* CPT table */
.aisb-cpt-table code{font-size:11px;margin-left:6px;color:var(--pewit-muted)}
.aisb-badge-etch{background:#2d1f4a;color:#c4b5fd}
.aisb-badge-cct{background:#1e3a5f;color:#93c5fd}
.aisb-badge-metabox{background:#3f2f1f;color:#fcd34d}
.aisb-rr-score-block{display:inline-flex;flex-direction:column;align-items:center;padding:12px 16px;border-radius:12px;margin-bottom:12px}
.aisb-rr-score-value{font-size:32px;font-weight:700;line-height:1}
.aisb-rr-score-label{font-size:12px;margin-top:4px;opacity:.85}
.aisb-rr-score-block--excellent,.aisb-rr-score--excellent{background:#ecfdf5;color:#065f46}
.aisb-rr-score-block--good,.aisb-rr-score--good{background:#eff6ff;color:#1d4ed8}
.aisb-rr-score-block--fair,.aisb-rr-score--fair{background:#fffbeb;color:#b45309}
.aisb-rr-score-block--poor,.aisb-rr-score--poor{background:#fef2f2;color:#b91c1c}
.aisb-rr-score-block--critical,.aisb-rr-score--critical{background:#450a0a;color:#fecaca}
.aisb-rr-unit{font-size:14px;font-weight:500;opacity:.7}
.pewit-killer-card{border:1px solid #2f6bff33;background:linear-gradient(135deg,#f8fbff,#fff)}
.aisb-onboarding-modal.is-open{display:block}
.aisb-onboarding-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.55)}
.aisb-onboarding-panel{position:relative;max-width:520px;margin:10vh auto;padding:24px;z-index:1}
.aisb-onboarding-steps{margin:12px 0 12px 20px}
.aisb-onboarding-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.aisb-field-map-group{margin:12px 0;border:1px solid #e2e8f0;border-radius:8px;padding:8px 12px}
.aisb-field-map-group summary{cursor:pointer;font-weight:600;margin-bottom:8px}
.aisb-field-map-table{margin-top:8px}
.aisb-mb-table-list{margin:8px 0 16px 20px}
.pewit-callout-etch{background:#1a1625;border:1px solid #3d2f5c;color:#e9e0ff}

/* EtchWP native admin skin */
body.aisb-etch-ui .pewit-wrap{--pewit-text:#e8eaef;--pewit-muted:#9aa3b5;--pewit-primary:#8b5cf6;--pewit-bg:#121218;--pewit-surface:#1a1a22;--pewit-border:#2a2a36}
body.aisb-etch-ui .pewit-app-body{background:linear-gradient(180deg,#121218,#1a1a22 360px)}
body.aisb-etch-ui .pewit-app-icon{background:linear-gradient(135deg,#5b21b6,#8b5cf6);box-shadow:0 8px 20px rgba(139,92,246,.35)}
body.aisb-etch-ui .pewit-plan-pro,body.aisb-etch-ui .pewit-plan-trial{background:#2d1f4a;border-color:#4c3d6e;color:#c4b5fd}
body.aisb-etch-ui .pewit-btn-primary{background:#7c3aed}
body.aisb-etch-ui .pewit-btn-secondary{background:#1f1f28;color:#e8eaef;border-color:#2a2a36}
body.aisb-etch-ui .pewit-tab.is-active{background:#1f1f28;border-color:#2a2a36;color:#fff}
body.aisb-etch-ui .aisb-json-preview{background:#0f0f14;color:#e8eaef;border-color:#2a2a36}
body.aisb-etch-ui .aisb-api-key-field code{background:#0f0f14;color:#e8eaef}
body.aisb-etch-ui .aisb-validation-ok{background:#13241f;border-color:#1f4d3f}
body.aisb-etch-ui .aisb-validation-error{background:#2a1518;border-color:#5c2a32}
body.aisb-etch-ui #wpbody-content .aisb-metabox .button-primary{background:#7c3aed;border-color:#6d28d9}
body.aisb-etch-ui #wpbody-content .aisb-metabox select,
body.aisb-etch-ui #wpbody-content .aisb-metabox textarea{background:#0f0f14;color:#e8eaef;border-color:#2a2a36}
