.overlay-compacting {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  color: var(--island-text);
  cursor: pointer;
}

.overlay-compacting__session {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 12px 20px 8px;
}

.overlay-compacting__avatar {
  display: flex;
  width: 30px;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
}

.overlay-compacting__copy {
  min-width: 0;
  flex: 1;
}

.overlay-compacting__row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.overlay-compacting__title {
  min-width: 0;
  overflow: hidden;
  color: var(--island-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overlay-compacting__badge {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--island-card-hover);
  color: var(--island-text-secondary);
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1.3;
  padding: 2px 7px;
}

.overlay-compacting__badge--source {
  background: rgba(16, 185, 129, 0.16);
  color: #00d184;
}

.overlay-compacting__duration {
  flex: 0 0 auto;
  color: var(--island-text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.overlay-compacting__close {
  display: flex;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  border: 0;
  border-radius: 5px;
  background: var(--island-subtle, rgba(255, 255, 255, 0.05));
  color: var(--island-text-muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.overlay-compacting__close:hover {
  background: var(--island-button-hover);
  color: var(--island-text);
}

.overlay-compacting__prompt {
  display: flex;
  min-width: 0;
  gap: 2px;
  margin-top: 5px;
  overflow: hidden;
  color: var(--island-text-secondary);
  font-size: 11px;
  line-height: 1.45;
}

.overlay-compacting__prompt span:first-child {
  flex: 0 0 auto;
  color: var(--island-text-muted);
  font-weight: 600;
}

.overlay-compacting__prompt span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overlay-compacting__body {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 18px 14px;
  border: 1px solid color-mix(in srgb, #a855f7 42%, var(--island-border));
  border-radius: 9px;
  background:
    linear-gradient(90deg, rgba(168, 85, 247, 0.14), rgba(168, 85, 247, 0.04)),
    color-mix(in srgb, var(--island-card) 86%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 14px 16px;
}

.overlay-compacting__icon {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  font-size: 14px;
  line-height: 1;
}

.overlay-compacting__text {
  min-width: 0;
  flex: 1;
  color: #c084fc;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.overlay-compacting__pulse {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #c084fc;
  box-shadow: 0 0 0 0 rgba(192, 132, 252, 0.36);
  animation: overlay-compacting-pulse 1.2s ease-out infinite;
}

.overlay-compacting__sessions {
  align-self: center;
  margin: 0 0 14px;
  border: 0;
  background: transparent;
  color: var(--island-text-muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
}

.overlay-compacting__sessions:hover {
  color: var(--island-text);
}

@keyframes overlay-compacting-pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(192, 132, 252, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(192, 132, 252, 0);
  }
}
