.sw-crumb-sep {
  color: var(--sw-text-faint);
  margin: 0 2px;
}

.sw-streak__flame {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sw-role-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 10px 0 8px;
  background: #f3f1fe;
  border: 1px solid #ddd6fe;
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
}
.sw-role-switch__ic {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #fff;
  color: var(--sw-violet);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sw-role-switch__ic svg {
  width: 13px;
  height: 13px;
}
.sw-role-switch__rt {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-align: left;
}
.sw-role-switch__kicker {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--sw-violet);
}
.sw-role-switch__role {
  font-size: 13px;
  font-weight: 600;
  color: var(--sw-text);
  margin-top: 3px;
}
.sw-role-switch__chev {
  width: 15px;
  height: 15px;
  color: var(--sw-violet);
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.sw-role-switch-wrap {
  position: relative;
  flex-shrink: 0;
}
.sw-role-switch-wrap .sw-role-switch {
  width: 100%;
}
.sw-role-switch-wrap.is-open .sw-role-switch__chev {
  transform: rotate(180deg);
}
.sw-role-switch-wrap.is-open .sw-role-switch {
  border-color: var(--sw-violet);
  box-shadow: 0 0 0 3px rgba(110, 93, 248, 0.15);
}
.sw-role-switch__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--sw-border);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(15, 16, 32, 0.16);
  padding: 6px;
  z-index: 1000;
  max-height: 340px;
  overflow: auto;
  display: none;
}
.sw-role-switch-wrap.is-open .sw-role-switch__menu {
  display: block;
}
.sw-role-switch__menu-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--sw-text-faint);
  padding: 8px 10px 6px;
  margin: 0;
}
.sw-role-switch__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  color: var(--sw-text);
  cursor: pointer;
  text-align: left;
}
.sw-role-switch__opt:hover {
  background: #f5f4fe;
}
.sw-role-switch__opt.is-selected {
  background: #f5f4fe;
}
.sw-role-switch__opt.is-selected .sw-role-switch__opt-name {
  color: var(--sw-violet);
  font-weight: 600;
}
.sw-role-switch__check {
  width: 16px;
  height: 16px;
  color: var(--sw-violet);
  flex-shrink: 0;
  opacity: 0;
}
.sw-role-switch__opt.is-selected .sw-role-switch__check {
  opacity: 1;
}

.sw-nav-item--parent .sw-nav-item__chev {
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: var(--sw-text-muted);
  transition: transform 0.18s ease;
}
.sw-nav-item--parent[aria-expanded="true"] .sw-nav-item__chev {
  transform: rotate(180deg);
}

.sw-nav-tree:has(.sw-nav-sub.show) .sw-nav-item__chev {
  transform: rotate(180deg);
}
.sw-nav-sub {
  display: flex;
  flex-direction: column;
}
.sw-nav-item--child {
  padding-left: 48px;
  font-size: 14px;
}

.sw-nav-item__badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.sw-nav-item__badge:empty {
  display: none;
}

.sw-dash-head {
  gap: 16px;
  margin-bottom: 20px;
}
.sw-dash-crumb {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}
.sw-dash-head__title {
  font-size: 22px;
  line-height: 1.3;
}
.sw-dash-head__sub {
  font-size: 14px;
  margin: 6px 0 0;
}
.sw-dash-range {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--sw-border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--sw-text);
  cursor: pointer;
  flex-shrink: 0;
}
.sw-dash-range svg {
  width: 15px;
  height: 15px;
  color: var(--sw-text-muted);
  transition: transform 0.18s ease;
}

.sw-dash-range-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}
.sw-dash-range-wrap .sw-dash-range {
  width: 100%;
}
.sw-dash-range-wrap.is-open .sw-dash-range {
  border-color: var(--sw-violet);
  box-shadow: 0 0 0 3px rgba(110, 93, 248, 0.15);
}
.sw-dash-range-wrap.is-open .sw-dash-range svg {
  transform: rotate(180deg);
}
.sw-dash-range__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--sw-border);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(15, 16, 32, 0.16);
  padding: 6px;
  z-index: 1000;
  display: none;
}
.sw-dash-range-wrap.is-open .sw-dash-range__menu {
  display: block;
}
.sw-dash-range__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  color: var(--sw-text);
  cursor: pointer;
  text-align: left;
}
.sw-dash-range__opt:hover {
  background: #f5f4fe;
}
.sw-dash-range__opt.is-selected {
  background: #f5f4fe;
  color: var(--sw-violet);
  font-weight: 600;
}
.sw-dash-range__check {
  width: 16px;
  height: 16px;
  color: var(--sw-violet);
  flex-shrink: 0;
  opacity: 0;
}
.sw-dash-range__opt.is-selected .sw-dash-range__check {
  opacity: 1;
}

