/* Premium dashboard styles + health badges */
.sio-wrap.premium h1 {
  margin-bottom: 14px;
}

/* Main grid layout for dashboard */
.sio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-areas:
    "progress cards"
    "library  library"
    "alt      alt";
  gap: 18px;
}

/* Generic panel styling */
.sio-panel {
  background: #fff;
  border: 1px solid #e7eaef;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  padding: 18px;
}

/* Make the processing note a simple inline row */
.sio-status-note.sio-status-processing,
.sio-queue-note.sio-status-processing {
    display: flex;
    align-items: center;
    gap: 6px;              /* space between spinner and text */
    margin-bottom: 8px;
}

/* Override core .spinner behaviour for our inline version */
.sio-inline-spinner {
    float: none;           /* stop WP from pushing it to the right */
    margin: 0 6px 0 0;     /* small gap before the text */
    display: inline-block;
    vertical-align: middle;
}


/* Individual panel areas */
.sio-panel.progress {
  grid-area: progress;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.sio-panel.cards {
  grid-area: cards;
  display: flex;
  gap: 12px;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: wrap;
}

.sio-panel.library {
  grid-area: library;
}

.sio-panel.alt {
  grid-area: alt;
}

/* Cards */
.sio-card {
  flex: 1 1 0;
  background: linear-gradient(180deg, #f9fbff 0, #f4f7fb 100%);
  border: 1px solid #e3e8f0;
  border-radius: 12px;
  padding: 14px 16px;
}

.sio-card.small {
  min-width: 180px;
}

.sio-card-label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 6px;
}

.sio-card-value {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}

/* Circular progress ring */
.sio-progress-ring {
  position: relative;
  width: 140px;
  height: 140px;
  flex: 0 0 auto;
}

.sio-progress-ring svg {
  width: 140px;
  height: 140px;
  transform: rotate(-90deg);
}

.sio-progress-ring path.bg {
  fill: none;
  stroke: #eef2f7;
  stroke-width: 3.6;
}

.sio-progress-ring path.val {
  fill: none;
  stroke: #2563eb;
  stroke-linecap: round;
  stroke-width: 3.6;
  transition: stroke-dasharray 0.3s ease;
}

.sio-ring-label {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: #111827;
}

/* Progress text + buttons */
.sio-progress-text {
  flex: 1 1 220px;
  min-width: 0;
}

.sio-progress-text .sio-progress-count {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.sio-progress-text .sio-progress-sub {
  color: #6b7280;
  margin: 8px 0 10px;
}

/* Action buttons (Start / Pause) */
.sio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 4px;
}

.sio-actions .button {
  margin-right: 0;
}

/* Savings row inside progress panel */
.sio-panel.progress .sio-progress-savings {
  margin-top: 16px;
}

.sio-panel.progress .sio-progress-savings .sio-card {
  padding: 10px 14px;
}

.sio-panel.progress .sio-progress-savings .description {
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
}

/* Row of small cards */
.sio-card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0;
}

/* Processing mode panel */
#sio-processing-mode {
  margin-bottom: 10px;
}

.sio-panel.mode h2 {
  margin-top: 0;
}

.sio-mode-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.sio-mode-toggle button {
  flex: 0 0 auto;
}

#sio-mode-note {
  font-size: 12px;
  color: #6b7280;
}

/* Health badges */
.sio-panel.health {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.sio-panel.health .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
}

.sio-panel.health .badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
  display: inline-block;
}

.sio-panel.health .badge.ok {
  border-color: #d1fae5;
  background: #f0fdf4;
}

.sio-panel.health .badge.ok .dot {
  background: #10b981;
}

.sio-panel.health .badge.warn {
  border-color: #fef3c7;
  background: #fffbeb;
}

.sio-panel.health .badge.warn .dot {
  background: #f59e0b;
}

.sio-panel.health .badge.bad {
  border-color: #fee2e2;
  background: #fef2f2;
}

.sio-panel.health .badge.bad .dot {
  background: #ef4444;
}

.sio-panel.health .badge strong {
  font-weight: 600;
}

.sio-panel.health .badge em {
  font-style: normal;
  color: #6b7280;
}

/* Generic "card" styling used across settings + support */
.sio-wrap .sio-card {
  background: #fff;
  border: 1px solid #dcdde1;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  margin-bottom: 16px;
}

.sio-wrap .sio-card h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.sio-wrap .sio-muted {
  color: #6b7280;
}

.sio-wrap .sio-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 1024px) {
  .sio-wrap .sio-row {
    grid-template-columns: 1fr;
  }
}

.sio-wrap .sio-field {
  margin: 14px 0;
}

.sio-wrap .sio-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.sio-wrap .badge {
  display: inline-block;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #374151;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  vertical-align: middle;
}

.sio-wrap .sio-hr {
  height: 1px;
  background: #edeef0;
  border: 0;
  margin: 20px 0;
}

.sio-wrap .sio-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
  flex-wrap: wrap;
}

