.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: 23px;
  font-weight: 400;
  line-height: 1.3;
  color: #1d2327;
}

.ask-automator-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #50575e;
  background: #f1f5f9;
  padding: 2px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 3px;
  vertical-align: middle;
}

.ask-automator-subtitle,
.ask-automator-muted,
.ask-automation-muted {
  margin: 4px 0 0;
  color: #646970;
  font-size: 13px;
}

.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: 20px 0;
}

.ask-automator-summary-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.ask-automator-summary-card .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #646970;
  font-weight: 600;
}

.ask-automator-summary-card .value {
  font-size: 1.5rem;
  line-height: 1.2;
  margin-top: 8px;
  font-weight: 600;
  color: #1d2327;
}

.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 #e2e8f0;
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.ask-automator-panel-warning,
.ask-automator-alert-warning,
.ask-automation-panel.warning,
.ask-automation-section.warning,
.ask-automator-alert-amber {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #dba617;
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 2px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.ask-automator-alert-success,
.ask-automator-success-banner {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #00a32a;
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 2px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.ask-automator-panel h2,
.ask-automator-overview-panel h2,
.ask-automator-section h2 {
  margin-top: 0;
  font-size: 14px;
  font-weight: 600;
  color: #1d2327;
}

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

.ask-automator-table thead tr,
.ask-automator-table thead th {
  background: #f8fafc;
  color: #2c3338;
}

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

.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: #f1f5f9;
}

.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: 8px;
  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: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 0 0 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.ask-automator-hero h1,
.ask-automation-hero h1,
.ask-automator-gf-top h1,
.ask-automation-gf-top h1 {
  margin: 0;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.3;
  color: #1d2327;
}

.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 #e2e8f0;
  border-left: 4px solid #2271b1;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.ask-automator-kpi .ask-automator-kpi-label,
.ask-automation-kpi .label {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #646970;
  font-weight: 600;
}

.ask-automator-kpi .ask-automator-kpi-value,
.ask-automation-kpi .value {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 8px;
  color: #1d2327;
}

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

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

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

.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;
  padding-bottom: 80px;
}

.ask-automator-gf-top {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.ask-automator-gf-top h1 {
  margin: 0;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.3;
  color: #1d2327;
}

.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: 4px;
  border-bottom-left-radius: 4px;
  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;
}

.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;
}

.ask-automator-card-success {
  background: #dcfce7;
  border-color: #86efac;
  border-left: 4px solid #16a34a;
}
.ask-automator-card-warning {
  background: #fef3c7;
  border-color: #fde047;
  border-left: 4px solid #f59e0b;
}
.ask-automator-card-info {
  background: #eff6ff;
  border-color: #bfdbfe;
  border-left: 4px solid #1d4ed8;
}
.ask-automator-card-info-alt {
  background: #f5f3ff;
  border-color: #ddd6fe;
  border-left: 4px solid #6d28d9;
}
.ask-automator-card-danger {
  background: #fee2e2;
  border-color: #fca5a5;
  border-left: 4px solid #991b1b;
}

.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;
}

.ask-automator-ajax-notice {
  display: none;
  margin: 12px 0;
  padding: 10px 14px;
  border-radius: 8px;
  border-left: 4px solid #646970;
  background: #f8fafc;
  font-weight: 500;
}
.ask-automator-ajax-notice:not(:empty) {
  display: block;
}
.ask-automator-ajax-notice[hidden] {
  display: none !important;
}
.ask-automator-ajax-notice-success {
  border-left-color: #16a34a;
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}
.ask-automator-ajax-notice-error {
  border-left-color: #dc2626;
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

.ask-automator-progress-bar {
  height: 4px;
  width: 100%;
  margin-bottom: 12px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
}
.ask-automator-progress-bar[hidden] {
  display: none;
}
.ask-automator-progress-bar-fill {
  height: 100%;
  width: 40%;
  background: #2271b1;
  border-radius: 2px;
  animation: ask-automator-progress-slide 1.1s ease-in-out infinite;
}
@keyframes ask-automator-progress-slide {
  0% {
    margin-left: -40%;
  }
  100% {
    margin-left: 100%;
  }
}

.ask-automator-ajax-btn.ask-automator-btn-busy {
  opacity: 0.65;
  cursor: progress;
}

@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;
  }
}

.ask-automator-sync-overlay {
  position: fixed;
  right: 15px;
  bottom: 15px;
  background: rgba(15, 23, 42, 0);
  backdrop-filter: blur(4px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: flex-end;
  width: max-content;
}

.ask-automator-sync-modal {
  background: #fff;
  padding: 30px 40px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  width: 400px;
  max-width: 90%;
}

.ask-automator-sync-modal h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.25rem;
  color: #1d2327;
  text-align: center;
}

