.premarchives-session-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.premarchives-session-trigger svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.premarchives-session-trigger--sonotheque {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--text-secondary-color, #a1a1aa);
  border: 1px solid var(--border-color, rgba(255, 255, 255, .08));
  border-radius: var(--radius-sm, 6px);
}

.premarchives-session-trigger--sonotheque:hover,
.premarchives-session-trigger--sonotheque[aria-expanded="true"] {
  color: var(--text-primary-color, #fafafa);
  border-color: var(--border-color-hover, rgba(255, 255, 255, .16));
  background: rgba(255, 255, 255, .04);
}

.premarchives-session-trigger--sonotheque svg {
  width: 18px;
  height: 18px;
}

.premarchives-account-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: rgba(0, 0, 0, .34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.premarchives-account-backdrop[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

.premarchives-account-panel {
  position: fixed;
  z-index: 2147483001;
  left: 20px;
  bottom: 20px;
  width: min(360px, calc(100vw - 40px));
  max-height: min(680px, calc(100vh - 40px));
  overflow: auto;
  color: #f4f4f5;
  background: #111214;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 180ms cubic-bezier(.2, .8, .2, 1), opacity 140ms ease;
  font-family: "Outfit", "Inter", system-ui, sans-serif;
}

.premarchives-account-panel[data-open="true"] {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.premarchives-account-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.premarchives-account-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: #2563eb;
  font-weight: 700;
  letter-spacing: .03em;
}

.premarchives-account-identity {
  min-width: 0;
}

.premarchives-account-identity strong,
.premarchives-account-identity span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.premarchives-account-identity strong {
  font-size: 15px;
}

.premarchives-account-identity span,
.premarchives-account-label {
  color: #8e9098;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.premarchives-account-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  color: #a1a1aa;
  background: transparent;
  cursor: pointer;
  font-size: 24px;
}

.premarchives-account-section {
  padding: 14px 10px 10px;
}

.premarchives-account-label {
  margin: 0 8px 8px;
}

.premarchives-account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.premarchives-account-link,
.premarchives-account-action {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-radius: 5px;
  color: #d4d4d8;
  background: transparent;
  font: inherit;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}

.premarchives-account-link:hover,
.premarchives-account-action:hover {
  color: #fff;
  background: rgba(255, 255, 255, .055);
}

.premarchives-account-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.premarchives-account-action--danger {
  color: #f0a5a5;
}

.premarchives-account-panel button:focus-visible,
.premarchives-account-panel a:focus-visible,
.premarchives-session-trigger:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

@media (min-width: 897px) {
  body[data-premarchives-library="sonotheque"] .premarchives-account-panel {
    left: 18px;
    bottom: 18px;
  }
}

@media (max-width: 640px) {
  .premarchives-account-panel {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    max-height: calc(100vh - 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .premarchives-account-backdrop,
  .premarchives-account-panel {
    transition: none;
  }
}

html.premarchives-player-only .player-bar {
  left: 0 !important;
}

html.premarchives-player-only .mobile-tab-bar {
  display: none !important;
}

html.premarchives-player-only .mobile-audio-player {
  bottom: 0 !important;
}

html.premarchives-has-global-player body {
  padding-bottom: var(--premarchives-global-player-height, 102px) !important;
}