.sw-dash-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px;
  margin-bottom: 16px;
  background: #f3f4f6;
  border-radius: 12px;
  color: var(--sw-text-faint);
}
.sw-dash-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: 0;
  font-size: 14px;
  color: var(--sw-text);
}

.sw-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.sw-kpi {
  background: #fff;
  border: 1px solid var(--sw-border);
  border-radius: 16px;
  padding: 16px 18px 18px;
  box-shadow: 0 1px 2px rgba(15, 16, 32, 0.04);
}

.sw-kpi__ic {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}
.sw-kpi__ic svg {
  width: 20px;
  height: 20px;
}
.sw-kpi__ic--violet {
  background: #f1eefe;
  color: var(--sw-violet);
}
.sw-kpi__flag {
  font-size: 12px;
  font-weight: 600;
  color: #dc2626;
  background: #fee2e2;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.sw-kpi__value {
  font-size: 28px;
  line-height: 1.1;
  margin: 14px 0 0;
}
.sw-kpi__label {
  font-size: 14px;
  margin: 4px 0 0;
}
.sw-kpi__trend {
  gap: 8px;
  margin-top: 14px;
}
.sw-kpi__delta {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.sw-kpi__delta--up {
  color: #16a34a;
  background: #dcfce7;
}
.sw-kpi__delta--down {
  color: #dc2626;
  background: #fee2e2;
}
.sw-kpi__delta-cap {
  font-size: 13px;
  white-space: nowrap;
}

.sw-dash-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}
.sw-dash-grid--7-4 {
  grid-template-columns: minmax(0, 700fr) minmax(0, 420fr);
}

.sw-card__head {
  margin-bottom: 12px;
}
.sw-card__head--stack {
  gap: 3px;
}
.sw-card__head-l {
  gap: 8px;
}
.sw-card__title {
  font-size: 17px;
}
.sw-card__sub {
  font-size: 13px;
}
.sw-card__link {
  font-size: 14px;
  color: var(--sw-violet);
}
.sw-card__link:hover {
  color: var(--sw-violet-600);
}

.sw-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 9px;
}

.badge.sw-pill,
.badge.sw-status {
  line-height: var(--bs-body-line-height);
}
.sw-pill--count {
  background: #fee2e2;
  color: #dc2626;
  min-width: 24px;
}
.sw-pill--tier {
  background: #f1eefe;
  color: var(--sw-violet);
  font-size: 11px;
  letter-spacing: 0.4px;
}
.sw-pill--you {
  background: #f1eefe;
  color: var(--sw-violet);
  font-size: 11px;
  padding: 2px 8px;
}

.sw-alert {
  gap: 12px;
  padding: 12px 0;
}
.sw-alert + .sw-alert {
  border-top: 1px solid #f3f4f6;
}
.sw-alert__dot {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  flex-shrink: 0;
}
.sw-alert__dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
}
.sw-alert__dot--critical {
  background: #fde8e8;
}
.sw-alert__dot--critical::before {
  background: #dc2626;
}
.sw-alert__dot--warning {
  background: #fbeccd;
}
.sw-alert__dot--warning::before {
  background: #d97706;
}
.sw-alert__dot--success {
  background: #d6f3e5;
}
.sw-alert__dot--success::before {
  background: #16a34a;
}
.sw-alert__tc {
  flex: 1;
  min-width: 0;
}
.sw-alert__title {
  font-size: 14px;
}
.sw-alert__meta {
  font-size: 13px;
  margin: 2px 0 0;
}
.sw-alert__action {
  font-size: 14px;
  color: var(--sw-violet);
  text-decoration: none;
}
.sw-alert__action:hover {
  color: var(--sw-violet-600);
}

