/* =============================================================================
 * CareerBoost design system layer
 * Shared primitives live here so new screens do not keep expanding phase1.css.
 * ========================================================================== */

.empty-state--compact {
  padding: 22px;
}

.empty-state--compact .empty-state-actions {
  margin-top: 14px;
}

.settings-section.candidate-intel-card {
  width: 100%;
}

.candidate-intel-actions .settings-action-row {
  color: inherit;
  text-decoration: none;
}

.cb-visual-check-target {
  isolation: isolate;
}

/* =============================================================================
 * Phase 3 - Unified application command center
 * ========================================================================== */

.app-command-center {
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(37, 225, 255, 0.2);
  border-radius: 18px;
  background:
    radial-gradient(100% 110% at 0% 0%, rgba(37, 225, 255, 0.12), transparent 48%),
    radial-gradient(90% 100% at 100% 0%, rgba(138, 104, 255, 0.12), transparent 46%),
    linear-gradient(180deg, rgba(14, 24, 43, 0.9), rgba(7, 11, 22, 0.94));
}

.app-command-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.app-command-head p {
  margin: 6px 0 0;
  color: rgba(210, 220, 240, 0.68);
  font-size: 13px;
  line-height: 1.45;
}

.app-command-readiness {
  width: 108px;
  min-width: 108px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.app-command-readiness strong {
  color: #eef4ff;
  font-size: 30px;
  line-height: 1;
}

.app-command-readiness span {
  margin-top: 6px;
  color: rgba(218, 228, 248, 0.72);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.app-command-readiness.green { border-color: rgba(68, 230, 150, 0.34); box-shadow: 0 0 34px rgba(68, 230, 150, 0.1); }
.app-command-readiness.cyan { border-color: rgba(37, 225, 255, 0.34); box-shadow: 0 0 34px rgba(37, 225, 255, 0.1); }
.app-command-readiness.warning { border-color: rgba(245, 158, 11, 0.34); box-shadow: 0 0 34px rgba(245, 158, 11, 0.08); }
.app-command-readiness.rose { border-color: rgba(244, 63, 94, 0.34); box-shadow: 0 0 34px rgba(244, 63, 94, 0.08); }

.app-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: 10px;
}

.app-command-next,
.app-command-source,
.app-command-evidence article {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.032);
}

.app-command-next {
  display: grid;
  gap: 12px;
}

.app-command-next-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-command-primary-action {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 13px;
  border: 1px solid rgba(37, 225, 255, 0.2);
  border-radius: 14px;
  color: #eef4ff;
  text-align: left;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(37, 225, 255, 0.12), rgba(138, 104, 255, 0.1));
  cursor: pointer;
  font: inherit;
}

.app-command-primary-action:hover {
  border-color: rgba(37, 225, 255, 0.42);
  background: linear-gradient(135deg, rgba(37, 225, 255, 0.18), rgba(138, 104, 255, 0.14));
}

.app-command-primary-action.is-static {
  cursor: default;
}

.app-command-primary-action > i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #07101f;
  background: linear-gradient(135deg, #25e1ff, #8a68ff);
}

.app-command-primary-action span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.app-command-primary-action strong {
  font-size: 15px;
  line-height: 1.22;
}

.app-command-primary-action small {
  color: rgba(210, 220, 240, 0.68);
  line-height: 1.35;
}

.app-command-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.app-command-counts span {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.028);
}

.app-command-counts strong {
  display: block;
  color: #eef4ff;
  font-size: 18px;
  line-height: 1;
}

.app-command-counts small {
  display: block;
  margin-top: 4px;
  color: rgba(204, 214, 234, 0.62);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.app-command-source {
  display: grid;
  gap: 7px;
  align-content: start;
}

.app-command-source strong {
  color: #eef4ff;
  font-size: 18px;
  text-transform: capitalize;
}

.app-command-source p,
.app-command-source-url {
  margin: 0;
  color: rgba(210, 220, 240, 0.7);
  font-size: 12.5px;
  line-height: 1.4;
}

.app-command-source-url a {
  color: #9ef8ff;
  overflow-wrap: anywhere;
}

.app-command-materials {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.app-command-material {
  min-width: 0;
  min-height: 132px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  color: #eef4ff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
}

a.app-command-material:hover {
  border-color: rgba(37, 225, 255, 0.32);
  background: rgba(37, 225, 255, 0.055);
}

.app-command-material > i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #25e1ff;
  background: rgba(37, 225, 255, 0.09);
  border: 1px solid rgba(37, 225, 255, 0.18);
}

.app-command-material-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
  align-content: start;
}

.app-command-material-copy strong {
  font-size: 13.5px;
  line-height: 1.2;
}

.app-command-material-copy small {
  color: rgba(204, 214, 234, 0.62);
  font-size: 11.5px;
  line-height: 1.35;
}

.app-command-evidence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 980px) {
  .app-command-materials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-command-head,
  .app-command-grid,
  .app-command-evidence {
    grid-template-columns: 1fr;
  }

  .app-command-head {
    display: grid;
  }

  .app-command-readiness {
    width: 100%;
    min-width: 0;
    aspect-ratio: auto;
    min-height: 84px;
  }

  .app-command-materials {
    grid-template-columns: 1fr;
  }
}

/* =============================================================================
 * Phase 4 - Product intelligence panels
 * ========================================================================== */

