body.is-edit { background: var(--bg); }

.edit {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 8px 16px calc(40px + env(safe-area-inset-bottom, 0px));
}

.edit .scard { margin-bottom: 8px; }

.edit__bar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0 14px;
}

.edit__bartitle {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.edit__btn {
  padding: 9px 16px;
  border-radius: 20px;
  background: var(--field-bg);
  color: var(--accent);
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.13s ease;
}

.edit__btn:active { opacity: 0.5; }
.edit__btn--done { font-weight: 600; }
.edit__btn.is-busy { opacity: 0.5; pointer-events: none; }
.edit__btn--ghost { background: none; pointer-events: none; opacity: 0; }

.edit__photo { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 6px 0 22px; }

.edit__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: rgba(0, 122, 255, 0.14);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: pointer;
}

.edit__avatar.has-photo svg { display: none; }
.edit__avatar svg { width: 40px; height: 40px; }

.edit__photolink { background: none; border: none; color: var(--accent); font-size: 16px; cursor: pointer; transition: opacity 0.13s ease; }
.edit__photolink:active { opacity: 0.5; }
.edit__photoremove { background: none; border: none; color: var(--danger); font-size: 15px; cursor: pointer; }

.egroup { margin: 16px 16px 7px; font-size: 13px; color: var(--text-dim); }
.egroup-status { margin: 7px 16px 22px; min-height: 16px; }

.erow { position: relative; }

.erow + .erow::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 0;
  top: 0;
  height: 0.5px;
  background: var(--separator);
}

.erow--at { display: flex; align-items: center; }
.erow__at { padding-left: 16px; color: var(--text-faint); font-size: 17px; }

.einput {
  width: 100%;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 17px;
  color: var(--text);
  background: none;
  border: none;
  outline: none;
}

.einput::placeholder { color: var(--text-faint); }
.einput--at { padding-left: 4px; }

.ehint { margin: 7px 16px 22px; font-size: 13px; color: var(--text-dim); line-height: 1.35; }

.edate {
  margin-left: auto;
  border: none;
  background: none;
  outline: none;
  font-family: inherit;
  font-size: 16px;
  color: var(--text-dim);
  text-align: right;
}

.devhero { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 12px 20px 24px; text-align: center; }

.devhero__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 26px;
  color: var(--accent);
  background: rgba(0, 122, 255, 0.12);
}

.devhero__icon svg { width: 48px; height: 48px; }
.devhero__text { margin: 0; font-size: 14px; color: var(--text-dim); line-height: 1.4; }

.dev {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  color: var(--text);
  font-family: inherit;
}

.dev--btn { cursor: pointer; transition: background-color 0.14s ease; }
.dev--btn:active { background-color: rgba(60, 60, 67, 0.09); }
.dev--btn[disabled] { cursor: default; opacity: 0.55; }

.dev + .dev::before,
.dev--btn + .dev--btn::before {
  content: "";
  position: absolute;
  left: 58px;
  right: 0;
  top: 0;
  height: 0.5px;
  background: var(--separator);
}

.dev__icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.dev__icon svg { width: 19px; height: 19px; }
.dev__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dev__title { font-size: 16px; font-weight: 600; }
.dev__app { font-size: 14px; color: var(--text); }
.dev__meta { font-size: 13px; color: var(--text-dim); }

@media (prefers-color-scheme: dark) {
  .dev--btn:active { background-color: rgba(120, 120, 128, 0.18); }
}
