/* Tree rows (figma Cell set 14:3080): project 54px two-line, session 34px
   single-line, radius 8, indent step 22px (16px slot + 6px gap). Hover swaps
   are pure CSS: project folder -> chevron + action buttons; session time ->
   ellipsis button. */

.projectRow,
.sessionRow {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  padding: 0 8px;
  cursor: pointer;
  user-select: none;
  color: var(--dsw-alias-label-primary);
}

.projectRow:hover,
.sessionRow:hover {
  background: var(--dsw-alias-interactive-bg-hover);
}

.sessionRow.selected {
  background: var(--dsw-alias-interactive-bg-active);
}

.projectRow {
  height: 54px;
}

.sessionRow {
  height: 34px;
}

.slot {
  flex: none;
  width: 16px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dsw-alias-label-tertiary);
}


.folderActive {
  color: var(--dsw-alias-state-business-primary);
}

/* Project leading slot: folder by default, chevron on row hover. */
.projectRow .chevron { display: none; }
.projectRow:hover .chevron { display: inline-flex; }
.projectRow:hover .folder { display: none; }

.projectText {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  line-height: 20px;
}

.sessionRow .title {
  flex: 1;
}

.meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  line-height: 20px;
  color: var(--dsw-alias-label-tertiary);
}

.time {
  flex: none;
  font-size: 12px;
  line-height: 20px;
  color: var(--dsw-alias-label-tertiary);
}

.dot {
  flex: none;
}

/* Trailing action buttons surface on hover only (figma 27:4668 / 27:4656):
   bare 16px glyphs, gap 12, tertiary grey. */
.rowActions {
  flex: none;
  display: none;
  align-items: center;
  gap: 12px;
}

.projectRow:hover .rowActions,
.sessionRow:hover .rowActions {
  display: inline-flex;
}

.sessionRow:hover .time {
  display: none;
}

.iconButton {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 4px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  color: var(--dsw-alias-label-tertiary);
}

.iconButton:hover {
  color: var(--dsw-alias-label-primary);
}

/* Session expand twist occupies the leading 16px slot; keep a spacer when absent
   so titles align across sibling rows. */
.twist {
  composes: iconButton;
  width: 16px;
  height: 20px;
}

/* "L" connector slot (figma arrow 14:3071): 16x16, glyph right-aligned. */
.cornerSlot {
  flex: none;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--dsw-alias-label-caption);
}

/* Chevrons and tree twists ride the caption grey (#ADB2B8); the folder glyph
   stays one step darker (tertiary, #81858C) per the cell spec. Declared last
   to win over the composed .iconButton color. */
.chevron,
.twist {
  color: var(--dsw-alias-label-caption);
}
