/* 通讯录：顶栏灰；搜索+列表全白；分区小标题；右侧索引 */

.view--contacts .view__body--stack {
  background: var(--bar-bg);
}

.view--contacts .view__scroll {
  background: var(--bg-plain);
}

.view--contacts .navbar {
  background: var(--bar-bg);
  box-shadow: none;
}

.contacts-list {
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--bg-plain);
}

.view--contacts .cell--contact {
  --row-icon: 36px;
  position: relative;
  min-height: 56px;
  padding: 10px 0 10px 16px;
  gap: 12px;
  align-items: stretch;
  background: var(--bg-plain);
}

.view--contacts .cell--shortcut {
  --row-icon: 40px;
  min-height: 56px;
}

.view--contacts .cell--contact:active {
  background: var(--fill);
}

.view--contacts .cell--contact .avatar {
  --size: var(--row-icon);
  align-self: center;
  border-radius: 4px;
}

.view--contacts .cell__main {
  justify-content: center;
  padding-right: 16px;
  gap: 0;
  box-shadow: none;
}

.view--contacts .cell--contact .cell__title {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.35;
}

.view--contacts .cell--contact::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: calc(16px + var(--row-icon) + 12px);
  height: 1px;
  background: var(--separator);
  transform: scaleY(0.5);
  transform-origin: 0 100%;
  pointer-events: none;
}

.view--contacts li:last-child .cell--contact::after {
  display: none;
}

.view--contacts li[hidden] {
  display: none !important;
}

/* 快捷入口色块图标（图标占比加大） */
.contact-icon {
  width: 40px;
  height: 40px;
  flex: none;
  align-self: center;
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: var(--on-accent);
}

.contact-icon .icon {
  width: 28px;
  height: 28px;
  fill: currentColor;
  stroke: none;
}

.contact-icon--new {
  background: var(--contact-new);
}

.contact-icon--group {
  background: var(--contact-group);
}

.contact-icon--assist {
  background: var(--contact-assist);
}

/* 分区小标题（字母 / 我的助手）— 白底 */
.contacts-section {
  padding: 6px 16px 4px;
  background: var(--bg-plain);
  list-style: none;
}

.contacts-section__letter {
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: var(--text-2);
}

/* 右侧 A–Z 索引 */
.view--contacts .contacts-index {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 2px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 4px 0;
  pointer-events: auto;
}

.contacts-index__key {
  min-width: 16px;
  padding: 1px 0;
  border: 0;
  background: transparent;
  color: var(--contact-index);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
}

.contacts-index__key:active {
  color: var(--text);
}

.contacts-index[hidden] {
  display: none !important;
}
