/* ---------- 头像 ---------- */

.avatar {
  --size: 48px;
  width: var(--size);
  height: var(--size);
  flex: none;
  border-radius: var(--radius-xs);
  display: grid;
  place-items: center;
  background: hsl(var(--hue, 210) 50% 52%);
  color: var(--on-accent);
  font-size: calc(var(--size) * 0.4);
  font-weight: 500;
  user-select: none;
}

/* ---------- 列表单元格 ---------- */

.cell {
  width: 100%;
  min-height: 72px;
  padding-left: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  -webkit-touch-callout: none;
}

.cell:active {
  background: var(--fill);
}

.cell__main {
  flex: 1;
  min-width: 0;
  align-self: stretch;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  box-shadow: inset 0 -0.5px 0 var(--separator);
}

li:last-child > .cell .cell__main {
  box-shadow: none;
}

.cell__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cell__row > .cell__title,
.cell__row > .cell__sub {
  flex: 1;
}

.cell__title,
.cell__sub {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cell__title {
  font-size: 16px;
  font-weight: 500;
}

.cell__sub {
  color: var(--text-2);
  font-size: 14px;
}

.cell__meta {
  flex: none;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 400;
}

.cell--compact {
  min-height: 64px;
}

.cell--compact .avatar {
  --size: 42px;
}

.badge {
  flex: none;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--badge);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}

/* ---------- 分组列表（设置） ---------- */

.group__title {
  margin: 12px 32px 6px;
  color: var(--text-2);
  font-size: 13px;
}

.group {
  margin: 0 16px 20px;
  border-radius: var(--radius-l);
  background: var(--surface);
  overflow: hidden;
}

.row {
  position: relative;
  min-height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.row + .row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 0;
  height: 1px;
  transform: scaleY(0.5);
  background: var(--separator);
}

.row__label {
  flex: 1;
}

.row__value {
  color: var(--text-2);
  font-size: 15px;
}

.row__chevron {
  width: 16px;
  height: 16px;
  color: var(--text-3);
  stroke-width: 2.4;
}

.row--pad {
  padding-block: 10px;
}

/* ---------- 分段控件 ---------- */

.segmented {
  flex: 1;
  padding: 2px;
  border-radius: 9px;
  background: var(--fill);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 2px;
}

.segmented__item {
  height: 30px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
}

.segmented__item.is-active {
  background: var(--thumb);
  box-shadow: var(--shadow-s);
}