.sio-wrap .sio-sub {
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
}

.sio-wrap textarea[readonly] {
  background: #f8fafc;
}

/* Inner layout for optimisation settings card */
.sio-wrap .sio-opt-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .sio-wrap .sio-opt-grid {
    grid-template-columns: 1fr;
  }
}

.sio-wrap .sio-subcard {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px 10px;
}

.sio-wrap .sio-subcard h3 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.sio-wrap .sio-subcard .sio-muted {
  font-size: 12px;
  margin-bottom: 6px;
}

/* Modal */
.sio-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100000;
}

.sio-modal {
  background: #fff;
  border-radius: 12px;
  max-width: 520px;
  width: 92%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid #e5e7eb;
}

.sio-modal header {
  padding: 14px 16px;
  border-bottom: 1px solid #eef0f2;
  font-weight: 600;
}

.sio-modal .body {
  padding: 16px;
}

.sio-modal footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #eef0f2;
  background: #fafafa;
  border-radius: 0 0 12px 12px;
}

/* Save notice */
.sio-save-notice {
  position: relative;
  margin: 12px 0 4px;
  padding: 9px 12px;
  border-left: 4px solid #16a34a;
  background: #ecfdf3;
  color: #166534;
  border-radius: 4px;
  font-size: 13px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.sio-save-notice.sio-save-hide {
  opacity: 0;
  transform: translateY(-4px);
}

/* License card (license page) */
.sio-lic-card {
  max-width: 980px;
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.sio-lic-header {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f6ffed;
  border: 1px solid #b7eb8f;
  color: #135200;
  font-weight: 500;
}

.sio-lic-header.inactive {
  background: #eef6ff;
  border-color: #b7d6ff;
  color: #0b3d91;
}

.sio-lic-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.sio-lic-actions-left {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sio-lic-row {
  display: flex;
  flex-direction: column;
}

.sio-lic-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.sio-lic-muted {
  color: #6b7280;
}

.sio-lic-note {
  margin-top: 6px;
  color: #555;
}

.regular-text {
  max-width: 420px;
}

/* Support card + grid */
.sio-support-card {
  max-width: 900px;
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  margin-top: 16px;
}

.sio-support-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}

.sio-support-grid textarea {
  width: 100%;
}

.sio-support-field {
  margin-bottom: 14px;
}

.sio-support-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.sio-support-field input[type="text"],
.sio-support-field input[type="email"],
.sio-support-field input[type="file"],
.sio-support-field textarea {
  width: 100%;
  max-width: 100%;
}

.sio-support-env {
  background: #f9fafb;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12px;
  color: #4b5563;
}

.sio-support-env h2 {
  margin-top: 0;
  font-size: 13px;
  margin-bottom: 6px;
}

.sio-support-env ul {
  margin: 0;
  padding-left: 16px;
}

/* Attachment panel / metabox (media screen) */
.sio-attachment-panel {
  border-top: 1px solid #ddd;
  margin-top: 12px;
  padding-top: 12px;
  text-align: left;
}

.sio-panel-title {
  padding-left: 0 !important;
}

.sio-row {
  margin: 4px 0;
  display: flex;
  gap: 6px;
  align-items: baseline;
}

.sio-meta {
  color: #666;
}

.sio-save {
  color: #2271b1;
}

.sio-controls {
  margin-top: 10px;
}

.sio-controls label {
  display: block;
  margin-bottom: 4px;
}

.sio-controls input {
  width: 100%;
  max-width: 120px;
}

.sio-buttons {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sio-note {
  margin-top: 6px;
  color: #666;
  font-size: 12px;
}

.sio-queue-note {
  margin: 6px 0 10px;
  padding: 6px 8px;
  background: #fffbe5;
  border-left: 4px solid #f0c36d;
  font-size: 12px;
}

/* RESPONSIVE ADJUSTMENTS */

/* Tablet and down: stack grid, cards column */
@media (max-width: 1024px) {
  .sio-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "progress"
      "cards"
      "library"
      "alt";
  }

  .sio-panel.cards {
    flex-direction: column;
  }

  .sio-card-row {
    flex-direction: column;
  }

  .sio-card.small {
    min-width: 0;
  }

  .sio-progress-ring {
    margin: 0 auto 12px;
  }

  .sio-progress-text {
    width: 100%;
  }
}

/* Mobile-specific tweaks */
@media (max-width: 768px) {
  .sio-panel.progress {
    flex-direction: column;
    align-items: stretch;
  }

  .sio-actions .button {
    flex: 1 1 48%;
    text-align: center;
  }

  .sio-mode-toggle {
    flex-direction: column;
    align-items: stretch;
  }

  .sio-mode-toggle button {
    width: 100%;
  }

  #sio-mode-note {
    display: block;
  }

  .sio-panel.health {
    padding: 12px;
  }

  .sio-support-grid {
    grid-template-columns: 1fr;
  }

  .sio-lic-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* -------------------------------------------------------------------------
 * Dashboard 1.0.9 premium UX refresh
 * ------------------------------------------------------------------------- */
.sio-dashboard {
  --sio-bg: #f6f7fb;
  --sio-surface: #ffffff;
  --sio-border: #e5e7eb;
  --sio-ink: #0f172a;
  --sio-muted: #64748b;
  --sio-blue: #2563eb;
  --sio-blue-soft: #dbeafe;
  --sio-green: #059669;
  --sio-amber: #d97706;
  --sio-red: #dc2626;
}

.sio-dashboard-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
  margin: 18px 0 18px;
  padding: 28px 30px;
  color: #fff;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(125, 211, 252, 0.28), transparent 34%),
    linear-gradient(135deg, #111827 0%, #172554 48%, #1d4ed8 100%);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}

.sio-dashboard-hero:after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
}

.sio-hero-copy,
.sio-hero-status {
  position: relative;
  z-index: 1;
}

.sio-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  color: rgba(255,255,255,0.88);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sio-dashboard-hero h1,
.sio-dashboard-hero .sio-hero-title {
  margin: 12px 0 8px;
  color: #fff;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.sio-dashboard-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: 15px;
}

.sio-hero-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  min-width: 210px;
}

.sio-state-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.30);
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
}

