.ask-automator-admin {
  max-width: 1400px;
}

.ask-automator-page-shell,
.ask-automator-gf-shell,
.ask-automation-page-shell,
.ask-automation-gf-shell {
  max-width: 1500px;
}

.ask-automator-header-row,
.ask-automator-section-header,
.ask-automator-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ask-automator-header-row {
  align-items: flex-start;
  margin-bottom: 20px;
}

.ask-automator-section-header {
  margin-bottom: 10px;
}

.ask-automator-toolbar {
  margin-bottom: 16px;
}

.ask-automator-title {
  margin: 0;
  font-size: 2rem;
}

.ask-automator-tag {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  background: #eef2ff;
  padding: 4px 8px;
  border-radius: 999px;
  vertical-align: middle;
}

.ask-automator-subtitle,
.ask-automator-muted,
.ask-automation-muted {
  margin: 8px 0 0;
  color: #4b5563;
}

.ask-automator-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ask-automator-inline-form {
  display: inline;
  margin: 0;
}

.ask-automator-inline-form {
  display: inline-block;
  margin: 0;
}

.ask-automator-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.ask-automator-summary-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 18px 18px 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ask-automator-summary-card .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4b5563;
  font-weight: 700;
}

.ask-automator-summary-card .value {
  font-size: 1.8rem;
  line-height: 1.2;
  margin-top: 10px;
  font-weight: 700;
}

.ask-automator-overview-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  margin-top: 12px;
}

.ask-automator-overview-panel,
.ask-automator-panel,
.ask-automator-log-card,
.ask-automator-admin-panel,
.ask-automator-section,
.ask-automation-section,
.ask-automation-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.ask-automator-panel-warning,
.ask-automator-alert-warning,
.ask-automation-panel.warning,
.ask-automation-section.warning,
.ask-automator-alert-amber {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 4px solid #d97706;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.ask-automator-alert-success,
.ask-automator-success-banner {
  background: #eaf5eb;
  border: 1px solid #bae6bd;
  border-left: 4px solid #16a34a;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 3px;
}

.ask-automator-panel h2,
.ask-automator-overview-panel h2,
.ask-automator-section h2 {
  margin-top: 0;
}

.ask-automator-wide-table,
.widefat.ask-automator-table {
  border-collapse: collapse;
  width: 100%;
}

.ask-automator-table thead tr,
.ask-automator-table thead th,
.widefat.ask-automator-table thead tr {
  background: #ecfdf5;
}

.ask-automator-table tbody tr:nth-child(even),
.mapped-courses-table tbody tr:nth-child(even) {
  background-color: #f6fdf7;
}

.ask-automator-table tbody tr:nth-child(odd),
.mapped-courses-table tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

.ask-automator-table tbody tr:hover,
.mapped-courses-table tbody tr:hover {
  background-color: #e6f7ff;
}

.ask-automator-status-pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.ask-automator-status-pill.updated,
.ask-automator-healthy,
.ask-automator-status-success,
.ask-automator-badge-success,
.ask-automation-badge-success {
  background: #dcfce7;
  color: #166534;
}

.ask-automator-status-pill.unchanged,
.ask-automator-neutral,
.ask-automator-badge-neutral {
  background: #f3f4f6;
  color: #374151;
}

.ask-automator-status-pill.error,
.ask-automator-warning,
.ask-automator-status-danger,
.ask-automator-badge-warning,
.ask-automation-badge-warning,
.ask-automator-badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.ask-automator-sync-status {
  margin-left: 10px;
  font-weight: 700;
}

.ask-automator-sync-status.success {
  color: #00a32a;
}

.ask-automator-sync-status.error {
  color: #d63638;
}

.ask-automator-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ask-automator-btn-block {
  width: 100%;
}

.ask-automator-code {
  font-weight: 700;
}

.ask-automator-table-input {
  width: 100%;
}

.ask-automator-sync-progress {
  display: none;
  font-weight: 700;
  font-size: 14px;
  padding-left: 10px;
}

.ask-automator-inline-note {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 13px;
}

.ask-automator-help-list {
  margin: 10px 0 0 18px;
  color: #374151;
  line-height: 1.8;
}

.ask-automator-help-panel h2,
.ask-automation-section h2,
.ask-automator-section h2 {
  margin-top: 0;
}

.sync-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  border-top-color: #000;
  animation: spin 1s ease-in-out infinite;
  vertical-align: middle;
  margin-right: 5px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.ask-automator-log-shell {
  max-width: 1400px;
}

.ask-automator-log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}

