/* ── SQDCP Setup Wizard — sqdcp.css ────────────────────────────────────── */

.sqdcp-intro p { font-size: 14px; color: #555; line-height: 1.6; margin: 0 0 16px; }

/* Progress */
.sqdcp-progress { padding: 14px 20px 0; }
.sqdcp-progress-inner { display: flex; align-items: center; }
.sqdcp-step { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 64px; }
.sqdcp-step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: #e2e8f0; color: #999;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.sqdcp-step--active .sqdcp-step-dot { background: #1F3A5F; color: #fff; }
.sqdcp-step--done   .sqdcp-step-dot { background: #27AE60; color: #fff; }
.sqdcp-step-label { font-size: 10px; color: #888; font-weight: 600; text-align: center; }
.sqdcp-step--active .sqdcp-step-label { color: #1F3A5F; }
.sqdcp-step--done   .sqdcp-step-label { color: #27AE60; }
.sqdcp-step-line { flex: 1; height: 2px; background: #e2e8f0; margin-bottom: 18px; }

/* Section title */
.sqdcp-section-title {
  font-size: 13px; font-weight: 700; color: #1F3A5F;
  border-left: 3px solid #E8532A; padding-left: 8px; margin: 0 0 12px;
}

/* Maturity cards */
.sqdcp-mat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.sqdcp-mat-card {
  padding: 12px; background: #f8f9fb;
  border: 2px solid #e2e8f0; border-radius: 8px;
  cursor: pointer; text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.sqdcp-mat-card:hover, .sqdcp-mat-card.sqdcp-mat--active { border-color: #1F3A5F; background: #EEF4FA; }
.sqdcp-mat-label { font-size: 13px; font-weight: 700; color: #1F3A5F; margin-bottom: 4px; }
.sqdcp-mat-desc  { font-size: 11px; color: #666; line-height: 1.4; }

/* Fields */
.sqdcp-fields { display: flex; flex-direction: column; gap: 12px; }
.sqdcp-field  { display: flex; flex-direction: column; gap: 4px; }
.sqdcp-label  { font-size: 13px; font-weight: 600; color: #333; }
.sqdcp-input  {
  padding: 9px 12px; border: 1.5px solid #d0d5dd;
  border-radius: 8px; font-family: inherit; font-size: 13px;
  transition: border-color 0.15s;
}
.sqdcp-input:focus  { outline: none; border-color: #1F3A5F; }
.sqdcp-textarea     { resize: vertical; min-height: 68px; }

/* Metric guide */
.sqdcp-metric-guide {
  font-size: 12px; color: #555; background: #EEF4FA;
  border-left: 3px solid #1F3A5F; border-radius: 6px;
  padding: 10px 14px; margin-bottom: 14px;
}

/* Pillar blocks */
.sqdcp-pillars { display: flex; flex-direction: column; gap: 16px; }
.sqdcp-pillar-block { border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 14px; }
.sqdcp-pillar-header {
  display: flex; gap: 10px; align-items: flex-start;
  border-left: 4px solid; padding-left: 10px; margin-bottom: 12px;
}
.sqdcp-pillar-icon  { font-size: 20px; flex-shrink: 0; }
.sqdcp-pillar-title { font-size: 13px; font-weight: 700; margin-bottom: 3px; display: flex; align-items: center; gap: 6px; }
.sqdcp-pillar-desc  { font-size: 11px; color: #666; line-height: 1.4; }
.sqdcp-pillar-count {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  color: #fff; font-size: 10px; font-weight: 700;
}

/* Metric pills */
.sqdcp-metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.sqdcp-metric {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 10px; background: #f8f9fb;
  border: 1.5px solid #e2e8f0; border-radius: 7px;
  cursor: pointer; text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.sqdcp-metric:hover { border-color: #999; background: #f0f1f3; }
.sqdcp-metric-label { font-size: 12px; font-weight: 600; color: #333; }
.sqdcp-metric-hint  { font-size: 10px; color: #888; line-height: 1.3; }

/* Custom metric input */
.sqdcp-custom-row { margin-top: 4px; }
.sqdcp-custom-input {
  width: 100%; box-sizing: border-box;
  padding: 7px 10px; border: 1.5px dashed #d0d5dd;
  border-radius: 7px; font-family: inherit; font-size: 12px; color: #555;
}
.sqdcp-custom-input:focus { outline: none; border-color: #1F3A5F; border-style: solid; }

/* Info box */
.sqdcp-info-box {
  background: #EEF4FA; border-left: 3px solid #1F3A5F;
  border-radius: 6px; padding: 10px 14px;
  font-size: 12px; color: #444; line-height: 1.6; margin: 14px 0;
}

/* Error */
.sqdcp-error {
  background: #FFF0EE; border: 1px solid #FCCCC7;
  border-radius: 6px; color: #C0392B;
  font-size: 13px; padding: 10px 12px; margin-top: 8px;
}

/* Nav row */
.sqdcp-nav-row {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 20px; padding-top: 14px; border-top: 1px solid #eee;
}

/* Spinner */
.sqdcp-spinner {
  width: 40px; height: 40px; border: 4px solid #e2e8f0;
  border-top-color: #1F3A5F; border-radius: 50%;
  animation: sqdcp-spin 0.8s linear infinite; margin: 0 auto 16px;
}
@keyframes sqdcp-spin { to { transform: rotate(360deg); } }
.sqdcp-loading-sub { font-size: 12px; color: #888; margin-top: 4px; }

/* Result */
.sqdcp-result { padding: 4px 0 20px; }
.sqdcp-result-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  border-bottom: 2px solid #1F3A5F; padding-bottom: 12px; margin-bottom: 16px;
  flex-wrap: wrap; gap: 8px;
}
.sqdcp-result-company { font-size: 11px; color: #888; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.sqdcp-result-title   { font-size: 17px; font-weight: 700; color: #1F3A5F; }
.sqdcp-result-meta    { font-size: 12px; color: #555; }

.sqdcp-result-section { margin: 16px 0; }
.sqdcp-result-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: #1F3A5F; border-left: 3px solid #1F3A5F; padding-left: 8px; margin-bottom: 10px;
}
.sqdcp-label--orange { border-left-color: #E67E22; color: #E67E22; }
.sqdcp-label--red    { border-left-color: #C0392B; color: #C0392B; }
.sqdcp-label--green  { border-left-color: #27AE60; color: #27AE60; }

/* Board layout visual */
.sqdcp-board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 8px; }
.sqdcp-board-cell {
  border: 1.5px solid #e2e8f0; border-radius: 8px;
  border-top: 4px solid; overflow: hidden;
}
.sqdcp-board-pillar-header {
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 5px 8px; text-align: center;
}
.sqdcp-board-metrics { padding: 6px 8px; }
.sqdcp-board-metric  { padding: 4px 0; border-bottom: 1px solid #f0f0f0; }
.sqdcp-board-metric:last-child { border-bottom: none; }
.sqdcp-board-metric-name { font-size: 10px; font-weight: 600; color: #333; display: block; }
.sqdcp-board-metric-unit { font-size: 9px; color: #888; }
.sqdcp-board-notes { font-size: 12px; color: #555; font-style: italic; margin: 6px 0 0; }

/* Definition table */
.sqdcp-table-wrap { overflow-x: auto; }
.sqdcp-def-table  { width: 100%; border-collapse: collapse; font-size: 11px; }
.sqdcp-def-table th, .sqdcp-def-table td { border: 1px solid #d0d5dd; padding: 6px 8px; text-align: left; }
.sqdcp-def-table th { background: #EEF4FA; font-weight: 600; color: #1F3A5F; }
.sqdcp-def-pillar {
  display: inline-block; padding: 1px 6px; border-radius: 4px;
  color: #fff; font-size: 10px; font-weight: 700;
}
.sqdcp-def-green { color: #27AE60; font-size: 11px; }
.sqdcp-def-amber { color: #E67E22; font-size: 11px; }
.sqdcp-def-red   { color: #C0392B; font-size: 11px; }

/* Agenda table */
.sqdcp-agenda-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 6px; }
.sqdcp-agenda-table th, .sqdcp-agenda-table td { border: 1px solid #d0d5dd; padding: 7px 9px; }
.sqdcp-agenda-table th { background: #EEF4FA; font-weight: 600; color: #1F3A5F; }
.sqdcp-agenda-time { font-weight: 700; color: #1F3A5F; white-space: nowrap; }
.sqdcp-tips { font-size: 11px; color: #666; font-style: italic; padding: 6px 0; }

/* Escalation */
.sqdcp-escalation { display: flex; flex-direction: column; gap: 10px; }
.sqdcp-esc-step {
  display: flex; gap: 12px; align-items: flex-start;
  background: #f8f9fb; border-radius: 8px; padding: 12px;
}
.sqdcp-esc-num {
  width: 28px; height: 28px; border-radius: 50%;
  color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sqdcp-esc-trigger { font-size: 12px; font-weight: 700; color: #333; margin-bottom: 4px; }
.sqdcp-esc-action  { font-size: 12px; color: #555; line-height: 1.5; }

/* Implementation tips */
.sqdcp-tips-list { margin: 0; padding-left: 18px; }
.sqdcp-tips-list li { font-size: 13px; color: #333; line-height: 1.6; margin-bottom: 5px; }

/* Footer */
.sqdcp-result-footer {
  margin-top: 16px; text-align: center; font-size: 11px; color: #bbb;
  border-top: 1px solid #eee; padding-top: 10px;
}

/* Action row */
.sqdcp-action-row {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid #eee;
}