.sw-stream {
  gap: 12px;
  padding: 14px 0;
}
.sw-stream + .sw-stream {
  border-top: 1px solid #f3f4f6;
}
.sw-stream__ic {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #f1eefe;
  color: var(--sw-violet);
}
.sw-stream__ic svg {
  width: 17px;
  height: 17px;
}
.sw-stream__tc {
  flex: 1;
  min-width: 0;
}
.sw-stream__title {
  font-size: 14px;
}
.sw-stream__meta {
  font-size: 13px;
  margin: 2px 0 0;
}

.sw-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  flex-shrink: 0;
}
.sw-status--success {
  background: #dcfce7;
  color: #16a34a;
}
.sw-status--pending {
  background: #fef3c7;
  color: #b45309;
}
.sw-status--failed {
  background: #fee2e2;
  color: #dc2626;
}

.sw-act {
  gap: 12px;
  padding: 12px 0;
}
.sw-act + .sw-act {
  border-top: 1px solid #f3f4f6;
}
.sw-act__av {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #f1eefe;
  color: var(--sw-violet);
  font-size: 12px;
}
.sw-act__av--system {
  background: #eef2f6;
  color: #64748b;
}
.sw-act__tc {
  flex: 1;
  min-width: 0;
}
.sw-act__line {
  font-size: 14px;
}
.sw-act__line strong {
  font-weight: 600;
  color: var(--sw-text);
}
.sw-act__time {
  font-size: 13px;
  margin: 2px 0 0;
}

.sw-ops__streak {
  gap: 12px;
  margin: 4px 0 18px;
}
.sw-ops__zap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #fdecd2;
  color: #f59e0b;
}
.sw-ops__zap svg {
  width: 24px;
  height: 24px;
}
.sw-ops__streak-title {
  font-size: 15px;
}
.sw-ops__streak-sub {
  font-size: 13px;
  margin: 3px 0 0;
}
.sw-ops__progress {
  margin-bottom: 22px;
}
.sw-ops__progress-row {
  margin-bottom: 10px;
}
.sw-ops__progress-label {
  font-size: 13px;
}
.sw-ops__progress-val {
  font-size: 13px;
}

.sw-ops__track {
  --bs-progress-height: 8px;
  --bs-progress-border-radius: 999px;
  --bs-progress-bg: #ece9f8;
}

.sw-ops__fill {
  --bs-progress-bar-bg: var(--sw-violet);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.25) 0 2px,
    rgba(255, 255, 255, 0) 2px 7px
  );
}
.sw-ops__board-title {
  font-size: 13px;
  margin: 0 0 8px;
}

.sw-lb__row {
  gap: 14px;
  padding: 9px 0;
}
.sw-lb__row + .sw-lb__row {
  border-top: 1px solid #f3f4f6;
}
.sw-lb__rank {
  font-size: 14px;
  color: var(--sw-text-faint);
  width: 10px;
}
.sw-lb__name {
  font-size: 14px;
  color: var(--sw-text);
  flex: 1;
  min-width: 0;
}
.sw-lb__pts {
  font-size: 14px;
}
.sw-lb__row--you .sw-lb__rank,
.sw-lb__row--you .sw-lb__name {
  color: var(--sw-violet);
  font-weight: 600;
}

.sw-app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  margin-bottom: -10px;
  padding: 20px 4px 0px;
  border-top: 1px solid #eef0f3;
}
.sw-app-footer__copy {
  font-size: 13px;
  color: #9ca3af;
}
.sw-app-footer__links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.sw-app-footer__links a {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
}
.sw-app-footer__links a:hover {
  color: var(--sw-violet);
}

/* =========================
  Responsive
========================= */
@media (max-width: 1199.98px) {
  .sw-dash-grid--7-4 {
    grid-template-columns: 1fr;
  }
  .sw-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .sw-dash-head {
    flex-direction: column;
  }

  .sw-kpi__trend {
    gap: 6px;
  }
  .sw-kpi__delta-cap {
    font-size: 12px;
  }
  .sw-app-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  .sw-app-footer__links {
    gap: 18px;
  }
}
