:root {
  --window-blue-top: #dfeaf8;
  --window-blue-bottom: #c4d8ee;
  --chrome-line: #a7bfdc;
  --chrome-line-strong: #91b2d7;
  --panel-bg: #ffffff;
  --panel-wash: #f8fbff;
  --text-main: #1f3550;
  --text-soft: #60758e;
  --text-faint: #8a9bb0;
  --accent: #3b8fd9;
  --accent-strong: #1777d1;
  --transport-blue: #2c82d3;
  --transport-track: #d6e2ef;
  --nav-bg: #f6f9fd;
  --row-select: #dbeaf8;
  --row-hover: #f2f7fd;
  --danger: #b84a5c;
  --shadow-soft: rgba(98, 122, 148, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Tahoma, "Segoe UI", Verdana, sans-serif;
  background: linear-gradient(180deg, #f3f7fc, #d7e5f5 52px, #eef4fb 52px, #eef4fb);
  color: var(--text-main);
}

button,
input {
  font: inherit;
}

.wmp-page {
  padding: 22px 16px 108px;
}

.wmp-page.is-library-drawer-open {
  overflow: hidden;
}

.wmp-window {
  width: min(1400px, 100%);
  margin: 0 auto;
  background: var(--panel-bg);
  border: 1px solid var(--chrome-line);
  box-shadow: 0 18px 40px var(--shadow-soft);
}

.title-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--chrome-line);
  background: linear-gradient(180deg, var(--window-blue-top), var(--window-blue-bottom));
}

