.settings-page {
  padding-bottom: 3.5rem;
}

.settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.settings-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  padding: 0.3rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.settings-nav::-webkit-scrollbar {
  display: none;
}

.settings-nav__btn {
  flex: 1 1 auto;
  min-width: max-content;
  min-height: 2.35rem;
  padding: 0.45rem 0.95rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.settings-nav__btn:hover {
  color: #f4f4f5;
  background: rgba(255, 255, 255, 0.04);
}

.settings-nav__btn.is-active {
  color: #fff;
  background: rgba(204, 28, 57, 0.88);
  box-shadow: 0 8px 18px rgba(204, 28, 57, 0.22);
}

.settings-panel {
  animation: settings-panel-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.settings-panel--stack {
  display: grid;
  gap: 0.9rem;
}

@keyframes settings-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.settings-card {
  padding: 1.1rem 1.15rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 0.85rem;
}

.settings-card--tg {
  border-color: rgba(56, 189, 248, 0.28);
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.08), transparent 55%),
    rgba(255, 255, 255, 0.03);
}

.settings-card--danger {
  border-color: rgba(204, 28, 57, 0.35);
  background: linear-gradient(180deg, rgba(204, 28, 57, 0.1), rgba(24, 24, 27, 0.35));
}

.settings-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.settings-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: #fafafa;
}

.settings-card--tg .settings-card__title {
  color: #e0f2fe;
}

.settings-card--danger .settings-card__title {
  color: #fecaca;
}

.settings-card__lead {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  max-width: 38rem;
}

.settings-card__value {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  color: #f4f4f5;
}

.settings-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.settings-row__text h3 {
  margin: 0;
  font-size: 0.95rem;
  color: #f4f4f5;
}

.settings-row__text p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.settings-checks {
  display: grid;
  gap: 0.55rem;
}

.settings-2fa__totp-on--inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: end;
  padding-top: 0.15rem;
}

.settings-bar--flush {
  padding-top: 0;
}

.settings-studio {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #121214;
  margin-bottom: 1.1rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.settings-head__eyebrow {
  margin: 0 0 0.35rem;
  font-family: var(--font-eyebrow);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-strong);
}

.settings-studio__banner {
  position: relative;
  height: clamp(150px, 26vw, 220px);
  background:
    linear-gradient(115deg, rgba(204, 28, 57, 0.55), rgba(24, 24, 27, 0.15) 55%),
    radial-gradient(ellipse at 80% 30%, rgba(88, 101, 242, 0.4), transparent 50%),
    #1a1a1e;
  background-size: cover;
  background-position: center;
}

.settings-studio__banner::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(18, 18, 20, 0.08) 25%,
    rgba(18, 18, 20, 0.55) 65%,
    rgba(18, 18, 20, 0.94) 100%
  );
}

.settings-studio__banner.is-empty {
  background-image:
    linear-gradient(115deg, rgba(204, 28, 57, 0.5), rgba(24, 24, 27, 0.25) 55%),
    radial-gradient(ellipse at 80% 30%, rgba(88, 101, 242, 0.35), transparent 50%);
}

.settings-studio__banner-actions {
  position: absolute;
  top: calc(clamp(150px, 26vw, 220px) - 3.1rem);
  right: 1rem;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
  max-width: calc(100% - 2rem);
}