.sio-state-pill:before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: currentColor;
}

.sio-state-running:before,
.sio-pulse-dot {
  animation: sioPulse 1.25s ease-in-out infinite;
}

.sio-state-paused { color: #fde68a; }
.sio-state-running { color: #bfdbfe; }
.sio-state-complete { color: #bbf7d0; }
.sio-state-quota { color: #fecaca; }
.sio-state-idle { color: #e0e7ff; }

.sio-last-updated,
.sio-live-meta {
  color: rgba(255,255,255,0.72);
  font-size: 12px;
}

.sio-panel {
  border-color: rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.sio-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.sio-panel-heading h2 {
  margin: 0 0 4px;
  color: var(--sio-ink);
  font-size: 17px;
  letter-spacing: -0.02em;
}

.sio-processing-panel {
  display: block !important;
  padding: 22px;
}

.sio-progress-main {
  display: flex;
  align-items: center;
  gap: 22px;
}

.sio-mode-mini {
  align-self: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sio-progress-text .sio-progress-count {
  font-size: 24px;
  letter-spacing: -0.03em;
}

.sio-progress-sub {
  min-height: 20px;
}

.sio-progress-track {
  overflow: hidden;
  width: 100%;
  height: 10px;
  margin: 12px 0 8px;
  border-radius: 999px;
  background: #eef2f7;
}

.sio-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  transition: width 0.35s ease;
}

.sio-progress-meta {
  color: var(--sio-muted);
  font-size: 12px;
}

.sio-actions .button {
  border-radius: 999px;
  padding-left: 14px;
  padding-right: 14px;
}

.sio-actions .button-primary {
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.sio-actions .button.is-disabled,
.sio-mode-toggle .button.is-disabled {
  opacity: 0.58;
  pointer-events: none;
}

.sio-overview-panel {
  display: block !important;
}

.sio-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sio-metric-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.sio-metric-card:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 46px;
  height: 46px;
  border-radius: 0 0 0 46px;
  background: rgba(37, 99, 235, 0.07);
}

.sio-card-hint {
  color: var(--sio-muted);
  font-size: 11px;
}

.sio-mini-feed {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
}

.sio-pulse-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #2563eb;
}

.sio-state-paused .sio-pulse-dot,
.sio-state-paused .sio-progress-track span {
  background: linear-gradient(90deg, #d97706, #fbbf24);
}

.sio-state-complete .sio-progress-track span {
  background: linear-gradient(90deg, #059669, #34d399);
}

.sio-state-quota .sio-progress-track span {
  background: linear-gradient(90deg, #dc2626, #fb7185);
}

@keyframes sioPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.45; }
}

@media (max-width: 1100px) {
  .sio-dashboard-hero,
  .sio-progress-main {
    flex-direction: column;
    align-items: flex-start;
  }
  .sio-hero-status {
    align-items: flex-start;
  }
  .sio-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 782px) {
  .sio-dashboard-hero {
    padding: 22px;
    border-radius: 18px;
  }
  .sio-progress-main {
    align-items: stretch;
  }
  .sio-progress-ring {
    align-self: center;
  }
}

/* -------------------------------------------------------------------------
 * Dashboard 1.0.9 premium refresh
 * ---------------------------------------------------------------------- */
#sio-dashboard-root.sio-wrap.premium {
  --sio-ink: #111827;
  --sio-muted: #64748b;
  --sio-line: rgba(148, 163, 184, 0.28);
  --sio-soft: #f8fafc;
  --sio-blue: #2563eb;
  --sio-green: #10b981;
  --sio-amber: #f59e0b;
  --sio-red: #ef4444;
  --sio-purple: #7c3aed;
  max-width: 1320px;
}

#sio-dashboard-root .sio-dashboard-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 18px 0 18px;
  padding: 30px 32px;
  border-radius: 24px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  background:
    radial-gradient(circle at 12% 18%, rgba(59, 130, 246, 0.24), transparent 28%),
    radial-gradient(circle at 82% 10%, rgba(124, 58, 237, 0.20), transparent 26%),
    linear-gradient(135deg, #0f172a 0%, #172554 48%, #312e81 100%);
  color: #fff;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.22);
}

#sio-dashboard-root .sio-dashboard-hero::after {
  content: "";
  position: absolute;
  inset: auto -70px -120px auto;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

#sio-dashboard-root .sio-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

#sio-dashboard-root .sio-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.90);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#sio-dashboard-root .sio-dashboard-hero h1,
.sio-dashboard-hero .sio-hero-title {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

#sio-dashboard-root .sio-dashboard-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.7;
}

#sio-dashboard-root .sio-hero-status {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  min-width: 180px;
}

#sio-dashboard-root .sio-state-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#sio-dashboard-root .sio-state-pill::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.11);
}

#sio-dashboard-root .sio-state-running::before,
#sio-dashboard-root .sio-state-starting::before,
#sio-dashboard-root .sio-state-pausing::before {
  animation: sioPulse 1.3s ease-in-out infinite;
}

#sio-dashboard-root .sio-state-running { color: #86efac; }
#sio-dashboard-root .sio-state-paused { color: #fde68a; }
#sio-dashboard-root .sio-state-complete { color: #93c5fd; }
#sio-dashboard-root .sio-state-idle,
#sio-dashboard-root .sio-state-loading { color: #e0e7ff; }
#sio-dashboard-root .sio-state-quota,
#sio-dashboard-root .sio-state-error { color: #fecaca; }

#sio-dashboard-root .sio-live-meta {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}


#sio-dashboard-root .sio-dashboard-setup-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin: 0 0 18px;
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background:
    radial-gradient(circle at 96% 0%, rgba(37, 99, 235, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

#sio-dashboard-root .sio-dashboard-setup-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#sio-dashboard-root .sio-dashboard-setup-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

#sio-dashboard-root .sio-dashboard-setup-copy h2 {
  margin: 0 0 6px;
  color: var(--sio-ink);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

#sio-dashboard-root .sio-dashboard-setup-copy p {
  max-width: 860px;
  margin: 0;
  color: var(--sio-muted);
  font-size: 13px;
  line-height: 1.6;
}

#sio-dashboard-root .sio-dashboard-setup-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

#sio-dashboard-root .sio-dashboard-setup-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef2ff;
  color: #334155;
  font-size: 12px;
  font-weight: 650;
}

#sio-dashboard-root .sio-dashboard-setup-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 190px;
}

#sio-dashboard-root .sio-dashboard-setup-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin: 0;
  white-space: nowrap;
}