.ask-automator-badge,
.ask-automation-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.ask-automator-badge-success,
.ask-automation-badge-success {
  background: #dcfce7;
  color: #166534;
}

.ask-automator-badge-warning,
.ask-automation-badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.ask-automator-badge-danger,
.ask-automation-badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.ask-automator-log-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ask-automator-log-card {
  overflow: hidden;
  border-radius: 14px;
  margin-top: 20px;
}

.ask-automator-log-table td,
.ask-automator-log-table th {
  padding: 12px 16px;
  vertical-align: top;
}

.ask-automator-log-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ask-automator-log-status.updated {
  background: #dcfce7;
  color: #166534;
}

.ask-automator-log-status.unchanged {
  background: #f3f4f6;
  color: #374151;
}

.ask-automator-log-status.error {
  background: #fee2e2;
  color: #991b1b;
}

.ask-automator-page-shell {
  max-width: 1500px;
}

.ask-automator-hero,
.ask-automation-hero,
.ask-automator-gf-top,
.ask-automation-gf-top {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 22px 24px;
  margin: 0 0 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ask-automator-hero h1,
.ask-automation-hero h1,
.ask-automator-gf-top h1,
.ask-automation-gf-top h1 {
  margin: 0;
  font-size: 2rem;
}

.ask-automator-hero h1 {
  margin: 0;
  font-size: 2rem;
}

.ask-automator-kpi-grid,
.ask-automation-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.ask-automator-kpi,
.ask-automation-kpi {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #2563eb;
  border-radius: 12px;
  padding: 18px 18px 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.ask-automator-kpi .ask-automator-kpi-label,
.ask-automation-kpi .label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  font-weight: 700;
}

.ask-automator-kpi .ask-automator-kpi-value,
.ask-automation-kpi .value {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 10px;
  color: #111827;
}

.ask-automator-kpi-value--success,
.ask-automation-kpi .value.success {
  color: #166534;
}

.ask-automator-kpi-value--warning,
.ask-automation-kpi .value.warning {
  color: #92400e;
}

.ask-automator-kpi-value--danger,
.ask-automation-kpi .value.danger {
  color: #991b1b;
}

.ask-automator-kpi-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  font-weight: 700;
}

.ask-automator-kpi-value {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 10px;
  color: #111827;
}

.ask-automator-muted {
  color: #4b5563;
}

.ask-automator-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.ask-automator-badge-success {
  background: #dcfce7;
  color: #166534;
}

.ask-automator-badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.ask-automator-badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.ask-automator-gf-shell {
  max-width: 1500px;
}

