#tab-stats { position: relative; }
.client-stats .sub { margin: 6px 0 0; }
.cs-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cs-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; }
.cs-head h2 .i { width: 22px; height: 22px; color: #ff8a1e; }
.cs-range { display: flex; gap: 6px; flex-wrap: wrap; }
.cs-range button, .cs-metrics button {
  border: 1px solid #ffffff14; background: #ffffff06; color: #b8b8c2; border-radius: 999px;
  padding: 7px 13px; font-size: 12px; cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.cs-range button:hover, .cs-metrics button:hover { color: #f2f2f5; border-color: #ffffff2e; }
.cs-range button[aria-pressed="true"], .cs-metrics button[aria-pressed="true"] { border-color: #ff8a1e66; color: #ffb36b; background: #ff8a1e14; }
.cs-range button:focus-visible, .cs-metrics button:focus-visible, [data-tip]:focus-visible { outline: 2px solid #ff8a1e; outline-offset: 2px; }
.cs-empty { color: #9797a4; font-size: 14px; margin: 16px 0 0; line-height: 1.6; }

.cs-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.cs-kpi { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; border: 1px solid #ffffff12; background: linear-gradient(160deg, #ff8a1e0d, #ffffff04 60%); min-width: 0; }
.cs-label { font-size: 12px; color: #9797a4; }
.cs-value { font-size: 24px; color: #f5f5f7; overflow-wrap: anywhere; line-height: 1.2; }
.cs-delta { font-size: 12px; }
.cs-delta.up { color: #7fdc9a; }
.cs-delta.down { color: #ff8f8f; }
.cs-delta.flat { color: #8a8a96; }
.cs-note-small { font-size: 11px; color: #7d7d8a; }

.cs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.cs-box { border: 1px solid #ffffff12; border-radius: 16px; padding: 16px; background: #ffffff05; min-width: 0; }
.cs-box.cs-wide { grid-column: 1 / -1; }
.cs-box h3 { margin: 0 0 12px; font-size: 15px; }
.cs-box-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cs-box-head h3 { margin: 0; }
.cs-metrics { display: flex; gap: 6px; flex-wrap: wrap; }

.cs-chart { position: relative; }
.cs-bars { display: flex; align-items: flex-end; gap: 6px; height: 200px; padding: 8px 2px 0; border-bottom: 1px solid #ffffff14; }
.cs-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.cs-bar { width: 100%; max-width: 40px; border-radius: 7px 7px 0 0; background: linear-gradient(#ffb36b, #ff8a1e); transition: height .35s ease, filter .15s; cursor: default; }
.cs-bar.zero { background: #ffffff14; }
.cs-bar:hover { filter: brightness(1.15) saturate(1.1); }
.cs-day { font-size: 10px; color: #7d7d8a; white-space: nowrap; }
.cs-day.hide { visibility: hidden; }
.cs-scale { margin-top: 8px; font-size: 11px; color: #7d7d8a; }

.cs-heat-grid { display: grid; grid-template-rows: repeat(7, 14px); grid-auto-flow: column; grid-auto-columns: 14px; gap: 4px; overflow-x: auto; padding-bottom: 4px; }
.cs-cell { width: 14px; height: 14px; border-radius: 4px; background: #ffffff0d; display: inline-block; }
.cs-cell.empty { background: transparent; }
.cs-cell.lv-1 { background: #ff8a1e33; }
.cs-cell.lv-2 { background: #ff8a1e66; }
.cs-cell.lv-3 { background: #ff8a1ea6; }
.cs-cell.lv-4 { background: #ffb36b; }
.cs-cell[data-tip]:hover { outline: 1px solid #ffb36b; outline-offset: 1px; }
.cs-legend-row { display: flex; align-items: center; gap: 4px; justify-content: flex-end; margin-top: 10px; font-size: 11px; color: #7d7d8a; }
.cs-legend-row .cs-cell { width: 11px; height: 11px; }

.cs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cs-row-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: #b8b8c2; }
.cs-row-head strong { color: #f5f5f7; font-weight: 600; white-space: nowrap; }
.cs-track { height: 8px; border-radius: 999px; background: #ffffff0d; margin-top: 6px; overflow: hidden; }
.cs-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ff8a1e, #ffb36b); transition: width .35s ease; }

.cs-tip {
  position: absolute; z-index: 20; transform: translate(-50%, calc(-100% - 10px)); pointer-events: none;
  background: #16161b; border: 1px solid #ff8a1e4d; border-radius: 12px; padding: 10px 12px; min-width: 180px; max-width: 260px;
  box-shadow: 0 12px 30px #0008; font-size: 12px; color: #d8d8e0; line-height: 1.55;
}
.cs-tip-title { color: #ffb36b; font-weight: 600; margin-bottom: 2px; }
.cs-note { font-size: 12px; color: #7d7d8a; margin: 14px 0 0; }

@media (max-width: 1000px) { .cs-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .cs-grid { grid-template-columns: 1fr; }
  .cs-bars { height: 170px; gap: 3px; }
  .cs-day { font-size: 9px; }
}
@media (max-width: 420px) {
  .cs-kpis { gap: 8px; }
  .cs-kpi { padding: 12px; }
  .cs-value { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .cs-bar, .cs-fill { transition: none; } }

/* launch summary (moved from the profile card) */
.launch-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.ls-tile { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; border: 1px solid #ffffff12; background: #ffffff05; min-width: 0; }
.ls-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: #ff8a1e18; color: #ff8a1e; flex: 0 0 auto; }
.ls-ico .i { width: 20px; height: 20px; }
.ls-label { display: block; font-size: 12px; color: #9797a4; margin-bottom: 4px; }
.ls-value { display: block; font-size: 20px; color: #f5f5f7; line-height: 1.2; }
.ls-date { font-size: 16px; }
.cs-sub { margin: 4px 0 0; font-size: 12px; color: #7d7d8a; line-height: 1.5; font-weight: 400; }
.cs-box-head h3 + .cs-sub { margin-top: 2px; }
.cs-box > h3 + .cs-sub { margin: -6px 0 12px; }
@media (max-width: 560px) { .launch-summary { grid-template-columns: 1fr; } }