#sio-dashboard-root .sio-panel {
  border-color: var(--sio-line);
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

#sio-dashboard-root .sio-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

#sio-dashboard-root .sio-panel-heading h2 {
  margin: 0 0 4px;
  color: var(--sio-ink);
  font-size: 16px;
  letter-spacing: -0.01em;
}

#sio-dashboard-root .sio-panel-heading .description {
  margin: 0;
  color: var(--sio-muted);
}

#sio-dashboard-root .sio-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr);
  gap: 20px;
}

#sio-dashboard-root .sio-panel.progress {
  display: block;
  padding: 22px;
}

#sio-dashboard-root .sio-progress-main {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}

#sio-dashboard-root .sio-mode-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

#sio-dashboard-root .sio-mode-mini[data-mode="local"] {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

#sio-dashboard-root .sio-progress-ring {
  width: 154px;
  height: 154px;
  padding: 7px;
  border-radius: 999px;
  background: linear-gradient(145deg, #ffffff, #f1f5f9);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18), 0 18px 30px rgba(37, 99, 235, 0.12);
}

#sio-dashboard-root .sio-progress-ring svg {
  width: 154px;
  height: 154px;
}

#sio-dashboard-root .sio-progress-ring path.val {
  stroke: var(--sio-blue);
  filter: drop-shadow(0 3px 4px rgba(37, 99, 235, 0.24));
}

#sio-dashboard-root .sio-ring-label {
  color: var(--sio-ink);
  font-size: 28px;
  letter-spacing: -0.04em;
}

#sio-dashboard-root .sio-progress-text .sio-progress-count {
  font-size: 22px;
  letter-spacing: -0.03em;
}

#sio-dashboard-root .sio-progress-sub {
  min-height: 20px;
  color: var(--sio-muted);
}

#sio-dashboard-root .sio-progress-track {
  overflow: hidden;
  width: 100%;
  height: 10px;
  margin: 12px 0 8px;
  border-radius: 999px;
  background: #e2e8f0;
}

#sio-dashboard-root .sio-progress-track span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  transition: width .35s ease;
}