.ask-automator-progress-container {
  width: 100%;
  height: 8px;
  background-color: #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 15px;
}

.ask-automator-progress-bar {
  height: 100%;
  width: 5%;
  background-color: #2271b1;
  transition:
    width 0.4s ease,
    background-color 0.4s ease;
}

.ask-automator-status-text {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  text-align: center;
}

.ask-automator-col-left,
.ask-automator-col-right {
  min-width: 0;
}

.ask-automator-compact-form th {
  width: 130px;
  padding: 10px 10px 10px 0;
  vertical-align: top;
  font-size: 13px;
}

.ask-automator-compact-form td {
  padding: 8px 0;
}

.ask-automator-compact-form select {
  width: 100%;
  max-width: 100%;
}


.ask-sec-page-wrap {
  max-width: 1400px;
}

.ask-sec-score-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ask-sec-score-high {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.ask-sec-score-mid {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.ask-sec-score-low {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.ask-sec-sections-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ask-sec-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  padding: 20px 24px;
}

.ask-sec-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f1;
}

.ask-sec-card-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ask-sec-icon {
  font-size: 24px;
  width: 24px;
  height: 24px;
  color: #2271b1;
  flex-shrink: 0;
}

.ask-sec-title {
  font-size: 15px;
  font-weight: 600;
  color: #1d2327;
  margin: 0 0 3px 0;
}

.ask-sec-subtitle {
  font-size: 13px;
  color: #646970;
  margin: 0;
}

.ask-sec-card-body {
  padding-top: 14px;
}

.ask-sec-description {
  font-size: 13px;
  line-height: 1.5;
  color: #50575e;
  margin: 0 0 14px 0;
}

.ask-sec-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
  cursor: pointer;
}

.ask-sec-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
  margin: 0;
}

.ask-sec-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #8c8f94;
  border-radius: 26px;
  transition: background-color 0.2s ease;
}

.ask-sec-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.ask-sec-switch input:checked + .ask-sec-slider {
  background-color: #2271b1;
}

.ask-sec-switch input:focus-visible + .ask-sec-slider {
  outline: 2px solid #2271b1;
  outline-offset: 2px;
}

.ask-sec-switch input:checked + .ask-sec-slider:before {
  transform: translateX(22px);
}

.ask-sec-slug-row {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 18px;
  margin-top: 14px;
}

.ask-sec-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1d2327;
  margin-bottom: 8px;
}

.ask-sec-input-prefix-group {
  display: flex;
  align-items: center;
  max-width: 560px;
  background: #ffffff;
  border: 1px solid #8c8f94;
  border-radius: 8px;
  overflow: hidden;
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

.ask-sec-input-prefix-group:focus-within {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
}

.ask-sec-input-prefix,
.ask-sec-input-suffix {
  background: #f1f5f9;
  padding: 6px 10px;
  color: #646970;
  font-family: monospace;
  font-size: 13px;
  user-select: none;
  border-right: 1px solid #e2e8f0;
}

.ask-sec-input-suffix {
  border-right: none;
  border-left: 1px solid #e2e8f0;
}

.ask-sec-text-input {
  border: none !important;
  box-shadow: none !important;
  padding: 6px 8px !important;
  flex: 1;
  font-family: monospace;
  font-size: 13px;
  font-weight: 600;
  color: #2c3338;
  background: transparent;
  outline: none;
}

.ask-sec-url-preview {
  margin-top: 10px;
  font-size: 13px;
  color: #646970;
}

.ask-sec-url-preview a {
  color: #2271b1;
  text-decoration: underline;
  font-weight: 600;
  margin-left: 4px;
}

.ask-sec-note-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f0f6fc;
  border: 1px solid #bae6fd;
  border-left: 4px solid #72aee6;
  border-radius: 2px;
  padding: 10px 14px;
  margin-top: 14px;
  font-size: 13px;
  color: #1d2327;
}

.ask-sec-note-box .dashicons {
  color: #2271b1;
  margin-top: 2px;
}

.ask-sec-badge-note {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #00a32a;
  border-radius: 2px;
  padding: 8px 12px;
  font-size: 13px;
  color: #166534;
  margin-top: 10px;
}

.ask-sec-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #50575e;
  margin-top: 10px;
}

.ask-sec-code-pre {
  background: #f8fafc;
  color: #1d2327;
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
  border-radius: 8px;
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  margin-top: 8px;
  overflow-x: auto;
}

.ask-sec-files-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.ask-sec-files-tags code {
  background: #f1f5f9;
  color: #1d2327;
  border: 1px solid #e2e8f0;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 12px;
}

.ask-sec-submit-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  margin-top: 24px;
  border-top: 1px solid #e2e8f0;
  background: transparent;
}

.ask-sec-btn-save {

}

.ask-sec-submit-hint {
  font-size: 13px;
  color: #646970;
}

