/* MucXic: teal controls, readable type and quiet, solid surfaces. */
html, html body.mx-app, html body.mx-app * {
  scrollbar-width: thin;
  scrollbar-color: var(--mx-primary, #009999) transparent;
}
html::-webkit-scrollbar, html body.mx-app::-webkit-scrollbar,
html body.mx-app *::-webkit-scrollbar { display: block; width: 1px !important; height: 1px !important; }
html::-webkit-scrollbar-track, html body.mx-app *::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb, html body.mx-app *::-webkit-scrollbar-thumb {
  background: var(--mx-primary, #009999); border: 0; border-radius: 1px;
}
.custom-scrollbar.overflow-y-auto { overflow-y: auto; }
@supports selector(::-webkit-scrollbar) {
  html, html body.mx-app, html body.mx-app * { scrollbar-width: auto; scrollbar-color: auto; }
}

body.mx-app {
  --mx-bg: #101616;
  --mx-bg-soft: #161f1f;
  --mx-surface: #1a2525;
  --mx-surface-strong: #243232;
  --mx-text-muted: #b1bfc2;
  --mx-info-text: #67e8e8; --mx-success-text: #6ee7b7;
  --mx-warning-text: #fcd34d; --mx-error-text: #fca5a5;
  --mx-primary-text: #00b3b3;
  --mx-shadow: 0 8px 24px rgb(0 0 0 / 16%);
  background: var(--mx-bg);
  font-size: 16px;
}
html:not(.dark) body.mx-app {
  --mx-bg: #f4f7f7; --mx-bg-soft: #eaf0f0;
  --mx-surface: #fff; --mx-surface-strong: #e0eaea;
  --mx-text-muted: #455b5b;
  --mx-info-text: #076868; --mx-success-text: #126445;
  --mx-warning-text: #805000; --mx-error-text: #a32020;
  --mx-primary-text: #006f6f;
}
/* Photo headers and the persistent player remain dark in either theme. */
html:not(.dark) body.mx-app :is(#playlistPlayer, #addToPlaylistModal, #globalGiftModal, #globalPurchaseModal, .mx-about-hero, .mx-auth-media, .mx-cover-art) {
  --mx-bg: #101616; --mx-bg-soft: #161f1f;
  --mx-surface: #1a2525; --mx-surface-strong: #243232;
  --mx-text: #f8fcfc; --mx-text-muted: #b1bfc2;
  --mx-info-text: #67e8e8; --mx-success-text: #6ee7b7;
  --mx-warning-text: #fcd34d; --mx-error-text: #fca5a5;
  --mx-primary-text: #00b3b3;
}
body.mx-app :is(.bg-background-dark, .bg-background-light) { background-color: var(--mx-bg) !important; }
.mx-profile-avatar { border-color: var(--mx-bg); }
.dark body.mx-app .dark\:bg-background-dark { background-color: var(--mx-bg) !important; }
body.mx-app :is(h1, h2, h3) { letter-spacing: -.02em; line-height: 1.2; }
body.mx-app .bg-primary { background-color: #007777 !important; }
html:not(.dark) body.mx-app .text-primary { color: var(--mx-primary-text) !important; }
/* Pale status utilities were designed for dark panels. Use readable semantic
   colours on the light surfaces, including utilities with opacity suffixes. */
html:not(.dark) body.mx-app :is([class*="text-amber-"], [class*="text-yellow-"], [class*="text-orange-"]) { color: var(--mx-warning-text) !important; }
html:not(.dark) body.mx-app :is([class*="text-cyan-"], [class*="text-sky-"], [class*="text-teal-"], [class*="text-blue-"], [class*="text-indigo-"], [class*="text-purple-"], [class*="text-fuchsia-"], [class*="text-primary/"]) { color: var(--mx-info-text) !important; }
html:not(.dark) body.mx-app :is([class*="text-emerald-"], [class*="text-green-"]) { color: var(--mx-success-text) !important; }
html:not(.dark) body.mx-app :is([class*="text-red-"], [class*="text-rose-"], [class*="text-pink-"]) { color: var(--mx-error-text) !important; }
html:not(.dark) body.mx-app .mx-required-mark { color: var(--mx-error-text); }
body.mx-app main p:not([class*="font-bold"]):not([class*="font-black"]):not(:where(.mx-guidance-notice, .mx-guidance-body, .mx-guidance-notice *)),
body.mx-app main li:not(:where(.mx-guidance-notice *)) { font-size: 1rem; line-height: 1.6; }
body.mx-app [class*="text-white/"]:not([class*="bg-primary"]),
body.mx-app .text-\[\#93c8c8\] { color: var(--mx-text-muted); }
body.mx-app [class*="tracking-[0.2"], body.mx-app [class*="tracking-[0.3"] { letter-spacing: .04em; }
body.mx-app header.fixed, body.mx-app aside.fixed {
  background-color: var(--mx-bg-soft) !important; backdrop-filter: none !important;
}
body.mx-app :is([class*="bg-[linear-gradient"], [class*="bg-[radial-gradient"], [class*="bg-gradient-to-"]) {
  background-image: none !important;
  background-color: var(--mx-surface);
}
body.mx-app .mx-about-hero-overlay,
body.mx-app .mx-auth-media::after { background: rgb(8 15 17 / 72%) !important; }
body.mx-app .mx-image-shade { background: rgb(0 0 0 / 60%); }
html:not(.dark) body.mx-app .mx-about-page .mx-about-hero-overlay { background: rgb(8 15 17 / 72%) !important; }
body.mx-app .mx-auth-media { background: var(--mx-bg-soft); }
body.mx-app .mx-theme-toggle, body.mx-app .mx-auth-card { box-shadow: none; }
body.mx-app [class*="bg-[#"]:not(.mx-cover-art) { background-color: var(--mx-surface) !important; }
body.mx-app :is([class*="bg-purple-"], [class*="bg-indigo-"], [class*="bg-fuchsia-"]) { background-color: var(--mx-surface) !important; }
body.mx-app :is(.text-purple-300, .text-indigo-300, .text-fuchsia-300) { color: var(--mx-primary-hover); }
body.mx-app [class*="hover:scale"]:hover { transform: none !important; }
body.mx-app :is(.animate-pulse, .animate-bounce) { animation: none !important; }
body.mx-app #playerCollapseBtn { background: var(--mx-surface-strong); box-shadow: none; }
body.mx-app #playerCollapseBtn:hover { transform: none; background: var(--mx-primary); box-shadow: none; }

/* Financial controls share a baseline even when labels wrap onto two lines. */
.mx-wallet-form { display: grid; gap: 1rem; align-items: end; }
.mx-wallet-form > label { display: flex; min-width: 0; flex-direction: column; gap: .4rem; }
.mx-wallet-form [hidden] { display: none !important; }
.mx-wallet-form > label > span { min-height: 2.5em; display: block; margin: 0; line-height: 1.25; }
.mx-wallet-note { color: var(--mx-text-muted); }
.mx-wallet-form :is(input:not([type="hidden"]), select, button) {
  height: 2.875rem; box-sizing: border-box; margin: 0; font: inherit;
}
.mx-wallet-form button { background: var(--mx-primary); color: #fff; white-space: nowrap; }
html body.mx-app .mx-wallet-form button,
html:not(.dark) body.mx-app .mx-wallet-form button { background-color: #007777 !important; color: #fff !important; }
.mx-wallet-form button:hover { background: #007777; }
.mx-wallet-form button:disabled { opacity: .65; cursor: wait; }
.mx-wallet-withdrawal-controls:disabled .mx-wallet-form { opacity: .55; }
.mx-wallet-withdrawal-controls:disabled :is(input, button) { cursor: not-allowed; }
@media (min-width: 640px) {
  .mx-wallet-pin-form { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; }
  .mx-wallet-pin-form[data-configured="true"] { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
  .mx-wallet-funding-form { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; }
  .mx-wallet-withdrawal-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mx-wallet-refund-form { grid-template-columns: minmax(0, 1fr) minmax(8rem, .6fr) auto; }
}
@media (min-width: 900px) {
  .mx-wallet-withdrawal-form { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
}
.mx-wallet-status { margin-top: 1rem; min-height: 1.5em; color: var(--mx-text-muted); }
.mx-wallet-status[data-state="error"] { color: #fca5a5; }
.mx-wallet-status[data-state="success"] { color: #6ee7b7; }
html:not(.dark) .mx-wallet-status[data-state="error"] { color: #a32020; }
html:not(.dark) .mx-wallet-status[data-state="success"] { color: #126a48; }

.mx-switch-label { display: flex; align-items: center; gap: .9rem; min-height: 44px; cursor: pointer; }
input.mx-switch {
  appearance: none; flex: 0 0 44px; width: 44px; height: 26px;
  border: 1px solid var(--mx-text-muted); border-radius: 13px;
  background: var(--mx-surface-strong); position: relative; cursor: pointer;
}
input.mx-switch::before {
  content: ""; position: absolute; width: 18px; height: 18px; top: 3px; left: 3px;
  border-radius: 50%; background: #fff; transition: transform 120ms ease;
}
input.mx-switch:checked,
input.mx-switch:checked:hover,
input.mx-switch:checked:focus { background: var(--mx-primary); border-color: var(--mx-primary); }
input.mx-switch:checked::before { transform: translateX(18px); }
input.mx-switch:focus-visible { outline: 2px solid var(--mx-primary); outline-offset: 3px; }
.mx-partnership-section { background: var(--mx-surface); border-color: var(--mx-border); }
.mx-partnership-metrics > div { border: 0; background: none; padding: 1rem 0; border-radius: 0; }
.mx-partnership-section form { border: 0; border-top: 1px solid var(--mx-border); border-radius: 0; background: none; padding: 1rem 0 0; }
@media (prefers-reduced-motion: reduce) { input.mx-switch::before { transition: none; } }

/* Marketing information uses open sections and divided rows, not nested cards. */
body.mx-app .mx-about-page article {
  border-radius: 1rem; border: 1px solid var(--mx-border);
  background: var(--mx-surface) !important; box-shadow: none; padding: 1.5rem;
}
body.mx-app .mx-about-page .mx-about-feature-list { display: block; }
body.mx-app .mx-about-feature-list article > .material-symbols-outlined { display: none; }
body.mx-app .mx-about-feature-list article > div:has(> .material-symbols-outlined) {
  display: none;
}
body.mx-app .mx-about-page [class*="rounded-[1."],
body.mx-app .mx-about-page [class*="rounded-[2"] { border-radius: 1rem; box-shadow: none; }
body.mx-app .mx-about-page [class*="bg-white/[0.03]"] { background: transparent !important; }
@media (min-width: 768px) {
  body.mx-app .mx-about-feature-list article { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(0, 2fr); gap: 2rem; }
  body.mx-app .mx-about-feature-list article > :is(h3, p, ul) { margin-top: 0; }
}

/* Keep the new editorial photos visible while preserving text contrast. */
body.mx-app .mx-about-hero-overlay { background: rgb(8 15 17 / 26%) !important; }
html:not(.dark) body.mx-app .mx-about-page .mx-about-hero-overlay { background: rgb(8 15 17 / 26%) !important; }
body.mx-app .mx-auth-media img { opacity: 1; }
body.mx-app .mx-auth-media::after { background: rgb(8 15 17 / 28%) !important; }

.mx-data-chart { margin:0; color:var(--mx-text, #f5f9f9); }
.mx-data-chart > svg { display:block; width:100%; max-height:180px; }
.mx-chart-heading,.mx-chart-axis { display:flex; justify-content:space-between; gap:1rem; }
.mx-chart-heading { font-size:.875rem; font-weight:600; }
.mx-chart-axis,.mx-chart-empty,.mx-chart-data { color:var(--mx-text-muted); font-size:.75rem; }
.mx-chart-data { margin-top:.75rem; }
.mx-chart-data summary { cursor:pointer; }
.mx-chart-data table { width:100%; margin-top:.5rem; text-align:left; }
.mx-chart-data td,.mx-chart-data th { padding:.25rem; }
.mx-donut-layout { display:flex; align-items:center; gap:1.5rem; margin-top:1rem; }
.mx-donut-layout svg { width:120px; flex-shrink:0; }
.mx-donut-layout ul { list-style:none; padding:0; flex:1; font-size:.875rem; }
.mx-donut-layout li { display:flex; justify-content:space-between; gap:1rem; margin:.5rem 0; }
.mx-donut-layout i { display:inline-block; width:.5rem; height:.5rem; border-radius:50%; margin-right:.5rem; }
html:not(.dark) .mx-data-chart { color:#183033; }

html body.mx-app *::-webkit-scrollbar-button, html::-webkit-scrollbar-button { display:none; width:0; height:0; }

/* Photo captions stay readable; navigation follows the active light surface. */
html:not(.dark) body.mx-app header.fixed a:not(.bg-primary) { color:#183033 !important; -webkit-text-fill-color:#183033; }
html:not(.dark) body.mx-app .mx-about-page .mx-about-hero .mx-about-hero-secondary-cta { background:#ffffff !important; }
body.mx-app .mx-about-page .mx-about-hero-title { font-size:clamp(1.8rem,4vw,3.25rem) !important; overflow-wrap:normal; }

html:not(.dark) body.mx-app .mx-auth-panel .mx-field { background:#fff !important; color:#183033 !important; border-color:#9bb3b5 !important; }
html:not(.dark) body.mx-app .mx-auth-panel .mx-field::placeholder { color:#52686b !important; opacity:1; }

/* Shared upload and release form rhythm, with readable fields in either theme. */
body.mx-app :is(.mx-upload-page, .mx-release-workspace, #editModal) label:not(:has(input[type="checkbox"])) {
  display: block; margin-bottom: .55rem; font-size: .875rem; font-weight: 600; color: var(--mx-text-soft);
}
body.mx-app :is(.mx-upload-page, .mx-release-workspace, #editModal) :is(input:not([type="checkbox"]):not([type="hidden"]):not([type="file"]):not([type="range"]), select, textarea) {
  background: var(--mx-field) !important; color: var(--mx-text) !important; border-color: var(--mx-border) !important;
  border-radius: .6rem; padding: .8rem 1rem; min-height: 3rem;
}
body.mx-app :is(.mx-upload-page, .mx-release-workspace, #editModal) :is(input, select, textarea):focus-visible { outline: 2px solid var(--mx-primary); outline-offset: 2px; }
body.mx-app :is(.mx-upload-page, .mx-release-workspace, #editModal) :is(input, textarea)::placeholder { color: var(--mx-text-muted); opacity: .9; }
body.mx-app .mx-danger-control { color: var(--mx-error-text) !important; font-size: 1.35rem; line-height: 1; background: transparent !important; padding: .25rem; border-radius: .3rem; }
body.mx-app .mx-danger-control:hover { background: color-mix(in srgb, var(--mx-error-text) 12%, transparent) !important; }
body.mx-app :is(.cropper-point, .cropper-line) { background: var(--mx-primary) !important; }
body.mx-app .cropper-view-box { outline-color: var(--mx-primary) !important; }
body.mx-app .mx-wireframe-row { border-color: var(--mx-border); }
body.mx-app :is(.mx-wireframe-cover, .mx-wireframe-line) { background: color-mix(in srgb, var(--mx-primary) 15%, var(--mx-surface-strong)); }
body.mx-app .mx-profile-details > summary { background: var(--mx-surface); color: var(--mx-text); }
.mx-consent-caption { line-height: 1.7; }

.mx-page-loader { display: none; }
html.mx-loading .mx-page-loader {
  display: block; position: fixed; inset: 0; z-index: 9997; overflow: auto;
  background: var(--mx-bg); padding: max(1rem, 4vw); pointer-events: auto;
}
.mx-page-wireframe { max-width: 1200px; margin: auto; }
.mx-skeleton { border-radius: .65rem; background: color-mix(in srgb, var(--mx-primary) 14%, var(--mx-surface-strong)); animation: mx-wireframe-pulse 1s ease-in-out infinite alternate; }
.mx-skeleton-menu { height: 3rem; margin-bottom: 1.25rem; }
.mx-skeleton-banner { height: min(30vh, 240px); margin-bottom: 1.5rem; }
.mx-skeleton-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.mx-skeleton-card { aspect-ratio: 1; }
.mx-skeleton-text { height: 1rem; margin: 1rem 0; width: 80%; }
.mx-skeleton-text:last-child { width: 55%; }
@media (max-width: 639px) { .mx-skeleton-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (prefers-reduced-motion: reduce) { .mx-skeleton { animation: none; } }

body.mx-app a:not([class]) { color: var(--mx-primary-text); }
body.mx-app ::selection { background: color-mix(in srgb, var(--mx-primary) 30%, transparent); }

/* Search suggestions and inline help must remain readable over artwork. */
body.mx-app :is(#overlay_results, #edit_overlay_results, .split-search-results) {
  background: var(--mx-surface-strong) !important;
  color: var(--mx-text);
  border: 1px solid var(--mx-border);
  border-radius: .65rem;
  opacity: 1;
  box-shadow: var(--mx-shadow);
}
.mx-unregistered-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; position: relative; }
.mx-feature-info > summary { list-style: none; cursor: pointer; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border: 1px solid var(--mx-border); border-radius: 50%; color: var(--mx-primary-text); font-weight: 700; }
.mx-feature-info > summary::-webkit-details-marker { display: none; }
.mx-feature-info > summary:focus-visible { outline: 2px solid var(--mx-primary); outline-offset: 2px; }
body.mx-app .mx-info-popover { position: absolute; left: 0; top: calc(100% + .5rem); z-index: 80; max-width: 28rem; margin: 0; padding: 1rem; border: 1px solid var(--mx-border); border-radius: .75rem; background: var(--mx-surface-strong); color: var(--mx-text); box-shadow: var(--mx-shadow); }

body.mx-app .mx-info-popover.mx-feature-warning {
  background: color-mix(in srgb, var(--mx-warning-text) 10%, var(--mx-surface));
  border-color: color-mix(in srgb, var(--mx-warning-text) 55%, var(--mx-border));
  border-left: 4px solid var(--mx-warning-text);
}
.mx-feature-warning .mx-warning-heading { display: flex; align-items: center; gap: .55rem; margin-bottom: .55rem; color: var(--mx-warning-text); }
.mx-warning-icon { display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; border: 1px solid currentColor; border-radius: 50%; flex-shrink: 0; font-weight: 700; }


/* Cover picking and real upload progress follow the active primary colour/theme. */
.mx-cover-drop-zone { border-color: var(--mx-border); color: var(--mx-text-soft); transition: border-color .15s, background .15s; }
.mx-cover-drop-zone:is(:hover, .is-dragging) { border-color: var(--mx-primary); background: color-mix(in srgb, var(--mx-primary) 10%, var(--mx-surface)); }
#uploadProgressModal { inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; padding: 1rem; background: transparent; color: var(--mx-text); }
#uploadProgressModal[open] { display: flex; align-items: center; justify-content: center; }
#uploadProgressModal::backdrop { background: rgba(0, 0, 0, .65); backdrop-filter: blur(4px); }
.mx-upload-progress-card { width: min(100%, 25rem); padding: 2rem; border-radius: 1.25rem; background: var(--mx-surface); border: 1px solid var(--mx-border); text-align: center; }
.mx-upload-progress-circle { position: relative; width: 9rem; height: 9rem; margin: auto; display: grid; place-items: center; color: var(--mx-primary-text); font-size: 1.4rem; font-weight: 700; }
.mx-upload-progress-circle svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.mx-upload-progress-circle circle { fill: none; stroke-width: 8; }
.mx-progress-track { stroke: color-mix(in srgb, var(--mx-primary) 18%, var(--mx-surface)); }
.mx-progress-value { stroke: var(--mx-primary); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--upload-percent, 0)); transition: stroke-dashoffset .2s linear; }
.mx-upload-progress-circle.is-processing .mx-progress-value { stroke-dasharray: 25 75; stroke-dashoffset: 0; }
.mx-upload-progress-circle.is-processing svg { animation: mx-upload-spin 1s linear infinite; }
@keyframes mx-upload-spin { to { transform: rotate(270deg); } }
@media (prefers-reduced-motion: reduce) { .mx-upload-progress-circle.is-processing svg { animation: none; } .mx-progress-value { transition: none; } }

#uploadProgressModal.mx-dialog-fallback { position: fixed; z-index: 10001; background: rgba(0, 0, 0, .65); }


.mx-saved-artist-results { margin-top: .5rem; max-height: 15rem; overflow-y: auto; border: 1px solid var(--mx-border); border-radius: .65rem; background: var(--mx-surface); color: var(--mx-text); }
.mx-saved-artist-results[hidden] { display: none; }
.mx-saved-artist-results button { display: block; width: 100%; padding: .7rem .9rem; background: var(--mx-surface); text-align: left; color: var(--mx-text); }
.mx-saved-artist-results button span { display: block; margin-top: .2rem; font-size: .75rem; color: var(--mx-text-soft); }
.mx-saved-artist-results button:is(:hover, [aria-selected="true"]) { background: color-mix(in srgb, var(--mx-primary) 14%, var(--mx-surface)); }


/* Consistent release, rights and agreement workspaces in both themes. */
.mx-workspace-page { width: min(100%, 70rem); margin: 0 auto; padding: 6.5rem 1rem 4rem; color: var(--mx-text); display: grid; gap: 1.5rem; }
.mx-workspace-hero { display: grid; gap: .75rem; }
.mx-workspace-page h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.mx-workspace-page h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: .8rem; }
.mx-eyebrow { color: var(--mx-primary-text); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.mx-workspace-intro { color: var(--mx-text-soft); line-height: 1.7; max-width: 55rem; }
.mx-panel, .mx-release-workspace form > section { border: 1px solid var(--mx-border); border-radius: 1rem; background: var(--mx-surface); padding: clamp(1rem, 3vw, 1.6rem); min-width: 0; }
.mx-workspace-note { padding: 1rem 1.2rem; border: 1px solid color-mix(in srgb, var(--mx-primary) 35%, var(--mx-border)); border-radius: .8rem; background: color-mix(in srgb, var(--mx-primary) 8%, var(--mx-surface)); line-height: 1.7; }
.mx-workspace-form { display: grid; gap: 1.5rem; min-width: 0; }
.mx-field-grid { display: grid; gap: 1.1rem; min-width: 0; }
.mx-workspace-field { min-width: 0; margin-top: .8rem; }
.mx-workspace-page label:not(.mx-toggle-row) { display: block; margin-bottom: .55rem; color: var(--mx-text-soft); font-size: .875rem; font-weight: 600; }
.mx-workspace-page :is(input:not([type=checkbox]):not([type=hidden]), select, textarea) { width: 100%; min-width: 0; border: 1px solid var(--mx-border); border-radius: .65rem; background: var(--mx-field) !important; color: var(--mx-text) !important; padding: .8rem; }
.mx-workspace-page :is(input,select,textarea,button,a,summary):focus-visible { outline: 2px solid var(--mx-primary); outline-offset: 3px; }
.mx-toggle-row { display: flex !important; gap: .9rem; align-items: flex-start; margin: .8rem 0; line-height: 1.6; cursor: pointer; }
.mx-toggle-row input { flex-shrink: 0; margin-top: .2rem; }
.mx-field-hint { font-size: .8rem; color: var(--mx-text-soft); margin-top: .6rem; line-height: 1.65; }
.mx-required { color: var(--mx-danger, #dc2626); }
.mx-workspace-page .errorlist { margin: .65rem 0; padding: .75rem 1rem; border-left: 3px solid #dc2626; border-radius: .35rem; background: color-mix(in srgb, #dc2626 9%, var(--mx-surface)); color: var(--mx-text); font-size: .875rem; }
.mx-primary-button, .mx-secondary-button, #sale-split-form > button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: .75rem 1.2rem; border-radius: .65rem; font-weight: 600; }
.mx-primary-button, #sale-split-form > button[type=submit] { background: var(--mx-primary); color: white; }
.mx-secondary-button, #sale-split-form > button[type=button] { border: 1px solid var(--mx-border); color: var(--mx-primary-text); background: var(--mx-surface); }
.mx-workspace-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.mx-status-chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.mx-status-chips span { padding: .35rem .7rem; border-radius: 999px; border: 1px solid var(--mx-border); background: color-mix(in srgb, var(--mx-primary) 8%, var(--mx-surface)); font-size: .75rem; }
.mx-permission-list { display: grid; gap: .3rem; }
.mx-history-entry { padding: 1.1rem 0; border-top: 1px solid var(--mx-border); display: grid; gap: .8rem; }
.mx-history-entry dt { color: var(--mx-text-soft); font-size: .8rem; }
.mx-history-entry dd { margin-top: .25rem; }
.mx-terms-snapshot { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .8rem; padding: 1rem; background: var(--mx-field); border-radius: .6rem; max-height: 20rem; overflow: auto; }
.mx-empty-state { padding: 1rem 0; color: var(--mx-text-soft); }
.mx-workspace-table { overflow-x: auto; margin: 1rem 0; }
.mx-workspace-table table { width: 100%; border-collapse: collapse; min-width: 32rem; text-align: left; }
.mx-workspace-table :is(th,td) { padding: .9rem; border-bottom: 1px solid var(--mx-border); }
.mx-workspace-table th { background: var(--mx-field); color: var(--mx-text-soft); font-size: .8rem; }
.mx-agreement-explainer { display: grid; gap: .8rem; font-size: .875rem; line-height: 1.75; color: var(--mx-text-soft); }
.mx-split-row { margin: 1rem 0; display: grid; gap: .75rem; }
.mx-share-total { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: 1rem; background: var(--mx-field); border-radius: .6rem; }
.mx-share-total strong { font-size: 1.3rem; }
@media (min-width: 640px) { .mx-field-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .mx-split-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr) 7rem; } .mx-split-remove { grid-column: 1 / -1; } }

.mx-workspace-page, .mx-workspace-page * { box-sizing: border-box; }
.mx-workspace-page :is(h1,h3,p,dl,dd) { margin: 0; }
.mx-workspace-page p, .mx-workspace-page a { overflow-wrap: anywhere; }
.mx-release-workspace > form { display: grid; gap: 1.5rem; }

.mx-workspace-page .mx-workspace-hero { background: transparent !important; box-shadow: none; }
.mx-agreement-explainer > summary { cursor: pointer; color: var(--mx-primary-text); font-weight: 600; }
.mx-agreement-explainer[open] > p { margin-top: .85rem; }


.mx-declaration-navigation { display: flex; flex-wrap: wrap; gap: .85rem 1.25rem; align-items: center; justify-content: space-between; }
.mx-declaration-navigation > .mx-field-hint { flex-basis: 100%; }
.mx-navigation-title { display: block; max-width: 15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .75rem; font-weight: 400; margin-left: .5rem; }
#release-track-declarations { scroll-margin-top: 6rem; }

.mx-declaration-navigation .mx-secondary-button { flex-direction: column; align-items: flex-start; max-width: 100%; min-width: 0; }
.mx-declaration-navigation .mx-navigation-title { width: 100%; min-width: 0; margin-left: 0; }

.mx-upload-journey { margin-block: 1rem; padding: 1rem; border: 1px solid var(--border-color, #647474); border-radius: .85rem; }
.mx-upload-journey ol { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; list-style: none; padding: 0; margin: 0; }
.mx-upload-journey li { min-width: 0; padding: .75rem; border-radius: .5rem; border: 1px solid transparent; }
.mx-upload-journey li[aria-current="step"] { border-color: var(--primary-color, #009999); background: rgba(0,153,153,.1); }
.mx-upload-journey a, .mx-upload-journey strong, .mx-upload-journey span { display: block; }
.mx-upload-journey span, .mx-upload-journey p { font-size: .875rem; margin-top: .4rem; }
@media(max-width: 600px) { .mx-upload-journey ol { grid-template-columns: 1fr; gap: .25rem; } }

.mx-declaration-save-actions { flex-wrap: nowrap; justify-content: center; gap: 1rem; align-items: stretch; margin: 1.75rem 0 1rem; padding-block: .5rem; }
.mx-declaration-save-actions > button { flex: 0 1 auto; width: auto; min-width: 0; min-height: 44px; padding: .7rem 1rem; font-size: 1rem; line-height: 1.4; }

.mx-rights-navigation > a { width: auto; font-size: .875rem; }

/* Quiet guidance keeps an amber warning accent without a filled surface. */
body.mx-app { --mx-guidance-accent: #aca28e; }
html:not(.dark) body.mx-app { --mx-guidance-accent: #6f6859; }
body.mx-app .mx-guidance-notice {
  position: relative; padding: .65rem .85rem .65rem 2.1rem; margin-block: .75rem;
  border: 0; border-radius: 0;
  background: transparent;
  color: var(--mx-guidance-accent); font-size: .8125rem; line-height: 1.6; font-weight: 400;
  overflow-wrap: anywhere;
}
body.mx-app .mx-guidance-notice::before { content: "!"; position: absolute; left: .7rem; top: .65rem; color: var(--mx-guidance-accent); font-weight: 800; }
body.mx-app .mx-guidance-notice > summary { cursor: pointer; font-size: inherit; line-height: inherit; font-weight: 600; }
body.mx-app .mx-guidance-body { margin: .65rem 0 0; padding: 0; border: 0; background: transparent; font-size: inherit; line-height: inherit; color: inherit; }
.mx-declaration-navigation > .mx-guidance-notice { flex-basis: 100%; }

body.mx-app .mx-guidance-notice a { color: var(--mx-guidance-accent); text-decoration: underline; }

body.mx-app .mx-rights-page > .mx-workspace-hero {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--mx-border);
  border-radius: 1rem;
  background: var(--mx-surface) !important;
  min-width: 0;
}

.mx-track-position-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.mx-release-declaration-heading, .mx-release-declaration-row { flex-basis: 100%; min-width: 0; }
.mx-cover-picker-compact .mx-cover-drop-zone { padding: 1rem; }
.mx-cover-picker-compact .mx-cover-native-widget { display: none; }
.mx-cover-picker-compact .mx-cover-preview-details > summary { cursor: pointer; font-size: .8125rem; color: var(--mx-text-soft); }
.mx-cover-picker-compact [data-cover-status]:empty { display: none; }

.mx-review-status { margin-top: .75rem; display: grid; gap: .4rem; }
.mx-review-status .review-state-switch { border: 0; background: transparent; color: var(--mx-text); padding: .35rem 0; margin: 0; align-items: center; font-size: .875rem; }
.mx-review-switch-track { display: inline-flex; align-items: center; width: 2.75rem; height: 1.5rem; padding: .2rem; border-radius: 2rem; background: var(--mx-text-muted); }
.mx-review-switch-track > span { width: 1.1rem; height: 1.1rem; border-radius: 50%; background: white; transition: transform .15s; }
.review-state-switch[aria-checked=true] .mx-review-switch-track { background: var(--mx-primary); }
.review-state-switch[aria-checked=true] .mx-review-switch-track > span { transform: translateX(1.25rem); }
body.mx-app .mx-review-status :is(.mx-review-decision,.mx-review-audit) { font-size: .8125rem; color: var(--mx-text-soft); }
.mx-review-feedback { font-size: .875rem; margin-top: .75rem; color: var(--mx-primary-text); }
.mx-review-feedback.is-error { color: var(--mx-error-text); }
[data-song-card][aria-busy=true] { opacity: .75; }

.mx-review-compact { display: grid; grid-template-columns: 2.75rem minmax(0,1fr) 5rem; gap: .75rem; align-items: center; }
.mx-review-cover { width: 2.75rem; height: 2.75rem; border-radius: .45rem; background-size: cover; background-position: center; }
.mx-review-compact-copy { min-width: 0; }
body.mx-app main [data-song-card] .mx-review-compact-copy p { margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .75rem; line-height: 1.5; color: var(--mx-text-soft); }
body.mx-app main .mx-review-compact-copy .mx-review-title { font-size: .9375rem; font-weight: 700; color: var(--mx-text); }
.mx-review-compact-controls { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; align-items: center; }
.mx-review-compact-controls .review-state-switch { grid-column: 1 / -1; display: flex; gap: .3rem; align-items: center; padding: 0; margin: 0; border: 0; background: transparent; color: var(--mx-text-soft); font-size: .625rem; white-space: nowrap; }
.mx-review-compact-controls .mx-review-switch-track { width: 1.8rem; height: 1rem; padding: .15rem; flex-shrink: 0; }
.mx-review-compact-controls .mx-review-switch-track > span { width: .7rem; height: .7rem; }
.mx-review-compact-controls .review-state-switch[aria-checked=true] .mx-review-switch-track > span { transform: translateX(.8rem); }
.mx-review-expanded-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.mx-review-actions { position: relative; }
.mx-review-action-wrap { display: inline-flex; }
.mx-review-action { border: 1px solid var(--mx-border); border-radius: .4rem; padding: .5rem .75rem; background: transparent; color: color-mix(in srgb, var(--mx-action-color, var(--mx-primary-text)) 70%, var(--mx-text-soft)); font-size: .8125rem; font-weight: 600; }
.mx-review-action[aria-pressed=true] { background: color-mix(in srgb, var(--mx-action-color, var(--mx-primary-text)) 22%, var(--mx-surface)); border-color: var(--mx-action-color, var(--mx-primary-text)); color: var(--mx-action-color, var(--mx-primary-text)); }
.mx-review-action:focus-visible { outline: 2px solid var(--mx-primary); outline-offset: 2px; }
.mx-review-action-hint { display: none; position: absolute; bottom: calc(100% + .4rem); left: 0; width: max-content; max-width: min(24rem,100%); padding: .6rem; border-radius: .4rem; background: var(--mx-surface-strong); color: var(--mx-guidance-accent); font-size: .75rem; line-height: 1.5; box-shadow: var(--mx-shadow); z-index: 30; pointer-events: none; }
.mx-review-action-wrap:hover .mx-review-action-hint, .mx-review-action-wrap:focus-within .mx-review-action-hint { display: block; }
.mx-review-feedback:empty { display: none; }

[data-song-card]:has(.review-details.hidden) .mx-review-feedback:not(.is-error) { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.mx-review-compact-controls :is(.review-play-btn, .review-expand-btn) { min-width: 0; width: 100%; height: 2.25rem; overflow: hidden; }

.mx-review-action[value=approve] { --mx-action-color: #6ee7b7; }
.mx-review-action[value=push] { --mx-action-color: #0bda68; }
.mx-review-action[value=ignore] { --mx-action-color: #c7dcdc; }
.mx-review-action[value=flag] { --mx-action-color: #fcd34d; }
.mx-review-action[value=reject] { --mx-action-color: #fa6938; }
.mx-review-action[value=remove] { --mx-action-color: #fca5a5; }
html:not(.dark) .mx-review-action[value=approve] { --mx-action-color: #126445; }
html:not(.dark) .mx-review-action[value=push] { --mx-action-color: #08783c; }
html:not(.dark) .mx-review-action[value=ignore] { --mx-action-color: #526b6b; }
html:not(.dark) .mx-review-action[value=flag] { --mx-action-color: #805000; }
html:not(.dark) .mx-review-action[value=reject] { --mx-action-color: #b13d18; }
html:not(.dark) .mx-review-action[value=remove] { --mx-action-color: #a32020; }
.mx-review-artist-link { text-decoration: underline; text-underline-offset: .15em; }

body.mx-app #song_in_profile { display: flex; flex-direction: column; gap: 5px; }
body.mx-app #song_in_profile > .song-in-profile-item { margin-block: 0; padding-block: .4rem; }
.mx-track-release-label { display: block; font-size: .75rem; color: var(--mx-text-muted); }
.mx-browse-albums { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit,minmax(min(100%,20rem),1fr)); }
.mx-browse-album { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: var(--mx-surface); border-radius: .75rem; }
.mx-browse-album img { width: 5rem; height: 5rem; object-fit: cover; border-radius: .5rem; }
.mx-browse-album h2 { font-size: 1rem; font-weight: 700; }
.mx-album-price { display: inline-block; margin-left: .5rem; color: var(--mx-primary-text); font-size: .875rem; }
body.mx-app .mx-notification-card { padding: .65rem .85rem; border-radius: .6rem; }
body.mx-app .mx-notification-card h2 { font-size: .9375rem; margin-block: .2rem; }
body.mx-app main.mx-notifications-page .mx-notification-card p, .mx-notification-message { font-size: .75rem; line-height: 1.45; }
.mx-notification-message summary { cursor: pointer; }
.mx-notification-message p { margin-top: .4rem; }

.mx-notifications-list { display: grid; gap: 6px; }
body.mx-app .mx-notifications-list > .mx-notification-card { margin: 0; }

body.mx-app .mx-notification-preview { padding: .5rem .75rem; }
body.mx-app .mx-notification-preview p { margin-top: .125rem; font-size: .6875rem; line-height: 1.4; }
body.mx-app .mx-notification-preview p:first-child { font-size: .8125rem; }

body.mx-app #song_in_profile > .mx-profile-track { display: grid; grid-template-columns: 2.5rem minmax(0,1fr) auto 2rem; align-items: center; gap: .65rem; padding: .4rem .5rem; }
.mx-profile-track-cover { border: 0; padding: 0; background-color: var(--mx-surface-strong); width: 2.5rem; height: 2.5rem; border-radius: .35rem; background-size: cover; background-position: center; }
.mx-profile-track-copy { min-width: 0; }
body.mx-app main #song_in_profile .mx-profile-track-title { margin: 0; font-size: .875rem; line-height: 1.4; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.mx-app main #song_in_profile .mx-profile-track-meta { margin: .15rem 0 0; font-size: .6875rem; line-height: 1.4; color: var(--mx-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-profile-track-meta .mx-track-release-label { display: inline; font-size: inherit; }
.mx-profile-track-stats { display: flex; align-items: center; gap: .65rem; white-space: nowrap; font-size: .6875rem; color: var(--mx-text-muted); }
.mx-profile-track-stats > span { display: inline-flex; gap: .2rem; align-items: center; }
.mx-profile-track-stats .material-symbols-outlined { font-size: .875rem; width: .9rem; overflow: hidden; }
.mx-profile-track-actions { position: relative; }
.mx-profile-track-actions > summary { display: grid; place-items: center; width: 2rem; height: 2rem; cursor: pointer; list-style: none; border-radius: .4rem; color: var(--mx-text-soft); }
.mx-profile-track-actions > summary::-webkit-details-marker { display: none; }
.mx-profile-track-actions > summary:hover, .mx-profile-track-actions > summary:focus-visible { background: var(--mx-surface-strong); }
.mx-profile-track-menu { position: absolute; right: 0; top: calc(100% + .3rem); z-index: 40; width: min(18rem,80vw); padding: .5rem; border-radius: .6rem; border: 1px solid var(--mx-border); background: var(--mx-surface); box-shadow: var(--mx-shadow); color: var(--mx-text); }
.mx-profile-track-menu > :is(a,button) { display: block; width: 100%; padding: .55rem .65rem; text-align: left; font-size: .8125rem; background: transparent; border: 0; color: inherit; border-radius: .35rem; }
.mx-profile-track-menu > :is(a,button):hover { background: var(--mx-surface-strong); }
body.mx-app main #song_in_profile .mx-profile-track-menu p { margin: .4rem .65rem; font-size: .75rem; line-height: 1.45; color: var(--mx-text-muted); }
@media(max-width: 900px) {
 body.mx-app #song_in_profile > .mx-profile-track { grid-template-columns: 2.25rem minmax(0,1fr) 2rem; column-gap: .5rem; row-gap: 0; }
 .mx-profile-track-cover { width: 2.25rem; height: 2.25rem; }
 .mx-profile-track-stats { grid-column: 2; grid-row: 2; gap: .5rem; margin-top: .2rem; }
 .mx-profile-track-actions { grid-column: 3; grid-row: 1 / span 2; }
 .mx-profile-track-cover { grid-row: 1 / span 2; }
 .mx-profile-stat-label { display: none; }
}

.mx-profile-track-cover:focus-visible { outline: 2px solid var(--mx-primary); outline-offset: 2px; }

body.mx-app :is(.mx-album-buy-button, .mx-album-download-button) { display: inline-flex; align-items: center; gap: .25rem; padding: .45rem .65rem; border: 1px solid #006b6b; border-radius: .4rem; background: #007777 !important; color: #fff !important; font-size: .75rem; font-weight: 600; }
body.mx-app :is(.mx-album-buy-button, .mx-album-download-button):hover { background: #006565 !important; }
body.mx-app :is(.mx-album-buy-button, .mx-album-download-button) span { color: inherit !important; }

body.mx-app .mx-album-download-button { justify-content: center; min-width: 2.75rem; min-height: 2.75rem; }

/* The native Open link covers its card; message and read controls stay usable. */
.mx-notification-card { position: relative; }
.mx-notification-open::after { content: ""; position: absolute; inset: 0; border-radius: .6rem; }
.mx-notification-open:focus-visible::after { outline: 2px solid var(--mx-primary, #008080); outline-offset: 2px; }
.mx-notification-card :is(form, .mx-notification-message) { position: relative; z-index: 1; }

/* Keep song names and metadata aligned to the start of their rows. */
body.mx-app :is([data-song-card], .mx-profile-track-copy, #queueList) { text-align: left; }
#playlistPlayer #queueList [data-queue-index] { justify-content: flex-start; }

/* A labelled teal tab makes the persistent player easy to discover. */
body.mx-app #playlistPlayer #playerCollapseBtn {
  width: auto; min-width: 8rem; padding: .45rem .8rem; gap: .35rem;
  background: #007777 !important; color: #fff !important;
  border: 1px solid #70caca !important; border-radius: 999px;
  box-shadow: 0 3px 14px rgb(0 0 0 / 28%);
}
body.mx-app #playlistPlayer #playerCollapseBtn:hover { background: #006565 !important; }
body.mx-app #playlistPlayer #playerCollapseBtn span { color: inherit !important; }
#playerCollapseLabel { font-size: .75rem; font-weight: 700; white-space: nowrap; }
body.mx-app .mx-browse-page .mx-song-download { font-size: .6875rem; line-height: 1.25; }
body.mx-app .mx-browse-page .mx-song-download > span:not(.material-symbols-outlined) { font-size: inherit; white-space: nowrap; }
body.mx-app .mx-browse-page .mx-song-download .material-symbols-outlined { font-size: 1rem; }
.mx-browse-page { min-width: 0; }
.mx-browse-page td .mx-cover-art { flex-shrink: 0; }
/* Let contest grid children shrink instead of widening the mobile viewport. */
.mx-contest-page, .mx-contest-page .grid, [data-contest-board] { min-width: 0; max-width: 100%; }
.mx-contest-page .grid { grid-template-columns: minmax(0, 1fr); }
.mx-contest-board-header { flex-wrap: wrap; }
.mx-contest-board-header > div { min-width: 0; }
.mx-contest-board-header h2 { overflow-wrap: anywhere; }
.mx-contest-song { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; min-width: 0; }
body.mx-app .mx-contest-song p { font-size: .75rem; }
.mx-contest-song > :last-child { white-space: nowrap; }
@media (min-width: 1024px) { .mx-contest-page .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  body.mx-app .mx-browse-page { padding-inline: .75rem; }
  .mx-browse-page th, .mx-browse-page td { padding: .65rem; }
  .mx-browse-page td > .flex { gap: .5rem; }
  [data-contest-board] { padding: .85rem; }
  .mx-contest-board-header h2 { font-size: 1.25rem; }
  .mx-contest-song { gap: .5rem; padding: .65rem .5rem; }
}

body.mx-app .mx-song-cover-play {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  border-radius: 1.75rem; overflow: hidden; cursor: pointer; background: transparent;
}
.mx-song-cover-play img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
body.mx-app .mx-song-cover-play .mx-song-cover-action {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: .4rem; padding: .7rem 1rem;
  border: 1px solid rgb(255 255 255 / 65%); border-radius: 999px;
  background: rgb(5 30 30 / 72%); color: #fff !important; white-space: nowrap;
  box-shadow: 0 3px 15px rgb(0 0 0 / 25%); font-size: .875rem; font-weight: 700;
}
body.mx-app .mx-song-cover-action span { color: inherit !important; }
.mx-song-cover-action .material-symbols-outlined { display: block; width: 2rem; flex-shrink: 0; overflow: hidden; font-size: 2rem; line-height: 1; }
.mx-song-cover-play:hover .mx-song-cover-action { background: rgb(0 95 95 / 85%); }
.mx-song-cover-play:focus-visible { outline: 3px solid var(--mx-primary, #009999); outline-offset: 4px; }

/* The queue borrows the current cover, with a solid dark scrim for legibility. */
#playlistPlayer #queuePanel {
  background-color: #101c1c !important;
  background-image: linear-gradient(rgb(7 20 20 / 88%), rgb(7 20 20 / 92%)), var(--mx-queue-cover, none) !important;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
@media (max-width: 640px) {
  #playlistPlayer { padding-bottom: max(.4rem, env(safe-area-inset-bottom)) !important; }
  #playlistPlayer #playerBody {
    display: flex; flex-direction: column; gap: .14rem;
    max-height: calc(100dvh - 6rem); overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  #playlistPlayer.collapsed #playerBody { display: none; }
  #playlistPlayer #playerBody > .mx-player-heading {
    order: 0; flex-direction: column; gap: .14rem !important; align-items: stretch !important;
  }
  #playlistPlayer .mx-player-identity { flex-direction: column; gap: .3rem; width: 100%; }
  #playlistPlayer #playerCover {
    width: clamp(4.5rem, 14dvh, 8rem) !important; height: clamp(4.5rem, 14dvh, 8rem) !important;
    flex-shrink: 0; border-radius: .75rem; box-shadow: 0 4px 16px rgb(0 0 0 / 25%);
  }
  #playlistPlayer.queue-open #playerCover { width: 3.5rem !important; height: 3.5rem !important; }
  #playlistPlayer .mx-player-meta { width: 100%; text-align: center; }
  #playlistPlayer #nowPlaying { font-size: .9375rem; font-weight: 700; line-height: 1.3; }
  #playlistPlayer #nowMeta { font-size: .75rem; line-height: 1.3; }
  #playlistPlayer .mx-player-actions { width: 100%; padding-right: 0; justify-content: center; gap: .2rem; }
  #playlistPlayer #playerBody > .mx-player-seek,
  #playlistPlayer #playerBody > .mx-player-transport { margin-top: .14rem !important; gap: .26rem !important; }
  #playlistPlayer #playerBody > .mx-player-seek { order: 2; }
  #playlistPlayer #playerBody > .mx-player-transport { order: 3; }
  #playlistPlayer #nextUp { order: 4; margin-top: .1rem !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #playlistPlayer #queuePanel { order: 1; flex: 0 0 auto; margin-block: .14rem; max-height: min(23dvh, 13rem); }
  #playlistPlayer .mx-player-seek #currentTime { width: 2.25rem; flex-shrink: 0; }
  #playlistPlayer .mx-player-seek #progressBar { flex: 1; min-width: 0; }
  #playlistPlayer .mx-player-seek > div { width: auto; gap: .2rem; flex-shrink: 0; }
  #playlistPlayer .mx-player-actions button,
  #playlistPlayer .mx-player-transport button { min-width: 2.75rem; min-height: 2.75rem; }
  #playlistPlayer .mx-player-transport #playPauseBtn { min-width: 3.5rem; min-height: 3.5rem; border-radius: 50%; background: #007777; color: #fff; }
}

/* Reserve icon geometry even while the symbol font is loading. */
#playlistPlayer .material-symbols-outlined { display: inline-block; width: 1em; flex-shrink: 0; line-height: 1; overflow: hidden; }

/* Mobile expanded player: proportional artwork, floating queue, bottom controls. */
@media (max-width: 640px) {
  #playlistPlayer:not(.collapsed) {
    inset: 0; height: 100dvh; padding: 0 !important; border-radius: 0 !important;
    background: #071414 !important;
  }
  #playlistPlayer:not(.collapsed) #playerBody {
    position: relative; isolation: auto; width: 100%; height: 100%; max-height: none;
    padding: max(1rem, env(safe-area-inset-top)) max(.75rem, env(safe-area-inset-right)) max(.6rem, env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left));
    overflow: hidden; justify-content: flex-end;
  }
  #playlistPlayer:not(.collapsed) #playerBody::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(to bottom, rgb(3 12 12 / 25%) 0%, rgb(3 12 12 / 8%) 38%, rgb(3 12 12 / 85%) 68%, #071414 100%);
  }
  #playlistPlayer #playerBody > .mx-player-heading,
  #playlistPlayer .mx-player-identity { display: contents !important; }
  #playlistPlayer #playerCover,
  #playlistPlayer.queue-open #playerCover {
    position: absolute; inset: auto .75rem var(--mx-art-bottom, 12rem); z-index: 0;
    width: calc(100% - 1.5rem) !important; height: var(--mx-art-height, min(90vw, 55dvh)) !important;
    object-fit: contain; object-position: center bottom; border-radius: .75rem; box-shadow: none; background: transparent;
  }
  #playlistPlayer .mx-player-meta { position: relative; z-index: 4; order: 1; margin-top: auto; text-shadow: 0 2px 5px #000; }
  #playlistPlayer .mx-player-meta::before {
    content: ""; position: absolute; z-index: -1; inset: -.75rem -.75rem 0; pointer-events: none;
    background: linear-gradient(transparent, rgb(7 20 20 / 85%) 45%, #071414);
  }
  #playlistPlayer #nowPlaying { font-size: 1.125rem; }
  #playlistPlayer .mx-player-actions { position: relative; z-index: 2; order: 2; }
  #playlistPlayer #playerBody > .mx-player-seek { position: relative; z-index: 2; order: 3; }
  #playlistPlayer #playerBody > .mx-player-transport { position: relative; z-index: 2; order: 4; }
  #playlistPlayer #nextUp { position: relative; z-index: 2; order: 5; }
  #playlistPlayer #queuePanel {
    position: absolute; z-index: 3;
    top: auto; bottom: var(--mx-queue-bottom, 12rem); left: .75rem; right: .75rem;
    width: auto; max-width: none; max-height: var(--mx-queue-height, 35dvh); margin: 0; padding-bottom: 2.5rem;
    border: 0 !important; border-radius: 0;
    background: rgb(4 16 16 / 88%) !important; box-shadow: none; overscroll-behavior: contain;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 2rem), transparent);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 2rem), transparent);
  }
  #playlistPlayer #queuePanel > :first-child { display: none; }
  #playlistPlayer #queueList, #playlistPlayer #queueList > div {
    border: 0 !important; background: transparent !important; box-shadow: none;
  }
  #playlistPlayer #queueList { text-shadow: 0 2px 5px #000; }
  body.mx-app #playlistPlayer:not(.collapsed) #playerCollapseBtn {
    position: fixed; z-index: 6; top: auto; bottom: var(--mx-hide-bottom, 12rem); right: .75rem;
    transform: none; min-height: 2.75rem; height: 2.75rem;
  }
  #playlistPlayer.collapsed {
    inset: auto 0 0; height: 0; min-height: 0; padding: 0 !important;
    background: transparent !important; box-shadow: none; border: 0;
  }
  body.mx-app #playlistPlayer.collapsed #playerCollapseBtn {
    position: fixed; top: auto; bottom: max(.75rem, env(safe-area-inset-bottom));
    right: .75rem; transform: none;
  }
  #playlistPlayer #moreMenu { top: auto; bottom: calc(100% + .5rem); margin-top: 0; }
}

/* Expanded player needs only a compact, accessible downward collapse control. */
body.mx-app #playlistPlayer:not(.collapsed) #playerCollapseBtn {
  width: 2.75rem; min-width: 2.75rem; height: 2.75rem; min-height: 2.75rem;
  padding: 0; gap: 0; border-radius: 50%;
}
#playlistPlayer:not(.collapsed) #playerCollapseBtn > span:not(#playerCollapseIcon) { display: none; }

/* Current track remains distinct over the queue's dark scrim in both themes. */
#playlistPlayer #queueList > .mx-queue-row.is-current {
  background: rgb(0 119 119 / 70%) !important; border-radius: .5rem;
  box-shadow: none;
}

#playlistPlayer .mx-player-actions { position: relative; }
#playlistPlayer.menu-open .mx-player-actions { z-index: 8; }
#playlistPlayer #moreMenu {
  top: auto; bottom: calc(100% + 1rem); margin-top: 0;
  max-height: min(24rem, calc(100dvh - 6rem)); overflow-y: auto;
}
@media (max-width: 640px) {
  #playlistPlayer #moreMenu {
    position: fixed; right: .75rem;
    bottom: calc(var(--mx-queue-bottom, 12rem) + 1.5rem);
    max-width: calc(100vw - 1.5rem);
    max-height: max(6rem, calc(100dvh - var(--mx-queue-bottom, 12rem) - 3rem));
  }
}

@media (max-width: 1279px) {
  .mx-mobile-header-actions { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
  body.mx-app .mx-mobile-header-actions > :is(a, button) {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.75rem; height: 2.75rem; min-width: 2.75rem; min-height: 2.75rem; border-radius: .5rem;
  }
  .mx-mobile-header-actions .material-symbols-outlined { display: block; width: 1em; overflow: hidden; line-height: 1; }
  .mx-mobile-notifications { position: relative; }
  .mx-mobile-unread-badge { position: absolute; top: 0; right: 0; min-width: 1rem; padding: 0 .2rem; border-radius: 999px; background: #007777; color: #fff !important; font-size: .625rem; line-height: 1rem; text-align: center; }
  #globalSideMenuDrawer [data-mobile-nav-link] { display: flex; align-items: center; gap: .75rem; padding: .65rem .5rem; min-height: 2.75rem; border-radius: .4rem; font-size: .875rem; }
}
@media (max-width: 400px) {
  body.mx-app header { padding-inline: .75rem; }
  .mx-header-brand > div { gap: .25rem; }
  .mx-header-brand img { width: 1.75rem; height: 1.75rem; }
  body.mx-app .mx-header-brand h2 { font-size: 1rem; }
}

/* Song-list actions use a viewport-positioned panel, outside clipped tables. */
body.mx-app .mx-song-more {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  min-width: 2.75rem; min-height: 2.75rem; margin-left: .25rem; border: 0;
  border-radius: .5rem; background: transparent; color: var(--mx-text, #f8fcfc); font-size: 1.5rem;
  cursor: pointer; vertical-align: middle;
}
body.mx-app .mx-song-more-on-cover { position: absolute; right: .25rem; top: .25rem; margin: 0; background: rgb(7 20 20 / 80%); color: #fff; }
.mx-song-more:hover, .mx-song-more:focus-visible { outline: 2px solid var(--mx-primary, #008080); outline-offset: 1px; }
body.mx-app .mx-song-actions-panel {
  position: fixed; z-index: 10030; width: min(15rem, calc(100vw - 1rem)); max-height: calc(100dvh - 1rem);
  overflow-y: auto; margin: 0; padding: .4rem; border: 1px solid var(--mx-border, #346565);
  border-radius: .65rem; background: var(--mx-surface, #1a2525); color: var(--mx-text, #f8fcfc);
  box-shadow: 0 8px 28px rgb(0 0 0 / 25%); text-align: left;
}
.mx-song-actions-panel[hidden] { display: none !important; }
body.mx-app .mx-song-actions-panel button {
  display: block; width: 100%; min-height: 2.75rem; padding: .55rem .65rem;
  border: 0; border-radius: .35rem; background: transparent; color: inherit; text-align: left; font-size: .8125rem;
}
.mx-song-actions-panel button:hover, .mx-song-actions-panel button:focus-visible { background: var(--mx-surface-strong); }
body.mx-app .mx-song-actions-title { margin: .25rem .65rem .4rem; font-size: .75rem; color: var(--mx-text-muted); overflow-wrap: anywhere; }

.mx-song-action-link { position: relative; min-width: 0; }
.mx-song-action-link > a { min-width: 0; padding-right: 3.5rem; }
.mx-song-action-link > .mx-song-more { position: absolute; right: .25rem; top: .25rem; margin: 0; }
@media(max-width: 480px) {
  .mx-song-action-link > .mx-contest-song { grid-template-columns: 2rem minmax(0, 1fr); }
  .mx-song-action-link > .mx-contest-song > :first-child { grid-row: 1 / span 2; }
  .mx-song-action-link > .mx-contest-song > :last-child { grid-column: 2; text-align: left; }
}

.mx-song-action-link > a.mx-related-song { display: block; padding-right: .75rem; }

/* Compact phone song rows: identity plus one vertical actions control. */
.mx-browse-track-layout, .mx-browse-track-copy { min-width: 0; }
.mx-browse-track-copy { flex: 1; }
.mx-track-more-slot { flex: 0 0 2.75rem; margin-left: auto; }
body.mx-app .mx-track-more-slot .mx-song-more { margin-left: 0; }
.mx-browse-back { display: inline-flex; align-items: center; min-height: 2.75rem; white-space: nowrap; flex-shrink: 0; }
.mx-browse-track-copy > :is(a, button.mx-browse-track-title, span:not(.mx-track-release-label)) { display: block; min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) {
  body.mx-app .mx-browse-page { padding: .75rem 1px .75rem .35rem !important; }
  .mx-browse-heading { align-items: flex-start; gap: .5rem; margin-bottom: .65rem; padding-right: .25rem; }
  .mx-browse-heading > div { min-width: 0; }
  .mx-browse-heading > div > p:first-child { font-size: 1.6rem; line-height: 1.2; }
  .mx-browse-back { padding: .4rem .5rem; border-radius: 999px; background: var(--mx-surface-strong); }
  .mx-browse-track-list { border: 0 !important; border-radius: 0; overflow: visible; }
  .mx-browse-track-list table, .mx-browse-track-list tbody { display: block; width: 100%; }
  .mx-browse-track-list tr { display: block; width: 100%; border-bottom-width: 0; }
  .mx-browse-track-list tr[data-song-menu-source] td:not(.mx-browse-track-main) { display: none !important; }
  .mx-browse-track-list td.mx-browse-track-main { display: block; padding: 3px 0 !important; width: 100%; }
  .mx-browse-track-list .mx-browse-track-layout { gap: .4rem; }
  .mx-browse-track-list .mx-cover-art { width: 2.5rem; height: 2.5rem; flex-shrink: 0; }
  .mx-browse-track-copy > .mx-track-release-label, .mx-browse-track-copy > div { display: none; }
  .mx-browse-track-copy > .mx-browse-track-title { font-size: .875rem; line-height: 1.25; }
  .mx-browse-track-copy > span:not(.mx-track-release-label):not(.mx-browse-track-title) { font-size: .75rem; line-height: 1.25; }
  .mx-browse-page .mx-track-more-slot { margin: 0; }
}

.mx-player-brand { display: none; }
@media (max-width: 640px) {
  #playlistPlayer:not(.collapsed) .mx-player-brand {
    position: absolute; z-index: 5; top: max(1rem, env(safe-area-inset-top)); left: .75rem;
    display: flex; align-items: center; gap: .5rem;
  }
  .mx-player-brand img { width: 2rem; height: 2rem; object-fit: contain; }
  body.mx-app #playlistPlayer .mx-player-brand span { color: #fff !important; font-size: 1.0625rem; font-weight: 800; text-shadow: 0 2px 6px #000; }
}

.mx-browse-track-list table { border-collapse: separate; border-spacing: 2px; }
@media (max-width: 640px) {
  .mx-browse-track-list tr[data-song-menu-source] { margin: 2px 0 0 2px; width: calc(100% - 2px); }
}

.mx-browse-track-copy > button.mx-browse-track-title { width: 100%; padding: 0; border: 0; background: transparent; color: inherit; font-weight: inherit; text-align: left; cursor: inherit; }
.mx-browse-track-title:focus-visible { outline: 2px solid var(--mx-primary, #008080); outline-offset: 2px; }

/* Keep home rails inside the viewport while retaining touch swiping. */
.mx-home-page, .mx-home-page > section, .mx-home-page section { min-width: 0; max-width: 100%; }
.mx-home-strip { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; max-width: calc(100% + 2rem); }
.mx-home-strip::-webkit-scrollbar { display: none !important; }
.mx-home-track-section h2 { font-size: 1.375rem; font-weight: 700; }
.mx-discovery-track { display: flex; align-items: center; gap: .5rem; margin: 2px 0 0 5px; padding: 3px 0; min-width: 0; cursor: pointer; }
.mx-discovery-track > img { width: 2.5rem; height: 2.5rem; object-fit: cover; border-radius: .35rem; flex-shrink: 0; }
.mx-discovery-track > div { flex: 1; min-width: 0; }
.mx-discovery-track strong, .mx-discovery-track > div > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-discovery-track strong { font-size: .875rem; }
.mx-discovery-track > div > span { font-size: .75rem; color: var(--mx-text-muted); }
.mx-discovery-track .mx-song-more { margin-left: auto; }
.mx-browse-track-list table { border-spacing: 5px 2px; }
@media(max-width: 640px) {
 .mx-browse-track-list tr[data-song-menu-source] { margin-left: 5px; width: calc(100% - 5px); }
 #playlistPlayer #playerBody > .mx-player-seek:has(#volumePopup:not(.hidden)) { z-index: 10; }
 #playlistPlayer #volumePopup { z-index: 100; }
}

/* Home discovery, monitoring and notification composition. */
.mx-recipient-picker label, .mx-notification-composer > label { display:block; margin-bottom:.5rem; font-size:.875rem; font-weight:600; }
.mx-recipient-picker input[type=search], .mx-notification-composer textarea, .mx-rich-editor { width:100%; padding:.75rem; border:1px solid var(--mx-border); border-radius:.5rem; background:var(--mx-surface); color:var(--mx-text); }
.mx-rich-editor { min-height:11rem; overflow-wrap:anywhere; }
.mx-rich-tools { display:flex; flex-wrap:wrap; gap:.35rem; margin-bottom:.5rem; }
.mx-rich-tools[hidden], .mx-recipient-picker[hidden], .mx-rich-editor[hidden] { display:none; }
.mx-rich-tools button, .mx-rich-tools label, .mx-recipient-selected button, .mx-recipient-results button { padding:.4rem .6rem; border:1px solid var(--mx-border); border-radius:.4rem; background:var(--mx-surface); color:var(--mx-text); font-size:.8rem; }
.mx-rich-tools label { display:flex; align-items:center; gap:.3rem; }
.mx-rich-tools input[type=color] { width:1.5rem; height:1.5rem; padding:0; }
.mx-recipient-selected, .mx-recipient-results { display:flex; flex-wrap:wrap; gap:.4rem; margin-top:.5rem; }
.mx-recipient-selected button { background:var(--mx-primary); color:white; }
.mx-notification-rich, .mx-rich-editor { line-height:1.6; }
.mx-notification-rich { position:relative; z-index:1; overflow-wrap:anywhere; }
.mx-notification-rich img, .mx-rich-editor img { display:block; max-width:100%; height:auto; border-radius:.5rem; margin:.6rem 0; }
.mx-notification-rich p, .mx-rich-editor p { margin:.5rem 0; }
.mx-notification-rich ul, .mx-rich-editor ul { list-style:disc; padding-left:1.5rem; }
.mx-notification-rich ol, .mx-rich-editor ol { list-style:decimal; padding-left:1.5rem; }
.mx-editor-feedback { font-size:.8rem; color:var(--mx-text-muted); margin-top:.4rem; }
body.mx-app #song_in_profile > .mx-profile-track { padding-left:5px; }
.playlist-song-row { padding-left:5px; }
#playlistSongs tr > td:first-child, #songTableBody tr > td:first-child { padding-left:5px; }
.mx-security-metrics { display:flex; flex-wrap:wrap; gap:1rem; margin:1rem 0 1.5rem; font-size:.85rem; }
.mx-security-assessment { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin:1rem 0; }
.mx-security-assessment label { display:flex; flex-direction:column; gap:.45rem; font-size:.875rem; }
.mx-security-assessment label:has(textarea) { grid-column:1 / -1; }
.mx-security-assessment :is(select,textarea) { padding:.65rem; border:1px solid var(--mx-border); border-radius:.5rem; color:var(--mx-text); background:var(--mx-surface); }
.mx-security-assessment button { justify-self:start; padding:.6rem 1rem; border-radius:.5rem; background:var(--mx-primary); color:white; }
@media(max-width:640px) { .mx-security-assessment { grid-template-columns:minmax(0,1fr); } }
.mx-security-page > form :is(select,input) { min-width:0; padding:.65rem; border:1px solid var(--mx-border); border-radius:.5rem; background:var(--mx-surface); color:var(--mx-text); }
.mx-security-page .mx-panel { padding:1rem; border-radius:.65rem; background:var(--mx-surface); }
.mx-security-page summary { cursor:pointer; }
.mx-security-page dl { overflow-wrap:anywhere; font-size:.8rem; }
.mx-security-page dt { font-weight:600; margin-top:.4rem; }
.mx-home-page > section { overflow:hidden; }
#queueList .mx-queue-row { padding-left:5px; }
.mx-security-page .mx-panel { min-width:0; overflow-wrap:anywhere; }
.mx-security-assessment textarea { width:100%; }

/* Processor information follows the existing quiet, expandable guidance style. */
body.mx-app .mx-pesapal-fee-notice { min-width:0; max-width:100%; margin-top:.5rem; margin-bottom:.5rem; font-size:.75rem; overflow-wrap:anywhere; }
body.mx-app .mx-pesapal-fee-notice p { margin:.5rem 0; font-size:inherit; line-height:1.6; }
.mx-pesapal-policy { min-width:0; overflow-wrap:anywhere; }
.mx-pesapal-policy > p { margin-top:.75rem; }
body.mx-app .mx-pesapal-policy > .mx-pesapal-sources { font-size:.75rem; color:var(--mx-text-muted); }
.mx-pesapal-sources a { text-decoration:underline; }
body.mx-app :is(#purchaseModal, #globalPurchaseModal, #globalGiftModal) > div > div { max-height:calc(100dvh - 2rem); overflow-y:auto; overscroll-behavior:contain; }
.mx-wallet-funding-form + .mx-pesapal-fee-notice { grid-column:1 / -1; }

.mx-home-track-more { display:inline-block; margin: .75rem 0 .25rem 5px; font-size:.875rem; }