#sio-dashboard-root .sio-progress-meta {
  margin-bottom: 12px;
  color: var(--sio-muted);
  font-size: 12px;
}

#sio-dashboard-root .sio-actions .button {
  min-height: 36px;
  padding-inline: 16px;
  border-radius: 999px;
  font-weight: 700;
}

#sio-dashboard-root .sio-actions .button-primary {
  background: #2563eb;
  border-color: #1d4ed8;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .22);
}

#sio-dashboard-root .sio-actions .button[disabled],
#sio-dashboard-root .sio-mode-toggle .button[disabled] {
  opacity: .55 !important;
  cursor: not-allowed;
  pointer-events: none;
}

#sio-dashboard-root .sio-overview-panel {
  display: block;
}

#sio-dashboard-root .sio-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

#sio-dashboard-root .sio-card,
#sio-dashboard-root.sio-wrap .sio-card {
  margin-bottom: 0;
  border-color: rgba(148, 163, 184, 0.24);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

#sio-dashboard-root .sio-metric-card {
  min-height: 96px;
}

#sio-dashboard-root .sio-card-label {
  color: var(--sio-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

#sio-dashboard-root .sio-card-value {
  color: var(--sio-ink);
  font-size: 28px;
  letter-spacing: -0.04em;
}

#sio-dashboard-root .sio-card-hint {
  margin-top: 4px;
  color: var(--sio-muted);
  font-size: 12px;
}

#sio-dashboard-root .sio-mini-feed {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.20);
  border-radius: 14px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
}

#sio-dashboard-root .sio-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sio-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
}

#sio-dashboard-root[data-state="running"] .sio-pulse-dot,
#sio-dashboard-root[data-state="starting"] .sio-pulse-dot,
#sio-dashboard-root[data-state="pausing"] .sio-pulse-dot {
  animation: sioPulse 1.25s ease-in-out infinite;
}

#sio-dashboard-root[data-state="paused"] .sio-pulse-dot { background: var(--sio-amber); box-shadow: 0 0 0 4px rgba(245, 158, 11, .12); }
#sio-dashboard-root[data-state="complete"] .sio-pulse-dot { background: var(--sio-green); box-shadow: 0 0 0 4px rgba(16, 185, 129, .12); }
#sio-dashboard-root[data-state="quota"] .sio-pulse-dot,
#sio-dashboard-root[data-state="error"] .sio-pulse-dot { background: var(--sio-red); box-shadow: 0 0 0 4px rgba(239, 68, 68, .12); }

#sio-dashboard-root .sio-panel.health {
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.86);
}

#sio-dashboard-root .sio-panel.health .badge {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fff;
}

#sio-dashboard-root .sio-panel.mode {
  padding: 18px 20px;
}

#sio-dashboard-root .sio-mode-toggle .button {
  border-radius: 999px;
  font-weight: 700;
}

#sio-dashboard-root .sio-panel.library,
#sio-dashboard-root .sio-panel.alt {
  padding: 22px;
}

#sio-dashboard-root .sio-panel.library h2,
#sio-dashboard-root .sio-panel.alt h2 {
  margin-top: 0;
}

@keyframes sioPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.72); opacity: .55; }
}

@media (max-width: 1100px) {
  #sio-dashboard-root .sio-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "progress"
      "cards"
      "library"
      "alt";
  }
}

@media (max-width: 782px) {
  #sio-dashboard-root .sio-dashboard-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  #sio-dashboard-root .sio-hero-status {
    align-items: flex-start;
    min-width: 0;
  }

  #sio-dashboard-root .sio-progress-main {
    align-items: flex-start;
  }

  #sio-dashboard-root .sio-overview-grid {
    grid-template-columns: 1fr;
  }

  #sio-dashboard-root .sio-progress-ring,
  #sio-dashboard-root .sio-progress-ring svg {
    width: 132px;
    height: 132px;
  }
}

.sio-dashboard .sio-card {
  margin-bottom: 0;
}

.sio-dashboard .sio-card-row .sio-card {
  min-width: 0;
}

/* -------------------------------------------------------------------------
 * 1.0.9 premium admin surfaces outside the dashboard
 * ------------------------------------------------------------------------- */
.sio-wrap.premium:not(.sio-dashboard),
.sio-smartalt-wrap {
  --sio-bg: #f6f7fb;
  --sio-surface: #ffffff;
  --sio-border: #e5e7eb;
  --sio-ink: #0f172a;
  --sio-muted: #64748b;
  --sio-blue: #2563eb;
  --sio-green: #059669;
  --sio-amber: #d97706;
  --sio-red: #dc2626;
  max-width: 1320px;
}

