/* Premium workspace control centre — /app/dashboard */

body.tb-dash-cc .app-content {
  max-width: 1280px;
  margin-inline: auto;
  padding-top: 4px;
  padding-bottom: 32px;
  background: #f1f5f9;
  overflow-x: clip;
}

.tb-dash-cc-onboard {
  margin-bottom: var(--tb-space-4, 16px);
  border: 1px solid rgba(13, 148, 136, 0.25);
  background: linear-gradient(135deg, #f0fdfa 0%, #fff 55%);
}

.tb-dash-cc-onboard__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.tb-dash-cc-h2 {
  margin: 4px 0 0;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tb-ink, #0f172a);
}

.tb-dash-cc-muted {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--tb-muted, #64748b);
}

.tb-dash-cc-pill {
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.12);
  color: var(--tb-brand, #0d9488);
  border: 1px solid rgba(13, 148, 136, 0.25);
}

.tb-dash-cc-checklist {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.tb-dash-cc-onboard__dismiss {
  margin-top: 14px;
}

.tb-dash-cc-demo-hint {
  font-size: 13px;
  margin: 0 0 var(--tb-space-3, 12px);
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--tb-ink-secondary, #334155);
}

/* Compact workspace strip (data-first; replaces in-page hero) */
.tb-dash-cc-workspace-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--tb-line, #e2e8f0);
  background: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 4px 16px rgba(15, 23, 42, 0.04);
}

.tb-dash-cc-workspace-bar__logo {
  flex: 0 0 auto;
  line-height: 0;
}

.tb-dash-cc-workspace-bar__logo img {
  display: block;
  height: 22px;
  width: auto;
  max-width: 88px;
  object-fit: contain;
}

.tb-dash-cc-workspace-bar__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

@media (min-width: 640px) {
  .tb-dash-cc-workspace-bar__meta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 8px;
  }

  .tb-dash-cc-workspace-bar__ctx::before {
    content: "·";
    margin-right: 8px;
    color: var(--tb-line, #cbd5e1);
    font-weight: 700;
  }
}

.tb-dash-cc-workspace-bar__org {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--tb-ink, #0f172a);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.tb-dash-cc-workspace-bar__ctx {
  font-size: 12px;
  font-weight: 600;
  color: var(--tb-muted, #64748b);
  line-height: 1.35;
}

/* Action-centre preview under KPIs */
.tb-dash-cc-attention {
  margin: 0 0 12px;
  padding: 10px 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(13, 148, 136, 0.22);
  background: linear-gradient(180deg, #f8fafc 0%, #fff 70%);
}

.tb-dash-cc-attention__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.tb-dash-cc-attention__title {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tb-ink, #0f172a);
}

.tb-dash-cc-attention__link {
  font-size: 12px;
  font-weight: 700;
  color: var(--tb-brand, #0d9488);
  text-decoration: none;
  white-space: nowrap;
}

.tb-dash-cc-attention__link:hover {
  text-decoration: underline;
}

.tb-dash-cc-attention__empty {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--tb-muted, #64748b);
}

.tb-dash-cc-attention__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tb-dash-cc-attention__row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 8px;
  margin: 0 -8px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
}

.tb-dash-cc-attention__row:hover {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.tb-dash-cc-attention__row--static {
  cursor: default;
}

.tb-dash-cc-attention__row--static:hover {
  background: transparent;
  box-shadow: none;
}

.tb-dash-cc-attention__text {
  color: var(--tb-ink-secondary, #334155);
}

.tb-dash-cc-attention__row .tb-dash-cc-sev {
  flex: 0 0 auto;
  margin-top: 1px;
  font-size: 10px;
  font-weight: 800;
  min-width: 1.5rem;
  text-align: center;
}

/* Demo tour — collapsed tips (was large step-1 card) */
.tb-dash-cc-demo-tips {
  margin: 0 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  background: rgba(59, 130, 246, 0.04);
}

.tb-dash-cc-demo-tips__summary {
  cursor: pointer;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--tb-ink-secondary, #334155);
  list-style: none;
}

.tb-dash-cc-demo-tips__summary::-webkit-details-marker {
  display: none;
}

.tb-dash-cc-demo-tips__summary::after {
  content: " ▸";
  font-size: 11px;
  opacity: 0.65;
}

.tb-dash-cc-demo-tips[open] .tb-dash-cc-demo-tips__summary::after {
  content: " ▾";
}

.tb-dash-cc-demo-tips__body {
  padding: 0 12px 10px;
  border-top: 1px solid rgba(59, 130, 246, 0.12);
}

.tb-dash-cc-demo-tips__p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--tb-ink-secondary, #334155);
}

/* —— v2 premium control centre (topline + KPI + prime + trends) —— */
.tb-dash-cc-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 10px;
  padding: 6px 0;
  min-height: 28px;
}

.tb-dash-cc-topline--prod .tb-dash-cc-topline__meta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tb-muted, #64748b);
}

.tb-dash-cc-topline__badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.28);
}

.tb-dash-cc-topline__meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--tb-ink-secondary, #334155);
}

/* Compact workspace strip (org + role + optional logo — premium shell) */
.tb-dash-cc-workstrip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 6px 20px rgba(15, 23, 42, 0.04);
}

