/* General section rows (figma 501:29983 'Options'): stacked groups, 16px
 * vertical padding each, hairline separator under all but the last child
 * (feature-contributed rows carry their own row chrome and separators; the
 * :last-child rule strips the trailing one wherever the column ends). */

.section {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.section > :last-child {
  border-bottom: none;
}

/* Title + trailing control row (figma 'Setting-Cell': gap 8, pad 16/0). */
.row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--dsw-alias-border-l2);
}

/* Title + full-width body group (figma 'Frame 2117131229': column, gap 8). */
.group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--dsw-alias-border-l2);
}

/* Leading text column (figma 'Frame 2036083120': gap 4, pad-right 48). */
.rowText {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 48px;
}

.title {
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: var(--dsw-alias-label-primary);
}

.desc {
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  color: var(--dsw-alias-label-tertiary);
}

/* Selector pill (figma 'Selector': h36 r18, fill #F5F6F7, pad 0/14, gap 12). */
.selector {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 18px;
  background: var(--dsw-alias-bg-module-platform);
  font: inherit;
  font-size: 14px;
  line-height: 22px;
  color: var(--dsw-alias-label-primary);
  cursor: pointer;
}

.selector:hover:not(:disabled) {
  background: var(--dsw-alias-interactive-bg-hover);
}

.selector:disabled {
  cursor: default;
}

.chevron {
  flex: none;
}

/* Tool Call mode cubes share an 8px gap and wrap to one per row when the
   panel is too narrow. */
.cubeRow {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
}

/* Tool Call mode cube (figma '.Selector Cube' 418w r16, flexed to fit the
 * 800 panel; horizontal inset = outer pad 4 + inner .Menu_cell pad 10,
 * vertical = inner pad 8). */
.modeCube {
  box-sizing: border-box;
  flex: 1 1 276px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 8px 14px;
  border: 1px solid var(--dsw-alias-border-l2);
  border-radius: 16px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.modeCube:hover:not(.selected) {
  background: var(--dsw-alias-interactive-bg-hover);
}

/* Selected cube: #F5F6F7 fill + #ADB2B8 border (static token — the bluish-400
 * step has no alias-layer name). */
.selected {
  background: var(--dsw-alias-bg-module-platform);
  border-color: var(--dsw-static-neutral-bluish-400);
}