.sio-wrap.premium:not(.sio-dashboard) .sio-page-hero,
.sio-smartalt-wrap .sio-page-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
  margin: 18px 0 18px;
  padding: 28px 30px;
  color: #fff;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(125, 211, 252, 0.28), transparent 34%),
    linear-gradient(135deg, #111827 0%, #172554 48%, #2563eb 100%);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}

.sio-wrap.premium:not(.sio-dashboard) .sio-page-hero:after,
.sio-smartalt-wrap .sio-page-hero:after {
  content: "";
  position: absolute;
  inset: auto -90px -130px auto;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
}

.sio-wrap.premium:not(.sio-dashboard) .sio-page-hero > *,
.sio-smartalt-wrap .sio-page-hero > * {
  position: relative;
  z-index: 1;
}

.sio-wrap.premium:not(.sio-dashboard) .sio-page-hero h1,
.sio-wrap.premium:not(.sio-dashboard) .sio-page-hero .sio-hero-title,
.sio-smartalt-wrap .sio-page-hero h1,
.sio-smartalt-wrap .sio-page-hero .sio-hero-title {
  margin: 12px 0 8px;
  color: #fff;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.sio-wrap.premium:not(.sio-dashboard) .sio-page-hero p,
.sio-smartalt-wrap .sio-page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: 15px;
}

.sio-wrap.premium:not(.sio-dashboard) .sio-page-hero-actions,
.sio-smartalt-wrap .sio-page-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 190px;
}

.sio-premium-card,
.sio-wrap.premium:not(.sio-dashboard) .sio-card,
.sio-wrap.premium:not(.sio-dashboard) .sio-lic-card,
.sio-wrap.premium:not(.sio-dashboard) .sio-support-card {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

.sio-wrap.premium .sio-subcard,
.sio-wrap.premium .sio-field {
  border-color: rgba(148, 163, 184, 0.24);
}

.sio-wrap.premium .sio-field {
  padding: 14px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.72);
}

.sio-wrap.premium .sio-field input[type="text"],
.sio-wrap.premium .sio-field input[type="number"],
.sio-wrap.premium .sio-field select,
.sio-wrap.premium .sio-field textarea,
.sio-support-card input[type="text"],
.sio-support-card input[type="email"],
.sio-support-card textarea {
  border-color: #dbe3ee !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.03) !important;
}

.sio-wrap.premium .sio-field input:focus,
.sio-wrap.premium .sio-field textarea:focus,
.sio-support-card input:focus,
.sio-support-card textarea:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

