.playlist-panel { width: 100%; border-top: 1px solid var(--workspace-night-line); padding-top: 16px; color: var(--workspace-night-text); }
.playlist-panel summary { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; font-size: 14px; font-weight: 700; list-style: none; }
.playlist-panel summary::-webkit-details-marker { display: none; }
.playlist-panel summary::before { content: '▸'; color: var(--workspace-night-muted); }
.playlist-panel[open] summary::before { content: '▾'; }
.playlist-panel summary span { margin-left: auto; color: var(--workspace-night-muted); font-size: 11px; font-weight: 400; }
.playlist-storage-note,.playlist-status { margin: 12px 0; color: var(--workspace-night-muted); font-size: 11px; line-height: 1.6; }
.playlist-status:empty { display: none; }
.playlist-form { display: flex; gap: 5px; margin: 10px 0; }
.playlist-panel input,.playlist-panel select { min-width: 0; width: 100%; min-height: 36px; padding: 7px 9px; border: 1px solid var(--workspace-night-line); border-radius: 4px; color: var(--workspace-night-text); background: var(--workspace-night-surface); font-size: 12px; }
.playlist-panel input::placeholder { color: var(--workspace-night-muted); }
.playlist-panel label:not(.sr-only) { display: block; margin: 13px 0 5px; color: var(--workspace-night-muted); font-size: 11px; }
.playlist-panel button { min-height: 36px; padding: 6px 9px; border: 1px solid var(--workspace-night-line); border-radius: 4px; background: var(--workspace-night-surface); color: var(--workspace-night-text); font-size: 11px; white-space: nowrap; }
.playlist-panel button:hover:not(:disabled) { background: #34515b; }
.playlist-panel button:disabled { opacity: .45; cursor: default; }
.playlist-actions { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0; }
.playlist-tracks { margin: 10px 0; padding: 0; list-style: none; }
.playlist-tracks li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--workspace-night-line); font-size: 12px; }
.playlist-tracks li>span:first-child { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.playlist-track-actions { display: flex; gap: 3px; }
.playlist-track-actions button { min-width: 29px; padding-inline: 5px; }
.playlist-panel .playlist-delete { color: #f1c4ae; background: transparent; }
.account-area { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 4px 8px; color: var(--workspace-night-muted); font-size: 11px; }
.account-area a,.account-area button { border: 1px solid var(--workspace-night-line); border-radius: 4px; background: transparent; color: var(--workspace-night-text); padding: 7px 9px; font-size: 11px; text-decoration: none; }
.account-area a:hover,.account-area button:hover { background: var(--workspace-night-surface); }
.account-gate { min-height: 75vh; display: grid; place-items: center; padding: 30px; background: var(--workspace-night); color: var(--workspace-night-text); }
.account-gate>div { width: min(440px,100%); }
.account-gate p { color: var(--workspace-night-muted); line-height: 1.7; }
.account-gate h1 { font-size: 30px; line-height: 1.3; }
.account-gate a { display: inline-block; margin-top: 12px; padding: 13px 18px; background: #e7d3b5; border-radius: 4px; color: #24343b; font-weight: 700; text-decoration: none; }
.account-gated main,.account-gated footer { display: none; }
@media(min-width:901px) { .account-gate { margin-left: var(--workspace-rail-width); } }
.playlist-panel #playlist-import-local { white-space: normal; text-align: left; }
@media(max-width:700px) {
  .music-hero { flex-wrap: wrap; }
  .music-intro { min-width: 0; flex: 1; }
  .playlist-panel { flex-basis: 100%; margin-top: 4px; }
}
