.account-panel {
  display: grid;
  gap: var(--space-24);
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 22px;
}

.account-launch {
  flex: 0 0 auto;
  min-height: 38px;
  white-space: nowrap;
}

.account-boot-status {
  margin: var(--space-24);
  color: var(--muted);
}

.account-launch[data-state=conflict],
.account-launch[data-state=review],
.account-launch[data-state=paused] {
  color: var(--warn);
}

.first-run-top .account-launch {
  margin-inline-start: auto;
}

.account-current-title {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.account-sources {
  display: grid;
  gap: var(--space-12);
}

.account-options summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: var(--space-8);
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
}

.account-options summary::before {
  content: '›';
  transition: transform var(--motion-fast) var(--ease-out);
}

.account-options[open] summary::before {
  transform: rotate(90deg);
}

#project-options[data-cloud-issue=true]::after {
  content: '!';
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--warn);
  font-size: 11px;
  line-height: 1;
}

@media (max-width: 700px) {
  .topbar .top-actions .account-launch {
    min-height: 44px;
    padding-inline: var(--space-12);
  }
}

.account-panel h3,
.account-panel p {
  margin: 0;
}

.account-panel h3 {
  min-width: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  overflow-wrap: anywhere;
}

.account-panel [hidden] {
  display: none;
}

.account-section,
.account-auth-methods {
  display: grid;
  gap: var(--space-12);
  min-width: 0;
}

.account-auth-methods {
  gap: var(--space-16);
}

.account-caption {
  display: block;
  margin-block-end: var(--space-4);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.account-identity strong,
.account-copy,
.account-note,
.account-feedback,
.account-save-status {
  min-width: 0;
  overflow-wrap: anywhere;
}

.account-identity strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
}

.account-note,
.account-feedback,
.account-save-status {
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

.account-panel .account-feedback-error {
  color: var(--danger);
}

.account-save-status {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.account-panel .account-action {
  min-width: 0;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border-color: var(--control-border);
  font-size: 13px;
  line-height: 20px;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}

.account-panel .account-action.secondary {
  background: var(--surface);
}

.account-panel .account-action:hover:not(:disabled):not(.primary) {
  background: var(--hover);
}

.account-auth-methods > .account-action {
  justify-self: start;
}

.account-actions,
.account-support {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-8);
  min-width: 0;
}

.account-email-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--space-8) var(--space-12);
  min-width: 0;
}

.account-email-field {
  display: grid;
  gap: var(--space-8);
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}

.account-email-field input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border-color: var(--edge);
  border-radius: var(--radius-sm);
  background: var(--panel);
  font-size: 16px;
  line-height: 22px;
}

.account-email-note {
  grid-column: 1 / -1;
}

.account-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-8) var(--space-16);
  min-width: 0;
}

.account-section-heading > div {
  min-width: 0;
  flex: 1 1 180px;
}

.account-song-list {
  display: grid;
  gap: var(--space-4);
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.account-song-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-8);
  min-width: 0;
}

.account-history-row {
  min-width: 0;
}

.account-panel .account-song-open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-4);
  width: 100%;
  min-height: 64px;
  padding: var(--space-12);
  text-align: start;
}

.account-song-title,
.account-song-artist,
.account-song-meta,
.account-song-open time {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.account-song-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
}

.account-song-artist {
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

.account-song-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-12);
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}

.account-song-open > time {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}

@media (max-width: 540px) {
  .account-email-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-auth-methods > .account-action,
  .account-email-form > .account-action {
    justify-self: stretch;
    width: 100%;
  }

  .account-support > .account-action {
    flex: 1 1 100%;
  }

  .account-song-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .account-song-row .account-history-action {
    justify-self: start;
    margin-inline-start: var(--space-4);
    margin-block-end: var(--space-8);
  }
}