.sio-cloud-summary,
.sio-support-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.sio-cloud-tile,
.sio-support-quick-card {
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.sio-cloud-tile span,
.sio-support-quick-card span,
.sio-cloud-tile em {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.sio-cloud-tile strong,
.sio-support-quick-card strong {
  display: block;
  margin: 5px 0 4px;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.sio-support-quick-card strong { font-size: 16px; letter-spacing: 0; }

.sio-cloud-wrap .sio-lic-row,
.sio-cloud-wrap .sio-lic-actions,
.sio-cloud-wrap .sio-lic-actions-left {
  align-items: center;
}

.sio-cloud-wrap .sio-lic-header {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.sio-cron-card table.widefat,
.sio-cron-card table.widefat th,
.sio-cron-card table.widefat td {
  border-color: #e2e8f0;
}

.sio-cron-card table.widefat {
  overflow: hidden;
  border-radius: 14px;
  box-shadow: none;
}

.sio-support-card {
  padding: 22px;
}

.sio-support-grid {
  gap: 22px;
}

.sio-support-env {
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.09), transparent 38%),
    #f8fafc;
}

.sio-support-env li {
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}

.sio-support-env li:last-child {
  border-bottom: 0;
}

.sio-wrap.premium .button,
.sio-smartalt-wrap .button {
  border-radius: 999px;
  font-weight: 700;
}

.sio-wrap.premium .button-primary,
.sio-smartalt-wrap .button-primary {
  background: #2563eb;
  border-color: #1d4ed8;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.20);
}

.sio-wrap.premium .notice,
.sio-smartalt-wrap .notice {
  border-radius: 14px;
}

@media (max-width: 960px) {
  .sio-cloud-summary,
  .sio-support-quick-grid {
    grid-template-columns: 1fr;
  }

  .sio-wrap.premium:not(.sio-dashboard) .sio-page-hero,
  .sio-smartalt-wrap .sio-page-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .sio-wrap.premium:not(.sio-dashboard) .sio-page-hero-actions,
  .sio-smartalt-wrap .sio-page-hero-actions {
    justify-content: flex-start;
    min-width: 0;
  }
}

/* -------------------------------------------------------------------------
 * 1.0.9 WP.org polish pass: premium admin layout/contrast refinements
 * ---------------------------------------------------------------------- */
.sio-wrap.premium:not(.sio-dashboard) .sio-page-hero,
.sio-smartalt-wrap .sio-page-hero {
  isolation: isolate;
  align-items: center;
  min-height: 188px;
}

.sio-wrap.premium:not(.sio-dashboard) .sio-page-hero > div:first-child,
.sio-smartalt-wrap .sio-page-hero > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 820px;
}

.sio-wrap.premium:not(.sio-dashboard) .sio-page-hero h1,
.sio-wrap.premium:not(.sio-dashboard) .sio-page-hero .sio-hero-title,
.sio-smartalt-wrap .sio-page-hero h1,
.sio-smartalt-wrap .sio-page-hero .sio-hero-title,
.sio-wrap.premium:not(.sio-dashboard) .sio-page-hero p,
.sio-smartalt-wrap .sio-page-hero p,
.sio-wrap.premium:not(.sio-dashboard) .sio-page-hero .sio-eyebrow,
.sio-smartalt-wrap .sio-page-hero .sio-eyebrow {
  position: relative;
  z-index: 2;
}

.sio-wrap.premium:not(.sio-dashboard) .sio-page-hero p,
.sio-smartalt-wrap .sio-page-hero p {
  color: rgba(255,255,255,0.86);
  line-height: 1.65;
}

.sio-wrap.premium:not(.sio-dashboard) .sio-page-hero .notice,
.sio-smartalt-wrap .sio-page-hero .notice {
  color: #0f172a !important;
  background: #fff !important;
}

.sio-host-notice {
  margin: 0 0 18px !important;
  padding: 14px 16px !important;
  border-radius: 18px !important;
  border-top: 1px solid #e2e8f0 !important;
  border-right: 1px solid #e2e8f0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  background: #fff !important;
  color: #334155 !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.sio-host-notice p,
.sio-host-notice .description {
  color: #334155 !important;
}

.sio-host-notice code {
  color: #1e293b;
  background: #f1f5f9;
}

.sio-settings-wrap {
  max-width: 1480px !important;
}

.sio-settings-wrap .sio-settings-grid {
  grid-template-columns: minmax(720px, 1.65fr) minmax(360px, .85fr);
  gap: 20px;
  align-items: start;
}

.sio-settings-wrap .sio-opt-grid {
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 18px;
}

.sio-settings-wrap .sio-card {
  padding: 24px 24px;
}

.sio-settings-wrap .sio-subcard {
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.sio-settings-wrap .sio-field {
  margin: 12px 0;
}

.sio-settings-wrap textarea[readonly] {
  min-height: 170px;
  color: #334155;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  line-height: 1.45;
}

.sio-cloud-wrap .sio-lic-row,
.sio-cloud-wrap .sio-lic-actions,
.sio-cloud-wrap .sio-lic-actions-left {
  align-items: flex-start;
}

.sio-cloud-wrap .sio-lic-row.sio-cloud-status-row,
.sio-cloud-wrap .sio-lic-row.sio-cron-title-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.sio-cloud-wrap .sio-lic-header.sio-cloud-status-pill,
.sio-cloud-wrap .sio-lic-header.sio-cloud-section-title {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #14532d;
  line-height: 1.35;
  text-align: left;
  box-shadow: none;
}

.sio-cloud-wrap .sio-lic-header.sio-cloud-section-title {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1e40af;
}

.sio-cloud-wrap .sio-cloud-key-card,
.sio-cloud-wrap .sio-cron-card {
  max-width: 1040px;
}

.sio-cloud-wrap .sio-cron-card table.widefat th,
.sio-cloud-wrap .sio-cron-card table.widefat td {
  padding: 11px 12px;
  vertical-align: top;
}

@media (max-width: 1280px) {
  .sio-settings-wrap .sio-settings-grid {
    grid-template-columns: 1fr;
  }
  .sio-settings-wrap .sio-opt-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (max-width: 900px) {
  .sio-settings-wrap .sio-opt-grid {
    grid-template-columns: 1fr;
  }
}


/* -------------------------------------------------------------------------
 * 1.0.9 admin notice/hero containment polish
 * ---------------------------------------------------------------------- */
.sio-screen-title {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.sio-hero-title {
  display: block;
  font-weight: 500;
}

/* Third-party admin notices are sometimes injected after the first page h1.
   Keep our accessible h1 outside the hero and force readable notice contrast
   if another plugin still injects a notice into the premium surface. */
.sio-wrap.premium > .notice,
.sio-wrap.premium > .updated,
.sio-wrap.premium > .error,
.sio-wrap.premium .sio-dashboard-hero .notice,
.sio-wrap.premium .sio-dashboard-hero .updated,
.sio-wrap.premium .sio-dashboard-hero .error,
.sio-wrap.premium .sio-page-hero .notice,
.sio-wrap.premium .sio-page-hero .updated,
.sio-wrap.premium .sio-page-hero .error,
.sio-smartalt-wrap .sio-page-hero .notice,
.sio-smartalt-wrap .sio-page-hero .updated,
.sio-smartalt-wrap .sio-page-hero .error {
  position: relative;
  z-index: 3;
  clear: both;
  box-sizing: border-box;
  max-width: 980px;
  margin: 12px 0 18px !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  color: #1e293b !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10) !important;
}

.sio-wrap.premium > .notice p,
.sio-wrap.premium > .updated p,
.sio-wrap.premium > .error p,
.sio-wrap.premium .sio-dashboard-hero .notice p,
.sio-wrap.premium .sio-dashboard-hero .updated p,
.sio-wrap.premium .sio-dashboard-hero .error p,
.sio-wrap.premium .sio-page-hero .notice p,
.sio-wrap.premium .sio-page-hero .updated p,
.sio-wrap.premium .sio-page-hero .error p,
.sio-smartalt-wrap .sio-page-hero .notice p,
.sio-smartalt-wrap .sio-page-hero .updated p,
.sio-smartalt-wrap .sio-page-hero .error p {
  color: #1e293b !important;
}

.sio-wrap.premium > .notice a,
.sio-wrap.premium > .updated a,
.sio-wrap.premium > .error a,
.sio-wrap.premium .sio-dashboard-hero .notice a,
.sio-wrap.premium .sio-page-hero .notice a,
.sio-smartalt-wrap .sio-page-hero .notice a {
  color: #1d4ed8 !important;
  font-weight: 700;
}

/* -------------------------------------------------------------------------
 * 1.1.0 first-run onboarding / setup guide
 * ---------------------------------------------------------------------- */
.sio-onboarding-notice {
  border-left-color: #2563eb;
}

.sio-onboarding-wrap {
  max-width: 1480px !important;
}

.sio-onboarding-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.34fr);
  gap: 22px;
  align-items: start;
}

.sio-onboarding-main {
  display: grid;
  gap: 18px;
}

.sio-onboarding-sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 44px;
}

.sio-onboarding-step {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
}

.sio-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1d4ed8, #7c3aed);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.25);
}

.sio-step-content h2,
.sio-onboarding-sidebar h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.sio-step-content h3 {
  margin: 20px 0 8px;
  color: #0f172a;
  font-size: 16px;
}

.sio-muted,
.sio-onboarding-wrap .sio-muted {
  color: #64748b;
}

.sio-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.sio-choice-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sio-choice-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sio-choice-grid.compact .sio-choice-visual {
  min-height: 150px;
}

.sio-choice-card {
  display: block;
  cursor: pointer;
}

.sio-choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sio-choice-visual {
  display: flex;
  flex-direction: column;
  min-height: 176px;
  gap: 9px;
  padding: 17px;
  border: 1px solid #dbe3ee;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.sio-choice-visual strong {
  color: #0f172a;
  font-size: 15px;
}

.sio-choice-visual em {
  align-self: flex-start;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.sio-choice-visual span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.48;
}

.sio-choice-card:hover .sio-choice-visual,
.sio-choice-card input:focus-visible + .sio-choice-visual {
  border-color: #93c5fd;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.10);
  transform: translateY(-1px);
}

.sio-choice-card input:checked + .sio-choice-visual {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13), 0 16px 36px rgba(37, 99, 235, 0.10);
}

