.nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(44 * var(--px));
  padding: 0 calc(12 * var(--px));
}

.nav__back {
  position: absolute;
  left: calc(8 * var(--px));
  top: 50%;
  display: grid;
  place-items: center;
  width: calc(30 * var(--px));
  height: calc(38 * var(--px));
  transform: translateY(-50%);
  border-radius: calc(8 * var(--px));
  transition: background-color var(--dur-fast) var(--ease-out);
}

.nav__back:active {
  background: rgba(0, 0, 0, 0.05);
}

/* 视觉尺寸保持 30×38，用透明伪元素把可点击区域扩到 44×44 */
.nav__back::before {
  content: "";
  position: absolute;
  inset: calc(-3 * var(--px)) calc(-7 * var(--px));
}

.nav__back svg {
  width: calc(24 * var(--px));
  height: calc(24 * var(--px));
  fill: none;
  stroke: var(--text);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav__title {
  margin: 0;
  color: var(--text);
  font-size: calc(16 * var(--px));
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* 右上角「编辑 / 完成」，与返回键左右对称 */
.nav__edit {
  position: absolute;
  right: calc(8 * var(--px));
  top: 50%;
  height: calc(30 * var(--px));
  padding: 0 calc(8 * var(--px));
  transform: translateY(-50%);
  border-radius: calc(8 * var(--px));
  color: var(--accent);
  font-size: calc(14 * var(--px));
  font-weight: 500;
  line-height: 1;
  transition: background-color var(--dur-fast) var(--ease-out);
}

/* 可点击区域扩到 44 高，视觉尺寸不变 */
.nav__edit::before {
  content: "";
  position: absolute;
  inset: calc(-7 * var(--px)) 0;
}

.nav__edit:active {
  background: var(--tag-bg);
}