.ask-sec-card-integrity {
  border-left: 4px solid #2271b1;
}

.ask-sec-results-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 18px;
}

.ask-sec-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.ask-sec-status-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
}

.ask-sec-status-pill-clean {
  background: #dcfce7;
  color: #166534;
}

.ask-sec-status-pill-warning {
  background: #fee2e2;
  color: #991b1b;
}


.ask-automator-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

@media (max-width: 1500px) {
  .ask-automator-two-col {
    grid-template-columns: minmax(0, 1fr);
  }
}

.ask-automator-col-left,
.ask-automator-col-right {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ask-automator-col-title {
  margin: 0 0 -8px;
  padding: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1d2327;
}

.ask-automator-two-col .ask-sec-card {
  margin: 0;
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.ask-automator-page-shell .ask-sec-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.ask-automator-page-shell .ask-automator-summary-grid {
  margin: 20px 0 24px;
}

.ask-automator-page-shell .ask-sec-card + .ask-sec-card,
.ask-automator-page-shell > .ask-sec-card {
  margin-bottom: 24px;
}

.ask-automator-summary-card {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.ask-automator-summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.ask-automator-flush-body {
  padding: 0;
  margin: 0 -24px -20px;
}

.ask-automator-flush-body .table-responsive {
  overflow-x: auto;
  margin: 0;
}

.ask-automator-page-shell .ask-automator-table {
  width: 100%;
  border: 0;
  border-top: 1px solid #e2e8f0;
  border-radius: 0;
  box-shadow: none;
  table-layout: auto;
}

.ask-automator-page-shell .ask-automator-table thead th {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.ask-automator-page-shell .ask-automator-table tbody td {
  padding: 12px 14px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  word-break: normal;
  overflow-wrap: break-word;
}

.ask-automator-page-shell .ask-automator-table tbody tr {
  transition: background-color 0.15s ease;
}

.ask-automator-page-shell .ask-automator-table tbody tr:last-child td {
  border-bottom: 0;
}

.ask-automator-page-shell .ask-automator-code,
.ask-automator-page-shell code {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 12px;
  white-space: nowrap;
}

.ask-automator-orphan-card {
  border-left: 4px solid #dba617;
}

.ask-automator-orphan-card .ask-sec-icon {
  color: #b58105;
}

.ask-automator-orphan-table th:nth-child(3),
.ask-automator-orphan-table td:nth-child(3) {
  width: 100px;
  white-space: nowrap;
}

.ask-automator-actions-cell {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.ask-automator-actions-cell form {
  margin: 0;
}

.ask-automator-actions-cell .ask-automator-change-form {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ask-automator-actions-cell .ask-automator-table-input {
  width: 110px;
  min-height: 30px;
  padding: 0 8px;
  line-height: 28px;
  font-size: 13px;
}

.ask-automator-actions-cell .button {
  white-space: nowrap;
}

.ask-automator-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  padding: 0 !important;
}

.ask-automator-btn-icon .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.ask-automator-page-shell .ask-automator-code-table th:first-child,
.ask-automator-page-shell .ask-automator-code-table td:first-child {
  width: 150px;
  max-width: 150px;
}

.ask-automator-page-shell .ask-automator-code-table td:first-child .ask-automator-code {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.ask-automator-code-empty {
  color: #94a3b8;
  padding-left: 8px;
}

.ask-automator-orphan-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid #e2e8f0;
  background: #fffbeb;
}

.ask-automator-orphan-footer .description {
  margin: 0;
}

.ask-automator-page-shell .button,
.ask-automator-page-shell input[type="text"],
.ask-automator-page-shell select {
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
  border-radius: 6px;
  border-color: #cbd5e1;
}

.ask-automator-btn-danger {
  color: #b32d2e;
  border-color: #e6a3a4;
}

.ask-automator-btn-danger:hover,
.ask-automator-btn-danger:focus {
  color: #fff;
  background: #d63638;
  border-color: #d63638;
}

.ask-automator-form-footer {
  padding: 14px 20px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 0 0 8px 8px;
}

.ask-automator-sync-banner {
  margin: 16px 20px;
}

.ask-automator-help-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
}

.ask-automator-change-code > summary {
  transition: color 0.15s ease;
}

.ask-automator-change-code > summary:hover {
  color: #135e96;
}

.ask-automator-col-right .form-table th {
  width: 120px;
  padding: 14px 10px 14px 0;
}

.ask-automator-col-right .form-table td {
  padding: 10px 0;
}

.ask-automator-col-right .widefat {
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .ask-automator-page-shell *,
  .ask-automator-summary-card {
    transition: none !important;
  }
}

.ask-automator-page-shell .ask-automator-id-input {
  width: 110px;
  min-height: 30px;
  padding: 0 8px;
  line-height: 28px;
  font-size: 13px;
}

.ask-automator-change-code {
  margin-top: 6px;
}

.ask-automator-change-code > summary {
  cursor: pointer;
  color: #2271b1;
  font-size: 12px;
  list-style: none;
  user-select: none;
}

.ask-automator-change-code > summary::-webkit-details-marker {
  display: none;
}

.ask-automator-change-code > summary::before {
  content: "\f464";
  font-family: dashicons;
  font-size: 13px;
  vertical-align: -2px;
  margin-right: 3px;
}

.ask-automator-change-code[open] > summary {
  color: #135e96;
}

.ask-automator-change-code-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.ask-automator-change-code-row .ask-automator-table-input {
  width: 66px;
  min-width: 0;
  min-height: 28px;
  padding: 0 8px;
  line-height: 26px;
  font-size: 12px;
}

.ask-automator-change-code-row .button {
  white-space: nowrap;
  padding: 0 8px;
}

.ask-automator-page-shell .ask-automator-table input[type="text"],
.ask-automator-page-shell .ask-automator-table .button,
.ask-automator-page-shell .ask-automator-table .button.button-small {
  box-sizing: border-box;
  height: 32px;
  min-height: 32px;
  margin: 0;
  padding: 0 12px;
  font-size: 13px;
  line-height: 30px;
  vertical-align: middle;
}

.ask-automator-page-shell .ask-automator-table input[type="text"] {
  padding: 0 10px;
  width: 110px;
}

.ask-automator-page-shell
  .ask-automator-table
  .ask-automator-actions-cell
  .ask-automator-table-input {
  width: 120px;
}

.ask-automator-page-shell
  .ask-automator-table
  .ask-automator-change-code-row
  .ask-automator-table-input {
  width: 72px;
  padding: 0 8px;
}

.ask-automator-page-shell
  .ask-automator-table
  .ask-automator-change-code-row
  .button {
  padding: 0 10px;
}

.ask-automator-page-shell .ask-automator-table .button.ask-automator-btn-icon {
  width: 32px;
  padding: 0 !important;
  display: flex;
}

.ask-automator-change-code > summary {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  outline: none;
}

.ask-automator-change-code > summary:focus-visible {
  box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.35);
}

.ask-automator-table-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.ask-automator-search {
  position: relative;
  flex: 1 1 260px;
  max-width: 380px;
}

.ask-automator-search .dashicons {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  font-size: 16px;
  width: 16px;
  height: 16px;
  color: #94a3b8;
  pointer-events: none;
}

.ask-automator-table-tools input.ask-automator-search-input {
  box-sizing: border-box;
  width: 100%;
  height: 32px;
  min-height: 32px;
  margin: 0;
  padding: 0 10px 0 32px;
  font-size: 13px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.ask-automator-table-tools input.ask-automator-search-input:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
  outline: none;
}

.ask-automator-page-size {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
}

.ask-automator-page-size select {
  height: 32px;
  min-height: 32px;
  margin: 0;
  font-size: 13px;
  border-radius: 6px;
}

.ask-automator-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 20px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.ask-automator-pager[hidden],
.ask-automator-paged-table tbody tr[hidden] {
  display: none;
}

.ask-automator-pager-info {
  font-size: 12px;
  color: #64748b;
}

.ask-automator-pager-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ask-automator-pager .button.ask-automator-page-btn {
  box-sizing: border-box;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  margin: 0;
  padding: 0 8px;
  line-height: 30px;
  font-size: 13px;
  border-radius: 6px;
  background: #fff;
}

.ask-automator-pager .button.ask-automator-page-btn.is-current {
  background: #2271b1;
  border-color: #2271b1;
  color: #fff;
  cursor: default;
}

.ask-automator-page-gap {
  padding: 0 4px;
  color: #94a3b8;
}

.ask-automator-empty-row td {
  padding: 28px 14px !important;
  text-align: center;
  color: #64748b;
}

.ask-automator-page-shell .ask-automator-paged-table tbody tr:nth-child(even),
.ask-automator-page-shell .ask-automator-paged-table tbody tr:nth-child(odd) {
  background-color: #fff;
}

.ask-automator-page-shell .ask-automator-paged-table tbody tr.is-alt {
  background-color: #f8fafc;
}

.ask-automator-page-shell .ask-automator-paged-table tbody tr:hover {
  background-color: #f1f5f9;
}

select#ask_gf_form,
select#ask_gf_dropdown,
select#ask_fq_course {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  width: 100%;
}

.ask-automator-empty-state {
  margin: 0;
  padding: 24px 20px;
  text-align: center;
  color: #64748b;
}

.ask-automator-page-shell .form-table .ask-automator-table-input {
  box-sizing: border-box;
  width: 100%;
  max-width: 520px;
  height: 32px;
  min-height: 32px;
  border-radius: 6px;
  border-color: #cbd5e1;
}
