#profile-open[data-signed-in="true"] {
  color: var(--accent);
}
#profile-open .profile-name {
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-dialog {
  width: min(410px, calc(100% - 30px));
  border-color: var(--line);
  background: var(--panel);
}
.profile-body {
  display: grid;
  gap: 13px;
  padding: 16px;
  min-width: 0;
}
.profile-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.profile-error {
  color: var(--text);
  font-size: 12px;
  line-height: 1.4;
}
.profile-error:empty {
  display: none;
}
.profile-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 4px;
}
.profile-choice,
.profile-secondary,
.profile-primary {
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 650;
}
.profile-choice {
  color: var(--muted);
}
.profile-choice[aria-pressed="true"],
.profile-choice:hover {
  background: color-mix(in srgb, var(--accent), var(--panel) 84%);
  color: var(--accent);
}
.profile-primary {
  color: var(--accent-ink);
  background: var(--accent-strong);
  text-align: center;
}
.profile-primary:hover {
  background: var(--accent);
}
.profile-form,
.profile-field,
.profile-identity-copy {
  display: grid;
  gap: 9px;
  min-width: 0;
}
.profile-field {
  color: var(--muted);
  font-size: 12px;
  gap: 5px;
}
.profile-field input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-2);
  color: var(--text);
}
.profile-field small {
  font-size: 11px;
}
.profile-identity {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.profile-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 39px;
  height: 39px;
  border-radius: 10px;
  background: var(--accent-strong);
  color: var(--accent-ink);
  font-size: 21px;
  font-weight: 700;
}
.profile-identity-copy {
  gap: 2px;
  overflow-wrap: anywhere;
}
.profile-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.profile-secondary {
  border: 1px solid var(--line);
  color: var(--accent);
}
.profile-secondary:hover {
  background: color-mix(in srgb, var(--accent), var(--panel) 85%);
}
