.profile-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-name-row h1 { margin-right: 0; }

.profile-name-edit {
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--green);
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.profile-name-dialog {
  width: min(440px, calc(100% - 28px));
  border: 0;
  border-radius: 18px;
  padding: 0;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 24px 70px #081c1747;
}

.profile-name-dialog::backdrop {
  background: #0717128f;
  backdrop-filter: blur(5px);
}

.profile-name-dialog form { padding: 24px; }
.profile-name-dialog .dialog-title { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; }
.profile-name-dialog .dialog-title h2 { margin: 4px 0 20px; }
.profile-name-dialog .dialog-title button { border: 0; background: transparent; color: var(--muted); font-size: 25px; cursor: pointer; }
.profile-name-dialog label { display: grid; gap: 7px; font-size: 11px; font-weight: 800; }
.profile-name-dialog input { border: 1px solid var(--line-strong); border-radius: 11px; background: var(--panel-2); color: var(--text); padding: 12px 13px; font: inherit; }
.profile-name-hint { color: var(--muted); font-size: 11px; margin: 9px 0; }
.profile-name-buttons { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.profile-name-buttons button { padding: 10px 13px; border-radius: 10px; font-weight: 800; cursor: pointer; }
.profile-name-buttons .primary { border: 0; background: var(--green); color: #fff; }
