.is-settings .app__content { padding: 0; background: var(--bg); }

.settings {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 10px 16px calc(120px + env(safe-area-inset-bottom, 0px));
}

.settings__top { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 2px; }

.settings__round {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--field-bg);
  cursor: pointer;
  transition: opacity 0.13s ease;
}

.settings__round:active { opacity: 0.5; }
.settings__round svg { width: 20px; height: 20px; }

.settings__edit {
  border: none;
  padding: 8px 15px;
  border-radius: 18px;
  font-size: 16px;
  color: var(--accent);
  background: var(--field-bg);
  cursor: pointer;
  transition: opacity 0.13s ease;
}

.settings__edit:active { opacity: 0.5; }

.settings__profile { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 10px 0 24px; text-align: center; }

.settings__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(150deg, #56b0ff, #1d6ff2);
  background-size: cover;
  background-position: center;
  box-shadow: 0 6px 18px -6px rgba(29, 111, 242, 0.6);
}

.settings__name { display: flex; align-items: center; gap: 8px; font-size: 25px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }

.settings__devbadge {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(150deg, #8e8e93, #636366);
  padding: 2px 7px;
  border-radius: 7px;
}

.settings__star { color: var(--accent); flex-shrink: 0; }
.settings__mark { width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; }
.settings__sub { font-size: 14.5px; color: var(--text-dim); }

.profile {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 10px 16px calc(120px + env(safe-area-inset-bottom, 0px));
}

.profile__bar { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 2px; }

.profile__round {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--field-bg);
  transition: opacity 0.13s ease;
}

.profile__round:active { opacity: 0.5; }
.profile__round svg { width: 20px; height: 20px; }

.profile__edit {
  padding: 8px 15px;
  border-radius: 18px;
  font-size: 16px;
  color: var(--accent);
  background: var(--field-bg);
  text-decoration: none;
  transition: opacity 0.13s ease;
}

.profile__edit:active { opacity: 0.5; }

.profile__head { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0 22px; text-align: center; }

.profile__avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(150deg, #56b0ff, #1d6ff2);
  background-size: cover;
  background-position: center;
  box-shadow: 0 6px 18px -6px rgba(29, 111, 242, 0.6);
}

.profile__name { display: flex; align-items: center; gap: 8px; font-size: 27px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.profile__mark { width: 24px; height: 24px; border-radius: 6px; flex-shrink: 0; }
.profile__status { font-size: 15px; color: var(--text-dim); }
.profile__status.is-online { color: var(--accent); }

.pgroup { margin: 0 0 7px 16px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.02em; color: var(--text-dim); }

.prow {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  min-height: 44px;
}

.prow + .prow::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 0;
  top: 0;
  height: 0.5px;
  background: var(--separator);
}

.prow__body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.prow__value { font-size: 17px; color: var(--text); word-break: break-word; }
.prow__value--accent { color: var(--accent); }
.prow__label { font-size: 13px; color: var(--text-dim); }
.prow--text { font-size: 16px; color: var(--text); line-height: 1.4; }

.prow__qr {
  border: none;
  background: none;
  color: var(--accent);
  padding: 4px;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.13s ease;
}

.prow__qr:active { opacity: 0.5; }
.prow__qr svg { width: 24px; height: 24px; }

.prow--action { text-decoration: none; transition: opacity 0.13s ease; }
.prow--action:active { opacity: 0.5; }
.prow__acticon { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }

.uacts {
  display: flex;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  margin: 6px 0 22px;
}

.uaction {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 13px 4px 11px;
  background: none;
  border: none;
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.14s ease;
}

.uaction:active { background-color: rgba(0, 122, 255, 0.09); }

.uaction + .uaction::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 0.5px;
  background: var(--separator);
}

.uaction__ic { position: relative; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; }
.uaction__ic svg { width: 25px; height: 25px; }
.uaction__lbl { font-size: 12px; color: var(--accent); }

.uaction__slash {
  position: absolute;
  left: -3px;
  right: -3px;
  top: 50%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(-45deg);
  display: none;
}
.uaction.is-muted .uaction__slash { display: block; }

.prow--tap { width: 100%; background: none; border: none; cursor: pointer; font-family: inherit; text-align: left; transition: background-color 0.14s ease; }
.prow--tap:active { background-color: rgba(60, 60, 67, 0.08); }
.prow--danger { gap: 12px; }
.prow__value--danger { color: var(--danger); font-size: 17px; }
.prow__acticon--danger { width: 22px; height: 22px; color: var(--danger); flex-shrink: 0; }

.sheet { position: fixed; inset: 0; height: 100dvh; z-index: 300; display: flex; flex-direction: column; justify-content: flex-end; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); animation: fadein 0.18s ease; }
.sheet__wrap { position: relative; padding: 0 8px calc(8px + env(safe-area-inset-bottom, 0px)); animation: sheetup 0.24s cubic-bezier(0.2, 0.9, 0.3, 1); }
.sheet__panel { background: var(--surface); border-radius: 14px; overflow: hidden; margin-bottom: 8px; }
.sheet__title { text-align: center; font-size: 13px; color: var(--text-dim); padding: 14px 16px 10px; }

.sheet__opt {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  background: none;
  border: none;
  border-top: 0.5px solid var(--separator);
  color: var(--accent);
  font-size: 18px;
  font-family: inherit;
  cursor: pointer;
}
.sheet__opt:active { background-color: rgba(0, 122, 255, 0.09); }
.sheet__opt svg { width: 22px; height: 22px; }

.sheet__cancel {
  width: 100%;
  padding: 16px;
  background: var(--surface);
  border: none;
  border-radius: 14px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.sheet__cancel:active { opacity: 0.6; }

@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetup { from { transform: translateY(100%); } to { transform: translateY(0); } }