.settings-studio__banner-btn {
  position: static;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(24, 24, 27, 0.72);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.settings-studio__banner-btn--icon {
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
}

.settings-studio__banner-btn--reset {
  background: rgba(24, 24, 27, 0.55);
  border-color: rgba(255, 255, 255, 0.12);
}

.settings-studio__banner-btn:hover {
  background: rgba(204, 28, 57, 0.85);
  border-color: transparent;
}

.settings-studio__banner-btn--reset:hover {
  background: rgba(63, 63, 70, 0.95);
  border-color: rgba(255, 255, 255, 0.2);
}

.settings-studio__banner-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.settings-studio__body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: end;
  padding: 0 1.25rem 1.35rem;
  margin-top: -52px;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.settings-studio__body > * {
  pointer-events: auto;
}

.settings-studio__avatar-wrap {
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 18px;
}

.settings-studio__avatar {
  width: 108px;
  height: 108px;
  border-radius: 18px;
  object-fit: cover;
  border: 3px solid #121214;
  display: block;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  background: #27272a;
}

.settings-studio__avatar--f {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, #9f1239, #cc1c39);
}

.settings-studio__avatar-hint {
  position: absolute;
  inset: auto 0 0;
  padding: 0.35rem;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 0 0 15px 15px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.settings-studio__avatar-wrap:hover .settings-studio__avatar-hint,
.settings-studio__avatar-wrap:focus-visible .settings-studio__avatar-hint {
  opacity: 1;
}

.settings-studio__meta h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: #fafafa;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 2px 12px rgba(0, 0, 0, 0.7);
}

.settings-studio__meta p {
  margin: 0.25rem 0 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.settings-studio__privacy {
  margin: 0.25rem 0 0.55rem !important;
  color: #99f6e4 !important;
  font-size: 0.84rem !important;
}

.settings-studio__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.settings-tag {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.35);
  color: #e4e4e7;
  background: rgba(39, 39, 42, 0.95);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.settings-tag--rose {
  color: #fff;
  border-color: rgba(0, 0, 0, 0.35);
  background: rgba(204, 28, 57, 0.95);
}

.settings-tag--banned {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(127, 29, 29, 0.55);
}

.settings-form {
  display: grid;
  gap: 1rem;
}

.settings-form__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(200px, 0.7fr);
  gap: 1rem;
  align-items: stretch;
}

.settings-field {
  display: grid;
  gap: 0.4rem;
}

.settings-field > span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

.settings-field input,
.settings-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  padding: 0.8rem 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.settings-field textarea {
  resize: vertical;
  min-height: 7rem;
  line-height: 1.5;
}

.settings-field input:focus,
.settings-field textarea:focus {
  border-color: var(--accent-ring);
  background: rgba(204, 28, 57, 0.06);
}

.settings-field em {
  justify-self: start;
  font-style: normal;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.settings-aside-meta {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at top right, rgba(204, 28, 57, 0.12), transparent 55%),
    rgba(255, 255, 255, 0.02);
}

.settings-aside-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.settings-aside-meta strong {
  font-size: 0.95rem;
}

.settings-toast {
  margin: 0;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  font-size: 0.88rem;
}

.settings-toast--ok {
  border: 1px solid rgba(45, 212, 191, 0.35);
  background: rgba(45, 212, 191, 0.1);
  color: #99f6e4;
}

.settings-toast--err {
  border: 1px solid rgba(252, 165, 165, 0.35);
  background: rgba(204, 28, 57, 0.12);
  color: var(--rose-strong);
}

.settings-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  padding-top: 0.35rem;
}

.settings-bar__logout {
  margin-left: auto;
}

.settings-notifs {
  margin-top: 1.5rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 0.65rem;
}

.settings-notifs__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.settings-notifs__lead,
.settings-notifs__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.settings-check {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  cursor: pointer;
}

.settings-check input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--accent);
}

.settings-check.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.settings-tg {
  margin-top: 1.5rem;
  padding: 1.1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.08), transparent 55%),
    rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 0.65rem;
}

.settings-tg__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #e0f2fe;
}

.settings-tg__lead,
.settings-tg__wait {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
  max-width: 38rem;
}

.settings-tg__linked {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.settings-tg__badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(14, 165, 233, 0.18);
  color: #7dd3fc;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.settings-tg__linked strong {
  font-size: 0.95rem;
  color: #f4f4f5;
}

.settings-tg__pending {
  display: grid;
  gap: 0.7rem;
  justify-items: start;
}

.settings-tg__pending > p {
  margin: 0;
  color: #e4e4e7;
  font-size: 0.9rem;
  line-height: 1.45;
}

.settings-2fa {
  margin-top: 1.5rem;
  padding: 1.1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 0.85rem;
}

.settings-2fa__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.settings-2fa__lead,
.settings-2fa__hint,
.settings-2fa__label {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.settings-2fa__prefer {
  display: grid;
  gap: 0.45rem;
}

.settings-2fa__radios {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.settings-2fa__choice {
  min-height: 2rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #e4e4e7;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}

.settings-2fa__choice.is-on {
  border-color: rgba(204, 28, 57, 0.55);
  background: rgba(204, 28, 57, 0.18);
  color: #fff;
}

.settings-2fa__totp h3 {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
}

.settings-2fa__totp-on {
  display: grid;
  gap: 0.65rem;
  justify-items: start;
}

.settings-2fa__setup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.totp-modal {
  position: fixed;
  inset: 0;
  z-index: 430;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.totp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 8, 0.82);
  backdrop-filter: blur(10px);
  animation: delete-modal-fade 0.22s ease both;
}

.totp-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: 1.45rem 1.4rem 1.25rem;
  border-radius: 4px 18px 18px 18px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(56, 189, 248, 0.14), transparent 55%),
    linear-gradient(165deg, #222226, #141416 70%);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 1rem;
  justify-items: stretch;
  overflow: hidden;
  animation: delete-modal-rise 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.totp-modal__mark {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #7dd3fc, #0ea5e9 45%, #0369a1);
}

.totp-modal__eyebrow {
  margin: 0 0 0.35rem;
  font-family: var(--font-eyebrow);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.totp-modal__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  color: #fff;
}

.totp-modal__lead {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.totp-modal__qr-wrap {
  justify-self: center;
  padding: 0.65rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.totp-modal__qr {
  display: block;
  width: 200px;
  height: 200px;
}

.totp-modal__secret {
  display: grid;
  gap: 0.3rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
}

.totp-modal__secret span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.totp-modal__secret code {
  font-size: 0.78rem;
  color: #e0f2fe;
  word-break: break-all;
  line-height: 1.4;
}

.totp-modal__field {
  display: grid;
  gap: 0.35rem;
}

.totp-modal__field > span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.totp-modal__field input {
  width: 100%;
  box-sizing: border-box;
  min-height: 2.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(24, 24, 27, 0.92);
  color: #fff;
  font: inherit;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-align: center;
}

.totp-modal__field input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.55);
}

.totp-modal__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.15rem;
}

.settings-danger {
  margin-top: 1.75rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(204, 28, 57, 0.35);
  background: linear-gradient(180deg, rgba(204, 28, 57, 0.1), rgba(24, 24, 27, 0.35));
}

.settings-danger__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fecaca;
}