.title-band-left {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.app-brand-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 4px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

.app-mark {
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.local-access-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid #aac3df;
  background: linear-gradient(180deg, #fefefe, #e4eef9);
  color: #2e5b87;
  font-size: 0.82rem;
  white-space: nowrap;
}

.crumbs {
  color: var(--text-soft);
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mode-tabs,
.title-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.title-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.title-upload-status {
  min-width: min(320px, 42vw);
  display: grid;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid #b8cde3;
  background: linear-gradient(180deg, #fbfdff, #e4eef9);
}

.title-upload-status[hidden] {
  display: none !important;
}

.title-upload-copy {
  margin: 0;
}

.title-upload-progress {
  min-width: 0;
}

.title-upload-progress .upload-progress-copy {
  min-width: 108px;
}

.mode-tab,
.frame-button,
.row-link,
.transport-button,
.transport-play {
  border: 1px solid var(--chrome-line-strong);
  background: linear-gradient(180deg, #fefefe, #d7e5f4);
  color: var(--text-main);
  cursor: pointer;
}

.mode-tab {
  min-width: 74px;
  padding: 6px 14px;
}

.mode-tab.is-active {
  background: linear-gradient(180deg, #fefefe, #eaf1fa);
}

.menu-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 12px;
  border-bottom: 1px solid #d6e1ef;
  background: linear-gradient(180deg, #f9fbfe, #ecf3fb);
}

.menu-links,
.command-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.menu-links span {
  color: var(--text-main);
  font-size: 0.92rem;
}

.share-jump {
  display: flex;
  gap: 8px;
  align-items: center;
  width: min(420px, 100%);
}

.share-jump input,
.search-stack input,
.editor-form input {
  width: 100%;
  height: 28px;
  padding: 4px 8px;
  border: 1px solid #a6bfdc;
  background: #ffffff;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 720px;
}

.import-layout {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.import-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.import-hero-copy {
  margin: 8px 0 0;
  color: var(--text-soft);
  line-height: 1.5;
  max-width: 72ch;
}

.import-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.import-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #d6e1ef;
  background: linear-gradient(180deg, #fbfdff, #f2f7fd);
}

.import-card-wide {
  grid-column: 1 / -1;
}

.import-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.import-card-head h2 {
  margin: 2px 0 0;
}

.import-card-kicker {
  color: var(--text-soft);
  font-size: 0.85rem;
  text-align: right;
}

.import-upload-tray {
  display: grid;
  gap: 12px;
}

.import-dropzone {
  min-height: 180px;
}

.source-import-form {
  display: grid;
  gap: 12px;
}

.source-import-actions {
  display: grid;
  gap: 8px;
}

.source-import-form label,
.editor-form label {
  display: grid;
  gap: 6px;
}

.source-import-form input {
  width: 100%;
  height: 34px;
  padding: 6px 10px;
  border: 1px solid #a6bfdc;
  background: #ffffff;
}

.import-help {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.youtube-search-results,
.spotify-search-results {
  display: grid;
  gap: 10px;
}

.youtube-search-result,
.spotify-search-result,
.youtube-search-empty,
.spotify-search-empty {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dbe6f3;
  background: #ffffff;
}

.youtube-search-empty,
.spotify-search-empty {
  grid-template-columns: 1fr;
  color: var(--text-soft);
}

.youtube-search-result-media,
.spotify-search-result-media {
  width: 96px;
  height: 54px;
  overflow: hidden;
  border: 1px solid #ccd9e8;
  background: linear-gradient(180deg, #f8fbff, #e6f0fa);
}

.youtube-search-result-media img,
.spotify-search-result-media img,
.youtube-search-result-fallback,
.spotify-search-result-fallback {
  width: 100%;
  height: 100%;
}

.youtube-search-result-media img,
.spotify-search-result-media img {
  object-fit: cover;
  display: block;
}

.youtube-search-result-fallback,
.spotify-search-result-fallback {
  display: grid;
  place-items: center;
  color: #2c5f90;
  font-weight: 600;
}

.youtube-search-result-copy,
.spotify-search-result-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.youtube-search-result-copy strong,
.youtube-search-result-copy span,
.spotify-search-result-copy strong,
.spotify-search-result-copy span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-library-preview {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #d6e1ef;
  background: #ffffff;
}

.import-track-list {
  display: grid;
  gap: 8px;
}

.import-track-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e0e9f4;
  background: linear-gradient(180deg, #fdfefe, #f4f8fd);
}

.import-track-row strong,
.import-track-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-import-link {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 10px;
  text-decoration: none;
}

.view-band-main {
  display: grid;
  gap: 10px;
}

.drawer-handle-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.nav-drawer-head {
  padding: 2px 6px 14px;
  border-bottom: 1px solid #dbe6f2;
}

.nav-drawer-copy {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.4;
}

.nav-pane {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 60;
  width: min(320px, calc(100vw - 28px));
  padding: 18px 12px 24px;
  border-right: 1px solid #d9e4f0;
  border-bottom: 0;
  background: linear-gradient(180deg, #fbfdff, var(--nav-bg));
  box-shadow: 18px 0 36px rgba(46, 73, 103, 0.24);
  overflow-y: auto;
  transform: translateX(calc(-100% - 24px));
  transition: transform 0.18s ease;
}

.nav-pane.is-open {
  transform: translateX(0);
}

.nav-group + .nav-group {
  margin-top: 20px;
}

.nav-title,
.view-caption,
.dock-label {
  margin: 0 0 8px;
  color: var(--text-faint);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-item {
  display: block;
  padding: 5px 8px;
  color: var(--text-main);
  text-decoration: none;
  border-radius: 2px;
}

.nav-item-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item-row .nav-item {
  flex: 1;
}

.nav-item.is-active {
  background: linear-gradient(180deg, #e7f1fb, #d6e7f8);
  border: 1px solid #c1d5eb;
}

.nav-item.muted {
  color: var(--text-faint);
}

.drawer-import-actions {
  display: grid;
  gap: 8px;
}

.drawer-upload-tray {
  display: grid;
  justify-content: stretch;
  padding: 0;
  border: 0;
  background: transparent;
}

.drawer-import-button {
  width: 100%;
  display: flex;
  justify-content: center;
}

.drawer-import-note,
.drawer-import-path {
  display: block;
  margin: 10px 0 0;
  color: var(--text-soft);
  line-height: 1.4;
}

.content-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #ffffff;
}

.view-band {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid #dbe5f1;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.view-band-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.view-switcher {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.library-drawer-toggle {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.drawer-handle-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--chrome-line-strong);
  border-radius: 999px;
  background: linear-gradient(180deg, #fefefe, #d7e5f4);
  color: var(--text-main);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.drawer-handle-button[aria-expanded="true"] {
  background: linear-gradient(180deg, #ffffff, #cfe2f7);
  box-shadow: inset 0 0 0 1px rgba(59, 143, 217, 0.12);
}

.drawer-handle-button:hover,
.drawer-handle-button:focus-visible {
  background: linear-gradient(180deg, #ffffff, #cfe2f7);
}

.library-drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(27, 45, 70, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.library-drawer-scrim.is-open {
  opacity: 1;
  pointer-events: auto;
}

.frame-button.is-active {
  background: linear-gradient(180deg, #fefefe, #cfe2f7);
  color: #234a78;
}

.view-band h1,
.selection-card h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 500;
}

.view-meta {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.info-strip,
.upload-tray {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 18px;
  border-bottom: 1px solid #e2e9f2;
  background: #fbfdff;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.upload-tray {
  align-items: center;
}

.share-entry-card {
  display: grid;
  gap: 16px;
  padding: 24px 18px 30px;
}

.local-launch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.share-entry-lead,
.share-entry-note {
  margin: 0;
  color: var(--text-soft);
  max-width: 720px;
}

.share-example-shell {
  display: grid;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 14px 16px;
  border: 1px solid #d9e4f0;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.share-example-shell code {
  overflow-wrap: anywhere;
  color: var(--text-main);
}

.quick-tunnel-card {
  border-left: 1px solid #d9e4f0;
}

.quick-tunnel-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.owner-dashboard-panel {
  padding: 18px;
  border-bottom: 1px solid #e2e9f2;
  background: linear-gradient(180deg, #fefefe, #f7fbff);
}

.owner-dashboard-panel .share-entry-card {
  padding: 0;
}

.upload-tray.is-busy,
.upload-tray.is-drop-target {
  background: #edf5ff;
}

body.is-window-drop-active .wmp-window {
  box-shadow: 0 0 0 3px rgba(89, 154, 221, 0.35), 0 18px 40px var(--shadow-soft);
}

body.is-window-drop-active .upload-tray {
  background: #e2f0ff;
}

.upload-prompt {
  display: grid;
  gap: 4px;
}

.upload-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(320px, 100%);
}

.upload-progress[hidden] {
  display: none !important;
}

.upload-progress-track {
  flex: 1;
  height: 10px;
  border: 1px solid #aac3df;
  background: #edf4fb;
}

.upload-progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #6fb5f0, #2f80cf);
  transition: width 0.12s ease;
}

.upload-progress-bar.is-indeterminate {
  width: 100%;
  background:
    linear-gradient(90deg, rgba(111, 181, 240, 0.25), rgba(47, 128, 207, 0.95), rgba(111, 181, 240, 0.25));
  background-size: 200% 100%;
  animation: import-indeterminate 1.2s linear infinite;
}

.upload-progress-copy {
  min-width: 170px;
  text-align: right;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}

.upload-prompt small,
.status-line {
  color: var(--text-faint);
}

@keyframes import-indeterminate {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -200% 0;
  }
}

.window-drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(23, 59, 95, 0.22);
  pointer-events: none;
  transition: background 0.12s ease;
}

.window-drop-overlay[hidden] {
  display: none !important;
}

.window-drop-card {
  min-width: min(480px, calc(100vw - 48px));
  padding: 28px 32px;
  border: 2px dashed #8bb6e3;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(46, 73, 103, 0.18);
  text-align: center;
  transform: scale(0.98);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

body.is-window-drop-active .window-drop-card {
  transform: scale(1);
  border-color: #4e96dc;
  box-shadow: 0 22px 44px rgba(46, 73, 103, 0.24);
}

.window-drop-overlay.is-active {
  background: rgba(23, 59, 95, 0.32);
}

.window-drop-card p,
.window-drop-card small {
  display: block;
}

.window-drop-card p {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: #234a78;
}

.window-drop-card small {
  color: var(--text-soft);
}

.table-shell {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.album-browser-shell {
  padding: 0 18px 18px;
}

.collection-studio {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid #dbe6f2;
  background: linear-gradient(180deg, #ffffff, #f6fbff);
}

.collection-studio-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.collection-selection-summary {
  margin: 0;
  color: var(--text-soft);
}

.collection-studio-note {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.collection-studio-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.collection-studio-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.collection-studio-chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid #b8cade;
  background: #eef5fb;
  color: var(--text-main);
  text-decoration: none;
  border-radius: 999px;
}

.collection-studio-chip:hover,
.collection-studio-chip:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.collection-studio-chip span {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.collection-membership-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: #d9ecfb;
  color: #0d4f7a;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.collection-studio-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.collection-studio-form input,
.collection-studio-form select {
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid #b8cade;
  background: #fff;
  color: var(--text-main);
}

.table-head {
  display: grid;
  gap: 12px;
  padding: 7px 18px;
  border-bottom: 1px solid #ccd9e7;
  background: linear-gradient(180deg, #fdfefe, #eaf2fb);
  font-size: 0.84rem;
  color: var(--text-soft);
}

.library-table-head {
  grid-template-columns: 1.4fr 72px 150px 1.6fr 130px;
}

.table-body,
.album-sections {
  min-height: 0;
}

.album-browser {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
  gap: 18px;
}

.collection-cover-card {
  align-content: start;
}

.album-cover-card,
.collection-album-entry {
  position: relative;
}

.album-select-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  padding: 4px 8px;
  border: 1px solid var(--chrome-line-strong);
  background: linear-gradient(180deg, #fefefe, #d7e5f4);
  color: var(--text-main);
  cursor: pointer;
}

.collection-select-button {
  position: static;
  justify-self: start;
  margin: 0 10px 10px;
}

[data-selectable-album].is-group-selected {
  box-shadow: inset 0 0 0 2px rgba(47, 128, 207, 0.38);
  background: linear-gradient(180deg, #fafdff, #e8f3ff);
}

.collection-cover-stack {
  position: relative;
  min-height: 188px;
  margin-bottom: 6px;
}

.collection-cover-layer {
  position: absolute;
  inset: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.collection-cover-layer:nth-child(1) {
  z-index: 3;
}

.collection-cover-layer:nth-child(2) {
  z-index: 2;
  transform: translate(14px, 10px) rotate(3deg);
  opacity: 0.92;
}

.collection-cover-layer:nth-child(3) {
  z-index: 1;
  transform: translate(28px, 18px) rotate(6deg);
  opacity: 0.84;
}

.collection-cover-card.is-open .collection-cover-layer:nth-child(2),
.collection-cover-card:hover .collection-cover-layer:nth-child(2) {
  transform: translate(18px, 12px) rotate(4deg);
}

.collection-cover-card.is-open .collection-cover-layer:nth-child(3),
.collection-cover-card:hover .collection-cover-layer:nth-child(3) {
  transform: translate(36px, 22px) rotate(8deg);
}

.collection-cover-art,
.collection-child-art {
  width: 100%;
  height: 100%;
}

.collection-album-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.collection-album-list[hidden] {
  display: none !important;
}

.collection-track-section {
  align-items: stretch;
}

.collection-track-summary {
  align-items: flex-start;
}

.collection-track-cover-stack {
  flex: 0 0 94px;
  width: 94px;
  min-height: 94px;
  margin-bottom: 0;
}

.collection-track-cover-stack .collection-cover-layer:nth-child(2) {
  transform: translate(8px, 6px) rotate(3deg);
}

.collection-track-cover-stack .collection-cover-layer:nth-child(3) {
  transform: translate(16px, 12px) rotate(6deg);
}

.collection-track-cover-art {
  width: 100%;
  height: 100%;
}

.collection-track-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #587da8;
}

.collection-track-album-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.collection-track-album-list span {
  padding: 3px 8px;
  border: 1px solid #d1deec;
  background: linear-gradient(180deg, #ffffff, #eef5fd);
  font-size: 0.82rem;
}

.collection-track-stack {
  background: linear-gradient(180deg, #fbfdff, #f6faff);
}

.collection-track-group + .collection-track-group {
  border-top: 1px solid #e3edf8;
}

.collection-track-group.is-target-album {
  background: linear-gradient(180deg, rgba(250, 253, 255, 0.98), rgba(237, 245, 253, 0.98));
  box-shadow: inset 0 0 0 2px rgba(89, 154, 221, 0.22);
}

.collection-track-group.is-drop-target {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(226, 240, 255, 0.98));
  box-shadow: inset 0 0 0 2px rgba(47, 128, 207, 0.42);
}

.collection-track-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid #edf3fa;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.96));
}

.collection-track-group-title,
.collection-track-group-meta {
  margin: 0;
}

.collection-track-group-title {
  font-weight: 700;
  color: #3a65a0;
}

.collection-track-group-meta {
  color: var(--text-soft);
}

.collection-album-entry {
  display: grid;
  gap: 8px;
  border: 1px solid #dbe6f2;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.collection-album-link {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  color: inherit;
  text-decoration: none;
}

.collection-album-link:hover,
.collection-album-link:focus-visible {
  border-color: #a8c6e6;
  background: linear-gradient(180deg, #ffffff, #edf5fd);
}

.collection-album-art {
  width: 52px;
  height: 52px;
}

.collection-album-copy {
  display: grid;
  gap: 2px;
}

.collection-album-copy span {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.library-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1.4fr 72px 150px 1.6fr 130px;
  padding: 10px 18px;
  border-bottom: 1px solid #eef3f8;
  align-items: center;
  font-size: 0.92rem;
}

.library-row:hover,
.track-row:hover {
  background: var(--row-hover);
}

.library-link {
  color: var(--accent-strong);
  text-decoration: none;
}

.library-row-main,
.library-label-stack,
.library-rename-form,
.owner-create-form {
  display: grid;
  gap: 8px;
}

.owner-create-form {
  grid-auto-flow: column;
  align-items: center;
}

.owner-create-form input,
.library-rename-form input {
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid #b8cade;
  background: #fff;
  color: var(--text-main);
}

.library-id-note,
.library-id-inline {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.library-id-note {
  width: fit-content;
}

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.row-link,
.frame-button {
  padding: 5px 10px;
  text-decoration: none;
}

.inline-icon-form {
  margin: 0;
}

.icon-button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--chrome-line-strong);
  background: linear-gradient(180deg, #fefefe, #d7e5f4);
  color: var(--text-main);
  cursor: pointer;
}

.danger-icon-button {
  color: #8a2741;
}

.danger-icon-button:hover,
.danger-icon-button:focus-visible {
  border-color: #c88ca0;
  background: linear-gradient(180deg, #fffafa, #f2dbe3);
}

.frame-button.primary {
  background: linear-gradient(180deg, #fefefe, #d5e7fb);
}

.frame-button.danger {
  color: #7f1d2f;
}

.frame-button input {
  display: none;
}

.path-cell {
  overflow-wrap: anywhere;
  color: var(--text-soft);
}

.library-id-inline {
  margin: 4px 0 0;
}

.media-head {
  grid-template-columns: 240px 42px minmax(180px, 1fr) 70px 88px 170px 170px 84px;
}

.album-section {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  border-bottom: 1px solid #dbe6f2;
}

.album-section.is-target-album {
  background: linear-gradient(180deg, #fafdff, #edf5fd);
  box-shadow: inset 0 0 0 2px rgba(89, 154, 221, 0.28);
}

.album-section.is-drop-target {
  background: linear-gradient(180deg, #ffffff, #e6f1ff);
  box-shadow: inset 0 0 0 2px rgba(47, 128, 207, 0.42);
}

.album-cover-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 10px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.album-cover-card:hover,
.album-cover-card:focus-visible {
  border-color: #bad0e8;
  background: linear-gradient(180deg, #ffffff, #eef5fd);
  box-shadow: 0 8px 20px rgba(79, 113, 150, 0.12);
}

.album-cover-card.is-selected .album-cover-art {
  box-shadow: 0 0 0 3px rgba(89, 154, 221, 0.35);
}

.album-cover-card.is-selected {
  border-color: #8fb5dd;
  background: linear-gradient(180deg, #ffffff, #e8f2fd);
}

.album-summary {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  border-right: 1px solid #e7eef7;
}

.album-art,
.selection-art {
  flex: 0 0 94px;
  height: 94px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  color: #25466b;
  border: 1px solid #a1bbd8;
  background:
    linear-gradient(135deg, #fefefe 0%, #d6e7f6 48%, #7fb1e4 48%, #edf5fc 100%);
  overflow: hidden;
}

.album-art img,
.selection-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-meta {
  display: grid;
  align-content: start;
  gap: 6px;
}

.album-meta p {
  margin: 0;
}

.album-title {
  font-weight: 700;
  color: #3a65a0;
}

.track-stack {
  display: flex;
  flex-direction: column;
}

.album-cover-art {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  font-size: 2.1rem;
}

.album-cover-meta {
  display: grid;
  gap: 4px;
}

.album-cover-meta .album-title,
.album-cover-meta .album-cover-artist {
  margin: 0;
}

.album-cover-artist {
  color: var(--text-soft);
}

.album-card-track-cache {
  display: none;
}

.track-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 42px minmax(180px, 1fr) 70px 88px 170px 170px 84px;
  align-items: center;
  width: 100%;
  padding: 8px 18px;
  border: 0;
  border-bottom: 1px solid #eef3f8;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.track-row.is-selected {
  background: var(--row-select);
}

.track-row.is-primary-selected {
  box-shadow: inset 3px 0 0 #4978b6;
}

.track-row.is-drag-source {
  opacity: 0.55;
}

body.is-track-dragging [data-drop-album-target] {
  cursor: copy;
}

.track-name-cell {
  font-weight: 500;
}

.context-edit-target {
  display: block;
  min-width: 0;
}

.context-edit-target.is-inline-editing {
  text-decoration: none;
}

.context-edit-target:hover {
  color: #2d5f98;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.inline-edit-input {
  width: 100%;
  min-width: 0;
  padding: 4px 6px;
  border: 1px solid #7fa5cf;
  background: #ffffff;
  color: var(--text-main);
  font: inherit;
}

.track-faint {
  color: var(--text-faint);
}

.inline-rating {
  display: flex;
  gap: 2px;
  align-items: center;
}

.inline-rating-star {
  min-width: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #a8b8c9;
  cursor: pointer;
  line-height: 1;
}

.inline-rating-star.is-active {
  color: #d39a1c;
}

.selection-card {
  display: flex;
  gap: 14px;
}

.selection-panel {
  display: grid;
  gap: 12px;
}

.selection-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.editor-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.editor-form label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
}

.editor-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.details-shell {
  padding: 0 16px 164px;
}

.details-shell .transport-selection-shell {
  border: 1px solid #d7e5f4;
  border-top: 0;
  background: linear-gradient(180deg, #fdfefe, #eef5fc);
}

.editor-accordion {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.18s ease, opacity 0.18s ease, padding 0.18s ease;
  padding-top: 0;
}

.editor-accordion.is-open {
  max-height: 220px;
  opacity: 1;
  padding-top: 2px;
}

.rating-editor {
  min-width: 0;
}

.rating-picker {
  display: flex;
  gap: 4px;
  align-items: center;
  min-height: 34px;
}

.rating-star {
  min-width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #aac3df;
  background: linear-gradient(180deg, #ffffff, #e7f0fa);
  color: #a3b7cb;
  font-size: 1.1rem;
  line-height: 1;
}

.rating-star.is-active {
  color: #d39a1c;
}

.rating-star:disabled {
  opacity: 0.65;
}

.transport-band {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 0;
  z-index: 70;
  width: min(1400px, calc(100vw - 32px));
  margin: 0 auto;
  display: grid;
  gap: 10px;
  padding: 10px 18px;
  border-left: 1px solid #b7cbe1;
  border-right: 1px solid #b7cbe1;
  border-top: 1px solid #b7cbe1;
  background: linear-gradient(180deg, #edf4fb, #d6e6f6);
  box-shadow: 0 -10px 24px rgba(46, 73, 103, 0.18);
}

.transport-progress-shell {
  width: min(860px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.transport-progress {
  width: 100%;
  margin: 0;
  cursor: pointer;
}

.transport-time {
  min-width: 42px;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.transport-selection-shell {
  display: grid;
  gap: 10px;
}

.transport-selection-toggle-row {
  display: flex;
  justify-content: flex-start;
}

.transport-selection-toggle {
  width: min(560px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #a9c1da;
  background: linear-gradient(180deg, #fbfdff, #ddeaf7);
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
}

.transport-selection-toggle-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.transport-selection-toggle-label {
  color: var(--text-faint);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.transport-selection-toggle-title {
  display: block;
  font-weight: 700;
}

.transport-selection-toggle-meta {
  display: block;
  color: var(--text-soft);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.transport-selection-toggle-arrow {
  font-size: 0.85rem;
  color: var(--text-soft);
  transition: transform 0.18s ease;
}

.transport-selection-toggle[aria-expanded="true"] .transport-selection-toggle-arrow {
  transform: rotate(180deg);
}

.transport-selection-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.18s ease, opacity 0.18s ease;
}

.transport-selection-panel.is-open {
  max-height: 320px;
  opacity: 1;
}

.transport-selection-panel .selection-card {
  align-items: center;
}

.transport-selection-panel .selection-card,
.transport-selection-panel .selection-panel {
  padding-top: 4px;
}

.transport-controls {
  display: grid;
  grid-template-columns: repeat(5, auto);
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.transport-button,
.transport-play {
  min-height: 36px;
}

.transport-button {
  min-width: 68px;
}

.transport-nav {
  min-width: 60px;
}

.transport-play {
  width: 56px;
  min-width: 56px;
  height: 56px;
  border-radius: 999px;
  border-color: #7caad9;
  background: radial-gradient(circle at 35% 30%, #7fc2ff, #3e92df 55%, #2d73bb);
  color: #ffffff;
  font-size: 1.15rem;
}

.transport-toggle[aria-pressed="true"] {
  border-color: #4d83bf;
  background: linear-gradient(180deg, #fafdff, #d5e9fb);
  color: #1f4f85;
}

input[type="range"] {
  accent-color: var(--transport-blue);
}

.flash {
  margin: 0;
  padding: 8px 18px;
  border-bottom: 1px solid #dde7f3;
  font-size: 0.9rem;
}

.flash.notice {
  background: #eef7ff;
  color: #35699e;
}

.flash.error {
  background: #fff2f4;
  color: #934052;
}

.empty-table {
  padding: 28px 18px;
  color: var(--text-soft);
}

.context-menu {
  position: fixed;
  z-index: 50;
  width: min(360px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  padding: 4px;
  border: 1px solid #a6bfdc;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(46, 73, 103, 0.22);
}

.context-menu-item {
  width: 100%;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.context-menu-item:hover {
  background: #e9f2fb;
}

.context-menu-item.danger {
  color: #8a2741;
}

.context-menu-item.danger:hover {
  background: #fbecef;
}

.context-menu-divider {
  height: 1px;
  margin: 4px 0;
  background: #d9e4ef;
}

.context-menu-label {
  display: block;
  margin: 0 0 6px;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.context-menu-move {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.context-menu-move-row {
  display: grid;
  gap: 8px;
}

.context-menu-move select,
.context-menu-move button {
  width: 100%;
}

.context-menu-collection-studio {
  margin: 0;
  border: 0;
  padding: 10px;
  background: linear-gradient(180deg, #fbfdff, #f3f8fd);
}

.context-menu-collection-studio .collection-studio-head {
  align-items: start;
  flex-direction: column;
  gap: 6px;
}

.context-menu-collection-studio .collection-studio-actions {
  flex-direction: column;
  align-items: stretch;
}

.context-menu-collection-studio .collection-studio-form {
  display: grid;
  gap: 8px;
}

.context-menu-collection-studio .collection-studio-form input,
.context-menu-collection-studio .collection-studio-form select,
.context-menu-collection-studio .collection-studio-form button {
  width: 100%;
}

.context-menu-collection-studio .collection-studio-list {
  display: grid;
}

.lookup-dialog {
  width: min(760px, calc(100vw - 24px));
  border: 1px solid #9db8d7;
  padding: 0;
  background: transparent;
}

.lookup-dialog::backdrop {
  background: rgba(31, 53, 80, 0.32);
}

.lookup-dialog-card {
  margin: 0;
  padding: 16px;
  background: #f7fbff;
}

.lookup-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 12px;
}

.lookup-dialog-head h2 {
  margin: 0;
}

.lookup-status {
  margin: 0 0 12px;
  color: var(--text-soft);
}

.lookup-search-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.lookup-search-form label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
}

.lookup-search-actions {
  display: flex;
  align-items: end;
}

.lookup-results {
  display: grid;
  gap: 10px;
  max-height: 60vh;
  overflow: auto;
}

.lookup-result {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid #d4e1ef;
  background: #ffffff;
}

.lookup-result-art {
  width: 72px;
  height: 72px;
  border: 1px solid #b6cae0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #fefefe 0%, #d6e7f6 48%, #7fb1e4 48%, #edf5fc 100%);
  color: #25466b;
  font-weight: 700;
}

.lookup-result-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lookup-result-copy p {
  margin: 0 0 4px;
}

.lookup-result-title {
  font-weight: 700;
}

.global-busy {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(31, 53, 80, 0.32);
  cursor: wait;
}

.global-busy[hidden] {
  display: none !important;
}

body.is-busy {
  cursor: wait;
}

.global-busy-card {
  min-width: 220px;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 18px 22px;
  border: 1px solid #a6bfdc;
  background: #f9fbfe;
  box-shadow: 0 12px 28px rgba(46, 73, 103, 0.22);
}

.global-busy-card p {
  margin: 0;
}

.global-busy-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #bfd4ea;
  border-top-color: var(--accent-strong);
  border-radius: 999px;
  animation: songshare-spin 0.8s linear infinite;
}

audio {
  display: none;
}

@keyframes songshare-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1100px) {
  .wmp-page.is-library-drawer-open {
    overflow: hidden;
  }

  .local-launch-grid {
    grid-template-columns: 1fr;
  }

  .album-section,
  .media-head {
    grid-template-columns: 1fr;
  }

  .album-summary {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    align-items: start;
    border-right: 0;
    border-bottom: 1px solid #e7eef7;
  }

  .album-summary .album-art {
    flex-basis: 72px;
    height: 72px;
    font-size: 1.4rem;
  }

  .track-row {
    grid-template-columns: 42px minmax(120px, 1fr) 70px 88px;
  }

  .track-row span:nth-child(5),
  .track-row span:nth-child(6),
  .track-row span:nth-child(7),
  .media-head span:nth-child(5),
  .media-head span:nth-child(6),
  .media-head span:nth-child(7),
  .media-head span:nth-child(8) {
    display: none;
  }

  .editor-form,
  .lookup-search-form,
  .library-row,
  .library-table-head {
    grid-template-columns: 1fr;
  }

  .import-hero,
  .import-grid,
  .import-track-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .wmp-page {
    padding: 0 0 96px;
  }

  .wmp-window {
    border-left: 0;
    border-right: 0;
  }

  .title-band,
  .menu-band,
  .view-band,
  .upload-tray {
    padding-left: 12px;
    padding-right: 12px;
  }

  .transport-band {
    left: 0;
    right: 0;
    width: 100%;
    border-left: 0;
    border-right: 0;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .title-band,
  .menu-band,
  .view-band {
    flex-direction: column;
    align-items: stretch;
  }

  .app-brand-logo {
    width: 30px;
    height: 30px;
  }

  .title-upload-status {
    min-width: 0;
    width: 100%;
  }

  .view-band-actions {
    justify-items: stretch;
  }

  .view-switcher,
  .album-browser {
    width: 100%;
  }

  .drawer-handle-row {
    align-items: center;
  }

  .mode-tabs,
  .command-actions,
  .share-jump,
  .search-stack {
    width: 100%;
  }

  .import-layout {
    padding: 14px 12px 22px;
  }

  .import-card,
  .import-library-preview {
    padding: 14px;
  }

  .import-card-head {
    flex-direction: column;
    align-items: stretch;
  }

  .details-shell {
    padding: 0 0 128px;
  }

  .album-summary {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 8px;
    padding: 10px 12px;
  }

  .album-summary .album-art,
  .selection-card .selection-art {
    flex-basis: 56px;
    height: 56px;
    font-size: 1.1rem;
  }

  .selection-card {
    align-items: start;
  }

  .transport-selection-toggle {
    padding: 8px 10px;
  }

  .transport-selection-toggle-meta {
    font-size: 0.82rem;
  }

  .transport-progress-shell {
    gap: 8px;
  }

  .transport-time {
    min-width: 36px;
    font-size: 0.78rem;
  }

  .transport-controls {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }

  .transport-button,
  .transport-play {
    min-width: 0;
  }

  .transport-toggle {
    flex: 1 1 0;
  }
}
