/**
 * Pilot success dashboard mock — “What you get” visual
 */

.pilot-dash-page {
  --pdash-accent: #3ecf8e;
  --pdash-warn: #ffb14a;
  --pdash-danger: #ff5a5a;
}

.pilot-dash-hero {
  padding: 40px 0 24px;
}

.pilot-dash-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 28px;
}

.pilot-dash-tab {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text3);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.pilot-dash-tab:hover {
  color: var(--text2);
  border-color: rgba(255, 255, 255, 0.15);
}

.pilot-dash-tab.active {
  border-color: rgba(62, 207, 142, 0.45);
  background: rgba(62, 207, 142, 0.1);
  color: #7eeab8;
}

.pdash-shell {
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(18, 22, 28, 0.95), rgba(8, 10, 14, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.pdash-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.35);
}

.pdash-topbar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--text3);
}

.pdash-topbar-meta code {
  color: var(--text2);
}

.pdash-mock-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 177, 74, 0.35);
  background: rgba(255, 177, 74, 0.1);
  color: #ffc966;
}

.pdash-live-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
}

.pdash-body {
  padding: 20px;
  display: grid;
  gap: 20px;
}

.pdash-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.pdash-kpi {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.28);
}

.pdash-kpi--pass {
  border-color: rgba(62, 207, 142, 0.25);
}

.pdash-kpi-label {
  display: block;
  font-size: 11px;
  color: var(--text3);
  margin-bottom: 8px;
  line-height: 1.35;
}

.pdash-kpi-value {
  display: block;
  font-size: 26px;
  font-weight: 700;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: var(--text);
}

.pdash-kpi-target {
  display: block;
  font-size: 11px;
  color: var(--ok);
  margin-top: 6px;
}

.pdash-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
}

.pdash-panel {
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px 18px;
  background: rgba(0, 0, 0, 0.22);
}

.pdash-panel h3 {
  margin: 0 0 14px;
  font-size: 14px;
}

.pdash-donut-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pdash-donut {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(
    #3ecf8e 0 calc(var(--nominal) * 1%),
    #ffb14a calc(var(--nominal) * 1%) calc((var(--nominal) + var(--caution)) * 1%),
    #ff5a5a calc((var(--nominal) + var(--caution)) * 1%) 100%
  );
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.pdash-donut-hole {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #121419;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pdash-donut-score {
  font-size: 18px;
  font-weight: 700;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.pdash-donut-sub {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--text3);
}

.pdash-tier-legend {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  color: var(--text2);
}

.pdash-tier-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

.pdash-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.pdash-dot--nominal { background: #3ecf8e; }
.pdash-dot--caution { background: #ffb14a; }
.pdash-dot--critical { background: #ff5a5a; }

.pdash-sparkline {
  width: 100%;
  height: 80px;
  margin-top: 12px;
}

.pdash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.pdash-table th,
.pdash-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

.pdash-table th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text3);
}

.pdash-tier {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
}

.pdash-tier--critical {
  background: rgba(255, 90, 90, 0.15);
  color: #ff8a8a;
}

.pdash-tier--caution {
  background: rgba(255, 177, 74, 0.12);
  color: #ffc966;
}

.pdash-exit-row {
  margin-bottom: 14px;
}

.pdash-exit-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 6px;
  color: var(--text2);
}

.pdash-exit-status.pass {
  color: var(--ok);
}

.pdash-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.pdash-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3ecf8e, #22c55e);
}

.pdash-deliverables {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}

.pdash-deliverable {
  padding: 18px;
  border-radius: 14px;
  border: 1px dashed rgba(62, 207, 142, 0.3);
  background: rgba(62, 207, 142, 0.04);
}

.pdash-deliverable h4 {
  margin: 0 0 8px;
  font-size: 14px;
}

.pdash-deliverable p {
  margin: 0;
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
}

@media (max-width: 960px) {
  .pdash-kpi-row,
  .pdash-grid-2,
  .pdash-deliverables {
    grid-template-columns: 1fr;
  }
}