.ask-automator-gf-top {
  background: linear-gradient(135deg, #f5f3ff 0%, #f8fafc 100%);
  border: 1px solid #ddd6fe;
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ask-automator-gf-top h1 {
  margin: 0;
  font-size: 2rem;
}

.ask-automator-warning-panel {
  border-left: 4px solid #f59e0b;
  background: #fffdf6;
}

.ask-automator-inline-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ask-automator-inline-row.margin-bottom {
  margin-bottom: 10px;
}

.ask-automator-form-shell {
  margin-top: 20px;
}

.ask-automator-inline-label {
  margin-right: 20px;
}

.ask-automator-warning-text {
  margin: 0;
  font-weight: 700;
  color: #92400e;
}

.ask-automator-form {
  margin-top: 20px;
}

.ask-automator-preview-panel h2,
.ask-automation-panel h2,
.ask-automator-panel h2 {
  margin-top: 0;
}
.ask-automator-table {
  margin-bottom: 30px;
}

.ask-automator-table-row-warning {
  background: #fff3cd;
}

.ask-automator-text-warning {
  color: #d63638;
}

.ask-automator-text-info {
  color: #2271b1;
}

.ask-automator-text-success {
  color: #00a32a;
}

.ask-automator-text-muted {
  color: #666666;
}

.ask-automator-fq-tabs-wrapper {
  margin-bottom: 30px;
}

.ask-automator-fq-tabs {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-wrap: wrap;
  border-bottom: 2px solid #e0e0e0;
}

.ask-automator-fq-tab {
  padding: 8px 14px;
  background: #f5f5f5;
  cursor: pointer;
  border-radius: 4px 4px 0 0;
  font-size: 16px;
  color: #333;
  border: 1px solid #ddd;
  border-bottom: none;
  transition: all 0.2s ease;
  font-weight: 700;
}

.ask-automator-fq-tab:hover {
  background: #e8e8e8;
}

.ask-automator-fq-tab.active {
  background: #d60000;
  color: #fff;
  border-color: #d60000;
}

.ask-automator-fq-contents {
  padding: 20px;
  border: 1px solid #cccccc;
  border-bottom-right-radius: 12px;
  border-bottom-left-radius: 12px;
  border-top: unset;
}

.ask-automator-fq-content {
  display: none;
}

.ask-automator-fq-content.active {
  display: block;
}

.ask-automator-fq-intake-block p {
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
  line-height: 1.5;
}

.ask-automator-fq-intake-block p.ask-automator-fq-location-name,
.ask-automator-fq-intake-block p.ask-automator-fq-location-address {
  line-height: 1 !important;
}

.ask-automator-fq-location-label {
  margin-bottom: 6px !important;
  font-weight: 600;
}

.ask-automator-fq-location-name {
  margin-bottom: 4px !important;
  font-weight: 500;
}

.ask-automator-fq-location-address {
  margin: 2px 0 !important;
}

.ask-automator-fq-location-address:last-of-type {
  margin-bottom: 16px !important;
}

.ask-automator-fq-module-title {
  margin-top: 12px !important;
  margin-bottom: 4px !important;
  font-weight: 600;
}

.ask-automator-fq-module-dates {
  margin-bottom: 8px !important;
  color: #555;
}

.ask-automator-warning-box {
  background: #fff3cd;
  border: 1px solid #ffc107;
  padding: 15px;
  margin: 20px 0;
}

.ask-automator-list-inline {
  margin-left: 20px;
}

/* New utility classes added during CSS centralization sweep */
.ask-automator-btn-spaced {
  margin-right: 15px;
}

.ask-automator-help-panel {
  margin-top: 24px;
}

.ask-automator-preview-block {
  background: #f9f9f9;
  padding: 20px;
  border: 1px solid #ddd;
  margin-bottom: 20px;
}

.ask-automator-list-disc {
  list-style: disc;
  margin-left: 25px;
}

.ask-automator-info-panel {
  background: #f0f8ff;
  padding: 20px;
  border: 1px solid #0073aa;
  margin-bottom: 20px;
}

.ask-automator-fq-intake-block {
  background: #ffffff;
  padding: 15px;
  border: 1px solid #ddd;
}

.ask-automator-fq-module {
  margin-top: 10px;
}

.ask-automator-hr {
  margin: 10px 0;
  border: none;
  border-top: 1px solid #e5e7eb;
}

.ask-automator-hr-large {
  margin: 40px 0;
  border: none;
  border-top: 1px solid #e5e7eb;
}

/* Card variants */
.ask-automator-card-success { background: #dcfce7; border-left: 4px solid #16a34a; }
.ask-automator-card-warning { background: #fef3c7; border-left: 4px solid #f59e0b; }
.ask-automator-card-info { background: #eff6ff; border-left: 4px solid #1d4ed8; }
.ask-automator-card-info-alt { background: #f5f3ff; border-left: 4px solid #6d28d9; }
.ask-automator-card-danger { background: #fee2e2; border-left: 4px solid #991b1b; }

/* Value color helpers */
.ask-automator-value-success { color: #166534; }
.ask-automator-value-warning { color: #92400e; }
.ask-automator-value-info { color: #1d4ed8; }
.ask-automator-value-info-alt { color: #6d28d9; }
.ask-automator-value-danger { color: #991b1b; }

@media (max-width: 768px) {
  .ask-automator-header-row,
  .ask-automator-log-header,
  .ask-automator-inline-row {
    display: block;
  }

  .ask-automator-overview-grid {
    grid-template-columns: 1fr;
  }
}