.phase4-intel-panel,
.phase4-analytics-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(37, 225, 255, 0.2);
  border-radius: 20px;
  background:
    radial-gradient(90% 100% at 0% 0%, rgba(37, 225, 255, 0.1), transparent 50%),
    linear-gradient(180deg, rgba(13, 22, 39, 0.92), rgba(8, 12, 24, 0.95));
}

.phase4-intel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.phase4-intel-head h2,
.phase4-card h3,
.phase4-cover-board h3,
.phase4-cover-board h4,
.phase4-resume-card h3,
.phase4-recommendation h3 {
  margin: 0;
  color: #eef4ff;
}

.phase4-intel-head p {
  margin: 6px 0 0;
  color: rgba(210, 220, 240, 0.68);
  line-height: 1.5;
}

.phase4-interview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(220px, 0.75fr));
  gap: 12px;
}

.phase4-card,
.phase4-cover-board,
.phase4-resume-card,
.phase4-recommendation {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.phase4-card {
  padding: 14px;
}

.phase4-card--wide {
  grid-row: span 2;
}

.phase4-process-list,
.phase4-list,
.phase4-source-list,
.phase4-version-list ul,
.phase4-version-mini,
.phase4-improvement-list,
.phase4-recommendation ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.phase4-process-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.phase4-process-step:first-child {
  border-top: 0;
}

.phase4-process-step p,
.phase4-list span,
.phase4-source-list span,
.phase4-improvement-list li,
.phase4-recommendation p,
.phase4-recommendation li {
  color: rgba(210, 220, 240, 0.72);
  line-height: 1.45;
}

.phase4-process-step p {
  margin: 4px 0 0;
}

.phase4-process-step > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #9ef8ff;
  border: 1px solid rgba(37, 225, 255, 0.2);
  background: rgba(37, 225, 255, 0.08);
}

.phase4-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.phase4-list li:first-child {
  border-top: 0;
}

.phase4-list i {
  margin-top: 4px;
  color: #25e1ff;
}

.phase4-rubric {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.phase4-rubric span {
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  color: rgba(218, 228, 248, 0.74);
  background: rgba(255, 255, 255, 0.03);
}

.phase4-rubric b {
  color: #25e1ff;
}

.phase4-source-list li {
  display: grid;
  gap: 4px;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.phase4-source-list li:first-child {
  border-top: 0;
}

.phase4-source-list a {
  color: #9ef8ff;
  text-decoration: none;
}

.phase4-resume-card {
  padding: 14px;
}

.phase4-version-head,
.phase4-version-list li,
.phase4-version-mini li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.phase4-version-head {
  margin: 12px 0 8px;
}

.phase4-version-list li,
.phase4-version-mini li {
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.phase4-version-list li span,
.phase4-version-mini li span,
.phase4-before-after span {
  display: block;
  color: rgba(204, 214, 234, 0.58);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phase4-version-list b,
.phase4-version-mini b {
  color: #9ef8ff;
}

.phase4-before-after {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.phase4-before-after div {
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.13);
}

.phase4-before-after p {
  max-height: 118px;
  margin: 6px 0 0;
  overflow: hidden;
  color: rgba(218, 228, 248, 0.72);
  line-height: 1.45;
}

.phase4-improvement-list li {
  padding: 6px 0 0;
}

.phase4-diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.phase4-mini-meter {
  display: grid;
  gap: 6px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.028);
}

.phase4-mini-meter b {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.phase4-mini-meter b i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #25e1ff, #8a68ff);
}

.phase4-ready-checks li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.phase4-cover-board {
  padding: 14px;
}

.phase4-cover-score {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.phase4-cover-score p {
  margin: 6px 0 0;
  color: rgba(210, 220, 240, 0.72);
}

.phase4-cover-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr 0.8fr;
  gap: 12px;
  margin-top: 14px;
}

.phase4-recommendation-grid {
  display: grid;
  gap: 12px;
}

.phase4-recommendation {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
}

.phase4-rec-rank {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #9ef8ff;
  border: 1px solid rgba(37, 225, 255, 0.22);
  background: rgba(37, 225, 255, 0.08);
  font-weight: 900;
}

.phase4-rec-copy {
  min-width: 0;
}

.phase4-rec-copy p {
  margin: 5px 0 0;
}

.phase4-rec-copy ul {
  margin-top: 8px;
}

.phase4-rec-copy strong {
  display: block;
  margin-top: 8px;
  color: #eef4ff;
}

.phase4-rec-action {
  align-self: center;
}

.phase4-recommendation.tone-green { border-color: rgba(68, 230, 150, 0.22); }
.phase4-recommendation.tone-warning { border-color: rgba(245, 158, 11, 0.24); }
.phase4-recommendation.tone-rose { border-color: rgba(244, 63, 94, 0.24); }
.phase4-recommendation.tone-cyan { border-color: rgba(37, 225, 255, 0.22); }

@media (max-width: 1100px) {
  .phase4-interview-grid,
  .phase4-cover-grid {
    grid-template-columns: 1fr;
  }

  .phase4-card--wide {
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .phase4-intel-head,
  .phase4-recommendation {
    display: grid;
    grid-template-columns: 1fr;
  }

  .phase4-cover-score {
    grid-template-columns: 1fr;
  }

  .phase4-rec-action {
    justify-self: start;
  }
}