.settings-danger__lead,
.settings-danger__hint,
.settings-danger__wait {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
  max-width: 36rem;
}

.settings-danger__hint {
  color: #fda4af;
}

.settings-danger__btn {
  border: 1px solid rgba(204, 28, 57, 0.55);
  background: rgba(204, 28, 57, 0.22);
  color: #fff;
}

.settings-danger__btn:hover:not(:disabled) {
  background: rgba(204, 28, 57, 0.38);
}

.settings-danger__pending {
  display: grid;
  gap: 0.7rem;
  justify-items: start;
}

.settings-danger__pending > p {
  margin: 0;
  color: #e4e4e7;
  font-size: 0.9rem;
  line-height: 1.45;
}

.settings-danger__dev {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: end;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
}

.settings-danger__dev label {
  display: grid;
  gap: 0.25rem;
}

.settings-danger__dev span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.settings-danger__dev input {
  min-width: 8rem;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(24, 24, 27, 0.9);
  color: #fff;
  font: inherit;
}

.delete-modal {
  position: fixed;
  inset: 0;
  z-index: 430;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.delete-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 8, 0.82);
  backdrop-filter: blur(10px);
  animation: delete-modal-fade 0.22s ease both;
}

.delete-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  padding: 1.45rem 1.4rem 1.25rem;
  border-radius: 4px 18px 18px 18px;
  border: 1px solid rgba(204, 28, 57, 0.28);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(204, 28, 57, 0.18), transparent 55%),
    linear-gradient(165deg, #222226, #141416 70%);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 1rem;
  overflow: hidden;
  animation: delete-modal-rise 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.delete-modal__mark {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #f43f5e, #cc1c39 40%, #7f1024);
}

.delete-modal__icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(244, 63, 94, 0.35);
  background: rgba(204, 28, 57, 0.16);
  color: #fda4af;
}

.delete-modal__eyebrow {
  margin: 0 0 0.35rem;
  font-family: var(--font-eyebrow);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fb7185;
}

.delete-modal__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  color: #fff;
}

.delete-modal__lead {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.delete-modal__points {
  margin: 0;
  padding: 0.75rem 0.9rem 0.75rem 1.35rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.28);
  color: #d4d4d8;
  font-size: 0.84rem;
  line-height: 1.55;
  display: grid;
  gap: 0.35rem;
}

.delete-modal__points li::marker {
  color: #fb7185;
}

.delete-modal__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.15rem;
}

.delete-modal__confirm {
  border: 1px solid rgba(244, 63, 94, 0.55);
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.95), rgba(190, 18, 60, 0.95));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(190, 18, 60, 0.28);
}

.delete-modal__confirm:hover:not(:disabled) {
  filter: brightness(1.06);
}

.delete-modal__confirm:disabled {
  opacity: 0.65;
}

@keyframes delete-modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes delete-modal-rise {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Crop modal */
.crop-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.crop-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.crop-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  padding: 1.2rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, #2a2a2e, #18181b);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  animation: rise-in 0.28s ease both;
}

.crop-modal__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.crop-modal__head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.crop-modal__stage {
  margin: 1rem 0 0.85rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0a0b;
  display: grid;
  place-items: center;
  cursor: grab;
  min-height: 180px;
}

.crop-modal__stage:active {
  cursor: grabbing;
}

.crop-modal__canvas {
  display: block;
  width: 100%;
  height: auto;
}

.crop-modal__loading {
  position: absolute;
  color: var(--muted);
}

.crop-modal__zoom {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.crop-modal__zoom input[type='range'] {
  width: 100%;
  accent-color: var(--accent);
}

.crop-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}

@media (max-width: 720px) {
  .settings-head {
    flex-direction: column;
  }

  .settings-nav__btn {
    flex: 0 0 auto;
  }

  .settings-studio__body {
    grid-template-columns: auto 1fr;
  }

  .settings-form__grid {
    grid-template-columns: 1fr;
  }

  .settings-2fa__totp-on--inline {
    grid-template-columns: 1fr;
  }

  .settings-bar__logout {
    margin-left: 0;
    width: 100%;
  }
}
