/* Platform Console — overrides + extras on top of styles.css */

.app-shell.platform .topbar { background: #051828; }
.app-shell.platform .topbar-brand { border-right-color: rgba(255,255,255,0.06); }
.app-shell.platform .topbar-brand-mark {
  background: linear-gradient(135deg, #1E7A6F, #6FE5B8);
  font-size: 11px;
}
.app-shell.platform .sidebar {
  background: #0A2138;
  border-right-color: #051828;
}
.app-shell.platform .topbar-env {
  background: rgba(111,229,184,0.15);
  border: 1px solid rgba(111,229,184,0.3);
}
.app-shell.platform .topbar-env .dot { background: #6FE5B8; }

.console-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(111,229,184,0.15);
  border: 1px solid rgba(111,229,184,0.3);
  color: #6FE5B8;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* === MRR / line chart === */
.line-chart {
  width: 100%; height: 220px;
  display: block;
}
.line-chart .axis text {
  font-size: 9.5px; fill: var(--text-3);
  font-family: var(--font-mono);
}
.line-chart .grid {
  stroke: var(--border); stroke-dasharray: 2 3;
}
.line-chart .area { fill: url(#mrrGrad); opacity: 0.5; }
.line-chart .line { stroke: var(--brand); stroke-width: 2; fill: none; }
.line-chart .dot { fill: var(--brand); stroke: white; stroke-width: 2; }

/* === Stacked bar chart === */
.stacked-bars {
  display: flex; align-items: flex-end; gap: 6px;
  height: 160px;
}
.stacked-bars .bar {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.stacked-bars .bar .col {
  width: 100%; display: flex; flex-direction: column; justify-content: flex-end;
  gap: 1px;
}
.stacked-bars .bar .seg { width: 100%; }
.stacked-bars .bar .label { font-size: 10px; color: var(--text-3); }

/* === Tenant card === */
.tenant-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  align-items: center;
}
.tenant-card .mark {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--brand-3), var(--accent));
  border-radius: 8px;
  color: white;
  display: grid; place-items: center;
  font-weight: 700; font-size: 16px;
}
.tenant-card .info .name { font-weight: 700; font-size: 14px; }
.tenant-card .info .cn { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.tenant-card .info .meta { font-size: 11.5px; color: var(--text-3); margin-top: 6px; display: flex; gap: 12px; }
.tenant-card .rt { text-align: right; font-family: var(--font-mono); }
.tenant-card .rt .mrr { font-size: 16px; font-weight: 700; color: var(--brand); }
.tenant-card .rt .label { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; }

/* === Health ring === */
.health-ring {
  --pct: 80;
  --color: var(--success);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: conic-gradient(var(--color) calc(var(--pct) * 1%), var(--surface-alt) 0);
  display: grid; place-items: center;
}
.health-ring::after {
  content: '';
  width: 26px; height: 26px;
  background: var(--surface);
  border-radius: 50%;
  grid-area: 1 / 1;
}
.health-ring .val {
  grid-area: 1 / 1; z-index: 1;
  font-size: 10.5px; font-weight: 700;
  color: var(--color);
}

/* === Plan card === */
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.plan-card.featured {
  border-color: var(--brand);
  background: linear-gradient(180deg, #fff 0%, var(--brand-tint) 100%);
  box-shadow: var(--shadow);
}
.plan-card.featured::before {
  content: 'Most popular';
  position: absolute;
  top: 14px; right: -34px;
  background: var(--brand);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 38px;
  transform: rotate(36deg);
}
.plan-name {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-3);
}
.plan-price {
  font-size: 30px; font-weight: 800; letter-spacing: -0.02em;
  margin: 8px 0;
}
.plan-price .cur { font-size: 14px; font-weight: 500; opacity: 0.6; margin-right: 4px; }
.plan-price .per { font-size: 12px; font-weight: 500; opacity: 0.5; }
.plan-features { list-style: none; padding: 0; margin: 14px 0 16px; }
.plan-features li {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 12.5px; padding: 4px 0;
  color: var(--text-2);
}
.plan-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  width: 14px;
}
.plan-tenants {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 11px; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600;
}

/* === Funnel === */
.funnel {
  display: flex; flex-direction: column; gap: 4px;
}
.funnel .step {
  background: var(--brand-tint);
  border-radius: 4px;
  padding: 10px 14px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
  font-weight: 600;
  margin: 0 auto;
}
.funnel .step .v { font-family: var(--font-mono); color: var(--brand); font-weight: 700; }

/* === Mini sparkline (cell) === */
.spark-cell {
  width: 80px; height: 22px;
  display: block;
}
