.sb-glance-slot {
  padding: 8px 14px 0;
  background: var(--surface, #161b22);
  border-bottom: 1px solid var(--border, rgba(255,255,255,.06));
  flex-shrink: 0;
}

.glance-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 0 8px;
  margin: 0;
  min-height: 0;
  background: transparent;
  border: 0;
  flex-wrap: wrap;
}

.glance-kpis {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.glance-kpi {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.glance-kpi-val {
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  color: var(--text, #e2e8f0);
}

.glance-kpi-lbl,
.glance-next-label {
  font-size: 10px;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted, #94a3b8);
}

.glance-kpi--seated {
  border-color: rgba(16,185,129,.22);
  background: rgba(16,185,129,.08);
}

.glance-kpi--seated .glance-kpi-val {
  color: #6ee7b7;
}

.glance-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.glance-next strong {
  font-size: 13px;
  line-height: 1;
  color: var(--text, #e2e8f0);
}

.glance-next-meta {
  min-width: 0;
  font-size: 11px;
  line-height: 1.25;
  color: var(--text, #e2e8f0);
  opacity: .92;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.glance-next-until {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(16,185,129,.14);
  color: #6ee7b7;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.glance-next--empty .glance-next-meta {
  color: var(--text-muted, #94a3b8);
}

[data-theme="light"] .sb-glance-slot {
  background: var(--surface, #fffdf8);
  border-bottom-color: var(--border, #e6e4df);
}

[data-theme="light"] .glance-kpi {
  background: var(--surface-2, #f7f6f2);
  border-color: var(--border, #e6e4df);
}

[data-theme="light"] .glance-kpi-val,
[data-theme="light"] .glance-next strong,
[data-theme="light"] .glance-next-meta {
  color: var(--text, #101010);
}

[data-theme="light"] .glance-kpi-lbl,
[data-theme="light"] .glance-next-label {
  color: var(--text-subtle, #7c7a76);
}

[data-theme="light"] .glance-kpi--seated {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

[data-theme="light"] .glance-kpi--seated .glance-kpi-val {
  color: #047857;
}

[data-theme="light"] .glance-next {
  background: var(--surface-2, #f7f6f2);
  border-color: var(--border, #e6e4df);
}

[data-theme="light"] .glance-next-until {
  background: #dcfce7;
  color: #047857;
}

@media (max-width: 900px) {
  .glance-bar {
    align-items: flex-start;
  }

  .glance-next {
    width: 100%;
  }
}