.tb-dash-cc-workstrip__start {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tb-dash-cc-workstrip__logo {
  flex: 0 0 auto;
  line-height: 0;
}

.tb-dash-cc-workstrip__logo img {
  display: block;
  height: 20px;
  width: auto;
  max-width: 84px;
  object-fit: contain;
}

.tb-dash-cc-workstrip__titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

@media (min-width: 560px) {
  .tb-dash-cc-workstrip__titles {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
  }

  .tb-dash-cc-workstrip__role::before {
    content: "·";
    margin-right: 10px;
    color: #cbd5e1;
    font-weight: 800;
  }
}

.tb-dash-cc-workstrip__org {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tb-ink, #0f172a);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(72vw, 420px);
}

.tb-dash-cc-workstrip__role {
  font-size: 12px;
  font-weight: 600;
  color: var(--tb-muted, #64748b);
}

.tb-dash-cc-workstrip__demo {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.22);
  white-space: nowrap;
}

.tb-dash-cc-mission {
  margin: 0 0 12px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--tb-ink-secondary, #475569);
  background: linear-gradient(90deg, rgba(13, 148, 136, 0.06) 0%, rgba(15, 23, 42, 0.03) 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 12px;
}

.tb-dash-cc-kpis.tb-dash-cc-kpis--v2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: visible;
}

@media (min-width: 720px) {
  .tb-dash-cc-kpis.tb-dash-cc-kpis--v2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (min-width: 1100px) {
  .tb-dash-cc-kpis.tb-dash-cc-kpis--v2:not(.tb-dash-cc-kpis--v2-staff) {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.tb-dash-cc-kpis--v2-staff {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 900px) {
  .tb-dash-cc-kpis--v2-staff {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.tb-dash-cc-kpi--v2 {
  min-height: 0;
  padding: 12px 12px 10px;
  border-radius: 14px;
  gap: 2px;
}

.tb-dash-cc-kpi__val--lg {
  font-size: 1.75rem;
}

@media (min-width: 1100px) {
  .tb-dash-cc-kpi--v2 .tb-dash-cc-kpi__val--lg {
    font-size: 1.95rem;
  }
}

.tb-dash-cc-kpi__spark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
  margin: 4px 0 2px;
}

.tb-dash-cc-kpi__spark-bar {
  width: 6px;
  min-height: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.85), rgba(37, 99, 235, 0.25));
  align-self: flex-end;
}

.tb-dash-cc-kpis-more--v2 {
  grid-column: 1 / -1;
}

.tb-dash-cc-prime {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

@media (min-width: 1024px) {
  .tb-dash-cc-prime {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
    align-items: start;
    gap: 14px;
  }
}

.tb-dash-cc-prime__main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.tb-dash-cc-prime__rail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.tb-dash-cc-card--v2 {
  border-radius: 16px;
  padding: 16px 16px 14px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset, 0 8px 28px rgba(15, 23, 42, 0.06);
}

.tb-dash-cc-card__head--v2 {
  margin-bottom: 12px;
  align-items: flex-start;
}

.tb-dash-cc-eyebrow {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tb-muted, #64748b);
}

.tb-dash-cc-eyebrow--sub {
  margin: 12px 0 6px;
}

.tb-dash-cc-card-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tb-ink, #0f172a);
  line-height: 1.2;
}

.tb-dash-cc-lead {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--tb-muted, #64748b);
}

.tb-dash-cc-action-list--v2 {
  gap: 8px;
}

.tb-dash-cc-action-list--v2 .tb-dash-cc-action-list__item {
  padding: 8px 10px;
}

.tb-dash-cc-attention__list--inset {
  margin-bottom: 4px;
}

.tb-dash-cc-alerts--compact {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tb-dash-cc-alerts--compact .tb-dash-cc-alerts__i {
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 10px;
}

.tb-dash-cc-inline-link {
  font-weight: 700;
  color: var(--tb-brand, #0d9488);
  text-decoration: none;
}

.tb-dash-cc-inline-link:hover {
  text-decoration: underline;
}

.tb-dash-cc-pulse-scoreline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.tb-dash-cc-pulse-scoreline__val {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--tb-ink, #0f172a);
}

.tb-dash-cc-pulse-scoreline__unit {
  font-size: 1rem;
  font-weight: 700;
  color: var(--tb-muted, #64748b);
}

.tb-dash-cc-pulse-scoreline__hint {
  margin: 0;
  flex: 1 1 100%;
  font-size: 12px;
  line-height: 1.45;
  color: var(--tb-ink-secondary, #334155);
}

.tb-dash-cc-progress--slim {
  height: 6px;
  border-radius: 999px;
}

.tb-dash-cc-foot-sm {
  margin: 8px 0 10px;
  font-size: 12px;
}

.tb-dash-cc-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tb-dash-cc-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #f1f5f9;
  color: var(--tb-ink-secondary, #334155);
  text-decoration: none;
  border: 1px solid var(--tb-line, #e2e8f0);
}

.tb-dash-cc-chip:hover {
  border-color: rgba(13, 148, 136, 0.45);
  color: var(--tb-brand, #0d9488);
}

.tb-dash-cc-chip--muted {
  cursor: default;
}

.tb-dash-cc-chip--muted:hover {
  border-color: var(--tb-line, #e2e8f0);
  color: var(--tb-ink-secondary, #334155);
}

.tb-dash-cc-chip--warn {
  background: #fffbeb;
  border-color: rgba(217, 119, 6, 0.35);
}

.tb-dash-cc-qa-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tb-dash-cc-qa {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  color: var(--tb-ink, #0f172a);
  background: #f8fafc;
  border: 1px solid var(--tb-line, #e2e8f0);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}

.tb-dash-cc-qa:hover {
  border-color: rgba(13, 148, 136, 0.4);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.tb-dash-cc-qa--brand {
  background: rgba(13, 148, 136, 0.1);
  border-color: rgba(13, 148, 136, 0.35);
  color: #0f766e;
}

.tb-dash-cc-trends {
  margin: 0 0 18px;
  padding: 16px 18px 18px;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 55%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 10px 36px rgba(15, 23, 42, 0.05);
}

.tb-dash-cc-trends__head {
  margin-bottom: 12px;
}

.tb-dash-cc-trends__grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 800px) {
  .tb-dash-cc-trends__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

.tb-dash-cc-trend-card {
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  min-width: 0;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03);
}

.tb-dash-cc-trend-card__title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tb-muted, #64748b);
}

.tb-dash-cc-trend-card__stat {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--tb-ink, #0f172a);
}

.tb-dash-cc-spark--tight .tb-dash-cc-spark__cell span {
  font-size: 10px;
}

.tb-dash-cc-spark--tight .tb-dash-cc-spark__bar {
  max-width: 10px;
}

.tb-dash-cc-empty--positive {
  text-align: left;
  border-style: solid;
  border-color: rgba(13, 148, 136, 0.22);
  background: linear-gradient(180deg, #f0fdfa 0%, #fafbfc 100%);
}

.tb-dash-cc-sev--low {
  background: #166534;
  color: #fff;
}

/* Demo tour — Step 1 (dashboard narrative + spotlights) */
.tb-dash-cc-demo-step1 {
  margin: 0 0 var(--tb-space-5, 20px);
  padding: clamp(16px, 2.2vw, 22px) clamp(18px, 2.4vw, 24px);
  border-radius: 16px;
  border: 1px solid rgba(13, 148, 136, 0.28);
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 55%);
  box-shadow: 0 8px 28px rgba(13, 148, 136, 0.08);
}

.tb-dash-cc-demo-step1__badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tb-brand, #0d9488);
  background: rgba(13, 148, 136, 0.12);
  border: 1px solid rgba(13, 148, 136, 0.22);
}

.tb-dash-cc-demo-step1__stat {
  margin: 0;
  font-size: clamp(1.08rem, 2.1vw, 1.28rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--tb-ink, #0f172a);
}

.tb-dash-cc-demo-step1__stat strong {
  font-weight: 800;
  color: var(--tb-brand, #0d9488);
}

.tb-dash-cc-demo-step1__highlights {
  margin: 14px 0 0;
  padding-left: 1.15rem;
  font-size: 14px;
  line-height: 1.55;
  color: var(--tb-ink-secondary, #334155);
}

.tb-dash-cc-demo-step1__highlights li {
  margin-bottom: 6px;
}

.tb-dash-cc-demo-step1__highlights li:last-child {
  margin-bottom: 0;
}

.tb-dash-cc-demo-step1__lead {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--tb-muted, #64748b);
  max-width: 56ch;
}

/* Demo tour — Final CTA (dashboard) */
.tb-dash-cc-demo-final {
  margin-top: var(--tb-space-6, 24px);
  padding: clamp(18px, 2.4vw, 26px) clamp(20px, 2.6vw, 28px);
  border-radius: 16px;
  border: 1px solid rgba(13, 148, 136, 0.32);
  background: linear-gradient(145deg, #f0fdfa 0%, #ffffff 50%, #f8fafc 100%);
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.06);
}

.tb-dash-cc-demo-final__badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f766e;
  background: rgba(13, 148, 136, 0.14);
  border: 1px solid rgba(13, 148, 136, 0.24);
}

.tb-dash-cc-demo-final__title {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--tb-ink, #0f172a);
}

.tb-dash-cc-demo-final__text {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--tb-ink-secondary, #334155);
  max-width: 58ch;
}

.tb-dash-cc-demo-final__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--tb-space-5, 20px);
}

.tb-dash-cc-demo-final__actions .btn {
  flex: 1 1 auto;
  min-width: 140px;
  justify-content: center;
}

.tb-dash-cc-demo-spotlight.tb-dash-cc-card--actions {
  box-shadow:
    0 0 0 2px rgba(13, 148, 136, 0.32),
    0 12px 40px rgba(13, 148, 136, 0.1);
  border-color: rgba(13, 148, 136, 0.35);
}

a.tb-dash-cc-mod--link.tb-dash-cc-demo-spotlight {
  box-shadow:
    0 0 0 2px rgba(13, 148, 136, 0.3),
    0 10px 32px rgba(13, 148, 136, 0.1);
  border-color: rgba(13, 148, 136, 0.35);
}

a.tb-dash-cc-mod--link.tb-dash-cc-demo-spotlight:hover {
  border-color: rgba(13, 148, 136, 0.5);
}

/* Command hero */
.tb-dash-cc-herohead {
  margin: 0 0 var(--tb-space-5, 20px);
  padding-bottom: var(--tb-space-4, 16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.tb-dash-cc-herohead__k {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tb-brand, #0d9488);
}

.tb-dash-cc-herohead__h {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--tb-ink, #0f172a);
  line-height: 1.15;
}

.tb-dash-cc-herohead__sub {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--tb-muted, #64748b);
  max-width: 52ch;
}

.tb-dash-cc-sectionhead {
  margin: 8px 0 12px;
}

.tb-dash-cc-sectionhead__title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tb-ink, #0f172a);
}

.tb-dash-cc-sectionhead__hint {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--tb-muted, #64748b);
}

/* KPI strip */
.tb-dash-cc-kpis {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 4px;
}

.tb-dash-cc-kpis::-webkit-scrollbar {
  height: 6px;
}

.tb-dash-cc-kpis::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.5);
  border-radius: 999px;
}

@media (min-width: 720px) {
  .tb-dash-cc-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: visible;
    scroll-snap-type: none;
    flex-wrap: unset;
    gap: 10px;
  }
}

@media (min-width: 1100px) {
  .tb-dash-cc-kpis {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
  }
}

.tb-dash-cc-kpi {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 0 0 min(82vw, 300px);
  scroll-snap-align: start;
  gap: 4px;
  padding: 12px 12px 10px;
  border-radius: 12px;
  border: 1px solid var(--tb-line, #e2e8f0);
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 6px 18px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
  min-height: 96px;
}

@media (min-width: 720px) {
  .tb-dash-cc-kpi {
    flex: unset;
    scroll-snap-align: unset;
    min-width: 0;
    min-height: 92px;
  }
}

.tb-dash-cc-kpi:hover {
  border-color: rgba(13, 148, 136, 0.45);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.tb-dash-cc-kpi--alert {
  border-color: rgba(180, 35, 24, 0.35);
  background: linear-gradient(180deg, #fff5f5 0%, #fff 65%);
}

.tb-dash-cc-kpi--warn {
  border-color: rgba(217, 119, 6, 0.4);
  background: linear-gradient(180deg, #fffbeb 0%, #fff 65%);
}

.tb-dash-cc-kpi__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tb-muted, #64748b);
}

.tb-dash-cc-kpi__val {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--tb-ink, #0f172a);
  line-height: 1.1;
}

.tb-dash-cc-kpi__val--txt {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.tb-dash-cc-kpi__unit {
  font-size: 0.55em;
  font-weight: 700;
  color: var(--tb-muted, #64748b);
  margin-left: 2px;
}

.tb-dash-cc-kpi__hint {
  font-size: 11px;
  color: var(--tb-brand, #0d9488);
  font-weight: 600;
}

.tb-dash-cc-kpi__trend {
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

.tb-dash-cc-kpi__trend.is-up {
  color: #b42318;
}

.tb-dash-cc-kpi__trend.is-down {
  color: #15803d;
}

.tb-dash-cc-kpi__trend.is-flat {
  color: var(--tb-muted, #64748b);
}

/* Primary row */
.tb-dash-cc-primary {
  display: grid;
  gap: 16px;
  margin-bottom: var(--tb-space-5, 20px);
}

@media (min-width: 960px) {
  .tb-dash-cc-primary {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
  }
}

.tb-dash-cc-card {
  border-radius: 14px;
  border: 1px solid var(--tb-line, #e2e8f0);
  background: #fff;
  padding: clamp(18px, 2vw, 24px);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.tb-dash-cc-card--actions {
  border-left: 4px solid var(--tb-brand, #0d9488);
}

.tb-dash-cc-card__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.tb-dash-cc-card__head--tight {
  margin-bottom: 10px;
}

.tb-dash-cc-card__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tb-dash-cc-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tb-dash-cc-foot {
  margin-top: 10px;
  margin-bottom: 0;
}

/* Action list */
.tb-dash-cc-action-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tb-dash-cc-action-list__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--tb-surface-subtle, #f8fafc);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.tb-dash-cc-sev {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--tb-sev-bg, #b42318);
  color: #fff;
}

.tb-dash-cc-action-list__body a {
  font-weight: 700;
  color: var(--tb-ink, #0f172a);
  text-decoration: none;
}

.tb-dash-cc-action-list__body a:hover {
  color: var(--tb-brand, #0d9488);
  text-decoration: underline;
}

.tb-dash-cc-empty {
  padding: 20px 16px;
  text-align: center;
  border-radius: 12px;
  border: 1px dashed var(--tb-line, #e2e8f0);
  background: #fafbfc;
}

.tb-dash-cc-empty--compact {
  padding: 16px;
  text-align: left;
}

.tb-dash-cc-empty .btn {
  margin-top: 10px;
}

/* Pulse / score */
.tb-dash-cc-score {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 4px 0 8px;
}

.tb-dash-cc-score__val {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--tb-ink, #0f172a);
}

.tb-dash-cc-score__unit {
  font-size: 1rem;
  font-weight: 700;
  color: var(--tb-muted, #64748b);
}

.tb-dash-cc-band {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--tb-line, #e2e8f0);
}

.tb-dash-cc-band--green {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
  border-color: rgba(34, 197, 94, 0.35);
}

.tb-dash-cc-band--amber {
  background: rgba(245, 158, 11, 0.15);
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.4);
}

.tb-dash-cc-band--red {
  background: rgba(239, 68, 68, 0.12);
  color: #991b1b;
  border-color: rgba(239, 68, 68, 0.35);
}

.tb-dash-cc-progress {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin-bottom: 8px;
}

.tb-dash-cc-progress__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tb-brand, #0d9488), #14b8a6);
}

.tb-dash-cc-mini-signals {
  margin: 10px 0 0;
  padding-left: 1.1rem;
  font-size: 13px;
  color: var(--tb-ink-secondary, #334155);
}

.tb-dash-cc-mini-signals a {
  font-weight: 600;
}

/* Sparkline */
.tb-dash-cc-spark {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  min-height: 56px;
  padding: 8px 4px 0;
}

.tb-dash-cc-spark__cell {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--tb-muted, #64748b);
}

.tb-dash-cc-spark__bar {
  width: 100%;
  max-width: 36px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, rgba(13, 148, 136, 0.85), rgba(13, 148, 136, 0.35));
  min-height: 6px;
}

/* Module launchers */
.tb-dash-cc-modules {
  display: grid;
  gap: 12px;
  margin-bottom: var(--tb-space-5, 20px);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .tb-dash-cc-modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .tb-dash-cc-modules {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1320px) {
  .tb-dash-cc-modules {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.tb-dash-cc-mod {
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  padding: 16px 16px 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 140px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 8px 26px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}

.tb-dash-cc-mod__title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tb-dash-cc-mod__stat {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--tb-ink, #0f172a);
}

.tb-dash-cc-mod__hint {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--tb-muted, #64748b);
  flex: 1;
}

.tb-dash-cc-mod .btn {
  align-self: flex-start;
}

a.tb-dash-cc-mod--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset, 0 10px 28px rgba(15, 23, 42, 0.06);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}

a.tb-dash-cc-mod--link:hover {
  border-color: rgba(13, 148, 136, 0.45);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.09);
  transform: translateY(-2px);
}

a.tb-dash-cc-mod--link:focus-visible {
  outline: 2px solid rgba(13, 148, 136, 0.55);
  outline-offset: 2px;
}

.tb-dash-cc-mod--muted {
  opacity: 0.88;
  background: #f8fafc;
}

.tb-dash-cc-mod__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  margin-bottom: 2px;
  color: var(--tb-brand, #0d9488);
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.18);
}

.tb-dash-cc-mod--muted .tb-dash-cc-mod__icon {
  color: var(--tb-muted, #64748b);
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.22);
}

.tb-dash-cc-mod__icon svg {
  display: block;
}

.tb-dash-cc-mod__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.tb-dash-cc-mod__cta .btn {
  pointer-events: none;
}

.tb-dash-cc-mod__chev {
  font-size: 15px;
  font-weight: 800;
  color: var(--tb-brand, #0d9488);
  transition: transform 0.15s;
}

a.tb-dash-cc-mod--link:hover .tb-dash-cc-mod__chev {
  transform: translateX(3px);
}

/* Split rows */
.tb-dash-cc-split {
  display: grid;
  gap: 14px;
  margin-bottom: var(--tb-space-5, 20px);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .tb-dash-cc-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tb-dash-cc-split--wide .tb-dash-cc-card {
  min-height: 0;
}

.tb-dash-cc-alerts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tb-dash-cc-alerts__i {
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--tb-line, #e2e8f0);
}

.tb-dash-cc-alerts__i--risk {
  border-color: rgba(180, 35, 24, 0.3);
  background: #fff5f5;
}

.tb-dash-cc-alerts__i--overdue {
  border-color: rgba(217, 119, 6, 0.35);
  background: #fffbeb;
}

.tb-dash-cc-alerts__i a {
  font-weight: 600;
  color: var(--tb-ink, #0f172a);
}

.tb-dash-cc-task-list,
.tb-dash-cc-compact,
.tb-dash-cc-activity {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tb-dash-cc-activity li {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--tb-line, #e2e8f0);
}

.tb-dash-cc-activity li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.tb-dash-cc-subh {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tb-muted, #64748b);
  margin: 14px 0 8px;
}

.tb-dash-cc-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: #e2e8f0;
  margin-left: 4px;
}

.tb-dash-cc-wf {
  font-size: 10px;
  font-weight: 700;
  color: var(--tb-brand, #0d9488);
  margin-left: 6px;
}

.tb-dash-cc-dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.tb-dash-cc-dl > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--tb-line, #e2e8f0);
  font-size: 13px;
}

.tb-dash-cc-dl > div:last-child {
  border-bottom: 0;
}

.tb-dash-cc-dl dt {
  margin: 0;
  color: var(--tb-muted, #64748b);
  font-weight: 500;
}

.tb-dash-cc-dl dd {
  margin: 0;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.tb-dash-cc-launch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 0 8px;
  border-top: 1px solid var(--tb-line, #e2e8f0);
  margin-top: 8px;
}

.tb-dash-cc-link {
  font-weight: 600;
  margin-left: 6px;
}

/* Hide legacy dashboard rows if any slip through */
body.tb-dash-cc .tb-dash-row,
body.tb-dash-cc .tb-hero-shell,
body.tb-dash-cc .tb-module-grid,
body.tb-dash-cc .tb-dash-modules,
body.tb-dash-cc .tb-dash-pf-stack {
  display: none !important;
}

/* Demo KPI spotlights — placed last so tour ring wins over alert/warm KPI skins */
.tb-dash-cc-kpi.tb-dash-cc-demo-kpi-spotlight,
.tb-dash-cc-kpi.tb-dash-cc-kpi--alert.tb-dash-cc-demo-kpi-spotlight,
.tb-dash-cc-kpi.tb-dash-cc-kpi--warn.tb-dash-cc-demo-kpi-spotlight {
  border-color: rgba(13, 148, 136, 0.48);
  box-shadow:
    0 0 0 2px rgba(13, 148, 136, 0.38),
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 28px rgba(13, 148, 136, 0.12);
}

.tb-dash-cc-kpi.tb-dash-cc-demo-kpi-spotlight:hover {
  border-color: rgba(13, 148, 136, 0.58);
}

/* Demo tour — Action Centre (step 2) spotlights */
.tb-hero-card.tb-ac-demo-spotlight-hero {
  box-shadow:
    0 0 0 2px rgba(13, 148, 136, 0.28),
    0 12px 36px rgba(13, 148, 136, 0.08);
  border-color: rgba(13, 148, 136, 0.32);
}

section.card.panel.tb-ac-demo-spotlight-queue {
  box-shadow:
    0 0 0 2px rgba(13, 148, 136, 0.28),
    0 12px 40px rgba(13, 148, 136, 0.08);
  border-color: rgba(13, 148, 136, 0.32) !important;
}

aside.notice.notice-warning.tb-ac-demo-spotlight-attention {
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.22);
  border-color: rgba(13, 148, 136, 0.35) !important;
}

/* Demo tour — Incident intelligence (step 3) spotlights */
.card.panel.tb-ii-demo-spotlight-hero {
  box-shadow:
    0 0 0 2px rgba(13, 148, 136, 0.28),
    0 12px 36px rgba(13, 148, 136, 0.08);
  border-color: rgba(13, 148, 136, 0.32);
}

.card.panel.tb-ii-demo-spotlight-details,
.card.panel.tb-ii-demo-spotlight-learning,
.card.panel.tb-ii-demo-spotlight-actions {
  box-shadow:
    0 0 0 2px rgba(13, 148, 136, 0.26),
    0 10px 32px rgba(13, 148, 136, 0.07);
  border-color: rgba(13, 148, 136, 0.3) !important;
}

/* Demo tour — Support plans / connected care (step 4) */
.tb-care-module-hero.tb-sp-demo-spotlight-hero {
  box-shadow:
    0 0 0 2px rgba(13, 148, 136, 0.26),
    0 10px 32px rgba(13, 148, 136, 0.07);
  border-radius: 12px;
  border: 1px solid rgba(13, 148, 136, 0.28);
}

.card.panel.tb-sp-demo-spotlight-plan-list,
.card.panel.tb-sp-demo-spotlight-risk {
  box-shadow:
    0 0 0 2px rgba(13, 148, 136, 0.28),
    0 12px 40px rgba(13, 148, 136, 0.08);
  border-color: rgba(13, 148, 136, 0.32) !important;
}

.grid-2.tb-sp-demo-spotlight-review,
.tb-legal-grid > div.tb-sp-demo-spotlight-review {
  border-radius: 10px;
  padding: 8px 10px;
  margin: -8px -10px;
  box-shadow:
    0 0 0 2px rgba(13, 148, 136, 0.28),
    0 8px 24px rgba(13, 148, 136, 0.07);
  border: 1px solid rgba(13, 148, 136, 0.22);
  background: rgba(240, 253, 250, 0.35);
}

/* Demo tour — Workforce / rota (step 5) */
.tb-hero-card.tb-wf-demo-spotlight-rota {
  box-shadow:
    0 0 0 2px rgba(13, 148, 136, 0.28),
    0 12px 36px rgba(13, 148, 136, 0.08);
  border-color: rgba(13, 148, 136, 0.32);
}

.tb-side-card.tb-wf-demo-spotlight-gaps {
  box-shadow:
    0 0 0 2px rgba(13, 148, 136, 0.26),
    0 10px 32px rgba(13, 148, 136, 0.07);
  border-color: rgba(13, 148, 136, 0.3) !important;
}

.card.panel.tb-wf-demo-spotlight-shifts {
  box-shadow:
    0 0 0 2px rgba(13, 148, 136, 0.28),
    0 12px 40px rgba(13, 148, 136, 0.08);
  border-color: rgba(13, 148, 136, 0.32) !important;
}

/* Demo tour — Compliance / governance (step 6) */
.tb-hero-card.tb-cmp-demo-spotlight-score,
.tb-hero-card.tb-cmp-demo-spotlight-governance {
  box-shadow:
    0 0 0 2px rgba(13, 148, 136, 0.28),
    0 12px 36px rgba(13, 148, 136, 0.08);
  border-color: rgba(13, 148, 136, 0.32);
}

.card.panel.tb-cmp-demo-spotlight-governance {
  box-shadow:
    0 0 0 2px rgba(13, 148, 136, 0.26),
    0 10px 32px rgba(13, 148, 136, 0.07);
  border-color: rgba(13, 148, 136, 0.3) !important;
}

.notice.tb-cmp-demo-spotlight-score,
.card.panel.tb-cmp-demo-spotlight-score {
  box-shadow:
    0 0 0 2px rgba(13, 148, 136, 0.26),
    0 10px 32px rgba(13, 148, 136, 0.07);
  border-color: rgba(13, 148, 136, 0.3) !important;
}

div.tb-cmp-demo-spotlight-score > aside.notice {
  border-radius: 10px;
  box-shadow:
    0 0 0 2px rgba(13, 148, 136, 0.26),
    0 8px 24px rgba(13, 148, 136, 0.07);
  border-color: rgba(13, 148, 136, 0.32) !important;
}

/* —— Premium SaaS layout (dashboard) —— */
/* Legacy hero KPI grid — superseded by .tb-dash-cc-kpis--v2 */
.tb-dash-cc-kpis.tb-dash-cc-kpis--hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  flex-direction: unset;
  flex-wrap: unset;
  overflow-x: visible;
  scroll-snap-type: none;
  padding-bottom: 0;
}

@media (min-width: 860px) {
  .tb-dash-cc-kpis.tb-dash-cc-kpis--hero {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
}

.tb-dash-cc-kpis-more {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.tb-dash-cc-kpi--compact {
  min-height: 0;
  padding: 12px 14px;
  flex: 1 1 160px;
  max-width: 220px;
}

.tb-dash-cc-kpi--neutral-warm {
  border-color: rgba(37, 99, 235, 0.22);
  background: linear-gradient(180deg, #eff6ff 0%, #fff 65%);
}

.tb-dash-cc-kpis.tb-dash-cc-kpis--hero .tb-dash-cc-kpi__val {
  font-size: 1.45rem;
}

.tb-dash-cc-kpis--v2 .tb-dash-cc-kpi__hint {
  color: #64748b;
}

.tb-dash-cc-kpis.tb-dash-cc-kpis--hero .tb-dash-cc-kpi__hint {
  color: #475569;
}

.tb-dash-cc-saas-grid {
  display: grid;
  gap: 14px;
  margin-bottom: var(--tb-space-4, 16px);
}

@media (min-width: 1024px) {
  .tb-dash-cc-saas-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    align-items: start;
  }
}

.tb-dash-cc-saas-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.tb-dash-cc-saas-rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.tb-dash-cc-stack-gap {
  min-width: 0;
}

.tb-dash-cc-split--tight {
  gap: 14px;
}

@media (max-width: 900px) {
  .tb-dash-cc-split--tight {
    grid-template-columns: 1fr;
  }
}

.tb-dash-cc-herohead--slim {
  margin-bottom: var(--tb-space-4, 16px);
  padding-bottom: var(--tb-space-3, 12px);
}

.tb-dash-cc-herohead--slim .tb-dash-cc-herohead__k {
  color: var(--tb-muted, #64748b);
  letter-spacing: 0.1em;
}

.tb-dash-cc-herohead__lead {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--tb-ink-secondary, #334155);
  max-width: 62ch;
}

.tb-dash-cc-action-list__row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  margin: -10px -12px;
  padding: 10px 12px;
  border-radius: 12px;
  outline: none;
}

.tb-dash-cc-action-list__row:hover {
  background: #fff;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.07);
}

.tb-dash-cc-action-list__row:focus-visible {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.45);
}

.tb-dash-cc-action-list__title {
  display: block;
  font-weight: 700;
  color: var(--tb-ink, #0f172a);
}

.tb-dash-cc-sev--high {
  background: #b42318;
  color: #fff;
}

.tb-dash-cc-sev--medium {
  background: #b45309;
  color: #fff;
}

.tb-dash-cc-sev--low {
  background: #166534;
  color: #fff;
}

.tb-dash-cc-pulse-expl {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--tb-ink-secondary, #334155);
}

.tb-dash-cc-progress--band-green .tb-dash-cc-progress__fill {
  background: linear-gradient(90deg, #15803d, #22c55e);
}

.tb-dash-cc-progress--band-amber .tb-dash-cc-progress__fill {
  background: linear-gradient(90deg, #b45309, #f59e0b);
}

.tb-dash-cc-progress--band-red .tb-dash-cc-progress__fill {
  background: linear-gradient(90deg, #991b1b, #ef4444);
}

.tb-dash-cc-alerts__i--info {
  border-color: rgba(37, 99, 235, 0.28);
  background: #eff6ff;
}

.tb-dash-cc-qs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tb-dash-cc-qs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px solid var(--tb-line, #e2e8f0);
  background: #f8fafc;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.tb-dash-cc-qs:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.tb-dash-cc-qs__val {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--tb-ink, #0f172a);
}

.tb-dash-cc-qs__lab {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tb-muted, #64748b);
}

.tb-dash-cc-qs--muted {
  pointer-events: none;
  opacity: 0.88;
}

.tb-dash-cc-qs--warn {
  border-color: rgba(217, 119, 6, 0.35);
  background: linear-gradient(180deg, #fffbeb 0%, #fff 70%);
}

.tb-dash-cc-qs--alert {
  border-color: rgba(180, 35, 24, 0.35);
  background: linear-gradient(180deg, #fff5f5 0%, #fff 70%);
}

.tb-dash-cc-shortcuts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tb-dash-cc-shortcuts li {
  border-bottom: 1px solid var(--tb-line, #e2e8f0);
}

.tb-dash-cc-shortcuts li:last-child {
  border-bottom: 0;
}

.tb-dash-cc-shortcuts a,
.tb-dash-cc-shortcuts span {
  display: block;
  padding: 12px 4px;
  font-size: 14px;
  font-weight: 600;
}

.tb-dash-cc-shortcuts a {
  color: var(--tb-ink, #0f172a);
  text-decoration: none;
  border-radius: 8px;
}

.tb-dash-cc-shortcuts a:hover {
  background: rgba(37, 99, 235, 0.06);
  color: #1d4ed8;
}

.tb-dash-cc-saas-rail .tb-dash-cc-spark__bar {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.88), rgba(37, 99, 235, 0.35));
}

.tb-dash-cc-task-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--tb-line, #e2e8f0);
}

.tb-dash-cc-task-list li:last-child {
  border-bottom: 0;
}

body.tb-dash-cc .app-header-titles--vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.tb-workspace-premium .app-header--saas-dash .app-header-inner {
  padding-top: 12px;
  padding-bottom: 12px;
}

body.tb-workspace-premium .app-header--saas-dash .app-header-workspace {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
  margin-right: 12px;
  white-space: nowrap;
  max-width: min(48vw, 320px);
  overflow: hidden;
  text-overflow: ellipsis;
}

body.tb-workspace-premium .app-header--saas-dash .app-header-workspace:hover {
  text-decoration: underline;
}

/* —— Motion: KPI enter, compliance, actions (subtle) —— */
@keyframes tb-dash-kpi-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tb-dash-fade-up {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tb-dash-fill-soft {
  from {
    opacity: 0.35;
    filter: saturate(0.85);
  }

  to {
    opacity: 1;
    filter: none;
  }
}

@keyframes tb-dash-empty-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

body.tb-dash-cc .tb-dash-cc-kpis--v2 > a.tb-dash-cc-kpi--v2 {
  opacity: 0;
  animation: tb-dash-kpi-in 0.44s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.tb-dash-cc .tb-dash-cc-kpis--v2 > a.tb-dash-cc-kpi--v2:nth-child(1) {
  animation-delay: 0.02s;
}

body.tb-dash-cc .tb-dash-cc-kpis--v2 > a.tb-dash-cc-kpi--v2:nth-child(2) {
  animation-delay: 0.05s;
}

body.tb-dash-cc .tb-dash-cc-kpis--v2 > a.tb-dash-cc-kpi--v2:nth-child(3) {
  animation-delay: 0.08s;
}

body.tb-dash-cc .tb-dash-cc-kpis--v2 > a.tb-dash-cc-kpi--v2:nth-child(4) {
  animation-delay: 0.11s;
}

body.tb-dash-cc .tb-dash-cc-kpis--v2 > a.tb-dash-cc-kpi--v2:nth-child(5) {
  animation-delay: 0.14s;
}

body.tb-dash-cc .tb-dash-cc-kpis--v2 > a.tb-dash-cc-kpi--v2:nth-child(6) {
  animation-delay: 0.17s;
}

body.tb-dash-cc .tb-dash-cc-kpis--hero > a.tb-dash-cc-kpi {
  opacity: 0;
  animation: tb-dash-kpi-in 0.44s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.tb-dash-cc .tb-dash-cc-kpis--hero > a.tb-dash-cc-kpi:nth-child(1) {
  animation-delay: 0.02s;
}

body.tb-dash-cc .tb-dash-cc-kpis--hero > a.tb-dash-cc-kpi:nth-child(2) {
  animation-delay: 0.06s;
}

body.tb-dash-cc .tb-dash-cc-kpis--hero > a.tb-dash-cc-kpi:nth-child(3) {
  animation-delay: 0.1s;
}

body.tb-dash-cc .tb-dash-cc-kpis--hero > a.tb-dash-cc-kpi:nth-child(4) {
  animation-delay: 0.14s;
}

body.tb-dash-cc .tb-dash-cc-kpis-more .tb-dash-cc-kpi {
  opacity: 0;
  animation: tb-dash-kpi-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.18s;
}

body.tb-dash-cc .tb-motion-fill-opacity {
  animation: tb-dash-fill-soft 0.55s ease-out;
}

body.tb-dash-cc .tb-dash-cc-card--pulse .tb-dash-cc-band,
body.tb-dash-cc .tb-dash-cc-card--pulse .tb-dash-cc-score,
body.tb-dash-cc .tb-dash-cc-card--pulse .tb-dash-cc-pulse-expl,
body.tb-dash-cc .tb-dash-cc-card--pulse .tb-dash-cc-mini-signals {
  opacity: 0;
  animation: tb-dash-fade-up 0.5s ease-out 0.12s forwards;
}

body.tb-dash-cc .tb-dash-cc-action-list__row {
  transition:
    transform 0.18s ease,
    background-color 0.2s ease,
    box-shadow 0.22s ease;
}

body.tb-dash-cc .tb-dash-cc-action-list__row:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

body.tb-dash-cc .tb-dash-cc-action-list__row:active {
  transform: translateY(0) scale(0.995);
  transition-duration: 0.08s;
}

body.tb-dash-cc .tb-dash-cc-action-list__row:focus-visible {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.45), 0 4px 16px rgba(15, 23, 42, 0.06);
}

body.tb-dash-cc .tb-dash-cc-sev {
  transition:
    transform 0.16s ease,
    box-shadow 0.2s ease;
}

body.tb-dash-cc .tb-dash-cc-action-list__row:hover .tb-dash-cc-sev {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

body.tb-dash-cc .tb-dash-cc-qs {
  transition:
    transform 0.16s ease,
    border-color 0.18s ease,
    box-shadow 0.22s ease;
}

body.tb-dash-cc .tb-dash-cc-qs:hover {
  transform: translateY(-1px);
}

body.tb-dash-cc .tb-dash-cc-qs:active {
  transform: translateY(0) scale(0.992);
  transition-duration: 0.08s;
}

body.tb-dash-cc .tb-dash-cc-modules .tb-dash-cc-mod--link {
  transition:
    transform 0.18s ease,
    box-shadow 0.22s ease,
    border-color 0.18s ease;
}

body.tb-dash-cc .tb-dash-cc-alerts__i {
  animation: tb-dash-empty-in 0.42s ease-out both;
}

body.tb-dash-cc .tb-dash-cc-alerts__i:nth-child(2) {
  animation-delay: 0.04s;
}

body.tb-dash-cc .tb-dash-cc-alerts__i:nth-child(3) {
  animation-delay: 0.08s;
}

body.tb-dash-cc .tb-dash-cc-empty {
  animation: tb-dash-empty-in 0.45s ease-out both;
}

body.tb-dash-cc .tb-dash-cc-empty--compact {
  animation-duration: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
  body.tb-dash-cc .tb-dash-cc-kpis--v2 > a.tb-dash-cc-kpi--v2,
  body.tb-dash-cc .tb-dash-cc-kpis--hero > a.tb-dash-cc-kpi,
  body.tb-dash-cc .tb-dash-cc-kpis-more .tb-dash-cc-kpi,
  body.tb-dash-cc .tb-dash-cc-card--pulse .tb-dash-cc-band,
  body.tb-dash-cc .tb-dash-cc-card--pulse .tb-dash-cc-score,
  body.tb-dash-cc .tb-dash-cc-card--pulse .tb-dash-cc-pulse-expl,
  body.tb-dash-cc .tb-dash-cc-card--pulse .tb-dash-cc-mini-signals,
  body.tb-dash-cc .tb-dash-cc-alerts__i,
  body.tb-dash-cc .tb-dash-cc-empty {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  body.tb-dash-cc .tb-motion-fill-opacity {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
  }

  body.tb-dash-cc .tb-dash-cc-action-list__row,
  body.tb-dash-cc .tb-dash-cc-sev,
  body.tb-dash-cc .tb-dash-cc-qs,
  body.tb-dash-cc .tb-dash-cc-modules .tb-dash-cc-mod--link {
    transition: none !important;
  }

  body.tb-dash-cc .tb-dash-cc-action-list__row:hover,
  body.tb-dash-cc .tb-dash-cc-action-list__row:active,
  body.tb-dash-cc .tb-dash-cc-qs:hover,
  body.tb-dash-cc .tb-dash-cc-qs:active {
    transform: none !important;
  }
}
