/* Desktop promotion uses the theme tokens; toolbar audio inherits player icons. */
.header-tools .header-desktop-download {
  display: inline-flex;
  flex: 0 0 auto;
  align-self: center;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 14px;
  border: 0;
  border-radius: var(--radius-action, 999px);
  background: var(--glass-background);
  color: var(--text);
  box-shadow: var(--glass-shadow);
  font-size: 10px;
  font-weight: 550;
  line-height: 1.4;
  white-space: nowrap;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header-desktop-download > svg {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}
.header-tools .header-desktop-download:is(:hover, :focus-visible) {
  background-color: var(--hover);
  color: var(--text);
  box-shadow: var(--control-shadow);
}
dialog#desktop-dialog.desktop-dialog {
  position: fixed;
  inset: 0;
  width: min(480px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 32px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 20px;
  background: radial-gradient(ellipse at 0 0, var(--accent-soft), transparent 65%), var(--surface);
  color: var(--text);
  box-shadow: var(--dialog-shadow);
}
dialog#desktop-dialog:not([open]) { display: none; }
dialog#desktop-dialog[open] { display: block; }
dialog#desktop-dialog::backdrop {
  background: rgb(3 4 7 / .76);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}
#desktop-dialog .dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  background: var(--hover);
  color: var(--text-muted);
  box-shadow: none;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
#desktop-dialog .dialog-close > svg { display: block; width: 17px; height: 17px; }
#desktop-dialog .dialog-close:is(:hover, :focus-visible) { background: var(--accent-soft); color: var(--text); }
#desktop-dialog .desktop-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 1px 0 25px;
  border-radius: 14px;
  background: var(--glass-background);
  color: var(--text);
  box-shadow: var(--glass-shadow), 0 0 28px color-mix(in srgb, var(--accent) 7%, transparent);
}
#desktop-dialog .desktop-mark > svg { display: block; width: 24px; height: 24px; }
#desktop-dialog .dialog-eyebrow {
  margin: 0 0 11px;
  color: var(--accent-bright);
  font-size: 8px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 2px;
}
#desktop-dialog-title {
  margin: 0 20px 15px 0;
  color: var(--text);
  font-size: 29px;
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -1px;
}
#desktop-dialog-description {
  max-width: 35em;
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
#desktop-dialog .desktop-dialog-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
  margin-top: 27px;
}
#desktop-dialog .desktop-dialog-actions > :is(button, a) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  padding: 11px 14px;
  border-radius: var(--radius-action, 999px);
  font-size: 10px;
  font-weight: 550;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}
#desktop-dialog .desktop-dialog-actions > .glass-primary {
  border: 0;
  background: var(--glass-background);
  color: var(--text);
  box-shadow: var(--control-shadow);
}
#desktop-dialog .desktop-dialog-actions > .secondary-button {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  box-shadow: none;
}
#desktop-dialog .desktop-dialog-actions > :is(button, a):is(:hover, :focus-visible) { background-color: var(--hover); color: var(--text); }
#desktop-dialog .desktop-dialog-actions svg { display: block; flex: 0 0 16px; width: 16px; height: 16px; }
#desktop-download-status {
  margin: 17px 0 0;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
#desktop-download-status:empty { display: none; }
html[data-theme='light'] dialog#desktop-dialog::backdrop { background: rgb(21 22 26 / .37); }
@media (max-width: 1400px) and (min-width: 721px) {
  .header-tools .header-desktop-download {
    flex-basis: 40px;
    width: 40px;
    min-width: 40px;
    padding: 10px;
    gap: 0;
    font-size: 0;
  }
  .header-desktop-download > span { font-size: 0; }
}
@media (max-width: 720px), (max-width: 900px) and (max-height: 500px) and (pointer: coarse) {
  body .topbar { grid-template-columns: 44px minmax(0, 1fr) 44px 44px; }
  body .topbar .header-tools .header-desktop-download { display: none; }
  body .topbar #change-account { grid-column: 4; }
  #desktop-dialog .desktop-dialog-actions { grid-template-columns: 1fr; }
  #desktop-dialog .desktop-dialog-actions > #desktop-dialog-download { display: none; }
  dialog#desktop-dialog.desktop-dialog { padding: 29px 26px; }
  #desktop-dialog .dialog-close { top: 12px; right: 12px; width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
  #desktop-dialog-title { font-size: 26px; }
  #desktop-dialog-description { font-size: 11px; }
}
@media (max-width: 370px) {
  dialog#desktop-dialog.desktop-dialog { padding: 28px 23px; }
  #desktop-dialog-title { font-size: 25px; }
  #desktop-dialog .desktop-dialog-actions { grid-template-columns: 1fr; gap: 6px; margin-top: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .header-desktop-download, #player-audio, dialog#desktop-dialog, dialog#desktop-dialog::backdrop { animation: none; transition: none; }
}
