/* Agent-preset chip on the new-session screen, beside the workspace picker.
   Geometry mirrors HeroShell's .workspace so the two read as one row. */

.seat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: min(100%, 240px);
  min-height: 28px;
  padding: 0 8px;
  border: none;
  border-radius: 16px;
  background: transparent;
  color: var(--dsw-alias-label-primary);
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.seat:not(:disabled):hover,
.seat[aria-expanded='true'] {
  background: var(--dsw-alias-interactive-bg-hover);
}

.seat:disabled {
  cursor: default;
  color: var(--dsw-alias-label-quaternary);
}

.seatIcon {
  flex: none;
  color: var(--dsw-alias-label-primary);
}

/* Introduce cue: the icon eases in on an overshoot-free expo curve (duration
   matches INTRO_TEXT_DELAY_MS, so the characters start the moment it lands),
   then the name's characters fade up on a stagger (delays set inline per
   character). All chars occupy their width from the start, so nothing
   reflows mid-run. */
.introIcon {
  animation: seat-icon-in 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes seat-icon-in {
  from {
    opacity: 0;
    transform: scale(0.5);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Wraps the staggered characters into one flex item, so the chip's gap
   applies around the name as a whole rather than between characters. */
.introText {
  display: inline-block;
  white-space: pre;
}

.introChar {
  display: inline-block;
  white-space: pre;
  opacity: 0;
  animation: seat-char-in 0.4s ease-out forwards;
}

@keyframes seat-char-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

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

@media (prefers-reduced-motion: reduce) {
  .introIcon,
  .introChar {
    animation: none;
    opacity: 1;
  }
}

.chevron {
  flex: none;
  color: var(--dsw-alias-label-caption);
}

/* Menu rows carry the name over its description: the id alone never said what
   a preset does, which is why the metadata exists. */
.item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 280px;
}

.itemName {
  font-size: 13px;
  line-height: 20px;
  color: var(--dsw-alias-label-primary);
}

.itemDesc {
  font-size: 12px;
  line-height: 16px;
  color: var(--dsw-alias-label-caption);
  white-space: normal;
}
