:root {
  --phase6-bg: #f3f7ff;
  --phase6-surface: #ffffff;
  --phase6-border: #d9e4f4;
  --phase6-title: #0f172a;
  --phase6-body: #334155;
  --phase6-muted: #64748b;
  --phase6-primary: #0d6efd;
  --phase6-primary-soft: #dbeafe;
  --phase6-success: #15803d;
  --phase6-success-soft: #dcfce7;
  --phase6-warning: #b45309;
  --phase6-warning-soft: #fef3c7;
  --phase6-danger: #b42318;
  --phase6-danger-soft: #fee2e2;
  --phase6-neutral-soft: #e2e8f0;
}

.phase6-page {
  background: var(--phase6-bg);
  color: var(--phase6-body);
}

.phase6-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 0 34px;
}

.phase6-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 56%, #0369a1 100%);
  color: #fff;
  border-radius: 14px;
  padding: 22px 22px 18px;
  margin-bottom: 16px;
}

.phase6-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.phase6-title {
  margin: 8px 0 0;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
}

.phase6-subtitle {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
}

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

.phase6-metric {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 9px 11px;
}

.phase6-metric-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.82);
}

.phase6-metric-value {
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.phase6-card {
  background: var(--phase6-surface);
  border: 1px solid var(--phase6-border);
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.phase6-card + .phase6-card {
  margin-top: 12px;
}

.phase6-card-title {
  margin: 0;
  color: var(--phase6-title);
  font-size: 1.02rem;
  font-weight: 700;
}

.phase6-card-sub {
  margin-top: 4px;
  color: var(--phase6-muted);
  font-size: 0.84rem;
}

.phase6-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.phase6-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.76rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.phase6-chip.primary {
  color: #0f3f8a;
  background: var(--phase6-primary-soft);
  border-color: #bfdbfe;
}

.phase6-chip.secondary {
  color: #475569;
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.phase6-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.73rem;
  font-weight: 700;
  border: 1px solid transparent;
  line-height: 1;
}

.phase6-status.success {
  color: var(--phase6-success);
  background: var(--phase6-success-soft);
  border-color: #bbf7d0;
}

.phase6-status.warning {
  color: var(--phase6-warning);
  background: var(--phase6-warning-soft);
  border-color: #fde68a;
}

.phase6-status.danger {
  color: var(--phase6-danger);
  background: var(--phase6-danger-soft);
  border-color: #fecaca;
}

.phase6-status.info {
  color: #0f3f8a;
  background: var(--phase6-primary-soft);
  border-color: #bfdbfe;
}

.phase6-status.neutral {
  color: #334155;
  background: var(--phase6-neutral-soft);
  border-color: #cbd5e1;
}

.phase6-table-wrap {
  background: var(--phase6-surface);
  border: 1px solid var(--phase6-border);
  border-radius: 12px;
  overflow: hidden;
}

.phase6-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.phase6-table thead th {
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  background: #f8fbff;
  border-bottom: 1px solid var(--phase6-border);
  padding: 10px 12px;
}

.phase6-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #e7eef8;
  color: #334155;
  font-size: 0.86rem;
  vertical-align: top;
}

.phase6-table tbody tr:last-child td {
  border-bottom: none;
}

.phase6-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  text-align: center;
  padding: 26px 16px;
}

.phase6-progress {
  height: 7px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.phase6-progress .fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #0891b2);
}

.phase6-action-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.phase6-action-grid .btn {
  min-height: 40px;
}

@media (max-width: 820px) {
  .phase6-metrics {
    grid-template-columns: 1fr;
  }

  .phase6-hero {
    padding: 20px 16px 15px;
  }

  .phase6-action-grid > * {
    width: 100%;
  }
}