.sio-onboarding-inline {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.sio-onboarding-inline > label:not(.sio-toggle-line),
.sio-cloud-setup-field label {
  display: grid;
  gap: 7px;
  color: #0f172a;
  font-weight: 700;
}

.sio-onboarding-inline select,
.sio-onboarding-inline textarea,
.sio-cloud-setup-field input[type="text"] {
  width: 100%;
  max-width: 560px;
  border-color: #dbe3ee !important;
  border-radius: 12px !important;
}

.sio-cloud-setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 14px;
}

.sio-cloud-setup-card {
  padding: 18px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.sio-cloud-setup-card strong {
  display: block;
  margin: 4px 0 6px;
  color: #0f172a;
  font-size: 20px;
}

.sio-mini-label,
.sio-eyebrow.dark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sio-onboarding-checklist {
  margin: 14px 0 0 20px;
  color: #334155;
}

.sio-onboarding-checklist li {
  margin: 0 0 10px;
  line-height: 1.45;
}

.sio-onboarding-summary,
.sio-onboarding-cloud-cta {
  padding: 22px;
}

.sio-onboarding-cloud-cta .sio-state-pill {
  margin-bottom: 12px;
}

.sio-onboarding-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: 22px 24px;
}

.sio-onboarding-footer strong {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
  font-size: 18px;
}

.sio-onboarding-footer p {
  margin: 0;
  color: #64748b;
}

.sio-onboarding-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

@media (max-width: 1180px) {
  .sio-onboarding-layout,
  .sio-cloud-setup-grid {
    grid-template-columns: 1fr;
  }

  .sio-onboarding-sidebar {
    position: static;
  }
}

@media (max-width: 900px) {
  .sio-choice-grid,
  .sio-choice-grid.two,
  .sio-choice-grid.three {
    grid-template-columns: 1fr;
  }

  .sio-onboarding-step {
    grid-template-columns: 1fr;
  }

  .sio-onboarding-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .sio-onboarding-footer-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  #sio-dashboard-root .sio-dashboard-setup-cta {
    grid-template-columns: 1fr;
  }

  #sio-dashboard-root .sio-dashboard-setup-actions {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
  }

  #sio-dashboard-root .sio-dashboard-setup-actions .button {
    flex: 1 1 180px;
  }
}

