.live-developer-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 24px;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 26px;
  overflow: hidden;
  color: #f8fafc;
  background: #102a43;
  border: 1px solid #2dd4bf;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .18);
}

.dashboard-card-grid > .live-developer-card,
#overview > .live-developer-card {
  grid-column: 1 / -1;
}

.live-developer-section {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 48px;
}

.live-developer-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: #facc15;
}

.live-developer-card * {
  min-width: 0;
}

.live-developer-eyebrow {
  margin: 0 0 7px;
  color: #99f6e4;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.live-developer-card h2 {
  margin: 0;
  color: #fff;
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.live-developer-card h2 [data-live-developers] {
  color: #facc15;
  font-size: 44px;
  font-variant-numeric: tabular-nums;
}

.live-developer-card p,
.live-developer-card small {
  color: #dbeafe;
}

.live-developer-card p {
  margin: 10px 0 0;
  line-height: 1.55;
}

.live-developer-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.live-developer-stat {
  padding: 15px;
  color: #102a43;
  background: #fff;
  border: 1px solid #bae6fd;
  border-radius: 6px;
}

.live-developer-stat strong,
.live-developer-stat span {
  display: block;
}

.live-developer-stat strong {
  color: #0f766e;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
}

.live-developer-stat span {
  margin-top: 3px;
  color: #526a85;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.live-developer-updated {
  grid-column: 1 / -1;
  color: #bfdbfe;
  text-align: right;
}

.site-analytics-admin {
  width: 100%;
  min-width: 0;
}

.site-analytics-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, .45fr)) minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.site-analytics-toolbar label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #526a85;
  font-size: 12px;
  font-weight: 850;
}

.site-analytics-toolbar input,
.site-analytics-toolbar select,
.site-analytics-toolbar button {
  width: 100%;
  min-height: 44px;
}

.site-analytics-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.site-analytics-kpi,
.site-analytics-panel {
  min-width: 0;
  padding: 17px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

.site-analytics-kpi span,
.site-analytics-kpi small {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.site-analytics-kpi strong {
  display: block;
  margin: 5px 0;
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.site-analytics-kpi .positive { color: #047857; }
.site-analytics-kpi .negative { color: #b91c1c; }

.site-analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.site-analytics-panel.wide {
  grid-column: 1 / -1;
}

.site-analytics-panel h3 {
  margin: 0 0 12px;
  color: #0f172a;
}

.site-analytics-chart {
  width: 100%;
  height: 250px;
  display: block;
  color: #0f766e;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.site-analytics-chart-grid { stroke: #dbe5ef; stroke-width: 1; }
.site-analytics-chart-views { fill: none; stroke: #0b57d0; stroke-width: 3; }
.site-analytics-chart-developers { fill: none; stroke: #0f766e; stroke-width: 3; }

.site-analytics-legend {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  color: #526a85;
  font-size: 12px;
  font-weight: 800;
}

.site-analytics-legend span::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 3px;
  margin-right: 6px;
  vertical-align: middle;
  background: #0b57d0;
}

.site-analytics-legend span:last-child::before { background: #0f766e; }

.site-analytics-ranks {
  display: grid;
  gap: 9px;
}

.site-analytics-rank {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.site-analytics-rank-label {
  overflow: hidden;
  color: #334155;
  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-analytics-rank strong {
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.site-analytics-rank-bar {
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  background: #e2e8f0;
  border-radius: 999px;
}

.site-analytics-rank-bar i {
  display: block;
  height: 100%;
  background: #0f766e;
  border-radius: inherit;
}

.site-analytics-table-wrap {
  width: 100%;
  overflow: auto;
}

.site-analytics-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
}

.site-analytics-table th,
.site-analytics-table td {
  padding: 10px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  font-size: 12px;
  text-align: left;
  vertical-align: top;
}

.site-analytics-table th {
  color: #526a85;
  font-weight: 900;
  text-transform: uppercase;
}

.site-analytics-empty,
.site-analytics-status {
  color: #64748b;
  font-size: 13px;
}

.site-analytics-status.error { color: #b91c1c; }

@media (max-width: 1000px) {
  .site-analytics-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-analytics-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .live-developer-card,
  .site-analytics-grid,
  .site-analytics-kpis,
  .site-analytics-toolbar {
    grid-template-columns: 1fr;
  }
  .live-developer-card { padding: 21px; }
  .live-developer-card h2 { font-size: 26px; }
  .live-developer-card h2 [data-live-developers] { font-size: 36px; }
  .live-developer-updated { text-align: left; }
  .site-analytics-panel.wide { grid-column: auto; }
}

@media (max-width: 420px) {
  .live-developer-stats { grid-template-columns: 1fr; }
}
