/* Loading feedback: busy state for buttons that disable while working. */

/* ---- Busy buttons: a ring in currentColor, width unchanged ---- */
.btn[aria-busy='true'], .shelf-toggle[aria-busy='true'], .profile-tile[aria-busy='true'] { position: relative; cursor: progress; }
.btn[aria-busy='true'] { opacity: .85; }
.btn[aria-busy='true']::after, .shelf-toggle[aria-busy='true']::after, .profile-tile[aria-busy='true']::after {
  content: ''; box-sizing: border-box; flex: none; width: 14px; height: 14px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  background: none; -webkit-mask: none; mask: none;
}
/* Absolute so the label (and button width) does not move; primary buttons reuse their trailing lozenge slot. */
.btn:not(.btn-primary)[aria-busy='true']::after, .shelf-toggle[aria-busy='true']::after {
  position: absolute; right: 8px; top: calc(50% - 7px);
}
.btn-primary[aria-busy='true']::after { margin: -4px; }
.profile-tile[aria-busy='true']::after { position: absolute; top: 4px; right: 4px; }

.btn[aria-busy='true']::after, .shelf-toggle[aria-busy='true']::after, .profile-tile[aria-busy='true']::after {
  animation: busy-spin .7s linear infinite;
}
@keyframes busy-spin { to { transform: rotate(360deg); } }
/* ---- Vinyl loader: a spinning record, centred. Mirrored by the boot loader inline in index.html. ---- */
.vinyl-loader {
  --vl-size: 112px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  min-height: 100vh; min-height: 100dvh; box-sizing: border-box; padding: 24px;
}
.vinyl-loader-stage { position: relative; flex: none; width: var(--vl-size); height: var(--vl-size); }
.vinyl-loader-record {
  position: absolute; left: 0; top: 0; width: var(--vl-size); height: var(--vl-size); border-radius: 50%;
  background:
    radial-gradient(circle, var(--vl-hole, #FBF7EF) 0 3%, transparent 3.5%),
    radial-gradient(circle, var(--primary, #7A2E2E) 0 21%, var(--gold, #B08D57) 21.5% 24%, transparent 24.5%),
    repeating-radial-gradient(circle, rgba(255, 255, 255, .09) 0 1px, transparent 1px 3px),
    conic-gradient(from 20deg, transparent 0 30%, rgba(255, 255, 255, .10) 38%, transparent 46% 80%, rgba(255, 255, 255, .08) 88%, transparent 96%),
    var(--vinyl, #111111);
  box-shadow: 0 0 0 1px var(--vinyl-rim, #3A3A3A), 0 6px 16px rgba(0, 0, 0, .22);
  animation: vinyl-loader-spin 3.6s linear infinite;
}
.vinyl-loader-label {
  font-family: var(--font-display, 'Inter', system-ui, sans-serif); font-weight: 700; font-size: 18px; letter-spacing: .02em;
  color: var(--ink-muted, #5E554A);
}
@keyframes vinyl-loader-spin { to { transform: rotate(360deg); } }
